/* Fonts are served from this origin (latin subset, woff2). */
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(/static/fonts/dm-sans.woff2) format('woff2');
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/static/fonts/ibm-plex-mono-400.woff2) format('woff2');
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/static/fonts/ibm-plex-mono-500.woff2) format('woff2');
}
@font-face {
  font-family: 'Playfair Display';
  font-style: normal;
  font-weight: 700 900;
  font-display: swap;
  src: url(/static/fonts/playfair-display.woff2) format('woff2');
}

:root {
  --bg: #0e0e0f;
  --surface: #1a1a1d;
  --surface-2: #22232a;
  --border: #2e2e35;
  --amber: #e8c547;
  --amber-soft: #c9a93a;
  --danger: #e84747;
  --text: #f0ede6;
  --muted: #7a7a8a;
  --display: 'Playfair Display', serif;
  --mono: 'IBM Plex Mono', monospace;
  --ui: 'DM Sans', system-ui, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--ui);
  font-size: 15px;
  line-height: 1.5;
  overflow: hidden;   /* JS toggles this to 'auto' on the config screen */
}

/* Arena/reveal/report need to be exactly viewport height so their inner
   regions (transcript, timer, etc.) don't overflow the window. Config is
   just a form and should let the browser scroll naturally if it overflows. */
.screen { display: none; height: 100vh; flex-direction: column; }
.screen.active { display: flex; }
#screen-config { height: auto; min-height: 100vh; overflow-y: visible; }

.topbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 28px; border-bottom: 1px solid var(--border);
  background: var(--surface);
}
.brand {
  font-family: var(--display);
  font-weight: 900;
  letter-spacing: 0.05em;
  font-size: 22px;
}
.amber { color: var(--amber); }
.muted { color: var(--muted); }
.display { font-family: var(--display); font-weight: 900; font-size: 40px; margin: 0 0 6px; letter-spacing: -0.01em; }
.center { text-align: center; }

/* ============= CONFIG ============= */
.config-grid {
  max-width: 920px;
  margin: 0 auto;
  padding: 24px 36px 36px;
  width: 100%;
}

@media (min-width: 820px) {
  .config-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 48px;
    align-items: start;
  }
  /* Full-width items */
  .config-grid > h1,
  .config-grid > p,
  #key-field,
  .field-full,
  #enter-arena { grid-column: 1 / -1; }
  .field { margin-bottom: 14px; }
  .config-grid > h1 { margin-bottom: 4px; }
  .config-grid > p { margin-bottom: 14px; }
  /* Tighter buttons so four fit on one line in a half-width column */
  .config-grid .choice {
    padding: 7px 11px;
    font-size: 11px;
    letter-spacing: 0.06em;
  }
}
.field { margin-bottom: 20px; }
.field-hint {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
  opacity: 0.85;
  margin-top: 6px;
  line-height: 1.45;
}
.field label {
  display: block;
  font-family: var(--ui);
  font-size: 12px;
  letter-spacing: 0.18em;
  color: var(--muted);
  margin-bottom: 8px;
  text-transform: uppercase;
}
textarea, input[type=text] {
  width: 100%;
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 14px 16px;
  font-family: var(--mono);
  font-size: 15px;
  resize: vertical;
}
textarea:focus, input:focus { outline: none; border-color: var(--amber); }

.choices { display: flex; gap: 8px; flex-wrap: wrap; }
.choice {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 10px 18px;
  font-family: var(--ui);
  font-size: 12px;
  letter-spacing: 0.15em;
  cursor: pointer;
  border-radius: 4px;
  transition: all 0.15s ease;
}
.choice:hover { border-color: var(--amber-soft); }
.choice.active { background: var(--amber); color: #1a1a1a; border-color: var(--amber); font-weight: 700; }

.dropdowns { display: grid; gap: 8px; margin-top: 12px; }
.dropdowns select {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
  padding: 10px 14px;
  border-radius: 4px;
  font-family: var(--ui);
}

/* Motion topic suggestions */
.motion-suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}
.topic-chip {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--muted);
  padding: 5px 12px;
  font-family: var(--ui);
  font-size: 11px;
  letter-spacing: 0.08em;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}
