/* Hawkeye project page. Self-contained (no CSS framework). */
:root {
  --bg: #ffffff;
  --bg-soft: #f6f7f9;
  --surface: #ffffff;
  --ink: #16191d;
  --ink-2: #3f4651;
  --ink-3: #6b7280;
  --rule: #e4e7eb;
  --accent: #0b6b2e;            /* Hawkeye green, darkened for text contrast */
  --accent-soft: #e8f4ec;
  --btn: #16191d;
  --btn-ink: #ffffff;
  --code-bg: #f3f4f6;
  --figure-bg: #ffffff;
  --shadow: 0 1px 2px rgba(16, 24, 40, .06), 0 8px 24px rgba(16, 24, 40, .06);
  --player-bg: #0d0f12;
  /* entity colours (fixed across the paper's figures) */
  --c-h4: #008300; --c-h8: #e87ba4; --c-base: #4c72b0; --c-api: #8b929c;
  --grid: #eceef1;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0f1215; --bg-soft: #151a1f; --surface: #181d23; --ink: #e8eaed; --ink-2: #b9c0c9;
    --ink-3: #9099a4; --rule: #2a3139; --accent: #6fd39a; --accent-soft: #17261d; --btn: #e8eaed;
    --btn-ink: #0f1215; --code-bg: #1b2128; --figure-bg: #ffffff;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .35);
    --c-api: #8f97a2; --grid: #262c33;
  }
}
:root[data-theme="dark"] {
  --bg: #0f1215; --bg-soft: #151a1f; --surface: #181d23; --ink: #e8eaed; --ink-2: #b9c0c9;
  --ink-3: #9099a4; --rule: #2a3139; --accent: #6fd39a; --accent-soft: #17261d; --btn: #e8eaed;
  --btn-ink: #0f1215; --code-bg: #1b2128; --figure-bg: #ffffff;
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .35);
  --c-api: #8f97a2; --grid: #262c33;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html, body { margin: 0; background: var(--bg); color: var(--ink); }
