:root {
  --bg-void: #090806;
  --bg-obsidian: #14110d;
  --bg-panel: rgba(24, 20, 16, 0.78);
  --bg-well: rgba(12, 10, 8, 0.86);
  --border-hairline: rgba(232, 186, 103, 0.18);
  --border-bright: rgba(232, 186, 103, 0.48);
  --text-primary: #faf7f2;
  --text-secondary: #c7bfb2;
  --text-muted: #8c8273;
  --cyan: #e8ba67;
  --cyan-dim: rgba(232, 186, 103, 0.16);
  --emerald: #34d399;
  --emerald-dim: rgba(52, 211, 153, 0.15);
  --amber: #f59e0b;
  --amber-dim: rgba(245, 158, 11, 0.16);
  --crimson: #fb7185;
  --crimson-dim: rgba(251, 113, 133, 0.16);
  --violet: #c084fc;
  --font-sans: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
}

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

html, body {
  width: 100%;
  max-width: 100%;
  min-height: 100vh;
  background: radial-gradient(circle at 68% 8%, #2c2011 0%, #130f0b 46%, #070605 100%);
  color: var(--text-primary);
  font-family: var(--font-sans);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  scroll-padding-top: 120px;
}

.tabular {
  font-variant-numeric: tabular-nums;
  font-family: var(--font-mono);
}

/* Top Aerospace Telemetry Ribbon */
.hud-topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(5, 9, 17, 0.9);
  backdrop-filter: blur(22px) saturate(180%);
  border-bottom: 1px solid var(--border-hairline);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.65), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.hud-topbar-inner {
  max-width: 1680px;
  margin: 0 auto;
  padding: 10px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: nowrap;
}

.brand-cluster {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-emblem {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: linear-gradient(145deg, #0c192c, #040810);
  border: 1px solid var(--border-bright);
  box-shadow: 0 0 18px rgba(0, 240, 255, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.16);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.brand-title {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.brand-sub {
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--text-secondary);
  letter-spacing: 0.06em;
  white-space: nowrap;
}

.live-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 2px 8px;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  background: var(--emerald-dim);
  color: var(--emerald);
  border: 1px solid rgba(16, 185, 129, 0.4);
}

.live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 8px currentColor;
  animation: pulseDot 1.8s infinite ease-in-out;
}

@keyframes pulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.82); }
}

/* Telemetry Strip */
.telemetry-strip {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
}
.telemetry-strip::-webkit-scrollbar { display: none; }

.metric-chip {
  background: var(--bg-well);
  border: 1px solid var(--border-hairline);
  border-radius: 8px;
  padding: 5px 10px;
  display: flex;
  flex-direction: column;
  min-width: 96px;
  box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.7);
}

.metric-chip .k {
  font-family: var(--font-mono);
  font-size: 9.5px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

.metric-chip .v {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.btn-tactical {
  min-height: 36px;
  padding: 0 12px;
  border-radius: 8px;
  border: 1px solid var(--border-hairline);
  background: linear-gradient(180deg, rgba(22, 34, 56, 0.85), rgba(9, 15, 27, 0.95));
  color: var(--text-primary);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.05em;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  transition: all 0.16s ease;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
  white-space: nowrap;
}

.btn-tactical:hover {
  border-color: var(--cyan);
  color: var(--cyan);
  box-shadow: 0 0 16px rgba(0, 240, 255, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.16);
  transform: translateY(-1px);
}

.btn-tactical.primary {
  background: linear-gradient(180deg, rgba(0, 240, 255, 0.22), rgba(0, 130, 200, 0.28));
  border-color: rgba(0, 240, 255, 0.55);
  color: #e0fcff;
}

.btn-tactical.amber {
  background: linear-gradient(180deg, rgba(255, 176, 32, 0.22), rgba(180, 95, 10, 0.28));
  border-color: rgba(255, 176, 32, 0.55);
  color: #ffe7b3;
}

.btn-tactical.crimson {
  background: linear-gradient(180deg, rgba(255, 42, 75, 0.26), rgba(155, 14, 38, 0.34));
  border-color: rgba(255, 42, 75, 0.6);
  color: #ffd6dd;
}

/* Primary Mode Navigation Bar */
.nav-deck {
  background: rgba(6, 11, 20, 0.86);
  border-bottom: 1px solid var(--border-hairline);
}

.nav-deck-inner {
  max-width: 1680px;
  margin: 0 auto;
  padding: 6px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px 12px;
  flex-wrap: wrap;
}
.nav-deck-inner::-webkit-scrollbar { display: none; }

.module-tabs {
  display: flex;
  align-items: center;
  gap: 6px;
}

.mod-tab {
  min-height: 36px;
  padding: 0 13px;
  border-radius: 7px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--text-secondary);
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
  transition: all 0.16s ease;
}

.mod-tab:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.04);
}

