@font-face { font-family: "Redaction"; src: url("./fonts/Redaction-Bold.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Redaction 20"; src: url("./fonts/Redaction20-Bold.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Redaction 50"; src: url("./fonts/Redaction50-Bold.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Redaction 100"; src: url("./fonts/Redaction100-Bold.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root {
  color-scheme: light;
  --bg: #e9edf0;
  --bg-soft: #f4f6f7;
  --panel: #f8fafb;
  --panel-raised: #ffffff;
  --ink: #111820;
  --muted: #4d5c69;
  --dim: #71808d;
  --line: rgba(29, 54, 75, 0.24);
  --line-strong: rgba(29, 54, 75, 0.52);
  --signal: #ed583d;
  --signal-soft: rgba(237, 88, 61, 0.14);
  --cyan: #087f82;
  --cyan-soft: rgba(8, 127, 130, 0.12);
  --verified: #4f873f;
  --surface-glass: rgba(248, 250, 251, 0.96);
  --surface-control: #eef2f4;
  --surface-copy: #ffffff;
  --copy-ink: #26333d;
  --surface-rail: #e6ecef;
  --surface-chip: #f5f7f8;
  --surface-tooltip: #ffffff;
  --hover: rgba(18, 42, 61, 0.05);
  --shadow: rgba(29, 44, 57, 0.2);
  --chrome-hi: #ffffff;
  --chrome-mid: #aeb9c2;
  --chrome-lo: #6f7c87;
  --chrome-deep: #46515a;
  --chrome-top: #ffffff;
  --chrome-bottom: #dce3e7;
  --chrome-shadow: rgba(39, 53, 64, 0.28);
  --chrome-search: #f7f9fa;
  --chrome-transport: #edf2f4;
  --stage: #050606;
  --player-width: 480px;
  --vanguard-transcript-height: 248px;
  --header-height: 68px;
  font-family: Ubuntu, ui-sans-serif, sans-serif;
  font-synthesis: none;
}

html[data-color-scheme="dark"] {
  color-scheme: dark;
  --bg: #070a12;
  --bg-soft: #0b101b;
  --panel: #101624;
  --panel-raised: #182132;
  --ink: #f4f5ef;
  --muted: #aab4c1;
  --dim: #707d8e;
  --line: rgba(117, 144, 174, 0.28);
  --line-strong: rgba(126, 165, 196, 0.62);
  --signal: #ff6b4a;
  --signal-soft: rgba(255, 107, 74, 0.18);
  --cyan: #53e2d0;
  --cyan-soft: rgba(83, 226, 208, 0.14);
  --verified: #99d67f;
  --surface-glass: rgba(22, 25, 27, 0.92);
  --surface-control: #0e1011;
  --surface-copy: #111315;
  --copy-ink: #d4d3cc;
  --surface-rail: #080e18;
  --surface-chip: #0b111c;
  --surface-tooltip: #0c1320;
  --hover: rgba(255, 255, 255, 0.025);
  --shadow: rgba(0, 0, 0, 0.5);
  --chrome-hi: #53657b;
  --chrome-mid: #53657b;
  --chrome-lo: #080c14;
  --chrome-deep: #080c14;
  --chrome-top: #1a2434;
  --chrome-bottom: #101724;
  --chrome-shadow: rgba(1, 3, 9, .7);
  --chrome-search: #0d1320;
  --chrome-transport: #0e1421;
}

[hidden] { display: none !important; }

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  color: var(--ink);
  background-color: var(--bg);
  background-image:
    linear-gradient(rgba(83, 226, 208, .025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(83, 226, 208, .025) 1px, transparent 1px),
    repeating-linear-gradient(135deg, rgba(84, 105, 153, .025) 0 2px, transparent 2px 22px);
  background-size: 30px 30px, 30px 30px, auto;
}

button, input, select { font: inherit; }
button, select { color: inherit; }
button { -webkit-tap-highlight-color: transparent; }

:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
}

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 10px;
  left: 10px;
  transform: translateY(-150%);
  padding: 10px 14px;
  color: #0b0c0d;
  background: var(--cyan);
  text-decoration: none;
  font-weight: 800;
}

.skip-link:focus { transform: none; }

.site-header {
  position: sticky;
  z-index: 40;
  top: 0;
  height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 0 clamp(18px, 3vw, 46px);
  border-bottom: 3px solid var(--cyan);
  background: var(--bg-soft);
}

.identity {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  text-decoration: none;
}

.identity-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line-strong);
  color: var(--signal);
  font: 850 0.72rem/1 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: 0.12em;
}

.identity b,
.identity small { display: block; }
.identity b { font-size: 0.84rem; letter-spacing: 0.05em; text-transform: uppercase; }
.identity small { margin-top: 3px; color: var(--muted); font-size: 0.7rem; }

.header-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font: 700 0.72rem/1 ui-monospace, SFMono-Regular, Menlo, monospace;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.header-actions { display: flex; align-items: center; gap: 12px; }
.theme-toggle { display: grid; width: 36px; height: 34px; padding: 7px; place-items: center; border: 1px solid var(--line-strong); color: var(--muted); background: var(--panel-raised); cursor: pointer; }
.theme-toggle:hover { color: var(--ink); border-color: var(--cyan); }
.theme-toggle svg { grid-area: 1 / 1; width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: square; stroke-linejoin: miter; }
.theme-toggle .icon-moon { fill: currentColor; stroke: none; }
.theme-toggle .icon-sun { display: none; }
html[data-color-scheme="dark"] .theme-toggle .icon-moon { display: none; }
html[data-color-scheme="dark"] .theme-toggle .icon-sun { display: block; }

.status-light {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--signal);
  box-shadow: 0 0 0 4px var(--signal-soft);
}

html[data-theatre-ready="true"] .status-light {
  background: var(--verified);
  box-shadow: 0 0 0 4px rgba(153, 214, 127, 0.13);
}

.theatre-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 20px minmax(320px, var(--player-width));
  gap: 0;
  width: min(1740px, 100%);
  margin: 0 auto;
  padding: 0 clamp(18px, 3vw, 46px) 72px;
}

.transcript-column {
  min-width: 0;
  padding: clamp(44px, 7vw, 96px) clamp(10px, 3vw, 50px) 0 0;
}

.talk-header { max-width: 900px; }

