:root {
  --bg:          #0f1117;
  --surface:     #161b27;
  --surface-2:   #1d2235;
  --border:      #252d45;
  --border-sub:  #1b2138;
  --text:        #e1e7f5;
  --muted:       #5a6480;
  --faint:       #2a3050;

  --primary:     #6366f1;
  --primary-lt:  #818cf8;
  --primary-dim: rgba(99,102,241,0.12);

  --allow:       #22c55e;
  --allow-dim:   rgba(34,197,94,0.10);
  --deny:        #ef4444;
  --deny-dim:    rgba(239,68,68,0.10);
  --review:      #f59e0b;
  --review-dim:  rgba(245,158,11,0.10);
  --redteam:     #f97316;
  --redteam-dim: rgba(249,115,22,0.10);
  --high:        #fb7185;
  --high-dim:    rgba(251,113,133,0.10);

  --radius:    10px;
  --radius-sm:  6px;
  --shadow:    0 1px 3px rgba(0,0,0,0.4);
  --shadow-md: 0 4px 20px rgba(0,0,0,0.55);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  height: 100vh;
  display: grid;
  grid-template-rows: 56px 1fr 44px;
  overflow: hidden;
  font-size: 14px;
  line-height: 1.5;
}

/* ── Tooltips ── */
[data-tooltip] { position: relative; }
[data-tooltip]::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background: #1e2540;
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 5px 10px;
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.15s;
  z-index: 9999;
  box-shadow: var(--shadow-md);
}
[data-tooltip]:hover::after { opacity: 1; }

/* ── Navbar ── */
nav {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 20px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow);
}
.nav-mascot {
  height: 30px;
  width: auto;
  border-radius: 6px;
  opacity: 0.9;
}
.nav-brand {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.02em;
}
.nav-brand span { color: var(--primary-lt); }
.nav-badge {
  font-size: 11px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--primary-dim);
  color: var(--primary-lt);
  border: 1px solid rgba(99,102,241,0.3);
  letter-spacing: 0.02em;
}
.nav-summary {
  margin-left: auto;
  display: flex;
  gap: 18px;
  font-size: 12px;
  color: var(--muted);
}
.nav-summary strong { color: var(--text); font-weight: 600; }

/* ── Layout ── */
.layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  overflow: hidden;
}

/* ── Sidebar ── */
.sidebar {
  background: var(--surface);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.sidebar-header {
  padding: 14px 16px 10px;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
}
.sidebar-sub {
  display: block;
  font-size: 11px;
  font-weight: 400;
  color: var(--muted);
  margin-top: 2px;
}
.incident-list {
  flex: 1;
  overflow-y: auto;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

/* ── Analytics strip ── */
.analytics-strip {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  border-bottom: 1px solid var(--border);
  background: var(--surface-2);
}
.analytics-tile {
  padding: 9px 6px 8px;
  text-align: center;
  border-right: 1px solid var(--border-sub);
  cursor: default;
}
.analytics-tile:last-child { border-right: none; }
.analytics-num {
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1;
  color: var(--text);
}
.analytics-num.deny    { color: var(--deny); }
.analytics-num.review  { color: var(--review); }
.analytics-num.high    { color: var(--high); }
.analytics-num.redteam { color: var(--redteam); }
.analytics-lbl {
  font-size: 10px;
  font-weight: 500;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-top: 3px;
}
.analytics-toprule {
  padding: 5px 14px;
  font-size: 11px;
  color: var(--muted);
  border-bottom: 1px solid var(--border-sub);
  background: var(--surface-2);
  min-height: 24px;
}

/* ── Live status box ── */
.live-status-box {
  padding: 10px 14px;
  border-bottom: 1px solid var(--border-sub);
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.live-dot-row {
  display: flex;
  align-items: center;
  gap: 8px;
}
.live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--allow);
  animation: pulse 2.4s ease-in-out infinite;
  flex-shrink: 0;
}
@keyframes pulse {
  0%,100% { opacity: 1; box-shadow: 0 0 0 0 rgba(34,197,94,0.4); }
  50%      { opacity: 0.7; box-shadow: 0 0 0 4px rgba(34,197,94,0); }
}
.live-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--allow);
}
.live-hint {
  font-size: 11px;
  color: var(--muted);
}
.live-hint code {
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
  font-size: 11px;
  color: var(--text);
  background: var(--bg);
  padding: 1px 5px;
  border-radius: 4px;
  border: 1px solid var(--border-sub);
}

