/* War Room / field notes. Warm charcoal, paper ink, restrained signal colors.
   Existing analytic tools inherit this system; map side semantics stay intact. */
:root {
  --bg: #101615;
  --surface-1: #131a18;
  --surface-2: #19221f;
  --surface-3: #24312b;
  --surface-sunken: #0e1411;
  --border: #303c36;
  --border-faint: #25302a;
  --border-strong: #4a5a50;
  --ink: #eeeee4;
  --ink-muted: #a9b6aa;
  --ink-faint: #8b9c90;
  --gold: #e9bf7c;
  --gold-ink: #edcc99;
  --gold-soft: rgba(233,191,124,.1);
  --attack-ink: #ee928b;
  --defense-ink: #9fd0b0;
  --player-a: #b1bddd;
  --player-b: #e9bf7c;
  --grid: #2a352f;
  --accent: #ec987e;
  --accent-dark: #df886e;
  --rail-w: 224px;
  --content-max: 1376px;
  --r-1: 5px;
  --r-2: 9px;
  --r-3: 12px;
}
body { background: var(--bg); }
.rail { background: #101613; border-color: var(--border-faint); }
.rail__brand { padding: 30px 20px 26px; gap: 10px; }
.rail__mark { background: var(--accent); box-shadow: none; border-radius: 5px; width: 32px; height: 36px; }
.rail__mark svg { stroke: #131a18; }
.rail__title { font-size: 13px; letter-spacing: .06em; }
.rail__sub { font-size: 8px; letter-spacing: .08em; margin-top: 7px; }
.rail__nav { padding: 0 12px; gap: 4px; }
.rail__section-label { font-size: 9px; letter-spacing: .12em; padding-top: 22px; }
.navitem { font-size: 13px; min-height: 42px; }
.navitem[aria-current="page"] { background: #233129; }
.navitem[aria-current="page"]::before { background: var(--accent); height: 17px; }
.navitem[aria-current="page"] .navitem__icon { color: var(--accent); }
.rail__foot { border: 0; }
.rail__mission { margin: 0 12px 18px; padding: 18px 0; border-top: 1px solid var(--border); display: grid; gap: 7px; }
.rail__mission span { font: 9px var(--font-mono); color: var(--accent); letter-spacing: .08em; }
.rail__mission strong { font: 500 15px var(--font-display); }
.rail__mission small { font-size: 11px; color: var(--ink-faint); }
.topbar { background: #101615; backdrop-filter: none; border-color: var(--border-faint); padding: 0 32px; min-height: 64px; }
.topbar__crumbs { font-size: 11px; }
.scopeswitch__label { font-size: 10px; }
.scopeswitch__opt { font-size: 11px; }
.content__inner { padding: 34px 32px 60px; }
.c-mobile-menu { display: none; }
.c-page { display: flex; flex-direction: column; gap: 24px; }
.c-page h1, .c-page h2, .c-page h3 { font-family: var(--font-display); font-weight: 500; color: var(--ink); }
.c-page h1 { font-size: clamp(32px, 3.1vw, 50px); line-height: 1.07; letter-spacing: -.045em; max-width: 14ch; }
.c-page h2 { font-size: 22px; letter-spacing: -.025em; line-height: 1.2; }
.c-page h3 { font-size: 20px; line-height: 1.23; letter-spacing: -.02em; }
.c-page p { color: var(--ink-muted); font-size: 13px; line-height: 1.65; }
.c-eyebrow { font: 9px/1.5 var(--font-mono); text-transform: uppercase; letter-spacing: .13em; color: var(--ink-faint); }
.c-hero { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(260px, 1fr); gap: 42px; padding: 12px 0 16px; align-items: center; }
.c-hero__copy { display: grid; gap: 19px; }
.c-hero__copy > .c-eyebrow { color: var(--accent); }
.c-hero__copy p { max-width: 52ch; }
.c-hero__aside { border-left: 1px solid var(--border); padding-left: 34px; display: grid; gap: 18px; }
.c-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.c-button { display: inline-flex; align-items: center; justify-content: space-between; gap: 18px; padding: 11px 14px; min-height: 44px; background: transparent; border: 1px solid var(--border-strong); border-radius: 5px; color: var(--ink); font: 500 12px var(--font-body); cursor: pointer; text-decoration: none; transition: background .12s, border-color .12s; }
.c-button:hover { background: var(--surface-3); border-color: var(--ink-faint); color: var(--ink); }
.c-button--primary { background: var(--accent); color: #1a1c15; border-color: var(--accent); font-weight: 600; }
.c-button--primary:hover { background: #f1b098; color: #1a1c15; }
.c-button--small { min-height: 44px; padding: 9px 12px; width: fit-content; }
.c-identities { display: grid; gap: 16px; }
.c-identity { display: flex; align-items: center; gap: 16px; text-decoration: none; border-radius: 5px; }
.c-identity:hover strong { color: var(--accent); }
.c-identity > div { display: grid; gap: 4px; }
.c-identity strong { font: 500 23px var(--font-display); color: var(--ink); }
.c-identity small { font-size: 11px; color: var(--ink-muted); }
.c-rank-mark { width: 46px; height: 55px; color: #a4c9ac; flex: none; }
.c-identity--kolerocks .c-rank-mark { color: #d7b684; }
.c-caption, .c-page .c-caption { color: var(--ink-faint); font-size: 11px; line-height: 1.6; }
.c-form-panel { background: #19251e; padding: 24px; border: 1px solid #32463a; border-radius: var(--r-2); }
.c-form-panel__head { display: flex; justify-content: space-between; gap: 22px; align-items: center; margin-bottom: 22px; }
.c-form-panel__head h2 { font: 500 29px var(--font-mono); margin-top: 6px; }
.c-positive { color: #a6d4b5 !important; }
.c-negative { color: #ef9d95 !important; }
.c-form-panel__read { display: grid; gap: 5px; margin-left: auto; }
.c-form-panel__read strong { font: 400 15px var(--font-mono); }
.c-form-panel__read small { color: var(--ink-muted); font-size: 11px; }
.c-form-strip { display: flex; gap: 5px; width: 100%; }
.c-form-game { min-width: 0; flex: 1; min-height: 38px; border-radius: 3px; display: grid; place-items: center; font: 11px var(--font-mono); background: #34423a; border-bottom: 2px solid #7c8c82; color: var(--ink-muted); text-decoration: none; }
.c-form-game--win { background: #314d3b; border-color: #9dc4a4; color: #d3e2ce; }
.c-form-game--loss { background: #4b342f; border-color: #d8917f; color: #eed0c6; }
.c-form-game:hover { transform: translateY(-2px); outline: 1px solid var(--ink); }
.c-form-panel__foot { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-top: 10px; color: #abb9ac; font: 9px/1.5 var(--font-mono); }
.c-section-head { display: flex; justify-content: space-between; gap: 18px; align-items: end; margin-top: 10px; }
.c-section-head > div { display: grid; gap: 7px; }
.c-section-head .c-button { border: 0; padding-right: 0; color: var(--accent); }
.c-section-head h2 { font-size: 23px; }
.c-section-note { margin-top: -12px; max-width: 92ch; }
.c-stat-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px solid var(--border); border-radius: var(--r-2); background: var(--surface-1); margin: 0; }
.c-stat { min-width: 0; padding: 20px 18px; border-right: 1px solid var(--border); display: grid; gap: 13px; align-content: start; }
.c-stat:last-child { border: 0; }
.c-stat .ratechip-block > .ratechip__val { font-size: 30px; color: var(--ink); font-weight: 400; }
.c-stat .ratechip-block__label { font-size: 10px; color: var(--ink-muted); letter-spacing: .02em; min-height: 17px; }
.c-stat .ratechip { flex-wrap: wrap; gap: 5px; }
.c-stat .ratechip__meta { font-size: 9px; }
.c-stat .ratechip__whisker { display: none; }
.c-stat .c-caption { margin: 0; font-size: 11px; }
.c-insight-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; align-items: start; }
.c-insight { padding: 22px; border: 1px solid var(--border); border-top: 2px solid var(--accent-dark); border-radius: var(--r-2); background: var(--surface-1); display: flex; flex-direction: column; gap: 15px; min-width: 0; }
.c-insight--strength { border-top-color: #a3cbaa; }
.c-insight--strength .c-eyebrow { color: #a3cbaa; }
.c-card-top { display: flex; justify-content: space-between; gap: 8px; align-items: center; flex-wrap: wrap; }
.c-badge { color: var(--ink-muted); font: 9px var(--font-mono); border: 1px solid var(--border); padding: 4px 6px; border-radius: 3px; white-space: nowrap; }
.c-insight h3 { font-size: 21px; }
.c-insight__read { font-size: 12px !important; }
.c-insight__action { padding-left: 12px; border-left: 2px solid var(--border-strong); color: var(--ink) !important; font-size: 12px !important; }
.c-insight__meta { color: var(--ink-faint); font: 9px/1.6 var(--font-mono); }
.c-details { border-top: 1px solid var(--border); margin-top: auto; }
.c-details > summary { list-style: none; min-height: 44px; display: flex; align-items: center; justify-content: space-between; font-size: 11px; color: var(--ink-muted); cursor: pointer; gap: 10px; }
.c-details > summary::after { content: '+'; font: 16px var(--font-mono); color: var(--accent); }
.c-details[open] > summary::after { content: '−'; }
.c-details > summary::-webkit-details-marker { display: none; }
.c-details__body { display: grid; gap: 14px; padding-bottom: 8px; }
.c-details__body p { font-size: 11px; }
.c-comparison { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; padding: 14px 0; }
.c-comparison > div { min-width: 0; display: grid; gap: 6px; align-content: start; }
.c-comparison small { font-size: 10px; color: var(--ink-faint); }
.c-comparison .ratechip__whisker { display: none; }
.c-comparison .ratechip__meta { flex-wrap: wrap; font-size: 9px; }
.c-reference-value { font: 400 25px var(--font-mono); color: var(--ink-muted); }
.c-comparison .ratechip-block > .ratechip__val { font-size: 25px; }
.c-receipts { display: grid; }
.c-receipt { display: flex; gap: 10px; align-items: center; min-height: 58px; border-bottom: 1px solid var(--border-faint); text-decoration: none; }
.c-receipt:hover { background: var(--surface-2); }
.c-receipt > span:nth-child(2) { flex: 1; display: grid; gap: 3px; }
.c-receipt strong { font-size: 11px; color: var(--ink); font-weight: 500; }
.c-receipt small { font-size: 9px; color: var(--ink-faint); }
.c-receipt__round { font: 10px var(--font-mono); color: var(--accent); width: 24px; }
.c-bottom-grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: 22px; align-items: start; }
.c-panel { border: 1px solid var(--border); border-radius: var(--r-2); padding: 22px; background: var(--surface-1); display: grid; gap: 15px; min-width: 0; }
.c-panel .c-section-head { margin: 0; }
.c-panel .c-section-head h2 { font-size: 20px; }
.c-match-row { display: flex; align-items: center; gap: 14px; min-height: 66px; border-bottom: 1px solid var(--border-faint); color: var(--ink); text-decoration: none; }
.c-match-row:last-child { border: 0; }
.c-match-row:hover { background: var(--surface-2); }
.c-match-row__name { flex: 1; display: grid; gap: 4px; }
.c-match-row__name strong { font: 500 14px var(--font-display); }
.c-match-row__name small { font-size: 10px; color: var(--ink-faint); }
.c-match-row > .mono { font-size: 13px; font-weight: 400; }
.c-result { font: 12px var(--font-mono); width: 30px; height: 35px; display: grid; place-items: center; border-radius: 4px; background: var(--surface-3); }
.c-result--win { background: #2c4233; color: #b8d7bd; }
.c-result--loss { background: #462f2b; color: #edb3a2; }
.c-arrow { color: var(--ink-faint); }
.c-lab-feature { position: relative; overflow: hidden; border: 1px solid var(--border); border-radius: var(--r-2); background: #19251f; min-height: 344px; display: flex; align-items: end; text-decoration: none; }
.c-lab-feature > img { position: absolute; width: 72%; height: 95%; top: -24%; right: -8%; object-fit: contain; opacity: .25; transform: rotate(-10deg); transition: transform .3s; }
.c-lab-feature:hover > img { transform: rotate(-5deg) scale(1.06); }
.c-lab-feature__copy { position: relative; padding: 25px; display: grid; gap: 12px; max-width: 310px; background: linear-gradient(0deg, #19251f 60%, transparent); }
.c-lab-feature__copy h2 { font-size: 29px; }
.c-text-link { color: var(--accent); font-size: 12px; margin-top: 6px; }
.c-freshness { padding: 18px 0; display: flex; align-items: center; gap: 8px; color: var(--ink-faint); font: 10px/1.6 var(--font-mono); }
.c-status-dot { flex: none; width: 5px; height: 5px; background: #a2c6a5; border-radius: 50%; }
.c-status-dot--stale { background: var(--accent); }
.c-source-links { display: flex; flex-wrap: wrap; gap: 12px; font-size: 11px; }
.c-source-links a { color: var(--accent); }
.c-empty { padding: 25px; border: 1px dashed var(--border); border-radius: 7px; color: var(--ink-muted); font-size: 13px; }
.c-toolbar { display: flex; gap: 12px; flex-wrap: wrap; align-items: end; }
.c-field { display: grid; gap: 7px; min-width: 120px; flex: 1; }
.c-field > span { font: 9px var(--font-mono); text-transform: uppercase; letter-spacing: .08em; color: var(--ink-faint); }
.c-field select, .c-field input, .c-field textarea { width: 100%; background: var(--surface-1); color: var(--ink); border: 1px solid var(--border-strong); border-radius: 5px; padding: 11px 12px; font: 13px var(--font-body); min-height: 44px; }
.c-field textarea { resize: vertical; min-height: 110px; }
.c-table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: 7px; }
.c-table { width: 100%; border-collapse: collapse; font-size: 12px; }
.c-table th { text-align: left; background: var(--surface-2); padding: 13px 14px; font: 9px var(--font-mono); text-transform: uppercase; letter-spacing: .05em; color: var(--ink-faint); white-space: nowrap; }
.c-table td { padding: 13px 14px; border-top: 1px solid var(--border-faint); vertical-align: middle; }
.c-table td:not(:first-child) { font-variant-numeric: tabular-nums; }
.c-table tr:hover td { background: var(--surface-2); }
.c-table .ratechip { font-size: 11px; }
.c-table .ratechip__whisker { display: none; }
.c-table .ratechip__meta { font-size: 9px; }
.c-table .c-selected td { background: #28392c; }
.c-round-timeline { display: flex; gap: 5px; flex-wrap: wrap; }
.c-round-timeline button { min-width: 38px; min-height: 44px; border-radius: 4px; border: 1px solid var(--border); font: 11px var(--font-mono); cursor: pointer; }
.c-round-timeline .c-selected { outline: 2px solid var(--accent); outline-offset: 2px; }
.c-round-divider { flex: 0 0 100%; margin-top: 8px; font: 9px var(--font-mono); color: var(--ink-faint); }
.c-round-map { position: relative; aspect-ratio: 1; max-width: 400px; background: #162018; border: 1px solid var(--border); border-radius: 7px; }
.c-round-map > img { width: 100%; height: 100%; object-fit: contain; opacity: .5; }
.c-round-map > svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.c-round-map__label { position: absolute; bottom: 8px; left: 10px; font: 9px var(--font-mono); color: var(--ink-muted); }
.c-round-picker { display: grid; gap: 12px; }
.c-round-toolbar { display: flex; justify-content: space-between; align-items: end; flex-wrap: wrap; gap: 16px; }
.c-round-toolbar > .c-field { flex: 0 1 290px; }
.c-round-presets { display: flex; flex-wrap: wrap; gap: 8px; }
.c-round-presets [aria-pressed=true] { background: var(--ink); color: var(--bg); }
.c-round-selection-status { font: 12px/1.5 var(--font-mono); color: var(--ink); }
.c-round-picker .c-round-timeline { gap: 7px; }
.c-round-picker .c-round-timeline button { position: relative; min-width: 44px; min-height: 44px; border-radius: 0; font-size: 12px; }
.c-round-picker .c-round-timeline .c-selected { outline: none; }
.c-round-picker .c-round-timeline .c-selected::after { content: ''; position: absolute; inset: auto 3px -4px; height: 5px; background: var(--accent); mask: var(--ri-rule) center/100% 100% no-repeat; pointer-events: none; }
.c-round-picker .c-round-timeline button:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; }
.c-round-picker .c-round-divider { font-size: 10px; margin-top: 5px; }
.c-round-picker .c-round-timeline { padding-bottom: 5px; }
.c-journal-grid { grid-template-columns: minmax(0,1fr) minmax(0,1fr); }
.c-journal-map { margin: 0; background: #101821; color: #e4e6e2; padding: 16px; min-width: 0; }
.c-journal-map figcaption { display: grid; gap: 6px; }
.c-journal-map figcaption .c-eyebrow, .c-journal-map figcaption .c-caption { color: #c9cdd0; }
.c-journal-map .c-round-map { max-width: none; border: 0; border-radius: 0; width: 100%; }
.c-journal-map .c-round-map > img { opacity: .65; }
.c-round-map__legend { display: flex; flex-wrap: wrap; gap: 8px 14px; font: 10px/1.6 var(--font-mono); }
.c-round-map__legend span:nth-child(1) { color: #b1bddd; }
.c-round-map__legend span:nth-child(2) { color: #e9bf7c; }
.c-round-map__legend span:nth-child(4) { color: #bca9da; }
.c-journal-map .c-round-map__detail { font-size: 11px; line-height: 1.6; color: #c9cdd0; min-height: 3.2em; margin-top: 10px; }
.c-round-event { cursor: pointer; outline: none; }
.c-round-event:hover .c-round-event__target, .c-round-event:focus .c-round-event__target { stroke: #fffaf0; stroke-width: 3px; }
.c-round-summary .c-round-record { font: 22px/1.3 var(--font-mono); }
.pl-analysis-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: var(--s4); align-items: start; }
.pl-card-stack { display: flex; flex-direction: column; gap: var(--s4); }
.pl-analysis-grid > .card { min-width: 0; }
.hub-players :where(div,section,article) { min-width: 0; }
.pl-trade-scroll { overflow-x: auto; }
.pl-trade-scroll > div { min-width: 570px; }
.pl-trade-evidence { grid-column: 1 / -1; display: grid; gap: 16px; }
.pl-trade-evidence > .c-field { max-width: 280px; }
.pl-contact-context { display: grid; gap: 14px; }
.pl-contact-context .c-table td { white-space: normal; }
.pl-trade-evidence .c-table th { white-space: normal; }
.pl-contact-context .c-table td:last-child { min-width: 130px; }
.pl-entry-line { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 5px 16px; align-items: center; padding: 12px 0; border-top: 1px solid var(--border); }
.pl-entry-line > :last-child { grid-column: 1 / -1; text-align: left !important; }
.pl-paired-clutch,.pl-starting-clutch { display: grid; gap: 16px; }
.pl-paired-clutch .c-stat-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
.pl-clutch-live,.pl-clutch-body { display: grid; gap: 24px; }
.pl-clutch-live h3 { font-size: clamp(24px,3vw,34px); }
.pl-clutch-live h4 { margin: 0; font-size: 20px; line-height: 1.3; }
.pl-clutch-controls { display: flex; justify-content: space-between; gap: 20px; align-items: end; flex-wrap: wrap; }
.pl-clutch-states { display: flex; flex-wrap: wrap; gap: 8px; }
.pl-clutch-state { min-height: 48px; min-width: 62px; padding: 10px; background: transparent; border: 1px solid var(--ink-muted); font: 20px var(--font-poster); cursor: pointer; }
.pl-clutch-state[aria-pressed="true"] { background: var(--ink); color: var(--paper,#f3efe5); transform: rotate(-2deg); }
.pl-clutch-state:focus-visible,.pl-clutch-receipt:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
.pl-clutch-duel,.pl-clutch-comparison,.pl-clutch-review { display: grid; gap: 14px; }
.pl-clutch-duel__heading { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; flex-wrap: wrap; }
.pl-clutch-duel .c-stat-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
.pl-clutch-balance { display: flex; height: 13px; gap: 3px; transform: rotate(-.25deg); overflow: hidden; }
.pl-clutch-balance span:first-child { background: var(--accent); }
.pl-clutch-balance span:last-child { background: var(--ink); }
.pl-clutch-current td:first-child { font-weight: 700; border-left: 3px solid var(--accent); }
.pl-clutch-examples { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; }
.pl-clutch-receipt { display: grid; gap: 8px; padding: 16px; border: 1px solid var(--ink-muted); color: inherit; text-decoration: none; transition: transform .16s ease,background .16s ease; }
.pl-clutch-receipt:hover { transform: translateY(-3px); background: var(--surface-2); }
.pl-clutch-receipt span,.pl-clutch-receipt small { color: var(--ink-muted); font-size: 12px; }
@media (max-width: 700px) {
  .pl-clutch-examples { grid-template-columns: minmax(0,1fr); }
  .pl-clutch-state { min-width: 46px; }
  .pl-clutch-live .c-table th { white-space: normal; }
}
@media (prefers-reduced-motion: reduce) { .pl-clutch-receipt { transition: none; } }
@media (max-width: 1000px) { .pl-analysis-grid { grid-template-columns: minmax(0,1fr); } }
@media (max-width: 600px) {
  .pl-agent-metric { grid-template-columns: minmax(0,1fr) auto !important; }
  .pl-agent-metric > :nth-child(3),.pl-agent-metric > :nth-child(4) { grid-column: 1 / -1; text-align: left !important; }
  .pl-contact-context .c-table td:last-child { min-width: 95px; }
  .hub-players .pl-aim__compare { grid-template-columns: minmax(0,1fr); }
  .hub-players .pl-aim__side--k { text-align: left; align-items: flex-start; }
  .hub-players .pl-aim__vs { text-align: left; }
  .hub-players .pl-aim__context { grid-template-columns: minmax(0,1fr); }
}
@media (max-width: 760px) {
  .c-journal-grid { grid-template-columns: minmax(0,1fr); }
  .c-journal-map { grid-row: 1; padding: 12px; }
  .c-round-toolbar > .c-field { width: 100%; flex-basis: 100%; }
}
.c-score-big { font: 400 clamp(40px, 4vw, 60px) var(--font-mono); letter-spacing: -.06em; }
.c-progress { height: 6px; background: var(--surface-3); border-radius: 4px; overflow: hidden; }
.c-progress > span { display: block; height: 100%; background: var(--accent); }
.c-experiment { background: #202c23; border: 1px solid #485c48; border-radius: 8px; padding: 25px; display: grid; gap: 16px; }
.c-experiment h2 { font-size: 26px; }
.c-plan-status { font: 11px var(--font-mono); color: var(--ink-muted); }
.c-checklist { display: grid; gap: 10px; list-style: none; padding: 0; }
.c-checklist li { display: flex; gap: 13px; font-size: 13px; color: var(--ink-muted); padding: 9px 0; }
.c-step-number { color: var(--accent); font: 11px var(--font-mono); padding-top: 3px; }
.c-trend-chart { width: 100%; height: auto; max-height: 220px; }
.c-top-summary { display: flex; justify-content: space-between; align-items: start; gap: 24px; }
.c-top-summary h1 { max-width: 20ch; }
.c-top-summary > div { display: grid; gap: 14px; }
.c-mode-tabs { display: flex; border: 1px solid var(--border); border-radius: 5px; width: fit-content; flex-wrap: wrap; }
.c-mode-tabs button { border: 0; border-radius: 4px; background: transparent; color: var(--ink-muted); font-size: 12px; padding: 10px 14px; min-height: 44px; cursor: pointer; }
.c-mode-tabs button[aria-pressed=true] { background: var(--surface-3); color: var(--ink); }
/* Existing analytic pages share the same hierarchy and surfaces. */
.sectionhead__eyebrow, .eyebrow { color: var(--ink-faint); }
.verdict { box-shadow: none; }
.verdict__body { font-weight: 500; }
.card { box-shadow: none; }
.lab { border-color: #405048; }
.lab__canvas-wrap { background: #0f1713; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
@media (min-width: 901px) { .rail .navitem { min-height: 44px; } }
@media (max-width: 1150px) and (min-width: 901px) {
  :root { --rail-w: 190px; }
  .rail__brand { padding-left: 13px; }
  .rail__title { font-size: 11px; }
  .content__inner { padding: 28px 24px; }
  .c-hero { gap: 22px; grid-template-columns: 1.2fr 1fr; }
  .c-hero__aside { padding-left: 20px; }
  .c-insight-grid { grid-template-columns: 1fr 1fr; }
  .c-insight-grid > :last-child:nth-child(3) { grid-column: 1 / -1; }
  .c-stat-grid { grid-template-columns: 1fr 1fr; }
  .c-stat:nth-child(2) { border-right: 0; }
  .c-stat:nth-child(-n+2) { border-bottom: 1px solid var(--border); }
}
@media (max-width: 900px) {
  .app { display: block; min-height: 100dvh; }
  .rail { display: none; position: fixed; inset: 64px 0 auto 0; max-height: calc(100dvh - 64px); overflow: auto; z-index: 30; background: #111b15; border-bottom: 1px solid var(--border-strong); }
  .nav-open .rail { display: flex; flex-direction: column; align-items: stretch; }
  .rail__brand { display: none; }
  .rail__nav { display: grid; grid-template-columns: 1fr 1fr; padding: 15px; }
  .rail__section-label { display: block; grid-column: 1 / -1; padding: 10px 12px; }
  .rail__foot { display: block; padding: 0 15px 15px; margin: 0; }
  .rail__mission { display: none; }
  .main { height: 100dvh; }
  .topbar { padding: 0 16px; gap: 10px; position: relative; min-height: 64px; }
  .topbar__crumbs { display: none; }
  .c-mobile-menu { display: block; background: var(--surface-2); color: var(--ink); border: 1px solid var(--border-strong); padding: 10px; border-radius: 4px; min-height: 44px; font-size: 11px; cursor: pointer; }
  .scopeswitch { min-width: 0; }
  .scopeswitch__label { display: none; }
  .scopeswitch__opt { padding-left: 8px; padding-right: 8px; }
  .content__inner { padding: 26px 20px 50px; }
  .c-hero { gap: 25px; grid-template-columns: 1.5fr 1fr; }
  .c-hero__aside { padding-left: 20px; }
  .c-insight-grid { grid-template-columns: 1fr; }
  .c-insight { padding: 20px; }
  .c-insight h3 { max-width: 30ch; }
}
@media (max-width: 620px) {
  .c-page { gap: 20px; }
  .c-hero { display: flex; flex-direction: column; align-items: stretch; gap: 27px; padding-top: 0; }
  .c-page h1 { font-size: 38px; }
  .c-hero__aside { border-left: 0; border-top: 1px solid var(--border); padding: 18px 0 0; gap: 10px; }
  .c-identities { grid-template-columns: 1fr 1fr; gap: 10px; }
  .c-rank-mark { width: 32px; height: 45px; }
  .c-identity { gap: 9px; }
  .c-identity strong { font-size: 17px; }
  .c-identity small { font-size: 9px; }
  .c-form-panel { padding: 17px; }
  .c-form-panel__head { gap: 10px; flex-wrap: wrap; }
  .c-form-panel__head > .c-button { display: none; }
  .c-form-panel__read strong { font-size: 12px; }
  .c-form-panel__read small { font-size: 9px; max-width: 23ch; }
  .c-form-panel__head h2 { font-size: 24px; }
  .c-form-strip { gap: 3px; display: grid; grid-template-columns: repeat(10, 1fr); }
  .c-form-game { min-height: 44px; font-size: 10px; }
  .c-form-panel__foot { font-size: 8px; }
  .c-form-panel__foot > span:nth-child(2) { display: none; }
  .c-stat-grid { grid-template-columns: 1fr 1fr; }
  .c-stat { padding: 16px 13px; gap: 10px; }
  .c-stat:nth-child(2) { border-right: 0; }
  .c-stat:nth-child(-n+2) { border-bottom: 1px solid var(--border); }
  .c-stat .ratechip-block__label { min-height: 26px; font-size: 10px; }
  .c-stat .ratechip-block > .ratechip__val { font-size: 28px; }
  .c-stat .c-caption { font-size: 10px; }
  .c-section-head { flex-wrap: wrap; gap: 8px; }
  .c-section-head h2 { font-size: 23px; }
  .c-section-head > .c-caption { max-width: 100%; }
  .c-section-head .c-button { min-height: 36px; padding: 3px 0; }
  .c-bottom-grid { grid-template-columns: 1fr; }
  .c-panel { padding: 18px; }
  .c-lab-feature { min-height: 300px; }
  .c-top-summary { flex-direction: column; }
  .c-field { min-width: 130px; }
  .c-freshness { font-size: 9px; }
  .c-table td, .c-table th { padding: 10px; }
  .c-page > .c-toolbar { gap: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  .c-form-game:hover, .c-lab-feature:hover > img { transform: none; }
  .c-button, .c-lab-feature > img { transition: none; }
}
.c-chapters { position: sticky; top: -1px; z-index: 4; display: flex; gap: 3px; padding: 8px 0; margin: 0 0 22px; overflow-x: auto; background: var(--bg); border-bottom: 1px solid var(--border); }
.c-chapters button { min-height: 40px; padding: 8px 11px; border: 0; background: transparent; color: var(--ink-muted); font: 11px var(--font-body); white-space: nowrap; cursor: pointer; border-radius: 4px; }
.c-chapters button:hover { color: var(--ink); background: var(--surface-3); }
.c-stat-grid.ov-form { gap: 0; }
.c-stat-grid > .ov-form__cell { background: transparent; border-radius: 0; }
.section-header__title { letter-spacing: -.025em; }
.section-header__sub { max-width: 90ch; }
.c-rank-chart { width: 100%; min-width: 520px; display: block; margin: 18px 0; }
.c-details__body:has(> .c-rank-chart) { overflow-x: auto; }
.lab__quick-filters { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.maps-lab__mount > .lab { width: 100%; min-width: 0; }
.lab__controls { min-width: 0; }
.lab__advanced summary { display: flex; flex-wrap: wrap; align-items: center; column-gap: 16px; }
.lab__active-cuts { font: 11px var(--font-body); color: var(--ink-muted); font-weight: 400; }
.lab__advanced .lab__filters { border: 0; padding: 14px 0 0; }
.lab__advanced .c-details__body { padding-top: 8px; }
@media (max-width: 620px) {
  .lab__bar { min-width: 0; overflow-x: auto; }
  .lab__bar > .lab__bar-group { flex-wrap: nowrap; }
  .lab__bar .lab__chips { flex-wrap: nowrap; }
  .lab__bar .lab__chip { flex-shrink: 0; }
  .lab__quick-filters { display: flex; flex-direction: column; gap: 4px; }
  .lab__quick-filters .lab__row { flex-direction: row; align-items: center; padding: 0; }
  .lab__quick-filters .lab__row-head { min-width: 53px; }
  .lab__quick-filters .lab__chips { flex-wrap: nowrap; gap: 3px; }
  .lab__quick-filters .lab__chip { min-height: 44px; padding-left: 7px; padding-right: 7px; }
}
