/*
 * Design-system tokens (docs/charte/tokens.json).
 * Light theme on the root element, dark theme on <html> or on a band that carries data-bs-theme="dark".
 * Two blocks rather than light-dark(): Tabler recomputes its shades on the element that
 * declares the base color, and a relative color built on light-dark() is not verified.
 * Every color of the application comes from here; no other file writes a color literal.
 */
:root {
    --surface: #f4f4f5;
    --surface-raised: #ffffff;
    --surface-sunken: #e9e9eb;
    --line: #e2e2e5;
    --line-strong: #8c8c92;
    --ink: #1b1813;
    --ink-muted: #626266;
    --ink-faint: #929297;
    --brand: #0a6e3f;
    --brand-hover: #085832;
    --on-brand: #ffffff;
    --brand-soft: #e6f4ec;
    --action: #e9ff35;
    --on-action: #1b1813;
    --act: #ff2e88;
    --side: #0b2a1e;
    --ai-start: #7f56d9;
    --ai-end: #ea580c;
    --ai-end-strong: #c2410c;
    --on-ai: #ffffff;
    --ai-ink: #5b3cc4;
    --ai-soft-start: #f3eefc;
    --ai-soft-end: #fdf0e6;
    --success: #0a6e3f;
    --success-soft: #ddf3e6;
    --warning: #7a5200;
    --warning-soft: #fff0b8;
    --danger: #b42318;
    --danger-soft: #fde2de;
    --info: #1264a3;
    --info-soft: #e3eff8;
    --cat-client: var(--info);
    --cat-ai: var(--ai-start);
    --cat-expert: var(--brand);
    --focus: var(--brand);
    --overlay: #1b1813a6;
    --shadow-sm: 0 1px 2px #1b181314;
    --shadow-md: 0 4px 24px #1b18131f;

    /* Spacing, 4px grid */
    --space-1: 4px;
    --space-2: 8px;
    --space-3: 12px;
    --space-4: 16px;
    --space-5: 24px;
    --space-6: 32px;
    --space-7: 48px;
    --space-8: 64px;

    /* Radii */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 10px;
    --radius-pill: 999px;

    /* Font families: Fontsource names, then the fallback stacks */
    --font-display: "Bricolage Grotesque Variable", "Helvetica Neue", Arial, sans-serif;
    --font-sans: "Instrument Sans Variable", "Helvetica Neue", Arial, sans-serif;
    --font-mono: "DM Mono", Menlo, Consolas, monospace;
}

[data-bs-theme="dark"] {
    --surface: #151412;
    --surface-raised: #1f1e1b;
    --surface-sunken: #0e0d0c;
    --line: #2f2e2a;
    --line-strong: #77766f;
    --ink: #f4f4f5;
    --ink-muted: #b5b5b9;
    --ink-faint: #808085;
    --brand: #4bae87;
    --brand-hover: #66c7a0;
    --on-brand: #0e0d0c;
    --brand-soft: #163b2c;
    --ai-start: #9e77ed;
    --ai-end: #f97316;
    --ai-end-strong: #f97316;
    --on-ai: #0e0d0c;
    --ai-ink: #c4b5fd;
    --ai-soft-start: #251d38;
    --ai-soft-end: #33221a;
    --success: #8ddc7c;
    --success-soft: #1e3b1f;
    --warning: #f9d460;
    --warning-soft: #463600;
    --danger: #ef8a7e;
    --danger-soft: #3f1d19;
    --info: #86b4e2;
    --info-soft: #1a2b3c;
    --overlay: #000000b3;
    --shadow-sm: 0 1px 2px #00000066;
    --shadow-md: 0 8px 24px #00000099;
}