.sidebar-footer {
  padding: 9px 16px;
  font-size: 11px;
  color: var(--muted);
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.help-link {
  font-size: 11px;
  color: var(--primary-lt);
  text-decoration: none;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--primary-dim);
  border: 1px solid rgba(99,102,241,0.25);
  transition: background 0.15s;
}
.help-link:hover { background: rgba(99,102,241,0.2); }

/* ── Incident items ── */
.incident-item {
  border: 1px solid var(--border-sub);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
  background: var(--bg);
}
.incident-item:hover {
  border-color: var(--border);
  background: var(--surface-2);
}
.incident-item.active {
  border-color: var(--primary);
  background: var(--primary-dim);
}
.incident-item.key-moment { border-color: rgba(245,158,11,0.35); }
.incident-item.key-moment.active { border-color: var(--review); background: var(--review-dim); }

.incident-number {
  font-size: 10px;
  font-weight: 500;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 3px;
}
.incident-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
  line-height: 1.35;
}
.incident-verdicts {
  display: flex;
  align-items: center;
  gap: 5px;
}
.vbadge {
  font-size: 10px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border: 1px solid transparent;
}
.vbadge.allow  { background: var(--allow-dim);   color: var(--allow);   border-color: rgba(34,197,94,0.3); }
.vbadge.deny   { background: var(--deny-dim);    color: var(--deny);    border-color: rgba(239,68,68,0.3); }
.vbadge.review { background: var(--review-dim);  color: var(--review);  border-color: rgba(245,158,11,0.3); }
.vbadge.neutral{ background: var(--surface-2);   color: var(--muted);   border-color: var(--border-sub); }
.vbadge-sep { color: var(--muted); font-size: 11px; }
.key-tag {
  margin-left: auto;
  font-size: 10px;
  font-weight: 700;
  color: var(--review);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.incident-wf {
  margin-top: 5px;
  font-size: 11px;
  color: var(--muted);
}

/* ── Red team badge ── */
.rt-tag {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 10px;
  font-weight: 600;
  color: var(--redteam);
  background: var(--redteam-dim);
  border: 1px solid rgba(249,115,22,0.3);
  border-radius: 999px;
  padding: 1px 7px;
  margin-left: 5px;
  vertical-align: middle;
}

/* ── Detail area ── */
.detail {
  overflow-y: auto;
  padding: 20px 26px 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  background: var(--bg);
}

/* Step bar */
.step-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.step {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--muted);
  font-weight: 500;
}
.step span {
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--faint);
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}
.step.active { color: var(--primary-lt); }
.step.active span { background: var(--primary); color: #fff; }
.step-arrow { color: var(--border); font-size: 1rem; }

/* Detail header */
.detail-category {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 3px;
}
.detail-header h2 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 8px;
  line-height: 1.25;
  color: var(--text);
  letter-spacing: -0.02em;
}
.detail-prompt {
  font-size: 13px;
  color: var(--muted);
  font-style: italic;
  line-height: 1.55;
  padding: 10px 14px;
  background: var(--surface);
  border-left: 3px solid var(--primary);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

/* ── Red team banner ── */
.redteam-banner {
  background: var(--redteam-dim);
  border: 1px solid rgba(249,115,22,0.4);
  border-radius: var(--radius);
  padding: 12px 16px;
}
.redteam-eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--redteam);
  margin-bottom: 3px;
}
.redteam-headline {
  font-size: 14px;
  font-weight: 600;
  color: #fed7aa;
  line-height: 1.4;
}

/* Key highlight */
.key-highlight {
  background: var(--review-dim);
  border: 1px solid rgba(245,158,11,0.4);
  border-radius: var(--radius);
  padding: 14px 18px;
}
.key-highlight-eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--review);
  margin-bottom: 5px;
}
.key-highlight-headline {
  font-size: 1rem;
  color: #fde68a;
  margin-bottom: 5px;
  line-height: 1.4;
  font-weight: 600;
}
.key-highlight p {
  font-size: 13px;
  color: #fcd34d;
  line-height: 1.6;
  opacity: 0.9;
}