.topic-chip:hover {
  border-color: var(--amber);
  color: var(--text);
}
.motion-browse {
  margin-top: 8px;
  position: relative;
}
.motion-browse-btn {
  background: var(--surface);
  color: var(--muted);
  border: 1px solid var(--border);
  padding: 7px 12px;
  border-radius: 4px;
  font-family: var(--ui);
  font-size: 11px;
  letter-spacing: 0.08em;
  cursor: pointer;
  width: 100%;
  max-width: 320px;
  text-align: left;
}
.motion-browse-btn:hover { border-color: var(--amber); color: var(--text); }
.motion-browse-panel {
  margin-top: 6px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 12px;
  max-height: 360px;
  overflow-y: auto;
}
.motion-browse-panel.hidden { display: none; }
.motion-browse-cat {
  font-family: var(--ui);
  font-size: 10px;
  letter-spacing: 0.18em;
  color: var(--amber);
  text-transform: uppercase;
  margin: 10px 0 6px;
}
.motion-browse-cat:first-child { margin-top: 0; }
.motion-browse-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 4px;
}

input[type=range] { width: 100%; accent-color: var(--amber); }

input[type=password] {
  width: 100%;
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 12px 14px;
  font-family: var(--mono);
  font-size: 14px;
}
input[type=password]:focus { outline: none; border-color: var(--amber); }

.key-disclaimer {
  margin-top: 10px;
  padding: 12px 14px;
  background: var(--surface-2);
  border-left: 3px solid var(--amber);
  border-radius: 4px;
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--muted);
}
.key-disclaimer a { color: var(--amber); }

.browser-compat {
  margin: 8px 0 18px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
}
.bc-ok   { color: #74c69d; font-weight: 600; }
.bc-warn { color: var(--amber); font-weight: 600; }
.bc-bad  { color: var(--danger); font-weight: 600; }

.btn-primary {
  background: var(--amber);
  color: #16160e;
  border: none;
  padding: 16px 32px;
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 0.2em;
  border-radius: 4px;
  cursor: pointer;
  width: 100%;
  margin-top: 16px;
  transition: transform 0.1s ease;
}
.btn-primary.small { width: auto; padding: 10px 20px; margin: 0; font-size: 12px; }
.btn-primary:hover:not(:disabled) { transform: translateY(-1px); }
.btn-primary:disabled { opacity: 0.4; cursor: not-allowed; }

.btn-ghost {
  background: transparent;
  color: var(--muted);
  border: 1px solid var(--border);
  padding: 8px 14px;
  border-radius: 4px;
  font-size: 12px;
  letter-spacing: 0.15em;
  cursor: pointer;
}
.btn-ghost:hover { color: var(--text); border-color: var(--amber); }

/* ============= ARENA ============= */
.arena-bar { padding: 12px 24px; }
.motion-pill {
  background: var(--surface-2);
  border: 1px solid var(--border);
  padding: 8px 16px;
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 13px;
  max-width: 60%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.turn-counter {
  font-family: var(--ui);
  font-size: 13px;
  letter-spacing: 0.1em;
  display: flex;
  gap: 16px;
  align-items: center;
}

.arena-main {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 280px;
  overflow: hidden;
  min-height: 0;
}
.arena-left {
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--border);
  overflow: hidden;
}
.arena-right { padding: 16px; overflow-y: auto; }
.panel-header {
  font-family: var(--ui);
  font-size: 11px;
  letter-spacing: 0.25em;
  color: var(--muted);
  padding: 12px 24px;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}

.debater-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 12px;
  padding: 16px 24px;
  border-bottom: 1px solid var(--border);
  max-height: 40%;
  overflow-y: auto;
}
.debater-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 14px;
  position: relative;
  transition: all 0.2s;
}
.debater-card.speaking {
  border-color: var(--amber);
  box-shadow: 0 0 0 1px var(--amber), 0 0 20px rgba(232,197,71,0.18);
}
.debater-card .name {
  font-family: var(--display);
  font-size: 15px;
  letter-spacing: 0.06em;
  margin-bottom: 6px;
  text-transform: uppercase;
}
.debater-card .bar { height: 2px; background: var(--border); margin-bottom: 10px; }
.debater-card.speaking .bar { background: var(--amber); }
.debater-card .body {
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.55;
  max-height: 200px;
  overflow-y: auto;
}
/* The setup ("scratch") panel is the model's private thinking. Hidden by
   default; revealed when the user enables "Show AI Thinking" on config. */
