/* ==========================================================================
   Bourse Chamber — Council Chamber Page Styling (css/chamber.css)
   Circular Council Floor · Spokes · Live Transcript · Voting Scoreboard
   ========================================================================== */

:root {
  --chamber-arena-width: 1000px;
  --chamber-arena-height: 490px;
  --transcript-width: 620px;
  --transcript-height: 350px;
}

.chamber-page {
  padding-top: 0;
  padding-bottom: 12px;
}

/* Floor Header Bar */
.floor-header {
  padding: 14px 0 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 10px;
}

.floor-header h1 {
  font-family: var(--font-sans);
  font-size: 1.25rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  margin: 0;
  line-height: 1.2;
}

.floor-header p {
  font-size: 0.78rem;
  color: var(--text-secondary);
  margin-top: 2px;
  max-width: 60ch;
}

.session-metadata-bar {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-muted);
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  align-items: center;
}

.session-metadata-bar b {
  color: var(--text-primary);
  font-weight: 400;
}

.state-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid var(--border-main);
  background: var(--bg-card);
  padding: 3px 9px;
  color: var(--text-primary);
}

.state-blip {
  width: 6px;
  height: 6px;
  background: var(--text-primary);
  border-radius: 50%;
  animation: blip 1.5s infinite;
}

@keyframes blip {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.2; transform: scale(0.85); }
}

/* Evidence Pack Panel — Collapsed by default when idle, active on convene */
.evidence-panel {
  display: none;
  border: 1px dashed var(--border-main);
  background: rgba(10, 10, 10, 0.7);
  padding: 10px 16px;
  margin-bottom: 12px;
  transition: all 0.3s ease;
}

.evidence-panel.active {
  display: block;
  border-color: #555555;
  background: var(--bg-card);
}

.evidence-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.evidence-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 12px;
  font-family: var(--font-mono);
}

.evidence-item {
  display: flex;
  flex-direction: column;
}

.evidence-item span {
  font-size: 0.62rem;
  color: var(--text-muted);
  text-transform: uppercase;
}

.evidence-item b {
  font-size: 0.85rem;
  color: var(--text-primary);
  margin-top: 2px;
}

.evidence-context {
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px solid var(--border-subtle);
  font-size: 0.76rem;
  color: var(--text-secondary);
  line-height: 1.4;
}

/* ==========================================================================
   Rectangular Chamber Stage (Stadium / Council Floor)
   ========================================================================== */
.chamber-stage {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 4px 0 8px;
  position: relative;
}

.council-arena {
  position: relative;
  width: var(--chamber-arena-width);
  height: var(--chamber-arena-height);
  max-width: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Ambient Rectangular Stadium Border & Terminal Backdrop */
.ambient-ring-outer {
  position: absolute;
  inset: 6px;
  border-radius: 12px;
  border: 1px dashed rgba(255, 255, 255, 0.08);
  pointer-events: none;
}

.ambient-ring-inner {
  position: absolute;
  inset: 24px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.04);
  background: radial-gradient(ellipse at 50% 40%, #0D0D0D 0%, #050505 85%);
  pointer-events: none;
  box-shadow: inset 0 0 50px rgba(0, 0, 0, 0.9);
}

/* Horizontal Laser Sweep Scanner Beam (Strict Monochrome) */
.radar-sweep-beam {
  position: absolute;
  left: 20px;
  right: 20px;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  pointer-events: none;
  animation: radarScanH 6s ease-in-out infinite alternate;
  z-index: 2;
  filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.4));
}

/* Rectangular Sonar Expansion Pulse around Transcript Hub */
.sonar-ping-ring {
  position: absolute;
  left: 50%;
  top: calc(108px + 175px);
  transform: translate(-50%, -50%);
  width: var(--transcript-width);
  height: var(--transcript-height);
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  pointer-events: none;
  animation: sonarRectPulse 4s cubic-bezier(0.1, 0.8, 0.25, 1) infinite;
  z-index: 1;
}

@keyframes radarScanH {
  0% { top: 20px; opacity: 0.2; }
  50% { opacity: 0.85; }
  100% { top: 470px; opacity: 0.2; }
}

@keyframes sonarRectPulse {
  0% { transform: translate(-50%, -50%) scale(0.98); opacity: 0.75; border-color: rgba(255, 255, 255, 0.6); box-shadow: 0 0 16px rgba(255, 255, 255, 0.2); }
  100% { transform: translate(-50%, -50%) scale(1.15); opacity: 0; border-color: transparent; }
}

