/* Dome Watch - Pentagon Pizza Tracker Theme */

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

:root {
    --bg-dark: #0d1117;
    --bg-card: #161b22;
    --bg-elevated: #21262d;
    --text-primary: #e6edf3;
    --text-secondary: #8b949e;
    --text-muted: #6e7681;
    --border-color: #30363d;
    --accent-green: #3fb950;
    --accent-red: #f85149;
    --accent-blue: #58a6ff;
    --accent-amber: #d29922;
    --accent-purple: #a371f7;
    --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    --font-mono: 'SF Mono', 'Fira Code', 'Fira Mono', 'Roboto Mono', monospace;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-primary);
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.5;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    padding-bottom: 40px; /* clear the fixed news ticker */
}

/* Container */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 116px 0 24px; /* Remove horizontal padding, let sections control their own */
    width: 100%;
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* Main Display */
.main-display {
    padding: 0 200px;
    margin-bottom: 24px;
}




/* Footer */
.footer {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
}

.footer-section {
    width: 100%;
}

.footer-title {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: block;
    padding: 12px 24px;
    background: var(--bg-elevated);
    border-bottom: 1px solid var(--border-color);
}

.footer-sources {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    width: 100%;
    padding: 16px 24px;
    box-sizing: border-box;
}

.source-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.source-category {
    font-size: 10px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}

.source-group a {
    font-size: 10px;
    color: var(--accent-blue);
    text-decoration: none;
    transition: color 0.2s ease;
}

.source-group a:hover {
    color: var(--accent-blue-hover);
    text-decoration: underline;
}

/* Shared style for all member profile links (pledge, speaker, journal chair) */
.pledge-leader-website,
.speaker-member-website,
.journal-chair-website {
    font-size: 12px;
    color: var(--accent-blue);
    font-family: var(--font-mono);
    text-decoration: none;
}
.pledge-leader-website:hover,
.speaker-member-website:hover,
.journal-chair-website:hover {
    text-decoration: underline;
}

.static-source {
    font-size: 10px;
    color: var(--text-muted);
    font-family: var(--font-mono);
}

.footer-updated {
    font-size: 10px;
    color: var(--text-muted);
    font-family: var(--font-mono);
}

/* ── Site footer ─────────────────────────────────────────── */
.site-footer {
    border-top: 1px solid var(--border-color);
    padding: 12px 0 10px;
    text-align: center;
}

.site-footer-primary {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 4px;
}

.site-footer-brand {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-secondary);
    font-family: var(--font-mono);
    letter-spacing: 0.3px;
}

.site-footer-sep {
    font-size: 10px;
    color: var(--text-muted);
}

.site-footer-copy {
    font-size: 11px;
    color: var(--text-muted);
    font-family: var(--font-mono);
}

.site-footer-license {
    font-size: 11px;
    color: var(--text-muted);
    font-family: var(--font-mono);
    text-decoration: none;
}

.site-footer-license:hover {
    color: var(--accent-blue);
    text-decoration: underline;
}

.site-footer-secondary {
    font-size: 10px;
    color: var(--text-muted);
    opacity: 0.7;
}

.vote-id {
    font-size: 14px;
    color: var(--text-muted);
    font-family: var(--font-mono);
}

.floor-status {
    font-size: 12px;
    color: var(--text-secondary);
    font-family: var(--font-mono);
    margin-left: 0;
    display: block;
    position: relative;
    z-index: 1;
}

/* Anchor scroll offset — clear the fixed 100px header + 16px breathing room */
#vote, #proceedings, #bills, #live {
    scroll-margin-top: 116px;
}

/* Main Header */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: var(--bg-header);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 24px;
    z-index: 1000;
    backdrop-filter: blur(30px);
}

.header-left {
    display: flex;
    align-items: center;
    gap: 24px;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 24px;
}

.date-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.mode-toggle {
    display: flex;
    align-items: center;
}

.mode-toggle-btn {
    display: flex;
    background: var(--bg-elevated);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.mode-toggle-btn:hover {
    border-color: var(--accent-blue);
}

.mode-icon {
    padding: 6px 12px;
    font-size: 11px;
    font-weight: 600;
    color: var(--text-secondary);
    border-radius: 4px;
    transition: all 0.2s ease;
    font-family: var(--font-mono);
}

.mode-toggle-btn[data-mode="vote"] .vote-mode {
    background: var(--accent-green);
    color: white;
}

.mode-toggle-btn[data-mode="recess"] .recess-mode {
    background: var(--accent-amber);
    color: white;
}

.mode-toggle-btn[data-mode="debate"] .debate-mode {
    background: var(--accent-blue);
    color: white;
}

.mode-toggle-btn[data-mode="prayer"] .prayer-mode {
    background: var(--accent-purple);
    color: white;
}

.mode-toggle-btn[data-mode="silence"] .silence-mode {
    background: #8b949e;
    color: white;
}

.mode-toggle-btn[data-mode="oath"] .oath-mode {
    background: #d29922;
    color: white;
}

.mode-toggle-btn[data-mode="pledge"] .pledge-mode {
    background: var(--accent-red);
    color: white;
}

.mode-toggle-btn[data-mode="speaker"] .speaker-mode {
    background: #d29922;
    color: white;
}

/* Hide auto-switch modes from UI toggle button */
.mode-toggle-btn .prayer-mode,
.mode-toggle-btn .pledge-mode,
.mode-toggle-btn .silence-mode,
.mode-toggle-btn .oath-mode,
.mode-toggle-btn .speaker-mode {
    display: none;
}

.today-date {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    font-family: var(--font-mono);
}

.session-status {
    display: flex;
    align-items: center;
    gap: 6px;
}

.session-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--text-muted);
    animation: pulse 2s infinite;
}

.session-indicator.in-session {
    background: var(--accent-green);
}

.session-indicator.fly-in {
    background: var(--accent-amber);
}

.session-indicator.pro-forma {
    background: var(--accent-blue);
}

.session-indicator.added-votes {
    background: var(--accent-purple);
}

.session-text {
    font-size: 11px;
    font-weight: 500;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.next-votes {
    font-size: 10px;
    font-weight: 600;
    color: var(--accent-blue);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 4px;
}

/* Top Bar */
.top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 24px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    margin-bottom: 24px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.live-indicator {
    width: 10px;
    height: 10px;
    background: var(--accent-green);
    border-radius: 50%;
    animation: live-pulse 2s ease-in-out infinite;
    box-shadow: 0 0 10px rgba(63, 185, 80, 0.5);
}

@keyframes live-pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(0.9); }
}

.brand-text {
    font-family: var(--font-mono);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.5px;
    color: var(--text-primary);
}

.top-bar-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.capitol-coords {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.coords-label {
    font-size: 8px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.coords-value {
    font-size: 9px;
    font-weight: 500;
    color: var(--text-secondary);
    font-family: var(--font-mono);
    letter-spacing: 0.5px;
}

.clock-group {
    display: flex;
    align-items: center;
    gap: 12px;
}

.clock {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    min-width: 56px;
}

.clock-label {
    font-size: 8px;
    font-weight: 700;
    letter-spacing: 1px;
    color: var(--text-muted);
    text-transform: uppercase;
}

.analog-clock {
    display: block;
    width: 56px;
    height: 56px;
    overflow: visible;
}

.clock-face {
    fill: #0c1018;
    stroke: rgba(88, 166, 255, 0.18);
    stroke-width: 1.5;
}

.clock-hand {
    stroke-linecap: round;
}

.hour-hand {
    stroke: rgba(240, 246, 252, 0.92);
    stroke-width: 3;
}

.minute-hand {
    stroke: rgba(240, 246, 252, 0.72);
    stroke-width: 2;
}

.second-hand {
    stroke: #ff6b5b;
    stroke-width: 1.2;
}

.clock-center-cap {
    fill: #0c1018;
}

.clock-center-pip {
    fill: #ff6b5b;
}

.clock-time {
    font-family: var(--font-mono);
    font-size: 9px;
    color: var(--text-secondary);
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.2px;
    white-space: nowrap;
}

.connection-status {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 500;
}

.status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent-amber);
    transition: background 0.3s ease;
}

.connection-status.connected .status-dot {
    background: var(--accent-green);
}

.connection-status.error .status-dot {
    background: var(--accent-red);
}

.status-text {
    color: var(--text-secondary);
}

/* Main Display */
.main-display {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* Vote Header */
.vote-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
}

.vote-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.3;
    flex: 1;
}

.vote-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.vote-id {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--text-muted);
    padding: 6px 12px;
    background: var(--bg-elevated);
    border-radius: 4px;
}

.refresh-btn {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-elevated);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    cursor: pointer;
    color: var(--text-secondary);
    transition: all 0.2s ease;
}

.refresh-btn:hover {
    background: var(--bg-card);
    border-color: var(--text-secondary);
    color: var(--text-primary);
}

.refresh-btn:active {
    transform: scale(0.95);
}

/* Vote Display */
.vote-display {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 32px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
}

.vote-count-section {
    text-align: center;
}

.count-label {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1px;
    color: var(--text-muted);
    margin-bottom: 8px;
    text-transform: uppercase;
}

.count-number {
    font-size: 64px;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1;
    margin-bottom: 8px;
    font-feature-settings: 'tnum';
}

.count-percentage {
    font-family: var(--font-mono);
    font-size: 18px;
    font-weight: 600;
    color: var(--text-secondary);
}

.vote-divider {
    display: flex;
    align-items: center;
    justify-content: center;
}

.divider-line {
    width: 1px;
    height: 60px;
    background: var(--border-color);
}

/* Progress Section */
.progress-section {
    padding: 20px 0;
}

.progress-bar {
    height: 12px;
    background: var(--bg-elevated);
    border-radius: 6px;
    overflow: visible;
    display: flex;
    margin-bottom: 12px;
    position: relative;
}

.vote-display {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    margin-bottom: 20px;
}

.vote-count-section {
    text-align: center;
}

.vote-count-section.yeas .count-label { color: var(--accent-green); }
.vote-count-section.nays .count-label { color: var(--accent-red); }

.vote-count-section.present {
    padding: 4px 12px;
    background: rgba(210, 153, 34, 0.1);
    border: 1px solid rgba(210, 153, 34, 0.3);
    border-radius: 20px;
    min-width: 100px;
}

.vote-count-section.present .count-label {
    font-size: 9px;
    color: var(--accent-amber);
    margin-bottom: 2px;
}

.vote-count-section.present .count-number {
    font-size: 24px;
    margin-bottom: 0;
}

.vote-count-section.present .count-percentage {
    font-size: 11px;
}

.vote-divider {
    display: none;
}

.progress-fill {
    height: 100%;
    transition: width 0.5s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.progress-fill.yeas {
    background: var(--accent-green);
    border-radius: 6px 0 0 6px;
    box-shadow: 0 0 10px rgba(88, 166, 255, 0.3);
}

.progress-fill.yeas:hover {
    filter: brightness(1.3);
    box-shadow: 0 0 15px rgba(88, 166, 255, 0.5);
}

.progress-fill.present {
    background: var(--accent-amber);
}

.progress-fill.present:hover {
    filter: brightness(1.3);
    box-shadow: 0 0 15px rgba(210, 153, 34, 0.5);
}

.progress-fill.nays {
    background: var(--accent-red);
    border-radius: 0 6px 6px 0;
    box-shadow: 0 0 10px rgba(248, 81, 73, 0.3);
}

.progress-fill.nays:hover {
    filter: brightness(1.3);
    box-shadow: 0 0 15px rgba(248, 81, 73, 0.5);
}

.progress-labels {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 500;
}

/* Projection Card */
.projection-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 24px;
}

.projection-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.projection-label {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1px;
    color: var(--text-muted);
    text-transform: uppercase;
}

.confidence-badge {
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 600;
    color: var(--accent-blue);
    padding: 4px 10px;
    background: rgba(88, 166, 255, 0.1);
    border-radius: 4px;
}

.projection-result {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 20px;
}

.result-text {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
}

.result-status {
    font-size: 14px;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.result-status.pass {
    background: rgba(63, 185, 80, 0.15);
    color: var(--accent-green);
}

.result-status.fail {
    background: rgba(248, 81, 73, 0.15);
    color: var(--accent-red);
}

.result-status.pending {
    background: rgba(210, 153, 34, 0.15);
    color: var(--accent-amber);
}

/* Live indicator */
.live-indicator {
    width: 8px;
    height: 8px;
    background: #ff4444;
    border-radius: 50%;
    margin-right: 8px;
    transition: all 0.3s ease;
}

.live-indicator.connecting {
    background: #ffa500;
    animation: pulse 1.5s infinite;
}

.live-indicator.live {
    background: #4ade80;
    animation: pulse 2s infinite;
}

.projection-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.detail-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.detail-label {
    font-size: 13px;
    color: var(--text-secondary);
}

.detail-value {
    font-family: var(--font-mono);
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}

/* Threshold Analysis */
.threshold-panel {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  overflow: hidden;
}

.threshold-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 24px;
  background: var(--bg-elevated);
  border-bottom: 1px solid var(--border-color);
}

.threshold-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1px;
  color: var(--text-muted);
  text-transform: uppercase;
}

.threshold-state {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
  padding: 5px 10px;
  border-radius: 4px;
  color: var(--accent-amber);
  background: rgba(210, 153, 34, 0.14);
}

.threshold-state.locked-pass {
  color: var(--accent-green);
  background: rgba(63, 185, 80, 0.14);
}

.threshold-state.locked-fail {
  color: var(--accent-red);
  background: rgba(248, 81, 73, 0.14);
}

.threshold-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border-color);
}

.threshold-item {
  min-width: 0;
  padding: 18px 20px;
  background: var(--bg-card);
}

.threshold-metric-label {
  display: block;
  margin-bottom: 6px;
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.threshold-metric-value {
  display: block;
  color: var(--text-primary);
  font-family: var(--font-mono);
  font-size: 28px;
  font-weight: 700;
  line-height: 1;
}
:root{
  --bg-card:#0f1720;
  --bg-elevated:#0b1220;
  --border-color:#233044;
  --text-muted:#9aa6b2;
  --accent-red:#ff4d4f;
}
.video-section {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  overflow: hidden;
  max-width: 100%;
}
.video-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 24px;
  background: var(--bg-elevated);
  border-bottom: 1px solid var(--border-color);
}

