/* ═══════════════════════════════════════════════════════════
   AEVION DESIGN SYSTEM — style.css
   A living command surface. Not a spreadsheet with a dark theme.
   ═══════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500;600&display=swap');

:root {
    /* ── Core Palette ── */
    --bg-color: #06070a;
    --fg-color: #e4e7ec;
    
    --amber: #ff9d00;
    --dim-amber: rgba(255, 157, 0, 0.12);
    
    --cyan-verified: #00e5ff;
    --dim-cyan: rgba(0, 229, 255, 0.10);
    
    --red-alert: #ff3344;
    --dim-red: rgba(255, 51, 68, 0.12);

    --violet: #b388ff;
    --dim-violet: rgba(179, 136, 255, 0.12);
    
    --grid-line: rgba(255, 255, 255, 0.04);
    --panel-border: rgba(255, 255, 255, 0.08);
    --panel-bg: rgba(10, 12, 18, 0.7);
    
    --font-ui: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
    
    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
    
    /* ── Bridge Variables for .dc.html views ── */
    --bg-cockpit: var(--bg-color);
    --bg-deep: rgba(3, 4, 6, 0.95);
    --bg-panel: rgba(12, 14, 22, 0.6);
    --bg-elevated: rgba(255, 255, 255, 0.04);
    --bg-hover: rgba(255, 255, 255, 0.06);

    --accent: var(--cyan-verified);
    --text-heading: #ffffff;
    --text-primary: var(--fg-color);
    --text-secondary: rgba(255, 255, 255, 0.6);
    --text-muted: rgba(255, 255, 255, 0.35);

    --status-nominal: var(--cyan-verified);
    --tint-nominal: var(--dim-cyan);
    --status-pending: var(--amber);
    --tint-pending: var(--dim-amber);
    --status-halt: var(--red-alert);
    --tint-halt: var(--dim-red);
    --status-clearance: var(--violet);
    --tint-clearance: var(--dim-violet);
    --lattice-cyan: var(--cyan-verified);

    --border-panel: var(--panel-border);
    --border-subtle: rgba(255, 255, 255, 0.05);
    --border-active: var(--cyan-verified);
    
    --radius-sm: 6px;
    --radius-lg: 12px;
    --radius-track: 16px;

    --font-sans: var(--font-ui);
    --font-display: var(--font-ui);
}

/* ── Reset ── */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--bg-color);
    color: var(--fg-color);
    font-family: var(--font-ui);
    font-size: 13px;
    line-height: 1.5;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ── Ambient Background: Breathing radial glow ── */
#ambient-canvas-bg {
    position: fixed;
    top: 0; left: 0;
    width: 100vw; height: 100vh;
    z-index: -2;
    background: 
        radial-gradient(ellipse 80% 60% at 20% 80%, rgba(0, 229, 255, 0.04), transparent 70%),
        radial-gradient(ellipse 60% 80% at 80% 20%, rgba(179, 136, 255, 0.03), transparent 70%),
        radial-gradient(ellipse 100% 100% at 50% 120%, rgba(0, 229, 255, 0.03), var(--bg-color) 80%);
    animation: ambient-breathe 12s ease-in-out infinite alternate;
}

@keyframes ambient-breathe {
    0%   { opacity: 0.6; }
    100% { opacity: 1; }
}

/* ── Noise texture overlay for depth ── */
body::before {
    content: "";
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: -1;
    opacity: 0.015;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    pointer-events: none;
}

/* ── Page-load fade-in ── */
@keyframes page-enter {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}

body > *, x-dc > div {
    animation: page-enter 0.6s var(--ease-out-expo) both;
}

/* ═══════════════════════════════════════════════════════════
   HEADER / TOP BAR
   ═══════════════════════════════════════════════════════════ */
#top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 28px;
    border-bottom: 1px solid var(--panel-border);
    background: rgba(6, 7, 10, 0.85);
    backdrop-filter: blur(20px) saturate(1.2);
    -webkit-backdrop-filter: blur(20px) saturate(1.2);
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.05em;
    font-size: 12px;
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo-mark {
    color: var(--cyan-verified);
    margin-right: 8px;
    font-weight: 700;
    font-family: var(--font-mono);
    text-shadow: 0 0 20px rgba(0, 229, 255, 0.4);
}

.slash { color: rgba(255, 255, 255, 0.15); margin: 0 8px; }

