/* ==========================================================================
   WINTER STORM FERN — GEOSPATIAL INCIDENT COMMAND CONSOLE
   Design System: Dual Theme (Dark / Light) & Full Viewport
   ========================================================================== */

/* DARK THEME (DEFAULT) */
:root, [data-theme="dark"] {
  --bg-root: #0B0F17;
  --bg-surface: #0F172A;
  --bg-surface-secondary: #1E293B;
  --bg-glass: rgba(15, 23, 42, 0.9);
  --bg-glass-card: rgba(30, 41, 59, 0.85);
  --bg-glass-hover: rgba(51, 65, 85, 0.95);
  
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-medium: #334155;
  --border-glow: rgba(56, 189, 248, 0.35);

  --text-main: #F8FAFC;
  --text-muted: #94A3B8;
  --text-dim: #64748B;
  
  --timeline-bg: #090D16;
  --timeline-lane-bg: rgba(15, 23, 42, 0.65);
  --timeline-grid: rgba(255, 255, 255, 0.06);

  --shadow-glass: 0 12px 32px 0 rgba(0, 0, 0, 0.55), 0 2px 6px 0 rgba(0, 0, 0, 0.35);
  --shadow-popup: 0 20px 40px rgba(0, 0, 0, 0.7);
}

/* LIGHT THEME */
[data-theme="light"] {
  --bg-root: #F1F5F9;
  --bg-surface: #FFFFFF;
  --bg-surface-secondary: #E2E8F0;
  --bg-glass: rgba(255, 255, 255, 0.94);
  --bg-glass-card: rgba(241, 245, 249, 0.92);
  --bg-glass-hover: rgba(226, 232, 240, 0.95);
  
  --border-subtle: rgba(0, 0, 0, 0.08);
  --border-medium: #CBD5E1;
  --border-glow: rgba(2, 132, 199, 0.35);

  --text-main: #0F172A;
  --text-muted: #475569;
  --text-dim: #64748B;

  --timeline-bg: #F8FAFC;
  --timeline-lane-bg: rgba(241, 245, 249, 0.8);
  --timeline-grid: rgba(0, 0, 0, 0.06);

  --shadow-glass: 0 12px 32px 0 rgba(0, 0, 0, 0.1), 0 2px 6px 0 rgba(0, 0, 0, 0.06);
  --shadow-popup: 0 20px 40px rgba(0, 0, 0, 0.15);
}

/* Constants Across Themes */
:root {
  --sidebar-width: 380px;
  --timeline-height: 180px;

  --state-ms: #38BDF8; /* Sky Blue */
  --state-tn: #F59E0B; /* Amber */
  --state-ky: #10B981; /* Emerald */
  --state-ga: #A855F7; /* Purple */

  --class-red: #EF4444;
  --class-amber: #F59E0B;
  --class-blue: #38BDF8;
  --class-slate: #64748B;

  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
  --blur-glass: blur(14px);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  background-color: var(--bg-root);
  color: var(--text-main);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  transition: background-color 0.25s ease, color 0.25s ease;
}

.app-viewport {
  position: relative;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* ==========================================================================
   1. FLOATING TOP HUD (3-ZONE COMMAND TELEMETRY BAR)
   ========================================================================== */
.floating-hud-bar {
  position: absolute;
  top: 10px;
  left: 10px;
  right: 10px;
  height: 64px;
  background: var(--bg-glass);
  backdrop-filter: var(--blur-glass);
  -webkit-backdrop-filter: var(--blur-glass);
  border: 1px solid var(--border-medium);
  border-radius: 14px;
  box-shadow: var(--shadow-glass);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 0 12px;
  gap: 8px;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  -ms-overflow-style: none;
  transition: background 0.25s ease, border-color 0.25s ease;
}

.floating-hud-bar::-webkit-scrollbar {
  display: none;
}

/* Modular HUD direct children */
.hud-module {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

#hud-mod-controls,
.hud-module.hud-mod-controls {
  margin-left: auto !important;
  order: 9999 !important;
  flex-shrink: 0;
}

/* 3 Flex Zones legacy fallback */
.hud-zone {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Understated Dotted Underline & Interactive Metric Hover States */
.hud-label-dotted {
  text-decoration: underline dotted rgba(148, 163, 184, 0.45);
  text-underline-offset: 3px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.interactive-metric {
  cursor: pointer;
  transition: transform 0.15s ease, background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.interactive-metric:hover {
  filter: brightness(1.12);
}

.interactive-metric:hover .hud-label-dotted {
  text-decoration-color: #38BDF8;
  color: #38BDF8;
}

/* Left Zone: Brand & Scope */
.btn-icon-hud {
  background: var(--bg-surface-secondary);
  border: 1px solid var(--border-medium);
  color: var(--text-main);
  width: 34px;
  height: 34px;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  transition: all 0.2s ease;
}

.btn-icon-hud:hover {
  background: #0284C7;
  color: #FFF;
  border-color: #38BDF8;
}

.brand-badge {
  background: linear-gradient(135deg, #0284C7, #4338CA);
  color: #FFF;
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.05em;
  padding: 4px 8px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  gap: 4px;
  box-shadow: 0 0 10px rgba(2, 132, 199, 0.4);
}

/* Left Zone: Accumulation Scroller & Location Flipper Widget */
.accum-scroller-widget {
  background: var(--bg-surface-secondary);
  border: 1px solid var(--border-medium);
  border-radius: 9px;
  padding: 4px 8px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  cursor: pointer;
  user-select: none;
  transition: all 0.2s ease;
  min-width: 175px;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.2);
}

.accum-scroller-widget:hover {
  background: var(--bg-glass-hover);
  border-color: #38BDF8;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.25);
}

.accum-scroller-widget.flipper-pulse {
  animation: flipperSnap 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes flipperSnap {
  0% { transform: scale(0.97); opacity: 0.8; }
  50% { transform: scale(1.03); }
  100% { transform: scale(1); opacity: 1; }
}

.accum-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  line-height: 1;
}

.accum-loc-tag {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.65rem;
  font-weight: 800;
  color: #38BDF8;
  white-space: nowrap;
}

.accum-loc-tag i {
  font-size: 0.6rem;
}

.accum-station-name {
  color: var(--text-main);
  max-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.accum-counter-badge {
  font-family: var(--font-mono);
  font-size: 0.55rem;
  font-weight: 700;
  color: var(--text-muted);
  background: rgba(0, 0, 0, 0.2);
  padding: 1px 4px;
  border-radius: 4px;
}

.accum-values-row {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 3px;
  line-height: 1;
}

.accum-metric-chip {
  display: flex;
  align-items: center;
  gap: 3px;
  font-size: 0.62rem;
  font-weight: 800;
}

.accum-metric-chip.ice i {
  color: #38BDF8;
  font-size: 0.6rem;
}

.accum-metric-chip.snow i {
  color: #E2E8F0;
  font-size: 0.6rem;
}

.accum-label {
  color: var(--text-muted);
  font-size: 0.56rem;
  font-weight: 700;
}

.accum-val {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 800;
  color: #38BDF8;
}

.accum-flip-hint {
  margin-left: auto;
  font-size: 0.55rem;
  color: var(--text-dim);
  opacity: 0.7;
  transition: transform 0.3s ease;
}

.accum-scroller-widget:hover .accum-flip-hint {
  color: #38BDF8;
  transform: rotate(180deg);
}

/* Center Zone: Temporal Playback Hub */
.hud-temporal-hub {
  display: flex;
  align-items: center;
  background: var(--bg-surface-secondary);
  border: 1px solid var(--border-medium);
  border-radius: 10px;
  padding: 3px 6px;
  gap: 8px;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.2);
}

.hud-transport-cluster {
  display: flex;
  align-items: center;
  gap: 3px;
}

.btn-ctrl-hud {
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-muted);
  width: 28px;
  height: 28px;
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  transition: all 0.15s ease;
}

.btn-ctrl-hud:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-main);
  border-color: var(--border-subtle);
}

.btn-ctrl-hud.btn-ctrl-play {
  background: #0284C7;
  color: #FFFFFF;
  border-color: #38BDF8;
}

.btn-ctrl-hud.btn-ctrl-play:hover {
  background: #0369A1;
}

.btn-ctrl-hud.btn-ctrl-play.active {
  background: #EF4444;
  border-color: #F87171;
}

.hud-timestamp-pill {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  background: rgba(0, 0, 0, 0.15);
  border-radius: 6px;
  border: 1px solid var(--border-subtle);
}

.hud-timestamp-icon {
  font-size: 0.75rem;
  color: var(--state-ms);
}

.hud-time-primary {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-main);
  white-space: nowrap;
}

.hud-speed-wrapper {
  display: flex;
  align-items: center;
}

.hud-speed-select {
  background: rgba(0, 0, 0, 0.15);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  border-radius: 6px;
  padding: 4px 6px;
  cursor: pointer;
  outline: none;
}

.hud-speed-select:hover {
  color: var(--text-main);
  border-color: var(--border-medium);
}

/* Right Zone: Regional Outages Connected Segment Bar */
.hud-state-segment-group {
  display: flex;
  align-items: stretch;
  background: var(--bg-surface-secondary);
  border: 1px solid var(--border-medium);
  border-radius: 8px;
  overflow: hidden;
}

.hud-state-segment {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 3px 8px;
  min-width: 68px;
  border-right: 1px solid var(--border-subtle);
  position: relative;
  transition: background-color 0.15s ease;
}

.hud-state-segment:last-child {
  border-right: none;
}

.hud-state-segment:hover {
  background: rgba(255, 255, 255, 0.05);
}

.hud-state-segment.ms { border-top: 2.5px solid var(--state-ms); }
.hud-state-segment.tn { border-top: 2.5px solid var(--state-tn); }
.hud-state-segment.ky { border-top: 2.5px solid var(--state-ky); }
.hud-state-segment.ga { border-top: 2.5px solid var(--state-ga); }

.seg-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.6rem;
  font-weight: 800;
  line-height: 1;
}

