@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

/* The Detector Dial — shell, panel and controls */
:root {
  --ink: #1d1d1f;
  --muted: #6e6e73;
  --faint: #86868b;
  --line: #d2d2d7;
  --soft: rgba(0, 0, 0, 0.08);
  --surface: #ffffff;
  --alt: #f5f5f7;
  --blue: #005ea2;
  --blue-dark: #004785;
  --blue-soft: rgba(0, 94, 162, 0.08);
  --flag: #b42318;
  --flag-dark: #8f1b12;
  --flag-soft: rgba(180, 35, 24, 0.08);
  --el: #9a5800;
  --ok: #1a7f37;
  --radius: 16px;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  color-scheme: light;
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  background: var(--surface);
  color: var(--ink);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
}
button, input, textarea { font: inherit; color: inherit; }
p { margin: 0; }
h1, h2, h3 { margin: 0; }
b, strong { font-weight: 600; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
[hidden] { display: none !important; }

.app { display: flex; flex-direction: column; height: 100vh; height: 100dvh; overflow: hidden; }

/* ---------- Top bar ---------- */
.top {
  flex: none;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 10px 20px;
  border-bottom: 1px solid var(--soft);
  background: var(--surface);
}
.top-brand { flex: none; }
.top-eyebrow { font-size: 11px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--blue); }
.top-title { font-size: 19px; font-weight: 700; letter-spacing: -0.025em; line-height: 1.15; }
.top-nav { flex: 1; min-width: 0; display: flex; justify-content: center; }
.chap-list { position: relative; list-style: none; margin: 0; padding: 3px; display: flex; gap: 2px; background: var(--alt); border-radius: 999px; overflow-x: auto; scrollbar-width: none; }
.chap-list::-webkit-scrollbar { display: none; }
.chap-btn {
  display: flex; align-items: center; gap: 6px;
  border: 0; background: transparent; cursor: pointer;
  padding: 6px 12px; border-radius: 999px;
  font-size: 13px; font-weight: 500; color: var(--muted); white-space: nowrap;
  transition: background 0.15s ease, color 0.15s ease;
}
.chap-btn:hover { color: var(--ink); }
.chap-btn[aria-current="step"] { background: var(--surface); color: var(--ink); font-weight: 600; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1); }
.chap-num { font-variant-numeric: tabular-nums; font-weight: 600; color: var(--faint); }
.chap-btn[aria-current="step"] .chap-num { color: var(--blue); }
.top-actions { flex: none; display: flex; align-items: center; gap: 6px; }
.loophole-pill {
  font-size: 12px; font-weight: 600; color: var(--muted); background: transparent; cursor: pointer;
  min-height: 30px; padding: 5px 10px; border-radius: 999px; border: 1px dashed var(--line);
  white-space: nowrap; transition: color 0.2s, border-color 0.2s, background 0.2s;
}
.loophole-pill:hover { color: var(--ink); border-color: var(--faint); }
.loophole-pill.has-found { color: var(--blue); border-color: rgba(0, 94, 162, 0.4); background: var(--blue-soft); }
.loophole-pill.is-bump { animation: bump 0.4s var(--ease); }
@keyframes bump { 40% { transform: scale(1.12); } }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  border-radius: 999px; border: 1px solid transparent; cursor: pointer;
  padding: 8px 16px; font-size: 14px; font-weight: 500; text-decoration: none; line-height: 1.2;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, transform 0.15s ease;
}
.btn:active { transform: scale(0.98); }
.btn--primary { background: var(--blue); color: #fff; }
.btn--primary:hover { background: var(--blue-dark); }
.btn--quiet { background: transparent; color: var(--ink); border-color: var(--line); }
.btn--quiet:hover { background: var(--alt); }
.btn--small { padding: 5px 12px; font-size: 13px; }
.btn--choice { background: var(--surface); border-color: var(--line); color: var(--ink); text-align: left; justify-content: flex-start; border-radius: 12px; padding: 10px 14px; width: 100%; }
.btn--choice:hover { border-color: var(--blue); }
.btn--choice[aria-pressed="true"] { border-color: var(--blue); background: var(--blue-soft); color: var(--blue-dark); font-weight: 600; }

/* ---------- Switch ---------- */
.switch { display: inline-flex; align-items: center; gap: 8px; border: 0; background: transparent; cursor: pointer; font-size: 13px; font-weight: 500; color: var(--ink); padding: 4px 2px; border-radius: 8px; white-space: nowrap; }
.switch-track { width: 32px; height: 19px; border-radius: 999px; background: var(--line); position: relative; transition: background 0.18s ease; flex: none; }
.switch-thumb { position: absolute; top: 2px; left: 2px; width: 15px; height: 15px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.25); transition: transform 0.18s var(--ease); }
.switch[aria-pressed="true"] .switch-track { background: var(--blue); }
.switch[aria-pressed="true"] .switch-thumb { transform: translateX(13px); }

