/* NVIDIA Sans, self-hosted so the booth runs without Google Fonts. Static weights only:
   300/400/500/700 (+ italics); 600 falls through to 700. No NVIDIA Sans Mono exists, so
   --mono is NVIDIA Sans too; its digits are all the same width, tabular-nums below is belt and braces. */
@font-face { font-family: "NVIDIA Sans"; font-weight: 300; font-style: normal; font-display: block; src: url("fonts/NVIDIASans_Lt.ttf") format("truetype"); }
@font-face { font-family: "NVIDIA Sans"; font-weight: 300; font-style: italic; font-display: block; src: url("fonts/NVIDIASans_LtIt.ttf") format("truetype"); }
@font-face { font-family: "NVIDIA Sans"; font-weight: 400; font-style: normal; font-display: block; src: url("fonts/NVIDIASans_Rg.ttf") format("truetype"); }
@font-face { font-family: "NVIDIA Sans"; font-weight: 400; font-style: italic; font-display: block; src: url("fonts/NVIDIASans_It.ttf") format("truetype"); }
@font-face { font-family: "NVIDIA Sans"; font-weight: 500; font-style: normal; font-display: block; src: url("fonts/NVIDIASans_Md.ttf") format("truetype"); }
@font-face { font-family: "NVIDIA Sans"; font-weight: 500; font-style: italic; font-display: block; src: url("fonts/NVIDIASans_MdIt.ttf") format("truetype"); }
@font-face { font-family: "NVIDIA Sans"; font-weight: 600 700; font-style: normal; font-display: block; src: url("fonts/NVIDIASans_Bd.ttf") format("truetype"); }
@font-face { font-family: "NVIDIA Sans"; font-weight: 600 700; font-style: italic; font-display: block; src: url("fonts/NVIDIASans_BdIt.ttf") format("truetype"); }

:root {
  --ground: #0A0A0C;
  --viz: #05070A;
  --line: #1E232B;
  --text: #EDEDED;
  --muted: #9BA3AE;
  --faint: #3A3F47;
  --lime: #B7E400;
  --lime-ink: #141A00;
  --nv-bg: #000000;
  --nv-green: #76B900;
  --nv-card: #111111;
  --em-bg: #201F2C;
  --em-card: #2A2939;
  --em-purple: #6D0EDB;
  --em-lav: #C396F9;
  --em-text: #D9D6E8;
  --sans: "NVIDIA Sans", Arial, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "NVIDIA Sans", Arial, system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }
body { background: var(--ground); color: var(--text); font-family: var(--sans); overflow: hidden; }
.mono { font-family: var(--mono); }
.mono, .eyebrow, .valid, .ticks div, .cells div, .inits button, .commit .id, #clock { font-variant-numeric: tabular-nums; }
/* pressed state in Medium, not Bold: content-sized buttons must not change width */
.seg button[aria-pressed="true"], .inits button[aria-pressed="true"] { font-weight: 500; }
.muted { color: var(--muted); }
.lime { color: var(--lime); }
.eyebrow { font-family: var(--mono); font-size: 12px; letter-spacing: .06em; color: var(--muted); }

.app {
  height: 100vh;
  padding: 24px;
  display: grid;
  grid-template-rows: 56px minmax(0, 1fr) 108px;
  gap: 20px;
}
/* smaller than the booth TV (a laptop opening the hosted page): the 1920 x 1080 layout,
   zoomed down to fit; app.js sets --fit */
.app.fit { width: 1920px; height: 1080px; zoom: var(--fit); margin: 0 auto; }

