:root {
    /* Neutral calm dark palette (Apple-style, no neon) */
    --bg-primary: #0b0b0c;
    --bg-secondary: #161618;
    --bg-card: #1c1c1e;
    --bg-card-hover: #2a2a2d;
    --card-bg: #1c1c1e;
    --bg-deep: #000000;
    /* Single calm accent (Apple blue) — no neon */
    --accent: #0a84ff;
    --accent-hover: #409cff;
    --accent-cyan: #0a84ff;
    --accent-pink: #0a84ff;
    --accent-green: #30d158;
    --accent-yellow: #ffd60a;
    --accent-red: #ff453a;
    --accent-purple: #bf5af2;
    --accent-soft: rgba(10, 132, 255, 0.10);
    --accent-border: rgba(10, 132, 255, 0.45);
    /* Monochrome party/bloc scale (data-encoded, no neon) */
    --ph-color: #ff453a;
    --bn-color: #0a84ff;
    --pn-color: #30d158;
    --grs-color: #64d2ff;
    --gps-color: #ffd60a;
    --warisan-color: #bf5af2;
    --psb-color: #5e5ce6;
    --muda-color: #ff9f0a;
    --ind-color: #8e8e93;
    --other-color: #636366;
    --text-primary: #f5f5f7;
    --text-secondary: #aeaeb2;
    --text-muted: #8e8e93;
    --border-color: #38383a;
    --status-red: #ff453a;
    --status-amber: #ffd60a;
    --status-green: #30d158;
    --shadow-glow: 0 1px 2px rgba(0, 0, 0, 0.40), 0 4px 16px rgba(0, 0, 0, 0.24);
    --live-panel-bg: rgba(28, 28, 30, 0.97);
    --live-panel-border: rgba(255, 71, 87, 0.35);
    --live-panel-shadow: 0 18px 48px rgba(0, 0, 0, 0.40);
    --live-panel-head-bg: rgba(10, 132, 255, 0.06);
    --track: rgba(255, 255, 255, 0.07);
    --soft-shadow: 0 1px 2px rgba(0, 0, 0, 0.40), 0 4px 16px rgba(0, 0, 0, 0.24);
}

[data-theme="light"] {
    --bg-primary: #fbfbfd;
    --bg-secondary: #ffffff;
    --bg-card: #f5f5f7;
    --card-bg: #f5f5f7;
    --bg-card-hover: #e8e8ed;
    --bg-deep: #ffffff;
    --accent: #0071e3;
    --accent-hover: #0077ed;
    --accent-cyan: #0071e3;
    --accent-pink: #0071e3;
    --accent-green: #248a3d;
    --accent-yellow: #b25000;
    --accent-red: #d70015;
    --accent-purple: #8e2bc4;
    --accent-soft: rgba(0, 113, 227, 0.08);
    --accent-border: rgba(0, 113, 227, 0.40);
    --ph-color: #d70015;
    --bn-color: #0071e3;
    --pn-color: #248a3d;
    --grs-color: #0096d6;
    --gps-color: #b25000;
    --warisan-color: #8e2bc4;
    --psb-color: #3a37c4;
    --muda-color: #b25000;
    --ind-color: #6e6e73;
    --other-color: #8e8e93;
    --text-primary: #1d1d1f;
    --text-secondary: #515154;
    --text-muted: #6e6e73;
    --border-color: #d2d2d7;
    --status-red: #d70015;
    --status-amber: #b25000;
    --status-green: #248a3d;
    --shadow-glow: 0 4px 20px rgba(0, 0, 0, 0.08);
    --live-panel-bg: rgba(255, 255, 255, 0.98);
    --live-panel-border: rgba(225, 29, 72, 0.30);
    --live-panel-shadow: 0 18px 48px rgba(0, 0, 0, 0.12);
    --live-panel-head-bg: rgba(0, 113, 227, 0.06);
    --track: rgba(0, 0, 0, 0.06);
    --soft-shadow: 0 1px 2px rgba(0, 0, 0, 0.04), 0 4px 16px rgba(0, 0, 0, 0.06);
}
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Rajdhani', sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
    padding-bottom: 110px;
}

.dashboard { max-width: 1400px; margin: 0 auto; padding: 20px; }