.video-header-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
}

.video-source-hover {
  font-size: 10px;
  font-weight: 500;
  color: var(--text-secondary);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.video-section:hover .video-source-hover {
  opacity: 1;
}

.live-indicator {
  display: flex;
  align-items: center;
  gap: 6px;
}

.live-dot {
  width: 8px;
  height: 8px;
  background: var(--accent-red);
  border-radius: 50%;
  animation: flash-red 2s infinite;
}

.live-text {
  font-size: 9px;
  font-weight: 600;
  color: var(--accent-red);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

@keyframes flash-red {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

.video-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1px;
  color: var(--text-muted);
  text-transform: uppercase;
}
.video-source {
  font-size: 12px;
  font-weight: 500;
  color: var(--accent-red);
  display: flex;
  align-items: center;
  gap: 6px;
}
.video-source::before {
  content: '';
  width: 8px;
  height: 8px;
  background: var(--accent-red);
  border-radius: 50%;
  animation: live-pulse 2s ease-in-out infinite;
}
@keyframes live-pulse {
  0% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.6); opacity: 0.5; }
  100% { transform: scale(1); opacity: 1; }
}

/* container keeps aspect ratio and fixed layout even when fallback shown */
.video-container {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
  height: 0;
  overflow: hidden;
  background: #000;
}

/* unified absolute layering so dimensions are identical */
.video-container video,
.video-container iframe,
.video-container .video-fallback,
.video-container .player-snapshot {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  box-sizing: border-box;
}

/* video styling (hidden when fallback) */
.video-container video {
  object-fit: cover; /* or contain for letterbox */
  display: block;
  background: #000;
}

/* snapshot canvas — shown in place of video when session ended */
.video-container .player-snapshot {
  object-fit: cover;
  display: block;
  background: #000;
}

/* fallback matches the same size and shows centered text on blank background */
.video-container .video-fallback {
  display: none; /* toggled by JS */
  align-items: center;
  justify-content: center;
  background: #000; /* keep black so it looks like an empty player */
  color: #ffffff;
  font-size: 14px;
  text-align: center;
  padding: 12px;
}

/* subtle muted subtitle style inside fallback */
.video-container .video-fallback .subtitle {
  color: #9aa6b2;
  font-size: 13px;
  margin-top: 8px;
}

/* accessibility: ensure same focus outline area */
.video-container .video-fallback:focus {
  outline: 2px solid rgba(255,77,79,0.25);
  outline-offset: -2px;
}

.video-ended-label {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(0, 0, 0, 0.65);
  color: #e6edf3;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 3px 7px;
  border-radius: 3px;
  pointer-events: none;
  z-index: 10;
}

@media (max-width: 640px) {
  .video-header { padding: 12px 16px; }
  .video-label, .video-source { font-size: 11px; }

  .footer-sources {
    grid-template-columns: 1fr;
  }

  .bill-modal-overlay {
    padding: 8px;
    align-items: flex-end;
  }

  .bill-modal {
    max-height: 96vh;
    border-radius: 12px 12px 0 0;
  }
}

/* Weather Panel */
.weather-panel {
  position: relative;
  width: 76px;
  height: 60px;
  max-width: 320px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 8px;
  margin-right: 16px;
  flex-shrink: 0;
  overflow: hidden;
  z-index: 10;
  transition: width 0.35s ease, height 0.35s ease,
              transform 0.35s ease, background 0.35s ease,
              border-color 0.25s ease, box-shadow 0.35s ease;
}

.weather-panel:hover {
  width: 320px;
  height: 180px;
  border-color: var(--accent-blue);
  z-index: 100;
  background: #000;
  transform: translateY(56px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.weather-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 4px;
  transition: opacity 0.2s ease;
  pointer-events: none;
}

.weather-panel:hover .weather-info {
  opacity: 0;
}

.weather-temp {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1;
}

.weather-condition {
  font-size: 8px;
  font-weight: 500;
  color: var(--text-secondary);
  text-transform: uppercase;
  margin-top: 3px;
  text-align: center;
  line-height: 1.1;
}

.weather-panel video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
}

.weather-panel:hover video {
  opacity: 1;
}

/* Quorum Panel */
.quorum-panel {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  overflow: hidden;
}

.quorum-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 24px;
  background: var(--bg-elevated);
  border-bottom: 1px solid var(--border-color);
}

.quorum-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1px;
  color: var(--text-muted);
  text-transform: uppercase;
}

.quorum-indicator {
  display: flex;
  align-items: center;
  gap: 8px;
}


.indicator-text {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

@keyframes indicator-pulse {
  0% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.3); opacity: 0.7; }
  100% { transform: scale(1); opacity: 1; }
}

@keyframes indicator-pulse-green {
  0% { transform: scale(1); opacity: 1; box-shadow: 0 0 0 0 rgba(63, 185, 80, 0.4); }
  50% { transform: scale(1.2); opacity: 0.8; box-shadow: 0 0 0 8px rgba(63, 185, 80, 0); }
  100% { transform: scale(1); opacity: 1; box-shadow: 0 0 0 0 rgba(63, 185, 80, 0.4); }
}

@keyframes indicator-pulse-red {
  0% { transform: scale(1); opacity: 1; box-shadow: 0 0 0 0 rgba(248, 81, 73, 0.4); }
  50% { transform: scale(1.2); opacity: 0.8; box-shadow: 0 0 0 8px rgba(248, 81, 73, 0); }
  100% { transform: scale(1); opacity: 1; box-shadow: 0 0 0 0 rgba(248, 81, 73, 0.4); }
}

.quorum-content {
  padding: 20px 24px;
}

.quorum-metrics {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 16px;
  margin-bottom: 20px;
}

.metric-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.metric-label {
  font-size: 11px;
  font-weight: 500;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.metric-value {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
  font-family: var(--font-mono);
}

.quorum-visual {
  margin-top: 16px;
}

.quorum-bar {
  position: relative;
  height: 8px;
  background: linear-gradient(90deg, var(--accent-red) 0%, var(--accent-amber) 50%, var(--accent-green) 100%);
  border-radius: 100px 0 0 100px;
  overflow: hidden;
  margin-bottom: 8px;
}

.quorum-fill {
  height: 100%;
  width: 100%;
  background: var(--bg-card);
  border-radius: 0 100px 0 0;
  transition: width 0.6s ease;
  position: absolute;
  right: 0;
  top: 0;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

.quorum-labels {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  font-weight: 500;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

/* Floor Grid Panel */
.floor-grid-panel {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  overflow: hidden;
}

.grid-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 16px 24px;
  background: var(--bg-elevated);
  border-bottom: 1px solid var(--border-color);
}

.grid-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1px;
  color: var(--text-muted);
  text-transform: uppercase;
  white-space: nowrap;
}

.grid-legend {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 16px;
}

.grid-note {
  padding: 8px 24px;
  border-bottom: 1px solid var(--border-color);
  background: rgba(13, 17, 23, 0.28);
  color: var(--text-muted);
  font-size: 12px;
  line-height: 1.4;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
}

.dot.yea { background: var(--accent-green); box-shadow: 0 0 6px var(--accent-green); }
.dot.nay { background: var(--accent-red); box-shadow: 0 0 6px var(--accent-red); }
.dot.present { background: var(--accent-amber); box-shadow: 0 0 6px var(--accent-amber); }
.dot.empty { background: var(--bg-elevated); border: 1px solid var(--border-color); }

.grid-container {
  padding: 28px 24px 22px;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 340px;
  background:
    radial-gradient(circle at 50% 112%, rgba(88, 166, 255, 0.12) 0%, rgba(35, 48, 68, 0.22) 36%, transparent 68%),
    linear-gradient(180deg, rgba(255,255,255,0.02), transparent 42%);
  position: relative;
  overflow: hidden;
}

.floor-arch {
  position: relative;
  width: 100%;
  max-width: 760px;
  height: 380px;
  border-bottom: 1px solid rgba(139, 148, 158, 0.18);
  isolation: isolate;
}


.center-aisle {
  content: '';
  position: absolute;
  bottom: 15px;
  left: 50%;
  width: 42px;
  height: 310px;
  background: linear-gradient(to top, rgba(13, 17, 23, 0.85), rgba(13, 17, 23, 0));
  transform: translateX(-50%);
  pointer-events: none;
  z-index: 1;
}

.floor-arch::after {
  content: '';
  position: absolute;
  right: 8%;
  bottom: 16px;
  left: 8%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(139, 148, 158, 0.3), transparent);
  pointer-events: none;
  z-index: 1;
}

.arch-label {
  position: absolute;
  bottom: 2px;
  font-size: 11px;
  font-weight: 700;
  color: var(--text-secondary);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  z-index: 3;
}

.rep-label {
  left: 9%;
}

.dem-label {
  right: 9%;
}

.dais-label {
  position: absolute;
  left: 50%;
  bottom: 0;
  z-index: 3;
  width: 96px;
  padding: 5px 8px;
  border: 1px solid rgba(139, 148, 158, 0.18);
  border-bottom: 0;
  border-radius: 8px 8px 0 0;
  background: rgba(13, 17, 23, 0.86);
  color: var(--text-muted);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1px;
  text-align: center;
  transform: translateX(-50%);
}

.seat {
  position: absolute;
  z-index: 2;
  width: clamp(5px, 0.9vw, 7px);
  height: clamp(5px, 0.9vw, 7px);
  border-radius: 50%;
  background: rgba(110, 118, 129, 0.18);
  border: 1px solid rgba(139, 148, 158, 0.24);
  box-shadow: inset 0 0 0 1px rgba(13, 17, 23, 0.5);
  transition: background 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease, transform 0.2s ease;
  transform: translate(-50%, -50%);
}

.seat:hover {
  transform: translate(-50%, -50%) scale(1.9);
  z-index: 4;
}

.seat.yea { background: var(--accent-green); border-color: rgba(63, 185, 80, 0.9); box-shadow: 0 0 8px rgba(63, 185, 80, 0.55); }
.seat.nay { background: var(--accent-red); border-color: rgba(248, 81, 73, 0.9); box-shadow: 0 0 8px rgba(248, 81, 73, 0.55); }
.seat.present { background: var(--accent-amber); border-color: rgba(210, 153, 34, 0.9); box-shadow: 0 0 8px rgba(210, 153, 34, 0.55); }
.seat.vacant { background: transparent; border-color: rgba(139, 148, 158, 0.12); border-style: dashed; box-shadow: none; opacity: 0.45; pointer-events: none; }

@media (max-width: 1200px) {
  .main-display {
    padding: 0 80px;
  }
}

@media (max-width: 900px) {
  .main-display {
    padding: 0 24px;
  }

  .grid-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .grid-legend {
    justify-content: flex-start;
  }

  .grid-note {
    padding: 10px 16px;
  }

  .grid-container {
    min-height: 260px;
    padding-right: 14px;
    padding-left: 14px;
  }

  .floor-arch {
    height: 260px;
  }

  .arch-label {
    font-size: 9px;
    letter-spacing: 1px;
  }

  .center-aisle {
    height: 210px;
    width: 32px;
  }

  .dais-label {
    width: 76px;
    font-size: 8px;
  }
}

/* Proceedings Panel */
.proceedings-panel {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  overflow: hidden;
  position: relative;
}

.proceedings-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 24px;
  background: var(--bg-elevated);
  border-bottom: 1px solid var(--border-color);
}

.proceedings-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1px;
  color: var(--text-muted);
  text-transform: uppercase;
}

.proceedings-time {
  font-size: 10px;
  font-weight: 500;
  color: var(--text-secondary);
  font-family: var(--font-mono);
  letter-spacing: 0.5px;
}

.proceedings-feed {
  padding: 8px 16px;
  max-height: 200px;
  overflow-y: auto;
  position: relative;
  background: rgba(13, 17, 23, 0.5);
  font-family: var(--font-mono);
}

.proceedings-item {
  padding: 4px 0;
  display: block;
}

/* YouTube Panel */
.youtube-panel {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
}

.youtube-container {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 — overridden to px by scroll JS */
  height: 0;
  overflow: hidden;
  transition: height 0.05s linear, padding-bottom 0.05s linear;
}


.youtube-iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.youtube-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: auto;
  z-index: 2;
  background: transparent;
}

/* ── Custom PIP ─────────────────────────────────── */
.youtube-pip {
  position: fixed;
  bottom: 52px; /* above news ticker */
  right: 16px;
  /* fills the right margin: 16px gap on each side matching the right offset */
  width: max(220px, calc((100vw - 1000px) / 2 - 32px));
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0,0,0,0.6);
  z-index: 998;
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px) scale(0.97);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.youtube-pip.pip-active {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.youtube-pip-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  background: var(--bg-elevated);
  border-bottom: 1px solid var(--border-color);
}

.youtube-pip-header-left {
  display: flex;
  align-items: center;
  gap: 6px;
}

.youtube-pip-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1px;
  color: var(--text-muted);
  text-transform: uppercase;
}

.youtube-pip-source {
  font-size: 8px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  opacity: 0.8;
}

.youtube-pip-source a {
  color: var(--accent-blue);
  text-decoration: none;
  opacity: 0.9;
  transition: opacity 0.2s ease;
}

.youtube-pip-source a:hover { opacity: 1; text-decoration: underline; }

.pip-live-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent-red);
  animation: pip-blink 1.4s ease-in-out infinite;
  flex-shrink: 0;
}

@keyframes pip-blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.2; }
}

/* Blinking live dot overlay on CapCam video — only visible when expanded */
.capcam-live-dot {
  position: absolute;
  top: 7px;
  left: 7px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent-red);
  z-index: 5;
  pointer-events: none;
  visibility: hidden;
}
.weather-panel:hover .capcam-live-dot {
  visibility: visible;
  animation: pip-blink 1.4s ease-in-out infinite;
}

/* Live dot spacing inside panel-label */
.panel-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.youtube-pip-video {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: #000;
}

.youtube-pip-iframe {
  display: block;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
  object-fit: cover;
}

.youtube-pip-video { cursor: pointer; }
.youtube-pip-overlay {
  position: absolute;
  inset: 0;
  pointer-events: auto;
  background: transparent;
}

.proceedings-item {
  padding: 4px 0;
  display: block;
  border-bottom: 1px solid rgba(139, 148, 158, 0.2);
  transition: none;
}

