/* Generated by scripts/build-theme.mjs from tokens/tokens.json
   (rhubain/tools-slow-kit-swift@18f1337981f13e371b19b22c3b997fb7a6b9c379). Never edit by hand. */

@font-face {
  font-family: "Roboto Flex";
  font-style: normal;
  font-display: swap;
  font-weight: 100 1000;
  src: url("../fonts/roboto-flex-latin-opsz-normal.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: "Roboto Flex";
  font-style: normal;
  font-display: swap;
  font-weight: 100 1000;
  src: url("../fonts/roboto-flex-latin-ext-opsz-normal.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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Roboto Mono";
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url("../fonts/roboto-mono-latin-400-normal.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: "Roboto Mono";
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url("../fonts/roboto-mono-latin-ext-400-normal.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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Material Symbols Rounded";
  font-style: normal;
  font-weight: 100 700;
  font-display: block;
  src: url("../fonts/material-symbols-rounded.woff2") format("woff2");
}
/* A symbol is never read as its name (ticket buffle-marin, Raphaël 2026-12-03: « je ne peux plus jamais voir ce bug au
   chargement de la page ou on voit les lettres bizarres »): `font-display: block` hides the name for 3 s only, then the
   browser writes « close », « refresh » in its serif while the 5.4 MB of symbols are still on their way. Slow Blank
   takes that place: 296 bytes in the sheet itself, ASCII drawn as nothing (fontTools' FontBuilder, a square for .notdef and an empty glyph,
   U+0020-007E on the empty one), so a symbol that is late is absent, whatever the time it takes. */
@font-face {
  font-family: "Slow Blank";
  src: url("data:font/woff2;base64,d09GMgABAAAAAAEoAAoAAAAAAzwAAADhAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAABmAAgXIKGDYBNgIkAwgLBgAEIAVpBywbngIgHgfuvg7xYv5EG9HX3taz+y4SYvks7IFLSq/Rpw0qJKOwIAyF/LrN6XV53sovguKRFARRgvBAWu7493ugoEVx+PQOLTqyNOTE2wLN4ghDCDS9Ydszj+LwKofkRt3IZorFgO6GOLPtplvc+AL4TDd0nCJKyzdqFmynCWdwUd9O74EGCkFhBigQKtlhjAEQhOf9pw8/6G/Z+y/83Gz+uWBI0DUQGhAM8AMJDGiCpkAWwKmyERBrBDQLa11qJU4dqTb7rhdw+XywPL3aYsbxiUcjbIsq7ZU6LhZNI202kwA=") format("woff2");
}

/* Type and symbols: Roboto Flex writes (fallback Roboto), Roboto Mono for
   figures that change, Material Symbols Rounded for every md-icon. */
:root {
  --md-ref-typeface-brand: "Roboto Flex", Roboto, sans-serif;
  --md-ref-typeface-plain: "Roboto Flex", Roboto, sans-serif;
  --slow-typeface-mono: "Roboto Mono", ui-monospace, monospace;
  --md-icon-font: "Material Symbols Rounded", "Slow Blank";
}

/* The one brass action of a screen: Material's primary FAB, filled with
   `primary` instead of `primary-container` (Rafa, 2026-10-13: one filled
   brass action per screen). Colours
   only, through Material Web's own component tokens. */
:root {
  --md-fab-primary-container-color: var(--md-sys-color-primary);
  --md-fab-primary-icon-color: var(--md-sys-color-on-primary);
  --md-fab-primary-label-text-color: var(--md-sys-color-on-primary);
  --md-fab-primary-hover-icon-color: var(--md-sys-color-on-primary);
  --md-fab-primary-hover-label-text-color: var(--md-sys-color-on-primary);
  --md-fab-primary-hover-state-layer-color: var(--md-sys-color-on-primary);
  --md-fab-primary-focus-icon-color: var(--md-sys-color-on-primary);
  --md-fab-primary-focus-label-text-color: var(--md-sys-color-on-primary);
  --md-fab-primary-pressed-icon-color: var(--md-sys-color-on-primary);
  --md-fab-primary-pressed-label-text-color: var(--md-sys-color-on-primary);
  --md-fab-primary-pressed-state-layer-color: var(--md-sys-color-on-primary);
}

/* A field's text in Body medium, 14 / 20, not Material's Body large, 16 / 24 (Raphaël, 2026-11-25, ticket harfang-volant:
   « j'ai l'impression qu'elle est géante », « option B »): the text typed and the resting label of every outlined text
   field and outlined select, through Material Web's own tokens. From 840 dp only: under it Safari on iPhone zooms into a
   field whose text is under 16. */
@media (min-width: 840px) {
  :root {
    --md-outlined-text-field-input-text-size: 14px;
    --md-outlined-text-field-input-text-line-height: 20px;
    --md-outlined-text-field-label-text-size: 14px;
    --md-outlined-text-field-label-text-line-height: 20px;
    --md-outlined-select-text-field-input-text-size: 14px;
    --md-outlined-select-text-field-input-text-line-height: 20px;
    --md-outlined-select-text-field-label-text-size: 14px;
    --md-outlined-select-text-field-label-text-line-height: 20px;
  }
}

/* A badge is red or it is not there (Raphaël, 2026-11-01, ticket carnet-ardent: « c'est rouge ou c'est pas la »):
   every md-badge, small or large, in the kit's red (--slow-anomaly), its count in on-error. Not the error role, which
   is the kit's ink. A count that would not call is not drawn at all. */
:root {
  --md-badge-color: var(--slow-anomaly);
  --md-badge-large-color: var(--slow-anomaly);
  --md-badge-large-label-text-color: var(--md-sys-color-on-error);
}
/* The same large badge in a list item's end slot (.segment-badge): md-badge (Material Web 2.5) is absolutely placed over
   an icon, so in a row's flow the kit draws it with md-badge's own tokens, large size 16 dp, corner full, label-small,
   its red and count colour; its right edge is the row's end, as the row's other end marks. Routine's conversations,
   Tickets' Inbox cards (ticket typhon-perle). */
.segment-badge { box-sizing: border-box; display: inline-flex; align-items: center; justify-content: center; height: 16px; min-width: 16px;
  padding: 0 4px; border-radius: 9999px; background: var(--md-badge-large-color); color: var(--md-badge-large-label-text-color);
  font: var(--md-sys-typescale-label-small-weight, 500) var(--md-sys-typescale-label-small-size, 11px) / var(--md-sys-typescale-label-small-line-height, 16px) var(--md-ref-typeface-plain); font-variant-numeric: tabular-nums; }
/* The one exception, the context of a session from 200k to 500k (ticket arbre-bleu, Raphaël 2026-11-02: « 200k noir /
   500k rouge »; theme/reply-bar.js contextChip `badgeTone`): black, Material's inverse-surface with inverse-on-surface
   (11.6:1 by day, 10.2:1 at night), through md-badge's own tokens; red from 500k like every badge. */
md-badge.badge-inverse {
  --md-badge-color: var(--md-sys-color-inverse-surface);
  --md-badge-large-color: var(--md-sys-color-inverse-surface);
  --md-badge-large-label-text-color: var(--md-sys-color-inverse-on-surface);
}

/* Day. */
:root {
  color-scheme: light;
  --md-sys-color-primary: #735A40;
  --md-sys-color-on-primary: #FEF9ED;
  --md-sys-color-primary-container: #F4E0C3;
  --md-sys-color-on-primary-container: #524530;
  --md-sys-color-inverse-primary: #CDA470;
  --md-sys-color-surface-tint: #735A40;
  --md-sys-color-secondary: #645E4F;
  --md-sys-color-on-secondary: #FFFFFF;
  --md-sys-color-secondary-container: #E6DCC9;
  --md-sys-color-on-secondary-container: #4C4639;
  --md-sys-color-tertiary: #645E4F;
  --md-sys-color-on-tertiary: #FFFFFF;
  --md-sys-color-tertiary-container: #E6DCC9;
  --md-sys-color-on-tertiary-container: #4C4639;
  --md-sys-color-error: #212019;
  --md-sys-color-on-error: #FEF9ED;
  --md-sys-color-error-container: #C8C3B9;
  --md-sys-color-on-error-container: #212019;
  --md-sys-color-background: #F2EDE2;
  --md-sys-color-on-background: #212019;
  --md-sys-color-surface: #F2EDE2;
  --md-sys-color-on-surface: #212019;
  --md-sys-color-surface-variant: #C8C3B9;
  --md-sys-color-on-surface-variant: #4B4639;
  --md-sys-color-surface-container-lowest: #FEF9ED;
  --md-sys-color-surface-container-low: #F2EDE2;
  --md-sys-color-surface-container: #E4DFD4;
  --md-sys-color-surface-container-high: #D6D1C6;
  --md-sys-color-surface-container-highest: #C8C3B9;
  --md-sys-color-surface-dim: #C8C3B9;
  --md-sys-color-surface-bright: #FEF9ED;
  --md-sys-color-inverse-surface: #323029;
  --md-sys-color-inverse-on-surface: #F5F0E5;
  --md-sys-color-outline: #706A5B;
  --md-sys-color-outline-variant: #CEC6B4;
  --slow-rest: #3C8E5E;
  --slow-overdue: #B8452D;
  --slow-anomaly: #B8452D;
  --slow-warning: #735A40;
}

/* Night, when the system asks for it and the page did not force day. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --md-sys-color-primary: #C89F6C;
    --md-sys-color-on-primary: #1D1C15;
    --md-sys-color-primary-container: #524530;
    --md-sys-color-on-primary-container: #F4E0C3;
    --md-sys-color-inverse-primary: #79582C;
    --md-sys-color-surface-tint: #C89F6C;
    --md-sys-color-secondary: #CFC5B4;
    --md-sys-color-on-secondary: #353024;
    --md-sys-color-secondary-container: #4C4639;
    --md-sys-color-on-secondary-container: #EBE1CF;
    --md-sys-color-tertiary: #CFC5B4;
    --md-sys-color-on-tertiary: #353024;
    --md-sys-color-tertiary-container: #4C4639;
    --md-sys-color-on-tertiary-container: #EBE1CF;
    --md-sys-color-error: #EDE8DD;
    --md-sys-color-on-error: #15130D;
    --md-sys-color-error-container: #424038;
    --md-sys-color-on-error-container: #EDE8DD;
    --md-sys-color-background: #212019;
    --md-sys-color-on-background: #EDE8DD;
    --md-sys-color-surface: #212019;
    --md-sys-color-on-surface: #EDE8DD;
    --md-sys-color-surface-variant: #424038;
    --md-sys-color-on-surface-variant: #CEC6B4;
    --md-sys-color-surface-container-lowest: #15130D;
    --md-sys-color-surface-container-low: #212019;
    --md-sys-color-surface-container: #2B2A23;
    --md-sys-color-surface-container-high: #36352D;
    --md-sys-color-surface-container-highest: #424038;
    --md-sys-color-surface-dim: #15130D;
    --md-sys-color-surface-bright: #424038;
    --md-sys-color-inverse-surface: #E7E2D7;
    --md-sys-color-inverse-on-surface: #323029;
    --md-sys-color-outline: #979080;
    --md-sys-color-outline-variant: #4B4639;
    --slow-rest: #76AE89;
    --slow-overdue: #E8876C;
    --slow-anomaly: #E8876C;
    --slow-warning: #C89F6C;
  }
}

/* Night, forced by the page. */
:root[data-theme="dark"] {
  color-scheme: dark;
  --md-sys-color-primary: #C89F6C;
  --md-sys-color-on-primary: #1D1C15;
  --md-sys-color-primary-container: #524530;
  --md-sys-color-on-primary-container: #F4E0C3;
  --md-sys-color-inverse-primary: #79582C;
  --md-sys-color-surface-tint: #C89F6C;
  --md-sys-color-secondary: #CFC5B4;
  --md-sys-color-on-secondary: #353024;
  --md-sys-color-secondary-container: #4C4639;
  --md-sys-color-on-secondary-container: #EBE1CF;
  --md-sys-color-tertiary: #CFC5B4;
  --md-sys-color-on-tertiary: #353024;
  --md-sys-color-tertiary-container: #4C4639;
  --md-sys-color-on-tertiary-container: #EBE1CF;
  --md-sys-color-error: #EDE8DD;
  --md-sys-color-on-error: #15130D;
  --md-sys-color-error-container: #424038;
  --md-sys-color-on-error-container: #EDE8DD;
  --md-sys-color-background: #212019;
  --md-sys-color-on-background: #EDE8DD;
  --md-sys-color-surface: #212019;
  --md-sys-color-on-surface: #EDE8DD;
  --md-sys-color-surface-variant: #424038;
  --md-sys-color-on-surface-variant: #CEC6B4;
  --md-sys-color-surface-container-lowest: #15130D;
  --md-sys-color-surface-container-low: #212019;
  --md-sys-color-surface-container: #2B2A23;
  --md-sys-color-surface-container-high: #36352D;
  --md-sys-color-surface-container-highest: #424038;
  --md-sys-color-surface-dim: #15130D;
  --md-sys-color-surface-bright: #424038;
  --md-sys-color-inverse-surface: #E7E2D7;
  --md-sys-color-inverse-on-surface: #323029;
  --md-sys-color-outline: #979080;
  --md-sys-color-outline-variant: #4B4639;
  --slow-rest: #76AE89;
  --slow-overdue: #E8876C;
  --slow-anomaly: #E8876C;
  --slow-warning: #C89F6C;
}
