/* ═══════════════════════════════════════════════════════════════
   GBC AIR OPS — GLOBAL SIDEBAR STYLES
   Single source of truth. Loaded by gbc_sidebar.js.
   DO NOT duplicate these styles in individual page <style> blocks.
   All selectors are scoped under #gbc-global-sidebar to prevent
   page-specific CSS from altering sidebar appearance.
   ═══════════════════════════════════════════════════════════════ */

/* ── Shell layout (every page must use this) ── */
.gbc-app-shell {
    display: grid;
    grid-template-columns: 240px 1fr;
    width: 100%;
    min-height: 100vh;
    height: 100vh;
    overflow: hidden;
}

.gbc-main-content {
    overflow-y: auto;
    overflow-x: hidden;
    height: 100vh;
}

/* ── Sidebar container ── */
#gbc-global-sidebar {
    width: 240px;
    min-width: 240px;
    max-width: 240px;
    height: 100vh;
    position: sticky;
    top: 0;
    left: 0;
    background: #0f172a;
    border-right: 1px solid #1e293b;
    display: flex;
    flex-direction: column;
    padding: 16px 12px;
    box-sizing: border-box;
    overflow-y: auto;
    overflow-x: hidden;
    z-index: 9000;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    -webkit-font-smoothing: antialiased;
}

/* ── Brand block ── */
#gbc-global-sidebar .gbs-brand {
    background: #020617;
    border: 1px solid #1e293b;
    border-radius: 12px;
    padding: 14px;
    margin-bottom: 18px;
    box-shadow: 0 8px 24px rgba(0,0,0,.2);
}

#gbc-global-sidebar .gbs-brand-tag {
    font-size: 10px;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: #38bdf8;
    font-weight: 600;
}

#gbc-global-sidebar .gbs-brand-name {
    font-size: 18px;
    font-weight: 700;
    color: #f8fafc;
    margin-top: 4px;
    letter-spacing: -.01em;
}

#gbc-global-sidebar .gbs-brand-sub {
    font-size: 11px;
    color: #475569;
    margin-top: 2px;
}

#gbc-global-sidebar .gbs-brand-pills {
    margin-top: 8px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

#gbc-global-sidebar .gbs-pill {
    font-size: 8px;
    letter-spacing: .08em;
    text-transform: uppercase;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 999px;
}

#gbc-global-sidebar .gbs-pill-blue {
    background: rgba(56,189,248,.12);
    color: #38bdf8;
    border: 1px solid rgba(56,189,248,.25);
}

#gbc-global-sidebar .gbs-pill-green {
    background: rgba(74,222,128,.12);
    color: #4ade80;
    border: 1px solid rgba(74,222,128,.25);
}

/* ── Navigation groups ── */
#gbc-global-sidebar .gbs-nav-group {
    font-size: 10px;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: #334155;
    padding: 10px 8px 4px;
    font-weight: 600;
    margin-top: 4px;
}

/* ── Navigation buttons ── */
#gbc-global-sidebar .gbs-nav-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    border: none;
    background: none;
    color: #94a3b8;
    padding: 9px 10px;
    border-radius: 8px;
    text-align: left;
    font-size: 13px;
    font-weight: 500;
    font-family: inherit;
    cursor: pointer;
    transition: background .15s, color .15s, border-color .15s;
    border-left: 2px solid transparent;
    box-sizing: border-box;
    line-height: 1.3;
}

#gbc-global-sidebar .gbs-nav-btn:hover {
    background: rgba(255,255,255,.05);
    color: #cbd5e1;
}

#gbc-global-sidebar .gbs-nav-btn.active {
    background: rgba(56,189,248,.1);
    color: #38bdf8;
    border-left-color: #38bdf8;
    font-weight: 600;
}

#gbc-global-sidebar .gbs-nav-icon {
    font-size: 14px;
    width: 18px;
    text-align: center;
    flex-shrink: 0;
}

/* ── Badges ── */
#gbc-global-sidebar .gbs-badge {
    margin-left: auto;
    font-size: 10px;
    font-weight: 700;
    padding: 1px 6px;
    border-radius: 999px;
    min-width: 18px;
    text-align: center;
    color: #fff;
    background: #ef4444;
}

#gbc-global-sidebar .gbs-badge-amber {
    background: #f59e0b;
    color: #0f172a;
}

/* ── Disabled / future items ── */
#gbc-global-sidebar .gbs-nav-btn.disabled {
    opacity: 0.4;
    cursor: default;
    pointer-events: none;
}

/* ── Dev tools separator ── */
#gbc-global-sidebar .gbs-dev-section {
    margin-top: 16px;
    border-top: 1px solid #3f1515;
    padding-top: 12px;
}

#gbc-global-sidebar .gbs-dev-label {
    font-size: 9px;
    letter-spacing: .15em;
    text-transform: uppercase;
    color: #6b2222;
    margin-bottom: 8px;
    padding-left: 4px;
}

#gbc-global-sidebar .gbs-dev-btn {
    width: 100%;
    border-radius: 8px;
    padding: 9px 14px;
    text-align: left;
    border: 1px solid rgba(239,68,68,.35);
    background: rgba(239,68,68,.07);
    color: #f87171;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .04em;
    cursor: pointer;
    font-family: inherit;
    transition: background .15s, border-color .15s;
}

#gbc-global-sidebar .gbs-dev-btn:hover {
    background: rgba(239,68,68,.15);
    border-color: rgba(239,68,68,.6);
}

/* ── Footer / user block ── */
#gbc-global-sidebar .gbs-footer {
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px solid #1e293b;
}

#gbc-global-sidebar .gbs-user {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px;
}

#gbc-global-sidebar .gbs-avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #1d4ed8;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
    flex-shrink: 0;
}

#gbc-global-sidebar .gbs-user-name {
    font-size: 12px;
    color: #94a3b8;
    font-weight: 500;
}

#gbc-global-sidebar .gbs-user-role {
    font-size: 11px;
    color: #475569;
}

/* ── Scrollbar inside sidebar ── */
#gbc-global-sidebar::-webkit-scrollbar {
    width: 4px;
}
#gbc-global-sidebar::-webkit-scrollbar-track {
    background: transparent;
}
#gbc-global-sidebar::-webkit-scrollbar-thumb {
    background: #1e293b;
    border-radius: 4px;
}

/* ═══════════════════════════════════════════════════════════════
   OCC SIDEBAR REFINEMENT — GBC AIR OPS
   Matches Leon-style operational seriousness.
   Square corners, dense nav, rectangular chips.
   ═══════════════════════════════════════════════════════════════ */

/* Brand block: sharp, no shadow */
#gbc-global-sidebar .gbs-brand {
    border-radius: 4px;
    box-shadow: none;
    padding: 11px 12px;
    margin-bottom: 14px;
}

#gbc-global-sidebar .gbs-brand-name  { font-size: 16px; }
#gbc-global-sidebar .gbs-brand-tag   { letter-spacing: .14em; }

/* Pills: rectangular OCC chips */
#gbc-global-sidebar .gbs-pill        { border-radius: 3px; }

/* Nav buttons: tighter */
#gbc-global-sidebar .gbs-nav-btn {
    padding: 7px 10px;
    font-size: 12.5px;
}

/* Badges: rectangular */
#gbc-global-sidebar .gbs-badge       { border-radius: 3px; }

