/* ==============================================================================
   FERRITAAS GLOBAL POLICY VIEWER (GPV) — STYLESHEET
   100% Client-Side In-RAM Firewall Policy & Global Traffic Flow Visualizer
   ============================================================================== */

:root {
  /* Centralized GPV Stacking Context Hierarchy */
  --z-gpv-base: 1;
  --z-gpv-map-svg: 2;
  --z-gpv-canvas: 5;
  --z-gpv-flow-tags: 10;
  --z-gpv-map-controls: 15;
  --z-gpv-hud-controls: 30;
  --z-gpv-hud-popover: 35;
  --z-gpv-hud-panels: 40;
  --z-gpv-close-pill: 50;
  --z-gpv-fullscreen-overlay: 99990;
  --z-gpv-modal-backdrop: 100010;
  --z-gpv-modal-card: 100020;
  --z-gpv-inspector-backdrop: 100050;
  --z-gpv-inspector-drawer: 100060;
  --z-gpv-global-auth: 1000000;
  --z-gpv-toasts: 1002000;
}

/* Main Showcase Grid Viewport */
/* Main Showcase HUD Stage Viewport */
.showcase-view-policy {
  display: block;
  position: relative;
  min-height: 840px;
  width: 100%;
  box-sizing: border-box;
  animation: gpvFadeIn 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  background: radial-gradient(circle at 50% 50%, rgba(14, 69, 92, 0.16), transparent 50%), #020d14;
  border: 1px solid rgba(56, 189, 248, 0.28);
  border-radius: 14px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.7);
  overflow: hidden;
  scroll-margin-top: 84px;
}

@media (max-width: 1120px) {
  .showcase-view-policy {
    min-height: 1080px;
  }
  .gpv-center-header {
    width: min(680px, 94%);
  }
  .gpv-mode-selector-bar {
    max-width: 100%;
    justify-content: center;
  }
  .gpv-sidebar, .gpv-right-panel {
    top: auto;
    bottom: 120px;
    width: calc(50% - 24px);
    max-height: 380px;
  }
  .gpv-sidebar {
    left: 16px;
  }
  .gpv-right-panel {
    right: 16px;
  }
  .gpv-center-bottom {
    width: calc(100% - 32px);
    bottom: 12px;
  }
  .gpv-map-legend {
    bottom: 148px;
  }
  .gpv-globe-controls {
    right: 16px;
    top: 16px;
    bottom: auto;
  }
}

@media (max-width: 720px) {
  .showcase-view-policy {
    min-height: 1460px;
  }
  .gpv-center-header {
    top: 12px;
    width: 94%;
  }
  .gpv-mode-selector-bar {
    width: 100%;
    overflow-x: auto;
  }
  .gpv-sidebar, .gpv-right-panel {
    position: absolute;
    left: 12px;
    right: 12px;
    width: auto;
  }
  .gpv-sidebar {
    bottom: 540px;
    max-height: 320px;
  }
  .gpv-right-panel {
    bottom: 120px;
    max-height: 400px;
  }
  .gpv-center-bottom {
    width: calc(100% - 24px);
    bottom: 10px;
  }
  .gpv-timeline {
    padding: 6px 10px;
  }
  .gpv-kpi-bar {
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
  }
  .gpv-map-legend {
    display: none;
  }
}

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

/* -----------------------------------------------------------------------------
   LEFT SIDEBAR: POLICY SOURCE, PRIVACY PROFILE, QUICK FILTERS, POLICY OBJECTS
   ----------------------------------------------------------------------------- */
.gpv-sidebar {
  position: absolute;
  left: 18px;
  top: 86px;
  width: 300px;
  bottom: 18px;
  z-index: 20;
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: 4px;
  box-sizing: border-box;
  scrollbar-width: thin;
  scrollbar-color: rgba(56, 189, 248, 0.3) transparent;
}

.gpv-card, .gpv-hud-card {
  background: rgba(4, 15, 25, 0.72);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(56, 189, 248, 0.28);
  border-radius: 12px;
  padding: 14px 16px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.55), inset 0 0 12px rgba(56, 189, 248, 0.04);
  position: relative;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.gpv-card:hover, .gpv-hud-card:hover {
  border-color: rgba(56, 189, 248, 0.45);
  box-shadow: 0 8px 36px rgba(0, 0, 0, 0.65), 0 0 16px rgba(56, 189, 248, 0.15);
}

.gpv-card-title {
  font: 700 11px ui-monospace, monospace;
  color: #fff;
  letter-spacing: 0.04em;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.gpv-card-title > span, .gpv-card-title > div:first-child {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #fff;
}

.gpv-card-title i.fa-solid:not(.gpv-card-chevron) {
  color: var(--accent);
  font-size: 12px;
}

.gpv-card-chevron {
  color: rgba(56, 189, 248, 0.6);
  font-size: 10px;
  cursor: pointer;
  transition: transform 0.2s ease, color 0.2s ease;
}

.gpv-card-chevron:hover {
  color: var(--accent);
}

.gpv-card.collapsed > :not(.gpv-card-title) {
  display: none !important;
}

.gpv-card.collapsed {
  padding-bottom: 8px;
}

.gpv-card.collapsed .gpv-card-chevron {
  transform: rotate(-90deg);
}

.gpv-card-desc, .gpv-card-subhead {
  font-size: 11px;
  color: #94a3b8;
  line-height: 1.4;
  margin: 0 0 10px;
}

/* Drop Box */
.gpv-dropzone-box {
  border: 1px dashed rgba(56, 189, 248, 0.35);
  background: rgba(56, 189, 248, 0.03);
  border-radius: 8px;
  padding: 16px 10px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
}

.gpv-dropzone-box:hover,
.gpv-dropzone-box.gpv-drag-active {
  background: rgba(56, 189, 248, 0.12);
  border-color: var(--accent);
  box-shadow: 0 0 20px rgba(56, 189, 248, 0.35);
}

.gpv-empty-hud-card.gpv-drag-active,
.gpv-map-wrapper.gpv-drag-active {
  border-color: var(--accent) !important;
  box-shadow: 0 0 28px rgba(56, 189, 248, 0.45) !important;
}

.gpv-dropzone-icon {
  font-size: 22px;
  color: var(--accent);
  margin-bottom: 2px;
}

.gpv-dropzone-title {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--text);
}

.gpv-dropzone-sub {
  font-size: 10px;
  color: var(--muted2);
}

/* ==============================================================================
   GPV SIDEBAR: LOADED CONFIGURATIONS QUEUE (SYNCHRONIZED WITH SCRUBBER)
   ============================================================================== */
.gpv-loaded-configs-box {
  margin-top: 10px;
  padding: 8px 10px;
  border: 1px dashed rgba(56, 189, 248, 0.35);
  border-radius: 9px;
  background: rgba(6, 18, 30, 0.75);
  transition: all 0.2s ease;
}

.gpv-loaded-configs-box:hover {
  border-color: rgba(56, 189, 248, 0.6);
  background: rgba(8, 24, 40, 0.85);
}

.gpv-loaded-configs-box.drag-active {
  border-color: var(--accent) !important;
  background: rgba(56, 189, 248, 0.14) !important;
  box-shadow: 0 0 16px rgba(56, 189, 248, 0.3) !important;
}

.gpv-loaded-configs-box .scrubber-files-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 10.5px;
  font-weight: 600;
}

.gpv-loaded-configs-box .scrubber-file-group {
  margin-top: 5px;
  border: 1px solid rgba(56, 189, 248, 0.2);
  border-radius: 7px;
  background: rgba(4, 14, 24, 0.85);
  overflow: hidden;
}

.gpv-loaded-configs-box .scrubber-group-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 7px;
  background: rgba(10, 26, 42, 0.85);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  cursor: pointer;
}

.gpv-loaded-configs-box .scrubber-group-head:hover {
  background: rgba(18, 40, 62, 0.9);
}

.gpv-loaded-configs-box .scrubber-group-name {
  font-size: 10px;
  font-weight: 700;
  color: var(--text);
  max-width: 140px;
}

.gpv-loaded-configs-box .scrubber-group-badge {
  font: 700 8px ui-monospace, monospace;
  padding: 1px 4px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--muted);
}

.gpv-loaded-configs-box .scrubber-group-body {
  padding: 3px 4px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.gpv-loaded-configs-box .scrubber-file-row {
  display: grid;
  grid-template-columns: auto auto minmax(0, 1fr) auto auto auto auto;
  gap: 3px;
  align-items: center;
  padding: 3px 6px;
  border: 1px solid rgba(56, 189, 248, 0.16);
  border-radius: 5px;
  background: rgba(3, 10, 18, 0.7);
  font-size: 10px;
  cursor: pointer;
  user-select: none;
  transition: all 0.15s ease;
}

.gpv-loaded-configs-box .scrubber-file-row:hover {
  background: rgba(56, 189, 248, 0.06);
  border-color: rgba(56, 189, 248, 0.35);
}

.gpv-loaded-configs-box .scrubber-file-row.active {
  border-color: var(--accent);
  background: rgba(56, 189, 248, 0.12);
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.22);
}

.gpv-loaded-configs-box .file-name-btn {
  font-size: 10px;
  font-weight: 600;
  color: var(--text);
  border: none;
  background: transparent;
  text-align: left;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  cursor: pointer;
  max-width: 110px;
}

.gpv-loaded-configs-box .file-size {
  font-size: 8.5px;
  color: var(--muted);
  white-space: nowrap;
}

.gpv-loaded-configs-box .file-state {
  padding: 1px 4px;
  border-radius: 3px;
  font: 700 7.5px ui-monospace, monospace;
  background: rgba(56, 189, 248, 0.15);
  color: var(--accent);
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  white-space: nowrap;
}

.gpv-loaded-configs-box .file-state.sanitized {
  background: rgba(88, 226, 173, 0.2);
  color: var(--good);
}

.gpv-loaded-configs-box .scrubber-file-remove {
  width: 15px;
  height: 15px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 3px;
  background: transparent;
  color: var(--muted);
  font-size: 10px;
  cursor: pointer;
}

.gpv-loaded-configs-box .scrubber-file-remove:hover {
  color: var(--bad);
  border-color: var(--bad);
  background: rgba(255, 80, 80, 0.15);
}

.gpv-loaded-configs-box .scrubber-list-add-zone {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 6px;
  padding: 5px 8px;
  border: 1px dashed rgba(56, 189, 248, 0.3);
  border-radius: 5px;
  font-size: 9.5px;
  color: var(--muted);
  cursor: pointer;
  transition: all 0.15s ease;
}

.gpv-loaded-configs-box .scrubber-list-add-zone:hover {
  border-color: var(--accent);
  color: var(--text);
  background: rgba(56, 189, 248, 0.08);
}

.gpv-parsed-status-link {
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  color: var(--accent);
  cursor: pointer;
  font-weight: 600;
}

.gpv-parsed-status-link:hover {
  text-decoration: underline;
}

/* Privacy Profile Card */
.gpv-privacy-profile-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 4px;
}

.gpv-profile-badge {
  font: 700 9.5px ui-monospace, monospace;
  background: rgba(56, 189, 248, 0.14);
  color: var(--accent);
  border: 1px solid rgba(56, 189, 248, 0.3);
  padding: 1px 6px;
  border-radius: 4px;
}

.gpv-profile-badge.unmasked {
  background: rgba(255, 94, 116, 0.15);
  color: var(--bad);
  border-color: rgba(255, 94, 116, 0.35);
}

.gpv-change-profile-btn {
  background: transparent;
  border: none;
  color: var(--accent);
  font-size: 10.5px;
  font-weight: 600;
  cursor: pointer;
  padding: 0;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 4px;
}

.gpv-change-profile-btn:hover {
  text-decoration: underline;
}

/* Quick Filters */
.gpv-filter-btn {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 10px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid transparent;
  color: var(--text);
  font-size: 11.5px;
  cursor: pointer;
  margin-bottom: 5px;
  transition: all 0.15s ease;
}

.gpv-filter-btn:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--line);
}

.gpv-filter-btn.active {
  background: rgba(56, 189, 248, 0.12);
  border-color: rgba(56, 189, 248, 0.35);
}

.gpv-filter-tag {
  display: flex;
  align-items: center;
  gap: 7px;
}

.gpv-filter-count {
  font: 700 10.5px ui-monospace, monospace;
  background: rgba(0, 0, 0, 0.4);
  padding: 1px 7px;
  border-radius: 10px;
  color: var(--muted);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

/* Policy Objects Breakdown */
.gpv-obj-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.gpv-obj-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  color: var(--muted);
  padding: 3px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.gpv-obj-val {
  font: 700 11px ui-monospace, monospace;
  color: var(--text);
}

/* Quick Hints */
.gpv-hint-row {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 7px;
  font-size: 11px;
  color: var(--muted);
  line-height: 1.35;
}

.gpv-hint-num {
  font: 700 9.5px ui-monospace, monospace;
  width: 16px;
  height: 16px;
  background: rgba(56, 189, 248, 0.12);
  color: var(--accent);
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 1px solid rgba(56, 189, 248, 0.25);
}

/* -----------------------------------------------------------------------------
   FLOATING HUD OVERLAYS: HEADER, FULL-BLEED MAP, TIMELINE, KPI TICKER
   ----------------------------------------------------------------------------- */
.gpv-center {
  display: contents;
}

/* Floating Center Top HUD: Title, View Controls & Operational Modes */
.gpv-center-header {
  position: absolute;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 24;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
  width: min(530px, calc(100% - 680px));
  max-width: calc(100% - 680px);
  margin: 0;
  padding: 0;
  pointer-events: none;
}

.gpv-center-header > * {
  pointer-events: auto;
}

.gpv-title-area h3 {
  margin: 0 0 2px;
  font-size: 18px;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.01em;
}

.gpv-title-area p {
  margin: 0;
  font-size: 11.5px;
  color: #94a3b8;
}

/* Dual-State Privacy Investigation Bar (Pre-Scrub RAW vs Post-Scrub SANITIZED) */
.gpv-privacy-state-bar {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  width: 100%;
  max-width: 100%;
  padding: 6px 12px;
  background: rgba(5, 14, 24, 0.92);
  border: 1px solid rgba(56, 189, 248, 0.28);
  border-radius: 10px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.55), 0 0 16px rgba(56, 189, 248, 0.08);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-sizing: border-box;
}