/* ---------- School view ---------- */
.view { flex: 1; min-height: 0; }
.view--school { display: grid; grid-template-columns: minmax(0, 1fr) 400px; }
.stage-wrap { display: flex; flex-direction: column; min-height: 0; min-width: 0; padding: 14px 20px 10px; }
.stage-head { flex: none; display: flex; flex-direction: column; gap: 8px; margin-bottom: 4px; }
.stage-head-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.stage-title { font-size: 15px; font-weight: 600; letter-spacing: -0.015em; margin-right: auto; }
.sim-chip {
  font-size: 12px; font-weight: 600; color: var(--el);
  background: rgba(154, 88, 0, 0.08); border: 1px solid rgba(154, 88, 0, 0.22);
  border-radius: 999px; padding: 3px 10px; cursor: pointer;
}
.sim-chip::after { content: ' · what’s real?'; font-weight: 500; }
.sim-chip:hover { background: rgba(154, 88, 0, 0.14); }
.stage { flex: 1; min-height: 0; position: relative; }
.stage-key { flex: none; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: 12px; color: var(--muted); padding-top: 4px; }
.stage-key .key { margin-left: 8px; }
.stage-key .key:first-child { margin-left: 0; }

.tally { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.tally-item { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; color: var(--muted); background: var(--alt); border-radius: 999px; padding: 4px 11px 4px 8px; }
.tally-item b { color: var(--ink); font-variant-numeric: tabular-nums; }
.tally-item[data-k="accused"] b { color: var(--flag); }
.tally-note { font-size: 12px; color: var(--muted); align-self: center; }

.key { display: inline-block; width: 13px; height: 13px; border-radius: 50%; flex: none; border: 1.5px solid #b9b9c0; background: #fff; }
.key--accused { background: var(--flag); border-color: var(--flag); }
.key--caught { background: var(--ink); border-color: var(--ink); border-radius: 3px; }
.key--slipped { border: 1.5px dashed var(--ink); border-radius: 3px; }
.key--flagged { background: #fbe9e7; border-color: var(--flag); }
.key--sq { border-radius: 3px; border-color: var(--ink); }

/* ---------- Panel ---------- */
.panel { background: var(--alt); border-left: 1px solid var(--soft); overflow-y: auto; min-height: 0; }
.panel-inner { padding: 20px 22px 28px; display: flex; flex-direction: column; gap: 12px; }
.kicker { font-size: 11.5px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--blue); margin-bottom: 6px; }
.narr-title { font-size: 22px; font-weight: 700; letter-spacing: -0.028em; line-height: 1.15; margin-bottom: 8px; }
.narr-body { font-size: 14.5px; line-height: 1.55; color: #3a3a3c; }
.narr-body + .narr-body { margin-top: 8px; }
.narr-task { margin-top: 10px; font-size: 13.5px; font-weight: 600; color: var(--blue-dark); display: flex; gap: 8px; align-items: baseline; }
.narr-task::before { content: '→'; }
.narr-task.is-done { color: var(--ok); }
.narr-task.is-done::before { content: '✓'; }

.block { background: var(--surface); border: 1px solid var(--soft); border-radius: var(--radius); padding: 14px 16px; }
.block-title { font-size: 12px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.small { font-size: 12.5px; line-height: 1.5; color: var(--muted); margin-top: 8px; }
.ctl-label { display: block; font-size: 14px; font-weight: 500; line-height: 1.35; }
.big-num { font-size: 26px; font-weight: 700; letter-spacing: -0.03em; color: var(--flag); font-variant-numeric: tabular-nums; vertical-align: -2px; }
.mid-num { font-size: 17px; font-weight: 700; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.block--base .mid-num { color: var(--ink); }

.dial-row { display: flex; align-items: center; gap: 14px; }
.dial { flex: none; width: 112px; touch-action: none; cursor: grab; }
.dial-ctl { flex: 1; min-width: 0; }
.dial-split { display: flex; flex-direction: column; gap: 12px; }
.dial-svg { display: block; width: 100%; height: auto; overflow: visible; }
.dial-track { fill: none; stroke: #e5e5ea; stroke-width: 10; stroke-linecap: round; }
.dial-zone { fill: none; stroke: var(--flag); stroke-width: 10; stroke-linecap: round; transition: d 0.12s linear; }
.dial-tick { stroke: var(--faint); stroke-width: 1.2; }
.dial-needle { stroke: var(--ink); stroke-width: 3; stroke-linecap: round; }
.dial-hub { fill: var(--ink); }
.dial:has(+ .dial-ctl input:focus-visible) .dial-track { stroke: rgba(0, 94, 162, 0.25); }

.range { -webkit-appearance: none; appearance: none; width: 100%; height: 28px; background: transparent; margin: 4px 0 0; cursor: pointer; }
.range::-webkit-slider-runnable-track { height: 6px; border-radius: 999px; background: var(--track, #e5e5ea); }
.range::-moz-range-track { height: 6px; border-radius: 999px; background: var(--track, #e5e5ea); }
.range::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; margin-top: -8px; border-radius: 50%; background: #fff; border: 2px solid var(--thumb, var(--flag)); box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2); }
.range::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; background: #fff; border: 2px solid var(--thumb, var(--flag)); box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2); }
.range:focus-visible { outline: none; }
.range:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 4px rgba(0, 94, 162, 0.35); }
.range:focus-visible::-moz-range-thumb { box-shadow: 0 0 0 4px rgba(0, 94, 162, 0.35); }
.range--base { --thumb: var(--ink); }
.range-ends { display: flex; justify-content: space-between; font-size: 11.5px; color: var(--muted); }

/* Panel order differs by chapter: what the chapter asks for comes first */
.panel-inner > * { order: 20; }
.panel-inner > .narr { order: 0; }
.panel-inner > .panel-foot { order: 99; }
.ch-reveal:empty { display: none; }
#panel[data-chapter="1"] .block--dial { order: 1; }
#panel[data-chapter="1"] .block--headline { order: 2; }
#panel[data-chapter="1"] .ch-reveal { order: 3; }
#panel[data-chapter="1"] .block--gap { order: 4; }
#panel[data-chapter="2"] .block--base { order: 1; }
#panel[data-chapter="2"] .block--headline { order: 2; }
#panel[data-chapter="2"] .ch-reveal { order: 3; }
#panel[data-chapter="2"] .block--accuracy { order: 4; }
#panel[data-chapter="2"] .block--openai { order: 5; }
#panel[data-chapter="2"] .block--dial { order: 6; }
#panel[data-chapter="2"] .block--gap { order: 7; }
#panel[data-chapter="3"] .block--goal { order: 1; }
#panel[data-chapter="3"] .block--dial { order: 2; }
#panel[data-chapter="3"] .block--roc { order: 3; }
#panel[data-chapter="3"] .block--headline { order: 4; }
#panel[data-chapter="3"] .block--gap { order: 5; }
#panel[data-chapter="3"] .block--base { order: 6; }

/* Headline readout */
.headline-big { display: flex; align-items: baseline; gap: 10px; }
.headline-pct { font-size: 40px; font-weight: 700; letter-spacing: -0.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.headline-pct.is-bad { color: var(--flag); }
.headline-lead { font-size: 14px; font-weight: 600; line-height: 1.3; }
.headline-sub { font-size: 13.5px; color: #3a3a3c; margin-top: 8px; line-height: 1.45; }
.headline-sub b { color: var(--flag); }

/* Group gap bars */
.gap-row { display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; align-items: baseline; margin-top: 8px; }
.gap-name { font-size: 13px; font-weight: 500; }
.gap-val { font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; }
.gap-bar { grid-column: 1 / -1; height: 8px; border-radius: 999px; background: #ececf0; overflow: hidden; }
.gap-fill { height: 100%; border-radius: 999px; background: var(--flag); width: 0; transition: width 0.3s var(--ease); }
.gap-fill--caught { background: var(--ink); }
.gap-title-2 { margin: 14px 0 0; }

/* Accuracy vs precision */
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.duo-cell { background: var(--alt); border-radius: 12px; padding: 10px 12px; }
.duo-num { font-size: 26px; font-weight: 700; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; line-height: 1.1; }
.duo-num.is-bad { color: var(--flag); }
.duo-label { font-size: 12px; color: var(--muted); line-height: 1.35; margin-top: 2px; }

/* Callouts and reveals */
.reveal { border-radius: var(--radius); padding: 14px 16px; background: var(--surface); border: 1px solid rgba(0, 94, 162, 0.35); border-left-width: 4px; animation: rise 0.3s var(--ease); }
.reveal--flag { border-color: rgba(180, 35, 24, 0.4); }
.reveal-tag { font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--blue); margin-bottom: 4px; }
.reveal--flag .reveal-tag { color: var(--flag); }
.reveal-title { font-size: 16px; font-weight: 700; letter-spacing: -0.02em; margin-bottom: 6px; line-height: 1.25; }
.reveal p + p { margin-top: 7px; }
.reveal p { font-size: 13.5px; line-height: 1.5; color: #3a3a3c; }
.reveal .pull { font-size: 15px; font-weight: 600; color: var(--ink); letter-spacing: -0.01em; }
.reveal .cite { font-size: 12px; color: var(--muted); }
@keyframes rise { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.checklist { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 6px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; line-height: 1.4; }
.check-mark { flex: none; width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 700; background: var(--flag-soft); color: var(--flag); }
.check.is-ok .check-mark { background: rgba(26, 127, 55, 0.12); color: var(--ok); }
.check-val { color: var(--muted); }
.goal-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }

.roc-svg { display: block; width: 100%; max-width: 340px; height: auto; margin: 0 auto; }
.roc-grid { stroke: #ececf0; stroke-width: 1; }
.roc-tick { font-size: 10px; fill: var(--muted); }
.roc-axis { font-size: 10.5px; fill: var(--muted); font-weight: 500; }
.roc-chance { stroke: #d2d2d7; stroke-dasharray: 3 3; }
.roc-curve { fill: none; stroke-width: 2.5; }
.roc-curve--fl { stroke: var(--blue); }
.roc-curve--el { stroke: var(--el); stroke-dasharray: 6 3; }
.roc-dot { stroke: #fff; stroke-width: 2; transition: cx 0.12s linear, cy 0.12s linear; }
.roc-dot--fl { fill: var(--blue); }
.roc-dot--el { fill: var(--el); }
.roc-goal { fill: rgba(26, 127, 55, 0.14); stroke: var(--ok); stroke-dasharray: 3 2; }
.roc-key { list-style: none; margin: 6px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 14px; justify-content: center; font-size: 12px; color: var(--muted); }
.roc-key li { display: flex; align-items: center; gap: 6px; }
.roc-swatch { width: 18px; height: 0; border-top: 2.5px solid var(--blue); }
.roc-swatch--el { border-top: 2.5px dashed var(--el); }
.roc-swatch--goal { width: 6px; height: 14px; border: 1px dashed var(--ok); background: rgba(26, 127, 55, 0.14); border-radius: 2px; }

/* Verdict */
.verdict-names { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 8px; }
.name-chip { font-size: 12.5px; font-weight: 500; background: var(--flag-soft); color: var(--flag-dark); border-radius: 999px; padding: 3px 9px; }
.cost-list { margin: 8px 0 0; padding-left: 18px; font-size: 13.5px; line-height: 1.5; color: #3a3a3c; }
.cost-list li + li { margin-top: 3px; }
.choices { display: grid; gap: 6px; margin-top: 8px; }
.final-q { font-size: 19px; font-weight: 700; letter-spacing: -0.025em; line-height: 1.3; color: var(--ink); }

.panel-foot { display: flex; justify-content: flex-end; gap: 8px; padding-top: 4px; }

/* Where next */
.next-links { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 8px; }
.next-link { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; text-decoration: none; color: var(--ink); transition: border-color 0.15s ease, background 0.15s ease; }
.next-link:hover { border-color: var(--blue); background: var(--blue-soft); }
.next-title { font-size: 14px; font-weight: 600; color: var(--blue-dark); }
.next-text { font-size: 12.5px; color: var(--muted); line-height: 1.45; }

/* Loophole checklist */
.lh-count { margin-bottom: 10px; }
.lh-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.lh-item { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border: 1px solid var(--soft); border-radius: 14px; background: var(--alt); }
.lh-item.is-found { background: var(--blue-soft); border-color: rgba(0, 94, 162, 0.25); }
.lh-mark { flex: none; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; font-weight: 700; color: var(--muted); border: 1.5px dashed var(--line); background: #fff; }
.lh-item.is-found .lh-mark { color: #fff; background: var(--blue); border: 0; }
.lh-text { min-width: 0; display: flex; flex-direction: column; gap: 3px; align-items: flex-start; }
.sources .lh-title { font-size: 15px; font-weight: 600; color: var(--ink); }
.sources .lh-meta { font-size: 12px; color: var(--muted); margin: 0; }
.sources .lh-body { font-size: 13.5px; margin: 2px 0 6px; }

/* ---------- Sources dialog ---------- */
.sources { border: 0; border-radius: 20px; padding: 0; width: min(720px, calc(100vw - 32px)); max-height: min(80vh, 760px); box-shadow: 0 24px 64px rgba(0, 0, 0, 0.25); color: var(--ink); }
.sources::backdrop { background: rgba(29, 29, 31, 0.35); }
.sources-inner { padding: 22px 24px 26px; overflow-y: auto; max-height: inherit; }
.sources-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 12px; position: sticky; top: -22px; background: #fff; padding: 4px 0 8px; }
.sources-head h2 { font-size: 19px; font-weight: 700; letter-spacing: -0.02em; }
.sources h3 { font-size: 13px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); margin: 16px 0 8px; }
.sources p { font-size: 14px; line-height: 1.55; color: #3a3a3c; }
.sources p + p { margin-top: 8px; }
.src-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.src-list a { color: var(--blue); font-weight: 600; text-decoration: none; font-size: 14px; line-height: 1.4; }
.src-list a:hover { text-decoration: underline; }
.src-note { font-size: 13px; color: var(--muted); margin-top: 3px; line-height: 1.5; }

/* ---------- Narrow screens ---------- */
@media (max-width: 1100px) {
  .view--school { grid-template-columns: minmax(0, 1fr) 360px; }
  .top-eyebrow { display: none; }
  .chap-btn { padding: 6px 10px; }
  .chap-label-long { display: none; }
}
@media (max-width: 899px) {
  /* The stage sticks to the top while the panel scrolls under it, so keyboard
     focus must stop below it, never behind it. */
  :root { --stage-h: clamp(300px, 52vh, 420px); }
  html:has(#viewSchool:not([hidden])) { scroll-padding-top: calc(var(--stage-h) + 12px); }
  .app { height: auto; min-height: 100vh; min-height: 100dvh; overflow: visible; }
  .top { flex-wrap: wrap; gap: 8px 10px; padding: 10px 14px 8px; }
  .top-brand { flex: 1; min-width: 0; }
  .top-title { font-size: 17px; white-space: nowrap; }
  .top-nav { order: 3; flex-basis: 100%; justify-content: flex-start; }
  .chap-list { max-width: 100%; }
  .top-all { display: none; }
  .view--school { display: block; }
  .stage-wrap { position: sticky; top: 0; z-index: 5; background: var(--surface); height: var(--stage-h); padding: 10px 12px 6px; border-bottom: 1px solid var(--soft); box-shadow: 0 6px 16px rgba(0, 0, 0, 0.04); }
  .stage-head { gap: 6px; }
  .stage-title { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .stage-head-row { justify-content: space-between; }
  .tl-long { display: none; }
  .tally { gap: 4px; flex-wrap: wrap; }
  .tally-item { font-size: 12px; padding: 3px 9px 3px 7px; gap: 5px; }
  .stage-head { min-width: 0; overflow-x: clip; }
  .tally-note { display: none; }
  .stage-key { display: none; }
  .panel { border-left: 0; overflow: visible; }
  .panel-inner { padding: 16px 14px 24px; }
  .narr-title { font-size: 20px; }
}
@media (max-width: 420px) {
  .tally-item[data-k="cleared"] { display: none; }
  .pill-long { display: none; }
  .top-actions .btn { padding: 6px 12px; font-size: 13px; }
  .loophole-pill { font-size: 11px; padding: 4px 9px; min-height: 30px; }
  .stage-title { font-size: 14px; }
  .sim-chip::after { content: ''; }
}

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