/* UI Anatomy — design tokens. Put class="ui-dark" or "ui-light" on <html>. */
:root, .ui-dark {
  --bg:#0A0C10;
  --surface:#111419;
  --surface-2:#171B22;
  --surface-3:#1F242D;
  --line:rgba(255,255,255,.07);
  --line-2:rgba(255,255,255,.14);
  --text:#ECEEF3;
  --text-2:#A9AFBE;
  --text-3:#8A92A3;
  --accent:#5B57F5;
  --accent-hover:#6B67FF;
  --accent-text:#A9A6FF;
  --accent-soft:rgba(110,106,255,.14);
  --ok:#4ADE9B;
  --ok-soft:rgba(74,222,155,.12);
  --warn:#F7B84B;
  --warn-soft:rgba(247,184,75,.12);
  --bad:#F98B8B;
  --bad-soft:rgba(249,139,139,.12);
  --canvas:#0C0E13;
  --dot:rgba(255,255,255,.07);
  --shadow:0 1px 0 rgba(255,255,255,.04) inset,0 16px 40px -16px rgba(0,0,0,.7);
  --pop:0 24px 64px -12px rgba(0,0,0,.75),0 0 0 1px rgba(255,255,255,.08);
  --code:#0D1015;
}
.ui-light {
  --bg:#F5F6F8;
  --surface:#FFFFFF;
  --surface-2:#F3F4F7;
  --surface-3:#E9EBF0;
  --line:rgba(15,18,30,.08);
  --line-2:rgba(15,18,30,.15);
  --text:#0E1120;
  --text-2:#454C60;
  --text-3:#636A7E;
  --accent:#4F46E5;
  --accent-hover:#4338CA;
  --accent-text:#4338CA;
  --accent-soft:rgba(79,70,229,.09);
  --ok:#0E7C4A;
  --ok-soft:rgba(16,163,94,.1);
  --warn:#A2510A;
  --warn-soft:rgba(234,138,24,.12);
  --bad:#C42B30;
  --bad-soft:rgba(220,38,38,.09);
  --canvas:#ECEEF2;
  --dot:rgba(15,18,30,.09);
  --shadow:0 1px 2px rgba(15,18,30,.04),0 8px 24px -12px rgba(15,18,30,.12);
  --pop:0 24px 64px -12px rgba(15,18,30,.25),0 0 0 1px rgba(15,18,30,.08);
  --code:#F6F7FA;
}
:root {
  --font-sans: 'Geist', Inter, system-ui, sans-serif;
  --font-mono: 'Geist Mono', ui-monospace, monospace;
  --radius-sm: 8px; --radius: 10px; --radius-md: 12px; --radius-lg: 14px; --radius-xl: 18px; --radius-pill: 999px;
  --ease-out: cubic-bezier(.2,.8,.2,1); --ease-spring: cubic-bezier(.3,1.3,.5,1); --ease-pop: cubic-bezier(.2,.9,.3,1.15);
  --dur-fast: 150ms; --dur: 250ms; --dur-slow: 400ms;
  /* layer-kind colours (same in both themes) */
  --kind-prefab: #8B7CF6; --kind-slice: #F5A524; --kind-text: #38BDF8;
  --kind-sprite: #F97316; --kind-container: #94A3B8; --kind-effect: #EC4899;
}
