:root {
      --bg-base: #060913;
      --bg-sidebar: #090d1a;
      --bg-surface: rgba(15, 23, 42, 0.7);
      --bg-surface-elevated: rgba(30, 41, 59, 0.65);
      --bg-input: rgba(6, 9, 19, 0.85);
      --border-subtle: rgba(255, 255, 255, 0.08);
      --border-focus: rgba(99, 102, 241, 0.5);
      --border-active: rgba(99, 102, 241, 0.8);
      
      --text-main: #f8fafc;
      --text-muted: #94a3b8;
      --text-dim: #64748b;
      
      --accent-cyan: #06b6d4;
      --accent-indigo: #6366f1;
      --accent-purple: #a855f7;
      --accent-emerald: #10b981;
      --accent-amber: #f59e0b;
      --accent-rose: #f43f5e;
      
      --gradient-brand: linear-gradient(135deg, #06b6d4 0%, #6366f1 50%, #a855f7 100%);
      --gradient-card: linear-gradient(180deg, rgba(30, 41, 59, 0.4) 0%, rgba(15, 23, 42, 0.5) 100%);
      --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.45);
      --sidebar-width: 250px;
    }

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

    body {
      background-color: var(--bg-base);
      background-image: 
        radial-gradient(circle at 10% 15%, rgba(99, 102, 241, 0.12) 0%, transparent 40%),
        radial-gradient(circle at 90% 85%, rgba(6, 182, 212, 0.1) 0%, transparent 45%);
      color: var(--text-main);
      font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
      min-height: 100vh;
      display: flex;
      overflow-x: hidden;
    }

    /* Scrollbar */
    ::-webkit-scrollbar { width: 6px; height: 6px; }
    ::-webkit-scrollbar-track { background: var(--bg-base); }
    ::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.15); border-radius: 3px; }
    ::-webkit-scrollbar-thumb:hover { background: rgba(255, 255, 255, 0.25); }

    /* Layout */
    .app-container {
      display: flex;
      width: 100vw;
      height: 100vh;
      overflow: hidden;
    }

    /* Sidebar */
    aside.sidebar {
      width: var(--sidebar-width);
      min-width: var(--sidebar-width);
      background: var(--bg-sidebar);
      border-right: 1px solid var(--border-subtle);
      display: flex;
      flex-direction: column;
      z-index: 40;
    }

    .sidebar-header {
      padding: 1.25rem 1.25rem;
      border-bottom: 1px solid var(--border-subtle);
      display: flex;
      align-items: center;
      gap: 0.85rem;
    }

    .brand-logo {
      width: 34px;
      height: 34px;
      border-radius: 9px;
      background: var(--gradient-brand);
      display: flex;
      align-items: center;
      justify-content: center;
      font-weight: 800;
      font-size: 1.1rem;
      color: #fff;
      box-shadow: 0 0 16px rgba(99, 102, 241, 0.4);
      flex-shrink: 0;
    }

    .brand-text h1 {
      font-size: 1.05rem;
      font-weight: 700;
      letter-spacing: -0.02em;
    }

    .brand-text span {
      font-size: 0.7rem;
      color: var(--accent-cyan);
      font-weight: 600;
      letter-spacing: 0.05em;
      text-transform: uppercase;
    }

    .sidebar-nav {
      flex: 1;
      overflow-y: auto;
      padding: 1rem 0.75rem;
      display: flex;
      flex-direction: column;
      gap: 0.25rem;
    }

    .nav-category {
      font-size: 0.68rem;
      font-weight: 700;
      color: var(--text-dim);
      text-transform: uppercase;
      letter-spacing: 0.08em;
      padding: 0.6rem 0.65rem 0.3rem;
    }

    .nav-item {
      display: flex;
      align-items: center;
      gap: 0.75rem;
      padding: 0.65rem 0.75rem;
      border-radius: 8px;
      color: var(--text-muted);
      text-decoration: none;
      font-size: 0.85rem;
      font-weight: 500;
      cursor: pointer;
      transition: all 0.15s ease;
      position: relative;
    }

    .nav-item:hover {
      color: var(--text-main);
      background: rgba(255, 255, 255, 0.04);
    }

    .nav-item.active {
      color: #fff;
      background: rgba(99, 102, 241, 0.15);
      border: 1px solid rgba(99, 102, 241, 0.35);
      font-weight: 600;
    }

    .nav-item.active::before {
      content: '';
      position: absolute;
      left: -0.75rem;
      top: 20%;
      height: 60%;
      width: 3px;
      background: var(--accent-cyan);
      border-radius: 0 4px 4px 0;
    }

    .nav-icon {
      width: 18px;
      height: 18px;
      opacity: 0.8;
      flex-shrink: 0;
    }

    .nav-item.active .nav-icon {
      opacity: 1;
      color: var(--accent-cyan);
    }

    .nav-badge {
      margin-left: auto;
      font-size: 0.68rem;
      font-weight: 700;
      padding: 0.15rem 0.45rem;
      border-radius: 9999px;
      background: rgba(16, 185, 129, 0.15);
      color: var(--accent-emerald);
      border: 1px solid rgba(16, 185, 129, 0.25);
    }

    .sidebar-footer {
      padding: 1rem 1.25rem;
      border-top: 1px solid var(--border-subtle);
      background: rgba(6, 9, 19, 0.4);
      display: flex;
      align-items: center;
      justify-content: space-between;
    }

    .org-selector {
      display: flex;
      flex-direction: column;
    }

    .org-name {
      font-size: 0.82rem;
      font-weight: 600;
      color: var(--text-main);
    }

    .org-tier {
      font-size: 0.7rem;
      color: var(--accent-emerald);
      font-weight: 500;
    }

    /* Content Area */
    .main-viewport {
      flex: 1;
      display: flex;
      flex-direction: column;
      overflow: hidden;
      background: transparent;
    }

    /* Top Header */
    header.topbar {
      height: 64px;
      padding: 0 2rem;
      display: flex;
      align-items: center;
      justify-content: space-between;
      border-bottom: 1px solid var(--border-subtle);
      background: rgba(6, 9, 19, 0.85);
      backdrop-filter: blur(16px);
      z-index: 30;
      flex-shrink: 0;
    }

    .topbar-left {
      display: flex;
      align-items: center;
      gap: 1.25rem;
    }

    .view-title {
      font-size: 1.15rem;
      font-weight: 700;
      letter-spacing: -0.01em;
    }

    .crumb-sep {
      color: var(--text-dim);
      font-size: 0.9rem;
    }

    .crumb-sub {
      color: var(--text-muted);
      font-size: 0.85rem;
      font-weight: 500;
    }

    .topbar-right {
      display: flex;
      align-items: center;
      gap: 1rem;
    }

    .status-pill {
      display: flex;
      align-items: center;
      gap: 0.5rem;
      background: rgba(16, 185, 129, 0.1);
      border: 1px solid rgba(16, 185, 129, 0.25);
      padding: 0.35rem 0.8rem;
      border-radius: 9999px;
      font-size: 0.72rem;
      font-weight: 600;
      color: var(--accent-emerald);
    }

    @media (max-width: 1280px) {
      .topbar .status-pill {
        display: none !important;
      }
    }
    @media (max-width: 820px) {
      #btn-quick-onboarding,
      .topbar-right > button.btn-secondary {
        display: none !important;
      }
      .topbar-right {
        gap: 0.5rem;
      }
    }

    .pulse-dot {
      width: 7px;
      height: 7px;
      background: var(--accent-emerald);
      border-radius: 50%;
      box-shadow: 0 0 8px var(--accent-emerald);
      animation: pulse 2s infinite;
    }

    @keyframes pulse {
      0% { opacity: 1; transform: scale(1); }
      50% { opacity: 0.4; transform: scale(1.2); }
      100% { opacity: 1; transform: scale(1); }
    }

    .btn {
      display: inline-flex;
      align-items: center;
      gap: 0.5rem;
      padding: 0.45rem 0.9rem;
      border-radius: 7px;
      font-size: 0.8rem;
      font-weight: 600;
      cursor: pointer;
      transition: all 0.15s ease;
      border: 1px solid transparent;
      font-family: inherit;
    }

    .btn-primary {
      background: var(--gradient-brand);
      color: #fff;
      box-shadow: 0 2px 10px rgba(99, 102, 241, 0.3);
    }

    .btn-primary:hover {
      box-shadow: 0 4px 16px rgba(99, 102, 241, 0.5);
      transform: translateY(-1px);
    }

    .btn-secondary {
      background: rgba(255, 255, 255, 0.05);
      border-color: var(--border-subtle);
      color: var(--text-main);
    }

    .btn-secondary:hover {
      background: rgba(255, 255, 255, 0.08);
      border-color: rgba(255, 255, 255, 0.15);
    }

    /* Views Container */
    .view-container {
      flex: 1;
      overflow-y: auto;
      padding: 2rem;
    }

    .view-content {
      display: none;
      flex-direction: column;
      gap: 1.75rem;
      max-width: 1400px;
      margin: 0 auto;
      animation: fadeIn 0.2s ease-in-out;
    }

    .view-content.active {
      display: flex;
    }

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

    /* Common Card & Grid Styles */
    .kpi-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
      gap: 1.25rem;
    }

    .card {
      background: var(--bg-surface);
      border: 1px solid var(--border-subtle);
      border-radius: 12px;
      padding: 1.35rem 1.5rem;
      backdrop-filter: blur(14px);
      box-shadow: var(--glass-shadow);
      transition: border-color 0.2s ease, transform 0.2s ease;
      position: relative;
      overflow: hidden;
    }

    .card:hover {
      border-color: rgba(99, 102, 241, 0.35);
      transform: translateY(-2px);
    }

    .card-label {
      font-size: 0.75rem;
      font-weight: 600;
      color: var(--text-muted);
      text-transform: uppercase;
      letter-spacing: 0.05em;
      margin-bottom: 0.4rem;
    }

    .card-value {
      font-size: 1.85rem;
      font-weight: 800;
      letter-spacing: -0.03em;
      line-height: 1.1;
      margin-bottom: 0.3rem;
    }

    .card-subtext {
      font-size: 0.75rem;
      color: var(--text-dim);
    }

    .text-emerald { color: var(--accent-emerald); }
    .text-cyan { color: var(--accent-cyan); }
    .text-indigo { color: var(--accent-indigo); }
    .text-amber { color: var(--accent-amber); }
    .text-purple { color: var(--accent-purple); }

    /* Tables */
    .table-card {
      background: var(--bg-surface);
      border: 1px solid var(--border-subtle);
      border-radius: 12px;
      overflow: hidden;
      backdrop-filter: blur(14px);
      box-shadow: var(--glass-shadow);
    }

    .table-header-bar {
      padding: 1.1rem 1.5rem;
      border-bottom: 1px solid var(--border-subtle);
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 1rem;
    }

    .table-title {
      font-size: 1rem;
      font-weight: 700;
      letter-spacing: -0.01em;
    }

    .table-search {
      background: var(--bg-input);
      border: 1px solid var(--border-subtle);
      border-radius: 7px;
      padding: 0.4rem 0.8rem;
      color: var(--text-main);
      font-size: 0.8rem;
      outline: none;
      width: 220px;
    }

    .table-search:focus {
      border-color: var(--border-focus);
    }

    .table-responsive {
      overflow-x: auto;
    }

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

    th {
      color: var(--text-dim);
      font-weight: 600;
      text-transform: uppercase;
      font-size: 0.7rem;
      letter-spacing: 0.06em;
      padding: 0.75rem 1.25rem;
      border-bottom: 1px solid var(--border-subtle);
      background: rgba(0, 0, 0, 0.15);
    }

    td {
      padding: 0.85rem 1.25rem;
      border-bottom: 1px solid rgba(255, 255, 255, 0.04);
      color: var(--text-main);
    }

    tr:hover td {
      background: rgba(255, 255, 255, 0.02);
    }

    .mono {
      font-family: 'JetBrains Mono', monospace;
      font-size: 0.8rem;
    }

    .badge {
      display: inline-flex;
      align-items: center;
      gap: 0.35rem;
      padding: 0.2rem 0.55rem;
      border-radius: 4px;
      font-size: 0.7rem;
      font-weight: 600;
      letter-spacing: 0.03em;
    }

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

    .badge-global {
      background: rgba(99, 102, 241, 0.15);
      color: #818cf8;
      border: 1px solid rgba(99, 102, 241, 0.3);
    }

    .badge-spot {
      background: rgba(6, 182, 212, 0.15);
      color: #22d3ee;
      border: 1px solid rgba(6, 182, 212, 0.3);
    }

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

    /* Abstracted Infrastructure Hero Banner */
    .abstracted-hero {
      background: linear-gradient(135deg, rgba(99, 102, 241, 0.15) 0%, rgba(6, 182, 212, 0.15) 100%);
      border: 1px solid rgba(99, 102, 241, 0.3);
      border-radius: 12px;
      padding: 1.5rem 1.75rem;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 1.5rem;
    }

    .abstracted-text h2 {
      font-size: 1.25rem;
      font-weight: 700;
      margin-bottom: 0.35rem;
      background: var(--gradient-brand);
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
    }

    .abstracted-text p {
      color: var(--text-muted);
      font-size: 0.85rem;
      max-width: 650px;
      line-height: 1.5;
    }

    /* Forms */
    .form-group {
      display: flex;
      flex-direction: column;
      gap: 0.4rem;
    }

    label {
      font-size: 0.74rem;
      font-weight: 600;
      color: var(--text-muted);
      text-transform: uppercase;
      letter-spacing: 0.04em;
    }

    select, textarea, input {
      background: var(--bg-input);
      border: 1px solid var(--border-subtle);
      border-radius: 7px;
      padding: 0.65rem 0.85rem;
      color: var(--text-main);
      font-family: inherit;
      font-size: 0.85rem;
      outline: none;
    }

    select:focus, textarea:focus, input:focus {
      border-color: var(--border-focus);
    }

    /* Dual Column Layout */
    .dual-grid {
      display: grid;
      grid-template-columns: 1.25fr 1fr;
      gap: 1.5rem;
    }

    @media (max-width: 1080px) {
      .dual-grid {
        grid-template-columns: 1fr;
      }
    }

    /* Terminal Console */
    .terminal-box {
      background: #02040a;
      border: 1px solid var(--border-subtle);
      border-radius: 9px;
      padding: 1rem;
      font-family: 'JetBrains Mono', monospace;
      font-size: 0.78rem;
      line-height: 1.6;
      color: #38bdf8;
      max-height: 320px;
      overflow-y: auto;
      white-space: pre-wrap;
    }

    /* Modal */
    .modal-backdrop {
      display: none;
      position: fixed;
      top: 0;
      left: 0;
      width: 100vw;
      height: 100vh;
      background: rgba(0, 0, 0, 0.7);
      backdrop-filter: blur(8px);
      z-index: 100;
      align-items: center;
      justify-content: center;
    }

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

    .modal-dialog {
      background: #0d1222;
      border: 1px solid rgba(99, 102, 241, 0.35);
      border-radius: 14px;
      width: 100%;
      max-width: 520px;
      box-shadow: 0 24px 64px rgba(0, 0, 0, 0.8);
      overflow: hidden;
      animation: modalScale 0.18s ease-out;
    }

    @keyframes modalScale {
      from { transform: scale(0.95); opacity: 0; }
      to { transform: scale(1); opacity: 1; }
    }

    .modal-header {
      padding: 1.25rem 1.5rem;
      border-bottom: 1px solid var(--border-subtle);
      display: flex;
      align-items: center;
      justify-content: space-between;
    }

    .modal-title {
      font-size: 1.05rem;
      font-weight: 700;
    }

    .modal-body {
      padding: 1.5rem;
      display: flex;
      flex-direction: column;
      gap: 1.1rem;
    }

    .modal-footer {
      padding: 1rem 1.5rem;
      border-top: 1px solid var(--border-subtle);
      display: flex;
      justify-content: flex-end;
      gap: 0.75rem;
      background: rgba(0, 0, 0, 0.2);
    }

    /* Toast */
    .toast {
      position: fixed;
      bottom: 2rem;
      right: 2rem;
      background: #0f172a;
      border: 1px solid var(--accent-emerald);
      color: #fff;
      padding: 0.75rem 1.25rem;
      border-radius: 8px;
      font-size: 0.84rem;
      font-weight: 500;
      box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
      z-index: 200;
      display: none;
      align-items: center;
      gap: 0.5rem;
      animation: slideUp 0.2s ease-out;
    }

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

    /* Multi-PoP Live Telemetry Grid & Subsea Cards */
    .pop-telemetry-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
      gap: 1rem;
      margin-bottom: 1.5rem;
    }

    .pop-card {
      background: var(--gradient-card);
      border: 1px solid var(--border-subtle);
      border-radius: 10px;
      padding: 1.15rem;
      display: flex;
      flex-direction: column;
      gap: 0.65rem;
      transition: border-color 0.2s ease, transform 0.2s ease;
    }

    .pop-card:hover {
      border-color: rgba(99, 102, 241, 0.4);
      transform: translateY(-2px);
    }

    .pop-card-header {
      display: flex;
      align-items: center;
      justify-content: space-between;
    }

    .pop-card-title {
      font-size: 0.95rem;
      font-weight: 700;
    }

    .pop-card-region {
      font-size: 0.72rem;
      color: var(--text-muted);
      font-family: 'JetBrains Mono', monospace;
    }

    .pop-metrics-row {
      display: flex;
      align-items: baseline;
      gap: 1.25rem;
      margin: 0.35rem 0;
      padding: 0.5rem 0.75rem;
      background: rgba(0, 0, 0, 0.25);
      border-radius: 6px;
    }

    .pop-metric-item {
      display: flex;
      flex-direction: column;
    }

    .pop-metric-val {
      font-family: 'JetBrains Mono', monospace;
      font-size: 1.15rem;
      font-weight: 700;
    }

    .pop-metric-lbl {
      font-size: 0.68rem;
      color: var(--text-muted);
      text-transform: uppercase;
      letter-spacing: 0.04em;
    }

    .pop-subsea-box {
      font-size: 0.74rem;
      padding: 0.45rem 0.65rem;
      background: rgba(6, 182, 212, 0.08);
      border: 1px solid rgba(6, 182, 212, 0.2);
      border-radius: 6px;
      display: flex;
      flex-direction: column;
      gap: 0.2rem;
    }

    .pop-subsea-label {
      color: var(--accent-cyan);
      font-weight: 600;
      font-size: 0.72rem;
    }

    .pop-subsea-detail {
      color: var(--text-muted);
      font-size: 0.7rem;
    }

    .telemetry-controls-bar {
      display: flex;
      align-items: center;
      justify-content: space-between;
      margin-bottom: 1rem;
      flex-wrap: wrap;
      gap: 0.75rem;
    }

    .telemetry-controls-left {
      display: flex;
      align-items: center;
      gap: 0.75rem;
    }

    .telemetry-status-text {
      font-size: 0.78rem;
      color: var(--text-muted);
      font-family: 'JetBrains Mono', monospace;
    }

    /* Interactive Global Topology Map */
    .topology-map-card {
      background: var(--gradient-card);
      border: 1px solid var(--border-subtle);
      border-radius: 12px;
      padding: 1.25rem 1.5rem;
      margin-bottom: 1.5rem;
      position: relative;
      overflow: hidden;
      box-shadow: 0 12px 36px rgba(0, 0, 0, 0.4);
    }

    .topology-header-row {
      display: flex;
      align-items: center;
      justify-content: space-between;
      margin-bottom: 1rem;
      flex-wrap: wrap;
      gap: 0.75rem;
    }

    .topology-title-area h3 {
      font-size: 1.05rem;
      font-weight: 700;
      letter-spacing: -0.01em;
    }

    .topology-title-area p {
      font-size: 0.76rem;
      color: var(--text-muted);
      margin-top: 0.15rem;
    }

    .topology-canvas-container {
      position: relative;
      width: 100%;
      background: #070b18;
      border: 1px solid rgba(255, 255, 255, 0.05);
      border-radius: 8px;
      overflow: hidden;
      min-height: 360px;
    }

    .topology-svg {
      width: 100%;
      height: 100%;
      min-height: 360px;
      display: block;
    }

    /* Subsea Cables */
    .cable-path {
      fill: none;
      stroke-width: 2.2;
      stroke-linecap: round;
      transition: stroke 0.3s ease, stroke-width 0.3s ease;
    }

    .cable-primary {
      stroke: rgba(6, 182, 212, 0.7);
      stroke-dasharray: 6 3;
      animation: cablePulse 2s linear infinite;
    }

    .cable-transatlantic {
      stroke: rgba(99, 102, 241, 0.7);
      stroke-dasharray: 6 3;
      animation: cablePulse 2.2s linear infinite;
    }

    .cable-failover {
      stroke: rgba(245, 158, 11, 0.6);
      stroke-dasharray: 4 4;
      animation: cablePulse 1.5s linear reverse infinite;
    }

    .cable-cut {
      stroke: rgba(244, 63, 94, 0.85) !important;
      stroke-dasharray: 3 6 !important;
      animation: none !important;
    }

    @keyframes cablePulse {
      from { stroke-dashoffset: 36; }
      to { stroke-dashoffset: 0; }
    }

    /* PoP Map Nodes */
    .map-pop-group {
      cursor: pointer;
      transition: transform 0.2s ease;
    }

    .map-pop-group:hover {
      transform: scale(1.08);
    }

    .map-pop-core {
      stroke: #070b18;
      stroke-width: 2.5;
      transition: stroke 0.2s, stroke-width 0.2s;
    }

    .map-pop-group.active-pop .map-pop-core {
      stroke: #ffffff;
      stroke-width: 3.5px;
    }

    .map-pulse-circle {
      fill: none;
      stroke-width: 1.5;
      animation: mapNodePulse 2.4s cubic-bezier(0, 0.2, 0.8, 1) infinite;
    }

    @keyframes mapNodePulse {
      0% { r: 6; opacity: 0.9; }
      100% { r: 24; opacity: 0; }
    }

    .map-node-label {
      font-family: 'JetBrains Mono', monospace;
      font-size: 11px;
      font-weight: 600;
      fill: #ffffff;
      paint-order: stroke;
      stroke: #070b18;
      stroke-width: 3px;
      stroke-linejoin: round;
    }

    .map-node-badge {
      font-family: 'Plus Jakarta Sans', sans-serif;
      font-size: 9px;
      font-weight: 600;
      fill: var(--accent-cyan);
      paint-order: stroke;
      stroke: #070b18;
      stroke-width: 2.5px;
    }

    /* Inspector HUD Box below map */
    .topology-hud-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
      gap: 0.85rem;
      margin-top: 1rem;
    }

    .topology-hud-item {
      background: rgba(15, 23, 42, 0.6);
      border: 1px solid var(--border-subtle);
      border-radius: 8px;
      padding: 0.85rem 1rem;
      cursor: pointer;
      transition: border-color 0.2s, background 0.2s;
    }

    .topology-hud-item:hover, .topology-hud-item.selected {
      border-color: rgba(99, 102, 241, 0.6);
      background: rgba(30, 41, 59, 0.6);
    }

    .hud-title-row {
      display: flex;
      align-items: center;
      justify-content: space-between;
      margin-bottom: 0.35rem;
    }

    .hud-pop-name {
      font-size: 0.88rem;
      font-weight: 700;
    }

    .hud-metric-row {
      display: flex;
      align-items: baseline;
      justify-content: space-between;
      margin-top: 0.25rem;
    }

    .hud-rtt-val {
      font-family: 'JetBrains Mono', monospace;
      font-size: 1rem;
      font-weight: 700;
    }

    .hud-subsea-label {
      font-size: 0.68rem;
      color: var(--text-muted);
    }

    /* Developer Quickstart & Code Generator */
    .code-toolbar {
      display: flex;
      flex-wrap: wrap;
      align-items: center;
      gap: 1rem;
      padding: 1rem 1.25rem;
      background: rgba(15, 23, 42, 0.75);
      border-bottom: 1px solid var(--border-subtle);
    }

    .code-param-group {
      display: flex;
      flex-direction: column;
      gap: 0.35rem;
      min-width: 170px;
      flex: 1;
    }

    .code-param-label {
      font-size: 0.72rem;
      font-weight: 600;
      text-transform: uppercase;
      letter-spacing: 0.05em;
      color: var(--text-muted);
    }

    .code-param-select {
      background: var(--bg-input);
      border: 1px solid var(--border-subtle);
      border-radius: 6px;
      color: var(--text-main);
      padding: 0.5rem 0.75rem;
      font-size: 0.82rem;
      font-family: 'JetBrains Mono', monospace;
      outline: none;
      transition: border-color 0.2s;
    }

    .code-param-select:focus {
      border-color: var(--accent-indigo);
    }

    .code-tab-nav {
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 0.75rem 1.25rem;
      background: rgba(10, 15, 30, 0.9);
      border-bottom: 1px solid var(--border-subtle);
    }

    .code-tab-buttons {
      display: flex;
      align-items: center;
      gap: 0.5rem;
    }

    .code-tab-btn {
      background: transparent;
      border: 1px solid transparent;
      border-radius: 6px;
      color: var(--text-muted);
      padding: 0.4rem 0.85rem;
      font-size: 0.82rem;
      font-weight: 600;
      cursor: pointer;
      display: inline-flex;
      align-items: center;
      gap: 0.4rem;
      transition: all 0.2s ease;
    }

    .code-tab-btn:hover {
      color: var(--text-main);
      background: rgba(255, 255, 255, 0.05);
    }

    .code-tab-btn.active {
      color: var(--accent-cyan);
      background: rgba(6, 182, 212, 0.12);
      border-color: rgba(6, 182, 212, 0.35);
    }

    .code-snippet-pre {
      margin: 0;
      padding: 1.25rem;
      background: #050811;
      color: #e2e8f0;
      font-family: 'JetBrains Mono', monospace;
      font-size: 0.82rem;
      line-height: 1.6;
      overflow-x: auto;
      border-radius: 0 0 12px 12px;
      max-height: 480px;
      white-space: pre;
    }

    .live-console-box {
      margin-top: 1rem;
      padding: 1rem 1.25rem;
      background: #02040a;
      border: 1px solid rgba(255, 255, 255, 0.06);
      border-radius: 8px;
      font-family: 'JetBrains Mono', monospace;
      font-size: 0.8rem;
    }

    /* Track B: Sovereign DR Mission Control HUD & Global Visual Topology */
    .dr-flap-guard {
      background: linear-gradient(90deg, rgba(244, 63, 94, 0.12) 0%, rgba(245, 158, 11, 0.08) 100%);
      border: 1px solid rgba(244, 63, 94, 0.35);
      border-radius: 8px;
      padding: 0.85rem 1.25rem;
      margin-bottom: 1.25rem;
      display: flex;
      flex-direction: column;
      gap: 0.6rem;
      animation: flapPulse 2s infinite ease-in-out;
    }

    @keyframes flapPulse {
      0%, 100% { border-color: rgba(244, 63, 94, 0.35); box-shadow: 0 0 10px rgba(244, 63, 94, 0.1); }
      50% { border-color: rgba(244, 63, 94, 0.7); box-shadow: 0 0 20px rgba(244, 63, 94, 0.25); }
    }

    .flap-guard-content {
      display: flex;
      align-items: center;
      justify-content: space-between;
      flex-wrap: wrap;
      gap: 0.75rem;
    }

    .flap-guard-title {
      font-weight: 700;
      color: #f43f5e;
      font-size: 0.85rem;
      letter-spacing: 0.05em;
      text-transform: uppercase;
      display: inline-flex;
      align-items: center;
      gap: 0.4rem;
    }

    .flap-timer-badge {
      background: rgba(244, 63, 94, 0.2);
      border: 1px solid rgba(244, 63, 94, 0.5);
      color: #fda4af;
      padding: 0.25rem 0.65rem;
      border-radius: 4px;
      font-family: 'JetBrains Mono', monospace;
      font-size: 0.85rem;
      font-weight: 700;
    }

    .flap-progress-bar {
      width: 100%;
      height: 4px;
      background: rgba(255, 255, 255, 0.08);
      border-radius: 2px;
      overflow: hidden;
    }

    .flap-progress-fill {
      height: 100%;
      background: linear-gradient(90deg, #f43f5e, #fb923c);
      width: 100%;
      transition: width 1s linear;
    }

    .dr-metric-grid {
      display: grid;
      grid-template-columns: repeat(5, 1fr);
      gap: 1rem;
      margin-bottom: 1.25rem;
    }

    .dr-metric-card {
      background: rgba(15, 23, 42, 0.75);
      border: 1px solid var(--border-subtle);
      border-radius: 8px;
      padding: 1rem;
      position: relative;
      overflow: hidden;
      transition: border-color 0.2s, transform 0.2s;
    }

    .dr-metric-card:hover {
      border-color: rgba(56, 189, 248, 0.4);
      transform: translateY(-2px);
    }

    .dr-metric-header {
      font-size: 0.72rem;
      color: var(--text-muted);
      text-transform: uppercase;
      letter-spacing: 0.05em;
      display: flex;
      justify-content: space-between;
      align-items: center;
    }

    .dr-metric-value {
      font-family: 'JetBrains Mono', monospace;
      font-size: 1.35rem;
      font-weight: 700;
      color: var(--text-main);
      margin-top: 0.4rem;
    }

    .dr-metric-subtext {
      font-size: 0.7rem;
      color: var(--text-dim);
      margin-top: 0.25rem;
    }

    .dr-topology-container {
      background: rgba(10, 15, 30, 0.85);
      border: 1px solid var(--border-subtle);
      border-radius: 10px;
      padding: 1.25rem;
      margin-bottom: 1.5rem;
      position: relative;
    }

    .dr-topology-header {
      display: flex;
      align-items: center;
      justify-content: space-between;
      margin-bottom: 1rem;
      flex-wrap: wrap;
      gap: 0.5rem;
    }

    .dr-pop-grid {
      display: grid;
      grid-template-columns: 1fr 1fr 1fr;
      gap: 1.25rem;
      margin-top: 1rem;
    }

    .dr-pop-node {
      background: rgba(15, 23, 42, 0.65);
      border: 1px solid var(--border-subtle);
      border-radius: 8px;
      padding: 1.1rem;
      position: relative;
      transition: all 0.25s ease;
    }

    .dr-pop-node.primary {
      border-color: rgba(16, 185, 129, 0.5);
      background: radial-gradient(circle at top right, rgba(16, 185, 129, 0.1) 0%, rgba(15, 23, 42, 0.7) 100%);
    }

    .dr-pop-node.standby {
      border-color: rgba(56, 189, 248, 0.5);
      background: radial-gradient(circle at top right, rgba(56, 189, 248, 0.1) 0%, rgba(15, 23, 42, 0.7) 100%);
    }

    .dr-pop-node.witness {
      border-color: rgba(168, 85, 247, 0.5);
      background: radial-gradient(circle at top right, rgba(168, 85, 247, 0.1) 0%, rgba(15, 23, 42, 0.7) 100%);
    }

    .dr-pop-tag {
      font-size: 0.68rem;
      font-weight: 700;
      text-transform: uppercase;
      letter-spacing: 0.05em;
      margin-bottom: 0.4rem;
    }

    .dr-cable-highway {
      display: flex;
      align-items: center;
      justify-content: space-between;
      background: rgba(0, 0, 0, 0.3);
      border: 1px dashed rgba(255, 255, 255, 0.15);
      border-radius: 6px;
      padding: 0.5rem 0.85rem;
      margin-top: 0.85rem;
      font-size: 0.74rem;
      font-family: 'JetBrains Mono', monospace;
    }

    .dr-timeline-stream {
      display: flex;
      flex-direction: column;
      gap: 0.75rem;
      max-height: 380px;
      overflow-y: auto;
      padding-right: 0.5rem;
    }

    .dr-timeline-item {
      background: rgba(15, 23, 42, 0.5);
      border: 1px solid var(--border-subtle);
      border-left: 3px solid var(--accent-cyan);
      border-radius: 6px;
      padding: 0.75rem 1rem;
      display: flex;
      flex-direction: column;
      gap: 0.35rem;
      transition: background 0.2s;
    }

    .dr-timeline-item:hover {
      background: rgba(30, 41, 59, 0.6);
    }

    .dr-timeline-item.failover {
      border-left-color: #f43f5e;
    }

    .dr-timeline-item.failback {
      border-left-color: var(--accent-emerald);
    }

    .dr-timeline-item.rehearsal {
      border-left-color: #c084fc;
    }

    .dr-timeline-meta {
      display: flex;
      align-items: center;
      justify-content: space-between;
      font-size: 0.72rem;
      color: var(--text-dim);
    }

    .dr-rehearsal-checklist {
      display: flex;
      flex-direction: column;
      gap: 0.65rem;
      margin: 1rem 0;
    }

    .dr-checklist-item {
      display: flex;
      align-items: center;
      justify-content: space-between;
      background: rgba(255, 255, 255, 0.02);
      border: 1px solid rgba(255, 255, 255, 0.06);
      border-radius: 6px;
      padding: 0.65rem 0.85rem;
      font-size: 0.8rem;
    }

    .dr-checklist-status {
      display: inline-flex;
      align-items: center;
      gap: 0.35rem;
      font-weight: 600;
      font-size: 0.75rem;
    }

    .dr-seal-box {
      background: rgba(245, 158, 11, 0.06);
      border: 1px solid rgba(245, 158, 11, 0.25);
      border-radius: 6px;
      padding: 0.85rem;
      margin-top: 1rem;
    }

    .dr-seal-hash {
      font-family: 'JetBrains Mono', monospace;
      font-size: 0.74rem;
      color: var(--accent-amber);
      word-break: break-all;
      background: rgba(0, 0, 0, 0.4);
      padding: 0.5rem;
      border-radius: 4px;
      margin-top: 0.4rem;
    }

    /* Self-Service Auth & OAuth Styling */
    .btn-oauth {
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 0.75rem;
      width: 100%;
      padding: 0.65rem 1rem;
      border-radius: 8px;
      font-size: 0.86rem;
      font-weight: 600;
      cursor: pointer;
      border: 1px solid var(--border-color);
      background: rgba(255, 255, 255, 0.04);
      color: #fff;
      transition: all 0.2s ease;
      text-decoration: none;
    }

    .btn-oauth:hover {
      background: rgba(255, 255, 255, 0.08);
      border-color: rgba(255, 255, 255, 0.2);
      transform: translateY(-1px);
    }

    .btn-oauth-google {
      border-color: rgba(66, 133, 244, 0.4);
      background: rgba(66, 133, 244, 0.08);
    }
    .btn-oauth-google:hover {
      background: rgba(66, 133, 244, 0.16);
      border-color: #4285f4;
    }

    .btn-oauth-github {
      border-color: rgba(255, 255, 255, 0.25);
      background: rgba(255, 255, 255, 0.06);
    }
    .btn-oauth-github:hover {
      background: rgba(255, 255, 255, 0.12);
      border-color: #fff;
    }

    .btn-oauth-apple {
      border-color: rgba(255, 255, 255, 0.2);
      background: rgba(0, 0, 0, 0.3);
    }
    .btn-oauth-apple:hover {
      background: rgba(255, 255, 255, 0.1);
      border-color: #fff;
    }

    .auth-tabs {
      display: flex;
      border-bottom: 1px solid var(--border-color);
      margin-bottom: 1.25rem;
      gap: 0.5rem;
    }

    .auth-tab {
      padding: 0.5rem 1rem;
      cursor: pointer;
      font-size: 0.86rem;
      font-weight: 600;
      color: var(--text-muted);
      border-bottom: 2px solid transparent;
      transition: all 0.2s ease;
    }

    .auth-tab.active {
      color: var(--accent-cyan);
      border-bottom-color: var(--accent-cyan);
    }

    .auth-divider {
      display: flex;
      align-items: center;
      text-align: center;
      margin: 1rem 0;
      color: var(--text-dim);
      font-size: 0.75rem;
      text-transform: uppercase;
      letter-spacing: 0.05em;
    }

    .auth-divider::before,
    .auth-divider::after {
      content: '';
      flex: 1;
      border-bottom: 1px solid var(--border-color);
    }

    .auth-divider:not(:empty)::before {
      margin-right: 0.75rem;
    }

    .auth-divider:not(:empty)::after {
      margin-left: 0.75rem;
    }

    .notif-card {
      background: rgba(255, 255, 255, 0.02);
      border: 1px solid var(--border-color);
      border-radius: 8px;
      padding: 0.85rem 1rem;
      margin-bottom: 0.75rem;
      transition: background 0.2s, border-color 0.2s;
    }

    .notif-card.unread {
      background: rgba(6, 182, 212, 0.05);
      border-color: rgba(6, 182, 212, 0.3);
    }

    .wizard-steps {
      display: flex;
      justify-content: space-between;
      margin-bottom: 1.25rem;
      position: relative;
    }

    .wizard-steps::before {
      content: '';
      position: absolute;
      top: 50%;
      left: 10%;
      right: 10%;
      height: 2px;
      background: var(--border-color);
      z-index: 1;
      transform: translateY(-50%);
    }

    .wizard-step-node {
      position: relative;
      z-index: 2;
      background: #0b1120;
      border: 2px solid var(--border-color);
      width: 28px;
      height: 28px;
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 0.75rem;
      font-weight: 700;
      color: var(--text-muted);
      transition: all 0.2s;
    }

    .wizard-step-node.active {
      border-color: var(--accent-cyan);
      background: var(--accent-cyan);
      color: #000;
    }

    .wizard-step-node.completed {
      border-color: var(--accent-emerald);
      background: var(--accent-emerald);
      color: #000;
    }