/* Nav group labels: tighter tracking */
#gbc-global-sidebar .gbs-nav-group   { letter-spacing: .13em; padding: 8px 8px 3px; }

/* Footer: tighter */
#gbc-global-sidebar .gbs-footer      { padding-top: 10px; }
#gbc-global-sidebar .gbs-user        { padding: 6px 8px; }

/* Dev section: tighter */
#gbc-global-sidebar .gbs-dev-btn     { border-radius: 4px; }

/* ── END OCC SIDEBAR REFINEMENT ── */

/* ═══════════════════════════════════════════════════════════════
   GBC AIR OPS — GLOBAL DESIGN TOKENS
   Loaded first; Design System v2 blocks in each HTML override
   individual values. These establish the shared baseline.
   ═══════════════════════════════════════════════════════════════ */

/* Base typography normalisation (applies to all pages) */
html   { font-size: 13px; }
body   {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    -webkit-font-smoothing: antialiased;
}

/* Global table reset */
table  { border-collapse: collapse; width: 100%; }
button { cursor: pointer; font-family: inherit; }

/* Scrollbar: consistent thin dark style across all modules */
::-webkit-scrollbar       { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #1e293b; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #334155; }

/* ── END GLOBAL DESIGN TOKENS ── */

/* ═══════════════════════════════════════════════════════════════
   GBC AIR OPS — SHARED OCC COMPONENT LIBRARY
   Reusable layout primitives for all modules.
   These are BASE definitions; module-specific overrides win.
   ═══════════════════════════════════════════════════════════════ */

/* ── ops-section-header ── */
.ops-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 16px;
    background: #0f172a;
    border-bottom: 1px solid #1e293b;
    flex-shrink: 0;
}
.ops-section-header .osh-left    { display:flex; flex-direction:column; gap:2px; min-width:0; }
.ops-section-header .osh-eyebrow { font-size:9px; font-weight:700; letter-spacing:.18em; text-transform:uppercase; color:#475569; }
.ops-section-header .osh-title   { font-size:13px; font-weight:700; text-transform:uppercase; letter-spacing:.06em; color:#e2e8f0; }
.ops-section-header .osh-sub     { font-size:11px; color:#64748b; }
.ops-section-header .osh-right   { display:flex; align-items:center; gap:8px; flex-shrink:0; }

/* ── ops-toolbar ── */
.ops-toolbar {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: #020617;
    border-bottom: 1px solid #1e293b;
    flex-shrink: 0;
    flex-wrap: wrap;
}
.ops-toolbar-sep    { width:1px; height:16px; background:#1e293b; flex-shrink:0; }
.ops-toolbar-spacer { flex:1; min-width:0; }

/* ── ops-panel ── */
.ops-panel {
    border: 1px solid #1e293b;
    border-radius: 8px;
    background: #0a1628;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
.ops-panel .ops-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 9px 14px;
    background: #0f172a;
    border-bottom: 1px solid #1e293b;
    flex-shrink: 0;
}
.ops-panel .ops-panel-head .oph-title { font-size:11.5px; font-weight:700; text-transform:uppercase; letter-spacing:.06em; color:#cbd5e1; }
.ops-panel .ops-panel-head .oph-sub   { font-size:10.5px; color:#475569; margin-top:1px; }
.ops-panel .ops-panel-body            { flex:1; overflow-y:auto; padding:10px 14px; display:flex; flex-direction:column; gap:8px; }

/* ── ops-side-panel ── */
.ops-side-panel {
    width: 260px;
    min-width: 260px;
    max-width: 260px;
    flex-shrink: 0;
    background: #0f172a;
    border: 1px solid #1e293b;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
.ops-side-panel .osp-section     { border-bottom:1px solid #1e293b; flex-shrink:0; }
.ops-side-panel .osp-section:last-child { border-bottom:none; }
.ops-side-panel .osp-head        { padding:8px 12px; font-size:9.5px; font-weight:700; text-transform:uppercase; letter-spacing:.10em; color:#475569; background:#0a1628; border-bottom:1px solid #1e293b; }
.ops-side-panel .osp-body        { padding:8px 10px; display:flex; flex-direction:column; gap:4px; overflow-y:auto; }

/* ── ops-table ── */
.ops-table { width:100%; border-collapse:collapse; }
.ops-table thead th {
    padding: 7px 10px;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: #64748b;
    background: #020617;
    border-bottom: 1px solid #1e293b;
    white-space: nowrap;
    position: sticky;
    top: 0;
    z-index: 2;
}
.ops-table tbody tr   { border-bottom:1px solid rgba(30,41,59,.9); transition:background .1s; }
.ops-table tbody tr:hover { background:rgba(30,41,59,.5); }
.ops-table tbody td   { padding:7px 10px; font-size:12.5px; vertical-align:middle; color:#cbd5e1; }
/* Left-stripe severity helpers (any element) */
.ops-row-nogo { border-left:3px solid #ef4444 !important; }
.ops-row-crit { border-left:3px solid #f97316 !important; }
.ops-row-warn { border-left:3px solid #eab308 !important; }
.ops-row-ok   { border-left:3px solid #22c55e !important; }
.ops-row-info { border-left:3px solid #38bdf8 !important; }
.ops-row-dim  { opacity:.42 !important; }

/* ── ops-badge ── */
.ops-badge {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    border-radius: 3px;
    border: 1px solid;
    padding: 2px 7px;
    font-size: 9.5px;
    font-weight: 700;
    letter-spacing: .05em;
    text-transform: uppercase;
    white-space: nowrap;
}
.ops-badge-nogo    { background:rgba(239,68,68,.15);  border-color:rgba(239,68,68,.4);  color:#fca5a5; }
.ops-badge-crit    { background:rgba(249,115,22,.15); border-color:rgba(249,115,22,.4); color:#fdba74; }
.ops-badge-warn    { background:rgba(234,179,8,.15);  border-color:rgba(234,179,8,.4);  color:#fde047; }
.ops-badge-ok      { background:rgba(34,197,94,.12);  border-color:rgba(34,197,94,.35); color:#4ade80; }
.ops-badge-info    { background:rgba(14,165,233,.12); border-color:rgba(14,165,233,.35);color:#7dd3fc; }
.ops-badge-neutral { background:#1e293b; border-color:#334155; color:#94a3b8; }
.ops-badge-dim     { background:transparent; border-color:#1e293b; color:#475569; }

/* ── ops-row-item ─ compact list row ── */
.ops-row-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 7px 10px;
    border-bottom: 1px solid rgba(30,41,59,.7);
    font-size: 12px;
    transition: background .1s;
}
.ops-row-item:hover            { background:rgba(30,41,59,.45); }
.ops-row-item:last-child       { border-bottom:none; }
.ops-row-item .ori-sev         { width:3px; min-height:20px; align-self:stretch; border-radius:2px; flex-shrink:0; }
.ops-row-item .ori-body        { flex:1; min-width:0; }
.ops-row-item .ori-id          { font-size:11px; font-weight:700; color:#e2e8f0; font-variant-numeric:tabular-nums; }
.ops-row-item .ori-desc        { font-size:11.5px; color:#94a3b8; line-height:1.35; margin-top:1px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.ops-row-item .ori-meta        { font-size:10px; color:#475569; margin-top:2px; }
.ops-row-item .ori-actions     { display:flex; gap:4px; flex-shrink:0; }

/* ── Phase 3-25: Alert Badge Pulse Animation ────────────────────────── */
@keyframes gbc-bus-pulse-anim {
    0%   { transform: scale(1);   box-shadow: 0 0 0 0 rgba(239,68,68,0.7); }
    40%  { transform: scale(1.25); box-shadow: 0 0 0 6px rgba(239,68,68,0); }
    100% { transform: scale(1);   box-shadow: 0 0 0 0 rgba(239,68,68,0); }
}
#occ-alert-badge.gbc-bus-pulse {
    animation: gbc-bus-pulse-anim 0.9s ease-out;
}

/* ── END SHARED OCC COMPONENT LIBRARY ── */

/* ═══════════════════════════════════════════════════════════════
   GBC AIR OPS — COLLAPSIBLE SUBSECTION NAVIGATION
   Phase 3 OCC Domain Nav — enterprise aviation grouping.
   Adds collapsible sub-headers within domain groups.
   Scoped to #gbc-global-sidebar; no page-level interference.
   ═══════════════════════════════════════════════════════════════ */

/* ── Subsection toggle header ── */
#gbc-global-sidebar .gbs-sub-header {
    display: flex;
    align-items: center;
    width: 100%;
    border: none;
    border-top: 1px solid #131f30;
    background: none;
    color: #334155;
    padding: 7px 8px 4px;
    margin-top: 6px;
    text-align: left;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    font-family: inherit;
    cursor: pointer;
    gap: 6px;
    transition: color .12s;
    border-radius: 0;
    flex-shrink: 0;
}

#gbc-global-sidebar .gbs-sub-header:hover {
    color: #475569;
}

#gbc-global-sidebar .gbs-sub-header:first-of-type {
    border-top: none;
    margin-top: 2px;
}

/* Label takes all available width */
#gbc-global-sidebar .gbs-sub-label {
    flex: 1;
    text-align: left;
}

/* Chevron: small, muted, right-aligned */
#gbc-global-sidebar .gbs-sub-chevron {
    font-size: 8px;
    color: #1e293b;
    flex-shrink: 0;
    transition: color .12s;
}

#gbc-global-sidebar .gbs-sub-header:hover .gbs-sub-chevron {
    color: #334155;
}

/* ── Items inside a collapsible subsection ── */
#gbc-global-sidebar .gbs-sub-item {
    /* 22px left indent to create visual hierarchy under the sub-header */
    padding-left: 22px;
    font-size: 12px;
}

/* Visual connector: faint left rail for grouped sub-items */
#gbc-global-sidebar .gbs-sub-item {
    border-left: 1px solid #131f30;
    margin-left: 8px;
    border-radius: 0 4px 4px 0;
    padding-left: 18px;
}

#gbc-global-sidebar .gbs-sub-item.active {
    border-left-color: #38bdf8;
}

/* ── Hidden state (collapsed subsection) ── */
#gbc-global-sidebar .gbs-sub-hidden {
    display: none !important;
}

/* ── END COLLAPSIBLE SUBSECTION NAVIGATION ── */

/* ══════════════════════════════════════════════════════════════
   WORKSPACE NAVIGATION — Phase 4 (expandable workspace containers)
   Workspace headers act as primary nav items that expand/collapse
   their grouped child items. Scoped under #gbc-global-sidebar.
══════════════════════════════════════════════════════════════ */

/* ── Workspace header button ── */
#gbc-global-sidebar .gbs-ws-header {
    display: flex;
    align-items: center;
    width: 100%;
    border: none;
    border-radius: 5px;
    background: none;
    color: #4a6a8a;
    padding: 7px 8px 7px 10px;
    margin-top: 2px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .01em;
    font-family: inherit;
    cursor: pointer;
    gap: 7px;
    text-align: left;
    transition: color .12s, background .12s;
}

#gbc-global-sidebar .gbs-ws-header:hover {
    color: #93c5e8;
    background: rgba(14, 165, 233, .07);
}

/* Icon slot */
#gbc-global-sidebar .gbs-ws-header-icon {
    font-size: 13px;
    flex-shrink: 0;
    opacity: .75;
    line-height: 1;
}

/* Label — grows to fill available width */
#gbc-global-sidebar .gbs-ws-header-label {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Chevron — right-aligned */
#gbc-global-sidebar .gbs-ws-chevron {
    font-size: 9px;
    opacity: .4;
    flex-shrink: 0;
    margin-left: auto;
    transition: opacity .12s;
}

#gbc-global-sidebar .gbs-ws-header:hover .gbs-ws-chevron,
#gbc-global-sidebar .gbs-ws-header[aria-expanded="true"] .gbs-ws-chevron {
    opacity: .7;
}

/* ── Workspace header: active child indicator ── */
/* Applied when any child route inside this workspace is the active page */
#gbc-global-sidebar .gbs-ws-header.gbs-ws-has-active {
    color: #7dd3fc;
    background: rgba(14, 165, 233, .06);
    border-left: 2px solid rgba(56, 189, 248, .5);
    padding-left: 8px;
}

#gbc-global-sidebar .gbs-ws-header.gbs-ws-has-active .gbs-ws-header-icon {
    opacity: 1;
}

/* ── Workspace child items ── */
#gbc-global-sidebar .gbs-ws-item {
    /* Indent to create visual hierarchy under workspace header */
    padding-left: 22px;
    font-size: 11.5px;
    /* Left rail connecting item to parent */
    border-left: 1px solid #0e1e30;
    margin-left: 10px;
    border-radius: 0 4px 4px 0;
}

#gbc-global-sidebar .gbs-ws-item:hover {
    border-left-color: #1e3a55;
}

#gbc-global-sidebar .gbs-ws-item.active {
    border-left-color: #38bdf8;
}

/* ── Hidden state (collapsed workspace) ── */
#gbc-global-sidebar .gbs-ws-hidden {
    display: none !important;
}

/* ── Workspace sub-group header ── */
/* A collapsible sub-toggle that lives inside an expanded workspace.
   Visual level: between workspace header and workspace child items. */
#gbc-global-sidebar .gbs-ws-subgroup-hd {
    display: flex;
    align-items: center;
    width: 100%;
    border: none;
    border-radius: 3px;
    background: none;
    color: #2e4a66;
    padding: 5px 8px 5px 22px;
    margin-top: 3px;
    font-size: 9.5px;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    font-family: inherit;
    cursor: pointer;
    gap: 5px;
    text-align: left;
    transition: color .12s, background .12s;
}

