/* radar-ui v2 · Codex Radar homepage design system (console theme, shared with deng.codexradar.com)
   One visual language for both homepages (index.html, en/index.html), rendered from
   skills/codex-radar/templates/home/. Black-green console: near-black ground, one signal
   green, hairline rules, monospaced figures and labels, light used sparingly.
   Layers: 1 tokens · 2 base · 3 layout · 4 controls · 5 disclosure/tables/dialogs
           6 masthead + section nav · 7 page modules that have no own stylesheet · 8 small screens.
   Module stylesheets (community-knowledge.css, codex-two-tasks.css, …) consume the same
   tokens, so a palette change here reaches every module. Presentation only: no content,
   data or hooks live here. */

/* ── 1. Tokens ─────────────────────────────────────────────────────────── */
:root {
  --font-sans: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB",
    "Microsoft YaHei", "Noto Sans SC", "Noto Sans CJK SC", "Source Han Sans SC", sans-serif;
  --font-mono: "JetBrains Mono", "SF Mono", "Cascadia Mono", ui-monospace, Menlo, Consolas, "Liberation Mono", monospace;
  --fs-2xs: 11px; --fs-xs: 12px; --fs-sm: 13px; --fs-md: 15px; --fs-lg: 17px; --fs-xl: 20px;
  --fs-2xl: clamp(22px, 1.2vw + 16px, 28px); --fs-3xl: clamp(28px, 2.4vw + 14px, 40px);
  --lh-tight: 1.22; --lh-ui: 1.45; --lh-body: 1.7;
  --w-regular: 400; --w-medium: 500; --w-semibold: 600; --w-bold: 700;
  --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px; --s-5: 20px; --s-6: 24px; --s-7: 28px; --s-8: 32px;
  --s-10: 40px; --s-12: 48px; --s-14: 56px; --s-16: 64px; --s-20: 80px;
  --r-xs: 2px; --r-sm: 3px; --r-md: 4px; --r-lg: 4px; --r-pill: 99px;
  --ease: cubic-bezier(.2, .7, .2, 1); --dur-1: 120ms; --dur-2: 200ms; --dur-3: 320ms;
  --shell: 1240px; --gutter: clamp(16px, 3.2vw, 40px); --nav-h: 52px; --measure: 72ch;
  --brand-grad: linear-gradient(90deg, var(--accent-2), var(--accent));
  /* Data series keep their published meaning in every module. */
  --series-standard: #5ea8ff; --series-fast: #f3b33d; --series-ultrafast: #39ff88;
  --model-astra: #f97316; --model-sol: #eab308; --model-luna: #818cf8; --model-terra: #38bdf8; --model-luna56: #fb7185;
}

:root, :root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #050806;
  --bg-top: #050806;
  --bg-glow: rgba(57, 255, 136, .055);
  --surface: #09110c;
  --surface-2: #0c1610;
  --surface-3: #112019;
  --surface-sunken: #040705;
  --line: #193a29;
  --line-2: #2a5a40;
  --line-soft: #10251a;
  --text: #ddeae1;
  --text-2: #a2b8aa;
  --text-3: #6f8a79;
  --text-inverse: #050806;
  --accent: #39ff88;
  --accent-2: #22c76a;
  --accent-strong: #8dffbf;
  --accent-ink: #032412;
  --accent-soft: rgba(57, 255, 136, .07);
  --accent-line: rgba(57, 255, 136, .32);
  --glow: rgba(57, 255, 136, .32);
  --ok: #39ff88;  --ok-soft: rgba(57, 255, 136, .1);
  --warn: #f2c14e; --warn-soft: rgba(242, 193, 78, .12);
  --alert: #ff7a6b; --alert-soft: rgba(255, 122, 107, .12);
  --violet: #a78bfa; --violet-soft: rgba(167, 139, 250, .14);
  --focus: #39ff88;
  --scrim: rgba(0, 0, 0, .72);
  --shadow-1: none;
  --shadow-2: none;
  --shadow-pop: 0 24px 100px rgba(0, 0, 0, .6);
  --glass: rgba(5, 8, 6, .88);
  --chart-grid: rgba(57, 255, 136, .08);
  --chart-axis: #6f8a79;
  /* Aliases for module styles and generated markup written before radar-ui. */
  --ink: var(--text); --muted: var(--text-2); --soft: var(--text-3);
  --panel: var(--surface); --panel-soft: var(--surface-2); --line-strong: var(--line-2);
  --blue: var(--accent); --blue-soft: var(--accent-soft);
  --green: var(--ok); --green-dark: var(--accent-2); --green-soft: var(--ok-soft);
  --amber: var(--warn); --amber-soft: var(--warn-soft);
  --red: var(--alert); --red-soft: var(--alert-soft);
  --shadow: var(--shadow-2); --shadow-soft: var(--shadow-1);
}

/* Light keeps the console structure on pale paper: same hairlines, darker signal green. */
:root[data-theme="light"] {
  color-scheme: light;
  --bg: #f3f6f2;
  --bg-top: #f3f6f2;
  --bg-glow: rgba(8, 122, 64, .06);
  --surface: #fbfdfa;
  --surface-2: #eef3ee;
  --surface-3: #e3ebe4;
  --surface-sunken: #e8efe9;
  --line: #cfdfd3;
  --line-2: #a7c2af;
  --line-soft: #e0eae2;
  --text: #0e1c14;
  --text-2: #3b5345;
  --text-3: #5b7264;
  --text-inverse: #ffffff;
  --accent: #087a40;
  --accent-2: #0b8f4c;
  --accent-strong: #055a2f;
  --accent-ink: #ffffff;
  --accent-soft: rgba(8, 122, 64, .07);
  --accent-line: rgba(8, 122, 64, .3);
  --glow: rgba(8, 122, 64, .18);
  --ok: #087a40;  --ok-soft: rgba(8, 122, 64, .09);
  --warn: #9a5b00; --warn-soft: rgba(214, 140, 0, .11);
  --alert: #c4303e; --alert-soft: rgba(196, 48, 62, .08);
  --violet: #6d4bd8; --violet-soft: rgba(109, 75, 216, .09);
  --focus: #087a40;
  --scrim: rgba(14, 28, 20, .5);
  --shadow-1: none;
  --shadow-2: none;
  --shadow-pop: 0 24px 60px rgba(14, 28, 20, .16);
  --glass: rgba(243, 246, 242, .9);
  --chart-grid: rgba(14, 28, 20, .08);
  --chart-axis: #5b7264;
  --series-standard: #2f6fdb; --series-fast: #c47d00; --series-ultrafast: #087a40;
}

/* ── 2. Base ───────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%; text-size-adjust: 100%;
  scroll-padding-top: calc(var(--nav-h) + 20px);
  scrollbar-color: var(--line-2) var(--bg);
}
body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  background: radial-gradient(1200px 520px at 18% -8%, var(--bg-glow), transparent 70%) no-repeat, var(--bg);
  color: var(--text);
  font: var(--w-regular) var(--fs-md)/var(--lh-body) var(--font-sans);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
/* Brand atmosphere: the site's radar artwork (URLs set on the element by the page), reduced
   to a faint monochrome trace under the masthead; content never sits on busy pixels. */
.ru-atmosphere {
  position: absolute; inset: 0 0 auto; z-index: -1;
  height: clamp(420px, 46vw, 720px);
  background: var(--ru-atmosphere-dark) center top / cover no-repeat;
  opacity: .12;
  filter: grayscale(1) contrast(1.15);
  -webkit-mask-image: linear-gradient(to bottom, #000 15%, transparent 85%);
          mask-image: linear-gradient(to bottom, #000 15%, transparent 85%);
  pointer-events: none;
}
:root[data-theme="light"] .ru-atmosphere { background-image: var(--ru-atmosphere-light); opacity: .08; }
img, svg, video { max-width: 100%; }
img { height: auto; }
h1, h2, h3, h4, h5, h6 { margin: 0; color: var(--text); font-weight: var(--w-bold); line-height: var(--lh-tight); letter-spacing: .01em; }
p { margin: 0; }
a { color: var(--accent); text-decoration: none; text-underline-offset: 3px; }
a:hover { color: var(--accent-strong); text-decoration: underline; text-decoration-thickness: 1px; }
strong, b { font-weight: var(--w-semibold); }
small { font-size: var(--fs-xs); }
code, kbd, samp { font-family: var(--font-mono); font-size: .92em; }
code { padding: .08em .36em; border: 1px solid var(--line-soft); border-radius: var(--r-xs); background: var(--surface-sunken); color: var(--accent-strong); }
:root[data-theme="light"] code { color: var(--accent-strong); }
hr { height: 1px; margin: var(--s-6) 0; border: 0; background: var(--line); }
button, input, select, textarea { font: inherit; color: inherit; letter-spacing: inherit; }
button { cursor: pointer; }
button:disabled { cursor: default; }
table { border-collapse: collapse; }
[hidden] { display: none !important; }
::selection { background: color-mix(in srgb, var(--accent) 30%, transparent); color: var(--text); }
:focus { outline: none; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: var(--r-xs); }
.ru-visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.ru-skip {
  position: absolute; left: var(--s-4); top: -60px; z-index: 100;
  padding: 6px var(--s-3); border-radius: var(--r-sm);
  background: var(--accent); color: var(--accent-ink); font-weight: var(--w-semibold);
}
.ru-skip:focus { top: var(--s-3); text-decoration: none; color: var(--accent-ink); }
.tabular, time, .is-numeric { font-variant-numeric: tabular-nums; }
@keyframes ru-blink { 50% { opacity: .15; } }
@keyframes ru-pulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }

/* ── 3. Layout ─────────────────────────────────────────────────────────── */
.shell {
  width: min(var(--shell), 100% - 2 * var(--gutter));
  margin: 0 auto;
  padding: 0 0 var(--s-16);
}
main.ru-main { display: block; min-width: 0; }
main.ru-main:focus { outline: none; } /* skip-link target; focus lands here, the next Tab enters the page */

/* Chapters group related modules. Each module is an unboxed section under one hairline;
   only data groups inside it sit on panels. */
.ru-chapter { position: relative; padding-top: var(--s-8); }
.ru-main > .ru-chapter:first-child { padding-top: var(--s-12); }
.ru-main > .ru-chapter[data-chapter="highlights"]:first-child { padding-top: var(--s-5); }
/* Chapter label, set like a console prompt: an index tag, the title, then a rule that
   fades out across the page. */
.ru-chapter-head {
  display: flex; align-items: center; gap: var(--s-3);
  margin: 0 0 var(--s-2);
  color: var(--text-3);
  font: var(--w-semibold) var(--fs-xs)/1 var(--font-mono);
  letter-spacing: .14em;
  text-transform: uppercase;
}
.ru-chapter-head::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, var(--line-2), transparent); }
.ru-chapter-index {
  padding: 3px 6px; border: 1px solid var(--accent-line); border-radius: var(--r-sm);
  color: var(--accent); letter-spacing: .06em; text-shadow: 0 0 10px var(--glow);
}
.ru-chapter-title { color: var(--text-2); }