.gpv-privacy-state-bar.sanitized {
  border-color: rgba(16, 185, 129, 0.38);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.55), 0 0 16px rgba(16, 185, 129, 0.12);
}

.gpv-privacy-bar-main {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px;
  width: 100%;
}

.gpv-privacy-badge-wrap {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.gpv-privacy-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 8px;
  border-radius: 5px;
  font: 800 10px/1.2 ui-monospace, monospace;
  letter-spacing: 0.04em;
  white-space: nowrap;
  text-transform: uppercase;
  transition: all 0.2s ease;
}

.gpv-privacy-badge.raw {
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.45);
  color: #fbbf24;
}

.gpv-privacy-badge.sanitized {
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.45);
  color: #34d399;
}

.gpv-badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 8px currentColor;
  animation: gpvBadgePulse 2s infinite ease-in-out;
}

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

.gpv-privacy-state-desc {
  font-size: 10.5px;
  color: #94a3b8;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
  letter-spacing: 0.01em;
}

/* Location Privacy 3-Step Slider / Segmented Control */
.gpv-location-privacy-wrap {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.gpv-privacy-slider-label {
  font: 700 9px ui-monospace, monospace;
  letter-spacing: 0.05em;
  color: #64748b;
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

.gpv-privacy-slider {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  background: rgba(2, 6, 12, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  padding: 2px;
}

.gpv-privacy-step {
  padding: 3px 9px;
  font-size: 10px;
  font-weight: 600;
  border-radius: 4px;
  border: 1px solid transparent;
  background: transparent;
  color: #94a3b8;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: all 0.15s ease;
  user-select: none;
}

.gpv-privacy-step:hover:not(.is-locked) {
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
}

.gpv-privacy-step.active {
  background: rgba(56, 189, 248, 0.2);
  color: #38bdf8;
  border-color: rgba(56, 189, 248, 0.4);
  font-weight: 700;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}

.gpv-privacy-step.active.sanitized {
  background: rgba(16, 185, 129, 0.2);
  color: #34d399;
  border-color: rgba(16, 185, 129, 0.4);
}

.gpv-privacy-step.is-locked {
  opacity: 0.45;
  cursor: not-allowed;
  color: #64748b;
  position: relative;
}

/* Action CTA Buttons */
.gpv-privacy-actions {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.gpv-privacy-action-btn {
  padding: 3px 8px;
  font-size: 10px;
  font-weight: 700;
  border-radius: 5px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.gpv-privacy-action-btn.sanitize {
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
  color: #ffffff;
  border: 1px solid rgba(56, 189, 248, 0.5);
  box-shadow: 0 2px 8px rgba(2, 132, 199, 0.3);
}

.gpv-privacy-action-btn.sanitize:hover {
  background: linear-gradient(135deg, #0369a1 0%, #075985 100%);
  border-color: var(--accent);
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.4);
}

.gpv-privacy-action-btn.view-raw {
  background: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.45);
}

.gpv-privacy-action-btn.view-raw:hover {
  background: rgba(245, 158, 11, 0.25);
  border-color: #fbbf24;
  box-shadow: 0 0 10px rgba(245, 158, 11, 0.3);
}

.gpv-privacy-action-btn.diff {
  background: rgba(56, 189, 248, 0.14);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.38);
}

.gpv-privacy-action-btn.diff:hover {
  background: rgba(56, 189, 248, 0.24);
  border-color: var(--accent);
  color: #fff;
}

.gpv-map-header-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.gpv-select-policy-btn {
  background: rgba(6, 16, 27, 0.85);
  border: 1px solid rgba(56, 189, 248, 0.35);
  border-radius: 8px;
  color: #fff;
  padding: 6px 14px;
  font-size: 11.5px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: all 0.15s ease;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}

.gpv-select-policy-btn:hover {
  border-color: var(--accent);
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.25);
  color: #fff;
}

.gpv-view-all-pill-btn {
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.4);
  border-radius: 8px;
  color: var(--accent);
  padding: 6px 12px;
  font-size: 11px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.gpv-view-all-pill-btn:hover {
  background: rgba(56, 189, 248, 0.22);
  border-color: var(--accent);
  color: #fff;
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.3);
}

/* Full-Bleed Interactive World Globe & Map Viewport — Aerospace HUD Stage */
.gpv-map-wrapper {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background: transparent;
  border: none;
  border-radius: 0;
  overflow: hidden;
  box-shadow: none;
  display: block;
  z-index: 1;
  pointer-events: auto;
  touch-action: none !important;
  overscroll-behavior: none;
}

.gpv-map-svg {
  width: 100%;
  height: 100%;
  display: block;
}

/* Animated Flight Arc */
.gpv-flow-arc {
  stroke: var(--accent);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-dasharray: 8 6;
  animation: gpvFlowPulse 1.8s linear infinite;
  filter: drop-shadow(0 0 6px rgba(56, 189, 248, 0.8));
}

.gpv-flow-arc.denied {
  stroke: var(--bad);
  stroke-dasharray: 4 4;
  filter: drop-shadow(0 0 6px rgba(255, 94, 116, 0.8));
}

@keyframes gpvFlowPulse {
  to {
    stroke-dashoffset: -28;
  }
}

/* Dynamic Flow Midpoint Tag */
.gpv-map-flow-tag {
  position: absolute;
  transform: translate(-50%, -50%);
  background: rgba(4, 12, 18, 0.92);
  border: 1px solid var(--accent);
  color: var(--accent);
  font: 750 10.5px ui-monospace, monospace;
  padding: 4px 10px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.7), 0 0 10px rgba(56, 189, 248, 0.35);
  pointer-events: none;
  z-index: 10;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.gpv-map-flow-tag.denied {
  border-color: var(--bad);
  color: var(--bad);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.7), 0 0 10px rgba(255, 94, 116, 0.35);
}

/* Map Location Tooltip Badges */
.gpv-map-node-card {
  position: absolute;
  background: rgba(5, 15, 23, 0.94);
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 11px;
  color: var(--text);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.75), 0 0 14px rgba(56, 189, 248, 0.2);
  z-index: 9;
  pointer-events: auto;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  min-width: 140px;
}

.gpv-map-node-card.source {
  border-color: rgba(56, 189, 248, 0.6);
}

.gpv-map-node-card.destination {
  border-color: rgba(88, 226, 173, 0.6);
}

.gpv-node-title {
  font-weight: 750;
  font-size: 11.5px;
  color: var(--text);
  margin-bottom: 2px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.gpv-node-sub {
  font: 700 10px ui-monospace, monospace;
  color: var(--muted);
  margin-bottom: 1px;
}

.gpv-node-extra {
  font-size: 9.5px;
  color: var(--muted2);
}

/* Map Legend */
.gpv-map-legend {
  position: absolute;
  bottom: 154px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(4, 15, 25, 0.88);
  border: 1px solid rgba(56, 189, 248, 0.32);
  border-radius: 20px;
  padding: 5px 16px;
  display: flex;
  align-items: center;
  gap: 16px;
  font: 600 10.5px ui-monospace, monospace;
  color: #e2f2fa;
  z-index: 22;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.6), 0 0 10px rgba(56, 189, 248, 0.15);
  pointer-events: none;
}

.gpv-legend-item {
  display: flex;
  align-items: center;
  gap: 5px;
}

.gpv-legend-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
}

/* Floating Center Bottom HUD: Scrubber & KPI Bar */
.gpv-center-bottom {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 24;
  width: min(680px, calc(100% - 640px));
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
  pointer-events: none;
}

.gpv-center-bottom > * {
  pointer-events: auto;
  width: 100%;
}

/* Map Replay Timeline Scrubber */
.gpv-timeline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 16px;
  background: rgba(3, 17, 25, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(56, 189, 248, 0.28);
  border-radius: 10px;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.45);
  box-sizing: border-box;
}

.gpv-timeline-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font: 700 9px 'JetBrains Mono', ui-monospace, SFMono-Regular, monospace;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.32);
  padding: 3px 8px;
  border-radius: 5px;
  white-space: nowrap;
  flex-shrink: 0;
  user-select: none;
}

.gpv-timeline-badge i {
  color: #38bdf8;
  font-size: 9.5px;
}

.gpv-play-btn {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(56, 189, 248, 0.15);
  border: 1px solid var(--accent);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: all 0.15s;
  font-size: 11px;
}

.gpv-play-btn:hover {
  background: var(--accent);
  color: #01111a;
}

.gpv-time-slider-wrap {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 10px;
}

.gpv-time-code {
  font: 700 10.5px ui-monospace, monospace;
  color: var(--muted);
  flex-shrink: 0;
}

.gpv-slider {
  width: 100%;
  height: 4px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.12);
  outline: none;
  cursor: pointer;
  accent-color: var(--accent);
}

.gpv-replay-btn {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 6px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.gpv-replay-btn:hover {
  color: var(--text);
  border-color: var(--accent);
}

/* Bottom KPI Bar */
.gpv-kpi-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  box-sizing: border-box;
}

.gpv-kpi-card {
  background: rgba(3, 17, 25, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(56, 189, 248, 0.22);
  border-radius: 10px;
  padding: 8px 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.gpv-kpi-icon {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  background: rgba(56, 189, 248, 0.1);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  flex-shrink: 0;
}

.gpv-kpi-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.gpv-kpi-title {
  font: 700 9.5px ui-monospace, monospace;
  color: var(--muted2);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.gpv-kpi-val {
  font: 800 15px ui-monospace, monospace;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 6px;
}

.gpv-kpi-sub {
  font-size: 9.5px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* -----------------------------------------------------------------------------
   RIGHT PANEL: 3 DEDICATED FLOATING HUD CARDS
   ----------------------------------------------------------------------------- */
.gpv-right-panel {
  position: absolute;
  right: 18px;
  top: 86px;
  width: 315px;
  bottom: 18px;
  z-index: 20;
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: 4px;
  box-sizing: border-box;
  scrollbar-width: thin;
  scrollbar-color: rgba(56, 189, 248, 0.3) transparent;
}

.gpv-summary-card {
  background: rgba(4, 15, 25, 0.72);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(56, 189, 248, 0.28);
  border-radius: 12px;
  padding: 14px 16px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.55);
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
}

.gpv-summary-header {
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.gpv-summary-header h4 {
  margin: 0 0 2px;
  font-size: 14px;
  font-weight: 800;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 8px;
}

.gpv-summary-header p {
  margin: 0;
  font-size: 11px;
  color: var(--muted);
}

/* Summary Fields List */
.gpv-details-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.gpv-detail-row {
  display: grid;
  grid-template-columns: 20px 105px 1fr;
  gap: 8px;
  align-items: flex-start;
  font-size: 11px;
  padding-bottom: 6px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.gpv-detail-icon {
  color: var(--accent);
  font-size: 12px;
  margin-top: 2px;
}

.gpv-detail-label {
  color: var(--muted);
  font-weight: 500;
}

.gpv-detail-value {
  color: var(--text);
  font-weight: 600;
  text-align: right;
  word-break: break-word;
}

.gpv-action-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 1px 6px;
  border-radius: 4px;
  font: 750 10px ui-monospace, monospace;
}

.gpv-action-pill.allow {
  background: rgba(88, 226, 173, 0.15);
  color: var(--good);
  border: 1px solid rgba(88, 226, 173, 0.35);
}

.gpv-action-pill.deny {
  background: rgba(255, 94, 116, 0.15);
  color: var(--bad);
  border: 1px solid rgba(255, 94, 116, 0.35);
}

/* Notable Observations Box */
.gpv-obs-box {
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 0;
  margin-top: 0;
}

.gpv-obs-title {
  font: 700 10.5px ui-monospace, monospace;
  color: var(--accent);
  letter-spacing: 0.06em;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.gpv-obs-item {
  font-size: 10.5px;
  color: var(--text);
  line-height: 1.4;
  margin-bottom: 4px;
  display: flex;
  align-items: flex-start;
  gap: 6px;
}

.gpv-obs-item i {
  color: var(--good);
  font-size: 11px;
  margin-top: 2px;
}

.gpv-obs-item.warning i {
  color: var(--bad);
}

/* Action Buttons at bottom of right panel */
.gpv-summary-actions {
  display: flex;
  gap: 6px;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.gpv-btn-primary {
  flex: 1;
  background: var(--accent);
  color: #01111a;
  border: none;
  border-radius: 6px;
  padding: 7px 10px;
  font-weight: 750;
  font-size: 11px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.15s;
}

.gpv-btn-primary:hover {
  background: #56cbff;
}

.gpv-btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line);
  color: var(--text);
  border-radius: 6px;
  padding: 7px 10px;
  font-weight: 600;
  font-size: 11px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  transition: all 0.15s;
}

.gpv-btn-secondary:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* -----------------------------------------------------------------------------
   POPUP / MODAL: SELECT FIREWALL POLICY (MOCKUP 4)
   ----------------------------------------------------------------------------- */
.gpv-selector-dropdown {
  position: absolute;
  top: 130px;
  left: 50%;
  transform: translateX(-50%);
  width: min(680px, 94vw);
  background: rgba(6, 18, 28, 0.98);
  border: 1px solid var(--accent);
  border-radius: 10px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.85), 0 0 24px rgba(56, 189, 248, 0.25);
  z-index: 100;
  padding: 14px;
  box-sizing: border-box;
  animation: gpvDropdownOpen 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  backdrop-filter: blur(16px);
}

@keyframes gpvDropdownOpen {
  from { opacity: 0; transform: translateX(-50%) translateY(-8px) scale(0.98); }
  to { opacity: 1; transform: translateX(-50%) translateY(0) scale(1); }
}

.gpv-search-input-wrap {
  position: relative;
  margin-bottom: 10px;
}

.gpv-search-input-wrap i {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  font-size: 12px;
}

.gpv-search-input {
  width: 100%;
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--text);
  padding: 7px 10px 7px 32px;
  font-size: 11.5px;
  outline: none;
  box-sizing: border-box;
}

.gpv-search-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.2);
}

.gpv-policy-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 11px;
}

.gpv-policy-table th {
  text-align: left;
  padding: 6px 8px;
  font: 700 9.5px ui-monospace, monospace;
  color: var(--muted2);
  border-bottom: 1px solid var(--line);
  text-transform: uppercase;
}

.gpv-policy-table td {
  padding: 7px 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  color: var(--text);
  vertical-align: middle;
}

.gpv-policy-table tr.gpv-row-item {
  cursor: pointer;
  transition: background 0.12s;
}