#gbc-global-sidebar .gbs-ws-subgroup-hd:hover {
    color: #5a8aad;
    background: rgba(14, 165, 233, .05);
}

/* Label grows to fill width */
#gbc-global-sidebar .gbs-ws-sg-label {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Reuse sub-chevron from existing subsection styles */
#gbc-global-sidebar .gbs-ws-subgroup-hd .gbs-sub-chevron {
    font-size: 8px;
    color: #1e3a55;
    flex-shrink: 0;
    margin-left: auto;
}

#gbc-global-sidebar .gbs-ws-subgroup-hd:hover .gbs-sub-chevron {
    color: #4a7a9b;
}

/* ── Workspace sub-items (inside a ws-subgroup) ── */
/* Deeper indent than regular workspace children */
#gbc-global-sidebar .gbs-ws-subitem {
    padding-left: 32px;
    font-size: 11px;
    border-left: 1px solid #091624;
    margin-left: 14px;
    border-radius: 0 4px 4px 0;
}

#gbc-global-sidebar .gbs-ws-subitem:hover {
    border-left-color: #162c45;
}

#gbc-global-sidebar .gbs-ws-subitem.active {
    border-left-color: #38bdf8;
    color: #e2e8f0;
}

/* ── END WORKSPACE NAVIGATION ── */

