/* ActiveBench project page. One look, shared with the paper's figures and the video (video/STYLE.md): Space Grotesk
   titles, IBM Plex Sans labels and numbers; the benchmark is blue, the world is teal, RAUM is orange, the states of
   a flight keep their four fixed colours. Layout: shots, as in the video: a title with a hairline, then panels. The
   drone of the teaser flies in and rests on the wordmark; the first screen (the title beside a camera film, the two
   parts) is in hero.css.

   The page has four chapters and a closing block, each with its colour: Explore (the world's teal), Benchmark
   (blue), RAUM (orange), Results (ink), TL;DR (slate). A chapter is a .chapter[data-ch] around its sections; the
   header shows the chapters as segments that fill in their colour while one scrolls through them (page.js), and
   every section title carries its chapter's label and a short rule in that colour.

   Two themes, one mechanism. Every colour of the page is a token on :root: the light values (the paper's and the
   video's look: white ground, panels #F8FAFC with hairlines) come first; the dark values (the same identity on a
   near-black blue-grey ground) follow twice with the same list, once for a system that asks for dark and once for a
   visitor who chose dark with the button in the header (theme.js puts data-theme on <html>; build.py checks that the
   two lists are equal). Stylesheets, inline SVG and scripts use the tokens only; canvas and WebGL code reads them at
   draw time through ABTheme.css and redraws when the theme changes. A method's colour is the data's in light; the
   data's colours are made for a white ground, so the dark lists carry a token --m-<key> per method (the same hue,
   lifted until it holds 3 : 1 on the dark grounds and dark text holds 4.5 : 1 on it). */
