/* Swiss Metrology & Laboratory Specimen Bench Tokens
 * Pixel-sampled from approved Comp (.impeccable/mocks/decision/assigned.jpg)
 * Supports Light (Porcelain Lab) & Dark (Night Lab Graphite) themes. */
:root,
:root[data-theme="light"] {
  --bg-header: #f1f5f8;
  --bg-canvas: #f4f5f8;
  --bg-inspector: #eaeef3;
  --surface: #fefefe;
  --surface-subtle: #f8fafc;
  --surface-hover: #f1f5f9;
  --surface-selected: #d5f0e7;
  --sel-ink-dim: #0b533b;
  --sel-ink-muted: #116247;
  --sel-track: rgb(6 105 74 / 0.16);
  --border: #d8dfe6;
  --border-strong: #bcc7d4;
  --ink: #0d131a;
  --ink-dim: #475569;
  --ink-muted: #5c6b7f;
  --emerald: #06694a;
  --emerald-hover: #045336;
  --emerald-ink: #ffffff;
  --emerald-soft: #d5f0e7;
  --emerald-text: #045336;
  --oxide: #98350c;
  --oxide-soft: #f7dcce;
  --oxide-text: #7d361a;
  --danger: #b91c1c;
  --danger-soft: #fee2e2;
  --info: #1d4ed8;
  --info-soft: #dbeafe;
  --scrim: rgb(13 19 26 / 0.42);
  --shadow-drawer: -12px 0 36px rgb(13 19 26 / 0.12);
  --radius-lg: 8px;
  --radius-md: 6px;
  --radius-sm: 4px;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
  --mono: "JetBrains Mono", "SF Mono", "Cascadia Mono", Menlo, Consolas, ui-monospace, monospace;
  color-scheme: light;
}

:root[data-theme="dark"] {
  --bg-header: #0f151d;
  --bg-canvas: #0b1017;
  --bg-inspector: #101722;
  --surface: #141d29;
  --surface-subtle: #182231;
  --surface-hover: #1e2b3d;
  --surface-selected: rgb(16 185 129 / 0.14);
  --sel-ink-dim: #a7f3d0;
  --sel-ink-muted: #6ee7b7;
  --sel-track: rgb(16 185 129 / 0.24);
  --border: #253244;
  --border-strong: #364860;
  --ink: #f1f5f9;
  --ink-dim: #a3b3c6;
  --ink-muted: #7f92aa;
  --emerald: #10b981;
  --emerald-hover: #059669;
  --emerald-ink: #04281d;
  --emerald-soft: rgb(16 185 129 / 0.16);
  --emerald-text: #34d399;
  --oxide: #fb923c;
  --oxide-soft: rgb(249 115 22 / 0.16);
  --oxide-text: #fdba74;
  --danger: #f87171;
  --danger-soft: rgb(239 68 68 / 0.16);
  --info: #60a5fa;
  --info-soft: rgb(59 130 246 / 0.16);
  --scrim: rgb(3 7 12 / 0.72);
  --shadow-drawer: -14px 0 40px rgb(0 0 0 / 0.55);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { min-height: 100%; }
body {
  margin: 0;
  background: var(--bg-canvas);
  color: var(--ink);
  font: 14px/1.55 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  caret-color: var(--emerald);
}

button, input, textarea, select { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; text-underline-offset: 3px; }
h1, h2, h3, h4, p, dl, dt, dd { margin: 0; }
code, pre, kbd, samp, .mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.num { font-variant-numeric: tabular-nums; }

::selection { background: var(--emerald); color: var(--emerald-ink); }
:focus-visible { outline: 2px solid var(--emerald); outline-offset: 2px; }

::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 6px; }
::-webkit-scrollbar-thumb:hover { background: var(--ink-muted); }
::-webkit-scrollbar-track { background: transparent; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