.gpv-policy-table tr.gpv-row-item:hover {
  background: rgba(56, 189, 248, 0.08);
}

.gpv-policy-table tr.gpv-row-item.active {
  background: rgba(56, 189, 248, 0.16);
}

.gpv-table-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 10px;
  color: var(--muted2);
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* -----------------------------------------------------------------------------
   DUAL-STATE SANITIZATION SAFE VIEW STYLES
   ----------------------------------------------------------------------------- */
.gpv-sanitized-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 1px 6px;
  border-radius: 4px;
  font: 700 9px ui-monospace, monospace;
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.35);
}

.gpv-sanitized-safe-card {
  border-color: rgba(16, 185, 129, 0.4) !important;
  background: rgba(4, 18, 24, 0.95) !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6), 0 0 14px rgba(16, 185, 129, 0.15) !important;
}

/* ==============================================================================
   PHASE 2: MULTI-SOURCE EVIDENCE, MODE SWITCHER & HIGH-DETAIL MAP STYLES
   ============================================================================== */

/* Mode Selector Bar (Policy Intent | Log Evidence | Live Telemetry | Combined) */
.gpv-mode-selector-bar {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  background: rgba(3, 16, 24, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(56, 189, 248, 0.28);
  border-radius: 8px;
  padding: 2px 4px;
  margin: 0;
  width: fit-content;
  max-width: 100%;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
  pointer-events: auto;
}

.gpv-mode-tab {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 5px 10px;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 6px;
  color: #94a3b8;
  font: 700 10.5px ui-monospace, monospace;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.18s ease;
}

.gpv-mode-tab:hover {
  background: rgba(56, 189, 248, 0.08);
  color: #fff;
  border-color: rgba(56, 189, 248, 0.25);
}

.gpv-mode-tab.active {
  background: rgba(56, 189, 248, 0.18);
  color: #38bdf8;
  border-color: rgba(56, 189, 248, 0.5);
  box-shadow: 0 0 14px rgba(56, 189, 248, 0.2);
}

.gpv-tab-pill {
  font-size: 9.5px;
  padding: 2px 7px;
  border-radius: 10px;
  background: rgba(56, 189, 248, 0.25);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.35);
}

.gpv-tab-pill.gold {
  background: rgba(255, 189, 89, 0.25);
  color: var(--warn);
  border-color: rgba(255, 189, 89, 0.35);
}

.gpv-mode-tab:disabled,
.gpv-mode-tab.disabled {
  opacity: 0.38;
  cursor: not-allowed;
  pointer-events: auto;
  background: transparent;
  color: #64748b;
  border-color: transparent;
  box-shadow: none;
}

.gpv-mode-tab:disabled:hover,
.gpv-mode-tab.disabled:hover {
  background: rgba(255, 255, 255, 0.03);
  color: #64748b;
  border-color: rgba(255, 255, 255, 0.08);
}

.gpv-policy-intent-hud {
  border-color: rgba(56, 189, 248, 0.32);
  background: rgba(3, 17, 25, 0.88);
}

.gpv-policy-intent-summary {
  display: flex;
  align-items: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (max-width: 900px) {
  .gpv-policy-intent-summary span:nth-child(2) {
    display: none;
  }
}

.gpv-live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--good);
  box-shadow: 0 0 8px var(--good);
  animation: gpvLivePulse 1.4s infinite;
}

@keyframes gpvLivePulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.3; transform: scale(0.7); }
}

/* Map Mode Switcher (Vector vs Google Maps) */
.gpv-map-header-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.gpv-map-mode-toggle {
  display: flex;
  background: rgba(6, 16, 27, 0.85);
  border: 1px solid rgba(56, 189, 248, 0.28);
  border-radius: 8px;
  padding: 3px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}

.gpv-map-mode-btn {
  background: transparent;
  border: 1px solid transparent;
  color: #94a3b8;
  font: 600 11px ui-monospace, monospace;
  padding: 5px 12px;
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.15s ease;
}

.gpv-map-mode-btn.active {
  background: rgba(56, 189, 248, 0.22);
  color: #fff;
  border: 1px solid rgba(56, 189, 248, 0.4);
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.25);
}

/* 3D Spherical Globe Canvas — Full Viewport Background */
.gpv-globe-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border-radius: 0;
  overflow: hidden;
  z-index: 1;
  cursor: grab;
  display: block;
}

.gpv-globe-canvas:active {
  cursor: grabbing;
}

/* Floating 3D Globe Navigation Controls (+ / - / Reset) */
.gpv-globe-controls {
  position: absolute;
  right: 340px;
  bottom: 140px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  z-index: 24;
}

.gpv-globe-ctrl-btn {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: rgba(6, 16, 27, 0.85);
  border: 1px solid rgba(56, 189, 248, 0.35);
  color: var(--accent);
  font-size: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  backdrop-filter: blur(6px);
  transition: all 0.15s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

.gpv-globe-ctrl-btn:hover {
  background: rgba(56, 189, 248, 0.25);
  border-color: var(--accent);
  transform: scale(1.06);
}

/* -----------------------------------------------------------------------------
   LIGHT MODE STYLING (Mockup 3: Daytime Executive Presentation)
   ----------------------------------------------------------------------------- */
.gpv-map-wrapper.light-mode {
  background: #f8fafc !important;
  border-color: #cbd5e1 !important;
}

.gpv-map-wrapper.light-mode .gpv-map-graticule line {
  stroke: rgba(148, 163, 184, 0.25) !important;
}

.gpv-map-wrapper.light-mode .gpv-map-land path {
  fill: #e2e8f0 !important;
  stroke: #94a3b8 !important;
  stroke-width: 0.9 !important;
  filter: none !important;
}

.gpv-map-wrapper.light-mode .gpv-map-boundary path {
  stroke: rgba(100, 116, 139, 0.35) !important;
}

.gpv-map-wrapper.light-mode .gpv-map-node-card {
  background: rgba(255, 255, 255, 0.96) !important;
  border: 1px solid #cbd5e1 !important;
  color: #0f172a !important;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.12) !important;
}

.gpv-map-wrapper.light-mode .gpv-node-title {
  color: #0f172a !important;
}

.gpv-map-wrapper.light-mode .gpv-node-sub {
  color: #0284c7 !important;
}

.gpv-map-wrapper.light-mode .gpv-node-extra {
  color: #64748b !important;
}

.gpv-map-wrapper.light-mode .gpv-map-flow-tag {
  background: #ffffff !important;
  border: 1px solid #0284c7 !important;
  color: #0369a1 !important;
  box-shadow: 0 4px 16px rgba(2, 132, 199, 0.18) !important;
}

.gpv-map-wrapper.light-mode .gpv-map-legend {
  background: rgba(255, 255, 255, 0.92) !important;
  border-color: #cbd5e1 !important;
  color: #475569 !important;
}

.gpv-map-wrapper.light-mode .gpv-empty-hud-card {
  background: rgba(255, 255, 255, 0.95) !important;
  border-color: #cbd5e1 !important;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.15) !important;
}

.gpv-map-wrapper.light-mode .gpv-empty-hud-card h4 {
  color: #0f172a !important;
}

.gpv-map-wrapper.light-mode .gpv-empty-hud-card p {
  color: #64748b !important;
}

/* High-Detail Vector Map Aesthetics */
.gpv-map-land {
  fill: #0c1626;
  stroke: rgba(56, 189, 248, 0.4);
  stroke-width: 0.85;
  filter: drop-shadow(0 0 2px rgba(56, 189, 248, 0.15));
}

.gpv-map-boundary {
  fill: none;
  stroke: rgba(56, 189, 248, 0.15);
  stroke-width: 0.55;
  stroke-dasharray: 2 3;
}

.gpv-map-graticule {
  fill: none;
  stroke: rgba(56, 189, 248, 0.05);
  stroke-width: 0.6;
}

.gpv-map-radar-sweep {
  transform-origin: 500px 240px;
  animation: gpvRadarSpin 24s linear infinite;
}

@keyframes gpvRadarSpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* Dynamic Volumetric Flow Beam & Particles */
.gpv-volumetric-beam {
  fill: none;
  stroke-linecap: round;
  transition: stroke-width 0.4s ease, stroke 0.4s ease;
}

.gpv-volumetric-particle {
  fill: #fff;
  filter: drop-shadow(0 0 4px var(--accent));
}

.gpv-volumetric-particle.fast {
  filter: drop-shadow(0 0 6px var(--good));
}

/* Causal Packet Decision Pipeline in Right Panel */
.gpv-causal-box {
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 0;
  margin-top: 0;
}

.gpv-causal-title {
  font: 700 10.5px ui-monospace, monospace;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  padding-bottom: 6px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.gpv-causal-steps {
  display: flex;
  flex-direction: column;
  gap: 7px;
  position: relative;
}

.gpv-causal-step {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 10.5px;
  color: var(--muted);
  line-height: 1.35;
  position: relative;
}

.gpv-causal-num {
  min-width: 17px;
  height: 17px;
  border-radius: 50%;
  background: rgba(56, 189, 248, 0.15);
  border: 1px solid rgba(56, 189, 248, 0.4);
  color: var(--accent);
  font: 700 9px ui-monospace, monospace;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 1px;
}

.gpv-causal-text strong {
  color: var(--text);
  display: block;
  font-size: 10.5px;
  font-family: ui-monospace, monospace;
}

.gpv-causal-text span {
  color: var(--muted2);
  font-size: 9.5px;
}

/* -----------------------------------------------------------------------------
   AWAITING INGESTION / EMPTY STATE HUD OVERLAY
   ----------------------------------------------------------------------------- */
.gpv-empty-hud-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 15;
  pointer-events: none;
}

.gpv-empty-hud-card {
  max-width: 460px;
  background: rgba(6, 16, 27, 0.88);
  border: 1px solid rgba(56, 189, 248, 0.35);
  border-radius: 12px;
  padding: 24px 22px;
  text-align: center;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.75), 0 0 30px rgba(56, 189, 248, 0.1);
  backdrop-filter: blur(8px);
  pointer-events: auto;
  animation: gpvFadeIn 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.gpv-empty-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(56, 189, 248, 0.12);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  border: 1px solid rgba(56, 189, 248, 0.3);
}

.gpv-empty-hud-card h4 {
  margin: 0;
  font-size: 14.5px;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.01em;
}

.gpv-empty-hud-card p {
  margin: 0;
  font-size: 11.5px;
  color: var(--muted);
  line-height: 1.45;
}

.gpv-empty-actions {
  display: flex;
  gap: 10px;
  width: 100%;
  margin-top: 4px;
}

/* -----------------------------------------------------------------------------
   3D WEBGL NIGHT GLOBE CANVAS & HUD STATUS PILL
   ----------------------------------------------------------------------------- */
#gpvThreeGlobeCanvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  z-index: 1;
  touch-action: none !important;
  cursor: grab;
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}
#gpvThreeGlobeCanvas:active {
  cursor: grabbing;
}
.showcase-view-policy.gpv-night-off #gpvThreeGlobeCanvas {
  filter: saturate(0.65) brightness(0.70);
}
.showcase-view-policy.gpv-flat-view #gpvThreeGlobeCanvas {
  display: none !important;
}

.gpv-three-status {
  position: absolute;
  top: 14px;
  right: 18px;
  z-index: 10;
  padding: 4px 10px;
  border-radius: 6px;
  background: rgba(2, 12, 19, 0.72);
  border: 1px solid rgba(56, 189, 248, 0.35);
  color: var(--accent);
  font: 700 10px ui-monospace, monospace;
  pointer-events: none;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  display: flex;
  align-items: center;
  gap: 6px;
}
.gpv-three-status.ready {
  opacity: 0;
  visibility: hidden;
}

.gpv-night-live-pill {
  font-size: 8.5px;
  padding: 1px 5px;
  border-radius: 4px;
  background: rgba(56, 189, 248, 0.18);
  border: 1px solid rgba(56, 189, 248, 0.4);
  color: var(--accent);
  font-weight: 700;
  letter-spacing: 0.04em;
}

/* -----------------------------------------------------------------------------
   FULLSCREEN NOC HUD MODE
   ----------------------------------------------------------------------------- */
.showcase-view-policy.gpv-fullscreen {
  display: block !important;
  position: fixed !important;
  inset: 0 !important;
  z-index: var(--z-gpv-fullscreen-overlay) !important;
  width: 100vw !important;
  width: 100% !important;
  height: 100vh !important;
  height: 100dvh !important;
  min-height: 100vh !important;
  min-height: 100dvh !important;
  max-height: 100vh !important;
  max-height: 100dvh !important;
  border-radius: 0 !important;
  border: none !important;
  background: #010811 !important;
  overflow: hidden !important;
  touch-action: none !important;
  overscroll-behavior: none !important;
  -webkit-overflow-scrolling: touch;
  animation: none !important;
  opacity: 1 !important;
  transform: none !important;
  transition: none !important;
}
.showcase-view-policy.gpv-fullscreen .gpv-map-wrapper {
  min-height: 100vh !important;
  min-height: 100dvh !important;
  height: 100vh !important;
  height: 100dvh !important;
  border-radius: 0 !important;
  touch-action: none !important;
  overscroll-behavior: none !important;
}
.showcase-view-policy.gpv-fullscreen .gpv-exposure-bar {
  padding-right: 160px !important;
}
.showcase-view-policy.gpv-fullscreen .gpv-sidebar,
.showcase-view-policy.gpv-fullscreen .gpv-right-panel {
  top: 64px !important;
  max-height: calc(100vh - 82px) !important;
  max-height: calc(100dvh - 82px) !important;
  bottom: 18px !important;
}
.showcase-view-policy.gpv-fullscreen .gpv-center-bottom {
  bottom: 12px !important;
  width: min(840px, 62%) !important;
}
.showcase-view-policy.gpv-fullscreen .gpv-map-legend {
  bottom: 132px !important;
}
.showcase-view-policy.gpv-fullscreen .gpv-globe-controls {
  bottom: 130px !important;
  right: 348px !important;
  z-index: var(--z-gpv-hud-controls) !important;
}
@media (max-width: 1080px) {
  .showcase-view-policy.gpv-fullscreen .gpv-globe-controls {
    right: 18px !important;
    top: 74px !important;
    bottom: auto !important;
  }
}
body.gpv-overlay-open {
  overflow: hidden !important;
  touch-action: none !important;
  overscroll-behavior: none !important;
}