/* ── Verdict section ── */
.verdict-section {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: stretch;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.verdict-col {
  padding: 20px 22px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.verdict-label {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
}
.verdict-label-icon {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: var(--radius-sm);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0;
}
.lt-icon { background: var(--faint); color: var(--text); }
.sentinel-icon { background: var(--primary); color: #fff; }
.big-verdict {
  font-size: 2.2rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
}
.big-verdict.allow  { color: var(--allow); }
.big-verdict.deny   { color: var(--deny); }
.big-verdict.review { color: var(--review); }
.big-verdict.neutral{ color: var(--muted); }
.verdict-sublabel {
  font-size: 12px;
  color: var(--muted);
}
.verdict-divider {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 20px 10px;
  border-left: 1px solid var(--border);
  border-right: 1px solid var(--border);
  background: var(--surface-2);
}
.divider-line { flex: 1; width: 1px; background: var(--border); }
.divider-icon { font-size: 1.1rem; color: var(--muted); }
.divider-caption {
  font-size: 10px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
}

/* ── Cards ── */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 20px;
}
.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}
.card-title {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--muted);
}
.risk-pill {
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border: 1px solid transparent;
}
.risk-pill.high   { background: var(--deny-dim);   color: var(--deny);   border-color: rgba(239,68,68,0.3); }
.risk-pill.medium { background: var(--review-dim);  color: var(--review); border-color: rgba(245,158,11,0.3); }
.risk-pill.low    { background: var(--allow-dim);   color: var(--allow);  border-color: rgba(34,197,94,0.3); }

.gemini-body { display: flex; flex-direction: column; gap: 12px; }
.gemini-row { display: grid; grid-template-columns: 170px 1fr; gap: 10px; align-items: start; }
.gemini-row.full { grid-template-columns: 170px 1fr; }
.gemini-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding-top: 2px;
}
.gemini-value {
  font-size: 13px;
  color: var(--text);
  line-height: 1.6;
}
.highlight-action {
  color: var(--review);
  font-weight: 600;
}

/* ── Operator card ── */
.operator-card { border-color: rgba(99,102,241,0.3); }
.operator-body { display: flex; flex-direction: column; gap: 10px; }
.operator-hint {
  font-size: 13px;
  color: var(--muted);
}
.operator-row select {
  width: 100%;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 13px;
  font-family: inherit;
  padding: 9px 13px;
  cursor: pointer;
  transition: border-color 0.15s;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%235a6480' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
}
.operator-row select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-dim);
}
.operator-saved {
  font-size: 12px;
  color: var(--allow);
  min-height: 1.4em;
  font-weight: 500;
}

/* ── Agent 2 panel ── */
.agent2-panel {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.agent2-intro {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
}
.agent2-intro strong { color: var(--primary-lt); font-weight: 600; }
.agent2-btn {
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  padding: 9px 16px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.15s, opacity 0.15s;
  display: flex;
  align-items: center;
  gap: 7px;
  align-self: flex-start;
}
.agent2-btn:hover:not(:disabled) { background: var(--primary-lt); }
.agent2-btn:disabled { opacity: 0.5; cursor: not-allowed; }
.agent2-result {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.agent2-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--primary-lt);
}
.agent2-decision-row {
  display: flex;
  align-items: center;
  gap: 10px;
}
.agent2-decision {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.agent2-decision.allow  { color: var(--allow); }
.agent2-decision.deny   { color: var(--deny); }
.agent2-decision.review { color: var(--review); }
.agent2-confidence {
  font-size: 11px;
  color: var(--muted);
  font-weight: 600;
  background: var(--surface-2);
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid var(--border-sub);
}
.agent2-rationale {
  font-size: 13px;
  color: var(--text);
  line-height: 1.55;
}
.agent2-id {
  font-size: 11px;
  color: var(--muted);
}
.operator-divider {
  text-align: center;
  font-size: 11px;
  color: var(--muted);
  padding: 3px 0;
  letter-spacing: 0.03em;
}

/* ── Game Boy dialog (now: clean walkthrough modal) ── */
.gb-overlay {
  position: fixed;
  inset: 0;
  background: transparent;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 56px;
  z-index: 1000;
  cursor: pointer;
  pointer-events: none;
}
.gb-dialog {
  pointer-events: all;
  width: min(720px, 92vw);
  background: var(--surface);
  border: 1px solid var(--primary);
  border-radius: var(--radius);
  padding: 18px 22px 14px;
  box-shadow: var(--shadow-md), 0 0 0 1px rgba(99,102,241,0.15);
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 150px;
}
.gb-dialog-header {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary-lt);
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}
.gb-dialog-body {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  flex: 1;
}
.gb-mascot {
  width: 56px;
  height: auto;
  flex-shrink: 0;
  border-radius: 8px;
  animation: mascot-float 3s ease-in-out infinite;
  opacity: 0.9;
}
@keyframes mascot-float {
  0%,100% { transform: translateY(0); }
  50%      { transform: translateY(-5px); }
}
.gb-dialog-text {
  font-size: 14px;
  color: var(--text);
  line-height: 1.65;
  flex: 1;
}
.gb-dialog-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 8px;
  border-top: 1px solid var(--border);
}
.gb-hint {
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.03em;
}
.gb-arrow {
  font-size: 1rem;
  color: var(--primary-lt);
  animation: blink-arrow 0.8s step-end infinite;
  visibility: hidden;
}
@keyframes blink-arrow {
  0%,100% { opacity: 1; }
  50%      { opacity: 0; }
}

