:root {
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, 'SFMono-Regular', Menlo, Monaco, Consolas, monospace;

  --bg-app: #090d16;
  --bg-surface: #0f1624;
  --bg-elevated: #151e30;
  --bg-card: #121a2b;
  --bg-card-hover: #182338;
  --bg-glass: rgba(15, 22, 36, 0.86);

  --border-subtle: rgba(148, 163, 184, 0.14);
  --border-strong: rgba(148, 163, 184, 0.28);
  --grid-dot: rgba(148, 163, 184, 0.14);

  --text-primary: #f1f5f9;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;

  --cyan: #38bdf8;
  --cyan-soft: rgba(56, 189, 248, 0.14);
  --emerald: #34d399;
  --emerald-soft: rgba(52, 211, 153, 0.14);
  --violet: #a78bfa;
  --violet-soft: rgba(167, 139, 250, 0.14);
  --amber: #fbbf24;
  --amber-soft: rgba(251, 191, 36, 0.14);
  --rose: #fb7185;

  --shadow-card: 0 10px 28px rgba(0, 0, 0, 0.35);
  --shadow-glow: 0 0 0 2px var(--cyan), 0 12px 32px rgba(56, 189, 248, 0.2);
}

html[data-theme="light"] {
  --bg-app: #f1f5f9;
  --bg-surface: #ffffff;
  --bg-elevated: #f8fafc;
  --bg-card: #ffffff;
  --bg-card-hover: #f8fafc;
  --bg-glass: rgba(255, 255, 255, 0.9);

  --border-subtle: rgba(15, 23, 42, 0.1);
  --border-strong: rgba(15, 23, 42, 0.2);
  --grid-dot: rgba(15, 23, 42, 0.11);

  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #64748b;

  --cyan: #0284c7;
  --cyan-soft: rgba(2, 132, 199, 0.1);
  --emerald: #059669;
  --emerald-soft: rgba(5, 150, 105, 0.1);
  --violet: #7c3aed;
  --violet-soft: rgba(124, 58, 237, 0.1);
  --amber: #d97706;
  --amber-soft: rgba(217, 119, 6, 0.1);
  --rose: #e11d48;

  --shadow-card: 0 8px 24px rgba(15, 23, 42, 0.08);
  --shadow-glow: 0 0 0 2px var(--cyan), 0 10px 26px rgba(2, 132, 199, 0.16);
}

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

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  overflow: hidden;
  font-family: var(--font-sans);
  background: var(--bg-app);
  color: var(--text-primary);
  -webkit-font-smoothing: antialiased;
}

button, input {
  font-family: inherit;
}

code {
  font-family: var(--font-mono);
  font-size: 0.88em;
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: 5px;
  padding: 1px 5px;
}

.app-shell {
  display: flex;
  flex-direction: column;
  height: 100vh;
  overflow: hidden;
}

/* Top Bar */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 18px;
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border-subtle);
  flex-shrink: 0;
  flex-wrap: wrap;
}

.brand-group {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: inherit;
}

.brand-logo {
  border-radius: 8px;
  flex-shrink: 0;
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.brand-tld {
  color: var(--cyan);
}

.brand-sub {
  font-size: 0.74rem;
  color: var(--text-secondary);
}

.pill-live {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--emerald);
  background: var(--emerald-soft);
  border: 1px solid rgba(52, 211, 153, 0.25);
  padding: 4px 10px;
  border-radius: 999px;
}

.pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--emerald);
  box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.6);
  animation: pulseDot 2s infinite;
}

@keyframes pulseDot {
  0% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.55); }
  70% { box-shadow: 0 0 0 7px rgba(52, 211, 153, 0); }
  100% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0); }
}

.topbar-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.control-group {
  display: inline-flex;
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 2px;
  gap: 2px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--border-subtle);
  background: var(--bg-elevated);
  color: var(--text-secondary);
  border-radius: 8px;
  cursor: pointer;
  font-weight: 500;
  transition: all 0.15s ease;
}

.btn:hover {
  color: var(--text-primary);
  border-color: var(--border-strong);
}

.btn-sm {
  font-size: 0.78rem;
  padding: 6px 11px;
}

.control-group .btn-sm {
  border: none;
  background: transparent;
  padding: 5px 10px;
}

.control-group .btn-sm.active {
  background: var(--bg-card);
  color: var(--text-primary);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
}

.control-group .btn-sm[data-traffic="burst"].active {
  color: var(--amber);
}

.btn-accent {
  background: var(--cyan-soft);
  color: var(--cyan);
  border-color: rgba(56, 189, 248, 0.35);
  font-weight: 600;
}