.debater-card .scratch-block { display: none; }
.debater-cards.show-scratch .debater-card .scratch-block { display: block; margin-bottom: 10px; }
.debater-card .scratch-label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  color: var(--muted, #888);
  opacity: 0.7;
  margin-bottom: 4px;
  text-transform: uppercase;
}
.debater-card .scratch {
  font-family: var(--mono);
  font-size: 11.5px;
  line-height: 1.45;
  font-style: italic;
  opacity: 0.72;
  max-height: 120px;
  overflow-y: auto;
  padding: 6px 8px;
  border-left: 2px solid var(--border);
  background: rgba(255,255,255,0.02);
  white-space: pre-wrap;
}
.debater-card .scratch:empty { display: none; }
.dot {
  display: inline-block; width: 8px; height: 8px; border-radius: 50%;
  background: var(--amber); margin-right: 6px;
  animation: pulse 1s infinite;
}
@keyframes pulse {
  0%,100% { opacity: 0.3; }
  50% { opacity: 1; }
}

.transcript {
  flex: 1;
  overflow-y: auto;
  padding: 16px 24px;
  font-family: var(--mono);
  font-size: 13.5px;
  line-height: 1.65;
}
.transcript-line { margin-bottom: 14px; }
.transcript-speaker {
  color: var(--amber);
  font-weight: 500;
  letter-spacing: 0.1em;
}
.transcript-line.user .transcript-speaker { color: #7ed8a4; }
.transcript-line.moderator .transcript-speaker { color: #cccccc; }

.audience-list .audience-item {
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 4px;
  margin-bottom: 10px;
  background: var(--surface);
  opacity: 0.55;
}
.audience-item .a-name { font-family: var(--display); font-size: 14px; letter-spacing: 0.06em; }
.audience-item .a-status { font-size: 11px; color: var(--muted); margin-top: 4px; letter-spacing: 0.15em; }

.input-area {
  border-top: 1px solid var(--border);
  background: var(--surface);
  padding: 14px 24px;
}
.input-label {
  font-size: 11px; color: var(--muted); letter-spacing: 0.25em; margin-bottom: 8px;
}
#user-input {
  background: var(--bg);
}
.input-controls {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 10px;
}
.btn-mic {
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 10px 16px;
  border-radius: 4px;
  font-size: 12px;
  letter-spacing: 0.15em;
  cursor: pointer;
}
.btn-mic.recording { background: var(--danger); color: #fff; border-color: var(--danger); }
.timer-wrap { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.timer-text { font-family: var(--mono); font-size: 14px; color: var(--muted); min-width: 56px; }
.timer-bar { width: 220px; height: 4px; background: var(--border); border-radius: 2px; overflow: hidden; }
#timer-fill { height: 100%; width: 100%; background: var(--amber); transition: width 0.5s linear, background 0.3s; }
#timer-fill.low { background: var(--danger); }

.status-line { font-size: 12px; color: var(--muted); margin-top: 6px; min-height: 16px; font-family: var(--mono); }

.suggestion-panel {
  border: 1px dashed var(--amber-soft);
  border-radius: 6px;
  background: rgba(232, 197, 71, 0.05);
  padding: 10px 12px;
  margin-bottom: 10px;
  max-height: 220px;
  overflow-y: auto;
}
.suggestion-panel.hidden { display: none; }
.suggestion-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}
.suggestion-title {
  font-size: 11px;
  letter-spacing: 0.25em;
  color: var(--amber);
  font-family: var(--mono);
}
.suggestion-actions { display: flex; gap: 8px; }
.suggestion-body {
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.5;
  color: var(--text);
  white-space: pre-wrap;
}

/* ============= EVALUATOR CARD ============= */
.eval-card {
  position: fixed;
  top: 50%; right: 24px;
  transform: translateY(-50%);
  width: 420px;
  background: var(--surface);
  border: 1px solid var(--amber);
  border-radius: 8px;
  padding: 22px;
  z-index: 100;
  box-shadow: 0 20px 60px rgba(0,0,0,0.6);
  animation: slidein 0.35s ease-out;
}
@keyframes slidein {
  from { opacity: 0; transform: translate(40px, -50%); }
  to   { opacity: 1; transform: translate(0, -50%); }
}
.eval-card.hidden { display: none; }
.eval-head {
  display: flex; justify-content: space-between; align-items: center;
  border-bottom: 1px solid var(--border); padding-bottom: 10px; margin-bottom: 14px;
  font-size: 12px; letter-spacing: 0.2em;
}
.eval-bar {
  display: grid;
  grid-template-columns: 90px 1fr 50px;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
  font-size: 12px;
  letter-spacing: 0.12em;
}
.eval-bar .bar { height: 8px; background: var(--border); border-radius: 4px; overflow: hidden; }
.eval-bar .bar > div { height: 100%; background: var(--amber); width: 0; transition: width 0.6s ease; }
.eval-block { margin-top: 14px; }
.eval-label { font-size: 11px; letter-spacing: 0.25em; margin-bottom: 4px; }
.eval-label.highlight { color: var(--amber); }
.eval-label.warn { color: var(--danger); }
.eval-label.tip { color: #7ed8a4; }
.eval-flair {
  font-family: var(--display);
  font-style: italic;
  text-align: center;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 10px 0;
  margin: 16px 0;
  color: var(--amber);
}

/* ============= REVEAL ============= */
#screen-reveal { padding: 48px; overflow-y: auto; }
.reveal-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: 20px;
  margin: 32px 0;
}
.reveal-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 20px;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s, transform 0.6s;
}
.reveal-card.show { opacity: 1; transform: translateY(0); }
.reveal-card .rc-name { font-family: var(--display); font-size: 26px; }
.reveal-card .rc-persona {
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.reveal-card .rc-verdict {
  font-family: var(--mono);
  font-size: 14px;
  line-height: 1.65;
  min-height: 110px;
  color: var(--text);
  padding-left: 14px;
  border-left: 2px solid var(--amber);
  white-space: pre-wrap;
}
.reveal-card .rc-verdict::before {
  content: '\201C';
  display: inline;
  color: var(--amber);
  font-size: 22px;
  line-height: 0;
  margin-right: 2px;
  vertical-align: -4px;
}
.reveal-card .rc-verdict::after {
  content: '\201D';
  color: var(--amber);
  font-size: 22px;
  line-height: 0;
  margin-left: 2px;
  vertical-align: -4px;
}
.reveal-card .rc-vote {
  margin-top: 16px;
  text-align: center;
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.25em;
  padding: 10px;
  border-radius: 4px;
  background: var(--surface-2);
}
.rc-vote.pro { background: var(--amber); color: #16160e; }
.rc-vote.con { background: #444; color: var(--text); }
.rc-vote.undecided { background: var(--surface-2); color: var(--muted); }

.reveal-card .rc-scores {
  margin-top: 14px;
  padding: 8px 10px;
  border: 1px solid var(--border);
  border-radius: 4px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
  text-align: center;
  letter-spacing: 0.08em;
}
.reveal-card .rc-scores b { color: var(--text); font-weight: 700; }
.rc-winner.human { color: #74c69d; font-weight: 700; letter-spacing: 0.18em; }
.rc-winner.ai    { color: var(--danger); font-weight: 700; letter-spacing: 0.18em; }
.rc-winner.tie   { color: var(--amber); font-weight: 700; letter-spacing: 0.18em; }

.tally {
  display: flex;
  justify-content: center;
  gap: 32px;
  margin: 24px 0;
  font-family: var(--mono);
  font-size: 14px;
  letter-spacing: 0.15em;
}
.tally div b { color: var(--amber); font-size: 24px; margin-left: 8px; font-family: var(--display); }

#view-analysis { max-width: 320px; margin: 24px auto 0; display: block; }

/* ============= REPORT ============= */
#screen-report { overflow: hidden; }
.report {
  flex: 1;
  overflow-y: auto;
  padding: 32px 64px;
  max-width: 900px;
  margin: 0 auto;
  font-family: var(--ui);
  font-size: 15px;
  line-height: 1.7;
  width: 100%;
}
.report h1 { font-family: var(--display); color: var(--amber); margin: 8px 0 18px; font-size: 32px; letter-spacing: 0.01em; }
.report h2 { font-family: var(--display); color: var(--amber); margin-top: 36px; margin-bottom: 12px; font-size: 26px; }
.report h3 { font-family: var(--display); margin-top: 22px; margin-bottom: 8px; font-size: 19px; color: var(--text); letter-spacing: 0.02em; }
.report p { margin: 10px 0; }
.report strong { color: var(--text); }
.report em { color: var(--muted); }
.report code { background: var(--surface); padding: 2px 6px; border-radius: 3px; font-family: var(--mono); font-size: 0.9em; }
.report table { width: 100%; border-collapse: collapse; margin: 16px 0; }
.report th, .report td { border: 1px solid var(--border); padding: 8px 12px; text-align: left; }
.report th { background: var(--surface); color: var(--amber); font-weight: 600; }
.report blockquote { border-left: 3px solid var(--amber); padding: 6px 16px; color: var(--muted); margin: 14px 0; background: rgba(232,197,71,0.04); border-radius: 0 6px 6px 0; }
.report ul, .report ol { padding-left: 24px; margin: 10px 0; }
.report li { margin: 4px 0; }
.report hr { border: 0; border-top: 1px solid var(--border); margin: 28px 0; }

/* Per-turn block: each `### Turn N — SPEAKER` heading anchors a card. */
.report h3 + p em { display: inline-block; margin-bottom: 6px; }
#report-log h3 {
  padding-top: 12px;
  border-top: 1px solid var(--border);
}
#report-log h3:first-of-type { border-top: none; padding-top: 0; }
#report-analyst { margin-top: 24px; }

.hidden { display: none !important; }

/* scrollbars */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }
::-webkit-scrollbar-track { background: transparent; }

/* ---- Opponent Behavior panel and collapsible sections ---- */
.config-panel {
  margin: 16px 0;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(255,255,255,0.02);
}
.config-panel-header { display: flex; align-items: center; }
.collapse-toggle {
  background: none;
  border: none;
  color: inherit;
  font: inherit;
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 14px;
}
.collapse-caret {
  display: inline-block;
  width: 1em;
  text-align: center;
  color: var(--muted, #888);
  font-size: 0.9em;
}
.config-panel-body {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}
.config-panel-body.hidden { display: none; }
.config-panel-body .field { margin: 10px 0; }
.config-panel-body p.muted.small { margin: 4px 0 12px; }

/* ---- 5-metric eval card additions ---- */
.eval-badge {
  font-size: 0.7em;
  padding: 2px 6px;
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--accent, #9bd);
  margin-left: 6px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.eval-badge-ai { color: #d99; border-color: #543; }
.eval-metrics {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
  margin: 12px 0;
}
.eval-metrics .metric {
  text-align: center;
  padding: 6px 4px;
  background: rgba(255,255,255,0.04);
  border-radius: 4px;
}
.metric-name {
  display: block;
  font-size: 0.7em;
  color: var(--muted, #888);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.metric-score {
  display: block;
  font-size: 1.5em;
  font-weight: 700;
  color: var(--accent, #cde);
  line-height: 1.2;
}
.eval-raw { margin: 4px 0 8px; }
.eval-tags { margin: 6px 0; font-size: 0.9em; }
.tag {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 0.8em;
  margin-right: 4px;
  margin-bottom: 2px;
}
.tag-tech { background: rgba(50,150,90,0.18); color: #9d8; }
.tag-fallacy { background: rgba(180,60,60,0.18); color: #e98; }

/* ---- Voice transcript show-original toggle ---- */
.show-original-toggle {
  background: none;
  border: 1px solid var(--border);
  color: var(--accent, #9bd);
  font-size: 0.8em;
  padding: 2px 8px;
  border-radius: 10px;
  cursor: pointer;
  margin-left: 8px;
  vertical-align: middle;
}
.show-original-toggle:hover { background: rgba(255,255,255,0.04); }
.bubble-cleanup-notes {
  margin-top: 4px;
  font-style: italic;
  font-size: 0.8em;
  color: var(--muted, #888);
}

/* ---- Collapsible details in the post-debate report ---- */
#report-body details {
  margin: 8px 0;
  padding: 6px 10px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: rgba(255,255,255,0.02);
}
#report-body details > summary {
  cursor: pointer;
  font-size: 0.85em;
  color: var(--muted);
  letter-spacing: 0.04em;
  user-select: none;
}
#report-body details[open] > summary {
  color: var(--text);
  margin-bottom: 6px;
}
#report-body details > pre,
#report-body details > p { margin: 4px 0; }

/* ---------- Footer and the /privacy page ---------- */
.site-footer {
  max-width: 920px; margin: 0 auto; padding: 0 36px 28px; width: 100%;
  font-family: var(--mono); font-size: 12px; color: var(--muted);
}
.site-footer a { color: var(--muted); text-decoration: none; border-bottom: 1px solid var(--border); }
.site-footer a:hover { color: var(--amber); border-color: var(--amber); }
.site-footer .sep { margin: 0 8px; }
.site-footer #owner-state { color: var(--amber); margin-right: 8px; }
.site-footer .hidden { display: none; }
body.page { overflow: auto; }
.prose { overflow: visible; }
.prose h2 { font-size: 20px; margin-top: 28px; }
.prose a { color: var(--amber); }
.topbar a.brand { text-decoration: none; color: inherit; }
