/* MIOS post-deploy CSS overrides — injected via nginx sub_filter.
 * Survives all dist deploys because it's served separately and injected on the fly.
 * 2026-06-11: Sticky Track sub-nav fix.
 */

/* Make the Track sub-nav (LISTENING/ACCOUNTS/ENGAGEMENT/etc.) stick while feed scrolls. */
.track-subnav {
  position: sticky !important;
  top: 0 !important;
  align-self: flex-start !important;
  max-height: 100vh !important;
  overflow-y: auto !important;
  overscroll-behavior: contain;
  /* dark scrollbar to match theme */
  scrollbar-width: thin;
  scrollbar-color: rgba(251,191,36,0.3) transparent;
}
.track-subnav::-webkit-scrollbar { width: 6px; }
.track-subnav::-webkit-scrollbar-thumb { background: rgba(251,191,36,0.3); border-radius: 3px; }
.track-subnav::-webkit-scrollbar-track { background: transparent; }

/* ═══════════════════════════════════════════════════════════════════════════
   UNIFIED TOPBAR (2026-06-28) — ONE single-line bar that never wraps or crops,
   identical on a MacBook or any width.
     · NO search box (Ctrl/Cmd+K still opens the palette from the keyboard)
     · compact health status on the left
     · Tenant · LIVE · AI Analyst · Operator  =  ONE identical pill style
     · MIOS · INTELLIGENCE OS brand kept at the far-right corner
   Selectors scoped under .mios-app-shell (specificity 0,2,0+) so they BEAT every
   accumulated shell.css `.mios-topbar` rule + container-query REGARDLESS of
   stylesheet load order. overflow stays visible so the Tenant / Operator
   dropdowns are never clipped. Fixed height = it physically cannot wrap.
   ═══════════════════════════════════════════════════════════════════════════ */
.mios-app-shell .mios-topbar {
  display: flex !important;
  grid-template-columns: none !important;        /* kill the grid + the 980px 1fr stack-query */
  align-items: center !important;
  flex-wrap: nowrap !important;                  /* never a second row */
  overflow: visible !important;                  /* dropdowns must escape the bar */
  gap: 10px !important;
  height: 56px !important;
  min-height: 56px !important;
  max-height: 56px !important;                   /* fixed height = can never become 2 lines */
  padding: 0 18px !important;
}
/* removed entirely: search · per-field filters · TRUST/TRACK chips · status strip below */
.mios-app-shell .mios-topbar__searchwrap,
.mios-app-shell .mios-topbar__field,
.mios-app-shell .mios-topbar__chip { display: none !important; }
.mios-app-shell__main > .mios-status-strip { display: none !important; }