.btn-accent:hover {
  background: rgba(56, 189, 248, 0.22);
  color: var(--cyan);
}

.btn-icon {
  width: 32px;
  height: 32px;
  justify-content: center;
  padding: 0;
  font-size: 0.95rem;
}

/* Scenario Filter Bar */
.scenario-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 8px 18px;
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border-subtle);
  flex-shrink: 0;
  overflow-x: auto;
}

.scenario-tabs {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.scenario-tab {
  border: 1px solid transparent;
  background: transparent;
  color: var(--text-secondary);
  font-size: 0.8rem;
  font-weight: 500;
  padding: 5px 12px;
  border-radius: 7px;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.scenario-tab:hover {
  color: var(--text-primary);
  background: var(--bg-elevated);
}

.scenario-tab.active {
  color: var(--text-primary);
  background: var(--bg-elevated);
  border-color: var(--border-strong);
  font-weight: 600;
}

.scenario-desc {
  margin: 0;
  font-size: 0.78rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Workspace Layout */
.workspace {
  display: grid;
  grid-template-columns: 1fr 370px;
  flex: 1;
  min-height: 0;
}

/* Canvas Viewport */
.canvas-panel {
  position: relative;
  overflow: hidden;
  background-color: var(--bg-app);
  background-image: radial-gradient(var(--grid-dot) 1px, transparent 1px);
  background-size: 22px 22px;
}

.canvas-viewport {
  width: 100%;
  height: 100%;
  overflow: hidden;
  cursor: grab;
  position: relative;
  outline: none;
  touch-action: none;
}

.canvas-viewport.dragging {
  cursor: grabbing;
}

.canvas-stage {
  position: absolute;
  top: 0;
  left: 0;
  width: 1470px;
  height: 760px;
  transform-origin: 0 0;
  will-change: transform;
}

.layers-layer, .edges-layer, .nodes-layer, .edge-labels-layer {
  position: absolute;
  top: 0;
  left: 0;
  width: 1470px;
  height: 760px;
}

.layers-layer {
  pointer-events: none;
}

.edges-layer {
  z-index: 2;
  overflow: visible;
}

.nodes-layer {
  z-index: 3;
  pointer-events: none;
}

.edge-labels-layer {
  z-index: 4;
  pointer-events: none;
  overflow: visible;
}

/* Swimlane Layer Boxes */
.arch-layer {
  position: absolute;
  border-radius: 14px;
  border: 1px dashed var(--border-strong);
  background: rgba(15, 23, 42, 0.25);
  padding: 12px 14px;
}

html[data-theme="light"] .arch-layer {
  background: rgba(255, 255, 255, 0.52);
}

.arch-layer-head {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.arch-layer-index {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--cyan);
}

.arch-layer[data-accent="amber"] .arch-layer-index { color: var(--amber); }
.arch-layer[data-accent="violet"] .arch-layer-index { color: var(--violet); }
.arch-layer[data-accent="emerald"] .arch-layer-index { color: var(--emerald); }

.arch-layer-title {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

.arch-layer-sub {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.arch-layer.horizontal {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}

/* Architecture Nodes */
.arch-node {
  position: absolute;
  pointer-events: auto;
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  padding: 12px 13px;
  box-shadow: var(--shadow-card);
  cursor: pointer;
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease, opacity 0.2s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  user-select: none;
}

.arch-node::before {
  content: "";
  position: absolute;
  top: 0;
  left: 12px;
  right: 12px;
  height: 3px;
  border-radius: 0 0 4px 4px;
  background: var(--cyan);
  opacity: 0.85;
}

.arch-node[data-accent="amber"]::before { background: var(--amber); }
.arch-node[data-accent="violet"]::before { background: var(--violet); }
.arch-node[data-accent="emerald"]::before { background: var(--emerald); }

.arch-node:hover {
  background: var(--bg-card-hover);
  transform: translateY(-2px);
  border-color: var(--cyan);
}

.arch-node[data-accent="amber"]:hover { border-color: var(--amber); }
.arch-node[data-accent="violet"]:hover { border-color: var(--violet); }
.arch-node[data-accent="emerald"]:hover { border-color: var(--emerald); }

.arch-node.selected {
  box-shadow: var(--shadow-glow);
  border-color: var(--cyan);
}

.arch-node.dimmed {
  opacity: 0.24;
}

.arch-node.burst-hot {
  border-color: var(--amber);
  box-shadow: 0 0 0 1px rgba(251, 191, 36, 0.35), var(--shadow-card);
}

.node-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.node-icon-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--cyan-soft);
  color: var(--cyan);
  flex-shrink: 0;
}

.arch-node[data-accent="amber"] .node-icon-wrap { background: var(--amber-soft); color: var(--amber); }
.arch-node[data-accent="violet"] .node-icon-wrap { background: var(--violet-soft); color: var(--violet); }
.arch-node[data-accent="emerald"] .node-icon-wrap { background: var(--emerald-soft); color: var(--emerald); }

.node-badge {
  font-family: var(--font-mono);
  font-size: 0.67rem;
  font-weight: 600;
  color: var(--text-secondary);
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  padding: 2px 7px;
  border-radius: 999px;
  white-space: nowrap;
}

.node-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 7px 0 3px;
  line-height: 1.22;
}

.node-metrics {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 0.69rem;
  color: var(--text-secondary);
  border-top: 1px solid var(--border-subtle);
  padding-top: 6px;
  margin-top: 4px;
}

.node-status {
  color: var(--emerald);
  font-weight: 600;
}

.arch-node.burst-hot .node-status {
  color: var(--amber);
}

/* Horizontal Control Plane Nodes */
.arch-node.node-wide {
  flex-direction: row;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
}

.arch-node.node-wide .node-main {
  flex: 1;
  min-width: 0;
}

.arch-node.node-wide .node-title {
  margin: 0 0 3px;
}

.arch-node.node-wide .node-desc-inline {
  font-size: 0.74rem;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.arch-node.node-wide .node-metrics {
  border-top: none;
  border-left: 1px solid var(--border-subtle);
  padding-top: 0;
  padding-left: 14px;
  margin-top: 0;
  flex-direction: column;
  align-items: flex-end;
  flex-shrink: 0;
}

/* SVG Edges */
.edge-group {
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.edge-group.dimmed {
  opacity: 0.16;
}

.edge-hit {
  fill: none;
  stroke: transparent;
  stroke-width: 16;
}

.edge-path {
  fill: none;
  stroke-width: 2.1;
  stroke-linecap: round;
  opacity: 0.72;
  transition: stroke-width 0.15s ease, opacity 0.15s ease;
}

.edge-path[data-flow="stream"] { stroke: var(--cyan); }
.edge-path[data-flow="duality"] { stroke: var(--emerald); }
.edge-path[data-flow="ai"] { stroke: var(--violet); }
.edge-path[data-flow="control"] { stroke: var(--amber); stroke-dasharray: 5 4; }

.edge-group:hover .edge-path,
.edge-group.highlighted .edge-path,
.edge-group.selected .edge-path {
  stroke-width: 3.2;
  opacity: 1;
}

.edge-label-bg {
  fill: var(--bg-surface);
  stroke: var(--border-subtle);
  stroke-width: 1;
  rx: 5;
  ry: 5;
}

.edge-label-text {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  fill: var(--text-secondary);
  text-anchor: middle;
  dominant-baseline: central;
}

.edge-group:hover .edge-label-text,
.edge-group.selected .edge-label-text {
  fill: var(--text-primary);
}

.flow-particle {
  pointer-events: none;
}

/* Floating Canvas Toolbar & Legend */
.canvas-toolbar {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 4px;
  background: var(--bg-glass);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  padding: 4px;
}

.btn-tool {
  border: none;
  background: transparent;
  color: var(--text-primary);
  width: 28px;
  height: 28px;
  border-radius: 7px;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-tool-wide {
  width: auto;
  padding: 0 9px;
  font-size: 0.76rem;
}

.btn-tool:hover {
  background: var(--bg-elevated);
}

.zoom-readout {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-secondary);
  padding: 0 8px 0 4px;
}

.canvas-legend {
  position: absolute;
  bottom: 14px;
  left: 14px;
  right: 14px;
  z-index: 10;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  background: var(--bg-glass);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  padding: 8px 14px;
  font-size: 0.74rem;
  color: var(--text-secondary);
  pointer-events: none;
}

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

.swatch {
  display: inline-block;
  width: 14px;
  height: 3px;
  border-radius: 2px;
}

.swatch-stream { background: var(--cyan); }
.swatch-duality { background: var(--emerald); }
.swatch-ai { background: var(--violet); }
.swatch-control { background: var(--amber); }

.legend-hint {
  margin-left: auto;
  color: var(--text-muted);
}

/* Inspector Sidebar */
.inspector {
  background: var(--bg-surface);
  border-left: 1px solid var(--border-subtle);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

.inspector-inner {
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.inspector-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.71rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--cyan);
}

.inspector-title {
  margin: 4px 0 6px;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.inspector-summary {
  margin: 0;
  font-size: 0.85rem;
  line-height: 1.55;
  color: var(--text-secondary);
}

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

.telemetry-box {
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: 9px;
  padding: 9px 10px;
}

.telemetry-label {
  font-size: 0.68rem;
  color: var(--text-muted);
  display: block;
}

.telemetry-value {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-top: 2px;
  display: block;
}

.inspector-section h3 {
  margin: 0 0 8px;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}

.spec-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.spec-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  font-size: 0.8rem;
  padding: 6px 0;
  border-bottom: 1px solid var(--border-subtle);
}

.spec-key {
  color: var(--text-muted);
  flex-shrink: 0;
}

.spec-val {
  color: var(--text-primary);
  font-family: var(--font-mono);
  font-size: 0.76rem;
  text-align: right;
}

.chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.nav-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.76rem;
  font-weight: 500;
  color: var(--text-primary);
  background: var(--bg-elevated);
  border: 1px solid var(--border-strong);
  border-radius: 7px;
  padding: 5px 9px;
  cursor: pointer;
  transition: all 0.14s ease;
}

.nav-chip:hover {
  border-color: var(--cyan);
  color: var(--cyan);
}

.pillar-callout {
  background: var(--cyan-soft);
  border: 1px solid rgba(56, 189, 248, 0.28);
  border-radius: 10px;
  padding: 11px 12px;
  font-size: 0.8rem;
  line-height: 1.5;
  color: var(--text-primary);
}

.pillar-callout > strong:first-child {
  color: var(--cyan);
  display: block;
  margin-bottom: 4px;
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.inspector-search {
  width: 100%;
  background: var(--bg-elevated);
  border: 1px solid var(--border-strong);
  color: var(--text-primary);
  border-radius: 8px;
  padding: 8px 11px;
  font-size: 0.82rem;
}

.inspector-search:focus {
  outline: 2px solid var(--cyan);
  outline-offset: 1px;
}

.directory-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.directory-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 8px 10px;
  cursor: pointer;
  text-align: left;
  color: var(--text-primary);
  transition: border-color 0.14s ease;
}

.directory-item:hover {
  border-color: var(--cyan);
}

.directory-item small {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-muted);
}

.btn-back {
  align-self: flex-start;
  font-size: 0.76rem;
  padding: 4px 9px;
}

/* Modal */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(5, 8, 15, 0.74);
  backdrop-filter: blur(5px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
}

.modal-backdrop[hidden] {
  display: none;
}

.modal {
  width: 100%;
  max-width: 820px;
  max-height: 90vh;
  overflow-y: auto;
  background: var(--bg-surface);
  border: 1px solid var(--border-strong);
  border-radius: 16px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
}

.modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 22px 14px;
  border-bottom: 1px solid var(--border-subtle);
}

.modal-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--emerald);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.modal-header h2 {
  margin: 4px 0 0;
  font-size: 1.25rem;
}