.eyebrow {
  margin: 0 0 10px;
  color: var(--signal);
  font: 800 0.72rem/1.2 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

h1 {
  max-width: 840px;
  margin: 0;
  font: 520 clamp(3rem, 7vw, 7.6rem)/0.88 Georgia, "Times New Roman", serif;
  letter-spacing: -0.055em;
}

.dek {
  max-width: 720px;
  margin: 28px 0 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.6vw, 1.24rem);
  line-height: 1.58;
}

.talk-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
}

.talk-meta span,
#precisionBadge {
  padding: 7px 9px;
  border: 1px solid var(--line);
  color: var(--muted);
  font: 750 0.68rem/1 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: 0.045em;
  text-transform: uppercase;
}

.search-dock {
  position: sticky;
  z-index: 18;
  top: calc(var(--header-height) + 12px);
  display: grid;
  grid-template-columns: minmax(240px, 1fr) auto auto auto;
  gap: 10px;
  align-items: center;
  max-width: 980px;
  margin: 48px 0 16px;
  padding: 10px;
  border: 1px solid var(--line);
  background: var(--surface-glass);
  box-shadow: 0 18px 50px var(--shadow);
  backdrop-filter: blur(18px);
}

.search-field {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid transparent;
  background: var(--surface-control);
  color: var(--muted);
}

.search-field:focus-within { border-color: var(--cyan); }
.search-field input { min-width: 0; border: 0; outline: 0; background: transparent; color: var(--ink); }
.search-field input::placeholder { color: var(--dim); }

kbd {
  display: inline-grid;
  place-items: center;
  min-width: 22px;
  min-height: 21px;
  padding: 2px 5px;
  border: 1px solid var(--line-strong);
  border-bottom-color: rgba(242, 238, 229, 0.34);
  border-radius: 3px;
  color: var(--muted);
  background: var(--surface-copy);
  font: 700 0.68rem/1 ui-monospace, SFMono-Regular, Menlo, monospace;
}

.search-nav { display: flex; align-items: center; gap: 6px; }
.search-nav output { min-width: 92px; color: var(--muted); font-size: 0.75rem; text-align: right; }

.quiet-button,
.transport-button,
.mode-button,
.text-button {
  border: 1px solid var(--line);
  color: var(--muted);
  background: transparent;
  cursor: pointer;
}

.quiet-button { width: 36px; height: 36px; }
.quiet-button:hover, .transport-button:hover, .mode-button:hover, .text-button:hover { border-color: var(--line-strong); color: var(--ink); }

.follow-control {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 8px;
  color: var(--muted);
  font-size: 0.75rem;
  white-space: nowrap;
}

.follow-control input { accent-color: var(--signal); }

.review-toggle {
  min-height: 36px;
  padding: 0 10px;
  border: 1px solid var(--line);
  color: var(--muted);
  background: transparent;
  font-size: 0.72rem;
  cursor: pointer;
}

.review-toggle span { color: var(--signal); font-variant-numeric: tabular-nums; }
.review-toggle[aria-pressed="true"] { border-color: var(--signal); color: var(--ink); background: var(--signal-soft); }

.transcript-notice {
  max-width: 980px;
  margin: 0 0 16px;
  padding: 12px 14px;
  border-left: 2px solid var(--signal);
  color: var(--muted);
  background: var(--signal-soft);
  font-size: 0.82rem;
  line-height: 1.45;
}

.transcript-notice b { color: var(--ink); }
.transcript { max-width: 980px; border-top: 1px solid var(--line); }

.passage {
  position: relative;
  display: grid;
  grid-template-columns: 80px 104px minmax(0, 1fr);
  gap: 18px;
  width: 100%;
  padding: 22px 12px;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
  transition: background-color 150ms ease, opacity 150ms ease;
  scroll-margin-top: calc(var(--header-height) + 98px);
}

.passage::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 2px;
  background: transparent;
}

.passage:hover { background: var(--hover); }
.passage.active { background: linear-gradient(90deg, var(--signal-soft), transparent 64%); }
.passage.active::before { background: var(--signal); box-shadow: 0 0 18px rgba(255, 120, 90, 0.64); }
.passage.search-current { box-shadow: inset 0 0 0 1px var(--cyan); }
.passage[hidden] { display: none; }

.passage-time {
  padding-top: 4px;
  color: var(--dim);
  font: 700 0.72rem/1 ui-monospace, SFMono-Regular, Menlo, monospace;
  font-variant-numeric: tabular-nums;
}

.speaker {
  align-self: start;
  padding-top: 2px;
  color: var(--cyan);
  font: 760 0.69rem/1.3 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.review-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 7px;
  border-radius: 50%;
  background: var(--dim);
  vertical-align: 1px;
}

.review-dot.verified { background: var(--verified); }
.review-dot.needs-review { background: var(--signal); }

.passage-copy {
  margin: 0;
  color: var(--copy-ink);
  font: 430 clamp(1.03rem, 1.65vw, 1.34rem)/1.66 Georgia, "Times New Roman", serif;
}

.word {
  border-radius: 3px;
  transition: color 90ms linear, background-color 90ms linear, box-shadow 90ms linear;
}

.word.timed:hover { color: var(--cyan); }
.word.current { color: #101112; background: var(--signal); box-shadow: 0 0 0 3px var(--signal); }
.word.search-hit { color: var(--ink); background: var(--cyan-soft); box-shadow: 0 0 0 2px var(--cyan-soft); }

.empty-state {
  max-width: 980px;
  padding: 54px 20px;
  color: var(--muted);
  border: 1px dashed var(--line-strong);
  text-align: center;
}

.panel-splitter {
  position: relative;
  min-height: calc(100vh - var(--header-height));
  cursor: col-resize;
  touch-action: none;
}

.panel-splitter span {
  position: absolute;
  top: 50%;
  left: 9px;
  width: 2px;
  height: 72px;
  transform: translate(-50%, -50%);
  border-radius: 2px;
  background: var(--line-strong);
}

.panel-splitter:hover span,
.panel-splitter:focus-visible span { background: var(--cyan); }

.playback-rail { min-width: 0; padding-top: 26px; }

.player-card {
  position: sticky;
  top: calc(var(--header-height) + 20px);
  max-height: calc(100vh - var(--header-height) - 40px);
  overflow: auto;
  border: 3px ridge #61758e;
  background: var(--panel);
  box-shadow: 8px 8px 0 var(--chrome-shadow), 0 0 0 1px var(--cyan-soft);
  scrollbar-width: thin;
}

.player-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 18px 18px 14px;
}

