/* TDC — Apps — généré depuis tokens.json par scripts/tokens-to-css.ts */
/* Ne pas éditer à la main : relancer `pnpm tokens` (décision 0026). */

:root, [data-theme="light"] {
  --tdc-navy: #16223b;
  --tdc-navy-deep: #06286f;
  --tdc-yellow: #fdc400;
  --surface: #ffffff;
  --surface-alt: #f5f5f5;
  --surface-sunken: #fafafa;
  --surface-raised: #ffffff;
  --on-accent: #16223b;
  --on-navy: #ffffff;
  --ink: #303133;
  --text: #555555;
  --text-muted: #6b6b6b;
  --border: #eaeaea;
  --border-field: #8d8d8d;
  --border-strong: #303133;
  --state-ok: #1b6b4f;
  --state-ok-bg: #e4f0ea;
  --state-warn: #8a5600;
  --state-warn-bg: #fdf3dc;
  --state-crit: #9c2a2a;
  --state-crit-bg: #f9e9e9;
  --state-info: #06286f;
  --state-info-bg: #e8ecf7;
  --fichier-doc: #1a5fc7;
  --fichier-tableur: #18794e;
  --fichier-presentation: #b45309;
  --fichier-pdf: #b42318;
  --fichier-image: #b8326e;
  --fichier-texte: #4b5160;
  --fichier-video: #6d28a8;
  --fichier-artefact: #a8461f;
  --ligne-prospecter: #6b3fa0;
  --ligne-vendre: #3346a8;
  --ligne-marque: #12756a;
  --ligne-site: #b0521c;
  --ligne-mesurer: #a33a72;
  --ligne-outillage: #5b6475;
  --space-half: 2px;
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 18px;
  --space-5: 24px;
  --space-6: 36px;
  --space-7: 56px;
  --row-y: 9px;
  --field-y: 7px;
  --field-x: 10px;
  --gutter-ui: 20px;
  --popover-offset: 6px;
  --radius-field: 8px;
  --radius-card: 12px;
  --radius-block: 20px;
  --radius-pill: 999px;
  --radius-check: 4px;
  --shadow-card: 0 15px 30px rgba(0,0,0,.075);
  --shadow-popover: 0 8px 24px rgba(0,0,0,.14);
  --shadow-elevated: 0 50px 100px rgba(0,0,0,.10);
  --control-h: 34px;
  --control-h-sm: 28px;
  --dot: 7px;
  --focus-ring: 2px;
  --check-size: 16px;
  --page-max: 1100px;
  --form-max: 672px;
  --text-max: 68ch;
  --trait: 2px;
  --bord-coche: 1.5px;
  --duration-fast: 120ms;
  --duration-trace: 3s;
  --z-dessus: 1;
  --z-colle: 2;
  --z-bulle: 5;
  --z-liste: 6;
  --z-pop: 20;
  --z-barre: 25;
  --z-panneau: 28;
  --z-toast: 30;
  --font-sans: "Poppins", system-ui, -apple-system, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --font-display: "Belgant Aesthetic", "Cormorant Garamond", Georgia, serif;
  --text-ui-label-size: 11px;
  --text-ui-label-leading: 16px;
  --text-ui-label-weight: 600;
  --text-ui-label-tracking: 0.06em;
  --text-ui-caption-size: 12px;
  --text-ui-caption-leading: 17px;
  --text-ui-caption-weight: 400;
  --text-ui-body-size: 14px;
  --text-ui-body-leading: 21px;
  --text-ui-body-weight: 400;
  --text-ui-body-lg-size: 15px;
  --text-ui-body-lg-leading: 24px;
  --text-ui-body-lg-weight: 400;
  --text-ui-strong-size: 14px;
  --text-ui-strong-leading: 21px;
  --text-ui-strong-weight: 600;
  --text-ui-title-size: 15px;
  --text-ui-title-leading: 22px;
  --text-ui-title-weight: 600;
  --text-ui-heading-size: 20px;
  --text-ui-heading-leading: 27px;
  --text-ui-heading-weight: 600;
  --text-ui-display-size: 27px;
  --text-ui-display-leading: 34px;
  --text-ui-display-weight: 600;
  --text-ui-display-tracking: -0.02em;
  --text-data-size: 13px;
  --text-data-leading: 20px;
  --text-data-weight: 400;
  --text-data-sm-size: 12px;
  --text-data-sm-leading: 18px;
  --text-data-sm-weight: 400;
  --text-figure-size: 28px;
  --text-figure-leading: 32px;
  --text-figure-weight: 600;
  --text-figure-tracking: -0.01em;
  --text-figure-sm-size: 20px;
  --text-figure-sm-leading: 24px;
  --text-figure-sm-weight: 600;
  --text-doc-title-size: 40px;
  --text-doc-title-leading: 48px;
  --text-doc-title-weight: 500;
  --text-doc-title-tracking: 0.01em;
  --text-doc-lead-size: 17px;
  --text-doc-lead-leading: 28px;
  --text-doc-lead-weight: 400;
  --text-doc-body-size: 15px;
  --text-doc-body-leading: 26px;
  --text-doc-body-weight: 400;
  --text-doc-caption-size: 13px;
  --text-doc-caption-leading: 22px;
  --text-doc-caption-weight: 400;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --tdc-navy: #16223b;
    --tdc-navy-deep: #06286f;
    --tdc-yellow: #fdc400;
    --surface: #10151f;
    --surface-alt: #171d29;
    --surface-sunken: #0b0f17;
    --surface-raised: #1d2534;
    --on-accent: #16223b;
    --on-navy: #ffffff;
    --ink: #e9ebef;
    --text: #c3c9d2;
    --text-muted: #99a1ad;
    --border: #262f3d;
    --border-field: #5a6675;
    --border-strong: #c3c9d2;
    --state-ok: #6ecfa4;
    --state-ok-bg: #15291f;
    --state-warn: #e08b3c;
    --state-warn-bg: #2e2110;
    --state-crit: #ef8b8b;
    --state-crit-bg: #2e1718;
    --state-info: #93a9ef;
    --state-info-bg: #182243;
    --fichier-doc: #8ab4f8;
    --fichier-tableur: #81c995;
    --fichier-presentation: #f6b26b;
    --fichier-pdf: #f28b82;
    --fichier-image: #f49ac1;
    --fichier-texte: #b9c0cb;
    --fichier-video: #c9a2f0;
    --fichier-artefact: #e8a07e;
    --ligne-prospecter: #c3a3ec;
    --ligne-vendre: #9aaaf0;
    --ligne-marque: #74cdbf;
    --ligne-site: #f0a46f;
    --ligne-mesurer: #ee9cc6;
    --ligne-outillage: #aab3c2;
    --shadow-card: 0 1px 2px rgba(0,0,0,.45);
    --shadow-popover: 0 8px 24px rgba(0,0,0,.55);
    --shadow-elevated: 0 24px 60px rgba(0,0,0,.6);
    color-scheme: dark;
  }
}

[data-theme="dark"] {
  --tdc-navy: #16223b;
  --tdc-navy-deep: #06286f;
  --tdc-yellow: #fdc400;
  --surface: #10151f;
  --surface-alt: #171d29;
  --surface-sunken: #0b0f17;
  --surface-raised: #1d2534;
  --on-accent: #16223b;
  --on-navy: #ffffff;
  --ink: #e9ebef;
  --text: #c3c9d2;
  --text-muted: #99a1ad;
  --border: #262f3d;
  --border-field: #5a6675;
  --border-strong: #c3c9d2;
  --state-ok: #6ecfa4;
  --state-ok-bg: #15291f;
  --state-warn: #e08b3c;
  --state-warn-bg: #2e2110;
  --state-crit: #ef8b8b;
  --state-crit-bg: #2e1718;
  --state-info: #93a9ef;
  --state-info-bg: #182243;
  --fichier-doc: #8ab4f8;
  --fichier-tableur: #81c995;
  --fichier-presentation: #f6b26b;
  --fichier-pdf: #f28b82;
  --fichier-image: #f49ac1;
  --fichier-texte: #b9c0cb;
  --fichier-video: #c9a2f0;
  --fichier-artefact: #e8a07e;
  --ligne-prospecter: #c3a3ec;
  --ligne-vendre: #9aaaf0;
  --ligne-marque: #74cdbf;
  --ligne-site: #f0a46f;
  --ligne-mesurer: #ee9cc6;
  --ligne-outillage: #aab3c2;
  --shadow-card: 0 1px 2px rgba(0,0,0,.45);
  --shadow-popover: 0 8px 24px rgba(0,0,0,.55);
  --shadow-elevated: 0 24px 60px rgba(0,0,0,.6);
  color-scheme: dark;
}

body {
  background: var(--surface);
  color: var(--text);
}


*, *::before, *::after { box-sizing: border-box }
[hidden] { display: none !important }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap }
body { margin: 0; font-family: var(--font-sans); font-size: var(--text-ui-body-size);
  line-height: var(--text-ui-body-leading); transition: background var(--duration-fast) }
/* Les vues commencent par leurs onglets, juste sous la barre haute qui nomme déjà l'app (maquette du 11/11/2026). */
main { max-width: var(--page-max); margin: 0 auto; padding: var(--space-4) var(--gutter-ui) var(--space-7);
  display: flex; flex-direction: column; gap: var(--space-5) }
:focus-visible { outline: var(--focus-ring) solid var(--border-strong); outline-offset: var(--focus-ring) }
h1 { font-size: var(--text-ui-display-size); line-height: var(--text-ui-display-leading);
  font-weight: var(--text-ui-display-weight); letter-spacing: var(--text-ui-display-tracking);
  color: var(--ink); margin: 0 }
/* Trois niveaux de titre, les mêmes dans toutes les apps (règle de mise en page) : le titre de la page,
   celui d'une section, celui d'un bloc. Une app ne les retaille pas. */
h1 { text-wrap: balance }
h2 { font-size: var(--text-ui-title-size); line-height: var(--text-ui-title-leading);
  font-weight: var(--text-ui-title-weight); color: var(--ink); margin: 0 }
h3, h4 { font-size: var(--text-ui-strong-size); line-height: var(--text-ui-strong-leading);
  font-weight: var(--text-ui-strong-weight); color: var(--ink); margin: 0 }
b, strong { font-weight: var(--text-ui-strong-weight) }
small { font-size: var(--text-ui-caption-size); line-height: var(--text-ui-caption-leading) }
a { color: var(--state-info) }
p { margin: 0 }
/* Une donnée en mono prend la taille des données ; une ligne dense la descend à --text-data-sm-size. */
.mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums }
.mono:not(:where(h1, h2, h3, h4)) { font-size: var(--text-data-size) }
/* Dans un libellé, une légende ou une pastille, elle suit la taille de son texte. */
:where(.label, .cap, .aide, small, .pill, .badge, th) .mono { font-size: inherit }
/* 0131 — un code cité garde l'allure de ce qui l'entoure ; seul un pointillé dit qu'il s'ouvre, plein au survol. */
a.code-cite { color: inherit; text-decoration: underline dotted var(--border-strong); text-decoration-thickness: 1px; text-underline-offset: 3px }
a.code-cite:hover, a.code-cite:focus-visible { text-decoration-style: solid; text-decoration-color: currentColor }
.label { font-size: var(--text-ui-label-size); line-height: var(--text-ui-label-leading);
  font-weight: var(--text-ui-label-weight); letter-spacing: var(--text-ui-label-tracking);
  text-transform: uppercase; color: var(--text-muted) }
.cap { font-size: var(--text-ui-caption-size); line-height: var(--text-ui-caption-leading); color: var(--text-muted) }
/* Un texte en retrait de couleur : recopié dans deux apps jusqu'au 15/11/2026, il vit ici. */
.muet { color: var(--text-muted) }
.ico { width: var(--text-ui-body-size); height: var(--text-ui-body-size); flex: none; color: var(--text-muted) }
/* Contrôles de formulaire (édition, page d'autorisation) */
input, select, textarea, button { font: inherit; color: inherit }
/* Bords lisibles au repos (3:1, WCAG 1.4.11, audit du 15/11/2026), nets dans le champ actif (principe 2) */
input:not([type=checkbox]):not([type=radio]), select, textarea { background: var(--surface); color: var(--ink);
  border: 1px solid var(--border-field); border-radius: var(--radius-field); padding: var(--field-y) var(--field-x);
  transition: border-color var(--duration-fast) }
input:not([type=checkbox]):not([type=radio]):hover, select:hover, textarea:hover { border-color: var(--border-strong) }
input:not([type=checkbox]):not([type=radio]):focus, select:focus, textarea:focus { border-color: var(--border-strong); outline: none }
input:not([type=checkbox]):not([type=radio]), select { height: var(--control-h) }
textarea { width: 100%; min-height: calc(var(--control-h) * 2); resize: vertical }
input::placeholder, textarea::placeholder { color: var(--text-muted) }
button { height: var(--control-h); padding: 0 var(--space-3); border-radius: var(--radius-field);
  border: 1px solid var(--border-strong); background: transparent; color: var(--ink); cursor: pointer }
button.primary, a.btn.primary { background: var(--tdc-yellow); color: var(--on-accent); border-color: var(--tdc-yellow);
  font-weight: var(--text-ui-strong-weight) }
button.quiet { border-color: var(--border-field); color: var(--text) }
.bar { display: flex; flex-wrap: wrap; gap: var(--space-2); align-items: center }

/* Champ — le libellé au-dessus, le contrôle, l'aide en dessous */
.champ { display: flex; flex-direction: column; gap: var(--space-2); min-width: 0; margin: 0; padding: 0; border: 0 }
.champ > .label, .champ > legend { margin: 0; padding: 0 }
fieldset.champ > legend { margin-bottom: var(--space-2) }
.champ input:not([type=checkbox]):not([type=radio]), .champ select, .champ textarea { width: 100% }
.champ textarea { min-height: calc(var(--control-h) * 3); line-height: var(--text-ui-body-leading) }
.aide { color: var(--text-muted); font-size: var(--text-ui-caption-size); line-height: var(--text-ui-caption-leading) }
.champs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-4) }
.champs > .large { grid-column: 1 / -1 }
/* Liste déroulante : le chevron du système à la place de celui du navigateur */
.select { position: relative; display: block }
.select select { appearance: none; -webkit-appearance: none; padding-right: calc(var(--field-x) * 2 + var(--text-ui-body-size)) }
.select .chev { position: absolute; right: var(--field-x); top: 50%; transform: translateY(-50%); pointer-events: none }

/* Choix segmenté — quelques valeurs exclusives, toutes visibles, d'un clic */
.seg { display: inline-flex; flex-wrap: wrap; gap: var(--space-1); padding: var(--space-1); align-self: flex-start;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-field) }
.seg-opt { position: relative; display: inline-flex; align-items: center; gap: var(--space-2);
  height: calc(var(--control-h) - var(--space-2)); padding: 0 var(--space-3); border-radius: var(--radius-field);
  color: var(--text); cursor: pointer; transition: background var(--duration-fast), color var(--duration-fast) }
.seg-opt input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer }
.seg-opt:hover { background: var(--surface-alt); color: var(--ink) }
.seg-opt:has(input:checked) { background: var(--surface-alt); color: var(--ink); font-weight: var(--text-ui-strong-weight);
  box-shadow: inset 0 0 0 1px var(--border-field) }
.seg-opt:has(input:focus-visible) { outline: var(--focus-ring) solid var(--border-strong); outline-offset: 1px }
/* Une option par ligne, un rond devant (17/11/2026) : des libellés longs dans une colonne étroite, sans pastilles qui se cassent. */
.seg.pile { display: flex; flex-direction: column; gap: 0; padding: 0; align-self: stretch; background: none; border: 0 }
.seg.pile .seg-opt { height: auto; min-height: var(--control-h-sm); padding: var(--space-1) var(--space-2); gap: var(--space-2) }
.seg.pile .seg-opt::before { content: ""; flex: none; width: var(--space-3); height: var(--space-3); border-radius: var(--radius-pill);
  border: 1px solid var(--border-strong); background: var(--surface); box-sizing: border-box }
.seg.pile .seg-opt:has(input:checked) { background: none; box-shadow: none }
.seg.pile .seg-opt:has(input:checked)::before { border: calc(var(--space-1) - 1px) solid var(--ink) }
.seg.pile .seg-opt:hover { background: var(--surface-alt) }
/* Maquette brand-fiche-style (16/11/2026) : une valeur dit ce qu'elle veut dire dans une bulle, sous elle. */
.seg-opt .bulle { position: absolute; z-index: var(--z-bulle); left: 0; top: calc(100% + var(--space-2)); width: max-content; max-width: calc(var(--space-7) * 5);
  display: none; flex-direction: column; gap: var(--space-half); padding: var(--space-2) var(--space-3); text-align: left; white-space: normal;
  background: var(--surface-raised); color: var(--text); border: 1px solid var(--border); border-radius: var(--radius-field); box-shadow: var(--shadow-popover);
  font-size: var(--text-ui-caption-size); line-height: var(--text-ui-caption-leading); font-weight: normal; pointer-events: none }
.seg-opt .bulle b { color: var(--ink); font-weight: var(--text-ui-strong-weight) }
/* Cachée, elle sort de la mise en page (une bulle invisible au bord droit faisait déborder la page) ; près du bord, elle s'aligne à droite. */
.seg-opt:hover .bulle, .seg-opt:has(input:focus-visible) .bulle { display: flex }
.seg-opt:nth-last-child(-n+2) .bulle { left: auto; right: 0 }
.seg-aide { display: none; color: var(--text-muted); font-size: var(--text-ui-caption-size); line-height: var(--text-ui-caption-leading) }
@media (hover: none) { .seg-opt .bulle { display: none } .seg-aide { display: block } }
/* Un réglage par ligne : son nom à gauche (et sa note), le choix à droite. */
.champ.en-ligne { display: grid; grid-template-columns: calc(var(--space-7) * 3.3) minmax(0, 1fr); gap: var(--space-1) var(--space-4); align-items: center }
.champ.en-ligne > .label { grid-row: span 2; display: flex; flex-direction: column; gap: var(--space-half); text-transform: none; letter-spacing: normal; color: var(--ink); font-size: var(--text-ui-caption-size); font-weight: var(--text-ui-strong-weight) }
.champ.en-ligne > .seg { justify-self: start }
.champ.en-ligne .note-l { display: inline-flex; align-items: center; gap: var(--space-1); color: var(--text-muted); font-weight: var(--text-ui-body-weight) }
.champ.en-ligne .note-l svg { width: var(--space-3); height: var(--space-3) }
@media (max-width: 640px) { .champ.en-ligne { grid-template-columns: 1fr } .champ.en-ligne > .label { grid-row: auto } }
/* Un bouton à icône qui dit un état, sans geste : l'étoile pleine du style par défaut. */
.ic-btn.fait { color: var(--ink); cursor: default }
.ic-btn.fait path { fill: currentColor }
/* Cartes de choix (CartesChoix) : une valeur et ce qu'elle veut dire */
.curseur { max-width: calc(var(--space-7) * 9) }
.curseur input[type=range] { width: 100%; accent-color: var(--ink); margin: 0 }
.curseur .valeur { font-family: var(--font-mono); color: var(--ink); font-weight: var(--text-ui-body-weight); text-transform: none; letter-spacing: normal; margin-left: var(--space-1) }
.curseur .bornes { display: flex; justify-content: space-between; gap: var(--space-3); font-size: var(--text-ui-caption-size); color: var(--text-muted) }
.cartes-choix { display: grid; gap: var(--space-2); grid-template-columns: repeat(auto-fill, minmax(calc(var(--space-7) * 2.25), 1fr)) }
.carte-choix { position: relative; display: flex; flex-direction: column; gap: var(--space-1); height: 100%; cursor: pointer;
  padding: var(--space-3); border: 1px solid var(--border); border-radius: var(--radius-field); background: var(--surface) }
.carte-choix input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer }
.carte-choix b { color: var(--ink); font-weight: var(--text-ui-strong-weight); font-size: var(--text-ui-caption-size) }
.carte-choix span { color: var(--text-muted); font-size: var(--text-ui-caption-size); line-height: var(--text-ui-caption-leading) }
.carte-choix:hover { border-color: var(--border-field) }
.carte-choix:has(input:checked) { border-color: var(--border-strong); box-shadow: inset 0 0 0 1px var(--border-strong); background: var(--surface-alt) }
.carte-choix:has(input:focus-visible) { outline: var(--focus-ring) solid var(--border-strong); outline-offset: 2px }
/* Déclencheur de barre (Select, MultiSelect, ActionMenu) */
.btn { height: var(--control-h-sm); display: inline-flex; align-items: center; gap: var(--space-2);
  padding: 0 var(--space-3); border: 1px solid var(--border); border-radius: var(--radius-field);
  background: var(--surface); color: var(--ink); cursor: pointer; white-space: nowrap; text-decoration: none;
  transition: border-color var(--duration-fast), background var(--duration-fast), opacity var(--duration-fast) }
.btn:hover { border-color: var(--border-field) }
details[open] > .btn { border-color: var(--border-strong) }
.btn .k { color: var(--text-muted) }
.btn.quiet { border-color: transparent; background: transparent; color: var(--text) }
.btn.quiet:hover, details[open] > .btn.quiet { background: var(--surface-alt); border-color: transparent; color: var(--ink) }
.btn.icon { width: var(--control-h-sm); padding: 0; justify-content: center }
/* Une icône devant le mot d'un bouton (l'engrenage de « Réglages ») prend la couleur du mot. */
.btn .ico.devant { color: inherit }
/*
 * Le damier (maquette media-cartes-fichier, 16/11/2026) : le conteneur d'une image transparente (img[data-fond],
 * posé par l'app ou mesuré par le script) prend un damier qui dit la transparence. Neutre : celui du thème ;
 * clair sous une image foncée, sombre sous une image claire, les mêmes dans les deux thèmes. « !important » : le
 * damier l'emporte sur le fond qu'une vignette, une fiche ou la visionneuse donne d'ordinaire à son image.
 */
:has(> img[data-fond]) { --d-a: var(--surface); --d-b: var(--surface-alt); --d-c: calc(var(--space-2) * 1.5);
  background-color: var(--d-a) !important; background-image: conic-gradient(var(--d-b) 25%, transparent 0 50%, var(--d-b) 0 75%, transparent 0) !important;
  background-size: calc(var(--d-c) * 2) calc(var(--d-c) * 2) !important }
:has(> img[data-fond="clair"]) { --d-a: var(--on-navy); --d-b: color-mix(in srgb, var(--tdc-navy) 7%, var(--on-navy)) }
:has(> img[data-fond="sombre"]) { --d-a: var(--tdc-navy); --d-b: color-mix(in srgb, var(--on-navy) 9%, var(--tdc-navy)) }
img[data-fond] { background: none !important }
.badge { font-family: var(--font-mono); font-size: var(--text-data-sm-size); line-height: var(--text-data-sm-leading);
  padding: 0 var(--space-2); border-radius: var(--radius-pill); background: var(--surface-alt); color: var(--ink) }
.recherche { position: relative; display: flex; flex: 1 1 calc(var(--space-6) * 7) }
.recherche input[type=search] { width: 100%; height: var(--control-h-sm); border-color: var(--border-field);
  padding-left: calc(var(--field-x) + var(--text-ui-body-size) + var(--space-2));
  transition: border-color var(--duration-fast) }
.recherche input[type=search]:hover { border-color: var(--border-strong) }
.recherche input[type=search]:focus { border-color: var(--border-strong) }
.recherche .ico { position: absolute; left: var(--field-x); top: 50%; transform: translateY(-50%) }
/* Panneau : <details class="dd"> */
details.dd { position: relative; display: inline-block }
details.dd > summary { list-style: none }
details.dd > summary::-webkit-details-marker { display: none }
details.dd > summary .chev { transition: transform var(--duration-fast) }
details.dd[open] > summary .chev { transform: rotate(180deg) }
/* Auteur (0092) : l'étoile, le nom court du skill en gras, puis l'associé ; ce qui manque, en gris. */
.auteur { color: var(--ink) }
.auteur b { font-weight: var(--text-ui-strong-weight) }
.auteur .ico { width: 14px; height: 14px; color: var(--text-muted); vertical-align: -2px; margin-right: var(--space-1) }
.auteur .point-auteur { color: var(--text) }
.auteur .muet { color: var(--text-muted) }
.pile-auteurs { display: flex; flex-direction: column; gap: var(--space-2) }
/* ChoixDiscret (0092) : une valeur de cellule qui se change sur place. Du texte au repos, un contrôle au survol. */
details.dd.discret .pop { min-width: calc(var(--space-6) * 6) }
.choix-discret { display: inline-flex; align-items: center; gap: var(--space-1); height: var(--control-h-sm); padding: 0 var(--space-2);
  margin-left: calc(var(--space-2) * -1); border: 1px solid transparent; border-radius: var(--radius-field); color: var(--ink);
  cursor: pointer; white-space: nowrap }
.choix-discret.manque > span { color: var(--text-muted) }
.choix-discret .chev { color: var(--text-muted); opacity: 0; transition: opacity var(--duration-fast) }
.choix-discret:hover, details.dd.discret[open] > .choix-discret { border-color: var(--border-field); background: var(--surface) }
.choix-discret.manque .chev, .choix-discret:hover .chev, .choix-discret:focus-visible .chev, details.dd.discret[open] > .choix-discret .chev { opacity: 1 }
details.dd.discret .note-liste { margin: 0; padding: var(--space-1) var(--field-x) var(--space-2); color: var(--text-muted); font-size: var(--text-ui-caption-size); white-space: normal }
@media (hover: none) { .choix-discret .chev { opacity: 1 } }
@media (prefers-reduced-motion: reduce) { .choix-discret .chev { transition: none } }
.pop { position: absolute; top: calc(100% + var(--popover-offset)); left: 0; z-index: var(--z-pop); min-width: calc(var(--space-6) * 7);
  padding: var(--space-1); background: var(--surface-raised); border: 1px solid var(--border);
  border-radius: var(--radius-card); box-shadow: var(--shadow-popover); text-align: left }
.pop.right { left: auto; right: 0 }
.pop.large { width: calc(var(--space-6) * 8.5) }
.pop .recherche { margin: var(--space-1) var(--space-1) var(--space-2) }
.pop .liste { max-height: calc(var(--control-h-sm) * 9); overflow: auto }
.opt { display: flex; align-items: center; gap: var(--space-2); width: 100%; min-height: var(--control-h-sm); height: auto;
  padding: var(--space-1) var(--field-x); border: 0; border-radius: var(--radius-field); background: transparent;
  color: var(--ink); text-align: left; text-decoration: none; cursor: pointer; transition: background var(--duration-fast) }
.opt:hover, .opt:focus-visible, .opt:focus-within { background: var(--surface-alt) }
.opt:focus-visible { outline-offset: calc(var(--focus-ring) * -1) }
.opt .fin { margin-left: auto }
.opt.crit { color: var(--state-crit) }
.pop form { margin: 0 }
/* SectionPliable — une section de formulaire qui se plie ; repliée, ses badges (maquette sections-recette, 15/11/2026). */
/* ZoneRepliable (maquette compte-rendu-envoye, 15/11/2026) : réduite, le début sous un fondu ; la petite flèche
   dessous déplie et replie. Sans script, le contenu est entier et la flèche n'existe pas. */
.zr { display: flex; flex-direction: column; align-items: stretch }
.zr-contenu { min-width: 0 }
.js .zr[data-replie] .zr-contenu { max-height: var(--zr-h, calc(var(--space-7) * 5.5)); overflow: hidden;
  -webkit-mask-image: linear-gradient(to bottom, var(--ink) 55%, transparent); mask-image: linear-gradient(to bottom, var(--ink) 55%, transparent) }
.zr-fleche { display: none }
.js .zr-fleche { display: inline-grid; place-content: center; align-self: center; margin-top: calc(var(--space-2) * -1); position: relative;
  width: var(--control-h-sm); height: var(--control-h-sm); padding: 0; border: 1px solid var(--border); border-radius: var(--radius-pill);
  background: var(--surface); color: var(--text-muted); cursor: pointer }