.mod-tab.active {
  background: rgba(0, 240, 255, 0.12);
  border-color: rgba(0, 240, 255, 0.45);
  color: var(--cyan);
  box-shadow: 0 0 14px rgba(0, 240, 255, 0.12);
}

.mod-rank {
  font-size: 9.5px;
  padding: 1px 5px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-primary);
}

/* Simulation Stress-Test Injector Strip */
.sim-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.sim-label {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.sim-chip {
  min-height: 30px;
  padding: 0 9px;
  border-radius: 6px;
  border: 1px solid var(--border-hairline);
  background: rgba(12, 20, 35, 0.85);
  color: var(--text-secondary);
  font-family: var(--font-mono);
  font-size: 10.5px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s ease;
}

.sim-chip:hover, .sim-chip.active {
  border-color: var(--amber);
  color: var(--amber);
  background: var(--amber-dim);
}

.sim-chip.live-btn.active {
  border-color: var(--emerald);
  color: var(--emerald);
  background: var(--emerald-dim);
}

/* Alert Banner when Simulation Active */
.sim-banner {
  background: linear-gradient(90deg, rgba(255, 42, 75, 0.22), rgba(255, 176, 32, 0.18), rgba(255, 42, 75, 0.22));
  border-bottom: 1px solid rgba(255, 176, 32, 0.5);
  padding: 7px 18px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: #ffe9c2;
  display: none;
  align-items: center;
  justify-content: center;
  gap: 12px;
  text-align: center;
}

.sim-banner.visible {
  display: flex;
}

/* Main Workspace Container */
.workspace {
  max-width: 1680px;
  margin: 0 auto;
  padding: 14px 18px 92px;
}

.view-panel {
  display: none;
}

.view-panel.active {
  display: block;
  animation: fadeSlide 0.22s ease-out;
}

@keyframes fadeSlide {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Tab 1: 3-Column SpaceX / Palantir Flight Deck */
.command-grid {
  display: grid;
  grid-template-columns: 340px minmax(0, 1fr) 390px;
  gap: 14px;
  align-items: start;
}

.panel-card {
  background: var(--bg-panel);
  backdrop-filter: blur(26px) saturate(180%);
  border: 1px solid var(--border-hairline);
  border-radius: 22px;
  box-shadow: 0 22px 54px rgba(0, 0, 0, 0.58), inset 0 1px 0 rgba(255, 245, 225, 0.08);
  overflow: hidden;
}

.panel-header {
  padding: 11px 14px;
  border-bottom: 1px solid var(--border-hairline);
  background: rgba(4, 8, 16, 0.55);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.panel-title {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #e2e8f0;
  display: flex;
  align-items: center;
  gap: 7px;
}

.panel-badge {
  font-family: var(--font-mono);
  font-size: 10px;
  padding: 2px 7px;
  border-radius: 5px;
  background: var(--cyan-dim);
  color: var(--cyan);
  border: 1px solid rgba(0, 240, 255, 0.3);
}

.panel-body {
  padding: 12px 14px;
}

/* Center 3D Tactical Globe Viewport */
.globe-stage {
  position: relative;
  height: 640px;
  background: radial-gradient(circle at 50% 50%, #09182e 0%, #03060c 72%);
  border-radius: 14px;
  border: 1px solid rgba(0, 240, 255, 0.26);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.75), inset 0 0 60px rgba(0, 240, 255, 0.06);
  overflow: hidden;
}

#globe-canvas-wrap {
  width: 100%;
  height: 100%;
  cursor: grab;
}
#globe-canvas-wrap:active {
  cursor: grabbing;
}

/* Tactical Reticle & Filter Controls Overlaid on Globe */
.globe-hud-top {
  position: absolute;
  top: 12px;
  left: 12px;
  right: 12px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  pointer-events: none;
  gap: 10px;
}

.globe-readout {
  background: rgba(4, 9, 18, 0.82);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-hairline);
  border-radius: 9px;
  padding: 8px 11px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--text-secondary);
  pointer-events: auto;
}

.globe-readout strong {
  color: var(--cyan);
  display: block;
  font-size: 11.5px;
  margin-bottom: 3px;
}

.shader-bar {
  position: absolute;
  bottom: 12px;
  left: 12px;
  right: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
  pointer-events: none;
}

.shader-group {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
  pointer-events: auto;
  background: rgba(4, 8, 16, 0.86);
  backdrop-filter: blur(14px);
  padding: 5px;
  border-radius: 9px;
  border: 1px solid var(--border-hairline);
}

.shader-btn {
  min-height: 30px;
  padding: 0 9px;
  border-radius: 6px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--text-secondary);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
}