.proceedings-item:last-child {
  border-bottom: none;
}

.proceedings-item:first-child {
  border-top: none;
}

.proceedings-item:hover {
  background: none;
  border-color: inherit;
}

.proceedings-timestamp {
  font-size: 9px;
  font-weight: 600;
  color: var(--accent-green);
  font-family: var(--font-mono);
  min-width: 60px;
  flex-shrink: 0;
}

.proceedings-text {
  font-size: 10px;
  color: var(--text-primary);
  line-height: 1.3;
  flex: 1;
  font-family: var(--font-mono);
}

.proceedings-time {
  font-size: 9px;
  font-weight: 600;
  color: var(--accent-green);
  font-family: var(--font-mono);
  letter-spacing: 0.5px;
  display: block;
  margin-bottom: 2px;
}

.proceedings-loading {
  text-align: center;
  padding: 24px;
  color: var(--text-muted);
  font-size: 12px;
}

.proceedings-error {
  text-align: center;
  padding: 24px;
  color: var(--accent-red);
  font-size: 12px;
}

.proceedings-date-source {
  text-align: right;
  padding: 8px 0 4px 0;
  color: var(--text-muted);
  font-size: 9px;
  font-family: var(--font-mono);
  letter-spacing: 0.5px;
  border-top: 1px solid rgba(139, 148, 158, 0.2);
  margin-top: 8px;
}

.proceedings-header-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.proceedings-source {
  font-size: 10px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.proceedings-source a {
  color: var(--accent-blue);
  text-decoration: none;
  transition: color 0.2s ease;
}

.proceedings-source a:hover {
  color: var(--accent-blue-hover);
  text-decoration: underline;
}

/* Absentee Panel */
.absentee-panel {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  overflow: hidden;
}

.absentee-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 24px;
  background: var(--bg-elevated);
  border-bottom: 1px solid var(--border-color);
}

.absentee-info {
    padding: 10px 24px;
    border-bottom: 1px solid var(--border-color);
    background: rgba(13, 17, 23, 0.28);
    color: var(--text-muted);
    font-size: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.absentee-explainer {
    color: var(--text-muted);
    font-size: 12px;
}

.absentee-roll-info {
    font-size: 10px;
    font-weight: 600;
    color: var(--text-secondary);
    font-family: var(--font-mono);
    text-transform: uppercase;
}

.absentee-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1px;
  color: var(--text-muted);
  text-transform: uppercase;
}

.absentee-count {
  font-size: 10px;
  font-weight: 500;
  color: var(--text-secondary);
  font-family: var(--font-mono);
  letter-spacing: 0.5px;
}

.absentee-content {
  padding: 16px 24px;
}

.absentee-metrics {
  display: flex;
  gap: 24px;
  margin-bottom: 16px;
}

.absentee-metric {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.absentee-metric .metric-label {
  font-size: 9px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.absentee-metric .metric-value {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  font-family: var(--font-mono);
}

.absentee-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px 8px;
  font-size: 10px;
  color: var(--text-secondary);
  line-height: 1.4;
}

.absentee-member {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 4px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.absentee-member:last-child {
  border-bottom: none;
}

.absentee-party {
  display: inline-block;
  padding: 2px 6px;
  border-radius: 3px;
  font-size: 8px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-right: 8px;
}

.absentee-party.rep {
  background: var(--accent-red);
  color: white;
}

.absentee-party.dem {
  background: var(--accent-blue);
  color: white;
}

.absentee-photo-wrap {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  position: relative;
  border-radius: 9px;
  overflow: hidden;
  border: 1px solid var(--border-color);
  background: rgba(136, 153, 170, 0.12);
}

.absentee-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: none;
}

.absentee-photo-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  font-weight: 700;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

.absentee-meta {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  flex-wrap: wrap;
}

.absentee-party-tag {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: 4px;
  font-family: var(--font-mono);
}

.absentee-party-tag.republican {
  background: rgba(249, 25, 28, 0.1);
  color: #f9251c;
}

.absentee-party-tag.democrat {
  background: rgba(88, 166, 255, 0.1);
  color: #58a6ff;
}

.absentee-party-tag.independent {
  background: rgba(163, 113, 247, 0.1);
  color: #a371f7;
}

.absentee-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
}

.absentee-state,
.absentee-vote {
  font-size: 11px;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

.absentee-casualty-status {
  font-size: 10px;
  font-weight: 500;
  color: var(--text-muted);
  font-family: var(--font-mono);
  letter-spacing: 0.02em;
  opacity: 0.75;
  white-space: nowrap;
}

.weather-attribution {
    font-size: 9px;
    font-weight: 500;
    color: var(--text-muted);
    font-family: var(--font-mono);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Bottom Ticker */
/* ── Committee Live Feeds ─────────────────────────────────────────── */
.committee-feeds-panel {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
}

.committee-feeds-live-count {
    font-size: 11px;
    font-weight: 600;
    color: var(--accent-blue);
    letter-spacing: 0.5px;
    margin-left: 8px;
}

.committee-feeds-grid {
    display: flex;
    gap: 10px;
    padding: 12px 16px 14px;
    overflow-x: auto;
    scrollbar-width: none;
}
.committee-feeds-grid::-webkit-scrollbar { display: none; }

.committee-feeds-empty {
    font-size: 12px;
    color: var(--text-muted);
    padding: 4px 0;
}

.committee-tile {
    position: relative;
    flex-shrink: 0;
    width: 160px;
    height: 90px;
    border-radius: 6px;
    overflow: hidden;
    background: var(--bg-elevated);
    border: 1px solid var(--border-color);
    cursor: pointer;
    transition: width 0.25s ease, height 0.25s ease, border-color 0.15s ease;
    scroll-snap-align: start;
}

.committee-tile:hover {
    width: 320px;
    height: 180px;
    border-color: var(--accent-blue);
    z-index: 10;
}

.committee-tile-thumb {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.2s ease;
}

.committee-tile:hover .committee-tile-thumb {
    opacity: 0;
    pointer-events: none;
}

.committee-tile iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.committee-tile-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px 8px 6px;
    background: linear-gradient(transparent, rgba(0,0,0,0.72));
    pointer-events: none;
    transition: opacity 0.2s ease;
}

.committee-tile:hover .committee-tile-overlay {
    opacity: 0;
}

.committee-tile-name {
    display: block;
    font-size: 11px;
    font-weight: 700;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    letter-spacing: 0.3px;
}

.committee-tile-meta {
    display: block;
    font-size: 10px;
    color: rgba(255,255,255,0.65);
    margin-top: 1px;
}

.committee-tile-live-dot {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 7px;
    height: 7px;
    background: #f04438;
    border-radius: 50%;
    box-shadow: 0 0 0 0 rgba(240,68,56,0.5);
    animation: tile-pulse 1.8s ease-out infinite;
}

@keyframes tile-pulse {
    0%   { box-shadow: 0 0 0 0 rgba(240,68,56,0.5); }
    70%  { box-shadow: 0 0 0 6px rgba(240,68,56,0); }
    100% { box-shadow: 0 0 0 0 rgba(240,68,56,0); }
}

/* ── end Committee Live Feeds ─────────────────────────────────────── */

.bottom-ticker {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 40px;
    background: rgba(10, 10, 15, 0.95);
    border-top: 2px solid var(--accent-orange);
    z-index: 1000;
    overflow: hidden;
    display: flex;
    align-items: center;
}

.bottom-ticker:hover .ticker-content {
    animation-play-state: paused !important;
}

.ticker-content {
    display: flex;
    white-space: nowrap;
    animation: scroll-left 2000s linear infinite; /* Tactical slow crawl */
    width: fit-content;
    will-change: transform;
}

.ticker-item {
    display: flex;
    align-items: center;
    padding: 0 40px;
    height: 100%;
    color: var(--text-primary);
    text-decoration: none;
    border-right: 1px solid rgba(255, 165, 0, 0.2);
}

.ticker-source {
    color: var(--accent-orange);
    font-weight: 800;
    font-size: 11px;
    letter-spacing: 1px;
    margin-right: 15px;
    padding: 2px 6px;
    border: 1px solid var(--accent-orange);
    line-height: 1;
}

.ticker-text {
    font-weight: 600;
    font-size: 13px;
    letter-spacing: 0.5px;
}

.ticker-time {
    color: var(--text-muted);
    font-size: 11px;
    margin-left: 15px;
    font-family: var(--font-mono);
}

@keyframes scroll-left {
    0% { transform: translateX(0); }
    100% { transform: translateX(-100%); }
}

/* Source Attribution Styles */
.proceedings-header-right,
.party-breakdown-header-right,
.absentee-header-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.proceedings-source,
.party-breakdown-source,
.absentee-source {
    font-size: 8px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    opacity: 0.8;
}

.proceedings-source a,
.party-breakdown-source a,
.absentee-source a {
    color: var(--accent-blue);
    text-decoration: none;
    opacity: 0.9;
    transition: opacity 0.2s ease;
}

.proceedings-source a:hover,
.party-breakdown-source a:hover,
.absentee-source a:hover {
    opacity: 1;
    text-decoration: underline;
}

.proceedings-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
}

.party-breakdown-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
}

.absentee-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
}

/* Party Breakdown Panel */
.party-breakdown-panel {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 8px;
}


.party-breakdown-header-left {
    display: flex;
    justify-content: flex-start;
}

.party-breakdown-header-center {
    display: flex;
    justify-content: center;
}

.party-breakdown-header-right {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 12px;
}

.majority-badge {
    font-family: var(--font-mono);
    font-size: 10px;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: 4px;
    letter-spacing: 0.1em;
    border: 1px solid transparent;
}

.majority-badge.r-control {
    background: rgba(248, 81, 73, 0.1);
    color: var(--accent-red);
    border-color: rgba(248, 81, 73, 0.3);
}

.majority-badge.d-control {
    background: rgba(88, 166, 255, 0.1);
    color: var(--accent-blue);
    border-color: rgba(88, 166, 255, 0.3);
}

.majority-badge.hidden {
    display: none;
}

/* Standardized Header Styles - Based on Threshold Analysis */
.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 32px;
    background: var(--bg-elevated);
    border-bottom: 1px solid var(--border-color);
    margin: 0;
    border-radius: 8px 8px 0 0;
    height: 52px;
    box-sizing: border-box;
}

.panel-header-left {
    display: flex;
    justify-content: flex-start;
}

.panel-header-right {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 12px;
}

.panel-label {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1px;
    color: var(--text-muted);
    text-transform: uppercase;
}

.panel-source {
    font-size: 8px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    opacity: 0.8;
}

.panel-source a {
    color: var(--accent-blue);
    text-decoration: none;
    opacity: 0.9;
    transition: opacity 0.2s ease;
}

.panel-source a:hover {
    opacity: 1;
    text-decoration: underline;
}

.party-breakdown-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.party-breakdown-time {
    font-size: 10px;
    font-weight: 500;
    color: var(--text-secondary);
    font-family: var(--font-mono);
}