.seg-code {
  color: var(--text-main);
}

.seg-pct {
  color: var(--text-muted);
  font-size: 0.58rem;
  font-family: var(--font-mono);
}

.seg-body {
  margin-top: 2px;
  line-height: 1;
}

.seg-val {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-main);
}

.seg-bar-bg {
  height: 2.5px;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 1px;
  margin-top: 3px;
  overflow: hidden;
}

.seg-bar-fill {
  height: 100%;
  border-radius: 1px;
  transition: width 0.3s ease;
}

.seg-bar-fill.ms { background: var(--state-ms); }
.seg-bar-fill.tn { background: var(--state-tn); }
.seg-bar-fill.ky { background: var(--state-ky); }
.seg-bar-fill.ga { background: var(--state-ga); }

/* Right Zone: Macro Impact Group (VoLL + Fatalities) */
.hud-macro-group {
  display: flex;
  align-items: center;
  gap: 6px;
}

.hud-macro-pill {
  background: var(--bg-surface-secondary);
  border: 1px solid var(--border-medium);
  border-radius: 8px;
  padding: 4px 9px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 90px;
}

.hud-macro-pill.voll {
  min-width: 140px;
  border-left: 3px solid #0284C7;
  padding: 3px 8px;
}
[data-theme="dark"] .hud-macro-pill.voll {
  border-left: 3px solid #38BDF8;
}

.voll-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  line-height: 1;
}

.voll-embedded-toggle {
  display: flex;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--border-subtle);
  border-radius: 4px;
  padding: 1px;
  gap: 1px;
}

.voll-embedded-toggle .hud-toggle-btn {
  padding: 1px 5px;
  font-size: 0.58rem;
  font-weight: 800;
  border-radius: 3px;
  cursor: pointer;
  color: var(--text-muted);
  border: none;
  background: transparent;
  transition: all 0.15s ease;
  line-height: 1.1;
}

.voll-embedded-toggle .hud-toggle-btn:hover {
  color: var(--text-main);
}

.voll-embedded-toggle .hud-toggle-btn.active {
  background: #0284C7;
  color: #FFFFFF;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
}

[data-theme="dark"] .voll-embedded-toggle .hud-toggle-btn.active {
  background: #38BDF8;
  color: #0F172A;
}

.hud-macro-pill.fatal {
  min-width: 82px;
  border-left: 3px solid #EF4444;
}

.macro-label {
  font-size: 0.58rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--text-dim);
  display: flex;
  align-items: center;
  gap: 4px;
}

.macro-val {
  font-family: var(--font-mono);
  font-weight: 800;
  line-height: 1.1;
  margin-top: 2px;
}

.macro-val.voll-val {
  font-size: 0.85rem;
  color: #0284C7;
}
[data-theme="dark"] .macro-val.voll-val {
  color: #38BDF8;
}

.macro-val.fatal-val {
  font-size: 0.82rem;
  color: #EF4444;
}

/* Right Zone: Global Actions Group */
.hud-actions-group {
  display: flex;
  align-items: center;
  gap: 6px;
}

.hud-toggle-switch {
  display: flex;
  background: var(--bg-surface-secondary);
  border: 1px solid var(--border-medium);
  border-radius: 6px;
  padding: 2px;
}

.hud-toggle-btn {
  padding: 3px 6px;
  font-size: 0.66rem;
  font-weight: 700;
  border-radius: 4px;
  cursor: pointer;
  color: var(--text-muted);
  border: none;
  background: transparent;
  transition: all 0.15s ease;
}

.hud-toggle-btn.active {
  background: #0284C7;
  color: #FFF;
}

/* Responsive Degradation */
@media (max-width: 1440px) {
  .brand-sub-title {
    display: none;
  }
  .hud-state-segment {
    min-width: 58px;
    padding: 3px 6px;
  }
  .hud-macro-pill.voll {
    min-width: 95px;
  }
}

@media (max-width: 1200px) {
  .hud-state-segment-group {
    display: none;
  }
  .hud-zone-left {
    min-width: auto;
  }
}

@media (max-width: 768px) {
  .floating-hud-bar {
    height: auto;
    flex-wrap: wrap;
    padding: 6px 8px;
  }
  .hud-zone-center {
    order: 3;
    width: 100%;
  }
}

/* ==========================================================================
   2. MAIN MAP VIEWPORT & FLOATING SIDEBAR
   ========================================================================== */
.main-viewport {
  position: relative;
  flex: 1;
  width: 100%;
  overflow: hidden;
}

.map-canvas-container {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
}

#event-focus-map {
  width: 100%;
  height: 100%;
  background: #090D16;
}
[data-theme="light"] #event-focus-map {
  background: #E2E8F0;
}

/* ==========================================================================
   3. COLLAPSIBLE LEFT SIDEBAR (SITUATION UPDATE CARD WITH STATE BORDERS)
   ========================================================================== */
.sidebar-situation-card {
  position: absolute;
  top: 80px;
  left: 10px;
  bottom: calc(var(--timeline-height, 180px) + 14px);
  width: var(--sidebar-width, 380px);
  min-width: 280px;
  max-width: min(850px, 85vw);
  background: var(--bg-glass);
  backdrop-filter: var(--blur-glass);
  -webkit-backdrop-filter: var(--blur-glass);
  border: 1px solid var(--border-medium);
  border-radius: 12px;
  box-shadow: var(--shadow-glass);
  z-index: 500;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
}

.sidebar-situation-card.collapsed {
  transform: translateX(-500px);
  opacity: 0;
  pointer-events: none;
}

/* Sidebar Resize Handle (Right Border) */
.sidebar-resize-handle {
  position: absolute;
  top: 0;
  right: 0;
  width: 10px;
  height: 100%;
  cursor: col-resize;
  z-index: 550;
  display: flex;
  align-items: center;
  justify-content: center;
  user-select: none;
  touch-action: none;
}

.sidebar-resize-handle:hover,
.sidebar-resize-handle.active {
  background: rgba(56, 189, 248, 0.15);
}

.sidebar-resize-handle .resize-grip-line {
  width: 3px;
  height: 36px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.25);
  transition: all 0.2s ease;
}

.sidebar-resize-handle:hover .resize-grip-line,
.sidebar-resize-handle.active .resize-grip-line {
  background: #38BDF8;
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.8);
  height: 48px;
}

.card-urgency-header {
  height: 4px;
  background: var(--class-amber);
  transition: background-color 0.3s ease;
}
.card-urgency-header.red { background: var(--class-red); }
.card-urgency-header.amber { background: var(--class-amber); }
.card-urgency-header.blue { background: var(--class-blue); }
.card-urgency-header.slate { background: var(--class-slate); }

.sidebar-scrollable-body {
  flex: 1;
  overflow-y: auto;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.card-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}