:root {
  color-scheme: light;
  /* grounds, hairlines, text; --on-fill is text on a filled mark (ink, an accent, a state, a method's colour) */
  --bg: #FFFFFF; --panel: #F8FAFC; --line: #E5E7EB; --line-2: #D1D5DB; --ink: #1F2937; --ink-2: #6B7280; --ink-3: #9CA3AF; --on-fill: #FFFFFF;
  /* the benchmark (blue), the world (teal), RAUM (orange; --raum-ink for small text), the Act lane of RAUM's diagram */
  --bench: #1F6FB4; --bench-soft: #EDF4FB; --bench-group: #F4F8FD;
  --world: #13857C; --world-soft: #E3F1EF;
  --raum: #E8590C; --raum-soft: #FDEFE6; --raum-group: #FFF7F1; --raum-ink: #C4410E; --lane-think: #FFF4EC;
  --act-ink: #B08400; --lane-act: #FBF6E4;
  /* the states of a flight: thinking, refused, waiting (moving is the method's colour) */
  --think: #475569; --refused: #C62828; --wait: #E5E7EB; --ribbon: #D9E6F5; --plan: #E2E8F0;
  --strip-bg: #FFFFFF; --track-bg: #F1F5F9;
  /* frosted grounds over the page and over pictures */
  --top-glass: rgba(255, 255, 255, .9); --glass: rgba(255, 255, 255, .65); --glass-line: rgba(31, 41, 55, .14); --tag-glass: rgba(255, 255, 255, .92); --hud-glass: rgba(255, 255, 255, .88);
  /* plans: the ground around a plan, and the four tones of the plan pictures themselves (floor, low and high
     furniture, walls); plans_dark.py repaints assets/plans/<scene>.webp with the dark four into <scene>.dark.webp */
  --plan-ground: #E9EEF4; --plan-floor: #FFFFFF; --plan-soft: #EEF1F5; --plan-mid: #DDE3EA; --plan-wall: #AEB9C7;
  --route-1: #6CC3B8; --route-2: #2FA397; --route-3: #0E6B63;
  /* per-view PSNR, low to high; a view without a score */
  --ramp-lo: #D6ECE8; --ramp-hi: #095C56; --ramp-none: var(--line-2);
  /* pictures keep their own light in both themes, because they carry data: the ground and the frame of a clip; in
     the 3D viewer what a model never observed (--s3-unseen, "pale" in the legend) and the simulator's own black
     where the scene itself has a hole. --s3-void is the viewer before it is loaded and a pane without a model. */
  --media-ground: #FFFFFF; --media-line: var(--line); --s3-unseen: #E9EEF4; --gt-void: #000000; --s3-void: #E9EEF4; --s3-void-2: #F1F4F8;
  /* results */
  --res-point: #64748B; --res-yes: #16A34A; --res-gen: #D97706;
  /* the theme button shows the theme it switches to */
  --sun: 0; --moon: 1;
  --display: "Space Grotesk", "IBM Plex Sans", system-ui, sans-serif;
  --body: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --measure: 1160px; --r: 12px;
  /* the four dynamic levels as a ramp (the first screen) */
  --lv-0: #E2E8F0; --lv-1: #A9DDD4; --lv-2: #4FB3A6; --lv-3: #13857C;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #0D1117; --panel: #151B23; --line: #27303B; --line-2: #3B4655; --ink: #E6EAF0; --ink-2: #A3ADBA; --ink-3: #7E8998; --on-fill: #0D1117;
    --bench: #5AA7E8; --bench-soft: #13263A; --bench-group: #101B28;
    --world: #20A195; --world-soft: #0F2C2A;
    --raum: #F06A1F; --raum-soft: #33200F; --raum-group: #21160E; --raum-ink: var(--raum); --lane-think: #24170E;
    --act-ink: #E3B341; --lane-act: #221D0C;
    --think: #93A1B5; --refused: #E5484D; --wait: #2D3641; --ribbon: #1B2A3D; --plan: #232C38;
    --strip-bg: #0D1117; --track-bg: #1B222C;
    --top-glass: rgba(13, 17, 23, .88); --glass: rgba(13, 17, 23, .6); --glass-line: rgba(230, 234, 240, .16); --tag-glass: rgba(13, 17, 23, .86); --hud-glass: rgba(13, 17, 23, .82);
    --plan-ground: #1C232E; --plan-floor: #0D1117; --plan-soft: #141A22; --plan-mid: #252E3B; --plan-wall: #7C8BA0;
    --route-1: #8ADBD0; --route-2: #3DB5A8; --route-3: #1E8D82;
    --ramp-lo: #24484A; --ramp-hi: #7BE8D8;
    --media-line: var(--line-2); --s3-void: #1A2029; --s3-void-2: #20272F;
    --res-point: #8492A6; --res-yes: #3FCB70; --res-gen: #F0A030;
    --sun: 1; --moon: 0;
    --lv-0: #2B3440; --lv-1: #1C4F4B; --lv-2: #1E7C73; --lv-3: var(--world);
    --m-raum: var(--raum); --m-r3con: #E65585; --m-activegs: #4D9BFF; --m-trace: #4FD6C4; --m-activegamer: #E0B21C; --m-magician: #BD6BD9; --m-fisherrf: #F25AE3; --m-gavis: #B5A6FF; --m-random-walk: #A0A0A7;
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0D1117; --panel: #151B23; --line: #27303B; --line-2: #3B4655; --ink: #E6EAF0; --ink-2: #A3ADBA; --ink-3: #7E8998; --on-fill: #0D1117;
  --bench: #5AA7E8; --bench-soft: #13263A; --bench-group: #101B28;
  --world: #20A195; --world-soft: #0F2C2A;
  --raum: #F06A1F; --raum-soft: #33200F; --raum-group: #21160E; --raum-ink: var(--raum); --lane-think: #24170E;
  --act-ink: #E3B341; --lane-act: #221D0C;
  --think: #93A1B5; --refused: #E5484D; --wait: #2D3641; --ribbon: #1B2A3D; --plan: #232C38;
  --strip-bg: #0D1117; --track-bg: #1B222C;
  --top-glass: rgba(13, 17, 23, .88); --glass: rgba(13, 17, 23, .6); --glass-line: rgba(230, 234, 240, .16); --tag-glass: rgba(13, 17, 23, .86); --hud-glass: rgba(13, 17, 23, .82);
  --plan-ground: #1C232E; --plan-floor: #0D1117; --plan-soft: #141A22; --plan-mid: #252E3B; --plan-wall: #7C8BA0;
  --route-1: #8ADBD0; --route-2: #3DB5A8; --route-3: #1E8D82;
  --ramp-lo: #24484A; --ramp-hi: #7BE8D8;
  --media-line: var(--line-2); --s3-void: #1A2029; --s3-void-2: #20272F;
  --res-point: #8492A6; --res-yes: #3FCB70; --res-gen: #F0A030;
  --sun: 1; --moon: 0;
  --lv-0: #2B3440; --lv-1: #1C4F4B; --lv-2: #1E7C73; --lv-3: var(--world);
  --m-raum: var(--raum); --m-r3con: #E65585; --m-activegs: #4D9BFF; --m-trace: #4FD6C4; --m-activegamer: #E0B21C; --m-magician: #BD6BD9; --m-fisherrf: #F25AE3; --m-gavis: #B5A6FF; --m-random-walk: #A0A0A7;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 17px/1.6 var(--body); -webkit-font-smoothing: antialiased; }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 30; background: var(--bg); }
a { color: var(--bench); text-underline-offset: 3px; }
a:focus-visible, button:focus-visible, video:focus-visible { outline: 2px solid var(--bench); outline-offset: 2px; border-radius: 6px; }
img, video { max-width: 100%; display: block; }
p { margin: 0 0 14px; max-width: 68ch; }
.wrap { max-width: var(--measure); margin-inline: auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.num { font-variant-numeric: tabular-nums; }

/* chips: the video's scene, speed and clock chips; frosted where they sit on an image */
.chip[hidden] { display: none; }
.chip { display: inline-flex; align-items: center; gap: 6px; font: 500 12.5px/1 var(--body); padding: 6px 10px; border-radius: 999px; border: 1px solid var(--line); background: var(--bg); color: var(--ink-2); white-space: nowrap; }
.chip.world { color: var(--world); border-color: color-mix(in srgb, var(--world) 35%, var(--line)); background: var(--world-soft); }
.chip.raum { color: var(--on-fill); background: var(--raum); border-color: var(--raum); font-weight: 600; }
.chip.glass { background: var(--glass); backdrop-filter: blur(8px); border-color: var(--glass-line); color: var(--ink); }
.dagger { color: var(--ink-3); }

/* header: wordmark, the chapters as segments, the clock of the 300 s flight. A segment is a link to its chapter: its
   bar is pale in the chapter's colour and fills with it while the chapter is scrolled through (--p, set by page.js);
   the chapter one is in is marked. On a narrow screen the wordmark and the clock make room: the segments stay. */
[data-ch] { --ch: var(--think); --ch-ink: var(--ink-2); }
[data-ch="explore"] { --ch: var(--world); --ch-ink: var(--world); }
[data-ch="bench"] { --ch: var(--bench); --ch-ink: var(--bench); }
[data-ch="raum"] { --ch: var(--raum); --ch-ink: var(--raum-ink); }
[data-ch="results"] { --ch: var(--ink); --ch-ink: var(--ink); }
[data-ch="end"] { --ch: var(--think); --ch-ink: var(--think); }
.top { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: var(--top-glass); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: stretch; gap: 22px; min-height: 54px; }
.mark { align-self: center; font: 600 19px/1 var(--display); letter-spacing: -.01em; color: var(--ink); text-decoration: none; }
.chapters { flex: 1; display: flex; gap: 8px; min-width: 0; margin-left: 14px; }
.chapters a { position: relative; flex: 1 1 0; min-width: 0; display: flex; align-items: center; padding-bottom: 9px; font: 500 14px/1 var(--body); color: var(--ink-2); text-decoration: none; white-space: nowrap; -webkit-tap-highlight-color: transparent; }
.chapters a:hover { color: var(--ink); }
.chapters a[aria-current] { color: var(--ink); font-weight: 600; }
.chapters i { position: absolute; left: 0; right: 0; bottom: 10px; height: 4px; border-radius: 2px; overflow: hidden; background: color-mix(in srgb, var(--ch) 20%, var(--bg)); }
.chapters i::after { content: ""; position: absolute; inset: 0; border-radius: 2px; background: var(--ch); transform-origin: 0 50%; transform: scaleX(var(--p, 0)); }
.chapters a:focus-visible { outline-offset: -2px; }
.clock { align-self: center; font: 500 15px/1 var(--display); color: var(--ink-2); font-variant-numeric: tabular-nums; white-space: nowrap; min-width: 5.6em; text-align: right; }
@media (max-width: 1000px) { .clock { display: none; } }
@media (max-width: 720px) {
  .top .wrap { gap: 10px; min-height: 48px; } .mark { display: none; }
  .chapters { gap: 6px; margin-left: 0; } .chapters a { flex: 1 1 auto; font-size: 12.5px; padding-bottom: 8px; } .chapters i { bottom: 8px; height: 3px; }
}
/* the theme button: it shows the theme it switches to, a moon while the page is light and a sun while it is dark */
.theme { all: unset; box-sizing: border-box; flex: none; align-self: center; display: grid; place-items: center; width: 34px; height: 34px; margin-left: -10px; border-radius: 50%; color: var(--ink-2); cursor: pointer; -webkit-tap-highlight-color: transparent; }
.theme:hover { color: var(--ink); background: var(--panel); } .theme:focus-visible { border-radius: 50%; }
.theme svg { display: block; } .theme .sun { opacity: var(--sun); } .theme .moon { opacity: var(--moon); }
@media (max-width: 720px) { .theme { margin-left: 0; } }

/* wordmark, drone, rule and buttons: shared by the hero (hero.css), the RAUM card and the closing card */
.wordmark { position: relative; display: inline-block; font: 500 clamp(52px, 9vw, 104px)/1 var(--display); letter-spacing: -.035em; margin: 0; }
.wordmark.small { font-size: clamp(40px, 6vw, 68px); }
.drone { position: absolute; width: .92em; right: -.74em; top: -.5em; transform: rotate(8deg); pointer-events: none; }
.rule { display: block; width: 56px; height: 2px; background: var(--raum); margin: 20px auto 18px; border: 0; }
.btn { display: inline-flex; align-items: baseline; gap: 8px; padding: 10px 18px; border-radius: 999px; border: 1px solid var(--ink); background: var(--ink); color: var(--on-fill); font: 500 15px/1 var(--body); text-decoration: none; cursor: pointer; }
.btn.ghost { background: var(--bg); color: var(--ink); border-color: var(--line); }
.btn[aria-disabled="true"] { background: var(--panel); color: var(--ink-3); border-color: var(--line); cursor: default; }
.btn small { font-size: 12px; font-weight: 400; }

/* panels and shots */
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); }
.stage { margin: 0; background: var(--panel); border: 1px solid var(--media-line); border-radius: var(--r); overflow: hidden; position: relative; }
.stage video, .stage > img { width: 100%; aspect-ratio: 16 / 9; object-fit: contain; background: var(--media-ground); }
.stage figcaption { font-size: 14px; color: var(--ink-2); padding: 10px 14px; line-height: 1.45; border-top: 1px solid var(--line); background: var(--bg); }
.stage .over { position: absolute; top: 10px; right: 10px; display: flex; gap: 6px; }
figure { margin: 0; }
section { padding-block: 52px; }
.shot { position: relative; display: flex; align-items: flex-end; justify-content: space-between; gap: 12px 20px; flex-wrap: wrap; padding-bottom: 14px; border-bottom: 1px solid var(--line); margin-bottom: 22px; }
.shot::after { content: ""; position: absolute; left: 0; bottom: -1px; width: 56px; height: 2px; background: var(--ch, var(--line)); }
.shot.plain::after { content: none; }
.shot-t { min-width: 0; }
.ch-tag { display: flex; align-items: center; gap: 9px; margin: 0 0 9px; max-width: none; font: 600 12.5px/1 var(--body); letter-spacing: .09em; text-transform: uppercase; color: var(--ch-ink, var(--ink-2)); }
.ch-tag b { font-weight: 600; font-variant-numeric: tabular-nums; padding-right: 9px; border-right: 1px solid color-mix(in srgb, var(--ch-ink, var(--ink-2)) 40%, transparent); }
/* a chapter opens with a rule in its colour, as wide as the page's measure */
.chapter > section:first-child { padding-top: 6px; }
.chapter > section:first-child > .wrap::before { content: ""; display: block; height: 3px; border-radius: 2px; background: var(--ch); margin-bottom: 34px; }
.shot h2 { font: 500 clamp(24px, 3vw, 34px)/1.12 var(--display); letter-spacing: -.02em; margin: 0; text-wrap: balance; }
.shot .chips { display: flex; gap: 6px; flex-wrap: wrap; }
h3 { font: 500 20px/1.25 var(--display); letter-spacing: -.01em; margin: 0 0 4px; }
.lede { font-size: 17.5px; color: var(--ink); max-width: 72ch; margin: -4px 0 20px; }
.tags { display: flex; flex-wrap: wrap; gap: 4px 18px; font-size: 13.5px; color: var(--ink-2); margin: 12px 0 0; padding: 0; list-style: none; }
.cols { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 36px; align-items: start; }
@media (max-width: 900px) { .cols { grid-template-columns: minmax(0, 1fr); gap: 22px; } section { padding-block: 38px; } .chapter > section:first-child > .wrap::before { margin-bottom: 26px; } }