.ru-module,
.ru-chapter > :is(section, article, figure, div.radar-insights, div.ru-module) {
  position: relative;
  margin: 0;
  padding: var(--ru-module-pad, var(--s-10)) 0;
  border: 0;
  border-top: 1px solid var(--line);
  border-radius: 0;
  background: none;
  box-shadow: none;
  min-width: 0;
}
/* The first visible module of a chapter sits right under the chapter label. */
.ru-chapter > .ru-chapter-head + :is(section, article, figure, div),
.ru-chapter > .ru-chapter-head + [hidden] + :is(section, article, figure, div) { border-top: 0; padding-top: var(--s-5); }
.ru-chapter[data-chapter="highlights"] > .model-iq-readout { border-top: 0; padding-top: 0; }

/* Shared section header anatomy: eyebrow · title · lede · meta/actions. The eyebrow is the
   console prompt: monospaced, signal green, a lit square in front. */
.ru-eyebrow, .ru-kicker,
.ru-chapter :is(.stationmaster-eyebrow, .ck-kicker, .tr-kicker, .hl-kicker, .t28-kicker, .mr-kicker) {
  display: inline-flex; align-items: center; gap: var(--s-2);
  margin: 0 0 var(--s-2);
  color: var(--accent-2);
  font: var(--w-semibold) var(--fs-2xs)/1.3 var(--font-mono);
  letter-spacing: .14em;
  text-transform: uppercase;
}
.ru-eyebrow::before, .ru-kicker::before,
.ru-chapter :is(.stationmaster-eyebrow, .ck-kicker, .tr-kicker, .hl-kicker, .t28-kicker, .mr-kicker)::before {
  content: ""; width: 6px; height: 6px; border-radius: 1px; background: var(--accent); box-shadow: 0 0 8px var(--glow); flex: none;
}
.ru-title { font-size: var(--fs-2xl); font-weight: var(--w-bold); line-height: 1.2; color: var(--text); }
.ru-lede { margin-top: var(--s-2); max-width: var(--measure); color: var(--text-2); font-size: var(--fs-md); line-height: var(--lh-body); }
.ru-meta { color: var(--text-3); font: var(--fs-xs)/var(--lh-ui) var(--font-mono); }
.ru-section-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: var(--s-3) var(--s-6); margin-bottom: var(--s-6); }

/* Panels: the single raised surface used inside modules. */
.ru-panel {
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface);
  box-shadow: var(--shadow-1);
}

footer.ru-footer, .shell > footer {
  margin: var(--s-12) 0 0;
  padding: var(--s-6) 0 0;
  border-top: 1px solid var(--line-soft);
  color: var(--text-3);
  font: var(--fs-xs)/1.8 var(--font-mono);
  text-align: center;
}
.shell > footer a { color: var(--text-2); }
.shell > footer a:hover { color: var(--accent); }

/* ── 4. Controls ───────────────────────────────────────────────────────── */
.ru-btn,
:is(.stationmaster-refresh, .radar-bench-refresh-button, .intelligence-efficiency-refresh-button, .station-preview-refresh,
    .mr-rate-open, .reset-tibo-carousel-button, .hl-toggle, .t28-predict-jump, [data-home-live-retry]) {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s-2);
  min-height: 36px; padding: 0 var(--s-4);
  border: 1px solid var(--line-2);
  border-radius: var(--r-md);
  background: var(--surface);
  color: var(--text);
  font-size: var(--fs-sm); font-weight: var(--w-semibold); line-height: 1;
  white-space: nowrap;
  transition: background var(--dur-1) var(--ease), border-color var(--dur-1) var(--ease), color var(--dur-1) var(--ease), box-shadow var(--dur-1) var(--ease), transform var(--dur-1) var(--ease);
}
.ru-btn:hover,
:is(.stationmaster-refresh, .radar-bench-refresh-button, .intelligence-efficiency-refresh-button, .station-preview-refresh,
    .mr-rate-open, .reset-tibo-carousel-button, .hl-toggle, .t28-predict-jump, [data-home-live-retry]):hover:not(:disabled) {
  border-color: var(--accent-2); background: var(--surface-2); color: var(--accent); text-decoration: none;
}
.ru-btn:active:not(:disabled) { transform: translateY(1px); }
.ru-btn:disabled, :is(.reset-tibo-carousel-button):disabled { opacity: .4; }
/* Primary action: the one solid green surface on a screen. */
.ru-btn-primary, .mr-rate-open, .t28-predict-jump {
  border-color: transparent; background: var(--accent); color: var(--accent-ink);
}
.ru-btn-primary:hover:not(:disabled), .mr-rate-open:hover:not(:disabled), .t28-predict-jump:hover:not(:disabled) {
  border-color: transparent; background: var(--accent); color: var(--accent-ink); box-shadow: 0 0 16px var(--glow);
}
/* Square icon buttons (refresh, close). */
:is(.stationmaster-refresh, .radar-bench-refresh-button, .intelligence-efficiency-refresh-button) {
  width: 36px; padding: 0; border-radius: var(--r-md);
}
:is(.stationmaster-refresh, .radar-bench-refresh-button) svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

select, .ru-select {
  min-height: 36px; padding: 0 34px 0 var(--s-3);
  border: 1px solid var(--line); border-radius: var(--r-md);
  background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M3 4.5 6 7.5 9 4.5' fill='none' stroke='%236f8a79' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 12px center / 12px;
  color: var(--text); font: var(--fs-sm) var(--font-mono);
  appearance: none; -webkit-appearance: none;
  transition: border-color var(--dur-1) var(--ease), box-shadow var(--dur-1) var(--ease);
}
select:hover { border-color: var(--text-3); }
select:focus-visible { outline: none; border-color: var(--accent-2); box-shadow: 0 0 0 2px var(--accent-soft); }
input[type="search"], input[type="text"], input[type="email"] { accent-color: var(--accent); }

/* Segmented control (role=tablist / aria-pressed groups): one bordered strip, the selected
   segment lit solid green. */
.ru-segmented,
:is(.model-ratings-window-toggle, .quota-metric-switch, .radar-source-tabs, .intelligence-efficiency-tabs, .intelligence-efficiency-generation-tabs) {
  display: inline-flex; flex-wrap: wrap; gap: 0; padding: 0;
  border: 1px solid var(--line); border-radius: var(--r-md);
  background: var(--surface);
  overflow: hidden;
}
:is(.model-ratings-window-toggle, .quota-metric-switch, .radar-source-tabs, .intelligence-efficiency-tabs, .intelligence-efficiency-generation-tabs) > :is(button, span > button) {
  min-height: 32px; padding: 0 var(--s-3);
  border: 0; border-radius: 0;
  background: transparent; color: var(--text-2);
  font-size: var(--fs-sm); font-weight: var(--w-medium); white-space: nowrap;
  transition: background var(--dur-1) var(--ease), color var(--dur-1) var(--ease);
}
:is(.model-ratings-window-toggle, .quota-metric-switch, .radar-source-tabs, .intelligence-efficiency-tabs, .intelligence-efficiency-generation-tabs) > :is(button, span) + :is(button, span) {
  border-left: 1px solid var(--line);
}
:is(.model-ratings-window-toggle, .quota-metric-switch, .radar-source-tabs, .intelligence-efficiency-tabs, .intelligence-efficiency-generation-tabs) > :is(button, span > button):hover { color: var(--text); background: var(--surface-2); }
:is(.model-ratings-window-toggle, .quota-metric-switch, .radar-source-tabs, .intelligence-efficiency-tabs, .intelligence-efficiency-generation-tabs)
  > :is(button, span > button):is([aria-selected="true"], [aria-pressed="true"], .is-active, .active) {
  background: var(--accent); color: var(--accent-ink); font-weight: var(--w-semibold); box-shadow: none;
}

