/* UI Anatomy — design tokens. Put class="ui-dark" or "ui-light" on <html>.
   Graphite ink with Unity's selection amber as the one accent; anchor cyan for guides and keyboard focus.
   Light is a drafting sheet. Layer-kind colours are data and stay the same in both themes. */
:root, .ui-dark {
  --bg:#14161A;
  --surface:#1B1E23;
  --surface-2:#22262C;
  --surface-3:#2B3038;
  --line:rgba(233,234,230,.08);
  --line-2:rgba(233,234,230,.16);
  --text:#E9EAE6;
  --text-2:#B4B7B0;
  --text-3:#8F938C;
  --accent:#FFB224;
  --accent-hover:#FFC35A;
  --accent-ink:#1A1408;
  --accent-text:#FFC35A;
  --accent-soft:rgba(255,178,36,.14);
  --guide:#45D4E6;
  --ok:#5BD69A;
  --ok-soft:rgba(91,214,154,.12);
  --warn:#F08A4B;
  --warn-soft:rgba(240,138,75,.12);
  --bad:#F26D6D;
  --bad-soft:rgba(242,109,109,.12);
  --canvas:#101215;
  --dot:rgba(233,234,230,.07);
  --shadow:0 1px 0 rgba(233,234,230,.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(233,234,230,.09);
  --code:#0F1114;
}
.ui-light {
  --bg:#ECEEE9;
  --surface:#F8F9F6;
  --surface-2:#F0F2ED;
  --surface-3:#E3E6DF;
  --line:rgba(21,23,27,.09);
  --line-2:rgba(21,23,27,.17);
  --text:#15171B;
  --text-2:#43474E;
  --text-3:#5E636B;
  --accent:#FFB224;
  --accent-hover:#F0A010;
  --accent-ink:#1A1408;
  --accent-text:#9A5B00;
  --accent-soft:rgba(255,178,36,.18);
  --guide:#0C8FA3;
  --ok:#127A4B;
  --ok-soft:rgba(18,122,75,.12);
  --warn:#B24A12;
  --warn-soft:rgba(178,74,18,.12);
  --bad:#C42B30;
  --bad-soft:rgba(196,43,48,.12);
  --canvas:#E2E5DE;
  --dot:rgba(21,23,27,.09);
  --shadow:0 1px 2px rgba(21,23,27,.05),0 8px 24px -12px rgba(21,23,27,.14);
  --pop:0 24px 64px -12px rgba(21,23,27,.25),0 0 0 1px rgba(21,23,27,.09);
  --code:#F3F5F0;
}
:root {
  --font-display: 'Chakra Petch', system-ui, sans-serif;
  --font-sans: 'Instrument Sans', system-ui, sans-serif;
  --font-mono: 'Martian Mono', ui-monospace, monospace;
  /* type scale (px): 12 13 15 18 22 28 36 48 */
  --t-12: 12px; --t-13: 13px; --t-15: 15px; --t-18: 18px; --t-22: 22px; --t-28: 28px; --t-36: 36px; --t-48: 48px;
  --radius-sm: 4px; --radius: 6px; --radius-md: 8px; --radius-lg: 10px; --radius-xl: 12px; --radius-pill: 999px;
  --chamfer: 8px; /* the one signature: a 45° cut on two opposite corners (.cut) */
  --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;
}