/* ═══════════════════════════════════════════════════════════════
   GBC AIR OPS — OCC DOMAIN NAV ENHANCEMENTS (Phase 1)
   Tactical OCC command anchor + domain group differentiation.
   Scoped to #gbc-global-sidebar.
   ═══════════════════════════════════════════════════════════════ */

/* Tactical OCC: command anchor — first item, visually distinct */
#gbc-global-sidebar .gbs-nav-btn[data-nav="tactical-occ"] {
    color: #7dd3fc;
    font-weight: 600;
    border-left: 2px solid rgba(56, 189, 248, .3);
    background: rgba(56, 189, 248, .05);
    letter-spacing: .01em;
}
#gbc-global-sidebar .gbs-nav-btn[data-nav="tactical-occ"]:hover {
    background: rgba(56, 189, 248, .1);
    color: #bae6fd;
}
#gbc-global-sidebar .gbs-nav-btn[data-nav="tactical-occ"].active {
    background: rgba(56, 189, 248, .14);
    color: #38bdf8;
    border-left-color: #38bdf8;
}

/* Live Ops Command group header: slightly brighter than default (#334155) */
#gbc-global-sidebar .gbs-nav-group[data-group="live-ops-command"] {
    color: #64748b;
}

/* Planning group header: visually quieter — not shift-critical */
#gbc-global-sidebar .gbs-nav-group[data-group="planning"] {
    color: #243447;
    margin-top: 2px;
}

/* System group header: very dim, separator treatment */
#gbc-global-sidebar .gbs-nav-group[data-group="system"] {
    color: #243447;
    border-top: 1px solid #131f30;
    margin-top: 8px;
    padding-top: 10px;
}

/* ── END OCC DOMAIN NAV ENHANCEMENTS ── */

/* ═══════════════════════════════════════════════════════════════
   GBC AIR OPS — PHASE 2: SUPPORT WORKSPACE ACCESS BAR
   Adds a fixed-bottom 3-button shortcut bar. Nav content scrolls
   independently inside .gbs-nav-scroll; bar + footer never scroll.
   Scoped to #gbc-global-sidebar.
   ═══════════════════════════════════════════════════════════════ */

/* Container: stop scrolling here — scroll lives in .gbs-nav-scroll */
#gbc-global-sidebar {
    overflow-y: hidden;
}

/* Scrollable nav area: takes all remaining space, scrolls independently */
#gbc-global-sidebar .gbs-nav-scroll {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    padding-bottom: 4px;
}

/* Re-scope scrollbar styling from container to scroll wrapper */
#gbc-global-sidebar .gbs-nav-scroll::-webkit-scrollbar       { width: 4px; }
#gbc-global-sidebar .gbs-nav-scroll::-webkit-scrollbar-track { background: transparent; }
#gbc-global-sidebar .gbs-nav-scroll::-webkit-scrollbar-thumb { background: #1e293b; border-radius: 4px; }
#gbc-global-sidebar .gbs-nav-scroll::-webkit-scrollbar-thumb:hover { background: #334155; }

/* Footer: no longer needs margin-top:auto — scroll container handles the push */
#gbc-global-sidebar .gbs-footer {
    margin-top: 0;
}

/* Support Access Bar: sits between scroll area and footer, never scrolls */
#gbc-global-sidebar .gbs-support-bar {
    flex-shrink: 0;
    padding: 8px 0 6px;
    border-top: 1px solid #1e293b;
}

#gbc-global-sidebar .gbs-support-bar-label {
    font-size: 9px;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: #334155;
    font-weight: 700;
    padding: 0 4px 5px;
}

#gbc-global-sidebar .gbs-support-bar-btns {
    display: flex;
    gap: 4px;
}

#gbc-global-sidebar .gbs-support-btn {
    flex: 1;
    padding: 5px 2px;
    background: #0f1f35;
    border: 1px solid #1e3a5f;
    border-radius: 6px;
    color: #64748b;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: .02em;
    text-align: center;
    cursor: pointer;
    transition: background .12s, border-color .12s, color .12s;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.4;
}

#gbc-global-sidebar .gbs-support-btn:hover {
    background: #162c45;
    border-color: #2d5a8a;
    color: #94a3b8;
}

#gbc-global-sidebar .gbs-support-btn:active {
    background: #1a3554;
    color: #bae6fd;
}

/* ═══════════════════════════════════════════════════════════════
   SESSION-CONTROLS FOOTER HARDENING (Sign Out / Switch User)
   Fixes footer clipping + the stray blue line at the sidebar bottom
   after the session controls were added. Layout-only; no markup or
   session-logic change.
   ═══════════════════════════════════════════════════════════════ */

/* Brand and footer are fixed (non-shrinking) flex items: the scrollable
   nav area (.gbs-nav-scroll, flex:1) is the ONLY thing that yields space,
   so the footer controls can never be compressed or clipped by the
   sidebar's overflow:hidden — even on short viewports. */
#gbc-global-sidebar .gbs-brand  { flex-shrink: 0; }
#gbc-global-sidebar .gbs-footer {
    flex-shrink: 0;
    /* Safe bottom breathing room so the last control (Sign Out / Switch
       User / Sign In) never sits flush against the viewport edge, which is
       what made its hover border read as a thin blue line at the bottom. */
    padding-bottom: 10px;
}

/* Footer controls render as full-width stacked items; border-box + max-width
   guarantee the 100%-width buttons/links can never push horizontal overflow. */
#gbc-global-sidebar .gbs-footer button,
#gbc-global-sidebar .gbs-footer a {
    box-sizing: border-box;
    max-width: 100%;
}

/* Keyboard focus stays clearly visible but is INSET (outline-offset:-2px) so
   the ring is painted inside the control and can never render as a full-width
   line at the clipped page edge. Scoped to footer controls only — the global
   UA focus outline is left intact everywhere else (accessibility preserved).
   :focus-visible means a plain mouse click shows no ring (no blue flash). */
#gbc-global-sidebar .gbs-footer button:focus-visible,
#gbc-global-sidebar .gbs-footer a:focus-visible {
    outline: 2px solid #38bdf8;
    outline-offset: -2px;
    border-radius: 6px;
}

/* ── END PHASE 2: SUPPORT ACCESS BAR ── */

/* ═══════════════════════════════════════════════════════════════
   GBC AIR OPS — PHASE 3: GLOBAL ACTION BAR
   Inline header strip. Injected by gbc_sidebar.js into the top
   Context Bar (#gbc-context-bar .gcb-right), beside the user/role
   pill. Flows with the header flex layout — NEVER fixed/floating,
   so it can never overlay page content, panels, drawers, approval
   buttons, audit history or bottom forms. Stacking is inherited
   from the Context Bar (z-index 9200): above normal header content,
   while modals/drawers (full-screen overlays) sit above it.
   ═══════════════════════════════════════════════════════════════ */

