/* v13 (2026-11-16): glass over a scene (css/v10.css, img/scene-*.svg). Dark is neutral navy glass with one blue; the second colour is white.
   v10 (2026-11-16): blue ground in both themes (dark is deep royal blue, not graphite), lime as the second colour.
   METeam design tokens — v4 (2026-11-14): bright ERP dashboard, light first. v6 (2026-11-15): dark is graphite (command deck), not navy.
   Cool blue-grey ground with white cards, royal blue (from the ME logo frame) for actions, selection and series 1, one colour per department.
   Red is reserved for "needs you now". Dark is its own set of steps, not an inversion. */
:root {
  color-scheme: light;
  --font: 'Geist', system-ui, -apple-system, 'Segoe UI Variable', 'Segoe UI', Roboto, sans-serif;
  --mono: 'Geist Mono', ui-monospace, 'Cascadia Mono', Consolas, monospace;

  /* ground and surfaces */
  --bg: #F3F7FD;
  --bg-2: #E9EEF6;
  --panel: #FFFFFF;
  --panel-solid: #FFFFFF;
  --panel-sunk: #F4F6FA;
  --chrome: rgba(255, 255, 255, .82);
  --chrome-edge: rgba(255, 255, 255, .8);
  --line: rgba(16, 28, 60, .08);
  --line-2: rgba(16, 28, 60, .15);
  --hover: rgba(30, 60, 140, .055);
  --press: rgba(30, 60, 140, .10);
  --scrim: rgba(14, 22, 48, .40);

  /* ink */
  --ink: #0E1630;
  --ink-2: #3A4460;
  --ink-3: #5C667F;
  --ink-4: #5F6982;

  /* primary action: ink on light, paper on dark */
  --pri-bg: #2452E6;
  --pri-hover: #1A41C8;
  --pri-ink: #FFFFFF;

  /* accent: selection, focus, links, series 1 */
  --brand: #2452E6;
  --brand-2: #1A41C8;
  --brand-ink: #FFFFFF;
  --brand-soft: #E8EEFF;
  --brand-line: rgba(36, 82, 230, .30);
  --focus: 0 0 0 3px rgba(36, 82, 230, .26);
  --glow: rgba(36, 82, 230, .28);

  /* status (reserved: never series colours) */
  --ok: #0A7A4C;   --ok-fill: #12B76A;   --ok-soft: #E6F8EE;
  --warn: #8F5600; --warn-fill: #F5A524; --warn-soft: #FEF3D9;
  --err: #C4261D;  --err-fill: #E5484D;  --err-soft: #FDEAE8;
  --info: #1A41C8; --info-soft: #E8EEFF;
  --pur: #8A2BD9;  --pur-soft: #F5EBFE;
  --mute: #52525B; --mute-soft: #F1F1F3;

  /* departments (one colour each, even weight) */
  --d-mgmt: #2452E6;
  --d-fin: #12A150;
  --d-ops: #D08A00;
  --d-svc: #0E9AA7;
  --d-sal: #E5562B;
  --d-mkt: #8B46E0;
  --d-cmp: #64748B;

  /* chart series (fixed order) */
  --c1: #2452E6;
  --c2: #14B8A6;
  --c3: #F5A524;
  --c4: #8B46E0;
  --c-track: #E6EAF2;
  --c-done: #A8B1C4;

  /* shape */
  --r-xs: 6px;
  --r-s: 12px;
  --r-m: 14px;
  --r-l: 22px;
  --r-xl: 28px;
  --sh-1: 0 1px 2px rgba(16, 28, 60, .04), 0 6px 20px -12px rgba(16, 28, 60, .12);
  --sh-2: 0 2px 4px rgba(16, 28, 60, .05), 0 16px 32px -14px rgba(16, 28, 60, .22);
  --sh-3: 0 2px 6px rgba(16, 28, 60, .06), 0 30px 64px -22px rgba(16, 28, 60, .36);
  --blur: blur(16px) saturate(1.5);

  /* ink on a department colour; the Home brief */
  --on-dc: #FFFFFF;
  --slab-1: #2B5BF0; --slab-2: #1E46D2; --slab-3: #16329F; --slab-glow: rgba(36, 82, 230, .55);

  /* ground: a blue sky that fades into the page. live: the second colour, kept for the one key action on a screen */
  --ground: url("../img/scene-day.svg"); --glass: rgba(246, 249, 255, .70); --glass-side: rgba(255, 255, 255, .46); --glass-edge: rgba(255, 255, 255, .85);
  --live: #111A38; --live-hover: #1C2850; --live-ink: #FFFFFF; --live-text: #1F49D6; --live-fill: #2F66F5; --live-glow: rgba(17, 26, 56, .34);

  /* motion */
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-sheet: cubic-bezier(.32, .72, 0, 1);
  --ease-io: cubic-bezier(.65, 0, .35, 1);
  --ease-spring: linear(0, .31 7.5%, .57 15.6%, .78 24.7%, .93 35%, 1.01 47.6%, 1.035 57.8%, 1.03 68.4%, 1.012 82%, 1);
  --t-1: 120ms;
  --t-2: 180ms;
  --t-3: 280ms;
  --t-4: 420ms;
  --rise: 10px;
  --stagger: 28ms;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #090D1C; --bg-2: rgba(255, 255, 255, .04);
    --panel: rgba(255, 255, 255, .055); --panel-solid: #161D33; --panel-sunk: rgba(4, 8, 20, .42);
    --chrome: rgba(13, 18, 34, .80); --chrome-edge: rgba(255, 255, 255, .07);
    --line: rgba(255, 255, 255, .09); --line-2: rgba(255, 255, 255, .17);
    --hover: rgba(255, 255, 255, .05); --press: rgba(255, 255, 255, .09); --scrim: rgba(0, 0, 0, .58);
    --ink: #F5F7FC; --ink-2: #D3D9E8; --ink-3: #B3BCD0; --ink-4: #A2ACC2;
    --pri-bg: #3D6BFF; --pri-hover: #5580FF; --pri-ink: #FFFFFF;
    --brand: #7C9BFF; --brand-2: #9DB4FF; --brand-ink: #0A0C10; --brand-soft: rgba(124, 155, 255, .16); --brand-line: rgba(124, 155, 255, .38);
    --focus: 0 0 0 3px rgba(124, 155, 255, .40); --glow: rgba(75, 116, 255, .40);
    --ok: #4ADE80; --ok-fill: #12B76A; --ok-soft: rgba(18, 183, 106, .16);
    --warn: #FBBF24; --warn-fill: #F5A524; --warn-soft: rgba(245, 165, 36, .16);
    --err: #FF8A80; --err-fill: #E5484D; --err-soft: rgba(229, 72, 77, .18);
    --info: #9DB4FF; --info-soft: rgba(124, 155, 255, .16);
    --pur: #D29BFF; --pur-soft: rgba(168, 85, 247, .18);
    --mute: #A9A9B4; --mute-soft: rgba(255, 255, 255, .07);
    --d-mgmt: #7C9BFF; --d-fin: #3FCB7E; --d-ops: #F2B03D; --d-svc: #2DD4E0; --d-sal: #FF8A65; --d-mkt: #B58CFF; --d-cmp: #94A3B8;
    --c1: #7C9BFF; --c2: #2DD4BF; --c3: #F5B544; --c4: #B58CFF; --c-track: rgba(255, 255, 255, .10); --c-done: #6B7694;
    --sh-1: 0 1px 2px rgba(0, 0, 0, .4);
    --sh-2: 0 1px 2px rgba(0, 0, 0, .4), 0 14px 30px -14px rgba(0, 0, 0, .7);
    --sh-3: 0 2px 8px rgba(0, 0, 0, .45), 0 30px 70px -24px rgba(0, 0, 0, .85); --on-dc: #071030; --ground: url("../img/scene-night.svg"); --glass: rgba(11, 15, 30, .52); --glass-side: rgba(5, 8, 18, .30); --glass-edge: rgba(255, 255, 255, .11);
    --live: #FFFFFF; --live-hover: #E3EAFF; --live-ink: #0B1228; --live-glow: rgba(120, 155, 255, .55); --live-text: #A9C0FF; --live-fill: #6E95FF; --slab-1: #3A66F5; --slab-2: #2347CC; --slab-3: #152A80; --slab-glow: rgba(60, 100, 255, .45);
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #090D1C; --bg-2: rgba(255, 255, 255, .04);
  --panel: rgba(255, 255, 255, .055); --panel-solid: #161D33; --panel-sunk: rgba(4, 8, 20, .42);
  --chrome: rgba(13, 18, 34, .80); --chrome-edge: rgba(255, 255, 255, .07);
  --line: rgba(255, 255, 255, .09); --line-2: rgba(255, 255, 255, .17);
  --hover: rgba(255, 255, 255, .05); --press: rgba(255, 255, 255, .09); --scrim: rgba(0, 0, 0, .58);
  --ink: #F5F7FC; --ink-2: #D3D9E8; --ink-3: #B3BCD0; --ink-4: #A2ACC2;
  --pri-bg: #3D6BFF; --pri-hover: #5580FF; --pri-ink: #FFFFFF;
  --brand: #7C9BFF; --brand-2: #9DB4FF; --brand-ink: #0A0C10; --brand-soft: rgba(124, 155, 255, .16); --brand-line: rgba(124, 155, 255, .38);
  --focus: 0 0 0 3px rgba(124, 155, 255, .40); --glow: rgba(75, 116, 255, .40);
  --ok: #4ADE80; --ok-fill: #12B76A; --ok-soft: rgba(18, 183, 106, .16);
  --warn: #FBBF24; --warn-fill: #F5A524; --warn-soft: rgba(245, 165, 36, .16);
  --err: #FF8A80; --err-fill: #E5484D; --err-soft: rgba(229, 72, 77, .18);
  --info: #9DB4FF; --info-soft: rgba(124, 155, 255, .16);
  --pur: #D29BFF; --pur-soft: rgba(168, 85, 247, .18);
  --mute: #A9A9B4; --mute-soft: rgba(255, 255, 255, .07);
  --d-mgmt: #7C9BFF; --d-fin: #3FCB7E; --d-ops: #F2B03D; --d-svc: #2DD4E0; --d-sal: #FF8A65; --d-mkt: #B58CFF; --d-cmp: #94A3B8;
  --c1: #7C9BFF; --c2: #2DD4BF; --c3: #F5B544; --c4: #B58CFF; --c-track: rgba(255, 255, 255, .10); --c-done: #6B7694;
  --sh-1: 0 1px 2px rgba(0, 0, 0, .4);
  --sh-2: 0 1px 2px rgba(0, 0, 0, .4), 0 14px 30px -14px rgba(0, 0, 0, .7);
  --sh-3: 0 2px 8px rgba(0, 0, 0, .45), 0 30px 70px -24px rgba(0, 0, 0, .85); --on-dc: #071030; --ground: url("../img/scene-night.svg"); --glass: rgba(11, 15, 30, .52); --glass-side: rgba(5, 8, 18, .30); --glass-edge: rgba(255, 255, 255, .11);
    --live: #FFFFFF; --live-hover: #E3EAFF; --live-ink: #0B1228; --live-glow: rgba(120, 155, 255, .55); --live-text: #A9C0FF; --live-fill: #6E95FF; --slab-1: #3A66F5; --slab-2: #2347CC; --slab-3: #152A80; --slab-glow: rgba(60, 100, 255, .45);
}

/* motion levels: high = showpiece (default), medium = refined, low = minimal (short fades only, no 3D) */
:root[data-motion="low"] { --t-1: 0ms; --t-2: 100ms; --t-3: 120ms; --t-4: 140ms; --rise: 0px; --stagger: 0ms; }
:root[data-motion="medium"] { --t-3: 220ms; --t-4: 300ms; --rise: 6px; --stagger: 0ms; }

@media (prefers-reduced-transparency: reduce) {
  :root { --chrome: var(--panel-solid); --blur: none; }
}
@media (prefers-contrast: more) {
  :root { --line: rgba(9, 9, 11, .3); --line-2: rgba(9, 9, 11, .5); --ink-3: #3F3F46; --ink-4: #52525B; --chrome: var(--panel-solid); }
  :root[data-theme="dark"] { --line: rgba(255, 255, 255, .3); --line-2: rgba(255, 255, 255, .5); --ink-3: #C4C4CC; --ink-4: #A9A9B4; }
}
