:root {
            --background: #f4f4f2;
            --surface: #ffffff;
            --text: #151515;
            --muted: #686868;
            --border: #ddddda;
            --accent: #bf1e2e;
            --accent-dark: #991522;
            --dark: #17191d;
            --container-width: 1240px;
        }

        * {
            box-sizing: border-box;
        }

        body {
            margin: 0;
            font-family: "Inter", sans-serif;
            background: var(--background);
            color: var(--text);
        }

        a {
            color: inherit;
            text-decoration: none;
        }
.live-hero {
            background: var(--dark);
            color: #ffffff;
        }

        .live-hero-inner {
            width: min(calc(100% - 48px), var(--container-width));
            margin: 0 auto;
            padding: 46px 0 42px;
        }

        .live-kicker {
            margin: 0 0 10px;
            color: #73c7ff;
            font-size: 11px;
            font-weight: 800;
            letter-spacing: 0.14em;
            text-transform: uppercase;
        }
        #aircraft-highlights {
            scroll-margin-top: 30px;
        }
        .live-title {
            max-width: 780px;
            margin: 0;
            font-family: "Playfair Display", serif;
            font-size: clamp(38px, 5vw, 62px);
            line-height: 1;
            letter-spacing: -0.045em;
        }

        .live-description {
            max-width: 700px;
            margin: 16px 0 0;
            color: #b9c1c9;
            font-size: 15px;
            line-height: 1.6;
        }

        .live-status {
            margin-top: 24px;
            display: flex;
            align-items: center;
            gap: 10px;
            color: #dfe2e6;
            font-size: 12px;
            font-weight: 700;
            letter-spacing: 0.06em;
            text-transform: uppercase;
        }

        .status-dot {
            width: 9px;
            height: 9px;
            border-radius: 50%;
            background: #2ac769;
            box-shadow: 0 0 0 5px rgba(42, 199, 105, 0.14);
        }

        .status-dot.delayed {
            background: #f2a900;
            box-shadow: 0 0 0 5px rgba(242, 169, 0, 0.14);
        }

        .status-dot.offline {
            background: #d64b4b;
            box-shadow: 0 0 0 5px rgba(214, 75, 75, 0.14);
        }

        .dashboard {
            width: min(calc(100% - 48px), var(--container-width));
            margin: 0 auto;
            padding: 38px 0 70px;
        }

        .metric-grid {
            display: grid;
            grid-template-columns: repeat(4, minmax(0, 1fr));
            gap: 18px;
        }

        .metric-card {
            min-width: 0;
            padding: 22px;
            background: var(--surface);
            border: 1px solid var(--border);
            box-shadow: 0 10px 24px rgba(0, 0, 0, 0.04);
        }

        .metric-label {
            color: var(--muted);
            font-size: 10px;
            font-weight: 700;
            letter-spacing: 0.11em;
            text-transform: uppercase;
        }

        .metric-value {
            margin-top: 8px;
            font-family: "Playfair Display", serif;
            font-size: 38px;
            font-weight: 700;
            line-height: 1;
        }

        .metric-note {
            margin-top: 10px;
            color: var(--muted);
            font-size: 12px;
        }

        .dashboard-section {
            margin-top: 30px;
        }

        .section-heading {
            margin-bottom: 16px;
            display: flex;
            justify-content: space-between;
            align-items: end;
            gap: 20px;
        }

        .section-heading h2 {
            margin: 0;
            font-family: "Playfair Display", serif;
            font-size: 30px;
        }

        .section-heading p {
            margin: 0;
            color: var(--muted);
            font-size: 12px;
        }

        .highlight-grid {
            display: grid;
            grid-template-columns: repeat(2, minmax(0, 1fr));
            gap: 18px;
        }

        .highlight-card {
            position: relative;
            padding: 26px;
            background: var(--dark);
            color: #ffffff;
        }

        .highlight-track-link {
            display: inline-flex;
            align-items: center;
            gap: 7px;
            margin-top: 18px;
            padding: 9px 12px;
            border: 1px solid rgba(255, 255, 255, 0.24);
            color: #ffffff;
            font-size: 10px;
            font-weight: 800;
            letter-spacing: 0.1em;
            text-transform: uppercase;
            transition: background 0.2s ease, border-color 0.2s ease;
        }

        .highlight-track-link:hover {
            background: var(--accent);
            border-color: var(--accent);
        }

        .highlight-track-link[aria-disabled="true"] {
            pointer-events: none;
            opacity: 0.45;
        }

        .highlight-label {
            color: #9aa3ad;
            font-size: 10px;
            font-weight: 800;
            letter-spacing: 0.12em;
            text-transform: uppercase;
        }

        .highlight-callsign {
            margin-top: 12px;
            font-family: "Playfair Display", serif;
            font-size: 36px;
            font-weight: 700;
        }

        .highlight-value {
            margin-top: 8px;
            color: #73c7ff;
            font-size: 21px;
            font-weight: 700;
        }

        .highlight-meta {
            margin-top: 12px;
            color: #b9c1c9;
            font-size: 12px;
            line-height: 1.6;
        }

        .details-grid {
            display: grid;
            grid-template-columns: repeat(2, minmax(0, 1fr));
            gap: 18px;
        }

        .panel {
            padding: 24px;
            background: var(--surface);
            border: 1px solid var(--border);
        }

        .panel h3 {
            margin: 0 0 18px;
            font-family: "Playfair Display", serif;
            font-size: 24px;
        }

        .stat-row {
            padding: 12px 0;
            display: flex;
            justify-content: space-between;
            gap: 20px;
            border-top: 1px solid var(--border);
            font-size: 13px;
        }

        .stat-row:first-of-type {
            border-top: 0;
        }

        .stat-row span:first-child {
            color: var(--muted);
        }

        .stat-row strong {
            text-align: right;
        }

        .emergency-clear {
            color: #24723a;
        }

        .emergency-active {
            color: #bf1e2e;
        }

        .dashboard-message {
            display: none;
            margin-bottom: 22px;
            padding: 16px 18px;
            background: #fff3cd;
            border: 1px solid #ead28b;
            color: #6f5700;
            font-size: 13px;
        }

        .dashboard-message.visible {
            display: block;
        }

        @media (max-width: 950px) {
            .metric-grid {
                grid-template-columns: repeat(2, minmax(0, 1fr));
            }
        }

        @media (max-width: 700px) {
            .header-inner,
            .live-hero-inner,
            .dashboard {
                width: min(calc(100% - 32px), var(--container-width));
            }
.metric-grid,
            .highlight-grid,
            .details-grid {
                grid-template-columns: 1fr;
            }

            .live-title {
                font-size: 42px;
            }
        }