.zr-fleche:hover { color: var(--ink); border-color: var(--border-strong) }
.zr-fleche svg { transition: transform var(--duration-fast) }
.zr:not([data-replie]) .zr-fleche svg { transform: rotate(180deg) }
@media (prefers-reduced-motion: reduce) { .zr-fleche svg { transition: none } }
details.pliable { border-top: 1px solid var(--border) }
details.pliable > summary { list-style: none; display: grid; grid-template-columns: auto max-content minmax(0, 1fr); align-items: center; gap: var(--space-2) var(--space-3);
  padding: var(--space-3) 0; cursor: pointer }
details.pliable > summary::-webkit-details-marker { display: none }
details.pliable > summary:focus-visible { outline: var(--focus-ring) solid var(--focus); outline-offset: var(--space-1); border-radius: var(--radius-field) }
details.pliable .chev-p { display: inline-flex; color: var(--text-muted); transform: rotate(-90deg); transition: transform var(--duration-fast) }
details.pliable[open] .chev-p { transform: none }
details.pliable .titre-p { color: var(--ink); font-weight: var(--text-ui-strong-weight) }
details.pliable .resume { display: flex; flex-wrap: wrap; gap: var(--space-1); min-width: 0 }
details.pliable[open] .resume { display: none }
details.pliable > .corps-p { display: flex; flex-direction: column; gap: var(--space-4); padding: 0 0 var(--space-5) calc(var(--space-5) + var(--space-1)) }
details.pliable .nuance-mini { display: inline-block; width: var(--space-3); height: var(--space-3); border-radius: var(--radius-field); border: 1px solid var(--border-strong) }
.tout-sections { display: flex; gap: var(--space-3); justify-content: flex-end; margin: 0 0 var(--space-2); font-size: var(--text-ui-caption-size) }
.tout-sections .lien { background: none; border: 0; padding: 0; font: inherit; cursor: pointer }
html:not(.js) .tout-sections { display: none }
@media (max-width: 520px) {
  details.pliable > summary { grid-template-columns: auto minmax(0, 1fr) }
  details.pliable .resume { grid-column: 2 }
  details.pliable > .corps-p { padding-left: 0 }
}
/* MenuGestes — le bouton nommé qui ouvre les façons de créer (maquette nouvelle-image, 15/11/2026). */
details.dd.gestes > summary { display: inline-flex; align-items: center; gap: var(--space-2) }
details.dd.gestes .pop { width: calc(var(--space-6) * 10); max-width: calc(100vw - var(--gutter-ui) * 2); padding: var(--space-1) }
details.dd.gestes .liste { max-height: none }
details.dd.gestes .opt { flex-direction: column; align-items: flex-start; gap: var(--space-1); padding-top: var(--space-2); padding-bottom: var(--space-2);
  color: var(--ink); font-weight: var(--text-ui-strong-weight); white-space: normal; text-decoration: none }
details.dd.gestes .opt small { color: var(--text-muted); font-weight: var(--text-ui-body-weight); font-size: var(--text-ui-caption-size); line-height: var(--text-ui-caption-leading) }
details.dd.gestes .opt.hors { color: var(--text-muted); cursor: not-allowed }
details.dd.gestes .opt.hors:hover { background: none }
details.dd.gestes .note-gestes { margin: var(--space-1) 0 0; padding: var(--space-2) var(--field-x); border-top: 1px solid var(--border); color: var(--text-muted); font-size: var(--text-ui-caption-size) }
@media (max-width: 520px) { details.dd.gestes { width: 100% } details.dd.gestes > summary { width: 100%; justify-content: center } details.dd.gestes .pop { left: 0; right: auto; width: 100% } }
/* DeposerFichiers : fermé, il reste dans la page pour le script, sans se voir ; ouvert, c'est un panneau. */
form.deposer:not(.ouvert) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap }
form.deposer.ouvert { border: 1px solid var(--border-field); border-radius: var(--radius-card); background: var(--surface); padding: var(--space-4);
  display: flex; flex-direction: column; gap: var(--space-3); box-shadow: var(--shadow-card) }
form.deposer header { display: flex; flex-direction: column; gap: var(--space-1) }
form.deposer header p { margin: 0 }
form.deposer .titre-deposer { margin: 0; font-size: var(--text-ui-heading-size); line-height: var(--text-ui-heading-leading); font-weight: var(--text-ui-heading-weight) }
form.deposer input[type="file"] { font: inherit; color: var(--text) }
.pied-deposer { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2) }
.zone-depot { position: relative }
.voile-depot { position: absolute; inset: 0; z-index: var(--z-pop); border: var(--focus-ring) dashed var(--border-strong); border-radius: var(--radius-card);
  background: color-mix(in srgb, var(--surface) 85%, transparent); display: flex; align-items: flex-start; justify-content: center; padding: calc(var(--space-7) * 2) var(--space-5) var(--space-5); pointer-events: none }
.voile-depot .boite { position: sticky; top: calc(var(--space-7) * 2); background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-card); box-shadow: var(--shadow-card);
  padding: var(--space-4) var(--space-5); display: flex; flex-direction: column; gap: var(--space-1); text-align: center; max-width: calc(var(--space-7) * 9) }
.voile-depot .boite b { color: var(--ink); font-size: var(--text-ui-heading-size); line-height: var(--text-ui-heading-leading) }
.voile-depot .boite span { color: var(--text-muted); font-size: var(--text-ui-caption-size) }
.sep { height: 1px; margin: var(--space-1) 0; background: var(--border) }
.pied { display: flex; align-items: center; gap: var(--space-3); padding: var(--space-2) var(--field-x) var(--space-1);
  margin-top: var(--space-1); border-top: 1px solid var(--border) }
.pied .btn { margin-left: auto }
.js .sans-js { display: none }
.lien { border: 0; background: none; padding: 0; height: auto; font-size: var(--text-ui-caption-size);
  line-height: var(--text-ui-caption-leading); color: var(--state-info); cursor: pointer;
  text-decoration: underline; text-underline-offset: var(--trait) }
/* Checkbox */
.cb { appearance: none; -webkit-appearance: none; flex: none; width: var(--check-size); height: var(--check-size);
  margin: 0; display: inline-grid; place-content: center; border: 1px solid var(--border-field);
  border-radius: var(--radius-check); background: var(--surface); cursor: pointer;
  transition: background var(--duration-fast), border-color var(--duration-fast) }
.cb:checked { background: var(--border-strong); border-color: var(--border-strong) }
.cb:checked::after { content: ""; width: calc(var(--check-size) / 2 + 1px); height: calc(var(--check-size) / 4 + 1px);
  margin-top: calc(var(--trait) * -1); border-left: var(--trait) solid var(--surface);
  border-bottom: var(--trait) solid var(--surface); transform: rotate(-45deg) }
/* FilterTabs */
.tabs { display: flex; flex-wrap: wrap; gap: var(--space-1); border-bottom: 1px solid var(--border) }
.tab { display: inline-flex; align-items: center; gap: var(--space-2); height: var(--control-h); padding: 0 var(--space-3);
  margin-bottom: -1px; border-bottom: var(--trait) solid transparent; color: var(--text); text-decoration: none;
  transition: color var(--duration-fast), border-color var(--duration-fast) }
.tab:hover { color: var(--ink); border-bottom-color: var(--border-field) }
.tab.on { color: var(--ink); font-weight: var(--text-ui-strong-weight); border-bottom-color: var(--tdc-yellow) }
.tab .n { font-family: var(--font-mono); font-size: var(--text-data-sm-size); font-weight: var(--text-ui-body-weight);
  color: var(--text-muted) }
.dot { width: var(--dot); height: var(--dot); border-radius: var(--radius-pill); background: currentColor; flex: none }
.d-ok { color: var(--state-ok) }
.d-warn { color: var(--state-warn) }
.d-crit { color: var(--state-crit) }
.d-info { color: var(--state-info) }
/* FilterChips */
.chips { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2); min-height: var(--control-h-sm) }
.chip { display: inline-flex; align-items: center; gap: var(--space-1); height: var(--control-h-sm);
  padding: 0 var(--space-1) 0 var(--space-3); border: 1px solid var(--border); border-radius: var(--radius-pill);
  background: var(--surface-alt); color: var(--ink); font-size: var(--text-ui-caption-size); line-height: var(--text-ui-caption-leading) }
.chip .k { color: var(--text-muted) }
.chip a { display: inline-grid; place-content: center; width: calc(var(--control-h-sm) - var(--space-2));
  height: calc(var(--control-h-sm) - var(--space-2)); border-radius: var(--radius-pill); color: var(--text-muted);
  transition: background var(--duration-fast) }
.chip a:hover { background: var(--border); color: var(--ink) }
.chip a .ico { width: var(--text-ui-caption-size); height: var(--text-ui-caption-size); color: inherit }
.chips .total { margin-left: auto }
/* KeyFigure */
/* KeyFigure — une bande de chiffres au liseret fin, la même partout. Les filets
   entre les cases sont l'espace de 1px qui laisse voir le fond de la grille. */
.figures { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--border);
  border: 1px solid var(--border); border-radius: var(--radius-card); overflow: hidden }
.figure { display: flex; flex-direction: column; gap: var(--space-1); padding: var(--space-3) var(--space-4); background: var(--surface) }
.figure b { display: block; font-size: var(--text-figure-size); line-height: var(--text-figure-leading);
  font-weight: var(--text-figure-weight); letter-spacing: var(--text-figure-tracking); color: var(--ink) }
/* DataTable */
table { width: 100%; border-collapse: collapse }
th { text-align: left; font-size: var(--text-ui-label-size); font-weight: var(--text-ui-label-weight);
  letter-spacing: var(--text-ui-label-tracking); text-transform: uppercase; color: var(--text-muted);
  background: var(--surface-alt); padding: var(--space-2) var(--space-3); white-space: nowrap }
td { padding: var(--row-y) var(--space-3); border-bottom: 1px solid var(--border); vertical-align: top }
tbody tr { transition: background var(--duration-fast) }
tbody tr:hover { background: var(--surface-alt) }
td.data, th.data { font-family: var(--font-mono); font-size: var(--text-data-sm-size);
  line-height: var(--text-ui-body-leading); color: var(--text-muted); white-space: nowrap }
details.fold > summary { display: grid; grid-template-columns: auto auto minmax(0, 1fr) auto auto; align-items: center;
  gap: var(--space-3); padding: var(--row-y) var(--space-2); cursor: pointer; list-style: none }
details.fold > summary::-webkit-details-marker { display: none }
details.fold .cv { transition: transform var(--duration-fast) }
details.fold[open] .cv { transform: rotate(90deg) }
@media (prefers-reduced-motion: reduce) {
  details.fold .cv, details.dd > summary .chev { transition: none } }
details.fold .bd { display: flex; flex-direction: column; gap: var(--space-3);
  padding: 0 var(--space-2) var(--space-4) calc(var(--space-2) + var(--text-ui-body-size) + var(--space-3)) }
details.fold .bd .why { margin: 0 }
@media (max-width: 760px) {
  details.fold > summary { grid-template-columns: auto minmax(0, 1fr) auto } }
/* StatusPill — un point ET un mot, jamais la couleur seule (0025) */
.pill { display: inline-flex; align-items: center; gap: var(--space-1);
  padding: 0 var(--space-2); border-radius: var(--radius-pill);
  font-size: var(--text-data-sm-size); line-height: var(--text-ui-body-leading); white-space: nowrap }
.pill i { width: var(--dot); height: var(--dot); border-radius: var(--radius-pill);
  background: currentColor; flex: none }
/* Les cinq tons d'état. Une app nomme ses états et les rattache à un ton. */
.pill.ok { color: var(--state-ok); background: var(--state-ok-bg) }
.pill.warn { color: var(--state-warn); background: var(--state-warn-bg) }
.pill.crit { color: var(--state-crit); background: var(--state-crit-bg) }
.pill.info { color: var(--state-info); background: var(--state-info-bg) }
.pill.neutre { color: var(--text-muted); background: var(--surface-alt) }
/* EtatDesLieux — un badge par élément ; absent : le point se creuse, le fond s'efface, le mot dit ce qui manque */
.pill.manque { background: transparent; box-shadow: inset 0 0 0 1px var(--border) }
.pill.manque i { background: transparent; box-shadow: inset 0 0 0 1.5px currentColor }
.pill small { color: inherit; font-size: inherit; opacity: .8 }
.etat-lieux .tete-l { margin: 0 0 var(--space-3); display: flex; flex-wrap: wrap; gap: var(--space-1) var(--space-3); align-items: baseline;
  font-size: var(--text-ui-caption-size); color: var(--text-muted) }
.etat-lieux .tete-l b { color: var(--ink); font-weight: var(--text-ui-strong-weight) }
.etat-lieux dl { margin: 0; display: grid; grid-template-columns: minmax(0, 10rem) minmax(0, 1fr); gap: var(--space-2) var(--space-4); align-items: baseline }
.etat-lieux dt { color: var(--text-muted); font-size: var(--text-ui-caption-size); line-height: var(--text-ui-caption-leading) }
.etat-lieux dd { margin: 0; display: flex; flex-wrap: wrap; gap: var(--space-2) }
.etat-lieux .badge-lien { text-decoration: none; border-radius: var(--radius-pill) }
.etat-lieux .badge-lien:hover .pill { box-shadow: inset 0 0 0 1px var(--border-strong) }
.etat-lieux .note-g { flex-basis: 100%; margin: 0; font-size: var(--text-ui-caption-size); color: var(--text-muted) }
/* MaisonDeMarque — un fronton au trait, puis des étages nommés en tête. Pas de bande sombre ; le jaune n'y est pas. */
.maison { display: flex; flex-direction: column; max-width: 860px }
.maison .fronton { position: relative; height: calc(var(--space-7) * 1.25); background: var(--border-strong); clip-path: polygon(50% 0, 100% 100%, 0 100%) }
.maison .fronton::before { content: ""; position: absolute; inset: 1.5px 0 0; background: var(--surface-alt); clip-path: polygon(50% 0, calc(100% - 2.5px) 100%, 2.5px 100%) }
.maison .etage { border: 1px solid var(--border-strong); border-top: 0; padding: var(--space-4) var(--space-5); background: var(--surface) }
.maison .etage p { margin: 0; color: var(--ink) }
.maison .etage.promesse { background: var(--surface-alt); text-align: center }
.maison .etage.fondations { background: var(--surface-sunken) }
.maison .nom-etage, .maison .etage .nom-etage { margin: 0 0 var(--space-2); color: var(--text-muted); font-size: var(--text-ui-label-size); font-weight: var(--text-ui-label-weight);
  letter-spacing: var(--text-ui-label-tracking); text-transform: uppercase; line-height: var(--text-ui-label-leading) }
.maison .prom { font-size: var(--text-ui-title-size); line-height: var(--text-ui-title-leading); font-weight: var(--text-ui-title-weight); text-wrap: balance }
.maison .traits { display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-5); margin: 0; padding: 0; list-style: none }
.maison .traits b { color: var(--ink); font-weight: var(--text-ui-strong-weight) }
.maison .traits span { color: var(--text-muted) }
.maison .piliers { display: grid; grid-template-columns: repeat(var(--n-piliers, 3), minmax(0, 1fr)); border: 1px solid var(--border-strong); border-top: 0 }
.maison .piliers > .nom-etage { grid-column: 1 / -1; padding: var(--space-4) var(--space-5) 0 }
.maison .piliers section { padding: var(--space-3) var(--space-5) var(--space-4); background: var(--surface) }
.maison .piliers section + section { border-left: 1px solid var(--border-strong) }
.maison .piliers h4 { margin: 0 0 var(--space-2); color: var(--ink); font-size: var(--text-ui-strong-size); font-weight: var(--text-ui-strong-weight); line-height: var(--text-ui-strong-leading) }
.maison .piliers p { margin: 0; color: var(--text) }
@media (max-width: 760px) {
  .maison .piliers { grid-template-columns: minmax(0, 1fr) }
  .maison .piliers section + section { border-left: 0; border-top: 1px solid var(--border-strong) } }
@media (max-width: 760px) { .etat-lieux dl { grid-template-columns: minmax(0, 1fr); gap: var(--space-1) } .etat-lieux dd { margin-bottom: var(--space-2) } }
/* Alert */
.alert { border-radius: var(--radius-card); padding: var(--space-4);
  background: var(--state-crit-bg); color: var(--state-crit) }
/* FieldRow — l'édition en place */
.fields { display: grid; gap: var(--space-2); padding: var(--space-3) 0 }
.fields .row { display: flex; gap: var(--space-2); flex-wrap: wrap; align-items: center }
.accroche { margin: 0; color: var(--ink); max-width: var(--text-max) }
.accroche.grande { font-size: var(--text-ui-body-lg-size); line-height: var(--text-ui-body-lg-leading); color: var(--ink); max-width: var(--text-max) }
/* Il lui faut → (Il fait →) Il produit : l'entrée en creux, la sortie pleine */
.es { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: stretch; gap: var(--space-2) }
.es.trois { grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) auto minmax(0, 1fr) }
.es-case { border-radius: var(--radius-card); padding: var(--space-3) var(--space-4); display: flex; flex-direction: column; gap: var(--space-2) }
.es-case.entree { border: 1px dashed var(--border-field) }
.es-case.coeur { background: var(--surface-alt) }
.es-case.sortie { background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-card) }
.es-case p { margin: 0 }
.es-tete { display: flex; align-items: center; gap: var(--space-2) }
.es-tete .label { margin: 0 }
.es-case.sortie .es-tete .ico, .es-case.sortie .es-tete .label { color: var(--ink) }
.es-vers { align-self: center; color: var(--text-muted) }
.es-liste, .es-etapes { margin: 0; display: flex; flex-direction: column; gap: var(--space-1);
  font-size: var(--text-ui-caption-size); line-height: var(--text-ui-caption-leading) }
.es-liste { padding: 0; list-style: none }
.es-etapes { padding-left: var(--space-4) }
/* En entrée, un point creux ; en sortie, un point plein */
.es-liste li { position: relative; padding-left: var(--space-3); color: var(--text) }
.es-liste li::before { content: ""; position: absolute; left: 0; top: .55em; width: var(--dot); height: var(--dot);
  box-sizing: border-box; border-radius: var(--radius-pill); border: 1px solid var(--text-muted) }
.sortie .es-liste li { color: var(--ink) }
.sortie .es-liste li::before { background: var(--ink); border-color: var(--ink) }
.etat { display: inline-flex; align-items: center; gap: var(--space-1); color: var(--text) }
.etat .dot { background: currentColor }
.regles { margin: 0; padding-left: var(--space-5); display: flex; flex-direction: column; gap: var(--space-2); max-width: var(--text-max) }
.regles b { color: var(--ink); font-weight: var(--text-ui-strong-weight) }
.regles .detail { display: block; color: var(--text-muted); font-size: var(--text-ui-caption-size); line-height: var(--text-ui-caption-leading) }
@media (max-width: 760px) {
  .figures { grid-template-columns: 1fr 1fr }
  .es, .es.trois { grid-template-columns: 1fr }
  .es-vers { transform: rotate(90deg); justify-self: center } }
.chapeau { margin: 0; max-width: var(--text-max); font-size: var(--text-ui-body-lg-size); line-height: var(--text-ui-body-lg-leading); color: var(--text) }
/* Les onglets des vues, en tête de chaque app */
.vues { margin-bottom: var(--space-4) }
.vues .tab { height: var(--control-h-sm) }
/* Une section d'une vue : son titre, son accroche, puis son contenu */
.section { display: flex; flex-direction: column; gap: var(--space-4); padding-top: var(--space-6) }
.section > header { display: flex; flex-direction: column; gap: var(--space-1) }
/* Un écran de question ou de formulaire : la même largeur et la même tête dans toutes les apps */
.ecran { display: flex; flex-direction: column; gap: var(--space-5); max-width: var(--form-max); min-width: 0 }
.tete-ecran { display: flex; flex-direction: column; gap: var(--space-2) }
.tete-ecran p { margin: 0; max-width: var(--text-max) }
/* La fiche d'un objet, la même dans toutes les apps (maquette de Project, 11/11/2026) : le fil d'Ariane à la
   place des vues de l'app, le code ou l'identifiant, le nom en h1 et le geste qui le change, la ligne d'état,
   la ligne des faits, les onglets ; puis le panneau de l'onglet. */
.fiche { display: flex; flex-direction: column; min-width: 0 }
.fiche .ariane { margin-bottom: var(--space-3) }
.f-tete { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--space-4) }
.f-tete > div { min-width: 0 }
.f-tete .f-code { margin: 0 0 var(--space-1); font-family: var(--font-mono); font-size: var(--text-data-sm-size); color: var(--text-muted) }
.f-tete .btn { flex: none }
.f-etat { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2) var(--space-3); margin: var(--space-3) 0 0; color: var(--text) }
.f-etat > a { color: var(--text); text-decoration: none; border-bottom: 1px solid var(--border) }
.f-etat > a:hover { color: var(--ink); border-bottom-color: var(--text-muted) }
.f-etat .pt { color: var(--border-field) }
.f-etat .mono { font-family: var(--font-mono); font-size: var(--text-data-sm-size) }
.f-etat b { color: var(--ink); font-weight: var(--text-ui-strong-weight) }
.f-faits { margin: var(--space-2) 0 0; font-size: var(--text-ui-caption-size); color: var(--text-muted) }
.f-faits .mono { font-family: var(--font-mono); font-size: var(--text-data-sm-size) }
.f-faits a { color: var(--text-muted) }
.f-faits .dossier-l { display: inline-flex; align-items: center; gap: var(--space-1) }
.f-faits .dossier-l .ico { color: inherit }
.f-onglets { margin-top: var(--space-5) }
.f-acc { margin: var(--space-1) 0 0; max-width: var(--text-max); color: var(--text) }
.panneau { padding-top: var(--space-4) }
/* Le lien qui ramène d'où l'on vient, au-dessus du titre */
.retour-liste { align-self: flex-start; font-size: var(--text-ui-caption-size) }
.bloc { display: flex; flex-direction: column; gap: var(--space-2) }
.titre-bloc { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3) }
.deux { display: grid; grid-template-columns: repeat(auto-fit, minmax(calc(var(--space-6) * 7), 1fr)); gap: var(--space-5) }
.puces { margin: 0; padding-left: var(--space-4); display: flex; flex-direction: column; gap: var(--space-1) }
.dl { display: grid; grid-template-columns: max-content 1fr; gap: var(--space-2) var(--space-4); margin: 0 }
.dl dt { color: var(--text-muted) }
.dl dd { margin: 0 }
/* Puces de valeurs */
.valeurs { display: flex; flex-wrap: wrap; gap: var(--space-1); margin: 0; padding: 0; list-style: none }
.valeurs li { background: var(--surface-alt); border-radius: var(--radius-pill); padding: 0 var(--space-2);
  color: var(--ink); line-height: var(--text-ui-body-leading) }
.valeurs.ecart li { background: transparent; border: 1px dashed var(--border-field); color: var(--text) }
/* Paires libellé-valeur */
.dl.paires { grid-template-columns: max-content minmax(0, 1fr) }
.dl.paires dd { color: var(--ink) }
/* Liste de liens */
.liens-nommes { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: var(--space-2) }
.liens-nommes li { display: flex; justify-content: space-between; gap: var(--space-3); align-items: baseline;
  border-bottom: 1px solid var(--border); padding-bottom: var(--space-2) }
.liens-nommes .manque { color: var(--text-muted); font-size: var(--text-ui-caption-size) }
pre { margin: 0; white-space: pre-wrap; word-break: break-word; font-family: var(--font-mono);
  font-size: var(--text-data-size); line-height: var(--text-data-leading); color: var(--ink);
  background: var(--surface-sunken); border: 1px solid var(--border); border-radius: var(--radius-card);
  padding: var(--space-4) }
details.pli > summary { cursor: pointer; color: var(--text-muted) }
details.pli[open] > summary { margin-bottom: var(--space-3) }
.avec-js { display: none }
.js .avec-js { display: inline-flex }
.encart { border-radius: var(--radius-card); padding: var(--space-4); background: var(--state-info-bg);
  color: var(--state-info); display: flex; flex-direction: column; gap: var(--space-2) }
code { font-family: var(--font-mono); font-size: var(--text-data-sm-size) }
/* UndoToast et bandeau d'erreur d'un geste : en haut, sous la barre, fixés quand on fait défiler (16/11/2026) */
.toast, .alert.flottante { position: fixed; right: var(--space-5); top: calc(var(--hauteur-barre) + var(--space-3)); z-index: var(--z-toast);
  max-width: min(var(--text-max), calc(100vw - var(--space-5) * 2)) }
.alert.flottante { display: flex; align-items: center; gap: var(--space-3); padding: var(--space-2) var(--space-2) var(--space-2) var(--space-4);
  border: 1px solid var(--border); box-shadow: var(--shadow-popover) }
.alert.flottante .btn { color: inherit }
.toast { display: flex;
  align-items: center; gap: var(--space-3); padding: var(--space-2) var(--space-2) var(--space-2) var(--space-4);
  background: var(--surface-raised); border: 1px solid var(--border); border-radius: var(--radius-card);
  box-shadow: var(--shadow-popover); color: var(--ink) }
.toast form { margin: 0 }
/* À 375 px, une marge égale des deux côtés : un message long ne colle plus le bandeau au bord gauche (15/11/2026). */
@media (max-width: 760px) { .toast, .alert.flottante { left: var(--space-3); right: var(--space-3); top: calc(var(--hauteur-barre) + var(--space-2)); max-width: none }
  .toast > span, .alert.flottante > span { min-width: 0; overflow-wrap: anywhere } }
.empty { color: var(--text-muted); padding: var(--space-6) 0 }
/* Rubriques d'une fiche longue : l'intitulé à gauche, le contenu à droite */
.d-vide { color: var(--text-muted) }
.sommaire { position: sticky; top: var(--hauteur-barre); z-index: var(--z-dessus); background: var(--surface); display: flex; flex-wrap: wrap;
  gap: var(--space-1) var(--space-5); padding: var(--space-3) 0; border-bottom: 1px solid var(--border) }
.sommaire a { display: inline-flex; align-items: center; gap: var(--space-2); color: var(--text);
  text-decoration: none; font-size: var(--text-ui-caption-size); min-height: var(--control-h-sm) }
.sommaire a:hover { color: var(--ink); text-decoration: underline }
.sommaire .etat { color: var(--text-muted) }
.rubriques { display: flex; flex-direction: column }
.rubrique { display: grid; grid-template-columns: calc(var(--space-7) * 4) minmax(0, 1fr); gap: var(--space-6);
  padding: var(--space-6) 0; border-top: 1px solid var(--border); scroll-margin-top: calc(var(--hauteur-barre) + var(--space-7)) }
.rubrique:first-child { border-top: 0 }
.r-tete { display: flex; flex-direction: column; gap: var(--space-2); align-self: start }
.r-tete h2 { margin: 0; font-size: var(--text-ui-title-size); line-height: var(--text-ui-title-leading);
  font-weight: var(--text-ui-title-weight) }
.r-tete .etat { font-size: var(--text-ui-caption-size) }
.r-corps { display: flex; flex-direction: column; gap: var(--space-4); max-width: var(--text-max); min-width: 0 }
.r-corps .deux { max-width: none }
.r-corps .empty { padding: 0 }
.marque-ia { display: inline-flex; align-items: center; vertical-align: middle; margin-left: var(--space-1); color: var(--text-muted); cursor: help }
.marque-ia .ico { width: var(--space-4); height: var(--space-4) }
.label .n { font-family: var(--font-mono); color: var(--text-muted); margin-left: var(--space-1) }
/* Liste de choix : un champ qui ouvre la liste du système, jamais un <select> natif */
.choix { display: block; width: 100% }
.choix > summary { display: flex; align-items: center; justify-content: space-between; gap: var(--space-2); width: 100%;
  height: var(--control-h); padding: 0 var(--field-x); border: 1px solid var(--border-field); border-radius: var(--radius-field);
  background: var(--surface); color: var(--ink); cursor: pointer; list-style: none }
