
/* ═══════════════════════════════════════════════════════════
   UNIFIED THEME — Dark palette shared across all panels
   ═══════════════════════════════════════════════════════════ */

:root {
  --bg: #0b0e11;
  --surface: #141920;
  --surface-hover: #1a2230;
  --border: #1e2a3a;
  --border-accent: #2a3a50;
  --text: #c8d6e5;
  --text-dim: #6b7f95;
  --text-bright: #e8f0f8;
  --accent-blue: #3b82f6;
  --accent-teal: #14b8a6;
  --accent-amber: #f59e0b;
  --accent-rose: #f43f5e;
  --accent-violet: #8b5cf6;
  --accent-emerald: #10b981;
  --accent-sky: #0ea5e9;
  --accent-orange: #f97316;
  --glow-blue: rgba(59, 130, 246, 0.15);
  --glow-teal: rgba(20, 184, 166, 0.12);
  --font-body: 'DM Sans', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --font-display: 'Fraunces', serif;

  /* Semantic tokens (dark defaults) */
  --card-bg: #0d1117;
  --card-border: #1e2030;
  --badge-bg: rgba(255,255,255,0.04);
  --subtle-bg: rgba(255,255,255,0.02);
  --subtle-hover: rgba(255,255,255,0.04);
  --overlay-bg: rgba(0,0,0,0.25);
  --shadow-color: rgba(0,0,0,0.3);
  --shadow-heavy: rgba(0,0,0,0.5);
  --ambient-blue: rgba(59,130,246,0.06);
  --ambient-teal: rgba(20,184,166,0.04);
  --node-tag-bg: rgba(255,255,255,0.04);
  --table-row-border: rgba(255,255,255,0.03);
  --entity-section-bg: #05050c;
  --explorer-nav-bg: linear-gradient(180deg, #080a0f 0%, #0b0e11 100%);

  /* Entity panel tokens */
  --text-muted: #334155;
  --border-subtle: #0f1020;
  --accent-indigo: #818cf8;
  --accent-red: #dc2626;
  --accent-pink: #db2777;
  --warning-bg: #1a1200;
  --warning-border: #3a2a00;
  --warning-text: #fbbf24;
  --error-bg: #1a0a0a;
  --error-text: #7f1d1d;
  --info-bg: #0a1628;
  --info-border: #1e3a5f;
}

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

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  min-height: 100vh;
  overflow-x: hidden;
}

/* Ambient background */
body::before {
  content: '';
  position: fixed;
  top: -40%; left: -20%;
  width: 80vw; height: 80vh;
  background: radial-gradient(ellipse, var(--ambient-blue) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}
body::after {
  content: '';
  position: fixed;
  bottom: -30%; right: -10%;
  width: 60vw; height: 60vh;
  background: radial-gradient(ellipse, var(--ambient-teal) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.page { position: relative; z-index: 1; max-width: 1400px; margin: 0 auto; padding: 40px 32px 80px; }

/* Header */
.header { margin-bottom: 48px; }
.header-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--accent-teal);
  margin-bottom: 12px;
  opacity: 0; animation: fadeUp 0.6s 0.1s forwards;
}
.header h1 {
  font-family: var(--font-display);
  font-size: 42px;
  font-weight: 900;
  color: var(--text-bright);
  line-height: 1.15;
  opacity: 0; animation: fadeUp 0.6s 0.2s forwards;
}
.header h1 span { color: var(--accent-blue); }
.header-meta {
  display: flex; gap: 24px; margin-top: 14px; flex-wrap: wrap;
  opacity: 0; animation: fadeUp 0.6s 0.35s forwards;
}
.header-meta .chip {
  font-family: var(--font-mono);
  font-size: 11px;
  padding: 4px 10px;
  border-radius: 4px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-dim);
}

/* Tabs */
.tabs {
  display: flex; gap: 4px; margin-bottom: 32px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 0;
  opacity: 0; animation: fadeUp 0.6s 0.45s forwards;
}
.tab {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.5px;
  padding: 10px 18px;
  cursor: pointer;
  color: var(--text-dim);
  border: none;
  background: none;
  border-bottom: 2px solid transparent;
  transition: all 0.2s;
  white-space: nowrap;
}
.tab:hover { color: var(--text); }
.tab.active { color: var(--accent-blue); border-bottom-color: var(--accent-blue); }

