/* 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;
}

/* 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;
}

/* Party Breakdown Panel */
.party-breakdown-panel {
    padding: 0 24px;
    margin-bottom: 24px;
}

/* Bills Section */
.bills-section {
    padding: 0 24px;
    margin-bottom: 24px;
}

/* Video Section */
.video-section {
    padding: 0 24px;
    margin-bottom: 24px;
}

/* Footer */
.footer {
    padding: 24px 200px;
    margin-top: auto;
    background: var(--bg-elevated);
    border-top: 1px solid var(--border-color);
    border-radius: 8px 8px 0 0;
}

.footer-section {
    margin-bottom: 16px;
}

.footer-title {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
    display: block;
}

.footer-sources {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 16px;
}

.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;
}

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

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 12px;
    border-top: 1px solid var(--border-color);
}

.footer-text {
    font-size: 11px;
    color: var(--text-secondary);
}

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

/* 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;
}

.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;
}

/* 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: 14px;
}

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

.clock-label {
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.8px;
    color: var(--text-muted);
}

.analog-clock {
    --hour-angle: 0deg;
    --minute-angle: 0deg;
    --second-angle: 0deg;
    position: relative;
    display: block;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: conic-gradient(from 0deg, transparent calc(50% - 1px), rgba(139, 148, 158, 0.16) calc(50% - 1px) calc(50% + 1px), transparent calc(50% + 1px)), 
        linear-gradient(0deg, transparent calc(50% - 0.5px), rgba(139, 148, 158, 0.16) calc(50% - 0.5px) calc(50% + 0.5px), transparent calc(50% + 0.5px)), 
        var(--bg-elevated);
    box-shadow: inset 0 0 0 1px rgba(13, 17, 23, 0.8);
    border: 1px solid var(--border-color);
}

.clock-hand {
    position: absolute;
    left: 50%;
    bottom: 50%;
    width: 3px;
    transform-origin: 50% 100%;
    border-radius: 2px;
}

.hour-hand {
    height: 16px;
    background: var(--text-primary);
    transform: translateX(-50%) rotate(var(--hour-angle));
    border-radius: 2px;
}

.minute-hand {
    height: 20px;
    background: var(--text-primary);
    transform: translateX(-50%) rotate(var(--minute-angle));
    border-radius: 2px;
}

.second-hand {
    height: 22px;
    background: var(--accent-red);
    transform: translateX(-50%) rotate(var(--second-angle));
    border-radius: 2px;
}

.clock-center {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 4px;
    height: 4px;
    background: var(--accent-blue);
    transform: translate(-50%, -50%);
}

.clock-time {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--text-secondary);
    font-variant-numeric: tabular-nums;
}

.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: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 32px;
    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: 2px;
    height: 80px;
    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;
}

.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-top-left-radius: 6px;
    border-bottom-left-radius: 6px;
}

.progress-fill.yeas:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(46, 160, 67, 0.4);
    z-index: 10;
}

.progress-fill.nays {
    background: var(--accent-red);
    border-top-right-radius: 6px;
    border-bottom-right-radius: 6px;
}

.progress-fill.nays:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(248, 81, 73, 0.4);
    z-index: 10;
}

.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);
}

.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 {
  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;
}

/* 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;
}

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

/* Weather Panel */
.weather-panel {
  position: relative;
  min-width: 60px;
  min-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;
  z-index: 10;
}

.weather-panel:hover {
  width: 320px;
  height: 180px;
  border-color: var(--accent-blue);
  z-index: 100; /* Much higher z-index to appear above everything */
  background: #000;
  transform: translateY(56px); /* Move down much further to avoid cropping */
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5); /* Add shadow for depth */
}

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

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

.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.3s ease;
  pointer-events: none;
}

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

