:root {
  --bg: #0e0e10;
  --sidebar: #0c0c0e;
  --elev: #161618;
  --elev-2: #1c1c1f;
  --soft: #141416;
  --soft-2: #18181b;
  --input: #121214;
  --inset: #101012;
  --menu: #1a1a1e;
  --chip: #1c1c20;
  --chip-2: #1b1b1e;
  --track: #2a2a2e;
  --badge: #2e2e32;
  --line: rgba(255, 255, 255, 0.06);
  --line-strong: rgba(255, 255, 255, 0.08);
  --hair: rgba(255, 255, 255, 0.045);
  --hover: rgba(255, 255, 255, 0.05);
  --hover-2: rgba(255, 255, 255, 0.07);
  --text: #f3f3f4;
  --text-2: #d7d7dc;
  --muted: #8d8d96;
  --faint: #6e6e76;
  --nav: #c7c7cc;
  --nav-icon: #9a9aa2;
  --icon: #c8c8ce;
  --hover-text: #ffffff;
  --placeholder: #6d6d75;
  --topbar: rgba(14, 14, 16, 0.86);
  --overlay: rgba(0, 0, 0, 0.62);
  --accent: #f3e6d8;
  --accent-text: #2b241e;
  --brand-ink: #111;
  --mint: #7ddea8;
  --sky: #7eb6ff;
  --lilac: #d7a4ff;
  --gold: #e3b341;
  --ice: #9ecbff;
  --warn: #ff7a68;
  --warn-hot: #ff5d4a;
  --warn-soft: #ffb0a4;
  --danger: #d64545;
  --ok: #3dce86;
  --sidebar-w: 240px;
  --top-h: 60px;
  --shadow: 0 16px 48px rgba(0, 0, 0, 0.45);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  font-family: "Segoe UI", Inter, system-ui, sans-serif;
  color: var(--text);
  background: var(--bg);
  color-scheme: dark;
}

:root[data-theme="light"] {
  --bg: #f7f6f4;
  --sidebar: #ffffff;
  --elev: #ffffff;
  --elev-2: #f1eeea;
  --soft: #ffffff;
  --soft-2: #ffffff;
  --input: #ffffff;
  --inset: #f4f2ef;
  --menu: #ffffff;
  --chip: #efece8;
  --chip-2: #efece8;
  --track: #e6e1da;
  --badge: #ece8e2;
  --line: rgba(32, 27, 23, 0.1);
  --line-strong: rgba(32, 27, 23, 0.14);
  --hair: rgba(32, 27, 23, 0.08);
  --hover: rgba(32, 27, 23, 0.05);
  --hover-2: rgba(32, 27, 23, 0.08);
  --text: #1c1917;
  --text-2: #3c3733;
  --muted: #6f6862;
  --faint: #8b847d;
  --nav: #3c3733;
  --nav-icon: #8b847d;
  --icon: #5e5852;
  --hover-text: #1c1917;
  --placeholder: #9a928a;
  --topbar: rgba(255, 255, 255, 0.92);
  --overlay: rgba(28, 24, 20, 0.45);
  --accent: #2b241e;
  --accent-text: #fbf8f4;
  --brand-ink: #fbf8f4;
  --mint: #1c7a46;
  --sky: #2a62b8;
  --lilac: #7a3eaa;
  --gold: #8d5e0d;
  --ice: #2a62b8;
  --warn: #c23b2e;
  --warn-hot: #b42318;
  --warn-soft: #9f3a30;
  --shadow: 0 16px 40px rgba(32, 27, 23, 0.12);
  color-scheme: light;
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; overflow: hidden; background: var(--bg); color: var(--text); }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
button:focus-visible, input:focus-visible { outline: 2px solid #c8b39a; outline-offset: 2px; }

.app { display: flex; height: 100%; min-height: 0; overflow: hidden; }
.app[hidden], #gate[hidden], .user-menu[hidden] { display: none !important; }

.sidebar {
  width: var(--sidebar-w);
  flex: none;
  background: var(--sidebar);
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
}

.scrim { display: none; }

.sidebar-top { position: relative; padding: 16px 14px 8px; }
.brand { display: flex; align-items: center; gap: 10px; padding: 4px 6px 14px; }
.brand-mark {
  width: 22px; height: 22px; border-radius: 6px;
  background: var(--text); color: var(--brand-ink);
  display: grid; place-items: center;
  font-size: 13px; font-weight: 800;
  transition: transform 0.35s var(--ease), box-shadow 0.35s;
}
.brand:hover .brand-mark { transform: rotate(-8deg) scale(1.08); box-shadow: 0 6px 16px rgba(243, 230, 216, 0.25); }
.brand-name { font-weight: 750; letter-spacing: 0.14em; font-size: 13px; }

.server-card {
  width: 100%;
  display: flex; align-items: center; gap: 10px;
  background: var(--elev);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 8px;
  text-align: left;
  transition: background 0.2s, border-color 0.2s, transform 0.25s var(--ease), box-shadow 0.25s;
}
.server-card:hover {
  background: var(--elev-2);
  border-color: rgba(243, 230, 216, 0.22);
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.28);
}
.server-avatar {
  width: 32px; height: 32px; border-radius: 8px;
  background: #8d3b2c; display: grid; place-items: center;
  font-weight: 700; font-size: 14px;
  transition: transform 0.25s var(--ease);
}
.server-card:hover .server-avatar { transform: scale(1.06); }
.server-meta { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.server-name { font-size: 13px; font-weight: 650; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.server-id { font-size: 11px; color: var(--faint); letter-spacing: 0.04em; }
.chevron { width: 16px; height: 16px; color: var(--faint); transition: transform 0.25s var(--ease); }
.server-card:hover .chevron { transform: translateY(2px); color: var(--accent); }
.server-card.open .chevron { transform: rotate(180deg); color: var(--accent); }
.server-menu {
  position: absolute; left: 14px; right: 14px; top: calc(100% - 6px); z-index: 8;
  background: var(--menu); border: 1px solid var(--line); border-radius: 12px;
  padding: 8px; box-shadow: var(--shadow);
}
.server-menu[hidden] { display: none !important; }
.server-option {
  width: 100%; display: flex; flex-direction: column; align-items: flex-start; gap: 2px;
  border: 0; background: transparent; border-radius: 8px; padding: 8px 8px; text-align: left;
}
.server-option:hover, .server-option.on { background: rgba(243, 230, 216, 0.1); }
.server-option b { font-size: 13px; font-weight: 650; }
.server-option small { color: var(--faint); font-size: 11px; }
.server-add {
  width: 100%; margin-top: 4px; border: 0; border-radius: 8px; padding: 8px;
  background: transparent; color: var(--accent); font-size: 13px; text-align: left;
}
.server-add:hover { background: var(--hover); }
.server-form { display: flex; flex-direction: column; gap: 6px; margin-top: 8px; }
.server-form[hidden] { display: none !important; }
.server-form input {
  width: 100%; border: 1px solid var(--line); background: var(--input); color: var(--text);
  border-radius: 8px; padding: 8px 10px;
}
.server-form button {
  border: 0; border-radius: 8px; padding: 8px 10px; background: var(--accent); color: var(--accent-text); font-weight: 700;
}

.nav { padding: 8px 10px 12px; overflow: auto; flex: 1; }
.nav-label {
  margin: 14px 8px 6px;
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--faint);
  font-weight: 650;
}
.nav-item {
  width: 100%;
  display: flex; align-items: center; gap: 10px;
  border: 0; background: transparent;
  color: var(--nav);
  border-radius: 10px;
  padding: 8px 10px;
  text-align: left;
  font-size: 14px;
  position: relative;
  transition: background 0.2s, color 0.2s, transform 0.22s var(--ease);
}
.nav-item svg { width: 16px; height: 16px; flex: none; color: var(--nav-icon); transition: transform 0.22s var(--ease), color 0.2s; }
.nav-item:hover { background: var(--hover); color: var(--hover-text); transform: translateX(4px); }
.nav-item:hover svg { color: var(--accent); transform: scale(1.12); }
.nav-item.active {
  background: linear-gradient(90deg, rgba(243, 230, 216, 0.16), var(--track) 48%);
  color: var(--hover-text);
  box-shadow: inset 0 0 0 1px rgba(243, 230, 216, 0.08);
}
.nav-item.active svg { color: var(--accent); }
.nav-item span:first-of-type { flex: 1; }
.badge {
  min-width: 22px; height: 18px; padding: 0 6px;
  border-radius: 999px;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700;
  background: var(--badge); color: var(--text-2);
  transition: transform 0.2s var(--ease);
}
.nav-item:hover .badge { transform: scale(1.06); }
.badge.hot { background: var(--danger); color: var(--hover-text); box-shadow: 0 0 0 0 rgba(214, 69, 69, 0.45); animation: hot 2.2s ease infinite; }

.feedback {
  margin: 10px;
  border: 0; background: transparent;
  color: var(--muted);
  display: flex; align-items: center; gap: 10px;
  padding: 10px;
  border-radius: 10px;
  text-align: left;
  transition: background 0.2s, color 0.2s, transform 0.22s var(--ease);
}
.feedback svg { width: 16px; height: 16px; transition: transform 0.22s var(--ease); }
.feedback:hover { background: var(--hover); color: var(--hover-text); transform: translateX(3px); }
.feedback:hover svg { transform: translateY(-1px); }

.main { flex: 1; min-width: 0; min-height: 0; height: 100%; display: flex; flex-direction: column; overflow: hidden; }
.topbar {
  height: var(--top-h);
  display: flex; align-items: center; gap: 12px;
  padding: 0 18px 0 22px;
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0;
  background: var(--topbar);
  backdrop-filter: blur(14px);
  z-index: 5;
}
.icon-btn.menu-btn { display: none; }
.global-search {
  flex: 1;
  max-width: 560px;
  margin: 0;
  display: flex; align-items: center; gap: 8px;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0 12px;
  height: 36px;
  color: var(--faint);
  transition: border-color 0.2s, box-shadow 0.25s, background 0.2s;
}
.global-search svg { width: 16px; height: 16px; flex: none; transition: color 0.2s, transform 0.2s; }
.global-search:focus-within {
  border-color: rgba(243, 230, 216, 0.45);
  box-shadow: 0 0 0 4px rgba(243, 230, 216, 0.08);
  background: var(--soft-2);
}
.global-search:focus-within svg { color: var(--accent); transform: scale(1.08); }
.global-search input {
  flex: 1; border: 0; background: transparent; height: 100%;
  outline: none; color: var(--text); min-width: 0;
}
.global-search input::placeholder { color: var(--placeholder); }
.top-actions { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.icon-btn {
  width: 34px; height: 34px; border-radius: 9px;
  border: 0; background: transparent; color: var(--icon);
  display: grid; place-items: center;
  transition: background 0.2s, color 0.2s, transform 0.2s var(--ease);
}
.icon-btn svg { width: 18px; height: 18px; }
.icon-btn:hover { background: var(--hover-2); color: var(--hover-text); transform: translateY(-1px); }
.icon-btn:active { transform: translateY(0) scale(0.96); }
.theme-btn .theme-moon { display: none; }
:root[data-theme="light"] .theme-btn .theme-sun { display: none; }
:root[data-theme="light"] .theme-btn .theme-moon { display: block; }

.user-wrap { position: relative; }
.user { display: flex; align-items: center; gap: 8px; padding: 4px 8px 4px 6px; border: 0; background: transparent; color: inherit; font: inherit; cursor: pointer; border-radius: 999px; transition: background 0.2s; }
.user-menu {
  position: absolute; top: calc(100% + 6px); right: 0; z-index: 20;
  min-width: 140px; padding: 6px; border-radius: 12px;
  background: var(--menu); border: 1px solid var(--line-strong);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.28);
}
.user-menu button {
  width: 100%; border: 0; background: transparent; color: var(--text);
  font: inherit; text-align: left; padding: 8px 10px; border-radius: 8px; cursor: pointer;
}
.user-menu button:hover { background: var(--hover); }
.user:hover { background: var(--hover); }
.user-avatar {
  width: 28px; height: 28px; border-radius: 50%;
  background: #d7c4a8; color: #2b241e;
  display: grid; place-items: center;
  font-size: 11px; font-weight: 750;
  transition: transform 0.25s var(--ease);
}
.user:hover .user-avatar { transform: scale(1.08); }
.user-name { font-size: 14px; }

.content { flex: 1; min-height: 0; padding: 26px 28px 40px; overflow: auto; }

.page-head h1, .online-head h1, .placeholder h1 { margin: 0; font-size: 28px; font-weight: 650; letter-spacing: -0.03em; }
.page-head h1 { display: flex; align-items: center; gap: 10px; }
.count-pill {
  min-width: 28px; height: 28px; padding: 0 8px; border-radius: 999px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--accent); color: var(--accent-text); font-size: 14px; font-weight: 750;
}
.join-board { display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: 10px; margin-top: 16px; }
.join-total {
  border-radius: 14px; padding: 14px 16px; border: 1px solid var(--line); background: var(--elev);
  display: flex; flex-direction: column; justify-content: center; min-width: 0;
}
.join-total span { font-size: 12px; color: var(--muted); }
.join-total b { margin-top: 6px; font-size: 36px; line-height: 1; font-weight: 700; letter-spacing: -0.03em; }
.join-total small { margin-top: 8px; color: var(--faint); font-size: 12px; }
.visit-days { display: block; margin-top: 2px; color: var(--faint); font-size: 11px; }
.cohort em { display: block; margin-top: 6px; font-style: normal; font-size: 11px; color: var(--faint); }
.cohorts { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; margin: 0; }
.cohort { border-radius: 14px; padding: 12px 14px; border: 1px solid var(--line); background: var(--elev); min-width: 0; }
.cohort span { display: block; font-size: 12px; color: var(--muted); }
.cohort b { display: block; margin-top: 6px; font-size: 24px; font-weight: 650; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 8px; }
.split b { margin-top: 0; font-size: 22px; line-height: 1; }
.split em { display: block; margin-top: 4px; font-style: normal; font-size: 11px; color: var(--faint); }
.cohort .split b.old, .join-total .split b.old { color: var(--text-2); }
.join-total .split b:not(.old) { color: var(--accent); }
.cohort.c1 { box-shadow: inset 3px 0 0 var(--accent); }
.cohort.c1 b { color: var(--accent); }
.cohort.c3 { box-shadow: inset 3px 0 0 var(--mint); }
.cohort.c3 b { color: var(--mint); }
.cohort.c7 { box-shadow: inset 3px 0 0 var(--sky); }
.cohort.c7 b { color: var(--sky); }
.cohort.c14 { box-shadow: inset 3px 0 0 var(--lilac); }
.cohort.c14 b { color: var(--lilac); }
.cohort.c30 { box-shadow: inset 3px 0 0 var(--gold); }
.cohort.c30 b { color: var(--gold); }
.cohort-tag {
  font-style: normal; font-size: 10px; font-weight: 750; border-radius: 999px;
  padding: 1px 6px; letter-spacing: 0.02em;
}
.cohort-tag.c1, tr.is-c1 .player-name { color: var(--accent); }
.cohort-tag.c1 { background: rgba(243, 230, 216, 0.16); }
.cohort-tag.c3, tr.is-c3 .player-name { color: var(--mint); }
.cohort-tag.c3 { background: rgba(125, 222, 168, 0.14); }
.cohort-tag.c7, tr.is-c7 .player-name { color: var(--sky); }
.cohort-tag.c7 { background: rgba(126, 182, 255, 0.14); }
.cohort-tag.c14, tr.is-c14 .player-name { color: var(--lilac); }
.cohort-tag.c14 { background: rgba(215, 164, 255, 0.14); }
.cohort-tag.c30, tr.is-c30 .player-name { color: var(--gold); }
.cohort-tag.c30 { background: rgba(227, 179, 65, 0.14); }
tr.is-c1 td:first-child { box-shadow: inset 3px 0 0 var(--accent); }
tr.is-c3 td:first-child { box-shadow: inset 3px 0 0 var(--mint); }
tr.is-c7 td:first-child { box-shadow: inset 3px 0 0 var(--sky); }
tr.is-c14 td:first-child { box-shadow: inset 3px 0 0 var(--lilac); }
tr.is-c30 td:first-child { box-shadow: inset 3px 0 0 var(--gold); }
.sleep-tag {
  font-style: normal; font-size: 10px; font-weight: 750; color: var(--ice);
  background: rgba(126, 182, 255, 0.14); border-radius: 999px; padding: 1px 6px;
}
.pcard.sleeper { opacity: 0.92; border-style: dashed; }
.pcard.joining, .pcard.leaving { filter: grayscale(1); opacity: 0.8; }
.pcard.leaving { animation: leave-card 5.2s ease forwards; }
.phase { margin-top: 10px; font-size: 13px; font-weight: 750; letter-spacing: 0.01em; }
.phase.joining { color: var(--text-2); }
.phase.leaving { color: var(--muted); }
@keyframes leave-card {
  0% { opacity: 0.85; transform: none; }
  75% { opacity: 0.45; }
  100% { opacity: 0; transform: translateY(10px); }
}
.page-head p, .online-head p { margin: 6px 0 0; color: var(--muted); font-size: 14px; }