.party-breakdown-indicator {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 10px;
    color: var(--accent-green);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.party-breakdown-indicator .indicator-dot {
    width: 6px;
    height: 6px;
    background: var(--accent-green);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

.party-breakdown-content {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 20px 24px;
}

.party-breakdown-metrics {
    display: flex;
    justify-content: space-between;
    gap: 16px;
}

.party-metric {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
}

.party-label {
    font-size: 10px;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.party-value {
    font-size: 20px;
    font-weight: 700;
    font-family: var(--font-mono);
}

.rep-metric .party-value {
    color: var(--accent-red);
}

.dem-metric .party-value {
    color: var(--accent-blue);
}

.total-metric .party-value {
    color: var(--text-primary);
}

.ind-metric .party-value {
    color: var(--accent-purple);
}

.party-breakdown-visual {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.party-bar {
    height: 10px;
    background: var(--bg-elevated);
    border-radius: 6px;
    overflow: visible;
    display: flex;
    gap: 0;
    position: relative;
}

.rep-fill {
    background: var(--accent-red);
    height: 100%;
    transition: width 0.3s ease, filter 0.2s ease, box-shadow 0.2s ease;
    border-top-left-radius: 6px;
    border-bottom-left-radius: 6px;
}

.rep-fill:hover {
    filter: brightness(1.3);
    box-shadow: 0 0 15px rgba(248, 81, 73, 0.5);
    z-index: 10;
}

.dem-fill {
    background: var(--accent-blue);
    height: 100%;
    transition: width 0.3s ease, filter 0.2s ease, box-shadow 0.2s ease;
}

.dem-fill:hover {
    filter: brightness(1.3);
    box-shadow: 0 0 15px rgba(88, 166, 255, 0.5);
    z-index: 10;
}

.ind-fill {
    background: var(--accent-purple);
    height: 100%;
    transition: width 0.3s ease, filter 0.2s ease, box-shadow 0.2s ease;
}

.ind-fill:hover {
    filter: brightness(1.3);
    box-shadow: 0 0 15px rgba(163, 113, 247, 0.5);
    z-index: 10;
}

.vac-fill {
    background: rgba(255, 255, 255, 0.3);
    height: 100%;
    transition: width 0.3s ease, filter 0.2s ease, box-shadow 0.2s ease;
    border-top-right-radius: 6px;
    border-bottom-right-radius: 6px;
}

.vac-fill:hover {
    filter: brightness(1.6);
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.3);
    z-index: 10;
}

/* Bills This Week Section */
.bills-section {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 16px;
}

.bills-raw-headers {
    padding: 8px 24px 0 24px;
    font-size: 10px;
    line-height: 1.4;
    color: var(--text-muted);
    font-family: var(--font-mono);
    opacity: 0.9;
}

.voting-calendar-panel {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    overflow: hidden;
    margin-bottom: 16px;
    padding-bottom: 0;
    box-shadow: 0 0 0 1px rgba(88, 166, 255, 0.05) inset;
}

.voting-calendar-panel .panel-header {
    margin: 0;
    border-radius: 14px 14px 0 0;
    background: #0b1322;
    border-bottom: 1px solid rgba(52, 72, 100, 0.8);
    padding: 16px 24px;
}

.voting-calendar-panel .panel-header-right {
    gap: 16px;
}

.voting-calendar-time {
    font-size: 10px;
    color: var(--text-muted);
    font-family: var(--font-mono);
}

.voting-calendar-wrap {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    padding: 10px 14px 14px;
    width: 100%;
    margin: 0;
    align-items: stretch;
    overflow: visible;
}

.voting-calendar-month {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 4px;
    width: 100%;
    max-width: 100%;
    min-height: 0;
    overflow: visible;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
}

.voting-calendar-month-center {
    background: rgba(88, 166, 255, 0.04);
    border-color: rgba(88, 166, 255, 0.25);
    box-shadow: 0 0 0 1px rgba(88, 166, 255, 0.08) inset;
}

.voting-calendar-month .fc {
    flex: 1;
    min-height: 0;
    height: auto;
    --fc-page-bg-color: transparent;
    --fc-border-color: var(--border-color);
    --fc-neutral-bg-color: transparent;
    --fc-today-bg-color: rgba(88, 166, 255, 0.08);
    --fc-event-bg-color: transparent;
    --fc-event-border-color: transparent;
    --fc-event-text-color: var(--text-primary);
    --fc-button-bg-color: var(--bg-elevated);
    --fc-button-border-color: var(--border-color);
    --fc-button-hover-bg-color: var(--bg-card);
    --fc-button-hover-border-color: var(--accent-blue);
    --fc-button-active-bg-color: var(--accent-blue);
    --fc-button-active-border-color: var(--accent-blue);
    color: var(--text-primary);
    font-family: var(--font-sans);
}

.voting-calendar-month .fc .fc-toolbar {
    margin: 0 0 -34px 0 !important;
    padding: 0 2px !important;
    min-height: 0;
}

.voting-calendar-month .fc .fc-toolbar-title {
    font-size: 7px !important;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.15;
    margin: 0 !important;
    padding: 0 !important;
}

.voting-calendar-month .fc .fc-col-header-cell-cushion,
.voting-calendar-month .fc .fc-col-header-cell-cushion {
    color: #ffffff !important;
    text-decoration: none;
    font-size: 7px !important;
    font-weight: 700;
    opacity: 1 !important;
}

.voting-calendar-month .fc .fc-daygrid-day-number {
    color: #d7dde5 !important;
    text-decoration: none;
    font-size: 7px !important;
    font-weight: 700;
    z-index: 2;
    position: relative;
    opacity: 1 !important;
    text-shadow: none !important;
}

.voting-calendar-month .fc .fc-daygrid-day-number a,
.voting-calendar-month .fc .fc-daygrid-day-top a {
    color: #d7dde5 !important;
    opacity: 1 !important;
    text-decoration: none !important;
}

.voting-calendar-month .fc .fc-daygrid-day-number,
.voting-calendar-month .fc .fc-daygrid-day-number a {
    display: inline-block;
    min-width: 12px;
    min-height: 12px;
}

.voting-calendar-month .fc .fc-col-header-cell {
    background: #1f2937 !important;
    border-color: rgba(255, 255, 255, 0.08) !important;
}

.voting-calendar-month .fc .fc-scrollgrid,
.voting-calendar-month .fc .fc-scrollgrid-section,
.voting-calendar-month .fc table,
.voting-calendar-month .fc .fc-scrollgrid-sync-table {
    background: rgba(255, 255, 255, 0.98) !important;
    overflow: visible;
}

.voting-calendar-month .fc .fc-daygrid-day-top {
    justify-content: flex-end;
    padding-top: 0 !important;
}

.voting-calendar-month .fc .fc-daygrid-body,
.voting-calendar-month .fc .fc-scrollgrid {
    min-height: 0;
}

.voting-calendar-month .fc .fc-daygrid-day {
    min-height: 0;
    background: rgba(255, 255, 255, 0.98) !important;
}

.voting-calendar-month .fc .fc-daygrid-day-frame {
    padding: 0 1px 1px 1px;
    min-height: 0;
    width: 100%;
    box-sizing: border-box;
    overflow: hidden;
    aspect-ratio: 1 / 1;
    position: relative;
}

.voting-calendar-month .fc .fc-daygrid-day-top,
.voting-calendar-month .fc .fc-daygrid-day-number {
    color: #d7dde5 !important;
}

.voting-calendar-month .fc .fc-theme-standard td,
.voting-calendar-month .fc .fc-theme-standard th {
    border-color: rgba(15, 23, 32, 0.10) !important;
}

.calendar-event-label {
    position: absolute;
    left: 50%;
    bottom: 2px;
    transform: translateX(-50%);
    font-size: 5px;
    line-height: 1;
    font-weight: 800;
    letter-spacing: 0.8px;
    color: rgba(230, 237, 243, 0.95);
    text-transform: uppercase;
    font-family: var(--font-mono);
    white-space: nowrap;
    z-index: 1;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.65);
    pointer-events: none;
}

.voting-calendar-month .fc .fc-daygrid-event {
    width: 100% !important;
    position: static !important;
}

.voting-calendar-month .fc .fc-daygrid-event-dot {
    display: none !important;
}

.voting-calendar-month .fc .fc-event-main {
    padding: 0 !important;
}

.voting-calendar-month .fc .fc-event-title,
.voting-calendar-month .fc .fc-event-time {
    display: none !important;
}

.voting-calendar-month .fc .fc-daygrid-event-harness {
    position: static !important;
    margin-top: 0 !important;
}

.voting-calendar-month .fc .fc-daygrid-day-events {
    position: static !important;
    min-height: 0;
}

.voting-calendar-month .fc .fc-daygrid-day-bottom {
    display: none !important;
}

.voting-calendar-month .fc .fc-daygrid-body table {
    table-layout: fixed !important;
}

.voting-calendar-month .fc .fc-daygrid-day-frame,
.voting-calendar-month .fc .fc-scrollgrid-sync-table td {
    aspect-ratio: 1 / 1;
}

.voting-calendar-month .fc .fc-daygrid-day {
    aspect-ratio: 1 / 1;
}


.bills-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.bills-header-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.bills-source {
    font-size: 10px;
    color: var(--text-muted);
}

.bills-source a {
    color: var(--accent-blue);
    text-decoration: none;
}

.bills-source a:hover {
text-decoration: underline;
}

.bills-last-update {
font-size: 10px;
font-weight: 500;
color: var(--text-secondary);
font-family: var(--font-mono);
}

.bills-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    padding: 10px 24px 20px;
}

.bills-column {
    display: flex;
    flex-direction: column;
}

.bills-column-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    background: var(--bg-elevated);
    border-radius: 6px;
    margin-bottom: 12px;
}

.bills-column-header-left {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.bills-column-header-sub {
    margin-top: 16px;
    margin-bottom: 12px;
}

.rule-tags-container {
    display: flex;
    align-items: center;
    gap: 5px;
    flex-wrap: wrap;
}

.bills-column-title {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.bills-sort-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 32px 0;
}
.bills-sort-label {
    font-size: 9px;
    font-weight: 600;
    font-family: var(--font-mono);
    color: var(--text-muted);
    letter-spacing: 0.8px;
    text-transform: uppercase;
    opacity: 0.6;
}
.bills-sort-switcher {
    display: flex;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-color);
    border-radius: 5px;
    padding: 2px;
    gap: 1px;
}
.bills-sort-btn {
    font-size: 9px;
    font-weight: 600;
    font-family: var(--font-mono);
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: var(--text-muted);
    background: none;
    border: none;
    border-radius: 3px;
    padding: 3px 9px;
    cursor: pointer;
    transition: color 0.15s ease, background 0.15s ease;
    line-height: 1.2;
    white-space: nowrap;
}
.bills-sort-btn:hover:not(.active) {
    color: var(--text-secondary);
    background: rgba(255, 255, 255, 0.04);
}
.bills-sort-btn.active {
    color: var(--accent-blue);
    background: rgba(88, 166, 255, 0.12);
}
.bill-modal-source-link {
    font-family: var(--font-mono);
    font-size: 10px;
    color: var(--text-muted);
    text-decoration: none;
    border-bottom: 1px dotted var(--text-muted);
    margin-left: 4px;
    opacity: 0.7;
    transition: opacity 0.15s;
}
.bill-modal-source-link:hover {
    opacity: 1;
    color: var(--text-secondary);
}

/* Section tag + ? wrapper */
.section-tag-wrap {
    display: flex;
    align-items: center;
    gap: 7px;
}

/* Info button & popup */
.info-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 15px;
    height: 15px;
    font-size: 9px;
    font-weight: 700;
    font-family: var(--font-mono);
    color: var(--text-muted);
    background: none;
    border: 1px solid var(--border-color);
    border-radius: 50%;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    opacity: 0.6;
    transition: opacity 0.15s, color 0.15s, border-color 0.15s;
    vertical-align: middle;
    margin-left: 6px;
    flex-shrink: 0;
}
.info-btn:hover {
    opacity: 1;
    color: var(--accent-blue);
    border-color: var(--accent-blue);
}
.info-popup-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1100;
    padding: 24px;
}
.info-popup-overlay[hidden] {
    display: none;
}
.info-popup {
    background: var(--bg-elevated);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    max-width: 520px;
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
    padding: 28px 28px 24px;
    position: relative;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.5);
}
.info-popup-close {
    position: absolute;
    top: 14px;
    right: 16px;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 14px;
    cursor: pointer;
    padding: 4px;
    line-height: 1;
    opacity: 0.6;
    transition: opacity 0.15s;
}
.info-popup-close:hover { opacity: 1; }
.info-popup-title {
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    color: var(--accent-blue);
    margin-bottom: 12px;
    padding-right: 24px;
}
.info-popup-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-bottom: 14px;
}
.info-popup-tag {
    font-family: var(--font-mono);
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: var(--text-secondary);
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border-color);
    border-radius: 3px;
    padding: 3px 7px;
    white-space: nowrap;
}
.info-popup-body {
    font-size: 13px;
    line-height: 1.65;
    color: var(--text-secondary);
}
.info-popup-body p {
    margin: 0 0 12px;
}
.info-popup-body p:last-child { margin-bottom: 0; }
.info-popup-source {
    margin-top: 18px;
    padding-top: 14px;
    border-top: 1px solid var(--border-color);
    font-family: var(--font-mono);
    font-size: 9px;
    letter-spacing: 0.4px;
    color: var(--text-muted);
    opacity: 0.7;
}
.info-popup-source a {
    color: inherit;
    text-decoration: underline;
}

.bills-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.bills-subsection {
    margin-top: 12px;
    border-top: 1px solid var(--border-color);
    padding-top: 10px;
}

.bills-subsection-label {
    display: block;
    font-size: 9px;
    font-weight: 700;
    font-family: var(--font-mono);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.bills-subsection-source-link {
    display: inline-block;
    font-size: 11px;
    color: var(--accent-blue);
    text-decoration: none;
}
.bills-subsection-source-link:hover { text-decoration: underline; }

.bill-card {
    background: var(--bg-elevated);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 8px;
    display: flex;
    align-items: flex-start;
    gap: 8px;
    transition: all 0.2s ease;
    cursor: pointer;
}

/* Rule cards are <a> tags — reset link styles */
a.bill-card-rule-link {
    text-decoration: none;
    color: inherit;
    display: flex;
}

.bills-list-rule-tags {
    margin-bottom: 4px;
}

.bill-card:hover {
    border-color: var(--accent-blue);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(88, 166, 255, 0.1);
}

.bill-chevron {
    color: var(--text-muted);
    font-size: 16px;
    line-height: 1;
    flex-shrink: 0;
    margin-top: 1px;
    transition: color 0.2s ease;
}

.bill-card:hover .bill-chevron {
    color: var(--accent-blue);
}

.bill-status {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 600;
    flex-shrink: 0;
    margin-top: 1px;
}

.bill-status.pending,
.bill-status.scheduled {
    background: rgba(100, 116, 139, 0.1);
    color: var(--text-secondary);
    border: 1px solid rgba(100, 116, 139, 0.3);
}

.bill-status.passed {
    background: rgba(46, 160, 67, 0.1);
    color: var(--accent-green);
    border: 1px solid rgba(46, 160, 67, 0.3);
}

.bill-status.failed {
    background: rgba(248, 81, 73, 0.1);
    color: var(--accent-red);
    border: 1px solid rgba(248, 81, 73, 0.3);
}

.bill-status.roll-call {
    background: rgba(255, 193, 7, 0.1);
    color: var(--accent-amber);
    border: 1px solid rgba(255, 193, 7, 0.3);
}

.bill-info {
    flex: 1;
    min-width: 0;
}

.bill-id-row {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 2px;
    flex-wrap: wrap;
}

.bill-id {
    font-size: 10px;
    font-weight: 600;
    color: var(--text-primary);
    font-family: var(--font-mono);
    margin-bottom: 2px;
}

.bill-rule-tag {
    display: inline-flex;
    align-items: center;
    font-family: var(--font-mono);
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 0.3px;
    padding: 1px 6px;
    border-radius: 3px;
    border: 1px solid;
    text-decoration: none;
    white-space: nowrap;
    transition: opacity 0.15s;
    line-height: 1.6;
}
.bill-rule-tag:hover { opacity: 0.75; }

.bill-rule-tag-modal {
    font-size: 9px;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    line-height: 1.5;
}

.bill-rule-tag.rule-tag-passed {
    color: #3fb950;
    border-color: rgba(63, 185, 80, 0.4);
    background: rgba(63, 185, 80, 0.08);
}
.bill-rule-tag.rule-tag-reported {
    color: #e3b341;
    border-color: rgba(227, 179, 65, 0.4);
    background: rgba(227, 179, 65, 0.08);
}
.bill-rule-tag.rule-tag-unknown {
    color: var(--text-muted);
    border-color: var(--border-color);
    background: none;
}

.bill-title {
    font-size: 11px;
    color: var(--text-secondary);
    line-height: 1.3;
    margin-bottom: 4px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}


.bill-meta {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 9px;
    color: var(--text-muted);
}

.bill-action {
    color: var(--accent-blue);
}

.bill-date {
    font-family: var(--font-mono);
}

.considered-indicator {
    color: var(--accent-amber);
    border: 1px solid rgba(210, 153, 34, 0.3);
    background: rgba(210, 153, 34, 0.08);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.4px;
    font-family: var(--font-mono);
}

.no-bills {
    text-align: center;
    padding: 16px;
    color: var(--text-muted);
    font-size: 11px;
}

/* Bill Modal */
.bill-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    backdrop-filter: blur(2px);
}