/* Panels */
.panel { display: none; }
.panel.active { display: block; }

/* SYSTEM DIAGRAM */
.diagram-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
.diagram-layer {
  position: relative;
  opacity: 0;
  animation: fadeUp 0.5s forwards;
}
.diagram-layer:nth-child(1) { animation-delay: 0.1s; }
.diagram-layer:nth-child(2) { animation-delay: 0.2s; }
.diagram-layer:nth-child(3) { animation-delay: 0.3s; }
.diagram-layer:nth-child(4) { animation-delay: 0.4s; }
.diagram-layer:nth-child(5) { animation-delay: 0.5s; }
.diagram-layer:nth-child(6) { animation-delay: 0.6s; }
.diagram-layer:nth-child(7) { animation-delay: 0.7s; }

.layer-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 10px;
  padding-left: 4px;
}

.layer-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.node {
  flex: 1;
  min-width: 180px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 18px 20px;
  cursor: pointer;
  transition: all 0.25s;
  position: relative;
  overflow: hidden;
}
.node::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  border-radius: 10px 10px 0 0;
}
.node:hover {
  border-color: var(--border-accent);
  background: var(--surface-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px var(--shadow-color);
}
.node.expanded {
  border-color: var(--border-accent);
  background: var(--surface-hover);
}

.node-icon {
  font-size: 20px;
  margin-bottom: 8px;
}
.node-name {
  font-weight: 700;
  font-size: 14px;
  color: var(--text-bright);
  margin-bottom: 4px;
}
.node-repo {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-dim);
  margin-bottom: 8px;
}
.node-desc {
  font-size: 12px;
  color: var(--text-dim);
  line-height: 1.5;
}
.node-tags {
  display: flex; gap: 5px; flex-wrap: wrap; margin-top: 10px;
}
.node-tag {
  font-family: var(--font-mono);
  font-size: 9px;
  padding: 2px 7px;
  border-radius: 3px;
  background: var(--node-tag-bg);
  color: var(--text-dim);
  border: 1px solid var(--border);
}

/* Color accents per node type */
.node.access::before { background: var(--accent-blue); }
.node.support::before { background: var(--accent-violet); }
.node.access-dashboard::before { background: var(--accent-blue); }
.node.data-api::before { background: var(--accent-teal); }
.node.imc::before { background: var(--accent-amber); }
.node.jobs::before { background: var(--accent-orange); }
.node.common::before { background: var(--accent-emerald); }
.node.types::before { background: var(--accent-rose); }
.node.quality::before { background: var(--accent-sky); }
.node.aws::before { background: var(--accent-amber); }
.node.db::before { background: var(--accent-emerald); }
.node.external::before { background: var(--text-dim); }
.node.api::before { background: linear-gradient(90deg, var(--accent-blue), var(--accent-teal)); }
.node.config::before { background: var(--accent-amber); }
.node.portal::before { background: var(--accent-emerald); }
.node.shopify::before { background: var(--accent-orange); }
.node.lambda::before { background: var(--accent-rose); }
.node.logging::before { background: var(--accent-sky); }
.node.queue::before { background: var(--accent-violet); }
.node.webapps::before { background: var(--accent-teal); }
.node.qbo::before { background: var(--accent-emerald); }
.node.teamwork::before { background: var(--accent-amber); }
.node.docdb::before { background: var(--accent-rose); }
.node.otel::before { background: var(--accent-sky); }
.node.product-builder::before { background: var(--accent-violet); }