.gpv-fullscreen-close-pill {
  display: none;
}

.showcase-view-policy.gpv-fullscreen .gpv-fullscreen-close-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  position: absolute;
  top: 8px;
  right: 18px;
  z-index: var(--z-gpv-close-pill);
  padding: 6px 14px;
  border-radius: 9999px;
  background: rgba(6, 16, 27, 0.92);
  border: 1px solid rgba(56, 189, 248, 0.4);
  color: var(--accent);
  font: 600 11px/1 ui-monospace, monospace;
  cursor: pointer;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.6);
  transition: all 0.15s ease;
}

.showcase-view-policy.gpv-fullscreen .gpv-fullscreen-close-pill:hover {
  background: rgba(56, 189, 248, 0.22);
  border-color: var(--accent);
  color: #fff;
  transform: translateY(-1px);
}

.gpv-timeline-expand-btn {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(56, 189, 248, 0.1);
  border: 1px solid rgba(56, 189, 248, 0.25);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 10px;
  flex-shrink: 0;
  transition: all 0.15s ease;
  padding: 0;
  margin-left: 2px;
}

.gpv-timeline-expand-btn:hover,
.gpv-timeline-expand-btn.active {
  background: rgba(56, 189, 248, 0.25);
  border-color: var(--accent);
  color: #fff;
}

#gpvFullscreenBtn.active {
  color: var(--accent) !important;
  border-color: rgba(56, 189, 248, 0.6) !important;
  background: rgba(56, 189, 248, 0.15) !important;
}

.showcase-view-policy.gpv-fullscreen .gpv-center-header {
  top: 64px !important;
  width: min(780px, calc(100% - 680px)) !important;
}

/* -----------------------------------------------------------------------------
   2D TACTICAL NATURAL EARTH SVG STYLES
   ----------------------------------------------------------------------------- */
#gpvMapSvg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  display: none;
}
#gpvMapSvg.gpv-map-active {
  display: block !important;
}
#gpvMapSvg.gpv-map-hybrid {
  opacity: 0.55;
  mix-blend-mode: screen;
  pointer-events: none;
}
#gpvMapSvg.gpv-map-flat {
  opacity: 1 !important;
}
#gpvMapSvg .gpv2d-sphere {
  fill: rgba(2, 18, 27, 0.68);
  stroke: rgba(46, 203, 255, 0.18);
  stroke-width: 1.1;
}
#gpvMapSvg .gpv2d-land {
  fill: rgba(11, 34, 45, 0.80);
  stroke: rgba(58, 177, 212, 0.60);
  stroke-width: 0.55;
}
#gpvMapSvg .gpv2d-grid {
  fill: none;
  stroke: rgba(46, 203, 255, 0.14);
  stroke-width: 0.5;
  stroke-dasharray: 2 4;
}
#gpvMapSvg .gpv2d-route-glow {
  fill: none;
  stroke: rgba(56, 189, 248, 0.16);
  stroke-width: 3.2px;
  stroke-linecap: round;
}
#gpvMapSvg .gpv2d-route-glow.denied {
  stroke: rgba(244, 63, 94, 0.18);
}
#gpvMapSvg .gpv2d-route-main {
  fill: none;
  stroke: #38bdf8;
  stroke-width: 1.35px;
  stroke-linecap: round;
}
#gpvMapSvg .gpv2d-route-main.denied {
  stroke: #f43f5e;
}
#gpvMapSvg .gpv2d-route-core {
  fill: none;
  stroke: rgba(255, 255, 255, 0.85);
  stroke-width: 1.1px;
  stroke-linecap: round;
  stroke-dasharray: 4 10;
  animation: gpvDash 14s linear infinite;
}
#gpvMapSvg .gpv2d-route-core.denied {
  stroke: #fda4af;
}
#gpvMapSvg .gpv2d-pulse {
  fill: none;
  stroke-width: 1px;
  opacity: 0.7;
  transform-box: fill-box;
  transform-origin: center;
  animation: gpvPulse 2.6s ease-out infinite;
}
#gpvMapSvg .gpv2d-ring {
  fill: rgba(3, 14, 23, 0.9);
  stroke-width: 1.4px;
}
#gpvMapSvg .gpv2d-core {
  stroke: #ffffff;
  stroke-width: 0.8px;
}
#gpvMapSvg .gpv2d-center {
  fill: #ffffff;
}
#gpvMapSvg .gpv2d-beacon {
  fill: none;
  stroke: rgba(255, 255, 255, 0.18);
  stroke-width: 0.75px;
  stroke-dasharray: 1.5 3;
}
#gpvMapSvg .gpv2d-label-bg {
  fill: rgba(3, 15, 24, 0.9);
  stroke-width: 0.75px;
  opacity: 0.92;
}
#gpvMapSvg .gpv2d-label {
  fill: #e0f2fe;
  font: 600 9px ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: 0.02em;
}
#gpvMapSvg .gpv2d-label-sub {
  fill: rgba(148, 163, 184, 0.9);
  font: 500 7.5px ui-monospace, SFMono-Regular, Menlo, monospace;
}
#gpvMapSvg .gpv2d-chevron {
  fill: none;
  stroke: #38bdf8;
  stroke-width: 1.3px;
  stroke-linecap: round;
  stroke-linejoin: round;
}
#gpvMapSvg .gpv2d-chevron.denied {
  stroke: #f43f5e;
}
#gpvMapSvg .gpv2d-sanitized-badge text {
  fill: #38bdf8;
  font: 700 9px ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: 0.06em;
}
#gpvMapSvg .gpv2d-sanitized-badge rect {
  fill: rgba(3, 16, 26, 0.92);
  stroke: rgba(56, 189, 248, 0.4);
  rx: 5;
}

@keyframes gpvPulse {
  0% { transform: scale(0.72); opacity: 0.75; }
  70% { transform: scale(1.65); opacity: 0.08; }
  100% { transform: scale(1.8); opacity: 0; }
}
@keyframes gpvDash {
  from { stroke-dashoffset: 0; }
  to { stroke-dashoffset: -320; }
}

/* ==============================================================================
   INTERACTIVE SIDE-BY-SIDE PRIVACY DIFF MODAL (STEP 2)
   ============================================================================== */
.gpv-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: var(--z-gpv-modal-backdrop);
  background: rgba(2, 8, 14, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  animation: gpvModalFadeIn 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-sizing: border-box;
}

@keyframes gpvModalFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.gpv-modal-card {
  width: min(1080px, 96vw);
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  background: #03111b;
  border: 1px solid rgba(56, 189, 248, 0.38);
  border-radius: 14px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.88), 0 0 32px rgba(56, 189, 248, 0.14);
  overflow: hidden;
  animation: gpvCardScaleUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes gpvCardScaleUp {
  from { transform: scale(0.96); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.gpv-modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 18px 24px 14px;
  background: rgba(5, 20, 32, 0.96);
  border-bottom: 1px solid rgba(56, 189, 248, 0.2);
  gap: 16px;
}

.gpv-modal-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font: 800 10px/1 ui-monospace, monospace;
  color: #38bdf8;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.gpv-modal-title {
  margin: 0 0 4px;
  font-size: 18px;
  font-weight: 700;
  color: #f1f5f9;
  letter-spacing: -0.01em;
}

.gpv-modal-subtitle {
  margin: 0;
  font-size: 11.5px;
  color: #94a3b8;
  line-height: 1.45;
  max-width: 820px;
}

.gpv-modal-close-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #94a3b8;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.gpv-modal-close-btn:hover {
  background: rgba(244, 63, 94, 0.2);
  border-color: rgba(244, 63, 94, 0.45);
  color: #f43f5e;
}

.gpv-diff-summary-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  padding: 12px 24px;
  background: rgba(2, 10, 18, 0.75);
  border-bottom: 1px solid rgba(56, 189, 248, 0.14);
}

.gpv-diff-kpi {
  background: rgba(6, 24, 38, 0.65);
  border: 1px solid rgba(56, 189, 248, 0.16);
  border-radius: 8px;
  padding: 8px 12px;
  display: flex;
  flex-direction: column;
}

.gpv-diff-kpi-label {
  font-size: 9.5px;
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.gpv-diff-kpi-val {
  font: 800 16px/1.3 ui-monospace, monospace;
  margin: 2px 0;
}

.gpv-diff-kpi-val.amber { color: #fbbf24; }
.gpv-diff-kpi-val.emerald { color: #34d399; }
.gpv-diff-kpi-val.cyan { color: #38bdf8; }
.gpv-diff-kpi-val.green { color: #4ade80; }

.gpv-diff-kpi-sub {
  font-size: 9.5px;
  color: #94a3b8;
}

.gpv-diff-controls-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 24px;
  background: rgba(3, 14, 23, 0.92);
  border-bottom: 1px solid rgba(56, 189, 248, 0.12);
  gap: 12px;
  flex-wrap: wrap;
}

.gpv-diff-selector-label {
  font: 700 11px ui-monospace, monospace;
  color: #94a3b8;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.gpv-diff-select {
  background: #061926;
  border: 1px solid rgba(56, 189, 248, 0.35);
  color: #f1f5f9;
  font: 600 11px Inter, system-ui, sans-serif;
  padding: 5px 12px;
  border-radius: 6px;
  cursor: pointer;
  outline: none;
}

.gpv-diff-select:focus {
  border-color: #38bdf8;
  box-shadow: 0 0 8px rgba(56, 189, 248, 0.3);
}

.gpv-diff-legend {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 10.5px;
  color: #94a3b8;
}

.gpv-diff-legend .legend-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.gpv-diff-legend .legend-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
}

.gpv-diff-legend .legend-dot.raw { background: #f59e0b; box-shadow: 0 0 6px #f59e0b; }
.gpv-diff-legend .legend-dot.safe { background: #10b981; box-shadow: 0 0 6px #10b981; }

.gpv-diff-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  padding: 18px 24px;
  overflow-y: auto;
  max-height: 48vh;
  box-sizing: border-box;
}

.gpv-diff-col {
  background: rgba(4, 18, 28, 0.75);
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.gpv-diff-col.raw-col {
  border-color: rgba(245, 158, 11, 0.32);
}

.gpv-diff-col.safe-col {
  border-color: rgba(16, 185, 129, 0.32);
}

.gpv-diff-col-header {
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.gpv-diff-col.raw-col .gpv-diff-col-header {
  background: rgba(245, 158, 11, 0.08);
}

.gpv-diff-col.safe-col .gpv-diff-col-header {
  background: rgba(16, 185, 129, 0.08);
}

.gpv-diff-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font: 800 10.5px ui-monospace, monospace;
  letter-spacing: 0.04em;
  padding: 3px 8px;
  border-radius: 4px;
}

.gpv-diff-badge.raw {
  background: rgba(245, 158, 11, 0.2);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.45);
}

.gpv-diff-badge.safe {
  background: rgba(16, 185, 129, 0.2);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.45);
}

.gpv-diff-col-sub {
  font-size: 10px;
  color: #64748b;
  margin-left: 8px;
}

.gpv-diff-status-pill {
  font: 700 9.5px ui-monospace, monospace;
  padding: 2px 7px;
  border-radius: 4px;
  text-transform: uppercase;
}

.gpv-diff-status-pill.raw {
  background: rgba(244, 63, 94, 0.16);
  border: 1px solid rgba(244, 63, 94, 0.35);
  color: #f43f5e;
}

.gpv-diff-status-pill.safe {
  background: rgba(16, 185, 129, 0.16);
  border: 1px solid rgba(16, 185, 129, 0.35);
  color: #34d399;
}

.gpv-diff-card-body {
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.gpv-diff-section {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.gpv-diff-section-title {
  font: 700 10px ui-monospace, monospace;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: flex;
  align-items: center;
  gap: 5px;
}

.gpv-diff-entry {
  background: rgba(2, 10, 18, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 6px;
  padding: 8px 10px;
}

.gpv-diff-token {
  font: 700 11px ui-monospace, monospace;
  padding: 2px 7px;
  border-radius: 4px;
  display: inline-block;
}

.gpv-diff-token.raw-ip {
  background: rgba(245, 158, 11, 0.18);
  border: 1px solid rgba(245, 158, 11, 0.45);
  color: #fde047;
}

.gpv-diff-token.safe-token {
  background: rgba(16, 185, 129, 0.18);
  border: 1px solid rgba(16, 185, 129, 0.45);
  color: #6ee7b7;
}

.gpv-diff-meta {
  font-size: 10.5px;
  color: #94a3b8;
  margin-top: 5px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.gpv-diff-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.gpv-diff-meta-key {
  color: #64748b;
  font-size: 10px;
}

.gpv-diff-meta-val {
  color: #cbd5e1;
  font-weight: 500;
}

.gpv-diff-causal-chain {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.gpv-diff-causal-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 10.5px;
  padding: 4px 6px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.02);
}

.gpv-diff-causal-idx {
  width: 16px;
  height: 16px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font: 800 9px ui-monospace, monospace;
  flex-shrink: 0;
}

.raw-col .gpv-diff-causal-idx {
  background: rgba(245, 158, 11, 0.2);
  color: #fbbf24;
}

.safe-col .gpv-diff-causal-idx {
  background: rgba(16, 185, 129, 0.2);
  color: #34d399;
}

.gpv-diff-verdict-box {
  padding: 8px 10px;
  border-radius: 6px;
  font-size: 10.5px;
  line-height: 1.4;
  display: flex;
  align-items: center;
  gap: 8px;
}

.gpv-diff-verdict-box.raw {
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.3);
  color: #fde047;
}

.gpv-diff-verdict-box.safe {
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: #6ee7b7;
}

.gpv-diff-attestation {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 12px 24px;
  background: rgba(8, 28, 44, 0.85);
  border-top: 1px solid rgba(56, 189, 248, 0.15);
  border-bottom: 1px solid rgba(56, 189, 248, 0.15);
}

.gpv-attestation-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.3);
  color: #38bdf8;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  flex-shrink: 0;
}

.gpv-attestation-title {
  font: 700 11px ui-monospace, monospace;
  color: #e2e8f0;
  letter-spacing: 0.02em;
  margin-bottom: 2px;
}

.gpv-attestation-desc {
  font-size: 10.5px;
  color: #94a3b8;
  line-height: 1.45;
}

.gpv-attestation-desc code {
  font-family: ui-monospace, monospace;
  background: rgba(56, 189, 248, 0.12);
  color: #38bdf8;
  padding: 1px 4px;
  border-radius: 3px;
  font-size: 10px;
}

.gpv-modal-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  background: rgba(3, 14, 23, 0.96);
  gap: 12px;
}

.gpv-diff-btn {
  font: 700 11px ui-monospace, monospace;
  padding: 8px 16px;
  border-radius: 7px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
  border: none;
}

.gpv-diff-btn.secondary {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #cbd5e1;
}

.gpv-diff-btn.secondary:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.gpv-diff-btn.primary {
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
  border: 1px solid rgba(56, 189, 248, 0.5);
  color: #fff;
  box-shadow: 0 0 12px rgba(2, 132, 199, 0.35);
}

.gpv-diff-btn.primary:hover {
  background: linear-gradient(135deg, #0369a1 0%, #075985 100%);
  box-shadow: 0 0 18px rgba(56, 189, 248, 0.5);
}

.gpv-diff-btn.primary.sanitized {
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
  border-color: rgba(16, 185, 129, 0.5);
  box-shadow: 0 0 12px rgba(5, 150, 105, 0.35);
}

@media (max-width: 768px) {
  .gpv-diff-summary-strip {
    grid-template-columns: repeat(2, 1fr);
  }
  .gpv-diff-grid {
    grid-template-columns: 1fr;
    max-height: 40vh;
  }
}

/* ==============================================================================
   INTERACTIVE HOVER IDENTIFICATION BUBBLE (ENDPOINTS & PATH INDICATORS)
   ============================================================================== */
.gpv-hover-bubble {
  position: absolute;
  z-index: 35;
  background: rgba(4, 15, 26, 0.95);
  border: 1px solid rgba(56, 189, 248, 0.45);
  border-radius: 12px;
  padding: 12px 14px;
  width: 270px;
  max-width: 90vw;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.75), 0 0 20px rgba(56, 189, 248, 0.22);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  color: #e2f2fa;
  pointer-events: auto;
  transition: opacity 0.18s cubic-bezier(0.16, 1, 0.3, 1), transform 0.18s cubic-bezier(0.16, 1, 0.3, 1);
  transform: translate(-50%, -115%);
  animation: gpvBubblePop 0.18s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes gpvBubblePop {
  from { opacity: 0; transform: translate(-50%, -105%) scale(0.95); }
  to { opacity: 1; transform: translate(-50%, -115%) scale(1); }
}

.gpv-hover-bubble::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 50%;
  transform: translateX(-50%) rotate(45deg);
  width: 10px;
  height: 10px;
  background: rgba(4, 15, 26, 0.95);
  border-right: 1px solid rgba(56, 189, 248, 0.45);
  border-bottom: 1px solid rgba(56, 189, 248, 0.45);
}

.gpv-bubble-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
}

.gpv-bubble-badge {
  font: 800 9px ui-monospace, monospace;
  letter-spacing: 0.06em;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(56, 189, 248, 0.15);
  border: 1px solid rgba(56, 189, 248, 0.35);
  color: #38bdf8;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.gpv-bubble-badge.src {
  background: rgba(56, 189, 248, 0.15);
  border-color: rgba(56, 189, 248, 0.35);
  color: #38bdf8;
}

.gpv-bubble-badge.dst {
  background: rgba(16, 185, 129, 0.15);
  border-color: rgba(16, 185, 129, 0.35);
  color: #34d399;
}

.gpv-bubble-badge.drop {
  background: rgba(244, 63, 94, 0.18);
  border-color: rgba(244, 63, 94, 0.45);
  color: #f43f5e;
}

.gpv-bubble-badge.flow {
  background: rgba(168, 85, 247, 0.15);
  border-color: rgba(168, 85, 247, 0.35);
  color: #c084fc;
}

.gpv-bubble-state {
  font: 700 9px ui-monospace, monospace;
  padding: 1px 6px;
  border-radius: 3px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.gpv-bubble-state.allowed {
  background: rgba(16, 185, 129, 0.2);
  color: #34d399;
}

.gpv-bubble-state.denied {
  background: rgba(244, 63, 94, 0.2);
  color: #f43f5e;
}

.gpv-bubble-freeze {
  font: 700 8.5px ui-monospace, monospace;
  padding: 1px 5px;
  border-radius: 3px;
  background: rgba(56, 189, 248, 0.15);
  border: 1px solid rgba(56, 189, 248, 0.35);
  color: #38bdf8;
  letter-spacing: 0.04em;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  margin-left: auto;
}

.gpv-bubble-title {
  font-size: 13px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 8px;
  line-height: 1.3;
}

.gpv-bubble-rows {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 10px;
  font-size: 11px;
}

.gpv-bubble-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 2px 0;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.05);
}