.bill-modal-overlay[hidden] {
    display: none;
}

.bill-modal {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    max-width: 720px;
    width: 100%;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
}

.bill-modal-top {
    flex-shrink: 0;
    padding: 20px 24px 16px;
}

.bill-modal-sections {
    padding: 8px 24px 4px;
}

.bill-modal-body {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    padding: 12px 24px 16px;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.bill-modal-foot {
    padding: 14px 24px 20px;
}

.bill-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: none;
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    width: 28px;
    height: 28px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s ease;
}

.bill-modal-close:hover {
    border-color: var(--accent-red);
    color: var(--accent-red);
}

.bill-modal-header {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 12px;
    padding-right: 36px;
}

.bill-modal-id {
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 700;
    color: var(--text-primary);
}

.bill-modal-badge {
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.6px;
    padding: 2px 7px;
    border-radius: 4px;
    font-family: var(--font-mono);
    text-transform: uppercase;
}

.bill-modal-badge.scheduled,
.bill-modal-badge.pending {
    background: rgba(100, 116, 139, 0.15);
    color: var(--text-secondary);
    border: 1px solid rgba(100, 116, 139, 0.3);
}

.bill-modal-badge.passed {
    background: rgba(46, 160, 67, 0.15);
    color: var(--accent-green);
    border: 1px solid rgba(46, 160, 67, 0.3);
}

.bill-modal-badge.failed {
    background: rgba(248, 81, 73, 0.15);
    color: var(--accent-red);
    border: 1px solid rgba(248, 81, 73, 0.3);
}

.bill-modal-badge.roll-call {
    background: rgba(255, 193, 7, 0.15);
    color: var(--accent-amber);
    border: 1px solid rgba(255, 193, 7, 0.3);
}

.bill-modal-badge.rule {
    background: rgba(88, 166, 255, 0.1);
    color: var(--accent-blue);
    border: 1px solid rgba(88, 166, 255, 0.2);
}

.bill-modal-badge.suspension {
    background: rgba(255, 193, 7, 0.12);
    color: var(--accent-amber);
    border: 1px solid rgba(255, 193, 7, 0.3);
}

.bill-modal-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.4;
    margin: 0 0 14px;
}

.bill-modal-section {
    margin-bottom: 12px;
}

.bill-modal-section-label {
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 1px;
    color: var(--text-muted);
    text-transform: uppercase;
    margin-bottom: 6px;
    font-family: var(--font-mono);
}

.bill-modal-summary {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
}

.bill-modal-action {
    font-size: 12px;
    color: var(--text-secondary);
    line-height: 1.4;
}

.bill-modal-date {
    color: var(--text-muted);
    font-family: var(--font-mono);
    font-size: 11px;
}

.bill-modal-link {
    display: inline-block;
    margin-top: 8px;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    padding: 6px 12px;
    border-radius: 6px;
    transition: all 0.15s ease;
}

.bill-modal-link.rule {
    color: var(--accent-blue);
    border: 1px solid rgba(88, 166, 255, 0.3);
}

.bill-modal-link.rule:hover {
    background: rgba(88, 166, 255, 0.1);
    border-color: var(--accent-blue);
}

.bill-modal-link.suspension {
    color: var(--accent-amber);
    border: 1px solid rgba(255, 193, 7, 0.3);
}

.bill-modal-link.suspension:hover {
    background: rgba(255, 193, 7, 0.1);
    border-color: var(--accent-amber);
}

.bill-modal-support-bar {
    height: 8px;
    border-radius: 4px;
    overflow: hidden;
    display: flex;
    background: var(--bg-elevated);
    margin-bottom: 6px;
}

.bill-modal-support-fill {
    height: 100%;
    transition: width 0.3s ease, filter 0.2s ease, box-shadow 0.2s ease;
}