body {
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 17px; line-height: 1.65; overflow-x: hidden;
  transition: background-color .25s ease, color .25s ease;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
img, video { max-width: 100%; display: block; }
code { font-family: "JetBrains Mono", ui-monospace, monospace; font-size: .88em; background: var(--code-bg); padding: .1em .35em; border-radius: 4px; }

.wrap { max-width: 1100px; margin: 0 auto; padding: 0 16px; }
.wrap.wide { max-width: 1180px; }
.center { text-align: center; }
.section { padding: 4.5rem 0; }
.section.alt { background: var(--bg-soft); }
h2 { font-size: 1.85rem; font-weight: 700; letter-spacing: -.02em; margin: 0 0 .6rem; line-height: 1.2; }
h3 { font-size: 1.12rem; font-weight: 650; margin: .2rem 0 .4rem; }
.lede { color: var(--ink-2); font-size: 1.08rem; max-width: 760px; margin: 0 0 2rem; }
.note { color: var(--ink-3); font-size: .9rem; margin-top: .8rem; }
.muted { color: var(--ink-3); }

/* ---------- hero ---------- */
.hero { padding: 4rem 0 3.5rem; background: radial-gradient(1200px 500px at 50% -10%, var(--accent-soft), transparent 70%); }
.kicker { text-transform: uppercase; letter-spacing: .14em; font-size: .78rem; font-weight: 600; color: var(--ink-3); margin: 0 0 .9rem; }
.title { font-size: clamp(2rem, 5vw, 3.3rem); font-weight: 800; letter-spacing: -.035em; line-height: 1.08; margin: 0 0 1.1rem; }
.title .name { color: var(--accent); }
.authors { font-size: 1.15rem; display: flex; gap: 1.6rem; justify-content: center; flex-wrap: wrap; }
.authors a { color: var(--ink); font-weight: 500; border-bottom: 1px solid var(--rule); }
.authors a:hover { text-decoration: none; border-color: var(--accent); }
.affil { color: var(--ink-3); margin-top: .25rem; }
.links { display: flex; flex-wrap: wrap; gap: .55rem; justify-content: center; margin: 1.6rem 0 2.6rem; }
.btn {
  display: inline-flex; align-items: center; gap: .45rem; padding: .5rem 1.05rem; border-radius: 999px;
  background: var(--btn); color: var(--btn-ink); font-size: .93rem; font-weight: 500; line-height: 1.2;
  transition: transform .15s ease, opacity .15s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn.is-disabled { background: transparent; color: var(--ink-3); border: 1px solid var(--rule); cursor: default; }
.btn.is-disabled:hover { transform: none; }

/* ---------- demo player ---------- */
.demo { margin: 0 auto; }
.seg {
  display: flex; flex-wrap: wrap; gap: 4px; justify-content: center; width: fit-content; max-width: 100%;
  margin: 0 auto 14px; padding: 4px; border-radius: 12px; background: var(--surface); border: 1px solid var(--rule);
}
.seg-btn {
  font: inherit; font-size: .88rem; font-weight: 500; color: var(--ink-2); background: transparent;
  border: 0; border-radius: 9px; padding: .45rem .9rem; cursor: pointer; white-space: nowrap;
}
.seg-btn:hover { color: var(--ink); }
.seg-btn.is-active { background: var(--btn); color: var(--btn-ink); }
.seg-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.player {
  position: relative; aspect-ratio: 16 / 9; width: 100%; border-radius: 16px; overflow: hidden;
  background: var(--player-bg); box-shadow: var(--shadow);
}
.player video { width: 100%; height: 100%; object-fit: contain; background: var(--player-bg); }
.player-missing {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: .6rem; color: #8b929c; font-size: .95rem;
}
.player-missing i { font-size: 2rem; opacity: .6; }
.player-missing[hidden] { display: none; }
.caption { text-align: center; color: var(--ink-2); font-size: .98rem; margin: 1rem auto 0; max-width: 760px; }

/* ---------- story cards ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.card {
  background: var(--surface); border: 1px solid var(--rule); border-radius: 14px; padding: 1.5rem 1.4rem 1.3rem;
  box-shadow: var(--shadow);
}
.card-icon {
  width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent); font-size: 1.05rem; margin-bottom: .9rem;
}
.card-num { font-size: 1.7rem; font-weight: 750; letter-spacing: -.02em; color: var(--ink); line-height: 1.1; margin-bottom: .2rem; }
.card p { color: var(--ink-2); font-size: .97rem; margin: 0; }

/* ---------- figures ---------- */
.fig { margin: 0 0 1.8rem; }
.fig img { width: 100%; background: var(--figure-bg); border-radius: 10px; border: 1px solid var(--rule); padding: 8px; }
.fig.narrow { max-width: 640px; margin-left: auto; margin-right: auto; }
.fig figcaption { color: var(--ink-3); font-size: .92rem; margin-top: .6rem; }
.fig-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; align-items: start; }

/* ---------- stats ---------- */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin: .5rem 0 1.5rem; }
.stat { border-left: 3px solid var(--accent); padding: .2rem 0 .2rem 1rem; }
.stat .num { font-size: 1.6rem; font-weight: 750; letter-spacing: -.02em; }
.stat .lbl { color: var(--ink-2); font-size: .93rem; line-height: 1.45; }

/* ---------- collapsibles ---------- */
details.more { margin-top: 1.4rem; border: 1px solid var(--rule); border-radius: 12px; background: var(--surface); }
details.more > summary {
  cursor: pointer; list-style: none; padding: .85rem 1.1rem; font-weight: 600; color: var(--ink-2);
  display: flex; align-items: center; gap: .6rem;
}
details.more > summary::-webkit-details-marker { display: none; }
details.more > summary::before { content: "\25B8"; color: var(--ink-3); transition: transform .2s ease; }
details.more[open] > summary::before { transform: rotate(90deg); }
.more-body { padding: 0 1.1rem 1.1rem; }
.more-body p, .more-body li { color: var(--ink-2); font-size: .97rem; }

