/* tokens-flexdesk.css — FlexDesk — client hub + operator console + marketing
 * Generated by generate-tokens.mjs from tokens.json. Do not hand-edit; edit tokens.json and
 * re-run.
 * Convention (matches partners/SUPREME-ADVISORY/portals/work-engine/decision-pack.html):
 *   - bare :root carries the DEFAULT theme (this portal's current shipped look: light).
 *   - a prefers-color-scheme media query, guarded by :not([data-theme="light"]),
 *     switches to the other theme when the OS/browser asks for it.
 *   - :root[data-theme="dark"] is an explicit override that wins over both of the above —
 *     this is what the in-page toggle button sets, and what theme-boot.js applies from
 *     localStorage before first paint.
 */
:root {
    --bg: #eef3f1;
    --surface: #ffffff;
    --surface-2: #e4f1ee;
    --line: #dce7e4;
    --tx1: #0b2b29;
    --tx2: #4b5a57;
    --tx3: #7c8f8b;
    --accent: #0f766e;
    --accent-fill: #0f766e;
    --on-accent: #ffffff;
    --ok: #0e8a5f;
    --warn: #b4780b;
    --danger: #b3261e;
    --focus: #14b8a6;
    --font-display: Manrope,system-ui,sans-serif;
    --font-body: Inter,system-ui,sans-serif;
    --radius: 14px;
    --radius-sm: 10px;
    --space-1: 4px; --space-2: 8px; --space-3: 12px; --space-4: 16px; --space-5: 24px; --space-6: 32px; --space-7: 48px;
    --motion-fast: 120ms; --motion-base: 200ms; --motion-slow: 360ms;
    --ease: cubic-bezier(.2,.7,.2,1);
    color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0b1e1c;
    --surface: #0f2a27;
    --surface-2: #123330;
    --line: #1e3f3b;
    --tx1: #e7f3f0;
    --tx2: #9fc4be;
    --tx3: #6e8f89;
    --accent: #14b8a6;
    --accent-fill: #14b8a6;
    --on-accent: #052422;
    --ok: #34d399;
    --warn: #f2b233;
    --danger: #f87171;
    --focus: #5eead4;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
    --bg: #0b1e1c;
    --surface: #0f2a27;
    --surface-2: #123330;
    --line: #1e3f3b;
    --tx1: #e7f3f0;
    --tx2: #9fc4be;
    --tx3: #6e8f89;
    --accent: #14b8a6;
    --accent-fill: #14b8a6;
    --on-accent: #052422;
    --ok: #34d399;
    --warn: #f2b233;
    --danger: #f87171;
    --focus: #5eead4;
    color-scheme: dark;
}

/* ---- Accent alternates (curated, AA-checked in both themes — see CONTRAST-REPORT.md) ---- */
:root[data-accent="amber"] {
    --accent: #8a5206; --accent-fill: #8a5206; --on-accent: #ffffff; --focus: #8a5206;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"])[data-accent="amber"] {
    --accent: #f2b233; --accent-fill: #f2b233; --on-accent: #1a1103; --focus: #f2b233;
  }
}
:root[data-theme="dark"][data-accent="amber"] {
    --accent: #f2b233; --accent-fill: #f2b233; --on-accent: #1a1103; --focus: #f2b233;
}
:root[data-theme="light"][data-accent="amber"] {
    --accent: #8a5206; --accent-fill: #8a5206; --on-accent: #ffffff; --focus: #8a5206;
}
:root[data-accent="coral"] {
    --accent: #9a2f21; --accent-fill: #9a2f21; --on-accent: #ffffff; --focus: #9a2f21;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"])[data-accent="coral"] {
    --accent: #f87171; --accent-fill: #f87171; --on-accent: #2a0a08; --focus: #f87171;
  }
}
:root[data-theme="dark"][data-accent="coral"] {
    --accent: #f87171; --accent-fill: #f87171; --on-accent: #2a0a08; --focus: #f87171;
}
:root[data-theme="light"][data-accent="coral"] {
    --accent: #9a2f21; --accent-fill: #9a2f21; --on-accent: #ffffff; --focus: #9a2f21;
}

/* ---- Appearance controls (shared, not brand-specific): density, text size, motion ---- */
:root {
    --text-scale: 1;
    --text-body: 14px; --text-meta: 12.5px; --text-h1: 28px; --text-tile-value: 24px;
    --text-nav: 14.5px; --text-btn: 14px;
}
:root[data-text-size="large"] {
    --text-body: 16px; --text-meta: 14px; --text-h1: 32px; --text-tile-value: 27px;
    --text-nav: 16px; --text-btn: 15.5px;
}
:root[data-density="compact"] {
    --space-1: 3px; --space-2: 6px; --space-3: 9px; --space-4: 12px; --space-5: 18px;
    --space-6: 24px; --space-7: 36px;
    --radius: 11px; --radius-sm: 8px;
}
@media (prefers-reduced-motion: reduce) {
  :root:not([data-motion="full"]) { --motion-fast: 0ms; --motion-base: 0ms; --motion-slow: 0ms; }
}
:root[data-motion="reduced"] { --motion-fast: 0ms; --motion-base: 0ms; --motion-slow: 0ms; }
[data-motion="reduced"] *, [data-motion="reduced"] *::before, [data-motion="reduced"] *::after {
    animation-duration: .001ms !important; animation-iteration-count: 1 !important;
    transition-duration: .001ms !important; scroll-behavior: auto !important;
}