.ban-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-width: 0; }
.ban-top .page-head { min-width: 0; flex: 1; }
.ban-top h1 { line-height: 1; }
.ban-top .count-pill { height: 26px; min-width: 26px; font-size: 13px; }
.ban-page { min-width: 0; }
.ban-page .toolbar { flex-wrap: wrap; align-items: center; }
.ban-page .local-search { flex: 1 1 auto; min-width: 0; height: 40px; }
.ban-page .filters {
  flex: 0 1 auto; flex-wrap: wrap; max-width: 100%;
  height: 40px; align-items: center; padding: 4px;
}
.ban-page .filter {
  height: 30px; display: inline-flex; align-items: center; justify-content: center;
  padding: 0 12px; line-height: 1;
}
@media (min-width: 961px) {
  .ban-page .local-search { flex: 1 1 220px; min-width: 180px; }
}
.ban-issue {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 40px; padding: 0 16px; border: 0; border-radius: 10px; flex: none;
  background: #e25a42; color: #fff; font-weight: 750; cursor: pointer;
}
.ban-issue:hover { background: #cf4e38; }
.ban-form {
  margin-top: 16px; padding: 16px; display: grid; gap: 12px;
  background: var(--soft); border: 1px solid var(--line); border-radius: 14px;
}
.ban-form-row { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 10px; }
.ban-form-row input, .ban-form .ban-custom {
  width: 100%; height: 38px; border-radius: 10px; border: 1px solid var(--line);
  background: var(--inset); color: var(--text); padding: 0 12px;
}
.ban-ip { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 13px; }
.ban-ip input { accent-color: #e25a42; }
.ip-pill {
  display: inline-flex; margin-left: 6px; padding: 1px 6px; border-radius: 999px;
  font-size: 10px; font-weight: 750; letter-spacing: 0.04em;
  color: var(--warn); background: rgba(255, 90, 70, 0.16);
}
.lift-btn {
  border: 0; background: transparent; color: var(--muted); cursor: pointer; font-weight: 650;
}
.lift-btn:hover { color: var(--warn); }
.unban-btn {
  height: 32px; padding: 0 12px; border-radius: 8px; border: 1px solid rgba(255, 122, 104, 0.45);
  background: rgba(226, 90, 66, 0.12); color: var(--warn); font-weight: 750; cursor: pointer;
  transition: background 0.2s var(--ease), transform 0.2s var(--ease);
}
.unban-btn:hover { background: rgba(226, 90, 66, 0.22); transform: translateY(-1px); }
.status-pill.live { background: rgba(61, 206, 134, 0.14); color: #3dce86; box-shadow: inset 0 0 0 1px rgba(61, 206, 134, 0.28); }
.status-pill.gone { background: var(--hover); color: var(--nav-icon); box-shadow: inset 0 0 0 1px var(--line-strong); }
.ban-columns { display: none; }
.ban-list {
  --ban-cols: minmax(188px, 1.45fr) minmax(120px, 1.25fr) 128px minmax(72px, 0.62fr) minmax(120px, 1.05fr) 128px 84px 92px;
  margin-top: 14px; border: 1px solid var(--line); border-radius: 16px; background: var(--input); overflow: hidden;
}
.ban-pager {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  margin-top: 16px; flex-wrap: wrap;
}
.ban-range { color: var(--muted); font-size: 13px; line-height: 1; }
.ban-pages { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.page-btn {
  box-sizing: border-box;
  min-width: 36px; height: 36px; padding: 0 8px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 10px; border: 1px solid var(--line); background: var(--soft);
  color: var(--text); cursor: pointer; font-size: 13px; font-weight: 650; line-height: 1;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.page-btn.step { padding: 0 14px; }
.page-btn.on { background: var(--accent); color: var(--accent-text); border-color: transparent; }
.page-btn:hover:not(:disabled):not(.on) { background: var(--hover); }
.page-btn:disabled { opacity: 0.4; cursor: default; }
.ban-gap {
  width: 28px; height: 36px; flex: none;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--faint); line-height: 1;
}
.ban-head, .ban-card {
  display: grid;
  grid-template-columns: var(--ban-cols);
  column-gap: 14px; align-items: center;
  padding: 0 16px;
}
.ban-head {
  height: 40px; color: var(--faint); font-size: 11px; font-weight: 650;
  letter-spacing: 0.07em; text-transform: uppercase;
  border-bottom: 1px solid var(--line); background: var(--elev);
}
.ban-card {
  min-height: 58px; background: transparent; border: 0; border-radius: 0;
  border-bottom: 1px solid var(--hair);
  animation: ban-in 0.46s var(--ease) both;
  animation-delay: calc(var(--i, 0) * 45ms);
  transition: background 0.2s var(--ease), opacity 0.35s;
  cursor: pointer;
}
.ban-card:focus-visible { outline: 1px solid rgba(243, 230, 216, 0.45); outline-offset: -1px; }
.ban-card:last-child { border-bottom: 0; }
.ban-card:hover { background: var(--hover); }
.ban-card.is-history { opacity: 0.72; }
.status-pill { transition: background 0.35s var(--ease), color 0.35s var(--ease), box-shadow 0.35s var(--ease); }
.ban-who { display: flex; align-items: center; gap: 10px; min-width: 0; cursor: pointer; }
.ban-card .avatar { width: 36px; height: 36px; border-radius: 8px; font-size: 13px; }
.ban-who > div { min-width: 0; }
.ban-who .player-name, .ban-who .steamid span, .ban-cell {
  display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.ban-who .player-name { font-size: 14px; }
.ban-who .steamid { margin-top: 1px; }
.ban-cell { min-width: 0; color: var(--text-2); font-size: 13px; text-align: center; }
.ban-cell > span { text-align: center; }
.ban-head { text-align: center; }
.ban-card .ban-ip { font-variant-numeric: tabular-nums; color: var(--muted); letter-spacing: 0.01em; }
.ban-card .ban-ip.is-ban { color: var(--warn); font-weight: 700; }
.ban-reason { display: flex; align-items: center; gap: 6px; }
.ban-reason span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text); font-weight: 600; }
.ban-card .status-pill { justify-self: start; min-width: 0; padding: 4px 8px; font-size: 12px; }
.ban-close:disabled { opacity: 0.4; cursor: default; }
@keyframes ban-in {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}
.ban-proof, .proof-row { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.proof-thumb, .proof-add {
  width: 42px; height: 42px; border-radius: 8px; overflow: hidden; padding: 0;
  border: 1px solid var(--line); background: var(--inset); cursor: pointer; flex: none;
}
.proof-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.proof-add { position: relative; display: grid; place-items: center; color: var(--muted); font-size: 20px; }
.proof-add input, .proof-pick input {
  position: absolute; inset: 0; width: 100%; height: 100%; margin: 0;
  opacity: 0; cursor: pointer; font-size: 0;
}
.proof-add span, .proof-pick span { pointer-events: none; }
.proof-thumb.is-pending { animation: proof-pulse 0.9s ease infinite; }
@keyframes proof-pulse { 50% { opacity: 0.45; } }
.proof-pick {
  position: relative; display: inline-flex; align-items: center; min-height: 38px; padding: 0 12px;
  border-radius: 10px; border: 1px dashed rgba(243, 230, 216, 0.28); color: var(--muted); cursor: pointer;
}
.proof-pick:hover, .proof-add:hover { border-color: rgba(243, 230, 216, 0.5); color: var(--text); }
.evidence-img { object-fit: contain; background: #000; }

.toolbar {
  margin-top: 18px;
  display: flex; align-items: center; gap: 12px;
}
.toolbar > .review-btn, .online-tools > .review-btn, .page-head-row > .review-btn { flex: none; margin-left: auto; }
.page-head-row { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.local-search {
  flex: 1 1 auto;
  display: flex; align-items: center; gap: 8px;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0 12px;
  height: 38px;
  min-height: 38px;
  color: var(--faint);
  transition: border-color 0.2s, box-shadow 0.25s, background 0.2s;
}
.local-search svg { width: 16px; height: 16px; transition: color 0.2s; }
.local-search:focus-within {
  border-color: rgba(243, 230, 216, 0.45);
  box-shadow: 0 0 0 4px rgba(243, 230, 216, 0.08);
  background: var(--soft-2);
}
.local-search:focus-within svg { color: var(--accent); }
.local-search input {
  flex: 1; border: 0; background: transparent; outline: none; height: 100%; color: var(--text); min-width: 0;
}
.local-search input::placeholder { color: var(--placeholder); }

.filters { display: flex; gap: 4px; background: var(--soft); border: 1px solid var(--line); border-radius: 999px; padding: 4px; }
.filter {
  border: 0; background: transparent; color: var(--muted);
  border-radius: 999px; padding: 7px 12px; font-size: 13px;
  transition: background 0.2s, color 0.2s, transform 0.2s var(--ease), box-shadow 0.2s;
}
.filter:hover { color: var(--hover-text); background: var(--hover); }
.filter.active { background: var(--accent); color: var(--accent-text); font-weight: 650; box-shadow: 0 6px 16px rgba(243, 230, 216, 0.16); }

.table-wrap { margin-top: 8px; overflow-x: auto; border-radius: 14px; }
table { width: 100%; min-width: 980px; border-collapse: collapse; }
th {
  text-align: center;
  font-size: 11px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--faint);
  font-weight: 650;
  padding: 14px 12px 10px;
  border-bottom: 1px solid var(--line);
}
td {
  padding: 12px;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
  font-size: 14px;
  text-align: center;
  transition: background 0.2s;
}
tbody tr { animation: rise 0.45s var(--ease) both; }
tbody tr:nth-child(2) { animation-delay: 0.03s; }
tbody tr:nth-child(3) { animation-delay: 0.06s; }
tbody tr:nth-child(4) { animation-delay: 0.09s; }
tbody tr:nth-child(5) { animation-delay: 0.12s; }
tbody tr:nth-child(n+6) { animation-delay: 0.15s; }
tr:hover td { background: rgba(243, 230, 216, 0.045); }
.col-num { width: 110px; }
.col-act { width: 56px; text-align: center; }
th.col-act, td.col-act { text-align: center; }

td .player, td .country, td .steamid, .ban-who { justify-content: center; }
.ban-who { justify-content: flex-start; text-align: left; }
.ban-head span:first-child { text-align: left; }
.players-table th:first-child,
.players-table td:first-child { text-align: left; }
.players-table td .player,
.players-table td .steamid,
.players-table .player-name { justify-content: flex-start; text-align: left; }
.player { display: flex; align-items: center; gap: 12px; min-width: 0; }
.avatar {
  width: 38px; height: 38px; border-radius: 8px; flex: none;
  display: grid; place-items: center; overflow: hidden;
  font-weight: 700; color: #1b1b1b; font-size: 14px;
  transition: transform 0.25s var(--ease), box-shadow 0.25s;
}
.avatar img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.35s var(--ease); }
tr:hover .avatar, .pcard:hover .avatar { transform: scale(1.06); box-shadow: 0 8px 18px rgba(0,0,0,0.35); }
tr:hover .avatar img, .pcard:hover .avatar img { transform: scale(1.08); }
.player-name { display: flex; align-items: center; gap: 8px; font-weight: 600; }
.dot {
  width: 7px; height: 7px; border-radius: 50%; background: var(--ok);
  box-shadow: 0 0 0 0 rgba(61, 206, 134, 0.45);
  animation: pulse 1.8s ease infinite;
}
.steamid {
  margin-top: 2px;
  display: flex; align-items: center; gap: 6px;
  color: var(--faint); font-size: 12px; font-variant-numeric: tabular-nums;
}
.copy {
  width: 18px; height: 18px; border: 0; background: transparent; color: var(--muted);
  display: grid; place-items: center; border-radius: 4px; padding: 0;
  transition: color 0.15s, background 0.15s, transform 0.15s;
}
.copy svg { width: 13px; height: 13px; }
.copy:hover { color: var(--hover-text); background: var(--hover-2); transform: scale(1.08); }

.country { display: flex; align-items: center; gap: 8px; color: var(--text-2); }
.flag {
  width: 18px; height: 12px; border-radius: 2px; flex: none;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.18);
  transition: transform 0.2s var(--ease);
}
tr:hover .flag, .pcard:hover .flag { transform: scale(1.12); }
.flag-ru { background: linear-gradient(#fff 0 33%, #1d4e9e 33% 66%, #d52b1e 66%); }
.flag-ua { background: linear-gradient(#005bbb 0 50%, #ffd500 50%); }
.dash { color: var(--faint); }
.ip { font-variant-numeric: tabular-nums; color: var(--text-2); }

.count { color: var(--faint); font-variant-numeric: tabular-nums; }
.count-hot {
  min-width: 22px; height: 22px; padding: 0 6px;
  border-radius: 999px; background: var(--danger); color: var(--hover-text);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700;
}
.seen { color: var(--text-2); font-variant-numeric: tabular-nums; white-space: nowrap; }
.reason { color: var(--text); font-weight: 600; white-space: nowrap; }
.who { display: grid; gap: 2px; min-width: 140px; }
.who b { font-weight: 650; }
.who span { color: var(--faint); font-size: 12px; font-variant-numeric: tabular-nums; }
.server-cell { color: var(--icon); max-width: 220px; }
.status-pill {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 72px; padding: 4px 10px; border-radius: 8px;
  font-size: 12px; font-weight: 750; letter-spacing: 0.01em;
  background: rgba(255, 90, 70, 0.16); color: var(--warn);
  box-shadow: inset 0 0 0 1px rgba(255, 90, 70, 0.28);
}
.status-pill.other, .status-pill.archive { background: rgba(227, 179, 65, 0.14); color: var(--gold); box-shadow: inset 0 0 0 1px rgba(227, 179, 65, 0.28); }
.status-cell { white-space: nowrap; }
.status-pill.review {
  min-width: 0; border-radius: 999px; padding: 5px 12px;
  background: rgba(243, 230, 216, 0.1); color: var(--accent);
  box-shadow: inset 0 0 0 1px rgba(243, 230, 216, 0.22);
}
.col-rank { width: 42px; color: var(--faint); font-variant-numeric: tabular-nums; }
.open-count { display: grid; justify-items: start; gap: 4px; min-width: 120px; }
.open-count b { font-size: 22px; font-weight: 750; line-height: 1; }
.open-count i { display: block; width: 72px; height: 3px; border-radius: 999px; background: var(--track); position: relative; }
.open-count i::after { content: ""; position: absolute; inset: 0 auto 0 0; width: var(--bar, 40%); border-radius: inherit; background: currentColor; }
.open-count span { color: var(--faint); font-size: 11px; }
.open-count.hot { color: var(--warn-hot); }
.open-count.warm { color: var(--gold); }
.open-count.mild { color: var(--gold); }
.reason-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.reason-chips span {
  padding: 3px 8px; border-radius: 7px; background: var(--chip); color: var(--text-2);
  font-size: 12px; box-shadow: inset 0 0 0 1px var(--line);
}
.review-btn {
  border: 0; border-radius: 10px; background: var(--accent); color: var(--accent-text);
  height: 34px; padding: 0 14px; font-weight: 700; font-size: 13px;
  display: inline-flex; align-items: center; justify-content: center; text-decoration: none;
  transition: transform 0.2s var(--ease), filter 0.2s;
}
.review-btn:hover { transform: translateY(-1px); filter: brightness(1.05); }
.review-btn.ghost {
  background: transparent; color: var(--accent);
  box-shadow: inset 0 0 0 1px rgba(243, 230, 216, 0.35);
}
.review-btn.danger { background: #8d3030; color: #fff; }
.desk-back { position: fixed; inset: 0; border: 0; background: var(--overlay); z-index: 50; }
.desk {
  position: fixed; z-index: 51; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: min(760px, calc(100% - 28px)); max-height: calc(100dvh - 36px); overflow: auto;
  background: var(--soft); border: 1px solid var(--line-strong); border-radius: 18px;
  box-shadow: 0 24px 80px rgba(0,0,0,0.45);
}
.desk-head, .desk-body, .desk-foot { padding: 18px 20px; }
.desk-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; border-bottom: 1px solid var(--line); }
.desk-head h2 { margin: 0; font-size: 18px; display: flex; align-items: center; flex-wrap: wrap; gap: 10px; min-width: 0; }
.desk-x { width: 34px; height: 34px; border-radius: 10px; border: 0; background: transparent; color: var(--icon); font-size: 20px; }
.desk-x:hover { background: var(--hover); }
.open-pill {
  font-size: 12px; font-weight: 700; color: var(--warn); padding: 3px 8px; border-radius: 999px;
  background: rgba(255, 90, 70, 0.12); box-shadow: inset 0 0 0 1px rgba(255, 90, 70, 0.35);
}
.fresh-pill {
  font-size: 12px; font-weight: 700; color: var(--ice); padding: 3px 8px; border-radius: 999px;
  background: rgba(80, 140, 255, 0.16); box-shadow: inset 0 0 0 1px rgba(120, 170, 255, 0.35);
}
.desk-player { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; padding: 14px; border: 1px solid var(--line-strong); border-radius: 14px; }
.desk-stats { display: flex; gap: 8px; flex-wrap: wrap; }
.desk-stat { min-width: 84px; padding: 8px 10px; border-radius: 10px; background: var(--inset); text-align: center; }
.desk-stat b { display: block; font-size: 20px; line-height: 1.1; }
.desk-stat span { color: var(--faint); font-size: 11px; letter-spacing: 0.04em; }
.desk-stat.open b { color: var(--warn-hot); }
.complaint {
  margin-top: 12px; padding: 14px; border: 1px solid var(--line-strong); border-radius: 14px;
  display: grid; gap: 8px;
}
.complaint-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.complaint-who { display: flex; align-items: center; gap: 10px; min-width: 0; }
.complaint-meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; min-width: 0; }
.complaint-meta b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
.complaint-time { color: var(--faint); font-size: 13px; white-space: nowrap; }
.complaint-text { color: var(--text); overflow-wrap: anywhere; }
.complaint-server { color: var(--faint); font-size: 13px; }
.complaint .review-btn { flex: none; }
.span-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.ip-ban-btn {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  width: 100%; min-height: 54px; margin-top: 4px; padding: 10px 14px;
  border-radius: 14px; border: 1px solid var(--line); background: var(--inset);
  color: var(--text); cursor: pointer; text-align: left;
  transition: border-color 0.2s, background 0.2s, transform 0.2s var(--ease);
}
.ip-ban-btn b { font-size: 15px; }
.ip-ban-btn span { color: var(--muted); font-size: 13px; }
.ip-ban-btn.on { border-color: rgba(226, 90, 66, 0.75); background: rgba(226, 90, 66, 0.16); color: var(--warn-soft); }
.ip-ban-btn.on span { color: var(--warn-soft); }
.ip-ban-btn:hover:not(:disabled) { transform: translateY(-1px); }
.ip-ban-btn:disabled { opacity: 0.45; cursor: default; }
.ip-ban-box { display: grid; gap: 8px; }
.ban-ip-field { margin-top: 0; font-variant-numeric: tabular-nums; }
.ban-modal { position: fixed; inset: 0; z-index: 40; display: grid; place-items: center; padding: 18px; }
.ban-modal-backdrop { position: absolute; inset: 0; border: 0; background: var(--overlay); cursor: pointer; }
.ban-modal-card {
  position: relative; z-index: 1; width: min(420px, 100%);
  display: grid; gap: 10px; padding: 16px;
  background: var(--elev); border: 1px solid var(--line); border-radius: 18px;
  box-shadow: var(--shadow); animation: drawer-in 0.28s var(--ease);
}
.ban-modal-head { display: flex; align-items: center; gap: 10px; }
.ban-modal-head .avatar { flex: none; width: 38px; height: 38px; }
.ban-modal-head > div:not(.avatar) { min-width: 0; flex: 1; display: grid; }
.ban-modal-head b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ban-modal-head span { color: var(--faint); font-size: 12px; }
.ban-modal-card .desk-label { margin: 0; text-transform: none; letter-spacing: 0; font-size: 13px; }
.ban-inspect { z-index: 42; }
.ban-inspect-card {
  position: relative; z-index: 1; width: min(560px, 100%);
  max-height: min(760px, calc(100vh - 28px)); overflow: auto;
  display: flex; flex-direction: column;
  background: var(--elev); border: 1px solid var(--line); border-radius: 18px;
  box-shadow: var(--shadow); animation: drawer-in 0.28s var(--ease);
}
.ban-inspect-head {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 10px;
  padding: 16px 16px 14px; border-bottom: 1px solid var(--line);
}
.ban-inspect-mark {
  width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; flex: none;
  background: rgba(226, 90, 66, 0.16); color: var(--warn);
}
.ban-inspect-mark svg { width: 18px; height: 18px; }
.ban-inspect-title { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; min-width: 0; }
.ban-inspect-title h2 { margin: 0; font-size: 16px; font-weight: 750; line-height: 1.2; }
.ban-inspect-term {
  font-size: 12px; font-weight: 750; line-height: 1; padding: 4px 8px; border-radius: 999px;
  color: var(--warn); background: rgba(255, 90, 70, 0.12);
  box-shadow: inset 0 0 0 1px rgba(255, 90, 70, 0.35);
}
.ban-inspect-term.is-off {
  color: var(--nav-icon); background: var(--hover);
  box-shadow: inset 0 0 0 1px var(--line-strong);
}
.ban-inspect-head .desk-x { display: grid; place-items: center; width: 34px; height: 34px; }
.ban-inspect-head .desk-x svg { width: 16px; height: 16px; }
.ban-inspect-body { display: grid; gap: 14px; padding: 16px; }
.ban-inspect-player { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.ban-inspect-player .ban-who { cursor: default; flex: 1 1 180px; }
.ban-inspect-player .avatar { width: 38px; height: 38px; border-radius: 8px; }
.ban-inspect-reason {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; max-width: 100%;
  margin-left: auto; padding: 6px 12px; border-radius: 999px;
  color: var(--warn); font-weight: 650; font-size: 13px; line-height: 1.3; text-align: center;
  background: transparent; box-shadow: inset 0 0 0 1px rgba(255, 90, 70, 0.45);
  overflow-wrap: anywhere;
}
.ban-inspect-facts { border: 1px solid var(--line-strong); border-radius: 14px; overflow: hidden; }
.ban-inspect-fact {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 12px 14px; border-bottom: 1px solid var(--line);
}
.ban-inspect-fact:last-child { border-bottom: 0; }
.ban-inspect-fact span { color: var(--muted); font-size: 14px; }
.ban-inspect-fact b { font-weight: 650; text-align: right; overflow-wrap: anywhere; max-width: 62%; }
.ban-inspect-evidence { display: grid; gap: 8px; }
.ban-inspect-label {
  color: var(--faint); font-size: 11px; font-weight: 750; letter-spacing: 0.08em; text-transform: uppercase;
}
.ban-inspect-empty { margin: 0; color: var(--muted); font-size: 14px; }
.ban-inspect-shots { display: flex; flex-wrap: wrap; gap: 8px; }
.ban-inspect-shots .proof-thumb,
.ban-inspect-shots .proof-add { width: 72px; height: 72px; border-radius: 12px; }
.ban-inspect-add { font-size: 22px; }
.ban-inspect-upload {
  position: relative; display: inline-flex; align-items: center; width: fit-content;
  min-height: 34px; padding: 0 12px; border-radius: 10px;
  border: 1px dashed rgba(243, 230, 216, 0.28); color: var(--muted);
  font-size: 13px; font-weight: 650; cursor: pointer;
}
.ban-inspect-upload input {
  position: absolute; inset: 0; width: 100%; height: 100%; margin: 0;
  opacity: 0; cursor: pointer; font-size: 0;
}
.ban-inspect-upload span { pointer-events: none; }
.ban-inspect-upload:hover { border-color: rgba(243, 230, 216, 0.5); color: var(--text); }
.ban-inspect-foot {
  display: flex; justify-content: flex-end; align-items: center; gap: 8px; flex-wrap: wrap;
  padding: 14px 16px; border-top: 1px solid var(--line);
}
@media (max-width: 640px) {
  .ban-inspect { padding: 8px; align-items: end; }
  .ban-inspect-card { width: 100%; max-height: calc(100dvh - 16px); border-radius: 18px; }
  .ban-inspect-player { align-items: flex-start; }
  .ban-inspect-reason { margin-left: 0; }
  .ban-inspect-fact { align-items: flex-start; }
  .ban-inspect-fact b { max-width: 58%; }
  .ban-inspect-foot { flex-direction: column-reverse; align-items: stretch; }
  .ban-inspect-foot .review-btn { width: 100%; min-height: 42px; }
}
.span-btn, .reason-pick {
  border: 0; border-radius: 10px; background: var(--chip-2); color: var(--text); min-height: 40px; padding: 8px 10px;
  box-shadow: inset 0 0 0 1px var(--line); font-weight: 650;
}
.span-btn.on, .reason-pick.on { color: var(--warn); box-shadow: inset 0 0 0 1px #e25a42; background: rgba(226, 90, 66, 0.08); }
.desk-label { margin: 16px 0 8px; color: var(--faint); font-size: 12px; letter-spacing: 0.06em; }
.reason-picks { display: flex; flex-wrap: wrap; gap: 8px; }
.ban-custom, .pair-card {
  width: 100%; margin-top: 8px; border: 0; border-radius: 12px; background: var(--chip-2); color: var(--text);
  min-height: 42px; padding: 10px 12px; box-shadow: inset 0 0 0 1px var(--line);
}
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pair-card { margin-top: 0; text-align: left; }
.pair-card small { display: block; color: var(--faint); font-size: 11px; letter-spacing: 0.05em; margin-bottom: 8px; }
.desk-note { margin-top: 14px; padding: 14px; border-radius: 14px; background: var(--inset); }
.desk-note p { margin: 8px 0 0; }
.desk-foot { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; border-top: 1px solid var(--line); position: sticky; bottom: 0; background: var(--soft); }
.desk-hint { margin: 0; color: var(--faint); font-size: 12px; }
.desk-actions { display: flex; gap: 10px; margin-left: auto; }
.ban-close { border: 0; border-radius: 10px; height: 38px; padding: 0 14px; font-weight: 750; background: #e25a42; color: var(--hover-text); }
.report-row { cursor: pointer; }
.history-row { cursor: pointer; }
.history-open { margin: 16px 20px 20px; }
.report-row.open td { background: rgba(243, 230, 216, 0.04); }
.report-detail td { background: var(--inset); padding: 4px 16px 16px 88px; }
.report-list { display: grid; gap: 6px; }
.report-item {
  display: grid;
  grid-template-columns: minmax(220px, 1.4fr) minmax(140px, 1fr) auto;
  gap: 16px; align-items: center;
  padding: 10px 4px;
  border-top: 1px solid var(--hair);
}
.report-flow { display: flex; align-items: center; gap: 8px; min-width: 0; }
.report-flow b { font-weight: 650; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.report-flow span { color: var(--faint); font-size: 12px; flex: none; }
.content:has(.chat-page) { display: flex; flex-direction: column; overflow: hidden; padding-bottom: 16px; }
.chat-page {
  display: flex; flex-direction: column;
  flex: 1; min-height: 0; height: auto;
}
.chat-page .page-head { flex: none; }
.chat-page .toolbar { flex: none; }
.chat-log {
  margin-top: 12px; flex: 1; min-height: 0; overflow: auto;
  background: var(--inset); border: 1px solid var(--line); border-radius: 14px; padding: 10px 0;
}
.chat-line {
  display: grid;
  grid-template-columns: 78px 72px 132px 10px minmax(0, 1fr);
  column-gap: 12px;
  align-items: start;
  padding: 5px 16px;
  line-height: 1.35;
  font-size: 13px;
}
.chat-line:hover { background: var(--hover); }
.chat-time { color: var(--faint); font-variant-numeric: tabular-nums; font-size: 12px; }
.chat-channel, .chat-name { font-weight: 700; white-space: nowrap; }
.chat-name, .chat-colon { color: var(--sky); }
.chat-name { overflow: hidden; text-overflow: ellipsis; text-align: right; }
.chat-msg { color: var(--text); overflow-wrap: anywhere; }
.chat-line.team .chat-channel { color: var(--mint); }
.chat-line.global .chat-channel { color: var(--nav-icon); }
.chat-line.clan .chat-channel { color: var(--lilac); }

.empty {
  padding: 48px 12px;
  color: var(--muted);
  text-align: center;
}
#screen-base { width: min(100%, 520px); }
.screen-note { margin: 14px 0 0; color: var(--gold); line-height: 1.45; }
.shot-card {
  background: var(--elev); border: 1px solid var(--line); border-radius: 14px; overflow: hidden;
  animation: rise 0.45s var(--ease) both;
}
.sign-grid {
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 14px;
}
.profile-signs { margin-top: 0; }
.sign-card {
  background: var(--elev);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
}
.sign-card .shot-frame,
.sign-card .shot-img,
#sign-zoom .carousel-frame,
#sign-zoom .shot-img {
  background: #e6d3a8;
}
.sign-card .shot-frame { aspect-ratio: 4 / 3; max-height: 240px; }
.sign-card .shot-img,
#sign-zoom .shot-img { object-fit: contain; }
.sign-slot {
  position: absolute; right: 8px; bottom: 8px; z-index: 2;
  padding: 2px 7px; border-radius: 999px;
  background: rgba(0, 0, 0, 0.62); color: #fff; font-size: 11px;
}
.sign-foot { display: flex; align-items: center; gap: 8px; padding: 10px 10px 0; }
.sign-who {
  flex: 1; min-width: 0; display: flex; align-items: center; gap: 8px;
  padding: 0; border: 0; background: transparent; color: inherit; text-align: left;
}
button.sign-who { cursor: pointer; }
.sign-who .avatar { width: 32px; height: 32px; flex: none; }
.sign-who span { min-width: 0; display: flex; flex-direction: column; }
.sign-who b, .sign-who time { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sign-who b { font-size: 14px; font-weight: 700; }
.sign-who time { color: var(--muted); font-size: 12px; }
.sign-acts { display: flex; gap: 6px; flex: none; }
.sign-act {
  width: 40px; height: 40px; border-radius: 12px;
  border: 1px solid var(--line); background: var(--inset); color: var(--text);
  display: grid; place-items: center; cursor: pointer;
}
.sign-act.danger { color: #e06a6a; }
.sign-act svg { width: 18px; height: 18px; }
.sign-meta { margin: 0; padding: 4px 12px 14px; display: grid; gap: 8px; }
.sign-meta div {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 8px;
  align-items: start;
  font-size: 13px;
}
.sign-meta dt { color: var(--muted); padding-top: 1px; }
.sign-meta dd { margin: 0; min-width: 0; text-align: left; line-height: 1.35; overflow-wrap: break-word; }
.sign-meta b { font-weight: 700; }
.sign-meta small { display: block; margin-top: 2px; color: var(--faint); font-size: 12px; overflow-wrap: break-word; }
.profile-shots {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr));
  gap: 12px;
}
.profile-shots .shot-meta { padding: 10px 12px 12px; }
.shot-open { display: block; width: 100%; padding: 0; border: 0; background: transparent; cursor: zoom-in; text-align: left; }
.shot-frame { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; background: var(--inset); overflow: hidden; }
.shot-img { display: block; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 0.25s; }
.shot-frame.ready .shot-img { opacity: 1; }
.shot-frame.ready .shot-shimmer, .shot-frame.failed .shot-shimmer { display: none; }
.shot-miss { display: none; position: absolute; inset: 0; place-items: center; color: var(--muted); font-size: 13px; }
.shot-frame.failed .shot-miss { display: grid; }
.shot-shimmer {
  position: absolute; inset: 0;
  background: linear-gradient(100deg, var(--inset) 20%, var(--track) 40%, var(--inset) 60%);
  background-size: 200% 100%;
  animation: shot-load 1.1s ease-in-out infinite;
}
.shot-skeleton .sk-line {
  height: 12px; margin: 12px 12px 0; border-radius: 999px;
  background: linear-gradient(100deg, var(--inset) 20%, var(--track) 40%, var(--inset) 60%);
  background-size: 200% 100%;
  animation: shot-load 1.1s ease-in-out infinite;
}
.shot-skeleton .sk-line.short { width: 55%; margin-bottom: 14px; }
@keyframes shot-load { from { background-position: 100% 0; } to { background-position: -100% 0; } }
.carousel-backdrop { position: fixed; inset: 0; border: 0; background: var(--overlay); z-index: 60; }
.carousel-box {
  position: fixed; inset: 24px; z-index: 61; display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px;
  pointer-events: none;
}
.carousel-nav.prev { grid-column: 1; }
.carousel-figure { grid-column: 2; position: relative; margin: 0; min-width: 0; width: 100%; pointer-events: auto; }
.carousel-nav.next { grid-column: 3; }
.carousel-frame { height: min(78vh, 820px); width: 100%; margin: 0; aspect-ratio: auto; border-radius: 14px; }
.carousel-frame .shot-img { object-fit: contain; background: #000; }
.carousel-frame .shot-img, .carousel-frame .shot-shimmer, .carousel-frame .shot-miss { position: absolute; inset: 0; width: 100%; height: 100%; }
.carousel-frame:has(.evidence-img) { height: auto; background: transparent; }
.carousel-frame .evidence-img {
  position: static; display: block; width: auto; height: auto;
  max-width: 100%; max-height: min(78vh, 820px); margin: 0 auto;
  object-fit: contain; opacity: 1; background: #000;
}
.carousel-figure figcaption {
  position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%);
  display: flex; gap: 14px; margin: 0; padding: 8px 14px; border-radius: 999px;
  background: var(--overlay); color: white; font-size: 13px; white-space: nowrap;
}
.carousel-nav, .carousel-close {
  pointer-events: auto; width: 44px; height: 44px; border: 0; border-radius: 999px;
  background: rgba(22,22,24,0.9); color: white; display: grid; place-items: center;
}
.carousel-close svg { width: 18px; height: 18px; }
.carousel-nav::before {
  content: ""; width: 10px; height: 10px; border-left: 2px solid white; border-bottom: 2px solid white;
}
.carousel-nav.prev::before { transform: rotate(45deg); margin-left: 4px; }
.carousel-nav.next::before { transform: rotate(-135deg); margin-right: 4px; }
.carousel-close { position: absolute; top: 0; right: 0; }
.shot-id {
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px;
  padding: 12px 12px 4px; min-width: 0;
}
.shot-id span {
  flex: 1 0 100%;
  color: var(--faint); font-size: 10px; letter-spacing: 0.08em; font-weight: 700;
}
.shot-id b {
  flex: 1; min-width: 0;
  font-size: 13px; font-weight: 650; line-height: 1.2;
  font-variant-numeric: tabular-nums;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.shot-id .copy { flex: none; }
.shot-meta { padding: 0 12px 8px; color: var(--muted); font-size: 12px; word-break: break-all; }
.shot-card .shot-meta:last-child { padding-bottom: 12px; }

.rcon-setup, .rcon-command { display: flex; gap: 8px; margin-top: 16px; flex-wrap: wrap; }
.rcon-setup input, .rcon-command input {
  background: var(--soft); border: 1px solid var(--line); border-radius: 10px;
  height: 38px; padding: 0 12px; outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.rcon-setup input:focus, .rcon-command input:focus {
  border-color: rgba(243, 230, 216, 0.45);
  box-shadow: 0 0 0 4px rgba(243, 230, 216, 0.08);
}
.rcon-setup input { width: 180px; }
.rcon-command input { flex: 1; min-width: 160px; }
.rcon-setup button, .rcon-command button {
  border: 0; border-radius: 10px; background: var(--accent); color: var(--accent-text);
  padding: 0 14px; height: 38px; font-weight: 650;
  transition: transform 0.2s var(--ease), filter 0.2s, box-shadow 0.2s;
}
.rcon-setup button:hover, .rcon-command button:hover {
  transform: translateY(-2px);
  filter: brightness(1.06);
  box-shadow: 0 8px 18px rgba(243, 230, 216, 0.18);
}
.content:has(.console-page) { display: flex; flex-direction: column; overflow: hidden; padding-bottom: 16px; }
.console-page {
  display: flex; flex-direction: column;
  flex: 1; min-height: 0; height: 100%;
}
.console-page .page-head { flex: none; }
.console-page .rcon-command { margin-top: 12px; flex: none; }
.rcon-log {
  margin-top: 12px; flex: 1 1 auto; min-height: 0; overflow: auto;
  background: var(--inset); border: 1px solid var(--line); border-radius: 12px;
  padding: 14px; color: var(--text-2); white-space: pre-wrap; word-break: break-word;
  font-family: Consolas, "Courier New", monospace; font-size: 12.5px; line-height: 1.45;
}
.online-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.ops { container-type: inline-size; width: 100%; min-width: 0; position: relative; }
.ops-top { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 16px; align-items: end; }
.ops-live-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.ops-refresh { height: 32px; }
.ops-refresh:disabled { opacity: 0.6; }
.ops-live b { display: flex; align-items: baseline; gap: 8px; font-size: 28px; font-weight: 700; letter-spacing: -0.03em; }
.ops-live span { color: var(--accent); font-variant-numeric: tabular-nums; }
.ops-live small, .ops-link small { display: block; margin-top: 4px; color: var(--faint); font-size: 12px; }
.ops-link { text-align: right; min-width: 0; }
.ops-link b {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--ok); font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase;
}
.ops-link b i {
  width: 8px; height: 8px; border-radius: 50%; background: var(--ok);
  box-shadow: 0 0 0 0 rgba(61, 206, 134, 0.45);
  animation: pulse 1.6s ease infinite;
}
.ops-link small { max-width: 360px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ops-link.off b { color: var(--warn); }
.ops-link.off b i { background: var(--warn); box-shadow: none; animation: none; }
.ops-meters {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 8px;
}
.ops-meters span {
  display: flex; flex-direction: column; justify-content: center; min-width: 0;
  padding: 10px 12px; border-radius: 14px;
  border: 1px solid var(--line); background: var(--elev);
  animation: desk-in 0.5s var(--ease) both;
  animation-delay: calc(var(--i) * 45ms);
  transition: transform 0.28s var(--ease), border-color 0.25s, box-shadow 0.28s, background 0.25s;
}
.ops-meters span:hover {
  transform: translateY(-4px);
  border-color: var(--line-strong);
  background: var(--chip);
  box-shadow: var(--shadow);
}
.ops-meters em { font-style: normal; font-size: 11px; color: var(--muted); }
.ops-meters b { margin-top: 4px; font-size: 16px; font-weight: 700; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ops-board {
  margin-top: 16px; width: 100%; min-width: 0;
  border: 1px solid var(--line); border-radius: 16px; background: var(--elev); overflow: hidden;
  animation: desk-in 0.45s var(--ease) 0.08s both;
}
.ops-cols, .ops-row {
  display: grid;
  grid-template-columns:
    minmax(0, 0.42fr) minmax(0, 1.28fr) minmax(0, 1.1fr) minmax(0, 0.34fr)
    minmax(0, 0.4fr) minmax(0, 0.34fr)
    minmax(0, 0.48fr) minmax(0, 0.72fr) minmax(0, 0.46fr) minmax(0, 0.36fr) minmax(0, 0.5fr) minmax(0, 0.86fr) minmax(0, 0.38fr) minmax(0, 0.62fr);
  gap: 2px 6px;
  align-items: center;
  width: 100%;
  min-width: 0;
  font-size: 12px;
}
.ops-cols {
  padding: 8px 10px; border-bottom: 1px solid var(--line);
  color: var(--faint); font-size: 10px; letter-spacing: 0.04em; text-transform: uppercase; font-weight: 650;
}
.ops-cols .ops-sort {
  border: 0; background: transparent; color: inherit; font: inherit;
  letter-spacing: inherit; text-transform: inherit; font-weight: inherit;
  padding: 0; margin: 0; cursor: pointer; min-width: 0;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-align: center;
}
.ops-cols .ops-sort:hover { color: var(--text); }
.ops-cols .ops-sort:first-child,
.ops-cols .ops-sort:nth-child(2) { text-align: left; }
.ops-cols .ops-sort.on { color: var(--text); }
.ops-cols .ops-sort.on::after { content: "↑"; margin-left: 3px; }
.ops-cols .ops-sort.on.desc::after { content: "↓"; }
.ops-flag { text-align: left; }
.ops-flag .country { justify-content: flex-start; gap: 5px; }
.ops-row {
  padding: 6px 10px; border-bottom: 1px solid var(--line); cursor: pointer;
  animation: desk-in 0.42s var(--ease) both;
  animation-delay: calc(var(--i) * 40ms);
  transition: background 0.22s var(--ease), box-shadow 0.22s;
}
.ops-row:last-child { border-bottom: 0; }
.ops-row:hover { background: var(--hover); }
.ops-row:hover .avatar { transform: scale(1.06); }
.ops-who, .ops-cell, .ops .player, .ops .player-name, .ops .country, .ops .steamid span { min-width: 0; }
.ops-cell, .ops-team, .ops-kd { text-align: center; }
.ops-who { text-align: left; }
.ops .player { width: 100%; min-width: 0; gap: 6px; justify-content: flex-start; }
.ops .avatar { width: 26px; height: 26px; border-radius: 6px; font-size: 11px; }
.ops .player-name, .ops .steamid span, .ops-ip, .ops .country, .ops-cell, .ops-who {
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.ops .player-name { justify-content: flex-start; text-align: left; }
.ops .country { gap: 4px; width: 100%; justify-content: center; }
.ops .ops-flag .country { justify-content: flex-start; }
.ops .flag { width: 14px; height: 10px; }
.ops .steamid { margin-top: 0; min-width: 0; width: 100%; font-size: 11px; gap: 2px; justify-content: center; }
.ops .copy, .ops .copy svg { width: 12px; height: 12px; }
.ops .steamid span { display: block; }
.ops-ping, .ops-num { text-align: center; }
.ops-vpn.on { color: var(--warn); font-weight: 750; }
.ops-team {
  appearance: none; border: 0; background: transparent; color: var(--faint);
  font: inherit; font-variant-numeric: tabular-nums; padding: 0; margin: 0;
  min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  text-align: center; cursor: pointer;
}
.ops-team.on { color: var(--sky); font-weight: 750; }
.ops-kd {
  appearance: none; border: 0; background: transparent; color: inherit;
  font: inherit; font-variant-numeric: tabular-nums; padding: 0; margin: 0;
  min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  text-align: center; cursor: pointer;
}
.ops-kd:hover { color: var(--text); }
.ops-kd.heat-1 { color: #ffc2b8; }
.ops-kd.heat-2 { color: #ff9788; }
.ops-kd.heat-3 { color: #ff6a56; }
.ops-kd.heat-4 { color: #e23b28; font-weight: 700; }
.ops-kd.heat-5 { color: #b81f12; font-weight: 750; }
.ops-kd.heat-1:hover { color: #ffc2b8; }
.ops-kd.heat-2:hover { color: #ff9788; }
.ops-kd.heat-3:hover { color: #ff6a56; }
.ops-kd.heat-4:hover { color: #e23b28; }
.ops-kd.heat-5:hover { color: #b81f12; }
.ops-kd-card { width: min(980px, 100%); }
.ops-kd-score { margin: 0 0 10px; color: var(--muted); font-size: 13px; font-variant-numeric: tabular-nums; }
.ops-aim-row {
  display: flex; justify-content: center; gap: 10px; align-items: flex-end;
  margin: 2px 0 12px; overflow-x: auto; -webkit-overflow-scrolling: touch;
}
.ops-aim { flex: 0 0 auto; width: 62px; margin: 0; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.ops-aim svg { width: 62px; height: auto; display: block; }
.ops-aim .part { fill: #454545; stroke: #d0d0d0; stroke-width: 4; }
.ops-aim .part.on { fill: #c65c3c; stroke: #ececec; }
.ops-aim figcaption { font-size: 11px; line-height: 1.2; color: var(--text); font-variant-numeric: tabular-nums; white-space: nowrap; }
.ops-aim figcaption b { font-weight: 750; }
.ops-aim figcaption span { margin-left: 3px; color: var(--muted); font-weight: 550; }
.ops-kd-head, .ops-kd-line, .ops-kd-hits, .ops-kd-hit {
  display: grid; gap: 10px; align-items: center;
}
.ops-kd-head, .ops-kd-line { grid-template-columns: 11.4rem 8.2rem minmax(0, 1fr) 32px; }
.ops-kd-hits, .ops-kd-hit {
  grid-template-columns: 9.6rem 4.4rem minmax(6.5rem, 1fr) 5rem 5.6rem 4.8rem 4.8rem;
}
.ops-kd-head, .ops-kd-hits { padding: 0 4px 8px; color: var(--faint); font-size: 11px; letter-spacing: 0.03em; text-transform: uppercase; }
.ops-kd-line, .ops-kd-hit { padding: 8px 4px; border-top: 1px solid var(--line); font-size: 13px; }
.ops-kd-line span, .ops-kd-hit span, .ops-kd-head span, .ops-kd-hits span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-align: center; }
.ops-kd-head span, .ops-kd-hits span { overflow: visible; text-overflow: clip; }
.ops-kd-who { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; line-height: 1.25; }
.ops-kd-who b { max-width: 100%; overflow: hidden; text-overflow: ellipsis; font-weight: 650; }
.ops-kd-who small { max-width: 100%; overflow: hidden; text-overflow: ellipsis; color: var(--muted); font-size: 11px; font-weight: 500; font-variant-numeric: tabular-nums; }
.ops-kd-weapon { display: flex; align-items: center; justify-content: center; gap: 6px; }
.ops-kd-weapon b { min-width: 0; overflow: hidden; text-overflow: ellipsis; font-weight: 560; }
.ops-kd-hit .ops-kd-place { overflow: visible; text-overflow: clip; }
.ops-gun { display: block; flex: none; width: 26px; height: 26px; object-fit: contain; border-radius: 4px; }
.ops-kd-log, .ops-kd-ok {
  border: 0; border-radius: 8px; background: var(--chip); color: var(--text); cursor: pointer; font: inherit;
}
.ops-kd-log { display: grid; place-items: center; width: 28px; height: 28px; margin-left: auto; padding: 0; }
.ops-kd-log svg { width: 16px; height: 16px; }
.ops-kd-log:hover, .ops-kd-ok:hover { background: var(--hover-2); }
.ops-kd-ok { display: block; margin: 14px 0 6px auto; padding: 8px 18px; }
.ops-team:hover { color: var(--text); }
.ops-team-pop {
  position: fixed; inset: 0; z-index: 36; display: grid; place-items: center; padding: 18px;
}
.ops-team-back { position: absolute; inset: 0; border: 0; background: var(--overlay); cursor: pointer; }
.ops-team-card {
  position: relative; z-index: 1; width: min(960px, 100%); max-height: min(78vh, 720px); overflow: auto;
  background: var(--elev); border: 1px solid var(--line-strong); border-radius: 16px;
  box-shadow: var(--shadow); padding: 16px 18px 12px;
}
.ops-team-card.ops-kd-card { width: min(980px, 100%); max-height: min(78vh, 720px); }
.ops-team-card header { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.ops-team-card h2 { margin: 0; font-size: 18px; font-weight: 650; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ops-team-x {
  width: 32px; height: 32px; flex: none; border-radius: 8px; border: 0;
  background: var(--chip); color: var(--text); font-size: 20px; line-height: 1; cursor: pointer;
}
.ops-team-x:hover { background: var(--hover-2); }
.ops-team-head, .ops-team-line {
  display: grid;
  grid-template-columns: 11rem minmax(8rem, 1.4fr) 4.6rem 4rem 8.8rem 11.2rem;
  gap: 12px; align-items: center;
}
.ops-team-head { padding: 0 8px 8px; color: var(--faint); font-size: 11px; letter-spacing: 0.03em; text-transform: uppercase; text-align: center; }
.ops-team-line {
  width: 100%; text-align: center; font: inherit; color: inherit; font-size: 13px;
  border: 0; border-top: 1px solid var(--line); background: transparent;
  padding: 9px 8px; cursor: pointer; border-radius: 8px;
}
.ops-team-line:hover { background: var(--hover); }
.ops-team-line span, .ops-team-line b, .ops-team-head span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ops-team-head span { overflow: visible; text-overflow: clip; }
.ops-team-line b { font-weight: 650; }
.ops-team-line span:first-child, .ops-team-line span:nth-child(5) { font-variant-numeric: tabular-nums; }
.ops-yes { color: var(--ok); font-weight: 700; }
.ops-team-empty { padding: 22px 8px 16px; color: var(--muted); }
.ops-kd-versus {
  display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 14px; align-items: center; margin: 0 0 12px; font-size: 14px;
}
.ops-kd-versus div { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ops-kd-versus div:first-child { align-items: flex-end; text-align: right; }
.ops-kd-versus div:last-child { align-items: flex-start; text-align: left; }
.ops-kd-versus b { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 700; }
.ops-kd-versus span { color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; }
.ops-kd-versus em { font-style: normal; font-weight: 750; color: var(--text-2); }
@media (max-width: 760px) {
  .ops-team-pop { padding: 10px; }
  .ops-team-head, .ops-team-line { min-width: 860px; }
  .ops-kd-head, .ops-kd-line { min-width: 640px; }
  .ops-kd-hits, .ops-kd-hit { min-width: 760px; }
  .ops-kd-versus { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .ops-kd-versus div, .ops-kd-versus div:first-child, .ops-kd-versus div:last-child { align-items: center; text-align: center; }
}
.ops-empty { padding: 28px 16px; color: var(--muted); text-align: center; }
.ping.warn { color: var(--gold); font-weight: 700; }
.ping.bad { color: var(--warn); font-weight: 700; }
@keyframes desk-in {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}
@container (max-width: 1180px) {
  .ops-cols, .ops-row { font-size: 11px; gap: 2px 4px; }
  .ops-cols { font-size: 9px; padding: 6px 8px; }
  .ops-row { padding: 5px 8px; }
  .ops .avatar { width: 22px; height: 22px; }
  .ops .steamid { font-size: 10px; }
}
@container (max-width: 860px) {
  .ops-meters { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .ops-cols, .ops-row { font-size: 10px; }
}
@container (max-width: 640px) {
  .ops-top { grid-template-columns: 1fr; }
  .ops-link { text-align: left; }
  .ops-link small { max-width: none; white-space: normal; }
  .ops-meters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ops-meters span:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .ops-cols, .ops-row { font-size: 10px; gap: 2px 3px; }
  .ops .avatar { width: 18px; height: 18px; }
}
.live {
  display: inline-flex; align-items: center; gap: 8px;
  background: #173528; color: #8ee0b0; border-radius: 999px; padding: 6px 12px; font-size: 13px; font-weight: 700;
}
.live::before {
  content: "";
  width: 8px; height: 8px; border-radius: 50%;
  background: #3dce86;
  box-shadow: 0 0 0 0 rgba(61, 206, 134, 0.55);
  animation: pulse 1.6s ease infinite;
}
.live.off { background: #2a2222; color: #e7a0a0; }
.live.off::before { background: #d64545; animation: none; box-shadow: none; }
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 18px; }
.hook-page { max-width: 640px; }
.hook-card {
  margin-top: 18px; background: var(--elev); border: 1px solid var(--line); border-radius: 16px; padding: 18px;
}
.hook-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.hook-card b { display: block; font-size: 18px; font-weight: 700; letter-spacing: -0.02em; }
.hook-card p { margin: 4px 0 0; color: var(--muted); font-size: 14px; line-height: 1.4; }
.hook-state {
  flex: none; height: 28px; padding: 0 10px; border-radius: 999px;
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(61, 206, 134, 0.12); color: var(--ok); font-size: 12px; font-weight: 700;
}
.hook-state::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.hook-state[hidden] { display: none; }
.hook-field { display: flex; gap: 8px; align-items: center; margin-top: 16px; }
.hook-field input { flex: 1; min-width: 0; }
.hook-field .review-btn { flex: none; height: 40px; }
.hook-field .review-btn[hidden] { display: none; }
.hook-card input {
  width: 100%; height: 40px; border-radius: 10px; border: 1px solid var(--line); background: var(--inset);
  color: inherit; padding: 0 12px; font-size: 14px;
}
.hook-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
@media (max-width: 640px) {
  .hook-page { max-width: none; }
  .hook-card { padding: 14px; }
  .hook-top { flex-direction: column; align-items: flex-start; }
  .hook-field { flex-direction: column; align-items: stretch; }
  .hook-field .review-btn, .hook-actions .review-btn { width: 100%; height: 42px; }
}
.fleet-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.fleet-head h1 { margin: 0; font-size: 28px; font-weight: 650; letter-spacing: -0.03em; }
.fleet-head p { margin: 6px 0 0; color: var(--muted); font-size: 14px; }
.fleet-form {
  display: grid; grid-template-columns: 1.2fr 1.2fr 0.7fr 1fr auto; gap: 8px; margin-top: 16px;
}
.fleet-form[hidden] { display: none; }
.fleet-form input {
  height: 38px; border-radius: 10px; border: 1px solid var(--line); background: var(--inset);
  color: inherit; padding: 0 12px;
}
.fleet-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 18px; }
.fleet-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 14px; margin-top: 16px; }
.fleet-card {
  background: var(--elev); border: 1px solid var(--line); border-radius: 16px; padding: 16px 18px 14px;
  animation: rise 0.45s var(--ease) both; cursor: pointer;
}
.fleet-card.on { border-color: rgba(61, 206, 134, 0.45); }
.fleet-card header b i.wait { background: #e0b15a; box-shadow: 0 0 0 4px rgba(224, 177, 90, 0.16); }
.fleet-card header { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.fleet-card header b { display: flex; align-items: center; gap: 8px; font-size: 18px; font-weight: 720; }
.fleet-card header b i {
  width: 8px; height: 8px; border-radius: 50%; background: #6d645c; flex: none;
}
.fleet-card header b i.on { background: #3dce86; box-shadow: 0 0 0 4px rgba(61, 206, 134, 0.16); }
.fleet-card header small { display: block; margin-top: 4px; color: var(--muted); font-size: 13px; }
.fleet-side { display: flex; align-items: center; gap: 8px; }
.fleet-pill {
  padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 720;
  color: var(--muted); background: var(--hover);
}
.fleet-pill.on { color: #8ee0b4; background: rgba(61, 206, 134, 0.16); }
.fleet-chosen {
  padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 720;
  color: var(--accent); background: var(--hover);
}
.fleet-pill.wait { color: #e0b15a; background: rgba(224, 177, 90, 0.16); }
.fleet-drop {
  width: 28px; height: 28px; border: 0; border-radius: 8px; background: transparent; color: var(--muted);
  display: grid; place-items: center; padding: 0;
}
.fleet-drop svg { width: 16px; height: 16px; }
.fleet-drop:hover { color: #e7a0a0; background: var(--hover); }
.fleet-line { margin: 18px 0 0; color: var(--muted); font-size: 13px; }
.fleet-line b { color: inherit; font-weight: 700; }
.fleet-fps { margin-top: 16px; }
.fleet-fps span { display: block; color: var(--muted); font-size: 13px; }
.fleet-fps b { display: block; margin-top: 4px; font-size: 28px; font-weight: 650; letter-spacing: -0.03em; }
.fleet-open {
  margin-top: 18px; border: 0; background: transparent; color: var(--accent); padding: 0;
  font-weight: 700; font-size: 14px;
}
.fleet-open:hover { filter: brightness(1.08); }
.stat {
  background: var(--elev); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px;
  transition: transform 0.25s var(--ease), border-color 0.25s, box-shadow 0.25s, background 0.25s;
  animation: rise 0.45s var(--ease) both;
}
.stat:nth-child(2) { animation-delay: 0.05s; }
.stat:nth-child(3) { animation-delay: 0.1s; }
.stat:nth-child(4) { animation-delay: 0.15s; }
.stat:hover {
  transform: translateY(-4px);
  border-color: rgba(243, 230, 216, 0.28);
  background: var(--chip);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.32);
}
.stat span { display: block; color: var(--muted); font-size: 13px; }
.stat b { display: block; margin-top: 8px; font-size: 28px; font-weight: 650; letter-spacing: -0.03em; }
.online-tools { margin-top: 16px; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.online-search { margin-top: 0; max-width: 360px; flex: 1; }
.card-grid { margin-top: 16px; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); gap: 12px; }
.pcard {
  background: var(--elev); border: 1px solid var(--line); border-radius: 14px; padding: 14px;
  transition: transform 0.28s var(--ease), border-color 0.25s, box-shadow 0.28s, background 0.25s;
  animation: rise 0.5s var(--ease) both;
}
.card-grid .pcard:nth-child(2) { animation-delay: 0.04s; }
.card-grid .pcard:nth-child(3) { animation-delay: 0.08s; }
.card-grid .pcard:nth-child(4) { animation-delay: 0.12s; }
.card-grid .pcard:nth-child(5) { animation-delay: 0.16s; }
.card-grid .pcard:nth-child(n+6) { animation-delay: 0.2s; }
.pcard:hover {
  transform: translateY(-6px);
  border-color: rgba(243, 230, 216, 0.32);
  background: var(--chip-2);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.38);
}
.pcard-pills { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 12px; }
.pcard-pills:empty { display: none; }
.live-pill {
  display: inline-flex; align-items: center; padding: 3px 10px; border-radius: 999px;
  font-size: 12px; font-weight: 750;
}
.live-pill.on { color: var(--mint); background: rgba(61, 206, 134, 0.16); }
.live-pill.sleep { color: var(--ice); background: rgba(80, 140, 255, 0.16); }
.live-pill.wait { color: var(--accent); background: rgba(243, 230, 216, 0.12); }
.live-pill.off { color: var(--muted); background: var(--hover); }
.avatar-wrap { position: relative; flex: none; }
.pcard .avatar { width: 48px; height: 48px; border-radius: 12px; font-size: 16px; }
.avatar-live {
  position: absolute; right: -2px; bottom: -2px; width: 13px; height: 13px;
  border-radius: 50%; background: #3dce86; border: 2px solid var(--elev);
  box-shadow: 0 0 0 0 rgba(61, 206, 134, 0.45);
}
.pcard-top { display: flex; gap: 10px; align-items: center; min-width: 0; }
.pcard-top > div { min-width: 0; }
.pcard .player-name, .pcard .steamid span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hp { margin-top: 12px; height: 6px; border-radius: 999px; background: var(--track); overflow: hidden; }
.hp i { display: block; height: 100%; width: 0; animation: bar 0.7s var(--ease) forwards; border-radius: inherit; }
.pcard-meta, .pcard-server, .belt-label { margin-top: 8px; color: var(--muted); font-size: 12px; }
.pcard-server { overflow-wrap: anywhere; line-height: 1.35; }
.client-pill {
  display: inline-flex; align-items: center;
  padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 750;
}
.client-pill.license { color: var(--mint); background: rgba(125, 222, 168, 0.14); }
.client-pill.pirate { color: var(--gold); background: rgba(227, 179, 65, 0.16); }
.belt { display: flex; gap: 6px; margin-top: 8px; }
.belt.inventory { flex-wrap: wrap; }
.belt span {
  position: relative;
  width: 36px; height: 36px; border-radius: 8px; background: var(--inset); border: 1px solid var(--line);
  display: grid; place-items: center; overflow: hidden;
  transition: transform 0.2s var(--ease), border-color 0.2s, background 0.2s;
}
.belt img { width: 28px; height: 28px; object-fit: contain; image-rendering: auto; pointer-events: none; }
.belt b {
  position: absolute; right: 2px; bottom: 0;
  font-size: 10px; font-weight: 750; color: #fff; font-style: normal;
  text-shadow: 0 1px 2px #000, 0 0 4px #000;
}
.pcard:hover .belt span { border-color: rgba(255,255,255,0.14); }
.belt span:hover { transform: translateY(-3px); background: var(--menu); }
.placeholder { max-width: 520px; padding-top: 12px; animation: rise 0.45s var(--ease) both; }
.placeholder p { color: var(--muted); line-height: 1.5; }
.page-head, .online-head, .ops-top, .toolbar, .table-wrap, .rcon-setup { animation: rise 0.42s var(--ease) both; }

.drawer-backdrop {
  position: fixed; inset: 0; background: var(--overlay); z-index: 20;
  animation: fade 0.25s ease;
}
.drawer[hidden] { display: none !important; }
.drawer.open {
  position: fixed; inset: 28px; width: auto; height: auto; max-width: 1080px; margin: auto;
  background: var(--soft); border: 1px solid var(--line); border-radius: 18px;
  z-index: 21; padding: 0; box-shadow: var(--shadow); overflow: hidden;
  display: grid; grid-template-rows: auto minmax(0, 1fr);
  animation: drawer-in 0.34s var(--ease);
}
.drawer .avatar { width: 52px; height: 52px; font-size: 18px; flex: none; }
.profile-head { display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-bottom: 1px solid var(--line); }
.profile-id { min-width: 0; flex: 1; }
.profile-id h2 { margin: 0; font-size: 22px; display: flex; align-items: center; gap: 8px; overflow: hidden; }
.profile-id h2 { text-overflow: ellipsis; }
.profile-sub { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-top: 4px; color: var(--faint); font-size: 13px; }
.profile-tools { display: flex; align-items: center; gap: 8px; flex: none; }
.profile-body { display: grid; grid-template-columns: 180px minmax(0, 1fr); min-height: 0; overflow: hidden; }
.profile-nav { display: flex; flex-direction: column; gap: 4px; padding: 12px; border-right: 1px solid var(--line); overflow: auto; }
.profile-nav button {
  border: 0; background: transparent; color: var(--text-2); text-align: left;
  border-radius: 10px; padding: 10px 12px; font-weight: 650;
  transition: background 0.2s var(--ease), color 0.2s, transform 0.2s var(--ease);
}
.profile-nav button:hover { background: var(--hover); }
.profile-nav button.on { background: var(--accent); color: var(--accent-text); }
.profile-main { overflow: auto; padding: 16px; min-width: 0; animation: fade 0.28s var(--ease); }
.profile-fights { container-type: inline-size; min-width: 0; }
.profile-fights .ops-kd-score { text-align: center; }
.profile-fights .ops-aim-row { justify-content: safe center; }
.profile-fights .ops-kd-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.profile-fights .ops-kd-head,
.profile-fights .ops-kd-line { min-width: 520px; }
.profile-fights .ops-kd-hits,
.profile-fights .ops-kd-hit { min-width: 680px; }
@container (max-width: 520px) {
  .profile-fights .ops-aim-row { gap: 6px; }
  .profile-fights .ops-aim { width: 44px; }
  .profile-fights .ops-aim svg { width: 44px; }
  .profile-fights .ops-aim figcaption { font-size: 10px; }
}
.profile-grid { display: grid; grid-template-columns: 1.3fr 0.7fr; gap: 12px; }
.profile-card { border: 1px solid var(--line); border-radius: 14px; padding: 14px; background: var(--inset); }
.profile-card h3 { margin: 0 0 8px; font-size: 12px; letter-spacing: 0.06em; color: var(--faint); font-weight: 700; }
.profile-card.sessions { margin-top: 12px; }
.session-scroll { max-height: 320px; overflow: auto; }
.session-table thead th { position: sticky; top: 0; background: var(--inset); z-index: 1; }
.session-table { width: 100%; border-collapse: collapse; min-width: 680px; }
.session-hours { font-variant-numeric: tabular-nums; white-space: nowrap; }
.session-table th {
  text-align: center; font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--faint); font-weight: 700; padding: 8px 10px 10px; border-bottom: 1px solid var(--line);
}
.session-table td {
  padding: 12px 10px; border-bottom: 1px solid var(--hair);
  font-size: 13px; vertical-align: middle; text-align: center;
}
.session-table tr:last-child td { border-bottom: 0; }
.session-pill {
  display: inline-flex; align-items: center; padding: 3px 10px; border-radius: 999px;
  background: var(--track); color: var(--text-2); font-size: 12px; font-weight: 700;
}
.session-pill.in { background: rgba(61, 206, 134, 0.18); color: var(--mint); }
.team-history { margin-top: 12px; }
.team-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 168px), 1fr)); gap: 8px; }
.team-mate {
  display: flex; align-items: center; gap: 8px; min-width: 0; width: 100%;
  padding: 8px; border: 1px solid var(--line); border-radius: 12px; background: var(--elev);
  color: inherit; font: inherit; text-align: left; cursor: pointer;
}
.team-mate .avatar { width: 36px; height: 36px; border-radius: 10px; font-size: 13px; flex: none; }
.team-mate span { min-width: 0; display: grid; }
.team-mate b { font-weight: 650; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.team-mate i { color: var(--faint); font-style: normal; font-size: 11px; }
.team-mate i.lead { color: var(--gold); }
.team-mate.self i { color: var(--mint); }
.past-team { padding: 12px 0; border-bottom: 1px solid var(--line); }
.past-team:last-child { border-bottom: 0; padding-bottom: 0; }
.past-team header { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 8px; }
.past-team time { color: var(--faint); font-size: 12px; }
.profile-card .fact { border-bottom-color: var(--line); }
.profile-note { margin: 10px 0 0; color: var(--muted); }
.profile-list, .profile-chat { display: grid; gap: 8px; }
.profile-chat { max-height: 520px; overflow: auto; }
.name-list { display: grid; gap: 8px; }
.name-row {
  display: flex; align-items: center; gap: 10px; min-width: 0;
  padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--elev);
}
.name-row b { min-width: 0; overflow-wrap: anywhere; font-weight: 650; }
.name-row time { margin-left: auto; color: var(--faint); font-size: 12px; white-space: nowrap; }
.name-row .copy { flex: none; }
.profile-chat .chat-line { grid-template-columns: 78px 72px minmax(0, 1fr); padding-left: 0; }
.home-title { margin: 14px 0 8px; font-size: 14px; }
.home-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 10px; }
.home-card {
  border: 1px solid var(--line); border-radius: 14px; padding: 12px; background: var(--inset);
  animation: rise 0.45s var(--ease) both;
  transition: transform 0.25s var(--ease), border-color 0.25s, box-shadow 0.25s;
}
.home-card:nth-child(2) { animation-delay: 0.05s; }
.home-card:nth-child(3) { animation-delay: 0.1s; }
.home-card:nth-child(n+4) { animation-delay: 0.15s; }
.home-card:hover { transform: translateY(-4px); border-color: rgba(243, 230, 216, 0.28); box-shadow: 0 16px 32px rgba(0,0,0,0.32); }
.home-card header { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.home-card header b { font-size: 14px; }
.home-card header span { color: var(--faint); font-size: 12px; }
.home-count { margin-left: auto; }
.home-people { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.home-person { display: flex; align-items: center; gap: 6px; min-width: 0; max-width: 100%; padding: 0; border: 0; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.home-person .avatar { width: 28px; height: 28px; border-radius: 8px; font-size: 11px; }
.home-person span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; }
.home-person.self span { color: var(--mint); }
.home-items { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.home-items span {
  position: relative; width: 42px; height: 42px; border-radius: 8px; background: var(--menu);
  display: grid; place-items: center;
  transition: transform 0.2s var(--ease), background 0.2s;
}
.home-items span:hover { transform: translateY(-3px); background: var(--elev-2); }
.homes-wait { animation: pulse-soft 1.2s ease infinite; }
@keyframes pulse-soft { 50% { opacity: 0.45; } }
.home-items img { width: 32px; height: 32px; object-fit: contain; }
.home-items b { position: absolute; right: 2px; bottom: 1px; font-size: 10px; }
.home-empty { margin-top: 8px; color: var(--faint); font-size: 12px; }
.ban-box { margin-top: 12px; display: grid; gap: 10px; }
.ban-box .span-grid, .ban-box .reason-picks, .ban-box .desk-actions { margin: 0; }
tr[data-open], .pcard[data-open] { cursor: pointer; }
.status {
  display: inline-flex; margin-top: 8px; padding: 3px 8px; border-radius: 999px;
  font-size: 12px; font-weight: 650;
}
.status.on { background: rgba(61,206,134,0.15); color: var(--ok); }
.status.off { background: var(--hover); color: var(--muted); }
.facts { margin-top: 18px; display: grid; gap: 10px; }
.fact {
  display: flex; justify-content: space-between; gap: 12px;
  padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 14px;
  animation: rise 0.35s var(--ease) both;
}
.fact:nth-child(2) { animation-delay: 0.04s; }
.fact:nth-child(3) { animation-delay: 0.08s; }
.fact:nth-child(4) { animation-delay: 0.12s; }
.fact:nth-child(5) { animation-delay: 0.16s; }
.fact:nth-child(6) { animation-delay: 0.2s; }
.fact span { color: var(--muted); }
.fact b .copy { display: inline-grid; vertical-align: -3px; margin-left: 4px; }

.toast {
  position: fixed; bottom: 18px; left: 50%; transform: translateX(-50%) translateY(12px);
  background: var(--accent); color: var(--accent-text);
  padding: 10px 14px; border-radius: 10px; font-size: 13px; font-weight: 650;
  opacity: 0; pointer-events: none; transition: 0.25s var(--ease); z-index: 30;
  box-shadow: 0 12px 30px rgba(0,0,0,0.35);
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

.content.quiet .page-head,
.content.quiet .online-head,
.content.quiet .ops-top,
.content.quiet .ops-meters span,
.content.quiet .ops-board,
.content.quiet .ops-row,
.content.quiet .toolbar,
.content.quiet .table-wrap,
.content.quiet .stat,
.content.quiet .pcard,
.content.quiet tbody tr,
.content.quiet .placeholder,
.content.quiet .rcon-setup,
.content.quiet .hp i { animation: none; }
.content.quiet .hp i { width: var(--hp, 0%); }
.content.quiet .pcard.leaving { animation: leave-card 5.2s ease forwards; }

@keyframes rise {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes drawer-in { from { opacity: 0; transform: translateY(18px) scale(0.98); } to { opacity: 1; transform: none; } }
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(61, 206, 134, 0.45); }
  70% { box-shadow: 0 0 0 7px rgba(61, 206, 134, 0); }
  100% { box-shadow: 0 0 0 0 rgba(61, 206, 134, 0); }
}
@keyframes hot {
  0%, 100% { box-shadow: 0 0 0 0 rgba(214, 69, 69, 0.35); }
  50% { box-shadow: 0 0 0 5px rgba(214, 69, 69, 0); }
}
@keyframes bar { to { width: var(--hp, 100%); } }

@media (max-width: 1180px) {
  .ban-list { overflow-x: auto; }
  .ban-head, .ban-card { min-width: 1060px; }
}
@media (max-width: 1100px) {
  .content { padding: 22px 18px 36px; }
  .stat b { font-size: 24px; }
}

@media (max-width: 960px) {
  html, body, .app { height: 100dvh; }
  .join-board { grid-template-columns: 1fr; }
  .cohorts { grid-template-columns: 1fr 1fr; }
  .cohort.c30 { grid-column: 1 / -1; }
  .player-name { flex-wrap: wrap; }
  .sidebar {
    position: fixed; z-index: 15; transform: translateX(-105%);
    transition: transform 0.32s var(--ease);
  }
  .sidebar.open { transform: none; box-shadow: var(--shadow); }
  .scrim:not([hidden]) {
    display: block;
    position: fixed; inset: 0; z-index: 14;
    background: var(--overlay);
    animation: fade 0.25s ease;
  }
  .icon-btn.menu-btn { display: grid; }
  .user-name { display: none; }
  .content { padding: 18px 14px 32px; }
  .ops-board {
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    scroll-snap-type: x proximity;
    box-shadow: inset -18px 0 14px -14px rgba(0, 0, 0, 0.55);
  }
  .ops-row { scroll-snap-align: none; }
  .ops-cols, .ops-row {
    width: max-content;
    min-width: 1184px;
    grid-template-columns:
      64px 156px 150px 52px
      48px 48px 56px 76px
      58px 52px 72px 124px 48px 84px;
    gap: 0 8px;
    font-size: 12px;
  }
  .ops-cols { font-size: 10px; padding: 8px 0; }
  .ops-row { padding: 8px 0; }
  .ops .avatar { width: 26px; height: 26px; }
  .ops-cols .ops-sort:first-child,
  .ops-flag,
  .ops-cols .ops-sort:nth-child(2),
  .ops-who {
    position: sticky;
    z-index: 2;
    background: var(--elev);
  }
  .ops-cols .ops-sort:first-child,
  .ops-flag { left: 0; padding-left: 10px; }
  .ops-cols .ops-sort:nth-child(2),
  .ops-who { left: 72px; }
  .ops-who, .ops-cols .ops-sort:nth-child(2) { box-shadow: 10px 0 12px -10px rgba(0, 0, 0, 0.55); }
  .ops-row:hover .ops-flag,
  .ops-row:hover .ops-who { background: var(--elev-2); }
  .toolbar { flex-direction: column; align-items: stretch; gap: 10px; }
  .local-search, .online-search { width: 100%; height: 40px; min-height: 40px; flex: none; }
  .toolbar > .review-btn { width: 100%; min-height: 40px; }
  .ban-page .toolbar { align-items: stretch; }
  .ban-page .filters { width: 100%; height: auto; flex-wrap: wrap; border-radius: 16px; }
  .ban-top { flex-direction: column; align-items: stretch; gap: 12px; }
  .ban-issue { width: 100%; height: 40px; }
  .ban-pager { flex-direction: column; align-items: flex-start; gap: 10px; }
  .ban-pages { width: 100%; }
  .page-btn, .ban-gap { height: 34px; }
  .page-btn { min-width: 34px; }
  .ban-form-row { grid-template-columns: 1fr; }
  .ban-list { overflow: visible; background: transparent; border: 0; }
  .ban-head { display: none; }
  .ban-head, .ban-card { min-width: 0; }
  .ban-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px 12px;
    width: auto;
    margin-top: 10px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--elev);
    min-height: 0;
  }
  .ban-card { position: relative; animation: rise 0.4s var(--ease) both; }
  .ban-card:hover { transform: none; }
  .ban-card .ban-who { grid-column: 1 / -1; grid-row: 1; width: 100%; padding-right: 108px; }
  .ban-card .status-pill { position: absolute; top: 12px; right: 12px; }
  .ban-card .ban-cell {
    grid-column: 1 / -1;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    width: 100%;
    overflow: visible;
    white-space: normal;
    text-overflow: unset;
  }
  .ban-card .ban-cell::before {
    content: attr(data-label);
    color: var(--faint);
    font-size: 11px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    font-weight: 650;
    flex: none;
    padding-top: 2px;
  }
  .ban-card .ban-cell > span,
  .ban-card .ban-reason span {
    min-width: 0;
    overflow: visible;
    text-overflow: unset;
    white-space: normal;
    text-align: right;
    overflow-wrap: anywhere;
  }
  .ban-who .player-name, .ban-who .steamid span { white-space: normal; overflow-wrap: break-word; }
  .filters { overflow: visible; width: 100%; flex-wrap: wrap; border-radius: 16px; }
  .filter { white-space: nowrap; min-height: 32px; }
  .fleet-head { flex-direction: column; }
  .fleet-grid { grid-template-columns: 1fr; }
  .fleet-card header b { min-width: 0; overflow-wrap: anywhere; }
  .pcard .belt { width: 100%; }
  .pcard .belt span { width: auto; flex: 1 1 0; max-width: 44px; min-width: 0; }
  .drawer.open {
    inset: 0; width: 100%; height: 100dvh; max-width: none; max-height: 100dvh;
    margin: 0; border: 0; border-radius: 0;
  }
  #drawer-close {
    width: 44px; height: 44px; border-radius: 12px;
    color: #ff5a4a; background: rgba(226, 90, 66, 0.2);
  }
  #drawer-close:hover, #drawer-close:active { color: #ff5a4a; background: rgba(226, 90, 66, 0.32); }
  #drawer-close svg { width: 24px; height: 24px; }
  #drawer-close svg path { stroke-width: 2.2; }
  .profile-head { padding-top: max(12px, env(safe-area-inset-top)); }
  .profile-main {
    min-height: 0;
    overflow: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    padding-bottom: max(16px, env(safe-area-inset-bottom));
  }
  .profile-grid { display: flex; flex-direction: column; }
  .profile-grid > .profile-card:nth-child(2) { order: -1; }
  .drawer .belt.inventory {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 6px;
    width: 100%;
  }
  .drawer .belt.inventory span {
    width: auto; max-width: none; min-width: 0; height: auto;
    aspect-ratio: 1; flex: none;
  }
  .drawer .belt.inventory img { width: 72%; height: 72%; }
  .drawer .belt.inventory b { font-size: 11px; }
  .fact b { min-width: 0; overflow-wrap: anywhere; text-align: right; }
  .chat-name { white-space: normal; overflow: visible; text-overflow: unset; text-align: left; overflow-wrap: anywhere; }
  .carousel-box { inset: 8px; gap: 6px; }
  .carousel-nav, .carousel-close { width: 36px; height: 36px; }
  .carousel-frame { height: min(68dvh, 820px); }
  .carousel-figure figcaption {
    white-space: normal; max-width: calc(100vw - 96px);
    flex-wrap: wrap; justify-content: center; text-align: center;
  }
  .fleet-head h1 { font-size: 22px; }
  .fleet-form, .fleet-stats { grid-template-columns: 1fr; }
  .stat-grid { grid-template-columns: 1fr 1fr; }
  .table-wrap { overflow: visible; }
  table, thead, tbody, th, td, tr { display: block; }
  table { min-width: 0; }
  thead { display: none; }
  tbody tr {
    margin-top: 12px;
    background: var(--elev);
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 6px 4px;
    transition: transform 0.25s var(--ease), border-color 0.25s, box-shadow 0.25s;
  }
  tbody tr { animation: rise 0.38s var(--ease) both; }
  tbody tr:hover { transform: none; border-color: rgba(243, 230, 216, 0.28); box-shadow: 0 14px 30px rgba(0,0,0,0.3); }
  td {
    display: flex; justify-content: space-between; align-items: center; gap: 12px;
    border-bottom: 1px solid var(--line);
    padding: 10px 12px;
  }
  td:last-child { border-bottom: 0; }
  td[data-label="Игрок"], td[data-label="Ник"] { flex-direction: column; align-items: flex-start; gap: 8px; }
  td[data-label="Игрок"] .player, td[data-label="Ник"] .player { width: 100%; min-width: 0; }
  td.col-act { width: auto; justify-content: space-between; }
  td.col-act .review-btn { flex: 1; min-height: 40px; }
  .who, .open-count { min-width: 0; }
  .steamid span { overflow-wrap: anywhere; }
  td::before {
    content: attr(data-label);
    color: var(--faint);
    font-size: 11px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    font-weight: 650;
  }
  td[data-label=""]::before, td:not([data-label])::before { content: none; }
  tr:hover td { background: transparent; }
  .player { min-width: 0; }
  .online-tools { flex-direction: column; align-items: stretch; }
  .online-search { max-width: none; }
  .profile-body { grid-template-columns: 1fr; grid-template-rows: auto minmax(0, 1fr); }
  .profile-nav {
    flex-direction: row; border-right: 0; border-bottom: 1px solid var(--line);
    overflow: auto; box-shadow: inset -16px 0 12px -14px rgba(0, 0, 0, 0.5);
  }
  .profile-nav button { white-space: nowrap; }
  .profile-grid, .home-grid, .card-grid, .sign-grid { grid-template-columns: 1fr; }
  .sign-card .shot-frame { aspect-ratio: 4 / 3; max-height: none; }
  .sign-foot { align-items: flex-start; }
  .sign-who b { white-space: normal; }
  .sign-act { width: 44px; height: 44px; }
  .sign-meta { padding: 6px 12px 16px; }
  .sign-meta div { grid-template-columns: 76px minmax(0, 1fr); font-size: 14px; }
  #sign-zoom .carousel-box { inset: 8px; gap: 6px; }
  #sign-zoom .carousel-figure figcaption {
    white-space: normal;
    max-width: calc(100% - 20px);
    flex-wrap: wrap;
    justify-content: center;
    text-align: center;
  }
  .profile-main { padding: 12px; }
  .profile-head { align-items: flex-start; }
  .profile-id h2 { font-size: 18px; white-space: normal; overflow-wrap: anywhere; }
  .session-scroll { max-height: 280px; overflow: auto; }
  .session-table { min-width: 0; }
  .session-table td, .session-table td:last-child { justify-content: space-between; text-align: right; overflow-wrap: anywhere; }
  .session-table tbody tr { margin-top: 8px; }
  .chat-line, .profile-chat .chat-line {
    grid-template-columns: auto auto minmax(0, 1fr);
    grid-template-areas: "time channel name" "msg msg msg";
    row-gap: 2px;
  }
  .chat-time { grid-area: time; }
  .chat-channel { grid-area: channel; }
  .chat-name { grid-area: name; text-align: left; }
  .chat-colon { display: none; }
  .chat-msg { grid-area: msg; }
  .report-item, .report-detail td { padding-left: 12px; }
  .report-item { grid-template-columns: 1fr; gap: 4px; }
  .desk {
    left: 8px;
    right: 8px;
    top: max(8px, env(safe-area-inset-top));
    bottom: max(8px, env(safe-area-inset-bottom));
    width: auto;
    max-height: none;
    transform: none;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-radius: 16px;
  }
  .desk-head, .desk-body, .desk-foot { padding: 14px; }
  .desk-head { align-items: flex-start; flex: none; }
  .desk-head h2 { font-size: 16px; line-height: 1.3; overflow-wrap: anywhere; }
  .desk-x { flex: none; }
  .desk-body {
    flex: 1 1 auto;
    min-height: 0;
    overflow: auto;
    -webkit-overflow-scrolling: touch;
  }
  .desk-player { flex-direction: column; align-items: stretch; }
  .desk-player .player { width: 100%; justify-content: flex-start; }
  .desk-stats { width: 100%; }
  .desk-stat { flex: 1 1 0; min-width: 0; }
  .span-grid { grid-template-columns: 1fr 1fr; }
  .pair { grid-template-columns: 1fr; }
  .pair-card .player { width: 100%; justify-content: flex-start; align-items: flex-start; }
  .pair-card .player-name,
  .pair-card .steamid span,
  .complaint-meta b,
  .complaint-time { white-space: normal; overflow-wrap: anywhere; text-align: left; }
  .complaint-top { flex-direction: column; align-items: stretch; }
  .complaint-who { align-items: flex-start; width: 100%; }
  .complaint-meta { align-items: flex-start; }
  .complaint .review-btn { width: 100%; min-height: 40px; }
  .reason-pick { max-width: 100%; overflow-wrap: anywhere; text-align: left; }
  .desk-foot { position: static; flex: none; flex-direction: column; align-items: stretch; }
  .desk-actions { width: 100%; margin-left: 0; flex-direction: column; }
  .desk-actions .review-btn, .desk-actions .ban-close { width: 100%; min-height: 40px; }
  .reason-chips span, .server-cell, .open-count span { overflow-wrap: anywhere; }
  .report-table { min-width: 0; }
  .report-table tbody tr {
    display: grid;
    grid-template-columns: 36px minmax(0, 1fr);
    gap: 0;
    padding: 0;
    overflow: hidden;
  }
  .report-table td {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 4px;
    min-width: 0;
    width: auto;
    text-align: left;
    white-space: normal;
  }
  .report-table td::before { letter-spacing: 0.04em; }
  .report-table td.col-rank,
  .report-table td[data-label="Игрок"] { border-bottom: 0; }
  .report-table td.col-rank {
    grid-column: 1;
    grid-row: 1;
    padding: 14px 0 8px 12px;
    color: var(--faint);
  }
  .report-table td.col-rank::before,
  .report-table td[data-label="Игрок"]::before { content: none; }
  .report-table td[data-label="Игрок"] {
    grid-column: 2;
    grid-row: 1;
    padding: 12px 12px 8px 8px;
  }
  .report-table td:not(.col-rank):not([data-label="Игрок"]) { grid-column: 1 / -1; }
  .report-table td.col-act,
  .report-table td.status-cell { align-items: stretch; }
  .report-table td[colspan] { grid-column: 1 / -1; align-items: center; text-align: center; }
  .report-table .player,
  .report-table .steamid { width: 100%; justify-content: flex-start; }
  .report-table .player-name,
  .report-table .steamid span,
  .report-table .seen { white-space: normal; overflow-wrap: anywhere; text-align: left; }
  .report-table .open-count { min-width: 0; width: 100%; justify-items: start; }
  .report-table .reason-chips { width: 100%; }
  .report-table td.col-act .review-btn { width: 100%; }
  .ban-page .filters { height: auto; min-height: 40px; justify-content: flex-start; }
  .ban-card .ban-who { padding-right: 0; align-items: flex-start; }
  .ban-card .status-pill {
    position: static;
    grid-column: 1 / -1;
    justify-self: start;
    width: fit-content;
    max-width: 100%;
    white-space: normal;
  }
  .ban-card .ban-cell {
    display: grid;
    grid-template-columns: 88px minmax(0, 1fr);
    align-items: start;
    justify-content: stretch;
    gap: 6px 10px;
    text-align: left;
  }
  .ban-card .ban-cell > span,
  .ban-card .ban-reason span { text-align: left; }
  .ban-form .proof-pick { max-width: 100%; }
  .ban-form .proof-pick span { overflow-wrap: anywhere; }
}

@media (max-width: 640px) {
  .topbar {
    height: auto; flex-wrap: wrap; gap: 8px;
    padding: max(10px, env(safe-area-inset-top)) 12px 10px max(12px, env(safe-area-inset-left));
  }
  .content { padding-bottom: max(32px, env(safe-area-inset-bottom)); }
  .global-search { order: 3; flex: 1 1 100%; max-width: none; margin: 0; height: 40px; min-height: 40px; }
  .ip-ban-btn { align-items: flex-start; }
  .ip-ban-btn b, .ip-ban-btn span { overflow-wrap: anywhere; }
  .page-head h1, .online-head h1, .placeholder h1 { font-size: 22px; }
  .online-head { flex-direction: column; }
  .stat b { font-size: 22px; }
  .rcon-setup input, .rcon-command input, .rcon-setup button, .rcon-command button { width: 100%; }
  .drawer.open { inset: 0; max-width: none; border-radius: 0; }
  .profile-main { padding: 12px 12px max(16px, env(safe-area-inset-bottom)); }
  .profile-head {
    align-items: flex-start; flex-wrap: wrap;
    padding: max(12px, env(safe-area-inset-top)) 12px 12px;
  }
  .profile-id h2 { font-size: 18px; white-space: normal; overflow-wrap: anywhere; }
  .profile-sub { font-size: 12px; gap: 6px 10px; }
  .profile-nav { padding: 8px; gap: 4px; }
  .profile-nav button { padding: 8px 10px; font-size: 13px; }
  .profile-card { padding: 12px; }
  .name-row { flex-wrap: wrap; }
  .name-row time { margin-left: 0; }
  .fact { font-size: 13px; gap: 8px; }
  .profile-tools { width: 100%; margin-left: 0; flex-wrap: wrap; }
  .profile-tools .review-btn, .profile-tools .ban-close { flex: 1; min-height: 40px; }
  .profile-tools .icon-btn { flex: none; }
  .toast { width: calc(100% - 24px); text-align: center; }
  .map-layout { grid-template-columns: 1fr; }
  .map-canvas { width: 100%; }
  .map-filters { width: 100%; }
  .map-filters button { flex: 1; min-height: 36px; }
  .map-side { max-height: none; }
  .map-pin { width: 36px; height: 36px; }
  .map-pin span { display: none; }
  .map-pin.on span { display: block; max-width: 120px; }
  .map-orders { font-size: 14px; }
  .map-orders td, .map-orders th { padding: 8px 4px; }
}

@media (hover: none) {
  .pcard:hover,
  tbody tr:hover,
  .ops-meters span:hover,
  .fleet-card:hover,
  .home-card:hover,
  .review-btn:hover,
  .icon-btn:hover,
  .belt span:hover { transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
}

#gate {
  min-height: 100dvh; display: grid; place-items: center;
  padding: max(24px, env(safe-area-inset-top)) 16px max(24px, env(safe-area-inset-bottom));
}
.gate-card {
  width: min(420px, 100%); padding: 28px; border-radius: 18px;
  background: var(--elev); border: 1px solid var(--line);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
  animation: rise 0.42s var(--ease) both;
}
.gate-card h1 { margin: 0; font-size: 28px; letter-spacing: -0.03em; }
.gate-card p { margin: 8px 0 18px; color: var(--muted); }
.gate-card label { display: grid; gap: 6px; margin-bottom: 12px; color: var(--faint); font-size: 13px; }
.gate-card input {
  height: 42px; border-radius: 10px; border: 1px solid var(--line); background: var(--input);
  color: var(--text); padding: 0 12px; font: inherit;
}
.gate-card .review-btn { width: 100%; min-height: 42px; margin-top: 6px; }
.gate-error { min-height: 18px; margin: 0 0 8px; color: var(--warn); font-size: 13px; }

.staff-page { animation: rise 0.42s var(--ease) both; }
.staff-page h1 { margin: 0; font-size: 28px; letter-spacing: -0.03em; }
.staff-head, .staff-editor-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.staff-title { min-width: 0; }
.staff-title .staff-note { margin: 6px 0 0; }
.staff-actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
.staff-actions .review-btn { height: 38px; }
.staff-search { display: flex; margin: 16px 0 0; max-width: 420px; }
.staff-note { margin: 0; color: var(--faint); font-size: 13px; line-height: 1.4; }
.staff-list {
  display: grid;
  grid-template-columns: minmax(150px, 1.05fr) minmax(160px, 1.4fr) minmax(108px, 140px) 76px 148px 244px;
  column-gap: 16px;
  row-gap: 8px;
  align-items: center;
  margin-top: 14px;
}
.staff-list-edit { grid-template-columns: minmax(150px, 1.05fr) minmax(160px, 1.4fr) minmax(108px, 140px) 76px 148px 148px; }
.staff-list-remove { grid-template-columns: minmax(150px, 1.05fr) minmax(160px, 1.4fr) minmax(108px, 140px) 76px 148px 104px; }
.staff-list-plain { grid-template-columns: minmax(150px, 1.05fr) minmax(160px, 1.4fr) minmax(108px, 140px) 76px minmax(132px, 148px); }
.staff-cols, .staff-card {
  display: grid;
  grid-template-columns: subgrid;
  grid-column: 1 / -1;
  align-items: center;
  min-width: 0;
}
.staff-cols { padding: 0 14px; color: var(--faint); font-size: 11px; letter-spacing: 0.04em; }
.staff-card {
  padding: 10px 14px;
  min-height: 64px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--elev);
}
.staff-empty {
  grid-column: 1 / -1;
  padding: 28px 16px; text-align: center; color: var(--muted);
  border: 1px solid var(--line); border-radius: 16px; background: var(--elev);
}
.staff-person { display: flex; align-items: center; gap: 12px; min-width: 0; }
.staff-person > span:last-child { min-width: 0; display: grid; gap: 3px; }
.staff-person b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 15px; }
.staff-avatar {
  width: 42px; height: 42px; border-radius: 14px; flex: none;
  display: grid; place-items: center; background: #e7cfc4; color: #3a2a28; font-size: 13px; font-weight: 750;
}
.staff-field, .staff-dialog label {
  display: grid; gap: 6px; min-width: 0; color: var(--faint); font-size: 11px; letter-spacing: 0.04em;
}
.staff-mail, .staff-rights, .staff-seen, .staff-role {
  color: var(--text); font-size: 14px; font-weight: 650; letter-spacing: 0; min-width: 0;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.staff-act { display: flex; justify-content: flex-start; align-items: center; gap: 8px; min-width: 0; }
.staff-role-edit { width: 136px; height: 40px; flex: none; padding: 0 10px; }
.staff-dialog select, .staff-field input, .staff-dialog input, .staff-matrix input[type="search"], .staff-matrix input[type="text"] {
  width: 100%; height: 40px; border-radius: 10px; border: 1px solid var(--line); background: var(--input);
  color: var(--text); padding: 0 12px; font: inherit; letter-spacing: 0; font-size: 14px;
}
.staff-status { display: inline-flex; align-items: center; gap: 6px; color: var(--faint); font-size: 12px; letter-spacing: 0; }
.staff-status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--faint); }
.staff-status.on { color: var(--mint); }
.staff-status.on::before { background: var(--mint); }
.staff-drop { width: 96px; height: 40px; flex: none; padding: 0 12px; white-space: nowrap; }
.staff-role-drop { justify-self: start; margin-top: 8px; }
.staff-back {
  border: 0; background: transparent; color: var(--muted); font: inherit; cursor: pointer; padding: 0 0 8px;
}
.staff-back:hover { color: var(--text); }
.staff-editor { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 14px; margin-top: 16px; align-items: start; }
.staff-roles, .staff-matrix { border: 1px solid var(--line); border-radius: 16px; background: var(--elev); min-width: 0; }
.staff-roles { padding: 8px; display: grid; gap: 4px; align-content: start; }
.staff-role-btn {
  border: 0; background: transparent; color: inherit; font: inherit; text-align: left;
  border-radius: 12px; padding: 10px 12px; cursor: pointer; min-width: 0;
}
.staff-role-btn.on { background: var(--chip); }
.staff-role-btn b, .staff-role-btn span { display: block; }
.staff-role-btn b { overflow-wrap: anywhere; }
.staff-role-btn span { color: var(--faint); font-size: 12px; margin-top: 2px; }
.staff-matrix { padding: 16px; display: grid; gap: 12px; }
.staff-count { margin: 0; color: var(--muted); font-size: 13px; }
.staff-modal { position: fixed; inset: 0; z-index: 40; display: grid; place-items: center; padding: 16px; }
.staff-modal-back { position: absolute; inset: 0; border: 0; background: var(--overlay); cursor: pointer; }
.staff-dialog {
  position: relative; z-index: 1; width: min(440px, 100%); padding: 18px;
  border-radius: 18px; background: var(--elev); border: 1px solid var(--line);
  box-shadow: var(--shadow); display: grid; gap: 12px;
  max-height: min(640px, calc(100dvh - 32px)); overflow: auto;
  animation: drawer-in 0.28s var(--ease);
}
.staff-dialog-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.staff-dialog h2 { margin: 0; font-size: 20px; line-height: 1.25; }
.staff-dialog .desk-x { display: grid; place-items: center; flex: none; }
.staff-dialog .desk-x svg { width: 16px; height: 16px; }
.staff-dialog .staff-note b { color: var(--text); }
.staff-modal-actions { display: flex; justify-content: flex-end; gap: 8px; }
.staff-modal-actions .review-btn { height: 40px; }
.staff-modal-actions .review-btn:disabled { opacity: 0.45; cursor: default; transform: none; }
.perm-group { border-top: 1px solid var(--hair); padding-top: 8px; }
.perm-group header { display: flex; align-items: center; gap: 12px; padding: 6px 0; }
.perm-group header b { font-size: 12px; letter-spacing: 0.05em; margin-right: auto; min-width: 0; }
.perm-group header button {
  border: 0; background: transparent; color: var(--muted); font: inherit; font-size: 13px;
  cursor: pointer; flex: none; white-space: nowrap; padding: 0;
}
.perm-group header button:hover:not(:disabled) { color: var(--text); }
.perm-group header button:disabled { opacity: 0.45; cursor: default; }
.perm-group header span { color: var(--faint); font-size: 12px; font-variant-numeric: tabular-nums; flex: none; }
.perm-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 40px; }
.perm-row em { color: var(--warn); font-style: normal; margin-right: 6px; }
.perm-switch {
  width: 36px; height: 22px; border: 0; border-radius: 999px; background: var(--track);
  position: relative; cursor: pointer; flex: none; padding: 0;
}
.perm-switch i {
  position: absolute; top: 2px; left: 2px; width: 18px; height: 18px; border-radius: 50%;
  background: #fff; transition: transform 0.2s var(--ease);
}
.perm-switch.on { background: var(--accent); }
.perm-switch.on i { transform: translateX(14px); background: var(--accent-text); }
.perm-switch:disabled { opacity: 0.45; cursor: default; }

.content:has(.map-layout) {
  display: flex; flex-direction: column; overflow: hidden; padding-bottom: 16px;
}
.map-layout {
  flex: 1; min-height: 0;
  margin-top: 16px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 380px);
  gap: 14px;
  align-items: stretch;
}
.map-stage { min-width: 0; min-height: 0; display: flex; }
.map-canvas {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 0;
  border-radius: 8px;
  overflow: hidden;
  background: #0b3a4a;
  cursor: grab;
  touch-action: none;
  user-select: none;
}
.map-canvas.dragging { cursor: grabbing; }
.map-world { position: absolute; left: 0; top: 0; transform-origin: 0 0; }
.map-zoom {
  position: absolute; right: 10px; bottom: 10px; z-index: 5;
  display: flex; flex-direction: column; gap: 6px;
}
.map-zoom button {
  width: 40px; height: 36px; border-radius: 10px; border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(12, 18, 24, 0.82); color: #fff; font: inherit; font-size: 16px; font-weight: 700;
  cursor: pointer;
}
.map-zoom button:last-child { font-size: 11px; }
.map-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: fill; background: transparent; pointer-events: none; -webkit-user-drag: none; }
.map-grid { position: absolute; inset: 0; z-index: 1; pointer-events: none; container-type: size; }
.map-grid .v, .map-grid .h { position: absolute; background: #000; }
.map-grid .v { top: 0; bottom: 0; width: 1px; }
.map-grid .h { left: 0; right: 0; height: 1px; }
.map-grid .cell {
  position: absolute; overflow: hidden; box-sizing: border-box;
  padding: 2px 0 0 3px; color: #000;
  font-size: 1.35cqmin; font-weight: 650; line-height: 1; letter-spacing: 0.01em;
  text-shadow: none;
}
.map-wait {
  position: absolute; left: 12px; right: 12px; bottom: 12px;
  padding: 8px 10px; border-radius: 10px; background: rgba(0, 0, 0, 0.55);
  color: #fff; font-size: 13px; text-align: center;
}
.map-pin {
  position: absolute; z-index: 2; width: 28px; height: 28px; padding: 0;
  border: 0; background: transparent; transform: translate(-50%, -50%);
  display: grid; place-items: center; cursor: pointer;
}
.map-pin.mon { width: auto; height: auto; }
.map-pin.mon span { position: static; transform: none; }
.map-pin.shop svg { width: 22px; height: 22px; display: block; filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.45)); }
.map-pin.shop.off .face { fill: #d24545; }
.map-row.off b { color: #e15b5b; }
.map-pin.shop.on svg { filter: drop-shadow(0 0 0 3px rgba(243, 230, 216, 0.95)) drop-shadow(0 1px 2px rgba(0, 0, 0, 0.45)); }
.map-pin b {
  position: absolute; top: -2px; right: -2px; min-width: 16px; height: 16px; padding: 0 4px;
  border-radius: 999px; background: #1a1a1a; color: #fff; font-size: 10px; line-height: 16px;
  font-weight: 700;
}
.map-pin span {
  position: absolute; left: 50%; top: calc(100% + 1px); transform: translateX(-50%);
  max-width: 148px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  color: #fff; font-size: 11px; font-weight: 700; pointer-events: none;
  text-shadow: 0 1px 2px #000, 0 0 4px #000;
}
.map-filters {
  display: flex; gap: 4px; background: var(--soft); border: 1px solid var(--line);
  border-radius: 999px; padding: 4px;
}
.map-filters button {
  border: 0; background: transparent; color: var(--muted); font: inherit;
  height: 32px; padding: 0 12px; border-radius: 999px; cursor: pointer;
}
.map-filters button.on { background: var(--chip); color: var(--text); }
.map-side {
  min-width: 0; min-height: 0;
  height: 100%; overflow: auto; padding: 8px 8px 12px;
  border: 1px solid var(--line); border-radius: 16px; background: var(--elev);
}
.map-side h2 {
  margin: 12px 8px 4px; font-size: 12px; letter-spacing: 0.04em; color: var(--faint); font-weight: 650;
}
.map-row {
  width: 100%; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px;
  align-items: center; text-align: left; border: 0; background: transparent; color: inherit;
  font: inherit; padding: 8px; border-radius: 10px; cursor: pointer;
}
.map-row b { display: block; min-width: 0; overflow-wrap: anywhere; font-size: 14px; }
.map-row span { color: var(--faint); font-size: 12px; white-space: nowrap; }
.map-row.on, .map-row:hover { background: var(--chip); }
.map-detail { margin: 4px; padding: 10px; border-radius: 12px; background: var(--soft); }
.map-detail + .map-detail { margin-top: 8px; }
.map-detail b { display: block; font-size: 15px; overflow-wrap: anywhere; }
.map-detail p { margin: 4px 0 8px; color: var(--muted); font-size: 13px; }
.vend-head { display: flex; align-items: center; gap: 8px; }
.vend-head svg { width: 16px; height: 16px; flex: none; }
.vend-head b { margin: 0; }
.vend-list { display: grid; gap: 6px; }
.vend-row {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr) auto;
  gap: 6px; align-items: center; padding: 7px; border-radius: 6px; background: #3c342f;
}
.vend-offer, .vend-price { display: flex; align-items: center; gap: 6px; min-width: 0; }
.vend-offer small, .vend-price small, .vend-stock small {
  display: block; color: #c3b6a8; font-size: 9px; font-weight: 750; letter-spacing: 0.04em;
}
.map-detail.vend .vend-offer b,
.map-detail.vend .vend-price b,
.map-detail.vend .vend-stock b { display: block; font-size: 16px; line-height: 1.1; }
.vend-stock { text-align: right; }
.vend-stock.gone { opacity: 0.45; }
.vend-badge {
  flex: none; padding: 2px 5px; border-radius: 3px; color: #fff; font-size: 11px; font-style: normal; font-weight: 750;
}
.vend-badge.down { background: #5d8c38; }
.vend-badge.up { background: #b4473c; }
.rust-icon {
  width: 36px; height: 36px; flex: none; object-fit: contain; border-radius: 4px; background: rgba(0, 0, 0, 0.28);
}
.rust-icon.empty { visibility: hidden; }
.map-orders { width: 100%; min-width: 0; border-collapse: collapse; table-layout: fixed; }
.map-orders th { text-align: left; font-size: 11px; color: var(--faint); font-weight: 650; padding: 0 4px 6px; }
.map-orders th:nth-child(1), .map-orders td:nth-child(1) { width: 48%; }
.map-orders th:nth-child(2), .map-orders td:nth-child(2) { width: 34%; }
.map-orders th:nth-child(3), .map-orders td:nth-child(3) { width: 18%; }
.map-orders td { padding: 6px 4px; border-top: 1px solid var(--hair); font-size: 13px; vertical-align: top; overflow-wrap: anywhere; }
.map-orders td small { color: var(--faint); }
.map-orders td.gone { color: var(--faint); }

@media (max-width: 960px) {
  .content:has(.map-layout) { display: block; overflow: auto; }
  .map-layout { display: grid; grid-template-columns: 1fr; }
  .map-canvas { width: 100%; height: 72dvh; min-height: 320px; }
  .map-filters { width: 100%; }
  .map-filters button { flex: 1; min-height: 36px; }
  .map-side { height: auto; max-height: none; }
  .map-pin { width: 36px; height: 36px; }
  .map-pin span { display: none; }
  .map-pin.on span { display: block; max-width: 120px; }
  .map-orders { font-size: 14px; }
  .map-orders td, .map-orders th { padding: 8px 4px; }
  .rust-icon { width: 42px; height: 42px; }
  .map-detail.vend .vend-offer b,
  .map-detail.vend .vend-price b,
  .map-detail.vend .vend-stock b { font-size: 18px; }
}

@media (max-width: 800px) {
  .staff-editor { grid-template-columns: 1fr; }
  .staff-head, .staff-editor-head { flex-direction: column; }
}

@media (max-width: 960px) {
  body:has(.desk) .content { overflow: hidden; }
  .desk {
    inset: 0;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    height: 100dvh;
    max-height: 100dvh;
    margin: 0;
    transform: none;
    border: 0;
    border-radius: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
  }
  .desk-head { flex: none; align-items: flex-start; padding: max(12px, env(safe-area-inset-top)) 14px 12px; }
  .desk-head h2 { flex: 1; min-width: 0; font-size: 17px; line-height: 1.3; overflow-wrap: anywhere; text-align: left; }
  .desk-x { flex: none; }
  .desk-body {
    flex: 1 1 auto;
    min-width: 0;
    min-height: 0;
    overflow: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    padding: 14px;
  }
  .desk-foot {
    position: static;
    flex: none;
    flex-direction: column;
    align-items: stretch;
    padding: 12px 14px max(12px, env(safe-area-inset-bottom));
  }
  .desk-player,
  .complaint,
  .pair-card,
  .desk-note,
  .ip-ban-box,
  .reason-picks,
  .span-grid { min-width: 0; max-width: 100%; }
  .desk-player { flex-direction: column; align-items: stretch; }
  .desk-player .player,
  .complaint-who,
  .pair-card .player {
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr);
    align-items: center;
    justify-content: start;
    justify-items: start;
    width: 100%;
    gap: 10px;
    text-align: left;
  }
  .desk-player .player > div,
  .complaint-meta,
  .pair-card .player > div { min-width: 0; width: 100%; text-align: left; }
  .desk-player .player-name,
  .pair-card .player-name,
  .complaint-meta b,
  .desk .steamid,
  .desk .steamid span,
  .desk .seen,
  .complaint-time,
  .complaint-text,
  .complaint-server {
    text-align: left;
    white-space: normal;
    overflow-wrap: anywhere;
  }
  .desk-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: 100%;
    gap: 8px;
  }
  .desk-stat { min-width: 0; }
  .desk-stat span { overflow-wrap: anywhere; }
  .complaint-top { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .complaint-meta { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
  .complaint .review-btn { width: 100%; min-height: 42px; }
  .reason-picks { display: flex; flex-wrap: wrap; }
  .reason-pick, .span-btn { white-space: normal; height: auto; min-height: 40px; max-width: 100%; }
  .span-grid { grid-template-columns: 1fr 1fr; }
  .pair { grid-template-columns: minmax(0, 1fr); }
  .ip-ban-btn { flex-direction: column; align-items: flex-start; height: auto; }
  .desk-actions { width: 100%; margin-left: 0; flex-direction: column; }
  .desk-actions .review-btn,
  .desk-actions .ban-close { width: 100%; min-height: 44px; }
}

@media (max-width: 1100px) {
  .staff-list, .staff-list-plain { display: grid; grid-template-columns: 1fr; gap: 10px; }
  .staff-cols { display: none; }
  .staff-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-areas: "person person" "mail role" "rights seen" "act act";
    gap: 12px 14px;
    align-items: start;
  }
  .staff-person { grid-area: person; }
  .staff-mail { grid-area: mail; white-space: normal; overflow-wrap: break-word; }
  .staff-role { grid-area: role; white-space: normal; }
  .staff-rights { grid-area: rights; }
  .staff-seen { grid-area: seen; }
  .staff-act { grid-area: act; display: grid; grid-template-columns: 1fr; }
  .staff-act:empty { display: none; }
  .staff-role-edit, .staff-drop { width: 100%; }
  .staff-mail::before, .staff-role::before, .staff-rights::before, .staff-seen::before {
    content: attr(data-label);
    display: block;
    margin-bottom: 6px;
    color: var(--faint);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.04em;
  }
}

@media (max-width: 960px) {
  .staff-page h1 { font-size: 22px; }
  .staff-search { max-width: none; width: 100%; }
  .staff-head, .staff-editor-head { flex-direction: column; align-items: stretch; }
  .staff-actions { width: 100%; display: grid; grid-template-columns: 1fr 1fr; }
  .staff-actions .staff-invite { grid-column: 1 / -1; }
  .staff-actions .review-btn { width: 100%; min-height: 42px; }
  .staff-drop, .staff-role-drop { width: 100%; min-height: 44px; }
  .staff-editor { grid-template-columns: minmax(0, 1fr); }
  .staff-roles {
    display: flex; gap: 8px; overflow-x: auto; align-items: stretch;
    padding: 8px; -webkit-overflow-scrolling: touch;
  }
  .staff-role-btn { flex: 0 0 auto; min-width: 148px; max-width: 220px; background: transparent; box-shadow: inset 0 0 0 1px var(--line); }
  .staff-role-btn.on { background: var(--chip); box-shadow: inset 0 0 0 1px var(--line-strong); }
  .perm-group header { flex-wrap: wrap; align-items: flex-start; }
  .perm-group header b { flex: 1 1 140px; }
  .perm-row span { min-width: 0; overflow-wrap: anywhere; }
  .staff-modal { padding: 0; align-items: end; }
  .staff-dialog {
    width: 100%; max-height: min(92dvh, 720px);
    border-radius: 18px 18px 0 0;
    padding: 16px 16px calc(16px + env(safe-area-inset-bottom));
  }
  .staff-modal-actions { flex-direction: column; }
  .staff-modal-actions .review-btn { width: 100%; min-height: 44px; }
}