/* ---------- tables ---------- */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table.res { width: 100%; border-collapse: collapse; font-size: .93rem; font-variant-numeric: tabular-nums; }
table.res th, table.res td { padding: .6rem .7rem; border-bottom: 1px solid var(--rule); text-align: right; vertical-align: top; }
table.res th:first-child, table.res td:first-child { text-align: left; }
table.res th { font-weight: 600; color: var(--ink-2); border-bottom: 2px solid var(--rule); white-space: nowrap; }
table.res .txt { text-align: left; }
table.res td.up { color: var(--accent); font-weight: 600; }
.th-sub { display: block; font-weight: 400; color: var(--ink-3); font-size: .78rem; }
.swatch { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: .5rem; vertical-align: 0; }
.pill { display: inline-block; font-size: .75rem; padding: .05rem .5rem; border-radius: 999px; border: 1px solid var(--rule); color: var(--ink-3); }
tr.is-ours td:first-child { font-weight: 650; }
tr.is-ours .mname { text-decoration: underline; text-underline-offset: 3px; }
#speed-table td:first-child, #speed-table td:nth-child(2) { white-space: nowrap; }

/* ---------- speed chart ---------- */
.chart { margin: 0 0 1.4rem; }
.chart svg { max-width: 100%; height: auto; display: block; overflow: visible; }
.chart svg.narrow .lbl { font-size: 12px; }
.chart .lbl { fill: var(--ink-2); font-size: 13px; }
.chart .val { fill: var(--ink-2); font-size: 12px; font-variant-numeric: tabular-nums; }
.chart .axis { fill: var(--ink-3); font-size: 11px; }
.chart .gridline { stroke: var(--grid); stroke-width: 1; }
.chart .ctitle { fill: var(--ink-3); font-size: 12px; font-weight: 600; }

/* ---------- steps, code, bibtex ---------- */
ol.steps { padding-left: 1.3rem; max-width: 780px; }
ol.steps li { margin: .45rem 0; color: var(--ink-2); }
ol.steps b { color: var(--ink); }
.abstract { color: var(--ink-2); text-align: justify; hyphens: auto; max-width: 900px; margin: 0; }
pre { margin: 0; }
pre.code, .bibtex pre {
  background: var(--code-bg); border: 1px solid var(--rule); border-radius: 12px; padding: 1rem 1.2rem;
  overflow-x: auto; font-family: "JetBrains Mono", ui-monospace, monospace; font-size: .86rem; line-height: 1.6;
}
pre.code code, .bibtex code { background: none; padding: 0; font-size: inherit; }
pre .c { color: var(--ink-3); }
.bibtex { position: relative; }
.copy-btn {
  position: absolute; top: .6rem; right: .6rem; font: inherit; font-size: .8rem; color: var(--ink-2);
  background: var(--surface); border: 1px solid var(--rule); border-radius: 8px; padding: .25rem .6rem; cursor: pointer;
}
.footer { padding: 2.5rem 0 3rem; color: var(--ink-3); font-size: .88rem; border-top: 1px solid var(--rule); }
.footer p { margin: .25rem 0; }

.theme-toggle {
  position: fixed; top: 14px; right: 14px; z-index: 10; width: 38px; height: 38px; border-radius: 50%;
  border: 1px solid var(--rule); background: var(--surface); color: var(--ink-2); cursor: pointer; box-shadow: var(--shadow);
}

