/* 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; }
}

/* radar-nav.css — shared Codex Radar top menu (markup: skills/codex-radar/scripts/site_nav.py,
   behaviour: assets/radar-nav.mjs). Same sheet on the homepage, predictions and sweep, so it
   carries its own tokens instead of reading a page's design system: the menu looks identical
   on every page. Dark is the default; :root[data-theme="light"] switches the palette (all three
   pages set data-theme on <html>).

   Anatomy
     nav.radar-nav                band (full-bleed via border-image outset: ink overflow, never
                                  page scroll), scan rail overlay, sticky only on the homepage
       .radar-nav-frame           [step ‹] [clip > viewport] [step ›]
         .radar-nav-viewport      the one native horizontal scroller (touch, trackpad, shift+wheel)
           .radar-nav-track       homepage stations (role=tablist on the homepage)
           links                  activities, then partner sites (↗, new tab)
       .radar-nav-rail            tick ruler, scroll thumb, slow radar sweep — decorative only

   Motion: one compositor-only sweep (transform) and a one-shot lock-on of the selected
   underline. Both stop under prefers-reduced-motion. No JS animation loop. */

/* ── 1 · Tokens ────────────────────────────────────────────────────────── */
.radar-nav {
  --rn-h: var(--nav-h, 52px);
  --rn-pad: 13px;                 /* item inline padding; the frame bleeds by it so labels align */
  --rn-fade: 24px;                /* edge fade = scroll-padding = reveal peek */
  --rn-step: 30px;
  --rn-font: 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;
  --rn-mono: "JetBrains Mono", "SF Mono", "Cascadia Mono", ui-monospace, Menlo, Consolas, monospace;
  --rn-band: rgba(4, 8, 6, .95);
  --rn-band-solid: #040806;
  --rn-line: #143222;
  --rn-sep: #24503a;
  --rn-tick: rgba(57, 255, 136, .15);
  --rn-ink: #98ae9f;
  --rn-ink-hi: #e6f3ea;
  --rn-signal: #39ff88;
  --rn-signal-soft: rgba(57, 255, 136, .09);
  --rn-glow: rgba(57, 255, 136, .45);
  --rn-glow-text: rgba(57, 255, 136, .28);
  --rn-beam: rgba(57, 255, 136, .065);
  --rn-beam-edge: rgba(57, 255, 136, .34);
  --rn-new: #d6303a;              /* white text 4.8:1 */
  --rn-ease: cubic-bezier(.2, .7, .2, 1);
}
:root[data-theme="light"] .radar-nav {
  --rn-band: rgba(243, 246, 242, .96);
  --rn-band-solid: #f3f6f2;
  --rn-line: #cfdfd3;
  --rn-sep: #a9c3b1;
  --rn-tick: rgba(8, 122, 64, .2);
  --rn-ink: #3b5345;
  --rn-ink-hi: #0b1811;
  --rn-signal: #087a40;
  --rn-signal-soft: rgba(8, 122, 64, .08);
  --rn-glow: rgba(8, 122, 64, .28);
  --rn-glow-text: transparent;
  --rn-beam: rgba(8, 122, 64, .05);
  --rn-beam-edge: rgba(8, 122, 64, .22);
  --rn-new: #c62f37;
}

/* ── 2 · Band ──────────────────────────────────────────────────────────── */
.radar-nav {
  position: relative;
  display: block;
  box-sizing: border-box;
  height: var(--rn-h);
  margin: 0;
  padding: 0;
  color: var(--rn-ink);
  font: 600 15px/1 var(--rn-font);
  letter-spacing: .01em;
  text-align: left;
  border: 0;
  border-image: linear-gradient(to bottom, var(--rn-line) 0 1px, var(--rn-band) 1px calc(100% - 1px), var(--rn-line) calc(100% - 1px))
    fill 0 / 0 / 0 100vmax;
}
.radar-nav *, .radar-nav *::before, .radar-nav *::after { box-sizing: border-box; }
/* Homepage: sticky under the masthead; height follows --nav-h, which html scroll-padding uses. */
.radar-nav[data-radar-nav-page="home"] { position: sticky; top: 0; z-index: 40; margin-top: 8px; }
.radar-nav[data-radar-nav-page="sweep"] { margin-bottom: clamp(12px, 2vw, 18px); }

/* ── 3 · Frame, scroller, edge fades, step buttons ─────────────────────── */
.radar-nav .radar-nav-frame {
  position: relative; z-index: 1;
  display: flex; align-items: stretch;
  height: 100%; min-width: 0;
  margin: 0 calc(-1 * var(--rn-pad));
}
.radar-nav .radar-nav-clip { position: relative; flex: 1 1 auto; min-width: 0; height: 100%; }
.radar-nav .radar-nav-viewport {
  display: flex; align-items: stretch;
  height: 100%; min-width: 0;
  overflow-x: auto; overflow-y: hidden;
  overscroll-behavior-x: contain;      /* no browser back-swipe at the ends; vertical chains to the page */
  touch-action: pan-x pan-y;           /* native pans and inertia; nothing is intercepted */
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  scroll-padding-inline: var(--rn-fade);
}
.radar-nav .radar-nav-viewport::-webkit-scrollbar { display: none; }
.radar-nav .radar-nav-clip::before,
.radar-nav .radar-nav-clip::after {
  content: ""; position: absolute; top: 1px; bottom: 1px; z-index: 2; width: var(--rn-fade);
  pointer-events: none; opacity: 0; transition: opacity 180ms var(--rn-ease);
}
.radar-nav .radar-nav-clip::before { left: 0; background: linear-gradient(to right, var(--rn-band-solid), transparent); }
.radar-nav .radar-nav-clip::after { right: 0; background: linear-gradient(to left, var(--rn-band-solid), transparent); }
.radar-nav[data-rn-more~="start"] .radar-nav-clip::before,
.radar-nav[data-rn-more~="end"] .radar-nav-clip::after { opacity: 1; }