.gpv-bubble-key {
  color: #94a3b8;
  font: 500 10px ui-monospace, monospace;
}

.gpv-bubble-val {
  color: #f1f5f9;
  font: 600 10.5px ui-monospace, monospace;
  text-align: right;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 170px;
}

.gpv-bubble-footer {
  margin-top: 6px;
  display: flex;
}

.gpv-bubble-btn {
  width: 100%;
  padding: 6px 10px;
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.22), rgba(6, 182, 212, 0.14));
  border: 1px solid rgba(56, 189, 248, 0.5);
  border-radius: 6px;
  color: #38bdf8;
  font: 700 11px ui-monospace, monospace;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.gpv-bubble-btn:hover {
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.38), rgba(6, 182, 212, 0.24));
  border-color: #38bdf8;
  color: #ffffff;
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.4);
  transform: translateY(-1px);
}

/* ==============================================================================
   INTERACTIVE ELEMENT & POLICY DETAILS POPUP MODAL
   ============================================================================== */
.gpv-details-card {
  width: min(920px, 94vw);
}

.gpv-details-body {
  padding: 20px 24px;
  overflow-y: auto;
  max-height: 65vh;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.gpv-details-section {
  background: rgba(2, 10, 18, 0.6);
  border: 1px solid rgba(56, 189, 248, 0.15);
  border-radius: 10px;
  padding: 14px 16px;
}

.gpv-details-sec-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.gpv-details-sec-title {
  font: 700 11px ui-monospace, monospace;
  color: #38bdf8;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  display: flex;
  align-items: center;
  gap: 6px;
}

.gpv-details-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
}

.gpv-details-field {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.gpv-details-field-label {
  font: 500 10px ui-monospace, monospace;
  color: #64748b;
  text-transform: uppercase;
}

.gpv-details-field-value {
  font: 600 12px ui-monospace, monospace;
  color: #f1f5f9;
  word-break: break-all;
}

.gpv-details-code {
  background: #02080d;
  border: 1px solid rgba(56, 189, 248, 0.2);
  border-radius: 6px;
  padding: 12px 14px;
  font: 500 11.5px/1.5 ui-monospace, monospace;
  color: #38bdf8;
  overflow-x: auto;
  white-space: pre-wrap;
  margin: 0;
}

.gpv-details-footer-left {
  font: 500 11px ui-monospace, monospace;
  color: #94a3b8;
  display: flex;
  align-items: center;
}

/* ==============================================================================
   GPV EXPOSURE ASSESSMENT HEADER & ACTION SUITE
   ============================================================================== */
.gpv-exposure-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 8px 16px;
  background: rgba(3, 14, 24, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(56, 189, 248, 0.28);
  position: relative;
  z-index: 35;
  box-sizing: border-box;
  flex-wrap: wrap;
  min-height: 48px;
}

.gpv-exposure-badge-group {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.gpv-exposure-pill {
  font: 800 10px ui-monospace, monospace;
  letter-spacing: 0.06em;
  padding: 3px 8px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  text-transform: uppercase;
  transition: all 0.2s ease;
}

.gpv-exposure-pill.critical {
  background: rgba(239, 68, 68, 0.2);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.5);
  box-shadow: 0 0 12px rgba(239, 68, 68, 0.28);
}

.gpv-exposure-pill.warn {
  background: rgba(245, 158, 11, 0.2);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.5);
  box-shadow: 0 0 12px rgba(245, 158, 11, 0.28);
}

.gpv-exposure-pill.secure {
  background: rgba(16, 185, 129, 0.2);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.5);
  box-shadow: 0 0 12px rgba(16, 185, 129, 0.28);
}

.gpv-exposure-subtitle {
  font: 500 11px ui-monospace, monospace;
  color: #94a3b8;
}

.gpv-exposure-stats {
  display: flex;
  align-items: center;
  gap: 14px;
}

.gpv-exp-stat {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.gpv-exp-label {
  font: 700 8.5px ui-monospace, monospace;
  color: #64748b;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.gpv-exp-stat strong {
  font: 700 11px ui-monospace, monospace;
  color: #f8fafc;
}

.gpv-exposure-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.gpv-exposure-actions .btn {
  padding: 4px 10px;
  font-size: 10.5px;
  border-radius: 5px;
  cursor: pointer;
  transition: all 0.15s ease;
}

/* Adjust stage overlays when top exposure bar is present */
.showcase-view-policy {
  min-height: 920px;
}

.showcase-view-policy .gpv-center-header {
  top: 104px;
}

.showcase-view-policy .gpv-sidebar,
.showcase-view-policy .gpv-right-panel {
  top: 104px;
}

@media (max-width: 1120px) {
  .gpv-exposure-bar {
    padding: 8px 12px;
  }
  .gpv-exposure-stats {
    gap: 8px;
  }
  .showcase-view-policy .gpv-center-header {
    top: 120px;
  }
  .showcase-view-policy .gpv-sidebar,
  .showcase-view-policy .gpv-right-panel {
    top: 120px;
  }
}

@media (max-width: 768px) {
  .gpv-exposure-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    padding: 10px 12px;
  }
  .showcase-view-policy .gpv-center-header {
    top: 150px;
  }
  .showcase-view-policy .gpv-sidebar,
  .showcase-view-policy .gpv-right-panel {
    top: 360px;
  }
}

/* ==============================================================================
   PHASE 12: 5-TIER EVIDENCE CONFIDENCE SYSTEM & UNIVERSAL INSPECTOR STYLES
   ============================================================================== */

/* 1. 5-Tier Evidence Badges */
.gpv-evidence-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 2px 7px;
  border-radius: 5px;
  font: 700 9.5px ui-monospace, monospace;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border: 1px solid transparent;
  transition: all 0.15s ease;
  white-space: nowrap;
}
.gpv-evidence-badge i {
  font-size: 9px;
}
.gpv-evidence-badge.tier-configured {
  background: rgba(56, 189, 248, 0.12);
  color: #38bdf8;
  border-color: rgba(56, 189, 248, 0.35);
}
.gpv-evidence-badge.tier-derived {
  background: rgba(129, 140, 248, 0.14);
  color: #818cf8;
  border-color: rgba(129, 140, 248, 0.35);
}
.gpv-evidence-badge.tier-inferred {
  background: rgba(251, 191, 36, 0.14);
  color: #fbbf24;
  border-color: rgba(251, 191, 36, 0.38);
}
.gpv-evidence-badge.tier-observed {
  background: rgba(52, 211, 153, 0.14);
  color: #34d399;
  border-color: rgba(52, 211, 153, 0.35);
}
.gpv-evidence-badge.tier-enriched {
  background: rgba(192, 132, 252, 0.14);
  color: #c084fc;
  border-color: rgba(192, 132, 252, 0.35);
}

