/*
 * Design-system tokens: the Brikks Design System of the wireframes artifact of the product.
 * 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 {
    /* Brikks Néon, as the wireframes artifact of the product applies it (project/ob.css). */
    --surface: #ffffff;
    --surface-raised: #ffffff;
    --surface-sunken: #f4f5f7;
    --line: #e7e8ee;
    --line-strong: #8c8174;
    --ink: #1b1813;
    --ink-muted: #5e564b;
    --ink-faint: #8c8174;
    --brand: #0e8f52;
    --brand-hover: #0b7a45;
    --on-brand: #ffffff;
    --brand-soft: #d4f2e3;
    --brand-ink: #0b5c30;
    /* The lime signal: validated, delivered, automatic; the active entry of the sidebar. */
    --signal: #e9ff35;
    --signal-soft: #f6ffb8;
    /* The dark surface of the sidebar, in both themes. */
    --srf: #0e1411;
    --on-srf: #f1ece2;
    --ai-start: #7f56d9;
    --ai-end: #f97316;
    --ai-end-strong: #c2410c;
    --on-ai: #ffffff;
    --ai-ink: #5a3db8;
    --ai-soft-start: #efe9fb;
    --ai-soft-end: #ffedd5;
    --success: #0b5c30;
    --success-soft: #d4f2e3;
    --warning: #8a3f05;
    --warning-soft: #ffe7d1;
    --danger: #b3114f;
    --danger-soft: #ffd6ea;
    --info: #153f8f;
    --info-soft: #dde8fb;
    --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 8px 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-btn: 12px;
    --radius-lg: 16px;
    --radius-pill: 999px;

    /* Font families: Fontsource names, then the fallback stacks */
    --font-display: "Bricolage Grotesque Variable", "Helvetica Neue", Arial, sans-serif;
    --font-sans: "Onest Variable", system-ui, -apple-system, sans-serif;
    --font-mono: "Space Mono", Menlo, Consolas, monospace;
}

[data-bs-theme="dark"] {
    --surface: #121a16;
    --surface-raised: #1a2420;
    --surface-sunken: #0c1310;
    --line: #2b3730;
    --line-strong: #6b7b70;
    --ink: #f0efe7;
    --ink-muted: #b3bbb3;
    --ink-faint: #7e877f;
    --brand: #3fc488;
    --brand-hover: #5fd49e;
    --on-brand: #0c1310;
    --brand-soft: #163b2c;
    --brand-ink: #8fe3b8;
    --signal-soft: #2c3309;
    --ai-start: #9e77ed;
    --ai-end: #f97316;
    --ai-end-strong: #f97316;
    --on-ai: #0c1310;
    --ai-ink: #c4b5fd;
    --ai-soft-start: #251d38;
    --ai-soft-end: #33221a;
    --success: #8ddc7c;
    --success-soft: #1e3b1f;
    --warning: #f9d460;
    --warning-soft: #463600;
    --danger: #ff7ab4;
    --danger-soft: #3f1428;
    --info: #86b4e2;
    --info-soft: #1a2b3c;
    --overlay: #000000b3;
    --shadow-sm: 0 1px 2px #00000066;
    --shadow-md: 0 8px 24px #00000099;
}