.choix > summary::-webkit-details-marker { display: none }
.choix > summary:hover { border-color: var(--border-strong) }
.choix[open] > summary, .choix > summary:focus-visible { border-color: var(--border-strong);
  outline: var(--focus-ring) solid var(--border-strong); outline-offset: 0 }
.choix > summary .valeur { overflow: hidden; text-overflow: ellipsis; white-space: nowrap }
.choix > summary .valeur.vide { color: var(--text-muted) }
.choix .pop { width: 100%; min-width: 0 }
.choix .opt input { position: absolute; opacity: 0; pointer-events: none }
.choix .opt .ico { margin-left: auto; visibility: hidden; flex: none }
.choix .opt:has(input:checked) { font-weight: var(--text-ui-strong-weight) }
.choix .opt:has(input:checked) .ico { visibility: visible }
.choix .opt:has(input:focus-visible) { background: var(--surface-alt); outline: var(--focus-ring) solid var(--border-strong);
  outline-offset: calc(var(--focus-ring) * -1) }
.choix .note-liste { padding: var(--space-1) var(--field-x) var(--space-2); color: var(--text-muted); font-size: var(--text-ui-caption-size) }
/* Champ de lien (0054) : chercher ou coller, la source se déduit */
.lien-champ { position: relative }
.lien-saisie { display: flex; align-items: center; gap: var(--space-2); height: var(--control-h); padding: 0 var(--field-x);
  border: 1px solid var(--border-field); border-radius: var(--radius-field); background: var(--surface) }
.lien-saisie:hover { border-color: var(--border-strong) }
.lien-saisie:focus-within { border-color: var(--border-strong); outline: var(--focus-ring) solid var(--border-strong); outline-offset: 0 }
.lien-saisie input:not([type=checkbox]):not([type=radio]) { flex: 1 1 auto; min-width: 0; height: 100%; border: 0; padding: 0;
  background: transparent; outline: none; box-shadow: none }
.lien-saisie .badge { flex: none }
/* Chargement : une roue fine dans le champ, tant que la recherche ou le titre arrive */
.chargement { flex: none; width: var(--space-3); height: var(--space-3); border-radius: var(--radius-pill);
  border: var(--trait) solid var(--border); border-top-color: var(--ink); animation: tourne calc(var(--duration-fast) * 7) linear infinite }
.chargement[hidden] { display: none }
@keyframes tourne { to { transform: rotate(360deg) } }
@media (prefers-reduced-motion: reduce) { .chargement { animation: none; border-color: var(--border-strong) } }
/* Le bouton en attente (14/11/2026) : la roue devant le mot, à la place de l'icône, au bout de la ligne
   d'un menu ; le mot reste, le jaune aussi. Les autres gestes du groupe se grisent. */
[aria-busy="true"] { cursor: progress }
.btn[aria-busy="true"], .ic-btn[aria-busy="true"], .opt[aria-busy="true"] { color: var(--ink) }
button.primary[aria-busy="true"], a.btn.primary[aria-busy="true"] { color: var(--on-accent) }
/* La roue dans un bouton : un <button> sans .btn n'est pas une boîte flexible, et une roue en ligne n'y
   avait ni largeur ni hauteur (Emmanuel, 15/11/2026 : « le spinner s'affiche mal ou pas »). Son cercle
   suit la couleur du mot, sur le jaune comme ailleurs. */
.chargement { display: inline-block; vertical-align: middle }
button[aria-busy="true"]:not(.btn):not(.opt):not(.ic-btn) { display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2) }
button .chargement, a .chargement { border-color: color-mix(in srgb, currentColor 25%, transparent); border-top-color: currentColor }
.ic-btn[aria-busy="true"] > svg { display: none }
.opt[aria-busy="true"] .chargement { order: 2; margin-left: auto }
[aria-busy="true"] .bulle { display: none }
button:disabled:not([aria-busy]), a[aria-disabled="true"]:not([aria-busy]), .ic-btn:disabled:not([aria-busy]),
.ic-btn[aria-disabled="true"]:not([aria-busy]), .ic-btn.toujours:disabled:not([aria-busy]), .ic-btn.toujours[aria-disabled="true"]:not([aria-busy]),
input.cb:disabled, .barre-groupe .lien:disabled { color: var(--text-muted); cursor: default; text-decoration: none }
.btn:disabled:not([aria-busy]):hover { border-color: var(--border) }
a[aria-disabled="true"] { pointer-events: none }
.ic-btn:disabled:hover, .opt:disabled:hover { background: transparent }
/* Le panneau latéral (maquette panneau-generer, 15/11/2026) : à droite, la liste visible derrière.
   Large, il pousse la page ; plus étroit, il passe par-dessus ; sous 640 px, il prend l'écran. */
:root { --largeur-panneau: min(100vw, calc(var(--space-7) * 10)) }
.panneau-lateral { position: fixed; top: 0; right: 0; bottom: 0; width: var(--largeur-panneau); z-index: var(--z-panneau);
  display: flex; flex-direction: column; min-height: 0; background: var(--surface); border-left: 1px solid var(--border); box-shadow: var(--shadow-elevated) }
/* Large, la page se pousse et se recentre à gauche du panneau ; la barre haute garde sa largeur. */
@media (min-width: 1180px) { body:has(.panneau-lateral:not(.en-place)) main { margin-right: var(--largeur-panneau);
  margin-left: max(0px, calc((100vw - var(--largeur-panneau) - var(--page-max)) / 2)) } }
.panneau-lateral.en-place { position: relative; width: 100%; height: calc(var(--space-7) * 9); z-index: auto; box-shadow: none; border: 1px solid var(--border); border-radius: var(--radius-card); overflow: hidden }
.pl-tete { flex: none; display: flex; align-items: flex-start; gap: var(--space-3); padding: var(--space-4) var(--space-5); border-bottom: 1px solid var(--border) }
.pl-titres { display: flex; flex-direction: column; gap: var(--space-half); min-width: 0 }
.pl-titres h2 { margin: 0; font-size: var(--text-ui-heading-size); line-height: var(--text-ui-heading-leading); font-weight: var(--text-ui-heading-weight); overflow-wrap: anywhere }
.pl-titres p { margin: 0; color: var(--text-muted); font-size: var(--text-ui-caption-size) }
.pl-fermer { margin-left: auto; flex: none; display: inline-grid; place-content: center; width: var(--control-h-sm); height: var(--control-h-sm);
  border-radius: var(--radius-field); color: var(--text-muted) }
.pl-fermer:hover { background: var(--surface-alt); color: var(--ink) }
.pl-actions { flex: none; margin-left: auto; display: flex; align-items: center; gap: var(--space-2) }
.pl-actions .pl-fermer { margin-left: 0 }
.pl-nav { display: flex; align-items: center; gap: var(--space-1) }
.pl-ic { display: inline-grid; place-content: center; width: var(--control-h-sm); height: var(--control-h-sm); border-radius: var(--radius-field); color: var(--text) }
a.pl-ic:hover { background: var(--surface-alt); color: var(--ink) }
.pl-rang { color: var(--text-muted); font-family: var(--font-mono); font-size: var(--text-data-sm-size); white-space: nowrap }
.pl-form { flex: 1 1 auto; display: flex; flex-direction: column; min-height: 0; margin: 0 }
.pl-corps { flex: 1 1 auto; min-height: 0; overflow: auto; padding: var(--space-5); display: flex; flex-direction: column; gap: var(--space-5) }
/* Un bloc du corps garde sa hauteur : c'est le corps qui défile (une image coupée par « overflow: hidden » s'écrasait). */
.pl-corps > * { flex-shrink: 0 }
.pl-pied { flex: none; border-top: 1px solid var(--border); padding: var(--space-4) var(--space-5); display: flex; flex-direction: column; gap: var(--space-2); background: var(--surface) }
.pl-pied > .cap { margin: 0 }
.pl-pied .attente-long { margin: 0 }
@media (max-width: 640px) { .pl-tete, .pl-corps, .pl-pied { padding-left: var(--space-4); padding-right: var(--space-4) } }

/* Le bouton à nombre : la part principale lance, la flèche ouvre les autres nombres. */
.bouton-nombre { display: flex; align-items: stretch; position: relative }
.bouton-nombre > button.primary { flex: 1 1 auto; border-top-right-radius: 0; border-bottom-right-radius: 0 }
.bouton-nombre > details.bn { position: static }
.bouton-nombre > details.bn > summary { list-style: none; height: var(--control-h); width: var(--control-h); display: inline-grid; place-content: center; cursor: pointer;
  background: var(--tdc-yellow); color: var(--on-accent); border: 1px solid var(--tdc-yellow); border-left-color: var(--on-accent);
  border-radius: 0 var(--radius-field) var(--radius-field) 0 }
.bouton-nombre > details.bn > summary::-webkit-details-marker { display: none }
.bouton-nombre > details.bn > summary .chev { color: var(--on-accent); stroke-width: 2 }
.bouton-nombre.desactive > details.bn > summary { pointer-events: none; opacity: .5 }
.bouton-nombre:has(button[aria-busy="true"]) > details.bn > summary { pointer-events: none }
.bouton-nombre .pop { top: auto; bottom: calc(100% + var(--popover-offset)); width: calc(var(--space-6) * 8); max-width: 100%; padding: var(--space-1) }
.bouton-nombre .pop .groupe { margin: 0; padding: var(--space-2) var(--field-x) var(--space-1); color: var(--text-muted); font-size: var(--text-ui-caption-size) }
.bouton-nombre .pop .opt { justify-content: space-between; border: 0; background: transparent; color: var(--ink); font: inherit; cursor: pointer;
  padding-top: var(--space-2); padding-bottom: var(--space-2); height: auto; border-radius: var(--radius-field) }
.bouton-nombre .pop .opt[aria-checked="true"] { font-weight: var(--text-ui-strong-weight) }

/* Le choix illustré : des cartes, un aperçu, le nom et ce qu'il est. */
.ci-cartes { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-3); grid-template-columns: repeat(2, minmax(0, 1fr)) }
@media (max-width: 640px) { .ci-cartes { gap: var(--space-2) } }
.ci-carte { position: relative; min-width: 0 }
.ci-carte input { position: absolute; opacity: 0; pointer-events: none }
.ci-carte label { display: flex; flex-direction: column; height: 100%; cursor: pointer; border: 1px solid var(--border); border-radius: var(--radius-card); overflow: hidden;
  background: var(--surface); transition: border-color var(--duration-fast), box-shadow var(--duration-fast) }
.ci-carte label:hover { border-color: var(--border-strong) }
.ci-apercu { position: relative; display: block; aspect-ratio: 16 / 9; background: var(--surface-sunken); overflow: hidden }
.ci-apercu img { width: 100%; height: 100%; object-fit: cover; display: block }
.ci-cartes.icone .ci-apercu { aspect-ratio: 4 / 3; display: grid; place-content: center }
.ci-cartes.icone .ci-apercu img { width: calc(var(--space-7) * 1.3); height: calc(var(--space-7) * 1.3); object-fit: contain }
/* En thème sombre, une icône montre sa version pour fond sombre, ou se pose sur le fond clair pour lequel elle est dessinée. */
.ci-apercu img.ci-sombre { display: none }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .ci-apercu:has(.ci-sombre) img.ci-clair { display: none }
  :root:not([data-theme="light"]) .ci-apercu img.ci-sombre { display: block }
  :root:not([data-theme="light"]) .ci-cartes.icone .ci-apercu:not(.vide):not(:has(.ci-sombre)) { background: var(--on-navy) } }
[data-theme="dark"] .ci-apercu:has(.ci-sombre) img.ci-clair { display: none }
[data-theme="dark"] .ci-apercu img.ci-sombre { display: block }
[data-theme="dark"] .ci-cartes.icone .ci-apercu:not(.vide):not(:has(.ci-sombre)) { background: var(--on-navy) }
.ci-apercu.vide { display: grid; place-content: center; justify-items: center; gap: var(--space-2); padding: var(--space-2); text-align: center }
.ci-apercu.vide small { color: var(--text-muted); font-size: var(--text-ui-caption-size); line-height: var(--text-ui-caption-leading) }
.ci-couleurs { display: flex; gap: var(--space-1) }
.ci-couleurs span { width: var(--space-4); height: var(--space-4); border-radius: var(--radius-pill); border: 1px solid var(--border) }
.ci-badge { position: absolute; top: var(--space-2); left: var(--space-2) }
.ci-pied { display: flex; align-items: flex-start; gap: var(--space-2); padding: var(--space-2) var(--space-3) }
.ci-nom { display: flex; flex-direction: column; gap: var(--space-half); min-width: 0 }
.ci-nom strong { color: var(--ink); font-weight: var(--text-ui-strong-weight); overflow-wrap: anywhere }
.ci-nom small { color: var(--text-muted); font-size: var(--text-ui-caption-size) }
.ci-pied .ico { margin-left: auto; flex: none; visibility: hidden; color: var(--ink) }
.ci-carte input:checked + label { border-color: var(--border-strong); box-shadow: 0 0 0 1px var(--border-strong) }
.ci-carte input:checked + label .ci-pied .ico { visibility: visible }
.ci-carte input:focus-visible + label { outline: var(--focus-ring) solid var(--border-strong); outline-offset: 2px }
.ci-note { margin: 0 }
.attente-long { display: flex; align-items: flex-start; gap: var(--space-2); margin: var(--space-2) 0 0; color: var(--text-muted); font-size: var(--text-ui-caption-size) }
.attente-long .dot { margin-top: calc((1lh - var(--dot)) / 2) }
/* L'historique d'une app : une ligne par geste, l'heure, ce qui a changé, qui, puis « Défaire » ou ce qui l'empêche. */
.historique { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--border) }
.historique li { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: var(--space-1) var(--space-3); align-items: baseline;
  padding: var(--row-y) 0; border-bottom: 1px solid var(--border) }
.historique li p { margin: 0 }
.historique .quand { font-family: var(--font-mono); font-size: var(--text-data-sm-size); color: var(--text-muted); white-space: nowrap }
.historique .quoi { color: var(--ink) }
.historique .qui, .historique .reste { color: var(--text-muted); font-size: var(--text-ui-caption-size) }
.historique .fin { display: flex; flex-direction: column; align-items: flex-end; gap: var(--space-1) }
.historique form { margin: 0 }
@media (max-width: 560px) { .historique li { grid-template-columns: auto minmax(0, 1fr) } .historique .fin { grid-column: 2; align-items: flex-start } }
/* Ne rien perdre : le brouillon revenu, une ligne au-dessus du formulaire, un point, une phrase, et le geste pour s'en défaire. */
.brouillon-revenu { display: flex; align-items: flex-start; flex-wrap: wrap; gap: var(--space-2) var(--space-3); margin: 0 0 var(--space-3);
  color: var(--text); font-size: var(--text-ui-caption-size) }
.brouillon-revenu .dot { margin-top: calc((1lh - var(--dot)) / 2) }
.brouillon-revenu > span:not(.dot) { flex: 1 1 24ch }
.brouillon-revenu .btn { margin-left: auto }
/* Rester au même endroit : la ligne touchée par le dernier geste, une teinte neutre et un trait qui s'effacent.
   Ni le jaune, ni la couleur d'un état. Sans animation, le trait reste. */
.touchee:not(tr), tr.touchee > td { animation: touchee var(--duration-trace) ease-out }
.touchee:not(tr), tr.touchee > td:first-child { animation: touchee var(--duration-trace) ease-out, touchee-trait var(--duration-trace) ease-out }
@keyframes touchee { 0%, 40% { background: var(--surface-alt) } 100% { background: transparent } }
@keyframes touchee-trait { 0%, 40% { box-shadow: inset 2px 0 0 var(--border-strong) } 100% { box-shadow: inset 2px 0 0 transparent } }
/* La fiche montre le souligné arrêté à son début. */
.touchee-fige { background: var(--surface-alt); box-shadow: inset 2px 0 0 var(--border-strong) }
.j-liste > li.touchee, .j-liste > li.touchee-fige { margin-inline: calc(-1 * var(--space-2)); padding-inline: var(--space-2) }
@media (prefers-reduced-motion: reduce) {
  .touchee:not(tr), tr.touchee > td { animation: none }
  .touchee:not(tr), tr.touchee > td:first-child { box-shadow: inset 2px 0 0 var(--border-strong) }
}
.attente-long[hidden] { display: none }
.case-attente { display: inline-flex; width: var(--space-4); justify-content: center }
.lien-pop { left: 0; right: 0; width: auto; min-width: 0; max-height: calc(var(--control-h) * 9.5); overflow: auto; padding: var(--space-1) }
.lien-pop .groupe { padding: var(--space-2) var(--field-x) var(--space-1); margin: 0 }
.lien-pop * + .groupe { margin-top: var(--space-1); border-top: 1px solid var(--border) }
.lien-pop .opt { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: start; gap: var(--space-2);
  padding-top: var(--space-2); padding-bottom: var(--space-2) }
.lien-pop .opt > .ico { margin-top: var(--space-1) }
.lien-pop .opt.plus { display: flex; align-items: center; color: var(--text) }
/* Le genre d'un fichier : une icône teintée par jeton, le nom du type écrit à côté */
.ico.fichier { width: var(--space-4); height: var(--space-4); color: var(--text-muted) }
.ico.fichier .plein { fill: currentColor; stroke: none }
.ico.fichier.g-doc { color: var(--fichier-doc) }
.ico.fichier.g-tableur { color: var(--fichier-tableur) }
.ico.fichier.g-presentation { color: var(--fichier-presentation) }
.ico.fichier.g-pdf { color: var(--fichier-pdf) }
.ico.fichier.g-image { color: var(--fichier-image) }
.ico.fichier.g-video { color: var(--fichier-video) }
.ico.fichier.g-texte { color: var(--fichier-texte) }
.ico.fichier.g-artefact { color: var(--fichier-artefact) }
.lien-pop .opt[aria-selected=true] { background: var(--surface-alt) }
.lien-pop .src { font-family: var(--font-mono); font-size: var(--text-data-sm-size); color: var(--text-muted) }
.lien-pop .titre { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; color: var(--ink) }
.lien-pop .ou { display: block; color: var(--text-muted); font-size: var(--text-ui-caption-size) }
.lien-pop .quand { font-family: var(--font-mono); font-size: var(--text-data-sm-size) }
.lien-pop .rien, .lien-pop .etat { padding: var(--space-1) var(--field-x) var(--space-2); color: var(--text-muted); font-size: var(--text-ui-caption-size); margin: 0 }
.lien-pop .etat { display: flex; align-items: center; gap: var(--space-2); color: var(--text) }
.lien-pop mark { background: transparent; color: inherit; font-weight: var(--text-ui-strong-weight) }
:root { --hauteur-barre: calc(var(--control-h) + var(--space-2) * 2 + 1px) }
/* Barre haute : toute la largeur, claire, un filet en bas ; le contenu suit la colonne de la page */
.barre { position: sticky; top: 0; z-index: var(--z-barre); background: var(--surface); border-bottom: 1px solid var(--border) }
.barre-dedans { max-width: var(--page-max); margin: 0 auto; padding: var(--space-2) var(--gutter-ui);
  display: flex; align-items: center; gap: var(--space-3) }
.barre .btn { height: var(--control-h) }
.barre .btn.icon { width: var(--control-h) }
.barre-app > summary, .barre-compte > summary { gap: var(--space-2); padding-left: var(--space-1) }
.barre-nom { color: var(--ink); font-weight: var(--text-ui-strong-weight) }
.barre-tdc { margin-right: auto }
.barre-droite { display: flex; align-items: center; gap: var(--space-1) }
.tuile { display: inline-flex; align-items: center; justify-content: center; width: var(--control-h); height: var(--control-h);
  border-radius: var(--radius-field); border: 1px solid var(--border); background: var(--surface); color: var(--ink) }
.tuile.petite { width: var(--control-h-sm); height: var(--control-h-sm) }
.avatar { display: inline-flex; align-items: center; justify-content: center; width: var(--control-h-sm); height: var(--control-h-sm);
  border-radius: var(--radius-pill); background: var(--surface-alt); color: var(--ink); font-weight: var(--text-ui-strong-weight);
  font-size: var(--text-ui-caption-size) }
.avatar.grand { width: var(--control-h); height: var(--control-h); font-size: var(--text-ui-body-size) }
.pop.apps { width: calc(var(--space-6) * 9.5); max-width: calc(100vw - var(--gutter-ui) * 2); padding: var(--space-1) }
.pop.apps .groupe { padding: var(--space-2) var(--field-x) var(--space-1); margin: 0 }
.pop.apps .app { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: var(--space-3);
  padding-top: var(--space-2); padding-bottom: var(--space-2) }
.pop.apps .app.ici { background: var(--surface-alt) }
.app-texte { display: flex; flex-direction: column; min-width: 0 }
.app-nom { color: var(--ink); font-weight: var(--text-ui-strong-weight) }
.app-acc { color: var(--text-muted); font-size: var(--text-ui-caption-size); overflow-wrap: anywhere }
.app-acc.mono { font-family: var(--font-mono); font-size: var(--text-data-sm-size) }
.app-hote { font-family: var(--font-mono); font-size: var(--text-data-sm-size); color: var(--text-muted) }
.compte-pop { width: calc(var(--space-6) * 8); max-width: calc(100vw - var(--gutter-ui) * 2); padding: var(--space-1) }
.compte-pop form { margin: 0 }
.compte-tete { display: flex; align-items: center; gap: var(--space-3); padding: var(--space-2) var(--field-x) }
.compte-note { padding: 0 var(--field-x) var(--space-2); margin: 0 }
/* Filtre par client, dans la barre ; son rappel au-dessus d'une liste filtrée */
.filtre-client { display: inline-flex; align-items: center; border-left: 1px solid var(--border); padding-left: var(--space-3) }
.filtre-client > details > summary { gap: var(--space-2) }
.filtre-client .k { color: var(--text-muted) }
.valeur-client { color: var(--text); max-width: calc(var(--space-7) * 3.5); overflow: hidden; text-overflow: ellipsis; white-space: nowrap }
.filtre-client.actif .valeur-client { color: var(--ink); font-weight: var(--text-ui-strong-weight) }
.filtre-client.actif > details > summary { background: var(--surface-alt) }
.filtre-client .effacer { margin-left: var(--space-1) }
.pop.clients { width: calc(var(--space-6) * 10); max-width: calc(100vw - var(--gutter-ui) * 2); padding: var(--space-1) }
.pop.clients .groupe { padding: var(--space-2) var(--field-x) var(--space-1); margin: 0 }
.pop.clients .opt { justify-content: space-between; padding-top: var(--space-2); padding-bottom: var(--space-2) }
.pop.clients .opt[aria-selected=true] { background: var(--surface-alt) }
.client-texte { display: flex; flex-direction: column; min-width: 0 }
.client-nom { color: var(--ink) }
.client-compte { color: var(--text-muted); font-size: var(--text-ui-caption-size) }
/* 0102 — le code client de Dolibarr, à droite du nom, là où l'on cherche un client : un repère, jamais seul. */
.code-tiers { flex: none; margin-left: auto; font-family: var(--font-mono); font-size: var(--text-data-sm-size); color: var(--text-muted) }
.note-clients { padding: var(--space-2) var(--field-x); margin: 0; border-top: 1px solid var(--border) }
.rappel-client { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2) var(--space-3); margin: 0;
  padding: var(--space-3) var(--space-4); border: 1px solid var(--border); border-radius: var(--radius-card); background: var(--surface-alt) }
.rappel-client b { color: var(--ink); font-weight: var(--text-ui-strong-weight) }
.rappel-client.ligne { margin-left: auto; padding: 0; border: 0; background: none; gap: var(--space-1) var(--space-3);
  color: var(--text-muted); font-size: var(--text-ui-caption-size); line-height: var(--text-ui-caption-leading) }
/* Bouton à icône (maquette des lignes de Document, 11/11/2026) : sans cadre, une bulle au survol et au clavier. */
.ic-btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: var(--space-1); min-width: var(--control-h-sm);
  height: var(--control-h-sm); padding: 0; border: 1px solid transparent; border-radius: var(--radius-field); background: transparent; color: var(--text-muted);
  cursor: pointer; text-decoration: none; font: inherit; font-size: var(--text-ui-caption-size);
  transition: background var(--duration-fast), color var(--duration-fast) }
.ic-btn > svg { width: calc(var(--space-3) + 2px); height: calc(var(--space-3) + 2px); flex: none }
.ic-btn:hover, .ic-btn:focus-visible { background: var(--surface-alt); color: var(--ink) }
.ic-btn:focus-visible { outline: var(--focus-ring) solid var(--state-info); outline-offset: 2px }
.ic-btn.suite { color: var(--ink) }
.ic-btn.alerte { color: var(--state-warn) }
.ic-btn .mot-m { display: none }
.ic-form { display: inline-flex; margin: 0 }
.ic-btn .bulle, .rep .bulle { position: absolute; z-index: var(--z-bulle); right: 0; bottom: calc(100% + var(--space-2)); width: max-content; max-width: calc(var(--space-7) * 5);
  display: flex; flex-direction: column; gap: var(--space-half); padding: var(--space-2) var(--space-3); text-align: left; white-space: normal;
  background: var(--surface-raised); color: var(--text); border: 1px solid var(--border); border-radius: var(--radius-field); box-shadow: var(--shadow-popover);
  font-size: var(--text-ui-caption-size); line-height: var(--text-ui-caption-leading); font-weight: normal;
  opacity: 0; transform: translateY(2px); pointer-events: none; transition: opacity var(--duration-fast), transform var(--duration-fast) }
.ic-btn .bulle b, .rep .bulle b { color: var(--ink); font-weight: var(--text-ui-strong-weight) }
.ic-btn:hover .bulle, .ic-btn:focus-visible .bulle, .rep:hover .bulle, .rep:has(:focus-visible) .bulle { opacity: 1; transform: none; transition-delay: var(--duration-fast) }
.rep .bulle { right: auto; left: 0 }
/* La dernière réponse d'une rangée ouvre sa bulle vers la gauche : au bord droit d'un panneau, elle sortait de l'écran (17/11/2026). */
.reponses .rep:last-child:not(:first-child) .bulle { left: auto; right: 0 }
@media (prefers-reduced-motion: reduce) { .ic-btn, .ic-btn .bulle, .rep .bulle { transition: none } }
/* Au doigt, pas de survol : ce que fera une réponse s'écrit sous elle, avant qu'on la touche (charte ; audit du 15/11/2026). */
@media (hover: none) {
  .rep { display: inline-flex; flex-direction: column; align-items: flex-start; gap: var(--space-1); max-width: 100% }
  .rep .bulle { position: static; opacity: 1; transform: none; width: auto; max-width: 100%; padding: 0; border: 0; background: none; box-shadow: none; pointer-events: auto }
}
.ic-btn.toujours { padding: 0 var(--space-2); border-color: var(--border) }
.ic-btn.toujours.suite { border-color: var(--border-strong); font-weight: var(--text-ui-strong-weight) }
.ic-btn.toujours .mot-m { display: inline }
.gestes-l:has(.toujours) { grid-auto-columns: auto }
@media (max-width: 760px) {
  .ic-btn.avec-mot { padding: 0 var(--space-2); border-color: var(--border) }
  .ic-btn.avec-mot .mot-m { display: inline } }
