/* Diecut Studio colour tokens, shared by the Nester, Box Designer and the launcher. Light is the base; dark
   follows the system unless the suite appearance says light, or data-theme="dark" (shared/appearance.js).
   The two dark blocks must stay identical. App-only tokens (sheet, die overlay…) stay in each app. */
:root {
  --accent: #0a84ff;
  --accent-ink: #ffffff;
  --ink: rgba(0, 0, 0, .86);
  --ink-2: rgba(0, 0, 0, .55);
  --ink-3: rgba(0, 0, 0, .3);
  --line: rgba(0, 0, 0, .09);
  --line-strong: rgba(0, 0, 0, .15);
  --fill: rgba(0, 0, 0, .045);
  --fill-2: rgba(0, 0, 0, .08);
  --side: rgba(236, 236, 240, .62);
  --side-solid: #ececf0;                /* behind the sidebar when there is no window vibrancy (a browser) */
  --content: #ffffff;
  --canvas: #e3e3e6;
  --control: #ffffff;
  --control-line: rgba(0, 0, 0, .13);
  --seg-on: #ffffff;
  --sheet: #ffffff;
  --sheet-margin: #ececf0;
  --sheet-line: rgba(0, 0, 0, .18);
  --usable-line: rgba(0, 0, 0, .2);
  --ok: #2e9d57;
  --edited: #d9822b;
  --warn: #c2620a;
  --bad: #e5383b;
  --t-blue: #3b7ddd; --t-purple: #8a5cd6; --t-amber: #d9902a; --t-coral: #e0604e; --t-green: #3a9a5b; --t-indigo: #5b62d6;
  --shadow: 0 1px 2px rgba(0, 0, 0, .06), 0 4px 14px rgba(0, 0, 0, .07);
  --radius: 8px;
  color-scheme: light;
}
@supports (color: -apple-system-control-accent) {
  :root { --accent: -apple-system-control-accent; }
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ink: rgba(255, 255, 255, .88);
    --ink-2: rgba(255, 255, 255, .55);
    --ink-3: rgba(255, 255, 255, .28);
    --line: rgba(255, 255, 255, .09);
    --line-strong: rgba(255, 255, 255, .16);
    --fill: rgba(255, 255, 255, .055);
    --fill-2: rgba(255, 255, 255, .1);
    --side: rgba(38, 38, 42, .58);
    --side-solid: #2a2a2e;
    --content: #1d1d1f;
    --canvas: #2b2b2e;
    --control: rgba(255, 255, 255, .08);
    --control-line: rgba(255, 255, 255, .12);
    --seg-on: rgba(255, 255, 255, .16);
    --sheet: #f2f2f0;
    --sheet-margin: #e3e3e1;
    --sheet-line: rgba(0, 0, 0, .35);
    --usable-line: rgba(0, 0, 0, .22);
    --ok: #3fbf6f;
    --edited: #f0a24a;
    --warn: #f0a24a;
    --bad: #ff5f57;
    --t-blue: #5c9bff; --t-purple: #a98af0; --t-amber: #f0b04a; --t-coral: #ff7f6b; --t-green: #52c27a; --t-indigo: #8a90ff;
    --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 6px 20px rgba(0, 0, 0, .35);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --ink: rgba(255, 255, 255, .88);
  --ink-2: rgba(255, 255, 255, .55);
  --ink-3: rgba(255, 255, 255, .28);
  --line: rgba(255, 255, 255, .09);
  --line-strong: rgba(255, 255, 255, .16);
  --fill: rgba(255, 255, 255, .055);
  --fill-2: rgba(255, 255, 255, .1);
  --side: rgba(38, 38, 42, .58);
  --side-solid: #2a2a2e;
  --content: #1d1d1f;
  --canvas: #2b2b2e;
  --control: rgba(255, 255, 255, .08);
  --control-line: rgba(255, 255, 255, .12);
  --seg-on: rgba(255, 255, 255, .16);
  --sheet: #f2f2f0;
  --sheet-margin: #e3e3e1;
  --sheet-line: rgba(0, 0, 0, .35);
  --usable-line: rgba(0, 0, 0, .22);
  --ok: #3fbf6f;
  --edited: #f0a24a;
  --warn: #f0a24a;
  --bad: #ff5f57;
  --t-blue: #5c9bff; --t-purple: #a98af0; --t-amber: #f0b04a; --t-coral: #ff7f6b; --t-green: #52c27a; --t-indigo: #8a90ff;
  --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 6px 20px rgba(0, 0, 0, .35);
  color-scheme: dark;
}