#gbc-action-bar {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;          /* single row — Context Bar is a fixed 36px height */
    align-items: center;
    justify-content: flex-end;
    gap: 2px;
    /* Inline within the 36px Context Bar header — no fixed positioning,
       no card chrome (background/border/shadow handled by the header). */
    margin-right: 10px;
    padding: 0;
    background: none;
    border: none;
    border-radius: 0;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    -webkit-font-smoothing: antialiased;
}

.gab-btn {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 4px 8px;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 6px;
    color: #64748b;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    transition: background .12s, border-color .12s, color .12s;
    white-space: nowrap;
    letter-spacing: .01em;
    line-height: 1;
}

.gab-btn:hover {
    background: rgba(255,255,255,.06);
    border-color: #334155;
    color: #94a3b8;
}

.gab-btn:active {
    background: rgba(255,255,255,.1);
    color: #e2e8f0;
}

.gab-icon {
    font-size: 13px;
    line-height: 1;
    flex-shrink: 0;
}

.gab-label {
    font-size: 10.5px;
    font-weight: 600;
}

/* Declare IRROPS: urgent action — amber highlight */
.gab-btn-urgent {
    color: #f59e0b;
    border-color: rgba(245,158,11,.25);
    background: rgba(245,158,11,.07);
}
.gab-btn-urgent:hover {
    background: rgba(245,158,11,.13);
    border-color: rgba(245,158,11,.45);
    color: #fbbf24;
}
.gab-btn-urgent:active {
    background: rgba(245,158,11,.2);
    color: #fde68a;
}

/* Divider between IRROPS and the rest */
.gab-btn-urgent + .gab-btn {
    margin-left: 4px;
    border-left: 1px solid #1e293b;
    padding-left: 14px;
}

/* Compact: drop labels to keep the header strip on one row on
   narrower viewports (icon-only buttons). */
@media (max-width: 1100px) {
    #gbc-action-bar { gap: 1px; margin-right: 6px; }
    .gab-btn { padding: 5px 7px; gap: 0; }
    .gab-label { display: none; }
    /* Reduce divider spacing once labels are hidden */
    .gab-btn-urgent + .gab-btn {
        margin-left: 2px;
        padding-left: 8px;
    }
}

/* Mobile: tightest icon-only footprint. The Context Bar's own <=768px
   rule already hides brand, clocks, stat labels and the user chip, so
   the icon-only action strip fits on one row without overflowing. */
@media (max-width: 768px) {
    #gbc-action-bar { margin-right: 4px; gap: 0; }
    .gab-btn { padding: 5px 6px; }
    .gab-btn-urgent + .gab-btn { margin-left: 1px; padding-left: 7px; }
}

/* ── END PHASE 3: GLOBAL ACTION BAR ── */

/* ═══════════════════════════════════════════════════════════════
   GBC AIR OPS — PHASE 5: OPS LOG QUICK-ENTRY DRAWER
   Slides up above Global Action Bar. Fixed, no modal framework.
   Z-index 9110 — above action bar (9100). Prefix: god-
   ═══════════════════════════════════════════════════════════════ */

#gbc-ops-drawer {
    position: fixed;
    bottom: 84px;        /* clears action bar (~60px) + 24px base + gap */
    right: 24px;
    width: 308px;
    background: #080f1e;
    border: 1px solid #1e3a5f;
    border-radius: 12px;
    box-shadow: 0 20px 56px rgba(0,0,0,.7), 0 4px 14px rgba(0,0,0,.4);
    z-index: 9110;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    -webkit-font-smoothing: antialiased;
    /* Closed state */
    opacity: 0;
    transform: translateY(14px);
    visibility: hidden;
    pointer-events: none;
    transition: opacity .17s ease, transform .17s ease, visibility 0s linear .17s;
}

#gbc-ops-drawer.god--open {
    opacity: 1;
    transform: translateY(0);
    visibility: visible;
    pointer-events: auto;
    transition: opacity .17s ease, transform .17s ease, visibility 0s linear 0s;
}

/* ── Header ── */
.god-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 11px 14px 9px;
    border-bottom: 1px solid #0f2540;
}

.god-title {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: #7dd3fc;
}

.god-close {
    background: none;
    border: none;
    color: #334155;
    font-size: 14px;
    cursor: pointer;
    padding: 2px 6px;
    border-radius: 4px;
    line-height: 1;
    transition: color .1s, background .1s;
}
.god-close:hover {
    color: #94a3b8;
    background: rgba(255,255,255,.06);
}