/* Chips & badges: monospaced status pills. */
.ru-chip {
  display: inline-flex; align-items: center; gap: 6px;
  min-height: 24px; padding: 0 var(--s-2);
  border: 1px solid var(--line); border-radius: var(--r-pill);
  color: var(--text-2); font: var(--w-semibold) var(--fs-2xs)/1 var(--font-mono); letter-spacing: .06em; white-space: nowrap;
}
.ru-chip-ok { border-color: var(--accent-line); background: var(--ok-soft); color: var(--ok); }
.ru-chip-warn { border-color: color-mix(in srgb, var(--warn) 45%, transparent); background: var(--warn-soft); color: var(--warn); }
.ru-chip-alert { border-color: color-mix(in srgb, var(--alert) 45%, transparent); background: var(--alert-soft); color: var(--alert); }
.ru-chip-accent { border-color: var(--accent-line); background: var(--accent-soft); color: var(--accent); }

/* External link arrow keeps its glyph; underline appears on hover only. */
.ru-link { color: var(--accent); font-weight: var(--w-semibold); }

/* ── 5. Disclosure · tables · dialogs ──────────────────────────────────── */
details > summary { cursor: pointer; }
details > summary::-webkit-details-marker { display: none; }
details > summary { list-style: none; }
/* Default disclosure look for plain <details>; zero specificity so module styles win. */
:where(.ru-chapter details > summary:not([class])) {
  display: flex; align-items: center; gap: var(--s-2);
  color: var(--text); font-weight: var(--w-semibold);
}
:where(.ru-chapter details > summary:not([class]))::before {
  content: ""; width: 7px; height: 7px; flex: none; margin: 0 2px;
  border-right: 1.6px solid var(--accent-2); border-bottom: 1.6px solid var(--accent-2);
  transform: rotate(-45deg); transition: transform var(--dur-2) var(--ease);
}
:where(.ru-chapter details[open] > summary:not([class]))::before { transform: rotate(45deg); }

/* Plain tables inside modules; zero specificity so module tables keep their own rules.
   Column headers are monospaced captions over one strong rule, shown as authored (tables can
   carry task text); row headers (model names, identifiers) read as data; rows part on soft
   hairlines. */
:where(.ru-table, .ru-chapter table) { width: 100%; font-variant-numeric: tabular-nums; }
:where(.ru-chapter) :where(th, td) { padding: 10px 12px; border-bottom: 1px solid var(--line-soft); text-align: left; vertical-align: middle; }
:where(.ru-chapter) :where(th) { color: var(--text-3); font-size: var(--fs-xs); font-weight: var(--w-semibold); }
:where(.ru-chapter) :where(thead th) { border-bottom-color: var(--line); font-family: var(--font-mono); letter-spacing: .04em; }
:where(.ru-chapter) :where(tbody th) { color: var(--text); font-family: var(--font-mono); }
:where(.ru-chapter tbody tr:last-child) :where(th, td) { border-bottom: 0; }

dialog { color: var(--text); }
dialog::backdrop { background: var(--scrim); backdrop-filter: blur(5px); }

/* ── 6. Masthead ───────────────────────────────────────────────────────── */
.shell > header {
  position: relative;
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap;
  gap: var(--s-3) var(--s-5);
  padding: var(--s-3) 0 10px;
}
.brand-row { display: flex; align-items: center; gap: var(--s-3) var(--s-4); min-width: 0; flex: 1 1 auto; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: var(--s-3); min-width: 0; }
.brand > div { min-width: 0; }
.brand .mark {
  display: block; flex: none;
  width: 40px; height: 40px; border-radius: var(--r-md);
  box-shadow: 0 0 0 1px var(--line), 0 0 18px var(--accent-soft);
}
/* The brand reads like a terminal title: monospaced, spaced out, a lit cursor after it. */
.brand h1 {
  display: inline-flex; align-items: center; gap: 9px;
  font: var(--w-bold) clamp(18px, .8vw + 13px, 22px)/1.1 var(--font-mono);
  letter-spacing: .06em; white-space: nowrap;
}
.brand h1::after {
  content: ""; flex: none; width: 9px; height: 1em;
  background: var(--accent); box-shadow: 0 0 10px var(--glow);
  animation: ru-blink 1.1s steps(1) infinite;
}
.station-divider, .station-identity, .designed-by { display: none !important; }
.station-powered {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 5px 9px;
  border: 1px solid var(--line); border-radius: var(--r-pill);
  color: var(--text-2); font: var(--w-semibold) var(--fs-2xs)/1 var(--font-mono); letter-spacing: .08em; white-space: nowrap;
}
.station-powered::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 8px var(--accent); }
.station-powered a { color: var(--text); font-weight: var(--w-semibold); }
.header-actions { display: inline-flex; align-items: center; gap: var(--s-2); flex: none; }
.theme-toggle, .lang-switch {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 36px; height: 36px; padding: 0 var(--s-3);
  border: 1px solid var(--line); border-radius: var(--r-md);
  background: transparent; color: var(--text-2);
  font: var(--w-semibold) var(--fs-xs)/1 var(--font-mono); letter-spacing: .04em;
  transition: border-color var(--dur-1) var(--ease), background var(--dur-1) var(--ease), color var(--dur-1) var(--ease);
}
.theme-toggle { width: 36px; padding: 0; }
.theme-toggle:hover, .lang-switch:hover { border-color: var(--accent-2); background: var(--surface-2); color: var(--accent); text-decoration: none; }
.theme-toggle svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.theme-toggle .ru-icon-moon { display: none; }
:root[data-theme="light"] .theme-toggle .ru-icon-sun { display: none; }
:root[data-theme="light"] .theme-toggle .ru-icon-moon { display: block; }

/* ── 6b. Section navigation (sticky) ───────────────────────────────────── */
/* Typewriter and vernier. One horizontally scrolling strip holds every entry, set in
   monospace like typed copy: in-page jumps in page order, then the off-page links. The
   current entry is underscored and carries the green caret. Under it, a ruler scale stands
   in for the whole strip; a vernier plate (role="slider") as wide as the visible share
   hangs from it, and a print-point mark shows where the current entry sits. Touch swipes
   the strip natively; vertical gestures reach the page. */