.player-heading .eyebrow { margin-bottom: 6px; }
.player-heading h2 { margin: 0; font: 500 1.06rem/1.2 Georgia, serif; }
.mode-button { min-height: 34px; padding: 6px 9px; font-size: 0.7rem; }
.mode-button[aria-pressed="true"] { border-color: var(--cyan); color: var(--cyan); background: var(--cyan-soft); }

.display-modes {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  padding: 0 18px 12px;
}

.display-modes button {
  min-height: 34px;
  border: 1px solid var(--line);
  color: var(--muted);
  background: var(--surface-control);
  font: 750 0.66rem/1 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
}

.display-modes button,
.layer-button { display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
.display-modes svg,
.layer-button svg,
.transport-primary svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.display-modes button:first-child svg path,
.play-button svg path { fill: currentColor; stroke: currentColor; }
.display-modes button span { font-size: 0.58rem; }

.display-modes button[aria-pressed="true"] { border-color: var(--cyan); color: var(--cyan); background: var(--cyan-soft); }
.layer-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: 38px;
  padding: 0 18px 10px;
}
.layer-button {
  min-height: 30px;
  padding: 4px 8px;
  border: 1px solid var(--line);
  color: var(--dim);
  background: transparent;
  font: 700 0.6rem/1 ui-monospace, SFMono-Regular, Menlo, monospace;
  text-transform: uppercase;
  cursor: pointer;
}
.layer-button svg { width: 15px; height: 15px; }
.layer-button[aria-pressed="true"] { border-color: rgba(105, 215, 209, 0.42); color: var(--cyan); background: rgba(105, 215, 209, 0.06); }
.layer-status { min-width: 0; margin-left: auto; overflow: hidden; color: var(--dim); font: 650 0.57rem/1.2 ui-monospace, SFMono-Regular, Menlo, monospace; text-overflow: ellipsis; white-space: nowrap; }
.vanguard-sections { display: none; }
.vanguard-sections-header {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: baseline;
  gap: 9px;
  min-width: 0;
  color: var(--dim);
  font: 700 0.56rem/1.2 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}
