/* Bureau — design tokens for Agent Office.
 * GENERATED by design/scripts/build-tokens.mjs from design/tokens.json. Do not edit by hand. */
/* Fonts: SIL Open Font License 1.1, see fonts/OFL-*.txt. Variable weights 400–700, one file per subset. */
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url("fonts/inter-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url("fonts/inter-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url("fonts/jetbrains-mono-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url("fonts/jetbrains-mono-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Sora"; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url("fonts/sora-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Sora"; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url("fonts/sora-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  /* type families */
  --bu-font-display: "Sora", "Inter", system-ui, sans-serif;
  --bu-font-sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --bu-font-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
  /* type roles: --bu-type-<style> is a `font` shorthand; size/line/weight are also exposed */
  --bu-type-display-lg: 600 40px/48px var(--bu-font-display);
  --bu-type-display-lg-size: 40px;
  --bu-type-display-lg-line: 48px;
  --bu-type-display-lg-weight: 600;
  --bu-type-display: 600 32px/40px var(--bu-font-display);
  --bu-type-display-size: 32px;
  --bu-type-display-line: 40px;
  --bu-type-display-weight: 600;
  --bu-type-title-lg: 600 24px/32px var(--bu-font-display);
  --bu-type-title-lg-size: 24px;
  --bu-type-title-lg-line: 32px;
  --bu-type-title-lg-weight: 600;
  --bu-type-title: 600 20px/28px var(--bu-font-display);
  --bu-type-title-size: 20px;
  --bu-type-title-line: 28px;
  --bu-type-title-weight: 600;
  --bu-type-ed-lead: 600 44px/52px var(--bu-font-display);
  --bu-type-ed-lead-size: 44px;
  --bu-type-ed-lead-line: 52px;
  --bu-type-ed-lead-weight: 600;
  --bu-type-ed-lead-sm: 600 32px/40px var(--bu-font-display);
  --bu-type-ed-lead-sm-size: 32px;
  --bu-type-ed-lead-sm-line: 40px;
  --bu-type-ed-lead-sm-weight: 600;
  --bu-type-ed-standfirst: 400 17px/30px var(--bu-font-sans);
  --bu-type-ed-standfirst-size: 17px;
  --bu-type-ed-standfirst-line: 30px;
  --bu-type-ed-standfirst-weight: 400;
  --bu-type-ed-prose: 400 16px/28px var(--bu-font-sans);
  --bu-type-ed-prose-size: 16px;
  --bu-type-ed-prose-line: 28px;
  --bu-type-ed-prose-weight: 400;
  --bu-type-heading: 600 16px/24px var(--bu-font-sans);
  --bu-type-heading-size: 16px;
  --bu-type-heading-line: 24px;
  --bu-type-heading-weight: 600;
  --bu-type-heading-sm: 600 14px/20px var(--bu-font-sans);
  --bu-type-heading-sm-size: 14px;
  --bu-type-heading-sm-line: 20px;
  --bu-type-heading-sm-weight: 600;
  --bu-type-body-lg: 400 16px/24px var(--bu-font-sans);
  --bu-type-body-lg-size: 16px;
  --bu-type-body-lg-line: 24px;
  --bu-type-body-lg-weight: 400;
  --bu-type-body: 400 14px/20px var(--bu-font-sans);
  --bu-type-body-size: 14px;
  --bu-type-body-line: 20px;
  --bu-type-body-weight: 400;
  --bu-type-body-sm: 400 13px/18px var(--bu-font-sans);
  --bu-type-body-sm-size: 13px;
  --bu-type-body-sm-line: 18px;
  --bu-type-body-sm-weight: 400;
  --bu-type-label: 600 12px/16px var(--bu-font-sans);
  --bu-type-label-size: 12px;
  --bu-type-label-line: 16px;
  --bu-type-label-weight: 600;
  --bu-type-label-sm: 600 11px/14px var(--bu-font-sans);
  --bu-type-label-sm-size: 11px;
  --bu-type-label-sm-line: 14px;
  --bu-type-label-sm-weight: 600;
  --bu-type-caption: 400 12px/16px var(--bu-font-sans);
  --bu-type-caption-size: 12px;
  --bu-type-caption-line: 16px;
  --bu-type-caption-weight: 400;
  --bu-type-mono: 400 13px/20px var(--bu-font-mono);
  --bu-type-mono-size: 13px;
  --bu-type-mono-line: 20px;
  --bu-type-mono-weight: 400;
  --bu-type-mono-sm: 400 12px/16px var(--bu-font-mono);
  --bu-type-mono-sm-size: 12px;
  --bu-type-mono-sm-line: 16px;
  --bu-type-mono-sm-weight: 400;
  --bu-type-ed-folio: 400 48px/56px var(--bu-font-mono);
  --bu-type-ed-folio-size: 48px;
  --bu-type-ed-folio-line: 56px;
  --bu-type-ed-folio-weight: 400;
  --bu-tracking-label: 0.04em; /* uppercase label/eyebrow tracking */
  --bu-tracking-display: -0.01em; /* Sora display/title tracking */
  /* spacing */
  --bu-space-0: 0px; /* No gap. */
  --bu-space-0-5: 2px; /* Hairline offsets: gap between stacked nav items, icon nudges. */
  --bu-space-1: 4px; /* Tightest gap: icon ↔ text inside chips, label ↔ value in tiles. */
  --bu-space-2: 8px; /* Default inline gap: button icon, chip groups, list row inner gaps. */
  --bu-space-3: 12px; /* Card grid gap; field ↔ field in compact forms; row horizontal padding. */
  --bu-space-4: 16px; /* Card padding; mobile page gutter; section gap inside a card. */
  --bu-space-5: 20px; /* Modal padding; gap between a header and its content. */
  --bu-space-6: 24px; /* Desktop page gutter; gap between page sections. */
  --bu-space-8: 32px; /* Large section separation; empty-state padding. */
  --bu-space-10: 40px; /* Login panel padding; hero spacing. */
  --bu-space-12: 48px; /* Login split gutters on desktop. */
  --bu-space-16: 64px; /* Largest gap: empty-state illustration margin, cover page. */
  --bu-size-control-sm: 32px; /* Height of small controls (segmented, compact buttons, search in toolbars). */
  --bu-size-control: 40px; /* Default height of buttons, inputs and selects. */
  --bu-size-control-lg: 48px; /* Large buttons (login submit, mobile primary actions). */
  --bu-size-touch: 44px; /* Minimum touch target on mobile; icon buttons grow to this under 820px. */
  --bu-size-sidebar: 248px; /* Desktop sidebar width. */
  --bu-size-topbar: 56px; /* Desktop and mobile top bar height (excluding safe-area inset). */
  --bu-size-bottombar: 64px; /* Mobile bottom navigation height (excluding safe-area inset). */
  --bu-size-aside: 360px; /* Bureau right panel (roster + tabs) and the desktop drawer width. */
  --bu-size-kanban-column: 296px; /* Width of a Projets board column (cards stack inside). */
  --bu-size-repo-thumb: 160px; /* Height of the repo preview image in a project card (16:9 crop, full card width). */
  --bu-size-content: 1120px; /* Max width of detail pages (task, skill, log, interlocutor). */
  --bu-size-prose: 760px; /* Max line length for descriptions, chat column and markdown. */
  --bu-breakpoint-mobile: 820px; /* Mobile layout below this width (bottom bar, stacked layouts). */
  --bu-size-ed-page: 1136px; /* Editorial pages (Bulletin, Carnet, Feuillet): maximum content width, folio + reading colum */
  --bu-size-ed-folio: 72px; /* Editorial folio column: section number or date folio left of the reading column. */
  --bu-size-ed-margin: 248px; /* Editorial margin column: one margin note per article (secondary fact, evidence link). */
  --bu-size-ed-measure: 680px; /* Editorial reading measure: maximum width of a lead headline or a prose paragraph. */
  --bu-size-rule-section: 2px; /* Strong neutral rule above an editorial section (text-primary colour). */
  --bu-size-rule-masthead: 3px; /* The masthead rule under an editorial page title (text-primary colour). */
  /* radius */
  --bu-radius-none: 0px; /* Square edges: table cells, full-bleed media. */
  --bu-radius-xs: 4px; /* Inline code, kbd, small count badges, timeline bars. */
  --bu-radius-control: 8px; /* Buttons, inputs, selects, segmented controls, icon tiles under 40px. */
  --bu-radius-card: 12px; /* Cards, stat tiles, list containers, code blocks, chat bubbles. */
  --bu-radius-panel: 16px; /* Modals, drawers, the office stage, login panel. */
  --bu-radius-pill: 999px; /* Status chips, agent-state badges, live pill, avatars, switch tracks. */
  /* shadow */
  --bu-shadow-none: none; /* Flat: default for cards in dark mode (elevation comes from surface steps + borders). */
  --bu-shadow-1: 0 1px 2px rgba(16,18,24,0.06), 0 1px 1px rgba(16,18,24,0.04); /* Resting cards and tiles in light mode. */
  --bu-shadow-2: 0 4px 12px rgba(16,18,24,0.08), 0 1px 3px rgba(16,18,24,0.06); /* Hovered interactive cards, dropdowns, popovers. */
  --bu-shadow-3: 0 16px 40px rgba(5,7,10,0.28), 0 4px 12px rgba(5,7,10,0.12); /* Modals, drawers, toasts — the only shadow strong enough to read on dark. */
  /* z-index */
  --bu-z-base: 0; /* Normal flow. */
  --bu-z-raised: 10; /* Sticky table headers, office labels above the canvas. */
  --bu-z-sticky: 100; /* Sticky page headers and filter asides. */
  --bu-z-nav: 200; /* Sidebar, top bar and mobile bottom bar. */
  --bu-z-drawer: 300; /* Drawers and their scrim. */
  --bu-z-modal: 400; /* Modal dialogs and their scrim. */
  --bu-z-toast: 500; /* Toasts: above modals so mutation feedback is always visible. */
  --bu-z-tooltip: 600; /* Tooltips: topmost. */
  /* motion (see README § Mouvement) */
  --bu-duration-instant: 80ms; /* Hover, focus, press feedback. */
  --bu-duration-fast: 140ms; /* Chips, toggles, tabs, small fades. */
  --bu-duration-base: 220ms; /* Drawers, toasts, accordions, card hover. */
  --bu-duration-slow: 360ms; /* Modals, page-level crossfades, office camera moves. */
  --bu-ease-standard: cubic-bezier(0.2, 0, 0, 1); /* Default for anything that moves or changes on screen. */
  --bu-ease-enter: cubic-bezier(0.05, 0.7, 0.1, 1); /* Elements arriving: toasts, drawers, modals. */
  --bu-ease-exit: cubic-bezier(0.3, 0, 0.8, 0.15); /* Elements leaving; pair with a shorter duration. */
  --bu-ease-linear: linear; /* Progress bars, spinners, the live pulse. */
}

/* colour — dark is the default theme */
:root,
[data-theme="dark"] {
  color-scheme: dark;
  --bu-bg: #0E1117;
  --bu-bg-sunken: #0A0C10;
  --bu-surface: #151922;
  --bu-surface-raised: #1C212B;
  --bu-surface-overlay: #232936;
  --bu-surface-hover: #262C38;
  --bu-surface-selected: #1F2148;
  --bu-border-subtle: #252B36;
  --bu-border-default: #313847;
  --bu-border-strong: #475063;
  --bu-border-control: #687284;
  --bu-text-primary: #E9ECF2;
  --bu-text-secondary: #AEB5C2;
  --bu-text-tertiary: #8D95A5;
  --bu-text-disabled: #5C6474;
  --bu-text-inverse: #0E1117;
  --bu-text-on-accent: #FFFFFF;
  --bu-accent: #5F5FF7;
  --bu-accent-hover: #4F4FEA;
  --bu-accent-pressed: #4343D6;
  --bu-accent-text: #9C9CFF;
  --bu-accent-subtle: #1F2148;
  --bu-accent-border: #4747B8;
  --bu-focus-ring: #8C8CFF;
  --bu-scrim: #05070A;
  --bu-success: #4ADB98;
  --bu-success-bg: #1C3433;
  --bu-success-border: #2A6751;
  --bu-warning: #F2B33D;
  --bu-warning-bg: #342F26;
  --bu-warning-border: #6D572D;
  --bu-danger: #F2645A;
  --bu-danger-bg: #34242A;
  --bu-danger-border: #6D3738;
  --bu-info: #5EA2FF;
  --bu-info-bg: #1F2C41;
  --bu-info-border: #32507A;
  --bu-danger-fill: #D13A30;
  --bu-state-idle: #8E97A8;
  --bu-state-idle-bg: #262B35;
  --bu-state-thinking: #A98BFF;
  --bu-state-thinking-bg: #2A2941;
  --bu-state-working: #4ADB98;
  --bu-state-working-bg: #1C3433;
  --bu-state-researching: #2EC2D2;
  --bu-state-researching-bg: #19313B;
  --bu-state-writing: #F08BC0;
  --bu-state-writing-bg: #342938;
  --bu-state-calling: #5EA2FF;
  --bu-state-calling-bg: #1F2C41;
  --bu-state-waiting: #F2B33D;
  --bu-state-waiting-bg: #342F26;
  --bu-state-error: #F2645A;
  --bu-state-error-bg: #34242A;
  --bu-state-offline: #6B7385;
  --bu-state-offline-bg: #212630;
  --bu-label-slate: #A3ADBF;
  --bu-label-slate-bg: #292E38;
  --bu-label-indigo: #A5A5FF;
  --bu-label-indigo-bg: #292D41;
  --bu-label-teal: #4FD1DC;
  --bu-label-teal-bg: #1D333C;
  --bu-label-amber: #F2BE5C;
  --bu-label-amber-bg: #34302A;
  --bu-label-rose: #F58FB8;
  --bu-label-rose-bg: #342A37;
  --bu-label-green: #6CDB9F;
  --bu-label-green-bg: #213434;
}

@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    color-scheme: light;
    --bu-bg: #F5F4F0;
    --bu-bg-sunken: #ECEAE4;
    --bu-surface: #FFFFFF;
    --bu-surface-raised: #FAF9F6;
    --bu-surface-overlay: #FFFFFF;
    --bu-surface-hover: #F0EEE9;
    --bu-surface-selected: #ECECFD;
    --bu-border-subtle: #E6E3DC;
    --bu-border-default: #D6D2C9;
    --bu-border-strong: #B9B4A9;
    --bu-border-control: #8A857B;
    --bu-text-primary: #16181D;
    --bu-text-secondary: #474D59;
    --bu-text-tertiary: #606775;
    --bu-text-disabled: #A3A7AF;
    --bu-text-inverse: #FFFFFF;
    --bu-text-on-accent: #FFFFFF;
    --bu-accent: #4B4BE3;
    --bu-accent-hover: #3F3FD0;
    --bu-accent-pressed: #3535B8;
    --bu-accent-text: #4141D8;
    --bu-accent-subtle: #ECECFD;
    --bu-accent-border: #B9B9F5;
    --bu-focus-ring: #4B4BE3;
    --bu-scrim: #16181D;
    --bu-success: #0B6139;
    --bu-success-bg: #E7EFEB;
    --bu-success-border: #AAC8BA;
    --bu-warning: #6E4A00;
    --bu-warning-bg: #F1EDE6;
    --bu-warning-border: #CCC0A6;
    --bu-danger: #C2322A;
    --bu-danger-bg: #F9EBEA;
    --bu-danger-border: #EAB7B4;
    --bu-info: #2463C9;
    --bu-info-bg: #E9EFFA;
    --bu-info-border: #B2C8EC;
    --bu-danger-fill: #C2322A;
    --bu-state-idle: #646C7C;
    --bu-state-idle-bg: #F0F0F2;
    --bu-state-thinking: #7650E0;
    --bu-state-thinking-bg: #F1EEFC;
    --bu-state-working: #0B6139;
    --bu-state-working-bg: #E7EFEB;
    --bu-state-researching: #0C7682;
    --bu-state-researching-bg: #E7F1F3;
    --bu-state-writing: #B03A78;
    --bu-state-writing-bg: #F7EBF2;
    --bu-state-calling: #2463C9;
    --bu-state-calling-bg: #E9EFFA;
    --bu-state-waiting: #6E4A00;
    --bu-state-waiting-bg: #F1EDE6;
    --bu-state-error: #C2322A;
    --bu-state-error-bg: #F9EBEA;
    --bu-state-offline: #848A95;
    --bu-state-offline-bg: #F3F3F4;
    --bu-label-slate: #4F5869;
    --bu-label-slate-bg: #EDEEF0;
    --bu-label-indigo: #4747D1;
    --bu-label-indigo-bg: #EDEDFA;
    --bu-label-teal: #0B6E78;
    --bu-label-teal-bg: #E7F1F2;
    --bu-label-amber: #7A5300;
    --bu-label-amber-bg: #F2EEE6;
    --bu-label-rose: #A8336A;
    --bu-label-rose-bg: #F6EBF0;
    --bu-label-green: #0D6A3D;
    --bu-label-green-bg: #E7F0EC;
  }
}