/* ── Form ── */
.god-form {
    padding: 12px 14px 14px;
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.god-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.god-field {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.god-field label {
    font-size: 9.5px;
    font-weight: 700;
    letter-spacing: .09em;
    text-transform: uppercase;
    color: #334155;
}

.god-field select,
.god-field input[type="text"],
.god-field textarea {
    background: #0c1e38;
    border: 1px solid #1e3a5f;
    border-radius: 6px;
    color: #cbd5e1;
    font-size: 12px;
    font-family: inherit;
    padding: 6px 9px;
    outline: none;
    width: 100%;
    box-sizing: border-box;
    transition: border-color .12s, color .12s;
    -webkit-appearance: none;
    appearance: none;
}

.god-field select:focus,
.god-field input[type="text"]:focus,
.god-field textarea:focus {
    border-color: #38bdf8;
    color: #e2e8f0;
}

.god-field select option { background: #0c1e38; }

.god-field textarea {
    resize: vertical;
    min-height: 60px;
    line-height: 1.5;
}

.god-field input[type="text"]::placeholder,
.god-field textarea::placeholder { color: #1e3a5f; }

/* ── Submit ── */
.god-actions { padding-top: 1px; }

.god-submit {
    width: 100%;
    padding: 9px;
    background: #0c4a6e;
    border: 1px solid #0369a1;
    border-radius: 7px;
    color: #7dd3fc;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .05em;
    cursor: pointer;
    font-family: inherit;
    transition: background .12s, border-color .12s, color .12s;
}
.god-submit:hover {
    background: #075985;
    border-color: #0284c7;
    color: #bae6fd;
}
.god-submit:active {
    background: #0369a1;
    color: #e0f2fe;
}

/* ── Mobile ── */
@media (max-width: 768px) {
    #gbc-ops-drawer {
        right: 14px;
        left: 14px;
        width: auto;
        bottom: 72px;
    }
}

/* ── END PHASE 5: OPS LOG QUICK-ENTRY DRAWER ── */

/* ═══════════════════════════════════════════════════════════════
   GBC AIR OPS — PHASE 4: PERSISTENT CONTEXT BAR
   Fixed top bar, 36px. Z-index 9200 — above sidebar (9000),
   action bar (9100), and ops drawer (9110). Prefix: gcb-
   ═══════════════════════════════════════════════════════════════ */

#gbc-context-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 36px;
    z-index: 9200;
    background: #020b18;
    border-bottom: 1px solid #0f2540;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
    box-sizing: border-box;
    gap: 16px;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    -webkit-font-smoothing: antialiased;
    user-select: none;
}

/* ── Push all page content below the fixed bar ── */
body.gbc-has-context-bar {
    padding-top: 36px;
    box-sizing: border-box;
}

/* Compensate height-constrained shell so nothing overflows viewport */
body.gbc-has-context-bar .gbc-app-shell {
    height: calc(100vh - 36px);
    min-height: calc(100vh - 36px);
}
body.gbc-has-context-bar #gbc-global-sidebar {
    height: calc(100vh - 36px);
}
body.gbc-has-context-bar .gbc-main-content {
    height: calc(100vh - 36px);
}

/* ── Left: brand mark + clocks ── */
.gcb-left {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.gcb-brand-mark {
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: #38bdf8;
    white-space: nowrap;
}

.gcb-sep {
    width: 1px;
    height: 14px;
    background: #1e293b;
    flex-shrink: 0;
}

.gcb-clock {
    font-size: 11px;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    font-family: 'SF Mono', 'Fira Code', 'Consolas', monospace;
    color: #e2e8f0;
    letter-spacing: .04em;
    white-space: nowrap;
}
.gcb-clock-lcl {
    color: #475569;
}

/* ── Centre: operational stat chips ── */
.gcb-center {
    display: flex;
    align-items: center;
    gap: 2px;
    flex: 1;
    justify-content: center;
}

.gcb-stat {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 3px 9px;
    border-radius: 5px;
    border: 1px solid transparent;
    transition: background .15s, border-color .15s;
}

.gcb-stat-icon {
    font-size: 11px;
    color: #243447;
    line-height: 1;
}
.gcb-stat-label {
    font-size: 9px;
    font-weight: 700;
    letter-spacing: .09em;
    text-transform: uppercase;
    color: #243447;
}
.gcb-stat-val {
    font-size: 11px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    color: #334155;
    min-width: 14px;
    text-align: right;
}

/* IRROPS — red alert when count > 0 */
.gcb-stat-irrops.gcb-stat--alert {
    background: rgba(239,68,68,.08);
    border-color: rgba(239,68,68,.2);
}
.gcb-stat-irrops.gcb-stat--alert .gcb-stat-icon,
.gcb-stat-irrops.gcb-stat--alert .gcb-stat-label { color: #f87171; }
.gcb-stat-irrops.gcb-stat--alert .gcb-stat-val   { color: #fca5a5; font-weight: 800; }

/* Decision Queue — blue active when count > 0 */
.gcb-stat--active .gcb-stat-icon,
.gcb-stat--active .gcb-stat-label { color: #3b82f6; }
.gcb-stat--active .gcb-stat-val   { color: #60a5fa; }

/* ── Right: user / role chip ── */
.gcb-right {
    flex-shrink: 0;
    display: flex;
    align-items: center;
}

.gcb-user-chip {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .04em;
    color: #334155;
    padding: 3px 10px;
    background: rgba(255,255,255,.02);
    border: 1px solid #131f30;
    border-radius: 99px;
    white-space: nowrap;
}

/* ── Mobile: strip to essentials only ── */
@media (max-width: 768px) {
    #gbc-context-bar { padding: 0 10px; gap: 8px; }
    .gcb-brand-mark,
    .gcb-sep,
    .gcb-clock-lcl,
    .gcb-stat-label,
    .gcb-user-chip  { display: none; }
    .gcb-stat       { padding: 3px 6px; }
    .gcb-stat-val   { font-size: 10px; }
}

/* ── END PHASE 4: PERSISTENT CONTEXT BAR ── */

/* ═══════════════════════════════════════════════════════════════
   GBC AIR OPS — PHASE 6: DECISION QUEUE OVERLAY
   Floating panel triggered by DQ chip in the Context Bar.
   Z-index 9300 — above context bar (9200). Prefix: gdq-
   ═══════════════════════════════════════════════════════════════ */

#gbc-dq-overlay {
    position: fixed;
    top: 42px;                   /* 36px context bar + 6px gap */
    right: 16px;
    width: 540px;
    max-height: calc(100vh - 60px);
    background: #080f1e;
    border: 1px solid #1e3a5f;
    border-radius: 12px;
    box-shadow: 0 24px 64px rgba(0,0,0,.72), 0 4px 16px rgba(0,0,0,.4);
    z-index: 9300;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    -webkit-font-smoothing: antialiased;
    /* Closed state */
    opacity: 0;
    transform: translateY(-10px);
    visibility: hidden;
    pointer-events: none;
    transition: opacity .17s ease, transform .17s ease, visibility 0s linear .17s;
}

#gbc-dq-overlay.gdq--open {
    opacity: 1;
    transform: translateY(0);
    visibility: visible;
    pointer-events: auto;
    transition: opacity .17s ease, transform .17s ease, visibility 0s linear 0s;
}

/* ── Header ── */
.gdq-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 11px 14px 10px;
    border-bottom: 1px solid #0f2540;
    flex-shrink: 0;
}

.gdq-title {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: #60a5fa;
}

.gdq-header-actions {
    display: flex;
    align-items: center;
    gap: 4px;
}

.gdq-expand-btn,
.gdq-close {
    background: none;
    border: none;
    color: #334155;
    font-size: 14px;
    cursor: pointer;
    padding: 3px 6px;
    border-radius: 4px;
    line-height: 1;
    transition: color .1s, background .1s;
}
.gdq-expand-btn:hover,
.gdq-close:hover {
    color: #94a3b8;
    background: rgba(255,255,255,.06);
}

/* ── Scrollable content area ── */
.gdq-content {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 12px 14px;
    min-height: 120px;
}

.gdq-content::-webkit-scrollbar       { width: 4px; }
.gdq-content::-webkit-scrollbar-track { background: transparent; }
.gdq-content::-webkit-scrollbar-thumb { background: #1e293b; border-radius: 4px; }

/* ── Fallback state (when DQ panel API unavailable) ── */
.gdq-fallback {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    padding: 32px 16px;
    text-align: center;
}

.gdq-fallback-msg {
    font-size: 12px;
    color: #475569;
    line-height: 1.5;
}

.gdq-fallback-btn {
    padding: 9px 20px;
    background: #0c4a6e;
    border: 1px solid #0369a1;
    border-radius: 7px;
    color: #7dd3fc;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .05em;
    cursor: pointer;
    font-family: inherit;
    transition: background .12s, border-color .12s, color .12s;
}
.gdq-fallback-btn:hover {
    background: #075985;
    border-color: #0284c7;
    color: #bae6fd;
}

/* DQ stat chip: pointer cursor when overlay is wired */
#gcb-dq-wrap {
    cursor: pointer;
    transition: background .12s, border-color .12s;
}
#gcb-dq-wrap:hover {
    background: rgba(59,130,246,.08);
    border-color: rgba(59,130,246,.2);
}

/* ── Mobile: full-width, flush below context bar ── */
@media (max-width: 768px) {
    #gbc-dq-overlay {
        top: 42px;
        right: 0;
        left: 0;
        width: 100%;
        border-radius: 0 0 12px 12px;
        max-height: calc(100vh - 50px);
    }
}

/* ── END PHASE 6: DECISION QUEUE OVERLAY ── */

/* ═══════════════════════════════════════════════════════════════
   GBC AIR OPS — PHASE 7: ALERT BADGES + URGENCY NAV
   Live count badges on group headers and key nav items.
   Pulse animation for critical states. Prefix: gab-
   ═══════════════════════════════════════════════════════════════ */

/* Group headers need flex to push badge to right edge */
#gbc-global-sidebar .gbs-nav-group {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* ── Group header badge ── */
.gbs-group-badge {
    font-size: 9px;
    font-weight: 800;
    line-height: 1;
    padding: 2px 6px;
    border-radius: 999px;
    background: rgba(239,68,68,.12);
    color: #f87171;
    border: 1px solid rgba(239,68,68,.22);
    min-width: 16px;
    text-align: center;
    letter-spacing: 0;
    flex-shrink: 0;
}

/* ── Dynamic nav-item badge (IRROPS, DQ) ── */
.gbs-badge-dyn {
    font-size: 9.5px;
    font-weight: 800;
    padding: 1px 5px;
    border-radius: 999px;
    min-width: 16px;
    text-align: center;
    background: rgba(239,68,68,.15);
    color: #f87171;
    border: 1px solid rgba(239,68,68,.28);
    letter-spacing: 0;
    margin-left: auto;
}

/* DQ badge — blue (informational, not critical) */
.gbs-badge-blue {
    background: rgba(59,130,246,.12);
    color: #60a5fa;
    border-color: rgba(59,130,246,.22);
}

/* ── Critical state: deeper red + glow ── */
.gbs-badge--critical {
    background: rgba(239,68,68,.22);
    color: #fca5a5;
    border-color: rgba(239,68,68,.4);
    box-shadow: 0 0 5px rgba(239,68,68,.28);
}

/* ── Pulse animation for high-severity critical badges ── */
@keyframes gbs-badge-pulse {
    0%, 100% { opacity: 1; }
    50%       { opacity: .28; }
}

.gbs-group-badge--pulse {
    animation: gbs-badge-pulse 1.5s ease-in-out infinite;
}

/* ── END PHASE 7: ALERT BADGES + URGENCY NAV ── */

/* ═══════════════════════════════════════════════════════════════
   GBC AIR OPS — PHASE 8: MINI TIMELINE STRIP
   6h rolling read-only flight block visualization.
   Fixed below Context Bar, spanning the main content area only
   (left: 240px so it never overlaps the sidebar).
   Prefix: gmt-
   ═══════════════════════════════════════════════════════════════ */

/* ── Container ── */
#gbc-mini-timeline {
    position: fixed;
    top: 36px;                /* flush below context bar                */
    left: 240px;              /* starts at sidebar right edge            */
    right: 0;
    height: 28px;
    z-index: 9150;            /* above action bar (9100), below ctx (9200) */
    background: #060e1c;
    border-bottom: 1px solid #1a2540;
    box-sizing: border-box;
    overflow: hidden;
    display: none;            /* hidden by default; .gmt--visible shows it */
}