/* 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: var(--bg-elevated);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 8px;
}

.quorum-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent-red) 0%, var(--accent-amber) 50%, var(--accent-green) 100%);
  border-radius: 4px;
  transition: width 0.6s ease;
}

.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: 10px 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: 280px;
  border-bottom: 1px solid rgba(139, 148, 158, 0.18);
  isolation: isolate;
}

.chamber-rings {
  position: absolute;
  inset: 8px 6% 22px;
  border-radius: 50% 50% 0 0 / 100% 100% 0 0;
  background:
    radial-gradient(ellipse at 50% 100%, transparent 0 20%, rgba(139, 148, 158, 0.13) 20.3% 20.8%, transparent 21.1% 28%,
      rgba(139, 148, 158, 0.12) 28.3% 28.8%, transparent 29.1% 36%,
      rgba(139, 148, 158, 0.11) 36.3% 36.8%, transparent 37.1% 44%,
      rgba(139, 148, 158, 0.1) 44.3% 44.8%, transparent 45.1% 52%,
      rgba(139, 148, 158, 0.09) 52.3% 52.8%, transparent 53.1% 60%,
      rgba(139, 148, 158, 0.08) 60.3% 60.8%, transparent 61.1%);
  opacity: 0.9;
  pointer-events: none;
  z-index: 0;
}

.center-aisle {
  content: '';
  position: absolute;
  bottom: 21px;
  left: 50%;
  width: 42px;
  height: 218px;
  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); }

@media (max-width: 900px) {
  .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: 200px;
  }

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

  .center-aisle {
    height: 158px;
    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: 16px 24px;
  max-height: 200px;
  overflow-y: auto;
  position: relative;
}

.proceedings-item {
  padding: 8px 0;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  transition: all 0.2s ease;
}

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

.proceedings-item:first-child {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.proceedings-item:hover {
  background: rgba(88, 166, 255, 0.05);
  border-color: rgba(88, 166, 255, 0.2);
}

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

.proceedings-text {
  font-size: 11px;
  color: var(--text-secondary);
  line-height: 1.4;
  flex: 1;
}

.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-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 {
  max-height: 120px;
  overflow-y: auto;
  font-size: 10px;
  color: var(--text-secondary);
  line-height: 1.4;
}

.absentee-member {
  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;
}

/* Footer */
.footer {
    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-top: auto;
}

.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 */
.bottom-ticker {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--bg-elevated);
    border-top: 1px solid var(--border-color);
    height: 30px;
    overflow: hidden;
    z-index: 1000;
}

.ticker-content {
    display: flex;
    align-items: center;
    white-space: nowrap;
    transition: transform 0.5s ease;
    padding: 0 20px;
}

.ticker-item {
    display: inline-block;
    padding: 0 15px;
    font-size: 11px;
    font-weight: 500;
    color: var(--text-primary);
    text-decoration: none;
    white-space: nowrap;
    position: relative;
}

.ticker-item:hover {
    color: var(--accent-blue);
    text-decoration: underline;
}

.ticker-source {
    display: block;
    margin-bottom: 2px;
    font-size: 9px;
    font-weight: 600;
    color: var(--text-primary);
}

.ticker-time {
    display: block;
    font-size: 9px;
    font-weight: 400;
    color: var(--text-muted);
    margin-top: 2px;
}

.ticker-item a {
    color: inherit;
    text-decoration: none;
    display: flex;
    flex-direction: column;
}

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

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

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

/* 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;
    padding: 16px;
    margin-bottom: 8px;
}

.party-breakdown-header {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    padding: 12px 24px;
    background: var(--bg-elevated);
    border-bottom: 1px solid var(--border-color);
    margin: 0 -16px 12px -16px;
    border-radius: 8px 8px 0 0;
}

.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;
}

.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;
}

.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, transform 0.2s ease, box-shadow 0.2s ease;
    border-top-left-radius: 6px;
    border-bottom-left-radius: 6px;
}

.rep-fill:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(248, 81, 73, 0.4);
    z-index: 10;
}

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

.dem-fill:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(88, 166, 255, 0.4);
    z-index: 10;
}

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

.ind-fill:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(163, 113, 247, 0.4);
    z-index: 10;
}

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

.vac-fill:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.2);
    z-index: 10;
    background: rgba(255, 255, 255, 0.5);
}

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

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

.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;
}

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

.bills-column-header {
    padding: 8px 12px;
    background: var(--bg-elevated);
    border-radius: 6px;
    margin-bottom: 12px;
}

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

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

.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;
}

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

.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 {
    background: rgba(255, 193, 7, 0.1);
    color: var(--accent-amber);
    border: 1px solid rgba(255, 193, 7, 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-info {
    flex: 1;
    min-width: 0;
}

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

.bill-title {
    font-size: 11px;
    color: var(--text-secondary);
    line-height: 1.3;
    margin-bottom: 4px;
    display: -webkit-box;
    -webkit-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);
}

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

/* 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);
}

/* 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;
}

/* 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;
    }

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