.rappel-client .a-trancher { color: var(--state-warn); font-weight: var(--text-ui-strong-weight) }
/* Un retard (ce qui attend au-delà du délai) se dit en rouge, comme dans les tableaux. */
.rappel-client .a-trancher.retard { color: var(--state-crit) }
@media (max-width: 760px) { .rappel-client.ligne { margin-left: 0; flex-basis: 100% } }
/* Menu d'ajout : un petit formulaire dans un menu */
.pop.ajout { width: calc(var(--space-6) * 10); max-width: calc(100vw - var(--gutter-ui) * 2); padding: var(--space-4) }
.pop.ajout form { display: flex; flex-direction: column; gap: var(--space-4) }
.pop.ajout .pied-ajout { display: flex; justify-content: flex-end; gap: var(--space-2) }
/* Aperçu : le fond est celui de l'image, pas celui du thème */
.apercu { height: calc(var(--space-7) * 1.75); display: flex; align-items: center; justify-content: center; padding: var(--space-4) }
.apercu.clair { background: var(--on-navy) }
.apercu.sombre { background: var(--tdc-navy) }
.apercu img { max-width: 100%; max-height: 100%; object-fit: contain }
.apercu .sans { font-size: var(--text-ui-caption-size); color: var(--text-muted); text-align: center }
.apercu.sombre .sans { color: var(--on-navy) }
@media (max-width: 760px) {
  .app-hote, .barre-tdc, .compte-nom, .filtre-client .k, .barre-app .barre-nom { display: none }
  .valeur-client { max-width: calc(var(--space-7) * 2) }
  /* À 375 px, la barre tient sur une ligne : le client rétrécit, les chevrons s'effacent. */
  .barre-dedans { gap: var(--space-2) }
  .filtre-client { flex: 0 1 auto; min-width: 0; padding-left: var(--space-2) }
  .filtre-client > details, .filtre-client > details > summary { min-width: 0; max-width: 100% }
  .valeur-client { min-width: 0 }
  .barre-app > summary .chev, .barre-compte > summary .chev, .filtre-client > details > summary .chev { display: none }
  .pop.apps { position: fixed; left: var(--gutter-ui); right: var(--gutter-ui); top: calc(var(--hauteur-barre) + var(--space-1));
    width: auto; max-height: calc(100vh - var(--hauteur-barre) - var(--space-5)); overflow: auto }
  .pop.clients { position: fixed; left: var(--gutter-ui); right: var(--gutter-ui); top: calc(var(--hauteur-barre) + var(--space-1));
    width: auto; max-height: calc(100vh - var(--hauteur-barre) - var(--space-5)); overflow: auto }
  .barre-droite { margin-left: auto }
  .pop.ajout { position: fixed; left: var(--gutter-ui); right: var(--gutter-ui); top: auto; bottom: var(--gutter-ui); width: auto } }
@media (max-width: 760px) {
  .sommaire { position: static }
  .rubrique { grid-template-columns: minmax(0, 1fr); gap: var(--space-4) } }
@media (max-width: 760px) {
  h1 { font-size: var(--text-ui-heading-size); line-height: var(--text-ui-heading-leading) }
  .f-tete { flex-direction: column; align-items: flex-start; gap: var(--space-2) }
  .f-tete .btn { margin-left: calc(var(--space-3) * -1) }
  .f-etat { flex-direction: column; align-items: flex-start; gap: var(--space-1) }
  .f-etat .pt { display: none }
  /* Les onglets d'une fiche restent sur une ligne et défilent dans leur bande ; la page, jamais. */
  .f-onglets { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-left: calc(var(--gutter-ui) * -1); margin-right: calc(var(--gutter-ui) * -1); padding: 0 var(--gutter-ui) }
  .f-onglets .tab { flex: none }
  .hide-sm { display: none }
  .champs { grid-template-columns: 1fr }
  .seg { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-self: stretch }
  .seg-opt { padding: 0 var(--space-2) } }

/* Planning : un Gantt léger, par parties, des étapes qui se déplient */
.planning { display: flex; flex-direction: column; gap: var(--space-3) }
.g-outils { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-3) }
.g-outils .label { margin: 0 }
.g-legende { display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-4); margin: 0; font-size: var(--text-ui-caption-size); color: var(--text-muted) }
.g-legende span { display: inline-flex; align-items: center; gap: var(--space-2) }
.lg-barre { display: inline-block; width: var(--space-5); height: var(--space-2); border-radius: var(--radius-pill); background: var(--surface-alt); border: 1px solid var(--border-field) }
.lg-barre.client { border-style: dashed }
.lg-barre.encours { background: var(--state-info-bg); border-color: var(--state-info) }
.lg-jalon { display: inline-block; width: var(--dot); height: var(--dot); transform: rotate(45deg); background: var(--ink) }
.lg-ferme { display: inline-block; width: var(--space-5); height: var(--space-3);
  background: repeating-linear-gradient(135deg, var(--border-field) 0 1px, transparent 1px 5px) }
.lg-auj { display: inline-block; width: 2px; height: var(--space-4); background: var(--border-strong) }
.g-defile { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius-card) }
.gantt { min-width: calc(var(--space-7) * 15) }
.g-ligne { display: grid; grid-template-columns: calc(var(--space-7) * 4 + var(--space-5)) minmax(0, 1fr); align-items: stretch }
.g-lib { position: sticky; left: 0; z-index: var(--z-colle); background: var(--surface); display: flex; align-items: flex-start; gap: var(--space-2);
  padding: var(--space-2) var(--space-3); border-right: 1px solid var(--border); min-width: 0 }
.g-lib .t { display: flex; flex-direction: column; min-width: 0 }
.g-lib .t b { color: var(--ink); font-weight: var(--text-ui-strong-weight); font-size: var(--text-ui-caption-size); line-height: var(--text-ui-caption-leading) }
.g-lib .t span { color: var(--text); font-size: var(--text-ui-caption-size); line-height: var(--text-ui-caption-leading); white-space: nowrap; overflow: hidden; text-overflow: ellipsis }
.g-lib .t small { color: var(--text-muted); font-family: var(--font-mono); font-size: var(--text-data-sm-size); white-space: nowrap; overflow: hidden; text-overflow: ellipsis }
.g-lib .cv, .g-lib .cv-vide { flex: none; margin-top: var(--space-half); width: var(--text-ui-body-size); transition: transform var(--duration-fast) }
.g-piste { position: relative; min-height: calc(var(--space-6) + var(--space-2)) }
.g-mois-l { position: absolute; top: 0; bottom: 0; width: 1px; background: var(--border) }
/* Maquette « Les fermetures de TDC », 17/11/2026 — des hachures marquées : trois semaines sur quatorze mois se voyaient à peine. */
.g-ferme { position: absolute; top: 0; bottom: 0; background: repeating-linear-gradient(135deg, var(--border-strong) 0 1px, transparent 1px 4px) }
.g-auj { position: absolute; top: 0; bottom: 0; width: 2px; margin-left: -1px; background: var(--border-strong); z-index: var(--z-dessus) }
.g-barre { position: absolute; top: 50%; height: var(--space-3); margin-top: calc(var(--space-3) / -2); border-radius: var(--radius-pill);
  background: var(--surface-alt); border: 1px solid var(--border-field); min-width: 2px }
.g-barre.client { border-style: dashed }
.g-barre.encours { background: var(--state-info-bg); border-color: var(--state-info) }
.g-barre.partie { height: var(--space-2); margin-top: calc(var(--space-2) / -2); background: var(--border); border-color: transparent }
.g-jalon { position: absolute; top: 50%; width: calc(var(--dot) + 4px); height: calc(var(--dot) + 4px); margin: calc((var(--dot) + 4px) / -2) 0 0 calc((var(--dot) + 4px) / -2);
  transform: rotate(45deg); background: var(--ink); border: 2px solid var(--surface); z-index: var(--z-dessus) }
.g-tete, .g-tete .g-lib { background: var(--surface-alt) }
.g-tete .g-piste { min-height: calc(var(--space-6) + var(--space-4)) }
.g-mois { position: absolute; top: var(--space-2); padding-left: var(--space-1);
  font-size: var(--text-ui-caption-size); color: var(--text-muted); white-space: nowrap }
.g-mois.an { color: var(--ink); font-weight: var(--text-ui-strong-weight) }
.g-auj-lib { position: absolute; bottom: var(--space-1); transform: translateX(-50%); z-index: var(--z-dessus); padding: 0 var(--space-1); border-radius: var(--radius-field);
  background: var(--border-strong); color: var(--surface); font-family: var(--font-mono); font-size: var(--text-data-sm-size) }
.gantt details, .gantt .g-etape { border-top: 1px solid var(--border) }
.gantt summary { list-style: none; cursor: pointer }
.gantt summary::-webkit-details-marker { display: none }
.gantt summary:hover, .gantt summary:hover .g-lib { background: var(--surface-alt) }
.gantt details[open] > summary .cv { transform: rotate(90deg) }
.g-partie > summary, .g-partie > summary .g-lib { background: var(--surface-sunken) }
.g-partie > summary .g-lib .t b { font-size: var(--text-ui-body-size) }
.g-partie[open] > summary .g-piste > .g-barre, .g-partie[open] > summary .g-piste > .g-jalon { display: none }
.g-etape .g-lib { padding-left: calc(var(--space-3) + var(--space-4)) }
.g-detail { position: sticky; left: 0; display: flex; flex-direction: column; gap: var(--space-4); max-width: calc(var(--space-7) * 12);
  margin: 0 var(--space-3) var(--space-3) calc(var(--space-3) + var(--space-4)); padding: var(--space-4);
  background: var(--surface-alt); border-radius: var(--radius-card) }
@media (prefers-reduced-motion: reduce) { .g-lib .cv { transition: none } }

/* PlanningResume : une ligne par partie */
.g-resume { display: flex; flex-direction: column; border: 1px solid var(--border); border-radius: var(--radius-card); background: var(--surface); overflow: hidden }
.g-resume .m-ligne { display: grid; grid-template-columns: calc(var(--space-7) * 2) minmax(0, 1fr); align-items: center; border-top: 1px solid var(--border) }
.g-resume .m-ligne:first-child { border-top: 0 }
.g-resume .m-lib { padding: var(--space-1) var(--space-3); font-size: var(--text-ui-caption-size); color: var(--text) }
.g-resume .g-piste { min-height: calc(var(--space-5) + var(--space-1)) }
.g-resume .m-tete .g-piste { min-height: var(--space-5) }
.g-resume .g-mois { top: 50%; transform: translateY(-50%) }

/* Ligne de projet : une ligne fine, puis un aperçu */
.lp { border-top: 1px solid var(--border) }
.lp-cols, details.lp-ligne > summary, .lp-fixe {
  grid-template-columns: var(--text-ui-body-size) minmax(0, 1.3fr) calc(var(--space-7) * 2) minmax(0, 1.4fr) calc(var(--space-7) * 2) calc(var(--space-7) * 2) calc(var(--space-7) + var(--space-5));
  gap: var(--space-4); align-items: center }
.lp-cols { display: grid; padding: var(--space-2); border-bottom: 1px solid var(--border) }
.lp-cols .label { margin: 0 }
.lp-cols .droite { text-align: right }
.lp-ligne { border-bottom: 1px solid var(--border) }
details.lp-ligne > summary { padding-top: var(--row-y); padding-bottom: var(--row-y); cursor: default }
.lp-fixe { display: grid; padding: var(--row-y) var(--space-2) }
.lp-nom { display: flex; align-items: baseline; gap: var(--space-2); min-width: 0; white-space: nowrap; text-decoration: none }
.lp-nom b { color: var(--ink); font-weight: var(--text-ui-strong-weight) }
.lp-nom:hover b { text-decoration: underline }
.lp-nom small { color: var(--text-muted); font-size: var(--text-ui-caption-size); overflow: hidden; text-overflow: ellipsis }
.lp-ligne .pill { justify-self: start }
.lp-jal { font-family: var(--font-mono); font-size: var(--text-data-sm-size); color: var(--text); white-space: nowrap }
.lp-jal .j { color: var(--text-muted) }
.lp-der { display: inline-flex; align-items: center; gap: var(--space-1); font-size: var(--text-ui-caption-size); color: var(--text-muted); white-space: nowrap }
.lp-cpts { display: flex; justify-content: flex-end; gap: var(--space-3) }
.cv-btn { display: inline-grid; place-content: center; width: var(--control-h-sm); height: var(--control-h-sm); margin: calc((var(--control-h-sm) - var(--text-ui-body-size)) / -2);
  border-radius: var(--radius-field); color: var(--text-muted); cursor: pointer }
.cv-btn:hover { background: var(--surface-alt); color: var(--ink) }
details.lp-ligne > summary:focus-visible { outline: var(--focus-ring) solid var(--border-strong); outline-offset: calc(var(--trait) * -1) }
.cpt { display: inline-flex; align-items: center; gap: var(--space-1); font-family: var(--font-mono); font-size: var(--text-data-sm-size) }
.cpt .ico { color: inherit }
.cpt.info { color: var(--state-info) }
.cpt.warn { color: var(--state-warn) }
.av { position: relative; display: block; height: var(--space-2); border-radius: var(--radius-pill); background: var(--border) }
.av.vide { background: transparent; border: 1px dashed var(--border-field) }
.av-fait { position: absolute; left: 0; top: 0; bottom: 0; border-radius: var(--radius-pill); background: var(--text-muted) }
.av-j { position: absolute; top: 50%; width: var(--dot); height: var(--dot); margin: calc(var(--dot) / -2) 0 0 calc(var(--dot) / -2);
  transform: rotate(45deg); background: var(--surface); border: var(--bord-coche) solid var(--text-muted) }
.av-j.proch { width: calc(var(--dot) + 4px); height: calc(var(--dot) + 4px); margin: calc((var(--dot) + 4px) / -2) 0 0 calc((var(--dot) + 4px) / -2);
  background: var(--ink); border-color: var(--surface) }
.lp-apercu { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--space-5) var(--space-6);
  margin: 0 var(--space-2) var(--space-4) calc(var(--space-2) + var(--text-ui-body-size) + var(--space-4)); padding: var(--space-4);
  background: var(--surface-alt); border-radius: var(--radius-card) }
.lp-apercu .large { grid-column: 1 / -1 }
.lp-apercu .label { margin: 0 }
.lp-apercu ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: var(--space-2) }
.lp-apercu li { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: var(--space-2); align-items: baseline; font-size: var(--text-ui-caption-size) }
.lp-apercu li .ico { align-self: center }
.lp-apercu li b { color: var(--ink); font-weight: var(--text-ui-body-weight); overflow-wrap: anywhere; min-width: 0 }
.lp-apercu li .mono { font-family: var(--font-mono); font-size: var(--text-data-sm-size); color: var(--text-muted) }
.lp-apercu li .retard { font-family: var(--font-mono); font-size: var(--text-data-sm-size); color: var(--state-crit) }
.lp-pied { grid-column: 1 / -1; display: flex; justify-content: flex-end }

/* Sélecteur de projet */
.choix-projet > summary { gap: var(--space-2) }
/* Le fil d'Ariane : une ligne, en petit ; le dernier élément se coupe plutôt que de pousser la page. */
.ariane { display: flex; align-items: center; gap: var(--space-1); min-width: 0; margin-left: calc(var(--space-2) * -1); font-size: var(--text-ui-caption-size); color: var(--text-muted) }
.ariane > a { flex: none; color: var(--text-muted); text-decoration: none; padding: var(--space-1) var(--space-2); border-radius: var(--radius-field) }
.ariane > a:hover { color: var(--ink); background: var(--surface-alt) }
.ariane .oblique { flex: none; color: var(--border-field); line-height: 1 }
/* L'objet où l'on est, quand ce n'est pas un sélecteur : son nom, en gras, sur une ligne. */
.ariane > span:last-child:not(.oblique) { min-width: 0; padding: var(--space-1) var(--space-2); color: var(--ink); font-weight: var(--text-ui-strong-weight);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap }
.ariane .choix-projet { min-width: 0 }
.ariane .choix-projet > summary { height: var(--control-h-sm); max-width: 100%; font-size: var(--text-ui-caption-size) }
.ariane .choix-projet > summary .k { display: none }
.ariane .choix-projet > summary b { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap }
.choix-projet > summary b { color: var(--ink); font-weight: var(--text-ui-strong-weight) }
.pop.projets { width: calc(var(--space-6) * 10); max-width: calc(100vw - var(--gutter-ui) * 2) }
.pop.projets .groupe { padding: var(--space-2) var(--field-x) var(--space-1); margin: 0 }
.pop.projets .opt { color: var(--text) }
.pop.projets .txt { display: flex; flex-direction: column; flex: 1 1 auto; min-width: 0 }
.pop.projets .txt b { color: var(--ink); font-weight: var(--text-ui-strong-weight) }
.pop.projets .txt small { color: var(--text-muted); font-size: var(--text-ui-caption-size) }
.pop.projets .opt[aria-selected="true"] { background: var(--surface-alt) }

/* Ma journée : lisible d'un coup d'œil, des actions discrètes */
.jour-tete { display: flex; flex-direction: column; gap: var(--space-2) }
.jour-date { margin: 0; font-size: var(--text-ui-display-size); line-height: var(--text-ui-display-leading);
  font-weight: var(--text-ui-display-weight); letter-spacing: var(--text-ui-display-tracking); color: var(--ink) }
.jour-resume { margin: 0; color: var(--text); max-width: var(--text-max) }
.jour-resume b { color: var(--ink); font-weight: var(--text-ui-strong-weight) }
.jour-tete + .jour { margin-top: var(--space-5) }
.jour { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--space-6); align-items: start }
.jour-col { display: flex; flex-direction: column; gap: var(--space-6); min-width: 0 }
/* À gauche ce qui se fait, à droite ce qui se sait (maquette validée le 13/11/2026). */
.jour.savoir { grid-template-columns: minmax(0, 1fr) minmax(0, calc(var(--space-7) * 7)) }
/* Des cadres : chaque bloc se délimite ; dessous, ce qui ne sert pas tout de suite, plus discret. */
.jour.cadres { gap: var(--space-5) }
.jour.cadres .jour-col { gap: var(--space-5) }
.jour.cadres .jour-col > .j-bloc, .jour.cadres .jour-col > .ancre > .j-bloc, .jour-dessous > .j-bloc {
  padding: var(--space-4) var(--space-5); border: 1px solid var(--border); border-radius: var(--radius-card); background: var(--surface) }
.jour.cadres + .jour-dessous { margin-top: var(--space-7) }
.jour-dessous > .j-bloc { background: var(--surface-alt); border-color: transparent }
/* Une colonne cadrée est étroite : les gestes passent sous le texte, qui garde toute sa largeur. */
.jour.cadres .j-liste > li:has(.gestes-l) { grid-template-columns: var(--check-size) minmax(0, 1fr) }
.jour.cadres .j-liste > li:has(.gestes-l) .j-fin { grid-column: 2 / -1; justify-content: space-between; flex-wrap: wrap; white-space: normal; row-gap: var(--space-2) }
.jour.cadres .j-att > li { grid-template-columns: minmax(0, 1fr) }
.jour.cadres .j-att .t { order: 1 } .jour.cadres .j-att .d { order: 2 } .jour.cadres .j-att .fin { order: 3 } .jour.cadres .j-att .pourquoi { order: 4 }
.jour.cadres .j-att .fin { justify-content: space-between; flex-wrap: wrap; row-gap: var(--space-2); white-space: normal }
.jour-savoir { display: flex; flex-direction: column; gap: var(--space-5); padding-left: var(--space-6); border-left: 1px solid var(--border); min-width: 0 }
.j-savoir { list-style: none; margin: 0; padding: 0 }
.j-savoir > li { display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-1); padding: var(--space-2) 0; border-top: 1px solid var(--border) }
.j-savoir > li:first-child { border-top: 0 }
.j-savoir .l1 { display: flex; justify-content: space-between; align-items: baseline; gap: var(--space-3); width: 100% }
.j-savoir b { color: var(--ink); font-weight: var(--text-ui-body-weight) }
.j-savoir small { color: var(--text-muted); font-size: var(--text-ui-caption-size) }
.j-savoir .v { font-family: var(--font-mono); font-size: var(--text-data-sm-size); color: var(--ink); white-space: nowrap; font-variant-numeric: tabular-nums }
.j-savoir a { color: var(--text-muted); font-size: var(--text-ui-caption-size); white-space: nowrap }
.j-savoir a:hover { color: var(--ink) }
.j-savoir .pill { white-space: normal }
.jour-savoir .j-pied { margin: 0 }
.j-lot { border: 1px solid var(--border); border-radius: var(--radius-block); background: var(--surface); padding: var(--space-3) var(--space-4); display: flex; flex-direction: column; gap: var(--space-2) }
.j-lot .l1 { margin: 0; display: flex; justify-content: space-between; align-items: baseline; gap: var(--space-1) var(--space-3); flex-wrap: wrap }
.j-lot .l1 b { color: var(--ink); font-weight: var(--text-ui-strong-weight) }
.j-lot .l1 small { color: var(--text-muted); font-size: var(--text-ui-caption-size) }
.j-lot .ap { margin: 0; padding-left: var(--space-5); color: var(--text); display: flex; flex-direction: column; gap: var(--space-half) }
/* Fils à rattacher (17/11/2026) — un fil sans projet : son objet et ce qu'il contient ; à droite, le projet proposé ou « À trancher ». Il se déplie dans sa ligne. */
.fils { list-style: none; margin: 0; padding: 0 }
.fils > li { border-top: 1px solid var(--border) }
.fils > li:first-child { border-top: 0 }
/* Maquette « Fils à rattacher, ligne pleine largeur » (17/11/2026) : l'objet, ce que le fil contient, puis la proposition, le check et le crayon. */
.fil > summary { list-style: none; cursor: pointer; display: flex; flex-direction: column; gap: var(--space-1); padding: var(--space-3) 0 }
.fil > summary::-webkit-details-marker { display: none }
.fil > summary:focus-visible { outline: var(--focus-ring) solid var(--border-strong); outline-offset: var(--focus-ring) }
.fil > summary > .objet { color: var(--ink); font-weight: var(--text-ui-body-weight); overflow-wrap: anywhere }
.fil > summary > .detail { color: var(--text-muted); font-size: var(--text-ui-caption-size) }
.fil .corps { padding: 0 0 var(--space-4) }
.fil .ouvrir { margin: 0 0 var(--space-3); font-size: var(--text-ui-caption-size); color: var(--text-muted) }
/* 0123 — la liste des changements d'un lot : l'élément à gauche, ce qui change à droite ; l'avant barré en gris, l'après en encre. */
.chg-liste { display: flex; flex-direction: column; gap: var(--space-1) }
.chg-groupe { display: flex; flex-direction: column; gap: var(--space-1) }
.chg-groupe > .label { margin: var(--space-2) 0 0 }
.chg { list-style: none; margin: 0; padding: 0 }
.chg > li { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: var(--space-1) var(--space-4); padding: var(--space-2) 0; border-top: 1px solid var(--border); align-items: baseline }
.chg > li:first-child { border-top: 0 }
.chg .el { display: flex; flex-direction: column; gap: var(--space-half); min-width: 0 }
.chg .el b { color: var(--ink); font-weight: var(--text-ui-body-weight); overflow-wrap: anywhere }
.chg .el small, .chg .ce small { color: var(--text-muted); font-size: var(--text-ui-caption-size) }
.chg .ce { display: flex; flex-direction: column; gap: var(--space-half); min-width: 0 }
.chg .ce .l { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--space-1) var(--space-2) }
.chg .champ { color: var(--text-muted) }
.chg .avant { color: var(--text-muted); text-decoration: line-through; text-decoration-color: var(--border-strong) }
.chg .apres { color: var(--ink); font-weight: var(--text-ui-strong-weight) }
.chg .mono { font-family: var(--font-mono) }
.chg .fl { color: var(--text-muted) }
.chg > li.bouge { box-shadow: inset 2px 0 0 var(--state-warn); padding-left: var(--space-3) }
.a-savoir { margin: 0; padding-left: var(--space-5); color: var(--text); display: flex; flex-direction: column; gap: var(--space-1); font-size: var(--text-ui-caption-size) }
.j-lot .decision { border-top: 1px solid var(--border); padding-top: var(--space-3); margin-top: var(--space-2) }
.j-lot .lot-src { margin: 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--space-1) var(--space-2) }
.j-lot .lot-src .muet { color: var(--text-muted) }
@media (max-width: 760px) { .chg > li { grid-template-columns: minmax(0, 1fr) } }
.j-lot .bar { display: flex; flex-wrap: wrap; gap: var(--space-2); align-items: center; margin: 0 }
.j-lot .bar small { color: var(--text-muted); font-size: var(--text-ui-caption-size) }
.j-lots { display: flex; flex-direction: column; gap: var(--space-3) }
.j-bloc { display: flex; flex-direction: column; gap: var(--space-2) }
.j-bloc > .label { margin: 0 }
.j-bloc > .label .n { font-family: var(--font-mono); color: var(--text-muted); margin-left: var(--space-1) }
.j-liste { list-style: none; margin: 0; padding: 0 }
.j-liste > li { display: grid; grid-template-columns: var(--check-size) minmax(0, 1fr) auto; gap: var(--space-1) var(--space-3);
  align-items: start; padding: var(--space-2) 0; border-top: 1px solid var(--border) }
.j-liste > li:first-child { border-top: 0 }
.j-liste > li > .ico, .j-liste > li > .cb { margin-top: var(--space-half) }
.j-liste .t { display: flex; flex-direction: column; gap: var(--space-half); min-width: 0 }
.j-liste .t b { color: var(--ink); font-weight: var(--text-ui-body-weight); line-height: var(--text-ui-body-leading) }
.j-liste .t small { color: var(--text-muted); font-size: var(--text-ui-caption-size) }
.j-fin { display: flex; flex-direction: column; align-items: flex-end; gap: var(--space-half); white-space: nowrap }
.j-retard { font-family: var(--font-mono); font-size: var(--text-data-sm-size); color: var(--state-crit) }
.j-quand { font-family: var(--font-mono); font-size: var(--text-data-sm-size); color: var(--text-muted) }
.j-act { display: flex; gap: var(--space-3); font-size: var(--text-ui-caption-size) }
.j-act a { color: var(--text-muted); text-decoration: none }
.j-act a:hover { color: var(--ink); text-decoration: underline }
.j-liste > li:has(.gestes-l) { align-items: center }
.j-liste > li:has(.gestes-l) > .cb, .j-liste > li:has(.gestes-l) > .ico { align-self: start }
.j-fin:has(.gestes-l) { flex-direction: row; align-items: center; gap: var(--space-3) }
/* BadgeClient et BadgeProjet (maquette « Aujourd'hui, épuré », 17/11/2026) : le client et le projet d'une ligne, qu'on reconnaît sans lire. */
.badges { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-1) var(--space-2); min-width: 0 }
.bdg { display: inline-flex; align-items: center; gap: var(--space-1); max-width: 100%; min-width: 0;
  height: calc(var(--control-h-sm) - var(--space-2)); padding: 0 var(--space-2); border-radius: var(--radius-pill);
  font-size: var(--text-ui-caption-size); line-height: 1; white-space: nowrap; text-decoration: none }
.bdg span { overflow: hidden; text-overflow: ellipsis }
.bdg-client { color: var(--ink); background: var(--surface-alt); font-weight: var(--text-ui-strong-weight) }
.bdg-projet { color: var(--text); box-shadow: inset 0 0 0 1px var(--border) }
.bdg-projet b { flex: none; font-family: var(--font-mono); font-weight: var(--text-ui-body-weight); color: var(--ink); font-size: var(--text-data-sm-size) }
.bdg-projet span { max-width: calc(var(--space-7) * 3) }
a.bdg:hover { box-shadow: inset 0 0 0 1px var(--border-strong) }
a.bdg:focus-visible { outline: var(--focus-ring) solid var(--border-strong); outline-offset: var(--focus-ring) }
.badges .ctx { color: var(--text-muted); font-size: var(--text-ui-caption-size); min-width: 0; overflow-wrap: anywhere }
/* La ligne à deux rangs : le titre et sa date ; puis les badges et les gestes, au bout. */
.jl { list-style: none; margin: 0; padding: 0 }
.jl > li { display: grid; grid-template-columns: var(--check-size) minmax(0, 1fr); gap: var(--space-1) var(--space-3); align-items: start;
  padding: var(--space-3) 0; border-top: 1px solid var(--border) }