.section-nav.nav-wheel {
  --tw-ink: var(--text); --tw-ink-2: var(--text-2); --tw-ink-3: var(--text-3);
  --tw-caret: var(--accent);
  --tw-tick: color-mix(in srgb, var(--accent-2) 30%, transparent);
  --tw-tick-strong: color-mix(in srgb, var(--accent-2) 62%, transparent);
  position: sticky; top: 0; z-index: 40;
  display: flex; align-items: stretch;
  height: var(--nav-h);
  margin: 0 calc(-1 * var(--s-2));
  padding: 0 var(--s-2);
  border-bottom: 1px solid var(--line-soft);
  background: var(--glass);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.section-nav.nav-wheel::before {
  /* Full-bleed backdrop so the sticky bar spans the viewport, not only the shell. */
  content: ""; position: absolute; inset: 0 calc(50% - 50vw); z-index: -1;
  border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); background: var(--glass);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.section-nav.nav-wheel.is-stuck::before { border-top-color: transparent; box-shadow: 0 8px 24px rgba(0, 0, 0, .28); }
.nav-wheel .wheel-body { display: flex; flex-direction: column; flex: 1; min-width: 0; height: 100%; }
.nav-wheel .section-nav-list {
  position: relative;
  display: flex; align-items: center; gap: 0;
  flex: 1; min-width: 0; min-height: 0;
  overflow-x: auto; overflow-y: hidden;
  scrollbar-width: none; overscroll-behavior-x: contain;
  scroll-padding-inline: 32px;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 var(--fade-l, 0px), #000 calc(100% - var(--fade-r, 0px)), transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 var(--fade-l, 0px), #000 calc(100% - var(--fade-r, 0px)), transparent 100%);
}
.nav-wheel .section-nav-list::-webkit-scrollbar { display: none; }
.nav-wheel .section-nav-list.is-dragging, .nav-wheel .section-nav-list.is-dragging a { cursor: grabbing; -webkit-user-select: none; user-select: none; }
/* Entries are typed, never boxed: no pill, no weight change (labels keep their width),
   ink density alone separates rest, hover and current. */
.nav-wheel .section-nav-list a {
  position: relative; flex: none;
  display: inline-flex; align-items: center; gap: 5px;
  height: 30px; padding: 0 var(--s-3);
  border-radius: var(--r-xs);
  color: var(--tw-ink-2);
  font-family: var(--font-mono), var(--font-sans); font-size: var(--fs-sm); font-weight: 500;
  font-variant-ligatures: none; letter-spacing: .02em; line-height: 1; white-space: nowrap;
  -webkit-user-drag: none;
  transition: color var(--dur-1) var(--ease);
}
.nav-wheel:lang(zh) .section-nav-list a { letter-spacing: .06em; }
.nav-wheel .section-nav-list a:hover { color: var(--tw-ink); text-decoration: none; }
/* The strip clips vertically, so rings sit inside the entry. */
.nav-wheel .section-nav-list a:focus-visible { outline-offset: -2px; border-radius: var(--r-xs); }
.nav-wheel .wheel-name { position: relative; }
/* Underscore: dashed where the pointer rests, struck solid under the current entry. */
.nav-wheel .wheel-name::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 1px;
  background: repeating-linear-gradient(90deg, currentColor 0 3px, transparent 3px 5px);
  opacity: 0; transition: opacity var(--dur-1) var(--ease);
}
.nav-wheel .section-nav-list a:hover .wheel-name::after { opacity: .45; }
.nav-wheel .section-nav-list a[aria-current="location"] { color: var(--accent); text-shadow: 0 0 12px var(--glow); }
.nav-wheel .section-nav-list a[aria-current="location"] .wheel-name::after { background: currentColor; opacity: 1; }
/* Caret after the last typed character; it blinks a few times on arrival, then rests. */
.nav-wheel .section-nav-list a[aria-current="location"] .wheel-name::before {
  content: ""; position: absolute; left: calc(100% + 3px); top: -1px; bottom: -1px; width: 2px;
  background: var(--tw-caret); box-shadow: 0 0 6px var(--glow);
  animation: tw-caret 1.06s step-end 3;
}
@keyframes tw-caret { 50% { opacity: 0; } }
.nav-wheel .ru-nav-sep { flex: none; width: 1px; height: 11px; margin: 0 3px; background: var(--line-2); }
.nav-wheel .wheel-group { display: flex; flex: none; align-items: center; gap: 0; }
.nav-wheel .wheel-ext { flex: none; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; color: var(--tw-ink-3); }
.nav-wheel .section-nav-ext:hover .wheel-ext { color: var(--tw-caret); }
/* The external Speed Radar entry carries the NEW tag in the console's highlight amber. */
.nav-wheel .section-nav-list a.speed-radar-quick-entry { color: var(--warn); }
.nav-wheel .wheel-new { display: inline-flex; align-items: center; height: 14px; padding: 0 4px; border: 1px solid currentColor; border-radius: 3px; font: 700 8px/1 var(--font-mono), monospace; letter-spacing: .1em; }
@media (forced-colors: active) { .nav-wheel .section-nav-list a.speed-radar-quick-entry { color: LinkText; } }

/* Rail, in pixels from its top: the main scale (a tick every 8px, a long one every 40px)
   rises from a hairline edge at y 7; the vernier plate hangs below it from y 8, ticked at
   9/10 of the main pitch so its coincidence point drifts as it slides. The tap is the
   print-point mark: where the current entry sits along the whole strip. */
.nav-wheel .wheel-rail {
  position: relative; flex: none;
  height: 15px; margin: 0 var(--s-3) 2px;
  touch-action: pan-y pinch-zoom;
  -webkit-user-select: none; user-select: none;
  -webkit-tap-highlight-color: transparent;
}
.nav-wheel[data-overflow="true"] .wheel-rail { cursor: pointer; }
.nav-wheel .wheel-rail-art { position: absolute; inset: 0; overflow: visible; pointer-events: none; }
.nav-wheel .wheel-scale { stroke: var(--tw-tick); stroke-width: 3; stroke-dasharray: 1 7; }
.nav-wheel .wheel-scale-major { stroke: var(--tw-tick-strong); stroke-width: 6; stroke-dasharray: 1 39; }
.nav-wheel .wheel-edge, .nav-wheel .wheel-stop { stroke: var(--tw-tick-strong); stroke-width: 1; }
.nav-wheel .wheel-rail:hover .wheel-scale, .nav-wheel.is-scrubbing .wheel-scale { stroke: var(--tw-tick-strong); }
.nav-wheel .wheel-tap {
  position: absolute; left: 0; top: 0; width: 1px; height: 8px;
  background: var(--tw-caret); transform: translateX(var(--tap-x, 0px)); pointer-events: none;
}
.nav-wheel .wheel-tap::before {
  content: ""; position: absolute; left: -3px; top: 0;
  border: solid transparent; border-width: 4px 3.5px 0; border-top-color: var(--tw-caret);
}
.nav-wheel .wheel-thumb {
  --tw-plate: color-mix(in srgb, var(--accent) 6%, transparent);
  --tw-plate-line: color-mix(in srgb, var(--accent-2) 70%, transparent);
  position: absolute; left: 0; top: 8px;
  display: block;
  width: var(--thumb-w, 48px); height: 6px;
  border: 1px solid var(--tw-plate-line); border-top: 0; border-radius: 0 0 2px 2px;
  background: repeating-linear-gradient(90deg, var(--tw-plate-line) 0 1px, transparent 1px 7.2px) border-box 0 0 / 100% 3px no-repeat,
    var(--tw-plate);
  transform: translateX(var(--thumb-x, 0px));
  cursor: grab;
}
.nav-wheel .wheel-rail:hover .wheel-thumb, .nav-wheel.is-scrubbing .wheel-thumb, .nav-wheel .wheel-thumb:focus-visible {
  --tw-plate: color-mix(in srgb, var(--accent) 14%, transparent);
  --tw-plate-line: var(--tw-caret);
}
.nav-wheel.is-scrubbing .wheel-rail, .nav-wheel.is-scrubbing .wheel-thumb { cursor: grabbing; }
.nav-wheel .wheel-thumb:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 2px; }
@media (forced-colors: active) {
  .nav-wheel .wheel-thumb { border-color: Highlight; background: Highlight; }
  .nav-wheel .wheel-tap, .nav-wheel .section-nav-list a[aria-current="location"] .wheel-name::before { background: CanvasText; }
  .nav-wheel .wheel-tap::before { border-top-color: CanvasText; }
}

/* ── 7. Page modules without their own stylesheet ─────────────────────── */

/* 7a. Sponsored strip. Markup is spans only (see promo_notice_html). */
.promo-notice {
  margin: 0 0 var(--s-2);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface);
  color: var(--text);
  font-size: var(--fs-sm);
  line-height: 1.6;
  overflow-wrap: anywhere;
}
.promo-notice > .promo-summary {
  display: flex; flex-wrap: wrap; align-items: center; gap: 4px var(--s-3);
  min-height: 46px; padding: 8px var(--s-3) 8px var(--s-3);
  border-radius: inherit;
}
.promo-notice > .promo-summary:hover { background: var(--surface-2); }
.promo-notice .promo-line { display: flex; align-items: flex-start; gap: var(--s-2); min-width: 0; }
.promo-notice > .promo-summary > .promo-head { align-items: center; margin: 0; font-size: var(--fs-sm); font-weight: var(--w-semibold); }
.promo-notice .promo-text { min-width: 0; white-space: pre-wrap; }
.promo-notice .promo-ico {
  flex: none; width: 26px; height: 26px; padding: 5px; border-radius: var(--r-md);
  fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}
