/* Layout: a full-bleed 3D stage; instruments float at the edges like a test-bench HUD.
   Palette: graphite stage, ember for heat, cold blue for room air; semantic chips mark how each fact is known. */
:root {
  --stage: #1f1d1a;
  --stage-2: #2b2824;
  --panel: rgba(36, 33, 29, 0.86);
  --panel-solid: #26231f;
  --edge: rgba(236, 230, 220, 0.09);
  --edge-2: rgba(236, 230, 220, 0.18);
  --ink: #ece6dc;
  --ink-2: #aaa49a;
  --ink-3: #726d66;
  --ember: #ff7a2f;
  --ember-2: #ffb347;
  --air: #62c6ff;
  --ok: #7fd49a;
  --warn: #ffc857;
  --crit: #ff5d4f;
  --c-spec: #7fd49a;
  --c-photo: #62c6ff;
  --c-line: #c6a2ff;
  --c-g7: #f2c66d;
  --c-inf: #ff8f70;
  --f-display: "Barlow Condensed", "Arial Narrow", "Roboto Condensed", sans-serif;
  --f-body: "IBM Plex Sans", "Segoe UI", system-ui, sans-serif;
  --f-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --gl: max(16px, env(safe-area-inset-left, 0px));
  --gr: max(16px, env(safe-area-inset-right, 0px));
  --dock-w: 212px;
  --tl-h: 168px;
  --radius: 10px;
  color-scheme: dark;
}

html, body { height: 100%; margin: 0; }
[hidden] { display: none !important; }
body {
  background: var(--stage);
  color: var(--ink);
  font: 14px/1.45 var(--f-body);
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
}
button, select, input { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--ember-2); outline-offset: 2px; }

#app {
  position: relative;
  height: 100%;
  overflow: hidden;
  background: radial-gradient(120% 90% at 50% 40%, var(--stage-2) 0%, var(--stage) 62%);
}
#gl { position: absolute; inset: 0; width: 100%; height: 100%; display: block; touch-action: none; cursor: grab; }
#gl-view { position: absolute; inset: 0; width: 100%; height: 100%; display: block; pointer-events: none; }
#gl.dragging { cursor: grabbing; }
#gl.hovering { cursor: pointer; }
#leaders { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; }
#labels, #probes { position: absolute; inset: 0; pointer-events: none; }

/* ---------- masthead ---------- */
#masthead {
  position: absolute;
  top: 14px;
  left: var(--gl);
  max-width: min(440px, calc(100% - 32px));
  pointer-events: none;
}
#masthead > * { pointer-events: auto; }
.eyebrow {
  margin: 0 0 2px;
  font: 600 12px/1.2 var(--f-display);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ember-2);
}
#masthead h1 {
  margin: 0;
  font: 700 46px/0.95 var(--f-display);
  letter-spacing: 0.02em;
  text-transform: uppercase;
  text-wrap: balance;
}
#masthead h1 .model { color: var(--ember); }
.sub { margin: 4px 0 6px; color: var(--ink-2); font-size: 13px; font-variant-numeric: tabular-nums; }
.link-btn {
  background: none;
  border: 0;
  padding: 2px 0;
  color: var(--ink-2);
  text-decoration: underline;
  text-decoration-color: var(--edge-2);
  text-underline-offset: 3px;
  font-size: 12.5px;
}
.link-btn:hover { color: var(--ink); }

/* ---------- live readouts ---------- */
#readouts {
  position: absolute;
  top: 14px;
  right: var(--gr);
  display: grid;
  grid-template-columns: repeat(3, 112px);
  gap: 6px;
}
.ro {
  background: var(--panel);
  border: 1px solid var(--edge);
  border-radius: 8px;
  padding: 7px 10px 8px;
  display: grid;
  gap: 2px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.ro-k { font: 600 11px/1.1 var(--f-display); letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-2); }
