/* ============================================================
   ColdSignal 冷鉴局 — Floodlit Bureau
   Design system: night-pitch atmosphere / dossier surfaces
   Pure static CSS. No framework. No build step.
   ============================================================ */

/* ---------- Fonts (all bundled, libre-licensed) ---------- */
/* TeX Gyre Heros Cn — GUST Font License. Condensed grotesque, stadium signage voice. */
@font-face {
  font-family: "Heros Cn";
  src: url("fonts/heros-cn-regular.woff") format("woff");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Heros Cn";
  src: url("fonts/heros-cn-bold.woff") format("woff");
  font-weight: 700; font-style: normal; font-display: swap;
}
/* TeX Gyre Schola — GUST Font License. Century Schoolbook lineage: courtroom print. */
@font-face {
  font-family: "Schola";
  src: url("fonts/schola-regular.woff") format("woff");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Schola";
  src: url("fonts/schola-bold.woff") format("woff");
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Schola";
  src: url("fonts/schola-italic.woff") format("woff");
  font-weight: 400; font-style: italic; font-display: swap;
}
/* Noto Sans Mono — SIL OFL. Case numbers, kickoff clocks, data labels. */
@font-face {
  font-family: "Noto Mono CS";
  src: url("fonts/noto-mono-regular.woff") format("woff");
  font-weight: 400; font-style: normal; font-display: swap;
}
/* Noto Serif SC subset — SIL OFL. Chinese verdict prose. Generated at package time. */
@font-face {
  font-family: "Verdict Serif SC";
  src: url("fonts/noto-serif-sc-regular.woff") format("woff");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Verdict Serif SC";
  src: url("fonts/noto-serif-sc-bold.woff") format("woff");
  font-weight: 700; font-style: normal; font-display: swap;
}

/* ---------- Design tokens ---------- */
:root {
  color-scheme: dark;

  /* Night pitch */
  --pitch-950: #0A0F0C;
  --pitch-900: #0D1411;
  --pitch-850: #101813;
  --pitch-800: #131C16;
  --pitch-700: #17221B;
  --pitch-600: #1D2A22;
  --pitch-500: #253429;

  /* Chalk lines */
  --line-100: #EAE6DA;
  --line-200: #D8D4C6;
  --line-300: #B9B6A8;
  --line-500: #85857A;
  --line-700: #46514A;
  --line-800: #2C3630;

  /* Signals */
  --ice: #8FD6C6;
  --ice-bright: #AEEADC;
  --ice-dim: #549586;
  --amber: #D9A05B;
  --amber-bright: #E8BC82;
  --amber-deep: #A66F35;
  --ember: #C4694F;

  /* Per-fixture team duotone (overridden inline by JS) */
  --team-a: #8FD6C6;
  --team-a-deep: #2C4E46;
  --team-b: #D9A05B;
  --team-b-deep: #4E3A22;

  /* Type */
  --font-display: "Heros Cn", "PingFang SC", "HarmonyOS Sans SC", "MiSans", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
  --font-serif: "Schola", "Verdict Serif SC", "Songti SC", "Noto Serif CJK SC", "SimSun", serif;
  --font-ui: -apple-system, "SF Pro Text", "PingFang SC", "HarmonyOS Sans SC", "MiSans", "Microsoft YaHei", "Noto Sans CJK SC", "Segoe UI", sans-serif;
  --font-mono: "Noto Mono CS", ui-monospace, "SF Mono", Consolas, "PingFang SC", "Microsoft YaHei", monospace;

  /* Type scale (fluid) */
  --fs-hero:   clamp(2.6rem, 1.2rem + 6.2vw, 5.6rem);
  --fs-score:  clamp(2.1rem, 1.1rem + 4.4vw, 4.2rem);
  --fs-title:  clamp(1.45rem, 1.05rem + 1.8vw, 2.3rem);
  --fs-lead:   clamp(1.06rem, 0.98rem + 0.45vw, 1.28rem);
  --fs-body:   clamp(0.95rem, 0.9rem + 0.25vw, 1.05rem);
  --fs-small:  0.85rem;
  --fs-micro:  0.72rem;

  /* Space */
  --sp-1: 0.25rem; --sp-2: 0.5rem; --sp-3: 0.75rem; --sp-4: 1rem;
  --sp-5: 1.5rem; --sp-6: 2rem; --sp-7: 3rem; --sp-8: 4.5rem;
  --rail-pad: clamp(1rem, 4vw, 3rem);

  /* Motion */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-swing: cubic-bezier(0.34, 1.3, 0.4, 1);
  --dur-1: 180ms;
  --dur-2: 340ms;
  --dur-3: 700ms;

  /* Depth */
  --shadow-1: 0 1px 0 rgba(234,230,218,0.04) inset, 0 8px 24px rgba(0,0,0,0.35);
  --shadow-2: 0 1px 0 rgba(234,230,218,0.05) inset, 0 18px 48px rgba(0,0,0,0.5);
  --hairline: 1px solid var(--line-800);
}