/* task, budget, inputs: the three tiles of the benchmark shot */
.tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-bottom: 22px; }
@media (max-width: 900px) { .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } .tiles .tile:last-child { grid-column: 1 / -1; } .tile { padding: 16px 12px 16px; } .tile .art { height: 150px; } .tile .art svg { height: 140px; } .tile #task-view .rp-box { height: 150px; } .tiles .tile .art.inputs { height: auto; padding-block: 6px; } }
.tile { padding: 22px 20px 20px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.tile .art { height: 190px; width: 100%; display: grid; place-items: center; margin-bottom: 10px; }
.tile .art img { max-height: 190px; width: auto; border-radius: 8px; }
.tile .art svg { height: 180px; width: auto; max-width: 100%; }
.tile p { font-size: 15px; color: var(--ink-2); margin: 0; max-width: 30ch; }
.tile .more { font-size: 14.5px; color: var(--ink); margin-top: 8px; }
.plate { padding: 14px; background: var(--bg); border: 1px solid var(--line); border-radius: var(--r); }
.plate img { width: 100%; height: auto; }
.plate figcaption { font-size: 14px; color: var(--ink-2); padding: 10px 2px 0; }
.plate.narrow { max-width: 820px; margin-inline: auto; }

/* scenes */
.pick { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; }
@media (max-width: 640px) { .pick { display: flex; flex-wrap: nowrap; width: 100%; } .pick .choice { flex: 1 1 0; min-width: 0; } .pick .choice select { width: 100%; } .pick .levels { flex: none; } }
.levels { display: inline-flex; align-items: center; gap: 2px; padding: 3px; border-radius: 999px; border: 1px solid color-mix(in srgb, var(--world) 40%, var(--line)); background: var(--bg); }
.levels button { font: 600 12.5px/1 var(--body); min-width: 40px; padding: 7px 9px; border-radius: 999px; border: 0; background: none; color: var(--world); cursor: pointer; -webkit-tap-highlight-color: transparent; }
.levels button:hover { background: var(--world-soft); }
.levels button[aria-pressed="true"] { background: var(--world); color: var(--on-fill); }
/* a select as a pill: the scene of the shared selection, a method, a filter of a table */
.choice { position: relative; display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink-2); max-width: 100%; }
.choice select { appearance: none; -webkit-appearance: none; max-width: 100%; font: 500 13.5px/1.2 var(--body); color: var(--ink); background: var(--bg); border: 1px solid var(--line-2); border-radius: 999px; padding: 7px 30px 7px 13px; cursor: pointer; text-overflow: ellipsis; }
.choice select:hover { border-color: var(--ink-3); } .choice select:focus-visible { outline: 2px solid var(--bench); outline-offset: 2px; }
.choice::after { content: ""; position: absolute; right: 13px; top: 50%; width: 6px; height: 6px; border-right: 1.6px solid var(--ink-2); border-bottom: 1.6px solid var(--ink-2); transform: translateY(-70%) rotate(45deg); pointer-events: none; }
.scenes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 980px) { .scenes { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .scenes { grid-template-columns: minmax(0, 1fr); } }
.scene { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 10px; }
.scene header { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.scene h3 { font: 500 17px/1.2 var(--display); margin: 0; }
.scene small { display: block; font: 400 12px/1.4 var(--body); color: var(--ink-3); }
.counts { display: flex; gap: 10px; font: 500 13.5px/1 var(--body); color: var(--ink); white-space: nowrap; font-variant-numeric: tabular-nums; }
.counts i { display: inline-block; width: 9px; height: 9px; background: var(--world); margin-right: 4px; }
.counts i.p { border-radius: 50%; }
.scene .plan { background: var(--plan-floor); border-radius: 8px; aspect-ratio: 4 / 3; display: grid; place-items: center; overflow: hidden; }
.scene .plan img { width: 100%; height: 100%; object-fit: contain; }
.scene dl { display: flex; flex-wrap: wrap; gap: 4px 16px; margin: 0; font-size: 13.5px; color: var(--ink-2); }
.scene dl div { display: flex; gap: 6px; } .scene dd { margin: 0; color: var(--ink); font-variant-numeric: tabular-nums; }
.key { display: flex; gap: 6px 16px; font-size: 13.5px; color: var(--ink-2); margin-top: 12px; flex-wrap: wrap; }
.key .lv { color: var(--ink); }
.key i { display: inline-block; width: 9px; height: 9px; margin-right: 6px; background: var(--world); } .key i.p { border-radius: 50%; }
.key .routes i { width: 16px; height: 3px; border-radius: 2px; vertical-align: middle; margin: 0 5px 0 6px; } .key i.r1 { background: var(--route-1); } .key i.r2 { background: var(--route-2); } .key i.r3 { background: var(--route-3); }

/* the nine methods of one scene and level */
.seg { display: flex; flex-wrap: wrap; gap: 6px; }
.seg button { font: 500 13.5px/1 var(--body); padding: 8px 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--bg); color: var(--ink-2); cursor: pointer; }
.seg button[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--on-fill); }
.controls { display: flex; flex-wrap: wrap; gap: 12px 26px; margin: 0 0 16px; align-items: center; }
.controls > div { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.controls .lab { font-size: 13px; color: var(--ink-2); }
.explorer { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 16px; align-items: start; }
@media (max-width: 1020px) { .explorer { grid-template-columns: minmax(0, 1fr); } }
/* the scores of one scene and level: the table and, beside it (over it on a narrow screen), how the selected measure
   is taken. The table's columns have fixed widths, so the header and the rows line up and the selected column is one
   band; its rows share the height that the panel leaves. The panel holds every card in one grid cell and so keeps
   the size of its longest card: nothing moves when another measure is selected. */
.scores { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 400px); gap: 14px; align-items: stretch; }
@media (max-width: 1079px) { .scores { grid-template-columns: minmax(0, 1fr); } .scores .minfo { order: -1; } }
.rank { padding: 10px 0; display: flex; flex-direction: column; }
.rank > [role="table"], .rank [role="rowgroup"]:last-child { flex: 1; display: flex; flex-direction: column; }
.rank .head, .rank .row { display: grid; grid-template-columns: 140px minmax(60px, 1fr) 86px 62px 88px 80px; align-items: stretch; padding: 0 8px; }
.rank .head > *, .rank .row > * { display: flex; align-items: center; min-width: 0; padding: 7px 8px; }
.rank .head { font-size: 12.5px; line-height: 1.3; color: var(--ink-2); }
.rank .v { justify-content: flex-end; text-align: right; }
.rank .row { flex: 1; font-size: 14.5px; }
.rank .bar .strip { flex: 1; }
.rank .name { gap: 8px; white-space: nowrap; overflow: hidden; }
.rank .name i { width: 3px; height: 15px; border-radius: 2px; flex: none; }
.rank .ours .name { font-weight: 600; }
.rank .row .v { font: 500 14.5px/1 var(--body); font-variant-numeric: tabular-nums; }
.rank .sel { background: var(--bench-soft); } .rank .row .sel { font-weight: 600; }
.rank .head .sel { border-radius: 8px 8px 0 0; } .rank .row:last-child .sel { border-radius: 0 0 8px 8px; }
.rank .none { color: var(--ink-3); }
.rank .head button { all: unset; cursor: pointer; text-decoration: underline dotted var(--ink-3); text-underline-offset: 3px; -webkit-tap-highlight-color: transparent; }
.rank .head button:hover, .rank .head button[aria-pressed="true"] { color: var(--ink); }
.rank .head button[aria-pressed="true"] { font-weight: 600; text-decoration-color: transparent; }
.rank .head button:focus-visible, .data th button:focus-visible { outline: 2px solid var(--bench); outline-offset: 3px; border-radius: 4px; }
@media (max-width: 640px) { .rank .head, .rank .row { grid-template-columns: 118px minmax(40px, 1fr) 84px; } .rank .v:not(.sel) { display: none; } }
.minfo { display: grid; padding: 16px 18px 14px; background: var(--bench-soft); border: 1px solid color-mix(in srgb, var(--bench) 30%, var(--line)); border-radius: var(--r); }
.mi { grid-area: 1 / 1; min-width: 0; display: flex; flex-direction: column; gap: 10px; visibility: hidden; opacity: 0; }
.mi.on { visibility: visible; opacity: 1; transition: opacity .2s ease; }
.mi-side { display: contents; }
.mi-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 2px 12px; }
.mi h4 { font: 500 19px/1.25 var(--display); letter-spacing: -.01em; margin: 0; }
.mi h4 i, .mi-eq i, .mi-split .under i { font-family: Georgia, "Times New Roman", serif; font-style: italic; }
.mi-unit { font-size: 12.5px; color: var(--ink-2); }
.mi p { margin: 0; max-width: none; font-size: 14.5px; line-height: 1.5; }
.mi sub, .mi-line sub { font-size: .72em; line-height: 0; }
.mi-fig { margin: 0; padding: 10px 12px; background: var(--bg); border-radius: 9px; }
.mi-split { display: grid; grid-template-columns: 46fr 24fr 18fr 12fr; align-items: end; }
.mi-split .ends { grid-column: 1 / -1; display: flex; justify-content: space-between; font-size: 11.5px; line-height: 1.3; color: var(--ink-3); margin-bottom: 3px; }
.mi-split > i { height: 8px; } .mi-split > i.moving { height: 16px; border-radius: 3px 0 0 3px; } .mi-split > i.waiting { border-radius: 0 3px 0 0; }
.mi-split .moving, .mi-states .moving { background: var(--raum); } .mi-split .thinking, .mi-states .thinking { background: var(--think); }
.mi-split .refused, .mi-states .refused { background: var(--refused); } .mi-split .waiting, .mi-states .waiting { background: var(--wait); box-shadow: inset 0 0 0 1px var(--line-2); }
.mi-split .under { align-self: start; display: flex; flex-direction: column; align-items: center; margin: 4px 2px 0; font-size: 12.5px; line-height: 1.2; white-space: nowrap; }
.mi-split .under::before { content: ""; align-self: stretch; height: 5px; margin-bottom: 4px; border: 1px solid var(--ink-3); border-top: 0; border-radius: 0 0 4px 4px; }
.mi-states { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 3px 12px; margin: 0; font-size: 13px; line-height: 1.4; color: var(--ink-2); }
.mi-states dt { color: var(--ink); font-weight: 500; white-space: nowrap; } .mi-states dd { margin: 0; }
.mi-states dt i { display: inline-block; width: 12px; height: 8px; border-radius: 2px; margin-right: 7px; }
.mi-cov { display: block; width: 100%; height: auto; }
.mi-cov .cone { fill: var(--bench); fill-opacity: .13; } .mi-cov .shade { fill: var(--bg); } .mi-cov .wall { fill: none; stroke: var(--ink-2); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.mi-cov .pt { fill: var(--bg); stroke: var(--ink-3); stroke-width: 1.4; } .mi-cov .pt.on { fill: var(--bench); stroke: var(--bench); }
.mi-cov .occ { fill: var(--world); } .mi-cov .cam { fill: var(--ink); }
.mi .mi-key { display: flex; flex-wrap: wrap; gap: 2px 14px; margin-top: 6px; font-size: 12.5px; color: var(--ink-2); }
.mi-key span { white-space: nowrap; }
.mi-key i { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 6px; background: var(--bg); box-shadow: inset 0 0 0 1.4px var(--ink-3); }
.mi-key i.on { background: var(--bench); box-shadow: none; } .mi-key i.occ { background: var(--world); box-shadow: none; } .mi-key i.cam { background: var(--ink); box-shadow: none; }
.mi-flow { display: flex; align-items: center; gap: 7px; }
.mi-flow span { flex: 1 1 0; min-width: 0; padding: 7px 8px; border-radius: 8px; border: 1px solid color-mix(in srgb, var(--bench) 35%, var(--line)); background: var(--bench-soft); font: 500 12.5px/1.25 var(--body); text-align: center; }
.mi-flow .arr { width: 12px; }
.mi-eq { padding: 9px 12px; background: var(--bg); border-radius: 9px; font-size: 16px; line-height: 1.2; text-align: center; white-space: nowrap; }
.frac { display: inline-flex; flex-direction: column; align-items: center; vertical-align: middle; }
.frac > span:first-child { padding: 0 5px 3px; border-bottom: 1px solid currentColor; } .frac > span:last-child { padding: 3px 5px 0; }
.mi .mi-where { font-size: 13px; line-height: 1.45; color: var(--ink-2); } .mi-where b { font-weight: 500; color: var(--ink); }
.mi .mi-dir { margin-top: auto; padding-top: 10px; border-top: 1px solid color-mix(in srgb, var(--bench) 22%, var(--line)); font-size: 13.5px; }
.mi-dir b { font-weight: 600; }
.note.mi-line { color: var(--ink); max-width: 96ch; padding: 10px 12px; background: var(--bench-soft); border-radius: 9px; }
.note.mi-line b { font-weight: 600; } .note.mi-line i { font-family: Georgia, "Times New Roman", serif; }
@media (min-width: 641px) and (max-width: 1079px) {            /* the panel over the table, wide: the text left, the diagram and the formula right */
  .mi { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 340px); grid-auto-rows: min-content; gap: 0 22px; align-content: start; }
  .mi > * { grid-column: 1; } .mi > :not(.mi-side) { margin-bottom: 10px; }
  .mi > .mi-side { display: flex; flex-direction: column; gap: 10px; grid-column: 2; grid-row: 1 / span 8; align-self: start; margin: 0; }
  .mi .mi-dir { margin: 0; }
}
@media (prefers-reduced-motion: reduce) { .mi.on { transition: none; } }
.strip { display: flex; align-items: flex-end; height: 16px; border-radius: 3px; overflow: hidden; background: var(--strip-bg); }
.strip i { display: block; height: 50%; } .strip i.moving { height: 100%; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 13px; color: var(--ink-2); padding: 10px 16px 0; border-top: 1px solid var(--line); margin-top: 6px; }
.legend i { display: inline-block; width: 16px; height: 8px; border-radius: 2px; margin-right: 6px; vertical-align: 0; }
.legend i.moving { height: 12px; vertical-align: -2px; background: var(--raum); }