/* 2. Evidence Filter Bar */
.gpv-evidence-filter-bar {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 4px 8px;
  margin-top: 6px;
  background: rgba(2, 13, 20, 0.88);
  border: 1px solid rgba(56, 189, 248, 0.18);
  border-radius: 8px;
  overflow-x: auto;
  max-width: 100%;
  scrollbar-width: thin;
}
.gpv-evidence-filter-label {
  font: 700 9.5px ui-monospace, monospace;
  color: #94a3b8;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
  margin-right: 4px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.gpv-evidence-filter-label i {
  color: #38bdf8;
  font-size: 10px;
}
.gpv-evidence-chip {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #94a3b8;
  font: 600 9.5px ui-monospace, monospace;
  padding: 3px 8px;
  border-radius: 5px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
  transition: all 0.15s ease;
}
.gpv-evidence-chip:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #f8fafc;
  border-color: rgba(255, 255, 255, 0.16);
}
.gpv-evidence-chip .chip-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  display: inline-block;
}
.gpv-evidence-chip .chip-dot.configured { background: #38bdf8; }
.gpv-evidence-chip .chip-dot.derived { background: #818cf8; }
.gpv-evidence-chip .chip-dot.observed { background: #34d399; }
.gpv-evidence-chip .chip-dot.inferred { background: #fbbf24; }
.gpv-evidence-chip .chip-dot.enriched { background: #c084fc; }

.gpv-evidence-chip.active {
  background: rgba(56, 189, 248, 0.16);
  border-color: rgba(56, 189, 248, 0.45);
  color: #38bdf8;
  font-weight: 700;
}
.gpv-evidence-chip.tier-configured.active {
  background: rgba(56, 189, 248, 0.22);
  border-color: #38bdf8;
  color: #38bdf8;
}
.gpv-evidence-chip.tier-derived.active {
  background: rgba(129, 140, 248, 0.22);
  border-color: #818cf8;
  color: #818cf8;
}
.gpv-evidence-chip.tier-observed.active {
  background: rgba(52, 211, 153, 0.22);
  border-color: #34d399;
  color: #34d399;
}
.gpv-evidence-chip.tier-inferred.active {
  background: rgba(251, 191, 36, 0.22);
  border-color: #fbbf24;
  color: #fbbf24;
}
.gpv-evidence-chip.tier-enriched.active {
  background: rgba(192, 132, 252, 0.22);
  border-color: #c084fc;
  color: #c084fc;
}

/* 3. Universal Inspector Button in Controls */
.gpv-inspector-pill-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px;
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.35);
  border-radius: 6px;
  color: #38bdf8;
  font: 700 11px ui-monospace, monospace;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}
.gpv-inspector-pill-btn:hover {
  background: rgba(56, 189, 248, 0.22);
  border-color: #38bdf8;
  box-shadow: 0 0 14px rgba(56, 189, 248, 0.28);
}

/* 4. Universal Graph Inspector Slide-out Drawer */
.gpv-inspector-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: var(--z-gpv-inspector-backdrop);
  animation: gpvFadeIn 0.2s ease;
}
.gpv-inspector-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(580px, 94vw);
  background: #040e16;
  border-left: 1px solid rgba(56, 189, 248, 0.32);
  box-shadow: -16px 0 48px rgba(0, 0, 0, 0.85);
  z-index: var(--z-gpv-inspector-drawer);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: gpvSlideInRight 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes gpvSlideInRight {
  from { transform: translateX(100%); }
  to { transform: translateX(0); }
}

.gpv-inspector-header {
  padding: 16px 20px;
  background: linear-gradient(180deg, rgba(14, 69, 92, 0.35) 0%, rgba(4, 14, 22, 0.95) 100%);
  border-bottom: 1px solid rgba(56, 189, 248, 0.2);
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}
.gpv-inspector-header-left {
  flex: 1;
  min-width: 0;
}
.gpv-inspector-eyebrow {
  font: 700 9.5px ui-monospace, monospace;
  color: #38bdf8;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 4px;
}
.gpv-inspector-title {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  color: #f8fafc;
  letter-spacing: -0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.gpv-inspector-subtitle {
  margin-top: 5px;
  font-size: 11px;
  color: #94a3b8;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.gpv-inspector-dot {
  color: #475569;
}
.gpv-inspector-header-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}
.gpv-inspector-btn {
  padding: 4px 9px;
  border-radius: 5px;
  font: 600 10.5px ui-monospace, monospace;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #cbd5e1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: all 0.15s ease;
}
.gpv-inspector-btn:hover {
  background: rgba(56, 189, 248, 0.15);
  border-color: rgba(56, 189, 248, 0.4);
  color: #38bdf8;
}
.gpv-inspector-btn.filter:hover {
  background: rgba(129, 140, 248, 0.18);
  border-color: rgba(129, 140, 248, 0.45);
  color: #818cf8;
}
.gpv-inspector-close-btn {
  background: transparent;
  border: none;
  color: #94a3b8;
  font-size: 16px;
  padding: 4px 6px;
  cursor: pointer;
  border-radius: 4px;
  transition: all 0.15s ease;
}
.gpv-inspector-close-btn:hover {
  color: #f8fafc;
  background: rgba(255, 255, 255, 0.08);
}

.gpv-inspector-tabs {
  display: flex;
  gap: 2px;
  padding: 0 16px;
  background: rgba(2, 13, 20, 0.7);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  overflow-x: auto;
  scrollbar-width: none;
}
.gpv-inspector-tab {
  padding: 9px 12px;
  font: 600 11px system-ui, -apple-system, sans-serif;
  color: #94a3b8;
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  transition: all 0.15s ease;
}
.gpv-inspector-tab:hover {
  color: #e2e8f0;
}
.gpv-inspector-tab.active {
  color: #38bdf8;
  border-bottom-color: #38bdf8;
  font-weight: 700;
}

.gpv-inspector-body {
  padding: 18px 20px;
  overflow-y: auto;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 14px;
  background: #040e16;
}
.gpv-inspector-tab-pane {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.gpv-inspector-box-desc {
  font-size: 11px;
  color: #94a3b8;
  line-height: 1.5;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 6px;
}

/* Tab 1: Code editor box */
.gpv-cli-editor-wrapper {
  background: #02070c;
  border: 1px solid rgba(56, 189, 248, 0.25);
  border-radius: 8px;
  overflow: hidden;
}
.gpv-cli-editor-header {
  padding: 7px 12px;
  background: rgba(56, 189, 248, 0.08);
  border-bottom: 1px solid rgba(56, 189, 248, 0.15);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font: 600 10.5px ui-monospace, monospace;
  color: #94a3b8;
}
.gpv-cli-editor-header span:first-child {
  color: #38bdf8;
  display: flex;
  align-items: center;
  gap: 6px;
}
.gpv-cli-code-block {
  margin: 0;
  padding: 12px 14px;
  font: 11.5px/1.6 ui-monospace, monospace;
  color: #e2e8f0;
  overflow-x: auto;
  white-space: pre;
  background: transparent;
}
.gpv-cli-code-block .line-num {
  color: #475569;
  user-select: none;
  margin-right: 12px;
  display: inline-block;
  min-width: 28px;
  text-align: right;
}
.gpv-cli-code-block .cli-kw { color: #38bdf8; font-weight: 700; }
.gpv-cli-code-block .cli-str { color: #34d399; }
.gpv-cli-code-block .cli-num { color: #fbbf24; }
.gpv-cli-code-block .cli-cmt { color: #64748b; font-style: italic; }

/* Tab 2: Math cards */
.gpv-math-cards-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.gpv-math-card {
  padding: 12px;
  background: rgba(2, 13, 20, 0.7);
  border: 1px solid rgba(129, 140, 248, 0.25);
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.gpv-math-card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.gpv-math-card-title {
  font: 700 11px ui-monospace, monospace;
  color: #818cf8;
  display: flex;
  align-items: center;
  gap: 6px;
}
.gpv-math-card-badge {
  font: 700 9px ui-monospace, monospace;
  padding: 1px 6px;
  border-radius: 4px;
  background: rgba(129, 140, 248, 0.15);
  color: #818cf8;
  border: 1px solid rgba(129, 140, 248, 0.3);
}
.gpv-math-card-formula {
  font: 11px/1.5 ui-monospace, monospace;
  background: rgba(0, 0, 0, 0.4);
  padding: 8px 10px;
  border-radius: 5px;
  color: #e2e8f0;
  border: 1px solid rgba(255, 255, 255, 0.05);
}
.gpv-math-card-desc {
  font-size: 10.5px;
  color: #94a3b8;
  line-height: 1.4;
}

/* Tab 3: Telemetry box */
.gpv-telemetry-citation-box {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.gpv-telemetry-item {
  padding: 12px;
  background: rgba(2, 13, 20, 0.7);
  border: 1px solid rgba(52, 211, 153, 0.25);
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.gpv-telemetry-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font: 700 11px ui-monospace, monospace;
  color: #34d399;
}
.gpv-telemetry-log {
  font: 10.5px/1.5 ui-monospace, monospace;
  background: rgba(0, 0, 0, 0.5);
  padding: 8px 10px;
  border-radius: 5px;
  color: #cbd5e1;
  word-break: break-all;
  border: 1px solid rgba(52, 211, 153, 0.2);
}
.gpv-telemetry-stats-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.gpv-telemetry-stat {
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.gpv-telemetry-stat-label {
  font: 700 8.5px ui-monospace, monospace;
  color: #64748b;
  text-transform: uppercase;
}
.gpv-telemetry-stat-val {
  font: 700 11px ui-monospace, monospace;
  color: #f8fafc;
}

/* Tab 4: Provenance chain */
.gpv-provenance-chain-box {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.gpv-prov-step {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 12px;
  background: rgba(2, 13, 20, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 7px;
}
.gpv-prov-num {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(56, 189, 248, 0.15);
  color: #38bdf8;
  font: 700 10px ui-monospace, monospace;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.gpv-prov-info {
  flex: 1;
}
.gpv-prov-info strong {
  display: block;
  font-size: 11px;
  color: #f8fafc;
  margin-bottom: 2px;
}
.gpv-prov-info span {
  font-size: 10px;
  color: #94a3b8;
  line-height: 1.4;
}

/* ==============================================================================
   PHASE 13: CORE 2D ANALYTICAL LENSES (MATRIX, FUNNEL & HEATMAP)
   ============================================================================== */

/* 1. Analytical Lenses Selector Bar */
.gpv-lens-selector-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: rgba(3, 18, 28, 0.92);
  border: 1px solid rgba(56, 189, 248, 0.28);
  border-radius: 24px;
  padding: 3px 6px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(10px);
  margin-bottom: 2px;
  max-width: 100%;
  overflow-x: auto;
  pointer-events: auto;
}

.gpv-lens-tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  border: 1px solid transparent;
  color: #94a3b8;
  font: 600 11px ui-monospace, monospace;
  padding: 5px 12px;
  border-radius: 18px;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.gpv-lens-tab:hover {
  color: #f8fafc;
  background: rgba(56, 189, 248, 0.08);
  border-color: rgba(56, 189, 248, 0.2);
}

.gpv-lens-tab.active {
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.16);
  border-color: rgba(56, 189, 248, 0.5);
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.25);
  font-weight: 700;
}

/* 2. Lens Viewports Common Framing */
.showcase-view-policy.gpv-lens-mode-2d .gpv-map-header-controls,
.showcase-view-policy.gpv-lens-mode-2d .gpv-mode-selector-bar,
.showcase-view-policy.gpv-lens-mode-2d .gpv-evidence-filter-bar,
.showcase-view-policy.gpv-lens-mode-2d .gpv-sidebar,
.showcase-view-policy.gpv-lens-mode-2d .gpv-right-panel,
.showcase-view-policy.gpv-lens-mode-2d .gpv-map-legend,
.showcase-view-policy.gpv-lens-mode-2d .gpv-privacy-state-bar {
  display: none !important;
}

.showcase-view-policy.gpv-lens-mode-2d .gpv-center-header {
  top: 14px !important;
  width: auto !important;
  max-width: 90% !important;
  pointer-events: auto !important;
}

.showcase-view-policy.gpv-lens-mode-2d .gpv-lens-viewport {
  padding-top: 88px !important;
}

.gpv-lens-viewport {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background: #020d14;
  background: radial-gradient(circle at 50% 25%, rgba(14, 69, 92, 0.25), #020d14 75%);
  z-index: 22;
  display: flex;
  flex-direction: column;
  padding-top: 195px;
  padding-bottom: 16px;
  padding-left: 20px;
  padding-right: 20px;
  box-sizing: border-box;
  overflow: hidden;
  animation: gpvFadeIn 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.gpv-lens-pane-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  background: rgba(4, 18, 28, 0.85);
  border: 1px solid rgba(56, 189, 248, 0.2);
  border-radius: 8px 8px 0 0;
  flex-shrink: 0;
}

.gpv-lens-pane-title {
  display: flex;
  align-items: center;
  gap: 10px;
}

.gpv-lens-pane-title h4 {
  margin: 0;
  font-size: 13.5px;
  font-weight: 700;
  color: #f8fafc;
  letter-spacing: -0.01em;
}

.gpv-lens-pill {
  font: 700 9.5px ui-monospace, monospace;
  padding: 2px 8px;
  border-radius: 12px;
  background: rgba(56, 189, 248, 0.15);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.3);
}

.gpv-lens-pill.warn {
  background: rgba(251, 191, 36, 0.15);
  color: #fbbf24;
  border-color: rgba(251, 191, 36, 0.3);
}

.gpv-lens-legend {
  display: flex;
  align-items: center;
  gap: 14px;
}

.gpv-lens-legend .legend-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font: 500 10.5px ui-monospace, monospace;
  color: #94a3b8;
}

.gpv-lens-legend .legend-chip {
  width: 10px;
  height: 10px;
  border-radius: 2px;
}

.legend-chip.allowed { background: #10b981; }
.legend-chip.denied { background: #f43f5e; }
.legend-chip.partial { background: #f59e0b; }
.legend-chip.empty { background: #334155; }
.legend-chip.stage-wan { background: #f43f5e; }
.legend-chip.stage-vip { background: #f59e0b; }
.legend-chip.stage-dmz { background: #38bdf8; }
.legend-chip.stage-core { background: #10b981; }

/* 3. Lens 02: Reachability Matrix */
.gpv-matrix-scroll-wrapper {
  flex: 1;
  overflow: auto;
  background: rgba(2, 11, 18, 0.95);
  border: 1px solid rgba(56, 189, 248, 0.18);
  border-top: none;
  border-radius: 0 0 8px 8px;
  padding: 14px;
}

.gpv-matrix-table-container {
  display: inline-block;
  min-width: 100%;
}

.gpv-matrix-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 4px;
  font-family: ui-monospace, monospace;
}

.gpv-matrix-corner-th {
  background: rgba(15, 23, 42, 0.9);
  color: #64748b;
  font-size: 10px;
  padding: 8px 12px;
  text-align: left;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 4px;
  position: sticky;
  top: 0;
  left: 0;
  z-index: 4;
}

.gpv-matrix-col-th {
  background: rgba(15, 23, 42, 0.9);
  color: #38bdf8;
  font-size: 11px;
  font-weight: 700;
  padding: 8px 10px;
  text-align: center;
  border: 1px solid rgba(56, 189, 248, 0.18);
  border-radius: 4px;
  position: sticky;
  top: 0;
  z-index: 3;
  min-width: 120px;
}

.gpv-matrix-row-th {
  background: rgba(15, 23, 42, 0.9);
  color: #38bdf8;
  font-size: 11px;
  font-weight: 700;
  padding: 8px 12px;
  text-align: left;
  border: 1px solid rgba(56, 189, 248, 0.18);
  border-radius: 4px;
  position: sticky;
  left: 0;
  z-index: 3;
  white-space: nowrap;
}

.gpv-matrix-cell {
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 4px;
  padding: 8px 10px;
  text-align: center;
  cursor: pointer;
  transition: all 0.18s ease;
  vertical-align: middle;
}

.gpv-matrix-cell:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.45);
  border-color: rgba(56, 189, 248, 0.45);
  background: rgba(15, 30, 48, 0.85);
}

.gpv-matrix-cell.selected {
  outline: 2px solid #38bdf8 !important;
  box-shadow: 0 0 16px rgba(56, 189, 248, 0.6) !important;
  background: rgba(14, 165, 233, 0.22) !important;
}

.gpv-matrix-cell.status-allowed {
  border-color: rgba(16, 185, 129, 0.35);
  background: rgba(16, 185, 129, 0.08);
}

.gpv-matrix-cell.status-denied {
  border-color: rgba(244, 63, 94, 0.35);
  background: rgba(244, 63, 94, 0.08);
}

.gpv-matrix-cell.status-partial {
  border-color: rgba(245, 158, 11, 0.35);
  background: rgba(245, 158, 11, 0.08);
}

.gpv-matrix-cell.status-empty {
  color: #475569;
  cursor: default;
  opacity: 0.65;
}

.gpv-matrix-cell.self-loop {
  background: rgba(30, 41, 59, 0.2);
  border-style: dashed;
}

.gpv-matrix-cell-badge {
  display: inline-block;
  font-size: 9.5px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 3px;
  margin-bottom: 3px;
}

.gpv-matrix-cell-badge.allowed {
  background: rgba(16, 185, 129, 0.2);
  color: #34d399;
}

.gpv-matrix-cell-badge.denied {
  background: rgba(244, 63, 94, 0.2);
  color: #fb7185;
}

.gpv-matrix-cell-badge.partial {
  background: rgba(245, 158, 11, 0.2);
  color: #fbbf24;
}

.gpv-matrix-cell-stats {
  font-size: 9.5px;
  color: #94a3b8;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.gpv-matrix-security-tags {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  margin-top: 4px;
}

.matrix-sec-tag {
  font-size: 8px;
  padding: 0 4px;
  border-radius: 2px;
  background: rgba(56, 189, 248, 0.12);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.25);
}

.matrix-sec-tag.gap {
  background: rgba(244, 63, 94, 0.12);
  color: #fb7185;
  border-color: rgba(244, 63, 94, 0.3);
}

/* 4. Lens 03: Attack Funnel */
.gpv-funnel-container {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  padding: 14px;
  background: rgba(2, 11, 18, 0.95);
  border: 1px solid rgba(56, 189, 248, 0.18);
  border-top: none;
  border-radius: 0 0 8px 8px;
  overflow-y: auto;
}

.gpv-funnel-column {
  display: flex;
  flex-direction: column;
  background: rgba(8, 20, 32, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 12px;
  gap: 10px;
}

.gpv-funnel-col-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 8px;
}

.gpv-funnel-col-title {
  display: flex;
  align-items: center;
  gap: 7px;
  font: 700 11px ui-monospace, monospace;
  color: #f8fafc;
}

.gpv-funnel-col-count {
  font: 700 9.5px ui-monospace, monospace;
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.12);
  padding: 1px 6px;
  border-radius: 10px;
}

.gpv-funnel-items-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  overflow-y: auto;
  max-height: calc(100% - 30px);
}

.gpv-funnel-card {
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  padding: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
}

.gpv-funnel-card:hover {
  border-color: rgba(56, 189, 248, 0.45);
  background: rgba(20, 36, 56, 0.85);
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
}

.gpv-funnel-card.selected {
  outline: 2px solid #38bdf8 !important;
  border-color: #38bdf8 !important;
  box-shadow: 0 0 16px rgba(56, 189, 248, 0.5) !important;
  background: rgba(14, 165, 233, 0.18) !important;
}

.gpv-funnel-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4px;
}

.gpv-funnel-card-id {
  font: 700 11px ui-monospace, monospace;
  color: #f8fafc;
}

.gpv-funnel-card-meta {
  font-size: 10px;
  color: #94a3b8;
  margin-bottom: 6px;
  line-height: 1.3;
}

.gpv-funnel-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.funnel-tag {
  font: 600 8.5px ui-monospace, monospace;
  padding: 1px 5px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.06);
  color: #cbd5e1;
}

.funnel-tag.highlight {
  background: rgba(56, 189, 248, 0.15);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.3);
}

.funnel-tag.danger {
  background: rgba(244, 63, 94, 0.15);
  color: #fb7185;
  border: 1px solid rgba(244, 63, 94, 0.3);
}

/* 5. Lens 04: Inspection Heatmap */
.gpv-heatmap-stats-strip {
  display: flex;
  align-items: center;
  gap: 16px;
}

.heatmap-stat-item {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.h-stat-lbl {
  font: 600 8.5px ui-monospace, monospace;
  color: #64748b;
  letter-spacing: 0.05em;
}

.heatmap-stat-item strong {
  font: 700 12px ui-monospace, monospace;
  color: #38bdf8;
}

.gpv-heatmap-scroll-wrapper {
  flex: 1;
  overflow: auto;
  background: rgba(2, 11, 18, 0.95);
  border: 1px solid rgba(56, 189, 248, 0.18);
  border-top: none;
  border-radius: 0 0 8px 8px;
  padding: 12px;
}

.gpv-heatmap-table {
  width: 100%;
  border-collapse: collapse;
  font-family: ui-monospace, monospace;
}

.gpv-heatmap-table th {
  background: rgba(15, 23, 42, 0.9);
  color: #94a3b8;
  font-size: 10.5px;
  font-weight: 700;
  text-align: left;
  padding: 8px 10px;
  border-bottom: 2px solid rgba(56, 189, 248, 0.25);
  position: sticky;
  top: 0;
  z-index: 2;
  white-space: nowrap;
}

.gpv-heatmap-row {
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  cursor: pointer;
  transition: all 0.15s ease;
}

.gpv-heatmap-row:hover {
  background: rgba(56, 189, 248, 0.07);
}

.gpv-heatmap-row.selected {
  background: rgba(14, 165, 233, 0.18) !important;
  outline: 1px solid #38bdf8;
}

.gpv-heatmap-row td {
  padding: 8px 10px;
  font-size: 11px;
  color: #cbd5e1;
  white-space: nowrap;
}

.h-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 7px;
  border-radius: 4px;
  font-size: 9.5px;
  font-weight: 700;
}

.h-badge.ok {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.h-badge.gap {
  background: rgba(244, 63, 94, 0.15);
  color: #fb7185;
  border: 1px solid rgba(244, 63, 94, 0.3);
}

.h-badge.partial {
  background: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.h-badge.none {
  background: rgba(71, 85, 105, 0.2);
  color: #64748b;
  border: 1px solid rgba(71, 85, 105, 0.25);
}

/* ==============================================================================
   PHASE 14 & 16: OPERATIONAL RESILIENCE LENSES & 4D POLICY HYGIENE STYLES
   ============================================================================== */

/* Mini Action Buttons */
.gpv-dora-mini-btn, .gpv-quarantine-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 6px;
  font: 700 10.5px ui-monospace, monospace;
  cursor: pointer;
  transition: all 0.18s ease;
}
.gpv-dora-mini-btn {
  background: rgba(192, 132, 252, 0.15);
  border: 1px solid rgba(192, 132, 252, 0.35);
  color: #c084fc;
}
.gpv-dora-mini-btn:hover {
  background: rgba(192, 132, 252, 0.25);
  box-shadow: 0 0 10px rgba(192, 132, 252, 0.3);
}
.gpv-quarantine-btn {
  background: rgba(244, 63, 94, 0.18);
  border: 1px solid rgba(244, 63, 94, 0.4);
  color: #fb7185;
}
.gpv-quarantine-btn:hover {
  background: rgba(244, 63, 94, 0.28);
  box-shadow: 0 0 12px rgba(244, 63, 94, 0.35);
}

/* 6. Lens 05: HA Resilience & Split-Brain Blueprint */
.gpv-ha-container {
  flex: 1;
  overflow: auto;
  background: rgba(2, 11, 18, 0.95);
  border: 1px solid rgba(56, 189, 248, 0.18);
  border-top: none;
  border-radius: 0 0 8px 8px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.gpv-ha-cluster-strip {
  display: grid;
  grid-template-columns: 1fr 1.2fr 1fr;
  gap: 16px;
  align-items: stretch;
}

.gpv-ha-node-card {
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(56, 189, 248, 0.25);
  border-radius: 8px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: all 0.2s ease;
}
.gpv-ha-node-card.primary {
  border-color: rgba(16, 185, 129, 0.45);
  box-shadow: 0 0 16px rgba(16, 185, 129, 0.12);
}
.gpv-ha-node-card.secondary {
  border-color: rgba(56, 189, 248, 0.35);
}

.gpv-ha-node-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.gpv-ha-node-title {
  font: 700 13px ui-monospace, monospace;
  color: #f8fafc;
  display: flex;
  align-items: center;
  gap: 8px;
}
.gpv-ha-role-tag {
  font: 700 9.5px ui-monospace, monospace;
  padding: 2px 7px;
  border-radius: 4px;
}
.gpv-ha-role-tag.master {
  background: rgba(16, 185, 129, 0.2);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.4);
}
.gpv-ha-role-tag.slave {
  background: rgba(56, 189, 248, 0.2);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.4);
}

.gpv-ha-kv-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font: 11px ui-monospace, monospace;
}
.gpv-ha-kv-row {
  display: flex;
  justify-content: space-between;
  color: #94a3b8;
}
.gpv-ha-kv-row strong {
  color: #e2e8f0;
}

.gpv-ha-heartbeat-bridge {
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: rgba(3, 16, 26, 0.7);
  border: 1px solid rgba(56, 189, 248, 0.2);
  border-radius: 8px;
  padding: 12px;
}
.gpv-ha-hb-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: 6px;
  padding: 8px 12px;
  font: 11px ui-monospace, monospace;
}
.gpv-ha-hb-link.active-pulse {
  border-color: rgba(56, 189, 248, 0.4);
}
.gpv-ha-dot-pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 8px #34d399;
  display: inline-block;
  animation: gpvPulse 1.8s infinite;
}

.gpv-ha-quorum-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.25);
  border-radius: 6px;
  padding: 10px 14px;
  font: 11.5px ui-monospace, monospace;
  color: #34d399;
}

.gpv-ha-actions-row {
  display: flex;
  gap: 12px;
  align-items: center;
}
.gpv-ha-cli-snippet {
  flex: 1;
  background: #010910;
  border: 1px solid rgba(56, 189, 248, 0.2);
  border-radius: 6px;
  padding: 8px 12px;
  font: 11px ui-monospace, monospace;
  color: #38bdf8;
  overflow-x: auto;
  white-space: nowrap;
}

/* 7. Lens 06: SD-WAN Dynamic Performance & SLA Steer Map */
.gpv-sdwan-container {
  flex: 1;
  overflow: auto;
  background: rgba(2, 11, 18, 0.95);
  border: 1px solid rgba(56, 189, 248, 0.18);
  border-top: none;
  border-radius: 0 0 8px 8px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

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

.gpv-sdwan-card {
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(56, 189, 248, 0.25);
  border-radius: 8px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: all 0.2s ease;
}
.gpv-sdwan-card.in-sla {
  border-color: rgba(16, 185, 129, 0.45);
}
.gpv-sdwan-card.out-sla {
  border-color: rgba(244, 63, 94, 0.45);
}

.gpv-sdwan-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.gpv-sdwan-member-name {
  font: 700 13px ui-monospace, monospace;
  color: #f8fafc;
}

.gpv-sdwan-metrics-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  background: rgba(2, 8, 14, 0.6);
  border-radius: 6px;
  padding: 8px;
  text-align: center;
}
.sdwan-m-val {
  font: 700 13px ui-monospace, monospace;
  color: #38bdf8;
}
.sdwan-m-lbl {
  font: 600 8.5px ui-monospace, monospace;
  color: #64748b;
  margin-top: 2px;
}

.gpv-sdwan-steer-table {
  width: 100%;
  border-collapse: collapse;
  font-family: ui-monospace, monospace;
}
.gpv-sdwan-steer-table th {
  background: rgba(15, 23, 42, 0.9);
  color: #94a3b8;
  font-size: 10.5px;
  font-weight: 700;
  text-align: left;
  padding: 8px 10px;
  border-bottom: 2px solid rgba(56, 189, 248, 0.25);
}
.gpv-sdwan-steer-table td {
  padding: 8px 10px;
  font-size: 11px;
  color: #cbd5e1;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

/* 8. Lens 07: Blast-Radius & Lateral Propagation Analyzer */
.gpv-blast-container {
  flex: 1;
  overflow: auto;
  background: rgba(2, 11, 18, 0.95);
  border: 1px solid rgba(56, 189, 248, 0.18);
  border-top: none;
  border-radius: 0 0 8px 8px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.gpv-blast-controls {
  display: flex;
  align-items: center;
  gap: 10px;
}
.gpv-blast-select {
  background: #020b12;
  border: 1px solid rgba(56, 189, 248, 0.3);
  color: #f8fafc;
  padding: 5px 10px;
  border-radius: 6px;
  font: 700 11px ui-monospace, monospace;
  cursor: pointer;
}

.gpv-blast-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(245, 158, 11, 0.08);
  border: 1px solid rgba(245, 158, 11, 0.3);
  border-radius: 8px;
  padding: 12px 16px;
}
.gpv-blast-score-display {
  display: flex;
  align-items: center;
  gap: 12px;
}
.gpv-blast-score-number {
  font: 900 24px ui-monospace, monospace;
  color: #f59e0b;
}

.gpv-blast-table {
  width: 100%;
  border-collapse: collapse;
  font-family: ui-monospace, monospace;
}
.gpv-blast-table th {
  background: rgba(15, 23, 42, 0.9);
  color: #94a3b8;
  font-size: 10.5px;
  font-weight: 700;
  text-align: left;
  padding: 8px 10px;
  border-bottom: 2px solid rgba(56, 189, 248, 0.25);
}
.gpv-blast-table td {
  padding: 8px 10px;
  font-size: 11px;
  color: #cbd5e1;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

/* 9. 4D Policy Hygiene Modal & Drawer */
.gpv-hygiene-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: var(--z-gpv-modal-backdrop, 100010);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.gpv-hygiene-modal-card {
  width: 100%;
  max-width: 900px;
  max-height: 85vh;
  background: #020c15;
  border: 1px solid rgba(168, 85, 247, 0.4);
  border-radius: 12px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.8), 0 0 24px rgba(168, 85, 247, 0.2);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.gpv-hygiene-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  background: rgba(15, 23, 42, 0.8);
  border-bottom: 1px solid rgba(168, 85, 247, 0.25);
}
.gpv-hygiene-close-btn {
  background: transparent;
  border: none;
  color: #94a3b8;
  font-size: 22px;
  cursor: pointer;
}
.gpv-hygiene-close-btn:hover {
  color: #f8fafc;
}
.gpv-hygiene-tab-strip {
  display: flex;
  gap: 4px;
  padding: 8px 18px;
  background: rgba(2, 9, 16, 0.9);
  border-bottom: 1px solid rgba(56, 189, 248, 0.15);
}
.gpv-hygiene-tab {
  background: transparent;
  border: 1px solid transparent;
  border-radius: 6px;
  color: #94a3b8;
  padding: 6px 12px;
  font: 700 11px ui-monospace, monospace;
  cursor: pointer;
  transition: all 0.15s ease;
}
.gpv-hygiene-tab:hover {
  color: #fff;
  background: rgba(168, 85, 247, 0.1);
}
.gpv-hygiene-tab.active {
  background: rgba(168, 85, 247, 0.18);
  color: #c084fc;
  border-color: rgba(168, 85, 247, 0.45);
}
.gpv-hygiene-modal-body {
  padding: 16px 18px;
  overflow-y: auto;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.gpv-hygiene-card {
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 12px 14px;
}
.gpv-hygiene-card.shadow {
  border-color: rgba(244, 63, 94, 0.35);
  background: rgba(244, 63, 94, 0.04);
}
.gpv-hygiene-card.redundant {
  border-color: rgba(245, 158, 11, 0.35);
  background: rgba(245, 158, 11, 0.04);
}
.gpv-hygiene-cli-box {
  background: #01080e;
  border: 1px solid rgba(56, 189, 248, 0.25);
  border-radius: 6px;
  padding: 10px 12px;
  font: 11px ui-monospace, monospace;
  color: #38bdf8;
  white-space: pre-wrap;
  margin-top: 8px;
}

@keyframes gpvPulse {
  0% { transform: scale(0.95); opacity: 0.8; }
  50% { transform: scale(1.15); opacity: 1; }
  100% { transform: scale(0.95); opacity: 0.8; }
}

/* =============================================================================
   PHASE 17: RESPONSE QUALITY & HIGH-FIDELITY INTELLIGENCE ASSURANCE STYLES
   ============================================================================= */

/* 1. Exact Line Provenance Badges & Line Syntax Modal */
.btn-line-provenance {
  font: 700 10.5px ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  background: rgba(56, 189, 248, 0.08);
  border: 1px solid rgba(56, 189, 248, 0.3);
  color: #38bdf8;
  padding: 4px 8px;
  border-radius: 5px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: all 0.15s ease;
}
.btn-line-provenance:hover {
  background: rgba(56, 189, 248, 0.2);
  border-color: #38bdf8;
  color: #fff;
  transform: translateY(-1px);
}

.line-prov-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: var(--z-gpv-modal-backdrop, 100010);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.line-prov-modal-card {
  width: 100%;
  max-width: 840px;
  max-height: 85vh;
  background: #020b14;
  border: 1px solid rgba(56, 189, 248, 0.4);
  border-radius: 12px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.8), 0 0 24px rgba(56, 189, 248, 0.15);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.line-prov-code-container {
  background: #01060c;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 11.5px;
  line-height: 1.6;
  overflow-x: auto;
  padding: 12px 0;
}
.line-prov-code-row {
  display: flex;
  padding: 2px 14px;
}
.line-prov-code-row.target-line {
  background: rgba(239, 68, 68, 0.18);
  border-left: 3px solid #ef4444;
}
.line-prov-gutter {
  width: 48px;
  user-select: none;
  color: #64748b;
  text-align: right;
  padding-right: 14px;
  font-weight: 600;
}
.line-prov-code-text {
  color: #cbd5e1;
  flex: 1;
  white-space: pre;
}
.line-prov-code-row.target-line .line-prov-code-text {
  color: #fca5a5;
  font-weight: 700;
}

/* 2. Model-Aware & Version-Aware Remediation Tier Selectors */
.tier-selector-strip {
  display: flex;
  gap: 8px;
  align-items: center;
  background: rgba(0, 0, 0, 0.45);
  padding: 6px 10px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.tier-selector-btn {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #94a3b8;
  font: 600 11px ui-monospace, monospace;
  padding: 4px 10px;
  border-radius: 5px;
  cursor: pointer;
  transition: all 0.15s ease;
}
.tier-selector-btn:hover {
  color: #f8fafc;
  background: rgba(255, 255, 255, 0.08);
}
.tier-selector-btn.active {
  background: rgba(168, 85, 247, 0.2);
  border-color: #a855f7;
  color: #e9d5ff;
  font-weight: 700;
  box-shadow: 0 0 10px rgba(168, 85, 247, 0.3);
}

/* 3. Ticket-Ready TAC & CAB ITIL Dossier Modal */
.tac-cab-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.82);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: var(--z-gpv-modal-backdrop, 100010);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.tac-cab-modal-card {
  width: 100%;
  max-width: 920px;
  max-height: 88vh;
  background: #020912;
  border: 1px solid rgba(244, 63, 94, 0.4);
  border-radius: 12px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.85), 0 0 30px rgba(244, 63, 94, 0.2);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.tac-cab-tab-btn {
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  color: #94a3b8;
  font: 700 12px ui-monospace, monospace;
  padding: 10px 16px;
  cursor: pointer;
  transition: all 0.15s ease;
}
.tac-cab-tab-btn:hover {
  color: #f1f5f9;
}
.tac-cab-tab-btn.active {
  color: #f43f5e;
  border-bottom-color: #f43f5e;
  background: rgba(244, 63, 94, 0.08);
}
.tac-cab-tab-btn.cab-active {
  color: #c084fc;
  border-bottom-color: #c084fc;
  background: rgba(192, 132, 252, 0.08);
}

/* 4. Truthfulness & Reference Badges */
.ferrite-truth-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font: 700 9.5px ui-monospace, monospace;
  padding: 2px 8px;
  border-radius: 4px;
  letter-spacing: 0.3px;
}
.ferrite-truth-badge.live {
  background: rgba(56, 189, 248, 0.15);
  border: 1px solid rgba(56, 189, 248, 0.4);
  color: #38bdf8;
  box-shadow: 0 0 8px rgba(56, 189, 248, 0.25);
}
.ferrite-truth-badge.benchmark {
  background: rgba(168, 85, 247, 0.12);
  border: 1px solid rgba(168, 85, 247, 0.35);
  color: #c084fc;
}

/* -----------------------------------------------------------------------------
   PHASE 20: 6-LAYER SELECTOR BAR, RUNTIME TELEMETRY & TIME-TRAVEL SCRUBBER
   ----------------------------------------------------------------------------- */
.gpv-layer-selector-bar {
  display: flex;
  align-items: center;
  gap: 4px;
  background: rgba(10, 16, 26, 0.85);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 3px 5px;
  margin: 6px 0;
  overflow-x: auto;
}
.gpv-layer-btn {
  background: transparent;
  border: 1px solid transparent;
  color: #94a3b8;
  font: 750 10px ui-monospace, monospace;
  padding: 4px 9px;
  border-radius: 6px;
  cursor: pointer;
  letter-spacing: 0.5px;
  transition: all 0.15s ease;
  white-space: nowrap;
}
.gpv-layer-btn:hover {
  color: #f8fafc;
  background: rgba(255, 255, 255, 0.05);
}
.gpv-layer-btn.active[data-layer="intent"] {
  background: rgba(56, 189, 248, 0.15);
  border-color: #38bdf8;
  color: #38bdf8;
}
.gpv-layer-btn.active[data-layer="observed"] {
  background: rgba(52, 211, 153, 0.15);
  border-color: #34d399;
  color: #34d399;
}
.gpv-layer-btn.active[data-layer="security"] {
  background: rgba(251, 191, 36, 0.15);
  border-color: #fbbf24;
  color: #fbbf24;
}
.gpv-layer-btn.active[data-layer="path"] {
  background: rgba(168, 85, 247, 0.15);
  border-color: #c084fc;
  color: #c084fc;
}
.gpv-layer-btn.active[data-layer="live"] {
  background: rgba(244, 63, 94, 0.15);
  border-color: #f43f5e;
  color: #f43f5e;
  animation: pulseLiveBorder 2s infinite;
}
.gpv-layer-btn.active[data-layer="events"] {
  background: rgba(239, 68, 68, 0.18);
  border-color: #ef4444;
  color: #ef4444;
}
.gpv-layer-btn.active[data-layer="combined"] {
  background: rgba(245, 158, 11, 0.18);
  border-color: #f59e0b;
  color: #fbbf24;
  box-shadow: 0 0 10px rgba(245, 158, 11, 0.3);
}

@keyframes pulseLiveBorder {
  0% { box-shadow: 0 0 0 0 rgba(244, 63, 94, 0.4); }
  70% { box-shadow: 0 0 0 6px rgba(244, 63, 94, 0); }
  100% { box-shadow: 0 0 0 0 rgba(244, 63, 94, 0); }
}

/* Runtime Telemetry State Bar */
.gpv-runtime-telemetry-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(8, 14, 22, 0.9);
  border: 1px solid rgba(56, 189, 248, 0.25);
  border-radius: 8px;
  padding: 6px 12px;
  font: 700 10.5px ui-monospace, monospace;
}
.telemetry-metric-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 2px 7px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.04);
  color: #cbd5e1;
}
.telemetry-metric-pill strong {
  color: #38bdf8;
}
.telemetry-metric-pill.warning strong {
  color: #f43f5e;
}

/* Dynamic SD-WAN Link Status Overlay */
.sdwan-link-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font: 700 9.5px ui-monospace, monospace;
  padding: 2px 6px;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.sdwan-link-badge.sla-pass {
  background: rgba(52, 211, 153, 0.12);
  border-color: #34d399;
  color: #34d399;
}
.sdwan-link-badge.sla-fail {
  background: rgba(244, 63, 94, 0.15);
  border-color: #f43f5e;
  color: #f43f5e;
  animation: pulseLiveBorder 1.5s infinite;
}

/* Time-Travel Incident Scrubber */
.gpv-time-scrubber-container {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(8, 14, 22, 0.92);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  padding: 8px 14px;
  margin-top: 8px;
}
.gpv-time-slider {
  flex: 1;
  -webkit-appearance: none;
  height: 5px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.12);
  outline: none;
}
.gpv-time-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #38bdf8;
  border: 2px solid #0f172a;
  cursor: pointer;
  box-shadow: 0 0 6px #38bdf8;
}
.gpv-scrubber-time-badge {
  font: 800 12px ui-monospace, monospace;
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.12);
  padding: 3px 8px;
  border-radius: 5px;
  border: 1px solid rgba(56, 189, 248, 0.3);
}

