/* Bridge the shared TRouter components to the island kit's named tokens. */
html.compute-island {
  --bg-primary: var(--bg);
  --bg-void: var(--bg);
  --bg-card: var(--surface);
  --bg-secondary: var(--surface-2);
  --bg-elevated: var(--surface-3);
  --bg-hover: var(--accent-soft);
  --border: var(--line-2);
  --border-subtle: var(--line);
  --border-hover: var(--muted);
  --text-primary: var(--ink);
  --text-secondary: var(--ink-2);
  --text-muted: var(--muted);
  --accent-foreground: #fff;
  --accent-hover: var(--accent-ink);
  --success: var(--ok);
  --error: var(--danger-ink);
  --warning: var(--warn);
  --font-body: var(--font-sans);
  --font-display: var(--font-sans);
  --radius: var(--r-xs);
  --radius-lg: var(--r);
  --radius-xl: var(--r-lg);
  --shadow-sm: none;
  --shadow-md: var(--shadow-1);
  --shadow-lg: var(--shadow-2);
  --transition: 160ms var(--ease);
}
html.compute-island[data-theme="dark"] {
  --bg: #19181b;
  --rail: #201f23;
  --surface: #27262a;
  --surface-2: #242327;
  --surface-3: #322f36;
  --line: #3c393e;
  --line-2: #4c484f;
  --ink: #f5f2ed;
  --ink-2: #d8d3cc;
  --muted: #b6b0bb;
  --accent: #9ebaff;
  --accent-ink: #b9cdff;
  --accent-soft: #333e54;
  --accent-foreground: #15181f;
  --ok: #88d3ac;
  --warn: #ffb479;
  --danger-ink: #ffac9c;
  --danger-soft: #522e2a;
}
.compute-island .nb-card, .compute-island .nb-modal, .compute-island .nb-select-menu {
  border: 1px solid var(--line);
  border-radius: var(--r);
}
.compute-island :is(.nb-btn, .nb-btn-ghost, .nb-label, .nb-nav-tab, .nb-subtab, .nb-table th) {
  text-transform: none;
  letter-spacing: normal;
  font-weight: 600;
}
.compute-island :is(.nb-btn, .nb-input, .nb-select-trigger, .nb-btn-ghost, .nb-subtab, .theme-toggle) {
  border-width: 1px;
  border-radius: var(--r-sm);
}
.compute-island .nb-btn-primary {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--surface);
}
.compute-island .nb-btn:not(:disabled):hover, .compute-island .theme-toggle:hover {
  transform: none;
  box-shadow: none;
}
.compute-island .nb-btn-primary:hover:not(:disabled) { background: var(--ink-2); color: var(--surface); }
.compute-island .nb-btn:active:not(:disabled) { transform: translateY(1px); }
.compute-island .nb-table { border: 1px solid var(--line); }
.compute-island .nb-table thead th { background: var(--surface-2); color: var(--ink-2); border-bottom: 1px solid var(--line); font-size: 12px; }
.compute-island .nb-table tbody td { border-bottom-width: 1px; height: 52px; font-variant-numeric: tabular-nums; }
.compute-island :is(.nb-nav-tab.active, .nb-subtab.active) { color: var(--ink); background: var(--surface); border-color: var(--line); box-shadow: var(--shadow-1); }
.compute-island .nb-alert-error { background: var(--danger-soft); color: var(--danger-ink); margin-bottom: 16px; }