/* Detail panel */
.detail-panel {
  margin-top: 12px;
  padding: 16px 20px;
  background: var(--overlay-bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  display: none;
  animation: slideDown 0.3s ease;
}
.detail-panel.visible { display: block; }
.detail-panel h4 {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--accent-blue);
  margin-bottom: 10px;
}
.detail-panel p {
  font-size: 13px;
  line-height: 1.7;
  color: var(--text);
  margin-bottom: 12px;
}
.detail-panel .dep-list {
  display: flex; gap: 6px; flex-wrap: wrap;
}
.detail-panel .dep {
  font-family: var(--font-mono);
  font-size: 10px;
  padding: 3px 8px;
  border-radius: 4px;
  border: 1px solid var(--border);
  color: var(--text-dim);
}
.detail-section { margin-bottom: 14px; }
.detail-section:last-child { margin-bottom: 0; }
.detail-section-title {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-dim);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Connection lines between layers */
.connector-strip {
  display: flex;
  justify-content: center;
  padding: 6px 0;
  position: relative;
}
.connector-strip::before {
  content: '';
  width: 1px;
  height: 20px;
  background: linear-gradient(to bottom, var(--border-accent), transparent);
}
.flow-arrows {
  display: flex;
  gap: 8px;
  justify-content: center;
  align-items: center;
  padding: 4px 0;
}
.flow-arrow {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-dim);
  display: flex;
  align-items: center;
  gap: 6px;
}
.flow-arrow .arrow { color: var(--accent-blue); font-size: 14px; }

/* SUMMARY PANEL */
.summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 20px;
}
.summary-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 24px;
  opacity: 0;
  animation: fadeUp 0.5s forwards;
}
.summary-card:nth-child(1) { animation-delay: 0.1s; }
.summary-card:nth-child(2) { animation-delay: 0.15s; }
.summary-card:nth-child(3) { animation-delay: 0.2s; }
.summary-card:nth-child(4) { animation-delay: 0.25s; }
.summary-card:nth-child(5) { animation-delay: 0.3s; }
.summary-card:nth-child(6) { animation-delay: 0.35s; }

.summary-card h3 {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-bright);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.summary-card p {
  font-size: 13px;
  line-height: 1.7;
  color: var(--text-dim);
}
.summary-card .highlight {
  color: var(--text);
  font-weight: 500;
}

/* DATA FLOW PANEL */
.flow-diagram {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 32px;
  margin-bottom: 24px;
  opacity: 0;
  animation: fadeUp 0.5s 0.1s forwards;
}
.flow-diagram h3 {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-bright);
  margin-bottom: 20px;
}
.flow-step {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 16px;
  padding: 12px 16px;
  border-radius: 8px;
  background: var(--subtle-bg);
  border: 1px solid transparent;
  transition: all 0.2s;
}
.flow-step:hover {
  border-color: var(--border);
  background: var(--subtle-hover);
}
.flow-step-num {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  color: var(--accent-blue);
  min-width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  background: var(--glow-blue);
  flex-shrink: 0;
}
.flow-step-content h4 {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-bright);
  margin-bottom: 4px;
}
.flow-step-content p {
  font-size: 12px;
  line-height: 1.6;
  color: var(--text-dim);
}

/* TECH STACK PANEL */
.stack-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
}
.stack-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 16px;
  opacity: 0;
  animation: fadeUp 0.4s forwards;
}
.stack-item:nth-child(odd) { animation-delay: 0.1s; }
.stack-item:nth-child(even) { animation-delay: 0.15s; }
.stack-cat {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--accent-teal);
  margin-bottom: 8px;
}
.stack-list {
  list-style: none;
}
.stack-list li {
  font-size: 12px;
  color: var(--text);
  padding: 3px 0;
  display: flex;
  align-items: center;
  gap: 6px;
}
.stack-list li::before {
  content: '›';
  color: var(--text-dim);
  font-weight: 700;
}

/* Keyframes */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes slideDown {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Responsive */
@media (max-width: 768px) {
  .header h1 { font-size: 28px; }
  .layer-row { flex-direction: column; }
  .node { min-width: 100%; }
  .tabs { overflow-x: auto; }
  .page { padding: 24px 16px 60px; }
}


/* ═══════════════════════════════════════════════════════════
   TOP-LEVEL NAVIGATION — Explorer shell
   ═══════════════════════════════════════════════════════════ */
.explorer-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--explorer-nav-bg);
  border-bottom: 1px solid var(--border);
  padding: 0 32px;
  display: flex;
  align-items: center;
  gap: 0;
  backdrop-filter: blur(12px);
}
.explorer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px 12px 0;
  border-right: 1px solid var(--border);
  margin-right: 4px;
}
.explorer-brand-icon {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: linear-gradient(135deg, var(--accent-blue), var(--accent-teal));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: white;
  font-weight: 700;
  font-family: var(--font-display);
}
.explorer-brand-text {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  color: var(--text-bright);
  letter-spacing: -0.02em;
}
.explorer-brand-text span {
  color: var(--accent-blue);
}
.nav-btn {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.5px;
  padding: 14px 18px;
  background: transparent;
  border: none;
  color: var(--text-dim);
  cursor: pointer;
  position: relative;
  transition: color 0.2s;
  white-space: nowrap;
}
.nav-btn:hover {
  color: var(--text);
}
.nav-btn.active {
  color: var(--accent-teal);
}
.nav-btn.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 12px;
  right: 12px;
  height: 2px;
  background: var(--accent-teal);
  border-radius: 1px 1px 0 0;
}
.nav-badge {
  font-size: 9px;
  padding: 1px 6px;
  border-radius: 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  margin-left: 6px;
  color: var(--text-dim);
}