.shader-btn.active, .shader-btn:hover {
  background: var(--cyan-dim);
  border-color: rgba(0, 240, 255, 0.45);
  color: var(--cyan);
}

/* Visual Shader Post-FX Filters on Canvas */
.mode-flir canvas {
  filter: contrast(1.38) saturate(1.8) hue-rotate(-35deg) brightness(1.06);
}
.mode-nvg canvas {
  filter: sepia(1) hue-rotate(72deg) saturate(2.6) contrast(1.25) brightness(0.96);
}
.mode-gic canvas {
  filter: contrast(1.25) saturate(1.55) brightness(1.08);
}

/* Scanline subtle aerospace overlay */
.globe-scanlines {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(
    to bottom,
    transparent 0px,
    transparent 3px,
    rgba(0, 240, 255, 0.018) 4px
  );
}

/* Feed Lists & Cards */
.feed-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 310px;
  overflow-y: auto;
  padding-right: 3px;
}

.feed-item {
  background: var(--bg-well);
  border: 1px solid var(--border-hairline);
  border-left: 3px solid var(--cyan);
  border-radius: 9px;
  padding: 9px 11px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.feed-item:hover {
  border-color: rgba(0, 240, 255, 0.45);
  transform: translateX(2px);
}

.feed-item.sev-critical { border-left-color: var(--crimson); }
.feed-item.sev-warning { border-left-color: var(--amber); }
.feed-item.sev-nominal { border-left-color: var(--emerald); }

.feed-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 6px;
  margin-bottom: 4px;
}

.feed-name {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-primary);
}

.status-tag {
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  white-space: nowrap;
}

.tag-crit { background: var(--crimson-dim); color: #ff6b81; border: 1px solid rgba(255, 42, 75, 0.45); }
.tag-warn { background: var(--amber-dim); color: var(--amber); border: 1px solid rgba(255, 176, 32, 0.45); }
.tag-ok { background: var(--emerald-dim); color: var(--emerald); border: 1px solid rgba(16, 185, 129, 0.4); }
.tag-cyan { background: var(--cyan-dim); color: var(--cyan); border: 1px solid rgba(0, 240, 255, 0.4); }

.feed-meta {
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--text-secondary);
  line-height: 1.45;
}

/* Progress / Saturation Bars */
.risk-meter {
  margin-top: 6px;
  height: 5px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.risk-fill {
  height: 100%;
  border-radius: 999px;
  transition: width 0.4s ease;
}

/* Multi-Column Bento Grids for Modules #2-#6 */
.bento-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.bento-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

/* Forms inside Tactical Decks */
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.field-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--text-secondary);
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.tactical-input, .tactical-select, .tactical-textarea {
  width: 100%;
  min-height: 42px;
  padding: 9px 12px;
  border-radius: 8px;
  border: 1px solid var(--border-hairline);
  background: rgba(3, 7, 15, 0.9);
  color: var(--text-primary);
  font-family: var(--font-mono);
  font-size: 16px; /* >=16px prevents iOS Safari auto-zoom */
  outline: none;
  transition: border-color 0.15s;
}

.tactical-textarea {
  min-height: 86px;
  resize: vertical;
  font-size: 14px;
}

.tactical-input:focus, .tactical-select:focus, .tactical-textarea:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 0 2px rgba(0, 240, 255, 0.15);
}

/* Hero Visual Showcase Strip inside Console */
.cinema-showcase-strip {
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.cinema-card {
  position: relative;
  height: 156px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border-hairline);
  background: #060b14;
}

.cinema-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.82;
  transition: transform 0.5s ease, opacity 0.3s ease;
}

.cinema-card:hover img {
  transform: scale(1.05);
  opacity: 0.98;
}

.cinema-caption {
  position: absolute;
  inset: auto 0 0 0;
  padding: 10px 12px;
  background: linear-gradient(to top, rgba(3, 6, 12, 0.95), rgba(3, 6, 12, 0.0));
  font-family: var(--font-mono);
  font-size: 11px;
  color: #f1f5f9;
}

/* Mobile Glass Bottom Tab Bar */
.mobile-bottom-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 120;
  background: rgba(5, 9, 18, 0.94);
  backdrop-filter: blur(24px) saturate(190%);
  border-top: 1px solid var(--border-hairline);
  padding: 6px 8px calc(6px + env(safe-area-inset-bottom));
  justify-content: space-around;
  gap: 4px;
}

.mob-nav-btn {
  flex: 1;
  min-height: 46px;
  border: none;
  border-radius: 9px;
  background: transparent;
  color: var(--text-secondary);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  cursor: pointer;
}

.mob-nav-btn.active {
  color: var(--cyan);
  background: rgba(0, 240, 255, 0.11);
}