/* ---------- responsive ---------- */
@media (max-width: 860px) {
  .cards, .stats { grid-template-columns: 1fr; }
  .fig-pair { grid-template-columns: 1fr; }
  .br-wide { display: none; }
}
@media (max-width: 520px) {
  body { font-size: 16px; }
  .section { padding: 3.2rem 0; }
  .hero { padding-top: 3.2rem; }
  h2 { font-size: 1.5rem; }
  .seg { width: 100%; display: grid; grid-template-columns: 1fr 1fr; }
  .seg-btn { white-space: normal; font-size: .82rem; padding: .45rem .4rem; }
  .player { border-radius: 10px; }
  .fig img { padding: 4px; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}

/* avoid one-word last lines */
p, figcaption, li, .lede, .caption, .note { text-wrap: pretty; }
h1, h2, h3, .card-num { text-wrap: balance; }

/* latency/cost table: ten columns, so tighter cells and wrapping headers */
#speed-table { font-size: .84rem; }
#speed-table th, #speed-table td { padding: .5rem .45rem; }
#speed-table th { white-space: normal; line-height: 1.25; }
#speed-table td:first-child { white-space: nowrap; }

/* ===================== polish (2026-10-30) ===================== */
.section { border-top: 1px solid var(--rule); }
.hero + .section { border-top: 0; }
h2 { display: flex; align-items: center; gap: .65rem; }
h2::before { content: ""; width: 6px; height: 1.1em; border-radius: 3px; background: var(--accent); flex: none; }
.lede { max-width: 820px; }
.subhead { font-size: 1.3rem; font-weight: 700; letter-spacing: -.01em; margin: 3rem 0 .4rem; }

/* results at a glance */
.glance { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.tile {
  background: var(--surface); border: 1px solid var(--rule); border-radius: 14px; padding: 1.15rem 1.25rem 1.1rem;
  box-shadow: var(--shadow); display: flex; flex-direction: column; gap: .3rem;
}
.tile-num { font-size: 2rem; font-weight: 800; letter-spacing: -.03em; line-height: 1.05; color: var(--ink); font-variant-numeric: tabular-nums; }
.tile-num .unit { font-size: 1rem; font-weight: 600; color: var(--ink-3); margin-left: .2rem; letter-spacing: 0; }
.tile-num .arrow { color: var(--ink-3); font-weight: 500; }
.tile-lbl { font-weight: 650; color: var(--ink); font-size: 1rem; line-height: 1.35; }
.tile-sub { color: var(--ink-3); font-size: .9rem; line-height: 1.45; }

/* side-by-side blocks */
.split { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 2rem; align-items: start; margin: 0 0 2rem; }
.snellen-split { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); }
.split-main { min-width: 0; }
ul.facts { list-style: none; padding: 0; margin: 0; display: grid; gap: .75rem; }
ul.facts li { padding-left: .9rem; border-left: 2px solid var(--rule); color: var(--ink-2); font-size: .96rem; line-height: 1.5; }
ul.facts li b { color: var(--ink); }
ul.facts.resources { margin-top: 1.4rem; max-width: 820px; }
.side { display: grid; gap: 1.3rem; }

/* compact definitions */
ul.defs { list-style: none; padding: 0; margin: 0 0 1.2rem; display: grid; gap: .45rem; }
ul.defs li { font-size: .93rem; color: var(--ink-2); }
dl.defs-list { display: grid; grid-template-columns: 9.5rem 1fr; gap: .45rem 1.2rem; margin: 0; font-size: .93rem; }
dl.defs-list dt { font-weight: 600; color: var(--ink); }
dl.defs-list dd { margin: 0; color: var(--ink-2); }

/* cards around charts */
.chart-card { position: relative; background: var(--surface); border: 1px solid var(--rule); border-radius: 14px; padding: 1.1rem 1.2rem .9rem; box-shadow: var(--shadow); margin-bottom: 1.2rem; }
.chart-card .chart { margin: 0; }
.line-chart { position: relative; }
.line-chart .crosshair { stroke: var(--ink-3); stroke-width: 1; stroke-dasharray: 3 3; }
.line-chart .hit { fill: transparent; cursor: crosshair; outline: none; }
.line-chart .hit:focus-visible { fill: var(--accent-soft); fill-opacity: .5; }
.legend { display: flex; flex-wrap: wrap; gap: .35rem 1.1rem; margin-top: .6rem; font-size: .85rem; color: var(--ink-2); }
.leg { display: inline-flex; align-items: center; gap: .4rem; white-space: nowrap; }
.tip {
  position: absolute; top: 8px; z-index: 3; min-width: 210px; background: var(--surface); border: 1px solid var(--rule);
  border-radius: 10px; box-shadow: var(--shadow); padding: .55rem .7rem; font-size: .82rem; color: var(--ink-2); pointer-events: none;
}
.tip b { display: block; color: var(--ink); margin-bottom: .25rem; }
.tip-row { display: grid; grid-template-columns: 18px 1fr auto; align-items: center; gap: .4rem; font-variant-numeric: tabular-nums; }
.tip-key { display: inline-block; width: 16px; border-top: 3px solid; }
.tip-v { color: var(--ink); font-weight: 600; }

/* assumptions bar */
.assumptions {
  display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1.4rem; padding: .75rem 1rem; margin: 0 0 1rem;
  background: var(--surface); border: 1px solid var(--rule); border-radius: 12px; font-size: .9rem; color: var(--ink-2);
}
.assumptions-title { font-weight: 700; color: var(--ink); font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; }
.assumptions label { display: inline-flex; align-items: center; gap: .35rem; }
.assumptions .inp { display: inline-flex; align-items: center; gap: .15rem; }
.assumptions input {
  width: 4.2em; font: inherit; color: var(--ink); background: var(--bg); border: 1px solid var(--rule); border-radius: 7px;
  padding: .2rem .4rem; text-align: right; font-variant-numeric: tabular-nums;
}
.assumptions input:focus { outline: 2px solid var(--accent); outline-offset: 1px; }

/* tables */
table.res.compact th, table.res.compact td { padding: .45rem .6rem; }
table.res .ci { color: var(--ink-3); font-weight: 400; font-size: .85em; }
#speed-table th:nth-child(4), #speed-table td:nth-child(4) { white-space: nowrap; }

/* method steps */
.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-top: .4rem; }
.step { background: var(--surface); border: 1px solid var(--rule); border-radius: 14px; padding: 1.1rem 1.2rem; box-shadow: var(--shadow); }
.step-n {
  display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--accent-soft);
  color: var(--accent); font-weight: 700; font-size: .9rem; margin-bottom: .5rem;
}
.step p { color: var(--ink-2); font-size: .95rem; margin: 0; }