/* health status · left · shrinks first (down to nothing) and shoves controls right */
.mios-app-shell .tk-topbar-status {
  flex: 0 1 auto !important; min-width: 0 !important; overflow: hidden !important;
  margin-right: auto !important; display: flex !important; align-items: center !important;
}
.mios-app-shell .tk-topbar-status .tk-ts-item {
  display: inline-flex !important; align-items: baseline; gap: 5px;
  padding: 0 12px 0 0; white-space: nowrap; border-right: none;
}
.mios-app-shell .tk-topbar-status .tk-ts-item:nth-child(n+4) { display: none !important; }
.mios-app-shell .tk-topbar-status .tk-ts-label {
  font: 700 9px "Inter", system-ui, sans-serif; letter-spacing: .13em;
  color: var(--mios-text-2, #737373); text-transform: uppercase;
}
.mios-app-shell .tk-topbar-status .tk-ts-val {
  font: 600 11px "JetBrains Mono", "Inter Tight", monospace; color: var(--mios-text-0, #e8eef8);
}
.mios-app-shell .tk-topbar-status .tk-ts-val--crit { color: #ef4444 !important; }
.mios-app-shell .tk-topbar-status .tk-ts-dot {
  width: 7px; height: 7px; border-radius: 50%; background: #22c55e;
  box-shadow: 0 0 7px #22c55e; flex: none; margin-right: 2px;
  animation: tk-ts-pulse 2s ease-in-out infinite;
}
@keyframes tk-ts-pulse { 0%,100% { opacity: .6 } 50% { opacity: 1 } }

/* right cluster · one fixed row, never wraps, never crops */
.mios-app-shell .mios-topbar__controls {
  flex: 0 0 auto !important; display: flex !important; align-items: center !important;
  flex-wrap: nowrap !important; overflow: visible !important; gap: 8px !important;
  width: auto !important; min-width: 0 !important;
}
.mios-app-shell .mios-topbar__chips {
  display: flex !important; align-items: center !important; gap: 8px !important; flex-wrap: nowrap !important;
}

/* ── ONE pill design · IDENTICAL across Tenant · LIVE · AI Analyst · Operator ──
   Selectors carry .mios-topbar__controls (0,3,0) so they beat shell.css's
   state-class rules like `.mios-topbar__live-toggle.is-live` (0,2,0). */
.mios-app-shell .mios-topbar__controls .mios-tenant-picker__btn,
.mios-app-shell .mios-topbar__controls .mios-topbar__live-toggle,
.mios-app-shell .mios-topbar__controls .mios-topbar__ai-btn,
.mios-app-shell .mios-topbar__controls .mios-topbar__user-btn {
  height: 36px !important; min-height: 36px !important;
  padding: 0 12px !important;
  border-radius: 10px !important;
  background: rgba(255,255,255,0.04) !important;
  background-image: none !important;             /* kill the AI amber gradient */
  border: 1px solid rgba(140,160,200,0.18) !important;
  color: var(--mios-text-1, #cdd6e6) !important;
  box-shadow: none !important;
  font: 600 12.5px/1 "Inter", system-ui, sans-serif !important;
  letter-spacing: .01em !important;
  display: inline-flex !important; align-items: center !important; gap: 7px !important;
  white-space: nowrap !important; min-width: 0 !important;
  transition: background .15s, border-color .15s !important;
}
.mios-app-shell .mios-tenant-picker__btn:hover,
.mios-app-shell .mios-topbar__live-toggle:hover,
.mios-app-shell .mios-topbar__ai-btn:hover,
.mios-app-shell .mios-topbar__user-btn:hover {
  background: rgba(255,255,255,0.08) !important;
  border-color: rgba(140,160,200,0.30) !important;
}
/* drop any per-pill glow/::before so they read as ONE set */
.mios-app-shell .mios-topbar__live-toggle::before,
.mios-app-shell .mios-topbar__ai-btn::before { content: none !important; display: none !important; }

/* keep every label on ONE visible line (overrides the icon-only container-queries) */
.mios-app-shell .mios-topbar__ai-btn span,
.mios-app-shell .mios-topbar__ai-icon { display: inline-flex !important; }
.mios-app-shell .mios-topbar__live-copy { display: inline-flex !important; }
.mios-app-shell .mios-topbar__live-label { display: inline !important; }
.mios-app-shell .mios-topbar__live-subtext,
.mios-app-shell .mios-topbar__user-role { display: none !important; }   /* single line */
.mios-app-shell .mios-topbar__user-meta { display: inline-flex !important; }
.mios-app-shell .mios-topbar__user-name { font-weight: 600 !important; }

/* tiny semantic marks only · NOT different pill colours */
.mios-app-shell .mios-topbar__live-dot {
  width: 7px !important; height: 7px !important; border-radius: 50% !important;
  background: #34d399 !important; box-shadow: 0 0 6px rgba(52,211,153,.55) !important; flex: none !important;
}
.mios-app-shell .mios-topbar__ai-icon { color: #9b8cff !important; }
.mios-app-shell .mios-topbar__ai-icon svg { width: 15px !important; height: 15px !important; }
.mios-app-shell .mios-topbar__user-avatar {
  width: 22px !important; height: 22px !important; border-radius: 6px !important;
  background: rgba(155,140,255,0.18) !important; color: #cdd6e6 !important;
  display: inline-flex !important; align-items: center !important; justify-content: center !important;
  font: 700 11px "Inter", sans-serif !important;
}
.mios-app-shell .mios-topbar__user-caret svg,
.mios-app-shell .mios-tenant-picker__btn svg { width: 13px !important; height: 13px !important; opacity: .7; }

/* brand · MIOS · INTELLIGENCE OS · kept at the far-right corner (user wants this) */
.mios-app-shell .mios-topbar__brandright { display: flex !important; flex: 0 0 auto !important; }

/* ═══════════════════════════════════════════════════════════════════════════
   SIDEBAR POLISH (2026-06-21) — smoother hover + clearer active, accent-aware.
   ═══════════════════════════════════════════════════════════════════════════ */
.mios-sidebar__item {
  border-radius: 9px !important;
  transition: background .16s ease, color .16s ease, transform .12s ease, box-shadow .16s ease !important;
}
.mios-sidebar__icon { transition: color .16s ease, transform .14s ease; }
.mios-sidebar__item:hover {
  background: var(--mios-amber-wash, rgba(245,158,11,0.09)) !important;
  transform: translateX(3px);
}
.mios-sidebar__item:hover .mios-sidebar__icon {
  color: var(--mios-amber, #f59e0b);
  transform: scale(1.1);
}
.mios-sidebar__item.is-active {
  background: var(--mios-amber-wash, rgba(245,158,11,0.13)) !important;
  box-shadow: inset 0 0 0 1px var(--mios-border-strong, rgba(245,158,11,0.18));
}
.mios-sidebar__item.is-active .mios-sidebar__icon { color: var(--mios-amber, #f59e0b); }
/* accent rail on the active item */
.mios-sidebar__item.is-active .mios-sidebar__item-bar,
.mios-sidebar__item:hover .mios-sidebar__item-bar {
  background: var(--mios-amber, #f59e0b) !important; opacity: 1 !important;
}

/* ═══════════════════════════════════════════════════════════════════════════
   MONITORING — kill NESTED scroll boxes (2026-06-21). The left (Signal Triage)
   and right (Signal Analysis) rails stacked several capped, independently-
   scrolling panels INSIDE an already-scrolling column → scroll-on-scroll that
   visually collided. Flatten the inner scrollers so each column scrolls once.
   ═══════════════════════════════════════════════════════════════════════════ */
/* Inner lists flow inside their panel — the PANEL owns the scroll, not these. */
.monitor-queue,
.monitor-feed-list {
  max-height: none !important;
  overflow: visible !important;
}

/* Every panel is an INDEPENDENT component with its OWN scroll — never a shared
   column scroll (no scroll-inside-scroll). Applies on BOTH builds. */
.mon-3col .mon-left-panel__body,
.mon-3col .mon-right-panel__body {
  max-height: 260px !important;
  overflow-y: auto !important;
}

/* LIVE (frozen 3-col build only) — column grows with its panels, does NOT scroll
   as a unit; the live feed (center) keeps its own scroll. Scoped via
   :not(:has(.mon-coord-col)) so it never touches the redesigned grid. */
.mon-3col:not(:has(.mon-coord-col)) {
  height: auto !important;
  overflow: visible !important;
}
.mon-3col:not(:has(.mon-coord-col)) .mon-col--left,
.mon-3col:not(:has(.mon-coord-col)) .mon-col--right { overflow: visible !important; }
.mon-3col:not(:has(.mon-coord-col)) .mon-col--left  .mon-col__body,
.mon-3col:not(:has(.mon-coord-col)) .mon-col--right .mon-col__body { overflow: visible !important; }
.mon-3col:not(:has(.mon-coord-col)) .mon-col--center .mon-col__body { overflow-y: auto !important; }

/* STICKY panel sub-headers — titles never scroll away (applies on BOTH builds) */
.mon-left-panel__header,
.mon-right-panel__header {
  position: sticky !important; top: 0 !important; z-index: 6 !important;
  background: rgba(7,11,20,0.97) !important;
  -webkit-backdrop-filter: blur(7px); backdrop-filter: blur(7px);
  border-bottom: 1px solid rgba(255,255,255,0.06) !important;
  border-radius: 10px 10px 0 0;
}

/* Each panel inside a column = its OWN separated card component (BOTH builds) */
.mon-3col .mon-col__body {
  display: flex !important;
  flex-direction: column !important;
  gap: 10px !important;
  padding: 10px !important;
}
.mon-3col .mon-left-panel,
.mon-3col .mon-right-panel {
  border: 1px solid rgba(255,255,255,0.07) !important;
  border-radius: 10px !important;
  background: rgba(255,255,255,0.022) !important;
  overflow: visible !important;
  box-shadow: 0 1px 0 rgba(0,0,0,0.25);
  transition: border-color .15s ease, background .15s ease;
}
.mon-3col .mon-left-panel:hover,
.mon-3col .mon-right-panel:hover {
  border-color: rgba(245,158,11,0.28) !important;
  background: rgba(245,158,11,0.025) !important;
}

/* READABILITY — bump the micro-type so Monitoring is legible (BOTH builds) */
.mon-3col .mon-col__title,
.mon-3col .mon-left-panel__title,
.mon-3col .mon-right-panel__title,
.mon-coord-col .ncp__title { font-size: 11.5px !important; letter-spacing: 0.06em !important; }
.mon-3col .mon-col__count { font-size: 10.5px !important; }
.mon-3col .mon-left-panel__meta,
.mon-3col .mon-right-panel__meta,
.mon-coord-col .ncp__sub { font-size: 10px !important; }
.mon-3col .mon-left-panel__body,
.mon-3col .mon-right-panel__body { font-size: 11px; line-height: 1.55; }
.mon-3col .mon-spike-row,
.mon-3col .mon-spike-row__kw,
.mon-3col .mon-queue-row { font-size: 11px !important; }
.mon-3col .mon-spike-row span:not(.mon-state-pill),
.mon-3col .mon-spike-row div { font-size: 10.5px !important; }
.mon-3col .mon-state-pill { font-size: 8.5px !important; }
.mon-bottom-section .monitor-block__eyebrow { font-size: 9px !important; }
.mon-bottom-section .monitor-block__title  { font-size: 15px !important; }
/* compact "data unavailable" empty states → close the void in thin columns */
.mon-3col .mon-right-panel__body > div[style*="text-align: center"],
.mon-3col .mon-left-panel__body  > div[style*="text-align: center"] { padding: 8px 6px !important; }

/* injected outlet logo on the LIVE feed (frozen build) */
.tk-feed-logo {
  width: 14px; height: 14px; border-radius: 3px; margin-right: 5px;
  vertical-align: middle; display: inline-block;
  background: rgba(255,255,255,0.05); object-fit: cover;
}

/* ════════════════════════════════════════════════════════════════════════════
   WORLD-CLASS LIGHT THEME (2026-06-28)
   Many pages were built dark-only: hardcoded hex backgrounds, their own
   --wr-* / --cc-v2-* dark token systems, and dark-designed backdrop FX
   (scanlines, grids, glows, beams, fractal noise). In light mode those wash
   out, grain, or stay black. This block fixes them. All selectors are scoped
   under html[data-mios-mode="light"] (specificity >= the dark rules + !important)
   so DARK is never touched. Reuses the global --mios light tokens for
   consistency.
   ════════════════════════════════════════════════════════════════════════════ */

/* ── 0. Calmer, less-glary light surfaces (was too bright / washed) ── */
html[data-mios-mode="light"] {
  --mios-bg-0: #e7ebf2;
  --mios-bg-1: #eef1f7;
  --mios-surface-0: #ffffff;
  --mios-surface-1: #ffffff;
  --mios-surface-2: #f4f6fb;
  --mios-surface-3: #eef1f7;
}

/* ── 1. Kill every dark-designed backdrop FX in light mode ── */
html[data-mios-mode="light"] .cc-backdrop-fx__noise,
html[data-mios-mode="light"] .cc-backdrop-fx__scanline,
html[data-mios-mode="light"] .cc-backdrop-fx__grid,
html[data-mios-mode="light"] .cc-backdrop-fx__beam,
html[data-mios-mode="light"] .cc-backdrop-fx__radial--amber,
html[data-mios-mode="light"] .cc-backdrop-fx__radial--cyan,
html[data-mios-mode="light"] .cc-backdrop-fx__orbital--outer,
html[data-mios-mode="light"] .cc-backdrop-fx__orbital--inner,
html[data-mios-mode="light"] .cc-v2__bg-grid,
html[data-mios-mode="light"] .cc-v2__bg-glow {
  opacity: 0 !important;
  background: none !important;
  border-color: transparent !important;
}
html[data-mios-mode="light"] .monitoring-surface::before,
html[data-mios-mode="light"] .monitoring-surface::after { opacity: 0 !important; background: none !important; }

/* ── 2. Light remap of the dark-only token systems ── */
html[data-mios-mode="light"] {
  /* Command Center v2 */
  --cc-v2-bg-deep:   #e7ebf2;
  --cc-v2-bg-base:   #eef1f7;
  --cc-v2-bg-panel:  #ffffff;
  --cc-v2-bg-panel-2:#f4f6fb;
  --cc-v2-bg-elevated:#ffffff;
  --cc-v2-line:      rgba(15,23,42,.14);
  --cc-v2-text:      #0f1722;
  --cc-v2-text-dim:  #4a5363;
  --cc-v2-text-muted:#5e6878;
  /* War Room */
  --wr-bg:      #e7ebf2;
  --wr-bg-2:    #eef1f7;
  --wr-panel:   #ffffff;
  --wr-panel-2: #f4f6fb;
  --wr-line:    rgba(15,23,42,.14);
  --wr-text:    #0f1722;
  --wr-text-2:  #4a5363;
  --wr-text-dim:#5e6878;
}

/* ── 3. Hardcoded-dark page backdrops → clean light surface ── */
html[data-mios-mode="light"] .cc-v2,
html[data-mios-mode="light"] .wr-page,
html[data-mios-mode="light"] .monitoring-surface,
html[data-mios-mode="light"] .ilab-main,
html[data-mios-mode="light"] .intelligence-root,
html[data-mios-mode="light"] .lab-root,
html[data-mios-mode="light"] .ho-root,
html[data-mios-mode="light"] .ali-root,
html[data-mios-mode="light"] .fs-root,
html[data-mios-mode="light"] .inc-root,
html[data-mios-mode="light"] .inc-main,
html[data-mios-mode="light"] .mon-main {
  background: var(--mios-bg-0, #e7ebf2) !important;
  color: var(--mios-text-1, #1f2733) !important;
}

/* ── 4. Hardcoded-dark panels / cards / headers → white card surface ── */
html[data-mios-mode="light"] .ilab-panel,
html[data-mios-mode="light"] .ilab-card,
html[data-mios-mode="light"] .ilab-section,
html[data-mios-mode="light"] .ilab-header,
html[data-mios-mode="light"] .ilab-cmd-header,
html[data-mios-mode="light"] .ilab-sidebar,
html[data-mios-mode="light"] .ilab-footer,
html[data-mios-mode="light"] .ilab-content,
html[data-mios-mode="light"] .ilab-deep,
html[data-mios-mode="light"] .ilab-inset,
html[data-mios-mode="light"] .ilab-elevated,
html[data-mios-mode="light"] .lab-main,
html[data-mios-mode="light"] .lab-panel,
html[data-mios-mode="light"] .lab-sticky,
html[data-mios-mode="light"] .lab-card,
html[data-mios-mode="light"] .lab-section,
html[data-mios-mode="light"] .lab-header,
html[data-mios-mode="light"] .lab-content,
html[data-mios-mode="light"] .lab-row,
html[data-mios-mode="light"] .lab-item,
html[data-mios-mode="light"] .lab-cell,
html[data-mios-mode="light"] .lab-nav,
html[data-mios-mode="light"] .lab-toolbar,
html[data-mios-mode="light"] .lab-top,
html[data-mios-mode="light"] .lab-osiris,
html[data-mios-mode="light"] .lab-section,
html[data-mios-mode="light"] .ho-card,
html[data-mios-mode="light"] .ho-panel,
html[data-mios-mode="light"] .ho-item,
html[data-mios-mode="light"] .ho-list,
html[data-mios-mode="light"] .ho-row,
html[data-mios-mode="light"] .ho-col,
html[data-mios-mode="light"] .ho-modal,
html[data-mios-mode="light"] .ho-header,
html[data-mios-mode="light"] .ali-item,
html[data-mios-mode="light"] .ali-btn,
html[data-mios-mode="light"] .ali-state,
html[data-mios-mode="light"] .fs-row,
html[data-mios-mode="light"] .inc-section,
html[data-mios-mode="light"] .inc-panel,
html[data-mios-mode="light"] .inc-row,
html[data-mios-mode="light"] .mon-card,
html[data-mios-mode="light"] .mon-item,
html[data-mios-mode="light"] .mon-filter {
  background: var(--mios-surface-1, #ffffff) !important;
  color: var(--mios-text-1, #1f2733) !important;
  border-color: var(--mios-border-soft, rgba(15,23,42,.16)) !important;
}

/* ── 5. Catch any remaining near-black inline/utility fills in these pages.
   Light text that was set for a dark bg becomes a readable dark on light. ── */
html[data-mios-mode="light"] .ilab-main [style*="background:#0"],
html[data-mios-mode="light"] .lab-root  [style*="background:#0"],
html[data-mios-mode="light"] .cc-v2     [style*="background:#0"] {
  background: var(--mios-surface-2, #f4f6fb) !important;
}
/* select dropdown option fills (hardcoded dark) */
html[data-mios-mode="light"] .inc-filter-select option,
html[data-mios-mode="light"] .mon-filter-rail select option {
  background: #ffffff !important; color: #1f2733 !important;
}

/* ════════════════════════════════════════════════════════════════════════════
   INTELLIGENCE LAB · WORLD-CLASS REDESIGN (2026-06-28)
   Problem: the Lab read as a wall of amber (warm near-black surfaces + an AMBER
   border token + amber eyebrows/hovers/glows everywhere). Command Center, by
   contrast, is COOL near-black (#03070d) with amber used sparingly as a command
   accent. This block re-pitches the Lab onto the Command Center palette: black
   dominant, amber strictly secondary. Everything is scoped to .lab-root so no
   other page is affected. House char "·", never an em-dash.
   ════════════════════════════════════════════════════════════════════════════ */

/* ── 1. KEYSTONE · re-point the design tokens to the cool Command Center palette.
   The single highest-leverage change: --border-0 was literally amber rgba, and
   --surface-0/1 were warm near-blacks. Re-mapping these de-ambers every panel,
   border and surface in the Lab at once. ── */
.lab-root {
  --surface-0: #03070d;
  --surface-1: #0a1422;
  --surface-2: #0d1a2c;
  --surface-3: #122036;
  --border-0:  #1a2e4a;          /* was amber rgba · now cool steel-blue */
  --border-1:  #16263e;
  --text-1:    #e6efff;
  --text-2:    #b9c8e2;
  --text-3:    #6e85a8;
  --p-bg:      #03070d;
  --p-panel:   #0a1422;
  --p-border:  #1a2e4a;
  --p-text:    #e6efff;
  background:  #03070d !important;
}

/* ── 2. Shells, canvases, panels · cool near-black glass ── */
.lab-root,
.lab-root .lab-main,
.lab-root .lab-canvas-area,
.lab-root .lab-canvas {
  background:
    radial-gradient(1200px 600px at 18% -10%, rgba(95,188,255,0.05), transparent 60%),
    radial-gradient(900px 500px at 100% 0%, rgba(255,181,71,0.035), transparent 55%),
    #03070d !important;
}
.lab-root .lab-panel,
.lab-root .lab-section,
.lab-root .lab-card,
.lab-root [class*="ilab-panel"],
.lab-root [class*="ilab-card"],
.lab-root .lab-rail,
.lab-root .lab-inspector {
  background: linear-gradient(180deg, #0a1422 0%, #070f1b 100%) !important;
  border-color: #1a2e4a !important;
}

/* ── 3. Posture band · cool steel, amber demoted to a thin top accent only ── */
.lab-root .posture-band {
  background: linear-gradient(180deg, #0b1626 0%, #04080f 100%) !important;
  border-bottom-color: #1a2e4a !important;
}
.lab-root .posture-band::before {
  background: linear-gradient(90deg, transparent, rgba(95,188,255,0.35), transparent) !important;
}
.lab-root .posture-band--rising::before     { background: linear-gradient(90deg, transparent, rgba(255,209,102,0.45), transparent) !important; }
.lab-root .posture-band--escalating::before { background: linear-gradient(90deg, transparent, rgba(255,159,69,0.55),  transparent) !important; }
.lab-root .posture-band--critical::before   { background: linear-gradient(90deg, transparent, rgba(255,84,112,0.7),   transparent) !important; }
.lab-root .pb-stage, .lab-root .pb-mci, .lab-root .pb-forecast,
.lab-root .pb-driver, .lab-root .pb-ai, .lab-root .pb-status, .lab-root .pb-actions {
  border-right-color: #16263e !important;
}
.lab-root .pb-stage:hover,
.lab-root .pb-forecast:hover { background: rgba(95,188,255,0.05) !important; }

/* ── 4. De-amber the decorative structure · keep amber only for genuine command
   accents (LIVE indicators, the brand eyebrow, hero numerics). Convert the
   wall of amber eyebrows/hovers/active-fills to cool steel-blue. ── */
.lab-root [class$="__eye"],
.lab-root [class$="-eyebrow"],
.lab-root [class*="__eyebrow"],
.lab-root .gtp-eyebrow,
.lab-root .gc-banner__eyebrow,
.lab-root .gc-legend__title,
.lab-root .gc-tooltip__type {
  color: #7fa3d6 !important;          /* cool steel, not amber */
}
.lab-root .gtp-type:hover,
.lab-root .gtp-style:hover,
.lab-root .gtp-layout:hover,
.lab-root .gc-hud__btn:hover {
  background: rgba(95,188,255,0.05) !important;
  border-color: rgba(95,188,255,0.3) !important;
  color: #cfe0ff !important;
}
.lab-root .gtp-type.is-on,
.lab-root .gtp-style.is-on,
.lab-root .gtp-layout.is-on {
  background: rgba(95,188,255,0.1) !important;
  border-color: rgba(95,188,255,0.45) !important;
  color: #cfe0ff !important;
}
/* the LIVE pip + true accent stays amber on purpose */
.lab-root .ng-header__live,
.lab-root [class*="__live"],
.lab-root [class*="live-dot"] { color: #ffb547 !important; }

/* ════════════════════════════════════════════════════════════════════════════
   5. THE CLUSTER NETWORK · a premium 2D narrative graph
   Deep radial space, a faint blue survey grid, vivid threat-coded nodes with
   depth + glow, flowing edges, amber used only on the live header pip.
   ════════════════════════════════════════════════════════════════════════════ */
.lab-root .ng-shell {
  background: linear-gradient(180deg, #0a1422 0%, #060d18 100%) !important;
  border: 1px solid #1a2e4a !important;
  border-radius: 14px !important;
  overflow: hidden;
  box-shadow: 0 24px 60px -30px rgba(0,0,0,0.9), inset 0 1px 0 rgba(120,180,255,0.06);
}
.lab-root .ng-header {
  border-bottom: 1px solid #16263e !important;
  background: linear-gradient(180deg, rgba(13,26,44,0.6), transparent) !important;
}
.lab-root .ng-header__eye { color: #7fa3d6 !important; letter-spacing: 0.18em !important; }
.lab-root .ng-header__title { color: #eaf2ff !important; }
.lab-root .ng-header__live {
  color: #0a0e16 !important; background: #ffb547 !important;
  border-radius: 999px !important; padding: 1px 8px !important;
  font-weight: 800 !important; letter-spacing: 0.1em !important;
}
.lab-root .ng-badge {
  background: rgba(10,20,34,0.7) !important;
  border: 1px solid #1a2e4a !important; border-radius: 8px !important;
}
.lab-root .ng-badge__label { color: #6e85a8 !important; }
.lab-root .ng-badge__val   { color: #eaf2ff !important; }

/* The stage · deep cool space with a faint survey grid + soft depth glows */
.lab-root .ng-stage {
  background:
    radial-gradient(120% 90% at 50% 38%, #0c1a2e 0%, #07101f 52%, #03070d 100%) !important;
  border: 1px solid #16263e !important;
  border-radius: 12px !important;
  min-height: 420px !important;
  position: relative; overflow: hidden;
}
.lab-root .ng-stage__grid {
  position: absolute; inset: 0; opacity: 0.5;
  background-image:
    linear-gradient(rgba(95,140,200,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(95,140,200,0.06) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: radial-gradient(circle at 50% 45%, #000 30%, transparent 85%);
  -webkit-mask-image: radial-gradient(circle at 50% 45%, #000 30%, transparent 85%);
}
.lab-root .ng-stage__glow--a {
  background: radial-gradient(circle, rgba(95,188,255,0.16), transparent 70%) !important;
}
.lab-root .ng-stage__glow--b {
  background: radial-gradient(circle, rgba(74,221,163,0.1), transparent 70%) !important;
}

/* Edges · luminous filaments with a slow flowing dash */
.lab-root .ng-edge {
  height: 2px !important;
  background: linear-gradient(90deg, transparent, rgba(95,188,255,0.55), rgba(95,188,255,0.15)) !important;
  box-shadow: 0 0 8px rgba(95,188,255,0.4) !important;
  opacity: 0.7;
  transform-origin: left center;
}
.lab-root .ng-edge--critical {
  background: linear-gradient(90deg, transparent, rgba(255,84,112,0.7), rgba(255,159,69,0.25)) !important;
  box-shadow: 0 0 10px rgba(255,84,112,0.5) !important;
  height: 2.5px !important;
}

/* Cluster nodes · dark glass cards, threat-coloured edge + glow, depth, hover lift.
   (Node colour comes from the component's inline --ng-node-glow / borderLeftColor,
   so the colourful threat coding is preserved · we add the premium chrome.) */
.lab-root .ng-node {
  background: linear-gradient(180deg, rgba(14,26,44,0.96), rgba(8,15,27,0.96)) !important;
  border: 1px solid #20344f !important;
  border-left: 3px solid var(--ng-node-glow, #5fbcff) !important;
  border-radius: 12px !important;
  padding: 10px 12px !important;
  min-width: 132px !important;
  box-shadow:
    0 14px 30px -14px rgba(0,0,0,0.85),
    0 0 0 1px rgba(120,180,255,0.04) inset,
    0 0 22px -6px var(--ng-node-glow, #5fbcff) !important;
  backdrop-filter: blur(6px);
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease !important;
  z-index: 2;
}
.lab-root .ng-node::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
  border-radius: 12px 0 0 12px;
  background: var(--ng-node-glow, #5fbcff);
  box-shadow: 0 0 14px var(--ng-node-glow, #5fbcff);
}
.lab-root .ng-node:hover {
  transform: translateY(-3px) scale(1.03) !important;
  box-shadow:
    0 22px 44px -16px rgba(0,0,0,0.9),
    0 0 30px -4px var(--ng-node-glow, #5fbcff) !important;
  z-index: 5;
}
.lab-root .ng-node--active {
  border-color: var(--ng-node-glow, #5fbcff) !important;
  box-shadow: 0 0 0 2px var(--ng-node-glow, #5fbcff), 0 0 34px -6px var(--ng-node-glow, #5fbcff) !important;
}
.lab-root .ng-node__stage { font-weight: 800 !important; letter-spacing: 0.08em !important; text-transform: uppercase; font-size: 9.5px !important; }
.lab-root .ng-node__burst { color: #9fb4d6 !important; font-family: "JetBrains Mono", monospace; font-size: 10px !important; }
.lab-root .ng-node__title { color: #eaf2ff !important; font-weight: 700 !important; line-height: 1.3 !important; margin: 4px 0 !important; }
.lab-root .ng-node__metrics { color: #7f96bb !important; font-family: "JetBrains Mono", monospace; font-size: 10px !important; display: flex; gap: 8px; }

/* Bridge (platform) nodes · cool neutral chips so they read as connectors */
.lab-root .ng-bridge {
  background: rgba(10,20,34,0.92) !important;
  border: 1px solid #2a3f5e !important;
  border-radius: 999px !important;
  padding: 5px 11px !important;
  box-shadow: 0 8px 20px -8px rgba(0,0,0,0.8), 0 0 16px -8px rgba(95,188,255,0.5) !important;
  z-index: 3;
}
.lab-root .ng-bridge__dot { background: #5fbcff !important; box-shadow: 0 0 8px #5fbcff !important; }
.lab-root .ng-bridge__label { color: #dce8ff !important; font-weight: 700 !important; }
.lab-root .ng-bridge__role { color: #6e85a8 !important; }

.lab-root .ng-footer { border-top: 1px solid #16263e !important; color: #6e85a8 !important; }
.lab-root .ng-footer__live-dot { background: #4adda3 !important; box-shadow: 0 0 8px #4adda3 !important; }

/* ── 6. UI-gap polish · the "intelligence gaps" notice + empty states read as
   considered design, not error noise ── */
.lab-root .situation__gaps {
  background: linear-gradient(180deg, rgba(255,84,112,0.08), rgba(255,84,112,0.02)) !important;
  border: 1px solid rgba(255,84,112,0.32) !important;
  border-radius: 10px !important;
}
.lab-root .ng-empty,
.lab-root .gc-empty,
.lab-root [class*="__empty"] { color: #6e85a8 !important; }
.lab-root .ng-empty__icon,
.lab-root .gc-empty__icon { color: #2a3f5e !important; }
/* thin cool scrollbars to match */
.lab-root *::-webkit-scrollbar-thumb { background: rgba(95,188,255,0.18) !important; }