.bill-modal-support-fill.rep { background: var(--accent-red); }
.bill-modal-support-fill.dem { background: var(--accent-blue); }
.bill-modal-support-fill.ind { background: #a371f7; }

.bill-modal-support-fill.rep:hover {
    filter: brightness(1.3);
    box-shadow: 0 0 10px rgba(248, 81, 73, 0.5);
}
.bill-modal-support-fill.dem:hover {
    filter: brightness(1.3);
    box-shadow: 0 0 10px rgba(88, 166, 255, 0.5);
}
.bill-modal-support-fill.ind:hover {
    filter: brightness(1.3);
    box-shadow: 0 0 10px rgba(163, 113, 247, 0.5);
}

.bill-modal-support-labels {
    display: flex;
    gap: 10px;
}

.bill-modal-support-count {
    font-size: 10px;
    font-weight: 700;
    font-family: var(--font-mono);
}

.bill-modal-support-count.rep { color: var(--accent-red); }
.bill-modal-support-count.dem { color: var(--accent-blue); }
.bill-modal-support-count.ind { color: #a371f7; }

.bill-modal-committees {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.bill-modal-committee {
    font-size: 11px;
    color: var(--text-secondary);
    background: var(--bg-elevated);
    border: 1px solid var(--border-color);
    padding: 3px 8px;
    border-radius: 4px;
}

/* Amendments side panel */
.bill-modal-overlay.has-amendments {
    align-items: flex-start;
    padding: 32px 16px;
    gap: 10px;
    overflow-y: auto;
}

.bill-panel-nav {
    display: none;
}

.bill-amendments-panel {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    max-width: 720px;
    width: 100%;
    flex-shrink: 0;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.bill-amendments-panel-header {
    flex-shrink: 0;
    padding: 14px 18px 12px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.bill-amendments-panel-title {
    font-size: 10px;
    font-weight: 700;
    font-family: var(--font-mono);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.bill-amendments-panel-body {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
}

/* Narrow: one panel at a time with nav */
@media (max-width: 1060px) {
    .bill-modal-overlay.has-amendments {
        flex-direction: column;
        align-items: center;
        padding: 16px;
        gap: 0;
    }
    .bill-panel-nav {
        display: flex;
        width: 100%;
        max-width: 720px;
        background: var(--bg-elevated);
        border: 1px solid var(--border-color);
        border-radius: 10px 10px 0 0;
        overflow: hidden;
        flex-shrink: 0;
    }
    .bill-panel-nav-btn {
        flex: 1;
        background: none;
        border: none;
        padding: 10px 16px;
        font-size: 11px;
        font-weight: 600;
        font-family: var(--font-mono);
        letter-spacing: 0.06em;
        text-transform: uppercase;
        color: var(--text-muted);
        cursor: pointer;
        transition: color 0.15s, background 0.15s;
    }
    .bill-panel-nav-btn.is-active {
        color: var(--text-primary);
        background: var(--bg-card);
    }
    .bill-panel-nav-btn:not(:last-child) {
        border-right: 1px solid var(--border-color);
    }
    .bill-modal-overlay.has-amendments .bill-modal,
    .bill-modal-overlay.has-amendments .bill-amendments-panel {
        display: none;
        width: 100%;
        max-width: 720px;
        border-radius: 0 0 10px 10px;
        max-height: 75vh;
    }
    .bill-modal-overlay.has-amendments .bill-modal.panel-visible,
    .bill-modal-overlay.has-amendments .bill-amendments-panel.panel-visible {
        display: flex;
    }
}

.bill-amendments-empty {
    color: var(--text-muted);
    font-size: 12px;
    padding: 24px;
    text-align: center;
}

.amendments-table {
    width: 100%;
    table-layout: fixed;
    border-collapse: collapse;
    font-size: 12px;
}

.amendments-table thead th {
    text-align: left;
    font-size: 10px;
    font-weight: 600;
    font-family: var(--font-mono);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-muted);
    padding: 6px 10px 8px;
    border-bottom: 1px solid var(--border-color);
    white-space: nowrap;
    position: sticky;
    top: 0;
    background: var(--bg-card);
    overflow: hidden;
}

.amendments-table th:nth-child(1) { width: 30px; }
.amendments-table th:nth-child(2) { width: 28%; }
.amendments-table th:nth-child(3) { width: auto; }
.amendments-table th:nth-child(4) { width: 90px; }

.amendments-table tbody tr {
    border-bottom: 1px solid rgba(255,255,255,0.04);
}
.amendments-table tbody tr:hover { background: rgba(255,255,255,0.03); }
.amendments-table tbody tr:last-child { border-bottom: none; }

.amendments-table td {
    padding: 8px 10px;
    vertical-align: top;
    color: var(--text-secondary);
    overflow-wrap: break-word;
    word-break: break-word;
}

.amdt-num {
    color: var(--text-muted);
    font-family: var(--font-mono);
    font-size: 11px;
    width: 28px;
    text-align: center;
}

.amdt-sponsors {
    display: flex;
    align-items: flex-start;
    gap: 7px;
}

.amdt-sponsor-list {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.amdt-sponsor-chip {
    display: flex;
    align-items: center;
    gap: 5px;
}

.amdt-sponsor-photo-wrap {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    background: rgba(136, 153, 170, 0.12);
    position: relative;
}

.amdt-sponsor-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.amdt-sponsor-photo-link {
    flex-shrink: 0;
    display: block;
    border-radius: 6px;
    overflow: hidden;
}

.amdt-sponsor-name {
    font-size: 11px;
    line-height: 1.3;
    display: flex;
    align-items: center;
    gap: 4px;
    flex-wrap: wrap;
}

.amdt-sponsor-party-tag {
    font-size: 9px;
    font-weight: 700;
    font-family: var(--font-mono);
    padding: 1px 4px;
    border-radius: 3px;
    flex-shrink: 0;
}
.amdt-sponsor-party-tag.rep { background: rgba(249,25,28,0.1); color: #f9251c; }
.amdt-sponsor-party-tag.dem { background: rgba(88,166,255,0.1); color: #58a6ff; }
.amdt-sponsor-party-tag.ind { background: rgba(163,113,247,0.1); color: #a371f7; }

.amdt-sponsor-dist {
    color: var(--text-muted);
    font-size: 10px;
    font-family: var(--font-mono);
}

.amdt-party {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    flex-shrink: 0;
    margin-top: 5px;
}
.amdt-party.rep { background: var(--accent-red); }
.amdt-party.dem { background: var(--accent-blue); }
.amdt-party.ind { background: #a371f7; }

.amdt-sponsor-link {
    color: var(--text-secondary);
    text-decoration: underline;
    text-underline-offset: 2px;
    text-decoration-color: var(--border-color);
}
.amdt-sponsor-link:hover { color: var(--text-primary); }

.amdt-summary { line-height: 1.5; }

.amdt-status-badge {
    font-size: 9px;
    font-weight: 600;
    font-family: var(--font-mono);
    letter-spacing: 0.05em;
    text-transform: uppercase;
    padding: 2px 6px;
    border-radius: 3px;
    border: 1px solid;
    white-space: nowrap;
}
.amdt-status-badge.submitted { color: var(--text-muted); border-color: var(--border-color); }
.amdt-status-badge.adopted { color: #3fb950; border-color: rgba(63,185,80,0.4); background: rgba(63,185,80,0.08); }
.amdt-status-badge.failed { color: var(--accent-red); border-color: rgba(248,81,73,0.4); background: rgba(248,81,73,0.08); }

/* Congress Info Display */
.congress-info {
    background: var(--bg-elevated);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 8px 16px;
    margin-bottom: 16px;
    text-align: center;
}

.congress-text {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-primary);
    font-family: var(--font-mono);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Airport Delays Panel */
.airport-delays-panel {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 16px;
}

.airport-delays-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 24px;
    background: var(--bg-elevated);
    border-bottom: 1px solid var(--border-color);
    margin: 0;
}

.airport-delays-content {
    padding: 16px 24px;
}

.airport-delays-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.airport-delays-source {
    font-size: 10px;
    font-weight: 500;
    color: var(--text-muted);
}

.airport-delays-source a {
    color: var(--accent-blue);
    text-decoration: none;
}

.airport-delays-source a:hover {
    text-decoration: underline;
}

.airport-delays-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.airport-delay-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    background: var(--bg-elevated);
    border-radius: 6px;
    border: 1px solid var(--border-color);
}

.airport-delay-item-link {
    text-decoration: none;
    color: inherit;
    display: block;
    transition: opacity 0.2s ease;
}

.airport-delay-item-link:hover {
    opacity: 0.5;
}

.airport-code {
    font-size: 12px;
    font-weight: 700;
    color: var(--text-primary);
    font-family: var(--font-mono);
    min-width: 40px;
}

.airport-status {
    font-size: 10px;
    font-weight: 500;
    padding: 2px 8px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.airport-status.normal {
    background: rgba(34, 197, 94, 0.2);
    color: var(--accent-green);
}

.airport-status.delay {
    background: rgba(248, 81, 73, 0.2);
    color: var(--accent-red);
}

.airport-status.loading {
    background: rgba(210, 153, 34, 0.2);
    color: var(--accent-amber);
}

.airport-status.disconnected {
    background: rgba(139, 148, 158, 0.2);
    color: var(--text-secondary);
}

/* Vacancies Section */
.vacancies-section {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--border-color);
}

.vacancies-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.vacancies-label {
    font-size: 10px;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.vacancies-count {
    font-size: 10px;
    font-weight: 700;
    color: var(--accent-amber);
    font-family: var(--font-mono);
}

.vacancies-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.vacancy-item {
    display: grid;
    grid-template-columns: 80px 60px 1fr 100px;
    gap: 8px;
    align-items: center;
    padding: 4px 0;
}

.vacancy-tag {
    font-size: 8px;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 3px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    justify-self: start;
}

.tag-death {
    background: rgba(248, 81, 73, 0.2);
    color: var(--accent-red);
}

.tag-resignation {
    background: rgba(210, 153, 34, 0.2);
    color: var(--accent-amber);
}

.vacancy-date {
    font-size: 8px;
    color: var(--text-muted);
    font-family: var(--font-mono);
    justify-self: end;
    min-width: 100px;
    text-align: right;
}

.vacancy-member {
    font-size: 8px;
    color: var(--text-primary);
    font-weight: 500;
    justify-self: start;
}

.vacancy-district {
    font-size: 8px;
    color: var(--text-secondary);
    font-family: var(--font-mono);
    justify-self: start;
    min-width: 60px;
}

.no-vacancies {
    font-size: 8px;
    color: var(--text-muted);
    font-style: italic;
    text-align: center;
    padding: 8px 0;
}


.vote-counts-row {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    align-items: center;
    gap: 40px;
    justify-content: center;
    width: 100%;
    max-width: 800px;
}

/* Integrated Timer Display */
.vote-timer {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
    margin-top: 12px;
    max-width: 300px;
    margin-left: auto;
    margin-right: auto;
}

.vote-timer-body {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1.1;
    margin-left: 10px;
}

.vote-timer-label {
    font-size: 10px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-family: var(--font-mono);
}

.vote-timer-value {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    font-family: var(--font-mono);
    letter-spacing: 0.5px;
    font-variant-numeric: tabular-nums; /* prevent layout shift as digits change */
}

.vote-timer-start {
    margin-top: 2px;
    font-size: 9px;
    font-weight: 500;
    color: var(--text-muted);
    font-family: var(--font-mono);
    letter-spacing: 0.4px;
    text-transform: uppercase;
    opacity: 0.8;
}

.vote-timer-value.active {
    color: var(--accent-green);
}

.vote-timer-value.warning {
    color: var(--accent-amber);
}

.vote-timer-value.expired {
    color: var(--accent-red);
}

.vote-timer-value.overtime {
    color: var(--accent-red);
}

/* Responsive */
@media (max-width: 768px) {
    .container {
        padding: 16px;
    }

    .top-bar {
        flex-direction: column;
        gap: 12px;
        align-items: flex-start;
    }

    .top-bar-right {
        width: 100%;
        justify-content: space-between;
    }

    .vote-header {
        flex-direction: column;
    }

    .vote-display {
        grid-template-columns: 1fr;
        gap: 24px;
        padding: 24px;
    }

    .vote-divider {
        display: none;
    }

    .count-number {
        font-size: 48px;
    }

    .projection-details {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .threshold-grid {
        grid-template-columns: 1fr 1fr;
    }

    .main-display {
        padding: 0;
    }

    .footer-sources {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-bottom {
        flex-direction: column;
        gap: 4px;
        align-items: flex-start;
    }

    .bill-modal {
        max-width: 100%;
        max-height: 92vh;
        border-radius: 8px;
    }

    .bill-modal-overlay {
        padding: 16px;
    }
}

/* Recess Mode — hide vote panels (YouTube panel stays visible for active streams) */
body.recess-mode .vote-display,
body.recess-mode .progress-section,
body.recess-mode .vote-header,
body.recess-mode .threshold-panel,
body.recess-mode .quorum-panel,
body.recess-mode .floor-grid-panel {
    display: none !important;
}

/* Debate Mode */
body.debate-mode .vote-display,
body.debate-mode .progress-section,
body.debate-mode .vote-header,
body.debate-mode .threshold-panel,
body.debate-mode .quorum-panel,
body.debate-mode .floor-grid-panel {
    display: none !important;
}

/* Debate Section */
.debate-section {
    display: none;
    padding: 24px 0;
    margin-bottom: 24px;
}

body.debate-mode .debate-section {
    display: block;
}

/* Debate section panel nav (Bill Details ↔ Amendments toggle) */
.debate-section .bill-panel-nav {
    display: flex;
    width: 100%;
    background: var(--bg-elevated);
    border: 1px solid var(--border-color);
    border-radius: 8px 8px 0 0;
    overflow: hidden;
    flex-shrink: 0;
    margin-bottom: 0;
}

.debate-section .bill-panel-nav + .debate-content,
.debate-section .bill-panel-nav + * {
    border-radius: 0 0 8px 8px;
}

.debate-section .bill-panel-nav-btn {
    flex: 1;
    background: none;
    border: none;
    padding: 10px 16px;
    font-size: 11px;
    font-weight: 600;
    font-family: var(--font-mono);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-muted);
    cursor: pointer;
    transition: color 0.15s, background 0.15s;
}

.debate-section .bill-panel-nav-btn.is-active {
    color: var(--text-primary);
    background: var(--bg-card);
}

.debate-section .bill-panel-nav-btn:not(:last-child) {
    border-right: 1px solid var(--border-color);
}

.debate-tags-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
}

.debate-tag {
    display: inline-flex;
    align-items: center;
    background: var(--accent-blue);
    color: white;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-family: var(--font-mono);
}

.debate-tag-text {
    white-space: nowrap;
}

.debate-tag-time {
    font-size: 10px;
    margin-left: 8px;
    opacity: 0.85;
    font-weight: 400;
    white-space: nowrap;
}

.debate-amendments-count {
    margin-left: 6px;
    font-size: 10px;
    opacity: 0.7;
    font-weight: 400;
}

/* Rule tag sized to match debate row tags */
.debate-section .bill-rule-tag {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.5px;
    padding: 5px 10px;
    border-radius: 4px;
    color: var(--text-secondary);
    border-color: var(--border-color);
    background: transparent;
    text-transform: uppercase;
}
.debate-section .bill-rule-tag:hover { opacity: 0.75; }

.debate-length-tag {
    display: inline-flex;
    align-items: center;
    background: transparent;
    color: var(--text-secondary);
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-family: var(--font-mono);
    border: 1px solid var(--border-color);
}

.debate-content {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 24px;
}

/* When nav is shown above content, flatten top corners and merge borders */
.debate-section .bill-panel-nav[style*="flex"] + .debate-content {
    border-top: none;
    border-radius: 0 0 8px 8px;
}

.debate-bill-header {
    margin-bottom: 8px;
}

.debate-bill-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 20px 0;
    line-height: 1.3;
}

.debate-bill-id {
    font-family: var(--font-mono);
    font-size: 13px;
    color: var(--accent-blue);
    font-weight: 600;
}

.debate-bill-description {
    font-size: 13px;
    line-height: 1.6;
    color: var(--text-secondary);
    margin: 0;
}

/* Prayer Section */
/* One Minute Speeches */
.one-minute-section {
    display: none;
    padding: 24px 0;
    margin-bottom: 24px;
}

body.one-minute-mode .one-minute-section {
    display: block;
}

body.one-minute-mode .vote-display,
body.one-minute-mode .progress-section,
body.one-minute-mode .vote-header,
body.one-minute-mode .threshold-panel,
body.one-minute-mode .quorum-panel,
body.one-minute-mode .floor-grid-panel {
    display: none !important;
}

.one-minute-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.one-minute-tag {
    display: inline-flex;
    align-items: center;
    background: #92400e;
    color: white;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-family: var(--font-mono);
}

.one-minute-tag-time {
    font-size: 10px;
    margin-left: 8px;
    opacity: 0.9;
    font-weight: 400;
}

.one-minute-header-right {
    display: flex;
    justify-content: flex-end;
}

.one-minute-source {
    font-size: 11px;
    color: var(--text-muted);
}

.one-minute-source a {
    color: var(--accent-blue);
    text-decoration: none;
}

.one-minute-content {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.one-minute-description-line {
    font-size: 15px;
    font-style: italic;
    color: var(--text-primary);
    line-height: 1.6;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-color);
}

.one-minute-explainer {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.7;
    margin: 0;
}

.one-minute-tags-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.one-minute-pill {
    font-size: 11px;
    font-weight: 600;
    font-family: var(--font-mono);
    padding: 4px 10px;
    border-radius: 12px;
    background: rgba(180, 83, 9, 0.12);
    border: 1px solid rgba(180, 83, 9, 0.35);
    color: #d97706;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

/* Special Order Speeches */
.special-order-section {
    display: none;
    padding: 24px 0;
    margin-bottom: 24px;
}

body.special-order-mode .special-order-section {
    display: block;
}

body.special-order-mode .vote-display,
body.special-order-mode .progress-section,
body.special-order-mode .vote-header,
body.special-order-mode .threshold-panel,
body.special-order-mode .quorum-panel,
body.special-order-mode .floor-grid-panel {
    display: none !important;
}

.special-order-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.special-order-tag {
    display: inline-flex;
    align-items: center;
    background: #1e3a5f;
    color: white;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-family: var(--font-mono);
}

.special-order-tag-time {
    font-size: 10px;
    margin-left: 8px;
    opacity: 0.9;
    font-weight: 400;
}

.special-order-header-right {
    display: flex;
    justify-content: flex-end;
}

.special-order-source {
    font-size: 11px;
    color: var(--text-muted);
}

.special-order-source a {
    color: var(--accent-blue);
    text-decoration: none;
}

.special-order-content {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.special-order-description-line {
    font-size: 15px;
    font-style: italic;
    color: var(--text-primary);
    line-height: 1.6;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-color);
}

.special-order-explainer {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.7;
    margin: 0;
}

.special-order-tags-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.special-order-pill {
    font-size: 11px;
    font-weight: 600;
    font-family: var(--font-mono);
    padding: 4px 10px;
    border-radius: 12px;
    background: rgba(30, 58, 95, 0.15);
    border: 1px solid rgba(56, 108, 176, 0.35);
    color: #58a6ff;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

/* Morning-Hour Debate */
.morning-hour-section {
    display: none;
    padding: 24px 0;
    margin-bottom: 24px;
}

body.morning-hour-mode .morning-hour-section {
    display: block;
}

body.morning-hour-mode .vote-display,
body.morning-hour-mode .progress-section,
body.morning-hour-mode .vote-header,
body.morning-hour-mode .threshold-panel,
body.morning-hour-mode .quorum-panel,
body.morning-hour-mode .floor-grid-panel {
    display: none !important;
}

.morning-hour-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.morning-hour-tag {
    display: inline-flex;
    align-items: center;
    background: #1b6b3a;
    color: white;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-family: var(--font-mono);
}

.morning-hour-tag-time {
    font-size: 10px;
    margin-left: 8px;
    opacity: 0.9;
    font-weight: 400;
}

.morning-hour-header-right {
    display: flex;
    justify-content: flex-end;
}

.morning-hour-source {
    font-size: 11px;
    color: var(--text-muted);
}

.morning-hour-source a {
    color: var(--accent-blue);
    text-decoration: none;
}

.morning-hour-content {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.morning-hour-description-line {
    font-size: 15px;
    font-style: italic;
    color: var(--text-primary);
    line-height: 1.6;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-color);
}

.morning-hour-tags-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.morning-hour-pill {
    font-size: 11px;
    font-weight: 600;
    font-family: var(--font-mono);
    padding: 4px 10px;
    border-radius: 12px;
    background: rgba(46, 160, 67, 0.12);
    border: 1px solid rgba(46, 160, 67, 0.35);
    color: #3fb950;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.morning-hour-explainer {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.7;
    margin: 0;
}

.speech-mode-ai-note {
    font-size: 11px;
    color: var(--text-muted);
    opacity: 0.6;
}

.speech-mode-ai-note a {
    color: inherit;
    text-decoration: underline;
    text-decoration-color: transparent;
}

.speech-mode-ai-note a:hover {
    text-decoration-color: currentColor;
}

.prayer-section {
    display: none;
    padding: 24px 0;
    margin-bottom: 24px;
}

body.prayer-mode .prayer-section {
    display: block;
}

.silence-section {
    display: none;
    padding: 24px 0;
    margin-bottom: 24px;
}

body.silence-mode .silence-section {
    display: block;
}

.oath-section {
    display: none;
    padding: 24px 0;
    margin-bottom: 24px;
}

body.oath-mode .oath-section {
    display: block;
}

.speaker-section {
    display: none;
    padding: 24px 0;
    margin-bottom: 24px;
}

body.speaker-mode .speaker-section {
    display: block;
}

/* ── Committee Chair Mode ─────────────────────────── */
.committee-chair-section {
    display: none;
    padding: 24px 0;
    margin-bottom: 24px;
}

body.committee-chair-mode .committee-chair-section {
    display: block;
}

.committee-chair-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.committee-chair-tag {
    display: inline-flex;
    align-items: center;
    background: var(--accent-blue);
    color: white;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-family: var(--font-mono);
}

.committee-chair-tag-time {
    font-size: 10px;
    margin-left: 8px;
    opacity: 0.9;
    font-weight: 400;
}

.committee-chair-header-right {
    display: flex;
    justify-content: flex-end;
}

.committee-chair-source {
    font-size: 10px;
    color: var(--text-muted);
    font-family: var(--font-mono);
}

.committee-chair-source a {
    color: var(--accent-blue);
    text-decoration: none;
}

.committee-chair-source a:hover {
    text-decoration: underline;
}

.committee-chair-subtitle {
    font-family: var(--font-mono);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.6px;
    color: var(--text-muted);
    text-transform: uppercase;
    margin-bottom: 14px;
    opacity: 0.8;
}

.committee-chair-content {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 24px;
    display: flex;
    gap: 24px;
}

.committee-chair-image-container {
    flex-shrink: 0;
    width: 150px;
    height: 150px;
    position: relative;
}

.committee-chair-image,
.committee-chair-image-placeholder {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
}

.committee-chair-image {
    width: 100%; height: 100%;
    object-fit: cover;
    border-radius: 12px;
    display: none;
    border: 2px solid var(--border-color);
}

.committee-chair-image[src] { display: block; }

.committee-chair-image-placeholder {
    background: rgba(136, 153, 170, 0.1);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: var(--text-muted);
}

.committee-chair-info { flex: 1; }

.committee-chair-member-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 4px;
}

.committee-chair-member-name {
    font-size: 14px;
    color: var(--text-secondary);
    margin: 0 0 8px;
}

.committee-chair-member-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
}

.committee-chair-member-additional {
    font-size: 12px;
    color: var(--text-muted);
    margin: 0 0 8px;
}

.committee-chair-member-website {
    font-size: 11px;
    color: var(--accent-blue);
    text-decoration: none;
    font-family: var(--font-mono);
}

.committee-chair-member-website:hover { text-decoration: underline; }

.prayer-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.prayer-tag {
    display: inline-flex;
    align-items: center;
    background: var(--accent-purple);
    color: white;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-family: var(--font-mono);
}

.prayer-tag-time {
    font-size: 10px;
    margin-left: 8px;
    opacity: 0.9;
    font-weight: 400;
}

.prayer-header-right {
    display: flex;
    justify-content: flex-end;
}

.prayer-source {
    font-size: 10px;
    color: var(--text-muted);
    font-family: var(--font-mono);
}

.prayer-source a {
    color: var(--accent-blue);
    text-decoration: none;
}

.prayer-source a:hover {
    text-decoration: underline;
}

.silence-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.silence-tag {
    display: inline-flex;
    align-items: center;
    background: #8b949e;
    color: white;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-family: var(--font-mono);
}

.silence-tag-time {
    font-size: 10px;
    margin-left: 8px;
    opacity: 0.9;
    font-weight: 400;
}

.silence-header-right {
    display: flex;
    justify-content: flex-end;
}

.silence-source {
    font-size: 10px;
    color: var(--text-muted);
    font-family: var(--font-mono);
}

.silence-source a {
    color: var(--accent-blue);
    text-decoration: none;
}

.silence-source a:hover {
    text-decoration: underline;
}

.silence-content {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 24px;
}

.silence-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 8px 0;
}

.silence-description {
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-secondary);
    margin: 0;
}

.prayer-content {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 24px;
    display: flex;
    gap: 24px;
}

.prayer-image-container {
    flex-shrink: 0;
    width: 150px;
    height: 150px;
    position: relative;
}

.prayer-image,
.prayer-image-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.prayer-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
    display: none;
    border: 2px solid var(--border-color);
}

.prayer-image[src] {
    display: block;
}

.prayer-image-placeholder {
    width: 100%;
    height: 100%;
    background: rgba(136, 153, 170, 0.1);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: var(--text-muted);
}

.placeholder-svg {
    width: 64px;
    height: 64px;
    opacity: 0.5;
}

.placeholder-text {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    font-family: var(--font-mono);
    opacity: 0.7;
}

.prayer-info {
    flex: 1;
}

.prayer-leader-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 8px 0;
}

.prayer-leader-name {
    font-size: 16px;
    font-weight: 600;
    color: var(--accent-blue);
    margin: 0 0 12px 0;
}

.prayer-leader-description {
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-secondary);
    margin: 0;
}

.prayer-leader-website {
    display: inline-block;
    font-size: 12px;
    color: var(--accent-blue);
    font-family: var(--font-mono);
    text-decoration: none;
    margin-top: 4px;
    word-break: break-all;
}

.prayer-leader-website:hover {
    text-decoration: underline;
}

.prayer-source {
    font-size: 10px;
    color: var(--text-muted);
    font-family: var(--font-mono);
}

.prayer-source a {
    color: var(--accent-blue);
    text-decoration: none;
}

.prayer-source a:hover {
    text-decoration: underline;
}

/* Pledge Section */
.pledge-section {
    display: none;
    padding: 24px 0;
    margin-bottom: 24px;
}

body.pledge-mode .pledge-section {
    display: block;
}

.pledge-tag {
    display: inline-flex;
    align-items: center;
    background: var(--accent-red);
    color: white;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-family: var(--font-mono);
}

.pledge-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.pledge-tag-time {
    font-size: 10px;
    margin-left: 8px;
    opacity: 0.9;
    font-weight: 400;
}

.pledge-header-right {
    display: flex;
    justify-content: flex-end;
}

.pledge-content {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 24px;
    display: flex;
    gap: 24px;
}

.pledge-image-container {
    flex-shrink: 0;
    width: 150px;
    height: 150px;
    position: relative;
}

.pledge-image,
.pledge-image-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.pledge-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
    display: none;
    border: 2px solid var(--border-color);
}

.pledge-image[src] {
    display: block;
}

.pledge-image-placeholder {
    width: 100%;
    height: 100%;
    background: rgba(136, 153, 170, 0.1);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
}

.placeholder-svg {
    width: 64px;
    height: 64px;
    opacity: 0.5;
}

.pledge-info {
    flex: 1;
}

.pledge-leader-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 8px 0;
}

.pledge-leader-name {
    font-size: 16px;
    font-weight: 600;
    color: var(--accent-blue);
    margin: 0 0 8px 0;
}

.pledge-leader-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.pledge-party-tag {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    padding: 2px 8px;
    border-radius: 4px;
    font-family: var(--font-mono);
}

.pledge-party-tag.republican {
    background: rgba(249, 25, 28, 0.1);
    color: #f9251c;
}

.pledge-party-tag.democrat {
    background: rgba(88, 166, 255, 0.1);
    color: #58a6ff;
}

.pledge-party-tag.independent {
    background: rgba(163, 113, 247, 0.1);
    color: #a371f7;
}

.pledge-leader-details {
    font-size: 13px;
    color: var(--text-secondary);
    margin: 0;
    font-family: var(--font-mono);
}

.pledge-leader-additional {
    font-size: 12px;
    color: var(--text-muted);
    margin: 0;
    font-style: italic;
}

.pledge-leader-website {
    display: inline-block;
    margin-top: 4px;
}

.pledge-header-right {
    display: flex;
    justify-content: flex-end;
    margin-top: 8px;
}

.pledge-time {
    font-size: 12px;
    color: var(--text-muted);
    font-family: var(--font-mono);
    margin-right: 12px;
}

.pledge-source {
    font-size: 10px;
    color: var(--text-muted);
    font-family: var(--font-mono);
}

.pledge-source a {
    color: var(--accent-blue);
    text-decoration: none;
}

.pledge-source a:hover {
    text-decoration: underline;
}

.oath-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.oath-tag {
    display: inline-flex;
    align-items: center;
    background: #d29922;
    color: white;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-family: var(--font-mono);
}

.oath-tag-time {
    font-size: 10px;
    margin-left: 8px;
    opacity: 0.9;
    font-weight: 400;
}

.oath-header-right {
    display: flex;
    justify-content: flex-end;
}

.oath-source {
    font-size: 10px;
    color: var(--text-muted);
    font-family: var(--font-mono);
}

.oath-source a {
    color: var(--accent-blue);
    text-decoration: none;
}

.oath-source a:hover {
    text-decoration: underline;
}

.oath-content {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 24px;
    display: flex;
    gap: 24px;
}

.oath-image-container {
    flex-shrink: 0;
    width: 150px;
    height: 150px;
    position: relative;
}

.oath-image-placeholder {
    width: 100%;
    height: 100%;
    background: rgba(136, 153, 170, 0.1);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: var(--text-muted);
}

.oath-info {
    flex: 1;
}

.oath-member-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 8px 0;
}

.oath-member-name {
    font-size: 16px;
    font-weight: 600;
    color: var(--accent-blue);
    margin: 0 0 12px 0;
}

.oath-member-description {
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-secondary);
    margin: 0;
}