.radar-nav .radar-nav-step {
  display: none; flex: none; align-items: center; justify-content: center;
  width: var(--rn-step); height: 100%; margin: 0; padding: 0;
  border: 0; border-radius: 0; background: transparent; color: var(--rn-ink);
  font: inherit; line-height: 1; cursor: pointer;
  transition: color 140ms var(--rn-ease), background-color 140ms var(--rn-ease), opacity 140ms var(--rn-ease);
}
.radar-nav .radar-nav-step svg { display: block; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.radar-nav .radar-nav-step:hover { color: var(--rn-signal); background: var(--rn-signal-soft); }
.radar-nav .radar-nav-step:focus { outline: none; }
/* Mouse/trackpad devices get explicit buttons once the strip overflows; touch keeps swiping. */
@media (hover: hover) and (pointer: fine) {
  .radar-nav[data-rn-scrollable] .radar-nav-step { display: inline-flex; }
}
.radar-nav[data-rn-scrollable]:not([data-rn-more~="start"]) .radar-nav-step[data-radar-nav-step="-1"],
.radar-nav[data-rn-scrollable]:not([data-rn-more~="end"]) .radar-nav-step[data-radar-nav-step="1"] {
  opacity: .25; cursor: default; pointer-events: none;
}

/* ── 4 · Entries ───────────────────────────────────────────────────────── */
.radar-nav .radar-nav-track { display: flex; flex: none; align-items: stretch; margin: 0; padding: 0; overflow: visible; }
.radar-nav .radar-nav-item {
  position: relative; flex: none;
  display: inline-flex; align-items: center; gap: 6px;
  height: 100%; margin: 0; padding: 0 var(--rn-pad);
  border: 0; border-radius: 0; background: none;
  color: var(--rn-ink); font: inherit; letter-spacing: inherit;
  white-space: nowrap; text-decoration: none;
  -webkit-tap-highlight-color: transparent;
  transition: color 140ms var(--rn-ease);
}
.radar-nav .radar-nav-item:hover { color: var(--rn-ink-hi); text-decoration: none; }
.radar-nav .radar-nav-item:focus { outline: none; }
.radar-nav .radar-nav-item:focus-visible { outline: 2px solid var(--rn-signal); outline-offset: -7px; border-radius: 4px; }
.radar-nav .radar-nav-label { display: block; }

/* Hover tick (::before); the selected underline owns ::after. */
.radar-nav .radar-nav-item::before {
  content: ""; position: absolute; left: var(--rn-pad); right: var(--rn-pad); bottom: 0; height: 1px;
  background: var(--rn-sep); transform: scaleX(0); transition: transform 180ms var(--rn-ease);
  pointer-events: none;
}
.radar-nav .radar-nav-item:hover::before { transform: scaleX(1); }

/* Selected: the homepage follows html[data-station-active] (set before paint by the head boot
   script and kept by home-stations.mjs); other pages mark their own entry aria-current. */
:root[data-station-active="overview"] .radar-nav [data-station-tab="overview"],
:root[data-station-active="iq"] .radar-nav [data-station-tab="iq"],
:root[data-station-active="community-vote"] .radar-nav [data-station-tab="community-vote"],
:root[data-station-active="speed"] .radar-nav [data-station-tab="speed"],
:root[data-station-active="effort"] .radar-nav [data-station-tab="effort"],
:root:is([data-station-active="quota-reset"], [data-station-active="tibo"], [data-station-active="news"]) .radar-nav [data-station-tab="quota-reset"],
:root[data-station-active="subscription-quota"] .radar-nav [data-station-tab="subscription-quota"],
:root[data-station-active="community"] .radar-nav [data-station-tab="community"],
.radar-nav .radar-nav-item[aria-current="page"] {
  color: var(--rn-signal);
  text-shadow: 0 0 14px var(--rn-glow-text);
}
:root[data-station-active="overview"] .radar-nav [data-station-tab="overview"]::after,
:root[data-station-active="iq"] .radar-nav [data-station-tab="iq"]::after,
:root[data-station-active="community-vote"] .radar-nav [data-station-tab="community-vote"]::after,
:root[data-station-active="speed"] .radar-nav [data-station-tab="speed"]::after,
:root[data-station-active="effort"] .radar-nav [data-station-tab="effort"]::after,
:root:is([data-station-active="quota-reset"], [data-station-active="tibo"], [data-station-active="news"]) .radar-nav [data-station-tab="quota-reset"]::after,
:root[data-station-active="subscription-quota"] .radar-nav [data-station-tab="subscription-quota"]::after,
:root[data-station-active="community"] .radar-nav [data-station-tab="community"]::after,
.radar-nav .radar-nav-item[aria-current="page"]::after {
  content: ""; position: absolute; left: var(--rn-pad); right: var(--rn-pad); bottom: 0; height: 2px;
  border-radius: 2px 2px 0 0;
  background: var(--rn-signal);
  box-shadow: 0 0 10px var(--rn-glow), 0 0 2px var(--rn-glow);
  pointer-events: none;
  animation: radar-nav-lock 460ms var(--rn-ease) both;   /* plays when the underline appears */
}
@keyframes radar-nav-lock {
  0% { transform: scaleX(.08); opacity: .15; }
  55% { opacity: 1; }
  100% { transform: scaleX(1); opacity: 1; }
}

/* NEW (Radar Sweep only): small raised tag, inline so it is never clipped or overlapped. */
.radar-nav .radar-nav-new {
  align-self: flex-start; flex: none;
  margin: 9px 0 0 -1px; padding: 2px 4px;
  border-radius: 3px; background: var(--rn-new); color: #fff;
  font: 700 9px/1 var(--rn-mono); letter-spacing: .06em; text-shadow: none;
}

/* Partner sites: same ink, a green ↗ that nudges on hover. */
.radar-nav .radar-nav-out {
  color: var(--rn-signal); opacity: .72; font-size: .86em; font-weight: 500;
  transition: transform 160ms var(--rn-ease), opacity 160ms var(--rn-ease);
}
.radar-nav .radar-nav-partner:hover .radar-nav-out { opacity: 1; transform: translate(1px, -1px); }
.radar-nav .radar-nav-sr {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; border: 0;
  overflow: hidden; clip-path: inset(50%); white-space: nowrap;
}
.radar-nav .radar-nav-gap {
  flex: none; align-self: center;
  width: 1px; height: 14px; margin: 0 7px;
  background: var(--rn-sep);
}

/* ── 5 · Rail: ruler, scroll thumb, sweep (decorative, aria-hidden) ────── */
.radar-nav .radar-nav-rail {
  position: absolute; inset: 0; z-index: 0;
  overflow: hidden; pointer-events: none;
  background: repeating-linear-gradient(90deg, var(--rn-tick) 0 1px, transparent 1px 10px) left bottom / 100% 4px no-repeat;
}
.radar-nav .radar-nav-thumb {
  position: absolute; left: 0; top: 0; width: 0; height: 1px;
  background: var(--rn-signal); box-shadow: 0 0 6px var(--rn-glow);
  opacity: 0; transition: opacity 220ms var(--rn-ease);
  will-change: transform;
}
.radar-nav[data-rn-scrollable] .radar-nav-thumb { opacity: .6; }
/* One faint beam crosses the band every 9 s (2.7 s pass, then rest). Transform only. */
.radar-nav .radar-nav-beam {
  position: absolute; top: 0; bottom: 0; left: 0; width: 100%;
  background: linear-gradient(90deg, transparent 0 76%, var(--rn-beam) 97%, var(--rn-beam-edge) 99.6%, transparent 100%);
  transform: translate3d(-100%, 0, 0);
  animation: radar-nav-sweep 9s linear 1.2s infinite;
}
@keyframes radar-nav-sweep {
  0% { transform: translate3d(-100%, 0, 0); }
  30%, 100% { transform: translate3d(24%, 0, 0); }
}

/* ── 6 · Small screens ─────────────────────────────────────────────────── */
@media (max-width: 640px) {
  .radar-nav { --rn-h: var(--nav-h, 46px); --rn-pad: 10px; --rn-fade: 20px; font-size: 14px; }
  .radar-nav[data-radar-nav-page="home"] { margin-top: 4px; }
  .radar-nav .radar-nav-new { margin-top: 7px; }
  .radar-nav .radar-nav-gap { margin: 0 4px; }
}
@media (max-width: 360px) {
  .radar-nav { --rn-pad: 9px; font-size: 13.5px; }
}

/* ── 7 · Modes ─────────────────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .radar-nav .radar-nav-beam { display: none; animation: none; }
  .radar-nav .radar-nav-item::after { animation: none !important; }
  .radar-nav .radar-nav-item, .radar-nav .radar-nav-item::before, .radar-nav .radar-nav-step,
  .radar-nav .radar-nav-out, .radar-nav .radar-nav-thumb, .radar-nav .radar-nav-clip::before,
  .radar-nav .radar-nav-clip::after { transition: none; }
}
@media (forced-colors: active) {
  .radar-nav { border-image: none; border-block: 1px solid CanvasText; }
  .radar-nav .radar-nav-beam, .radar-nav .radar-nav-clip::before, .radar-nav .radar-nav-clip::after { display: none; }
  .radar-nav .radar-nav-item::after { background: Highlight; box-shadow: none; }
  .radar-nav .radar-nav-item[aria-current="page"], .radar-nav [data-station-tab][aria-selected="true"] { color: Highlight; }
  .radar-nav .radar-nav-thumb { background: Highlight; }
  .radar-nav .radar-nav-new { border: 1px solid CanvasText; }
}
@media print {
  .radar-nav { display: none !important; }
}

.cir{--cir-line:var(--line,#24382d);--cir-muted:var(--muted,#8c9d91);--cir-accent:var(--accent,#39ff88);--cir-surface:var(--surface,#0d1510);color:var(--text,#e2e9e4);padding:28px!important;overflow:hidden}
.cir *{box-sizing:border-box}.cir [hidden]{display:none!important}.cir button,.cir input,.cir select{font:inherit;touch-action:manipulation}.cir button{cursor:pointer}.cir button:focus-visible,.cir a:focus-visible,.cir input:focus-visible,.cir select:focus-visible,.cir-table-scroll:focus-visible{outline:2px solid var(--cir-accent);outline-offset:3px}
.cir-heading{display:flex;justify-content:space-between;align-items:flex-end;gap:16px;margin-bottom:24px}.cir-heading h2{margin:4px 0 0;font-size:26px;letter-spacing:-.04em}.cir-eyebrow{margin:0;color:var(--cir-muted);font:10px/1.5 var(--font-mono,monospace);letter-spacing:.14em}.cir-meta{margin:0;color:var(--cir-muted);font:12px/1.5 var(--font-mono,monospace)}
.cir-tabbar{display:flex;gap:30px;border-bottom:1px solid var(--cir-line);margin-bottom:20px}.cir-tabbar button{position:relative;border:0;border-radius:0;background:none;color:var(--cir-muted);font-size:14px;padding:0 0 13px;min-width:38px}.cir-tabbar button[aria-selected=true]{color:var(--cir-accent);font-weight:700}.cir-tabbar button[aria-selected=true]::after{content:"";position:absolute;bottom:-1px;left:0;right:0;height:3px;background:var(--cir-accent)}
.cir-metric-legend{font-size:12px;line-height:1.65;color:var(--cir-muted);margin:0 0 14px}.cir-table-scroll{overflow-x:auto;scrollbar-width:thin;scrollbar-color:var(--cir-line) transparent;isolation:isolate}.cir-table{border-collapse:separate;border-spacing:6px 8px;width:100%;min-width:1072px;table-layout:fixed;font-variant-numeric:tabular-nums}.cir-table th,.cir-table td{padding:0;text-align:center;border:0}.cir-table thead th{height:26px;color:var(--cir-muted);font:10px/1.4 var(--font-mono,monospace);letter-spacing:.08em}.cir-table tr>th:first-child{width:152px;position:sticky;left:0;z-index:2;background:var(--cir-surface);text-align:left;padding-right:12px}.cir-table tbody th{font-size:13px;font-weight:600}.cir-table td{height:86px}
.cir .cir-score{display:block;width:100%;border:1px solid transparent;border-radius:6px;background:none;padding:0;overflow:hidden;color:inherit;transition:border-color .12s,transform .12s}.cir .cir-score:hover{border-color:var(--text-2,#a2b8aa);transform:translateY(-1px)}
/* Selection is a solid ring in text colour (heat cells can be any ramp colour); keyboard focus is a separate dashed ring further out. */
.cir .cir-score[aria-pressed=true]{border-color:transparent;box-shadow:0 0 0 2px var(--cir-surface),0 0 0 4px var(--text,#e2e9e4)}.cir .cir-score:focus-visible{outline:2px dashed var(--focus,var(--cir-accent));outline-offset:6px}
/* Colours come from intelligence-heat.css (.ih-cell, fixed score scale). */
.cir-cell{display:grid;grid-template-columns:60% 40%;grid-template-rows:1fr 1fr;width:100%;height:82px;min-width:0;overflow:hidden;border-radius:4px}
.cir-cell>strong{grid-column:1;grid-row:1/3;display:flex;align-items:center;justify-content:center;min-width:0;font:700 26px/1 var(--font-mono,monospace);letter-spacing:-.04em;padding:0 2px;white-space:nowrap}.cir-money,.cir-time{display:flex;justify-content:center;align-items:center;min-width:0;white-space:nowrap;font:500 10px/1 var(--font-mono,monospace);font-variant-numeric:tabular-nums;background:rgba(0,0,0,.055);border-left:1px solid color-mix(in srgb,currentColor 22%,transparent);padding:0 2px}.cir-money{grid-column:2;grid-row:1}.cir-time{grid-column:2;grid-row:2;border-top:1px solid color-mix(in srgb,currentColor 22%,transparent)}
.cir-unavailable{color:var(--cir-muted)}.cir-table .ih-unsupported{height:82px}.cir-selection{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-top:16px;color:var(--cir-muted);font-size:12px}.cir-selection>div{display:flex;gap:18px}.cir-selection button{border:0;background:none;color:var(--cir-accent);padding:6px 0;font-size:12px}
.cir-controls,.cir-dialog-controls{display:flex;gap:12px;align-items:center;flex-wrap:wrap;margin:0 0 20px}.cir-controls label,.cir-dialog-controls label,.cir-gallery-heading label{display:flex;align-items:center;gap:8px;color:var(--cir-muted);font-size:12px}.cir select,.cir input{border:1px solid var(--cir-line);border-radius:5px;background:var(--cir-surface);color:inherit;padding:9px 10px;min-height:38px}.cir-steppers{display:flex;gap:7px}.cir-steppers button{border:1px solid var(--cir-line);border-radius:4px;padding:9px 10px;background:transparent;color:var(--text);font-size:12px}.cir-dialog-controls a{margin-left:auto;color:var(--cir-accent);font-size:12px;text-decoration:none}
.cir-gallery-heading{display:flex;justify-content:space-between;align-items:center;gap:16px;margin-bottom:25px}.cir-gallery-heading p{font-size:12px;line-height:1.7;color:var(--cir-muted);margin:0}.cir-gallery-heading select{max-width:200px}.cir-gallery-group{margin-bottom:27px}.cir-gallery-group h3{font-size:14px;font-weight:600;margin:0 0 11px}.cir-gallery-group h3 small{font:10px var(--font-mono,monospace);margin-left:6px;color:var(--cir-muted);padding:2px 5px;border:1px solid var(--cir-line);border-radius:3px}.cir-gallery-grid{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:10px}.cir .cir-art-card{padding:0;border:1px solid var(--cir-line);border-radius:6px;background:var(--cir-surface);color:var(--text);min-width:0;overflow:hidden;text-align:left;transition:border-color .12s,transform .12s}.cir .cir-art-card:hover{border-color:var(--cir-accent);transform:translateY(-2px)}.cir .cir-art-card[aria-pressed=true]{border-color:var(--cir-accent);box-shadow:0 0 0 1px var(--cir-accent)}.cir-thumb{display:block;aspect-ratio:8/5;background:#f5f4ed;overflow:hidden}.cir-thumb img{display:block;width:100%;height:100%;object-fit:contain}.cir-card-effort{display:block;font:10px var(--font-mono,monospace);color:var(--cir-muted);padding:7px 8px;letter-spacing:.06em}.cir-art-card .cir-cell{height:68px;border-radius:0}.cir-art-card .cir-cell>strong{font-size:23px}
.cir-art{margin-top:15px}.cir-art h3{margin:0;font-size:16px;font-weight:600}.cir-status{color:var(--cir-muted);font-size:11px;line-height:1.6;margin:7px 0 12px;overflow-wrap:anywhere}.cir-frame{position:relative;width:100%;height:min(56vh,620px);overflow:hidden;border:1px solid var(--cir-line);border-radius:6px;background:#fff}.cir-frame iframe{position:absolute;max-width:none;border:0;transform-origin:0 0}.cir-evaluation{margin-top:22px;font-size:13px;line-height:1.8}.cir-evaluation h4{margin:0 0 8px;font-size:13px;color:var(--cir-muted)}.cir-evaluation p{margin:0 0 15px}.cir-evaluation dl{display:grid;grid-template-columns:155px 1fr;gap:9px 20px}.cir-evaluation dt{color:var(--cir-muted)}.cir-evaluation dd{margin:0}.cir-evaluation ul{padding-left:18px;color:var(--cir-muted)}
.cir-dialog{width:min(96vw,1250px);max-height:94dvh;padding:22px;border:1px solid var(--cir-line);border-radius:9px;background:var(--cir-surface);color:var(--text,#e2e9e4);overflow:auto}.cir-dialog::backdrop{background:#000c;backdrop-filter:blur(5px)}.cir-dialog-top{display:flex;justify-content:space-between;gap:20px;align-items:center;margin-bottom:17px;font-size:15px;font-weight:600}.cir-dialog-top button{border:1px solid var(--cir-line);background:transparent;color:inherit;border-radius:4px;padding:7px 12px;white-space:nowrap}
.cir-candy-layout{display:grid;grid-template-columns:minmax(0,1.3fr) minmax(240px,1fr);gap:36px;margin-top:28px;line-height:1.85;font-size:13px}.cir-question{min-width:0}.cir-candy-layout h3{margin:0;font-size:16px}.cir-question table{width:100%;border-collapse:collapse;font-variant-numeric:tabular-nums}.cir-question td,.cir-question th{padding:8px;border-bottom:1px solid var(--cir-line);text-align:center}.cir-answer{border-left:1px solid var(--cir-line);padding-left:28px}.cir-answer form{margin-top:16px}.cir-input-row{display:flex;gap:10px;margin-top:9px}.cir-input-row input{min-width:0;width:110px}.cir-input-row button{border:1px solid var(--cir-line);background:transparent;color:var(--cir-accent);border-radius:5px;padding:8px 17px}.cir-spoiler{border-top:1px solid var(--cir-line);padding-top:15px;margin-top:22px}.cir-spoiler summary,.cir-method summary{cursor:pointer;color:var(--cir-muted);font-size:12px}.cir-spoiler pre{font:14px/1.7 var(--font-mono,monospace);white-space:pre-wrap;overflow-wrap:anywhere}.cir-method{margin-top:24px;color:var(--cir-muted);font-size:11px;line-height:1.7}.cir-method p{margin:8px 0}.cir-method a{color:inherit}.cir-anchor{display:block;scroll-margin-top:84px}.cir-scroll-hint{display:none}.cir-sr{position:absolute!important;width:1px!important;height:1px!important;margin:-1px!important;padding:0!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}
@media(max-width:1000px){.cir-gallery-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:700px){.cir{padding:20px 16px!important}.cir-heading{display:block;margin-bottom:22px}.cir-heading h2{font-size:24px}.cir-meta{margin-top:8px;font-size:11px}.cir-tabbar{gap:24px}.cir-table tr>th:first-child{width:140px}.cir-table tbody th{font-size:12px}.cir-cell>strong{font-size:25px}.cir-selection{align-items:flex-start;flex-direction:column;gap:5px}.cir-scroll-hint{display:block;margin:8px 0;color:var(--cir-muted);font-size:10px;text-align:right}.cir-gallery-heading{display:block}.cir-gallery-heading label{margin-top:12px}.cir-gallery-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.cir-candy-layout{grid-template-columns:minmax(0,1fr);gap:24px}.cir-answer{border-left:0;border-top:1px solid var(--cir-line);padding:22px 0 0}.cir-dialog{width:98vw;padding:12px;max-height:96dvh}.cir-dialog-controls{gap:10px}.cir-dialog-controls label{display:block}.cir-dialog-controls select{display:block;max-width:180px;margin-top:4px}.cir-dialog-controls a{margin-left:0}.cir-frame{height:330px}.cir-evaluation dl{grid-template-columns:1fr;gap:3px}.cir-evaluation dd{margin-bottom:10px}}
@media(prefers-reduced-motion:reduce){.cir *{transition:none!important}}

/* Phone layout keeps each model's effort scores together without a wide matrix. */
@media(max-width:640px){
 .cir-tabbar{gap:4px;overflow-x:auto;overscroll-behavior-inline:contain}
 .cir-tabbar button{flex:0 0 auto;min-height:44px;padding:0 3px 10px;font-size:12px}
 .cir[data-language=en] .cir-tabbar{flex-wrap:wrap;overflow:visible;column-gap:12px}
 .cir-table-scroll{overflow:visible}
 .cir-table,.cir-table tbody,.cir-table tr,.cir-table th,.cir-table td{display:block}
 .cir-table{min-width:0;width:100%;border-spacing:0}
 .cir-table thead{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
 .cir-table tbody tr{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;margin-bottom:20px}
 .cir-table tr>th:first-child{position:static;width:auto;grid-column:1/-1;padding:0 0 5px;background:none;font-size:13px}
 .cir-table td{height:auto;min-width:0;text-align:left}
 .cir-table td::before{content:attr(data-cir-column);display:block;color:var(--cir-muted);font:600 10px/1.5 var(--font-mono,monospace);letter-spacing:.04em;margin-bottom:4px}
 .cir-table .cir-cell{grid-template-columns:1fr;grid-template-rows:1fr auto auto;height:94px}
 .cir-table .cir-cell>strong{grid-column:1;grid-row:1;font-size:23px}
 .cir-table .cir-money,.cir-table .cir-time{grid-column:1;min-height:18px;border-left:0;font-size:11px}
 .cir-table .cir-money{grid-row:2;border-top:1px solid color-mix(in srgb,currentColor 22%,transparent)}
 .cir-table .cir-time{grid-row:3}
 .cir-table .ih-unsupported{height:94px}
 .cir-scroll-hint{display:none}
}

/* RP040 comparison: original imagery and a read-only edge view. */
.pm{min-width:0;font-size:13px;line-height:1.65}.pm-intro,.pm-graph-heading p{color:var(--cir-muted);font-size:12px;margin:0 0 14px}
.pm-references{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin:0 0 24px}.pm-figure{margin:0;min-width:0}.pm-figure figcaption{font-size:13px;font-weight:600;margin-bottom:8px}.pm-figure button{display:block;width:100%;border:1px solid var(--cir-line);border-radius:6px;padding:8px;background:#fff;min-height:200px}.pm-figure img{display:block;width:100%;height:300px;object-fit:contain}
.pm-graph-heading h3{font-size:17px;margin:0 0 5px}.pm-filters{display:flex;align-items:flex-end;flex-wrap:wrap;gap:12px;margin:16px 0 8px}.pm-filters label,.pm-relation-picker{display:flex;gap:7px;align-items:center;color:var(--cir-muted);font-size:12px}.pm select{min-height:44px}.pm-zoom{display:flex;gap:6px;margin-left:auto}.pm-zoom button,.pm-image-dialog button{min-height:44px;min-width:44px;border:1px solid var(--cir-line);border-radius:4px;background:transparent;color:inherit;padding:6px 10px}
.pm-legend{display:flex;gap:18px;margin:10px 0;color:var(--cir-muted);font-size:12px}.pm-correct{--pm-edge-color:#2f9d61}.pm-incorrect{--pm-edge-color:#dc6069}.pm-missing{--pm-edge-color:#b28c3b}.pm-legend span{color:var(--pm-edge-color)}
.pm-graph-scroll{width:100%;height:min(55vw,480px);min-height:240px;overflow:auto;overscroll-behavior:contain;border:1px solid var(--cir-line);border-radius:6px;background:var(--cir-surface);scrollbar-width:thin}.pm-graph-scroll svg{display:block;width:100%;max-width:none;height:auto;min-height:100%;overflow:visible}
.pm-edge{cursor:pointer;color:var(--pm-edge-color)}.pm-edge-hit{stroke:transparent;stroke-width:32;pointer-events:stroke}.pm-edge-line{stroke:currentColor;stroke-width:5;opacity:.68;pointer-events:none}.pm-missing .pm-edge-line{stroke-dasharray:13 11}.pm-edge.is-active .pm-edge-line{stroke-width:10;opacity:1}.pm-edge-symbol{font:700 32px/1 var(--font-mono,monospace);fill:currentColor;paint-order:stroke;stroke:var(--cir-surface);stroke-width:7;pointer-events:none}.pm-edge:focus-visible .pm-edge-line{stroke-width:10;opacity:1}
.pm-node{cursor:pointer}.pm-node circle{fill:var(--cir-surface);stroke:var(--cir-muted);stroke-width:3}.pm-node text{fill:var(--text);font:700 30px var(--font-mono,monospace);pointer-events:none}.pm-node.is-selected circle,.pm-node:focus-visible circle{stroke:var(--cir-accent);stroke-width:6}
.pm-relation-picker{margin:16px 0 8px;flex-wrap:wrap}.pm-relation-picker select{max-width:100%;min-width:180px}.pm-endpoints{display:flex;gap:12px;justify-content:center;margin:8px 0 22px}.pm-endpoints figure{width:min(43%,230px);margin:0;text-align:center;font:600 13px var(--font-mono,monospace)}.pm-endpoints img{width:100%;height:auto;display:block;background:#fff;border-radius:5px}.pm-endpoints figcaption{padding:4px}
.pm-result{padding:18px 0;border-top:1px solid var(--cir-line);border-bottom:1px solid var(--cir-line)}.pm-result>div{display:flex;align-items:baseline;gap:9px}.pm-result strong{font:700 38px/1.3 var(--font-mono,monospace)}.pm-result p{margin:7px 0}.pm-result small,.pm-result>div>span{font-size:12px;color:var(--cir-muted)}.pm-error{padding:10px;border-left:3px solid #dc6069;color:var(--text);font-size:12px}.pm-source{margin-top:18px;font-size:12px;color:var(--cir-muted)}.pm-source summary{cursor:pointer}.pm-source pre{font:12px/1.8 var(--font-mono,monospace);white-space:pre-wrap}.pm-source a{color:inherit}
.pm-image-dialog{width:min(96vw,1250px);max-height:94dvh;padding:14px;border:1px solid var(--cir-line);border-radius:7px;overflow:auto;background:var(--cir-surface);color:var(--text)}.pm-image-dialog::backdrop{background:#000c}.pm-image-dialog>div{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px}.pm-image-dialog img{display:block;width:100%;height:auto;background:#fff}
@media(max-width:640px){.pm-references{grid-template-columns:1fr;gap:18px}.pm-figure button{min-height:0}.pm-figure img{height:auto;max-height:330px}.pm-filters{gap:8px}.pm-filters label{gap:5px}.pm-zoom{margin-left:0}.pm-graph-scroll{height:260px}.pm-result>div{flex-wrap:wrap}.pm-result strong{font-size:34px}.pm-image-dialog{padding:10px}.pm-image-dialog>div{align-items:flex-start}.pm-image-dialog strong{font-size:13px}}

/* Every supported Pompeii effort carries its own source-bound edge preview. */
.pm-card-grid{grid-template-columns:repeat(6,minmax(0,1fr))}.pm-card{min-width:0}.pm-card-graph{display:block;width:100%;aspect-ratio:1090/690;background:var(--cir-surface);border-bottom:1px solid var(--cir-line)}.pm-card-graph svg{display:block;width:100%;height:100%}.pm-card-graph .pm-edge-line{stroke-width:7;opacity:.85}.pm-card-graph .pm-edge-symbol{font-size:40px}.pm-card-graph .pm-node text{font-size:38px}.pm-card-graph .pm-node circle{stroke-width:4}.pm-card-unsupported{display:flex;flex-direction:column;justify-content:flex-end;min-width:0}.pm-card-unsupported>.ih-unsupported{min-height:108px}.pm-comparison-dialog{width:min(96vw,1150px)}.pm-comparison-dialog>.cir-dialog-top{position:sticky;top:-22px;z-index:1;background:var(--cir-surface);padding-bottom:10px}.pm-comparison-dialog .pm-references{margin-top:20px}
@media(max-width:1100px){.pm-card-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}@media(max-width:640px){.pm-card-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.pm-comparison-dialog{width:98vw}.pm-comparison-dialog>.cir-dialog-top{top:-12px}}

/* Pompeii: one compact overview, with every core result visible on open. */
.pm-comparison-dialog{width:min(96vw,840px);max-height:calc(100dvh - 24px);padding:16px}
.pm-comparison-dialog>.cir-dialog-top{position:static;padding:0;margin:0 0 10px;font-size:14px}
.pm-comparison-dialog .cir-dialog-controls{gap:10px;margin:0 0 12px}
.pm-comparison-dialog .cir-dialog-controls label{font-size:11px}
.pm-comparison-dialog .cir-dialog-controls select{padding:5px 8px;min-height:32px;max-width:220px}
.pm-compact{font-size:12px;line-height:1.4}
.pm-compact .pm-result{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:10px 12px;margin-bottom:12px;background:var(--cir-hover);border:1px solid var(--cir-line);border-radius:6px}
.pm-compact .pm-result strong{font-size:30px;line-height:1}
.pm-compact .pm-result p{margin:4px 0 0;text-align:right}
.pm-counts{display:flex;gap:12px;flex-wrap:wrap}
.pm-counts span{color:var(--pm-edge-color)}
.pm-visuals{display:grid;grid-template-columns:minmax(0,1.7fr) minmax(0,1fr);gap:12px;align-items:start}
.pm-main{min-width:0;margin:0}
.pm-main figcaption,.pm-compact .pm-figure figcaption{margin:0 0 5px;font-size:11px;color:var(--cir-muted)}
.pm-compact .pm-graph-scroll{height:auto;min-height:0;overflow:hidden;aspect-ratio:1090/690}
.pm-compact .pm-graph-scroll svg{height:100%;min-height:0;width:100%;overflow:hidden}
.pm-compact .pm-edge,.pm-compact .pm-node{cursor:default}
.pm-compact .pm-references{display:grid;grid-template-columns:minmax(0,1fr);gap:8px;margin:0}
.pm-compact .pm-figure button{min-height:0;padding:4px;border-radius:4px}
.pm-compact .pm-figure img{width:100%;height:110px;max-height:none;object-fit:contain}
.pm-compact .pm-legend{gap:14px;margin:8px 0 0;font-size:11px}
.pm-compact .pm-source{margin-top:10px;font-size:11px}
.pm-compact .pm-source pre{font-size:11px;line-height:1.5}
.pm-compact .pm-error{margin:0 0 8px;padding:7px;font-size:11px}
@media(max-width:640px){.pm-comparison-dialog{width:calc(100vw - 16px);padding:12px}.pm-comparison-dialog .cir-dialog-controls{gap:8px;margin-bottom:10px}.pm-comparison-dialog .cir-dialog-controls label{display:flex}.pm-comparison-dialog .cir-dialog-controls select{display:inline-block;margin:0;max-width:175px}.pm-compact .pm-result{gap:8px;padding:9px;margin-bottom:10px}.pm-compact .pm-result strong{font-size:28px}.pm-counts{gap:7px;font-size:11px}.pm-visuals{grid-template-columns:minmax(0,1fr);gap:9px}.pm-compact .pm-references{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.pm-compact .pm-figure img{height:95px}.pm-compact .pm-legend{justify-content:center}.pm-compact .pm-result>div{gap:5px}}
.pm-compact .pm-result>div:first-child{flex:0 0 auto;flex-wrap:nowrap;white-space:nowrap}

/* Original artwork and its final evaluation share one compact opening view. */
.cir-art-dialog{width:min(96vw,960px);max-height:calc(100dvh - 24px);padding:16px}
.cir-art-dialog .cir-dialog-top{margin-bottom:10px;font-size:14px}
.cir-art-dialog .cir-dialog-controls{gap:8px;margin-bottom:10px}
.cir-art-dialog .cir-dialog-controls label{font-size:11px}
.cir-art-dialog .cir-dialog-controls select{padding:5px 8px;min-height:32px;max-width:210px}
.cir-art-dialog .cir-steppers button{padding:5px 8px;min-height:32px;font-size:11px}
.cir-art-dialog [data-two-art-title]{display:none}
.cir-art-dialog .cir-status{margin:4px 0;font-size:10px;line-height:1.4}
.cir-art-overview{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(0,1fr);gap:14px;align-items:start;margin-top:10px}
.cir-art-dialog .cir-frame{height:clamp(250px,45dvh,360px);min-width:0;margin:0}
.cir-art-dialog .cir-evaluation{min-width:0;margin:0;border:0;padding:0;font-size:12px}
.cir-score-overview{border:1px solid var(--cir-line);border-radius:6px;padding:12px}
.cir-score-line{display:flex;align-items:baseline;gap:7px;flex-wrap:wrap}
.cir-score-line>span{flex-basis:100%;font-size:11px;color:var(--cir-muted)}
.cir-score-line>strong{font:700 38px/1.2 var(--font-mono,monospace)}
.cir-score-line>small{font-size:12px;color:var(--cir-muted)}
.cir-art-dialog .cir-score-raw{margin:5px 0 9px;font-size:11px;color:var(--cir-muted)}
.cir-art-dialog .cir-score-brief{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:5;overflow:hidden;margin:0;line-height:1.65;font-size:12px}
.cir-review-details{margin-top:10px;font-size:11px}
.cir-review-details>summary{cursor:pointer;color:var(--cir-muted)}
.cir-review-details[open]{grid-column:1/-1}
.cir-art-dialog .cir-review-details h4{font-size:13px;margin:12px 0 6px}
@media(max-width:640px){.cir-art-dialog{width:calc(100vw - 16px);padding:12px}.cir-art-dialog .cir-dialog-controls label{display:flex;gap:5px}.cir-art-dialog .cir-dialog-controls select{display:inline-block;margin:0;max-width:165px}.cir-art-dialog .cir-dialog-controls a{margin-left:auto;font-size:11px}.cir-art-overview{grid-template-columns:minmax(0,1fr);gap:10px;margin-top:8px}.cir-art-dialog .cir-frame{height:clamp(170px,28dvh,230px)}.cir-score-overview{padding:10px}.cir-score-line>span{flex-basis:auto;margin-right:auto}.cir-score-line>strong{font-size:30px}.cir-art-dialog .cir-score-raw{margin:4px 0 7px}.cir-art-dialog .cir-score-brief{-webkit-line-clamp:4;font-size:11px;line-height:1.6}.cir-review-details{margin-top:8px}}

/* Plain-language scope note between the heading and result tabs. */
.cir-scope-note{margin:-12px 0 18px;color:var(--cir-muted);font-size:12px;line-height:1.7;overflow-wrap:anywhere}

.cir-test-time{margin:8px 0 10px;color:var(--muted);font-size:13px;line-height:1.6;font-variant-numeric:tabular-nums}
/* The scope note's pull-up is meant for the heading; after the test-time line it overlapped it by 2px. */
.cir-test-time+.cir-scope-note{margin-top:0}

/* Homepage edge: the section lines up with the other modules instead of sitting 28px (16px on phones) in.
   A 12px bleed stays outside the content so rings on edge cells clear overflow:hidden; the hairline is
   redrawn inside the bleed so it stays level with its neighbours. */
:root .ru-chapter>section.cir{margin-inline:-12px;padding-left:12px!important;padding-right:12px!important;border-top-color:transparent;background:linear-gradient(var(--line),var(--line)) 12px 0/calc(100% - 24px) 1px no-repeat border-box}

/* Heat scale: the end label centres on its tick like the others; flush right it ran into the 90% label
   ("135150" at 360px). The scale leaves room for that half label. */
.cir .ih-legend-scale{width:min(320px,calc(100% - 12px));margin-right:12px}
.cir .ih-legend-ticks span:last-child{transform:translateX(-50%)}
.cir .ih-legend-ticks span:last-child::before{left:50%;right:auto}

/* Selected-cell actions wrap rather than run past the clipped edge (English at 360px). */
.cir-selection>div{flex-wrap:wrap;row-gap:4px}
@media(max-width:640px){
 .cir-selection>div{row-gap:0}
 .cir-selection button{min-height:44px;padding:0}
 .cir .cir-tabbar button:focus-visible{outline-offset:-2px}
}

/* Numbers first: the real score grid leads, supporting explanations follow it. The heading
   is one line (title, eyebrow, meta), the test time a mono caption, and the grid is tighter,
   so several score rows reach the first screen at 1440x900 and the first row reaches it on a
   390x844 phone. Every model row, effort cell, cost/time field, tab and the heat scale stay. */
.cir-additional{margin-top:20px}
.cir-additional .cir-scope-note{margin:8px 0}
.cir-heading{align-items:baseline;flex-wrap:wrap;gap:2px 16px;margin-bottom:2px}
.cir-heading>div{display:flex;align-items:baseline;flex-wrap:wrap;gap:0 12px;min-width:0}
.cir-heading h2{order:-1;margin:0;font-size:28px;line-height:1.2}
.cir-eyebrow{color:var(--accent-2,var(--cir-muted))}
.cir-test-time{margin:0 0 8px;color:var(--cir-muted);font:12px/1.5 var(--font-mono,monospace)}
.cir-tabbar{margin-bottom:8px}
.cir-tabbar button{padding-bottom:9px}
.cir-metric-legend{margin:0 0 2px;font:11px/1.5 var(--font-mono,monospace)}
.cir-table-scroll+.cir-scroll-hint+.ih-legend{margin-top:12px}
.cir-table:has(.cir-model-heading) tr>th:first-child{width:256px}
.cir-model-heading{display:flex;align-items:baseline;flex-wrap:wrap;gap:3px 8px}
.cir-model-mean{white-space:nowrap;font-size:11px;font-weight:400;color:var(--cir-muted)}
.cir-model-mean strong{color:var(--cir-accent);font:700 13px/1.35 var(--font-mono,monospace)}
@media(max-width:640px){
 .cir-table:has(.cir-model-heading) tr>th:first-child{width:auto}
 .cir-model-heading{flex-direction:column;align-items:flex-start;gap:2px}
}
@media(min-width:641px){
 .cir-table{border-spacing:6px}
 .cir-table thead th{height:20px}
 .cir-table td{height:80px}
 .cir-table .cir-cell,.cir-table .ih-unsupported{height:76px}
}
@media(max-width:700px){
 .cir-heading{display:flex;margin-bottom:2px}
 .cir-heading h2{font-size:24px}
 .cir-meta{flex-basis:100%;margin-top:0}
 .cir-test-time{font-size:11px;margin-bottom:6px}
}
@media(max-width:640px){
 .cir-tabbar{margin-bottom:6px}
 .cir-tabbar button{padding-bottom:8px}
 .cir-table tbody tr{margin-bottom:12px}
 .cir-table tr>th:first-child{padding:0 0 2px}
 .cir-table td::before{margin-bottom:2px}
 .cir-table .cir-cell,.cir-table .ih-unsupported{height:86px}
 .cir-table .cir-cell>strong{font-size:24px}
}
/* Very wide screens: radar-ui widens the shell; the grid's figures grow with it. */
@media(min-width:2200px){
 .cir-table tr>th:first-child{width:184px}
 .cir-table tbody th{font-size:15px}
 .cir-table td{height:94px}
 .cir-table .cir-cell,.cir-table .ih-unsupported{height:90px}
 .cir-table .cir-cell>strong{font-size:32px}
 .cir-table .cir-money,.cir-table .cir-time{font-size:12px}
 .cir-metric-legend,.cir-test-time{font-size:13px}
}

/* Ticket 284 · The homepage-edge bleed above used to read `.ru-chapter>.cir` (0,2,0) and lost its
   margin/background to radar-ui's `.ru-chapter > :is(section, …, div.radar-insights)` (0,2,1): the
   grid sat 12px inside the station title and the Pareto module. `:root … section.cir` restores it.
   Station page: the station head ("模型智商 / IQ") is the page title. The score module sits right
   under it without the chapter rule; its title is one step smaller than the station title. */
:root[data-station-active] .home-station-page .ru-chapter>section.cir{background:none;padding-top:4px!important}
.home-station-page .cir-heading h2{font-size:20px;line-height:1.3;letter-spacing:-.01em}
@media(max-width:700px){.home-station-page .cir-heading h2{font-size:18px}}

.pm-ignored{color:#85928d}.pm-edge.pm-ignored .pm-edge-line{stroke:#85928d;stroke-dasharray:10 8;opacity:.55}

/* Generated by skills/codex-radar/scripts/intelligence_palette.py (write-css). Do not edit by hand.
   Fixed score scale for Degradation Radar heat cells; stops at 0%, 40%, 60%, 70%, 80%, 90%, 100% of the maximum
   (total /150, components /100). Dark: #1b2531 #1f3b56 #1a5d74 #147f78 #22a466 #9fcf3f #ffd34d. Light: #e2e8ee #c8dae7 #9fd0d3 #6ec0a6 #36a06a #237a3f #0d4a2b. */
.ih-cell{background:var(--ih-d);color:var(--ih-di)}
:root[data-theme="light"] .ih-cell{background:var(--ih-l);color:var(--ih-li)}
.ih-cell .cir-money,.ih-cell .cir-time{background:transparent}
.ih-cell[data-heat-state="unknown"],.ih-swatch[data-heat-state="unknown"]{background:repeating-linear-gradient(135deg,var(--surface-3,#112019) 0 5px,var(--surface,#09110c) 5px 10px);color:var(--text-2,#a2b8aa)}
.ih-swatch[data-heat-state="unsupported"]{background:transparent;border:1px dashed var(--line-2,#2a5a40)}
.ih-unsupported{display:flex;align-items:center;justify-content:center;width:100%;height:100%;min-height:40px;border:1px dashed var(--line-2,#2a5a40);border-radius:4px;color:var(--text-3,#6f8a79)}
.ih-legend{display:flex;flex-wrap:wrap;align-items:center;gap:8px 18px;margin:0 0 14px;color:var(--text-2,#a2b8aa);font:var(--fs-2xs,11px)/1.4 var(--font-mono,monospace)}
.ih-legend-title{color:var(--text-2,#a2b8aa)}
.ih-legend-scale{position:relative;display:inline-block;width:min(320px,100%);height:30px}
.ih-legend-ramp{position:absolute;inset:0 0 auto;height:10px;border-radius:2px;background:linear-gradient(90deg, #1b2531 0%, #1c2835 5%, #1c2a3a 10%, #1d2d3f 15%, #1d3043 20%, #1e3348 25%, #1e354c 30%, #1f3851 35%, #1f3b56 40%, #1f435d 45%, #1e4c65 50%, #1d546c 55%, #1a5d74 60%, #186e76 65%, #147f78 70%, #1a9270 75%, #22a466 80%, #6bba58 85%, #9fcf3f 90%, #d1d246 95%, #ffd34d 100%)}
:root[data-theme="light"] .ih-legend-ramp{background:linear-gradient(90deg, #e2e8ee 0%, #dfe6ed 5%, #dbe4ec 10%, #d8e3eb 15%, #d5e1eb 20%, #d2dfea 25%, #cedde9 30%, #cbdce8 35%, #c8dae7 40%, #bed8e2 45%, #b4d5dd 50%, #aad3d8 55%, #9fd0d3 60%, #87c8bc 65%, #6ec0a6 70%, #54b088 75%, #36a06a 80%, #2c8d54 85%, #237a3f 90%, #186135 95%, #0d4a2b 100%)}
.ih-legend-ticks span{position:absolute;top:14px;transform:translateX(-50%);color:var(--text-2,#a2b8aa);font-variant-numeric:tabular-nums;white-space:nowrap}
.ih-legend-ticks span::before{content:"";position:absolute;top:-6px;left:50%;width:1px;height:5px;background:var(--text-3,#6f8a79)}
.ih-legend-ticks span:first-child{transform:none}.ih-legend-ticks span:first-child::before{left:0}
.ih-legend-ticks span:last-child{transform:translateX(-100%)}.ih-legend-ticks span:last-child::before{left:auto;right:0}
.ih-state{display:inline-flex;align-items:center;gap:6px;white-space:nowrap}
.ih-swatch{display:inline-block;width:18px;height:12px;border-radius:2px;background:var(--ih-d)}
:root[data-theme="light"] .ih-swatch[data-heat-state="score"]{background:var(--ih-l)}
@media (forced-colors:active){.ih-cell{forced-color-adjust:auto;border:1px solid CanvasText}.ih-legend-ramp{forced-color-adjust:none}}

/* intelligence-trends.css — 智力变化趋势 (.itr). Scoped; tokens mirror the approved V2 overview
   (home-overview.css): near-black, fluorescent green, mono tabular figures. Dark is the default,
   html[data-theme="light"] selects light. Layout follows the component's own width (container
   "itr"), not the viewport.
   Ticket 299 · multi-line chart. Eight line slots, each bound to one pick for as long as it stays
   selected; slots 5–8 are also dashed. Validated with the dataviz palette checker
   (scripts/validate_palette.js, OKLab ΔE×100, all pairs inside each group of four):
     dark  #39ff88 #6aa8ff #ff6ec7 #ffb02e | #b39bff #ff6b5b #3fd0e0 #eef2ef on #09110c
           CVD ≥ 8.6 / 8.1, normal ≥ 24.3 / 18.7, contrast ≥ 3:1 (all 8); lightness-band check
           fails by design — the neon green is the site's brand accent and the set is neon-on-black;
     light #087a40 #1f62c9 #c2338f #cf7f00 | #7a5be0 #d03a2a #00838f #3d434a on #fbfdfa
           CVD ≥ 9.7 / 12.6, normal ≥ 24.4 / 19.7, contrast ≥ 3:1 (all 8); #3d434a sits below the
           lightness band on purpose (a neutral ink line).
   Cross-group look-alikes (e.g. pink/red, green/cyan) are separated by the dash, the legend row,
   the direct label and the batch readout — identity is never colour alone. */

.itr {
  --itr-sans: var(--font-sans, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif);
  --itr-mono: var(--font-mono, "JetBrains Mono", "SF Mono", "Cascadia Mono", ui-monospace, Menlo, Consolas, "Liberation Mono", monospace);
  --itr-r: 4px;
  --itr-hit: 36px;
  color-scheme: dark;
  --itr-bg: #050806;
  --itr-surface: #09110c; --itr-surface-2: #0c1610; --itr-surface-3: #112019; --itr-sunken: #040705;
  --itr-line: #193a29; --itr-line-2: #2a5a40; --itr-line-soft: #10251a;
  --itr-text: #ddeae1; --itr-text-2: #a2b8aa; --itr-text-3: #6f8a79;
  --itr-accent: #39ff88; --itr-accent-2: #22c76a; --itr-accent-strong: #8dffbf;
  --itr-accent-soft: rgba(57, 255, 136, .08); --itr-accent-line: rgba(57, 255, 136, .34);
  --itr-gap: rgba(162, 184, 170, .055);
  --itr-warn: #f2c14e; --itr-focus: #39ff88;
  --itr-s0: #39ff88; --itr-s1: #6aa8ff; --itr-s2: #ff6ec7; --itr-s3: #ffb02e;
  --itr-s4: #b39bff; --itr-s5: #ff6b5b; --itr-s6: #3fd0e0; --itr-s7: #eef2ef;
  --itr-dash: 6 4;
}
html[data-theme="light"] .itr {
  color-scheme: light;
  --itr-bg: #f3f6f2;
  --itr-surface: #fbfdfa; --itr-surface-2: #f3f7f3; --itr-surface-3: #e3ebe4; --itr-sunken: #e8efe9;
  --itr-line: #cfdfd3; --itr-line-2: #a7c2af; --itr-line-soft: #e0eae2;
  --itr-text: #0e1c14; --itr-text-2: #3b5345; --itr-text-3: #5b7264;
  --itr-accent: #087a40; --itr-accent-2: #0b8f4c; --itr-accent-strong: #055a2f;
  --itr-accent-soft: rgba(8, 122, 64, .07); --itr-accent-line: rgba(8, 122, 64, .32);
  --itr-gap: rgba(59, 83, 69, .06);
  --itr-warn: #9a5b00; --itr-focus: #087a40;
  --itr-s0: #087a40; --itr-s1: #1f62c9; --itr-s2: #c2338f; --itr-s3: #cf7f00;
  --itr-s4: #7a5be0; --itr-s5: #d03a2a; --itr-s6: #00838f; --itr-s7: #3d434a;
}
@media (pointer: coarse) { .itr { --itr-hit: 44px; } }
.itr .itr-c0 { --c: var(--itr-s0); } .itr .itr-c1 { --c: var(--itr-s1); } .itr .itr-c2 { --c: var(--itr-s2); } .itr .itr-c3 { --c: var(--itr-s3); }
.itr .itr-c4 { --c: var(--itr-s4); } .itr .itr-c5 { --c: var(--itr-s5); } .itr .itr-c6 { --c: var(--itr-s6); } .itr .itr-c7 { --c: var(--itr-s7); }

.itr { container: itr / inline-size; display: block; min-width: 0; color: var(--itr-text); background: var(--itr-bg); font: 400 14px/1.5 var(--itr-sans); }
/* --itr-bg equals the site page colour in each theme, so on the site it is invisible; it keeps
   the component legible if a host page does not switch its own background with data-theme. */
.itr *, .itr *::before, .itr *::after { box-sizing: border-box; }
.itr [hidden] { display: none !important; }
.itr p { margin: 0; }
.itr button, .itr select, .itr input { font: inherit; color: inherit; touch-action: manipulation; }
.itr button { cursor: pointer; }
.itr :focus-visible { outline: 2px solid var(--itr-focus); outline-offset: 2px; }
.itr .is-mono { font-family: var(--itr-mono); font-variant-numeric: tabular-nums; }
.itr .is-break { overflow-wrap: anywhere; }
.itr-sr { position: absolute !important; width: 1px !important; height: 1px !important; margin: -1px !important; padding: 0 !important; overflow: hidden !important; clip: rect(0 0 0 0) !important; clip-path: inset(50%) !important; white-space: nowrap !important; border: 0 !important; }
.itr-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 32px; padding: 0 10px; border: 1px solid var(--itr-line); border-radius: var(--itr-r); background: transparent; color: var(--itr-accent); font: 500 12px/1.2 var(--itr-sans); white-space: nowrap; }
.itr-btn:hover { border-color: var(--itr-line-2); }
@media (pointer: coarse) { .itr-btn { min-height: 44px; } }

/* line key: a short stroke of the line colour (dashed for slots 5–8) */
.itr-sw { display: inline-block; flex: none; width: 16px; height: 2.5px; border-radius: 1px; background: var(--c, var(--itr-text-3)); }
.itr .is-dash .itr-sw, .itr .is-dash > .itr-lr-t .itr-sw { background: repeating-linear-gradient(90deg, var(--c) 0 5px, transparent 5px 8px); }

/* ── head ── */
.itr-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 2px 16px; }
.itr-title-row { display: flex; align-items: baseline; gap: 10px; min-width: 0; }
.itr-title { margin: 0; font-size: 20px; font-weight: 700; line-height: 1.25; letter-spacing: -.01em; }

/* non-default task set notice */
.itr-vbar { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin-top: 10px; padding: 6px 6px 6px 10px; border-left: 2px solid var(--itr-warn); background: var(--itr-surface-2); color: var(--itr-text-2); font-size: 12.5px; line-height: 1.55; }
.itr-vbar p { flex: 1 1 260px; min-width: 0; }
.itr-vbar .itr-btn { min-height: var(--itr-hit); }

/* ── card ── */
.itr-focus { min-width: 0; margin-top: 12px; padding: 12px 16px 10px; border: 1px solid var(--itr-line); border-radius: var(--itr-r); background: var(--itr-surface); scroll-margin-top: calc(var(--nav-h, 48px) + 8px); }

/* toolbar: pick button · x range · y scale */
.itr-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; }
.itr-bar-picks { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.itr-frontier { min-height: var(--itr-hit); }
.itr-bar-r { display: flex; flex-wrap: wrap; gap: 6px; }
.itr-add { display: inline-flex; align-items: center; gap: 8px; min-height: var(--itr-hit); padding: 0 12px 0 10px; border: 1px solid var(--itr-line-2); border-radius: var(--itr-r); background: var(--itr-surface-2); color: var(--itr-text); font: 600 13px/1.2 var(--itr-sans); white-space: nowrap; }
.itr-add:hover { border-color: var(--itr-accent-line); }
.itr-add[aria-expanded="true"] { border-color: var(--itr-accent); box-shadow: inset 0 0 0 1px var(--itr-accent-line); }
.itr-add-i { position: relative; width: 10px; height: 10px; flex: none; }
.itr-add-i::before, .itr-add-i::after { content: ""; position: absolute; left: 0; top: 4px; width: 10px; height: 2px; border-radius: 1px; background: var(--itr-accent); transition: transform .14s ease; }
.itr-add-i::after { transform: rotate(90deg); }
.itr-add[aria-expanded="true"] .itr-add-i::after { transform: rotate(0deg); }
.itr-add-n { color: var(--itr-text-3); font: 500 11.5px/1 var(--itr-mono); font-variant-numeric: tabular-nums; }
.itr-seg { display: inline-flex; border: 1px solid var(--itr-line); border-radius: var(--itr-r); overflow: hidden; }
.itr-seg button { min-height: var(--itr-hit); padding: 0 10px; border: 0; background: transparent; color: var(--itr-text-2); font-size: 12px; white-space: nowrap; }
.itr-seg button + button { border-left: 1px solid var(--itr-line); }
.itr-seg button:hover { color: var(--itr-text); }
.itr-seg button[aria-pressed="true"] { background: var(--itr-accent-soft); color: var(--itr-accent-strong); font-weight: 600; }
html[data-theme="light"] .itr-seg button[aria-pressed="true"] { color: var(--itr-accent); }
.itr-seg button:focus-visible { outline-offset: -3px; }

/* picker */
.itr-picker { margin-top: 10px; padding: 10px; border: 1px solid var(--itr-line-soft); border-radius: var(--itr-r); background: var(--itr-surface-2); }
.itr-pk-top { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.itr-search { flex: 1 1 220px; min-width: 0; min-height: var(--itr-hit); padding: 0 10px; border: 1px solid var(--itr-line); border-radius: var(--itr-r); background: var(--itr-surface); color: var(--itr-text); font: 13px/1.2 var(--itr-mono); }
.itr-search::placeholder { color: var(--itr-text-3); }
.itr-search:focus-visible { outline-offset: 0; border-color: var(--itr-accent-line); }
.itr-pk-acts { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.itr-pk-count { margin-right: 4px; color: var(--itr-text-3); font: 11.5px/1 var(--itr-mono); font-variant-numeric: tabular-nums; }
.itr-pk-note { min-height: 0; margin-top: 6px !important; color: var(--itr-warn); font-size: 12px; }
.itr-pk-note:empty { display: none; }
.itr-pk-groups { display: grid; grid-template-columns: minmax(0, 1fr); gap: 6px 18px; margin-top: 10px; }
.itr-pk-g { display: grid; grid-template-columns: 112px minmax(0, 1fr); align-items: center; gap: 4px 10px; min-width: 0; }
.itr-pk-m { color: var(--itr-text); font: 600 12.5px/1.25 var(--itr-mono); overflow-wrap: anywhere; }
.itr-pk-e { display: flex; flex-wrap: wrap; gap: 4px; }
.itr-pk-b { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-width: 64px; min-height: var(--itr-hit); padding: 0 9px; border: 1px solid var(--itr-line); border-radius: var(--itr-r); background: transparent; color: var(--itr-text-2); font: 500 12px/1 var(--itr-mono); white-space: nowrap; }
.itr-pk-b .itr-sw { width: 12px; background: var(--itr-line-2); opacity: .55; }
.itr-pk-b:hover { border-color: var(--itr-line-2); color: var(--itr-text); }
.itr-pk-b[aria-pressed="true"] { border-color: var(--c); background: var(--itr-surface-3); color: var(--itr-text); font-weight: 700; box-shadow: inset 0 0 0 1px var(--c); }
.itr-pk-b[aria-pressed="true"] .itr-sw { background: var(--c); opacity: 1; }
.itr-pk-b.is-dash[aria-pressed="true"] .itr-sw { background: repeating-linear-gradient(90deg, var(--c) 0 4px, transparent 4px 6px); }
.itr-pk-b[aria-disabled="true"] { border-style: dashed; color: var(--itr-text-3); cursor: not-allowed; }
@container itr (min-width: 900px) { .itr-pk-groups { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* readout: viewed batch + legend rows (value leads, comparable change follows) */
.itr-ro { margin-top: 10px; }
.itr-ro-h { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; min-height: 24px; color: var(--itr-text-2); font: 11.5px/1.5 var(--itr-mono); font-variant-numeric: tabular-nums; }
.itr[data-scrubbing] .itr-ro-when { color: var(--itr-accent); }
.itr-ro-tag { padding: 0 6px; border: 1px solid var(--itr-line); border-radius: 3px; color: var(--itr-text-3); font-size: 10.5px; line-height: 17px; cursor: help; }
.itr-back { min-height: 28px; }
.itr-lgd { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0 0; padding: 0; list-style: none; }
.itr-lr { display: inline-flex; align-items: stretch; min-width: 0; border: 1px solid var(--itr-line-soft); border-radius: var(--itr-r); background: var(--itr-surface-2); transition: border-color .12s ease, background-color .12s ease, opacity .12s ease; }
.itr-lr.is-hot { border-color: var(--c); background: var(--itr-surface-3); }
.itr-lr-t { display: inline-flex; align-items: center; gap: 8px; min-width: 0; min-height: var(--itr-hit); padding: 0 6px 0 10px; border: 0; border-radius: var(--itr-r) 0 0 var(--itr-r); background: transparent; text-align: left; }
.itr-lr-t:focus-visible { outline-offset: -2px; }
.itr-lr-n { min-width: 0; color: var(--itr-text-2); font: 600 12px/1.2 var(--itr-mono); white-space: nowrap; }
.itr-lr-v { min-width: 6ch; color: var(--itr-text); font: 700 14px/1 var(--itr-mono); font-variant-numeric: tabular-nums; text-align: right; }
.itr-lr-v.is-missing { color: var(--itr-text-3); font-size: 12px; font-weight: 500; }
.itr-lr-d { min-width: 3.4em; color: var(--itr-text-3); font: 500 11px/1 var(--itr-mono); font-variant-numeric: tabular-nums; white-space: nowrap; }
.itr-lr-d[data-kind="delta"] { color: var(--itr-text-2); }
.itr-lr-x { display: inline-grid; place-items: center; width: 30px; min-height: var(--itr-hit); padding: 0; border: 0; border-left: 1px solid var(--itr-line-soft); border-radius: 0 var(--itr-r) var(--itr-r) 0; background: transparent; color: var(--itr-text-3); font-size: 16px; line-height: 1; }
.itr-lr-x:hover { color: var(--itr-text); background: var(--itr-surface-3); }
.itr-lr-x:focus-visible { outline-offset: -2px; }
.itr-lr.is-off .itr-lr-t > :not(.itr-sw) { opacity: .45; }
.itr-lr.is-off .itr-sw { background: transparent !important; box-shadow: inset 0 0 0 1px var(--itr-line-2); }
.itr-lr.is-off .itr-lr-n { text-decoration: line-through; text-decoration-color: var(--itr-text-3); }
.itr-lr.is-na { border-style: dashed; }
.itr-lr.is-na .itr-lr-v { color: var(--itr-text-3); }
@media (pointer: coarse) { .itr-lr-x { width: 44px; } }
.itr-none { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin-top: 6px; padding: 10px; border: 1px dashed var(--itr-line-2); border-radius: var(--itr-r); color: var(--itr-text-2); font-size: 12.5px; }
.itr-none p { flex: 1 1 100%; }

/* chart: full card width, one y-axis */
.itr-chart { min-width: 0; margin-top: 8px; }
.itr-plot { position: relative; border-radius: var(--itr-r); touch-action: pan-y; user-select: none; -webkit-user-select: none; cursor: crosshair; }
.itr-plot:focus-visible { outline-offset: 3px; }
.itr-svg { display: block; overflow: visible; font-family: var(--itr-mono); }
.itr-gap { fill: var(--itr-gap); }
.itr-runline { fill: none; stroke: var(--itr-line-2); stroke-width: 1; }
.itr-runlab { fill: var(--itr-text-2); font-size: 10.5px; font-weight: 600; }
.itr-runlab.is-unverified { fill: var(--itr-text-3); font-weight: 500; }
.itr-grid { fill: none; stroke: var(--itr-line-soft); stroke-width: 1; shape-rendering: crispEdges; }
.itr-grid.is-max { stroke: var(--itr-line); }
.itr-base { fill: none; stroke: var(--itr-line); stroke-width: 1; shape-rendering: crispEdges; }
.itr-ytick, .itr-xlab { fill: var(--itr-text-3); font-size: 10px; font-variant-numeric: tabular-nums; }
.itr-xlab:not(.is-time) { fill: var(--itr-text-2); }
.itr-xlab.is-on { fill: var(--itr-text); font-weight: 700; }
.itr-xtick { stroke: var(--itr-line); stroke-width: 1; shape-rendering: crispEdges; }
.itr-ln { transition: opacity .12s ease; }
.itr-lpath { fill: none; stroke: var(--c); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.itr-ln.is-dash .itr-lpath { stroke-dasharray: var(--itr-dash); stroke-linecap: butt; }
.itr-dot { fill: var(--c); stroke: var(--itr-surface); stroke-width: 1.5; }
.itr-dot.is-iso { fill: var(--itr-surface); stroke: var(--c); stroke-width: 2; }
.itr-plot.has-hot .itr-ln:not(.is-hot) { opacity: .2; }
.itr-ln.is-hot .itr-lpath { stroke-width: 3; }
.itr-endkey { fill: none; stroke: var(--c); stroke-width: 2.5; stroke-linecap: round; }
.itr-endkey.is-dash { stroke-dasharray: 4 3; stroke-linecap: butt; }
.itr-endlab { fill: var(--itr-text-2); font-size: 11px; font-weight: 600; }
.itr-msg { fill: var(--itr-text-3); font: 12.5px var(--itr-sans); }
.itr-cross { stroke: var(--itr-text-3); stroke-width: 1; stroke-dasharray: 2 3; shape-rendering: crispEdges; }
.itr-ring { fill: var(--itr-surface); stroke: var(--c); stroke-width: 2; }
.itr-ring.is-hot { stroke-width: 2.75; }
.itr-hint { display: none; margin-top: 4px !important; color: var(--itr-text-3); font-size: 10.5px; line-height: 1.5; }
.itr-plot:focus-visible ~ .itr-hint { display: block; }
.itr-cap2 { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2px 14px; margin-top: 2px !important; color: var(--itr-text-3); font: 10.5px/1.6 var(--itr-mono); font-variant-numeric: tabular-nums; }
.itr-cap-y { color: var(--itr-text-2); }

/* floating batch readout (mouse/keyboard on wide plots; pointer-events none, never resting) */
.itr-tip { position: absolute; left: 0; top: 0; z-index: 2; min-width: 168px; max-width: 280px; padding: 7px 9px 6px; border: 1px solid var(--itr-line-2); border-radius: var(--itr-r); background: var(--itr-surface); background: color-mix(in srgb, var(--itr-surface) 94%, transparent); box-shadow: 0 6px 18px rgba(0, 0, 0, .28); pointer-events: none; font: 11.5px/1.45 var(--itr-mono); font-variant-numeric: tabular-nums; }
html[data-theme="light"] .itr-tip { box-shadow: 0 6px 18px rgba(14, 28, 20, .12); }
.itr-tip-h { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; margin-bottom: 4px !important; }
.itr-tip-h b { color: var(--itr-text); }
.itr-tip-h span { color: var(--itr-text-3); font-size: 10.5px; }
.itr-tip ul { display: grid; grid-template-columns: 16px auto auto minmax(0, 1fr); align-items: center; gap: 2px 7px; margin: 0; padding: 0; list-style: none; }
.itr-tip li { display: contents; }
.itr-tip li b { color: var(--itr-text); font-weight: 700; text-align: right; }
.itr-tip li b.is-missing { color: var(--itr-text-3); font-weight: 500; }
.itr-tip li small { color: var(--itr-text-3); font-size: 10.5px; }
.itr-tip li span { min-width: 0; color: var(--itr-text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.itr-tip li.is-hot span { color: var(--itr-text); font-weight: 700; }

/* small disclosure inside the card (batch details and sources) */
.itr-mini { margin-top: 6px; }
.itr-mini > summary { display: flex; align-items: center; gap: 6px; width: fit-content; min-height: 32px; color: var(--itr-text-3); font-size: 12px; cursor: pointer; list-style: none; }
.itr-mini > summary::-webkit-details-marker { display: none; }
.itr-mini > summary::before { content: ""; flex: none; width: 0; height: 0; border-left: 5px solid currentColor; border-top: 4px solid transparent; border-bottom: 4px solid transparent; transition: transform .12s ease; }
.itr-mini[open] > summary::before { transform: rotate(90deg); }
.itr-mini > summary:hover { color: var(--itr-text-2); }
.itr-mini > .itr-sec-b { display: grid; gap: 6px; padding: 4px 0 4px; }
@media (pointer: coarse) { .itr-mini > summary { min-height: 44px; } }
.itr-now-s { color: var(--itr-text-2); font: 11.5px/1.55 var(--itr-mono); font-variant-numeric: tabular-nums; }
.itr-now-s b { color: var(--itr-text); font-weight: 600; }
.itr-now-n p { color: var(--itr-text-3); font-size: 11.5px; line-height: 1.55; }
.itr-now-n:empty { display: none; }
.itr-pd { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 3px 12px; margin: 0; padding: 6px 8px; border: 1px solid var(--itr-line-soft); border-radius: var(--itr-r); background: var(--itr-surface-2); font-size: 11.5px; line-height: 1.5; }
.itr-pd dt { color: var(--itr-text-3); white-space: nowrap; }
.itr-pd dd { margin: 0; min-width: 0; color: var(--itr-text); }
.itr-pd-note { display: block; color: var(--itr-text-3); font-size: 10.5px; }
.itr-dset-k { color: var(--itr-text-3); font-size: 11.5px; }
.itr-dset { display: grid; gap: 2px; margin: 0; padding: 0; list-style: none; font-size: 11.5px; line-height: 1.5; }
.itr-dset li { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 8px; }
.itr-dset-n { min-width: 9em; color: var(--itr-text-2); font: 600 11.5px var(--itr-mono); }
.itr-link { color: var(--itr-accent); text-decoration: none; overflow-wrap: anywhere; }
.itr-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.itr-sha { color: var(--itr-text-3); font: 10.5px var(--itr-mono); }
.itr-src-x { display: block; margin-top: 2px; font-size: 11px; }
.itr-lg { display: flex; flex-wrap: wrap; gap: 2px 14px; margin: 0; padding: 0; list-style: none; color: var(--itr-text-3); font: 10.5px/1.6 var(--itr-mono); }
.itr-lg li { display: inline-flex; align-items: center; gap: 5px; }
.itr-lg i { display: inline-block; flex: none; }
.itr-lg-line { width: 16px; height: 0; border-top: 2px solid var(--itr-text-2); }
.itr-lg-iso { width: 9px; height: 9px; border: 2px solid var(--itr-text-2); border-radius: 50%; }
.itr-lg-gap { width: 9px; height: 12px; background: var(--itr-gap); box-shadow: inset 0 0 0 1px var(--itr-line-soft); }
.itr-lg-dash { width: 16px; height: 0; border-top: 2px dashed var(--itr-text-2); }

/* ── collapsed sections below the card ── */
.itr-more { margin-top: 10px; }
.itr-more > .itr-sec { border-top: 1px solid var(--itr-line-soft); }
.itr-more > .itr-sec:last-child { border-bottom: 1px solid var(--itr-line-soft); }
.itr-more > .itr-sec > summary { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 12px; min-height: 44px; padding: 6px 2px 6px 0; color: var(--itr-text-2); font-size: 13px; cursor: pointer; list-style: none; }
.itr-more > .itr-sec > summary::-webkit-details-marker { display: none; }
.itr-more > .itr-sec > summary::before { content: ""; flex: none; width: 0; height: 0; margin: 0 2px 0 4px; border-left: 5px solid var(--itr-text-3); border-top: 4px solid transparent; border-bottom: 4px solid transparent; transition: transform .12s ease; }
.itr-more > .itr-sec[open] > summary::before { transform: rotate(90deg); }
.itr-more > .itr-sec > summary:hover { color: var(--itr-text); }
.itr-more > .itr-sec[open] > summary { color: var(--itr-text); }
.itr-sec-t { min-width: 0; }
.itr-sec-m { color: var(--itr-text-3); font: 11.5px/1.4 var(--itr-mono); font-variant-numeric: tabular-nums; }
.itr-more > .itr-sec > .itr-sec-b { padding: 2px 0 14px; }

/* matrix (small multiples: one sparkline per model × effort) */
.itr-cap-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2px 12px; margin-bottom: 6px; font: 11.5px/1.5 var(--itr-mono); font-variant-numeric: tabular-nums; }
.itr-cap { color: var(--itr-text-2); }
.itr[data-scrubbing] .itr-cap { color: var(--itr-accent); }
.itr-cap-y { color: var(--itr-text-3); }
.itr-cap-note { margin: -2px 0 6px !important; color: var(--itr-text-3); font: 11px/1.5 var(--itr-mono); }
.itr-cap-note:empty { display: none; }
.itr-matrix { --itr-name: 120px; min-width: 0; }
.itr-mrow { display: grid; grid-template-columns: var(--itr-name) repeat(var(--itr-cols, 6), minmax(0, 1fr)); gap: 4px; align-items: stretch; }
.itr-mrow + .itr-mrow { margin-top: 4px; }
.itr-mhead { margin-bottom: 2px; color: var(--itr-text-3); font: 500 10.5px/1.6 var(--itr-mono); letter-spacing: .04em; }
.itr-mhead > span { padding: 0 2px; text-align: center; }
.itr-mhead > .itr-mname { text-align: left; }
.itr-mname { display: flex; align-items: center; min-width: 0; padding-right: 6px; font: 600 12.5px/1.25 var(--itr-mono); color: var(--itr-text); overflow-wrap: anywhere; }
.itr-mcell { display: block; min-width: 0; }
.itr-cell {
  position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: auto 26px; align-items: baseline; column-gap: 4px;
  width: 100%; height: 100%; min-height: 58px; margin: 0; padding: 5px 7px 4px; overflow: hidden;
  border: 1px solid var(--itr-line-soft); border-radius: var(--itr-r); background: var(--itr-surface-2); color: var(--itr-text); text-align: left;
  transition: border-color .12s ease, background-color .12s ease;
}
button.itr-cell:hover { border-color: var(--itr-line-2); }
button.itr-cell[aria-pressed="true"] { border-color: var(--c, var(--itr-accent)); background: var(--itr-surface-3); box-shadow: inset 0 0 0 1px var(--c, var(--itr-accent)); }
button.itr-cell[aria-pressed="true"] .itr-cell-e { display: block; }
.itr-cell-e { display: none; grid-column: 1 / -1; color: var(--itr-text-3); font: 500 10px/1.4 var(--itr-mono); letter-spacing: .04em; }
.itr-cell-v { min-width: 0; font: 700 15px/1.15 var(--itr-mono); font-variant-numeric: tabular-nums; letter-spacing: -.01em; white-space: nowrap; }
.itr-cell.is-missing .itr-cell-v { color: var(--itr-text-3); font-weight: 500; }
.itr-cell-d { font: 500 10px/1 var(--itr-mono); font-variant-numeric: tabular-nums; color: var(--itr-text-3); white-space: nowrap; text-align: right; }
.itr-spark { grid-column: 1 / -1; align-self: end; display: block; width: 100%; height: 26px; overflow: visible; }
.itr-sline { fill: none; stroke: var(--itr-accent-2); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.itr-sdot { fill: none; stroke: var(--itr-accent-2); stroke-width: 4; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.itr-scur { fill: none; stroke: var(--itr-accent-strong); stroke-width: 6; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.itr-sgap { fill: none; stroke: var(--itr-line); stroke-width: 1; vector-effect: non-scaling-stroke; }
button.itr-cell[aria-pressed="true"] :is(.itr-sline, .itr-sdot) { stroke: var(--c, var(--itr-accent)); }
.itr-cell.is-na { display: flex; flex-direction: column; justify-content: center; gap: 2px; border-color: transparent; background: transparent; box-shadow: inset 0 0 0 1px var(--itr-line-soft); }
.itr-na { color: var(--itr-text-3); font: 11px/1.3 var(--itr-mono); text-align: center; }

/* task sets */
.itr-views-row { display: flex; flex-wrap: wrap; gap: 6px; min-width: 0; }
.itr-views-solo { margin-bottom: 10px; }
.itr-view { display: inline-flex; flex-direction: column; align-items: flex-start; gap: 1px; min-height: 44px; padding: 4px 10px; border: 1px solid var(--itr-line); border-radius: var(--itr-r); background: transparent; color: var(--itr-text-2); text-align: left; }
.itr-view b { font-size: 12.5px; font-weight: 600; line-height: 1.3; }
.itr-view small { color: var(--itr-text-3); font: 10.5px/1.3 var(--itr-mono); font-variant-numeric: tabular-nums; }
.itr-view:hover { border-color: var(--itr-line-2); color: var(--itr-text); }
.itr-view[aria-pressed="true"] { border-color: var(--itr-accent-line); background: var(--itr-accent-soft); color: var(--itr-text); box-shadow: inset 0 0 0 1px var(--itr-accent-line); }
.itr-view[aria-pressed="true"] b { color: var(--itr-accent-strong); }
html[data-theme="light"] .itr-view[aria-pressed="true"] b { color: var(--itr-accent); }
.itr-view[aria-pressed="true"] small { color: var(--itr-text-2); }

/* explanations: rules, bases, batches, fingerprints, exclusions */
.itr-rules { color: var(--itr-text-2); font-size: 12.5px; line-height: 1.65; }
.itr-span { margin-top: 4px !important; color: var(--itr-text-3); font: 11.5px/1.5 var(--itr-mono); font-variant-numeric: tabular-nums; }
.itr-vnote { margin-top: 8px !important; padding: 6px 10px; border-left: 2px solid var(--itr-accent-line); background: var(--itr-surface-2); color: var(--itr-text-2); font-size: 12px; line-height: 1.6; }
.itr-sub { margin: 14px 0 0; color: var(--itr-text-3); font: 600 11.5px/1.4 var(--itr-sans); letter-spacing: .02em; }
.itr-groups { display: flex; flex-wrap: wrap; gap: 6px 8px; margin: 6px 0 0; padding: 0; list-style: none; }
.itr-group { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 4px 8px; min-height: 26px; padding: 2px 9px 2px 3px; border: 1px solid var(--itr-line); border-radius: var(--itr-r); background: var(--itr-surface-2); font: 11.5px/1.35 var(--itr-mono); color: var(--itr-text-2); }
.itr-group-l { display: inline-grid; place-items: center; min-width: 20px; height: 20px; border-radius: 3px; background: var(--itr-accent-soft); color: var(--itr-accent); font-weight: 700; }
.itr-group-t { color: var(--itr-text); }
.itr-group-j, .itr-group-n { color: var(--itr-text-3); }
.itr-group-note { color: var(--itr-text-2); }
.itr-group.is-unverified .itr-group-l { background: transparent; color: var(--itr-text-3); box-shadow: inset 0 0 0 1px var(--itr-line-2); }
.itr-badge { padding: 0 5px; border: 1px solid var(--itr-warn); border-radius: 3px; color: var(--itr-warn); font-size: 10.5px; line-height: 16px; }
.itr-tbl-scroll { margin-top: 6px; overflow-x: auto; scrollbar-width: thin; scrollbar-color: var(--itr-line) transparent; }
.itr-tbl { width: 100%; border-collapse: collapse; font: 11.5px/1.35 var(--itr-mono); font-variant-numeric: tabular-nums; }
.itr-tbl th, .itr-tbl td { padding: 5px 7px; border-bottom: 1px solid var(--itr-line-soft); text-align: left; vertical-align: top; white-space: nowrap; }
.itr-tbl thead th { color: var(--itr-text-3); font-weight: 500; }
.itr-tbl .is-wrap { white-space: normal; min-width: 160px; }
.itr-basis { display: block; color: var(--itr-text-3); font-size: 10.5px; }
.itr-data td { text-align: right; }
.itr-data tbody th { position: sticky; left: 0; z-index: 1; background: var(--itr-bg); color: var(--itr-text); font-weight: 600; }
.itr-data thead tr:last-child th { text-align: right; }
.itr-data thead tr:last-child th:first-child { position: sticky; left: 0; z-index: 1; background: var(--itr-bg); text-align: left; }
.itr-tbl-run { text-align: center !important; color: var(--itr-text-2) !important; border-bottom-color: var(--itr-line-2) !important; }
.itr-tbl-run.is-unverified { color: var(--itr-warn) !important; }
.itr-tbl-corner { border-bottom: 0 !important; }
.itr-data td.is-missing { color: var(--itr-text-3); }
.itr-tbl-note { margin-left: 2px; color: var(--itr-warn); }
.itr-tbl-notes, .itr-excluded { margin: 6px 0 0; padding: 0 0 0 2px; list-style: none; color: var(--itr-text-2); font-size: 11.5px; line-height: 1.6; }
.itr-fps { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 8px; margin-top: 6px; }
.itr-fp { padding: 8px 10px; border: 1px solid var(--itr-line-soft); border-radius: var(--itr-r); background: var(--itr-surface-2); font-size: 11.5px; }
.itr-fp.is-unverified { border-color: color-mix(in srgb, var(--itr-warn) 45%, transparent); }
.itr-fp p { color: var(--itr-text-2); }
.itr-fp dl { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 2px 10px; margin: 6px 0 0; }
.itr-fp dt { color: var(--itr-text-3); }
.itr-fp dd { margin: 0; color: var(--itr-text); overflow-wrap: anywhere; white-space: pre-line; }
.itr-empty { display: flex; flex-direction: column; gap: 4px; margin-top: 12px; padding: 18px; border: 1px solid var(--itr-line); border-radius: var(--itr-r); color: var(--itr-text-2); font-size: 13px; }
.itr-empty strong { color: var(--itr-text); }

/* ── narrow component widths ── */
@container itr (max-width: 900px) {
  .itr-matrix { --itr-name: 96px; }
  .itr-mname { font-size: 11.5px; }
}
@container itr (max-width: 559px) {
  .itr-title { font-size: 18px; }
  /* the container cannot restyle itself: the 44px touch size is set on the card */
  .itr-focus { --itr-hit: 44px; padding: 10px 10px 8px; }
  /* toolbar: pick button full width, the two switches share the next row */
  .itr-add { flex: 1 1 100%; justify-content: flex-start; }
  .itr-bar-picks { flex: 1 1 100%; }
  .itr-bar-picks > .itr-add { flex: 1 1 auto; }
  .itr-add-n { margin-left: auto; }
  .itr-bar-r { flex: 1 1 100%; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); }
  .itr-bar-r .itr-seg { display: flex; min-width: 0; }
  .itr-seg button { flex: 1 1 0; min-width: 0; padding: 0 6px; }
  /* picker: model name on its own line, efforts three across */
  .itr-pk-top { display: grid; grid-template-columns: minmax(0, 1fr); }
  .itr-pk-acts { justify-content: flex-end; }
  .itr-pk-g { grid-template-columns: minmax(0, 1fr); }
  .itr-pk-e { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .itr-pk-b { min-width: 0; padding: 0 4px; }
  /* legend: one full-width row per line, value right-aligned */
  .itr-lgd { display: grid; grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .itr-lr { display: flex; }
  .itr-lr-t { flex: 1 1 auto; display: grid; grid-template-columns: 12px minmax(0, 1fr) auto; gap: 2px 6px; padding: 6px 8px; }
  .itr-lr-n { grid-column: 2; grid-row: 1; overflow: visible; white-space: normal; overflow-wrap: anywhere; }
  .itr-lr-v { grid-column: 3; grid-row: 1; }
  .itr-lr-d { grid-column: 2 / 4; grid-row: 2; text-align: right; }
  .itr-lr-x { width: 44px; }
  .itr-back { min-height: 44px; }
  .itr-cap2 { justify-content: flex-start; }
  .itr-pd { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .itr-pd dt { margin-top: 3px; }
  /* matrix → one block per model, efforts three across; every cell keeps value, delta and sparkline */
  .itr-mhead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .itr-mrow { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 5px; }
  .itr-mrow + .itr-mrow { margin-top: 12px; }
  .itr-mrow > .itr-mname { grid-column: 1 / -1; padding: 0 0 1px; font-size: 13px; }
  .itr-cell { grid-template-rows: auto auto 26px; min-height: 70px; padding: 4px 7px 4px; }
  .itr-cell-e { display: block; }
  .itr-cell-v { font-size: 16px; }
}

/* ── modes ── */
@media (prefers-reduced-motion: reduce) {
  .itr *, .itr *::before, .itr *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
@media (forced-colors: active) {
  /* colours collapse: every slot gets its own dash pattern instead */
  .itr-lpath, .itr-endkey, .itr-ring { stroke: CanvasText; }
  .itr-c1 .itr-lpath { stroke-dasharray: 9 3; } .itr-c2 .itr-lpath { stroke-dasharray: 2 3; } .itr-c3 .itr-lpath { stroke-dasharray: 9 3 2 3; }
  .itr-c4 .itr-lpath { stroke-dasharray: 5 5; } .itr-c5 .itr-lpath { stroke-dasharray: 12 4; } .itr-c6 .itr-lpath { stroke-dasharray: 1 5; } .itr-c7 .itr-lpath { stroke-dasharray: 12 3 3 3 3 3; }
  .itr-ln.is-hot .itr-lpath { stroke: Highlight; }
  .itr-dot { fill: CanvasText; stroke: Canvas; } .itr-dot.is-iso { fill: Canvas; stroke: CanvasText; }
  .itr-sw { background: CanvasText !important; }
  .itr-cell[aria-pressed="true"], .itr-view[aria-pressed="true"], .itr-pk-b[aria-pressed="true"], .itr-seg button[aria-pressed="true"], .itr-lr.is-hot { outline: 2px solid Highlight; }
  .itr-sline, .itr-sdot, .itr-scur, button.itr-cell[aria-pressed="true"] :is(.itr-sline, .itr-sdot) { stroke: Highlight; }
  .itr-cross, .itr-runline, .itr-xtick, .itr-grid, .itr-base { stroke: GrayText; }
  .itr-gap { fill: transparent; } .itr-sgap { stroke: GrayText; }
  .itr-ytick, .itr-xlab, .itr-runlab, .itr-endlab, .itr-msg { fill: CanvasText; stroke: none; }
  .itr-tip { border-color: CanvasText; background: Canvas; }
  .itr-lg-line, .itr-lg-iso, .itr-lg-dash { border-color: CanvasText; }
  .itr-link { color: LinkText; }
}
@media print {
  .itr-bar, .itr-picker, .itr-hint, .itr-back, .itr-lr-x, .itr-tip, .itr-vbar .itr-btn { display: none !important; }
  .itr-focus { break-inside: avoid; }
}

/* Ticket 299 browser polish by Codex: stable colour + pattern for every real combination. */
.itr .itr-pattern1 { --itr-dash: 9 3; }
.itr .itr-pattern2 { --itr-dash: 2 3; }
.itr .itr-pattern3 { --itr-dash: 9 3 2 3; }
.itr .itr-pattern4 { --itr-dash: 12 4 2 4; }
.itr .itr-pattern5 { --itr-dash: 6 3 2 3 2 3; }

/* Score tradeoff charts (model_tradeoffs_ui.py + model-tradeoffs.mjs). Everything is scoped to .mtr
   and reads the radar-ui tokens, so it follows data-theme without touching body, button or svg
   globally. Series colours identify models only; score colours live in intelligence-heat.css. */
.mtr{--mtr-bg:var(--bg,#050806);--mtr-raise:var(--surface-2,#0c1610);--mtr-text:var(--text,#ddeae1);--mtr-sub:var(--text-2,#a2b8aa);--mtr-mute:var(--text-3,#6f8a79);
  --mtr-line:var(--line,#193a29);--mtr-grid:var(--chart-grid,rgba(57,255,136,.08));--mtr-accent:var(--accent,#39ff88);--mtr-wash:var(--accent-soft,rgba(57,255,136,.07));--mtr-focus:var(--focus,#39ff88);
  --mtr-shade:rgba(0,0,0,.45);
  /* Model series (source order). Re-stepped for the console surfaces with the dataviz validator, --pairs all:
     every pair >= 17 OKLab dE for full colour vision in both themes; CVD pairs rely on the per-model shapes. */
  --mtr-s1:#4095f8;--mtr-s2:#af460a;--mtr-s3:#16aa93;--mtr-s4:#9749aa;--mtr-s5:#b38d12;--mtr-s6:#257b18;--mtr-s7:#e4638b;--mtr-s8:#027195;
  position:relative;color:var(--mtr-text);padding:28px 0!important;line-height:1.5}
:root[data-theme="light"] .mtr{--mtr-shade:rgba(14,28,20,.16);
  --mtr-s1:#6d7dd6;--mtr-s2:#982703;--mtr-s3:#0b9780;--mtr-s4:#77268a;--mtr-s5:#ac750b;--mtr-s6:#2b6201;--mtr-s7:#c7558d;--mtr-s8:#015c87}
.mtr *{box-sizing:border-box}.mtr [hidden]{display:none!important}
.mtr button,.mtr input,.mtr select{font:inherit}
.mtr :focus-visible{outline:2px solid var(--mtr-focus);outline-offset:2px}
.mtr-root{container-type:inline-size;min-width:0}
.mtr-header{margin-bottom:18px}.mtr-eyebrow{margin:0;color:var(--mtr-accent);font:600 var(--fs-2xs,11px)/1.5 var(--font-mono,monospace);letter-spacing:.14em}
.mtr-header h2{margin:4px 0;font-size:26px;line-height:1.25;letter-spacing:-.03em}
.mtr-lede{margin:0;color:var(--mtr-sub);font-size:var(--fs-sm,13px);line-height:1.6}.mtr-scope{color:var(--mtr-mute);font-family:var(--font-mono,monospace);font-size:var(--fs-xs,12px);white-space:nowrap}
.mtr-meta{margin:0;color:var(--mtr-sub);font-size:12px;line-height:1.6}
.mtr-tabs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:4px;padding:4px;border-radius:8px;background:var(--mtr-raise)}
.mtr-tab{display:flex;flex-direction:column;justify-content:center;gap:1px;min-width:0;min-height:54px;padding:6px 12px;border:0;border-radius:6px;background:transparent;color:var(--mtr-sub);text-align:left}
.mtr-tab-name{color:var(--mtr-text);font-size:15px;font-weight:600}.mtr-tab-sub{font:12px/1.35 var(--font-mono,monospace)}
.mtr-tab[aria-selected="true"]{background:var(--mtr-bg);box-shadow:inset 0 0 0 1px var(--mtr-line),inset 0 -2px 0 var(--mtr-accent)}.mtr-tab[aria-selected="true"] .mtr-tab-name{color:var(--mtr-accent)}
.mtr-toolbar{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin-top:12px}
.mtr-ctl,.mtr-chip{display:inline-flex;align-items:center;gap:8px;min-height:40px;border:1px solid var(--mtr-line);border-radius:99px;color:var(--mtr-text);font-size:13px}
.mtr-ctl{padding:0 6px 0 14px;color:var(--mtr-sub)}.mtr-ctl select{min-height:38px;padding:0 4px;border:0;background:transparent;color:var(--mtr-text);font-size:13px}
.mtr-ctl select option{background:var(--surface,#09110c);color:var(--mtr-text)}
.mtr-ctl select:focus-visible,.mtr-chip input:focus-visible{outline:none}.mtr-ctl:has(select:focus-visible),.mtr-chip:has(input:focus-visible){outline:2px solid var(--mtr-focus);outline-offset:2px}
.mtr-chip{padding:0 14px 0 11px;user-select:none}.mtr-chip:has(input:checked){border-color:var(--mtr-accent);background:var(--mtr-wash)}.mtr-chip input{width:16px;height:16px;margin:0;accent-color:var(--mtr-accent)}
.mtr-legend{display:flex;flex-wrap:wrap;gap:2px;margin-top:10px}
.mtr-series,.mtr-reset{display:inline-flex;align-items:center;gap:7px;min-height:40px;padding:0 10px 0 8px;border:0;border-radius:6px;background:transparent;color:var(--mtr-text);font-size:13px}
.mtr-series:hover,.mtr-reset:hover{background:var(--mtr-raise)}.mtr-series svg{flex:none;overflow:visible}
.mtr-series[aria-pressed="false"]{color:var(--mtr-sub)}.mtr-series[aria-pressed="false"] svg{opacity:.28}.mtr-series[aria-pressed="false"] .mtr-series-name{text-decoration:line-through}.mtr-reset{color:var(--mtr-accent)}
.mtr-body{display:grid;grid-template-columns:minmax(0,1fr);gap:18px;margin-top:12px}.mtr-stages{min-width:0}
.mtr-chart-head{display:flex;justify-content:space-between;align-items:flex-end;gap:12px}.mtr-chart-head h3{margin:0;font-size:16px;line-height:1.4;font-weight:600}
.mtr-count{flex:none;margin:0;color:var(--mtr-sub);font:12px/1.5 var(--font-mono,monospace);font-variant-numeric:tabular-nums}
.mtr-chart{position:relative;margin-top:6px}.mtr-alert{padding:16px;border:1px dashed var(--mtr-line);border-radius:6px;color:var(--mtr-text);font-size:13px}
.mtr-plot{display:block;width:100%;overflow:visible;touch-action:pan-y;user-select:none;-webkit-tap-highlight-color:transparent}
.mtr-plot text{fill:var(--mtr-sub);font-family:var(--font-sans,system-ui,sans-serif);font-size:12px}
.mtr-plot .mtr-axis text{font-family:var(--font-mono,monospace);font-variant-numeric:tabular-nums}
.mtr-plot .axis-title{fill:var(--mtr-text);font-weight:500}.mtr-plot .mtr-hint{fill:var(--mtr-sub);font-weight:500}
.mtr-plot .mtr-axis .domain{display:none}.mtr-plot .mtr-axis .tick line{stroke:var(--mtr-line)}
.mtr-plot .mtr-grid line{stroke:var(--mtr-grid)}.mtr-plot .mtr-base{stroke:var(--mtr-line)}
.mtr-point{stroke:var(--mtr-bg);stroke-width:1.5}.mtr-point.is-dim{fill-opacity:.16;stroke-opacity:.16}
.mtr-front,.mtr-key-front{fill:none;stroke:var(--mtr-text);stroke-opacity:.75;stroke-width:2.2;stroke-dasharray:.1 5;stroke-linecap:round;stroke-linejoin:round}
.mtr-ring{fill:none;stroke:var(--mtr-text);stroke-opacity:.35;stroke-width:1}
.mtr-track,.mtr-key-track{fill:none;stroke-width:1.5;stroke-opacity:.45;stroke-linejoin:round;stroke-linecap:round}
.mtr-track.is-on,.mtr-key-track{stroke-width:2.25;stroke-opacity:.95}.mtr-track.is-dim{stroke-opacity:.08}
.mtr-chosen,.mtr-key-chosen{fill:none;stroke:var(--mtr-text);stroke-width:1.75}.mtr-hover{fill:none;stroke:var(--mtr-sub);stroke-width:1.25}
.mtr-plot .mtr-point-label{fill:var(--mtr-text);paint-order:stroke;stroke:var(--mtr-bg);stroke-width:3.5px;stroke-linejoin:round}
.mtr-plot .mtr-point-label.is-chosen{font-weight:650}.mtr-plot .mtr-point-label.is-effort{fill:var(--mtr-sub)}.mtr-plot .mtr-point-label.is-dim{fill-opacity:.3;stroke-opacity:.3}
.mtr-under{display:flex;flex-wrap:wrap;align-items:center;gap:4px 16px;margin-top:4px;color:var(--mtr-sub);font-size:12px}
.mtr-key-item{display:inline-flex;align-items:center;gap:6px}.mtr-under-tip{margin-left:auto}.mtr-warn{color:var(--mtr-text);font-weight:600}
.mtr-unknown{display:flex;flex-wrap:wrap;align-items:center;gap:6px 10px;margin-top:12px;padding:8px 12px;border:1px dashed var(--mtr-line);border-radius:6px;color:var(--mtr-sub);font-size:12.5px}
.mtr-unknown-group{display:inline-flex;flex-wrap:wrap;align-items:center;gap:6px}.mtr-unknown-model{display:inline-flex;align-items:center;gap:6px;margin-right:2px;color:var(--mtr-text);font-weight:500}
.mtr-na,.mtr-near-item{display:inline-flex;align-items:center;gap:6px;min-height:34px;padding:0 10px;border:1px solid var(--mtr-line);border-radius:99px;background:transparent;color:var(--mtr-text);font-size:12.5px}
.mtr-na[aria-pressed="true"],.mtr-near-item[aria-pressed="true"]{border-color:var(--mtr-accent);background:var(--mtr-wash)}
.mtr-tip{position:absolute;z-index:3;pointer-events:none;min-width:150px;max-width:250px;padding:8px 11px;border:1px solid var(--mtr-line);border-radius:6px;background:var(--surface,#09110c);box-shadow:0 8px 24px var(--mtr-shade);font-size:12.5px;line-height:1.55}
.mtr-tip-score{color:var(--mtr-sub)}.mtr-tip-score strong{color:var(--mtr-text);font:650 16px/1.3 var(--font-mono,monospace);font-variant-numeric:tabular-nums}
.mtr-tip-name{display:flex;align-items:center;gap:6px}.mtr-key{flex:none;width:12px;height:3px;border-radius:2px}.mtr-tip-vals{color:var(--mtr-sub);font-variant-numeric:tabular-nums}
.mtr-side{display:grid;gap:16px;align-content:start;min-width:0;padding-top:16px;border-top:1px solid var(--mtr-line)}
.mtr-side-a,.mtr-side-b{display:grid;gap:10px;align-content:start;min-width:0}
.mtr-pick-label,.mtr-near-title,.mtr-parts-title{margin:0;color:var(--mtr-sub);font-size:12px}.mtr-near-title{margin-bottom:6px}
.mtr-pick{width:100%;min-height:44px;padding:0 10px;border:1px solid var(--mtr-line);border-radius:6px;background:var(--mtr-raise);color:var(--mtr-text);font-size:16px}
.mtr-id{display:flex;align-items:center;gap:8px;margin-top:4px;font-size:16px;font-weight:600;line-height:1.35}.mtr-swatch{display:inline-flex;flex:none}
.mtr-score{font:650 34px/1.1 var(--font-mono,monospace);letter-spacing:-.03em;font-variant-numeric:tabular-nums}.mtr-score small{color:var(--mtr-sub);font-size:14px;font-weight:400;letter-spacing:0}
.mtr-front-status{margin:0;color:var(--mtr-sub);font-size:12.5px;line-height:1.55}.mtr-front-status[data-front="yes"]{color:var(--mtr-accent)}
.mtr-near-list{display:flex;flex-wrap:wrap;gap:6px}.mtr-metrics{display:grid;gap:2px}
.mtr-value{display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:8px;min-height:34px;margin:0 -8px;padding:4px 8px;border-radius:6px;font-size:13px;font-variant-numeric:tabular-nums}
.mtr-value.is-current{background:var(--mtr-raise)}.mtr-label{color:var(--mtr-sub)}.mtr-value strong{font-weight:600;text-align:right}
.mtr-tag{min-width:3.4em;padding:0 6px;border:1px solid var(--mtr-accent);border-radius:99px;color:var(--mtr-accent);font-size:11.5px;text-align:center}.mtr-tag:empty{border-color:transparent}
.mtr-tag.is-na{border-style:dashed;border-color:var(--mtr-line);color:var(--mtr-sub)}
.mtr-parts{display:grid;gap:8px;padding-top:12px;border-top:1px solid var(--mtr-line)}
.mtr-part{display:grid;grid-template-columns:auto 1fr;gap:3px 8px;font-size:13px;font-variant-numeric:tabular-nums}.mtr-part strong{font-weight:500;text-align:right}
.mtr-part-raw{color:var(--mtr-mute);font-size:11.5px;margin-left:4px}
.mtr-bar{grid-column:1/-1;height:4px;border-radius:2px;background:var(--mtr-line);overflow:hidden}.mtr-bar i{display:block;height:100%;border-radius:2px;background:var(--mtr-accent)}
.mtr-rubric{margin:0;color:var(--mtr-mute);font-size:11.5px;line-height:1.6;overflow-wrap:anywhere}
.mtr details{margin-top:14px;padding-top:8px;border-top:1px solid var(--mtr-line);color:var(--mtr-sub);font-size:12.5px}
.mtr summary{display:flex;align-items:center;gap:8px;padding:6px 0;color:var(--mtr-text);font-size:13px;list-style:none}
.mtr summary::-webkit-details-marker{display:none}
.mtr summary::before{content:"";width:7px;height:7px;flex:none;margin:0 2px;border-right:1.6px solid var(--accent-2,var(--mtr-accent));border-bottom:1.6px solid var(--accent-2,var(--mtr-accent));transform:rotate(-45deg)}
.mtr details[open]>summary::before{transform:rotate(45deg)}
.mtr-table-scroll{margin-top:6px;overflow-x:auto}
.mtr table{width:100%;border-collapse:collapse;font-size:12.5px;font-variant-numeric:tabular-nums}
.mtr th,.mtr td{padding:6px 8px;border-bottom:1px solid var(--line-soft,var(--mtr-line));text-align:right;white-space:nowrap;font-family:var(--font-mono,monospace)}
.mtr thead th{color:var(--mtr-sub);font-weight:500}.mtr thead th:first-child,.mtr tbody th{color:var(--mtr-text);font-weight:500;text-align:left}
.mtr-method ul{margin:4px 0 0;padding-left:18px;line-height:1.8}
.mtr-note{margin:12px 0 0;color:var(--mtr-sub);font-size:11.5px;line-height:1.7}
.mtr-announcement{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
@container (min-width:860px){.mtr-body{grid-template-columns:minmax(0,1fr) 248px;gap:28px}.mtr-side{padding:4px 0 0 22px;border-top:0;border-left:1px solid var(--mtr-line)}}
@container (min-width:520px) and (max-width:859.98px){.mtr-side{grid-template-columns:minmax(0,1fr) minmax(0,1fr);column-gap:28px}}
/* Narrow: full names wrap at their spaces instead of being cut (no hover fallback on touch); tabs size to their
   longest word ("Composite") and subtitles such as "USD / task" wrap, so nothing is truncated or overflows. */
@container (max-width:519.98px){.mtr-under-tip{margin-left:0}.mtr-tabs{grid-template-columns:repeat(3,minmax(min-content,1fr))}.mtr-tab{padding:6px 8px}
  .mtr-legend{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr)}
  .mtr-series,.mtr-reset{justify-content:flex-start;min-width:0;gap:6px;padding:4px 6px;text-align:left}.mtr-series-name{line-height:1.25;overflow-wrap:break-word}}
@media (max-width:700px){.mtr{padding:20px 0!important}.mtr-header h2{font-size:22px}}
@media (pointer:coarse){.mtr-series,.mtr-reset,.mtr-ctl,.mtr-chip,.mtr-na,.mtr-near-item{min-height:44px}}
@media (prefers-reduced-motion:no-preference){.mtr-stage:not([hidden]){animation:mtr-stage-in 180ms ease-out}
  .mtr-point,.mtr-point-label,.mtr-track{transition:fill-opacity 160ms,stroke-opacity 160ms}
  .mtr-tab,.mtr-series,.mtr-chip,.mtr-na,.mtr-near-item{transition:background-color 120ms,color 120ms,border-color 120ms}}
@keyframes mtr-stage-in{from{opacity:0;transform:translateY(3px)}}

/* Ticket 284 · Station page: module titles sit one step below the station title ("模型智商 / IQ"),
   the same size as the score module title above. */
.home-station-page .mtr-header h2{font-size:20px;line-height:1.3;letter-spacing:-.01em}
@media(max-width:700px){.home-station-page .mtr-header h2{font-size:18px}}

/* home-stations.css — station tab shell (overview + six stations) for the Codex Radar homepage.
   Production adapter of the approved prototype (prototype.css, same session): near-black, green
   figures, compact. Load after radar-ui.css and every module sheet. Layout only — no content, no
   numbers, no data, no animation. Every rule is scoped to the stations page via
   :root[data-station-active]; component internals (score cells, dialogs, <details>, sandboxes,
   charts) keep their own sheets. Tokens come from radar-ui.css, so light/dark follow it. */

/* ── 1 · Which page shows ────────────────────────────────────────────────
   Before the module runs, CSS shows only the preset page; afterwards panel.hidden decides
   (radar-ui: [hidden]{display:none!important}). Nothing here un-hides a [hidden] element. */
html.stations-js[data-station-active]:not([data-station-active="overview"]) :is(.home-announcements, .community-flashes) {
  display: none;
}
html.stations-js[data-station-active="overview"] [data-station-page]:not([data-station-page="overview"]),
html.stations-js[data-station-active="iq"] [data-station-page]:not([data-station-page="iq"]),
html.stations-js[data-station-active="community-vote"] [data-station-page]:not([data-station-page="community-vote"]),
html.stations-js[data-station-active="speed"] [data-station-page]:not([data-station-page="speed"]),
html.stations-js[data-station-active="effort"] [data-station-page]:not([data-station-page="effort"]),
html.stations-js[data-station-active="quota-reset"] [data-station-page]:not([data-station-page="quota-reset"]),
html.stations-js[data-station-active="subscription-quota"] [data-station-page]:not([data-station-page="subscription-quota"]),
html.stations-js[data-station-active="tibo"] [data-station-page]:not([data-station-page="tibo"]),
html.stations-js[data-station-active="news"] [data-station-page]:not([data-station-page="news"]),
html.stations-js[data-station-active="community"] [data-station-page]:not([data-station-page="community"]) {
  display: none;
}
/* Module failed to load: a page that holds the URL target still opens (tabs are plain #links). */
html.stations-js:not(.stations-ready) [data-station-page]:not([hidden]):is(:target, :has(:target)) { display: block; }
/* No scripting: every page is readable in source order. */
@media (scripting: none) {
  html.stations-js [data-station-page]:not([hidden]) { display: block !important; }
}

/* ── 2 · Station bar ──────────────────────────────────────────────────────
   The top menu (stations, activities, partner sites) is the shared radar-nav component:
   markup site_nav.py, styles assets/radar-nav.css, scroll affordances assets/radar-nav.mjs.
   Its height still follows --nav-h, which html scroll-padding-top and sticky heads use. */

/* The grouped station retains one panel per legacy fragment. */
html.stations-js:not(:is([data-station-active="quota-reset"], [data-station-active="tibo"], [data-station-active="news"])) [data-station-group] {
  display: none;
}
html.stations-js:not(.stations-ready) [data-station-group]:has(:target) {
  display: block;
}
.station-subtabs {
  display: flex;
  flex-wrap: wrap;
  gap: 3px;
  width: fit-content;
  max-width: 100%;
  margin-block-start: var(--s-4);
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--surface);
}
.station-subtabs a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding-inline: var(--s-3);
  border: 1px solid transparent;
  border-radius: var(--r-sm);
  color: var(--text-2);
  font-size: var(--fs-sm);
  text-decoration: none;
}
.station-subtabs a:hover { color: var(--text); text-decoration: none; }
.station-subtabs a[aria-selected="true"] {
  border-color: var(--line-2);
  background: var(--surface-3);
  color: var(--accent);
}
.station-subtabs a:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
@media (max-width: 600px) {
  .station-subtabs { width: 100%; }
  .station-subtabs a { flex: 1 1 auto; min-height: 44px; }
}

/* ── 4 · Station pages ─────────────────────────────────────────────────── */
:root[data-station-active] .home-station-page { min-width: 0; --ru-module-pad: var(--s-6); }
:root[data-station-active] .home-station-page:focus { outline: none; }

/* Head: h2 (+ optional .station-page-kicker), one short context line, optional jump buttons. */
:root[data-station-active] .station-page-head {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end;
  gap: 2px var(--s-5);
  padding: var(--s-5) 0 var(--s-2);
}
:root[data-station-active] .station-page-head > h2 {
  grid-column: 1; margin: 0;
  font-size: clamp(20px, .6vw + 15px, 24px); line-height: 1.25; letter-spacing: .01em;
}
:root[data-station-active] .station-page-kicker {
  margin-left: var(--s-3); vertical-align: .15em;
  color: var(--accent); font: var(--w-medium) var(--fs-2xs)/1 var(--font-mono); letter-spacing: .16em;
}
:root[data-station-active] .station-page-head > :not(h2):not(.station-page-jumps) {
  grid-column: 1; margin: 0; max-width: none;
  color: var(--text-2); font: var(--fs-xs)/1.5 var(--font-mono); font-variant-numeric: tabular-nums;
}
:root[data-station-active] .station-page-jumps {
  grid-column: 2; grid-row: 1 / span 2; align-self: end;
  display: inline-flex; gap: 2px; max-width: 100%; padding: 2px;
  border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface);
  overflow-x: auto; scrollbar-width: none;
}
:root[data-station-active] .station-page-jumps::-webkit-scrollbar { display: none; }
:root[data-station-active] .station-page-jumps a {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 30px; padding: 0 var(--s-3); border-radius: var(--r-sm);
  color: var(--text-2); font-size: var(--fs-sm); white-space: nowrap; text-decoration: none;
}
:root[data-station-active] .station-page-jumps a:hover { background: var(--surface-3); color: var(--text); text-decoration: none; }

/* Modules keep their own anatomy; only the long-page spacing tightens. The station head
   replaces the old chapter labels inside a page. */
:root[data-station-active] .home-station-page .ru-chapter { padding-top: var(--s-2); --ru-module-pad: var(--s-6); }
:root[data-station-active] .home-station-page .ru-chapter > .ru-chapter-head { display: none; }

/* IQ: the real score grid starts right under the head (top padding only; bleed/sides unchanged). */
:root[data-station-active] .home-station-page .cir { padding-top: var(--s-3) !important; }

/* Effort: the practical panel loses its long-page margin; per-model rows become cards on wide
   screens (same cells, same order; phones keep practical-data.css's own stacked rows). */
:root[data-station-active] .home-station-page .practical-data { margin-block: var(--s-3) var(--s-6); border-radius: var(--r-md); }
@media (min-width: 901px) {
  :root[data-station-active] #model-effort-share > .practical-scroll { overflow: visible; }
  :root[data-station-active] #model-effort-share > .practical-scroll > table { display: block; }
  :root[data-station-active] #model-effort-share > .practical-scroll > table > thead {
    position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap;
  }
  :root[data-station-active] #model-effort-share > .practical-scroll > table > tbody {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: var(--s-3);
  }
  :root[data-station-active] #model-effort-share > .practical-scroll > table > tbody > tr {
    display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: start;
    gap: var(--s-2) var(--s-4); min-width: 0;
    padding: var(--s-3) var(--s-4);
    border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface-2);
  }
  :root[data-station-active] #model-effort-share > .practical-scroll > table > tbody > tr > :is(th, td) { padding: 0; border: 0; }
  :root[data-station-active] #model-effort-share > .practical-scroll > table > tbody > tr > td:not(:last-child) { text-align: right; }
  :root[data-station-active] #model-effort-share > .practical-scroll > table > tbody > tr > td:last-child {
    grid-column: 1 / -1; max-width: none; padding-top: var(--s-3); border-top: 1px solid var(--line-soft);
  }
}

/* News: the readout image is retired; only a small history link remains. Safety net in case
   an image or the old frame is still emitted inside the page. */
:root[data-station-active] .home-station-page :is(#radar-readout img, #radar-readout picture, .model-iq-readout-tv) { display: none !important; }
:root[data-station-active] a#radar-readout,
:root[data-station-active] #radar-readout a {
  display: inline-flex; align-items: center; gap: 6px; min-height: 32px; padding: 0 var(--s-3);
  border: 1px dashed var(--line-2); border-radius: var(--r-md);
  color: var(--text-2); font-size: var(--fs-xs); text-decoration: none;
}
:root[data-station-active] a#radar-readout:hover,
:root[data-station-active] #radar-readout a:hover { color: var(--accent); border-color: var(--accent-line); text-decoration: none; }

/* ── 5 · Responsive ────────────────────────────────────────────────────── */
@media (max-width: 640px) {
  :root[data-station-active] { --nav-h: 46px; }  /* html scroll-padding-top and radar-nav follow */

  :root[data-station-active] .home-station-page { --ru-module-pad: var(--s-5); }
  :root[data-station-active] .home-station-page .ru-chapter { --ru-module-pad: var(--s-5); }
  :root[data-station-active] .station-page-head { grid-template-columns: minmax(0, 1fr); padding: var(--s-3) 0 var(--s-1); row-gap: 4px; }
  :root[data-station-active] .station-page-head > :not(h2):not(.station-page-jumps) { font-size: var(--fs-2xs); }
  :root[data-station-active] .station-page-jumps { grid-column: 1; grid-row: auto; width: 100%; }
  :root[data-station-active] .station-page-jumps a { flex: 1 0 auto; min-height: 36px; }
}

/* ── 7 · Quota Resets (ticket 281) ───────────────────────────────────────
   Status tracks and completion ledger only; Reset Radar, the 28-day calendar and Tibo updates
   keep their own sheets. A banked card never shares the hard-reset colour. */
:root[data-station-active] .qr-section {
  margin-block: var(--s-3) var(--s-5); padding: var(--s-4) var(--s-5);
  border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface);
}
:root[data-station-active] .qr-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px var(--s-3); margin-bottom: var(--s-3); }
:root[data-station-active] .qr-kicker { color: var(--accent); font: var(--w-medium) var(--fs-2xs)/1 var(--font-mono); letter-spacing: .16em; }
:root[data-station-active] .qr-head h3 { margin: 0; font-size: var(--fs-lg); line-height: 1.3; }
:root[data-station-active] .qr-updated {
  margin: 0 0 0 auto; color: var(--text-3);
  font: var(--fs-2xs)/1.4 var(--font-mono); font-variant-numeric: tabular-nums;
}
:root[data-station-active] .qr-tracks { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: var(--s-3); }
:root[data-station-active] .qr-track {
  min-width: 0; display: grid; align-content: start; gap: 6px;
  padding: var(--s-3) var(--s-4);
  border: 1px solid var(--line); border-left: 3px solid var(--line-2); border-radius: var(--r-md); background: var(--surface-2);
}
:root[data-station-active] .qr-track[data-qr-tone="done"] { border-left-color: var(--accent); }
:root[data-station-active] .qr-track[data-qr-tone="live"] { border-left-color: var(--warn); }
:root[data-station-active] .qr-track-head { display: flex; align-items: center; justify-content: space-between; gap: var(--s-2); margin: 0; }
:root[data-station-active] .qr-track-label { color: var(--text-2); font: var(--w-semibold) var(--fs-xs)/1.2 var(--font-mono); letter-spacing: .06em; }
:root[data-station-active] :is(.qr-state, .qr-kind, .qr-confirm) {
  display: inline-flex; align-items: center; padding: 1px 8px;
  border: 1px solid var(--line-2); border-radius: var(--r-pill);
  color: var(--text-2); font: var(--w-semibold) var(--fs-2xs)/1.5 var(--font-sans); font-style: normal; white-space: nowrap;
}
:root[data-station-active] [data-qr-tone="done"] .qr-state,
:root[data-station-active] .qr-confirm-official { color: var(--accent); border-color: var(--accent-line); background: var(--accent-soft); }
:root[data-station-active] [data-qr-tone="live"] .qr-state,
:root[data-station-active] .qr-kind-direct { color: var(--warn); border-color: var(--warn); background: var(--warn-soft); }
:root[data-station-active] .qr-kind-card { color: var(--violet); border-color: var(--violet); background: var(--violet-soft); }
:root[data-station-active] .qr-track-headline { color: var(--text); font-size: var(--fs-lg); line-height: 1.3; }
:root[data-station-active] .qr-track-headline::first-letter { text-transform: uppercase; }
:root[data-station-active] .qr-track-detail { margin: 0; color: var(--text-2); font-size: var(--fs-sm); line-height: 1.6; }
:root[data-station-active] .qr-sources { display: grid; gap: 4px; margin: 2px 0 0; padding: var(--s-2) 0 0; border-top: 1px solid var(--line-soft); list-style: none; }
:root[data-station-active] .qr-sources li { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px var(--s-3); font-size: var(--fs-xs); }
:root[data-station-active] .qr-sources span { color: var(--text-3); font-family: var(--font-mono); font-variant-numeric: tabular-nums; }

:root[data-station-active] .qr-ledger-list { margin: 0; padding: 0; border-top: 1px solid var(--line-soft); list-style: none; }
:root[data-station-active] .qr-ledger-list > li { border-bottom: 1px solid var(--line-soft); }
:root[data-station-active] .qr-ledger-list summary {
  display: grid; grid-template-columns: 16ch minmax(0, 1fr) auto; align-items: center; gap: var(--s-3);
  min-height: 44px; padding: 6px var(--s-1); cursor: pointer; list-style: none;
}
:root[data-station-active] .qr-ledger-list summary::-webkit-details-marker { display: none; }
:root[data-station-active] .qr-date { display: grid; gap: 1px; min-width: 0; }
:root[data-station-active] .qr-date-label { color: var(--text-3); font: var(--fs-2xs)/1.25 var(--font-sans); }
:root[data-station-active] [data-date-basis="confirmation"] .qr-date-label { color: var(--warn); }
:root[data-station-active] .qr-ledger-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px var(--s-2); min-width: 0; }
:root[data-station-active] .qr-date-note {
  display: inline-flex; align-items: center; padding: 1px 8px;
  border: 1px dashed var(--warn); border-radius: var(--r-pill);
  color: var(--warn); font: var(--w-medium) var(--fs-2xs)/1.5 var(--font-sans); white-space: nowrap;
}
:root[data-station-active] .qr-ledger-list summary::after { content: "+"; grid-column: 3; color: var(--text-3); font-family: var(--font-mono); }
:root[data-station-active] .qr-ledger-list details[open] > summary::after { content: "−"; }
:root[data-station-active] .qr-ledger-list summary:hover { background: var(--surface-2); }
:root[data-station-active] .qr-ledger-list summary:focus-visible { outline: 2px solid var(--focus); outline-offset: -2px; }
:root[data-station-active] .qr-ledger-list time { color: var(--text); font: var(--w-semibold) var(--fs-sm)/1.3 var(--font-mono); font-variant-numeric: tabular-nums; }
:root[data-station-active] .qr-ledger-title { flex: 1 1 14em; min-width: 0; overflow: hidden; color: var(--text-2); font-size: var(--fs-sm); text-overflow: ellipsis; white-space: nowrap; }
:root[data-station-active] .qr-ledger-body { padding: 0 var(--s-1) var(--s-3); color: var(--text-2); font-size: var(--fs-sm); line-height: 1.6; }
:root[data-station-active] .qr-ledger-body p { margin: 0 0 6px; overflow-wrap: anywhere; }
:root[data-station-active] .qr-ledger-links { font-size: var(--fs-xs); }

/* News keeps every reviewed record; reset-sourced ones carry one link to Quota Resets. */
:root[data-station-active] .news-reset-link { color: var(--warn); white-space: nowrap; }
:root[data-station-active] .station-cross-link { margin: var(--s-4) 0 var(--s-3); }
:root[data-station-active] .station-cross-link a {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px var(--s-3);
  padding: var(--s-3) var(--s-4); border: 1px solid var(--line); border-left: 3px solid var(--warn); border-radius: var(--r-md);
  background: var(--surface); color: var(--text-2); font-size: var(--fs-sm); text-decoration: none;
}
:root[data-station-active] .station-cross-link a:hover { border-color: var(--accent-line); color: var(--text); text-decoration: none; }
:root[data-station-active] .station-cross-link b { color: var(--text); font-weight: var(--w-semibold); }
:root[data-station-active] .station-cross-link span[aria-hidden] { margin-left: auto; color: var(--accent); }

@media (max-width: 640px) {
  :root[data-station-active] .qr-section { padding: var(--s-3) var(--s-4); }
  :root[data-station-active] .qr-updated { flex-basis: 100%; margin-left: 0; }
  :root[data-station-active] .qr-ledger-list summary { grid-template-columns: minmax(0, 1fr) auto; row-gap: 6px; }
  :root[data-station-active] .qr-date { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px var(--s-2); }
  :root[data-station-active] .qr-ledger-list summary::after { grid-column: 2; grid-row: 1; }
  :root[data-station-active] .qr-ledger-meta { grid-column: 1 / -1; }
  :root[data-station-active] .qr-ledger-title { flex-basis: 100%; white-space: normal; }
}

/* News · one shared chronology with the overview (316). */
:root[data-station-active] #codex-reviewed-news{max-width:72rem;padding:var(--s-1) 0 var(--s-2);border-top:0;}
:root[data-station-active] [data-chapter="news"] > .station-cross-link{max-width:72rem;}
#codex-reviewed-news .news-log-head{display:flex;flex-wrap:wrap;align-items:baseline;gap:6px 20px;padding-bottom:16px;border-bottom:1px solid var(--line);}
#codex-reviewed-news .news-log-title{margin:0;color:var(--text);font-size:16px;font-weight:600;}
#codex-reviewed-news .news-log-meta{margin:0 0 0 auto;color:var(--text-3);font:11px/1.5 var(--font-mono);}
#codex-reviewed-news :is(.news-days,.news-items,.news-featured ul,.news-versions){list-style:none;margin:0;padding:0;}
#codex-reviewed-news .news-featured{display:grid;grid-template-columns:7rem minmax(0,1fr);gap:20px;padding:18px 0;border-bottom:1px solid var(--line);}
#codex-reviewed-news .news-featured h3{font:500 11px/1.8 var(--font-mono);color:var(--text-3);margin:0;}
#codex-reviewed-news .news-featured li{display:flex;align-items:baseline;gap:12px;padding:3px 0;}
#codex-reviewed-news .news-featured a{font-size:13px;line-height:1.6;color:var(--text-2);overflow-wrap:anywhere;}
#codex-reviewed-news .news-featured time{flex:none;margin-left:auto;color:var(--text-3);font:11px/1.6 var(--font-mono);}
#codex-reviewed-news .news-day{display:grid;grid-template-columns:7rem minmax(0,1fr);gap:20px;padding:24px 0 8px;}
#codex-reviewed-news .news-day + .news-day{border-top:1px solid var(--line);}
#codex-reviewed-news .news-day-head{position:sticky;top:calc(var(--nav-h) + 16px);align-self:start;display:flex;flex-direction:column;align-items:flex-start;gap:6px;margin:0;padding-top:10px;color:var(--text-2);font:500 12px/1.5 var(--font-mono);}
#codex-reviewed-news .news-day-tag{color:var(--accent);font-size:10px;}
#codex-reviewed-news .signal-item{padding:12px 0 18px;min-width:0;scroll-margin-top:calc(var(--nav-h) + 24px);}
#codex-reviewed-news .signal-item + .signal-item{border-top:1px solid var(--line-soft);}
#codex-reviewed-news :is(.news-title,.news-summary){max-width:none;text-wrap:wrap;overflow-wrap:anywhere;}
#codex-reviewed-news .news-title{margin:0;color:var(--text);font-size:16px;font-weight:600;line-height:1.6;}
#codex-reviewed-news .news-summary{margin:5px 0 0;color:var(--text-2);font-size:14px;line-height:1.8;}
#codex-reviewed-news :is(.news-head,.news-group-head){list-style:none;cursor:pointer;min-height:28px;}
#codex-reviewed-news :is(.news-head,.news-group-head)::-webkit-details-marker{display:none;}
#codex-reviewed-news .news-head .news-title::after{content:" +";color:var(--text-3);font:400 13px var(--font-mono);}
#codex-reviewed-news details[open] > .news-head .news-title::after{content:" −";}
#codex-reviewed-news .news-group-head{display:flex;align-items:baseline;flex-wrap:wrap;gap:4px 16px;}
#codex-reviewed-news .news-expand{font-size:11px;color:var(--text-3);}
#codex-reviewed-news .news-expand::after{content:" +";}
#codex-reviewed-news details[open] > .news-group-head .news-expand::after{content:" −";}
#codex-reviewed-news .news-group-note{font-size:12px;color:var(--text-3);}
#codex-reviewed-news .news-versions{padding-top:8px;}
#codex-reviewed-news .news-versions li{padding:10px 12px;background:var(--bg);border:1px solid var(--line-soft);scroll-margin-top:calc(var(--nav-h) + 24px);}
#codex-reviewed-news .news-versions li + li{border-top:0;}
#codex-reviewed-news .news-versions .news-source{font-size:13px;color:var(--text);overflow-wrap:anywhere;}
#codex-reviewed-news .news-meta{display:flex;flex-wrap:wrap;align-items:baseline;gap:2px 12px;margin:8px 0 0;font-size:11px;line-height:1.8;}
#codex-reviewed-news :is(.news-origin,.news-time){color:var(--text-3);font-variant-numeric:tabular-nums;}
#codex-reviewed-news .news-meta a{font-size:11px;line-height:1.8;min-height:28px;display:inline-flex;align-items:baseline;}
#codex-reviewed-news :is(a,summary):hover{color:var(--accent);}
#codex-reviewed-news :is(a,summary):focus-visible{outline:2px solid var(--focus);outline-offset:3px;border-radius:2px;}
#codex-reviewed-news [tabindex="-1"]:focus{outline:1px solid var(--accent-line);outline-offset:5px;}
#codex-reviewed-news .news-empty{padding:24px 0;color:var(--text-3);}
@media(max-width:640px){
 #codex-reviewed-news .news-log-meta{margin-left:0;}
 #codex-reviewed-news .news-featured{display:block;padding:14px 0;}
 #codex-reviewed-news .news-featured h3{margin-bottom:6px;}
 #codex-reviewed-news .news-featured li{align-items:flex-start;}
 #codex-reviewed-news .news-day{display:block;padding-top:20px;}
 #codex-reviewed-news .news-day-head{position:static;flex-direction:row;align-items:center;gap:10px;padding:0 0 6px;}
 #codex-reviewed-news .news-title{font-size:15px;}
 #codex-reviewed-news .news-summary{font-size:13px;}
 #codex-reviewed-news .news-meta{gap:2px 10px;}
}

:root[data-station-active] .station-quota-pending {
  display: grid; place-items: center; min-height: 180px;
  padding: var(--s-4); border: 1px solid var(--line-soft);
  border-radius: var(--r-sm); color: var(--text-3);
}

/* The existing calendar clock is the station's single visible Pacific reference. */
.station-tibo-clock{margin-inline-start:auto;--tc-muted:var(--text-2);--tc-soft:var(--text-2);--tc-ink:var(--text);min-width:0}
.station-tibo-clock .t28-pacific{margin:0;gap:.35rem .65rem;padding:.5rem .75rem;border:1px solid var(--line);border-radius:8px;background:var(--surface);font-variant-numeric:tabular-nums}
.station-tibo-clock .t28-pt-label{color:var(--ok);font-weight:650}
.station-tibo-clock .t28-pt-digital{font-size:1.2rem;font-weight:700}
@media(max-width:640px){.station-tibo-clock{flex:1 0 100%;margin:0}.station-tibo-clock .t28-pacific{width:fit-content;max-width:100%;font-size:.8rem}.station-tibo-clock .t28-pt-digital{font-size:1.05rem}}

:root[data-station-active] [data-station-page="tibo"] .station-page-head{display:flex;flex-wrap:wrap;align-items:center;gap:.6rem 1rem}
:root[data-station-active] [data-station-page="tibo"] .station-tibo-clock{margin:0}
:root[data-station-active] [data-station-page="tibo"] .station-page-jumps{margin-inline-start:auto}
@media(max-width:640px){:root[data-station-active] [data-station-page="tibo"] .station-tibo-clock{order:1}:root[data-station-active] [data-station-page="tibo"] .station-page-jumps{order:2;margin:0}}

.qr-status .qr-kicker:empty { display: none; }
.qr-status .qr-track-headline { font-size: 1.35rem; }
.qr-status .qr-track-label { font-family: var(--font-sans); letter-spacing: 0; }
.qr-status .qr-confirmation { margin: 0; color: var(--text-2); font-size: .875rem; }
.qr-status .qr-evidence { border-top: 1px solid var(--line-soft); padding-top: 10px; }
.qr-status .qr-evidence summary { cursor: pointer; color: var(--text-2); }
.qr-status .qr-evidence[open] summary { margin-bottom: 10px; }
.qr-status .qr-sources li { display: grid; overflow-wrap: anywhere; }

/* Ticket 376 · Community station hierarchy: the station h2 (社区 / Community) leads, and its two
   module titles step down to the section-title size the other stations use (降智雷达, 不同模式加速比实测 …)
   instead of out-sizing it. Kickers, links, counts and the standalone /community/ pages are unchanged. */
:root[data-station-active] [data-chapter="community"] #community-notes .ck-title,
:root[data-station-active] [data-chapter="community"] .home-live .hl-title { font-size: var(--fs-xl); }

/* Related destinations beside the brand; they wrap into their own row on phones. */
.shell > header .brand-row { flex: 0 1 auto; }
.top-site-links { display:flex; align-items:center; flex:1 1 auto; gap:2px; min-width:0; flex-wrap:wrap; }
.top-site-link { display:inline-flex; align-items:center; gap:3px; padding:8px 4px; border-radius:var(--r-md); color:var(--text-2); font:var(--w-medium) var(--fs-sm)/1.3 var(--font-sans); white-space:nowrap; text-decoration:none; }
.top-site-link span { color:var(--accent); font-size:.85em; }
.top-site-link:hover { background:var(--surface-2); color:var(--accent); text-decoration:none; }
.top-site-link:focus-visible { outline:2px solid var(--focus); outline-offset:2px; }
@media(max-width:860px) { .top-site-links { order:4; flex:1 0 100%; gap:2px; } }
/* Wide masthead: one band in DOM and Tab order (brand · related links · check-in · theme/language) from
   1024px in Chinese and 1100px in English, so the theme and language switches no longer drop alone onto
   the start of a second row. The links take the width the others leave but never less than their own
   content; the brand keeps its size, so only the check-in nickname (its designed truncation point) gives.
   Where the six links cannot share one line (English at every width, Chinese below 1280px) they form the
   three-column matrix the phone masthead already uses: featured destinations above, the other three below.
   Narrower widths keep the original wrapping. */
@media(min-width:1024px) {
  :root:not(:lang(en)) .shell > header { flex-wrap:nowrap; }
  :root:not(:lang(en)) .shell > header .brand-row { flex-shrink:0; }
  :root:not(:lang(en)) .top-site-links { flex-basis:0; min-width:min-content; justify-items:start; }
}
@media(min-width:1024px) and (max-width:1279px) {
  :root:not(:lang(en)) .top-site-links { display:grid; grid-template-columns:repeat(3,max-content); }
}
@media(min-width:1100px) {
  :root:lang(en) .shell > header { flex-wrap:nowrap; }
  :root:lang(en) .shell > header .brand-row { flex-shrink:0; }
  :root:lang(en) .top-site-links { flex-basis:0; min-width:min-content; justify-items:start; display:grid; grid-template-columns:repeat(3,max-content); }
}
@media(max-width:640px) { .top-site-links { grid-column:1/-1; grid-row:3; display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:3px; } .top-site-link { justify-content:center; min-height:40px; padding:7px 2px; font-size:12px; } }

@media (max-width: 640px) {
  /* line-height 1: a label that wraps beside its icon (e.g. "Gemini / Radar" at 320px) still fits the 40px cell. */
  .top-site-link:lang(en) { min-width: 0; white-space: normal; text-align: center; line-height: 1; }
}
@media (max-width: 380px) {
  /* Arrow only: the ticket-382 icon is an <svg>, not a span, so it stays. */
  .top-site-link > span[aria-hidden="true"] { display: none; }
}

/* The featured masthead links share Speed Radar’s rotating border. */
.top-site-link:is([data-top-site-link="shop"], [data-top-site-link="deng"]) {
  --entry-tail: rgb(39 249 127 / .26);
  --entry-head: #42ff92;
  --entry-tip: #edfff2;
  position: relative;
  border-radius: calc(var(--r-md) + 2px);
}
[data-theme="light"] .top-site-link:is([data-top-site-link="shop"], [data-top-site-link="deng"]) {
  --entry-tail: rgb(18 148 74 / .27);
  --entry-head: #159956;
  --entry-tip: #064b2d;
}
.top-site-link[data-top-site-link="deng"] {
  --entry-ink: #c9ffda;
  --entry-arrow: #8afbb5;
  --entry-fill: linear-gradient(115deg, #143f29, #0b2418);
  --entry-hover: linear-gradient(115deg, #205638, #123824);
  --entry-press: #1d593a;
  --entry-edge: #43845c;
  --entry-edge-hover: #74eba2;
  background: var(--entry-fill);
  color: var(--entry-ink);
  box-shadow: inset 0 0 0 1px var(--entry-edge);
  touch-action: manipulation;
  -webkit-tap-highlight-color: rgb(83 233 140 / .24);
}
[data-theme="light"] .top-site-link[data-top-site-link="deng"] {
  --entry-ink: #143e28;
  --entry-arrow: #0d6639;
  --entry-fill: linear-gradient(115deg, #e7f9e9, #ccefd8);
  --entry-hover: linear-gradient(115deg, #e4fce8, #b8ebc8);
  --entry-press: #a8dfba;
  --entry-edge: #59996e;
  --entry-edge-hover: #197245;
  -webkit-tap-highlight-color: rgb(8 84 47 / .24);
}
.top-site-link[data-top-site-link="deng"] span { color: var(--entry-arrow); }
@media (max-width: 640px) {
  .top-site-link[data-top-site-link="deng"]:lang(en) {
    padding-inline: 4px;
    white-space: normal;
    text-align: center;
    line-height: 1;
  }
}
@media (hover: hover) {
  .top-site-link[data-top-site-link="deng"]:hover {
    background: var(--entry-hover);
    color: var(--entry-ink);
    box-shadow: inset 0 0 0 1px var(--entry-edge-hover);
  }
}
.top-site-link[data-top-site-link="deng"]:focus-visible {
  background: var(--entry-hover);
  outline-offset: -3px;
  outline-color: var(--entry-ink);
}
.top-site-link[data-top-site-link="deng"]:active { background: var(--entry-press); color: var(--entry-ink); }

@property --speed-entry-border-angle {
  syntax: "<angle>";
  inherits: false;
  initial-value: 0deg;
}
@media (prefers-reduced-motion: no-preference) and (forced-colors: none) {
  @supports (mask-composite: exclude) {
    .top-site-link:is([data-top-site-link="shop"], [data-top-site-link="deng"])::after {
      content: "";
      position: absolute;
      inset: 0;
      padding: 3px;
      border-radius: inherit;
      pointer-events: none;
      background: conic-gradient(from var(--speed-entry-border-angle),
        transparent 0deg 210deg, var(--entry-tail) 267deg, var(--entry-head) 330deg,
        var(--entry-tip) 350deg 355deg, transparent 360deg);
      /* Cut out the center so the traveling light stays on the border. */
      mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
      mask-composite: exclude;
      animation: speed-entry-border-orbit 1.4s linear infinite;
    }
    @keyframes speed-entry-border-orbit {
      from { --speed-entry-border-angle: -92deg; }
      to { --speed-entry-border-angle: 268deg; }
    }
  }
}
@media (forced-colors: active) {
  .top-site-link[data-top-site-link="deng"] { outline: 1px solid LinkText; outline-offset: -1px; }
  .top-site-link[data-top-site-link="deng"] span { color: inherit; }
  .top-site-link[data-top-site-link="deng"]:focus-visible { outline: 2px solid Highlight; outline-offset: -3px; }
}

/* Radar Shop uses a quieter fill. */
a.top-site-link[data-top-site-link="shop"] {
  --shop-entry-ink: #d9f5e4;
  --shop-entry-ink-hover: #f0fff6;
  --shop-entry-arrow: #74eda8;
  --shop-entry-fill: linear-gradient(115deg, rgb(52 214 128 / .12), rgb(52 214 128 / .04));
  --shop-entry-fill-hover: linear-gradient(115deg, rgb(52 214 128 / .2), rgb(52 214 128 / .08));
  --shop-entry-press: rgb(52 214 128 / .26);
  --shop-entry-edge: #3c7d57;
  --shop-entry-edge-hover: #6fe3a0;
  --shop-entry-ring: var(--shop-entry-edge);
  background: var(--shop-entry-fill);
  color: var(--shop-entry-ink);
  box-shadow: inset 0 0 0 1px var(--shop-entry-ring);
  -webkit-tap-highlight-color: rgb(83 233 140 / .22);
}
[data-theme="light"] a.top-site-link[data-top-site-link="shop"] {
  --shop-entry-ink: #12402a;
  --shop-entry-ink-hover: #0b3320;
  --shop-entry-arrow: #127043;
  --shop-entry-fill: linear-gradient(115deg, rgb(32 184 100 / .11), rgb(32 184 100 / .04));
  --shop-entry-fill-hover: linear-gradient(115deg, rgb(32 184 100 / .19), rgb(32 184 100 / .08));
  --shop-entry-press: rgb(32 184 100 / .24);
  --shop-entry-edge: #4f8f69;
  --shop-entry-edge-hover: #1f7a4a;
  -webkit-tap-highlight-color: rgb(8 84 47 / .2);
}
a.top-site-link[data-top-site-link="shop"] span { color: var(--shop-entry-arrow); }

@media (hover: hover) {
  a.top-site-link[data-top-site-link="shop"]:hover {
    --shop-entry-ring: var(--shop-entry-edge-hover);
    background: var(--shop-entry-fill-hover);
    color: var(--shop-entry-ink-hover);
  }
}
/* Outline itself comes from the base .top-site-link:focus-visible rule and is left as is. */
a.top-site-link[data-top-site-link="shop"]:focus-visible {
  --shop-entry-ring: var(--shop-entry-edge-hover);
  background: var(--shop-entry-fill-hover);
  color: var(--shop-entry-ink-hover);
}
a.top-site-link[data-top-site-link="shop"]:active {
  background: var(--shop-entry-press);
  color: var(--shop-entry-ink-hover);
}

@media (forced-colors: active) {
  a.top-site-link[data-top-site-link="shop"] { outline: 1px solid LinkText; outline-offset: -1px; }
  a.top-site-link[data-top-site-link="shop"] span { color: inherit; }
  a.top-site-link[data-top-site-link="shop"]:focus-visible { outline: 2px solid Highlight; outline-offset: 2px; }
}

/* ── Ticket 382 · masthead destination icons ──────────────────────────────────────────────
   One drawn mark per link, from site_nav.header_icon(): 12px box, 1.4 stroke (≈1.24px), round
   caps, currentColor plus one accent detail (--tsi-accent). The <svg> follows the ↗ span in the
   DOM and is shown first with `order: -1`, so the label stays a.childNodes[0] and the ≤380px rule
   above (`> span[aria-hidden]`) still hides only the arrow, never the icon. Spacing above was
   tightened (gap 4→3px, icon–label 2px, padding 10→4px, link gap 4→2px) so the English row,
   which had ~5px to spare, stays on one line: the six links are 4px narrower than before.

   Rest: static, for every link and in every mode. Motion is one 1.4 s gesture per icon that
   starts and ends on the rest pose; it plays once per desktop :hover and once per keyboard
   :focus-visible, so only the pointed or focused link moves and nothing loops at idle.
     shop     awning flaps out, the door slides open on a lit doorway, closes again
     deng     needle dips, revs to the red line, shivers there, falls back (trail follows it)
     gemini   static stars
     huizige  caret blinks, glides over the gray suggestion, both lines turn solid, then reset
     cup      the pelican bobs and snaps its beak open twice over its pouch-cup; the cup glints
     garden   leaves sway, the tulip halves open and blush, the stamen rises, one petal drifts
   Switch: :hover / :focus-visible set --tsi-go to an empty value. Every animated part declares
   `animation: var(--tsi-go) <keyframes> …`; while --tsi-go is undefined that declaration is
   invalid at computed-value time and the part has no animation. One switch per link, one
   declaration per part, no script.
   Touch-only screens (hover: none): :active gives a press pose (transforms of visible parts
   only — nothing is revealed, so iOS never holds the first tap as a hover); the tap opens the
   link exactly as before. Reduced motion: no animation or transition is declared at all.
   Forced colours: every stroke and fill follows the link colour.
   The shop intro sweep and the Speed Radar orbit above are unchanged; the icons add no motion
   at load. Animated parts stay inside the icon (overflow: visible is ink only), so nothing
   moves the label, the arrow or the hit area. */

.top-site-icon {
  --tsi-accent: var(--accent);
  --tsi-bloom: #f08f73;
  --tsi-dur: 1.4s;
}
[data-theme="light"] .top-site-icon { --tsi-bloom: #b4502e; }
.top-site-link > .top-site-icon {
  order: -1;
  flex: none;
  width: 12px;
  height: 12px;
  margin-inline-end: -1px;
  overflow: visible;
}
a.top-site-link[data-top-site-link="shop"] > .top-site-icon { --tsi-accent: var(--shop-entry-arrow); }
.top-site-link[data-top-site-link="deng"] > .top-site-icon { --tsi-accent: var(--entry-arrow); }

.top-site-icon .tsi-a { stroke: var(--tsi-accent); }
.top-site-icon .tsi-af { fill: var(--tsi-accent); stroke: none; }
.top-site-icon .tsi-f { fill: currentColor; stroke: none; }
.top-site-icon .tsi-shop-glow { opacity: 0; }
.top-site-icon .tsi-deng-trail { opacity: 0; stroke-dasharray: 100 100; stroke-dashoffset: 100; }
.top-site-icon .tsi-gemini-twin { fill: var(--tsi-accent); stroke-width: .9; }
.top-site-icon .tsi-hz-ghost { opacity: .45; stroke-linecap: butt; stroke-dasharray: 1.6 .8; }
.top-site-icon .tsi-hz-take { opacity: 0; stroke-dasharray: 1 1; stroke-dashoffset: 1; }
.top-site-icon .tsi-cup-glint { opacity: .85; }
.top-site-icon .tsi-garden-drift { opacity: 0; fill: var(--tsi-bloom); stroke: var(--tsi-bloom); stroke-width: .6; }

.top-site-icon :is(.tsi-shop-awning, .tsi-shop-glow, .tsi-shop-door, .tsi-deng-needle,
  .tsi-hz-caret, .tsi-cup-head, .tsi-cup-beak, .tsi-garden-leaf-l, .tsi-garden-leaf-r,
  .tsi-garden-petal-l, .tsi-garden-petal-r, .tsi-garden-stamen, .tsi-garden-drift) { transform-box: view-box; }
.top-site-icon .tsi-shop-awning { transform-origin: 8px 2.6px; }
.top-site-icon .tsi-shop-glow { transform-origin: 9.6px 11.6px; }
.top-site-icon .tsi-deng-needle { transform-origin: 8px 9.6px; }
.top-site-icon .tsi-cup-head { transform-origin: 12.6px 8.5px; }
.top-site-icon .tsi-cup-beak { transform-origin: 10.4px 4.1px; }
.top-site-icon .tsi-garden-leaf-l { transform-origin: 8px 13.4px; }
.top-site-icon .tsi-garden-leaf-r { transform-origin: 8px 12.8px; }
.top-site-icon :is(.tsi-garden-petal-l, .tsi-garden-petal-r) { transform-origin: 8px 9.6px; }
.top-site-icon .tsi-garden-stamen { transform-origin: 8px 8px; }
.top-site-icon .tsi-garden-drift { transform-origin: 12.15px 5.2px; }

@media (prefers-reduced-motion: no-preference) and (forced-colors: none) {
  .top-site-link:focus-visible { --tsi-go: ; }
  @media (hover: hover) {
    .top-site-link:hover { --tsi-go: ; }
  }

  .top-site-icon .tsi-shop-awning { animation: var(--tsi-go) tsi-shop-awning var(--tsi-dur) ease-in-out; }
  .top-site-icon .tsi-shop-door { animation: var(--tsi-go) tsi-shop-door var(--tsi-dur) cubic-bezier(.45, 0, .25, 1); }
  .top-site-icon .tsi-shop-glow { animation: var(--tsi-go) tsi-shop-glow var(--tsi-dur) cubic-bezier(.45, 0, .25, 1); }
  .top-site-icon .tsi-deng-needle { animation: var(--tsi-go) tsi-deng-needle var(--tsi-dur) ease-in-out; }
  .top-site-icon .tsi-deng-trail { animation: var(--tsi-go) tsi-deng-trail var(--tsi-dur) ease-in-out; }
  .top-site-icon .tsi-hz-caret { animation: var(--tsi-go) tsi-hz-caret var(--tsi-dur) linear; }
  .top-site-icon .tsi-hz-take1 { animation: var(--tsi-go) tsi-hz-take1 var(--tsi-dur) linear; }
  .top-site-icon .tsi-hz-take2 { animation: var(--tsi-go) tsi-hz-take2 var(--tsi-dur) linear; }
  .top-site-icon .tsi-cup-head { animation: var(--tsi-go) tsi-cup-head var(--tsi-dur) ease-in-out; }
  .top-site-icon .tsi-cup-beak { animation: var(--tsi-go) tsi-cup-beak var(--tsi-dur) ease-in-out; }
  .top-site-icon .tsi-cup-glint { animation: var(--tsi-go) tsi-cup-glint var(--tsi-dur) ease-in-out; }
  .top-site-icon .tsi-garden-leaf-l { animation: var(--tsi-go) tsi-garden-leaf-l var(--tsi-dur) ease-in-out; }
  .top-site-icon .tsi-garden-leaf-r { animation: var(--tsi-go) tsi-garden-leaf-r var(--tsi-dur) ease-in-out; }
  .top-site-icon .tsi-garden-petal-l { animation: var(--tsi-go) tsi-garden-petal-l var(--tsi-dur) ease-in-out; }
  .top-site-icon .tsi-garden-petal-r { animation: var(--tsi-go) tsi-garden-petal-r var(--tsi-dur) ease-in-out; }
  .top-site-icon .tsi-garden-stamen { animation: var(--tsi-go) tsi-garden-stamen var(--tsi-dur) ease-in-out; }
  .top-site-icon .tsi-garden-drift { animation: var(--tsi-go) tsi-garden-drift var(--tsi-dur) ease-in-out; }

  /* Shop · 开张: awning flaps out (anchored on its top edge), door leaf slides to its hinge, doorway lights. */
  @keyframes tsi-shop-awning {
    0%, 66%, 100% { transform: scaleY(1); }
    12% { transform: scaleY(.8); }
    30% { transform: scaleY(1.14); }
    44% { transform: scaleY(.95); }
    56% { transform: scaleY(1.03); }
  }
  @keyframes tsi-shop-door {
    0%, 18%, 100% { transform: translateX(0); }
    38%, 72% { transform: translateX(-2.4px); }
  }
  @keyframes tsi-shop-glow {
    0%, 18%, 100% { opacity: 0; transform: scaleX(0); }
    38%, 72% { opacity: .55; transform: scaleX(.75); }
  }

  /* Speed · 加速: one dip, a rev to the red line, a shiver on it, then back to idle. The trail
     shares every stop and easing with the needle, so its head stays under the needle tip. */
  @keyframes tsi-deng-needle {
    0% { transform: rotate(0deg); }
    8% { transform: rotate(-10deg); animation-timing-function: cubic-bezier(.55, 0, .25, 1); }
    36% { transform: rotate(236deg); }
    42% { transform: rotate(222deg); }
    48% { transform: rotate(232deg); }
    54% { transform: rotate(225deg); }
    60% { transform: rotate(230deg); }
    68% { transform: rotate(228deg); animation-timing-function: cubic-bezier(.5, 0, .3, 1); }
    100% { transform: rotate(0deg); }
  }
  @keyframes tsi-deng-trail {
    0% { opacity: 0; stroke-dashoffset: 100; }
    8% { opacity: 0; stroke-dashoffset: 100; animation-timing-function: cubic-bezier(.55, 0, .25, 1); }
    12% { opacity: 1; }
    36% { stroke-dashoffset: 3.75; }
    42% { stroke-dashoffset: 9.6; }
    48% { stroke-dashoffset: 5.4; }
    54% { stroke-dashoffset: 8.3; }
    60% { stroke-dashoffset: 6.25; }
    68% { opacity: 1; stroke-dashoffset: 7.1; animation-timing-function: cubic-bezier(.5, 0, .3, 1); }
    100% { opacity: 0; stroke-dashoffset: 100; }
  }

  /* HuiZiGe · 灰字补全: caret blinks, glides across the gray words while they turn solid, blinks, resets. */
  @keyframes tsi-hz-caret {
    0% { transform: translateX(0); opacity: 1; animation-timing-function: steps(1, end); }
    6% { opacity: 0; animation-timing-function: steps(1, end); }
    12% { transform: translateX(0); opacity: 1; animation-timing-function: cubic-bezier(.45, 0, .25, 1); }
    40% { transform: translateX(4.3px); opacity: 1; animation-timing-function: steps(1, end); }
    56% { opacity: 0; animation-timing-function: steps(1, end); }
    64% { opacity: 1; animation-timing-function: steps(1, end); }
    72% { opacity: 0; animation-timing-function: steps(1, end); }
    80% { transform: translateX(4.3px); opacity: 1; animation-timing-function: cubic-bezier(.5, 0, .4, 1); }
    100% { transform: translateX(0); opacity: 1; }
  }
  @keyframes tsi-hz-take1 {
    0%, 12% { opacity: 0; stroke-dashoffset: 1; animation-timing-function: cubic-bezier(.45, 0, .25, 1); }
    14% { opacity: 1; }
    40% { stroke-dashoffset: 0; }
    82% { opacity: 1; }
    100% { opacity: 0; stroke-dashoffset: 0; }
  }
  @keyframes tsi-hz-take2 {
    0%, 34% { opacity: 0; stroke-dashoffset: 1; animation-timing-function: cubic-bezier(.45, 0, .25, 1); }
    36% { opacity: 1; }
    58% { stroke-dashoffset: 0; }
    82% { opacity: 1; }
    100% { opacity: 0; stroke-dashoffset: 0; }
  }

  /* Pelican Cup · 夺杯: the head bobs up, the beak snaps open twice over the pouch-cup, the cup glints. */
  @keyframes tsi-cup-head {
    0%, 100% { transform: translateY(0); }
    10% { transform: translateY(.35px); }
    26%, 50% { transform: translateY(-.7px); }
    66% { transform: translateY(0); }
  }
  @keyframes tsi-cup-beak {
    0%, 60%, 100% { transform: rotate(0deg); }
    10% { transform: rotate(-3deg); }
    24% { transform: rotate(17deg); }
    34% { transform: rotate(1deg); }
    44% { transform: rotate(13deg); }
  }
  @keyframes tsi-cup-glint {
    0%, 36%, 76%, 100% { opacity: .85; stroke-width: 1.4; }
    52% { opacity: 1; stroke-width: 2.3; }
  }

  /* CC Garden · 花开: leaves sway (right one a beat later), the tulip opens and blushes, a petal drifts off. */
  @keyframes tsi-garden-leaf-l {
    0%, 76%, 100% { transform: rotate(0deg); }
    18% { transform: rotate(-12deg); }
    40% { transform: rotate(5deg); }
    60% { transform: rotate(-3deg); }
  }
  @keyframes tsi-garden-leaf-r {
    0%, 6%, 80%, 100% { transform: rotate(0deg); }
    24% { transform: rotate(12deg); }
    46% { transform: rotate(-5deg); }
    64% { transform: rotate(3deg); }
  }
  @keyframes tsi-garden-petal-l {
    0%, 14% { transform: rotate(0deg); stroke: var(--tsi-accent); animation-timing-function: cubic-bezier(.3, .7, .2, 1.1); }
    38% { transform: rotate(-20deg); stroke: var(--tsi-bloom); }
    70% { transform: rotate(-15deg); stroke: var(--tsi-bloom); animation-timing-function: cubic-bezier(.5, 0, .4, 1); }
    100% { transform: rotate(0deg); stroke: var(--tsi-accent); }
  }
  @keyframes tsi-garden-petal-r {
    0%, 14% { transform: rotate(0deg); stroke: var(--tsi-accent); animation-timing-function: cubic-bezier(.3, .7, .2, 1.1); }
    38% { transform: rotate(20deg); stroke: var(--tsi-bloom); }
    70% { transform: rotate(15deg); stroke: var(--tsi-bloom); animation-timing-function: cubic-bezier(.5, 0, .4, 1); }
    100% { transform: rotate(0deg); stroke: var(--tsi-accent); }
  }
  @keyframes tsi-garden-stamen {
    0%, 14%, 100% { transform: scaleY(1); }
    38%, 70% { transform: scaleY(1.45); }
  }
  @keyframes tsi-garden-drift {
    0%, 30% { opacity: 0; transform: translate(0, 0) rotate(0deg); }
    38% { opacity: 1; transform: translate(.3px, .2px) rotate(10deg); }
    92% { opacity: 0; transform: translate(1.6px, 7px) rotate(120deg); }
    100% { opacity: 0; transform: translate(0, 0) rotate(0deg); }
  }
}

/* Touch-only screens: a press pose while the finger is down (Android; iOS when the page has a
   touch listener). Transforms of parts that are already visible — nothing appears or hides. */
@media (hover: none) and (prefers-reduced-motion: no-preference) and (forced-colors: none) {
  .top-site-icon :is(.tsi-shop-awning, .tsi-shop-door, .tsi-deng-needle,
    .tsi-hz-caret, .tsi-cup-head, .tsi-cup-beak, .tsi-garden-petal-l, .tsi-garden-petal-r) {
    transition: transform .16s cubic-bezier(.2, .7, .2, 1);
  }
  .top-site-link:active .tsi-shop-awning { transform: scaleY(1.12); }
  .top-site-link:active .tsi-shop-door { transform: translateX(-2.4px); }
  .top-site-link:active .tsi-deng-needle { transform: rotate(230deg); }
  .top-site-link:active .tsi-hz-caret { transform: translateX(4.3px); }
  .top-site-link:active .tsi-cup-head { transform: translateY(-.7px); }
  .top-site-link:active .tsi-cup-beak { transform: rotate(16deg); }
  .top-site-link:active .tsi-garden-petal-l { transform: rotate(-20deg); }
  .top-site-link:active .tsi-garden-petal-r { transform: rotate(20deg); }
}

@media (forced-colors: active) {
  .top-site-icon .tsi-a { stroke: currentColor; }
  .top-site-icon :is(.tsi-af, .tsi-f, .tsi-gemini-twin) { fill: currentColor; }
  .top-site-icon :is(.tsi-hz-ghost, .tsi-cup-glint) { opacity: 1; }
}

/* Gemini IQ shell and published-data states. Board and chart rules are shared with Codex Radar. */
.iq-masthead{border-bottom:1px solid var(--line)}
.iq-masthead-inner{display:flex;justify-content:space-between;align-items:center;min-height:var(--nav-h);padding-bottom:0;gap:12px}
.iq-brand{color:var(--text);font-weight:700}
.iq-masthead-tools{display:flex;align-items:center;gap:14px;font:var(--fs-xs)/1.4 var(--font-mono)}
.iq-masthead-tools button{border:1px solid var(--line);border-radius:var(--r-md);padding:4px 8px;background:var(--surface)}
.radar-nav .radar-nav-frame.shell{width:calc(min(var(--shell),100% - 2 * var(--gutter)) + 2 * var(--rn-pad));margin-inline:auto;padding-bottom:0}
.radar-nav .radar-nav-item[aria-current=page]{color:var(--accent);box-shadow:inset 0 -2px var(--accent);font-weight:700}
:root[data-station-active] .home-station-page .station-page-head>h1{grid-column:1;margin:0;font-size:clamp(20px,.6vw + 15px,24px);line-height:1.25;color:var(--text);font-weight:var(--w-bold);letter-spacing:.01em}
#main.ru-main:focus-visible{outline:none}
.iq-footer{border-top:1px solid var(--line);padding-top:16px;color:var(--text-2);font:var(--fs-xs)/1.5 var(--font-mono)}
.cir-unmeasured>strong{font-size:12px;text-align:center;white-space:normal}
.iq-detail-values{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:6px 16px;margin:0 0 16px;font-size:13px}
.iq-detail-values dt{color:var(--cir-muted)}
.iq-detail-values dd{margin:0;text-align:right;font-variant-numeric:tabular-nums}
.iq-source-text{font-size:12px;line-height:1.7;overflow-wrap:anywhere}
.iq-source-text summary{cursor:pointer;color:var(--cir-accent)}
.iq-visual-unavailable{display:grid;place-items:center;aspect-ratio:8/5;background:var(--cir-surface);color:var(--cir-muted);border-bottom:1px solid var(--cir-line);padding:6px;text-align:center;font-size:12px}
.cir-art-card .cir-card-effort{font-weight:600;color:var(--text)}
.cir-additional a{color:var(--cir-accent)}
.iq-batch-counts{display:flex;flex-wrap:wrap;gap:4px 16px;margin-bottom:10px}
.iq-missing-metric{color:inherit}
.iq-dialog-source{margin-top:12px}
.mtr-table-scroll[tabindex]:focus-visible{outline-offset:0}
@media(max-width:640px){.cir-table .cir-unmeasured>strong{font-size:12px}.iq-detail-values{gap:4px 8px}.iq-masthead-tools button{min-height:36px}}