@media (max-width: 860px) {
  .glance, .steps-grid { grid-template-columns: 1fr 1fr; }
  .split, .snellen-split { grid-template-columns: 1fr; gap: 1.4rem; }
}
@media (max-width: 520px) {
  .glance, .steps-grid { grid-template-columns: 1fr; }
  dl.defs-list { grid-template-columns: 1fr; gap: .1rem; }
  dl.defs-list dd { margin-bottom: .5rem; }
  .tile-num { font-size: 1.7rem; }
  .chart-card { padding: .8rem .7rem .7rem; }
  .assumptions { gap: .5rem .9rem; }
}

/* ===================== interactive figures (2026-10-30) ===================== */
:root { --c-eng: #a8742a; --bad: #c43c3c; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --c-eng: #d6a25a; --bad: #ff7b7b; } }
:root[data-theme="dark"] { --c-eng: #d6a25a; --bad: #ff7b7b; }
.chart-fig { margin: 0 0 1.6rem; }
.chart-head { display: flex; flex-wrap: wrap; gap: .5rem .8rem; margin-bottom: .6rem; }
.seg.seg-sm { margin: 0; display: inline-flex; width: auto; }
.seg.seg-sm .seg-btn { font-size: .82rem; padding: .32rem .75rem; }
.chart .frame { fill: none; stroke: var(--rule); }
.chart .zero { stroke: var(--ink-2); stroke-width: 1.2; }
.chart .divider { stroke: var(--ink-3); stroke-width: 1; stroke-dasharray: 2 3; }
.chart .band-row { fill: var(--bg-soft); opacity: .6; }
.chart .val.strong, .chart .lbl.strong { fill: var(--ink); font-weight: 700; }
.chart .val.sig { fill: var(--accent); font-weight: 700; }
.chart .val.ns { fill: var(--ink-3); }
.line-chart .hit:focus-visible { fill: var(--accent-soft); fill-opacity: .45; }
.leg-btn { font: inherit; font-size: .85rem; color: var(--ink-2); background: transparent; border: 1px solid transparent; border-radius: 8px; padding: .1rem .4rem; cursor: pointer; }
.leg-btn:hover { border-color: var(--rule); }
.leg-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.leg-btn.is-off { opacity: .4; text-decoration: line-through; }
.tip-ci { color: var(--ink-3); font-size: .9em; }
.tip-sub { color: var(--ink-3); font-size: .78rem; margin: .1rem 0 .35rem 1.6rem; }
.tip-block + .tip-block { margin-top: .2rem; }
.ocr-sharp { margin-top: 1.2rem; border-top: 1px solid var(--rule); padding-top: .8rem; }
/* heatmap */
.hm-card { padding: .9rem .9rem .8rem; }
.hm-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table.heat { border-collapse: separate; border-spacing: 2px; font-size: .8rem; font-variant-numeric: tabular-nums; min-width: 760px; width: 100%; }
table.heat th, table.heat td { padding: .32rem .3rem; text-align: center; border-radius: 4px; }
table.heat thead th { vertical-align: bottom; font-weight: 600; color: var(--ink-2); }
table.heat .hm-model { text-align: left; white-space: nowrap; font-weight: 500; color: var(--ink-2); position: sticky; left: 0; background: var(--surface); z-index: 1; }
table.heat tr.is-ours .hm-model { color: var(--ink); font-weight: 700; }
table.heat tr.is-ours .mname { text-decoration: underline; text-underline-offset: 3px; }
table.heat td.hm-best { box-shadow: inset 0 0 0 2px #ffb000; font-weight: 700; }
table.heat td.hm-na { color: var(--ink-3); }
.hm-sort { font: inherit; font-weight: 600; color: var(--ink-2); background: transparent; border: 0; cursor: pointer; padding: 0; line-height: 1.2; }
.hm-sort:hover, .hm-sort.is-on { color: var(--accent); }
.hm-sort:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 3px; }
.hm-key { display: flex; align-items: center; gap: .5rem; margin-top: .7rem; font-size: .8rem; color: var(--ink-3); flex-wrap: wrap; }
.hm-key-bar { width: 160px; height: 10px; border-radius: 5px; }
.hm-key-best { width: 14px; height: 14px; border-radius: 3px; box-shadow: inset 0 0 0 2px #ffb000; margin-left: .8rem; }
/* Snellen example */
.snx-split { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); align-items: center; }
.snx-fig { margin: 0; }
.snx-fig img { max-height: 520px; width: auto; max-width: 100%; display: block; margin: 0 auto; background: #fff; }
.snx-text { color: var(--ink-2); margin: 0; }
.mono { font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .04em; }
table.snx-rows td, table.snx-rows th { text-align: left; }
table.snx-rows tr.hl td { color: var(--ink); font-weight: 650; background: var(--accent-soft); }
table.snx-read td.mono { white-space: nowrap; }
.ch.bad { color: var(--bad); text-decoration: line-through; text-decoration-thickness: 1px; text-decoration-color: var(--bad); }
.ch.bad.miss { text-decoration: none; }
.ch.miss { opacity: .85; }
@media (max-width: 860px) { .snx-split { grid-template-columns: 1fr; } .snx-fig img { max-height: 380px; } }
@media (max-width: 520px) { .seg.seg-sm { display: inline-flex; width: auto; } .seg.seg-sm .seg-btn { font-size: .78rem; padding: .3rem .55rem; } }
/* attention viewer */
.attn-head { justify-content: space-between; }
.attn-controls { display: flex; align-items: center; gap: .8rem; margin: .2rem 0 .9rem; }
.attn-controls[hidden] { display: none; }
.attn-controls input[type=range] { flex: 1; accent-color: var(--accent); }
.attn-play { font: inherit; width: 2.2rem; height: 2.2rem; border-radius: 50%; border: 1px solid var(--rule); background: var(--surface); color: var(--ink); cursor: pointer; }
.attn-play:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.attn-count { font-size: .85rem; color: var(--ink-3); font-variant-numeric: tabular-nums; min-width: 7.5rem; text-align: right; }
.attn-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
.attn-panel { min-width: 0; display: flex; flex-direction: column; gap: .35rem; transition: opacity .2s ease; }
.attn-panel.is-done .attn-stage { opacity: .55; }
.attn-title { font-weight: 600; font-size: .9rem; color: var(--ink-2); }
.attn-panel.is-ours .attn-title { color: var(--ink); font-weight: 700; }
.attn-panel.is-ours .mname { text-decoration: underline; text-underline-offset: 3px; }
.attn-stage { border-radius: 8px; overflow: hidden; background: #000; }
.attn-stage canvas { display: block; width: 100%; }
.attn-meta { font-size: .78rem; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.attn-text { font-size: .76rem; line-height: 1.45; color: var(--ink-2); height: 4.4em; overflow: hidden; letter-spacing: 0; display: flex; flex-direction: column; justify-content: flex-end; }
.attn-text mark { background: #ffb000; color: #16191d; border-radius: 2px; padding: 0 1px; }
@media (max-width: 860px) { .attn-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .attn-grid { grid-template-columns: 1fr 1fr; gap: .6rem; } .attn-head { flex-direction: column; } }
