/* T4CT project page. Editorial discipline: black ink, hairline rules, IBM Plex Sans + STIX Two Text, color reserved for data (T4CT = #90CAF9 / #0F4C8A). */
:root {
  --ink: #111214;
  --ink-2: #3b4046;
  --rule: #e1e4e8;
  --rule-strong: #c9cfd6;
  --bg: #ffffff;
  --bg-alt: #f6f7f9;
  --card: #ffffff;
  --ours: #90caf9;
  --ours-ink: #0f4c8a;
  --ours-wash: #eaf4fd;
  --base: #d7dbe0;
  --base-edge: #9aa1a9;

  --sans: "IBM Plex Sans", "Helvetica Neue", Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;
  --math: "STIX Two Text", "Times New Roman", Times, serif;
  --display-weight: 600;
  --display-track: -.02em;

  /* Type scale: ten disciplined sizes */
  --fs-xs: 12.5px;
  --fs-s: 13.5px;
  --fs-m: 14.5px;
  --fs-text: 17px;
  --fs-h3: 20px;
  --fs-lead: 23px;
  --fs-stmt: 36px;
  --fs-num: 34px;
  --fs-h2: 40px;
  --fs-h1: 58px;

  /* Vertical rhythm */
  --gap-lead: 24px;
  --gap-card: 32px;
  --gap-sub: 56px;

  --wrap: 1180px;
  --radius: 14px;
  --shadow-card: 0 1px 2px rgba(17, 18, 20, .04), 0 8px 24px rgba(17, 18, 20, .035);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; font-synthesis: none; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--sans); font-size: var(--fs-text); line-height: 1.6; font-weight: 400;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; font-feature-settings: "kern", "liga", "calt";
}
img, video, canvas, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; text-decoration-color: rgba(17, 18, 20, .38); }
a:hover { text-decoration-color: var(--ink); }
sub, sup { line-height: 0; font-size: .72em; }
b, strong { font-weight: 600; }
em { font-style: italic; }
.nw { white-space: nowrap; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 28px; }
.wrap.narrow { max-width: 920px; }

/* Mathematics: upright by default, variables italic */
.eq, .math { font-family: var(--math); font-style: normal; }
.eq i, .math i, var { font-family: var(--math); font-style: italic; }
.math, var { font-size: 1.04em; line-height: 0; white-space: nowrap; }

/* ---------- Sticky Navigation ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  border-bottom: 1px solid var(--rule);
  background: rgba(255, 255, 255, .92);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
.scroll-track { position: absolute; top: 0; left: 0; right: 0; height: 2px; background: transparent; pointer-events: none; }
.scroll-bar { height: 100%; width: 0%; background: var(--ours-ink); transition: width 60ms linear; }
.nav-inner {
  max-width: var(--wrap); margin: 0 auto; height: 54px; padding: 0 28px;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
}
.brand {
  color: var(--ours-ink); font-weight: 600; text-decoration: none;
  font-size: var(--fs-text); letter-spacing: -.015em; flex: none;
}
.nav nav {
  display: flex; gap: 2px; max-width: 100%; overflow-x: auto;
  scrollbar-width: none; align-self: stretch; margin-bottom: -1px;
}
.nav nav::-webkit-scrollbar { display: none; }
.nav nav a {
  font-size: var(--fs-m); font-weight: 500; text-decoration: none; color: var(--ink-2);
  padding: 0 12px; white-space: nowrap; border-bottom: 2px solid transparent;
  display: flex; align-items: center; transition: color .15s ease, background-color .15s ease;
}
.nav nav a:hover { color: var(--ink); background: var(--bg-alt); }
.nav nav a.active { color: var(--ink); border-bottom-color: var(--ink); }
.nav nav a:focus-visible { outline: 2px solid var(--ink); outline-offset: -2px; }

/* ---------- Type Roles ---------- */
.eyebrow {
  font-size: var(--fs-s); font-weight: 500; color: var(--ink-2);
  margin: 0 0 10px; letter-spacing: .01em;
}
.eyebrow .sep { margin: 0 6px; }
.label {
  font-size: var(--fs-s); line-height: 1.5; font-weight: 600;
  letter-spacing: .01em; margin: 0 0 10px; color: var(--ours-ink);
}
h1, h2, h3, .h3 { font-family: var(--sans); font-weight: var(--display-weight); color: var(--ink); text-wrap: balance; }
h1 { font-size: clamp(34px, 5.2vw, var(--fs-h1)); line-height: 1.07; letter-spacing: calc(var(--display-track) * 1.2); margin: 0 0 16px; }
h1 .t4ct { color: var(--ours-ink); }
h2 { font-size: clamp(28px, 3.4vw, var(--fs-h2)); line-height: 1.12; letter-spacing: var(--display-track); margin: 0 0 20px; }
h3, .h3 { font-size: var(--fs-h3); line-height: 1.3; letter-spacing: -.01em; margin: 0 0 10px; }
.h3 { margin-top: var(--gap-sub); }
.lead { font-size: clamp(19px, 1.9vw, var(--fs-lead)); line-height: 1.42; letter-spacing: -.01em; font-weight: 400; margin: 0 0 14px; max-width: 31em; text-wrap: balance; }
.lead b { font-weight: 600; }
.prose p, p.prose { margin: 0 0 14px; text-wrap: pretty; }
p.prose, .claims p, .step > p, .abstract p { max-width: 35em; }

.card {
  background: var(--card); border: 1px solid var(--rule);
  border-radius: var(--radius); box-shadow: var(--shadow-card);
}

/* ---------- Hero & Featured Overview Video ---------- */
.hero { padding-top: 38px; padding-bottom: 48px; }
.hero h1 { max-width: 980px; }
.authors { margin-bottom: 20px; }
.names { font-size: var(--fs-text); font-weight: 500; margin: 0; line-height: 1.75; text-wrap: balance; }
.names a, .names span { white-space: nowrap; }
/* names are set apart by space, not commas */
.names > * { display: inline-block; margin-right: 26px; }
.names > *:last-child { margin-right: 0; }
.affil { font-size: var(--fs-m); margin: 5px 0 0; color: var(--ink-2); line-height: 1.5; }
.affil .sep { margin: 0 6px; }