/* RAUM card */
.card { text-align: center; padding: 44px 20px 36px; margin-bottom: 18px; background: var(--bg); }
.card .rule { margin: 16px auto 12px; }
.card .ch-tag { justify-content: center; margin: 0 auto 26px; font-size: 12.5px; }
.card p { margin: 0 auto; font-size: 18px; max-width: 46ch; }
.duo { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 900px) { .duo { grid-template-columns: minmax(0, 1fr); } }

/* results */

/* summary: best reconstruction, in motion, inputs */
.summary { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) minmax(0, 1.05fr); gap: 14px; }
@media (max-width: 1020px) { .summary { grid-template-columns: minmax(0, 1fr); } }
.summary .panel { padding: 18px 18px 16px; }
.summary .hint { font-size: 14px; color: var(--ink-2); margin: 0 0 8px; }
.panel-h { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 4px 12px; margin-bottom: 2px; } .panel-h .choice select { padding-block: 5px; font-size: 13px; }
.summary .hint.raum { font: 500 19px/1.2 var(--display); color: var(--raum); }
#scatter { width: 100%; height: auto; display: block; }
.summary svg text { font: 400 15px var(--body); fill: var(--ink-2); }
.summary svg .lab { fill: var(--ink); } .summary svg .big { font: 500 25px var(--display); fill: var(--raum); }
.summary svg .axis { stroke: var(--ink-3); stroke-width: 1; }
.donut { display: flex; flex-direction: column; align-items: center; margin: 2px 0 12px; }
.donut b { font: 600 17px/1.2 var(--body); margin-top: 6px; }
.rings { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 6px; }
.rings div { display: flex; align-items: center; gap: 7px; font-size: 13.5px; min-width: 0; }
.rings svg { width: 40px; height: 40px; flex: none; }
.rings span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ticks { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.ticks th { font: 400 12.5px/1.25 var(--body); color: var(--ink-2); padding: 4px 4px 8px; text-align: center; vertical-align: bottom; }
.ticks td { padding: 6px 4px; text-align: center; border-top: 1px solid var(--line); }
.ticks td:first-child, .ticks th:first-child { text-align: left; white-space: nowrap; }
.ticks .yes { color: var(--res-yes); font-weight: 600; font-size: 17px; } .ticks .no { color: var(--ink-3); } .ticks .gen { color: var(--res-gen); font-size: 15px; }
.ticks tr.ours td { font-weight: 600; background: var(--raum-soft); border-top-color: transparent; } .ticks tr.ours + tr td { border-top-color: transparent; }
.ticks tr.ours td:first-child { border-radius: 8px 0 0 8px; } .ticks tr.ours td:last-child { border-radius: 0 8px 8px 0; }
.marks { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 13.5px; color: var(--ink-2); margin: 10px 0 0; }
.marks b { font-weight: 600; margin-right: 4px; }

/* tables */
.scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r); background: var(--bg); }
table.data { border-collapse: collapse; width: 100%; font-size: 14.5px; font-variant-numeric: tabular-nums; }
.data th, .data td { padding: 10px 12px; text-align: right; white-space: nowrap; border-bottom: 1px solid var(--line); }
.data tr:last-child td { border-bottom: 0; }
.data th { font: 500 12.5px/1.3 var(--body); color: var(--ink-2); background: var(--panel); }
.data th:first-child, .data td:first-child { text-align: left; position: sticky; left: 0; background: var(--bg); z-index: 1; }
.data th:first-child { background: var(--panel); }
.data th button { all: unset; cursor: pointer; } .data th button:hover, .data th[aria-sort] button { color: var(--ink); }
.data td .sd { color: var(--ink-3); font-size: .86em; }
.data td.best { font-weight: 600; } .data tr.ours td:first-child { font-weight: 600; }
.data td:first-child i { display: inline-block; width: 3px; height: 14px; border-radius: 2px; margin-right: 8px; vertical-align: -2px; }
.data .sep { border-left: 1px solid var(--line); }
.data.heat td.h { position: relative; } .data.heat td.h span { position: relative; }
.data.heat td.h::before { content: ""; position: absolute; inset: 3px; border-radius: 5px; background: var(--world); opacity: var(--a, 0); }
.sub2 { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin: 34px 0 12px; }
.note { font-size: 13.5px; color: var(--ink-2); margin: 10px 0 0; max-width: 78ch; }