.ro-v { font-family: var(--f-mono); font-variant-numeric: tabular-nums; white-space: nowrap; }
.ro-v b { font-size: 21px; font-weight: 500; }
.ro-v i { font-style: normal; color: var(--ink-3); margin-left: 3px; font-size: 12px; }
.ro-bar { height: 3px; border-radius: 2px; background: var(--edge); overflow: hidden; }
.ro-bar > span { display: block; height: 100%; width: 0%; background: var(--ember); transition: width 0.25s linear, background-color 0.4s; }
.ro.alert { border-color: var(--crit); }

/* ---------- dock ---------- */
#dock {
  position: absolute;
  left: var(--gl);
  top: 150px;
  width: var(--dock-w);
  max-height: calc(100% - 150px - var(--tl-h) - 18px);
  overflow-y: auto;
  display: grid;
  gap: 10px;
  scrollbar-width: thin;
}
.grp {
  background: var(--panel);
  border: 1px solid var(--edge);
  border-radius: var(--radius);
  padding: 9px;
  display: grid;
  gap: 5px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.grp-k { font: 600 11px/1 var(--f-display); letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-3); padding: 1px 2px 3px; }
.seg, .views { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 3px; background: rgba(0, 0, 0, 0.28); border-radius: 7px; padding: 3px; }
.seg button, .views button {
  border: 0;
  background: transparent;
  border-radius: 5px;
  padding: 6px 4px;
  font-size: 12.5px;
  color: var(--ink-2);
}
.seg button[aria-pressed="true"], .views button.on { background: var(--ink); color: #111; font-weight: 600; }
.seg button:hover, .views button:hover { color: var(--ink); }
.seg button[aria-pressed="true"]:hover, .views button.on:hover { color: #111; }
.slider { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 8px; font-size: 12px; color: var(--ink-2); padding: 2px 2px; }
.slider input { width: 100%; accent-color: var(--ember); }
.tog, .wide, .small {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  text-align: left;
  border: 1px solid transparent;
  background: rgba(255, 255, 255, 0.035);
  border-radius: 7px;
  padding: 6px 8px;
  font-size: 13px;
  color: var(--ink-2);
}
.tog:hover, .wide:hover, .small:hover { background: rgba(255, 255, 255, 0.07); color: var(--ink); }
.tog kbd {
  font: 500 10.5px/1 var(--f-mono);
  border: 1px solid var(--edge-2);
  border-radius: 4px;
  padding: 2px 4px;
  color: var(--ink-3);
  min-width: 18px;
  text-align: center;
}
.tog[aria-pressed="true"] { color: var(--ink); border-color: rgba(255, 122, 47, 0.45); background: rgba(255, 122, 47, 0.1); }
.tog[aria-pressed="true"] kbd { color: var(--ember-2); border-color: rgba(255, 179, 71, 0.5); }
.tog em { font-style: normal; color: var(--ember-2); }
.wide { justify-content: center; color: var(--ink); background: rgba(255, 122, 47, 0.16); border-color: rgba(255, 122, 47, 0.4); font-weight: 500; }
.wide svg { width: 12px; height: 12px; fill: currentColor; }
.wide.ghost { background: rgba(255, 255, 255, 0.035); border-color: var(--edge); font-weight: 400; color: var(--ink-2); }

/* ---------- callouts ---------- */
.callout {
  position: absolute;
  left: 0;
  top: 0;
  display: flex;
  align-items: center;
  gap: 6px;
  max-width: 220px;
  padding: 3px 9px 3px 4px;
  border-radius: 6px;
  border: 1px solid var(--edge);
  background: var(--panel);
  color: var(--ink);
  font-size: 12.5px;
  line-height: 1.2;
  white-space: nowrap;
  pointer-events: auto;
  will-change: transform;
  transition: opacity 0.2s, border-color 0.2s, background-color 0.2s;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.callout .n { font: 500 10.5px/1 var(--f-mono); color: var(--ink-3); background: rgba(255, 255, 255, 0.06); border-radius: 4px; padding: 3px 4px; }
.callout .t { overflow: hidden; text-overflow: ellipsis; }
.callout.right { flex-direction: row; }
.callout.hidden-part { opacity: 0.38; }
.callout:hover, .callout.hot { border-color: var(--ember-2); background: rgba(40, 26, 14, 0.92); }
.callout.sel { border-color: var(--ember); background: rgba(58, 30, 10, 0.95); }
.callout.sel .n { color: var(--ember-2); }

.probe {
  position: absolute;
  left: 0;
  top: 0;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 3px 8px 3px 6px;
  border-radius: 999px;
  background: rgba(22, 20, 18, 0.86);
  border: 1px solid var(--edge-2);
  font-size: 11.5px;
  white-space: nowrap;
  will-change: transform;
  pointer-events: auto;
}
.probe .dot { width: 9px; height: 9px; border-radius: 50%; box-shadow: 0 0 8px currentColor; background: currentColor; }
.probe .pk { color: var(--ink-2); }
.probe .pv { font: 500 12px/1 var(--f-mono); font-variant-numeric: tabular-nums; }
.probe.inside { border-style: dashed; }
.force {
  position: absolute;
  left: 0;
  top: 0;
  padding: 3px 8px;
  border-radius: 5px;
  font: 600 12px/1.15 var(--f-display);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
  will-change: transform;
  background: rgba(22, 20, 18, 0.7);
  border-left: 3px solid currentColor;
}
.force small { display: block; font: 400 11px/1.2 var(--f-body); letter-spacing: 0; text-transform: none; color: var(--ink-2); }

/* ---------- cards ---------- */
.card {
  position: absolute;
  z-index: 6;
  background: var(--panel);
  border: 1px solid var(--edge-2);
  border-radius: 12px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
}
.x {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  border: 1px solid var(--edge);
  background: rgba(255, 255, 255, 0.04);
  font-size: 18px;
  line-height: 1;
  color: var(--ink-2);
}
.x:hover { color: var(--ink); }
#detail {
  right: var(--gr);
  top: 168px;
  width: 340px;
  max-height: calc(100% - 168px - var(--tl-h) - 20px);
  overflow-y: auto;
  padding: 14px 16px 14px;
}
.d-num { margin: 0; font: 500 11px/1 var(--f-mono); color: var(--ember-2); letter-spacing: 0.08em; }
.d-name { margin: 4px 36px 2px 0; font: 700 25px/1.05 var(--f-display); letter-spacing: 0.02em; text-transform: uppercase; text-wrap: balance; }
.d-bg { margin: 0 0 8px; color: var(--ink-3); font-size: 12.5px; font-style: italic; }
.d-chips { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 8px; }
.chip {
  font: 600 10.5px/1 var(--f-display);
  letter-spacing: 0.09em;
  text-transform: uppercase;
  padding: 4px 6px 3px;
  border-radius: 4px;
  border: 1px solid currentColor;
  white-space: nowrap;
}
.chip.spec { color: var(--c-spec); }
.chip.photo { color: var(--c-photo); }
.chip.line { color: var(--c-line); }
.chip.g7 { color: var(--c-g7); }
.chip.inf { color: var(--c-inf); }
.d-body p { margin: 0 0 7px; max-width: 62ch; }
.d-body p b { color: var(--ink); font-weight: 600; }
.d-body p.dim { color: var(--ink-2); }
.d-specs { display: grid; grid-template-columns: auto 1fr; gap: 3px 10px; margin: 8px 0; font-size: 12.5px; }
.d-specs dt { color: var(--ink-3); }
.d-specs dd { margin: 0; color: var(--ink); font-variant-numeric: tabular-nums; }
.d-temp { display: grid; grid-template-columns: auto auto 1fr; align-items: center; gap: 8px; padding: 7px 9px; border-radius: 7px; background: rgba(0, 0, 0, 0.3); margin: 8px 0; }
.d-temp-k { font: 600 11px/1 var(--f-display); letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-3); }
.d-temp-v { font: 500 15px/1 var(--f-mono); font-variant-numeric: tabular-nums; }
.d-temp-bar { height: 5px; border-radius: 3px; background: var(--edge); overflow: hidden; }
.d-temp-bar > span { display: block; height: 100%; width: 0; }
.d-actions { display: flex; gap: 6px; }
.d-actions .small { width: auto; flex: 1; justify-content: center; }
.d-src { margin: 9px 0 0; font-size: 11.5px; color: var(--ink-3); }
.d-src a { color: var(--ink-2); }

#parts {
  right: var(--gr);
  top: 168px;
  width: 300px;
  max-height: calc(100% - 168px - var(--tl-h) - 20px);
  overflow-y: auto;
  padding: 14px 12px 12px 16px;
}
#parts h2 { margin: 0; font: 700 22px/1 var(--f-display); text-transform: uppercase; letter-spacing: 0.04em; }
#parts .hint { margin: 4px 0 8px; color: var(--ink-3); font-size: 12px; }
#parts ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 1px; }
#parts li button {
  width: 100%;
  display: grid;
  grid-template-columns: 26px 1fr auto;
  gap: 6px;
  align-items: center;
  text-align: left;
  border: 0;
  background: transparent;
  padding: 5px 6px;
  border-radius: 6px;
  color: var(--ink-2);
  font-size: 13px;
}
#parts li button:hover, #parts li button.sel { background: rgba(255, 255, 255, 0.06); color: var(--ink); }
#parts li .n { font: 500 11px/1 var(--f-mono); color: var(--ink-3); }
#parts li .g { font: 600 10px/1 var(--f-display); letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); }