/* Hide/show sections */
.explorer-section {
  display: none;
}
.explorer-section.active {
  display: block;
}

/* Entity panel within explorer context — override body bg */
#entity-section {
  background: var(--entity-section-bg);
}

/* Gap analysis styles */
.gap-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 40px 32px 80px;
}
.gap-content {
  font-family: var(--font-body);
  color: var(--text);
  line-height: 1.7;
}
.gap-content h1 {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 900;
  color: var(--text-bright);
  margin-bottom: 8px;
}
.gap-content h2 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  color: var(--text-bright);
  margin: 32px 0 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}
.gap-content h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--accent-teal);
  margin: 20px 0 8px;
}
.gap-content p {
  margin: 0 0 12px;
  color: var(--text);
}
.gap-content code {
  font-family: var(--font-mono);
  font-size: 12px;
  padding: 2px 6px;
  border-radius: 4px;
  background: var(--surface);
  color: var(--accent-teal);
}
.gap-content pre {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 16px;
  overflow-x: auto;
  margin: 12px 0;
}
.gap-content pre code {
  background: none;
  padding: 0;
  color: var(--text);
}
.gap-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 12px 0;
  font-size: 13px;
}
.gap-content th {
  background: var(--surface);
  color: var(--accent-teal);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  padding: 10px 12px;
  text-align: left;
  border: 1px solid var(--border);
}
.gap-content td {
  padding: 8px 12px;
  border: 1px solid var(--border);
  color: var(--text);
}
.gap-content tr:hover td {
  background: var(--surface-hover);
}
.gap-content ul, .gap-content ol {
  margin: 8px 0;
  padding-left: 24px;
}
.gap-content li {
  margin: 4px 0;
  color: var(--text);
}
.gap-content strong {
  color: var(--text-bright);
}
.gap-content em {
  color: var(--text-dim);
  font-style: italic;
}
.gap-content hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 24px 0;
}
.gap-content blockquote {
  border-left: 3px solid var(--accent-blue);
  padding: 8px 16px;
  margin: 12px 0;
  background: var(--glow-blue);
  border-radius: 0 6px 6px 0;
}
.gap-tabs {
  display: flex;
  gap: 0;
  border-bottom: 1px solid var(--border);
  margin-bottom: 24px;
}
.gap-tab {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.5px;
  padding: 10px 18px;
  background: transparent;
  border: none;
  color: var(--text-dim);
  cursor: pointer;
  position: relative;
}
.gap-tab:hover { color: var(--text); }
.gap-tab.active {
  color: var(--accent-blue);
}
.gap-tab.active::after {
  content: '';
  position: absolute;
  bottom: 0; left: 8px; right: 8px;
  height: 2px;
  background: var(--accent-blue);
}

/* ═══════════════════════════════════════════════════════════
   MAIN NAVIGATION — Section tabs for server-based explorer
   ═══════════════════════════════════════════════════════════ */
.header-title {
  font-family: var(--font-display);
  font-size: 42px;
  font-weight: 900;
  color: var(--text-bright);
  line-height: 1.15;
  opacity: 0; animation: fadeUp 0.6s 0.2s forwards;
}
.header-title .accent-text { color: var(--accent-blue); }
.header-desc {
  font-size: 14px;
  color: var(--text-dim);
  margin-top: 10px;
  opacity: 0; animation: fadeUp 0.6s 0.3s forwards;
}

