:root {
  --ink: #eef8ff;
  --muted: #85a0b1;
  --line: rgba(125, 211, 252, 0.18);
  --panel: rgba(8, 19, 28, 0.9);
  --panel-deep: rgba(4, 11, 17, 0.96);
  --cyan: #25d8ff;
  --cyan-soft: rgba(37, 216, 255, 0.16);
  --orange: #ff7a1a;
  --green: #2df0a0;
  --red: #ff465e;
  --gold: #ffd166;
}

* { box-sizing: border-box; }

html, body { margin: 0; width: 100%; height: 100%; overflow: hidden; background: #02070b; color: var(--ink); }

body {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-variant-numeric: tabular-nums;
}

button, input, textarea { font: inherit; }

button { color: inherit; }

.stage {
  position: relative;
  width: 100vw;
  height: 100vh;
  min-width: 960px;
  min-height: 540px;
  padding: clamp(14px, 1.35vw, 26px);
  overflow: hidden;
  background:
    radial-gradient(circle at 18% 8%, rgba(15, 149, 195, 0.14), transparent 32%),
    radial-gradient(circle at 85% 96%, rgba(255, 122, 26, 0.09), transparent 33%),
    linear-gradient(125deg, #071018 0%, #03080c 54%, #071017 100%);
}

.stage::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: .28;
  background-image:
    linear-gradient(rgba(83, 172, 202, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(83, 172, 202, .045) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(to bottom, black, transparent 88%);
}

.panel-edge {
  border: 1px solid var(--line);
  background: linear-gradient(140deg, rgba(10, 24, 35, .94), rgba(5, 13, 20, .94));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.025), 0 18px 60px rgba(0,0,0,.16);
}

.topbar {
  position: relative;
  z-index: 3;
  height: 9.4%;
  min-height: 70px;
  display: grid;
  grid-template-columns: 1.25fr 1fr 1.2fr;
  align-items: center;
  gap: 24px;
  padding: 0 24px;
  border-radius: 12px;
}

.brand-lockup { display: flex; align-items: center; gap: 14px; }
.brand-mark { width: 42px; height: 42px; display: flex; align-items: flex-end; gap: 4px; padding: 8px; background: var(--cyan-soft); border: 1px solid rgba(37,216,255,.35); border-radius: 10px; }
.brand-mark span { flex: 1; display: block; border-radius: 2px; background: var(--cyan); box-shadow: 0 0 12px rgba(37,216,255,.45); }
.brand-mark span:nth-child(1) { height: 45%; }
.brand-mark span:nth-child(2) { height: 92%; }
.brand-mark span:nth-child(3) { height: 66%; }
.eyebrow { margin: 0 0 3px; color: var(--muted); font-size: clamp(8px, .56vw, 11px); font-weight: 800; letter-spacing: .19em; text-transform: uppercase; }
.brand-lockup h1 { margin: 0; font-size: clamp(16px, 1.22vw, 24px); line-height: 1; letter-spacing: .025em; }
.brand-lockup h1 b { color: var(--cyan); }

.topic-block { min-width: 0; display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 20px; padding-left: 24px; border-left: 1px solid var(--line); }
.topic-label, .clock-block span, .delay-block span { display: block; color: var(--muted); font-size: clamp(8px, .52vw, 10px); letter-spacing: .16em; font-weight: 800; }
.topic-block strong { display: block; margin-top: 5px; overflow: hidden; color: #e7f7ff; font-size: clamp(11px, .78vw, 15px); white-space: nowrap; text-overflow: ellipsis; }
.speaker-button { min-width: 110px; padding: 7px 11px; text-align: left; border: 1px solid rgba(37,216,255,.23); border-radius: 7px; background: rgba(37,216,255,.065); cursor: pointer; }
.speaker-button:hover { border-color: var(--cyan); }
.speaker-button strong { color: var(--cyan); }
.topic-copy { min-width: 0; }

.live-cluster { display: flex; justify-content: flex-end; align-items: center; gap: clamp(12px, 1.1vw, 22px); }
.live-pill { display: flex; align-items: center; gap: 8px; padding: 8px 12px; color: #a7becb; font-size: clamp(9px, .6vw, 12px); letter-spacing: .12em; border: 1px solid rgba(167,190,203,.2); border-radius: 999px; background: rgba(255,255,255,.025); }
.live-dot, .button-dot { width: 8px; height: 8px; border-radius: 50%; background: #6b7c86; }
[data-state="live"] .live-pill { color: #fff; border-color: rgba(255,70,94,.38); background: rgba(255,70,94,.12); }
[data-state="live"] .live-dot, [data-state="live"] .button-dot { background: var(--red); box-shadow: 0 0 13px rgba(255,70,94,.9); animation: pulse 1.35s infinite; }
.clock-block b, .delay-block b { display: block; margin-top: 3px; font-family: "SFMono-Regular", Consolas, monospace; font-size: clamp(11px, .75vw, 15px); }
.delay-block b { color: var(--gold); }
.icon-button { width: 38px; height: 38px; border: 1px solid var(--line); border-radius: 9px; background: rgba(255,255,255,.03); cursor: pointer; }
.icon-button:hover { border-color: var(--cyan); color: var(--cyan); }

.broadcast-grid {
  position: relative;
  z-index: 2;
  height: calc(82.6% - clamp(20px, 1.5vw, 29px));
  display: grid;
  grid-template-columns: minmax(0, 1.57fr) minmax(360px, .9fr);
  gap: clamp(12px, .9vw, 18px);
  margin-top: clamp(10px, .75vw, 15px);
}

.main-column, .side-column { display: grid; min-height: 0; gap: clamp(10px, .7vw, 14px); }
.main-column { grid-template-rows: 1.48fr .58fr .54fr; }
.side-column { grid-template-rows: 1.5fr .78fr .32fr; }
.claim-stage, .panel, .transcript-panel, .verdict-panel, .safety-panel { min-height: 0; border-radius: 10px; overflow: hidden; }

.section-heading {
  min-height: 54px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 18px;
  border-bottom: 1px solid var(--line);
  color: #bed6e4;
  font-size: clamp(9px, .62vw, 12px);
  font-weight: 900;
  letter-spacing: .14em;
}
.section-heading > div:first-child { display: flex; align-items: center; gap: 10px; }
.section-heading.compact { min-height: 42px; padding: 0 15px; }
.section-index { display: inline-flex; align-items: center; justify-content: center; min-width: 28px; height: 24px; padding: 0 7px; color: var(--cyan); border: 1px solid rgba(37,216,255,.26); background: var(--cyan-soft); border-radius: 5px; font-size: 9px; }
.type-chip, .confidence-chip, .tiny-state { padding: 6px 9px; border: 1px solid rgba(255,255,255,.12); border-radius: 5px; color: var(--muted); background: rgba(255,255,255,.025); font-size: 9px; letter-spacing: .09em; }
.type-chip.fact { color: #071018; background: var(--orange); border-color: var(--orange); }
.type-chip.analogy { color: #071018; background: var(--gold); border-color: var(--gold); }
.type-chip.opinion { color: #06110d; background: var(--green); border-color: var(--green); }
.type-chip.question { color: #031018; background: var(--cyan); border-color: var(--cyan); }
.type-chip.rebuttal { color: white; background: #8a5cff; border-color: #8a5cff; }

.claim-body { height: calc(100% - 122px); min-height: 150px; display: grid; grid-template-columns: minmax(150px, .36fr) 1fr; align-items: center; gap: clamp(18px, 2vw, 38px); padding: clamp(14px, 1.2vw, 24px) clamp(20px, 2vw, 40px); }
.radar { position: relative; width: min(15vw, 235px); aspect-ratio: 1; justify-self: center; display: grid; place-items: center; }
.radar::before, .radar::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: repeating-conic-gradient(from 0deg, rgba(37,216,255,.2) 0 1deg, transparent 1deg 30deg); mask-image: radial-gradient(circle, transparent 0 61%, black 62% 63%, transparent 64%); }
.radar::after { animation: rotate 8s linear infinite; background: conic-gradient(from 0deg, transparent 0 70%, rgba(37,216,255,.45) 96%, transparent); mask-image: radial-gradient(circle, black 0 65%, transparent 66%); opacity: .4; }
.radar-ring { position: absolute; border-radius: 50%; border: 1px solid rgba(37,216,255,.24); }
.ring-one { inset: 8%; }.ring-two { inset: 25%; }.ring-three { inset: 39%; }
.radar-core { position: relative; z-index: 2; width: 29%; aspect-ratio: 1; display: grid; place-items: center; border-radius: 50%; color: var(--cyan); font-size: clamp(20px, 2vw, 38px); border: 1px solid rgba(37,216,255,.55); background: radial-gradient(circle, rgba(37,216,255,.25), rgba(37,216,255,.04)); box-shadow: 0 0 35px rgba(37,216,255,.14); }
.radar.checking .radar-ring { animation: sonar 1.45s ease-out infinite; }
.radar.verdict .radar-core { color: var(--green); border-color: var(--green); box-shadow: 0 0 35px rgba(45,240,160,.2); }
.claim-kicker { margin: 0 0 10px; color: var(--orange); font-size: clamp(9px, .68vw, 13px); font-weight: 900; letter-spacing: .16em; }
.claim-copy h2 { max-width: 850px; margin: 0; font-size: clamp(22px, 2.1vw, 42px); line-height: 1.11; letter-spacing: -.035em; text-wrap: balance; }
.claim-status { margin: 14px 0 0; color: var(--muted); font-size: clamp(10px, .73vw, 14px); }

.evidence-strip { height: 68px; display: grid; grid-template-columns: .62fr 1fr; align-items: center; gap: 24px; padding: 0 20px; border-top: 1px solid var(--line); background: rgba(1,7,11,.42); }
.evidence-meter span { display: block; margin-bottom: 7px; color: var(--muted); font-size: 8px; font-weight: 900; letter-spacing: .15em; }
.meter-track { height: 4px; overflow: hidden; background: rgba(255,255,255,.08); border-radius: 10px; }
.meter-track i { display: block; width: 8%; height: 100%; background: linear-gradient(90deg, var(--cyan), var(--green)); box-shadow: 0 0 10px var(--cyan); transition: width .45s ease; }
.pipeline { display: flex; justify-content: space-between; gap: 8px; margin: 0; padding: 0; list-style: none; }
.pipeline li { display: flex; align-items: center; gap: 6px; color: #506673; font-size: clamp(7px, .48vw, 9px); font-weight: 900; letter-spacing: .06em; }
.pipeline li i { width: 7px; height: 7px; border-radius: 50%; background: #334650; }
.pipeline li.active { color: var(--cyan); }.pipeline li.active i { background: var(--cyan); box-shadow: 0 0 10px rgba(37,216,255,.8); }
.pipeline li.done { color: var(--green); }.pipeline li.done i { background: var(--green); }

.lower-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(10px, .7vw, 14px); min-height: 0; }
.context-panel { position: relative; }
.context-panel::after { content: ""; position: absolute; left: 0; top: 42px; bottom: 0; width: 3px; background: var(--cyan); box-shadow: 0 0 12px var(--cyan); }
.context-panel.accent::after { background: var(--orange); box-shadow: 0 0 12px var(--orange); }
.context-panel p { margin: 0; padding: clamp(13px, 1.15vw, 22px); color: #d6e8f2; font-size: clamp(12px, .93vw, 18px); line-height: 1.45; }

.queue-panel { display: grid; grid-template-rows: 42px 1fr; }
.queue-count { color: var(--muted); font-size: 9px; }.queue-count b { color: var(--cyan); }
.claim-queue { min-height: 0; display: flex; align-items: stretch; gap: 8px; padding: 10px; overflow-x: auto; overflow-y: hidden; scrollbar-width: thin; }
.empty-queue { align-self: center; margin-left: 8px; color: #607784; font-size: 11px; }
.queue-card { width: clamp(190px, 15vw, 290px); flex: 0 0 auto; padding: 10px 12px; border: 1px solid rgba(255,255,255,.08); border-left: 3px solid var(--cyan); border-radius: 6px; background: rgba(255,255,255,.025); }
.queue-card[data-status="verified"] { border-left-color: var(--green); }
.queue-card[data-status="review"] { border-left-color: var(--gold); }
.queue-meta { display: flex; justify-content: space-between; color: var(--muted); font-size: 7px; font-weight: 900; letter-spacing: .09em; }
.queue-card p { margin: 7px 0 0; color: #c7dbe6; font-size: 10px; line-height: 1.25; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }

.transcript-panel { display: grid; grid-template-rows: 54px 1fr 74px; }
.transcript-actions { display: flex !important; gap: 7px !important; }
.confidence-chip { color: var(--green); border-color: rgba(45,240,160,.2); }
.small-button { padding: 6px 8px; color: var(--muted); font-size: 8px; font-weight: 900; letter-spacing: .08em; border: 1px solid var(--line); border-radius: 5px; background: transparent; cursor: pointer; }
.transcript-viewport { position: relative; padding: clamp(16px, 1.25vw, 24px); overflow: hidden auto; scroll-behavior: smooth; }
.transcript-viewport::after { content: ""; position: sticky; bottom: -1px; display: block; height: 28px; background: linear-gradient(transparent, rgba(5,13,20,.95)); pointer-events: none; }
.transcript-placeholder { margin: 0; color: #536c79; font-size: clamp(16px, 1.28vw, 25px); line-height: 1.55; }
.final-transcript { color: #b9cfda; font-size: clamp(15px, 1.12vw, 22px); line-height: 1.52; }
.transcript-utterance { display: inline; margin-right: .36em; }
.transcript-utterance::before { content: attr(data-speaker); display: inline-block; margin: 0 .48em 0 0; padding: .16em .38em; color: var(--cyan); border: 1px solid rgba(37,216,255,.22); border-radius: 3px; background: rgba(37,216,255,.06); font-size: .47em; font-weight: 950; letter-spacing: .08em; vertical-align: .24em; }
.transcript-utterance::after { content: " "; }
.transcript-word { display: inline; padding: .05em .05em; border-radius: .15em; transition: color .12s, background .12s; }
.transcript-word.recent { color: #fff; background: rgba(37,216,255,.16); box-shadow: 0 0 13px rgba(37,216,255,.05); }
.interim-transcript { margin-top: 9px; color: #fff; font-size: clamp(18px, 1.42vw, 28px); font-weight: 800; line-height: 1.48; }
.interim-transcript span { opacity: .54; }
.interim-transcript span.active-word { opacity: 1; color: #061016; background: var(--cyan); box-shadow: 0 0 18px rgba(37,216,255,.35); border-radius: 4px; padding: 0 .12em; }
.audio-wave { position: relative; border-top: 1px solid var(--line); background: rgba(1,7,11,.52); }
.audio-wave canvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .9; }
.wave-label { position: absolute; z-index: 2; inset: auto 12px 9px 12px; display: flex; justify-content: space-between; color: var(--muted); font-size: 8px; font-weight: 900; letter-spacing: .11em; }
.wave-label b { color: var(--cyan); }

.verdict-panel { display: grid; grid-template-rows: 39px 1fr 1fr; }
.verdict-header { display: flex; justify-content: space-between; align-items: center; padding: 0 14px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 8px; font-weight: 900; letter-spacing: .12em; }
.verdict-header b { color: var(--gold); }
.verdict-main { display: flex; align-items: center; gap: 14px; padding: 11px 16px; }
.verdict-icon { width: 44px; height: 44px; flex: 0 0 auto; display: grid; place-items: center; border: 1px solid rgba(255,209,102,.38); border-radius: 9px; color: var(--gold); background: rgba(255,209,102,.08); font-size: 24px; font-weight: 900; }
.verdict-main p { margin: 0 0 4px; color: var(--gold); font-size: clamp(15px, 1.05vw, 21px); font-weight: 950; letter-spacing: .06em; }
.verdict-main span { color: #93aab7; font-size: clamp(9px, .62vw, 12px); }
.verdict-panel[data-verdict="supported"] .verdict-icon, .verdict-panel[data-verdict="supported"] .verdict-main p { color: var(--green); }
.verdict-panel[data-verdict="supported"] .verdict-icon { border-color: rgba(45,240,160,.4); background: rgba(45,240,160,.08); }
.verdict-panel[data-verdict="misleading"] .verdict-icon, .verdict-panel[data-verdict="misleading"] .verdict-main p { color: var(--red); }
.source-receipt { min-height: 0; padding: 9px 14px; border-top: 1px solid var(--line); background: rgba(1,7,11,.34); }
.source-title { display: flex; justify-content: space-between; margin-bottom: 7px; color: var(--muted); font-size: 7px; font-weight: 900; letter-spacing: .1em; }
.source-title b { color: var(--cyan); }
.source-list { display: flex; flex-direction: column; gap: 5px; }
.source-empty { color: #536c79; font-size: 9px; }
.source-item { display: grid; grid-template-columns: 13px 1fr auto; align-items: center; gap: 7px; color: #c3d7e1; font-size: 8px; }
.source-item i { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 7px rgba(45,240,160,.4); }
.source-item b { color: var(--muted); font-size: 7px; }

.safety-panel { display: grid; grid-template-columns: 1.2fr .85fr auto; align-items: center; gap: 12px; padding: 0 13px; }
.safety-status { display: flex; align-items: center; gap: 10px; }
.shield { display: grid; place-items: center; width: 31px; height: 31px; color: var(--muted); border: 1px solid rgba(255,255,255,.1); transform: rotate(45deg); border-radius: 6px; }
.shield::first-letter { transform: rotate(-45deg); }
.safety-status div span, .safety-copy span { display: block; color: var(--muted); font-size: 7px; font-weight: 900; letter-spacing: .1em; }
.safety-status div b, .safety-copy b { display: block; margin-top: 3px; color: #708692; font-size: 9px; }
.safety-copy { padding-left: 12px; border-left: 1px solid var(--line); }
.safety-copy b { color: var(--gold); }
.bleep-button { height: 36px; padding: 0 12px; color: white; font-size: 9px; font-weight: 950; letter-spacing: .05em; border: 1px solid rgba(255,70,94,.42); border-radius: 6px; background: rgba(255,70,94,.12); cursor: pointer; }
.bleep-button:active { background: var(--red); }
kbd { margin-left: 7px; padding: 2px 5px; color: #fff; font-family: inherit; border: 1px solid rgba(255,255,255,.24); border-radius: 3px; background: rgba(255,255,255,.07); }

.control-dock { position: absolute; z-index: 4; left: clamp(14px, 1.35vw, 26px); right: clamp(14px, 1.35vw, 26px); bottom: clamp(14px, 1.35vw, 26px); height: 6.3%; min-height: 52px; display: flex; align-items: center; justify-content: space-between; padding: 0 14px 0 18px; border-radius: 11px; }
.dock-note { display: flex; align-items: center; gap: 11px; }
.system-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--green); box-shadow: 0 0 12px rgba(45,240,160,.6); }
.dock-note b, .dock-note span { display: block; }
.dock-note b { color: #dbeef7; font-size: 9px; letter-spacing: .09em; }
.dock-note div span { margin-top: 2px; color: var(--muted); font-size: 9px; }
.dock-actions { display: flex; gap: 8px; height: 70%; }
.primary-button, .secondary-button { padding: 0 18px; border-radius: 7px; font-size: 9px; font-weight: 950; letter-spacing: .08em; cursor: pointer; }
.primary-button { display: flex; align-items: center; gap: 8px; color: #051016; border: 1px solid var(--cyan); background: var(--cyan); box-shadow: 0 0 22px rgba(37,216,255,.12); }
.secondary-button { color: #b7d0dc; border: 1px solid var(--line); background: rgba(255,255,255,.025); }
.secondary-button:hover { border-color: rgba(37,216,255,.5); }

.toast-region { position: fixed; z-index: 20; right: 26px; bottom: 105px; display: flex; flex-direction: column; align-items: flex-end; gap: 8px; pointer-events: none; }
.toast { max-width: 420px; padding: 12px 15px; color: #dff5ff; font-size: 12px; border: 1px solid rgba(37,216,255,.34); border-radius: 7px; background: rgba(5,17,25,.96); box-shadow: 0 18px 50px rgba(0,0,0,.35); animation: toastIn .24s ease; }
.toast.danger { border-color: rgba(255,70,94,.52); }

.settings-dialog { width: min(610px, 92vw); padding: 0; color: var(--ink); border: 1px solid rgba(37,216,255,.3); border-radius: 13px; background: #08131c; box-shadow: 0 30px 120px rgba(0,0,0,.65); }
.settings-dialog::backdrop { background: rgba(0,4,7,.78); backdrop-filter: blur(7px); }
.settings-dialog form { padding: 24px; }
.dialog-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 22px; }
.dialog-header h2 { margin: 2px 0 0; font-size: 24px; }
.dialog-close { color: var(--muted); font-size: 28px; border: 0; background: transparent; cursor: pointer; }
.settings-dialog label { display: block; margin: 18px 0; }
.settings-dialog label > span { display: block; margin-bottom: 5px; font-size: 12px; font-weight: 800; }
.settings-dialog label small { display: block; margin: -1px 0 8px; color: var(--muted); font-size: 10px; }
.settings-dialog input:not([type="range"]), .settings-dialog textarea { width: 100%; padding: 11px 12px; color: var(--ink); border: 1px solid var(--line); border-radius: 7px; outline: none; background: rgba(0,0,0,.25); resize: vertical; }
.settings-dialog input:focus, .settings-dialog textarea:focus { border-color: var(--cyan); }
.settings-dialog input[type="range"] { width: 100%; accent-color: var(--cyan); }
.settings-dialog output { float: right; color: var(--cyan); font-size: 11px; }
.speaker-settings { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.speaker-settings label { margin-top: 0; }
.dialog-actions { display: flex; justify-content: flex-end; gap: 8px; height: 42px; margin-top: 24px; }

#delayedAudio { display: none; }

@keyframes pulse { 0%,100% { transform: scale(.9); opacity: .75; } 50% { transform: scale(1.18); opacity: 1; } }
@keyframes rotate { to { transform: rotate(360deg); } }
@keyframes sonar { 0% { transform: scale(.72); opacity: .1; } 55% { opacity: .65; } 100% { transform: scale(1.12); opacity: 0; } }
@keyframes toastIn { from { transform: translateY(8px); opacity: 0; } }

@media (max-aspect-ratio: 4/3), (max-width: 1050px) {
  .topbar { grid-template-columns: 1fr auto; }
  .topic-block { display: none; }
  .broadcast-grid { grid-template-columns: 1.35fr .92fr; }
  .claim-body { grid-template-columns: 120px 1fr; }
  .radar { width: 120px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; }
}

/* Simple live fact-check broadcast layout */
.stage {
  min-width: 0;
  display: grid;
  grid-template-rows: 64px minmax(0, 1fr) 62px;
  gap: 9px;
  padding: clamp(8px, 1vw, 16px);
}
.topbar { height: auto; min-height: 0; grid-template-columns: 1fr auto auto; }
.brand-lockup h1 { font-size: clamp(20px, 1.65vw, 32px); }
.topic-copy, .delay-block, .clock-block { display: none; }
.topic-block { border-left: 0; padding-left: 0; }
.broadcast-grid {
  height: auto;
  min-height: 0;
  grid-template-columns: 1fr;
  gap: 0;
  margin-top: 0;
}
.main-column { display: block; min-height: 0; }
.side-column { display: none; }
.claim-stage { height: 100%; }
.lower-grid, .queue-panel, .transcript-panel, .safety-panel { display: none; }
.claim-stage {
  display: grid;
  grid-template-rows: 58px minmax(0, 1fr) auto 64px;
  border-color: rgba(37, 216, 255, .32);
  overflow: hidden;
}
.claim-body {
  height: auto;
  min-height: 0;
  grid-template-columns: 1fr;
  place-items: center;
  padding: clamp(18px, 2.4vw, 42px);
  text-align: center;
}
.radar { display: none; }
.claim-copy { width: min(100%, 1080px); }
.claim-kicker { margin-bottom: 20px; font-size: clamp(12px, .95vw, 18px); }
.transcript-line {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(18px, 2.2vw, 42px);
  width: 100%;
}
.live-confidence {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  min-width: clamp(110px, 10vw, 170px);
  margin: 0;
  padding: 14px 16px;
  border: 1px solid rgba(45, 240, 160, .34);
  border-radius: 999px;
  background: rgba(45, 240, 160, .07);
  box-shadow: 0 0 24px rgba(45, 240, 160, .08);
}
.live-confidence span {
  color: #8fb5a7;
  font-size: clamp(8px, .58vw, 11px);
  font-weight: 900;
  letter-spacing: .14em;
}
.live-confidence strong {
  min-width: 74px;
  color: var(--green);
  font-size: clamp(24px, 2vw, 40px);
  line-height: 1;
  text-shadow: 0 0 10px rgba(45,240,160,.8), 0 0 28px rgba(45,240,160,.5);
}
.live-confidence strong.confidence-flash { animation: confidenceFlash .72s ease-out; }
.claim-copy h2 {
  max-width: none;
  font-size: clamp(32px, 3.65vw, 72px);
  line-height: 1.04;
  letter-spacing: -.045em;
  overflow-wrap: anywhere;
  text-wrap: balance;
}
.claim-copy h2[data-density="medium"] { font-size: clamp(28px, 3vw, 58px); line-height: 1.08; }
.claim-copy h2[data-density="long"] { font-size: clamp(23px, 2.35vw, 45px); line-height: 1.12; }
.claim-copy h2[data-density="maximum"] { font-size: clamp(18px, 1.8vw, 34px); line-height: 1.16; }
.claim-status {
  max-width: 900px;
  margin: 24px auto 0;
  font-size: clamp(15px, 1.15vw, 22px);
  line-height: 1.5;
}
.evidence-strip { height: 64px; grid-template-columns: .45fr 1fr; }
.pipeline li { font-size: clamp(8px, .58vw, 11px); }
.verdict-panel {
  display: grid;
  grid-template-columns: auto minmax(300px, .85fr) minmax(320px, 1.15fr);
  align-items: stretch;
  min-height: 166px;
  border: 0;
  border-top: 1px solid var(--line);
  border-radius: 0;
  background: rgba(1, 7, 11, .42);
}
.verdict-panel.verdict-flash { animation: verdictGlow .9s ease-out; }
.verdict-panel[data-verdict="supported"] { --verdict-glow: rgba(45, 240, 160, .88); }
.verdict-panel[data-verdict="misleading"] { --verdict-glow: rgba(255, 70, 94, .88); }
.verdict-panel[data-verdict="pending"] { --verdict-glow: rgba(255, 209, 102, .82); }
.verdict-panel[data-verdict="supported"] .verdict-main p { text-shadow: 0 0 12px rgba(45,240,160,.72), 0 0 28px rgba(45,240,160,.35); }
.verdict-panel[data-verdict="misleading"] .verdict-main p { text-shadow: 0 0 12px rgba(255,70,94,.72), 0 0 28px rgba(255,70,94,.35); }
.verdict-panel[data-verdict="pending"] .verdict-main p { text-shadow: 0 0 12px rgba(255,209,102,.66), 0 0 28px rgba(255,209,102,.3); }
.verdict-header { min-width: 150px; min-height: 0; padding: 20px; font-size: clamp(10px, .8vw, 14px); }
.verdict-main {
  min-height: 0;
  flex-direction: row;
  justify-content: center;
  gap: 16px;
  padding: 20px 26px;
  text-align: left;
  border-left: 1px solid var(--line);
}
.verdict-main > div:last-child { min-width: 0; }
.verdict-icon { width: 72px; height: 72px; margin: 0; font-size: 38px; }
.verdict-main p { font-size: clamp(26px, 2.2vw, 44px); line-height: 1; }
.verdict-main span { display: block; margin-top: 10px; font-size: clamp(12px, .9vw, 17px); line-height: 1.45; }
.verdict-main span, .source-item span, .source-item b { overflow-wrap: anywhere; }
.source-receipt { min-height: 0; padding: 20px; border-left: 1px solid var(--line); border-top: 0; }
.source-title { font-size: 11px; }
.source-list { margin-top: 14px; }
.source-item, .source-empty { font-size: clamp(12px, .82vw, 15px); line-height: 1.4; }
.source-list { max-height: 104px; overflow: auto; scrollbar-width: thin; }
.control-dock {
  position: relative;
  inset: auto;
  width: 100%;
  height: auto;
  min-height: 0;
  padding: 0 18px;
}
.primary-button { min-width: 220px; font-size: 14px; }

@media (max-width: 900px) {
  html, body { overflow: auto; }
  .stage { min-height: 100vh; height: auto; overflow: visible; }
  .topbar { grid-template-columns: 1fr auto; padding: 0 14px; }
  .topic-block { display: none; }
  .live-cluster { gap: 8px; }
  .broadcast-grid { height: auto; grid-template-columns: 1fr; }
  .claim-stage { min-height: 58vh; }
  .verdict-panel { grid-template-columns: 1fr; min-height: 0; }
  .verdict-header { min-height: 54px; }
  .verdict-main, .source-receipt { border-left: 0; border-top: 1px solid var(--line); }
  .claim-copy h2 { font-size: clamp(34px, 9vw, 60px); }
  .claim-copy h2[data-density="medium"] { font-size: clamp(27px, 7vw, 46px); }
  .claim-copy h2[data-density="long"] { font-size: clamp(21px, 5.4vw, 36px); }
  .claim-copy h2[data-density="maximum"] { font-size: clamp(17px, 4.4vw, 28px); }
  .transcript-line { grid-template-columns: minmax(0, 1fr) auto; gap: 12px; }
  .live-confidence { min-width: 92px; padding: 10px 8px; }
  .live-confidence span { font-size: 7px; }
  .live-confidence strong { min-width: 0; font-size: clamp(22px, 6vw, 34px); }
  .evidence-strip { grid-template-columns: 1fr; }
  .evidence-meter { display: none; }
  .control-dock { position: sticky; left: auto; right: auto; bottom: 8px; height: auto; min-height: 78px; gap: 10px; }
  .dock-note { display: none; }
  .dock-actions { width: 100%; }
  .dock-actions button { flex: 1; min-width: 0; }
}

@media (max-height: 700px) and (min-width: 901px) {
  .stage { grid-template-rows: 52px minmax(0, 1fr) 50px; gap: 6px; padding: 6px 10px; }
  .topbar { padding: 0 16px; }
  .brand-mark { width: 34px; height: 34px; }
  .brand-lockup h1 { font-size: 18px; }
  .claim-stage { grid-template-rows: 42px minmax(0, 1fr) 118px 46px; }
  .section-heading { min-height: 42px; padding: 0 14px; }
  .claim-body { padding: 10px 22px; }
  .claim-kicker { margin-bottom: 8px; font-size: 10px; }
  .transcript-line { gap: 18px; }
  .claim-copy h2 { font-size: clamp(28px, 3vw, 42px); }
  .claim-copy h2[data-density="medium"] { font-size: clamp(24px, 2.5vw, 34px); }
  .claim-copy h2[data-density="long"] { font-size: clamp(19px, 2vw, 28px); }
  .claim-copy h2[data-density="maximum"] { font-size: clamp(15px, 1.55vw, 22px); }
  .claim-status { margin-top: 8px; font-size: 12px; line-height: 1.25; }
  .live-confidence { min-width: 104px; padding: 8px 10px; }
  .live-confidence span { font-size: 7px; }
  .live-confidence strong { min-width: 0; font-size: 28px; }
  .verdict-panel { min-height: 118px; grid-template-columns: 125px minmax(260px, .9fr) minmax(280px, 1.1fr); }
  .verdict-header, .verdict-main, .source-receipt { padding: 12px 14px; }
  .verdict-icon { width: 46px; height: 46px; font-size: 25px; }
  .verdict-main p { font-size: 25px; }
  .verdict-main span { margin-top: 5px; font-size: 11px; line-height: 1.25; }
  .source-title { margin-bottom: 5px; font-size: 8px; }
  .source-list { margin-top: 5px; max-height: 68px; }
  .source-item, .source-empty { font-size: 9px; line-height: 1.2; }
  .evidence-strip { height: 46px; padding: 0 14px; }
  .dock-note div span { display: none; }
  .dock-actions { height: 70%; }
}

@keyframes confidenceFlash {
  0% { transform: scale(1); filter: brightness(1); }
  35% { transform: scale(1.3); filter: brightness(2.2); text-shadow: 0 0 18px #fff, 0 0 44px var(--green); }
  100% { transform: scale(1); filter: brightness(1); }
}

@keyframes verdictGlow {
  0% { box-shadow: inset 0 0 0 transparent; filter: brightness(1); }
  32% { box-shadow: inset 0 0 34px var(--verdict-glow), 0 0 26px var(--verdict-glow); filter: brightness(1.55); }
  100% { box-shadow: inset 0 0 0 transparent; filter: brightness(1); }
}

/* Two Men One Nation episode shell: generated art provides the broadcast frame;
   live components remain functional inside its center and right safe areas. */
.stage.two-men-theme {
  min-width: 0;
  min-height: 0;
  padding: 0;
  background-color: #02060d;
  background-image: url("../images/two-men-one-nation-libertarian-shell.png");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}

.stage.two-men-theme::before,
.stage.two-men-theme > .topbar,
.stage.two-men-theme > .control-dock {
  display: none;
}

.stage.two-men-theme .broadcast-grid {
  position: absolute;
  top: 36.5%;
  right: max(1.4vw, 14px);
  bottom: 8.8%;
  left: 27.4%;
  z-index: 2;
  height: auto;
  margin: 0;
  grid-template-columns: minmax(0, 1.88fr) minmax(250px, .92fr);
  gap: clamp(8px, .7vw, 14px);
}

.stage.two-men-theme .main-column,
.stage.two-men-theme .side-column {
  min-height: 0;
}

.stage.two-men-theme .main-column {
  display: block;
}

.stage.two-men-theme .side-column {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
}

.stage.two-men-theme .claim-stage,
.stage.two-men-theme .transcript-panel,
.stage.two-men-theme .safety-panel {
  border-color: rgba(55, 163, 255, .55);
  border-radius: 3px;
  background: rgba(1, 7, 15, .82);
  box-shadow: inset 0 0 34px rgba(0, 93, 255, .07);
  backdrop-filter: blur(2px);
}

.stage.two-men-theme .claim-stage {
  height: 100%;
}

.stage.two-men-theme .transcript-panel,
.stage.two-men-theme .safety-panel {
  display: grid;
}

.stage.two-men-theme .lower-grid,
.stage.two-men-theme .queue-panel {
  display: none;
}

@media (max-width: 900px) {
  .stage.two-men-theme {
    width: 100vw;
    height: 75vw;
    min-height: 540px;
    overflow: hidden;
  }

  .stage.two-men-theme .broadcast-grid {
    top: 36.5%;
    right: 1.2%;
    bottom: 8.8%;
    left: 27.4%;
    grid-template-columns: minmax(0, 1.75fr) minmax(210px, .9fr);
  }
}

/* Keep the live words and the evidence analysis visible together. */
@media (min-width: 901px) {
  .claim-stage {
    grid-template-columns: minmax(0, 1.65fr) minmax(330px, .9fr);
    grid-template-rows: 42px minmax(0, 1fr) 46px;
  }
  .claim-stage > .section-heading { grid-column: 1 / -1; grid-row: 1; min-height: 42px; }
  .claim-stage > .claim-body { grid-column: 1; grid-row: 2; }
  .claim-stage > .verdict-panel {
    grid-column: 2;
    grid-row: 2;
    grid-template-columns: 1fr;
    grid-template-rows: 42px minmax(0, 1fr) auto;
    min-height: 0;
    border-top: 0;
    border-left: 1px solid var(--line);
  }
  .claim-stage > .verdict-panel .verdict-header { min-width: 0; min-height: 42px; padding: 12px 16px; }
  .claim-stage > .verdict-panel .verdict-main { padding: 16px 18px; border-left: 0; }
  .claim-stage > .verdict-panel .source-receipt { padding: 14px 18px; border-left: 0; border-top: 1px solid var(--line); }
  .claim-stage > .evidence-strip { grid-column: 1 / -1; grid-row: 3; height: 46px; }
  .claim-copy { width: min(100%, 820px); }
}

@media (max-height: 700px) and (min-width: 901px) {
  .claim-stage { grid-template-rows: 42px minmax(0, 1fr) 46px; }
  .claim-stage > .verdict-panel .verdict-main { padding: 12px 14px; }
  .claim-stage > .verdict-panel .source-receipt { padding: 10px 14px; }
}