/* Spoke Lines SVG */
.spoke-lines-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 3;
}

.spoke-line {
  stroke: rgba(255, 255, 255, 0.1);
  stroke-width: 1;
  transition: stroke 0.3s ease, stroke-width 0.3s ease;
}

.spoke-line.active {
  stroke: #FFFFFF;
  stroke-width: 2.4;
  stroke-dasharray: 6 6;
  animation: spokePhotonStream 0.6s linear infinite;
  filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.95));
}

.spoke-line.clash {
  stroke: #FFFFFF;
  stroke-width: 2.8;
  stroke-dasharray: 4 4;
  animation: spokePhotonStream 0.3s linear infinite;
  filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.95));
}

@keyframes spokePhotonStream {
  from { stroke-dashoffset: 24; }
  to { stroke-dashoffset: 0; }
}

/* Cross-Examination Electric Duel Vector */
.duel-beam {
  stroke: #FFFFFF;
  stroke-width: 2.6;
  stroke-dasharray: 7 5;
  filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.95));
  animation: duelJitter 0.16s infinite alternate, spokePhotonStream 0.4s linear infinite;
}

@keyframes duelJitter {
  0% { stroke-width: 2px; opacity: 0.8; }
  100% { stroke-width: 3.8px; opacity: 1; filter: drop-shadow(0 0 14px rgba(255, 255, 255, 1)); }
}

/* Council Seats */
.council-seat {
  position: absolute;
  width: 108px;
  text-align: center;
  cursor: pointer;
  z-index: 10;
  transform: translate(-50%, -26px);
  margin: 0;
  transition: opacity 0.2s ease;
}

.seat-avatar-box {
  width: 52px;
  height: 52px;
  margin: 0 auto;
  border: 1px solid var(--border-main);
  background: var(--bg-card);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: all 0.25s ease;
}

.seat-avatar-box svg,
.seat-avatar-box img {
  display: block;
}

.seat-avatar-box img.persona-avatar-img {
  filter: contrast(1.1) brightness(0.95);
  transition: transform 0.2s ease, filter 0.2s ease;
}

.council-seat:hover .seat-avatar-box img.persona-avatar-img {
  filter: contrast(1.15) brightness(1.05);
}

.seat-number-tag {
  position: absolute;
  top: -8px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-mono);
  font-size: 0.58rem;
  background: #000000;
  border: 1px solid var(--border-main);
  color: var(--text-muted);
  padding: 1px 5px;
}

.seat-name {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--text-secondary);
  margin-top: 8px;
  line-height: 1.2;
}

.seat-status-badge {
  font-family: var(--font-mono);
  font-size: 0.55rem;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-top: 3px;
  display: block;
  letter-spacing: 0.04em;
}

/* ==========================================================================
   F13 Answer Budget (13 Expert Answers / Day) & F14 Directed Selection
   ========================================================================== */
.budget-counter-hud {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  font-family: var(--font-mono);
}

.budget-counter-top {
  display: flex;
  align-items: center;
  gap: 8px;
}

.budget-counter-text {
  font-size: 0.72rem;
  color: var(--text-primary);
  font-weight: 500;
}

.budget-reset-countdown {
  font-size: 0.6rem;
  color: var(--text-muted);
}

.budget-pixel-grid {
  display: flex;
  gap: 3px;
  align-items: center;
}

.budget-pixel-box {
  width: 7px;
  height: 7px;
  border: 1px solid var(--border-main);
  background: #080808;
  display: block;
  transition: all 0.2s ease;
}

.budget-pixel-box.active {
  background: #FFFFFF;
  border-color: #FFFFFF;
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.7);
}

.budget-pixel-box.blinking {
  animation: budgetBlink 0.6s infinite alternate;
  background: #888888;
  border-color: #CCCCCC;
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.4);
}

@keyframes budgetBlink {
  from { opacity: 0.3; transform: scale(0.9); }
  to { opacity: 1; transform: scale(1.1); }
}

.budget-warning-text {
  display: none;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: #FFFFFF;
  background: #1A1A1A;
  border: 1px solid var(--border-main);
  padding: 6px 12px;
  margin-top: 6px;
}