/* ---------- Reset & defense ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
html, body { overflow-x: clip; }
body {
  min-height: 100dvh;
  font-family: var(--font-ui);
  font-size: var(--fs-body);
  line-height: 1.6;
  color: var(--line-100);
  background-color: var(--pitch-900);
  background-image:
    radial-gradient(120vmax 70vmax at 78% -18%, rgba(143,214,198,0.055), transparent 55%),
    radial-gradient(90vmax 60vmax at -12% 8%, rgba(217,160,91,0.04), transparent 52%),
    linear-gradient(168deg, var(--pitch-850) 0%, var(--pitch-900) 42%, var(--pitch-950) 100%);
  background-attachment: fixed;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
img, svg, video { display: block; max-width: 100%; }
.poster {
  display: block;
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #0A0F0C;
}
.poster--bitmap .poster-img,
.poster--bitmap .poster-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.poster--bitmap .poster-img {
  max-width: none;
  object-fit: cover;
  object-position: var(--poster-position, center center);
}
.poster--bitmap .poster-overlay {
  z-index: 1;
  pointer-events: none;
}
svg.poster { overflow: hidden; }
button, input, select { font: inherit; color: inherit; }
a { color: inherit; }
p, h1, h2, h3, h4, li, dt, dd { overflow-wrap: break-word; }
:focus-visible { outline: 2px solid var(--ice); outline-offset: 2px; border-radius: 2px; }
::selection { background: var(--ice-dim); color: var(--pitch-950); }

/* Grain overlay — one fixed layer, cheap on mobile */
.grain {
  position: fixed; inset: 0; z-index: 40;
  pointer-events: none;
  background: url("assets/noise.png") repeat;
  background-size: 96px 96px;
  opacity: 0.05;
}

/* ---------- Utility voices ---------- */
.v-display {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 0.98;
  text-transform: uppercase;
}
.v-mono {
  font-family: var(--font-mono);
  font-size: var(--fs-micro);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--line-500);
}
.v-serif { font-family: var(--font-serif); }

.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  margin: -1px; padding: 0; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ============================================================
   Chrome: header / nav / footer
   ============================================================ */