.jl > li:first-child { border-top: 0; padding-top: var(--space-1) }
.jl > li.nu { grid-template-columns: minmax(0, 1fr) }
.jl > li > .cb, .jl > li > .ico { margin-top: var(--space-half) }
.jl .c { display: flex; flex-direction: column; gap: var(--space-1); min-width: 0 }
.jl .r1, .jl .r2 { display: flex; justify-content: space-between; gap: var(--space-2) var(--space-3); min-width: 0 }
.jl .r1 { align-items: baseline }
.jl .r2 { align-items: center; flex-wrap: wrap }
.jl .r1 > b { color: var(--ink); font-weight: var(--text-ui-body-weight); line-height: var(--text-ui-body-leading); overflow-wrap: anywhere; min-width: 0 }
.jl .r1 > b a { color: inherit; text-decoration: none }
.jl .r1 > b a:hover { text-decoration: underline }
.jl .fin { display: flex; align-items: center; gap: var(--space-3); flex: none; white-space: nowrap }
.jl .r2 > .gestes-l, .jl .r2 > .j-act { margin-left: auto }
/* Une ligne d'un seul rang, avec ses gestes (une proposition dans sa carte) : la case, le titre et « Refuser » sur une même ligne. */
.jl .r1:has(> .fin .gestes-l) { align-items: center }
.jl > li:has(.r1 > .fin .gestes-l):not(:has(.r2)) > .cb { align-self: center; margin-top: 0 }
.jl .r2 > .genre { color: var(--text); font-weight: var(--text-ui-strong-weight); font-size: var(--text-ui-caption-size) }
.jl .pourquoi { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-1) var(--space-2); margin: 0; color: var(--text); font-size: var(--text-ui-caption-size) }
.jl .pourquoi a { color: var(--ink) }
.j-savoir .badges { margin: var(--space-half) 0 }
.j-lot .l1.avec-badges { align-items: center }
.j-lot .l1.avec-badges small { color: var(--text-muted) }
.fil .propose { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2); margin-top: var(--space-1); min-width: 0 }
/* Maquette « Les titres en gras » (validée le 17/11/2026) : le titre principal de chaque ligne d'« Aujourd'hui » à la graisse forte. */
.jl .r1 > b, .fil > summary > .objet, .jour-col .j-savoir .l1 > b { font-weight: var(--text-ui-strong-weight) }
/* Maquette « Un sujet proposé qui parle d'un autre projet » (17/11/2026) : les noms proposés par un fil. */
.sujets-fil .noms { display: flex; flex-wrap: wrap; gap: var(--space-1) var(--space-2); margin: var(--space-1) 0 0; padding: 0; list-style: none }
.sujets-fil .noms li { font-size: var(--text-ui-caption-size); color: var(--text); padding: 0 var(--space-2); border-radius: var(--radius-pill); background: var(--surface-alt); line-height: calc(var(--control-h-sm) - var(--space-2)) }
/* Maquette « fil-voir » (17/11/2026) : la page de la conversation d'un fil, et son pied. */
.fil-corps.fil-voir { margin: var(--space-4) 0 0 }
.pied-fil { margin: var(--space-4) 0 0; align-items: center; flex-wrap: wrap; gap: var(--space-2) var(--space-3) }
.fil[open] .propose .crayon { color: var(--ink); box-shadow: inset 0 0 0 1px var(--border-strong) }
.fil .propose small { color: var(--text-muted); font-size: var(--text-ui-caption-size) }
@media (max-width: 760px) { .bdg-projet span { max-width: calc(var(--space-7) * 2) } .jl .r1 { flex-wrap: wrap }
  .jl .gestes-l { display: flex; flex-wrap: wrap; gap: var(--space-2) } .jl .gestes-l .ic-btn { white-space: nowrap } }
.j-rdv { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: var(--space-1) var(--space-4); align-items: baseline;
  padding: var(--space-4); border-radius: var(--radius-card); background: var(--surface-alt) }
.j-rdv .h { font-family: var(--font-mono); font-size: var(--text-ui-title-size); color: var(--ink) }
.j-rdv .t b { color: var(--ink); font-weight: var(--text-ui-strong-weight) }
.j-rdv .t small { display: block; color: var(--text-muted); font-size: var(--text-ui-caption-size) }
.j-rdv .prep { grid-column: 2; display: flex; gap: var(--space-2); align-items: center; font-size: var(--text-ui-caption-size); color: var(--text) }

/* Échanges : la source d'abord */
.echanges { display: flex; flex-direction: column; gap: var(--space-3) }
.ech { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--border) }
.ech > li { display: grid; grid-template-columns: calc(var(--space-7) * 2 + var(--space-6)) var(--space-7) minmax(0, 1fr) auto;
  gap: var(--space-1) var(--space-4); padding: var(--row-y) 0; border-bottom: 1px solid var(--border); align-items: start }
.ech-src { display: inline-flex; align-items: center; gap: var(--space-2); font-size: var(--text-ui-caption-size); color: var(--text); white-space: nowrap }
.sujet { display: inline-flex; align-items: center; padding: 0 var(--space-2); border-radius: var(--radius-pill); box-shadow: inset 0 0 0 1px var(--border);
  color: var(--text); font-size: var(--text-data-sm-size); line-height: var(--text-ui-body-leading); white-space: nowrap }
.ech-quand { font-family: var(--font-mono); font-size: var(--text-data-sm-size); color: var(--text-muted) }
.ech-quoi { display: flex; flex-direction: column; gap: var(--space-1); min-width: 0 }
.ech-quoi b { color: var(--ink); font-weight: var(--text-ui-strong-weight); overflow-wrap: anywhere }
.ech-quoi small { color: var(--text-muted); font-size: var(--text-ui-caption-size) }
.ech-etat { display: flex; flex-wrap: wrap; gap: var(--space-2); justify-content: flex-end }
/* Maquette des conversations (15/11/2026) : une ligne par fil, le titre déplie, l'aperçu sous le titre. */
.ech-fil .ech-etat { align-items: center }
.ech-fil .ech-etat .sujet { white-space: nowrap }
.fil-t { display: inline-flex; align-items: baseline; gap: var(--space-2); max-width: 100%; color: var(--ink); text-decoration: none; border-radius: var(--radius-control) }
.fil-t .cv { flex: none; width: var(--space-3); height: var(--space-3); color: var(--text-muted); transform: translateY(1px); transition: transform .15s }
@media (prefers-reduced-motion: reduce) { .fil-t .cv { transition: none } }
.fil-t[aria-expanded="true"] .cv { transform: translateY(1px) rotate(90deg) }
.fil-t b { color: var(--ink); font-weight: var(--text-ui-strong-weight); overflow-wrap: anywhere }
.fil-t:hover b { text-decoration: underline; text-underline-offset: 3px }
.fil-t .n { flex: none; font-family: var(--font-mono); font-size: var(--text-data-sm-size); color: var(--text-muted) }
.fil-ap, .fil-qui { grid-column: 3 / -1; margin: 0; padding-left: calc(var(--space-3) + var(--space-2)); font-size: var(--text-ui-caption-size) }
.fil-ap { color: var(--text); overflow: hidden; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical }
.fil-ap b { color: var(--ink); font-weight: var(--text-ui-strong-weight) }
.fil-qui { display: block; color: var(--text-muted) }
.fil-corps { grid-column: 3 / -1; display: flex; flex-direction: column; margin: var(--space-2) 0 var(--space-1); border: 1px solid var(--border); border-radius: var(--radius-block); background: var(--surface); min-width: 0 }
.fil-corps[hidden] { display: none }
.fil-muet { margin: 0; padding: var(--space-3) var(--space-4); color: var(--text); font-size: var(--text-ui-caption-size) }
.fil-pied { margin: 0; padding: var(--space-2) var(--space-4); border-top: 1px solid var(--border); color: var(--text-muted); font-size: var(--text-ui-caption-size) }
.fil-corps .msg { border-top: 1px solid var(--border) }
.fil-corps > .msg:first-child { border-top: 0 }
.fil-corps .msg > summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: calc(var(--space-7) * 2) minmax(0, 1fr) auto; gap: var(--space-3);
  align-items: baseline; padding: var(--space-2) var(--space-4); font-size: var(--text-ui-caption-size) }
.fil-corps .msg > summary::-webkit-details-marker { display: none }
.fil-corps .msg > summary:hover { background: var(--surface-sunken) }
.fil-corps .msg > summary b { color: var(--ink); font-weight: var(--text-ui-strong-weight); white-space: nowrap; overflow: hidden; text-overflow: ellipsis }
.fil-corps .msg > summary .ext { color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis }
.fil-corps .msg > summary .a { display: none; color: var(--text-muted) }
.fil-corps .msg > summary .q { grid-column: 3; font-family: var(--font-mono); font-size: var(--text-data-sm-size); color: var(--text-muted); white-space: nowrap }
.fil-corps .msg[open] > summary { padding-top: var(--space-3) }
.fil-corps .msg[open] > summary .ext { display: none }
.fil-corps .msg[open] > summary .a { display: block; grid-column: 2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis }
.fil-corps .msg.auto > summary b, .fil-corps .msg.auto > summary .ext { color: var(--text-muted); font-weight: inherit }
.fil-corps .msg > .corps { margin: 0; padding: var(--space-1) var(--space-4) var(--space-3); color: var(--ink); white-space: pre-wrap; overflow-wrap: anywhere; max-width: 72ch }
.fil-corps .fil-pj { list-style: none; margin: 0; padding: 0 var(--space-4) var(--space-4); display: flex; flex-wrap: wrap; gap: var(--space-2) }
.fil-corps .fil-pj a { display: inline-flex; align-items: center; gap: var(--space-2); max-width: 100%; height: var(--control-h-sm); padding: 0 var(--space-3); border: 1px solid var(--border);
  border-radius: var(--radius-control); color: var(--ink); font-size: var(--text-ui-caption-size); text-decoration: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis }
.fil-corps .fil-pj a:hover { border-color: var(--border-strong) }
.fil-corps .fil-pj svg { flex: none; width: var(--space-4); height: var(--space-4) }
.fil-corps .msg-plus { border-top: 1px solid var(--border) }
.fil-corps .msg-plus > summary { list-style: none; cursor: pointer; padding: var(--space-2) var(--space-4); color: var(--text); font-size: var(--text-ui-caption-size); text-align: center; background: var(--surface-sunken) }
.fil-corps .msg-plus > summary::-webkit-details-marker { display: none }
.fil-corps .msg-plus > summary:hover { color: var(--ink) }
.fil-corps .msg-plus[open] > summary { display: none }
.ech-plus { margin: 0 }
.ech-plus .btn { margin-left: calc(var(--space-3) * -1) }
.filtres-src { display: flex; flex-wrap: wrap; gap: var(--space-2) }
.filtre-src { display: inline-flex; align-items: center; gap: var(--space-2); height: var(--control-h-sm); padding: 0 var(--space-3);
  border: 1px solid var(--border); border-radius: var(--radius-pill); background: var(--surface); color: var(--text); font: inherit;
  font-size: var(--text-ui-caption-size); cursor: pointer }
.filtre-src:hover { border-color: var(--border-field) }
.filtre-src[aria-pressed="true"] { border-color: var(--border-strong); color: var(--ink) }
.filtre-src .n { font-family: var(--font-mono); color: var(--text-muted) }
.filtre-src[disabled] { cursor: default; border-style: dashed; color: var(--text-muted) }
.filtres-ech { display: flex; flex-direction: column; gap: var(--space-2) }

/* Les sujets d'un échange (0066) : une pastille qui s'ouvre sur la liste du système, et « À classer » */
.sujet-dd { position: relative }
.sujet-dd > summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: var(--space-1) }
.sujet-dd > summary::-webkit-details-marker, .sous-liste > summary::-webkit-details-marker, .ranger-autre > summary::-webkit-details-marker { display: none }
.sujet-dd > summary:hover { box-shadow: inset 0 0 0 1px var(--border-strong) }
.sujet-dd > summary .ico { width: var(--space-3); height: var(--space-3); color: var(--text-muted) }
.sujet.second { color: var(--text-muted) }
.sujet-dd .pop, .ranger-autre .pop { width: calc(var(--space-7) * 5); max-width: calc(100vw - var(--gutter-ui) * 2); z-index: var(--z-liste) }
.sujet-dd .opt .ico, .ranger-autre .opt .ico { margin-left: auto }
.sujet-dd .opt[disabled] { cursor: default; font-weight: var(--text-ui-strong-weight) }
.titre-liste { margin: 0; padding: var(--space-2) var(--space-3) var(--space-1); color: var(--text-muted); font-size: var(--text-ui-caption-size) }
.sujet-dd .note-liste { margin: 0; padding: var(--space-2) var(--space-3); color: var(--text-muted); font-size: var(--text-ui-caption-size); border-top: 1px solid var(--border) }
.sous-liste > summary { list-style: none }
.sous-liste > summary .ico { margin-left: auto; width: var(--space-3); height: var(--space-3); color: var(--text-muted) }
.sous-liste[open] > summary { color: var(--text-muted) }
.sous-liste .sous { padding-left: var(--space-3) }
.proposer-sujet { display: flex; gap: var(--space-2); padding: var(--space-1) var(--field-x) var(--space-2) }
.proposer-sujet input { flex: 1 1 auto; min-width: 0; height: var(--control-h-sm) }
.proposer-sujet .btn { height: var(--control-h-sm) }
.a-classer { display: flex; flex-direction: column; gap: var(--space-2); padding: var(--space-4); border-radius: var(--radius-block);
  border: 1px dashed var(--border-strong); background: var(--surface) }
.a-classer > .label { margin: 0 }
.a-classer .n { font-family: var(--font-mono); color: var(--text-muted) }
.a-classer .ech > li:last-child { border-bottom: 0 }
.ranger { grid-column: 3 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2); margin: 0; font-size: var(--text-ui-caption-size); color: var(--text) }
.ranger form { margin: 0 }
.ranger-choix { display: contents }
.choix-sujets { margin: 0 }
.ranger .btn { height: var(--control-h-sm); border: 1px solid var(--border) }
.ranger .btn:hover { border-color: var(--border-strong) }
.ranger-autre { position: relative }
.ranger-autre > summary { list-style: none; display: inline-flex; align-items: center; cursor: pointer }

/* Parcours pas à pas */
.parcours { display: flex; flex-direction: column; gap: var(--space-5); max-width: calc(var(--space-7) * 13) }
.pas { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(var(--n, 4), minmax(0, 1fr)); gap: var(--space-2); counter-reset: pas }
.pas li { counter-increment: pas }
.pas button { width: 100%; height: auto; min-height: 0; display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-half); padding: var(--space-2) var(--space-3);
  border: 0; border-top: 2px solid var(--border); border-radius: 0; background: transparent; color: var(--text-muted); font: inherit; text-align: left; cursor: default }
.pas button b::before { content: counter(pas); margin-right: var(--space-2); font-family: var(--font-mono); font-size: var(--text-data-sm-size); font-weight: var(--text-ui-body-weight); color: var(--text-muted) }
.pas button b { font-weight: var(--text-ui-strong-weight); font-size: var(--text-ui-caption-size) }
.pas button small { font-size: var(--text-ui-caption-size) }
.pas li.fait button { border-top-color: var(--text-muted); color: var(--text); cursor: pointer }
.pas li.fait button:hover b { text-decoration: underline }
.pas li.ici button { border-top-color: var(--tdc-yellow); color: var(--ink) }
.etape-p { display: flex; flex-direction: column; gap: var(--space-5) }
html.js [data-parcours] .etape-p:not(.ici) { display: none }
.etape-p > .intro { margin: 0; color: var(--text); max-width: var(--text-max) }
.nav-p { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2); padding-top: var(--space-4); border-top: 1px solid var(--border) }
.nav-p .pousse { margin-left: auto }

/* Étapes de vente (0087) : une rangée de ronds reliés, l'étape en cours marquée d'un point plein et d'un mot. */
.vente { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--space-3) }
.vente li { position: relative; display: flex; flex-direction: column; gap: var(--space-2); min-width: 0; padding-top: var(--space-5) }
.vente .rond { position: absolute; top: 0; left: 0; width: var(--space-4); height: var(--space-4); border-radius: 50%; border: 2px solid var(--border-field); background: var(--surface) }
.vente li::before { content: ""; position: absolute; top: calc(var(--space-4) / 2 - 1px); left: var(--space-4); right: calc(var(--space-3) * -1); height: 2px; background: var(--border) }
.vente li:last-child::before { display: none }
.vente li.faite .rond { border-color: var(--state-ok); background: var(--state-ok) }
.vente li.faite::before { background: var(--state-ok) }
/* Une vente perdue avant la fin : le trait s'arrête à la dernière étape atteinte. */
.vente li.faite:has(+ li.avenir)::before { background: var(--border) }
.vente li.perdue .rond { border-color: var(--text-muted); background: var(--text-muted) }
.vente li.ici .rond { border-color: var(--ink); background: var(--surface); box-shadow: inset 0 0 0 3px var(--surface), inset 0 0 0 8px var(--ink) }
.vente .t { display: flex; flex-direction: column; gap: var(--space-1) }
.vente .t b { color: var(--ink); font-weight: var(--text-ui-strong-weight) }
.vente li.avenir .t b { color: var(--text-muted); font-weight: var(--text-ui-body-weight) }
.vente .t small { color: var(--text-muted); font-size: var(--text-ui-caption-size) }
.vente .t small .mono { font-family: var(--font-mono); font-size: var(--text-data-sm-size) }
.vente li.ici .t small { color: var(--ink) }
.vente .d { color: var(--text); font-size: var(--text-ui-caption-size) }
@media (max-width: 760px) {
  .vente { grid-template-columns: minmax(0, 1fr); gap: var(--space-4) }
  .vente li { padding-top: 0; padding-left: calc(var(--space-4) + var(--space-3)) }
  .vente li::before { top: var(--space-4); bottom: calc(var(--space-4) * -1); left: calc(var(--space-4) / 2 - 1px); right: auto; width: 2px; height: auto }
}

/* Fenêtre de mail */
.mail { display: flex; flex-direction: column; border: 1px solid var(--border); border-radius: var(--radius-card); background: var(--surface-raised) }
.mail-l { display: grid; grid-template-columns: calc(var(--space-7) + var(--space-2)) minmax(0, 1fr) auto; gap: var(--space-3); align-items: center;
  padding: var(--space-1) var(--space-4); border-bottom: 1px solid var(--border); min-height: var(--control-h) }
.mail-l > .k { color: var(--text-muted); font-size: var(--text-ui-caption-size) }
.mail-l .fixe { color: var(--text) }
.mail .mail-l input[type=text] { height: auto; width: 100%; box-shadow: none; border-radius: 0; border: 0; background: transparent;
  color: var(--ink); font: inherit; padding: var(--space-1) 0; outline: none }
.mail .mail-l input[type=text]:focus-visible { box-shadow: inset 0 -1px 0 var(--border-strong) }
.dest { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-1) }
.dest .chip { max-width: 100%; white-space: nowrap }
.dest .chip .k { overflow: hidden; text-overflow: ellipsis }
.mail .dest input[type=text] { flex: 1 1 calc(var(--space-7) * 2); min-width: 0 }
/* L'adresse qui se complète (15/11/2026) : les personnes connues sous le champ, la flèche et Entrée les prennent. */
.dest { position: relative }
.dest-pop { width: calc(var(--space-6) * 10); max-width: 100%; max-height: calc(var(--control-h-sm) * 7); overflow: auto }
.dest-pop[hidden] { display: none }
.dest-pop .opt[hidden] { display: none }
.dest-pop .txt { display: flex; flex-direction: column; min-width: 0 }
.dest-pop .txt b { color: var(--ink); font-weight: var(--text-ui-strong-weight) }
.dest-pop .txt small { color: var(--text-muted); font-size: var(--text-ui-caption-size); overflow: hidden; text-overflow: ellipsis; white-space: nowrap }
.dest-pop .opt[aria-selected="true"] { background: var(--surface-alt) }
.mail .dest input[aria-invalid="true"] { color: var(--state-crit) }
.mail-corps { width: 100%; min-height: 0; border: 0; border-bottom: 1px solid var(--border); border-radius: 0; background: transparent;
  color: var(--ink); font: inherit; line-height: var(--text-ui-body-leading); padding: var(--space-4); outline: none; field-sizing: content; resize: none }
.mail-corps:focus-visible { box-shadow: inset 0 0 0 1px var(--border-strong) }

/* 0107 — ce que le mail porte : la liste qui fait foi à l'envoi, au-dessus de la fenêtre */
.porte { display: flex; flex-direction: column; gap: var(--space-2); padding: var(--space-4); border: 1px solid var(--border); border-radius: var(--radius-block); background: var(--surface) }
.porte > .label { margin: 0 }
.porte ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column }
.porte li { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: var(--space-1) var(--space-3); padding: var(--space-2) 0; border-top: 1px solid var(--border); align-items: start }
.porte li:first-child { border-top: 0 }
.porte li .t { display: flex; flex-direction: column; gap: var(--space-half); min-width: 0 }
.porte li .t b { color: var(--ink); font-weight: var(--text-ui-body-weight) }
.porte li .t small { color: var(--text-muted); font-size: var(--text-ui-caption-size) }
.porte details summary { cursor: pointer; color: var(--text); font-size: var(--text-ui-caption-size); padding-top: var(--space-2) }
.porte .champ { margin-top: var(--space-2) }
.porte li.fichier { grid-template-columns: auto minmax(0, 1fr) auto; align-items: center }
.porte li.fichier .ttl { display: inline-flex; align-items: center; gap: var(--space-2); min-width: 0 }
@media (max-width: 760px) {
  .porte li.fichier { grid-template-columns: auto minmax(0, 1fr) }
  .porte li.fichier .seg { grid-column: 2 / 3; display: inline-flex; align-self: flex-start } }

/* 0107 — le message reçu, en tête de la fenêtre « Répondre » */
.recu { display: flex; flex-direction: column; gap: var(--space-2); padding: var(--space-3) var(--space-4); border-left: 2px solid var(--border-strong) }
.recu .tete { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--space-1) var(--space-3); margin: 0; color: var(--text-muted); font-size: var(--text-ui-caption-size) }
.recu .tete b { color: var(--ink); font-weight: var(--text-ui-strong-weight) }
.recu .corps { margin: 0; color: var(--ink); white-space: pre-wrap; max-width: 72ch }
.a-completer { margin: 0; color: var(--text-muted); font-size: var(--text-ui-caption-size) }
/* 0107 — trois gestes sur une ligne de la file : sur téléphone, ils passent à la ligne. */
@media (max-width: 760px) { .j-file .gestes-l { display: flex; flex-wrap: wrap; gap: var(--space-2) } .j-file .gestes-l .ic-btn { white-space: nowrap } }

/* 0107 — rédiger avec Claude : d'où vient le texte, une précision, le bouton */
.rediger { display: flex; flex-direction: column; gap: var(--space-2) }
.rediger .origine { margin: 0; color: var(--text-muted); font-size: var(--text-ui-caption-size); max-width: 76ch }
.rediger .origine b { color: var(--ink); font-weight: var(--text-ui-strong-weight) }
.rediger .ligne { display: flex; flex-wrap: wrap; gap: var(--space-2); align-items: center }
.rediger .ligne input { flex: 1 1 calc(var(--space-7) * 4); min-width: 0 }
.rediger .rep .bulle { left: auto; right: 0 }

/* Pièces jointes */
.pj { display: flex; flex-direction: column; gap: var(--space-2); padding: var(--space-3) var(--space-4) }
.pj > .label { margin: 0 }
.pj-liste { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: var(--space-2) }
.pj-liste li { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; gap: var(--space-3); align-items: center;
  padding: var(--space-2) var(--space-3); border: 1px solid var(--border); border-radius: var(--radius-field); background: var(--surface) }
.pj-liste .t { display: flex; flex-direction: column; min-width: 0 }
.pj-liste .t b { color: var(--ink); font-weight: var(--text-ui-body-weight); font-size: var(--text-ui-caption-size); overflow: hidden; text-overflow: ellipsis; white-space: nowrap }
.pj-liste .t small { color: var(--text-muted); font-size: var(--text-ui-caption-size) }
.pj-liste .pj-fin { color: var(--text-muted) }
.pj-liste .pj-fin .ico { color: inherit }
.pj-ajout { align-self: flex-start }
.pop.pj-pop { width: calc(var(--space-6) * 11); max-width: calc(100vw - var(--gutter-ui) * 2) }
.pj-pop .opt { align-items: center }
.pj-pop .txt { display: flex; flex-direction: column; min-width: 0 }
.pj-pop .txt b { color: var(--ink); font-weight: var(--text-ui-body-weight); font-size: var(--text-ui-caption-size); overflow: hidden; text-overflow: ellipsis; white-space: nowrap }
.pj-pop .txt small { color: var(--text-muted); font-size: var(--text-ui-caption-size) }

/* Champ tiers : la liste du système, à un ou plusieurs tiers */
.ct { position: relative }
.ct .pop.ct-pop { width: 100%; min-width: 0 }
.ct details.ct-ajout { position: static }
.ct-ajout > summary { list-style: none }
.ct-ajout > summary::-webkit-details-marker { display: none }
.ct-ajout .pop.ct-pop { left: 0; right: 0; width: auto }
.ct-pop .opt { gap: var(--space-2) }
.ct-pop .opt input { position: absolute; opacity: 0; pointer-events: none }
.ct-pop .opt .txt { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column }
.ct-pop .opt .txt small { color: var(--text-muted); font-size: var(--text-ui-caption-size) }
.ct-pop .opt .pill { flex: none }
.ct-pop .opt > .ico.fin { visibility: hidden }
.ct-pop .opt:has(input:checked) { font-weight: var(--text-ui-strong-weight) }
.ct-pop .opt:has(input:checked) > .ico.fin { visibility: visible }
.ct-pop .opt:has(input:disabled) { color: var(--text-muted); cursor: default }
.ct-pop .opt:has(input:disabled):hover { background: transparent }
.ct-pop .opt:has(input:focus-visible) { background: var(--surface-alt); outline: var(--focus-ring) solid var(--border-strong); outline-offset: calc(var(--focus-ring) * -1) }
.ct-pop .groupe { padding: var(--space-2) var(--field-x) var(--space-1); margin: 0 }
.ct-pop .rien { padding: var(--space-2) var(--field-x); margin: 0; color: var(--text-muted); font-size: var(--text-ui-caption-size) }
.ct-pop .note-liste { padding: var(--space-1) var(--field-x) var(--space-2); margin: 0; color: var(--text-muted); font-size: var(--text-ui-caption-size) }
.ct-pris { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2) }
.ct-pris .chip a .ico { color: inherit }
.ct-suggestion { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2) var(--space-3); padding: var(--space-3) var(--space-4);
  border: 1px dashed var(--border-field); border-radius: var(--radius-field); font-size: var(--text-ui-caption-size); color: var(--text) }
.ct-suggestion b { color: var(--ink); font-weight: var(--text-ui-strong-weight) }
.ct-suggestion .bar { margin-left: auto }