/* ── Navigation ── */
.nav-links {
    display: flex;
    gap: 6px;
}
.nav-link {
    color: rgba(255, 255, 255, 0.4);
    text-decoration: none;
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    transition: all 0.25s var(--ease-out-expo);
    position: relative;
}
.nav-link:hover {
    color: var(--fg-color);
    background: rgba(255, 255, 255, 0.06);
}
.nav-link::after {
    content: "";
    position: absolute;
    bottom: 0; left: 50%; right: 50%;
    height: 1px;
    background: var(--cyan-verified);
    transition: all 0.3s var(--ease-out-expo);
    opacity: 0;
}
.nav-link:hover::after {
    left: 20%; right: 20%;
    opacity: 1;
}

/* ── Status indicator with pulse ── */
.status-indicator {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--cyan-verified);
    font-family: var(--font-mono);
    font-size: 11px;
}

.dot {
    width: 6px; height: 6px;
    background-color: var(--cyan-verified);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--cyan-verified), 0 0 20px rgba(0, 229, 255, 0.3);
}
.dot.blinking { animation: dot-pulse 2.5s var(--ease-out-expo) infinite; }
@keyframes dot-pulse {
    0%, 100% { opacity: 1; box-shadow: 0 0 8px var(--cyan-verified), 0 0 20px rgba(0, 229, 255, 0.3); }
    50%      { opacity: 0.3; box-shadow: 0 0 2px transparent; }
}

.gate-val.hold { color: var(--amber); text-shadow: 0 0 12px var(--dim-amber); }
.gate-val.go   { color: var(--cyan-verified); text-shadow: 0 0 12px var(--dim-cyan); }

/* ═══════════════════════════════════════════════════════════
   PANELS — Glassmorphic, layered, alive
   ═══════════════════════════════════════════════════════════ */
.panel {
    border-right: 1px solid var(--panel-border);
    display: flex;
    flex-direction: column;
    background: var(--panel-bg);
    backdrop-filter: blur(16px) saturate(1.1);
    -webkit-backdrop-filter: blur(16px) saturate(1.1);
    box-shadow: 10px 0 40px rgba(0, 0, 0, 0.4);
    z-index: 10;
    transition: box-shadow 0.3s ease;
}
.panel:last-child {
    border-right: none;
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.4);
}

.panel-header {
    padding: 16px 20px;
    border-bottom: 1px solid var(--panel-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.02);
}
.panel-header span {
    font-family: var(--font-mono);
    font-size: 9px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-muted);
}
.panel-header h2 {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.08em;
    color: var(--fg-color);
    text-transform: uppercase;
}
.panel-header .meta {
    color: rgba(255, 255, 255, 0.35);
    font-family: var(--font-mono);
    font-size: 10px;
}

/* ═══════════════════════════════════════════════════════════
   STAT CARDS — the numbers that matter
   ═══════════════════════════════════════════════════════════ */
.stat-card {
    background: linear-gradient(135deg, rgba(12, 14, 22, 0.8), rgba(12, 14, 22, 0.4));
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    padding: 18px 20px;
    transition: all 0.3s var(--ease-out-expo);
    position: relative;
    overflow: hidden;
}
.stat-card::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--cyan-verified), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}
.stat-card:hover {
    border-color: rgba(255, 255, 255, 0.12);
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}
.stat-card:hover::before { opacity: 0.6; }

.stat-card h3 {
    font-family: var(--font-mono);
    font-size: 9px;
    letter-spacing: 0.12em;
    color: var(--text-muted);
    margin: 0 0 8px;
    text-transform: uppercase;
}
.stat-card .value {
    font-family: var(--font-mono);
    font-size: 32px;
    font-weight: 600;
    letter-spacing: 0.02em;
    line-height: 1;
}

/* ═══════════════════════════════════════════════════════════
   DASHBOARD LAYOUT
   ═══════════════════════════════════════════════════════════ */
#dashboard {
    display: grid;
    grid-template-columns: 280px 1fr 380px;
    height: calc(100vh - 50px);
}

/* Center Instrument Display */
.instrument-display {
    flex: 1;
    position: relative;
    border-bottom: 1px solid var(--panel-border);
    overflow: hidden;
    background: transparent;
    z-index: 5;
}

#signal-canvas {
    width: 100%; height: 100%;
    display: block;
    mix-blend-mode: screen;
}