.nav-wrapper {
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--border);
  margin-bottom: 32px;
  opacity: 0; animation: fadeUp 0.6s 0.45s forwards;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
  min-width: 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}

.tab-btn {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.5px;
  padding: 10px 18px;
  cursor: pointer;
  color: var(--text-dim);
  border: none;
  background: none;
  border-bottom: 2px solid transparent;
  transition: all 0.2s;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 6px;
}
.tab-btn svg { opacity: 0.6; }
.tab-btn:hover { color: var(--text); }
.tab-btn:hover svg { opacity: 0.8; }
.tab-btn.active { color: var(--accent-blue); border-bottom-color: var(--accent-blue); }
.tab-btn.active svg { opacity: 1; color: var(--accent-blue); }

/* Section visibility */
.explorer-section { display: none; }
.explorer-section.active { display: block; }

/* Export menu */
.export-menu {
  position: relative;
  margin-left: auto;
}
.export-btn {
  font-family: var(--font-mono);
  font-size: 11px;
  padding: 6px 14px;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-dim);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s;
}
.export-btn:hover { border-color: var(--border-accent); color: var(--text); }
.export-dropdown {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 6px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 6px;
  min-width: 200px;
  z-index: 200;
  box-shadow: 0 12px 40px var(--shadow-heavy);
}
.export-dropdown.visible { display: block; }
.export-item {
  display: block;
  width: 100%;
  padding: 8px 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text);
  text-decoration: none;
  border: none;
  background: none;
  border-radius: 4px;
  cursor: pointer;
  text-align: left;
  transition: all 0.15s;
}
.export-item:hover { background: var(--surface-hover); color: var(--text-bright); }
.export-divider { height: 1px; background: var(--border); margin: 4px 0; }

/* ═══════════════════════════════════════════════════════════
   THEME TOGGLE
   ═══════════════════════════════════════════════════════════ */
.theme-toggle {
  background: none;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 6px;
  cursor: pointer;
  color: var(--text-dim);
  display: flex;
  align-items: center;
  transition: all 0.2s;
  margin-left: 8px;
  flex-shrink: 0;
}
.theme-toggle:hover { color: var(--text); border-color: var(--border-accent); }
html[data-theme="light"] .theme-icon-sun { display: none; }
html:not([data-theme="light"]) .theme-icon-moon { display: none; }

/* ═══════════════════════════════════════════════════════════
   LIGHT THEME
   ═══════════════════════════════════════════════════════════ */
html[data-theme="light"] {
  --bg: #f8fafc;
  --surface: #ffffff;
  --surface-hover: #f1f5f9;
  --border: #e2e8f0;
  --border-accent: #cbd5e1;
  --text: #334155;
  --text-dim: #64748b;
  --text-bright: #0f172a;
  --glow-blue: rgba(59, 130, 246, 0.08);
  --glow-teal: rgba(20, 184, 166, 0.06);

  --card-bg: #ffffff;
  --card-border: #e2e8f0;
  --badge-bg: rgba(0,0,0,0.04);
  --subtle-bg: rgba(0,0,0,0.02);
  --subtle-hover: rgba(0,0,0,0.04);
  --overlay-bg: rgba(0,0,0,0.06);
  --shadow-color: rgba(0,0,0,0.08);
  --shadow-heavy: rgba(0,0,0,0.15);
  --ambient-blue: rgba(59,130,246,0.03);
  --ambient-teal: rgba(20,184,166,0.02);
  --node-tag-bg: rgba(0,0,0,0.04);
  --table-row-border: rgba(0,0,0,0.04);
  --entity-section-bg: #f1f5f9;
  --explorer-nav-bg: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);

  /* Entity panel tokens — light */
  --text-muted: #94a3b8;
  --border-subtle: #e2e8f0;
  --accent-indigo: #6366f1;
  --accent-red: #dc2626;
  --accent-pink: #db2777;
  --warning-bg: #fffbeb;
  --warning-border: #fde68a;
  --warning-text: #92400e;
  --error-bg: #fef2f2;
  --error-text: #991b1b;
  --info-bg: #eff6ff;
  --info-border: #bfdbfe;
}
