/* ============================================================================
   Swarm Page Cockpit — full rebuild per council 2026-04-29 late.
   Token-driven. No raw hex. Every selector is theme-aware via tokens.css.

   Sections:
     1. Hero
     2. Section chrome
     3. Timeline
     4. LLM intelligence panel
     5. Live agent feeds (tabs + panels + render primitives)
     6. Reduced motion + light-theme overrides
   ============================================================================ */

/* ─── 1. HERO ─────────────────────────────────────────────────────────────── */
body[data-site="maverick"] {
    overflow-x: hidden;
}

body[data-site="maverick"] .swarm-hero,
body[data-site="maverick"] .swarm-section,
body[data-site="maverick"] .swarm-hero *,
body[data-site="maverick"] .swarm-section * {
    box-sizing: border-box;
}

.swarm-hero {
    max-width: 1040px;
    margin: 0 auto;
    padding: var(--sp-16) var(--sp-24) var(--sp-64);
}
.swarm-hero__eyebrow {
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-size: var(--fs-12);
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: var(--sp-16);
}
.swarm-hero__title {
    max-width: 16ch;
    font-size: clamp(var(--fs-40), 5vw, var(--fs-64));
    line-height: 1.05;
    font-weight: 800;
    letter-spacing: -0.005em;
    overflow-wrap: anywhere;
    color: var(--text);
    margin: 0 0 var(--sp-24);
}
.swarm-hero__title span {
    display: block;
}
.swarm-hero__sub {
    max-width: 64ch;
    font-size: var(--fs-20);
    line-height: 1.5;
    color: var(--text-dim);
    margin: 0 0 var(--sp-48);
}
.swarm-hero__metrics {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-card);
    overflow: hidden;
}
.swarm-hero__metric {
    padding: var(--sp-24);
    border-right: 1px solid var(--border);
}
.swarm-hero__metric:last-child { border-right: 0; }
.swarm-hero__metric-label {
    display: block;
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-size: var(--fs-12);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-dim);
    margin-bottom: var(--sp-8);
}
.swarm-hero__metric-value {
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-size: var(--fs-20);
    color: var(--accent);
    font-weight: 600;
}
@media (max-width: 720px) {
    .swarm-hero { padding: var(--sp-16) var(--sp-16) var(--sp-48); }
    .swarm-hero__title {
        width: min(100%, calc(100vw - 32px));
        max-width: min(100%, calc(100vw - 32px));
        font-size: clamp(1.75rem, 8.6vw, 2.25rem);
        line-height: 1.08;
        white-space: normal !important;
        word-break: normal;
    }
    .swarm-hero__sub {
        max-width: min(32ch, calc(100vw - 64px)) !important;
        width: min(32ch, calc(100vw - 64px)) !important;
        font-size: var(--fs-16);
        overflow-wrap: anywhere;
    }
    .swarm-hero__metrics { grid-template-columns: repeat(2, 1fr); }
    .swarm-hero__metric:nth-child(2n) { border-right: 0; }
    .swarm-hero__metric:nth-child(-n + 2) { border-bottom: 1px solid var(--border); }
}

/* ─── 2. SECTION CHROME ───────────────────────────────────────────────────── */
.swarm-section { max-width: 1040px; margin: 0 auto; padding: var(--sp-48) var(--sp-24); }
.swarm-section .section-inner { max-width: none; padding: 0; }
.swarm-section .section-label {
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-size: var(--fs-12);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: var(--sp-16);
}
.swarm-section .section-title {
    font-size: clamp(var(--fs-28), 3.5vw, var(--fs-40));
    line-height: 1.1;
    font-weight: 700;
    color: var(--text);
    margin: 0 0 var(--sp-16);
}
.swarm-section .section-text {
    width: min(100%, 68ch);
    max-width: 100%;
    font-size: var(--fs-16);
    line-height: 1.65;
    color: var(--text-dim);
    margin: 0 0 var(--sp-24);
    overflow-wrap: anywhere;
}
@media (max-width: 720px) {
    .swarm-section { padding: var(--sp-48) var(--sp-16); }
    .swarm-section .section-title,
    .swarm-section .section-text {
        width: min(32ch, calc(100vw - 64px)) !important;
        max-width: min(32ch, calc(100vw - 64px)) !important;
    }
}

/* 2026-05-19 Codex compact terminal wall.
   The page view is a preview grid; fullscreen remains the full transcript. */
body[data-site="maverick"] .swarm-section--terminals .section-inner {
    max-width: min(1480px, calc(100vw - 20px));
}

body[data-site="maverick"] .swarm-section--terminals .section-label {
    margin-bottom: 6px;
}

body[data-site="maverick"] .swarm-section--terminals .section-title {
    margin-bottom: 6px;
    font-size: clamp(1.45rem, 3.5vw, 2.4rem);
}

body[data-site="maverick"] .swarm-section--terminals .section-text {
    max-width: 760px;
    margin-bottom: 12px;
    font-size: clamp(0.84rem, 2.6vw, 1rem);
    line-height: 1.45;
}

body[data-site="maverick"] .swarm-section--terminals .swarm-led-bar {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 6px;
    margin: 10px 0 12px;
    padding: 8px;
}

body[data-site="maverick"] .swarm-section--terminals .swarm-led-bar__item {
    min-height: 42px;
    padding: 7px 6px;
}

body[data-site="maverick"] .swarm-section--terminals .cockpit-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-top: 12px;
}

body[data-site="maverick"] .swarm-section--terminals .cockpit-grid > .swarm-terminal,
body[data-site="maverick"] .swarm-section--terminals .cockpit-grid > .swarm-feed-panel {
    display: flex !important;
    flex-direction: column;
    min-height: 238px !important;
    height: 238px !important;
    margin: 0 !important;
    border-radius: 12px !important;
}

body[data-site="maverick"] .swarm-section--terminals .swarm-terminal__header,
body[data-site="maverick"] .swarm-section--terminals .swarm-feed-panel__header {
    gap: 8px;
    min-height: 0;
    padding: 9px 10px !important;
}

body[data-site="maverick"] .swarm-section--terminals .swarm-terminal__led,
body[data-site="maverick"] .swarm-section--terminals .swarm-feed-panel__state {
    width: 9px;
    height: 9px;
    flex: 0 0 9px;
}

body[data-site="maverick"] .swarm-section--terminals .swarm-terminal__title,
body[data-site="maverick"] .swarm-section--terminals .swarm-feed-panel__title {
    font-size: clamp(0.78rem, 1.55vw, 1rem) !important;
    line-height: 1.08 !important;
    margin: 0 !important;
}

body[data-site="maverick"] .swarm-section--terminals .swarm-terminal__sub,
body[data-site="maverick"] .swarm-section--terminals .swarm-feed-panel__status-line,
body[data-site="maverick"] .swarm-section--terminals .swarm-feed-meta {
    font-size: 0.58rem !important;
    line-height: 1.18 !important;
}

body[data-site="maverick"] .swarm-section--terminals .swarm-terminal__tools,
body[data-site="maverick"] .swarm-section--terminals .swarm-feed-panel__tools {
    gap: 6px;
    min-width: 0;
}

body[data-site="maverick"] .swarm-section--terminals .swarm-terminal__fullscreen,
body[data-site="maverick"] .swarm-section--terminals .swarm-feed-panel__fullscreen,
body[data-site="maverick"] .swarm-section--terminals .council-picker__button {
    min-height: 30px;
    padding: 6px 8px !important;
    font-size: 0.58rem !important;
    letter-spacing: 0.08em !important;
    white-space: nowrap;
}

body[data-site="maverick"] .swarm-section--terminals .swarm-terminal__stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
    padding: 7px 10px 0;
}

body[data-site="maverick"] .swarm-section--terminals .swarm-terminal__stat,
body[data-site="maverick"] .swarm-section--terminals .feed-pill {
    min-height: 34px;
    padding: 6px 7px !important;
}

body[data-site="maverick"] .swarm-section--terminals .swarm-terminal__stat .k,
body[data-site="maverick"] .swarm-section--terminals .swarm-terminal__stat .v,
body[data-site="maverick"] .swarm-section--terminals .feed-pill {
    font-size: 0.55rem !important;
    line-height: 1.14 !important;
}

body[data-site="maverick"] .swarm-section--terminals .swarm-terminal__ticker,
body[data-site="maverick"] .swarm-section--terminals .swarm-terminal__detail {
    max-height: 36px;
    margin: 6px 10px 0;
    overflow: hidden;
    font-size: 0.58rem;
    line-height: 1.2;
}

body[data-site="maverick"] .swarm-section--terminals .swarm-terminal__body,
body[data-site="maverick"] .swarm-section--terminals .swarm-feed-panel__body,
body[data-site="maverick"] .swarm-section--terminals #council-body,
body[data-site="maverick"] .swarm-section--terminals #swarm-page-feed-swarm {
    flex: 1 1 auto !important;
    min-height: 0 !important;
    max-height: none !important;
    margin: 7px 10px 10px !important;
    padding: 8px 9px !important;
    overflow: auto !important;
    font-size: 0.58rem !important;
    line-height: 1.36 !important;
}

body[data-site="maverick"] .swarm-section--terminals .matrix-scene,
body[data-site="maverick"] .swarm-section--terminals .fc-terminal-live-card,
body[data-site="maverick"] .swarm-section--terminals .swarm-event-card,
body[data-site="maverick"] .swarm-section--terminals .feed-entry {
    padding: 7px 8px !important;
    margin-bottom: 7px !important;
    border-radius: 8px !important;
}

body[data-site="maverick"] .swarm-section--terminals .council-loader-copy {
    gap: 2px;
}

body[data-site="maverick"] .swarm-section--terminals .council-loader-title {
    font-size: 0.78rem;
}

body[data-site="maverick"] .swarm-section--terminals .council-loader-detail {
    font-size: 0.58rem;
    line-height: 1.35;
}

@media (max-width: 980px) {
    body[data-site="maverick"] .swarm-section--terminals .cockpit-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    body[data-site="maverick"] .swarm-section--terminals .cockpit-grid > .swarm-terminal,
    body[data-site="maverick"] .swarm-section--terminals .cockpit-grid > .swarm-feed-panel {
        height: 210px !important;
        min-height: 210px !important;
    }

    body[data-site="maverick"] .swarm-section--terminals .swarm-led-bar {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 520px) {
    body[data-site="maverick"] .swarm-section--terminals .section-inner {
        max-width: calc(100vw - 14px);
        padding-left: 7px;
        padding-right: 7px;
    }

    body[data-site="maverick"] .swarm-section--terminals .cockpit-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }

    body[data-site="maverick"] .swarm-section--terminals .cockpit-grid > .swarm-terminal,
    body[data-site="maverick"] .swarm-section--terminals .cockpit-grid > .swarm-feed-panel {
        height: 178px !important;
        min-height: 178px !important;
        border-radius: 10px !important;
    }

    body[data-site="maverick"] .swarm-section--terminals .swarm-terminal__header,
    body[data-site="maverick"] .swarm-section--terminals .swarm-feed-panel__header {
        padding: 7px 8px !important;
        gap: 6px;
    }

    body[data-site="maverick"] .swarm-section--terminals .swarm-terminal__title,
    body[data-site="maverick"] .swarm-section--terminals .swarm-feed-panel__title {
        font-size: 0.68rem !important;
        line-height: 1.08 !important;
    }

    body[data-site="maverick"] .swarm-section--terminals .swarm-terminal__sub,
    body[data-site="maverick"] .swarm-section--terminals .swarm-feed-panel__status-line,
    body[data-site="maverick"] .swarm-section--terminals .swarm-feed-meta {
        font-size: 0.48rem !important;
    }

    body[data-site="maverick"] .swarm-section--terminals .swarm-terminal__fullscreen,
    body[data-site="maverick"] .swarm-section--terminals .swarm-feed-panel__fullscreen,
    body[data-site="maverick"] .swarm-section--terminals .council-picker__button {
        min-height: 26px;
        padding: 4px 5px !important;
        font-size: 0.48rem !important;
    }

    body[data-site="maverick"] .swarm-section--terminals .swarm-terminal__stats {
        gap: 4px;
        padding: 5px 7px 0;
    }

    body[data-site="maverick"] .swarm-section--terminals .swarm-terminal__stat,
    body[data-site="maverick"] .swarm-section--terminals .feed-pill {
        min-height: 28px;
        padding: 4px 5px !important;
    }

    body[data-site="maverick"] .swarm-section--terminals .swarm-terminal__stat .k,
    body[data-site="maverick"] .swarm-section--terminals .swarm-terminal__stat .v,
    body[data-site="maverick"] .swarm-section--terminals .feed-pill {
        font-size: 0.46rem !important;
    }

    body[data-site="maverick"] .swarm-section--terminals .swarm-terminal__ticker,
    body[data-site="maverick"] .swarm-section--terminals .swarm-terminal__detail {
        display: none;
    }

    body[data-site="maverick"] .swarm-section--terminals .swarm-terminal__body,
    body[data-site="maverick"] .swarm-section--terminals .swarm-feed-panel__body,
    body[data-site="maverick"] .swarm-section--terminals #council-body,
    body[data-site="maverick"] .swarm-section--terminals #swarm-page-feed-swarm {
        margin: 5px 7px 7px !important;
        padding: 6px 7px !important;
        font-size: 0.48rem !important;
        line-height: 1.3 !important;
    }

    body[data-site="maverick"] .swarm-section--terminals .swarm-led-bar {
        grid-template-columns: repeat(6, minmax(0, 1fr));
        gap: 3px;
        padding: 5px;
    }

    body[data-site="maverick"] .swarm-section--terminals .swarm-led-bar__item {
        min-height: 34px;
        padding: 5px 1px;
    }

    body[data-site="maverick"] .swarm-section--terminals .swarm-led-bar__name {
        font-size: 0.42rem;
    }

    body[data-site="maverick"] .swarm-section--terminals .swarm-led-bar__sub {
        display: none;
    }
}

/* FINAL OVERRIDE 2026-05-19: restore the approved rotating terminal loader. */
body[data-site="maverick"] .swarm-section--terminals .council-loading-state--active,
body[data-site="maverick"] .terminal-overlay .council-loading-state--active {
    display: grid !important;
    grid-template-columns: auto minmax(0, 1fr) !important;
    align-items: center !important;
    gap: 14px !important;
}

body[data-site="maverick"] .swarm-section--terminals .council-loader-orbit,
body[data-site="maverick"] .terminal-overlay .council-loader-orbit {
    display: block !important;
    position: relative !important;
    width: 58px !important;
    height: 58px !important;
    flex: 0 0 58px !important;
    border-radius: 999px !important;
    background:
        radial-gradient(circle at 50% 50%, color-mix(in srgb, var(--terminal-blue) 24%, transparent), transparent 58%),
        color-mix(in srgb, var(--terminal-blue) 7%, var(--card)) !important;
    box-shadow:
        inset 0 0 18px color-mix(in srgb, var(--terminal-blue) 18%, transparent),
        0 0 28px color-mix(in srgb, var(--terminal-blue) 22%, transparent) !important;
}

body[data-site="maverick"] .swarm-section--terminals .council-loader-orbit::before,
body[data-site="maverick"] .terminal-overlay .council-loader-orbit::before {
    border-top-color: var(--terminal-blue) !important;
    border-right-color: color-mix(in srgb, var(--terminal-blue) 35%, transparent) !important;
}

body[data-site="maverick"] .swarm-section--terminals .council-loader-orbit::after,
body[data-site="maverick"] .terminal-overlay .council-loader-orbit::after {
    border-top-color: color-mix(in srgb, var(--terminal-blue) 64%, white) !important;
}

body[data-site="maverick"] .swarm-section--terminals .council-loader-orbit span,
body[data-site="maverick"] .terminal-overlay .council-loader-orbit span {
    background: var(--terminal-blue) !important;
    box-shadow: 0 0 14px var(--terminal-blue) !important;
}

body[data-site="maverick"] .swarm-section--terminals .council-loader-bar,
body[data-site="maverick"] .terminal-overlay .council-loader-bar {
    display: block !important;
    grid-column: 1 / -1 !important;
    position: relative !important;
    height: 5px !important;
    margin-top: 2px !important;
    overflow: hidden !important;
    border-radius: 999px !important;
    background: color-mix(in srgb, var(--terminal-blue) 10%, transparent) !important;
    border: 1px solid var(--terminal-blue-border) !important;
}

@media (max-width: 520px) {
    body[data-site="maverick"] .swarm-section--terminals .council-loading-state--active {
        grid-template-columns: 42px minmax(0, 1fr) !important;
        gap: 9px !important;
        padding: 12px !important;
    }

    body[data-site="maverick"] .swarm-section--terminals .council-loader-orbit {
        width: 42px !important;
        height: 42px !important;
        flex-basis: 42px !important;
    }
}
/* TRUE EOF OVERRIDE 2026-05-19: terminal traffic-light truth after every legacy rule.
   Green = running, amber = fires within 1h, red = stopped/idle/fail. */
body[data-site="maverick"] .swarm-section--terminals #swarm-run-selector.swarm-feed-select {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