/* ── Crosshairs ── */
.crosshair-h {
    position: absolute; top: 50%; left: 0; width: 100%; height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.04), transparent);
    z-index: 1;
}
.crosshair-v {
    position: absolute; top: 0; left: 50%; width: 1px; height: 100%;
    background: linear-gradient(180deg, transparent, rgba(255,255,255,0.04), transparent);
    z-index: 1;
}

/* ── HUD overlay ── */
.hud-overlay {
    position: absolute;
    top: 32px; left: 32px;
    pointer-events: none;
    z-index: 10;
}
.hud-stat {
    margin-bottom: 16px;
    display: flex;
    flex-direction: column;
}
.hud-stat .label {
    color: rgba(255,255,255,0.4);
    font-size: 9px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 2px;
}
.hud-stat .value {
    font-size: 18px;
    font-weight: 500;
    font-family: var(--font-mono);
}
.hud-stat .value.alert {
    color: var(--amber);
    text-shadow: 0 0 20px var(--dim-amber);
}

/* ═══════════════════════════════════════════════════════════
   LEDGER / RECEIPT ROWS — scannable data
   ═══════════════════════════════════════════════════════════ */
.ledger-header {
    display: flex;
    padding: 10px 20px;
    border-bottom: 1px solid var(--panel-border);
    color: var(--text-muted);
    font-size: 9px;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.08em;
}
.ledger-header .col { flex: 1; }
.ledger-header .col.score { flex: 0.5; text-align: right; }
.ledger-header .col.status { flex: 0.7; text-align: right; }

.ledger-content { flex: 1; overflow-y: auto; }

.receipt-row {
    display: flex;
    padding: 14px 20px;
    border-bottom: 1px solid rgba(255,255,255,0.03);
    cursor: pointer;
    transition: all 0.2s var(--ease-out-expo);
    font-family: var(--font-mono);
    font-size: 11px;
}
.receipt-row:hover {
    background: rgba(255,255,255,0.03);
    padding-left: 24px;
}
.receipt-row.active {
    background: var(--dim-cyan);
    border-left: 2px solid var(--cyan-verified);
    padding-left: 24px;
}
.receipt-row.squawked { color: var(--amber); }

.receipt-row .col {
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.receipt-row .col.score { flex: 0.5; text-align: right; font-weight: 600; }
.receipt-row .col.status { flex: 0.7; text-align: right; }

/* ═══════════════════════════════════════════════════════════
   EPISODE ROWS — .dc.html data tables
   ═══════════════════════════════════════════════════════════ */
.episode-row {
    display: grid;
    grid-template-columns: 60px 1fr 100px 80px 90px;
    gap: 10px;
    align-items: center;
    padding: 10px 14px;
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 0.04em;
    border-bottom: 1px solid rgba(255,255,255, 0.03);
    transition: all 0.2s var(--ease-out-expo);
}
.episode-row:hover {
    background: rgba(0, 229, 255, 0.03);
    border-left: 2px solid var(--cyan-verified);
    padding-left: 12px;
}

/* ═══════════════════════════════════════════════════════════
   STREAM / PUZZLE ITEMS — interactive cards
   ═══════════════════════════════════════════════════════════ */
.stream-content { padding: 20px; flex: 1; overflow-y: auto; }

.puzzle-item {
    padding: 18px;
    border: 1px solid var(--panel-border);
    border-radius: var(--radius-sm);
    margin-bottom: 14px;
    background: linear-gradient(135deg, rgba(255,255,255,0.02), rgba(255,255,255,0.005));
    transition: all 0.3s var(--ease-out-expo);
    position: relative;
    overflow: hidden;
}
.puzzle-item::after {
    content: "";
    position: absolute;
    top: 0; left: -100%; right: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--cyan-verified), transparent);
    transition: all 0.5s var(--ease-out-expo);
}
.puzzle-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
    border-color: rgba(255,255,255, 0.15);
}
.puzzle-item:hover::after {
    left: 0; right: 0;
}

.puzzle-item h3 {
    font-size: 12px;
    color: var(--fg-color);
    margin-bottom: 6px;
    font-weight: 500;
}
.puzzle-item .meta {
    font-size: 10px;
    color: rgba(255,255,255,0.35);
    font-family: var(--font-mono);
}

/* ═══════════════════════════════════════════════════════════
   SCROLLBARS — thin, unobtrusive
   ═══════════════════════════════════════════════════════════ */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.08);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.15); }

