/* ============================================================================
   Platform design tokens — the ONE shared neutral palette every app links to.
   ----------------------------------------------------------------------------
   Previously this :root block was copy-pasted into every app's inline <style>.
   Apps now `<link rel="stylesheet" href="/lib/tokens.css">` for the shared
   neutrals + surface + theme wiring, and define only their own brand/semantic
   tokens (accent color, status colors, shadows) inline. Light is the default;
   dark comes from prefers-color-scheme, and an explicit data-theme attribute
   (set by PlatformTheme in /lib/platform-admin.js) overrides both.

   Shared, cross-app tokens defined here:
     --paper --card --line --text --muted --faint   (neutral scale)
     --bg --panel                                    (surface aliases)
   App-specific tokens (kept inline per app): --accent, status colors, shadows.
   ========================================================================== */
:root {
  color-scheme: light dark;
  --paper:#f6f7fb; --card:#ffffff; --line:#d9deeb;
  --text:#14203a; --muted:#5a6784; --faint:#8b96ad;
  --bg:var(--paper); --panel:var(--card);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper:#0b1120; --card:#121c33; --line:#26324f;
    --text:#e8ecf6; --muted:#9aa6c2; --faint:#6b779a;
  }
}
:root[data-theme="light"] {
  --paper:#f6f7fb; --card:#ffffff; --line:#d9deeb;
  --text:#14203a; --muted:#5a6784; --faint:#8b96ad;
}
:root[data-theme="dark"] {
  --paper:#0b1120; --card:#121c33; --line:#26324f;
  --text:#e8ecf6; --muted:#9aa6c2; --faint:#6b779a;
}