/* ---------- build steps ---------- */
#step {
  position: absolute;
  z-index: 5;
  left: 50%;
  bottom: calc(var(--tl-h) + 22px + env(safe-area-inset-bottom, 0px));
  transform: translateX(-50%);
  width: min(560px, calc(100% - 32px));
  background: var(--panel);
  border: 1px solid rgba(255, 122, 47, 0.5);
  border-radius: 12px;
  padding: 12px 14px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.step-top { display: flex; gap: 10px; align-items: baseline; }
.step-n { font: 500 12px/1 var(--f-mono); color: var(--ember-2); white-space: nowrap; }
.step-t { font: 700 20px/1.05 var(--f-display); text-transform: uppercase; letter-spacing: 0.03em; }
.step-x { margin: 6px 0 9px; color: var(--ink-2); font-size: 13.5px; max-width: 64ch; }
.step-nav { display: flex; gap: 6px; flex-wrap: wrap; }
.step-nav button {
  border: 1px solid var(--edge-2);
  background: rgba(255, 255, 255, 0.04);
  border-radius: 7px;
  padding: 5px 12px;
  font-size: 13px;
}
.step-nav button:hover { background: rgba(255, 255, 255, 0.09); }
#step-exit { margin-left: auto; border-color: rgba(255, 122, 47, 0.55); color: var(--ember-2); }