/* ═══════════════════════════════════════════════════════════
   ANIMATIONS
   ═══════════════════════════════════════════════════════════ */
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-2px); }
    20%, 40%, 60%, 80% { transform: translateX(2px); }
}
.shake { animation: shake 0.4s cubic-bezier(.36,.07,.19,.97) both; }

@keyframes glow-pulse {
    0%, 100% { box-shadow: 0 0 8px rgba(0, 229, 255, 0.15); }
    50%      { box-shadow: 0 0 20px rgba(0, 229, 255, 0.3); }
}

/* ═══════════════════════════════════════════════════════════
   LINKS & INTERACTIVE ELEMENTS across .dc.html views
   ═══════════════════════════════════════════════════════════ */
a {
    transition: color 0.2s ease, border-color 0.2s ease;
}

/* Experiment / game cards in .dc.html views */
[data-ps^="VERIFIED"] { --ps: var(--status-nominal); --ps-t: var(--tint-nominal); }
[data-ps^="UNDER"]    { --ps: var(--status-clearance); --ps-t: var(--tint-clearance); }
[data-ps^="HELD"], [data-ps^="HALTED"] { --ps: var(--status-halt); --ps-t: var(--tint-halt); }
[data-ps^="PENDING"]  { --ps: var(--status-pending); --ps-t: var(--tint-pending); }
[data-ps^="APPROVED"] { --ps: var(--status-nominal); --ps-t: var(--tint-nominal); }
[data-ps^="NOVEL"]    { --ps: var(--cyan-verified); --ps-t: rgba(0,229,255,0.06); }
[data-ps^="TRANSFER"] { --ps: var(--violet); --ps-t: rgba(179,136,255,0.06); }
[data-ps^="ACTIVE"]   { --ps: var(--cyan-verified); --ps-t: var(--dim-cyan); }
[data-ps^="LIVE"]     { --ps: var(--cyan-verified); --ps-t: var(--dim-cyan); }
[data-ps^="PROTOTYPE"]{ --ps: var(--amber); --ps-t: var(--dim-amber); }

/* Metric level bars */
[data-m] { --mw: 0%; }
[data-m="high"] { --mw: 82%; }
[data-m="mid"]  { --mw: 47%; }
[data-m="low"]  { --mw: 18%; }

/* ═══════════════════════════════════════════════════════════
   HOME COMMAND CENTER — the premium landing
   ═══════════════════════════════════════════════════════════ */
.home-command-center {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px 60px;
}

/* ── Hero Section ── */
.hero-pulse {
    position: relative;
    padding: 56px 40px 48px;
    margin-bottom: 32px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--panel-border);
    background: var(--panel-bg);
    backdrop-filter: blur(20px);
}
.hero-glow {
    position: absolute;
    top: -40%; left: -20%;
    width: 140%; height: 200%;
    background: radial-gradient(ellipse 50% 60% at 30% 40%, rgba(0, 229, 255, 0.06), transparent 60%),
                radial-gradient(ellipse 40% 50% at 70% 60%, rgba(179, 136, 255, 0.04), transparent 60%);
    animation: hero-glow-drift 15s ease-in-out infinite alternate;
    pointer-events: none;
}
@keyframes hero-glow-drift {
    0%   { transform: translate(0, 0) scale(1); }
    100% { transform: translate(30px, -20px) scale(1.05); }
}
.hero-content { position: relative; z-index: 2; }
.hero-eyebrow {
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 0.2em;
    color: var(--cyan-verified);
    margin-bottom: 16px;
    text-transform: uppercase;
}
.hero-title {
    font-family: var(--font-ui);
    font-size: clamp(28px, 4vw, 44px);
    font-weight: 300;
    color: var(--fg-color);
    line-height: 1.15;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}
.hero-slash {
    color: var(--cyan-verified);
    font-family: var(--font-mono);
    font-weight: 700;
    margin-right: 8px;
    text-shadow: 0 0 30px rgba(0, 229, 255, 0.5);
}
.hero-accent {
    color: var(--violet);
    font-weight: 600;
}
.hero-sub {
    font-size: 14px;
    color: var(--text-secondary);
    max-width: 600px;
    line-height: 1.6;
    margin-bottom: 28px;
}
.hero-status-row {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border-radius: 100px;
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    border: 1px solid;
}
.hero-badge.nominal {
    color: var(--cyan-verified);
    border-color: rgba(0, 229, 255, 0.25);
    background: rgba(0, 229, 255, 0.06);
}
.hero-badge.clearance {
    color: var(--amber);
    border-color: rgba(255, 157, 0, 0.25);
    background: rgba(255, 157, 0, 0.06);
}
.hero-dot {
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--cyan-verified);
    box-shadow: 0 0 8px var(--cyan-verified);
    animation: dot-pulse 2.5s ease infinite;
}
.hero-dot.amber {
    background: var(--amber);
    box-shadow: 0 0 8px var(--amber);
}

