/* PS2 Radar -- one stylesheet, no framework. An instrument panel: grey is normal play, colour
   is a contact. Red = suspect, amber = unusual, green = online or clear; faction colours only on
   the small faction tags and chart series; links and buttons are neutral. Tiers differ by shape
   as well as colour: a suspect badge is filled, an unusual one outlined.
   Type scale 12/13/14/16/20/28 px, weights 400/500/600, radii 6 px (containers) and 4 px
   (controls). Section titles sit above their panels; panels carry content, not headings.

   Every section has one anatomy (app.js, block()): the title with its count and its controls,
   a lede that says what it shows and how to read it, the key to its marks, the content, and
   notes on method below. Headline numbers are a row of figures (.tiles); every list of players
   is one kind of row (.player-row). Stacks set the space between sections. */

@font-face {
  font-family: "Inter";
  src: url("fonts/inter.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  color-scheme: dark;
  /* Graphite surfaces. Colour only for state -- red suspect, amber unusual, green online or
     clear -- and for the factions' small tags and chart series. Links and buttons stay
     neutral, so blue belongs to NC alone. */
  --bg: #0d0f12;
  --surface: #14171b;
  --surface-2: #1a1e23;
  --surface-3: #232830;
  --border: #23272d;
  --border-strong: #30363e;
  --text: #e8eaed;
  --text-2: #a9b0ba;
  --text-3: #8a929c;
  --link: var(--text);
  --focus: #e8eaed;
  --primary: #e8eaed;
  --primary-hover: #ffffff;
  --primary-ink: #0d0f12;
  --suspect: #ff6b64;
  --suspect-ink: #1f0a09;
  --suspect-tint: rgba(255, 107, 100, .10);
  --suspect-line: rgba(255, 107, 100, .45);
  --blatant: #d7322b;
  --watch: #e9a23b;
  --watch-line: rgba(233, 162, 59, .6);
  --watch-tint: rgba(233, 162, 59, .10);
  --ok: #3cbf82;
  --ok-tint: rgba(60, 191, 130, .13);
  --vs: #b197fc;
  --nc: #6cb0f5;
  --tr: #f08080;
  --nso: #aab3bd;
  --chart-neutral: #5f6874;
  --chart-grid: #2a2f36;
  --radius: 6px;
  --radius-sm: 4px;
  --shadow: 0 8px 24px rgba(0, 0, 0, .5);
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --page: 1440px;
  --gutter: 20px;
  /* Shared color roles. The v2 palette supplies their served values. */
  --selection: rgba(240, 165, 58, .35);
  --input-bg: var(--bg);
  --input-border: var(--border-strong);
  --row-hover: rgba(169, 193, 214, .045);
  --vs-tint: rgba(177, 151, 252, .14);
  --nc-tint: rgba(108, 176, 245, .14);
  --tr-tint: rgba(240, 128, 128, .14);
  --nso-tint: rgba(170, 179, 189, .12);
  --blatant-ink: #fff;
  --suspect-hover: #f6b85c;
  --hot-glow: rgba(228, 235, 241, .45);
  --hatch: rgba(165, 181, 195, .55);
  --range: rgba(231, 233, 236, .22);
  --chart-death: #ee5757;
  --chart-death-key: #7d8fa0;
  --backdrop: rgba(0, 0, 0, .6);
  --link-underline: rgba(232, 234, 237, .35);
  --dot-idle: #4a525c;
  --warn-text: #f1c27d;
  --row-fed: rgba(255, 255, 255, .03);
  --category-border: rgba(143, 170, 194, .20);
  --category-sheen: rgba(218, 234, 248, .035);
  --category-bg: rgba(28, 39, 50, .38);
  --category-highlight: rgba(225, 236, 248, .035);
  --disclosure-bg: rgba(174, 199, 223, .035);
  --disclosure-hover: rgba(174, 199, 223, .08);
  --cohort-bg: rgba(25, 37, 48, .48);
  --cohort-bg-quiet: rgba(25, 37, 48, .3);
  --cohort-head: rgba(175, 198, 220, .025);
  --ok-soft: rgba(124, 201, 165, .09);
  --ok-line: rgba(124, 201, 165, .4);
  --tip-shadow: 0 4px 16px #0005;
  --notice-shadow: 0 8px 24px #0008;
  --banner-text: #ffc2bd;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scrollbar-gutter: stable; }
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
  font: 400 14px/20px var(--font);
  font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
/* Links inside running text are underlined, not only coloured. */
.explain a, .footer a, .prose a, .lead a, .empty a, .toast a, .notice a, .mod-strip a { text-decoration: underline; text-underline-offset: 2px; text-decoration-color: var(--link-underline); }
h1, h2, h3 { margin: 0; font-weight: 600; letter-spacing: -.01em; }
p { margin: 0; }
button, input, select { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
table, .tile .value, .ev-main b, .tab-count { font-variant-numeric: tabular-nums; }
.muted { color: var(--text-2); }
.faint { color: var(--text-3); }
.small { font-size: 13px; }
.nowrap { white-space: nowrap; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--primary); color: var(--primary-ink); padding: 8px 12px; border-radius: var(--radius-sm); z-index: 50; }
.skip:focus { left: 8px; }
.only-mobile-inline { display: none; }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }

.icon { width: 16px; height: 16px; flex: none; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; vertical-align: -3px; }
.icon.sm { width: 14px; height: 14px; vertical-align: -2px; }

/* --- app bar ------------------------------------------------------------------------------ */

.appbar { position: sticky; top: 0; z-index: 20; background: var(--bg); backdrop-filter: saturate(140%) blur(10px); border-bottom: 1px solid var(--border); }
.appbar-in { max-width: var(--page); margin: 0 auto; height: 58px; padding: 0 var(--gutter); display: flex; align-items: center; gap: 18px; }
.brand { display: flex; align-items: center; gap: 9px; color: var(--text); font-weight: 600; font-size: 16px; letter-spacing: -.01em; white-space: nowrap; }
.brand:hover { text-decoration: none; }
.nav { display: flex; gap: 2px; }
.nav a { color: var(--text-2); font-weight: 500; padding: 7px 11px; border-radius: var(--radius-sm); white-space: nowrap; }
.nav a:hover { color: var(--text); background: var(--surface-2); text-decoration: none; }
.nav a[aria-current="page"] { color: var(--text); background: var(--surface-2); }
/* A patch note this browser has not read yet. On a phone the closed menu carries a dot. */
.nav a[data-new-note]::after { content: "New"; margin-left: 6px; padding: 0 5px; border: 1px solid var(--border-strong); border-radius: var(--radius-sm); color: var(--text); font-family: var(--font); font-size: 11px; font-weight: 500; line-height: 16px; }
.appbar:has(a[data-new-note]) #menuToggle { position: relative; }
.appbar:has(a[data-new-note]) #menuToggle::after { content: ""; position: absolute; top: 9px; right: 9px; width: 7px; height: 7px; border-radius: 50%; background: var(--text); }
.search { margin-left: auto; display: flex; align-items: center; gap: 8px; width: 280px; height: 36px; padding: 0 10px; background: var(--surface); border: 1px solid var(--input-border); border-radius: var(--radius); color: var(--text-3); }
.search:focus-within { border-color: var(--focus); }
.search input { flex: 1; min-width: 0; background: none; border: 0; outline: none; color: var(--text); font-size: 14px; }
.search input::placeholder { color: var(--text-3); }
.search input::-webkit-search-cancel-button { display: none; }
.search kbd { font: 12px var(--font); border: 1px solid var(--border-strong); border-radius: 4px; padding: 0 5px; color: var(--text-3); }
.search { position: relative; }
.suggest { position: absolute; top: calc(100% + 6px); left: 0; right: 0; min-width: 300px; z-index: 30; margin: 0; padding: 4px; list-style: none; background: var(--surface-2); border: 1px solid var(--border-strong); border-radius: var(--radius); box-shadow: var(--shadow); }
.suggest[hidden] { display: none; }
.suggest li { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: var(--radius-sm); color: var(--text); cursor: pointer; }
.suggest li:hover, .suggest li[aria-selected="true"] { background: var(--surface-3); }
.suggest .s-name { flex: 0 0 auto; max-width: 60%; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.suggest .s-meta { flex: 1 1 auto; min-width: 0; color: var(--text-3); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.suggest .s-lookup { color: var(--text-2); font-size: 13px; border-top: 1px solid var(--border); border-radius: 0 0 var(--radius-sm) var(--radius-sm); margin-top: 2px; }
.btn.on { color: var(--watch); border-color: var(--watch-line); }
.btn.on .icon { fill: currentColor; }
.live { display: flex; align-items: center; gap: 7px; color: var(--text-2); font-size: 13px; white-space: nowrap; }
.live:hover { text-decoration: none; color: var(--text); }
.live .dot { background: var(--watch); }
.live.on .dot { background: var(--ok); box-shadow: 0 0 0 3px var(--ok-tint); }
.live.off { color: var(--suspect); }
.live.off .dot { background: var(--suspect); }
.icon-btn { display: inline-grid; place-items: center; width: 40px; height: 40px; border: 0; border-radius: var(--radius); background: none; color: var(--text-2); cursor: pointer; }
.icon-btn:hover { background: var(--surface-2); color: var(--text); }
.appbar-in .icon-btn { flex: none; }
.only-mobile { display: none; }
.only-mobile-block { display: none; }
.below { margin-top: 8px; }
.hidden-mods { margin: 0 0 12px; }

/* --- page ----------------------------------------------------------------------------------- */

main { flex: 1; width: 100%; max-width: var(--page); margin: 0 auto; padding: 30px var(--gutter) 48px; outline: none; }
.footer a + a { margin-left: 14px; }
.footer { max-width: var(--page); width: 100%; margin: 0 auto; padding: 18px var(--gutter) 28px; border-top: 1px solid var(--border); display: flex; flex-wrap: wrap; gap: 6px 24px; justify-content: space-between; color: var(--text-3); font-size: 13px; }
.back { display: inline-flex; align-items: center; gap: 6px; color: var(--text-2); font-weight: 500; margin-bottom: 16px; }
.back:hover { color: var(--text); text-decoration: none; }
.page-title { font-size: 28px; line-height: 1.25; margin-bottom: 8px; }
.lead { color: var(--text-2); font-size: 16px; max-width: 680px; }
.page-body { margin-top: 26px; }
/* Gaps, not margins: a hidden section (no own players yet) leaves no gap behind. */
.stack { display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px; align-content: start; }
.stack-sm { display: grid; gap: 12px; }

/* A section: title (count, tools on the right), lede, key, content, footnote. */
.block { min-width: 0; }
.section-title { display: flex; align-items: baseline; gap: 8px; margin: 0 0 6px; min-height: 22px; }
.section-title h2, .section-title h3 { font-size: 16px; font-weight: 600; }
.section-title .count { color: var(--text-3); font-weight: 500; font-size: 13px; }
.section-title .tools { margin-left: auto; display: flex; align-items: center; gap: 10px; align-self: center; }
.section-title .tools .seg { margin-left: 0; }
.lede { max-width: 820px; margin: 0 0 12px; color: var(--text-2); font-size: 13px; line-height: 19px; }
.footnote { max-width: 820px; margin-top: 10px; color: var(--text-3); font-size: 12px; line-height: 17px; }

/* --- building blocks ----------------------------------------------------------------------- */

.panel { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.panel-body { padding: 14px 16px; }
.empty { display: flex; align-items: flex-start; gap: 12px; padding: 18px 16px; color: var(--text-2); }
.empty .icon { display: none; }
.empty b { color: var(--text); font-weight: 500; }

.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--dot-idle); flex: none; }
.dot.on { background: var(--ok); box-shadow: 0 0 0 3px var(--ok-tint); }
.rows .dot:not(.on), table.data .dot:not(.on), .mods .dot:not(.on) { visibility: hidden; }

.fac { display: inline-flex; align-items: center; justify-content: center; min-width: 26px; padding: 2px 5px; border-radius: 4px; font-size: 12px; font-weight: 600; letter-spacing: .02em; line-height: 1.35; flex: none; }
.fac.VS { color: var(--vs); background: var(--vs-tint); }
.fac.NC { color: var(--nc); background: var(--nc-tint); }
.fac.TR { color: var(--tr); background: var(--tr-tint); }
.fac.NSO, .fac.Unknown { color: var(--nso); background: var(--nso-tint); }
.tag { color: var(--text-3); font-size: 13px; font-weight: 500; }

.pill { display: inline-flex; align-items: center; gap: 4px; padding: 0 6px; border-radius: var(--radius-sm); font-size: 12px; line-height: 18px; font-weight: 500; white-space: nowrap; flex: none; }
.pill.suspect { color: var(--suspect-ink); background: var(--suspect); }
/* Blatant: the suspicion's colour at full strength, and a frame -- numbers no legitimate player
   has reached. */
.pill.blatant { color: var(--blatant-ink); background: var(--blatant); box-shadow: inset 0 0 0 1px var(--suspect); font-weight: 700; }
.verdict.tier-blatant { background: var(--suspect-tint); border-left: 6px solid var(--blatant); }
.tier-blatant .verdict-label { color: var(--suspect); }
.player-row.tier-blatant .sus .score { color: var(--suspect); }
.pill.watch { color: var(--watch); background: none; box-shadow: inset 0 0 0 1px var(--watch-line); }
.pill.none, .pill.ok { color: var(--ok); background: none; padding: 0; }
.pill.insufficient, .pill.neutral { color: var(--text-2); background: none; box-shadow: inset 0 0 0 1px var(--border-strong); }
/* Stat padding: its own shape, a dashed outline -- no cheat, no clean bill either. */
.pill.padding, .mini.padding { color: var(--text-2); background: none; border: 1px dashed var(--text-3); line-height: 16px; }
.verdict.tier-padding { border-left-color: var(--text-3); }
.tier-padding .verdict-label { color: var(--text); }
.tier-mark.padding { color: var(--text-2); }
.pill.note { color: var(--text-2); background: none; box-shadow: inset 0 0 0 1px var(--border-strong); }
.small-pill { margin-left: 8px; font-size: 11px; line-height: 16px; padding: 0 6px; vertical-align: middle; }
/* The operator's mark: checked by hand. Filled like a suspect, with the ink on top. */
.pill.confirmed { color: var(--suspect-ink); background: var(--suspect); font-weight: 600; }
.pill.banned { color: var(--bg); background: var(--text-2); font-weight: 700; }
.pill.likely-banned { color: var(--text-2); background: none; box-shadow: inset 0 0 0 1px var(--text-3); font-weight: 600; }
.pill.reopened { color: var(--watch); background: none; box-shadow: inset 0 0 0 1px var(--watch-line); font-weight: 600; }
.mark-line { display: flex; align-items: center; gap: 6px; margin: -6px 0 12px; color: var(--text); font-size: 13px; }
.mark-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding: 10px 24px 14px; border-top: 1px dashed var(--border-strong); }
.mark-controls .input { flex: 1 1 220px; max-width: 380px; height: 30px; }
.mark-state { display: inline-flex; align-items: center; gap: 6px; color: var(--text-2); font-size: 13px; }
.mark-buttons { display: inline-flex; flex-wrap: wrap; gap: 8px; }
.verdict.cleared .verdict-score { color: var(--text-2); }
.verdict-head .small-pill { margin-left: 0; }

.chip { display: inline-flex; align-items: center; gap: 7px; padding: 3px 10px; border-radius: var(--radius-sm); background: var(--surface-2); color: var(--text-2); font-size: 13px; }
.chip.on { color: var(--ok); background: var(--ok-tint); }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; height: 34px; padding: 0 13px; border-radius: var(--radius-sm); border: 1px solid var(--border-strong); background: var(--surface-2); color: var(--text); font-size: 13px; font-weight: 500; white-space: nowrap; cursor: pointer; text-decoration: none; }
.btn:hover { background: var(--surface-3); text-decoration: none; }
.btn.primary { background: var(--primary); border-color: var(--primary); color: var(--primary-ink); }
.btn.primary:hover { background: var(--primary-hover); border-color: var(--primary-hover); }
.btn.small { height: 30px; padding: 0 10px; font-size: 13px; }
.btn[disabled] { opacity: .55; cursor: default; }
.linkish { background: none; border: 0; padding: 0; color: var(--text-2); cursor: pointer; font-weight: 500; font-size: 13px; }
.linkish:hover { color: var(--text); text-decoration: underline; }
.note { color: var(--text-3); font-size: 13px; line-height: 1.35; }