/* Policy Anomaly Watchdog Pills */
.gpv-anomaly-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font: 700 10px ui-monospace, monospace;
  padding: 3px 8px;
  border-radius: 5px;
  margin-right: 6px;
  margin-bottom: 4px;
}
.gpv-anomaly-pill.stale {
  background: rgba(148, 163, 184, 0.15);
  border: 1px solid #94a3b8;
  color: #cbd5e1;
}
.gpv-anomaly-pill.geo-mismatch {
  background: rgba(251, 191, 36, 0.15);
  border: 1px solid #fbbf24;
  color: #fbbf24;
}
.gpv-anomaly-pill.divergence {
  background: rgba(244, 63, 94, 0.15);
  border: 1px solid #f43f5e;
  color: #f43f5e;
}

/* -----------------------------------------------------------------------------
   PHASE 21: MULTI-REPORT LONGITUDINAL ANALYTICS MODAL
   ----------------------------------------------------------------------------- */
#longitudinalModal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(5, 9, 15, 0.88);
  backdrop-filter: blur(10px);
}
.longitudinal-modal-dialog {
  width: min(840px, 94vw);
  max-height: 90vh;
  background: #090e17;
  border: 1px solid rgba(56, 189, 248, 0.35);
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.8);
  overflow: hidden;
}
.longitudinal-chart-svg {
  width: 100%;
  height: 220px;
  background: rgba(2, 6, 12, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 8px;
}

/* ==============================================================================
   BUNDLE 4 MODAL & DRAWER SUITE (PHASES 22 - 25)
   ============================================================================== */

/* 1. AI Guidance (€9.99 Upgrade) Modal */
#aiGuidanceModal {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 10005;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(4, 8, 16, 0.88);
  backdrop-filter: blur(12px);
}
.ai-guidance-dialog {
  width: min(920px, 95vw);
  max-height: 92vh;
  background: #080d16;
  border: 1px solid rgba(168, 85, 247, 0.45);
  border-radius: 14px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.85), 0 0 20px rgba(168, 85, 247, 0.15);
  overflow: hidden;
}
.ai-citation-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(56, 189, 248, 0.2);
  border-left: 3px solid #38bdf8;
  border-radius: 6px;
  padding: 8px 12px;
  margin-bottom: 8px;
  font-size: 11px;
}
.ai-citation-tag {
  font: 800 9.5px ui-monospace, monospace;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(56, 189, 248, 0.15);
  color: #38bdf8;
  margin-right: 6px;
}