/* ── Stats Grid ── */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 32px;
}
.stat-bar {
    height: 3px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 2px;
    margin-top: 14px;
    overflow: hidden;
}
.stat-bar-fill {
    height: 100%;
    border-radius: 2px;
    transition: width 1.8s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 0 12px currentColor;
}
.stat-label {
    font-family: var(--font-mono);
    font-size: 9px;
    color: var(--text-muted);
    margin-top: 8px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

/* ── District Navigation Grid ── */
.district-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 12px;
    margin-bottom: 32px;
}
.district-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 22px;
    border: 1px solid var(--panel-border);
    border-radius: var(--radius-sm);
    background: linear-gradient(135deg, rgba(12, 14, 22, 0.6), rgba(12, 14, 22, 0.3));
    text-decoration: none;
    color: var(--fg-color);
    transition: all 0.35s var(--ease-out-expo);
    position: relative;
    overflow: hidden;
    animation: card-enter 0.5s var(--ease-out-expo) both;
}
@keyframes card-enter {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: translateY(0); }
}
.district-card::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--cyan-verified), transparent);
    opacity: 0;
    transition: opacity 0.35s ease;
}
.district-card:hover {
    border-color: rgba(0, 229, 255, 0.2);
    background: linear-gradient(135deg, rgba(0, 229, 255, 0.04), rgba(12, 14, 22, 0.5));
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(0, 229, 255, 0.08);
}
.district-card:hover::before { opacity: 0.7; }
.district-card.featured {
    border-color: rgba(255, 157, 0, 0.2);
    background: linear-gradient(135deg, rgba(255, 157, 0, 0.03), rgba(12, 14, 22, 0.5));
}
.district-card.featured:hover {
    border-color: rgba(255, 157, 0, 0.35);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(255, 157, 0, 0.1);
}
.district-card.featured::before {
    background: linear-gradient(90deg, transparent, var(--amber), transparent);
}
.district-icon {
    font-size: 24px;
    width: 48px; height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    flex-shrink: 0;
}
.district-info { flex: 1; }
.district-info h3 {
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 4px;
    letter-spacing: 0.02em;
}
.district-info p {
    font-size: 11px;
    color: var(--text-secondary);
    line-height: 1.5;
    margin: 0;
}
.district-arrow {
    font-size: 18px;
    color: var(--text-muted);
    transition: all 0.3s ease;
    flex-shrink: 0;
}
.district-card:hover .district-arrow {
    color: var(--cyan-verified);
    transform: translateX(4px);
}
.district-card.featured:hover .district-arrow {
    color: var(--amber);
}

/* ── Radar Section ── */
.radar-section {
    border: 1px solid var(--panel-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--panel-bg);
    margin-bottom: 32px;
}

/* ── System Health ── */
.system-health {
    border: 1px solid var(--panel-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--panel-bg);
}
.health-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1px;
    background: rgba(255, 255, 255, 0.03);
}
.health-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 18px;
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.04em;
    background: var(--bg-color);
    transition: background 0.2s ease;
}
.health-item:hover {
    background: rgba(255, 255, 255, 0.02);
}
.health-dot {
    width: 6px; height: 6px;
    border-radius: 50%;
    flex-shrink: 0;
}
.health-item.nominal .health-dot {
    background: var(--cyan-verified);
    box-shadow: 0 0 6px var(--cyan-verified);
}
.health-item.nominal { color: var(--text-secondary); }
.health-item.pending .health-dot {
    background: var(--amber);
    box-shadow: 0 0 6px var(--amber);
    animation: dot-pulse 2s ease infinite;
}
.health-item.pending { color: var(--amber); }
.health-val {
    margin-left: auto;
    font-size: 9px;
    letter-spacing: 0.1em;
    color: var(--text-muted);
}
.health-item.nominal .health-val { color: rgba(0, 229, 255, 0.6); }
.health-item.pending .health-val { color: var(--amber); }

/* ═══════════════════════════════════════════════════════════
   REDUCED MOTION — respect user preferences
   ═══════════════════════════════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