.desk-header {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; gap: var(--sp-5);
  padding: 0 var(--rail-pad);
  min-height: 64px;
  background: color-mix(in srgb, var(--pitch-900) 82%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: var(--hairline);
}
.wordmark { display: flex; align-items: center; gap: 12px; text-decoration: none; min-width: 0; }
.wordmark-seal { width: 30px; height: 30px; color: var(--ice); flex: none; }
.wordmark-text { display: flex; flex-direction: column; line-height: 1.05; }
.wordmark-zh { font-weight: 700; font-size: 1.06rem; letter-spacing: 0.32em; }
.wordmark-en { font-size: 0.66rem; letter-spacing: 0.42em; color: var(--line-500); }
.desk-nav { display: flex; gap: clamp(0.6rem, 2.5vw, 2rem); margin-left: auto; }
.desk-nav a {
  display: flex; flex-direction: column; align-items: center; gap: 1px;
  text-decoration: none; padding: 10px 4px 8px;
  border-bottom: 2px solid transparent;
  transition: border-color var(--dur-1) var(--ease-out);
}
.desk-nav .nav-zh { font-size: 0.94rem; letter-spacing: 0.14em; color: var(--line-300); }
.desk-nav .nav-en { font-size: 0.58rem; }
.desk-nav a.is-active { border-bottom-color: var(--ice); }
.desk-nav a.is-active .nav-zh { color: var(--line-100); }
.desk-nav a:hover .nav-zh { color: var(--line-100); }
.lang-toggle {
  border: 1px solid var(--line-700); background: none; cursor: pointer;
  font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.16em;
  color: var(--line-300); padding: 7px 13px; border-radius: 3px;
  min-height: 34px;
  transition: color var(--dur-1), border-color var(--dur-1);
}
.lang-toggle:hover { color: var(--ice); border-color: var(--ice-dim); }

main { display: block; min-height: 62vh; outline: none; }

.desk-footer { border-top: var(--hairline); margin-top: var(--sp-8); }
.desk-footer-inner {
  padding: var(--sp-6) var(--rail-pad) calc(var(--sp-6) + env(safe-area-inset-bottom));
  display: flex; flex-direction: column; gap: var(--sp-2);
}
.footer-disclaimer { color: var(--line-500); font-size: var(--fs-small); max-width: 62ch; }

/* ============================================================
   Shared: lane heads, chips, stamps, buttons, instruments
   ============================================================ */
.lane-head { display: flex; align-items: baseline; gap: 8px; margin-bottom: var(--sp-4); }
.lane-head small { text-transform: none; letter-spacing: 0.06em; color: var(--line-700); font-size: 0.68rem; }
.lane-head::before {
  content: ""; width: 22px; height: 2px; background: var(--ice); align-self: center; flex: none;
}

.chip {
  display: inline-flex; align-items: center; gap: 5px;
  font-family: var(--font-mono); font-size: 0.64rem; letter-spacing: 0.12em; text-transform: uppercase;
  border: 1px solid var(--line-700); border-radius: 2px;
  padding: 3px 8px; color: var(--line-300); white-space: nowrap;
}
.chip-near { color: var(--amber-bright); border-color: var(--amber-deep); }
.chip-near::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--amber); animation: pulse 2s infinite; }
.chip-live-lock { color: var(--ember); border-color: var(--ember); }
.chip-pending { color: var(--line-300); border-style: dashed; }
.chip-archived { color: var(--line-500); }
.chip-datareview { color: var(--ice); border-color: var(--ice-dim); border-style: dashed; }
.chip-tag-primary { color: var(--ice); border-color: var(--ice-dim); }
.chip-tag-surprise { color: var(--amber-bright); border-color: var(--amber-deep); }
.chip-tag-wide { color: var(--line-200); }

.stamp {
  display: inline-block; transform: rotate(-4deg);
  font-family: var(--font-display); font-weight: 700; text-transform: uppercase;
  font-size: 1.05rem; letter-spacing: 0.18em;
  border: 2.5px solid currentColor; border-radius: 4px;
  padding: 6px 14px 5px;
  -webkit-mask-image: url("assets/noise.png");
  mask-image: url("assets/noise.png");
  -webkit-mask-size: 96px; mask-size: 96px;
}
.stamp-hit { color: var(--ice); }
.stamp-part { color: var(--amber); }
.stamp-miss { color: var(--ember); }
.stamp-pending { color: var(--line-500); transform: rotate(-2deg); border-style: dashed; }

.btn-dossier {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-display); font-weight: 700; text-transform: uppercase;
  font-size: 0.95rem; letter-spacing: 0.14em;
  color: var(--line-100); text-decoration: none;
  border: 1px solid var(--line-700); border-radius: 3px;
  padding: 13px 22px; min-height: 44px;
  position: relative; overflow: hidden; isolation: isolate;
  transition: color var(--dur-2) var(--ease-out), border-color var(--dur-2);
}
.btn-dossier::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(100deg, var(--team-a-deep, var(--pitch-600)), var(--team-b-deep, var(--pitch-600)));
  transform: translateX(-101%);
  transition: transform var(--dur-2) var(--ease-out);
}
.btn-dossier:hover { border-color: var(--line-500); }
.btn-dossier:hover::before { transform: translateX(0); }
.btn-ghost { border-style: dashed; color: var(--line-300); }

.inst { width: 100%; max-width: 240px; height: auto; display: block; }
.inst-seal { max-width: 84px; }
.inst-code, .inst-seal-mark { font-family: var(--font-mono); font-size: 15px; letter-spacing: 0.08em; }
.inst-seal-mark { font-size: 20px; }

/* ============================================================
   Board: stage + queue + pending lane
   ============================================================ */