/* ---------------- header ---------------- */
/* equal side columns keep the headline on the page's center line */
.top { display: grid; grid-template-columns: 1fr minmax(0, auto) 1fr; align-items: center; gap: 20px; min-width: 0; }
.right { display: flex; align-items: center; justify-content: flex-end; gap: 20px; }
.logos { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.logos img { width: auto; display: block; }
.logos .nv-logo { height: 30px; }
.logos .em-logo { height: 42px; transform: translateY(-24.6%); } /* earthmover "a" = NVIDIA "A" height (1.398 x NVIDIA logo height); shift up onto NVIDIA's baseline */
.x { color: #6B7280; font-size: 18px; }
.headline { min-width: 0; font-size: 20px; font-weight: 600; letter-spacing: -.01em; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.demo-note { font: 400 13px var(--mono); color: var(--muted); overflow: hidden; text-overflow: ellipsis; }
.demo-note a { color: var(--lime); }
.links { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.links a { display: block; width: 33px; height: 33px; color: var(--muted); opacity: .85; }
.links a:hover { color: var(--lime); opacity: 1; }
.links svg, .links img { width: 100%; height: 100%; display: block; }
.live { display: flex; align-items: center; gap: 10px; padding: 8px 14px; border-radius: 0; background: #1B1F10; color: var(--lime); font: 600 14px var(--mono); flex-shrink: 0; }
.live .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--lime); animation: pulse 2s ease-in-out infinite; }
.live.stale { background: #2A1A10; color: #FFB86B; }
.live.stale .dot { background: #FFB86B; animation: none; }
@keyframes pulse { 50% { opacity: .35; } }

/* ---------------- main ---------------- */
.main { display: grid; grid-template-columns: minmax(0, 1fr) 520px; gap: 20px; min-height: 0; }

.viz { position: relative; background: var(--viz); border: 1px solid var(--line); border-radius: 0; overflow: hidden; min-height: 0; }
#globe { position: absolute; inset: 0; background: #05070A; }
.maplibregl-ctrl, .maplibregl-ctrl-attrib, .maplibregl-ctrl button { border-radius: 0 !important; }
.maplibregl-ctrl-bottom-right { bottom: 150px; } /* above the init / slider / tick rows */
/* attribution: no white box, just the text over the globe */
.maplibregl-ctrl-attrib, .maplibregl-ctrl-attrib.maplibregl-compact, .maplibregl-ctrl-attrib.maplibregl-compact-show { background: transparent !important; color: var(--muted); font-size: 11px; }
.maplibregl-ctrl-attrib a { color: var(--muted); }
.maplibregl-ctrl-attrib-button { background-color: transparent !important; filter: invert(1) opacity(.6); }
.maplibregl-ctrl-attrib-button:focus, .maplibregl-ctrl-attrib-button:focus-visible { outline: none; box-shadow: none; }
.station { display: flex; align-items: center; gap: 12px; pointer-events: none; }
.station i { box-sizing: border-box; width: 22px; height: 22px; border-radius: 50%; border: 3px solid var(--lime); box-shadow: 0 0 0 1.5px #000, inset 0 0 0 1.5px #000; }
.station span { padding: 5px 8px; border-radius: 0; background: rgba(10, 10, 12, .8); color: var(--text); font: 600 15px/1.25 var(--sans); white-space: pre; }

.viz-top, .viz-bottom { position: absolute; left: 0; right: 0; z-index: 2; padding: 18px 22px; }
.viz-top { top: 0; display: flex; justify-content: space-between; align-items: flex-start; background: rgba(5, 7, 10, .72); }
.viz-bottom { bottom: 0; display: flex; flex-direction: column; gap: 10px; background: rgba(5, 7, 10, .94); }
.init-block { display: flex; flex-direction: column; gap: 4px; }
.init-title { font-size: 26px; font-weight: 600; }
.valid { font: 14px var(--mono); color: #C9CFD6; }

.seg { display: flex; gap: 2px; padding: 3px; border: 1px solid #2A2F37; border-radius: 0; }
.seg button { height: 26px; padding: 0 12px; border: 0; border-radius: 0; background: transparent; color: var(--muted); font: 14px var(--mono); cursor: pointer; }
.seg button[aria-pressed="true"] { background: var(--text); color: var(--ground); }
.seg button:disabled { color: #4B5260; cursor: not-allowed; }

.init-row { display: flex; align-items: center; gap: 8px; }
.inits { display: flex; gap: 8px; }
.inits button { height: 34px; padding: 0 10px; white-space: nowrap; border-radius: 0; font: 13px var(--mono); cursor: pointer; background: transparent; color: #C9CFD6; border: 1px solid #2A2F37; }
.inits button[aria-pressed="true"] { background: var(--text); color: var(--ground); border-color: var(--text); }
.playback { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.play { width: 34px; height: 34px; display: flex; align-items: center; justify-content: center; padding: 0; border-radius: 0; border: 1px solid #2A2F37; background: transparent; color: var(--text); cursor: pointer; }
.play[aria-pressed="true"] { background: var(--lime); border-color: var(--lime); color: var(--lime-ink); }
.loop { margin-left: auto; height: 34px; width: 160px; justify-content: center; padding: 0 10px; white-space: nowrap; display: flex; align-items: center; gap: 8px; font: 13px var(--mono); color: #C9CFD6; background: transparent; border: 1px solid #2A2F37; cursor: pointer; }
.loop[aria-pressed="false"] { color: var(--muted); border: 1px dashed #4B5260; }
.loop[aria-pressed="false"] svg { opacity: .6; }
.play[aria-pressed="true"] { animation: pulse 2s ease-in-out infinite; }

.scrub { display: flex; flex-direction: column; gap: 6px; }
/* inset so the 14px thumb centres over its tick: half a tick minus half the thumb (ticks: --leads boxes, 6px gaps) */
.scrub input[type=range] { width: auto; margin: 0 calc((100% - (var(--leads, 13) - 1) * 6px) / var(--leads, 13) / 2 - 7px); height: 22px; -webkit-appearance: none; appearance: none; background: transparent; cursor: pointer; }
.scrub input[type=range]::-webkit-slider-runnable-track { height: 4px; background: #2A2F37; }
.scrub input[type=range]::-moz-range-track { height: 4px; background: #2A2F37; }
.scrub input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 14px; height: 22px; margin-top: -9px; background: var(--text); border: 0; }
.scrub input[type=range]::-moz-range-thumb { width: 14px; height: 22px; background: var(--text); border: 0; border-radius: 0; }
.ticks { display: flex; gap: 6px; }
.ticks div { flex: 1 1 0; height: 28px; cursor: pointer; display: flex; align-items: center; justify-content: center; border-radius: 0; font: 13px var(--mono); color: var(--muted); border: 1px solid #23272E; }
/* all ticks equal so the slider thumb above lines up with them */
.ticks div.now { background: var(--text); color: var(--ground); border-color: var(--text); font-weight: 600; }

.notice { position: absolute; z-index: 3; top: 120px; left: 22px; right: 22px; padding: 10px 14px; border-radius: 0; background: #2A1A10; color: #FFD2A6; font: 13px var(--mono); }

/* ---------------- panels ---------------- */
.panels { position: relative; border-radius: 0; overflow: hidden; min-height: 0; }
.panel {
  position: absolute; inset: 0;
  padding: 28px 28px 96px;
  display: flex; flex-direction: column; gap: 12px;
  opacity: 0; transition: opacity .6s ease; pointer-events: none;
  overflow: hidden;
}
.panel.active { opacity: 1; pointer-events: auto; }
.panel h2 { margin: 0; font-size: 30px; line-height: 1.1; font-weight: 600; letter-spacing: -.02em; }
.panel p { margin: 0; font-size: 16px; line-height: 1.45; }
.panel p.small { font-size: 16px; }
.kicker { font: 14px var(--mono); letter-spacing: .08em; }
.label { font: 13px var(--mono); color: #9A9A9A; }

.panel.nv { background: var(--nv-bg); border: 1px solid #1F1F1F; }
.panel.nv .kicker { color: var(--nv-green); }
.panel.nv h2 { color: #fff; }
.panel.nv p { color: #CFCFCF; }
.panel.nv p.muted { color: #9A9A9A; }

.panel.em { background: var(--em-bg); }
.panel.em .kicker { color: var(--lime); }
.panel.em h2 { color: #F5F5F5; }
.panel.em p { color: var(--em-text); }

.box { display: flex; flex-direction: column; gap: 8px; padding: 12px 14px; background: var(--nv-card); border-radius: 0; }
.range { display: flex; gap: 4px; height: 56px; }
.range .r { border-radius: 0; display: flex; flex-direction: column; justify-content: center; padding: 0 12px; }
.range .r b { font-size: 15px; } .range .r span { font-size: 12px; }
.range .now { flex: 2; background: var(--nv-green); color: #000; }
.range .mid { flex: 3; background: #1E1E1E; color: #CFCFCF; }
.range .far { flex: 2; background: #161616; color: #9A9A9A; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips span { padding: 8px 12px; border-radius: 0; background: #161616; font-size: 15px; color: #E0E0E0; }

.stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.stats div { padding: 10px 14px; background: var(--nv-card); border-radius: 0; display: flex; flex-direction: column; gap: 4px; }
.stats b { font-size: 26px; font-weight: 600; color: var(--nv-green); }
.stats span { font-size: 15px; color: #CFCFCF; }

.two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.three { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.card { padding: 10px 12px; border-radius: 0; display: flex; flex-direction: column; gap: 4px; }
.card span { font-size: 13px; line-height: 1.35; }
.nv .card { border: 1px solid #333; } .nv .card.on { border-color: var(--nv-green); }
.nv .card b { font-size: 16px; color: #fff; } .nv .card span { color: #BDBDBD; }
.em .card { background: var(--em-card); } .em .card b { font-size: 16px; color: #F5F5F5; } .em .card span { color: #C9C6DA; }

.flow .frames { display: flex; gap: 6px; }
.flow .frames span { flex: 1; height: 36px; border-radius: 0; background: #1E1E1E; border: 1px solid #333; display: flex; align-items: center; justify-content: center; font: 12px var(--mono); color: #BDBDBD; }
.flow .out-frames span { height: 30px; font-size: 11px; }
.flow .arrow { text-align: center; color: var(--nv-green); font-size: 20px; line-height: 1; }
.flow .engine { padding: 10px 14px; border-radius: 0; background: var(--nv-green); color: #000; display: flex; justify-content: space-between; align-items: center; }
.flow .engine b { font-size: 18px; } .flow .engine span { font: 13px var(--mono); }
.flow .out { display: flex; gap: 10px; align-items: center; font-size: 15px; color: #CFCFCF; }
.flow .pill { padding: 10px 14px; border: 2px solid var(--nv-green); border-radius: 0; color: var(--nv-green); font: 600 14px var(--mono); flex-shrink: 0; }
.facts { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 6px; color: #CFCFCF; font-size: 16px; }

.steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.steps li { display: flex; gap: 14px; align-items: center; padding: 8px 12px; background: var(--nv-card); border-radius: 0; }
.steps i { font: normal 600 13px var(--mono); width: 28px; height: 28px; border-radius: 0; border: 2px solid var(--nv-green); color: var(--nv-green); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.steps li.violet i { border-color: var(--em-lav); color: var(--em-lav); }
/* NVIDIA writes into Arraylake: ring and number half green, half violet */
.steps li.split i { position: relative; border-color: transparent; color: transparent; background: linear-gradient(90deg, var(--nv-green) 50%, var(--em-lav) 50%); -webkit-background-clip: text; background-clip: text; }
.steps li.split i::before { content: ""; position: absolute; inset: -2px; padding: 2px; border-radius: 0; background: linear-gradient(90deg, var(--nv-green) 50%, var(--em-lav) 50%); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; }
.steps b { display: block; font-size: 15px; color: #fff; } .steps span { font-size: 13px; color: #BDBDBD; }

/* data flow: left bar colour = who runs that hop */
.hops { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.hops li { display: flex; align-items: center; gap: 12px; padding: 10px 14px; background: var(--nv-card); border-left: 4px solid var(--nv-green); border-radius: 0; position: relative; }
.hops li.eu { border-left-color: #8A8F98; }
/* licence wait: dashed and dimmed, not part of the architecture */
.hops li.wait { background: transparent; border: 1px dashed #555; border-left: 4px dashed #8A8F98; }
.hops li.em { background: var(--em-card); border-left-color: var(--em-lav); }
/* GPU writes into Arraylake: bar half green, half violet */
.hops li.split { border-left-color: transparent; background: linear-gradient(var(--nv-green) 50%, var(--em-lav) 50%) 0 0 / 4px 100% no-repeat border-box, var(--nv-card); }
.hops div { flex: 1; min-width: 0; }
.hops b { display: block; font-size: 16px; color: #fff; } .hops span { font-size: 14px; color: #BDBDBD; }
.hops em { font: normal 600 15px var(--mono); color: var(--nv-green); white-space: nowrap; }
.hops li.eu em { color: #CFCFCF; } .hops li.em em { color: var(--em-lav); }
.hops li.wait b, .hops li.wait span, .hops li.wait em { color: #8A8F98; }
.legend { display: flex; gap: 16px; font: 12px var(--mono); color: #9A9A9A; }
.legend span::before { content: ""; display: inline-block; width: 10px; height: 10px; margin-right: 6px; border-radius: 0; vertical-align: -1px; }
.legend .eu::before { background: #8A8F98; } .legend .nv::before { background: var(--nv-green); } .legend .em::before { background: var(--em-lav); }

.commits { display: flex; flex-direction: column; gap: 8px; }
.commit { display: flex; align-items: center; gap: 12px; padding: 8px 14px; border-radius: 0; background: #27263A; }
.commit.fresh { background: #2E2C40; outline: 1px solid var(--em-lav); }
.commit .id { font: 13px var(--mono); color: var(--em-lav); width: 92px; flex-shrink: 0; }
.commit .msg { flex: 1; min-width: 0; font: 14px var(--mono); color: #F5F5F5; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.commit .ago { font-size: 13px; color: #A9A6BD; flex-shrink: 0; }
.callout { margin-top: auto; padding: 14px 18px; border-radius: 0; background: var(--em-purple); color: #fff; font-size: 16px; font-weight: 500; }

.qr .qrcard { text-align: center; padding: 12px; background: #F5F5F5; border-radius: 0; display: flex; flex-direction: column; gap: 6px; color: var(--em-bg); }
.qrbox { position: relative; width: 168px; align-self: center; aspect-ratio: 1 / 1; display: flex; align-items: center; justify-content: center; font: 12px var(--mono); color: #4E4E4E; }
.qrbox svg { width: 100%; height: 100%; display: block; }
.qrbox img { position: absolute; top: 50%; left: 50%; height: 22%; transform: translate(-50%, -50%); padding: 3px 5px; background: #fff; }
.qrcard b { font-size: 15px; } .qrcard span { font-size: 12px; line-height: 1.35; color: #4E4E4E; }

.sql { display: flex; flex-direction: column; gap: 8px; padding: 12px 14px; background: #15141E; border-radius: 0; }
.sql-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.sql-head b { font-size: 15px; color: #F5F5F5; white-space: nowrap; }
.sql-head span { font: 12px var(--mono); color: var(--lime); text-align: right; }
.sql-head span.err { color: #FFB86B; }
.sql textarea { margin: 0; padding: 8px 10px; resize: none; min-height: 11.5em; font: 12.5px/1.5 var(--mono); color: #E2DFF0; background: #0E0D16; border: 1px solid #2E2C40; border-radius: 0; outline: none; }
.sql textarea:focus { border-color: var(--em-lav); }
.sql-places { display: flex; flex-wrap: wrap; gap: 6px; }
.sql-places button, .sql-run button { font: 500 12px var(--mono); padding: 4px 10px; border-radius: 0; border: 1px solid #3A3852; background: transparent; color: #E2DFF0; cursor: pointer; }
.sql-places button.on { background: var(--em-lav); border-color: var(--em-lav); color: #15141E; }
.sql-places button:disabled { opacity: .5; cursor: progress; }
.sql-run { display: flex; align-items: flex-start; gap: 6px; }
.sql-run .sql-places { flex: 1; }
.sql.running .bars { opacity: .35; }
.bars { display: flex; align-items: flex-end; gap: 4px; height: 56px; }
.bars div { flex: 1; min-height: 3px; border-radius: 0; background: var(--em-lav); position: relative; }
.bars div.empty { background: #2E2C40; height: 100%; border-radius: 0; }
.sql-foot { font-size: 13px; color: #A9A6BD; }

.panel-foot { position: absolute; left: 28px; right: 28px; bottom: 24px; z-index: 2; display: flex; flex-direction: column; gap: 8px; pointer-events: none; }
.progress { display: flex; gap: 8px; }
.progress span { height: 4px; flex: 1; border-radius: 0; background: #2A2A2A; overflow: hidden; }
.progress span.on { background: #3A3A3A; }
.progress span.on i { display: block; height: 100%; width: 0; background: var(--nv-green); }
.panels.em-theme .progress span { background: #4A4760; }
.panels.em-theme .progress span.on i { background: var(--em-lav); }
.foot-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.keys { font: 11px var(--mono); color: #6B7280; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* prev / next buttons, lower right of the panel column */
.panel-nav { display: flex; align-items: center; gap: 6px; pointer-events: auto; }
.panel-nav button { width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; padding: 0; border: 1px solid #3A3A3A; background: rgba(0, 0, 0, .4); color: var(--text); cursor: pointer; }
.panel-nav button:hover { border-color: var(--nv-green); color: var(--nv-green); }
.panels.em-theme .panel-nav button:hover { border-color: var(--em-lav); color: var(--em-lav); }
.panel-count { min-width: 44px; text-align: center; font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }

/* ---------------- strip ---------------- */
.strip { position: relative; display: flex; align-items: center; gap: 24px; padding: 0 24px; background: #111317; border: 1px solid var(--line); border-radius: 0; }
/* triangle in the strip's top-right corner: points down to collapse, up to expand */
.strip-toggle { position: absolute; top: 6px; right: 10px; width: 22px; height: 22px; display: flex; align-items: center; justify-content: center; padding: 0; border: 0; background: transparent; color: var(--muted); cursor: pointer; }
.strip-toggle:hover { color: var(--text); }
.strip-toggle svg { transition: transform .2s; }
/* collapsed: a thin bar with the countdown only; the globe and panels take the room */
.app.strip-collapsed { grid-template-rows: 56px minmax(0, 1fr) 44px; }
.app.strip-collapsed .strip-toggle { top: 50%; transform: translateY(-50%); }
.app.strip-collapsed .strip-toggle svg { transform: rotate(180deg); }
.app.strip-collapsed .strip .ingest, .app.strip-collapsed .strip .last { display: none; }
.app.strip-collapsed .strip .next { width: auto; flex-direction: row; align-items: baseline; gap: 12px; }
.app.strip-collapsed .strip .big { font-size: 18px; }
.strip .next { width: 150px; display: flex; flex-direction: column; gap: 2px; }
.strip .big { font-size: 34px; font-weight: 600; }
.strip .ingest { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 8px; font-size: 13px; }
.strip .last { width: 230px; display: flex; flex-direction: column; gap: 2px; }
.strip .last .mono { font-size: 17px; }
.cells { display: flex; gap: 6px; }
/* flex-grow is each phase's estimated seconds (set in app.js); a basis of 0 keeps widths proportional */
.cells div { position: relative; overflow: hidden; flex: 1 1 0; min-width: 0; height: 30px; display: flex; align-items: center; justify-content: center; border-radius: 0; font: 12px var(--mono); background: #1A1D23; color: #6B7280; white-space: nowrap; }
.cells div i { position: absolute; inset: 0 auto 0 0; width: 0; background: rgba(183, 228, 0, .28); transition: width 1s linear; }
.cells div span { position: relative; }
.cells div.past { box-shadow: inset 0 0 0 1px var(--lime); color: var(--lime); }
.cells div.active { box-shadow: inset 0 0 0 1px var(--lime); color: #E6EAF0; }
.cells div.commit.active { animation: hold 1.4s ease-in-out infinite; }
@keyframes hold { 50% { box-shadow: inset 0 0 0 1px var(--lime), 0 0 10px rgba(183, 228, 0, .6); } }
.cells div.done { background: var(--lime); color: var(--lime-ink); font-weight: 600; }
.cells div.done i { width: 0; transition: none; }
.cells div.flash { animation: flash 1.2s ease-out; }
@keyframes flash { 0% { box-shadow: 0 0 0 0 rgba(183, 228, 0, .9); } 100% { box-shadow: 0 0 0 14px rgba(183, 228, 0, 0); } }

/* Exhibition narrative: readable copy, connected diagrams, and explicit live-data provenance. */
.main { grid-template-columns: minmax(0, 1fr) 520px; }
.panel { gap: 14px; }
.panel h2 { font-size: 30px; line-height: 1.1; }
.panel p { font-size: 16px; line-height: 1.4; }
.panel p.small { font-size: 16px; }
.kicker { font-size: 24px; font-weight: 700; line-height: 1.2; letter-spacing: .02em; }
.label, .diagram-note { font-size: 14px; color: #BDBDBD; }
.panel-foot .keys { color: #A9B0B9; font-size: 12px; }
.panel-nav #panelPause { width: auto; padding: 0 10px; font-family: inherit; font-size: 14px; }
.progress { gap: 6px; }
.progress button { position: relative; height: 20px; flex: 1; min-width: 0; padding: 0; border: 0; background: transparent; cursor: pointer; }
.progress button::before { content: ""; position: absolute; top: 8px; left: 0; right: 0; height: 4px; background: #41464E; }
.progress button i { position: absolute; top: 8px; left: 0; height: 4px; width: 0; background: var(--nv-green); }
.panels.em-theme .progress button i { background: var(--em-lav); }
.progress button:focus-visible, .panel-nav button:focus-visible { outline: 2px solid #EDEDED; outline-offset: 2px; }
.composite-card { font-family: inherit; text-align: left; color: inherit; background: #111; cursor: pointer; }
.composite-card:focus-visible { outline: 2px solid #EDEDED; outline-offset: 3px; }
.composite-card.on { box-shadow: inset 0 -3px var(--nv-green); }
.composite-card.on b::after { content: " · Selected"; color: #A5D85B; font-size: 13px; }
.composite-image { height: 144px; position: relative; overflow: hidden; background: #080C12; margin: -10px -12px 6px; }
.composite-image img { position: relative; width: 100%; height: 100%; object-fit: cover; z-index: 1; }
.composite-image > span { position: absolute; inset: 0; display: grid; place-items: center; color: var(--muted); }
.composite-card span { font-size: 15px; }
.stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.stats b { font-size: 24px; }
.stats span { font-size: 14px; }
.science-diagram { width: 100%; max-width: 544px; align-self: center; height: auto; flex-shrink: 0; display: block; color: #A5D85B; font-family: var(--sans); background: #0F120E; border: 1px solid #2E3C20; }
.em .science-diagram { color: #D2ADF8; background: #191823; border-color: #665279; }
.diagram-edge { fill: none; stroke: currentColor; stroke-width: 2; }
.feedback-path { stroke-dasharray: 5 3; }
.diagram-node { fill: #151B11; stroke: #526844; }
.em .diagram-node { fill: #282338; stroke: #78668D; }
.diagram-observed { fill: #1A1E23; stroke: #919CA9; }
.diagram-predicted { fill: #172510; stroke: #A5D85B; }
.em .diagram-predicted { fill: #30263D; stroke: #D2ADF8; }
.diagram-engine { fill: #76B900; }
.diagram-gpu { fill: #A5D85B; }
.diagram-upload { fill: #D2ADF8; }
.diagram-text, .diagram-small { font-size: 16px; fill: #EDEDED; }
.diagram-strong { font-size: 18px; font-weight: 700; fill: #EDEDED; }
.diagram-engine + .diagram-strong { fill: #101900; }
.diagram-label { font-size: 15px; fill: #C9CFD6; }
.diagram-dark { font-size: 17px; font-weight: 500; fill: #101018; }
.completion-barrier { fill: none; stroke: #D2ADF8; stroke-width: 2; stroke-dasharray: 4 3; }
.commit-heading, .commit { display: grid; grid-template-columns: 1.75fr .85fr .9fr .8fr; gap: 12px; }
.commit-heading { padding: 0 12px; font-size: 13px; color: #D9D6E8; }
.commit { padding: 8px 12px; }
.commit .init { font-size: 14px; font-variant-numeric: tabular-nums; }
.commit .id { width: auto; font-size: 14px; }
.commit .ago { text-align: right; }
.commits { gap: 6px; }
.qrcard { text-decoration: none; }
.qrcard:focus-visible { outline: 3px solid var(--em-lav); outline-offset: 3px; }
.nowcast-scope { padding: 16px; border: 1px solid #2E3C20; background: #111; display: flex; flex-direction: column; gap: 12px; }
.scope-axis { display: flex; justify-content: space-between; border-bottom: 2px solid #919CA9; padding-bottom: 8px; font-size: 16px; color: #C9CFD6; }
.scope-window { padding: 12px; border-left: 3px solid #A5D85B; background: #172510; display: flex; flex-direction: column; gap: 4px; }
.scope-window b { font-size: 18px; }
.scope-window span { font-size: 16px; }
.scope-note { font-size: 16px; color: #CFCFCF; }
.science-source { font-size: 13px; color: #B4BBC4; text-decoration: underline; text-underline-offset: 3px; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
.diagram-ink { fill: #101900; }
.progress { pointer-events: auto; }

[data-panel="compute"] { gap: 12px; }

.cycle-heading { grid-column: 1 / -1; font-size: 14px; }
.cycle-context span { font-size: inherit; color: inherit; }
.publication-status { font-size: 14px; color: #D2ADF8; }

.intro-workflow { display: flex; align-items: center; gap: 10px; padding: 16px; border: 1px solid #2E3C20; background: #111; }
.intro-workflow span { flex: 1; padding: 12px 8px; border-top: 2px solid #A5D85B; background: #172510; font-size: 18px; font-weight: 700; text-align: center; }
.intro-workflow i { font-style: normal; font-size: 20px; color: #A5D85B; }
.partner-credit { color: #D9D6E8; font-size: 15px; text-align: center; }

[data-panel="arraylake"], [data-panel="access"] { gap: 12px; }
[data-panel="arraylake"] .commit { padding-top: 6px; padding-bottom: 6px; }
[data-panel="arraylake"] .commits { gap: 4px; }
[data-panel="compute"] { gap: 8px; }
[data-panel="compute"] .sql { gap: 5px; }
/* Keep playback controls visible when the narrower globe contains a full run history. */
.inits { flex: 1; min-width: 0; overflow-x: auto; scrollbar-width: thin; }
.inits button { flex-shrink: 0; }

/* Shared-reference palette: observations slate, prediction NVIDIA green, I/O blue,
   publication amber. Font Awesome symbols are local and work offline. */
:root { --observed: #64748B; --predicted: #76B900; --cloud-io: #3E718F; --publication: #8A5C1C; }
.fa-symbol { width: 20px; height: 20px; flex-shrink: 0; fill: currentColor; vertical-align: -.15em; }
.kicker { display: flex; align-items: center; gap: 10px; }
.kicker .fa-symbol { width: 25px; height: 25px; }
.composite-card b { display: flex; align-items: center; gap: 7px; }
.composite-card { border-radius: 10px; overflow: hidden; }
.science-diagram, .em .science-diagram { border-radius: 12px; background: #11161B; border-color: #354451; color: #A5B4C3; }
.diagram-symbol { fill: currentColor; stroke: none; color: #E8EDF2; }
.diagram-observed { fill: #263441; stroke: #8DA1B5; }
.diagram-predicted, .em .diagram-predicted { fill: #174C32; stroke: #53B47B; }
.diagram-engine { fill: #237B48; stroke: #53B47B; }
.diagram-engine + .diagram-strong, .diagram-ink { fill: #FFFFFF; }
.diagram-storage, .em .diagram-storage { fill: #294F67; stroke: #75ACCB; }
.diagram-node, .em .diagram-node { fill: #1F2E38; stroke: #7392A8; }
.diagram-publication { fill: #5C411F; stroke: #D0A568; }
.diagram-gpu { fill: #237B48; }
.diagram-upload { fill: #3E718F; }
.diagram-dark { fill: #FFFFFF; }
.completion-barrier { stroke: #D0A568; }
/* Slide 5 (Arraylake): GPU blocks use NVIDIA green, I/O + publication use Earthmover lavender. */
[data-panel="arraylake"] .diagram-gpu { fill: var(--nv-green); }
[data-panel="arraylake"] .diagram-gpu + .diagram-dark { fill: #101900; }
[data-panel="arraylake"] .diagram-upload { fill: var(--em-lav); }
[data-panel="arraylake"] .diagram-upload + .diagram-dark { fill: #15141E; }
[data-panel="arraylake"] .diagram-publication { fill: #2A2939; stroke: var(--em-lav); }
[data-panel="arraylake"] .completion-barrier { stroke: var(--em-lav); }
.diagram-text, .diagram-strong, .diagram-label { fill: #E8EDF2; }
.observation-timeline { padding: 16px 18px; border: 1px solid #354451; border-radius: 12px; background: #11161B; }
.timeline-head { display: grid; grid-template-columns: 1fr 2fr; gap: 12px; font-size: 17px; font-weight: 700; margin-bottom: 12px; }
.timeline-head span { display: flex; align-items: center; gap: 8px; }
.timeline-track { display: flex; height: 22px; border-radius: 6px; overflow: hidden; }
.observed-track { flex: 1; background: var(--observed); }
.predicted-track { flex: 2; background: var(--predicted); }
.timeline-times { display: grid; grid-template-columns: 1fr 2fr; position: relative; margin-top: 8px; font-size: 14px; color: #CBD5E1; }
.timeline-times b { position: absolute; left: 33.333%; transform: translateX(-50%); font-weight: 500; }
.timeline-times span:last-child { text-align: right; }
.model-detail { display: flex; justify-content: space-between; gap: 12px; font-size: 12px; color: #B9C7D3; }
.model-frame.has-image .diagram-symbol { visibility: hidden; }
.frame-image { opacity: .9; }
.frame-label { fill: #E8EDF2; font-size: 15px; }
.frame-output-label { fill: #FFFFFF; font-size: 14px; paint-order: stroke; stroke: #101820; stroke-width: 3px; stroke-linejoin: round; }
.history-title { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; color: #CBD5E1; }
#historyFeedState { color: #D0A568; font-size: 12px; }
.commit-heading, .commit { grid-template-columns: 1.6fr 1.6fr 1.05fr .75fr .8fr; gap: 8px; }
.commit .init, .commit .published-at { font-size: 13px; font-variant-numeric: tabular-nums; }
.commit .publication-status { font-size: 12px; color: #EDD2AE; }
.commit .id { font-size: 13px; }
.commit .ago { font-size: 12px; }
.commit { border-radius: 6px; }
.commit.fresh { outline-color: #D0A568; }
.commit.new-publication { animation: publication-arrives 1.2s ease-out; }
@keyframes publication-arrives { from { opacity: .35; transform: translateY(5px); } to { opacity: 1; transform: translateY(0); } }
.interface-captions { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; font-size: 14px; color: #CBD5E1; }
.tile-evidence, .compute-evidence .sql { padding: 12px; border-radius: 10px; border: 1px solid #354451; background: #11161B; min-width: 0; }
.tile-evidence { display: flex; flex-direction: column; gap: 8px; }
.tile-preview { height: 150px; position: relative; border-radius: 6px; overflow: hidden; background: #0A1015; }
.tile-preview img { position: relative; width: 100%; height: 100%; object-fit: cover; z-index: 1; }
.tile-preview > span { position: absolute; inset: 0; display: grid; place-items: center; font-size: 13px; color: #A5B4C3; }
#computeTileCaption { font-size: 12px; color: #CBD5E1; }
.architecture-ribbon { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 12px 14px; border: 1px solid #354451; border-radius: 10px; background: #11161B; }
.architecture-ribbon > span { display: flex; align-items: center; gap: 6px; font-size: 15px; }
.architecture-ribbon > .fa-symbol { width: 12px; height: 12px; color: #A5B4C3; }

[data-panel="nowcasting"] { gap: 10px; }
/* Long service errors remain available through the status tooltip without pushing the chart into navigation. */

/* Restore the original panel width while retaining 24 px bold numbered titles. */
.architecture-ribbon { padding: 10px; gap: 6px; }
.architecture-ribbon > span { flex-direction: column; gap: 5px; font-size: 13px; }

[data-panel="mtg"] { gap: 10px; }
[data-panel="mtg"] .composite-image { height: 132px; }
[data-panel="nowcasting"] { gap: 5px; }
[data-panel="compute"] { gap: 5px; }

/* Scientific visual hierarchy: the model schematic is the central evidence. */
[data-panel="nowcasting"] .model-key { display: flex; flex-wrap: wrap; gap: 14px; font-size: 13px; color: #E8EDF2; }
.model-key span { display: inline-flex; align-items: center; gap: 7px; }
.model-key span::before { content: ""; display: inline-block; width: 12px; height: 12px; border: 2px solid; border-radius: 3px; }
.model-key .key-observed::before { background: #263441; border-color: #8DA1B5; }
.model-key .key-predicted::before { background: #174C32; border-color: #53B47B; }
.model-meaning strong { color: #E8EDF2; }
.publication-timeline { display: flex; align-items: center; gap: 0; min-height: 20px; color: #CBD5E1; font-size: 12px; padding: 0 12px; }
.publication-event { position: relative; flex: 1; height: 3px; background: #3E718F; }
.publication-event::after { content: ""; position: absolute; left: 0; top: 50%; transform: translate(-50%, -50%); height: 10px; width: 10px; border-radius: 50%; background: #75ACCB; border: 2px solid #11161B; }
.publication-event:last-child { flex: 0 0 12px; }
.publication-event.newest::after { background: #D0A568; height: 14px; width: 14px; box-shadow: 0 0 0 3px rgba(208,165,104,.15); }
@media (prefers-reduced-motion: reduce) { .commit.new-publication { animation: none; } }


/* Scientific composite definitions appear on hover and keyboard focus.
   The controls still work without hover through their native title/accessible description. */
#varToggle { position: relative; z-index: 6; }
#varToggle button, .composite-card[data-var] { position: relative; }
#varToggle button::after, .composite-card[data-var]::after {
  content: attr(data-tooltip);
  position: absolute;
  z-index: 20;
  top: calc(100% + 10px);
  right: 0;
  width: min(340px, 76vw);
  max-width: 340px;
  padding: 12px 14px;
  border: 1px solid #7392A8;
  border-radius: 8px;
  background: #111B26;
  color: #F0F5FA;
  font: 15px/1.45 var(--sans);
  white-space: normal;
  text-align: left;
  box-shadow: 0 8px 22px rgba(0,0,0,.6);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .15s ease;
}
#varToggle button:hover::after, #varToggle button:focus-visible::after,
.composite-card[data-var]:hover::after, .composite-card[data-var]:focus-visible::after {
  opacity: 1;
  visibility: visible;
}
.composite-card[data-var]::after { left: 0; right: auto; width: 290px; }
@media (prefers-reduced-motion: reduce) {
  #varToggle button::after, .composite-card[data-var]::after { transition: none; }
}
/* The new publication strip reports verified snapshot state, not estimated task progress. */

/* Let observation-card definition popovers extend past image card edges. */
[data-panel="mtg"] .composite-card[data-var] { overflow: visible; }
[data-panel="mtg"] .composite-card[data-var]:last-child::after { left: auto; right: 0; }

/* Booth headings: regular-weight numbered titles, without decorative iconography. */
.kicker { font-weight: 400; }
[data-panel="definition"] h2 { font-weight: 400; }
.model-process { width: 100%; }
.model-sequence { display: flex; align-items: center; justify-content: space-between; gap: 3px; padding: 10px 6px; flex-wrap: wrap; border: 1px solid #354451; border-radius: 8px; }
.model-sequence span { font-size: 14px; color: #E8EDF2; }
.model-sequence b { font-size: 17px; color: #53B47B; font-weight: 400; }
.lead-sequence { font-size: 14px; color: #D3E1E8; line-height: 1.4; text-align: center; }

/* Exhibition readability and large observation imagery. */
.panel p { font-size: 19px; line-height: 1.38; }
.panel p.small { font-size: 17px; }
.diagram-label, .frame-label, .frame-output-label { font-size: 16px; }
.model-sequence span, .lead-sequence { font-size: 16px; }
[data-panel="mtg"] .two { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
[data-panel="mtg"] .composite-card { min-height: 58px; padding: 8px 10px; }
[data-panel="mtg"] .composite-card .composite-image, [data-panel="mtg"] .composite-card > span { display: none; }
[data-panel="mtg"] .composite-card b { font-size: 17px; }
[data-panel="mtg"] .composite-card.on { border-color: #76B900; background: #263322; }
[data-panel="mtg"] .stats { margin-top: auto; }
/* Fixed viewer QR remains visible as the explanatory story rotates. */
@media (max-height: 860px) {
}

/* Final exhibition pass: keep diagram primary and compact, but readable. */
[data-panel="nowcasting"] { gap: 9px; }
[data-panel="nowcasting"] .model-process { max-height: 310px; }
[data-panel="nowcasting"] .model-sequence { justify-content: center; gap: 7px; }
[data-panel="nowcasting"] .model-sequence span { font-size: 16px; }
[data-panel="nowcasting"] .model-key { font-size: 15px; }
[data-panel="nowcasting"] .model-detail { font-size: 14px; }
[data-panel="mtg"] { gap: 9px; }
[data-panel="mtg"] .stats { flex-shrink: 0; }
[data-panel="e2s"] .science-diagram { max-height: 310px; }
@media (max-width: 1500px), (max-height: 850px) {
  .panel p { font-size: 17px; }
}

/* Booth simplification: separate compact verified status from optional technical details. */
.cycle-status { top: 110px; left: 22px; right: auto; width: min(675px, calc(100% - 44px)); display: block; padding: 10px 14px; pointer-events: auto; }
.cycle-status .cycle-primary { display: flex; align-items: center; flex-flow: row wrap; gap: 10px 18px; }
.cycle-status .cycle-primary span { font-size: 15px; color: #E5EBF0; white-space: nowrap; }
.cycle-status .cycle-primary b { font-size: 15px; }
.cycle-status #cycleState { font-size: 14px; flex: 1 1 220px; white-space: normal; }
.cycle-details { margin-top: 5px; color: #C8D4DF; font-size: 13px; }
.cycle-details summary { cursor: pointer; padding: 4px 0; }
.cycle-details .cycle-secondary { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 12px; margin-top: 8px; }
.cycle-secondary > div { display: flex; flex-direction: column; }
.cycle-secondary b { font-size: 13px; overflow-wrap: anywhere; }
.history-reveal, .sql-reveal { min-height: 0; }
.history-reveal summary, .sql-reveal summary { cursor: pointer; padding: 7px 0; font-size: 15px; color: #DFE7EF; }
.history-reveal[open], .sql-reveal[open] { overflow: auto; max-height: min(36vh, 320px); }
.history-reveal .history-title { margin-top: 6px; }
[data-panel="arraylake"] .commits .commit { font-size: 12px; }
[data-panel="nowcasting"] .model-detail[hidden], [data-panel="mtg"] #compositeCaption[hidden] { display: none; }
.panel { padding-bottom: 120px; }
.panel .science-diagram { max-height: min(33vh, 310px); }
[data-panel="nowcasting"] .model-process { max-height: 270px; }
[data-panel="compute"] .tile-preview { min-height: 120px; }
@media (max-height: 860px) {
 .panel { padding-bottom: 116px; }
 .cycle-status { top: 95px; }
}

/* Slide 02: always-visible, two-column variable definitions; consistent square edges. */
[data-panel="mtg"] .variable-comparison { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; align-items: stretch; }
[data-panel="mtg"] .variable-comparison .composite-card { border-radius: 0; min-width: 0; min-height: 116px; padding: 13px 12px; gap: 8px; justify-content: flex-start; box-shadow: none; }
[data-panel="mtg"] .variable-comparison .composite-card b { font-size: 18px; line-height: 1.2; font-weight: 600; }
[data-panel="mtg"] .variable-comparison .composite-card .variable-definition { display: block; color: #D4DDE6; font-size: 15px; line-height: 1.35; }
[data-panel="mtg"] .variable-comparison .composite-card.on { border-color: #76B900; box-shadow: inset 0 -3px #76B900; }
[data-panel="mtg"] .variable-comparison .composite-card::after { display: none !important; content: none; }
@media (max-height: 850px) {
  [data-panel="mtg"] .variable-comparison .composite-card { min-height: 100px; padding: 9px 10px; gap: 5px; }
  [data-panel="mtg"] .variable-comparison .composite-card .variable-definition { font-size: 14px; }
}

/* Slide 02: two equal square composite cards with visible scientific definitions. */
[data-panel="mtg"] .variable-comparison { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
[data-panel="mtg"] .variable-comparison .composite-card {
  aspect-ratio: 1 / 1; height: auto; min-height: 0; width: 100%;
  border-radius: 0; box-shadow: none; padding: 14px;
  display: flex; flex-direction: column; justify-content: center; gap: 10px;
  overflow: hidden;
}
[data-panel="mtg"] .variable-comparison .composite-card b { font-size: 19px; line-height: 1.1; }
[data-panel="mtg"] .variable-comparison .composite-card .variable-definition { display: flex; flex-direction: column; gap: 9px; font-size: inherit; }
[data-panel="mtg"] .variable-composition { font-size: 15px; color: #B6D5ED; line-height: 1.3; }
[data-panel="mtg"] .variable-explanation { font-size: 15px; color: #E3E9EF; line-height: 1.35; }
[data-panel="mtg"] .variable-comparison .composite-card::after { display: none !important; }
@media (max-height: 850px) {
  [data-panel="mtg"] .variable-comparison .composite-card { padding: 9px; gap: 6px; }
  [data-panel="mtg"] .variable-composition, [data-panel="mtg"] .variable-explanation { font-size: 13px; }
}

/* Slide 04: restrained numbered pipeline, matching the reference's clean editorial rhythm. */
[data-panel="e2s"] .pipeline-steps { list-style: none; padding: 0; margin: 10px 0 0; display: grid; gap: 12px; }
[data-panel="e2s"] .pipeline-steps li { display: grid; grid-template-columns: 48px minmax(0, 1fr); align-items: center; column-gap: 14px; min-height: 76px; padding: 9px 12px; border: 1px solid #36464F; border-radius: 0; background: #121B21; }
[data-panel="e2s"] .pipeline-number { width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid #76B900; border-radius: 0; color: #B8E283; font: 23px var(--mono); }
[data-panel="e2s"] .pipeline-steps li > div { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
[data-panel="e2s"] .pipeline-steps strong { color: #F2F6F8; font-size: 20px; font-weight: 600; }
[data-panel="e2s"] .pipeline-steps li > div > span { color: #C8D5DE; font-size: 16px; line-height: 1.3; }
[data-panel="compute"] .compute-evidence { margin-top: 8px; }
@media (max-height: 850px) {
  [data-panel="e2s"] .pipeline-steps { gap: 7px; margin-top: 4px; }
  [data-panel="e2s"] .pipeline-steps li { min-height: 64px; padding: 6px 10px; }
  [data-panel="e2s"] .pipeline-steps strong { font-size: 18px; }
  [data-panel="e2s"] .pipeline-steps li > div > span { font-size: 14px; }
}

/* Slide 04: retain the deployed pipeline's compact, sharp-edged steps and role colors. */
[data-panel="e2s"] .steps { gap: 8px; }
[data-panel="e2s"] .steps li { gap: 14px; padding: 12px 14px; border-radius: 0; background: var(--nv-card); }
[data-panel="e2s"] .steps i { width: 32px; height: 32px; font: normal 600 14px var(--mono); border-radius: 0; }
[data-panel="e2s"] .steps b { font-size: 17px; }
[data-panel="e2s"] .steps span { font-size: 14px; line-height: 1.35; }
@media (max-height: 850px) {
  [data-panel="e2s"] .steps { gap: 6px; }
  [data-panel="e2s"] .steps li { padding: 8px 12px; }
}

/* Deployed booth typography baseline applied consistently across all seven chapters.
   Overrides earlier per-panel experimental font scaling without changing content. */
.panels .panel { gap: 12px; }
.panels .panel .kicker { font: 400 14px/1.3 var(--mono); letter-spacing: .08em; }
.panels .panel h2 { font-size: 34px; line-height: 1.1; font-weight: 600; letter-spacing: -.02em; }
.panels .panel[data-panel="definition"] h2 { font-weight: 400; }
.panels .panel p { font-size: 18px; line-height: 1.5; }
.panels .panel p.small { font-size: 16px; }
.panels .panel .label, .panels .panel .diagram-note { font-size: 13px; line-height: 1.4; }
.panels .panel .stats b { font-size: 32px; }
.panels .panel .qrcard b { font-size: 15px; }
.panels .panel .pipeline-steps strong, .panels .panel .steps b { font-size: 17px; }
.panels .panel .pipeline-steps span, .panels .panel .steps span { font-size: 14px; }
@media (max-height: 850px) {
  .panels .panel { gap: 9px; }
  .panels .panel h2 { font-size: 30px; }
  .panels .panel p { font-size: 16px; line-height: 1.4; }
  .panels .panel .stats b { font-size: 26px; }
}

/* Slide 06: deployed main-branch Earthmover Data Lake palette and proportions. */
.panels [data-panel="compute"].panel.em { background: #201F2C; color: #D9D6E8; }
.panels [data-panel="compute"] .kicker { color: #B7E400; }
.panels [data-panel="compute"] h2 { color: #F5F5F5; }
.panels [data-panel="compute"] p { color: #D9D6E8; }
[data-panel="compute"] .commits { display: flex; flex-direction: column; gap: 8px; }
[data-panel="compute"] .commit { padding: 12px 14px; border-radius: 0; background: #27263A; }
[data-panel="compute"] .commit.fresh { background: #2E2C40; outline: 1px solid #C396F9; }
[data-panel="compute"] .commit .id { color: #C396F9; }
[data-panel="compute"] .commit .ago { color: #A9A6BD; }
[data-panel="compute"] .two { gap: 12px; }
[data-panel="compute"] .card { background: #2A2939; padding: 14px; border-radius: 0; gap: 4px; }
[data-panel="compute"] .card b { color: #F5F5F5; font-size: 16px; }
[data-panel="compute"] .card span { color: #C9C6DA; }
[data-panel="compute"] .callout { margin-top: auto; padding: 14px 18px; border-radius: 0; background: #6D0EDB; color: #fff; font-size: 16px; font-weight: 500; }

/* Slide 07 mirrors the deployed main-branch Your Turn card and Live SQL palette. */
@media (max-height: 850px) {
}

/* Slide 03 adopts the main-branch AI-model flow dimensions. */
.panels [data-panel="nowcasting"] .box.flow { padding: 18px; border: 1px solid #333; border-radius: 0; display: flex; flex-direction: column; gap: 12px; }
.panels [data-panel="nowcasting"] .flow .frames span { height: 44px; }
.panels [data-panel="nowcasting"] .flow .engine { padding: 14px; border-radius: 0; }
.panels [data-panel="nowcasting"] .flow .out { gap: 10px; }
.panels [data-panel="nowcasting"] .flow .pill { border-radius: 0; }
.panels [data-panel="nowcasting"] .facts { gap: 6px; font-size: 16px; }

/* booth tweaks: larger chapter labels, stat numerals that fit on one line */
.panels .panel .kicker { font-size: 20px; letter-spacing: .04em; }
.panels .panel .stats b { font-size: 18px; white-space: nowrap; }
.panels .panel .stats span { font-size: 13px; }
.stats div { padding: 10px 12px; }

/* init picker: one dropdown instead of a row of buttons */
.inits select { height: 34px; padding: 0 32px 0 10px; border: 1px solid #2A2F37; border-radius: 0; background: var(--ground, #0b0d10) url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 width=%2712%27 height=%2712%27 viewBox=%270 0 12 12%27%3E%3Cpath d=%27M1 3h10L6 9z%27 fill=%27%23cfd3d8%27/%3E%3C/svg%3E") no-repeat right 10px center; color: var(--text); font: 13px var(--mono); font-variant-numeric: tabular-nums; appearance: none; -webkit-appearance: none; cursor: pointer; min-width: 150px; }
.inits select:focus-visible { outline: 2px solid var(--nv-green); outline-offset: 2px; }
.inits select option { background: #0b0d10; color: #e6e8eb; }

/* observed (+0) vs AI forecast frames: same slate / green as the panel 01 timeline */
#validEyebrow.obs, #validEyebrow.fc { align-self: flex-start; padding: 4px 10px; font-size: 15px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: #0B0D10; }
#validEyebrow.obs { background: var(--observed); color: #fff; }
#validEyebrow.fc { background: var(--predicted); }
.ticks div.obs { border-color: var(--observed); }
.ticks div.fc { border-color: color-mix(in srgb, var(--predicted) 45%, #23272E); }
.ticks div.obs.now { background: var(--observed); border-color: var(--observed); color: #fff; }
.ticks div.fc.now { background: var(--predicted); border-color: var(--predicted); color: #0B0D10; }

.bars[hidden] { display: none; }
.sql-warn { min-height: 56px; padding: 10px 12px; border: 1px solid #FFB86B; background: #2A1A10; color: #FFD2A6; font: 500 13px var(--mono); }

.al-link { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border: 1px solid var(--em-lav); color: #fff; font-size: 16px; font-weight: 500; text-decoration: none; }
.al-link:hover { background: rgba(195, 150, 249, .12); }
.al-link img { width: 24px; height: 24px; }
