/* =========================================================
   EXO Sentinel — UI layer v1
   Loaded after style.css. Console layout: fixed sidebar with
   grouped nav, breadcrumb topbar, case-file cards, status-coded
   rows and badges. Mono type for case codes and Steam IDs.
   ========================================================= */
:root {
  --bg0: #0b0c10;
  --bg1: #0f1015;
  --bg2: #14151c;
  --bg3: #1b1d26;
  --inset: #0e0f14;
  --line: rgba(255, 255, 255, .07);
  --line2: rgba(255, 255, 255, .13);
  --t0: #f4f4f7;
  --t1: #a2a6b3;
  --t2: #6b7080;
  --acc: #f36a21;
  --acc2: #ff8f4d;
  --accink: #e2581a;
  --accsoft: rgba(243, 106, 33, .14);
  --accline: rgba(243, 106, 33, .38);
  --ok: #33d493;
  --warn: #f7b84e;
  --bad: #f76d7d;
  --info: #56a8ff;
  --oksoft: rgba(51, 212, 147, .13);
  --warnsoft: rgba(247, 184, 78, .14);
  --badsoft: rgba(247, 109, 125, .13);
  --infosoft: rgba(86, 168, 255, .13);
  --shadow: 0 18px 40px -22px rgba(0, 0, 0, .75);
  --r-sm: 9px;
  --r-md: 13px;
  --r-lg: 18px;
  --side: 256px;
  --ff: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Menlo, Consolas, monospace;
  font-family: var(--ff);
  color-scheme: dark;
}