/* ---------- timeline ---------- */
#timeline {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: var(--tl-h);
  padding-left: var(--gl);
  padding-right: var(--gr);
  padding-block: 10px calc(12px + env(safe-area-inset-bottom, 0px));
  box-sizing: border-box;
  display: grid;
  grid-template-columns: var(--dock-w) 1fr;
  gap: 14px;
  background: linear-gradient(to top, rgba(22, 20, 18, 0.94) 55%, rgba(22, 20, 18, 0));
}
.tl-ctl { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; gap: 8px 10px; align-content: end; padding-bottom: 6px; }
#btn-play {
  grid-row: span 2;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  border: 1px solid rgba(255, 122, 47, 0.6);
  background: radial-gradient(circle at 35% 30%, rgba(255, 179, 71, 0.35), rgba(255, 122, 47, 0.12));
  display: grid;
  place-items: center;
}
#btn-play svg { width: 18px; height: 18px; fill: var(--ink); }
#btn-play .i-pause { display: none; }
#btn-play.playing .i-play { display: none; }
#btn-play.playing .i-pause { display: inline; }
.tl-clock { display: grid; gap: 1px; align-self: end; min-width: 0; }
.tl-clock b { font: 500 24px/1 var(--f-mono); font-variant-numeric: tabular-nums; }
.tl-clock span { font: 600 12px/1.15 var(--f-display); letter-spacing: 0.1em; text-transform: uppercase; color: var(--ember-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tl-speed { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--ink-3); }
.tl-speed select { background: var(--panel-solid); border: 1px solid var(--edge-2); border-radius: 6px; padding: 2px 4px; font-size: 12px; }
.tl-chart { min-width: 0; display: grid; grid-template-rows: auto 1fr; gap: 4px; }
.tl-canvas { position: relative; min-height: 0; }
#chart { position: absolute; inset: 0; width: 100%; height: 100%; cursor: ew-resize; touch-action: none; }
.cap-text {
  margin: 0;
  min-height: 2.8em;
  font-size: 13px;
  line-height: 1.4;
  color: var(--ink-2);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  max-width: 120ch;
}

/* ---------- legend ---------- */
#legend {
  position: absolute;
  right: var(--gr);
  top: 192px;
  width: 348px;
  box-sizing: border-box;
  padding: 8px 10px;
  background: var(--panel);
  border: 1px solid var(--edge);
  border-radius: 8px;
}
.lg-k { display: block; font: 600 11px/1 var(--f-display); letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 5px; }
#legend-bar { width: 100%; height: 10px; border-radius: 3px; display: block; }
.lg-ticks { display: flex; justify-content: space-between; font: 400 10.5px/1 var(--f-mono); color: var(--ink-2); margin-top: 4px; }