.promo-notice .promo-tone-amber { color: var(--warn); background: var(--warn-soft); }
.promo-notice .promo-tone-blue { color: var(--accent); background: var(--accent-soft); }
.promo-notice .promo-tone-green { color: var(--ok); background: var(--ok-soft); }
.promo-notice .promo-tone-red { color: var(--alert); background: var(--alert-soft); }
.promo-notice .promo-tone-muted { color: var(--text-3); background: var(--surface-3); }
.promo-notice .promo-badge {
  display: inline-block; margin-right: 6px; padding: 1px 6px;
  border: 1px solid var(--line-2); border-radius: var(--r-xs);
  color: var(--text-3); font: var(--w-semibold) var(--fs-2xs)/1.4 var(--font-mono); letter-spacing: .08em; vertical-align: 1px;
}
.promo-summary-hint { color: var(--text-3); font-size: var(--fs-xs); font-weight: var(--w-medium); }
.promo-more { display: inline-flex; align-items: center; gap: 6px; margin-left: auto; color: var(--accent); font: var(--w-semibold) var(--fs-xs) var(--font-mono); white-space: nowrap; }
.promo-more::after { content: ""; width: 6px; height: 6px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-2px) rotate(45deg); transition: transform var(--dur-2) var(--ease); }
.promo-notice[open] .promo-more::after { transform: translateY(1px) rotate(-135deg); }
.promo-notice:not([open]) .promo-more > span + span, .promo-notice[open] .promo-more > span:first-child { display: none; }
.promo-notice > .promo-body {
  display: grid; grid-template-columns: minmax(0, max-content) minmax(0, 1fr); align-items: start; gap: var(--s-2) var(--s-6);
  margin: 0 var(--s-3) var(--s-3); padding-top: var(--s-3); border-top: 1px solid var(--line);
}
.promo-notice > .promo-body > .promo-table { grid-column: 1; grid-row: 1 / span 8; }
.promo-notice > .promo-body > .promo-foot { grid-column: 2; margin: 0; color: var(--text-2); }
.promo-notice .promo-table {
  display: grid; grid-template-columns: auto auto auto auto; overflow: hidden;
  border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface-2);
  font-size: var(--fs-xs); line-height: 1.4; font-variant-numeric: tabular-nums;
}
.promo-notice .promo-tr { display: grid; grid-column: 1 / -1; grid-template-columns: subgrid; }
.promo-notice .promo-tr + .promo-tr:not(.promo-cont) { border-top: 1px solid var(--line); }
.promo-notice .promo-tr > span { min-width: 0; align-content: center; padding: 6px 10px; }
.promo-notice .promo-thead > span { background: var(--surface-3); color: var(--text-3); font: var(--w-semibold) var(--fs-2xs) var(--font-mono); letter-spacing: .06em; }
.promo-notice .promo-thead > span:nth-child(n + 3), .promo-notice .promo-amount { text-align: right; }
.promo-notice .promo-plan { font-weight: var(--w-semibold); }
.promo-notice .promo-brand { color: var(--text-3); font-weight: var(--w-medium); }
.promo-notice .promo-tier, .promo-notice .promo-amount { white-space: nowrap; }
.promo-notice .promo-price { color: var(--text); font-family: var(--font-mono); font-weight: var(--w-bold); white-space: nowrap; }
.promo-notice .promo-tag { display: inline-block; margin: 0 2px; padding: 0 5px; border-radius: var(--r-xs); background: var(--alert-soft); color: var(--alert); font-weight: var(--w-semibold); }
.promo-notice .promo-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.promo-notice .promo-wechat {
  padding: 1px 6px; border: 1px solid var(--accent-line); border-radius: var(--r-sm);
  background: var(--ok-soft); color: var(--ok); font: var(--w-semibold) var(--fs-xs)/1.5 var(--font-mono);
}
.promo-qq-copy { cursor: pointer; }
.promo-qq-copy:hover { border-color: var(--ok); }
.promo-qq-copy-status { margin-left: 6px; color: var(--ok); font-size: var(--fs-xs); }
.promo-qq-copy-status:empty { display: none; }
@media (max-width: 760px) {
  .promo-notice > .promo-summary > .promo-head { flex-basis: 100%; }
  .promo-notice > .promo-body { grid-template-columns: minmax(0, 1fr); }
  .promo-notice > .promo-body > :is(.promo-table, .promo-foot) { grid-column: 1; grid-row: auto; }
  .promo-notice .promo-table { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) minmax(0, .8fr) minmax(0, .9fr); }
  .promo-notice .promo-tr > span { padding: 6px 6px; }
  .promo-notice .promo-brand { display: block; font-size: var(--fs-2xs); line-height: 1.2; }
}

/* 7b. Announcements. The homepage shows one standing announcement (Speed Radar); the
   generic .site-announcement surface is kept for a future, explicitly approved notice.
   The retired four-card bulletin grid has no rules here. */
.speed-site-announcement {
  position: relative; overflow: hidden;
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center;
  gap: var(--s-6); margin: var(--s-6) 0 0; padding: var(--s-5) var(--s-6) var(--s-5) calc(var(--s-6) + 2px);
  border: 1px solid var(--line); border-radius: var(--r-md);
  background: linear-gradient(90deg, var(--accent-soft), transparent 60%), var(--surface);
}
.speed-site-announcement::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 2px; background: var(--accent); box-shadow: 0 0 12px var(--glow); }
.speed-site-announcement-label {
  display: inline-flex; align-items: center; gap: 7px;
  color: var(--accent); font: var(--w-semibold) var(--fs-2xs)/1 var(--font-mono); letter-spacing: .14em; text-transform: uppercase;
}
.speed-site-announcement-label::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 8px var(--accent); animation: ru-pulse 2s ease-in-out infinite; }
.speed-site-announcement h2 { margin: 8px 0 6px; font-size: var(--fs-xl); line-height: var(--lh-ui); color: var(--text); }
.speed-site-announcement p { margin: 0; max-width: 84ch; color: var(--text-2); font-size: var(--fs-sm); line-height: var(--lh-body); }
.speed-site-announcement > a {
  display: inline-flex; align-items: center; justify-content: center; min-height: 44px;
  padding: 10px 16px; border: 0; border-radius: var(--r-md);
  color: var(--accent-ink); background: var(--accent); font-size: var(--fs-sm); font-weight: var(--w-semibold);
  text-decoration: none; white-space: nowrap;
  transition: box-shadow var(--dur-1) var(--ease);
}
.speed-site-announcement > a:hover { color: var(--accent-ink); text-decoration: none; box-shadow: 0 0 16px var(--glow); }
.speed-site-announcement > a:focus-visible { outline: 2px solid var(--focus); outline-offset: 4px; }

.ru-bulletins { display: grid; gap: var(--s-3); margin-top: var(--s-6); }
.ru-bulletins:empty { display: none; }
.site-announcement {
  position: relative; min-width: 0; margin: 0;
  padding: var(--s-5) var(--s-6);
  border: 1px solid var(--line); border-radius: var(--r-lg);
  background: var(--surface); box-shadow: none;
}
.site-announcement-label, .site-announcement-board-label {
  display: inline-flex; align-items: center; gap: var(--s-2);
  color: var(--accent-2); font: var(--w-semibold) var(--fs-2xs)/1.4 var(--font-mono); letter-spacing: .12em; text-transform: uppercase;
}
.site-announcement-label::before, .site-announcement-board-label::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 8px var(--glow); }
.site-announcement-headline { display: block; color: var(--text); font-weight: var(--w-bold); }
.site-announcement-main { min-width: 0; }
.site-announcement-board { display: grid; gap: var(--s-3); min-width: 0; }
.site-announcement-record { min-width: 0; color: var(--text-2); font-size: var(--fs-sm); line-height: 1.6; }
.site-announcement-record > .site-announcement-headline { margin-bottom: var(--s-1); font-size: var(--fs-lg); }
.site-announcement-record p { margin: var(--s-1) 0; }
.site-announcement-record a { font-weight: var(--w-semibold); }
.site-reset-notice { display: grid; gap: var(--s-4); min-width: 0; }
.site-reset-copy { min-width: 0; }
.site-reset-copy .site-announcement-headline { font-size: var(--fs-lg); line-height: 1.4; margin-bottom: var(--s-1); }
.site-reset-copy > a { display: inline-flex; margin: var(--s-1) 0; }
.site-reset-source-details { margin-top: var(--s-2); font-size: var(--fs-xs); }
.site-reset-source-details summary { color: var(--text-3); width: fit-content; }
.site-reset-source-details p { margin-top: var(--s-1); }
.site-reset-countdown, .site-announcement-countdown {
  display: grid; justify-items: center; align-content: center; gap: 6px; min-width: 0;
  padding: var(--s-4); border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface-sunken);
  text-align: center;
}
.site-reset-countdown > span, .site-announcement-countdown > span { color: var(--text-3); font: var(--w-semibold) var(--fs-2xs) var(--font-mono); letter-spacing: .08em; }
.site-reset-countdown > strong, .site-announcement-countdown > strong {
  color: var(--accent); font: var(--w-bold) clamp(28px, 3vw, 40px)/1.1 var(--font-mono); letter-spacing: .02em;
  text-shadow: 0 0 18px var(--glow); font-variant-numeric: tabular-nums; overflow-wrap: anywhere;
}
.site-reset-countdown > small { color: var(--text-3); font-size: var(--fs-xs); }
.site-announcement-lead { display: block; margin-top: var(--s-1); color: var(--accent); font-weight: var(--w-semibold); }
@media (max-width: 640px) {
  .site-announcement { padding: var(--s-4); }
}

/* 7c. Readout (速览): one screen-like frame, caption beneath. */
.model-iq-readout-tv {
  position: relative; overflow: hidden;
  aspect-ratio: var(--readout-ratio, 16 / 10);
  border: 1px solid var(--line); border-radius: var(--r-lg);
  background: var(--surface-sunken);
  box-shadow: 0 0 0 1px var(--line-soft), 0 0 40px var(--accent-soft);
}
.model-iq-readout-open { display: block; height: 100%; cursor: zoom-in; }
.model-iq-readout-open img { display: block; width: 100%; height: 100%; object-fit: contain; transition: transform var(--dur-3) var(--ease); }
.model-iq-readout-open:hover img { transform: scale(1.006); }
.model-iq-readout-open:focus-visible { outline-offset: -3px; border-radius: var(--r-lg); }
/* Inline flow (not flex) keeps the space after the scope label and lets separators wrap
   with their words; the original-image link floats to the right of the last line. */
.model-iq-readout-meta {
  display: flow-root;
  margin-top: var(--s-3); color: var(--text-2); font: var(--fs-xs)/1.6 var(--font-mono); font-variant-numeric: tabular-nums;
}
.model-iq-readout-meta-scope { display: inline; color: var(--text-3); }
.model-iq-readout-credit { color: var(--text-3); }
.model-iq-readout-credit::before { content: "·"; margin: 0 var(--s-2); color: var(--line-2); }
.model-iq-readout-original { float: right; margin-left: var(--s-4); font-weight: var(--w-semibold); }