@media (max-width: 760px) {
  .g-ligne { grid-template-columns: calc(var(--space-7) * 3) minmax(0, 1fr) }
  /* 17/11/2026 — au téléphone, le détail tient dans la largeur visible du défilement : sans marge à gauche, sinon il débordait à droite. */
  .g-detail { margin-left: 0; margin-right: 0; max-width: calc(100vw - var(--space-6) * 2 - var(--space-1)) }
  .g-resume .m-ligne { grid-template-columns: calc(var(--space-7) + var(--space-2)) minmax(0, 1fr) }
  .lp-cols { display: none }
  details.lp-ligne > summary, .lp-fixe { grid-template-columns: var(--text-ui-body-size) minmax(0, 1fr) auto; row-gap: var(--space-2) }
  .lp-av { grid-column: 2 / -1 }
  .lp-jal, .lp-der { display: none }
  .lp-nom { flex-wrap: wrap; row-gap: 0 }
  .lp-nom small { white-space: nowrap }
  .dest .chip .k { display: none }
  .lp-cpts { grid-column: 2 / -1; justify-content: flex-start }
  .lp-apercu { grid-template-columns: minmax(0, 1fr); margin-left: var(--space-2); padding: var(--space-3) }
  .jour, .jour.savoir { grid-template-columns: minmax(0, 1fr) }
  .j-liste > li:has(.gestes-l) { grid-template-columns: var(--check-size) minmax(0, 1fr) }
  .j-liste > li:has(.gestes-l) .j-fin { grid-column: 2 / -1; justify-content: space-between; flex-wrap: wrap; white-space: normal; row-gap: var(--space-2) }
  .jour-savoir { padding-left: 0; border-left: 0; padding-top: var(--space-5); border-top: 1px solid var(--border) }
  .ech > li { grid-template-columns: minmax(0, 1fr) auto }
  .ech-src { grid-column: 1; grid-row: 1 }
  .ech-quand { grid-column: 2; grid-row: 1; justify-self: end }
  .ech-quoi, .ech-etat, .ranger { grid-column: 1 / -1 }
  .ech-etat { justify-content: flex-start }
  .fil-ap, .fil-qui, .fil-corps { grid-column: 1 / -1 }
  .fil-ap { -webkit-line-clamp: 2 }
  .ech-fil > .ech-etat { order: 5 }
  .ech-fil > .ranger { order: 6 }
  .ech-fil > .fil-corps { order: 7 }
  .fil-corps .msg > summary { grid-template-columns: minmax(0, 1fr) auto }
  .fil-corps .msg > summary .q { grid-column: 2; grid-row: 1 }
  .fil-corps .msg > summary .ext, .fil-corps .msg[open] > summary .a { grid-column: 1 / -1; grid-row: 2 }
  .sujet-dd .pop.right { left: 0; right: auto }
  .pas { grid-template-columns: repeat(2, minmax(0, 1fr)) }
  .mail-l { grid-template-columns: minmax(0, 1fr) auto; row-gap: 0 }
  .mail-l > .k { grid-column: 1 / -1 }
  .pj-liste li { grid-template-columns: auto minmax(0, 1fr) auto }
  .pj-liste .pj-fin { grid-column: 3; grid-row: 1 }
  .pj-liste .seg { grid-column: 2; grid-row: 2; justify-self: start; display: inline-flex }
  .ct-suggestion .bar { margin-left: 0 } }

/* Canal d'arrivée */
.canal { display: inline-flex; align-items: center; gap: var(--space-1); color: var(--text-muted); white-space: nowrap }

/* File des demandes */
.file-demandes { list-style: none; margin: 0; padding: 0; border: 1px solid var(--border); border-radius: var(--radius-card); background: var(--surface) }
.file-demandes > li { display: grid; gap: var(--space-3); align-items: center; padding: var(--row-y) var(--space-4); border-top: 1px solid var(--border);
  grid-template-columns: calc(var(--space-7) * 2 + var(--space-4)) minmax(0, 1fr) calc(var(--space-7) * 2) calc(var(--space-7) * 2 + var(--space-5)) calc(var(--space-7) * 2 + var(--space-3)) }
.file-demandes > li:first-child { border-top: 0 }
.file-demandes > li.fd-tete { padding-top: var(--space-2); padding-bottom: var(--space-2); background: var(--surface-alt); border-radius: var(--radius-card) var(--radius-card) 0 0 }
.file-demandes .label { margin: 0 }
.file-demandes .droite { text-align: right }
.fd-quoi { display: flex; flex-direction: column; gap: var(--space-half); min-width: 0 }
.fd-quoi b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap }
.fd-quoi small, .fd-suivi .muet { color: var(--text-muted) }
.fd-temps { text-align: right; font-family: var(--font-mono); font-size: var(--text-data-sm-size); font-variant-numeric: tabular-nums }

/* Fichiers d'un envoi */
.fichiers-envoi { display: flex; flex-direction: column; gap: var(--space-2) }
.fichiers-envoi > .muet, .galerie .muet { color: var(--text-muted); font-size: var(--text-ui-caption-size) }
.vignettes { display: grid; grid-template-columns: repeat(auto-fill, minmax(calc(var(--space-7) * 3), 1fr)); gap: var(--space-2) }
.galerie .vignettes { grid-template-columns: repeat(3, minmax(0, 1fr)) }
.vignette { position: relative; display: flex; flex-direction: column; gap: var(--space-1); min-width: 0; color: inherit; text-decoration: none; cursor: zoom-in }
.vignette.jointe { cursor: default }
.v-cadre { display: flex; align-items: center; justify-content: center; aspect-ratio: 4 / 3; overflow: hidden; border: 1px solid var(--border); border-radius: var(--radius-field);
  color: var(--text-muted); background: repeating-linear-gradient(135deg, var(--surface-sunken) 0 6px, var(--surface-alt) 6px 12px) }
.v-cadre img { width: 100%; height: 100%; object-fit: cover; display: block }
.vignette:hover .v-cadre { border-color: var(--border-strong) }
.vignette:focus-visible { outline: none }
.vignette:focus-visible .v-cadre { outline: var(--focus-ring) solid var(--border-strong); outline-offset: 2px }
.v-nom { font-size: var(--text-ui-caption-size); color: var(--text-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap }
.v-retirer { position: absolute; top: var(--space-1); right: var(--space-1); background: var(--surface) }
.docs-envoi { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column }
.docs-envoi li { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: var(--space-2); align-items: center; padding: var(--space-1) 0; border-top: 1px solid var(--border) }
.docs-envoi li:first-child { border-top: 0 }
.docs-envoi .t { display: flex; flex-direction: column; min-width: 0 }
.docs-envoi .t b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: var(--text-ui-body-weight) }
.docs-envoi small { color: var(--text-muted) }

/* Visionneuse */
dialog.visionneuse { width: min(calc(100vw - var(--space-5) * 2), calc(var(--space-7) * 18)); max-height: calc(100vh - var(--space-5) * 2); padding: 0;
  border: 1px solid var(--border); border-radius: var(--radius-card); background: var(--surface); color: var(--text); box-shadow: var(--shadow-popover) }
dialog.visionneuse::backdrop { background: var(--tdc-navy-deep); opacity: 0.7 }
.vis-tete { display: flex; align-items: center; gap: var(--space-3); padding: var(--space-3) var(--space-4); border-bottom: 1px solid var(--border) }
.vis-tete .t { display: flex; flex-direction: column; min-width: 0; flex: 1 1 auto }
.vis-tete .t b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink) }
.vis-tete small { color: var(--text-muted) }
.vis-image { display: flex; align-items: center; justify-content: center; aspect-ratio: 16 / 10; max-height: calc(100vh - var(--space-7) * 4); overflow: hidden;
  color: var(--text-muted); background: repeating-linear-gradient(135deg, var(--surface-sunken) 0 8px, var(--surface-alt) 8px 16px) }
.vis-image img { max-width: 100%; max-height: 100%; object-fit: contain; display: block }
.vis-image .ico { width: var(--space-6); height: var(--space-6) }
.vis-pied { display: flex; align-items: center; gap: var(--space-2); padding: var(--space-3) var(--space-4); border-top: 1px solid var(--border); flex-wrap: wrap }
.vis-rang { margin-right: auto; color: var(--text-muted); font-family: var(--font-mono); font-size: var(--text-data-sm-size) }
.vis-tete .lien { font-size: var(--text-ui-caption-size); white-space: nowrap }
/* En grand (Media, maquette fiche-panneau, 15/11/2026) : jusqu'aux bords de l'écran ; sur un téléphone, tout l'écran. */
dialog.visionneuse.grande { width: calc(100vw - var(--space-4) * 2); height: calc(100vh - var(--space-4) * 2); max-width: none; max-height: none; flex-direction: column }
dialog.visionneuse.grande[open] { display: flex }
.visionneuse.grande .vis-image { aspect-ratio: auto; flex: 1 1 auto; min-height: 0; max-height: none; background: var(--surface-sunken) }
.visionneuse.grande .vis-image > img { width: 100%; height: 100%; object-fit: contain }
.vis-deux { flex: 1 1 auto; align-self: stretch; min-height: 0; display: grid; grid-template-columns: 1fr 1fr }
.vis-deux figure { margin: 0; display: flex; flex-direction: column; min-height: 0 }
.vis-deux figure + figure { border-left: 1px solid var(--border) }
.vis-deux .apercu { flex: 1 1 auto; height: auto; min-height: 0; padding: var(--space-5) }
.vis-deux .apercu img { width: min(100%, calc(var(--space-7) * 6.5)); height: auto; max-height: 100% }
.vis-deux figcaption { padding: var(--space-2) var(--space-3); border-top: 1px solid var(--border); color: var(--text-muted); font-size: var(--text-ui-caption-size); background: var(--surface) }
@media (max-width: 640px) {
  dialog.visionneuse.grande { width: 100vw; height: 100vh; border-radius: 0; border: 0 }
  .visionneuse.grande .vis-tete .lien { display: none }
  .vis-deux { grid-template-columns: 1fr; grid-template-rows: 1fr 1fr }
  .vis-deux figure + figure { border-left: 0; border-top: 1px solid var(--border) }
}

/* Agrandir une carte de grille : le petit bouton sans texte, en haut à droite, qui paraît comme la case. */
.agrandir-carte { position: absolute; top: var(--space-2); right: var(--space-2); z-index: var(--z-dessus); display: grid; place-content: center;
  width: calc(var(--control-h) * 0.85); height: calc(var(--control-h) * 0.85); border-radius: var(--radius-field); color: var(--ink);
  background: var(--surface); border: 1px solid var(--border-field); box-shadow: var(--shadow-card); cursor: zoom-in; opacity: 0; transition: opacity var(--duration-fast) }
:hover > .agrandir-carte, :focus-within > .agrandir-carte { opacity: 1 }
.agrandir-carte:hover { border-color: var(--border-strong) }
.agrandir-carte:focus-visible { opacity: 1; outline: var(--focus-ring) solid var(--border-strong); outline-offset: 2px }
@media (hover: none) { .agrandir-carte { opacity: 1 } }
@media (prefers-reduced-motion: reduce) { .agrandir-carte { transition: none } }

/* L'image en tête d'une fiche : un clic l'agrandit. */
.image-agrandie { margin: 0; display: flex; flex-direction: column; border: 1px solid var(--border); border-radius: var(--radius-card); overflow: hidden }
.ia-voir { position: relative; display: block; background: var(--surface-sunken); cursor: zoom-in; color: inherit; text-decoration: none }
.ia-voir > img { display: block; width: 100%; max-height: calc(var(--space-7) * 5.5); object-fit: contain }
.ia-voir.ia-deux { display: grid; grid-template-columns: 1fr 1fr }
.ia-deux .apercu { height: calc(var(--space-7) * 3) }
.ia-deux .apercu img { width: calc(var(--space-7) * 1.6); height: calc(var(--space-7) * 1.6) }
.ia-loupe { position: absolute; right: var(--space-2); bottom: var(--space-2); display: inline-flex; align-items: center; gap: var(--space-1);
  padding: var(--space-1) var(--space-2); border-radius: var(--radius-field); background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-card);
  color: var(--ink); font-size: var(--text-ui-caption-size) }
.ia-voir:hover .ia-loupe, .ia-voir:focus-visible .ia-loupe { border-color: var(--border-strong) }
.ia-voir:focus-visible { outline: var(--focus-ring) solid var(--border-strong); outline-offset: -2px }
.ia-pied { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--space-2); padding: var(--space-2) var(--space-3); border-top: 1px solid var(--border); background: var(--surface) }
.ia-pied .mono { font-family: var(--font-mono); font-size: var(--text-data-sm-size); overflow-wrap: anywhere; color: var(--text-muted) }
.ia-pied .lien { font-size: var(--text-ui-caption-size) }

/* Fil des messages */
.fil-messages { display: flex; flex-direction: column; gap: var(--space-3) }
.fil-liste { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: var(--space-3) }
.fil-anciens > summary { cursor: pointer; color: var(--text-muted); list-style: none }
.fil-anciens > summary::-webkit-details-marker { display: none }
.fil-anciens[open] > summary { margin-bottom: var(--space-3) }
.message { border: 1px solid var(--border); border-radius: var(--radius-card); padding: var(--space-3) var(--space-4); background: var(--surface); display: flex; flex-direction: column; gap: var(--space-2); min-width: 0 }
.message.equipe { background: var(--surface-alt) }
.message.note { border-style: dashed; background: transparent }
.m-tete { display: flex; gap: var(--space-2); align-items: baseline; flex-wrap: wrap }
.m-tete b { color: var(--ink); font-weight: var(--text-ui-strong-weight) }
.m-tete span { color: var(--text-muted); font-size: var(--text-ui-caption-size) }
.message > p { margin: 0; white-space: pre-line; overflow-wrap: anywhere }

/* Répondre */
.depot-fichiers { display: flex; flex-direction: column; gap: var(--space-2) }
.depot { display: flex; gap: var(--space-2); align-items: flex-start; padding: var(--space-3); border: 1px dashed var(--border-field); border-radius: var(--radius-field); cursor: pointer; color: var(--text) }
.depot:hover, .depot:focus-within { border-color: var(--border-strong) }
.depot > span { display: flex; flex-direction: column; gap: var(--space-half) }
.depot small { color: var(--text-muted) }
.reponse-preparee { border: 1px solid var(--border-strong); border-radius: var(--radius-card); padding: var(--space-4); display: flex; flex-direction: column; gap: var(--space-3); background: var(--surface) }
.rp-tete { display: flex; gap: var(--space-2); align-items: center; flex-wrap: wrap }
.rp-tete b { color: var(--ink) }
.rp-tete .muet { color: var(--text-muted) }
.rp-diag { margin: 0; color: var(--text); max-width: var(--text-max) }
.reponse-preparee textarea { min-height: calc(var(--control-h) * 5) }
.rp-actions { display: flex; flex-wrap: wrap; gap: var(--space-2); align-items: center }
.rp-actions small { color: var(--text-muted) }

/* Jauge d'un forfait */
.jauge { display: flex; flex-direction: column; gap: var(--space-1); min-width: 0 }
.j-barre { height: var(--space-2); border-radius: var(--radius-pill); background: var(--surface-alt); border: 1px solid var(--border-field); overflow: hidden }
.j-barre i { display: block; height: 100%; background: var(--ink) }
.jauge.depasse .j-barre i { background: var(--state-crit) }
.jauge small { color: var(--text-muted); font-family: var(--font-mono); font-size: var(--text-data-sm-size); font-variant-numeric: tabular-nums }
.jauge.depasse small { color: var(--state-crit) }

@media (max-width: 760px) {
  .file-demandes > li { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "quoi etat" "suivi temps" }
  .file-demandes > li.fd-tete { display: none }
  .fd-etat { grid-area: etat; justify-self: end }
  .fd-quoi { grid-area: quoi }
  .fd-quoi b { white-space: normal }
  .fd-canal { display: none }
  .fd-suivi { grid-area: suivi }
  .fd-temps { grid-area: temps }
  .vignettes, .galerie .vignettes { grid-template-columns: repeat(3, minmax(0, 1fr)) }
}

.tableau { width: 100%; border-collapse: collapse; border-top: 1px solid var(--border) }
.tableau th { text-align: left; font-weight: var(--text-ui-strong-weight); font-size: var(--text-ui-caption-size); color: var(--text-muted);
  padding: var(--space-2); border-bottom: 1px solid var(--border); white-space: nowrap }
.tableau th.droite, .tableau td.droite { text-align: right }
.tableau th .tri { display: inline-flex; align-items: center; gap: var(--space-1); color: inherit; text-decoration: none }
.tableau th .tri:hover, .tableau th.actif .tri { color: var(--ink) }
.tableau th .fl { width: var(--space-3); height: var(--space-3); opacity: .45 }
.tableau th.actif .fl { opacity: 1 }
.tableau th.droite .tri { flex-direction: row-reverse }
.tableau td { padding: var(--row-y) var(--space-2); border-bottom: 1px solid var(--border); vertical-align: top }
.tableau tbody tr:not(.deplie):hover > td { background: var(--surface-alt) }
.tableau tr.choisie { background: var(--surface-alt) }
.tableau .c-case { width: var(--check-size); padding-right: 0 }
.tableau .c-case .cb { margin-top: var(--space-half) }
.tableau .c-titre { min-width: 0 }
.tableau .ouvrir { display: flex; align-items: flex-start; gap: var(--space-2); color: var(--ink); text-decoration: none }
.tableau .ouvrir .t { font-weight: var(--text-ui-strong-weight) }
.tableau .ouvrir .ico-l { display: inline-flex; flex: none; margin-top: var(--space-half) }
.tableau a.ouvrir:hover .t { text-decoration: underline }
.tableau .ouvrir > svg { flex: none; margin-top: var(--space-half); transition: transform var(--duration-fast) }
.tableau .ouvrir[aria-expanded="true"] > svg, .tableau a.chev[aria-expanded="true"] > svg { transform: rotate(90deg) }
.tableau a.chev { display: inline-flex; flex: none; color: var(--text-muted); border-radius: var(--radius-field) }
.tableau a.chev:hover { color: var(--ink); background: var(--surface-alt) }
.tableau a.chev > svg { margin-top: var(--space-half); transition: transform var(--duration-fast) }
.tableau a.t { color: var(--ink); text-decoration: none }
.tableau a.t:hover { text-decoration: underline }
.tableau .c-titre small { display: block; margin-top: var(--space-1); padding-left: calc(var(--text-ui-body-size) + var(--space-2));
  color: var(--text-muted); font-size: var(--text-ui-caption-size) }
.tableau tr[hidden] { display: none }
.tableau tr.deplie > td { padding-top: 0 }
/* La carte dépliée : pas de fond gris (Emmanuel, 15/11/2026 : trop lourd), un filet qui descend du chevron et
   tient la carte sous sa ligne ; le contenu s'aligne sur le titre. */
/* La preuve d'un attendu reçu, et son formulaire dans la ligne (maquette « preuve-recu », 16/11/2026). */
.tableau .preuve { display: flex; flex-direction: column; gap: var(--space-1); min-width: 0 }
.tableau .preuve .ctx { color: var(--text); white-space: pre-line; overflow-wrap: anywhere }
.tableau .ctx-m { color: var(--text-muted) }
.tableau .form-preuve { display: flex; flex-direction: column; gap: var(--space-4); padding-top: var(--space-4); border-top: 1px solid var(--border); max-width: 60ch }
.tableau .form-preuve .q { margin: 0; font-weight: 500 }
.tableau .form-preuve .bar, .tableau .form-preuve .note-liste { margin: 0 }
/* Le document lié à une tâche, sa question et son champ dans la ligne (maquette « document-lie », 17/11/2026). */
.tableau .docs-lies { display: flex; flex-direction: column; gap: var(--space-3); min-width: 0 }
.tableau .doc-lie { display: flex; align-items: flex-start; gap: var(--space-2); min-width: 0 }
.tableau .doc-lie svg { flex: none; margin-top: var(--space-half) }
.tableau .doc-lie .t { display: flex; flex-direction: column; gap: var(--space-half); min-width: 0 }
.tableau .doc-lie .t a { overflow-wrap: anywhere }
.tableau .doc-lie .m { color: var(--text-muted); font-size: var(--text-ui-caption-size) }
.tableau .f-retirer { display: inline }
.tableau .form-doc, .tableau .question-ligne, .tableau .suite-liee { display: flex; flex-direction: column; gap: var(--space-3);
  padding-top: var(--space-4); border-top: 1px solid var(--border); max-width: 72ch }
.tableau .form-doc { gap: var(--space-4); max-width: 60ch }
.tableau .form-doc .q, .tableau .suite-liee .q { margin: 0; font-weight: 500 }
.tableau .form-doc .bar { margin: 0 }
.tableau .suite-liee ul { margin: 0; padding-left: var(--space-5); display: flex; flex-direction: column; gap: var(--space-1) }
.tableau .suite-liee .reps { display: flex; flex-wrap: wrap; gap: var(--space-2) }
.tableau .etat-tache { display: inline-flex; flex-wrap: wrap; align-items: center; gap: var(--space-1) var(--space-2) }
.tableau .carte-l { display: flex; flex-direction: column; gap: var(--space-3);
  margin-left: calc(var(--text-ui-body-size) / 2); padding: var(--space-1) 0 var(--space-3) calc(var(--text-ui-body-size) / 2 + var(--space-2));
  border-left: var(--trait) solid var(--border) }
/* Le genre d'une colonne (ColonneTableau.genre) : la même allure dans toutes les apps. */
.tableau td.g-texte { color: var(--text); white-space: nowrap; max-width: calc(var(--space-6) * 5) }
.tableau td.g-texte:not(:has(details)) { overflow: hidden; text-overflow: ellipsis }
.tableau td.g-rattache { color: var(--text-muted); font-size: var(--text-ui-caption-size); white-space: nowrap; max-width: calc(var(--space-6) * 5);
  overflow: hidden; text-overflow: ellipsis }
.tableau td.g-donnee { color: var(--text-muted); white-space: nowrap }
.tableau .g-etat, .tableau .g-gestes { width: 1%; white-space: nowrap }
.tableau .g-etat .btn { height: auto; padding: var(--space-1) var(--space-2); gap: var(--space-1) }
.tableau .g-etat .pop { white-space: normal; width: calc(var(--space-6) * 6.5) }
.tableau .g-etat .pop form { margin: 0 }
.tableau .g-etat .pop .opt { border: 0; background: none; text-align: left; cursor: pointer }
.tableau .retard { color: var(--state-crit) }
.tableau .c-code { width: 1%; white-space: nowrap; padding-right: var(--space-1); font-family: var(--font-mono);
  font-size: var(--text-data-sm-size); color: var(--text-muted) }
.tableau td.c-code { padding-top: calc(var(--row-y) + var(--space-half)) }
.tableau .c-titre small .code-m { display: none; font-family: var(--font-mono) }
.tableau tr.faite .t { color: var(--text-muted); text-decoration: line-through }
.note-liste { margin: 0; padding: var(--space-2) var(--field-x); font-size: var(--text-ui-caption-size); color: var(--text-muted) }
.barre-groupe { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2) var(--space-3); margin: 0; padding: var(--space-2) var(--space-3);
  border: 1px solid var(--border-strong); border-radius: var(--radius-card); background: var(--surface-alt) }
.js .barre-groupe[data-vide] { display: none }
html:not(.js) .avec-js { display: none }
.barre-groupe .n { color: var(--ink) }
.barre-groupe .acts { display: flex; flex-wrap: wrap; gap: var(--space-2) }
.barre-groupe .lien { margin-left: auto }
.barre-groupe .pop .opt { border: 0; background: none; text-align: left; cursor: pointer }
.date-pop { display: flex; flex-direction: column; gap: var(--space-2); padding: var(--space-3); width: calc(var(--space-6) * 7) }
.date-pop .note-liste { padding: 0 }
.texte-pop { display: flex; flex-direction: column; gap: var(--space-2); padding: var(--space-3); width: calc(var(--space-6) * 7); max-width: calc(100vw - var(--gutter-ui) * 2) }
.champ.date { display: flex; flex-direction: column; gap: var(--space-1); margin: 0 }
.pied-pop { margin: 0; display: flex; justify-content: flex-end }
/* CaseCarte et ToutCocher : une grille de cartes où l'on coche (maquette lot-bibliotheque, 15/11/2026). */
.a-cocher { position: relative }
.case-carte { position: absolute; top: var(--space-2); left: var(--space-2); z-index: var(--z-dessus); display: grid; place-content: center;
  width: calc(var(--control-h) * 0.85); height: calc(var(--control-h) * 0.85); border-radius: var(--radius-field);
  background: var(--surface); border: 1px solid var(--border-field); box-shadow: var(--shadow-card); cursor: pointer;
  opacity: 0; transition: opacity var(--duration-fast) }
.case-carte input { margin: 0 }
.a-cocher:hover .case-carte, .a-cocher:focus-within .case-carte, .selection-cartes:has(.case-carte input:checked) .case-carte { opacity: 1 }
.selection-cartes.en-choix .case-carte { opacity: 1 }
.case-carte input:disabled { cursor: not-allowed }
@media (hover: none) { .case-carte { opacity: 1 } }
.a-cocher:has(.case-carte input:checked) { border-color: var(--border-strong); box-shadow: 0 0 0 1px var(--border-strong); background: var(--surface-alt) }
.tout-cocher { display: inline-flex; align-items: center; gap: var(--space-2); color: var(--text); font-size: var(--text-ui-caption-size); cursor: pointer }
.tout-cocher input { margin: 0 }
@media (prefers-reduced-motion: reduce) { .case-carte { transition: none } }
details.dd.tri-mobile { display: none }
@media (prefers-reduced-motion: reduce) { .tableau .ouvrir > svg, .tableau a.chev > svg { transition: none } }
@media (max-width: 760px) {
  details.dd.tri-mobile { display: inline-block }
  .tableau thead { display: none }
  .tableau, .tableau tbody { display: block }
  .tableau tr { display: grid; grid-template-columns: var(--check-size) minmax(0, 1fr) auto; gap: var(--space-1) var(--space-3);
    padding: var(--row-y) 0; border-bottom: 1px solid var(--border) }
  .tableau.sans-case tr { grid-template-columns: minmax(0, 1fr) auto }
  .tableau td { display: block; padding: 0; border: 0 }
  .tableau td.g-texte, .tableau td.g-rattache { max-width: none }
  .tableau td.m-cache { display: none }
  .tableau td.c-code { display: none }
  .tableau .c-titre small .code-m { display: inline }
  .tableau .c-titre small .code-m + .sous::before { content: " · " }
  .tableau td:empty { display: none }
  .tableau .c-case { grid-row: 1 / span 2 }
  .tableau .c-titre { grid-column: 2; grid-row: 1 }
  .tableau.sans-case .c-titre { grid-column: 1 }
  .tableau td.droite { grid-column: -2; grid-row: 1 }
  .tableau td:not(.c-case):not(.c-titre):not(.droite) { grid-column: 2 / -1 }
  .tableau.sans-case td:not(.c-titre):not(.droite) { grid-column: 1 / -1 }
  .tableau tr.deplie { display: block; padding-top: 0 }
  .tableau tr.deplie > td:empty { display: none }
  .tableau .carte-l { margin-left: 0; padding-left: var(--space-3) }
  .tableau tr[hidden] { display: none }
  .barre-groupe .lien { margin-left: 0 }
}

.nom-f { font-family: var(--font-mono); font-size: var(--text-data-sm-size); line-height: var(--text-data-sm-leading); color: var(--ink);
  overflow-wrap: anywhere }
a.nom-f { color: var(--state-info); text-decoration: underline; text-underline-offset: var(--trait) }
.fichiers-jeu { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: var(--space-2) }
.fichiers-jeu > li { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: var(--space-3); align-items: start;
  padding: var(--space-2) var(--space-3); border-radius: var(--radius-block); background: var(--surface) }