/* ==================================================
   LIVE SHELL SHARED BY ALL PAGES
================================================== */

body.live-shell {
    margin: 0;
    font-family: "Inter", sans-serif;
    background: var(--background);
    color: var(--text);
}

body.live-shell .site-header {
    background: #ffffff;
    border-bottom: 1px solid var(--border);
}

body.live-shell .header-inner {
    width: min(calc(100% - 48px), var(--container-width));
    min-height: 82px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
}

body.live-shell .site-brand {
    font-family: "Playfair Display", serif;
    font-size: 34px;
    font-weight: 800;
    letter-spacing: -0.04em;
    color: var(--text);
}

body.live-shell .site-brand::after {
    content: "";
    display: block;
    width: 48px;
    height: 3px;
    margin-top: 8px;
    background: var(--accent);
}

body.live-shell .header-nav {
    display: flex;
    align-items: center;
    gap: 24px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

body.live-shell .header-nav a {
    color: inherit;
    text-decoration: none;
}

body.live-shell .header-nav a:hover {
    color: var(--accent);
}

body.live-shell .site-footer {
    background: #181818;
    color: rgba(255, 255, 255, 0.75);
}

body.live-shell .footer-inner {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 36px 28px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 25px;
}

body.live-shell .footer-logo {
    color: #ffffff;
    font-family: "Playfair Display", serif;
    font-size: 23px;
    font-weight: 700;
}

body.live-shell .footer-copy {
    font-size: 12px;
}

@media (max-width: 700px) {
    body.live-shell .header-inner {
        width: min(calc(100% - 32px), var(--container-width));
        align-items: flex-start;
        flex-direction: column;
        padding: 18px 0;
    }

    body.live-shell .header-nav {
        flex-wrap: wrap;
    }

    body.live-shell .footer-inner {
        padding: 30px 20px;
        flex-direction: column;
        align-items: flex-start;
    }
}