/* ── src/css/00-tokens.css ── */
/* Valeurs mesurées sur Things 3 pour Mac en mode clair (28/11/2026). */
:root {
  color-scheme: light;

  /* Surfaces */
  --bg: #ffffff;
  --bg-open: #f9fafc;          /* fond de liste quand une carte est ouverte */
  --sidebar: #f8f8f9;
  --sidebar-line: #f0f2f4;
  --sel: #e1e3e8;              /* ligne sélectionnée de la barre latérale */
  --row-sel: #dbe6fb;          /* tâche sélectionnée */
  --hair: #e7e8ec;             /* filets sous les titres de section */
  --hair-soft: #f0f1f3;
  --hair-list: #ededed;
  --chip: #e7e8ec;
  --field: #f0f1f3;

  /* Texte */
  --ink: #131417;
  --ink-2: #303135;
  --ink-side: #33363b;
  --mute: #84868b;
  --mute-2: #8e929a;
  --faint: #b6b8bd;
  --box: #c1c3c6;

  /* Signaux Things */
  --blue: #3a5ebf;
  --blue-soft: #627ecc;
  --check: #4c8ef5;
  --yellow: #f5d636;
  --yellow-ink: #eac83a;
  --red: #d93c54;
  --red-flag: #e8365d;
  --teal: #5da59d;
  --sand: #c8c082;
  --green: #6dbc65;
  --inbox: #5ba9f4;
  --moon: #7d97cf;
  --tag-bg: #cae0d4;
  --tag-ink: #3f6d53;

  /* Assistant */
  --ai: #2e7cf6;
  --ai-ink: #1f63d8;
  --ai-soft: #eaf2fe;
  --ai-line: #c6dbfb;
  --ai-text: #6c6d72;          /* texte écrit par l'assistant, façon Granola */
  --need: #e8365d;

  /* Popovers sombres */
  --pop: #2a323b;
  --pop-2: #3a424b;
  --pop-ink: #ffffff;
  --pop-mute: #8a919b;
  --pop-sel: #609ff2;

  /* Géométrie */
  --side-w: 240px;
  --panel-w: 372px;
  --col: 640px;
  --row: 28px;
  --r-box: 3px;
  --r-pill: 6px;
  --r-card: 8px;

  /* Mouvement */
  --ease: cubic-bezier(.2, .8, .2, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --t-open: 300ms;
  --t-fast: 140ms;

  --shadow-card: 0 0 0 .5px rgba(0,0,0,.11), 0 1px 4px rgba(0,0,0,.10), 0 4px 12px rgba(0,0,0,.045);
  --shadow-pop: 0 0 0 .5px rgba(0,0,0,.14), 0 8px 28px rgba(0,0,0,.16), 0 2px 6px rgba(0,0,0,.08);
  --shadow-float: 0 0 0 .5px rgba(0,0,0,.10), 0 6px 22px rgba(0,0,0,.10), 0 1px 3px rgba(0,0,0,.06);

  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { height: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 14px/20px var(--font);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow: hidden;
  user-select: none;
  -webkit-user-select: none;
  cursor: default;
}
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: default; }
input, textarea { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }
svg { display: block; flex: none; }
::selection { background: #c7dafc; }
[contenteditable] { outline: none; user-select: text; -webkit-user-select: text; cursor: text; }
[contenteditable]:empty::before { content: attr(data-ph); color: var(--faint); pointer-events: none; }
.sel-text { user-select: text; -webkit-user-select: text; cursor: text; }

/* Barres de défilement discrètes */
.scroll { overflow-y: auto; overflow-x: hidden; scrollbar-width: thin; scrollbar-color: transparent transparent; }
.scroll:hover { scrollbar-color: rgba(0,0,0,.16) transparent; }
.scroll::-webkit-scrollbar { width: 8px; }
.scroll::-webkit-scrollbar-thumb { background: transparent; border-radius: 4px; border: 2px solid transparent; background-clip: content-box; }
.scroll:hover::-webkit-scrollbar-thumb { background-color: rgba(0,0,0,.16); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* ── src/css/10-shell.css ── */
/* Coquille : barre latérale, zone principale, barre du bas */
#app { display: flex; height: 100vh; width: 100vw; background: var(--bg); overflow: hidden; }

/* ───────── Barre latérale ───────── */
.sb {
  width: var(--side-w); flex: none; display: flex; flex-direction: column;
  background: var(--sidebar); border-right: 1px solid var(--sidebar-line);
  transition: margin-left 280ms var(--ease);
  position: relative; z-index: 2;
}
#app.slim .sb { margin-left: calc(-1 * var(--side-w)); }
.sb-top { height: 52px; flex: none; display: flex; align-items: center; padding-left: 19px; gap: 9px; }
.tl { width: 14px; height: 14px; border-radius: 50%; background: #d9dadc; box-shadow: inset 0 0 0 .5px rgba(0,0,0,.08); }
.sb-scroll { flex: 1; min-height: 0; padding: 8px 0 16px; }
.sb-group { padding: 0 13px; margin-bottom: 16px; }
.sb-row {
  display: flex; align-items: center; height: 24px; padding: 0 9px 0 8px; border-radius: var(--r-pill);
  color: var(--ink-side); font-weight: 600; font-size: 14px; line-height: 24px; gap: 6px; position: relative;
}
.sb-row .sb-ico { width: 15px; height: 15px; display: grid; place-items: center; flex: none; }
.sb-row .sb-label { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sb-row.on { background: var(--sel); }
.sb-row.proj { font-weight: 400; }
.sb-row.area { font-weight: 700; }
.sb-row.drop { background: #cfdcf7; }
.sb-count { color: var(--mute-2); font-size: 13px; font-weight: 600; flex: none; }
.sb-badge {
  flex: none; min-width: 20px; height: 15px; padding: 0 5px; border-radius: 8px; background: var(--red-flag); color: #fff;
  font-size: 11px; font-weight: 700; line-height: 15px; text-align: center;
}
.sb-badge.ai { background: var(--ai); }
.sb-space-h {
  display: flex; align-items: center; gap: 5px; width: 100%; height: 22px; padding: 0 21px; margin: 4px 0 6px;
  color: var(--mute-2); font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
}
.sb-space-h svg { transition: transform 200ms var(--ease); opacity: .7; }
.sb-space.closed .sb-space-h svg { transform: rotate(-90deg); }
.sb-space-body { display: grid; grid-template-rows: 1fr; transition: grid-template-rows 260ms var(--ease); }
.sb-space.closed .sb-space-body { grid-template-rows: 0fr; }
.sb-space-body > div { overflow: hidden; min-height: 0; }
.sb-bottom { flex: none; padding: 10px 13px 8px; border-top: 1px solid var(--sidebar-line); }
.sb-foot { height: 40px; flex: none; display: flex; align-items: center; justify-content: space-between; padding: 0 18px 0 22px; border-top: 1px solid var(--sidebar-line); color: #5a5d61; font-size: 13px; }
.sb-foot button { display: flex; align-items: center; gap: 8px; height: 28px; padding: 0 6px; border-radius: 6px; margin: 0 -6px; }
.sb-foot button:active { background: var(--sel); }

/* ───────── Zone principale ───────── */
.main { flex: 1; min-width: 0; display: flex; flex-direction: column; background: var(--bg); position: relative; transition: background-color 260ms ease; }
.main.has-open { background: var(--bg-open); }
/* .main-top : voir .pane-top (47-panes.css) */
.main-top .crumb { color: var(--mute-2); font-size: 13px; font-weight: 600; opacity: 0; transition: opacity 180ms; display: flex; align-items: center; gap: 6px; }

.icon-btn { width: 30px; height: 26px; border-radius: 6px; display: grid; place-items: center; color: #9a9da2; transition: background-color 120ms, color 120ms; }
.icon-btn:hover { color: #5d5e62; }
.icon-btn:active, .icon-btn.on { background: var(--field); color: #5d5e62; }

.col { max-width: calc(var(--col) + 128px); margin: 0 auto; padding: 0 64px 120px; }
.col.wide { max-width: 1120px; }
.view { animation: view-in 180ms ease both; }
@keyframes view-in { from { opacity: 0; transform: translateY(3px); } to { opacity: 1; transform: none; } }

/* En-tête de liste */
.lh { display: flex; align-items: center; gap: 8px; min-height: 28px; margin-top: 18px; }
.lh-ico { width: 22px; height: 22px; flex: none; display: grid; place-items: center; }
.lh-title { font-size: 23px; line-height: 28px; font-weight: 700; letter-spacing: -.01em; color: var(--ink); }
.lh-more { width: 30px; height: 25px; border-radius: 6px; display: grid; place-items: center; color: #95979c; margin-left: 6px; }
.lh-more:active { background: var(--field); }
.lh-sub { margin-top: 9px; color: var(--ink-2); font-size: 14px; line-height: 20px; }
.lh-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; margin-top: 8px; color: var(--mute); font-size: 12px; font-weight: 600; }
.lh-meta span { display: inline-flex; align-items: center; gap: 5px; }

/* Barre de filtres (pilules) */
.filters { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; margin: 26px 0 0; min-height: 20px; }
.pill { height: 20px; padding: 0 10px; border-radius: 10px; font-size: 12px; font-weight: 700; color: #8e9095; line-height: 20px; display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; }
.pill.on { background: #b7b9be; color: #fff; }
.pill.ai.on { background: var(--ai); }
.pill:not(.on):hover { color: #6a6c71; }

/* Segmenté */
.seg { display: inline-flex; background: var(--field); border-radius: 7px; padding: 2px; gap: 2px; }
.seg button { height: 22px; padding: 0 11px; border-radius: 5px; font-size: 12px; font-weight: 600; color: #6f7277; transition: background-color 140ms, color 140ms; }
.seg button.on { background: #fff; color: var(--ink); box-shadow: 0 0 0 .5px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.10); }

/* ───────── Barre du bas ───────── */
.toolbar { height: 52px; flex: none; border-top: 1px solid var(--hair-soft); background: var(--bg); display: flex; align-items: center; justify-content: center; gap: 6px; position: relative; z-index: 3; }
.main.has-open .toolbar { background: var(--bg); }
.tb-btn { width: 44px; height: 28px; border-radius: 6px; display: grid; place-items: center; color: #8c8e91; transition: background-color 120ms; }
.tb-btn:hover { color: #5d5e62; }
.tb-btn:active { background: var(--field); }
.tb-btn[disabled] { color: #cbcdd0; pointer-events: none; }
.ask-pill {
  width: min(420px, 44vw); height: 32px; margin: 0 14px; padding: 0 12px 0 11px; border-radius: 16px;
  background: var(--field); display: flex; align-items: center; gap: 8px; color: #8b8d92; font-size: 13.5px;
  transition: background-color 140ms, box-shadow 140ms;
}
.ask-pill:hover { background: #eaebee; }
.ask-pill .ctx-chip { margin-left: auto; }
.ask-pill kbd, .kbd { font: 600 11px/16px var(--font); color: #a2a5aa; padding: 0 5px; border-radius: 4px; background: rgba(0,0,0,.045); }
.ctx-chip { display: inline-flex; align-items: center; gap: 4px; height: 20px; padding: 0 8px 0 6px; border-radius: 10px; background: #fff; box-shadow: inset 0 0 0 1px var(--hair); color: #5f6168; font-size: 12px; font-weight: 600; max-width: 170px; }
.ctx-chip span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* État vide */
.empty { height: calc(100vh - 320px); min-height: 240px; display: grid; place-items: center; text-align: center; color: var(--faint); }
.empty-in { display: grid; justify-items: center; gap: 14px; max-width: 340px; }
.empty h3 { margin: 0; font-size: 15px; font-weight: 600; color: #9a9da2; }
.empty p { margin: 0; font-size: 13px; line-height: 19px; color: #b0b2b7; font-style: italic; }

/* v6 — En-tête de fil épuré : sous le titre, l'échéance seule, à la manière de Things */
.lh-due { display: flex; align-items: center; gap: 6px; margin-top: 7px; color: var(--mute); font-size: 12.5px; font-weight: 600; }
.lh-due small { font-size: 12.5px; font-weight: 500; color: var(--mute-2); }
.lh-due.soon, .lh-due.soon small { color: var(--red-flag); }

/* v7 — Bas de la barre de gauche : la bibliothèque (ressources, personnes, compétences) repliée sur une ligne */
.sb-lib-c { flex: none; color: #a3a5aa; display: grid; place-items: center; transition: transform 200ms var(--ease); transform: rotate(90deg); }
.sb-lib.closed .sb-lib-c { transform: none; }
.sb-lib-body { display: grid; grid-template-rows: 1fr; transition: grid-template-rows 240ms var(--ease); }
.sb-lib.closed .sb-lib-body { grid-template-rows: 0fr; }
.sb-lib-body > div { overflow: hidden; min-height: 0; }
.sb-row.lib { padding-left: 24px; font-weight: 400; }
.sb-lib:not(.closed) .sb-lib-h .sb-ico { opacity: .55; }

/* v13 — Barre de gauche simplifiée : le fil principal en tête, plus aucune pastille rouge */
.sb-row.fil { font-weight: 700; }
.sb-row.fil .sb-count { font-weight: 600; }

/* Lot I1 : glisser une liste dans la barre latérale */
.sb-row.sb-dragging { opacity: .45; }
.sb-row.drop-before { box-shadow: inset 0 2px 0 var(--blue); }
.sb-row.drop-after { box-shadow: inset 0 -2px 0 var(--blue); }
.sb-row.drop-into { background: #cfdcf7; box-shadow: inset 0 0 0 1px var(--blue); }

/* ── src/css/20-list.css ── */
/* Listes de tâches façon Things : lignes de 28 px, deux verticales (case, titre) */
.tasks { margin-top: 30px; }
.section { margin-top: 31px; }
.section:first-child { margin-top: 0; }

.h-row { display: flex; align-items: center; height: 28px; margin: 31px 0 8px; border-bottom: 1px solid var(--hair); padding-bottom: 6px; color: var(--blue); font-weight: 700; font-size: 14px; gap: 7px; }
.h-row.plain { color: #26272c; }
.h-row.ai { color: var(--ai-ink); border-bottom-color: var(--ai-line); }
.h-row .h-title { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.h-row .h-more { color: var(--blue-soft); width: 26px; height: 22px; display: grid; place-items: center; border-radius: 5px; }
.h-row .h-more:active { background: var(--field); }
.h-row .h-count { color: var(--mute-2); font-size: 12px; font-weight: 600; }
.tasks > .h-row:first-child, .tasks > .tlist:first-child + .h-row.first { margin-top: 0; }

/* ── Tâche ── */
.task { position: relative; }
.task-in {
  position: relative; margin: 0 -12px 0 -14px; padding: 0 12px 0 14px; border-radius: var(--r-card);
  background: transparent; box-shadow: 0 0 0 0 rgba(0,0,0,0);
  transition: margin var(--t-open) var(--ease), padding var(--t-open) var(--ease), background-color 200ms ease, box-shadow var(--t-open) ease;
}
.task-head { display: flex; align-items: center; min-height: var(--row); gap: 0; position: relative; border-radius: 5px; }
.task.sel:not(.open) .task-head::before { content: ""; position: absolute; inset: 1px -8px 1px -8px; background: var(--row-sel); border-radius: 5px; z-index: 0; }
.task-head > * { position: relative; z-index: 1; }

.cb { width: 20px; height: 20px; margin: 0 5px 0 -4px; display: grid; place-items: center; flex: none; border-radius: 5px; }
.cb i { width: 12px; height: 12px; border: 1px solid var(--box); border-radius: var(--r-box); background: #fff; display: grid; place-items: center; transition: background-color 120ms, border-color 120ms, transform 120ms; }
.cb:active i { transform: scale(.88); }
.cb svg { opacity: 0; stroke-dasharray: 12; stroke-dashoffset: 12; transition: stroke-dashoffset 160ms ease-out 40ms, opacity 60ms; }
.task.done .cb i, .cb.on i { background: var(--check); border-color: var(--check); }
.task.done .cb svg, .cb.on svg { opacity: 1; stroke-dashoffset: 0; }
.task.someday .cb i { border-style: dashed; }
.task.proposed .cb i { border: 1px dashed var(--ai); background: var(--ai-soft); }

.when { flex: none; display: inline-flex; align-items: center; margin-right: 6px; }
.when.date { height: 18px; padding: 0 6px; border-radius: 4px; background: var(--chip); color: #5f6168; font-size: 12px; font-weight: 700; line-height: 18px; white-space: nowrap; }
.t-main { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; justify-content: center; }
.t-line { display: flex; align-items: center; min-width: 0; gap: 6px; }
.t-title { font-size: 14px; line-height: 20px; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; transition: color 200ms; }
.task.done .t-title { color: #a9abb0; }
.task.proposed .t-title { color: #55565b; }
.t-ico { display: inline-flex; align-items: center; gap: 4px; color: var(--faint); flex: none; }
.t-sub { font-size: 12px; line-height: 15px; color: var(--mute); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: -1px; padding-bottom: 3px; }
.task.has-sub .task-head { min-height: 38px; }
.tag-o { flex: none; height: 16px; padding: 0 7px; border-radius: 8px; border: 1px solid #c8cacd; color: #a3a5aa; font-size: 11px; font-weight: 600; line-height: 14px; white-space: nowrap; }
.t-right { flex: none; margin-left: 12px; display: inline-flex; align-items: center; gap: 6px; color: #818388; font-size: 12px; font-weight: 700; white-space: nowrap; }
.t-right.due { color: var(--red-flag); }

/* Marques de l'assistant sur une ligne */
.ai-mark { flex: none; display: inline-flex; align-items: center; gap: 4px; height: 16px; padding: 0 7px 0 5px; border-radius: 8px; font-size: 11px; font-weight: 700; line-height: 16px; color: var(--ai-ink); background: var(--ai-soft); white-space: nowrap; }
.ai-mark.need { color: #c8284b; background: #fdecef; }
.ai-mark .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--need); }
.ai-mark .spin { width: 9px; height: 9px; border-radius: 50%; border: 1.5px solid var(--ai-line); border-top-color: var(--ai); animation: spin 900ms linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.row-acts { flex: none; display: inline-flex; align-items: center; gap: 4px; margin-left: 10px; }
.mini { height: 20px; padding: 0 9px; border-radius: 10px; font-size: 12px; font-weight: 600; line-height: 20px; color: #6f7277; background: var(--field); transition: background-color 120ms, transform 120ms; white-space: nowrap; }
.mini:active { transform: scale(.96); }
.mini.ai { background: var(--ai); color: #fff; }
.mini.ghost { background: transparent; box-shadow: inset 0 0 0 1px var(--hair); }
.mini.x { width: 20px; padding: 0; display: grid; place-items: center; background: transparent; color: #a9abb0; }
.mini.x:hover { background: var(--field); }

/* ── Carte ouverte ── */
.task-body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows var(--t-open) var(--ease); }
.task-body > .tb-in { overflow: hidden; min-height: 0; opacity: 0; transition: opacity 180ms ease; }
.task.open { z-index: 2; }
.task.open .task-in { margin-top: 27px; margin-bottom: 28px; padding-top: 12px; padding-bottom: 0; background: #fff; box-shadow: var(--shadow-card); }
.task.open:first-child .task-in { margin-top: 6px; }
.task.open .task-body { grid-template-rows: 1fr; }
.task.open .task-body > .tb-in { opacity: 1; transition: opacity 220ms ease 90ms; }
.task.open .t-title { font-weight: 600; color: #232323; white-space: normal; overflow: visible; }
.task.open .t-ico, .task.open .tag-o, .task.open .t-right, .task.open .when, .task.open .t-sub, .task.open .ai-mark, .task.open .row-acts { display: none; }
.task.open.has-sub .task-head { min-height: var(--row); }
.task.closing .task-body > .tb-in { opacity: 0; transition: opacity 100ms ease; }

.tc { padding: 2px 6px 0 21px; }
.tc-notes { min-height: 40px; padding: 2px 0 10px; color: #2b2b2d; font-size: 14px; line-height: 20px; white-space: pre-wrap; }
.tc-check { margin: 0 0 12px; border-top: 1px solid var(--hair-list); }
.ck { display: flex; align-items: center; gap: 9px; min-height: 28px; border-bottom: 1px solid var(--hair-list); color: #2c2c2e; }
.ck-b { width: 14px; height: 14px; display: grid; place-items: center; flex: none; margin-left: 1px; }
.ck-b i { width: 10px; height: 10px; border-radius: 50%; border: 1.5px solid var(--blue); transition: transform 120ms; }
.ck-b:active i { transform: scale(.85); }
.ck.done { color: #929294; }
.ck.done .ck-b i { border: 0; width: 12px; height: 12px; }
.ck-t { flex: 1; min-width: 0; padding: 4px 0; }
.ck-add { color: var(--faint); }
.tc-links { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 12px; }
.chip { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 9px 0 7px; border-radius: 6px; background: var(--field); color: #45474c; font-size: 12.5px; font-weight: 500; max-width: 100%; transition: background-color 120ms; }
.chip:hover { background: #e7e8ec; }
.chip span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chip.person { border-radius: 12px; padding-left: 3px; }
.av { width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center; font-size: 9px; font-weight: 700; color: #fff; flex: none; letter-spacing: 0; }
.av.lg { width: 44px; height: 44px; font-size: 17px; }
.av.md { width: 26px; height: 26px; font-size: 11px; }
.tc-foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; padding: 2px 0 12px; }
.tc-set { display: flex; flex-direction: column; align-items: flex-start; gap: 7px; min-width: 0; }
.tc-tags { display: flex; flex-wrap: wrap; gap: 5px; }
.tag-f { height: 18px; padding: 0 9px; border-radius: 9px; background: var(--tag-bg); color: var(--tag-ink); font-size: 12px; font-weight: 600; line-height: 18px; }
.tc-when { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: #2a2e2f; height: 22px; border-radius: 5px; padding: 0 6px; margin-left: -6px; }
.tc-when:hover { background: var(--field); }
.tc-when small { font-weight: 400; color: var(--mute); font-size: 13px; }
.tc-btns { display: flex; align-items: center; gap: 2px; flex: none; }
.tc-btns button { width: 28px; height: 24px; border-radius: 5px; display: grid; place-items: center; color: #a7a8aa; }
.tc-btns button:hover { color: #6f7176; }
.tc-btns button:active { background: var(--field); }

/* Bloc de l'assistant dans la carte */
.aib { margin: 0 0 12px; padding: 10px 12px 11px; border-radius: 8px; background: var(--ai-soft); color: #3b3c41; font-size: 13.5px; line-height: 19px; }
.aib.need { background: #fdeef1; }
.aib-h { display: flex; align-items: center; gap: 6px; color: var(--ai-ink); font-size: 12px; font-weight: 700; margin-bottom: 4px; }
.aib.need .aib-h { color: #c8284b; }
.aib-why { color: var(--ai-text); }
.aib ul { margin: 6px 0 0; padding: 0; list-style: none; }
.aib li { position: relative; padding-left: 13px; margin-top: 3px; }
.aib li::before { content: ""; position: absolute; left: 2px; top: 8px; width: 4px; height: 4px; border-radius: 50%; background: #9fc0f5; }
.aib-q { font-weight: 600; color: #2b2b2d; margin-top: 2px; }
.aib-acts { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.btn { height: 26px; padding: 0 12px; border-radius: 6px; font-size: 13px; font-weight: 600; background: #fff; box-shadow: inset 0 0 0 1px rgba(0,0,0,.10); color: #3b3c41; transition: transform 120ms, background-color 120ms; white-space: nowrap; display: inline-flex; align-items: center; gap: 6px; }
.btn:active { transform: scale(.97); }
.btn.ai { background: var(--ai); color: #fff; box-shadow: none; }
.btn.dark { background: #2b2d31; color: #fff; box-shadow: none; }
.btn.quiet { box-shadow: none; background: transparent; color: var(--mute); }
.btn.quiet:hover { background: rgba(0,0,0,.04); }
.aib-in { display: flex; gap: 6px; margin-top: 8px; }
.aib-in input { flex: 1; height: 28px; border-radius: 6px; border: 0; background: #fff; box-shadow: inset 0 0 0 1px rgba(0,0,0,.10); padding: 0 9px; outline: none; font-size: 13px; user-select: text; -webkit-user-select: text; }
.aib-in input:focus { box-shadow: inset 0 0 0 1.5px var(--need); }
.steps { margin-top: 7px; font: 12.5px/19px var(--mono); color: #55565b; }
.steps div { display: flex; gap: 8px; }
.steps .s-done { color: #a3a5aa; }
.steps .s-now { color: var(--ai-ink); }
.cite { display: inline-grid; place-items: center; min-width: 15px; height: 15px; padding: 0 4px; margin-left: 4px; border-radius: 4px; background: rgba(46,124,246,.13); color: var(--ai-ink); font-size: 10px; font-weight: 700; vertical-align: 1px; line-height: 15px; }
.cite:hover { background: rgba(46,124,246,.24); }

/* Sorties et entrées de lignes */
.task.leaving { transition: height 300ms var(--ease), opacity 220ms ease; overflow: hidden; opacity: 0; }
.task.entering { animation: row-in 320ms var(--ease) both; }
@keyframes row-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

/* Projets listés dans une casquette */
.prow { display: flex; align-items: center; min-height: var(--row); gap: 9px; font-weight: 600; color: var(--ink); border-radius: 5px; position: relative; }
.prow .ring { margin-left: -4px; width: 20px; display: grid; place-items: center; }
.prow .p-name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.prow .p-meta { color: var(--mute); font-size: 12px; font-weight: 600; margin-left: auto; padding-left: 12px; white-space: nowrap; display: inline-flex; gap: 6px; align-items: center; }
.prow:active { background: var(--field); box-shadow: 0 0 0 0 transparent; }
.more-link { display: inline-block; margin-top: 34px; color: #8f9196; font-size: 13px; font-weight: 600; }
.more-link:hover { color: #6a6c71; }

/* Contexte tenu par l'assistant, sous le titre */
.ctx { margin-top: 11px; }
.ctx-goal { color: var(--ink-2); }
.ctx-box { margin-top: 12px; border-radius: 8px; padding: 0; }
.ctx-h { display: flex; align-items: center; gap: 6px; color: var(--ai-ink); font-size: 12px; font-weight: 700; height: 22px; }
.ctx-h small { color: var(--mute-2); font-weight: 600; font-size: 12px; }
.ctx-h .ctx-toggle { margin-left: auto; color: var(--mute-2); font-weight: 600; height: 20px; padding: 0 6px; border-radius: 5px; }
.ctx-h .ctx-toggle:hover { background: var(--field); }
.ctx-lines { margin: 3px 0 0; padding: 0; list-style: none; color: var(--ai-text); }
.ctx-lines li { display: flex; gap: 10px; padding: 2px 0; line-height: 20px; }
.ctx-k { flex: none; width: 82px; color: #a2a4a9; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; padding-top: 1px; }
.ctx-more { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 260ms var(--ease); }
.ctx.open .ctx-more { grid-template-rows: 1fr; }
.ctx-more > div { overflow: hidden; min-height: 0; }
.skills-row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 14px; }
.sk-chip { display: inline-flex; align-items: center; gap: 5px; height: 22px; padding: 0 9px 0 6px; border-radius: 11px; box-shadow: inset 0 0 0 1px var(--hair); color: #5f6168; font: 500 12px/22px var(--mono); transition: background-color 120ms; }
.sk-chip:hover { background: var(--field); }
.sk-chip.add { font-family: var(--font); color: var(--mute-2); padding: 0 9px; }

/* Glisser-déposer */
.task.dragging { position: fixed; z-index: 50; pointer-events: none; margin: 0; }
.task.dragging .task-in { background: #fff; box-shadow: 0 0 0 .5px rgba(0,0,0,.12), 0 8px 24px rgba(0,0,0,.16); transform: scale(1.015); transition: transform 140ms var(--ease), box-shadow 140ms; }
.task.dragging .task-head::before { display: none; }
.drag-ph { border-radius: 5px; background: #eef1f6; margin: 0 -8px; }
body.is-dragging, body.is-dragging * { cursor: grabbing !important; }

/* v7 — Lignes de tâches allégées : les petites icônes (note, sous-tâches, lien) et les tags n'apparaissent qu'au survol ou sur la ligne sélectionnée */
.task .t-title ~ .t-ico, .task .tag-o { opacity: 0; transition: opacity 120ms ease; }
.task:hover .t-title ~ .t-ico, .task:hover .tag-o, .task.sel .t-title ~ .t-ico, .task.sel .tag-o { opacity: 1; }

/* Lots I1-I2 : liste qui commence plus tard, liste terminée ou archivée */
.lh-when { border: 0; background: none; padding: 0; cursor: pointer; color: var(--mute); }
.lh-when:hover { color: var(--ink); }
.lh-fini { color: var(--green-ink, #0f6e32); }
.lh-fini .mini { margin-left: 8px; }

/* ── src/css/30-pop.css ── */
/* Popovers, menus, toast, recherche rapide, fenêtres modales */
.pop-layer { position: fixed; z-index: 60; opacity: 0; transform: scale(.96) translateY(-4px); transform-origin: top center; transition: opacity 130ms ease, transform 150ms var(--ease-out); }
.pop-layer.from-below { transform-origin: bottom center; transform: scale(.96) translateY(4px); }
.pop-layer.in { opacity: 1; transform: none; }

/* Popover sombre (Quand, Échéance, Étiquettes, Déplacer) */
.dpop { width: 236px; padding: 8px; border-radius: 10px; background: var(--pop); color: var(--pop-ink); box-shadow: 0 0 0 .5px rgba(0,0,0,.5), 0 10px 30px rgba(0,0,0,.28); font-size: 13.5px; }
.dpop-t { text-align: center; color: var(--pop-mute); font-size: 12px; font-weight: 700; padding: 2px 0 7px; }
.dpop-it { display: flex; align-items: center; gap: 8px; width: 100%; height: 24px; padding: 0 8px; border-radius: 5px; font-weight: 600; color: #fff; }
.dpop-it:hover, .dpop-it.on { background: var(--pop-sel); }
.dpop-it.mute { color: var(--pop-mute); font-weight: 500; margin-top: 2px; }
.dpop-it.mute:hover { color: #fff; }
.dpop-list { max-height: 220px; }
.dpop-in { width: 100%; height: 26px; border: 0; outline: none; border-radius: 6px; background: var(--pop-2); color: #fff; padding: 0 9px; margin-bottom: 6px; font-size: 13px; user-select: text; -webkit-user-select: text; }
.dpop-in::placeholder { color: var(--pop-mute); }
.cal-h { display: flex; align-items: center; justify-content: space-between; padding: 8px 4px 4px; color: var(--pop-mute); font-size: 12px; font-weight: 700; }
.cal-h button { width: 22px; height: 20px; display: grid; place-items: center; border-radius: 4px; color: var(--pop-mute); }
.cal-h button:hover { background: var(--pop-2); color: #fff; }
.cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 1px 0; padding-bottom: 6px; }
.cal i { font-style: normal; text-align: center; color: var(--pop-mute); font-size: 10.5px; font-weight: 700; height: 20px; line-height: 20px; text-transform: capitalize; }
.cal button { height: 24px; border-radius: 5px; color: #fff; font-size: 13px; font-weight: 700; display: grid; place-items: center; }
.cal button.out { color: #5f6770; }
.cal button.past { color: #6d757e; }
.cal button:hover, .cal button.on { background: var(--pop-sel); color: #fff; }

/* Menu clair */
.menu { min-width: 210px; padding: 5px; border-radius: 9px; background: rgba(255,255,255,.96); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); box-shadow: var(--shadow-pop); font-size: 13.5px; }
.menu-it { display: flex; align-items: center; gap: 9px; width: 100%; height: 26px; padding: 0 9px; border-radius: 5px; color: var(--ink-2); text-align: left; white-space: nowrap; }
.menu-it span:first-of-type { flex: 1; }
.menu-it:hover { background: var(--check); color: #fff; }
.menu-it:hover .kbd { color: rgba(255,255,255,.8); background: transparent; }
.menu-it.on { font-weight: 600; }
.menu-ico { width: 16px; display: grid; place-items: center; flex: none !important; color: #8c8e91; }
.menu-it:hover .menu-ico { color: #fff; }
.menu-sep { height: 1px; background: var(--hair); margin: 5px 9px; }

/* Toast */
.toast { position: fixed; left: 50%; bottom: 72px; z-index: 90; transform: translate(-50%, 8px); opacity: 0; padding: 7px 14px; border-radius: 9px; background: var(--pop); color: #fff; font-size: 13px; font-weight: 500; box-shadow: 0 6px 22px rgba(0,0,0,.22); transition: opacity 200ms ease, transform 240ms var(--ease-out); pointer-events: none; max-width: 80vw; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.toast.in { opacity: 1; transform: translate(-50%, 0); }

/* Recherche rapide */
.qf-back { position: fixed; inset: 0; z-index: 70; background: rgba(20,22,26,.10); opacity: 0; transition: opacity 140ms ease; }
.qf-back.in { opacity: 1; }
.qf { position: fixed; z-index: 71; top: 92px; left: 50%; width: min(560px, 90vw); transform: translateX(-50%) scale(.97); opacity: 0; border-radius: 12px; background: #f4f5f7; box-shadow: var(--shadow-pop); padding: 8px; transition: opacity 140ms ease, transform 170ms var(--ease-out); }
.qf.in { opacity: 1; transform: translateX(-50%); }
.qf-in { display: flex; align-items: center; gap: 8px; height: 32px; padding: 0 10px; border-radius: 7px; background: #e1e2e6; color: #6f7277; }
.qf-in input { flex: 1; border: 0; outline: none; background: transparent; font-size: 15px; user-select: text; -webkit-user-select: text; }
.qf-res { max-height: min(440px, 60vh); margin-top: 6px; }
.qf-g { padding: 8px 10px 3px; color: var(--mute-2); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; }
.qf-it { display: flex; align-items: center; gap: 9px; width: 100%; height: 28px; padding: 0 10px; border-radius: 6px; text-align: left; }
.qf-it .qf-l { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 500; }
.qf-it .qf-s { color: var(--mute); font-size: 12px; flex: none; max-width: 40%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.qf-it.on { background: #c9dbf8; }
.qf-ico { width: 16px; display: grid; place-items: center; flex: none; }
.qf-empty { padding: 22px; text-align: center; color: var(--mute-2); font-size: 13px; }

/* Fenêtre modale (Réglages) */
.modal-back { position: fixed; inset: 0; z-index: 80; background: rgba(20,22,26,.22); display: grid; place-items: center; opacity: 0; transition: opacity 180ms ease; }
.modal-back.in { opacity: 1; }
.modal { width: min(660px, 92vw); height: min(520px, 86vh); border-radius: 12px; background: #fff; box-shadow: 0 0 0 .5px rgba(0,0,0,.2), 0 24px 70px rgba(0,0,0,.30); display: flex; flex-direction: column; overflow: hidden; transform: scale(.96) translateY(8px); transition: transform 240ms var(--ease-out); }
.modal-back.in .modal { transform: none; }
.modal-tabs { flex: none; display: flex; justify-content: center; gap: 2px; padding: 12px 12px 10px; background: #f6f6f7; border-bottom: 1px solid var(--hair); position: relative; }
.modal-tabs .tl-row { position: absolute; left: 14px; top: 16px; display: flex; gap: 8px; }
.modal-tabs .tl-row i { width: 12px; height: 12px; border-radius: 50%; background: #d9dadc; }
.modal-tabs .tl-row i:first-child { background: #ee6a5f; }
.modal-tab { display: grid; justify-items: center; gap: 3px; min-width: 76px; padding: 6px 8px 5px; border-radius: 7px; color: #6f7277; font-size: 11.5px; font-weight: 500; }
.modal-tab.on { background: #e6e7ea; color: var(--ink); }
.modal-body { flex: 1; min-height: 0; padding: 22px 34px 28px; }
.set-row { display: flex; align-items: flex-start; gap: 18px; padding: 9px 0; }
.set-row > label { width: 170px; flex: none; text-align: right; color: var(--ink-2); font-size: 13px; padding-top: 2px; }
.set-row > div { flex: 1; min-width: 0; font-size: 13px; color: var(--ink-2); }
.set-row small { display: block; color: var(--mute); font-size: 12px; line-height: 17px; margin-top: 3px; }
.set-h { font-size: 12px; font-weight: 700; color: var(--mute-2); text-transform: uppercase; letter-spacing: .05em; margin: 16px 0 4px; padding-bottom: 6px; border-bottom: 1px solid var(--hair); }
.set-h:first-child { margin-top: 0; }
.sw { width: 34px; height: 20px; border-radius: 10px; background: #d7d9dd; position: relative; transition: background-color 180ms; flex: none; vertical-align: middle; }
.sw::after { content: ""; position: absolute; left: 2px; top: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.25); transition: transform 220ms var(--ease-out); }
.sw.on { background: var(--check); }
.sw.on::after { transform: translateX(14px); }
.conn { display: flex; align-items: center; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--hair-soft); font-size: 13px; }
.conn-ico { width: 28px; height: 28px; border-radius: 7px; display: grid; place-items: center; background: var(--field); flex: none; font-weight: 700; font-size: 12px; color: #55575c; }
.conn b { font-weight: 600; display: block; }
.conn small { color: var(--mute); }
.conn .btn { margin-left: auto; }
.sb-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--ai); flex: none; opacity: .75; }

/* Lots I1-I2 : avis avec « Annuler », confirmation sur place, choix d'icône, heure et durée, listes filtrées */
.toast.has-act { display: flex; align-items: center; gap: 12px; pointer-events: auto; padding-right: 6px; }
.toast-act { color: #fff; font-weight: 700; padding: 3px 9px; border-radius: 6px; background: rgba(255,255,255,.14); font-size: 12.5px; }
.toast-act:hover { background: rgba(255,255,255,.24); }
.confirm-pop { padding: 12px; }
.cf-msg { margin: 0 0 12px; font-size: 13px; line-height: 19px; color: var(--ink); white-space: normal; }
.cf-acts { display: flex; justify-content: flex-end; gap: 8px; }
.btn.danger { background: var(--red); color: #fff; box-shadow: none; }
.li-cols { display: flex; gap: 6px; padding: 2px 4px 8px; }
.li-col { width: 20px; height: 20px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0,0,0,.12); }
.li-col.on { box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--ink); }
.li-grid { display: grid; grid-template-columns: repeat(8, 1fr); gap: 2px; max-height: 210px; overflow: auto; }
.li-g { height: 28px; border-radius: 6px; display: flex; align-items: center; justify-content: center; }
.li-g:hover { background: var(--field); }
.li-g.on { background: var(--sel); box-shadow: inset 0 0 0 1px var(--hair); }
.dpop-row { display: flex; align-items: center; gap: 8px; padding: 2px 4px 6px; font-size: 13px; font-weight: 600; }
.dpop-row .dpop-in { margin: 0; flex: 1; }
.dpop-n { max-width: 70px; }
.dpop-durs { display: flex; flex-wrap: wrap; gap: 4px; padding: 0 4px 6px; }
.dpop-dur { padding: 3px 8px; border-radius: 6px; font-size: 12.5px; font-weight: 600; background: var(--field); }
.dpop-dur.on { background: var(--ink); color: #fff; }
.dpop-empty { padding: 8px; color: var(--mute); font-size: 12.5px; }
.tb-multi { font-size: 12.5px; font-weight: 600; color: var(--mute); margin-left: 4px; white-space: nowrap; }

/* ── src/css/36-editor.css ── */
/* v13 — L'éditeur de notes : blocs, poignée de marge, barre et bulle de formatage, menu d'insertion.
   Cette feuille passe avant 40-panel.css et 96-theme.css : ses sélecteurs sont volontairement plus précis que les leurs.
   Couleurs : uniquement les jetons communs aux trois apparences (--ai, --field, --hair, --sel, --ink…), avec repli pour ceux que seul le thème définit. */

/* ───────── La page : une gouttière à gauche pour la poignée, le texte ne bouge pas quand elle apparaît ───────── */
.ws .drawer .pane.note .reader > .r-in.ed-in {
  --ed-pl: 56px; --ed-pr: 48px;
  position: relative; max-width: 748px; padding-left: var(--ed-pl); padding-right: var(--ed-pr);
}
.ws .drawer .pane.note.ed-w2 .reader > .r-in.ed-in { --ed-pl: 50px; --ed-pr: 22px; }
.ws .drawer .pane.note.ed-w1 .reader > .r-in.ed-in { --ed-pl: 48px; --ed-pr: 16px; }
.pane.note .reader h2[data-note-title] { margin: 10px 0 6px; font-size: 25px; line-height: 31px; letter-spacing: -.02em; }
.pane.note.ed-w1 .reader h2[data-note-title] { font-size: 22px; line-height: 28px; }

/* ───────── Le corps ───────── */
.r-body.ed-body {
  margin-top: 0; min-height: 180px; padding-bottom: 28px;
  font-size: 15px; line-height: 24px; white-space: pre-wrap; overflow-wrap: break-word; word-break: normal;
  caret-color: var(--ai); font-variant-numeric: normal;
}
.r-body.ed-body > * { position: relative; }
.r-body.ed-body > :first-child { margin-top: 0; }
.r-body.ed-body > p { margin: 0 0 9px; }
.r-body.ed-body > h1, .r-body.ed-body > h2, .r-body.ed-body > h3 { color: var(--ink); font-weight: 700; }
.r-body.ed-body > h1 { margin: 30px 0 8px; font-size: 21px; line-height: 28px; letter-spacing: -.018em; }
.r-body.ed-body > h2 { margin: 26px 0 6px; font-size: 17.5px; line-height: 25px; letter-spacing: -.012em; }
.r-body.ed-body > h3 { margin: 20px 0 4px; font-size: 15px; line-height: 24px; letter-spacing: 0; }
.r-body.ed-body > h1 + h2, .r-body.ed-body > h2 + h3, .r-body.ed-body > h1 + h3 { margin-top: 10px; }

/* Listes : chaque élément est un bloc ; le retrait vient de data-in, la marque d'un pseudo-élément */
.r-body.ed-body > .ed-li { --in: 0; margin: 0 0 3px; padding-left: calc(26px + var(--in) * 24px); }
.r-body.ed-body > .ed-li[data-in="1"] { --in: 1; }
.r-body.ed-body > .ed-li[data-in="2"] { --in: 2; }
.r-body.ed-body > .ed-li[data-in="3"] { --in: 3; }
.r-body.ed-body > .ed-li[data-in="4"] { --in: 4; }
.r-body.ed-body > .ed-li[data-in="5"] { --in: 5; }
.r-body.ed-body > .ed-li::before { position: absolute; left: calc(var(--in) * 24px); top: 0; width: 20px; text-align: center; color: var(--mute-2); user-select: none; -webkit-user-select: none; }
.r-body.ed-body > .ed-li[data-k="ul"]::before { content: "•"; font-size: 17px; line-height: 23px; }
.r-body.ed-body > .ed-li[data-k="ul"][data-in="1"]::before, .r-body.ed-body > .ed-li[data-k="ul"][data-in="4"]::before { content: "◦"; }
.r-body.ed-body > .ed-li[data-k="ul"][data-in="2"]::before, .r-body.ed-body > .ed-li[data-k="ul"][data-in="5"]::before { content: "▪"; font-size: 11px; }
.r-body.ed-body > .ed-li[data-k="ol"]::before { content: attr(data-n) "."; left: calc(var(--in) * 24px - 8px); width: 28px; text-align: right; font-size: 14px; font-variant-numeric: tabular-nums; }
.r-body.ed-body > .ed-li[data-k="todo"]::before {
  content: ""; left: calc(var(--in) * 24px + 2px); top: 4.5px; width: 15px; height: 15px; box-sizing: border-box;
  border: 1.5px solid var(--box); border-radius: var(--r-box, 3px); background: var(--bg); cursor: pointer;
}
.r-body.ed-body > .ed-li[data-k="todo"]:hover::before { border-color: var(--ink-2); }
.r-body.ed-body > .ed-li[data-k="todo"][data-done]::before {
  border-color: var(--check); background: var(--check) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10'%3E%3Cpath d='M2 5.3l2.1 2.1L8 2.9' fill='none' stroke='%23fff' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 10px no-repeat;
}
.r-body.ed-body > .ed-li[data-k="todo"][data-done] { color: var(--mute-2); }
.r-body.ed-body > .ed-li + :not(.ed-li) { margin-top: 12px; }
.r-body.ed-body > p + .ed-li { margin-top: -3px; }

.pane.note .r-body.ed-body > blockquote { margin: 4px 0 12px; padding: 1px 0 1px 15px; border-left: 3px solid var(--box); }
.r-body.ed-body > blockquote cite { margin-top: 2px; }
.r-body.ed-body > pre.ed-code {
  margin: 4px 0 12px; padding: 11px 14px; border-radius: var(--r-pill, 6px); background: var(--field); color: var(--ink-2);
  font: 13px/20px var(--mono); white-space: pre-wrap; overflow-wrap: anywhere; tab-size: 2;
}
.r-body.ed-body > hr {
  height: 21px; margin: 4px 0; border: 0; border-radius: 4px; cursor: default; user-select: none; -webkit-user-select: none;
  background: linear-gradient(var(--hair), var(--hair)) center / 100% 1px no-repeat;
}
.r-body.ed-body > .ed-callout {
  margin: 4px 0 12px; padding: 10px 14px; border-radius: var(--r-pill, 6px); color: var(--ink);
  background: var(--q-yellow-soft, #fdf3c4); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--q-yellow-edge, #b38600) 28%, transparent);
}
.r-body.ed-body > .ed-table { margin: 6px 0 14px; overflow-x: auto; scrollbar-width: thin; }
.r-body.ed-body > .ed-table table { min-width: 100%; border-collapse: collapse; font-size: 14px; line-height: 21px; }
.r-body.ed-body > .ed-table th, .r-body.ed-body > .ed-table td { min-width: 72px; padding: 6px 10px; border: 1px solid var(--hair); text-align: left; vertical-align: top; font-weight: 400; }
.r-body.ed-body > .ed-table th { background: var(--sidebar); color: var(--ink); font-weight: 600; }
.r-body.ed-body > .r-turn { margin: 0 0 13px; }
.r-body.ed-body > .r-turn > div { user-select: none; -webkit-user-select: none; white-space: nowrap; }

/* Le texte écrit par l'assistant garde sa teinte et son filet ; le filet se serre contre le texte pour laisser la marge à la poignée */
.r-body.ed-body > p.mark::before { left: -8px; top: 4px; bottom: 4px; }

/* Formats en ligne */
.r-body.ed-body b, .r-body.ed-body strong { font-weight: 650; color: var(--ink); }
.r-body.ed-body .ai b, .r-body.ed-body .ai strong { color: inherit; }
.r-body.ed-body s, .r-body.ed-body strike, .r-body.ed-body del { color: var(--mute-2); }
.r-body.ed-body :not(pre) > code, .r-body.ed-body > :not(pre) code {
  padding: 1.5px 5px; border-radius: 4px; background: var(--field); box-shadow: inset 0 0 0 1px var(--hair-soft);
  font: .875em/1.4 var(--mono); color: var(--ink-2); white-space: pre-wrap; overflow-wrap: anywhere;
}
.r-body.ed-body mark { padding: 2px 1px; margin: 0 -1px; border-radius: 2px; background: var(--q-yellow-soft, #fbeaa0); color: inherit; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.r-body.ed-body a[href] { color: var(--ai-ink); text-decoration: underline; text-decoration-color: var(--ai-line); text-decoration-thickness: 1.5px; text-underline-offset: 3px; cursor: pointer; }
.r-body.ed-body a[href]:hover { text-decoration-color: currentColor; }
.r-body.ed-body .mn { cursor: pointer; white-space: nowrap; vertical-align: middle; position: relative; top: -1px; }
.r-body.ed-body .mn:hover { background: var(--sel); }
.r-body.ed-body .mn .av { line-height: 1; }
.r-body.ed-body .cite { cursor: pointer; }
::highlight(ed-linking) { background-color: #c6dbfb; }

/* L'indication du bloc vide : flottante et sans hauteur, pour que le curseur reste à gauche */
.r-body.ed-body > .ed-ph::before { float: left; height: 0; pointer-events: none; color: var(--faint); font-weight: 400; letter-spacing: 0; }
.r-body.ed-body > p.ed-ph::before { content: "Écris, ou tape / pour insérer"; }
.r-body.ed-body > h1.ed-ph::before { content: "Titre 1"; font-weight: 700; }
.r-body.ed-body > h2.ed-ph::before { content: "Titre 2"; font-weight: 700; }
.r-body.ed-body > h3.ed-ph::before { content: "Titre 3"; font-weight: 700; }

/* Bloc désigné (menu de la poignée, séparateur sélectionné) et bloc qu'on déplace */
.r-body.ed-body > .ed-sel { border-radius: 4px; box-shadow: 0 0 0 4px var(--ai-soft); background-color: var(--ai-soft); }
.r-body.ed-body > hr.ed-sel { background: linear-gradient(var(--ai), var(--ai)) center / 100% 2px no-repeat var(--ai-soft); }
.r-body.ed-body > .ed-drag { opacity: .32; }
.ed-drop { position: absolute; left: var(--ed-pl); right: var(--ed-pr); height: 2px; border-radius: 1px; background: var(--ai); pointer-events: none; z-index: 2; }
body.ed-dragging, body.ed-dragging * { cursor: grabbing !important; user-select: none !important; -webkit-user-select: none !important; }

/* Le compteur de mots */
.ed-foot { min-height: 16px; margin-top: 4px; color: var(--mute-2); font-size: 12px; line-height: 16px; font-variant-numeric: tabular-nums; user-select: none; -webkit-user-select: none; cursor: default; }
.ed-foot:empty { display: none; }

/* ───────── La poignée de marge : « + » puis la prise à six points ───────── */
.ed-gut {
  position: absolute; left: 0; top: 0; z-index: 2; width: calc(var(--ed-pl) - 11px); height: 22px;
  display: flex; justify-content: flex-end; gap: 1px; opacity: 0; pointer-events: none; transition: opacity 120ms ease;
  user-select: none; -webkit-user-select: none;
}
.ed-gut.ed-show { opacity: 1; pointer-events: auto; }
.ed-gb { width: 18px; height: 22px; border-radius: 4px; display: grid; place-items: center; color: var(--deco, #b6b8bd); cursor: pointer; transition: background-color 100ms, color 100ms; }
.ed-gb:hover { background: var(--field); color: var(--ink-2); }
.ed-grip { cursor: grab; touch-action: none; }

/* ───────── La barre de formatage : collée en haut de l'onglet, visible seulement quand on écrit ───────── */
.ed-bar {
  position: sticky; top: 0; z-index: 3; height: 34px; margin: 6px calc(-1 * var(--ed-pr)) 4px calc(-1 * var(--ed-pl)); padding: 0 calc(var(--ed-pr) - 8px) 0 calc(var(--ed-pl) - 8px);
  display: flex; align-items: center; background: var(--bg); opacity: 0; pointer-events: none; transition: opacity 140ms ease;
  user-select: none; -webkit-user-select: none; cursor: default;
}
.pane.note.ed-on .ed-bar { opacity: 1; pointer-events: auto; }
.ed-bar.ed-stuck { box-shadow: 0 1px 0 var(--hair-soft); }
.ed-bar-in { display: flex; align-items: center; gap: 1px; min-width: 0; overflow-x: auto; scrollbar-width: none; }
.ed-bar-in::-webkit-scrollbar { display: none; }
.ed-b { flex: none; min-width: 27px; height: 26px; padding: 0 5px; border-radius: var(--r-pill, 6px); display: inline-flex; align-items: center; justify-content: center; gap: 4px; color: var(--mute); cursor: pointer; transition: background-color 100ms, color 100ms; }
.ed-b:hover { background: var(--field); color: var(--ink); }
.ed-b.on { background: var(--sel); color: var(--ink); }
.ed-b svg { pointer-events: none; }
.ed-style { padding: 0 6px 0 8px; font-size: 13px; font-weight: 600; color: var(--ink-2); }
.ed-style-l { white-space: nowrap; }
.ed-style svg { opacity: .6; }
.ed-sep { flex: none; width: 1px; height: 14px; margin: 0 5px; background: var(--hair); }
.ed-gl { font: 600 13.5px/1 var(--font); font-style: normal; pointer-events: none; }
.ed-gl-b { font-weight: 800; }
.ed-gl-i { font: italic 500 15px/1 Georgia, "Times New Roman", serif; }
.ed-gl-s { text-decoration: line-through; }
.ed-gl-m { padding: 2px 3px; border-radius: 2px; background: var(--q-yellow-soft, #fbeaa0); color: var(--ink); font-size: 12.5px; }
.ed-gl-h { font-size: 11.5px; font-weight: 700; letter-spacing: -.02em; }
.ed-bar .ed-m { display: none; }
.pane.note.ed-w2 .ed-bar [data-ed="ol"] { display: none; }
.pane.note.ed-w1 .ed-bar :is([data-ed="ol"], [data-ed="quote"], [data-ed="code"], .ed-s2) { display: none; }
.pane.note.ed-w1 .ed-sep, .pane.note.ed-w2 .ed-sep { margin: 0 3px; }

/* ───────── La bulle de sélection ───────── */
.ed-bub {
  position: fixed; z-index: 59; left: 0; top: 0; display: flex; align-items: center; gap: 1px; padding: 3px; border-radius: var(--r-card, 8px);
  background: var(--bg); box-shadow: var(--shadow-pop); opacity: 0; pointer-events: none; transform: translateY(3px) scale(.98);
  transition: opacity 110ms ease, transform 130ms var(--ease-out); user-select: none; -webkit-user-select: none; cursor: default;
}
.ed-bub.ed-show { opacity: 1; pointer-events: auto; transform: none; }
.ed-bub .ed-sep { margin: 0 4px; }

/* ───────── Le menu ───────── */
.ed-menu {
  position: fixed; z-index: 61; left: 0; top: 0; width: 264px; max-width: calc(100vw - 16px); max-height: 428px; padding: 5px;
  border-radius: var(--r-card, 8px); background: var(--bg); box-shadow: var(--shadow-pop); font-size: 13.5px; line-height: 18px;
  user-select: none; -webkit-user-select: none; cursor: default; animation: ed-pop 120ms var(--ease-out) both;
}
.ed-menu.ed-menu-mn { width: 316px; }
@keyframes ed-pop { from { opacity: 0; transform: translateY(-3px); } to { opacity: 1; transform: none; } }
.ed-it { display: flex; align-items: center; gap: 9px; width: 100%; height: 28px; padding: 0 8px 0 7px; border-radius: var(--r-pill, 6px); color: var(--ink-2); text-align: left; cursor: pointer; }
.ed-it.ed-act { background: var(--sel); color: var(--ink); }
.ed-it-i { flex: none; width: 20px; display: grid; place-items: center; color: var(--icon, #8c8e91); }
.ed-it.ed-act .ed-it-i { color: var(--ink-2); }
.ed-it-i .av { width: 16px; height: 16px; font-size: 8px; }
.ed-it-l { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 500; }
.ed-it-s { flex: none; max-width: 42%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--mute-2); font-size: 12px; }
.ed-it-h { flex: none; color: var(--mute-2); font: 12px/1 var(--mono); letter-spacing: .02em; }
.ed-it-h.ed-it-k { font: 500 12px/1 var(--font); letter-spacing: .04em; }
.ed-it-c { flex: none; color: var(--ink-2); }
.ed-menu-g { padding: 8px 8px 3px; color: var(--mute-2); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; }
.ed-menu-g:first-child { padding-top: 4px; }
.ed-menu-sep { height: 1px; margin: 5px 8px; background: var(--hair-soft); }
.ed-menu-0 { padding: 12px 10px; color: var(--mute-2); font-size: 13px; }

/* ───────── Le lien ───────── */
.ed-link {
  position: fixed; z-index: 61; left: 0; top: 0; display: flex; align-items: center; gap: 2px; width: 320px; max-width: calc(100vw - 16px); height: 36px; padding: 0 5px 0 10px;
  border-radius: var(--r-card, 8px); background: var(--bg); box-shadow: var(--shadow-pop); animation: ed-pop 120ms var(--ease-out) both;
}
.ed-link-i { flex: none; color: var(--icon, #8c8e91); }
.ed-link-in { flex: 1; min-width: 0; height: 28px; margin-left: 6px; border: 0; outline: none; background: transparent; font-size: 13.5px; color: var(--ink); user-select: text; -webkit-user-select: text; }
.ed-link-in::placeholder { color: var(--faint); }
.ed-link button { flex: none; width: 28px; height: 26px; border-radius: var(--r-pill, 6px); display: grid; place-items: center; color: var(--icon, #8c8e91); cursor: pointer; }
.ed-link button:hover { background: var(--field); color: var(--ink); }

/* ───────── Téléphone : la barre passe au-dessus du clavier, pas de bulle, une seule prise dans la marge ───────── */
@media (max-width: 760px) {
  .ws .drawer .pane.note .reader > .r-in.ed-in,
  .ws .drawer .pane.note.ed-w1 .reader > .r-in.ed-in,
  .ws .drawer .pane.note.ed-w2 .reader > .r-in.ed-in { --ed-pl: 30px; --ed-pr: 16px; padding: 4px var(--ed-pr) 132px var(--ed-pl); max-width: none; }
  /* 90-mobile.css grossit tout [contenteditable] à 16 px : les puces, renvois et en-têtes non éditables gardent leur taille */
  .r-body.ed-body .mn[contenteditable] { font-size: 14px !important; }
  .r-body.ed-body .cite[contenteditable] { font-size: 10.5px !important; }
  .r-body.ed-body blockquote cite[contenteditable], .r-body.ed-body > .r-turn > div[contenteditable] { font-size: 13px !important; }
  .pane.note .reader h2[data-note-title], .pane.note.ed-w1 .reader h2[data-note-title] { font-size: 24px !important; line-height: 30px; }
  .r-body.ed-body { margin-top: 18px; line-height: 25px; }
  .r-body.ed-body > h1 { font-size: 22px; line-height: 29px; }
  .r-body.ed-body > h2 { font-size: 19px; line-height: 26px; }
  .r-body.ed-body > h3 { font-size: 16.5px; line-height: 25px; }
  .r-body.ed-body > pre.ed-code { font-size: 14px; line-height: 21px; }
  .r-body.ed-body > .ed-table table { font-size: 15px; }
  .ed-gut { width: calc(var(--ed-pl) - 5px); height: 26px; }
  .ed-gut [data-gut="plus"] { display: none; }
  .ed-gb { width: 22px; height: 26px; }
  .r-body.ed-body > p.mark::before { left: -6px; }
  .ed-bar, .pane.note.ed-w1 .ed-bar {
    position: fixed; left: 0; right: 0; top: auto; bottom: var(--ed-kb, 0px); z-index: 8; height: calc(48px + env(safe-area-inset-bottom)); margin: 0; padding: 0 4px env(safe-area-inset-bottom);
    box-shadow: 0 -1px 0 var(--hair); transform: translateY(104%); transition: transform 200ms var(--ease), opacity 120ms ease;
  }
  .pane.note.ed-on .ed-bar { transform: none; }
  .ed-bar-in { width: 100%; gap: 1px; }
  .ed-bar.ed-more .ed-bar-in { -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 34px), transparent); mask-image: linear-gradient(to right, #000 calc(100% - 34px), transparent); }
  .pane.note .ed-bar .ed-b[data-ed] { display: inline-flex; }
  .pane.note .ed-bar i.ed-sep { display: block; }
  .ed-b { min-width: 40px; height: 40px; }
  .ed-b:hover:not(.on) { background: transparent; color: var(--mute); }      /* au doigt, pas de survol qui reste collé après un appui */
  .ed-style { font-size: 15px; padding: 0 6px 0 10px; }
  .pane.note .ed-sep { margin: 0 3px; height: 18px; }
  .ed-menu { width: min(300px, calc(100vw - 16px)); font-size: 16px; }
  .ed-it { height: 40px; }
  .ed-link { height: 44px; }
  .ed-link-in { font-size: 16px; }
}

/* ───────── Lot I3 : pièces jointes, citations de bloc, conflit, versions, rétroliens ───────── */
.mn.ed-pj { cursor: pointer; }
.mn.ed-img { display: inline-block; height: auto; max-width: 100%; padding: 0; margin: 4px 0; background: none; border-radius: 6px; vertical-align: top; top: 0; }
.mn.ed-img img { display: block; max-width: 100%; max-height: 520px; border-radius: 6px; }
.mn.mn-wiki { background: transparent; box-shadow: inset 0 0 0 1px #d9dceb; color: #4a5797; font-weight: 500; }
.mn.mn-cite { box-shadow: inset 2px 0 0 #8e9bd6; }
.r-body.ed-body > .ed-flash { background: var(--ai-soft); transition: background 1.2s ease; border-radius: 4px; }
.ed-apercu { position: fixed; z-index: 60; width: 330px; max-height: 260px; overflow: hidden; padding: 9px 12px 10px; border-radius: 9px; background: var(--bg, #fff); box-shadow: 0 6px 24px rgba(20, 24, 40, .14), 0 0 0 1px var(--hair); font-size: 13px; line-height: 1.45; opacity: 0; pointer-events: none; transition: opacity 120ms ease; }
.ed-apercu.ed-show { opacity: 1; }
.ed-ap-t { display: flex; align-items: center; gap: 6px; margin-bottom: 4px; color: var(--mute-2); font-size: 11.5px; font-weight: 600; }
.ed-ap-b > * { margin: 0 0 4px; }
.ed-ap-b .mn { font-size: 12px; height: 18px; }
.ed-ap-0 { color: var(--mute-2); }
.ed-conflit, .ed-ia, .ed-hist { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 4px 0 10px; padding: 6px 10px; border-radius: 8px; background: var(--field); color: var(--mute); font-size: 12.5px; user-select: none; -webkit-user-select: none; }
.ed-conflit span, .ed-ia > span:first-of-type { margin-right: 4px; }
.ed-cf-b, .ed-ia button, .ed-hv button { padding: 2px 7px; border-radius: 6px; color: var(--ink, #222); font-weight: 600; font-size: 12.5px; }
.ed-cf-b:hover, .ed-ia button:hover, .ed-hv button:hover { background: rgba(0, 0, 0, .05); }
.ed-ia { background: var(--ai-soft); color: var(--ai-ink); }
.ed-ia svg { flex: none; }
.ed-ia-sep { opacity: .5; }
.ed-ia { flex-wrap: nowrap; }
.ed-ia:has(.ed-ia-d:not(:empty)) { flex-wrap: wrap; }
.ed-ia button { white-space: nowrap; }
.ed-ia > span:first-of-type { flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ed-ia .ed-ia-x, .ed-hist .ed-ia-x { margin-left: auto; padding: 2px 4px; color: inherit; opacity: .6; }
.ed-ia-d { flex-basis: 100%; max-height: 300px; overflow: auto; }
.ed-ia-d:empty { display: none; }
.ed-df { padding: 1px 6px; border-radius: 4px; white-space: pre-wrap; font-size: 12.5px; color: var(--ink, #222); user-select: text; -webkit-user-select: text; }
.ed-df-a { background: #e7f6ea; }
.ed-df-r { background: #fbeaea; text-decoration: line-through; text-decoration-color: rgba(0, 0, 0, .25); }
.ed-df-0 { color: var(--mute-2); }
.ed-hist { display: block; }
.ed-hist-h { display: flex; align-items: center; font-weight: 600; color: var(--ink, #222); margin-bottom: 4px; }
.ed-hv { padding: 3px 0; border-top: 1px solid var(--hair); }
.ed-hv-r { display: flex; align-items: center; gap: 8px; }
.ed-hv-r b { font-weight: 600; color: var(--ink, #222); font-variant-numeric: tabular-nums; }
.ed-hv-r span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.r-back { margin-top: 30px; padding-top: 6px; border-top: 1px solid var(--hair); user-select: none; -webkit-user-select: none; }
.r-back:not([hidden]) + .r-kids { margin-top: 18px; }  /* R16 : sans lien entrant, « Notes contenues » garde ses 30 px (12 px de moins mesurés) */
.r-bl { display: flex; align-items: flex-start; gap: 10px; width: 100%; padding: 5px 6px; margin: 0 -6px; border-radius: 7px; text-align: left; }
.r-bl:hover { background: var(--field); }
.r-bl .n-ico { margin: 1px 0 0; width: 24px; height: 24px; flex: none; background: color-mix(in srgb, var(--c) 10%, transparent); }
.rb-m { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.rb-t { font-weight: 600; font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rb-t em { font-style: normal; font-weight: 500; color: var(--mute-2); font-size: 11.5px; margin-left: 6px; }
.rb-x { color: var(--mute); font-size: 12.5px; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.r-bl small { color: #a9abb0; font-size: 12px; flex: none; padding-top: 2px; }

/* ── src/css/40-panel.css ── */
/* Panneau de droite : notes façon Bear, lecture façon Granola */
.panel {
  width: 0; flex: none; background: #fff; overflow: hidden; position: relative; z-index: 4;
  transition: width 300ms var(--ease);
}
.panel.open { width: var(--panel-w); box-shadow: -1px 0 0 var(--hair-soft); background: var(--sidebar); }
.panel.reading { width: min(560px, 46vw); }
.panel-in { width: var(--panel-w); height: 100%; display: flex; flex-direction: column; margin-left: 1px; }
.panel.reading .panel-in { width: calc(min(560px, 46vw) - 1px); }
.p-head { height: 52px; flex: none; display: flex; align-items: center; justify-content: space-between; padding: 0 10px 0 14px; }
.p-back { display: inline-flex; align-items: center; gap: 4px; height: 26px; padding: 0 8px 0 4px; border-radius: 6px; color: var(--mute); font-size: 13px; font-weight: 600; max-width: 70%; }
.p-back span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.p-back:hover { background: var(--field); color: var(--ink-2); }
.p-scroll { flex: 1; min-height: 0; }
.p-search { display: flex; align-items: center; gap: 7px; height: 28px; margin: 2px 14px 10px; padding: 0 9px; border-radius: 7px; background: var(--field); color: #9a9da2; }
.p-search input { flex: 1; min-width: 0; border: 0; outline: none; background: transparent; font-size: 13px; user-select: text; -webkit-user-select: text; }
.p-types { display: flex; flex-wrap: wrap; gap: 5px; padding: 0 14px 10px; }
.ty { display: inline-flex; align-items: center; gap: 5px; height: 22px; padding: 0 8px 0 6px; border-radius: 11px; font-size: 12px; font-weight: 600; color: #6a6c71; box-shadow: inset 0 0 0 1px var(--hair); transition: background-color 120ms, box-shadow 120ms, color 120ms; }
.ty i { font-style: normal; color: #a9abb0; font-weight: 600; font-size: 11px; }
.ty:hover { background: var(--field); }
.ty.on { background: color-mix(in srgb, var(--c) 13%, #fff); color: color-mix(in srgb, var(--c) 78%, #000); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c) 40%, #fff); }
.ty.on i { color: inherit; opacity: .7; }
.p-list { padding: 0 8px 24px; }
.p-g { padding: 12px 8px 5px; color: var(--mute-2); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; }
.p-empty { padding: 40px 20px; text-align: center; color: #b0b2b7; font-size: 13px; font-style: italic; }
.nrow { display: flex; gap: 10px; width: 100%; padding: 8px 8px 9px; border-radius: 8px; text-align: left; align-items: flex-start; position: relative; }
.nrow + .nrow::before { content: ""; position: absolute; left: 44px; right: 8px; top: 0; height: 1px; background: var(--hair-soft); }
.nrow:hover { background: #f6f7f8; }
.nrow.on { background: var(--field); }
.nrow:hover::before, .nrow:hover + .nrow::before, .nrow.on::before, .nrow.on + .nrow::before { opacity: 0; }
.n-ico { width: 26px; height: 26px; border-radius: 7px; display: grid; place-items: center; flex: none; margin-top: 1px; }
.n-main { flex: 1; min-width: 0; display: grid; gap: 1px; }
.n-title { font-size: 13.5px; font-weight: 600; color: var(--ink); line-height: 18px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.n-ex { font-size: 12.5px; line-height: 17px; color: #8b8d92; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.n-meta { display: flex; align-items: center; gap: 4px; font-size: 11.5px; color: #b0b2b7; margin-top: 2px; min-width: 0; }
.n-meta span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Contexte épinglé */
.pin { margin: 0 6px 6px; padding: 11px 13px 12px; border-radius: 10px; background: var(--ai-soft); }
.pin-h { display: flex; align-items: center; gap: 6px; color: var(--ai-ink); font-size: 12px; font-weight: 700; margin-bottom: 5px; }
.pin-h small { color: #8fb0e6; font-weight: 600; font-size: 11.5px; margin-left: 2px; }
.pin ul { margin: 0; padding: 0; list-style: none; color: #55565b; font-size: 13px; line-height: 19px; }
.pin li { padding: 3px 0; }
.pin li b { display: block; color: #8fb0e6; font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; line-height: 14px; }

/* Lecteur */
.reader { flex: 1; min-height: 0; }
.r-in { padding: 6px 30px 40px; max-width: 620px; margin: 0 auto; }
.r-type { display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; }
.r-by { margin-left: 6px; display: inline-flex; align-items: center; gap: 4px; height: 16px; padding: 0 7px 0 5px; border-radius: 8px; background: var(--ai-soft); color: var(--ai-ink); font-size: 11px; }
.reader h2 { margin: 9px 0 6px; font-size: 22px; line-height: 28px; font-weight: 700; letter-spacing: -.012em; color: var(--ink); }
.r-meta { color: var(--mute); font-size: 12.5px; }
.r-meta a { color: var(--blue); cursor: default; }
.r-people { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.r-body { margin-top: 20px; font-size: 14.5px; line-height: 23px; color: #252528; }
.r-body h3 { margin: 22px 0 6px; font-size: 15px; line-height: 22px; font-weight: 700; color: var(--ink); }
.r-body h3:first-child { margin-top: 0; }
.r-body p { margin: 0 0 11px; }
.r-body ul { margin: 0 0 12px; padding-left: 18px; }
.r-body li { margin: 3px 0; padding-left: 2px; }
.r-body li::marker { color: #b6b8bd; }
.r-body .ai { color: var(--ai-text); }
.r-body p.mark { position: relative; }
.r-body p.mark::before { content: ""; position: absolute; left: -14px; top: 4px; bottom: 4px; width: 2px; border-radius: 1px; background: var(--ai-line); }
.r-body blockquote { margin: 0 0 12px; padding: 2px 0 2px 14px; border-left: 2px solid var(--hair); color: #45474c; }
.r-body blockquote cite { display: block; font-style: normal; font-size: 12px; color: var(--mute); margin-top: 3px; }
.r-turn { margin-bottom: 13px; }
.r-turn > div { display: flex; align-items: baseline; gap: 8px; font-size: 12px; }
.r-turn b { font-weight: 700; color: var(--ink); }
.r-turn time { color: #b0b2b7; font-variant-numeric: tabular-nums; }
.r-turn p { margin: 1px 0 0; color: #3b3c41; }
.r-todo { margin: 0 0 12px; }
.r-todo div { display: flex; align-items: flex-start; gap: 9px; padding: 2px 0; }
.r-todo i { width: 12px; height: 12px; border: 1px solid var(--box); border-radius: 3px; margin-top: 6px; flex: none; }
.r-todo .done { color: #a9abb0; }
.r-todo .done i { background: var(--check) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10'%3E%3Cpath d='M2 5.3l2.1 2.1L8 2.9' fill='none' stroke='%23fff' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/10px no-repeat; border-color: var(--check); }
.r-stub { color: #b6b8bd; font-size: 12.5px; font-style: italic; margin-top: 18px !important; }
.r-linked { margin-top: 26px; padding-top: 6px; border-top: 1px solid var(--hair); user-select: none; -webkit-user-select: none; }
.r-task { display: flex; align-items: center; gap: 9px; width: 100%; min-height: 28px; text-align: left; border-radius: 6px; padding: 0 6px; margin: 0 -6px; }
.r-task:hover { background: var(--field); }
.r-task i { width: 12px; height: 12px; border: 1px solid var(--box); border-radius: 3px; flex: none; }
.r-task i.done { background: var(--check); border-color: var(--check); }
.r-task span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.r-task small { color: var(--mute); font-size: 12px; flex: none; }
.r-foot { flex: none; padding: 10px 14px 12px; border-top: 1px solid var(--hair-soft); }

/* Chronologie */
.tl-wrap { padding: 4px 18px 30px 22px; position: relative; }
.tl-wrap::before { content: ""; position: absolute; left: 27px; top: 14px; bottom: 30px; width: 1px; background: var(--hair); }
.tl-day { padding: 14px 0 4px 22px; color: var(--mute-2); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; position: relative; }
.tl-now { position: relative; margin: 14px 0 2px; padding-left: 22px; }
.tl-now span { display: inline-block; height: 18px; padding: 0 8px; border-radius: 9px; background: var(--yellow); color: #5c4d00; font-size: 11px; font-weight: 700; line-height: 18px; }
.tl-now::before { content: ""; position: absolute; left: 1px; top: 4px; width: 10px; height: 10px; border-radius: 50%; background: var(--yellow); box-shadow: 0 0 0 3px #fff; }
.tl-it { display: grid; grid-template-columns: 22px 1fr; align-items: start; width: 100%; padding: 4px 6px 4px 0; text-align: left; border-radius: 6px; position: relative; }
button.tl-it:hover { background: #f6f7f8; }
.tl-it i { width: 9px; height: 9px; border-radius: 50%; margin: 6px 0 0 1.5px; box-shadow: 0 0 0 3px #fff; position: relative; z-index: 1; display: grid; place-items: center; }
.tl-it i.chk { background: var(--check); width: 11px; height: 11px; margin-left: .5px; border-radius: 3px; }
.tl-it i.ev { background: #fff; border: 1.5px solid var(--red); }
.tl-it i.due { background: var(--red-flag); border-radius: 2px; transform: rotate(45deg); width: 8px; height: 8px; margin-left: 2px; }
.tl-t { font-size: 13.5px; line-height: 19px; color: var(--ink); grid-column: 2; }
.tl-it small { grid-column: 2; color: #a9abb0; font-size: 11.5px; line-height: 15px; }

/* v6 — Le contexte demandé depuis le menu « ··· » se referme */
.pin-x { margin-left: auto; width: 20px; height: 20px; border-radius: 5px; display: grid; place-items: center; color: #8fb0e6; }
.pin-x:hover { background: rgba(46, 124, 246, .12); color: var(--ai-ink); }

/* v7 — Les filtres par nature se replient derrière un bouton dans le champ de recherche */
.p-types[hidden] { display: none; }
.p-filt { flex: none; display: inline-flex; align-items: center; gap: 3px; height: 22px; padding: 0 5px; margin-right: -4px; border-radius: 5px; color: #9a9da2; }
.p-filt:hover { background: rgba(0, 0, 0, .06); color: var(--ink-2); }
.p-filt.on { color: var(--ai); }
.p-filt i { font-style: normal; font-size: 11px; font-weight: 700; }

/* ── src/css/41-qispi.css ── */
/* v14 — QISPI : la page des conversations, et les fils de travail (41-qispi.js).
   Rien ne crie : une seule couleur par rôle (bleu pour ce que fait QISPI, rouge pour ce qui t'attend), le reste en gris.
   Les lignes vivent dans un panneau de largeur variable : elles se règlent sur leur conteneur (.qp-rows), jamais sur la fenêtre. */

.qp-g { flex: none; display: block; }

/* ════════════════════════ La page ════════════════════════ */
.qp-start { margin-top: 20px; }
.composer.qp-field { display: flex; align-items: flex-end; gap: 6px; margin: 0; padding: 8px 8px 8px 14px; border-radius: 11px; }
.qp-field .c-input { flex: 1; min-width: 0; min-height: 24px; line-height: 24px; max-height: 168px; font-size: 14.5px; }
.qp-field .c-send { flex: none; margin: 0 0 -1px; transition: opacity 140ms, transform 120ms; }
.qp-field .c-input:empty ~ .c-send { opacity: 0; pointer-events: none; }

.filters.qp-filters { margin-top: 22px; }

.qp-rows { container: qp / inline-size; }
.qp-body { margin-top: 4px; }
.qp-sec { margin-top: 26px; }
.qp-sec:first-child { margin-top: 18px; }
.qp-h { display: flex; align-items: center; gap: 8px; height: 26px; margin: 0 0 4px; padding-bottom: 5px; border-bottom: 1px solid var(--hair-soft); font-size: 13px; line-height: 20px; font-weight: 700; color: var(--ink-2); }
.qp-h a { display: inline-flex; align-items: center; gap: 8px; min-width: 0; }
.qp-h a > span:last-child, .qp-h > span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.qp-h a:hover { color: var(--ink); }
.qp-h-i { flex: none; width: 16px; height: 16px; display: grid; place-items: center; }
.qp-h-i:empty { display: none; }

.qp-row { display: flex; align-items: center; gap: 9px; min-height: 30px; margin: 0 -8px; padding: 4px 8px; border-radius: var(--r-pill); color: var(--ink); transition: background-color 100ms; }
.qp-row:hover { background: var(--field); }
.qp-row.on { background: var(--sel); }
.qp-sign { flex: none; width: 16px; height: 16px; display: grid; place-items: center; color: var(--mute-2); opacity: .8; }
.qp-row.w .qp-sign { color: var(--ai); opacity: 1; }
.qp-row.over .qp-sign { color: var(--mute-2); opacity: .7; }
.qp-t { flex: 1; min-width: 0; font-size: 14px; line-height: 20px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.qp-row.over .qp-t { color: var(--mute); }
.qp-m { flex: none; display: inline-flex; align-items: center; gap: 6px; color: var(--mute-2); font-size: 12.5px; line-height: 18px; white-space: nowrap; }
.qp-dot { flex: none; width: 6px; height: 6px; border-radius: 50%; background: var(--need); }
.qp-row.new { color: var(--mute-2); }
.qp-row.new .qp-t { font-size: 13.5px; }
.qp-more { display: flex; align-items: center; height: 26px; margin: 1px -8px 0; padding: 0 8px 0 33px; border-radius: var(--r-pill); color: var(--mute-2); font-size: 12.5px; font-weight: 500; }
.qp-more:hover { color: var(--ink-2); }
.qp-none { margin: 44px 0 0; color: var(--mute-2); font-size: 14px; }

.qp-convs { margin-top: 0; }

/* Panneau étroit, téléphone : l'état passe sous le titre, le titre peut tenir sur deux lignes */
@container qp (max-width: 470px) {
  .qp-row { flex-wrap: wrap; gap: 0 9px; padding: 6px 8px; }
  .qp-t { flex: 1 1 calc(100% - 25px); white-space: normal; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
  .qp-m { flex: 1 1 100%; padding-left: 25px; }
  .qp-row.new .qp-t { -webkit-line-clamp: 1; }
}

/* ════════════════════════ Un fil de travail ════════════════════════ */
.qp-head { display: flex; flex-direction: column; }
.qp-head-k { display: flex; align-items: center; flex-wrap: wrap; gap: 2px 7px; color: var(--ai-ink); font-size: 12px; line-height: 18px; font-weight: 700; }
.qp-head-k i { font-style: normal; font-weight: 500; color: var(--mute-2); }
.qp-head { container: qph / inline-size; }
.qp-head .m-tasks { margin-top: 8px; }
.qp-head .m-task { min-height: 32px; }
.qp-head .m-task span { font-weight: 600; }
@container qph (max-width: 430px) {                       /* panneau étroit : le titre de la tâche se lit en entier, le projet passe dessous */
  .qp-head .m-task { flex-wrap: wrap; gap: 1px 9px; padding: 6px 8px; align-items: flex-start; }
  .qp-head .m-task i { margin-top: 4px; }
  .qp-head .m-task span { flex: 1 1 calc(100% - 21px); white-space: normal; }
  .qp-head .m-task small { flex: 1 1 100%; padding-left: 21px; }
}
.qp-head-x { margin-top: 6px; font-size: 14px; font-weight: 600; color: var(--mute); }

.msg.qp-rep { align-items: stretch; }
.msg.qp-rep > * + * { margin-top: 12px; }
.msg.qp-rep .mn { vertical-align: middle; position: relative; top: -1px; font-size: 13px; }
.qp-why { margin: 0; font-size: 14px; line-height: 21px; color: var(--ink-2); }
.qp-why .mn, .qp-steps .mn, .qp-lu .mn { cursor: default; }

.qp-steps { margin: 0; padding: 0; list-style: none; }
.qp-steps li { display: flex; align-items: flex-start; gap: 9px; padding: 2px 0; font-size: 13.5px; line-height: 20px; color: var(--ink-2); }
.qp-steps li > i { flex: none; width: 14px; height: 20px; display: grid; place-items: center; color: var(--mute-2); }
.qp-steps li > span { min-width: 0; }
.qp-steps li.todo { color: var(--mute-2); }
.qp-steps li.now { color: var(--ink); font-weight: 600; }
.qp-steps li.now .mn { font-weight: 600; }
.qp-o, .qp-ring { display: block; width: 9px; height: 9px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--box); }
.qp-ring { box-shadow: inset 0 0 0 1.5px var(--ai); position: relative; }
.qp-ring::after { content: ""; position: absolute; inset: 3px; border-radius: 50%; background: var(--ai); }

.qp-lu { margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 5px 4px; font-size: 13px; line-height: 20px; color: var(--mute-2); }
.qp-lu > span:first-child { margin-right: 4px; }
.qp-lu .mn { margin: 0; max-width: 100%; }

.qp-piece { display: flex; align-items: center; gap: 9px; width: 100%; min-height: 36px; padding: 0 11px 0 10px; border-radius: var(--r-card); box-shadow: inset 0 0 0 1px var(--hair); text-align: left; transition: background-color 100ms; }
.qp-piece:hover { background: var(--field); }
.msg.qp-rep > .qp-piece + .qp-piece { margin-top: 6px; }
.qp-piece-i { flex: none; display: grid; place-items: center; }
.qp-piece-t { flex: 1; min-width: 0; font-size: 13.5px; font-weight: 600; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.qp-piece-k { flex: none; color: var(--mute-2); font-size: 12px; }

/* L'état : une ligne, à la fin du compte rendu. C'est là que le fil dit où il s'est arrêté, et pourquoi. */
.msg.qp-rep > .qp-etat { margin-top: 16px; }
.qp-etat { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.qp-etat-l { display: inline-flex; align-items: center; gap: 7px; min-width: 0; font-size: 13px; line-height: 20px; font-weight: 600; color: var(--mute); }
.qp-etat-l > :first-child { flex: none; }
.qp-etat.needs .qp-etat-l { color: var(--need); }
.qp-etat.ready .qp-etat-l { color: var(--ai-ink); }
.qp-etat.ready .btn { margin-left: auto; }
.qp-etat.working .qp-etat-l, .qp-etat.done .qp-etat-l, .qp-etat.idle .qp-etat-l { font-weight: 500; color: var(--mute-2); }
.qp-run { width: 9px; height: 9px; border-radius: 50%; border: 1.5px solid var(--ai-line); border-top-color: var(--ai); animation: spin 1100ms linear infinite; }
.qp-q { flex: 1 1 100%; font-size: 14.5px; line-height: 21px; font-weight: 600; color: var(--ink); }
.qp-etat.past .qp-q { font-weight: 400; color: var(--mute); }
.qp-opts { flex: 1 1 100%; display: flex; flex-wrap: wrap; gap: 6px; }
.qp-opts .btn { height: auto; min-height: 28px; padding: 4px 12px; white-space: normal; text-align: left; line-height: 18px; }

/* L'en-tête du panneau cite la tâche */
.cs-title.qp-cite:hover { color: var(--ink); text-decoration: underline; text-decoration-color: var(--hair); text-underline-offset: 3px; }
.pt-title .qp-g { opacity: 1; }

/* ════════════════════════ Depuis une tâche ════════════════════════ */
button.ai-mark { transition: filter 120ms; }
button.ai-mark:hover { filter: brightness(.95); }
.aib { position: relative; }
.qp-fil { display: inline-flex; align-items: center; gap: 5px; height: 20px; padding: 0 6px; border-radius: var(--r-box); color: var(--ai-ink); font-size: 12px; font-weight: 600; white-space: nowrap; opacity: .82; transition: opacity 120ms, background-color 120ms; }
.qp-fil:hover { opacity: 1; background: rgba(31, 95, 224, .09); }
.aib > .qp-fil { position: absolute; top: 9px; right: 8px; }
.aib[style] > .qp-fil { top: 7px; }
.aib.need > .qp-fil { color: var(--mute); }
.aib.need > .qp-fil:hover { background: rgba(22, 23, 26, .06); }
.aib > .qp-fil + .aib-h { padding-right: 112px; }
.qp-fil-line { margin: 0 0 12px -6px; }
.qp-fil-line .qp-fil { color: var(--mute); }
.qp-fil-line .qp-fil:hover { background: var(--field); }

/* ════════════════════════ « Rangé dans … » ════════════════════════ */
.toast.qp-toast { display: flex; align-items: center; gap: 14px; pointer-events: auto; padding-right: 6px; }
.qp-toast span { overflow: hidden; text-overflow: ellipsis; }
.qp-toast button { flex: none; height: 24px; padding: 0 9px; border-radius: 6px; color: #a9c8ff; font-size: 13px; font-weight: 700; }
.qp-toast button:hover { background: rgba(255, 255, 255, .12); }

/* ════════════════════════ Planifier la semaine prochaine (v15) ════════════════════════
   Une conversation comme les autres : des phrases, quelques lignes, deux boutons sous le message. Rien d'un écran à étapes. */
.qp-row .qp-sign .qp-g { display: block; }
.msg.qp-pl > * + * { margin-top: 14px; }
.msg.qp-pl > .qp-pl-c { margin-top: 18px; }
.msg.qp-pl > .qp-pl-c:first-child { margin-top: 0; }
.qp-pl-c { container: qpl / inline-size; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.qp-pl-k { font-size: 12px; line-height: 18px; font-weight: 700; color: var(--mute); }
.qp-pl-reco { margin: 0; font-size: 14px; line-height: 21px; color: var(--ink-2); }
.qp-pl-note { margin: 0; font-size: 12.5px; line-height: 18px; color: var(--mute-2); }
.qp-pl-ok { margin: 0; display: flex; align-items: flex-start; gap: 8px; font-size: 13px; line-height: 20px; color: var(--mute); }
.qp-pl-ok > svg { flex: none; margin-top: 4px; color: var(--green); }

.qp-pl-l { margin: 0; padding: 0; list-style: none; }
.qp-pl-l > li { display: flex; align-items: baseline; gap: 2px 12px; padding: 3px 0; font-size: 13.5px; line-height: 20px; color: var(--ink-2); }
.qp-pl-l > li > b { flex: none; width: 92px; font-weight: 600; color: var(--ink); }
.qp-pl-l > li > span { flex: 1; min-width: 0; }
.qp-pl-l > li > small { flex: none; max-width: 46%; color: var(--mute-2); font-size: 12.5px; text-align: right; }
/* un projet, une tâche qui glisse : son nom et le fait sur une ligne, la proposition dessous */
.qp-pl-b > li { display: grid; grid-template-columns: 16px minmax(0, 1fr); gap: 1px 9px; padding: 6px 0; }
.qp-pl-b > li + li { border-top: 1px solid var(--hair-soft); }
.qp-pl-i { grid-row: 1; flex: none; width: 16px; height: 20px; display: grid; place-items: center; font-style: normal; color: var(--mute-2); }
.qp-pl-n { grid-column: 2; display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 9px; min-width: 0; }
.qp-pl-n b { font-weight: 600; color: var(--ink); }
.qp-pl-n small { color: var(--mute-2); font-size: 12.5px; }
.qp-pl-p { grid-column: 2; color: var(--ink-2); }
.qp-ex { display: inline-block; height: 15px; margin-left: 7px; padding: 0 5px; border-radius: 4px; box-shadow: inset 0 0 0 1px var(--hair); color: var(--mute-2); font-size: 10.5px; font-weight: 600; line-height: 15px; letter-spacing: .01em; vertical-align: 1px; }

.qp-pl-det > summary { display: inline-flex; align-items: center; gap: 6px; height: 22px; margin-left: -6px; padding: 0 7px 0 6px; border-radius: var(--r-box); list-style: none; cursor: pointer; color: var(--mute); font-size: 12.5px; font-weight: 600; user-select: none; }
.qp-pl-det > summary::-webkit-details-marker { display: none; }
.qp-pl-det > summary:hover { background: var(--field); color: var(--ink-2); }
.qp-pl-det > summary svg { flex: none; transition: transform 140ms; }
.qp-pl-det[open] > summary svg { transform: rotate(90deg); }
.qp-pl-det > .qp-pl-l { margin-top: 6px; }

/* ce qu'une réponse a changé : une ligne, avec sa coche */
.qp-etat.qp-pl-f .qp-etat-l { align-items: flex-start; font-weight: 600; color: var(--ink-2); }
.qp-etat.qp-pl-f.idle .qp-etat-l { font-weight: 500; color: var(--mute); }
.qp-etat.qp-pl-f .qp-etat-l > :first-child { margin-top: 4px; }
.qp-etat.qp-pl-f .qp-etat-l > .qp-o { margin-top: 5px; }
.qp-etat.qp-pl-f.done .qp-etat-l > svg { color: var(--green); }
.qp-pl-c .qp-opts { margin-top: 4px; }

.qp-pl-end { margin: 0; font-size: 15px; line-height: 22px; font-weight: 700; color: var(--ink); }
.qp-pl-bil > li { align-items: flex-start; gap: 9px; }
.qp-pl-bil > li > .qp-pl-i { color: var(--green); }
.qp-pl-bil.open > li { color: var(--mute); }
.qp-pl-fin .qp-etat { margin-top: 4px; }
.qp-pl-fin .qp-etat-l { align-items: flex-start; }
.qp-pl-fin .qp-etat-l > :first-child { margin-top: 4px; }

@container qpl (max-width: 400px) {                       /* panneau étroit, téléphone : le détail passe sous le titre */
  .qp-pl-l > li { flex-wrap: wrap; }
  .qp-pl-l > li > b { width: 84px; }
  .qp-pl-l > li > span { flex: 1 1 calc(100% - 96px); }
  .qp-pl-l > li > small { flex: 1 1 100%; max-width: none; padding-left: 96px; text-align: left; }
  .qp-pl-bil > li > span { flex: 1 1 0; }
}

/* ════════════════════════ Au doigt ════════════════════════ */
@media (max-width: 760px) {
  .qp-pl-reco { font-size: 15px; line-height: 22px; }
  .qp-pl-l > li { font-size: 14.5px; line-height: 21px; padding: 4px 0; }
  .qp-pl-l > li > small, .qp-pl-n small, .qp-pl-note { font-size: 13px; }
  .qp-pl-i { height: 21px; }
  .qp-pl-k { font-size: 13px; }
  .qp-pl-ok { font-size: 14px; }
  .qp-pl-det > summary { height: 32px; font-size: 13.5px; }
  .qp-pl-end { font-size: 16px; }
  .qp-row { min-height: 44px; }
  .qp-t { font-size: 15.5px; line-height: 21px; }
  .qp-m { font-size: 13px; }
  .qp-more { height: 40px; font-size: 13.5px; }
  .qp-h { font-size: 13.5px; }
  .qp-field .c-input { font-size: 16px; }
  .qp-why { font-size: 15px; line-height: 22px; }
  .qp-steps li { font-size: 14.5px; line-height: 21px; padding: 3px 0; }
  .qp-steps li > i { height: 21px; }
  .qp-lu, .qp-etat-l { font-size: 14px; }
  .qp-q { font-size: 15.5px; line-height: 22px; }
  .qp-piece-t { font-size: 14.5px; }
  .qp-head-k { font-size: 13px; }
  .qp-opts .btn { min-height: 36px; font-size: 14px; }
  .qp-piece { min-height: 44px; }
  .qp-etat .btn { height: 34px; }
  .qp-fil { height: 28px; }
  .aib > .qp-fil { top: 5px; }
}

/* Lot R13 : la note gardée en tête de la conversation (même puce que les notes citées) ; la ligne glissée vers la barre latérale */
.qp-kept { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 8px; margin-bottom: 10px; }
.qp-kept-k { color: var(--mute-2); font-size: 12px; line-height: 18px; font-weight: 600; }
.qp-head .qp-kept + .qp-head-k { margin-top: 2px; }
.qp-row.qp-drag { position: fixed; z-index: 50; pointer-events: none; margin: 0; background: #fff; box-shadow: 0 0 0 .5px rgba(0,0,0,.12), 0 8px 24px rgba(0,0,0,.16); }

/* ── src/css/41-tree.css ── */
/* v10 — Barre de droite, mode Arbre : tout le coffre en dossiers, lignes compactes (31-tree.js) */

/* En-tête : le dossier affiché, le bouton « suivre le projet courant » */
.tv-title { display: inline-flex; align-items: center; gap: 7px; height: 28px; padding: 0 7px 0 8px; font-size: 14px; font-weight: 700; color: var(--ink); min-width: 0; }
.tv-title > span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tv-sync { width: 24px; height: 24px; flex: none; border-radius: var(--r-pill); display: grid; place-items: center; color: var(--faint); transition: background-color 120ms, color 120ms; }
.tv-sync:hover { background: rgba(0, 0, 0, .05); color: var(--mute); }
.tv-sync.on { color: var(--ai); background: var(--ai-soft); }
.tv-sync.on:hover { background: var(--ai-line); }

/* Fil d'Ariane, quand on est entré dans un dossier : il reste en haut pendant le défilement */
.tv-path { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; gap: 1px; height: 28px; margin-top: -6px; padding: 0 9px 4px; background: var(--sidebar); color: var(--mute); font-size: 12px; white-space: nowrap; }
.tv-path button, .tv-path b { flex: 0 1 auto; min-width: 0; height: 20px; line-height: 20px; padding: 0 5px; border-radius: 5px; overflow: hidden; text-overflow: ellipsis; }
.tv-path button { color: var(--mute); font-weight: 500; }
.tv-path button:first-child { flex: none; }
.tv-path button:hover { background: rgba(0, 0, 0, .06); color: var(--ink-2); }
.tv-path b { flex-shrink: 1000; min-width: 56px; color: var(--ink-2); font-weight: 600; }   /* le dossier courant est déjà écrit en entier dans l'en-tête : c'est lui qui se tronque d'abord */
.tv-path svg { color: var(--faint); }

/* L'arbre */
.tv { padding: 0 8px 24px; }
.tv-r { display: flex; align-items: center; gap: 5px; height: 24px; padding: 0 3px 0 calc(3px + var(--d, 0) * 14px); border-radius: 5px; color: var(--ink-side); font-size: 13px; line-height: 24px; }
.tv-r:hover { background: rgba(0, 0, 0, .04); }
.tv-r.on { background: var(--sel); }
.tv-c { width: 14px; height: 24px; flex: none; display: grid; place-items: center; border-radius: 4px; color: var(--faint); }
button.tv-c:hover { background: rgba(0, 0, 0, .07); color: var(--ink-2); }
.tv-r.open > .tv-c svg, .tv-c.open svg { transform: rotate(90deg); }
.tv-r.dir:hover > .tv-c { color: var(--mute); }
.tv-i { width: 12px; height: 12px; flex: none; display: grid; place-items: center; }
.tv.noico .tv-i { display: none; }
.tv-t { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tv-t mark { background: color-mix(in srgb, var(--yellow) 42%, transparent); color: inherit; border-radius: 2px; }
.tv-p { flex: none; color: var(--ai); }

/* Dossiers : espace en petites capitales (comme à gauche), casquette en gras, projet en demi-gras */
.tv-r.dir .tv-t { font-weight: 500; }
.tv-r.area .tv-t { font-weight: 600; }
.tv-r.space .tv-t { color: var(--mute-2); font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.tv-r.space:not(:first-child) { margin-top: 6px; }
.tv-r.void .tv-t { color: var(--faint); }
.tv-r.dim .tv-t { color: var(--mute); }
.tv-r.cur { background: var(--ai-soft); }
.tv-r.cur .tv-t { color: var(--ai-ink); font-weight: 600; }
.tv-r.hit { animation: tv-hit 1400ms ease-out; }
@keyframes tv-hit { from { background: var(--row-sel); } }

/* À droite de la ligne : le nombre de notes, remplacé au survol par l'action (entrer, ouvrir à côté). Même case : rien ne bouge. */
.tv-e { flex: none; min-width: 20px; height: 20px; display: grid; align-items: center; justify-items: end; }
.tv-e > * { grid-area: 1 / 1; }
.tv-n { padding: 0 4px; color: var(--mute-2); font-size: 11.5px; line-height: 20px; font-variant-numeric: tabular-nums; }
.tv-b { width: 20px; height: 20px; border-radius: 5px; display: grid; place-items: center; color: var(--mute); opacity: 0; }
.tv-b:hover { background: rgba(0, 0, 0, .08); color: var(--ink-2); }
.tv-r:hover .tv-b { opacity: 1; }
.tv-r:hover .tv-n:has(+ .tv-b) { opacity: 0; }

/* Téléphone : des lignes au doigt ; pas de survol, la flèche « entrer » reste visible à côté du nombre */
@media (max-width: 760px) {
  .tv { padding: 0 10px 40px; }
  .tv-r { height: 36px; gap: 8px; padding-left: calc(4px + var(--d, 0) * 16px); border-radius: 8px; font-size: 15px; line-height: 36px; }
  .tv-c { width: 20px; height: 36px; }
  .tv-c svg { width: 11px; height: 11px; }
  .tv-i { width: 14px; height: 14px; }
  .tv-r.space .tv-t { font-size: 12px; }
  .tv-e { display: flex; gap: 4px; height: 36px; }
  .tv-n { font-size: 13px; line-height: 36px; }
  .tv-b { width: 32px; height: 32px; opacity: 1; }
  .tv-r.note .tv-b { display: none; }
  .tv-r:hover .tv-n:has(+ .tv-b) { opacity: 1; }
  .tv-path { height: 38px; margin-top: -4px; padding-bottom: 6px; font-size: 14px; }
  .tv-path button, .tv-path b { height: 30px; line-height: 30px; padding: 0 7px; }
  .tv-sync { width: 32px; height: 32px; border-radius: 8px; }
}

/* Lot I3 — épinglée, renommer sur place, glisser pour ranger, corbeille */
.tv-ep { flex: none; display: grid; place-items: center; color: var(--mute-2); }
.tv-in { flex: 1; min-width: 0; height: 20px; padding: 0 4px; border: 0; border-radius: 4px; background: var(--field); box-shadow: 0 0 0 1px var(--hair); color: var(--ink); font: inherit; outline: none; }
.tv-r.drag { opacity: .45; }
.tv-r.dropin { background: var(--sel); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--ai-ink) 35%, transparent); }
.tv-corb .tv-b { opacity: 1; }
.tv-corb .tv-t small { color: var(--mute-2); font-size: 11px; }
.np-pick { width: 300px; max-width: calc(100vw - 32px); padding: 6px; }
.np-q { width: 100%; height: 28px; margin-bottom: 4px; padding: 0 8px; border: 0; border-radius: 6px; background: rgba(0, 0, 0, .04); color: var(--ink); font: inherit; outline: none; }
.np-l { max-height: 320px; overflow-y: auto; }
.np-l .menu-it small { color: var(--mute-2); font-size: 11.5px; }
.np-t { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.np-g { padding: 6px 9px 2px; color: var(--mute-2); font-size: 11px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
.np-0 { padding: 8px 9px; color: var(--mute); }
@media (max-width: 760px) {
  .tv-corb .tv-r.note .tv-b { display: grid; }
  .tv-in { height: 30px; font-size: 15px; }
  .np-l .menu-it { height: 36px; }
}

/* ── src/css/42-direct.css ── */
/* Lot I5 — la réponse en direct, les étapes et le contexte chargé, les pièces jointes, le brouillon gardé (42-direct.js). Rien ne crie. */
.qd-live-h { display: flex; align-items: center; gap: 10px; min-height: 22px; color: var(--mute); font-size: 12.5px; }
.qd-live-e { display: inline-flex; align-items: center; gap: 8px; }
.qd-stop { margin-left: auto; height: 22px; padding: 0 8px; border-radius: var(--r-box); color: var(--mute); font-size: 12.5px; font-weight: 600; }
.qd-stop:hover { background: var(--field); color: var(--ink-2); }
.qd-stop:disabled { opacity: .5; }
.qd-live .typing { display: inline-flex; gap: 4px; padding: 6px 0 2px; }
.qd-live .m-text { margin-top: 4px; }
.msg.me.qd-attente .bubble { opacity: .7; }

.qd-pieds { display: flex; flex-wrap: wrap; gap: 2px 14px; margin-top: 6px; }
.qd-det > summary { display: inline-flex; align-items: center; gap: 6px; height: 22px; margin-left: -6px; padding: 0 7px 0 6px; border-radius: var(--r-box); list-style: none; cursor: pointer; color: var(--mute); font-size: 12.5px; font-weight: 600; user-select: none; }
.qd-det > summary::-webkit-details-marker { display: none; }
.qd-det > summary:hover { background: var(--field); color: var(--ink-2); }
.qd-det > summary svg { flex: none; transition: transform 140ms; }
.qd-det[open] { flex-basis: 100%; }
.qd-det[open] > summary svg { transform: rotate(90deg); }
.qd-steps { margin: 4px 0 2px; padding: 0; list-style: none; }
.qd-steps li { display: flex; align-items: flex-start; gap: 9px; padding: 2px 0; font-size: 13px; line-height: 20px; color: var(--ink-2); }
.qd-steps li > i { flex: none; width: 14px; height: 20px; display: grid; place-items: center; color: var(--mute-2); }
.qd-steps li > span { min-width: 0; }
.qd-steps li.now { color: var(--ink); }
.qd-steps li.ko { color: var(--mute); }
.qd-ctx { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; margin: 4px 0 2px; font-size: 13px; }
.qd-ctx-x { color: var(--mute); font-size: 12.5px; }
.qd-note { margin: 6px 0 0; color: var(--mute); font-size: 12.5px; }

.qd-err { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 12px; }
.qd-err-l { display: inline-flex; align-items: center; gap: 8px; color: var(--ink-2); font-size: 13.5px; }
.qd-err-l > .qp-o { flex: none; }

.qd-pjs { display: flex; flex-wrap: wrap; gap: 6px; }
.qd-pjs.out { padding: 6px 12px 0; }
.qd-pjs.in { margin-top: 6px; }
.qd-pj { display: inline-flex; align-items: center; gap: 5px; max-width: 240px; height: 24px; padding: 0 8px; border-radius: var(--r-box); background: var(--field); color: var(--ink-2); font-size: 12.5px; }
.qd-pj > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.qd-pj.lit { opacity: .6; }
.qd-pj > button { display: grid; place-items: center; width: 16px; height: 16px; margin-right: -4px; border-radius: 50%; color: var(--mute); }
.qd-pj > button:hover { background: rgba(0, 0, 0, .06); color: var(--ink); }
.chat-root.qd-drop .composer { box-shadow: inset 0 0 0 1.5px var(--ai-line); }

.qd-brouillon { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 10px; padding: 8px 12px 0; color: var(--mute); font-size: 12.5px; line-height: 17px; }
.qd-brouillon .btn { height: 24px; font-size: 12.5px; }

/* La liste QISPI : non lus, épinglées, recherche */
.qp-row.nonlu .qp-t { font-weight: 650; color: var(--ink); }
.qp-row .qp-run { flex: none; }
.qp-row .qp-pin { flex: none; color: var(--mute-2); display: inline-flex; }
.qp-cherche { flex: 1; min-width: 120px; max-width: 240px; height: 28px; margin-left: auto; padding: 0 10px; border: 1px solid var(--line); border-radius: 999px; background: transparent; font: inherit; font-size: 13px; color: var(--ink); }
.qp-cherche:focus { outline: none; border-color: var(--box); }

@media (max-width: 760px) {
  .main > .chat-pop { bottom: calc(9px + var(--qd-clavier, 0px) + env(safe-area-inset-bottom, 0px)); }
  .qd-stop { height: 30px; font-size: 13.5px; }
  .qd-det > summary { height: 32px; font-size: 13.5px; }
  .qp-filters:has(.qp-cherche) { flex-wrap: wrap; overflow: visible; }
  .qp-cherche { max-width: none; flex-basis: 100%; margin: 6px 0 0; height: 34px; font-size: 15px; }
}
/* Lot R10, point 6 : la réponse figée entre la fin du tour et le message enregistré garde sa place, sans « Arrêter » ni roue */
.qd-fige .qd-live-h { visibility: hidden; }

/* ── src/css/45-chat.css ── */
/* v2 — Chat sans fenêtre flottante : panneau, tiroir ancré, carte dans le fil, pleine page */
.chat-root { display: flex; flex-direction: column; min-height: 0; }
.pane.chat .c-msgs { flex: 1; }
.pane.chat .composer { margin: 8px 14px 14px; }
.cl-head { flex: none; height: 38px; display: flex; align-items: center; gap: 7px; padding: 0 8px 0 14px; }
.cl-head .cs-title { flex: 1; }

/* Tiroir : ancré au-dessus de la barre du bas, sans ombre ni flottement */
.chat-dock { flex: none; height: 0; overflow: hidden; background: #fff; border-top: 1px solid transparent; transition: height 300ms var(--ease), border-color 200ms; position: relative; z-index: 2; }
.chat-dock.open { height: min(46vh, 440px); border-top-color: var(--hair-soft); }
.chat-dock .chat-root { height: min(46vh, 440px); max-width: 780px; margin: 0 auto; }
.chat-dock .c-msgs { flex: 1; padding-top: 6px; }
.chat-dock .composer { margin: 6px 14px 12px; }

/* Carte dans le fil : même matière qu'une tâche ouverte */
.chat-card { display: grid; grid-template-rows: 0fr; margin: 0 -12px 0 -14px; transition: grid-template-rows 300ms var(--ease), margin 300ms var(--ease); }
.chat-card.in { grid-template-rows: 1fr; margin-top: 6px; margin-bottom: 30px; }
.cc-in { min-height: 0; overflow: hidden; display: flex; flex-direction: column; border-radius: var(--r-card); background: #fff; box-shadow: 0 0 0 0 transparent; transition: box-shadow 300ms ease; }
.chat-card.in .cc-in { box-shadow: var(--shadow-card); overflow: visible; }
.chat-card .cl-head { padding-left: 14px; }
.chat-card .c-msgs { max-height: 380px; min-height: 0; padding: 4px 16px 6px; }
.chat-card .composer { margin: 6px 10px 10px; }

.cs-head { flex: none; height: 40px; display: flex; align-items: center; gap: 7px; padding: 0 8px 0 14px; border-bottom: 1px solid var(--hair-soft); }
.cs-title { flex: 1; min-width: 0; font-size: 13px; font-weight: 600; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.c-msgs { flex: 1; min-height: 120px; padding: 16px 18px 6px; display: flex; flex-direction: column; gap: 14px; }
.chat-sheet .c-msgs { max-height: 440px; }
.msg { display: flex; flex-direction: column; max-width: 100%; animation: msg-in 260ms var(--ease-out) both; }
.msg.sans-entree { animation: none; }   /* un bloc redessiné à sa place (relecture, réponse qui s'écrit) n'entre pas une seconde fois */
@keyframes msg-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.msg.me { align-items: flex-end; }
.bubble { max-width: 82%; padding: 7px 12px; border-radius: 15px 15px 4px 15px; background: var(--field); color: var(--ink); font-size: 14px; line-height: 20px; }
.bubble p, .m-text p { margin: 0 0 8px; }
.bubble p:last-child, .m-text p:last-child, .m-text ul:last-child { margin-bottom: 0; }
.m-text { font-size: 14px; line-height: 21px; color: #2b2b2d; }
.m-text ul { margin: 0 0 8px; padding: 0; list-style: none; }
.m-text li { margin: 3px 0; padding-left: 15px; position: relative; }
.m-text li::before { content: ""; position: absolute; left: 3px; top: 9px; width: 4px; height: 4px; border-radius: 50%; background: #c1c3c6; }
.used-row { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 6px; }
.used { display: inline-flex; align-items: center; gap: 4px; height: 18px; padding: 0 8px 0 6px; border-radius: 9px; background: var(--ai-soft); color: #4a78c8; font-size: 11.5px; font-weight: 600; }
.m-cites { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 9px; }
.m-tasks { margin-top: 9px; border-radius: 9px; box-shadow: inset 0 0 0 1px var(--hair); padding: 3px 4px; }
.m-task { display: flex; align-items: center; gap: 9px; width: 100%; min-height: 28px; padding: 0 8px; border-radius: 6px; text-align: left; }
.m-task:hover { background: var(--field); }
.m-task i, .mn-cb { width: 12px; height: 12px; border: 1px solid var(--box); border-radius: 3px; flex: none; display: inline-block; background: #fff; }
.m-task i.done { background: var(--check); border-color: var(--check); }
.m-task span { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 13.5px; }
.m-task small { color: var(--mute); font-size: 12px; flex: none; }
.mn { display: inline-flex; align-items: center; gap: 4px; height: 20px; padding: 0 7px 0 5px; margin: 0 1px; border-radius: 6px; background: #eceef6; color: #3a4a8c; font-size: 13px; font-weight: 600; vertical-align: -4px; max-width: 260px; cursor: default; user-select: none; -webkit-user-select: none; }
.mn > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mn .av { width: 14px; height: 14px; font-size: 7.5px; }
.mn .mn-cb { width: 10px; height: 10px; }
.msg .mn:hover { background: #e0e4f3; }
/* v14 — au téléphone, une mention reste à la taille du texte (la règle des champs de saisie de 90-mobile.css la grossissait à 16 px) */
@media (max-width: 760px) { .msg .mn { font-size: 13.5px !important; height: 22px; } }
.typing { flex-direction: row; gap: 4px; padding: 6px 0; }
.typing span { width: 6px; height: 6px; border-radius: 50%; background: #b5cdf5; animation: blink 1.1s infinite both; }
.typing span:nth-child(2) { animation-delay: .16s; }
.typing span:nth-child(3) { animation-delay: .32s; }
@keyframes blink { 0%, 80%, 100% { opacity: .3; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-2px); } }

/* v14 — Une conversation vide est vide : plus de texte d'accueil ni de questions proposées. */

.composer { flex: none; margin: 8px 10px 10px; padding: 9px 8px 6px 12px; border-radius: 13px; background: #f4f5f7; position: relative; transition: box-shadow 140ms, background-color 140ms; }
.composer:focus-within { background: #fff; box-shadow: 0 0 0 1px #c6dbfb, 0 0 0 4px rgba(46,124,246,.10); }
.c-input { min-height: 22px; max-height: 140px; font-size: 14px; line-height: 22px; color: var(--ink); padding-right: 4px; word-break: break-word; }
.c-bar { display: flex; align-items: center; gap: 3px; margin-top: 5px; }
.c-bar .ctx-chip { margin-right: 5px; background: #fff; }
.composer:focus-within .ctx-chip { background: #f4f5f7; }
.c-btn { width: 26px; height: 24px; border-radius: 6px; display: grid; place-items: center; color: #9a9da2; }
.c-btn:hover { color: #5d5e62; background: rgba(0,0,0,.05); }
.c-btn.rec { color: var(--ai); background: rgba(0,0,0,.05); }
.c-send { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; color: var(--ai); margin-left: 3px; transition: transform 120ms; }
.c-send:active { transform: scale(.9); }
.mn-menu { position: absolute; left: 6px; right: 6px; bottom: calc(100% + 6px); max-height: 280px; border-radius: 11px; background: #f4f5f7; box-shadow: var(--shadow-pop); padding: 5px; z-index: 5; animation: msg-in 150ms var(--ease-out) both; }

/* v14 — La page QISPI (la liste des conversations) est dans 41-qispi.css. L'ancienne vue pleine page n'existe plus. */

/* v5 — Le chat du bas, à la manière de Granola : la barre est la zone de saisie ; la discussion se déplie au-dessus après l'envoi. */
.ask-slot { width: min(420px, 44vw); height: 32px; margin: 0 14px; flex: none; }
.ask-pill.live { background: var(--ai-soft); color: var(--ai-ink); }
.ask-pill .ap-t { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.ap-re { margin-left: auto; display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 600; opacity: .75; flex: none; }
.chat-scrim { position: absolute; inset: 0; z-index: 19; background: rgba(236, 238, 242, 0); pointer-events: none; transition: background-color 220ms ease; }
.chat-scrim.in { background: rgba(236, 238, 242, .5); pointer-events: auto; }

.chat-pop {
  position: absolute; left: 50%; bottom: 8px; transform: translateX(-50%); z-index: 20; width: min(420px, 44vw);
  display: flex; flex-direction: column; min-height: 0; border-radius: 18px; background: transparent;
  border: 1px solid transparent; box-shadow: none;
  transition: width 260ms var(--ease), box-shadow 220ms ease, border-color 220ms ease, background-color 160ms ease;
}
.chat-pop[hidden] { display: none; }
.chat-pop.focus, .chat-pop.open { width: min(720px, calc(100% - 32px)); }
.chat-pop.open { background: #fff; border-color: #cfd3da; box-shadow: 0 24px 64px rgba(16, 20, 28, .26), 0 6px 18px rgba(16, 20, 28, .12); }
.chat-pop.big.open { width: min(960px, calc(100% - 32px)); }

/* La discussion : absente tant qu'on n'a rien envoyé */
.chat-pop .cp-card { display: grid; grid-template-rows: 0fr; opacity: 0; min-height: 0; transition: grid-template-rows 320ms var(--ease), opacity 180ms ease; }
.chat-pop.open .cp-card { grid-template-rows: 1fr; opacity: 1; }
.cp-card-in { min-height: 0; overflow: hidden; display: flex; flex-direction: column; max-height: min(560px, calc(100vh - 190px)); border-radius: 17px 17px 0 0; }
.cp-head { flex: none; height: 42px; display: flex; align-items: center; gap: 4px; padding: 0 8px; background: #f6f7f9; border-bottom: 1px solid #e6e8ec; }
.cp-hist { display: inline-flex; align-items: center; gap: 3px; height: 28px; padding: 0 7px; border-radius: 7px; color: #6f7277; flex: none; }
.cp-hist:hover { background: rgba(0,0,0,.06); color: var(--ink-2); }
.cp-head .cs-title { flex: 1; min-width: 0; padding-left: 2px; color: var(--ink-2); font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat-pop .c-msgs { flex: 1; min-height: 120px; padding: 16px 20px 12px; background: #fff; }
.chat-pop .bubble { background: #eceef2; }

/* La barre : un champ bordé, toujours là */
.chat-pop .c-comp { flex: none; }
.cp-bar.composer {
  margin: 0; padding: 0 5px 0 10px; min-height: 34px; display: flex; align-items: flex-end; gap: 7px; border-radius: 17px;
  background: #fff; border: 1px solid #d9dce2; box-shadow: 0 1px 2px rgba(16, 20, 28, .06);
  transition: border-color 140ms, box-shadow 140ms;
}
.chat-pop.focus:not(.open) .cp-bar.composer { border-color: #9fc0f5; box-shadow: 0 0 0 3px rgba(46, 124, 246, .14), 0 8px 24px rgba(16, 20, 28, .12); }
.chat-pop.open .cp-bar.composer { border: 0; border-top: 1px solid #e6e8ec; border-radius: 0 0 17px 17px; box-shadow: none; padding: 5px 7px 5px 14px; background: #fbfbfc; }
.cp-bar .cp-spark { flex: none; height: 32px; display: grid; place-items: center; }
.cp-bar .c-input { flex: 1; min-width: 0; min-height: 22px; max-height: 120px; padding: 5px 0; font-size: 14px; line-height: 22px; }
/* Au repos : une seule ligne, jamais de retour à la ligne dans la barre */
.chat-pop:not(.focus):not(.open) .cp-bar .c-input { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-height: 32px; }
.chat-pop:not(.focus):not(.open) .cp-bar .c-input:empty::before { display: block; overflow: hidden; text-overflow: ellipsis; }
.chat-pop:not(.focus):not(.open) .cp-live:not([hidden]) ~ .c-bar .ctx-chip { display: none; }
.cp-bar .c-bar { flex: none; margin: 0; height: 32px; display: flex; align-items: center; gap: 2px; }
.cp-bar .c-btn, .cp-bar .c-send { display: none; }
.chat-pop.focus .cp-bar .c-btn, .chat-pop.open .cp-bar .c-btn { display: grid; }
.chat-pop.focus .cp-bar .c-send, .chat-pop.open .cp-bar .c-send { display: grid; }
.cp-bar .ctx-chip { background: #f4f5f7; box-shadow: none; margin-right: 2px; }
.cp-bar .ctx-chip.none { display: none; }
.cp-live { flex: none; align-self: center; display: inline-flex; align-items: center; gap: 4px; height: 22px; max-width: 150px; padding: 0 8px 0 6px; border-radius: 11px; background: var(--ai-soft); color: var(--ai-ink); font-size: 12px; font-weight: 600; }
.cp-live[hidden] { display: none; }
.cp-live svg { transform: rotate(180deg); flex: none; }
.cp-live span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chat-pop.open .cp-live { display: none; }
.cp-bar .mn-menu { left: 0; right: 0; }

/* v6 — Quand la zone centrale est étroite (barre de droite ouverte), la barre de chat se resserre au lieu de pousser les boutons */
.ask-slot { flex: 1 1 0; min-width: 0; max-width: 420px; width: auto; }
.chat-pop { width: min(420px, calc(100% - 200px)); }

/* ── src/css/47-panes.css ── */
/* v2 — Espace à panneaux, navigateur de notes en arbre, note en plein panneau */
.ws { flex: 1; min-height: 0; min-width: 0; display: flex; }
.pane { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; background: var(--bg); position: relative; }
.pane.view { background: transparent; }
.pane-div { width: 1px; flex: none; background: var(--hair-soft); position: relative; cursor: col-resize; z-index: 3; }
.pane-div::after { content: ""; position: absolute; top: 0; bottom: 0; left: -4px; right: -4px; }
.pane-div:hover, body.is-resizing .pane-div { background: #d5d8de; }
body.is-resizing, body.is-resizing * { cursor: col-resize !important; user-select: none !important; -webkit-user-select: none !important; }
.ws.solo .pane:not(.view), .ws.solo .pane-div { display: none; }
.pane.flash::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: rgba(76,142,245,.07); animation: pane-flash 500ms ease-out both; z-index: 5; }
@keyframes pane-flash { from { opacity: 1; } to { opacity: 0; } }
.pane:not(.view) { animation: pane-in 260ms var(--ease) both; }
@keyframes pane-in { from { opacity: 0; transform: translateX(10px); } to { opacity: 1; transform: none; } }

.pane-top { height: 52px; flex: none; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 0 12px 0 14px; position: relative; z-index: 1; }
.pt-l, .pt-r { display: flex; align-items: center; gap: 2px; min-width: 0; }
.pt-l { flex: 1; }
.pt-r { flex: none; }
.pt-title { display: inline-flex; align-items: center; gap: 6px; min-width: 0; color: var(--mute-2); font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; margin-left: 4px; }
.pt-title a, .pt-title span { overflow: hidden; text-overflow: ellipsis; }
.pt-title a:hover { color: var(--ink-2); }
.pt-title svg { opacity: .6; }
.pane.view.scrolled .main-top .crumb { opacity: 1; }
.pane-scroll { flex: 1; min-height: 0; }
.main-scroll { flex: 1; min-height: 0; }
/* Marges de la colonne quand l'espace se partage */
.ws.multi:not(.solo) .col { padding-left: 34px; padding-right: 30px; }
.ws.n3:not(.solo) .col { padding-left: 26px; padding-right: 22px; }
.ws.multi:not(.solo) .lh-title { font-size: 21px; }

/* ── Note en plein panneau ── */
.pane.note .reader { min-height: 100%; }
.pane.note .r-in { padding: 4px 40px 80px; max-width: 720px; margin: 0 auto; }
.ws.n3 .pane.note .r-in { padding-left: 26px; padding-right: 26px; }
.r-chan { color: var(--mute-2); font-weight: 600; }
.r-chan::before { content: "· "; }
.reader h2[contenteditable] { cursor: text; }
.r-body[contenteditable] { min-height: 120px; }
.r-body[contenteditable]:empty::before { font-style: italic; }
.r-todo i { cursor: default; }
.r-kids { margin-top: 30px; padding-top: 6px; border-top: 1px solid var(--hair); user-select: none; -webkit-user-select: none; }
.r-kid { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 34px; padding: 3px 6px; margin: 0 -6px; border-radius: 7px; text-align: left; }
.r-kid:hover { background: var(--field); }
.r-kid .n-ico { margin: 0; width: 24px; height: 24px; }
.rk-t { flex: 1; min-width: 0; font-size: 13.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.r-kid small { color: #a9abb0; font-size: 12px; flex: none; }
.r-kid.add { color: var(--mute-2); }
.r-kid.add .rk-t { font-weight: 500; }
.r-kid.add .n-ico { background: var(--field); }

/* ── Navigateur de notes : arbre ── */
.panel { --panel-w: 328px; }
.tree { padding: 0 8px 24px; }
.trow { display: flex; align-items: flex-start; gap: 8px; width: 100%; padding: 6px 6px 7px calc(2px + var(--d, 0) * 18px); border-radius: 8px; text-align: left; position: relative; cursor: default; }
.trow:hover { background: #f6f7f8; }
.trow.on { background: var(--sel); }
.trow.drop { background: #dbe6fb; box-shadow: inset 0 0 0 1.5px #8fb4f3; }
.trow .tw { width: 14px; height: 26px; flex: none; display: grid; place-items: center; color: #b0b2b7; border-radius: 4px; margin-right: -3px; }
.trow button.tw:hover { color: #5d5e62; background: rgba(0,0,0,.06); }
.trow .tw svg { transition: transform 180ms var(--ease); }
.trow .tw.open svg { transform: rotate(90deg); }
.trow .n-ico { width: 26px; height: 26px; margin: 0; }
.tr-main { flex: 1; min-width: 0; display: grid; gap: 0; padding-top: 1px; }
.tr-t { font-size: 13.5px; font-weight: 600; color: var(--ink); line-height: 18px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tr-m { display: flex; align-items: center; gap: 4px; font-size: 11.5px; line-height: 15px; color: #a3a5aa; min-width: 0; }
.tr-m span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tr-open { width: 24px; height: 24px; flex: none; border-radius: 6px; display: grid; place-items: center; color: #9a9da2; opacity: 0; margin-top: 1px; }
.trow:hover .tr-open { opacity: 1; }
.tr-open:hover { background: rgba(0,0,0,.07); color: #5d5e62; }
.trow.add { color: var(--mute-2); margin-top: 4px; align-items: center; }
.trow.add .tr-t { font-weight: 500; color: var(--mute-2); }
.trow.add .n-ico { background: var(--field); }
.trow.ctx .tr-t { color: var(--ai-ink); }
.nat-dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; flex: none; }
.ty .nat-dot { margin: 0 1px; }

.r-type { flex-wrap: wrap; row-gap: 5px; white-space: nowrap; }
.r-by { white-space: nowrap; }
.pane.chat .c-msgs { padding-left: 16px; padding-right: 16px; }

/* v3 — autre fil en panneau, nouvel onglet, portée du navigateur, recherche visible */
.pane.lst { background: transparent; }
.pane.new .new-host { flex: 1; min-height: 0; display: flex; flex-direction: column; padding: 4px 28px 0; }
.icon-btn[disabled] { opacity: .35; pointer-events: none; }
.p-scope { height: 52px; flex: none; display: flex; align-items: center; gap: 2px; padding: 0 10px 0 10px; }
.p-scope-b { display: inline-flex; align-items: center; gap: 7px; height: 28px; padding: 0 9px 0 8px; border-radius: 7px; font-size: 14px; font-weight: 700; color: var(--ink); min-width: 0; max-width: 62%; }
.p-scope-b span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.p-scope-b > svg:last-child { opacity: .45; flex: none; }
.p-scope-b:hover { background: rgba(0,0,0,.05); }
.p-follow { width: 24px; height: 24px; border-radius: 6px; display: grid; place-items: center; color: var(--ai); background: var(--ai-soft); }
.p-follow:hover { background: #d6e5fd; }
.panel .p-head { height: 34px; padding: 0 12px 6px; justify-content: flex-start; }
.sb-search { display: flex; align-items: center; gap: 7px; width: calc(100% - 26px); height: 26px; margin: 0 13px 14px; padding: 0 8px; border-radius: 7px; background: rgba(0,0,0,.045); color: #8b8d92; font-size: 13px; text-align: left; }
.sb-search span { flex: 1; }
.sb-search:hover { background: rgba(0,0,0,.07); }
.sb-notes { width: 20px; height: 20px; flex: none; border-radius: 5px; display: none; place-items: center; color: #9a9da2; margin-right: -3px; }
.sb-row:hover .sb-notes { display: grid; }
.sb-row:hover .sb-dot { display: none; }
.sb-notes:hover { background: rgba(0,0,0,.08); color: #55575c; }

/* v3 — page Recherche, sur le modèle de Things */
.srch-field { display: flex; align-items: center; gap: 8px; height: 32px; margin-top: 14px; padding: 0 8px 0 10px; border-radius: 10px; background: #e7e8ec; color: #6f7277; }
.srch-in { flex: 1; min-width: 0; border: 0; outline: none; background: transparent; font-size: 15px; color: var(--ink); user-select: text; -webkit-user-select: text; }
.srch-in::placeholder { color: #9a9da2; }
.srch-x { width: 22px; height: 22px; border-radius: 6px; display: grid; place-items: center; color: #55575c; }
.srch-x:hover { background: rgba(0,0,0,.08); }
.srch-hint { margin: 18px 0 0; color: var(--mute); font-size: 13px; }
.srch-res mark, .pal mark { background: #fbe9a8; color: inherit; border-radius: 2px; padding: 1px 0; }
.srch-g { color: var(--ink); }
.srch-gi { display: grid; place-items: center; width: 16px; margin-left: -1px; }
.srch-sn { margin: -3px 0 4px 21px; color: var(--mute); font-size: 12px; line-height: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.srch-notes { margin: 0 -8px; }
.srch-notes .trow .tw { display: none; }
.srch-res .prow .mini { margin-left: 10px; opacity: 0; }
.srch-res .prow:hover .mini { opacity: 1; }
.srch-res .prow .p-meta { margin-left: auto; }
.sb-search.on { background: var(--sel); color: var(--ink-side); }

/* v4 — icônes de fils, indentation, conversations visibles, fond identique à droite et à gauche */
.li-tile { display: inline-grid; place-items: center; flex: none; }
.sb-row.sub { padding-left: 24px; }
.sb-row.sub::before { content: ""; position: absolute; left: 15px; top: -2px; bottom: -2px; width: 1px; background: #e4e6ea; }
.sb-row.conv { font-weight: 400; color: #5a5d61; padding-left: 24px; }
.sb-row.conv .sb-ico { width: 9px; }
.conv-dot { width: 5px; height: 5px; border-radius: 50%; background: #c8cacd; display: block; }
.sb-row.conv.live .conv-dot { background: var(--ai); }
.sb-row.conv:hover { background: rgba(0,0,0,.04); }
.panel, .panel.open { background: var(--sidebar); }
.trow:hover, .nrow:hover { background: rgba(0,0,0,.04); }
.fil-convs-h { margin-top: 44px; }
.fil-convs { margin: 0 -8px; }
.fc-row { display: flex; align-items: baseline; gap: 10px; min-height: 28px; padding: 4px 8px; border-radius: 6px; }
.fc-row:hover { background: var(--field); }
.fc-t { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; flex: none; max-width: 46%; }
.fc-x { flex: 1; min-width: 0; color: var(--mute); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fc-d { flex: none; color: #a9abb0; font-size: 12px; }
.fc-row.new { color: var(--mute-2); align-items: center; }
.fc-row.new .fc-t { font-weight: 500; max-width: none; }

/* v5 — la note du jour épinglée dans le navigateur */
.trow.jour { margin-bottom: 6px; align-items: center; }
.trow.jour .tr-t { color: var(--ink); }

/* v11 — La zone de droite : des cartes nettes sur un fond teinté, plus de traits gris. Quatre dispositions. */
.ws.has-drawer .pane.view { flex: 1.1 1 0; min-width: 300px; }
.drawer { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; background: #f1f2f4; container: drawer / inline-size; }
.main-div { width: 7px; margin: 0 -3px; background: transparent; z-index: 6; }
.main-div::after { display: none; }
.main-div:hover, body.is-resizing .main-div { background: linear-gradient(to right, transparent 2px, #b9c6dc 2px, #b9c6dc 5px, transparent 5px); }

/* La barre : les onglets, puis les boutons de l'extrême droite */
.dr-bar { flex: none; display: flex; align-items: center; gap: 4px; height: 44px; padding: 0 10px 0 8px; min-width: 0; }
.dr-tabs { flex: 0 1 auto; min-width: 0; display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; }
.dr-tabs::-webkit-scrollbar { display: none; }
.dr-sp { flex: 1 1 0; min-width: 6px; }
.tb-cluster { flex: none; display: inline-flex; align-items: center; gap: 2px; }
.dr-tab { position: relative; flex: 0 1 190px; min-width: 56px; display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 8px; border-radius: 7px; color: #77797e; font-size: 12.5px; font-weight: 600; transition: background-color 120ms, color 120ms; }
.dr-tab:hover { background: rgba(0, 0, 0, .05); color: var(--ink-2); }
.dr-tab.on { background: #fff; color: var(--ink); box-shadow: 0 0 0 1px rgba(16, 20, 28, .07), 0 1px 2px rgba(16, 20, 28, .06); }
.dr-tab-i { flex: none; display: grid; place-items: center; width: 13px; height: 13px; }
.dr-tab-t { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-align: left; }
.dr-tab:not(.pin) .dr-tab-t { font-style: italic; }
.dr-tab-p { flex: none; display: grid; place-items: center; color: var(--ai); }
.dr-tab-x { flex: none; display: none; place-items: center; width: 16px; height: 16px; margin-right: -3px; border-radius: 4px; color: #8a8c91; }
.dr-tab:hover .dr-tab-x { display: grid; }
.dr-tab:hover .dr-tab-p { display: none; }
.dr-tab-x:hover { background: rgba(0, 0, 0, .09); color: var(--ink); }
.dr-peek-t { display: inline-flex; align-items: center; gap: 6px; min-width: 0; margin-left: 4px; color: var(--ink-2); font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; }
.dr-peek-t span:last-child { overflow: hidden; text-overflow: ellipsis; }
.dr-peek-n { flex: none; margin-left: 6px; color: var(--mute-2); font-size: 12px; font-weight: 600; }
.dr-bar .icon-btn[disabled] { opacity: .35; pointer-events: none; }
.dr-btn { width: auto; min-width: 30px; padding: 0 6px; gap: 3px; display: inline-flex; align-items: center; }
.dr-btn i { font-style: normal; font-size: 11.5px; font-weight: 700; }
.nav-back[hidden] { display: none; }

/* Les documents : des cartes */
.dr-row { flex: 1; min-height: 0; display: flex; gap: 8px; padding: 0 8px 8px; position: relative; overflow: hidden; }
.dr-row > .pane { flex: 1 1 0; min-width: 0; background: #fff; border-radius: 10px; overflow: hidden; box-shadow: 0 0 0 1px rgba(16, 20, 28, .07), 0 1px 3px rgba(16, 20, 28, .05); animation: none; }
.dr-row > .pane .pane-top { height: 40px; padding: 0 8px 0 6px; }
.pin-btn { color: #c1c3c6; }
.pin-btn:hover { color: #8c8e91; }
.pin-btn.on { color: var(--ai); background: transparent; }
.ws.has-drawer .col { padding-left: 34px; padding-right: 30px; }
.drawer .pane.note .r-in { padding-left: 26px; padding-right: 26px; }
.drawer .pane.page .pg-back { display: none; }
.drawer .pane.page .col { padding: 0 26px 60px; max-width: none; }

/* 1. Onglets et 4. Aperçu : un seul document visible */
.lay-onglets .dr-row > .pane:not(.act), .lay-apercu .dr-row > .pane:not(.act) { display: none; }
.lay-apercu .pin-btn { display: none; }

/* 2. Colonnes : les épinglés restent à l'écran, plus l'onglet courant */
.lay-colonnes .dr-row { overflow-x: auto; scrollbar-width: thin; }
.lay-colonnes .dr-row > .pane:not(.act):not([data-pin]) { display: none; }
.lay-colonnes .dr-row > .pane { flex: 1 0 320px; }

/* 3. Piles : côte à côte ; en défilant, ceux de gauche se rangent en tranche */
.lay-piles .dr-row { overflow-x: auto; gap: 0; scrollbar-width: thin; padding-right: 8px; }
.lay-piles .dr-row > .pane { flex: 0 0 min(520px, calc(100% - 84px)); position: sticky; left: calc(var(--k) * 36px); margin-right: 8px; box-shadow: 0 0 0 1px rgba(16, 20, 28, .07), -8px 0 18px rgba(16, 20, 28, .07); }
.lay-piles .dr-row > .pane:last-child { flex-basis: min(620px, calc(100% - 8px)); }
.spine { display: none; }
.lay-piles .pane.tucked > *:not(.spine) { opacity: 0; pointer-events: none; }
.lay-piles .pane.tucked > .spine { display: flex; position: absolute; left: 0; top: 0; bottom: 0; width: 36px; z-index: 3; align-items: flex-start; justify-content: center; padding-top: 14px; background: #fff; color: #6f7277; }
.lay-piles .pane.tucked > .spine:hover { background: #f6f7f9; color: var(--ink); }
.spine span { writing-mode: vertical-rl; font-size: 12.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-height: 70%; }

/* Replier les tâches : il ne reste qu'un rail à gauche */
.ws.notes-only > .pane.view, .ws.notes-only > .main-div { display: none; }
.ws.notes-only > .drawer { flex: 1 1 auto !important; }
.view-rail { flex: none; width: 44px; display: flex; flex-direction: column; align-items: center; gap: 4px; padding-top: 11px; background: var(--bg); box-shadow: 1px 0 0 var(--hair-soft); z-index: 2; }
.rail-t { margin-top: 10px; writing-mode: vertical-rl; color: var(--mute); font-size: 12.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-height: 50%; cursor: default; }
.rail-t:hover { color: var(--ink-2); }
/* Le titre est déjà dans l'onglet : pas de doublon dans l'en-tête d'une conversation */
.lay-onglets .pane.chat .pt-title, .lay-apercu .pane.chat .pt-title { visibility: hidden; }

/* v12 — Sessions de travail : le sélecteur, parmi les boutons de l'extrême droite */
.ses-pick { display: inline-flex; align-items: center; gap: 5px; height: 26px; max-width: 190px; padding: 0 8px; margin-right: 4px; border-radius: 7px; background: #fff; box-shadow: 0 0 0 1px rgba(16, 20, 28, .09); color: var(--ink-2); font-size: 12.5px; font-weight: 600; }
.ses-pick span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ses-pick:hover { background: #f6f7f9; }
.ses-pick svg { flex: none; opacity: .7; }

/* v12 — Épinglé partout (la poche) : l'épingle passe en jaune */
.pin-btn.all, .dr-tab-p.all { color: #e2a400; }
/* v12 — L'index des conversations, rangées par projet */
.ci-new { display: inline-flex; align-items: center; gap: 7px; height: 28px; padding: 0 10px 0 8px; margin: 14px 0 0 -8px; border-radius: 7px; color: var(--ai-ink); font-size: 13.5px; font-weight: 600; }
.ci-new:hover { background: var(--ai-soft); }
.ci-sec { margin-top: 24px; }
.ci-h { display: flex; align-items: center; gap: 7px; margin: 0 0 2px; padding-bottom: 6px; border-bottom: 1px solid var(--hair); color: var(--ink); font-size: 14px; font-weight: 700; cursor: default; }
.ci-h i { margin-left: auto; font-style: normal; color: var(--mute-2); font-size: 12.5px; font-weight: 600; }
.ci-row { display: flex; align-items: center; gap: 9px; min-height: 30px; margin: 0 -8px; padding: 0 8px; border-radius: 7px; cursor: default; }
.ci-row:hover, .ci-row.on { background: #f4f5f7; }
.ci-row > span:first-child { flex: none; display: grid; place-items: center; width: 14px; }
.ci-t { flex: 1; min-width: 0; color: var(--ink); font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ci-m { flex: none; color: var(--mute-2); font-size: 12.5px; }
@media (max-width: 760px) { .ci-row { min-height: 42px; } .ci-t { font-size: 16px; } }

/* v12 — Le point du jour, sur la page Aujourd'hui */
.jr-point { position: relative; margin-top: 16px; }
.jr-point-a { position: absolute; right: 12px; top: 10px; display: inline-flex; align-items: center; gap: 4px; color: var(--mute); font-size: 12px; font-weight: 600; cursor: pointer; }
.jr-point-a:hover { color: var(--ink-2); }

/* ── src/css/49-today.css ── */
/* v14 · Aujourd'hui : la page d'accueil. Une colonne calme : la date, le lot à signer, la journée dans l'ordre, ce qui est fait.
   Couleurs : le bleu porte ce que l'assistant a préparé et le bouton qui signe ; le rouge n'est qu'un point de 6 px
   (devant « À signer », et sur une tâche qui attend une réponse) ; le jaune ne marque que « maintenant » ; le vert, ce qui vient d'être signé.
   La page vit dans un panneau de 320 à 1100 px : les adaptations passent par des requêtes de conteneur. */
.td { container: td / inline-size; --td-g: 56px; --td-rh: var(--row); }

/* ── 1. En-tête : la date, et un lien discret vers la semaine ── */
.td-head { display: flex; align-items: center; gap: 12px; min-height: 28px; margin-top: 18px; }
.td-title { flex: 1 1 auto; min-width: 0; margin: 0; }
.td-week { flex: none; display: inline-flex; align-items: center; gap: 4px; height: 24px; padding: 0 6px 0 8px; margin-right: -6px; border-radius: 6px; color: var(--mute-2); font-size: 13px; font-weight: 600; transition: background-color 120ms, color 120ms; }
.td-week:hover { color: var(--ink-2); background: var(--field); }

/* Titres de section */
.td-h { display: flex; align-items: center; gap: 7px; height: 28px; margin: 30px 0 4px; padding-bottom: 6px; border-bottom: 1px solid var(--hair); color: var(--ink); font-size: 14px; line-height: 20px; font-weight: 700; }
.td-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--need); flex: none; }

/* ── 2. À signer ── */
.td-lot { overflow: hidden; }
.td-lot .td-h { margin-top: 28px; }
.td-p { border-bottom: 1px solid var(--hair-soft); overflow: hidden; }
.td-ps > .td-p:last-child { border-bottom-color: transparent; }
.td-p-h { display: flex; align-items: flex-start; gap: 10px; padding: 9px 0 10px; border-radius: 6px; }
.td-p-i { flex: none; width: 16px; height: 20px; display: grid; place-items: center; color: var(--mute-2); }
.td-p-m { flex: 1 1 auto; min-width: 0; }
.td-p-t { min-width: 0; color: var(--ink); font-size: 14px; line-height: 20px; font-weight: 500; text-wrap: pretty; }
.td-chev { display: inline-grid; place-items: center; width: 12px; height: 12px; margin-left: 6px; vertical-align: -1px; color: var(--faint); opacity: 0; transition: transform 200ms var(--ease), opacity 120ms; }
.td-p-h:hover .td-chev, .td-p.open .td-chev { opacity: 1; }
.td-p.open .td-chev { transform: rotate(90deg); }
.td-p-r { color: var(--mute); font-size: 13px; line-height: 18px; }
.td-p-a { flex: none; display: flex; align-items: center; gap: 2px; margin-top: -3px; }

/* Signer : le bouton porte l'action recommandée. Le premier du lot est plein, les suivants attendent en bleu léger. */
.td-go { display: inline-flex; align-items: center; justify-content: center; height: 26px; padding: 0 12px; border-radius: 6px; background: var(--ai-soft); color: var(--ai-ink); font-size: 13px; font-weight: 600; white-space: nowrap; transition: background-color 140ms, color 140ms, transform 120ms; }
.td-go svg { width: 0; opacity: 0; transition: width 160ms var(--ease), opacity 120ms, margin 160ms var(--ease); }
.td-go:hover, .td-ps > .td-p:first-child .td-go, .td-p-f .td-go { background: var(--ai); color: #fff; }
.td-go:active { transform: scale(.97); }
.td-alt { height: 26px; padding: 0 8px; border-radius: 6px; color: var(--mute-2); font-size: 13px; font-weight: 500; white-space: nowrap; transition: background-color 120ms, color 120ms; }
.td-alt:hover { background: var(--field); color: var(--ink-2); }
/* Signé : le bouton passe au vert un instant, puis la pièce quitte le lot */
.td-p.td-signed .td-go, .td-ps > .td-p.td-signed:first-child .td-go { background: var(--green); color: #fff; }
.td-p.td-signed .td-go svg { width: 12px; opacity: 1; margin-right: 5px; }
.td-p.td-signed .td-alt { visibility: hidden; }
.td-leaving { transition: height 300ms var(--ease), opacity 200ms ease; opacity: 0; overflow: hidden; }

/* La pièce elle-même, dépliée */
.td-p-b { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 280ms var(--ease); }
.td-p.open .td-p-b { grid-template-rows: 1fr; }
.td-p-bi { overflow: hidden; min-height: 0; }
.td-doc { margin: 0 0 14px 26px; padding: 12px 14px; border-radius: 8px; background: var(--bg); box-shadow: inset 0 0 0 1px var(--hair); color: var(--ink-2); font-size: 13.5px; line-height: 20px; }
.main.has-open .td-doc { background: #fff; }
.td-doc-m { display: grid; grid-template-columns: auto 1fr; gap: 2px 12px; margin: 0 0 10px; padding-bottom: 9px; border-bottom: 1px solid var(--hair-soft); font-size: 12.5px; line-height: 18px; }
.td-doc-m dt { color: var(--mute-2); }
.td-doc-m dd { margin: 0; color: var(--ink-2); min-width: 0; }
.td-doc p { margin: 0 0 8px; }
.td-doc ul { margin: 0 0 8px; padding: 0; list-style: none; }
.td-doc li { position: relative; padding-left: 14px; margin-top: 4px; }
.td-doc li::before { content: ""; position: absolute; left: 3px; top: 8px; width: 4px; height: 4px; border-radius: 50%; background: var(--box); }
.td-doc-f { display: flex; align-items: center; gap: 10px; margin-top: 10px; user-select: none; -webkit-user-select: none; }
.td-open { display: inline-flex; align-items: center; gap: 4px; height: 22px; padding: 0 6px; margin-left: -6px; border-radius: 5px; color: var(--ai-ink); font-size: 12.5px; font-weight: 600; }
.td-open:hover { background: var(--ai-soft); }
.td-ex { flex: none; height: 15px; padding: 0 5px; border-radius: 4px; box-shadow: inset 0 0 0 1px var(--hair); color: var(--mute-2); font-size: 10.5px; font-weight: 600; line-height: 15px; letter-spacing: .01em; }
.td-doc-f .td-ex { margin-left: auto; }

/* Répondre autre chose */
.td-p-f { display: flex; gap: 6px; margin: 0 0 12px 26px; }
.td-p-f input { flex: 1 1 auto; min-width: 0; height: 30px; padding: 0 10px; border: 0; border-radius: 6px; background: var(--field); outline: none; font-size: 13.5px; user-select: text; -webkit-user-select: text; }
.td-p-f input:focus { background: var(--bg); box-shadow: inset 0 0 0 1.5px var(--ai); }
.td-p-f .td-go { height: 30px; }
.td-rest { margin: 6px 0 0 26px; color: var(--mute-2); font-size: 12px; line-height: 18px; }

/* ── 3. Ma journée : les heures dans la marge, les lignes de tâche à leur place ── */
.td-day { margin-top: 26px; }
.td-h + .td-day { margin-top: 6px; }
.td-h[hidden] + .td-day { margin-top: 22px; }
.td-it { position: relative; padding-left: var(--td-g); }
.td-hr { position: absolute; left: 0; top: 0; width: calc(var(--td-g) - 10px); height: var(--row); display: flex; align-items: center; color: var(--mute); font-size: 12px; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.td-it.past .td-hr { color: var(--mute-2); font-weight: 500; }
.td-it.solo .t-title { color: var(--mute); }

/* Un rendez-vous : une ligne à part entière, sans case à cocher */
.td-ev-b { display: flex; align-items: center; width: 100%; min-height: var(--row); text-align: left; border-radius: 5px; position: relative; }
.td-ev-b:hover::before { content: ""; position: absolute; inset: 1px -8px; border-radius: 5px; background: var(--field); z-index: 0; }
.td-ev-b > * { position: relative; z-index: 1; }
.td-bar { flex: none; width: 3px; height: 15px; margin: 0 13.5px 0 4.5px; border-radius: 2px; background: var(--ink); }
.td-ev-t { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink); font-size: 14px; line-height: 20px; font-weight: 600; }
.td-ev-p { flex: 0 1 auto; min-width: 0; margin-left: 9px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--mute); font-size: 13px; }
.td-ev-e { flex: none; margin-left: auto; padding-left: 12px; color: var(--mute-2); font-size: 12px; font-weight: 500; white-space: nowrap; }
.td-it.past .td-ev-t { font-weight: 500; color: var(--ink-2); }
.td-it.past .td-bar { background: var(--box); }

/* « Maintenant » : ce qui est au-dessus est passé, la première ligne en dessous est la suite */
.td-now { display: flex; align-items: center; gap: 8px; height: 26px; margin: 4px 0; }
.td-now b { flex: none; padding: 0 5px; border-radius: 4px; background: var(--yellow); color: #16171a; font-size: 11px; font-weight: 700; line-height: 16px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.td-now span { flex: none; color: var(--ink); font-size: 11px; font-weight: 700; line-height: 16px; }
.td-now i { flex: 1 1 auto; height: 0; border-top: 1px solid var(--ink); }

.td-sub { display: flex; align-items: center; gap: 0; height: 24px; margin: 16px 0 2px; padding-left: var(--td-g); color: var(--mute); font-size: 12px; font-weight: 700; }
.td-sub svg { margin: 0 9px 0 0; color: var(--moon); }
.td-none { margin: 18px 0 0; color: var(--mute-2); font-size: 13px; }

/* Ce que l'assistant a préparé, posé sur la ligne de la tâche */
.td .task .ai-mark { display: none; }                                      /* les pastilles d'état de 20-list.css : cette page a ses propres mentions, plus discrètes */
.td-mk { flex: none; display: inline-flex; align-items: center; gap: 4px; height: 18px; padding: 0 6px 0 4px; border-radius: 5px; color: var(--ai-ink); font-size: 12px; font-weight: 600; line-height: 18px; white-space: nowrap; transition: background-color 120ms; }
.td-mk:hover { background: var(--ai-soft); }
.td-spin { width: 9px; height: 9px; border-radius: 50%; border: 1.5px solid var(--ai-line); border-top-color: var(--ai); animation: spin 900ms linear infinite; margin-right: 1px; }
.td-rep { flex: none; color: var(--mute-2); font-size: 12px; line-height: 18px; white-space: nowrap; }
.td-wait { flex: none; display: inline-flex; align-items: center; gap: 5px; height: 18px; padding: 0 6px 0 4px; border-radius: 5px; color: var(--mute); font-size: 12px; font-weight: 600; white-space: nowrap; }
.td-wait i { width: 6px; height: 6px; border-radius: 50%; background: var(--need); }
.td-wait:hover { background: var(--field); }
.td-fil { flex: none; width: 22px; height: 18px; display: grid; place-items: center; border-radius: 5px; color: var(--mute-2); opacity: 0; transition: opacity 120ms, background-color 120ms; }
.td .task:hover .td-fil, .td .task.sel .td-fil, .td-fil:focus-visible { opacity: 1; }
.td-fil:hover { background: var(--field); color: var(--ink-2); }
.td-by { flex: none; display: inline-flex; color: var(--ai); opacity: .75; }
.td .task.open .td-mk, .td .task.open .td-rep, .td .task.open .td-wait, .td .task.open .td-fil, .td .task.open .td-by { display: none; }

/* ── 4. Fait aujourd'hui : une ligne, qui se déplie ── */
.td-done { margin-top: 22px; padding-left: var(--td-g); }
.td-done-h { display: inline-flex; align-items: center; gap: 0; height: 24px; padding: 0 8px 0 0; border-radius: 6px; color: var(--mute-2); font-size: 13px; font-weight: 600; transition: color 120ms; }
.td-done-h svg { margin: 0 12px 0 3px; transition: transform 200ms var(--ease); }
.td-done.open .td-done-h svg { transform: rotate(90deg); }
.td-done-h:hover { color: var(--ink-2); }
.td-done-l { margin-left: calc(-1 * var(--td-g)); }
.td-done.open .td-done-l { margin-top: 4px; animation: view-in 200ms ease both; }

/* ── Apparences ── */
:is(body[data-theme="primaires"]) .td :is(.td-go, .td-alt, .td-mk, .td-wait, .td-fil, .td-open, .td-week, .td-done-h, .td-ev-b):focus-visible { outline: 2px solid var(--ai); outline-offset: 2px; }

/* ── Panneau étroit (téléphone, vue partagée) ── */
@container td (max-width: 600px) {
  .td-p-h { flex-wrap: wrap; row-gap: 8px; }
  .td-p-m { flex: 1 1 calc(100% - 26px); }
  .td-p-a { margin: 0 0 0 26px; gap: 4px; }
  .td-chev { opacity: 1; }
}
/* Sous 480 px, une ligne ne tronque plus son titre pour loger le reste : les mentions passent dessous */
@container td (max-width: 480px) {
  .td .task:not(.open) .task-head { align-items: flex-start; padding-block: calc((var(--td-rh) - 20px) / 2); }
  .td .task:not(.open) .t-line { flex-wrap: wrap; row-gap: 1px; }
  .td .task:not(.open) .t-title { max-width: 100%; }
  .td .task:not(.open) .t-ico:first-child + .t-title { max-width: calc(100% - 17px); }
  .td .task:not(.open) .t-title ~ .t-ico { display: none; }
  .td .task.done:not(.open) .t-line { flex-wrap: nowrap; }                 /* une tâche faite garde son signe « par l'assistant » au bout du titre */
  .td .task .td-mk, .td .task .td-wait { height: 22px; margin: 0 0 -3px -4px; }
  .td .task .td-fil { height: 22px; margin-bottom: -3px; }
  .td-ev-b { flex-wrap: wrap; align-items: flex-start; padding-block: calc((var(--td-rh) - 20px) / 2); }
  .td-bar { margin-top: 2.5px; }
  .td-ev-t { flex: 1 1 0; order: 1; }                                      /* le titre et l'heure de fin sur la première ligne, les personnes dessous */
  .td-ev-e { order: 2; line-height: 20px; }
  .td-ev-p { order: 3; flex: 0 0 calc(100% - 21px); margin-left: 21px; line-height: 20px; }
}
@container td (max-width: 420px) {
  .td > * { --td-g: 50px; }                                               /* un conteneur ne se règle pas lui-même : la marge des heures se pose sur ses enfants */
  .td-doc, .td-p-f, .td-rest { margin-left: 0; }
}
@media (max-width: 760px) {
  .td { --td-rh: 40px; }
  .td-head { margin-top: 6px; }
  .td-hr { height: 40px; }
  .td-ev-b { min-height: 40px; }
  .td-ev-t { font-size: 16px; }
  .td-go, .td-alt { height: 34px; font-size: 15px; }
  .td-go { padding: 0 14px; }
  .td-p-t { font-size: 16px; line-height: 22px; }
  .td-p-r { font-size: 14px; line-height: 20px; }
  .td-mk, .td-wait { height: 26px; font-size: 13px; }
  .td-fil { opacity: 1; width: 30px; height: 26px; }
  .td-done-h { height: 36px; font-size: 14px; }
  .td-week { height: 34px; font-size: 15px; }
  .td-doc { font-size: 15px; line-height: 22px; }
}

/* v15 — « À revoir » : sur téléphone, le lot arrive replié en une ligne (le compte en gris), la journée d'abord */
.td-n, .td-fold-c { display: none; }
.td-foldable .td-h { cursor: pointer; -webkit-tap-highlight-color: transparent; }
.td-foldable .td-n { display: inline; margin-left: 2px; color: var(--mute-2); font-size: 14px; font-weight: 500; }
.td-foldable .td-fold-c { display: inline-flex; margin-left: auto; color: var(--mute-2); transform: rotate(90deg); }
.td-foldable.td-folded .td-fold-c { transform: none; }
.td-foldable.td-folded .td-ps, .td-foldable.td-folded .td-rest { display: none; }
.td-foldable.td-folded .td-h { border-bottom-color: transparent; }
.td-foldable:not(.td-folded) .td-n { display: none; }

/* R10, point 8 : une pièce validée qui n'est pas encore partie. Même ligne que la pièce, sans bouton bleu, sans rouge :
   ce qui se passe, en gris, et le seul geste utile (connecter un compte, réessayer). */
.td-env { display: flex; align-items: flex-start; gap: 10px; padding: 9px 0 10px; border-bottom: 1px solid var(--hair-soft); }
.td-ps > .td-env:last-child { border-bottom-color: transparent; }
.td-env .td-p-t { color: var(--ink-2); }
.td-env .td-p-r { text-wrap: pretty; }
.td-env .td-spin { display: inline-block; vertical-align: -1px; margin-right: 6px; }
/* R10, point 9 : la pièce dans la fiche de la tâche */
.tc-revoir { margin: 8px 0 2px; container: tcr / inline-size; }
@container tcr (max-width: 600px) {
  .tc-revoir .td-p-h, .tc-revoir .td-env { flex-wrap: wrap; row-gap: 8px; }
  .tc-revoir .td-p-m { flex: 1 1 calc(100% - 26px); }
  .tc-revoir .td-p-a { margin: 0 0 0 26px; gap: 4px; }
}
.tc-revoir .td-ps > :last-child { border-bottom-color: transparent; }
@container td (max-width: 600px) {
  .td-env { flex-wrap: wrap; row-gap: 6px; }
  .td-env .td-p-m { flex: 1 1 calc(100% - 26px); }
  .td-env .td-p-a { margin: 0 0 0 18px; }
}

/* ── src/css/50-planning.css ── */
/* Semaine : « Cette semaine » et une liste par jour, puis le jour heure par heure, le mois, à venir */
/* Une colonne de plus que les sept jours : la page prend la largeur qu'on lui laisse */
.col.pl-col { max-width: 1360px; height: 100%; padding: 0 clamp(24px, 3vw, 44px); }
.col.pl-col > .view { height: 100%; }
.pl { height: 100%; min-height: 0; display: flex; flex-direction: column; }
.pl-head { flex: none; }
.pl-range { flex: 0 1 auto; min-width: 0; margin-left: 6px; padding-top: 5px; color: var(--mute-2); font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pl-grow { flex: 1; }
.pl-nav { flex: none; display: inline-flex; align-items: center; gap: 1px; margin-right: 8px; transition: opacity 160ms ease; }
.pl-nav.off { opacity: 0; pointer-events: none; }
.pl-nav button { height: 24px; min-width: 24px; padding: 0 5px; border-radius: 6px; display: grid; place-items: center; color: #8c8e93; font-size: 12px; font-weight: 600; transition: background-color 120ms, color 120ms; }
.pl-nav button:hover { color: #5d5e62; }
.pl-nav button:active { background: var(--field); }
.pl-nav .pl-today { padding: 0 8px; }
.pl-head .seg { flex: none; }
/* La seule aide de la page : l'assistant propose un jour, ou une heure. Elle ne se montre que s'il reste quelque chose à répartir. */
.pl-auto { flex: none; height: 24px; margin-right: 4px; padding: 0 9px; display: inline-flex; align-items: center; gap: 6px; border-radius: 6px; color: var(--ai-ink); font-size: 12px; font-weight: 600; white-space: nowrap; transition: background-color 120ms, opacity 160ms ease; }
.pl-auto:hover { background: var(--ai-soft); }
.pl-auto:active { background: var(--ai-line); }
.pl-auto.off { opacity: 0; pointer-events: none; }
.pl-auto .s { display: none; }
.pl-body { flex: 1; min-height: 0; margin-top: 14px; }
.pl-body.pl-fade { animation: pl-fade 200ms ease both; }
@keyframes pl-fade { from { opacity: 0; transform: translateY(3px); } to { opacity: 1; transform: none; } }

.pl-okd { flex: none; display: inline-grid; place-items: center; width: 10px; height: 10px; color: var(--mute-2); }
.pl-okd svg path { stroke: currentColor; }
.pl-okd.off { opacity: .3; }

/* Couleurs par espace : perso, Audeon, assistant */
.pl-t-perso { --c-bg: #f5f3e0; --c-bg2: #fbfaf0; --c-bar: #cfc45f; --c-bar2: #ded691; --c-ink: #5e5919; --c-line: #e7e2b4; }
.pl-t-audeon { --c-bg: #e4ecf9; --c-bg2: #f2f6fc; --c-bar: #6f9be8; --c-bar2: #a6c1f1; --c-ink: #2c497f; --c-line: #c8d8f4; }
.pl-t-ai { --c-bg: var(--ai-soft); --c-bg2: #f6f9ff; --c-bar: var(--ai); --c-bar2: #9fc0f5; --c-ink: var(--ai-ink); --c-line: var(--ai-line); }

/* ───────── La colonne de gauche (« Cette semaine », ou les tâches sans heure du jour) et, à droite, les jours ou la grille horaire ───────── */
.pl-cal { height: 100%; min-height: 0; display: flex; gap: 30px; }
.pl-wk { gap: 20px; }
.pl-side, .pl-wk .pl-wl { flex: 1 1 0; min-width: 0; min-height: 0; }

/* Les tâches en attente */
.pl-tray { flex: 0 0 252px; min-width: 0; min-height: 0; display: flex; flex-direction: column; border-radius: 8px; }
.pl-wk .pl-tray { flex-basis: 214px; }
.pl-tray-h { flex: none; height: 22px; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.pl-tray-t { display: inline-flex; align-items: center; gap: 6px; color: var(--mute-2); font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; }
.pl-tray-t svg { display: none; transition: transform 160ms var(--ease); }
.pl-tray-t small { color: var(--faint); font-size: 11px; font-weight: 600; letter-spacing: 0; }
.pl-plan.aib { flex: none; margin: 10px 0 0; padding: 9px 11px 10px; }
.pl-plan .aib-h { margin: 0; font-size: 12.5px; }
.pl-plan .aib-acts { margin-top: 8px; }
.pl-tray-l { flex: 1 1 auto; min-height: 0; margin: 9px -8px 0; padding: 0 8px 28px; }
.pl-tray-g { margin: 14px 0 2px; color: var(--mute-2); font-size: 11.5px; font-weight: 600; line-height: 16px; }
.pl-tray-g:first-child { margin-top: 0; }
.pl-tray-g.past { color: var(--faint); }
.pl-tray-0 { margin: 3px 0 0; color: var(--faint); font-size: 13px; }
.pl-tray.drop { box-shadow: 0 0 0 6px var(--field); background: var(--field); }

.pl-row { display: flex; align-items: flex-start; margin: 0 -8px; padding: 5px 8px 6px; border-radius: 6px; transition: background-color 120ms, opacity 160ms; }
.pl-row:hover { background: rgba(0, 0, 0, .035); }
.pl-row.sel { background: var(--row-sel); }
.pl-row.lifting { opacity: .4; }
.pl-row .cb { margin-top: -1px; }
.pl-row-m { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.pl-row-t { color: var(--ink); font-size: 13.5px; line-height: 18px; overflow-wrap: anywhere; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.pl-row-s { color: var(--mute-2); font-size: 11.5px; line-height: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pl-row-s svg { display: inline-block; margin-right: 4px; vertical-align: -1px; }
.pl-row-d, .pl-row-p { flex: none; margin-left: 10px; color: var(--mute-2); font-size: 11.5px; line-height: 18px; font-weight: 500; white-space: nowrap; }
.pl-row-p { color: var(--ai-ink); font-weight: 600; }
.pl-row-o { flex: none; height: 20px; margin: -1px -3px 0 8px; padding: 0 7px; border-radius: 5px; color: var(--ink-2); font-size: 12px; font-weight: 600; }
.pl-row-o:hover { background: rgba(0, 0, 0, .06); }
.pl-row.done .pl-row-t { color: var(--mute-2); }
.pl-row.leaving { overflow: hidden; padding-top: 0; padding-bottom: 0; opacity: 0; transition: height 300ms var(--ease), padding 300ms var(--ease), opacity 180ms ease; }
.pl-row.new .pl-row-t { display: block; min-height: 18px; }
.pl-row.fresh { animation: pl-drop 360ms var(--ease-out) both; }
/* Proposée par l'assistant : le jour ou l'heure, puis son oui et son non, sur la ligne même */
.pl-row-s.offer { display: flex; align-items: center; gap: 9px; margin-top: 1px; overflow: visible; }
.pl-row-s.offer .pl-row-p { margin: 0; display: inline-flex; align-items: center; line-height: 16px; }
.pl-row-s.offer .pl-row-p svg { margin-right: 4px; }
.pl-lk { flex: none; height: 16px; color: var(--ai-ink); font-size: 11.5px; font-weight: 600; line-height: 16px; text-decoration: underline; text-decoration-color: var(--ai-line); text-underline-offset: 2.5px; }
.pl-lk + .pl-lk { color: var(--mute); font-weight: 500; text-decoration-color: var(--hair); }
.pl-lk:hover { text-decoration-color: currentColor; }
.pl-row-b { flex: none; width: 20px; height: 18px; margin: 0 5px 0 -4px; display: grid; place-items: center; color: var(--mute-2); }
.pl-row.rep, .pl-wl-t.rep { opacity: .6; }
.pl-row.rep:hover, .pl-wl-t.rep:hover { background: none; }
.pl-rp { display: inline-block; margin-right: 3px; vertical-align: -1.5px; }
.pl-row-b .pl-rp, .pl-wl-b .pl-rp, .pl-mo-rp .pl-rp { margin: 0; }
.pl-due.late { color: var(--red-flag); }
/* « Planifier la semaine prochaine » : un accès discret à la conversation avec l'assistant */
.pl-talk { align-self: flex-start; height: 18px; margin: 1px 0 0 -5px; padding: 0 5px; border-radius: 4px; color: var(--ai-ink); font-size: 11.5px; font-weight: 500; line-height: 18px; white-space: nowrap; transition: background-color 120ms; }
.pl-talk:hover { background: var(--ai-soft); }

/* Frise horaire */
.pl-side { display: flex; flex-direction: column; }
.pl-side-h { flex: none; height: 22px; padding-left: 40px; display: flex; align-items: center; justify-content: space-between; color: var(--mute-2); font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.pl-side-h small { color: var(--faint); font-size: 11px; font-weight: 500; letter-spacing: 0; text-transform: none; }
.pl-tl { flex: 1; min-height: 0; -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 9px); mask-image: linear-gradient(to bottom, transparent 0, #000 9px); }
.pl-tl-in { position: relative; margin: 9px 4px 28px 0; }
.pl-hr { position: absolute; left: 40px; right: 0; height: 0; border-top: 1px solid var(--hair-soft); }
.pl-hr span { position: absolute; left: -40px; top: -7px; width: 32px; text-align: right; color: #a6a8ad; font-size: 10.5px; font-weight: 600; line-height: 13px; }
.pl-lane { position: absolute; left: 44px; right: 0; top: 0; bottom: 0; }
.pl-now { position: absolute; left: 40px; right: 0; height: 0; border-top: 1.5px solid var(--red-flag); z-index: 3; pointer-events: none; }
.pl-now::before { content: ""; position: absolute; left: -3px; top: -4.5px; width: 7px; height: 7px; border-radius: 50%; background: var(--red-flag); }
.pl-now b { position: absolute; left: -42px; top: -8px; width: 34px; text-align: right; color: var(--red-flag); background: var(--bg); font-size: 10.5px; font-weight: 700; line-height: 14px; }
.main.has-open .pl-now b { background: var(--bg-open); }

/* Les blocs. Trois natures, sans légende :
   rendez-vous de l'agenda = plaque pleine, on ne la déplace pas ;
   bloc de temps posé par la personne = fond blanc, contour fin, case à cocher (c'est une tâche) ;
   proposition de l'assistant = contour en pointillé bleu, tant qu'elle n'est pas acceptée. */
.pl-ev { container-type: inline-size; position: absolute; z-index: 1; display: flex; flex-direction: column; align-items: flex-start; padding: 3px 6px 3px 9px; border-radius: 4px; overflow: hidden; text-align: left; background: var(--c-bg); box-shadow: inset 3px 0 0 var(--c-bar); color: var(--c-ink); transition: transform 120ms var(--ease), opacity 160ms; }
button.pl-ev:active { transform: scale(.985); }
.pl-ev-t { max-width: 100%; font-size: 12px; line-height: 15px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pl-ev-t svg { display: inline-block; margin-right: 4px; vertical-align: -1px; }
.pl-ev.tall .pl-ev-t { white-space: normal; overflow-wrap: anywhere; hyphens: auto; -webkit-hyphens: auto; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.pl-ev-h { display: flex; align-items: center; gap: 3px; max-width: 100%; font-size: 10.5px; line-height: 13px; font-weight: 500; white-space: nowrap; opacity: .74; }
.pl-hh { flex: none; display: inline-flex; gap: 3px; }
.pl-pj { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.pl-pj::before { content: "·"; margin: 0 3px 0 1px; }
.pl-ev.one { flex-direction: row; align-items: center; gap: 6px; padding-top: 0; padding-bottom: 0; }
.pl-ev.one .pl-ev-t { flex: 0 1 auto; min-width: 0; }
.pl-ev.one .pl-ev-h { flex: none; }
.pl-ev.one .pl-pj { display: none; }
@container (max-width: 132px) { .pl-pj { display: none; } }
@container (max-width: 88px) { .pl-to { display: none; } }
@container (max-width: 64px) { .pl-ev .pl-box { display: none; } }
@container (max-width: 26px) { .pl-ev-t, .pl-ev-h { visibility: hidden; } }
@container (max-width: 44px) { .pl-ev .pl-x { display: none; } }
@container (max-width: 96px) { .pl-ev .pl-ok { display: none; } }
@container (max-width: 150px) { .pl-ev.one .pl-ev-h { display: none; } }
.pl-ev[data-k] { z-index: 2; }
.pl-ev.is-slot, .pl-ev.is-task { background: var(--bg); box-shadow: inset 3px 0 0 var(--c-bar), inset 0 0 0 1px var(--c-line); }
.pl-ev.is-prop { padding: 1.5px 4.5px 1.5px 7.5px; border: 1.5px dashed var(--ai); background: color-mix(in srgb, var(--ai-soft) 62%, var(--bg)); box-shadow: none; color: var(--ai-ink); }
.pl-ev.one.is-prop { padding-top: 0; padding-bottom: 0; }
.pl-ev.past { opacity: .56; }
.pl-ev.done { opacity: .6; }
.pl-ev.done .pl-ev-t { font-weight: 500; }
.pl-ev.fresh { animation: pl-drop 360ms var(--ease-out) both; }
@keyframes pl-drop { from { opacity: 0; transform: translateY(-6px) scale(.97); } to { opacity: 1; transform: none; } }
.pl-ev[data-k]:focus-visible, .pl-ev.sel { outline: 2px solid var(--ink-2); outline-offset: 1px; z-index: 3; }
.pl-ev.moving { opacity: .3; }
.pl-ev.sizing { z-index: 4; opacity: 1; box-shadow: inset 3px 0 0 var(--c-bar), inset 0 0 0 1px var(--c-line), var(--shadow-float); transition: none; }
.pl-ev.is-prop.sizing { box-shadow: var(--shadow-float); }

/* La case d'un bloc de temps : la tâche se coche aussi dans le calendrier */
.pl-box { position: relative; display: inline-block; width: 10px; height: 10px; margin-right: 5px; border: 1px solid currentColor; border-radius: 2.5px; opacity: .6; vertical-align: -1px; }
.pl-ev .pl-box::before { content: ""; position: absolute; inset: -5px; }
.pl-ev .pl-box:hover { opacity: 1; }
.pl-box.on { opacity: 1; border-color: var(--check); background: var(--check); }
.pl-box.on::after { content: ""; position: absolute; left: 2.4px; top: .2px; width: 2.6px; height: 5.2px; border: solid #fff; border-width: 0 1.5px 1.5px 0; transform: rotate(42deg); }

/* Retirer (croix au survol) et changer la durée (bord bas) */
.pl-x { position: absolute; z-index: 1; top: 2px; right: 2px; width: 16px; height: 16px; display: grid; place-items: center; border-radius: 4px; background: var(--bg); color: var(--mute); opacity: 0; transition: opacity 100ms, color 100ms; }
.pl-ev.is-prop .pl-x { background: var(--ai-soft); color: var(--ai-ink); opacity: 1; }
.pl-ev.is-prop .pl-ok { right: 21px; background: var(--ai); color: #fff; }
.pl-ev.is-prop .pl-ok:hover { color: #fff; }
.pl-ev:hover .pl-x, .pl-ev:focus-within .pl-x { opacity: 1; }
.pl-x:hover { color: var(--ink); }
.pl-ev.one .pl-x { top: 1px; }
.pl-ev.one .pl-rs { height: 4px; }
.pl-ev.one .pl-rs::after { bottom: 1px; }
.pl-rs { position: absolute; left: 0; right: 0; bottom: 0; height: 7px; cursor: ns-resize; }
.pl-rs::after { content: ""; position: absolute; left: 50%; bottom: 2px; width: 16px; height: 2px; margin-left: -8px; border-radius: 1px; background: currentColor; opacity: 0; transition: opacity 100ms; }
.pl-ev:hover .pl-rs::after, .pl-ev.sizing .pl-rs::after { opacity: .38; }
@media (hover: none) { .pl-x, .pl-rs { display: none; } }   /* au doigt : le menu du bloc */

/* Pendant le geste : le fantôme montre où le bloc tombera et à quelle heure */
body.pl-dragging { cursor: grabbing; }
body.pl-sizing { cursor: ns-resize; }
body.pl-dragging .pl-ev, body.pl-dragging .pl-row, body.pl-dragging .pl-wl-t, body.pl-dragging .pl-wl-e, body.pl-dragging .pl-wl-x { pointer-events: none; }
.pl-ghost { position: absolute; left: 0; right: 3px; z-index: 5; display: flex; flex-direction: column; padding: 3px 8px; border-radius: 4px; overflow: hidden; pointer-events: none; background: var(--bg); box-shadow: inset 0 0 0 1.5px var(--ink-2), var(--shadow-float); color: var(--ink); font-size: 12px; line-height: 15px; }
.pl-ghost b { flex: none; font-size: 11px; font-weight: 700; white-space: nowrap; }
.pl-ghost span { min-width: 0; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pl-ghost.one { flex-direction: row; align-items: center; gap: 7px; padding-top: 0; padding-bottom: 0; }
.pl-ghost.prop { background: var(--ai-soft); box-shadow: inset 0 0 0 1.5px var(--ai), var(--shadow-float); color: var(--ai-ink); }
.pl-ghost.soft { opacity: .78; box-shadow: inset 0 0 0 1.5px var(--ink-2); }
.pl-ghost.soft.prop { box-shadow: inset 0 0 0 1.5px var(--ai); }
.pl-carry { position: fixed; z-index: 80; max-width: 240px; padding: 5px 10px; border-radius: 6px; pointer-events: none; background: var(--bg); box-shadow: var(--shadow-float); color: var(--ink); font-size: 13px; font-weight: 600; line-height: 18px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transform: translate(12px, -50%); transition: opacity 100ms; }
.pl-carry.off { opacity: 0; }
.pl-carry.no { opacity: .45; }

/* Popover d'un événement */
.pl-pop { width: 292px; padding: 13px 14px 14px; border-radius: 10px; background: #fff; box-shadow: var(--shadow-pop); font-size: 13px; line-height: 18px; color: var(--ink-2); }
.pl-pop-h { display: flex; align-items: flex-start; gap: 8px; }
.pl-pop-h b { font-size: 14px; line-height: 19px; font-weight: 600; color: var(--ink); }
.pl-dot { flex: none; width: 9px; height: 9px; margin-top: 5px; border-radius: 3px; background: var(--c-bar); }
.pl-pop-w { display: flex; align-items: center; flex-wrap: wrap; gap: 2px 6px; margin: 5px 0 0 17px; color: var(--mute); font-size: 12.5px; }
.pl-pop-w svg { margin-left: -1px; }
.pl-pop-w small { color: var(--faint); font-size: 12px; }
.pl-pop-c { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 11px; }
.pl-pop .aib { margin: 12px 0 0; font-size: 13px; line-height: 18px; }
.pl-pop-t { margin: 10px -6px 0; }
.pl-pop-t button { width: 100%; min-height: 26px; padding: 3px 6px; display: flex; align-items: baseline; text-align: left; border-radius: 5px; color: var(--ink); }
.pl-pop-t button:active { background: var(--field); }
.pl-pop-t .pl-box { flex: none; width: 11px; height: 11px; margin-right: 8px; border-color: var(--box); border-radius: 3px; opacity: 1; transform: translateY(1px); }
.pl-pop-t span { min-width: 0; }

/* L'en-tête d'un jour, dans la semaine : il ouvre ce jour, heure par heure */
.pl-wk-d { height: 30px; min-width: 0; padding: 0 8px; display: flex; align-items: center; gap: 5px; text-align: left; color: var(--mute-2); font-size: 12px; font-weight: 600; border-radius: 6px; }
.pl-wk-d b { color: var(--ink); font-size: 15px; font-weight: 700; }
.pl-wk-d.past b { color: #8b8d92; }
.pl-wk-d.today span { color: var(--ink-2); }
.pl-wk-d.today b { min-width: 22px; height: 22px; padding: 0 4px; border-radius: 11px; display: inline-grid; place-items: center; background: var(--yellow); color: #3d3200; font-size: 13.5px; }
.pl-wk-d:active { background: var(--field); }

/* ───────── Panneau étroit (classes posées d'après la largeur du panneau) : la colonne de gauche passe au-dessus, sur plusieurs colonnes, et se replie ───────── */
.pl-fold .pl-cal { flex-direction: column; gap: 8px; }
.pl-fold .pl-tray { flex: none; }
.pl-fold .pl-tray-h { height: 28px; justify-content: flex-start; gap: 14px; }
.pl-fold .pl-tray-t { height: 28px; margin-left: -5px; padding: 0 8px 0 5px; border-radius: 6px; }
.pl-fold .pl-tray-t:active { background: var(--field); }
.pl-fold .pl-tray-t svg { display: block; }
.pl-fold .pl-tray.open .pl-tray-t svg { transform: rotate(90deg); }
.pl-fold .pl-plan.aib { margin-top: 4px; display: flex; align-items: center; flex-wrap: wrap; gap: 6px 12px; }
.pl-fold .pl-plan .aib-acts { margin: 0 0 0 auto; }
.pl-fold .pl-tray-l { display: none; flex: none; max-height: 204px; margin-top: 4px; padding-bottom: 10px; grid-template-columns: repeat(auto-fill, minmax(224px, 1fr)); column-gap: 26px; align-content: start; box-shadow: inset 0 -1px 0 var(--hair-soft); }
.pl-fold .pl-tray.open .pl-tray-l { display: grid; }
.pl-fold .pl-tray-g { grid-column: 1 / -1; margin-top: 8px; }
.pl-fold .pl-tray-0 { grid-column: 1 / -1; }
.pl-fold .pl-side-h { display: none; }
.pl-fold .pl-tray.drop { box-shadow: none; background: none; }
.pl-fold .pl-tray.drop .pl-tray-h { border-radius: 6px; background: var(--field); }
.pl-stack .pl-head { flex-wrap: wrap; row-gap: 8px; }
.pl-stack .pl-head .lh-title { flex: none; }
/* L'en-tête étroit : le titre, la période et les flèches sur une ligne (la période cède la place) ; dessous, les modes, puis l'aide à droite */
.pl-range .s { display: none; }
.pl-stack .pl-range { flex: 1 1 0; min-width: 10.5em; }
.pl-stack .pl-grow { display: none; }
.pl-stack .pl-nav { margin-right: 0; }
.pl-stack .pl-modes { order: 2; }
.pl-stack .pl-auto { order: 3; margin: 0 -4px 0 auto; }
.pl-tiny .pl-range { min-width: 0; }
.pl-tiny .pl-range .l { display: none; }
.pl-tiny .pl-range .s { display: inline; }
.pl-tiny .pl-nav { margin-right: -5px; }
.pl-tiny .pl-today.here { display: none; }
.pl-tiny .pl-head .lh-ico { display: none; }
.pl-tiny .pl-modes { flex: 1 1 60%; min-width: 0; }   /* assez large pour passer à la ligne, assez peu pour laisser l'aide à sa droite */
.pl-tiny .pl-auto.off { display: none; }
.pl-tiny .pl-auto .l { display: none; }
.pl-tiny .pl-auto .s { display: inline; }
.pl-tiny .pl-modes button { flex: 1 1 0; padding: 0 4px; }
/* Téléphone : une tâche choisie reste seule à l'écran, le calendrier reprend la place ; la semaine garde ses sept jours, sans texte superflu */
.pl-tiny .pl-tray.picking .pl-tray-l { display: block; max-height: none; padding-bottom: 4px; }
.pl-tiny .pl-tray.picking .pl-row:not(.sel), .pl-tiny .pl-tray.picking .pl-tray-g { display: none; }
.pl-tiny .pl-row { padding-top: 7px; padding-bottom: 8px; }
.pl-tiny .pl-row-t { font-size: 14.5px; line-height: 19px; }
.pl-tiny .pl-row-s { font-size: 12px; }
.pl-tiny .pl-lk { height: 24px; font-size: 13px; line-height: 24px; }

/* ───────── À venir ───────── */
.pl-up { height: 100%; margin-left: -18px; padding: 0 18px; }
.pl-up-in { max-width: 560px; padding-bottom: 96px; }
.pl-up-g + .pl-up-g { margin-top: 30px; }
.pl-up-h { width: 100%; display: flex; align-items: stretch; gap: 10px; margin-bottom: 4px; text-align: left; }
.pl-up-n { flex: none; color: #25282c; font-size: 26px; line-height: 32px; font-weight: 700; letter-spacing: -.01em; white-space: nowrap; }
.pl-up-n i { margin: 0 6px; color: #a2a4a9; font-size: 14px; font-style: normal; font-weight: 600; letter-spacing: 0; vertical-align: 2px; }
.pl-up-l { flex: 1; min-width: 0; padding-top: 8px; border-top: 1px solid var(--hair); color: #74777c; font-size: 14px; line-height: 20px; font-weight: 700; }
.pl-up-h.month { margin-bottom: 6px; }
.pl-up-h.month .pl-up-l { padding-top: 9px; color: #25282c; font-size: 15px; }
.pl-up-evs { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; margin: 2px 0 5px; }
.pl-up-ev { max-width: 100%; height: 24px; padding: 0 9px; display: inline-flex; align-items: center; gap: 8px; border-radius: 5px; background: #f6f7f9; color: #45474c; font-size: 12.5px; transition: background-color 120ms; }
.pl-up-ev:active { background: #eceef1; }
.pl-up-ev b { flex: none; color: var(--blue); font-size: 12px; font-weight: 700; white-space: nowrap; }
.pl-up-ev span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pl-up-ev small { flex: none; color: var(--faint); font-size: 12px; }
.pl-up-due { width: 100%; min-height: var(--row); display: flex; align-items: center; gap: 5px; text-align: left; color: var(--ink); font-size: 14px; border-radius: 5px; }
.pl-up-due svg { margin-left: -4px; width: 20px; height: 12px; }
.pl-up-due span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pl-up-due small { flex: none; margin-left: auto; padding-left: 12px; color: #818388; font-size: 12px; font-weight: 600; white-space: nowrap; }
.pl-up-due:active { background: var(--field); }

/* ───────── Semaine : une liste par jour ─────────
   Sept colonnes ; sous 820 px de panneau (classe pl-rows), sept sections empilées. Par jour : les rendez-vous à l'heure, un filet, puis les tâches. */
.pl-wl { height: 100%; }
.pl-wl-g { min-height: 100%; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.pl-wl-d { min-width: 0; padding: 0 5px 30px 7px; box-shadow: inset 1px 0 0 var(--hair-soft); transition: background-color 120ms; }
.pl-wl-d:first-child { box-shadow: none; }
.pl-wl-d.today { background: rgba(245, 214, 54, .07); }
.pl-wl-d.drop { background: var(--field); }
.pl-wl-h { position: sticky; top: 0; z-index: 2; width: calc(100% + 12px); margin: 0 -5px 4px -7px; padding: 0 7px; border-radius: 0; background: var(--bg); box-shadow: 0 1px 0 var(--hair); }
.pl-wl-d.today .pl-wl-h { background: linear-gradient(rgba(245, 214, 54, .07), rgba(245, 214, 54, .07)), var(--bg); }
.pl-wl-d.drop .pl-wl-h { background: var(--field); }
.pl-wl-h:not([data-act]) { cursor: default; }
.pl-wl-es { padding: 3px 0 6px; margin-bottom: 5px; border-bottom: 1px solid var(--hair-soft); }
.pl-wl-e { width: 100%; padding: 2px 3px; display: flex; align-items: baseline; gap: 6px; border-radius: 4px; text-align: left; font-size: 12px; line-height: 16px; color: var(--ink-2); transition: background-color 120ms; }
.pl-wl-e:hover { background: rgba(0, 0, 0, .035); }
.pl-wl-e b { flex: none; min-width: 34px; color: var(--ink); font-size: 11.5px; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.pl-wl-e span { min-width: 0; overflow-wrap: break-word; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.pl-wl-e.slot b { color: var(--mute); font-weight: 600; }
.pl-wl-e.slot span { color: var(--mute); }
.pl-wl-e.past { opacity: .55; }
.pl-wl-ts { min-height: 4px; }
.pl-wl-t { display: flex; align-items: flex-start; padding: 3px 3px 4px; border-radius: 5px; transition: background-color 120ms, opacity 160ms; }
.pl-wl-t:hover { background: rgba(0, 0, 0, .035); }
.pl .pl-wl-t .cb { width: 18px; height: 16px; margin: 0 5px 0 -1px; position: relative; }
.pl .pl-wl-t .cb::after { content: ""; position: absolute; inset: -4px -3px; }
.pl-wl-b { flex: none; width: 18px; height: 16px; margin: 0 5px 0 -1px; display: grid; place-items: center; color: var(--mute-2); }
.pl-wl-m { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.pl-wl-tt { color: var(--ink); font-size: 12.5px; line-height: 16px; overflow-wrap: break-word; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; }
.pl-wl-tt svg { display: inline-block; margin-right: 4px; vertical-align: -1px; color: var(--mute-2); }
.pl-wl-s { color: var(--mute-2); font-size: 11px; line-height: 15px; overflow-wrap: anywhere; }
.pl-wl-s svg { display: inline-block; margin-right: 3px; vertical-align: -1px; }
.pl-wl-pj { display: none; flex: 0 1 auto; max-width: 38%; margin-left: 12px; color: var(--mute-2); font-size: 12px; line-height: 19px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pl-wl-t.lifting { opacity: .35; }
.pl-wl-t.fresh { animation: pl-drop 360ms var(--ease-out) both; }
.pl-wl-t.done .pl-wl-tt { color: var(--mute-2); }
.pl-wl-t.new .pl-wl-tt { display: block; min-height: 16px; }
/* Une proposition de l'assistant, dans le jour qu'il propose : même pointillé bleu que dans la grille, avec son oui et son non */
.pl-wl-t.is-prop { margin: 2px 0 3px; padding: 1.5px 2px 2.5px 1.5px; border: 1.5px dashed var(--ai); border-radius: 5px; background: color-mix(in srgb, var(--ai-soft) 62%, var(--bg)); }
.pl-wl-t.is-prop:hover { background: var(--ai-soft); }
.pl-wl-t.is-prop .pl-wl-tt, .pl-wl-t.is-prop .pl-wl-b { color: var(--ai-ink); }
/* En sept colonnes, la décision se prend dans la colonne de gauche ; jours empilés, la ligne a la place de porter les deux boutons */
.pl-yn { display: none; }
.pl-y, .pl-n { width: 28px; height: 18px; display: grid; place-items: center; border-radius: 9px; background: var(--bg); box-shadow: inset 0 0 0 1px var(--ai-line); color: var(--ai-ink); transition: transform 120ms; }
.pl-y { background: var(--ai); box-shadow: none; color: #fff; }
.pl-y:active, .pl-n:active { transform: scale(.94); }
.pl-wl-x { height: 22px; margin: 1px 0 0 -3px; padding: 0 6px; display: inline-flex; align-items: center; gap: 5px; border-radius: 5px; color: var(--mute-2); font-size: 11.5px; font-weight: 600; white-space: nowrap; transition: background-color 120ms, color 120ms; }
.pl-wl-x:hover { color: var(--ink-2); background: rgba(0, 0, 0, .04); }
.pl-wl-dn { display: flex; }
.pl-wl-dl { margin-top: 2px; }
/* Empilée : une section par jour, le texte reprend sa taille de liste, le projet revient à droite */
.pl-rows .pl-wl-g { display: block; min-height: 0; padding-bottom: 40px; }
.pl-rows .pl-wl-d { padding: 0 0 16px; box-shadow: none; background: none; }
.pl-rows .pl-wl-h { width: 100%; height: 32px; margin: 0 0 4px; padding: 0 2px; background: var(--bg); }
.pl-rows .pl-wl-d.today .pl-wl-h { background: var(--bg); }
.pl-rows .pl-wl-d.drop { background: none; }
.pl-rows .pl-wl-d.drop .pl-wl-h { background: var(--field); }
.pl-rows .pl-wl-d.drop .pl-wl-ts:not(.pl-wl-dl) { box-shadow: inset 2px 0 0 var(--ink-2); }
.pl-rows .pl-wl-e { padding: 3px 4px; font-size: 13.5px; line-height: 19px; }
.pl-rows .pl-wl-e b { min-width: 44px; font-size: 12.5px; }
.pl-rows .pl-wl-t { padding: 5px 4px 6px; }
.pl-rows .pl-wl-tt { font-size: 14px; line-height: 19px; -webkit-line-clamp: 2; }
.pl-rows .pl-wl-s { font-size: 11.5px; line-height: 16px; }
.pl-rows .pl .pl-wl-t .cb, .pl-rows.pl .pl-wl-t .cb { width: 20px; height: 19px; margin-right: 7px; }
.pl-rows .pl-wl-b { width: 20px; height: 19px; margin-right: 7px; }
.pl-rows .pl-wl-pj { display: block; }
.pl-rows .pl-wl-x { height: 26px; font-size: 12.5px; }
.pl-rows .pl-wl-t.is-prop { align-items: center; padding: 4px 6px 5px 3px; }
.pl-rows .pl-yn { flex: none; display: flex; gap: 4px; margin-left: 10px; }
.pl-rows .pl-y, .pl-rows .pl-n { width: 34px; height: 24px; border-radius: 12px; }
.pl-tiny .pl-wl-t { padding-top: 7px; padding-bottom: 8px; }
.pl-tiny .pl-wl-tt { font-size: 14.5px; }
.pl-tiny.pl .pl-wl-t .cb::after { inset: -9px -8px; }
.pl-tiny .pl-wl-pj { display: none; }

/* ───────── Mois : une grille calme ───────── */
.pl-mo { height: 100%; }
.pl-mo-g { min-height: 100%; display: flex; flex-direction: column; padding-bottom: 20px; }
.pl-mo-r { flex: 1 1 0; min-height: 86px; display: grid; grid-template-columns: 26px repeat(7, minmax(0, 1fr)); border-top: 1px solid var(--hair-soft); }
.pl-mo-hd { position: sticky; top: 0; z-index: 2; flex: none; min-height: 0; height: 24px; border-top: 0; background: var(--bg); box-shadow: 0 1px 0 var(--hair); color: var(--mute-2); font-size: 11.5px; font-weight: 600; line-height: 22px; }
.pl-mo-hd + .pl-mo-r { border-top: 0; }
.pl-mo-hd span { padding-left: 7px; }
.pl-mo-w { align-self: stretch; padding-top: 8px; display: flex; justify-content: center; border-radius: 5px; color: var(--faint); font-size: 10.5px; font-weight: 600; line-height: 14px; font-variant-numeric: tabular-nums; transition: background-color 120ms, color 120ms; }
.pl-mo-w:hover { background: var(--field); color: var(--ink-2); }
.pl-mo-r.cur .pl-mo-w { color: var(--ink-2); }
.pl-mo-c { min-width: 0; padding: 4px 5px 6px 7px; display: flex; flex-direction: column; align-items: stretch; gap: 1px; text-align: left; box-shadow: inset 1px 0 0 var(--hair-soft); transition: background-color 120ms; }
.pl-mo-c:hover { background: rgba(0, 0, 0, .03); }
.pl-mo-c:active { background: var(--field); }
.pl-mo-c.today { background: rgba(245, 214, 54, .07); }
.pl-mo-c.out > * { opacity: .42; }
.pl-mo-n { height: 22px; display: flex; align-items: center; justify-content: space-between; gap: 4px; }
.pl-mo-n b { color: var(--ink); font-size: 12.5px; font-weight: 700; }
.pl-mo-c.past .pl-mo-n b { color: var(--mute); }
.pl-mo-c.today .pl-mo-n b { min-width: 20px; height: 20px; margin-left: -4px; padding: 0 4px; border-radius: 10px; display: inline-grid; place-items: center; background: var(--yellow); color: #3d3200; font-size: 12px; }
.pl-mo-n small { display: inline-flex; align-items: center; gap: 3px; color: var(--mute-2); font-size: 10.5px; font-weight: 600; font-variant-numeric: tabular-nums; }
.pl-mo-n .pl-box { width: 8px; height: 8px; margin: 0; border-radius: 2px; }
.pl-mo-n .pl-okd { width: 9px; height: 9px; }
.pl-mo-e { min-width: 0; display: flex; gap: 5px; color: var(--ink-2); font-size: 11px; line-height: 15px; white-space: nowrap; }
.pl-mo-e i { flex: none; color: var(--mute); font-style: normal; font-weight: 600; font-variant-numeric: tabular-nums; }
.pl-mo-e em { min-width: 0; font-style: normal; overflow: hidden; text-overflow: ellipsis; }
.pl-mo-x { color: var(--mute-2); font-size: 10.5px; font-weight: 600; line-height: 14px; }
.pl-mo-rp { align-items: center; gap: 4px; color: var(--mute-2); }
.pl-mo-rp .pl-rp { flex: none; }
/* Étroit : seules les heures restent, les titres se lisent en ouvrant le jour */
.pl-fold .pl-mo-e em { display: none; }
.pl-fold .pl-mo-r:not(.pl-mo-hd) { min-height: 76px; }
.pl-tiny .pl-mo-r { grid-template-columns: 18px repeat(7, minmax(0, 1fr)); }
.pl-tiny .pl-mo-c { padding: 3px 2px 5px 4px; }
.pl-tiny .pl-mo-hd span { padding-left: 4px; font-size: 10.5px; }
.pl-tiny .pl-mo-e { font-size: 10px; line-height: 14px; }
.pl-tiny .pl-mo-n small { font-size: 9.5px; gap: 2px; }
.pl-tiny .pl-mo-n .pl-box, .pl-tiny .pl-mo-n .pl-okd { width: 7px; height: 7px; }
.pl-tiny .pl-mo-w { font-size: 9.5px; }

/* Les deux apparences « primaires » et « franc » : mêmes formes, leurs jaunes et leurs rayons */
body:is([data-theme="primaires"]) {
  & .pl-wl-d.today, & .pl-mo-c.today { background: color-mix(in srgb, var(--q-yellow) 9%, transparent); }
  & .pl-wl-d.today .pl-wl-h { background: linear-gradient(color-mix(in srgb, var(--q-yellow) 9%, transparent), color-mix(in srgb, var(--q-yellow) 9%, transparent)), var(--bg); }
  & .pl-wl-d.drop, & .pl-wl-d.drop .pl-wl-h { background: var(--field); }
  & .pl-rows .pl-wl-d.today, & .pl-rows .pl-wl-d.drop { background: none; }
  & .pl-rows .pl-wl-d.today .pl-wl-h { background: var(--bg); }
  & .pl-rows .pl-wl-d.drop .pl-wl-h { background: var(--field); }
  & .pl-mo-c.today .pl-mo-n b { border-radius: var(--r-pill); background: var(--q-yellow); color: var(--q-on-yellow); }
}

/* ── src/css/51-board.css ── */
/* Board : cinq colonnes sans cadre lourd, ou une liste monospace façon todo d'OpenCode */
/* 64 px de marge comme les autres vues dès 1280 px de fenêtre, resserrée en dessous pour garder cinq colonnes lisibles */
.col.bd-col { max-width: 1560px; height: 100%; padding: 0 clamp(28px, calc(20vw - 192px), 64px); }
.col.bd-col > .view { height: 100%; }
.bd { min-height: 0; display: flex; flex-direction: column; }
.col.bd-col .bd { height: 100%; }
.bd.is-list { max-width: 720px; margin: 0 auto; }
.bd-head { flex: none; }
.bd-head .seg { flex: none; }
.bd-head .seg + .seg { margin-left: 4px; }
.bd-grow { flex: 1; }
.bd-sub { flex: none; margin-top: 7px; color: var(--mute); font-size: 13.5px; line-height: 19px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bd-body { flex: 1; min-height: 0; margin-top: 18px; }

/* ───────── Colonnes ───────── */
.bd-cols { height: 100%; display: grid; grid-template-columns: repeat(5, minmax(140px, 1fr)); gap: 10px; padding-bottom: 14px; overflow-x: auto; overflow-y: hidden; scrollbar-width: none; }
.bd-cols::-webkit-scrollbar { display: none; }
.bd-colm { container-type: inline-size; min-width: 0; min-height: 0; display: flex; flex-direction: column; border-radius: 10px; background: #f8f8f9; transition: background-color 160ms ease, box-shadow 160ms ease; }
.bd-colh { flex: none; height: 38px; padding: 0 12px; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.bd-colt { min-width: 0; display: inline-flex; align-items: center; gap: 6px; color: var(--ink-2); font-size: 13px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bd-dot { flex: none; width: 6px; height: 6px; border-radius: 50%; background: var(--need); }
.bd-n { flex: none; color: var(--mute-2); font-size: 12px; font-weight: 600; }
.bd-stack { flex: 1; min-height: 0; padding: 2px 8px 12px; display: flex; flex-direction: column; gap: 8px; }
.bd-empty { padding: 18px 10px; text-align: center; color: #b0b2b7; font-size: 12.5px; line-height: 18px; font-style: italic; }
.bd-more { flex: none; padding: 4px 4px 0; color: #8f9196; font-size: 12px; font-weight: 600; }
.bd-more:hover { color: #6a6c71; }

/* Cibles du glisser-déposer */
.bd-drag .bd-colm.bd-can { box-shadow: inset 0 0 0 1.5px rgba(46,124,246, .22); }
.bd-drag .bd-colm.bd-can[data-col="done"] { box-shadow: inset 0 0 0 1.5px rgba(76, 142, 245, .24); }
.bd-drag .bd-colm.bd-over { background: #eaf2fe; box-shadow: inset 0 0 0 1.5px var(--ai); }
.bd-drag .bd-colm.bd-over[data-col="done"] { background: #eaf2fe; box-shadow: inset 0 0 0 1.5px var(--check); }

/* ───────── Carte ───────── */
.bd-card { flex: none; position: relative; padding: 9px 11px 10px; border-radius: 8px; background: #fff; box-shadow: var(--shadow-card); text-align: left; transition: opacity 160ms ease, transform 160ms var(--ease); }
.bd-card.bd-dragging { opacity: .32; }
.bd-card.bd-in { animation: bd-in 280ms var(--ease-out) both; }
@keyframes bd-in { from { opacity: 0; transform: translateY(7px); } to { opacity: 1; transform: none; } }
.bd-ghost { position: fixed; z-index: 55; margin: 0; pointer-events: none; box-shadow: var(--shadow-float); transition: transform 300ms var(--ease-out), opacity 220ms ease, box-shadow 300ms ease; }
.bd-ghost.go { box-shadow: var(--shadow-card); }
.bd-ghost.bye { opacity: 0; transform: translateY(5px) scale(.97); }

.bd-row { display: flex; align-items: flex-start; }
.bd-row .bd-t { flex: 1; min-width: 0; }
.bd-t { color: var(--ink); font-size: 13.5px; line-height: 18px; font-weight: 600; overflow-wrap: anywhere; overflow: hidden; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; transition: color 200ms; }
.bd-cb { flex: none; width: 20px; height: 18px; margin: 0 4px 0 -4px; display: grid; place-items: center; border-radius: 5px; }
.bd-cb i { width: 12px; height: 12px; display: grid; place-items: center; border: 1px solid var(--box); border-radius: var(--r-box); background: #fff; transition: background-color 120ms, border-color 120ms, transform 120ms; }
.bd-cb:active i { transform: scale(.88); }
.bd-cb svg { opacity: 0; stroke-dasharray: 12; stroke-dashoffset: 12; transition: stroke-dashoffset 160ms ease-out 40ms, opacity 60ms; }
.bd-cb.on i, .bd-card.checked .bd-cb i { background: var(--check); border-color: var(--check); }
.bd-cb.on svg, .bd-card.checked .bd-cb svg { opacity: 1; stroke-dashoffset: 0; }
.bd-card.checked .bd-t { color: #a9abb0; }
.bd-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 3px 9px; margin-top: 5px; color: var(--mute); font-size: 12px; line-height: 16px; }
.bd-list { min-width: 0; max-width: 100%; display: inline-flex; align-items: center; gap: 5px; }
.bd-list span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bd-when { flex: none; display: inline-flex; align-items: center; gap: 4px; color: #818388; font-weight: 600; white-space: nowrap; }
.bd-when.due { color: var(--red-flag); }

.bd-tag { display: inline-flex; align-items: center; gap: 4px; margin-bottom: 5px; color: var(--ai-ink); font-size: 11px; font-weight: 700; line-height: 14px; }
.bd-tag.need { color: #c8284b; }
.bd-tag.need i { width: 6px; height: 6px; border-radius: 50%; background: var(--need); }
.bd-sum { margin-top: 7px; color: var(--ai-text); font-size: 12.5px; line-height: 17px; overflow-wrap: anywhere; overflow: hidden; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 5; }
.bd-ul { margin: 5px 0 0; padding: 0; list-style: none; color: var(--ai-text); font-size: 12.5px; line-height: 17px; }
.bd-ul li { position: relative; padding-left: 11px; margin-top: 2px; overflow: hidden; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.bd-ul li::before { content: ""; position: absolute; left: 1px; top: 7px; width: 4px; height: 4px; border-radius: 50%; background: #9fc0f5; }
.bd-acts { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 9px; }
.bd-acts .btn { max-width: 100%; height: auto; min-height: 24px; padding: 3px 10px; font-size: 12.5px; line-height: 18px; white-space: normal; text-align: left; }

/* L'assistant avance */
.bd-prog { display: flex; align-items: flex-start; gap: 7px; margin-top: 8px; color: var(--ai-ink); font-size: 12.5px; line-height: 17px; }
.bd-prog span { min-width: 0; overflow-wrap: anywhere; }
.bd-spin { flex: none; width: 10px; height: 10px; margin-top: 3px; border-radius: 50%; border: 1.5px solid var(--ai-line); border-top-color: var(--ai); animation: spin 900ms linear infinite; }
.bd-card .steps { margin-top: 6px; font-size: 11.5px; line-height: 17px; }
.bd-card .steps div { gap: 6px; }
.bd-card .steps span:first-child { flex: none; }
.bd-card .steps span:last-child { min-width: 0; overflow-wrap: break-word; hyphens: auto; -webkit-hyphens: auto; }
/* Colonne étroite : on ne garde que l'étape en cours, et l'en-tête se resserre */
@container (max-width: 200px) {
  .bd-card .steps div:not(.s-now) { display: none; }
  .bd-colh { padding: 0 10px; }
  .bd-colt { font-size: 12px; }
}
@container (max-width: 164px) { .bd-colt { font-size: 11.5px; } }

/* A besoin de toi */
.bd-k-needs { box-shadow: 0 0 0 1px rgba(232, 112, 58, .62), 0 1px 4px rgba(232, 112, 58, .16), 0 4px 12px rgba(0, 0, 0, .045); }
.bd-q { color: var(--ink); font-size: 13.5px; line-height: 18px; font-weight: 700; overflow-wrap: anywhere; }
.bd-ctx { margin-top: 5px; color: var(--mute); font-size: 12px; line-height: 16px; overflow: hidden; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.bd-reply { display: flex; align-items: center; gap: 4px; height: 28px; margin-top: 8px; padding: 0 3px 0 9px; border-radius: 14px; background: var(--field); transition: background-color 140ms, box-shadow 140ms; }
.bd-reply:focus-within { background: #fff; box-shadow: inset 0 0 0 1.5px var(--need); }
.bd-reply input { flex: 1; min-width: 0; height: 100%; border: 0; outline: none; background: transparent; font-size: 12.5px; user-select: text; -webkit-user-select: text; cursor: text; }
.bd-reply input::placeholder { color: #a2a5aa; }
.bd-send { flex: none; width: 22px; height: 22px; display: grid; place-items: center; border-radius: 50%; color: #c3c5c9; transition: color 140ms, transform 120ms; }
.bd-reply:focus-within .bd-send { color: var(--need); }
.bd-send:active { transform: scale(.9); }

/* Proposition, fait, nouvelle tâche */
.bd-proposed { box-shadow: none; border: 1px dashed #bcd4fa; padding: 8px 10px 9px; }
.bd-k-done { box-shadow: 0 0 0 .5px rgba(0, 0, 0, .09); }
.bd-k-done .bd-t { color: #84868b; font-weight: 500; }
.bd-k-done .ai-mark { height: 15px; }
.bd-new-in { flex: 1; min-width: 0; height: 18px; padding: 0; border: 0; outline: none; background: transparent; font: inherit; font-size: 13.5px; font-weight: 600; color: var(--ink); user-select: text; -webkit-user-select: text; cursor: text; }
.bd-new-in::placeholder { color: var(--faint); font-weight: 500; }

/* ───────── Variante liste ───────── */
.bd-lv { padding-top: 2px; color: var(--ink-2); font: 13px/20px var(--mono); }
.bd-ls + .bd-ls { margin-top: 24px; }
.bd-lh { display: flex; align-items: baseline; gap: 8px; margin: 0 0 5px; color: var(--mute-2); font: 600 11px/16px var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.bd-lh span { color: var(--faint); letter-spacing: 0; }
.bd-li { margin: 0 -8px; padding: 2px 8px; border-radius: 6px; }
.bd-li[data-act]:active { background: var(--field); }
.bd-lr { display: flex; align-items: baseline; gap: 9px; }
.bd-mk { flex: none; font: inherit; color: var(--mute-2); white-space: pre; }
.bd-l-needs .bd-mk { color: var(--need); font-weight: 600; }
.bd-l-ready .bd-mk, .bd-l-working .bd-mk { color: var(--ai); font-weight: 600; }
.bd-l-done .bd-mk, .bd-li.checked .bd-mk { color: #b0b2b7; }
.bd-lt { flex: 1; min-width: 0; overflow-wrap: anywhere; transition: color 200ms; }
.bd-l-done .bd-lt, .bd-li.checked .bd-lt { color: #a3a5aa; }
.bd-l-prop .bd-lt { color: #55565b; }
.bd-ll { flex: none; max-width: 36%; padding-left: 12px; color: #a9abb0; font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bd-lsub { padding: 1px 0 4px calc(3ch + 9px); }
.bd-lq { color: var(--ink); }
.bd-ln { color: var(--mute); }
.bd-lrow { display: flex; flex-wrap: wrap; gap: 0 18px; }
.bd-lo { display: block; font: inherit; text-align: left; color: #c8284b; }
.bd-l-ready .bd-lo { color: var(--ai-ink); }
.bd-lo:hover { text-decoration: underline; text-underline-offset: 2px; }
.bd-lv .bd-new-in { height: 20px; font: inherit; font-weight: 400; }

@media (max-width: 1240px) {
  .bd-cols { gap: 8px; }
  .bd-stack { padding-left: 6px; padding-right: 6px; }
  .bd-card { padding-left: 10px; padding-right: 10px; }
}

/* Lot I4 : ce que le moteur sait de chaque aire (dernière passe, aire bloquée) et les signaux du jour, en gris, sans crier */
.po-passe { margin-left: 8px; color: var(--mute); font-size: 12px; white-space: nowrap; }
.po-passe.cours { color: var(--ai); }
.po-passe.bloc { color: var(--text); }
.bd-sig { flex: none; margin: 6px 0 0; padding: 0; list-style: none; color: var(--mute); font-size: 12.5px; line-height: 18px; }
.bd-sig li::before { content: '·'; margin-right: 6px; }

/* ── src/css/55-postes.css ── */
/* v12 · Postes : la page « L'assistant dans <aire> » et le Board « Par aire ».
   La page vit dans un onglet de 320 à 900 px et sur téléphone : tout se règle sur la largeur du conteneur, jamais de l'écran. */

/* ───────── Communs ───────── */
.view.po-still { animation: none; }
.po-red { color: var(--need); }
.po-dot { flex: none; align-self: center; width: 6px; height: 6px; border-radius: 50%; background: var(--need); }
.po-none { padding: 10px 0 0; color: #a9abb0; font-size: 13px; line-height: 19px; font-style: italic; }
.po-a { color: var(--ai-ink); font-weight: 600; }
.po-a:hover { text-decoration: underline; text-underline-offset: 2px; }
.po-link { display: inline-flex; align-items: center; gap: 5px; margin-top: 8px; color: var(--ai-ink); font-size: 12.5px; font-weight: 600; line-height: 18px; }
.po-link:hover { text-decoration: underline; text-underline-offset: 2px; }
.po-ex { flex: none; align-self: center; margin-left: auto; height: 16px; padding: 0 7px; border-radius: 8px; border: 1px dashed #c3c5c9; color: #9a9da2; font-size: 10.5px; font-weight: 600; line-height: 14px; white-space: nowrap; }
.po-menu-0 { display: inline-block; width: 13px; height: 13px; }

/* ───────── Une tâche que l'assistant porte (dans la page comme dans le Board) ───────── */
.po-it { display: flex; gap: 9px; padding: 10px 0; border-bottom: 1px solid var(--hair-soft); text-align: left; }
.po-it:last-child { border-bottom: 0; }
.po-mk { flex: none; width: 16px; height: 18px; display: grid; place-items: center; color: var(--ai); }
.po-mk.need i { width: 7px; height: 7px; border-radius: 50%; background: var(--need); }
.po-mk.prop { color: #8fb5f3; }
.po-spin { width: 10px; height: 10px; border-radius: 50%; border: 1.5px solid var(--ai-line); border-top-color: var(--ai); animation: spin 900ms linear infinite; }
.po-it-b { flex: 1; min-width: 0; }
.po-q { color: var(--ink); font-size: 13.5px; line-height: 18px; font-weight: 700; overflow-wrap: anywhere; }
.po-it-t { color: var(--ink); font-size: 13.5px; line-height: 18px; font-weight: 600; overflow-wrap: anywhere; }
.po-it-k { margin-bottom: 1px; color: var(--ai-ink); font-size: 11px; font-weight: 700; line-height: 14px; }
.po-it-s { margin-top: 2px; color: var(--mute); font-size: 12.5px; line-height: 17px; overflow-wrap: anywhere; }
.po-it-x { margin-top: 3px; color: var(--ai-text); font-size: 13px; line-height: 18px; overflow-wrap: anywhere; }
.po-it-p { margin-top: 2px; color: var(--ai-ink); font-size: 12.5px; line-height: 17px; overflow-wrap: anywhere; }
.po-acts { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 8px; }
.po-acts .btn { max-width: 100%; height: auto; min-height: 24px; padding: 3px 10px; font-size: 12.5px; line-height: 18px; white-space: normal; text-align: left; }
.po-reply { display: flex; align-items: center; gap: 4px; max-width: 380px; height: 28px; margin-top: 7px; padding: 0 3px 0 10px; border-radius: 14px; background: var(--field); transition: background-color 140ms, box-shadow 140ms; }
.po-reply:focus-within { background: #fff; box-shadow: inset 0 0 0 1.5px var(--need); }
.po-reply input { flex: 1; min-width: 0; height: 100%; border: 0; outline: none; background: transparent; font-size: 12.5px; user-select: text; -webkit-user-select: text; cursor: text; }
.po-reply input::placeholder { color: #a2a5aa; }
.po-send { flex: none; width: 22px; height: 22px; display: grid; place-items: center; border-radius: 50%; color: #c3c5c9; transition: color 140ms, transform 120ms; }
.po-reply:focus-within .po-send { color: var(--need); }
.po-send:active { transform: scale(.9); }
@media (pointer: coarse) {
  .po-acts .btn { min-height: 32px; padding: 6px 12px; font-size: 14px; }
  .po-reply { height: 36px; border-radius: 18px; max-width: none; }
  .po-send { width: 30px; height: 30px; }
}

/* ───────── 1. La page ───────── */
.po { container: po / inline-size; max-width: 720px; margin: 0 auto; padding-bottom: 28px; }
.po-top { margin-top: 14px; }
.po-over { display: flex; align-items: center; gap: 5px; color: var(--ai-ink); font-size: 12px; font-weight: 700; line-height: 16px; }
.po-over svg { color: var(--ai); }
.po-title { margin: 4px 0 0; color: var(--ink); font-size: 22px; line-height: 27px; font-weight: 700; letter-spacing: -.01em; }
.po-title a { display: flex; align-items: flex-start; gap: 9px; }
.po-title a > span:last-child { min-width: 0; overflow-wrap: anywhere; }
.po-title-i { flex: none; width: 20px; height: 27px; display: grid; place-items: center; }
.po-state { margin-top: 6px; color: var(--mute); font-size: 13px; line-height: 19px; }
.po-state b { font-weight: 700; }
.po-state i { margin: 0 6px; color: var(--faint); font-style: normal; }

.po-s { margin-top: 28px; }
.po-s-m { margin-top: 20px; }
.po-h { display: flex; align-items: baseline; flex-wrap: wrap; gap: 0 8px; min-height: 26px; padding-bottom: 6px; border-bottom: 1px solid var(--hair); }
.po-h-t { color: var(--ink); font-size: 14px; line-height: 19px; font-weight: 700; }
.po-h-n { color: var(--mute-2); font-size: 12px; font-weight: 600; }
.po-h-x { color: var(--mute-2); font-size: 12px; line-height: 19px; }

/* Mandat : trois niveaux, le courant en évidence */
.po-ms { display: grid; gap: 6px; margin-top: 10px; }
.po-m { display: flex; align-items: flex-start; gap: 9px; padding: 9px 11px 10px; border-radius: 8px; background: var(--bg); box-shadow: inset 0 0 0 1px var(--hair); text-align: left; transition: background-color 140ms, box-shadow 140ms; }
.po-m:not(.on):hover { background: #fafafb; box-shadow: inset 0 0 0 1px #d6d8dc; }
.po-m:active { background: var(--field); }
.po-m.on { background: var(--ai-soft); box-shadow: inset 0 0 0 1.5px var(--ai); }
.po-m-r { flex: none; width: 14px; height: 14px; margin-top: 2px; display: grid; place-items: center; border-radius: 50%; background: #fff; box-shadow: inset 0 0 0 1.5px var(--box); }
.po-m.on .po-m-r { box-shadow: inset 0 0 0 1.5px var(--ai); }
.po-m.on .po-m-r i { width: 6px; height: 6px; border-radius: 50%; background: var(--ai); }
.po-m-b { min-width: 0; display: grid; gap: 2px; }
.po-m-b b { color: var(--ink); font-size: 13.5px; line-height: 18px; font-weight: 700; }
.po-m.on .po-m-b b { color: var(--ai-ink); }
.po-m-b span { color: var(--mute); font-size: 12.5px; line-height: 17px; }
.po-m.on .po-m-b span { color: #55657f; }
@container po (min-width: 600px) { .po-ms { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.po-m-now { margin: 11px 0 0; color: var(--ink-2); font-size: 13.5px; line-height: 20px; }
.po-m-lock { display: flex; gap: 7px; margin: 8px 0 0; color: var(--mute); font-size: 12.5px; line-height: 18px; }
.po-m-lock svg { margin-top: 2px; color: var(--mute-2); }
.po-rules { margin-top: 11px; padding: 9px 12px 11px; border-radius: 8px; background: var(--sidebar); }
.po-rules-h { display: flex; align-items: center; gap: 8px; color: var(--ink-2); font-size: 12.5px; font-weight: 700; line-height: 18px; }
.po-rules ul { margin: 5px 0 0; padding: 0; list-style: none; color: var(--ink-2); font-size: 13px; line-height: 19px; }
.po-rules li { position: relative; padding: 2px 0 2px 13px; }
.po-rules li::before { content: ""; position: absolute; left: 2px; top: 10px; width: 4px; height: 4px; border-radius: 50%; background: #9fc0f5; }
.po-rules-0 { margin-top: 4px; color: var(--mute); font-size: 13px; line-height: 19px; }
.po-rules .po-link { margin-top: 6px; }

/* Routines de l'aire */
.po-rt { display: flex; align-items: flex-start; gap: 9px; padding: 9px 0; border-bottom: 1px solid var(--hair-soft); text-align: left; }
.po-rts:last-child .po-rt:last-child { border-bottom: 0; }
.po-rt-i { flex: none; width: 16px; height: 18px; display: grid; place-items: center; color: #5bb85a; }
.po-rt-i.ko { color: var(--red-flag); }
.po-rt-i.off { color: #c3c5c9; }
.po-rt-m { flex: 1; min-width: 0; }
.po-rt-n { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 8px; }
.po-rt-n b { color: var(--ink); font-size: 13.5px; line-height: 18px; font-weight: 600; }
.po-rt-n span { color: var(--mute-2); font-size: 12px; line-height: 18px; }
.po-rt-l { margin-top: 1px; color: var(--mute); font-size: 12.5px; line-height: 17px; overflow-wrap: anywhere; }
.po-rt-l.ko { color: var(--red-flag); }
.po-rt-x { color: var(--mute-2); font-size: 12px; line-height: 17px; }
.po-rt.off .po-rt-n b { color: #9a9da2; }
.po-rt .sw { margin-top: 1px; }
.po-rt.com .po-rt-n b { color: var(--ink-2); font-weight: 500; }
.po-rt:hover .po-rt-n b { text-decoration: underline; text-decoration-color: #c9cbd0; text-underline-offset: 2px; }

/* Contexte chargé */
.po-ctx { margin: 6px 0 0; padding: 0; list-style: none; }
.po-ctx li { display: grid; grid-template-columns: 82px minmax(0, 1fr); gap: 0 10px; padding: 5px 0; color: var(--ink-2); font-size: 13.5px; line-height: 19px; }
.po-ctx li > span:last-child { overflow-wrap: anywhere; }
.po-k { color: var(--mute-2); font-size: 11.5px; font-weight: 700; line-height: 19px; }
@container po (max-width: 420px) {
  .po-ctx li { grid-template-columns: minmax(0, 1fr); padding: 6px 0; }
  .po-k { line-height: 15px; }
}
.po-foot { margin-top: 7px; color: var(--mute-2); font-size: 12px; line-height: 17px; }

/* Compétences */
.po-sks { margin-top: 5px; }
.po-sk { display: flex; align-items: baseline; gap: 10px; width: 100%; padding: 4px 0; text-align: left; }
.po-sk code { flex: none; max-width: 56%; color: #55575c; font: 500 12px/18px var(--mono); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.po-sk span { min-width: 0; color: var(--mute); font-size: 12.5px; line-height: 18px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.po-sk:hover code { color: var(--ink); }

/* Journal */
.po-j-d { margin: 11px 0 2px; color: var(--mute-2); font-size: 11.5px; font-weight: 700; line-height: 16px; }
.po-j-r { display: flex; align-items: flex-start; gap: 8px; width: 100%; padding: 4px 0; text-align: left; font-size: 13px; line-height: 18px; }
.po-j-h { flex: none; width: 50px; color: var(--mute-2); font-size: 12px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.po-j-i { flex: none; width: 14px; height: 18px; display: grid; place-items: center; color: var(--mute-2); }
.po-j-i.done { color: var(--check); }
.po-j-i.rt { color: #5bb85a; }
.po-j-r.ko .po-j-i, .po-j-r.ko .po-j-t { color: var(--red-flag); }
.po-j-t { min-width: 0; color: var(--mute); overflow-wrap: anywhere; }
.po-j-t b { color: var(--ink-2); font-weight: 600; }
.po-j-r:hover .po-j-t b { text-decoration: underline; text-decoration-color: #c9cbd0; text-underline-offset: 2px; }
@container po (max-width: 420px) { .po-j-h { width: 42px; font-size: 11.5px; } }

/* Les projets d'une casquette */
.po-kids { margin-top: 4px; }
.po-kid { display: flex; align-items: center; gap: 8px; width: 100%; min-height: 30px; padding: 3px 0; text-align: left; color: var(--mute-2); }
.po-kid-i { flex: none; width: 16px; display: grid; place-items: center; }
.po-kid-t { flex: 1; min-width: 0; color: var(--ink-2); font-size: 13.5px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.po-kid-m { flex: none; color: var(--mute-2); font-size: 12px; }
.po-kid:hover .po-kid-t { color: var(--ink); }

/* ───────── 2. Le Board « Par aire » ───────── */
/* L'en-tête du Board porte un choix de plus (« Par aire ») : dans une colonne étroite, les sélecteurs passent à la ligne au lieu de déborder */
.bd-head { flex-wrap: wrap; row-gap: 8px; }
.po-b { container: pob / inline-size; padding-bottom: 40px; }
.po-bbody { margin-top: 18px; }
.po-brief { padding: 11px 14px 12px; border-radius: 10px; background: var(--sidebar); }
.po-brief-h { display: flex; align-items: center; gap: 6px; margin-bottom: 3px; color: var(--ai-ink); font-size: 12px; font-weight: 700; line-height: 16px; }
.po-brief-h svg { color: var(--ai); }
.po-brief-h small { margin-left: 2px; color: var(--mute-2); font-size: 12px; font-weight: 600; }
.po-brief p { margin: 2px 0 0; color: var(--ink-2); font-size: 13.5px; line-height: 20px; }
.po-brief b { color: var(--ink); font-weight: 700; }
.po-brief .po-red, .po-brief .po-red b { color: var(--need); }
.po-brief .po-a { color: inherit; }

.po-grid { margin-top: 12px; }
.po-ghead, .po-lane { display: grid; grid-template-columns: minmax(150px, 200px) repeat(3, minmax(0, 1fr)); column-gap: 20px; }
.po-ghead { position: sticky; top: 0; z-index: 2; padding: 10px 0 7px; background: var(--bg); border-bottom: 1px solid var(--hair); color: var(--ink-2); font-size: 12.5px; font-weight: 700; line-height: 18px; }
.po-ghead > span { min-width: 0; display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.po-ghead > span:first-child { color: var(--mute-2); font-weight: 600; }
.po-ghead small { color: var(--mute-2); font-size: 12px; font-weight: 600; }
.po-lane { align-items: start; padding: 13px 0 15px; border-bottom: 1px solid var(--hair-soft); }
.po-lane:last-child { border-bottom: 0; }
.po-lane-h { min-width: 0; }
.po-lane-n { display: flex; align-items: flex-start; gap: 7px; color: var(--ink); font-size: 13.5px; line-height: 18px; font-weight: 700; }
.po-lane-n > span:last-child { min-width: 0; overflow-wrap: anywhere; }
.po-lane-n:hover > span:last-child { text-decoration: underline; text-decoration-color: #c9cbd0; text-underline-offset: 2px; }
.po-lane-i { flex: none; width: 15px; height: 18px; display: grid; place-items: center; }
.po-lane-m { display: flex; flex-wrap: wrap; align-items: center; gap: 5px 10px; margin: 7px 0 0 22px; }
.po-chip { display: inline-flex; align-items: center; gap: 4px; height: 20px; padding: 0 6px 0 9px; border-radius: 10px; background: var(--field); color: #55575c; font-size: 12px; font-weight: 600; white-space: nowrap; transition: background-color 120ms; }
.po-chip:hover { background: #e7e8ec; }
.po-chip svg { opacity: .6; }
.po-here { display: inline-flex; align-items: center; gap: 3px; color: var(--mute-2); font-size: 12px; font-weight: 600; white-space: nowrap; }
.po-here:hover { color: var(--ai-ink); }
.po-cell { min-width: 0; }
.po-cell-l { display: none; }
.po-cell .po-it { padding: 0 0 13px; border-bottom: 0; }
.po-cell .po-it:last-child { padding-bottom: 0; }

/* Colonne étroite (tiroir ouvert, téléphone) : chaque aire devient un bloc, ses trois états l'un sous l'autre */
@container pob (max-width: 760px) {
  .po-ghead { display: none; }
  .po-lane { display: block; padding: 14px 0 16px; }
  .po-lane-h { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; }
  .po-lane-n { flex: 1 1 auto; font-size: 14.5px; line-height: 19px; }
  .po-lane-m { margin: 0; }
  .po-cell { margin: 12px 0 0 22px; }
  .po-cell.nil { display: none; }
  .po-cell-l { display: flex; align-items: baseline; gap: 6px; margin-bottom: 7px; color: var(--mute-2); font-size: 11.5px; font-weight: 700; line-height: 15px; }
  .po-cell-l span { font-weight: 600; }
  .po-cell[data-k="needs"] .po-cell-l { color: var(--need); }
}
@container pob (max-width: 420px) {
  .po-cell { margin-left: 0; }
  .po-brief { padding: 10px 12px 11px; }
}

/* v14 — le fil de travail d'une tâche : un lien gris, à la suite */
.po-fil { margin-left: 8px; color: var(--mute-2); font-size: 12px; font-weight: 500; white-space: nowrap; cursor: pointer; }
.po-fil:hover { color: var(--ai-ink); text-decoration: underline; }
.po-acts .po-fil { align-self: center; margin-left: 4px; }

/* Lot I7 : règles, contexte et journal modifiables, bandeau « le réveiller maintenant » (mode réel) */
.po-wake { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin-top: 10px; }
.po-wake .btn { height: 24px; font-size: 12.5px; }
.po-wake .btn[disabled] { opacity: .7; cursor: default; }
.po-wake .btn svg { color: var(--ai-ink); }
.po-wake-t { color: var(--mute-2); font-size: 12.5px; line-height: 18px; }
.po-rl li { display: flex; align-items: flex-start; gap: 6px; }
.po-rl li.editing::before { display: none; }
.po-rl-t { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.po-rl-b, .po-cx-b { flex: none; display: inline-flex; gap: 2px; opacity: 0; transition: opacity 120ms; }
li:hover > .po-rl-b, li:hover > .po-cx-b, .po-rl-b.on, .po-cx-b.on, li:focus-within > .po-rl-b, li:focus-within > .po-cx-b { opacity: 1; }
.po-rl-b button, .po-cx-b button { width: 20px; height: 20px; display: grid; place-items: center; border-radius: 5px; color: #9b9ea3; }
.po-rl-b button:hover, .po-cx-b button:hover { background: rgba(0,0,0,.06); color: var(--ink); }
@media (hover: none) { .po-rl-b, .po-cx-b { opacity: 1; } }
.po-add { display: flex; align-items: center; gap: 4px; max-width: 460px; height: 28px; margin-top: 8px; padding: 0 3px 0 10px; border-radius: 14px; background: #fff; box-shadow: inset 0 0 0 1px var(--hair); }
.po-add:focus-within { box-shadow: inset 0 0 0 1.5px var(--ai); }
.po-add input { flex: 1; min-width: 0; height: 100%; border: 0; outline: none; background: transparent; font-size: 12.5px; user-select: text; -webkit-user-select: text; cursor: text; }
.po-add input::placeholder { color: #a2a5aa; }
.po-add:focus-within .po-send { color: var(--ai); }
.po-sel { height: 22px; max-width: 92px; border: 0; background: transparent; color: var(--mute); font-size: 12px; font-weight: 600; outline: none; }
.po-edit { width: 100%; height: 24px; padding: 0 8px; border: 0; border-radius: 6px; background: #fff; box-shadow: inset 0 0 0 1.5px var(--ai); outline: none; font-size: 13px; }
.po-rl li.editing { align-items: center; }
.po-ctx li { position: relative; }
.po-ctx li > .po-cx-t { overflow-wrap: anywhere; }
.po-ctx li.editing { align-items: center; }
.po-ctx li:not(.editing) > .po-cx-b { position: absolute; right: 0; top: 4px; background: #fff; }
.po-j-w { display: flex; align-items: flex-start; gap: 6px; }
.po-j-w .po-j-r { flex: 1; min-width: 0; }
.po-j-w.undone .po-j-t { text-decoration: line-through; text-decoration-color: #cfd1d5; }
.po-j-u { font-style: normal; color: var(--mute-2); font-size: 11.5px; margin-left: 4px; }
.po-j-undo { flex: none; margin-top: 4px; padding: 0 8px; height: 18px; border-radius: 9px; font-size: 11.5px; font-weight: 600; line-height: 18px; color: var(--mute); opacity: 0; transition: opacity 120ms, background-color 120ms; }
.po-j-w:hover .po-j-undo, .po-j-undo:focus-visible { opacity: 1; background: var(--field); }
@media (hover: none) { .po-j-undo { opacity: 1; } }
.po-link.rec { color: var(--red-flag); }

/* Réglages de l'aire et fiche de routage (lot I7, mode réel) */
.po-cfg { display: flex; flex-direction: column; gap: 2px; margin: 4px 0 8px; }
.po-cfg-r { display: grid; grid-template-columns: 150px 1fr; gap: 12px; align-items: baseline; padding: 5px 0; font-size: 13px; }
.po-cfg-r > span { color: var(--text-3); }
.po-cfg-r > b { font-weight: 450; display: flex; flex-wrap: wrap; gap: 5px; align-items: center; min-width: 0; overflow-wrap: anywhere; }
.po-cfg-r i { color: var(--text-3); font-style: normal; }
.po-cfg .po-chip { display: inline-block; height: auto; padding: 1px 8px; border-radius: 10px; background: var(--hover, rgba(0,0,0,.05)); font-size: 12px; }
.po-cfg-x { padding: 4px 0 4px 162px; font-size: 12.5px; color: var(--text-2); }
.po-cfg-x > span { display: block; color: var(--text-3); margin-bottom: 2px; }
.po-cfg-x ul { margin: 0; padding-left: 16px; }
@media (max-width: 767px) { .po-cfg-r { grid-template-columns: 1fr; gap: 2px; } .po-cfg-x { padding-left: 0; } }

/* Lot R13 : « Jamais ici » sous le mandat, l'interrupteur de pause de l'aire (même interrupteur qu'une routine) */
.po-jamais li::before { background: #c9ccd1; }
.po-pause { display: flex; align-items: flex-start; gap: 10px; margin-top: 11px; color: var(--ink-2); font-size: 13px; line-height: 19px; }
.po-pause .sw { margin-top: 0; }
.po-pause b { font-weight: 600; }
.po-paused { color: var(--mute); }
.po-chip.po-chip-p { color: var(--mute); }

/* ── src/css/59-dialogue.css ── */
/* Lot I7 · fenêtre de formulaire (Q.dialogue) */
.dlg { width: min(520px, 94vw); height: auto; max-height: 88vh; }
.dlg-h { flex: none; padding: 18px 22px 4px; }
.dlg-h h2 { margin: 0; font-size: 16px; line-height: 22px; font-weight: 700; color: var(--ink); }
.dlg-h p { margin: 3px 0 0; color: var(--mute); font-size: 12.5px; line-height: 18px; }
.dlg-b { flex: 1; min-height: 0; overflow: auto; padding: 8px 22px 6px; }
.dlg-row { display: flex; align-items: flex-start; gap: 14px; padding: 7px 0; }
.dlg-row > label { width: 108px; flex: none; padding-top: 5px; color: var(--ink-2); font-size: 12.5px; font-weight: 600; text-align: right; }
.dlg-row > div { flex: 1; min-width: 0; }
.dlg-row input[type=text], .dlg-row input[type=date], .dlg-row input[type=email], .dlg-row input:not([type]), .dlg-row textarea, .dlg-row select { width: 100%; min-height: 28px; padding: 4px 9px; border: 0; border-radius: 7px; background: var(--field); outline: none; font: inherit; font-size: 13px; color: var(--ink); user-select: text; -webkit-user-select: text; }
.dlg-row textarea { resize: vertical; line-height: 19px; }
.dlg-row input:focus, .dlg-row textarea:focus, .dlg-row select:focus { background: #fff; box-shadow: inset 0 0 0 1.5px var(--ai); }
.dlg-row small { display: block; margin-top: 4px; color: var(--mute); font-size: 12px; line-height: 17px; }
.dlg-chk { display: flex; align-items: center; gap: 8px; padding-top: 4px; font-size: 13px; color: var(--ink-2); }
.dlg-err { margin: 6px 0 0; color: var(--red-flag); font-size: 12.5px; }
.dlg-f { flex: none; display: flex; align-items: center; gap: 8px; padding: 12px 22px 16px; }
.dlg-grow { flex: 1; }
@media (max-width: 767px) {
  .dlg-row { flex-direction: column; align-items: stretch; gap: 4px; }
  .dlg-row > label { width: auto; text-align: left; padding-top: 0; }
  .dlg-row input, .dlg-row textarea, .dlg-row select { font-size: 16px; }
}
.dlg-f .btn.sure { color: var(--red-flag); background: rgba(217,60,84,.08); }
/* Bibliothèque (69-bibliotheque.js) : les boutons d'une ligne apparaissent au survol, toujours visibles au doigt */
.pg-rw .tr-open + .tr-open { margin-left: -4px; }
@media (hover: none) { .pg-rw .tr-open, .cap-th > .trow .tr-open { opacity: 1; } }
/* Lot R13 : au téléphone, le pied passe sur deux lignes quand il porte une suppression (bouton au-dessus, à gauche) :
   rien ne déborde à 375 ni à 320 px, même dans l'état « Confirmer la suppression » */
@media (max-width: 767px) {
  .dlg-f { flex-wrap: wrap; row-gap: 6px; padding: 10px 16px 14px; }
  .dlg-f .dlg-del { flex: none; max-width: 100%; white-space: nowrap; }
  .dlg-f .dlg-del + .dlg-grow { flex: 0 0 100%; height: 0; margin-top: -6px; }
  .dlg-f .dlg-no { margin-left: auto; }
}

/* ── src/css/60-pages.css ── */
/* Pages secondaires (Inbox, Journal, Ressources, Personnes, Compétences, Méta-profil) et compléments des fenêtres */

/* ── Communs ── */
.pg-sub { color: var(--mute); max-width: 560px; }
.pg-list { min-width: 0; }
.pg-none { padding: 54px 0 20px; text-align: center; color: #b0b2b7; font-size: 13px; font-style: italic; }
.pg-ico { width: 16px; height: 16px; margin: 0 7px 0 -2px; display: grid; place-items: center; flex: none; }
.pg-more { display: inline-block; margin: 10px 0 0 21px; color: #8f9196; font-size: 12px; font-weight: 600; }
.pg-more:hover { color: #6a6c71; }

/* Champ de recherche discret, à droite des filtres */
.pg-search {
  margin-left: auto; display: inline-flex; align-items: center; gap: 6px; width: 132px; height: 22px; padding: 0 8px; border-radius: 6px;
  color: #a9abb0; cursor: text; transition: background-color 140ms ease, width 240ms var(--ease), color 140ms ease;
}
.pg-search:hover { background: var(--field); }
.pg-search:focus-within { background: var(--field); width: 196px; color: #6f7277; }
.pg-search input { flex: 1; min-width: 0; border: 0; outline: none; background: transparent; font-size: 12.5px; color: var(--ink); user-select: text; -webkit-user-select: text; }
.pg-search input::placeholder { color: #a9abb0; }

/* ── Inbox : captures à rattacher ── */
.pg-cap { display: flex; align-items: center; min-height: var(--row); border-radius: 5px; }
.pg-cap-t { flex: 0 1 auto; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--ink); }
.pg-cap-d { flex: none; margin-left: 8px; color: var(--mute-2); font-size: 12px; }
.pg-cap-r { flex: none; margin-left: auto; padding-left: 14px; display: inline-flex; align-items: center; gap: 5px; }
.pg-sug { display: inline-flex; align-items: center; gap: 4px; max-width: 190px; margin-right: 4px; color: var(--ai-ink); font-size: 12px; font-weight: 600; }
.pg-sug span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pg-cap.leaving { min-height: 0; overflow: hidden; opacity: 0; transition: height 300ms var(--ease), opacity 220ms ease; }

/* ── Journal ── */
.task:not(.done) .pg-by { display: none; }

/* ── Ressources : thématiques repliables ── */
.pg-th .h-row { margin: 12px 0 0; }
.pg-th:first-child .h-row { margin-top: 0; }
.pg-th .h-count { font-weight: 600; }
.pg-chev { width: 12px; height: 12px; margin-left: -1px; display: grid; place-items: center; flex: none; color: #a9abb0; transition: transform 220ms var(--ease); }
.pg-th.open .pg-chev { transform: rotate(90deg); }
.pg-fold { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 280ms var(--ease); }
.pg-th.open .pg-fold { grid-template-rows: 1fr; }
.pg-fold > div { overflow: hidden; min-height: 0; }
.pg-fold-in { padding: 7px 0 14px; opacity: 0; transition: opacity 140ms ease; }
.pg-th.open .pg-fold-in { opacity: 1; transition: opacity 220ms ease 70ms; }
.pg-res { display: flex; align-items: center; width: 100%; min-height: var(--row); text-align: left; border-radius: 5px; }
.pg-res .pg-ico { color: #b0b2b7; }
.pg-res-t { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--ink); }
.pg-res-k { flex: none; margin-left: 14px; color: var(--mute-2); font-size: 12px; }
.pg-res:active .pg-res-t { color: #55565b; }

/* ── Personnes ── */
.pg-person { display: flex; align-items: center; gap: 10px; min-height: 38px; }
.pg-p-main { flex: 1; min-width: 0; display: flex; flex-direction: column; justify-content: center; }
.pg-p-name { font-size: 14px; line-height: 19px; font-weight: 600; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pg-p-role { font-size: 12px; line-height: 15px; color: var(--mute); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: -1px; }
.pg-p-next { flex: none; max-width: 44%; margin-left: 8px; color: var(--mute); font-size: 12px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pg-p-next.last { color: var(--faint); font-weight: 500; }
.pg-person:active .pg-p-name { color: #55565b; }

/* ── Fiche d'une personne ── */
.pg-back { display: inline-flex; align-items: center; gap: 3px; height: 24px; margin: 6px 0 0 -7px; padding: 0 9px 0 4px; border-radius: 6px; color: var(--mute-2); font-size: 13px; font-weight: 600; }
.pg-back:hover { color: #6a6c71; }
.pg-back:active { background: var(--field); }
.pg-ph { display: flex; align-items: center; gap: 14px; margin-top: 12px; }
.pg-ph-main { min-width: 0; }
.pg-ph-role { margin-top: 1px; color: var(--mute); font-size: 14px; line-height: 20px; }
.pg-ph-meta { margin-top: 14px; }
.pg-ph-meta .pg-next { color: var(--blue); }
.pg-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.pg-prep { margin: 0 0 8px; }
.pg-prep-h { display: flex; align-items: center; gap: 12px; }
.pg-prep-t { flex: 1; min-width: 0; font-weight: 600; color: #2b2b2d; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pg-prep .aib-why { margin-top: 3px; }

/* ── Compétences : ligne qui s'ouvre en carte, comme une tâche ── */
.pg-sk { position: relative; }
.pg-sk-in {
  position: relative; margin: 0 -12px 0 -14px; padding: 0 12px 0 14px; border-radius: var(--r-card);
  background: transparent; box-shadow: 0 0 0 0 rgba(0,0,0,0);
  transition: margin var(--t-open) var(--ease), padding var(--t-open) var(--ease), background-color 200ms ease, box-shadow var(--t-open) ease;
}
.pg-sk-head { display: flex; align-items: center; min-height: var(--row); }
.pg-sk-id { flex: none; max-width: 60%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 500 13px/20px var(--mono); letter-spacing: -.01em; color: var(--ink); }
.pg-sk-name { display: none; margin-left: 10px; color: var(--mute); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pg-sk-desc { flex: 1; min-width: 0; margin-left: 10px; color: var(--mute); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pg-sk-toks { flex: none; display: inline-flex; align-items: center; gap: 4px; margin-left: 12px; }
.pg-tok { height: 16px; max-width: 124px; padding: 0 7px; border-radius: 8px; background: var(--field); color: #7a7d82; font-size: 11px; font-weight: 600; line-height: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pg-tok.n { padding: 0 1px; background: transparent; color: var(--mute-2); }
.pg-sk-body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows var(--t-open) var(--ease); }
.pg-sk-bin { overflow: hidden; min-height: 0; opacity: 0; transition: opacity 180ms ease; }
.pg-sk.open { z-index: 2; }
.pg-sk.open .pg-sk-in { margin-top: 27px; margin-bottom: 28px; padding-top: 12px; background: #fff; box-shadow: var(--shadow-card); }
.pg-sk.open:first-child .pg-sk-in { margin-top: 6px; }
.pg-sk.open .pg-sk-body { grid-template-rows: 1fr; }
.pg-sk.open .pg-sk-bin { opacity: 1; transition: opacity 220ms ease 90ms; }
.pg-sk.open .pg-sk-id { font-weight: 600; color: #232323; }
.pg-sk.open .pg-sk-name { display: block; }
.pg-sk.open .pg-sk-desc, .pg-sk.open .pg-sk-toks { display: none; }
.pg-sk.closing .pg-sk-bin { opacity: 0; transition: opacity 100ms ease; }

.pg-skc { padding: 4px 6px 0 21px; }
.pg-skc-desc { color: #2b2b2d; font-size: 14px; line-height: 20px; padding-bottom: 10px; }
.pg-steps { margin: 0 0 14px; padding: 0; list-style: none; counter-reset: pg-step; border-top: 1px solid var(--hair-list); }
.pg-steps li { counter-increment: pg-step; display: flex; align-items: baseline; gap: 10px; min-height: 28px; padding: 4px 0; border-bottom: 1px solid var(--hair-list); color: #2c2c2e; }
.pg-steps li::before { content: counter(pg-step); flex: none; width: 13px; text-align: center; color: var(--blue); font-size: 12px; font-weight: 700; }
.pg-skc-l { color: var(--mute-2); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; margin-bottom: 7px; }
.pg-assoc { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-bottom: 14px; }
.pg-assoc .sk-chip.add { gap: 4px; }
.pg-link { display: inline-flex; align-items: center; height: 22px; border-radius: 6px; background: var(--field); color: #45474c; font-size: 12.5px; font-weight: 500; max-width: 100%; transition: background-color 120ms; }
.pg-link:hover { background: #e7e8ec; }
.pg-link-l { display: inline-flex; align-items: center; gap: 6px; height: 22px; padding: 0 2px 0 7px; min-width: 0; }
.pg-link-l span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pg-link-x { width: 20px; height: 22px; display: grid; place-items: center; flex: none; color: #a9abb0; border-radius: 0 6px 6px 0; }
.pg-link-x:hover { color: #55565b; }
.pg-skc-foot { align-items: center; }
.pg-stats { color: var(--mute); font-size: 12px; font-weight: 600; }
.pg-skc-btns { display: inline-flex; align-items: center; gap: 6px; flex: none; }

/* ── Méta-profil ── */
.pg-profile .empty-in { gap: 8px; }
.pg-profile svg { margin-bottom: 14px; }

/* ── Recherche rapide : case d'une tâche ── */
.pg-qf-box { width: 12px; height: 12px; border: 1px solid var(--box); border-radius: var(--r-box); background: #fff; }
.pg-qf-box.done { background: var(--check); border-color: var(--check); }
.qf-in > svg { flex: none; }
.qf-in input::placeholder { color: #9a9da2; }
.qf-it .av { width: 16px; height: 16px; font-size: 8px; }

/* ── Réglages ── */
.pop-layer.pg-over { z-index: 95; }
.modal-tab svg { margin-bottom: 1px; }
.modal-tabs .tl-row i[data-act]:active { filter: brightness(.9); }
.pg-pane .set-row > label { line-height: 20px; padding-top: 1px; }
.pg-intro { margin: 0 0 14px; color: var(--mute); font-size: 12.5px; line-height: 18px; }
.pg-swl { display: inline-flex; align-items: center; gap: 9px; min-height: 22px; }
.pg-lock { display: inline-block; opacity: .5; }
.pg-sel {
  display: inline-flex; align-items: center; justify-content: space-between; gap: 10px; min-width: 168px; height: 22px; padding: 0 5px 0 9px;
  border-radius: 6px; background: #fff; box-shadow: 0 0 0 .5px rgba(0,0,0,.16), 0 1px 1.5px rgba(0,0,0,.10); color: var(--ink-2); font-size: 13px;
}
.pg-sel:active { background: #f6f6f7; }
.pg-sel svg { color: #8c8e91; }
.pg-rule { display: inline-flex; align-items: center; gap: 6px; min-height: 22px; font-weight: 600; color: var(--ink-2); }
.pg-rule svg { color: var(--mute-2); }
.pg-keys { display: inline-flex; align-items: center; gap: 4px; min-height: 22px; }
.pg-keys .kbd { font-size: 12px; line-height: 18px; padding: 0 6px; color: #6f7277; }
.pg-tag { display: inline-block; height: 18px; line-height: 16px; margin-top: 2px; }
.pg-conns { margin-top: -4px; }
.pg-conns .conn:last-child { border-bottom: 0; }
.pg-conns .conn > div { flex: 1; min-width: 0; }
.pg-conns .conn small { display: block; font-size: 12px; line-height: 16px; }
.btn.pg-on { color: #5d8f57; gap: 7px; }
.pg-on i { width: 6px; height: 6px; border-radius: 50%; background: var(--green); }

/* Lot I7 : personnes, compétences et ressources modifiables (mode réel) */
.pg-ph { position: relative; }
.pg-ph-acts { margin-left: auto; align-self: flex-start; display: inline-flex; align-items: center; gap: 4px; }
.pg-team { display: inline-flex; align-items: center; gap: 5px; height: 22px; padding: 0 9px 0 7px; border-radius: 11px; box-shadow: inset 0 0 0 1px var(--hair); color: var(--mute); font-size: 12px; font-weight: 600; transition: background-color 120ms, color 120ms; }
.pg-team:hover { background: var(--field); }
.pg-team.on { background: var(--ai-soft, #eef0ff); color: var(--ai-ink); box-shadow: none; }
.pg-add { display: inline-flex; align-items: center; gap: 6px; margin: 14px 0 0; padding: 4px 8px 4px 4px; color: var(--mute); font-size: 13px; font-weight: 600; border-radius: 6px; }
.pg-add:hover { color: var(--ink); background: var(--field); }
.pg-chips .pg-link .chip { background: transparent; height: 22px; }
.pg-chips .pg-link .chip:hover { background: #e7e8ec; }
.pg-chips .sk-chip.add { height: 24px; }
.pg-res-w { display: flex; align-items: center; gap: 2px; }
.pg-res-w .pg-res { flex: 1; min-width: 0; }
.pg-skc-edit { display: grid; gap: 8px; margin-top: 8px; }
.pg-skc-edit textarea { width: 100%; min-height: 220px; padding: 10px 12px; border: 0; border-radius: 8px; background: var(--field); outline: none; font: 12.5px/19px var(--mono); color: var(--ink); resize: vertical; user-select: text; -webkit-user-select: text; }
.pg-skc-edit textarea:focus { background: #fff; box-shadow: inset 0 0 0 1.5px var(--ai); }
.pg-skc-md { margin: 8px 0 0; padding: 10px 12px; border-radius: 8px; background: var(--field); font: 12.5px/19px var(--mono); color: var(--ink-2); white-space: pre-wrap; overflow-wrap: anywhere; max-height: 280px; overflow: auto; }

/* Lot L8 : Réglages > Connecteurs en mode réel */
.pg-conns .conn .imp-adr { font-family: var(--mono, ui-monospace, monospace); font-size: 11px; color: var(--mute-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.imp-form { display: flex; flex-direction: column; gap: 8px; margin-top: 8px; }
.imp-champ { display: flex; flex-direction: column; gap: 3px; font-size: 12px; color: var(--mute); }
.imp-in, .imp-q { height: 28px; padding: 0 9px; border-radius: 7px; border: 0; box-shadow: inset 0 0 0 1px var(--hair); background: var(--paper, #fff); font: inherit; font-size: 13px; color: var(--ink); }
.imp-q { width: 100%; margin: 4px 0 6px; }
.imp-acts { display: flex; gap: 6px; margin-top: 4px; }
.imp-regle { width: 100%; min-height: 220px; padding: 9px; border-radius: 7px; border: 0; box-shadow: inset 0 0 0 1px var(--hair); font-family: var(--mono, ui-monospace, monospace); font-size: 11.5px; line-height: 16px; color: var(--ink); background: var(--field); resize: vertical; }
.imp-pb { color: var(--ink-2); }

/* ── src/css/62-palette.css ── */
/* Palette : recherche globale (⌘K), ouverture rapide (⌘O), barre du « nouvel onglet ».
   Même gabarit que l'arbre de notes (41-tree) : des lignes d'une seule ligne, une petite icône sans tuile,
   le contexte en gris à droite. Rien d'affiché qui ne serve pas à choisir. */
.pal-back { position: fixed; inset: 0; z-index: 75; display: flex; justify-content: center; align-items: flex-start; padding-top: 13vh; background: rgba(20,22,26,.16); opacity: 0; transition: opacity 160ms ease; }
.pal-back.in { opacity: 1; }
.pal { container-type: inline-size; width: min(600px, 92vw); max-height: min(456px, 74vh); display: flex; flex-direction: column; overflow: hidden; background: #fff; border-radius: 12px; box-shadow: 0 0 0 1px rgba(0,0,0,.10), 0 18px 50px rgba(0,0,0,.22), 0 2px 8px rgba(0,0,0,.08); opacity: 0; transform: translateY(-6px) scale(.98); transform-origin: top center; transition: opacity 160ms var(--ease-out), transform 160ms var(--ease-out); }
.pal-back.in .pal { opacity: 1; transform: none; }

/* Champ */
.pal-head { flex: none; display: flex; align-items: center; gap: 9px; height: 42px; padding: 0 12px 0 14px; color: #9a9da2; box-shadow: inset 0 -1px var(--hair-soft); }
.pal-in { flex: 1; min-width: 0; height: 100%; border: 0; outline: none; background: transparent; padding: 0; font-size: 15px; line-height: 20px; color: var(--ink); caret-color: var(--check); user-select: text; -webkit-user-select: text; cursor: text; }
.pal-in::placeholder { color: var(--faint); }
.pal-x { flex: none; width: 15px; height: 15px; border-radius: 50%; display: grid; place-items: center; background: #c9cbd0; color: #fff; transition: background-color 120ms; }
.pal-x:hover { background: #a9acb2; }
.pal-x svg path { stroke-width: 2.2; }
.pal-k { flex: none; display: inline-block; min-width: 16px; padding: 0 4px; border-radius: 4px; background: rgba(0,0,0,.045); color: #9a9da3; font: 600 10.5px/15px var(--font); text-align: center; white-space: nowrap; }

/* Filtres par catégorie : du texte, la catégorie active sur un fond léger */
.pal-tabs { flex: none; display: flex; align-items: center; gap: 1px; height: 30px; padding: 6px 6px 0; overflow-x: auto; scrollbar-width: none; }
.pal-tabs::-webkit-scrollbar { display: none; }
.pal-tab { flex: none; height: 22px; padding: 0 7px; border-radius: 5px; display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 500; line-height: 22px; color: var(--mute); white-space: nowrap; transition: background-color 120ms, color 120ms; }
.pal-tab i { font-style: normal; font-size: 11px; color: var(--faint); font-variant-numeric: tabular-nums; }
.pal-tab:not(.on):hover { background: rgba(0,0,0,.04); color: var(--ink-2); }
.pal-tab.on { background: var(--field); color: var(--ink); font-weight: 600; }
.pal-tab.on i { color: var(--mute-2); font-weight: 500; }

/* Résultats */
.pal-list { position: relative; flex: 0 1 auto; min-height: 0; padding: 2px 6px 6px; }   /* la fenêtre prend la hauteur de ses résultats, jusqu'à son plafond : pas de blanc sous trois lignes */
.pal-g { display: flex; align-items: center; justify-content: space-between; height: 26px; padding: 8px 8px 0; color: var(--mute-2); font-size: 11px; font-weight: 700; line-height: 18px; letter-spacing: .06em; text-transform: uppercase; }
.pal-more { height: 18px; padding: 0 5px; margin-right: -5px; border-radius: 4px; font-size: 11.5px; font-weight: 500; letter-spacing: 0; text-transform: none; color: var(--mute-2); transition: background-color 120ms, color 120ms; }
.pal-more:hover { background: rgba(0,0,0,.05); color: var(--ink-2); }
.pal-sp { height: 4px; }
.pal-sp.line { height: 9px; margin: 4px 8px 0; box-shadow: inset 0 1px var(--hair-soft); }
.pal-row { display: flex; align-items: center; gap: 8px; height: 28px; padding: 0 8px; border-radius: 6px; color: var(--ink); font-size: 13.5px; line-height: 28px; }
.pal-row.on { background: var(--ai-soft); }
.pal-ic { flex: none; width: 14px; height: 14px; display: grid; place-items: center; }
.pal-ic .av { width: 14px; height: 14px; font-size: 7.5px; line-height: 1; }
.pal-cb { width: 12px; height: 12px; border: 1px solid var(--box); border-radius: 3px; background: #fff; display: grid; place-items: center; }
.pal-cb.done { background: var(--check); border-color: var(--check); }
.pal-t, .pal-s, .pal-rf { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pal-t { flex: 0 1 auto; }
.pal-t b { font-weight: 600; }
.pal-s { flex: 1 1 0; font-size: 12.5px; color: var(--mute); }
.pal-r { flex: 0 8 auto; display: flex; justify-content: flex-end; min-width: 20%; max-width: 46%; margin-left: auto; padding-left: 4px; overflow: hidden; font-size: 12px; color: var(--mute-2); white-space: nowrap; }
.pal-rd { flex: none; white-space: pre; }                 /* le titre passe d'abord, puis la date : c'est le fil qui cède */
.pal-row.has-s .pal-t { max-width: 50%; }                 /* le passage trouvé garde toujours de la place après le titre */
.pal-row.has-s .pal-r { min-width: 0; max-width: 32%; }
.pal-rf svg { display: inline-block; vertical-align: -2px; }
.pal-row.done .pal-t { color: var(--mute); }
.pal-row.soft .pal-t { color: var(--ink-2); }
.pal-dot { font-style: normal; color: #c3c5ca; white-space: pre; }
.pal-cmd { font: 500 11.5px/16px var(--mono); }
.pal mark { background: color-mix(in srgb, var(--yellow) 42%, transparent); color: inherit; font-weight: inherit; border-radius: 2px; padding: 0; }
.pal-s mark, .pal-r mark { color: var(--ink-2); }
.pal-cut { padding: 8px 8px 2px; color: var(--faint); font-size: 12px; }
.pal-tip { display: flex; align-items: center; flex-wrap: wrap; gap: 3px 4px; padding: 10px 8px 2px; color: var(--faint); font-size: 11.5px; line-height: 16px; }
.pal-tip .pal-k { margin-left: 5px; }
.pal-none { padding: 22px 16px 10px; text-align: center; color: var(--mute); font-size: 13px; line-height: 18px; overflow-wrap: anywhere; }
.pal-none b { font-weight: 600; color: var(--ink-2); }

/* Pied : les raccourcis, sur une ligne basse */
.pal-foot { flex: none; display: flex; align-items: center; height: 28px; padding: 0 14px; box-shadow: inset 0 1px var(--hair-soft); color: var(--mute-2); font-size: 11px; white-space: nowrap; }
.pal-hints { flex: 1; min-width: 0; display: flex; align-items: center; gap: 12px; overflow: hidden; }
.pal-h { flex: none; display: inline-flex; align-items: center; gap: 5px; transition: opacity 120ms; }
.pal-foot.no-side .pal-h.side { opacity: .38; }

/* En ligne : le panneau « nouvel onglet ». Pas de fenêtre : un champ, comme celui de la page Recherche, et la liste dessous. */
.pal.inline { flex: 1; min-height: 0; width: 100%; max-width: 600px; max-height: none; margin: 0 auto; overflow: visible; background: transparent; border-radius: 0; box-shadow: none; opacity: 1; transform: none; transition: none; }
.pal.inline .pal-head { height: 32px; margin: 14px 0 4px; padding: 0 8px 0 10px; gap: 8px; border-radius: 10px; background: var(--field); box-shadow: none; transition: background-color 140ms, box-shadow 140ms; }
.pal.inline .pal-head:focus-within { background: #f4f5f7; box-shadow: inset 0 0 0 1px #e3e5ea; }
.pal.inline .pal-tabs { margin: 0 -8px; padding: 4px 0 0; }
.pal.inline .pal-list { flex: 1; margin: 0 -8px; padding: 2px 0 10px; }
.pal.inline .pal-foot { padding: 0; }

/* Peu de largeur (panneau étroit, téléphone) : le titre d'abord ; le passage trouvé l'emporte sur le contexte */
@container (max-width: 440px) {
  .pal-row.has-s .pal-r, .pal-rd { display: none; }
  .pal-r { max-width: 38%; }
}

/* Téléphone : des lignes au doigt, la fenêtre sur toute la largeur moins 16 px */
@media (max-width: 760px) {
  .pal-back { padding: calc(8px + env(safe-area-inset-top)) 8px 0; }
  .pal { width: calc(100vw - 16px); max-height: min(540px, calc(100dvh - 16px - env(safe-area-inset-top) - env(safe-area-inset-bottom))); }
  .pal-head { height: 48px; gap: 10px; }
  .pal-head > svg { width: 17px; height: 17px; }
  .pal-x { width: 18px; height: 18px; }
  .pal-tabs { height: 40px; gap: 2px; }
  .pal-tab { height: 30px; padding: 0 10px; border-radius: 7px; font-size: 14px; line-height: 30px; }
  .pal-tab i { font-size: 12.5px; }
  .pal-g { height: 34px; padding-top: 12px; font-size: 12px; }
  .pal-more { height: 24px; font-size: 13.5px; }
  .pal-row { height: 40px; gap: 10px; border-radius: 8px; font-size: 15.5px; line-height: 40px; }
  .pal-ic { width: 16px; height: 16px; }
  .pal-ic > svg { width: 15px; height: 15px; }
  .pal-ic .li-tile { transform: scale(1.15); }
  .pal-ic .av { width: 16px; height: 16px; font-size: 8px; }
  .pal-cb { width: 14px; height: 14px; border-radius: 3.5px; }
  .pal-s { font-size: 14px; }
  .pal-r { font-size: 13.5px; }
  .pal-cmd { font-size: 12.5px; }
  .pal-cut { font-size: 13px; }
  .pal-tip { display: none; }                               /* les touches n'y sont pas affichées : la ligne ne dirait plus rien */
  .pal-none { font-size: 15px; line-height: 21px; }
  .pal-foot { display: none; }
  .pal.inline { width: calc(100% + 24px); max-width: none; margin: 0 -12px; }
  .pal.inline .pal-head { height: 40px; margin-top: 10px; }
}

/* ── src/css/63-search.css ── */
/* Page Recherche : les fils, notes, conversations et personnes trouvés s'affichent en lignes compactes,
   au même gabarit que la palette (62-palette) et que l'arbre de notes (41-tree).
   Le champ, les titres de section et les tâches gardent les styles communs (47-panes, 20-list). */
.srch-filters { margin-top: 14px; }
.srch-filters .pill { padding: 0 9px; }
.srch-filters .pill i { font-size: 11px; font-style: normal; font-weight: 600; opacity: .62; }

.srch-rows { container-type: inline-size; margin: -2px -8px 0; }
.srch-row { display: flex; align-items: center; gap: 8px; height: 28px; padding: 0 8px; border-radius: 6px; color: var(--ink); font-size: 13.5px; line-height: 28px; }
.srch-row:hover { background: rgba(0, 0, 0, .04); }
.srch-row:active { background: var(--field); }
.srch-i { flex: none; width: 14px; height: 14px; display: grid; place-items: center; }
.srch-i .av { width: 14px; height: 14px; font-size: 7.5px; line-height: 1; }
.srch-t, .srch-s, .srch-rf { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.srch-t { flex: 0 1 auto; }
.srch-s { flex: 1 1 0; font-size: 12.5px; color: var(--mute); }
.srch-r { flex: 0 8 auto; display: flex; justify-content: flex-end; min-width: 20%; max-width: 46%; margin-left: auto; overflow: hidden; font-size: 12px; color: var(--mute-2); white-space: nowrap; }
.srch-rd { flex: none; white-space: pre; }                /* le titre passe d'abord, puis la date : c'est le fil qui cède */
.srch-r i { font-style: normal; color: #c3c5ca; }
.srch-row.has-s .srch-t { max-width: 50%; }
.srch-row.has-s .srch-r { min-width: 0; max-width: 32%; }
/* « Ouvrir à côté » : au survol, dans une case réservée avant le contexte, pour que rien ne bouge et que la droite reste alignée */
.srch-b { flex: none; width: 20px; height: 20px; margin-left: auto; border-radius: 5px; display: grid; place-items: center; color: var(--mute); opacity: 0; }
.srch-b + .srch-r { margin-left: 0; }
.srch-row:hover .srch-b { opacity: 1; }
.srch-b:hover { background: rgba(0, 0, 0, .08); color: var(--ink-2); }
.srch-res mark { background: color-mix(in srgb, var(--yellow) 42%, transparent); padding: 0; }
.srch-s mark { color: var(--ink-2); }

/* Colonne étroite (page ouverte à côté d'un autre panneau) : le passage trouvé l'emporte sur le contexte */
@container (max-width: 440px) {
  .srch-row.has-s .srch-r, .srch-rd { display: none; }
  .srch-r { max-width: 38%; }
}

/* Téléphone : des lignes au doigt */
@media (max-width: 760px) {
  .srch-row { height: 40px; gap: 10px; border-radius: 8px; font-size: 15.5px; line-height: 40px; }
  .srch-i { width: 16px; height: 16px; }
  .srch-i > svg { width: 15px; height: 15px; }
  .srch-i .li-tile { transform: scale(1.15); }
  .srch-i .av { width: 16px; height: 16px; font-size: 8px; }
  .srch-s { font-size: 14px; }
  .srch-r { font-size: 13.5px; }
  .srch-b { display: none; }                               /* un seul panneau à l'écran : pas d'« à côté » */
  .srch-b + .srch-r { margin-left: auto; }
}

/* ── src/css/64-capture.css ── */
/* v4 · Capture, Routines, Ressources en notes */

/* ── Communs ── */
.cap-page { container-type: inline-size; }
.cap-sub { color: var(--mute); max-width: 560px; }
.cap-none { padding: 54px 0 20px; text-align: center; color: #b0b2b7; font-size: 13px; font-style: italic; }
.cap-tasks { margin-top: 26px; }
.cap-ko { color: var(--red-flag); font-weight: 600; }
.cap-dot { width: 7px; height: 7px; border-radius: 50%; flex: none; display: inline-block; background: var(--green); }
.cap-dot.ko { background: var(--red-flag); }
.cap-dot.off { background: #cdcfd3; }

/* ── Bandeau de synthèse : trois chiffres, sans cartes ── */
.cap-stats { display: flex; flex-wrap: wrap; gap: 10px 40px; margin-top: 22px; }
.cap-stat { display: flex; flex-direction: column; min-width: 0; }
.cap-stat b { font-size: 20px; line-height: 25px; font-weight: 700; letter-spacing: -.012em; color: var(--ink); font-variant-numeric: tabular-nums; white-space: nowrap; }
.cap-stat span { font-size: 12px; line-height: 16px; font-weight: 600; color: var(--mute); white-space: nowrap; }

/* Légende des colonnes, une seule fois, au-dessus de la première famille */
.cap-cols { display: flex; align-items: center; gap: 10px; height: 18px; margin-top: 30px; color: var(--faint); font-size: 11px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }
.cap-cols-t { flex: 1; min-width: 0; color: var(--mute-2); }
.cap-cols .cap-n, .cap-cols .cap-last { color: inherit; font-size: inherit; font-weight: inherit; }
.cap-cols-sw { width: 28px; margin-left: 4px; flex: none; }
.cap-cols + .cap-tasks { margin-top: 10px; }

/* ── Ligne qui s'ouvre en carte (source ou routine) ── */
.cap-card { position: relative; }
.cap-in {
  position: relative; margin: 0 -12px 0 -14px; padding: 0 12px 0 14px; border-radius: var(--r-card);
  background: transparent; box-shadow: 0 0 0 0 rgba(0,0,0,0);
  transition: margin var(--t-open) var(--ease), padding var(--t-open) var(--ease), background-color 200ms ease, box-shadow var(--t-open) ease;
}
.cap-head { display: flex; align-items: center; gap: 10px; min-height: 38px; }
.cap-badge {
  width: 26px; height: 26px; border-radius: 7px; flex: none; display: grid; place-items: center;
  background: color-mix(in srgb, var(--c, #7c8088) 11%, #fff); color: color-mix(in srgb, var(--c, #7c8088) 84%, #000);
  font-size: 10.5px; font-weight: 700; letter-spacing: .02em; transition: background-color 180ms, color 180ms;
}
.cap-card.off .cap-badge { background: var(--field); color: #a9abb0; }
.cap-main { flex: 1; min-width: 0; display: flex; flex-direction: column; justify-content: center; }
.cap-name { font-size: 14px; line-height: 19px; font-weight: 600; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: color 180ms; }
.cap-mode { font-size: 12px; line-height: 15px; margin-top: -1px; color: var(--mute); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cap-mode b { font-weight: 600; }
.cap-card.off .cap-name { color: #9a9da2; }
.cap-n { flex: none; width: 52px; text-align: right; color: #818388; font-size: 12px; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.cap-last { flex: none; width: 112px; text-align: right; color: var(--mute-2); font-size: 12px; white-space: nowrap; }
.cap-card.off .cap-n, .cap-card.off .cap-last { color: var(--faint); }
.cap-head .sw { width: 28px; height: 17px; border-radius: 9px; margin-left: 4px; }
.cap-head .sw::after { width: 13px; height: 13px; }
.cap-head .sw.on::after { transform: translateX(11px); }
.cap-head:active .cap-name { color: #55565b; }

.cap-body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows var(--t-open) var(--ease); }
.cap-bin { overflow: hidden; min-height: 0; opacity: 0; transition: opacity 180ms ease; }
.cap-card.open { z-index: 2; }
.cap-card.open .cap-in { margin-top: 22px; margin-bottom: 24px; padding-top: 7px; background: #fff; box-shadow: var(--shadow-card); }
.cap-card.open:first-child .cap-in { margin-top: 6px; }
.cap-card.open:last-child .cap-in { margin-bottom: 8px; }
.cap-card.open .cap-body { grid-template-rows: 1fr; }
.cap-card.open .cap-bin { opacity: 1; transition: opacity 220ms ease 90ms; }
.cap-card.open .cap-name { color: #232323; }
.cap-card.closing .cap-bin { opacity: 0; transition: opacity 100ms ease; }

/* Contenu de la carte, aligné sur le nom */
.cap-c { padding: 6px 4px 0 36px; }
.cap-desc { color: #2b2b2d; font-size: 14px; line-height: 20px; padding-bottom: 10px; max-width: 600px; }
.cap-kv { margin: 0 0 14px; padding: 0; list-style: none; color: var(--ai-text); font-size: 13.5px; }
.cap-kv li { display: flex; gap: 10px; padding: 2px 0; line-height: 20px; }
.cap-k { flex: none; width: 62px; padding-top: 1px; color: #a2a4a9; font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.cap-k.cap-ko { color: var(--red-flag); }
.cap-kv span.cap-ko:not(.cap-k) { font-weight: 400; }
.cap-l { margin-bottom: 6px; color: var(--mute-2); font-size: 11px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }
.cap-lines { margin: 0 0 14px; border-top: 1px solid var(--hair-list); }
.cap-line { display: flex; align-items: center; gap: 9px; width: 100%; min-height: 28px; border-bottom: 1px solid var(--hair-list); color: #2c2c2e; font-size: 13.5px; text-align: left; }
.cap-line-i { width: 14px; flex: none; display: grid; place-items: center; }
.cap-line-t { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cap-line-d { flex: none; color: var(--mute-2); font-size: 12px; white-space: nowrap; }
.cap-line.link:hover .cap-line-t { color: var(--blue); }
.cap-line.link:active { background: var(--field); }
.cap-line.empty { color: #b0b2b7; font-size: 13px; font-style: italic; }
.cap-line.run { align-items: baseline; padding: 4px 0; }
.cap-line.run .cap-line-t { white-space: normal; overflow: visible; line-height: 19px; }
.cap-line.run .cap-dot { align-self: flex-start; margin-top: 6px; }
.cap-line.run .mini { align-self: center; }
.cap-line.run.ko .cap-line-t { color: #c02f4c; }
.cap-run-d { flex: none; width: 132px; color: var(--mute); font-size: 12px; white-space: nowrap; }
.cap-run-u { flex: none; width: 52px; text-align: right; color: var(--mute-2); font-size: 12px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.cap-steps { margin: 0 0 14px; padding: 0; list-style: none; counter-reset: cap-step; border-top: 1px solid var(--hair-list); }
.cap-steps li { counter-increment: cap-step; display: flex; align-items: baseline; gap: 10px; min-height: 28px; padding: 4px 0; border-bottom: 1px solid var(--hair-list); color: #2c2c2e; }
.cap-steps li::before { content: counter(cap-step); flex: none; width: 14px; text-align: center; color: var(--blue); font-size: 12px; font-weight: 700; }
.cap-assoc { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-bottom: 14px; }
.cap-assoc .chip svg { color: #8c8e91; }
.cap-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 26px; padding: 0 0 12px; }
.cap-foot-l { min-width: 0; color: var(--mute); font-size: 12px; font-weight: 600; }
.cap-foot-r { display: inline-flex; align-items: center; gap: 6px; flex: none; }
.cap-link { display: inline-flex; align-items: center; gap: 6px; height: 24px; margin-left: -7px; padding: 0 8px 0 7px; border-radius: 6px; color: var(--blue); font-size: 13px; font-weight: 600; }
.cap-link:hover { background: var(--field); }

/* ── Routines : état, dernière et prochaine exécution ── */
.cap-run { flex: none; display: flex; flex-direction: column; align-items: flex-end; justify-content: center; min-width: 0; }
.cap-run-1 { display: inline-flex; align-items: center; gap: 8px; color: #818388; font-size: 12px; line-height: 19px; font-weight: 600; white-space: nowrap; }
.cap-run-2 { margin-top: -1px; color: var(--mute-2); font-size: 12px; line-height: 15px; white-space: nowrap; }
.cap-st { display: inline-flex; align-items: center; gap: 5px; font-weight: 700; color: #5d9a56; }
.cap-st i { width: 7px; height: 7px; border-radius: 50%; background: var(--green); }
.cap-st.ko { color: var(--red-flag); }
.cap-st.ko i { background: var(--red-flag); }
.cap-st.off { color: #a3a5aa; }
.cap-st.off i { background: #cdcfd3; }

/* Routines de capture, en lignes compactes sur la page Capture */
.cap-rl { display: flex; align-items: center; gap: 9px; min-height: var(--row); border-radius: 5px; }
.cap-rl .cap-dot { margin: 0 3px 0 1px; }
.cap-rl-t { flex: 0 1 auto; min-width: 0; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cap-rl-c { flex: none; color: var(--mute-2); font-size: 12px; white-space: nowrap; }
.cap-rl-d { flex: none; margin-left: auto; padding-left: 12px; color: var(--mute); font-size: 12px; font-weight: 600; white-space: nowrap; }
.cap-rl.ko .cap-rl-d { color: var(--red-flag); }
.cap-rl.off .cap-rl-t { color: #9a9da2; }
.cap-rl.off .cap-rl-d { color: var(--faint); }
.cap-rl:active .cap-rl-t { color: #55565b; }
.cap-all { flex: none; height: 20px; margin-right: -6px; padding: 0 6px; border-radius: 5px; color: var(--mute-2); font-size: 12px; font-weight: 600; }
.cap-all:hover { background: var(--field); color: #6a6c71; }
.cap-add { display: inline-flex; align-items: center; gap: 6px; height: 24px; margin: 30px 0 0 -6px; padding: 0 9px 0 5px; border-radius: 6px; color: #8f9196; font-size: 13px; font-weight: 600; }
.cap-add:hover { color: #6a6c71; }
.cap-add:active { background: var(--field); }

/* ── Ressources : l'arbre de notes, dans la colonne principale ── */
.cap-search {
  margin-left: auto; display: inline-flex; align-items: center; gap: 6px; width: 132px; height: 22px; padding: 0 8px; border-radius: 6px;
  color: #a9abb0; cursor: text; transition: background-color 140ms ease, width 240ms var(--ease), color 140ms ease;
}
.cap-search:hover { background: var(--field); }
.cap-search:focus-within { background: var(--field); width: 196px; color: #6f7277; }
.cap-search input { flex: 1; min-width: 0; border: 0; outline: none; background: transparent; font-size: 12.5px; color: var(--ink); user-select: text; -webkit-user-select: text; }
.cap-search input::placeholder { color: #a9abb0; }
.cap-res { margin-top: 20px; }
.cap-tree { margin: 0 -8px; padding: 0 0 24px; }
.cap-th + .cap-th { margin-top: 1px; }
.cap-kids { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 260ms var(--ease); }
.cap-th.open > .cap-kids { grid-template-rows: 1fr; }
.cap-kids > div { overflow: hidden; min-height: 0; opacity: 0; transition: opacity 140ms ease; }
.cap-th.open > .cap-kids > div { opacity: 1; transition: opacity 220ms ease 60ms; }
.cap-tree.flat .trow .tw { display: none; }
.cap-tree mark { background: #fbe9a8; color: inherit; border-radius: 2px; padding: 1px 0; }
.cap-found { margin: 0 0 8px; color: var(--mute-2); font-size: 12px; font-weight: 600; }

/* ── Colonne étroite (un ou deux panneaux ouverts à côté) ── */
@container (max-width: 520px) {
  .cap-last, .cap-run-2, .cap-rl-c { display: none; }
  .cap-run-d { width: 118px; }
  .cap-run-u { display: none; }
  .cap-stats { gap: 10px 26px; }
}
@container (max-width: 400px) {
  .cap-n { display: none; }
  .cap-c { padding-left: 4px; }
}

/* I6 : réglages d'un canal */
.cap-set { padding: 12px; display: flex; flex-direction: column; gap: 8px; }
.cap-set-l { display: flex; flex-direction: column; gap: 3px; color: var(--mute); font-size: 11.5px; font-weight: 600; }
.cap-set-l .dpop-in { margin: 0; font-weight: 400; font-size: 13px; }
.cap-set-f { display: flex; align-items: center; justify-content: space-between; margin-top: 4px; }

/* ── src/css/65-jour.css ── */
/* « Journal » : ce que j'ai déposé, ce qui s'est passé (jr-).
   La note du jour est le journal. En haut, de quoi changer de jour : la semaine et ses sept jours. Dessous, le jour choisi : la capture, puis
   · « Ma note » (.v-note) : mes mots seulement, à pleine largeur, comme une page de journal ;
   · « Tout ce qui s'est passé » (.v-tout) : le fil chronologique, où mes mots (à l'encre, barre à gauche) croisent les faits captés (une ligne grise). */

.col.jr-col { max-width: 824px; }
.main-scroll:has(> .col.jr-col) { container: jrp / inline-size; }
@container jrp (max-width: 780px) { .ws .pane .main-scroll .col.jr-col { padding-left: 36px; padding-right: 32px; } }
@container jrp (max-width: 620px) { .ws .pane .main-scroll .col.jr-col { padding-left: 26px; padding-right: 24px; } }

.jr { container: jr / inline-size; }
.jr-grow { flex: 1; }

/* ───────── L'en-tête : « Journal », puis la semaine affichée (elle ouvre le calendrier) ; les flèches passent d'une semaine à l'autre ───────── */
.jr-lh { flex-wrap: wrap; gap: 4px 8px; }
.jr-lh .lh-title { flex: none; }
.jr-wk-t { flex: 0 1 auto; min-width: 0; display: inline-flex; align-items: baseline; flex-wrap: wrap; gap: 0 8px; margin: 3px 0 0 2px; padding: 2px 8px; border-radius: 8px; color: var(--ink-2); font-size: 15px; font-weight: 600; line-height: 22px; text-align: left; white-space: nowrap; transition: background-color 120ms; }
.jr-wk-t:hover { background: var(--field); }
.jr-wk-r { display: inline-flex; align-items: center; gap: 6px; color: var(--mute); font-size: 15px; font-weight: 500; letter-spacing: 0; white-space: nowrap; }
.jr-wk-r svg { color: var(--faint); }
.jr-nav { flex: none; display: inline-flex; align-items: center; gap: 1px; height: 28px; margin-left: auto; margin-right: -6px; }
@container jr (max-width: 430px) { .jr-wk-t { order: 3; flex: 1 1 100%; margin: 0 0 0 -8px; } }
.jr-tod { height: 24px; padding: 0 9px; border-radius: 6px; color: var(--mute); font-size: 12.5px; font-weight: 600; white-space: nowrap; transition: background-color 120ms, color 120ms; }
.jr-tod:hover { background: var(--field); color: var(--ink-2); }

/* Les sept jours, du lundi au dimanche, sur toute la largeur. Le jour choisi est une plaque ; aujourd'hui est jaune ; un point : j'y ai écrit. */
.jr-strip { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 2px; margin-top: 12px; }
.jr-d { min-width: 0; padding: 5px 0 5px; border-radius: 10px; display: flex; flex-direction: column; align-items: center; gap: 1px; transition: background-color 120ms; }
.jr-d:hover { background: rgba(0, 0, 0, .04); }
.jr-d.on { background: var(--sel); }
.jr-d small { color: var(--mute-2); font-size: 11px; font-weight: 600; line-height: 14px; }
.jr-d b { position: relative; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; color: var(--ink-2); font-size: 15px; font-weight: 600; font-variant-numeric: tabular-nums; }
.jr-d.fut b { color: var(--mute-2); font-weight: 500; }
.jr-d.today b { background: var(--yellow); color: #3d3405; font-weight: 700; }
.jr-d > i { width: 4px; height: 4px; margin-top: 1px; border-radius: 50%; }
.jr-d.has > i { background: var(--deco, #b0b2b7); }

/* ───────── Le jour choisi : son titre, et le choix de la vue ───────── */
.jr-day { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 10px; min-height: 28px; margin-top: 20px; }
.jr-dt { margin: 0; color: var(--ink); font-size: 18px; font-weight: 700; line-height: 26px; letter-spacing: -.014em; }
.jr-rel { padding-top: 2px; color: var(--mute-2); font-size: 13px; font-weight: 600; white-space: nowrap; }
.jr-day-r { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; min-width: 0; }
.jr-seg button { white-space: nowrap; }
@container jr (max-width: 600px) {
  .jr-day-r { flex: 1 1 100%; }
}
@container jr (max-width: 300px) { .jr-seg button { padding: 0 7px; } }

/* ───────── Écrire ───────── */
.jr-comp { margin-top: 12px; padding: 12px 14px 8px; border-radius: 10px; background: #f8f8f9; transition: background-color 200ms ease, box-shadow 300ms ease; }
.jr-comp:focus-within, .jr-comp.rec { background: #fff; box-shadow: var(--shadow-card); }
.jr-write { min-height: 44px; max-height: 40vh; overflow-y: auto; color: var(--ink); font-size: 15px; line-height: 23px; white-space: pre-wrap; overflow-wrap: anywhere; }
.jr-write:empty::before { color: #a9abb0; }
.jr-tools { display: flex; align-items: center; flex-wrap: wrap; gap: 2px; min-height: 26px; margin: 6px 0 0 -7px; }
.jr-tool { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 9px 0 7px; border-radius: 6px; color: #5f6168; font-size: 12.5px; font-weight: 600; white-space: nowrap; transition: background-color 120ms, color 120ms, transform 120ms; }
.jr-tool:hover { background: rgba(0, 0, 0, .05); color: var(--ink-2); }
.jr-tool:active { transform: scale(.97); }
.jr-hint { margin-left: auto; padding-left: 7px; color: #b6b8bd; font-size: 11.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@container jr (max-width: 520px) { .jr-tools .jr-tool ~ .jr-hint { display: none; } }

.jr-rec { display: flex; align-items: center; gap: 10px; min-height: 44px; min-width: 0; }
.jr-rec b { color: var(--ink); font-size: 14px; font-weight: 600; white-space: nowrap; }
.jr-rec time { color: var(--red); font-size: 13px; font-weight: 700; font-variant-numeric: tabular-nums; }
.jr-rec .btn { flex: none; }
.jr-rec.mt { min-height: 32px; margin-bottom: 6px; padding-bottom: 8px; border-bottom: 1px solid var(--hair-soft); }
.jr-pulse { flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--red); animation: jr-pulse 1300ms ease-out infinite; }
@keyframes jr-pulse { 0% { box-shadow: 0 0 0 0 rgba(217, 60, 84, .45); } 70%, 100% { box-shadow: 0 0 0 9px rgba(217, 60, 84, 0); } }
.jr-wave { flex: 1; min-width: 0; height: 22px; display: flex; align-items: center; gap: 3px; overflow: hidden; }
.jr-wave i { flex: none; width: 2.5px; height: 100%; border-radius: 2px; background: #c9ccd2; transform: scaleY(.25); animation: jr-wave 900ms ease-in-out infinite alternate; }
@keyframes jr-wave { from { transform: scaleY(.18); } to { transform: scaleY(.95); } }

/* ───────── Mention « exemple » ───────── */
.jr-ex { flex: none; height: 15px; padding: 0 6px; border: 1px dashed #c8cacd; border-radius: 8px; color: #a3a5aa; font-size: 9.5px; font-weight: 700; letter-spacing: .05em; line-height: 13px; text-transform: uppercase; white-space: nowrap; }

/* ───────── Un rattachement supposé : le choix de l'assistant, suivi d'un « ? » gris. Un clic ouvre le menu qui le corrige. ───────── */
.jr-sup { position: relative; display: inline-flex; align-items: center; gap: 3px; height: 16px; min-width: 14px; margin-left: 3px; padding: 0 3px; border-radius: 5px; justify-content: center; vertical-align: 1px; color: var(--mute-2); font-size: 11.5px; font-weight: 700; line-height: 16px; transition: background-color 120ms, color 120ms; }
.jr-sup::after { content: ""; position: absolute; inset: -5px -4px; }
.jr-sup:hover { background: var(--field); color: var(--ink-2); }
.jr-sup.sur { color: var(--faint); }
.jr-sup.none { margin-left: 0; font-size: 12.5px; font-weight: 500; }
.jr-sup svg { display: inline-block; }
.jr-chips .jr-sup { margin-left: -2px; margin-right: 4px; align-self: center; }
.jr-prop .jr-sup { margin-left: 0; }
.jr-prop.q { color: var(--mute); font-weight: 500; }
/* dans une ligne de fait, le signe ne doit pas être coupé par les points de suspension : la ligne passe à la ligne s'il le faut */
.jr-f:has(.jr-sup) { flex-wrap: wrap; }
.jr-f:has(.jr-sup) .jr-fm { flex: 1 1 auto; white-space: normal; overflow: visible; }
.jr-glu { white-space: nowrap; }

/* ───────── « Ma note » : une page de journal ───────── */
.jr-fil { --tw: 60px; --nw: 26px; margin-top: 14px; }
.jr.v-note .jr-fil { margin-top: 24px; }
.jr-en.jn { display: block; max-width: 680px; margin: 0 0 22px; }
.jr-en.jn:last-child { margin-bottom: 0; }
.jr-cap-l { display: flex; align-items: center; gap: 6px; min-height: 18px; margin-bottom: 3px; color: var(--mute-2); font-size: 12px; font-weight: 600; line-height: 18px; font-variant-numeric: tabular-nums; }
.jr-cap-l b { font-weight: 600; }
.jr-cap-l i { font-style: normal; opacity: .55; }
.jr-cap-l svg { flex: none; }

/* ───────── « Tout ce qui s'est passé » : le fil chronologique ───────── */
.jr-bar:empty, .jr-side:empty, .jr-ret:empty { display: none; }
.jr-bar { display: flex; margin-top: 18px; }
.jr-mapt { flex: none; display: inline-flex; align-items: center; gap: 6px; height: 24px; margin-left: -7px; padding: 0 6px 0 7px; border-radius: 6px; color: var(--mute); font-size: 12.5px; font-weight: 600; white-space: nowrap; }
.jr-mapt:hover { background: var(--field); color: var(--ink-2); }
.jr-mapt > svg:last-child { opacity: .6; transition: transform 180ms var(--ease); }
.jr.map-open .jr-mapt > svg:last-child { transform: rotate(90deg); }

/* La carte du jour (repliée par défaut) */
.jr-side { display: none; margin-top: 10px; padding: 12px; border-radius: 10px; background: #f8f8f9; grid-template-columns: 208px minmax(0, 1fr); gap: 0 16px; align-items: start; }
.jr.map-open .jr-side:not(:empty) { display: grid; }
.jr-side-m { min-width: 0; }
.jr-map { display: block; width: 100%; height: auto; border-radius: 8px; }
.jr-map text { font-family: var(--font); }
.jr-rib { position: relative; height: 8px; border-radius: 4px; background: #e6e8ec; overflow: hidden; }
.jr-rib i { position: absolute; top: 0; bottom: 0; background: var(--c, #c1c3c6); }
.jr-rib i.tr { background: repeating-linear-gradient(135deg, #9a9da2 0 1.5px, #e6e8ec 1.5px 3.5px); }
.jr-rib i.now { width: 2px; margin-left: -1px; background: var(--red-flag); }
.jr-rib-t { position: relative; height: 14px; margin-top: 3px; color: #b0b2b7; font-size: 10px; font-weight: 600; line-height: 14px; }
.jr-rib-t span { position: absolute; top: 0; white-space: nowrap; }
.jr-leg { margin: 8px 0 0; padding: 0; list-style: none; display: grid; gap: 5px; }
.jr-leg li { display: flex; align-items: center; gap: 8px; min-width: 0; color: var(--ink-2); font-size: 12.5px; line-height: 16px; }
.jr-leg li > i { flex: none; width: 15px; height: 15px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-size: 9.5px; font-style: normal; font-weight: 700; }
.jr-leg li.tr > i { background: repeating-linear-gradient(135deg, #a9abb0 0 1.5px, #e4e6ea 1.5px 3px); }
.jr-leg li > span { flex: 1; min-width: 0; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.jr-leg small { margin-left: 6px; color: #a3a5aa; font-size: 11.5px; font-weight: 400; }
.jr-leg b { flex: none; color: var(--mute); font-size: 12px; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.jr-side-n { margin: 10px 0 0; color: #a9abb0; font-size: 11.5px; line-height: 15px; }
@container jr (max-width: 470px) {
  .jr-side { grid-template-columns: minmax(0, 1fr); gap: 10px 0; }
  .jr-side-map { max-width: 300px; }
}

.jr-en, .jr-now { display: grid; grid-template-columns: var(--tw) var(--nw) minmax(0, 1fr); }
.jr-when { min-width: 0; padding-right: 4px; text-align: right; }
.jr-when b { display: block; color: #b0b2b7; font-size: 12px; font-weight: 600; line-height: 24px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.jr-when span { display: block; color: #b0b2b7; font-size: 11px; font-style: italic; line-height: 24px; white-space: nowrap; }
.jr-body { min-width: 0; }

/* Registre « fait » : une ligne, grise */
.jr-en.fait .jr-node { display: grid; justify-items: center; align-content: start; padding-top: 5.5px; color: #b0b2b7; }
.jr-f { display: flex; align-items: baseline; flex-wrap: wrap; gap: 0 8px; width: 100%; min-width: 0; min-height: 24px; text-align: left; }
.jr-ft { flex: 0 1 auto; min-width: 0; color: #6a6c72; font-size: 13px; font-weight: 500; line-height: 24px; text-align: left; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.jr-fm { flex: 1 1 96px; min-width: 0; color: #a6a8ad; font-size: 12.5px; line-height: 24px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.jr-fm a:hover { color: var(--ink-2); }
/* La mention « exemple » reste au bout de la première ligne, quelle que soit la largeur */
.jr-f:has(> .jr-ex) { position: relative; padding-right: 68px; }
.jr-f > .jr-ex { position: absolute; right: 0; top: 4.5px; }
.jr-tl { text-decoration: underline; text-decoration-color: #dcdee2; text-decoration-thickness: 1px; text-underline-offset: 3.5px; }
.jr-tl:hover { color: var(--blue); text-decoration-color: currentColor; }
.jr-ai, .jr-fm a.jr-ai { color: var(--ai-ink); }
.jr-fm a.jr-ai:hover { color: var(--ai); }

/* Une ligne de fait qui se déplie : messages vocaux, session de l'assistant, tâches, conversations, notes */
.jr-fold { flex-wrap: nowrap; border-radius: 6px; }
.jr-fold .jr-ft { flex: 0 2 auto; }
.jr-fold .jr-fm { flex: 0 5 auto; }
.jr-fold > svg { flex: none; align-self: center; color: #c1c3c6; transition: transform 180ms var(--ease); }
.jr-fold.open > svg { transform: rotate(90deg); }
.jr-fold:hover .jr-ft { color: var(--ink-2); }
.jr-fold:hover > svg { color: #8e929a; }
.jr-fold-in { margin: 2px 0 10px; animation: jr-unfold 220ms var(--ease-out) both; }
@keyframes jr-unfold { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
.jr-tasks { margin-left: -4px; }
.jr-fold-in .fc-row { margin: 0 -8px; }
.jr-fold-in .fc-t { color: #303135; font-size: 13.5px; font-weight: 500; }
.jr-tail { margin-top: 12px; }

/* Registre « moi » : du texte plein, à l'encre */
.jr-en.moi:not(.jn) { margin: 10px 0 12px; }
.jr-en.moi .jr-when b, .jr-en.moi .jr-when span { color: var(--mute); line-height: 23px; }
.jr-en.moi .jr-body { max-width: 680px; }
.jr-en.moi .jr-node { position: relative; }
.jr-en.moi .jr-node::before { content: ""; position: absolute; left: 50%; top: 4px; bottom: 4px; width: 2px; margin-left: -1px; border-radius: 1px; background: var(--ink); }
.jr-t { color: var(--ink); font-size: 15px; font-weight: 650; line-height: 23px; }
.jr-w { color: #1b1c20; font-size: 15px; line-height: 23px; overflow-wrap: anywhere; }
.jr-w p { margin: 0 0 7px; }
.jr-w ul { margin: 2px 0 7px; padding-left: 19px; }
.jr-w li { margin: 3px 0; padding-left: 1px; }
.jr-w li::marker { color: #b6b8bd; }
.jr-w > :last-child { margin-bottom: 0; }
.jr-w.ai { color: var(--ai-text); font-size: 13.5px; line-height: 20px; }
.jr-mm { display: flex; align-items: center; gap: 6px; color: var(--mute); font-size: 12px; font-weight: 600; line-height: 23px; }
.jr-mq { color: #a3a5aa; font-size: 13.5px; font-style: italic; line-height: 21px; }
.jr-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 5px; margin-top: 8px; }
.jr-chips .chip { height: 22px; font-size: 12px; }
.jr-chips .chip.person { padding-left: 2px; }
.jr-nc svg { flex: none; }
.jr-more { color: var(--mute); font-size: 12px; font-weight: 600; }
.jr-lks { display: grid; gap: 1px; margin-top: 3px; justify-items: start; }
.jr-lk { display: inline-flex; align-items: center; gap: 7px; max-width: 100%; min-height: 23px; padding: 0 7px 0 5px; margin-left: -5px; border-radius: 6px; color: var(--blue); font-size: 13.5px; cursor: default; }
.jr-lk svg { color: #a9b6dc; }
.jr-lk span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.jr-lk:hover { background: #f1f4fb; }

/* Photo : la vignette est à moi, la légende est de l'assistant */
.jr-ph { display: flex; align-items: flex-start; gap: 14px; padding: 2px 0; }
.jr-thumb { position: relative; flex: none; width: 132px; height: 88px; border-radius: 7px; overflow: hidden; box-shadow: 0 0 0 .5px rgba(0, 0, 0, .12), 0 1px 3px rgba(0, 0, 0, .07); }
.jr-thumb svg, .jr-thumb img { width: 100%; height: 100%; }
.jr-thumb img { display: block; object-fit: cover; }
.jr-thumb .jr-ex { position: absolute; left: 5px; bottom: 5px; border-color: #b6b8bd; background: rgba(255, 255, 255, .92); color: #84868b; }
.jr-ph-m { flex: 1; min-width: 0; }
.jr-cap { display: flex; align-items: flex-start; gap: 6px; color: var(--ai-text); font-size: 13.5px; line-height: 20px; }
.jr-cap svg { flex: none; margin-top: 4.5px; }
.jr-an { display: flex; align-items: center; gap: 7px; color: var(--ai-ink); font-size: 13px; line-height: 20px; }
.jr-an .spin { width: 10px; height: 10px; border-radius: 50%; border: 1.5px solid var(--ai-line); border-top-color: var(--ai); animation: spin 900ms linear infinite; }
.jr-prop { display: flex; align-items: center; flex-wrap: wrap; gap: 5px 6px; margin-top: 7px; color: var(--mute); font-size: 12.5px; }
.jr-prop > span { margin-right: 2px; }
.jr-prop-a { display: inline-flex; gap: 5px; white-space: nowrap; }
.jr-prop.done { color: #5d5e62; font-weight: 600; }
.jr-prop.done a:hover { color: var(--ink); }
.jr-ok { flex: none; width: 13px; height: 13px; border-radius: 50%; background: var(--check); display: inline-grid; place-items: center; }

/* Listes dans une ligne dépliée */
.jr-vns { margin-left: -6px; }
.jr-vn { display: flex; align-items: center; gap: 8px; width: 100%; min-height: 26px; padding: 2px 8px 2px 6px; border-radius: 6px; text-align: left; transition: background-color 120ms; }
.jr-vn:hover { background: var(--field); }
.jr-wv { flex: none; width: 16px; display: grid; place-items: center; color: #b6b8bd; }
.jr-vn-t { flex: 0 1 auto; min-width: 0; color: #303135; font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.jr-vn small { flex: none; margin-left: auto; padding-left: 10px; color: #a9abb0; font-size: 12px; white-space: nowrap; max-width: 45%; overflow: hidden; text-overflow: ellipsis; }

/* « Maintenant » */
.jr-now { align-items: center; height: 24px; margin: 6px 0; }
.jr-now .jr-when b { color: var(--red-flag); font-weight: 700; }
.jr-now-l { grid-column: 2 / -1; display: flex; align-items: center; gap: 8px; padding-left: calc(var(--nw) / 2 - 3.5px); color: var(--red-flag); font-size: 10.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.jr-now-l::before { content: ""; flex: none; width: 7px; height: 7px; margin-right: calc(var(--nw) / 2 - 11.5px); border-radius: 50%; background: var(--red-flag); }
.jr-now-l::after { content: ""; flex: 1; height: 1.5px; border-radius: 1px; background: var(--red-flag); opacity: .5; }

/* Rien ce jour-là : une ligne, pas un écran vide dessiné */
.jr-none { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 12px; color: var(--mute-2); font-size: 13.5px; line-height: 20px; }

/* Arrivée d'une entrée, et rappel d'une source */
.jr-en.new { animation: jr-arrive 560ms var(--ease-out) both; }
.jr-en.new .jr-body, .jr-en.hit .jr-body { animation: jr-flash 1400ms ease-out both; border-radius: 6px; box-shadow: 0 0 0 4px transparent; }
@keyframes jr-arrive { from { opacity: 0; transform: translateY(-12px); } to { opacity: 1; transform: none; } }
@keyframes jr-flash { 0%, 25% { background-color: #fdf3c2; box-shadow: 0 0 0 4px #fdf3c2; } 100% { background-color: transparent; box-shadow: 0 0 0 4px transparent; } }

/* Panneau étroit : dans le fil complet, mes mots prennent toute la largeur, l'heure passe au-dessus ; les faits restent en retrait */
@container jr (max-width: 520px) {
  .jr-fil { --tw: 50px; --nw: 22px; }
  .jr-when b { font-size: 11.5px; }
  .jr-en.moi:not(.jn) { grid-template-columns: 12px minmax(0, 1fr); margin: 12px 0 14px; }
  .jr-en.moi .jr-node { grid-column: 1; grid-row: 1 / span 2; }
  .jr-en.moi .jr-node::before { left: 0; margin-left: 0; }
  .jr-en.moi .jr-when { grid-column: 2; grid-row: 1; padding: 0; text-align: left; }
  .jr-en.moi .jr-when:empty { display: none; }
  .jr-en.moi .jr-when b, .jr-en.moi .jr-when span { line-height: 18px; }
  .jr-en.moi .jr-body { grid-column: 2; }
  .jr-thumb { width: 108px; height: 72px; }
  .jr-ph { gap: 12px; }
}

/* ───────── Ce que l'assistant retient ───────── */
.jr-ret { margin-top: 8px; }
.jr-ret .h-row { margin-top: 26px; }
.jr-syn { margin: 0; padding: 0; list-style: none; }
.jr-syn li { padding: 9px 0 9px; border-bottom: 1px solid var(--hair-soft); }
.jr-syn-t { color: #45474c; font-size: 14px; line-height: 20px; border-radius: 5px; }
.jr-syn.apercu .jr-syn-t { color: var(--ai-text); }
.jr-syn li.edit .jr-syn-t { margin: -3px -7px; padding: 3px 7px; background: #fff; box-shadow: inset 0 0 0 1px var(--ai-line); color: var(--ink); }
.jr-syn li.s-validee .jr-syn-t, .jr-syn li.s-corrigee .jr-syn-t { color: var(--ink); }
.jr-syn li.s-ecartee .jr-syn-t { color: #b0b2b7; text-decoration: line-through; text-decoration-color: #d5d7db; }
.jr-syn-f { display: flex; align-items: center; flex-wrap: wrap; gap: 5px 10px; min-height: 20px; margin-top: 5px; }
.jr-src { display: inline-flex; align-items: center; gap: 5px; max-width: 100%; color: #a3a5aa; font-size: 11.5px; font-weight: 600; }
.jr-src span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.jr-src:hover { color: var(--ai-ink); }
.jr-syn-a { margin-left: auto; display: inline-flex; align-items: center; flex-wrap: wrap; gap: 5px; }
.jr-syn-a .mini.ghost:hover { background: var(--field); }
.jr-mk { display: inline-flex; align-items: center; gap: 5px; color: #5d5e62; font-size: 11.5px; font-weight: 600; }
.jr-undo { color: #a9abb0; font-size: 11.5px; font-weight: 600; }
.jr-undo:hover { color: var(--ink-2); }

.jr-pc { margin-top: 22px; }
.jr-pc-h { display: flex; align-items: center; justify-content: space-between; gap: 10px; color: var(--mute-2); font-size: 11px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }
.jr-link { display: inline-flex; align-items: center; gap: 4px; height: 20px; color: var(--blue); font-size: 12px; font-weight: 600; letter-spacing: 0; text-transform: none; white-space: nowrap; }
.jr-link:hover { color: #2c4a9e; }
/* Une proposition pour la carte reste une hypothèse : trait en pointillé, comme dans le Méta-profil */
.jr-pc-c { margin-top: 8px; padding: 9px 12px 9px; border-radius: 8px; outline: 1px dashed #bcd4fa; outline-offset: -1px; transition: background-color 160ms; }
.jr-pc-t { color: #55565b; font-size: 13.5px; line-height: 19px; }
.jr-pc-c.s-ajoutee { background: var(--ai-soft); outline-style: solid; outline-color: var(--ai-line); }
.jr-pc-c.s-ajoutee .jr-pc-t { color: var(--ink-2); }
.jr-pc-c.s-ecartee { outline-color: #dfe1e6; }
.jr-pc-c.s-ecartee .jr-pc-t { color: #b0b2b7; text-decoration: line-through; text-decoration-color: #d5d7db; }

/* ───────── Le calendrier : aller à n'importe quelle date ───────── */
.jr-cal { width: 274px; max-width: calc(100vw - 16px); padding: 10px 10px 10px 6px; border-radius: 12px; background: var(--bg); box-shadow: var(--shadow-pop); }
.jr-cal-h { display: flex; align-items: center; justify-content: space-between; height: 28px; padding-left: 32px; }
.jr-cal-h b { color: var(--ink); font-size: 13.5px; font-weight: 700; }
.jr-cal-h span { display: inline-flex; gap: 1px; margin-right: -4px; }
.jr-cal-g { display: grid; grid-template-columns: 26px repeat(7, minmax(0, 1fr)); row-gap: 2px; margin-top: 4px; }
.jr-cal-g > i { height: 20px; display: grid; place-items: center; color: var(--mute-2); font-size: 10.5px; font-style: normal; font-weight: 700; }
.jr-cal-w { height: 32px; border-radius: 8px 0 0 8px; color: var(--faint); font-size: 10.5px; font-weight: 600; font-variant-numeric: tabular-nums; }
.jr-cal-w:hover { color: var(--ink-2); }
.jr-cal-d { position: relative; height: 32px; display: grid; place-items: center; color: var(--ink-2); font-size: 13px; font-weight: 500; font-variant-numeric: tabular-nums; }
.jr-cal-d span { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; transition: background-color 100ms; }
.jr-cal-d.out { color: var(--faint); }
.jr-cal-w.on, .jr-cal-d.wk { background: var(--field); }
.jr-cal-w.on { color: var(--ink-2); }
.jr-cal-d.wk.end { border-radius: 0 8px 8px 0; }
.jr-cal-d:hover span { background: rgba(0, 0, 0, .07); }
.jr-cal-d.today span { background: var(--yellow); color: #3d3405; font-weight: 700; }
.jr-cal-d.on span { box-shadow: inset 0 0 0 1.5px var(--ink); color: var(--ink); font-weight: 700; }
.jr-cal-d.has::after { content: ""; position: absolute; left: 50%; bottom: 0; width: 3px; height: 3px; margin-left: -1.5px; border-radius: 50%; background: var(--deco, #a9abb0); }

/* ───────── Apparences « primaires » et « franc » : les rôles de couleur pour ce qui est nouveau ici ───────── */
body:is([data-theme="primaires"]) {
  & .jr-cal-d.today span { background: var(--q-yellow); color: var(--q-on-yellow); box-shadow: inset 0 0 0 1px var(--q-yellow-edge); }
  & .jr-cal-d.today.on span { box-shadow: inset 0 0 0 1.5px var(--ink); }
  & .jr-wk-t:focus-visible { outline-offset: 2px; }
}

/* ───────── Au doigt : des cibles franches ───────── */
@media (max-width: 760px) {
  .jr-lh { margin-top: 10px; }
  .jr-nav { height: 30px; }
  .jr-seg button { height: 30px; font-size: 13px; }
  .jr-sup::after { inset: -10px -9px; }
  .jr-tod { height: 30px; font-size: 13px; }
  .jr-cal-d, .jr-cal-w { height: 38px; }
  .jr-cal { width: 310px; }
}

/* ───────── Capture rapide ───────── */
.jr-qc { width: 384px; max-width: calc(100vw - 16px); padding: 10px 10px 8px; border-radius: 12px; background: #fff; box-shadow: var(--shadow-pop); }
.jr-qc-f { display: flex; align-items: center; gap: 8px; height: 34px; padding: 0 8px 0 10px; border-radius: 8px; background: var(--field); }
.jr-qc-in { flex: 1; min-width: 0; border: 0; outline: none; background: transparent; color: var(--ink); font-size: 14.5px; user-select: text; -webkit-user-select: text; }
.jr-qc-in::placeholder { color: #9a9da2; }
.jr-qc-b { display: flex; gap: 2px; margin-top: 7px; }
.jr-qc-b .jr-tool { flex: 1 1 0; justify-content: center; min-width: 0; padding: 0 4px; }
.jr-qc .jr-rec { min-height: 34px; padding: 0 2px 0 8px; }
.jr-qc .jr-rec + * { margin-top: 7px; }
.jr-qc-n { margin-top: 8px; padding: 0 4px; color: #a3a5aa; font-size: 12px; line-height: 16px; }
.jr-qc-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 8px; padding: 6px 4px 0; border-top: 1px solid var(--hair-soft); color: #b0b2b7; font-size: 11.5px; }

/* Lot I4 : déposer une photo ou un fichier sur la page ; les corrections de la clôture du soir */
.jr.drop { outline: 2px dashed var(--line, #d6dee7); outline-offset: -6px; border-radius: 10px; }
.jr-corr .jr-f { display: flex; align-items: baseline; gap: 8px; padding: 3px 0; }
.k-corr .jr-fold .jr-fm { flex: none; }                                         /* « 1 annulée » ne se coupe pas */
.jr-corr .jr-ft { white-space: normal; line-height: 20px; padding: 2px 0; }       /* ce que la clôture a corrigé se lit en entier, au téléphone aussi (R4) */
.jr-f .jr-undo { margin-left: 6px; }

/* ── src/css/67-brut.css ── */
/* v16 · Le brut (67-brut.js) : la section « Sources » d'un fil, le dossier « Sources » de l'arbre, la page Captures « Tout le brut », le volet d'un élément.
   Rien ne crie : des pastilles de canal en gris (les thèmes les éteignent déjà), des dates grises, le « ? » du Journal. */

/* ── Pastilles de canal, en plus petit ── */
.cap-badge.bs-b, .cap-badge.br-b { width: 20px; height: 20px; border-radius: 5px; font-size: 8.5px; letter-spacing: 0; }
.cap-badge.brut-mb { width: 14px; height: 14px; border-radius: 4px; font-size: 6.5px; letter-spacing: 0; line-height: 14px; }
.cap-badge.brut-tb { width: 14px; height: 14px; border-radius: 4px; font-size: 6.5px; letter-spacing: 0; }
.r-type .cap-badge { width: 18px; height: 18px; border-radius: 5px; font-size: 8px; letter-spacing: 0; }

/* Le petit glyphe « une note en est tirée » : gris, ouvre la note */
.brut-ng { flex: none; width: 18px; height: 18px; display: grid; place-items: center; border-radius: 4px; color: var(--faint); }
.brut-ng:hover { background: var(--field); color: var(--ink-2); }
.brut-sup { flex: none; margin-left: 0; }

/* ── Barre de droite, mode Cartes : la section « Sources », sous la liste des notes ── */
.bs { padding: 0 8px 24px; margin-top: -14px; }
.bs-h { display: flex; align-items: center; gap: 4px; width: 100%; padding: 12px 8px 5px 2px; color: var(--mute-2); font-size: 11px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; text-align: left; }
.bs-h:hover { color: var(--ink-2); }
.bs-c { width: 12px; flex: none; display: grid; place-items: center; color: var(--faint); }
.bs-c svg, .bs-gc svg, .br-gc svg { transition: transform 140ms; }
.bs.open .bs-c svg, .bs-r.grp.open .bs-gc svg, .br-r.grp.open .br-gc svg { transform: rotate(90deg); }
.bs-n { margin-left: 2px; color: var(--faint); font-weight: 600; letter-spacing: 0; }
.bs-l { padding: 2px 0 0; }
.bs-r { display: flex; align-items: center; gap: 7px; height: 30px; padding: 0 6px; border-radius: 6px; color: var(--ink-2); font-size: 13px; cursor: default; }
.bs-r:hover { background: rgba(0, 0, 0, .04); }
.bs-r.on { background: var(--sel); }
.bs-r.sub { padding-left: 20px; height: 28px; }
.bs-rt { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bs-gc { flex: none; display: grid; place-items: center; width: 12px; color: var(--faint); }
.bs-d { flex: none; color: var(--mute-2); font-size: 11.5px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.bs-gi { margin: 0 0 2px; }
.bs-all { display: inline-flex; align-items: center; gap: 4px; height: 24px; margin: 4px 0 0 2px; padding: 0 6px; border-radius: 5px; color: var(--mute); font-size: 12.5px; font-weight: 600; }
.bs-all:hover { background: var(--field); color: var(--ink-2); }

/* ── Barre de droite, mode Arbre : le dossier « Sources » au bas d'un fil ── */
.tv-r.brut-dir .tv-t { font-weight: 500; color: var(--mute); }
.tv-r.brut-dir .tv-i { color: var(--faint); }
.tv-r.brut-r .tv-n { font-size: 11px; }
.tv-r.brut-r .brut-ng, .tv-r.brut-r .brut-sup { height: 16px; }
.tv-r.brut-r.grp .tv-t { color: var(--mute); }
.tv-r.brut-all .tv-t { color: var(--mute); font-size: 12.5px; font-weight: 600; }
.tv-r.brut-all:hover .tv-t { color: var(--ink-2); }

/* ── Page Captures : le segment des deux vues, à droite du titre ── */
.cap-seg { margin-left: auto; }
.cap-seg button { white-space: nowrap; }

/* ── Page Captures, « Tout le brut » : filtres, jours, lignes ── */
.br-filters { margin-top: 22px; }
.br-chip { display: inline-flex; align-items: center; gap: 5px; height: 20px; margin-left: 4px; padding: 0 6px 0 7px; border-radius: 10px; background: var(--field); color: var(--ink-2); font-size: 12px; font-weight: 600; max-width: 240px; }
.br-chip span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.br-chip svg:last-child { flex: none; color: var(--mute-2); }
.br-chip:hover svg:last-child { color: var(--ink-2); }
.br-list .br-day { margin: 26px 0 4px; }
.br-r { display: grid; grid-template-columns: 46px 20px minmax(0, 1fr) auto; align-items: center; column-gap: 10px; min-height: 32px; padding: 0 6px; border-radius: 6px; font-size: 13.5px; color: var(--ink-2); cursor: default; }
.br-r:hover { background: rgba(0, 0, 0, .035); }
.br-r.on { background: var(--sel); }
.br-h { color: var(--mute-2); font-size: 12px; font-variant-numeric: tabular-nums; white-space: nowrap; text-align: right; }
.br-t { display: flex; align-items: center; gap: 6px; min-width: 0; }
.br-tt { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.br-gc { flex: none; display: grid; place-items: center; width: 12px; color: var(--faint); }
.br-f { display: flex; align-items: center; justify-content: flex-end; max-width: 260px; min-width: 0; overflow: hidden; color: var(--mute-2); font-size: 12px; white-space: nowrap; }
.br-f i { font-style: normal; flex: none; margin-right: 4px; }
.br-fl { min-width: 0; overflow: hidden; text-overflow: ellipsis; border-radius: 4px; cursor: default; }
.br-fl:hover { color: var(--ink-2); text-decoration: underline; text-decoration-color: var(--faint); text-underline-offset: 2px; }
.br-gi .br-r { grid-template-columns: 46px 20px minmax(0, 1fr) auto; padding-left: 22px; }
.br-more { margin-top: 22px; }

/* Page étroite (colonne partagée, téléphone) : les fils passent sous le titre */
@container (max-width: 520px) {
  .br-r { grid-template-columns: 38px 20px minmax(0, 1fr); padding-top: 5px; padding-bottom: 5px; align-items: start; }
  .br-r > .br-h { line-height: 20px; }
  .br-t { min-height: 20px; }
  .br-f { grid-column: 3; justify-content: flex-start; max-width: none; }
  .br-f:empty { display: none; }
  .br-f .jr-sup { margin-top: -2px; margin-bottom: -2px; }        /* le « ? » ne grandit pas la ligne des fils (R4) */
  .br-gi .br-r { grid-template-columns: 38px 20px minmax(0, 1fr); padding-left: 14px; }
  .cap-page .lh { flex-wrap: wrap; row-gap: 10px; }
}

/* ── Le volet d'un élément brut : un document en lecture seule ── */
.brut-doc .r-in { padding: 14px 0 40px; max-width: 620px; }
.brut-doc .r-type { color: var(--mute); font-weight: 600; margin-bottom: 8px; }
.brut-doc .r-type .jr-ex { margin-left: 4px; }
.brut-doc h2 { margin: 0 0 4px; }
.brut-doc .r-body { margin: 18px 0 22px; }
.brut-kv { margin-top: 4px; padding-top: 14px; border-top: 1px solid var(--hair, #ececee); }
.brut-kv .cap-k { width: 78px; padding-top: 3px; }
.brut-v { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; min-width: 0; }
.brut-v .chip { max-width: 100%; }
.brut-none { color: var(--mute-2); font-size: 13px; line-height: 24px; }
.brut-foot { margin-top: 20px; }
.brut-foot .btn { display: inline-flex; align-items: center; gap: 6px; }

/* ── Téléphone ── */
@media (max-width: 760px) {
  .bs-r { height: 40px; font-size: 15px; gap: 9px; }
  .bs-r.sub { height: 38px; }
  .bs-d { font-size: 12.5px; }
  .bs-h { padding-top: 16px; font-size: 12px; }
  .bs-all { height: 34px; font-size: 14px; }
  .cap-badge.brut-mb { width: 16px; height: 16px; font-size: 7px; line-height: 16px; }
  .br-r { min-height: 42px; font-size: 15px; }
  .br-h { font-size: 12.5px; }
  .br-f { font-size: 13px; }
  .br-chip { height: 28px; font-size: 13px; }
  .cap-seg button { height: 30px; font-size: 13px; }
  .brut-ng { width: 26px; height: 26px; }
  .brut-doc .r-in { padding: 10px 0 60px; }
}

/* ── I6 : rattachements détaillés, pièces jointes, texte extrait, pages de groupe, dépôt ── */
.brut-fil { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 4px; max-width: 100%; }
.brut-why { flex-basis: 100%; margin: 0 0 2px 2px; color: var(--mute-2); font-size: 12px; line-height: 16px; }
.brut-add { color: var(--faint); }
.brut-add:hover { color: var(--ink-2); }
.brut-lien { color: inherit; text-decoration: underline; text-decoration-color: var(--hair, #d6d6da); text-underline-offset: 2px; }
.brut-pj { margin: 14px 0 0; display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.brut-img { display: block; max-width: 100%; max-height: 360px; border-radius: 8px; border: 1px solid var(--hair, #ececee); object-fit: contain; }
.brut-audio { width: 100%; max-width: 420px; height: 36px; }
.brut-file { display: inline-flex; align-items: center; gap: 6px; max-width: 100%; color: var(--ink-2); font-size: 13px; text-decoration: none; }
.brut-file span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.brut-file small { color: var(--mute-2); font-size: 11.5px; }
.brut-file:hover span { text-decoration: underline; }
.brut-extrait { margin: -6px 0 18px; font-size: 13px; }
.brut-extrait summary { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; color: var(--mute); font-weight: 600; font-size: 12.5px; list-style: none; }
.brut-extrait summary::-webkit-details-marker { display: none; }
.brut-extrait summary svg { transition: transform .15s; }
.brut-extrait[open] summary svg { transform: rotate(90deg); }
.brut-extrait-t { margin-top: 8px; padding: 10px 12px; max-height: 320px; overflow: auto; border-radius: 8px; background: var(--field); color: var(--ai-text); line-height: 1.5; }
.br-plus, .bs-plus { display: block; margin: 4px 0 2px; padding: 4px 8px; border: 0; background: none; color: var(--mute); font: inherit; font-size: 12.5px; font-weight: 600; text-align: left; cursor: pointer; }
.br-plus:hover, .bs-plus:hover { color: var(--ink-2); }
.br-wait { min-height: 120px; }
body.depot-survol .chat-pop .cp-card, body.depot-survol .chat-pop .c-input { outline: 2px dashed var(--ai, #6b7cff); outline-offset: 2px; border-radius: 12px; }

/* ── src/css/70-profile.css ── */
/* Méta-profil : la carte de la personne. Socle (en-tête, composants, inspecteur) + propositions A, B, C.
   .pf est un conteneur (pf) ; .pf-main en est un second (pfm), qui se rétrécit quand l'inspecteur pousse le contenu :
   les mises en page des propositions s'appuient sur pfm (ou sur une requête sans nom). */

.col.pf-col { max-width: 1260px; padding-left: clamp(22px, 4.6%, 60px); padding-right: clamp(22px, 4.6%, 60px); }

.pf { display: flex; align-items: flex-start; position: relative; container: pf / inline-size; --pf-iw: 360px; --pf-vh: calc(100vh - 104px); }
.pf-main { flex: 1 1 0; min-width: 0; container: pfm / inline-size; }

/* ───────── En-tête commun ───────── */
.pf-sub { max-width: none; color: var(--mute); }
.pf-rappel { color: var(--ink-2); font-weight: 500; }
.pf-counts { display: flex; flex-wrap: wrap; align-items: center; gap: 5px 16px; margin-top: 10px; color: var(--mute); font-size: 12px; font-weight: 600; }
.pf-count { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; }
.pf-count b { color: var(--ink-2); font-weight: 700; }
.pf-count.rv { height: 20px; padding: 0 9px 0 7px; border-radius: 10px; background: #fdecef; color: #c8284b; font-weight: 600; transition: background-color 120ms; }
.pf-count.rv b { color: inherit; }
.pf-count.rv i { width: 6px; height: 6px; border-radius: 50%; background: var(--need); }
.pf-count.rv:hover { background: #fbdfe5; }
.pf-count.rv.zero { background: var(--field); color: var(--mute); }
.pf-count.rv.zero i { background: var(--green); }
.pf-bar { position: sticky; top: 0; z-index: 4; display: flex; align-items: center; margin-top: 8px; padding: 10px 0 8px; background: var(--bg); }
.pf-seg { max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.pf-seg::-webkit-scrollbar { display: none; }
.pf-seg button { flex: none; white-space: nowrap; }
.pf-hint { max-width: 760px; margin: 0 0 18px; color: var(--mute); font-size: 13px; line-height: 19px; }
.pf-swap { animation: view-in 200ms ease both; }

/* ───────── Atomes partagés ───────── */
.pf-g { flex: none; }
.pf-tag { display: inline-flex; align-items: center; height: 16px; padding: 0 7px; border-radius: 8px; background: var(--field); color: #7a7d82; font-size: 11px; font-weight: 600; line-height: 16px; white-space: nowrap; text-transform: none; letter-spacing: 0; }
.pf-tag.hy { margin-right: 6px; background: var(--ai-soft); color: var(--ai-ink); vertical-align: 1px; }
.pf-tag.tiers { background: #f5f2e3; color: #857b3c; }
.pf-tag.sol { background: transparent; box-shadow: inset 0 0 0 1px var(--hair); }
.pf-conf { display: inline-flex; align-items: center; gap: 2px; flex: none; }
.pf-conf i { width: 4px; height: 4px; border-radius: 50%; background: #dcdee2; }
.pf-conf i.on { background: #8e929a; }
.pf-conf b { margin-left: 6px; color: var(--ink-2); font-size: 13px; font-weight: 500; }
.pf-st { display: inline-flex; align-items: center; gap: 5px; color: var(--mute); font-size: 12px; font-weight: 600; white-space: nowrap; }
.pf-st-proposee { color: var(--ai-ink); }
.pf-nat { color: var(--mute-2); font-size: 12px; white-space: nowrap; }
.pf-alt { display: inline-flex; align-items: center; gap: 5px; max-width: 100%; min-height: 18px; padding: 1px 8px 1px 6px; border-radius: 9px; background: var(--f); color: var(--k); font-size: 11.5px; font-weight: 600; line-height: 16px; }
.pf-alt > i { width: 7px; height: 7px; border-radius: 50%; background: var(--c); flex: none; }
.pf-alt .pf-conf { margin-left: 3px; }
.pf-alt .pf-conf i { background: var(--k); opacity: .22; }
.pf-alt .pf-conf i.on { opacity: .85; }
.pf-lab { display: flex; flex-wrap: wrap; align-items: center; gap: 3px 8px; margin: 14px 0 5px; color: var(--mute-2); font-size: 11px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }
.pf-note { margin: 0 0 8px; color: #55565b; font-size: 13px; line-height: 19px; }
.pf-note.dim { color: var(--mute); }
.pf-manque { display: flex; align-items: flex-start; gap: 8px; margin: 8px 0 2px; color: var(--mute); font-size: 12.5px; line-height: 18px; }
.pf-manque svg { margin-top: 3px; }
.pf-manque b { margin-right: 6px; color: #6f7277; font-weight: 600; }
.pf-link { color: var(--ai-ink); font-size: 12.5px; font-weight: 600; }
.pf-link:hover { text-decoration: underline; }
.pf-link.more { display: inline-block; margin-top: 10px; }
.pf-empty { display: flex; align-items: flex-start; gap: 9px; padding: 6px 0; color: var(--mute); }
.pf-empty > svg { margin-top: 3px; }
.pf-empty-h { display: flex; align-items: center; gap: 8px; }
.pf-empty-h b { color: #6f7277; font-weight: 600; }
.pf-empty p { margin: 2px 0 0; font-size: 12.5px; line-height: 18px; }
.pf-guard { margin: 2px 0 10px; padding: 8px 11px; border-radius: 8px; background: #f9f7ec; color: #6d6535; font-size: 12.5px; line-height: 18px; }
.pf-fact { padding: 3px 0; color: var(--ink); font-size: 14px; line-height: 20px; }
.pf-cites { white-space: nowrap; }
.pf-cite { margin-left: 0; font-variant-numeric: tabular-nums; }
.pf-cite + .pf-cite { margin-left: 3px; }
.pf-reft { display: inline-grid; place-items: center; width: 16px; height: 16px; margin-left: 3px; border-radius: 4px; vertical-align: -3px; }
.pf-reft:hover { background: rgba(0,0,0,.07); }
.pf [data-pfk]:focus-visible, .pf-kb { box-shadow: inset 0 0 0 2px rgba(76,142,245,.55) !important; }
.pf-flash { animation: pf-flash 1200ms ease-out; }
@keyframes pf-flash { 0%, 35% { background-color: #fdf3c4; } 100% { background-color: transparent; } }

/* Dépliage : grille 0fr → 1fr, comme la carte de tâche */
.pf-fold { display: grid; grid-template-rows: 0fr; transition: grid-template-rows var(--t-open) var(--ease); }
.pf-fold > .pf-fold-in { min-height: 0; overflow: hidden; opacity: 0; visibility: hidden; transition: opacity 140ms ease, visibility 0s linear var(--t-open); }
.open > .pf-fold, .open > .pfa-ru-in > .pf-fold { grid-template-rows: 1fr; }
.open > .pf-fold > .pf-fold-in, .open > .pfa-ru-in > .pf-fold > .pf-fold-in { opacity: 1; visibility: visible; transition: opacity 220ms ease 90ms, visibility 0s; }

/* ── Ligne d'affirmation ── */
.pf-claims { margin: 2px 0; container-type: inline-size; }
.pf-claim { position: relative; display: flex; align-items: flex-start; gap: 2px 10px; margin: 0 -8px; padding: 4px 8px; border-radius: 6px; outline: none; }
.pf-claim:hover { background: #f6f7f8; }
.pf-claim.sel, .pf-s.sel { background: var(--row-sel); }
.pf-claim-g { flex: none; display: grid; place-items: center; width: 14px; height: 20px; }
.pf-claim-b { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.pf-claim-t { color: var(--ink); font-size: 14px; line-height: 20px; }
.pf-claim.st-proposee .pf-claim-t { color: #55565b; }
.pf-claim.st-rejetee .pf-claim-t, .pf-claim.st-remplacee .pf-claim-t { color: #a9abb0; text-decoration: line-through; text-decoration-color: #cfd1d5; }
.pf-claim-x { color: var(--mute); font-size: 12px; line-height: 16px; }
.pf-claim-z { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; color: var(--mute); font-size: 12px; line-height: 16px; }
.pf-claim-m { flex: none; display: inline-flex; align-items: center; gap: 10px; min-height: 20px; margin-left: auto; }
.pf-claim-n { color: var(--mute-2); font-size: 12px; font-weight: 600; white-space: nowrap; }
@container (max-width: 470px) {
  .pf-claim { flex-wrap: wrap; }
  .pf-claim-b { flex-basis: calc(100% - 24px); }
  .pf-claim-m { flex-wrap: wrap; margin-left: 24px; gap: 2px 10px; }
}

/* ── Ligne de preuve ── */
.pf-proofs { display: grid; gap: 6px; }
.pf-proof { padding: 8px 10px 9px; border-radius: 8px; background: #f7f8fa; outline: none; transition: background-color 120ms; }
.pf-proof:hover { background: #f0f2f5; }
.pf-proof-h { display: flex; align-items: center; gap: 8px; color: var(--mute-2); font-size: 11.5px; font-weight: 600; }
.pf-proof-ty { height: 15px; padding: 0 6px; border-radius: 4px; background: rgba(0,0,0,.05); font-size: 10.5px; line-height: 15px; }
.pf-proof-ty.nu { background: #fdecef; color: #c8284b; }
.pf-proof-go { margin-left: auto; color: #b0b2b7; }
.pf-proof.has-note .pf-proof-go { color: var(--ai); }
.pf-proof-t { margin-top: 3px; color: var(--ink-2); font-size: 13px; font-weight: 600; line-height: 18px; }
.pf-proof-x { margin-top: 2px; color: #55565b; font-size: 13px; line-height: 19px; }
.pf-proof-src { display: none; margin-top: 5px; color: var(--mute); font: 11px/15px var(--mono); word-break: break-all; }
.pf-proof.show .pf-proof-src { display: block; }
.pf-pop { width: 330px; max-width: calc(100vw - 16px); padding: 4px; border-radius: 10px; background: #fff; box-shadow: var(--shadow-pop); }
.pf-pop .pf-proof { background: transparent; }
.pf-pop .pf-proof:hover { background: #f6f7f8; }

/* ───────── Inspecteur d'affirmation ───────── */
.pf-insp { flex: none; align-self: flex-start; position: sticky; top: 0; z-index: 6; width: 0; height: var(--pf-vh); overflow: hidden; transition: width 280ms var(--ease), margin-left 280ms var(--ease); }
.pf.insp-open .pf-insp { width: calc(var(--pf-iw) + 12px); margin-left: 18px; }
.pf-insp-in { position: absolute; top: 12px; bottom: 14px; left: 6px; width: var(--pf-iw); display: flex; flex-direction: column; border-radius: 10px; background: #fff; box-shadow: var(--shadow-card); opacity: 0; transition: opacity 200ms ease; }
.pf.insp-open .pf-insp-in { opacity: 1; }
@container pf (max-width: 899.98px) {
  .pf-insp, .pf.insp-open .pf-insp { width: 0; margin-left: 0; overflow: visible; transition: none; }
  .pf-insp-in { left: auto; right: 0; width: min(var(--pf-iw), 100cqw); box-shadow: var(--shadow-pop); transform: translateX(18px); visibility: hidden; transition: opacity 200ms ease, transform 260ms var(--ease), visibility 0s linear 260ms; }
  .pf.insp-open .pf-insp-in { transform: none; visibility: visible; transition: opacity 200ms ease, transform 260ms var(--ease), visibility 0s; }
}
.pf-in-scroll { flex: 1; min-height: 0; padding: 12px 16px 18px; }
.pf-in-top { display: flex; align-items: center; gap: 8px; min-height: 26px; }
.pf-in-x { margin: 0 -6px 0 auto; }
.pf-in-t { margin-top: 8px; color: var(--ink); font-size: 16px; font-weight: 600; line-height: 23px; letter-spacing: -.005em; }
.pf-in-edit { display: block; width: 100%; min-height: 104px; margin-top: 8px; padding: 8px 10px; border: 0; border-radius: 8px; outline: none; resize: vertical; background: #fff; box-shadow: inset 0 0 0 1.5px var(--check); font-size: 15px; font-weight: 500; line-height: 22px; user-select: text; -webkit-user-select: text; }
.pf-in-edit-h { margin-top: 6px; color: var(--mute); font-size: 12px; line-height: 17px; }
.pf-in-how { margin-top: 8px; color: var(--mute); font-size: 12.5px; line-height: 18px; }
.pf-in-how.old { margin-top: 3px; }
.pf-in-scroll > .pf-guard { margin-top: 10px; }
.pf-in-sec { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--hair-soft); }
.pf-in-sec > .pf-lab:first-child { margin-top: 0; }
.pf-in-where { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 0 8px; width: calc(100% + 16px); margin: -6px -8px 0; padding: 6px 8px; border-radius: 6px; text-align: left; color: #a9abb0; }
.pf-in-where:hover { background: var(--field); }
.pf-in-where-l { color: var(--ink-2); font-size: 13px; font-weight: 600; line-height: 18px; }
.pf-in-where-q { grid-row: 2; color: var(--mute); font-size: 12px; line-height: 16px; }
.pf-in-where svg { grid-column: 2; grid-row: 1 / 3; }
.pf-in-zone { margin-top: 10px; padding: 9px 10px 10px; border-radius: 8px; background: #f7f8fa; }
.pf-in-zone-k { margin-bottom: 7px; color: var(--mute); font-size: 12px; line-height: 17px; }
.pf-in-zone p { margin: 7px 0 0; color: #55565b; font-size: 13px; line-height: 18px; }
.pf-in-meta { display: grid; grid-template-columns: 78px minmax(0, 1fr); gap: 6px 10px; margin: 12px 0 0; font-size: 13px; line-height: 19px; }
.pf-in-meta dt { padding-top: 1px; color: #a2a4a9; font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.pf-in-meta dd { margin: 0; color: var(--ink-2); }
.pf-rv { margin-top: 6px; padding: 9px 10px 10px; border-radius: 8px; background: #f7f8fa; }
.pf-rv-contradiction, .pf-rv-ecart { background: #fdf3f5; }
.pf-rv-k { color: var(--mute-2); font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.pf-rv-contradiction .pf-rv-k, .pf-rv-ecart .pf-rv-k { color: #c8284b; }
.pf-rv-q { margin-top: 3px; color: var(--ink-2); font-size: 13.5px; font-weight: 600; line-height: 19px; }
.pf-mini { display: grid; gap: 2px; margin-top: 8px; padding: 6px 9px 7px; border-radius: 7px; outline: none; background: rgba(255,255,255,.85); box-shadow: inset 0 0 0 1px rgba(0,0,0,.07); transition: box-shadow 120ms; }
.pf-mini:hover { box-shadow: inset 0 0 0 1px rgba(0,0,0,.16); }
.pf-mini-k { color: var(--mute-2); font-size: 10.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.pf-mini-b { display: flex; align-items: flex-start; gap: 7px; color: var(--ink-2); font-size: 13px; line-height: 18px; }
.pf-mini-b svg { margin-top: 3px; }
.pf-in-foot { flex: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; padding: 10px 12px 12px; border-top: 1px solid var(--hair-soft); }
.pf-in-foot.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.pf-in-foot.note { display: block; color: var(--mute); font-size: 12.5px; text-align: center; }
.pf-in-foot .btn { justify-content: center; height: 28px; padding: 0 6px; }
.pf-in-foot .btn.on { background: var(--field); box-shadow: inset 0 0 0 1px rgba(0,0,0,.18); color: var(--ink); }

/* ───────── Blocs de dimension ───────── */
.pf-li { padding: 10px 0 12px; border-top: 1px solid var(--hair-soft); }
.pf-li:first-child { border-top: 0; padding-top: 2px; }
.pf-li-h { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; }
.pf-li-n { color: var(--ink); font-size: 14px; font-weight: 700; }
.pf-li-q { color: var(--mute); font-size: 13px; }
.pf-li-st { margin-left: auto; }
.pf-cadre { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin: 4px 0 8px; color: var(--mute); font-size: 12.5px; line-height: 18px; }
.pf-cadre b { color: var(--ink-2); font-weight: 600; }
.pf-cadre-m { flex-basis: 100%; }
.pf-fk { margin: 8px 0; color: var(--mute); font-size: 12.5px; line-height: 18px; }
.pf-fk-h { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 10px; }
.pf-fk-l { color: var(--ink-2); font-weight: 600; }
.pf-fk-n { font-size: 12px; }
.pf-fk-r { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin-top: 5px; }
.pf-pts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 12px 0 10px; }
.pf-pt-k { display: flex; align-items: center; gap: 6px; margin-bottom: 4px; color: var(--mute-2); font-size: 11px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }
.pf-pt-k::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--green); }
.pf-pt-travail .pf-pt-k::before { background: var(--yellow-ink); }
.pf-pt-angle-mort .pf-pt-k::before { background: transparent; box-shadow: inset 0 0 0 1.5px #a9abb0; }
.pf-pt p { margin: 0 0 6px; color: var(--ink-2); font-size: 13px; line-height: 19px; }
.pf-pt p.none { color: var(--faint); font-style: italic; }
@container (max-width: 540px) { .pf-pts { grid-template-columns: minmax(0, 1fr); gap: 8px; } }

.pf-pile { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 6px; }
.pf-po { display: flex; flex-direction: column; align-items: center; gap: 2px; min-width: 0; padding: 6px 3px 8px; border: 1px solid transparent; border-radius: 8px; background: #f7f8fa; text-align: center; }
.pf-po.vide { border: 1px dashed #d9dbdf; background: transparent; }
.pf-po-r { color: #a9abb0; font-size: 10.5px; font-weight: 700; }
.pf-po-f { height: 20px; color: var(--ink); font: 600 15px/20px var(--mono); }
.pf-po.vide .pf-po-f::before { content: ""; display: inline-block; width: 13px; height: 13px; border: 1px dashed #c1c3c6; border-radius: 50%; vertical-align: -2px; }
.pf-po-a { max-width: 100%; color: var(--ink-2); font-size: 11px; font-weight: 600; line-height: 13px; hyphens: auto; overflow-wrap: anywhere; }
.pf-po-s { color: var(--faint); font-size: 10.5px; line-height: 13px; }
.pf-po.ombre .pf-po-a { color: var(--mute-2); font-weight: 500; }
@container (max-width: 600px) { .pf-pile { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.pf-inds { display: flex; flex-wrap: wrap; gap: 6px; }
.pf-ind { display: inline-flex; align-items: center; gap: 7px; min-height: 24px; padding: 2px 10px 2px 7px; border-radius: 12px; outline: none; background: var(--ai-soft); color: #45474c; font-size: 12.5px; transition: background-color 120ms; }
.pf-ind:hover { background: #dce9fd; }
.pf-ind b { color: var(--ai-ink); font: 600 12px var(--mono); }

.pf-mg { display: grid; gap: 4px; }
.pf-mg-r { display: grid; grid-template-columns: 52px repeat(5, minmax(0, 1fr)); gap: 4px; }
.pf-mg-h { overflow: hidden; padding-bottom: 1px; color: var(--mute-2); font-size: 11px; font-weight: 700; text-align: center; text-overflow: ellipsis; white-space: nowrap; }
.pf-mg-k { align-self: center; color: var(--mute-2); font-size: 11px; font-weight: 600; }
.pf-mo { display: flex; flex-direction: column; align-items: center; justify-content: center; min-width: 0; min-height: 40px; padding: 4px 3px; border-radius: 8px; outline: none; background: #f7f8fa; text-align: center; }
.pf-mo b { color: #a9abb0; font: 600 11px/14px var(--mono); }
.pf-mo span { max-width: 100%; color: #6f7277; font-size: 12px; line-height: 15px; hyphens: auto; overflow-wrap: anywhere; }
.pf-mo.on { background: var(--ai-soft); box-shadow: inset 0 0 0 1px var(--ai-line); }
.pf-mo.on:hover { background: #dce9fd; }
.pf-mo.on b { color: var(--ai-ink); }
.pf-mo.on span { color: var(--ink); font-weight: 600; }
.pf-couple { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; margin: 10px 0 4px; color: var(--ink-2); font-size: 13px; line-height: 19px; }
.pf-couple b { font-weight: 600; }
.pf-couple-n { color: var(--mute); font-size: 12.5px; }

.pf-vals { display: grid; gap: 5px; }
.pf-vg { display: grid; grid-template-columns: 156px minmax(0, 1fr); align-items: baseline; gap: 8px; }
.pf-vg-n { color: var(--mute); font-size: 12px; font-weight: 600; }
.pf-vg-l { display: flex; flex-wrap: wrap; gap: 4px; }
.pf-val { height: 20px; padding: 0 8px; border-radius: 10px; background: #f7f8fa; color: #8b8d92; font-size: 12px; line-height: 20px; white-space: nowrap; }
.pf-val.rep { background: var(--ai-soft); color: var(--ai-ink); font-weight: 600; }
.pf-rk { display: grid; gap: 1px; }
.pf-rk-r { display: grid; grid-template-columns: 16px minmax(0, 190px) minmax(40px, 1fr) minmax(0, 150px); align-items: center; gap: 8px; min-height: 20px; color: #55565b; font-size: 12.5px; line-height: 18px; }
.pf-rk-i { color: var(--faint); font-size: 11px; font-weight: 600; text-align: right; font-variant-numeric: tabular-nums; }
.pf-rk-n { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pf-rk-r.on .pf-rk-n { color: var(--ink); font-weight: 600; }
.pf-rk-b { height: 4px; border-radius: 2px; background: var(--hair-soft); }
.pf-rk-b i { display: block; height: 100%; min-width: 3px; border-radius: 2px; background: #b9bcc2; }
.pf-rk-r.on .pf-rk-b i { background: var(--ai); opacity: .6; }
.pf-rk-s { overflow: hidden; color: var(--faint); font-size: 11.5px; text-overflow: ellipsis; white-space: nowrap; }
.pf-rk + .pf-note { margin-top: 6px; }
@container (max-width: 470px) {
  .pf-rk-r { grid-template-columns: 16px minmax(0, 11fr) minmax(40px, 9fr); }
  .pf-rk-s { display: none; }
}
.pf-rep { margin-top: 8px; }
.pf-rep-h { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; font-size: 13px; line-height: 19px; }
.pf-rep-h b { color: var(--ink); font-weight: 600; }
.pf-rep-h span { color: var(--mute); }
.pf-prs { display: grid; gap: 2px; }
.pf-pr { display: grid; grid-template-columns: 130px minmax(0, 1fr); gap: 10px; font-size: 13px; line-height: 20px; }
.pf-pr b { color: var(--ink-2); font-weight: 600; }
.pf-pr span { color: #55565b; }
.pf-rl { display: flex; align-items: baseline; gap: 10px; font-size: 13px; line-height: 20px; }
.pf-rl-w { flex: none; width: 34px; color: var(--mute-2); font-size: 12px; font-weight: 700; }
.pf-en { flex: none; align-self: center; display: inline-flex; gap: 2px; }
.pf-en i { width: 5px; height: 11px; border-radius: 2px; background: #e3e5e8; }
.pf-en i.on { background: #8e929a; }
.pf-en.none i { background: transparent; box-shadow: inset 0 0 0 1px #dcdee2; }
.pf-rl-t { color: #55565b; }
.pf-rls.mois .pf-rl-w { width: 66px; font-weight: 600; }
.pf-cus .pf-claims { margin-bottom: 6px; }
.pf-fos { display: flex; flex-wrap: wrap; gap: 5px; }
.pf-fo { height: 22px; padding: 0 10px; border: 1px solid transparent; border-radius: 11px; background: #f7f8fa; color: var(--ink-2); font-size: 12.5px; line-height: 20px; }
.pf-fo.vide { border: 1px dashed #d5d7db; background: transparent; color: #8b8d92; }
.pf-ce { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 10px; min-height: 30px; margin: 0 -8px; padding: 2px 8px; border-radius: 6px; outline: none; font-size: 13px; }
.pf-ce:hover { background: #f6f7f8; }
.pf-ce b { width: 84px; color: var(--ink); font-weight: 600; }
.pf-ce-av { display: inline-flex; }
.pf-ce-av .av + .av { margin-left: -5px; box-shadow: 0 0 0 1.5px #fff; }
.pf-ce-n { color: var(--ink-2); }
.pf-ce-q { margin-left: auto; color: var(--faint); font-size: 12px; }
.pf-ce-q.on { flex-basis: 100%; margin-left: 0; color: var(--mute); line-height: 17px; }
.pf-cu { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; padding: 3px 0; font-size: 13px; }
.pf-cu b { min-width: 92px; color: var(--ink); font-weight: 600; }
.pf-cu-m { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 4px; }
.pf-mot { height: 20px; padding: 0 8px; border-radius: 10px; background: var(--tag-bg); color: var(--tag-ink); font-size: 12px; font-weight: 600; line-height: 20px; }
.pf-com { display: grid; grid-template-columns: 124px minmax(0, 1fr); gap: 2px 12px; padding: 5px 0; border-top: 1px solid var(--hair-soft); }
.pf-com:first-child { border-top: 0; }
.pf-com-k { padding-top: 7px; color: #a2a4a9; font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.pf-com-b { min-width: 0; }
.pf-com-b .pf-manque { margin: 6px 0 5px; }
@container (max-width: 470px) {
  .pf-com, .pf-pr, .pf-vg { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .pf-com-k { padding-top: 4px; }
}
.pf-ctxs { display: flex; flex-wrap: wrap; gap: 4px 26px; margin: 4px 0; font-size: 13px; }
.pf-ctx b { margin-right: 8px; font-weight: 600; }
.pf-ctx span { color: #55565b; }
.pf-pe { padding: 10px 0 8px; border-top: 1px solid var(--hair-soft); }
.pf-pe-h { display: flex; align-items: center; gap: 10px; margin: 0 -8px; padding: 3px 8px; border-radius: 6px; outline: none; }
.pf-pe-h:hover { background: #f6f7f8; }
.pf-pe-n { display: flex; flex-direction: column; min-width: 0; }
.pf-pe-n b { font-size: 14px; font-weight: 600; line-height: 19px; }
.pf-pe-n span { overflow: hidden; color: var(--mute); font-size: 12px; line-height: 15px; text-overflow: ellipsis; white-space: nowrap; }
.pf-pe-t { display: flex; flex-wrap: wrap; align-items: center; gap: 5px 6px; margin: 6px 0 4px; color: var(--mute); font-size: 12px; }
.pf-fr, .pf-flag { display: flex; flex-wrap: wrap; gap: 2px 10px; margin: 6px 0 4px; padding: 7px 10px 8px; border-radius: 8px; outline: none; background: #f7f8fa; color: var(--ink-2); font-size: 13px; line-height: 19px; }
.pf-fr-k, .pf-flag-k { flex-basis: 100%; color: var(--mute-2); font-size: 10.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.pf-flag { background: #fdf3f5; transition: background-color 120ms; }
.pf-flag:hover { background: #fbe8ec; }
.pf-flag-k { color: #c8284b; }
.pf-refl { display: flex; align-items: baseline; gap: 8px; margin: 0 -8px; padding: 3px 8px; border-radius: 6px; outline: none; color: #55565b; font-size: 13px; line-height: 19px; }
.pf-refl:hover { background: #f6f7f8; }
.pf-refl svg { flex: none; align-self: center; }
.pf-refl-t { min-width: 0; }
.pf-refl-w { flex: none; max-width: 46%; margin-left: auto; padding-left: 8px; overflow: hidden; color: var(--mute-2); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }

/* ═════════ A · Métacarte ═════════ */
.pfa-grid { display: grid; grid-template-columns: 20px minmax(0, 1fr) minmax(0, 1fr); grid-template-areas: ". t1 t2" "l1 hg hd" ". mid mid" "l2 bg bd"; }
.pfa-ax { color: #a9abb0; font-size: 10.5px; font-weight: 700; letter-spacing: .1em; text-align: center; text-transform: uppercase; }
.pfa-ax.t1 { grid-area: t1; padding-bottom: 10px; }
.pfa-ax.t2 { grid-area: t2; padding-bottom: 10px; }
.pfa-ax.l1 { grid-area: l1; }
.pfa-ax.l2 { grid-area: l2; }
.pfa-ax.l1, .pfa-ax.l2 { display: grid; place-items: center; }
.pfa-ax.l1 span, .pfa-ax.l2 span { writing-mode: vertical-rl; transform: rotate(180deg); }
.pfa-q { min-width: 0; padding: 6px 24px 20px 6px; container: pfq / inline-size; }
.pfa-hg { grid-area: hg; border-right: 1px solid var(--hair); }
.pfa-hd { grid-area: hd; padding-left: 24px; padding-right: 0; }
.pfa-bg { grid-area: bg; border-right: 1px solid var(--hair); padding-top: 14px; }
.pfa-bd { grid-area: bd; padding: 14px 0 20px 24px; }
.pfa-qh { margin-bottom: 8px; }
.pfa-qt { display: flex; align-items: baseline; gap: 10px; min-height: 26px; }
.pfa-pron { color: var(--ink); font-size: 16px; font-weight: 700; letter-spacing: -.005em; white-space: nowrap; }
.pfa-qn { min-width: 0; overflow: hidden; color: var(--mute-2); font-size: 12px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.pfa-qn em { display: none; font-style: normal; font-weight: 500; }
.pfa-zoom { align-self: center; width: 26px; height: 24px; margin-left: auto; color: #c1c3c6; }
.pfa-q:hover .pfa-zoom { color: #8c8e91; }
.pfa-qq { color: #55565b; font-size: 13px; line-height: 18px; }
.pfa-qm { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin-top: 7px; color: var(--mute); font-size: 12px; font-weight: 600; }
.pfa-src { color: var(--mute-2); font-weight: 500; }
.pfa-src::before { content: "· "; }
.pf-dots { display: inline-flex; flex-wrap: wrap; gap: 3px; max-width: 100%; }
.pf-dots i { width: 7px; height: 7px; border-radius: 50%; background: var(--check); transition: transform 100ms; }
.pf-dots i.st-proposee { background: var(--ai-soft); box-shadow: inset 0 0 0 1px var(--ai); }
.pf-dots i.st-rejetee, .pf-dots i.st-remplacee { background: #dcdee2; }
.pf-dots i:hover { transform: scale(1.4); }

.pfa-ru { position: relative; }
.pfa-ru-in { position: relative; margin: 0 -10px; padding: 0 10px; border-radius: var(--r-card); background: transparent; box-shadow: 0 0 0 0 rgba(0,0,0,0);
  transition: margin var(--t-open) var(--ease), padding var(--t-open) var(--ease), background-color 200ms ease, box-shadow var(--t-open) ease; }
.pfa-ru:not(.open) .pfa-ru-in:hover { background: #f7f8f9; }
.pfa-ru.open { z-index: 2; }
.pfa-ru.open .pfa-ru-in { margin-top: 10px; margin-bottom: 14px; padding-top: 5px; padding-bottom: 2px; background: #fff; box-shadow: var(--shadow-card); }
.pfa-ru-h { display: flex; align-items: center; gap: 10px; min-height: 40px; padding: 2px 0; border-radius: 5px; outline: none; }
.pfa-ru-g { flex: none; display: grid; place-items: center; width: 14px; }
.pfa-ru-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.pfa-ru-n { overflow: hidden; color: var(--ink); font-size: 14px; font-weight: 600; line-height: 19px; text-overflow: ellipsis; white-space: nowrap; }
.pfa-ru-a { overflow: hidden; color: var(--mute); font-size: 12px; line-height: 15px; text-overflow: ellipsis; white-space: nowrap; }
.pfa-ru.open .pfa-ru-a { white-space: normal; line-height: 16px; }
.pfa-ru-st { flex: none; color: var(--mute-2); font-size: 12px; white-space: nowrap; }
.pfa-ru-c { flex: none; width: 18px; color: #818388; font-size: 12px; font-weight: 700; text-align: right; }
.pfa-ru-b { padding: 8px 8px 10px 24px; }
@container pfq (max-width: 400px) {
  .pfa-ru-st { display: none; }
  .pfa-ru-b { padding-left: 8px; }
}
.pfa-peri { margin: 10px -12px 0; padding: 7px 12px 5px; border: 1px dashed #d9dbdf; border-radius: 10px; }
.pfa-peri-k { color: #a9abb0; font-size: 10.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }

.pfa-mid { grid-area: mid; position: relative; }
.pfa-mid::before { content: ""; position: absolute; top: 15px; right: 0; left: 0; height: 1px; background: var(--hair); }
.pfa-mid-h { position: relative; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 2px 16px; width: fit-content; max-width: 100%; min-height: 30px; margin: 0 auto; padding: 4px 12px 4px 10px; border-radius: 15px; outline: none; background: #fff; box-shadow: inset 0 0 0 1px var(--hair); color: var(--mute); font-size: 12px; transition: box-shadow 120ms; }
.pfa-mid-h:hover { box-shadow: inset 0 0 0 1px #cfd1d6; }
.pfa-mid-c { display: inline-flex; align-items: center; gap: 6px; color: var(--ink-2); font-weight: 700; }
.pfa-mid-i { display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; }
.pfa-mid-i b { color: var(--ink-2); font-weight: 600; }
.pfa-mid-v { color: #a9abb0; transition: transform 220ms var(--ease); }
.pfa-mid.open .pfa-mid-v { transform: rotate(180deg); }
.pfa-mid-b { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 44px; margin: 10px 0 6px; padding: 12px 18px 14px; border-radius: 10px; background: #f8f9fa; }
.pfa-mid-b .pf-lab:first-child { margin-top: 0; }

@container pfm (max-width: 719.98px) {
  .pfa-grid { grid-template-columns: minmax(0, 1fr); grid-template-areas: "hg" "hd" "mid" "bg" "bd"; }
  .pfa-ax { display: none; }
  .pfa-q, .pfa-hd, .pfa-bg, .pfa-bd { padding: 16px 0 20px; border-right: 0; }
  .pfa-hd { border-top: 1px solid var(--hair); }
  .pfa-bd { border-top: 1px solid var(--hair); }
  .pfa-hg { padding-top: 2px; }
  .pfa-qn em { display: inline; }
  .pfa-mid-b { grid-template-columns: minmax(0, 1fr); }
}

/* Zoom sur un cadran */
.pfa-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin-bottom: 14px; }
.pfa-back { display: inline-flex; align-items: center; gap: 3px; height: 26px; margin-left: -6px; padding: 0 10px 0 5px; border-radius: 6px; color: var(--mute-2); font-size: 13px; font-weight: 600; }
.pfa-back:hover { background: var(--field); color: #6a6c71; }
.pfa-tabs { display: inline-flex; gap: 2px; margin-left: auto; }
.pfa-tab { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 9px; border-radius: 6px; color: #8e9095; font-size: 12.5px; font-weight: 600; transition: background-color 120ms; }
.pfa-tab small { color: #a9abb0; font-size: 11px; font-weight: 700; }
.pfa-tab:hover { background: var(--field); }
.pfa-tab.on { background: var(--sel); color: var(--ink); }
.pfa-zh { padding-bottom: 14px; border-bottom: 1px solid var(--hair); }
.pfa-zt { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 12px; }
.pfa-zt h2 { margin: 0; font-size: 20px; font-weight: 700; line-height: 26px; letter-spacing: -.01em; }
.pfa-zt span { color: var(--mute-2); font-size: 12.5px; font-weight: 600; }
.pfa-zq { margin: 4px 0 0; color: var(--ink-2); font-size: 14px; line-height: 20px; }
.pfa-zq span { color: var(--mute); }
.pfa-secs { columns: 1; }
.pfa-sec { padding: 16px 0 6px; break-inside: avoid; container-type: inline-size; }
.pfa-sec-h { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; padding-bottom: 6px; border-bottom: 1px solid var(--hair); }
.pfa-sec-h .pfa-ru-n { color: var(--blue); font-weight: 700; }
.pfa-sec-h .pfa-ru-a { white-space: normal; line-height: 16px; }
.pfa-sec.peri .pfa-sec-h { border-bottom-style: dashed; }
@container pfm (min-width: 900px) { .pfa-secs { columns: 2; column-gap: 48px; } }

/* ═════════ B · Psychographe ═════════ */
.pfb-chart { display: grid; grid-template-columns: 86px minmax(0, 1fr) auto; align-items: start; }
.pfb-axis { position: relative; }
.pfb-axis-k { position: absolute; top: 6px; right: 10px; color: #a9abb0; font-size: 10.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.pfb-tick { position: absolute; right: 10px; display: inline-flex; align-items: center; gap: 6px; color: #6f7277; font-size: 11.5px; font-weight: 600; white-space: nowrap; transform: translateY(-50%); }
.pfb-tick i { width: 8px; height: 8px; border-radius: 50%; background: var(--c); }
.pfb-plot { position: relative; min-width: 0; }
.pfb-lines { position: absolute; top: 0; right: 0; left: 0; pointer-events: none; }
.pfb-lines i { position: absolute; right: 0; left: 0; height: 0; border-top: 1px dotted #d5d7db; }
.pfb-cols { position: relative; display: grid; grid-auto-columns: minmax(0, 1fr); grid-auto-flow: column; }
.pfb-col { min-width: 0; padding-bottom: 8px; border-radius: 10px; outline: none; transition: background-color 140ms; }
.pfb-col:hover, .pfb-hv:hover { background: rgba(0,0,0,.025); }
.pfb-col.sel, .pfb-hv.sel { background: #f1f3f6; }
.pfb-track { position: relative; }
.pfb-band { position: absolute; left: 50%; width: 30px; margin-left: -15px; border-radius: 10px; }
.pfb-bar { position: absolute; left: 50%; width: 30px; height: 4px; margin: -2px 0 0 -15px; border-radius: 2px; }
.pfb-dash { position: absolute; left: 50%; width: 0; border-left: 1.5px dashed #c1c3c6; }
.pfb-lab { position: absolute; right: 1px; left: 1px; display: flex; justify-content: center; pointer-events: none; text-align: center; }
.pfb-lab span { display: -webkit-box; overflow: hidden; padding: 0 3px; border-radius: 3px; background: rgba(255,255,255,.88); color: #55565b; font-size: 10.5px; font-weight: 600; line-height: 12px; hyphens: auto; overflow-wrap: break-word; -webkit-box-orient: vertical; -webkit-line-clamp: 5; }
.pfb-col.sel .pfb-lab span { background: rgba(241,243,246,.9); color: var(--ink-2); }
.pfb-dot { position: absolute; left: 50%; z-index: 1; width: 11px; height: 11px; margin-top: -5.5px; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 2px #fff; transform: translateX(-50%); transition: transform 120ms; }
.pfb-dot.st-proposee { background: #fff; box-shadow: inset 0 0 0 2.5px var(--c), 0 0 0 2px #fff; }
.pfb-dot:hover { transform: translateX(-50%) scale(1.3); }
.pfb-foot { display: flex; flex-direction: column; align-items: center; gap: 3px; min-height: 76px; padding: 0 3px; text-align: center; }
.pfb-n { max-width: 100%; color: var(--ink-2); font-size: 12.5px; font-weight: 600; line-height: 15px; hyphens: auto; overflow-wrap: anywhere; }
.pfb-col.sel .pfb-n, .pfb-hv.sel .pfb-n { color: var(--ink); font-weight: 700; }
.pfb-s { color: var(--mute-2); font-size: 11px; line-height: 13px; }
.pfb-tray { display: inline-flex; flex-wrap: wrap; justify-content: center; gap: 4px; margin-top: 3px; }
.pfb-tray i { width: 8px; height: 8px; border-radius: 50%; background: #8e929a; transition: transform 100ms; }
.pfb-tray i.st-proposee { background: #fff; box-shadow: inset 0 0 0 1.5px #8e929a; }
.pfb-tray i.st-rejetee, .pfb-tray i.st-remplacee { background: #dcdee2; }
.pfb-tray i:hover { transform: scale(1.35); }
.pfb-side { align-self: stretch; display: flex; flex-direction: column; margin-left: 16px; padding-left: 16px; border-left: 1px dashed #dfe1e5; }
.pfb-side-k { padding-top: 6px; color: #a9abb0; font-size: 10.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.pfb-side-k span { display: block; max-width: 190px; margin-top: 3px; color: var(--mute-2); font-size: 11.5px; font-weight: 500; letter-spacing: 0; line-height: 15px; text-transform: none; }
.pfb-hvs { display: grid; grid-auto-columns: 94px; grid-auto-flow: column; margin-top: auto; }
.pfb-hv { display: flex; flex-direction: column; align-items: center; gap: 3px; height: 84px; padding: 0 3px 8px; border-radius: 10px; outline: none; text-align: center; transition: background-color 140ms; }
.pfb-hv .pfb-n { font-size: 12px; }
.pfb-cap { min-height: 36px; margin: 8px 0 0 86px; color: var(--mute); font-size: 12.5px; line-height: 18px; transition: color 120ms; }
.pfb-cap.on { color: var(--ink-2); }
.pfb-legend { display: flex; flex-wrap: wrap; gap: 4px 20px; margin: 6px 0 0 86px; color: var(--mute-2); font-size: 11.5px; line-height: 16px; }
.pfb-legend span { display: inline-flex; align-items: center; gap: 6px; }
.pfb-legend .lg-band { width: 10px; height: 14px; border-radius: 4px; background: linear-gradient(to top, #c9cbcf, #e3e5e8); }
.pfb-legend .lg-dash { width: 0; height: 14px; margin: 0 4px; border-left: 1.5px dashed #c1c3c6; }
.pfb-legend .lg-dot { width: 9px; height: 9px; border-radius: 50%; background: #8e929a; }
.pfb-legend .lg-dot.off { margin-left: -2px; background: #fff; box-shadow: inset 0 0 0 1.5px #8e929a; }
.pfb-detail { margin-top: 22px; padding: 16px 18px 14px; border-radius: 10px; background: #fff; box-shadow: var(--shadow-card); }
.pfb-detail .pf-li { padding: 0; border: 0; }
.pfb-detail .pf-li-n { font-size: 17px; letter-spacing: -.005em; }
.pf-ladder { display: grid; gap: 1px; }
.pf-rung { display: flex; align-items: center; gap: 10px; min-height: 24px; margin: 0 -8px; padding: 2px 8px; border-radius: 5px; color: #55565b; font-size: 13px; line-height: 18px; }
.pf-rung.in { background: #f1f3f6; color: var(--ink); font-weight: 600; }
.pf-rung-n { flex: 1; min-width: 0; }
.pf-rung-a { flex: none; display: inline-flex; gap: 10px; color: var(--mute); font-size: 11.5px; font-weight: 500; }
.pf-rung-a span { display: inline-flex; align-items: center; gap: 5px; }
.pf-rung-a i { width: 7px; height: 7px; border-radius: 50%; background: var(--c); }
.pf-rung-d { flex: none; display: inline-flex; align-items: center; gap: 8px; width: clamp(96px, 26%, 220px); }
.pf-rung-d > span { flex: 1; height: 4px; border-radius: 2px; background: rgba(0,0,0,.05); }
.pf-rung-d i { display: block; height: 100%; border-radius: 2px; background: var(--c); }
.pf-rung-d b { flex: none; width: 36px; color: var(--mute); font-size: 11.5px; font-weight: 500; text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.pf-ladder.dist .pf-rung-a { width: 200px; justify-content: flex-end; }
.pf-traj { max-width: 640px; margin: 2px 0 4px; --tl: 190px; }
.pf-traj-g { position: relative; height: 58px; }
.pf-traj-g s { position: absolute; right: 0; left: 0; height: 1px; background: var(--hair); text-decoration: none; }
.pf-traj-g em { position: absolute; top: 0; right: 0; display: flex; align-items: center; gap: 5px; max-width: var(--tl); padding-left: 8px; background: #fff; color: var(--mute); font-size: 11px; font-style: normal; line-height: 14px; white-space: nowrap; transform: translateY(-50%); }
.pf-traj-g em i { flex: none; width: 6px; height: 6px; border-radius: 50%; background: var(--c); }
.pf-traj-p { position: absolute; inset: 0 var(--tl) 0 0; }
.pf-traj-p svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.pf-traj-p polyline { fill: none; stroke: #b9bcc2; stroke-width: 1.5; stroke-dasharray: 3 3; vector-effect: non-scaling-stroke; }
.pf-traj-p > i { position: absolute; width: 9px; height: 9px; margin: -4.5px 0 0 -4.5px; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 2px #fff; }
.pf-traj-l { display: flex; margin: 5px var(--tl) 0 0; }
.pf-traj-l span { flex: 1 1 0; min-width: 0; color: var(--ink-2); font-size: 12px; font-weight: 600; line-height: 16px; text-align: center; white-space: nowrap; }
@container (max-width: 640px) {
  .pf-ladder.dist .pf-rung-a { display: none; }
  .pf-rung-d { width: 38%; }
  .pf-traj { --tl: 128px; }
  .pf-traj-g em { overflow: hidden; }
}
.pfb-bands { margin-top: 26px; }
.pfb-bandeau { padding: 16px 0 16px; border-top: 1px solid var(--hair); }
.pfb-bh { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; margin-bottom: 12px; }
.pfb-bh h3 { margin: 0; color: var(--blue); font-size: 14px; font-weight: 700; }
.pfb-bh > span:last-child { flex: 1 1 280px; color: var(--mute); font-size: 12.5px; line-height: 18px; }
.pfb-brow { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 4px 14px; margin-top: 10px; }
.pfb-bk { flex: none; color: var(--mute-2); font-size: 11px; font-weight: 700; letter-spacing: .05em; line-height: 26px; text-transform: uppercase; }
.pfb-brow .pf-claims, .pfb-brow .pf-inds { flex: 1 1 320px; min-width: 0; }
@container pfm (max-width: 999.98px) {
  .pfb-chart { grid-template-columns: 78px minmax(0, 1fr); }
  .pfb-side { grid-column: 1 / -1; flex-direction: row; align-items: center; gap: 12px; margin: 12px 0 0; padding: 12px 0 0; border-top: 1px dashed #dfe1e5; border-left: 0; }
  .pfb-side-k { flex: 1 1 0; min-width: 0; padding-top: 0; }
  .pfb-hvs { flex: none; grid-auto-columns: minmax(0, 84px); margin: 0; }
  .pfb-hv { height: auto; padding: 6px 3px; }
  .pfb-cap, .pfb-legend { margin-left: 0; }
  .pfb-tick { right: 8px; font-size: 11px; }
}

/* ═════════ C · Fiche ═════════ */
.pfc { display: grid; grid-template-columns: minmax(0, 680px); justify-content: center; gap: 0 48px; }
.pfc-toc { display: none; flex-direction: column; gap: 1px; align-self: start; position: sticky; top: 54px; max-height: calc(var(--pf-vh) - 70px); overflow-y: auto; scrollbar-width: none; }
.pfc-toc-i { display: flex; align-items: center; gap: 8px; min-height: 24px; padding: 2px 8px; border-radius: 6px; color: #7a7d82; font-size: 12.5px; font-weight: 500; text-align: left; transition: color 120ms; }
.pfc-toc-i span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pfc-toc-i small { color: #b0b2b7; font-size: 11px; font-weight: 700; }
.pfc-toc-i:hover { background: var(--field); }
.pfc-toc-i.vide { color: var(--faint); }
.pfc-toc-i.on { color: var(--ink); font-weight: 600; }
@container pfm (min-width: 920px) {
  .pfc { grid-template-columns: 176px minmax(0, 680px); justify-content: start; }
  .pfc-toc { display: flex; }
}
.pfc-doc { min-width: 0; }
.pfc-sec { padding-bottom: 28px; }
.pfc-h { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; margin-bottom: 10px; padding-bottom: 6px; border-bottom: 1px solid var(--hair); }
.pfc-h h2 { margin: 0; color: var(--blue); font-size: 15px; font-weight: 700; line-height: 22px; }
.pfc-h-s { color: var(--mute); font-size: 13px; }
.pfc-h-q { display: inline-flex; align-items: center; gap: 6px; margin-left: auto; color: var(--mute-2); font-size: 12px; font-weight: 600; }
.pfa-mini { flex: none; }
.pfc-noyau { padding: 14px 18px 10px; border-radius: 10px; background: #f7f8fa; }
.pfc-lead { margin: 0 0 8px; color: #55565b; font-size: 13px; line-height: 19px; }
.pfc-lead span { color: var(--mute); }
.pfc-ny { display: grid; grid-template-columns: 74px minmax(0, 1fr); gap: 10px; padding: 5px 0; }
.pfc-ny-k { padding-top: 3px; color: #a2a4a9; font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.pfc-ny-b b { color: var(--ink); font-size: 14px; font-weight: 600; }
.pfc-ny-b p { margin: 0; color: var(--ink-2); font-size: 14.5px; line-height: 22px; }
.pfc-ny.c-limite .pfc-ny-b p { color: var(--mute); }
.pfc-ny-b p.pfc-ny-w { color: #c8284b; font-size: 12.5px; line-height: 18px; }
.pfc-ny.prop .pfc-ny-b > p:first-of-type { color: #6c6d72; }
.pfc-ny-b .pf-tag.hy { margin: 0 0 0 8px; }
.pfc-doc .pf-li { padding: 6px 0 14px; border-top: 0; }
.pfc-doc .pf-li-n { font-size: 14.5px; }
.pfc-doc .pf-note { font-size: 13.5px; line-height: 20px; }
.pfc-doc .pf-fact { font-size: 14.5px; line-height: 22px; }
.pfc-rules { margin: 0 0 6px; padding-left: 18px; color: #55565b; font-size: 13.5px; line-height: 21px; }
.pfc-rules li::marker { color: #b6b8bd; }

/* Une phrase par affirmation, confiance et statut en marge, actions au survol */
.pf-s { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 128px; align-items: start; gap: 12px; margin: 0 -8px; padding: 4px 8px; border-radius: 6px; outline: none; }
.pf-s:hover { background: #f6f7f8; }
.pf-s-t { color: var(--ink); font-size: 14.5px; line-height: 22px; }
.pf-s.st-proposee .pf-s-t { color: var(--ai-text); }
.pf-s.st-rejetee .pf-s-t > span:first-of-type, .pf-s.st-remplacee .pf-s-t > span:first-of-type { color: #a9abb0; text-decoration: line-through; text-decoration-color: #cfd1d5; }
.pf-s-k { margin-right: 8px; color: var(--ink); font-weight: 600; }
.pf-s-z { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin-top: 2px; color: var(--mute); font-size: 12px; line-height: 16px; }
.pf-s .pf-claim-x { display: block; }
.pf-s-m, .pf-s-acts { grid-column: 2; grid-row: 1; justify-self: end; display: inline-flex; align-items: center; height: 22px; transition: opacity 120ms; }
.pf-s-m { gap: 8px; }
.pf-s-m .pf-tag { display: none; }
.pf-s-acts { position: relative; z-index: 1; gap: 3px; opacity: 0; pointer-events: none; }
.pf-s:has(.pf-s-acts):hover .pf-s-m, .pf-s:has(.pf-s-acts):focus-within .pf-s-m { opacity: 0; pointer-events: none; }
.pf-s:hover .pf-s-acts, .pf-s:focus-within .pf-s-acts { opacity: 1; pointer-events: auto; }
.pf-s-acts button { display: grid; place-items: center; width: 30px; height: 22px; border-radius: 5px; background: #fff; box-shadow: inset 0 0 0 1px rgba(0,0,0,.11); color: #6f7277; transition: transform 120ms, color 120ms; }
.pf-s-acts button:hover { color: var(--ink); box-shadow: inset 0 0 0 1px rgba(0,0,0,.22); }
.pf-s-acts button:active { transform: scale(.94); }
.pf-hist { margin: 4px 0; }
.pf-hist summary { display: inline-flex; align-items: center; gap: 6px; height: 22px; margin-left: -8px; padding: 0 8px; border-radius: 6px; color: var(--mute-2); font-size: 12px; font-weight: 600; list-style: none; cursor: default; }
.pf-hist summary::-webkit-details-marker { display: none; }
.pf-hist summary::before { content: ""; border: 4px solid transparent; border-right-width: 0; border-left-color: #b6b8bd; transition: transform 160ms var(--ease); }
.pf-hist[open] summary::before { transform: rotate(90deg); }
.pf-hist summary:hover { background: var(--field); }
@container pfm (max-width: 600px) {
  .pf-s { grid-template-columns: minmax(0, 1fr) 72px; gap: 8px; }
  .pf-s-m .pf-st span { display: none; }
  .pf-s-acts button { width: 22px; }
  .pf-s-acts { gap: 2px; }
  .pfc-ny { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .pfc-ny-k:empty { display: none; }
}
.pf-claim.sel { background: var(--row-sel); }

/* ── src/css/71-profile-de.css ── */
/* Méta-profil · propositions D « Fil de vie » (pfd-) et E « Revue » (pfe-).
   Même famille que la chronologie du navigateur de notes (.tl-wrap) et que les cartes du board. */

.pfd, .pfe { container-type: inline-size; margin-top: 4px; }
.pfd { container-name: pfd; }
.pfe { container-name: pfe; }
.pfd-in, .pfe-in { padding-bottom: 24px; }
.pfd-grow { flex: 1; }
.col.pfd-col { max-width: 1240px; }
.pfd-repli { margin-top: 14px; }

/* ───────── Atomes partagés ───────── */
/* Le cadran d'une affirmation : la case allumée dit lequel (Je, Cela, Nous, Ils) */
.pfd-quad { flex: none; }
.pfd-quad rect { fill: #dfe1e6; }
.pfd-quad rect.on { fill: #5b6474; }

/* Type de preuve : une forme et une couleur primaire */
:is(.pfd, .pfe, .pfd-pop) .t-declaration { --tc: var(--blue); }
:is(.pfd, .pfe, .pfd-pop) .t-ecrit { --tc: #8e929a; }
:is(.pfd, .pfe, .pfd-pop) .t-evenement { --tc: var(--red); }
:is(.pfd, .pfe, .pfd-pop) .t-echange { --tc: #3f9a8f; }
:is(.pfd, .pfe, .pfd-pop) .t-test { --tc: #c9a50f; }
.pfd-ty { flex: none; color: var(--tc); }

/* Confiance : toujours visible */
.pfd-cf { flex: none; display: inline-flex; align-items: center; gap: 5px; color: var(--mute); font-size: 11.5px; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.pfd-cf > i { display: block; width: 28px; height: 3px; border-radius: 2px; background: #e4e6ea; overflow: hidden; }
.pfd-cf > i > b { display: block; height: 100%; border-radius: 2px; background: #9aa0aa; }

/* Statut */
.pfd-mk { flex: none; display: inline-flex; align-items: center; gap: 4px; color: var(--mute); font-size: 11.5px; font-weight: 600; white-space: nowrap; }
.pfd-mk svg { flex: none; }
.pfd-mk.s-proposee { color: var(--ai-ink); }
.pfd-mk.s-validee, .pfd-mk.s-corrigee { color: #5d5e62; }
.pfd-mk.s-validee > svg:not(.pf-g), .pfd-mk.s-corrigee > svg:not(.pf-g) { color: var(--check); }
.pfd-mk.s-rejetee, .pfd-mk.s-remplacee { color: #a9abb0; }

/* Ligne de preuve compacte */
.pfd-pr { display: flex; align-items: flex-start; gap: 8px; width: calc(100% + 14px); margin: 0 -8px 0 -6px; padding: 5px 8px 6px 6px; border-radius: 7px; text-align: left; transition: background-color 120ms, opacity 160ms; }
.pfd-pr:hover { background: #f4f5f7; }
.pfd-pr-g { flex: none; width: 16px; height: 18px; display: grid; place-items: center; }
.pfd-pr-m { flex: 1; min-width: 0; display: grid; gap: 1px; }
.pfd-pr-q { color: #3d3f44; font-size: 13px; line-height: 18px; overflow: hidden; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; }
.pfd-pr-s { display: flex; flex-wrap: wrap; gap: 0 7px; min-width: 0; color: #a9abb0; font-size: 11.5px; line-height: 15px; }
.pfd-pr-s b { max-width: 100%; color: #84868b; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pfd-pr-s em, .pfd-nu { color: #a8520b; font-style: normal; font-weight: 600; }
.pfd-pr-src { padding-top: 2px; color: #8e929a; font: 11px/15px var(--mono); overflow-wrap: anywhere; }
.pfd-pr-go { flex: none; margin-top: 3px; color: #b6b8bd; opacity: 0; transition: opacity 120ms; }
.pfd-pr:hover .pfd-pr-go { opacity: 1; }
.pfd-pr.off { opacity: .3; }
.pfd-flash { animation: pfd-flash 1300ms ease-out; border-radius: 8px; }
@keyframes pfd-flash { 0%, 30% { background-color: #fdf3c2; } 100% { background-color: transparent; } }

/* Jeton d'affirmation */
.pfd-af { display: flex; align-items: flex-start; gap: 8px; width: 100%; padding: 7px 10px 8px 9px; border-radius: 8px; background: #fff; box-shadow: inset 0 0 0 1px var(--hair); text-align: left; transition: background-color 120ms, box-shadow 120ms, opacity 160ms, transform 120ms; }
.pfd-af:hover { background: #f8f9fb; box-shadow: inset 0 0 0 1px #d3d6dc; }
.pfd-af:active { transform: scale(.99); }
.pfd-af.sel { background: #eef4fe; box-shadow: inset 0 0 0 1px #a9c6f7; }
.pfd-af-q { flex: none; margin-top: 4px; }
.pfd-af-m { flex: 1; min-width: 0; display: grid; gap: 3px; }
.pfd-af-t { color: var(--ink); font-size: 13px; line-height: 18px; overflow: hidden; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; }
.pfd-af-s { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 9px; color: #a3a5aa; font-size: 11.5px; line-height: 15px; }
.pfd-af-d { color: #84868b; font-weight: 600; }
/* Une hypothèse ne se présente jamais comme un fait : trait en pointillé, encre plus légère */
.pfd-af.s-proposee { box-shadow: none; outline: 1px dashed #bcd4fa; outline-offset: -1px; }
.pfd-af.s-proposee:hover { outline-color: #8fb4f3; }
.pfd-af.s-proposee .pfd-af-t { color: #55565b; }
.pfd-af.s-rejetee, .pfd-af.s-remplacee { background: #f8f8f9; box-shadow: none; }
.pfd-af.s-rejetee .pfd-af-t { color: #a9abb0; text-decoration: line-through; text-decoration-color: #cfd1d5; }
.pfd-af.s-remplacee .pfd-af-t { color: #a9abb0; }
.pfd-af.off { opacity: .3; }

.pfd-empty { padding: 46px 20px 40px; text-align: center; }
.pfd-empty h3 { margin: 0; color: #9a9da2; font-size: 15px; font-weight: 600; }
.pfd-empty p { max-width: 460px; margin: 6px auto 0; color: #b0b2b7; font-size: 13px; line-height: 19px; font-style: italic; }
.pfd-empty-a { display: flex; justify-content: center; gap: 8px; margin-top: 14px; }

.pfd-pop { width: 392px; max-width: calc(100vw - 16px); max-height: 70vh; overflow-y: auto; padding: 12px 14px 10px; border-radius: 10px; background: #fff; box-shadow: var(--shadow-pop); }
.pfd-pop-h { display: flex; align-items: center; gap: 6px; color: var(--mute); font-size: 12px; font-weight: 600; }
.pfd-pop-t { margin-top: 5px; color: var(--ink); font-size: 14.5px; line-height: 20px; font-weight: 600; }
.pfd-pop-s { display: flex; flex-wrap: wrap; align-items: center; gap: 3px 10px; margin-top: 7px; color: var(--mute); font-size: 11.5px; font-weight: 600; }
.pfd-pop-n { margin-top: 8px; padding: 6px 9px; border-radius: 7px; background: #fbf5d9; color: #6b5a12; font-size: 12px; line-height: 16px; }
.pfd-pop-p { margin-top: 8px; padding-top: 6px; border-top: 1px solid var(--hair-soft); }

/* ═════════════════════════ D · Fil de vie ═════════════════════════ */
.pfd-lead { max-width: 720px; margin: 0; color: var(--mute); font-size: 13.5px; line-height: 19px; }

/* ── Bande de densité ── */
.pfd-band { margin-top: 14px; padding: 12px 14px 10px; border-radius: 10px; background: #f8f8f9; }
.pfd-band-g { display: grid; grid-template-columns: minmax(0, 11fr) minmax(0, 15fr); gap: 16px; }
.pfd-band-c { min-width: 0; display: flex; flex-direction: column; }
.pfd-band-l { color: var(--mute-2); font-size: 11px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pfd-cells { flex: 1; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); margin-top: 6px; }
.pfd-cell { min-width: 0; display: flex; flex-direction: column; justify-content: flex-end; padding: 4px 0 3px; border-radius: 6px; transition: background-color 120ms; }
.pfd-cell:hover { background: rgba(0, 0, 0, .045); }
.pfd-dots { display: flex; flex-wrap: wrap-reverse; justify-content: center; align-content: flex-start; gap: 2px; width: 100%; max-width: 38px; min-height: 34px; margin: 0 auto; padding: 0 2px 4px; }
.pfd-dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--tc); transition: transform 120ms var(--ease), opacity 160ms; }
.pfd-dots i.ax { background: #f8f8f9; box-shadow: inset 0 0 0 1.5px var(--tc); }
.pfd-dots i.off { opacity: .16; }
.pfd-dots i:hover { transform: scale(1.6); }
.pfd-cl { border-top: 1px solid #d9dbe0; padding-top: 4px; color: var(--mute); font-size: 10.5px; font-weight: 600; line-height: 13px; text-align: center; font-variant-numeric: tabular-nums; }
.pfd-cl s { text-decoration: none; }
.pfd-cell.none .pfd-cl, .pfd-cell.fut .pfd-cl { color: #c1c3c6; }
.pfd-cell.none .pfd-cl { border-top: 1px dotted #c1c3c6; }
.pfd-cell.fut .pfd-cl { border-top-color: transparent; }
.pfd-band-n { margin-top: 8px; color: #a9abb0; font-size: 11.5px; line-height: 15px; }

/* ── Commandes et filtres ── */
.pfd-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin-top: 18px; }
.pfd-bar .seg button i { margin-left: 5px; color: #a9abb0; font-style: normal; font-weight: 600; }
.pfd-order { display: inline-flex; align-items: center; gap: 5px; height: 24px; padding: 0 8px; border-radius: 6px; color: var(--mute); font-size: 12px; font-weight: 600; white-space: nowrap; transition: background-color 120ms, color 120ms; }
.pfd-order:hover { background: var(--field); color: var(--ink-2); }
.pfd-filters { display: grid; gap: 5px; margin-top: 12px; }
.pfd-fr { display: flex; align-items: flex-start; gap: 6px; min-width: 0; }
.pfd-fl { flex: none; width: 84px; color: var(--mute-2); font-size: 11px; font-weight: 700; letter-spacing: .05em; line-height: 20px; text-transform: uppercase; }
.pfd-fp { flex: 1; min-width: 0; display: flex; flex-wrap: wrap; gap: 3px 1px; }
.pfd-fp .pill { padding: 0 9px; }
.pfd-fp .pill i { font-size: 11px; font-style: normal; font-weight: 600; opacity: .62; }
.pfd-fp .pill.on .pfd-ty { color: #fff; }
.pfd-fp .pill.zero:not(.on) { color: #c1c3c6; }

/* ── Frise ── */
.pfd-tl { margin-top: 20px; }
.pfd-cols, .pfd-year, .pfd-mo, .pfd-gap, .pfd-en { display: grid; grid-template-columns: 128px 26px minmax(0, 1.22fr) minmax(0, 1fr); }
.pfd-cols { padding-bottom: 6px; border-bottom: 1px solid var(--hair); color: var(--mute-2); font-size: 11px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }
.pfd-cols span:nth-child(3) { padding-left: 6px; }
.pfd-when { min-width: 0; padding-right: 8px; text-align: right; }
.pfd-when b { display: block; color: var(--mute); font-size: 12px; font-weight: 600; line-height: 20px; }
.pfd-when span { display: inline-flex; align-items: center; gap: 4px; color: #b0b2b7; font-size: 11px; font-weight: 600; line-height: 14px; }
.pfd-node { position: relative; }
.pfd-node::before { content: ""; position: absolute; left: 50%; top: 0; bottom: 0; width: 1px; margin-left: -.5px; background: var(--hair); }
.pfd-node i { position: absolute; left: 50%; top: 5.5px; width: 9px; height: 9px; margin-left: -4.5px; border-radius: 50%; background: #5b6474; box-shadow: 0 0 0 3px #fff; }
.pfd-en.tr .pfd-node i { top: 6.5px; width: 7px; height: 7px; margin-left: -3.5px; background: #fff; box-shadow: inset 0 0 0 1.5px #b6b8bd, 0 0 0 3px #fff; }
.pfd-year { padding-top: 22px; }
.pfd-cols + .pfd-year { padding-top: 14px; }
.pfd-year .pfd-when b { color: var(--ink); font-size: 17px; font-weight: 700; line-height: 24px; letter-spacing: -.01em; }
.pfd-year .pfd-node i { top: 6px; width: 11px; height: 11px; margin-left: -5.5px; background: #fff; box-shadow: inset 0 0 0 2px #5b6474, 0 0 0 3px #fff; }
.pfd-year-s { padding: 2px 0 12px 6px; color: var(--mute); font-size: 12px; font-weight: 600; line-height: 20px; }
.pfd-mo-t { padding: 4px 0 8px 6px; color: var(--mute-2); font-size: 11px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }
.pfd-gap { min-height: 46px; align-items: center; }
.pfd-gap .pfd-node { align-self: stretch; }
.pfd-gap .pfd-node::before { background: repeating-linear-gradient(180deg, #c1c3c6 0 2px, transparent 2px 6px); }
.pfd-gap .pfd-when b { color: #b6b8bd; }
.pfd-gap-t { padding-left: 6px; color: #b6b8bd; font-size: 12.5px; font-style: italic; }
.pfd-body { min-width: 0; padding: 0 26px 20px 6px; }
.pfd-h { display: flex; align-items: center; gap: 6px; min-height: 20px; }
.pfd-t { color: var(--ink); font-size: 14px; font-weight: 600; line-height: 20px; }
.pfd-en.tr .pfd-t { color: #55565b; font-size: 13px; }
.pfd-tr-k { color: #b0b2b7; font-size: 11.5px; white-space: nowrap; }
.pfd-ft { flex: none; align-self: flex-start; margin-top: 2px; height: 16px; padding: 0 7px; border-radius: 8px; background: var(--field); color: #7a7d82; font-size: 11px; font-weight: 600; line-height: 16px; white-space: nowrap; }
.pfd-note { flex: none; width: 22px; height: 20px; border-radius: 5px; display: grid; place-items: center; color: #b0b2b7; transition: background-color 120ms, color 120ms; }
.pfd-note:hover { background: var(--field); color: #5d5e62; }
.pfd-x { margin-top: 1px; color: #6c6d72; font-size: 13px; line-height: 18px; }
.pfd-prs { margin-top: 5px; }
.pfd-afs { min-width: 0; display: flex; flex-direction: column; gap: 6px; padding-bottom: 20px; }
.pfd-afs-l { display: none; color: var(--mute-2); font-size: 11px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }
.pfd-noaf { color: #b6b8bd; font-size: 12.5px; font-style: italic; line-height: 20px; }

/* ── Ce que la carte ne sait pas encore ── */
.pfd-unk { margin-top: 28px; padding: 14px 16px 15px; border-radius: 10px; background: #f8f8f9; }
.pfd-unk-h { color: var(--ink-2); font-size: 13px; font-weight: 700; }
.pfd-unk-p { margin: 3px 0 0; color: var(--mute); font-size: 13px; line-height: 18px; }
.pfd-unk-g { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2.6fr); gap: 14px 28px; margin-top: 12px; }
.pfd-unk-k { color: var(--mute-2); font-size: 11px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }
.pfd-unk-l { margin: 7px 0 0; padding: 0; list-style: none; }
.pfd-unk-g > div:last-child .pfd-unk-l { columns: 2; column-gap: 26px; }
.pfd-unk-l li { display: flex; align-items: flex-start; gap: 8px; margin-bottom: 6px; color: #6c6d72; font-size: 12.5px; line-height: 17px; break-inside: avoid; }
.pfd-unk-l li > i { flex: none; width: 9px; height: 9px; margin-top: 4px; border: 1px dashed #b0b2b7; border-radius: 50%; }
.pfd-unk-l li > i.some { border-style: solid; border-color: #9a9da2; background: linear-gradient(90deg, #9a9da2 50%, transparent 50%); }
.pfd-unk-l b { color: #45474c; font-weight: 600; }
.pfd-unk-l em { display: block; color: #a3a5aa; font-style: normal; }

/* ── Parcours de construction ── */
.pfd-cons .h-row { margin-top: 30px; }
.pfd-link { display: inline-flex; align-items: center; gap: 4px; height: 20px; color: var(--blue); font-size: 12px; font-weight: 600; white-space: nowrap; }
.pfd-link:hover { color: #2c4a9e; }
.pfd-steps { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 20px 0; margin: 14px 0 0; padding: 0; list-style: none; }
.pfd-st { min-width: 0; padding-right: 14px; }
.pfd-st-n { position: relative; display: flex; align-items: center; height: 20px; }
.pfd-st-n::after { content: ""; position: absolute; left: 25px; right: -8px; top: 50%; height: 1px; background: var(--hair); }
.pfd-st:last-child .pfd-st-n::after { display: none; }
.pfd-st-n i { width: 19px; height: 19px; border-radius: 50%; display: grid; place-items: center; background: #fff; box-shadow: inset 0 0 0 1.25px #c1c3c6; color: #a3a5aa; font-size: 10.5px; font-style: normal; font-weight: 700; }
.pfd-st.en-cours .pfd-st-n i { box-shadow: inset 0 0 0 1.5px var(--blue); color: var(--blue); }
.pfd-st.fait .pfd-st-n i { background: var(--check); box-shadow: none; color: #fff; }
.pfd-st-m { display: grid; gap: 2px; margin-top: 8px; justify-items: start; }
.pfd-st-m b { color: var(--ink); font-size: 13px; font-weight: 600; line-height: 17px; }
.pfd-st-m > span { color: var(--mute); font-size: 12px; line-height: 16px; }
.pfd-st-m em { margin-top: 4px; color: #b0b2b7; font-size: 10.5px; font-style: normal; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }
.pfd-st-m em.en-cours { color: var(--blue); }
.pfd-st-m p { margin: 0; color: #55565b; font-size: 12px; line-height: 16px; }
.pfd-flow { margin-top: 24px; }
.pfd-flow-h { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 12px; color: var(--mute); font-size: 12.5px; }
.pfd-flow-h b { color: var(--ink); font-size: 13px; font-weight: 600; }
.pfd-flow-b { display: flex; gap: 2px; height: 8px; margin-top: 8px; border-radius: 4px; overflow: hidden; }
.pfd-flow-b i { min-width: 5px; }
.pfd-flow-b .s-validee, .pfd-flow-l .s-validee i { background: #5b6474; }
.pfd-flow-b .s-corrigee, .pfd-flow-l .s-corrigee i { background: #8e96a6; }
.pfd-flow-b .s-proposee, .pfd-flow-l .s-proposee i { background: repeating-linear-gradient(135deg, #a9c6f7 0 2px, #e3edfd 2px 4px); }
.pfd-flow-b .s-rejetee, .pfd-flow-l .s-rejetee i { background: #cfd1d6; }
.pfd-flow-b .s-remplacee, .pfd-flow-l .s-remplacee i { background: #e4e6ea; }
.pfd-flow-l { display: flex; flex-wrap: wrap; gap: 3px 16px; margin-top: 8px; color: var(--mute); font-size: 12px; }
.pfd-flow-l span { display: inline-flex; align-items: center; gap: 6px; }
.pfd-flow-l i { width: 8px; height: 8px; border-radius: 2px; }
.pfd-daily { display: grid; gap: 3px; margin: 16px 0 0; padding: 0; list-style: none; color: var(--ai-text); font-size: 12.5px; line-height: 18px; }
.pfd-daily li { position: relative; padding-left: 13px; }
.pfd-daily li::before { content: ""; position: absolute; left: 2px; top: 7px; width: 4px; height: 4px; border-radius: 50%; background: #c1c3c6; }

/* ── Panneau moyen puis étroit ── */
@container pfd (max-width: 980px) {
  .pfd-cl s { display: none; }
  .pfd-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .pfd-st:nth-child(3n) .pfd-st-n::after { display: none; }
  .pfd-cols, .pfd-year, .pfd-mo, .pfd-gap, .pfd-en { grid-template-columns: 104px 24px minmax(0, 1.1fr) minmax(0, 1fr); }
  .pfd-body { padding-right: 18px; }
}
@container pfd (max-width: 760px) {
  .pfd-band { padding: 10px 10px 9px; }
  .pfd-band-g { grid-template-columns: minmax(0, 10fr) minmax(0, 13fr); gap: 10px; }
  .pfd-dots { gap: 1.5px; padding: 0 1px 4px; }
  .pfd-dots i { width: 5px; height: 5px; }
  .pfd-cl { font-size: 9.5px; letter-spacing: -.02em; }
  .pfd-fr { gap: 2px; }
  .pfd-fl { width: 76px; }
  .pfd-fp { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-right: -4px; mask-image: linear-gradient(90deg, #000 calc(100% - 22px), transparent); -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 22px), transparent); padding-right: 18px; }
  .pfd-fp::-webkit-scrollbar { display: none; }
  .pfd-cols { display: none; }
  .pfd-year, .pfd-mo, .pfd-gap, .pfd-en { grid-template-columns: 22px minmax(0, 1fr); }
  .pfd-node { grid-column: 1; grid-row: 1 / span 3; }
  .pfd-when { grid-column: 2; grid-row: 1; display: flex; align-items: center; gap: 8px; padding: 0 0 0 6px; text-align: left; }
  .pfd-when b { line-height: 18px; }
  .pfd-node i { top: 4.5px; }
  .pfd-en.tr .pfd-node i { top: 5.5px; }
  .pfd-year .pfd-node i { top: 6px; }
  .pfd-body { grid-column: 2; grid-row: 2; padding: 0 0 8px 6px; }
  .pfd-afs { grid-column: 2; grid-row: 3; padding: 0 0 22px 6px; }
  .pfd-afs-l { display: block; margin-top: 2px; }
  .pfd-year-s, .pfd-mo-t, .pfd-gap-t { grid-column: 2; }
  .pfd-year-s { grid-row: 2; padding-bottom: 8px; }
  .pfd-mo .pfd-when { display: none; }
  .pfd-gap { min-height: 0; padding: 6px 0 14px; }
  .pfd-gap-t { grid-row: 2; }
  .pfd-unk-g { grid-template-columns: minmax(0, 1fr); }
  .pfd-unk-g > div:last-child .pfd-unk-l { columns: 1; }
  .pfd-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pfd-st:nth-child(3n) .pfd-st-n::after { display: block; }
  .pfd-st:nth-child(2n) .pfd-st-n::after { display: none; }
}

/* ═════════════════════════ E · Revue ═════════════════════════ */
.pfe-zh { margin-top: 26px; }
.pfe-z1 .pfe-zh { margin-top: 8px; }
.pfe-zh .seg { flex: none; margin: -3px 0 -3px 8px; }
.pfe-zs { max-width: 720px; margin: 0 0 12px; color: var(--mute); font-size: 12.5px; line-height: 18px; }
.pfe-none { padding: 22px 0 8px; color: #b0b2b7; font-size: 13px; font-style: italic; text-align: center; }
.pfe-lab, .pfe-c-prh, .pfe-rail-h, .pfe-r-g, .pfe-x-l, .pfe-h-g, .pfe-l-g, .pfe-l-h > span, .pfe-x-inl { color: var(--mute-2); font-size: 11px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }

/* ── Une par une : la carte, et la file à côté ── */
.pfe-strip { display: none; gap: 3px; margin: 0 0 12px; }
.pfe-strip button { position: relative; flex: 1; height: 14px; }
.pfe-strip button::before { content: ""; position: absolute; left: 0; right: 0; top: 5px; height: 4px; border-radius: 2px; background: #e4e6ea; transition: background-color 160ms, transform 160ms var(--ease); }
.pfe-strip .s-validee::before, .pfe-strip .s-corrigee::before { background: #5b6474; }
.pfe-strip .s-rejetee::before { background: #b6b8bd; }
.pfe-strip .on::before { background: var(--ai); transform: scaleY(1.6); }
.pfe-deck { display: grid; grid-template-columns: minmax(0, 1fr) 292px; gap: 30px; align-items: start; margin-top: 8px; }
.pfe-main { min-width: 0; max-width: 760px; }
.pfe-cardwrap { position: relative; padding-bottom: 12px; }
.pfe-card { position: relative; z-index: 2; padding: 15px 20px 8px; border-radius: 10px; background: #fff; box-shadow: var(--shadow-card); }
.pfe-under { position: absolute; z-index: 1; left: 10px; right: 10px; bottom: 6px; height: 14px; border-radius: 0 0 10px 10px; background: #fff; box-shadow: var(--shadow-card); }
.pfe-under.u2 { z-index: 0; left: 20px; right: 20px; bottom: 0; }
.pfe-card.in-fwd { animation: pfe-in-f 260ms var(--ease-out) both; }
.pfe-card.in-back { animation: pfe-in-b 260ms var(--ease-out) both; }
@keyframes pfe-in-f { from { opacity: 0; transform: translateY(9px) scale(.975); } to { opacity: 1; transform: none; } }
@keyframes pfe-in-b { from { opacity: 0; transform: translateX(-16px); } to { opacity: 1; transform: none; } }
.pfe-card.out { opacity: 0; transform: translateX(-22px) scale(.985); transition: opacity 170ms ease, transform 180ms var(--ease); }

.pfe-c-q { display: flex; align-items: flex-start; gap: 7px; margin-bottom: 12px; padding-bottom: 12px; border-bottom: 1px solid var(--hair-soft); color: var(--ai-text); font-size: 13px; line-height: 18px; }
.pfe-c-q svg { flex: none; margin-top: 2px; }
.pfe-c-q i { display: block; color: #b0b2b7; font-size: 11.5px; font-style: normal; line-height: 16px; }
.pfe-c-top { display: flex; align-items: center; gap: 8px; min-height: 20px; }
.pfe-c-dim { min-width: 0; display: inline-flex; align-items: center; gap: 6px; color: var(--mute); font-size: 12px; font-weight: 600; }
.pfe-c-open, .pfe-arrow { flex: none; width: 28px; height: 24px; border-radius: 6px; display: grid; place-items: center; color: #9a9da2; transition: background-color 120ms, color 120ms; }
.pfe-c-open:hover, .pfe-arrow:hover { background: var(--field); color: #5d5e62; }
.pfe-arrow[disabled] { opacity: .35; pointer-events: none; }
.pfe-c-t { margin-top: 5px; color: var(--ink); font-size: 20px; font-weight: 600; line-height: 27px; letter-spacing: -.012em; border-radius: 6px; overflow-wrap: anywhere; }
.pfe-card.s-proposee .pfe-c-t { color: #303135; font-weight: 500; }
.pfe-card.s-rejetee .pfe-c-t { color: #a9abb0; text-decoration: line-through; text-decoration-color: #cfd1d5; text-decoration-thickness: 1px; }
.pfe-c-t[contenteditable] { background: #f5f8fe; box-shadow: 0 0 0 6px #f5f8fe, 0 0 0 7.5px var(--ai-line); }
.pfe-c-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 13px; margin-top: 10px; color: var(--mute); font-size: 12px; }
.pfe-c-meta .pfd-mk, .pfe-c-meta .pfd-cf { font-size: 12px; }
.pfe-c-meta .pfd-cf > i { width: 64px; height: 4px; }
.pfe-nat { font-weight: 600; }
.pfe-since { color: #a3a5aa; }
.pfe-c-was { display: flex; gap: 8px; margin-top: 10px; color: #84868b; font-size: 12.5px; line-height: 17px; }
.pfe-c-was b, .pfe-h-x b { flex: none; color: var(--mute-2); font-size: 11px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }
.pfe-c-guard { margin-top: 10px; padding: 7px 10px; border-radius: 7px; background: #fbf5d9; color: #6b5a12; font-size: 12.5px; line-height: 17px; }
.pfe-c-lec { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 9px; margin-top: 10px; color: #6c6d72; font-size: 12.5px; line-height: 18px; }
.pfe-alt { display: inline-flex; align-items: center; gap: 5px; height: 18px; padding: 0 8px 0 6px; border-radius: 9px; background: var(--f); color: var(--k); font-size: 11.5px; font-weight: 600; white-space: nowrap; }
.pfe-alt i { width: 7px; height: 7px; border-radius: 50%; background: var(--c); }
.pfe-c-also { display: inline-flex; align-items: center; gap: 5px; height: 22px; margin-top: 8px; padding: 0 8px 0 6px; border-radius: 6px; background: var(--field); color: #55565b; font-size: 12px; font-weight: 600; }
.pfe-c-also:hover { background: #e7e8ec; }
.pfe-c-pr { margin-top: 14px; border-top: 1px solid var(--hair-soft); }
.pfe-c-prh { margin: 11px 0 3px; }
.pfe-c-acts { display: flex; gap: 8px; margin-top: 14px; }
.pfe-c-acts .btn { flex: 1 1 0; min-width: 0; height: 32px; justify-content: center; gap: 7px; font-size: 13.5px; transition: transform 120ms, background-color 120ms, color 120ms, box-shadow 120ms; }
.pfe-c-acts .btn svg { color: #8c8e91; }
.pfe-c-acts .btn .kbd { margin-left: 3px; }
.pfe-c-acts .btn:hover { background: #f4f5f7; }
.pfe-c-acts .btn.hit, .pfe-l-a button.hit { background: #2b2d31; box-shadow: none; color: #fff; }
.pfe-c-acts .btn.hit svg, .pfe-c-acts .btn.hit .kbd { color: #fff; background: transparent; }
.pfe-c-rule { margin: 9px 0 0; color: #b0b2b7; font-size: 11.5px; line-height: 16px; text-align: center; }
.pfe-c-dec { display: flex; align-items: center; gap: 8px; margin-top: 14px; padding: 7px 7px 7px 12px; border-radius: 8px; background: #f6f7f8; color: var(--ink-2); font-size: 13px; font-weight: 600; }
.pfe-c-dec > span { flex: 1; min-width: 0; }
.pfe-c-dec > svg:not(.pf-g) { color: var(--check); }
.pfe-c-dec.s-rejetee > svg:not(.pf-g) { color: #9a9da2; }
.pfe-c-foot { display: flex; align-items: center; gap: 2px; margin: 12px -10px 0; padding-top: 6px; border-top: 1px solid var(--hair-soft); }
.pfe-c-n { padding-left: 10px; color: var(--mute-2); font-size: 12px; font-weight: 600; font-variant-numeric: tabular-nums; }

.pfe-rail { min-width: 0; padding-top: 3px; }
.pfe-rail-h { display: flex; justify-content: space-between; align-items: baseline; }
.pfe-rail-h span { color: #b0b2b7; letter-spacing: 0; text-transform: none; font-weight: 600; font-size: 11.5px; }
.pfe-r-g { margin: 12px 0 3px; color: #b0b2b7; }
.pfe-r { display: flex; align-items: center; gap: 7px; width: calc(100% + 16px); height: 26px; margin: 0 -8px; padding: 0 8px; border-radius: 6px; text-align: left; transition: background-color 120ms; }
.pfe-r:hover { background: #f4f5f7; }
.pfe-r.on { background: var(--row-sel); }
.pfe-r-s { flex: none; width: 13px; display: grid; place-items: center; color: #8fb4f3; }
.pfe-r.s-validee .pfe-r-s, .pfe-r.s-corrigee .pfe-r-s { color: var(--check); }
.pfe-r.s-rejetee .pfe-r-s { color: #b6b8bd; }
.pfe-r-t { flex: 1; min-width: 0; color: var(--ink-2); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pfe-r:not(.s-proposee) .pfe-r-t { color: #a9abb0; }
.pfe-r.s-rejetee .pfe-r-t { text-decoration: line-through; text-decoration-color: #cfd1d5; }
.pfe-r-c { flex: none; color: #a9abb0; font-size: 11.5px; font-weight: 600; font-variant-numeric: tabular-nums; }

.pfe-done { display: grid; justify-items: center; gap: 7px; padding: 44px 20px 36px; text-align: center; }
.pfe-done.in-fwd { animation: pfe-in-f 280ms var(--ease-out) both; }
.pfe-done h3 { margin: 8px 0 0; color: #6f7277; font-size: 15px; font-weight: 600; }
.pfe-done p { max-width: 460px; margin: 0; color: #9a9da2; font-size: 13px; line-height: 19px; }
.pfe-done p.q { color: #b6b8bd; font-style: italic; }
.pfe-done .btn { margin-top: 6px; }

/* ── Liste ── */
.pfe-list { margin-top: 2px; }
.pfe-l-h { display: flex; flex-wrap: wrap; align-items: center; gap: 3px; margin: 2px 0 4px; }
.pfe-l-h > span { margin-right: 6px; }
.pfe-l-g { display: flex; align-items: baseline; gap: 6px; margin: 16px 0 3px; }
.pfe-l-g i { color: #b6b8bd; font-style: normal; letter-spacing: 0; }
.pfe-l-g.q { color: var(--ai-text); font-size: 12.5px; font-weight: 500; letter-spacing: 0; line-height: 17px; text-transform: none; }
.pfe-l { position: relative; display: flex; align-items: center; gap: 12px; margin: 0 -8px; padding: 7px 8px 8px; border-radius: 7px; transition: background-color 120ms, opacity 170ms ease, transform 180ms var(--ease); }
.pfe-l:hover { background: #f6f7f8; }
.pfe-l + .pfe-l::before { content: ""; position: absolute; left: 31px; right: 8px; top: 0; height: 1px; background: var(--hair-soft); }
.pfe-l:hover::before, .pfe-l:hover + .pfe-l::before { opacity: 0; }
.pfe-l.out { opacity: 0; transform: translateX(-14px); }
.pfe-l-q { flex: none; align-self: flex-start; margin-top: 5px; }
.pfe-l-m { flex: 1; min-width: 0; display: grid; gap: 1px; }
.pfe-l-t { color: #3b3c41; font-size: 13.5px; line-height: 19px; overflow: hidden; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.pfe-l-s { display: flex; flex-wrap: wrap; gap: 0 10px; color: #a9abb0; font-size: 11.5px; line-height: 15px; }
.pfe-l-s span:first-child { color: #84868b; font-weight: 600; }
.pfe-l .pfd-cf > i { width: 44px; }
.pfe-l .pfd-cf > span { min-width: 26px; text-align: right; }
.pfe-l-a { flex: none; display: flex; gap: 3px; }
.pfe-l-a button { width: 28px; height: 26px; border-radius: 6px; display: grid; place-items: center; background: #fff; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .10); color: #8c8e91; transition: background-color 120ms, color 120ms, transform 120ms; }
.pfe-l-a button:hover { background: #f1f2f4; color: #3b3c41; }
.pfe-l-a button:active { transform: scale(.94); }

/* ── Contradictions et écarts : face à face, sans gagnante ── */
.pfe-x { margin-top: 12px; padding: 14px 18px 14px; border-radius: 10px; background: #fff; box-shadow: var(--shadow-card); transition: opacity 180ms ease, transform 200ms var(--ease); }
.pfe-x.out { opacity: 0; transform: scale(.985); }
.pfe-x-h { display: flex; align-items: flex-start; gap: 10px; }
.pfe-x-k { flex: none; display: inline-flex; align-items: center; gap: 5px; height: 20px; padding: 0 9px 0 6px; border-radius: 10px; background: var(--field); color: #55565b; font-size: 11.5px; font-weight: 700; }
.pfe-x-q { color: var(--ink); font-size: 14.5px; font-weight: 600; line-height: 20px; }
.pfe-x-2 { display: grid; grid-template-columns: minmax(0, 1fr) 30px minmax(0, 1fr); margin-top: 14px; }
.pfe-x-mid { position: relative; display: grid; justify-items: center; align-content: start; }
.pfe-x-mid::before { content: ""; position: absolute; top: 0; bottom: 0; left: 50%; width: 1px; margin-left: -.5px; background: var(--hair-soft); }
.pfe-x-mid i { position: relative; width: 24px; height: 24px; margin-top: 18px; border-radius: 50%; display: grid; place-items: center; background: #fff; box-shadow: inset 0 0 0 1px var(--hair); color: #8c8e91; }
.pfe-x-s { min-width: 0; padding-right: 14px; }
.pfe-x-mid + .pfe-x-s { padding: 0 0 0 14px; }
.pfe-x-l { display: flex; align-items: center; gap: 8px; }
.pfe-x-l span { display: inline-flex; align-items: center; gap: 4px; color: #b0b2b7; letter-spacing: 0; text-transform: none; font-weight: 600; }
.pfe-x-t { margin-top: 4px; color: var(--ink); font-size: 15px; font-weight: 600; line-height: 21px; border-radius: 5px; overflow-wrap: anywhere; }
.pfe-x-s.s-proposee .pfe-x-t { color: #3b3c41; font-weight: 500; }
.pfe-x-t[contenteditable] { background: #f5f8fe; box-shadow: 0 0 0 5px #f5f8fe, 0 0 0 6.5px var(--ai-line); }
.pfe-x-m { display: flex; flex-wrap: wrap; align-items: center; gap: 3px 10px; margin-top: 7px; color: #a3a5aa; font-size: 11.5px; line-height: 16px; }
.pfe-x-p { margin-top: 8px; }
.pfe-x-n { margin: 12px 0 0; color: var(--ai-text); font-size: 12.5px; line-height: 18px; }
.pfe-x-acts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--hair-soft); }
.pfe-x-acts .btn { flex: 1 1 150px; min-width: 0; height: auto; min-height: 30px; padding: 5px 12px; justify-content: center; text-align: center; white-space: normal; line-height: 18px; }
.pfe-x-acts .btn:hover { background: #f4f5f7; }
.pfe-x-in { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--hair-soft); }
.pfe-x-in .pfe-c-acts { margin-top: 10px; max-width: 360px; }
.pfe-x-f { min-height: 34px; margin-top: 6px; padding: 7px 11px; border-radius: 8px; background: var(--field); font-size: 13.5px; line-height: 20px; transition: background-color 140ms, box-shadow 140ms; }
.pfe-x-f:focus { background: #fff; box-shadow: inset 0 0 0 1.5px var(--ai); }
.pfe-x-f.shake { animation: pfe-shake 260ms ease; }
@keyframes pfe-shake { 25% { transform: translateX(-4px); } 75% { transform: translateX(4px); } }

/* ── Déjà revu ── */
.pfe-zh.fold { width: 100%; text-align: left; }
.pfe-zh.fold > svg { flex: none; color: #9a9da2; transition: transform 200ms var(--ease); }
.pfe-z3.open .pfe-zh.fold > svg { transform: rotate(90deg); }
.pfe-zh.fold .h-title { flex: none; }
.pfe-z3-sum { flex: 1; min-width: 0; color: var(--mute); font-size: 12.5px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pfe-h-body { animation: view-in 200ms ease both; }
.pfe-h-g { display: flex; align-items: baseline; gap: 6px; margin: 16px 0 2px; }
.pfe-h-g i { color: #b6b8bd; font-style: normal; letter-spacing: 0; }
.pfe-h-n { max-width: 720px; margin: 0 0 4px; color: #a9abb0; font-size: 12px; line-height: 17px; }
.pfe-h { display: flex; align-items: flex-start; gap: 9px; margin: 0 -8px; padding: 6px 8px 7px; border-radius: 7px; transition: background-color 120ms; }
.pfe-h:hover { background: #f6f7f8; }
.pfe-h.sel { background: #eef4fe; }
.pfe-h-s { flex: none; width: 14px; margin-top: 3px; display: grid; place-items: center; color: var(--check); }
.pfe-h.s-rejetee .pfe-h-s, .pfe-h.s-remplacee .pfe-h-s, .pfe-h.rv .pfe-h-s { color: #9a9da2; }
.pfe-h-m { flex: 1; min-width: 0; display: grid; gap: 1px; }
.pfe-h-t { color: var(--ink-2); font-size: 13.5px; line-height: 19px; }
.pfe-h.s-rejetee .pfe-h-t { color: #a9abb0; text-decoration: line-through; text-decoration-color: #cfd1d5; }
.pfe-h.s-remplacee .pfe-h-t { color: #a9abb0; }
.pfe-h-x { color: #84868b; font-size: 12px; line-height: 17px; }
.pfe-h-x b { margin-right: 4px; }
.pfe-h-d { color: #b0b2b7; font-size: 11.5px; line-height: 15px; }
.pfe-h .btn { flex: none; height: 24px; padding: 0 9px; font-size: 12px; }

@container pfe (max-width: 900px) {
  .pfe-deck { grid-template-columns: minmax(0, 1fr); }
  .pfe-main { max-width: none; }
  .pfe-rail { display: none; }
  .pfe-strip { display: flex; }
}
@container pfe (max-width: 640px) {
  .pfe-card { padding: 13px 15px 8px; }
  .pfe-c-t { font-size: 18px; line-height: 25px; }
  .pfe-c-acts { gap: 6px; }
  .pfe-c-acts .btn { padding: 0 6px; gap: 5px; font-size: 13px; }
  .pfe-c-acts .btn .kbd { display: none; }
  .pfe-x { padding: 13px 14px; }
  .pfe-x-h { flex-direction: column; gap: 7px; }
  .pfe-x-2 { grid-template-columns: minmax(0, 1fr); }
  .pfe-x-mid { height: 36px; align-content: center; }
  .pfe-x-mid::before { top: 50%; bottom: auto; left: 0; right: 0; width: auto; height: 1px; margin: 0; }
  .pfe-x-mid i { margin-top: 0; transform: rotate(90deg); }
  .pfe-x-s, .pfe-x-mid + .pfe-x-s { padding: 0; }
  .pfe-l { flex-wrap: wrap; gap: 6px 10px; }
  .pfe-l-m { flex-basis: calc(100% - 26px); }
  .pfe-l .pfd-cf { margin-left: 23px; }
  .pfe-l-a { margin-left: auto; }
  .pfe-z3-sum { display: none; }
}

/* Modifier un événement du fil : le titre est cliquable, un crayon discret au survol (lot I8) */
.pfd-en.ev .pfd-t { cursor: pointer; }
.pfd-en.ev .pfd-t::after { content: ""; display: inline-block; width: 12px; height: 12px; margin-left: 6px; vertical-align: -1px; opacity: 0; background: currentColor; -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'><path d='M3 13l.7-2.9 7.4-7.4a1.2 1.2 0 0 1 1.7 0l.5.5a1.2 1.2 0 0 1 0 1.7L5.9 12.3 3 13Z' fill='none' stroke='black' stroke-width='1.4'/></svg>") center / contain no-repeat; mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'><path d='M3 13l.7-2.9 7.4-7.4a1.2 1.2 0 0 1 1.7 0l.5.5a1.2 1.2 0 0 1 0 1.7L5.9 12.3 3 13Z' fill='none' stroke='black' stroke-width='1.4'/></svg>") center / contain no-repeat; transition: opacity .15s; }
.pfd-en.ev .pfd-t:hover::after { opacity: .45; }

/* ── src/css/72-profile-simple.css ── */
/* Méta-profil · lecture « En clair » : l'interrupteur de niveau dans la barre, l'en-tête simple, la vue Portrait.
   Les mises en page s'appuient sur le conteneur pfm (.pf-main), comme les autres propositions. */

/* ───────── Barre : le segmenté à gauche, l'interrupteur « Carte complète » à droite ───────── */
.pf-bar { flex-wrap: wrap; gap: 4px 14px; }
.pf-bar .pf-seg { flex: 0 1 auto; min-width: 0; }
.pf-hint:empty { margin-bottom: 8px; }
.pfs-lv { flex: 1 0 auto; max-width: 100%; display: flex; align-items: center; justify-content: flex-end; gap: 0 10px; }
.pfs-lv-tip { min-width: 0; color: var(--mute-2); font-size: 12px; line-height: 16px; text-align: right; animation: view-in 300ms ease 250ms both; }
.pfs-sw { flex: none; display: inline-flex; align-items: center; gap: 8px; height: 26px; margin-right: -4px; padding: 0 4px 0 8px; border-radius: 6px; color: #7a7d82; font-size: 12px; font-weight: 600; white-space: nowrap; transition: color 140ms; }
.pfs-sw:hover { color: var(--ink-2); }
.pfs-sw:focus-visible { outline: none; box-shadow: inset 0 0 0 2px rgba(76,142,245,.55); }
.pfs-sw i { position: relative; flex: none; width: 26px; height: 16px; border-radius: 8px; background: #d5d7db; transition: background-color 200ms var(--ease); }
.pfs-sw i::after { content: ""; position: absolute; top: 2px; left: 2px; width: 12px; height: 12px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 .5px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.22); transition: transform 200ms var(--ease); }
.pfs-sw.on { color: var(--ink-2); }
.pfs-sw.on i { background: var(--check); }
.pfs-sw.on i::after { transform: translateX(10px); }

/* Le compteur « à confirmer » : une invitation, pas une alerte */
.pf-count.rv.pfs-todo { background: var(--ai-soft); color: var(--ai-ink); }
.pf-count.rv.pfs-todo i { background: var(--ai); }
.pf-count.rv.pfs-todo:hover { background: #dce9fd; }
.pf-count.rv.pfs-todo.zero { background: var(--field); color: var(--mute); }
.pf-count.rv.pfs-todo.zero i { background: var(--green); }

/* ───────── Portrait ───────── */
.pfs-intro { max-width: 720px; margin: 2px 0 0; color: var(--ink); font-size: 21px; font-weight: 500; line-height: 30px; letter-spacing: -.012em; text-wrap: balance; }
.pfs-sec { min-width: 0; margin-top: 28px; }
/* Les groupes s'empilent ; deux groupes d'une seule carte se partagent une rangée */
.pfs-secs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; align-items: start; }
.pfs-secs > .pfs-sec { grid-column: 1 / -1; }
.pfs-secs > .pfs-sec.solo { grid-column: auto; }
.pfs-sec.solo .pfs-grid { grid-template-columns: minmax(0, 1fr); }
.pfs-h { margin: 0 0 12px; padding-bottom: 6px; border-bottom: 1px solid var(--hair); color: var(--blue); font-size: 14px; font-weight: 700; line-height: 21px; }
.pfs-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; gap: 12px 16px; }

/* Une carte : au repos une surface calme, ouverte une carte Things (blanc, ombre) */
.pfs-card { position: relative; min-width: 0; }
.pfs-card-in { border-radius: 10px; background: #f7f8fa; box-shadow: 0 0 0 0 rgba(0,0,0,0); transition: background-color 200ms ease, box-shadow var(--t-open) ease; }
.pfs-card:not(.open) .pfs-card-in:hover { background: #f2f4f7; }
.pfs-card.open { z-index: 2; }
.pfs-card.open .pfs-card-in { background: #fff; box-shadow: var(--shadow-card); }
.pfs-card-h { display: flex; align-items: flex-start; gap: 10px; padding: 14px 12px 0 16px; border-radius: 10px 10px 0 0; outline: none; }
.pfs-card-g { flex: none; display: grid; place-items: center; width: 14px; height: 22px; }
.pfs-card-b { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; }
.pfs-card-k { color: var(--ink); font-size: 15px; font-weight: 600; line-height: 22px; letter-spacing: -.005em; }
.pfs-card-t { margin-top: 2px; color: #45474c; font-size: 14px; line-height: 21px; text-wrap: pretty; }
.pfs-card-m { display: flex; flex-wrap: wrap; align-items: center; gap: 1px 12px; margin-top: 10px; color: var(--mute); font-size: 12px; line-height: 17px; }
.pfs-card-v { flex: none; display: grid; place-items: center; width: 22px; height: 22px; color: #c1c3c6; transition: transform 240ms var(--ease), color 120ms; }
.pfs-card-in:hover .pfs-card-v { color: #8c8e91; }
.pfs-card.open .pfs-card-v { transform: rotate(180deg); }
.pfs-sure { display: inline-flex; align-items: center; gap: 6px; color: #6f7277; font-weight: 600; white-space: nowrap; }
.pfs-sure-d { display: inline-flex; gap: 2.5px; }
.pfs-sure-d i { width: 5px; height: 5px; border-radius: 50%; background: #d9dbdf; }
.pfs-sure-d i.on { background: #8e929a; }
.pfs-card-n { min-width: 0; }

/* Dépliage sur place : grille 0fr → 1fr */
.pfs-fold { display: grid; grid-template-rows: 0fr; transition: grid-template-rows var(--t-open) var(--ease); }
.pfs-fold-in { min-height: 0; overflow: hidden; opacity: 0; visibility: hidden; transition: opacity 140ms ease, visibility 0s linear var(--t-open); }
.pfs-card.open .pfs-fold { grid-template-rows: 1fr; }
.pfs-card.open .pfs-fold-in { opacity: 1; visibility: visible; transition: opacity 220ms ease 90ms, visibility 0s; }
.pfs-why { padding: 16px 14px 2px 40px; }
.pfs-why-k { margin-bottom: 8px; color: var(--ink-2); font-size: 12.5px; font-weight: 600; line-height: 18px; }
.pfs-why-0 { margin: 0 0 6px; color: var(--mute); font-size: 13px; line-height: 19px; }
.pfs-more { display: inline-flex; align-items: center; gap: 4px; height: 24px; margin: 6px 0 0 -8px; padding: 0 6px 0 8px; border-radius: 6px; color: var(--mute-2); font-size: 12.5px; font-weight: 600; transition: background-color 120ms, color 120ms; }
.pfs-more:hover { background: var(--field); color: #55565b; }

/* Trois réponses de même poids, puis l'état de la carte */
.pfs-card-f { padding: 12px 14px 14px 40px; }
.pfs-ans { display: flex; flex-wrap: wrap; gap: 6px; }
.pfs-ans .btn { flex: none; justify-content: center; height: 26px; padding: 0 12px; transition: transform 120ms, background-color 120ms, box-shadow 120ms; }
.pfs-ans .btn:hover { box-shadow: inset 0 0 0 1px rgba(0,0,0,.2); }
.pfs-card-f.said { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 12px; min-height: 52px; animation: view-in 220ms ease both; }
.pfs-said { display: inline-flex; align-items: center; gap: 7px; min-height: 26px; color: var(--ink-2); font-size: 13px; font-weight: 500; line-height: 18px; }
.pfs-said-x { flex-basis: 100%; color: #55565b; font-size: 13px; line-height: 19px; }
.pfs-card.is-non .pfs-card-k { color: #a9abb0; }
.pfs-card.is-non .pfs-card-t { color: #a9abb0; text-decoration: line-through; text-decoration-color: #cfd1d5; }
.pfs-card.is-non .pfs-sure, .pfs-card.is-non .pfs-card-n { opacity: .6; }
.pfs-card-f.pick { display: grid; gap: 4px; justify-items: start; animation: view-in 200ms ease both; }
.pfs-pick-k { margin-bottom: 2px; color: var(--ink-2); font-size: 12.5px; font-weight: 600; line-height: 18px; }
.pfs-pick-i { display: flex; align-items: flex-start; gap: 8px; width: 100%; padding: 6px 10px 7px; border-radius: 7px; background: #fff; box-shadow: inset 0 0 0 1px rgba(0,0,0,.09); color: var(--ink-2); font-size: 13px; line-height: 18px; text-align: left; transition: box-shadow 120ms; }
.pfs-pick-i:hover { box-shadow: inset 0 0 0 1px rgba(0,0,0,.2); }
.pfs-pick-i svg { margin-top: 3px; color: #a2a5aa; }
.pfs-card-f.pick .pf-link { margin-top: 2px; }

/* Le menu « Voir le détail » quand une phrase résume plusieurs points */
.pfs-pop { width: 340px; max-width: calc(100vw - 16px); padding: 6px; border-radius: 10px; background: #fff; box-shadow: var(--shadow-pop); }
.pfs-pop-k { padding: 3px 8px 5px; color: var(--mute-2); font-size: 11.5px; font-weight: 600; }
.pfs-pop-i { display: flex; align-items: flex-start; gap: 8px; width: 100%; padding: 6px 8px; border-radius: 6px; color: var(--ink-2); font-size: 13px; line-height: 18px; text-align: left; }
.pfs-pop-i:hover { background: #f3f4f6; }
.pfs-pop-i svg { margin-top: 2px; }

/* Ce que l'assistant ne sait pas encore */
.pfs-miss-i { display: flex; align-items: flex-start; gap: 4px 10px; padding: 8px 0; border-bottom: 1px solid var(--hair-soft); }
.pfs-miss-i:first-child { padding-top: 2px; }
.pfs-miss-i > svg { margin-top: 3px; }
.pfs-miss-i p { flex: 1 1 0; min-width: 0; margin: 0; color: var(--ink-2); font-size: 14px; line-height: 20px; }
.pfs-miss-i p b { margin-right: 8px; color: var(--ink); font-weight: 600; }
.pfs-miss-i .mini { flex: none; }
.pfs-miss-i .mini:hover { box-shadow: inset 0 0 0 1px #cfd1d6; color: var(--ink-2); }

.pfs-invite { display: flex; align-items: center; gap: 12px; margin-top: 22px; padding: 14px 16px; border-radius: 10px; outline: none; background: var(--ai-soft); transition: background-color 140ms; }
.pfs-invite:hover { background: #e0ebfd; }
.pfs-invite-i { flex: none; display: grid; place-items: center; width: 22px; height: 22px; color: var(--ai); }
.pfs-invite-b { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; }
.pfs-invite-b b { color: var(--ink); font-size: 15px; font-weight: 600; line-height: 21px; }
.pfs-invite-b span { color: #55565b; font-size: 13px; line-height: 18px; }
.pfs-invite-go { flex: none; display: inline-flex; align-items: center; gap: 3px; color: var(--ai-ink); font-size: 13px; font-weight: 600; white-space: nowrap; }
.pfs-foot { margin: 20px 0 0; color: var(--mute-2); font-size: 12.5px; line-height: 18px; }

@container pfm (max-width: 719.98px) {
  .pfs-secs, .pfs-grid { grid-template-columns: minmax(0, 1fr); }
  .pfs-intro { font-size: 20px; line-height: 28px; }
}
@container pfm (max-width: 519.98px) {
  .pfs-miss-i { flex-wrap: wrap; }
  .pfs-miss-i p { flex-basis: calc(100% - 24px); }
  .pfs-miss-i .mini { margin-left: 24px; }
  .pfs-invite { flex-wrap: wrap; }
  .pfs-invite-go { margin-left: 34px; }
}

/* v7 — En-tête du Méta-profil réduit à une ligne : les compteurs. Les phrases d'explication passent en info-bulle des onglets. */
.pf-sub { display: none; }
.pf-hint, .pf-hint:empty { height: 0; margin: 0 0 12px; overflow: hidden; }
.pfs-lv-tip { display: none; }

/* Le noyau : ce que l'assistant lit de toi (lot I8) */
.pfs-noyau{margin-top:28px}
.pfs-noyau-t{background:none;border:0;padding:0;color:var(--mute-2);font:inherit;font-size:13px;cursor:pointer;text-decoration:underline;text-underline-offset:3px}
.pfs-noyau-s{color:var(--mute-2);font-size:13px;margin:4px 0 12px}
.pfs-noyau-b h3{font-size:13px;font-weight:600;margin:14px 0 4px}
.pfs-noyau-b p{margin:0 0 8px;line-height:1.55}
.pfs-noyau-b.cut{max-height:150px;overflow:hidden;-webkit-mask-image:linear-gradient(#000 60%,transparent);mask-image:linear-gradient(#000 60%,transparent)}
.pfs-noyau-m{color:var(--mute-2);font-size:12px;margin:6px 0 12px}
.pfs-noyau-p{border:1px solid var(--hair);border-radius:10px;padding:12px;margin:0 0 12px;display:flex;flex-direction:column;gap:6px}
.pfs-noyau-p span{color:var(--mute-2);font-size:13px}
.pfs-noyau-a{display:flex;flex-wrap:wrap;gap:8px;margin:8px 0}
.pfs-noyau-h{list-style:none;padding:0;margin:8px 0 0;display:flex;flex-direction:column;gap:6px;font-size:13px}
.pfs-noyau-h li{display:flex;flex-wrap:wrap;gap:8px;align-items:baseline}
.pfs-noyau-h i{font-style:normal;color:var(--mute-2)}

/* ── src/css/73-consignes.css ── */
/* v11 · Préférences de travail (consignes).
   Trois niveaux : une section (titre bleu, état à droite), des cartes calmes à la manière du Portrait, des lignes qui se déplient en carte blanche.
   Les mises en page s'appuient sur le conteneur pfm (.pf-main), qui va d'un panneau de 320 px à une colonne de 1100 px. */
.kn { max-width: 780px; }
.kn-lead { margin: 2px 0 0; color: var(--mute); font-size: 13.5px; line-height: 20px; max-width: 640px; text-wrap: pretty; }
.kn-bar { display: flex; align-items: center; gap: 12px; margin-top: 14px; }
.kn-bar .kn-filters { flex: 1; min-width: 0; margin: 0; }
.kn-filters .pill i { font-style: normal; font-weight: 600; opacity: .72; }
.kn-by, .kn-pick, .kn-back { flex: none; display: inline-flex; align-items: center; gap: 5px; height: 24px; padding: 0 8px; border-radius: 6px; color: var(--mute); font-size: 12.5px; font-weight: 600; white-space: nowrap; }
.kn-by:hover, .kn-pick:hover, .kn-back:hover { background: var(--field); color: var(--ink-2); }
.kn-by svg, .kn-pick svg, .kn-back svg { opacity: .7; }
.kn .btn.primary { background: var(--ai); color: #fff; box-shadow: none; }
.kn .btn.quiet { background: transparent; box-shadow: none; color: var(--mute); }
.kn .btn.quiet:hover { background: rgba(0,0,0,.04); }
.kn-none { margin: 22px 0 0; color: var(--mute); font-size: 13.5px; line-height: 20px; }

/* ───────── Section : un domaine ou une famille de portée ───────── */
.kn-sec { margin-top: 30px; }
.kn-h { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 0 14px; margin: 0; padding-bottom: 6px; border-bottom: 1px solid var(--hair); color: var(--blue); font-size: 14px; font-weight: 700; line-height: 21px; }
.kn-h-m { display: inline-flex; flex-wrap: wrap; align-items: baseline; gap: 0 14px; color: var(--mute-2); font-size: 12px; font-weight: 600; }
.kn-h-todo { display: inline-flex; align-items: center; gap: 2px; color: var(--ai-ink); font-size: 12px; font-weight: 600; line-height: 21px; }
.kn-h-todo:hover { text-decoration: underline; }
.kn-h-todo svg { margin-top: 1px; opacity: .8; }
.kn-sum { margin: 8px 0 0; color: var(--mute); font-size: 13px; line-height: 19px; }
.kn-fams { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; margin-top: 12px; }

/* ───────── Carte : un sous-titre léger et ses consignes ───────── */
.kn-fam { min-width: 0; padding: 4px 4px 5px; border-radius: 10px; background: #f7f8fa; }
.kn-fam.bare { padding-top: 5px; }
.kn-fam-h { display: flex; align-items: baseline; gap: 8px; padding: 9px 12px 3px; }
.kn-fam-h span { min-width: 0; color: #45474c; font-size: 13px; font-weight: 600; line-height: 18px; }
.kn-fam-h i { flex: none; font-style: normal; color: var(--mute-2); font-size: 12px; font-weight: 600; }
.kn-more { display: inline-flex; align-items: center; gap: 5px; height: 26px; margin: 0 0 1px 27px; padding: 0 8px; border-radius: 6px; color: var(--mute); font-size: 12.5px; font-weight: 600; transition: background-color 120ms, color 120ms; }
.kn-more:hover { background: #eceef1; color: #55565b; }
.kn-more svg { opacity: .7; }

/* ───────── Ligne ───────── */
.kn-row { position: relative; }
.kn-in { border-radius: 8px; transition: background-color 160ms ease, box-shadow var(--t-open, 240ms) ease; }
.kn-head { display: flex; align-items: flex-start; gap: 9px; min-height: 32px; padding: 6px 12px; border-radius: 8px; cursor: default; }
.kn-row:not(.open) .kn-head:hover { background: #eef0f3; }
.kn-g { flex: none; width: 14px; height: 20px; display: grid; place-items: center; }
.kn-main { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; }
.kn-t { color: var(--ink); font-size: 14px; line-height: 20px; text-wrap: pretty; overflow-wrap: anywhere; }
/* La force : l'obligatoire est la norme et ne se dit pas ; seuls « par défaut » et « goût » se signalent, en fin de phrase */
.kn-f { margin-left: 8px; font-style: normal; color: var(--mute-2); font-size: 12px; font-weight: 500; white-space: nowrap; }
.kn-row.off .kn-t { color: #a3a5aa; text-decoration: line-through; text-decoration-color: #d3d5d9; }
.kn-row.off .kn-f { display: none; }
.kn-row.lost .kn-t { color: #a3a5aa; }
.kn-lostby { margin-top: 2px; color: var(--mute-2); font-size: 12px; line-height: 16px; }
.kn-scope { flex: none; max-width: 38%; margin-top: 1px; color: var(--mute-2); font-size: 12px; font-weight: 500; line-height: 18px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Ce qui se montre : couleurs en pastilles, polices en « Aa », exemples avec leur signe */
.kn-spec { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin: 7px 0 3px; }
.kn-sw { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 4px; }
.kn-sw i { width: 16px; height: 16px; border-radius: 50%; box-shadow: inset 0 0 0 .5px rgba(0,0,0,.22); }
.kn-sw em { margin-left: 2px; font-style: normal; color: var(--mute-2); font-size: 11.5px; font-weight: 600; }
.kn-ty { display: inline-block; max-width: 100%; height: 22px; padding: 0 8px 0 7px; border-radius: 6px; background: #fff; box-shadow: inset 0 0 0 1px rgba(0,0,0,.08); color: #45474c; font-size: 12.5px; line-height: 22px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; vertical-align: top; }
.kn-ty b { margin-right: 6px; color: var(--ink); font-size: 14px; font-weight: 600; }
.kn-mk { flex: none; }
.kn-exl { display: flex; align-items: flex-start; gap: 6px; margin-top: 3px; color: #55565b; font-size: 13px; line-height: 18px; }
.kn-exl > span { min-width: 0; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; overflow-wrap: anywhere; }
.kn-exl .kn-mk { margin-top: 3.5px; }
.kn-exl.bon .kn-mk { color: #2f9e5b; }
.kn-exl.mauvais .kn-mk { color: #d14b62; }
.kn-exl.mauvais > span { color: var(--mute); }
.kn-t + .kn-exl { margin-top: 4px; }

/* ───────── La ligne dépliée : une carte blanche ───────── */
.kn-row.open { z-index: 2; }
.kn-row.open .kn-in { margin: 6px 0; background: #fff; box-shadow: var(--shadow-card); }
.kn-row.open .kn-head { padding: 12px 14px 0; }
.kn-row.open .kn-t { font-size: 15px; font-weight: 600; line-height: 22px; }
.kn-edit { outline: none; border-radius: 4px; box-shadow: 0 0 0 3px rgba(46, 124, 246, .16); background: #fff; cursor: text; }
.kn-body { padding: 4px 14px 14px 37px; }
.kn-detail { margin: 2px 0 0; color: #45474c; font-size: 14px; line-height: 21px; text-wrap: pretty; }
.kn-meta, .kn-card-m { margin-top: 8px; color: var(--mute); font-size: 12px; line-height: 17px; overflow-wrap: anywhere; }
/* Le point de séparation reste collé au mot qui le précède : il ne commence jamais une ligne */
.kn-meta > :not(:last-child)::after, .kn-card-m > :not(:last-child)::after { content: "\00a0\00a0·"; margin-right: 4px; color: var(--faint); }
.kn-was { margin-top: 2px; color: var(--mute-2); font-size: 12px; line-height: 17px; text-decoration: line-through; }
.kn-lab { display: flex; align-items: baseline; gap: 8px; margin: 16px 0 6px; color: var(--mute-2); font-size: 10.5px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }
.kn-lab span { text-transform: none; letter-spacing: 0; font-size: 12px; font-weight: 600; color: var(--mute); }
.kn-exs { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); gap: 8px; margin-top: 12px; }
.kn-ex { padding: 9px 11px 10px; border-radius: 8px; background: #f1f8f3; min-width: 0; }
.kn-ex.mauvais { background: #fdf2f4; }
.kn-ex-k { display: flex; align-items: center; gap: 5px; color: #2f9e5b; font-size: 10.5px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }
.kn-ex.mauvais .kn-ex-k { color: #c8284b; }
.kn-ex p { margin: 3px 0 0; color: var(--ink-2); font-size: 13.5px; line-height: 19px; overflow-wrap: anywhere; }
.kn code { display: inline-block; max-width: 100%; margin-top: 4px; color: #9a9da2; font: 500 11px/15px var(--mono, ui-monospace, Menlo, monospace); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; vertical-align: bottom; }
.kn-vals { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(210px, 100%), 1fr)); gap: 2px 16px; }
.kn-val { display: flex; align-items: center; gap: 8px; min-width: 0; min-height: 28px; }
.kn-val-s { flex: none; width: 20px; height: 20px; border-radius: 50%; box-shadow: inset 0 0 0 .5px rgba(0,0,0,.22); }
.kn-val-s.multi { display: inline-flex; flex-wrap: wrap; gap: 3px; width: auto; height: auto; border-radius: 0; box-shadow: none; }
.kn-val-s.multi i { width: 20px; height: 20px; border-radius: 50%; box-shadow: inset 0 0 0 .5px rgba(0,0,0,.22); }
.kn-val-s.ty { width: auto; min-width: 20px; height: auto; border-radius: 0; box-shadow: none; color: var(--ink); font-size: 15px; font-weight: 600; line-height: 20px; }
.kn-val-n { flex: 1; min-width: 0; color: var(--ink-2); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kn-val code { flex: none; margin: 0; max-width: 55%; color: #6f7277; }
.kn-val.wide { grid-column: 1 / -1; flex-wrap: wrap; gap: 4px 8px; padding: 3px 0; }
.kn-val.wide code { flex: 1 1 100%; max-width: 100%; }
.kn-proofs { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.kn-proofs li { min-width: 0; padding-left: 10px; border-left: 2px solid #e1e3e8; }
.kn-proofs q { display: block; color: var(--ink-2); font-size: 13.5px; line-height: 19px; quotes: "« " " »"; overflow-wrap: anywhere; }
.kn-proofs em { display: block; color: var(--mute); font-size: 13px; line-height: 19px; }
.kn-proofs li.more { border: 0; padding-left: 0; color: var(--mute-2); font-size: 12px; }
.kn-proof-m { display: block; margin-top: 1px; color: var(--mute-2); font-size: 12px; line-height: 16px; }
.kn-proof-m code { margin: 0; }
.kn-conf { display: flex; gap: 7px; margin-top: 14px; padding: 8px 10px; border-radius: 8px; background: #fff8e6; color: #7a5a12; font-size: 13px; line-height: 18px; }
.kn-conf svg { flex: none; margin-top: 3px; }
.kn-conf a { font-weight: 600; cursor: pointer; }
.kn-conf a:hover { text-decoration: underline; }
.kn-acts { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 16px; }
.kn-ask { margin-right: 4px; color: var(--mute); font-size: 13px; }

/* ───────── Ce que l'assistant reçoit pour un travail ───────── */
.kn-job { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; margin: 24px 0 0; color: var(--ink-2); font-size: 14px; }
.kn-job .kn-pick { height: 26px; background: var(--field); color: var(--ink); font-size: 14px; }
.kn-job small { flex: 1 1 100%; margin-top: 2px; color: var(--mute); font-size: 12.5px; line-height: 18px; }
.pf-count.pfs-todo.sel { box-shadow: inset 0 0 0 1.5px var(--ai); }

/* ───────── « À confirmer » : par petits lots, la réponse sur chaque carte ───────── */
.kn-rv-top { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 10px; margin-top: 0; }
.kn-back { margin-left: -6px; padding-left: 5px; }
.kn-rv-where { color: var(--ink-2); font-size: 13px; font-weight: 600; }
.kn-rv .kn-bar { margin-top: 10px; }
.kn-rv-prog { display: flex; align-items: center; gap: 10px; margin-top: 16px; color: var(--mute); font-size: 12px; font-weight: 600; }
.kn-rv-bar { flex: 1 1 0; max-width: 240px; height: 4px; border-radius: 2px; background: var(--field); overflow: hidden; }
.kn-rv-bar i { display: block; height: 100%; min-width: 0; border-radius: 2px; background: var(--ai); transition: width 300ms var(--ease); }
.kn-rv-h { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 8px 12px; margin-top: 22px; padding-bottom: 8px; border-bottom: 1px solid var(--hair); }
.kn-rv-hb { min-width: 0; }
.kn-rv-k { display: block; color: var(--mute-2); font-size: 12px; font-weight: 600; line-height: 17px; }
.kn-rv-h h3 { margin: 0; color: var(--blue); font-size: 14px; font-weight: 700; line-height: 21px; }
.kn-cards { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; margin-top: 14px; }
.kn-card { min-width: 0; }
.kn-card-in { border-radius: 10px; background: #f7f8fa; transition: background-color 200ms ease, box-shadow var(--t-open) ease; }
.kn-card.open .kn-card-in { background: #fff; box-shadow: var(--shadow-card); }
.kn-card-h { display: flex; align-items: flex-start; gap: 10px; padding: 14px 16px 0; }
.kn-card-h .kn-g { height: 22px; }
.kn-card-b { flex: 1 1 0; min-width: 0; }
.kn-card-k { color: var(--ink); font-size: 15px; font-weight: 600; line-height: 22px; letter-spacing: -.005em; text-wrap: pretty; overflow-wrap: anywhere; }
.kn-card-t { margin: 2px 0 0; color: #45474c; font-size: 14px; line-height: 21px; text-wrap: pretty; overflow-wrap: anywhere; }
.kn-card-b .kn-spec { margin: 10px 0 0; }
.kn-card-b .kn-exs { margin-top: 10px; }
.kn-card-b .kn-ex { background: #fff; box-shadow: inset 0 0 0 1px rgba(0,0,0,.06); }
.kn-card.open .kn-card-b .kn-ex { background: #f7f8fa; box-shadow: none; }
.kn-card-m { margin-top: 10px; }
.kn-card-m .cf { color: inherit; font: inherit; }
.kn-card-m .cf:hover { color: var(--ink-2); text-decoration: underline; }
.kn-card-m .cf svg { display: inline-block; margin-right: 4px; vertical-align: -1px; color: #d9a514; }
.kn-card-x { padding: 0 16px 0 40px; }
.kn-card-f { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 12px; padding: 12px 12px 14px 40px; }
.kn-ans { display: flex; flex-wrap: wrap; gap: 6px; }
.kn-ans .btn:not(.primary):not(.quiet):hover { box-shadow: inset 0 0 0 1px rgba(0,0,0,.2); }
.kn-why { display: inline-flex; align-items: center; gap: 4px; height: 24px; margin-left: auto; padding: 0 6px 0 8px; border-radius: 6px; color: var(--mute-2); font-size: 12.5px; font-weight: 600; transition: background-color 120ms, color 120ms; }
.kn-why:hover { background: #eceef1; color: #55565b; }
.kn-why svg { transition: transform 240ms var(--ease); }
.kn-card.open .kn-why svg { transform: rotate(180deg); }
.kn-card-f.said { justify-content: flex-start; min-height: 52px; animation: view-in 220ms ease both; }
.kn-said { color: var(--ink-2); font-size: 13px; font-weight: 500; line-height: 18px; }
.kn-said-x { flex-basis: 100%; color: var(--mute-2); font-size: 12.5px; line-height: 18px; text-decoration: line-through; }
.kn-card.is-non .kn-card-k { color: #a9abb0; text-decoration: line-through; text-decoration-color: #cfd1d5; }
.kn-card.is-non .kn-card-t { color: #a9abb0; }
.kn-card.is-non .kn-card-m { opacity: .6; }
.kn-rv-nav { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 18px; }
.kn-rv-end { display: grid; gap: 4px; justify-items: start; margin-top: 22px; padding: 18px 18px 18px; border-radius: 10px; background: #f7f8fa; }
.kn-rv-end b { color: var(--ink); font-size: 15px; font-weight: 600; line-height: 22px; }
.kn-rv-end > span { color: #55565b; font-size: 13.5px; line-height: 20px; }
.kn-rv-end .kn-ans { margin-top: 10px; }

/* ───────── Panneau étroit ───────── */
@container pfm (max-width: 519.98px) {
  .kn-bar { flex-wrap: wrap; row-gap: 8px; }
  .kn-bar .kn-filters { flex: 1 1 100%; }
  .kn-head { padding-left: 10px; padding-right: 10px; }
  .kn-fam-h { padding-left: 10px; padding-right: 10px; }
  .kn-more { margin-left: 25px; }
  .kn-row.open .kn-head { padding: 12px 12px 0; }
  .kn-body { padding: 4px 12px 14px 12px; }
  /* La portée d'un cas particulier passe sous la phrase */
  .kn-head { flex-wrap: wrap; }
  .kn-scope { flex: 1 1 100%; max-width: none; margin: 1px 0 0 23px; }
  .kn-card-h { padding: 12px 12px 0; }
  .kn-card-x { padding: 0 12px; }
  .kn-card-f { padding: 12px 12px 14px 12px; }
  .kn-why { margin-left: 0; }
}

/* ───────── Au doigt ───────── */
@media (max-width: 760px) {
  /* Ici les filtres passent à la ligne au lieu de défiler : les six domaines restent sous les yeux, et la page ne bouge jamais en largeur */
  .kn-bar { flex-wrap: wrap; row-gap: 6px; }
  .kn-bar .kn-filters { flex: 1 1 100%; flex-wrap: wrap; overflow: visible; margin: 0; padding: 0; gap: 6px 4px; }
  .kn-by { margin-left: -8px; }
  .kn-head { min-height: 40px; padding-top: 9px; padding-bottom: 9px; }
  .kn-t { font-size: 15.5px; line-height: 21px; }
  .kn-g { height: 21px; }
  .kn-f { font-size: 13px; }
  .kn-exl { font-size: 14px; line-height: 19px; }
  .kn-fam-h span { font-size: 14px; }
  .kn-more { height: 36px; font-size: 14px; }
  .kn-h-todo { font-size: 13px; }
  .kn-by, .kn-pick, .kn-back, .kn-why { height: 32px; font-size: 14px; }
  .kn-card-k { font-size: 16px; }
  .kn-card-t { font-size: 15px; }
  .kn-card-m { font-size: 13px; line-height: 18px; }
  .kn .btn { height: 34px; padding: 0 14px; font-size: 14.5px; }
}

/* Nouvelle préférence, arbitrage d'un conflit, « Toujours ainsi ? » (lot I8) */
.kn-new { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 11px; border: 1px solid var(--line); border-radius: 8px; background: transparent; color: var(--mute); font-size: 13px; cursor: pointer; white-space: nowrap; }
.kn-new:hover { color: var(--text); background: var(--hover); }
.kn-conf-a { display: inline-flex; flex-wrap: wrap; gap: 4px; margin-left: 8px; }
.kn-prop { position: fixed; right: 20px; bottom: 88px; z-index: 60; width: min(360px, calc(100vw - 32px)); padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg); box-shadow: 0 8px 28px rgba(0, 0, 0, .12); opacity: 0; transform: translateY(8px); transition: opacity .2s, transform .2s; }
.kn-prop.in { opacity: 1; transform: none; }
.kn-prop b { font-size: 13px; font-weight: 600; }
.kn-prop p { margin: 6px 0 10px; font-size: 14px; line-height: 1.45; color: var(--text); }
.kn-prop-a { display: flex; flex-wrap: wrap; gap: 6px; }
@media (max-width: 767px) { .kn-prop { right: 16px; left: 16px; width: auto; bottom: 76px; } }

/* ── src/css/80-reglages.css ── */
/* Lot I9 : Réglages en mode réel. Même fenêtre que la maquette, plus large et plus haute pour neuf sections. */
.modal.rg { width: min(860px, 94vw); height: min(640px, 90vh); }
.modal.rg .modal-tabs { justify-content: flex-start; overflow-x: auto; scrollbar-width: none; padding-left: 70px; }
.modal.rg .modal-tabs::-webkit-scrollbar { display: none; }
.modal.rg .modal-tab { flex: none; min-width: 70px; }
.modal.rg .modal-tab span { white-space: nowrap; }

.rg-in {
  height: 22px; min-width: 0; width: 240px; max-width: 100%; padding: 0 8px; border: 0; border-radius: 6px; background: #fff; outline: none;
  box-shadow: 0 0 0 .5px rgba(0,0,0,.16), 0 1px 1.5px rgba(0,0,0,.10); color: var(--ink-2); font-size: 13px; user-select: text; -webkit-user-select: text;
}
.rg-in:focus { box-shadow: 0 0 0 1.5px var(--blue, #3f8ae0); }
.rg-in::placeholder { color: #a9abb0; }
.rg-heure { width: 118px; }
.rg-num { width: 78px; }
.rg-chemin { display: block; margin-top: 6px; }
.rg-mono { font: 500 12px/18px var(--mono); letter-spacing: -.01em; color: var(--ink-2); }
input.rg-mono { font-size: 12px; }
.conn b .rg-mono { font-weight: 500; color: var(--mute); margin-left: 6px; }
.rg-adr { display: inline-block; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; vertical-align: middle; }
.rg-essai { color: var(--mute); }
.rg-essai.ko { color: #a2603a; }
.rg-role .conn-ico, .rg-aire .conn-ico { font-size: 11px; }
.rg-aires { margin-top: -6px; }
.rg-aires .conn .pg-sel { min-width: 150px; margin-left: auto; flex: none; }
.rg-jours { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 6px; color: var(--mute); font-size: 12px; }
.rg-jours i { font-style: normal; color: var(--mute-2); margin-right: 5px; }
.rg-stats { display: flex; flex-wrap: wrap; gap: 8px 22px; padding: 6px 0 2px; font-size: 12px; color: var(--mute); }
.rg-stats span { display: inline-flex; align-items: baseline; gap: 6px; }
.rg-stats b { font-size: 15px; font-weight: 600; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.rg-objets { padding-top: 2px; }
.rg-fichier { position: relative; overflow: hidden; cursor: pointer; }
.rg-fichier input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.rg-regles { display: grid; gap: 6px; }
.rg-regle { display: flex; align-items: center; gap: 6px; }
.rg-regle .rg-in { width: 160px; }
.rg-regle .pg-sel { min-width: 130px; }
.rg-x { width: 24px; padding: 0; justify-content: center; }
.rg-regles > .btn { justify-self: start; }
.rg-prog { height: 4px; margin-top: 8px; border-radius: 2px; background: var(--hair); overflow: hidden; max-width: 320px; }
.rg-prog i { display: block; height: 100%; background: var(--check); transition: width 400ms var(--ease); }
.rg-etapes { margin: 8px 0 0; padding-left: 18px; color: var(--ink-2); font-size: 12.5px; line-height: 18px; }
.rg-etapes li + li { margin-top: 3px; }
.rg-journal .conn { align-items: flex-start; }
.rg-j.off b { color: var(--mute); text-decoration: line-through; text-decoration-color: rgba(0,0,0,.25); }
.rg-plus { margin-top: 8px; }
.conn.imp-vise { background: var(--field); border-radius: 6px; transition: background-color 1.2s ease; }

@media (max-width: 767px) {
  .modal.rg { width: 100vw; height: 100vh; height: 100dvh; }
  .modal.rg .modal-tabs { padding-left: 52px; }
  .modal.rg .set-row { flex-direction: column; gap: 6px; }
  .modal.rg .set-row > label { width: auto; text-align: left; font-weight: 600; }
  .rg-in { width: 100%; height: 36px; font-size: 16px; }
  .rg-heure, .rg-num { width: 120px; }
  .modal.rg .btn, .modal.rg .pg-sel { min-height: 34px; }
  .rg-regle .rg-in { flex: 1; width: auto; min-width: 0; }
  .rg-regle .pg-sel { min-width: 118px; }
  .modal.rg .set-row > div { min-width: 0; max-width: 100%; }
  .rg-aires .conn .pg-sel { min-width: 0; max-width: 46%; }
  .rg-aires .conn .pg-sel span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
}
.rg-nom { font-size: 13px; color: var(--ink-2); margin-right: 6px; }
.modal.rg .btn[disabled] { opacity: .45; cursor: default; }

/* R10 : au téléphone, les champs passent en 16 px (90-mobile.css, contre le zoom de Safari) ; à 22 px de haut, le texte touchait
   les bords. Même hauteur que les autres champs du téléphone. */
@media (max-width: 760px) {
  .rg-in { height: 34px; padding: 0 10px; border-radius: 8px; }
  .rg-heure { width: 132px; }
  .rg-num { width: 92px; }
}

/* Lot R13 : la ligne « Heures de travail » (début à fin, puis la pause), deux champs d'heure par ligne */
.rg-a { margin: 0 7px; color: var(--mute); font-size: 13px; }
.rg-heures { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 0; margin-top: 6px; color: var(--mute); font-size: 13px; }
.rg-heures > span:first-child { margin-right: 7px; }
.set-row .rg-heures .rg-heure, .set-row > div > .rg-heure { width: 96px; }

/* ── src/css/85-mise-en-route.css ── */
/* Lot I11 : la mise en route. Une colonne calme au-dessus de l'application, les composants de la maquette (btn, pg-sel, conn). */
.mer { position: fixed; inset: 0; z-index: 900; background: var(--bg); display: flex; justify-content: center; overflow: hidden; }
.mer-col { width: min(560px, 100%); height: 100%; display: flex; flex-direction: column; }
.mer-h { display: flex; align-items: center; justify-content: space-between; padding: 22px 24px 0; }
.mer-pas { display: inline-flex; gap: 6px; }
.mer-pas i { width: 6px; height: 6px; border-radius: 50%; background: var(--hair); }
.mer-pas i.fait { background: var(--faint); }
.mer-pas i.ici { background: var(--ink-2); }
.mer-x { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 6px; color: var(--mute); }
.mer-x:hover { background: rgba(0,0,0,.04); color: var(--ink-2); }
.mer-corps { flex: 1; overflow-y: auto; padding: 28px 24px 24px; -webkit-overflow-scrolling: touch; }
.mer-corps h2 { margin: 0 0 4px; font-size: 20px; font-weight: 700; color: var(--ink); letter-spacing: -.01em; }
.mer-sous { margin: 0 0 22px; font-size: 13px; line-height: 19px; color: var(--mute); }
.mer-note { margin: 18px 0 0; font-size: 12.5px; color: var(--mute); }
.mer-err { margin: 14px 0 0; font-size: 12.5px; color: #a2603a; }
.mer-champ { display: grid; grid-template-columns: 150px 1fr; gap: 6px 16px; align-items: start; padding: 10px 0; border-top: 1px solid var(--hair-soft); }
.mer-champ:first-of-type { border-top: 0; }
.mer-champ > label { padding-top: 4px; font-size: 13px; font-weight: 600; color: var(--ink-2); }
.mer-champ > div { min-width: 0; }
.mer-champ small, .mer-aide { display: block; margin-top: 5px; font-size: 12px; line-height: 17px; color: var(--mute); }
.mer-in {
  width: 100%; min-height: 28px; padding: 4px 9px; border: 0; border-radius: 6px; background: #fff; outline: none; font: inherit; font-size: 13px; color: var(--ink-2);
  box-shadow: 0 0 0 .5px rgba(0,0,0,.16), 0 1px 1.5px rgba(0,0,0,.10); user-select: text; -webkit-user-select: text;
}
.mer-in:focus { box-shadow: 0 0 0 1.5px var(--check); }
.mer-in::placeholder { color: #a9abb0; }
.mer-heure { width: 120px; }
.mer-zone { resize: vertical; line-height: 19px; padding-top: 6px; }
.mer .pg-sel { max-width: 100%; }
.mer-fichier { position: relative; overflow: hidden; cursor: pointer; margin: 0 6px 4px 0; }
.mer-fichier input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.mer-fichier-nom { font-size: 13px; color: var(--ink-2); }
.mer-regles { display: grid; gap: 6px; }
.mer-regle { display: flex; align-items: center; gap: 6px; }
.mer-regle .mer-in { flex: 1; }
.mer-regle .pg-sel { width: 128px; flex: none; justify-content: space-between; }
.mer-moins { width: 26px; padding: 0; justify-content: center; }
.mer-regles > .btn { justify-self: start; }
.mer-acts { display: flex; align-items: center; gap: 10px; margin-top: 14px; }
.mer-acts small { margin: 0; color: var(--mute); font-size: 12px; }
.mer-rapport { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 16px; font-size: 12px; color: var(--mute); }
.mer-rapport span { display: inline-flex; align-items: baseline; gap: 6px; }
.mer-rapport b { font-size: 16px; font-weight: 600; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.mer-prog { height: 4px; margin-top: 16px; border-radius: 2px; background: var(--hair); overflow: hidden; }
.mer-prog i { display: block; height: 100%; background: var(--check); transition: width 400ms var(--ease, ease); }
.mer-q { padding: 12px 0; border-top: 1px solid var(--hair-soft); }
.mer-q:first-of-type { border-top: 0; padding-top: 0; }
.mer-q-l { display: block; margin-bottom: 8px; font-size: 13px; font-weight: 600; color: var(--ink-2); }
.mer-choix { display: flex; flex-wrap: wrap; gap: 6px; }
.mer-c { display: inline-flex; align-items: baseline; gap: 6px; min-height: 28px; padding: 4px 11px; border-radius: 14px; font-size: 13px; color: var(--ink-2); background: var(--field); }
.mer-c em { font-style: normal; font-size: 11px; color: var(--mute); }
.mer-c.on { background: var(--ai-soft); color: var(--ai-ink); box-shadow: inset 0 0 0 1px var(--ai-line); }
.mer-c.on em { color: var(--ai-ink); opacity: .75; }
.mer-c-non { color: var(--mute); background: transparent; }
.mer-c-non.on { background: var(--field); color: var(--ink-2); box-shadow: none; }
.mer-outils .pg-conns { margin-bottom: 4px; }
.mer-outils .set-h { margin-top: 18px; }
.mer-outils .imp-q { width: 100%; }
.mer-pied { display: flex; align-items: center; gap: 8px; padding: 14px 24px calc(18px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--hair-soft); background: var(--bg); }
.mer-esp { flex: 1; }
.mer-ok { min-width: 110px; justify-content: center; }
.mer-ok[disabled] { opacity: .6; }
html.mer-on .pop-layer { z-index: 1000; }
html.mer-on .modal-back { z-index: 950; }
html.mer-on .toast { z-index: 1001; }

@media (max-width: 767px) {
  .mer-h { padding: calc(14px + env(safe-area-inset-top, 0px)) 16px 0; }
  .mer-x { width: 44px; height: 44px; margin-right: -10px; }
  .mer-corps { padding: 20px 16px 20px; }
  .mer-champ { grid-template-columns: 1fr; gap: 6px; }
  .mer-champ > label { padding-top: 0; }
  .mer-in { min-height: 40px; font-size: 16px; }
  .mer .btn, .mer .pg-sel { min-height: 40px; }
  .mer-c { min-height: 38px; padding: 8px 13px; font-size: 14px; }
  .mer-moins { width: 40px; }
  .mer-regle .pg-sel { min-width: 0; width: 124px; justify-content: space-between; }
  .mer-pied { padding: 10px 16px calc(12px + env(safe-area-inset-bottom, 0px)); }
}
.mer-case { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink-2); cursor: pointer; min-height: 32px; }
.mer-case input { width: 16px; height: 16px; margin: 0; accent-color: var(--ink); }

/* rapport d'import : une ligne de compte, le détail dépliable (Réglages et « Ton coffre ») */
.imp-det { display: block; margin-top: 6px; font-size: 12px; line-height: 17px; color: var(--mute); }
.imp-det summary { cursor: pointer; list-style: none; }
.imp-det summary::-webkit-details-marker { display: none; }
.imp-det summary::after { content: ' ›'; }
.imp-det[open] summary::after { content: ' ‹'; }
.imp-det ul { margin: 4px 0 0; padding-left: 16px; overflow-wrap: anywhere; }
.imp-det li { margin: 2px 0; }

/* ── src/css/90-mobile.css ── */
/* v8 — Téléphone (largeur ≤ 760 px). La maquette reste la même ; seule la disposition change. */
@media (max-width: 760px) {
  :root { --side-w: min(312px, 86vw); }
  html, body { overscroll-behavior: none; }
  #app { height: 100vh; height: 100dvh; }
  kbd, .kbd { display: none !important; }
  input, textarea, [contenteditable] { font-size: 16px !important; }

  /* ── Barre de gauche : un tiroir ── */
  .sb {
    position: fixed; top: 0; bottom: 0; left: 0; width: var(--side-w); z-index: 70; margin-left: 0 !important;
    transform: translateX(-104%); transition: transform 280ms var(--ease); padding-top: env(safe-area-inset-top);
  }
  #app.m-nav .sb { transform: none; box-shadow: 0 0 44px rgba(16, 20, 28, .28); }
  .m-scrim { position: fixed; inset: 0; z-index: 65; background: rgba(20, 24, 32, .3); opacity: 0; pointer-events: none; transition: opacity 240ms ease; }
  #app.m-nav .m-scrim { opacity: 1; pointer-events: auto; }
  .sb-top { height: 12px; }
  .sb-top .tl { display: none; }
  .sb-row { height: 36px; font-size: 16px; gap: 10px; padding: 0 10px; border-radius: 8px; }
  .sb-row.conv { height: 32px; font-size: 15px; }
  .sb-row.lib { padding-left: 30px; }
  .sb-search { height: 38px !important; font-size: 16px !important; }
  .sb-space-h { height: 30px; }
  .sb-notes { display: none; }
  .sb-foot { height: calc(48px + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom); font-size: 15px; }

  /* ── Zone centrale : un seul panneau, le dernier ouvert ── */
  .ws .pane-div { display: none !important; }
  .ws.has-drawer .pane.view { flex: 1 1 auto; min-width: 0; }
  .drawer { position: fixed; inset: 0; z-index: 58; flex: none !important; width: 100%; padding-top: env(safe-area-inset-top); background: #f1f2f4; }
  .dr-row { padding: 0 !important; gap: 0; }
  .dr-row > .pane { flex: 1 1 100% !important; border-radius: 0; box-shadow: none; }
  .dr-bar { height: 44px; padding: 0 6px; }
  .dr-tab { height: 34px; font-size: 14px; flex-basis: 150px; }
  .dr-tab-x { display: none !important; }
  .dr-tabs { flex: 1 1 auto; }
  .dr-tab { flex: 0 0 auto; max-width: 180px; }
  .lay-btn { display: none; }
  .view-rail, .ws.notes-only > .pane.view { display: flex; }
  .ws.notes-only > .view-rail { display: none; }
  [data-act="focusNotes"] { display: none; }
  .drawer .pane-top { height: 40px; padding-top: 0; }
  .m-dr-bar { flex: none; display: flex; align-items: center; gap: 8px; height: 44px; padding: 0 12px 0 6px; border-bottom: 1px solid var(--hair-soft); }
  .m-dr-back { display: inline-flex; align-items: center; gap: 4px; height: 36px; padding: 0 10px 0 6px; border-radius: 8px; color: var(--ai-ink); font-size: 16px; font-weight: 600; }
  .m-dr-n { margin-left: auto; color: var(--mute-2); font-size: 12px; }
  .pane-top { height: calc(48px + env(safe-area-inset-top)); padding: env(safe-area-inset-top) 8px 0 8px; }
  .icon-btn { width: 38px; height: 36px; }
  .col { max-width: none; padding: 0 18px 120px; }
  .col.wide { max-width: none; padding-left: 18px; padding-right: 18px; }
  .ws.multi:not(.solo) .col, .ws.n3:not(.solo) .col { padding-left: 18px; padding-right: 18px; }
  .col.pl-col, .col.bd-col, .ws.multi:not(.solo) .col.pl-col, .ws.multi:not(.solo) .col.bd-col { padding: 0 14px; }
  .col.pf-col { padding-left: 16px; padding-right: 16px; }
  .ws .pane .main-scroll .col.jr-col { padding-left: 18px; padding-right: 18px; }
  .col.chat-col, .ws.multi:not(.solo) .col.chat-col { padding: 0; }
  .lh { margin-top: 6px; }
  .lh-title, .ws.multi:not(.solo) .lh-title { font-size: 24px; line-height: 30px; }
  .pane.note .r-in, .ws.n3 .pane.note .r-in { padding: 4px 18px 90px; }
  .filters { flex-wrap: nowrap; overflow-x: auto; margin-left: -18px; margin-right: -18px; padding: 0 18px; scrollbar-width: none; }
  .filters::-webkit-scrollbar { display: none; }
  .filters .pill { flex: none; height: 28px; padding: 0 12px; font-size: 14px; }
  /* Recherche de page (Compétences, Ressources) : à la hauteur des filtres, et le champ ouvert prend la place libre au lieu de sortir de l'écran (R19b) */
  .filters .pg-search { flex: 0 1 132px; min-width: 96px; width: auto; height: 28px; }
  .filters .pg-search:focus-within { flex: 1 1 132px; width: auto; }

  /* Tâches : des cibles au doigt */
  .task-head { min-height: 40px; }
  .t-title { font-size: 16px; }
  .task .t-title ~ .t-ico, .task .tag-o { opacity: 1; }
  .task .tag-o { display: none; }

  /* ── Barre de droite : plein écran, par-dessus ── */
  .panel {
    position: fixed; inset: 0; z-index: 60; width: 100% !important; transform: translateY(102%);
    transition: transform 320ms var(--ease); box-shadow: none !important; background: var(--sidebar); padding-top: env(safe-area-inset-top);
  }
  .panel.open { transform: none; }
  .panel-in, .panel.reading .panel-in { width: 100% !important; margin-left: 0; }
  .m-close { margin-left: auto; flex: none; }
  .trow { min-height: 44px; }

  /* ── Barre du bas ── */
  .toolbar { height: calc(54px + env(safe-area-inset-bottom)); padding: 0 4px env(safe-area-inset-bottom); gap: 0; }
  .tb-btn { width: 40px; height: 38px; }
  .ask-slot { margin: 0 4px; }
  .chat-pop { bottom: calc(9px + env(safe-area-inset-bottom)); width: calc(100% - 176px); }
  .chat-pop.focus, .chat-pop.open, .chat-pop.big.open { width: calc(100% - 16px); }
  .cp-card-in { max-height: calc(100vh - 170px); max-height: calc(100dvh - 170px); }
  .cp-bar.composer { min-height: 38px; }

  /* ── Menus, fenêtres ── */
  .menu { max-width: calc(100vw - 16px); max-height: calc(100dvh - 32px); overflow-y: auto; }
  .menu-it { min-height: 40px; font-size: 16px; }
}
@media (max-width: 760px) {
  /* ── Vue Chat : liste, puis conversation ── */
  .cf-side { width: 100%; border-right: 0; padding: calc(52px + env(safe-area-inset-top)) 12px 0; }
  .chat-full:not(.m-conv) .cf-main { display: none; }
  .chat-full.m-conv .cf-side { display: none; }
  .cf-head { justify-content: flex-start; padding: env(safe-area-inset-top) 88px 0 46px; gap: 2px; height: calc(48px + env(safe-area-inset-top)); }
  .cf-head .cs-title { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .cf-main .c-msgs { padding: 10px 16px; }
  .cf-main .composer { margin: 8px 12px 14px; }
  .cf-row, .cf-new { min-height: 44px; }

  /* ── Planning, Board : l'en-tête passe sur deux lignes ── */
  .pl-head, .bd-head { flex-wrap: wrap; row-gap: 10px; }
  .pl-head .lh-title, .bd-head .lh-title { flex: 1 1 auto; }
  .pl-head .seg, .bd-head .seg { max-width: 100%; overflow-x: auto; scrollbar-width: none; }
  .bd-cols { grid-template-columns: repeat(5, 78vw); scroll-snap-type: x mandatory; }
  .bd-cols > * { scroll-snap-align: start; }

  /* ── Compétences ── */
  .pg-sk-toks { display: none; }
  .pg-sk-id { max-width: 46%; }
}
@media (max-width: 760px) {
  /* ── Chat du bas, ouvert ou en saisie : le texte sur sa ligne, les boutons dessous ── */
  .chat-pop.focus .cp-bar.composer, .chat-pop.open .cp-bar.composer { flex-wrap: wrap; padding: 6px 8px 6px 12px; row-gap: 2px; }
  .chat-pop.focus .cp-bar .c-input, .chat-pop.open .cp-bar .c-input { flex: 1 1 calc(100% - 30px); }
  .chat-pop.focus .cp-bar .c-bar, .chat-pop.open .cp-bar .c-bar { flex: 1 1 100%; justify-content: flex-end; height: 34px; }
  .chat-pop.focus .cp-bar .ctx-chip, .chat-pop.open .cp-bar .ctx-chip { margin-right: auto; }
  .cp-bar .c-btn, .cp-bar .c-send { width: 36px; height: 34px; }
  /* R16 : la rangée tient dans la carte ; c'est la puce de contexte qui cède (ellipse), jamais les boutons ni l'envoi */
  .chat-pop .cp-bar .c-bar { min-width: 0; }
  .chat-pop .cp-bar .c-bar > .c-btn, .chat-pop .cp-bar .c-bar > .c-send { flex: none; }
  .chat-pop .cp-bar .c-bar > .ctx-chip { min-width: 0; flex: 0 1 auto; }
  .chat-pop .c-msgs { padding: 14px 14px 10px; }

  /* ── Réglages : plein écran ── */
  .modal { width: 100vw; height: 100vh; height: 100dvh; border-radius: 0; }
  .modal-tabs { justify-content: flex-start; overflow-x: auto; scrollbar-width: none; padding: calc(10px + env(safe-area-inset-top)) 12px 8px 52px; }
  .modal-tabs::-webkit-scrollbar { display: none; }
  .modal-tab { flex: none; }
  .modal-tabs .tl-row { left: 10px; top: calc(20px + env(safe-area-inset-top)); }
  .modal-tabs .tl-row i:not(:first-child) { display: none; }
  .modal-tabs .tl-row i:first-child { width: 32px; height: 32px; background: #e6e7ea; display: grid; place-items: center; }
  .modal-tabs .tl-row i:first-child::before { content: "×"; font-style: normal; font-size: 20px; line-height: 1; color: #5f6168; }
  .modal-body { padding: 16px 18px calc(28px + env(safe-area-inset-bottom)); }
  .set-row { flex-direction: column; gap: 5px; }
  .set-row > label { width: auto; text-align: left; font-weight: 600; padding-top: 0; }

  /* ── Fenêtres flottantes : jamais plus larges que l'écran ── */
  .pop-layer, .pal { max-width: calc(100vw - 16px); }
}
.m-back { display: none; }
@media (max-width: 760px) { .m-back { display: grid; } }
.m-scrim { display: none; }
.m-close { display: none; }
@media (max-width: 760px) {
  .m-scrim { display: block; }
  .m-close { display: grid; }
}

/* Lot I10 — au doigt : cibles, pincement, menus du système. Les commandes plus petites que 44 px gardent leur dessin :
   leur zone de toucher est agrandie par 90-mobile.js (un toucher à moins de 22 px de leur centre les déclenche). */
@media (max-width: 760px) {
  html { touch-action: pan-x pan-y; -webkit-text-size-adjust: 100%; }        /* pincer nulle part */
  body { -webkit-touch-callout: none; -webkit-tap-highlight-color: transparent; }
  img { -webkit-user-drag: none; }
  /* R4 : les commandes gardent la taille de la maquette au téléphone (boutons d'icône 38 × 36, barre du bas 40 × 38, lignes de
     Semaine 25 px…). Leur zone de toucher fait 44 px par 90-mobile.js (Q.mVoisine) et, pour les commandes isolées, par un ::after. */
  /* au doigt, ce qui apparaît au survol apparaît au toucher de la ligne (90-mobile.js) */
  .pf-s.m-survol .pf-s-acts { opacity: 1; pointer-events: auto; }
  .pf-s.m-survol:has(.pf-s-acts) .pf-s-m { opacity: 0; pointer-events: none; }
  li.m-survol > .po-rl-b, li.m-survol > .po-cx-b { opacity: 1; }
  .po-j-w.m-survol .po-j-undo { opacity: 1; background: var(--field); }
  /* conversation ouverte dans le tiroir : la puce de contexte cède la place aux boutons */
  .drawer .composer .ctx-chip { min-width: 0; flex-shrink: 1; }
  .drawer:has(.composer:focus-within) { bottom: var(--qd-clavier, 0px); }      /* clavier ouvert : le compositeur reste au-dessus (42-direct.js mesure le clavier) */
  /* barre du bas : un seul trombone. En dépôt, « Joindre » (photo, fichier, dictée, lieu) ; dans une conversation, la pièce jointe du message */
  .chat-pop:not(.open) .cp-bar .c-bar [data-act="chatJoindre"] { display: none; }
  .chat-pop.open .cp-bar .c-bar .m-joindre { display: none; }
  /* barre du bas au repos dans une aire : la puce de l'aire prend la place, le champ garde la sienne (comme la maquette) ;
     « Joindre » revient dès que la barre a le focus (R4) */
  .chat-pop:not(.focus):not(.open) .cp-bar .c-bar:has(.ctx-chip:not(.none)) .m-joindre { display: none; }
  /* Réglages : une heure au format 12 h tient dans son champ */
  .modal .rg-heure { width: 150px; }
  /* de très petites commandes isolées : la zone de toucher déborde le dessin (sans le changer) */
  .cap-head .sw, .pl-nav [data-act="plNav"]:not(.pl-today), .pg-cap-r .mini { position: relative; }
  /* ::before et non ::after : le ::after d'un interrupteur est son bouton rond (R4) */
  .cap-head .sw::before, .pl-nav [data-act="plNav"]:not(.pl-today)::before, .pg-cap-r .mini::before { content: ''; position: absolute; inset: -12px -8px; }
  /* les flèches de semaine : la zone déborde surtout vers l'extérieur, « Aujourd'hui » garde la sienne (R4) */
  .pl-nav [data-n="-1"]::before { inset: -12px -3px -12px -16px; }
  .pl-nav [data-n="1"]::before { inset: -12px -16px -12px -3px; }
  .pl-nav .pl-today { position: relative; }
  .pl-nav .pl-today::before { content: ''; position: absolute; inset: -10px 0; }
  /* boutons modifier et retirer d'une ressource (ajout du lot I7, absents de la maquette) : dessin de la maquette (24 px), zone de
     toucher agrandie sans prendre de place (R16 : à 36 px, ils réduisaient le titre de 64 px et le coupaient en ellipse) */
  .pg-rw .tr-open { position: relative; }
  .pg-rw .tr-open + .tr-open { margin-left: 6px; }
  .pg-rw .tr-open::before { content: ''; position: absolute; inset: -10px -3px; }
  /* les boutons d'en-tête gardent leur dessin ; leur zone descend jusqu'au bas de la barre */
  .pane-top .icon-btn { position: relative; }
  .pane-top .icon-btn::before { content: ''; position: absolute; inset: -6px 0; }
  /* « Annuler » d'une correction de la clôture du soir (ajout du lot I4) : à la taille du doigt sans grandir la ligne */
  .jr-undo { min-height: 36px; margin-top: -8px; margin-bottom: -8px; }
  /* fiche personne : les gestes du lot I7 passent sous le nom au lieu de lui prendre sa largeur (R4) */
  .pg-ph { flex-wrap: wrap; row-gap: 6px; }
  .pg-ph-main { flex: 1 1 0; }
  .pg-ph-acts { flex: none; order: 3; width: calc(100% - 58px); margin-left: 58px; }
}

/* Lot I10 — balayer une tâche, tirer pour rafraîchir (91-mobile-gestes.js). Couleurs sobres : rien ne crie. */
.m-sw, .m-ptr { display: none; }
@media (max-width: 760px) {
  .task.m-swiping { position: relative; overflow: hidden; }
  .task.m-swiping .task-head { position: relative; z-index: 1; background: var(--bg, #fff); }
  .m-sw { position: absolute; inset: 0; display: flex; align-items: center; justify-content: space-between; padding: 0 16px; color: var(--mute-2); font-size: 14px; background: var(--field); border-radius: 5px; }
  .m-sw span { display: inline-flex; align-items: center; gap: 6px; opacity: .55; transition: opacity 120ms; }
  .m-sw b { font-weight: 600; }
  .task.m-sw-g .m-sw-d, .task.m-sw-d .m-sw-g { visibility: hidden; }
  .task.m-sw-ok .m-sw span { opacity: 1; color: var(--ink-2); }
  .task.m-sw-ok.m-sw-g .m-sw { background: var(--ai-soft); }
  .m-ptr { position: fixed; top: calc(env(safe-area-inset-top) + 8px); left: 50%; z-index: 80; display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px;
    border-radius: 16px; background: #fff; box-shadow: 0 1px 6px rgba(16, 20, 28, .14); color: var(--mute-2); font-size: 13px; transform: translate(-50%, -60px); opacity: 0; pointer-events: none; transition: opacity 150ms; }
  .m-ptr.m-ptr-on { display: inline-flex; opacity: 1; }
  .m-ptr:not(.m-ptr-run) { transition: opacity 150ms, transform 0ms; }
  .m-ptr-i { display: grid; transform: rotate(90deg); transition: transform 160ms; }
  .m-ptr.m-ptr-ok .m-ptr-i { transform: rotate(-90deg); }
  .m-ptr.m-ptr-run .m-ptr-i { animation: spin 900ms linear infinite; }
}

/* Lot I10 — capture rapide (92-capture-mobile.js) : « Joindre » dans la barre, dictée en cours */
.m-joindre, .m-rec { display: none; }
/* R6 : au bureau, la barre ouverte affiche tous ses .c-btn ; « Joindre » doublait alors le trombone de la conversation */
@media (min-width: 761px) { .chat-pop .cp-bar .c-bar .m-joindre, .chat-pop.focus .cp-bar .c-bar .m-joindre, .chat-pop.open .cp-bar .c-bar .m-joindre { display: none; } }
@media (max-width: 760px) {
  .chat-pop .cp-bar .c-bar .m-joindre { display: grid; }
  .m-rec { position: fixed; left: 8px; right: 8px; bottom: calc(62px + env(safe-area-inset-bottom)); z-index: 75; display: flex; align-items: center; gap: 8px;
    height: 52px; padding: 0 6px 0 14px; border-radius: 14px; background: #fff; box-shadow: 0 2px 14px rgba(16, 20, 28, .16); font-size: 15px; }
  .m-rec-p { width: 9px; height: 9px; border-radius: 50%; background: var(--red); animation: m-rec-p 1.2s ease-in-out infinite; flex: none; }
  @keyframes m-rec-p { 50% { opacity: .35; } }
  .m-rec time { color: var(--mute-2); font-variant-numeric: tabular-nums; }
  .m-rec-sp { flex: 1; }
  .m-rec button { height: 44px; padding: 0 14px; border-radius: 10px; font-size: 15px; font-weight: 600; }
  .m-rec-x { color: var(--mute-2); }
  .m-rec-ok { background: var(--ai-soft); color: var(--ai-ink); }
}

/* Lot I10 — hors ligne (93-hors-ligne.js) : un mot gris, en petit, jamais d'alerte */
.hl-etat { position: fixed; top: calc(env(safe-area-inset-top) + 6px); left: 50%; transform: translateX(-50%); z-index: 90; height: 24px; padding: 0 10px;
  display: inline-flex; align-items: center; border-radius: 12px; background: rgba(240, 241, 243, .96); color: var(--mute-2); font-size: 12px; pointer-events: none; }
.hl-boot .hl-boot-p { color: var(--mute-2); margin: 6px 0 14px; }
.hl-boot .hl-boot-t { width: 100%; box-sizing: border-box; border: 1px solid var(--hair); border-radius: 10px; padding: 10px 12px; font: inherit; font-size: 16px; resize: vertical; }
.hl-boot .hl-boot-b { display: flex; gap: 8px; margin-top: 10px; align-items: center; }
.hl-boot .hl-boot-f { display: inline-flex; align-items: center; height: 44px; padding: 0 14px; border-radius: 10px; background: var(--field); cursor: pointer; }
.hl-boot .hl-boot-n { color: var(--mute-2); font-size: 13px; min-height: 18px; }
.hl-boot .hl-boot-r { background: none; color: var(--mute-2); }
@media (max-width: 760px) { .hl-etat { top: calc(env(safe-area-inset-top) + 12px); } }
/* Lot R10 : au téléphone, l'avis tient sur deux lignes au besoin (jamais tronqué), sa commande reste entière et touchable ;
   sa hauteur est posée par Q.mPlacerAvis (90-mobile.js), au-dessus de la barre du bas. */
@media (max-width: 760px) {
  .toast { left: 16px; right: 16px; width: fit-content; margin: 0 auto; transform: translateY(8px); max-width: calc(100vw - 32px); white-space: normal; text-overflow: clip; overflow: visible; line-height: 1.35; }
  .toast.in { transform: none; }
  .toast.qp-toast span { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; min-width: 0; }
  .qp-toast button, .toast-act { position: relative; flex: none; }
  .qp-toast button::before, .toast-act::before { content: ''; position: absolute; inset: -10px -6px; }
}
/* Lot R12 : dans un projet, la barre du bas fermée, centrée comme dans la maquette (88 px de chaque côté), couvrait le
   troisième bouton de gauche, « Nouveau titre de section » (84 à 124 px), seul moyen d'ajouter une section : au doigt, il
   était inatteignable. La barre commence après lui (128 px) et finit au même endroit (88 px du bord droit). Ailleurs, ce
   bouton est désactivé : la barre garde la place de la maquette. Ouverte ou en saisie, elle reprend toute la largeur.
   Plus étroite, elle ne tiendrait plus la puce du projet et le champ : le champ tombait à 0 px, et c'est en le touchant que la
   barre s'ouvre. Fermée, elle laisse donc la puce de côté (le titre de la page nomme déjà le projet), comme la maquette le fait
   quand la dictée est en cours ; la puce revient dès que la barre s'ouvre. */
@media (max-width: 760px) {
  #app:has(.toolbar [data-act="newHeading"]:not([disabled])) .chat-pop:not(.focus):not(.open) { left: 128px; transform: none; width: calc(100% - 216px); }
  #app:has(.toolbar [data-act="newHeading"]:not([disabled])) .chat-pop:not(.focus):not(.open) .c-bar .ctx-chip { display: none; }
}
/* Lot R12 (reprise) : ligne de tâche au téléphone. Une ligne qui porte une date, une pastille de l'assistant (ou l'état d'envoi,
   R10) et une échéance ne laissait au titre que 0 à 50 px (« P… ») : la maquette fait de même (34 px mesurés), la pastille
   « pas encore parti » aggrave. Hors d'Aujourd'hui (qui a sa propre mise en page, 49-today.css) et hors carte ouverte : le titre
   partage la ligne avec la date et en garde au moins la moitié ; les pastilles passent dessous, comme dans Aujourd'hui ; le
   drapeau d'échéance reste sur la ligne s'il y tient, sinon il passe dessous, à droite. */
@media (max-width: 760px) {
  .task:not(.open):not(.td .task) .task-head { flex-wrap: wrap; row-gap: 2px; padding: 3px 0; }
  .task:not(.open):not(.td .task) :is(.t-main, .t-line) { display: contents; }
  .task:not(.open):not(.td .task) .t-line > * { position: relative; z-index: 1; }
  .task:not(.open):not(.td .task) .t-line > .t-ico:first-child { margin-right: 6px; }
  .task:not(.open):not(.td .task) .t-title { flex: 1 1 0; min-width: 50%; }
  .task:not(.open):not(.td .task) .t-title ~ * { order: 3; margin-right: 6px; }
  .task:not(.open):not(.td .task) .t-line:has(> .t-title ~ .ai-mark)::before { content: ""; order: 1; flex-basis: 100%; height: 0; }
  .task:not(.open):not(.td .task) .t-line:has(> .t-title ~ .ai-mark)::after { content: ""; order: 2; width: 21px; }
  .task:not(.open):not(.td .task) .t-right { order: 4; margin-left: auto; padding-left: 12px; }
  .task:not(.open):not(.td .task) .row-acts { order: 4; }
  .task:not(.open):not(.td .task) .t-sub { order: 5; flex-basis: 100%; padding-left: 21px; }
}

/* ── src/css/96-theme.css ── */
/* v12 — Apparence QISPI : un seul thème, « primaires », posé sur <body data-theme="primaires"> par 96-theme.js.

   QUATRE PRIMAIRES, UN RÔLE CHACUNE
     bleu   l'assistant, et l'action qu'on déclenche (bouton principal, lien, focus clavier)
     rouge  ce qui presse ou attend la personne (question de l'assistant, échéance atteinte, compteur à traiter)
     jaune  aujourd'hui, maintenant, ce qui est mis en avant (passage trouvé)
     vert   fait, validé, appliqué
   Chacune existe en plein, en encre (texte ≥ 4,5:1 sur blanc) et en fond léger. Le jaune ne porte jamais un trait ni un texte :
   il est toujours une surface, bordée ou surmontée d'encre (Albers : une couleur ne se lit que par sa voisine).
   Tout le reste est neutre. La sélection, les interrupteurs, les étiquettes, les titres de section : pas de couleur, donc pas de rôle.
   Les identités (un fil, la nature d'une note, une personne) reprennent ces quatre teintes, en clair et en sombre, plus le gris,
   mais seulement dans un pictogramme de 12 à 22 px : jamais en fond, en filet ni en pastille d'état. Le violet n'existe plus.

   RÈGLES TENUES
     WCAG 2.2 — 1.4.3 : tout texte ≥ 4,5:1 ; 1.4.11 : cases, pictogrammes et contours utiles ≥ 3:1 ;
     2.4.7 : focus clavier visible partout ; 2.5.8 : cibles ≥ 24 px (44 px au doigt, Apple HIG).
     Ce qui flotte (menu, fenêtre, carte ouverte) a un contour d'un pixel et une ombre courte : jamais blanc sur blanc.

   Les sélecteurs sont imbriqués (CSS nesting) sous body[data-theme="…"]. */

/* ════════════════════════ 1. Jetons ════════════════════════ */
body[data-theme="primaires"] {
  /* Surfaces */
  --bg: #ffffff;
  --bg-open: #f7f8fa;
  --sidebar: #f5f5f7;
  --sidebar-line: #e3e4e8;
  --sel: #e7e9ec;
  --row-sel: #e9ebee;
  --hair: #dcdee3;
  --hair-soft: #e8e9ed;
  --hair-list: #e6e7ea;
  --chip: #e9eaee;
  --field: #eef0f2;
  --ring: rgba(22, 23, 26, .11);          /* contour d'une plaque posée sur un fond gris */
  --ring-float: rgba(22, 23, 26, .16);    /* contour de ce qui flotte */

  /* Texte : deux gris de lecture, tous deux conformes ; un gris de pictogramme ; un gris de décor */
  --ink: #16171a;                         /* 17,9:1 */
  --ink-2: #2d2f34;                       /* 13,4:1 */
  --ink-side: #2d2f34;
  --mute: #4b4e55;                        /* 8,3:1 — texte secondaire */
  --mute-2: #606369;                      /* 6,0:1 sur blanc, 5,5:1 sur la barre, 5,0:1 sur une ligne sélectionnée — métadonnées, texte d'attente */
  --faint: var(--mute-2);                 /* les feuilles s'en servent pour du texte (indications, champs vides) : il doit se lire */
  --icon: #7b7e86;                        /* 4,1:1 sur blanc, 3,3:1 au pire — pictogrammes d'action */
  --box: #85888f;                         /* 3,5:1 — contour des cases à cocher */
  --deco: #8b8e95;                        /* 3,3:1 — ce qui ne porte pas de sens : puces, chevrons, désactivé */

  /* Les quatre primaires */
  --q-blue: #1f5fe0;        --q-blue-ink: #1a52cc;    --q-blue-soft: #e9f0fe;    --q-blue-line: #bcd0f7;
  --q-red: #d92d20;         --q-red-ink: #b42318;     --q-red-soft: #fdecea;     --q-red-line: #f3c1bb;
  --q-yellow: #ffcc00;      --q-yellow-ink: #735300;  --q-yellow-soft: #fff3bf;  --q-yellow-edge: #b38600;
  --q-green: #16a34a;       --q-green-ink: #0f6e32;   --q-green-soft: #e5f6ea;   --q-green-line: #b3dfc1;
  --q-blue-deep: #173f9e;   --q-green-deep: #0f6e32;  /* variantes sombres, pour les identités de fils et les natures de notes */
  --q-on-blue: #ffffff;     --q-on-red: #ffffff;      --q-on-green: #ffffff;     --q-on-yellow: #16171a;

  /* Les jetons hérités de Things, ramenés aux rôles */
  --blue: var(--q-blue-ink);
  --blue-soft: var(--icon);
  --check: var(--q-green);
  --yellow: var(--q-yellow);
  --yellow-ink: var(--q-yellow);
  --red: var(--q-red);
  --red-flag: var(--q-red);
  --need: var(--q-red);
  --teal: var(--q-green-deep);
  --sand: var(--icon);
  --green: var(--q-green);
  --inbox: var(--icon);
  --moon: var(--mute-2);
  --tag-bg: var(--chip);
  --tag-ink: var(--ink-2);
  --ai: var(--q-blue);
  --ai-ink: var(--q-blue-ink);
  --ai-soft: var(--q-blue-soft);
  --ai-line: var(--q-blue-line);
  --ai-text: #5f6269;                     /* 6,2:1 — le texte écrit par l'assistant reste en retrait, mais lisible */

  /* Fenêtres volantes : claires, bordées (le volet sombre de Things n'est pas repris) */
  --pop: #ffffff;
  --pop-2: var(--field);
  --pop-ink: var(--ink);
  --pop-mute: var(--mute-2);
  --pop-sel: var(--sel);

  /* Géométrie : trois rayons, pas plus */
  --r-box: 4px;       /* cases, étiquettes, pastilles */
  --r-pill: 6px;      /* lignes, boutons, champs */
  --r-card: 10px;     /* cartes, fenêtres */

  --shadow-card: 0 0 0 1px var(--ring), 0 1px 2px rgba(22, 23, 26, .07), 0 6px 14px -6px rgba(22, 23, 26, .14);
  --shadow-pop: 0 0 0 1px var(--ring-float), 0 2px 5px rgba(22, 23, 26, .08), 0 14px 30px -8px rgba(22, 23, 26, .24);
  --shadow-float: 0 0 0 1px var(--ring-float), 0 2px 4px rgba(22, 23, 26, .07), 0 10px 22px -8px rgba(22, 23, 26, .18);
  --shadow-plate: 0 0 0 1px var(--ring), 0 1px 1.5px rgba(22, 23, 26, .06);

  color: var(--ink);
  font-variant-numeric: tabular-nums;     /* compteurs, heures, dates : les chiffres s'alignent d'une ligne à l'autre */
}
/* … sauf dans la prose et les titres, où les chiffres gardent leur largeur naturelle */
body[data-theme="primaires"] :is(.lh-title, .reader h2, .r-body, .m-text, .bubble, .tc-notes, .lh-sub, .pl-up-n) { font-variant-numeric: normal; }

/* « franc » : la même grammaire, les curseurs plus haut */

/* ════════════════════════ 2. Gris de texte relevés ════════════════════════
   Les feuilles 10 à 90 écrivent en dur une trentaine de gris pâles repris de Things (de 1,6:1 à 4,4:1 sur blanc).
   Relevé du 30/11/2026 : chaque `color:` gris sous 4,5:1 est ramené ici à un jeton. Texte : --mute si le gris d'origine
   dépassait 3,1:1, sinon --mute-2. Pictogrammes : --icon. Décor et désactivé : --deco.
   Préfixe en :where() : la spécificité reste celle de la règle d'origine, les états (survol, actif, sélectionné) gagnent toujours. */
:where(body[data-theme="primaires"]) {
  /* ⟨gris relevés⟩ */
  & .pill, & .ask-pill, & .t-right, & .ck.done, & .more-link, & .n-ex, & .sb-search, & .dr-tab, & .pin-btn:hover, & .pl-nav button, & .pl-wk-d.past b,
  & .pl-up-l, & .pl-up-due small, & .bd-more, & .bd-when, & .bd-k-done .bd-t, & .pg-more, & .pg-tok, & .cap-n, & .cap-run-1, & .cap-add, & .jr-sub,
  & .jr-fold:hover > svg, & .jr-thumb .jr-ex, & .pf-tag, & .pf-val, & .pf-fo.vide, & .pfa-q:hover .pfa-zoom, & .pfa-ru-c, & .pfa-tab, & .pfc-toc-i,
  & .pfd-pr-s b, & .pfd-pr-src, & .pfd-af-d, & .pfd-ft, & .pfe-c-was, & .pfe-l-s span:first-child, & .pfe-h-x, & .pfs-sw, & .pfs-card-in:hover .pfs-card-v { color: var(--mute); }
  & .ask-pill kbd, & .kbd, & .empty h3, & .empty p, & .task.done .t-title, & .tag-o, & .steps .s-done, & .ctx-k, & .ty i, & .p-empty, & .n-meta,
  & .r-turn time, & .r-todo .done, & .r-stub, & .tl-it small, & .cf-s, & .r-kid small, & .tr-m, & .srch-in::placeholder, & .fc-d, & .pl-hr span,
  & .pl-wk-g, & .pl-wk-n .pl-box, & .pl-up-n i, & .bd-empty, & .bd-card.checked .bd-t, & .bd-reply input::placeholder, & .bd-l-done .bd-mk,
  & .bd-li.checked .bd-mk, & .bd-l-done .bd-lt, & .bd-li.checked .bd-lt, & .bd-ll, & .po-none, & .po-ex, & .po-reply input::placeholder, & .po-send,
  & .po-rt-i.off, & .po-rt.off .po-rt-n b, & .pg-none, & .pg-search input::placeholder, & .pg-res .pg-ico, & .qf-in input::placeholder, & .pal-k,
  & .cap-none, & .cap-card.off .cap-badge, & .cap-card.off .cap-name, & .cap-k, & .cap-line.empty, & .cap-st.off, & .cap-rl.off .cap-rl-t,
  & .cap-search input::placeholder, & .jr-write:empty::before, & .jr-hint, & .jr-ex, & .jr-filters .pill.zero:not(.on), & .jr-rib-t, & .jr-leg small,
  & .jr-side-n, & .jr-when b, & .jr-when span, & .jr-en.fait .jr-node, & .jr-fm, & .jr-mq, & .jr-wv, & .jr-vn small, & .jr-none,
  & .jr-syn li.s-ecartee .jr-syn-t, & .jr-src, & .jr-pc-none, & .jr-pc-c.s-ecartee .jr-pc-t, & .jr-qc-in::placeholder, & .jr-qc-n, & .jr-qc-foot,
  & .pf-claim.st-rejetee .pf-claim-t, & .pf-claim.st-remplacee .pf-claim-t, & .pf-in-where, & .pf-in-meta dt, & .pf-po-r, & .pf-mo b, & .pf-com-k,
  & .pfa-ax, & .pfa-peri-k, & .pfa-mid-v, & .pfa-tab small, & .pfb-axis-k, & .pfb-side-k, & .pfc-toc-i small, & .pfc-ny-k,
  & .pf-s.st-rejetee .pf-s-t > span:first-of-type, & .pf-s.st-remplacee .pf-s-t > span:first-of-type, & .pfd-mk.s-rejetee, & .pfd-mk.s-remplacee,
  & .pfd-pr-s, & .pfd-af-s, & .pfd-af.s-rejetee .pfd-af-t, & .pfd-af.s-remplacee .pfd-af-t, & .pfd-empty h3, & .pfd-empty p, & .pfd-cell.none .pfd-cl,
  & .pfd-cell.fut .pfd-cl, & .pfd-band-n, & .pfd-bar .seg button i, & .pfd-fp .pill.zero:not(.on), & .pfd-when span, & .pfd-gap .pfd-when b, & .pfd-gap-t,
  & .pfd-tr-k, & .pfd-note, & .pfd-noaf, & .pfd-unk-l em, & .pfd-st-n i, & .pfd-st-m em, & .pfe-none, & .pfe-c-q i, & .pfe-card.s-rejetee .pfe-c-t,
  & .pfe-since, & .pfe-c-rule, & .pfe-rail-h span, & .pfe-r-g, & .pfe-r.s-rejetee .pfe-r-s, & .pfe-r:not(.s-proposee) .pfe-r-t, & .pfe-r-c, & .pfe-done p,
  & .pfe-done p.q, & .pfe-l-g i, & .pfe-l-s, & .pfe-x-l span, & .pfe-x-m, & .pfe-h-g i, & .pfe-h-n, & .pfe-h.s-rejetee .pfe-h-s,
  & .pfe-h.s-remplacee .pfe-h-s, & .pfe-h.rv .pfe-h-s, & .pfe-h.s-rejetee .pfe-h-t, & .pfe-h.s-remplacee .pfe-h-t, & .pfe-h-d,
  & .pfs-card.is-non .pfs-card-k, & .pfs-card.is-non .pfs-card-t, & .kn-row.off .kn-t, & .kn-row.lost .kn-t, & .kn code, & .kn-card.is-non .kn-card-k,
  & .kn-card.is-non .kn-card-t { color: var(--mute-2); }
  & .icon-btn, & .lh-more, & .tb-btn, & .sb-lib-c, & .mini.x, & .tc-btns button, & .menu-ico, & .p-search, & .p-filt, & .c-btn, & .trow .tw, & .tr-open,
  & .sb-notes, & .dr-tab-x, & .pin-btn, & .bd-send, & .pg-search, & .pg-chev, & .pg-link-x, & .pg-sel svg, & .pal-head, & .cap-assoc .chip svg,
  & .cap-search, & .jr-nb svg, & .jr-fold > svg, & .jr-undo, & .pf-proof-go, & .pfa-zoom, & .pfd-pr-go, & .pfe-c-open, & .pfe-arrow,
  & .pfe-c-acts .btn svg, & .pfe-c-dec.s-rejetee > svg:not(.pf-g), & .pfe-l-a button, & .pfe-x-mid i, & .pfe-zh.fold > svg, & .pfs-card-v,
  & .pfs-pick-i svg { color: var(--icon); }
  & .tb-btn[disabled], & .r-body li::marker, & .pal-dot, & .srch-r i, & .jr-w li::marker, & .pfc-rules li::marker { color: var(--deco); }
  /* ⟨/gris relevés⟩ */
  /* Même logique pour les pictogrammes que les feuilles peignent avec --faint (devenu un gris de texte) */
  & .t-ico, & .tv-c, & .tv-path svg, & .empty { color: var(--deco); }
  & .tv-sync { color: var(--icon); }
}

/* ════════════════════════ 3. Les retouches ════════════════════════ */
body[data-theme="primaires"] {

  & ::selection { background: var(--q-blue-line); }

  /* ── Focus clavier (WCAG 2.4.7). Jusqu'ici : le liseré par défaut du navigateur sur les boutons, et `outline: none` sur 31 champs.
        Ici : un anneau bleu de 2 px sur tout ce qui se prend au clavier ; pour un champ, l'anneau est sur son cadre. ── */
  & :is(button, a, summary, [tabindex], [role="button"]):focus-visible { outline: 2px solid var(--q-blue); outline-offset: 1px; }
  & :is(.sb-row, .tv-r, .trow, .nrow, .pal-row, .menu-it, .dpop-it, .dr-tab, .seg button, .pill, .modal-tab):focus-visible { outline-offset: -2px; }
  & :is(.p-search, .srch-field, .qf-in, .pg-search, .cap-search, .bd-reply, .aib-in input, .dpop-in, .pal.inline .pal-head, .pfe-x-f):is(:focus-within, :focus) {
    background: var(--bg); box-shadow: inset 0 0 0 1.5px var(--q-blue);
  }
  & .composer:focus-within { background: var(--bg); box-shadow: 0 0 0 1.5px var(--q-blue); }
  & .chat-pop.focus:not(.open) .cp-bar.composer { border-color: var(--q-blue); box-shadow: 0 0 0 1px var(--q-blue), 0 6px 18px -6px rgba(22, 23, 26, .22); }
  & .pal-in { caret-color: var(--q-blue); }
  & .bd-reply:focus-within .bd-send { color: var(--q-blue); }

  /* ── Ce qui n'apparaissait qu'au survol apparaît aussi au clavier, et reste visible au doigt (NN/g : pas d'action cachée derrière un survol) ── */
  & .tv-r:focus-within .tv-b, & .trow:focus-within .tr-open, & .srch-res .prow:focus-within .mini { opacity: 1; }
  & .tv-r:focus-within .tv-n:has(+ .tv-b) { opacity: 0; }
  & .sb-row:focus-within .sb-notes, & .dr-tab:focus-within .dr-tab-x { display: grid; }
  & .task:focus-within .t-title ~ .t-ico, & .task:focus-within .tag-o { opacity: 1; }
  @media (hover: none) {
    & .tv-b, & .tr-open, & .task .t-title ~ .t-ico, & .task .tag-o { opacity: 1; }
    & .dr-tab-x { display: grid; }
  }

  /* ── Cibles : 24 px au moins autour de chaque petit bouton, sans rien déplacer (WCAG 2.5.8) ── */
  & :is(.tv-b, .mini.x, .sb-notes, .h-more, .dr-tab-x, .ck-b, .pal-x, .srch-b, .srch-x, .tv-c, .tw, .pin-x) { position: relative; }
  & :is(.tv-b, .mini.x, .sb-notes, .srch-b)::after { content: ""; position: absolute; inset: -2px; }
  & :is(.dr-tab-x, .ck-b, .pal-x)::after { content: ""; position: absolute; inset: -5px; }
  & .h-more::after { content: ""; position: absolute; inset: -1px 0; }
  @media (max-width: 760px) {
    /* au doigt : 44 px (Apple HIG). La case garde sa place, sa zone s'étend autour d'elle. */
    & .cb { width: 44px; height: 40px; margin: 0 -7px 0 -16px; }
    & .bd-cb { position: relative; }
    & .bd-cb::after, & .ck-b::after { content: ""; position: absolute; inset: -12px; }
    /* Réglages : un choix segmenté ne se plie pas sur deux lignes, il défile */
    & .set-row .seg { max-width: 100%; overflow-x: auto; scrollbar-width: none; }
    & .set-row .seg button { flex: none; white-space: nowrap; }
  }

  /* ════════ Barre de gauche ════════ */
  & .sb { background: var(--sidebar); border-right-color: var(--sidebar-line); }
  & .sb-bottom, & .sb-foot { border-top-color: var(--sidebar-line); }
  & .sb-row { color: var(--ink-side); font-weight: 500; }
  & .sb-row.proj { font-weight: 400; }
  & .sb-row.area { font-weight: 600; color: var(--ink); }
  & .sb-row.conv { font-weight: 400; color: var(--mute); }
  & .sb-row.lib { font-weight: 400; }
  & .sb-row:not(.on):hover { background: rgba(22, 23, 26, .045); }
  /* Le lieu courant : une plaque blanche bordée sur le fond gris, comme l'onglet courant à droite. Things grise la ligne. */
  & .sb-row.on { background: var(--bg); box-shadow: var(--shadow-plate); color: var(--ink); font-weight: 600; }
  & .sb-row.proj.on { font-weight: 500; }
  & .sb-row.drop { background: var(--q-blue-soft); box-shadow: inset 0 0 0 1.5px var(--q-blue); }
  & .sb-row.sub::before { background: var(--hair); }
  & .sb-count { color: var(--mute-2); font-weight: 500; }
  & .sb-badge { min-width: 18px; height: 16px; line-height: 16px; border-radius: 8px; background: var(--q-red); color: var(--q-on-red); font-weight: 700; }
  & .sb-badge.ai { background: var(--q-blue); color: var(--q-on-blue); }
  & .sb-dot { opacity: 1; background: var(--q-blue); }
  & .conv-dot { background: var(--deco); }
  & .sb-row.conv.live .conv-dot { background: var(--q-blue); }
  & .sb-space-h { color: var(--mute-2); font-weight: 600; letter-spacing: .07em; }
  & .sb-search { background: rgba(22, 23, 26, .055); color: var(--mute); }
  & .sb-search .kbd { color: var(--mute); }
  & .sb-search.on { background: var(--bg); box-shadow: var(--shadow-plate); color: var(--ink); }
  & .sb-foot { color: var(--mute); }
  & .tl { background: #d5d7db; }
  @media (min-width: 761px) {
    & .sb-row { font-size: 13.5px; }
    & .sb-count { font-size: 12px; }
  }

  /* ── Pictogrammes de navigation : une seule famille (trait de 1,5 sur une grille de 16, bouts ronds), celle des projets.
        Neutres, sauf quand la destination EST un rôle : bleu pour l'assistant, vert pour le fait, jaune pour aujourd'hui.
        Les dessins d'origine (pleins, neuf teintes) sont masqués ; le SVG garde sa place et sa taille, on le peint par un masque. ── */
  & svg[viewBox="0 0 15 15"]:is(
      :has(> path[fill="#2e7cf6"]), :has(> path[fill="#d93c54"]), :has(> path[fill="#8cc4bd"]), :has(> path[fill="#5ba9f4"]),
      :has(> path[fill="#6dbc65"]), :has(> path[fill="#c8c082"]), :has(> path[fill="#6f8fc4"]), :has(> path[fill="#e2b62b"]),
      :has(> path[fill="#3d8ef0"]), :has(> path[stroke="#4fb35b"]), :has(> circle[fill="#2e7cf6"])) {
    background: var(--icon);
    -webkit-mask: var(--g) center / 100% 100% no-repeat; mask: var(--g) center / 100% 100% no-repeat;
    & > * { display: none; }
  }
  /* Chat */
  & svg[viewBox="0 0 15 15"]:has(> path[fill="#2e7cf6"]) {
    background: var(--q-blue);
    --g: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23000' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3.3 2.5h9.4a1.3 1.3 0 0 1 1.3 1.3v5.9a1.3 1.3 0 0 1-1.3 1.3H8l-3 2.5V11H3.3A1.3 1.3 0 0 1 2 9.7V3.8a1.3 1.3 0 0 1 1.3-1.3Z'/%3E%3Cpath d='M5.5 5.6h5M5.5 8h3'/%3E%3C/svg%3E");
  }
  /* Planning */
  & svg[viewBox="0 0 15 15"]:has(> path[fill="#d93c54"]) {
    --g: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23000' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 4.5A1.5 1.5 0 0 1 4.5 3h7A1.5 1.5 0 0 1 13 4.5v7a1.5 1.5 0 0 1-1.5 1.5h-7A1.5 1.5 0 0 1 3 11.5v-7ZM3 6.6h10M5.6 1.7v2.2M10.4 1.7v2.2'/%3E%3C/svg%3E");
  }
  /* Board : le travail de l'assistant */
  & svg[viewBox="0 0 15 15"]:has(> path[fill="#8cc4bd"]) {
    background: var(--q-blue);
    --g: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23000' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='2.2' y='2.5' width='3.2' height='11' rx='1'/%3E%3Crect x='6.4' y='2.5' width='3.2' height='6.5' rx='1'/%3E%3Crect x='10.6' y='2.5' width='3.2' height='9' rx='1'/%3E%3C/svg%3E");
  }
  /* Inbox */
  & svg[viewBox="0 0 15 15"]:has(> path[fill="#5ba9f4"]) {
    --g: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23000' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2.5 9.5 4.2 3.7a1 1 0 0 1 1-.7h5.6a1 1 0 0 1 1 .7l1.7 5.8v2.5a1 1 0 0 1-1 1h-9a1 1 0 0 1-1-1V9.5Zm0 0h3.3a2.2 2.2 0 0 0 4.4 0h3.3'/%3E%3C/svg%3E");
  }
  /* Terminé */
  & svg[viewBox="0 0 15 15"]:has(> path[fill="#6dbc65"]) {
    background: var(--q-green);
    --g: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23000' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='2.5' y='2.5' width='11' height='11' rx='2.5'/%3E%3Cpath d='M5.3 8.2l1.9 1.9 3.5-4.1'/%3E%3C/svg%3E");
  }
  /* Bibliothèque, Ressources */
  & svg[viewBox="0 0 15 15"]:has(> path[fill="#c8c082"]) {
    --g: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23000' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='2.5' y='2.8' width='11' height='3' rx='.8'/%3E%3Cpath d='M3.5 5.8v6.4a1 1 0 0 0 1 1h7a1 1 0 0 0 1-1V5.8M6.5 8.6h3'/%3E%3C/svg%3E");
  }
  /* Personnes */
  & svg[viewBox="0 0 15 15"]:has(> path[fill="#6f8fc4"]) {
    --g: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23000' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M8 8a2.8 2.8 0 1 0 0-5.6A2.8 2.8 0 0 0 8 8ZM2.8 13.6a5.2 5.2 0 0 1 10.4 0'/%3E%3C/svg%3E");
  }
  /* Compétences */
  & svg[viewBox="0 0 15 15"]:has(> path[fill="#e2b62b"]) {
    --g: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23000' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 1.8 3.5 9h4l-.5 5.2L12.5 7h-4L9 1.8Z'/%3E%3C/svg%3E");
  }
  /* Capture */
  & svg[viewBox="0 0 15 15"]:has(> path[fill="#3d8ef0"]) {
    --g: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23000' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M8 2.2v7.3M5.2 6.8 8 9.6l2.8-2.8M2.5 10.2v2.3a1 1 0 0 0 1 1h9a1 1 0 0 0 1-1v-2.3'/%3E%3C/svg%3E");
  }
  /* Routines */
  & svg[viewBox="0 0 15 15"]:has(> path[stroke="#4fb35b"]) {
    --g: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23000' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M13 6.4A5.3 5.3 0 0 0 3.3 5.3M3 9.6a5.3 5.3 0 0 0 9.7 1.1M13.3 3v3.4H9.9M2.7 13V9.6h3.4'/%3E%3C/svg%3E");
  }
  /* Méta-profil : ce que l'assistant sait de toi */
  & svg[viewBox="0 0 15 15"]:has(> circle[fill="#2e7cf6"]) {
    background: var(--q-blue);
    --g: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23000' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='8' cy='8' r='6'/%3E%3Ccircle cx='8' cy='8' r='2.3'/%3E%3C/svg%3E");
  }
  & .sb-lib:not(.closed) .sb-lib-h .sb-ico { opacity: 1; }
  & svg[viewBox="0 0 15 15"] > path[stroke="#b2b4ba"] { stroke: var(--icon); }      /* le cube d'une casquette, dans les menus */
  /* Les grands pictogrammes des pages Capture et Routines sont dessinés à part : même traitement, mêmes dessins */
  & svg[viewBox="0 0 22 22"]:not(:has(> circle)):is(:has(> path[fill="#3d8ef0"]), :has(> path[stroke="#5bb85a"])) {
    background: var(--icon);
    -webkit-mask: var(--g) center / 100% 100% no-repeat; mask: var(--g) center / 100% 100% no-repeat;
    & > * { display: none; }
  }
  & svg[viewBox="0 0 22 22"]:not(:has(> circle)):has(> path[fill="#3d8ef0"]) {
    --g: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23000' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M8 2.2v7.3M5.2 6.8 8 9.6l2.8-2.8M2.5 10.2v2.3a1 1 0 0 0 1 1h9a1 1 0 0 0 1-1v-2.3'/%3E%3C/svg%3E");
  }
  & svg[viewBox="0 0 22 22"]:has(> path[stroke="#5bb85a"]) {
    --g: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23000' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M13 6.4A5.3 5.3 0 0 0 3.3 5.3M3 9.6a5.3 5.3 0 0 0 9.7 1.1M13.3 3v3.4H9.9M2.7 13V9.6h3.4'/%3E%3C/svg%3E");
  }
  /* Les pastilles des sources et des routines : la famille est déjà écrite dans le titre de section, la teinte la répétait */
  & .cap-badge { --c: #62656c !important; border-radius: var(--r-pill); }
  /* L'éclair d'une compétence n'est ni « aujourd'hui » ni une identité de fil : neutre */
  & svg[style*="color:#e2b62b"]:has(> path[fill="currentColor"]) { color: var(--icon) !important; }

  /* ── Aujourd'hui : une pastille jaune bordée, pas l'étoile de Things. Un autre jour : la même pastille, vide. ── */
  & svg:is([style*="--yellow"], [style*="#f5d636"]), & svg[viewBox="0 0 15 15"]:has(> path[fill="#f5d636"]) {
    background: var(--q-yellow); border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--q-yellow-edge); scale: .74;
    & > * { display: none; }
  }
  & .lh-ico svg[style*="#cdcfd3"] { border-radius: 50%; box-shadow: inset 0 0 0 2px var(--deco); scale: .74; & > * { display: none; } }
  & .when svg[style*="--yellow"] { scale: .7; }

  /* ── Identité des fils et nature des notes : sept teintes ramenées aux quatre familles (clair et sombre), plus le gris.
        Le violet (réflexion, contexte capturé) disparaît. En trait, le jaune passe à son encre de bord (3,3:1) ;
        en aplat, il garde sa pleine teinte et son pictogramme passe à l'encre. ── */
  & [style*="color:#3d8ef0"], & [style*="color:#3f8ae0"], & [style*="color:#2e7cf6"], & [style*="color:#7e62d6"] { color: var(--q-blue) !important; }
  & [style*="color:#3a5ebf"], & [style*="color:#6f86a8"], & [style*="color:#4b6584"] { color: var(--q-blue-deep) !important; }
  & [style*="color:#e0475c"], & [style*="color:#b85fc2"], & [style*="color:#e5604d"], & [style*="color:#d9628f"] { color: var(--q-red) !important; }
  & [style*="color:#4fb35b"], & [style*="color:#4baf6e"] { color: var(--q-green) !important; }
  & [style*="color:#3fa59b"], & [style*="color:#1f9d8b"], & [style*="color:#2b9fb3"] { color: var(--q-green-deep) !important; }
  & [style*="color:#e2b62b"], & [style*="color:#b8892b"], & [style*="color:#ee8b3a"] { color: var(--q-yellow-edge) !important; }
  & [style*="color:#8e929a"], & [style*="color:#7c8088"], & [style*="color:#9db4e6"] { color: var(--mute-2) !important; }
  /* quand c'est un mot qui porte la teinte (« Synthèse », « Échange »), il prend l'encre de sa famille : ≥ 4,5:1 */
  & :not(svg):is([style*="color:#3d8ef0"], [style*="color:#3f8ae0"], [style*="color:#2e7cf6"], [style*="color:#7e62d6"]) { color: var(--q-blue-ink) !important; }
  & :not(svg):is([style*="color:#e0475c"], [style*="color:#b85fc2"], [style*="color:#e5604d"], [style*="color:#d9628f"]) { color: var(--q-red-ink) !important; }
  & :not(svg):is([style*="color:#4fb35b"], [style*="color:#4baf6e"]) { color: var(--q-green-ink) !important; }
  & :not(svg):is([style*="color:#e2b62b"], [style*="color:#b8892b"], [style*="color:#ee8b3a"]) { color: var(--q-yellow-ink) !important; }
  & [style*="background:#3d8ef0"] { background: var(--q-blue) !important; }
  & [style*="background:#3a5ebf"] { background: var(--q-blue-deep) !important; }
  & [style*="background:#e0475c"], & [style*="background:#b85fc2"] { background: var(--q-red) !important; }
  & [style*="background:#4fb35b"] { background: var(--q-green) !important; }
  & [style*="background:#3fa59b"] { background: var(--q-green-deep) !important; }
  & [style*="background:#e2b62b"] { background: var(--q-yellow) !important; color: var(--q-on-yellow); box-shadow: inset 0 0 0 1px var(--q-yellow-edge); }
  & [style*="background:#e2b62b"] svg { color: var(--q-on-yellow) !important; }
  & [style*="background:#8e929a"] { background: var(--mute-2) !important; }
  & .av[style*="background:#4fb35b"] { background: var(--q-green-ink) !important; }   /* des initiales blanches : il leur faut 4,5:1 */
  /* Les fonds teintés à 18 (≈ 9 %) des pastilles de nature (« Notes contenues », cartes, ressources) : les règles ci-dessus les
     attrapaient aussi et en faisaient des aplats pleins où le pictogramme, de la même couleur, disparaissait. Ils restent teintés. */
  & .n-ico:is([style*="background:#3d8ef018"]) { background: color-mix(in srgb, var(--q-blue) 10%, transparent) !important; }
  & .n-ico:is([style*="background:#3a5ebf18"]) { background: color-mix(in srgb, var(--q-blue-deep) 10%, transparent) !important; }
  & .n-ico:is([style*="background:#e0475c18"], [style*="background:#b85fc218"]) { background: color-mix(in srgb, var(--q-red) 10%, transparent) !important; }
  & .n-ico:is([style*="background:#4fb35b18"]) { background: color-mix(in srgb, var(--q-green) 10%, transparent) !important; }
  & .n-ico:is([style*="background:#3fa59b18"]) { background: color-mix(in srgb, var(--q-green-deep) 10%, transparent) !important; }
  & .n-ico:is([style*="background:#e2b62b18"]) { background: color-mix(in srgb, var(--q-yellow) 22%, transparent) !important; box-shadow: none; }
  & .n-ico:is([style*="background:#e2b62b18"]) svg { color: var(--q-yellow-edge) !important; }
  & .n-ico:is([style*="background:#8e929a18"]) { background: color-mix(in srgb, var(--mute-2) 10%, transparent) !important; }
  & [style*="--c:#3d8ef0"] { --c: var(--q-blue) !important; }
  & [style*="--c:#3a5ebf"] { --c: var(--q-blue-deep) !important; }
  & [style*="--c:#e0475c"], & [style*="--c:#b85fc2"] { --c: var(--q-red) !important; }
  & [style*="--c:#4fb35b"] { --c: var(--q-green) !important; }
  & [style*="--c:#3fa59b"] { --c: var(--q-green-deep) !important; }
  & [style*="--c:#e2b62b"] { --c: var(--q-yellow-edge) !important; }
  & [style*="--c:#8e929a"] { --c: var(--mute-2) !important; }
  /* l'anneau d'avancement d'un projet, dessiné avec des attributs */
  & :is([stroke="#3d8ef0"]) { stroke: var(--q-blue); }           & :is([fill="#3d8ef0"]) { fill: var(--q-blue); }
  & :is([stroke="#3a5ebf"]) { stroke: var(--q-blue-deep); }      & :is([fill="#3a5ebf"]) { fill: var(--q-blue-deep); }
  & :is([stroke="#e0475c"]) { stroke: var(--q-red); }            & :is([fill="#e0475c"]) { fill: var(--q-red); }
  & :is([stroke="#4fb35b"]) { stroke: var(--q-green); }          & :is([fill="#4fb35b"]) { fill: var(--q-green); }
  & :is([stroke="#3fa59b"], [stroke="#5da59d"]) { stroke: var(--q-green-deep); }   & :is([fill="#3fa59b"], [fill="#5da59d"]) { fill: var(--q-green-deep); }
  & :is([stroke="#e2b62b"]) { stroke: var(--q-yellow-edge); }    & :is([fill="#e2b62b"]) { fill: var(--q-yellow); }
  & :is([stroke="#8e929a"], [stroke="#8c8e91"]) { stroke: var(--icon); }           & :is([fill="#8e929a"]) { fill: var(--icon); }
  & .li-tile { border-radius: var(--r-box) !important; }

  /* ════════ En-tête de fil ════════ */
  & .lh-title { font-weight: 700; letter-spacing: -.022em; color: var(--ink); }
  & .reader h2 { letter-spacing: -.02em; }
  & .lh-sub, & .ctx-goal { color: var(--ink-2); }
  & .lh-due.soon, & .lh-due.soon small { color: var(--q-red-ink); }
  @media (min-width: 761px) {
    & .lh-title { font-size: 24px; }
    & .ws.multi:not(.solo) .lh-title { font-size: 22px; }
  }

  /* Filtres : des étiquettes rectangulaires ; le filtre courant est une plaque grise à texte noir (blanc sur gris, 2,0:1, chez Things) */
  & .pill { border-radius: var(--r-pill); font-weight: 600; color: var(--mute); }
  & .pill:not(.on):hover { color: var(--ink); background: rgba(22, 23, 26, .045); }
  & .pill.on { background: var(--sel); color: var(--ink); }
  & .pill.ai.on { background: var(--q-blue-soft); color: var(--q-blue-ink); }
  & .seg { border-radius: 8px; background: var(--field); }
  & .seg button { border-radius: 6px; color: var(--mute); }
  & .seg button.on { background: var(--bg); color: var(--ink); box-shadow: var(--shadow-plate); }

  /* ════════ Listes et tâches ════════ */
  /* Titre de section : de l'encre et un filet. Le bleu de Things ne disait rien ; ici le bleu est réservé à l'assistant. */
  & .h-row { color: var(--ink); font-weight: 700; letter-spacing: -.005em; border-bottom-color: var(--hair); }
  & .h-row.plain { color: var(--ink); }
  & .h-row.ai { color: var(--q-blue-ink); border-bottom-color: var(--q-blue-line); }
  & .h-row .h-more { color: var(--icon); }
  & .h-row .h-more:hover { color: var(--ink-2); background: var(--field); }
  & .h-row .h-count { color: var(--mute-2); font-weight: 500; }

  /* Case à cocher : 14 px, contour de 1,5 px à 3,5:1 (1,8:1 chez Things), cible de 24 px. Cochée : verte. */
  & .cb { width: 24px; height: 24px; margin: 0 3px 0 -6px; }
  & .cb i { width: 14px; height: 14px; border: 1.5px solid var(--box); border-radius: var(--r-box); }
  & .cb:hover i { border-color: var(--ink-2); }
  & .task.done .cb i, & .cb.on i { background: var(--q-green); border-color: var(--q-green); }
  & .task.someday .cb i { border-style: dashed; }
  & .task.proposed .cb i { border: 1.5px dashed var(--q-blue); background: var(--q-blue-soft); }
  & :is(.bd-cb i, .pal-cb, .m-task i, .mn-cb, .r-task i, .r-todo i) { border-color: var(--box); border-radius: var(--r-box); }
  & .bd-cb i { width: 14px; height: 14px; border-width: 1.5px; }
  & :is(.bd-cb.on i, .bd-card.checked .bd-cb i, .pal-cb.done, .m-task i.done, .r-task i.done) { background-color: var(--q-green); border-color: var(--q-green); }
  & .r-todo .done i { background-color: var(--q-green); border-color: var(--q-green); }
  & .pl-pop-t .pl-box { border-color: var(--box); }
  & .ck-b i { border-color: var(--box); }
  & .ck.done { color: var(--mute-2); }
  & .ck.done .ck-b path { stroke: var(--q-green); }
  & .tc-check, & .ck { border-color: var(--hair-list); }

  /* La tâche sélectionnée : gris neutre. Le bleu pâle de Things se confondrait avec les fonds de l'assistant. */
  & .task.sel:not(.open) .task-head::before { background: var(--row-sel); border-radius: var(--r-pill); }
  & .task.done .t-title { color: var(--mute-2); }
  & .task.proposed .t-title { color: var(--mute); }
  & .task.open .t-title { color: var(--ink); }
  & .task.open .task-in { box-shadow: var(--shadow-card); border-radius: var(--r-card); }
  & .task.dragging .task-in { box-shadow: var(--shadow-float); }
  & .drag-ph { background: var(--field); }
  & .when.date { border-radius: var(--r-box); background: var(--chip); color: var(--mute); font-weight: 600; }
  & .task.sel .when.date { background: var(--bg); }
  & .t-right.due, & .bd-when.due, & .pl-wk-due { color: var(--q-red-ink); }
  & .tag-o { border-radius: var(--r-box); border-color: var(--hair); color: var(--mute-2); }
  & .tag-f { border-radius: var(--r-box); background: var(--chip); color: var(--ink-2); }
  & .tc-when { color: var(--ink-2); }
  & .tc-when svg[style*="--red)"] { color: var(--icon) !important; }       /* une date prévue n'est pas une urgence : le calendrier est gris, seul le drapeau d'une échéance atteinte rougit */
  & .tc-notes, & .ck { color: var(--ink-2); }

  /* Marques de l'assistant : bleu = il travaille ou il a fini ; rouge = il t'attend */
  & .ai-mark { height: 18px; line-height: 18px; border-radius: var(--r-box); padding: 0 7px 0 6px; font-weight: 600; color: var(--q-blue-ink); background: var(--q-blue-soft); }
  & .ai-mark.need { color: var(--q-red-ink); background: var(--q-red-soft); }
  & .ai-mark .dot { background: var(--q-red); }
  & .mini { border-radius: var(--r-pill); color: var(--mute); }
  & .mini.ai { background: var(--q-blue); color: var(--q-on-blue); }
  & .mini.ghost { box-shadow: inset 0 0 0 1px var(--hair); }
  & .chip { border-radius: var(--r-pill); color: var(--ink-2); }
  & .chip:hover { background: var(--sel); }
  & .chip.person { border-radius: 12px; }
  & .sk-chip { border-radius: var(--r-pill); box-shadow: inset 0 0 0 1px var(--hair); color: var(--mute); }
  & .ctx-chip { border-radius: var(--r-pill); box-shadow: inset 0 0 0 1px var(--hair); color: var(--mute); }
  & .kbd, & .ask-pill kbd, & .pal-k { color: var(--mute-2); background: rgba(22, 23, 26, .06); }

  /* Boutons : le bouton principal est bleu (l'action), les autres sont bordés */
  & .btn { border-radius: var(--r-pill); box-shadow: inset 0 0 0 1px var(--ring-float); color: var(--ink-2); }
  & .btn:hover { background: var(--field); }
  & .btn.ai { background: var(--q-blue); color: var(--q-on-blue); box-shadow: none; }
  & .btn.dark { background: var(--ink); color: #fff; box-shadow: none; }
  & .btn.quiet { box-shadow: none; color: var(--mute); background: transparent; }
  & .btn.quiet:hover { background: rgba(22, 23, 26, .05); }

  /* Le bloc de l'assistant : fond bleu léger et filet bleu à gauche — le même filet que sous ses paragraphes dans une note */
  & .aib { border-radius: var(--r-pill); background: var(--q-blue-soft); box-shadow: inset 2px 0 0 var(--q-blue); color: var(--ink-2); }
  & .aib.need { background: var(--q-red-soft); box-shadow: inset 2px 0 0 var(--q-red); }
  & .aib-h { color: var(--q-blue-ink); }
  & .aib.need .aib-h { color: var(--q-red-ink); }
  & .aib-q { color: var(--ink); }
  & .aib li::before, & .bd-ul li::before { background: var(--q-blue); opacity: .55; }
  & .aib-in input { box-shadow: inset 0 0 0 1px var(--ring-float); }
  & .cite { border-radius: var(--r-box); background: var(--q-blue-soft); color: var(--q-blue-ink); }
  & .cite:hover { background: var(--q-blue-line); }
  & .steps { color: var(--mute); }
  & .steps .s-now { color: var(--q-blue-ink); }
  & .ctx-h { color: var(--q-blue-ink); }
  & .prow { color: var(--ink); }
  & .more-link:hover, & .bd-more:hover, & .pg-more:hover { color: var(--ink); }

  /* ════════ Barre du bas ════════ */
  & .toolbar { border-top-color: var(--hair-soft); }
  & .tb-btn:hover, & .icon-btn:hover { color: var(--ink-2); }
  & .tb-btn:active, & .icon-btn:active, & .icon-btn.on { background: var(--field); color: var(--ink-2); }
  & .ask-pill { background: var(--field); color: var(--mute-2); }
  & .ask-pill.live { background: var(--q-blue-soft); color: var(--q-blue-ink); }
  & .cp-bar.composer { border-color: var(--hair); }
  & .chat-pop.open { border-color: transparent; box-shadow: 0 0 0 1px var(--ring-float), 0 4px 10px rgba(22, 23, 26, .08), 0 22px 48px -10px rgba(22, 23, 26, .30); }
  & .chat-pop.open .cp-bar.composer { border-top-color: var(--hair-soft); }
  & .cp-head { background: var(--sidebar); border-bottom-color: var(--hair-soft); }
  & .cp-live { border-radius: var(--r-pill); }

  /* ════════ Ce qui flotte : fond plein, contour, ombre courte ════════ */
  & .menu { background: var(--bg); -webkit-backdrop-filter: none; backdrop-filter: none; border-radius: var(--r-card); box-shadow: var(--shadow-pop); }
  /* Le survol d'un menu : gris, texte noir. Le bleu plein de macOS n'apporte rien et prend le rôle de l'assistant. */
  & .menu-it { color: var(--ink-2); border-radius: var(--r-pill); }
  & .menu-it:hover { background: var(--field); color: var(--ink); }
  & .menu-it:hover .menu-ico { color: var(--ink-2); }
  & .menu-it:hover .kbd { color: var(--mute-2); background: rgba(22, 23, 26, .06); }
  & .menu-sep { background: var(--hair-soft); }
  & .dpop { border-radius: var(--r-card); background: var(--bg); color: var(--ink); box-shadow: var(--shadow-pop); }
  & .dpop-t { color: var(--mute-2); }
  & .dpop-it { color: var(--ink-2); border-radius: var(--r-pill); }
  & .dpop-it:hover { background: var(--field); color: var(--ink); }
  & .dpop-it.on { background: var(--sel); color: var(--ink); }
  & .dpop-it.mute { color: var(--mute-2); }
  & .dpop-it.mute:hover { color: var(--ink); }
  & .dpop-in { background: var(--field); color: var(--ink); }
  & .dpop-in::placeholder { color: var(--mute-2); }
  & .cal-h, & .cal i, & .cal-h button { color: var(--mute-2); }
  & .cal-h button:hover { background: var(--field); color: var(--ink); }
  & .cal button { color: var(--ink-2); font-weight: 600; border-radius: var(--r-box); }
  & .cal button.out, & .cal button.past { color: var(--deco); }
  & .cal button:hover { background: var(--field); color: var(--ink); }
  & .cal button.on { background: var(--ink); color: #fff; }
  & .toast { background: var(--ink); color: #fff; border-radius: var(--r-pill); box-shadow: 0 0 0 1px rgba(255, 255, 255, .08) inset, 0 8px 20px -6px rgba(22, 23, 26, .40); }
  & .pl-pop { border-radius: var(--r-card); box-shadow: var(--shadow-pop); }
  & .qf { background: var(--bg); box-shadow: var(--shadow-pop); }
  & .qf-in { background: var(--field); }
  & .qf-it.on { background: var(--sel); }
  & .mn-menu { background: var(--bg); box-shadow: var(--shadow-pop); }

  /* Réglages */
  & .modal { border-radius: 12px; box-shadow: 0 0 0 1px var(--ring-float), 0 6px 14px rgba(22, 23, 26, .10), 0 30px 60px -12px rgba(22, 23, 26, .36); }
  & .modal-tabs { background: var(--sidebar); border-bottom-color: var(--hair); }
  & .modal-tab { border-radius: var(--r-pill); color: var(--mute); }
  & .modal-tab.on { background: var(--bg); color: var(--ink); box-shadow: var(--shadow-plate); }
  /* Les trois pastilles de fenêtre ne font rien : il n'en reste qu'une, qui ferme, et elle le dit */
  & .modal-tabs .tl-row i:not(:first-child) { display: none; }
  & .modal-tabs .tl-row { left: 10px; top: 10px; }
  & .modal-tabs .tl-row i:first-child { width: 24px; height: 24px; border-radius: var(--r-pill); background: transparent; display: grid; place-items: center; }
  & .modal-tabs .tl-row i:first-child::before { content: "×"; font: 400 19px/1 var(--font); color: var(--mute); }
  & .modal-tabs .tl-row i:first-child:hover { background: rgba(22, 23, 26, .07); }
  /* Les onglets des réglages : pictogrammes neutres ; seul l'assistant garde son bleu */
  & .modal-tab svg { color: var(--icon) !important; }
  & .modal-tab.on svg { color: var(--ink-2) !important; }
  & .modal-tab[data-k="assistant"] svg { color: var(--q-blue) !important; }
  & .set-h { color: var(--mute-2); border-bottom-color: var(--hair); }
  & .set-row small { color: var(--mute-2); }
  /* Un interrupteur n'est pas « fait » : allumé, il est noir */
  & .sw { background: #c9ccd2; }
  & .sw.on { background: var(--ink); }
  & .conn { border-bottom-color: var(--hair-soft); }
  & .conn-ico { border-radius: var(--r-pill); color: var(--mute); }
  & .btn.pg-on { color: var(--q-green-ink); }
  & .cap-st { color: var(--q-green-ink); }

  /* ════════ Barre de notes ════════ */
  & .panel.open { box-shadow: -1px 0 0 var(--sidebar-line); }
  & .p-search, & .srch-field, & .pal.inline .pal-head { background: rgba(22, 23, 26, .055); border-radius: var(--r-pill); }
  & .p-filt.on { color: var(--ink); }
  & .ty { border-radius: var(--r-pill); box-shadow: inset 0 0 0 1px var(--hair); color: var(--mute); }
  & .tv-r { color: var(--ink-side); border-radius: var(--r-pill); }
  & .tv-r:hover, & .trow:hover, & .nrow:hover { background: rgba(22, 23, 26, .045); }
  & .tv-r.on, & .panel .trow.on, & .panel .nrow.on { background: var(--bg); box-shadow: var(--shadow-plate); }
  /* Le fil affiché à gauche : en gras, sans fond. Le fond bleu disait « assistant » à tort. */
  & .tv-r.cur { background: transparent; }
  & .tv-r.cur:hover { background: rgba(22, 23, 26, .045); }
  & .tv-r.cur .tv-t { color: var(--ink); font-weight: 700; }
  & .tv-r.void .tv-t { color: var(--mute-2); }
  & .tv-r.dim .tv-t { color: var(--mute-2); }
  & .tv-t mark, & .pal mark, & .srch-res mark, & .cap-tree mark { background: var(--q-yellow-soft); box-shadow: inset 0 -1.5px 0 var(--q-yellow); border-radius: 1px; }
  & .tv-sync.on, & .p-follow { color: var(--ink); background: var(--sel); }
  & .tv-sync.on:hover, & .p-follow:hover { background: var(--hair); }
  & .tv-p, & .dr-tab-p, & .pin-btn.on { color: var(--ink-2); }
  & .pin-btn.on { background: transparent; }
  & .pin-btn.all, & .dr-tab-p.all { color: var(--ink); }
  & .trow.drop { background: var(--q-blue-soft); box-shadow: inset 0 0 0 1.5px var(--q-blue); }
  & .trow.ctx .tr-t { color: var(--q-blue-ink); }
  & .pin:not(.dr-tab) { border-radius: var(--r-card); box-shadow: inset 2px 0 0 var(--q-blue); }
  & .dr-tab.pin:not(.on) { background: transparent; }       /* un onglet épinglé n'est pas un bloc de l'assistant : l'épingle suffit */
  & .dr-tab.pin:not(.on):hover { background: rgba(22, 23, 26, .055); }
  & .pin-h small, & .pin li b, & .pin-x { color: var(--q-blue-ink); }
  & .pin ul { color: var(--ink-2); }
  & .n-ico { border-radius: var(--r-pill); }
  /* Chronologie : « maintenant » est jaune ; un rendez-vous n'est pas une urgence */
  & .tl-now span { border-radius: var(--r-box); background: var(--q-yellow); color: var(--q-on-yellow); }
  & .tl-now::before { background: var(--q-yellow); box-shadow: 0 0 0 1.5px var(--q-yellow-edge), 0 0 0 4px var(--sidebar); }
  & .tl-it i.ev { border-color: var(--ink-2); }
  & .tl-it i { box-shadow: 0 0 0 3px var(--sidebar); }

  /* ════════ Notes ════════ */
  & .r-body { color: var(--ink-2); }
  & .r-body p.mark::before { background: var(--q-blue); opacity: .5; }
  & .r-body blockquote { border-left-color: var(--hair); color: var(--mute); }
  & .r-by, & .used { border-radius: var(--r-box); background: var(--q-blue-soft); color: var(--q-blue-ink); }
  & .r-meta a, & .pl-lnk, & .jr-link, & .pfd-link { color: var(--q-blue-ink); }
  & .r-linked, & .r-kids { border-top-color: var(--hair); }

  /* ════════ Zone de droite ════════ */
  & .drawer { background: #eff0f2; }
  & .dr-tab { border-radius: var(--r-pill); color: var(--mute); }
  & .dr-tab:hover { background: rgba(22, 23, 26, .055); color: var(--ink); }
  & .dr-tab.on { background: var(--bg); color: var(--ink); box-shadow: var(--shadow-plate); }
  & .dr-row > .pane { border-radius: var(--r-card); box-shadow: var(--shadow-plate); }
  & .lay-piles .dr-row > .pane { box-shadow: 0 0 0 1px var(--ring), -8px 0 18px -8px rgba(22, 23, 26, .14); }
  & .pane-div:hover, &.is-resizing .pane-div { background: var(--deco); }
  & .main-div:hover, &.is-resizing .main-div { background: linear-gradient(to right, transparent 2px, var(--deco) 2px, var(--deco) 5px, transparent 5px); }
  & .pane.flash::after { background: rgba(22, 23, 26, .045); }
  & .view-rail { box-shadow: 1px 0 0 var(--hair-soft); }

  /* ════════ Chat ════════ */
  & .bubble { border-radius: 12px 12px 3px 12px; background: var(--field); }
  & .chat-pop .bubble { background: var(--field); }
  & .m-text { color: var(--ink-2); }
  & .m-text li::before { background: var(--deco); }
  & .m-tasks { border-radius: var(--r-card); box-shadow: inset 0 0 0 1px var(--hair); }
  & .mn { border-radius: var(--r-box); background: var(--chip); color: var(--ink-2); }
  & .msg .mn:hover { background: var(--sel); }
  & .typing span { background: var(--q-blue); }
  & .c-spark { border-radius: var(--r-card); }
  & .sugg { border-radius: var(--r-pill); box-shadow: inset 0 0 0 1px var(--hair); color: var(--ink-2); }
  & .composer { border-radius: var(--r-card); background: var(--field); }
  & .cp-bar.composer { background: var(--bg); }
  & .cf-it:hover { background: var(--field); }
  & .cf-side { border-right-color: var(--hair-soft); }

  /* ════════ Planning ════════ */
  /* Les deux espaces se distinguent par la valeur, pas par la teinte : la couleur reste libre pour les rôles. L'assistant garde son bleu. */
  & .pl-t-perso { --c-bg: #eef0f2; --c-bg2: #f7f8f9; --c-bar: #8a8d94; --c-bar2: #c3c6cc; --c-ink: #3b3e45; --c-line: #d5d7dc; }
  & .pl-t-audeon { --c-bg: #e2e4e8; --c-bg2: #f0f1f3; --c-bar: #2d2f34; --c-bar2: #85888f; --c-ink: #1f2125; --c-line: #c3c6cc; }
  & .pl-t-ai { --c-bg: var(--q-blue-soft); --c-bg2: #f5f8ff; --c-bar: var(--q-blue); --c-bar2: var(--q-blue-line); --c-ink: var(--q-blue-ink); --c-line: var(--q-blue-line); }
  & .pl-ev { border-radius: var(--r-box); }
  & .pl-ev-h { opacity: .82; }
  & .pl-ev.past { opacity: .62; }
  /* « Maintenant » : un trait d'encre, l'heure sur une pastille jaune. Le rouge reste à ce qui presse. */
  & .pl-now { border-top-color: var(--ink); }
  & .pl-now::before { background: var(--ink); }
  & .pl-now b { left: -44px; width: 38px; padding: 0 3px; text-align: center; border-radius: var(--r-box); background: var(--q-yellow); color: var(--q-on-yellow); }
  & .main.has-open .pl-now b { background: var(--q-yellow); }
  & .pl-wk-d.today b { border-radius: var(--r-pill); background: var(--q-yellow); color: var(--q-on-yellow); }
  & .pl-wk-col.today { background: color-mix(in srgb, var(--q-yellow) 9%, transparent); }
  & .pl-wk-col { box-shadow: inset 1px 0 0 var(--hair-soft); }
  & .pl-up-ev { border-radius: var(--r-pill); background: var(--field); color: var(--ink-2); }
  & .pl-up-ev b { color: var(--ink); }
  & .pl-up-n, & .pl-up-h.month .pl-up-l { color: var(--ink); }
  & .pl-up-n { letter-spacing: -.022em; }
  & .pl-wk-n, & .pl-wk-due span { color: var(--mute); }

  /* ════════ Board ════════ */
  & .bd-colm { background: var(--sidebar); border-radius: var(--r-card); }
  & .bd-card { border-radius: 8px; box-shadow: var(--shadow-plate); }
  & .bd-ghost { box-shadow: var(--shadow-float); }
  & .bd-colt { color: var(--ink); }
  /* Chaque colonne dit son rôle par une pastille : jaune aujourd'hui, bleu l'assistant, rouge il t'attend, vert fait */
  & .bd-colm[data-col] .bd-colt::before { content: ""; flex: none; width: 7px; height: 7px; border-radius: 50%; }
  & .bd-colm[data-col="todo"] .bd-colt::before { background: var(--q-yellow); box-shadow: 0 0 0 1px var(--q-yellow-edge); }
  & .bd-colm[data-col="working"] .bd-colt::before { background: var(--q-blue); }
  & .bd-colm[data-col="needs"] .bd-colt::before { background: var(--q-red); }
  & .bd-colm[data-col="ready"] .bd-colt::before { background: var(--bg); box-shadow: inset 0 0 0 2px var(--q-blue); }
  & .bd-colm[data-col="done"] .bd-colt::before { background: var(--q-green); }
  & .bd-colm[data-col="needs"] .bd-colt .bd-dot { display: none; }
  & .bd-k-needs { box-shadow: 0 0 0 1.5px var(--q-red), 0 1px 2px rgba(22, 23, 26, .06); }
  & .bd-tag.need, & .bd-lo { color: var(--q-red-ink); }
  & .bd-l-ready .bd-lo { color: var(--q-blue-ink); }
  & .bd-proposed { border-color: var(--q-blue); box-shadow: none; }
  & .bd-k-done { box-shadow: 0 0 0 1px var(--ring); }
  & .bd-k-done .bd-t, & .bd-card.checked .bd-t { color: var(--mute-2); }
  & .bd-reply { border-radius: var(--r-pill); }
  & .bd-drag .bd-colm.bd-can, & .bd-drag .bd-colm.bd-can[data-col="done"] { box-shadow: inset 0 0 0 1.5px var(--q-blue-line); }
  & .bd-drag .bd-colm.bd-over, & .bd-drag .bd-colm.bd-over[data-col="done"] { background: var(--q-blue-soft); box-shadow: inset 0 0 0 1.5px var(--q-blue); }
  & .bd-l-done .bd-lt, & .bd-li.checked .bd-lt, & .bd-l-done .bd-mk, & .bd-li.checked .bd-mk { color: var(--mute-2); }
  & .bd-l-prop .bd-lt { color: var(--mute); }

  /* ════════ Palette, recherche ════════ */
  & .pal { border-radius: 12px; box-shadow: 0 0 0 1px var(--ring-float), 0 4px 10px rgba(22, 23, 26, .08), 0 24px 50px -12px rgba(22, 23, 26, .34); }
  & .pal.inline { box-shadow: none; border-radius: 0; }
  & .pal-row { border-radius: var(--r-pill); }
  & .pal-row.on { background: var(--sel); }            /* la ligne courante est une sélection, pas une proposition de l'assistant */
  & .pal-tab { border-radius: var(--r-pill); }
  & .pal-tab.on { background: var(--sel); }
  & .pal-x { background: var(--deco); }
  & .pal-x:hover { background: var(--mute-2); }
  & .pal-row.done .pal-t { color: var(--mute-2); }
  & .pal-in::placeholder, & .srch-in::placeholder, & .bd-new-in::placeholder, & [contenteditable]:empty::before { color: var(--mute-2); }

  /* ════════ Aujourd'hui ════════ */
  /* Les outils de saisie (dicter, photo, réunion, lieu) : quatre teintes pour quatre boutons ne disaient rien. Neutres. */
  & .jr-tool { color: var(--mute); }
  & .jr-tool svg { color: var(--icon) !important; }
  & .jr-tool:hover svg { color: var(--ink-2) !important; }
  & .jr-d.today b { background: var(--q-yellow); color: var(--q-on-yellow); box-shadow: inset 0 0 0 1px var(--q-yellow-edge); }
  & .jr-d.on { background: var(--bg); box-shadow: var(--shadow-plate); }
  & .jr-now .jr-when b { color: var(--ink); }
  & .jr-now-l { color: var(--ink); }
  & .jr-now-l::before { background: var(--q-yellow); box-shadow: 0 0 0 1.5px var(--q-yellow-edge); }
  & .jr-now-l::after { background: var(--ink); opacity: .7; height: 1px; }
  & .jr-rib i.now { background: var(--ink); }
  & .jr-tl:hover { color: var(--q-blue-ink); }
  & .jr-pc-c { outline-color: var(--q-blue-line); }

  /* ════════ Méta-profil : appliqué = vert ; à confirmer = il t'attend ════════ */
  & :is(.pfs-h, .kn-h, .kn-rv-h h3, .pfb-bh h3, .pfc-h h2) { color: var(--ink); border-bottom-color: var(--hair); }
  & .pfa-sec-h .pfa-ru-n { color: var(--ink); }
  & .kn .btn.primary { background: var(--q-blue); color: var(--q-on-blue); }
  & .pf [data-pfk]:focus-visible, & .pf-kb { box-shadow: inset 0 0 0 2px var(--q-blue) !important; }
  & .pfs-sw:focus-visible { box-shadow: inset 0 0 0 2px var(--q-blue); }
}

/* ════════════════════════ 4. « franc » : ce qui change de nature, pas seulement de valeur ════════════════════════ */

/* v14 — Journal : un carnet, neutre (ce lieu n'est pas un rôle) */
body:is([data-theme="primaires"]) svg[viewBox="0 0 15 15"]:has(> path[fill="#c9a15a"]) {
  background: var(--icon);
  --g: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23000' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4.3 2.5h7.2A1.5 1.5 0 0 1 13 4v8a1.500 1.500 0 0 1-1.500 1.500H4.300A1.300 1.300 0 0 1 3 12.200V3.800a1.300 1.300 0 0 1 1.300-1.300ZM5.800 2.700v10.600M8.200 6h2.400M8.200 8.500h2.400'/%3E%3C/svg%3E");
  -webkit-mask: var(--g) center / 100% 100% no-repeat; mask: var(--g) center / 100% 100% no-repeat;
}
body:is([data-theme="primaires"]) svg[viewBox="0 0 15 15"]:has(> path[fill="#c9a15a"]) > * { display: none; }

/* ── src/css/98-acces.css ── */
/* Écran d'accès (mot de passe, quand l'API répond 401) et erreur de démarrage. Même sobriété que la maquette. */
.acces { position: fixed; inset: 0; display: grid; place-items: center; background: var(--bg); padding: 16px; }
.acces form { width: min(320px, 100%); display: grid; gap: 12px; justify-items: stretch; }
.acces h1 { margin: 0 0 6px; font-size: 15px; font-weight: 600; color: var(--ink-2); text-align: center; letter-spacing: .02em; }
.acces input { font: inherit; font-size: 14px; padding: 9px 11px; border: 1px solid var(--hair); border-radius: 8px; background: var(--bg); color: var(--ink); outline: none; }
.acces input:focus { border-color: var(--ai-line); box-shadow: 0 0 0 3px var(--ai-soft); }
.acces button { font: inherit; font-size: 13px; font-weight: 600; padding: 8px 11px; border: 0; border-radius: 8px; background: var(--ink); color: #fff; cursor: pointer; }
.acces button[disabled] { opacity: .5; cursor: default; }
.acces .acces-err { min-height: 18px; margin: 0; font-size: 12.5px; color: var(--mute); text-align: center; }
@media (max-width: 767px) {
  .acces input { font-size: 16px; padding: 11px 12px; }   /* pas de zoom du navigateur au toucher */
  .acces button { min-height: 44px; font-size: 15px; }
}