/* Modal for Mobile Access / QR / CAP XML */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(2, 5, 11, 0.82);
  backdrop-filter: blur(12px);
  display: none;
  place-items: center;
  padding: 16px;
}

.modal-backdrop.open {
  display: grid;
}

.modal-box {
  width: 100%;
  max-width: 560px;
  background: #08101e;
  border: 1px solid var(--border-bright);
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.85);
}

/* Responsive Breakpoints */
@media (max-width: 1280px) {
  .command-grid {
    grid-template-columns: 310px minmax(0, 1fr);
  }
  .command-right-col {
    grid-column: 1 / -1;
  }
}

@media (max-width: 900px) {
  .hud-topbar-inner {
    flex-wrap: wrap;
    padding: 8px 12px;
  }
  .telemetry-strip {
    order: 3;
    width: 100%;
    padding-top: 4px;
  }
  .nav-deck .module-tabs {
    display: none;
  }
  .command-grid, .bento-2, .bento-3, .form-grid, .cinema-showcase-strip {
    grid-template-columns: 1fr;
  }
  .globe-stage {
    height: 410px;
  }
  .mobile-bottom-nav {
    display: flex;
  }
  .workspace {
    padding: 10px 12px 96px;
  }
}

/* ========================================================================== */
/* EXECUTIVE & CTO HAND-HELD GUIDED TOUR + PER-MODULE ONBOARDING STRIPS       */
/* ========================================================================== */
.guide-callout {
  background: linear-gradient(90deg, rgba(0, 240, 255, 0.09), rgba(13, 25, 46, 0.85));
  border: 1px solid rgba(0, 240, 255, 0.32);
  border-left: 4px solid var(--cyan);
  border-radius: 12px;
  padding: 12px 16px;
  margin-bottom: 14px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.guide-callout-text {
  flex: 1;
  min-width: 260px;
}

.guide-callout-title {
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 700;
  color: var(--cyan);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.guide-callout-desc {
  font-size: 13px;
  line-height: 1.55;
  color: #dbeafe;
}

.guide-steps-inline {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 7px;
}

.guide-step-pill {
  font-family: var(--font-mono);
  font-size: 10.5px;
  padding: 3px 9px;
  border-radius: 6px;
  background: rgba(4, 9, 18, 0.85);
  border: 1px solid var(--border-hairline);
  color: #e2e8f0;
}

.region-filter-bar {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
  margin-bottom: 9px;
}

.region-btn {
  min-height: 28px;
  padding: 0 9px;
  border-radius: 6px;
  border: 1px solid var(--border-hairline);
  background: rgba(5, 10, 20, 0.85);
  color: var(--text-secondary);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  cursor: pointer;
}

.region-btn.active, .region-btn:hover {
  border-color: var(--cyan);
  color: var(--cyan);
  background: var(--cyan-dim);
}

/* Floating Interactive 7-Step Hand-Held Executive Coach Dock */
.tour-dock {
  position: fixed;
  bottom: 22px;
  right: 22px;
  z-index: 185;
  width: min(460px, calc(100vw - 28px));
  background: linear-gradient(165deg, rgba(8, 16, 32, 0.97), rgba(4, 8, 17, 0.99));
  backdrop-filter: blur(24px);
  border: 1px solid var(--cyan);
  border-radius: 16px;
  padding: 18px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.92), 0 0 38px rgba(0, 240, 255, 0.24);
  display: none;
}

.tour-dock.active {
  display: block;
  animation: fadeSlide 0.22s ease-out;
}

.tour-progress {
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  margin-bottom: 12px;
  overflow: hidden;
}

.tour-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--cyan), var(--amber));
  transition: width 0.3s ease;
}

.cto-doc-card {
  background: var(--bg-well);
  border: 1px solid var(--border-hairline);
  border-radius: 11px;
  padding: 14px 16px;
  margin-bottom: 10px;
}

.cto-doc-card h4 {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--cyan);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.cto-doc-card p, .cto-doc-card li {
  font-size: 13px;
  line-height: 1.6;
  color: #cbd5e1;
}

@media (max-width: 900px) {
  .tour-dock {
    bottom: 72px;
    right: 14px;
    left: 14px;
    width: auto;
  }
}

/* Data provenance badges */
.prov {
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 5px;
  letter-spacing: 0.04em;
  white-space: nowrap;
}
.prov-live { background: rgba(16, 185, 129, 0.14); color: #34d399; border: 1px solid rgba(16, 185, 129, 0.45); }
.prov-model { background: rgba(0, 240, 255, 0.10); color: #67e8f9; border: 1px solid rgba(0, 240, 255, 0.35); }
.prov-demo { background: rgba(255, 176, 32, 0.12); color: #fbbf24; border: 1px solid rgba(255, 176, 32, 0.45); }
.panel-header { flex-wrap: wrap; }