/* 7d. Official speed-window evidence (only while a window is open). */
.window-source { display: grid; gap: var(--s-4); }
.window-source-head { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: var(--s-3); }
.window-source-kicker { display: inline-flex; align-items: center; min-height: 24px; padding: 0 var(--s-2); border: 1px solid var(--accent-line); border-radius: var(--r-pill); background: var(--ok-soft); color: var(--ok); font: var(--w-semibold) var(--fs-2xs)/1 var(--font-mono); letter-spacing: .06em; }
.window-source .window-source-title { display: block; margin-top: var(--s-2); color: var(--text); font-size: var(--fs-2xl); font-weight: var(--w-bold); line-height: 1.25; }
.window-source-actions a { display: inline-flex; align-items: center; min-height: 32px; padding: 0 var(--s-3); border: 1px solid var(--line-2); border-radius: var(--r-md); font-size: var(--fs-sm); font-weight: var(--w-semibold); }
.window-source-main { display: grid; gap: var(--s-3); grid-template-columns: minmax(0, 1fr); }
.window-source-main:has(.window-close-countdown) { grid-template-columns: minmax(0, 1fr) minmax(240px, 320px); grid-template-areas: "times countdown" "evidence countdown"; }
.window-source-main:has(.window-close-countdown) > .window-source-times { grid-area: times; }
.window-source-main:has(.window-close-countdown) > .window-source-evidence { grid-area: evidence; }
.window-source-times { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-3); }
.window-time-card { min-width: 0; padding: var(--s-3) var(--s-4); border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface); }
.window-time-card span { display: block; color: var(--text-3); font: var(--w-semibold) var(--fs-2xs) var(--font-mono); letter-spacing: .06em; }
.window-time-card b { display: block; margin-top: 2px; color: var(--text); font: var(--w-semibold) var(--fs-md) var(--font-mono); font-variant-numeric: tabular-nums; }
.window-close-countdown { grid-area: countdown; display: grid; align-content: center; gap: 6px; padding: var(--s-4); border: 1px solid var(--accent-line); border-radius: var(--r-md); background: var(--ok-soft); }
.window-close-countdown span { color: var(--ok); font: var(--w-semibold) var(--fs-2xs) var(--font-mono); letter-spacing: .06em; }
.window-close-countdown strong { color: var(--accent); font: var(--w-bold) clamp(26px, 3vw, 36px)/1 var(--font-mono); text-shadow: 0 0 18px var(--glow); font-variant-numeric: tabular-nums; }
.window-source-evidence { padding-top: var(--s-3); border-top: 1px solid var(--line); }
.window-source-evidence > span { display: block; margin-bottom: var(--s-1); color: var(--text-3); font-size: var(--fs-xs); font-weight: var(--w-semibold); }
.window-source-evidence > strong { display: block; color: var(--text); font-size: var(--fs-lg); line-height: 1.5; font-weight: var(--w-semibold); overflow-wrap: anywhere; }
.window-source p, .window-source-today-note { margin-top: var(--s-2); color: var(--text-3); font-size: var(--fs-xs); line-height: 1.6; overflow-wrap: anywhere; }
@media (max-width: 760px) {
  .window-source-main:has(.window-close-countdown) { grid-template-columns: minmax(0, 1fr); grid-template-areas: "times" "countdown" "evidence"; }
  .window-source-times { grid-template-columns: minmax(0, 1fr); }
}

/* 7e. Preview stations (hidden on the Codex station). */
.station-preview { display: none; }
:root:is([data-radar-station="aggregate"], [data-radar-station="dsh"], [data-radar-station="zcode"], [data-radar-station="grok"]) .station-preview { display: block; }
.station-preview-hero { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--s-4); }
.station-preview-kicker { color: var(--accent-2); font: var(--w-semibold) var(--fs-2xs)/1.3 var(--font-mono); letter-spacing: .12em; }
.station-preview h2 { margin-top: var(--s-1); font-size: var(--fs-2xl); }
.station-preview-lead, .station-preview-state, .station-preview-note { margin-top: var(--s-2); color: var(--text-2); font-size: var(--fs-sm); }
.station-preview-actions { display: flex; gap: var(--s-2); align-items: center; }
.station-preview-grid { display: grid; gap: var(--s-4); margin-top: var(--s-4); grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); }
.station-preview-panel { padding: var(--s-4); border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); }
:root:not([data-radar-station="codex"]) .section-nav { display: none !important; }
/* Codex-only surfaces stay hidden on preview stations. */
:root:not([data-radar-station="codex"]) .site-announcement,
:root:not([data-radar-station="codex"]) .model-iq-readout,
:root:not([data-radar-station="codex"]) .window-source,
:root:not([data-radar-station="codex"]) .community-knowledge,
:root:not([data-radar-station="codex"]) .radar-insights,
:root:not([data-radar-station="codex"]) .intelligence-efficiency,
:root:not([data-radar-station="codex"]) .model-ratings,
:root:not([data-radar-station="codex"]) .quota-radar,
:root:not([data-radar-station="codex"]) .fast-radar,
:root:not([data-radar-station="codex"]) .desktop-tibo-radar,
:root:not([data-radar-station="codex"]) .ru-chapter-head { display: none !important; }