.input, .select { height: 36px; padding: 0 10px; border-radius: var(--radius-sm); border: 1px solid var(--input-border); background: var(--input-bg); color: var(--text); min-width: 0; width: 100%; }
.input:focus, .select:focus { outline: none; border-color: var(--focus); }
.input[disabled], .select[disabled] { opacity: .6; }
label.field { display: grid; gap: 6px; color: var(--text-2); font-size: 13px; font-weight: 500; }
label.check { display: flex; gap: 10px; align-items: center; }
.form-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: end; }
.form-row .field { flex: 1 1 220px; }
.form-row > .faint { align-self: center; }

.more { display: block; width: 100%; padding: 10px 16px; border: 0; border-top: 1px solid var(--border); background: none; color: var(--text-2); font-weight: 500; text-align: left; cursor: pointer; border-radius: 0 0 var(--radius) var(--radius); }
.more:hover { background: var(--surface-2); color: var(--text); }

details.fold > summary { display: flex; align-items: baseline; gap: 10px; padding: 13px 16px; cursor: pointer; list-style: none; font-weight: 600; }
details.fold > summary::-webkit-details-marker { display: none; }
details.fold > summary::before { content: ""; width: 7px; height: 7px; border-right: 2px solid var(--text-3); border-bottom: 2px solid var(--text-3); transform: rotate(-45deg); margin-right: 2px; align-self: center; transition: transform .15s; }
details.fold[open] > summary::before { transform: rotate(45deg); }
details.fold[open] > summary { border-bottom: 1px solid var(--border); }
details.fold > summary .count { color: var(--text-3); font-weight: 500; font-size: 13px; }
details.fold > summary .hint { margin-left: auto; color: var(--text-3); font-weight: 400; font-size: 13px; }