.oath-text-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 16px;
    background: var(--bg-elevated);
    border-radius: 8px;
    margin-top: 16px;
}

.oath-text {
    font-size: 16px;
    font-style: italic;
    color: var(--text-primary);
    line-height: 1.6;
}

.oath-source-inline {
    font-size: 10px;
    color: var(--text-muted);
    font-family: var(--font-mono);
    margin-top: 8px;
}

.oath-source-inline a {
    color: var(--accent-blue);
    text-decoration: none;
}

.oath-source-inline a:hover {
    text-decoration: underline;
}

.pledge-text-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 16px;
    background: var(--bg-elevated);
    border-radius: 8px;
    margin-top: 16px;
}

.pledge-text-inner {
    display: flex;
    align-items: center;
    gap: 16px;
}

.pledge-flag {
    font-size: 64px;
    flex-shrink: 0;
}

.pledge-text {
    font-size: 16px;
    font-style: italic;
    color: var(--text-primary);
    line-height: 1.6;
}

.speaker-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.speaker-tag {
    display: inline-flex;
    align-items: center;
    background: #d29922;
    color: white;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-family: var(--font-mono);
}

.speaker-tag-time {
    font-size: 10px;
    margin-left: 8px;
    opacity: 0.9;
    font-weight: 400;
}

.speaker-header-right {
    display: flex;
    justify-content: flex-end;
}

.speaker-source {
    font-size: 10px;
    color: var(--text-muted);
    font-family: var(--font-mono);
}

.speaker-source a {
    color: var(--accent-blue);
    text-decoration: none;
}

.speaker-source a:hover {
    text-decoration: underline;
}

.speaker-content {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 24px;
    display: flex;
    gap: 24px;
}

.speaker-image-container {
    flex-shrink: 0;
    width: 150px;
    height: 150px;
    position: relative;
}

.speaker-image,
.speaker-image-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.speaker-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
    display: none;
    border: 2px solid var(--border-color);
}

.speaker-image[src] {
    display: block;
}

.speaker-image-placeholder {
    width: 100%;
    height: 100%;
    background: rgba(136, 153, 170, 0.1);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: var(--text-muted);
}

.speaker-info {
    flex: 1;
}

.speaker-member-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 8px 0;
}

.speaker-member-name {
    font-size: 16px;
    font-weight: 600;
    color: var(--accent-blue);
    margin: 0 0 8px 0;
}

.speaker-member-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.speaker-party-tag {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    padding: 2px 8px;
    border-radius: 4px;
    font-family: var(--font-mono);
}

.speaker-member-details {
    font-size: 13px;
    color: var(--text-secondary);
    margin: 0;
    font-family: var(--font-mono);
}

.speaker-member-additional {
    font-size: 12px;
    color: var(--text-muted);
    margin: 0;
    font-style: italic;
}

.speaker-member-website {
    display: inline-block;
    margin-top: 4px;
}

.speaker-member-description {
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-secondary);
    margin: 12px 0 0 0;
}

.speaker-text-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 16px;
    background: var(--bg-elevated);
    border-radius: 8px;
    margin-top: 16px;
}

.speaker-text {
    font-size: 16px;
    font-style: italic;
    color: var(--text-primary);
    line-height: 1.6;
}

/* Prayer Mode */
body.prayer-mode .vote-display,
body.prayer-mode .progress-section,
body.prayer-mode .vote-header,
body.prayer-mode .threshold-panel,
body.prayer-mode .quorum-panel,
body.prayer-mode .floor-grid-panel {
    display: none !important;
}

/* Pledge Mode */
body.pledge-mode .vote-display,
body.pledge-mode .progress-section,
body.pledge-mode .vote-header,
body.pledge-mode .threshold-panel,
body.pledge-mode .quorum-panel,
body.pledge-mode .floor-grid-panel {
    display: none !important;
}

/* Message Mode */
.message-section {
    display: none;
    padding: 24px 0;
    margin-bottom: 24px;
}

body.message-mode .message-section {
    display: block;
}

body.message-mode .vote-display,
body.message-mode .progress-section,
body.message-mode .vote-header,
body.message-mode .threshold-panel,
body.message-mode .quorum-panel,
body.message-mode .floor-grid-panel {
    display: none !important;
}

.message-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.message-tag {
    display: inline-flex;
    align-items: center;
    background: #1a3a4a;
    color: white;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-family: var(--font-mono);
}

.message-tag-time {
    font-size: 10px;
    margin-left: 8px;
    opacity: 0.9;
    font-weight: 400;
}

.message-header-right {
    display: flex;
    justify-content: flex-end;
}

.message-source {
    font-size: 11px;
    color: var(--text-muted);
}

.message-source a {
    color: var(--accent-blue);
    text-decoration: none;
}

.message-content {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.message-from-line {
    font-size: 15px;
    font-style: italic;
    color: var(--text-primary);
    line-height: 1.6;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-color);
}

.message-body {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* Joint Meeting Mode */
.joint-meeting-section {
    display: none;
    padding: 24px 0;
    margin-bottom: 24px;
}

body.joint-meeting-mode .joint-meeting-section {
    display: block;
}

body.joint-meeting-mode .vote-display,
body.joint-meeting-mode .progress-section,
body.joint-meeting-mode .vote-header,
body.joint-meeting-mode .threshold-panel,
body.joint-meeting-mode .quorum-panel,
body.joint-meeting-mode .floor-grid-panel {
    display: none !important;
}

.joint-meeting-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.joint-meeting-tag {
    display: inline-flex;
    align-items: center;
    background: #4a1942;
    color: white;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-family: var(--font-mono);
}

.joint-meeting-tag-time {
    font-size: 10px;
    margin-left: 8px;
    opacity: 0.9;
    font-weight: 400;
}

.joint-meeting-header-right {
    display: flex;
    justify-content: flex-end;
}

.joint-meeting-source {
    font-size: 11px;
    color: var(--text-muted);
}

.joint-meeting-source a {
    color: var(--accent-blue);
    text-decoration: none;
}

.joint-meeting-content {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 24px;
}

.joint-meeting-description-line {
    font-size: 15px;
    font-style: italic;
    color: var(--text-primary);
    line-height: 1.6;
}

/* ── Journal Mode ────────────────────────────── */
.journal-section {
    display: none;
    padding: 24px 0;
    margin-bottom: 24px;
}

body.journal-mode .journal-section {
    display: block;
}

body.journal-mode .vote-display,
body.journal-mode .progress-section,
body.journal-mode .vote-header,
body.journal-mode .threshold-panel,
body.journal-mode .quorum-panel,
body.journal-mode .floor-grid-panel {
    display: none !important;
}

.journal-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.journal-tag {
    display: inline-flex;
    align-items: center;
    background: #5a3e9b;
    color: white;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-family: var(--font-mono);
}

.journal-tag-time {
    font-size: 10px;
    margin-left: 8px;
    opacity: 0.9;
    font-weight: 400;
}

.journal-header-right {
    display: flex;
    justify-content: flex-end;
}

.journal-source {
    font-size: 11px;
    color: var(--text-muted);
}

.journal-source a {
    color: var(--accent-blue);
    text-decoration: none;
}

.journal-content {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 24px;
    display: flex;
    gap: 24px;
    margin-bottom: 16px;
}

.journal-image-container {
    flex-shrink: 0;
    width: 150px;
    height: 150px;
    position: relative;
}

.journal-image,
.journal-image-placeholder {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
}

.journal-image {
    object-fit: cover;
    border-radius: 12px;
    display: none;
    border: 2px solid var(--border-color);
}

.journal-image[src]:not([src=""]) {
    display: block;
}

.journal-image-placeholder {
    background: rgba(136, 153, 170, 0.1);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
}

.journal-info {
    flex: 1;
}

.journal-chair-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 8px 0;
}

.journal-chair-name {
    font-size: 16px;
    font-weight: 600;
    color: var(--accent-blue);
    margin: 0 0 8px 0;
}

.journal-chair-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.journal-party-tag {
    font-size: 11px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 4px;
    font-family: var(--font-mono);
    border: 1px solid currentColor;
}