/* 7f. Dynamic radar insights: station picks and degradation alerts. */
.radar-insights { display: grid; gap: var(--s-8); }
.radar-insights-panel { min-width: 0; }
.radar-insights-intro { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-2) var(--s-4); margin-bottom: var(--s-4); }
.radar-insights-title { display: inline-flex; align-items: center; gap: var(--s-2); font-size: var(--fs-2xl); font-weight: var(--w-bold); }
.radar-insights-title > span { color: var(--accent); font-size: .8em; }
.radar-insights-intro > p { flex: 1 1 280px; color: var(--text-2); font-size: var(--fs-sm); }
.station-recs-note { flex-basis: 100%; color: var(--text-3); font-size: var(--fs-xs); }
.radar-insights-refresh { display: inline-flex; align-items: center; gap: var(--s-2); margin-left: auto; }
.radar-insights-live { display: inline-flex; align-items: center; gap: 7px; padding: 5px 9px; border: 1px solid var(--accent-line); border-radius: var(--r-pill); color: var(--ok); font: var(--w-semibold) var(--fs-2xs)/1 var(--font-mono); letter-spacing: .1em; }
.radar-insights-live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; box-shadow: 0 0 8px currentColor; animation: ru-pulse 2s var(--ease) infinite; }
.station-recs-grid, .degradation-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s-3); min-width: 0; }
.station-rec, .degradation-card {
  --insight-color: var(--warn);
  position: relative; min-width: 0; padding: var(--s-4);
  border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); box-shadow: none;
}
.station-rec { border-top: 2px solid var(--rec-color, var(--accent)); }
.station-rec-head { position: relative; margin-bottom: var(--s-3); }
.station-rec-head h3 { display: flex; align-items: center; gap: var(--s-2); font-size: var(--fs-md); font-weight: var(--w-semibold); }
.station-rec-head h3 > span { color: var(--rec-color, var(--accent)); }
.station-rec-info {
  display: inline-grid; place-items: center; width: 18px; height: 18px; margin-left: auto; padding: 0;
  border: 1px solid var(--line-2); border-radius: 50%; background: transparent; color: var(--text-2);
  font: 700 10px/1 var(--font-mono);
}
.station-rec-head[data-explanation]::after {
  content: attr(data-explanation);
  position: absolute; z-index: 12; top: calc(100% + 8px); left: 0;
  width: min(300px, calc(100vw - 64px)); padding: var(--s-3);
  border: 1px solid var(--line-2); border-radius: var(--r-md); background: var(--surface); box-shadow: var(--shadow-pop);
  color: var(--text-2); font-size: var(--fs-xs); font-weight: var(--w-regular); line-height: 1.6;
  opacity: 0; transform: translateY(-4px); pointer-events: none;
  transition: opacity var(--dur-2) var(--ease), transform var(--dur-2) var(--ease);
}
.station-rec-head.is-rule-open::after, .station-rec-head[data-explanation]:hover::after { opacity: 1; transform: none; }
.station-rec-table { display: grid; gap: 2px; font-variant-numeric: tabular-nums; }
.station-rec-columns, .station-rec-row { display: grid; grid-template-columns: minmax(70px, 1fr) 36px 52px 52px; gap: var(--s-2); align-items: center; }
.station-rec-columns { padding-bottom: var(--s-1); border-bottom: 1px solid var(--line); color: var(--text-3); font: var(--w-semibold) var(--fs-2xs) var(--font-mono); letter-spacing: .04em; }
.station-rec-columns > span:not(:first-child), .station-rec-row > :not(:first-child) { text-align: right; }
.station-rec-row { padding: 6px 0; font-size: var(--fs-sm); }
.station-rec-row strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: var(--w-semibold); }
.station-rec-row b { color: var(--text); font-family: var(--font-mono); font-weight: var(--w-bold); }
.station-rec-time, .station-rec-cost { color: var(--text-2); font-family: var(--font-mono); }
.degradation-card { display: grid; grid-template-columns: minmax(100px, .9fr) minmax(88px, 1.1fr); gap: var(--s-3); align-items: center; }
.degradation-card[data-severity="critical"] { --insight-color: var(--alert); }
.degradation-card h3 { font-size: var(--fs-sm); font-weight: var(--w-semibold); }
.degradation-card-score { display: flex; align-items: baseline; gap: 4px; margin-top: 4px; }
.degradation-card-score strong { color: var(--insight-color); font: var(--w-bold) 26px/1 var(--font-mono); font-variant-numeric: tabular-nums; }
.degradation-card-score span { color: var(--text-3); font-size: var(--fs-xs); }
.degradation-deltas { display: flex; flex-wrap: wrap; gap: 4px 8px; margin-top: 4px; color: var(--text-3); font: var(--fs-2xs) var(--font-mono); font-variant-numeric: tabular-nums; }
.degradation-trend { display: block; width: 100%; height: auto; overflow: visible; }
.degradation-trend .avg { stroke: var(--line-2); stroke-width: 1; stroke-dasharray: 3 3; }
.degradation-trend .line { fill: none; stroke: var(--insight-color); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.degradation-trend .end { fill: var(--surface); stroke: var(--insight-color); stroke-width: 2; }
@media (max-width: 1080px) { .station-recs-grid, .degradation-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) {
  .station-recs-grid { grid-template-columns: minmax(0, 1fr); grid-auto-flow: row; overflow-x: visible; }
  .degradation-grid { grid-template-columns: minmax(0, 1fr); }
  .station-rec-columns, .station-rec-row { grid-template-columns: minmax(92px, 1fr) 43px 55px 51px; }
}

/* 7g. AI Radar community: QR entries and the shared preview dialog. */
.action-hub-ai-community { display: grid; gap: var(--s-5); align-items: start; }
@media (min-width: 900px) { .action-hub-ai-community { grid-template-columns: minmax(180px, 1fr) minmax(0, 3.2fr); } }
.action-hub-ai-community .ru-section-head { margin: 0; }
.action-hub-ai-community .action-main { min-width: 0; }
.action-hub-ai-community .radar-bench-legacy-image-note { margin-bottom: var(--s-4); color: var(--text-2); font-size: var(--fs-sm); }
.action-hub-ai-community .poster-qr-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); width: 100%; max-width: 520px; gap: var(--s-4); }
.action-hub-ai-community .poster-qr {
  display: grid; justify-items: center; gap: var(--s-3); min-width: 0;
  padding: var(--s-4) var(--s-3) var(--s-3);
  border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface);
  color: var(--text); text-align: center;
  transition: border-color var(--dur-1) var(--ease), box-shadow var(--dur-2) var(--ease);
}
.action-hub-ai-community .poster-qr:hover { border-color: var(--accent-2); box-shadow: 0 0 18px var(--accent-soft); text-decoration: none; }
.action-hub-ai-community .poster-qr img {
  display: block; width: 100%; max-width: 156px; aspect-ratio: 1; height: auto; object-fit: contain;
  padding: 8px; border-radius: var(--r-sm); background: #fff;
}
.action-hub-ai-community .poster-qr strong { display: block; color: var(--text); font-size: var(--fs-sm); font-weight: var(--w-semibold); line-height: 1.4; }
.qr-preview-modal { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; padding: var(--s-6); }
.qr-preview-modal[hidden] { display: none !important; }
.qr-preview-backdrop { position: absolute; inset: 0; border: 0; padding: 0; background: var(--scrim); -webkit-backdrop-filter: blur(5px); backdrop-filter: blur(5px); cursor: zoom-out; }
.qr-preview-dialog {
  position: relative; display: grid; justify-items: center; gap: var(--s-3);
  width: min(380px, 100%); padding: var(--s-6) var(--s-6) var(--s-5);
  border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); box-shadow: var(--shadow-pop);
  animation: ru-pop var(--dur-2) var(--ease);
}
.qr-preview-dialog img { width: min(300px, 100%); height: auto; padding: 10px; border-radius: var(--r-sm); background: #fff; }
.qr-preview-dialog strong { font-size: var(--fs-lg); }
.qr-preview-dialog small { color: var(--text-3); text-align: center; }
.qr-preview-close {
  position: absolute; top: var(--s-2); right: var(--s-2); display: grid; place-items: center; width: 36px; height: 36px;
  border: 1px solid var(--line); border-radius: var(--r-md); background: transparent; color: var(--text-2); font-size: 22px; line-height: 1;
}
.qr-preview-close:hover { border-color: var(--accent-2); color: var(--accent); }
html.qr-preview-open { overflow: hidden; }
@keyframes ru-pop { from { opacity: 0; transform: translateY(6px) scale(.98); } to { opacity: 1; transform: none; } }
@media (max-width: 720px) { .action-hub-ai-community .poster-qr-row { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-3); } }

/* 7h. Codex promotion intelligence (shown only when vetted cards exist). */
.promo-intel-heading { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: var(--s-3); }
.promo-intel-heading h2 { font-size: var(--fs-2xl); }
.promo-intel-source { font: var(--fs-xs) var(--font-mono); }
.promo-intel-note, .promo-intel-health, .promo-intel-empty { margin: var(--s-2) 0; color: var(--text-2); font-size: var(--fs-sm); }
.promo-intel-health { color: var(--warn); }
.promo-intel-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: var(--s-3); }
.promo-intel-card { min-width: 0; padding: var(--s-4); border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); }
.promo-intel-card[hidden] { display: none; }
.promo-intel-card h3 { margin: var(--s-2) 0; font-size: var(--fs-md); }
.promo-intel-card p { margin: var(--s-1) 0; color: var(--text-2); font-size: var(--fs-sm); }
.promo-intel-status { color: var(--ok); font: var(--fs-2xs) var(--font-mono); letter-spacing: .06em; }
.promo-intel-status[data-pending] { color: var(--warn); }
.promo-intel-meta { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: var(--s-2); color: var(--text-3); font: var(--fs-2xs) var(--font-mono); }
.ru-main > .promo-intel:not([hidden]) { padding: var(--s-10) 0; border-top: 1px solid var(--line); }

/* 7i. Community band closes the page (outside the chapters). */
.ru-main > .action-hub-ai-community {
  position: relative; overflow: hidden;
  margin-top: var(--s-12); padding: var(--s-8) var(--s-6);
  border: 1px solid var(--line); border-radius: var(--r-lg);
  background: radial-gradient(600px 240px at 0 0, var(--accent-soft), transparent 70%), var(--surface);
}
@media (max-width: 640px) { .ru-main > .action-hub-ai-community { padding: var(--s-6) var(--s-4); } }

/* 7j. Shared bits used by several generated modules. */
.site-announcement-toggle, .community-knowledge-toggle {
  display: inline-flex; align-items: center; gap: 6px; min-height: 30px; padding: 0 var(--s-3);
  border: 1px solid var(--line-2); border-radius: var(--r-md); background: var(--surface); color: var(--text);
  font-size: var(--fs-xs); font-weight: var(--w-semibold);
}
.site-announcement-toggle:hover, .community-knowledge-toggle:hover { border-color: var(--accent-2); color: var(--accent); }
.site-announcement-prompt[hidden], .community-knowledge-guide[hidden] { display: none; }
.site-announcement-copy-status:empty { display: none; }

/* 7k. Stationmaster history matrix (.dcn, degradation-codex.css) on the console surface:
   flat slips, monospaced figures and a hairline heat bar. :root raises these over the
   module sheet, which loads later. */
:root .dcn-heading { padding: 16px 0 12px; border-top: 1px solid var(--line); }
:root .dcn-heading h2 { font-size: var(--fs-2xl); letter-spacing: .01em; font-weight: var(--w-bold); }
.dcn-heading h2::after { content: ""; display: inline-block; width: .42em; height: .8em; margin-left: .28em; background: var(--accent); box-shadow: 0 0 10px var(--glow); vertical-align: -.02em; animation: ru-blink 1.1s steps(1) infinite; }
:root .dcn-intro { font-size: var(--fs-xs); margin: 6px 0 12px; }
:root .dcn-round-summary { font: var(--fs-2xs)/2 var(--font-mono); }
:root .dcn-tabs { gap: 22px; margin: 20px 0 16px; }
:root .dcn-tabs button { padding: 10px 0; font-size: var(--fs-sm); min-height: 42px; }
:root .dcn .dcn-score-card { border-radius: var(--r-sm); background: var(--surface); box-shadow: none; padding-left: 12px; padding-right: 12px; }
:root .dcn .dcn-score-card[aria-current=true] { background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--accent-line); }
:root .dcn .dcn-cell-main strong { color: var(--text); font-weight: var(--w-semibold); letter-spacing: -.02em; }
:root .dcn .dcn-cell-main > small { font-size: 10px; }
:root .dcn .dcn-metric-bar { height: 1px; }
:root .dcn-status, :root .dcn-refresh, :root .dcn-pelican-nav button, :root .dcn-art-actions button, :root .dcn-dialog { border-radius: var(--r-sm); }
:root .dcn .dcn-family, :root .mr-family-group h4 { box-shadow: none; }