/* Ticker */
.live-ticker {
    position: sticky; top: 0; z-index: 9000;
    background: linear-gradient(90deg, rgba(225,29,72,0.2), rgba(10,132,255,0.10));
    border-bottom: 1px solid var(--border-color);
    overflow: hidden; height: 36px;
}
.live-ticker.hidden { display: none; }
.live-ticker-track {
    display: flex; gap: 48px; white-space: nowrap;
    animation: ticker-scroll 40s linear infinite;
    padding: 8px 0; font-size: 0.85rem; color: var(--text-secondary);
}
.ticker-item { font-family: 'JetBrains Mono', monospace; }
@keyframes ticker-scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* Header */
.header {
    display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px;
    padding: 20px 30px; background: var(--bg-secondary);
    border: 1px solid var(--border-color); border-radius: 12px;
    margin-bottom: 30px; box-shadow: var(--shadow-glow);
}
.header-left { display: flex; flex-direction: column; gap: 8px; }
.neuralops-nav { display: flex; gap: 16px; }
.nav-link { color: var(--text-muted); text-decoration: none; font-size: 0.85rem; transition: color 0.2s; }
.nav-link:hover { color: var(--accent-cyan); }
h1.logo { margin: 0; font-size: inherit; font-weight: inherit; }
.logo { display: flex; align-items: center; gap: 12px; }
.logo-icon { font-size: 2.5rem; filter: drop-shadow(0 0 10px var(--accent-cyan)); }
.logo-text { font-family: 'Orbitron', monospace; font-size: 1.5rem; font-weight: 900; letter-spacing: 2px; }
.logo-text .accent { color: var(--accent-cyan); text-shadow: 0 0 20px var(--accent-cyan); }
.header-right { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.countdown-box { display: flex; flex-direction: column; align-items: flex-end; }
.countdown-label { font-size: 0.7rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.08em; }
.countdown-value { font-family: 'Orbitron', monospace; font-size: 0.95rem; font-weight: 700; color: var(--accent-cyan); }
.campaign-indicator {
    display: flex; align-items: center; gap: 8px;
    padding: 8px 16px; background: rgba(255, 214, 10, 0.12);
    border: 1px solid var(--accent-yellow); border-radius: 20px;
}
.campaign-dot {
    width: 10px; height: 10px; background: var(--accent-yellow);
    border-radius: 50%; animation: blink 1.5s infinite;
}
.campaign-text { font-family: 'Orbitron', monospace; font-size: 0.75rem; font-weight: 700; color: var(--accent-yellow); }
.header-controls { display: flex; gap: 8px; }
.ctrl-btn {
    width: 36px; height: 36px; border-radius: 8px;
    border: 1px solid var(--border-color); background: var(--bg-card);
    color: var(--text-primary); cursor: pointer; font-size: 1rem;
    transition: border-color 0.2s, background 0.2s;
}
.ctrl-btn:hover { border-color: var(--accent-cyan); background: var(--bg-card-hover); }
.refresh-info { font-size: 0.85rem; color: var(--text-muted); }
.main-content { display: flex; flex-direction: column; gap: 30px; }

/* Hero countdown */
.final-hero-countdown {
    display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap;
    padding: 28px 30px; border-radius: 16px;
    border: 2px solid rgba(225, 29, 72, 0.35);
    background: linear-gradient(135deg, rgba(225,29,72,0.1) 0%, rgba(37,99,235,0.1) 50%, rgba(22,163,74,0.08) 100%);
    box-shadow: 0 0 32px rgba(225, 29, 72, 0.1);
}
.final-hero-eyebrow {
    display: inline-block; font-family: 'Orbitron', monospace;
    font-size: 0.72rem; font-weight: 700; letter-spacing: 0.14em;
    color: var(--accent-cyan); margin-bottom: 8px;
}
.final-hero-matchup { font-family: 'Orbitron', monospace; font-size: clamp(1.2rem, 3vw, 1.8rem); font-weight: 900; margin-bottom: 6px; }
.final-hero-date { color: var(--text-secondary); font-size: 0.92rem; }
.final-hero-sub { color: var(--text-muted); font-size: 0.85rem; margin-top: 4px; }
.watch-final-btn {
    display: inline-flex; align-items: center; gap: 8px; margin-top: 14px;
    padding: 11px 20px; border-radius: 999px;
    border: 1px solid var(--accent-cyan);
    background: linear-gradient(135deg, rgba(10,132,255,0.12), rgba(168,85,247,0.14));
    color: var(--text-primary); font-family: 'Orbitron', monospace;
    font-size: 0.78rem; font-weight: 800; letter-spacing: 0.06em;
    text-transform: uppercase; cursor: pointer;
    transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}
.watch-final-btn::after { content: '↓'; font-size: 0.9rem; color: var(--accent-cyan); }
.watch-final-btn:hover { transform: translateY(-1px); border-color: var(--accent-purple); box-shadow: 0 0 18px rgba(10,132,255,0.15); }
.countdown-blocks { display: flex; align-items: center; gap: 8px; }
.cd-block { text-align: center; min-width: 64px; }
.cd-value { display: block; font-family: 'Orbitron', monospace; font-size: 2.2rem; font-weight: 900; color: var(--accent-cyan); line-height: 1; }
.cd-block em { font-style: normal; font-size: 0.7rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.1em; }
.cd-sep { font-family: 'Orbitron', monospace; font-size: 1.8rem; color: var(--text-muted); padding-bottom: 16px; }

/* Section titles */
.section-title {
    display: flex; align-items: center; gap: 10px;
    font-family: 'Orbitron', monospace; font-size: 1rem; font-weight: 700;
    letter-spacing: 0.06em; margin-bottom: 16px;
}
.section-title .icon { font-size: 1.2rem; }
.section-sub { color: var(--text-muted); font-size: 0.85rem; margin: -8px 0 16px; }

/* Composition */
.composition-layout { display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: start; }
.composition-bars {
    position: relative; background: var(--bg-card);
    border: 1px solid var(--border-color); border-radius: 12px; padding: 24px;
}
.comp-bar-row { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.comp-bar-label { width: 32px; font-family: 'Orbitron', monospace; font-weight: 700; font-size: 0.85rem; }
.comp-bar-track { flex: 1; height: 28px; background: rgba(255,255,255,0.04); border-radius: 6px; overflow: hidden; }
[data-theme="light"] .comp-bar-track { background: rgba(0,0,0,0.06); }
.comp-bar-fill { height: 100%; border-radius: 6px; transition: width 0.6s ease; }
.comp-bar-value { width: 28px; text-align: right; font-family: 'Orbitron', monospace; font-weight: 700; }
.majority-marker {
    position: absolute; top: 16px; bottom: 16px; width: 2px;
    background: var(--accent-yellow); transform: translateX(-50%); pointer-events: none;
}
.majority-marker span {
    position: absolute; top: -4px; left: 6px; font-size: 0.65rem;
    color: var(--accent-yellow); font-family: 'Orbitron', monospace; white-space: nowrap;
}
.composition-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.stat-card {
    background: var(--bg-card); border: 1px solid var(--border-color);
    border-radius: 10px; padding: 16px; text-align: center; min-width: 120px;
}
.stat-value { font-family: 'Orbitron', monospace; font-size: 1.6rem; font-weight: 900; color: var(--accent-cyan); }
.stat-label { font-size: 0.75rem; color: var(--text-muted); margin-top: 4px; text-transform: uppercase; letter-spacing: 0.05em; }

/* Party colors */
.party-PH, .seat-party.party-PH, .comp-bar-label.party-PH { color: var(--ph-color); }
.party-BN, .seat-party.party-BN, .comp-bar-label.party-BN { color: var(--bn-color); }
.party-PN, .seat-party.party-PN, .comp-bar-label.party-PN { color: var(--pn-color); }

/* Live Results */
.live-results-section { border: 2px solid var(--border-color); border-radius: 14px; padding: 24px; background: var(--bg-secondary); }
.live-results-section.is-active { border-color: rgba(255, 71, 87, 0.5); box-shadow: 0 0 24px rgba(255, 71, 87, 0.12); }
.live-results-section.is-standby { border-style: dashed; }
.live-results-section.is-demo { border-color: rgba(255, 214, 10, 0.45); }
.live-results-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.live-results-head .section-title { margin-bottom: 0; }
.live-results-badge {
    font-family: 'Orbitron', monospace; font-size: 0.7rem; font-weight: 700;
    padding: 4px 12px; border-radius: 20px;
    background: rgba(100, 116, 139, 0.2); color: var(--text-muted);
    border: 1px solid var(--border-color);
}
.live-results-badge.is-live {
    background: rgba(255, 71, 87, 0.2); color: var(--accent-red);
    border-color: var(--accent-red); animation: pulse 2s infinite;
}
.live-results-panel { margin-top: 12px; }
.live-standby { text-align: center; padding: 32px 20px; }
.live-standby-icon { font-size: 2.5rem; display: block; margin-bottom: 12px; }
.live-standby h3 { font-family: 'Orbitron', monospace; margin-bottom: 8px; }
.live-standby p { color: var(--text-muted); margin-bottom: 16px; max-width: 480px; margin-left: auto; margin-right: auto; }
.live-demo-link {
    display: inline-block; padding: 10px 18px; border-radius: 999px;
    border: 1px solid var(--accent-cyan); color: var(--accent-cyan);
    text-decoration: none; font-weight: 700; font-size: 0.9rem;
}
.live-demo-link:hover { background: rgba(0, 212, 255, 0.1); }
.live-demo-banner {
    text-align: center; padding: 8px; margin-bottom: 14px; border-radius: 8px;
    background: rgba(255, 214, 10, 0.15); color: var(--accent-yellow);
    font-family: 'Orbitron', monospace; font-size: 0.72rem; font-weight: 700;
}
.live-totals { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 16px; }
.live-total-card {
    text-align: center; padding: 18px; border-radius: 10px;
    background: var(--bg-card); border: 1px solid var(--border-color);
}
.live-total-card.is-leading { border-color: var(--accent-cyan); box-shadow: 0 0 16px rgba(0, 212, 255, 0.15); }
.live-total-party { font-family: 'Orbitron', monospace; font-weight: 900; font-size: 1rem; display: block; }
.live-total-value { font-family: 'Orbitron', monospace; font-size: 2.4rem; font-weight: 900; display: block; line-height: 1.1; }
.live-total-label { font-size: 0.75rem; color: var(--text-muted); }
.live-majority-badge {
    display: inline-block; margin-top: 6px; font-size: 0.65rem; font-weight: 700;
    padding: 2px 8px; border-radius: 10px; background: rgba(0, 255, 136, 0.15);
    color: var(--accent-green); border: 1px solid var(--accent-green);
}
.live-meta-row {
    display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 16px;
    font-size: 0.85rem; color: var(--text-secondary);
}
.live-results-chart { height: 200px; margin-bottom: 16px; }
.live-seats-feed { display: flex; flex-direction: column; gap: 6px; max-height: 240px; overflow-y: auto; }
.live-seat-row {
    display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
    padding: 8px 12px; border-radius: 8px; background: rgba(0,0,0,0.12);
    font-size: 0.85rem; border-left: 3px solid var(--border-color);
}
[data-theme="light"] .live-seat-row { background: rgba(0,0,0,0.04); }
.live-seat-row.status-declared { border-left-color: var(--accent-green); }
.live-seat-row.status-counting { border-left-color: var(--accent-yellow); animation: pulse 2s infinite; }
.live-seat-status { font-family: 'Orbitron', monospace; font-size: 0.65rem; font-weight: 700; color: var(--text-muted); }
.live-seat-winner { font-family: 'Orbitron', monospace; font-weight: 900; }
.live-seat-votes { font-size: 0.75rem; color: var(--text-muted); margin-left: auto; }
.live-feed-empty { color: var(--text-muted); font-size: 0.85rem; text-align: center; padding: 16px; }
.campaign-indicator.is-live-mode {
    background: rgba(255, 71, 87, 0.2); border-color: var(--accent-red);
}
.campaign-indicator.is-live-mode .campaign-dot { background: var(--accent-red); }
.campaign-indicator.is-live-mode .campaign-text { color: var(--accent-red); }
.composition-live-note { margin-top: 12px; font-size: 0.8rem; color: var(--accent-red); font-family: 'Orbitron', monospace; }
.seat-live-badge {
    position: absolute; bottom: 6px; right: 6px; font-size: 0.6rem; font-weight: 700;
    padding: 2px 6px; border-radius: 6px;
}
.seat-live-badge.declared { background: rgba(0, 255, 136, 0.2); color: var(--accent-green); }
.seat-live-badge.counting { background: rgba(255, 214, 10, 0.2); color: var(--accent-yellow); animation: blink 1s infinite; }
.seat-card.has-live-declared { box-shadow: 0 0 10px rgba(0, 255, 136, 0.2); }
.seat-card.has-live-counting { box-shadow: 0 0 10px rgba(255, 214, 10, 0.15); }
.modal-live { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--border-color); }
.modal-live h3 { font-size: 0.9rem; color: var(--accent-red); margin-bottom: 8px; }

/* Monte Carlo */
.montecarlo-panel { background: var(--bg-card); border: 1px solid var(--border-color); border-radius: 12px; padding: 20px; }
.mc-summary { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 12px; margin-bottom: 16px; }
.mc-stat { text-align: center; padding: 14px; border-radius: 10px; background: rgba(0,0,0,0.12); border: 1px solid var(--border-color); }
[data-theme="light"] .mc-stat { background: rgba(0,0,0,0.04); }
.mc-stat-label { display: block; font-size: 0.7rem; color: var(--text-muted); text-transform: uppercase; margin-bottom: 4px; }
.mc-stat-value { font-family: 'Orbitron', monospace; font-size: 1.4rem; font-weight: 900; }
.mc-hung .mc-stat-value { color: var(--accent-yellow); }
.mc-hung.is-high .mc-stat-value { color: #f87171; }
.mc-hung-warn { font-size: 1.2rem; margin-left: 4px; }
.mc-hung-high { border: 1px solid rgba(248,113,113,0.3); border-radius: 10px; padding: 2px; }
.mc-ci { font-size: 0.62rem; font-weight: 500; color: var(--text-muted); font-family: 'Rajdhani', sans-serif; }
.mc-expected {
    display: flex; flex-wrap: wrap; align-items: center; gap: 10px;
    margin-bottom: 16px; font-size: 0.9rem; color: var(--text-secondary);
}
.mc-expected em { color: var(--text-muted); font-style: normal; }
.mc-outcomes { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.mc-outcome-row {
    display: flex; align-items: center; gap: 12px; padding: 8px 12px;
    border-radius: 8px; background: rgba(0,0,0,0.1); font-size: 0.85rem;
}
[data-theme="light"] .mc-outcome-row { background: rgba(0,0,0,0.04); }
.mc-outcome-row.is-majority { border-left: 3px solid transparent; }
.mc-outcome-row.is-majority .party-PH { font-weight: 700; }
.mc-outcome-row.is-hung { border-left: 3px solid rgba(248,113,113,0.5); opacity: 0.85; }
.mc-outcome-tag { font-size: 0.62rem; font-weight: 700; padding: 1px 6px; border-radius: 4px; letter-spacing: 0.05em; }
.mc-outcome-row .mc-outcome-tag { background: rgba(22,163,74,0.15); color: #4ade80; }
.mc-outcome-row.is-hung .mc-outcome-tag { background: rgba(248,113,113,0.15); color: #f87171; }
.mc-rank { font-family: 'Orbitron', monospace; font-size: 0.7rem; color: var(--text-muted); width: 24px; }
.mc-prob { margin-left: auto; font-family: 'Orbitron', monospace; font-weight: 700; color: var(--accent-cyan); }

/* Spinometer */
.mc-spinometer { margin-bottom: 16px; }
.spinometer-bar { display: flex; height: 28px; border-radius: 8px; overflow: hidden; border: 1px solid var(--border-color); }
.spinometer-seg { display: flex; align-items: center; justify-content: center; font-size: 0.72rem; font-weight: 700; color: #fff; transition: width 0.5s; }
.spinometer-seg.party-PH { background: var(--ph-color); }
.spinometer-seg.party-BN { background: var(--bn-color); }
.spinometer-seg.party-PN { background: var(--pn-color); }
.spinometer-label { text-align: center; font-size: 0.78rem; margin-top: 6px; color: var(--text-muted); }
.mc-chart { height: 260px; margin-bottom: 14px; }
.mc-rerun-btn {
    display: block; margin: 0 auto; padding: 10px 22px; border-radius: 999px;
    border: 1px solid var(--accent-cyan); background: transparent;
    color: var(--text-primary); font-family: 'Orbitron', monospace;
    font-size: 0.75rem; font-weight: 700; cursor: pointer;
}
.mc-rerun-btn:hover { background: rgba(0, 212, 255, 0.1); }
.mc-rerun-btn:disabled { opacity: 0.5; cursor: not-allowed; }

.gpt-label {
    display: inline-flex; align-items: center; justify-content: center;
    width: max-content; padding: 3px 8px; border-radius: 999px;
    border: 1px solid rgba(168, 85, 247, 0.5);
    background: rgba(168, 85, 247, 0.14); color: var(--accent-purple);
    font-family: 'Orbitron', monospace; font-size: 0.58rem; font-weight: 900;
    letter-spacing: 0.08em; text-transform: uppercase;
}

/* Simulation controls */
.simulation-controls-section {
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.06), rgba(168, 85, 247, 0.08));
    border: 1px solid rgba(168, 85, 247, 0.35); border-radius: 14px; padding: 22px;
}
.simulation-controls-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.simulation-controls-head .section-title { margin-bottom: 0; }
.sim-reset-btn {
    padding: 7px 14px; border-radius: 999px; border: 1px solid var(--border-color);
    background: var(--bg-card); color: var(--text-secondary); font-family: 'Orbitron', monospace;
    font-size: 0.68rem; font-weight: 800; cursor: pointer; text-transform: uppercase;
}
.sim-reset-btn:hover { color: var(--text-primary); border-color: var(--accent-purple); }
.sim-controls-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 14px; }
.sim-control-card {
    background: var(--bg-card); border: 1px solid var(--border-color);
    border-radius: 12px; padding: 14px; display: flex; flex-direction: column; gap: 10px;
}
.sim-control-top { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; }
.sim-control-top label { font-weight: 800; font-size: 0.92rem; }
.sim-control-value { font-family: 'JetBrains Mono', monospace; color: var(--accent-cyan); font-size: 0.78rem; white-space: nowrap; }
.sim-input[type="range"] { width: 100%; accent-color: var(--accent-purple); }
.sim-input:not([type="range"]) {
    width: 100%; padding: 9px 10px; border-radius: 8px; border: 1px solid var(--border-color);
    background: var(--bg-secondary); color: var(--text-primary); font-family: 'Rajdhani', sans-serif; font-weight: 700;
}
.sim-suggestion-btn {
    width: max-content; padding: 6px 10px; border-radius: 999px;
    border: 1px solid rgba(0, 212, 255, 0.35); background: rgba(0, 212, 255, 0.08);
    color: var(--accent-cyan); font-family: 'Orbitron', monospace; font-size: 0.58rem;
    font-weight: 900; cursor: pointer; text-transform: uppercase; letter-spacing: 0.06em;
}
.sim-suggestion-btn:hover { border-color: var(--accent-purple); color: var(--accent-purple); }
.suggestion-modal { position: fixed; inset: 0; z-index: 9600; display: flex; align-items: center; justify-content: center; padding: 16px; }
.suggestion-modal.hidden { display: none; }
.suggestion-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,0.65); }
.suggestion-card {
    position: relative; width: min(520px, 100%); max-height: calc(100vh - 32px); overflow-y: auto;
    background: var(--bg-secondary); border: 1px solid rgba(168, 85, 247, 0.45);
    border-radius: 14px; padding: 24px; box-shadow: var(--live-panel-shadow);
}
.suggestion-close {
    position: absolute; top: 12px; right: 14px; width: 32px; height: 32px;
    border: none; border-radius: 8px; background: var(--bg-card); color: var(--text-primary);
    font-size: 1.2rem; cursor: pointer;
}
.suggestion-card h2 { font-family: 'Orbitron', monospace; font-size: 1.05rem; margin: 12px 34px 14px 0; }
.suggestion-card h3 { font-size: 0.85rem; color: var(--accent-cyan); margin: 14px 0 8px; }
.suggestion-card p { color: var(--text-secondary); line-height: 1.5; font-size: 0.9rem; margin-top: 12px; }
.suggestion-card em { display: block; color: var(--text-muted); font-style: normal; font-size: 0.78rem; margin-top: 14px; }
.suggestion-metric {
    display: flex; justify-content: space-between; gap: 12px; padding: 9px 0;
    border-bottom: 1px solid var(--border-color); font-size: 0.88rem;
}
.suggestion-metric span { color: var(--text-muted); }
.suggestion-metric strong { color: var(--text-primary); font-family: 'JetBrains Mono', monospace; text-align: right; }
.suggestion-links { display: flex; flex-wrap: wrap; gap: 8px; }
.suggestion-links a {
    padding: 7px 10px; border-radius: 999px; border: 1px solid var(--border-color);
    color: var(--accent-cyan); text-decoration: none; font-size: 0.78rem; font-weight: 800;
}
.suggestion-links a:hover { border-color: var(--accent-cyan); background: rgba(0, 212, 255, 0.08); }

/* GPT regression lab */
.regression-section-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.regression-section-head .section-title { margin-bottom: 0; }
.regression-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.regression-card {
    background: var(--bg-card); border: 1px solid var(--border-color);
    border-radius: 12px; padding: 16px; transition: transform 0.2s, border-color 0.2s;
}
.regression-card:hover { transform: translateY(-2px); border-color: var(--accent-purple); }
.regression-card.party-PH { border-top: 3px solid var(--ph-color); }
.regression-card.party-BN { border-top: 3px solid var(--bn-color); }
.regression-card.party-PN { border-top: 3px solid var(--pn-color); }
.regression-card-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.regression-id { font-family: 'Orbitron', monospace; font-size: 0.75rem; font-weight: 900; color: var(--accent-cyan); }
.regression-card h3 { font-size: 1rem; line-height: 1.2; margin-bottom: 12px; }
.regression-leader { display: flex; justify-content: space-between; color: var(--text-muted); font-size: 0.8rem; margin-bottom: 8px; }
.regression-leader strong { font-family: 'Orbitron', monospace; }
.regression-seatline { display: flex; flex-wrap: wrap; gap: 8px; font-family: 'JetBrains Mono', monospace; font-size: 0.78rem; margin-bottom: 12px; }
.regression-bars { display: flex; flex-direction: column; gap: 6px; }
.regression-bar-row { display: grid; grid-template-columns: 28px 1fr 22px; align-items: center; gap: 8px; font-size: 0.75rem; color: var(--text-secondary); }
.regression-bar-row div { height: 6px; background: rgba(255,255,255,0.06); border-radius: 999px; overflow: hidden; }
[data-theme="light"] .regression-bar-row div { background: rgba(0,0,0,0.06); }
.regression-bar-row em { display: block; height: 100%; border-radius: 999px; }
.regression-bar-row b { font-family: 'Orbitron', monospace; color: var(--text-primary); }
.regression-meta { margin-top: 10px; color: var(--text-muted); font-size: 0.75rem; text-align: right; }

/* News live */
.news-section-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 4px; }
.news-section-head .section-title { margin-bottom: 0; }
.news-live-badge {
    font-family: 'Orbitron', monospace; font-size: 0.65rem; font-weight: 700;
    padding: 4px 10px; border-radius: 12px;
    background: rgba(0, 255, 136, 0.12); color: var(--accent-green);
    border: 1px solid rgba(0, 255, 136, 0.35);
}
.news-desc { font-size: 0.82rem; color: var(--text-muted); line-height: 1.4; margin-bottom: 8px; }