.journal-party-tag.republican {
    background: rgba(248, 81, 73, 0.1);
    color: #f85149;
}

.journal-party-tag.democrat {
    background: rgba(88, 166, 255, 0.1);
    color: #58a6ff;
}

.journal-party-tag.independent {
    background: rgba(163, 113, 247, 0.1);
    color: #a371f7;
}

.journal-chair-details {
    font-size: 12px;
    color: var(--text-muted);
    font-family: var(--font-mono);
}

.journal-chair-additional {
    font-size: 13px;
    color: var(--text-secondary);
    margin: 4px 0 8px 0;
}

.journal-chair-website {
    display: inline-block;
    margin-top: 4px;
}

/* Approval badge + text block */
.journal-approval-container {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 20px 24px;
    margin-bottom: 16px;
}

.journal-approval-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(63, 185, 80, 0.12);
    border: 1px solid rgba(63, 185, 80, 0.4);
    color: #3fb950;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    font-family: var(--font-mono);
    letter-spacing: 0.5px;
    margin-bottom: 14px;
}

.journal-check-icon {
    width: 16px;
    height: 16px;
    stroke: #3fb950;
    flex-shrink: 0;
}

.journal-approval-text {
    font-size: 15px;
    color: var(--text-primary);
    line-height: 1.7;
    margin: 0;
}

#journal-last-session-date {
    font-weight: 700;
    color: var(--accent-blue);
}

/* Constitution quote block */
.journal-text-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 16px;
    background: var(--bg-elevated);
    border-radius: 8px;
}

.journal-text-inner {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.journal-scroll-icon {
    font-size: 48px;
    flex-shrink: 0;
    line-height: 1;
}

.journal-text {
    font-size: 15px;
    font-style: italic;
    color: var(--text-primary);
    line-height: 1.7;
}

.journal-constitution-source {
    font-size: 11px;
    color: var(--text-muted);
}

.journal-constitution-source a {
    color: var(--accent-blue);
    text-decoration: none;
}

body.silence-mode .vote-display,
body.silence-mode .progress-section,
body.silence-mode .vote-header,
body.silence-mode .threshold-panel,
body.silence-mode .quorum-panel,
body.silence-mode .floor-grid-panel {
    display: none !important;
}

body.oath-mode .vote-display,
body.oath-mode .progress-section,
body.oath-mode .vote-header,
body.oath-mode .threshold-panel,
body.oath-mode .quorum-panel,
body.oath-mode .floor-grid-panel {
    display: none !important;
}

body.speaker-mode .vote-display,
body.speaker-mode .progress-section,
body.speaker-mode .vote-header,
body.speaker-mode .threshold-panel,
body.speaker-mode .quorum-panel,
body.speaker-mode .floor-grid-panel {
    display: none !important;
}

body.committee-chair-mode .vote-display,
body.committee-chair-mode .progress-section,
body.committee-chair-mode .vote-header,
body.committee-chair-mode .threshold-panel,
body.committee-chair-mode .quorum-panel,
body.committee-chair-mode .floor-grid-panel {
    display: none !important;
}

/* ── Joint Session Mode ────────────────────────────── */
.joint-session-section {
    display: none;
    padding: 24px 0;
    margin-bottom: 24px;
}

body.joint-session-mode .joint-session-section {
    display: block;
}

body.joint-session-mode .vote-display,
body.joint-session-mode .progress-section,
body.joint-session-mode .vote-header,
body.joint-session-mode .threshold-panel,
body.joint-session-mode .quorum-panel,
body.joint-session-mode .floor-grid-panel {
    display: none !important;
}

.joint-session-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.joint-session-tag {
    display: inline-flex;
    align-items: center;
    background: #4a2800;
    color: white;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-family: var(--font-mono);
}

.joint-session-tag-time {
    font-size: 10px;
    margin-left: 8px;
    opacity: 0.9;
    font-weight: 400;
}

.joint-session-header-right {
    display: flex;
    justify-content: flex-end;
}

.joint-session-source {
    font-size: 11px;
    color: var(--text-muted);
}

.joint-session-source a {
    color: var(--accent-blue);
    text-decoration: none;
}

.joint-session-content {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 24px;
}

.joint-session-description-line {
    font-size: 15px;
    font-style: italic;
    color: var(--text-primary);
    line-height: 1.6;
}

.joint-session-presiding-line {
    font-size: 13px;
    color: var(--text-secondary);
    margin-top: 8px;
}

/* ── Certification of Election Mode ────────────────────────────── */
.cert-election-section {
    display: none;
    padding: 24px 0;
    margin-bottom: 24px;
}

body.cert-election-mode .cert-election-section {
    display: block;
}

body.cert-election-mode .vote-display,
body.cert-election-mode .progress-section,
body.cert-election-mode .vote-header,
body.cert-election-mode .threshold-panel,
body.cert-election-mode .quorum-panel,
body.cert-election-mode .floor-grid-panel {
    display: none !important;
}

.cert-election-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.cert-election-tag {
    display: inline-flex;
    align-items: center;
    background: #1a3a58;
    color: white;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-family: var(--font-mono);
}

.cert-election-tag-time {
    font-size: 10px;
    margin-left: 8px;
    opacity: 0.9;
    font-weight: 400;
}

.cert-election-header-right {
    display: flex;
    justify-content: flex-end;
}

.cert-election-source {
    font-size: 11px;
    color: var(--text-muted);
}

.cert-election-source a {
    color: var(--accent-blue);
    text-decoration: none;
}

.cert-election-approval-container {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 20px 24px;
    margin-bottom: 16px;
}

.cert-election-approval-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(63, 185, 80, 0.12);
    border: 1px solid rgba(63, 185, 80, 0.4);
    color: #3fb950;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    font-family: var(--font-mono);
    letter-spacing: 0.5px;
    margin-bottom: 14px;
}

.cert-election-check-icon {
    width: 16px;
    height: 16px;
    stroke: #3fb950;
    flex-shrink: 0;
}

.cert-election-approval-text {
    font-size: 15px;
    color: var(--text-primary);
    line-height: 1.7;
    margin: 0;
}

.cert-election-quote-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 16px;
    background: var(--bg-elevated);
    border-radius: 8px;
}

.cert-election-quote-inner {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.cert-election-quote-text {
    font-size: 15px;
    font-style: italic;
    color: var(--text-primary);
    line-height: 1.7;
}

.cert-election-constitution-source {
    font-size: 11px;
    color: var(--text-muted);
}

.cert-election-constitution-source a {
    color: var(--accent-blue);
    text-decoration: none;
}

/* ── Certification of Electoral Votes Mode ────────────────────────────── */
.cert-electoral-section {
    display: none;
    padding: 24px 0;
    margin-bottom: 24px;
}

body.cert-electoral-mode .cert-electoral-section {
    display: block;
}

body.cert-electoral-mode .vote-display,
body.cert-electoral-mode .progress-section,
body.cert-electoral-mode .vote-header,
body.cert-electoral-mode .threshold-panel,
body.cert-electoral-mode .quorum-panel,
body.cert-electoral-mode .floor-grid-panel {
    display: none !important;
}

.cert-electoral-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.cert-electoral-tag {
    display: inline-flex;
    align-items: center;
    background: #7c1d1d;
    color: white;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-family: var(--font-mono);
}

.cert-electoral-tag-time {
    font-size: 10px;
    margin-left: 8px;
    opacity: 0.9;
    font-weight: 400;
}

.cert-electoral-header-right {
    display: flex;
    justify-content: flex-end;
}

.cert-electoral-source {
    font-size: 11px;
    color: var(--text-muted);
}

.cert-electoral-source a {
    color: var(--accent-blue);
    text-decoration: none;
}

.cert-electoral-approval-container {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 20px 24px;
    margin-bottom: 16px;
}

.cert-electoral-approval-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(63, 185, 80, 0.12);
    border: 1px solid rgba(63, 185, 80, 0.4);
    color: #3fb950;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    font-family: var(--font-mono);
    letter-spacing: 0.5px;
    margin-bottom: 14px;
}

.cert-electoral-check-icon {
    width: 16px;
    height: 16px;
    stroke: #3fb950;
    flex-shrink: 0;
}

.cert-electoral-approval-text {
    font-size: 15px;
    color: var(--text-primary);
    line-height: 1.7;
    margin: 0;
}

.cert-electoral-quote-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 16px;
    background: var(--bg-elevated);
    border-radius: 8px;
}

.cert-electoral-quote-inner {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.cert-electoral-quote-text {
    font-size: 15px;
    font-style: italic;
    color: var(--text-primary);
    line-height: 1.7;
}

.cert-electoral-constitution-source {
    font-size: 11px;
    color: var(--text-muted);
}

.cert-electoral-constitution-source a {
    color: var(--accent-blue);
    text-decoration: none;
}

/* ── Sine Die Mode ────────────────────────────── */
.sine-die-section {
    display: none;
    padding: 24px 0;
    margin-bottom: 24px;
}

body.sine-die-mode .sine-die-section {
    display: block;
}

body.sine-die-mode .vote-display,
body.sine-die-mode .progress-section,
body.sine-die-mode .vote-header,
body.sine-die-mode .threshold-panel,
body.sine-die-mode .quorum-panel,
body.sine-die-mode .floor-grid-panel {
    display: none !important;
}

.sine-die-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.sine-die-tag {
    display: inline-flex;
    align-items: center;
    background: #374151;
    color: white;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-family: var(--font-mono);
}

.sine-die-tag-time {
    font-size: 10px;
    margin-left: 8px;
    opacity: 0.9;
    font-weight: 400;
}

.sine-die-header-right {
    display: flex;
    justify-content: flex-end;
}

.sine-die-source {
    font-size: 11px;
    color: var(--text-muted);
}

.sine-die-source a {
    color: var(--accent-blue);
    text-decoration: none;
}

.sine-die-content {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 24px;
    margin-bottom: 16px;
}

.sine-die-description-line {
    font-size: 15px;
    font-style: italic;
    color: var(--text-primary);
    line-height: 1.6;
}

.sine-die-quote-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 16px;
    background: var(--bg-elevated);
    border-radius: 8px;
}

.sine-die-quote-inner {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.sine-die-quote-text {
    font-size: 15px;
    font-style: italic;
    color: var(--text-primary);
    line-height: 1.7;
}

.sine-die-constitution-source {
    font-size: 11px;
    color: var(--text-muted);
}

.sine-die-constitution-source a {
    color: var(--accent-blue);
    text-decoration: none;
}

/* ── New Session Mode ────────────────────────────── */
.new-session-section {
    display: none;
    padding: 24px 0;
    margin-bottom: 24px;
}

body.new-session-mode .new-session-section {
    display: block;
}

body.new-session-mode .vote-display,
body.new-session-mode .progress-section,
body.new-session-mode .vote-header,
body.new-session-mode .threshold-panel,
body.new-session-mode .quorum-panel,
body.new-session-mode .floor-grid-panel {
    display: none !important;
}

.new-session-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.new-session-tag {
    display: inline-flex;
    align-items: center;
    background: #0d3321;
    color: white;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-family: var(--font-mono);
}

.new-session-tag-time {
    font-size: 10px;
    margin-left: 8px;
    opacity: 0.9;
    font-weight: 400;
}

.new-session-header-right {
    display: flex;
    justify-content: flex-end;
}

.new-session-source {
    font-size: 11px;
    color: var(--text-muted);
}

.new-session-source a {
    color: var(--accent-blue);
    text-decoration: none;
}

.new-session-content {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 24px;
    margin-bottom: 16px;
}

.new-session-description-line {
    font-size: 15px;
    font-style: italic;
    color: var(--text-primary);
    line-height: 1.6;
}

.new-session-quote-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 16px;
    background: var(--bg-elevated);
    border-radius: 8px;
}

.new-session-quote-inner {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.new-session-quote-text {
    font-size: 15px;
    font-style: italic;
    color: var(--text-primary);
    line-height: 1.7;
}

.new-session-constitution-source {
    font-size: 11px;
    color: var(--text-muted);
}

.new-session-constitution-source a {
    color: var(--accent-blue);
    text-decoration: none;
}

/* ── Admin Oath Mode ────────────────────────────── */
.admin-oath-section {
    display: none;
    padding: 24px 0;
    margin-bottom: 24px;
}

body.admin-oath-mode .admin-oath-section {
    display: block;
}

body.admin-oath-mode .vote-display,
body.admin-oath-mode .progress-section,
body.admin-oath-mode .vote-header,
body.admin-oath-mode .threshold-panel,
body.admin-oath-mode .quorum-panel,
body.admin-oath-mode .floor-grid-panel {
    display: none !important;
}

.admin-oath-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.admin-oath-tag {
    display: inline-flex;
    align-items: center;
    background: #2c1a4a;
    color: white;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-family: var(--font-mono);
}

.admin-oath-tag-time {
    font-size: 10px;
    margin-left: 8px;
    opacity: 0.9;
    font-weight: 400;
}

.admin-oath-header-right {
    display: flex;
    justify-content: flex-end;
}

.admin-oath-source {
    font-size: 11px;
    color: var(--text-muted);
}

.admin-oath-source a {
    color: var(--accent-blue);
    text-decoration: none;
}

.admin-oath-content {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 24px;
    display: flex;
    gap: 24px;
    margin-bottom: 16px;
}

.admin-oath-image-container {
    flex-shrink: 0;
    width: 150px;
    height: 150px;
    position: relative;
}

.admin-oath-image-placeholder {
    width: 100%;
    height: 100%;
    background: rgba(136, 153, 170, 0.1);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: var(--text-muted);
}

.admin-oath-info {
    flex: 1;
}

.admin-oath-administered-by {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 8px 0;
}

.admin-oath-recipients {
    font-size: 16px;
    font-weight: 600;
    color: var(--accent-blue);
    margin: 0 0 12px 0;
}

.admin-oath-text-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 16px;
    background: var(--bg-elevated);
    border-radius: 8px;
}

.admin-oath-text-inner {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.admin-oath-text {
    font-size: 15px;
    font-style: italic;
    color: var(--text-primary);
    line-height: 1.7;
}

.admin-oath-source-inline {
    font-size: 11px;
    color: var(--text-muted);
}

.admin-oath-source-inline a {
    color: var(--accent-blue);
    text-decoration: none;
}

.admin-oath-source-inline a:hover {
    text-decoration: underline;
}