.budget-replenish-btn {
  background: transparent;
  border: 1px solid var(--border-subtle, #333333);
  color: var(--text-muted, #888888);
  font-family: var(--font-mono);
  font-size: 0.6rem;
  padding: 1px 6px;
  cursor: pointer;
  border-radius: 2px;
  transition: all 0.2s ease;
}

.budget-replenish-btn:hover {
  color: #FFFFFF;
  border-color: #FFFFFF;
  background: rgba(255, 255, 255, 0.1);
}

/* F14 Directed Question Selection Bar */
.directed-selection-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding: 8px 12px;
  background: #080808;
  border: 1px solid var(--border-main);
  font-family: var(--font-mono);
  font-size: 0.72rem;
}

.selected-chips-group {
  display: flex;
  gap: 6px;
  align-items: center;
  flex-wrap: wrap;
}

.directed-seat-chip {
  background: #181818;
  color: #FFFFFF;
  border: 1px solid #FFFFFF;
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.2);
  padding: 3px 8px;
  font-size: 0.68rem;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border-radius: 3px;
}

.directed-seat-chip button {
  background: none;
  border: none;
  color: #FFFFFF;
  cursor: pointer;
  font-size: 0.75rem;
  line-height: 1;
}

.crossexam-toggle-btn {
  background: transparent;
  border: 1px solid var(--border-main);
  color: var(--text-secondary);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  padding: 4px 10px;
  cursor: pointer;
  transition: all 0.15s;
}

.crossexam-toggle-btn.active {
  background: #FFFFFF;
  color: #000000;
  border-color: #FFFFFF;
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.3);
}

.clear-selection-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  text-decoration: underline;
}

.clear-selection-btn:hover {
  color: var(--text-primary);
}

/* Selected Seat on Arena */
.council-seat.selected .seat-avatar-box {
  border-color: #FFFFFF;
  box-shadow: 0 0 0 3px #FFFFFF, 0 0 16px rgba(255, 255, 255, 0.5);
}

.council-seat.selected .seat-name {
  color: #FFFFFF;
  font-weight: 500;
}

.council-seat.unselected-dim {
  opacity: 0.32;
}

/* Hover & Active Seat States */
.council-seat:hover .seat-avatar-box {
  border-color: var(--text-primary);
  transform: translateY(-2px);
}

.council-seat.speaking .seat-avatar-box {
  border-color: #FFFFFF;
  background: #FFFFFF;
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.35), 0 0 32px rgba(255, 255, 255, 0.75);
  transform: translateY(-3px) scale(1.04);
}

.council-seat.speaking .seat-avatar-box::after {
  content: '';
  position: absolute;
  inset: -10px;
  border: 1px solid #FFFFFF;
  pointer-events: none;
  animation: speakerBeaconEcho 1.25s cubic-bezier(0.1, 0.8, 0.2, 1) infinite;
}

@keyframes speakerBeaconEcho {
  0% { transform: scale(0.88); opacity: 1; border-color: #FFFFFF; }
  100% { transform: scale(1.45); opacity: 0; border-color: rgba(255, 255, 255, 0); }
}

/* 5-Bar Voice Frequency Equalizer */
.voice-equalizer-bars {
  display: none;
  position: absolute;
  bottom: -13px;
  left: 50%;
  transform: translateX(-50%);
  gap: 2.5px;
  align-items: flex-end;
  height: 12px;
  z-index: 15;
  background: #000000;
  padding: 1px 4px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.3);
}

.council-seat.speaking .voice-equalizer-bars {
  display: flex;
}

.voice-equalizer-bars span {
  width: 2px;
  background: #FFFFFF;
  border-radius: 1px;
  box-shadow: 0 0 4px #FFFFFF;
  animation: eqHop 0.55s infinite ease-in-out alternate;
}

.voice-equalizer-bars span:nth-child(1) { height: 3px; animation-delay: 0.05s; }
.voice-equalizer-bars span:nth-child(2) { height: 8px; animation-delay: 0.25s; }
.voice-equalizer-bars span:nth-child(3) { height: 11px; animation-delay: 0.12s; }
.voice-equalizer-bars span:nth-child(4) { height: 6px; animation-delay: 0.35s; }
.voice-equalizer-bars span:nth-child(5) { height: 4px; animation-delay: 0.18s; }