/* Projections */
.projection-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 20px; }
.projection-card {
    background: var(--bg-card); border: 1px solid var(--border-color);
    border-radius: 12px; padding: 20px; transition: border-color 0.2s, transform 0.2s;
}
.projection-card:hover { border-color: var(--accent-cyan); transform: translateY(-2px); }
.projection-card.scenario-a { border-top: 3px solid var(--ph-color); }
.projection-card.scenario-b { border-top: 3px solid var(--bn-color); }
.projection-card.scenario-c { border-top: 3px solid var(--accent-yellow); }
.projection-card-head { display: flex; justify-content: space-between; margin-bottom: 8px; }
.projection-id { font-family: 'Orbitron', monospace; font-weight: 900; font-size: 1.2rem; color: var(--accent-cyan); }
.projection-prob { font-family: 'Orbitron', monospace; font-weight: 700; color: var(--accent-yellow); }
.projection-prob.prob-up { color: #4ade80; }
.projection-prob.prob-down { color: #f87171; }
.projection-adj { font-family: 'Orbitron', monospace; font-size: 0.72rem; font-weight: 600; padding: 2px 6px; border-radius: 4px; margin-left: 6px; }
.projection-adj.adj-up { color: #4ade80; background: rgba(74,222,128,0.12); }
.projection-adj.adj-down { color: #f87171; background: rgba(248,113,113,0.12); }
.projection-label { font-size: 1.1rem; font-weight: 700; margin-bottom: 8px; }
.projection-seats { font-family: 'JetBrains Mono', monospace; font-size: 0.9rem; color: var(--text-secondary); margin-bottom: 10px; }
.projection-summary { font-size: 0.85rem; color: var(--text-muted); line-height: 1.5; margin-bottom: 10px; }
.projection-mb { font-size: 0.85rem; color: var(--text-secondary); }
.chart-wrapper { background: var(--bg-card); border: 1px solid var(--border-color); border-radius: 12px; padding: 16px; }
.projection-chart { height: 280px; }
.sentiment-chart { height: 220px; }

/* Seat grid */
.seats-section-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.seats-count {
    font-family: 'Orbitron', monospace; font-size: 0.85rem;
    background: var(--bg-card); border: 1px solid var(--border-color);
    padding: 4px 12px; border-radius: 20px;
}
.seat-filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.seat-filter, .fixture-filter {
    padding: 6px 14px; border-radius: 20px;
    border: 1px solid var(--border-color); background: var(--bg-card);
    color: var(--text-secondary); font-family: 'Rajdhani', sans-serif;
    font-size: 0.9rem; font-weight: 600; cursor: pointer; transition: all 0.2s;
}
.seat-filter.active, .seat-filter:hover { border-color: var(--accent-cyan); color: var(--text-primary); background: rgba(10,132,255,0.08); }
.seat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
.seat-card {
    position: relative; display: flex; flex-direction: column; gap: 4px;
    padding: 12px; border-radius: 10px; border: 1px solid var(--border-color);
    background: var(--bg-card); cursor: pointer; text-align: left;
    transition: transform 0.15s, border-color 0.15s, box-shadow 0.15s;
    font-family: inherit; color: inherit;
}
.seat-card:hover { transform: translateY(-2px); border-color: var(--accent-cyan); box-shadow: var(--shadow-glow); }
.seat-card.party-PH { border-left: 3px solid var(--ph-color); }
.seat-card.party-BN { border-left: 3px solid var(--bn-color); }
.seat-card.party-PN { border-left: 3px solid var(--pn-color); }
.seat-card.is-battleground { box-shadow: 0 0 12px rgba(255,214,10,0.2); }
.seat-code { font-family: 'Orbitron', monospace; font-size: 0.7rem; color: var(--text-muted); }
.seat-name { font-weight: 700; font-size: 0.95rem; }
.seat-party { font-family: 'Orbitron', monospace; font-size: 0.75rem; font-weight: 700; }
.seat-margin { font-size: 0.8rem; color: var(--text-muted); }
.seat-bg-badge { position: absolute; top: 8px; right: 8px; font-size: 0.75rem; }
.seat-lean { font-size: 0.65rem; color: var(--accent-yellow); font-family: 'JetBrains Mono', monospace; }

/* War room track */
.warroom-layout { background: var(--bg-card); border: 1px solid var(--border-color); border-radius: 12px; padding: 24px; }
.warroom-seats { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 16px; }
.warroom-seat {
    width: 28px; height: 28px; border-radius: 4px; font-size: 0.55rem;
    display: flex; align-items: center; justify-content: center;
}
.warroom-seat.party-PH { background: var(--ph-color); }
.warroom-seat.party-BN { background: var(--bn-color); }
.warroom-seat.party-PN { background: var(--pn-color); }
.warroom-seat.is-majority-line { outline: 2px solid var(--accent-yellow); outline-offset: 2px; }
.warroom-labels { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 8px; }
.warroom-label { font-family: 'Orbitron', monospace; font-size: 0.85rem; font-weight: 700; }
.warroom-majority-note { font-size: 0.85rem; color: var(--text-muted); }
.warroom-legend { display: flex; gap: 20px; margin-top: 16px; flex-wrap: wrap; }
.legend-item { display: flex; align-items: center; gap: 8px; font-size: 0.9rem; }
.legend-swatch { width: 14px; height: 14px; border-radius: 3px; }

/* Sentiment */
.sentiment-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.sentiment-party-card {
    background: var(--bg-card); border: 1px solid var(--border-color);
    border-radius: 10px; padding: 16px; margin-bottom: 12px;
}
.sentiment-party-label { display: block; font-size: 0.85rem; color: var(--text-muted); margin-bottom: 4px; }
.sentiment-party-value { font-family: 'Orbitron', monospace; font-size: 1.4rem; font-weight: 900; }
.sentiment-party-bar { height: 6px; background: rgba(255,255,255,0.06); border-radius: 3px; margin-top: 8px; overflow: hidden; }
[data-theme="light"] .sentiment-party-bar { background: rgba(0,0,0,0.06); }
.sentiment-party-bar div { height: 100%; border-radius: 3px; transition: width 0.5s; }
.sentiment-period { font-size: 0.8rem; color: var(--text-muted); margin-top: 8px; }

/* News */
.news-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.news-card {
    display: block; background: var(--bg-card); border: 1px solid var(--border-color);
    border-radius: 10px; padding: 16px; text-decoration: none; color: inherit;
    transition: border-color 0.2s, transform 0.2s;
}
.news-card:hover { border-color: var(--accent-cyan); transform: translateY(-2px); }
.news-card-head { display: flex; justify-content: space-between; margin-bottom: 8px; }
.news-source { font-size: 0.75rem; color: var(--accent-cyan); font-weight: 600; text-transform: uppercase; }
.news-date { font-size: 0.75rem; color: var(--text-muted); }
.news-title { font-size: 1rem; font-weight: 600; line-height: 1.4; margin-bottom: 10px; }
.news-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.news-tag {
    font-size: 0.7rem; padding: 2px 8px; border-radius: 12px;
    background: rgba(10,132,255,0.08); color: var(--text-muted);
}
.news-card.sentiment-ph_positive { border-left: 3px solid var(--ph-color); }
.news-card.sentiment-bn_positive { border-left: 3px solid var(--bn-color); }
.news-card.sentiment-pn_positive { border-left: 3px solid var(--pn-color); }

/* History */
.history-timeline { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; margin-bottom: 20px; }
.history-card {
    background: var(--bg-card); border: 1px solid var(--border-color);
    border-radius: 10px; padding: 18px;
}
.history-year { font-family: 'Orbitron', monospace; font-size: 1.4rem; font-weight: 900; color: var(--accent-cyan); }
.history-label { font-size: 1rem; font-weight: 700; margin: 6px 0; }
.history-seats, .history-pv, .history-mb { font-size: 0.85rem; color: var(--text-secondary); margin-bottom: 4px; }
.history-note { font-size: 0.8rem; color: var(--text-muted); margin-top: 8px; line-height: 1.4; }
.context-box {
    background: var(--bg-card); border: 1px solid var(--border-color);
    border-radius: 10px; padding: 20px; border-left: 3px solid var(--accent-yellow);
}
.context-box h3 { font-family: 'Orbitron', monospace; font-size: 0.9rem; margin-bottom: 10px; }
.context-box ul { padding-left: 20px; color: var(--text-secondary); font-size: 0.9rem; line-height: 1.6; }
.context-dates { margin-top: 12px; font-family: 'JetBrains Mono', monospace; font-size: 0.85rem; color: var(--accent-cyan); }

/* Neural section */
.neural-sub { color: var(--text-muted); font-size: 0.85rem; margin: -8px 0 16px; }
.neural-flow { display: flex; align-items: center; justify-content: center; gap: 0; flex-wrap: wrap; margin-bottom: 20px; }
.neural-block {
    display: flex; flex-direction: column; align-items: center; gap: 6px;
    padding: 16px 20px; background: var(--bg-card); border: 1px solid var(--border-color);
    border-radius: 10px; transition: border-color 0.3s, box-shadow 0.3s;
}
.neural-block.active { border-color: var(--accent-cyan); box-shadow: 0 0 16px rgba(10,132,255,0.12); }
.neural-block span { font-size: 1.4rem; }
.neural-block em { font-style: normal; font-size: 0.75rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.08em; }
.neural-connector { width: 32px; height: 2px; background: linear-gradient(90deg, var(--accent-cyan), var(--accent-purple)); }
.neural-output-row { display: grid; grid-template-columns: 1fr 280px; gap: 16px; }
.neural-terminal {
    background: #0d1117; border: 1px solid var(--border-color); border-radius: 10px;
    padding: 14px; height: 160px; overflow-y: auto;
    font-family: 'JetBrains Mono', monospace; font-size: 0.78rem; color: var(--accent-green);
}
[data-theme="light"] .neural-terminal { background: #1e293b; }
.terminal-line { margin-bottom: 4px; opacity: 0.9; }
.neural-champion { background: var(--bg-card); border: 1px solid var(--border-color); border-radius: 10px; padding: 20px; }
.neural-pick { display: flex; flex-direction: column; gap: 6px; text-align: center; }
.neural-pick-label { font-size: 0.75rem; color: var(--text-muted); text-transform: uppercase; }
.neural-pick-value { font-family: 'Orbitron', monospace; font-size: 2rem; font-weight: 900; color: var(--ph-color); }
.neural-pick-detail { font-weight: 700; }
.neural-pick-seats { font-family: 'JetBrains Mono', monospace; font-size: 0.85rem; color: var(--text-secondary); }

/* Floating war room panel */
.war-room-anchor { height: 0; scroll-margin-top: 88px; }

.live-matches-section.is-floating-panel {
    position: fixed; z-index: 9100;
    left: max(12px, env(safe-area-inset-left));
    right: max(12px, env(safe-area-inset-right));
    bottom: auto; top: 50%;
    max-width: 520px; margin: 0 auto;
    background: var(--live-panel-bg);
    border: 2px solid var(--live-panel-border);
    border-radius: 14px;
    box-shadow: var(--live-panel-shadow);
    backdrop-filter: blur(12px);
    transition: box-shadow 0.2s;
}
.live-matches-section.is-floating-panel.is-positioned {
    bottom: auto;
}
.live-matches-section.is-floating-panel.is-dragging { cursor: grabbing; box-shadow: 0 24px 60px rgba(0,0,0,0.5); }
.live-matches-section.is-floating-panel.is-dragging,
.live-matches-section.is-floating-panel.is-dragging * { user-select: none; }

.live-section-head {
    display: flex; align-items: stretch;
    background: var(--live-panel-head-bg);
    border-bottom: 1px solid var(--border-color);
    border-radius: 12px 12px 0 0;
}
.live-section-drag {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    width: 44px; border: none; border-right: 1px solid var(--border-color);
    background: transparent; color: var(--text-muted); cursor: grab; padding: 8px 4px;
}
.live-section-drag:active { cursor: grabbing; }
.live-section-drag-icon { font-size: 0.9rem; letter-spacing: -2px; line-height: 1; }
.live-section-drag-label { font-size: 0.55rem; font-weight: 700; letter-spacing: 0.06em; margin-top: 2px; }
.live-section-toggle {
    flex: 1; display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
    padding: 12px 14px; border: none; background: transparent;
    color: var(--text-primary); cursor: pointer; text-align: left; font-family: inherit;
}
.live-section-title { font-family: 'Orbitron', monospace; font-size: 0.82rem; font-weight: 800; letter-spacing: 0.06em; }
.live-section-hint { font-size: 0.78rem; color: var(--text-muted); flex: 1; min-width: 140px; }
.final-live-pill {
    font-family: 'Orbitron', monospace; font-size: 0.65rem; font-weight: 700;
    padding: 3px 8px; border-radius: 12px;
    background: rgba(255,71,87,0.2); color: var(--accent-red);
    border: 1px solid rgba(255,71,87,0.4);
}
.live-section-chevron { font-size: 0.9rem; color: var(--text-muted); margin-left: auto; }
.live-section-body { padding: 14px; max-height: 60vh; overflow-y: auto; }
.live-section-body.is-collapsed { display: none; }

.live-matches-section.is-panel-collapsed .live-section-hint { display: inline; }
.live-matches-section.is-panel-collapsed .final-live-pill { display: inline; }
.live-matches-section.is-panel-collapsed { max-width: min(480px, calc(100vw - 24px)); }
.live-matches-section.is-panel-collapsed .live-section-head { border-radius: 12px; border-bottom: none; }
.live-matches-section.is-panel-collapsed .live-section-toggle { padding: 10px 14px; }

.warroom-panel-grid { display: flex; flex-direction: column; gap: 10px; }
.warroom-seat-card {
    background: rgba(0,0,0,0.14); border: 1px solid var(--border-color);
    border-radius: 8px; padding: 12px;
}
[data-theme="light"] .warroom-seat-card { background: rgba(0,0,0,0.04); }
.warroom-seat-head { display: flex; justify-content: space-between; font-weight: 700; font-size: 0.9rem; margin-bottom: 8px; }
.warroom-lean { font-size: 0.7rem; color: var(--accent-yellow); font-family: 'JetBrains Mono', monospace; }
.warroom-prob-row { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; font-size: 0.78rem; }
.warroom-prob-row span:first-child { width: 24px; font-weight: 700; }
.warroom-prob-bar { flex: 1; height: 5px; background: rgba(255,255,255,0.06); border-radius: 3px; overflow: hidden; }
.warroom-prob-bar div { height: 100%; border-radius: 3px; }
.warroom-margin { font-size: 0.75rem; color: var(--text-muted); margin-top: 6px; }
.warroom-scenario-mini { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--border-color); }
.scenario-mini { display: flex; flex-direction: column; gap: 4px; }
.scenario-mini-label { font-family: 'Orbitron', monospace; font-size: 0.75rem; color: var(--accent-cyan); }
.scenario-mini-seats { font-family: 'JetBrains Mono', monospace; font-size: 0.8rem; color: var(--text-secondary); }

/* Seat modal */
.seat-modal { position: fixed; inset: 0; z-index: 9500; display: flex; align-items: center; justify-content: center; }
.seat-modal.hidden { display: none; }
.seat-modal-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,0.6); }
.seat-modal-card {
    position: relative; background: var(--bg-secondary); border: 1px solid var(--border-color);
    border-radius: 14px; padding: 28px; max-width: 440px; width: calc(100% - 32px);
    box-shadow: var(--live-panel-shadow);
}
.seat-modal-close {
    position: absolute; top: 12px; right: 14px;
    width: 32px; height: 32px; border: none; border-radius: 8px;
    background: var(--bg-card); color: var(--text-primary);
    font-size: 1.2rem; cursor: pointer;
}
.seat-modal-card h2 { font-family: 'Orbitron', monospace; font-size: 1.1rem; margin-bottom: 8px; }
.modal-region { color: var(--text-muted); font-size: 0.85rem; margin-bottom: 14px; }
.modal-stats { display: flex; flex-direction: column; gap: 8px; font-size: 0.9rem; }
.modal-projection { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--border-color); }
.modal-projection h3 { font-size: 0.9rem; color: var(--accent-cyan); margin-bottom: 8px; }

@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.7; } }