body[data-site="maverick"] .swarm-section--terminals .swarm-led-bar__led[data-state="running"],
body[data-site="maverick"] .swarm-section--terminals .swarm-terminal__led[data-state="running"],
body[data-site="maverick"] .swarm-section--terminals .swarm-feed-panel__state[data-state="running"] {
    background: radial-gradient(circle, #86efac 0%, #16a34a 72%) !important;
    box-shadow:
        inset 0 0 4px rgba(255,255,255,0.45),
        0 0 16px #22c55e,
        0 0 0 4px color-mix(in srgb, #22c55e 22%, transparent) !important;
    animation: cockpit-led-pulse 1.4s ease-in-out infinite !important;
}

body[data-site="maverick"] .swarm-section--terminals .swarm-led-bar__led[data-state="scheduled"],
body[data-site="maverick"] .swarm-section--terminals .swarm-terminal__led[data-state="scheduled"],
body[data-site="maverick"] .swarm-section--terminals .swarm-feed-panel__state[data-state="scheduled"] {
    background: radial-gradient(circle, #fde68a 0%, #f59e0b 72%) !important;
    box-shadow:
        inset 0 0 4px rgba(255,255,255,0.4),
        0 0 14px #fbbf24,
        0 0 0 4px color-mix(in srgb, #fbbf24 22%, transparent) !important;
    animation: cockpit-led-slow 2.8s ease-in-out infinite !important;
}

body[data-site="maverick"] .swarm-section--terminals .swarm-led-bar__led[data-state="idle"],
body[data-site="maverick"] .swarm-section--terminals .swarm-terminal__led[data-state="idle"],
body[data-site="maverick"] .swarm-section--terminals .swarm-feed-panel__state[data-state="idle"] {
    background: radial-gradient(circle, #fca5a5 0%, #991b1b 72%) !important;
    box-shadow:
        inset 0 0 4px rgba(255,255,255,0.25),
        0 0 10px color-mix(in srgb, #ef4444 55%, transparent),
        0 0 0 3px color-mix(in srgb, #ef4444 16%, transparent) !important;
    animation: none !important;
}

body[data-site="maverick"] .swarm-section--terminals .swarm-led-bar__led[data-state="failed"],
body[data-site="maverick"] .swarm-section--terminals .swarm-terminal__led[data-state="failed"],
body[data-site="maverick"] .swarm-section--terminals .swarm-feed-panel__state[data-state="failed"] {
    background: radial-gradient(circle, #fecaca 0%, #dc2626 72%) !important;
    box-shadow:
        inset 0 0 4px rgba(255,255,255,0.34),
        0 0 16px #ef4444,
        0 0 0 4px color-mix(in srgb, #ef4444 26%, transparent) !important;
    animation: cockpit-led-fast 0.8s ease-in-out infinite !important;
}

body[data-site="maverick"] .swarm-section--terminals .fc-status-running {
    color: #16a34a !important;
    font-weight: 900 !important;
}

body[data-site="maverick"] .swarm-section--terminals .fc-status-scheduled {
    color: #d97706 !important;
    font-weight: 900 !important;
}

body[data-site="maverick"] .swarm-section--terminals .fc-status-idle {
    color: #991b1b !important;
    font-weight: 900 !important;
}

/* TRUE EOF OVERRIDE 2026-05-19: small traffic LEDs, not giant glowing suns. */
body[data-site="maverick"] .swarm-section--terminals .swarm-led-bar__led {
    width: 8px !important;
    height: 8px !important;
    min-width: 8px !important;
    min-height: 8px !important;
}

body[data-site="maverick"] .swarm-section--terminals .swarm-terminal__led,
body[data-site="maverick"] .swarm-section--terminals .swarm-feed-panel__state {
    width: 10px !important;
    height: 10px !important;
    min-width: 10px !important;
    min-height: 10px !important;
    flex: 0 0 10px !important;
    box-shadow: none !important;
    animation: none !important;
}

body[data-site="maverick"] .swarm-section--terminals .swarm-led-bar__led[data-state="running"],
body[data-site="maverick"] .swarm-section--terminals .swarm-terminal__led[data-state="running"],
body[data-site="maverick"] .swarm-section--terminals .swarm-feed-panel__state[data-state="running"] {
    background: #22c55e !important;
    box-shadow: 0 0 7px color-mix(in srgb, #22c55e 65%, transparent) !important;
    animation: none !important;
}

body[data-site="maverick"] .swarm-section--terminals .swarm-led-bar__led[data-state="scheduled"],
body[data-site="maverick"] .swarm-section--terminals .swarm-terminal__led[data-state="scheduled"],
body[data-site="maverick"] .swarm-section--terminals .swarm-feed-panel__state[data-state="scheduled"] {
    background: #f59e0b !important;
    box-shadow: 0 0 6px color-mix(in srgb, #f59e0b 58%, transparent) !important;
    animation: none !important;
}

body[data-site="maverick"] .swarm-section--terminals .swarm-led-bar__led[data-state="idle"],
body[data-site="maverick"] .swarm-section--terminals .swarm-terminal__led[data-state="idle"],
body[data-site="maverick"] .swarm-section--terminals .swarm-feed-panel__state[data-state="idle"] {
    background: #991b1b !important;
    box-shadow: 0 0 4px color-mix(in srgb, #991b1b 42%, transparent) !important;
    animation: none !important;
}

body[data-site="maverick"] .swarm-section--terminals .swarm-led-bar__led[data-state="failed"],
body[data-site="maverick"] .swarm-section--terminals .swarm-terminal__led[data-state="failed"],
body[data-site="maverick"] .swarm-section--terminals .swarm-feed-panel__state[data-state="failed"] {
    background: #dc2626 !important;
    box-shadow: 0 0 7px color-mix(in srgb, #dc2626 65%, transparent) !important;
    animation: none !important;
}

/* 2026-05-26 final light-mode warn contrast override. Keep this after the
   Maverick terminal blue block so the day theme cannot fall back to pale gold. */
[data-theme="light"] .swarm-terminal__sub .v-scheduled,
[data-theme="light"] body[data-site="maverick"] .swarm-section--terminals .swarm-terminal__sub .v-scheduled {
    color: #92400e !important;
    text-shadow: none !important;
}

[data-theme="light"] .swarm-terminal__badge[data-tone="warn"],
[data-theme="light"] body[data-site="maverick"] .swarm-section--terminals .swarm-terminal__badge[data-tone="warn"] {
    color: #92400e !important;
    border-color: color-mix(in srgb, #92400e 35%, var(--border)) !important;
}

[data-theme="light"] .swarm-terminal__badge[data-tone="warn"]::before,
[data-theme="light"] body[data-site="maverick"] .swarm-section--terminals .swarm-terminal__badge[data-tone="warn"]::before {
    background: #92400e !important;
    box-shadow: 0 0 8px rgba(146, 64, 14, 0.4) !important;
}

/* 2026-05-26 final light-mode warn contrast override. */
[data-theme="light"] .swarm-terminal__sub .v-scheduled {
    color: #92400e !important;
}

[data-theme="light"] .swarm-terminal__badge[data-tone="warn"] {
    color: #92400e !important;
    border-color: color-mix(in srgb, #92400e 35%, var(--border)) !important;
}

[data-theme="light"] .swarm-terminal__badge[data-tone="warn"]::before {
    background: #92400e !important;
    box-shadow: 0 0 8px rgba(146, 64, 14, 0.4) !important;
}

/* 2026-05-26: light-mode schedule/warn accents. Keep amber semantic meaning
   but darken it enough to read on white cards. */
[data-theme="light"] .swarm-terminal__sub .v-scheduled {
    color: #92400e;
}

[data-theme="light"] .swarm-terminal__badge[data-tone="warn"] {
    color: #92400e;
    border-color: color-mix(in srgb, #92400e 35%, var(--border));
}

[data-theme="light"] .swarm-terminal__badge[data-tone="warn"]::before {
    background: #92400e;
    box-shadow: 0 0 8px rgba(146, 64, 14, 0.4);
}

/* CODEX BLUE TRUE EOF 2026-05-19 20:38 BST.
   Final cascade winner: blue chrome, tiny LEDs, traffic colours only for state. */
body[data-site="maverick"] {
    --swarm-blue: #60a5fa;
    --swarm-blue-text: #93c5fd;
    --swarm-blue-border: rgba(96, 165, 250, 0.42);
    --swarm-blue-bg: rgba(96, 165, 250, 0.08);
    --swarm-blue-glow: rgba(96, 165, 250, 0.24);
    --site-accent: var(--swarm-blue);
    --accent: var(--swarm-blue);
    --gold: var(--swarm-blue);
    --amber: var(--swarm-blue);
    --gold-bg: var(--swarm-blue-bg);
    --gold-border: var(--swarm-blue-border);
}

body[data-site="maverick"] .nav-neon-line,
body[data-site="maverick"] .nav::after {
    background: linear-gradient(90deg, transparent, var(--swarm-blue), transparent) !important;
    box-shadow: 0 0 18px var(--swarm-blue-glow) !important;
}

body[data-site="maverick"] .nav-center a[href*="shadow.freedomcore.io"],
body[data-site="maverick"] .nav-center a[href*="quantum.freedomcore.io"],
body[data-site="maverick"] .nav-center a[href*="arena.freedomcore.io"],
body[data-site="maverick"] .nav-center a[href="/pages/access.html"],
body[data-site="maverick"] .ssl-popup-title svg,
body[data-site="maverick"] .ssl-popup a[href="/pages/security.html"],
body[data-site="maverick"] .swarm-hero__eyebrow,
body[data-site="maverick"] .swarm-section .section-label,
body[data-site="maverick"] .swarm-tv-summary__card span,
body[data-site="maverick"] .llm-phase__header span,
body[data-site="maverick"] .llm-phase__header em,
body[data-site="maverick"] .footer-logo,
body[data-site="maverick"] .swarm-feed-panel__title,
body[data-site="maverick"] .terminal-overlay__kicker {
    color: var(--swarm-blue-text) !important;
    border-color: var(--swarm-blue-border) !important;
    text-shadow: 0 0 12px var(--swarm-blue-glow) !important;
}

body[data-site="maverick"] .swarm-hero__metric,
body[data-site="maverick"] .swarm-tv-summary__card,
body[data-site="maverick"] .llm-phase,
body[data-site="maverick"] .llm-phase--primary,
body[data-site="maverick"] .llm-rules article,
body[data-site="maverick"] .swarm-terminal,
body[data-site="maverick"] .swarm-feed-panel,
body[data-site="maverick"] .terminal-overlay__panel,
body[data-site="maverick"] .swarm-feed-select {
    border-color: var(--swarm-blue-border) !important;
    background:
        radial-gradient(circle at 50% 0%, var(--swarm-blue-bg), transparent 48%),
        var(--card) !important;
    box-shadow:
        inset 0 0 0 1px color-mix(in srgb, var(--swarm-blue) 7%, transparent),
        0 24px 58px -45px var(--swarm-blue-glow) !important;
}

body[data-site="maverick"] .swarm-section--terminals .swarm-led-bar__led {
    width: 5px !important;
    height: 5px !important;
    min-width: 5px !important;
    min-height: 5px !important;
    border-radius: 999px !important;
}

body[data-site="maverick"] .swarm-section--terminals .swarm-terminal__led,
body[data-site="maverick"] .swarm-section--terminals .swarm-feed-panel__state {
    width: 7px !important;
    height: 7px !important;
    min-width: 7px !important;
    min-height: 7px !important;
    flex: 0 0 7px !important;
    border-radius: 999px !important;
}

body[data-site="maverick"] .swarm-section--terminals .swarm-led-bar__led::before,
body[data-site="maverick"] .swarm-section--terminals .swarm-led-bar__led::after,
body[data-site="maverick"] .swarm-section--terminals .swarm-terminal__led::before,
body[data-site="maverick"] .swarm-section--terminals .swarm-terminal__led::after,
body[data-site="maverick"] .swarm-section--terminals .swarm-feed-panel__state::before,
body[data-site="maverick"] .swarm-section--terminals .swarm-feed-panel__state::after {
    display: none !important;
    content: none !important;
}

/* CODEX BLUE FINALITY 2026-05-19 20:32 BST.
   This must stay at EOF: it beats older orange/gold cockpit rules above. */
body[data-site="maverick"] {
    --swarm-blue: #60a5fa;
    --swarm-blue-strong: #2563eb;
    --swarm-blue-text: #93c5fd;
    --swarm-blue-border: rgba(96, 165, 250, 0.42);
    --swarm-blue-bg: rgba(96, 165, 250, 0.08);
    --swarm-blue-glow: rgba(96, 165, 250, 0.24);
    --accent: var(--swarm-blue);
    --gold: var(--swarm-blue);
    --amber: var(--swarm-blue);
    --gold-bg: var(--swarm-blue-bg);
    --gold-border: var(--swarm-blue-border);
}

body[data-site="maverick"] .nav-neon-line {
    background: linear-gradient(90deg, transparent, var(--swarm-blue), transparent) !important;
    box-shadow: 0 0 18px var(--swarm-blue-glow) !important;
}

body[data-site="maverick"] .nav-center a[href*="shadow.freedomcore.io"],
body[data-site="maverick"] .nav-center a[href*="quantum.freedomcore.io"],
body[data-site="maverick"] .nav-center a[href*="arena.freedomcore.io"],
body[data-site="maverick"] .nav-center a[href="/pages/access.html"],
body[data-site="maverick"] .ssl-popup-title svg,
body[data-site="maverick"] .ssl-popup a[href="/pages/security.html"] {
    color: var(--swarm-blue-text) !important;
    border-color: var(--swarm-blue-border) !important;
    text-shadow: 0 0 10px var(--swarm-blue-glow) !important;
}

body[data-site="maverick"] .swarm-hero__eyebrow,
body[data-site="maverick"] .swarm-section .section-label,
body[data-site="maverick"] .swarm-tv-summary__card span,
body[data-site="maverick"] .llm-phase__header span,
body[data-site="maverick"] .llm-phase__header em,
body[data-site="maverick"] .footer-logo,
body[data-site="maverick"] .swarm-feed-panel__title,
body[data-site="maverick"] .terminal-overlay__kicker {
    color: var(--swarm-blue-text) !important;
    text-shadow: 0 0 12px var(--swarm-blue-glow) !important;
}

body[data-site="maverick"] .swarm-hero__metric,
body[data-site="maverick"] .swarm-tv-summary__card,
body[data-site="maverick"] .llm-phase,
body[data-site="maverick"] .llm-phase--primary,
body[data-site="maverick"] .llm-rules article,
body[data-site="maverick"] .swarm-terminal,
body[data-site="maverick"] .swarm-feed-panel,
body[data-site="maverick"] .terminal-overlay__panel,
body[data-site="maverick"] .swarm-feed-select {
    border-color: var(--swarm-blue-border) !important;
    background:
        radial-gradient(circle at 50% 0%, var(--swarm-blue-bg), transparent 48%),
        var(--card) !important;
    box-shadow:
        inset 0 0 0 1px color-mix(in srgb, var(--swarm-blue) 7%, transparent),
        0 24px 58px -45px var(--swarm-blue-glow) !important;
}

body[data-site="maverick"] .llm-phase--primary,
body[data-site="maverick"] .swarm-terminal.is-active,
body[data-site="maverick"] .swarm-feed-tab.is-active {
    outline: 1px solid color-mix(in srgb, var(--swarm-blue) 22%, transparent) !important;
}

body[data-site="maverick"] .swarm-section--terminals .swarm-led-bar__led {
    width: 5px !important;
    height: 5px !important;
    min-width: 5px !important;
    min-height: 5px !important;
    border-radius: 999px !important;
}

body[data-site="maverick"] .swarm-section--terminals .swarm-terminal__led,
body[data-site="maverick"] .swarm-section--terminals .swarm-feed-panel__state {
    width: 7px !important;
    height: 7px !important;
    min-width: 7px !important;
    min-height: 7px !important;
    flex: 0 0 7px !important;
    border-radius: 999px !important;
}

body[data-site="maverick"] .swarm-section--terminals .swarm-led-bar__led::before,
body[data-site="maverick"] .swarm-section--terminals .swarm-led-bar__led::after,
body[data-site="maverick"] .swarm-section--terminals .swarm-terminal__led::before,
body[data-site="maverick"] .swarm-section--terminals .swarm-terminal__led::after,
body[data-site="maverick"] .swarm-section--terminals .swarm-feed-panel__state::before,
body[data-site="maverick"] .swarm-section--terminals .swarm-feed-panel__state::after {
    display: none !important;
    content: none !important;
}

body[data-site="maverick"] .swarm-section--terminals .swarm-led-bar__led[data-state="running"],
body[data-site="maverick"] .swarm-section--terminals .swarm-terminal__led[data-state="running"],
body[data-site="maverick"] .swarm-section--terminals .swarm-feed-panel__state[data-state="running"] {
    background: #22c55e !important;
    box-shadow: 0 0 7px color-mix(in srgb, #22c55e 65%, transparent) !important;
    animation: none !important;
}

body[data-site="maverick"] .swarm-section--terminals .swarm-led-bar__led[data-state="scheduled"],
body[data-site="maverick"] .swarm-section--terminals .swarm-terminal__led[data-state="scheduled"],
body[data-site="maverick"] .swarm-section--terminals .swarm-feed-panel__state[data-state="scheduled"] {
    background: #f59e0b !important;
    box-shadow: 0 0 6px color-mix(in srgb, #f59e0b 58%, transparent) !important;
    animation: none !important;
}

body[data-site="maverick"] .swarm-section--terminals .swarm-led-bar__led[data-state="idle"],
body[data-site="maverick"] .swarm-section--terminals .swarm-terminal__led[data-state="idle"],
body[data-site="maverick"] .swarm-section--terminals .swarm-feed-panel__state[data-state="idle"] {
    background: #991b1b !important;
    box-shadow: 0 0 4px color-mix(in srgb, #991b1b 42%, transparent) !important;
    animation: none !important;
}

body[data-site="maverick"] .swarm-section--terminals .swarm-led-bar__led[data-state="failed"],
body[data-site="maverick"] .swarm-section--terminals .swarm-terminal__led[data-state="failed"],
body[data-site="maverick"] .swarm-section--terminals .swarm-feed-panel__state[data-state="failed"] {
    background: #dc2626 !important;
    box-shadow: 0 0 7px color-mix(in srgb, #dc2626 65%, transparent) !important;
    animation: none !important;
}

/* TRUE FINAL BLUE UNIFY 2026-05-19.
   Keep semantic traffic lights green/amber/red, but make all decorative page
   chrome blue so the swarm wall no longer reads half orange / half blue. */
body[data-site="maverick"] {
    --swarm-page-blue: #60a5fa;
    --swarm-page-blue-text: #93c5fd;
    --swarm-page-blue-border: rgba(96, 165, 250, 0.36);
    --swarm-page-blue-bg: rgba(96, 165, 250, 0.075);
    --swarm-page-blue-glow: rgba(96, 165, 250, 0.22);
}

body[data-site="maverick"] .nav-neon-line {
    background: linear-gradient(90deg, transparent, var(--swarm-page-blue), transparent) !important;
    box-shadow: 0 0 18px var(--swarm-page-blue-glow) !important;
}

body[data-site="maverick"] .swarm-hero__eyebrow,
body[data-site="maverick"] .section-label,
body[data-site="maverick"] .swarm-tv-summary__card span,
body[data-site="maverick"] .llm-phase__header span,
body[data-site="maverick"] .llm-phase__header em,
body[data-site="maverick"] .footer-logo {
    color: var(--swarm-page-blue-text) !important;
    text-shadow: 0 0 12px var(--swarm-page-blue-glow) !important;
}

body[data-site="maverick"] .swarm-hero__metric,
body[data-site="maverick"] .swarm-tv-summary__card,
body[data-site="maverick"] .llm-phase,
body[data-site="maverick"] .llm-phase--primary,
body[data-site="maverick"] .llm-rules article {
    border-color: var(--swarm-page-blue-border) !important;
    background:
        radial-gradient(circle at 50% 0%, var(--swarm-page-blue-bg), transparent 44%),
        color-mix(in srgb, var(--card) 94%, var(--bg)) !important;
    box-shadow:
        0 0 0 1px color-mix(in srgb, var(--swarm-page-blue) 12%, transparent),
        0 24px 58px -42px var(--swarm-page-blue-glow) !important;
}

body[data-site="maverick"] .llm-phase--primary {
    outline: 1px solid color-mix(in srgb, var(--swarm-page-blue) 22%, transparent) !important;
}

body[data-site="maverick"] .swarm-section--terminals .swarm-led-bar__led {
    width: 6px !important;
    height: 6px !important;
    min-width: 6px !important;
    min-height: 6px !important;
    box-shadow: none !important;
}

body[data-site="maverick"] .swarm-section--terminals .swarm-terminal__led,
body[data-site="maverick"] .swarm-section--terminals .swarm-feed-panel__state {
    width: 7px !important;
    height: 7px !important;
    min-width: 7px !important;
    min-height: 7px !important;
    flex: 0 0 7px !important;
    box-shadow: none !important;
    animation: none !important;
}

body[data-site="maverick"] .swarm-section--terminals .swarm-terminal__led::before,
body[data-site="maverick"] .swarm-section--terminals .swarm-terminal__led::after,
body[data-site="maverick"] .swarm-section--terminals .swarm-feed-panel__state::before,
body[data-site="maverick"] .swarm-section--terminals .swarm-feed-panel__state::after,
body[data-site="maverick"] .swarm-section--terminals .swarm-led-bar__led::before,
body[data-site="maverick"] .swarm-section--terminals .swarm-led-bar__led::after {
    display: none !important;
}

body[data-site="maverick"] .swarm-section--terminals .swarm-terminal__led[data-state="running"],
body[data-site="maverick"] .swarm-section--terminals .swarm-feed-panel__state[data-state="running"],
body[data-site="maverick"] .swarm-section--terminals .swarm-led-bar__led[data-state="running"] {
    background: #22c55e !important;
    box-shadow: 0 0 5px rgba(34, 197, 94, 0.72) !important;
}

body[data-site="maverick"] .swarm-section--terminals .swarm-terminal__led[data-state="scheduled"],
body[data-site="maverick"] .swarm-section--terminals .swarm-feed-panel__state[data-state="scheduled"],
body[data-site="maverick"] .swarm-section--terminals .swarm-led-bar__led[data-state="scheduled"] {
    background: #f59e0b !important;
    box-shadow: 0 0 5px rgba(245, 158, 11, 0.62) !important;
}

body[data-site="maverick"] .swarm-section--terminals .swarm-terminal__led[data-state="idle"],
body[data-site="maverick"] .swarm-section--terminals .swarm-feed-panel__state[data-state="idle"],
body[data-site="maverick"] .swarm-section--terminals .swarm-led-bar__led[data-state="idle"],
body[data-site="maverick"] .swarm-section--terminals .swarm-terminal__led[data-state="failed"],
body[data-site="maverick"] .swarm-section--terminals .swarm-feed-panel__state[data-state="failed"],
body[data-site="maverick"] .swarm-section--terminals .swarm-led-bar__led[data-state="failed"] {
    background: #b91c1c !important;
    box-shadow: 0 0 4px rgba(185, 28, 28, 0.55) !important;
}

/* FINAL OVERRIDE 2026-05-19: terminal traffic-light truth after all legacy colour rules.
   Green = running, amber = fires within 1h, red = stopped/idle/fail. */
body[data-site="maverick"] .swarm-section--terminals #swarm-run-selector.swarm-feed-select {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

body[data-site="maverick"] .swarm-section--terminals .swarm-led-bar__led[data-state="running"],
body[data-site="maverick"] .swarm-section--terminals .swarm-terminal__led[data-state="running"],
body[data-site="maverick"] .swarm-section--terminals .swarm-feed-panel__state[data-state="running"] {
    background: radial-gradient(circle, #86efac 0%, #16a34a 72%) !important;
    box-shadow:
        inset 0 0 4px rgba(255,255,255,0.45),
        0 0 16px #22c55e,
        0 0 0 4px color-mix(in srgb, #22c55e 22%, transparent) !important;
    animation: cockpit-led-pulse 1.4s ease-in-out infinite !important;
}

body[data-site="maverick"] .swarm-section--terminals .swarm-led-bar__led[data-state="scheduled"],
body[data-site="maverick"] .swarm-section--terminals .swarm-terminal__led[data-state="scheduled"],
body[data-site="maverick"] .swarm-section--terminals .swarm-feed-panel__state[data-state="scheduled"] {
    background: radial-gradient(circle, #fde68a 0%, #f59e0b 72%) !important;
    box-shadow:
        inset 0 0 4px rgba(255,255,255,0.4),
        0 0 14px #fbbf24,
        0 0 0 4px color-mix(in srgb, #fbbf24 22%, transparent) !important;
    animation: cockpit-led-slow 2.8s ease-in-out infinite !important;
}

body[data-site="maverick"] .swarm-section--terminals .swarm-led-bar__led[data-state="idle"],
body[data-site="maverick"] .swarm-section--terminals .swarm-terminal__led[data-state="idle"],
body[data-site="maverick"] .swarm-section--terminals .swarm-feed-panel__state[data-state="idle"] {
    background: radial-gradient(circle, #fca5a5 0%, #991b1b 72%) !important;
    box-shadow:
        inset 0 0 4px rgba(255,255,255,0.25),
        0 0 10px color-mix(in srgb, #ef4444 55%, transparent),
        0 0 0 3px color-mix(in srgb, #ef4444 16%, transparent) !important;
    animation: none !important;
}

body[data-site="maverick"] .swarm-section--terminals .swarm-led-bar__led[data-state="failed"],
body[data-site="maverick"] .swarm-section--terminals .swarm-terminal__led[data-state="failed"],
body[data-site="maverick"] .swarm-section--terminals .swarm-feed-panel__state[data-state="failed"] {
    background: radial-gradient(circle, #fecaca 0%, #dc2626 72%) !important;
    box-shadow:
        inset 0 0 4px rgba(255,255,255,0.34),
        0 0 16px #ef4444,
        0 0 0 4px color-mix(in srgb, #ef4444 26%, transparent) !important;
    animation: cockpit-led-fast 0.8s ease-in-out infinite !important;
}

body[data-site="maverick"] .swarm-section--terminals .fc-status-running {
    color: #16a34a !important;
    font-weight: 900 !important;
}

body[data-site="maverick"] .swarm-section--terminals .fc-status-scheduled {
    color: #d97706 !important;
    font-weight: 900 !important;
}

body[data-site="maverick"] .swarm-section--terminals .fc-status-idle {
    color: #991b1b !important;
    font-weight: 900 !important;
}

/* FINAL OVERRIDE 2026-05-19: terminal traffic-light truth.
   Green = running, amber = fires within 1h, red = stopped/idle/fail. */
body[data-site="maverick"] .swarm-section--terminals #swarm-run-selector.swarm-feed-select {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

body[data-site="maverick"] .swarm-section--terminals .swarm-led-bar__led[data-state="running"],
body[data-site="maverick"] .swarm-section--terminals .swarm-terminal__led[data-state="running"],
body[data-site="maverick"] .swarm-section--terminals .swarm-feed-panel__state[data-state="running"] {
    background: radial-gradient(circle, #86efac 0%, #16a34a 72%) !important;
    box-shadow:
        inset 0 0 4px rgba(255,255,255,0.45),
        0 0 16px #22c55e,
        0 0 0 4px color-mix(in srgb, #22c55e 22%, transparent) !important;
    animation: cockpit-led-pulse 1.4s ease-in-out infinite !important;
}

body[data-site="maverick"] .swarm-section--terminals .swarm-led-bar__led[data-state="scheduled"],
body[data-site="maverick"] .swarm-section--terminals .swarm-terminal__led[data-state="scheduled"],
body[data-site="maverick"] .swarm-section--terminals .swarm-feed-panel__state[data-state="scheduled"] {
    background: radial-gradient(circle, #fde68a 0%, #f59e0b 72%) !important;
    box-shadow:
        inset 0 0 4px rgba(255,255,255,0.4),
        0 0 14px #fbbf24,
        0 0 0 4px color-mix(in srgb, #fbbf24 22%, transparent) !important;
    animation: cockpit-led-slow 2.8s ease-in-out infinite !important;
}

body[data-site="maverick"] .swarm-section--terminals .swarm-led-bar__led[data-state="idle"],
body[data-site="maverick"] .swarm-section--terminals .swarm-terminal__led[data-state="idle"],
body[data-site="maverick"] .swarm-section--terminals .swarm-feed-panel__state[data-state="idle"] {
    background: radial-gradient(circle, #fca5a5 0%, #991b1b 72%) !important;
    box-shadow:
        inset 0 0 4px rgba(255,255,255,0.25),
        0 0 10px color-mix(in srgb, #ef4444 55%, transparent),
        0 0 0 3px color-mix(in srgb, #ef4444 16%, transparent) !important;
    animation: none !important;
}

body[data-site="maverick"] .swarm-section--terminals .swarm-led-bar__led[data-state="failed"],
body[data-site="maverick"] .swarm-section--terminals .swarm-terminal__led[data-state="failed"],
body[data-site="maverick"] .swarm-section--terminals .swarm-feed-panel__state[data-state="failed"] {
    background: radial-gradient(circle, #fecaca 0%, #dc2626 72%) !important;
    box-shadow:
        inset 0 0 4px rgba(255,255,255,0.34),
        0 0 16px #ef4444,
        0 0 0 4px color-mix(in srgb, #ef4444 26%, transparent) !important;
    animation: cockpit-led-fast 0.8s ease-in-out infinite !important;
}

body[data-site="maverick"] .swarm-section--terminals .fc-status-running {
    color: #16a34a !important;
    font-weight: 900 !important;
}

body[data-site="maverick"] .swarm-section--terminals .fc-status-scheduled {
    color: #d97706 !important;
    font-weight: 900 !important;
}

body[data-site="maverick"] .swarm-section--terminals .fc-status-idle {
    color: #991b1b !important;
    font-weight: 900 !important;
}

/* ─── 3. TIMELINE ─────────────────────────────────────────────────────────── */
.swarm-timeline { display: grid; gap: 0; margin-top: var(--sp-32); }
.swarm-timeline__group {
    margin: var(--sp-32) 0 var(--sp-8);
    padding-bottom: var(--sp-8);
    border-bottom: 1px solid var(--border);
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-size: var(--fs-12);
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent);
}
.swarm-timeline__group:first-child { margin-top: 0; }
.swarm-timeline__item {
    display: grid;
    grid-template-columns: minmax(120px, 170px) 24px minmax(0, 1fr);
    gap: var(--sp-24);
}
.swarm-timeline__time,
.swarm-timeline__body {
    padding: var(--sp-24) 0;
    border-bottom: 1px solid var(--border);
}
.swarm-timeline__time time {
    display: block;
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-size: var(--fs-14);
    font-weight: 600;
    color: var(--accent);
}
.swarm-timeline__time span {
    display: block;
    margin-top: var(--sp-8);
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-size: var(--fs-12);
    line-height: 1.45;
    color: var(--text-dim);
}
.swarm-timeline__rail { position: relative; border-bottom: 1px solid var(--border); }
.swarm-timeline__rail::before {
    content: '';
    position: absolute;
    top: 0; bottom: 0;
    left: 50%;
    width: 1px;
    background: var(--border);
}
.swarm-timeline__rail::after {
    content: '';
    position: absolute;
    top: var(--sp-32);
    left: 50%;
    width: 8px; height: 8px;
    border-radius: var(--radius-pill);
    background: var(--surface);
    border: 2px solid var(--accent);
    transform: translate(-50%, -50%);
}
.swarm-timeline__body h4 {
    margin: 0 0 var(--sp-8);
    font-size: var(--fs-20);
    font-weight: 600;
    color: var(--text);
}
.swarm-timeline__body p {
    max-width: 68ch;
    margin: 0;
    font-size: var(--fs-14);
    line-height: 1.65;
    color: var(--text-dim);
}
@media (max-width: 720px) {
    .swarm-timeline__item {
        grid-template-columns: 20px minmax(0, 1fr);
        gap: var(--sp-16);
    }
    .swarm-timeline__rail { grid-column: 1; grid-row: 1 / span 2; }
    .swarm-timeline__time, .swarm-timeline__body { grid-column: 2; }
    .swarm-timeline__time { padding-bottom: var(--sp-8); border-bottom: 0; }
    .swarm-timeline__body { padding-top: 0; }
}

/* ─── 4. LLM INTELLIGENCE PANEL ───────────────────────────────────────────── */
.llm-phases { display: grid; gap: var(--sp-24); margin-top: var(--sp-32); }
.llm-phase {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-card);
    overflow: hidden;
}
.llm-phase--primary {
    border-color: var(--accent);
    background: var(--gold-bg);
}
.llm-phase__header {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: var(--sp-16);
    align-items: baseline;
    padding: var(--sp-24);
    border-bottom: 1px solid var(--border);
}
.llm-phase__header span,
.llm-phase__header em {
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-size: var(--fs-12);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-dim);
    font-style: normal;
    font-weight: 600;
}
.llm-phase__header strong { font-size: var(--fs-20); color: var(--text); font-weight: 600; }
.llm-phase__cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1px;
    background: var(--border);
}
.llm-method { background: var(--surface); padding: var(--sp-24); }
.llm-method h3, .llm-rules h3 {
    margin: 0 0 var(--sp-8);
    font-size: var(--fs-20);
    color: var(--text);
    font-weight: 600;
}
.llm-method p, .llm-phase__summary, .llm-rules p {
    margin: 0;
    font-size: var(--fs-14);
    line-height: 1.65;
    color: var(--text-dim);
}
.llm-phase__summary { padding: var(--sp-24); max-width: 72ch; }
.llm-rules {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--sp-24);
    margin-top: var(--sp-24);
}
.llm-rules article {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-card);
    padding: var(--sp-24);
}

/* ─── 5. LIVE AGENT FEEDS ─────────────────────────────────────────────────── */
.swarm-feed-tabs {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
    gap: 1px;
    background: var(--border);
    border: 1px solid var(--border);
    border-radius: var(--radius-card);
    margin-top: var(--sp-32);
    overflow: hidden;
}
/* 2026-05-18 Rob: tabs container is `hidden` in HTML because the redesign
   stacks all 6 terminals vertically. CSS `display: grid` was overriding the
   browser's default `[hidden]` behaviour, so empty countdown boxes leaked
   onto the page between the LED bar and Council card. Force hidden. */
.swarm-feed-tabs[hidden],
.swarm-feed-tabs[hidden="hidden"],
.swarm-feed-tabs[hidden=""] {
    display: none !important;
}
.swarm-feed-tab {
    background: var(--surface);
    padding: var(--sp-16);
    border: none;
    text-align: left;
    cursor: pointer;
    transition: background var(--duration-ui) var(--ease-out);
    color: inherit;
    font-family: inherit;
}
.swarm-feed-tab:hover { background: var(--gold-bg); }
.swarm-feed-tab.is-active { background: var(--gold-bg); }
.swarm-feed-tab__name {
    display: block;
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-size: var(--fs-12);
    font-weight: 700;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 4px;
}
.swarm-feed-tab.is-active .swarm-feed-tab__name { color: var(--accent); }
.swarm-feed-tab__timer {
    display: block;
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-size: 0.625rem;
    color: var(--text-dim);
    letter-spacing: 0.04em;
}

.swarm-feed-panel {
    display: none;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-card);
    margin-top: var(--sp-24);
    overflow: hidden;
}
.swarm-feed-panel.is-active { display: block; }
.swarm-feed-panel__header {
    display: flex;
    align-items: center;
    gap: var(--sp-16);
    padding: var(--sp-16) var(--sp-24);
    border-bottom: 1px solid var(--border);
    flex-wrap: wrap;
}
.swarm-feed-panel__state {
    width: 8px; height: 8px;
    border-radius: var(--radius-pill);
    background: var(--text-dim);
    flex-shrink: 0;
}
.swarm-feed-panel__state[data-state="live"] {
    background: var(--accent);
    box-shadow: 0 0 8px var(--glow-primary);
}
.swarm-feed-panel__title {
    flex: 1 1 auto;
    margin: 0;
    font-family: 'Inter', sans-serif;
    font-size: var(--fs-20);
    font-weight: 600;
    color: var(--text);
    min-width: 0;
}
.swarm-feed-panel__tools {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--sp-16);
    flex-wrap: wrap;
    flex: 1 1 100%;
    min-width: 0;
}
.swarm-feed-select {
    background: var(--bg);
    color: var(--text);
    border: 1px solid var(--border);
    padding: 8px 14px;
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    border-radius: var(--radius-button);
    outline: none;
    width: min(760px, 100%);
    min-width: min(100%, 280px);
    max-width: 100%;
    text-align: center;
    text-overflow: ellipsis;
}
.council-picker {
    position: relative;
    width: min(760px, 100%);
    min-width: min(100%, 280px);
    max-width: 100%;
}
.terminal-overlay-header .council-picker {
    width: min(560px, calc(100vw - 220px));
    margin-right: auto;
}
.swarm-feed-select + .council-picker {
    margin-inline: auto;
}
.council-picker__button {
    width: 100%;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 14px;
    border: 1px solid var(--chrome-border, var(--border));
    border-radius: var(--radius-button);
    background: var(--control-bg, var(--bg));
    color: var(--text);
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-size: clamp(0.64rem, 1.8vw, 0.76rem);
    font-weight: 900;
    letter-spacing: 0.04em;
    text-align: left;
    cursor: pointer;
}
.council-picker__label {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.council-picker__chev {
    flex: 0 0 auto;
    color: var(--text-dim);
    font-size: 1rem;
    line-height: 1;
}
.council-picker__button:disabled {
    cursor: wait;
    opacity: 0.62;
}
.council-picker__menu {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 8px);
    z-index: 260;
    max-height: min(56vh, 440px);
    overflow-y: auto;
    padding: 8px;
    border: 1px solid var(--chrome-border, var(--border));
    border-radius: 10px;
    background: var(--menu-bg, var(--card));
    box-shadow: var(--shadow-elevated, 0 18px 50px rgba(0, 0, 0, 0.28));
}
.council-picker[data-open="true"] .council-picker__menu {
    display: grid;
    gap: 6px;
}
.council-picker__option {
    width: 100%;
    display: grid;
    gap: 4px;
    padding: 10px 12px;
    border: 1px solid transparent;
    border-bottom: 1px solid color-mix(in srgb, var(--border) 70%, transparent);
    border-radius: 0;
    background: transparent;
    color: var(--text);
    text-align: left;
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-size: 0.68rem;
    font-weight: 900;
    letter-spacing: 0.03em;
    cursor: pointer;
}
.council-picker__option:last-child {
    border-bottom-color: transparent;
}
.council-picker__option small {
    color: var(--text-dim);
    font-size: 0.58rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.council-picker__option:hover,
.council-picker__option.is-active {
    border-color: color-mix(in srgb, var(--accent) 46%, var(--border));
    background: color-mix(in srgb, var(--accent) 12%, transparent);
    color: var(--accent);
}
.council-picker__option[data-disabled="true"] {
    cursor: default;
    opacity: 0.64;
}
.swarm-feed-select {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}
@media (max-width: 780px) {
    .terminal-overlay-header .council-picker {
        width: 100%;
        order: 2;
    }
    .council-picker__menu {
        position: fixed;
        left: 14px;
        right: 14px;
        top: auto;
        bottom: 18px;
        max-height: min(70vh, 620px);
        border-radius: 12px;
    }
    .council-picker__option {
        font-size: 0.7rem;
        padding: 12px 12px;
    }
}
.swarm-feed-meta {
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-size: 0.66rem;
    color: var(--text-dim);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}
.swarm-feed-panel__fullscreen {
    background: transparent;
    border: 1px solid var(--border);
    padding: 6px 12px;
    border-radius: var(--radius-button);
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-size: var(--fs-12);
    color: var(--text-dim);
    cursor: pointer;
    transition: color var(--duration-ui) var(--ease-out),
                border-color var(--duration-ui) var(--ease-out),
                background var(--duration-ui) var(--ease-out);
    letter-spacing: 0.04em;
    text-transform: uppercase;
}
.swarm-feed-panel__fullscreen:hover {
    color: var(--accent);
    border-color: var(--accent);
    background: var(--gold-bg);
}
.swarm-feed-panel__fullscreen kbd {
    display: inline-block;
    padding: 0 4px;
    border: 1px solid var(--border);
    border-radius: 2px;
    margin-left: 4px;
    font-family: inherit;
}
.swarm-feed-panel__body {
    padding: var(--sp-24);
    max-height: 65vh;
    overflow-y: auto;
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-size: var(--fs-14);
    color: var(--text-dim);
    line-height: 1.7;
}
.swarm-feed-panel__body--prose {
    font-family: 'Inter', sans-serif;
    font-size: var(--fs-16);
    line-height: 1.65;
    color: var(--text);
}
.swarm-feed-panel__body--prose p { margin: 0 0 1.25em; }

/* Render primitives — used by app.js renderers, no inline styles. */
.feed-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 10px;
    background: var(--gold-bg);
    border: 1px solid var(--gold-border);
    border-radius: var(--radius-button);
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-size: var(--fs-12);
    color: var(--accent);
    letter-spacing: 0.04em;
}
.feed-pill[data-tone="muted"] {
    background: transparent;
    border-color: var(--border);
    color: var(--text-dim);
}
.feed-pill strong { font-weight: 700; }
.feed-pillrow { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: var(--sp-16); }

.feed-stat {
    padding: var(--sp-16);
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-button);
    text-align: center;
}
.feed-stat strong {
    display: block;
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-size: var(--fs-20);
    color: var(--accent);
    font-weight: 700;
    margin-bottom: 4px;
}
.feed-stat span {
    display: block;
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-size: var(--fs-12);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-dim);
}
.feed-statrow {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: var(--sp-8);
    margin-bottom: var(--sp-16);
}

.feed-entry {
    padding: var(--sp-16);
    border: 1px solid var(--border);
    border-left: 2px solid var(--accent);
    border-radius: var(--radius-button);
    margin-bottom: var(--sp-16);
}
.feed-entry[data-state="loss"] { border-left-color: var(--text-dim); }
.feed-entry header {
    display: flex; align-items: center; gap: var(--sp-8);
    flex-wrap: wrap; margin-bottom: var(--sp-8);
}
.feed-entry header time {
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-size: var(--fs-12);
    color: var(--text-dim);
}
.feed-entry__body {
    font-family: 'Inter', sans-serif;
    font-size: var(--fs-14);
    line-height: 1.65;
    color: var(--text);
}
.feed-entry__body p { margin: 0 0 0.75em; }
.feed-entry__body p:last-child { margin-bottom: 0; }

.feed-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: var(--sp-8);
    margin-top: var(--sp-8);
}
.feed-grid > div {
    padding: var(--sp-8) var(--sp-16);
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-button);
}
.feed-grid span {
    display: block;
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-size: var(--fs-12);
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--text-dim);
}
.feed-grid strong {
    display: block;
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-size: var(--fs-14);
    color: var(--text);
    font-weight: 600;
    margin-top: 2px;
}

.feed-bars {
    display: flex; align-items: flex-end; gap: 4px;
    height: 120px; margin-bottom: var(--sp-16);
}
.feed-bars__col {
    flex: 1;
    background: linear-gradient(180deg, var(--accent), var(--gold-bg));
    border-radius: 3px 3px 0 0;
    min-height: 4px;
}
.feed-bars__col span {
    display: block;
    margin-bottom: 4px;
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-size: 0.5rem;
    color: var(--text-dim);
    text-align: center;
    transform: translateY(-100%);
}

.feed-section {
    margin: var(--sp-24) 0 var(--sp-8);
    padding-top: var(--sp-24);
    border-top: 1px solid var(--border);
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-size: var(--fs-12);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text);
    font-weight: 700;
}
.feed-section:first-child { margin-top: 0; padding-top: 0; border-top: 0; }

.feed-empty {
    padding: var(--sp-32);
    text-align: center;
    color: var(--text-dim);
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-size: var(--fs-14);
    border: 1px dashed var(--border);
    border-radius: var(--radius-card);
}

/* ─── 6. REDUCED MOTION + LIGHT-THEME PARITY ──────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
    .swarm-feed-tab,
    .swarm-feed-panel__fullscreen { transition: none !important; }
}

/* Light theme — surfaces flip via tokens, accents already remap. */
[data-theme="light"] .swarm-feed-panel__body--prose { color: var(--text); }
[data-theme="light"] .feed-bars__col {
    background: linear-gradient(180deg, var(--accent), var(--gold-bg));
}

/* ─── 7. INLINE COUNCIL READER — bigger by default ──────────────────────────
   Operator feedback 2026-04-30: "tiny little book" — the prose body was
   capped at 65vh / fs-16 inside a card column, which on phone left ~400px
   of reading room and 16px lines. Bumped to fill more vertical space and
   nudged type up to fs-18 / lh 1.7 with `ch`-based reading column. */
.swarm-feed-panel__body--prose {
    max-height: 78vh;
    font-size: var(--fs-18, 1.125rem);
    line-height: 1.7;
    padding: var(--sp-32) clamp(var(--sp-24), 4vw, var(--sp-48));
}
.swarm-feed-panel__body--prose > * { max-width: 78ch; margin-left: auto; margin-right: auto; }
.swarm-feed-panel__body--prose h1,
.swarm-feed-panel__body--prose h2,
.swarm-feed-panel__body--prose h3 {
    font-family: 'Inter', sans-serif;
    margin: 1.6em auto 0.6em;
    line-height: 1.25;
}
.swarm-feed-panel__body--prose h1 { font-size: var(--fs-28); letter-spacing: 0.01em; }
.swarm-feed-panel__body--prose h2 {
    font-size: var(--fs-20);
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    border-top: 1px solid var(--border);
    padding-top: 1.2em;
}
.swarm-feed-panel__body--prose h3 {
    font-size: var(--fs-16);
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    color: var(--text);
    text-transform: uppercase;
    letter-spacing: 0.10em;
    margin-top: 1.4em;
}
.swarm-feed-panel__body--prose pre,
.swarm-feed-panel__body--prose code {
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-size: 0.875em;
}
.swarm-feed-panel__body--prose pre {
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid var(--border);
    border-radius: var(--radius-card, 12px);
    padding: var(--sp-16);
    overflow-x: hidden;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    word-break: break-word;
    line-height: 1.55;
}
[data-theme="light"] .swarm-feed-panel__body--prose pre {
    background: rgba(10, 10, 15, 0.04);
}
.swarm-feed-panel__body--prose ul,
.swarm-feed-panel__body--prose ol { padding-left: 1.5em; }
.swarm-feed-panel__body--prose li { margin: 0.3em 0; }
.swarm-feed-panel__body--prose hr {
    border: 0;
    border-top: 1px solid var(--border);
    margin: 2em auto;
    max-width: 78ch;
}

/* ─── 8. FULLSCREEN OVERLAY — actually full-screen this time ────────────────
   The .terminal-overlay element existed in markup but had no CSS, so the
   `.active` toggle did nothing visible. Operator described the inline view
   as "a tiny little book" because hitting fullscreen produced no change. */
.terminal-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: var(--bg-primary, #0a0a0f);
    display: none;
    flex-direction: column;
    overflow: hidden;
}
.terminal-overlay.active { display: flex; }
.terminal-overlay-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--sp-16);
    padding: var(--sp-16) clamp(var(--sp-16), 4vw, var(--sp-32));
    border-bottom: 1px solid var(--border);
    background: var(--bg-elevated, #14141c);
    flex-wrap: wrap;
}
.terminal-overlay-header > select {
    flex: 1 1 520px;
    max-width: min(760px, 58vw);
    min-width: min(100%, 280px);
    text-align: center;
    font-size: 0.72rem;
    font-weight: 800;
}
.terminal-overlay-header #terminal-overlay-title {
    flex: 0 1 auto;
    min-width: 0;
    text-align: center;
}
.terminal-close-btn {
    margin-left: auto;
    padding: 8px 14px;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: var(--radius-button, 8px);
    color: var(--text-dim);
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-size: var(--fs-12);
    letter-spacing: 0.10em;
    cursor: pointer;
    transition: border-color 200ms, color 200ms;
}
.terminal-close-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
}
.terminal-overlay-body {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding: clamp(var(--sp-24), 5vw, var(--sp-64)) clamp(var(--sp-16), 6vw, var(--sp-96));
    color: var(--text);
    font-family: 'Inter', sans-serif;
    font-size: clamp(var(--fs-16), 2.4vw, var(--fs-20));
    line-height: 1.75;
}
.terminal-overlay--reader .terminal-overlay-body > * {
    max-width: min(104ch, 100%);
    margin-left: auto;
    margin-right: auto;
    overflow-wrap: anywhere;
}
.terminal-overlay--reader .terminal-overlay-body h1 {
    font-size: clamp(var(--fs-28), 4vw, var(--fs-40));
    margin: 0.6em auto 0.4em;
    line-height: 1.2;
}
.terminal-overlay--reader .terminal-overlay-body h2 {
    font-size: clamp(var(--fs-20), 2.6vw, var(--fs-28));
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin: 1.6em auto 0.6em;
    border-top: 1px solid var(--border);
    padding-top: 1.0em;
}
.terminal-overlay--reader .terminal-overlay-body h3 {
    font-size: var(--fs-18, 1.125rem);
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    text-transform: uppercase;
    letter-spacing: 0.10em;
    color: var(--text);
    margin: 1.8em auto 0.4em;
}
.terminal-overlay--reader .terminal-overlay-body pre,
.terminal-overlay--reader .terminal-overlay-body code {
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    overflow-wrap: anywhere;
    word-break: break-word;
}
.terminal-overlay--reader .terminal-overlay-body pre {
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid var(--border);
    border-radius: var(--radius-card, 12px);
    padding: var(--sp-16);
    overflow-x: hidden;
    white-space: pre-wrap;
    font-size: 0.85em;
    line-height: 1.55;
}
[data-theme="light"] .terminal-overlay--reader .terminal-overlay-body pre {
    background: rgba(10, 10, 15, 0.04);
}
.council-code-block,
.council-table-block {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 12px 14px;
    margin: 12px 0;
    color: var(--text);
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-size: 0.72rem;
    line-height: 1.58;
    white-space: pre-wrap;
    overflow-x: hidden;
    overflow-wrap: anywhere;
    word-break: break-word;
}
.council-table-block { font-size: 0.68rem; }
.council-loading-state {
    width: min(520px, 100%);
    margin: 80px auto;
    padding: 18px 20px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: color-mix(in srgb, var(--card) 78%, transparent);
    color: var(--text-dim);
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-align: center;
    text-transform: uppercase;
}
.council-loading-state--active {
    position: relative;
    display: block;
    padding: 22px;
    text-align: left;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 8px;
}
.council-loading-state--active::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(115deg, rgba(255,255,255,0.12), transparent 24%, transparent 70%, rgba(255,255,255,0.08));
    opacity: 0.65;
}
.council-loader-orbit {
    display: none !important;
}
.council-loader-orbit::before,
.council-loader-orbit::after {
    content: "";
    position: absolute;
    inset: 7px;
    border-radius: 50%;
    border: 2px solid transparent;
    border-top-color: var(--accent);
    animation: council-spin 1.05s linear infinite;
}
.council-loader-orbit::after {
    inset: 15px;
    border-top-color: color-mix(in srgb, #38bdf8 78%, var(--accent));
    animation-duration: 1.55s;
    animation-direction: reverse;
}
.council-loader-orbit span {
    position: absolute;
    width: 6px;
    height: 6px;
    border-radius: 999px;
    background: var(--accent);
    box-shadow: 0 0 14px var(--accent);
}
.council-loader-orbit span:nth-child(1) { left: 23px; top: -3px; }
.council-loader-orbit span:nth-child(2) { right: 2px; bottom: 8px; opacity: 0.7; }
.council-loader-orbit span:nth-child(3) { left: 4px; bottom: 8px; opacity: 0.45; }
.council-loader-copy {
    position: relative;
    z-index: 1;
    min-width: 0;
}
.council-loader-kicker {
    margin-bottom: 7px;
    color: var(--accent);
    font-size: 0.58rem;
    letter-spacing: 0.22em;
}
.council-loader-title {
    color: var(--text);
    font-family: 'Inter', system-ui, sans-serif;
    font-size: clamp(1rem, 3.7vw, 1.35rem);
    font-weight: 900;
    letter-spacing: 0;
    line-height: 1.15;
    text-transform: none;
}
.council-loader-detail {
    margin-top: 7px;
    color: var(--text-muted, var(--text-dim));
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    line-height: 1.55;
    text-transform: none;
}
.council-loader-bar {
    display: none !important;
}
.council-loader-bar span {
    position: absolute;
    inset: 1px auto 1px 1px;
    width: 34%;
    border-radius: inherit;
    background:
        linear-gradient(90deg, transparent, var(--accent), color-mix(in srgb, #38bdf8 70%, var(--accent)), transparent);
    box-shadow: 0 0 18px color-mix(in srgb, var(--accent) 70%, transparent);
    animation: council-load-scan 1.45s ease-in-out infinite;
}
@keyframes council-spin {
    to { transform: rotate(360deg); }
}
@keyframes council-load-scan {
    0% { transform: translateX(-110%); }
    55% { transform: translateX(195%); }
    100% { transform: translateX(195%); }
}
.council-seat-shell {
    width: min(104ch, 100%);
    margin: 18px auto;
    border: 1px solid color-mix(in srgb, var(--accent) 28%, var(--border));
    border-radius: 8px;
    background:
        linear-gradient(180deg, color-mix(in srgb, var(--accent) 7%, transparent), transparent 120px),
        color-mix(in srgb, var(--card) 82%, transparent);
    /* No content-visibility/contain-intrinsic-size: those clipped the first
       hypothesis card at ~420px ("- wha..." cut). Variable-height council
       content needs natural rendering. */
}
.council-seat-shell--court {
    border-color: color-mix(in srgb, var(--accent) 55%, var(--border));
    box-shadow: 0 0 0 1px color-mix(in srgb, var(--accent) 18%, transparent) inset;
}
.council-seat-shell--scout {
    border-color: color-mix(in srgb, #38bdf8 55%, var(--border));
    box-shadow: 0 0 0 1px color-mix(in srgb, #38bdf8 18%, transparent) inset;
}
.council-seat-shell--hypothesis {
    border-color: color-mix(in srgb, #22c55e 55%, var(--border));
    box-shadow: 0 0 0 1px color-mix(in srgb, #22c55e 18%, transparent) inset;
}
.council-seat-shell--other {
    border-color: color-mix(in srgb, #94a3b8 50%, var(--border));
}
.council-seat-shell__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 14px;
    border-bottom: 1px solid var(--border);
    background: color-mix(in srgb, var(--bg-elevated) 74%, transparent);
}
.council-seat-shell__name,
.council-seat-shell__role {
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-weight: 800;
    text-transform: uppercase;
}
.council-seat-shell__name {
    min-width: 0;
    color: var(--text);
    font-size: 0.72rem;
    letter-spacing: 0.10em;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.council-seat-shell__role {
    flex: 0 0 auto;
    color: var(--accent);
    font-size: 0.62rem;
    letter-spacing: 0.14em;
}
.council-seat-shell__body {
    padding: 14px;
    font-size: 0.9em;
    line-height: 1.72;
    overflow-wrap: anywhere;
}
.council-seat-shell__body > :first-child { margin-top: 0; }
.council-seat-shell__body > :last-child { margin-bottom: 0; }
.terminal-overlay--reader .terminal-overlay-body hr {
    border: 0;
    border-top: 1px solid var(--border);
    margin: 2.4em auto;
    max-width: 80ch;
}

/* On narrow phones the header wraps to two rows: title+selector then close. */
@media (max-width: 480px) {
    .terminal-overlay-header { padding: var(--sp-12, 12px) var(--sp-16); }
    .terminal-overlay-header > select { max-width: 100%; order: 3; flex-basis: 100%; }
    .terminal-close-btn { margin-left: 0; }
    .terminal-overlay-body  { padding: var(--sp-24) var(--sp-16); font-size: var(--fs-16); }
    .terminal-overlay--reader .terminal-overlay-body > * { max-width: none; }
    .council-seat-shell__header { align-items: flex-start; flex-direction: column; gap: 4px; }
    .council-seat-shell__name { white-space: normal; }
}

/* ─── Operator 2026-05-14 — four-screen swarm wall.
     Retired social and broadcast lanes are archived; the public wall now
     keeps only Council, Matrix, Swarm and Traffic. */
.swarm-section--terminals {
    padding-top: var(--sp-32, 32px);
}
.swarm-section--terminals .section-label {
    color: var(--accent);
    letter-spacing: 0.22em;
}
.swarm-section--terminals .section-title {
    font-family: 'Orbitron', 'Inter', sans-serif;
    letter-spacing: 0.01em;
}

/* Tab grid — sharper accent on the active tab, tighter density */
.swarm-section--terminals .swarm-feed-tabs {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    padding: 12px;
    background:
        linear-gradient(180deg, rgba(255,255,255,0.07), rgba(255,255,255,0.01)),
        #06090f;
    border-color: rgba(10, 17, 28, 0.96);
    border-radius: 8px;
    box-shadow:
        0 0 0 1px rgba(255, 214, 0, 0.16),
        0 24px 70px -32px rgba(255, 214, 0, 0.36),
        inset 0 0 34px rgba(255,255,255,0.04);
}
.swarm-section--terminals .swarm-feed-tab {
    padding: 14px 16px 12px;
    border: 1px solid rgba(160, 190, 220, 0.18);
    border-radius: 8px;
    background:
        radial-gradient(circle at 50% 0%, rgba(255,214,0,0.14), transparent 50%),
        linear-gradient(180deg, #101824, #05080d 76%);
    box-shadow:
        inset 0 0 24px rgba(62,168,245,0.08),
        0 10px 22px -18px rgba(0,0,0,0.9);
    transition: background 200ms ease, color 200ms ease, box-shadow 200ms ease, border-color 200ms ease;
}
.swarm-section--terminals .swarm-feed-tab.is-active {
    background:
        radial-gradient(circle at 50% 0%, rgba(255,214,0,0.28), transparent 58%),
        linear-gradient(180deg, #181a16, #05080d 76%);
    border-color: rgba(255,214,0,0.72);
    box-shadow:
        0 0 24px rgba(255,214,0,0.28),
        inset 0 0 26px rgba(255,214,0,0.12);
}
.swarm-section--terminals .swarm-feed-tab__name {
    font-size: 0.66rem;
    letter-spacing: 0.14em;
    margin-bottom: 6px;
}
.swarm-section--terminals .swarm-feed-tab__timer {
    font-size: 0.58rem;
    letter-spacing: 0.06em;
    color: color-mix(in srgb, var(--text-dim) 80%, transparent);
}

/* Panel — more confident frame, stronger divider, monospace meta */
.swarm-section--terminals .swarm-feed-panel {
    position: relative;
    margin-top: 14px;
    padding: 10px;
    background:
        linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.02)),
        #03060b;
    border: 1px solid rgba(8, 14, 24, 0.98);
    border-radius: 8px;
    box-shadow:
        0 0 0 1px rgba(255,214,0,0.18),
        0 28px 84px -34px rgba(255,214,0,0.44),
        inset 0 0 40px rgba(255,255,255,0.06);
}

.swarm-section--terminals .swarm-feed-panel::before {
    content: "";
    position: absolute;
    inset: 10px;
    border-radius: 6px;
    pointer-events: none;
    background:
        linear-gradient(115deg, rgba(255,255,255,0.14), transparent 22%, transparent 72%, rgba(255,255,255,0.05));
    mix-blend-mode: screen;
    opacity: 0.62;
    z-index: 2;
}
.swarm-section--terminals .swarm-feed-panel__header {
    background:
        linear-gradient(180deg, rgba(255,214,0,0.08), rgba(255,255,255,0.015)),
        #080d15;
    padding: 16px 22px;
    border: 1px solid rgba(160,190,220,0.14);
    border-bottom: 0;
    border-radius: 6px 6px 0 0;
    position: relative;
    z-index: 3;
}
.swarm-section--terminals .swarm-feed-panel__title {
    font-family: 'Orbitron', 'Inter', sans-serif;
    font-weight: 800;
    letter-spacing: 0.02em;
    color: #ffffff !important;
    text-shadow: 0 0 14px rgba(255,214,0,0.34);
}
.swarm-section--terminals .swarm-feed-panel__state {
    width: 9px; height: 9px; border-radius: 50%;
    background: var(--text-dim);
}
.swarm-section--terminals .swarm-feed-panel__state[data-state="live"] {
    background: #22c55e;
    box-shadow: 0 0 12px #22c55e, 0 0 0 2px rgba(34,197,94,0.18);
    animation: fc-running-pulse 1.6s ease-in-out infinite;
}

.swarm-section--terminals .swarm-feed-panel__body {
    min-height: min(520px, 62vh);
    background:
        radial-gradient(circle at 50% 0%, rgba(62,168,245,0.12), transparent 42%),
        linear-gradient(180deg, rgba(255,214,0,0.04), transparent 36%),
        linear-gradient(90deg, rgba(62,168,245,0.07), transparent 18%, transparent 82%, rgba(255,214,0,0.06)),
        #07101b;
    border: 1px solid rgba(160,190,220,0.14);
    border-radius: 0 0 6px 6px;
    color: #d9ecff;
    position: relative;
    z-index: 1;
}

.swarm-section--terminals .swarm-feed-panel__body,
.swarm-section--terminals .swarm-feed-panel__body--prose {
    color: #d9ecff !important;
}

.swarm-section--terminals .swarm-feed-panel__body--prose p,
.swarm-section--terminals .swarm-feed-panel__body--prose div {
    color: #d9ecff;
}

.matrix-console {
    display: grid;
    gap: 14px;
}

.matrix-console__title {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 12px;
    border: 1px solid color-mix(in srgb, var(--gold, #ffd700) 35%, var(--border));
    border-radius: 8px;
    background: color-mix(in srgb, var(--gold, #ffd700) 6%, transparent);
    font-family: 'JetBrains Mono', ui-monospace, monospace;
}

.matrix-console__title span {
    color: var(--accent);
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.matrix-console__title strong {
    color: var(--text);
    font-size: 0.68rem;
    font-weight: 700;
    text-align: right;
}

.matrix-console__title--stream {
    margin-top: 8px;
}

.matrix-console__stats {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.matrix-console__stats span {
    padding: 6px 10px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--card);
    color: var(--text);
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-size: 0.65rem;
    font-weight: 700;
}

.matrix-scene {
    padding: 12px;
    border: 1px solid var(--border);
    border-left: 3px solid var(--accent);
    border-radius: 8px;
    background: var(--card);
}

.matrix-scene__header {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    font-family: 'JetBrains Mono', ui-monospace, monospace;
}

.matrix-scene__header span {
    padding: 3px 8px;
    border: 1px solid;
    border-radius: 6px;
    font-size: 0.58rem;
    font-weight: 900;
}

.matrix-scene__header strong {
    color: var(--text);
    font-size: 0.82rem;
}

.matrix-scene__header em {
    font-size: 0.72rem;
    font-style: normal;
    font-weight: 800;
}

.matrix-scene__header small,
.matrix-scene__header time {
    color: var(--text-dim);
    font-size: 0.58rem;
    font-style: normal;
}

.matrix-scene__reason {
    margin-top: 8px;
    color: #ff8a8a;
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-size: 0.64rem;
}

.matrix-physics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(132px, 1fr));
    gap: 6px;
    margin-top: 10px;
}

.matrix-physics-cell {
    padding: 6px 8px;
    border: 1px solid var(--border);
    border-radius: 7px;
    background: var(--card);
    font-family: 'JetBrains Mono', ui-monospace, monospace;
}

.matrix-physics-cell span {
    display: block;
    color: var(--text-dim);
    font-size: 0.52rem;
    letter-spacing: 0.08em;
    font-weight: 700;
    text-transform: uppercase;
}

.matrix-physics-cell strong {
    display: block;
    color: var(--text);
    font-size: 0.72rem;
    font-weight: 800;
    margin-top: 3px;
}

.swarm-tv-summary {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: var(--sp-16);
    margin-top: var(--sp-32);
}

.swarm-tv-summary__card {
    position: relative;
    min-height: 188px;
    padding: var(--sp-24);
    border: 1px solid rgba(8, 14, 24, 0.98);
    border-radius: 8px;
    background:
        radial-gradient(circle at 50% 0%, rgba(255,214,0,0.15), transparent 48%),
        linear-gradient(180deg, rgba(255,255,255,0.07), rgba(255,255,255,0.015)),
        #06101b;
    box-shadow:
        0 18px 42px -28px rgba(255,214,0,0.36),
        inset 0 0 32px rgba(62,168,245,0.08);
    overflow: hidden;
}

.swarm-tv-summary__card::before {
    content: "";
    position: absolute;
    inset: 0;
    border-top: 1px solid color-mix(in srgb, var(--accent) 35%, transparent);
    pointer-events: none;
}

.swarm-tv-summary__card span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 24px;
    margin-bottom: var(--sp-24);
    border: 1px solid color-mix(in srgb, var(--accent) 32%, transparent);
    border-radius: 8px;
    color: var(--accent);
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-size: var(--fs-12);
    font-weight: 800;
}

.swarm-tv-summary__card h3 {
    margin: 0 0 var(--sp-12);
    color: #ffffff;
    font-family: 'Orbitron', 'Inter', sans-serif;
    font-size: var(--fs-20);
}

.swarm-tv-summary__card p {
    margin: 0;
    color: rgba(217,236,255,0.75);
    font-size: var(--fs-14);
    line-height: 1.6;
}

@media (max-width: 860px) {
    .swarm-section--terminals .swarm-feed-tabs,
    .swarm-tv-summary {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 520px) {
    .swarm-section--terminals .swarm-feed-tabs,
    .swarm-tv-summary {
        grid-template-columns: 1fr;
    }
    .swarm-tv-summary__card { min-height: auto; }
}

/* 2026-05-15: Light-mode plasma terminals.
   Keep the TV geometry and glow language, but stop black cards leaking into
   day mode on mobile. */
[data-theme="light"] .swarm-section--terminals .swarm-feed-tabs {
    background:
        linear-gradient(180deg, rgba(255,255,255,0.92), rgba(232,241,252,0.78)),
        #f7fbff;
    border-color: rgba(15, 31, 52, 0.14);
    box-shadow:
        0 0 0 1px rgba(214, 163, 0, 0.14),
        0 22px 54px -34px rgba(15, 31, 52, 0.32),
        inset 0 0 30px rgba(255,255,255,0.72);
}

[data-theme="light"] .swarm-section--terminals .swarm-feed-tab {
    background:
        radial-gradient(circle at 50% 0%, rgba(214,163,0,0.16), transparent 54%),
        linear-gradient(180deg, #ffffff, #edf4fb 78%);
    border-color: rgba(15, 31, 52, 0.14);
    box-shadow: inset 0 0 22px rgba(37,99,235,0.05), 0 12px 22px -20px rgba(15,31,52,0.42);
}

[data-theme="light"] .swarm-section--terminals .swarm-feed-tab.is-active {
    background:
        radial-gradient(circle at 50% 0%, rgba(214,163,0,0.24), transparent 58%),
        linear-gradient(180deg, #fffdf3, #edf4fb 78%);
    border-color: rgba(154, 106, 0, 0.42);
    box-shadow: 0 0 22px rgba(214,163,0,0.16), inset 0 0 24px rgba(214,163,0,0.09);
}

[data-theme="light"] .swarm-section--terminals .swarm-feed-panel {
    background:
        linear-gradient(180deg, rgba(255,255,255,0.96), rgba(232,241,252,0.82)),
        #f7fbff;
    border-color: rgba(15, 31, 52, 0.14);
    box-shadow:
        0 0 0 1px rgba(214,163,0,0.12),
        0 28px 70px -38px rgba(15,31,52,0.34),
        inset 0 0 34px rgba(255,255,255,0.72);
}

[data-theme="light"] .swarm-section--terminals .swarm-feed-panel::before {
    background:
        linear-gradient(115deg, rgba(255,255,255,0.72), transparent 22%, transparent 72%, rgba(255,255,255,0.35));
    mix-blend-mode: multiply;
    opacity: 0.42;
}

[data-theme="light"] .swarm-section--terminals .swarm-feed-panel__header,
[data-theme="light"] .swarm-section--terminals .swarm-feed-panel__body {
    background:
        radial-gradient(circle at 50% 0%, rgba(37,99,235,0.08), transparent 46%),
        linear-gradient(180deg, rgba(255,255,255,0.96), rgba(237,244,251,0.88)) !important;
    border-color: rgba(15, 31, 52, 0.14);
    color: #0c1624 !important;
}

[data-theme="light"] .swarm-section--terminals .swarm-feed-panel__title,
[data-theme="light"] .swarm-section--terminals .swarm-feed-panel__body,
[data-theme="light"] .swarm-section--terminals .swarm-feed-panel__body--prose,
[data-theme="light"] .swarm-section--terminals .swarm-feed-panel__body--prose p,
[data-theme="light"] .swarm-section--terminals .swarm-feed-panel__body--prose div {
    color: #0c1624 !important;
    text-shadow: none;
}

/* Codex 2026-05-19: Council transcript cards.
   The council renderer injects direct child sections into #council-body.
   Scope this hardening there only so other terminal prose keeps its layout. */
#council-body.swarm-feed-panel__body--prose {
    display: block !important;
    width: 100% !important;
    max-width: none !important;
    box-sizing: border-box;
    overflow-x: hidden;
    white-space: normal !important;
    word-break: normal !important;
    overflow-wrap: break-word !important;
}

#council-body.swarm-feed-panel__body--prose > * {
    max-width: none !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

#council-body.swarm-feed-panel__body--prose > section {
    display: block !important;
    width: 100% !important;
    max-width: none !important;
    box-sizing: border-box;
    clear: both;
    margin: 16px 0 !important;
    padding: 14px 16px !important;
    border: 1px solid rgba(70, 132, 210, 0.46) !important;
    border-left: 3px solid #3b82f6 !important;
    border-radius: 8px !important;
    background: rgba(37, 99, 235, 0.08) !important;
}

#council-body.swarm-feed-panel__body--prose > section + section {
    margin-top: 20px !important;
}

#council-body.swarm-feed-panel__body--prose > section > div:first-child {
    color: #60a5fa !important;
}

#council-body.swarm-feed-panel__body--prose > section div,
#council-body.swarm-feed-panel__body--prose > section p,
#council-body.swarm-feed-panel__body--prose > section li,
#council-body.swarm-feed-panel__body--prose > section pre {
    max-width: none !important;
    white-space: normal !important;
    word-break: normal !important;
    overflow-wrap: break-word !important;
}

[data-theme="light"] #council-body.swarm-feed-panel__body--prose > section {
    border-color: rgba(37, 99, 235, 0.38) !important;
    border-left-color: #1d4ed8 !important;
    background: rgba(37, 99, 235, 0.06) !important;
}

[data-theme="light"] #council-body.swarm-feed-panel__body--prose > section > div:first-child {
    color: #1d4ed8 !important;
}

@media (max-width: 540px) {
    #council-body.swarm-feed-panel__body--prose {
        padding: 14px !important;
        font-size: 0.94rem;
        line-height: 1.6;
    }

    #council-body.swarm-feed-panel__body--prose > section {
        padding: 12px 13px !important;
        margin: 14px 0 !important;
    }
}

[data-theme="light"] .swarm-tv-summary__card {
    border-color: rgba(15, 31, 52, 0.14);
    background:
        radial-gradient(circle at 50% 0%, rgba(214,163,0,0.15), transparent 48%),
        linear-gradient(180deg, rgba(255,255,255,0.98), rgba(237,244,251,0.92)),
        #f7fbff;
    box-shadow:
        0 18px 40px -28px rgba(15,31,52,0.34),
        inset 0 0 30px rgba(37,99,235,0.06);
}

[data-theme="light"] .swarm-tv-summary__card h3 {
    color: #0c1624;
    text-shadow: none;
}

[data-theme="light"] .swarm-tv-summary__card p {
    color: #5a6a7c;
}

/* ═══════════════════════════════════════════════════════════════════════
   SWARM TERMINALS — WORLD-CLASS UNIFIED SHELL (2026-05-18)
   ═══════════════════════════════════════════════════════════════════════
   Six-terminal stacked layout with sticky LED summary bar at top.
   All colors via franchise tokens for theme-aware contrast.
   Reuses .council-loading-state loader pattern (the one Rob approved).  */

/* ───── Sticky LED summary bar ───────────────────────────────────────── */
.swarm-led-bar {
    position: sticky;
    top: 0;
    z-index: 40;
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 8px;
    padding: 10px 12px;
    margin-bottom: 24px;
    background: color-mix(in srgb, var(--bg) 92%, transparent);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border);
    border-radius: 14px;
    box-shadow: 0 4px 18px color-mix(in srgb, var(--bg) 88%, transparent);
}
.swarm-led-bar__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 8px 4px;
    border: 1px solid transparent;
    border-radius: 8px;
    background: transparent;
    color: var(--text);
    text-decoration: none;
    cursor: pointer;
    transition: border-color 0.18s ease, background 0.18s ease;
    min-height: 60px;
}
.swarm-led-bar__item:hover,
.swarm-led-bar__item:focus-visible {
    border-color: color-mix(in srgb, var(--accent) 40%, var(--border));
    background: color-mix(in srgb, var(--accent) 6%, transparent);
    outline: none;
}
.swarm-led-bar__led {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: color-mix(in srgb, var(--text-dim) 60%, transparent);
    transition: background 0.25s ease, box-shadow 0.25s ease;
}
.swarm-led-bar__led[data-state="running"] {
    background: #22c55e;
    box-shadow: 0 0 8px #22c55e;
    animation: sw-led-pulse 1.4s ease-in-out infinite;
}
.swarm-led-bar__led[data-state="scheduled"] {
    background: #fbbf24;
    box-shadow: 0 0 6px rgba(251,191,36,0.55);
    animation: sw-led-slow 3s ease-in-out infinite;
}
.swarm-led-bar__led[data-state="failed"] {
    background: #ef4444;
    box-shadow: 0 0 10px #ef4444;
    animation: sw-led-pulse 0.8s ease-in-out infinite;
}
.swarm-led-bar__led[data-state="idle"] {
    background: color-mix(in srgb, var(--text-dim) 55%, transparent);
}
.swarm-led-bar__name {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.55rem;
    font-weight: 900;
    letter-spacing: 0.12em;
    color: var(--text);
    text-transform: uppercase;
}
.swarm-led-bar__sub {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.5rem;
    color: var(--text-dim);
    letter-spacing: 0.04em;
}
@keyframes sw-led-pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50%      { transform: scale(0.78); opacity: 0.55; }
}
@keyframes sw-led-slow {
    0%, 100% { transform: scale(1); opacity: 0.95; }
    50%      { transform: scale(0.88); opacity: 0.6; }
}

/* ───── Unified terminal card shell ──────────────────────────────────── */
/* 2026-05-18 Rob: ALL 6 terminals must be identical height. Flex-column
   so header/stats/ticker/detail stay natural-sized at the top and the
   body flexes to fill the remaining vertical space. Fixed total height.
   Fullscreen overlay is a separate element — sized normally. */
.swarm-terminal {
    display: flex !important;
    flex-direction: column;
    height: 380px;
    margin: 0 0 16px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: var(--card);
    overflow: hidden;
    scroll-margin-top: 90px;
}
@media (min-width: 768px)  { .swarm-terminal { height: 420px; } }
@media (min-width: 1280px) { .swarm-terminal { height: 460px; } }
.swarm-terminal__header,
.swarm-terminal__stats,
.swarm-terminal__ticker,
.swarm-terminal__detail {
    flex: 0 0 auto;
}
.swarm-terminal__body {
    flex: 1 1 auto !important;
    min-height: 0 !important;
    max-height: none !important;
    overflow-y: auto;
    overflow-x: hidden;
}
.swarm-terminal__header {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border-bottom: 1px solid var(--border);
    background: color-mix(in srgb, var(--bg) 35%, var(--card));
}
.swarm-terminal__led {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: color-mix(in srgb, var(--text-dim) 60%, transparent);
    transition: background 0.25s ease, box-shadow 0.25s ease;
    flex: 0 0 auto;
}
.swarm-terminal__led[data-state="running"] {
    background: #22c55e;
    box-shadow: 0 0 8px #22c55e, 0 0 0 2px rgba(34,197,94,0.15);
    animation: sw-led-pulse 1.4s ease-in-out infinite;
}
.swarm-terminal__led[data-state="scheduled"] {
    background: #fbbf24;
    box-shadow: 0 0 6px rgba(251,191,36,0.55);
    animation: sw-led-slow 3s ease-in-out infinite;
}
.swarm-terminal__led[data-state="failed"] {
    background: #ef4444;
    box-shadow: 0 0 10px #ef4444;
    animation: sw-led-pulse 0.8s ease-in-out infinite;
}
.swarm-terminal__heading {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}
.swarm-terminal__title {
    margin: 0;
    font-family: 'Inter', system-ui, sans-serif;
    font-size: clamp(0.95rem, 2.6vw, 1.15rem);
    font-weight: 800;
    color: var(--text);
    letter-spacing: 0;
}
.swarm-terminal__sub {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.6rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-dim);
}
.swarm-terminal__sub .k { color: var(--text-muted, var(--text-dim)); margin-right: 4px; }
.swarm-terminal__sub .v-running { color: #22c55e; font-weight: 700; }
.swarm-terminal__sub .v-scheduled { color: #fbbf24; font-weight: 700; }
.swarm-terminal__sub .v-failed { color: #ef4444; font-weight: 700; }
.swarm-terminal__tools {
    display: flex;
    flex-direction: column;
    gap: 6px;
    align-items: flex-end;
    flex: 0 0 auto;
}
.swarm-terminal__fullscreen {
    padding: 6px 12px;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: transparent;
    color: var(--text-dim);
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.58rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    cursor: pointer;
    transition: border-color 0.18s ease, color 0.18s ease;
}
.swarm-terminal__fullscreen:hover,
.swarm-terminal__fullscreen:focus-visible {
    border-color: var(--accent);
    color: var(--accent);
    outline: none;
}
.swarm-terminal__fullscreen kbd {
    padding: 1px 5px;
    border: 1px solid var(--border);
    border-radius: 3px;
    font-size: 0.55rem;
    margin-left: 4px;
    color: var(--text);
}

/* ───── Mini-dashboard stat strip (4 tiles) ──────────────────────────── */
.swarm-terminal__stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
    padding: 12px 16px;
    border-bottom: 1px solid var(--border);
    background: color-mix(in srgb, var(--bg) 18%, var(--card));
}
.swarm-terminal__stats:empty { display: none; }
.swarm-terminal__stat {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 8px 10px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--card);
    min-width: 0;
}
.swarm-terminal__stat .k {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.5rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--text-dim);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.swarm-terminal__stat .v {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.92rem;
    font-weight: 800;
    color: var(--text);
    line-height: 1.1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.swarm-terminal__stat .v.pos { color: #22c55e; }
.swarm-terminal__stat .v.neg { color: #ef4444; }
.swarm-terminal__stat .v.gold { color: var(--gold, #ffd700); }
.swarm-terminal__stat .sub {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.5rem;
    color: var(--text-dim);
    margin-top: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
@media (max-width: 540px) {
    .swarm-terminal__stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* ───── Activity ticker under header ─────────────────────────────────── */
.swarm-terminal__ticker {
    display: block;
    padding: 8px 16px;
    border-bottom: 1px solid var(--border);
    background: color-mix(in srgb, var(--bg) 10%, var(--card));
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.6rem;
    line-height: 1.55;
    color: var(--text-dim);
    max-height: 88px;
    overflow-y: auto;
    scrollbar-width: thin;
}
.swarm-terminal__ticker:empty { display: none; }
.swarm-terminal__ticker-row {
    display: flex;
    gap: 8px;
    align-items: baseline;
    padding: 2px 0;
}
.swarm-terminal__ticker-time {
    color: var(--text-muted, var(--text-dim));
    flex: 0 0 auto;
    min-width: 60px;
}
.swarm-terminal__ticker-action {
    flex: 0 0 auto;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}
.swarm-terminal__ticker-action.act-demote { color: #f59e0b; }
.swarm-terminal__ticker-action.act-quarantine { color: #ef4444; }
.swarm-terminal__ticker-action.act-promote { color: #22c55e; }
.swarm-terminal__ticker-action.act-hof { color: var(--gold, #ffd700); }
.swarm-terminal__ticker-action.act-score { color: var(--accent); }
.swarm-terminal__ticker-action.act-verdict { color: var(--gold, #ffd700); }
.swarm-terminal__ticker-action.act-info { color: var(--text-dim); }
.swarm-terminal__ticker-detail {
    color: var(--text);
    flex: 1 1 auto;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.swarm-terminal__ticker-empty {
    color: var(--text-muted, var(--text-dim));
    font-style: italic;
}

/* ───── Selected entry detail + always-on body ───────────────────────── */
.swarm-terminal__detail {
    padding: 14px 16px 16px;
}
.swarm-terminal__detail:empty { display: none; }
.swarm-terminal__body {
    padding: 14px 16px;
    color: var(--text);
}
.swarm-terminal__detail + .swarm-terminal__body {
    border-top: 1px solid var(--border);
    position: relative;
}
.swarm-terminal__detail + .swarm-terminal__body::before {
    content: 'Live Feed';
    display: block;
    color: var(--gold, #ffd700);
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.55rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    font-weight: 800;
    padding: 4px 0 10px;
}

/* Tighten the picker styling already in this file for the new shell */
.swarm-terminal__tools .council-picker {
    width: min(280px, 60vw);
}
@media (max-width: 540px) {
    .swarm-terminal__tools {
        align-items: stretch;
        width: 100%;
        grid-column: 1 / -1;
    }
    .swarm-terminal__header {
        grid-template-columns: auto 1fr;
        grid-template-rows: auto auto;
    }
    .swarm-terminal__tools .council-picker {
        width: 100%;
    }
}

/* Event card grid (used in SHADOW + Pumphouse feeds) — clean variant */
.swarm-event-card {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 10px;
    align-items: center;
    padding: 10px 12px;
    margin-bottom: 8px;
    border: 1px solid var(--border);
    border-left: 3px solid var(--accent);
    border-radius: 8px;
    background: var(--card);
    font-family: 'JetBrains Mono', monospace;
}
.swarm-event-card[data-action="DEMOTE"]      { border-left-color: #f59e0b; }
.swarm-event-card[data-action="QUARANTINE"]  { border-left-color: #ef4444; }
.swarm-event-card[data-action="PROMOTE"]     { border-left-color: #22c55e; }
.swarm-event-card[data-action="GRADUATE"]    { border-left-color: #22c55e; }
.swarm-event-card[data-action="CURVE_BOMB"]  { border-left-color: var(--gold, #ffd700); }
.swarm-event-card[data-action="DEAD"]        { border-left-color: #6b7280; opacity: 0.7; }
.swarm-event-card__time {
    font-size: 0.6rem;
    color: var(--text-muted, var(--text-dim));
    white-space: nowrap;
}
.swarm-event-card__body {
    color: var(--text);
    font-size: 0.7rem;
    min-width: 0;
    overflow: hidden;
}
.swarm-event-card__body strong { color: var(--text); font-weight: 800; }
.swarm-event-card__chip {
    padding: 2px 8px;
    font-size: 0.55rem;
    letter-spacing: 0.06em;
    border-radius: 4px;
    text-transform: uppercase;
    font-weight: 800;
    border: 1px solid currentColor;
}
.swarm-event-card__chip--demote      { color: #f59e0b; }
.swarm-event-card__chip--quarantine  { color: #ef4444; }
.swarm-event-card__chip--promote     { color: #22c55e; }
.swarm-event-card__chip--score       { color: var(--accent); }
.swarm-event-card__chip--rug         { color: #ef4444; }
.swarm-event-card__chip--graduate    { color: #22c55e; }
.swarm-event-card__chip--curve_bomb  { color: var(--gold, #ffd700); }

/* Hide legacy panels behind a feature flag in case we need to roll back */
body[data-swarm-redesign="off"] .swarm-feed-panel { display: block; }
body[data-swarm-redesign="off"] .swarm-terminal { display: none; }

/* ───── Pumphouse Wallet Lifecycle sub-stats ──────────────────────────
   Codex Pumphouse-wallet attack 2026-05-18: blueprint live, dry-run
   pending. This row sits below the existing 4-tile Pumphouse stats and
   shows wallet-lifecycle counts (followed wallets, top cohort, action
   proposals, dry-run freshness). Renders "DRY-RUN PENDING" gracefully
   when sandbox artifacts haven't landed yet. */
.swarm-terminal__stats--wallet {
    position: relative;
    border-top: 1px dashed var(--border);
    background: color-mix(in srgb, var(--gold, #ffd700) 4%, var(--card));
}
.swarm-terminal__stats--wallet::before {
    content: attr(data-label);
    position: absolute;
    top: -8px;
    left: 16px;
    padding: 1px 8px;
    background: var(--card);
    color: var(--gold, #ffd700);
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.5rem;
    font-weight: 900;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    border: 1px solid var(--border);
    border-radius: 3px;
}
.swarm-terminal__stats--wallet:empty {
    display: none;
}
.swarm-terminal__stat[data-pending="true"] {
    opacity: 0.7;
}
.swarm-terminal__stat[data-pending="true"] .v {
    color: var(--text-dim);
    font-style: italic;
}

/* ───── Inline-panel body height cap (2026-05-18 Rob) ───────────────────
   Operator: 'terminals are too big, height needs cutting in half'.
   Each panel body becomes a fixed-height scrollable region INSIDE the
   panel. The fullscreen overlay is a different element so it's untouched. */
.swarm-terminal__body {
    max-height: 40vh;
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: thin;
    scrollbar-color: var(--accent) transparent;
}
.swarm-terminal__body::-webkit-scrollbar { width: 6px; }
.swarm-terminal__body::-webkit-scrollbar-thumb {
    background: var(--accent);
    border-radius: 3px;
}
.swarm-terminal__body::-webkit-scrollbar-track { background: transparent; }

@media (max-width: 540px) {
    .swarm-terminal__body { max-height: 50vh; }
}
@media (min-width: 1280px) {
    .swarm-terminal__body { max-height: 44vh; }
}

/* 2026-05-18 Rob: compact internal sections so the body has consistent
   room across all 6 panels. Stats / ticker / detail tighter; header
   keeps its current sizing because the LED + title row defines identity. */
.swarm-terminal__header { padding: 10px 14px; }
.swarm-terminal__stats {
    padding: 8px 12px;
    gap: 6px;
}
.swarm-terminal__stat { padding: 6px 8px; }
.swarm-terminal__stat .v { font-size: 0.82rem; }
.swarm-terminal__stat .k { font-size: 0.48rem; }
.swarm-terminal__stat .sub { font-size: 0.48rem; }

.swarm-terminal__ticker {
    max-height: 52px;
    padding: 6px 12px;
    font-size: 0.58rem;
}

.swarm-terminal__detail {
    max-height: 120px;
    overflow-y: auto;
    padding: 10px 12px;
}

.swarm-terminal__body {
    padding: 10px 14px;
}

/* ───── 2-COLUMN COCKPIT GRID ────────────────────────────────────────
   Lays out the six swarm-terminal articles as a responsive grid.
   Mobile/tablet: single column. Desktop (≥980px): 2 columns.
   Order on desktop: Council (top-left), Mav DNA (top-right),
   Matrix, SHADOW, Pumphouse, Traffic. */
.cockpit-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    margin-top: 24px;
}
.cockpit-grid > .swarm-terminal { margin: 0; }
@media (min-width: 980px) {
    .cockpit-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 20px;
    }
    .cockpit-grid > #swarm-terminal-council  { order: 1; }
    .cockpit-grid > #swarm-terminal-swarm    { order: 2; }
    .cockpit-grid > #swarm-terminal-matrix   { order: 3; }
    .cockpit-grid > #swarm-terminal-shadow   { order: 4; }
    .cockpit-grid > #swarm-terminal-flagship { order: 5; }
    .cockpit-grid > #swarm-terminal-traffic  { order: 6; }
}
@media (min-width: 1280px) {
    .cockpit-grid { gap: 24px; }
}

/* Codex 2026-05-19: unify Council + DNA transcript treatment.
   Inline panels stay compact/scrollable; fullscreen uses the same blue
   transcript-card language Rob approved on the council front panel. */
#council-body,
#swarm-page-feed-swarm {
    max-height: clamp(320px, 42vh, 520px) !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
}

#swarm-page-feed-swarm .fc-terminal-live-card,
#swarm-page-feed-swarm .fc-terminal-raw-output {
    border: 1px solid rgba(70, 132, 210, 0.46) !important;
    border-left: 3px solid #3b82f6 !important;
    border-radius: 8px !important;
    background: rgba(37, 99, 235, 0.08) !important;
    box-shadow: inset 0 0 0 1px rgba(37, 99, 235, 0.05);
}

#swarm-page-feed-swarm .fc-terminal-live-kicker,
#swarm-page-feed-swarm .fc-terminal-raw-head {
    color: #60a5fa !important;
}

#swarm-page-feed-swarm .fc-terminal-raw-head {
    border-bottom: 1px dashed rgba(96, 165, 250, 0.42) !important;
}

[data-theme="light"] #swarm-page-feed-swarm .fc-terminal-live-card,
[data-theme="light"] #swarm-page-feed-swarm .fc-terminal-raw-output {
    border-color: rgba(37, 99, 235, 0.38) !important;
    border-left-color: #1d4ed8 !important;
    background: rgba(37, 99, 235, 0.06) !important;
}

[data-theme="light"] #swarm-page-feed-swarm .fc-terminal-live-kicker,
[data-theme="light"] #swarm-page-feed-swarm .fc-terminal-raw-head {
    color: #1d4ed8 !important;
}

.terminal-overlay {
    background:
        radial-gradient(circle at 50% 0%, rgba(37, 99, 235, 0.14), transparent 42%),
        var(--bg-primary, #0a0a0f) !important;
}

.terminal-overlay-header {
    border-bottom-color: rgba(70, 132, 210, 0.42) !important;
    background:
        linear-gradient(180deg, rgba(37, 99, 235, 0.12), rgba(37, 99, 235, 0.03)),
        var(--bg-elevated, #14141c) !important;
}

#terminal-overlay-title {
    color: #60a5fa !important;
}

.terminal-close-btn {
    border-color: rgba(70, 132, 210, 0.46) !important;
}

.terminal-close-btn:hover {
    border-color: #60a5fa !important;
    color: #60a5fa !important;
}

.terminal-overlay-body {
    scrollbar-color: #3b82f6 transparent;
}

.terminal-overlay-body > section,
.terminal-overlay-body .fc-terminal-live-card,
.terminal-overlay-body .fc-terminal-raw-output,
.terminal-overlay-body .swarm-event-card,
.terminal-overlay-body article {
    max-width: none !important;
    border: 1px solid rgba(70, 132, 210, 0.46) !important;
    border-left: 3px solid #3b82f6 !important;
    border-radius: 8px !important;
    background: rgba(37, 99, 235, 0.08) !important;
    box-sizing: border-box;
}

.terminal-overlay-body > section {
    margin: 16px 0 !important;
    padding: 14px 16px !important;
}

.terminal-overlay-body > section + section {
    margin-top: 20px !important;
}

.terminal-overlay-body .fc-terminal-live-kicker,
.terminal-overlay-body .fc-terminal-raw-head,
.terminal-overlay-body > section > div:first-child {
    color: #60a5fa !important;
}

.terminal-overlay-body .fc-terminal-raw-head {
    border-bottom: 1px dashed rgba(96, 165, 250, 0.42) !important;
}

[data-theme="light"] .terminal-overlay {
    background:
        radial-gradient(circle at 50% 0%, rgba(37, 99, 235, 0.14), transparent 42%),
        var(--bg-primary, #eef6ff) !important;
}

[data-theme="light"] .terminal-overlay-header {
    border-bottom-color: rgba(37, 99, 235, 0.38) !important;
    background:
        linear-gradient(180deg, rgba(37, 99, 235, 0.10), rgba(37, 99, 235, 0.03)),
        var(--bg-elevated, #f7fbff) !important;
}

[data-theme="light"] #terminal-overlay-title,
[data-theme="light"] .terminal-overlay-body .fc-terminal-live-kicker,
[data-theme="light"] .terminal-overlay-body .fc-terminal-raw-head,
[data-theme="light"] .terminal-overlay-body > section > div:first-child {
    color: #1d4ed8 !important;
}

[data-theme="light"] .terminal-overlay-body > section,
[data-theme="light"] .terminal-overlay-body .fc-terminal-live-card,
[data-theme="light"] .terminal-overlay-body .fc-terminal-raw-output,
[data-theme="light"] .terminal-overlay-body .swarm-event-card,
[data-theme="light"] .terminal-overlay-body article {
    border-color: rgba(37, 99, 235, 0.38) !important;
    border-left-color: #1d4ed8 !important;
    background: rgba(37, 99, 235, 0.06) !important;
}

@media (max-width: 540px) {
    #council-body,
    #swarm-page-feed-swarm {
        max-height: clamp(300px, 42vh, 420px) !important;
    }

    .terminal-overlay-body > section {
        padding: 12px 13px !important;
        margin: 14px 0 !important;
    }
}

/* ═════════════════════════════════════════════════════════════════════
   ───── COCKPIT V2 — WORLD-CLASS TERMINAL REDESIGN (2026-05-19) ──────
   These rules OVERRIDE the legacy .swarm-terminal styles above. They
   are appended at the end so cascade wins. Goal: replace flat boxy
   terminals with a dramatic glowing trading-console aesthetic that
   feels alive even before data lands.
   ═════════════════════════════════════════════════════════════════════ */

/* Frame: thicker border, inset shadow, accent strip at top tied to state */
.swarm-terminal {
    height: auto;
    min-height: 420px;
    border: 1px solid var(--border);
    border-radius: 16px;
    background:
        radial-gradient(ellipse at top right,
            color-mix(in srgb, var(--accent, #ffd700) 4%, transparent),
            transparent 55%),
        var(--card);
    box-shadow:
        inset 0 1px 0 color-mix(in srgb, var(--text) 6%, transparent),
        0 8px 24px -16px color-mix(in srgb, var(--bg) 80%, #000);
    overflow: hidden;
    position: relative;
    transition: border-color .25s ease, box-shadow .25s ease;
}
@media (min-width: 768px)  { .swarm-terminal { min-height: 460px; } }
@media (min-width: 1280px) { .swarm-terminal { min-height: 500px; } }

/* Top accent strip — colour tracks LED state */
.swarm-terminal::after {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg,
        transparent,
        color-mix(in srgb, var(--text-dim) 50%, transparent),
        transparent);
    pointer-events: none;
}
.swarm-terminal:has(.swarm-terminal__led[data-state="running"])::after,
.swarm-terminal:has(.swarm-feed-panel__state[data-state="running"])::after {
    background: linear-gradient(90deg, transparent, #22c55e, transparent);
    animation: cockpit-scan 3.5s ease-in-out infinite;
}
.swarm-terminal:has(.swarm-terminal__led[data-state="scheduled"])::after,
.swarm-terminal:has(.swarm-feed-panel__state[data-state="scheduled"])::after {
    background: linear-gradient(90deg, transparent, #fbbf24, transparent);
    animation: cockpit-scan 5s ease-in-out infinite;
}
.swarm-terminal:has(.swarm-terminal__led[data-state="failed"])::after,
.swarm-terminal:has(.swarm-feed-panel__state[data-state="failed"])::after {
    background: linear-gradient(90deg, transparent, #ef4444, transparent);
    animation: cockpit-scan 1.8s ease-in-out infinite;
}
@keyframes cockpit-scan {
    0%, 100% { opacity: 0.35; }
    50%      { opacity: 1; }
}

/* Header: bigger, more breathing room, LED becomes a glowing orb */
.swarm-terminal__header {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 14px;
    padding: 18px 20px 16px;
    border-bottom: 1px solid color-mix(in srgb, var(--border) 70%, transparent);
    background:
        linear-gradient(180deg,
            color-mix(in srgb, var(--bg) 25%, var(--card)),
            transparent);
}

/* LED: 22px glowing orb with concentric pulse ring */
.swarm-terminal__led,
.swarm-feed-panel__state {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: color-mix(in srgb, var(--text-dim) 35%, var(--card));
    box-shadow:
        inset 0 0 0 2px color-mix(in srgb, var(--text-dim) 25%, transparent),
        0 0 0 0 transparent;
    transition: background 0.3s ease, box-shadow 0.3s ease;
    flex: 0 0 auto;
    position: relative;
}
.swarm-terminal__led[data-state="running"],
.swarm-feed-panel__state[data-state="running"] {
    background: radial-gradient(circle, #4ade80 0%, #16a34a 70%);
    box-shadow:
        inset 0 0 4px rgba(255,255,255,0.4),
        0 0 16px #22c55e,
        0 0 0 4px color-mix(in srgb, #22c55e 18%, transparent);
    animation: cockpit-led-pulse 1.6s ease-in-out infinite;
}
.swarm-terminal__led[data-state="scheduled"],
.swarm-feed-panel__state[data-state="scheduled"] {
    background: radial-gradient(circle, #fde68a 0%, #f59e0b 70%);
    box-shadow:
        inset 0 0 4px rgba(255,255,255,0.4),
        0 0 12px #fbbf24,
        0 0 0 3px color-mix(in srgb, #fbbf24 18%, transparent);
    animation: cockpit-led-slow 3.2s ease-in-out infinite;
}
.swarm-terminal__led[data-state="failed"],
.swarm-feed-panel__state[data-state="failed"] {
    background: radial-gradient(circle, #fca5a5 0%, #dc2626 70%);
    box-shadow:
        inset 0 0 4px rgba(255,255,255,0.4),
        0 0 14px #ef4444,
        0 0 0 4px color-mix(in srgb, #ef4444 22%, transparent);
    animation: cockpit-led-fast 0.9s ease-in-out infinite;
}
@keyframes cockpit-led-pulse {
    0%, 100% { transform: scale(1);    box-shadow: inset 0 0 4px rgba(255,255,255,0.4), 0 0 16px #22c55e, 0 0 0 4px color-mix(in srgb, #22c55e 18%, transparent); }
    50%      { transform: scale(1.12); box-shadow: inset 0 0 4px rgba(255,255,255,0.4), 0 0 22px #22c55e, 0 0 0 8px color-mix(in srgb, #22c55e 8%, transparent); }
}
@keyframes cockpit-led-slow {
    0%, 100% { transform: scale(1);    opacity: 1; }
    50%      { transform: scale(1.06); opacity: 0.75; }
}
@keyframes cockpit-led-fast {
    0%, 100% { transform: scale(1);    opacity: 1; }
    50%      { transform: scale(1.15); opacity: 0.55; }
}

/* Title: bigger, more dramatic */
.swarm-terminal__title {
    font-family: 'Inter', system-ui, sans-serif;
    font-size: clamp(1.05rem, 2.8vw, 1.32rem);
    font-weight: 800;
    color: var(--text);
    letter-spacing: -0.01em;
    margin: 0 0 3px;
}
.swarm-terminal__sub {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.62rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-dim);
    display: flex; align-items: center; gap: 8px;
}
.swarm-terminal__sub .k {
    color: var(--text-muted, var(--text-dim));
    margin-right: 2px;
    font-weight: 500;
}
.swarm-terminal__sub .v-running   { color: #22c55e; font-weight: 800; }
.swarm-terminal__sub .v-scheduled { color: #fbbf24; font-weight: 800; }
.swarm-terminal__sub .v-failed    { color: #ef4444; font-weight: 800; }

/* Status badge pill on the right of the title row */
.swarm-terminal__badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 9px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: color-mix(in srgb, var(--card) 90%, transparent);
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.56rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-dim);
}
.swarm-terminal__badge::before {
    content: "";
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--text-dim);
}
.swarm-terminal__badge[data-tone="ok"]      { color: #22c55e; border-color: color-mix(in srgb, #22c55e 35%, var(--border)); }
.swarm-terminal__badge[data-tone="ok"]::before      { background: #22c55e; box-shadow: 0 0 8px #22c55e; }
.swarm-terminal__badge[data-tone="warn"]    { color: #fbbf24; border-color: color-mix(in srgb, #fbbf24 35%, var(--border)); }
.swarm-terminal__badge[data-tone="warn"]::before    { background: #fbbf24; box-shadow: 0 0 8px #fbbf24; }
.swarm-terminal__badge[data-tone="err"]     { color: #ef4444; border-color: color-mix(in srgb, #ef4444 35%, var(--border)); }
.swarm-terminal__badge[data-tone="err"]::before     { background: #ef4444; box-shadow: 0 0 8px #ef4444; }

/* SHADOW autopilot countdown — dramatic digital clock right of header */
.swarm-terminal__countdown {
    display: inline-flex;
    align-items: baseline;
    gap: 5px;
    padding: 5px 11px;
    border-radius: 8px;
    border: 1px solid color-mix(in srgb, var(--accent, #ffd700) 45%, var(--border));
    background:
        linear-gradient(135deg,
            color-mix(in srgb, var(--accent, #ffd700) 8%, var(--card)),
            color-mix(in srgb, var(--card) 95%, transparent));
    font-family: 'JetBrains Mono', monospace;
    color: var(--accent, #ffd700);
    text-shadow: 0 0 12px color-mix(in srgb, var(--accent, #ffd700) 40%, transparent);
    box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent, #ffd700) 12%, transparent);
}
.swarm-terminal__countdown .label {
    font-size: 0.5rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: color-mix(in srgb, var(--accent, #ffd700) 70%, var(--text-dim));
    text-shadow: none;
}
.swarm-terminal__countdown .value {
    font-size: 0.95rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    font-variant-numeric: tabular-nums;
}

/* Stats — hero tiles, like a real trading dashboard */
.swarm-terminal__stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    padding: 14px 18px;
    border-bottom: 1px solid color-mix(in srgb, var(--border) 70%, transparent);
    background:
        linear-gradient(180deg,
            color-mix(in srgb, var(--bg) 8%, var(--card)),
            color-mix(in srgb, var(--bg) 20%, var(--card)));
}
.swarm-terminal__stat {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 10px 12px;
    border: 1px solid color-mix(in srgb, var(--border) 80%, transparent);
    border-radius: 10px;
    background: color-mix(in srgb, var(--card) 96%, transparent);
    min-width: 0;
    overflow: hidden;
}
.swarm-terminal__stat::before {
    content: "";
    position: absolute;
    top: 0; left: 0;
    width: 3px; height: 100%;
    background: color-mix(in srgb, var(--text-dim) 30%, transparent);
}
.swarm-terminal__stat.tone-pos::before  { background: linear-gradient(180deg, #22c55e, transparent); }
.swarm-terminal__stat.tone-neg::before  { background: linear-gradient(180deg, #ef4444, transparent); }
.swarm-terminal__stat.tone-gold::before { background: linear-gradient(180deg, var(--accent, #ffd700), transparent); }
.swarm-terminal__stat.tone-info::before { background: linear-gradient(180deg, #60a5fa, transparent); }
.swarm-terminal__stat .k {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.52rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--text-dim);
}
.swarm-terminal__stat .v {
    font-family: 'JetBrains Mono', monospace;
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--text);
    line-height: 1.1;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.swarm-terminal__stat .v.pos  { color: #22c55e; text-shadow: 0 0 10px color-mix(in srgb, #22c55e 30%, transparent); }
.swarm-terminal__stat .v.neg  { color: #ef4444; text-shadow: 0 0 10px color-mix(in srgb, #ef4444 30%, transparent); }
.swarm-terminal__stat .v.gold { color: var(--accent, #ffd700); text-shadow: 0 0 10px color-mix(in srgb, var(--accent, #ffd700) 30%, transparent); }
.swarm-terminal__stat .sub {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.52rem;
    color: var(--text-dim);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
@media (max-width: 720px) {
    .swarm-terminal__stats { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 12px 14px; }
}

/* Body: subtle inset, mono feed glow */
.swarm-terminal__body {
    background:
        radial-gradient(ellipse at bottom left,
            color-mix(in srgb, var(--bg) 35%, transparent),
            transparent 50%),
        color-mix(in srgb, var(--bg) 18%, var(--card));
    border-top: 1px solid color-mix(in srgb, var(--border) 60%, transparent);
}

/* Pickers in tools: more prominent */
.swarm-terminal__tools .swarm-feed-select {
    min-width: 0;
    max-width: 220px;
    padding: 6px 28px 6px 12px;
    border-radius: 8px;
    border: 1px solid color-mix(in srgb, var(--accent, #ffd700) 25%, var(--border));
    background: var(--card);
    color: var(--text);
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.7rem;
    font-weight: 700;
    cursor: pointer;
}
@media (max-width: 720px) {
    .swarm-terminal__tools .swarm-feed-select { max-width: 100%; flex: 1 1 auto; }
}

/* Codex 2026-05-19 — Swarm Terminal hardening.
   One visual language for the public terminal room. Decorative chrome is blue;
   true semantic outcomes still use green/red for success/failure or PnL. */
body[data-site="maverick"] .swarm-section--terminals,
body[data-site="maverick"] .terminal-overlay {
    --terminal-blue: #2563eb;
    --terminal-blue-text: #1d4ed8;
    --terminal-blue-glow: rgba(37, 99, 235, 0.34);
    --terminal-blue-border: rgba(37, 99, 235, 0.38);
    --terminal-blue-border-strong: rgba(37, 99, 235, 0.58);
    --terminal-blue-bg: rgba(37, 99, 235, 0.075);
    --terminal-blue-bg-strong: rgba(37, 99, 235, 0.14);
    --accent: var(--terminal-blue);
    --gold: var(--terminal-blue);
    --amber: var(--terminal-blue);
    --gold-bg: var(--terminal-blue-bg);
    --gold-border: var(--terminal-blue-border);
}

body[data-site="maverick"] .swarm-hero__eyebrow,
body[data-site="maverick"] .swarm-hero__metric-value,
body[data-site="maverick"] .swarm-section--terminals .section-label {
    color: #1d4ed8 !important;
    text-shadow: 0 0 10px rgba(37, 99, 235, 0.16);
}

[data-theme="dark"] body[data-site="maverick"] .swarm-section--terminals,
[data-theme="dark"] body[data-site="maverick"] .terminal-overlay {
    --terminal-blue: #60a5fa;
    --terminal-blue-text: #93c5fd;
    --terminal-blue-glow: rgba(96, 165, 250, 0.34);
    --terminal-blue-border: rgba(96, 165, 250, 0.34);
    --terminal-blue-border-strong: rgba(96, 165, 250, 0.56);
    --terminal-blue-bg: rgba(96, 165, 250, 0.08);
    --terminal-blue-bg-strong: rgba(96, 165, 250, 0.15);
}

[data-theme="dark"] body[data-site="maverick"] .swarm-hero__eyebrow,
[data-theme="dark"] body[data-site="maverick"] .swarm-hero__metric-value,
[data-theme="dark"] body[data-site="maverick"] .swarm-section--terminals .section-label {
    color: #60a5fa !important;
    text-shadow: 0 0 10px rgba(96, 165, 250, 0.2);
}

body[data-site="maverick"] .swarm-section--terminals .swarm-terminal,
body[data-site="maverick"] .swarm-section--terminals .swarm-feed-panel {
    border-color: var(--terminal-blue-border) !important;
    background:
        linear-gradient(180deg, color-mix(in srgb, var(--terminal-blue) 5%, transparent), transparent 42%),
        color-mix(in srgb, var(--card) 96%, var(--bg)) !important;
    box-shadow:
        0 0 0 1px color-mix(in srgb, var(--terminal-blue) 18%, transparent),
        0 26px 70px -36px var(--terminal-blue-glow),
        inset 0 0 34px rgba(255,255,255,0.035) !important;
}

body[data-site="maverick"] .swarm-section--terminals .swarm-led-bar {
    border-color: var(--terminal-blue-border) !important;
    background: color-mix(in srgb, var(--terminal-blue) 5%, var(--bg)) !important;
    box-shadow:
        0 0 0 1px color-mix(in srgb, var(--terminal-blue) 12%, transparent),
        0 16px 42px -30px var(--terminal-blue-glow) !important;
    max-width: 100%;
    overflow: hidden;
}

body[data-site="maverick"] .swarm-section--terminals,
body[data-site="maverick"] .swarm-section--terminals .section-inner,
body[data-site="maverick"] .swarm-section--terminals .cockpit-grid,
body[data-site="maverick"] .swarm-section--terminals .swarm-terminal {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow-x: hidden;
}

body[data-site="maverick"] .swarm-section--terminals .swarm-led-bar__item {
    min-width: 0;
    overflow: hidden;
}

body[data-site="maverick"] .swarm-section--terminals .swarm-led-bar__item:hover,
body[data-site="maverick"] .swarm-section--terminals .swarm-led-bar__item:focus-visible {
    border-color: var(--terminal-blue-border-strong) !important;
    background: var(--terminal-blue-bg) !important;
}

body[data-site="maverick"] .swarm-section--terminals .swarm-led-bar__led[data-state="scheduled"] {
    background: var(--terminal-blue) !important;
    box-shadow: 0 0 8px var(--terminal-blue) !important;
}

body[data-site="maverick"] .swarm-section--terminals .swarm-terminal::before,
body[data-site="maverick"] .swarm-section--terminals .swarm-feed-panel::before {
    background:
        linear-gradient(115deg, rgba(255,255,255,0.13), transparent 24%, transparent 72%, var(--terminal-blue-bg));
    opacity: 0.42;
}

body[data-site="maverick"] .swarm-section--terminals .swarm-terminal::after,
body[data-site="maverick"] .swarm-section--terminals .swarm-terminal:has(.swarm-terminal__led[data-state="scheduled"])::after,
body[data-site="maverick"] .swarm-section--terminals .swarm-terminal:has(.swarm-feed-panel__state[data-state="scheduled"])::after {
    background: linear-gradient(90deg, transparent, var(--terminal-blue), transparent) !important;
}

body[data-site="maverick"] .swarm-section--terminals .swarm-terminal__header,
body[data-site="maverick"] .swarm-section--terminals .swarm-feed-panel__header {
    border-color: var(--terminal-blue-border) !important;
    background:
        linear-gradient(180deg, var(--terminal-blue-bg), transparent 76%),
        color-mix(in srgb, var(--card) 96%, var(--bg)) !important;
}

body[data-site="maverick"] .swarm-section--terminals .swarm-terminal__title,
body[data-site="maverick"] .swarm-section--terminals .swarm-feed-panel__title {
    color: var(--text) !important;
    text-shadow: 0 0 14px color-mix(in srgb, var(--terminal-blue) 26%, transparent) !important;
}

body[data-site="maverick"] .swarm-section--terminals .swarm-terminal__body,
body[data-site="maverick"] .swarm-section--terminals .swarm-feed-panel__body,
body[data-site="maverick"] .swarm-section--terminals #council-body,
body[data-site="maverick"] .swarm-section--terminals #swarm-page-feed-swarm {
    max-height: clamp(360px, 54vh, 640px) !important;
    overflow-y: auto !important;
    border-color: var(--terminal-blue-border) !important;
    background:
        radial-gradient(circle at 50% 0%, var(--terminal-blue-bg-strong), transparent 44%),
        linear-gradient(90deg, var(--terminal-blue-bg), transparent 18%, transparent 82%, var(--terminal-blue-bg)),
        color-mix(in srgb, var(--bg) 20%, var(--card)) !important;
    scrollbar-color: var(--terminal-blue) transparent;
}

body[data-site="maverick"] .swarm-section--terminals .swarm-feed-select {
    position: static !important;
    width: auto !important;
    height: auto !important;
    padding: 7px 30px 7px 12px !important;
    margin: 0 !important;
    overflow: visible !important;
    clip: auto !important;
    white-space: normal !important;
    border: 1px solid var(--terminal-blue-border) !important;
    border-radius: 8px !important;
    background: color-mix(in srgb, var(--terminal-blue) 7%, var(--card)) !important;
    color: var(--text) !important;
}

body[data-site="maverick"] .swarm-section--terminals #council-selector.swarm-feed-select {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

body[data-site="maverick"] .swarm-section--terminals .council-picker__button,
body[data-site="maverick"] .swarm-section--terminals .council-picker__option,
body[data-site="maverick"] .terminal-overlay .council-picker__button,
body[data-site="maverick"] .terminal-overlay .council-picker__option,
body[data-site="maverick"] .swarm-section--terminals .swarm-feed-panel__fullscreen,
body[data-site="maverick"] .swarm-section--terminals .swarm-terminal__fullscreen {
    border-color: var(--terminal-blue-border) !important;
    background: color-mix(in srgb, var(--terminal-blue) 7%, var(--card)) !important;
    color: var(--terminal-blue-text) !important;
}

body[data-site="maverick"] .swarm-section--terminals .council-picker__option:hover,
body[data-site="maverick"] .swarm-section--terminals .council-picker__option.is-active,
body[data-site="maverick"] .terminal-overlay .council-picker__option:hover,
body[data-site="maverick"] .terminal-overlay .council-picker__option.is-active,
body[data-site="maverick"] .swarm-section--terminals .swarm-feed-panel__fullscreen:hover,
body[data-site="maverick"] .swarm-section--terminals .swarm-terminal__fullscreen:hover {
    border-color: var(--terminal-blue-border-strong) !important;
    background: var(--terminal-blue-bg-strong) !important;
    color: var(--terminal-blue-text) !important;
    box-shadow: 0 0 18px color-mix(in srgb, var(--terminal-blue) 20%, transparent) !important;
}

body[data-site="maverick"] .swarm-section--terminals .feed-pill,
body[data-site="maverick"] .swarm-section--terminals .matrix-console__title,
body[data-site="maverick"] .swarm-section--terminals .fc-terminal-live-card,
body[data-site="maverick"] .swarm-section--terminals .fc-terminal-raw-head,
body[data-site="maverick"] .terminal-overlay .fc-terminal-live-card,
body[data-site="maverick"] .terminal-overlay .fc-terminal-raw-head {
    border-color: var(--terminal-blue-border) !important;
    background: var(--terminal-blue-bg) !important;
    color: var(--terminal-blue-text) !important;
}

body[data-site="maverick"] .swarm-section--terminals .fc-terminal-live-kicker,
body[data-site="maverick"] .swarm-section--terminals .fc-terminal-live-title,
body[data-site="maverick"] .swarm-section--terminals .matrix-console__title span,
body[data-site="maverick"] .swarm-section--terminals .fc-status-scheduled,
body[data-site="maverick"] .swarm-section--terminals .swarm-terminal__sub .v-scheduled,
body[data-site="maverick"] .swarm-section--terminals .swarm-terminal__ticker-action.act-demote,
body[data-site="maverick"] .swarm-section--terminals .swarm-terminal__ticker-action.act-hof,
body[data-site="maverick"] .swarm-section--terminals .swarm-terminal__ticker-action.act-verdict,
body[data-site="maverick"] .swarm-section--terminals .swarm-event-card__chip--demote,
body[data-site="maverick"] .swarm-section--terminals .swarm-event-card__chip--curve_bomb,
body[data-site="maverick"] .swarm-section--terminals .swarm-terminal__stat .v.gold {
    color: var(--terminal-blue-text) !important;
    text-shadow: 0 0 10px color-mix(in srgb, var(--terminal-blue) 22%, transparent) !important;
}

body[data-site="maverick"] .swarm-section--terminals .swarm-terminal__led[data-state="scheduled"],
body[data-site="maverick"] .swarm-section--terminals .swarm-feed-panel__state[data-state="scheduled"],
body[data-site="maverick"] .swarm-section--terminals .swarm-terminal__badge[data-tone="warn"]::before {
    background: radial-gradient(circle, color-mix(in srgb, var(--terminal-blue) 34%, white) 0%, var(--terminal-blue) 72%) !important;
    box-shadow:
        inset 0 0 4px rgba(255,255,255,0.34),
        0 0 13px var(--terminal-blue),
        0 0 0 3px color-mix(in srgb, var(--terminal-blue) 18%, transparent) !important;
}

body[data-site="maverick"] .swarm-section--terminals .swarm-terminal__badge[data-tone="warn"],
body[data-site="maverick"] .swarm-section--terminals .swarm-terminal__countdown {
    color: var(--terminal-blue-text) !important;
    border-color: var(--terminal-blue-border) !important;
    background: var(--terminal-blue-bg) !important;
    text-shadow: none !important;
}

body[data-site="maverick"] .swarm-section--terminals .swarm-event-card[data-action="DEMOTE"],
body[data-site="maverick"] .swarm-section--terminals .swarm-event-card[data-action="CURVE_BOMB"] {
    border-left-color: var(--terminal-blue) !important;
}

body[data-site="maverick"] .swarm-section--terminals .council-loader-bar span,
body[data-site="maverick"] .terminal-overlay .council-loader-bar span {
    background: linear-gradient(90deg, transparent, var(--terminal-blue), color-mix(in srgb, var(--terminal-blue) 65%, white), transparent) !important;
}

body[data-site="maverick"] .terminal-overlay {
    background:
        radial-gradient(circle at 50% 0%, color-mix(in srgb, var(--terminal-blue) 18%, transparent), transparent 42%),
        color-mix(in srgb, var(--bg) 96%, black) !important;
}

body[data-site="maverick"] .terminal-overlay-header {
    border-bottom: 1px solid var(--terminal-blue-border) !important;
    background: color-mix(in srgb, var(--terminal-blue) 7%, var(--card)) !important;
}

body[data-site="maverick"] #terminal-overlay-title {
    color: var(--terminal-blue-text) !important;
}

body[data-site="maverick"] .terminal-close-btn {
    border-color: var(--terminal-blue-border) !important;
    color: var(--terminal-blue-text) !important;
    background: var(--terminal-blue-bg) !important;
}

body[data-site="maverick"] .terminal-overlay-body {
    scrollbar-color: var(--terminal-blue) transparent;
}

body[data-site="maverick"] .terminal-overlay-body > section,
body[data-site="maverick"] .terminal-overlay-body .swarm-event-card,
body[data-site="maverick"] .terminal-overlay-body .matrix-scene,
body[data-site="maverick"] .terminal-overlay-body .feed-entry {
    border-color: var(--terminal-blue-border) !important;
    background: color-mix(in srgb, var(--terminal-blue) 5%, var(--card)) !important;
    box-shadow: inset 3px 0 0 var(--terminal-blue) !important;
}

@media (max-width: 720px) {
    body[data-site="maverick"] .swarm-section--terminals .swarm-led-bar {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 4px;
        padding: 8px 6px;
    }

    body[data-site="maverick"] .swarm-section--terminals .swarm-led-bar__item {
        min-height: 44px;
        padding: 7px 2px;
    }

    body[data-site="maverick"] .swarm-section--terminals .swarm-led-bar__name {
        font-size: 0.48rem;
        letter-spacing: 0.08em;
    }

    body[data-site="maverick"] .swarm-section--terminals .swarm-led-bar__sub {
        font-size: 0.46rem;
    }

    body[data-site="maverick"] .swarm-section--terminals .swarm-terminal__body,
    body[data-site="maverick"] .swarm-section--terminals .swarm-feed-panel__body,
    body[data-site="maverick"] .swarm-section--terminals #council-body,
    body[data-site="maverick"] .swarm-section--terminals #swarm-page-feed-swarm {
        max-height: clamp(300px, 44vh, 460px) !important;
    }
}

/* FINAL OVERRIDE 2026-05-19: compact terminal previews.
   Keep this at EOF so older cockpit/fullscreen styling cannot re-expand cards. */
body[data-site="maverick"] .swarm-section--terminals .section-inner {
    max-width: min(1480px, calc(100vw - 20px)) !important;
}

body[data-site="maverick"] .swarm-section--terminals .section-title {
    margin-bottom: 6px !important;
    font-size: clamp(1.45rem, 3.5vw, 2.4rem) !important;
}

body[data-site="maverick"] .swarm-section--terminals .section-text {
    max-width: 760px !important;
    margin-bottom: 12px !important;
    font-size: clamp(0.84rem, 2.6vw, 1rem) !important;
    line-height: 1.45 !important;
}

body[data-site="maverick"] .swarm-section--terminals .swarm-led-bar {
    grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
    gap: 6px !important;
    margin: 10px 0 12px !important;
    padding: 8px !important;
}

body[data-site="maverick"] .swarm-section--terminals .swarm-led-bar__item {
    min-height: 42px !important;
    padding: 7px 6px !important;
}

body[data-site="maverick"] .swarm-section--terminals .cockpit-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 12px !important;
    margin-top: 12px !important;
}

body[data-site="maverick"] .swarm-section--terminals .cockpit-grid > .swarm-terminal,
body[data-site="maverick"] .swarm-section--terminals .cockpit-grid > .swarm-feed-panel {
    display: flex !important;
    flex-direction: column !important;
    height: 238px !important;
    min-height: 238px !important;
    margin: 0 !important;
    border-radius: 12px !important;
}

body[data-site="maverick"] .swarm-section--terminals .swarm-terminal__header,
body[data-site="maverick"] .swarm-section--terminals .swarm-feed-panel__header {
    gap: 8px !important;
    min-height: 0 !important;
    padding: 9px 10px !important;
}

body[data-site="maverick"] .swarm-section--terminals .swarm-terminal__led,
body[data-site="maverick"] .swarm-section--terminals .swarm-feed-panel__state {
    width: 9px !important;
    height: 9px !important;
    flex: 0 0 9px !important;
}

body[data-site="maverick"] .swarm-section--terminals .swarm-terminal__title,
body[data-site="maverick"] .swarm-section--terminals .swarm-feed-panel__title {
    font-size: clamp(0.78rem, 1.55vw, 1rem) !important;
    line-height: 1.08 !important;
    margin: 0 !important;
}

body[data-site="maverick"] .swarm-section--terminals .swarm-terminal__sub,
body[data-site="maverick"] .swarm-section--terminals .swarm-feed-panel__status-line,
body[data-site="maverick"] .swarm-section--terminals .swarm-feed-meta {
    font-size: 0.58rem !important;
    line-height: 1.18 !important;
}

body[data-site="maverick"] .swarm-section--terminals .swarm-terminal__fullscreen,
body[data-site="maverick"] .swarm-section--terminals .swarm-feed-panel__fullscreen,
body[data-site="maverick"] .swarm-section--terminals .council-picker__button {
    min-height: 30px !important;
    padding: 6px 8px !important;
    font-size: 0.58rem !important;
    letter-spacing: 0.08em !important;
    white-space: nowrap !important;
}

body[data-site="maverick"] .swarm-section--terminals .swarm-terminal__stats {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 6px !important;
    padding: 7px 10px 0 !important;
}

body[data-site="maverick"] .swarm-section--terminals .swarm-terminal__stat,
body[data-site="maverick"] .swarm-section--terminals .feed-pill {
    min-height: 34px !important;
    padding: 6px 7px !important;
}

body[data-site="maverick"] .swarm-section--terminals .swarm-terminal__stat .k,
body[data-site="maverick"] .swarm-section--terminals .swarm-terminal__stat .v,
body[data-site="maverick"] .swarm-section--terminals .feed-pill {
    font-size: 0.55rem !important;
    line-height: 1.14 !important;
}

body[data-site="maverick"] .swarm-section--terminals .swarm-terminal__ticker,
body[data-site="maverick"] .swarm-section--terminals .swarm-terminal__detail {
    max-height: 36px !important;
    margin: 6px 10px 0 !important;
    overflow: hidden !important;
    font-size: 0.58rem !important;
    line-height: 1.2 !important;
}

body[data-site="maverick"] .swarm-section--terminals .swarm-terminal__body,
body[data-site="maverick"] .swarm-section--terminals .swarm-feed-panel__body,
body[data-site="maverick"] .swarm-section--terminals #council-body,
body[data-site="maverick"] .swarm-section--terminals #swarm-page-feed-swarm {
    flex: 1 1 auto !important;
    min-height: 0 !important;
    max-height: none !important;
    margin: 7px 10px 10px !important;
    padding: 8px 9px !important;
    overflow: auto !important;
    font-size: 0.58rem !important;
    line-height: 1.36 !important;
}

@media (max-width: 980px) {
    body[data-site="maverick"] .swarm-section--terminals .cockpit-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 10px !important;
    }

    body[data-site="maverick"] .swarm-section--terminals .cockpit-grid > .swarm-terminal,
    body[data-site="maverick"] .swarm-section--terminals .cockpit-grid > .swarm-feed-panel {
        height: 210px !important;
        min-height: 210px !important;
    }

    body[data-site="maverick"] .swarm-section--terminals .swarm-led-bar {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    }
}

@media (max-width: 520px) {
    body[data-site="maverick"] .swarm-section--terminals {
        padding-top: 20px !important;
    }

    body[data-site="maverick"] .swarm-section--terminals .section-inner {
        max-width: calc(100vw - 14px) !important;
        padding-left: 7px !important;
        padding-right: 7px !important;
    }

    body[data-site="maverick"] .swarm-section--terminals .cockpit-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 8px !important;
    }

    body[data-site="maverick"] .swarm-section--terminals .cockpit-grid > .swarm-terminal,
    body[data-site="maverick"] .swarm-section--terminals .cockpit-grid > .swarm-feed-panel {
        height: 178px !important;
        min-height: 178px !important;
        border-radius: 10px !important;
    }

    body[data-site="maverick"] .swarm-section--terminals .swarm-terminal__header,
    body[data-site="maverick"] .swarm-section--terminals .swarm-feed-panel__header {
        padding: 7px 8px !important;
        gap: 6px !important;
    }

    body[data-site="maverick"] .swarm-section--terminals .swarm-terminal__title,
    body[data-site="maverick"] .swarm-section--terminals .swarm-feed-panel__title {
        font-size: 0.68rem !important;
    }

    body[data-site="maverick"] .swarm-section--terminals .swarm-terminal__sub,
    body[data-site="maverick"] .swarm-section--terminals .swarm-feed-panel__status-line,
    body[data-site="maverick"] .swarm-section--terminals .swarm-feed-meta {
        font-size: 0.48rem !important;
    }

    body[data-site="maverick"] .swarm-section--terminals .swarm-terminal__fullscreen,
    body[data-site="maverick"] .swarm-section--terminals .swarm-feed-panel__fullscreen,
    body[data-site="maverick"] .swarm-section--terminals .council-picker__button {
        min-height: 26px !important;
        padding: 4px 5px !important;
        font-size: 0.48rem !important;
    }

    body[data-site="maverick"] .swarm-section--terminals .swarm-terminal__stats {
        gap: 4px !important;
        padding: 5px 7px 0 !important;
    }

    body[data-site="maverick"] .swarm-section--terminals .swarm-terminal__stat,
    body[data-site="maverick"] .swarm-section--terminals .feed-pill {
        min-height: 28px !important;
        padding: 4px 5px !important;
    }

    body[data-site="maverick"] .swarm-section--terminals .swarm-terminal__stat .k,
    body[data-site="maverick"] .swarm-section--terminals .swarm-terminal__stat .v,
    body[data-site="maverick"] .swarm-section--terminals .feed-pill {
        font-size: 0.46rem !important;
    }

    body[data-site="maverick"] .swarm-section--terminals .swarm-terminal__ticker,
    body[data-site="maverick"] .swarm-section--terminals .swarm-terminal__detail {
        display: none !important;
    }

    body[data-site="maverick"] .swarm-section--terminals .swarm-terminal__body,
    body[data-site="maverick"] .swarm-section--terminals .swarm-feed-panel__body,
    body[data-site="maverick"] .swarm-section--terminals #council-body,
    body[data-site="maverick"] .swarm-section--terminals #swarm-page-feed-swarm {
        margin: 5px 7px 7px !important;
        padding: 6px 7px !important;
        font-size: 0.48rem !important;
        line-height: 1.3 !important;
    }

    body[data-site="maverick"] .swarm-section--terminals .swarm-led-bar {
        grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
        gap: 3px !important;
        padding: 5px !important;
    }

    body[data-site="maverick"] .swarm-section--terminals .swarm-led-bar__item {
        min-height: 34px !important;
        padding: 5px 1px !important;
    }

    body[data-site="maverick"] .swarm-section--terminals .swarm-led-bar__name {
        font-size: 0.42rem !important;
    }

    body[data-site="maverick"] .swarm-section--terminals .swarm-led-bar__sub {
        display: none !important;
    }
}

/* FINAL OVERRIDE 2026-05-19: selector tiles + one open terminal.
   Rob wants compact tiles first, then one readable panel underneath. */
body[data-site="maverick"] .swarm-section--terminals .swarm-led-bar {
    display: grid !important;
    grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
    gap: 8px !important;
    padding: 10px !important;
    margin: 10px 0 12px !important;
    border-radius: 16px !important;
}

body[data-site="maverick"] .swarm-section--terminals .swarm-led-bar__item {
    display: grid !important;
    place-items: center !important;
    align-content: center !important;
    min-height: 68px !important;
    padding: 8px 4px !important;
    border-radius: 12px !important;
    text-decoration: none !important;
    border: 1px solid var(--terminal-blue-border) !important;
    background: color-mix(in srgb, var(--terminal-blue) 4%, var(--card)) !important;
}

body[data-site="maverick"] .swarm-section--terminals .swarm-led-bar__item.is-selected {
    border-color: var(--terminal-blue-border-strong) !important;
    background: var(--terminal-blue-bg-strong) !important;
    box-shadow:
        inset 0 0 0 1px color-mix(in srgb, var(--terminal-blue) 26%, transparent),
        0 0 24px color-mix(in srgb, var(--terminal-blue) 18%, transparent) !important;
}

body[data-site="maverick"] .swarm-section--terminals .swarm-led-bar__led {
    width: 12px !important;
    height: 12px !important;
}

body[data-site="maverick"] .swarm-section--terminals .swarm-led-bar__name {
    font-size: 0.68rem !important;
    line-height: 1 !important;
    letter-spacing: 0.14em !important;
}

body[data-site="maverick"] .swarm-section--terminals .swarm-led-bar__sub {
    display: block !important;
    max-width: 100%;
    font-size: 0.5rem !important;
    line-height: 1.1 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}

body[data-site="maverick"] .swarm-section--terminals .cockpit-grid {
    display: block !important;
    margin-top: 12px !important;
}

body[data-site="maverick"] .swarm-section--terminals .cockpit-grid > .swarm-terminal,
body[data-site="maverick"] .swarm-section--terminals .cockpit-grid > .swarm-feed-panel {
    display: none !important;
}

body[data-site="maverick"] .swarm-section--terminals .cockpit-grid > .swarm-terminal.is-terminal-open,
body[data-site="maverick"] .swarm-section--terminals .cockpit-grid > .swarm-feed-panel.is-terminal-open {
    display: flex !important;
    width: 100% !important;
    height: min(62vh, 560px) !important;
    min-height: 380px !important;
    margin: 0 !important;
    border-radius: 14px !important;
}

body[data-site="maverick"] .swarm-section--terminals .cockpit-grid > .swarm-terminal.is-terminal-open .swarm-terminal__header,
body[data-site="maverick"] .swarm-section--terminals .cockpit-grid > .swarm-feed-panel.is-terminal-open .swarm-feed-panel__header {
    padding: 12px 14px !important;
}

body[data-site="maverick"] .swarm-section--terminals .cockpit-grid > .swarm-terminal.is-terminal-open .swarm-terminal__title,
body[data-site="maverick"] .swarm-section--terminals .cockpit-grid > .swarm-feed-panel.is-terminal-open .swarm-feed-panel__title {
    font-size: clamp(1rem, 4vw, 1.45rem) !important;
}

body[data-site="maverick"] .swarm-section--terminals .cockpit-grid > .swarm-terminal.is-terminal-open .swarm-terminal__body,
body[data-site="maverick"] .swarm-section--terminals .cockpit-grid > .swarm-feed-panel.is-terminal-open .swarm-feed-panel__body,
body[data-site="maverick"] .swarm-section--terminals .cockpit-grid > .swarm-terminal.is-terminal-open #council-body,
body[data-site="maverick"] .swarm-section--terminals .cockpit-grid > .swarm-terminal.is-terminal-open #swarm-page-feed-swarm {
    font-size: clamp(0.68rem, 2.7vw, 0.86rem) !important;
    line-height: 1.52 !important;
}

@media (max-width: 520px) {
    body[data-site="maverick"] .swarm-section--terminals .swarm-led-bar {
        grid-template-columns: repeat(6, minmax(45px, 1fr)) !important;
        gap: 5px !important;
        padding: 7px !important;
        overflow-x: auto !important;
        scroll-snap-type: x proximity !important;
    }

    body[data-site="maverick"] .swarm-section--terminals .swarm-led-bar__item {
        min-height: 58px !important;
        min-width: 45px !important;
        scroll-snap-align: start !important;
    }

    body[data-site="maverick"] .swarm-section--terminals .swarm-led-bar__name {
        font-size: 0.52rem !important;
        letter-spacing: 0.12em !important;
    }

    body[data-site="maverick"] .swarm-section--terminals .swarm-led-bar__sub {
        font-size: 0.42rem !important;
    }

    body[data-site="maverick"] .swarm-section--terminals .cockpit-grid > .swarm-terminal.is-terminal-open,
    body[data-site="maverick"] .swarm-section--terminals .cockpit-grid > .swarm-feed-panel.is-terminal-open {
        height: min(64vh, 580px) !important;
        min-height: 390px !important;
    }
}

/* FINAL OVERRIDE 2026-05-19: restore approved rotating terminal loader after legacy hide rules. */
body[data-site="maverick"] .swarm-section--terminals .council-loading-state--active,
body[data-site="maverick"] .terminal-overlay .council-loading-state--active {
    display: grid !important;
    grid-template-columns: auto minmax(0, 1fr) !important;
    align-items: center !important;
    gap: 14px !important;
}

body[data-site="maverick"] .swarm-section--terminals .council-loader-orbit,
body[data-site="maverick"] .terminal-overlay .council-loader-orbit {
    display: block !important;
    position: relative !important;
    width: 58px !important;
    height: 58px !important;
    flex: 0 0 58px !important;
    border-radius: 999px !important;
    background:
        radial-gradient(circle at 50% 50%, color-mix(in srgb, var(--terminal-blue) 24%, transparent), transparent 58%),
        color-mix(in srgb, var(--terminal-blue) 7%, var(--card)) !important;
    box-shadow:
        inset 0 0 18px color-mix(in srgb, var(--terminal-blue) 18%, transparent),
        0 0 28px color-mix(in srgb, var(--terminal-blue) 22%, transparent) !important;
}

body[data-site="maverick"] .swarm-section--terminals .council-loader-orbit::before,
body[data-site="maverick"] .terminal-overlay .council-loader-orbit::before {
    border-top-color: var(--terminal-blue) !important;
    border-right-color: color-mix(in srgb, var(--terminal-blue) 35%, transparent) !important;
}

body[data-site="maverick"] .swarm-section--terminals .council-loader-orbit::after,
body[data-site="maverick"] .terminal-overlay .council-loader-orbit::after {
    border-top-color: color-mix(in srgb, var(--terminal-blue) 64%, white) !important;
}

body[data-site="maverick"] .swarm-section--terminals .council-loader-orbit span,
body[data-site="maverick"] .terminal-overlay .council-loader-orbit span {
    background: var(--terminal-blue) !important;
    box-shadow: 0 0 14px var(--terminal-blue) !important;
}

body[data-site="maverick"] .swarm-section--terminals .council-loader-bar,
body[data-site="maverick"] .terminal-overlay .council-loader-bar {
    display: block !important;
    grid-column: 1 / -1 !important;
    position: relative !important;
    height: 5px !important;
    margin-top: 2px !important;
    overflow: hidden !important;
    border-radius: 999px !important;
    background: color-mix(in srgb, var(--terminal-blue) 10%, transparent) !important;
    border: 1px solid var(--terminal-blue-border) !important;
}

@media (max-width: 520px) {
    body[data-site="maverick"] .swarm-section--terminals .council-loading-state--active {
        grid-template-columns: 42px minmax(0, 1fr) !important;
        gap: 9px !important;
        padding: 12px !important;
    }

    body[data-site="maverick"] .swarm-section--terminals .council-loader-orbit {
        width: 42px !important;
        height: 42px !important;
        flex-basis: 42px !important;
    }
}

/* TRUE EOF OVERRIDE 2026-05-19: terminal traffic-light truth after every legacy rule.
   Green = running, amber = fires within 1h, red = stopped/idle/fail. */
body[data-site="maverick"] .swarm-section--terminals #swarm-run-selector.swarm-feed-select {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

body[data-site="maverick"] .swarm-section--terminals .swarm-led-bar__led[data-state="running"],
body[data-site="maverick"] .swarm-section--terminals .swarm-terminal__led[data-state="running"],
body[data-site="maverick"] .swarm-section--terminals .swarm-feed-panel__state[data-state="running"] {
    background: radial-gradient(circle, #86efac 0%, #16a34a 72%) !important;
    box-shadow:
        inset 0 0 4px rgba(255,255,255,0.45),
        0 0 16px #22c55e,
        0 0 0 4px color-mix(in srgb, #22c55e 22%, transparent) !important;
    animation: cockpit-led-pulse 1.4s ease-in-out infinite !important;
}

body[data-site="maverick"] .swarm-section--terminals .swarm-led-bar__led[data-state="scheduled"],
body[data-site="maverick"] .swarm-section--terminals .swarm-terminal__led[data-state="scheduled"],
body[data-site="maverick"] .swarm-section--terminals .swarm-feed-panel__state[data-state="scheduled"] {
    background: radial-gradient(circle, #fde68a 0%, #f59e0b 72%) !important;
    box-shadow:
        inset 0 0 4px rgba(255,255,255,0.4),
        0 0 14px #fbbf24,
        0 0 0 4px color-mix(in srgb, #fbbf24 22%, transparent) !important;
    animation: cockpit-led-slow 2.8s ease-in-out infinite !important;
}

body[data-site="maverick"] .swarm-section--terminals .swarm-led-bar__led[data-state="idle"],
body[data-site="maverick"] .swarm-section--terminals .swarm-terminal__led[data-state="idle"],
body[data-site="maverick"] .swarm-section--terminals .swarm-feed-panel__state[data-state="idle"] {
    background: radial-gradient(circle, #fca5a5 0%, #991b1b 72%) !important;
    box-shadow:
        inset 0 0 4px rgba(255,255,255,0.25),
        0 0 10px color-mix(in srgb, #ef4444 55%, transparent),
        0 0 0 3px color-mix(in srgb, #ef4444 16%, transparent) !important;
    animation: none !important;
}

body[data-site="maverick"] .swarm-section--terminals .swarm-led-bar__led[data-state="failed"],
body[data-site="maverick"] .swarm-section--terminals .swarm-terminal__led[data-state="failed"],
body[data-site="maverick"] .swarm-section--terminals .swarm-feed-panel__state[data-state="failed"] {
    background: radial-gradient(circle, #fecaca 0%, #dc2626 72%) !important;
    box-shadow:
        inset 0 0 4px rgba(255,255,255,0.34),
        0 0 16px #ef4444,
        0 0 0 4px color-mix(in srgb, #ef4444 26%, transparent) !important;
    animation: cockpit-led-fast 0.8s ease-in-out infinite !important;
}

body[data-site="maverick"] .swarm-section--terminals .fc-status-running {
    color: #16a34a !important;
    font-weight: 900 !important;
}

body[data-site="maverick"] .swarm-section--terminals .fc-status-scheduled {
    color: #d97706 !important;
    font-weight: 900 !important;
}

body[data-site="maverick"] .swarm-section--terminals .fc-status-idle {
    color: #991b1b !important;
    font-weight: 900 !important;
}

/* CODEX BLUE TRUE EOF 2026-05-19 20:38 BST.
   Final cascade winner: blue chrome, tiny LEDs, traffic colours only for state. */
body[data-site="maverick"] {
    --swarm-blue: #60a5fa;
    --swarm-blue-text: #93c5fd;
    --swarm-blue-border: rgba(96, 165, 250, 0.42);
    --swarm-blue-bg: rgba(96, 165, 250, 0.08);
    --swarm-blue-glow: rgba(96, 165, 250, 0.24);
    --accent: var(--swarm-blue);
    --gold: var(--swarm-blue);
    --amber: var(--swarm-blue);
    --gold-bg: var(--swarm-blue-bg);
    --gold-border: var(--swarm-blue-border);
}

body[data-site="maverick"] .nav-neon-line {
    background: linear-gradient(90deg, transparent, var(--swarm-blue), transparent) !important;
    box-shadow: 0 0 18px var(--swarm-blue-glow) !important;
}

body[data-site="maverick"] .nav-center a[href*="shadow.freedomcore.io"],
body[data-site="maverick"] .nav-center a[href*="quantum.freedomcore.io"],
body[data-site="maverick"] .nav-center a[href*="arena.freedomcore.io"],
body[data-site="maverick"] .nav-center a[href="/pages/access.html"],
body[data-site="maverick"] .ssl-popup-title svg,
body[data-site="maverick"] .ssl-popup a[href="/pages/security.html"],
body[data-site="maverick"] .swarm-hero__eyebrow,
body[data-site="maverick"] .swarm-section .section-label,
body[data-site="maverick"] .swarm-tv-summary__card span,
body[data-site="maverick"] .llm-phase__header span,
body[data-site="maverick"] .llm-phase__header em,
body[data-site="maverick"] .footer-logo,
body[data-site="maverick"] .swarm-feed-panel__title,
body[data-site="maverick"] .terminal-overlay__kicker {
    color: var(--swarm-blue-text) !important;
    border-color: var(--swarm-blue-border) !important;
    text-shadow: 0 0 12px var(--swarm-blue-glow) !important;
}

body[data-site="maverick"] .swarm-hero__metric,
body[data-site="maverick"] .swarm-tv-summary__card,
body[data-site="maverick"] .llm-phase,
body[data-site="maverick"] .llm-phase--primary,
body[data-site="maverick"] .llm-rules article,
body[data-site="maverick"] .swarm-terminal,
body[data-site="maverick"] .swarm-feed-panel,
body[data-site="maverick"] .terminal-overlay__panel,
body[data-site="maverick"] .swarm-feed-select {
    border-color: var(--swarm-blue-border) !important;
    background:
        radial-gradient(circle at 50% 0%, var(--swarm-blue-bg), transparent 48%),
        var(--card) !important;
    box-shadow:
        inset 0 0 0 1px color-mix(in srgb, var(--swarm-blue) 7%, transparent),
        0 24px 58px -45px var(--swarm-blue-glow) !important;
}

body[data-site="maverick"] .swarm-section--terminals .swarm-led-bar__led {
    width: 5px !important;
    height: 5px !important;
    min-width: 5px !important;
    min-height: 5px !important;
    border-radius: 999px !important;
}

body[data-site="maverick"] .swarm-section--terminals .swarm-terminal__led,
body[data-site="maverick"] .swarm-section--terminals .swarm-feed-panel__state {
    width: 7px !important;
    height: 7px !important;
    min-width: 7px !important;
    min-height: 7px !important;
    flex: 0 0 7px !important;
    border-radius: 999px !important;
}

body[data-site="maverick"] .swarm-section--terminals .swarm-led-bar__led::before,
body[data-site="maverick"] .swarm-section--terminals .swarm-led-bar__led::after,
body[data-site="maverick"] .swarm-section--terminals .swarm-terminal__led::before,
body[data-site="maverick"] .swarm-section--terminals .swarm-terminal__led::after,
body[data-site="maverick"] .swarm-section--terminals .swarm-feed-panel__state::before,
body[data-site="maverick"] .swarm-section--terminals .swarm-feed-panel__state::after {
    display: none !important;
    content: none !important;
}

body[data-site="maverick"] .swarm-section--terminals .swarm-led-bar__led[data-state="running"],
body[data-site="maverick"] .swarm-section--terminals .swarm-terminal__led[data-state="running"],
body[data-site="maverick"] .swarm-section--terminals .swarm-feed-panel__state[data-state="running"] {
    background: #22c55e !important;
    box-shadow: 0 0 7px color-mix(in srgb, #22c55e 65%, transparent) !important;
    animation: none !important;
}

body[data-site="maverick"] .swarm-section--terminals .swarm-led-bar__led[data-state="scheduled"],
body[data-site="maverick"] .swarm-section--terminals .swarm-terminal__led[data-state="scheduled"],
body[data-site="maverick"] .swarm-section--terminals .swarm-feed-panel__state[data-state="scheduled"] {
    background: #f59e0b !important;
    box-shadow: 0 0 6px color-mix(in srgb, #f59e0b 58%, transparent) !important;
    animation: none !important;
}

body[data-site="maverick"] .swarm-section--terminals .swarm-led-bar__led[data-state="idle"],
body[data-site="maverick"] .swarm-section--terminals .swarm-terminal__led[data-state="idle"],
body[data-site="maverick"] .swarm-section--terminals .swarm-feed-panel__state[data-state="idle"] {
    background: #991b1b !important;
    box-shadow: 0 0 4px color-mix(in srgb, #991b1b 42%, transparent) !important;
    animation: none !important;
}

body[data-site="maverick"] .swarm-section--terminals .swarm-led-bar__led[data-state="failed"],
body[data-site="maverick"] .swarm-section--terminals .swarm-terminal__led[data-state="failed"],
body[data-site="maverick"] .swarm-section--terminals .swarm-feed-panel__state[data-state="failed"] {
    background: #dc2626 !important;
    box-shadow: 0 0 7px color-mix(in srgb, #dc2626 65%, transparent) !important;
    animation: none !important;
}

/* 2026-05-26 final light-mode warn contrast override. Keep after Maverick terminal blue block. */
[data-theme="light"] .swarm-terminal__sub .v-scheduled,
[data-theme="light"] body[data-site="maverick"] .swarm-section--terminals .swarm-terminal__sub .v-scheduled {
    color: #92400e !important;
    text-shadow: none !important;
}

[data-theme="light"] .swarm-terminal__badge[data-tone="warn"],
[data-theme="light"] body[data-site="maverick"] .swarm-section--terminals .swarm-terminal__badge[data-tone="warn"] {
    color: #92400e !important;
    border-color: color-mix(in srgb, #92400e 35%, var(--border)) !important;
}

[data-theme="light"] .swarm-terminal__badge[data-tone="warn"]::before,
[data-theme="light"] body[data-site="maverick"] .swarm-section--terminals .swarm-terminal__badge[data-tone="warn"]::before {
    background: #92400e !important;
    box-shadow: 0 0 8px rgba(146, 64, 14, 0.4) !important;
}