@keyframes eqHop {
  0% { height: 2px; opacity: 0.35; }
  100% { height: 11px; opacity: 1; }
}

.council-seat.speaking .seat-avatar-box svg rect {
  fill: #000000 !important;
}

.council-seat.speaking .seat-name {
  color: #FFFFFF;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.council-seat.speaking .seat-status-badge {
  color: #FFFFFF;
  font-weight: 600;
  background: #222222;
  padding: 1px 5px;
}

.council-seat.analyzing .seat-avatar-box {
  border-color: #9A9A9A;
  animation: pulseAnalyze 1.1s infinite alternate;
}

.council-seat.analyzing .seat-status-badge {
  color: #C0C0C0;
}

.council-seat.challenging .seat-avatar-box {
  border-color: #FFFFFF;
  outline: 2px dashed #FFFFFF;
  outline-offset: 3px;
  box-shadow: 0 0 16px rgba(255, 255, 255, 0.45);
  animation: challengeFlicker 0.4s infinite alternate;
}

@keyframes challengeFlicker {
  0% { transform: scale(1); }
  100% { transform: scale(1.05); }
}

.council-seat.challenging .seat-status-badge {
  color: #FFFFFF;
  background: #333333;
}

.council-seat.voted-add .seat-avatar-box,
.council-seat.voted-supported .seat-avatar-box {
  border-color: #FFFFFF;
  box-shadow: 0 0 0 2px #FFFFFF, 0 0 14px rgba(255, 255, 255, 0.35);
}

.council-seat.voted-reduce .seat-avatar-box,
.council-seat.voted-not-supported .seat-avatar-box,
.council-seat.voted-not_supported .seat-avatar-box {
  border-color: #888888;
  box-shadow: 0 0 0 2px #666666, 0 0 10px rgba(120, 120, 120, 0.3);
}

.council-seat.voted-pass .seat-avatar-box,
.council-seat.voted-insufficient-evidence .seat-avatar-box,
.council-seat.voted-insufficient_evidence .seat-avatar-box {
  border-color: #444444;
  box-shadow: 0 0 0 1px #444444;
}

.council-seat.voted .seat-status-badge {
  color: var(--text-secondary);
}

.council-seat.dimmed {
  opacity: 0.38;
}

@keyframes pulseAnalyze {
  from { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0); }
  to { box-shadow: 0 0 0 6px rgba(255, 255, 255, 0.16); }
}

/* ==========================================================================
   Central Live Transcript Hub (Landscape Rectangle)
   ========================================================================== */
.central-transcript-hub {
  position: absolute;
  top: 108px;
  left: 50%;
  width: var(--transcript-width);
  max-width: calc(100% - 240px);
  height: var(--transcript-height);
  transform: translateX(-50%);
  background: var(--bg-card);
  border: 1px solid var(--border-main);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  z-index: 20;
  box-shadow: 0 0 45px rgba(0, 0, 0, 0.85);
}

/* Subtle CRT scanline effect on transcript */
.central-transcript-hub::after {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    rgba(0, 0, 0, 0.12) 0px,
    rgba(0, 0, 0, 0.12) 1px,
    transparent 1px,
    transparent 2px
  );
  pointer-events: none;
  z-index: 10;
  opacity: 0.55;
}

.transcript-header-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 12px;
  background: #080808;
  border-bottom: 1px solid var(--border-main);
  font-family: var(--font-mono);
  font-size: 0.62rem;
  color: var(--text-muted);
  flex-shrink: 0;
}

.transcript-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.transcript-btn-mini {
  background: transparent;
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  padding: 2px 6px;
  font-size: 0.58rem;
  cursor: pointer;
  transition: all 0.15s;
}

.transcript-btn-mini:hover {
  color: var(--text-primary);
  border-color: var(--text-secondary);
}

.transcript-feed {
  flex: 1;
  overflow-y: auto;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  scrollbar-width: thin;
  scrollbar-color: var(--border-main) transparent;
}

.transcript-feed::-webkit-scrollbar {
  width: 5px;
}

.transcript-feed::-webkit-scrollbar-thumb {
  background: var(--border-main);
}

/* Transcript Message Types */
.transcript-msg {
  display: flex;
  flex-direction: column;
  animation: fadeInMsg 0.25s ease-out;
}