.hero-bar {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 12px 20px; padding: 16px 0 22px; border-top: 1px solid var(--ink);
}
.links { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.btn {
  display: inline-flex; align-items: center; gap: 7px;
  font: 500 var(--fs-m)/1.2 var(--sans); text-decoration: none;
  padding: 8px 15px; border-radius: 999px; cursor: pointer;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.btn-primary {
  background: var(--ink); color: #fff; border: 1px solid var(--ink);
}
.btn-primary:hover { background: var(--ours-ink); border-color: var(--ours-ink); color: #fff; }
.btn-ghost {
  background: var(--bg); color: var(--ink); border: 1px solid var(--rule-strong);
}
.btn-ghost:hover { border-color: var(--ink); background: var(--bg-alt); }
/* arXiv, Code, Model: grey and not clickable while they say "(coming soon)", outlined links once they exist */
.release { flex: 0 0 100%; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.res {
  display: inline-flex; align-items: center; gap: 9px; white-space: nowrap;
  font: 600 var(--fs-text)/1.2 var(--sans); text-decoration: none; color: var(--ink);
  padding: 9px 18px 9px 14px; border-radius: 999px; background: var(--bg); border: 1px solid var(--rule-strong);
  transition: background-color .15s ease, border-color .15s ease;
}
a.res:hover { border-color: var(--ink); background: var(--bg-alt); }
.res.is-soon { background: #eef0f3; border-color: #eef0f3; color: #4d535b; cursor: default; }
.res .soon { font-weight: 400; font-size: var(--fs-m); color: #5b616a; }
.res .ico { width: 22px; height: 22px; flex: none; }
.res svg.ico path { fill: none; }
.res svg.ico path[fill] { fill: currentColor; }
.res .emoji { width: auto; height: auto; font: 400 21px/1 "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif; }

/* Overview video showcase card */
.overview-video { overflow: hidden; padding: 0; }
.videobox { position: relative; background: var(--bg-alt); padding: 12px 12px 0; }
.videobox video {
  width: 100%; aspect-ratio: 16 / 9; border-radius: 9px;
  background: #fff; border: 1px solid var(--rule); cursor: pointer;
}
/* below the logo of the poster (the title card of the video), so that the button does not cover it */
.bigplay {
  position: absolute; left: 50%; top: 74%; transform: translate(-50%, -50%);
  display: inline-flex; align-items: center; gap: 11px;
  font: 500 var(--fs-text)/1 var(--sans); color: #fff;
  background: rgba(17, 18, 20, .92); border: 1px solid var(--ink);
  border-radius: 999px; padding: 14px 24px; cursor: pointer; white-space: nowrap;
  box-shadow: 0 10px 30px rgba(17, 18, 20, .22);
  transition: transform .15s ease, background-color .15s ease;
}
.bigplay[hidden] { display: none; }
.bigplay:hover { background: var(--ours-ink); border-color: var(--ours-ink); transform: translate(-50%, -50%) scale(1.02); }
.bigplay:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.play-tri {
  width: 0; height: 0; border-style: solid;
  border-width: 6.5px 0 6.5px 11px; border-color: transparent transparent transparent #fff;
}
.play-dur {
  font-family: var(--mono); font-size: var(--fs-s); color: rgba(255, 255, 255, .82);
  padding-left: 9px; border-left: 1px solid rgba(255, 255, 255, .28);
}

/* top right of the video: captions on or off, and, while the video plays by itself without sound, a button that
   starts it again from the beginning with sound */
.video-actions { position: absolute; right: 24px; top: 24px; z-index: 2; display: flex; align-items: center; gap: 8px; }
.soundplay, .ccbtn {
  display: inline-flex; align-items: center; gap: 8px;
  font: 500 var(--fs-m)/1 var(--sans); color: #fff; white-space: nowrap;
  background: rgba(17, 18, 20, .86); border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 999px; padding: 9px 15px 9px 12px; cursor: pointer;
  transition: background-color .15s ease, opacity .2s ease;
}
.soundplay[hidden], .ccbtn[hidden] { display: none; }
.soundplay:hover { background: var(--ours-ink); }
.soundplay:focus-visible, .ccbtn:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.ccbtn { font-weight: 600; letter-spacing: .04em; padding: 9px 12px; border-radius: 8px; opacity: 0; pointer-events: none; }
.ccbtn:hover { background: rgba(17, 18, 20, 1); }
.ccbtn[aria-pressed="true"] { background: #fff; color: var(--ink); border-color: #fff; }
.videobox.ui .ccbtn, .videobox.paused .ccbtn, .videobox.silent .ccbtn, .ccbtn:focus-visible { opacity: 1; pointer-events: auto; }
video::cue { font: 500 1em/1.35 "IBM Plex Sans", system-ui, sans-serif; color: #fff; background: rgba(17, 18, 20, .78); }

/* 5-chapter interactive strip */
.chapter-strip {
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr));
  border-top: 1px solid var(--rule); background: var(--bg-alt);
}
.chap {
  appearance: none; background: transparent; border: 0; border-right: 1px solid var(--rule);
  padding: 12px 14px 13px; text-align: left; cursor: pointer; font-family: var(--sans); color: var(--ink);
  display: flex; flex-direction: column; gap: 3px;
  transition: background-color .15s ease;
}
.chap:last-child { border-right: 0; }
.chap:hover { background: #eef1f5; }
.chap.active { background: var(--ours-wash); box-shadow: inset 0 2px 0 var(--ours-ink); }
.chap:focus-visible { outline: 2px solid var(--ink); outline-offset: -2px; }
.chap-top { display: flex; justify-content: space-between; align-items: baseline; gap: 6px; font-family: var(--mono); font-size: var(--fs-xs); color: var(--ink-2); }
.chap.active .chap-num { color: var(--ours-ink); font-weight: 600; }
.chap b { font-size: var(--fs-m); font-weight: 600; line-height: 1.28; letter-spacing: -.01em; }
.chap.active b { color: var(--ours-ink); }
.chap-desc { font-size: var(--fs-xs); color: var(--ink-2); line-height: 1.35; }

/* ---------- Sections ---------- */
.section { padding: 80px 0; }
.section.alt { background: var(--bg-alt); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }

/* ---------- Trial Section ---------- */
.trial { padding: 68px 0 72px; }
.hero-feature {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  align-items: center; gap: 28px 48px;
}
.hero-context .lede {
  max-width: 20ch; margin: 0 0 14px;
  font-size: clamp(24px, 2.9vw, var(--fs-stmt)); font-weight: 600;
  line-height: 1.15; letter-spacing: -.022em; text-wrap: balance;
}
.hero-context .hero-intro { font-size: var(--fs-text); margin: 0 0 16px; max-width: 27em; color: var(--ink-2); }
.recall-steps { list-style: none; margin: 0; padding: 0; counter-reset: step; border-top: 1px solid var(--ink); max-width: 27em; }
.recall-steps li { counter-increment: step; }
.recall-steps button {
  display: grid; grid-template-columns: 28px minmax(0, 1fr); width: 100%; padding: 11px 8px 12px 4px; text-align: left;
  font: 400 var(--fs-m)/1.45 var(--sans); color: var(--ink); background: none; border: 0; border-bottom: 1px solid var(--rule); cursor: pointer;
  transition: background-color .14s ease;
}
.recall-steps button::before { content: counter(step); grid-row: span 2; font-family: var(--mono); font-weight: 500; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.recall-steps b { font-weight: 600; }
.recall-steps span { grid-column: 2; color: var(--ink-2); }
.recall-steps button[aria-pressed="true"] {
  background: var(--ours-wash); box-shadow: inset 3px 0 0 var(--ours-ink); padding-left: 11px;
}
.recall-steps button[aria-pressed="true"]::before,
.recall-steps button[aria-pressed="true"] b { color: var(--ours-ink); }
/* time left before the next moment */
.recall-steps button { position: relative; }
.recall-steps button.timing::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 100%;
  background: var(--ours-ink); opacity: .55; transform-origin: left center;
  animation: recall-hold var(--hold, 2600ms) linear both;
}
@keyframes recall-hold { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.recall-view img.swap { animation: recall-in 260ms ease-out both; }
@keyframes recall-in { from { opacity: .45; } to { opacity: 1; } }
.recall-steps button:hover:not([aria-pressed="true"]) { background: rgba(17, 18, 20, .03); }
.recall-steps button:focus-visible { outline: 2px solid var(--ink); outline-offset: -2px; }

.recall-film { margin: 0; padding: 14px; }
.recall-view { background: var(--bg-alt); border-radius: 8px; overflow: hidden; border: 1px solid var(--rule); }
.recall-view img, .recall-view video { width: 100%; height: auto; aspect-ratio: 904 / 664; object-fit: cover; display: block; }
.recall-view [hidden] { display: none; }
.recall-film figcaption, .fig figcaption {
  display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 16px;
  margin-top: 12px; font-size: var(--fs-s); line-height: 1.5;
}
.recall-rate { color: var(--ink-2); }
.recall-play { font-weight: 600; color: var(--ours-ink); text-decoration-color: rgba(15, 76, 138, .4); }
.recall-play:hover { text-decoration-color: var(--ours-ink); }

/* ---------- Shared Ruled Fact Lists ---------- */
.summary, .defs { margin: 0; border-top: 1px solid var(--ink); }
.summary > div, .defs > div { border-bottom: 1px solid var(--rule); }

/* ---------- Overview ---------- */
.summary > div {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 12px 56px; align-items: baseline; padding: 20px 0 22px;
}
.summary dt {
  font-size: var(--fs-h3); font-weight: 600; line-height: 1.3; letter-spacing: -.01em;
  display: flex; align-items: baseline; gap: 12px;
}
.sum-idx { font-family: var(--mono); font-size: var(--fs-xs); font-weight: 500; color: var(--ours-ink); }
.summary dd { margin: 0; text-wrap: pretty; max-width: 35em; }
.abstract { margin-top: 16px; margin-left: calc((100% - 56px) * 5 / 12 + 56px); }
.abstract summary {
  cursor: pointer; font-size: var(--fs-m); font-weight: 500; list-style: none;
  display: inline-flex; align-items: center; gap: 8px; padding: 5px 0; color: var(--ours-ink);
}
.abstract summary::-webkit-details-marker { display: none; }
.abstract summary::after {
  content: "+"; font-family: var(--sans); font-size: var(--fs-m);
  border: 1px solid var(--ours-ink); border-radius: 50%; width: 18px; height: 18px;
  display: inline-flex; align-items: center; justify-content: center; line-height: 1;
}
.abstract[open] summary::after { content: "−"; }
.abstract summary:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.abstract p {
  margin: 10px 0 0; padding: 2px 0 2px 16px;
  border-left: 2px solid var(--ours); text-wrap: pretty;
}

/* ---------- Show more: the longer explanation of a block, closed by default ---------- */
.more { margin: 0 0 14px; max-width: 35em; }
.more > summary {
  cursor: pointer; font-size: var(--fs-m); font-weight: 500; list-style: none;
  display: inline-flex; align-items: center; gap: 8px; padding: 3px 0; color: var(--ours-ink);
}
.more > summary::-webkit-details-marker { display: none; }
.more > summary::after {
  content: "+"; font-family: var(--sans); font-size: var(--fs-m);
  border: 1px solid var(--ours-ink); border-radius: 50%; width: 18px; height: 18px;
  display: inline-flex; align-items: center; justify-content: center; line-height: 1;
}
.more[open] > summary::after { content: "−"; }
.more > summary:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.more > summary .when-open, .more[open] > summary .when-closed { display: none; }
.more[open] > summary .when-open { display: inline; }
.more-body { margin-top: 8px; padding: 2px 0 2px 16px; border-left: 2px solid var(--ours); }
.more-body > p, .more-body > p.prose { margin: 0 0 10px; text-wrap: pretty; }
.more-body > :last-child { margin-bottom: 0; }
.more-body ol { margin: 0; padding-left: 1.2em; }
.more-body .ex-note { font-size: var(--fs-s); line-height: 1.55; color: var(--ink-2); }
.intro2 .more:last-child, .claims .more, .step .more, .ex-cap .more, .ex-calc .more, .pair .more { margin-bottom: 0; }
.ex-cap > p { margin: 0; }
.ex-cap .more { margin-top: 4px; }
.ex-cap .more > summary { font-size: var(--fs-s); }
.ex-calc .more { margin-top: 8px; }

/* ---------- Figures ---------- */
.fig { margin: 0; padding: 18px; }
.fig img { width: 100%; height: auto; border-radius: 4px; }
.zoom { display: block; cursor: zoom-in; }
.fig figcaption { padding: 14px 4px 0; margin-top: 14px; border-top: 1px solid var(--rule); color: var(--ink-2); }
.fig figcaption b { color: var(--ink); }
.fig figcaption a { flex: none; font-weight: 500; color: var(--ink); }
.fig-tight { padding: 14px; align-self: start; }
.bench-foot, .player-cap { max-width: 46em; }

/* ---------- Section Openings ---------- */
.intro2 { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 56px; align-items: start; margin-bottom: var(--gap-card); }
.intro2 p.prose:last-child { margin-bottom: 0; }
.defs { margin-top: 4px; }
.defs > div { padding: 10px 0 11px; }
.defs dt { font-size: var(--fs-m); font-weight: 600; line-height: 1.5; }
.defs dd { margin: 0; font-size: var(--fs-m); line-height: 1.5; color: var(--ink-2); }

.pair { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 12px 56px; align-items: baseline; margin: var(--gap-sub) 0 var(--gap-lead); }
.pair > * { margin: 0; }

/* ---------- Problem & Flow-Time Explorer ---------- */
.claims { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; margin: var(--gap-lead) 0 var(--gap-card); }
.claims > div { border-top: 1px solid var(--ink); padding: 14px 12px 0 0; }
.claims h3 { margin-bottom: 6px; }
.claims p { margin: 0; text-wrap: pretty; }

.explorer { padding: 24px; }
input[type=range] { -webkit-appearance: none; appearance: none; width: 100%; height: 28px; background: transparent; margin: 0; cursor: pointer; }
input[type=range]::-webkit-slider-runnable-track { height: 2px; background: var(--ink); }
input[type=range]::-moz-range-track { height: 2px; background: var(--ink); }
input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 18px; height: 18px; margin-top: -8px; border-radius: 50%; background: #fff; border: 2px solid var(--ink); cursor: grab; }
input[type=range]::-moz-range-thumb { width: 16px; height: 16px; border-radius: 50%; background: #fff; border: 2px solid var(--ink); cursor: grab; }
input[type=range]:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; }

.ex-map { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 24px 30px; align-items: start; }
.ex-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: repeat(4, auto); gap: 0 20px; }
.ex-panel { display: grid; grid-template-rows: subgrid; grid-row: span 4; }
.ex-head { font-size: var(--fs-m); line-height: 1.48; display: flex; flex-direction: column; gap: 3px; margin-bottom: 10px; }
.ex-head b { font-weight: 600; font-size: var(--fs-text); }
.ex-head span { color: var(--ink-2); font-size: var(--fs-s); }

.scatter-wrap {
  border: 1px solid var(--rule); border-radius: 8px; background: var(--bg-alt);
  padding: 8px 10px 6px; align-self: stretch; display: flex; flex-direction: column; justify-content: space-between;
}
.scatter-wrap canvas { width: 100%; aspect-ratio: 4 / 3; }
.scatter-key {
  display: flex; align-items: center; justify-content: center; gap: 5px;
  font-size: var(--fs-xs); color: var(--ink-2); padding-top: 4px; border-top: 1px solid var(--rule);
}
.scatter-key span { margin-right: 4px; }
.scatter-key i { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }

.obs-views { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; align-self: center; }
.obs-views figure { margin: 0; }
.obs-picture {
  display: grid; aspect-ratio: 1; overflow: hidden; isolation: isolate;
  border-radius: 7px; border: 1px solid var(--rule);
}
.obs-picture img {
  grid-area: 1 / 1; width: 100%; height: auto; opacity: 1; mix-blend-mode: plus-lighter;
  transition: opacity 180ms linear;
}
.obs-picture img[aria-hidden="true"] { opacity: 0; }
.obs-views figcaption { font-size: var(--fs-xs); color: var(--ink-2); padding-top: 4px; text-align: center; }

.gain-axes { display: grid; grid-template-columns: 18px 20px minmax(0, 1fr); gap: 4px; align-items: stretch; font-size: var(--fs-xs); }
.gain-y-label { align-self: center; justify-self: center; writing-mode: vertical-rl; transform: rotate(180deg); font-weight: 500; }
.gain-y-ticks { display: grid; grid-template-rows: repeat(7, 1fr); font-family: var(--mono); }
.gain-y-ticks span, .gain-x-ticks span { align-self: center; text-align: center; }
.gain-x-ticks { grid-column: 3; display: grid; grid-template-columns: repeat(5, 1fr); font-family: var(--mono); }
.gain-x-label { grid-column: 3; text-align: center; font-weight: 500; }
.gain-plot {
  position: relative; width: 100%; min-width: 0; aspect-ratio: 1.65; min-height: 204px;
  outline: 1px solid var(--base-edge); border-radius: 3px; overflow: hidden;
  --gain-x: 50%; --gain-y: 7.14%;
}
.gain-plot canvas, #gain-points { position: absolute; inset: 0; width: 100%; height: 100%; }
#gain-points { display: grid; grid-template-rows: repeat(7, 1fr); touch-action: none; }
#gain-points [role="row"] { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); }
.gain-cell { position: relative; min-width: 0; background: none; border: 0; padding: 0; cursor: grab; }
.dragging .gain-cell { cursor: grabbing; }
.gain-plot:not(.dragging) .gain-cell:hover { background: rgba(255, 255, 255, .18); }
.gain-cell:focus-visible { outline: 2px solid var(--ink); outline-offset: -2px; }
#gain-points::before, #gain-points::after, .gain-marker {
  position: absolute; pointer-events: none;
  transition: left 150ms ease-out, top 150ms ease-out;
}
#gain-points::before, #gain-points::after { content: ""; z-index: 1; filter: drop-shadow(0 0 1px #fff); }
#gain-points::before { top: 0; bottom: 0; left: var(--gain-x); border-left: 1px dashed var(--ink); }
#gain-points::after { left: 0; right: 0; top: var(--gain-y); border-top: 1px dashed var(--ink); }
.gain-marker {
  top: var(--gain-y); left: var(--gain-x); z-index: 2; width: 22px; height: 22px;
  transform: translate(-50%, -50%); border: 2px solid var(--ink); border-radius: 50%; background: #fff;
  box-shadow: 0 0 0 1px #fff, 0 2px 7px rgba(17, 18, 20, .3);
}
.gain-marker::before {
  content: ""; position: absolute; inset: 5px; border-radius: 50%; background: var(--ours-ink);
}
/* until someone takes the point: a ring that spreads from it, and a label that says it can be dragged */
.inviting:not(.touched) .gain-marker::after {
  content: ""; position: absolute; inset: -2px; border-radius: 50%; border: 2px solid var(--ours-ink);
  animation: gain-ring 1.9s ease-out infinite;
}
@keyframes gain-ring { from { transform: scale(1); opacity: .75; } to { transform: scale(2.7); opacity: 0; } }
.gain-hint {
  position: absolute; top: var(--gain-y); left: var(--gain-x); z-index: 3; pointer-events: none;
  display: none; align-items: center; gap: 5px; white-space: nowrap;
  transform: translate(21px, -50%);
  font: 500 var(--fs-xs)/1 var(--sans); color: #fff; background: rgba(17, 18, 20, .9);
  border-radius: 999px; padding: 6px 10px 6px 8px;
  transition: left 150ms ease-out, top 150ms ease-out, opacity 200ms linear;
}
.inviting:not(.touched) .gain-hint { display: inline-flex; }
.hint-left .gain-hint { transform: translate(calc(-100% - 21px), -50%); }
.dragging .gain-hint { transition: none; }
.touring #gain-points::before, .touring #gain-points::after, .touring .gain-marker, .touring .gain-hint {
  transition: left 620ms cubic-bezier(.4, 0, .2, 1), top 620ms cubic-bezier(.4, 0, .2, 1);
}
.dragging #gain-points::before, .dragging #gain-points::after, .dragging .gain-marker { transition: none; }

.legend { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 8px; font-size: var(--fs-xs); padding-top: 10px; font-family: var(--mono); font-variant-numeric: tabular-nums; }
.legend .ramp { width: 150px; height: 10px; border: 1px solid var(--ink); border-radius: 2px; background: linear-gradient(90deg, rgb(244,247,252), rgb(159,191,232) 45%, rgb(28,36,82)); }
.ex-gain {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px;
  margin-top: 10px; padding: 8px 0 0; border-top: 1px solid var(--rule); font-size: var(--fs-m);
}
.ex-gain output { font-family: var(--mono); font-size: var(--fs-h3); font-weight: 600; font-variant-numeric: tabular-nums; line-height: 1.3; }
.ex-gain span:last-child { color: var(--ink-2); font-size: var(--fs-s); }

.ex-presets { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.ex-presets button {
  font: 500 var(--fs-xs)/1.2 var(--sans); color: var(--ink-2); background: var(--bg-alt);
  border: 1px solid var(--rule-strong); border-radius: 999px; padding: 5px 10px; cursor: pointer;
}
.ex-presets button:hover { border-color: var(--ink); color: var(--ink); }
.ex-presets button.on { background: var(--ours-wash); border-color: var(--ours-ink); color: var(--ours-ink); font-weight: 600; }

.readout { margin-top: 10px; }
.readout p { margin: 0; }
.readout .big-line { display: block; }
.readout .big { font-size: var(--fs-num); font-weight: 600; letter-spacing: -.025em; font-variant-numeric: tabular-nums; line-height: 1.1; }
.readout .small { font-size: var(--fs-m); display: block; margin-top: 2px; }
.readout .note { font-size: var(--fs-s); line-height: 1.5; margin: 0 0 2px; color: var(--ink-2); }
.mini-meter { position: relative; height: 5px; background: var(--bg-alt); border: 1px solid var(--rule); border-radius: 99px; margin-top: 8px; overflow: visible; }
.mini-fill { height: 100%; background: var(--ink); border-radius: 99px; transition: width .22s ease; }
.mini-chance { position: absolute; top: -3px; bottom: -3px; border-left: 1.5px dashed var(--ink-2); }

.ex-cap { font-size: var(--fs-s); line-height: 1.55; color: var(--ink-2); margin: 12px 0 0; padding-top: 10px; border-top: 1px solid var(--rule); }

.ex-how {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 0 30px; align-items: baseline;
  margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--rule);
}
.ex-claim h3 { margin: 4px 0 6px; }
.ex-claim p { margin: 0; text-wrap: pretty; max-width: 34em; }
.ex-calc { max-width: 40em; }
.ex-calc h4 { font-size: var(--fs-m); font-weight: 600; margin: 4px 0 6px; }
.ex-how ol { margin: 0 0 12px; padding-left: 1.3em; font-size: var(--fs-m); line-height: 1.55; }
.ex-how li { margin-bottom: 5px; text-wrap: pretty; }
.ex-how li::marker { font-weight: 600; }
.eq-card {
  background: var(--bg-alt); border: 1px solid var(--rule); border-radius: 8px;
  padding: 10px 14px; margin-top: 10px;
}

/* ---------- Method Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: var(--gap-card); }
.step {
  padding: 20px 22px; display: grid; grid-template-rows: subgrid; grid-row: span 4; row-gap: 0;
  border-top: 2px solid var(--ink);
}
.step .num { font-family: var(--mono); font-size: var(--fs-xs); font-weight: 600; color: var(--ours-ink); margin: 0 0 6px; text-transform: uppercase; letter-spacing: .04em; }
.step h3 { margin-bottom: 8px; }
.step > p { margin: 0 0 16px; text-wrap: pretty; font-size: 16px; line-height: 1.58; }
.eqbox {
  background: var(--bg-alt); border: 1px solid var(--rule); border-radius: 8px;
  padding: 11px 13px; align-self: end;
}
.eq { font-size: 1.05em; margin: 0 0 4px; white-space: nowrap; overflow-x: auto; overflow-y: hidden; line-height: 1.85; }
.eq .ss { display: inline-flex; flex-direction: column; font-size: .7em; line-height: 1; vertical-align: middle; }
.eq .ss sup, .eq .ss sub { font-size: 1em; line-height: 1.05; position: static; vertical-align: baseline; }
.where { font-size: var(--fs-xs); line-height: 1.5; margin: 0; color: var(--ink-2); }
.note-line { font-size: var(--fs-s); line-height: 1.55; color: var(--ink-2); margin: 14px 0 0; }

/* ---------- Segmented Controls & Dropdown ---------- */
.seg { display: inline-flex; flex-wrap: wrap; border-bottom: 1px solid var(--rule); }
.seg button {
  font-family: var(--sans); font-size: var(--fs-m); font-weight: 500; color: var(--ink-2);
  background: transparent; border: 0; border-bottom: 2px solid transparent;
  padding: 7px 11px; margin-bottom: -1px; cursor: pointer; white-space: nowrap;
}
.seg button[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--ink); font-weight: 600; }
.seg button:hover:not([aria-selected="true"]) { color: var(--ink); background: var(--bg-alt); }
.seg button:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.seg-sm button { font-size: var(--fs-s); padding: 6px 10px; }
.task-select {
  font-family: var(--sans); font-size: var(--fs-s); font-weight: 500;
  border: 1px solid var(--rule-strong); border-radius: 999px;
  background: var(--bg-alt); padding: 4px 12px; margin: 0 0 4px 6px; cursor: pointer; color: var(--ink);
}
.task-select:hover { border-color: var(--ink); }
.task-select:focus-visible { outline: 2px solid var(--ink); }

/* ---------- Benchmark Bars ---------- */
.bench { padding: 22px 24px; }
.bench-top { display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 20px; }
.bars { display: grid; gap: 7px; }
.bar-row { display: grid; grid-template-columns: 204px 44px 1fr 52px; align-items: center; gap: 12px; font-size: var(--fs-m); padding: 1px 0; }
.bars.no-tag .bar-row { grid-template-columns: 204px 1fr 52px; }
.bars.no-tag .tag { display: none; }
.bar-row .name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bar-row .tag { font-family: var(--mono); font-size: var(--fs-xs); color: var(--ink-2); }
.bar-row .track { position: relative; height: 18px; }
.bar-row .fill {
  position: absolute; inset: 0 auto 0 0; background: var(--base);
  border: 1px solid var(--base-edge); border-radius: 3px;
  transition: width .45s cubic-bezier(.2, .7, .2, 1);
}
.bar-row.ours .fill { background: var(--ours); border-color: var(--ink); }
.bar-row.ours .name, .bar-row.ours .val { font-weight: 600; color: var(--ours-ink); }
.bar-row .val { text-align: right; font-variant-numeric: tabular-nums; }
.bar-row.na .track::after { content: "not reported"; position: absolute; left: 0; top: 0; font-size: var(--fs-xs); line-height: 18px; color: var(--ink-2); }
.bar-row .grid-line { position: absolute; top: -4px; bottom: -4px; width: 1px; background: var(--rule); }
.bar-row.axis { font-size: var(--fs-xs); margin-top: 2px; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.bar-row.axis .track { height: 16px; }
.bar-row.axis .track span { position: absolute; top: 0; transform: translateX(-50%); }
.bar-row.axis .track span:first-child { transform: none; }
.bar-row.axis .track span:last-child { transform: translateX(-100%); }
.bench-foot { font-size: var(--fs-s); color: var(--ink-2); margin: 16px 0 0; line-height: 1.55; }

/* ---------- Tables ---------- */
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 44px; align-items: start; }
.grid2.fig-wide { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
.grid2.lower .h3 { margin-top: var(--gap-sub); }
.tcard { padding: 4px 14px; margin: 6px 0 16px; overflow-x: auto; }
table { border-collapse: collapse; width: 100%; font-size: var(--fs-m); }
th, td { padding: 8px 8px; border-bottom: 1px solid var(--rule); text-align: right; font-variant-numeric: tabular-nums; }
th:first-child, td:first-child { text-align: left; padding-left: 4px; }
th { white-space: nowrap; }
thead th { font-weight: 600; border-bottom: 1px solid var(--ink); font-size: var(--fs-s); }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover:not(.ours) td { background: rgba(17, 18, 20, .02); }
td small { display: block; font-size: var(--fs-xs); font-weight: 400; color: var(--ink-2); }
.cmp td:first-child { text-wrap: balance; }
.cmp th.ours, .cmp td.ours { background: var(--ours-wash); color: var(--ours-ink); font-weight: 600; }
.abl tr.ours td { background: var(--ours-wash); font-weight: 600; color: var(--ours-ink); }
.abl tr.ours td small { color: var(--ours-ink); }
.abl td:last-child, .abl th:last-child { font-weight: 600; }
.abl tr.grp-end td { border-bottom-color: var(--ink); }

/* ---------- Flow-Step Chart ---------- */
.nfe { padding: 16px 18px 12px; margin-bottom: 16px; }
.nfe svg { width: 100%; max-width: 560px; height: auto; margin: 10px auto 0; font-family: var(--sans); }
.nfe-legend { display: none; font-size: var(--fs-s); line-height: 1.55; margin: 4px 0 4px; }
.nfe-legend span { display: inline-flex; align-items: center; gap: 6px; margin-right: 14px; white-space: nowrap; }
.nfe-legend i { display: inline-block; width: 11px; height: 11px; border-radius: 50%; border: 1.2px solid var(--ink); background: var(--base); }
.nfe-legend i.o { background: var(--ours); }
.nfe-legend i.d { width: 16px; height: 0; border: 0; border-top: 1.2px dashed var(--ink); border-radius: 0; background: none; }
.nfe-legend b { color: var(--ours-ink); }

/* ---------- Real Robot ---------- */
.realbars { padding: 22px 24px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-rows: repeat(4, auto); gap: 0 30px; margin-bottom: var(--gap-lead); }
.rb-task { display: grid; grid-template-rows: subgrid; grid-row: span 3; }
.rb-task h4 { font-size: var(--fs-text); font-weight: 600; margin: 0 0 3px; letter-spacing: -.01em; }
.rb-task p.desc { font-size: var(--fs-m); line-height: 1.5; margin: 0 0 8px; text-wrap: pretty; color: var(--ink-2); }
.rb-task p.meta { font-family: var(--mono); font-size: var(--fs-xs); margin: 0 0 10px; color: var(--ink-2); }
.rb-rows { align-self: end; }
.rb-row { display: grid; grid-template-columns: 88px 1fr 44px; gap: 10px; align-items: center; font-size: var(--fs-m); margin-bottom: 6px; }
.rb-row .track { position: relative; height: 16px; }
.rb-row .fill { position: absolute; inset: 0 auto 0 0; background: var(--base); border: 1px solid var(--base-edge); border-radius: 3px; }
.rb-row.ours .fill { background: var(--ours); border-color: var(--ink); }
.rb-row.ours { font-weight: 600; color: var(--ours-ink); }
.rb-row .val { font-size: var(--fs-s); text-align: right; font-variant-numeric: tabular-nums; }
.rb-row .chance { position: absolute; top: -3px; bottom: -3px; border-left: 1.5px dashed var(--ink); }
.rb-legend { grid-column: 1 / -1; font-size: var(--fs-s); line-height: 1.55; color: var(--ink-2); margin: 12px 0 0; border-top: 1px solid var(--rule); padding-top: 12px; }
.rb-legend i { display: inline-block; width: 0; height: 12px; border-left: 1.5px dashed var(--ink); margin: 0 7px -2px 0; }

.player { padding: 16px; }
.player-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.player video { width: 100%; aspect-ratio: 16 / 9; border-radius: 9px; background: #fff; border: 1px solid var(--rule); }
.player-cap { font-size: var(--fs-m); margin: 12px 4px 2px; line-height: 1.5; min-height: 3em; text-wrap: pretty; color: var(--ink-2); }

/* Clip control row */
.vctl { display: flex; align-items: center; gap: 12px; margin-top: 10px; }
.vctl button { font: 500 var(--fs-s) var(--sans); color: var(--ink); background: #fff; border: 1px solid var(--ink); border-radius: 999px; padding: 4px 12px; cursor: pointer; }
.vctl button.pp { min-width: 66px; }
.vctl button:hover { background: var(--ink); color: #fff; }
.vctl button:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.vctl input[type=range] { flex: 1; height: 24px; }
.vctl input[type=range]::-webkit-slider-thumb { width: 14px; height: 14px; margin-top: -6px; }
.vctl input[type=range]::-moz-range-thumb { width: 12px; height: 12px; }
.vctl .time { font-family: var(--mono); font-size: var(--fs-xs); font-variant-numeric: tabular-nums; white-space: nowrap; color: var(--ink-2); }
video.ctl { cursor: pointer; }

.fails { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.fails figure { margin: 0; background: #fff; border: 1px solid var(--rule); border-radius: 12px; padding: 14px; box-shadow: var(--shadow-card); }
.fails video { width: 100%; aspect-ratio: 16 / 9; border-radius: 7px; background: #fff; border: 1px solid var(--rule); }
.fails figcaption { font-size: var(--fs-m); line-height: 1.5; padding: 10px 2px 2px; text-wrap: pretty; }

/* ---------- BibTeX & Footer ---------- */
.bib { position: relative; padding: 0; overflow: hidden; }
.bib pre { margin: 0; padding: 22px 24px; font-family: var(--mono); font-size: var(--fs-s); line-height: 1.65; overflow-x: auto; }
.copy { position: absolute; top: 12px; right: 12px; font: 500 var(--fs-s) var(--sans); border: 1px solid var(--ink); background: #fff; border-radius: 999px; padding: 6px 14px; cursor: pointer; }
.copy:hover { background: var(--ink); color: #fff; }

.footer { border-top: 1px solid var(--rule); padding: 28px 0 44px; font-size: var(--fs-s); color: var(--ink-2); }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; }
.footer p { margin: 0; }

/* ---------- Lightbox Dialog ---------- */
.lightbox {
  border: 0; padding: 0; max-width: 94vw; max-height: 92vh;
  background: transparent; overflow: visible;
}
.lightbox::backdrop { background: rgba(17, 18, 20, .82); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.lb-inner { position: relative; background: #fff; padding: 14px; border-radius: 12px; box-shadow: 0 24px 64px rgba(0, 0, 0, .35); }
.lb-inner img { max-width: calc(94vw - 28px); max-height: calc(90vh - 28px); width: auto; height: auto; border-radius: 6px; }
.lb-close {
  position: absolute; top: -14px; right: -14px;
  font: 600 var(--fs-s) var(--sans); color: #fff; background: var(--ink);
  border: 1.5px solid #fff; border-radius: 999px; padding: 6px 14px; cursor: pointer;
}
.lb-close:hover { background: var(--ours-ink); }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .intro2, .pair, .ex-map { grid-template-columns: minmax(0, 1fr); }
  .intro2 { gap: 20px; }
  .pair { gap: 10px; }
  .chapter-strip { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .chap:nth-child(3) { border-right: 0; }
  .chap:nth-child(n+4) { border-top: 1px solid var(--rule); }
  .summary > div { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .abstract { margin-left: 0; }
  .steps { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .step { display: flex; flex-direction: column; }
  .grid2, .grid2.fig-wide { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .gain-plot { aspect-ratio: 2.2; }
  .ex-how { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .fails { grid-template-columns: minmax(0, 1fr); }
  .realbars { display: block; }
  .rb-task { display: block; margin-bottom: 22px; }
  .nfe svg { max-width: 520px; }
}

@media (max-width: 720px) {
  .wrap { padding: 0 16px; }
  .nav-inner { height: 48px; padding: 0 12px 0 16px; gap: 10px; }
  .nav nav {
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 14px, #000 calc(100% - 26px), transparent);
    mask-image: linear-gradient(90deg, transparent, #000 14px, #000 calc(100% - 26px), transparent);
    padding: 0 20px 0 14px;
  }
  .nav nav a { padding: 0 8px; }
  .hero { padding: 24px 16px 34px; }
  .authors { margin-bottom: 14px; }
  .names > * { margin-right: 18px; }
  .hero-bar { padding: 12px 0 16px; gap: 10px; }
  .btn { padding: 7px 12px; font-size: var(--fs-s); }
  .release { gap: 8px; }
  .res { font-size: var(--fs-m); padding: 8px 14px 8px 11px; gap: 7px; }
  .res .soon { font-size: var(--fs-s); }
  .res .ico { width: 19px; height: 19px; }
  .res .emoji { width: auto; height: auto; font-size: 18px; }
  .videobox { padding: 8px 8px 0; }
  .video-actions { right: 16px; top: 16px; gap: 6px; }
  .soundplay { font-size: var(--fs-s); padding: 7px 12px 7px 9px; gap: 6px; }
  .ccbtn { font-size: var(--fs-s); padding: 7px 9px; }
  .bigplay { padding: 10px 18px; font-size: var(--fs-m); gap: 8px; }
  .chapter-strip { grid-template-columns: minmax(0, 1fr); }
  .chap { border-right: 0; border-bottom: 1px solid var(--rule); padding: 10px 12px; }
  .chap:last-child { border-bottom: 0; }
  .chap:nth-child(n+4) { border-top: 0; }

  .section { padding: 54px 0; }
  .trial { padding: 44px 0 50px; }
  .hero-feature { display: flex; flex-direction: column; align-items: stretch; gap: 16px; }
  .hero-context { display: contents; }
  .hero-context .label { order: 0; margin-bottom: -8px; }
  .hero-context .lede { order: 1; max-width: none; margin: 0; }
  .hero-context .hero-intro { order: 2; margin: 0; max-width: none; font-size: var(--fs-m); }
  .recall-film { order: 3; padding: 10px; }
  .recall-steps { order: 4; max-width: none; width: 100%; }

  .claims { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .claims > div { padding-right: 0; }
  .fig { padding: 10px; }
  .fig figcaption { padding: 10px 4px 2px; }
  .explorer { padding: 14px; }
  .ex-grid { display: block; }
  .ex-panel { display: block; margin-bottom: 18px; padding-top: 14px; border-top: 1px solid var(--rule); }
  .ex-panel:last-child { margin-bottom: 0; }
  .gain-plot { aspect-ratio: 1.7; }
  input[type=range] { height: 40px; }
  input[type=range]::-webkit-slider-thumb { width: 24px; height: 24px; margin-top: -11px; }
  input[type=range]::-moz-range-thumb { width: 22px; height: 22px; }
  .seg button, .task-select { min-height: 40px; }
  .bench { padding: 16px 14px; }
  .bar-row, .bars.no-tag .bar-row { grid-template-columns: 126px 1fr 44px; gap: 8px; }
  .bar-row .name { white-space: normal; overflow: visible; line-height: 1.25; }
  .bar-row.axis .track span:nth-child(2), .bar-row.axis .track span:nth-child(4) { display: none; }
  .bar-row .tag, .tag-note { display: none; }
  .tcard { padding: 2px 6px; }
  .abl { font-size: var(--fs-xs); table-layout: fixed; }
  .abl th, .abl td { padding: 7px 2px; }
  .abl thead th { font-size: 11px; vertical-align: bottom; }
  .abl thead th:first-child { white-space: normal; font-size: var(--fs-xs); }
  .abl th:not(:first-child) { width: 31px; }
  .abl th:last-child { width: 37px; }
  .abl td:first-child .nw { white-space: normal; }
  .nfe-legend { display: block; }
  .player { padding: 10px; }
  .vctl { gap: 8px; }
  .vctl button { padding: 7px 11px; }
  th, td { padding: 7px 5px; }
  .bib pre { font-size: var(--fs-xs); padding: 48px 14px 16px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .bar-row .fill, .mini-fill, .scroll-bar { transition: none; }
  .obs-picture img, #gain-points::before, #gain-points::after, .gain-marker, .gain-hint { transition: none; }
  .gain-marker::after, .recall-steps button.timing::after, .recall-view img.swap { animation: none; }
}