/* ── 8. Small screens ─────────────────────────────────────────────────── */
@media (max-width: 760px) {
  .speed-site-announcement { grid-template-columns: minmax(0, 1fr); gap: var(--s-4); padding: var(--s-5) var(--s-4) var(--s-5) calc(var(--s-4) + 2px); }
  .speed-site-announcement > a { justify-self: start; }
}
@media (max-width: 640px) {
  .shell > header { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: var(--s-2); padding: 10px 0 var(--s-2); }
  .brand-row { gap: var(--s-2); }
  .brand .mark { width: 34px; height: 34px; }
  .brand h1 { font-size: 17px; letter-spacing: .04em; }
  .station-powered { padding: 3px 8px; }
  .header-actions { grid-column: 2; grid-row: 1; }
  .home-account { grid-column: 1 / -1; grid-row: 2; }
  .ru-chapter { padding-top: var(--s-6); --ru-module-pad: var(--s-8); }
  .nav-wheel .section-nav-list a { padding: 0 var(--s-2); }
  .nav-wheel .wheel-rail { margin-inline: var(--s-2); }
  .model-iq-readout-meta { display: grid; gap: 2px; }
  .model-iq-readout-credit::before { content: none; }
  .model-iq-readout-original { margin: var(--s-1) 0 0; padding: 0; }
}
/* Touch: the masthead switches and the small shared controls reach a 44px target on phones and
   touch screens; text fields take 16px type so iOS does not zoom the page on focus. Pointer
   layouts keep their compact sizes. :root raises these over module sheets that load later. */
@media (max-width: 640px), (pointer: coarse) {
  .theme-toggle, .lang-switch { min-width: 44px; height: 44px; }
  .theme-toggle { width: 44px; }
  :root :is(.quota-metric-switch > button, .home-live .hl-toggle, .home-live [data-home-live-retry]) { min-height: 44px; }
  :root .desktop-tibo-radar .reset-tibo-carousel-button { width: 44px; height: 44px; min-height: 44px; }
  :root :is(.speed-search input, .cir-input-row input) { font-size: 16px; }
}

/* ── Reduced motion · print ───────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}
@media print {
  .section-nav, .header-actions, .home-account, .promo-notice, .ru-atmosphere { display: none !important; }
  body { background: #fff; color: #000; }
  .brand h1::after { display: none; }
}

/* Owner-supplied promotional offer, dated in Beijing time. */
.promo-notice > .promo-summary > .promo-head { flex-wrap: wrap; }
.promo-notice .promo-new-offer {
  display: inline-block; max-width: 100%; padding: 3px 8px;
  border: 1px solid var(--warn); border-radius: var(--r-sm);
  background: var(--warn-soft); color: var(--warn);
  font-size: 12px; font-weight: 700; line-height: 1.5; white-space: normal;
}

/* One source-bound pending reset estimate, separate from retired bulletin cards. */
.reset-estimate-banner{display:flex;align-items:center;justify-content:space-between;gap:24px;border:1px solid var(--accent);border-radius:8px;background:var(--surface);padding:18px 22px;color:var(--text)}
.reset-estimate-banner h2{margin:0 0 7px;font-size:20px;line-height:1.4}
.reset-estimate-banner p{margin:0 0 7px;font-size:12px;line-height:1.65;color:var(--muted)}
.reset-estimate-banner small{font-size:11px;color:var(--muted)}
.reset-estimate-banner a{color:var(--accent);text-decoration:none}
.reset-estimate-clock{flex:0 0 auto;display:grid;gap:4px;min-width:210px;text-align:center}
.reset-estimate-clock>span{font-size:10px;letter-spacing:.08em;color:var(--muted)}
.reset-estimate-clock>strong{font:700 34px/1.2 var(--font-mono,monospace);color:var(--accent)}
@media(max-width:640px){.reset-estimate-banner{display:block;padding:14px 16px}.reset-estimate-banner h2{font-size:18px}.reset-estimate-clock{margin-top:12px;padding-top:12px;border-top:1px solid var(--line)}.reset-estimate-clock>strong{font-size:32px}}

/* Owner-approved compact QQ contact bar, 2026-10-31. */
aside.promo-notice { display:flex; flex-wrap:wrap; align-items:center; gap:6px 12px; min-width:0; padding:5px 12px; }
aside.promo-notice .promo-contact-label { color:var(--text-3); font-size:var(--fs-2xs); }
aside.promo-notice .promo-contact-text { min-width:0; max-width:100%; }
aside.promo-notice .promo-contact-number { white-space:nowrap; font-family:var(--font-mono); }
aside.promo-notice .promo-contact-copy { flex:none; padding:3px 10px; border:1px solid var(--line); border-radius:var(--r-sm); background:var(--surface-2); color:var(--accent); font:inherit; cursor:pointer; }
aside.promo-notice .promo-contact-copy:focus-visible { outline:2px solid var(--accent); outline-offset:3px; }
aside.promo-notice .promo-contact-status { color:var(--text-2); font-size:var(--fs-2xs); }
aside.promo-notice .promo-contact-status:empty { display:none; }

/* ── 9. Numbers first: model IQ · model speed · effort choice ─────────── */
/* The three things readers come for lead the page as figures: the real score grid opens
   directly under the notices, live speed and effort choice follow in the next chapter.
   Presentation only — every module, row, field and source line stays rendered; nothing
   here hides content or changes data. Module sheets load after this file, so overrides
   of their rules carry a :root prefix. */

/* Nav: the three key entries carry full ink and a lit tick; the current entry keeps its
   green caret (excluded so the location state still wins). */
.nav-wheel .section-nav-list a:is([href="#stationmaster-round"], [href="#speed-radar"], [href="#model-effort-share"]):not([aria-current="location"]) { color: var(--tw-ink); }
.nav-wheel .section-nav-list a:is([href="#stationmaster-round"], [href="#speed-radar"], [href="#model-effort-share"])::before {
  content: ""; flex: none; width: 5px; height: 5px; border-radius: 1px;
  background: var(--accent); box-shadow: 0 0 6px var(--glow);
}
@media (forced-colors: active) {
  .nav-wheel .section-nav-list a:is([href="#stationmaster-round"], [href="#speed-radar"], [href="#model-effort-share"])::before { background: CanvasText; box-shadow: none; }
}

/* Model IQ opens right under the notices. */
.ru-main > .ru-chapter[data-chapter="quality"]:first-child { padding-top: var(--s-2); }
.ru-main > .ru-chapter[data-chapter="quality"]:first-child > .cir { border-top: 0; padding-top: var(--s-2) !important; }

/* Speed and effort choice follow the score grid closely. */
.ru-chapter[data-chapter="speed"] { padding-top: var(--s-3); }
:root .ru-chapter[data-chapter="speed"] > .practical-data { padding-top: var(--s-3); }
/* The module title sits at the same scale as the model-IQ title; a lede, if rendered, is a
   quiet caption under it. */
:root .practical-data > h2 { margin: 0 0 2px; font-size: 28px; line-height: 1.2; }
:root .practical-data > h2 + p { color: var(--text-3); font-size: var(--fs-xs); line-height: 1.5; }
:root .practical-data .speed-radar { padding: var(--s-3) 0 0; }
:root .practical-data .speed-radar-head { margin-bottom: var(--s-3); gap: var(--s-3); }
:root .practical-data .speed-search input { padding: 8px 12px; }
/* Live speed and effort choice: one pair of sub-heads, each with the console's lit square. */
:root .practical-data :is(.speed-radar-head h2, .practical-usage > h3) {
  display: flex; align-items: center; gap: var(--s-2);
  color: var(--text); font-size: var(--fs-lg); font-weight: var(--w-bold); line-height: 1.3;
}
:root .practical-data :is(.speed-radar-head h2, .practical-usage > h3)::before {
  content: ""; flex: none; width: 6px; height: 6px; border-radius: 1px; background: var(--accent); box-shadow: 0 0 8px var(--glow);
}
:root .practical-data .practical-usage { margin-block: var(--s-6) 0; }
:root .practical-data .practical-window { margin-top: 2px; }
@media (min-width: 721px) {
  :root .speed-radar :is(th, td) { padding: 11px 14px; }
  :root .speed-radar thead th { padding-top: 9px; padding-bottom: 9px; }
  :root .speed-radar .speed-value strong { font-size: 1.5rem; }
}
@media (max-width: 720px) {
  :root .speed-radar tbody tr { gap: 4px 12px; padding: 11px 12px; }
  :root .speed-radar .speed-value strong { font-size: 1.35rem; }
}
@media (min-width: 601px) {
  :root .practical-data .practical-usage :is(th, td) { padding: 9px 10px; }
}
@media (max-width: 640px) {
  .ru-chapter[data-chapter="speed"] { padding-top: var(--s-2); }
  :root .practical-data .practical-usage { margin-top: var(--s-5); }
  :root .practical-data > h2 { font-size: 24px; }
}

/* Very wide viewports (2200 css px and wider, e.g. 3840x2160 at 1x): a wider column so the
   score grid and speed table use the space instead of floating in a narrow strip. */
@media (min-width: 2200px) {
  :root { --shell: 1600px; }
}