/* ---------- sources modal ---------- */
.modal { position: absolute; inset: 0; z-index: 20; background: rgba(15, 14, 12, 0.66); display: grid; place-items: center; padding: 20px var(--gr) 20px var(--gl); }
.modal-in {
  position: relative;
  width: min(860px, 100%);
  max-height: 100%;
  overflow-y: auto;
  background: var(--panel-solid);
  border: 1px solid var(--edge-2);
  border-radius: 14px;
  padding: 20px 22px;
  box-sizing: border-box;
}
.modal h2 { margin: 0 0 8px; font: 700 28px/1 var(--f-display); text-transform: uppercase; letter-spacing: 0.03em; }
.modal h3 { margin: 18px 0 6px; font: 700 15px/1.1 var(--f-display); letter-spacing: 0.1em; text-transform: uppercase; color: var(--ember-2); }
.modal p { margin: 0 0 8px; max-width: 75ch; color: var(--ink-2); }
.modal table { border-collapse: collapse; width: 100%; font-size: 13px; }
.modal td, .modal th { text-align: left; padding: 5px 8px 5px 0; border-bottom: 1px solid var(--edge); vertical-align: top; }
.modal th { color: var(--ink-3); font-weight: 500; }
.modal td:first-child { color: var(--ink); white-space: nowrap; }
.modal .tbl { overflow-x: auto; }
.modal ol { margin: 0; padding-left: 20px; color: var(--ink-2); }
.modal ol li { margin-bottom: 4px; }
.modal a { color: var(--air); word-break: break-word; }
.legend-chips { display: flex; flex-wrap: wrap; gap: 8px 14px; margin: 6px 0 4px; }
.legend-chips span { display: flex; align-items: center; gap: 6px; color: var(--ink-2); font-size: 12.5px; }

#loading {
  position: absolute;
  inset: 0;
  z-index: 30;
  display: grid;
  place-items: center;
  background: var(--stage);
  font: 600 14px/1 var(--f-display);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-2);
  transition: opacity 0.6s;
}
#loading.done { opacity: 0; pointer-events: none; }
#loading.err { color: var(--crit); text-transform: none; letter-spacing: 0; font: 14px/1.5 var(--f-body); padding: 20px; text-align: center; }