[data-theme="light"] {
  color-scheme: light;
  --bu-bg: #F5F4F0;
  --bu-bg-sunken: #ECEAE4;
  --bu-surface: #FFFFFF;
  --bu-surface-raised: #FAF9F6;
  --bu-surface-overlay: #FFFFFF;
  --bu-surface-hover: #F0EEE9;
  --bu-surface-selected: #ECECFD;
  --bu-border-subtle: #E6E3DC;
  --bu-border-default: #D6D2C9;
  --bu-border-strong: #B9B4A9;
  --bu-border-control: #8A857B;
  --bu-text-primary: #16181D;
  --bu-text-secondary: #474D59;
  --bu-text-tertiary: #606775;
  --bu-text-disabled: #A3A7AF;
  --bu-text-inverse: #FFFFFF;
  --bu-text-on-accent: #FFFFFF;
  --bu-accent: #4B4BE3;
  --bu-accent-hover: #3F3FD0;
  --bu-accent-pressed: #3535B8;
  --bu-accent-text: #4141D8;
  --bu-accent-subtle: #ECECFD;
  --bu-accent-border: #B9B9F5;
  --bu-focus-ring: #4B4BE3;
  --bu-scrim: #16181D;
  --bu-success: #0B6139;
  --bu-success-bg: #E7EFEB;
  --bu-success-border: #AAC8BA;
  --bu-warning: #6E4A00;
  --bu-warning-bg: #F1EDE6;
  --bu-warning-border: #CCC0A6;
  --bu-danger: #C2322A;
  --bu-danger-bg: #F9EBEA;
  --bu-danger-border: #EAB7B4;
  --bu-info: #2463C9;
  --bu-info-bg: #E9EFFA;
  --bu-info-border: #B2C8EC;
  --bu-danger-fill: #C2322A;
  --bu-state-idle: #646C7C;
  --bu-state-idle-bg: #F0F0F2;
  --bu-state-thinking: #7650E0;
  --bu-state-thinking-bg: #F1EEFC;
  --bu-state-working: #0B6139;
  --bu-state-working-bg: #E7EFEB;
  --bu-state-researching: #0C7682;
  --bu-state-researching-bg: #E7F1F3;
  --bu-state-writing: #B03A78;
  --bu-state-writing-bg: #F7EBF2;
  --bu-state-calling: #2463C9;
  --bu-state-calling-bg: #E9EFFA;
  --bu-state-waiting: #6E4A00;
  --bu-state-waiting-bg: #F1EDE6;
  --bu-state-error: #C2322A;
  --bu-state-error-bg: #F9EBEA;
  --bu-state-offline: #848A95;
  --bu-state-offline-bg: #F3F3F4;
  --bu-label-slate: #4F5869;
  --bu-label-slate-bg: #EDEEF0;
  --bu-label-indigo: #4747D1;
  --bu-label-indigo-bg: #EDEDFA;
  --bu-label-teal: #0B6E78;
  --bu-label-teal-bg: #E7F1F2;
  --bu-label-amber: #7A5300;
  --bu-label-amber-bg: #F2EEE6;
  --bu-label-rose: #A8336A;
  --bu-label-rose-bg: #F6EBF0;
  --bu-label-green: #0D6A3D;
  --bu-label-green-bg: #E7F0EC;
}

@media (prefers-reduced-motion: reduce) {
  :root {
    --bu-duration-instant: 0.01ms;
    --bu-duration-fast: 0.01ms;
    --bu-duration-base: 0.01ms;
    --bu-duration-slow: 0.01ms;
  }
}
