/* =====================================================================================
   PieceDesk « Ardoise » : design tokens, the single source of truth (2026-10-24).
   Read DIRECTION.md first. Every colour that a page or a screen uses lives here and
   only here (rule S11): components read ROLE tokens (--site-*, --app-*, --paper-*),
   never the primitives (--pd-ink, --pd-l-*, ...) and never a raw hex.

   Scopes
   - .pd-site            the public site, in two themes of equal rank (DIRECTION.md 0 and 3.2):
                         dark « sur l'encre » and light « au jour ». The theme is an attribute on <html>
                         (in the markup as data-theme="light", then set before first paint by the page's head
                         snippet: ?theme=, then the visitor's choice in localStorage "pd-theme", then light;
                         the system's preference is not read, 2026-10-26), or on a .pd-site element itself
                         (.pd-site[data-theme="light" | "dark"], for a panel in the kit). Without script the
                         site is light.
   - .pd-app             the software, light by default (rule S1).
   - .pd-app[data-theme="dark"]    the software's dark theme, by the person's choice only.
   - .pd-paper           documents (quote, invoice, QR-bill, receipt): white in every theme.
   A software frame shown on the site carries .pd-app inside .pd-site; nothing leaks.

   Font files: brand/fonts/ (static cuts, no variable font: Playwright WebKit drew the first text face's
   variable file with collided letters, and draws a variable Source Sans 3 at one weight). Paths below are
   relative to this file; copy the folder next to your build and keep the names.
   Contrast of every text pair is measured in DIRECTION.md section 3.4.
   ===================================================================================== */

/* Source Sans 3 (Adobe, SIL OFL 1.1), chosen by Youssef on 2026-10-26 for a more corporate, easier to read
   type. Static cuts (400, 500, 600, 700), cut from Google's variable font by fontTools: Playwright WebKit
   ignores a variable font's weight axis and draws every weight thin (the same trap as the first text face's
   variable file). Two subsets each (latin, latin-ext), self-hosted. It has no U+202F (narrow no-break space): site.css
   and app.css section 00 keep the local Arial faces for that one character. The roles keep their names, so no
   page changes: display and title are the same face at 600 and 700. */
/* Each latin-ext face is declared before its latin face (Google's order): for a character both ranges cover (U+0304, U+0308,
   U+0329), the face declared last is tried first, so the latin file a page already loads draws it. The ranges match the files
   (fontTools, 2026-10-27): the latin-ext files have no U+0152-0153 (the « œ » of « Main-d’œuvre »), the latin files no U+2020.
   So no page fetches a latin-ext file unless it draws a real latin-ext character. */
