/* Zion City Logs: the NOIZ panel's design system (fivem-panel/frontend/src/index.css + styles/system.css),
   same tokens, same chrome: graphite ground, faint grid, glass modules, red = action, cyan = structure. */
:root {
  --accent-rgb: 255, 0, 64; --accent-hot-rgb: 255, 51, 99;
  --accent: rgb(var(--accent-rgb)); --accent-hover: rgb(var(--accent-hot-rgb));
  --accent-soft: rgba(var(--accent-rgb), .14); --accent-line: rgba(var(--accent-rgb), .32); --accent-halo: rgba(var(--accent-rgb), .28);
  --master-rgb: 168, 76, 246; --master-hot-rgb: 196, 132, 255;
  --void: #02060a; --background: #04080d; --background-2: #080d14; --background-3: #0d141c;
  --signal-rgb: 18, 220, 247; --signal-deep-rgb: 0, 190, 248;
  --signal: rgb(var(--signal-rgb)); --signal-dim: rgba(var(--signal-rgb), .5); --signal-line: rgba(var(--signal-rgb), .15); --signal-faint: rgba(var(--signal-rgb), .055);
  --grid-line: rgba(255, 255, 255, .024); --grid-size: 64px;
  --surface-glass: rgba(255, 255, 255, .035); --surface-glass-hover: rgba(255, 255, 255, .055);
  --surface: rgba(11, 17, 23, .74); --surface-elevated: rgba(16, 23, 31, .96); --surface-data: rgba(8, 13, 18, .93); --surface-inset: rgba(0, 0, 0, .28);
  --border: rgba(255, 255, 255, .08); --border-hover: rgba(255, 255, 255, .16); --border-strong: rgba(255, 255, 255, .22);
  --text-primary: rgba(255, 255, 255, .95); --text-secondary: rgba(255, 255, 255, .62); --text-muted: rgba(255, 255, 255, .4);
  --success: #32d296; --success-rgb: 50, 210, 150; --warning: #f5b544; --warning-rgb: 245, 181, 68; --danger: #ff5a3c; --danger-rgb: 255, 90, 60;
  --violet-rgb: 169, 139, 255; --gold-rgb: 255, 215, 107;
  --money-in: #32d296; --money-out: #ff6b8d;
  --r-xs: 6px; --r-sm: 8px; --r-md: 12px; --r-lg: 16px; --r-xl: 20px; --r-pill: 999px;
  --blur-sm: 12px; --blur-md: 20px; --blur-lg: 32px;
  --shadow-md: 0 4px 16px rgba(0, 0, 0, .35); --shadow-lg: 0 12px 32px -8px rgba(0, 0, 0, .6); --shadow-xl: 0 24px 64px -12px rgba(0, 0, 0, .7);
  --rim: inset 0 1px 0 rgba(255, 255, 255, .06); --rim-bright: inset 0 1px 0 rgba(255, 255, 255, .1);
  --ease-out: cubic-bezier(.22, 1, .36, 1); --ease-expo: cubic-bezier(.16, 1, .3, 1); --ease-in-out: cubic-bezier(.65, 0, .35, 1);
  --t-instant: 120ms; --t-fast: 180ms; --t-base: 240ms; --t-slow: 320ms;
  --fs-micro: 10px; --fs-xs: 11.5px; --fs-sm: 13px; --fs-base: 14px; --fs-lg: 18px; --fs-xl: 22px; --fs-2xl: 28px; --fs-3xl: 34px;
  --tracking-micro: .2em;
  --font-sans: -apple-system, BlinkMacSystemFont, 'Inter', 'Segoe UI', ui-sans-serif, system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, 'SF Mono', 'Cascadia Code', Consolas, monospace;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body { background: var(--background); color: var(--text-primary); font: var(--fs-base)/1.55 var(--font-sans); letter-spacing: -.006em; -webkit-font-smoothing: antialiased; }
body::before { content: ''; position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background: radial-gradient(64% 46% at 16% -8%, rgba(var(--signal-deep-rgb), .11), transparent 64%), radial-gradient(50% 42% at 88% 2%, rgba(var(--accent-rgb), .08), transparent 66%),
    radial-gradient(80% 55% at 50% 112%, rgba(var(--signal-rgb), .04), transparent 72%), linear-gradient(180deg, var(--void) 0%, var(--background) 44%, var(--void) 100%); }
#root { position: relative; z-index: 1; }
button, input, select { font: inherit; color: inherit; }
a { color: var(--signal); text-decoration: none; }
a:hover { color: #fff; }
::selection { background: rgba(var(--accent-rgb), .3); color: #fff; }
* { scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, .14) transparent; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: var(--r-xs); }
.hidden { display: none !important; }
.mono, .num, code, pre { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.mono { font-size: 12px; }
.dim { color: var(--text-secondary); } .faint { color: var(--text-muted); }

/* icons: every glyph carries its own size so none can render empty */
svg.ic { width: 18px; height: 18px; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; display: block; }

/* grid language */
.sysgrid { position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background-image: linear-gradient(to right, var(--grid-line) 1px, transparent 1px), linear-gradient(to bottom, var(--grid-line) 1px, transparent 1px);
  background-size: var(--grid-size) var(--grid-size);
  -webkit-mask-image: radial-gradient(115% 85% at 50% 0%, #000 30%, transparent 78%); mask-image: radial-gradient(115% 85% at 50% 0%, #000 30%, transparent 78%); }

/* type */
.micro { font-family: var(--font-mono); font-size: var(--fs-micro); letter-spacing: var(--tracking-micro); text-transform: uppercase; color: var(--text-muted); line-height: 1.4; }
.micro--signal { color: var(--signal-dim); } .micro--accent { color: rgba(var(--accent-rgb), .75); }
.microline { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.microline > * + *::before { content: ''; display: inline-block; width: 1px; height: 9px; margin-right: 12px; vertical-align: -1px; background: var(--border-strong); }
.page-lede { max-width: 78ch; margin: 0; font-size: var(--fs-sm); line-height: 1.65; color: var(--text-secondary); }
.display { font-size: clamp(1.75rem, 4vw, 2.6rem); line-height: 1.02; letter-spacing: -.035em; font-weight: 600; margin: 0; }

/* ---------- sign in ---------- */
.signin { position: relative; min-height: 100vh; display: flex; flex-direction: column; overflow: hidden; }
.signin .glow { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(48% 40% at 50% 0%, rgba(var(--signal-rgb), .09), transparent 68%); }
.signin-col { position: relative; z-index: 2; display: flex; flex: 1; flex-direction: column; justify-content: center; gap: 24px; width: 100%; max-width: 400px; margin: 0 auto; padding: 32px 20px 24px; }
.signin-head { display: flex; flex-direction: column; gap: 18px; }
.signin-head .wm { height: 30px; width: auto; align-self: flex-start; }
.signin-title { margin: 0; font-size: 1.625rem; font-weight: 600; line-height: 1.15; letter-spacing: -.02em; }
.signin-sub { margin: 6px 0 0; font-size: .875rem; color: var(--text-secondary); }
.signin-card { padding: 24px; border: 1px solid var(--border-hover); border-radius: var(--r-xl); background: var(--surface-elevated); box-shadow: var(--rim-bright), var(--shadow-xl); }
.signin-form { display: flex; flex-direction: column; gap: 18px; }
.signin .field { height: 44px; font-size: 15px; }
.signin-code { font-family: var(--font-mono); font-size: 18px !important; letter-spacing: .18em; text-align: center; }
.signin .btn { height: 44px; width: 100%; }
.signin-err { color: #ff8aa5; font-size: var(--fs-sm); min-height: 18px; }
.signin-foot { text-align: center; }

/* ---------- controls ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 36px; padding: 0 16px; border-radius: var(--r-sm); font-size: var(--fs-sm); font-weight: 500; letter-spacing: -.005em; cursor: pointer; white-space: nowrap; border: 1px solid var(--border);
  background: rgba(255, 255, 255, .05); color: var(--text-primary); text-decoration: none;
  transition: transform var(--t-fast) var(--ease-out), background-color var(--t-fast) var(--ease-out), border-color var(--t-fast) var(--ease-out), box-shadow var(--t-fast) var(--ease-out), color var(--t-fast) var(--ease-out); }
.btn svg.ic { width: 15px; height: 15px; }
.btn:not(:disabled):hover { background: rgba(255, 255, 255, .09); border-color: var(--border-hover); transform: translateY(-1px); color: var(--text-primary); }
.btn:not(:disabled):active { transform: scale(.975); transition-duration: var(--t-instant); }
.btn:disabled { opacity: .42; cursor: not-allowed; }
.btn--primary { background: linear-gradient(180deg, var(--accent) 0%, rgba(var(--accent-rgb), .86) 100%); color: #fff; border-color: rgba(255, 255, 255, .14); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .24), 0 4px 16px -4px var(--accent-halo); }
.btn--primary:not(:disabled):hover { background: linear-gradient(180deg, var(--accent-hover) 0%, var(--accent) 100%); border-color: rgba(255, 255, 255, .14); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .3), 0 8px 24px -6px rgba(var(--accent-rgb), .45); }
.btn--ghost { background: transparent; border-color: transparent; color: var(--text-secondary); }
.btn--ghost:not(:disabled):hover { background: rgba(255, 255, 255, .06); border-color: transparent; }
.btn--sm { height: 30px; padding: 0 11px; font-size: 12.5px; }
.btn--icon { width: 34px; padding: 0; }
.btn--live { background: rgba(var(--success-rgb), .1); border-color: rgba(var(--success-rgb), .4); color: var(--success); }
.field { width: 100%; height: 38px; padding: 0 12px; background: var(--surface-inset); border: 1px solid var(--border); border-radius: var(--r-sm); color: var(--text-primary); outline: none; min-width: 0;
  transition: border-color var(--t-fast) var(--ease-out), box-shadow var(--t-fast) var(--ease-out), background-color var(--t-fast) var(--ease-out); }
.field::placeholder { color: var(--text-muted); }
.field:hover:not(:focus) { border-color: var(--border-hover); }
.field:focus { border-color: rgba(var(--accent-rgb), .55); box-shadow: 0 0 0 3.5px rgba(var(--accent-rgb), .13); background: rgba(0, 0, 0, .36); }
select.field { appearance: none; padding-right: 30px; background-image: linear-gradient(45deg, transparent 50%, var(--text-muted) 50%), linear-gradient(135deg, var(--text-muted) 50%, transparent 50%); background-position: calc(100% - 16px) 52%, calc(100% - 11px) 52%; background-size: 5px 5px; background-repeat: no-repeat; }
select.field option { background: #0d141c; }
input[type='datetime-local'].field { color-scheme: dark; }
.field-label { display: flex; align-items: center; gap: 8px; margin: 0 0 7px; font-family: var(--font-mono); font-size: var(--fs-xs); font-weight: 500; letter-spacing: .13em; text-transform: uppercase; color: var(--text-secondary); }
.segmented { display: inline-flex; gap: 2px; padding: 3px; border-radius: var(--r-md); background: var(--surface-inset); border: 1px solid var(--border); }
.segmented > button { display: inline-flex; align-items: center; gap: 7px; padding: 5px 13px; border: 0; border-radius: var(--r-sm); font-size: var(--fs-sm); font-weight: 500; color: var(--text-secondary); background: transparent; cursor: pointer; white-space: nowrap; transition: background-color var(--t-base) var(--ease-out), color var(--t-base) var(--ease-out); }
.segmented > button:hover { color: var(--text-primary); background: rgba(255, 255, 255, .05); }
.segmented > button[aria-pressed='true'] { color: var(--text-primary); background: linear-gradient(180deg, rgba(var(--accent-rgb), .22), rgba(var(--accent-rgb), .1)); box-shadow: var(--rim-bright), inset 0 0 0 1px var(--accent-line); }

/* ---------- shell ---------- */
.shell { display: grid; grid-template-columns: 252px minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr); min-height: 100vh; }
.shell-rail { position: sticky; top: 0; z-index: 45; grid-row: 1 / span 2; display: flex; flex-direction: column; gap: 16px; height: 100vh; padding: 16px 12px; overflow: hidden; background: linear-gradient(180deg, #04070b 0%, #070b11 100%); border-right: 1px solid var(--border); }
.shell-rail__top { display: flex; align-items: center; gap: 8px; min-height: 44px; }
.shell-brand { display: flex; flex: 1; align-items: center; gap: 12px; min-width: 0; color: inherit; }
.shell-brand .tower { width: 34px; height: 34px; border-radius: 10px; flex: none; background: url(brand/server-zqbx.png) center / cover; box-shadow: var(--rim), 0 4px 14px rgba(0, 0, 0, .45); }
.shell-brand__words { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.shell-brand__words img { height: 15px; width: auto; align-self: flex-start; }
.shell-rail__close { display: none; }
.shell-nav { display: flex; flex: 1; flex-direction: column; gap: 16px; min-height: 0; overflow-y: auto; margin-inline: -4px; padding-inline: 4px; }
.shell-group { display: flex; flex-direction: column; gap: 2px; }
.shell-group__name { padding: 0 12px 4px; margin: 0; }
.rail-item { position: relative; display: flex; align-items: center; gap: 12px; width: 100%; padding: 9px 12px; border-radius: var(--r-md); font-size: var(--fs-sm); font-weight: 500; color: var(--text-secondary); border: 1px solid transparent;
  transition: background-color var(--t-base) var(--ease-out), color var(--t-base) var(--ease-out), border-color var(--t-base) var(--ease-out), box-shadow var(--t-base) var(--ease-out); }
.rail-item svg.ic { width: 19px; height: 19px; color: var(--signal-dim); opacity: .75; transition: opacity var(--t-base) var(--ease-out); }
.rail-item:hover { background: rgba(255, 255, 255, .05); color: var(--text-primary); }
.rail-item:hover svg.ic { opacity: 1; }
.rail-item[aria-current='page'] { background: linear-gradient(180deg, rgba(var(--signal-rgb), .16), rgba(var(--signal-rgb), .05)); border-color: rgba(var(--signal-rgb), .3); color: var(--text-primary); box-shadow: var(--rim-bright), 0 0 20px -6px rgba(var(--signal-rgb), .35); }
.rail-item[aria-current='page'] svg.ic { color: var(--accent); opacity: 1; }
.rail-item .badge { margin-left: auto; font: 600 10.5px var(--font-mono); padding: 1px 7px; border-radius: var(--r-pill); background: var(--accent); color: #fff; }
.shell-rail__foot { display: flex; flex-direction: column; gap: 8px; padding-top: 12px; border-top: 1px solid var(--border); }
.shell-account { display: flex; align-items: center; gap: 12px; width: 100%; padding: 9px 12px; border: 1px solid var(--border); border-radius: var(--r-md); background: rgba(255, 255, 255, .03); color: var(--text-secondary); }
.shell-account--master { border-color: rgba(var(--master-rgb), .4); background: rgba(var(--master-rgb), .1); color: rgb(var(--master-hot-rgb)); }
.shell-account__av { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; flex: none; font-weight: 700; font-size: 13px; background: rgba(255, 255, 255, .07); color: var(--text-primary); }
.shell-account--master .shell-account__av { background: rgba(var(--master-rgb), .22); color: rgb(var(--master-hot-rgb)); }
.shell-account__who { display: flex; flex: 1; flex-direction: column; gap: 1px; min-width: 0; font-size: var(--fs-sm); font-weight: 500; }
.shell-account__who b { font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.shell-account__out { background: none; border: 0; padding: 6px; border-radius: var(--r-sm); color: var(--text-muted); cursor: pointer; }
.shell-account__out:hover { color: var(--text-primary); background: rgba(255, 255, 255, .07); }
.shell-bar { position: sticky; top: 0; z-index: 40; grid-column: 2; background: linear-gradient(180deg, #030507 0%, #060a0e 100%); border-bottom: 1px solid var(--border); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .04), 0 14px 28px -14px rgba(0, 0, 0, .85); }
.shell-bar::after { content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; pointer-events: none; background: linear-gradient(90deg, transparent 0%, var(--signal-line) 30%, rgba(var(--accent-rgb), .35) 50%, var(--signal-line) 70%, transparent 100%); }
.shell-bar__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 66px; padding: 12px 20px; }
.shell-bar__where { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.shell-bar__title { margin: 0; font-size: var(--fs-lg); font-weight: 600; letter-spacing: -.02em; line-height: 1.1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.shell-bar__menu { display: none; }
.shell-bar__right { display: flex; align-items: center; gap: 14px; }
.shell-search { position: relative; width: 300px; }
.shell-search .field { height: 34px; padding-left: 34px; font-size: var(--fs-sm); }
.shell-search svg.ic { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); width: 15px; height: 15px; color: var(--text-muted); pointer-events: none; }
.shell-search kbd { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); font: 500 10.5px var(--font-mono); color: var(--text-muted); border: 1px solid var(--border-hover); border-radius: 5px; padding: 1px 6px; }
.readout { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: var(--fs-micro); letter-spacing: var(--tracking-micro); text-transform: uppercase; white-space: nowrap; }
.readout--ok { color: var(--success); } .readout--warn { color: var(--warning); } .readout--bad { color: var(--danger); }
.readout-dot { width: 5px; height: 5px; border-radius: var(--r-pill); background: currentColor; box-shadow: 0 0 8px currentColor; flex-shrink: 0; }
.readout-dot--live { animation: breathe 2.6s var(--ease-in-out) infinite; }
@keyframes breathe { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
.shell-main { position: relative; z-index: 10; grid-column: 2; min-width: 0; padding: 20px; }
.page { max-width: 1560px; animation: contentIn var(--t-slow) var(--ease-expo); }
@keyframes contentIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.veil { position: fixed; inset: 0; z-index: 44; background: rgba(0, 0, 0, .82); backdrop-filter: blur(var(--blur-sm)); opacity: 0; pointer-events: none; transition: opacity var(--t-base) var(--ease-out); }
.veil.on { opacity: 1; pointer-events: auto; }
@media (max-width: 1023px) { .shell[data-nav-open='true'] > .veil { opacity: 1; pointer-events: auto; } }

/* ---------- modules ---------- */
.stack { display: flex; flex-direction: column; gap: 16px; }
.grid { display: grid; gap: 16px; }
.g-tiles { grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); }
.g-2 { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); }
.g-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g-2e { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.card { position: relative; display: flex; flex-direction: column; min-width: 0; background: var(--surface-glass); border: 1px solid var(--border); border-radius: var(--r-lg);
  backdrop-filter: blur(var(--blur-md)) saturate(150%); -webkit-backdrop-filter: blur(var(--blur-md)) saturate(150%); box-shadow: var(--rim), var(--shadow-lg);
  transition: border-color var(--t-slow) var(--ease-out), background-color var(--t-slow) var(--ease-out); }
.card::before { content: ''; position: absolute; top: 0; left: 0; width: 14px; height: 14px; border-top: 1px solid var(--signal-line); border-left: 1px solid var(--signal-line); border-top-left-radius: var(--r-lg); pointer-events: none; transition: border-color var(--t-base) var(--ease-out); }
.card:hover { border-color: var(--border-hover); }
.card:hover::before { border-color: rgba(var(--signal-rgb), .4); }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--border); min-width: 0; }
.card-title { display: flex; align-items: center; gap: 8px; margin: 0; font-size: var(--fs-base); font-weight: 600; letter-spacing: -.012em; min-width: 0; }
.card-title svg.ic { width: 15px; height: 15px; color: var(--accent); }
.card-head .aside { display: flex; align-items: center; gap: 10px; font-size: 12.5px; }
.card-body { padding: 16px 18px; flex: 1; min-width: 0; }
.card-body.flush { padding: 8px; }
.tile { position: relative; background: var(--surface-glass); border: 1px solid var(--border); border-radius: var(--r-md); box-shadow: var(--rim), var(--shadow-lg); padding: 14px 16px; min-width: 0; transition: border-color var(--t-slow) var(--ease-expo), transform var(--t-slow) var(--ease-expo); }
.tile::before { content: ''; position: absolute; top: 0; left: 0; width: 14px; height: 14px; border-top: 1px solid var(--signal-line); border-left: 1px solid var(--signal-line); border-top-left-radius: var(--r-md); pointer-events: none; }
.tile .k { line-height: 1.5; letter-spacing: .12em; overflow-wrap: anywhere; }
.tile .v { font-size: 26px; font-weight: 600; line-height: 1.1; letter-spacing: -.03em; font-variant-numeric: tabular-nums; margin-top: 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tile .s { font-size: 12px; color: var(--text-muted); margin-top: 4px; }
.tile.link { cursor: pointer; } .tile.link:hover { border-color: var(--border-hover); transform: translateY(-2px); }
.tile.alert .v { color: var(--accent); }
.v.in { color: var(--money-in); } .v.out { color: var(--money-out); }
.empty { text-align: center; color: var(--text-muted); padding: 34px 10px; font-size: var(--fs-sm); }
.loading { color: var(--text-muted); padding: 40px 0; text-align: center; }
.err-box { background: rgba(var(--danger-rgb), .1); border: 1px solid rgba(var(--danger-rgb), .3); color: #ff9b85; border-radius: var(--r-md); padding: 12px 14px; }

/* status pills (event kinds keep their meaning colours) */
.pill { display: inline-flex; align-items: center; gap: 7px; max-width: 100%; padding: 3px 10px 3px 8px; border-radius: var(--r-pill); font-size: var(--fs-xs); font-weight: 500; letter-spacing: .01em; border: 1px solid var(--border); background: rgba(255, 255, 255, .04); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--text-secondary); }
.pill::before { content: ''; width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0; background: currentColor; box-shadow: 0 0 8px currentColor; }
.pill.joins { color: var(--success); border-color: rgba(var(--success-rgb), .25); background: rgba(var(--success-rgb), .07); }
.pill.deaths { color: #ff6b8d; border-color: rgba(var(--accent-rgb), .3); background: rgba(var(--accent-rgb), .08); }
.pill.combat { color: var(--warning); border-color: rgba(var(--warning-rgb), .25); background: rgba(var(--warning-rgb), .07); }
.pill.chat { color: var(--signal); border-color: rgba(var(--signal-rgb), .25); background: rgba(var(--signal-rgb), .06); }
.pill.admin { color: rgb(var(--violet-rgb)); border-color: rgba(var(--violet-rgb), .28); background: rgba(var(--violet-rgb), .08); }
.pill.economy { color: rgb(var(--gold-rgb)); border-color: rgba(var(--gold-rgb), .25); background: rgba(var(--gold-rgb), .06); }
.pill.network { color: #fff; border-color: var(--accent); background: rgba(var(--accent-rgb), .35); }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: var(--r-pill); background: rgba(255, 255, 255, .04); border: 1px solid var(--border); font-size: 12px; color: var(--text-secondary); white-space: nowrap; text-decoration: none; }
.chip b { color: var(--text-primary); font-weight: 600; }
.chip.click { cursor: pointer; } .chip.click:hover { border-color: var(--border-hover); color: var(--text-primary); }
.chip.on { background: linear-gradient(180deg, rgba(var(--accent-rgb), .22), rgba(var(--accent-rgb), .1)); border-color: var(--accent-line); color: var(--text-primary); }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.dot { width: 7px; height: 7px; border-radius: 50%; display: inline-block; background: var(--text-muted); flex: none; }
.dot.live { background: var(--success); box-shadow: 0 0 8px var(--success); animation: breathe 2.6s var(--ease-in-out) infinite; }

/* filter bar */
.filters { display: flex; gap: 12px; flex-wrap: wrap; align-items: flex-end; padding: 14px 16px; background: var(--surface-glass); border: 1px solid var(--border); border-radius: var(--r-lg); box-shadow: var(--rim); }
.filters .f { display: flex; flex-direction: column; min-width: 150px; flex: 1; }
.filters .f.w2 { flex: 2; min-width: 220px; }
.filters .f.narrow { flex: 0 0 auto; min-width: 0; }
.filters .acts { display: flex; gap: 8px; }

/* log rows: a data surface, opaque and quiet */
.rows { display: flex; flex-direction: column; background: var(--surface-data); border: 1px solid var(--border); border-radius: var(--r-md); overflow: hidden; }
.rows > .empty { border: 0; }
.row { border-bottom: 1px solid rgba(255, 255, 255, .045); transition: background-color var(--t-fast) var(--ease-out); }
.row:last-child { border-bottom: 0; }
.row:hover { background: rgba(255, 255, 255, .028); }
.row .hd { display: grid; gap: 12px; align-items: center; padding: 9px 14px; cursor: pointer; grid-template-columns: 128px 150px minmax(120px, 210px) minmax(0, 1fr) auto; }
.row .tm { color: var(--text-muted); font: 12px var(--font-mono); white-space: nowrap; }
.row .who { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row .sum { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text-secondary); font-size: var(--fs-sm); }
.row .res { color: var(--text-muted); font: 11px var(--font-mono); white-space: nowrap; }
.row .body { border-top: 1px solid rgba(255, 255, 255, .045); padding: 12px 14px 14px; display: none; background: rgba(0, 0, 0, .2); }
.row.open { background: rgba(255, 255, 255, .03); }
.row.open .body { display: block; }
.row.open .sum { white-space: normal; }
.row.new { animation: rowIn 2s var(--ease-out); }
@keyframes rowIn { from { background: rgba(var(--signal-rgb), .1); } to { background: transparent; } }
.plink { font-weight: 600; color: var(--text-primary); }
.plink:hover { color: var(--signal); }
.sid { color: var(--text-muted); font: 11px var(--font-mono); margin-left: 6px; }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: 5px 18px; margin-bottom: 12px; font-size: var(--fs-sm); }
.kv .k { color: var(--text-muted); font: 11px var(--font-mono); letter-spacing: .08em; text-transform: uppercase; padding-top: 2px; }
.kv .v { word-break: break-word; white-space: pre-wrap; }
pre.raw { margin: 0 0 12px; background: var(--surface-data); border: 1px solid var(--border); border-radius: var(--r-sm); padding: 10px 12px; overflow: auto; max-height: 360px; font-size: 12px; color: var(--text-secondary); }
.tools { display: flex; gap: 8px; flex-wrap: wrap; }
.more { display: flex; justify-content: center; margin-top: 14px; }

table.t { width: 100%; border-collapse: collapse; }
table.t th { text-align: left; font: 500 var(--fs-micro) var(--font-mono); letter-spacing: var(--tracking-micro); text-transform: uppercase; color: var(--text-muted); padding: 12px; border-bottom: 1px solid var(--signal-line); white-space: nowrap; }
table.t td { padding: 11px 12px; border-bottom: 1px solid rgba(255, 255, 255, .045); white-space: nowrap; font-size: var(--fs-sm); }
table.t tbody tr { transition: background-color var(--t-fast) var(--ease-out); }
table.t tbody tr:hover { background: rgba(255, 255, 255, .028); }
table.t tbody tr:last-child td { border-bottom: 0; }
table.t tr.click { cursor: pointer; }
table.t td.wrap { white-space: normal; }
table.t td.r, table.t th.r { text-align: right; }
.tscroll { overflow-x: auto; background: var(--surface-data); border: 1px solid var(--border); border-radius: var(--r-md); }
.amt { font-family: var(--font-mono); font-variant-numeric: tabular-nums; font-weight: 600; white-space: nowrap; font-size: 13px; }
.amt.in { color: var(--money-in); } .amt.out { color: var(--money-out); }

/* kill feed */
.kill { display: grid; grid-template-columns: 128px minmax(0, 1fr) minmax(0, 220px) 80px 76px auto; gap: 12px; align-items: center; padding: 10px 14px; border-bottom: 1px solid rgba(255, 255, 255, .045); cursor: pointer; transition: background-color var(--t-fast) var(--ease-out); }
.kill:last-child { border-bottom: 0; }
.kill:hover { background: rgba(255, 255, 255, .028); }
.kill .pair { display: flex; align-items: center; gap: 8px; min-width: 0; }
.kill .pair .n { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kill .pair svg.ic { width: 15px; height: 15px; color: var(--accent); }
.kill .wpn { color: var(--text-secondary); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: var(--fs-sm); }
.kill .xtra { color: var(--text-muted); font: 12px var(--font-mono); }

/* bars */
.bars { display: flex; flex-direction: column; gap: 10px; }
.bar { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 5px 10px; font-size: var(--fs-sm); }
.bar .lbl2 { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text-secondary); }
.bar b { font-family: var(--font-mono); font-weight: 500; font-size: 12.5px; }
.bar .track { grid-column: 1 / -1; height: 4px; background: rgba(255, 255, 255, .06); border-radius: 4px; overflow: hidden; }
.bar .fill { height: 100%; background: var(--signal); border-radius: 4px; box-shadow: 0 0 10px rgba(var(--signal-rgb), .45); }
.bar.red .fill { background: var(--accent); box-shadow: 0 0 10px var(--accent-halo); }
.bar.click { cursor: pointer; } .bar.click:hover .lbl2 { color: var(--text-primary); }

/* chart */
.chart { position: relative; }
.chart svg { display: block; width: 100%; height: 200px; overflow: visible; }
.chart .gl { stroke: rgba(255, 255, 255, .06); stroke-width: 1; }
.chart .ax { fill: var(--text-muted); font-size: 10.5px; font-family: var(--font-mono); }
.chart .b { fill: var(--signal); }
.chart .b.red { fill: var(--accent); }
.chart .hit { fill: transparent; }
.chart .hl.on { fill: rgba(255, 255, 255, .05); }
.tip { position: fixed; z-index: 100; pointer-events: none; background: var(--surface-elevated); border: 1px solid var(--border-hover); border-radius: var(--r-md); padding: 8px 11px; font-size: 12.5px; box-shadow: var(--rim-bright), var(--shadow-xl); opacity: 0; transition: opacity .1s; white-space: nowrap; color: var(--text-secondary); }
.tip.on { opacity: 1; }
.tip b { font: 600 15px var(--font-mono); display: block; color: var(--text-primary); }

/* lists in cards */
.list { display: flex; flex-direction: column; }
.li { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-top: 1px solid rgba(255, 255, 255, .045); min-width: 0; font-size: var(--fs-sm); }
.li:first-child { border-top: 0; padding-top: 0; }
.li:last-child { padding-bottom: 0; }
.li .grow { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.li .tm { color: var(--text-muted); font: 11.5px var(--font-mono); white-space: nowrap; }
.li.click { cursor: pointer; } .li.click:hover .grow { color: var(--signal); }

/* player header */
.ph { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; padding: 18px; }
.ph .big { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; font-size: 22px; font-weight: 700; flex: none; color: var(--signal); background: linear-gradient(180deg, rgba(var(--signal-rgb), .16), rgba(var(--signal-rgb), .05)); border: 1px solid rgba(var(--signal-rgb), .3); box-shadow: var(--rim-bright); }
.ph .nm { font-size: 24px; font-weight: 600; letter-spacing: -.025em; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.ph .ids { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; align-items: center; }

/* drawer */
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(720px, 100vw); background: var(--surface-elevated); border-left: 1px solid var(--border-hover); box-shadow: var(--shadow-xl); z-index: 50; transform: translateX(100%); transition: transform var(--t-slow) var(--ease-expo); display: flex; flex-direction: column; }
.drawer.on { transform: none; }
.drawer .dh { display: flex; align-items: center; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--border); }
.drawer .dh h2 { margin: 0; font-size: var(--fs-lg); font-weight: 600; letter-spacing: -.02em; flex: 1; }
.drawer .db { overflow: auto; padding: 18px 20px 40px; display: flex; flex-direction: column; gap: 14px; }
.tl { display: flex; flex-direction: column; background: var(--surface-data); border: 1px solid var(--border); border-radius: var(--r-md); overflow: hidden; }
.tl .ti { display: grid; grid-template-columns: 74px 130px minmax(0, 1fr); gap: 10px; align-items: center; padding: 8px 12px; border-bottom: 1px solid rgba(255, 255, 255, .045); font-size: var(--fs-sm); }
.tl .ti:last-child { border-bottom: 0; }
.tl .ti.focus { background: rgba(var(--accent-rgb), .1); }
.tl .ti .s { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text-secondary); }
.tl .ti .s b { color: var(--text-primary); font-weight: 600; }

.noacc { max-width: 560px; margin: 40px auto; }

@media (max-width: 1200px) {
  .g-2, .g-3 { grid-template-columns: minmax(0, 1fr); }
  .row .hd { grid-template-columns: 112px 140px minmax(0, 1fr); }
  .row .hd .sum { grid-column: 1 / -1; }
  .row .hd .res { display: none; }
  .kill { grid-template-columns: 112px minmax(0, 1fr) auto; }
  .kill .wpn { grid-column: 2 / -1; } .kill .xtra { display: none; }
}
@media (max-width: 1023px) {
  .shell { grid-template-columns: minmax(0, 1fr); }
  .shell-rail { position: fixed; top: 0; bottom: 0; left: 0; z-index: 50; width: 272px; transform: translateX(-280px); transition: transform var(--t-base) var(--ease-out); }
  .shell[data-nav-open='true'] .shell-rail { transform: none; box-shadow: var(--shadow-xl); }
  .shell-rail__close { display: grid; place-items: center; width: 30px; height: 30px; flex-shrink: 0; border: 1px solid var(--border); border-radius: var(--r-sm); background: rgba(255, 255, 255, .03); color: var(--text-muted); cursor: pointer; }
  .shell-rail__close:hover { color: var(--text-primary); border-color: var(--border-hover); }
  .shell-bar, .shell-main { grid-column: 1; }
  .shell-bar__menu { display: inline-flex; }
  .shell-bar__inner { padding: 12px; }
  .shell-main { padding: 16px 12px; }
}
@media (max-width: 760px) {
  .shell-bar__inner { flex-wrap: wrap; }
  .shell-bar__right { width: 100%; }
  .shell-search { flex: 1; width: auto; }
  .shell-bar__right .readout { display: none; }
  .g-2e { grid-template-columns: minmax(0, 1fr); }
  .filters .f, .filters .f.w2 { min-width: calc(50% - 6px); }
  .tile .v { font-size: 20px; }
  .tl .ti { grid-template-columns: 64px minmax(0, 1fr); } .tl .ti .s { grid-column: 1 / -1; white-space: normal; }
  .microline > * + *::before { display: none; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; } }

/* inside the NOIZ panel (All Logs): the panel's tabs are the menu */
.embedded .shell { grid-template-columns: minmax(0, 1fr); min-height: 100%; }
.embedded .shell-rail, .embedded .shell-bar__menu, .embedded .veil { display: none; }
.embedded body { background: transparent; }