.badge-classification {
  font-size: 0.65rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 2px 6px;
  border-radius: 4px;
}
.badge-classification.red { background: rgba(239, 68, 68, 0.2); color: #EF4444; border: 1px solid rgba(239, 68, 68, 0.4); }
.badge-classification.amber { background: rgba(245, 158, 11, 0.2); color: #F59E0B; border: 1px solid rgba(245, 158, 11, 0.4); }
.badge-classification.blue { background: rgba(56, 189, 248, 0.2); color: #0284C7; border: 1px solid rgba(56, 189, 248, 0.4); }
.badge-classification.slate { background: rgba(100, 116, 139, 0.2); color: #64748B; border: 1px solid rgba(100, 116, 139, 0.4); }

.badge-state-track {
  font-size: 0.65rem;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 4px;
  background: var(--bg-surface-secondary);
  border: 1px solid var(--border-medium);
  color: var(--text-main);
}

.event-phase-tag {
  font-size: 0.65rem;
  color: var(--text-muted);
  font-weight: 600;
}

/* ==========================================================================
   STATE-DELINEATED COLOR BORDERS ON IMAGES (FILLS AREA & UNCLIPPED FULL POSTER)
   ========================================================================== */
.card-media-viewport {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 4; /* Standard portrait ratio to fit all generated posters in full */
  max-height: 400px;
  background: #020617;
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--border-medium);
  cursor: pointer;
  user-select: none;
  transition: border-color 0.3s ease, box-shadow 0.3s ease, filter 0.2s ease;
}

.card-media-viewport:hover {
  filter: brightness(1.06);
}

.card-media-viewport.border-ms {
  border: 2px solid var(--state-ms) !important;
  box-shadow: 0 0 16px rgba(56, 189, 248, 0.4) !important;
}
.card-media-viewport.border-tn {
  border: 2px solid var(--state-tn) !important;
  box-shadow: 0 0 16px rgba(245, 158, 11, 0.4) !important;
}
.card-media-viewport.border-ky {
  border: 2px solid var(--state-ky) !important;
  box-shadow: 0 0 16px rgba(16, 185, 129, 0.4) !important;
}
.card-media-viewport.border-ga {
  border: 2px solid var(--state-ga) !important;
  box-shadow: 0 0 16px rgba(168, 85, 247, 0.4) !important;
}

.card-media-img {
  width: 100%;
  height: 100%;
  display: block;
  background: #020617;
  transition: transform 0.3s ease;
}

/* 1. Mode: Centered Height (Contain / Full Portrait Uncropped) */
.card-media-viewport.fit-height .card-media-img {
  object-fit: contain;
  object-position: center;
}

/* 2. Mode: Centered Width (Fill / Cover Width) */
.card-media-viewport.fit-width .card-media-img {
  object-fit: cover;
  object-position: center;
}

/* Floating Fit Mode Indicator Badge */
.poster-fit-toggle-badge {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: rgba(15, 23, 42, 0.88);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #F8FAFC;
  font-size: 0.62rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  gap: 5px;
  opacity: 0.82;
  pointer-events: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
  transition: opacity 0.2s ease, transform 0.2s ease, background-color 0.2s ease;
  z-index: 10;
}

.card-media-viewport:hover .poster-fit-toggle-badge {
  opacity: 1;
  transform: scale(1.05);
  background: rgba(2, 132, 199, 0.9);
  border-color: #38BDF8;
}

.media-role-badge {
  display: none;
}

.media-caption-bar {
  display: none;
}

.card-event-headline {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.35;
}

.card-quote-box {
  background: var(--bg-surface-secondary);
  border-left: 3px solid #0284C7;
  padding: 8px 10px;
  border-radius: 0 6px 6px 0;
}

.card-announcement-text {
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.card-announcement-text mark {
  background: rgba(245, 158, 11, 0.25);
  color: #D97706;
  padding: 1px 3px;
  border-radius: 2px;
  font-weight: 600;
}
[data-theme="dark"] .card-announcement-text mark {
  color: #FDE68A;
}

.card-footer-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.65rem;
  color: var(--text-dim);
  border-top: 1px solid var(--border-subtle);
  padding-top: 6px;
  margin-top: auto;
}

.card-source-link {
  color: #0284C7;
  text-decoration: none;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 3px;
}
[data-theme="dark"] .card-source-link { color: #38BDF8; }

/* ==========================================================================
   4. FLOATING MAP CONTROLS & LAYER SWITCHER (TOP-RIGHT)
   ========================================================================== */
.map-floating-controls {
  position: absolute;
  top: 80px;
  right: 10px;
  z-index: 500;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.map-layer-menu {
  background: var(--bg-glass);
  backdrop-filter: var(--blur-glass);
  -webkit-backdrop-filter: var(--blur-glass);
  border: 1px solid var(--border-medium);
  border-radius: 10px;
  box-shadow: var(--shadow-glass);
  min-width: 220px;
  overflow: hidden;
  transition: all 0.2s ease;
}

.layer-menu-header {
  padding: 8px 10px;
  background: var(--bg-surface-secondary);
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--text-main);
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  border-bottom: 1px solid var(--border-subtle);
}

.layer-menu-content-body {
  padding: 8px 12px;
}

.map-layer-menu.collapsed .layer-menu-content-body { display: none; }
.map-layer-menu.collapsed .layer-menu-header { border-bottom: none; }
.map-layer-menu.hidden { display: none !important; }

.layer-group-title {
  font-size: 0.62rem;
  font-weight: 700;
  color: var(--text-muted);
  margin: 5px 0 3px;
  text-transform: uppercase;
}

.layer-option {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.7rem;
  color: var(--text-main);
  padding: 3px 0;
  cursor: pointer;
  user-select: none;
}

.layer-option input[type="checkbox"], .layer-option input[type="radio"] {
  accent-color: #0284C7;
  cursor: pointer;
}

.map-action-btn-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
  background: var(--bg-glass);
  backdrop-filter: var(--blur-glass);
  border: 1px solid var(--border-medium);
  border-radius: 8px;
  padding: 4px;
  align-self: flex-end;
}

.btn-map-action {
  background: var(--bg-surface-secondary);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  width: 32px;
  height: 32px;
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  transition: all 0.15s ease;
}

.btn-map-action:hover {
  background: #0284C7;
  color: #FFF;
}

.btn-map-action.active {
  background: #0284C7;
  color: #FFF;
  border-color: #38BDF8;
  box-shadow: 0 0 10px rgba(2, 132, 199, 0.4);
}

/* ==========================================================================
   5. COLLAPSIBLE FLOATING MAP LEGEND (BOTTOM-RIGHT)
   ========================================================================== */
.floating-map-legend {
  position: absolute;
  bottom: calc(var(--timeline-height, 180px) + 14px);
  right: 10px;
  background: var(--bg-glass);
  backdrop-filter: var(--blur-glass);
  -webkit-backdrop-filter: var(--blur-glass);
  border: 1px solid var(--border-medium);
  border-radius: 10px;
  box-shadow: var(--shadow-glass);
  z-index: 500;
  width: 240px;
  overflow: hidden;
  transition: all 0.2s ease;
}

.legend-toggle-header {
  padding: 6px 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  background: var(--bg-surface-secondary);
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--text-main);
}

.legend-content-body {
  padding: 8px 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.66rem;
}

.legend-section-title {
  font-weight: 700;
  color: var(--text-dim);
  text-transform: uppercase;
  font-size: 0.6rem;
  margin-bottom: 2px;
}

.legend-item-row {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 2px;
  color: var(--text-muted);
}

.legend-swatch { width: 12px; height: 8px; border-radius: 2px; }
.legend-dot { width: 8px; height: 8px; border-radius: 50%; }

.floating-map-legend.collapsed .legend-content-body { display: none; }
.floating-map-legend.hidden { display: none !important; }

/* ==========================================================================
   6. NATIVE MULTI-TRACK 4-SWIMLANE TIMELINE STRIP (RESIZABLE HEIGHT, 100% WIDTH)
   ========================================================================== */
.bottom-timeline-strip {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: var(--timeline-height, 180px);
  min-height: 110px;
  max-height: 70vh;
  background: var(--timeline-bg);
  border-top: 1px solid var(--border-medium);
  box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.4);
  z-index: 600;
  display: flex;
  flex-direction: column;
  user-select: none;
  overflow: hidden;
}

/* Timeline Resize Handle (Top Border) */
.timeline-resize-handle {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 8px;
  cursor: row-resize;
  z-index: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  user-select: none;
  touch-action: none;
  background: transparent;
}

.timeline-resize-handle:hover,
.timeline-resize-handle.active {
  background: rgba(56, 189, 248, 0.15);
}

.timeline-resize-handle .resize-grip-bar {
  width: 50px;
  height: 3px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.25);
  transition: all 0.2s ease;
}

.timeline-resize-handle:hover .resize-grip-bar,
.timeline-resize-handle.active .resize-grip-bar {
  background: #38BDF8;
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.8);
  width: 66px;
}

/* Timeline Master Wrapper & Zoom Controls */
.timeline-master-wrapper {
  display: flex;
  width: 100%;
  height: 100%;
  position: relative;
}

/* Left Column for Lane Headers */
.timeline-left-headers {
  width: 52px;
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  background: var(--bg-surface);
  border-right: 1px solid var(--border-medium);
  z-index: 40;
}

.timeline-corner-spacer {
  height: 24px;
  background: var(--bg-surface-secondary);
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
}

.timeline-corner-title {
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.05em;
  color: var(--text-dim);
  display: flex;
  align-items: center;
  gap: 3px;
}

