/* AFC Workstation: colour, type and spacing tokens. A light set, and a dark set that applies when <html data-theme="dark">
 * is set, or when no choice is stored (data-theme absent) and the computer prefers dark. lang.js sets data-theme before the
 * first paint, so nothing flashes. Every state is shown with a mark and words; colour is never the only sign. */
:root {
  color-scheme: light;
  --bg: #ffffff; --ink: #0f1419; --grey: #5c6670; --line: #e6e9ed; --soft: #f5f7f9;
  --blue: #1f5fe0; --btn: #1f5fe0; --on-btn: #ffffff; --inb: #cfd5dc; --tagb: #cfd5dc; --tagon: #b9c0c8;
  --stop-dot: #d93a2f; --stop: #b3271e; --watch-dot: #d99a00; --watch: #7d5800; --fine-dot: #1f9d55; --fine: #17803f;
  --glyph: #ffffff; --glyph-watch: #1a1300;
  /* The computer's own fonts (2026-12-04): nothing is fetched, so the app opens the same in mainland China. */
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang SC", "Segoe UI", "Microsoft YaHei", sans-serif;
  --t-xl: 2.125rem; --t-lg: 1.0625rem; --t-md: 1rem; --t-sm: 0.875rem; --t-xs: 0.8125rem; --t-nav: 0.9375rem; --t-state: 1.25rem;
  --s-1: 0.25rem; --s-2: 0.5rem; --s-3: 0.75rem; --s-4: 1rem; --s-5: 1.5rem; --s-6: 2.5rem; --s-7: 3.5rem;
  --r-sm: 4px; --r-md: 8px; --r-lg: 12px;
  --ease: cubic-bezier(0.23, 1, 0.32, 1);
  --dur: 160ms;
  --rail: 256px;
  /* Glass layer, 4 Dec 2026 (glass.css): a plain light-grey ground, solid white cards on it, a frosted menu. */
  --ground: #f5f5f7; --panel: #ffffff; --r-xl: 22px;
  --lift: 0 1px 2px rgb(15 20 25 / 0.04), 0 8px 24px rgb(15 20 25 / 0.06);
  --glass: rgb(236 237 241 / 0.82); --glass-solid: #eceef1; --glass-line: rgb(15 20 25 / 0.08); --glass-hover: rgb(255 255 255 / 0.7);
  --cur: #ffffff; --cur-lift: 0 1px 2px rgb(15 20 25 / 0.06), 0 6px 16px rgb(15 20 25 / 0.07);
  --btn-bg: rgb(255 255 255 / 0.92); --btn-line: rgb(15 20 25 / 0.13); --btn-line-hover: rgb(15 20 25 / 0.24); --btn-lift: 0 1px 2px rgb(15 20 25 / 0.05);
  --btn-hover-lift: 0 4px 12px rgb(15 20 25 / 0.08); --pri-lift: inset 0 1px 0 rgb(255 255 255 / 0.28), 0 6px 16px rgb(31 95 224 / 0.28);
  --in-line: rgb(15 20 25 / 0.16); --glow: 0 0 0 4px rgb(31 95 224 / 0.16);
  --bd-stop-bg: #f7d8d5; --bd-stop: #b3271e; --bd-new-bg: #e3ebfc; --bd-new: #1a50bf; --av-bg: #dfe8fb; --av-ink: #1a50bf;
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0e1216; --ink: #eef1f4; --grey: #9ba6b3; --line: #222932; --soft: #171d24;
  --blue: #6aa6ff; --btn: #2f6fed; --on-btn: #ffffff; --inb: #34404c; --tagb: #3a4653; --tagon: #3a4653;
  --stop-dot: #ff6b5e; --stop: #ff8d82; --watch-dot: #f2c230; --watch: #f2c230; --fine-dot: #3fcf8e; --fine: #5ad9a0;
  --glyph: #0e1216; --glyph-watch: #1a1300;
  --ground: #0b0d10; --panel: #171a1f;
  --lift: 0 0 0 1px rgb(255 255 255 / 0.05), 0 8px 24px rgb(0 0 0 / 0.35);
  --glass: rgb(26 29 34 / 0.8); --glass-solid: #1a1d22; --glass-line: rgb(255 255 255 / 0.08); --glass-hover: rgb(255 255 255 / 0.06);
  --cur: #2a2f37; --cur-lift: 0 1px 2px rgb(0 0 0 / 0.4), 0 6px 16px rgb(0 0 0 / 0.3);
  --btn-bg: rgb(255 255 255 / 0.06); --btn-line: rgb(255 255 255 / 0.14); --btn-line-hover: rgb(255 255 255 / 0.28); --btn-lift: none;
  --btn-hover-lift: 0 4px 12px rgb(0 0 0 / 0.3); --pri-lift: inset 0 1px 0 rgb(255 255 255 / 0.18), 0 6px 16px rgb(0 0 0 / 0.35);
  --in-line: rgb(255 255 255 / 0.16); --glow: 0 0 0 4px rgb(106 166 255 / 0.28);
  --bd-stop-bg: rgb(255 107 94 / 0.2); --bd-stop: #ff9b91; --bd-new-bg: rgb(106 166 255 / 0.2); --bd-new: #9cc3ff; --av-bg: rgb(106 166 255 / 0.2); --av-ink: #9cc3ff;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    color-scheme: dark;
    --bg: #0e1216; --ink: #eef1f4; --grey: #9ba6b3; --line: #222932; --soft: #171d24;
    --blue: #6aa6ff; --btn: #2f6fed; --on-btn: #ffffff; --inb: #34404c; --tagb: #3a4653; --tagon: #3a4653;
    --stop-dot: #ff6b5e; --stop: #ff8d82; --watch-dot: #f2c230; --watch: #f2c230; --fine-dot: #3fcf8e; --fine: #5ad9a0;
    --glyph: #0e1216; --glyph-watch: #1a1300;
    --ground: #0b0d10; --panel: #171a1f;
    --lift: 0 0 0 1px rgb(255 255 255 / 0.05), 0 8px 24px rgb(0 0 0 / 0.35);
    --glass: rgb(26 29 34 / 0.8); --glass-solid: #1a1d22; --glass-line: rgb(255 255 255 / 0.08); --glass-hover: rgb(255 255 255 / 0.06);
    --cur: #2a2f37; --cur-lift: 0 1px 2px rgb(0 0 0 / 0.4), 0 6px 16px rgb(0 0 0 / 0.3);
    --btn-bg: rgb(255 255 255 / 0.06); --btn-line: rgb(255 255 255 / 0.14); --btn-line-hover: rgb(255 255 255 / 0.28); --btn-lift: none;
    --btn-hover-lift: 0 4px 12px rgb(0 0 0 / 0.3); --pri-lift: inset 0 1px 0 rgb(255 255 255 / 0.18), 0 6px 16px rgb(0 0 0 / 0.35);
    --in-line: rgb(255 255 255 / 0.16); --glow: 0 0 0 4px rgb(106 166 255 / 0.28);
    --bd-stop-bg: rgb(255 107 94 / 0.2); --bd-stop: #ff9b91; --bd-new-bg: rgb(106 166 255 / 0.2); --bd-new: #9cc3ff; --av-bg: rgb(106 166 255 / 0.2); --av-ink: #9cc3ff;
  }
}