/* 2. Runbook Explorer (75 Runbook Catalog) Modal */
#runbookExplorerModal {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 10004;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(3, 7, 14, 0.88);
  backdrop-filter: blur(12px);
}
.runbook-explorer-dialog {
  width: min(1040px, 96vw);
  max-height: 92vh;
  background: #080d17;
  border: 1px solid rgba(56, 189, 248, 0.35);
  border-radius: 14px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.85);
  overflow: hidden;
}
.rb-domain-chip {
  padding: 5px 12px;
  font: 700 11px -apple-system, sans-serif;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: #94a3b8;
  cursor: pointer;
  transition: all 0.15s ease;
}
.rb-domain-chip.active, .rb-domain-chip:hover {
  background: rgba(56, 189, 248, 0.15);
  border-color: #38bdf8;
  color: #38bdf8;
}
.rb-catalog-card {
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 8px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
  transition: border-color 0.15s ease;
}
.rb-catalog-card:hover {
  border-color: rgba(56, 189, 248, 0.4);
}

/* 3. Outbound Collector Agent HUD Modal */
#collectorHudModal {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 10006;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(3, 7, 14, 0.88);
  backdrop-filter: blur(12px);
}
.collector-hud-dialog {
  width: min(880px, 94vw);
  max-height: 90vh;
  background: #090e18;
  border: 1px solid rgba(88, 226, 173, 0.35);
  border-radius: 14px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.85);
  overflow: hidden;
}
.killswitch-badge {
  font: 800 11px ui-monospace, monospace;
  padding: 3px 8px;
  border-radius: 4px;
}
.killswitch-badge.normal {
  background: rgba(88, 226, 173, 0.15);
  color: #58e2ad;
  border: 1px solid #58e2ad;
}
.killswitch-badge.engaged {
  background: rgba(244, 63, 94, 0.2);
  color: #f43f5e;
  border: 1px solid #f43f5e;
  animation: pulse-red 1.5s infinite;
}

/* 4. SFP Optical DOM Telemetry & Light Decay Modal */
#sfpTelemetryModal {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 10007;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(3, 7, 14, 0.88);
  backdrop-filter: blur(12px);
}
.sfp-telemetry-dialog {
  width: min(840px, 94vw);
  max-height: 90vh;
  background: #090e18;
  border: 1px solid rgba(56, 189, 248, 0.35);
  border-radius: 14px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.85);
  overflow: hidden;
}