.fichiers-jeu .ico { margin-top: var(--space-1) }
.fichiers-jeu .f-txt { display: flex; flex-direction: column; gap: var(--space-1); min-width: 0 }
.fichiers-jeu .label { margin: 0 }
.decision { display: flex; flex-direction: column; gap: var(--space-2) }
.decision .trouve { margin: 0; color: var(--ink); max-width: var(--text-max) }
.decision .question { margin: 0; font-weight: var(--text-ui-strong-weight); color: var(--ink) }
/* Les réponses : des gestes courts sur une ligne ; ce qui se passera est dans la bulle (styles.ts). */
.reponses { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2) }
.reponses form { margin: 0 }
.rep { position: relative; display: inline-flex }
.rep .btn.reco { border-color: var(--border-strong); font-weight: var(--text-ui-strong-weight) }
/* Les cartes de réponse (maquette « À classer », 15/11/2026) : une question, une carte par réponse. */
.cartes-reponse { display: flex; flex-direction: column; gap: var(--space-4); max-width: calc(var(--space-7) * 14); min-width: 0 }
.cr-question { margin: 0; color: var(--ink); font-size: var(--text-ui-heading-size); line-height: var(--text-ui-heading-leading); font-weight: var(--text-ui-heading-weight) }
.cr-question small { display: block; margin-top: var(--space-1); color: var(--text-muted); font-size: var(--text-ui-body-size); line-height: var(--text-ui-body-leading); font-weight: var(--text-ui-body-weight) }
.cr-liste { display: flex; flex-direction: column; gap: var(--space-2) }
.carte-rep { border: 1px solid var(--border); border-radius: var(--radius-card); background: var(--surface) }
.carte-rep[open] { border-color: var(--border-strong); background: var(--surface-raised); box-shadow: var(--shadow-card) }
.carte-rep > summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: var(--check-size) minmax(0, 1fr) auto; gap: var(--space-3);
  align-items: start; padding: var(--space-3) var(--space-4) }
.carte-rep > summary::-webkit-details-marker { display: none }
.carte-rep > summary:focus-visible { outline: var(--focus-ring) solid var(--border-strong); outline-offset: 2px; border-radius: var(--radius-card) }
.carte-rep .rond { width: var(--check-size); height: var(--check-size); margin-top: var(--space-1); border-radius: 50%; border: var(--bord-coche) solid var(--border-field); background: var(--surface) }
.carte-rep[open] .rond { border: calc(var(--check-size) / 3) solid var(--ink) }
.carte-rep .t { display: flex; flex-direction: column; gap: var(--space-half); min-width: 0 }
.carte-rep .t b { color: var(--ink); font-weight: var(--text-ui-strong-weight) }
.carte-rep .t .resume { color: var(--text); overflow-wrap: anywhere }
.carte-rep .propose { color: var(--text-muted); font-size: var(--text-ui-label-size); letter-spacing: var(--text-ui-label-tracking); font-weight: var(--text-ui-label-weight);
  text-transform: uppercase; padding-top: var(--space-1) }
.carte-rep .corps { display: flex; flex-direction: column; gap: var(--space-4); margin: 0; padding: 0 var(--space-4) var(--space-4) calc(var(--space-4) + var(--check-size) + var(--space-3)) }
.carte-rep .corps .champs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-3) var(--space-4) }
.carte-rep .corps .champs .plein { grid-column: 1 / -1 }
.carte-rep .corps .pied { margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3) }
.carte-rep .corps .avec { display: flex; gap: var(--space-2); align-items: flex-start; color: var(--text) }
.carte-rep .corps .avec .mono { overflow-wrap: anywhere }
/* 0117 — « Rangé dans » : où le fichier ira au clic, ou la question du projet (maquette du 15/11/2026). */
.carte-rep .range { display: flex; flex-direction: column; gap: var(--space-2); padding: var(--space-3); border-radius: var(--radius-block); background: var(--surface) }
.carte-rep .range .l { margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-1) var(--space-2); color: var(--text) }
.carte-rep .range .l .ico { color: var(--text-muted) }
.carte-rep .range .l b { color: var(--ink); font-weight: var(--text-ui-strong-weight) }
.carte-rep .range .n { margin: 0; color: var(--text-muted); font-size: var(--text-ui-caption-size); max-width: var(--text-max) }
.carte-rep .range .q { margin: 0; color: var(--ink); font-weight: var(--text-ui-strong-weight) }
.cr-docs { display: flex; flex-direction: column; border: 1px solid var(--border); border-radius: var(--radius-field); overflow: hidden }
.cr-docs label { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: var(--space-3); align-items: center; padding: var(--row-y) var(--space-3);
  border-top: 1px solid var(--border); cursor: pointer; background: var(--surface) }
.cr-docs label:first-child { border-top: 0 }
.cr-docs label:has(input:checked) { background: var(--surface-alt) }
.cr-docs .n { display: flex; flex-direction: column; min-width: 0 }
.cr-docs .n b { color: var(--ink); font-weight: var(--text-ui-strong-weight); overflow-wrap: anywhere }
.cr-docs .n span, .cr-docs .foi { color: var(--text-muted); font-size: var(--text-ui-caption-size) }
.cr-docs .foi { font-family: var(--font-mono); white-space: nowrap }
@media (max-width: 760px) {
  .carte-rep > summary { grid-template-columns: var(--check-size) minmax(0, 1fr); padding: var(--space-3) }
  .carte-rep .propose { grid-column: 2; padding-top: 0 }
  .carte-rep .corps { padding: 0 var(--space-3) var(--space-3) }
  .carte-rep .corps .champs { grid-template-columns: minmax(0, 1fr) }
  .carte-rep .corps .pied .rep, .carte-rep .corps .pied .btn { width: 100%; justify-content: center } }
.versions-doc { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: var(--space-2) }
.versions-doc li { display: grid; grid-template-columns: calc(var(--space-6) + var(--space-2)) minmax(0, 1fr) auto; gap: var(--space-3); align-items: baseline }
.versions-doc .v, .versions-doc .date { font-family: var(--font-mono); font-size: var(--text-data-sm-size); color: var(--text-muted); white-space: nowrap }
.versions-doc .foi .v { color: var(--ink) }
.signal-doc { margin: 0; padding: var(--space-3); border-radius: var(--radius-block); background: var(--state-warn-bg); color: var(--ink);
  display: flex; flex-direction: column; gap: var(--space-2) }
.signal-doc .pill { align-self: flex-start }
.signal-doc.calme { background: var(--surface) }
.feuille { margin: 0; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-block); box-shadow: var(--shadow-card);
  padding: var(--space-5) var(--space-5) var(--space-4); display: flex; flex-direction: column; gap: var(--space-2);
  font-size: var(--text-ui-caption-size); width: 100%; max-width: 52ch; box-sizing: border-box }
.feuille p { margin: 0; font-size: var(--text-ui-caption-size); line-height: var(--text-ui-caption-leading); color: var(--text) }
.feuille .f-surtitre { font-size: var(--text-ui-label-size); line-height: var(--text-ui-label-leading); color: var(--text-muted) }
.feuille .f-titre { margin: 0; font-size: var(--text-ui-heading-size); line-height: var(--text-ui-heading-leading); font-weight: var(--text-ui-heading-weight);
  color: var(--ink); text-wrap: balance }
.feuille .f-chapeau { font-size: var(--text-ui-body-size); line-height: var(--text-ui-body-leading); color: var(--ink);
  padding-bottom: var(--space-2); border-bottom: 1px solid var(--border) }
.feuille h5 { margin: var(--space-1) 0 0; font-size: var(--text-ui-caption-size); line-height: var(--text-ui-caption-leading); font-weight: var(--text-ui-strong-weight); color: var(--ink) }
.feuille .f-pied { margin-top: var(--space-2); padding-top: var(--space-2); border-top: 1px solid var(--border);
  font-size: var(--text-ui-label-size); line-height: var(--text-ui-label-leading); color: var(--text-muted) }
.carte-doc { border: 1px solid var(--border); border-radius: var(--radius-card); background: var(--surface-raised); box-shadow: var(--shadow-card);
  padding: var(--space-4); display: flex; flex-direction: column; gap: var(--space-3); min-width: 0 }
.carte-doc .haut { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: var(--space-1) var(--space-3); align-items: start }
.carte-doc h3 { margin: 0; font-size: var(--text-ui-strong-size); line-height: var(--text-ui-strong-leading); font-weight: var(--text-ui-strong-weight); color: var(--ink) }
.carte-doc .haut .cap { grid-column: 2 / 3; margin: 0 }
.carte-doc .ico { margin-top: var(--space-1) }
.carte-doc .bas { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3); border-top: 1px solid var(--border); padding-top: var(--space-3) }
.carte-doc .liens { display: flex; flex-wrap: wrap; gap: var(--space-3) }
.carte-doc .gestes { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-left: auto }
.carte-doc .gestes form { margin: 0 }
/* Le document déplié (maquette du 11/11/2026) : la synthèse à gauche, à droite ce qu'on décide et ce qu'est le document, puis les versions. */
.dossier { display: grid; gap: var(--space-4) var(--space-5); align-items: start; width: 100%;
  grid-template-columns: minmax(0, 1fr) calc(var(--space-7) * 6); grid-template-areas: "corps haut" "corps bas"; grid-template-rows: auto 1fr }
.dossier > .d-corps { grid-area: corps; min-width: 0; display: flex; flex-direction: column; gap: var(--space-4) }
.dossier > .d-haut { grid-area: haut }
.dossier > .d-bas { grid-area: bas }
.d-cote { display: flex; flex-direction: column; min-width: 0; border: 1px solid var(--border); border-radius: var(--radius-card);
  background: var(--surface); box-shadow: var(--shadow-card) }
.panneau { display: flex; flex-direction: column; gap: var(--space-3); padding: var(--space-4); min-width: 0 }
.panneau + .panneau { border-top: 1px solid var(--border) }
.panneau > .label { margin: 0 }
.panneau.a-faire { background: var(--surface-alt); border-radius: var(--radius-card) var(--radius-card) 0 0 }
.panneau.a-faire:only-child { border-radius: var(--radius-card) }
.fiche-doc { margin: 0; display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: var(--space-2) var(--space-4) }
.fiche-doc dt { color: var(--text-muted); font-size: var(--text-ui-caption-size); line-height: var(--text-ui-body-leading) }
.fiche-doc dd { margin: 0; color: var(--ink); min-width: 0; overflow-wrap: anywhere }
.fiche-doc .mono { font-family: var(--font-mono); font-size: var(--text-data-sm-size) }
.vers { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column }
.vers li { display: grid; grid-template-columns: calc(var(--space-6) + var(--space-1)) minmax(0, 1fr); gap: 0 var(--space-2); align-items: baseline;
  padding: var(--space-2) 0; border-top: 1px solid var(--border) }
.vers li:first-child { border-top: 0; padding-top: 0 }
.vers .v { font-family: var(--font-mono); font-size: var(--text-data-sm-size); color: var(--text-muted) }
.vers .foi .v { color: var(--ink); font-weight: var(--text-ui-strong-weight) }
.vers .f { min-width: 0; display: flex; flex-direction: column; gap: var(--space-1) }
.vers .nom-f { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; overflow-wrap: normal }
.vers .cap { margin: 0 }
.vers .foi .cap { color: var(--ink) }
.vers.grande li { grid-template-columns: calc(var(--space-6) + var(--space-1)) auto minmax(0, 1fr) auto; gap: var(--space-3); align-items: center }
.vers.grande .date { font-family: var(--font-mono); font-size: var(--text-data-sm-size); color: var(--text-muted); white-space: nowrap }
.vers-reste > summary { cursor: pointer; color: var(--state-info); font-size: var(--text-ui-caption-size); list-style: none; padding-top: var(--space-2) }
.vers-reste > summary::-webkit-details-marker { display: none }
.vers-reste[open] > summary { display: none }
.grandes { display: flex; flex-direction: column; gap: var(--space-3); padding: var(--space-4) var(--space-5); border: 1px solid var(--border);
  border-radius: var(--radius-card); background: var(--surface); min-width: 0 }
.grandes > .label { margin: 0 }
.puce-f { display: inline-flex; align-items: stretch; vertical-align: middle; white-space: nowrap }
.puce-f > span { display: inline-flex; align-items: center; height: calc(var(--space-4) + var(--space-1)); padding: 0 var(--space-2); box-sizing: border-box;
  font-family: var(--font-mono); font-size: var(--text-data-sm-size); letter-spacing: .04em; line-height: 1 }
.puce-f .format { --f: var(--text-muted); color: var(--f); background: color-mix(in srgb, var(--f) 14%, transparent);
  border: 1px solid color-mix(in srgb, var(--f) 32%, transparent); border-radius: var(--radius-check) 0 0 var(--radius-check) }
.puce-f .format:only-child { border-radius: var(--radius-check) }
.puce-f .format.g-doc { --f: var(--fichier-doc) } .puce-f .format.g-tableur { --f: var(--fichier-tableur) }
.puce-f .format.g-presentation { --f: var(--fichier-presentation) } .puce-f .format.g-pdf { --f: var(--fichier-pdf) }
.puce-f .format.g-image { --f: var(--fichier-image) } .puce-f .format.g-video { --f: var(--fichier-video) }
.puce-f .format.g-texte { --f: var(--fichier-texte) } .puce-f .format.g-artefact { --f: var(--fichier-artefact) }
.puce-f .badge-v { color: var(--text); background: var(--surface-alt); border: 1px solid var(--border); border-left: 0;
  border-radius: 0 var(--radius-check) var(--radius-check) 0 }
.note-doc { margin: 0; color: var(--text-muted); font-size: var(--text-ui-caption-size) }
.feuille.large { max-width: none; gap: var(--space-4); padding: var(--space-6) var(--space-6) var(--space-5) }
.feuille.large .f-titre { max-width: 34ch; font-size: var(--text-ui-display-size); line-height: var(--text-ui-display-leading); letter-spacing: var(--text-ui-display-tracking) }
.feuille.large .f-chapeau { max-width: var(--text-max); padding-bottom: var(--space-5) }
.feuille.large .f-sections { columns: 2; column-gap: var(--space-6) }
.feuille.large .f-section { break-inside: avoid; display: flex; flex-direction: column; gap: var(--space-1); padding-bottom: var(--space-5) }
.feuille.large .f-section h5 { margin: 0; font-size: var(--text-ui-body-size); line-height: var(--text-ui-body-leading) }
.feuille.large .f-section p { font-size: var(--text-ui-body-size); line-height: var(--text-ui-body-leading) }
.feuille.large .f-pied { margin-top: 0; padding-top: var(--space-3) }
/* Les corrections (maquette validée le 13/11/2026) : le « ⋯ », « Modifier » sur place, la forme en ligne. */
.p-tete { display: flex; align-items: center; justify-content: space-between; gap: var(--space-2) }
.p-tete .label { margin: 0 }
.plus > summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; justify-content: center;
  width: var(--control-h-sm); height: var(--control-h-sm); border-radius: var(--radius-field); color: var(--text-muted) }
.plus > summary::-webkit-details-marker { display: none }
.plus > summary:hover, .plus[open] > summary { background: var(--surface-alt); color: var(--ink) }
.plus > summary:focus-visible { outline: var(--focus-ring) solid var(--state-info); outline-offset: 1px }
.plus > summary svg { width: var(--space-4); height: var(--space-4) }
.plus .pop { min-width: calc(var(--space-7) * 4.5) }
.plus form { margin: 0 }
.plus .opt { flex-direction: column; align-items: flex-start; gap: 0; padding-top: var(--space-2); padding-bottom: var(--space-2); text-align: left; text-decoration: none; color: var(--ink) }
.plus .opt small { display: block; color: var(--text-muted); font-size: var(--text-ui-caption-size) }
.fiche-doc dd.mod { display: flex; align-items: baseline; justify-content: space-between; gap: var(--space-2) }
.fiche-doc .modifier { flex: none; color: var(--state-info); font-size: var(--text-ui-caption-size); text-decoration: none }
.fiche-doc .modifier:hover { text-decoration: underline }
.fiche-doc dd.edition { display: flex; flex-direction: column; gap: var(--space-2) }
.fiche-doc dd.edition .champ > .label { display: none }
.forme-l { display: flex; flex-direction: column; gap: var(--space-2); margin: 0 }
.forme-l.cadre { padding: var(--space-3); border: 1px solid var(--border); border-radius: var(--radius-block); background: var(--surface-alt) }
.forme-l .champ { margin: 0 }
.forme-l input[type=text] { width: 100% }
.forme-l .aide-l, .aide-l { margin: 0; color: var(--text-muted); font-size: var(--text-ui-caption-size) }
.actions-l { display: flex; gap: var(--space-2); flex-wrap: wrap }
.vers li.avec-menu { grid-template-columns: calc(var(--space-6) + var(--space-1)) minmax(0, 1fr) auto }
.vers.grande li.avec-menu { grid-template-columns: calc(var(--space-6) + var(--space-1)) auto minmax(0, 1fr) auto auto }
.vers li.sous { display: block; padding: 0 0 var(--space-3) calc(var(--space-6) + var(--space-1) + var(--space-3)); border-top: 0 }
/* La page d'un document en plein écran (maquette validée le 16/11/2026) : plus large qu'une page d'outil, le
   document garde la largeur d'une page et la colonne de droite se pose à côté. */
:root { --plein-max: calc(var(--page-max) + var(--space-7) * 6 + var(--space-5)) }
.plein main, .plein .barre-dedans { max-width: var(--plein-max) }
/* 0129 — le calque d'un document (maquette validée le 16/11/2026) : presque tout l'écran, l'app d'où l'on
   vient floutée derrière ; une marge tout autour dit qu'on ne l'a pas quittée. */
/* Large comme la page du document qu'il montre (Emmanuel, 17/11/2026 : « trop de blanc autour ») : jamais plus que
   --plein-max, centré ; haut comme la page qu'il montre (--cq-h, que la page lui dit), jamais plus que l'écran
   moins sa marge. Il se centre aussi en hauteur. */
dialog.calque { position: fixed; inset: 0; width: min(calc(100vw - var(--space-5) * 2), var(--plein-max));
  height: min(var(--cq-h, 100vh), calc(100vh - var(--space-5) * 2)); transition: height var(--duration-fast);
  max-width: none; max-height: none; margin: auto; padding: 0;
  display: none; flex-direction: column; background: var(--surface); color: var(--ink); border: 1px solid var(--border);
  border-radius: var(--radius-card); box-shadow: var(--shadow-elevated); overflow: hidden }
dialog.calque[open] { display: flex }
dialog.calque::backdrop { background: color-mix(in srgb, var(--tdc-navy-deep) 28%, transparent);
  backdrop-filter: blur(var(--space-1)); -webkit-backdrop-filter: blur(var(--space-1)) }
.calque .cq-tete { flex: none; display: flex; align-items: center; gap: var(--space-3); padding: var(--space-2) var(--space-2) var(--space-2) var(--space-4);
  background: var(--surface); border-bottom: 1px solid var(--border) }
.calque .cq-ou { margin: 0; min-width: 0; flex: 1; display: flex; align-items: baseline; gap: var(--space-2); overflow: hidden; white-space: nowrap }
.calque .cq-ou b { color: var(--ink); font-weight: var(--text-ui-strong-weight); overflow: hidden; text-overflow: ellipsis }
.calque .cq-ou span { color: var(--text-muted); font-size: var(--text-ui-caption-size) }
.calque .cq-ou b.mono { font-family: var(--font-mono); font-size: var(--text-data-sm-size); font-weight: var(--text-ui-body-weight) }
.calque .cq-fige { flex: none; color: var(--text-muted); font-size: var(--text-ui-caption-size); white-space: nowrap }
.calque .cq-tete .sep-v { flex: none; width: 1px; align-self: stretch; background: var(--border) }
.calque .cq-tete .btn { height: var(--control-h-sm); flex: none }
.calque .cq-cadre { flex: 1; min-height: 0; width: 100%; border: 0; display: block; background: var(--surface) }
/* Le cadre est déjà à la largeur de la page, moins la bordure du calque : la page le remplit, sans défilement de côté. */
.dans-calque main { padding-top: var(--space-4); max-width: none }
.tete-fixe { position: sticky; top: 0; z-index: var(--z-barre) }
.tete-fixe .barre { position: static }
.retour-b { background: var(--surface-alt); border-bottom: 1px solid var(--border) }
.retour-b .rb-dedans { max-width: var(--plein-max); margin: 0 auto; padding: var(--space-2) var(--gutter-ui);
  display: flex; align-items: center; gap: var(--space-3); min-width: 0 }
.retour-b .btn { height: var(--control-h-sm); flex: none; gap: var(--space-2) }
.retour-b .rb-ou { min-width: 0; color: var(--text-muted); font-size: var(--text-ui-caption-size);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap }
.doc-tete { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--space-4) var(--space-5);
  flex-wrap: wrap; margin: var(--space-2) 0 var(--space-5) }
.doc-tete .dt-txt { display: flex; flex-direction: column; gap: var(--space-1); min-width: 0 }
.doc-tete .label { margin: 0 }
.doc-tete h1 { margin: 0; font-size: var(--text-ui-display-size); line-height: var(--text-ui-display-leading);
  font-weight: var(--text-ui-display-weight); letter-spacing: var(--text-ui-display-tracking); text-wrap: balance; overflow-wrap: anywhere }
.doc-tete .dt-sous { margin: 0; color: var(--text); display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2) var(--space-3) }
.doc-tete .dt-note { margin: 0; color: var(--text-muted); font-size: var(--text-ui-caption-size); max-width: var(--text-max) }
.doc-tete .dt-ouvrir { display: flex; flex-direction: column; align-items: flex-end; gap: var(--space-1); min-width: 0; max-width: 100% }
.doc-tete .dt-ouvrir .btn { gap: var(--space-2) }
.doc-tete .dt-ouvrir .mono { font-family: var(--font-mono); font-size: var(--text-data-sm-size); color: var(--text-muted);
  max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap }
@media (max-width: 1100px) {
  .feuille.large .f-sections { columns: 1 }
  .feuille.large { padding: var(--space-5) var(--space-4) var(--space-4) } }
@media (max-width: 760px) {
  .retour-b .rb-ou { display: none }
  .doc-tete { align-items: stretch }
  .doc-tete h1 { font-size: var(--text-ui-heading-size); line-height: var(--text-ui-heading-leading) }
  .doc-tete .dt-ouvrir { align-items: stretch; width: 100% }
  .doc-tete .dt-ouvrir .btn { justify-content: center }
  .dossier { grid-template-columns: minmax(0, 1fr); grid-template-areas: "haut" "corps" "bas"; grid-template-rows: auto }
  .d-cote { box-shadow: none }
  .grandes { padding: var(--space-4) var(--space-3) }
  .vers.grande li { grid-template-columns: calc(var(--space-6) + var(--space-1)) minmax(0, 1fr) }
  .vers.grande .ico-c { display: none }
  .vers.grande .date { grid-column: 2 }
  .vers.grande li.avec-menu { grid-template-columns: calc(var(--space-6) + var(--space-1)) minmax(0, 1fr) auto }
  .vers.grande li.avec-menu .date { grid-column: 2 }
  .vers li.sous { padding-left: 0 }
  .plus .pop { min-width: 0; width: calc(100vw - 2 * var(--space-6)) }
  .feuille.large { padding: var(--space-4) var(--space-3) }
  .feuille.large .f-titre { font-size: var(--text-ui-heading-size); line-height: var(--text-ui-heading-leading) }
  .versions-doc li { grid-template-columns: calc(var(--space-6) + var(--space-2)) minmax(0, 1fr) }
  .versions-doc .date { grid-column: 2 / -1 }
  .feuille { padding: var(--space-4) var(--space-3) }
  .carte-doc { padding: var(--space-3) }
  .carte-doc .haut { grid-template-columns: auto minmax(0, 1fr) }
  .carte-doc .haut > .pill { grid-column: 2 / 3; grid-row: 3; justify-self: start }
  .carte-doc .gestes { margin-left: 0 } }

/* Les documents d'un projet (maquette validée le 13/11/2026, docs/maquettes/documents-projet). */
.docs-projet { display: flex; flex-direction: column; gap: var(--space-4); min-width: 0 }
.docp-portee { margin: 0; color: var(--text); max-width: var(--text-max) }
.docp-portee b { color: var(--ink); font-weight: var(--text-ui-strong-weight) }
.docp-pied { margin: 0; color: var(--text-muted); font-size: var(--text-ui-caption-size); max-width: var(--text-max) }
.docp-pied .mono { font-family: var(--font-mono); font-size: var(--text-data-sm-size) }
.docp-vide { margin: 0; padding: var(--space-4); border: 1px dashed var(--border-strong); border-radius: var(--radius-block); color: var(--text); max-width: 84ch }
.docp-panne { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2) var(--space-3); margin: 0; padding: var(--space-3) var(--space-4);
  border: 1px solid var(--border); border-radius: var(--radius-card); background: var(--surface); color: var(--text); max-width: 84ch }
.etat-docp { display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-half) }
.etat-docp small { color: var(--text-muted); font-size: var(--text-ui-caption-size); white-space: nowrap }
.marque-docp { display: block; margin-bottom: var(--space-1) }
.carte-docp { display: flex; flex-direction: column; gap: var(--space-3); max-width: 84ch }
.carte-docp .sans-synth { margin: 0; padding: var(--space-3) var(--space-4); border: 1px dashed var(--border-strong); border-radius: var(--radius-block); color: var(--text) }
.docp-ouvrir { margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2) var(--space-3); color: var(--text-muted); font-size: var(--text-ui-caption-size) }
.docp-ouvrir .mono { font-family: var(--font-mono); font-size: var(--text-data-sm-size); overflow-wrap: anywhere }
.docp-question { padding: var(--space-4); border: 1px solid var(--border); border-radius: var(--radius-card); background: var(--surface); max-width: 96ch }
.docp-question .decision { margin: 0 }

.boites { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-4); align-items: start }
.boite { display: flex; flex-direction: column; gap: var(--space-4); min-width: 0; padding: var(--space-5); border: 1px solid var(--border);
  border-radius: var(--radius-card); background: var(--surface) }
.boite.attend { border-style: dashed; background: transparent }
.boite-tete { display: flex; align-items: center; gap: var(--space-3); min-width: 0 }
.boite-tete .qui { display: flex; flex-direction: column; min-width: 0; flex: 1 }
.boite-tete .qui b { color: var(--ink); font-weight: var(--text-ui-strong-weight) }
.boite-tete .qui .mono { color: var(--text-muted); font-size: var(--text-data-sm-size); overflow-wrap: anywhere }
.boite p { margin: 0; max-width: var(--text-max); color: var(--text) }
.boite .cap { color: var(--text-muted) }
.acces { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--border) }
.acces li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--space-half) var(--space-3); align-items: baseline; padding: var(--space-2) 0; border-bottom: 1px solid var(--border) }
.acces li b { color: var(--ink); font-weight: var(--text-ui-strong-weight) }
.acces li .cap { grid-column: 1 / 2; margin: 0 }
.acces li .pill { grid-row: 1 / 3; grid-column: 2; align-self: center }
.panne { display: flex; flex-direction: column; gap: var(--space-2); padding: var(--space-3) var(--space-4); border-radius: var(--radius-block);
  border: 1px solid color-mix(in srgb, var(--state-crit) 35%, transparent); background: color-mix(in srgb, var(--state-crit) 7%, transparent) }
.panne b { color: var(--ink) }
.accord { padding: var(--space-5); border: 1px solid var(--border); border-radius: var(--radius-card); background: var(--surface) }
.accord-fait { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2) var(--space-4) }
.accord-fait p { margin: 0; color: var(--text); flex: 1 1 calc(var(--space-7) * 6) }
.contacts { display: flex; flex-direction: column; gap: var(--space-half) }
.contacts .mono { color: var(--text-muted); font-size: var(--text-data-sm-size); overflow-wrap: anywhere }
.contacts .manque { color: var(--text) }
.entree-boite { display: flex; flex-direction: column; gap: var(--space-half) }
.entree-boite .cap { margin: 0 }
@media (max-width: 760px) {
  .boites { grid-template-columns: minmax(0, 1fr) }
  .boite, .accord { padding: var(--space-4) var(--space-3) }
  .boite-tete { flex-wrap: wrap }
  .boite-tete .qui { flex: 1 1 calc(100% - var(--control-h) - var(--space-3)) }
  .boite-tete .pill { margin-left: calc(var(--control-h) + var(--space-3)) } }

.equipe { display: flex; flex-direction: column; gap: var(--space-6); max-width: calc(var(--space-7) * 16) }
.eq-groupe { display: flex; flex-direction: column; gap: var(--space-3) }
.eq-groupe .eq-chapo { margin: 0; color: var(--text); max-width: var(--text-max) }
.eq-pied { margin: 0; color: var(--text-muted); font-size: var(--text-ui-caption-size); max-width: var(--text-max) }
.eq-vide { margin: 0; padding: var(--space-4); border: 1px dashed var(--border-strong); border-radius: var(--radius-block); color: var(--text) }