/* Spotlight highlight for walkthrough */
.gb-highlight {
  outline: 2px solid var(--primary-lt) !important;
  box-shadow: 0 0 0 4px rgba(99,102,241,0.12), 0 0 24px rgba(99,102,241,0.15) !important;
  animation: spotlight-pulse 1.8s ease-in-out infinite !important;
  position: relative;
  z-index: 500;
}
@keyframes spotlight-pulse {
  0%,100% { box-shadow: 0 0 0 4px rgba(99,102,241,0.12), 0 0 20px rgba(99,102,241,0.12); }
  50%      { box-shadow: 0 0 0 6px rgba(99,102,241,0.2),  0 0 32px rgba(99,102,241,0.2); }
}

/* ── Narrator HUD ── */
.narrator-hud {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 44px;
  background: var(--surface);
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 18px;
  z-index: 999;
  box-shadow: 0 -1px 8px rgba(0,0,0,0.3);
}
.narrator-mascot {
  height: 24px;
  width: auto;
  border-radius: 5px;
  opacity: 0.75;
}
.narrator-icon {
  font-size: 11px;
  font-weight: 700;
  color: var(--primary-lt);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}
.narrator-text {
  flex: 1;
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.narrator-mute {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--muted);
  font-size: 13px;
  cursor: pointer;
  padding: 3px 9px;
  font-family: inherit;
  transition: border-color 0.15s, color 0.15s;
}
.narrator-mute:hover { border-color: var(--primary); color: var(--primary-lt); }

/* ── Voice preference popup ── */
.voice-popup-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
}
.voice-popup-overlay.hidden { display: none; }
.voice-popup {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 36px 40px 28px;
  max-width: 420px;
  width: 90%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  box-shadow: var(--shadow-md), 0 0 0 1px rgba(99,102,241,0.1);
  text-align: center;
}
.voice-popup-mascot {
  width: 64px;
  height: auto;
  border-radius: 12px;
  animation: mascot-float 3s ease-in-out infinite;
}
.voice-popup-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.02em;
}
.voice-popup-sub {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.55;
  max-width: 300px;
}
.voice-popup-buttons {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 4px;
  width: 100%;
}
.voice-btn {
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  padding: 11px 22px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  border: 1px solid transparent;
  transition: background 0.15s, border-color 0.15s;
  width: 100%;
  text-align: center;
}
.voice-btn-yes {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}
.voice-btn-yes:hover { background: var(--primary-lt); }
.voice-btn-mute {
  background: var(--surface-2);
  color: var(--text);
  border-color: var(--border);
}
.voice-btn-mute:hover { border-color: var(--primary); color: var(--primary-lt); }
.voice-btn-no {
  background: transparent;
  color: var(--muted);
  border-color: var(--border-sub);
  font-weight: 500;
}
.voice-btn-no:hover { color: var(--text); border-color: var(--border); }
.voice-popup-note {
  font-size: 11px;
  color: var(--muted);
  margin-top: -4px;
}

/* ── Subtitles ── */
.subtitle-box {
  position: fixed;
  bottom: 52px;
  left: 50%;
  transform: translateX(-50%);
  max-width: 780px;
  width: 90%;
  background: rgba(15, 17, 23, 0.92);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 20px;
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
  line-height: 1.55;
  text-align: center;
  z-index: 998;
  backdrop-filter: blur(8px);
  box-shadow: var(--shadow-md);
  animation: subtitle-in 0.2s ease;
}
@keyframes subtitle-in {
  from { opacity: 0; transform: translateX(-50%) translateY(6px); }
  to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--muted); }