/* Responsive */
@media (max-width: 900px) {
    .composition-layout { grid-template-columns: 1fr; }
    .projection-grid { grid-template-columns: 1fr; }
    .sentiment-layout { grid-template-columns: 1fr; }
    .neural-output-row { grid-template-columns: 1fr; }
    .header { flex-direction: column; align-items: flex-start; }
    .live-totals { grid-template-columns: 1fr; }
    .mc-summary { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
    .final-hero-countdown { flex-direction: column; align-items: flex-start; }
    .countdown-blocks { width: 100%; justify-content: center; }
    .seat-grid { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); }
    .live-matches-section.is-floating-panel { max-width: calc(100vw - 16px); }
    .live-matches-section.is-panel-collapsed .live-section-hint { font-size: 0.72rem; }
    .cd-value { font-size: 1.6rem; }
    .regression-table {
        display: block;
        width: 100%;
        min-width: 960px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    .regression-table th,
    .regression-table td {
        min-width: 92px;
    }
    .stats-grid {
        grid-template-columns: 1fr;
    }
    .stat-card {
        min-width: 0;
    }
}

[data-theme="light"] .live-matches-section.is-panel-collapsed .live-section-hint { color: var(--text-secondary); }
[data-theme="light"] .live-section-drag { border-right-color: var(--border-color); }

/* ── Social Media Sentiment ── */

.social-sentiment-section { margin-bottom: 28px; }

.social-summary {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 20px;
}

.social-summary-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 16px 20px;
    text-align: center;
}