/* ---------- base ---------- */
html, body { background: var(--bg0); }
body {
  font-family: var(--ff); font-size: 14px; line-height: 1.5; color: var(--t0);
  background:
    radial-gradient(1000px 480px at 100% -160px, rgba(243, 106, 33, .07), transparent 70%),
    var(--bg0);
  background-attachment: fixed;
  font-variant-numeric: tabular-nums;
}
::selection { background: rgba(243, 106, 33, .35); color: #fff; }
:focus-visible { outline: 2px solid var(--acc2); outline-offset: 2px; border-radius: 6px; }
* { scrollbar-color: #2a2d39 transparent; }
h1, h2, h3 { letter-spacing: -.02em; }
.mono, .identity .steam, .case-id, code { font-family: var(--mono); }
.muted { color: var(--t1); }
.small { font-size: 12.5px; }

/* ---------- sidebar ---------- */
.nav-toggle { position: absolute; opacity: 0; pointer-events: none; }
.sidebar {
  width: var(--side); padding: 18px 14px 16px; gap: 0;
  background: var(--bg1); border-right: 1px solid var(--line);
  overflow-y: auto;
}
.brand { display: flex; align-items: center; gap: 11px; padding: 2px 6px 18px; margin-bottom: 4px; border-bottom: 1px solid var(--line); text-decoration: none; }
.brand-mark, .login-brand .brand-mark {
  display: grid; place-items: center; width: 38px; height: 38px; flex-shrink: 0; border-radius: 11px;
  background: linear-gradient(145deg, var(--acc), #b8410f); color: #fff;
  font-weight: 800; font-size: 12px; letter-spacing: .04em;
  box-shadow: 0 10px 22px -10px rgba(243, 106, 33, .8), inset 0 1px 0 rgba(255, 255, 255, .25);
}
.brand-text { display: flex; flex-direction: column; min-width: 0; }
.brand-main { font-size: 15px; font-weight: 800; letter-spacing: .02em; color: var(--t0); }
.brand-main b { color: var(--acc); font-weight: 800; }
.brand-sub { font-size: 11px; letter-spacing: .02em; text-transform: none; color: var(--t2); margin-top: 1px; font-weight: 600; }
.side-nav { gap: 2px; }
.nav-label { display: block; padding: 16px 12px 7px; color: var(--t2); font-size: 10.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.side-nav a {
  gap: 12px; padding: 9px 12px; border-radius: 10px;
  color: var(--t1); font-weight: 600; font-size: 14px;
}
.side-nav a svg { width: 19px; height: 19px; flex-shrink: 0; opacity: .9; }
.side-nav a:hover { background: var(--bg3); color: var(--t0); }
.side-nav a.active { background: var(--accsoft); color: var(--acc2); box-shadow: inset 3px 0 0 var(--acc); }
.server-mini, .user-mini { border: 1px solid var(--line); background: var(--bg2); border-radius: var(--r-md); padding: 12px; margin-top: 10px; }
.server-mini-top { display: flex; align-items: center; }
.server-mini b { font-size: 12.5px; }
.server-meter { height: 5px; border-radius: 999px; background: var(--bg3); overflow: hidden; margin: 10px 0 7px; }
.server-meter i { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--ok), #7ef0c0); }
.server-mini small { margin-top: 0; font-size: 11.5px; color: var(--t2); }
.user-mini { display: flex; align-items: center; gap: 10px; }
.user-avatar {
  display: grid; place-items: center; width: 34px; height: 34px; flex-shrink: 0; border-radius: 50%;
  background: var(--accsoft); color: var(--acc2); font-weight: 800; font-size: 14px; border: 1px solid var(--accline);
}
.user-meta { display: flex; flex-direction: column; min-width: 0; }
.user-meta strong { font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.user-meta small { font-size: 11px; color: var(--t2); letter-spacing: .06em; text-transform: uppercase; font-weight: 700; margin-top: 1px; }
.online-dot { width: 7px; height: 7px; margin-right: 8px; background: var(--ok); box-shadow: 0 0 0 3px rgba(51, 212, 147, .15); animation: sPulse 2.4s ease-out infinite; }
@keyframes sPulse { 0% { box-shadow: 0 0 0 0 rgba(51, 212, 147, .5); } 70% { box-shadow: 0 0 0 7px rgba(51, 212, 147, 0); } 100% { box-shadow: 0 0 0 0 rgba(51, 212, 147, 0); } }

/* ---------- topbar ---------- */
.main { margin-left: var(--side); }
.topbar { height: 62px; padding: 0 28px; background: rgba(11, 12, 16, .8); backdrop-filter: blur(14px) saturate(140%); border-bottom: 1px solid var(--line); }
.topbar-left { display: flex; align-items: center; gap: 12px; min-width: 0; }
.nav-burger { display: none; width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--line2); background: var(--bg2); color: var(--t1); place-items: center; cursor: pointer; }
.nav-burger svg { width: 18px; height: 18px; }
.crumbs { display: flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--t2); white-space: nowrap; overflow: hidden; }
.crumbs i { font-style: normal; color: #3a3d4a; }
.crumbs a { color: var(--t1); text-decoration: none; }
.crumbs a:hover { color: var(--t0); }
.crumbs b { color: var(--t0); font-weight: 600; overflow: hidden; text-overflow: ellipsis; }
.top-links { gap: 10px; font-size: 13px; font-weight: 600; letter-spacing: 0; }
.live-pill { display: inline-flex; align-items: center; padding: 6px 12px; border-radius: 999px; background: var(--oksoft); color: var(--ok); font-size: 12.5px; font-weight: 700; }
.top-back, .top-link { display: inline-flex; align-items: center; gap: 6px; padding: 7px 11px; border-radius: 9px; color: var(--t1); text-decoration: none; }
.top-back svg { width: 15px; height: 15px; }
.top-back:hover, .top-link:hover { background: var(--bg3); color: var(--t0); }
.ghost { display: inline-flex; align-items: center; gap: 7px; padding: 7px 12px; border-radius: 9px; font-size: 13px; font-weight: 600; color: var(--t1); border: 1px solid var(--line2); background: var(--bg2); }
.ghost svg { width: 15px; height: 15px; }
.ghost:hover { color: var(--t0); border-color: rgba(255, 255, 255, .24); }

/* ---------- content + headings ---------- */
.content { padding: 26px 30px 48px; max-width: 1560px; }
.page-head { margin-bottom: 22px; align-items: flex-end; }
.page-head h1 { font-size: clamp(24px, 2.4vw, 30px); font-weight: 800; letter-spacing: -.03em; margin: 6px 0 4px; }
.eyebrow { font-size: 11px; letter-spacing: .1em; font-weight: 700; color: var(--acc2); }
.panel-head h2, .section-title h3, .card h2 { font-size: 16.5px; font-weight: 700; letter-spacing: -.01em; text-transform: none; margin: 0; }
.panel-head { padding-bottom: 14px; margin-bottom: 4px; border-bottom: 1px solid var(--line); }
.section-title { padding-bottom: 12px; border-bottom: 1px solid var(--line); margin-bottom: 4px; }
.section-title h3 { margin-top: 4px; }

/* ---------- cards ---------- */
.card { background: var(--bg2); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow); padding: 20px 22px; }
.grid { gap: 16px; }

/* stat cards */
.stats { gap: 16px; margin-bottom: 18px; }
.stats.six { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.stat { padding: 18px 18px 16px; }
.stat:after { display: none; }
.stat .label { font-size: 12px; letter-spacing: 0; text-transform: none; color: var(--t1); font-weight: 600; display: flex; align-items: center; gap: 10px; }
.stat .label::before {
  content: ""; width: 30px; height: 30px; border-radius: 9px; flex-shrink: 0;
  background: color-mix(in srgb, var(--accent, var(--acc)) 16%, transparent);
  -webkit-mask: none;
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent, var(--acc)) 30%, transparent);
  background-image: radial-gradient(circle at center, var(--accent, var(--acc)) 0 3.5px, transparent 4px);
}
.stat .value { font-size: 30px; font-weight: 800; letter-spacing: -.03em; margin: 12px 0 2px; line-height: 1.1; }
.stat .hint { font-size: 12px; color: var(--t2); }
.stat-bar { height: 4px; border-radius: 999px; background: var(--bg3); overflow: hidden; margin-top: 12px; }
.stat-bar i { display: block; height: 100%; border-radius: 999px; background: var(--accent, var(--acc)); }

/* ---------- tabs + toolbar ---------- */
.status-tabs { gap: 4px; margin: 16px 0 14px; padding: 4px; background: var(--inset); border: 1px solid var(--line); border-radius: 12px; width: fit-content; max-width: 100%; overflow-x: auto; flex-wrap: nowrap; }
.status-tabs a { padding: 7px 12px; border: 0; border-radius: 9px; color: var(--t1); font-size: 13px; font-weight: 600; white-space: nowrap; }
.status-tabs a:hover { background: var(--bg3); color: var(--t0); }
.status-tabs a.active { background: var(--bg3); color: var(--acc2); box-shadow: inset 0 0 0 1px var(--line2); }
.case-toolbar { margin-bottom: 14px; }
.case-toolbar form { position: relative; }
.case-toolbar input[name=q] {
  padding-left: 38px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236b7080' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: 12px center; background-size: 16px;
}

/* ---------- forms + buttons ---------- */
input, select, textarea {
  background-color: var(--inset); border: 1px solid var(--line2); border-radius: 10px;
  color: var(--t0); padding: 10px 13px; font-size: 14px; transition: border-color .15s, box-shadow .15s;
}
input::placeholder, textarea::placeholder { color: #4f5361; }
input:hover, select:hover, textarea:hover { border-color: rgba(255, 255, 255, .2); }
input:focus, select:focus, textarea:focus { border-color: var(--acc); box-shadow: 0 0 0 3px rgba(243, 106, 33, .18); }
select { appearance: none; -webkit-appearance: none; padding-right: 36px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a2a6b3' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 11px center; background-size: 16px; }
input[type=checkbox] { width: 16px; height: 16px; padding: 0; accent-color: var(--acc); cursor: pointer; }
.btn, button {
  border-radius: 10px; padding: 10px 16px; font-size: 13.5px; font-weight: 700; letter-spacing: 0;
  background: var(--accink); color: #fff;
  box-shadow: 0 10px 22px -12px rgba(243, 106, 33, .75), inset 0 1px 0 rgba(255, 255, 255, .14);
  transition: background .15s, transform .15s, box-shadow .15s, border-color .15s;
}
.btn:hover, button:hover { background: var(--acc); transform: translateY(-1px); }
.btn:active, button:active { transform: none; }
button:disabled { opacity: .5; cursor: not-allowed; transform: none; }
.btn.secondary, button.secondary { background: var(--bg3); border: 1px solid var(--line2); color: var(--t0); box-shadow: none; }
.btn.secondary:hover, button.secondary:hover { background: #232633; border-color: rgba(255, 255, 255, .22); }
.btn.good, button.good { background: var(--oksoft); border: 1px solid rgba(51, 212, 147, .3); color: #6ce7b3; box-shadow: none; }
.btn.bad, button.bad { background: var(--badsoft); border: 1px solid rgba(247, 109, 125, .3); color: #ff9aa5; box-shadow: none; }
.btn.warn, button.warn { background: var(--warnsoft); border: 1px solid rgba(247, 184, 78, .3); color: #ffd17d; box-shadow: none; }
.btn.good:hover, button.good:hover { background: rgba(51, 212, 147, .22); }
.btn.bad:hover, button.bad:hover { background: rgba(247, 109, 125, .22); }
.btn.warn:hover, button.warn:hover { background: rgba(247, 184, 78, .22); }
.ghost { box-shadow: none; }
.ghost:hover { background: var(--bg3); transform: none; }
.admin-create label, .settings-form label { color: var(--t1); font-size: 12.5px; letter-spacing: 0; text-transform: none; font-weight: 600; gap: 7px; }
.form-grid { gap: 12px; }
.error { border-radius: 10px; background: var(--badsoft); border: 1px solid rgba(247, 109, 125, .25); color: #ffa3ad; padding: 11px 13px; }
.success { border-radius: 10px; }

/* ---------- tables ---------- */
.table-wrap { border: 1px solid var(--line); border-radius: var(--r-md); background: var(--bg1); }
th { font-size: 11px; letter-spacing: .07em; font-weight: 700; color: var(--t2); background: rgba(255, 255, 255, .02); padding: 12px 14px; white-space: nowrap; }
td { padding: 13px 14px; border-bottom: 1px solid var(--line); color: var(--t1); vertical-align: middle; }
th.num, td.num { text-align: right; }
tbody tr { transition: background .12s; }
tbody tr:hover { background: rgba(255, 255, 255, .025); }
tbody tr[class^="row-"] td:first-child { box-shadow: inset 3px 0 0 var(--rowc, transparent); }
tr.row-OPEN { --rowc: var(--warn); }
tr.row-WATCH { --rowc: var(--info); }
tr.row-CHEATING, tr.row-BANNED { --rowc: var(--bad); }
tr.row-CLEARED, tr.row-FALSE_POSITIVE { --rowc: var(--ok); }
tr.row-ARCHIVED { --rowc: #4a4e5c; }
.case-id { color: var(--acc2); font-size: 12.5px; white-space: nowrap; }
.case-id b { font-weight: 600; }
.case-id:hover { color: #fff; }
.mini-avatar {
  display: inline-grid; place-items: center; flex-shrink: 0; width: 34px; height: 34px; border-radius: 50%;
  background: var(--bg3); border: 1px solid var(--line2); color: var(--t1); font-weight: 700; font-size: 13px; object-fit: cover;
}
.player-cell strong { font-weight: 700; }
.player-cell small { font-family: var(--mono); font-size: 11px; }
.player-cell small.is-online { color: var(--ok); font-family: var(--ff); font-weight: 600; }
.player-cell:hover strong { color: var(--acc2); }
.report-count { font-size: 15px; }
.bulkbar { position: sticky; bottom: 16px; margin-top: 14px; padding: 12px 14px; gap: 14px; background: var(--bg3); border: 1px solid var(--accline); border-radius: var(--r-md); box-shadow: 0 20px 40px -16px rgba(0, 0, 0, .9); }
.bulkbar > div { display: flex; align-items: center; gap: 12px; }
.bulkbar select { min-width: 200px; }
.empty { padding: 44px 20px; color: var(--t2); }

/* ---------- badges ---------- */
.badge { gap: 6px; padding: 4px 10px; font-size: 11px; font-weight: 700; letter-spacing: .03em; border-radius: 999px; }
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .9; }
.badge.NONE::before { opacity: .45; }
.badge.OPEN { background: var(--warnsoft); color: var(--warn); }
.badge.WATCH { background: var(--infosoft); color: var(--info); }
.badge.CLEARED, .badge.FALSE_POSITIVE, .badge.READY { background: var(--oksoft); color: var(--ok); }
.badge.CHEATING, .badge.BANNED { background: var(--badsoft); color: var(--bad); }
.badge.PENDING, .badge.RECORDING { background: var(--warnsoft); color: var(--warn); }
.badge.ARCHIVED { background: rgba(255, 255, 255, .05); color: var(--t2); }
.badge.TEST { background: var(--accsoft); color: var(--acc2); }

/* ---------- case page ---------- */
.test-banner { border-radius: var(--r-md); padding: 12px 14px; font-weight: 600; }
.report-layout { gap: 18px; }
.stack { gap: 18px; align-content: start; }
.hero-report { padding: 22px; }
.avatar-xl {
  display: grid; place-items: center; width: 60px; height: 60px; border-radius: 16px;
  background: linear-gradient(145deg, var(--bg3), var(--inset)); border: 1px solid var(--line2);
  color: var(--t1); font-size: 24px; font-weight: 800; object-fit: cover;
}
.identity h1 { font-size: 24px; letter-spacing: -.025em; }
.identity .steam { font-size: 12px; }
.report-grid { gap: 12px; }
.metric { background: var(--inset); border: 1px solid var(--line); border-radius: var(--r-md); padding: 13px 14px; }
.metric .k { font-size: 11px; letter-spacing: .06em; font-weight: 700; color: var(--t2); }
.metric .v { margin-top: 5px; font-size: 15px; }
.metric .v.big { font-size: 24px; font-weight: 800; letter-spacing: -.02em; }
.report-message { border-radius: var(--r-md); background: rgba(243, 106, 33, .06); border: 1px solid rgba(243, 106, 33, .2); line-height: 1.6; }
.demo-card { border-color: rgba(243, 106, 33, .26); background: radial-gradient(600px 200px at 0 0, rgba(243, 106, 33, .1), transparent 70%), var(--bg2); }
.demo-ready, .demo-wait { font-size: 17px; letter-spacing: -.01em; }
.action-grid { gap: 10px; margin-top: 14px; }
.action-grid button { padding: 13px 12px; font-size: 14px; border-radius: 12px; }
.note { padding: 13px 0; }
.note + .note { border-top: 1px solid var(--line); }
.note b { font-size: 13.5px; }
.form-grid textarea { min-height: 100px; line-height: 1.5; }
.mini-intel-grid { gap: 10px; }
.mini-intel-grid > div { border-radius: 11px; padding: 11px 12px; }
.mini-intel-grid span { font-size: 10.5px; font-weight: 700; letter-spacing: .06em; }
.web-video-wrap { border-radius: var(--r-md); }

/* ---------- player page ---------- */
.player-intel-hero { background: radial-gradient(700px 240px at 100% 0, rgba(243, 106, 33, .12), transparent 70%), var(--bg2); }
.player-avatar-xl { width: 74px; height: 74px; border-radius: 18px; font-size: 30px; }
.intel-list { border-radius: var(--r-md); background: var(--bg1); }
.intel-list > div { padding: 11px 14px; background: none; }
.intel-list span { font-size: 12.5px; color: var(--t1); }
.intel-list b { font-size: 13px; }
.ban-box { border-radius: var(--r-md); padding: 14px; }
.ban-box span { font-size: 10.5px; letter-spacing: .08em; }
.ban-box b { font-size: 22px; letter-spacing: -.02em; }
.intel-warning { border-radius: var(--r-md); padding: 13px 15px; line-height: 1.55; }
.intel-link { border-radius: var(--r-md); }

/* ---------- staff + settings ---------- */
.admin-grid, .settings-grid { gap: 18px; align-items: start; }
.staff-cell { display: flex; align-items: center; gap: 11px; }
.staff-cell strong { color: var(--t0); font-weight: 700; }
.reset-form input { min-width: 200px; }
.account-avatar { border-radius: 50%; background: var(--accsoft); border-color: var(--accline); color: var(--acc2); }
.account-card { min-height: 0; }

/* ---------- analytics ---------- */
.analytics-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.analytics-grid .span-all { grid-column: 1 / -1; }
.bar-list { display: grid; gap: 14px; padding-top: 14px; }
.bar-item { display: grid; grid-template-columns: minmax(110px, 160px) minmax(0, 1fr) 44px; align-items: center; gap: 14px; }
.bar-item span { color: var(--t1); font-weight: 600; text-transform: capitalize; font-size: 13.5px; }
.bar-item b { text-align: right; color: var(--t0); font-size: 15px; }
.track { height: 10px; border-radius: 999px; background: var(--bg3); overflow: hidden; }
.track i { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--accink), var(--acc2)); }
.tone-OPEN .track i { background: var(--warn); }
.tone-WATCH .track i { background: var(--info); }
.tone-CHEATING .track i, .tone-BANNED .track i { background: var(--bad); }
.tone-CLEARED .track i { background: var(--ok); }
.tone-FALSE_POSITIVE .track i { background: #7fdcb3; }
.tone-ARCHIVED .track i { background: #4a4e5c; }
.metrics { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; padding-top: 14px; }
.metrics .metric .v { font-size: 26px; font-weight: 800; letter-spacing: -.03em; }
.score { font-family: var(--mono); }

/* ---------- message ---------- */
.message-card { max-width: 560px; margin: 60px auto; text-align: center; padding: 34px; }
.message-card h1 { font-size: 24px; margin: 12px 0 8px; }
.message-card p { margin: 0 0 22px; }
.message-icon { width: 52px; height: 52px; margin: 0 auto; border-radius: 50%; display: grid; place-items: center; background: var(--warnsoft); color: var(--warn); font-size: 24px; font-weight: 800; }

/* ---------- login ---------- */
.login-page { background: var(--bg0); }
.login-shell { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); min-height: 100vh; padding: 0; place-items: stretch; background: none; }
.login-shell.solo { grid-template-columns: 1fr; }
.login-brand {
  position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between;
  padding: 40px 48px; border-right: 1px solid var(--line);
  background:
    radial-gradient(700px 420px at 0% 100%, rgba(243, 106, 33, .22), transparent 70%),
    radial-gradient(500px 300px at 100% 0%, rgba(243, 106, 33, .08), transparent 70%),
    var(--bg1);
}
.login-brand::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: linear-gradient(rgba(255, 255, 255, .025) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .025) 1px, transparent 1px);
  background-size: 44px 44px;
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 40%, #000 70%, transparent);
  mask-image: linear-gradient(180deg, transparent, #000 40%, #000 70%, transparent);
}
.login-brand > * { position: relative; z-index: 1; }
.login-brand-top { display: flex; align-items: center; gap: 12px; }
.login-brand-copy h2 { font-size: clamp(30px, 3.6vw, 46px); line-height: 1.05; letter-spacing: -.035em; margin: 0 0 30px; font-weight: 800; max-width: 14ch; }
.login-brand-copy h2 span { color: var(--acc); }
.login-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; max-width: 460px; }
.login-steps li { display: flex; gap: 14px; align-items: flex-start; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--r-md); background: rgba(20, 21, 28, .7); backdrop-filter: blur(6px); }
.login-steps b { font-family: var(--mono); font-size: 12px; color: var(--acc2); padding-top: 2px; }
.login-steps span { color: var(--t1); font-size: 13.5px; line-height: 1.5; }
.login-steps strong { display: block; color: var(--t0); font-size: 14.5px; margin-bottom: 2px; }
.login-brand-foot { display: flex; align-items: center; color: var(--t2); font-size: 13px; font-weight: 600; }
.login-panel { display: grid; place-items: center; padding: 32px 24px; }
.login-card { width: min(400px, 100%); padding: 0; background: none; border: 0; box-shadow: none; }
.login-card .login-logo { display: none; }
.login-shell.solo .login-card .login-logo { display: block; }
.login-shell.solo .login-card { padding: 34px; background: var(--bg2); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow); }
.login-card h1 { font-size: 28px; letter-spacing: -.03em; margin: 0 0 6px; }
.login-card p { margin: 0; }
.login-card form { gap: 8px; margin-top: 26px; }
.login-card form label { font-size: 13px; font-weight: 600; color: var(--t1); margin-top: 6px; }
.login-card input { padding: 12px 14px; }
.login-card button { margin-top: 14px; padding: 13px; font-size: 14.5px; }
.login-foot { margin-top: 20px; }

/* ---------- responsive ---------- */
@media (max-width: 1250px) { .stats.six { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 1050px) {
  .sidebar { width: var(--side); }
  .main { margin-left: var(--side); }
  .stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .sidebar { display: flex; transform: translateX(-102%); transition: transform .2s ease; z-index: 60; box-shadow: 30px 0 60px rgba(0, 0, 0, .6); }
  .nav-toggle:checked ~ .sidebar { transform: none; }
  .nav-scrim { display: none; position: fixed; inset: 0; z-index: 55; background: rgba(0, 0, 0, .55); }
  .nav-toggle:checked ~ .nav-scrim { display: block; }
  .main { margin-left: 0; }
  .nav-burger { display: grid; }
  .topbar { padding: 0 14px; }
  .top-link, .ghost span { display: none; }
  .content { padding: 18px 16px 40px; }
  .analytics-grid { grid-template-columns: 1fr; }
  .login-shell { grid-template-columns: 1fr; }
  .login-brand { padding: 28px 22px; border-right: 0; border-bottom: 1px solid var(--line); }
  .login-brand-copy h2 { margin-bottom: 18px; }
  .login-steps { display: none; }
}
@media (max-width: 760px) {
  .stats, .stats.six { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .live-pill { display: none; }
  .crumbs span, .crumbs span + i { display: none; }
  .bar-item { grid-template-columns: 90px minmax(0, 1fr) 34px; gap: 10px; }
  .bulkbar { flex-direction: column; align-items: stretch; }
  .bulkbar select { min-width: 0; flex: 1; }
  .admin-grid, .settings-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* ---------- table readability ---------- */
td .player-cell strong { white-space: nowrap; }
tr[class^="row-"] td:nth-child(4) { min-width: 200px; }
.admin-grid { grid-template-columns: 1fr; }
.admin-create { grid-template-columns: repeat(4, minmax(0, 1fr)); align-items: end; padding-top: 14px; }
.admin-create > button { grid-column: 1 / -1; justify-self: start; min-width: 220px; }
.admin-table table { min-width: 860px; }
@media (max-width: 1100px) { .admin-create { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .admin-create { grid-template-columns: 1fr; } .admin-create > button { justify-self: stretch; } }

/* ---------- grid children must be allowed to shrink (tables scroll inside) ---------- */
.report-layout > *, .stack > *, .analytics-grid > *, .intel-grid > *, .admin-grid > *, .settings-grid > *, .grid > * { min-width: 0; }
.hero-row { flex-wrap: wrap; }
@media (max-width: 900px) {
  .top-back { padding: 7px 9px; font-size: 0; gap: 0; }
  .top-back svg { width: 17px; height: 17px; }
  .page-actions { justify-content: flex-start; }
}

/* ---------- phones: tables become cards, comfortable tap targets ---------- */
@media (max-width: 760px) {
  .table-wrap { overflow: visible !important; border-radius: var(--r-md); }
  table.rt, table.rt tbody, table.rt tr, table.rt td { display: block; width: 100%; }
  table.rt { min-width: 0 !important; table-layout: auto; }
  table.rt thead { display: none; }
  table.rt tr { position: relative; padding: 10px 14px; border-bottom: 1px solid var(--line); }
  table.rt tr:last-child { border-bottom: 0; }
  table.rt td { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 5px 0 !important; border: 0 !important; text-align: right; min-width: 0; white-space: normal !important; }
  table.rt td::before { content: attr(data-label); flex: none; max-width: 42%; color: var(--t2); font-size: 10.5px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; text-align: left; }
  table.rt td[data-label=""]::before { display: none; }
  table.rt td[data-label=""] { justify-content: flex-start; }
  table.rt td > * { min-width: 0; }
  table.rt td .player-cell { justify-content: flex-end; }
  table.rt td .player-cell strong, table.rt td .mono { overflow-wrap: anywhere; white-space: normal; }
  table.rt td form, table.rt td .staff-actions, table.rt td .reset-form { flex-wrap: wrap; justify-content: flex-end; }
  table.rt td .reset-form input { min-width: 0; width: 140px; }
  .content { padding: 14px 12px 28px; }
  .btn, button, .ghost, input[type=submit] { min-height: 40px; }
  input, select, textarea { font-size: 16px !important; } /* stops iPhone zooming into fields */
  .crumbs span:first-child, .crumbs span:first-child + i { display: none; }
  .crumbs b { max-width: 46vw; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: inline-block; vertical-align: bottom; }
  .top-links .top-link { display: none; }
}
@media (max-width: 760px) {
  .status-tabs { display: flex; flex-wrap: nowrap; justify-content: flex-start !important; overflow-x: auto; scrollbar-width: none; max-width: 100%; }
  .status-tabs::-webkit-scrollbar { display: none; }
  .status-tabs > * { flex: none; }
}

/* 4.45.0 multi-server: server selector and server tags */
.server-filter { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 4px 0 16px; }
.server-filter-label { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--t2); margin-right: 4px; }
.server-filter a { display: inline-flex; align-items: center; gap: 8px; padding: 6px 11px; border: 1px solid var(--line); border-radius: 999px; background: var(--bg2); color: var(--t1); font-size: 12.5px; font-weight: 600; text-decoration: none; }
.server-filter a:hover { color: var(--t0); border-color: var(--line2); }
.server-filter a.active { color: var(--t0); border-color: var(--acc2); box-shadow: inset 0 0 0 1px var(--acc2); }
.server-filter a b { font-family: 'JetBrains Mono', monospace; font-size: 11px; color: var(--t2); font-weight: 600; }
.srv-tag { display: inline-flex; align-items: center; padding: 2px 7px; border-radius: 6px; font: 700 10.5px/1.4 'JetBrains Mono', monospace; letter-spacing: .02em; background: var(--infosoft); color: var(--info); white-space: nowrap; }
.srv-tag.srv-exo-100x { background: var(--warnsoft); color: var(--warn); }
.srv-tag.srv-exo-3x { background: var(--oksoft); color: var(--ok); }
.server-mini-list { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 4px; }
.server-mini-list li { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 11.5px; color: var(--t2); }
.server-mini-list li b { font-family: 'JetBrains Mono', monospace; font-size: 11px; color: var(--t1); font-weight: 600; }
.server-mini-list li.off { opacity: .55; }
@media (max-width: 640px) { .server-filter { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; } .server-filter > * { flex: none; } }