.timeline-lane-header {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 900;
  color: #FFF;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  letter-spacing: 0.05em;
  cursor: pointer;
  user-select: none;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.timeline-lane-header:hover {
  filter: brightness(1.25);
  box-shadow: inset 0 0 10px rgba(255, 255, 255, 0.2);
}
.timeline-lane-header.ms { background: var(--state-ms); }
.timeline-lane-header.tn { background: var(--state-tn); }
.timeline-lane-header.ky { background: var(--state-ky); }
.timeline-lane-header.ga { background: var(--state-ga); }

.timeline-lane-header.disabled {
  background: #1E293B !important;
  color: #64748B !important;
  opacity: 0.4 !important;
  border-left: 3px solid #334155 !important;
  text-decoration: line-through;
  filter: grayscale(1);
}
.timeline-lane-header.disabled:hover {
  opacity: 0.7 !important;
}

/* Right Column: Scrollable Ruler & Lanes (Drag-to-Pan) */
.timeline-scroll-canvas {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow-x: auto;
  overflow-y: hidden;
  position: relative;
  scrollbar-width: thin;
  cursor: grab;
}

.timeline-scroll-canvas.dragging {
  cursor: grabbing !important;
  user-select: none !important;
}

.timeline-scroll-canvas.dragging * {
  cursor: grabbing !important;
  user-select: none !important;
}

.timeline-scroll-canvas::-webkit-scrollbar {
  height: 6px;
}
.timeline-scroll-canvas::-webkit-scrollbar-thumb {
  background: var(--border-medium);
  border-radius: 3px;
}
.timeline-scroll-canvas::-webkit-scrollbar-thumb:hover {
  background: #0284C7;
}

/* Floating Zoom Toolbar in Top-Right of Timeline */
.timeline-zoom-toolbar {
  position: absolute;
  top: 2px;
  right: 10px;
  z-index: 60;
  display: flex;
  align-items: center;
  gap: 4px;
  background: rgba(11, 15, 23, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--border-medium);
  border-radius: 6px;
  padding: 2px 6px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.btn-zoom-ctrl {
  background: transparent;
  border: none;
  color: var(--text-muted);
  width: 24px;
  height: 22px;
  border-radius: 4px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.74rem;
  transition: all 0.15s ease;
}

.btn-zoom-ctrl:hover {
  background: rgba(2, 132, 199, 0.25);
  color: #38BDF8;
}

.btn-zoom-ctrl.fit-btn {
  width: auto;
  padding: 2px 7px;
  font-size: 0.68rem;
  font-weight: 700;
  font-family: var(--font-sans);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.btn-zoom-ctrl.fit-btn:hover {
  background: rgba(56, 189, 248, 0.2);
  border-color: #38BDF8;
  color: #FFFFFF;
}

.btn-zoom-ctrl.fit-btn.events-btn {
  background: rgba(16, 185, 129, 0.15);
  border-color: rgba(16, 185, 129, 0.35);
  color: #34D399;
}

.btn-zoom-ctrl.fit-btn.events-btn:hover {
  background: #10B981;
  border-color: #34D399;
  color: #FFFFFF;
}

.timeline-zoom-badge {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 800;
  color: var(--text-main);
  padding: 0 4px;
  min-width: 32px;
  text-align: center;
}

/* Inner Zoom Container */
.timeline-inner-zoom-container {
  min-width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: width 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.timeline-date-ruler {
  height: 24px;
  background: var(--bg-surface-secondary);
  border-bottom: 1px solid var(--border-subtle);
  position: relative;
  width: 100%;
  flex-shrink: 0;
}

.ruler-tick-mark {
  position: absolute;
  top: 0;
  bottom: 0;
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 700;
  color: var(--text-dim);
  display: flex;
  align-items: center;
  padding-left: 4px;
  border-left: 1px solid var(--timeline-grid);
  pointer-events: none;
  white-space: nowrap;
}

.timeline-lanes-area {
  flex: 1;
  display: flex;
  flex-direction: column;
  position: relative;
  width: 100%;
  cursor: pointer;
}

.timeline-swimlane {
  flex: 1;
  position: relative;
  border-bottom: 1px solid var(--timeline-grid);
  background: var(--timeline-lane-bg);
  display: flex;
  align-items: center;
  overflow: visible;
}

/* ==========================================================================
   VERTICAL TIERING:
   - Upper Plane (Y ~ 7px): Gap Intervals & Metric Badges
   - Lower Plane (Y ~ 14px - 19px): Event Milestone Nodes & Anti-Collision Stagger
   ========================================================================== */

/* 1. Event Milestone Nodes (Lower Plane) */
.timeline-event-node {
  position: absolute;
  top: 14px;
  height: 20px;
  min-width: 24px;
  max-width: 140px;
  padding: 0 6px;
  border-radius: 4px;
  background: var(--bg-surface);
  border: 1px solid var(--border-medium);
  display: flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  font-size: 8.5px;
  font-weight: 700;
  color: var(--text-main);
  white-space: nowrap;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.4);
  transform: translateX(-50%);
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease, top 0.15s ease;
  z-index: 10;
}

/* Anti-Collision Vertical Staggering */
.timeline-event-node.tier-staggered {
  top: 19px;
}

/* Event Connector Stem Pin linking to Top Track Baseline */
.timeline-event-node .node-stem-pin {
  position: absolute;
  top: -7px;
  left: 50%;
  width: 1px;
  height: 7px;
  background: rgba(255, 255, 255, 0.25);
  pointer-events: none;
  transition: all 0.15s ease;
}

.timeline-event-node.tier-staggered .node-stem-pin {
  top: -12px;
  height: 12px;
}

.timeline-event-node:hover {
  transform: translateX(-50%) scale(1.08);
  z-index: 35;
  border-color: #38BDF8;
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.6);
}

.timeline-event-node:hover .node-stem-pin {
  background: #38BDF8;
  width: 1.5px;
}

.timeline-event-node.active {
  background: #0284C7 !important;
  color: #FFFFFF !important;
  border-color: #38BDF8 !important;
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.8) !important;
  z-index: 30;
}

.timeline-event-node.active .node-stem-pin {
  background: #38BDF8;
  width: 2px;
}

.timeline-event-node.declaration-node {
  border-color: #F59E0B !important;
  background: rgba(245, 158, 11, 0.18) !important;
  box-shadow: 0 0 10px rgba(245, 158, 11, 0.45) !important;
}

.timeline-event-node.declaration-node .node-urgency-dot {
  background: #F59E0B !important;
  box-shadow: 0 0 8px #F59E0B !important;
}

.timeline-event-node.declaration-node.active {
  background: linear-gradient(135deg, #D97706, #B45309) !important;
  border-color: #FCD34D !important;
  box-shadow: 0 0 18px rgba(245, 158, 11, 0.9) !important;
}

.node-urgency-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}
.node-urgency-dot.red { background: var(--class-red); box-shadow: 0 0 6px var(--class-red); }
.node-urgency-dot.amber { background: var(--class-amber); box-shadow: 0 0 6px var(--class-amber); }
.node-urgency-dot.blue { background: var(--class-blue); box-shadow: 0 0 6px var(--class-blue); }
.node-urgency-dot.slate { background: var(--class-slate); }

.node-label-text {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Event Tooltip on Hover */
.node-hover-tooltip {
  position: absolute;
  bottom: 26px;
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  background: rgba(11, 15, 23, 0.96);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--border-medium);
  border-radius: 6px;
  padding: 6px 10px;
  min-width: 220px;
  max-width: 300px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.6);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s ease, transform 0.15s ease;
  z-index: 200;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.timeline-event-node:hover .node-hover-tooltip {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.node-hover-tooltip .tt-header {
  font-family: var(--font-mono);
  font-size: 8.5px;
  font-weight: 800;
  color: #38BDF8;
  letter-spacing: 0.05em;
}

.node-hover-tooltip .tt-title {
  font-size: 11px;
  font-weight: 800;
  color: #FFF;
  line-height: 1.25;
  white-space: normal;
}

.node-hover-tooltip .tt-time {
  font-size: 9px;
  color: #94A3B8;
  font-family: var(--font-mono);
}

/* ==========================================================================
   INTERLEAVED GAP METRIC LAYERS & CYCLE TOGGLE
   ========================================================================== */
.timeline-metric-toggle-bar {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  background: rgba(15, 23, 42, 0.92);
  padding: 2px 4px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  margin-right: 8px;
}

.timeline-metric-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 0.68rem;
  font-weight: 700;
  padding: 3px 7px;
  border-radius: 4px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.timeline-metric-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #FFFFFF;
}

.timeline-metric-btn.active {
  background: #0284C7;
  color: #FFFFFF;
  box-shadow: 0 1px 4px rgba(2, 132, 199, 0.5);
}

.timeline-metric-btn.cycle-btn {
  background: rgba(168, 85, 247, 0.15);
  border: 1px solid rgba(168, 85, 247, 0.35);
  color: #C084FC;
  padding: 3px 6px;
}

.timeline-metric-btn.cycle-btn:hover {
  background: #A855F7;
  color: #FFFFFF;
}

/* 2. Gap Interval Connector Line & Badge (Upper Plane & Clamped) */
.timeline-gap-interval {
  position: absolute;
  top: 7px;
  height: 8px;
  border-top: 1.5px dashed rgba(56, 189, 248, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 5;
  pointer-events: auto;
  cursor: pointer;
  overflow: visible;
  transition: all 0.2s ease;
}

.timeline-gap-interval:hover {
  border-top-color: #38BDF8;
  border-top-style: solid;
  z-index: 40;
}

/* Clamped Responsive Badge Container */
.gap-interval-badge {
  position: absolute;
  top: -8px;
  left: 50%;
  transform: translateX(-50%);
  max-width: calc(100% - 6px);
  background: rgba(11, 15, 23, 0.94);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid rgba(56, 189, 248, 0.35);
  border-radius: 12px;
  padding: 1px 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  font-size: 8px;
  font-weight: 700;
  color: #F8FAFC;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
  cursor: pointer;
  transition: all 0.2s ease;
}

/* Width-Aware Responsive Modes */
.gap-interval-badge.badge-compact {
  padding: 1px 5px;
  font-size: 7.8px;
}

.gap-interval-badge.badge-minimal {
  padding: 0;
  border-radius: 50%;
  width: 15px;
  height: 15px;
  font-size: 8.5px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(15, 23, 42, 0.95);
  border-color: rgba(56, 189, 248, 0.6);
}

.gap-interval-badge.badge-micro {
  padding: 0;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(56, 189, 248, 0.7);
  border: none;
  box-shadow: 0 0 4px rgba(56, 189, 248, 0.6);
}

.gap-metric-dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: #38BDF8;
}

.timeline-gap-interval:hover .gap-interval-badge {
  transform: translateX(-50%) scale(1.1);
  border-color: #38BDF8;
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.6);
  background: #0F172A;
}