@keyframes fadeInMsg {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

.msg-meta {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  color: var(--text-primary);
}

.msg-time {
  color: var(--text-dim);
}

.msg-body {
  font-size: 0.76rem;
  line-height: 1.6;
  color: #B5B5B5;
  margin-top: 4px;
  padding-left: 10px;
  border-left: 1px solid var(--border-main);
  white-space: pre-wrap;
  word-break: break-word;
}

.transcript-msg.chair .msg-meta {
  color: #FFFFFF;
}

.transcript-msg.chair .msg-body {
  border-color: #FFFFFF;
  color: #EDEDED;
  font-style: normal;
}

.transcript-msg.challenge .msg-body {
  border-color: #777777;
  color: #FFFFFF;
  background: rgba(255, 255, 255, 0.03);
  padding: 6px 10px;
}

.transcript-msg.response .msg-body {
  border-color: #555555;
  color: #CFCFCF;
  padding: 6px 10px;
}

.transcript-msg.final-synthesis .msg-meta {
  color: #FFFFFF;
}

.transcript-msg.final-synthesis .msg-body {
  border-color: #FFFFFF;
  color: #E2E2E2;
  font-family: var(--font-sans);
  font-size: 0.76rem;
  line-height: 1.6;
  background: rgba(255, 255, 255, 0.03);
  padding: 16px 18px;
  border-radius: 2px;
  white-space: normal;
}

/* Structured Final Chamber Synthesis in Live Transcript */
.synth-container {
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: 100%;
}

.synth-header {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #FFFFFF;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  padding-bottom: 6px;
  text-transform: uppercase;
}

.synth-section {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.synth-label {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #A0A0A0;
  text-transform: uppercase;
}

.synth-content {
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-size: 0.76rem;
  line-height: 1.6;
}

.synth-data-line {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: baseline;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  padding: 2px 0;
}

.synth-key {
  color: #8E8E8E;
  min-width: 160px;
}

.synth-val {
  color: #FFFFFF;
  font-weight: 500;
  word-break: break-word;
}

.synth-bullet-line {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  font-size: 0.76rem;
  color: #D6D6D6;
  line-height: 1.5;
  margin-bottom: 3px;
}

.synth-bullet {
  color: #888888;
  line-height: 1.5;
}

.synth-bullet-text {
  flex: 1;
  line-height: 1.5;
}

.synth-text-line {
  color: #E2E2E2;
  line-height: 1.6;
  font-size: 0.76rem;
}

.synth-paragraph {
  margin: 0 0 10px 0;
  line-height: 1.6;
  color: #E2E2E2;
}

.transcript-msg.verdict-announcement {
  background: #FFFFFF;
  color: #050505;
  padding: 16px 18px;
  border: 1px solid #FFFFFF;
  border-radius: 2px;
}

.transcript-msg.verdict-announcement .msg-meta {
  display: none;
}

.transcript-msg.verdict-announcement .msg-body {
  border-left: none;
  padding-left: 0;
  margin-top: 0;
  color: #111111;
  font-size: 0.76rem;
  line-height: 1.6;
  white-space: pre-wrap;
  word-break: break-word;
}

/* Structured Verdict Record within White Announcement Box */
.vr-container {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.vr-header-block {
  border-bottom: 1px solid #E5E5E5;
  padding-bottom: 8px;
  margin-bottom: 2px;
}

.vr-title {
  font-family: var(--font-mono);
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #050505;
  text-transform: uppercase;
  line-height: 1.2;
}

.vr-session {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: #555555;
  margin-top: 2px;
  letter-spacing: 0.04em;
}

.vr-section {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.vr-label {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #555555;
}

.vr-text {
  font-size: 0.78rem;
  line-height: 1.6;
  color: #111111;
  word-break: break-word;
}

.vr-question {
  font-family: var(--font-sans);
  color: #111111;
  font-size: 0.8rem;
  line-height: 1.55;
}

.vr-outcome {
  font-family: var(--font-mono);
  font-size: 0.86rem;
  font-weight: 700;
  color: #000000;
  letter-spacing: 0.02em;
}

.vr-answer {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  line-height: 1.6;
  color: #050505;
  font-weight: 500;
}

.vr-summary,
.vr-conclusion {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  line-height: 1.6;
  color: #222222;
}

.vr-key-result {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  line-height: 1.6;
  color: #111111;
  white-space: pre-line;
  background: #F8F8F8;
  padding: 8px 10px;
  border-left: 2px solid #000000;
}

.vr-why,
.vr-reason {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  line-height: 1.55;
  color: #222222;
}

.vr-vote {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  line-height: 1.55;
  color: #222222;
  white-space: pre-line;
}

.vr-math-req,
.vr-liq-req,
.vr-demand-req,
.vr-supply-req,
.vr-security-req {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  line-height: 1.45;
  color: #222222;
  white-space: pre-line;
}

.vr-main-factor {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 700;
  color: #000000;
}

.vr-conclusion {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  line-height: 1.5;
  color: #111111;
}

.vr-status {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: #666666;
  border-top: 1px solid #EAEAEA;
  padding-top: 8px;
  margin-top: 4px;
}

/* Typing indicator */
.typing-indicator {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px 0;
}

.typing-dot {
  width: 4px;
  height: 4px;
  background: var(--text-muted);
  animation: typingDot 1.2s infinite;
}

.typing-dot:nth-child(2) { animation-delay: 0.2s; }
.typing-dot:nth-child(3) { animation-delay: 0.4s; }

@keyframes typingDot {
  0%, 100% { opacity: 0.3; transform: scale(0.8); }
  50% { opacity: 1; transform: scale(1.1); }
}

/* ==========================================================================
   Live Voting Scoreboard Ribbon
   ========================================================================== */
.voting-scoreboard-panel {
  display: none;
  max-width: 820px;
  margin: 16px auto 0;
  padding: 12px 18px;
  background: var(--bg-card);
  border: 1px solid var(--border-main);
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
}

.voting-scoreboard-panel.active {
  display: flex;
}

.tally-group {
  display: flex;
  gap: 20px;
  align-items: center;
}

.tally-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
}

.tally-count {
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--text-primary);
  display: inline-block;
  transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.tally-count.tally-pop {
  animation: tallyCountPop 0.38s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes tallyCountPop {
  0% { transform: scale(1); }
  50% { transform: scale(1.65); color: #FFFFFF; text-shadow: 0 0 14px #FFFFFF; }
  100% { transform: scale(1); }
}

/* Arena Seismic Micro-Quake Impact */
.council-arena.arena-quake {
  animation: arenaMicroQuake 0.45s ease-out;
}

@keyframes arenaMicroQuake {
  0%, 100% { transform: translate(0, 0); }
  15% { transform: translate(-4px, 3px); }
  30% { transform: translate(4px, -3px); }
  50% { transform: translate(-3px, 1px); }
  75% { transform: translate(2px, -1px); }
}

/* Big Dramatic Verdict Impact Stamp Overlay */
.verdict-stamp-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 60;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  animation: verdictSlam 0.55s cubic-bezier(0.175, 0.885, 0.32, 1.2) forwards;
}

.verdict-stamp-box {
  background: #FFFFFF;
  color: #050505;
  padding: 16px 36px;
  border: 4px solid #050505;
  box-shadow: 0 0 0 4px #FFFFFF, 0 24px 70px rgba(0, 0, 0, 0.95);
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 2.2rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  position: relative;
  text-align: center;
}

.verdict-stamp-box span {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  margin-top: 4px;
  color: #333333;
}

.verdict-stamp-ring {
  position: absolute;
  inset: -20px;
  border: 2px solid rgba(255, 255, 255, 0.9);
  pointer-events: none;
  animation: shockwaveRing 0.8s ease-out forwards;
}

@keyframes verdictSlam {
  0% { transform: translate(-50%, -50%) scale(3.2) rotate(-8deg); opacity: 0; filter: blur(12px); }
  65% { transform: translate(-50%, -50%) scale(0.93) rotate(1.5deg); opacity: 1; filter: blur(0); }
  85% { transform: translate(-50%, -50%) scale(1.04) rotate(-0.5deg); }
  100% { transform: translate(-50%, -50%) scale(1) rotate(0deg); opacity: 1; }
}

@keyframes shockwaveRing {
  0% { transform: scale(0.7); opacity: 1; }
  100% { transform: scale(2.4); opacity: 0; }
}

/* ==========================================================================
   Composer Input & Hint Chips
   ========================================================================== */
.chamber-composer-wrap {
  max-width: 820px;
  margin: 10px auto 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 12px;
}

.composer-form {
  display: flex;
  gap: 12px;
  align-items: stretch;
}

.composer-input {
  flex: 1;
  background: #080808;
  border: 1px solid var(--border-main);
  color: var(--text-primary);
  font-family: inherit;
  font-size: 0.88rem;
  line-height: 1.5;
  padding: 12px 16px;
  min-height: 72px;
  max-height: 160px;
  resize: vertical;
  transition: border-color 0.2s, box-shadow 0.2s;
  box-sizing: border-box;
}

.composer-input:focus {
  outline: none;
  border-color: var(--border-focus);
}

.composer-input::placeholder {
  color: var(--text-muted);
}

.composer-btn {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  padding: 14px 26px;
  background: #FFFFFF;
  color: #050505;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 72px;
  box-sizing: border-box;
}

.composer-btn:hover:not(:disabled) {
  background: #D9D9D9;
  transform: translateY(-1px);
}

.composer-btn:disabled {
  background: var(--border-main);
  color: var(--text-muted);
  cursor: not-allowed;
  transform: none;
}

.hint-chips-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 4px;
}

.hint-chip-label {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--text-dim);
  text-transform: uppercase;
  margin-right: 4px;
}

.hint-chip {
  background: var(--bg-card);
  border: 1px solid var(--border-main);
  color: var(--text-secondary);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  padding: 5px 12px;
  cursor: pointer;
  transition: all 0.15s;
}

.hint-chip:hover {
  border-color: var(--text-secondary);
  color: var(--text-primary);
  background: var(--bg-card-elevated);
}

/* Post-Session Action Bar */
.post-session-actions {
  display: none;
  max-width: 820px;
  margin: 20px auto 0;
  padding: 16px 20px;
  background: var(--bg-card);
  border: 1px solid #FFFFFF;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.post-session-actions.active {
  display: flex;
}

.post-session-text {
  font-family: var(--font-mono);
  font-size: 0.78rem;
}

.post-session-btns {
  display: flex;
  gap: 10px;
}

/* ==========================================================================
   Mobile Council Layout (< 980px)
   Transforms stadium layout into a functional compact vertical stack
   ========================================================================== */
@media (max-width: 980px) {
  .chamber-stage {
    padding: 0;
    display: block;
  }

  .council-arena {
    width: 100%;
    height: auto;
    max-width: none;
    max-height: none;
    display: block;
    position: static;
  }

  .ambient-ring-outer,
  .ambient-ring-inner,
  .radar-sweep-beam,
  .sonar-ping-ring,
  .spoke-lines-svg {
    display: none !important;
  }

  .council-seats-container {
    display: flex !important;
    overflow-x: auto;
    gap: 10px;
    padding: 12px 4px 16px;
    scrollbar-width: thin;
    scrollbar-color: var(--border-main) transparent;
  }

  .council-seat {
    position: static !important;
    transform: none !important;
    margin: 0;
    width: 82px;
    flex: 0 0 82px;
    left: auto !important;
    top: auto !important;
  }

  .seat-name {
    font-size: 0.62rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .central-transcript-hub {
    position: static !important;
    width: 100% !important;
    max-width: 100% !important;
    height: 55vh;
    transform: none !important;
    margin: 8px 0 16px;
  }

  .composer-form {
    flex-direction: column;
  }

  .composer-btn {
    width: 100%;
  }
}

/* ==========================================================================
   AI Engine Status Badge & Modal Dialog
   ========================================================================== */
.engine-badge-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-main);
  color: var(--text-primary);
  padding: 3px 9px;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.03em;
  cursor: pointer;
  transition: all 0.15s ease;
  border-radius: 0;
}

.engine-badge-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: #ffffff;
}

.engine-indicator-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #00ff66;
  box-shadow: 0 0 6px rgba(0, 255, 102, 0.7);
  flex-shrink: 0;
}

.engine-indicator-dot.simulator {
  background: #ffaa00;
  box-shadow: 0 0 6px rgba(255, 170, 0, 0.7);
}

.ai-config-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(4px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ai-config-modal {
  background: #050505;
  border: 1px solid var(--border-main);
  width: 92%;
  max-width: 480px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.9);
  font-family: var(--font-sans);
}

.ai-config-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-subtle);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  background: #0d0d0d;
}

.ai-config-close {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 1.1rem;
  cursor: pointer;
  line-height: 1;
}

.ai-config-close:hover {
  color: #fff;
}

.ai-config-body {
  padding: 18px 16px;
}