#gbc-mini-timeline.gmt--visible {
    display: block;
}

/* ── Layout compensation when timeline is active ── */
/* Adds 28px to the existing 36px context-bar offset.
   Sidebar height is intentionally NOT reduced here — the sidebar
   occupies the left 240px column which the timeline does not cover. */
body.gbc-has-context-bar.gbc-has-timeline {
    padding-top: calc(36px + 28px);
}
body.gbc-has-context-bar.gbc-has-timeline .gbc-app-shell {
    height: calc(100vh - 64px);
    min-height: calc(100vh - 64px);
}
body.gbc-has-context-bar.gbc-has-timeline .gbc-main-content {
    height: calc(100vh - 64px);
}

/* ── Rail (full-size positioning context inside the strip) ── */
.gmt-rail {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

/* ── Hour tick marks ── */
.gmt-tick {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 1px;
    background: rgba(30, 41, 59, 0.7);
    pointer-events: none;
}
.gmt-tick::after {
    content: attr(data-time);
    position: absolute;
    top: 2px;
    left: 2px;
    font-size: 7.5px;
    color: #334155;
    white-space: nowrap;
    font-family: 'SF Mono', 'Consolas', monospace;
    line-height: 1;
    pointer-events: none;
}

/* ── NOW vertical marker ── */
.gmt-now {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 1px;
    background: rgba(248, 250, 252, 0.28);
    z-index: 2;
    pointer-events: none;
}
.gmt-now::before {
    content: 'NOW';
    position: absolute;
    top: 2px;
    left: 3px;
    font-size: 6.5px;
    font-weight: 800;
    color: rgba(248, 250, 252, 0.3);
    letter-spacing: 0.05em;
    font-family: -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1;
}

/* ── Flight block base ── */
.gmt-block {
    position: absolute;
    top: 5px;
    height: 16px;
    border-radius: 3px;
    min-width: 3px;
    cursor: default;
    z-index: 1;
    transition: opacity 0.1s;
}
.gmt-block:hover {
    opacity: 0.72;
    z-index: 3;
}

/* Nominal — blue */
.gmt-block-nominal {
    background: rgba(56, 189, 248, 0.2);
    border: 1px solid rgba(56, 189, 248, 0.35);
}

/* Delayed — amber */
.gmt-block-delayed {
    background: rgba(251, 191, 36, 0.2);
    border: 1px solid rgba(251, 191, 36, 0.38);
}

/* IRROPS / Critical — red */
.gmt-block-irrops {
    background: rgba(239, 68, 68, 0.26);
    border: 1px solid rgba(239, 68, 68, 0.45);
}

/* ── Mobile: suppress entirely; restore normal context-bar offsets ── */
@media (max-width: 768px) {
    #gbc-mini-timeline {
        display: none !important;
    }
    body.gbc-has-context-bar.gbc-has-timeline {
        padding-top: 36px;
    }
    body.gbc-has-context-bar.gbc-has-timeline .gbc-app-shell {
        height: calc(100vh - 36px);
        min-height: calc(100vh - 36px);
    }
    body.gbc-has-context-bar.gbc-has-timeline .gbc-main-content {
        height: calc(100vh - 36px);
    }
}

/* ── END PHASE 8: MINI TIMELINE STRIP ── */

/* ── VERUM LOGO INTEGRATION — Brand Card ─────────────────────────── */
#gbc-global-sidebar .gbs-brand {
    border-radius: 4px;
    box-shadow: none;
    padding: 12px 14px;
}
#gbc-global-sidebar .gbs-brand-identity {
    display: flex;
    align-items: center;
    gap: 10px;
}
#gbc-global-sidebar .gbs-brand-logo {
    width: 36px;
    height: 36px;
    object-fit: contain;
    flex-shrink: 0;
    display: block;
}
#gbc-global-sidebar .gbs-brand-text {
    display: flex;
    flex-direction: column;
    min-width: 0;
}
#gbc-global-sidebar .gbs-brand-name {
    font-size: 15px;
    margin-top: 2px;
}
/* ── END VERUM LOGO INTEGRATION ─────────────────────────────────── */

/* ═══════════════════════════════════════════════════════════════
   GBC AIR OPS — SIDEBAR UX REFINEMENT (OCC scan / density pass)
   Additive only. No geometry/layout-shifting changes — tweaks
   group hierarchy, active-state legibility, and icon weight so the
   nav reads like an OCC console. Scoped to #gbc-global-sidebar.
   Dark theme preserved. Appended last so it overrides cleanly and
   is trivially reversible.
   ═══════════════════════════════════════════════════════════════ */

/* Group hierarchy: hairline rule above each domain group so the eye
   can parse the section boundaries quickly during a shift. Palette
   (dim slate) is unchanged — only separation is added. The first
   group (Live Ops Command) sits flush under the brand card. */