/* closing: the TL;DR, the abstract and the citation in one block */
.tldr-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.tldr-list li { position: relative; padding-left: 20px; font-size: 17px; line-height: 1.55; max-width: 92ch; text-wrap: pretty; }
.tldr-list li::before { content: ""; position: absolute; left: 0; top: .62em; width: 7px; height: 7px; border-radius: 2px; background: var(--ink-3); }
.tldr-list li.is-bench::before { background: var(--bench); } .tldr-list li.is-raum::before { background: var(--raum); }
.tldr-list li b, .tldr-list li [data-ab] { font-weight: 600; }
.tldr-list [data-ab] { font-variant-numeric: tabular-nums; white-space: nowrap; }
.tldr details.more { margin-top: 22px; } .tldr details.more p { font-size: 16px; line-height: 1.6; max-width: 92ch; margin: 12px 0 0; }
.cite { margin-top: 22px; padding-top: 16px; border-top: 1px solid var(--line); } .cite[hidden] { display: none; }
.cite-h { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; } .cite-h h3 { margin: 0; font-size: 15px; font-family: var(--body); letter-spacing: 0; color: var(--ink-2); font-weight: 400; }
.cite-h .btn { padding: 8px 14px; font-size: 14px; }
pre.bib { margin: 0; padding: 16px 18px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); overflow-x: auto; font: 13.5px/1.55 ui-monospace, "SFMono-Regular", Menlo, monospace; }
.sign { text-align: center; padding-block: 64px 14px; }
.sign p { margin: 0 auto; font-size: 17px; color: var(--ink-2); } .sign .wordmark { color: var(--ink); }
footer { border-top: 1px solid var(--line); padding-block: 22px 36px; font-size: 13.5px; color: var(--ink-2); }
footer p { max-width: none; margin: 0 0 4px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* ---- replays (replay.js): the video's race tiles, the clock and the state strip, live ---- */
section.first { padding-top: 8px; }
.rp-bar { display: flex; align-items: center; gap: 12px; margin-top: 12px; padding: 6px 14px 6px 6px; background: var(--panel); border: 1px solid var(--line); border-radius: 999px; }
.rp-play { display: grid; place-items: center; width: 34px; height: 34px; flex: none; padding: 0; border-radius: 50%; border: 0; background: var(--ink); color: var(--on-fill); cursor: pointer; -webkit-tap-highlight-color: transparent; }
.rp-play::before { content: ""; margin-left: 3px; border-left: 11px solid currentColor; border-top: 7px solid transparent; border-bottom: 7px solid transparent; }
.rp-play[data-state="playing"]::before { margin: 0; width: 4px; height: 14px; border: 0; border-left: 4px solid currentColor; border-right: 4px solid currentColor; }
.rp-range { flex: 1; min-width: 60px; accent-color: var(--think); }
.rp-time { font: 500 16px/1 var(--display); font-variant-numeric: tabular-nums; min-width: 5.4em; text-align: right; white-space: nowrap; }
.rp-plan { display: block; width: 100%; background: var(--plan-ground); border-radius: 6px; }
.rp-strip { display: block; width: 100%; height: 12px; border-radius: 2px; margin-top: 8px; }
.rp-strip.big { height: 22px; border-radius: 4px; margin-top: 0; }
/* what a replay says while its cell is on the way */
.rp-wait { position: absolute; z-index: 1; left: 50%; top: 50%; transform: translate(-50%, -50%); margin: 0; max-width: none; padding: 7px 13px; border-radius: 999px; background: var(--tag-glass); font-size: 13px; color: var(--ink-2); white-space: nowrap; pointer-events: none; }
.rp-wait[hidden] { display: none; }
/* the nine tiles: the bar over them; a tile is a name, the plan in a box of one size with its two numbers beside
   it, and the strip of the flight's states */
.rp-race { position: relative; }
.rp-race > .rp-bar { margin: 0 0 12px; }
.rp-key { display: none; margin: -4px 2px 8px; max-width: none; font-size: 12.5px; color: var(--ink-2); }
.rp-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.rp-tile { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 9px 11px 11px; min-width: 0; }
.rp-tile.ours { border: 2px solid var(--ink); padding: 8px 10px 10px; }
.rp-tile.none { opacity: .55; }
.rp-name { display: flex; align-items: center; gap: 8px; font: 500 15px/1.2 var(--body); margin-bottom: 7px; white-space: nowrap; overflow: hidden; }
.rp-name i { width: 3px; height: 15px; border-radius: 2px; flex: none; }
.rp-name b { font: 600 11px/1 var(--body); color: var(--on-fill); background: var(--raum); border-radius: 999px; padding: 3px 7px; }
.rp-body { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 12px; align-items: center; }
.rp-tile .rp-plan { height: 152px; }
.rp-stats { display: flex; flex-direction: column; min-width: 0; }
.rp-stats small { font-size: 11.5px; color: var(--ink-3); line-height: 1.3; }
.rp-stats span { font: 500 clamp(15px, 1.7vw, 21px)/1.2 var(--display); color: var(--ink-2); font-variant-numeric: tabular-nums; margin-bottom: 6px; white-space: nowrap; }
.rp-stats span:empty { display: none; }
.rp-tile.ours .rp-stats span { color: var(--ink); }
@media (max-width: 640px) {
  .rp-grid { gap: 6px; } .rp-tile { padding: 6px 6px 7px; border-radius: 9px; } .rp-tile.ours { padding: 5px 5px 6px; }
  .rp-name { font-size: 12.5px; gap: 5px; margin-bottom: 5px; } .rp-name b { display: none; }
  .rp-body { grid-template-columns: minmax(0, 1fr); gap: 4px; } .rp-tile .rp-plan { height: auto; aspect-ratio: 1; }
  .rp-stats { flex-direction: row; justify-content: space-between; gap: 0 6px; } .rp-stats small { display: none; } .rp-stats span { margin: 0; font-size: 12.5px; }
  .rp-strip { height: 8px; margin-top: 4px; } .rp-key { display: block; }
}
.rp-solo { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 22px; align-items: start; }
@media (max-width: 900px) { .rp-solo { grid-template-columns: minmax(0, 1fr); } }
.rp-stage { position: relative; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 12px; }
.rp-stage .rp-plan { aspect-ratio: 4 / 3; max-height: 500px; }
/* the strip of the flight's states is the slider of its time: an unseen range lies over it */
.rp-scrub { position: relative; margin-top: 10px; border-radius: 4px; }
.rp-over { position: absolute; left: 0; top: -8px; width: 100%; height: calc(100% + 16px); margin: 0; opacity: 0; cursor: ew-resize; }
.rp-scrub:has(.rp-over:focus-visible) { outline: 2px solid var(--bench); outline-offset: 3px; }
.rp-side { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; padding-top: 6px; }
.rp-now { display: flex; align-items: center; gap: 14px; }
.rp-now .rp-play { width: 46px; height: 46px; }
.rp-clock { font: 500 clamp(40px, 5.4vw, 64px)/1 var(--display); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.rp-pill { font: 500 22px/1 var(--display); padding: 10px 18px; border-radius: 999px; color: var(--on-fill); background: var(--m, var(--raum)); }
.rp-pill[data-k="t"] { background: var(--think); } .rp-pill[data-k="r"] { background: var(--refused); } .rp-pill[data-k="w"] { background: var(--wait); color: var(--ink); }
.rp-facts { display: grid; grid-template-columns: auto auto; gap: 2px 14px; margin: 0; font-size: 15px; color: var(--ink-2); }
.rp-facts dd { margin: 0; font: 500 17px/1.3 var(--display); color: var(--ink); font-variant-numeric: tabular-nums; }

/* ---- inputs tile ---- */
.tile .art.inputs { display: flex; flex-wrap: wrap; gap: 8px; align-content: center; justify-content: center; height: 190px; }
.in { display: flex; flex-direction: column; align-items: center; min-width: 84px; padding: 9px 10px; border-radius: 10px; border: 1.5px solid var(--m, var(--think)); }
.in b { font: 600 14px/1.2 var(--body); } .in small { font-size: 11.5px; line-height: 1.3; }
.in.on { background: var(--m, var(--think)); color: var(--on-fill); }
.in.off { border-style: dashed; border-color: var(--line); color: var(--ink-3); background: var(--bg); }
.tile-pick { margin-top: 12px; }
.tile #task-view { position: relative; } .rp-box { position: relative; } .rp-box > canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.tile #task-view .rp-box { width: 100%; max-width: 260px; height: 190px; margin-inline: auto; } .tile #task-view canvas { background: transparent; }

/* ---- diagrams: parts are buttons; the note says what the selected part does ---- */
.dia { border: 1px solid var(--line); border-radius: var(--r); padding: 18px 18px 14px; display: flex; flex-direction: column; gap: 12px; background: var(--bg); }
.dia-row, .lane { display: flex; align-items: stretch; gap: 10px; flex-wrap: wrap; }
.dia-lab { flex: 0 0 104px; display: flex; flex-direction: column; justify-content: center; font: 500 16px/1.2 var(--display); }
.dia-lab small { font: 400 12px/1.35 var(--body); color: var(--ink-2); margin-top: 3px; }
.node { font: 500 14.5px/1.25 var(--body); text-align: left; padding: 9px 12px; border-radius: 9px; border: 1px solid var(--line); background: var(--panel); color: var(--ink); cursor: pointer; display: flex; flex-direction: column; gap: 2px; justify-content: center; }
.node b { font-weight: 600; } .node small { font-size: 12px; color: var(--ink-2); font-weight: 400; }
.node.world { border-color: color-mix(in srgb, var(--world) 40%, var(--line)); background: var(--world-soft); }
.node.bench, .group.bench .node { border-color: color-mix(in srgb, var(--bench) 35%, var(--line)); background: var(--bench-soft); }
.group.raum .node { border-color: color-mix(in srgb, var(--raum) 40%, var(--line)); background: var(--raum-soft); }
.node[aria-pressed="true"], .link[aria-pressed="true"] { outline: 2px solid var(--ink); outline-offset: 1px; }
.dia-row.mid { align-items: center; }
.group { display: flex; flex-direction: column; gap: 6px; padding: 10px; border-radius: 12px; flex: 1 1 190px; min-width: 0; }
.group.bench { background: var(--bench-group); } .group.raum { background: var(--raum-group); }
.g-title { font: 600 15px/1.2 var(--display); margin-bottom: 2px; } .group.bench .g-title { color: var(--bench); } .group.raum .g-title { color: var(--raum-ink); }
.links { flex: 1.2 1 220px; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.link { font: 500 13.5px/1.25 var(--body); padding: 7px 10px; border: 0; border-bottom: 2px solid var(--bench); background: none; color: var(--ink); cursor: pointer; display: flex; justify-content: space-between; gap: 8px; text-align: left; }
.link.to::after { content: "\2192"; color: var(--bench); font-weight: 600; } .link.from::before { content: "\2190"; color: var(--raum); font-weight: 600; }
.link.from { border-color: var(--raum); justify-content: flex-start; } .link.dashed { border-bottom-style: dashed; color: var(--ink-2); }
.dia-note { margin: 2px 0 0; padding: 10px 12px; background: var(--panel); border-radius: 9px; font-size: 15px; max-width: none; min-height: 2.9em; }
.lane { position: relative; align-items: center; padding: 10px; border-radius: 12px; }
.lane.sensors { padding-block: 0; } .lane.think { background: var(--lane-think); } .lane.act { background: var(--lane-act); }
.lane.think .dia-lab b { color: var(--raum-ink); } .lane.act .dia-lab b { color: var(--act-ink); }
.lane .node { background: var(--bg); flex: 1 1 130px; }
.lane.think .node { border-color: color-mix(in srgb, var(--raum-ink) 35%, var(--line)); } .lane.act .node { border-color: color-mix(in srgb, var(--act-ink) 40%, var(--line)); }
.arr { flex: none; width: 18px; height: 2px; background: currentColor; position: relative; color: var(--ink-3); }
.arr::after { content: ""; position: absolute; right: -1px; top: -4px; border-left: 7px solid currentColor; border-top: 5px solid transparent; border-bottom: 5px solid transparent; }
.out { font: 600 14px/1.2 var(--body); white-space: nowrap; } .lane.think .out { color: var(--raum-ink); } .lane.act .out { color: var(--act-ink); }
.notgiven { font-size: 13px; color: var(--ink-2); font-style: italic; align-self: center; }
.cross { display: flex; justify-content: space-around; font-size: 12.5px; color: var(--ink-2); padding-left: 114px; margin-block: -4px; }
.pulse { position: absolute; left: 0; bottom: 3px; width: 26px; height: 3px; border-radius: 2px; background: currentColor; opacity: .7; }
.lane.think .pulse { color: var(--raum-ink); } .lane.act .pulse { color: var(--act-ink); }
@media (prefers-reduced-motion: no-preference) {
  .lane.think .pulse { animation: lane 10s linear infinite; } .lane.act .pulse { animation: lane 1s linear infinite; }
  @keyframes lane { from { left: 0; } to { left: calc(100% - 26px); } }
}
@media (max-width: 700px) { .dia-lab { flex-basis: 100%; } .cross { display: none; } .arr { display: none; } }

/* ---- scene viewer: the six scenes as a strip of pictures, then the film and beside it the plan in a box of the
   film's height (the same for every scene) ---- */
.sceneview { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; align-items: stretch; }
.scene-list { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; }
.scene-row { position: relative; display: block; aspect-ratio: 16 / 9; min-width: 0; padding: 0; overflow: hidden; border-radius: 10px; border: 1px solid var(--line); background: var(--s3-void); color: var(--ink); cursor: pointer; font: inherit; text-align: left; -webkit-tap-highlight-color: transparent; }
.scene-row img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: scale .5s cubic-bezier(.2, .7, .2, 1); }
.scene-row:hover img { scale: 1.05; }
.scene-row .cap { position: absolute; left: 0; right: 0; bottom: 0; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 6px 9px; background: var(--tag-glass); }
.scene-row b { font: 500 14px/1.2 var(--display); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.scene-row .counts { position: absolute; top: 6px; right: 6px; padding: 4px 7px; border-radius: 999px; background: var(--tag-glass); font-size: 12px; gap: 7px; } .scene-row .counts i { width: 7px; height: 7px; margin-right: 3px; }
.scene-row[aria-pressed="true"] { border-color: var(--world); box-shadow: 0 0 0 2px var(--world); }
.scene-row[aria-pressed="true"] .cap { background: var(--world); color: var(--on-fill); }
@media (max-width: 760px) { .scene-list { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; } .scene-row { aspect-ratio: 4 / 3; } .scene-row .cap { padding: 5px 7px; } .scene-row b { font-size: 12.5px; white-space: normal; } .scene-row .counts { top: 4px; right: 4px; padding: 3px 6px; font-size: 11px; gap: 5px; } }
.scene-stage { position: relative; display: flex; flex-direction: column; min-width: 0; padding: 12px; }
.plan-box { position: relative; flex: 1 1 auto; display: flex; flex-direction: column; min-height: 0; }
.plan-box .rp-box { flex: 1 1 auto; min-height: 300px; }
.scene-facts { display: flex; flex-wrap: wrap; gap: 4px 20px; margin: 10px 2px 0; font-size: 13.5px; color: var(--ink-2); }
.scene-facts div { display: flex; gap: 6px; } .scene-facts dd { margin: 0; color: var(--ink); }
@media (prefers-reduced-motion: reduce) { .scene-row img { transition: none; } .scene-row:hover img { scale: none; } }
.tip { font-size: 13.5px; color: var(--ink); margin: 4px 0 0; min-height: 1.5em; }
#scatter circle { cursor: pointer; }

/* the camera film beside the plan (page.js, assets/flythrough) */
.sceneview.filmed { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); }
.sceneview.filmed .scene-list { grid-column: 1 / -1; }
@media (max-width: 860px) { .sceneview.filmed { grid-template-columns: minmax(0, 1fr); } .plan-box .rp-box { min-height: 0; aspect-ratio: 10 / 9; } }
.scene-film { position: relative; margin: 0; min-width: 0; } .scene-film[hidden], .rp-bar[hidden] { display: none; }
.sf-time { position: absolute; z-index: 1; left: 10px; bottom: 10px; display: inline-flex; align-items: center; min-height: 34px; padding: 0 13px; border-radius: 999px; background: var(--tag-glass); color: var(--ink); font: 500 15px/1 var(--display); font-variant-numeric: tabular-nums; pointer-events: none; }
.sf-time[hidden], .hf-play[hidden] { display: none; }
.hf-play { position: absolute; z-index: 1; right: 10px; bottom: 10px; }
.sf-view { position: relative; aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--r); border: 1px solid var(--media-line); background: var(--s3-void); cursor: pointer; }
.sf-poster, .sf-reel, .sf-video { position: absolute; inset: 0; width: 100%; height: 100%; } .sf-poster, .sf-video { object-fit: cover; }
.sf-poster:not([src]) { visibility: hidden; }
/* one film per level seen, stacked: the chosen level's fades in on top of the one before, which stays opaque under it meanwhile */
.sf-reel { isolation: isolate; } .sf-video { opacity: 0; transition: opacity .25s linear; } .sf-video.on { opacity: 1; }
.sf-tag { position: absolute; z-index: 1; top: 10px; left: 10px; display: flex; align-items: center; gap: 10px; padding: 6px 11px; border-radius: 999px; background: var(--tag-glass); color: var(--world); font: 600 13px/1 var(--body); pointer-events: none; }
.sf-tag:empty { display: none; }
.sf-none { display: none; position: absolute; inset: 0; margin: 0; max-width: none; place-items: center; text-align: center; font-size: 14px; color: var(--ink-2); }
.scene-film.none .sf-view { cursor: default; } .scene-film.none .sf-none { display: grid; } .scene-film.none .sf-poster, .scene-film.none .sf-reel { display: none; }
.key .cam[hidden] { display: none; } .key .cam i { border-radius: 50%; background: var(--ink); }
@media (prefers-reduced-motion: reduce) { .sf-video { transition: none; } }
.rp-gloss { margin: 2px 0 0; font-size: 13.5px; color: var(--ink-2); display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; }
.rp-gloss dt { color: var(--ink); font-weight: 500; white-space: nowrap; } .rp-gloss dd { margin: 0; }
.rp-gloss i { display: inline-block; width: 16px; height: 8px; border-radius: 2px; margin-right: 7px; }
.rp-gloss [data-k="m"] i { background: var(--m, var(--raum)); height: 12px; vertical-align: -2px; }
.rp-gloss [data-k="t"] i { background: var(--think); } .rp-gloss [data-k="r"] i { background: var(--refused); } .rp-gloss [data-k="w"] i { background: var(--wait); outline: 1px solid var(--line-2); }

/* ---- scored views and comparisons (views.js) ---- */
.vw-grid { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr); gap: 16px; align-items: start; }
@media (max-width: 900px) { .vw-grid { grid-template-columns: minmax(0, 1fr); } }
.vw-stage { position: relative; padding: 12px; }
.vw-plan { display: block; width: 100%; aspect-ratio: 10 / 9; max-height: 470px; background: var(--plan-ground); border-radius: 6px; cursor: pointer; }
.vw-legend { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; font-size: 13px; color: var(--ink-2); margin-top: 10px; min-height: 1.4em; }
.vw-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 6px; }
.vw-ramp { display: inline-block; width: 120px; height: 10px; border-radius: 5px; background: linear-gradient(90deg, var(--ramp-lo), var(--ramp-hi)); }
.vw-of { margin-left: 6px; color: var(--ink); }
.vw-opts { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line); }
.vw-opts .seg button { font-size: 12.5px; padding: 7px 11px; }
.vw-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 14px; min-height: 36px; margin-bottom: 10px; }
.vw-head { font-size: 14.5px; margin: 0; max-width: none; }
.vw-nav { display: inline-flex; align-items: center; gap: 4px; } .vw-nav[hidden] { display: none; }
.vw-step { display: grid; place-items: center; width: 34px; height: 34px; padding: 0; border-radius: 50%; border: 1px solid var(--line); background: var(--bg); color: var(--ink); font: 500 15px/1 var(--body); cursor: pointer; }
.vw-step:hover { border-color: var(--ink-3); }
.vw-where { min-width: 4.4em; text-align: center; font-size: 13.5px; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.vw-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; } .vw-tiles.one { grid-template-columns: minmax(0, 340px); }
.vw-tile { margin: 0; } .vw-img { aspect-ratio: 1; background-color: var(--panel); background-repeat: no-repeat; border-radius: 6px; border: 1px solid var(--line); }
.vw-tile figcaption { display: flex; justify-content: space-between; gap: 6px; font-size: 13px; color: var(--ink-2); padding: 4px 2px 0; }
.vw-tile figcaption b { color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; }
.scroll.tall { max-height: 560px; overflow: auto; } .scroll.tall thead th { position: sticky; top: 0; z-index: 2; }
.sub2 .btn { padding: 8px 14px; font-size: 14px; }