.seg { display: inline-flex; margin-left: auto; padding: 2px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface); }
.seg button { border: 0; background: none; color: var(--text-3); font-size: 12px; font-weight: 500; padding: 2px 9px; border-radius: 3px; cursor: pointer; white-space: nowrap; }
.seg button[aria-pressed="true"] { background: var(--surface-3); color: var(--text); }

.notice { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: var(--radius-sm); background: var(--surface-2); color: var(--text-2); font-size: 13px; line-height: 1.5; }
.notice .icon { flex: none; margin-top: 2px; }
.notice.warn { background: var(--watch-tint); color: var(--warn-text); }
.banner { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 20px; padding: 12px 14px; border-radius: var(--radius-sm); background: var(--suspect-tint); border: 1px solid var(--suspect-line); color: var(--banner-text); }
.banner .icon { margin-top: 2px; }
.banner b { color: var(--text); }

.skeleton { background: linear-gradient(90deg, var(--surface-2), var(--surface-3), var(--surface-2)); background-size: 200% 100%; animation: shimmer 1.2s infinite linear; border-radius: var(--radius-sm); height: 14px; }
.skeleton-row { display: grid; gap: 8px; padding: 16px; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* --- overview ------------------------------------------------------------------------------- */

.hero { margin-bottom: 32px; }
.hero-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; }
.hero h1 { font-size: 28px; line-height: 34px; font-weight: 600; }
.hero .n-suspect { color: var(--suspect); }
.hero-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin-top: 20px; }
/* Who can take a report: one line under the headline. */
.mod-strip { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin-top: 12px; color: var(--text-2); font-size: 13px; line-height: 18px; }
.mod-strip b { color: var(--text); font-weight: 500; }

.servers { display: flex; gap: 4px; padding: 3px; width: max-content; max-width: 100%; overflow-x: auto; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); scrollbar-width: none; }
.servers::-webkit-scrollbar { display: none; }
.servers button { display: inline-flex; align-items: center; gap: 7px; border: 0; background: none; color: var(--text-2); font-weight: 500; font-size: 13px; padding: 6px 12px; border-radius: var(--radius-sm); cursor: pointer; white-space: nowrap; }
.servers button:hover { color: var(--text); }
.servers button[aria-pressed="true"] { background: var(--surface-3); color: var(--text); }
.servers .tab-count { min-width: 18px; padding: 0 5px; border-radius: var(--radius-sm); background: var(--surface-3); color: var(--text-2); font-size: 12px; font-weight: 500; line-height: 18px; text-align: center; }
.servers .dot { width: 7px; height: 7px; box-shadow: none; }


.rows { list-style: none; margin: 0; padding: 0; }
.rows > li + li { border-top: 1px solid var(--border); }