.gap-duration-pill {
  font-family: var(--font-mono);
  color: #94A3B8;
  font-size: 7.5px;
  border-right: 1px solid rgba(255, 255, 255, 0.15);
  padding-right: 4px;
  flex-shrink: 0;
}

.gap-metric-pill {
  color: #38BDF8;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.gap-metric-pill.weather { color: #38BDF8; }
.gap-metric-pill.hazards { color: #F59E0B; }
.gap-metric-pill.grid_impact { color: #10B981; }
.gap-metric-pill.human_impact { color: #EF4444; }

/* Gap Interval Hover Dossier Popover */
.gap-hover-tooltip {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  background: rgba(11, 15, 23, 0.96);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--border-medium);
  border-radius: 8px;
  padding: 10px 12px;
  width: 320px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.7);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 210;
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-align: left;
}

.timeline-gap-interval:hover .gap-hover-tooltip {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.gap-tt-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 4px;
}

.gap-tt-tag {
  font-family: var(--font-mono);
  font-size: 8px;
  font-weight: 800;
  color: #38BDF8;
  background: rgba(56, 189, 248, 0.15);
  padding: 2px 6px;
  border-radius: 4px;
}

.gap-tt-duration {
  font-family: var(--font-mono);
  font-size: 8.5px;
  color: #CBD5E1;
}

.gap-tt-location {
  font-size: 9.5px;
  font-weight: 700;
  color: #F8FAFC;
  display: flex;
  align-items: center;
  gap: 4px;
}

.gap-tt-grid {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-top: 2px;
}

.gap-tt-layer {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 5px;
  padding: 4px 6px;
  font-size: 8.5px;
  line-height: 1.35;
}

.gap-tt-layer.active-layer {
  background: rgba(56, 189, 248, 0.1);
  border-color: rgba(56, 189, 248, 0.4);
}

.gap-tt-layer-title {
  font-weight: 800;
  color: #94A3B8;
  font-size: 8px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 2px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.gap-tt-layer.active-layer .gap-tt-layer-title {
  color: #38BDF8;
}

.gap-tt-layer-val {
  color: #E2E8F0;
  font-weight: 600;
}

.gap-tt-sub {
  color: #94A3B8;
  font-size: 8px;
}

.gap-tt-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 4px;
  display: flex;
  justify-content: flex-end;
}

.gap-tt-hint {
  font-size: 7.5px;
  color: #64748B;
  font-style: italic;
}

/* Playhead Cursor Line */
.timeline-playhead-cursor {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 2px;
  background: #EF4444;
  box-shadow: 0 0 10px #EF4444;
  pointer-events: none;
  z-index: 50;
  transition: left 0.15s ease;
}

/* Custom Pulse Ring */
.custom-pulse-marker { position: relative; }
.pulse-ring {
  position: absolute;
  top: -15px;
  left: -15px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  animation: pulse-ring-anim 1.6s cubic-bezier(0.215, 0.61, 0.355, 1) infinite;
}
.pulse-center {
  position: absolute;
  top: -4px;
  left: -4px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #FFFFFF;
  box-shadow: 0 0 8px #FFFFFF;
}
.pulse-ms { border: 3px solid var(--state-ms); background: rgba(56, 189, 248, 0.3); }
.pulse-tn { border: 3px solid var(--state-tn); background: rgba(245, 158, 11, 0.3); }
.pulse-ky { border: 3px solid var(--state-ky); background: rgba(16, 185, 129, 0.3); }
.pulse-ga { border: 3px solid var(--state-ga); background: rgba(168, 85, 247, 0.3); }

@keyframes pulse-ring-anim {
  0% { transform: scale(0.3); opacity: 1; }
  80%, 100% { transform: scale(2.4); opacity: 0; }
}

.map-tooltip {
  background: var(--bg-surface) !important;
  color: var(--text-main) !important;
  border: 1px solid var(--border-medium) !important;
  font-family: var(--font-sans) !important;
  font-size: 11px !important;
  border-radius: 4px !important;
  padding: 4px 8px !important;
  box-shadow: var(--shadow-popup) !important;
}

@media (max-width: 1100px) {
  .hud-outages-strip { display: none; }
}
@media (max-width: 768px) {
  .sidebar-situation-card { width: calc(100vw - 20px); bottom: 190px; }
  .hud-voll-block, .hud-fatalities-block { display: none; }
}


/* ==========================================================================
   HUD INFO (i) BUTTONS & EXTENSIONS
   ========================================================================== */
.brand-title-row {
  display: flex;
  align-items: center;
  gap: 6px;
}

.hud-timestamp-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
}

.hud-info-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 0.72rem;
  cursor: pointer;
  padding: 2px 3px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
  opacity: 0.75;
  line-height: 1;
}

.hud-info-btn:hover {
  color: #38BDF8;
  opacity: 1;
  transform: scale(1.15);
}

.hud-info-btn.pill-info-btn {
  font-size: 0.58rem;
  padding: 0 2px;
}

.hud-toggle-wrapper {
  display: flex;
  align-items: center;
  gap: 5px;
}

/* ==========================================================================
   METRIC EXPLANATION & CALCULATION MODAL
   ========================================================================== */
.metric-info-modal {
  position: fixed;
  inset: 0;
  z-index: 6000;
  background: rgba(2, 6, 23, 0.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease-out;
}

.metric-info-modal.active {
  opacity: 1;
  pointer-events: auto;
}

.metric-modal-dialog {
  background: var(--bg-surface-primary);
  border: 1px solid var(--border-medium);
  border-radius: 14px;
  box-shadow: var(--shadow-modal);
  width: 100%;
  max-width: 860px;
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: scale(0.96) translateY(8px);
  transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

.metric-info-modal.active .metric-modal-dialog {
  transform: scale(1) translateY(0);
}

.metric-modal-header {
  padding: 14px 18px;
  border-bottom: 1px solid var(--border-subtle);
  background: var(--bg-surface-secondary);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.metric-modal-title {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn-close-modal {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 0.9rem;
  width: 28px;
  height: 28px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
}

.btn-close-modal:hover {
  background: rgba(239, 68, 68, 0.15);
  color: #EF4444;
}

.metric-modal-tabs {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: var(--bg-surface-secondary);
  border-bottom: 1px solid var(--border-subtle);
  overflow-x: auto;
  scrollbar-width: thin;
}

.metric-tab-btn {
  background: var(--bg-surface-primary);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 5px 10px;
  border-radius: 6px;
  cursor: pointer;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.15s ease;
}

.metric-tab-btn:hover {
  color: var(--text-main);
  border-color: var(--border-medium);
}

.metric-tab-btn.active {
  background: #0284C7;
  color: #FFF;
  border-color: #38BDF8;
  box-shadow: 0 0 10px rgba(2, 132, 199, 0.4);
}

.metric-modal-body {
  padding: 16px 20px;
  overflow-y: auto;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.metric-card {
  background: var(--bg-surface-secondary);
  border: 1px solid var(--border-medium);
  border-radius: 10px;
  padding: 16px;
  transition: all 0.25s ease;
}

.metric-card.highlighted {
  border-color: #38BDF8;
  box-shadow: 0 0 16px rgba(56, 189, 248, 0.35);
  animation: pulseHighlight 1.5s ease-out;
}

@keyframes pulseHighlight {
  0% { transform: scale(0.99); }
  50% { transform: scale(1.01); }
  100% { transform: scale(1); }
}

.metric-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-subtle);
}

.metric-card-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}

.metric-card-title {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--text-main);
}

.metric-card-tag {
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--text-muted);
}

.metric-card-content h4 {
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--text-main);
  margin: 12px 0 6px 0;
  display: flex;
  align-items: center;
  gap: 6px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.metric-card-content p {
  font-size: 0.8rem;
  line-height: 1.55;
  color: var(--text-main);
  opacity: 0.9;
}

.metric-list {
  font-size: 0.78rem;
  line-height: 1.55;
  color: var(--text-main);
  padding-left: 18px;
  margin-top: 6px;
}