.social-summary-card.party-PH { border-top: 3px solid var(--ph-color); }
.social-summary-card.party-BN { border-top: 3px solid var(--bn-color); }
.social-summary-card.party-PN { border-top: 3px solid var(--pn-color); }

.social-summary-label { display: block; font-size: 0.85rem; color: var(--text-muted); margin-bottom: 6px; }
.social-summary-value { font-family: 'Orbitron', monospace; font-size: 2rem; font-weight: 900; }
.social-summary-bar { height: 6px; background: rgba(255,255,255,0.06); border-radius: 3px; margin-top: 10px; overflow: hidden; }
[data-theme="light"] .social-summary-bar { background: rgba(0,0,0,0.06); }
.social-summary-bar div { height: 100%; border-radius: 3px; transition: width 0.6s; }

.social-platform-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 14px;
}

.social-platform-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 16px;
    transition: border-color 0.2s, transform 0.2s;
}

.social-platform-card:hover { border-color: var(--accent-cyan); transform: translateY(-2px); }

.social-platform-head {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.social-platform-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 0.9rem;
    background: rgba(10,132,255,0.08);
    color: var(--accent-cyan);
    flex-shrink: 0;
}

.social-platform-name { font-weight: 700; font-size: 1rem; }
.social-platform-volume { font-size: 0.8rem; color: var(--text-muted); margin-left: auto; }