.board {
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(300px, 28vw, 420px);
  gap: var(--sp-6);
  padding: var(--sp-6) var(--rail-pad) 0;
  align-items: start;
}
.stage {
  position: relative; display: grid;
  grid-template-columns: minmax(0, 0.96fr) minmax(0, 1fr);
  border: var(--hairline); border-radius: 6px; overflow: hidden;
  background:
    linear-gradient(120deg, color-mix(in srgb, var(--team-a-deep, #16211B) 55%, var(--pitch-850)) 0%, var(--pitch-900) 46%, color-mix(in srgb, var(--team-b-deep, #16211B) 45%, var(--pitch-900)) 100%);
  box-shadow: var(--shadow-2);
  min-height: min(78vh, 860px);
}
.stage-poster { order: 2; position: relative; min-height: 100%; }
.stage-poster .poster { position: absolute; inset: 0; width: 100%; height: 100%; }
.stage-poster::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, var(--pitch-900) 0%, transparent 22%);
  pointer-events: none;
}
.stage-panel {
  order: 1; position: relative; z-index: 2; min-width: 0;
  padding: clamp(1.2rem, 3vw, 2.6rem);
  display: flex; flex-direction: column; gap: var(--sp-4);
  justify-content: center;
}
.stage-kicker { color: var(--ice); }
.stage-title { font-size: var(--fs-hero); margin: 0; }
.stage-title .stage-vs {
  display: block; font-size: 0.32em; color: var(--line-500);
  letter-spacing: 0.5em; margin: 0.12em 0 0.1em 0.1em;
}
.stage-team { display: block; }
.stage-team-a { color: var(--team-a-light, var(--line-100)); }
.stage-team-b { color: var(--team-b-light, var(--line-100)); }
.stage-meta { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.stage-count { display: flex; align-items: baseline; gap: 10px; color: var(--line-500); }
.countdown { display: inline-flex; gap: 8px; }
.cd-seg b { font-family: var(--font-display); font-size: 1.5rem; color: var(--line-100); font-weight: 700; }
.cd-seg i { font-style: normal; font-size: 0.66rem; color: var(--line-500); margin-left: 2px; }
.stage-verdict {
  font-size: var(--fs-lead); line-height: 1.75;
  border-left: 2px solid var(--team-a, var(--ice));
  padding-left: 14px; max-width: 58ch;
}
.stage-scorelines { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.stage-scorelines .sl-row { border: 1px solid var(--line-800); border-radius: 4px; padding: 7px 11px; background: color-mix(in srgb, var(--pitch-800) 72%, transparent); }
.stage-scorelines .sl-main { display: flex; align-items: center; gap: 8px; }
.stage-scorelines .sl-score { font-size: 1.3rem; }
.stage-scorelines .sl-team { font-family: var(--font-mono); font-size: 0.62rem; letter-spacing: 0.1em; color: var(--line-500); }
.stage-scorelines .sl-lead { color: var(--line-100); }
.stage-signals { display: flex; flex-wrap: wrap; gap: var(--sp-5) var(--sp-6); align-items: end; }
.stage-signal { display: flex; flex-direction: column; gap: 6px; }
.stage-signal .inst { max-width: 150px; }
.stage-signal .inst-seal { max-width: 56px; }
.stage-signal > span { font-size: 0.6rem; }
.stage .btn-dossier { align-self: flex-start; }

/* queue rail */
.queue { display: flex; flex-direction: column; gap: var(--sp-4); min-width: 0; }
.queue-item {
  position: relative; display: grid; grid-template-columns: 132px minmax(0, 1fr);
  gap: 0; text-decoration: none; border: var(--hairline); border-radius: 5px;
  overflow: hidden; background: var(--pitch-850);
  transition: transform var(--dur-2) var(--ease-out), box-shadow var(--dur-2), border-color var(--dur-2);
}
.queue-item:hover { transform: translateY(-3px); box-shadow: var(--shadow-2); border-color: var(--line-700); }
.queue-poster { position: relative; min-height: 108px; }
.queue-poster .poster { position: absolute; inset: 0; width: 100%; height: 100%; transition: transform var(--dur-3) var(--ease-out); }
.queue-item:hover .queue-poster .poster { transform: scale(1.05); }
.queue-info { padding: 12px 14px; display: flex; flex-direction: column; gap: 5px; justify-content: center; min-width: 0; }
.queue-names { font-weight: 600; font-size: 0.98rem; color: var(--line-100); }
.queue-names i { font-style: normal; color: var(--line-500); font-size: 0.8em; padding: 0 2px; }
.queue-meta { font-size: 0.62rem; }
.queue-call { font-size: 0.62rem; color: var(--line-300); }
.queue-score { font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; color: var(--ice); letter-spacing: 0.06em; }
.queue-pulse {
  position: absolute; top: 10px; right: 10px; width: 8px; height: 8px; border-radius: 50%;
  background: var(--amber); box-shadow: 0 0 0 0 rgba(217,160,91,0.5);
  animation: pulse 2s infinite;
}

/* pending lane + empty state */
.pending-lane { grid-column: 1 / -1; padding-top: var(--sp-5); }
.pending-items { display: flex; flex-wrap: wrap; gap: var(--sp-3); }
.pending-item {
  display: inline-flex; align-items: center; gap: 14px;
  border: 1px dashed var(--line-700); border-radius: 4px;
  padding: 10px 16px; text-decoration: none; color: var(--line-300);
  transition: border-color var(--dur-1), color var(--dur-1);
}
.pending-item:hover { border-color: var(--line-500); color: var(--line-100); }
.pending-names { font-size: 0.9rem; }
.board-empty { padding: var(--sp-8) var(--rail-pad); text-align: center; display: flex; flex-direction: column; gap: var(--sp-5); align-items: center; }
.board-empty p { font-size: var(--fs-lead); color: var(--line-300); }

/* ============================================================
   Dossier (match detail)
   ============================================================ */
.dossier { display: flex; flex-direction: column; }
.dossier-hero { position: relative; min-height: clamp(320px, 46vh, 520px); overflow: hidden; border-bottom: var(--hairline); }
.dossier-poster { position: absolute; inset: 0; }
.dossier-poster .poster { width: 100%; height: 100%; }
.dossier-hero-panel {
  position: relative; z-index: 2;
  display: flex; flex-direction: column; justify-content: flex-end; gap: 10px;
  min-height: inherit; padding: var(--sp-5) var(--rail-pad) var(--sp-6);
  background: linear-gradient(180deg, transparent 0%, rgba(10,15,12,0.42) 46%, rgba(10,15,12,0.92) 100%);
}
.back-link { color: var(--line-300); text-decoration: none; margin-bottom: auto; padding-top: var(--sp-4); }
.back-link:hover { color: var(--ice); }
.dossier-file { color: var(--ice); display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.dossier-title { font-size: clamp(2rem, 1rem + 4.6vw, 4.4rem); margin: 0; }
.dossier-title span { color: var(--line-500); font-size: 0.4em; letter-spacing: 0.4em; padding: 0 0.4em; }
.dossier-meta { color: var(--line-300); }

.dossier > section { padding: var(--sp-7) var(--rail-pad) 0; max-width: 1060px; width: 100%; margin: 0 auto; }
.dossier-verdict .verdict-text {
  font-size: clamp(1.15rem, 1rem + 0.9vw, 1.5rem); line-height: 1.85;
  border-left: 3px solid var(--team-a, var(--ice)); padding-left: clamp(14px, 2.5vw, 26px);
  max-width: 66ch;
}
.verdict-fresh { margin-top: var(--sp-4); color: var(--line-700); }

.sl-list { list-style: none; padding: 0; display: flex; flex-direction: column; gap: var(--sp-3); }
.sl-list .sl-row {
  border: var(--hairline); border-radius: 6px; padding: clamp(14px, 2.4vw, 22px);
  background: var(--pitch-850);
  display: flex; flex-direction: column; gap: 8px;
}
.sl-list .sl-primary { border-color: var(--ice-dim); background: linear-gradient(120deg, color-mix(in srgb, var(--team-a-deep, #16211B) 36%, var(--pitch-850)), var(--pitch-850) 55%); }
.sl-list .sl-main { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.sl-list .sl-score { font-size: clamp(1.9rem, 1.2rem + 2.4vw, 3rem); }
.sl-list .sl-score i { font-style: normal; color: var(--line-500); padding: 0 0.05em; }
.sl-list .sl-team { font-family: var(--font-mono); font-size: 0.8rem; letter-spacing: 0.14em; color: var(--line-500); }
.sl-list .sl-lead { color: var(--line-100); }
.sl-reason { color: var(--line-300); max-width: 70ch; }

.dossier-advance .advance-seal-frame {
  border: 2px dashed var(--amber-deep); border-radius: 8px;
  padding: clamp(18px, 3vw, 30px);
  background:
    radial-gradient(90% 140% at 8% 0%, color-mix(in srgb, var(--amber-deep) 12%, transparent), transparent 60%),
    var(--pitch-850);
  display: flex; flex-direction: column; gap: 8px;
}
.advance-lean { font-size: clamp(1.8rem, 1.2rem + 2.4vw, 3rem); color: var(--amber-bright); margin: 0; }
.advance-strength { color: var(--amber); }
.advance-note { color: var(--line-200); max-width: 66ch; line-height: 1.8; }

.signal-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--sp-4); }
.signal-card {
  border: var(--hairline); border-radius: 6px; background: var(--pitch-850);
  padding: clamp(14px, 2.2vw, 22px); display: flex; flex-direction: column; gap: 12px;
}
.signal-card header { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.signal-card h3 { color: var(--ice); font-size: 0.72rem; }
.signal-level { font-family: var(--font-mono); font-size: 0.68rem; color: var(--line-300); letter-spacing: 0.1em; }
.signal-card p { color: var(--line-300); font-size: var(--fs-small); line-height: 1.75; }

.evidence-list { display: flex; flex-direction: column; }
.evidence-item { border-bottom: var(--hairline); }
.evidence-item:first-child { border-top: var(--hairline); }
.evidence-item summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; gap: 12px;
  padding: 16px 4px; min-height: 44px;
  transition: color var(--dur-1);
}
.evidence-item summary::-webkit-details-marker { display: none; }
.evidence-item summary:hover .ev-name { color: var(--ice); }
.ev-name { font-weight: 600; letter-spacing: 0.06em; }
.ev-toggle { margin-left: auto; width: 14px; height: 14px; position: relative; flex: none; }
.ev-toggle::before, .ev-toggle::after {
  content: ""; position: absolute; background: var(--line-500); inset: 0; margin: auto;
  transition: transform var(--dur-2) var(--ease-out);
}
.ev-toggle::before { width: 14px; height: 1.6px; }
.ev-toggle::after { width: 1.6px; height: 14px; }
.evidence-item[open] .ev-toggle::after { transform: rotate(90deg); }
.ev-body { padding: 2px 4px 20px; color: var(--line-300); line-height: 1.8; max-width: 74ch; }
.evidence-item.is-datareview summary .ev-name { color: var(--ice-dim); }
.datareview-seal {
  display: flex; gap: 14px; align-items: flex-start;
  border: 1.5px dashed var(--ice-dim); border-radius: 6px; color: var(--ice);
  padding: 14px; margin-bottom: 14px; max-width: 74ch;
}
.datareview-seal svg { width: 34px; height: 34px; flex: none; }
.datareview-seal strong { letter-spacing: 0.08em; font-size: 0.9rem; }
.datareview-seal p { color: var(--ice-dim); font-size: var(--fs-small); margin-top: 4px; }

.dossier-archive .archive-compare { display: grid; grid-template-columns: 1.2fr 1fr; gap: var(--sp-4); }
.archive-col { border: var(--hairline); border-radius: 6px; padding: clamp(14px, 2.4vw, 22px); background: var(--pitch-850); }
.archive-original { border-style: dashed; position: relative; }
.archive-original::after {
  content: "SEALED"; position: absolute; top: 10px; right: 12px;
  font-family: var(--font-mono); font-size: 0.56rem; letter-spacing: 0.3em; color: var(--line-700);
}
.archive-col-head { margin-bottom: 10px; color: var(--line-500); }
.archive-frozen { color: var(--line-300); line-height: 1.8; font-size: var(--fs-small); }
.archive-score { font-size: 2.6rem; }
.archive-result .stamp { margin-top: 12px; }
.archive-review { margin-top: var(--sp-4); border-left: 2px solid var(--ice-dim); padding-left: 16px; }
.archive-review p { line-height: 1.85; max-width: 72ch; color: var(--line-200); }
.archive-review.is-pending { border-left-color: var(--line-700); color: var(--line-500); }

.dossier-foot { display: flex; gap: var(--sp-4); padding: var(--sp-7) var(--rail-pad) 0; max-width: 1060px; margin: 0 auto; width: 100%; flex-wrap: wrap; }

/* ============================================================
   Archive view
   ============================================================ */
.view-head { padding: var(--sp-7) var(--rail-pad) var(--sp-5); max-width: 1060px; margin: 0 auto; width: 100%; }
.view-title { font-size: clamp(2.2rem, 1.4rem + 3.4vw, 4rem); margin: 0 0 var(--sp-3); }
.view-note { color: var(--line-300); max-width: 60ch; font-size: var(--fs-lead); }
.archive-list { display: flex; flex-direction: column; gap: var(--sp-5); padding: 0 var(--rail-pad); max-width: 1060px; margin: 0 auto; width: 100%; }
.archive-card {
  display: grid; grid-template-columns: clamp(180px, 24vw, 300px) minmax(0, 1fr);
  border: var(--hairline); border-radius: 6px; overflow: hidden; background: var(--pitch-850);
}
.archive-poster { position: relative; min-height: 200px; }
.archive-poster .poster { position: absolute; inset: 0; width: 100%; height: 100%; }
.archive-body { padding: clamp(16px, 2.6vw, 26px); display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.archive-file { color: var(--line-500); }
.archive-names { font-size: clamp(1.2rem, 1rem + 1vw, 1.7rem); font-weight: 700; margin: 0; }
.archive-names i { font-style: normal; color: var(--line-500); font-size: 0.75em; }
.archive-grid { display: grid; grid-template-columns: 1fr 1fr auto; gap: var(--sp-4); align-items: center; }
.archive-cell { min-width: 0; }
.archive-call { display: flex; flex-direction: column; gap: 4px; }
.archive-call-score { font-size: 1.9rem; }
.archive-verdict-cell { justify-self: end; }
.archive-note summary { cursor: pointer; list-style: none; display: flex; align-items: center; gap: 10px; font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--line-500); padding: 8px 0; }
.archive-note summary::-webkit-details-marker { display: none; }
.archive-note p { padding: 6px 0 4px; color: var(--line-200); line-height: 1.8; }
.archive-note-pending { color: var(--line-500); }
.archive .btn-ghost { align-self: flex-start; }

/* ============================================================
   Method view
   ============================================================ */
.method-intro { font-size: var(--fs-lead); line-height: 1.9; }
.method-grid { display: flex; flex-direction: column; gap: var(--sp-7); padding: 0 var(--rail-pad); max-width: 760px; margin: 0 auto; width: 100%; }
.method-sec h2 { font-size: clamp(1.3rem, 1rem + 1.4vw, 1.9rem); margin-bottom: var(--sp-4); }
.method-sec p { color: var(--line-200); line-height: 1.95; font-size: 1.02rem; }
.method-sec { border-top: var(--hairline); padding-top: var(--sp-6); }
.method-inst { margin-bottom: var(--sp-4); }
.chalk { width: min(320px, 100%); height: auto; margin-bottom: var(--sp-4); }
.chalk-label { font-family: var(--font-mono); font-size: 13px; letter-spacing: 0.14em; fill: #85857A; }
.chalk-label.lit { fill: #EAE6DA; }
.chalk-label.big { font-size: 22px; fill: #D9A05B; }
.chalk-num { font-family: "Heros Cn", "TeX Gyre Heros Cn", sans-serif; font-weight: 700; font-size: 26px; fill: #85857A; }
.chalk-num.lit { fill: #8FD6C6; }
.method-boundary { border: 1.5px dashed var(--line-700); border-radius: 8px; padding: var(--sp-5); }
.method-boundary h2 { color: var(--line-300); }
.method-boundary p { color: var(--line-500); font-size: 0.95rem; }

/* ============================================================
   Motion
   ============================================================ */
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(217,160,91,0.45); } 70% { box-shadow: 0 0 0 9px rgba(217,160,91,0); } 100% { box-shadow: 0 0 0 0 rgba(217,160,91,0); } }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes beam-sweep { from { transform: translateX(-16%); opacity: 0; } 30% { opacity: 1; } to { transform: translateX(10%); opacity: 1; } }

.is-ready .stage-panel > * { animation: rise var(--dur-3) var(--ease-out) both; }
.is-ready .stage-panel > *:nth-child(2) { animation-delay: 60ms; }
.is-ready .stage-panel > *:nth-child(3) { animation-delay: 120ms; }
.is-ready .stage-panel > *:nth-child(4) { animation-delay: 180ms; }
.is-ready .stage-panel > *:nth-child(5) { animation-delay: 240ms; }
.is-ready .stage-panel > *:nth-child(6) { animation-delay: 300ms; }
.is-ready .stage-panel > *:nth-child(7) { animation-delay: 360ms; }
.is-ready .stage-panel > *:nth-child(8) { animation-delay: 420ms; }
.is-ready .poster-beam { animation: beam-sweep 1.8s var(--ease-out) both; animation-delay: 200ms; }
.is-ready .queue-item { animation: rise var(--dur-3) var(--ease-out) both; }
.is-ready .queue-item:nth-child(2) { animation-delay: 100ms; }
.is-ready .queue-item:nth-child(3) { animation-delay: 170ms; }
.is-ready .queue-item:nth-child(4) { animation-delay: 240ms; }
.is-ready .queue-item:nth-child(5) { animation-delay: 310ms; }
.is-ready .queue-item:nth-child(6) { animation-delay: 380ms; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1100px) {
  .board { grid-template-columns: 1fr; }
  .stage { min-height: 0; }
  .queue { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
}
@media (max-width: 760px) {
  .desk-header { gap: var(--sp-3); min-height: 56px; }
  .wordmark-en { display: none; }
  .wordmark-zh { font-size: 0.98rem; letter-spacing: 0.22em; }
  .desk-nav .nav-en { display: none; }
  .desk-nav a { padding: 8px 2px 6px; }
  .board { padding: 0; gap: var(--sp-5); }
  .stage { grid-template-columns: 1fr; border-left: none; border-right: none; border-radius: 0; }
  .stage-poster { order: 1; min-height: 58vh; }
  .stage-poster::after { background: linear-gradient(180deg, transparent 55%, var(--pitch-900) 96%); }
  .stage-panel { order: 2; margin-top: -16vh; padding: 0 var(--rail-pad) var(--sp-6); justify-content: flex-end; }
  .stage-title { font-size: clamp(2.4rem, 12vw, 3.4rem); }
  .stage-verdict { font-size: 1rem; }
  .stage-signal .inst { max-width: 128px; }
  .queue { grid-template-columns: 1fr; padding: 0 var(--rail-pad); }
  .pending-lane { padding: var(--sp-2) var(--rail-pad) 0; }
  .signal-cards { grid-template-columns: 1fr; }
  .dossier-archive .archive-compare { grid-template-columns: 1fr; }
  .archive-card { grid-template-columns: 1fr; }
  .archive-poster { min-height: 150px; }
  .archive-grid { grid-template-columns: 1fr 1fr; }
  .archive-verdict-cell { grid-column: 1 / -1; justify-self: start; }
  .dossier-hero { min-height: 54vh; }
}
@media (max-width: 420px) {
  :root { --rail-pad: 16px; }
  .stage-scorelines { gap: 6px; }
  .stage-scorelines .sl-row { padding: 6px 9px; }
  .stage-signals { gap: var(--sp-4); }
  .cd-seg b { font-size: 1.3rem; }
  .desk-nav { gap: 0.55rem; }
  .desk-nav .nav-zh { font-size: 0.86rem; letter-spacing: 0.08em; }
  .lang-toggle { padding: 6px 9px; }
}

/* v27 factual fixture gate */
.factual-seal { margin-top: var(--sp-4); max-width: 680px; }
.factual-only-block .datareview-seal { margin-bottom: var(--sp-4); }
.source-list { list-style: none; padding: 0; margin: var(--sp-4) 0 0; display: grid; gap: 10px; }
.source-list li { border-top: var(--hairline); padding-top: 10px; display: grid; gap: 4px; }
.source-list a { color: var(--ice); text-decoration: none; font-family: "Noto Sans Mono", "Noto Mono CS", monospace; font-size: 0.76rem; letter-spacing: 0.08em; text-transform: uppercase; }
.source-list span { color: var(--line-300); font-size: 0.92rem; }