/* ---- navigable reconstructions (scene3d.js) ---- */
details.more { margin-top: 28px; border-top: 1px solid var(--line); padding-top: 14px; } details.more summary { cursor: pointer; font-size: 15px; color: var(--ink-2); }
.s3-view { position: relative; overflow: hidden; background: var(--bg); cursor: grab; touch-action: pan-y; outline: none; user-select: none; margin-top: 4px; }
.s3-view:active { cursor: grabbing; } .s3-view:focus-visible { box-shadow: 0 0 0 2px var(--ink); } .s3-view.engaged { touch-action: none; }
.s3-view [hidden] { display: none !important; }
.s3-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.s3-tiles { position: absolute; inset: 0; pointer-events: none; }
.s3-tile { position: absolute; overflow: hidden; } .s3-tile.gt { background: var(--s3-void); }
.s3-gtimg { position: absolute; top: 0; left: 50%; transform: translateX(-50%); background-repeat: no-repeat; display: none; } .s3-tile.gt.has .s3-gtimg { display: block; }
.s3-gtnote { position: absolute; inset: 0; margin: 0; display: grid; place-items: center; text-align: center; padding: 34px 14px 14px; font-size: 13px; color: var(--ink-2); max-width: none; } .s3-tile.gt.has .s3-gtnote { display: none; }
/* a still of a pane (assets/ui/s3): the entrance, and a pane whose model is on its way. It is there at once and leaves softly. */
.s3-still { position: absolute; inset: 0; background-repeat: no-repeat; opacity: 0; transition: opacity .5s; } .s3-tile.still .s3-still { opacity: 1; transition: none; }
#scene3d.idle .s3-tile:not(.gt):not(.none) { background: var(--s3-void); }
.s3-tag { position: absolute; top: 8px; left: 8px; max-width: calc(100% - 16px); display: flex; gap: 8px; align-items: baseline; padding: 3px 8px 3px 9px; border-radius: 6px; background: var(--tag-glass); font-size: 13px; font-weight: 500; border-left: 3px solid var(--c, var(--think)); white-space: nowrap; overflow: hidden; }
.s3-tag span { overflow: hidden; text-overflow: ellipsis; } .s3-tag b { font-weight: 600; font-variant-numeric: tabular-nums; } .s3-tag b:empty { display: none; }
/* panes too small for a line: the name above its number */
.s3-tiles.tight .s3-tag { top: 3px; left: 3px; max-width: calc(100% - 6px); flex-direction: column; align-items: flex-start; gap: 1px; padding: 2px 5px 2px 4px; border-left-width: 2px; border-radius: 4px; font-size: 10.5px; line-height: 1.2; }
.s3-tiles.tight .s3-tag span { max-width: 100%; }
/* the entrance: the stills under a light veil, one action, the size as a remark */
.s3-poster { position: absolute; inset: 0; display: grid; place-items: center; padding: 12px; text-align: center; cursor: pointer; background: color-mix(in srgb, var(--bg) 22%, transparent); transition: background .2s; }
.s3-poster:hover { background: color-mix(in srgb, var(--bg) 8%, transparent); }
.s3-entry { display: grid; justify-items: center; gap: 8px; padding: 16px 20px 12px; border-radius: 22px; background: var(--tag-glass); border: 1px solid var(--glass-line); backdrop-filter: blur(10px); }
#scene3d .btn { align-items: center; justify-content: center; }
#scene3d .s3-go { min-height: 48px; padding: 0 26px; font-size: 17px; font-weight: 600; }
.s3-poster-note { margin: 0; max-width: 40ch; font-size: 13px; color: var(--ink-2); } .s3-poster-note:empty { display: none; }
/* the hint over the panes: the two gestures of this device, and "Demo" while the camera moves by itself */
.s3-coach { position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px 18px; width: max-content; max-width: calc(100% - 16px); padding: 8px 16px; border-radius: 22px;
  background: var(--tag-glass); border: 1px solid var(--glass-line); backdrop-filter: blur(10px); font-size: 14px; font-weight: 500; color: var(--ink); pointer-events: none; }