.vanguard-sections-header strong { min-width: 0; overflow: hidden; color: var(--ink); font-size: 0.67rem; text-overflow: ellipsis; white-space: nowrap; }
.vanguard-sections-header output { color: var(--cyan); font-variant-numeric: tabular-nums; letter-spacing: 0.02em; white-space: nowrap; }
.vanguard-section-timeline { position: relative; height: 18px; margin: 1px 5px 0; border-bottom: 2px solid rgba(112,125,142,.55); }
.vanguard-section-progress { position: absolute; right: auto; bottom: -2px; left: 0; width: 0; height: 2px; background: var(--signal); box-shadow: 0 0 8px rgba(255,107,74,.5); pointer-events: none; }
.vanguard-section-progress::after { position: absolute; top: 50%; right: -4px; width: 8px; height: 8px; border: 1px solid #ffd0c5; background: var(--signal); box-shadow: 0 0 0 3px rgba(255,107,74,.16); content: ""; transform: translateY(-50%); }
.vanguard-section-markers { position: absolute; inset: 0; }
.vanguard-section-marker { position: absolute; z-index: 2; bottom: -5px; width: 12px; height: 15px; padding: 0; border: 0; background: transparent; cursor: pointer; transform: translateX(-50%); }
.vanguard-section-marker::before { position: absolute; bottom: 3px; left: 5px; width: 2px; height: 8px; background: #718094; content: ""; }
.vanguard-section-marker:hover::before,
.vanguard-section-marker:focus-visible::before,
.vanguard-section-marker.active::before { height: 13px; background: var(--cyan); box-shadow: 0 0 7px rgba(83,226,208,.55); }
.vanguard-section-marker::after {
  position: absolute;
  z-index: 30;
  top: calc(100% + 6px);
  left: 50%;
  display: none;
  width: max-content;
  max-width: min(280px, 58vw);
  padding: 7px 9px;
  border: 1px solid var(--line-strong);
  color: var(--ink);
  background: var(--surface-tooltip);
  box-shadow: 5px 5px 0 var(--chrome-shadow);
  content: attr(data-tooltip);
  font: 650 0.64rem/1.35 Ubuntu, ui-sans-serif, sans-serif;
  letter-spacing: 0;
  text-align: left;
  text-transform: none;
  white-space: normal;
  transform: translateX(-50%);
}
.vanguard-section-marker.edge-start::after { left: 0; transform: none; }
.vanguard-section-marker.edge-end::after { right: 0; left: auto; transform: none; }
.vanguard-section-marker:hover::after,
.vanguard-section-marker:focus-visible::after { display: block; }
.vanguard-section-strip { display: flex; min-width: 0; gap: 4px; overflow-x: auto; padding: 5px 1px 2px; scrollbar-color: var(--line-strong) transparent; scrollbar-width: thin; overscroll-behavior-x: contain; }
.vanguard-section-chip { display: grid; grid-template-columns: auto minmax(80px, auto); flex: 0 0 auto; align-items: center; gap: 6px; max-width: 250px; min-height: 26px; padding: 3px 7px; border: 1px solid var(--line); color: var(--muted); background: var(--surface-chip); cursor: pointer; text-align: left; }
.vanguard-section-chip time { color: var(--signal); font: 750 0.57rem/1 ui-monospace, SFMono-Regular, Menlo, monospace; font-variant-numeric: tabular-nums; }
.vanguard-section-chip span { overflow: hidden; font-size: 0.62rem; line-height: 1.15; text-overflow: ellipsis; white-space: nowrap; }
.vanguard-section-chip:hover,
.vanguard-section-chip:focus-visible { border-color: var(--line-strong); color: var(--ink); }
.vanguard-section-chip.active { border-color: var(--cyan); color: #07110f; background: var(--cyan); }
.vanguard-section-chip.active time { color: #7b2415; }
.media-stack { position: relative; display: grid; gap: 1px; background: var(--line); }
.hud-column { display: contents; }

.media-stage {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-block: 1px solid var(--line);
  background: #050606;
  transition: aspect-ratio 220ms ease;
}

.media-stage video { width: 100%; height: 100%; display: block; object-fit: contain; }
.subject-canvas { position: absolute; z-index: 2; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.subject-canvas:not([data-ready="true"]) { opacity: 0; }
.player-card:not(.stabilize-enabled) .subject-canvas { display: none; }
.pose-stage,
.spectrum-stage,
.hand-stage { display: none; }
.pose-stage,
.spectrum-stage,
.hand-stage {
  position: relative;
  grid-template-columns: minmax(0, 1fr);
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  background-color: #070a0b;
  background-image:
    linear-gradient(rgba(105, 215, 209, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(105, 215, 209, 0.045) 1px, transparent 1px),
    radial-gradient(circle at 50% 55%, rgba(105, 215, 209, 0.08), transparent 64%);
  background-size: 18px 18px, 18px 18px, auto;
}
.pose-stage header,
.spectrum-stage header,
.hand-stage header { position: relative; z-index: 2; display: flex; justify-content: space-between; gap: 8px; min-height: 24px; align-items: center; padding: 0 7px; border-bottom: 1px solid var(--line); color: var(--cyan); background: rgba(7, 10, 11, 0.9); font: 700 0.54rem/1 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: 0.07em; text-transform: uppercase; }
.pose-stage header span,
.spectrum-stage header span,
.hand-stage header span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pose-stage output,
.spectrum-stage output,
.hand-stage output { overflow: hidden; color: var(--dim); text-overflow: ellipsis; white-space: nowrap; }
.pose-overlay,
.audio-spectrum,
.hand-overlay { display: block; width: 100%; height: 100%; pointer-events: none; }
.hand-overlay { min-width: 0; max-width: 100%; }
.player-card:not(.hands-enabled) .hand-overlay,
.player-card:not(.pose-enabled) .pose-overlay { opacity: 0; }
.signal-row { display: none; min-width: 0; min-height: 0; gap: 8px; }

.slide-stage {
  position: relative;
  margin: 0;
  overflow: hidden;
  background: #050606;
}

.slide-visual { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: #050606; }
.slide-stage img { width: 100%; height: 100%; display: block; object-fit: contain; background: white; }
.slide-stage.unmapped img { visibility: hidden; }
.slide-unavailable { position: absolute; inset: 0; display: none; place-content: center; gap: 7px; padding: 20px; color: var(--muted); background: radial-gradient(circle, rgba(105, 215, 209, 0.08), transparent 60%), #090b0c; text-align: center; }
.slide-stage.unmapped .slide-unavailable { display: grid; }
.player-card.reference-active .slide-unavailable { display: none; }
.slide-unavailable span { color: var(--ink); font: 700 0.72rem/1.2 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: 0.08em; text-transform: uppercase; }
.slide-unavailable small { font-size: 0.72rem; }
.reference-media { position: absolute; z-index: 2; inset: 0; display: none; width: 100%; height: 100%; object-fit: contain; background: #050606; }
.player-card.reference-active[data-display-mode="vanguard"] .reference-media { display: block; }
.speech-highlight { position: absolute; z-index: 4; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.player-card:not(.highlight-enabled) .speech-highlight { display: none; }
.player-card.reference-active .speech-highlight { display: none; }
.slide-stage figcaption { position: static; display: grid; grid-template-columns: auto minmax(0, 1fr); min-height: 34px; gap: 2px 8px; align-items: center; padding: 6px 9px; border-top: 1px solid var(--line); color: var(--ink); background: var(--surface-control); }
.slide-stage figcaption span, .slide-stage figcaption small { color: var(--cyan); font: 700 0.6rem/1.2 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: 0.05em; text-transform: uppercase; }
.slide-stage figcaption b { min-width: 0; overflow: hidden; font: 650 0.72rem/1.2 Inter, ui-sans-serif, sans-serif; text-overflow: ellipsis; white-space: nowrap; }
.slide-stage figcaption small { grid-column: 2; color: var(--muted); }
.slide-stage figcaption .source-credit { grid-column: 1 / -1; color: var(--signal); white-space: normal; }

.player-card[data-display-mode="camera"] .slide-stage,
.player-card[data-display-mode="slides"] .media-stage { display: none; }
.player-card[data-display-mode="split"] .media-stack { gap: 1px; }
.player-card[data-display-mode="vanguard"] .media-stack {
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(220px, 23vw, 340px);
  grid-template-rows: minmax(0, 1fr);
  background: #050606;
}
.player-card[data-display-mode="vanguard"] .slide-stage { display: block; grid-column: 1; grid-row: 1; }
.player-card[data-display-mode="vanguard"] .hud-column {
  grid-column: 2;
  grid-row: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
  gap: 8px;
  padding: 12px;
  border-left: 1px solid var(--line);
  background: #07090a;
}
.player-card[data-display-mode="vanguard"] .media-stage {
  position: relative;
  z-index: 6;
  top: auto;
  right: auto;
  flex: 0 0 auto;
  width: 100%;
  margin: 0;
  border: 1px solid rgba(242, 238, 229, 0.5);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.5);
  background: #050606;
}
.player-card[data-display-mode="vanguard"] .signal-row { display: grid; grid-template-columns: 96px minmax(0, 1fr); flex: 0 0 96px; }
.player-card[data-display-mode="vanguard"] .pose-stage,
.player-card[data-display-mode="vanguard"] .spectrum-stage { display: grid; grid-template-rows: 24px minmax(0, 1fr); min-width: 0; min-height: 0; }
.player-card[data-display-mode="vanguard"] .pose-stage { aspect-ratio: 1; }
.player-card[data-display-mode="vanguard"] .hand-stage { display: grid; grid-template-rows: 24px minmax(0, 1fr); flex: 1 1 140px; }

/* Vanguard is a stable command console: picture never yields geometry to signals. */
.theatre-shell[data-display-mode="vanguard"] {
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr) 16px var(--vanguard-transcript-height);
  height: calc(100vh - var(--header-height));
  padding-top: 12px;
  padding-bottom: 0;
  overflow: hidden;
}

.theatre-shell[data-display-mode="vanguard"] .playback-rail {
  grid-row: 1;
  min-height: 0;
  padding: 0;
}

.theatre-shell[data-display-mode="vanguard"] .player-card {
  position: relative;
  top: auto;
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr) auto;
  height: 100%;
  max-height: none;
  overflow: hidden;
}

.theatre-shell[data-display-mode="vanguard"] .player-heading,
.theatre-shell[data-display-mode="vanguard"] .chapter-panel,
.theatre-shell[data-display-mode="vanguard"] .keyboard-panel,
.theatre-shell[data-display-mode="vanguard"] .now-copy,
.theatre-shell[data-display-mode="vanguard"] .transport-secondary { display: none; }

.theatre-shell[data-display-mode="vanguard"] .display-modes {
  grid-template-columns: repeat(4, minmax(42px, 112px));
  justify-content: end;
  padding: 8px 10px 4px;
}

.theatre-shell[data-display-mode="vanguard"] .layer-bar { display: none; }
.theatre-shell[data-display-mode="vanguard"] .vanguard-sections { position: relative; z-index: 18; display: grid; min-width: 0; padding: 1px 10px 5px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--surface-rail); }
.theatre-shell[data-display-mode="vanguard"] .media-stack { min-height: 0; height: 100%; }
.theatre-shell[data-display-mode="vanguard"] .slide-stage { height: 100%; }
.theatre-shell[data-display-mode="vanguard"] .slide-visual { height: calc(100% - 34px); aspect-ratio: auto; }
.theatre-shell[data-display-mode="vanguard"] .transport { position: relative; bottom: auto; display: grid; grid-template-columns: minmax(228px, 0.34fr) minmax(280px, 1fr); gap: 14px; align-items: center; padding: 8px 10px 10px; }
.theatre-shell[data-display-mode="vanguard"] .transport-primary { grid-template-columns: 44px 68px 44px minmax(48px, 1fr); }
.theatre-shell[data-display-mode="vanguard"] .transport-button,
.theatre-shell[data-display-mode="vanguard"] .play-button { min-height: 38px; }
.theatre-shell[data-display-mode="vanguard"] .timeline-row { margin-top: 0; }

.theatre-shell[data-display-mode="vanguard"] .panel-splitter {
  grid-row: 2;
  min-height: 16px;
  height: 16px;
  cursor: row-resize;
}

.theatre-shell[data-display-mode="vanguard"] .panel-splitter span {
  top: 8px;
  left: 50%;
  width: 72px;
  height: 2px;
}

.theatre-shell[data-display-mode="vanguard"] .transcript-column {
  grid-row: 3;
  min-height: 0;
  padding: 0;
  overflow: auto;
  border: 1px solid var(--line);
  border-bottom: 0;
  background: var(--surface-glass);
  scrollbar-width: thin;
  overscroll-behavior: contain;
}

.theatre-shell[data-display-mode="vanguard"] .talk-header { display: none; }
.theatre-shell[data-display-mode="vanguard"] .search-dock {
  top: 0;
  grid-template-columns: minmax(220px, 1fr) auto auto auto;
  max-width: none;
  margin: 0;
  padding: 7px 9px;
  border-width: 0 0 1px;
  box-shadow: none;
}
.theatre-shell[data-display-mode="vanguard"] .transcript-notice,
.theatre-shell[data-display-mode="vanguard"] .transcript,
.theatre-shell[data-display-mode="vanguard"] .empty-state { max-width: none; }
.theatre-shell[data-display-mode="vanguard"] .passage {
  grid-template-columns: 72px 96px minmax(0, 1fr);
  gap: 12px;
  padding: 10px 12px;
  scroll-margin-top: 60px;
}
.theatre-shell[data-display-mode="vanguard"] .passage-copy { font-size: clamp(0.92rem, 1.15vw, 1.08rem); line-height: 1.48; }

.audio-plate {
  position: absolute;
  inset: 0;
  display: none;
  place-items: center;
  align-content: center;
  gap: 14px;
  color: var(--muted);
  background: radial-gradient(circle, rgba(105, 215, 209, 0.1), transparent 56%), #0b0d0e;
  font: 700 0.66rem/1 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.audio-orbit { width: 46px; height: 46px; border: 1px solid var(--cyan); border-radius: 50%; box-shadow: inset 0 0 0 11px rgba(105, 215, 209, 0.05), 0 0 28px rgba(105, 215, 209, 0.14); }
.player-card.audio-only .media-stage { aspect-ratio: 5 / 1; }
.player-card.audio-only video { opacity: 0; pointer-events: none; }
.player-card.audio-only .audio-plate { display: grid; }

.transport { position: sticky; z-index: 14; bottom: 0; padding: 12px 18px 14px; border-top: 1px solid var(--line); background: var(--surface-glass); backdrop-filter: blur(18px); }

.transport-primary {
  display: grid;
  grid-template-columns: 48px 76px 48px minmax(58px, 1fr);
  gap: 8px;
}

.transport-button, .play-button { display: grid; min-height: 42px; padding: 0 9px; place-items: center; cursor: pointer; }
.play-button { border: 1px solid var(--signal); color: #14100f; background: var(--signal); font-weight: 850; }
.play-button:hover { filter: brightness(1.08); }
.mute-button { justify-self: end; }
.transport-primary svg { width: 20px; height: 20px; }
.play-button .icon-pause,
.mute-button .icon-muted { display: none; }
.play-button[data-state="playing"] .icon-play,
.mute-button[data-state="muted"] .icon-volume { display: none; }
.play-button[data-state="playing"] .icon-pause,
.mute-button[data-state="muted"] .icon-muted { display: block; }

.timeline-row { display: grid; grid-template-columns: auto minmax(80px, 1fr) auto; gap: 8px; align-items: center; margin-top: 15px; }
.timeline-row time { color: var(--muted); font: 700 0.66rem/1 ui-monospace, SFMono-Regular, Menlo, monospace; font-variant-numeric: tabular-nums; }
input[type="range"] { width: 100%; accent-color: var(--signal); }

.now-copy { min-height: 116px; margin-top: 16px; padding: 14px; border: 1px solid var(--line); background: var(--surface-copy); }
.now-copy > span:first-child { color: var(--cyan); font: 760 0.66rem/1 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: 0.08em; text-transform: uppercase; }
.now-copy p { display: -webkit-box; min-height: 3.8em; margin: 9px 0 12px; overflow: hidden; color: var(--copy-ink); font: 420 0.93rem/1.45 Georgia, serif; -webkit-box-orient: vertical; -webkit-line-clamp: 3; }
.cue-badges { display: flex; flex-wrap: wrap; gap: 6px; }
.cue-badges #qualityBadge { padding: 7px 9px; border: 1px solid var(--line); color: var(--muted); font: 750 0.68rem/1 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: 0.045em; text-transform: uppercase; }
.cue-badges #qualityBadge.needs-review { border-color: rgba(255, 120, 90, 0.42); color: var(--signal); background: var(--signal-soft); }

.transport-secondary { display: grid; grid-template-columns: auto auto minmax(0, 1fr); gap: 8px; align-items: center; margin-top: 12px; }
.transport-secondary label { color: var(--muted); font-size: 0.7rem; }
.transport-secondary select { min-height: 34px; border: 1px solid var(--line); background: var(--surface-copy); }
.text-button { justify-self: end; min-height: 34px; padding: 6px 9px; font-size: 0.72rem; }

.chapter-panel, .keyboard-panel { border-top: 1px solid var(--line); padding: 16px 18px 18px; }
.panel-title-row { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.panel-title-row h3 { margin: 0; font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; }
.panel-title-row span { color: var(--dim); font: 700 0.65rem/1 ui-monospace, SFMono-Regular, Menlo, monospace; }
.chapters { display: grid; gap: 6px; margin-top: 12px; }
.chapter-button { display: grid; grid-template-columns: 54px minmax(0, 1fr); gap: 10px; width: 100%; padding: 9px 10px; border: 1px solid transparent; color: var(--muted); background: transparent; text-align: left; cursor: pointer; }
.chapter-button:hover, .chapter-button.active { border-color: var(--line); color: var(--ink); background: var(--hover); }
.chapter-button time { color: var(--signal); font: 700 0.66rem/1.4 ui-monospace, SFMono-Regular, Menlo, monospace; }
.chapter-button span { font-size: 0.78rem; line-height: 1.35; }

.keyboard-panel summary { color: var(--muted); font-size: 0.75rem; cursor: pointer; }
.keyboard-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; color: var(--muted); font-size: 0.7rem; }
.keyboard-grid span { display: flex; align-items: center; gap: 5px; }
.panel-size { display: grid; gap: 7px; margin-top: 16px; color: var(--muted); font-size: 0.7rem; }

@media (max-height: 760px) and (min-width: 781px) {
  .player-heading, .now-copy, .transport-secondary { display: none; }
  .display-modes { padding-top: 12px; }
}

@media (max-width: 1040px) {
  :root { --player-width: 400px; }
  .theatre-shell { grid-template-columns: minmax(0, 1fr) 14px minmax(320px, var(--player-width)); }
  .passage { grid-template-columns: 66px minmax(0, 1fr); gap: 12px; }
  .speaker { grid-column: 2; }
  .passage-copy { grid-column: 2; }
  .search-dock { grid-template-columns: minmax(210px, 1fr) auto auto; }
  .follow-control { display: none; }
}

@media (max-width: 780px) {
  :root { --header-height: 60px; }
  .site-header { padding-inline: 14px; }
  .identity small, .header-status span:last-child { display: none; }
  .theatre-shell,
  .theatre-shell[data-display-mode="vanguard"] { display: flex; flex-direction: column; height: auto; padding: 0 14px 72px; overflow: visible; }
  .playback-rail { order: -1; padding-top: 14px; }
  body { padding-bottom: 116px; }
  .player-card { top: calc(var(--header-height) + 8px); max-height: none; overflow: visible; }
  .player-heading, .chapter-panel, .keyboard-panel, .now-copy { display: none; }
  .display-modes { padding: 8px 12px; }
  .display-modes button span { display: none; }
  .layer-bar { padding: 0 12px 8px; }
  .layer-status { display: none; }
  .media-stage, .slide-visual { aspect-ratio: 16 / 9 !important; }
  .player-card.audio-only .audio-plate { display: grid; }
  .transport { position: fixed; z-index: 80; right: 0; bottom: 0; left: 0; display: grid; grid-template-columns: minmax(220px, 0.75fr) minmax(0, 1.25fr); gap: 10px; padding: 10px max(12px, env(safe-area-inset-right)) calc(10px + env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-left)); box-shadow: 0 -16px 50px rgba(0,0,0,.5); }
  .transport-primary { grid-template-columns: 44px 68px 44px 1fr; }
  .timeline-row { margin-top: 0; }
  .transport-secondary { display: none; }
  .transcript-column { padding: 42px 0 0; }
  .theatre-shell[data-display-mode="vanguard"] .transcript-column { padding: 20px 0 0; overflow: visible; border: 0; background: transparent; }
  .theatre-shell[data-display-mode="vanguard"] .talk-header { display: none; }
  .theatre-shell[data-display-mode="vanguard"] .search-dock { top: calc(var(--header-height) + 8px); grid-template-columns: minmax(210px, 1fr) auto auto; margin: 18px 0 16px; border: 1px solid var(--line); box-shadow: 0 18px 50px rgba(0, 0, 0, 0.28); }
  .theatre-shell[data-display-mode="vanguard"] .player-card { position: sticky; top: calc(var(--header-height) + 8px); display: block; height: auto; overflow: visible; }
  .theatre-shell[data-display-mode="vanguard"] .display-modes { grid-template-columns: repeat(4, 1fr); justify-content: stretch; }
  .theatre-shell[data-display-mode="vanguard"] .vanguard-sections { padding-inline: 8px; }
  .vanguard-sections-header { grid-template-columns: minmax(0, 1fr) auto; }
  .vanguard-sections-header > span { display: none; }
  .vanguard-section-chip { max-width: 210px; }
  .theatre-shell[data-display-mode="vanguard"] .media-stack { display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto 120px; height: auto; }
  .theatre-shell[data-display-mode="vanguard"] .slide-stage { height: auto; }
  .theatre-shell[data-display-mode="vanguard"] .slide-visual { height: auto; aspect-ratio: 16 / 9; }
  .theatre-shell[data-display-mode="vanguard"] .slide-stage { grid-column: 1 / -1; grid-row: 1; }
  .theatre-shell[data-display-mode="vanguard"] .hud-column { grid-column: 1 / -1; grid-row: 2; display: grid; grid-template-columns: minmax(72px, .8fr) minmax(140px, 1.6fr) minmax(100px, 1.2fr); gap: 6px; height: 120px; padding: 8px; border-top: 1px solid var(--line); border-left: 0; }
  .theatre-shell[data-display-mode="vanguard"] .media-stage { position: relative; top: auto; right: auto; width: 100%; height: 100%; margin: 0; aspect-ratio: auto !important; }
  .theatre-shell[data-display-mode="vanguard"] .signal-row { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 5px; height: 100%; min-height: 0; }
  .theatre-shell[data-display-mode="vanguard"] .pose-stage,
  .theatre-shell[data-display-mode="vanguard"] .spectrum-stage,
  .theatre-shell[data-display-mode="vanguard"] .hand-stage { display: grid; height: 100%; min-height: 0; }
  .theatre-shell[data-display-mode="vanguard"] .pose-stage { grid-template-rows: 24px minmax(0, 1fr); }
  .theatre-shell[data-display-mode="vanguard"] .spectrum-stage { grid-template-rows: 24px minmax(0, 1fr); }
  .theatre-shell[data-display-mode="vanguard"] .hand-stage { grid-template-rows: 24px minmax(0, 1fr); }
  .theatre-shell[data-display-mode="vanguard"] .transport { position: fixed; z-index: 80; right: 0; bottom: 0; left: 0; display: grid; grid-template-columns: minmax(220px, 0.75fr) minmax(0, 1.25fr); }
  h1 { font-size: clamp(3.1rem, 18vw, 5.4rem); }
  .panel-splitter { display: none; }
  .search-dock { top: calc(var(--header-height) + 8px); }
  .transcript-notice { font-size: 0.76rem; }
}

@media (max-width: 520px) {
  .talk-meta { gap: 5px; }
  .talk-meta span { font-size: 0.61rem; }
  .search-dock { grid-template-columns: minmax(0, 1fr); }
  .theatre-shell[data-display-mode="vanguard"] .search-dock { grid-template-columns: minmax(0, 1fr); }
  .search-nav { justify-content: flex-end; }
  .search-nav output { margin-right: auto; text-align: left; }
  .passage { grid-template-columns: 62px minmax(0, 1fr); padding: 18px 7px; }
  .theatre-shell[data-display-mode="vanguard"] .passage { grid-template-columns: 62px minmax(0, 1fr); gap: 8px; padding: 12px 7px; }
  .speaker, .passage-copy { grid-column: 2; }
  .theatre-shell[data-display-mode="vanguard"] .speaker,
  .theatre-shell[data-display-mode="vanguard"] .passage-copy { grid-column: 2; }
  .passage-copy { font-size: 1.03rem; }
  .transport { grid-template-columns: 1fr; }
  .theatre-shell[data-display-mode="vanguard"] .transport { grid-template-columns: 1fr; }
  .timeline-row { grid-template-columns: auto minmax(60px, 1fr) auto; }
  .timeline-row time:last-child { display: block; }
  .player-card[data-display-mode="vanguard"] .media-stage { width: 100%; }
  .slide-stage figcaption small { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}

/* Production direction: a 1997 multimedia console rebuilt with modern color. */
html:not([data-theme]) body,
html:not([data-theme]) body * { font-family: Ubuntu, ui-sans-serif, sans-serif !important; }
html:not([data-theme]) h1 { font-family: "Redaction", Georgia, serif !important; font-weight: 700; }
html:not([data-theme]) .player-heading h2,
html:not([data-theme]) .slide-stage figcaption b { font-family: "Redaction 20", Georgia, serif !important; font-weight: 700; }
html:not([data-theme]) .panel-title-row h3 { font-family: "Redaction 50", Georgia, serif !important; font-weight: 700; }
html:not([data-theme]) button,
html:not([data-theme]) input,
html:not([data-theme]) select,
html:not([data-theme]) .search-dock,
html:not([data-theme]) .now-copy { border-radius: 0 !important; }
html:not([data-theme]) .display-modes button,
html:not([data-theme]) .layer-button,
html:not([data-theme]) .transport-button,
html:not([data-theme]) .mode-button,
html:not([data-theme]) .quiet-button,
html:not([data-theme]) .review-toggle,
html:not([data-theme]) .text-button,
html:not([data-theme]) select {
  border-width: 2px;
  border-style: solid;
  border-top-color: var(--chrome-hi);
  border-left-color: var(--chrome-mid);
  border-right-color: var(--chrome-deep);
  border-bottom-color: var(--chrome-lo);
  color: var(--muted);
  background: linear-gradient(var(--chrome-top), var(--chrome-bottom));
  box-shadow: 2px 2px 0 var(--chrome-shadow);
}
html:not([data-theme]) .search-dock { border: 3px ridge var(--chrome-mid); background: var(--chrome-search); box-shadow: 5px 5px 0 var(--chrome-shadow); }
html:not([data-theme]) .transport { border-top: 3px ridge var(--chrome-mid); background: var(--chrome-transport); backdrop-filter: none; }
html:not([data-theme]) .pose-stage,
html:not([data-theme]) .spectrum-stage,
html:not([data-theme]) .hand-stage { border: 2px inset var(--chrome-mid); background-color: var(--stage); }
html:not([data-theme]) .display-modes button[aria-pressed="true"],
html:not([data-theme]) .layer-button[aria-pressed="true"] {
  border-top-color: #070b12;
  border-left-color: #070b12;
  border-right-color: #50657d;
  border-bottom-color: #50657d;
  color: #07110f;
  background: var(--cyan);
  box-shadow: inset 2px 2px 0 rgba(0,0,0,.28);
}
html:not([data-theme]) .display-modes button[aria-pressed="true"],
html:not([data-theme]) .layer-button[aria-pressed="true"] svg { color: #07110f; }
html:not([data-theme]) .play-button {
  border: 2px outset #ff9a83;
  color: #150805;
  background: linear-gradient(#ff866c, var(--signal));
  box-shadow: 3px 3px 0 var(--chrome-shadow);
}
html:not([data-theme]) .play-button:active { border-style: inset; box-shadow: inset 2px 2px 0 rgba(0,0,0,.3); }

/* Direction study A: Times New Roman, white paper, almost no styling. */
html[data-theme="times"] {
  color-scheme: light;
  --bg: #fff;
  --bg-soft: #fff;
  --panel: #fff;
  --panel-raised: #fff;
  --ink: #111;
  --muted: #444;
  --dim: #777;
  --line: #bbb;
  --line-strong: #111;
  --signal: #111;
  --signal-soft: #eee;
  --cyan: #111;
  --cyan-soft: #eee;
  --verified: #111;
}
html[data-theme="times"] body,
html[data-theme="times"] body * { font-family: "Times New Roman", Times, serif !important; }
html[data-theme="times"] body { color: #111; background: #fff; }
html[data-theme="times"] .site-header { height: 48px; padding-inline: 18px; border-bottom: 1px solid #111; background: #fff; backdrop-filter: none; }
html[data-theme="times"] .identity-mark { width: 28px; height: 28px; border: 1px solid #111; color: #111; }
html[data-theme="times"] .identity small,
html[data-theme="times"] .header-status { color: #333; }
html[data-theme="times"] .player-card { border: 1px solid #111; background: #fff; box-shadow: none; }
html[data-theme="times"] .display-modes button,
html[data-theme="times"] .layer-button,
html[data-theme="times"] button,
html[data-theme="times"] select { border: 1px solid #777; border-radius: 0; color: #111; background: #fff; box-shadow: none; }
html[data-theme="times"] .display-modes button[aria-pressed="true"],
html[data-theme="times"] .layer-button[aria-pressed="true"] { border-color: #111; color: #fff; background: #111; }
html[data-theme="times"] .layer-status,
html[data-theme="times"] .eyebrow,
html[data-theme="times"] .speaker,
html[data-theme="times"] .passage-time { color: #333; }
html[data-theme="times"] .media-stack,
html[data-theme="times"] .hud-column,
html[data-theme="times"] .pose-stage,
html[data-theme="times"] .spectrum-stage,
html[data-theme="times"] .hand-stage { background-color: #fff; background-image: none; }
html[data-theme="times"] .pose-stage header,
html[data-theme="times"] .spectrum-stage header,
html[data-theme="times"] .hand-stage header,
html[data-theme="times"] .slide-stage figcaption,
html[data-theme="times"] .transport,
html[data-theme="times"] .search-dock,
html[data-theme="times"] .now-copy { color: #111; background: #fff; backdrop-filter: none; }
html[data-theme="times"] .transcript-column { background: #fff; }
html[data-theme="times"] .passage { border-color: #ccc; color: #111; background: #fff; }
html[data-theme="times"] .passage-copy,
html[data-theme="times"] .now-copy p { color: #111; }
html[data-theme="times"] .passage.active { background: #eee; }
html[data-theme="times"] .word.current { color: #fff; background: #111; box-shadow: none; }
html[data-theme="times"] .play-button { color: #fff; background: #111; }
html[data-theme="times"] .status-light { background: #111; box-shadow: none; }

/* Direction study B: glossy 1997 multimedia control room. */
html[data-theme="90s"] {
  color-scheme: dark;
  --bg: #05004e;
  --bg-soft: #06006a;
  --panel: #c0c0c0;
  --panel-raised: #dfdfdf;
  --ink: #fff;
  --muted: #d8ffff;
  --dim: #8ae9ff;
  --line: #00ffff;
  --line-strong: #ff00ff;
  --signal: #ffff00;
  --signal-soft: rgba(255,255,0,.2);
  --cyan: #00ffff;
  --cyan-soft: rgba(0,255,255,.18);
  --verified: #00ff00;
}
html[data-theme="90s"] body,
html[data-theme="90s"] body * { font-family: Arial, Helvetica, sans-serif !important; }
html[data-theme="90s"] body {
  color: #fff;
  background-color: #05004e;
  background-image: repeating-linear-gradient(135deg, rgba(255,0,255,.09) 0 2px, transparent 2px 18px);
}
html[data-theme="90s"] .site-header { border-bottom: 5px ridge #00ffff; background: linear-gradient(90deg, #000080, #510080); backdrop-filter: none; }
html[data-theme="90s"] .identity-mark { border: 3px outset #c0c0c0; color: #ffff00; background: #000080; }
html[data-theme="90s"] .player-card { border: 4px ridge #c0c0c0; background: #00005c; box-shadow: 10px 10px 0 #21002f; }
html[data-theme="90s"] button,
html[data-theme="90s"] select,
html[data-theme="90s"] .search-dock { border: 3px outset #eee; border-radius: 0; color: #000; background: #c0c0c0; box-shadow: none; }
html[data-theme="90s"] button:active { border-style: inset; }
html[data-theme="90s"] .display-modes button[aria-pressed="true"],
html[data-theme="90s"] .layer-button[aria-pressed="true"] { color: #fff; background: #000080; }
html[data-theme="90s"] .media-stack { background: #ff00ff; }
html[data-theme="90s"] .hud-column { background: #000034; }
html[data-theme="90s"] .pose-stage,
html[data-theme="90s"] .spectrum-stage,
html[data-theme="90s"] .hand-stage { border: 3px inset #c0c0c0; background-color: #000; }
html[data-theme="90s"] .pose-stage header,
html[data-theme="90s"] .spectrum-stage header,
html[data-theme="90s"] .hand-stage header { color: #ffff00; background: #000080; }
html[data-theme="90s"] .slide-stage figcaption { color: #000; background: #c0c0c0; }
html[data-theme="90s"] .transport,
html[data-theme="90s"] .search-dock { background: #c0c0c0; backdrop-filter: none; }
html[data-theme="90s"] .timeline-row time,
html[data-theme="90s"] .search-nav output { color: #000; }
html[data-theme="90s"] .play-button { color: #000; background: #ffff00; }
html[data-theme="90s"] .transcript-column { background: rgba(0,0,70,.82); }
html[data-theme="90s"] .passage { border-color: #00ffff; background: #00005c; }
html[data-theme="90s"] .passage.active { background: #500080; }
html[data-theme="90s"] .word.current { color: #000; background: #ffff00; box-shadow: 0 0 0 2px #ff00ff; }

/* Playback-speed select. Lives in the primary transport row so it remains
   visible in every display mode (Vanguard included) and at narrow widths.
   Additive rules only; the transport-secondary row and all mode-specific
   layout rules above are untouched. */
.transport-primary .speed-select {
  border: 1px solid var(--line);
  color: var(--muted);
  background: transparent;
  cursor: pointer;
  min-height: 42px;
  padding: 0 8px;
  font: inherit;
  font-size: 0.8rem;
}
.transport-primary .speed-select:hover { border-color: var(--line-strong); color: var(--ink); }
.theatre-shell[data-display-mode="vanguard"] .transport-primary .speed-select { min-height: 38px; }
.transport-primary { grid-template-columns: 48px 76px 48px auto minmax(58px, 1fr); }
.theatre-shell[data-display-mode="vanguard"] .transport-primary { grid-template-columns: 44px 68px 44px auto minmax(48px, 1fr); }
@media (max-width: 860px) {
  .transport-primary { grid-template-columns: 44px 68px 44px auto 1fr; }
}
.transport-primary .speed-select { min-width: 64px; }