.btn-close {
  border: 1px solid var(--border-subtle);
  background: var(--bg-elevated);
  color: var(--text-secondary);
  width: 32px;
  height: 32px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1rem;
}

.btn-close:hover {
  color: var(--text-primary);
  border-color: var(--border-strong);
}

.modal-body {
  padding: 18px 22px 22px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.stack-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.stack-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 14px;
}

.stack-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
}

.stack-card h3 {
  margin: 0;
  font-size: 0.96rem;
}

.stack-badge {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--emerald);
  background: var(--emerald-soft);
  padding: 2px 8px;
  border-radius: 999px;
  order: 2;
}

.stack-card p {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.5;
  color: var(--text-secondary);
}

.checklist-box {
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 14px 16px;
}

.checklist-box h3 {
  margin: 0 0 8px;
  font-size: 0.92rem;
}

.checklist-box ol {
  margin: 0;
  padding-left: 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.82rem;
  line-height: 1.5;
  color: var(--text-secondary);
}

/* Responsive */
@media (max-width: 1023px) {
  html, body {
    overflow: auto;
    height: auto;
  }

  .app-shell {
    height: auto;
    min-height: 100vh;
    overflow: visible;
  }

  .workspace {
    grid-template-columns: 1fr;
    grid-template-rows: 58vh auto;
  }

  .inspector {
    border-left: none;
    border-top: 1px solid var(--border-subtle);
  }

  .scenario-desc,
  .legend-hint {
    display: none;
  }

  .stack-grid {
    grid-template-columns: 1fr;
  }
}