.s3-coach.bare { bottom: 66px; padding: 5px 12px; } .s3-coach.bare .s3-tip { display: none; }
.s3-tip { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; transition: opacity .5s; } .s3-tip.done { opacity: 0; }
.s3-demo { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--bench); }
.s3-demo i { width: 7px; height: 7px; border-radius: 50%; background: var(--bench); }
.s3-g { flex: none; width: 51px; height: 28px; overflow: visible; }
.s3-g .r { fill: none; stroke: var(--ink-3); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.s3-g .m { fill: var(--ink); stroke: var(--bg); stroke-width: 1.2; stroke-linejoin: round; }
.s3-g .k rect { fill: var(--bg); stroke: var(--ink-2); stroke-width: 1; } .s3-g .k text { font: 600 7.5px/1 var(--body); fill: var(--ink); text-anchor: middle; }
@media (prefers-reduced-motion: no-preference) {
  .s3-g .slide { animation: s3-slide 1.8s ease-in-out infinite alternate; } .s3-g .lift { animation: s3-lift 1.6s ease-in-out infinite alternate; }
  .s3-g .k rect { animation: s3-key 2.4s infinite; } .s3-g .k text { animation: s3-keytext 2.4s infinite; }
  .s3-g .k2 rect, .s3-g .k2 text { animation-delay: .6s; } .s3-g .k3 rect, .s3-g .k3 text { animation-delay: 1.2s; } .s3-g .k4 rect, .s3-g .k4 text { animation-delay: 1.8s; }
  .s3-demo i, .s3-state.load { animation: s3-pulse 1.5s ease-in-out infinite; }
}
@keyframes s3-slide { from { transform: translateX(-9px); } to { transform: translateX(9px); } }
@keyframes s3-lift { from { transform: translateY(4px); } to { transform: translateY(-4px); } }
@keyframes s3-key { 0%, 22%, 100% { fill: var(--bg); } 4%, 16% { fill: var(--ink); } }
@keyframes s3-keytext { 0%, 22%, 100% { fill: var(--ink); } 4%, 16% { fill: var(--bg); } }
@keyframes s3-pulse { 50% { opacity: .5; } }
.s3-touch { position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); min-height: 44px; }
.s3-exit { position: absolute; right: 10px; top: 10px; min-height: 40px; padding: 6px 14px; border-radius: 6px; border: 1px solid var(--line); background: var(--bg); color: var(--ink); font: inherit; font-size: 14px; cursor: pointer; }
/* under the panes: the plan, and beside it what to do (on a narrow window: what to do first) */
.s3-under { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 18px; align-items: start; margin-top: 14px; }
#scene3d.idle .s3-under { display: none; }
@media (max-width: 760px) { .s3-under { grid-template-columns: minmax(0, 1fr); } .s3-ctl { order: -1; } }
.s3-mapbox { padding: 10px; } .s3-map { display: block; margin-inline: auto; background: var(--plan-ground); border-radius: 6px; cursor: pointer; max-width: 100%; }
.s3-ctl { display: grid; gap: 12px; align-content: start; }
.s3-bar, .s3-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.s3-bar .btn, .s3-row .btn { min-height: 40px; padding: 0 16px; font-size: 14.5px; } .s3-bar .s3-ic, .s3-row .s3-ic { width: 40px; padding: 0; }
.s3-bar .s3-next { padding: 0 20px; font-weight: 600; } .s3-gap { flex: 1; }
.s3-cap { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 18px; margin: 0; max-width: none; font-size: 14.5px; }
.s3-viewlab { color: var(--ink); font-variant-numeric: tabular-nums; } .s3-viewlab:empty { display: none; }
.s3-pale { display: inline-flex; align-items: center; gap: 7px; font-size: 13.5px; color: var(--ink-2); } .s3-pale i { width: 14px; height: 14px; border-radius: 3px; background: var(--s3-unseen); border: 1px solid var(--line-2); }
/* behind "More": which panes, how much detail, every scored view in turn, what the viewer draws */
.s3-more { display: grid; gap: 10px; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--r); background: var(--panel); }
.s3-row .lab { min-width: 9em; font-size: 13px; color: var(--ink-2); } .s3-row .s3-viewlab { font-size: 13.5px; color: var(--ink-2); }
.s3-stats { margin: 0; max-width: none; font-size: 12.5px; color: var(--ink-2); font-variant-numeric: tabular-nums; } .s3-stats:empty { display: none; }
.s3-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.s3-chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 9px; border-radius: 6px; border: 1px solid var(--line); background: var(--bg); font: inherit; font-size: 13px; color: var(--ink-2); cursor: pointer; }
.s3-chip i { width: 3px; height: 13px; border-radius: 2px; opacity: .35; } .s3-chip[aria-pressed="true"] { color: var(--ink); border-color: var(--ink); } .s3-chip[aria-pressed="true"] i { opacity: 1; }
/* behind "?": every key, or every touch gesture */
.s3-hint { margin: 0; max-width: none; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; }
.s3-hint span { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.s3-hint kbd { font: 500 12px/1 var(--body); padding: 4px 6px; border: 1px solid var(--line-2); border-radius: 5px; background: var(--panel); color: var(--ink); }
.s3-why { margin: 0; font-size: 14.5px; max-width: none; } .s3-why:empty { display: none; }
.s3-tile.ours { box-shadow: inset 0 0 0 3px var(--raum); }
.s3-tile.gt.live { background: none; } .s3-tile.gt.live .s3-gtimg, .s3-tile.gt.live .s3-gtnote { display: none; }
.s3-tile.none { background: repeating-linear-gradient(135deg, var(--s3-void) 0 10px, var(--s3-void-2) 10px 20px); } .s3-tile.none .s3-tag { color: var(--ink-2); }
/* a ground-truth pane that shows the scored views only: off a scored view, one step back to the nearest; what a pane
   waits for (its files, the remote host); the scene's source and terms; and the controls a scene without 3D does not show */
#scene3d [hidden] { display: none !important; }
.s3-near { position: absolute; left: 50%; bottom: 12px; transform: translateX(-50%); display: none; padding: 7px 13px; font-size: 13px; white-space: nowrap; pointer-events: auto; }
.s3-tile.gt:not(.has):not(.live):not(.still):not(.wait) .s3-near { display: inline-flex; } .s3-tile.gt.wait .s3-gtnote, #scene3d .s3-view.demo .s3-near { display: none; }      /* wait: the scene is on its way, the pane says so; demo: the camera comes back to the scored view by itself */
.s3-tiles.tight .s3-near { bottom: 5px; width: 30px; height: 30px; padding: 0; font-size: 0; align-items: center; justify-content: center; }
.s3-tiles.tight .s3-near::before { content: ''; width: 10px; height: 10px; border-radius: 50%; background: var(--bench); }      /* the mark of a scored position on the plan */
.s3-tiles.tight .s3-gtnote, .s3-tiles.tight .s3-state { display: none; }
.s3-state { position: absolute; left: 8px; right: 8px; top: 42px; margin: 0; max-width: none; padding: 6px 10px; border-radius: 6px; background: var(--tag-glass); color: var(--ink); font-size: 13px; line-height: 1.35; text-align: center; }
.s3-state.load { left: 50%; right: auto; top: 50%; transform: translate(-50%, -50%); width: max-content; padding: 4px 12px; border-radius: 999px; font-weight: 500; }
.s3-view > .s3-state { top: auto; bottom: 66px; left: 50%; right: auto; transform: translateX(-50%); width: max-content; max-width: calc(100% - 24px); border: 1px solid var(--glass-line); } .s3-view > .s3-state.load { top: 10px; bottom: auto; transform: translateX(-50%); }
.s3-credit { margin: 12px 0 0; max-width: none; } .s3-credit a { color: inherit; }
/* a finger needs 40 px; the scenes in one row that scrolls sideways on a narrow window */
@media (pointer: coarse) { #scene3d button { min-height: 40px; min-width: 40px; } .s3-tiles.tight .s3-near { width: 40px; height: 40px; } }
@media (max-width: 600px) { #scene3d .s3-scenes { flex-wrap: nowrap; min-width: 0; max-width: 100%; } #scene3d .s3-scenes .seg { flex-wrap: nowrap; min-width: 0; overflow-x: auto; scrollbar-width: none; } #scene3d .s3-scenes .seg button { flex: none; }
  .s3-bar { gap: 6px; } .s3-bar .btn { padding: 0 12px; } .s3-bar .s3-next { padding: 0 14px; }
  .s3-coach { gap: 4px 12px; padding: 6px 12px; font-size: 12.5px; } .s3-coach .s3-g { width: 40px; height: 22px; } .s3-tip { gap: 6px; }
  .s3-entry { gap: 6px; padding: 10px 12px 8px; border-radius: 18px; } #scene3d .s3-go { min-height: 44px; padding: 0 20px; font-size: 16px; } }
#recon.no3d #scene3d, #recon.no3d .wrap > .lede, #recon.no3d .wrap > .shot, #recon.no3d .wrap > .tags, #recon.no3d details.more > summary { display: none; }
#recon.views-only .wrap > .tags { display: none; }
#recon.no3d details.more { border-top: 0; margin-top: 0; padding-top: 0; } #recon.no3d details.more .shot { margin-top: 0 !important; }
#recon.no3d details.more .shot h3 { font: 500 clamp(24px, 3vw, 34px)/1.12 var(--display); letter-spacing: -.02em; margin: 0; text-wrap: balance; }

/* ---- touch (and every narrow screen): every control is at least 40 px high ---- */
@media (any-pointer: coarse), (max-width: 760px) {
  .seg button, .choice select, .btn, .node, .link, .levels button { min-height: 40px; }
  .levels button { min-width: 44px; } .vw-opts .seg button { padding-inline: 13px; }
  .rp-play, .vw-step, .theme { width: 40px; height: 40px; } .rp-now .rp-play { width: 46px; height: 46px; }
  .chapters a { min-height: 44px; }
  .rank .head button, .data th button { display: inline-flex; align-items: center; min-height: 40px; }
  details.more summary, .tldr summary { padding-block: 10px; }
  .rp-range, .sf-time { min-height: 40px; } .rp-over { top: -10px; height: calc(100% + 20px); }
}

/* ---- a copy without the 3D models: the section keeps its title (page.js renames it) and shows the two clips ---- */
#recon.no3d .wrap > .shot { display: flex; } #recon.no3d details.more .shot { display: none; }