/* One row for every list of players: who, the strongest finding and the score. */
.player-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.7fr) 72px; gap: 16px; align-items: center; padding: 12px 16px; cursor: pointer; }
.player-row .sus { text-align: right; white-space: nowrap; }
.player-row .sus .score { font-size: 16px; line-height: 22px; }
/* Column heads of a list: what each column is, said once instead of on every row. */
.list-head, .list-head:hover { cursor: default; background: none; padding-top: 8px; padding-bottom: 8px; color: var(--text-3); font-size: 12px; line-height: 16px; }
.player-row:hover { background: var(--surface-2); }
.who { display: grid; gap: 3px; min-width: 0; }
.who-line { display: flex; align-items: center; gap: 8px; min-width: 0; }
.who-line .name { color: var(--text); font-weight: 600; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.who-line .name:hover { text-decoration: underline; }
.who .meta { color: var(--text-3); font-size: 13px; padding-left: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.meta.facts > span + span::before { content: " · "; }
.evidence, .finding-text { display: grid; gap: 1px; min-width: 0; }
.ev-main { color: var(--text-2); }
.ev-main b { color: var(--text); font-size: 16px; font-weight: 600; margin-right: 2px; }
.ev-ref, .ev-more { color: var(--text-3); font-size: 13px; }


.mods { list-style: none; margin: 0; padding: 6px 0; }
.mods li { display: flex; align-items: center; gap: 10px; padding: 8px 16px; }
.mods li .where { margin-left: auto; color: var(--text-3); font-size: 13px; white-space: nowrap; }

.feed { list-style: none; margin: 0; padding: 4px 0; font-size: 13px; }
.feed li { display: grid; grid-template-columns: minmax(0, 1fr) 8px minmax(0, 1fr) 92px; gap: 8px; align-items: center; padding: 6px 14px; }
.feed .arrow { color: var(--text-3); text-align: center; }
.fc-VS, .fc-VS a { color: var(--vs) !important; } .fc-NC, .fc-NC a { color: var(--nc) !important; }
.fc-TR, .fc-TR a { color: var(--tr) !important; } .fc-NSO, .fc-NSO a, .fc-Unknown, .fc-Unknown a { color: var(--nso) !important; }
.feed .side-b { opacity: .8; }
.feed li.flag-suspect { box-shadow: inset 3px 0 0 var(--suspect); background: var(--suspect-tint); }
.feed li.flag-watch { box-shadow: inset 3px 0 0 var(--watch); }
.feed .side-a, .feed .side-b { display: flex; align-items: center; gap: 6px; min-width: 0; white-space: nowrap; }
.feed .side-a a, .feed .side-a > span:not(.fac), .feed .side-b > span:not(.fac) { overflow: hidden; text-overflow: ellipsis; }
.feed .weapon { display: flex; align-items: center; justify-content: flex-end; gap: 4px; color: var(--text-3); font-size: 12px; white-space: nowrap; min-width: 0; }
.feed .weapon > span { overflow: hidden; text-overflow: ellipsis; }
.feed .feed-empty { display: block; color: var(--text-3); padding: 12px 16px; }
.feed-toggle { display: none; }

table.data { width: 100%; border-collapse: collapse; }
table.data th { text-align: left; font-size: 12px; font-weight: 500; color: var(--text-3); padding: 9px 16px; border-bottom: 1px solid var(--border); white-space: nowrap; }
table.data td { padding: 9px 16px; border-bottom: 1px solid var(--border); vertical-align: middle; }
table.data tr:last-child td { border-bottom: 0; }
table.data .r { text-align: right; }
table.data tbody tr.link { cursor: pointer; }
table.data tbody tr.link:hover { background: var(--surface-2); }
table.data .player { display: flex; align-items: center; gap: 8px; min-width: 0; }
table.data .player a { color: var(--text); font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
table.data tr.flag-suspect td:first-child { box-shadow: inset 3px 0 0 var(--suspect); }
table.data tr.flag-watch td:first-child { box-shadow: inset 3px 0 0 var(--watch); }
table.weapons { table-layout: fixed; }
.table-wrap { overflow-x: auto; }

.factions { padding: 12px 16px 14px; border-top: 1px solid var(--border); display: grid; gap: 8px; font-size: 13px; }
.factionbar { display: flex; height: 8px; border-radius: 4px; overflow: hidden; background: var(--surface-3); }
.factionbar i { display: block; height: 100%; }
.factionbar .VS { background: var(--vs); } .factionbar .NC { background: var(--nc); } .factionbar .TR { background: var(--tr); } .factionbar .NSO { background: var(--nso); }

/* --- player -------------------------------------------------------------------------------- */

.player-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 16px 28px; padding: 20px 22px; }
.player-top h1 { font-size: 28px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.player-id { min-width: 0; max-width: 100%; }
.player-top h1 { overflow-wrap: anywhere; }
.player-top h1 #profileHeadTier { display: inline-flex; }
.player-top h1 #profileHeadTier:empty { display: none; }
/* Spacing, not dots, between the facts: a wrapped line never starts with a separator. */
.player-top .meta { margin-top: 6px; color: var(--text-2); display: flex; flex-wrap: wrap; column-gap: 18px; row-gap: 2px; }
.player-top .meta > span { white-space: nowrap; }
.player-top .meta .perf { cursor: help; }
.player-top .meta .perf b { color: var(--text); font-weight: 600; text-decoration: underline dotted var(--text-3); text-underline-offset: 3px; }
.player-top .meta .playing { display: inline-flex; align-items: center; gap: 6px; color: var(--ok); }
.actions { display: flex; flex-wrap: wrap; gap: 8px; }
.actions .btn { height: 32px; background: none; }
.actions .btn:hover { background: var(--surface-2); }

.verdict { border-top: 1px solid var(--border); border-left: 3px solid var(--border-strong); border-radius: 0 0 var(--radius) var(--radius); padding: 16px 24px 8px; }
.verdict.tier-suspect { background: var(--suspect-tint); border-left-color: var(--suspect); }
.verdict.tier-watch { background: var(--watch-tint); border-left-color: var(--watch); }
.verdict.tier-none { border-left-color: var(--ok); }
.verdict.operator-banned { border-left-color: var(--text-2); }
.verdict.operator-banned .verdict-label { color: var(--text); }
.verdict.operator-banned .model-verdict { font-size: 16px; }
.verdict-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; }
.verdict-label { display: inline-flex; align-items: center; gap: 8px; font-size: 20px; font-weight: 600; }
.verdict-label .icon { width: 20px; height: 20px; }
.tier-suspect .verdict-label { color: var(--suspect); }
.tier-watch .verdict-label { color: var(--watch); }
.tier-none .verdict-label { color: var(--ok); }
.tier-insufficient .verdict-label { color: var(--text-2); }
.confidence { color: var(--text-2); font-size: 13px; }
.verdict-text { margin-top: 6px; color: var(--text-2); max-width: 820px; padding-bottom: 12px; }

.findings { list-style: none; margin: 0; padding: 0; }
.finding { display: grid; grid-template-columns: minmax(0, 560px) minmax(170px, 320px); justify-content: start; gap: 6px 48px; align-items: center; padding: 14px 0; border-top: 1px solid var(--border); }
.finding-text .pill { justify-self: start; margin-bottom: 4px; }
.finding .ev-main { color: var(--text); font-size: 14px; }
.finding details { grid-column: 1 / -1; color: var(--text-2); font-size: 13px; }
.finding-group-head { padding-top: 14px; border-top: 1px solid var(--border); }
.finding-group .finding:first-child { border-top: 0; padding-top: 8px; }
table.data.victims tr.fed td { background: var(--row-fed); }
table.data.vehicles .rate { display: grid; grid-template-columns: 48px minmax(90px, 1fr); align-items: center; gap: 10px; max-width: 420px; }
/* Kills per hour is the one compared column: it takes the room the others leave. */
/* One set of column widths for every kind of vehicle, so their tables line up. */
@media (min-width: 861px) {
  table.data.vehicles { table-layout: fixed; }
  table.data.vehicles thead th:nth-child(1) { width: 22%; }
  table.data.vehicles thead th:nth-child(2), table.data.vehicles thead th:nth-child(3) { width: 9%; }
  table.data.vehicles thead th:nth-child(4) { width: 36%; }
  table.data.vehicles thead th:nth-child(5) { width: 14%; }
  table.data.vehicles thead th:nth-child(6) { width: 10%; }
}
@media (max-width: 640px) {
  table.data.vehicles .rate { grid-template-columns: auto; }
  table.data.vehicles .rate .bullet { display: none; }
  table.data.vehicles thead th:nth-child(4) { text-align: right; }
  table.data.vehicles td, table.data.vehicles th { padding-left: 10px; padding-right: 10px; }
}
table.data.victims .small-pill { margin-left: 8px; }
table.data.vehicles .rate .v { font-variant-numeric: tabular-nums; text-align: right; }
table.data.vehicles .rate .v.beyond { color: var(--watch); }
/* A table in groups (the vehicles by kind): each group opens with its name. */
table.data tr.group th { padding-top: 16px; color: var(--text-2); font-weight: 600; }
table.data tbody + tbody tr.group th { border-top: 1px solid var(--border); }
.finding summary { color: var(--text-3); cursor: pointer; font-size: 13px; width: max-content; }
.finding details p { margin-top: 6px; max-width: 820px; }

.bullet-wrap { min-width: 0; }
.bullet { position: relative; height: 22px; }
.bullet .track { position: absolute; left: 0; right: 0; top: 9px; height: 4px; border-radius: 2px; background: var(--surface-3); }
.bullet .normal { position: absolute; top: 9px; height: 4px; border-radius: 2px; background: var(--chart-neutral); }
.bullet .mark { position: absolute; top: 5px; width: 2px; height: 12px; margin-left: -1px; background: var(--text-3); }
.bullet .mark.top { top: 3px; height: 16px; background: var(--text-2); }
.bullet .you { position: absolute; top: 3px; width: 16px; height: 16px; margin-left: -8px; border-radius: 50%; border: 3px solid var(--surface); background: var(--text); }
.bullet.beyond .you { background: var(--suspect); }
.bullet.beyond-watch .you { background: var(--watch); }
.bullet .range { position: absolute; top: 8px; height: 6px; border-radius: 3px; background: var(--range); }
/* Each label sits at its tick: the median's ends there, the best normal's starts there. */
.bullet-legend { position: relative; height: 30px; margin-top: 3px; color: var(--text-3); font-size: 12px; white-space: nowrap; }
.bullet-legend span { position: absolute; }
.bullet-legend .lg-left { top: 0; }
.bullet-legend .lg-right { top: 14px; }

/* Figures: one row with a column per figure, fewer columns on narrow screens, and every row
   full (a last figure spans what is left), so the lines between them never end in a gap. */
.tiles { display: grid; grid-template-columns: repeat(var(--cols, 4), minmax(0, 1fr)); gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.tiles[data-n="1"] { --cols: 1; } .tiles[data-n="2"] { --cols: 2; } .tiles[data-n="3"] { --cols: 3; } .tiles[data-n="4"] { --cols: 4; }
.tiles[data-n="5"] { --cols: 5; } .tiles[data-n="6"] { --cols: 6; } .tiles[data-n="7"] { --cols: 7; }
.profile-figures { margin-top: 16px; }
.tile { background: var(--surface); padding: 12px 16px; min-width: 0; }
.tile .value .unit { font-size: 13px; font-weight: 500; color: var(--text-3); }
.tile .label { display: flex; align-items: center; gap: 6px; color: var(--text-3); font-size: 12px; white-space: nowrap; }
.tile .value { font-size: 20px; font-weight: 600; margin-top: 2px; white-space: nowrap; }
.tile .sub { color: var(--text-3); font-size: 12px; line-height: 16px; }
.tile.flag-suspect { background: linear-gradient(var(--suspect-tint), var(--suspect-tint)), var(--surface); box-shadow: inset 0 2px 0 var(--suspect); }
.tile.flag-suspect .value, .tile.flag-suspect .sub { color: var(--suspect); }
.tile.flag-watch { background: linear-gradient(var(--watch-tint), var(--watch-tint)), var(--surface); box-shadow: inset 0 2px 0 var(--watch); }
.tile.flag-watch .value, .tile.flag-watch .sub { color: var(--watch); }
.tile .peer { color: var(--text-3); font-size: 12px; line-height: 16px; margin-top: 2px; }

.tabs-wrap { margin-top: 28px; }
.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--border); margin-bottom: 18px; overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
/* On a phone the tabs run past the edge: the edge fades, so the rest is seen to be there. */
@media (max-width: 640px) { .tabs { mask-image: linear-gradient(to right, #000 calc(100% - 36px), transparent); -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 36px), transparent); } }
.tabs button { border: 0; background: none; color: var(--text-2); font-weight: 500; padding: 10px 12px; border-bottom: 2px solid transparent; margin-bottom: -1px; cursor: pointer; white-space: nowrap; }
.tabs button:hover { color: var(--text); }
.tabs button[aria-selected="true"] { color: var(--text); border-bottom-color: var(--text); }

.legend { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; margin: 0 0 10px; color: var(--text-3); font-size: 12px; }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { display: inline-block; }
.lg-normal { width: 18px; height: 4px; border-radius: 2px; background: var(--chart-neutral); }
/* The session timeline: kills up, their headshots bright, deaths below the line. */
.session-chart .bar.hs { fill: var(--text-2); }
.session-chart .bar.death { fill: var(--suspect); opacity: .55; }
.session-chart .peak { fill: var(--text); font-weight: 600; }
.timeline-sum { margin: 0 0 10px; color: var(--text-2); font-size: 13px; }
.timeline-sum b { color: var(--text); }
.lg-kill, .lg-hs, .lg-death { width: 10px; height: 10px; border-radius: 2px; }
.lg-kill { background: var(--chart-neutral); }
.lg-hs { background: var(--text-2); }
.lg-death { background: var(--suspect); opacity: .55; }
.lg-top { width: 2px; height: 12px; background: var(--text-2); }
.lg-median { width: 2px; height: 9px; background: var(--text-3); }
.lg-you, .lg-beyond { width: 10px; height: 10px; border-radius: 50%; background: var(--text); }
.lg-beyond { background: var(--suspect); }
.lg-beyond.watch { background: var(--watch); }
.lg-line { width: 14px; height: 2px; background: var(--text); }
.lg-range { width: 18px; height: 6px; border-radius: 3px; background: var(--range); }
.lg-flag { width: 3px; height: 12px; }
.lg-flag.suspect { background: var(--suspect); }
.lg-flag.watch { background: var(--watch); }

table.weapons .c-kills { width: 76px; }
table.weapons .c-rate { width: 30%; }
table.weapons .c-date { width: 118px; }
.fed-note { display: block; color: var(--text-3); font-size: 12px; font-weight: 400; white-space: nowrap; }
.weapon-name { display: grid; min-width: 0; }
.tier-mark { display: inline-flex; margin-right: 6px; vertical-align: -1px; }
.tier-mark.suspect { color: var(--suspect); }
.tier-mark.watch { color: var(--watch); }
.weapon-name b { font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.weapon-name span { color: var(--text-3); font-size: 12px; }
.weapon-name .weapon-finding { color: var(--suspect); }
.weapon-name .weapon-finding.watch { color: var(--watch); }
/* A hundred weapon rows keep their column names in view. Clipping instead of scrolling leaves
   the page as the scroller, so the header can stick under the app bar. */
.table-wrap:has(> table.weapons) { overflow-x: clip; }
table.data.weapons thead th { position: sticky; top: 58px; z-index: 1; background: var(--surface); }
.cell-rate { display: grid; grid-template-columns: 54px minmax(70px, 1fr); gap: 10px; align-items: center; }
.cell-rate .v { text-align: right; }
.cell-rate .v.beyond { color: var(--suspect); font-weight: 600; }
.cell-rate .no-ref { font-size: 12px; }

.chart { width: 100%; height: auto; display: block; }
.chart text { fill: var(--text-3); font: 12px var(--font); }
.chart .bar { fill: var(--chart-neutral); }
.chart .bar.current { fill: var(--text-2); }
.chart .grid { stroke: var(--chart-grid); }
.chart .kd { fill: none; stroke: var(--text); stroke-width: 2; }
.chart .kd-dot { fill: var(--text); }

.kv { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 8px 22px; margin: 0; }
.kv dt { color: var(--text-3); }
.kv dd { margin: 0; overflow-wrap: anywhere; }
ul.plain { margin: 12px 0 0; padding-left: 18px; color: var(--text-2); }
.panel-body .small { margin-top: 12px; }

.two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; align-items: start; }

.timeline { list-style: none; margin: 0; padding: 4px 0; }
.timeline li { display: grid; grid-template-columns: 110px auto minmax(0, 1fr); gap: 12px; align-items: start; padding: 9px 16px; }
.timeline li + li { border-top: 1px solid var(--border); }
.timeline .when { color: var(--text-3); font-size: 13px; }
.timeline .pill { justify-self: start; }

/* --- how it works -------------------------------------------------------------------------- */

.about { display: grid; grid-template-columns: minmax(0, 720px) 360px; justify-content: start; gap: 48px; align-items: start; margin-top: 24px; }
.steps { margin: 0; padding-left: 22px; display: grid; gap: 12px; }
.steps li::marker { color: var(--text-3); font-weight: 600; }
.example { padding: 16px 18px; display: grid; gap: 12px; margin: 0; }
.example figcaption { color: var(--text-3); font-size: 12px; font-weight: 500; text-transform: uppercase; letter-spacing: .04em; }
.example .ev-main { color: var(--text); }
.prose { max-width: 760px; color: var(--text-2); }
.prose h2 { color: var(--text); font-size: 20px; margin: 30px 0 8px; }
.prose p + p { margin-top: 10px; }
.prose b { color: var(--text); font-weight: 600; }
.tiers { display: grid; gap: 12px; margin-top: 12px; }
.tiers div { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 14px; align-items: start; }
.tiers .pill { justify-self: start; }

/* --- dialog and toasts --------------------------------------------------------------------- */

.dialog { width: min(540px, calc(100vw - 32px)); padding: 0; border: 1px solid var(--border-strong); border-radius: var(--radius); background: var(--surface); color: var(--text); box-shadow: var(--shadow); }
.dialog::backdrop { background: var(--backdrop); }
.dialog-head { display: flex; align-items: center; gap: 10px; padding: 14px 12px 14px 18px; border-bottom: 1px solid var(--border); }
.dialog-head h2 { font-size: 16px; }
.dialog-head .icon-btn { margin-left: auto; width: 36px; height: 36px; }
.dialog-body { padding: 16px 18px; display: grid; gap: 14px; }
.dialog-body ol { margin: 0; padding-left: 18px; color: var(--text-2); display: grid; gap: 4px; }
.dialog-foot { display: flex; justify-content: flex-end; gap: 8px; padding: 14px 18px; border-top: 1px solid var(--border); }
.message { width: 100%; min-height: 96px; resize: vertical; padding: 10px 12px; border-radius: var(--radius-sm); border: 1px solid var(--input-border); background: var(--input-bg); color: var(--text); font: 13px/1.5 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }

.toasts { position: fixed; right: 18px; bottom: 18px; z-index: 40; display: grid; gap: 8px; width: min(380px, calc(100vw - 36px)); }
.toast { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: var(--radius); background: var(--surface-2); border: 1px solid var(--border-strong); box-shadow: var(--shadow); animation: toast-in .18s ease-out; }
.toast .icon { margin-top: 2px; }
.toast.suspect .icon { color: var(--suspect); }
.toast.ok .icon { color: var(--ok); }
.toast b { display: block; }
.toast p { color: var(--text-2); font-size: 13px; }
@keyframes toast-in { from { transform: translateY(8px); opacity: 0; } }

/* --- responsive ------------------------------------------------------------------------------ */

@media (max-width: 1080px) {
  .player-row { grid-template-columns: minmax(0, 1fr) 56px; row-gap: 4px; }
  .player-row .evidence { grid-column: 1; grid-row: 2; padding-left: 16px; }
  .player-row .sus { grid-column: 2; grid-row: 1 / span 2; }
  .player-row.list-head { display: none; }
  .tiles[data-n="4"].wide { --cols: 2; }
  .tiles[data-n="5"], .tiles[data-n="6"] { --cols: 3; }
  .tiles[data-n="7"] { --cols: 4; }
  .tiles[data-n="5"] > :last-child, .tiles[data-n="7"] > :last-child { grid-column: span 2; }
  .about { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 860px) {
  :root { --gutter: 16px; }
  .appbar-in { gap: 8px; height: 56px; }
  .only-mobile { display: inline-grid; }
  .only-mobile-inline { display: inline; }
  .nav { display: none; position: absolute; top: 56px; left: 0; right: 0; flex-direction: column; gap: 0; padding: 8px var(--gutter) 14px; background: var(--bg); border-bottom: 1px solid var(--border); }
  .nav.open { display: flex; }
  .nav a { padding: 12px 10px; font-size: 16px; }
  .search { display: none; position: absolute; top: 56px; left: 0; right: 0; width: auto; height: 52px; margin: 0; border-radius: 0; border-width: 0 0 1px; padding: 0 var(--gutter); background: var(--bg); }
  .search.open { display: flex; }
  body[data-route="overview"] .appbar .search { visibility: visible; }
  .search input { font-size: 16px; }
  .search kbd { display: none; }
  .live { margin-left: auto; }
  main { padding-top: 20px; }
  .hero h1 { font-size: 20px; line-height: 26px; }
  .hero-row { flex-direction: column; align-items: stretch; }
  .hero-controls { flex-direction: column; align-items: stretch; }
  .servers { width: 100%; gap: 2px; }
  .servers button { flex: 1 0 auto; justify-content: center; gap: 4px; padding: 6px 8px; }
  .player-row { grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; }
  .player-row .who { grid-column: 1; grid-row: 1; }
  .player-row .sus { grid-column: 2; grid-row: 1; }
  .player-row .evidence { grid-column: 1 / -1; grid-row: 2; display: block; padding-left: 16px; }
  .player-row .evidence .ev-ref::before { content: " · "; }
  .feed-toggle { display: block; border-top: 0; border-radius: var(--radius); }
  .feed-panel:not(.collapsed) .feed-toggle { border-bottom: 1px solid var(--border); border-radius: var(--radius) var(--radius) 0 0; }
  .feed-panel.collapsed .feed { display: none; }
  .feed li { grid-template-columns: minmax(0, 1fr) 8px minmax(0, 1fr) 84px; }
  .player-top { padding: 16px; }
  .player-top h1 { font-size: 20px; }
  .actions .btn { height: 40px; }
  .verdict { padding: 16px 16px 6px; }
  .mark-controls { padding: 10px 16px 14px; }
  .finding { grid-template-columns: minmax(0, 1fr); }
  .tiles[data-n="4"].wide { --cols: 1; }
  .tiles[data-n="7"] { --cols: 2; }
  .two { grid-template-columns: minmax(0, 1fr); }
  table.data th, table.data td { padding: 9px 12px; }
  table.weapons .c-kills { width: 56px; }
  table.weapons .c-rate { width: 52%; }
  .weapon-name b { white-space: normal; }
  .hide-mobile { display: none; }
  .only-mobile-block { display: block; margin-top: 2px; }
  .timeline li { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .tiers div { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .tabs button { padding: 10px 9px; }
  details.fold > summary { flex-wrap: wrap; row-gap: 2px; }
  details.fold > summary .hint { margin-left: 19px; flex-basis: 100%; }
  .section-title { flex-wrap: wrap; }
  .seg button, .servers button { min-height: 36px; }
  .actions { display: grid; grid-template-columns: 1fr 1fr; width: 100%; }
  .footer { flex-direction: column; }
}

/* Small phones (360 px): the four server tabs still fit without scrolling. */
@media (max-width: 600px) {
  .hide-narrow { display: none; }
  .tiles[data-n="3"] { --cols: 1; }
  .tiles[data-n="4"], .tiles[data-n="5"], .tiles[data-n="6"] { --cols: 2; }
  table.dash { table-layout: auto; }
  table.dash col { width: auto; }
  table.dash td:nth-child(2) { max-width: 160px; }
  table.dash .otag { display: none; }
  .dash-controls .seg { margin-left: 0; width: 100%; }
  .dash-controls .seg button { flex: 1 1 0; }
}

@media (max-width: 380px) {
  .servers button { font-size: 12px; padding: 6px 5px; }
  .servers .tab-count { min-width: 16px; padding: 0 4px; }
}

/* --- dashboard ------------------------------------------------------------------------------ */

.dash-controls { margin: 16px 0 16px; }
.dash-updated { color: var(--text-3); font-size: 12px; line-height: 16px; margin-bottom: 8px; }
/* Three columns: the same header height, panels stretched to one bottom edge. The feed keeps
   its own height out of the row's (it scrolls), so the chart sets the height. */
.dash-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, .8fr) minmax(0, 1fr); gap: 24px; align-items: stretch; }
.dash-grid > * { display: flex; flex-direction: column; min-width: 0; }
.dash-grid .block { flex: 1 1 auto; display: flex; flex-direction: column; }
.dash-grid .section-title { min-height: 30px; align-items: center; }
.dash-grid .block > .panel, .dash-grid .block > .fill { flex: 1 1 auto; }
.dash-grid .feed-panel { max-height: 292px; overflow: auto; }
@media (min-width: 1081px) {
  .dash-grid .lede { min-height: 38px; }
  .dash-grid .fill { position: relative; min-height: 290px; }
  .dash-grid .fill > .feed-panel { position: absolute; inset: 0; max-height: none; }
}
.dash-grid .feed li { grid-template-columns: minmax(0, 1fr) 8px minmax(0, 1fr) 84px; padding: 5px 12px; }
.chart-box { position: relative; }
.chart.lines { touch-action: pan-y; cursor: crosshair; }
.chart .cursor { stroke: var(--text-3); stroke-width: 1; stroke-dasharray: 3 3; }
.chart-tip { position: absolute; top: 6px; left: 0; padding: 5px 9px; border-radius: var(--radius-sm); background: var(--surface-3); border: 1px solid var(--border-strong); color: var(--text); font-size: 12px; white-space: nowrap; pointer-events: none; box-shadow: var(--shadow); }
.chart.triangle { max-width: 360px; margin: 0 auto; }
.chart.triangle .edge { stroke-width: 5; stroke-linecap: round; opacity: .85; }
.chart.triangle .node { fill: var(--surface-2); stroke-width: 2.5; }
.chart.triangle .node.TR { stroke: var(--tr); } .chart.triangle .node.NC { stroke: var(--nc); } .chart.triangle .node.VS { stroke: var(--vs); }
.chart.triangle .node-label { fill: var(--text); font: 600 12px var(--font); }
.chart.triangle .pair { font: 600 13px var(--font); }
.chart.triangle .vs { fill: var(--text-3); }
.chart.lines .line { fill: none; stroke-width: 2; stroke-linejoin: round; }
.chart.lines .line.TR { stroke: var(--tr); } .chart.lines .line.NC { stroke: var(--nc); } .chart.lines .line.VS { stroke: var(--vs); }
table.fights th, table.fights td { padding: 10px 14px; }
.dash-sides { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.dash-side .side-head { display: flex; align-items: baseline; gap: 10px; margin-bottom: 6px; white-space: nowrap; min-width: 0; }
.dash-side .side-head .faint { overflow: hidden; text-overflow: ellipsis; font-size: 13px; }
.dash-side .side-head h3 { font-size: 16px; }
.dash-side .side-head .share { font-weight: 600; }
.dash-side .factionbar { margin-bottom: 10px; }
.dash-list { overflow: visible; }
table.dash { table-layout: fixed; font-size: 13px; }
table.dash th, table.dash td { padding: 6px 4px; }
table.dash thead th { position: sticky; top: 58px; z-index: 1; background: var(--surface); }
table.dash .c-rank { width: 38px; color: var(--text-3); text-align: right; }
table.dash .c-n { width: 38px; }
table.dash .c-rating { width: 54px; }
.dash-rating { display: inline-block; margin-right: 8px; }
table.dash .player { gap: 6px; }
table.dash .player a { font-weight: 500; }
.dash-player-name { min-width: 0; }
.dash-player-name a { display: block; }
.dash-presence-note { display: block; font-size: 12px; color: var(--text-3); white-space: normal; }
table.dash .player .dot.unknown { visibility: visible; background: transparent; border: 1px dashed var(--text-3); box-shadow: none; }
.sort { border: 0; background: none; padding: 0; color: inherit; font: inherit; cursor: pointer; }
.sort[aria-pressed="true"] { color: var(--text); }
.sort[aria-pressed="true"]::after { content: ""; display: inline-block; margin-left: 4px; vertical-align: 2px; border: 4px solid transparent; border-top-color: currentColor; border-bottom-width: 0; }
.otag { color: var(--text-3); font-size: 12px; flex: 0 20 auto; max-width: 46px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mini { flex: none; font-size: 12px; font-weight: 500; padding: 0 5px; border-radius: var(--radius-sm); line-height: 18px; }
.mini.suspect { color: var(--suspect-ink); background: var(--suspect); }
.mini.watch { color: var(--watch); box-shadow: inset 0 0 0 1px var(--watch-line); }
.only-narrow { display: none; }

/* --- player page additions ------------------------------------------------------------------ */

.table-note { padding: 10px 16px 12px; border-top: 1px solid var(--border); }
table.data.compact th, table.data.compact td { padding: 6px 10px; font-size: 13px; }
.sessions .session { border-bottom: 1px solid var(--border); }
.sessions .session:last-child { border-bottom: 0; }
.sessions summary { display: grid; grid-template-columns: 140px 90px 70px 80px 80px 80px 70px minmax(0, 1fr); gap: 10px; align-items: center; padding: 9px 16px; cursor: pointer; list-style: none; }
.sessions summary::-webkit-details-marker { display: none; }
.sessions summary:hover { background: var(--surface-2); }
.sessions summary .r { text-align: right; }
.sessions .session[open] summary { background: var(--surface-2); }
.session-body { display: grid; grid-template-columns: minmax(0, 220px) minmax(0, 1fr); gap: 16px; padding: 12px 16px 16px; }
.session-body .kv { align-content: start; }
.session-chart-wrap { grid-column: 1 / -1; }
.acc-shots { display: block; color: var(--text-3); font-size: 12px; }
.acc-ignored { display: block; color: var(--text-3); font-size: 12px; font-style: italic; cursor: help; text-decoration: underline dotted; text-underline-offset: 2px; }
.score { color: var(--text); font-weight: 600; white-space: nowrap; }
/* Where the column heads are hidden, the number says what it is. */
.score-cap { display: none; }
@media (max-width: 1080px) { .sus .score-cap { display: block; color: var(--text-3); font-size: 11px; font-weight: 400; line-height: 1.2; text-align: right; } }
.verdict-score { color: var(--text-2); font-size: 13px; }
.verdict-score b { color: var(--text); }
.session-score-line { display: flex; flex-wrap: wrap; gap: 6px 24px; padding: 12px 24px; border-top: 1px solid var(--border); }
.session-score-line > span { min-width: 0; overflow-wrap: anywhere; }
.session-score-line b { font-variant-numeric: tabular-nums; }
.session-score-record { margin-top: 12px; overflow-wrap: anywhere; }
.session-score-record > summary { cursor: pointer; padding-block: 8px; }
.session-score-record .kv { margin-block: 12px; }
.session-body > .session-score-record { grid-column: 1 / -1; }

/* --- dev ------------------------------------------------------------------------------------ */

.dev-login { max-width: 460px; }
.tech .kv dd { font-family: var(--mono); font-size: 12px; line-height: 18px; }
details.fold.operator > summary { padding: 8px 0; font-weight: 500; }
details.fold.operator[open] > summary { border-bottom: 0; }
.dev-lock { display: flex; align-items: center; gap: 8px; }
.dev-login code { color: var(--text-2); }
.archive-status { overflow: hidden; }
.archive-health { list-style: none; margin: 0; padding: 0; }
.archive-health-row { display: grid; grid-template-columns: 76px 140px minmax(0, 1fr) auto; gap: 4px 12px; align-items: baseline; padding: 11px 16px; border-bottom: 1px solid var(--border); }
.archive-health-row > b { font-weight: 600; }
.archive-health-detail { color: var(--text-2); overflow-wrap: anywhere; }
.archive-health-at { color: var(--text-3); font-size: 12px; white-space: nowrap; }
.archive-health-empty, .archive-reason { padding: 12px 16px; }
.archive-chip { display: inline-block; justify-self: start; padding: 0 7px; border-radius: var(--radius-sm); font-size: 12px; line-height: 20px; font-weight: 600; }
.archive-chip.ok { color: var(--ok); background: var(--ok-tint); }
.archive-chip.warning { color: var(--watch); box-shadow: inset 0 0 0 1px var(--watch-line); }
.archive-chip.error { color: var(--blatant-ink); background: var(--blatant); }
.archive-chip.unknown { color: var(--text-2); box-shadow: inset 0 0 0 1px var(--border-strong); }
.archive-details > summary { padding: 12px 16px; cursor: pointer; color: var(--link); font-size: 13px; }
.archive-details[open] > summary { border-bottom: 1px solid var(--border); }
.archive-summary { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-bottom: 1px solid var(--border); }
.archive-summary > div { display: grid; gap: 3px; padding: 14px 16px; min-width: 0; }
.archive-summary > div + div { border-left: 1px solid var(--border); }
.archive-summary span, .archive-summary small { color: var(--text-3); font-size: 12px; }
.archive-summary b { font-size: 18px; font-weight: 600; }
.archive-summary small { overflow-wrap: anywhere; }
.archive-phases { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.archive-phase { padding: 14px 16px; min-width: 0; border-bottom: 1px solid var(--border); }
.archive-phase:nth-child(odd) { border-right: 1px solid var(--border); }
.archive-phase-head { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.archive-phase-head > span { color: var(--text-3); font-size: 12px; white-space: nowrap; }
.archive-phase progress { display: block; width: 100%; height: 7px; margin: 9px 0 7px; accent-color: var(--link); }
.archive-phase .note { margin-top: 7px; overflow-wrap: anywhere; }
.shadow-bars { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.shadow-bars li { display: grid; grid-template-columns: 112px minmax(0, 1fr) auto; gap: 10px; align-items: center; font-size: 13px; }
.shadow-bars li > span:first-child { color: var(--text-2); }
.shadow-bars b { font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.shadow-bar { height: 8px; border-radius: 4px; background: var(--border); overflow: hidden; }
.shadow-bar > i { display: block; height: 100%; background: var(--suspect); }
.shadow-bars li[data-shadow-group="false alarm"] .shadow-bar > i { background: var(--chart-neutral); }
.shadow-ratio { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.shadow-ratio > i { display: inline-block; height: 6px; border-radius: 3px; background: var(--suspect); }
.archive-parts { margin-top: 8px; }
.archive-parts summary { cursor: pointer; color: var(--link); font-size: 12px; }
.archive-parts ul { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 9px; }
.archive-part { display: grid; gap: 3px; min-width: 0; }
.archive-part-head { display: flex; justify-content: space-between; gap: 8px; font-size: 12px; }
.archive-part-head > span, .archive-part small { color: var(--text-3); font-size: 12px; }
.archive-part progress { display: block; width: 100%; height: 5px; accent-color: var(--link); }

@media (max-width: 1080px) {
  .dash-grid { grid-template-columns: minmax(0, 1fr); }
  .only-narrow { display: inline-flex; }
  .dash-sides { grid-template-columns: minmax(0, 1fr); }
  .dash-sides[data-show="TR"] .dash-side:not([data-side="TR"]),
  .dash-sides[data-show="NC"] .dash-side:not([data-side="NC"]),
  .dash-sides[data-show="VS"] .dash-side:not([data-side="VS"]) { display: none; }
}

@media (max-width: 860px) {
  .archive-summary, .archive-phases { grid-template-columns: minmax(0, 1fr); }
  .archive-health-row { grid-template-columns: 76px minmax(0, 1fr); }
  .archive-health-detail { grid-column: 1 / -1; }
  .archive-summary > div + div { border-left: 0; border-top: 1px solid var(--border); }
  .archive-phase:nth-child(odd) { border-right: 0; }
  .archive-phase-head { align-items: flex-start; flex-direction: column; gap: 2px; }
  .dash-controls { flex-direction: column; align-items: stretch; }
  table.dash .c-rank { width: 38px; }
  table.dash .c-n { width: 40px; }
  table.dash .c-rating { width: 54px; }
  table.dash th, table.dash td { padding: 7px 5px; }
  .sessions summary { grid-template-columns: minmax(0, 1fr) auto auto auto; }
  .sessions summary > span { white-space: nowrap; }
  .sessions summary > :nth-child(4), .sessions summary > :nth-child(5), .sessions summary > :nth-child(7) { display: none; }
  .session-body { grid-template-columns: minmax(0, 1fr); }
}
.cell-rate.wide { grid-template-columns: 78px minmax(70px, 1fr); }
.earlier-rows { border-top: 1px solid var(--border); opacity: .8; }
.more.earlier { color: var(--text-3); }

.chart.history .score { fill: none; stroke: var(--watch); stroke-width: 2.2; stroke-linejoin: round; }
.chart.history .rating { fill: none; stroke: var(--text-2); stroke-width: 2; stroke-linejoin: round; }
.chart.history .rating-dot { fill: var(--text-2); }
.lg-score, .lg-rating { width: 14px; height: 3px; border-radius: 2px; }
.lg-score { background: var(--watch); } .lg-rating { background: var(--link); }
.chart.triangle .pair { paint-order: stroke; stroke: var(--surface); stroke-width: 5px; stroke-linejoin: round; }

/* The theme control uses native button focus and keyboard behavior. */
/* Narrow phones: the logo alone names the site, so the shell controls keep full touch targets.
   The brand link keeps its accessible name. */
@media (max-width: 460px) { .brand span { display: none; } }
.theme-toggle[aria-pressed="true"] { color: var(--text); }
:root.theme-switching, :root.theme-switching * { transition: none !important; }

.xp-recipient-status { color: var(--text-2); }
.xp-recipient-status[data-match-state="recent"] { color: var(--ok); }

.xp-pagination { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 8px 12px; margin-top: 12px; }
.xp-pagination:empty { display: none; }
.xp-pagination .note { min-width: 0; text-align: center; }
.xp-pagination .btn { min-height: 40px; }
.xp-pagination .btn:disabled { opacity: 1; color: var(--text-2); border-color: var(--border); }
.xp-current-recipients, .xp-earlier-recipient-list { display: grid; gap: 8px; }
.xp-earlier-recipients { margin-top: 12px; }
.xp-session-participant { padding: 10px 0; border-top: 1px solid var(--border); }
.xp-session-participant > .note { display: block; }
.xp-matching-periods { margin-top: 6px; }

.finding-cluster > details > summary { padding: 12px 16px; background: var(--surface); border: 1px solid var(--border); cursor: pointer; font-weight: 600; }
.burst-title > .note { margin-left: 8px; font-weight: 400; }
.burst-highlight { display: block; margin-top: 6px; font-weight: 400; }
.burst-records { display: grid; gap: 10px; padding-top: 10px; }
.burst-recorded-at { display: block; margin: 0 0 4px; color: var(--text-3); font-size: 12px; }

.info-page { margin-top: 24px; }
.info-page > .section-surface, .info-page > footer > .section-surface { border: 1px solid var(--border); background: var(--surface); padding: 18px; min-width: 0; }
.info-page .about { margin-top: 0; gap: 24px; }
.info-page .prose { max-width: 75ch; }
.info-links { display: flex; flex-wrap: wrap; gap: 10px 20px; margin-top: 16px; }
@media (max-width: 600px) {
  .info-page > .section-surface, .info-page > footer > .section-surface { padding: 12px; }
}