/* ---------- responsive ---------- */
@media (max-width: 1180px) {
  #readouts { grid-template-columns: repeat(3, 100px); }
  .ro-v b { font-size: 18px; }
  #legend { width: 312px; top: 178px; }
}
@media (max-width: 900px), (max-height: 640px) {
  :root { --dock-w: 188px; --tl-h: 150px; }
  #masthead h1 { font-size: 38px; }
  #readouts { grid-template-columns: repeat(2, 96px); }
}
@media (max-width: 760px) {
  :root { --tl-h: 136px; }
  .cap-text { font-size: 11.5px; min-height: 0; }
  #masthead { top: 10px; }
  #masthead h1 { font-size: 30px; }
  .eyebrow { font-size: 10.5px; }
  .sub { font-size: 11.5px; margin: 2px 0 2px; }
  #readouts {
    top: auto;
    left: var(--gl);
    right: var(--gr);
    bottom: calc(var(--tl-h) + 52px + env(safe-area-inset-bottom, 0px));
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: minmax(84px, 1fr);
    overflow-x: auto;
    scrollbar-width: none;
  }
  .ro { padding: 5px 7px; }
  .ro-v b { font-size: 15px; }
  .ro-k { font-size: 10px; }
  #dock {
    top: auto;
    bottom: calc(var(--tl-h) + 6px + env(safe-area-inset-bottom, 0px));
    left: var(--gl);
    right: var(--gr);
    width: auto;
    max-height: none;
    display: flex;
    gap: 6px;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
  }
  .grp { display: flex; padding: 5px; gap: 4px; flex: none; align-items: center; }
  .grp-k { display: none; }
  .slider { display: none; }
  .tog, .wide, .small { width: auto; white-space: nowrap; padding: 6px 9px; font-size: 12.5px; }
  .tog kbd { display: none; }
  .seg, .views { flex: none; }
  .seg button, .views button { padding: 5px 8px; }
  #timeline { grid-template-columns: 1fr; grid-template-rows: auto 1fr; gap: 4px; padding-block: 6px calc(8px + env(safe-area-inset-bottom, 0px)); }
  .tl-ctl { grid-template-columns: auto 1fr auto; grid-template-rows: auto; align-items: center; padding-bottom: 0; }
  #btn-play { grid-row: auto; width: 40px; height: 40px; }
  .tl-clock b { font-size: 18px; }
  #detail, #parts {
    left: var(--gl);
    right: var(--gr);
    width: auto;
    top: auto;
    bottom: calc(env(safe-area-inset-bottom, 0px) + 8px);
    max-height: 56%;
  }
  #legend { left: var(--gl); right: var(--gr); width: auto; top: 104px; bottom: auto; }
  #step { bottom: calc(var(--tl-h) + 104px + env(safe-area-inset-bottom, 0px)); }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
.grp-h { position: absolute; left: 0; top: 0; width: 200px; font: 600 10px/1 var(--f-mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-3); pointer-events: none; will-change: transform; }
/* wide screens: the six readouts stand in one column at the right edge; the
   cards and the thermal legend sit left of it; the play controls are centred
   under the dock */
@media (min-width: 761px) {
  #readouts { grid-template-columns: 112px; }
  #detail, #parts, #legend { right: calc(var(--gr) + 124px); }
  #legend { top: 14px; }
  .tl-ctl { grid-template-columns: auto auto; justify-content: center; }
  #masthead { max-width: var(--dock-w); }
  .sub { font-size: 12.5px; white-space: nowrap; }
  /* the dock runs down to just above the play button (the timeline's left column is otherwise empty) */
  #dock { max-height: calc(100% - 150px - 100px - env(safe-area-inset-bottom, 0px)); z-index: 2; }
}