@font-face { font-family: "PD Text"; src: url("brand/fonts/source-sans-3-400-latin-ext.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; unicode-range: U+0100-0151, U+0154-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: "PD Text"; src: url("brand/fonts/source-sans-3-400-latin.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; 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-201F, U+2021-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "PD Text"; src: url("brand/fonts/source-sans-3-500-latin-ext.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; unicode-range: U+0100-0151, U+0154-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: "PD Text"; src: url("brand/fonts/source-sans-3-500-latin.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; 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-201F, U+2021-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "PD Text"; src: url("brand/fonts/source-sans-3-600-latin-ext.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; unicode-range: U+0100-0151, U+0154-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: "PD Text"; src: url("brand/fonts/source-sans-3-600-latin.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; 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-201F, U+2021-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "PD Text"; src: url("brand/fonts/source-sans-3-700-latin-ext.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; unicode-range: U+0100-0151, U+0154-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: "PD Text"; src: url("brand/fonts/source-sans-3-700-latin.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; 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-201F, U+2021-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "PD Display"; src: url("brand/fonts/source-sans-3-600-latin-ext.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; unicode-range: U+0100-0151, U+0154-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: "PD Display"; src: url("brand/fonts/source-sans-3-600-latin.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; 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-201F, U+2021-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "PD Display"; src: url("brand/fonts/source-sans-3-700-latin-ext.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; unicode-range: U+0100-0151, U+0154-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: "PD Display"; src: url("brand/fonts/source-sans-3-700-latin.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; 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-201F, U+2021-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "PD Title"; src: url("brand/fonts/source-sans-3-600-latin-ext.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; unicode-range: U+0100-0151, U+0154-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: "PD Title"; src: url("brand/fonts/source-sans-3-600-latin.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; 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-201F, U+2021-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "PD Title"; src: url("brand/fonts/source-sans-3-700-latin-ext.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; unicode-range: U+0100-0151, U+0154-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: "PD Title"; src: url("brand/fonts/source-sans-3-700-latin.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; 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-201F, U+2021-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "PD Mono";    src: url("brand/fonts/fragment-mono-400.woff2") format("woff2");               font-weight: 400; font-style: normal; font-display: swap; }
/* The site's safety net (2026-10-27, loading spec 2.4 F3): a local face laid out with Source Sans 3's metrics (size-adjust from
   the advance widths of a sample of the site's words, the overrides from its ascent 1.024 and descent 0.400 over that
   adjustment), so a text drawn before its file arrives (only after the 6 s failsafe: the gate waits for the faces) takes the
   same lines and moves nothing when the file swaps in. Definitions only: the site's stacks name them (site.css .pd-site), the
   software's stacks do not change. Mono: Fragment Mono's advance (0.618) over Courier New's (0.600), its ascent 0.95 and
   descent 0.25 over that. */
@font-face { font-family: "PD Fallback"; src: local("Arial"), local("ArialMT"), local("Liberation Sans"), local("Arimo"); font-weight: 400; font-style: normal; size-adjust: 93.04%; ascent-override: 110.06%; descent-override: 42.99%; line-gap-override: 0%; }
@font-face { font-family: "PD Fallback"; src: local("Arial"), local("ArialMT"), local("Liberation Sans"), local("Arimo"); font-weight: 500; font-style: normal; size-adjust: 94.41%; ascent-override: 108.47%; descent-override: 42.37%; line-gap-override: 0%; }
@font-face { font-family: "PD Fallback"; src: local("Arial Bold"), local("Arial-BoldMT"), local("Liberation Sans Bold"), local("Arimo Bold"); font-weight: 600; font-style: normal; size-adjust: 89.41%; ascent-override: 114.53%; descent-override: 44.74%; line-gap-override: 0%; }
@font-face { font-family: "PD Fallback"; src: local("Arial Bold"), local("Arial-BoldMT"), local("Liberation Sans Bold"), local("Arimo Bold"); font-weight: 700; font-style: normal; size-adjust: 91.85%; ascent-override: 111.49%; descent-override: 43.55%; line-gap-override: 0%; }
@font-face { font-family: "PD Mono Fallback"; src: local("Courier New"), local("CourierNewPSMT"), local("Consolas"), local("Menlo"); font-weight: 400; font-style: normal; size-adjust: 102.98%; ascent-override: 92.25%; descent-override: 24.28%; line-gap-override: 0%; }

:root {
  /* ---------- 1. Primitives: the ramp, as given (never used directly by components) */
  --pd-ink:   #111218;
  --pd-deep:  #1B2024;
  --pd-slate: #32353C;
  --pd-steel: #565A61;
  --pd-mist:  #A2A6AC;
  --pd-fog:   #CECFD3;
  --pd-white: #FFFFFF;
  --pd-black: #000000;            /* QR-bill payment part only (SIX: black) */
  /* palette « Graphite » (tools/palette.mjs): the accent, by day and at night, and the day site's paper */
  --pd-key: #1C3CED;  --pd-key-deep: #132ACD;  --pd-key-night: #93B4FE;

  /* derived dark steps, same hue band (OKLCH hue 231 to 242) */
  --pd-d-050: #13171A;            /* software dark: side menu */
  --pd-d-075: #17181E;            /* software dark: canvas */
  --pd-d-100: #161A1D;            /* site slate tone 1 */
  --pd-d-125: #1F2127;            /* site slate tone 2 */
  --pd-d-175: #25272C;            /* hover on deep; dark surface-2 */
  --pd-d-200: #25282F;            /* site slate tone 3 */
  --pd-d-225: #272A31;            /* dark hover */
  --pd-d-300: #2C2F36;            /* site slate tone 4; dark block */
  --pd-d-350: #303339;            /* site dark slate hover (before « Acier ») */
  --pd-d-140: #26282F;            /* « Acier » (2026-10-27): the stone between deep and slate, tone 2 */
  --pd-d-160: #2D2F36;            /* tone 3 */
  --pd-d-370: #383B40;            /* a hovered slate-blue stone (fog on it 7.22:1) */
  --pd-d-disabled: #797C82;       /* disabled text and icons on dark */
  --pd-d-edge: #777B82;           /* control border on dark (4.40:1 on ink) */
  --pd-d-mist-hi: #B1B4B9;        /* secondary text on deep and darker (7.90:1 on deep) */
  --pd-d-text: #E5E8EA;           /* software dark: primary text */
  --pd-paper-white: #EEF1F1;      /* display type on ink (16.45:1) */

  /* derived light steps */
  --pd-l-050: #F4F6F7;            /* software canvas */
  --pd-l-080: #F6F7F9;            /* « Acier »: the day site's paper, fog with a little of the palette's blue */
  --pd-l-060: #EDEFF2;            /* a hovered row or tile on that paper (lighter: text-3 keeps 7.63:1) */
  --pd-l-100: #EEEEF1;            /* sunken surface, hover on canvas, quoted message */
  --pd-l-125: #F5F4F7;            /* hover on white */
  --pd-l-150: #E5E6E8;            /* selected, done block in a time bar */
  --pd-l-200: #DCDDE0;            /* site light slate (what belongs to one business) */
  --pd-l-225: #E6E7EA;            /* site light slate hover */
  --pd-l-line: #D8DADE;           /* separator between two regions (decorative, 1.4:1) */
  --pd-l-border: #83878E;         /* control border on light (3.61:1 on white, 3.33 on canvas) */
  --pd-l-text-3: #4A4E54;         /* meta text on light (8.37:1 on white) */
  --pd-l-disabled: #939599;       /* disabled text and icons (exempt, still 3.0:1 on white) */

  /* status primitives: muted, equal lightness; glyphs first, text only where named */
  --pd-good-l: #2A7449;   --pd-good-d: #82CB9B;
  --pd-warn-l: #8A5600;   --pd-warn-d: #E1AD63;
  --pd-crit-l: #A43B35;   --pd-crit-d: #FB9890;
  --pd-crit-ink-l: #8E2F2A;       /* overdue amounts and true minus on light (8.11:1 on white) */
  /* colour on the site (Youssef, 27.10.2026: « I need more coloring … the color green like kevin's, see how kevin colors
     stuff »): a conversation looks like one (Kevin's WhatsApp wall, green bubbles, a green head, blue ticks), a confirmed
     thing is green, Zurich carries the Swiss pin. Each pair at its floor: text 7:1, ticks and pins 3:1 (check-contrast) */
  --pd-chat-wall-l: #EFEAE2;      --pd-chat-wall-d: #0B141A;      /* the conversation's wall */
  --pd-chat-out-l: #D9FDD3;       --pd-chat-out-d: #00443A;       /* a message sent: green */
  --pd-chat-in-l: #FFFFFF;        --pd-chat-in-d: #202C33;        /* a message received */
  --pd-chat-text-l: #111B21;      --pd-chat-text-d: #E9EDEF;      /* 15.75 / 9.44 on a sent message */
  --pd-chat-meta-l: #3B4A54;      --pd-chat-meta-d: #CFD9DD;      /* the hour: 8.26 / 7.75 on a sent message */
  --pd-chat-head-l: #16594B;      --pd-chat-head-d: #0E4A3F;      /* the conversation's head: white on it 8.19 / 10.15 */
  --pd-chat-head-2: #D9FDD3;                                      /* its second line (7.39 on the day head) */
  --pd-chat-tick-l: #0A7FC2;      --pd-chat-tick-d: #53BDEB;      /* « lu »: 3.92 / 5.22 on a sent message */
  --pd-good-soft-l: #DCF7E1;      --pd-good-soft-d: #133524;      /* a green label's ground */
  --pd-good-text-l: #1B5634;      --pd-good-text-d: #A6E8BB;      /* its words: 7.59 / 9.52 */
  --pd-swiss: #DA291C;                                            /* the Swiss pin (the flag's red) */
  --pd-crit-ink-l-hover: #7A2823; /* destructive button hover, light */
  --pd-crit-d-hover: #FDB1AA;     /* destructive button hover, dark */
  --pd-proto-bg: #F3E6CC;         /* « Prototype » banner (ink on it 15.13:1) */
  --pd-proto-edge: #DCC9A2;       /* the line between the banner and the app below it */

  /* demo tenants' accents (rule S29: a tenant changes only its accent, logo, names) */
  --pd-tenant-lambert: #111218;   /* Lambert Sanitaire: the neutral preset */
  --pd-tenant-claire:  #7B3F5E;   /* Atelier Claire (white on it 7.74:1) */
  --pd-tenant-leman:   #245A52;   /* Net Léman Services (white on it 7.90:1) */

  /* ---------- 2. Type */
  --pd-font-display: "PD Display", "Source Sans 3", "Helvetica Neue", Arial, sans-serif;  /* Source Sans 3, 600 or 700 */
  --pd-font-title:   "PD Title", "Source Sans 3", "Helvetica Neue", Arial, sans-serif;    /* Source Sans 3, 600 or 700 */
  --pd-font-text:    "PD Text", "Source Sans 3", "Helvetica Neue", Arial, sans-serif;     /* Source Sans 3, 400 500 600 700 */
  --pd-font-mono:    "PD Mono", "Fragment Mono", ui-monospace, Menlo, Consolas, monospace;
  --pd-font-bill:    Arial, "Liberation Sans", Helvetica, sans-serif;                     /* QR-bill receipt and payment part */

  /* site scale (size / line height / tracking) */
  /* Source Sans 3 (2026-10-26): wider than the old narrow display cut, smaller on the x-height. The hero keeps
     its three lines at every width from 360 to 1440 (measured: 81 px at 1440, 44 px at 360); text one step up. */
  --pd-site-hero-size: clamp(44px, 3.4vw + 32px, 82px);       --pd-site-hero-lh: 1;     --pd-site-hero-track: -0.025em;
  --pd-site-h2-size: clamp(30px, 1vw + 26px, 40px);            --pd-site-h2-lh: 1.1;     --pd-site-h2-track: -0.02em;
  --pd-site-figure-size: clamp(34px, 0.7vw + 31px, 42px);      --pd-site-figure-lh: 1.1;
  --pd-site-text-size: 19px;      --pd-site-text-lh: 30px;    /* phone: 17 / 26 (site.css) */
  --pd-site-small-size: 16px;     --pd-site-small-lh: 24px;
  --pd-site-caption-size: 14px;   --pd-site-caption-lh: 20px;
  --pd-site-mono-size: 13px;      --pd-site-mono-lh: 20px;
  --pd-site-btn-size: 18px;

  /* software scale */
  --pd-app-h1-size: 30px;         --pd-app-h1-lh: 36px;       --pd-app-h1-track: -0.015em;   /* phone: 24 / 30 */
  --pd-app-money-size: 32px;      --pd-app-money-lh: 38px;    /* the one big figure of a card */
  --pd-app-title-size: 17px;      --pd-app-title-lh: 24px;    /* card and dialog titles, 600 */
  --pd-app-body-size: 16px;       --pd-app-body-lh: 24px;
  --pd-app-input-size: 16px;      --pd-app-input-lh: 24px;    /* never less: stops iOS zoom (S8) */
  --pd-app-label-size: 15px;      --pd-app-label-lh: 21px;
  --pd-app-meta-size: 14px;       --pd-app-meta-lh: 19px;
  --pd-app-mono-size: 13px;       --pd-app-mono-lh: 18px;     /* never under 12 */
  --pd-app-tab-size: 12px;        --pd-app-tab-lh: 15px;      /* phone tab bar labels: at 11 Source Sans 3 read a size smaller than the old face */
  --pd-app-count-size: 11px;      --pd-app-count-lh: 14px;    /* count digits: their 20 px square, the bell's badge, the week strip's count; the 11 px floor (S9) */

  /* ---------- 3. Space: 8 px grid with 4 px half steps */
  --pd-s-0: 0px;    --pd-s-05: 4px;   --pd-s-1: 8px;    --pd-s-15: 12px;  --pd-s-2: 16px;
  --pd-s-25: 20px;  --pd-s-3: 24px;   --pd-s-4: 32px;   --pd-s-5: 40px;   --pd-s-6: 48px;
  --pd-s-7: 56px;   --pd-s-8: 64px;   --pd-s-10: 80px;  --pd-s-12: 96px;  --pd-s-14: 112px;
  --pd-s-16: 128px; --pd-s-21: 168px;

  --pd-container: 1280px;
  --pd-gutter: clamp(16px, 5vw, 80px);
  --pd-col-gap: 24px;             /* one text line */
  --pd-section-top: clamp(112px, 8vw + 80px, 168px);   /* sections on one background pad the top only (H8) */

  /* sizes */
  --pd-control-h: 44px;           /* software controls, every one (S7) */
  --pd-control-h-compact: 32px;   /* desktop table rows and dispatcher only, by a per-table toggle */
  --pd-control-h-site: 52px;      /* site buttons and fields */
  --pd-row-h: 48px;               /* software table row, comfortable */
  --pd-topbar-h: 56px;  --pd-topbar-h-phone: 48px;
  --pd-tabbar-h: 56px;            /* plus env(safe-area-inset-bottom) */
  --pd-sidebar-w: 256px; --pd-rail-w: 64px;
  --pd-fab: 56px;
  --pd-icon: 20px; --pd-icon-tab: 24px; --pd-icon-sm: 16px;
  --pd-glyph: 10px;               /* status glyph inside a 16 px box */

  /* ---------- 4. Radii: square first, never a stadium (H1) */
  --pd-r-0: 0px;                  /* slates (their shape is the cut corner), paper */
  --pd-r-1: 2px;                  /* site buttons and fields, tags, keycaps, bars */
  --pd-r-2: 4px;                  /* software buttons, inputs, cards, menu entries */
  --pd-r-3: 6px;                  /* dialogs, popovers, a software frame shown on the site */
  --pd-r-4: 8px;                  /* tenant square at 40 px */
  --pd-r-round: 50%;              /* true circles only: avatar, status disc, radio */
  --pd-chamfer: 12px;             /* site slate foot cut */
  --pd-chamfer-sm: 9px;           /* small site slates (phone roof) */
  --pd-chamfer-app: 8px;          /* slates inside the software (screen of pieces, Réglages > Pièces) */
  --pd-joint: 6px;                /* gap between two slates of a course */
  --pd-lap: 24px;                 /* how far an upper course covers the one below */
  --pd-slate-edge: 3px;           /* the hard edge a slate throws, no blur (4px on the hero) */

  /* ---------- 5. Layers */
  --pd-z-base: 0; --pd-z-raised: 1; --pd-z-sticky: 100; --pd-z-dropdown: 200; --pd-z-popover: 300;
  --pd-z-scrim: 400; --pd-z-dialog: 410; --pd-z-toast: 500; --pd-z-skip: 600;

  /* ---------- 6. Motion */
  --pd-dur-1: 80ms;               /* software: press, small state */
  --pd-dur-2: 160ms;              /* software: menus, popovers, hover */
  --pd-dur-3: 240ms;              /* software: dialogs, toasts; site: button tone */
  --pd-dur-4: 320ms;              /* software: sheets, one bar fill */
  --pd-dur-pop: 640ms;            /* site: an element pops into place */
  --pd-dur-lay: 700ms;            /* site: a slate is set down */
  --pd-dur-fill: 1100ms;          /* site only: a progress fill (H11) */
  --pd-stagger: 70ms;             /* between siblings, left to right */
  --pd-course-gap: 330ms;         /* between two courses of the roof */
  --pd-ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --pd-ease-in: cubic-bezier(0.55, 0, 1, 0.45);
  --pd-ease-std: cubic-bezier(0.2, 0, 0, 1);
  /* damped spring, damping 0.7, 6.7 % overshoot (from concept A) */
  --pd-spring: linear(0, 0.167 3.3%, 0.329 6.7%, 0.478 10%, 0.611 13.3%, 0.724 16.7%, 0.819 20%, 0.895 23.3%, 0.955 26.7%, 0.999 30%, 1.03 33.3%, 1.05 36.7%, 1.061 40%, 1.066 43.3%, 1.066 46.7%, 1.063 50%, 1.057 53.3%, 1.05 56.7%, 1.042 60%, 1.035 63.3%, 1.027 66.7%, 1.021 70%, 1.015 73.3%, 1.01 76.7%, 1.006 80%, 1.003 83.3%, 1.001 86.7%, 0.999 90%, 0.998 93.3%, 0.997 96.7%, 1);

  font-synthesis: none;           /* never a fake bold or oblique */
}
@supports not (transition-timing-function: linear(0, 1)) {
  :root { --pd-spring: cubic-bezier(0.3, 1.35, 0.55, 1); }
}
@media (prefers-reduced-motion: reduce) {
  :root {
    --pd-dur-1: 80ms; --pd-dur-2: 80ms; --pd-dur-3: 80ms; --pd-dur-4: 80ms;
    --pd-dur-pop: 0ms; --pd-dur-lay: 0ms; --pd-dur-fill: 0ms; --pd-stagger: 0ms; --pd-course-gap: 0ms;
  }
}

/* No italic anywhere (S12): roman files only, and reset what browsers slant by default. */
em, i, cite, var, dfn, address { font-style: normal; }
em { font-weight: 600; }

/* =====================================================================================
   SITE (piecedesk.ch): two themes, one set of roles. Depth = the ramp's lightness + one hard
   slate edge, in both. The dark slates are the same stone in both themes (a piece that exists
   is a dark slate, day or night); what changes is the sky behind them.
   ===================================================================================== */
:root[data-theme="dark"] { color-scheme: dark; }      /* the window's own scrollbar follows the site */
:root[data-theme="light"] { color-scheme: light; }
/* the ground under a site page (2026-10-27, loading spec 5.1): the page's own background (--site-bg of each theme,
   check-contrast.mjs asserts it), on <html> and under a switch, so the instant between two pages is never white */
:root[data-theme="light"] { --pd-ground: var(--pd-l-080); }
:root[data-theme="dark"] { --pd-ground: var(--pd-ink); }

/* ---- dark, « sur l'encre »: a .pd-site's roles unless <html> or the panel says light. The visitor's default is light
   (data-theme="light" on <html>, in the markup and set by the head snippet), dark by choice ---- */
.pd-site, .pd-site[data-theme="dark"], :where(:root[data-theme="light"]) .pd-invert {
  color-scheme: dark;
  --site-bg: var(--pd-ink);                    /* the page */
  --site-bg-raised: var(--pd-deep);            /* a band with a visible edge (prices panel) */
  --site-bg-hover: var(--pd-d-175);            /* row or tile hover on ink and deep */
  --site-line: var(--pd-slate);                /* separates two regions only (1.52:1, decorative) */
  --site-text-display: var(--pd-paper-white);  /* h1, h2, figures */
  --site-text: var(--pd-fog);                  /* body */
  --site-text-2: var(--pd-mist);               /* secondary, on ink ONLY (7.64:1) */
  --site-text-2-raised: var(--pd-d-mist-hi);   /* secondary on deep and on slate tones */
  --site-title-2: var(--pd-key-night);              /* the second tone of a two-tone title (the landing, 2026-10-27): 7.64:1 on ink */
  --site-text-3: var(--pd-mist);               /* the third step: a placeholder, the words of a control that is off, a time label
                                                  beside the current one. At night it is the secondary step itself (7.64:1); by
                                                  day ink and slate stand too close */
  --site-text-3-raised: var(--pd-d-mist-hi);   /* the same on deep and on a hovered row (.pd-band reads it by itself) */
  --site-nav-text: var(--pd-fog);              /* the bar's links and « Se connecter » at rest; hover and the current page are
                                                  --site-text-display, one step up in both themes */
  --site-control-border: var(--pd-d-edge);     /* outline of fields and quiet buttons (4.40:1) */
  --site-control-border-off: var(--pd-d-edge); /* the outline of a control that is off: at night the same as on, the words say it */
  --site-field-bg: var(--pd-ink);              /* inside a field and the select button: the page itself */

  --site-btn-bg: var(--pd-fog);                --site-btn-text: var(--pd-ink);
  --site-btn-bg-hover: var(--pd-paper-white);
  --site-btn2-border: var(--pd-d-edge);        --site-btn2-text: var(--pd-paper-white);
  --site-btn2-bg-hover: var(--pd-deep);
  --site-focus: var(--pd-paper-white);         /* 2 px ring, 2 px offset */
  --site-focus-inner: var(--pd-ink);           /* inner ring so the focus reads on fog buttons too */

  /* the slates: dark = a piece every business shares, light = what belongs to one business,
     outlined = a piece « Sur demande » (no code yet). */
  --site-slate-1: var(--pd-deep);             /* « Acier »: the palette's deep */
  --site-slate-2: var(--pd-d-140);
  --site-slate-3: var(--pd-d-160);
  --site-slate-4: var(--pd-slate);             /* the palette's slate: fog on it 7.88:1 */
  --site-slate-hover: var(--pd-d-370);
  --site-grad-1: var(--pd-slate);              /* a dark block's fall, slate to deep (the raised plan, « Vos données »)… */
  --site-grad-2: var(--pd-deep);
  --site-text-2-grad: var(--pd-fog);           /* …and its secondary words, fog (7.88:1 on slate, the light end) */
  --site-glow: rgb(86 90 97 / 0.5);           /* steel light behind what a band shows (never behind words) */
  --site-icon-accent: var(--pd-key-night);          /* a list's or a fact's icon: mist at night (7.64:1 on ink) */
  --site-slate-text: var(--pd-paper-white);
  --site-slate-text-2: var(--pd-fog);          /* data line on a dark slate (8.61:1 on tone 4) */
  --site-slate-text-3: var(--pd-mist);         /* glyphs only on a dark slate (planned, draft, off) */
  --site-slate-good: var(--pd-good-d);         /* status glyphs ON a dark slate, in both themes */
  --site-slate-warn: var(--pd-warn-d);
  --site-slate-crit: var(--pd-crit-d);
  --site-slate-light: var(--pd-l-200);
  --site-slate-light-hover: var(--pd-l-225);
  --site-slate-light-text: var(--pd-ink);      /* 13.76:1 */
  --site-slate-light-text-2: var(--pd-slate);  /* 9.04:1 */
  --site-slate-light-good: var(--pd-good-l);   /* status glyphs ON a light slate, in both themes */
  --site-slate-light-warn: var(--pd-warn-l);
  --site-slate-light-crit: var(--pd-crit-l);
  --site-slate-outline: var(--pd-d-edge);      /* the outline of a « Sur demande » slate */
  --site-slate-outline-text: var(--pd-paper-white);   /* its title: it shows the page through it */
  --site-slate-outline-text-2: var(--pd-fog);         /* its data line */
  --site-slate-edge: var(--pd-ink);            /* the hard 3 px edge under a slate */
  --site-slate-foot: transparent;              /* that edge as the page shows it on a small swatch: unseen on ink */

  --site-good: var(--pd-good-d);
  --site-warn: var(--pd-warn-d);               /* the ■ glyph of « à confirmer » */
  --site-warn-text: var(--pd-warn-d);          /* the words « à confirmer » (9.22:1 on ink) */
  --site-crit: var(--pd-crit-d);
  --site-good-soft: var(--pd-good-soft-d);     --site-good-text: var(--pd-good-text-d);
  --site-chat-wall: var(--pd-chat-wall-d);     --site-chat-out: var(--pd-chat-out-d);     --site-chat-in: var(--pd-chat-in-d);
  --site-chat-text: var(--pd-chat-text-d);     --site-chat-meta: var(--pd-chat-meta-d);   --site-chat-tick: var(--pd-chat-tick-d);
  --site-chat-head: var(--pd-chat-head-d);     --site-chat-head-text: var(--pd-white);    --site-chat-head-text-2: var(--pd-chat-head-2);
  --site-chat-shadow: rgb(0 0 0 / 0.35);
  --site-swiss: var(--pd-swiss);               --site-swiss-cross: var(--pd-white);
  /* a plan card's button: white in both themes; on a night card a white halo lights it (Youssef, 27.10.2026: « white and
     flashy, the middle one more flashy and white background ») */
  --site-plan-go: var(--pd-white);             --site-plan-go-text: var(--pd-ink);        --site-plan-go-hover: var(--pd-l-060);
  --site-plan-go-line: transparent;            --site-plan-halo: rgb(255 255 255 / 0.16); --site-plan-glow: rgb(255 255 255 / 0.3);
  --site-fill: var(--pd-fog);                  /* progress: a ruler's fill, done ticks, passed diamonds (12.01:1) */
  --site-fill-pass: var(--pd-paper-white);     /* the one soft light that passes over a fill, once (H11) */
  --site-fill-hover: var(--pd-mist);           /* a moment's diamond under the pointer, passed or to come */
  --site-mini-shared: var(--pd-d-mist-hi);     /* the small roof drawn on a trade card (a raised card): a piece every business
                                                  shares (7.90:1 on deep) */
  --site-mini-own: var(--pd-paper-white);      /* and the business's own pieces and its name, the drawing's lightest stone */
  --site-frame-ring: var(--pd-slate);          /* 1 px around a software frame shown on the site */
  --site-paper-edge: transparent;              /* 1 px around white paper (.pd-paper) laid on the page */
  --site-lockup: var(--pd-fog);                /* the lockup and the mark drawn inline (bar, footer, menu, loader): lockup-fog.svg's colour */
  --site-scrim: rgb(17 18 24 / 0.72);
  --site-on-dark: block;                       /* a drawing that exists in two versions (lockup, mark): */
  --site-on-light: none;                       /* .pd-on-dark shows the fog one, .pd-on-light the ink one */
}

/* ---- light, « au jour »: the default for every visitor (the system's theme is not read). Same roles, art-directed:
   fog paper for the sky, ink and slate for words, steel for edges, white for the raised band; the dark
   slates stay dark stone, the business's own slates become fog stone on a hard ink edge. ---- */
:where(:root[data-theme="light"]) .pd-site, .pd-site[data-theme="light"], :where(:root[data-theme="dark"]) .pd-invert {
  color-scheme: light;
  --site-bg: var(--pd-l-080);                  /* the page: fog paper with the palette's blue (« Acier », 2026-10-27) */
  --site-bg-raised: var(--pd-white);           /* the band (prices): white paper on fog */
  --site-bg-hover: var(--pd-l-060);            /* row or tile hover on the page (lighter) and on the band (darker) */
  --site-line: var(--pd-fog);                  /* separates two regions only (1.44:1, 1.57 on white) */
  --site-text-display: var(--pd-ink);          /* 17.24:1 */
  --site-text: var(--pd-ink);                  /* 17.24:1 */
  --site-text-2: var(--pd-slate);              /* 11.32:1 */
  --site-text-2-raised: var(--pd-slate);       /* 12.27:1 on white, 10.60 on hover */
  --site-title-2: var(--pd-key);             /* a two-tone title's second half: steel, a clear step under ink (6.39:1 on the
                                                  page, 6.93 on white); slate stood too close to ink to read as a second tone */
  --site-text-3: var(--pd-l-text-3);           /* placeholders, the words of a control that is off, a time label beside the current
                                                  one: the software's own meta grey, 7.72:1 (8.37 on white), 2.23:1 under ink, the
                                                  step mist takes at night */
  --site-text-3-raised: var(--pd-l-text-3);
  --site-nav-text: var(--pd-slate);            /* 11.32:1: one step under ink, so a hovered link and the current page show */
  --site-control-border: var(--pd-steel);      /* outline of fields and quiet buttons (6.39:1), non-text only */
  --site-control-border-off: var(--pd-l-border);   /* a control that is off: the software's outline #7A8992, 3.33:1 */
  --site-field-bg: var(--pd-white);            /* a field is white paper to write on, as in the software */

  --site-btn-bg: var(--pd-key);              --site-btn-text: var(--pd-white);   /* « Acier »: slate, white on it 12.27:1 */
  --site-btn-bg-hover: var(--pd-key-deep);
  --site-btn2-border: var(--pd-steel);         --site-btn2-text: var(--pd-ink);
  --site-btn2-bg-hover: var(--pd-l-060);
  --site-grad-1: var(--pd-white);              /* a block in day colours stays plain white paper */
  --site-grad-2: var(--pd-white);
  --site-text-2-grad: var(--pd-slate);
  --site-glow: transparent;
  --site-icon-accent: var(--pd-key);         /* steel icons by day (6.93:1 on white, 5.97 on the paper) */
  --site-focus: var(--pd-ink);                 --site-focus-inner: var(--pd-white);

  /* dark slates: the same stone as at night (tones, hover, text and glyph hues are not redeclared) */
  --site-slate-light: var(--pd-fog);           /* the business's own: fog stone (1.44:1 on the page) */
  --site-slate-light-hover: var(--pd-l-200);   /* one tone lighter */
  --site-slate-light-text: var(--pd-ink);      /* 12.01:1 */
  --site-slate-light-text-2: var(--pd-slate);  /* 7.88:1 */
  --site-slate-outline: var(--pd-steel);       /* « Sur demande »: a steel outline (6.39:1) */
  --site-slate-outline-text: var(--pd-ink);
  --site-slate-outline-text-2: var(--pd-slate);
  --site-slate-edge: var(--pd-ink);            /* the hard edge: the slate's thickness, ink under every slate */
  --site-slate-foot: var(--pd-ink);            /* and on a legend swatch, where the fog stone needs it most */

  --site-good: var(--pd-good-l);
  --site-warn: var(--pd-warn-l);               /* the ■ glyph stays amber (5.68:1, a glyph) */
  --site-warn-text: var(--pd-ink);             /* amber words would be 5.68:1: the words go ink, the glyph keeps the hue */
  --site-crit: var(--pd-crit-l);
  --site-good-soft: var(--pd-good-soft-l);     --site-good-text: var(--pd-good-text-l);
  --site-chat-wall: var(--pd-chat-wall-l);     --site-chat-out: var(--pd-chat-out-l);     --site-chat-in: var(--pd-chat-in-l);
  --site-chat-text: var(--pd-chat-text-l);     --site-chat-meta: var(--pd-chat-meta-l);   --site-chat-tick: var(--pd-chat-tick-l);
  --site-chat-head: var(--pd-chat-head-l);     --site-chat-head-text: var(--pd-white);    --site-chat-head-text-2: var(--pd-chat-head-2);
  --site-chat-shadow: rgb(17 19 23 / 0.13);
  --site-swiss: var(--pd-swiss);               --site-swiss-cross: var(--pd-white);
  --site-plan-go: var(--pd-white);             --site-plan-go-text: var(--pd-ink);        --site-plan-go-hover: var(--pd-l-060);
  --site-plan-go-line: var(--pd-ink);          --site-plan-halo: rgb(17 18 24 / 0.07);     --site-plan-glow: rgb(17 18 24 / 0.28);
  --site-fill: var(--pd-key);                /* progress in slate (11.32:1), so the current mark in ink stands out */
  --site-fill-pass: var(--pd-key-night);           /* the light that passes over a slate fill */
  --site-fill-hover: var(--pd-key-deep);          /* 6.39:1 on the page, 1.77:1 on the slate fill: a hovered moment to come never
                                                  looks passed, a hovered passed one still changes */
  --site-mini-shared: var(--pd-slate);         /* the small roof: dark stone on the white card (12.27:1) */
  --site-mini-own: var(--pd-fog);              /* fog stone on its ink foot (--site-slate-foot), as on the roof */
  --site-frame-ring: var(--pd-mist);           /* a light screen on a light page: the ring is its only edge (2.26:1) */
  --site-paper-edge: var(--pd-fog);            /* white paper on fog paper: a hairline separates them (1.57:1) */
  --site-lockup: var(--pd-ink);                /* lockup.svg's colour */
  --site-scrim: rgb(17 18 24 / 0.32);           /* ink at a third over fog paper: the page steps back and stays day (at 0.48 it
                                                  read as a heavy grey veil); the window's white paper keeps its fog hairline */
  --site-on-dark: none;
  --site-on-light: block;
}

/* ---- .pd-invert: the other theme's roles for one block (the landing's raised plan, the comparison's column, « Vos
   données »): ink stone on the day site, white paper on the night site. Never nested, never inside a band that already
   says data-theme="dark" (2026-10-27). ---- */

/* ---- objects drawn on the site (the landing's laptop and phone, 2026-10-27): the same in both themes ---- */
.pd-site {
  --site-device-bezel: var(--pd-ink);              /* the black glass around a screen */
  --site-device-cam: var(--pd-d-300);              /* the camera's lens on that glass */
  --site-device-screen: var(--pd-white);           /* behind a screen capture while it loads */
  --site-device-text: var(--pd-ink);               /* a phone's status bar (time, signal) on that screen: 18.69:1 */
  --site-device-metal: var(--pd-fog);              /* the laptop's deck, lit from above */
  --site-device-metal-2: var(--pd-mist);           /* and its shaded front */
  --site-device-metal-3: var(--pd-steel);          /* the thumb notch, the phone's frame and buttons */
  --site-device-glare: rgb(238 241 241 / 0.08);    /* one soft reflection across a screen */
  --site-device-shadow: rgb(17 18 24 / 0.5);        /* the soft shadow an object casts (a photograph, not a slate's hard edge) */
}

.pd-site {
  background: var(--site-bg);
  color: var(--site-text);
}

/* =====================================================================================
   SOFTWARE (app.piecedesk.ch and every tenant): light by default, dark side menu in both.
   ===================================================================================== */
.pd-app {
  color-scheme: light;
  --app-bg: var(--pd-l-050);                   /* canvas */
  --app-surface: var(--pd-white);              /* cards, tables, dialogs */
  --app-surface-2: var(--pd-l-100);            /* sunken: quoted message, closed hours, track */
  --app-hover: var(--pd-l-125);                /* row hover on white */
  --app-hover-canvas: var(--pd-l-100);         /* hover on the canvas */
  --app-selected: var(--pd-l-150);             /* selected row, pressed segment, done block */
  --app-line: var(--pd-l-line);                /* separates two regions (rows, card edges) */
  --app-border: var(--pd-l-border);            /* control outline, 3:1 on white, canvas, surface-2 */
  --app-text: var(--pd-ink);                   /* 18.69:1 on white */
  --app-text-2: var(--pd-slate);               /* secondary (12.27:1 on white, 9.83 on selected) */
  --app-text-3: var(--pd-l-text-3);            /* meta, never on --app-selected (6.70) */
  --app-text-disabled: var(--pd-l-disabled);
  --app-solid: var(--pd-ink);                  /* primary button, now label, count chip */
  --app-solid-hover: var(--pd-slate);
  --app-on-solid: var(--pd-white);
  --app-danger: var(--pd-crit-ink-l);          /* destructive button fill (white on it 8.11:1) */
  --app-danger-hover: var(--pd-crit-ink-l-hover);
  --app-on-danger: var(--pd-white);

  --app-chrome-bg: var(--pd-deep);             /* side menu, both themes keep a dark chrome */
  --app-chrome-text: var(--pd-d-text);         /* 13.34:1 on deep */
  --app-chrome-text-2: var(--pd-d-mist-hi);    /* group labels (7.90:1) */
  --app-chrome-hover: var(--pd-d-225);
  --app-chrome-active: var(--pd-slate);        /* active entry fill, white text 12.27:1 */
  --app-chrome-active-text: var(--pd-white);
  --app-chrome-line: var(--pd-slate);
  --app-chrome-count-bg: var(--pd-fog);        /* count square on the menu */
  --app-chrome-count-text: var(--pd-ink);

  --app-focus: var(--pd-ink);                  /* 2 px ring at 2 px offset, never removed (S15) */
  --app-focus-inner: var(--pd-white);
  --app-now: var(--pd-ink);                    /* the now line and its mono label */
  --app-scrim: rgb(17 18 24 / 0.48);            /* behind a dialog, no blur */
  --app-shadow-pop: 0 1px 2px rgb(17 18 24 / 0.08), 0 12px 32px -12px rgb(17 18 24 / 0.24);  /* menus, popovers, toasts */
  --app-shadow-dialog: 0 2px 4px rgb(17 18 24 / 0.08), 0 32px 64px -24px rgb(17 18 24 / 0.32);
  /* cards and bars carry NO shadow; hover never adds one (S15) */

  --app-good: var(--pd-good-l);                /* glyphs; 5.69:1 */
  --app-warn: var(--pd-warn-l);                /* glyphs; never a text colour (S24) */
  --app-crit: var(--pd-crit-l);                /* glyphs; 6.45:1 */
  --app-crit-ink: var(--pd-crit-ink-l);        /* text: overdue amount, true minus (8.11:1) */
  --app-proto-bg: var(--pd-proto-bg);  --app-proto-text: var(--pd-ink);  --app-proto-edge: var(--pd-proto-edge);

  --app-chart-1: var(--pd-ink);                /* series 1 */
  --app-chart-2: var(--pd-steel);              /* series 2 (6.93:1) */
  --app-chart-3: var(--pd-l-border);           /* series 3 (3.61:1) */
  --app-chart-track: var(--pd-l-150);          /* empty part of a bar */
  /* a 4th series is --app-chart-2 hatched; never a status hue as a series (S24) */

  --app-accent: var(--pd-tenant-lambert);      /* set per tenant at runtime by the theme engine */
  --app-on-accent: var(--pd-white);

  /* the premium roles (Youssef, 2026-10-27), at the values every software frame had before them. The software's own
     pages (body.pd-app) and, since the site phase (2026-10-28), the frames drawn inside a site page or the kit (a .pd-app
     inside body.pd-site) take the premium, B and LIQUID values of the blocks below */
  --app-r-chip: var(--pd-r-1);                 /* tags, counts, keycaps, the now and needle labels, a checkbox */
  --app-r-control: var(--pd-r-2);              /* buttons, fields, selects, the segmented track, tabs, menu rows */
  --app-r-card: var(--pd-r-2);                 /* cards, panels, ledgers, the agenda, banners, toasts */
  --app-r-pop: var(--pd-r-3);                  /* menus and popovers */
  --app-r-dialog: var(--pd-r-3);               /* dialogs, sheets, the search panel */
  --app-r-bar: var(--pd-r-1);                  /* a 12 px bar or track (never half its height) */
  --app-r-thumb: var(--pd-r-1);                /* the segmented control's thumb */
  --app-shadow-card: none;                     /* cards: hairline only */
  --app-shadow-raised: none;                   /* a raised control (secondary button, thumb) */
  --app-shadow-thumb: none;
  --app-shadow-knob: none;
  --app-shadow-primary: none;                  /* the primary button's top highlight and contact shadow */
  --app-shadow-press: none;                    /* a pressed button */
  --app-slate-shadow: none;                    /* a software slate (S02, S18) */
  --app-solid-press: var(--app-solid-hover);
  --app-tint: var(--app-surface);              /* a secondary button's fill */
  --app-tint-hover: var(--app-hover);
  --app-tint-press: var(--app-selected);
  --app-tint-edge: var(--app-border);          /* its edge (none once tinted) */
  --app-field: var(--app-surface);             /* inside a field */
  --app-seg-track: var(--app-surface);         /* the segmented control's track */
  --app-seg-thumb: var(--app-selected);        /* its chosen segment */
  --app-seg-edge: var(--app-border);           /* its outline (none once it is a track) */
  --app-switch-off: var(--app-surface);        /* the switch's track, off */
  --app-switch-on: var(--app-solid);
  --app-knob: var(--app-text-2);               /* its knob, off */
  --app-knob-on: var(--app-on-solid);
  --app-bar: var(--app-surface);               /* the top bar and the phone tab bar */
  --app-skel: var(--app-surface-2);            /* a skeleton block */
  --app-skel-sweep: transparent;               /* the one light that passes over it */
  --app-chrome-hi: transparent;                /* the side menu's current entry, its top light */

  background: var(--app-bg);
  color: var(--app-text);
}

.pd-app[data-theme="dark"] {
  color-scheme: dark;
  --app-bg: var(--pd-d-075);
  --app-surface: var(--pd-deep);
  --app-surface-2: var(--pd-d-175);
  --app-hover: var(--pd-d-175);
  --app-hover-canvas: var(--pd-deep);
  --app-selected: var(--pd-slate);
  --app-line: var(--pd-slate);
  --app-border: var(--pd-d-edge);              /* 3.86:1 on deep */
  --app-text: var(--pd-d-text);                /* 13.34:1 on deep */
  --app-text-2: var(--pd-fog);                 /* 10.55:1 on deep */
  --app-text-3: var(--pd-d-mist-hi);           /* 7.90:1 on deep, never on --app-selected */
  --app-text-disabled: var(--pd-d-disabled);
  --app-solid: var(--pd-fog);
  --app-solid-hover: var(--pd-d-text);
  --app-on-solid: var(--pd-ink);
  --app-danger: var(--pd-crit-d);
  --app-danger-hover: var(--pd-crit-d-hover);
  --app-on-danger: var(--pd-ink);

  --app-chrome-bg: var(--pd-d-050);
  --app-chrome-hover: var(--pd-d-175);
  --app-chrome-active: var(--pd-slate);

  --app-focus: var(--pd-paper-white);
  --app-focus-inner: var(--pd-ink);
  --app-now: var(--pd-fog);
  --app-scrim: rgb(7 9 12 / 0.64);
  --app-shadow-pop: 0 0 0 1px var(--pd-slate); /* dark: no shadow, an edge */
  --app-shadow-dialog: 0 0 0 1px var(--pd-slate);

  --app-good: var(--pd-good-d);
  --app-warn: var(--pd-warn-d);
  --app-crit: var(--pd-crit-d);
  --app-crit-ink: var(--pd-crit-d);            /* 7.81:1 on deep */

  --app-chart-1: var(--pd-fog);
  --app-chart-2: var(--pd-mist);
  --app-chart-3: var(--pd-d-edge);
  --app-chart-track: var(--pd-slate);
  --app-on-accent: var(--pd-white);
}

/* =====================================================================================
   THE PREMIUM PASS (Youssef, 2026-10-27: « a premium ios macbook feel for the software … rounded corners …
   premium looking non generic boxes … alignment and spacing … smooth animations and loading pages »).
   The software's own pages (body.pd-app: every screen of build/app, build/public, build/backoffice) and, since the site
   phase (2026-10-28), a frame drawn inside a site page or the kit (:where(body.pd-site) .pd-app, as light as the base
   .pd-app, so the cascade between the blocks is the software's; the solid form for the site is at the end of LIQUID).
   - Radii, concentric: chips 6, controls 8, cards and menus 12, dialogs and sheets 16; on the phone controls 12, cards
     14. An inner box is its outer radius minus the padding between them (a thumb 6 in a track 8 with a 2 px inset).
     True circles stay circles; nothing is ever half its height (the switch's track excepted, as on iOS).
   - Depth by layers, never by heavy borders: the hairline is a low-alpha ink line (it adapts to its ground), cards add a
     contact shadow and a wide, faint ambient one; menus, popovers and dialogs a deeper one. At night, a light hairline
     and black shadows.
   - The top bar and the phone tab bar are the window's material: translucent with a blur where the browser has it
     (shell.css), so what scrolls under them shows softly; opaque elsewhere. The side menu stays solid dark (nothing passes
     behind it, and its stone is the brand's).
   - Type on the iOS and macOS scale in Source Sans 3: 13, 15, 17, 20, 22, 28, 34. Fields stay at 16 (iOS zooms under
     16, S8); the phone reads one step up (17, 15) as iOS does.
   Raw rgb() lives here only (S11). Every pair that carries text or a control is in tools/check-contrast.mjs.
   ===================================================================================== */
body.pd-app, :where(body.pd-site) .pd-app {
  /* the primitives the screens' own boxes read (their local rules use --pd-r-1 to -4) */
  --pd-r-1: 4px;  --pd-r-2: 8px;  --pd-r-3: 12px;  --pd-r-4: 10px;
  --app-r-chip: 6px;  --app-r-control: 8px;  --app-r-card: 12px;  --app-r-pop: 12px;  --app-r-dialog: 16px;
  --app-r-bar: 4px;  --app-r-thumb: 6px;

  --app-line: rgb(17 18 24 / 0.1);              /* the hairline: low-alpha ink, on white 1.24:1, on the canvas 1.3:1 */
  --app-shadow-card: 0 0.5px 1px rgb(17 18 24 / 0.05), 0 1px 3px rgb(17 18 24 / 0.05), 0 8px 24px -8px rgb(17 18 24 / 0.1);
  --app-shadow-raised: 0 0 0 0.5px rgb(17 18 24 / 0.06), 0 1px 2px rgb(17 18 24 / 0.1);
  --app-shadow-thumb: 0 0 0 0.5px rgb(17 18 24 / 0.05), 0 1px 2px rgb(17 18 24 / 0.12), 0 3px 8px rgb(17 18 24 / 0.08);
  --app-shadow-knob: 0 0 0 0.5px rgb(17 18 24 / 0.06), 0 2px 4px rgb(17 18 24 / 0.22), 0 1px 1px rgb(17 18 24 / 0.08);
  --app-shadow-primary: inset 0 1px 0 rgb(255 255 255 / 0.14), 0 1px 2px rgb(17 18 24 / 0.22), 0 3px 8px -3px rgb(17 18 24 / 0.3);
  --app-shadow-press: inset 0 1px 3px rgb(17 18 24 / 0.32);
  --app-shadow-pop: 0 0 0 0.5px rgb(17 18 24 / 0.1), 0 2px 6px rgb(17 18 24 / 0.06), 0 16px 40px -12px rgb(17 18 24 / 0.26);
  --app-shadow-dialog: 0 0 0 0.5px rgb(17 18 24 / 0.1), 0 4px 12px rgb(17 18 24 / 0.08), 0 32px 80px -20px rgb(17 18 24 / 0.4);
  --app-slate-shadow: drop-shadow(0 1px 1px rgb(17 18 24 / 0.06)) drop-shadow(0 6px 10px rgb(17 18 24 / 0.07));
  --app-solid-press: var(--pd-deep);           /* pressed: from the hover's slate, a darker step (white on it 16.5:1) */
  --app-tint: rgb(17 18 24 / 0.06);             /* tinted secondary button: on white #F0F1F1, on the canvas #E5E8E9 */
  --app-tint-hover: rgb(17 18 24 / 0.09);
  --app-tint-press: rgb(17 18 24 / 0.13);
  --app-tint-edge: transparent;
  --app-field: rgb(17 18 24 / 0.025);           /* the soft fill inside a field (its 3:1 edge stays) */
  --app-seg-track: rgb(17 18 24 / 0.07);
  --app-seg-thumb: var(--pd-white);
  --app-seg-edge: transparent;
  --app-switch-off: var(--pd-l-border);        /* 3.61:1 on white: an off switch is seen */
  --app-switch-on: var(--pd-ink);
  --app-knob: var(--pd-white);                 /* 3.61:1 on the off track, 18.69:1 on the on track */
  --app-knob-on: var(--pd-white);
  --app-bar: rgb(255 255 255 / 0.96);          /* the window's material, thick: over ink, slate words still 11.3:1, and a
                                                  browser that draws no blur (Playwright's WebKit on Windows) shows only a faint ghost */
  --app-skel: rgb(17 18 24 / 0.07);
  --app-skel-sweep: rgb(255 255 255 / 0.6);
  --app-chrome-hi: rgb(255 255 255 / 0.07);
  /* read by app.css with the frame's own value as fallback */
  --app-quiet-hover: var(--app-tint-hover);    /* a quiet or icon button under the pointer, on any ground */
  --app-quiet-press: var(--app-tint-press);
  --app-tab-on: var(--app-seg-thumb);          /* the current page tab: the segmented control's raised thumb */
  --app-tab-on-shadow: var(--app-shadow-thumb);
  --app-pop-ring: 0 0 0 0 transparent;         /* the menu's own ring is in its shadow */
  --app-sep-in: 12px;                          /* a menu's separator stops short of its edges, as on macOS */
  --app-r-fab: 16px;
  --app-r-card-in: 11px;                       /* the card's radius inside its 1 px hairline */

  /* type on the iOS and macOS scale (desktop): title 28, card title 17, body 15, meta 13; the money figure 34 */
  --pd-app-h1-size: 28px;     --pd-app-h1-lh: 34px;     --pd-app-h1-track: -0.02em;
  --pd-app-money-size: 34px;  --pd-app-money-lh: 40px;  --pd-app-money-track: -0.02em;
  --pd-app-title-size: 17px;  --pd-app-title-lh: 22px;  --pd-app-title-track: -0.01em;
  --pd-app-body-size: 15px;   --pd-app-body-lh: 22px;
  --pd-app-input-size: 16px;  --pd-app-input-lh: 22px;
  --pd-app-label-size: 15px;  --pd-app-label-lh: 20px;
  --pd-app-meta-size: 13px;   --pd-app-meta-lh: 18px;
  --pd-app-btn-size: 15px;    --pd-app-dtitle-size: 22px;   --pd-app-dtitle-lh: 28px;
  --pd-app-tag-size: 13px;    --pd-app-appt-size: 15px;     --pd-app-strip-size: 13px;    /* a tag, an agenda block's client, the week strip */
  --pd-app-initials-size: 13px;  --pd-app-initials-40: 15px;   /* initials in a 32 and a 40 avatar */
  --pd-app-h1-phone: 28px;    --pd-app-h1-phone-lh: 34px;   /* iOS title 1 */
}
@media (max-width: 767px) {
  body.pd-app, :where(body.pd-site) .pd-app {
    --pd-r-2: 10px;
    --app-r-control: 12px;  --app-r-card: 14px;  --app-r-thumb: 10px;  --app-r-card-in: 13px;
    /* the phone reads as iOS does: body 17, subhead 15, footnote 13 */
    --pd-app-h1-size: 28px;     --pd-app-h1-lh: 34px;
    --pd-app-title-size: 17px;  --pd-app-title-lh: 22px;
    --pd-app-body-size: 17px;   --pd-app-body-lh: 24px;
    --pd-app-input-size: 17px;  --pd-app-input-lh: 24px;
    --pd-app-label-size: 15px;  --pd-app-label-lh: 20px;
    --pd-app-meta-size: 15px;   --pd-app-meta-lh: 20px;
    --pd-app-btn-size: 17px;
  }
}
body.pd-app[data-theme="dark"], :where(body.pd-site) .pd-app[data-theme="dark"] {
  --app-line: rgb(229 232 234 / 0.1);          /* a light hairline at night */
  --app-shadow-card: inset 0 1px 0 rgb(229 232 234 / 0.04), 0 1px 2px rgb(7 9 12 / 0.4), 0 10px 28px -10px rgb(7 9 12 / 0.6);
  --app-shadow-raised: inset 0 1px 0 rgb(229 232 234 / 0.06), 0 1px 2px rgb(7 9 12 / 0.5);
  --app-shadow-thumb: inset 0 1px 0 rgb(229 232 234 / 0.1), 0 1px 3px rgb(7 9 12 / 0.6);
  --app-shadow-knob: 0 2px 4px rgb(7 9 12 / 0.5);
  --app-shadow-primary: inset 0 1px 0 rgb(255 255 255 / 0.45), 0 1px 2px rgb(7 9 12 / 0.6);
  --app-shadow-press: inset 0 1px 3px rgb(7 9 12 / 0.45);
  --app-shadow-pop: 0 0 0 1px rgb(229 232 234 / 0.1), 0 16px 40px -12px rgb(7 9 12 / 0.7);
  --app-shadow-dialog: 0 0 0 1px rgb(229 232 234 / 0.1), 0 32px 80px -20px rgb(7 9 12 / 0.8);
  --app-slate-shadow: drop-shadow(0 6px 10px rgb(7 9 12 / 0.45));
  --app-solid-press: var(--pd-mist);           /* ink on it 7.56:1 */
  --app-tint: rgb(229 232 234 / 0.08);
  --app-tint-hover: rgb(229 232 234 / 0.12);
  --app-tint-press: rgb(229 232 234 / 0.17);
  --app-field: rgb(7 9 12 / 0.28);            /* a field is a recess at night */
  --app-seg-track: rgb(7 9 12 / 0.4);
  --app-seg-thumb: var(--pd-d-370);
  --app-switch-off: var(--pd-d-edge);
  --app-switch-on: var(--pd-fog);
  --app-knob: var(--pd-d-text);
  --app-knob-on: var(--pd-ink);
  --app-bar: rgb(27 32 36 / 0.96);             /* over white paper, fog words still 9.4:1 */
  --app-skel: rgb(229 232 234 / 0.08);
  --app-skel-sweep: rgb(229 232 234 / 0.07);
  --app-chrome-hi: rgb(255 255 255 / 0.06);
}

/* =====================================================================================
   DIRECTION B « Liquid glass and depth » (Youssef, 2026-10-27: « redo the software accordingly, you should go crazy »).
   The software's own pages (body.pd-app) and the site's frames, on top of the premium pass above; DIRECTION-B.md is the
   spec.
   - A living ground: the day paper (#E9EFF3) or the ink at night, lit by three soft glows (shell.js .pd-ground), never
     darker than the paper by day nor lighter than a deep step at night, so every word laid straight on it keeps its floor.
   - Materials in layers: cards are frosted panes (--app-card over the ground, a white sheen, a specular rim and a tinted
     ambient shadow); bars, toolbars, the tab bar, menus and sheets are glass (--app-glass*) with a backdrop blur; the
     side panel is smoked glass in both themes, the brand's stone.
   - Shapes: controls are capsules, cards 20 (phone 22), menus 18, dialogs 28, sheets 34; a box inside a box never has a
     larger radius than its parent.
   - Colour from the palette's own hue band: one accent (« sky », the steel made bluer), the status hues as soft fills,
     and app-icon tiles in eight tones for the menu, the card heads and the banners.
   - Motion on springs (linear() curves, damping 0.58, 0.7, 0.82): presses scale and settle, cards lift, thumbs and the
     tab lens slide, a card grows into the next screen (pageswitch.js), screens arrive as a cascade.
   Raw colour values live here only (S11). Every pair that carries text or a control is in tools/check-contrast.mjs.
   ===================================================================================== */
:root {
  /* primitives Direction B adds: lighter glows, the accent, tile tones */
  --pd-l-glow-sky: #ECEFF0;       /* a cool glow on the day paper (never darker than it: meta grey keeps 7.2:1) */
  --pd-l-glow-mint: #E9F4EF;      /* a faint mint glow */
  --pd-l-edge-2: #EFF2F2;         /* sunken, by day (meta grey on it 7.4:1) */
  --pd-d-glow-sky: #21262A;       /* night glows: never lighter than this (meta grey on it 7.3:1) */
  --pd-d-glow-teal: #24262C;
  --pd-d-sunk: #282B32;           /* sunken, at night */
  --pd-d-text-3b: #C3C5CA;        /* meta grey at night, one step lighter for the glass panes */
  --pd-d-chrome-2: #BFC1C6;       /* group labels on the smoked side panel */
  --pd-sky: #2A53EE;              /* the accent: the palette's steel made bluer (white on it 5.9:1) */
  --pd-sky-2: #4F7FFE;            /* its lighter stop */
  --pd-sky-ink: #1735BB;          /* its words by day (on its soft fill 7.9:1) */
  --pd-sky-d: #8DAEFE;            /* at night */
  --pd-sky-ink-d: #D1D2D4;        /* its words at night */
  --pd-crit-ink-b: #842A25;       /* overdue words and « Supprimer » on the day paper (7.7:1; the old one was 6.99 there) */
  --pd-ink-top: #393C41;          /* the primary button's top stop (white on it 11:1) */
  --pd-fog-low: #C0C1C6;          /* the night primary's bottom stop (ink on it 10.3:1) */
  --pd-green-2: #3A8C5C;          /* the switch on, top stop; a green tile */
  --pd-green-d: #2E8A55;          /* the switch on at night */
  --pd-amber-2: #B07A1E;          /* an amber tile, top stop */
  --pd-red-2: #C0524B;            /* a red tile, top stop */
  --pd-slate-2: #6A7077;          /* a slate tile, top stop */
  --pd-teal: #1F5A52;  --pd-teal-2: #2F7A70;
  --pd-plum: #6E3753;  --pd-plum-2: #925475;
  --pd-ink-tile: #1B2024;  --pd-ink-tile-2: #42474D;
}
body.pd-app, :where(body.pd-site) .pd-app {
  /* the ground and its glows */
  --app-bg: var(--pd-l-080);
  --app-glow-1: var(--pd-white);
  --app-glow-2: var(--pd-l-glow-sky);
  --app-glow-3: var(--pd-l-glow-mint);
  --app-edge: rgb(237 238 241 / 0.93);         /* the soft edge under the floating bars once the page scrolls */
  /* materials */
  --app-card: rgb(255 255 255 / 0.86);         /* a frosted pane on the ground */
  --app-card-sheen: rgb(255 255 255 / 0.75);   /* its sheen, top to bottom */
  --app-card-glint: rgb(79 127 254 / 0.08);    /* the light that follows the pointer over a pane (desktop) */
  --app-glass: rgb(255 255 255 / 0.66);        /* toolbars: regular glass */
  --app-glass-thick: rgb(255 255 255 / 0.95);  /* menus, popovers, sheets, dialogs: frosted, thick enough to read without a blur */
  --app-glass-ctl: rgb(255 255 255 / 0.84);    /* a floating control group (search, bell, account) */
  --app-glass-bar: rgb(255 255 255 / 0.92);    /* the floating tab bar: thick enough to read where a browser draws no blur */
  --app-glass-rim: rgb(255 255 255 / 0.95);    /* the specular rim, top edge */
  --app-glass-edge: rgb(36 41 46 / 0.11);      /* the outer hairline of a pane */
  --app-glass-blur: saturate(180%) blur(22px);
  --app-glass-blur-thin: saturate(160%) blur(12px);
  --app-surface-2: var(--pd-l-edge-2);
  --app-hover: rgb(36 41 46 / 0.05);
  --app-line: rgb(36 41 46 / 0.09);
  --app-tint: rgb(36 41 46 / 0.065);
  --app-tint-hover: rgb(36 41 46 / 0.095);
  --app-tint-press: rgb(36 41 46 / 0.14);
  --app-field: rgb(255 255 255 / 0.62);         /* a field: a lighter well with its 3:1 edge, on a pane or on the ground */
  --app-seg-track: rgb(36 41 46 / 0.075);
  --app-skel: rgb(36 41 46 / 0.075);
  --app-skel-sweep: rgb(255 255 255 / 0.75);
  /* depth */
  --app-shadow-card: inset 0 1px 0 var(--app-glass-rim), 0 0 0 0.5px var(--app-glass-edge), 0 1px 2px rgb(36 41 46 / 0.05), 0 8px 20px -8px rgb(36 41 46 / 0.12), 0 28px 56px -28px rgb(36 41 46 / 0.22);
  --app-shadow-lift: inset 0 1px 0 var(--app-glass-rim), 0 0 0 0.5px rgb(36 41 46 / 0.13), 0 2px 4px rgb(36 41 46 / 0.06), 0 16px 32px -12px rgb(36 41 46 / 0.2), 0 44px 80px -32px rgb(36 41 46 / 0.34);
  --app-shadow-float: inset 0 1px 0 var(--app-glass-rim), inset 0 0 0 0.5px rgb(255 255 255 / 0.55), 0 0 0 0.5px rgb(36 41 46 / 0.14), 0 4px 12px rgb(36 41 46 / 0.08), 0 20px 48px -14px rgb(36 41 46 / 0.34);
  --app-shadow-pop: inset 0 1px 0 var(--app-glass-rim), 0 0 0 0.5px rgb(36 41 46 / 0.14), 0 8px 24px rgb(36 41 46 / 0.1), 0 30px 70px -20px rgb(36 41 46 / 0.38);
  --app-shadow-dialog: inset 0 1px 0 var(--app-glass-rim), 0 0 0 0.5px rgb(36 41 46 / 0.14), 0 12px 32px rgb(36 41 46 / 0.12), 0 50px 110px -30px rgb(36 41 46 / 0.5);
  --app-shadow-raised: inset 0 1px 0 rgb(255 255 255 / 0.7), 0 0 0 0.5px rgb(36 41 46 / 0.08), 0 1px 2px rgb(36 41 46 / 0.08);
  --app-shadow-thumb: inset 0 1px 0 var(--pd-white), 0 0 0 0.5px rgb(36 41 46 / 0.08), 0 2px 6px rgb(36 41 46 / 0.14), 0 6px 14px -4px rgb(36 41 46 / 0.14);
  --app-shadow-knob: 0 0 0 0.5px rgb(36 41 46 / 0.1), 0 3px 8px rgb(36 41 46 / 0.18), 0 1px 1px rgb(36 41 46 / 0.08);
  --app-shadow-primary: inset 0 1px 0 rgb(255 255 255 / 0.22), inset 0 -1px 0 rgb(0 0 0 / 0.25), 0 1px 2px rgb(17 18 24 / 0.2), 0 6px 16px -6px rgb(17 18 24 / 0.45);
  --app-shadow-press: inset 0 2px 6px rgb(17 18 24 / 0.35);
  --app-slate-shadow: drop-shadow(0 1px 1px rgb(36 41 46 / 0.08)) drop-shadow(0 10px 18px rgb(36 41 46 / 0.14));
  /* the side panel: smoked glass, the brand's stone, in both themes */
  --app-chrome-bg: rgb(17 21 24 / 0.95);
  --app-chrome-top: rgb(37 39 46 / 0.96);
  --app-chrome-text-2: var(--pd-d-chrome-2);
  --app-chrome-hover: rgb(255 255 255 / 0.07);
  --app-chrome-active: rgb(255 255 255 / 0.13);
  --app-chrome-line: rgb(255 255 255 / 0.1);
  --app-chrome-rim: rgb(255 255 255 / 0.14);
  /* the accent and the soft status fills */
  --app-sky: var(--pd-sky);
  --app-sky-2: var(--pd-sky-2);
  --app-sky-ink: var(--pd-sky-ink);
  --app-sky-soft: rgb(42 83 238 / 0.1);
  --app-on-sky: var(--pd-white);
  --app-good-soft: rgb(42 116 73 / 0.13);
  --app-warn-soft: rgb(176 122 30 / 0.16);
  --app-crit-soft: rgb(164 59 53 / 0.07);
  --app-neutral-soft: rgb(36 41 46 / 0.07);
  --app-count-bg: var(--pd-sky-ink);
  --app-on-count: var(--pd-white);
  --app-now: var(--pd-sky);
  --app-now-label: var(--pd-sky-ink);
  --app-on-now: var(--pd-white);
  --app-focus-glow: rgb(42 83 238 / 0.25);
  /* the primary: an ink gradient with its light */
  --app-solid-top: var(--pd-ink-top);
  /* tiles: eight tones, two stops each, a white glyph (3:1 at least on the lighter stop) */
  --app-tile-sky: var(--pd-sky-2);      --app-tile-sky-2: var(--pd-sky);
  --app-tile-green: var(--pd-green-2);  --app-tile-green-2: var(--pd-good-l);
  --app-tile-amber: var(--pd-amber-2);  --app-tile-amber-2: var(--pd-warn-l);
  --app-tile-red: var(--pd-red-2);      --app-tile-red-2: var(--pd-crit-l);
  --app-tile-slate: var(--pd-slate-2);  --app-tile-slate-2: var(--pd-l-text-3);
  --app-tile-teal: var(--pd-teal-2);    --app-tile-teal-2: var(--pd-teal);
  --app-tile-plum: var(--pd-plum-2);    --app-tile-plum-2: var(--pd-plum);
  --app-tile-ink: var(--pd-ink-tile-2); --app-tile-ink-2: var(--pd-ink-tile);
  --app-on-tile: var(--pd-white);
  /* data: the series carry the palette's hues now (late red, not due sky, done green) */
  --app-viz-late: var(--pd-red-2);   --app-viz-late-2: var(--pd-crit-l);
  --app-viz-due: var(--pd-sky-2);    --app-viz-due-2: var(--pd-sky);
  --app-viz-done: var(--pd-green-2); --app-viz-done-2: var(--pd-good-l);
  --app-viz-track: rgb(36 41 46 / 0.07);
  /* controls */
  --app-switch-off: rgb(17 18 24 / 0.065);
  --app-switch-ring: var(--app-border);
  --app-switch-on: var(--pd-good-l);
  --app-switch-on-2: var(--pd-green-2);
  --app-knob: var(--pd-white);
  --app-knob-on: var(--pd-white);
  --app-seg-thumb: var(--pd-white);
  /* shapes */
  --app-r-chip: 8px;  --app-r-control: 12px;  --app-r-card: 20px;  --app-r-card-in: 19.5px;  --app-r-pop: 18px;  --app-r-dialog: 28px;
  --app-r-sheet: 34px;  --app-r-bar: 6px;  --app-r-thumb: 999px;  --app-r-fab: 999px;  --app-r-tile: 8px;  --app-r-inset: 14px;  --app-r-capsule: 999px;
  --pd-r-1: 6px;  --pd-r-2: 12px;  --pd-r-3: 18px;  --pd-r-4: 14px;
  /* motion: springs as linear() (damping 0.7 with 4.6 % overshoot; 0.58 with 10.6 %; 0.82 with 1.1 %) */
  --app-spring: linear(0, 0.057 3.6%, 0.189 7.1%, 0.352 10.7%, 0.518 14.3%, 0.667 17.9%, 0.791 21.4%, 0.887 25%, 0.956 28.6%, 1.002 32.1%, 1.029 35.7%, 1.042 39.3%, 1.046 42.9%, 1.043 46.4%, 1.037 50%, 1.03 53.6%, 1.022 57.1%, 1.015 60.7%, 1.01 64.3%, 1.005 67.9%, 1.002 71.4%, 1 75%, 0.999 78.6%, 0.998 82.1%, 0.998 85.7%, 0.998 89.3%, 0.998 92.9%, 0.999 96.4%, 1);
  --app-spring-bounce: linear(0, 0.08 3.6%, 0.265 7.1%, 0.484 10.7%, 0.693 14.3%, 0.864 17.9%, 0.987 21.4%, 1.063 25%, 1.099 28.6%, 1.106 32.1%, 1.095 35.7%, 1.074 39.3%, 1.051 42.9%, 1.029 46.4%, 1.012 50%, 0.999 53.6%, 0.992 57.1%, 0.989 60.7%, 0.989 64.3%, 0.99 67.9%, 0.993 71.4%, 0.995 75%, 0.997 78.6%, 0.999 82.1%, 1 85.7%, 1.001 89.3%, 1.001 92.9%, 1.001 96.4%, 1);
  --app-spring-soft: linear(0, 0.04 3.6%, 0.135 7.1%, 0.256 10.7%, 0.384 14.3%, 0.507 17.9%, 0.618 21.4%, 0.713 25%, 0.791 28.6%, 0.854 32.1%, 0.903 35.7%, 0.939 39.3%, 0.966 42.9%, 0.984 46.4%, 0.997 50%, 1.004 53.6%, 1.009 57.1%, 1.011 60.7%, 1.011 64.3%, 1.011 67.9%, 1.009 71.4%, 1.008 75%, 1.007 78.6%, 1.005 82.1%, 1.004 85.7%, 1.003 89.3%, 1.002 92.9%, 1.002 96.4%, 1);
  --app-dur-press: 90ms;  --app-dur-settle: 460ms;  --app-dur-lift: 380ms;  --app-dur-slide: 440ms;  --app-dur-sheet: 560ms;
  /* small lights and shades on controls */
  --app-go: var(--pd-good-text-l);            /* a swipe past its line: white words on it 8.7:1 */
  --app-on-go: var(--pd-white);
  --app-light: var(--pd-white);                /* the light a colour is mixed with for a tile's top stop */
  --app-tile-shadow: inset 0 1px 0 rgb(255 255 255 / 0.3), inset 0 -1px 0 rgb(0 0 0 / 0.12), 0 1px 2px rgb(17 18 24 / 0.18);
  --app-shadow-tint: inset 0 1px 0 rgb(255 255 255 / 0.55), inset 0 0 0 0.5px rgb(36 41 46 / 0.05);
  --app-field-shade: rgb(36 41 46 / 0.07);    /* the soft recess at the top of a field or a track */
  --app-good-ink: var(--pd-good-text-l);       /* green words on a green fill (7.2:1) */
  --app-crit-ink: var(--pd-crit-ink-b);
  --app-badge-bg: var(--pd-crit-ink-l);        /* the bell's count: white on it 8.1:1 */
  --app-on-badge: var(--pd-white);
  --app-focus: var(--pd-sky);                  /* the 2 px ring, the accent now (5.9:1 on a pane), with its soft halo */
  --app-scrim: rgb(36 41 46 / 0.26);           /* lighter than before: the window's glass and the blur behind it do the work */
  --app-scrim-blur: blur(6px) saturate(120%);
  --pd-app-count-size: 12px;  --pd-app-count-lh: 16px;
  /* the frame: a floating side panel, floating bars */
  --pd-sidebar-w: 264px;  --pd-rail-w: 84px;  --pd-topbar-h: 64px;  --pd-topbar-h-phone: 56px;  --pd-tabbar-h: 64px;
  /* type: the iOS large title, one step up where it counts */
  --pd-app-h1-size: 34px;     --pd-app-h1-lh: 40px;     --pd-app-h1-track: -0.026em;
  --pd-app-money-size: 40px;  --pd-app-money-lh: 44px;  --pd-app-money-track: -0.03em;
  --pd-app-dtitle-size: 24px; --pd-app-dtitle-lh: 30px;
  --pd-app-h1-phone: 34px;    --pd-app-h1-phone-lh: 41px;
}
@media (max-width: 767px) {
  body.pd-app, :where(body.pd-site) .pd-app {
    --app-r-card: 22px;  --app-r-card-in: 21.5px;  --app-r-control: 14px;  --app-r-pop: 20px;
    --pd-app-title-size: 20px;  --pd-app-title-lh: 25px;
    --pd-app-money-size: 40px;  --pd-app-money-lh: 46px;
  }
}
body.pd-app[data-theme="dark"], :where(body.pd-site) .pd-app[data-theme="dark"] {
  --app-bg: var(--pd-ink);
  --app-glow-1: var(--pd-d-glow-sky);
  --app-glow-2: var(--pd-d-glow-teal);
  --app-glow-3: var(--pd-d-075);
  --app-edge: rgb(17 18 24 / 0.93);
  --app-card: rgb(40 42 49 / 0.74);
  --app-card-sheen: rgb(255 255 255 / 0.05);
  --app-card-glint: rgb(209 210 212 / 0.07);
  --app-glass: rgb(45 48 55 / 0.62);
  --app-glass-thick: rgb(34 39 43 / 0.96);
  --app-glass-ctl: rgb(42 44 50 / 0.94);
  --app-glass-bar: rgb(41 43 50 / 0.94);
  --app-tile-ink: var(--pd-slate-2);  --app-tile-ink-2: var(--pd-slate);   /* the ink tile, lifted at night so it still reads on a dark pane */
  --app-glass-rim: rgb(255 255 255 / 0.13);
  --app-glass-edge: rgb(0 0 0 / 0.55);
  --app-surface-2: var(--pd-d-sunk);
  --app-text-3: var(--pd-d-text-3b);
  --app-hover: rgb(255 255 255 / 0.05);
  --app-line: rgb(229 232 234 / 0.09);
  --app-tint: rgb(229 232 234 / 0.09);
  --app-tint-hover: rgb(229 232 234 / 0.13);
  --app-tint-press: rgb(229 232 234 / 0.16);
  --app-field: rgb(0 0 0 / 0.22);
  --app-seg-track: rgb(0 0 0 / 0.3);
  --app-seg-thumb: var(--pd-d-370);
  --app-skel: rgb(229 232 234 / 0.08);
  --app-skel-sweep: rgb(229 232 234 / 0.09);
  --app-shadow-card: inset 0 1px 0 var(--app-glass-rim), 0 0 0 0.5px rgb(0 0 0 / 0.6), 0 2px 4px rgb(0 0 0 / 0.25), 0 24px 50px -24px rgb(0 0 0 / 0.7);
  --app-shadow-lift: inset 0 1px 0 rgb(255 255 255 / 0.18), 0 0 0 0.5px rgb(0 0 0 / 0.6), 0 4px 8px rgb(0 0 0 / 0.3), 0 36px 70px -28px rgb(0 0 0 / 0.85);
  --app-shadow-float: inset 0 1px 0 var(--app-glass-rim), inset 0 0 0 0.5px rgb(255 255 255 / 0.06), 0 0 0 0.5px rgb(0 0 0 / 0.6), 0 20px 48px -12px rgb(0 0 0 / 0.75);
  --app-shadow-pop: inset 0 1px 0 var(--app-glass-rim), 0 0 0 0.5px rgb(0 0 0 / 0.6), 0 30px 70px -20px rgb(0 0 0 / 0.85);
  --app-shadow-dialog: inset 0 1px 0 var(--app-glass-rim), 0 0 0 0.5px rgb(0 0 0 / 0.6), 0 50px 110px -30px rgb(0 0 0 / 0.9);
  --app-shadow-raised: inset 0 1px 0 rgb(255 255 255 / 0.08), 0 1px 2px rgb(0 0 0 / 0.4);
  --app-shadow-thumb: inset 0 1px 0 rgb(255 255 255 / 0.14), 0 0 0 0.5px rgb(0 0 0 / 0.4), 0 3px 8px rgb(0 0 0 / 0.45);
  --app-shadow-knob: 0 3px 8px rgb(0 0 0 / 0.45);
  --app-shadow-primary: inset 0 1px 0 rgb(255 255 255 / 0.7), inset 0 -1px 0 rgb(17 18 24 / 0.2), 0 1px 2px rgb(0 0 0 / 0.5), 0 6px 18px -6px rgb(0 0 0 / 0.7);
  --app-slate-shadow: drop-shadow(0 10px 18px rgb(0 0 0 / 0.5));
  --app-chrome-bg: rgb(32 37 41 / 0.84);
  --app-chrome-active: rgb(255 255 255 / 0.13);   /* the lens: glass on the panel (the older .pd-app night value is an opaque slate) */
  --app-chrome-hover: rgb(255 255 255 / 0.07);
  --app-chrome-top: rgb(44 50 54 / 0.86);
  --app-sky: var(--pd-sky-d);
  --app-sky-2: var(--pd-sky-ink-d);
  --app-sky-ink: var(--pd-sky-ink-d);
  --app-sky-soft: rgb(141 174 254 / 0.09);
  --app-on-sky: var(--pd-ink);
  --app-good-soft: rgb(130 203 155 / 0.16);
  --app-warn-soft: rgb(225 173 99 / 0.13);
  --app-crit-soft: rgb(251 152 144 / 0.15);
  --app-neutral-soft: rgb(229 232 234 / 0.09);
  --app-count-bg: var(--pd-sky-ink-d);
  --app-on-count: var(--pd-ink);
  --app-crit-ink: var(--pd-crit-d-hover);       /* overdue words on the glass panes at night (8.4:1) */
  --app-now: var(--pd-sky-d);
  --app-now-label: var(--pd-sky-ink-d);
  --app-on-now: var(--pd-ink);
  --app-focus-glow: rgb(141 174 254 / 0.3);
  --app-solid-top: var(--pd-paper-white);
  --app-solid: var(--pd-fog-low);
  --app-solid-hover: var(--pd-fog);
  --app-viz-due: var(--pd-sky-ink-d);  --app-viz-due-2: var(--pd-sky-d);
  --app-viz-done: var(--pd-good-d);    --app-viz-done-2: var(--pd-green-d);
  --app-viz-late: var(--pd-crit-d);    --app-viz-late-2: var(--pd-red-2);
  --app-viz-track: rgb(229 232 234 / 0.1);
  --app-tile-shadow: inset 0 1px 0 rgb(255 255 255 / 0.22), inset 0 -1px 0 rgb(0 0 0 / 0.2), 0 1px 2px rgb(0 0 0 / 0.4);
  --app-shadow-tint: inset 0 1px 0 rgb(255 255 255 / 0.07), inset 0 0 0 0.5px rgb(255 255 255 / 0.04);
  --app-field-shade: rgb(0 0 0 / 0.3);
  --app-good-ink: var(--pd-good-text-d);
  --app-go: var(--pd-good-d);
  --app-on-go: var(--pd-ink);
  --app-badge-bg: var(--pd-crit-d);
  --app-on-badge: var(--pd-ink);
  --app-scrim: rgb(0 0 0 / 0.45);
  --app-switch-off: rgb(0 0 0 / 0.3);           /* a recess at night: its ring keeps 3:1 */
  --app-switch-on: var(--pd-green-d);
  --app-switch-on-2: var(--pd-green-2);
  --app-knob: var(--pd-white);
  --app-knob-on: var(--pd-white);
}

/* =====================================================================================
   LIQUID « the real Liquid Glass » (Youssef, 2026-10-27: « I want the real liquid glass feel to show please, i want a
   lot of attention to details small details »; DIRECTION-LIQUID.md is the spec). The software's own pages (body.pd-app),
   on top of Direction B; a software frame drawn inside a site page or the kit takes these roles in their solid form
   (« THE SOFTWARE ON THE SITE », after the reduced-transparency blocks).
   - Glass is the navigation and control layer only: the side panel (smoked), the floating search and cluster, toolbars,
     the phone's tab bar and nav cluster (regular), menus, the palette, windows, sheets (thick), toasts (dark).
   - Content is solid: panes are white by day, a raised dark pane at night, drawn by a device-pixel edge and a soft shadow.
   - Tiles keep B's hue per menu entry, lifted into the one band where a white glyph keeps 3:1 on the tile and the tile
     keeps 3:1 against the smoked menu and the « Plus » glass.
   - Hairlines are one device pixel (--app-hair, shell.js sets --pd-dpr on <html>).
   Raw values live here only. Every pair that carries words or a control is in tools/check-contrast.mjs.
   ===================================================================================== */
:root {
  /* the tenants' own keys by day (3.3): words in their colour (9.6 on white), the light in the panel (5.2 on the smoke) */
  --pd-tenant-claire-ink: #643651;  --pd-tenant-claire-hi: #C4A9B7;  --pd-tenant-claire-10: rgb(123 63 94 / 0.10);
  --pd-tenant-leman-ink: #1E4C47;   --pd-tenant-leman-hi: #9CB5B1;   --pd-tenant-leman-10: rgb(36 90 82 / 0.10);
  /* their tab lens (the accent at 12 %, as body.pd-own-key mixes it), for the contrast tool */
  --pd-tenant-claire-12: rgb(123 63 94 / 0.12);  --pd-tenant-leman-12: rgb(36 90 82 / 0.12);
  /* the brand settings' accent presets (S19, 11.7): white words on each 7.72 to 7.80:1 (Léman and Prune are the tenants') */
  --pd-preset-brique: #80403C;  --pd-preset-ocre: #784718;  --pd-preset-sapin: #255D34;
  --pd-preset-petrole: #135A69;  --pd-preset-bleu: #355384;  --pd-preset-violet: #5D487F;
}
body.pd-app, :where(body.pd-site) .pd-app {
  /* the device pixel: a hairline is one physical pixel at every zoom and density. Never under 0.35 px: WebKit floors a
     border of calc(1px / 3) to nothing at 3x (an iPhone lost every separator), and 0.35 px snaps to one device pixel there
     (integration 2026-10-28, _requests/G4.md 18, G3.md 1) */
  --app-hair: max(0.35px, calc(1px / var(--pd-dpr, 1)));
  /* panes: solid, white by day */
  --app-pane: #FFFFFF;
  --app-pane-2: #EFF2F2;
  --app-pane-edge: rgb(17 18 24 / 0.10);
  --app-pane-hi: rgb(255 255 255 / 0);
  --app-card: var(--app-pane);
  --app-surface: var(--app-pane);
  --app-surface-2: var(--app-pane-2);
  --app-text: #111218;
  --app-text-2: #32353C;
  --app-text-3: #4A4E54;                        /* never on glass */
  --app-line: rgb(17 18 24 / 0.09);
  --app-line-strong: rgb(17 18 24 / 0.16);
  --app-hover: rgb(36 41 46 / 0.05);
  --app-selected: #EDEEF0;
  --app-border: #83878E;
  --app-shadow-pane: 0 0 0 var(--app-hair) var(--app-pane-edge), 0 1px 2px rgb(17 18 24 / 0.05), 0 6px 16px -8px rgb(17 18 24 / 0.10), 0 20px 40px -24px rgb(17 18 24 / 0.16);
  --app-shadow-card: var(--app-shadow-pane);
  /* glass, regular: a clear rim band (body) and a frosted core where the words sit */
  --app-glass-body: rgb(250 252 253 / 0.40);
  --app-glass-core: rgb(250 252 253 / 0.74);
  --app-glass-rimw: 3px;
  --app-glass-thick: rgb(249 250 249 / 0.84);
  --app-glass-blur: blur(14px) saturate(170%);
  --app-glass-blur-thick: blur(28px) saturate(160%);
  --app-glass-blur-smoke: saturate(150%) blur(30px);
  --app-glass-sheen: rgb(255 255 255 / 0.28);
  --app-glass-ring: linear-gradient(135deg, rgb(255 255 255 / 0.95) 0%, rgb(255 255 255 / 0.40) 20%, rgb(255 255 255 / 0.06) 46%, rgb(255 255 255 / 0.06) 62%, rgb(255 255 255 / 0.30) 86%, rgb(255 255 255 / 0.60) 100%);
  --app-glass-ring-lit: rgb(255 255 255 / 0.60);
  --app-glass-edge: rgb(17 18 24 / 0.12);
  --app-glass-edgelight: inset 0 0 0 var(--app-hair) rgb(255 255 255 / 0.35), inset 0 0 10px rgb(255 255 255 / 0.18);
  --app-shadow-glass: 0 0 0 var(--app-hair) var(--app-glass-edge), 0 1px 2px rgb(17 18 24 / 0.08), 0 10px 30px -10px rgb(17 18 24 / 0.22);
  --app-shadow-glass-pop: 0 0 0 var(--app-hair) var(--app-glass-edge), 0 8px 24px rgb(17 18 24 / 0.10), 0 30px 70px -20px rgb(17 18 24 / 0.36);
  --app-glass-hl: rgb(255 255 255 / 0.22);
  --app-glass-bloom: rgb(255 255 255 / 0.40);
  --app-glass-solid: #F5F7F7;
  --app-glass-thick-solid: #F7F9FA;
  --app-crit-glass: #6E211D;
  /* glass, smoked: the side panel, the brand's stone in both themes */
  --app-smoke-top: rgb(28 33 37 / 0.88);
  --app-smoke-bot: rgb(16 19 22 / 0.90);
  --app-smoke-solid: #22272C;
  --app-chrome-text: #E5E8EA;
  --app-chrome-text-2: #CDD1D5;
  --app-chrome-icon: #B6B9BE;
  --app-chrome-signal: #9FBBFF;
  --app-chrome-hover: rgb(255 255 255 / 0.07);
  --app-chrome-active: rgb(255 255 255 / 0.13);
  --app-chrome-active-text: #FFFFFF;
  --app-chrome-line: rgb(255 255 255 / 0.10);
  --app-chrome-ring: linear-gradient(135deg, rgb(255 255 255 / 0.42) 0%, rgb(255 255 255 / 0.16) 20%, rgb(255 255 255 / 0.03) 46%, rgb(255 255 255 / 0.03) 62%, rgb(255 255 255 / 0.12) 86%, rgb(255 255 255 / 0.26) 100%);
  --app-chrome-thumb: rgb(255 255 255 / 0.28);
  --app-chrome-hl: rgb(255 255 255 / 0.06);          /* the pointer's light on the smoked panel (4.5) */
  --app-chrome-ring-lit: rgb(255 255 255 / 0.22);    /* its ring, brightest near the pointer */
  --app-chrome-focus-glow: rgb(159 187 255 / 0.20);  /* the halo of a focus ring in the panel (the signal at 20 %) */
  --app-tenant-ring: 0 0 0 1px rgb(255 255 255 / 0.18);
  --app-lens-light: inset 0 var(--app-hair) 0 rgb(255 255 255 / 0.22), 0 1px 2px rgb(0 0 0 / 0.25);
  --app-tile-lift: 0 1px 1.5px rgb(0 0 0 / 0.3);     /* the current entry's tile, on its lens */
  --app-bar-light: inset 0 var(--app-hair) 0 rgb(255 255 255 / 0.30);   /* the top light of a chart's bar */
  /* glass, dark: toasts and tooltips */
  --app-toast: rgb(17 18 24 / 0.94);
  --app-on-toast: #FFFFFF;
  /* the scroll edges: a fill under the floating bars, alphas by line (3.2); the no-blur branch below thickens them */
  --app-edge: rgb(237 238 241);
  --app-edge-top: rgb(237 238 241 / 0.86);
  --app-edge-title: rgb(237 238 241 / 0.80);
  --app-edge-foot: rgb(237 238 241 / 0.60);
  --app-edge-none: rgb(237 238 241 / 0);
  --app-edge-label: rgb(237 238 241 / 0.45);
  --app-edge-floor: rgb(237 238 241 / 0.70);
  --app-edge-hold: rgb(237 238 241 / 0.80);     /* the edge held behind the controls (the no-blur branch thickens it) */
  /* the accent (sky), the selection, the focus */
  --app-sky: #2A53EE;
  --app-sky-2: #4F7FFE;
  --app-sky-ink: #1735BB;
  --app-sky-soft: rgb(42 83 238 / 0.10);
  --app-on-sky: #FFFFFF;
  --app-select: rgb(42 83 238 / 0.22);
  --app-focus: var(--app-sky);
  --app-focus-inner: #FFFFFF;
  --app-focus-glow: rgb(42 83 238 / 0.25);
  --app-now: var(--app-sky);
  --app-now-label: var(--app-sky-ink);
  --app-on-now: #FFFFFF;
  --app-menu-hi: #1735BB;
  --app-on-menu-hi: #FFFFFF;
  --app-tab-lens: rgb(42 83 238 / 0.12);
  --app-count-bg: #1735BB;
  --app-on-count: #FFFFFF;
  --app-badge-bg: #8E2F2A;
  --app-on-badge: #FFFFFF;
  --app-crit-ink: #842A25;
  --app-danger: #8E2F2A;
  --app-on-danger: #FFFFFF;
  --app-warn-notice: #FBEFD9;
  --app-warn-edge: rgb(138 86 0 / 0.18);
  /* status pills: opaque grounds, coloured words, the glyph kept (data-g of glyphs.js) */
  --app-pill-done: #E3EFE7;      --app-pill-done-ink: #1B5634;      --app-pill-done-glyph: #2A7449;
  --app-pill-progress: #EDEEF0;  --app-pill-progress-ink: #1735BB;  --app-pill-progress-glyph: #2A53EE;
  --app-pill-wait: #F4ECDC;      --app-pill-wait-ink: #6B4300;      --app-pill-wait-glyph: #8A5600;
  --app-pill-late: #F8ECEB;      --app-pill-late-ink: #842B26;      --app-pill-late-glyph: #A43B35;
  --app-pill-planned: #EDF0F2;   --app-pill-planned-ink: #32353C;   --app-pill-planned-glyph: #32353C;
  --app-pill-good: var(--app-pill-done);
  --app-go: #1B5634;
  --app-on-go: #FFFFFF;
  /* controls */
  --app-solid-top: #393C41;
  --app-solid: #111218;
  --app-solid-press: #111218;
  --app-on-solid: #FFFFFF;
  --app-solid-veil: rgb(255 255 255 / 0.08);
  --app-key-top: #FFFFFF;
  --app-key-bot: #F6F8F9;
  --app-key-veil: rgb(17 18 24 / 0.03);
  --app-shadow-raised: inset 0 1px 0 rgb(255 255 255 / 0.8), 0 0 0 var(--app-hair) rgb(17 18 24 / 0.14), 0 1px 2px rgb(17 18 24 / 0.08);
  --app-shadow-press: inset 0 2px 5px rgb(17 18 24 / 0.35);
  --app-tint-btn: #E9EAED;
  --app-tint-btn-press: #E2E4E5;
  --app-on-tint-btn: #1430C3;
  --app-field: #FFFFFF;
  --app-field-shade: rgb(36 41 46 / 0.07);
  --app-seg-track: rgb(17 18 24 / 0.075);
  --app-seg-thumb: #FFFFFF;
  --app-switch-on: #2A7449;
  --app-switch-on-2: #3A8C5C;
  --app-switch-off: rgb(17 18 24 / 0.065);
  --app-switch-ring: var(--app-border);
  --app-knob: #FFFFFF;
  --app-knob-on: #FFFFFF;
  --app-knob-glass: rgb(255 255 255 / 0.70);
  --app-scroll-thumb: #83878E;
  --app-scroll-thumb-hover: var(--app-text-3);
  --app-scrim: rgb(36 41 46 / 0.26);
  --app-scrim-blur: blur(6px) saturate(120%);
  --app-av-top: #E9EAEC;
  --app-av-bot: #D9DCDD;
  --app-keycap: inset 0 -1px 0 rgb(17 18 24 / 0.12), 0 0 0 var(--app-hair) rgb(17 18 24 / 0.16);
  --app-cmd-foot: rgb(255 255 255 / 0.5);
  --app-crit-wash: rgb(132 42 37 / 0.07);
  --app-crit-wash-2: rgb(132 42 37 / 0.12);
  --app-kbd-ring: rgb(17 18 24 / 0.22);
  --app-stone-top: #383B40;
  --app-stone: #1B2024;
  --app-paper-weight: 0 0 0 var(--app-hair) var(--app-line-strong), var(--app-shadow-pane);
  --app-paper: var(--pd-white);                 /* paper outside .pd-paper (the second sheet under a page, a stage): white in both themes */
  /* a box inside a window or a sheet (a quote, a thread): the pane with a hairline ring, since thick glass by day is the
     well's own colour (6.19, _requests/G3.md 19) */
  --app-well-glass: var(--app-pane);
  --app-well-glass-ring: inset 0 0 0 var(--app-hair) var(--app-line);
  /* the trailing speaker's bubble (the assistant on a call, S09, S10): the sky at 16 % over the pane, so the two
     speakers never read the same (6.19, _requests/G3.md 9) */
  --app-bubble-out: #E3E6E9;
  /* a WhatsApp wall and its bubbles (6.19), mirrored from the site's */
  --app-chat-wall: var(--pd-chat-wall-l);  --app-chat-in: var(--pd-chat-in-l);  --app-chat-out: var(--pd-chat-out-l);
  --app-chat-text: var(--pd-chat-text-l);  --app-chat-meta: var(--pd-chat-meta-l);  --app-chat-tick: var(--pd-chat-tick-l);
  /* tiles: B's hues, lifted into the one band where both the glyph and the tile keep 3:1 (3.5); same in both themes */
  --app-tile-sky: #638DFF;    --app-tile-sky-2: #4273FE;
  --app-tile-green: #42A56C;  --app-tile-green-2: #2F8D59;
  --app-tile-amber: #BF8831;  --app-tile-amber-2: #A6731D;
  --app-tile-red: #E27168;    --app-tile-red-2: #C65D56;
  --app-tile-teal: #4AA194;   --app-tile-teal-2: #378A7F;
  --app-tile-plum: #C57CA2;   --app-tile-plum-2: #AB688B;
  --app-tile-slate: #90949A;  --app-tile-slate-2: #7A7D83;
  --app-tile-ink: #939599;    --app-tile-ink-2: #74787D;
  --app-on-tile: #FFFFFF;
  --app-tile-gloss: radial-gradient(120% 70% at 50% 0%, rgb(255 255 255 / 0.22), rgb(255 255 255 / 0) 62%);
  --app-tile-light: inset 0 var(--app-hair) 0 rgb(255 255 255 / 0.50);
  --app-tile-foot: inset 0 calc(-1 * var(--app-hair)) 0 rgb(0 0 0 / 0.14);
  --app-tile-contact: 0 0 0 var(--app-hair) rgb(12 15 19 / 0.35), 0 1px 1.5px rgb(17 18 24 / 0.28);
  --app-tile-moat: 0 0 0 1px rgb(12 15 19 / 0.60);
  --app-tile-glyph-shadow: drop-shadow(0 0.5px 0.5px rgb(0 0 0 / 0.22));
  --app-tile-shadow: var(--app-tile-light), var(--app-tile-foot), var(--app-tile-contact);
  /* data */
  --app-viz-late: #C0524B;   --app-viz-late-2: #A43B35;
  --app-viz-due: #4F7FFE;    --app-viz-due-2: #2A53EE;
  --app-viz-done: #3A8C5C;   --app-viz-done-2: #2A7449;
  --app-viz-late-1: #C2504A; --app-viz-late-3: #8E2F2A;
  --app-viz-elapsed: rgb(42 83 238 / 0.06);
  --app-viz-hatch: rgb(17 18 24 / 0.10);
  /* radii, concentric (3.8) */
  --app-r-pane: 20px;  --app-r-card: 20px;  --app-r-card-in: 19px;  --app-r-inset: 12px;  --app-r-control: 12px;
  --app-r-pop: 18px;  --app-r-palette: 26px;  --app-r-dialog: 32px;  --app-r-sheet: 34px;  --app-r-tile: 7px;
  --app-r-side: 18px;  --app-r-lens: 10px;  --app-r-check: 7px;
  /* type (3.9) */
  --pd-app-h1-size: 32px;     --pd-app-h1-lh: 38px;     --pd-app-h1-track: -0.024em;
  --pd-app-money-size: 40px;  --pd-app-money-lh: 44px;  --pd-app-money-track: -0.03em;
  --pd-app-dtitle-size: 22px; --pd-app-dtitle-lh: 28px;
  --pd-app-title-size: 17px;  --pd-app-title-lh: 22px;  --pd-app-title-track: -0.012em;
  --pd-app-body-size: 15px;   --pd-app-body-lh: 22px;
  --pd-app-label-size: 14px;  --pd-app-label-lh: 20px;
  --pd-app-meta-size: 14px;   --pd-app-meta-lh: 20px;
  --pd-app-btn-size: 15px;
  --pd-app-pill-size: 13px;   --pd-app-pill-h: 24px;
  --pd-app-tag-size: 12.5px;  --pd-app-count-size: 12px;  --pd-app-count-lh: 16px;
  --pd-app-side-size: 14.5px;
  --pd-app-bar-size: 15px;    --pd-app-bar-lh: 20px;
  --pd-app-tab-size: 11.5px;  --pd-app-tab-lh: 14px;
  --pd-app-mono-size: 13px;   --pd-app-mono-lh: 18px;
  --pd-app-input-size: 16px;
  --pd-app-h1-phone: 34px;    --pd-app-h1-phone-lh: 41px;
  /* the frame (3.10) */
  --pd-sidebar-w: 264px;  --pd-rail-w: 84px;  --pd-topbar-h: 64px;  --pd-topbar-h-phone: 64px;  --pd-tabbar-h: 62px;
  --app-frame-in: 10px;
  /* motion (3.11): the glide is critically damped, it never passes its target */
  --app-glide: linear(0, 0.054 5%, 0.17 10%, 0.305 15%, 0.435 20%, 0.552 25%, 0.65 30%, 0.731 35%, 0.795 40%, 0.845 45%, 0.884 50%, 0.913 55%, 0.936 60%, 0.953 65%, 0.965 70%, 0.975 75%, 0.981 80%, 0.986 85%, 0.99 90%, 0.993 95%, 1);
  --app-ease: cubic-bezier(0.16, 1, 0.3, 1);
  --app-ease-in: cubic-bezier(0.5, 0, 0.75, 0);   /* no longer used for a way out (below) */
  --app-ease-mac: cubic-bezier(0.32, 0.72, 0, 1);
  /* every way out (a sheet, a window, a list, a toast, a scrim; Youssef, 2026-10-28, « blur disappearing late »): front
     loaded with a soft start and no snap at the end, 0.51 of the way at 30 % of the time, 0.80 at half, 0.94 at 70 %.
     The ease-in above did 7 % by half time and 52 % at 85 %, so a scrim's blur held almost whole, then dropped at once */
  --app-ease-exit: cubic-bezier(0.25, 0.1, 0.25, 1);
  --app-pop-ease: cubic-bezier(0.34, 1.56, 0.64, 1);
  --app-dur-micro: 120ms;  --app-dur-press-in: 110ms;  --app-dur-release: 480ms;  --app-dur-tint: 180ms;
  --app-dur-lens: 420ms;  --app-dur-thumb: 300ms;  --app-dur-knob: 260ms;  --app-dur-grow: 360ms;  --app-dur-shrink: 220ms;
  --app-dur-win-in: 420ms;  --app-dur-win-out: 260ms;  --app-dur-sheet-in: 440ms;  --app-dur-sheet-out: 240ms;   /* 6.15 */
  --app-dur-toast-in: 360ms;  --app-dur-toast-out: 220ms;  --app-dur-tabs-min: 320ms;
  --app-dur-handoff: 120ms;                     /* a list that hands over to a sheet or a window fades where it is */
  --app-gel: 1.03 0.95;                         /* the squeeze of a pressed glass control; « 1 » keeps only the light (20.2) */
}
@supports not (transition-timing-function: linear(0, 1)) {
  body.pd-app, :where(body.pd-site) .pd-app { --app-glide: cubic-bezier(0.25, 0.85, 0.3, 1); }
}
@media (max-width: 767px) {
  body.pd-app, :where(body.pd-site) .pd-app {
    --app-r-pane: 22px;  --app-r-card: 22px;  --app-r-card-in: 21px;  --app-r-control: 14px;  --app-r-pop: 20px;
    --pd-app-h1-size: 34px;     --pd-app-h1-lh: 41px;     --pd-app-h1-track: -0.026em;
    --pd-app-money-size: 40px;  --pd-app-money-lh: 46px;
    --pd-app-title-size: 19px;  --pd-app-title-lh: 24px;
    --pd-app-body-size: 17px;   --pd-app-body-lh: 24px;
    --pd-app-label-size: 15px;  --pd-app-label-lh: 20px;
    --pd-app-meta-size: 15px;   --pd-app-meta-lh: 20px;
    --pd-app-btn-size: 17px;
    --pd-app-pill-size: 15px;   --pd-app-pill-h: 28px;
    --pd-app-bar-size: 17px;    --pd-app-bar-lh: 22px;
    --pd-app-mono-size: 13px;   --pd-app-mono-lh: 20px;
    --pd-app-input-size: 17px;
  }
}
body.pd-app[data-theme="dark"], :where(body.pd-site) .pd-app[data-theme="dark"] {
  --app-pane: #202228;
  --app-pane-2: #282B32;
  --app-pane-edge: rgb(229 232 234 / 0.08);
  --app-pane-hi: rgb(255 255 255 / 0.05);
  --app-text: #E5E8EA;
  --app-text-2: #CECFD3;
  --app-text-3: #C3C5CA;
  --app-line: rgb(229 232 234 / 0.09);
  --app-line-strong: rgb(229 232 234 / 0.16);
  --app-hover: rgb(255 255 255 / 0.05);
  --app-selected: #2F343B;
  --app-border: #777B82;
  --app-shadow-pane: inset 0 1px 0 var(--app-pane-hi), 0 0 0 var(--app-hair) var(--app-pane-edge), 0 2px 4px rgb(0 0 0 / 0.30), 0 20px 44px -22px rgb(0 0 0 / 0.70);
  --app-glass-body: rgb(30 35 39 / 0.46);
  --app-glass-core: rgb(30 35 39 / 0.80);
  --app-glass-thick: rgb(32 37 41 / 0.90);
  --app-glass-sheen: rgb(255 255 255 / 0.07);
  --app-glass-ring: linear-gradient(135deg, rgb(255 255 255 / 0.42) 0%, rgb(255 255 255 / 0.16) 20%, rgb(255 255 255 / 0.03) 46%, rgb(255 255 255 / 0.03) 62%, rgb(255 255 255 / 0.12) 86%, rgb(255 255 255 / 0.26) 100%);
  --app-glass-ring-lit: rgb(255 255 255 / 0.24);
  --app-glass-edge: rgb(0 0 0 / 0.55);
  --app-glass-edgelight: inset 0 0 0 var(--app-hair) rgb(255 255 255 / 0.10), inset 0 0 10px rgb(255 255 255 / 0.06);
  --app-shadow-glass: 0 0 0 var(--app-hair) var(--app-glass-edge), 0 1px 2px rgb(0 0 0 / 0.35), 0 14px 36px -12px rgb(0 0 0 / 0.65);
  --app-shadow-glass-pop: 0 0 0 var(--app-hair) var(--app-glass-edge), 0 30px 70px -20px rgb(0 0 0 / 0.85);
  --app-glass-hl: rgb(255 255 255 / 0.09);
  --app-glass-bloom: rgb(255 255 255 / 0.16);
  --app-glass-solid: #25282F;
  --app-glass-thick-solid: #25282F;
  --app-crit-glass: #FDC6C1;
  --app-smoke-top: rgb(41 47 51 / 0.80);
  --app-smoke-bot: rgb(29 33 38 / 0.84);
  --app-smoke-solid: #21232A;
  --app-chrome-hover: rgb(255 255 255 / 0.07);
  --app-chrome-active: rgb(255 255 255 / 0.13);
  --app-toast: rgb(206 207 211 / 0.94);
  --app-on-toast: #111218;
  --app-edge: rgb(17 18 24);
  --app-edge-top: rgb(17 18 24 / 0.86);
  --app-edge-title: rgb(17 18 24 / 0.80);
  --app-edge-foot: rgb(17 18 24 / 0.60);
  --app-edge-none: rgb(17 18 24 / 0);
  --app-edge-label: rgb(17 18 24 / 0.45);
  --app-edge-floor: rgb(17 18 24 / 0.70);
  --app-sky: #8DAEFE;
  --app-sky-2: #D1D2D4;
  --app-sky-ink: #D1D2D4;
  --app-sky-soft: rgb(141 174 254 / 0.09);
  --app-on-sky: #111218;
  --app-select: rgb(141 174 254 / 0.26);
  --app-focus-inner: #202228;
  --app-focus-glow: rgb(141 174 254 / 0.30);
  --app-on-now: #111218;
  --app-menu-hi: #8DAEFE;
  --app-on-menu-hi: #111218;
  --app-tab-lens: rgb(141 174 254 / 0.12);
  --app-count-bg: #D1D2D4;
  --app-on-count: #111218;
  --app-badge-bg: #FB9890;
  --app-on-badge: #111218;
  --app-crit-ink: #FDB1AA;
  --app-danger: #FB9890;
  --app-on-danger: #111218;
  --app-warn-notice: rgb(225 173 99 / 0.14);
  --app-warn-edge: rgb(225 173 99 / 0.22);
  --app-pill-done: #33363D;      --app-pill-done-ink: #A6E8BB;      --app-pill-done-glyph: #82CB9B;
  --app-pill-progress: #2F343B;  --app-pill-progress-ink: #D1D2D4;  --app-pill-progress-glyph: #8DAEFE;
  --app-pill-wait: #30333A;      --app-pill-wait-ink: #F2C98C;      --app-pill-wait-glyph: #E1AD63;
  --app-pill-late: #352B33;      --app-pill-late-ink: #FDB4AE;      --app-pill-late-glyph: #FB9890;
  --app-pill-planned: #2B3135;   --app-pill-planned-ink: #CECFD3;   --app-pill-planned-glyph: #CECFD3;
  --app-go: #82CB9B;
  --app-on-go: #111218;
  --app-solid-top: #F4F6F7;
  --app-solid: #C0C1C6;
  --app-solid-press: #B0B1B5;
  --app-on-solid: #111218;
  --app-solid-veil: rgb(255 255 255 / 0.16);
  --app-key-top: rgb(255 255 255 / 0.085);
  --app-key-bot: rgb(255 255 255 / 0.05);
  --app-key-veil: rgb(255 255 255 / 0.04);
  --app-shadow-raised: inset 0 1px 0 rgb(255 255 255 / 0.07), 0 0 0 var(--app-hair) rgb(229 232 234 / 0.12), 0 1px 2px rgb(0 0 0 / 0.4);
  --app-shadow-press: inset 0 2px 5px rgb(0 0 0 / 0.30);
  --app-tint-btn: #2C3037;
  --app-tint-btn-press: #33383F;
  --app-on-tint-btn: #D1D2D4;
  --app-field: rgb(0 0 0 / 0.22);
  --app-field-shade: rgb(0 0 0 / 0.30);
  --app-seg-track: rgb(0 0 0 / 0.30);
  --app-seg-thumb: #474C52;
  --app-switch-on: #2E8A55;
  --app-switch-on-2: #3A8C5C;
  --app-switch-off: rgb(0 0 0 / 0.30);
  --app-knob-glass: rgb(255 255 255 / 0.70);
  --app-scroll-thumb: #777B82;
  --app-scrim: rgb(0 0 0 / 0.45);
  --app-av-top: #35393E;
  --app-av-bot: #282C33;
  --app-keycap: inset 0 -1px 0 rgb(0 0 0 / 0.30), 0 0 0 var(--app-hair) rgb(229 232 234 / 0.16);
  --app-cmd-foot: rgb(0 0 0 / 0.12);         /* a shade, not a light: white 4 % gave text-2 6.44 over white */
  --app-crit-wash: rgb(253 177 170 / 0.08);
  --app-crit-wash-2: rgb(253 177 170 / 0.14);
  --app-kbd-ring: rgb(229 232 234 / 0.24);
  --app-tile-ink: #939599;    --app-tile-ink-2: #74787D;
  --app-tile-gloss: radial-gradient(120% 70% at 50% 0%, rgb(255 255 255 / 0.14), rgb(255 255 255 / 0) 62%);
  --app-tile-light: inset 0 var(--app-hair) 0 rgb(255 255 255 / 0.30);
  --app-tile-foot: inset 0 calc(-1 * var(--app-hair)) 0 rgb(0 0 0 / 0.22);
  --app-tile-contact: 0 0 0 var(--app-hair) rgb(0 0 0 / 0.5), 0 1px 2px rgb(0 0 0 / 0.5);
  --app-tile-glyph-shadow: drop-shadow(0 0.5px 0.5px rgb(0 0 0 / 0.30));
  --app-viz-late-1: #D46F68; --app-viz-late-2: #FB9890; --app-viz-late-3: #FDB4AE;   /* 3.6: the night ramp runs light, lighter, lightest */
  --app-viz-elapsed: rgb(141 174 254 / 0.08);
  --app-edge-hold: rgb(17 18 24 / 0.80);
  --app-bubble-out: #34393F;
  --app-chat-wall: var(--pd-chat-wall-d);  --app-chat-in: var(--pd-chat-in-d);  --app-chat-out: var(--pd-chat-out-d);
  --app-chat-text: var(--pd-chat-text-d);  --app-chat-meta: var(--pd-chat-meta-d);  --app-chat-tick: var(--pd-chat-tick-d);
  --app-viz-hatch: rgb(206 207 211 / 0.12);
}
/* a business with its own colour lends it to the key by day (shell.js adds pd-own-key: Atelier Claire, Net Léman, A's
   graft). Words take its ink, the menu's focus its light; on glass it shows in icons only. At night everything is Acier */
body.pd-app.pd-own-key:not([data-theme="dark"]) {
  --app-sky: var(--app-accent);
  --app-sky-2: color-mix(in srgb, var(--app-accent) 78%, #FFFFFF);
  --app-sky-ink: var(--app-accent-ink);
  --app-menu-hi: var(--app-accent-ink);
  --app-count-bg: var(--app-accent-ink);
  --app-chrome-signal: var(--app-accent-hi);
  --app-tab-lens: color-mix(in srgb, var(--app-accent) 12%, rgb(255 255 255 / 0));
  --app-select: color-mix(in srgb, var(--app-accent) 22%, rgb(255 255 255 / 0));
  --app-sky-soft: color-mix(in srgb, var(--app-accent) 10%, rgb(255 255 255 / 0));
  --app-focus-glow: color-mix(in srgb, var(--app-accent) 25%, rgb(255 255 255 / 0));
  --app-pill-progress: color-mix(in srgb, var(--app-accent) 10%, #FFFFFF);
  --app-pill-progress-ink: var(--app-accent-ink);
  --app-pill-progress-glyph: var(--app-accent);
  --app-tint-btn: color-mix(in srgb, var(--app-accent) 12%, #FFFFFF);
  --app-tint-btn-press: color-mix(in srgb, var(--app-accent) 18%, #FFFFFF);
  --app-on-tint-btn: var(--app-accent-ink);
}
/* adaptive tint (4.4): a glass bar over a dark ground by day takes the night material and words, locally, and the
   reverse at night; glass.js sets data-pd-under, the swap crossfades (app.css 18.2) */
body.pd-app:not([data-theme="dark"]) .pd-glass[data-pd-under="dark"] {
  --app-glass-body: rgb(30 35 39 / 0.46);  --app-glass-core: rgb(30 35 39 / 0.80);  --app-glass-sheen: rgb(255 255 255 / 0.07);
  --app-glass-ring: linear-gradient(135deg, rgb(255 255 255 / 0.42) 0%, rgb(255 255 255 / 0.16) 20%, rgb(255 255 255 / 0.03) 46%, rgb(255 255 255 / 0.03) 62%, rgb(255 255 255 / 0.12) 86%, rgb(255 255 255 / 0.26) 100%);
  --app-glass-edge: rgb(0 0 0 / 0.55);  --app-glass-hl: rgb(255 255 255 / 0.09);  --app-glass-bloom: rgb(255 255 255 / 0.16);
  --app-text: #E5E8EA;  --app-text-2: #CECFD3;  --app-sky: #8DAEFE;  --app-tab-lens: rgb(141 174 254 / 0.12);
  --app-tint: rgb(229 232 234 / 0.09);  --app-tint-hover: rgb(229 232 234 / 0.13);  --app-tint-press: rgb(229 232 234 / 0.16);
  --app-glass-solid: #25282F;  --app-focus-inner: #202228;
  /* the keys and the red words inside a flipped bar take the night's too, so each keeps its edge on the new material
     (integration, _requests/G3.md 11, G4.md 3) */
  --app-crit-glass: #FDC6C1;  --app-solid-top: #F4F6F7;  --app-solid: #C0C1C6;  --app-solid-press: #B0B1B5;  --app-on-solid: #111218;
  --app-solid-veil: rgb(255 255 255 / 0.16);
  --app-shadow-primary: inset 0 1px 0 rgb(255 255 255 / 0.7), inset 0 -1px 0 rgb(17 18 24 / 0.2), 0 1px 2px rgb(0 0 0 / 0.5), 0 6px 18px -6px rgb(0 0 0 / 0.7);
  --app-key-top: rgb(255 255 255 / 0.085);  --app-key-bot: rgb(255 255 255 / 0.05);  --app-key-veil: rgb(255 255 255 / 0.04);
  --app-shadow-raised: inset 0 1px 0 rgb(255 255 255 / 0.07), 0 0 0 var(--app-hair) rgb(229 232 234 / 0.12), 0 1px 2px rgb(0 0 0 / 0.4);
  --app-tint-btn: #2C3037;  --app-tint-btn-press: #33383F;  --app-on-tint-btn: #D1D2D4;
}
body.pd-app[data-theme="dark"] .pd-glass[data-pd-under="light"] {
  --app-glass-body: rgb(250 252 253 / 0.40);  --app-glass-core: rgb(250 252 253 / 0.74);  --app-glass-sheen: rgb(255 255 255 / 0.28);
  --app-glass-ring: linear-gradient(135deg, rgb(255 255 255 / 0.95) 0%, rgb(255 255 255 / 0.40) 20%, rgb(255 255 255 / 0.06) 46%, rgb(255 255 255 / 0.06) 62%, rgb(255 255 255 / 0.30) 86%, rgb(255 255 255 / 0.60) 100%);
  --app-glass-edge: rgb(17 18 24 / 0.12);  --app-glass-hl: rgb(255 255 255 / 0.22);  --app-glass-bloom: rgb(255 255 255 / 0.40);
  --app-text: #111218;  --app-text-2: #32353C;  --app-sky: #2A53EE;  --app-tab-lens: rgb(42 83 238 / 0.12);
  --app-tint: rgb(36 41 46 / 0.065);  --app-tint-hover: rgb(36 41 46 / 0.095);  --app-tint-press: rgb(36 41 46 / 0.14);
  --app-glass-solid: #F5F7F7;  --app-focus-inner: #FFFFFF;
  --app-crit-glass: #6E211D;  --app-solid-top: #393C41;  --app-solid: #111218;  --app-solid-press: #111218;  --app-on-solid: #FFFFFF;
  --app-solid-veil: rgb(255 255 255 / 0.08);
  --app-shadow-primary: inset 0 1px 0 rgb(255 255 255 / 0.22), inset 0 -1px 0 rgb(0 0 0 / 0.25), 0 1px 2px rgb(17 18 24 / 0.2), 0 6px 16px -6px rgb(17 18 24 / 0.45);
  --app-key-top: #FFFFFF;  --app-key-bot: #F6F8F9;  --app-key-veil: rgb(17 18 24 / 0.03);
  --app-shadow-raised: inset 0 1px 0 rgb(255 255 255 / 0.8), 0 0 0 var(--app-hair) rgb(17 18 24 / 0.14), 0 1px 2px rgb(17 18 24 / 0.08);
  --app-tint-btn: #E9EAED;  --app-tint-btn-press: #E2E4E5;  --app-on-tint-btn: #1430C3;
}
/* the no-blur branch (4.3: glass.js sets html.pd-noblur where the engine draws no backdrop blur, or ?blur=0): the core
   thickens and the scroll edges take their heavier alphas, so nothing ghosts through a bar */
html.pd-noblur body.pd-app {
  --app-glass-core: rgb(250 252 253 / 0.90);
  --app-edge-top: rgb(237 238 241 / 0.94);  --app-edge-title: rgb(237 238 241 / 0.93);  --app-edge-foot: rgb(237 238 241 / 0.80);
  --app-edge-label: rgb(237 238 241 / 0.75);  --app-edge-floor: rgb(237 238 241 / 0.92);
  /* with no blur to smear what lies under them: the edge holds at 0.97 behind the controls (L19: 0.93 still let a dark
     line read at 1.2 to 1.4:1), and windows and sheets are their solid material (thick glass at 0.84 let the page's words
     and a dark key show through; integration, _requests/G1.md R12, G3.md 4 and 16, G4.md 6, G5.md R14) */
  --app-edge-hold: rgb(237 238 241 / 0.97);
  --app-glass-thick: var(--app-glass-thick-solid);
}
html.pd-noblur body.pd-app[data-theme="dark"] {
  --app-glass-core: rgb(30 35 39 / 0.90);
  --app-edge-top: rgb(17 18 24 / 0.94);  --app-edge-title: rgb(17 18 24 / 0.93);  --app-edge-foot: rgb(17 18 24 / 0.80);
  --app-edge-label: rgb(17 18 24 / 0.75);  --app-edge-floor: rgb(17 18 24 / 0.92);
  --app-edge-hold: rgb(17 18 24 / 0.97);
}
/* a bar that carries words over the page (an action bar, a column's toolbar, the public header strip) is 0.94 there: at
   0.90 a line of the page still showed faintly under its words where no edge lies below it (_requests/G4.md 6) */
html.pd-noblur body.pd-app :is(.pd-actionbar, .pd-toolbar, .pd-pub-head).pd-glass { --app-glass-core: rgb(250 252 253 / 0.94); }
html.pd-noblur body.pd-app[data-theme="dark"] :is(.pd-actionbar, .pd-toolbar, .pd-pub-head).pd-glass { --app-glass-core: rgb(30 35 39 / 0.94); }
html.pd-noblur body.pd-app:not([data-theme="dark"]) .pd-glass[data-pd-under="dark"] { --app-glass-core: rgb(30 35 39 / 0.90); }
html.pd-noblur body.pd-app[data-theme="dark"] .pd-glass[data-pd-under="light"] { --app-glass-core: rgb(250 252 253 / 0.90); }
/* reduced transparency (4.7), and ?solid=1 for captures and Safari (no media query there): solid materials, no blur,
   no lens, no pointer light; the ring stays as a hairline; the scrim and the edges become solid */
html.pd-solid body.pd-app[data-theme] {
  --app-glass-body: var(--app-glass-solid);  --app-glass-core: var(--app-glass-solid);  --app-glass-thick: var(--app-glass-thick-solid);
  --app-smoke-top: var(--app-smoke-solid);  --app-smoke-bot: var(--app-smoke-solid);  --app-toast: var(--app-text);
  --app-glass-blur: none;  --app-glass-blur-thick: none;  --app-glass-blur-smoke: none;  --app-scrim-blur: none;
  --app-edge-top: var(--app-edge);  --app-edge-title: var(--app-edge);  --app-edge-foot: var(--app-edge);  --app-edge-label: var(--app-edge);  --app-edge-floor: var(--app-edge);  --app-edge-hold: var(--app-edge);
  --app-glass-hl: rgb(255 255 255 / 0);  --app-glass-sheen: rgb(255 255 255 / 0);
}
html.pd-solid body.pd-app:not([data-theme="dark"]) { --app-scrim: rgb(36 41 46 / 0.42); }
html.pd-solid body.pd-app[data-theme="dark"] { --app-scrim: rgb(0 0 0 / 0.62); }
@media (prefers-reduced-transparency: reduce) {
  :root body.pd-app[data-theme] {
    --app-glass-body: var(--app-glass-solid);  --app-glass-core: var(--app-glass-solid);  --app-glass-thick: var(--app-glass-thick-solid);
    --app-smoke-top: var(--app-smoke-solid);  --app-smoke-bot: var(--app-smoke-solid);  --app-toast: var(--app-text);
    --app-glass-blur: none;  --app-glass-blur-thick: none;  --app-glass-blur-smoke: none;  --app-scrim-blur: none;
    --app-edge-top: var(--app-edge);  --app-edge-title: var(--app-edge);  --app-edge-foot: var(--app-edge);  --app-edge-label: var(--app-edge);  --app-edge-floor: var(--app-edge);  --app-edge-hold: var(--app-edge);
    --app-glass-hl: rgb(255 255 255 / 0);  --app-glass-sheen: rgb(255 255 255 / 0);
  }
  :root body.pd-app:not([data-theme="dark"]) { --app-scrim: rgb(36 41 46 / 0.42); }
  :root body.pd-app[data-theme="dark"] { --app-scrim: rgb(0 0 0 / 0.62); }
}
/* the solid toast: the dark glass becomes the text colour as a solid slip, its words the pane's */
html.pd-solid body.pd-app[data-theme] { --app-on-toast: var(--app-pane); }
@media (prefers-reduced-transparency: reduce) { :root body.pd-app[data-theme] { --app-on-toast: var(--app-pane); } }

/* =====================================================================================
   THE SOFTWARE ON THE SITE (site phase, 2026-10-28; DIRECTION-LIQUID.md 19). A frame drawn inside a site page or the
   kit (a .pd-app inside body.pd-site: the landing's step, /assistants, /commencer, /journee, the trade pages, the kit)
   takes the LIQUID roles above, as far as the site's own rules allow: the site draws no blur and no stadium
   (tools/audit-page.mjs on body.pd-site), so its glass is the reduced-transparency material (4.7: solid, the ring kept
   as a hairline, no pointer light, no sheen) and its capsules are rounded rectangles (app.css 19 gives the short ones
   their own corner). The frames stay static: no glass.js, no lens, no gel.
   :is() weighs as the night block (0,2,0) and comes after it, so these hold in both themes and the theme still decides
   every colour they read.
   ===================================================================================== */
:where(body.pd-site) :is(.pd-app, .pd-app[data-theme="dark"]) {
  --app-glass-body: var(--app-glass-solid);  --app-glass-core: var(--app-glass-solid);  --app-glass-thick: var(--app-glass-thick-solid);
  --app-glass: var(--app-glass-solid);  --app-glass-ctl: var(--app-glass-solid);  --app-glass-bar: var(--app-glass-solid);
  --app-smoke-top: var(--app-smoke-solid);  --app-smoke-bot: var(--app-smoke-solid);  --app-chrome-bg: var(--app-smoke-solid);
  --app-toast: var(--app-text);  --app-on-toast: var(--app-pane);
  --app-glass-blur: none;  --app-glass-blur-thick: none;  --app-glass-blur-smoke: none;  --app-glass-blur-thin: none;  --app-scrim-blur: none;
  --app-edge-top: var(--app-edge);  --app-edge-title: var(--app-edge);  --app-edge-foot: var(--app-edge);  --app-edge-label: var(--app-edge);  --app-edge-floor: var(--app-edge);  --app-edge-hold: var(--app-edge);
  --app-glass-hl: rgb(255 255 255 / 0);  --app-glass-sheen: rgb(255 255 255 / 0);
  /* a capsule is a rounded rectangle: the control's own 12 (a 44 key, the search, the cluster), its thumb 9 inside a
     3 px inset, the floating button 16 */
  --app-r-capsule: 12px;  --app-r-thumb: 9px;  --app-r-fab: 16px;
  /* the short shapes (a pill, a count, a tag, a label on the ruler): 7, under half of the shortest (18) */
  --app-r-short: 7px;
  /* a bar or a track 6 to 14 tall: 3, under half of the thinnest */
  --app-r-thin: 3px;
}
:where(body.pd-site) .pd-app:not([data-theme="dark"]) { --app-scrim: rgb(36 41 46 / 0.42); }
:where(body.pd-site) .pd-app[data-theme="dark"] { --app-scrim: rgb(0 0 0 / 0.62); }

/* =====================================================================================
   PAPER: quotes, invoices, receipts, PDFs. White in every theme and on the site.
   ===================================================================================== */
.pd-paper {
  color-scheme: light;
  --paper-bg: var(--pd-white);
  --paper-text: var(--pd-ink);
  --paper-text-2: var(--pd-slate);
  --paper-line: var(--pd-l-line);
  --paper-rule-total: var(--pd-ink);           /* the 2 px rule above a total */
  --paper-bill-text: var(--pd-black);          /* receipt and payment part: black Arial (SIX) */
  --paper-bill-line: var(--pd-black);          /* the perforation, dashed, with the scissors */
  background: var(--paper-bg);
  color: var(--paper-text);
}

/* =====================================================================================
   PAGE SWITCH (README section 13, DIRECTION 7.1): going from one of our pages to another. Rules for that only.
   - Both pages opt in to a cross-document view transition (Chromium, Safari 18.2 and later). The page that leaves fades
     out in 120 ms; the page that arrives settles into place, a 10 px rise on the house spring in 320 ms with its opacity
     as a 160 ms helper (the pop of 7.1, shorter). Motion reduced (7.5): nothing moves, the two pages cross in 80 ms and
     the frame holds still (the transition is kept for that: the new page shows once its first frame is complete).
   - The frame both pages share never moves: the site's bar (site.css, class pd-hold) and the software's side menu, top
     bar and tab bar (shell.js, class pd-chrome). The picture from the page that leaves stays, opaque, and the picture of
     the page that arrives fades in over it in 160 ms: every pixel the two pages share stays exactly as it was (the same
     colour over the same colour), and what still differs fades across instead of jumping when the switch ends: the
     hover or the focus ring of the button that was pressed, the line under the bar, another business's menu. The
     pressed entry is already the current one (pageswitch.js) and the frame is drawn before first paint (the
     render-blocking head line, README 13). A part that only one of the two pages has leaves or arrives with the page.
   - On a desktop (a fine pointer, 1024 px and wider) the page keeps the scrollbar's place even when it does not scroll
     (scrollbar-gutter), so a page that scrolls and one that does not lay the frame out at the same width: without it, a
     classic scrollbar (Windows, Linux) narrows the top bar and the site's bar by 15 px from one page to the next. Overlay
     scrollbars (phones, tablets, macOS) take no place anyway, and a phone width keeps its whole width (a test browser
     with classic scrollbars laid a 360 px page out at 345). While a window, a sheet or the phone menu holds the page, the
     gutter is let go and its width comes back as padding (site.css, app.css, ui.js lockScroll): nothing moves, and the
     scrim and the window cover and centre on the whole screen instead of stopping 15 px short of its edge.
   - pd-swap: a word inside the frame that changes from page to page (the phone's screen title) fades across in place.
   - pd-over: what covered the page that leaves (the phone menu, a window, a sheet, a list, a toast) fades away above it;
     what the page that arrives opens with over its frame (a window and its scrim) comes in above it, with the page.
   - The bar of a slow switch (pageswitch.js draws it after 100 ms): 2 px at the very top, ink by day and fog at night.
     It grows fast, then slows, and never reaches the end; one soft light passes over it now and then (six passes, never
     a loop). Motion reduced, it stands still. It leaves with its page.
   - Where the browser has no cross-document transition, a page reached from one of ours settles in (pd-settle).
   ===================================================================================== */
@view-transition { navigation: auto; }
:root { --pd-switch-out: 120ms; --pd-switch-in: 160ms; --pd-switch-cross: 160ms; }
/* the scrollbar's place is kept at every width with a fine pointer (a classic scrollbar): a lock that hides it under a menu,
   a window or a sheet then never moves the page, even in a narrow desktop window (Youssef, 2026-10-28: « when removing and
   readding the side bar the page moves left and right ») */
@media (pointer: fine) { :root { scrollbar-gutter: stable; } }
::view-transition-old(root) { animation: pd-switch-out var(--pd-switch-out) var(--pd-ease-out) both; mix-blend-mode: normal; }
::view-transition-new(root) { animation: pd-switch-in var(--pd-switch-in) var(--pd-ease-out) both, pd-switch-rise 320ms var(--pd-spring) both; mix-blend-mode: normal; }
/* the page that left was hidden under an opaque layer (the phone menu): that layer leaves (pd-over), the page nobody saw does not */
:root.pd-from-cover::view-transition-old(root) { animation: none; opacity: 0; }
/* the frame never moves (pd-hold: the site's bar; pd-chrome: the software's side menu, top bar, tab bar). The old picture
   stays, opaque, under the new one, which fades in over it: never a moment where the two together are less than opaque
   (two pictures that both fade let the page behind show through), and never a jump at the end, since what differs has
   already faded across (the last picture is the live frame's own) */
::view-transition-group(*.pd-hold), ::view-transition-group(*.pd-chrome), ::view-transition-group(*.pd-swap) { animation: none; }
::view-transition-old(*.pd-hold), ::view-transition-old(*.pd-chrome) { animation: none; mix-blend-mode: normal; }
::view-transition-new(*.pd-hold), ::view-transition-new(*.pd-chrome) { animation: pd-switch-in var(--pd-switch-cross) var(--pd-ease-out) both; mix-blend-mode: normal; }
/* the one word of the frame that changes (the phone's screen title) crosses over the frame's opaque picture: the old word
   leaves as fast as the page does, the new one comes in with the page */
::view-transition-old(*.pd-swap) { animation: pd-switch-out var(--pd-switch-out) var(--pd-ease-out) both; mix-blend-mode: normal; }
::view-transition-new(*.pd-swap) { animation: pd-switch-in var(--pd-switch-cross) var(--pd-ease-out) both; mix-blend-mode: normal; }
/* a part only one of the two pages has (the site's bar to the software, the prototype banner) leaves or comes with the page */
:root::view-transition-old(*.pd-hold):only-child, :root::view-transition-old(*.pd-chrome):only-child { animation: pd-switch-out var(--pd-switch-out) var(--pd-ease-out) both; }
:root::view-transition-new(*.pd-hold):only-child, :root::view-transition-new(*.pd-chrome):only-child { animation: pd-switch-in var(--pd-switch-in) var(--pd-ease-out) both; }
/* what covered the page that leaves (a menu, a window, a sheet, a list, a toast: pageswitch.js names them pd-over) fades
   away above the frame, which is already the next page's underneath; what the page that arrives opens with over its frame
   (S20's search and its scrim) comes in above the frame with the page, never under it until the end */
::view-transition-group(*.pd-over) { animation: none; }
/* no live blur rides a covering layer's group (Youssef, 2026-10-28, « blur disappearing late »): the browser copies a
   named element's backdrop-filter onto its ::view-transition-group (CSSWG 9358), and this group does not animate, so a
   glass layer's 28 px blur held over the arriving screen until the switch's longest animation ended (the 420 ms tab
   lens), then let go at once. Without it the layer's picture fades over the sharp page in its 120 ms; leaving or arriving */
::view-transition-group(*.pd-over) { -webkit-backdrop-filter: none; backdrop-filter: none; }
::view-transition-old(*.pd-over) { animation: pd-switch-out var(--pd-switch-out) var(--pd-ease-out) both; }
::view-transition-new(*.pd-over) { animation: pd-switch-in var(--pd-switch-in) var(--pd-ease-out) both; }
::view-transition-group(pd-loadbar) { z-index: 1; animation: none; }
::view-transition-old(pd-loadbar) { animation: pd-switch-out 200ms linear both; }
@keyframes pd-switch-out { to { opacity: 0; } }
@keyframes pd-switch-in { from { opacity: 0; } }
@keyframes pd-switch-rise { from { transform: translateY(10px); } }
/* motion reduced (7.5): nothing moves; the page that leaves and the one that arrives cross in 80 ms, the frame holds still */
@media (prefers-reduced-motion: reduce) {
  :root { --pd-switch-out: 80ms; --pd-switch-in: 80ms; --pd-switch-cross: 80ms; }
  ::view-transition-new(root) { animation: pd-switch-in 80ms linear both; }
}
/* the software (README 13b, the premium pass of 2026-10-27). shell.js marks <html> pd-appdoc before first paint, so these
   rules are the arriving screen's and the site keeps its own. The screen that leaves fades in 160 ms; the one that arrives
   shows first its skeleton (pd-skel-on, app.css 16), crossing in over the same 160 ms, and its content then rises 8 px into
   place in 280 ms. A screen without a skeleton (the sign-in, a public page) crosses in 280 ms with the 8 px rise. The frame
   holds still, as everywhere. Motion reduced: an instant change, nothing moves, no skeleton */
:root.pd-appdoc::view-transition-old(root) { opacity: 0; animation: pd-switch-out-from 160ms var(--pd-ease-out) backwards; }
/* the old pictures rest at opacity 0 and only their animation shows them, as on the site (THE SITE'S SWITCH, below): a
   compositor that drops that animation under load falls back to « gone », never to the old screen back over the new one
   (F8) */
:root.pd-appdoc::view-transition-old(*.pd-over) { opacity: 0; animation: pd-switch-out-from var(--pd-switch-out) var(--pd-ease-out) backwards; }
:root.pd-appdoc::view-transition-old(*.pd-swap) { opacity: 0; animation: pd-switch-out-from var(--pd-switch-out) var(--pd-ease-out) backwards; mix-blend-mode: normal; }
:root.pd-appdoc::view-transition-new(root) { animation: pd-switch-in 160ms var(--pd-ease-out) both; }
:root.pd-appdoc:not(.pd-skel-on)::view-transition-new(root) { animation: pd-switch-in 280ms var(--pd-ease-out) both, pd-app-rise 280ms var(--pd-ease-out) both; }
@keyframes pd-app-rise { from { transform: translateY(8px); } }
@media (prefers-reduced-motion: reduce) {
  :root.pd-appdoc::view-transition-old(root), :root.pd-appdoc::view-transition-old(*.pd-swap) { animation: none; opacity: 0; }
  :root.pd-appdoc::view-transition-new(root), :root.pd-appdoc::view-transition-new(*.pd-chrome), :root.pd-appdoc::view-transition-new(*.pd-swap) { animation: none; }
}

/* the bar: its two tones follow the theme of the page it sits on (the site's on <html>, the software's on <body>) */
.pd-site, .pd-site[data-theme="dark"] { --pd-switch-bar: var(--pd-fog); --pd-switch-pass: var(--pd-paper-white); }
:where(:root[data-theme="light"]) .pd-site, .pd-site[data-theme="light"] { --pd-switch-bar: var(--pd-ink); --pd-switch-pass: var(--pd-steel); }
.pd-app { --pd-switch-bar: var(--pd-ink); --pd-switch-pass: var(--pd-steel); }
.pd-app[data-theme="dark"] { --pd-switch-bar: var(--pd-fog); --pd-switch-pass: var(--pd-paper-white); }
.pd-loadbar { position: fixed; left: 0; right: 0; top: 0; z-index: calc(var(--pd-z-skip) + 1); height: 2px; pointer-events: none; view-transition-name: pd-loadbar; }
.pd-loadbar > i { position: absolute; inset: 0; overflow: hidden; background: var(--pd-switch-bar); transform-origin: left center; transform: scaleX(0); animation: pd-switch-grow 12s cubic-bezier(0.08, 0.8, 0.2, 1) forwards; }
.pd-loadbar > i::after { content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: 25%; background: linear-gradient(90deg, transparent, var(--pd-switch-pass), transparent); opacity: 0; transform: translateX(-100%); animation: pd-switch-pass 2000ms var(--pd-ease-out) 600ms 6 both; }
@keyframes pd-switch-grow { to { transform: scaleX(0.94); } }   /* 14 % at 0.2 s, 48 % at 1 s, 67 % at 2 s, 87 % at 5 s, 94 % at 12 s */
@keyframes pd-switch-pass { 0% { opacity: 0; transform: translateX(-100%); } 12% { opacity: 0.7; } 45%, 100% { opacity: 0; transform: translateX(420%); } }
@media (prefers-reduced-motion: reduce) {
  .pd-loadbar > i { animation: none; transform: scaleX(0.3); }
  .pd-loadbar > i::after { content: none; }
}

/* no cross-document transition in this browser: the main content of a page reached from one of ours settles in
   (opacity only when a fixed bar or button lives inside it, so nothing fixed moves) */
@media (prefers-reduced-motion: no-preference) {
  :root.pd-settle body > main { animation: pd-switch-settle 320ms var(--pd-ease-out) both; }
  :root.pd-settle body > main:has(.pd-fab, .pd-actionbar) { animation-name: pd-switch-settle-still; }
}
@keyframes pd-switch-settle { from { opacity: 0.5; transform: translateY(10px); } }
@keyframes pd-switch-settle-still { from { opacity: 0.5; } }

/* =====================================================================================
   THE SITE'S SWITCH (2026-10-27, loading spec 5.1). <html class="pd-sitedoc"> is set by every site page's head before first
   paint, so these rules are the arriving site page's own and the software, the hub, the kit and the cover keep theirs.
   A fade-through where nothing moves: the old content fades out in 100 ms, the page's ground (--pd-ground, never white)
   shows for an instant under the bar, which holds still (pd-hold, above), and the new content fades in over 180 ms once
   the old one is gone (from 100 ms: started at 80 ms, as first drawn, the two showed together at 0.2 to 0.45 each for a
   frame). No rise: the two contents never show together, and nothing slides. What covered the old
   page (the phone menu, a window: pd-over) fades out the same way. The new page's picture is live: a page whose content is
   ready within the first 100 ms shows it inside this fade; one that is not shows its loader there (site.css 16).
   Motion reduced: the same states, faster, without movement.
   The old pictures rest at opacity 0 and only their animation shows them (from 1, never filled after): a compositor that
   drops or restarts that animation falls back to « gone », never to the old page coming back over the new one (seen in
   Chromium now and then: the old picture at 0.7 again after it had faded). A same-page jump (site.js) is the same fade in
   Chromium; WebKit jumps at once and the content fades in place.
   ===================================================================================== */
:root.pd-sitedoc { background: var(--pd-ground); }
:root.pd-sitedoc::view-transition { background: var(--pd-ground); }
:root.pd-sitedoc::view-transition-old(root) { opacity: 0; animation: pd-switch-out-from 100ms var(--pd-ease-in) backwards; mix-blend-mode: normal; }
:root.pd-sitedoc::view-transition-new(root) { animation: pd-switch-in 180ms var(--pd-ease-out) 100ms both; mix-blend-mode: normal; }
:root.pd-sitedoc::view-transition-old(*.pd-over) { opacity: 0; animation: pd-switch-out-from 100ms var(--pd-ease-in) backwards; }
:root.pd-sitedoc::view-transition-new(*.pd-over) { animation: pd-switch-in 180ms var(--pd-ease-out) 100ms both; }
:root.pd-sitedoc.pd-from-cover::view-transition-old(root) { animation: none; opacity: 0; }
@keyframes pd-switch-out-from { from { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  :root.pd-sitedoc::view-transition-old(root) { opacity: 0; animation: pd-switch-out-from 60ms linear backwards; }
  :root.pd-sitedoc::view-transition-new(root) { animation: pd-switch-in 80ms linear 60ms both; }
  :root.pd-sitedoc::view-transition-old(*.pd-over) { opacity: 0; animation: pd-switch-out-from 60ms linear backwards; }
  :root.pd-sitedoc::view-transition-new(*.pd-over) { animation: pd-switch-in 80ms linear 60ms both; }
  :root.pd-sitedoc.pd-from-cover::view-transition-old(root) { animation: none; opacity: 0; }
}
/* the arriving page is not complete yet (pageswitch.js, pd-vthold, fix round 2): the switch holds where it starts, the old
   page's picture on screen and the new one not yet shown, so no bare page shows while the content is completed (and while
   WebKit draws a slow opening frame). The hold ends when the content is complete, or 400 ms after pagereveal, and the
   fade-through then runs as above */
:root.pd-sitedoc.pd-vthold::view-transition-group(*),
:root.pd-sitedoc.pd-vthold::view-transition-image-pair(*),
:root.pd-sitedoc.pd-vthold::view-transition-old(*),
:root.pd-sitedoc.pd-vthold::view-transition-new(*) { animation-play-state: paused; }
/* the bar keeps one width on every site page, whatever the pointer and the width (fix round 2): with a classic scrollbar a
   page restored from the back/forward cache at 402 px laid out once at its whole width and then 15 px narrower (a layout
   shift of 0.03); an overlay scrollbar (phones, macOS) takes no place, so the rule changes nothing there. Opening the phone
   menu (up to 1199 px) never moves the bar either; the software keeps its own rule above */
:root.pd-sitedoc { scrollbar-gutter: stable; }
   DIRECTION B: the software's page switch (DIRECTION-B.md 6). shell.js marks <html> pd-appdoc. The frame holds still as
   before; on top of it:
   - the screen that leaves stays as it is under the one that arrives, which crosses in over 200 ms and settles from
     101.2 % on the spring: a true cross with no dip, the new screen coming forward;
   - a card that was pressed (a link inside it) grows into the next screen: pageswitch.js names it pd-morph as the page
     leaves, and the next screen's skeleton as it arrives, so the card's pane becomes the next screen's loading state;
   - the lens under the current entry of the side panel and under the current tab slides to the next screen's;
   - the frame's own pictures stay above a growing card (z-index), what covered the page that leaves above the frame.
   The pseudo-elements read :root, so their curves are declared here, on :root.
   ===================================================================================== */
:root {
  --pd-vt-spring: linear(0, 0.057 3.6%, 0.189 7.1%, 0.352 10.7%, 0.518 14.3%, 0.667 17.9%, 0.791 21.4%, 0.887 25%, 0.956 28.6%, 1.002 32.1%, 1.029 35.7%, 1.042 39.3%, 1.046 42.9%, 1.043 46.4%, 1.037 50%, 1.03 53.6%, 1.022 57.1%, 1.015 60.7%, 1.01 64.3%, 1.005 67.9%, 1.002 71.4%, 1 75%, 0.999 78.6%, 0.998 82.1%, 0.998 85.7%, 0.998 89.3%, 0.998 92.9%, 0.999 96.4%, 1);
  --pd-vt-spring-soft: linear(0, 0.04 3.6%, 0.135 7.1%, 0.256 10.7%, 0.384 14.3%, 0.507 17.9%, 0.618 21.4%, 0.713 25%, 0.791 28.6%, 0.854 32.1%, 0.903 35.7%, 0.939 39.3%, 0.966 42.9%, 0.984 46.4%, 0.997 50%, 1.004 53.6%, 1.009 57.1%, 1.011 60.7%, 1.011 64.3%, 1.011 67.9%, 1.009 71.4%, 1.008 75%, 1.007 78.6%, 1.005 82.1%, 1.004 85.7%, 1.003 89.3%, 1.002 92.9%, 1.002 96.4%, 1);
}
@supports not (transition-timing-function: linear(0, 1)) {
  :root { --pd-vt-spring: cubic-bezier(0.3, 1.3, 0.5, 1); --pd-vt-spring-soft: cubic-bezier(0.25, 1.1, 0.4, 1); }
}
:root.pd-appdoc::view-transition-group(*.pd-chrome) { z-index: 2; }
:root.pd-appdoc::view-transition-group(*.pd-swap) { z-index: 3; }
:root.pd-appdoc::view-transition-group(*.pd-over) { z-index: 5; }
/* a page of the software that leaves dimmed under a sheet or a window (pageswitch.js nameOvers, `dim`): one picture, the
   scrim's blur and the dimmed bars baked in; only the sheet or the window (named !important) leaves above it */
:root.pd-leave-dim body * { view-transition-name: none !important; }
:root.pd-appdoc::view-transition-group(pd-loadbar) { z-index: 6; }

/* =====================================================================================
   LIQUID: the software's page switch (DIRECTION-LIQUID.md 7). pageswitch.js marks <html> with the kind of arrival for
   the length of the transition (a class that never changes while the pseudo-elements live, so no animation restarts):
   - pd-vt-skel, a menu or tab switch: the screen that leaves fades out in 140 ms; the arriving screen shows only its grey
     skeleton (no word, no colour), fading in over 120 ms from +20 ms, so two legible screens never overlap; its parts
     then rise in the live page from +180 ms (app.css 18.16, pageswitch.js), settled within +660 ms;
   - pd-vt-morph, a record row pressed: the row grows into the record's column on a critically damped glide (340 ms),
     carried by an opaque pane whose corners go from 12 to 0; the row's picture leaves in 90 ms, the record's comes in
     from 140 to 340 ms, the old screen is gone at 100 ms: never both at once;
   - pd-vt-plain (sign-in, public pages, a screen without skeleton): a plain 280 ms cross.
   The frame (pd-chrome) holds; the lenses glide (420 ms, no overshoot) with a 10 % stretch along their travel.
   Motion reduced: an instant change, nothing moves.
   ===================================================================================== */
:root.pd-appdoc {
  --pd-vt-glide: linear(0, 0.054 5%, 0.17 10%, 0.305 15%, 0.435 20%, 0.552 25%, 0.65 30%, 0.731 35%, 0.795 40%, 0.845 45%, 0.884 50%, 0.913 55%, 0.936 60%, 0.953 65%, 0.965 70%, 0.975 75%, 0.981 80%, 0.986 85%, 0.99 90%, 0.993 95%, 1);
  --pd-vt-pane: #FFFFFF;
  --pd-vt-pane-shadow: 0 0 0 1px rgb(17 18 24 / 0.08), 0 1px 2px rgb(17 18 24 / 0.05), 0 20px 40px -24px rgb(17 18 24 / 0.16);
}
/* the window's own scrollbar on the software's pages (the thumb of 3.4; the root cannot read body's roles) */
:root.pd-appdoc { --app-scroll-root: #83878E; }
:root.pd-appdoc:has(> body.pd-app[data-theme="dark"]) { --app-scroll-root: #777B82; }
:root.pd-appdoc:has(> body.pd-app[data-theme="dark"]) {
  --pd-vt-pane: #202228;
  --pd-vt-pane-shadow: 0 0 0 1px rgb(229 232 234 / 0.08), 0 2px 4px rgb(0 0 0 / 0.30), 0 20px 44px -22px rgb(0 0 0 / 0.70);
}
@supports not (transition-timing-function: linear(0, 1)) { :root.pd-appdoc { --pd-vt-glide: cubic-bezier(0.25, 0.85, 0.3, 1); } }
/* a menu or tab switch */
:root.pd-appdoc.pd-vt-skel::view-transition-old(root) { opacity: 0; animation: pd-switch-out-from 140ms var(--pd-ease-out) backwards; }
:root.pd-appdoc.pd-vt-skel::view-transition-new(root) { animation: pd-switch-in 120ms var(--pd-ease-out) 20ms both; }
/* a plain cross (sign-in, public pages, a screen that draws no skeleton) */
:root.pd-appdoc.pd-vt-plain::view-transition-old(root) { opacity: 0; animation: pd-switch-out-from 280ms var(--pd-ease-out) backwards; }
:root.pd-appdoc.pd-vt-plain::view-transition-new(root) { animation: pd-switch-in 280ms var(--pd-ease-out) both; }
/* the record morph (integration 2026-10-28, _requests/G4.md 24 and 25, G3.md 18): 300 ms, so a software-rendered frame
   rate still settles within 400 ms of the first frame (L1: 341 to 392 headless, 329 to 363 headed, measured by G4); the
   old screen gone at 100, the record's picture in from 120 to 300, the new ground and the inspector from 160 (the pane,
   wider than the record's column while it leaves the row, has cleared the inspector's place by then). Neither picture is
   ever magnified: the row as it was and the record as it will be, each at 1:1 from the pane's top-left corner, cropped
   by the pane (cover scaled the leaving row up to a giant code, and the record 1.18 to 1.49 times) */
:root.pd-appdoc.pd-vt-morph::view-transition-old(root) { opacity: 0; animation: pd-switch-out-from 100ms var(--pd-ease-out) backwards; }
:root.pd-appdoc.pd-vt-morph::view-transition-new(root) { animation: pd-switch-in 140ms var(--pd-ease-out) 160ms both; }
::view-transition-group(pd-morph) { z-index: 1; animation-duration: 300ms; animation-timing-function: var(--pd-vt-glide); }
::view-transition-image-pair(pd-morph) { overflow: clip; background-color: var(--pd-vt-pane); box-shadow: var(--pd-vt-pane-shadow); animation: pd-l-morph-pane 300ms linear both; }
::view-transition-old(pd-morph) { height: 100%; object-fit: none; object-position: left top; animation: pd-switch-out 90ms var(--pd-ease-out) both; }
::view-transition-new(pd-morph) { height: 100%; object-fit: none; object-position: left top; animation: pd-switch-in 180ms var(--pd-ease-out) 120ms both; }
@keyframes pd-l-morph-pane {
  0% { border-radius: 12px; background-color: var(--pd-vt-pane); box-shadow: var(--pd-vt-pane-shadow); }
  70.6% { background-color: var(--pd-vt-pane); box-shadow: var(--pd-vt-pane-shadow); }
  100% { border-radius: 0; background-color: rgb(255 255 255 / 0); box-shadow: none; }
}
/* the lenses: the old picture hidden, the new one glides from the old entry to the new one, stretching 10 % along its
   travel at 40 % (the liquid), never past its target */
::view-transition-group(pd-side-lens), ::view-transition-group(pd-tab-lens) { z-index: 4; animation-duration: 420ms; animation-timing-function: var(--pd-vt-glide); }
::view-transition-old(pd-side-lens), ::view-transition-old(pd-tab-lens) { animation: none; opacity: 0; }
::view-transition-new(pd-side-lens), ::view-transition-new(pd-tab-lens) { animation: none; }
/* on a record morph the lens keeps the morph's 300 ms, so the switch is settled within 400 ms of its first frame (L1) */
:root.pd-appdoc.pd-vt-morph::view-transition-group(pd-side-lens), :root.pd-appdoc.pd-vt-morph::view-transition-group(pd-tab-lens) { animation-duration: 300ms; }
::view-transition-image-pair(pd-side-lens) { animation: pd-l-stretch-y 420ms ease-in-out both; }
:root.pd-appdoc.pd-vt-morph::view-transition-image-pair(pd-side-lens), :root.pd-appdoc.pd-vt-morph::view-transition-image-pair(pd-tab-lens) { animation-duration: 300ms; }
::view-transition-image-pair(pd-tab-lens) { animation: pd-l-stretch-x 420ms ease-in-out both; }
/* a plain cross (out of the sign-in, 11.10): no lens travelled, so none stretches in place; the lens comes in with the page */
:root.pd-appdoc.pd-vt-plain::view-transition-image-pair(pd-side-lens), :root.pd-appdoc.pd-vt-plain::view-transition-image-pair(pd-tab-lens) { animation: none; }
:root.pd-appdoc.pd-vt-plain::view-transition-new(pd-side-lens):only-child, :root.pd-appdoc.pd-vt-plain::view-transition-new(pd-tab-lens):only-child { animation: pd-switch-in 280ms var(--pd-ease-out) both; }
/* the page left dimmed under a sheet (pd-leave-dim; the arriving page reads it as pd-from-dim, pageswitch.js): the old
   bars are baked into the page's picture, so the lens exists only on the new side. It stretched in place for 420 ms at
   full opacity over a bar still fading in; it now comes in with its bar (F7) */
:root.pd-from-dim::view-transition-image-pair(pd-tab-lens), :root.pd-from-dim::view-transition-image-pair(pd-side-lens) { animation: none; }
:root.pd-from-dim::view-transition-new(pd-tab-lens):only-child, :root.pd-from-dim::view-transition-new(pd-side-lens):only-child { animation: pd-switch-in var(--pd-switch-in) var(--pd-ease-out) both; }
/* the frame's glass holds as one picture, the arriving frame's own from the first frame: B's opaque frame hid the old
   picture kept under the new one, but a translucent glass picture over another stacked two layers of smoke, so the side
   panel went darker for the whole switch and snapped back (integration, _requests/G4.md 21: the panel strip's mean
   difference to the settled frame 1.1 or less, against 16 to 20). The press has already made the leaving frame the next
   page's (pageswitch.js), so nothing differs to fade across */
:root.pd-appdoc::view-transition-old(*.pd-chrome):not(:only-child) { animation: none; opacity: 0; }
:root.pd-appdoc::view-transition-new(*.pd-chrome):not(:only-child) { animation: none; opacity: 1; }
@keyframes pd-l-stretch-y { 40% { scale: 1 1.10; } }
@keyframes pd-l-stretch-x { 40% { scale: 1.10 1; } }
@media (prefers-reduced-motion: reduce) {
  :root.pd-appdoc::view-transition-old(root), :root.pd-appdoc.pd-vt-skel::view-transition-old(root), :root.pd-appdoc.pd-vt-plain::view-transition-old(root), :root.pd-appdoc.pd-vt-morph::view-transition-old(root) { animation: none; opacity: 0; }
  :root.pd-appdoc::view-transition-new(root), :root.pd-appdoc.pd-vt-skel::view-transition-new(root), :root.pd-appdoc.pd-vt-plain::view-transition-new(root), :root.pd-appdoc.pd-vt-morph::view-transition-new(root) { animation: none; }
  ::view-transition-group(pd-side-lens), ::view-transition-group(pd-tab-lens), ::view-transition-group(pd-morph) { animation: none; }
  ::view-transition-image-pair(pd-side-lens), ::view-transition-image-pair(pd-tab-lens), ::view-transition-image-pair(pd-morph) { animation: none; }
  :root.pd-appdoc::view-transition-group(*) { animation: none; }
}