.membres { list-style: none; margin: 0; padding: 0; border: 1px solid var(--border); border-radius: var(--radius-card); background: var(--surface) }
.membre { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: var(--space-1) var(--space-3); align-items: center; padding: var(--space-3) var(--space-4); border-top: 1px solid var(--border) }
.membre:first-child { border-top: 0 }
.membre .t { display: flex; flex-direction: column; gap: var(--space-half); min-width: 0 }
.membre .t b { color: var(--ink); font-weight: var(--text-ui-strong-weight) }
.membre .t .mono { color: var(--text-muted); font-size: var(--text-data-sm-size); overflow-wrap: anywhere }
.membre .t small { color: var(--text-muted); font-size: var(--text-ui-caption-size) }
.membre .fin { display: flex; align-items: center; gap: var(--space-2); flex-wrap: wrap; justify-content: flex-end }
.membre .fin form { margin: 0 }
.membre.neuf { background: color-mix(in srgb, var(--state-ok) 6%, transparent) }
.membre.retire .t b { color: var(--text) }
.role { display: inline-flex; align-items: center; height: var(--control-h-sm); padding: 0 var(--space-2); border: 1px solid var(--border); border-radius: var(--radius-pill); color: var(--text); font-size: var(--text-ui-caption-size); white-space: nowrap }
/* 0117 — le bandeau du dossier d'échange, en tête du groupe du client. */
.echange { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2) var(--space-3); padding: var(--space-3) var(--space-4);
  border: 1px solid var(--border); border-radius: var(--radius-card); background: var(--surface) }
.echange .t { display: flex; flex-direction: column; gap: var(--space-half); min-width: 0; flex: 1 1 20rem }
.echange .t b { color: var(--ink); font-weight: var(--text-ui-strong-weight); overflow-wrap: anywhere }
.echange .t small { color: var(--text-muted); font-size: var(--text-ui-caption-size) }
.echange .ico { color: var(--text-muted) }
.eq-manque { margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2) var(--space-3); color: var(--text) }

.personnes { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: var(--space-3) }
.personne { display: flex; flex-direction: column; gap: var(--space-3); padding: var(--space-4); border: 1px solid var(--border); border-radius: var(--radius-card); background: var(--surface) }
.personne .qui { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: var(--space-1) var(--space-3); align-items: center }
.personne .qui b { color: var(--ink); font-weight: var(--text-ui-strong-weight) }
.personne .qui .mono { color: var(--text-muted); font-size: var(--text-data-sm-size); overflow-wrap: anywhere }
.personne .vu { grid-column: 2; margin: 0; color: var(--text); font-size: var(--text-ui-caption-size) }
.personne .decision { margin: 0 }

/* LigneInvites — une réunion et ses invités à trier (maquette « Invités d'une réunion », 17/11/2026). */
.invites .noms { display: flex; flex-wrap: wrap; gap: var(--space-1) var(--space-2); margin: var(--space-1) 0 0; padding: 0; list-style: none }
.invites .noms li { font-size: var(--text-ui-caption-size); color: var(--text); padding: 0 var(--space-2); border-radius: var(--radius-pill); background: var(--surface-alt); line-height: calc(var(--control-h-sm) - var(--space-2)) }
.invites .noms li.plus { background: none; color: var(--text-muted); padding: 0 }
.invites .corps { display: flex; flex-direction: column; gap: var(--space-3) }
.invites .corps .decision { margin: 0 }
.invites .sans-clic { margin: 0; color: var(--text-muted); font-size: var(--text-ui-caption-size); max-width: var(--text-max) }

@media (max-width: 760px) {
  .membre { grid-template-columns: auto minmax(0, 1fr); padding: var(--space-3) }
  .membre .fin { grid-column: 2; justify-content: flex-start }
  .personne { padding: var(--space-3) }
}
/* 0098 — la fiche d'un membre, sous son nom ; la carte qui la propose. */
.fichem { margin: var(--space-2) 0 0; display: grid; grid-template-columns: minmax(0, 9rem) minmax(0, 1fr); gap: var(--space-1) var(--space-3); font-size: var(--text-ui-caption-size) }
.fichem dt { color: var(--text-muted) }
.fichem dd { margin: 0; color: var(--text) }
.fichem .manque { color: var(--text-muted); font-style: normal }
.fichem .src { color: var(--text-muted) }
.fiche-p .constats { grid-column: 2; margin: 0; padding-left: var(--space-5); color: var(--text); font-size: var(--text-ui-caption-size); display: flex; flex-direction: column; gap: var(--space-half) }
.fiche-p .decision + .decision { padding-top: var(--space-3); border-top: 1px solid var(--border) }
@media (max-width: 760px) { .fichem { grid-template-columns: minmax(0, 1fr) } }

.boites-l { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2) var(--space-4); margin: var(--space-3) 0 0;
  color: var(--text-muted); font-size: var(--text-ui-caption-size) }
.boites-l .b { display: inline-flex; align-items: center; gap: var(--space-2) }
.boites-l .b b { color: var(--text); font-weight: var(--text-ui-strong-weight) }
.boites-l a { color: var(--text-muted) }
.boites-l a:hover { color: var(--ink) }
.boites-a { display: flex; flex-direction: column; gap: var(--space-2); margin: var(--space-3) 0 0; padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-block); border: 1px solid color-mix(in srgb, var(--a) 38%, transparent); background: color-mix(in srgb, var(--a) 7%, transparent) }
.boites-a.warn { --a: var(--state-warn) } .boites-a.crit { --a: var(--state-crit) } .boites-a.neutre { --a: var(--border-strong) }
.boites-a p { margin: 0; color: var(--text); max-width: var(--text-max) }
.boites-a .q { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2) var(--space-3) }
.boites-a .q b { color: var(--ink); font-weight: var(--text-ui-strong-weight) }
.boites-a .ok-aussi { color: var(--text-muted); font-size: var(--text-ui-caption-size) }

.j-file > li { grid-template-columns: var(--check-size) minmax(0, 1fr) auto; align-items: center }
.j-file > li > .ico { align-self: start }
.j-file .t b a { color: inherit; text-decoration: none }
.j-file .t b a:hover { text-decoration: underline }
.j-file .t .genre { color: var(--text); font-weight: var(--text-ui-strong-weight) }
.j-file .j-fin { flex-direction: row; align-items: center; gap: var(--space-3) }
.gestes-l { display: inline-grid; grid-auto-flow: column; grid-auto-columns: var(--control-h-sm); gap: var(--space-1); align-items: center }
.gestes-l .ic-form { margin: 0 }
.j-pied { margin: var(--space-1) 0 0; color: var(--text-muted); font-size: var(--text-ui-caption-size) }
.j-pied a { color: var(--text-muted) }
.j-pied a:hover { color: var(--ink) }
.j-indispo { margin: 0; padding: var(--space-4); border: 1px dashed var(--border-strong); border-radius: var(--radius-block); color: var(--text) }
.j-indispo b { color: var(--ink) }

.j-att { list-style: none; margin: 0; padding: 0 }
.j-att > li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--space-1) var(--space-3); padding: var(--space-3) 0; border-top: 1px solid var(--border); align-items: start }
.j-att > li:first-child { border-top: 0 }
.j-att .t { display: flex; flex-direction: column; gap: var(--space-half); min-width: 0 }
.j-att .t b { color: var(--ink); font-weight: var(--text-ui-body-weight) }
.j-att .d { grid-column: 1 / -1; color: var(--text-muted); font-size: var(--text-ui-caption-size) }
.j-att .pourquoi { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-1) var(--space-2); margin: 0; color: var(--text); font-size: var(--text-ui-caption-size) }
.j-att .pourquoi a { color: var(--ink) }
.j-att .fin { display: flex; align-items: center; gap: var(--space-3); white-space: nowrap }
.j-boites { margin: var(--space-2) 0 0; color: var(--text-muted); font-size: var(--text-ui-caption-size) }

@media (max-width: 760px) {
  .j-file > li { grid-template-columns: var(--check-size) minmax(0, 1fr) }
  .j-file .j-fin { grid-column: 2 / -1; justify-content: space-between }
  .gestes-l { grid-auto-columns: auto; gap: var(--space-2) }
  .j-att > li { grid-template-columns: minmax(0, 1fr) }
  .j-att .t { order: 1 } .j-att .d { order: 2 } .j-att .fin { order: 3 } .j-att .pourquoi { order: 4 }
  .j-att .fin { justify-content: space-between; flex-wrap: wrap; row-gap: var(--space-2); white-space: normal } }

.barre-conso > summary { gap: var(--space-2); padding: 0 var(--space-2) }
.barre-conso .montant { font-family: var(--font-mono); font-size: var(--text-data-sm-size); font-variant-numeric: tabular-nums; color: var(--ink) }
.barre-conso .court { display: none }
.pop.conso { width: calc(var(--space-6) * 10.5); max-width: calc(100vw - var(--gutter-ui) * 2); padding: var(--space-3) var(--space-4) var(--space-4);
  display: flex; flex-direction: column; gap: var(--space-3) }
.conso p { margin: 0 }
.conso .mono { white-space: nowrap; font-size: var(--text-data-sm-size); font-variant-numeric: tabular-nums; color: var(--ink) }
.conso-tete, .conso-api-tete { display: flex; align-items: center; justify-content: space-between; gap: var(--space-2) }
.conso-tete { padding-bottom: var(--space-3); border-bottom: 1px solid var(--border) }
.conso-api { display: flex; flex-direction: column; gap: var(--space-2) }
.conso-api-tete .app-nom { color: var(--ink); font-weight: var(--text-ui-strong-weight) }
/* Une app, une ligne : son nom, sa jauge, son montant ; les lignes d'une API s'alignent. */
.conso-lignes { display: grid; grid-template-columns: auto minmax(var(--space-7), 1fr) auto; row-gap: var(--space-1) }
.conso-app { grid-column: 1 / -1; grid-template-columns: subgrid; position: relative; display: grid; align-items: center;
  gap: var(--space-3); padding: var(--space-1) var(--space-2); margin: 0 calc(var(--space-2) * -1); border-radius: var(--radius-field); cursor: default; outline: none }
.conso-app:hover, .conso-app:focus-visible { background: var(--surface-alt) }
.conso-app:focus-visible { outline: var(--focus-ring) solid var(--state-info); outline-offset: 1px }
.conso-app .nom { display: inline-flex; align-items: center; gap: var(--space-2) }
.conso .jauge.proche .j-barre i { background: var(--state-warn) }
.conso .jauge.atteint .j-barre i { background: var(--state-crit) }
/* La bulle du système, sous la ligne ou le mot qu'elle explique. */
.a-bulle { position: relative; cursor: default; outline: none }
.conso .bulle { position: absolute; z-index: var(--z-bulle); left: 0; right: 0; top: calc(100% + var(--space-1)); display: flex; flex-direction: column; gap: var(--space-half);
  padding: var(--space-2) var(--space-3); background: var(--surface-raised); color: var(--text); border: 1px solid var(--border);
  border-radius: var(--radius-field); box-shadow: var(--shadow-popover); font-size: var(--text-ui-caption-size); line-height: var(--text-ui-caption-leading);
  font-weight: normal; text-align: left; white-space: normal;
  opacity: 0; transform: translateY(-2px); pointer-events: none; transition: opacity var(--duration-fast), transform var(--duration-fast) }
.conso .bulle b { color: var(--ink); font-weight: var(--text-ui-strong-weight) }
.conso .bulle .u { display: flex; justify-content: space-between; gap: var(--space-3) }
.conso .bulle .u .mono { color: var(--text) }
.conso .bulle .sep-b { height: 1px; background: var(--border); margin: var(--space-1) 0 }
.a-bulle:hover > .bulle, .a-bulle:focus > .bulle { opacity: 1; transform: none; transition-delay: var(--duration-fast) }
.conso-api-tete .a-bulle .bulle, .conso-tete .a-bulle .bulle { left: auto; right: 0; width: calc(var(--space-6) * 7) }
@media (prefers-reduced-motion: reduce) { .conso .bulle { transition: none } }
@media (max-width: 760px) {
  .barre-conso > summary .pill .mot { display: none } .barre-conso > summary .court { display: inline }
  /* Le cadran s'efface, et le montant quand une pastille dit l'état (il reste dans le menu) : le filtre client garde sa valeur. */
  .barre-conso > summary:has(.pill) .montant { display: none }
  .barre-conso > summary .ico { display: none } .barre-conso > summary { padding: 0 var(--space-1); gap: var(--space-1) }
  .conso-app .sur { display: none } .conso-lignes { grid-template-columns: auto minmax(var(--space-6), 1fr) auto }
  .pop.conso { position: fixed; left: var(--gutter-ui); right: var(--gutter-ui); top: calc(var(--hauteur-barre) + var(--space-1));
    width: auto; max-height: calc(100vh - var(--hauteur-barre) - var(--space-5)); overflow: auto }
}

.images-choisies { display: flex; flex-direction: column; gap: var(--space-3) }
.images-choisies > .label { font-weight: var(--text-ui-strong-weight); color: var(--ink); display: flex; align-items: baseline; gap: var(--space-2) }
.images-choisies > .label small { color: var(--text-muted); font-weight: normal; font-size: var(--text-ui-caption-size) }
.ic-cases { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--space-2) }
.ic-cases > li { position: relative; aspect-ratio: 1; min-width: 0 }
.ic-image img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius-field); display: block; border: 1px solid var(--border) }
.ic-image .poste { position: absolute; left: var(--space-half); bottom: var(--space-half); padding: 0 var(--space-1); border-radius: var(--radius-pill); background: var(--surface); color: var(--ink); font-size: var(--text-ui-caption-size); border: 1px solid var(--border) }
.ic-retirer { position: absolute; top: var(--space-half); right: var(--space-half); width: var(--space-5); height: var(--space-5); display: grid; place-content: center; padding: 0;
  border-radius: var(--radius-pill); background: var(--surface); color: var(--ink); border: 1px solid var(--border); cursor: pointer }
.ic-retirer svg { width: var(--space-3); height: var(--space-3); stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; fill: none }
.ic-vide { border-radius: var(--radius-field); border: 1px dashed var(--border-strong); background: var(--surface-sunken) }
.ic-ajout label { position: relative; height: 100%; display: grid; place-content: center; justify-items: center; gap: var(--space-half); padding: var(--space-1); text-align: center;
  border-radius: var(--radius-field); border: 1px dashed var(--border-strong); background: var(--surface); color: var(--ink); cursor: pointer;
  font-size: var(--text-ui-caption-size); line-height: var(--text-ui-caption-leading) }
.ic-ajout label:hover { background: var(--surface-alt) }
.ic-ajout label:focus-within { outline: var(--focus-ring) solid var(--border-strong); outline-offset: 2px }
.ic-ajout input { position: absolute; inset: 0; opacity: 0; width: 100%; height: 100%; cursor: pointer }
.ic-ajout .plus { font-size: var(--text-ui-heading-size); line-height: 1 }
.ic-message { margin: 0; color: var(--text); font-size: var(--text-ui-caption-size) }
.ic-aide { margin: 0 }
@media (max-width: 640px) { .ic-cases { gap: var(--space-1) } }

.fx-prospecter { --ligne: var(--ligne-prospecter) } .fx-vendre { --ligne: var(--ligne-vendre) } .fx-marque { --ligne: var(--ligne-marque) }
.fx-site { --ligne: var(--ligne-site) } .fx-mesurer { --ligne: var(--ligne-mesurer) } .fx-outillage { --ligne: var(--ligne-outillage) }
.fx-autres, .fx-moteurs { --ligne: var(--text-muted) }

.fx-plan { display: flex; flex-direction: column; border: 1px solid var(--border); border-radius: var(--radius-block); background: var(--surface-sunken); padding: var(--space-2) var(--space-3) }
.fx-famille { border-top: 1px solid var(--border) } .fx-famille:first-child { border-top: 0 }
.fx-famille > summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: var(--space-3); padding: var(--space-2); border-radius: var(--radius-field) }
.fx-famille > summary::-webkit-details-marker { display: none }
.fx-famille > summary:hover { background: var(--surface-alt) }
.fx-famille > summary:focus-visible { outline: var(--focus-ring) solid var(--border-strong) }
.fx-trait { width: 22px; height: 6px; border-radius: var(--radius-pill); background: var(--ligne); flex: none }
.fx-nom { font-weight: var(--text-ui-strong-weight); color: var(--ink); min-width: 10.5rem }
.fx-famille:not([open]) > summary .fx-nom { color: var(--text) }
.fx-chevron { width: 16px; height: 16px; margin-left: auto; color: var(--text-muted); transition: transform var(--duration-fast) }
.fx-famille:not([open]) .fx-chevron { transform: rotate(-90deg) }
.fx-svg { width: 100%; height: auto; display: block; overflow: visible; margin: 0 0 var(--space-2) }
.fx-rail { stroke: var(--ligne); stroke-width: 7; stroke-linecap: round }
.fx-rail.libre { stroke-width: 3; stroke-dasharray: 2 7 }
.fx-lib { font-family: var(--font-sans); font-size: 13px; fill: var(--text) }
.fx-st .fx-forme { fill: var(--surface); stroke: var(--ligne); stroke-width: 3.5 }
a.fx-st { cursor: pointer; outline: none }
a.fx-st:hover .fx-forme, a.fx-st:focus-visible .fx-forme { fill: color-mix(in srgb, var(--ligne) 22%, var(--surface)) }
a.fx-st:focus-visible .fx-lib, a.fx-st:hover .fx-lib { text-decoration: underline }
.fx-st.geste .fx-forme { stroke-dasharray: 3 2; stroke-width: 2 }
.fx-st.a-venir { opacity: .55 }
.fx-st.jamais .fx-forme { stroke-dasharray: 2 3; stroke-width: 2 }
.fx-st.jamais .fx-lib { fill: var(--text-muted) }
.fx-courant { fill: none; stroke: var(--tdc-yellow); stroke-width: 4 }
.fx-plan.avec-trajet .fx-rail { opacity: .22 } .fx-plan.avec-trajet .fx-rail.actif { opacity: 1 }
.fx-st.eteint { opacity: .28 }
.fx-st.sur .fx-forme { fill: var(--ligne); stroke: var(--surface); stroke-width: 3 }
.fx-st.sur .fx-lib { fill: var(--ink); font-weight: 600 }
.fx-num { font-family: var(--font-mono); font-size: 13px; font-weight: 600; fill: var(--surface) }
.fx-anneau { fill: none; stroke-width: 2.5; stroke-dasharray: 4 3 } .fx-anneau.warn { stroke: var(--state-warn) } .fx-anneau.crit { stroke: var(--state-crit) }
.fx-st.manque .fx-forme { stroke: var(--state-crit); stroke-dasharray: 3 3; fill: var(--state-crit-bg) }
.fx-st.manque .fx-lib { fill: var(--state-crit); font-weight: 600 }
.fx-liste { display: none }
.fx-moteurs-liste { margin: 0 0 var(--space-3); padding-left: calc(22px + var(--space-3) + var(--space-2)); display: flex; flex-direction: column; gap: var(--space-1); color: var(--text-muted); font-size: var(--text-ui-caption-size) }
.fx-legende { display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-4) }
.fx-legende span { display: inline-flex; align-items: center; gap: var(--space-2) }
.fx-lg { width: 12px; height: 12px; display: inline-block; border: 2.5px solid var(--ink); border-radius: var(--radius-pill) }
.fx-lg.carre { border-radius: 3px; border-style: dashed; border-width: 2px }
.fx-lg.jamais { border-style: dotted; border-width: 2px }
.fx-lg.plein { width: 22px; height: 0; border-width: 3px 0 0; border-radius: 0 }
.fx-lg.libre { width: 22px; height: 0; border-width: 2px 0 0; border-style: dotted; border-radius: 0 }
.fx-lg.courant { border-color: var(--tdc-yellow); border-width: 3px }
.fx-lg.warn { border-color: var(--state-warn); border-style: dashed }
.fx-lg.crit { border-color: var(--state-crit); border-style: dashed; background: var(--state-crit-bg) }

.fx-affaire { display: flex; flex-direction: column; gap: var(--space-3) }
.fx-frise { display: grid; grid-template-columns: 6rem repeat(var(--cols), minmax(7.5rem, 1fr)); grid-template-rows: auto auto auto auto; column-gap: var(--space-2);
  border: 1px solid var(--border); border-radius: var(--radius-card); background: var(--surface); padding: var(--space-4) var(--space-3); overflow-x: auto }
.fx-couloirs { display: grid; grid-row: 1 / span 4; grid-template-rows: subgrid; color: var(--text-muted); font-size: var(--text-ui-label-size); text-transform: uppercase; letter-spacing: var(--text-ui-label-tracking) }
.fx-couloirs span { padding: var(--space-2) 0; border-top: 1px solid var(--border) } .fx-couloirs span:first-child { border-top: 0 }
.fx-ev { display: grid; grid-row: 1 / span 4; grid-template-rows: subgrid; min-width: 0 }
.fx-ev > div { padding: var(--space-2) var(--space-1); border-top: 1px solid var(--border); display: flex; flex-direction: column; gap: var(--space-2); min-width: 0 }
.fx-ev > .fx-quand { border-top: 0 }
.fx-etape { display: grid; grid-template-rows: 26px calc(2 * 1.3em) auto; row-gap: var(--space-2); align-content: start; padding: var(--space-2) var(--space-1) var(--space-3); border-top: 1px solid var(--border); border-radius: var(--radius-field); color: inherit; text-decoration: none; min-width: 0 }
.fx-etape:hover { background: var(--surface-alt) }
.fx-etape:focus-visible { outline: var(--focus-ring) solid var(--border-strong) }
.fx-ev.choisi .fx-etape { background: color-mix(in srgb, var(--ligne) 10%, var(--surface)) }
.fx-nom-etape { color: var(--ink); font-weight: var(--text-ui-strong-weight); line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden }
.fx-etape .pill { justify-self: start; white-space: nowrap }
.fx-jalon { display: flex; align-items: center; gap: var(--space-1) }
.fx-rond { width: 26px; height: 26px; flex: none; border-radius: var(--radius-pill); background: var(--ligne); color: var(--surface); display: grid; place-items: center; font-family: var(--font-mono); font-size: var(--text-data-sm-size); font-weight: 600 }
.fx-trait-jalon { flex: 1; height: 3px; border-radius: var(--radius-pill); background: color-mix(in srgb, var(--ligne) 40%, var(--surface)) }
.fx-ev.derniere .fx-trait-jalon { visibility: hidden }
.fx-ev.ecart .fx-rond { box-shadow: 0 0 0 3px var(--surface), 0 0 0 5px var(--state-warn) }
.fx-ev.manque .fx-rond { background: var(--state-crit-bg); color: var(--state-crit); border: 2px dashed var(--state-crit) }
.fx-doc { border: 1px solid var(--border); border-radius: var(--radius-field); background: var(--surface); padding: var(--space-2); display: flex; flex-direction: column; gap: var(--space-1); min-width: 0 }
.fx-doc .pill { align-self: flex-start }
.fx-doc-tete { display: flex; align-items: center; gap: var(--space-2) }
.fx-doc-tete svg { width: 16px; height: 16px; flex: none }
.fx-doc-titre { color: var(--ink); font-size: var(--text-ui-caption-size); line-height: var(--text-ui-caption-leading); overflow-wrap: break-word; hyphens: auto }
.fx-doc.pointille { border-style: dashed }
.fx-doc.pointille.warn { border-color: var(--state-warn); background: var(--state-warn-bg) }
.fx-doc.pointille.crit { border-color: var(--state-crit); background: var(--state-crit-bg) }
.fx-doc.autre { background: var(--surface-alt) }

.fx-jours { display: grid; grid-template-columns: 9.5rem repeat(var(--jours), minmax(0, 1fr)); gap: 3px }
.fx-jours > [role=row] { display: contents }
.fx-jours-tete span { text-align: center; color: var(--text-muted); padding-bottom: var(--space-1); font-size: var(--text-ui-label-size) }
.fx-jours-nom { display: flex; align-items: center; gap: var(--space-2); font-size: var(--text-ui-caption-size); color: var(--ink); min-width: 0 }
.fx-jours-nom i { width: 14px; height: 4px; border-radius: var(--radius-pill); background: var(--ligne); flex: none }
.fx-case { height: 24px; border-radius: var(--radius-check); background: var(--surface-alt); display: grid; place-items: center; font-family: var(--font-mono); font-size: var(--text-data-sm-size); color: var(--ink) }
.fx-case[style] { background: color-mix(in srgb, var(--ligne) var(--p), var(--surface-alt)) }
.fx-case.fonce { color: var(--surface) }
.fx-j-court { display: none }

@media (max-width: 760px) {
  .fx-plan { padding: var(--space-2) }
  .fx-svg { display: none }
  .fx-nom { min-width: 0 } .fx-famille > summary { flex-wrap: wrap; row-gap: 0 }
  .fx-famille > summary .cap { order: 3; flex-basis: 100%; padding-left: calc(22px + var(--space-3)) } .fx-chevron { order: 2 }
  .fx-liste { display: flex; flex-direction: column; list-style: none; margin: 0 0 var(--space-3) var(--space-3); padding: 0 0 0 var(--space-2); border-left: 5px solid var(--ligne) }
  .fx-liste li { display: grid; grid-template-columns: auto 1fr auto; gap: var(--space-2); align-items: center; padding: var(--space-1) 0 var(--space-1) var(--space-2); margin-left: calc(-1 * var(--space-2) - 9px) }
  .fx-liste li i { width: 12px; height: 12px; border-radius: var(--radius-pill); background: var(--surface); border: 3px solid var(--ligne); font-style: normal }
  .fx-liste li.geste i { border-radius: 3px; border-style: dashed; border-width: 2px }
  .fx-liste li.jamais { color: var(--text-muted) } .fx-liste li.jamais i { border-style: dotted; border-width: 2px }
  .fx-liste .n { color: var(--text-muted) }
  .fx-plan.avec-trajet .fx-liste li.eteint { opacity: .35 }
  .fx-liste li.sur i { width: 24px; height: 24px; margin-left: -6px; background: var(--ligne); border-color: var(--surface); color: var(--surface); display: grid; place-items: center; font-family: var(--font-mono); font-size: 11px; font-weight: 600 }
  .fx-liste li.sur > :nth-child(2) { color: var(--ink); font-weight: var(--text-ui-strong-weight) }
  .fx-liste li.ecart .n { color: var(--state-warn) }
  .fx-liste li.manque i { border-color: var(--state-crit); border-style: dashed; background: var(--state-crit-bg) } .fx-liste li.manque span { color: var(--state-crit) }
  .fx-jours { grid-template-columns: 5.5rem repeat(var(--jours), minmax(0, 1fr)) } .fx-j-long { display: none } .fx-j-court { display: inline } .fx-jours-nom { font-size: 11px }
  .fx-frise { display: flex; flex-direction: column; padding: var(--space-3); overflow: visible }
  .fx-couloirs { display: none }
  .fx-ev { display: grid; grid-template-columns: 4.5rem 1fr; grid-template-rows: none; border-top: 1px solid var(--border); padding: var(--space-2) 0 }
  .fx-ev > div, .fx-ev > .fx-etape { border-top: 0; padding: var(--space-1) 0 }
  .fx-ev > .fx-quand { grid-row: 1 / span 3 }
  .fx-ev > .fx-docs, .fx-ev > .fx-autres { grid-column: 2 }
  .fx-ev > .fx-autres:empty, .fx-ev > .fx-docs:empty { display: none }
  .fx-etape { grid-template-rows: auto; grid-template-columns: auto 1fr; column-gap: var(--space-2); align-items: center } .fx-etape .pill { grid-column: 2 }
  .fx-nom-etape { -webkit-line-clamp: unset } .fx-trait-jalon { display: none }
}