.social-platform-bars { display: flex; flex-direction: column; gap: 8px; }

.social-platform-bar-row {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
}

.social-platform-bar-row .party-label { width: 28px; font-weight: 700; }
.social-platform-bar-row .bar-track { flex: 1; height: 8px; background: rgba(255,255,255,0.06); border-radius: 4px; overflow: hidden; }
[data-theme="light"] .social-platform-bar-row .bar-track { background: rgba(0,0,0,0.06); }
.social-platform-bar-row .bar-fill { height: 100%; border-radius: 4px; transition: width 0.5s; }
.social-platform-bar-row .bar-pct { width: 44px; text-align: right; font-family: 'Orbitron', monospace; font-size: 0.8rem; }

.social-platform-top {
    margin-top: 10px;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.social-platform-top strong { font-family: 'Orbitron', monospace; }

.social-disclaimer { display: block; margin-top: 12px; font-size: 0.78rem; color: var(--text-muted); }

/* Collapsible section */
.is-collapsible .collapsible-header {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 12px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    text-align: left;
}

.is-collapsible .collapsible-header .section-title { margin: 0; flex: 1; }
.is-collapsible .collapsible-chevron { font-size: 1.2rem; color: var(--text-muted); transition: transform 0.3s; }
.is-collapsible:not(.is-collapsed) .collapsible-chevron { transform: rotate(90deg); }

.is-collapsible .collapsible-body { overflow: hidden; transition: max-height 0.4s ease, opacity 0.3s, padding 0.3s; }
.is-collapsible.is-collapsed .collapsible-body { max-height: 0; opacity: 0; padding-top: 0; padding-bottom: 0; }
.is-collapsible:not(.is-collapsed) .collapsible-body { max-height: 3000px; opacity: 1; padding-top: 16px; }

/* Social providers grid */
.social-providers { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--border-color); }
.social-providers h4 { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 10px; text-transform: uppercase; letter-spacing: 0.05em; }
.social-providers-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; }
.social-provider-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 10px 14px;
    display: flex;
    flex-direction: column;
    gap: 3px;
}
.social-provider-card .provider-name { font-weight: 700; font-size: 0.88rem; }
.social-provider-card .provider-cost { font-size: 0.76rem; color: var(--text-muted); }
.social-provider-card .provider-status { font-size: 0.72rem; }
.provider-status:contains("Available") { color: #16a34a; }
.provider-status:contains("Limited") { color: #f59e0b; }
.provider-status:contains("Commercial") { color: #6366f1; }

/* Disclaimer banner — merah bold */
.social-disclaimer-banner {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    background: rgba(225, 29, 72, 0.12);
    border: 1px solid rgba(225, 29, 72, 0.4);
    border-left: 4px solid #e11d48;
    border-radius: 8px;
    padding: 12px 16px;
    margin-bottom: 16px;
}

.social-disclaimer-banner .disclaimer-icon {
    font-size: 1.2rem;
    color: #e11d48;
    flex-shrink: 0;
    line-height: 1.4;
}

.social-disclaimer-banner em {
    color: #fca5a5;
    font-weight: 700;
    font-style: normal;
    font-size: 0.85rem;
    line-height: 1.5;
}

[data-theme="light"] .social-disclaimer-banner em { color: #be123c; }

.social-disclaimer { display: none; }

@media (max-width: 900px) {
    .social-summary { grid-template-columns: 1fr; }
}

/* ── Method sections (3 unjuran berbeza) ── */

.method-scenario {
    border-left: 4px solid var(--accent-cyan);
    padding-left: 20px;
    border-radius: 0 12px 12px 0;
}

.method-montecarlo {
    border-left: 4px solid #8b5cf6;
    padding-left: 20px;
    border-radius: 0 12px 12px 0;
}

.method-regression {
    border-left: 4px solid #16a34a;
    padding-left: 20px;
    border-radius: 0 12px 12px 0;
}

.method-tag {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 600;
    padding: 2px 10px;
    border-radius: 20px;
    margin-left: 10px;
    vertical-align: middle;
}

.method-scenario .method-tag { background: rgba(10,132,255,0.10); color: var(--accent-cyan); border: 1px solid rgba(10,132,255,0.25); }
.method-montecarlo .method-tag { background: rgba(139,92,246,0.15); color: #a78bfa; border: 1px solid rgba(139,92,246,0.3); }
.method-regression .method-tag { background: rgba(22,163,74,0.15); color: #4ade80; border: 1px solid rgba(22,163,74,0.3); }

/* ── Export PDF bar ── */

.export-report-bar {
    text-align: center;
    padding: 20px 0;
    margin-bottom: 28px;
}

.export-pdf-btn {
    background: linear-gradient(135deg, var(--accent-cyan), #8338ec);
    color: #fff;
    border: none;
    padding: 14px 36px;
    font-size: 1rem;
    font-weight: 700;
    font-family: 'Rajdhani', sans-serif;
    border-radius: 10px;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    letter-spacing: 0.05em;
}

.export-pdf-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(10,132,255,0.25);
}

.export-pdf-btn:active { transform: translateY(0); }

/* ── Print/PDF styles ── */

@media print {
    .live-ticker, .header-right, .campaign-indicator, .war-room-panel,
    .cyber-globe-wrapper, #cyber-network-root, .seat-modal, .suggestion-modal,
    .live-results-section, .simulation-controls-section, .news-section,
    .social-sentiment-section, .seat-filters, .export-report-bar,
    .sim-suggestion-btn, .mc-rerun-btn, .seat-modal, #liveTicker,
    .ainna-skip-link, footer, .cookie-consent { display: none !important; }

    body { background: #fff !important; color: #000 !important; }
    .dashboard { max-width: 100% !important; }

    .method-scenario, .method-montecarlo, .method-regression {
        border-left: 4px solid #666;
        page-break-inside: avoid;
        margin-bottom: 20px;
        padding: 10px 15px;
    }

    .projection-card, .regression-card, .mc-outcome-row {
        border: 1px solid #ccc !important;
        background: #f8f8f8 !important;
        color: #000 !important;
    }

    .section-title { color: #000 !important; }
    .method-tag { border: 1px solid #999 !important; }
    .composition-bars, .warroom-track { color: #000 !important; }
}

/* Two-card composition layout */
.comp-card { margin-bottom: 22px; }
.comp-card:last-child { margin-bottom: 0; }
.comp-card-title {
    font-family: 'Orbitron', monospace; font-weight: 700; font-size: 0.8rem;
    text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-muted);
    margin-bottom: 12px;
}
.comp-card-others { margin-top: 8px; font-size: 0.75rem; color: var(--text-muted); font-family: 'Orbitron', monospace; }
.party-MUDA, .comp-bar-label.party-MUDA { color: var(--muda-color, #2ecc71); }

/* Composition card contrast: beat the global dark-theme color override */
[data-theme="dark"] .composition-bars,
[data-theme="dark"] .comp-card,
[data-theme="dark"] .comp-card-title,
[data-theme="dark"] .comp-card-others,
[data-theme="dark"] .comp-bar-value { color: var(--text-light, #f5f5f5) !important; }
[data-theme="light"] .composition-bars,
[data-theme="light"] .comp-card,
[data-theme="light"] .comp-card-title,
[data-theme="light"] .comp-card-others,
[data-theme="light"] .comp-bar-value { color: var(--text-dark, #1a1a1a) !important; }

/* Unjuran Gabungan: force full-width block below the PRE-DISSOLUTION card */
.composition-section.unjuran-section { display: block; clear: both; margin-top: 30px; }
.composition-section.unjuran-section .unjuran-bars { width: 100%; }

/* === PRN TOTAL style button for data link (clean, basic, no neon) === */
.ctrl-data-btn {
    width: auto;
    min-width: 132px;
    padding: 0 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: var(--accent);
    border-color: var(--accent-border);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.82rem;
    letter-spacing: 0.01em;
}
.ctrl-data-btn span { white-space: nowrap; }
.ctrl-data-btn:hover {
    background: var(--accent-soft);
    border-color: var(--accent);
}


/* ── Simulation Remarks ── */
.method-tag.tag-rem { background: var(--accent-soft); color: var(--accent); border: 1px solid var(--accent-border); }
.remarks-wrap { display: flex; flex-direction: column; gap: 16px; }
.remarks-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.remarks-card {
    background: var(--bg-card); border: 1px solid var(--border-color);
    border-radius: 12px; padding: 18px 20px; position: relative; overflow: hidden;
}
.remarks-card::before {
    content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px;
    background: var(--accent);
}
.remarks-card-head {
    display: flex; align-items: center; gap: 8px;
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", sans-serif;
    font-size: 0.72rem; font-weight: 700; text-transform: uppercase;
    letter-spacing: 0.06em; color: var(--accent); margin-bottom: 12px;
}
.remarks-card-body { color: var(--text-secondary); font-size: 0.88rem; line-height: 1.65; }
.remarks-card-body strong { color: var(--text-primary); font-weight: 600; }
.remarks-card-body .party-PH { color: var(--ph-color); font-weight: 700; }
.remarks-card-body .party-BN { color: var(--bn-color); font-weight: 700; }
.remarks-card-body .party-PN { color: var(--pn-color); font-weight: 700; }
.remarks-card-body .party-OTHER { color: var(--other-color); font-weight: 700; }
.remarks-battle-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.remarks-battle-chip {
    font-size: 0.78rem; font-weight: 600; padding: 6px 14px;
    border-radius: 10px; border: 1px solid var(--border-color);
    background: var(--bg-secondary); color: var(--text-primary);
    display: inline-flex; align-items: center; gap: 6px;
}
.remarks-battle-chip .battle-seats { font-family: "JetBrains Mono", monospace; font-size: 0.72rem; color: var(--text-muted); }
.remarks-sentiment-bar {
    display: flex; align-items: center; gap: 10px; margin-top: 10px; padding: 10px 14px;
    background: var(--bg-secondary); border-radius: 10px; border: 1px solid var(--border-color);
}
.remarks-sentiment-bar .sent-label-sm { font-size: 0.72rem; font-weight: 600; width: 32px; }
.remarks-sentiment-bar .sent-bar-sm { flex: 1; height: 6px; border-radius: 3px; background: rgba(255,255,255,0.07); overflow: hidden; }
.remarks-sentiment-bar .sent-fill-sm { height: 100%; border-radius: 3px; }
.remarks-sentiment-bar .sent-val-sm { font-family: "JetBrains Mono", monospace; font-size: 0.72rem; width: 40px; text-align: right; }
.remarks-note {
    margin-top: 12px; padding: 10px 14px; border-left: 3px solid var(--accent);
    background: var(--bg-secondary); border-radius: 0 8px 8px 0;
    font-size: 0.78rem; color: var(--text-muted); line-height: 1.5;
}
.remarks-full { grid-column: 1 / -1; }
@media (max-width: 900px) { .remarks-grid { grid-template-columns: 1fr; } }

/* -- Cadangan Strategi -- */
.cadangan-grid { display: flex; flex-direction: column; gap: 18px; }
.cadangan-party {
    padding: 16px; border-radius: 10px; border: 1px solid var(--border-color);
    background: var(--bg-secondary); position: relative;
}
.cadangan-party-head {
    display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px;
}
.cadangan-party-name {
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", sans-serif;
    font-size: 0.95rem; font-weight: 700; letter-spacing: 0.02em;
}
.cadangan-party-name.party-PH { color: var(--ph-color); }
.cadangan-party-name.party-BN { color: var(--bn-color); }
.cadangan-party-name.party-PN { color: var(--pn-color); }
.cadangan-party-seats {
    font-family: "JetBrains Mono", monospace; font-size: 0.78rem;
    color: var(--text-muted); font-weight: 600;
}
.cadangan-gap-bar {
    height: 8px; background: var(--track, rgba(255,255,255,0.07)); border-radius: 4px; overflow: visible;
    margin-bottom: 12px; position: relative;
}
.cadangan-gap-fill {
    height: 100%; border-radius: 4px; transition: width 0.6s ease; position: relative;
}
.cadangan-gap-fill.party-PH { background: var(--ph-color); }
.cadangan-gap-fill.party-BN { background: var(--bn-color); }
.cadangan-gap-fill.party-PN { background: var(--pn-color); }
.cadangan-gap-marker {
    position: absolute; top: -3px; width: 2px; height: 14px;
    background: var(--accent); border-radius: 1px;
}
.cadangan-advice {
    font-size: 0.85rem; line-height: 1.65; color: var(--text-secondary);
}
.cadangan-advice strong { color: var(--text-primary); font-weight: 600; }

/* -- Coalition Cadangan -- */
.coalition-options { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.coalition-chip {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 6px 14px; border-radius: 10px;
    font-size: 0.78rem; font-weight: 600;
    border: 1px solid var(--border-color);
    background: var(--bg-card);
    transition: border-color 0.2s, box-shadow 0.2s;
}
.coalition-chip.coalition-viable {
    border-color: var(--accent-border);
    background: var(--accent-soft);
    box-shadow: 0 0 0 1px var(--accent-border);
}
.coalition-chip.coalition-viable:hover {
    border-color: var(--accent);
    box-shadow: 0 0 8px var(--accent-soft);
}
.coalition-chip.coalition-nonviable { opacity: 0.6; }
.coalition-chip-seats {
    font-family: "JetBrains Mono", monospace;
    font-size: 0.72rem; color: var(--text-muted);
}

/* ── prn-total enhancements ── */
.ctrl-tv-btn {
    width: auto;
    min-width: 52px;
    padding: 0 12px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: var(--accent);
    border-color: var(--accent-border);
}
.ctrl-tv-btn:hover,
.ctrl-tv-btn.active {
    background: var(--accent-soft);
    border-color: var(--accent);
    color: var(--accent);
}
.nav-link-tv {
    color: var(--accent) !important;
    font-weight: 600;
}
.nav-link-tv:hover { opacity: 0.85; }
.pru-stress {
    margin: 12px 0;
    padding: 12px 14px;
    border-radius: 10px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
}
.pru-stress-title {
    font-size: 0.72rem; font-weight: 600; letter-spacing: 0.04em;
    text-transform: uppercase; color: var(--text-muted); margin-bottom: 8px;
}
.pru-stress-row {
    display: grid;
    grid-template-columns: 80px 1fr auto;
    gap: 10px;
    align-items: center;
    font-size: 0.85rem;
    padding: 4px 0;
    color: var(--text-secondary);
}
.pru-stress-row.base { font-weight: 600; color: var(--text-primary); }
.pru-stress-row .pos { color: var(--status-green); font-weight: 700; }
.pru-stress-row .neg { color: var(--status-red); font-weight: 700; }

/* ── Hero: net Δ strip + PRN status board ── */
.total-hero {
    flex-wrap: wrap;
    gap: 16px 24px;
}
.hero-net-strip {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px 16px;
    padding: 12px 16px;
    border-radius: 12px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
}
.hero-net-label {
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-muted);
    white-space: nowrap;
}
.hero-net-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 12px;
}
.hero-net-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 8px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    font-size: 0.85rem;
    font-weight: 600;
}
.hero-net-chip .net-before {
    color: var(--text-muted);
    font-weight: 500;
    font-size: 0.78rem;
}
.hero-net-chip .net-arrow { color: var(--text-muted); font-size: 0.75rem; }
.hero-net-chip .net-delta.pos { color: var(--status-green); }
.hero-net-chip .net-delta.neg { color: var(--status-red); }
.hero-net-chip .net-delta.zero { color: var(--text-muted); }

.hero-status-board {
    width: 100%;
    padding: 14px 16px;
    border-radius: 12px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
}
.hero-status-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px 16px;
    margin-bottom: 12px;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-muted);
}
.hero-status-legend {
    display: inline-flex;
    align-items: center;
    gap: 6px 10px;
    font-size: 0.7rem;
    text-transform: none;
    letter-spacing: 0;
    font-weight: 500;
    color: var(--text-secondary);
}
.st-dot {
    display: inline-block;
    width: 8px; height: 8px;
    border-radius: 50%;
    margin-right: 2px;
}
.st-dot.st-held { background: var(--status-green); }
.st-dot.st-upcoming { background: var(--status-amber); }
.st-dot.st-tbd { background: var(--text-muted); opacity: 0.6; }

.hero-status-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(88px, 1fr));
    gap: 8px;
}
.hero-status-tile {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: 10px 6px;
    border-radius: 10px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    text-decoration: none;
    color: inherit;
    transition: border-color 0.15s, background 0.15s;
}
.hero-status-tile:hover {
    border-color: var(--accent-border);
    background: var(--bg-card-hover);
}
.hero-status-tile .st-code {
    font-family: ui-monospace, "SF Mono", "JetBrains Mono", monospace;
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--text-primary);
}
.hero-status-tile .st-name {
    font-size: 0.65rem;
    color: var(--text-muted);
    text-align: center;
    line-height: 1.2;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.hero-status-tile .st-badge {
    margin-top: 4px;
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 2px 6px;
    border-radius: 4px;
}
.hero-status-tile.status-held .st-badge {
    color: var(--status-green);
    background: rgba(48, 209, 88, 0.12);
}
.hero-status-tile.status-upcoming .st-badge {
    color: var(--status-amber);
    background: rgba(255, 214, 10, 0.12);
}
.hero-status-tile.status-tbd .st-badge {
    color: var(--text-muted);
    background: var(--track);
}
.hero-status-tile .st-date {
    font-size: 0.58rem;
    color: var(--text-muted);
    margin-top: 2px;
}

/* ── National control map ── */
.control-map-section { margin-bottom: 28px; }
.control-map-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 12px;
}
.control-map-tile {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 14px 12px;
    border-radius: 12px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-left: 4px solid var(--text-muted);
    text-decoration: none;
    color: inherit;
    transition: transform 0.15s, border-color 0.15s;
    min-height: 96px;
}
.control-map-tile:hover { transform: translateY(-1px); border-color: var(--accent-border); }
.control-map-tile.ctrl-PH { border-left-color: var(--ph-color); }
.control-map-tile.ctrl-BN { border-left-color: var(--bn-color); }
.control-map-tile.ctrl-PN { border-left-color: var(--pn-color); }
.control-map-tile.ctrl-OTHER { border-left-color: var(--other-color); }
.control-map-tile.ctrl-HUNG { border-left-color: var(--status-amber); }
.control-map-code {
    font-family: ui-monospace, "SF Mono", "JetBrains Mono", monospace;
    font-size: 0.75rem; color: var(--text-muted); font-weight: 600;
}
.control-map-name { font-size: 0.95rem; font-weight: 600; color: var(--text-primary); }
.control-map-ctrl {
    font-size: 0.8rem; font-weight: 700; letter-spacing: 0.02em;
}
.control-map-seats { font-size: 0.72rem; color: var(--text-muted); }
.control-map-legend {
    display: flex; flex-wrap: wrap; gap: 10px 16px;
    margin-top: 14px; font-size: 0.78rem; color: var(--text-secondary);
}
.control-map-legend span { display: inline-flex; align-items: center; gap: 6px; }
.control-map-legend i {
    display: inline-block; width: 10px; height: 10px; border-radius: 3px;
}

/* ── Path to majority ── */
.path-majority-section { margin-bottom: 28px; }
.path-majority-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 14px;
}
.path-card {
    padding: 16px;
    border-radius: 14px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
}
.path-card-head {
    display: flex; justify-content: space-between; align-items: baseline;
    margin-bottom: 10px;
}
.path-card-party { font-size: 1.2rem; font-weight: 700; }
.path-card-seats { font-size: 0.85rem; color: var(--text-secondary); }
.path-bar {
    height: 10px; border-radius: 5px; background: var(--track);
    overflow: hidden; margin-bottom: 10px;
}
.path-bar-fill { height: 100%; border-radius: 5px; transition: width 0.3s; }
.path-card-meta { font-size: 0.8rem; color: var(--text-secondary); line-height: 1.5; }
.path-card-meta strong { color: var(--text-primary); }
.path-card.over-majority { border-color: var(--status-green); }

/* ── OTHER raw breakdown ── */
.other-breakdown {
    margin-top: 12px;
    padding: 12px 14px;
    border-radius: 10px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
}
.other-breakdown-title {
    font-size: 0.72rem; font-weight: 600; letter-spacing: 0.05em;
    text-transform: uppercase; color: var(--text-muted); margin-bottom: 8px;
}
.other-breakdown-chips {
    display: flex; flex-wrap: wrap; gap: 6px 8px;
}
.other-chip {
    font-size: 0.75rem; font-weight: 600;
    padding: 3px 8px; border-radius: 6px;
    background: var(--bg-card); border: 1px solid var(--border-color);
    color: var(--text-secondary);
}
.other-chip b { color: var(--text-primary); margin-left: 4px; }

/* ── Export bar ── */
.export-bar {
    display: flex; flex-wrap: wrap; gap: 8px; align-items: center;
    margin: 8px 0 20px;
}
.export-btn {
    font-size: 0.78rem; font-weight: 600;
    padding: 8px 14px; border-radius: 8px;
    border: 1px solid var(--border-color);
    background: var(--bg-card); color: var(--text-primary);
    cursor: pointer; transition: border-color 0.15s, background 0.15s;
}
.export-btn:hover { border-color: var(--accent-border); background: var(--bg-card-hover); }

/* ── TV mode (Apple minimalist, 10-ft friendly) ── */
.tv-stage-bar {
    display: none;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 10px 18px;
    margin-bottom: 16px;
    border-radius: 12px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
}
.tv-stage-label {
    font-size: 1.1rem; font-weight: 600; letter-spacing: -0.01em;
}
.tv-stage-dots { display: flex; gap: 6px; flex-wrap: wrap; }
.tv-stage-dot {
    width: 8px; height: 8px; border-radius: 50%;
    background: var(--track); border: none; padding: 0; cursor: pointer;
}
.tv-stage-dot.active { background: var(--accent); transform: scale(1.25); }
.tv-stage-clock {
    font-family: ui-monospace, "SF Mono", "JetBrains Mono", monospace;
    font-size: 1rem; color: var(--text-secondary);
}

html[data-tv="1"] body,
body.tv-mode {
    font-size: 18px;
    padding-bottom: 40px;
}
html[data-tv="1"] .dashboard,
body.tv-mode .dashboard {
    max-width: 100%;
    padding: 3.5vh 4vw;
}
html[data-tv="1"] .tv-stage-bar,
body.tv-mode .tv-stage-bar {
    display: flex;
}
html[data-tv="1"] .tv-stage-bar[hidden],
body.tv-mode .tv-stage-bar[hidden] {
    display: flex !important;
}
html[data-tv="1"] .neuralops-nav,
html[data-tv="1"] .tv-hide,
html[data-tv="1"] .footer,
html[data-tv="1"] .history-tab-group,
body.tv-mode .neuralops-nav,
body.tv-mode .tv-hide,
body.tv-mode .footer,
body.tv-mode .history-tab-group {
    display: none !important;
}
html[data-tv="1"] .tv-stage,
body.tv-mode .tv-stage {
    display: none;
}
html[data-tv="1"] .tv-stage.tv-active,
body.tv-mode .tv-stage.tv-active {
    display: block;
    min-height: 70vh;
    animation: tvFade 0.4s ease;
}
@keyframes tvFade {
    from { opacity: 0.35; transform: translateY(6px); }
    to { opacity: 1; transform: none; }
}
html[data-tv="1"] .total-hero-stat-value,
body.tv-mode .total-hero-stat-value {
    font-size: 3.2rem;
}
html[data-tv="1"] .total-hero-title,
body.tv-mode .total-hero-title {
    font-size: clamp(2rem, 4vw, 3rem);
}
html[data-tv="1"] .section-title,
body.tv-mode .section-title {
    font-size: 1.6rem;
}
html[data-tv="1"] .section-sub,
body.tv-mode .section-sub {
    font-size: 1rem;
}
html[data-tv="1"] .stat-value,
body.tv-mode .stat-value {
    font-size: 2.2rem;
}
html[data-tv="1"] .control-map-grid,
body.tv-mode .control-map-grid {
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 16px;
}
html[data-tv="1"] .control-map-tile,
body.tv-mode .control-map-tile {
    min-height: 120px;
    padding: 18px 16px;
}
html[data-tv="1"] .control-map-name,
body.tv-mode .control-map-name {
    font-size: 1.15rem;
}
html[data-tv="1"] .control-map-ctrl,
body.tv-mode .control-map-ctrl {
    font-size: 1.05rem;
}
html[data-tv="1"] .path-card-party,
body.tv-mode .path-card-party {
    font-size: 1.6rem;
}
html[data-tv="1"] .remarks-card-body,
body.tv-mode .remarks-card-body {
    font-size: 1.05rem;
    line-height: 1.7;
}
html[data-tv="1"] .header,
body.tv-mode .header {
    margin-bottom: 12px;
}
html[data-tv="1"] #tvToggle,
body.tv-mode #tvToggle {
    border-color: var(--accent-border);
    color: var(--accent);
}
html[data-tv="1"] .scenario-table,
html[data-tv="1"] .mc-table,
html[data-tv="1"] .regression-matrix,
body.tv-mode .scenario-table,
body.tv-mode .mc-table,
body.tv-mode .regression-matrix {
    font-size: 1rem;
}
html[data-tv="1"] .hero-status-grid,
body.tv-mode .hero-status-grid {
    grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
    gap: 12px;
}
html[data-tv="1"] .hero-status-tile,
body.tv-mode .hero-status-tile {
    padding: 14px 8px;
}
html[data-tv="1"] .hero-status-tile .st-code,
body.tv-mode .hero-status-tile .st-code {
    font-size: 1.05rem;
}
html[data-tv="1"] .hero-net-chip,
body.tv-mode .hero-net-chip {
    font-size: 1.05rem;
    padding: 8px 14px;
}