#gbc-global-sidebar .gbs-nav-group {
    border-top: 1px solid #131f30;
    margin-top: 10px;
    padding-top: 9px;
}
#gbc-global-sidebar .gbs-brand + .gbs-nav-group {
    border-top: none;
    margin-top: 2px;
    padding-top: 4px;
}

/* Active item: stronger, more legible OCC selection state. Background
   tint + brighter label + accent left rail (geometry already reserved
   by the existing 2px transparent border — no row shift). */
#gbc-global-sidebar .gbs-nav-btn.active {
    background: rgba(56,189,248,.13);
    color: #bae6fd;
    border-left-color: #38bdf8;
}
#gbc-global-sidebar .gbs-nav-btn.active .gbs-nav-icon {
    opacity: 1;
}

/* Icon weight normalisation: glyph and emoji icons sit at a consistent
   muted level when idle, lifting on hover/active for clear affordance. */
#gbc-global-sidebar .gbs-nav-icon {
    opacity: .82;
}
#gbc-global-sidebar .gbs-nav-btn:hover .gbs-nav-icon {
    opacity: 1;
}

/* Badge readability: marginally tighter tracking so 2–3 digit counts
   stay crisp inside the rounded chip. */
#gbc-global-sidebar .gbs-badge {
    letter-spacing: .01em;
}
/* ── END SIDEBAR UX REFINEMENT ──────────────────────────────────── */

/* ═══════════════════════════════════════════════════════════════
   [S2-TRIP-3] COLLAPSIBLE GLOBAL NAVIGATION — compact icon rail

   The nav is never removed, only compacted, so an OCC controller can hand
   the horizontal space to the working surfaces (Schedule List / Rotation
   Board, the full-width EDIT TRIP manifest, the docked Flight Workspace)
   and bring it straight back. State = `body.gbs-rail-collapsed`, written by
   gbc_sidebar.js from the existing `gbs-*` preference family.

   Covered layouts: the `.gbc-app-shell` GRID pages (OCC Dashboard and the
   rest) and the flex page shells (Schedules V2, Sales V2, …) — the rail
   width is applied to the sidebar itself AND to the grid template, so no
   page markup changes.

   ONLY the navigation collapses. No functional page content is hidden.
   ═══════════════════════════════════════════════════════════════ */

/* ── The toggle — always visible, in both states ── */
#gbc-global-sidebar .gbs-rail-toggle {
    position: absolute;
    top: 10px;
    right: 8px;
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #0f172a;
    border: 1px solid #1e293b;
    border-radius: 6px;
    color: #94a3b8;
    font-size: 11px;
    font-weight: 800;
    line-height: 1;
    cursor: pointer;
    z-index: 2;
    font-family: inherit;
}
#gbc-global-sidebar .gbs-rail-toggle:hover { color: #e2e8f0; border-color: #334155; background: #16304f; }
#gbc-global-sidebar .gbs-rail-toggle:focus-visible { outline: 2px solid #3b82f6; outline-offset: 1px; }
#gbc-global-sidebar .gbs-brand { position: relative; }

/* ── Collapsed rail ── */
body.gbs-rail-collapsed #gbc-global-sidebar {
    width: 64px;
    min-width: 64px;
    max-width: 64px;
    padding: 16px 6px;
}
/* Grid shells (.gbc-app-shell) must release the column too. */
body.gbs-rail-collapsed .gbc-app-shell { grid-template-columns: 64px 1fr; }

/* Brand shrinks to the logo; the toggle stays reachable. */
body.gbs-rail-collapsed #gbc-global-sidebar .gbs-brand {
    padding: 8px 4px 30px;
    margin-bottom: 12px;
    text-align: center;
}
body.gbs-rail-collapsed #gbc-global-sidebar .gbs-brand-text,
body.gbs-rail-collapsed #gbc-global-sidebar .gbs-brand-pills,
body.gbs-rail-collapsed #gbc-global-sidebar .gbs-nav-label,
body.gbs-rail-collapsed #gbc-global-sidebar .gbs-nav-group,
body.gbs-rail-collapsed #gbc-global-sidebar .gbs-sub-label,
body.gbs-rail-collapsed #gbc-global-sidebar .gbs-sub-chevron,
body.gbs-rail-collapsed #gbc-global-sidebar .gbs-ws-sg-label,
body.gbs-rail-collapsed #gbc-global-sidebar .gbs-support-bar-label,
body.gbs-rail-collapsed #gbc-global-sidebar .gbs-dev-section,
body.gbs-rail-collapsed #gbc-global-sidebar .gbs-footer { display: none; }
body.gbs-rail-collapsed #gbc-global-sidebar .gbs-rail-toggle { right: 50%; transform: translateX(50%); top: auto; bottom: 6px; }
body.gbs-rail-collapsed #gbc-global-sidebar .gbs-brand-identity { justify-content: center; }
body.gbs-rail-collapsed #gbc-global-sidebar .gbs-brand-logo { margin: 0 auto; }

/* Items become centred icons. The ACTIVE MODULE INDICATOR is preserved —
   `.active` keeps its background and gains an explicit left accent bar so
   the current module is unmistakable at rail width. */
body.gbs-rail-collapsed #gbc-global-sidebar .gbs-nav-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    padding: 9px 0;
    text-align: center;
    position: relative;
}
body.gbs-rail-collapsed #gbc-global-sidebar .gbs-nav-btn .gbs-nav-icon {
    margin: 0;
    font-size: 15px;
}
body.gbs-rail-collapsed #gbc-global-sidebar .gbs-nav-btn.active::before {
    content: '';
    position: absolute;
    left: 0; top: 6px; bottom: 6px;
    width: 3px;
    border-radius: 0 2px 2px 0;
    background: #3b82f6;
}
/* Badges shrink to a corner dot rather than disappearing — an operator must
   never lose an alert count because the nav is compact. */
body.gbs-rail-collapsed #gbc-global-sidebar .gbs-badge,
body.gbs-rail-collapsed #gbc-global-sidebar .gbs-group-badge,
body.gbs-rail-collapsed #gbc-global-sidebar #occ-alert-badge,
body.gbs-rail-collapsed #gbc-global-sidebar #lm-nav-badge {
    position: absolute;
    top: 3px; right: 6px;
    margin-left: 0 !important;
    min-width: 8px !important;
    height: 8px !important;
    padding: 0 !important;
    border-radius: 50% !important;
    font-size: 0 !important;
    overflow: hidden;
}
/* Sub-headers / workspace headers collapse to a divider — their children stay
   reachable because the rail shows every permitted item as an icon. */
body.gbs-rail-collapsed #gbc-global-sidebar .gbs-sub-header,
body.gbs-rail-collapsed #gbc-global-sidebar .gbs-ws-header,
body.gbs-rail-collapsed #gbc-global-sidebar .gbs-ws-subgroup-hd {
    justify-content: center;
    padding: 4px 0;
    opacity: .5;
}
body.gbs-rail-collapsed #gbc-global-sidebar .gbs-support-bar-btns { flex-direction: column; gap: 4px; }
body.gbs-rail-collapsed #gbc-global-sidebar .gbs-support-btn {
    font-size: 0;
    padding: 6px 0;
    text-align: center;
}
body.gbs-rail-collapsed #gbc-global-sidebar .gbs-support-btn::first-letter { font-size: 14px; }