.metric-list li {
  margin-bottom: 4px;
}

.metric-formula-box {
  background: #020617;
  border: 1px solid var(--border-medium);
  border-radius: 8px;
  padding: 12px 16px;
  margin: 10px 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  overflow-x: auto;
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.4);
}

/* VoLL Time-Series Chart Component Styles */
.voll-chart-container {
  background: var(--bg-surface-secondary);
  border: 1px solid var(--border-medium);
  border-radius: 10px;
  padding: 14px;
  margin: 14px 0 20px 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.2);
}

.voll-chart-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

.voll-state-chips {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

.voll-chip {
  background: var(--bg-surface-primary);
  border: 1px solid var(--border-medium);
  color: var(--text-muted);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 6px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: all 0.15s ease;
}

.voll-chip:hover {
  background: var(--bg-glass-hover);
  color: var(--text-main);
  border-color: var(--border-subtle);
}

.voll-chip.active {
  background: #0284C7;
  color: #FFFFFF;
  border-color: #38BDF8;
  box-shadow: 0 2px 6px rgba(2, 132, 199, 0.35);
}

[data-theme="dark"] .voll-chip.active {
  background: #0284C7;
  color: #FFFFFF;
}

.voll-chip.chip-ms.active { background: #DC2626; border-color: #EF4444; box-shadow: 0 2px 6px rgba(220, 38, 38, 0.35); }
.voll-chip.chip-tn.active { background: #EA580C; border-color: #F97316; box-shadow: 0 2px 6px rgba(234, 88, 12, 0.35); }
.voll-chip.chip-ky.active { background: #2563EB; border-color: #3B82F6; box-shadow: 0 2px 6px rgba(37, 99, 235, 0.35); }
.voll-chip.chip-ga.active { background: #059669; border-color: #10B981; box-shadow: 0 2px 6px rgba(5, 150, 105, 0.35); }

.voll-unit-toggle {
  display: flex;
  background: var(--bg-surface-primary);
  border: 1px solid var(--border-medium);
  border-radius: 6px;
  padding: 2px;
}

.voll-unit-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.voll-unit-btn.active {
  background: #0284C7;
  color: #FFFFFF;
}

[data-theme="dark"] .voll-unit-btn.active {
  background: #38BDF8;
  color: #0F172A;
}

.voll-svg-wrapper {
  position: relative;
  width: 100%;
  height: 240px;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  overflow: hidden;
}

[data-theme="light"] .voll-svg-wrapper {
  background: #FFFFFF;
}

.voll-timeseries-svg {
  width: 100%;
  height: 100%;
  display: block;
  cursor: crosshair;
}

.voll-chart-tooltip {
  position: absolute;
  pointer-events: none;
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid #38BDF8;
  border-radius: 6px;
  padding: 8px 12px;
  font-size: 0.74rem;
  color: #F8FAFC;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.45);
  display: none;
  z-index: 20;
  max-width: 250px;
  transform: translate(-50%, -110%);
}

.voll-chart-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

@media (max-width: 640px) {
  .voll-chart-stats {
    grid-template-columns: repeat(2, 1fr);
  }
}

.voll-stat-chip {
  background: var(--bg-surface-primary);
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
  padding: 6px 10px;
  display: flex;
  flex-direction: column;
}

.voll-stat-label {
  font-size: 0.6rem;
  font-weight: 800;
  color: var(--text-muted);
  text-transform: uppercase;
}

.voll-stat-val {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 800;
  color: #38BDF8;
  margin-top: 2px;
}

[data-theme="light"] .metric-formula-box {
  background: #F8FAFC;
  border-color: #CBD5E1;
  box-shadow: inset 0 1px 4px rgba(0, 0, 0, 0.06);
}

.formula-line {
  font-size: 0.88rem;
  line-height: 1.6;
  color: #38BDF8;
  user-select: text;
  overflow-x: auto;
  padding: 2px 0;
}

[data-theme="light"] .formula-line {
  color: #0369A1;
}

.formula-line .katex-display {
  margin: 4px 0 !important;
  text-align: left;
}

.formula-line .katex {
  font-size: 1.05em;
}

.metric-note {
  font-size: 0.74rem;
  color: var(--text-muted);
  font-style: italic;
  margin-top: 6px;
}

.metric-table-wrapper {
  overflow-x: auto;
  margin-top: 8px;
  border-radius: 8px;
  border: 1px solid var(--border-subtle);
}

.metric-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.74rem;
  text-align: left;
}

.metric-table th {
  background: var(--bg-surface-primary);
  color: var(--text-muted);
  font-weight: 800;
  padding: 8px 10px;
  border-bottom: 1px solid var(--border-subtle);
  white-space: nowrap;
}

.metric-table td {
  padding: 7px 10px;
  border-bottom: 1px solid var(--border-subtle);
  color: var(--text-main);
}

.metric-table tr:last-child td {
  border-bottom: none;
}

.metric-modal-footer {
  padding: 10px 18px;
  border-top: 1px solid var(--border-subtle);
  background: var(--bg-surface-secondary);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.metric-modal-citation {
  font-size: 0.7rem;
  color: var(--text-muted);
}

.btn-ctrl-action {
  background: #0284C7;
  color: #FFF;
  border: none;
  font-size: 0.75rem;
  font-weight: 800;
  padding: 6px 14px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-ctrl-action:hover {
  background: #0369A1;
  box-shadow: 0 0 10px rgba(2, 132, 199, 0.4);
}

/* ==========================================================================
   MAP SETTINGS & ADVANCED OPTIONS MODAL
   ========================================================================== */
.map-settings-modal {
  position: fixed;
  inset: 0;
  z-index: 6000;
  background: rgba(2, 6, 23, 0.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease-out;
}

.map-settings-modal.active {
  opacity: 1;
  pointer-events: auto;
}

.map-settings-dialog {
  background: var(--bg-surface-primary);
  border: 1px solid var(--border-medium);
  border-radius: 14px;
  box-shadow: var(--shadow-modal);
  width: 100%;
  max-width: 780px;
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: scale(0.96) translateY(8px);
  transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

.map-settings-modal.active .map-settings-dialog {
  transform: scale(1) translateY(0);
}

.map-settings-header {
  padding: 14px 18px;
  border-bottom: 1px solid var(--border-subtle);
  background: var(--bg-surface-secondary);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.map-settings-title {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 10px;
}

.map-settings-body {
  padding: 16px 20px;
  overflow-y: auto;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.settings-section {
  background: var(--bg-surface-secondary);
  border: 1px solid var(--border-medium);
  border-radius: 10px;
  padding: 14px 16px;
}

.settings-section-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border-subtle);
}

.settings-section-header h4 {
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--text-main);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.settings-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.settings-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.settings-label-col {
  flex: 1;
}

.settings-label {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-main);
  display: block;
}

.settings-desc {
  font-size: 0.68rem;
  color: var(--text-muted);
  line-height: 1.4;
  margin-top: 2px;
}

.settings-input-col {
  display: flex;
  align-items: center;
  gap: 8px;
}

.settings-input-col.slider-col {
  min-width: 170px;
}

.settings-slider {
  flex: 1;
  accent-color: #0284C7;
  cursor: pointer;
}

.slider-badge {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  color: #38BDF8;
  min-width: 42px;
  text-align: right;
}

.settings-select {
  background: var(--bg-surface-primary);
  border: 1px solid var(--border-medium);
  color: var(--text-main);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 5px 10px;
  border-radius: 6px;
  cursor: pointer;
  outline: none;
}

.switch-toggle {
  position: relative;
  display: inline-block;
  width: 40px;
  height: 22px;
}

.switch-toggle input {
  opacity: 0;
  width: 0;
  height: 0;
}

.switch-slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background-color: var(--bg-surface-primary);
  border: 1px solid var(--border-medium);
  transition: .25s;
  border-radius: 22px;
}

.switch-slider:before {
  position: absolute;
  content: "";
  height: 14px;
  width: 14px;
  left: 3px;
  bottom: 3px;
  background-color: var(--text-muted);
  transition: .25s;
  border-radius: 50%;
}

.switch-toggle input:checked + .switch-slider {
  background-color: #0284C7;
  border-color: #38BDF8;
}

.switch-toggle input:checked + .switch-slider:before {
  transform: translateX(18px);
  background-color: #FFFFFF;
}

.map-settings-footer {
  padding: 12px 18px;
  border-top: 1px solid var(--border-subtle);
  background: var(--bg-surface-secondary);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.btn-ctrl-secondary {
  background: transparent;
  border: 1px solid var(--border-medium);
  color: var(--text-muted);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.15s ease;
}

.btn-ctrl-secondary:hover {
  background: var(--bg-surface-primary);
  color: var(--text-main);
  border-color: var(--border-subtle);
}

/* ==========================================================================
   BANNER TELEMETRY BAR CUSTOMIZER (ORDER & VISIBILITY)
   ========================================================================== */
.banner-customizer-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: var(--bg-surface-primary);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 8px;
  max-height: 280px;
  overflow-y: auto;
}

.banner-customizer-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-surface-secondary);
  border: 1px solid var(--border-medium);
  border-radius: 6px;
  padding: 6px 10px;
  gap: 10px;
  transition: all 0.15s ease;
}

.banner-customizer-item:hover {
  border-color: var(--border-subtle);
  background: var(--bg-glass-hover);
}

.banner-customizer-item.is-disabled {
  opacity: 0.45;
  filter: grayscale(0.6);
}

.customizer-item-drag {
  display: flex;
  align-items: center;
  gap: 4px;
}

.btn-order-move {
  background: transparent;
  border: 1px solid var(--border-medium);
  color: var(--text-muted);
  width: 24px;
  height: 24px;
  border-radius: 4px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  transition: all 0.15s ease;
}

.btn-order-move:hover:not(:disabled) {
  background: #0284C7;
  color: #FFF;
  border-color: #38BDF8;
}

.btn-order-move:disabled {
  opacity: 0.25;
  cursor: not-allowed;
}

.customizer-item-info {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  min-width: 0;
}

.customizer-item-icon {
  width: 24px;
  height: 24px;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  flex-shrink: 0;
}

.customizer-item-label {
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.customizer-item-pos {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--text-muted);
  background: rgba(0, 0, 0, 0.2);
  padding: 2px 6px;
  border-radius: 4px;
  min-width: 24px;
  text-align: center;
}

.customizer-item-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

/* ==========================================================================
   INCIDENT STORYBOOK & PRINTABLE DOSSIER MODAL
   ========================================================================== */
.storybook-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 15, 30, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 2500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.storybook-modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.storybook-modal-container {
  background: var(--bg-surface-primary);
  border: 1px solid var(--border-medium);
  border-radius: 14px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  width: 100%;
  max-width: 1050px;
  height: 88vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.storybook-topbar {
  padding: 12px 20px;
  background: #0f172a;
  border-bottom: 1px solid var(--border-medium);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-shrink: 0;
  flex-wrap: wrap;
}

.storybook-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.storybook-brand-icon {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: rgba(56, 189, 248, 0.15);
  border: 1px solid rgba(56, 189, 248, 0.35);
  color: #38BDF8;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}

.storybook-brand-text {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.storybook-brand h3 {
  font-size: 0.96rem;
  font-weight: 800;
  color: #FFFFFF;
  letter-spacing: -0.01em;
  margin: 0;
  white-space: nowrap;
}

.storybook-page-badge {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 800;
  color: #38BDF8;
  background: rgba(2, 132, 199, 0.2);
  border: 1px solid rgba(56, 189, 248, 0.4);
  padding: 3px 9px;
  border-radius: 6px;
  letter-spacing: 0.03em;
  white-space: nowrap;
}

.storybook-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

/* View Switcher Tabs */
.storybook-view-switcher {
  display: inline-flex;
  background: rgba(15, 23, 42, 0.9);
  padding: 3px;
  border-radius: 8px;
  border: 1px solid var(--border-medium);
  gap: 3px;
}

.storybook-tab-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  padding: 5px 12px;
  border-radius: 6px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.76rem;
  font-weight: 700;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.storybook-tab-btn i {
  font-size: 0.8rem;
}

.storybook-tab-btn:hover {
  color: #FFFFFF;
  background: rgba(255, 255, 255, 0.08);
}

.storybook-tab-btn.active {
  background: #0284C7;
  color: #FFFFFF;
  box-shadow: 0 2px 6px rgba(2, 132, 199, 0.4);
}

/* Navigation Group Buttons */
.storybook-nav-btn {
  background: var(--bg-surface-primary);
  border: 1px solid var(--border-medium);
  color: var(--text-muted);
  width: 32px;
  height: 32px;
  border-radius: 6px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  transition: all 0.15s ease;
  flex-shrink: 0;
}

.storybook-nav-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #FFFFFF;
  border-color: #38BDF8;
}

.storybook-select {
  background: var(--bg-surface-primary);
  border: 1px solid var(--border-medium);
  color: var(--text-main);
  font-size: 0.76rem;
  font-weight: 600;
  height: 32px;
  padding: 0 10px;
  border-radius: 6px;
  max-width: 250px;
  cursor: pointer;
  outline: none;
}

.storybook-select:focus {
  border-color: #38BDF8;
}

/* Print Button */
.storybook-print-btn {
  background: linear-gradient(135deg, #0284C7, #0369A1);
  border: 1px solid #38BDF8;
  color: #FFFFFF;
  height: 32px;
  padding: 0 13px;
  font-weight: 700;
  border-radius: 6px;
  font-size: 0.76rem;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(2, 132, 199, 0.3);
}

.storybook-print-btn:hover {
  background: linear-gradient(135deg, #0369A1, #075985);
  transform: translateY(-1px);
}

/* Close Modal Button */
.storybook-close-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 1.4rem;
  width: 32px;
  height: 32px;
  border-radius: 6px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  transition: all 0.15s ease;
}

.storybook-close-btn:hover {
  color: #EF4444;
  background: rgba(239, 68, 68, 0.15);
}

.storybook-page-body {
  flex: 1;
  overflow-y: auto;
  padding: 24px;
  background: var(--bg-surface-primary);
}

.storybook-record-card {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 24px;
  align-items: start;
}

@media (max-width: 860px) {
  .storybook-record-card {
    grid-template-columns: 1fr;
  }
}

.storybook-poster-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.storybook-poster-frame {
  width: 100%;
  aspect-ratio: 1 / 1;
  background: #000;
  border-radius: 10px;
  border: 2px solid var(--border-medium);
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
}

.storybook-poster-frame img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.storybook-poster-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.storybook-info-col {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.storybook-header-box {
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 12px;
}

.storybook-event-code {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 800;
  color: #38BDF8;
  letter-spacing: 0.05em;
}

.storybook-headline {
  font-size: 1.25rem;
  font-weight: 900;
  color: var(--text-main);
  margin: 4px 0 8px 0;
  line-height: 1.25;
}

.storybook-timestamps {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 0.74rem;
  color: var(--text-muted);
}

.storybook-role-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--bg-surface-secondary);
  border: 1px solid var(--border-medium);
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-main);
}

.storybook-statement-box {
  background: var(--bg-surface-secondary);
  border-left: 3.5px solid #0284C7;
  padding: 12px 14px;
  border-radius: 0 8px 8px 0;
  font-size: 0.85rem;
  line-height: 1.6;
  color: var(--text-main);
}

.storybook-telemetry-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

@media (max-width: 600px) {
  .storybook-telemetry-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.storybook-tele-card {
  background: var(--bg-surface-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
  padding: 6px 8px;
  display: flex;
  flex-direction: column;
}

.storybook-tele-label {
  font-size: 0.6rem;
  font-weight: 800;
  color: var(--text-muted);
  text-transform: uppercase;
}

.storybook-tele-val {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--text-main);
  margin-top: 2px;
}

.storybook-source-box {
  margin-top: 6px;
  font-size: 0.74rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
}

.storybook-source-box a {
  color: #38BDF8;
  text-decoration: none;
  font-weight: 700;
}


.storybook-gallery-filter-bar {
  padding: 8px 18px;
  background: var(--bg-surface-secondary);
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.gallery-filter-label {
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-right: 4px;
}

.gallery-chip {
  background: var(--bg-surface-primary);
  border: 1px solid var(--border-medium);
  color: var(--text-main);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.gallery-chip:hover {
  background: rgba(56, 189, 248, 0.15);
  border-color: #38BDF8;
}

/* =========================================================================
   CONCEPT POSTERS GALLERY & LIGHTBOX MODAL STYLES (SETTINGS PAGE)
   ========================================================================= */
.concept-gallery-filter-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 16px;
  background: rgba(0, 0, 0, 0.2);
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid var(--border-subtle);
}

.concept-filter-chip {
  background: var(--bg-surface-primary);
  border: 1px solid var(--border-medium);
  color: var(--text-main);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.concept-filter-chip:hover {
  background: rgba(168, 85, 247, 0.15);
  border-color: #A855F7;
  color: #FFFFFF;
}

.concept-filter-chip.active {
  background: #A855F7;
  color: #FFFFFF;
  border-color: #C084FC;
  box-shadow: 0 2px 6px rgba(168, 85, 247, 0.35);
}

.concept-posters-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
  margin-top: 10px;
}

.concept-poster-card {
  background: var(--bg-surface-secondary);
  border: 1px solid var(--border-medium);
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  position: relative;
}

.concept-poster-card:hover {
  transform: translateY(-4px);
  border-color: #A855F7;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.5), 0 0 15px rgba(168, 85, 247, 0.2);
}

.concept-poster-img-wrap {
  width: 100%;
  aspect-ratio: 9 / 12;
  background: #090D16;
  overflow: hidden;
  position: relative;
}

.concept-poster-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.concept-poster-card:hover .concept-poster-img-wrap img {
  transform: scale(1.03);
}

.concept-card-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #FFFFFF;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 4px;
}

.concept-state-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  color: #FFFFFF;
  font-size: 0.68rem;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 4px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.concept-poster-body {
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.concept-poster-title {
  font-size: 0.86rem;
  font-weight: 800;
  color: #FFFFFF;
  line-height: 1.3;
  margin-bottom: 6px;
}

.concept-poster-role {
  font-size: 0.72rem;
  font-weight: 700;
  color: #38BDF8;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 5px;
}

.concept-poster-desc {
  font-size: 0.72rem;
  color: var(--text-muted);
  line-height: 1.45;
  margin-top: auto;
}

.concept-poster-footer {
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.concept-inspect-btn {
  font-size: 0.72rem;
  font-weight: 700;
  color: #A855F7;
  background: rgba(168, 85, 247, 0.12);
  border: 1px solid rgba(168, 85, 247, 0.3);
  padding: 3px 8px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* =========================================================================
   UNIVERSAL HIGH-RESOLUTION LIGHTBOX MODAL
   ========================================================================= */
.poster-lightbox-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.88);
  backdrop-filter: blur(8px);
  z-index: 99999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.poster-lightbox-overlay.active {
  display: flex;
}

.poster-lightbox-container {
  background: var(--bg-surface-secondary);
  border: 1px solid var(--border-medium);
  border-radius: 12px;
  width: 100%;
  max-width: 900px;
  max-height: 92vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7);
}

.poster-lightbox-header {
  padding: 14px 20px;
  background: #0f172a;
  border-bottom: 1px solid var(--border-medium);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-shrink: 0;
}

.poster-lightbox-title-box {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.poster-lightbox-tag {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 800;
  color: #A855F7;
  letter-spacing: 0.05em;
}

.poster-lightbox-title-box h3 {
  font-size: 1.1rem;
  font-weight: 800;
  color: #FFFFFF;
  margin: 0;
}

.poster-lightbox-role {
  font-size: 0.76rem;
  font-weight: 700;
  color: #38BDF8;
}

.poster-lightbox-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.lightbox-close-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 1.5rem;
  width: 32px;
  height: 32px;
  border-radius: 6px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  transition: all 0.15s ease;
}

.lightbox-close-btn:hover {
  color: #EF4444;
  background: rgba(239, 68, 68, 0.15);
}

.poster-lightbox-body {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  background: #090D16;
}

.poster-lightbox-image-wrap {
  max-width: 580px;
  width: 100%;
  border-radius: 8px;
  overflow: hidden;
  border: 2px solid var(--border-medium);
  box-shadow: 0 10px 30px rgba(0,0,0,0.6);
}

.poster-lightbox-image-wrap img {
  width: 100%;
  height: auto;
  display: block;
}

.poster-lightbox-caption {
  max-width: 600px;
  text-align: center;
  font-size: 0.85rem;
  line-height: 1.5;
  color: #CBD5E1;
}

.gallery-chip.active {
  background: #0284C7;
  border-color: #38BDF8;
  color: #FFFFFF;
}

.storybook-gallery-body {
  flex: 1;
  overflow-y: auto;
  padding: 18px;
  background: var(--bg-surface-primary);
}

.storybook-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 16px;
}

.storybook-gallery-card {
  background: var(--bg-surface-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.storybook-gallery-card:hover {
  transform: translateY(-4px);
  border-color: #38BDF8;
  box-shadow: 0 10px 24px rgba(2, 132, 199, 0.35);
}

.storybook-gallery-poster-wrap {
  width: 100%;
  aspect-ratio: 1 / 1;
  background: #050811;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.storybook-gallery-poster-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.storybook-gallery-card:hover .storybook-gallery-poster-wrap img {
  transform: scale(1.04);
}

.gallery-card-badge {
  position: absolute;
  top: 6px;
  left: 6px;
  background: rgba(15, 23, 42, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #FFFFFF;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 4px;
  backdrop-filter: blur(4px);
}

.gallery-state-badge {
  position: absolute;
  top: 6px;
  right: 6px;
  color: #FFFFFF;
  font-size: 0.65rem;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 4px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.4);
}

.storybook-gallery-info {
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}

.gallery-info-title {
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.25;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.gallery-info-time {
  font-size: 0.68rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 4px;
}

.gallery-info-metrics {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 6px;
  border-top: 1px solid var(--border-subtle);
  font-size: 0.65rem;
  font-family: var(--font-mono);
  font-weight: 700;
}

.gallery-metric-outages {
  color: #F59E0B;
}

.gallery-metric-deaths {
  color: #EF4444;
}

.storybook-print-all-container {
  display: none;
}

/* Print-to-PDF / Paper Styling */
@media print {
  body * {
    visibility: hidden;
  }
  
  #storybook-modal,
  #storybook-modal .storybook-modal-container,
  #storybook-print-all-container,
  #storybook-print-all-container * {
    visibility: visible;
  }

  #storybook-modal {
    position: static;
    background: transparent;
    padding: 0;
    overflow: visible;
    opacity: 1;
    pointer-events: auto;
  }

  #storybook-modal .storybook-modal-container {
    border: none;
    box-shadow: none;
    height: auto;
    max-width: 100%;
    overflow: visible;
    background: #FFFFFF !important;
    color: #000000 !important;
  }

  .storybook-topbar,
  .storybook-page-body {
    display: none !important;
  }

  .storybook-print-all-container {
    display: block !important;
  }

  .storybook-print-page {
    page-break-after: always;
    page-break-inside: avoid;
    break-after: page;
    padding: 20mm;
    box-sizing: border-box;
    height: 100vh;
    display: grid;
    grid-template-columns: 42% 58%;
    gap: 20px;
    background: #FFFFFF !important;
    color: #0F172A !important;
  }

  .storybook-print-page .storybook-poster-frame {
    border: 1px solid #CBD5E1;
    box-shadow: none;
  }

  .storybook-print-page .storybook-statement-box {
    background: #F8FAFC !important;
    color: #0F172A !important;
    border-left: 3px solid #0284C7 !important;
  }

  .storybook-print-page .storybook-tele-card {
    background: #F8FAFC !important;
    border: 1px solid #E2E8F0 !important;
    color: #0F172A !important;
  }

  .storybook-print-page .storybook-tele-val {
    color: #0284C7 !important;
  }
}

/* ==========================================================================
   GLOBAL TOPMOST TIMELINE POPUP / FLOATING TOOLTIP PORTAL (Z-INDEX: 10000)
   ========================================================================== */
.timeline-global-tooltip {
  position: fixed;
  z-index: 10000;
  background: rgba(11, 15, 23, 0.97);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--border-medium);
  border-radius: 10px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.8), 0 0 24px rgba(56, 189, 248, 0.25);
  padding: 12px 14px;
  max-width: 380px;
  min-width: 260px;
  color: #F8FAFC;
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity 0.18s cubic-bezier(0.16, 1, 0.3, 1), transform 0.18s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.18s ease;
  pointer-events: none;
  text-align: left;
}

[data-theme="light"] .timeline-global-tooltip {
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid #CBD5E1;
  color: #0F172A;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.2), 0 0 20px rgba(2, 132, 199, 0.15);
}

.timeline-global-tooltip.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.timeline-global-tooltip .tt-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-bottom: 6px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  margin-bottom: 8px;
}

[data-theme="light"] .timeline-global-tooltip .tt-header-row {
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.timeline-global-tooltip .tt-tag {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 800;
  color: #38BDF8;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

[data-theme="light"] .timeline-global-tooltip .tt-tag {
  color: #0284C7;
}

.timeline-global-tooltip .tt-duration {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: #94A3B8;
  font-weight: 700;
}

.timeline-global-tooltip .tt-location {
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.timeline-global-tooltip .tt-layers-grid {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.timeline-global-tooltip .tt-layer-item {
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  padding: 6px 9px;
  transition: all 0.15s ease;
}

[data-theme="light"] .timeline-global-tooltip .tt-layer-item {
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
}

.timeline-global-tooltip .tt-layer-item.active-layer {
  border-color: #38BDF8;
  background: rgba(2, 132, 199, 0.18);
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.3);
}

.timeline-global-tooltip .tt-layer-title {
  font-size: 0.65rem;
  font-weight: 800;
  color: #94A3B8;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-bottom: 2px;
  display: flex;
  align-items: center;
  gap: 5px;
}

.timeline-global-tooltip .tt-layer-item.active-layer .tt-layer-title {
  color: #38BDF8;
}

[data-theme="light"] .timeline-global-tooltip .tt-layer-item.active-layer .tt-layer-title {
  color: #0284C7;
}

.timeline-global-tooltip .tt-layer-body {
  font-size: 0.74rem;
  line-height: 1.4;
  color: var(--text-main);
}

.timeline-global-tooltip .tt-layer-sub {
  font-size: 0.68rem;
  color: #64748B;
  margin-top: 2px;
  display: block;
}

.timeline-global-tooltip .tt-footer-hint {
  margin-top: 8px;
  padding-top: 6px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.65rem;
  color: #94A3B8;
  display: flex;
  align-items: center;
  gap: 4px;
}

[data-theme="light"] .timeline-global-tooltip .tt-footer-hint {
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  color: #64748B;
}
