/* Charte Fusioon, refonte validée le 17/11/2026 : la référence est docs/DESIGN.md (§ 3 couleurs, § 4 typographie,
   § 5 espaces, § 9 variables). Une seule police, six tailles, une couleur d'action (violet), quatre couleurs de famille.
   Les anciennes variables (--brand-*, --muted, --f-display, --t-accent…) restent comme alias le temps de la migration :
   tout nouveau code utilise les nouvelles. */
:root{
  --font:"Atkinson Hyperlegible Next","Segoe UI",system-ui,sans-serif;
  --font-mono:"Atkinson Hyperlegible Mono",ui-monospace,Menlo,Consolas,monospace;
  --font-title:"Lexend","Atkinson Hyperlegible Next","Segoe UI",system-ui,sans-serif;   /* titres de 20 px et plus (DESIGN.md § 4) */
  --fz-display:40px; --fz-h1:28px; --fz-h2:20px; --fz-lg:16px; --fz-md:14px; --fz-sm:12px;

  --bg:#F4F4F6; --surface:#FFFFFF; --surface-2:#FBFBFC;
  --line:#E4E3E9; --line-soft:#EFEEF2; --line-strong:#CFCDD6;
  --ink:#15131A; --ink-2:#4A4752; --ink-3:#66636F;
  --action:#5B21B6; --action-strong:#4C1D95; --action-soft:#F0EBFA; --action-tint:#F7F3FD; --action-ink:#FFFFFF;
  --tabs-bg:#E6E5EB; --tab-idle:#EFEEF2;

  /* Familles d'outils : sur l'icône, sa pastille et le signet seulement. */
  --fam-deliv:#0F766E; --fam-deliv-strong:#115E59; --fam-deliv-soft:#E3F4F1; --fam-deliv-ink:#FFFFFF;
  --fam-entre:#1D4ED8; --fam-entre-strong:#1E3A8A; --fam-entre-soft:#E6EDFD; --fam-entre-ink:#FFFFFF;
  --fam-trod:#C2410C;  --fam-trod-strong:#9A3412;  --fam-trod-soft:#FCEDE5;  --fam-trod-ink:#FFFFFF;
  --fam-admin:#475569; --fam-admin-strong:#334155; --fam-admin-soft:#EBEEF2; --fam-admin-ink:#FFFFFF;

  --ok:#14532D; --ok-bg:#E4F4EA;
  --warn:#7A4B00; --warn-bg:#FFF4DB; --warn-line:#E0A93B;
  --crit:#B42318; --crit-bg:#FDE8E6;

  /* Échelles imposées : crans Santé publique France, indice pollen Atmo (couleurs Atmo à ne pas modifier). */
  --epi-1:#64748B; --epi-2:#B7791F; --epi-3:#EA580C; --epi-4:#DC2626; --epi-5:#9F1239; --epi-vide:var(--line);
  --atmo-1:#50F0E6; --atmo-2:#50CCAA; --atmo-3:#F0E641; --atmo-4:#FF5050; --atmo-5:#960032; --atmo-6:#872181;

  --r-sm:8px; --r-md:10px; --r-card:14px; --r-lg:16px; --r-pill:999px;
  --sp-1:4px; --sp-2:8px; --sp-3:12px; --sp-4:16px; --sp-5:20px; --sp-6:24px; --sp-8:32px;
  --shadow-float:0 1px 3px rgba(21,19,26,.08),0 8px 20px -8px rgba(21,19,26,.28);
  /* Case de la date du bandeau d'accueil (DESIGN.md § 6.4) : dégradé du logo assombri, texte blanc (7:1 et plus sur le violet). */
  --date-grad:linear-gradient(135deg,#5B21B6 0%,#8E1E8C 60%,#C2410C 125%); --date-on:#FFFFFF; --date-pill:#5B21B6;
  /* Teintes des trois formules sur l'écran de choix de la formule (DESIGN.md § 6.15), comme tarifs.html */
  --ab-f1:#751BCB; --ab-f2:#B4237F; --ab-f3:#C2410C;

  /* Alias de l'ancienne charte, à remplacer au fil de la refonte. */
  --f-display:var(--font); --f-body:var(--font); --f-mono:var(--font-mono);
  --brand-v:var(--action); --brand-strong:var(--action-strong); --brand-soft:var(--action-soft); --brand-ink:var(--action-ink);
  --brand-o:#FD5214;
  --grad:linear-gradient(100deg,#751BCB 8%,#B4237F 52%,#FD5214 96%);   /* couleurs du logo, à retirer de l'application */
  --muted:var(--ink-2);
  --shadow:none; --shadow-lg:var(--shadow-float);

  /* Ancienne couleur propre à chaque outil : chaque lettre suit maintenant la couleur de sa famille. */
  --p-accent:var(--fam-deliv); --p-accent-2:var(--fam-deliv); --p-ink:var(--fam-deliv-ink); --p-strong:var(--fam-deliv-strong); --p-soft:var(--fam-deliv-soft);
  --v-accent:var(--fam-deliv); --v-accent-2:var(--fam-deliv); --v-ink:var(--fam-deliv-ink); --v-strong:var(--fam-deliv-strong); --v-soft:var(--fam-deliv-soft);
  --m-accent:var(--fam-deliv); --m-accent-2:var(--fam-deliv); --m-ink:var(--fam-deliv-ink); --m-strong:var(--fam-deliv-strong); --m-soft:var(--fam-deliv-soft);
  --g-accent:var(--fam-deliv); --g-accent-2:var(--fam-deliv); --g-ink:var(--fam-deliv-ink); --g-strong:var(--fam-deliv-strong); --g-soft:var(--fam-deliv-soft);
  --y-accent:var(--fam-deliv); --y-accent-2:var(--fam-deliv); --y-ink:var(--fam-deliv-ink); --y-strong:var(--fam-deliv-strong); --y-soft:var(--fam-deliv-soft);
  --b-accent:var(--fam-entre); --b-accent-2:var(--fam-entre); --b-ink:var(--fam-entre-ink); --b-strong:var(--fam-entre-strong); --b-soft:var(--fam-entre-soft);
  --e-accent:var(--fam-entre); --e-accent-2:var(--fam-entre); --e-ink:var(--fam-entre-ink); --e-strong:var(--fam-entre-strong); --e-soft:var(--fam-entre-soft);
  --n-accent:var(--fam-entre); --n-accent-2:var(--fam-entre); --n-ink:var(--fam-entre-ink); --n-strong:var(--fam-entre-strong); --n-soft:var(--fam-entre-soft);
  --k-accent:var(--fam-entre); --k-accent-2:var(--fam-entre); --k-ink:var(--fam-entre-ink); --k-strong:var(--fam-entre-strong); --k-soft:var(--fam-entre-soft);
  --o-accent:var(--fam-entre); --o-accent-2:var(--fam-entre); --o-ink:var(--fam-entre-ink); --o-strong:var(--fam-entre-strong); --o-soft:var(--fam-entre-soft);
  --x-accent:var(--fam-entre); --x-accent-2:var(--fam-entre); --x-ink:var(--fam-entre-ink); --x-strong:var(--fam-entre-strong); --x-soft:var(--fam-entre-soft);
  --q-accent:var(--fam-entre); --q-accent-2:var(--fam-entre); --q-ink:var(--fam-entre-ink); --q-strong:var(--fam-entre-strong); --q-soft:var(--fam-entre-soft);
  --t-accent:var(--fam-trod); --t-accent-2:var(--fam-trod); --t-ink:var(--fam-trod-ink); --t-strong:var(--fam-trod-strong); --t-soft:var(--fam-trod-soft);
  --u-accent:var(--fam-trod); --u-accent-2:var(--fam-trod); --u-ink:var(--fam-trod-ink); --u-strong:var(--fam-trod-strong); --u-soft:var(--fam-trod-soft);
  --d-accent:var(--fam-admin); --d-accent-2:var(--fam-admin); --d-ink:var(--fam-admin-ink); --d-strong:var(--fam-admin-strong); --d-soft:var(--fam-admin-soft);
  --l-accent:var(--fam-admin); --l-accent-2:var(--fam-admin); --l-ink:var(--fam-admin-ink); --l-strong:var(--fam-admin-strong); --l-soft:var(--fam-admin-soft);
  --s-accent:var(--fam-admin); --s-accent-2:var(--fam-admin); --s-ink:var(--fam-admin-ink); --s-strong:var(--fam-admin-strong); --s-soft:var(--fam-admin-soft);

  /* La fiche patient reste blanche dans les deux thèmes, comme le papier imprimé. */
  --paper:#FFFFFF; --paper-ink:#15131A; --paper-muted:#4A4752; --paper-line:#DEDCE4;
  --paper-accent:#5B21B6; --paper-strong:#4C1D95; --paper-soft:#F0EBFA; --paper-soft-line:#D6C8F2; --paper-on:#FFFFFF;
  --paper-warn:#7A4B00; --paper-warn-bg:#FFF4DB; --paper-warn-line:#E0A93B; --paper-crit:#B42318; --paper-crit-bg:#FDE8E6;
}
@media (prefers-color-scheme: dark){:root:not([data-theme="light"]){
  --bg:#0F0E12; --surface:#1A1820; --surface-2:#211F28;
  --line:#2C2A33; --line-soft:#26242D; --line-strong:#3D3A46;
  --ink:#F3F2F7; --ink-2:#C3C0CC; --ink-3:#A3A0AD;
  --action:#C9B8FF; --action-strong:#DED3FF; --action-soft:#2A2140; --action-tint:#231C33; --action-ink:#1A0833;
  --tabs-bg:#15141A; --tab-idle:#1E1C24;
  --fam-deliv:#5EEAD4; --fam-deliv-strong:#99F6E4; --fam-deliv-soft:#0B2E2B; --fam-deliv-ink:#042F2E;
  --fam-entre:#86A8FF; --fam-entre-strong:#C3D4FF; --fam-entre-soft:#16224A; --fam-entre-ink:#061A45;
  --fam-trod:#FF9466;  --fam-trod-strong:#FFC6AB;  --fam-trod-soft:#3A1D10;  --fam-trod-ink:#2E1002;
  --fam-admin:#A9BBD0; --fam-admin-strong:#C9D6E4; --fam-admin-soft:#1C2836; --fam-admin-ink:#10202F;
  --ok:#82DAA6; --ok-bg:#12301F; --warn:#F3C56A; --warn-bg:#3A2C0E; --warn-line:#A07622; --crit:#FF9F97; --crit-bg:#40191A;
  --epi-1:#A3B1C6; --epi-2:#E2B04A; --epi-3:#FB923C; --epi-4:#F87171; --epi-5:#FB7185;
  --shadow-float:0 1px 3px rgba(0,0,0,.4),0 8px 20px -8px rgba(0,0,0,.7);
  --grad:linear-gradient(100deg,#C6A3FF 6%,#FF7DB5 50%,#FF8A55 96%);
  --date-grad:linear-gradient(135deg,#4C1D95 0%,#7E1A78 60%,#A8360C 125%); --date-pill:#4C1D95;
  --ab-f1:#C6A3FF; --ab-f2:#FF7DB5; --ab-f3:#FF8A55;
  color-scheme:dark}}
:root[data-theme="dark"]{
  --bg:#0F0E12; --surface:#1A1820; --surface-2:#211F28;
  --line:#2C2A33; --line-soft:#26242D; --line-strong:#3D3A46;
  --ink:#F3F2F7; --ink-2:#C3C0CC; --ink-3:#A3A0AD;
  --action:#C9B8FF; --action-strong:#DED3FF; --action-soft:#2A2140; --action-tint:#231C33; --action-ink:#1A0833;
  --tabs-bg:#15141A; --tab-idle:#1E1C24;
  --fam-deliv:#5EEAD4; --fam-deliv-strong:#99F6E4; --fam-deliv-soft:#0B2E2B; --fam-deliv-ink:#042F2E;
  --fam-entre:#86A8FF; --fam-entre-strong:#C3D4FF; --fam-entre-soft:#16224A; --fam-entre-ink:#061A45;
  --fam-trod:#FF9466;  --fam-trod-strong:#FFC6AB;  --fam-trod-soft:#3A1D10;  --fam-trod-ink:#2E1002;
  --fam-admin:#A9BBD0; --fam-admin-strong:#C9D6E4; --fam-admin-soft:#1C2836; --fam-admin-ink:#10202F;
  --ok:#82DAA6; --ok-bg:#12301F; --warn:#F3C56A; --warn-bg:#3A2C0E; --warn-line:#A07622; --crit:#FF9F97; --crit-bg:#40191A;
  --epi-1:#A3B1C6; --epi-2:#E2B04A; --epi-3:#FB923C; --epi-4:#F87171; --epi-5:#FB7185;
  --shadow-float:0 1px 3px rgba(0,0,0,.4),0 8px 20px -8px rgba(0,0,0,.7);
  --grad:linear-gradient(100deg,#C6A3FF 6%,#FF7DB5 50%,#FF8A55 96%);
  --date-grad:linear-gradient(135deg,#4C1D95 0%,#7E1A78 60%,#A8360C 125%); --date-pill:#4C1D95;
  --ab-f1:#C6A3FF; --ab-f2:#FF7DB5; --ab-f3:#FF8A55;
  color-scheme:dark}

*{box-sizing:border-box}
[hidden]{display:none!important}
body{margin:0;background:var(--bg);color:var(--ink);font-family:var(--f-body);font-size:16px;line-height:1.5;-webkit-text-size-adjust:100%;-webkit-font-smoothing:antialiased}
h1,h2,h3,h4{font-family:var(--font);font-weight:700;text-wrap:balance;margin:0;line-height:1.2;letter-spacing:-.01em}
p{margin:0}
b,strong{font-weight:700}
button,input,select,textarea{font:inherit}
:focus-visible{outline:3px solid var(--accent,var(--brand-v));outline-offset:2px;border-radius:8px}
/* Une fenêtre qui reprend la main (après une fenêtre ouverte par-dessus) ne se cerne pas : seul son contenu montre le focus */
dialog:focus-visible{outline:none}
/* Sélection bien visible : la teinte --brand-soft se confond avec le fond des champs et des cartes */
::selection{background:color-mix(in srgb,var(--accent,var(--brand-v)) 30%,var(--surface));color:var(--ink)}
.sr{position:absolute!important;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
/* Texte au dégradé du logo, comme sur le site */
.grad{background:var(--grad);-webkit-background-clip:text;background-clip:text;color:transparent;-webkit-box-decoration-break:clone;box-decoration-break:clone}

/* ---------- Page ---------- */
.app{padding-inline:16px;padding-block:0 72px}
/* Liseré de marque : le violet se fond dans l'orange, comme les deux anneaux du logo */
.app::before{content:"";position:fixed;z-index:70;inset:0 0 auto;height:4px;background:linear-gradient(90deg,#751BCB,#FD5214);pointer-events:none}
.wrap{max-width:1180px;margin-inline:auto}

.top{display:flex;align-items:center;gap:14px;padding-block:22px 6px}
.brand p{color:var(--muted);font-size:.92rem;margin-top:4px}

/* ---------- Navigation en haut (smartphone et tablette tactile) ---------- */
.tabs{position:relative;z-index:56;padding-block:calc(8px + env(safe-area-inset-top,0px)) 6px}
.tabs-in{display:flex;gap:8px;align-items:stretch}
/* Onglets en pilule, comme l'en-tête du site : la page ouverte ressort en blanc */
.tablist{flex:1 1 auto;min-width:0;display:flex;align-items:center;gap:2px;padding:5px;overflow-x:auto;overflow-y:hidden;background:color-mix(in srgb,var(--ink) 6%,transparent);border-radius:999px;scrollbar-width:none}
.tablist::-webkit-scrollbar{display:none}
.tab{position:relative;flex:0 0 auto;display:flex;align-items:center;gap:6px;min-height:44px;padding:4px 16px 4px 8px;border:0;border-radius:999px;background:transparent;color:var(--muted);cursor:pointer}
.tab:hover{color:var(--ink)}
.tab .ico{width:30px;height:30px;border-radius:50%;flex:none;display:grid;place-items:center;color:inherit}
.tab .t1{font-family:var(--f-display);font-weight:600;font-size:.96rem;line-height:1.2;white-space:nowrap}
.tab[aria-selected="true"]{background:var(--surface);color:var(--ink);box-shadow:0 1px 3px rgba(0,0,0,.14)}
.tab:focus-visible{outline-color:var(--brand-v);outline-offset:-3px}

/* ---------- Barre latérale (tout PC, à la souris ou au pavé tactile, et grand écran) : tous les outils à un clic ---------- */
.rail{display:none}
/* Ombre en bas ou en haut seulement s'il reste des outils à faire défiler : le fond opaque défile avec la liste et la masque aux extrémités */
.rail-list{flex:1 1 auto;min-height:0;overflow:hidden auto;padding:2px 12px 14px;scrollbar-width:thin;scrollbar-color:transparent transparent;background:linear-gradient(var(--surface),var(--surface)) top/100% 16px no-repeat local,linear-gradient(var(--surface),var(--surface)) bottom/100% 16px no-repeat local,linear-gradient(color-mix(in srgb,var(--ink) 12%,transparent),transparent) top/100% 12px no-repeat scroll,linear-gradient(to top,color-mix(in srgb,var(--ink) 12%,transparent),transparent) bottom/100% 12px no-repeat scroll}
.rail-list:hover{scrollbar-color:var(--line-strong) transparent}
.rail-g{margin:18px 0 4px 10px;font-size:.68rem;font-weight:700;letter-spacing:.11em;text-transform:uppercase;color:var(--muted)}
/* Au repos, seule l'icône porte la couleur de l'outil ; sa pastille n'apparaît qu'au survol et sur l'outil ouvert */
.ri{position:relative;display:flex;align-items:center;gap:10px;width:100%;min-height:38px;padding:3px 10px 3px 4px;border:0;border-radius:11px;background:transparent;color:var(--ink);font-family:var(--f-display);font-weight:400;font-size:.9rem;line-height:1.2;text-align:left;cursor:pointer}
.ri-ico{width:30px;height:30px;border-radius:9px;flex:none;display:grid;place-items:center;color:var(--accent)}
.ri>span:last-child{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.ri-q .ri-ico{color:var(--muted)}
.ri-k{display:inline-grid;place-items:center;min-width:20px;height:20px;margin-left:6px;padding:0 5px;border-radius:6px;border:1px solid var(--line-strong);border-bottom-width:2px;background:var(--surface-2);color:var(--muted);font:600 .74rem/1 var(--f-body);vertical-align:1px}
/* Signet : il sort du bord de la barre au survol et reste sorti sur la page ouverte */
.ri::before{content:"";position:absolute;left:-12px;top:7px;bottom:7px;width:4px;border-radius:0 4px 4px 0;background:var(--accent);transform:translateX(-100%)}
.ri:hover,.ri:focus-visible{background:color-mix(in srgb,var(--soft) 60%,transparent)}
.ri:hover .ri-ico,.ri:focus-visible .ri-ico{background:var(--soft)}
.ri:hover::before,.ri:focus-visible::before,.ri[aria-current="page"]::before{transform:none}
.ri[aria-current="page"]{background:var(--soft);color:var(--strong);font-weight:500}
.ri[aria-current="page"] .ri-ico{background:var(--accent);color:var(--accent-ink)}
.ri:focus-visible{outline-offset:-3px}
.wm-mark,.rail-tg{display:none}
.rb-pc{display:none}
/* ---------- Favoris : jusqu'à trois outils épinglés en tête de la barre ; punaise au survol d'une ligne ---------- */
.rail-fav .rail-g{display:flex;align-items:center;gap:5px;color:var(--brand-strong,var(--brand-v))}
.rail-fav .rail-g svg{transform:rotate(35deg)}
.ri-pin{position:absolute;right:5px;top:50%;z-index:1;width:26px;height:26px;margin-top:-13px;display:grid;place-items:center;border-radius:8px;color:var(--muted);opacity:0;transition:opacity .12s,background-color .12s,color .12s}
.ri-pin svg{transform:rotate(35deg);transition:transform .15s}
.ri:hover>.ri-pin,.ri:focus-visible>.ri-pin{opacity:1}
.ri-pin:hover{background:var(--surface-2);color:var(--ink)}
.ri-pin:hover svg{transform:rotate(0)}
.ri.is-fav>.ri-pin{color:var(--accent)}
.ri.is-fav>.ri-pin svg path{fill:currentColor}
.rail-fav .ri.is-fav>.ri-pin:hover{color:var(--danger,#c0392b)}
.ri:has(>.ri-pin):hover>span:last-child,.ri:has(>.ri-pin):focus-visible>span:last-child{padding-right:24px}
.fav-note{margin:4px 4px 2px;padding:7px 10px;border-radius:10px;background:var(--surface-2);color:var(--ink);font-size:.78rem;line-height:1.35;transition:opacity .18s}
.fav-note.is-hors{opacity:0}
@media (prefers-reduced-motion:no-preference){
  .rail-fav .ri.fav-neuf{animation:fav-neuf .6s cubic-bezier(.2,.8,.2,1)}
  @keyframes fav-neuf{0%{transform:translateY(-6px);opacity:0;background:var(--soft)}60%{background:var(--soft)}100%{transform:none;opacity:1}}
  .fav-note{animation:tr-enter var(--tr-in) var(--tr-ease)}
}
.rail.is-edit .ri-pin,.rail.is-edit .fav-note{display:none}
.rail.is-edit .rail-fav{opacity:.4;pointer-events:none}
/* ---------- Barre en mode « Organiser » : catégories et outils déplacés à la souris ou aux flèches ---------- */
.rb-bar{position:sticky;top:0;z-index:6;display:flex;flex-direction:column;gap:6px;margin:0 -12px 4px;padding:12px 14px;background:var(--surface);border-bottom:1px solid var(--line)}
.rb-bar b{font-family:var(--f-display);font-weight:600;font-size:1rem}
.rb-bar small{color:var(--muted);font-size:.8rem;line-height:1.35}
.rb-act{display:flex;gap:6px;margin-top:4px}
.rb-act button{min-height:32px;padding:0 12px;border-radius:999px;font:inherit;font-weight:700;font-size:.82rem;cursor:pointer}
.rb-reset{border:1.5px solid var(--line-strong);background:var(--surface);color:var(--ink)}
.rb-reset:hover{border-color:var(--brand-v);color:var(--brand-strong)}
.rb-ok{margin-left:auto;border:0;background:var(--brand-v);color:var(--brand-ink)}
.rb-ok:hover{filter:brightness(1.08)}
.rail.is-edit .rail-g{display:none}
.rail.is-edit .rail-list>.ri{opacity:.4;pointer-events:none}
.rail.is-edit .rail-sec{margin-top:10px;padding:2px 4px 6px;border:1.5px dashed var(--line-strong);border-radius:14px;background:var(--surface)}
.rb-gh{display:flex;align-items:center;gap:6px;min-height:34px;padding:2px 2px 2px 6px;cursor:grab;user-select:none;-webkit-user-select:none;touch-action:none}
.rb-gh b{flex:1;min-width:0;font-size:.7rem;font-weight:800;letter-spacing:.1em;text-transform:uppercase;color:var(--muted)}
.rb-grip{flex:none;display:grid;place-items:center;color:var(--line-strong)}
.rb-mv{display:flex;gap:1px;flex:none}
.rb-mv>*{width:24px;height:24px;display:grid;place-items:center;padding:0;border:0;border-radius:7px;background:transparent;color:var(--muted);cursor:pointer}
.rb-mv>*:hover{background:var(--surface-2);color:var(--ink)}
.rail.is-edit .ri{cursor:grab;user-select:none;-webkit-user-select:none;touch-action:none}
.rail.is-edit .ri::before{display:none}
.rail.is-edit .ri>.ri-ico+span{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
/* Flèches au survol, par-dessus la fin du nom : le nom garde toute la largeur le reste du temps */
.rail.is-edit .ri .rb-mv{position:absolute;right:4px;top:50%;transform:translateY(-50%);padding:2px;border-radius:9px;background:var(--surface-2);opacity:0;transition:opacity .12s}
.rail.is-edit .ri:hover .rb-mv,.rail.is-edit .ri:focus-visible .rb-mv{opacity:1}
.rail.is-edit .ri:hover{background:var(--surface-2)}
.rail.is-edit .rb-drag{position:relative;z-index:5;background:var(--surface);box-shadow:var(--shadow-lg);cursor:grabbing}
.rail.is-edit .rail-sec.rb-drag{border-style:solid;border-color:var(--brand-v)}
html.rb-tire,html.rb-tire *{cursor:grabbing!important}
@media (prefers-reduced-motion:no-preference){
  .rail.is-edit .rail-sec,.rail.is-edit .ri{transition:box-shadow .15s,background-color .15s}
  .rb-bar{animation:tr-enter var(--tr-in) var(--tr-ease)}
}
/* ---------- Barre du compte (PC) : notifications, pages du quotidien, compte et déconnexion ----------
   Pilule au centre en haut de chaque page et de chaque outil ; elle défile avec la page.
   La barre latérale garde ainsi toute sa hauteur pour les outils. Sur smartphone, ces pages restent dans la barre du haut. */
.ubar{display:none}
/* Fin contour au dégradé du logo, du violet à l'orange, et un halo des deux couleurs sous la pilule */
.ub-in{display:flex;align-items:center;gap:2px;max-width:100%;padding:4px;border:1.5px solid transparent;border-radius:999px;
  background:linear-gradient(var(--surface),var(--surface)) padding-box,var(--grad) border-box;
  box-shadow:none}
/* Chaque icône prend sa teinte dans ce dégradé (--k : 0 % violet, 100 % orange), de la cloche à la déconnexion */
.ub-b{--k:50%;--c:color-mix(in oklab,var(--brand-o) var(--k),var(--brand-v));position:relative;flex:none;display:inline-flex;align-items:center;justify-content:center;gap:7px;min-width:38px;height:38px;padding:0 10px;border:0;border-radius:999px;background:transparent;color:var(--muted);font-family:var(--f-display);font-weight:500;font-size:.88rem;line-height:1;white-space:nowrap;cursor:pointer}
.ub-b[data-nt-open]{--k:0%}
.ub-b[data-open="history"],.ub-pop[data-pop="history"]{--k:16%}
.ub-b[data-open="reglages"],.ub-pop[data-pop="reglages"]{--k:32%}
.ub-b[data-open="raccourcis"],.ub-pop[data-pop="raccourcis"]{--k:68%}
.ub-b[data-open="contact"],.ub-pop[data-pop="contact"]{--k:84%}
.ub-b[data-logout]{--k:100%}
.ub-b>svg{flex:none;color:var(--c)}
.ub-b:hover,.ub-b[aria-expanded="true"]{background:color-mix(in srgb,var(--c) 11%,var(--surface));color:var(--ink)}
/* Page ouverte : la pilule se teinte du violet à l'orange */
.ub-b[aria-current="page"]{background:linear-gradient(100deg,color-mix(in srgb,var(--brand-v) 15%,var(--surface)),color-mix(in srgb,var(--brand-o) 15%,var(--surface)));color:var(--brand-strong);font-weight:600}
.ub-b:focus-visible{outline-color:var(--brand-v);outline-offset:-3px}
.ub-b .ri-badge{top:1px;right:1px}
.ub-sep{flex:none;width:1px;height:20px;margin:0 5px;background:var(--line)}
/* Bulle « Mes tâches », à droite de la barre : même contour en dégradé et même hauteur (38 + 2 × 4 + 2 × 1,5 px), le nombre de tâches du jour en pastille */
.ubar{gap:10px}
.ub-tk{position:relative;flex:none;display:grid;place-items:center;width:49px;height:49px;padding:0;border:1.5px solid transparent;border-radius:50%;
  background:linear-gradient(var(--surface),var(--surface)) padding-box,var(--grad) border-box;color:color-mix(in oklab,var(--brand-o) 45%,var(--brand-v));cursor:pointer;
  box-shadow:none}
.ub-tk:hover,.ub-tk[aria-expanded="true"]{background:linear-gradient(135deg,color-mix(in srgb,var(--brand-v) 13%,var(--surface)),color-mix(in srgb,var(--brand-o) 13%,var(--surface))) padding-box,var(--grad) border-box;color:var(--ink)}
.ub-tk:focus-visible{outline:3px solid var(--brand-v);outline-offset:2px}
.ub-tk .ri-badge{top:-5px;right:-5px}
.ri-badge.is-late{background:#E11D48}
.tk-top{margin-left:auto}
/* Compte connecté : sa photo (ou ses initiales) devant son adresse */
.ub-me{flex:0 1 auto;min-width:0;display:flex;align-items:center;gap:8px;padding:0 6px 0 3px;color:var(--muted);font-size:.82rem}
.ub-me .hm-av{width:30px;height:30px;font-size:.64rem}
.ub-me span:last-child{min-width:0;max-width:200px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
/* ---------- Barre du haut (PC, refonte 2026-11 ; docs/DESIGN.md § 6.1 à 6.3) ----------
   Persistante en haut de chaque écran : logo, Accueil, menus des quatre familles, favoris, recherche (Alt R), puis la
   cloche, « Mes tâches » et le compte (la barre du compte, déplacée dans l'en-tête et sans sa pilule). */
.fam,.tb-q{display:none}
.fam{flex:0 1 auto;min-width:0;align-items:center;gap:2px}
.fm-b{--fam:var(--action);--fam-soft:var(--action-soft);--fam-strong:var(--action-strong);display:inline-flex;align-items:center;gap:7px;height:40px;padding:0 10px;border:0;border-radius:var(--r-md);background:none;color:var(--ink);font:600 15px/1 var(--font);white-space:nowrap;cursor:pointer}
.fm-deliv{--fam:var(--fam-deliv);--fam-soft:var(--fam-deliv-soft);--fam-strong:var(--fam-deliv-strong)}
.fm-entre{--fam:var(--fam-entre);--fam-soft:var(--fam-entre-soft);--fam-strong:var(--fam-entre-strong)}
.fm-trod{--fam:var(--fam-trod);--fam-soft:var(--fam-trod-soft);--fam-strong:var(--fam-trod-strong)}
.fm-admin{--fam:var(--fam-admin);--fam-soft:var(--fam-admin-soft);--fam-strong:var(--fam-admin-strong)}
.fm-b>.fm-c{flex:none;width:8px;height:8px;border-radius:2px;background:var(--fam)}
.fm-b>svg{flex:none;color:var(--ink-3);transition:transform .15s}
.fm-b:hover{background:color-mix(in srgb,var(--ink) 5%,transparent)}
.fm-b.is-cur,.fm-b[aria-expanded="true"]{background:var(--fam-soft);color:var(--fam-strong)}
.fm-b.is-cur>svg,.fm-b[aria-expanded="true"]>svg{color:currentColor}
.fm-b[aria-expanded="true"]>svg:last-child{transform:rotate(180deg)}
.fm-b:focus-visible,.fm-fav:focus-visible,.tb-q:focus-visible{outline:3px solid var(--action);outline-offset:1px}
.fm-sep{flex:none;width:1px;height:22px;margin:0 6px;background:var(--line)}
.fm-fav{flex:none;display:inline-grid;place-items:center;width:38px;height:38px;padding:0;border:0;border-radius:var(--r-md);background:none;color:var(--accent);cursor:pointer}
.fm-fav:hover{background:var(--soft)}
.fm-fav[aria-current="page"]{background:var(--soft);box-shadow:inset 0 0 0 1.5px var(--accent)}
/* Menu déroulant d'une famille : les outils sur deux colonnes, chacun avec une ligne de description */
.fm-pop{position:fixed;inset:auto;z-index:72;width:min(600px,calc(100vw - 24px));max-height:calc(100vh - 90px);overflow:auto;margin:0;padding:10px;border:1px solid var(--line);border-radius:var(--r-lg);background:var(--surface);color:var(--ink);box-shadow:var(--shadow-float)}
.fm-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:2px}
.fm-i{display:flex;align-items:flex-start;gap:12px;width:100%;padding:10px;border:0;border-radius:var(--r-md);background:none;color:var(--ink);font:inherit;text-align:left;cursor:pointer}
.fm-i:hover,.fm-i:focus-visible{background:var(--action-soft);outline:none}
.fm-i[aria-current="page"]{box-shadow:inset 0 0 0 1.5px var(--action)}
.fm-ico{flex:none;display:grid;place-items:center;width:34px;height:34px;border-radius:9px;background:var(--soft);color:var(--accent)}
.fm-ico svg{width:18px;height:18px}
.fm-i b{display:block;font-size:14px;line-height:18px}
.fm-i small{display:block;margin-top:1px;font-size:12px;line-height:16px;color:var(--ink-2)}
.fm-row{position:relative}
.fm-row>.fm-i{padding-right:40px}
.fm-pin{position:absolute;top:10px;right:8px;display:grid;place-items:center;width:28px;height:28px;padding:0;border:0;border-radius:8px;background:none;color:var(--ink-3);opacity:0;cursor:pointer}
.fm-pin svg{transform:rotate(35deg);transition:transform .15s}
.fm-row:hover>.fm-pin,.fm-row:focus-within>.fm-pin,.fm-pin[aria-pressed="true"]{opacity:1}
.fm-pin:hover{background:var(--surface);color:var(--ink)}
.fm-pin:hover svg{transform:rotate(0)}
.fm-pin[aria-pressed="true"]{color:var(--accent)}
.fm-pin[aria-pressed="true"] svg path{fill:currentColor}
.fm-foot{display:flex;flex-wrap:wrap;gap:6px 16px;margin-top:8px;padding:10px 10px 4px;border-top:1px solid var(--line-soft);font-size:12px;color:var(--ink-2)}
.fm-foot b{color:var(--ink)}
/* Recherche : un bouton sans cadre, pas un faux champ ; la vraie recherche s'ouvre dans la barre elle-même (§ 6.3) */
.tb-q{flex:none;align-items:center;gap:8px;height:40px;margin-left:auto;padding:0 10px;border:0;border-radius:var(--r-md);background:none;color:var(--ink);font:600 15px/1 var(--font);white-space:nowrap;cursor:pointer}
.tb-q>svg{flex:none;color:var(--ink-2)}
.tb-q kbd{flex:none;padding:2px 7px;border:1px solid var(--line);border-radius:6px;background:var(--surface);color:var(--ink-2);font:700 12px/1.2 var(--font)}
.tb-q:hover,.tb-q[aria-expanded="true"]{background:color-mix(in srgb,var(--ink) 5%,transparent)}
/* Cloche, « Mes tâches » et compte : les autres pages (Historique, Réglages, Raccourcis, Contact, déconnexion) sont dans le menu du compte */
.top .ubar{flex:none;align-items:center;gap:4px}
.top .ub-in{gap:4px;padding:0;border:0;background:none;box-shadow:none}
.top .ub-in>.ub-b:not([data-nt-open]),.top .ub-sep{display:none}
.top .ub-b[data-nt-open]{width:42px;min-width:42px;height:42px;padding:0;border-radius:var(--r-md)}
.top .ub-b[data-nt-open]>svg{color:var(--ink-2)}
.top .ub-b[data-nt-open]:hover,.top .ub-b[data-nt-open][aria-expanded="true"]{background:var(--action-soft)}
.top .ub-tk{width:42px;height:42px;border:0;border-radius:var(--r-md);background:none;box-shadow:none;color:var(--ink-2)}
.top .ub-tk:hover,.top .ub-tk[aria-expanded="true"]{background:var(--action-soft);color:var(--action)}
.top .ub-tk:focus-visible,.top .ub-me:focus-visible{outline:3px solid var(--action);outline-offset:1px}
.top .ub-me{flex:none;height:42px;gap:8px;margin-left:4px;padding:0 12px 0 4px;border:1px solid var(--line);border-radius:999px;background:var(--surface);color:var(--ink);font:700 14px/1 var(--font);cursor:pointer}
.top .ub-me:hover,.top .ub-me[aria-expanded="true"]{border-color:var(--line-strong);background:var(--action-soft)}
.top .ub-me .hm-av{width:32px;height:32px;font-size:12px}
.top .ub-me [data-acct-email]{display:none}
.top .ub-me [data-acct-nom]{max-width:180px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
/* Fenêtre plus étroite : le nom du compte, puis le texte de la recherche, puis celui de l'Accueil s'effacent (nom au survol) ;
   en dessous de 1000 px, la barre passe sur deux lignes */
@media (max-width:1359.98px){.top .ub-me [data-acct-nom]{display:none}.top .ub-me{padding-right:4px}}
@media (max-width:1239.98px){.tb-q{width:42px;padding:0;justify-content:center}.tb-q>span,.tb-q kbd{display:none}}
@media (max-width:1099.98px){.fm-home>span{display:none}.fm-b{padding:0 7px}}
@media screen and (min-width:481px) and (max-width:999.98px) and (hover:hover) and (pointer:fine){.wrap .top{flex-wrap:wrap}.wrap .fam{flex-wrap:wrap;min-width:auto}}
/* ---------- Signets (PC, refonte 2026-11 ; docs/DESIGN.md § 6.5) ----------
   Sous la barre du haut, un signet par écran ouvert : bande de 3 px de la couleur de sa famille, nom, état de la saisie,
   croix. L'Accueil est toujours là. Le signet ouvert prend le fond de la page et s'y fond. */
.sig{display:none;position:sticky;top:var(--top-h,62px);z-index:57;align-items:flex-end;gap:4px;min-height:52px;padding:8px 24px 0;background:var(--tabs-bg);border-bottom:1px solid var(--line)}
/* .sig-tl (le tablist) : l'Accueil ancré, son filet, puis .sig-l, les signets d'outils, qui seuls rétrécissent.
   La largeur de .sig-l (et non flex-basis) pour que la largeur naturelle de .sig-tl la compte */
.sig-tl{flex:0 1 auto;display:flex;align-items:flex-end;min-width:0}
.sig-l{flex:0 1 auto;width:max(0px,calc(var(--n,0) * 172px - 4px));display:flex;align-items:flex-end;gap:4px;min-width:0;overflow:hidden}
/* Tous de la même largeur (168 px au plus) : nombreux, ils rétrécissent ensemble ; la rangée ne défile jamais */
.sg{--fam:var(--ink-3);position:relative;flex:1 1 0;max-width:168px;min-width:0;container:sg/inline-size;display:flex;align-items:center;gap:2px;height:42px;padding:0 4px 0 0;border-top:3px solid var(--fam);border-radius:10px 10px 0 0;background:var(--tab-idle);color:var(--ink)}
.sg.is-on{height:46px;margin-bottom:-1px;background:var(--bg)}
/* Accueil ancré (20/11/2026 ; § 6.5) : il fait partie de la rangée. Au repos, ni fond ni bande, la maison dans un carré ;
   ouvert, il se fond dans la page et le carré passe au violet d'action. Hors des requêtes de largeur des signets. */
.sg-home{flex:none;max-width:none;container-type:normal;border-top-color:transparent;background:none;color:var(--ink-2)}
.sg-home:not(.is-on):hover{background:var(--tab-idle);color:var(--ink)}
.sg-home.is-on{background:var(--bg);color:var(--action)}
.sig-sep{flex:none;align-self:flex-end;width:1px;height:24px;margin:0 8px 9px;background:var(--line-strong)}
/* La famille de l'outil colore la bande et l'icône (déclarée après .sg, qui posait le gris par défaut) */
.sg.fm-deliv{--fam:var(--fam-deliv)}.sg.fm-entre{--fam:var(--fam-entre)}.sg.fm-trod{--fam:var(--fam-trod)}.sg.fm-admin{--fam:var(--fam-admin)}
.sg-b{flex:1 1 auto;min-width:0;display:flex;align-items:center;gap:8px;height:100%;padding:0 0 0 12px;border:0;background:none;color:inherit;font:inherit;text-align:left;cursor:pointer}
.sg-home .sg-b{padding:0 12px 0 8px}
.sg-i{flex:none;display:flex;color:var(--fam)}
.sg-home .sg-i{display:grid;place-items:center;width:28px;height:28px;border:1px solid var(--line-strong);border-radius:8px;background:var(--surface);color:var(--ink-2)}
.sg-home.is-on .sg-i{border-color:var(--action);background:var(--action);color:var(--action-ink)}
.sg-t{min-width:0;display:flex;flex-direction:column}
.sg-t b{font-size:14px;line-height:17px;font-weight:700;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.sg-t small{display:flex;align-items:center;gap:5px;font-size:12px;line-height:15px;color:var(--ink-2);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.sg-t small.is-cours{color:var(--fam-trod-strong);font-weight:700}
.sg-t small.is-cours::before{content:"";flex:none;width:6px;height:6px;border-radius:999px;background:var(--fam-trod)}
.sg-t small.is-fiche{color:var(--ok);font-weight:700}
.sg-x{flex:none;display:grid;place-items:center;width:28px;height:28px;padding:0;border:0;border-radius:7px;background:none;color:var(--ink-3);cursor:pointer}
.sg-x:hover{background:color-mix(in srgb,var(--ink) 8%,transparent);color:var(--ink)}
.sg-b:focus-visible,.sg-x:focus-visible,.sig-add:focus-visible{outline:3px solid var(--action);outline-offset:-3px;border-radius:8px}
.sig-add{flex:none;align-self:center;display:grid;place-items:center;width:36px;height:36px;margin:0 0 4px 2px;padding:0;border:0;border-radius:10px;background:none;color:var(--ink-2);cursor:pointer}
.sig-add:hover{background:color-mix(in srgb,var(--ink) 6%,transparent);color:var(--ink)}
.sig-k{flex:none;margin:0 0 0 auto;align-self:center;padding:0 0 6px 12px;font-size:12px;color:var(--ink-2);white-space:nowrap}
.sig-k b{color:var(--ink)}
/* Tout fermer (20/11/2026) : bouton secondaire avec son nom, pour se voir ; rouge au survol, car il ferme tout */
.sig-xall{flex:none;align-self:center;display:inline-flex;align-items:center;gap:6px;height:36px;margin:0 0 4px 8px;padding:0 12px 0 10px;border:1px solid var(--line-strong);border-radius:10px;background:var(--surface);color:var(--ink);font:700 14px/1 var(--font);white-space:nowrap;cursor:pointer}
.sig-xall:hover{border-color:var(--crit);background:var(--crit-bg);color:var(--crit)}
.sig-xall:focus-visible{outline:3px solid var(--action);outline-offset:1px}
.sig.is-serre .sig-xall{margin-left:auto}
/* Pastilles « Entrée » / « Échap » dans les boutons de la confirmation (§ 6.9) */
.pl-cfm.has-k .btn kbd{margin-left:8px;padding:1px 6px;border:1px solid var(--line);border-radius:6px;background:none;color:var(--ink-3);font:700 12px/16px var(--font)}
.pl-cfm.has-k .btn.primary kbd{border-color:color-mix(in srgb,var(--action-ink) 45%,transparent);color:var(--action-ink)}
@media (hover:none){.pl-cfm.has-k .btn kbd{display:none}}
/* Place qui manque : les rappels s'effacent (classe posée par le module signets), puis chaque signet se resserre */
.sig.is-serre .sig-k{display:none}
@container sg (max-width:132px){
  .sg-t{flex-direction:row;align-items:center;gap:5px}
  .sg-t small:not(.is-cours):not(.is-fiche){display:none}
  .sg-t small.is-cours,.sg-t small.is-fiche{flex:none;font-size:0;gap:0}
}
/* Étroit : le mot clé passe avant l'icône ; la croix se pose par-dessus au survol, sans décaler le mot */
@container sg (max-width:110px){
  .sg-i{display:none}
  .sg-b{padding-left:10px}
  .sg-t b{font-size:13px}
  .sg-x{position:absolute;top:50%;right:2px;background:inherit;transform:translateY(-50%)}
  .sg:not(:hover):not(:focus-within) .sg-x{display:none}
}
@container sg (max-width:52px){
  .sg-i{display:flex}
  .sg-t{display:none}
  .sg-b{justify-content:center;padding:0}
}
/* Menu du compte (aperçu « compte ») : les pages du quotidien, puis la taille du texte et l'ordre des outils */
.ub-pop .up-acts{display:flex;flex-direction:column;gap:2px}
.ub-pop .up-act{display:flex;align-items:center;gap:12px;width:100%;min-height:44px;padding:6px 10px;border:0;border-radius:var(--r-md);background:none;color:var(--ink);font:600 14px/1.2 var(--font);text-align:left;cursor:pointer}
.ub-pop .up-act:hover,.ub-pop .up-act:focus-visible{background:var(--action-soft);outline:none}
.ub-pop .up-act>svg{flex:none;color:var(--ink-2)}
.ub-pop .up-act kbd{margin-left:auto;padding:1px 6px;border:1px solid var(--line);border-radius:6px;color:var(--ink-2);font:700 12px/1.2 var(--font)}
.ub-pop .up-act.is-out{color:var(--crit)}
.ub-pop .up-act.is-out>svg{color:var(--crit)}
/* ---------- Aperçu d'une rubrique de la barre du compte ----------
   Il sort de l'icône touchée et pointe vers elle (--ox : abscisse de l'icône dans le panneau) ; « Voir plus » ouvre la page complète.
   La pointe et l'animation servent aussi au panneau des notifications (up-anim). */
.up-anim{transform-origin:var(--ox,50%) -10px}
.up-anim::before{content:"";position:absolute;top:-8px;left:calc(var(--ox,50%) - 8px);width:16px;height:16px;background:var(--surface);border:1px solid var(--line);border-right:0;border-bottom:0;border-radius:4px 0 0 0;transform:rotate(45deg);pointer-events:none}
.qr-dlg.nt-dlg.up-anim{overflow:visible}
.qr-dlg.ub-pop{--k:50%;--c:color-mix(in oklab,var(--brand-o) var(--k),var(--brand-v));width:min(360px,calc(100vw - 24px));padding:0;gap:0;border-radius:20px;overflow:visible}
.ub-pop::backdrop,.nt-dlg.up-anim::backdrop{background:transparent}
.ub-pop:focus{outline:none}
.up-head{flex:none;display:flex;align-items:center;gap:12px;padding:16px 12px 12px 16px}
.up-head>div{flex:1 1 auto;min-width:0}
.up-head b{display:block;font-family:var(--f-display);font-weight:600;font-size:1.05rem;line-height:1.25}
.up-head small{display:block;margin-top:1px;color:var(--muted);font-size:.84rem;line-height:1.35}
.up-ico{flex:none;width:40px;height:40px;border-radius:12px;display:grid;place-items:center;background:color-mix(in srgb,var(--c) 13%,var(--surface));color:var(--c)}
.up-ico img{display:block}
.up-x{flex:none;align-self:flex-start;width:32px;height:32px;border:0;border-radius:50%;background:transparent;color:var(--muted);display:grid;place-items:center;cursor:pointer}
.up-x:hover{background:var(--surface-2);color:var(--ink)}
.up-body{flex:1 1 auto;min-height:0;overflow:auto;display:flex;flex-direction:column;gap:10px;padding:2px 16px 16px}
.up-foot{flex:none;display:flex;justify-content:flex-end;padding:10px 12px;border-top:1px solid var(--line)}
/* Voir plus : pilule cernée du dégradé, comme la barre */
.up-more{display:inline-flex;align-items:center;gap:8px;min-height:38px;padding:0 14px 0 16px;border:1.5px solid transparent;border-radius:999px;background:linear-gradient(var(--surface),var(--surface)) padding-box,var(--grad) border-box;color:var(--brand-strong);font-family:var(--f-display);font-weight:600;font-size:.9rem;cursor:pointer}
.up-more:hover{background:linear-gradient(100deg,color-mix(in srgb,var(--brand-v) 12%,var(--surface)),color-mix(in srgb,var(--brand-o) 12%,var(--surface))) padding-box,var(--grad) border-box}
.up-more:focus-visible{outline-color:var(--brand-v)}
.up-vide,.up-txt{font-size:.92rem;line-height:1.5}
.up-vide{color:var(--muted)}
.up-lab{margin-top:2px;color:var(--muted);font-size:.72rem;font-weight:700;letter-spacing:.08em;text-transform:uppercase}
/* Historique : les derniers outils, un clic pour les rouvrir */
.up-list{display:flex;flex-direction:column;gap:2px;margin:0 -8px}
.up-row{display:flex;align-items:center;gap:10px;width:100%;padding:6px 8px;border:0;border-radius:12px;background:transparent;color:var(--ink);font:inherit;text-align:left;cursor:pointer}
.up-row:hover{background:color-mix(in srgb,var(--soft) 70%,transparent)}
.up-ri{flex:none;width:32px;height:32px;border-radius:10px;display:grid;place-items:center;background:var(--soft);color:var(--accent)}
.up-rt{min-width:0;display:flex;flex-direction:column}
.up-rt b{font-family:var(--f-display);font-weight:500;font-size:.92rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.up-rt small{color:var(--muted);font-size:.8rem}
/* Réglages : le compte, ce qui est repris sur les fiches, et l'affichage à portée de clic */
.up-me{display:flex;align-items:center;gap:12px}
.up-me>div{min-width:0}
.up-me .hm-av{width:46px;height:46px}
.up-me b{display:block;font-family:var(--f-display);font-weight:600}
.up-me .up-todo{display:inline-block;margin-top:3px}
.up-me small{display:block;color:var(--muted);font-size:.84rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.up-dl{margin:0;display:grid;gap:6px;padding:10px 12px;border-radius:14px;background:var(--surface-2)}
.up-dl div{display:flex;justify-content:space-between;gap:12px;font-size:.88rem}
.up-dl dt{color:var(--muted)}
.up-dl dd{min-width:0;margin:0;font-weight:600;text-align:right;overflow-wrap:anywhere}
.up-todo{color:var(--warn);font-weight:700}
.up-seg{display:flex;gap:2px;margin-top:-4px;padding:3px;border-radius:999px;background:color-mix(in srgb,var(--ink) 6%,transparent)}
.up-seg button{flex:1 1 0;min-width:0;min-height:32px;padding:0 6px;border:0;border-radius:999px;background:transparent;color:var(--muted);font:inherit;font-weight:600;font-size:.84rem;white-space:nowrap;cursor:pointer}
.up-seg button:hover{color:var(--ink)}
.up-seg button[aria-pressed="true"]{background:var(--surface);color:var(--brand-strong);box-shadow:0 1px 3px rgba(0,0,0,.14)}
/* Réglages rapides (2026-11-10) : une ligne par réglage, l'action à droite */
.up-qs{display:flex;align-items:center;gap:12px;padding:8px 10px 8px 12px;border:1px solid var(--line);border-radius:14px;background:var(--surface-2)}
.up-qs>svg{flex:none;color:var(--c)}
.up-qs>div{flex:1;min-width:0}
.up-qs b{display:block;font-weight:700;font-size:.92rem;line-height:1.25}
.up-qs small{display:block;margin-top:1px;color:var(--muted);font-size:.8rem;line-height:1.3}
.up-go{flex:none;min-height:34px;padding:0 14px;border:0;border-radius:999px;background:var(--brand-v);color:var(--brand-ink);font:inherit;font-weight:700;font-size:.84rem;cursor:pointer}
.up-go:hover{filter:brightness(1.08)}
.up-sw{flex:none;position:relative;width:42px;height:24px;padding:0;border:0;border-radius:999px;background:var(--line-strong);cursor:pointer;transition:background-color .15s}
.up-sw::after{content:"";position:absolute;top:3px;left:3px;width:18px;height:18px;border-radius:50%;background:#fff;box-shadow:0 1px 3px rgba(0,0,0,.25);transition:transform .18s cubic-bezier(.2,.8,.2,1)}
.up-sw[aria-pressed="true"]{background:var(--brand-v)}
.up-sw[aria-pressed="true"]::after{transform:translateX(18px)}
.up-sw:focus-visible,.up-go:focus-visible{outline:3px solid var(--brand-v);outline-offset:2px}
.up-keys{list-style:none;margin:-2px 0 0;padding:0;display:grid;grid-template-columns:max-content 1fr;gap:7px 10px;align-items:center;color:var(--muted);font-size:.84rem}
.up-keys li{display:contents}
.up-keys span:first-child{display:flex;gap:3px}
.up-keys kbd{display:inline-grid;place-items:center;min-width:22px;height:22px;padding:0 6px;border-radius:6px;border:1px solid var(--line-strong);border-bottom-width:2px;background:var(--surface);color:var(--ink);font:700 .74rem/1 var(--f-body)}
/* Fenêtres du haut refermées par le défilement : elles remontent vers leur icône en s'effaçant */
.qr-dlg.ub-pop,.qr-dlg.nt-dlg{overscroll-behavior:contain}
@media screen and (prefers-reduced-motion:no-preference){
  @supports (overlay:auto){
    dialog.up-anim.up-fuite:not([open]){transform:translate3d(0,-18px,0) scale(.94);transition-duration:.16s}
  }
}
/* ---------- Bulle d'aide (i) : un bouton rond à côté d'un libellé, l'explication s'ouvre dessous ---------- */
.ib{display:inline-grid;place-items:center;flex:none;width:22px;height:22px;margin-left:6px;padding:0;border:1.5px solid var(--line-strong);border-radius:50%;background:var(--surface);color:var(--muted);vertical-align:-4px;cursor:pointer}
.ib:hover,.ib[aria-expanded="true"]{border-color:var(--brand-v);color:var(--brand-strong);background:var(--brand-soft)}
.ib:focus-visible{outline:3px solid var(--brand-v);outline-offset:2px}
.lab-i{display:flex;align-items:center;margin-bottom:6px}
.lab-i .lab{margin:0}
.ib-pop{position:fixed;z-index:80;width:min(340px,calc(100vw - 24px));padding:14px 16px 16px;border:1px solid var(--line);border-radius:16px;background:var(--surface);color:var(--ink);box-shadow:var(--shadow-lg);font-size:.88rem;line-height:1.45}
.ib-pop::before{content:"";position:absolute;top:-7px;left:calc(var(--ox,30px) - 7px);width:12px;height:12px;background:var(--surface);border-left:1px solid var(--line);border-top:1px solid var(--line);transform:rotate(45deg)}
.ib-pop h4{margin:0 0 8px;font-size:.98rem}
.ib-pop ul{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:8px}
.ib-pop li b{color:var(--brand-strong)}
.ib-pop p{margin:10px 0 0;color:var(--muted);font-size:.82rem}
@media screen and (prefers-reduced-motion:no-preference){
  .ib-pop{transition:opacity .14s ease,transform .16s cubic-bezier(.2,.8,.2,1);transform-origin:var(--ox,30px) 0}
  .ib-pop.is-hors{opacity:0;transform:translateY(-6px) scale(.96);pointer-events:none}
}
.ib-pop.is-hors{visibility:hidden}
@media screen and (prefers-reduced-motion:no-preference){.ib-pop.is-hors{visibility:visible}}
/* À propos : l'essentiel en deux phrases */
.up-chips{list-style:none;margin:2px 0 0;padding:0;display:flex;flex-wrap:wrap;gap:6px}
.up-chips li{display:inline-flex;align-items:center;gap:6px;padding:5px 10px;border-radius:999px;border:1px solid var(--line);background:var(--surface-2);color:var(--muted);font-size:.8rem;font-weight:700}
.up-chips svg{color:var(--c)}
/* Contact : le sujet choisi ici est déjà coché sur la page */
.up-cats{display:flex;flex-wrap:wrap;gap:6px;margin-top:-4px}
.up-cats button{min-height:34px;padding:0 13px;border-radius:999px;border:1.5px solid var(--line);background:var(--surface);color:var(--ink);font:inherit;font-weight:600;font-size:.86rem;cursor:pointer}
.up-cats button:hover{border-color:var(--c);background:color-mix(in srgb,var(--c) 8%,var(--surface))}
.up-note{display:flex;align-items:flex-start;gap:8px;padding:9px 11px;border-radius:12px;background:var(--warn-bg);font-size:.84rem;line-height:1.4}
.up-note svg{flex:none;margin-top:1px;color:var(--warn)}
/* L'aperçu grandit depuis l'icône, puis se replie vers elle */
@media screen and (prefers-reduced-motion:no-preference){
  .up-more svg{transition:transform var(--tr-in) var(--tr-ease)}
  .up-more:hover svg{transform:translateX(3px)}
  @supports (overlay:auto){
    dialog.up-anim{transform:translate3d(0,-6px,0) scale(.9)}
    dialog.up-anim[open]{transform:none}
  }
  @starting-style{dialog.up-anim[open]{opacity:0;transform:translate3d(0,-10px,0) scale(.55)}}
}
/* Écran peu haut : lignes resserrées pour garder le plus d'outils visibles sans défiler */
@media (max-height:860px){
  .ri{min-height:34px;padding-block:2px}
  .ri-ico{width:28px;height:28px}
  .rail-g{margin:12px 0 2px 10px}
}
/* PC (refonte 2026-11, docs/DESIGN.md § 2) : barre du haut persistante, plus de barre latérale ni de pilule du compte.
   La barre latérale reste dans la page, cachée : elle donne l'ordre des outils aux menus des familles et sert au mode
   « Organiser », où elle s'ouvre en panneau. */
@media screen and (min-width:1100px),screen and (min-width:481px) and (hover:hover) and (pointer:fine){
  html{scroll-padding-top:calc(var(--chrome-h,114px) + 16px)}
  .app{padding:0}
  .app::before{display:none}
  .wrap{max-width:none;min-height:100vh}
  .top{position:sticky;top:0;z-index:58;flex-wrap:nowrap;gap:6px 10px;min-height:62px;padding:8px 24px;background:var(--surface);border-bottom:1px solid var(--line)}
  .top .brand{flex:none;margin-right:6px;cursor:pointer}
  .top .wm-logo{height:22px;margin:0}
  .brand p{display:none}
  .rail{display:none}
  .rail.is-edit{display:flex;flex-direction:column;position:fixed;z-index:85;top:74px;left:16px;bottom:16px;width:300px;overflow:auto;padding:0 12px 12px;background:var(--surface);border:1px solid var(--line);border-radius:var(--r-lg);box-shadow:var(--shadow-float)}
  .tabs{display:none}
  .tk-top{display:none!important}
  /* « Organiser la barre des outils » : l'ordre des menus des familles */
  .rb-pc{display:inline-flex}
  /* Une seule recherche : celle de la barre du haut (Alt + R) ; le champ de l'accueil reste sur smartphone */
  #panel-home .hm-top .search{display:none}
  .fam,.tb-q,.ubar,.sig{display:flex}
  .wrap>main{width:100%;max-width:1376px;margin-inline:auto;padding:24px 32px 80px}
  .menu-fab{display:none!important}
  /* Ce qui reste collé en haut pendant le défilement passe sous la barre du haut et les signets (--chrome-h, mesuré) */
  .wrap .aside,.wrap .cm-aside{top:calc(var(--chrome-h,114px) + 24px)}
  .wrap .tv-m{top:calc(var(--chrome-h,114px) + 14px)}
}

/* ---------- Panneaux ---------- */
.tool-trod{--accent:var(--t-accent);--accent-2:var(--t-accent-2);--accent-ink:var(--t-ink);--strong:var(--t-strong);--soft:var(--t-soft)}
.tool-perfa{--accent:var(--p-accent);--accent-2:var(--p-accent-2);--accent-ink:var(--p-ink);--strong:var(--p-strong);--soft:var(--p-soft)}
.tool-vax{--accent:var(--v-accent);--accent-2:var(--v-accent-2);--accent-ink:var(--v-ink);--strong:var(--v-strong);--soft:var(--v-soft)}
.tool-pca{--accent:var(--m-accent);--accent-2:var(--m-accent-2);--accent-ink:var(--m-ink);--strong:var(--m-strong);--soft:var(--m-soft)}
.tool-trodc{--accent:var(--u-accent);--accent-2:var(--u-accent-2);--accent-ink:var(--u-ink);--strong:var(--u-strong);--soft:var(--u-soft)}
.tool-preg{--accent:var(--g-accent);--accent-2:var(--g-accent-2);--accent-ink:var(--g-ink);--strong:var(--g-strong);--soft:var(--g-soft)}
.tool-voy{--accent:var(--y-accent);--accent-2:var(--y-accent-2);--accent-ink:var(--y-ink);--strong:var(--y-strong);--soft:var(--y-soft)}
.tool-bpm{--accent:var(--b-accent);--accent-2:var(--b-accent-2);--accent-ink:var(--b-ink);--strong:var(--b-strong);--soft:var(--b-soft)}
.tool-efe{--accent:var(--e-accent);--accent-2:var(--e-accent-2);--accent-ink:var(--e-ink);--strong:var(--e-strong);--soft:var(--e-soft)}
.tool-bv{--accent:var(--n-accent);--accent-2:var(--n-accent-2);--accent-ink:var(--n-ink);--strong:var(--n-strong);--soft:var(--n-soft)}
.tool-avk{--accent:var(--k-accent);--accent-2:var(--k-accent-2);--accent-ink:var(--k-ink);--strong:var(--k-strong);--soft:var(--k-soft)}
.tool-aod{--accent:var(--o-accent);--accent-2:var(--o-accent-2);--accent-ink:var(--o-ink);--strong:var(--o-strong);--soft:var(--o-soft)}
.tool-aco{--accent:var(--x-accent);--accent-2:var(--x-accent-2);--accent-ink:var(--x-ink);--strong:var(--x-strong);--soft:var(--x-soft)}
.tool-opi{--accent:var(--q-accent);--accent-2:var(--q-accent-2);--accent-ink:var(--q-ink);--strong:var(--q-strong);--soft:var(--q-soft)}
.tool-loc{--accent:var(--d-accent);--accent-2:var(--d-accent-2);--accent-ink:var(--d-ink);--strong:var(--d-strong);--soft:var(--d-soft)}
.tool-plan{--accent:var(--l-accent);--accent-2:var(--l-accent-2);--accent-ink:var(--l-ink);--strong:var(--l-strong);--soft:var(--l-soft)}
.tool-com{--accent:var(--s-accent);--accent-2:var(--s-accent-2);--accent-ink:var(--s-ink);--strong:var(--s-strong);--soft:var(--s-soft)}
.tool-home{--accent:var(--brand-v);--accent-2:var(--brand-v);--accent-ink:var(--brand-ink);--strong:var(--brand-strong);--soft:var(--brand-soft)}
.tool{display:flex;flex-direction:column;gap:20px;padding-block:14px 0}
.tool:focus-visible{outline:none}
/* En-tête de chaque outil, comme les cartes d'outils du site : fond teinté de sa couleur, grande icône,
   la même icône en filigrane. Icônes ajoutées par le script (registre des outils). */
.phead{position:relative;isolation:isolate;overflow:hidden;display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;column-gap:22px;padding:24px 28px;border-radius:28px;background:var(--soft);border:1px solid color-mix(in srgb,var(--accent) 22%,transparent)}
.phead>div{display:contents}
.phead>div>*{grid-column:2}
.phead>.btn{grid-column:3;grid-row:1/span 3;background:var(--surface)}
.ph-ico{grid-column:1;grid-row:1/span 3;width:64px;height:64px;border-radius:19px;display:grid;place-items:center;background:var(--accent);color:var(--accent-ink);box-shadow:none}
.ph-bg{position:absolute;z-index:-1;right:-34px;top:50%;width:230px;height:230px;color:var(--accent);opacity:.09;transform:translateY(-50%) rotate(-14deg);pointer-events:none}
.ph-bg svg{width:100%;height:100%}
.phead h2{font-size:clamp(1.8rem,3.2vw,2.5rem);font-weight:600;letter-spacing:-.03em;line-height:1.08;margin-top:4px}
.phead .lead{margin-top:6px}
.eyebrow{display:inline-flex;align-items:center;gap:8px;font-size:.78rem;letter-spacing:.1em;text-transform:uppercase;color:var(--strong);font-weight:700}
.eyebrow::before{content:"";width:8px;height:8px;border-radius:50%;background:var(--accent,var(--brand-v));flex:none}
/* En-tête d'outil compact, dès la deuxième ouverture : icône, titre et boutons sur une ligne pour laisser l'écran à la saisie.
   Le texte de présentation reste à un clic (bouton « i »), il réapparaît tant que la personne le laisse ouvert. */
.phead.ph-court{padding:12px 18px;border-radius:22px;column-gap:16px}
.ph-court>div{display:flex;flex-wrap:wrap;align-items:center;gap:4px 10px;grid-column:2;grid-row:1;min-width:0}
.ph-court>div>*{grid-column:auto}
.ph-court .eyebrow{display:none}
.ph-court h2{font-size:clamp(1.35rem,2.1vw,1.7rem);margin-top:0}
.ph-court .lead{display:none;flex-basis:100%;margin-top:2px}
.ph-court.ph-ouvert .lead{display:block}
.ph-court .ph-ico{grid-row:1;width:46px;height:46px;border-radius:14px;box-shadow:none}
.ph-court .ph-ico svg{width:24px;height:24px}
.ph-court>.btn,.ph-court>.phead-acts{grid-row:1}
.phead.ph-court>.phead-acts{flex-direction:row;flex-wrap:wrap;justify-content:flex-end}
.ph-court .ph-bg{width:140px;height:140px;right:-22px}
.ph-info{display:none;flex:none;width:30px;height:30px;padding:0;border-radius:50%;border:1px solid var(--line-strong);background:var(--surface);color:var(--muted);cursor:pointer;place-items:center}
.ph-court .ph-info{display:grid}
/* En-tête compact étroit (fenêtre réduite, tablette) : les boutons passent sous le titre au lieu de le couper en deux lignes
   (2026-11-14) ; le reste de l'en-tête ne change pas */
.phead.ph-court{container-type:inline-size}
@container (max-width:760px){
  .phead.ph-court>.btn,.phead.ph-court>.phead-acts{grid-column:1/-1;grid-row:2;margin-top:10px;justify-content:flex-start}
}
.ph-info:hover,.ph-info[aria-expanded="true"]{color:var(--strong);border-color:var(--accent)}
.ph-info:focus-visible{outline:3px solid var(--accent);outline-offset:2px}
/* L'icône de l'outil est l'affiche de sa vidéo de présentation (la vidéo s'ouvre sur elle) : un clic la rejoue.
   Une pastille ▶ au coin la signale en permanence ; au survol ou au focus, le dessin de l'outil laisse place au ▶. */
.ph-ico-play{position:relative;padding:0;border:0;font:inherit;cursor:pointer;transition:transform .18s,box-shadow .18s}
.ph-ico-play>svg{transition:opacity .18s,transform .18s}
.ph-ico-play .ph-pb{position:absolute;right:-5px;bottom:-5px;width:24px;height:24px;border-radius:50%;display:grid;place-items:center;background:var(--surface);color:var(--strong);box-shadow:0 0 0 2px var(--soft),0 4px 10px -4px rgba(20,10,40,.35);transition:opacity .18s,transform .18s}
.ph-ico-play .ph-pb svg{width:12px;height:12px}
.ph-ico-play .ph-pg{position:absolute;inset:0;display:grid;place-items:center;opacity:0;transform:scale(.6);transition:opacity .18s,transform .18s}
.ph-ico-play .ph-pg svg{width:46%;height:46%}
.ph-ico-play svg.ic-play{fill:currentColor;stroke:currentColor;stroke-width:1.5}
.ph-ico-play:hover,.ph-ico-play:focus-visible{transform:translateY(-1px)}
.ph-ico-play:hover>svg,.ph-ico-play:focus-visible>svg{opacity:0;transform:scale(.7)}
.ph-ico-play:hover .ph-pg,.ph-ico-play:focus-visible .ph-pg{opacity:1;transform:none}
.ph-ico-play:hover .ph-pb,.ph-ico-play:focus-visible .ph-pb{opacity:0;transform:scale(.5)}
.ph-ico-play:active{transform:scale(.96)}
.ph-ico-play:focus-visible{outline:3px solid var(--accent);outline-offset:3px}
.ph-court .ph-ico-play .ph-pb{width:20px;height:20px;right:-4px;bottom:-4px}
.ph-court .ph-ico-play .ph-pb svg{width:9px;height:9px}
@media (prefers-reduced-motion:reduce){.ph-ico-play,.ph-ico-play *{transition:none!important}}
/* ---------- Ligne unique sur ordinateur : titre de l'outil et barre du compte sur la même ligne ----------
   Posée par majFuse() (.app[data-fuse]) quand la barre latérale est affichée, l'en-tête de l'outil compact (.ph-court)
   et la page assez large. La barre du compte ne prend plus une ligne à elle, l'en-tête perd son bandeau et les étapes
   s'affinent : la saisie remonte d'environ 150 px. --ub-w : largeur mesurée de la barre du compte, réservée à droite
   du titre. Ailleurs (accueil, pages, première ouverture d'un outil, fenêtre étroite, smartphone), rien ne change. */
.app[data-fuse] main{position:relative}
.app[data-fuse] .ubar{position:absolute;z-index:2;top:4px;right:40px;height:56px;margin:0;container-type:normal}
.app[data-fuse] .ub-me span:last-child{display:none}
.app[data-fuse] .ub-me{padding-right:3px}
.app[data-fuse] .ub-l>span{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.app[data-fuse] .ub-l{padding:0}
.app[data-fuse] .tool{padding-top:0}
.app[data-fuse] .tool>.phead{min-height:56px;margin-bottom:-6px;padding:4px calc(var(--ub-w,380px) + 14px) 4px 0;column-gap:12px;border:0;border-radius:0;background:none;overflow:visible}
.app[data-fuse] .tool>.phead .ph-bg{display:none}
.app[data-fuse] .tool>.phead .ph-ico{width:40px;height:40px;border-radius:12px}
.app[data-fuse] .tool>.phead .ph-ico>svg{width:22px;height:22px}
/* Titre long sur deux lignes (fenêtre de 1366 px) : le « i » reste à côté de lui au lieu de passer dessous */
.app[data-fuse] .tool>.phead h2{font-size:1.22rem;letter-spacing:-.02em;max-width:calc(100% - 40px)}
.app[data-fuse] .tool>.phead .btn{min-height:40px;padding:0 13px;font-size:.88rem;white-space:nowrap}
.app[data-fuse] .tool>.phead>.phead-acts{flex-wrap:nowrap}
/* Fenêtre de 1280 px : titre et boutons un peu plus petits, pour qu'un nom long tienne sur deux lignes */
@media (max-width:1340px){
  .app[data-fuse] .tool>.phead h2{font-size:1.08rem}
  .app[data-fuse] .tool>.phead .btn{padding:0 10px;font-size:.85rem}
  .app[data-fuse] .tool>.phead>.phead-acts{gap:6px}
}
.app[data-fuse] .steps{padding:3px;box-shadow:none}
.app[data-fuse] .chip{min-height:36px;padding:3px 16px 3px 3px;font-size:.9rem}
.app[data-fuse] .chip .n{width:28px;height:28px}
/* ---------- Recherche en surimpression (Alt + R, ou « / » hors saisie) : ouvrir un outil sans quitter l'écran en cours ---------- */
.qr-dlg.cmd-dlg{width:min(580px,calc(100vw - 24px));max-height:min(640px,calc(88vh - 24px));margin:12vh auto auto;padding:0;gap:0;overflow:hidden;border-radius:18px}
.cmd-q{position:relative;flex:none;display:flex;align-items:center;border-bottom:1px solid var(--line)}
.cmd-q>svg{position:absolute;left:18px;color:var(--muted);pointer-events:none}
.cmd-in{flex:1;min-width:0;height:58px;padding:0 18px 0 50px;border:0;border-radius:0;background:transparent;color:var(--ink);font-size:1.08rem}
.cmd-in:focus-visible{outline:none;box-shadow:inset 0 -2px 0 var(--brand-v)}
.cmd-list{flex:1 1 auto;min-height:0;overflow:auto;margin:0;padding:8px;list-style:none}
.cmd-o{display:flex;align-items:center;gap:12px;min-height:44px;padding:4px 14px 4px 7px;border-radius:11px;cursor:pointer}
.cmd-o b{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-family:var(--f-display);font-weight:500}
.cmd-o small{flex:none;margin-left:auto;color:var(--muted);font-size:.84rem}
.cmd-o[aria-selected="true"]{background:var(--soft);color:var(--strong)}
.cmd-o[aria-selected="true"] .ri-ico{background:var(--accent);color:var(--accent-ink)}
.cmd-vide{padding:26px 22px;color:var(--muted);text-align:center}
/* Recherche étendue : une rubrique ou un champ sur deux lignes (son nom, puis l'outil et l'étape) ; le mot cherché souligné */
.cmd-o mark{background:none;color:inherit;text-decoration:underline;text-decoration-thickness:2px;text-underline-offset:3px;text-decoration-color:var(--accent,var(--brand-v))}
.cmd-r{min-height:52px}
.cmd-t{display:flex;flex-direction:column;min-width:0;line-height:1.25}
.cmd-t b{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-family:var(--f-display);font-weight:500}
.cmd-t small{margin:0;color:var(--muted);font-size:.8rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
/* Rubrique atteinte par la recherche : soulignée un instant */
.cmd-ici{outline:3px solid var(--accent,var(--brand-v));outline-offset:4px;border-radius:var(--r-md)}
@media (prefers-reduced-motion:no-preference){.cmd-ici{animation:cmd-ici 1.8s ease forwards}@keyframes cmd-ici{0%,55%{outline-color:var(--accent,var(--brand-v))}100%{outline-color:transparent}}}
.cmd-aide{flex:none;display:flex;flex-wrap:wrap;gap:6px 20px;padding:10px 16px;border-top:1px solid var(--line);background:var(--surface-2);color:var(--muted);font-size:.84rem}
.cmd-aide .ri-k{margin:0 4px 0 0}
.cmd-res{display:contents}
.cmd-x,.cmd-ap{display:none}
/* Sur PC (docs/DESIGN.md § 6.3), la recherche s'ouvre dans la barre du haut : le champ la recouvre, à sa hauteur et sur
   toute sa largeur, et les résultats se déroulent juste dessous ; seule l'opacité s'anime, la barre ne bouge pas */
@media screen and (min-width:1100px),screen and (min-width:481px) and (hover:hover) and (pointer:fine){
  dialog.qr-dlg.cmd-dlg{inset:0 0 auto 0;width:100%;max-width:none;max-height:100vh;max-height:100dvh;margin:0;padding:0;border:0;border-radius:0;background:transparent;box-shadow:none;overflow:visible;transform:none}
  dialog.qr-dlg.cmd-dlg::backdrop{background:rgba(21,19,26,.42)}
  .cmd-dlg .cmd-q{height:var(--top-h,62px);justify-content:center;gap:12px;padding:0 136px;background:var(--surface);border-bottom:1px solid var(--line)}
  .cmd-dlg .cmd-q>svg{position:static;flex:none;color:var(--ink-2)}
  .cmd-dlg .cmd-in{flex:0 1 836px;height:44px;padding:0;font:400 20px/1.2 var(--font)}
  .cmd-dlg .cmd-in:focus-visible{box-shadow:none}
  .cmd-dlg .cmd-x{position:absolute;top:50%;right:24px;display:inline-flex;align-items:center;gap:8px;height:40px;padding:0 10px;border:0;border-radius:var(--r-md);background:none;color:var(--ink);font:600 15px/1 var(--font);transform:translateY(-50%);cursor:pointer}
  .cmd-dlg .cmd-x kbd{padding:2px 7px;border:1px solid var(--line);border-radius:6px;background:var(--surface);color:var(--ink-2);font:700 12px/1.2 var(--font)}
  .cmd-dlg .cmd-x:hover{background:color-mix(in srgb,var(--ink) 5%,transparent)}
  .cmd-dlg .cmd-x:focus-visible{outline:3px solid var(--action);outline-offset:1px}
  .cmd-dlg .cmd-res{display:grid;grid-template-columns:minmax(0,1fr) 300px;grid-template-rows:minmax(0,1fr) auto;width:min(900px,calc(100% - 48px));max-height:calc(100vh - var(--top-h,62px) - 48px);margin:0 auto;border:1px solid var(--line);border-top:0;border-radius:0 0 var(--r-lg) var(--r-lg);background:var(--surface);box-shadow:var(--shadow-float);overflow:hidden}
  .cmd-dlg .cmd-list,.cmd-dlg .cmd-vide{grid-column:1;grid-row:1;min-height:0}
  .cmd-dlg .cmd-aide{grid-column:1/-1;grid-row:2}
  /* Aperçu de l'élément choisi */
  .cmd-dlg .cmd-ap{grid-column:2;grid-row:1;display:flex;flex-direction:column;gap:12px;min-height:0;overflow:auto;padding:16px;border-left:1px solid var(--line);background:var(--surface-2)}
  .cmd-dlg .cmd-ap:empty{display:none}
  .cmd-ap-h{display:flex;align-items:center;gap:12px}
  .cmd-ap-i{flex:none;display:grid;place-items:center;width:48px;height:48px;border-radius:12px;background:var(--soft);color:var(--accent)}
  .cmd-ap-h b{display:block;font:600 20px/26px var(--font-title);letter-spacing:-.015em;color:var(--ink)}
  .cmd-ap-h small{display:block;color:var(--ink-2);font-size:12px;line-height:16px}
  .cmd-ap-r{display:flex;flex-direction:column;gap:2px;margin:0;padding:10px 12px;border:1px solid var(--line);border-radius:var(--r-md);background:var(--surface)}
  .cmd-ap-r b{font-size:14px;line-height:20px;color:var(--ink)}
  .cmd-ap-r small{font-size:12px;line-height:16px;color:var(--ink-2)}
  .cmd-ap-d{display:-webkit-box;margin:0;overflow:hidden;color:var(--ink-2);font-size:14px;line-height:20px;-webkit-box-orient:vertical;-webkit-line-clamp:6}
  .cmd-ap-s{display:flex;align-items:center;gap:6px;margin:0;color:var(--ok);font-size:12px;line-height:16px;font-weight:700}
  .cmd-ap-s i{flex:none;width:7px;height:7px;border-radius:999px;background:currentColor}
  .cmd-ap-s.is-cours{color:var(--fam-trod-strong)}
  .cmd-ap-a{display:flex;flex-direction:column;gap:8px;margin-top:auto}
  .cmd-ap .btn{min-height:44px;gap:10px;padding:0 14px;border:1px solid var(--line-strong);border-radius:var(--r-md);background:var(--surface);color:var(--ink);font-size:14px;font-weight:700;box-shadow:none}
  .cmd-ap .btn.primary{border-color:var(--action);background:var(--action);color:var(--action-ink)}
  .cmd-ap .btn.primary:hover{border-color:var(--action-strong);background:var(--action-strong);filter:none}
  .cmd-ap .btn kbd{min-width:0;height:auto;padding:2px 6px;border:1px solid color-mix(in srgb,var(--action-ink) 45%,transparent);border-radius:6px;background:none;box-shadow:none;color:var(--action-ink);font:700 12px/16px var(--font)}
  .cmd-ap .btn:focus-visible{outline:3px solid var(--action);outline-offset:2px}
}
/* Vidéo de présentation d'un outil : une scène de 16/9 dessinée dans la page, des sous-titres et des commandes de lecture.
   Tailles en em, l'em suivant la largeur de la scène (cqw) : la vidéo garde son dessin à toutes les tailles.
   .pause fige les animations en cours (pause), .fige les supprime (mouvement réduit : état final directement). */
/* La fenêtre sert de repère de taille (cqw) : le texte de la scène suit la largeur de la vidéo, pas celle de l'écran */
.qr-dlg.tv-dlg{width:min(860px,calc(100vw - 24px),(100vh - 230px) * 16 / 9);padding:0;gap:0;overflow:hidden;container-type:inline-size}
.tv-top{display:flex;align-items:center;gap:12px;padding:14px 16px 14px 22px}
.tv-top h2{font-size:1.1rem;letter-spacing:-.01em}
.tv-top h2 span{color:var(--muted);font-weight:500}
.tv-x{margin-left:auto;flex:none;width:36px;height:36px;display:grid;place-items:center;border-radius:50%;border:0;background:var(--surface-2);color:var(--muted);cursor:pointer}
.tv-x:hover{color:var(--ink)}
.tv-stage{position:relative;overflow:hidden;container-type:inline-size;aspect-ratio:16/9;color:#fff;font-size:1.6cqw;line-height:1.35;
  background:radial-gradient(70% 90% at 78% 30%,color-mix(in srgb,var(--accent) 55%,transparent),transparent 70%),radial-gradient(60% 70% at 10% 100%,rgba(253,82,20,.18),transparent 70%),#130F1C}
.tv-sc{position:absolute;inset:0;padding:6% 7%;display:flex;flex-direction:column;justify-content:safe center}
.tv-intro h3,.tv-fonc h3,.tv-fin h3{font-family:var(--f-display);font-weight:600;letter-spacing:-.03em;line-height:1.08;color:#fff}
.tv-kick{font-weight:700;font-size:1em;color:color-mix(in srgb,var(--accent) 35%,#fff)}
.tv-ic{display:grid;place-items:center;width:5.6em;height:5.6em;border-radius:1.6em;background:var(--accent);color:var(--accent-ink);box-shadow:none}
.tv-ic svg{width:3em;height:3em}
/* Ouverture */
.tv-intro{align-items:center;text-align:center;gap:.9em}
.tv-intro .tv-ic,.tv-fin .tv-ic{flex:none}
.tv-intro h3{font-size:3.8em}
.tv-but{max-width:34em;font-size:1.3em;color:rgba(255,255,255,.82)}
/* Fonctions */
.tv-fonc{gap:1.1em}
.tv-fonc h3{font-size:2.4em}
.tv-fonc ul{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.7em}
.tv-fonc li{display:flex;align-items:center;gap:.8em;min-height:4.4em;padding:.7em 1em;border-radius:1em;background:rgba(255,255,255,.08);border:1px solid rgba(255,255,255,.12);font-size:1.12em;font-weight:700;line-height:1.3}
.tv-fonc li svg{flex:none;width:1.6em;height:1.6em;padding:.3em;border-radius:50%;background:var(--accent);color:var(--accent-ink)}
/* Étapes : l'outil lui-même, tel qu'il s'affiche (copie inerte de son panneau, saisies vidées), filmé par une caméra
   qui part de la vue précédente et glisse jusqu'à la zone de l'étape ; la zone s'éclaire et le curseur vient la cliquer.
   Positions calculées en pixels par le lecteur (--t0/--t1 caméra, --x0/--y0 → --x/--y curseur, --rl/--rt/--rw/--rh zone). */
.tv-etape{padding:0;display:block}
.tv-vue{position:absolute;inset:0;overflow:hidden;background:var(--bg,#F5F4F8)}
.tv-cam{position:absolute;left:0;top:0;transform-origin:0 0;transform:var(--t1);will-change:transform}
.tv-app{padding:0!important;color:var(--ink);text-align:left;pointer-events:none;user-select:none}
.tv-app::before{content:none!important}
/* La copie montre l'état final de l'outil : ni son animation d'entrée, ni ses transitions */
.tv-app,.tv-app *,.tv-app *::before,.tv-app *::after{animation:none!important;transition:none!important}
.tv-ring{position:absolute;z-index:2;left:var(--rl);top:var(--rt);width:var(--rw);height:var(--rh);border-radius:14px;
  box-shadow:0 0 0 3px var(--accent),0 0 0 200vmax rgba(19,15,28,.32);pointer-events:none}
.tv-lbl{position:absolute;z-index:3;left:2.2%;bottom:4%;display:flex;align-items:center;gap:.6em;max-width:70%;padding:.45em 1.1em .45em .45em;border-radius:99em;
  background:rgba(19,15,28,.88);color:#fff;font-weight:700;font-size:1.35em;box-shadow:none}
.tv-lbl b{flex:none;padding:.2em .7em;border-radius:99em;background:var(--accent);color:var(--accent-ink);font-size:.85em}
.tv-cur{position:absolute;z-index:4;left:var(--x,86%);top:var(--y,96%);width:2.2em;height:2.2em;margin:-.3em 0 0 -.3em;pointer-events:none}
.tv-cur svg{width:100%;height:100%;fill:#fff;stroke:#17141F;stroke-width:1.4;stroke-linejoin:round;filter:drop-shadow(0 .2em .3em rgba(0,0,0,.5))}
.tv-cur::after{content:"";position:absolute;left:.1em;top:.1em;width:1.2em;height:1.2em;margin:-.6em 0 0 -.6em;border-radius:50%;border:.18em solid #fff;opacity:0}
/* Fin */
.tv-fin{align-items:center;text-align:center;gap:.9em}
.tv-fin h3{font-size:4em}
/* Sous-titres et commandes */
.tv-cap{min-height:3.3em;padding:12px 22px 4px;font-size:1.02rem;line-height:1.5;color:var(--ink)}
.tv-ctrl{display:flex;align-items:center;gap:14px;padding:10px 16px 16px}
.tv-lire{flex:none;width:44px;height:44px;display:grid;place-items:center;border-radius:50%;border:0;background:var(--accent);color:var(--accent-ink);cursor:pointer}
.tv-lire svg{fill:currentColor;stroke:currentColor;stroke-width:1.2}
.tv-fini .tv-lire svg{fill:none;stroke-width:2.2}
.tv-lire:focus-visible,.tv-seg:focus-visible,.tv-x:focus-visible{outline:3px solid var(--accent);outline-offset:2px}
.tv-segs{flex:1;display:flex;gap:4px;min-width:0}
.tv-seg{position:relative;flex:1;height:24px;padding:0;border:0;background:none;cursor:pointer;display:flex;align-items:center}
.tv-seg i{display:block;height:6px;width:0;border-radius:99px;background:var(--accent)}
.tv-seg::after{content:"";position:absolute;left:0;right:0;top:9px;height:6px;border-radius:99px;background:var(--line);z-index:0}
.tv-seg i{position:relative;z-index:1}
.tv-seg:hover::after{background:var(--line-strong)}
.tv-go{flex:none}
@media (prefers-reduced-motion:no-preference){
  .tv-intro .tv-ic,.tv-fin .tv-ic{animation:tv-pop .6s cubic-bezier(.2,.9,.3,1.2) both}
  .tv-intro .tv-kick{animation:tv-fade .5s .25s both}
  .tv-intro h3,.tv-fin h3{animation:tv-up .6s .35s cubic-bezier(.2,.8,.2,1) both}
  .tv-intro .tv-but,.tv-fin .tv-but{animation:tv-up .6s .8s cubic-bezier(.2,.8,.2,1) both}
  .tv-fonc h3{animation:tv-up .5s cubic-bezier(.2,.8,.2,1) both}
  .tv-fonc li{animation:tv-left .5s calc(.6s + var(--j) * .9s) cubic-bezier(.2,.8,.2,1) both}
  .tv-fonc li svg{animation:tv-pop .4s calc(.85s + var(--j) * .9s) cubic-bezier(.2,.9,.3,1.3) both}
  /* Caméra 0,4 → 1,6 s, curseur 1,5 → 2,4 s, clic à 2,5 s, zone éclairée à 2,6 s */
  .tv-cam{animation:tv-cam 1.2s .4s cubic-bezier(.45,0,.2,1) both}
  .tv-lbl{animation:tv-up .5s cubic-bezier(.2,.8,.2,1) both}
  .tv-cur{animation:tv-cur .9s 1.5s cubic-bezier(.3,.7,.3,1) both}
  .tv-cur::after{animation:tv-clic .5s 2.5s ease-out both}
  .tv-ring{animation:tv-ring .45s 2.6s cubic-bezier(.2,.8,.2,1) both}
}
.tv-stage.pause *,.tv-stage.pause *::after{animation-play-state:paused!important}
.tv-stage.fige *,.tv-stage.fige *::after,.tv-stage.mesure *,.tv-stage.mesure *::after{animation:none!important;transition:none!important}
.tv-stage.fige .tv-cur{display:none}
@keyframes tv-pop{from{opacity:0;transform:scale(.5)}}
@keyframes tv-fade{from{opacity:0}}
@keyframes tv-up{from{opacity:0;transform:translate3d(0,1.2em,0)}}
@keyframes tv-left{from{opacity:0;transform:translate3d(-1.5em,0,0)}}
@keyframes tv-cam{from{transform:var(--t0)}to{transform:var(--t1)}}
@keyframes tv-cur{from{left:var(--x0,86%);top:var(--y0,96%)}}
@keyframes tv-ring{from{opacity:0;transform:scale(1.06)}}
@keyframes tv-clic{0%{opacity:.9;transform:scale(.4)}100%{opacity:0;transform:scale(1.8)}}
@media (max-width:600px){
  .qr-dlg.tv-dlg{width:calc(100vw - 24px)}
  /* Téléphone peu haut : la scène rapetisse en hauteur, l'ajustement du texte fait le reste */
  .tv-stage{aspect-ratio:4/5;max-height:calc(100dvh - 250px);font-size:3.3cqw}
  .tv-lbl{max-width:92%}
  .tv-intro h3{font-size:3em}
  .tv-fonc ul{grid-template-columns:minmax(0,1fr)}
  .tv-fonc li{font-size:1.02em;min-height:0}
  .tv-ctrl{flex-wrap:wrap}
  .tv-segs{flex:1 1 calc(100% - 60px)}
  .tv-go{flex:1}
}
.lead{color:var(--muted);max-width:68ch}
.lead.sm{font-size:.95rem}
.foot{color:var(--muted);font-size:.86rem;max-width:84ch;line-height:1.5}
.muted{color:var(--muted)}

.card{background:var(--surface);border:1px solid var(--line);border-radius:var(--r-card);padding:24px;box-shadow:var(--shadow);min-width:0;display:flex;flex-direction:column;gap:16px}
.ct{font-size:1.22rem;font-weight:600;letter-spacing:-.02em}
.stack{display:flex;flex-direction:column;gap:18px;min-width:0}
.split{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.05fr);gap:20px;align-items:start}
.tgrid{display:grid;grid-template-columns:minmax(0,1fr) 320px;gap:20px;align-items:start}

/* ---------- Formulaires ---------- */
.lab{display:block;font-weight:700;font-size:.93rem;margin-bottom:6px;padding:0}
.fs{border:0;padding:0;margin:0;min-width:0}
.inp{width:100%;min-height:50px;padding:10px 14px;border:1.5px solid var(--line-strong);border-radius:var(--r-md);background:var(--surface);color:var(--ink);font-size:1.05rem;font-weight:500}
.inp::placeholder{color:var(--muted);opacity:.8}
.inp[readonly]{background:var(--surface-2)}
.inp:focus-visible{outline:none;border-color:var(--accent,var(--brand-v));box-shadow:0 0 0 4px color-mix(in srgb,var(--accent,var(--brand-v)) 22%,transparent)}
/* Champ date natif (écran tactile, où saisie-date.js laisse le sélecteur du téléphone) : Safari sur iPhone lui donne une
   largeur minimale et le centre, il dépassait de sa case (2026-11-14). Il tient maintenant dans la case, texte à gauche. */
input[type="date"].inp{display:block;min-width:0;max-width:100%;-webkit-appearance:none;appearance:none}
input[type="date"].inp::-webkit-date-and-time-value{text-align:left;margin:0}
input[type="date"].inp::-webkit-datetime-edit{padding:0}
/* Date : Jour / Mois / Année à passage automatique, voir assets/saisie-date.js */
.sd-date{position:relative;display:flex;align-items:center;gap:1px;cursor:text;font-variant-numeric:tabular-nums}
.sd-date:focus-within{border-color:var(--accent,var(--brand-v));box-shadow:0 0 0 4px color-mix(in srgb,var(--accent,var(--brand-v)) 22%,transparent)}
.sd-date[aria-invalid="true"]{border-color:#B42318}
.sd-date input.sd-c{flex:none;min-width:0;height:auto;margin:0;padding:1px 0;border:0;border-radius:4px;background:none;color:inherit;font:inherit;text-align:center;outline:none;box-shadow:none}
.sd-date input.sd-c2{width:3ch}
.sd-date input.sd-c4{width:4.8ch}
.sd-date input.sd-c::placeholder{color:var(--muted);opacity:.8}
.sd-date input.sd-c::selection{background:color-mix(in srgb,var(--accent,var(--brand-v)) 30%,transparent);color:inherit}
.sd-sep{color:var(--muted);user-select:none}
.sd-cal{flex:none;display:grid;place-items:center;width:26px;height:30px;margin:-4px -8px -4px auto;padding:0;border:0;border-radius:8px;background:none;color:var(--muted);cursor:pointer}
.sd-cal:hover{background:var(--surface-2);color:var(--ink)}
.sd-date input[data-sd]{position:absolute;inset:0;width:100%;height:100%;min-height:0;padding:0;border:0;opacity:0;pointer-events:none}
/* Case étroite (colonne serrée, petit écran) : le bouton calendrier s'efface, puis les chiffres se resserrent, plutôt que de
   déborder de la case (2026-11-14). La date se tape toujours au clavier. */
.sd-date{container-type:inline-size}
@container (max-width:146px){.sd-cal{display:none}}
@container (max-width:126px){.sd-date input.sd-c2{width:2.4ch}.sd-date input.sd-c4{width:4.2ch}}
.vx-when .sd-date{flex:1 1 0;min-width:0}
.unit{position:relative}
/* Champs numériques : pas de flèches natives (illisibles et posées sur l'unité) ; ↑ ↓ au clavier restent actives */
.inp[type=number]{-moz-appearance:textfield;appearance:textfield}
.inp[type=number]::-webkit-inner-spin-button,.inp[type=number]::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}
.unit .inp{padding-right:70px;font-family:var(--f-mono);font-weight:700;font-size:1.2rem}
/* Marge fixe : les flèches du champ numérique apparaissent juste avant l'unité, sans que rien ne bouge au survol */
.unit span{position:absolute;right:14px;top:50%;transform:translateY(-50%);color:var(--muted);font-size:.92rem;pointer-events:none}
.unit.lg .inp{padding-right:100px}
.fgrid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}

/* Boutons en pilule, comme sur le site */
.btn{min-height:48px;padding:0 22px;border-radius:999px;border:1.5px solid var(--line-strong);background:var(--surface);color:var(--ink);font-weight:700;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;gap:8px}
.btn:hover{border-color:var(--accent);color:var(--strong)}
.btn:active:not(:disabled){transform:scale(.97)}
/* Bouton principal à la couleur de la marque dans tous les outils (2026-11-10) : la teinte de l'outil reste sur son icône,
   les choix cochés et le focus. « Imprimer » n'est plus tour à tour bleu, vert ou bordeaux (confondu avec le rouge des suppressions). */
.btn.primary{background:var(--brand-v);border-color:var(--brand-v);color:var(--brand-ink);box-shadow:none}
.btn.primary:hover{filter:brightness(1.08);color:var(--brand-ink)}
.btn.danger{color:var(--crit);border-color:var(--crit);background:transparent}
.btn.danger:hover{background:var(--crit-bg)}
.btn:disabled{opacity:.45;cursor:not-allowed;filter:none;box-shadow:none}
.btn:disabled:hover{border-color:var(--line-strong);color:var(--ink)}
.btn.primary:disabled:hover{border-color:var(--brand-v);color:var(--brand-ink)}
.actions{display:flex;flex-wrap:wrap;gap:10px;align-items:center}
.icon-btn{width:46px;height:46px;border-radius:50%;border:1.5px solid var(--line-strong);background:var(--surface);color:var(--muted);cursor:pointer;display:grid;place-items:center;flex:none}
.icon-btn:hover{border-color:var(--crit);color:var(--crit);background:var(--crit-bg)}

.chips{display:flex;flex-wrap:wrap;gap:10px}
.chk{position:relative;display:inline-block}
.chk input{position:absolute;inset:0;width:100%;height:100%;margin:0;opacity:0;cursor:pointer}
.chk span{display:inline-flex;align-items:center;gap:10px;min-height:48px;padding:0 18px 0 12px;border-radius:999px;border:1.5px solid var(--line-strong);background:var(--surface);font-weight:700;font-family:var(--f-mono);font-size:1.02rem}
.chk span::before{content:"✓";width:24px;height:24px;border-radius:50%;border:2px solid var(--line-strong);display:grid;place-items:center;font-size:.8rem;color:transparent;font-family:var(--f-body)}
.chk input:checked + span{background:var(--soft);border-color:var(--accent);color:var(--strong);box-shadow:inset 0 0 0 1px var(--accent)}
.chk input:checked + span::before{background:var(--accent);border-color:var(--accent);color:var(--accent-ink)}
.chk input:focus-visible + span{outline:3px solid var(--accent);outline-offset:2px}

.opt{display:flex;gap:12px;align-items:flex-start;border:1.5px solid var(--line);border-radius:var(--r-md);padding:12px 14px;cursor:pointer;background:var(--surface);min-height:52px}
.opt:hover{border-color:color-mix(in srgb,var(--accent) 55%,var(--line))}
.opt input{margin-top:2px;width:22px;height:22px;flex:none;accent-color:var(--accent)}
.opt .t{display:block;font-weight:600;font-size:1.02rem}
.opt .s{display:block;color:var(--muted);font-size:.92rem;margin-top:2px}
.opt:has(input:checked){border-color:var(--accent);background:var(--soft);box-shadow:inset 0 0 0 1px var(--accent)}
.opt.danger:has(input:checked){border-color:var(--crit);background:var(--crit-bg);box-shadow:inset 0 0 0 1px var(--crit)}
.opt.warnx:has(input:checked){border-color:var(--warn-line);background:var(--warn-bg);box-shadow:inset 0 0 0 1px var(--warn-line)}
.seg{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:10px}
.seg.two{grid-template-columns:repeat(2,minmax(0,1fr))}
.seg .opt{align-items:center}
.seg .opt .t{font-weight:700}
.seg .opt:has(input[value="pos"]:checked){border-color:var(--crit);background:var(--crit-bg);box-shadow:inset 0 0 0 1px var(--crit)}
.seg .opt:has(input[value="neg"]:checked){border-color:var(--ok);background:var(--ok-bg);box-shadow:inset 0 0 0 1px var(--ok)}
.fields{display:flex;flex-direction:column;gap:10px}

/* ---------- Repères ---------- */
.callout{border-radius:var(--r-md);padding:14px 16px;border:1px solid transparent;border-left-width:5px}
.callout b{display:block;font-family:var(--f-display);font-weight:600;font-size:1.06rem;margin-bottom:2px}
.callout p,.callout ul{color:var(--ink)}
.callout ul{margin:6px 0 0;padding-left:22px}
.callout.crit{background:var(--crit-bg);color:var(--crit);border-color:color-mix(in srgb,var(--crit) 30%,transparent);border-left-color:var(--crit)}
.callout.warn{background:var(--warn-bg);color:var(--warn);border-color:color-mix(in srgb,var(--warn-line) 45%,transparent);border-left-color:var(--warn-line)}
.callout.ok{background:var(--ok-bg);color:var(--ok);border-color:color-mix(in srgb,var(--ok) 30%,transparent);border-left-color:var(--ok)}
.callout.info{background:var(--soft);color:var(--strong);border-color:color-mix(in srgb,var(--accent) 28%,transparent);border-left-color:var(--accent)}
.callout.info b{color:var(--strong)}
.callout.plain{color:var(--ink);border-color:var(--line);border-left-color:var(--line-strong)}
.tag{display:inline-block;font-size:.74rem;font-weight:700;letter-spacing:.05em;text-transform:uppercase;padding:3px 10px;border-radius:999px}
.tag.crit{background:var(--crit-bg);color:var(--crit)}
.tag.warn{background:var(--warn-bg);color:var(--warn)}
.tag.info{background:var(--soft);color:var(--strong)}
.tag.ok{background:var(--ok-bg);color:var(--ok)}
.group-t{display:flex;align-items:center;gap:10px;margin-top:6px;flex-wrap:wrap}
.group-t h3{font-size:1.05rem;font-weight:700}
.sub{border:1px solid var(--line);border-radius:14px;padding:16px;display:flex;flex-direction:column;gap:10px;background:var(--surface-2);min-width:0}
.sub h3{font-size:1.05rem;font-weight:700}
ul.plain{margin:0;padding-left:22px;display:flex;flex-direction:column;gap:7px}
.cols{display:grid;grid-template-columns:repeat(auto-fit,minmax(250px,1fr));gap:14px}
.plus{color:var(--muted);font-weight:700;padding-inline:2px}
.tw{overflow-x:auto}

/* ---------- Listes et chiffres clés ---------- */
.rows{display:flex;flex-direction:column;gap:12px}
.stats{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.stat{background:var(--soft);border-radius:14px;padding:12px 16px;display:flex;flex-direction:column;gap:2px}
.stat .k{font-size:.86rem;color:var(--strong);font-weight:600}
.stat .v{font-family:var(--f-mono);font-weight:700;font-size:1.7rem;line-height:1.15;color:var(--strong)}
.stat .v small{font-family:var(--f-body);font-size:1rem;font-weight:600}

.sheet-wrap{display:flex;flex-direction:column;gap:12px;min-width:0}
.sheet{background:var(--paper);color:var(--paper-ink);border:1px solid var(--paper-line);border-radius:var(--r-lg);padding:26px;box-shadow:var(--shadow);display:flex;flex-direction:column;gap:14px;min-width:0;
  --ink:var(--paper-ink);--muted:var(--paper-muted);--line:var(--paper-line);--accent:var(--paper-accent);--strong:var(--paper-strong);--soft:var(--paper-soft);--accent-ink:var(--paper-on)}
.sheet-top{display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap;font-size:1rem}
.sheet-title{font-size:1.3rem;font-weight:600;color:var(--paper-strong);border-bottom:2px solid var(--paper-accent);padding-bottom:10px}
.sheet h4{font-size:1.1rem;font-weight:700;color:var(--paper-strong)}
.sheet-patient{color:var(--paper-muted);font-size:1rem}
.sheet-ph{color:var(--paper-muted);font-size:.9rem;margin-top:-8px}

/* ---------- TROD angine et cystite ---------- */
/* Étapes : une seule pilule, l'étape ouverte en couleur, les étapes passées cochées */
.steps{display:flex;gap:4px;padding:5px;overflow-x:auto;scrollbar-width:none;border-radius:999px;background:var(--surface);border:1px solid var(--line);box-shadow:var(--shadow);scroll-margin-top:104px}
.steps::-webkit-scrollbar{display:none}
.chip{flex:1 0 auto;display:flex;align-items:center;gap:10px;border:0;background:transparent;border-radius:999px;padding:6px 18px 6px 6px;min-height:44px;font-family:var(--f-display);font-weight:600;font-size:.95rem;white-space:nowrap;cursor:pointer;color:var(--muted)}
.chip:hover{background:var(--surface-2);color:var(--ink)}
.chip .n{display:grid;place-items:center;width:32px;height:32px;border-radius:50%;background:var(--surface-2);border:1.5px solid var(--line-strong);color:var(--muted);font-family:var(--f-mono);font-size:.85rem}
.chip.done{color:var(--strong)}
.chip.done .n{background:var(--soft);border-color:transparent;color:var(--strong);font-size:0}
.chip.done .n::before{content:"✓";font-family:var(--f-body);font-size:.95rem;font-weight:800}
.chip[aria-current="step"]{background:var(--accent);color:var(--accent-ink)}
.chip[aria-current="step"] .n{background:var(--accent-ink);border-color:transparent;color:var(--accent)}
.agebox{display:flex;align-items:center;gap:12px;flex-wrap:wrap}
.agebox .inp{width:130px;font-family:var(--f-mono);font-size:1.4rem;font-weight:600;text-align:center}
:is(#panel-trod,#panel-trodc,#panel-bpm) .tw table{border-collapse:collapse;width:100%;font-size:.95rem}
:is(#panel-trod,#panel-trodc,#panel-bpm) .tw th,:is(#panel-trod,#panel-trodc,#panel-bpm) .tw td{text-align:left;padding:10px 12px;border-bottom:1px solid var(--line);vertical-align:top}
:is(#panel-trod,#panel-trodc,#panel-bpm) .tw th{font-size:.8rem;letter-spacing:.06em;text-transform:uppercase;color:var(--muted);font-weight:600}
:is(#panel-trod,#panel-trodc,#panel-bpm) .tw td.m{font-family:var(--f-mono);white-space:nowrap}
:is(#panel-trod,#panel-trodc,#panel-bpm) .tw tr.on td{background:var(--soft);font-weight:600;color:var(--strong)}
ol.tech{margin:0;padding-left:0;list-style:none;display:flex;flex-direction:column;gap:12px;counter-reset:s}
ol.tech li{counter-increment:s;display:flex;gap:12px;align-items:flex-start}
ol.tech li::before{content:counter(s);flex:none;display:grid;place-items:center;width:28px;height:28px;border-radius:50%;background:var(--soft);color:var(--strong);font-family:var(--f-mono);font-size:.85rem;font-weight:600}
details{border:1.5px solid var(--line);border-radius:var(--r-md);padding:0 16px;background:var(--surface)}
summary{cursor:pointer;padding:14px 0;font-weight:600;min-height:50px}
details[open] summary{border-bottom:1px solid var(--line);margin-bottom:14px}
details>*:last-child{margin-bottom:16px}
.dose{font-family:var(--f-mono);font-size:.98rem}
/* Version allégée : listes compactes sur deux colonnes, messages sur une ligne */
:is(#panel-trod,#panel-trodc,#panel-bpm) .grid2{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px 8px;align-items:start}
:is(#panel-trod,#panel-trodc,#panel-bpm) .opt{padding:7px 12px;min-height:42px;gap:10px;border-radius:12px}
:is(#panel-trod,#panel-trodc,#panel-bpm) .opt input{width:20px;height:20px}
:is(#panel-trod,#panel-trodc,#panel-bpm) .opt .t{font-size:.97rem}
:is(#panel-trod,#panel-trodc,#panel-bpm) .opt .s{font-size:.86rem;margin-top:1px}
:is(#panel-trod,#panel-trodc,#panel-bpm) .seg .opt .t{font-size:1.02rem}
:is(#panel-trod,#panel-trodc,#panel-bpm) .group-t{margin-top:10px}
/* Protocole des TROD replié par blocs : âge, urgences et exclusions ouverts, le reste à la demande */
.pr-bar{display:flex;flex-wrap:wrap;justify-content:space-between;gap:8px}
details.pr-b{padding:0 16px}
.pr-b>summary{display:flex;align-items:center;gap:10px;flex-wrap:wrap;list-style:none;padding:12px 0}
.pr-b>summary::-webkit-details-marker{display:none}
.pr-b>summary h3{flex:1;margin:0;font-size:1.05rem;font-weight:700}
.pr-b>summary::after{content:'';flex:none;width:9px;height:9px;margin:0 4px 4px;border-right:2px solid var(--muted);border-bottom:2px solid var(--muted);transform:rotate(45deg);transition:transform .15s}
.pr-b[open]>summary::after{transform:rotate(-135deg);margin:4px 4px 0}
.callout.sm{padding:10px 14px}
.callout.sm b{display:inline;font-size:1rem;margin:0 6px 0 0}
@media (max-width:760px){:is(#panel-trod,#panel-trodc,#panel-bpm) .grid2{grid-template-columns:minmax(0,1fr)}}
/* Protocole : chaque rubrique dans un bloc bordé de la couleur de son repère (urgence, protocole, information) */
:is(#panel-trod,#panel-trodc,#panel-bpm) .group-t+ul.plain{padding:12px 16px 12px 36px;border-radius:14px;background:var(--surface-2);border:1px solid var(--line);border-left:4px solid var(--accent)}
:is(#panel-trod,#panel-trodc,#panel-bpm) .group-t:has(.tag.crit)+ul.plain{border-left-color:var(--crit)}
:is(#panel-trod,#panel-trodc,#panel-bpm) .group-t:has(.tag.warn)+ul.plain{border-left-color:var(--warn-line)}
/* Ligne de facturation qui correspond à la saisie */
:is(#panel-trod,#panel-trodc,#panel-bpm) .tw tr.on td:first-child{box-shadow:inset 4px 0 0 var(--accent)}
/* Résumé à coller dans le DMP : le texte tel qu'il sera copié */
.dmp{display:flex;flex-direction:column;gap:12px;padding:18px;border-radius:18px;background:var(--soft);border:1.5px solid color-mix(in srgb,var(--accent) 35%,transparent)}
.dmp-head{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:10px 16px}
.dmp-head .lead{margin-top:2px}
.dmp-txt{margin:0;padding:14px 16px;border-radius:14px;background:var(--surface);border:1px solid var(--line);color:var(--ink);font-family:var(--f-body);font-size:.97rem;line-height:1.55;white-space:pre-wrap;overflow-wrap:anywhere;max-height:340px;overflow:auto}
.btn.copied,.btn.copied:hover{background:var(--ok);border-color:var(--ok);color:var(--surface);box-shadow:none}
/* Points du score de McIsaac rappelés à côté des critères de la saisie */
.mc-pt{flex:none;margin-left:auto;font-family:var(--f-mono);font-size:.88rem;font-weight:700;color:var(--muted);white-space:nowrap}
.mc-rap{display:flex;flex-wrap:wrap;gap:4px 18px;margin:0;color:var(--muted);font-size:.9rem}
.mc-rap .mc-pt{margin-left:4px;color:var(--ink)}
/* Rappel des posologies du protocole : petit bouton à côté du champ, fenêtre aux couleurs de l'outil */
.lab-row{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:4px 10px;margin-bottom:6px}
.lab-row .lab{margin:0}
.pf-g:has(.lab-row){align-items:end}
.abx-btn{display:inline-flex;align-items:center;gap:6px;min-height:32px;padding:3px 13px 3px 9px;border-radius:999px;border:1px solid color-mix(in srgb,var(--accent) 30%,transparent);background:var(--soft);color:var(--strong);font-size:.85rem;font-weight:700;cursor:pointer}
.abx-btn:hover{background:var(--accent);border-color:var(--accent);color:var(--accent-ink)}
.qr-dlg.abx-dlg{width:min(600px,calc(100vw - 24px));padding:0;border-radius:26px}
.qr-dlg.abx-dlg{gap:0}
.abx-head{position:sticky;top:0;z-index:1;flex:none;isolation:isolate;overflow:hidden;display:flex;align-items:center;gap:14px;padding:20px 18px 18px 22px;background:var(--soft);border-bottom:1px solid color-mix(in srgb,var(--accent) 22%,transparent)}
.abx-ico{width:50px;height:50px;border-radius:16px;flex:none;display:grid;place-items:center;background:var(--accent);color:var(--accent-ink);box-shadow:none}
.abx-head b{display:block;font-family:var(--f-display);font-weight:600;font-size:1.3rem;letter-spacing:-.02em;line-height:1.15}
.abx-head small{display:block;margin-top:3px;color:var(--muted);font-size:.88rem;line-height:1.35}
.abx-head .mp-close{margin-left:auto;border-radius:50%;background:var(--surface)}
.abx-bg{position:absolute;z-index:-1;right:40px;top:50%;width:150px;height:150px;color:var(--accent);opacity:.09;transform:translateY(-50%) rotate(-14deg);pointer-events:none}
.abx-bg svg{width:100%;height:100%}
.abx-body{flex:none;display:flex;flex-direction:column;gap:10px;padding:18px 20px 20px}
.abx-intro{padding:10px 14px;border-radius:14px;background:var(--surface-2);border:1px solid var(--line);font-weight:700;font-size:.93rem}
.abx-it{padding:14px 16px;border-radius:18px;background:var(--surface);border:1px solid var(--line);border-left:4px solid var(--accent)}
.abx-top{display:flex;justify-content:space-between;align-items:flex-start;gap:12px}
.abx-when{font-size:.72rem;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:var(--strong);margin-bottom:2px}
.abx-it h4{font-size:1.15rem;font-weight:600;letter-spacing:-.01em}
.abx-days{flex:none;padding:4px 11px;border-radius:999px;background:var(--accent);color:var(--accent-ink);font:700 .84rem var(--f-mono);white-space:nowrap}
.abx-dose{display:grid;grid-template-columns:auto minmax(0,1fr);gap:5px 14px;margin:10px 0 0}
.abx-dose dt{color:var(--muted);font-size:.86rem;font-weight:700;padding-top:1px}
.abx-dose dd{margin:0;font-weight:600;line-height:1.4}
.abx-foot{color:var(--muted);font-size:.86rem;line-height:1.5;margin-top:2px}
/* Historique des patients (TROD, bilan de médication) : enregistrement à l'étape 3, fenêtre de consultation aux couleurs de l'outil */
.phead>.phead-acts{grid-column:3;grid-row:1/span 3;display:flex;flex-direction:column;align-items:stretch;gap:8px}
.phead-acts .btn{background:var(--surface)}
.btn.sm{min-height:38px;padding:0 16px;font-size:.9rem}
.ph-box{display:flex;flex-direction:column;gap:10px;padding:18px;border-radius:18px;background:var(--surface-2);border:1px solid var(--line)}
.ph-box .dmp-head .lead{color:var(--muted)}
.ph-box .btn.copied:disabled{opacity:1;cursor:default}
.ph-see{border:0;background:none;padding:0;color:var(--strong);font:inherit;font-weight:700;text-decoration:underline;cursor:pointer}
.ph-dlg .abx-body>.inp{flex:none}
.ph-res{display:flex;flex-direction:column;gap:10px;align-items:flex-start}
.ph-res>*{align-self:stretch}
.ph-res>.btn{align-self:flex-start}
.ph-empty{color:var(--muted);padding:6px 2px}
.ph-list{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:8px}
.ph-pat{width:100%;display:flex;align-items:center;gap:12px;padding:12px 14px 12px 16px;border-radius:16px;border:1px solid var(--line);border-left:4px solid var(--accent);background:var(--surface);color:var(--ink);font:inherit;text-align:left;cursor:pointer}
.ph-pat:hover{border-color:var(--accent)}
.ph-pat b{display:block;font-weight:700}
.ph-pat small{display:block;margin-top:2px;color:var(--muted);font-size:.86rem}
.ph-pat svg{margin-left:auto;flex:none;color:var(--muted)}
.ph-who b{display:block;font-family:var(--f-display);font-weight:600;font-size:1.25rem;letter-spacing:-.01em}
.ph-who small{display:block;margin-top:2px;color:var(--muted);font-size:.9rem}
.ph-e .dmp-txt{margin-top:10px;max-height:none;font-size:.93rem}
.ph-e .actions{margin-top:10px}
.ph-when{margin-top:8px;color:var(--muted);font-size:.82rem}
.ph-pe{break-inside:avoid;page-break-inside:avoid}
.ph-pe p{white-space:pre-wrap;line-height:1.45}
#print-root .ph-sheet{gap:8px}
#print-root .ph-pe h4{font-size:11pt;margin:4px 0 1px}
#print-root .ph-pe p{font-size:9.5pt}
@media (max-width:520px){.abx-head{padding:16px 14px 14px 16px;gap:12px}.abx-ico{width:42px;height:42px;border-radius:13px}.abx-body{padding:14px}.abx-dose{grid-template-columns:minmax(0,1fr);gap:0}.abx-dose dd{margin-bottom:6px}}
.nav{display:flex;justify-content:space-between;gap:10px;flex-wrap:wrap}
.aside{position:sticky;top:calc(env(safe-area-inset-top,0px) + 104px);display:flex;flex-direction:column;gap:12px}
.aside .card{padding:20px;gap:12px}
.aside .btn{width:100%;margin-top:4px}
.aside-fiche{display:flex;flex-direction:column;gap:8px;padding-top:4px}
.aside-fiche .btn{margin-top:0}
/* ---------- TROD sur un seul écran : saisie puis fiche sur la même page, protocole dans un volet ---------- */
#panel-trod section[data-step="2"],#panel-trodc section[data-step="2"]{margin-top:14px;padding-top:22px;border-top:1px solid var(--line)}
/* Imprimer, PDF et QR code : un seul jeu, dans la colonne de droite ; ceux de la fiche ne reviennent que sur une colonne (smartphone, petite fenêtre) */
#panel-trod .fields>.actions>.btn,#panel-trodc .fields>.actions>.btn{display:none}
.pr-open{color:var(--strong)}
.pr-open[aria-expanded="true"]{background:var(--soft);border-color:var(--accent)}
.qr-dlg.pr-dlg{position:fixed;inset:4px 0 0 auto;z-index:60;width:min(470px,100vw);height:auto;max-height:none;margin:0;padding:0;gap:0;border-width:0 0 0 1px;border-radius:22px 0 0 0;overflow:hidden}
.pr-dh{flex:none;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 12px 12px 22px;border-bottom:1px solid var(--line);font-family:var(--f-display);font-size:1.1rem}
.pr-dh .up-x{align-self:center}
.pr-corps{flex:1 1 auto;min-height:0;overflow:auto;padding:16px 22px 28px}
.mini{display:flex;justify-content:space-between;gap:8px;font-size:.95rem;color:var(--muted)}
.mini b{color:var(--ink);font-family:var(--f-mono)}

.legal{margin-top:10px;padding-top:6px}
.vy-src summary{cursor:pointer;font-weight:700;color:var(--ink);width:fit-content}
.vy-src summary:focus-visible{outline:3px solid var(--accent);outline-offset:2px;border-radius:4px}
.vy-src>p{margin-top:6px}
.pf-savoir>summary{display:flex;align-items:center;justify-content:space-between;gap:10px;cursor:pointer;list-style:none}
.pf-savoir>summary::-webkit-details-marker{display:none}
.pf-savoir>summary::after{content:"";flex:none;width:9px;height:9px;margin-right:4px;border-right:2px solid var(--muted);border-bottom:2px solid var(--muted);transform:rotate(45deg) translateY(-3px)}
.pf-savoir[open]>summary::after{transform:rotate(-135deg) translateY(-1px)}
.pf-savoir>summary:focus-visible{outline:3px solid var(--accent);outline-offset:4px;border-radius:6px}
.pf-savoir>summary .ct{margin:0}

/* ---------- Perfadom ---------- */
.pf-row{display:grid;grid-template-columns:150px minmax(0,1fr);gap:8px 18px;padding:16px;border:1px solid var(--line);border-radius:14px;background:var(--surface-2)}
.pf-when .b{display:inline-block;font-family:var(--f-mono);font-weight:600;font-size:1.2rem;color:var(--strong);background:var(--soft);padding:6px 14px;border-radius:12px}
.pf-when .s{display:block;margin-top:6px;color:var(--muted);font-size:.88rem;line-height:1.35}
.pf-item{display:grid;grid-template-columns:auto minmax(0,1fr);gap:4px 12px;padding:10px 0;border-top:1px solid var(--line)}
.pf-item:first-child{border-top:0;padding-top:0}
.pf-q{font-family:var(--f-mono);font-weight:600;font-size:1.15rem;color:var(--strong)}
.pf-n{font-family:var(--f-display);font-size:1.08rem}
.pf-t{color:var(--muted);font-size:.93rem}
.pf-codes{display:flex;flex-wrap:wrap;gap:8px 14px;align-items:center;margin-top:6px}
.pf-code{font-family:var(--f-mono);font-weight:600;background:var(--soft);color:var(--strong);padding:3px 11px;border-radius:999px;font-size:.93rem}
.pf-g{display:grid;grid-template-columns:repeat(auto-fit,minmax(190px,1fr));gap:14px}
@media (max-width:640px){.pf-row{grid-template-columns:minmax(0,1fr)}}

/* ---------- Vaccinations (revu le 18/11/2026 ; docs/DESIGN.md § 6.7 et 6.8) ---------- */
/* Trois parties numérotées, séparées par des filets */
.vx-sec{display:flex;flex-direction:column;gap:12px;min-width:0}
.vx-sec+.vx-sec{padding-top:20px;border-top:1px solid var(--line-soft)}
.vx-sec .actions{margin:0}
.vx-h{display:flex;flex-wrap:wrap;align-items:center;gap:4px 10px}
.vx-h .ct{margin:0}
.vx-num{flex:none;display:grid;place-items:center;width:24px;height:24px;border-radius:999px;background:var(--ink);color:var(--surface);font:700 12px/1 var(--font)}
.vx-hn{margin-left:auto;color:var(--ink-3);font-size:12px;line-height:16px}
/* Ce passage : vaccin fait, rendez-vous seul ou les deux (DESIGN.md § 6.7) */
.vx-mode{display:flex;flex-wrap:wrap;align-items:center;gap:var(--sp-2) var(--sp-4);padding-bottom:var(--sp-5);border-bottom:1px solid var(--line-soft)}
.vx-mode>.lab{margin:0;font-size:var(--fz-md);line-height:20px;font-weight:700;color:var(--ink)}
.vx-mode .vt span{font-size:var(--fz-md);line-height:20px;white-space:nowrap}
.vx-mode i{font-style:normal}
.vx-m-c{display:none}
@media (max-width:640px){
  /* Trois choix sur une ligne : « Attestation », « Rendez-vous », « Les deux » */
  .vx-mode .vt span{padding:0 var(--sp-2)}
  .vx-m-l{display:none}
  .vx-m-c{display:inline}
}
/* Téléphone, étape par étape : le choix n'est montré qu'à la première étape */
html[data-ui="tel"].ea-on #vx-main:has(>section.vx-sec:first-of-type.ea-off) .vx-mode{display:none}
/* Une ligne par vaccin : vaccin, dose, nombre de doses, retrait ; dessous le schéma du calendrier, puis délai et date
   (rendez-vous) ou lot, site et date (vaccin fait). Une seule colonne quand la place manque (container query sur la liste). */
.vx-list{container-type:inline-size}
.vx-row{display:grid;grid-template-columns:minmax(0,1fr) 84px 84px 40px;grid-template-areas:"v n t x" "s s s s" "w w w w";gap:8px 10px;align-items:end;padding:14px 16px;border:1px solid var(--line);border-radius:var(--r-md);background:var(--surface)}
.vx-row>.vx-search{grid-area:v;position:relative}
.vx-row>.vx-no{grid-area:n}
.vx-row>.vx-sur{grid-area:t}
.vx-row>.vx-del{grid-area:x}
.vx-row>.vx-sch{grid-area:s}
.vx-row>.vx-w{grid-area:w}
.vx-del{display:grid;place-items:center;width:40px;height:44px;padding:0;border:0;border-radius:var(--r-md);background:none;color:var(--ink-3);cursor:pointer}
.vx-del:hover{background:var(--bg);color:var(--crit)}
.vx-del:focus-visible{outline:3px solid var(--action);outline-offset:1px}
.vx-sch{margin:-2px 0 0;color:var(--ink-2);font-size:12px;line-height:16px}
.vx-sch b{color:var(--ink);font-weight:700}
.vx-sch[hidden]{display:none}
.vx-w{display:flex;flex-wrap:wrap;align-items:flex-end;gap:10px 16px;min-width:0}
.vx-dl{display:flex;flex-direction:column;gap:6px;min-width:0}
.vx-dl>.lab{margin:0}
.vx-chips{display:flex;flex-wrap:wrap;gap:6px}
.vx-chip{min-height:36px;padding:0 12px;border:1px solid var(--line-strong);border-radius:999px;background:var(--surface);color:var(--ink);font:700 14px/1 var(--font);white-space:nowrap;cursor:pointer}
.vx-chip:hover{border-color:var(--ink-3)}
.vx-chip[aria-pressed="true"]{border-color:var(--action);background:var(--action-tint);color:var(--action);box-shadow:inset 0 0 0 .5px var(--action)}
.vx-chip:focus-visible{outline:3px solid var(--action);outline-offset:2px}
.vx-dt{flex:1 1 260px;min-width:0}
.vx-when{display:flex;gap:8px}
.vx-when select{flex:none;width:auto}
.vx-when input,.vx-when .sd-date{flex:1 1 0;min-width:0}
/* Vaccin fait : lot, site et date sur une ligne, « Dose suivante » au bout */
.vx-fw>div{flex:1 1 150px;min-width:0}
.vx-fw>.vx-lot{flex-basis:180px}
.vx-next{display:inline-flex;align-items:center;gap:6px;min-height:44px;padding:0 4px;border:0;background:none;color:var(--action);font:700 14px/1 var(--font);cursor:pointer;white-space:nowrap}
.vx-next:hover{text-decoration:underline;text-underline-offset:3px}
.vx-next:focus-visible{outline:3px solid var(--action);outline-offset:2px;border-radius:6px}
/* Point de départ des délais */
.vx-base{display:flex;flex-wrap:wrap;align-items:center;gap:6px 12px}
.vx-base .lab{margin:0}
.vx-base>.inp,.vx-base>.sd-date{flex:0 1 190px;width:auto}
.vx-base-n{flex:1 1 220px;color:var(--ink-3);font-size:12px;line-height:16px}
@container (max-width:560px){
  .vx-row{grid-template-columns:minmax(0,1fr) minmax(0,1fr) 40px;grid-template-areas:"v v x" "n t ." "s s s" "w w w";padding:12px}
}
/* Calendrier officiel dans le volet : partie, recherche, fiches des vaccins */
.vx-cal{display:flex;flex-direction:column;gap:12px}
.vx-cal .seg{grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}
.vx-cal .seg .opt{min-height:44px;padding:8px 10px}
.vx-cal .seg .opt .t{font-size:14px;line-height:18px}
.vx-cal .rows{display:flex;flex-direction:column;gap:8px}
/* Fiche : tableau des vaccins faits, au-dessus des rendez-vous */
.vx-sh{margin:4px 0 0;font-size:1.05rem;font-weight:700;color:var(--paper-strong)}
.vx-pre{display:flex;flex-direction:column;gap:8px}
.vx-tab{width:100%;border-collapse:collapse;font-size:.95rem}
.vx-tab th,.vx-tab td{padding:7px 10px;border:1px solid var(--paper-line);text-align:left;vertical-align:top}
.vx-tab th{font-size:.8rem;font-weight:700;color:var(--paper-muted)}
.vx-tab td:first-child{font-weight:700}
.vx-it{display:flex;flex-direction:column;gap:5px;padding:14px 16px;border:1px solid var(--line);border-radius:14px;background:var(--surface-2)}
.vx-it h4{font-size:1.1rem;font-weight:700;display:flex;flex-wrap:wrap;gap:4px 10px;align-items:center}
.vx-it p{color:var(--muted);font-size:.95rem}
.vx-it p b{color:var(--ink)}
.vx-cal .vx-off{display:none}
.vx-it p.vx-noms{color:var(--ink)}
.vx-noms-k ul{display:flex;flex-direction:column;gap:4px;color:var(--muted);font-size:.95rem}
.vx-noms-k li b{color:var(--ink)}


/* ---------- Fusioon : logo de l'en-tête (le noir suit la couleur du texte en mode sombre) ---------- */
.brand h1.wm-h{line-height:0}
.wm-logo{display:block;height:40px;width:auto;aspect-ratio:3846/974;max-width:100%;margin-bottom:6px;color:var(--ink)}


.vx-big{padding:20px 22px;border-width:3px}
.vx-big b{display:block;font-size:1.5rem;line-height:1.15;margin-bottom:8px;letter-spacing:.01em}
.vx-big p{font-size:1.05rem;color:inherit}

/* Un cadre par vaccin et, dans ce cadre, une étiquette par rendez-vous : avec plusieurs rendez-vous, chaque date reste avec sa dose.
   Bordures en plus du fond : la séparation tient aussi sur une imprimante qui n'imprime pas les fonds */
.vx-b{display:flex;flex-direction:column;gap:10px}
.vx-l{display:flex;flex-wrap:wrap;gap:12px 20px;padding:14px 16px;border:1.5px solid var(--paper-line);border-radius:14px}
/* Le vaccin et ses rendez-vous à gauche, la raison du vaccin à côté ; l'une sous l'autre sur un écran étroit */
.vx-m{flex:1 1 190px;min-width:0;display:flex;flex-direction:column;gap:8px}
.vx-n{font-size:1.15rem;font-weight:700;color:var(--paper-strong)}
.vx-rdv{display:flex;flex-direction:column;gap:1px;padding:8px 12px;border:1px solid var(--paper-soft-line);border-radius:10px;background:var(--paper-soft);-webkit-print-color-adjust:exact;print-color-adjust:exact}
.vx-d{font-size:.9rem;font-weight:600;color:var(--paper-muted)}
.vx-c{font-size:1.05rem;color:var(--paper-strong);font-weight:600}
.vx-why{flex:1.6 1 240px;min-width:0;padding-left:14px;border-left:3px solid var(--paper-accent);font-size:1rem;line-height:1.45}
.vx-why b{display:block;color:var(--paper-strong);margin-bottom:2px}
.vx-note{color:var(--paper-muted);font-size:.9rem}
.vx-adv{font-size:1rem;margin:4px 0 0}
.vx-post{display:flex;flex-direction:column;gap:8px;break-inside:avoid;page-break-inside:avoid}
.vx-att{font-size:1rem;margin:0}
.vx-vac{display:flex;flex-direction:column;gap:8px;margin-top:6px;padding-top:12px;border-top:1px solid var(--line)}
@media print{.vx-l{break-inside:avoid;page-break-inside:avoid}}

/* Barre fixe : onglets inactifs sans icône (grand écran), icône seule (écran moyen), icônes seules (mobile) */
.menu-btn{flex:none;display:flex;align-items:center;gap:10px;padding:0 18px;min-height:54px;border-radius:999px;border:1px solid var(--brand-v);background:var(--brand-v);color:var(--brand-ink);box-shadow:none;font-family:var(--f-display);font-weight:600;font-size:1rem;cursor:pointer}
.menu-btn:hover{filter:brightness(1.08)}
#menu-ico{display:grid;place-items:center;line-height:0}
.menu-btn svg,.menu-fab svg{display:block}
.menu-btn[aria-expanded="true"]{background:var(--ink);color:var(--surface);border-color:var(--ink);box-shadow:none}
.menu-btn:focus-visible{outline:3px solid var(--ink);outline-offset:2px}
.menu-scrim{position:fixed;inset:0;z-index:55;background:rgba(14,12,19,.42)}
.menu-pop{position:fixed;top:12px;left:0;right:0;margin-inline:auto;z-index:60;width:min(920px,calc(100vw - 24px));max-height:calc(100vh - 24px);overflow:auto;padding:22px;border-radius:22px;background:var(--surface);color:var(--ink);border:1px solid var(--line);box-shadow:var(--shadow-lg);overscroll-behavior:contain}
.mp-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin-bottom:14px}
.mp-head b{display:block;font-family:var(--f-display);font-weight:600;font-size:1.3rem}
.mp-head span{color:var(--muted);font-size:.95rem}
.mp-close{width:44px;height:44px;border-radius:var(--r-md);border:1px solid var(--line);background:var(--surface-2);color:var(--ink);display:grid;place-items:center;cursor:pointer;flex:none}
.mp-g{margin-top:18px}
.mp-g h3{font-size:.76rem;font-weight:700;letter-spacing:.09em;text-transform:uppercase;color:var(--muted);font-family:var(--f-body)}
.mp-g>p{color:var(--muted);font-size:.9rem;margin:2px 0 10px}
.mp-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(250px,1fr));gap:10px}
.mi{display:flex;align-items:flex-start;gap:12px;width:100%;min-width:0;padding:12px 14px;text-align:left;border-radius:14px;border:1.5px solid var(--line);background:var(--surface);color:var(--ink);cursor:pointer}
.mi:hover{border-color:var(--accent,var(--brand-v));background:var(--soft,var(--surface-2))}
.mi[aria-current="true"]{border-color:var(--accent,var(--brand-v));box-shadow:inset 0 0 0 1px var(--accent,var(--brand-v))}
.mi:focus-visible{outline:3px solid var(--accent,var(--brand-v));outline-offset:2px}
.mi-ico{width:40px;height:40px;border-radius:11px;flex:none;display:grid;place-items:center;background:var(--accent);color:var(--accent-ink)}
.mi b{display:block;font-family:var(--f-display);font-weight:600;font-size:1.02rem}
.mi small{display:block;color:var(--muted);font-size:.84rem;line-height:1.35;margin-top:2px}
.mi.mi-home{margin-top:4px}
.mp-ver{margin:18px 0 0;color:var(--muted);font-size:.78rem;text-align:right}
.menu-fab{position:fixed;right:16px;bottom:calc(16px + env(safe-area-inset-bottom,0px));z-index:58;width:58px;height:58px;border-radius:50%;border:0;display:grid;place-items:center;color:#fff;background:linear-gradient(135deg,#751BCB,#FD5214);box-shadow:var(--shadow-float);cursor:pointer}
.menu-fab[hidden]{display:none}
.menu-fab:hover{filter:brightness(1.08)}
.menu-fab:focus-visible{outline:3px solid var(--ink);outline-offset:3px}


.rs-line{margin:2px 0 4px}
.rs-res{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:12px 16px;border:2px solid var(--paper-line);border-radius:14px}
.rs-badge{font-size:1.6rem;font-weight:800;letter-spacing:.04em}
.rs-badge.pos{color:var(--paper-crit)}.rs-badge.neg{color:var(--paper-strong)}.rs-badge.inv{color:var(--paper-warn)}
.rs-kv{display:flex;justify-content:space-between;gap:12px;padding:3px 2px;border-bottom:1px dotted var(--paper-line)}
.rs-note{font-size:.88rem;color:var(--paper-muted)}
.rs-sign{display:flex;align-items:stretch;gap:16px;margin-top:14px}
.rs-sg{flex:1 1 0;display:flex;flex-direction:column;gap:8px;justify-content:flex-end}
.rs-abx{padding:10px 14px;border:2px solid var(--paper-line);border-radius:12px}
.rs-abx b{font-size:1.1rem}
.rs-abx p{margin:4px 0 0}
.rs-adv{margin:4px 0 0;padding-left:1.2em;font-size:.92rem}
.rs-adv li{margin:2px 0}
textarea.inp{min-height:76px;resize:vertical;font-family:var(--f-body);font-size:1rem;line-height:1.4}
/* ---------- Saisie resserrée à la souris (ordinateur) : champs et cases moins hauts, moins de défilement au comptoir ----------
   Outils seulement (ni l'accueil ni les pages) ; rien ne change au doigt, où les cibles restent à 50 px.
   :where() garde une spécificité nulle : toute règle plus précise d'un outil continue de l'emporter. */
@media screen and (min-width:481px) and (hover:hover) and (pointer:fine){
  /* Marges latérales inchangées : plus larges, certaines grilles gagneraient une colonne et serreraient le champ de date */
  :where(.tool:not(.tool-home)) .card{padding:20px 24px;gap:12px}
  :where(.tool:not(.tool-home)) .inp{min-height:42px;padding:7px 12px;font-size:1rem}
  :where(.tool:not(.tool-home)) textarea.inp{min-height:60px}
  :where(.tool:not(.tool-home)) .lab{margin-bottom:4px;font-size:.9rem}
  :where(.tool:not(.tool-home)) .opt{min-height:42px;padding:8px 12px;gap:10px}
  :where(.tool:not(.tool-home)) .opt input{width:20px;height:20px;margin-top:1px}
  :where(.tool:not(.tool-home)) .opt .t{font-size:.98rem}
  :where(.tool:not(.tool-home)) .seg{gap:8px}
  /* Saisie du TROD : les étiquettes en capitales répètent le titre voisin */
  #panel-trod [data-step="1"] .group-t .tag,#panel-trodc [data-step="1"] .group-t .tag{display:none}
  #panel-trod [data-step="1"]>.lead,#panel-trodc [data-step="1"]>.lead{display:none}
  /* Saisie du TROD sur un écran de 768 px : date, âge et venue du patient sur une même ligne (3e, 4e et 5e enfants de la
     section : champs date et âge, titre « Le patient est », ses deux choix), score de McIsaac sur une ligne.
     L'ordre du HTML et les textes repris sur la fiche ne changent pas. */
  /* Deux colonnes seulement si la carte de saisie fait au moins 600 px : plus étroite (fenêtre réduite, tablette),
     date, âge et venue reprennent leur place l'une sous l'autre et rien ne dépasse de sa case (2026-11-14) */
  #tr-main,#tc-main{container-type:inline-size}
  @container (min-width:600px){
    #panel-trod [data-step="1"],#panel-trodc [data-step="1"]{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));column-gap:14px}
    :is(#panel-trod,#panel-trodc) [data-step="1"]>*{grid-column:1/-1}
    :is(#panel-trod,#panel-trodc) [data-step="1"]>:nth-child(3){grid-column:1;grid-row:2/span 2;align-self:end;grid-template-columns:minmax(0,4fr) minmax(0,3fr);gap:10px}
    :is(#panel-trod,#panel-trodc) [data-step="1"]>:nth-child(4){grid-column:2;grid-row:2;margin-top:0}
    :is(#panel-trod,#panel-trodc) [data-step="1"]>:nth-child(4) h3{font-family:var(--f-body);font-size:.9rem}
    :is(#panel-trod,#panel-trodc) [data-step="1"]>:nth-child(5){grid-column:2;grid-row:3;align-self:end;gap:6px}
    :is(#panel-trod,#panel-trodc) [data-step="1"]>:nth-child(5) .opt{padding:5px 10px;min-height:46px}
    :is(#panel-trod,#panel-trodc) [data-step="1"]>:nth-child(5) .t{font-size:.92rem;line-height:1.2}
    :is(#panel-trod,#panel-trodc) [data-step="1"]>:nth-child(5) .s{display:none}
    :is(#panel-trod,#panel-trodc) [data-step="1"]>:nth-child(5) .opt>span{min-width:0;hyphens:auto}
  }
  #panel-trod .pf-g:has(#tr-score)>div{display:flex;align-items:center;gap:12px}
  #panel-trod .pf-g:has(#tr-score) .lab{margin:0}
  #panel-trod #tr-score{flex:none;width:96px}
}
.rs-box{flex:1 1 0;min-height:110px;border:1.5px dashed var(--paper-muted);border-radius:12px;padding:8px 12px;color:var(--paper-muted);font-size:.85rem}
/* Cachet rempli d'après les Réglages : cadre plein et texte centré, comme un tampon */
.rs-cachet{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;text-align:center;line-height:1.35;border-style:solid;border-color:var(--paper-ink);color:var(--paper-ink)}
.rs-cachet b{font-size:.95rem}
#print-root{display:none}
/* Fiche de résultat imprimée : tailles fixes (indépendantes de la taille de texte choisie) et espacements serrés pour tenir sur une page A4 */
#print-root .sheet{box-shadow:none;border:0;padding:0;border-radius:0;gap:7px;font-size:10.5pt;line-height:1.4}
#print-root .sheet-top{font-size:10pt}
#print-root .sheet-title{font-size:14pt;padding-bottom:6px}
#print-root .sheet h4{font-size:11pt;margin-top:3px}
#print-root .rs-line{margin:0}
#print-root .rs-res{padding:5px 14px}
#print-root .rs-badge{font-size:16pt}
#print-root .rs-kv{padding:1px 2px}
#print-root .rs-abx{padding:6px 12px}
#print-root .rs-abx b{font-size:11pt}
#print-root .rs-abx p{margin-top:2px}
#print-root .rs-adv{font-size:9.5pt;margin-top:0}
#print-root .rs-adv li{margin:1px 0}
#print-root .rs-note{font-size:9pt}
#print-root .rs-sign{margin-top:4px;break-inside:avoid;page-break-inside:avoid}
#print-root .rs-box{min-height:30mm;font-size:8.5pt}
#print-root .rs-cachet{font-size:9pt}
#print-root .rs-cachet b{font-size:10pt}
/* Vaccination : lignes resserrées, champs de saisie remplacés par leur valeur */
#print-root .no-print{display:none}
#print-root .sheet.vx-s{gap:12px;font-size:12.5pt}
#print-root .vx-s .sheet-top{font-size:11.5pt}
#print-root .vx-s .sheet-ph{font-size:10.5pt}
#print-root .vx-s .sheet-title{font-size:20pt;padding-bottom:8px}
#print-root .vx-s .sheet-patient{font-size:12.5pt}
#print-root .vx-b{gap:8px}
#print-root .vx-l{padding:10px 14px}
#print-root .vx-n{font-size:14pt}
#print-root .vx-rdv{padding:6px 10px}
#print-root .vx-d{font-size:11pt}
#print-root .vx-c{font-size:13pt}
#print-root .vx-why{font-size:11.5pt;line-height:1.4}
#print-root .vx-note{font-size:10pt}
#print-root .vx-adv{font-size:11pt;margin-top:2px}
#print-root .vx-att{font-size:11pt}
#print-root .vx-s2 .vx-att{font-size:9.5pt}
#print-root .vx-s2 .vx-post .rs-box{min-height:24mm}
#print-root .vx-s .sheet-qr p{font-size:10.5pt}
#print-root .vx-s .sheet-qr b{font-size:11.5pt}
#print-root .sheet.vx-s2{gap:8px;font-size:11pt}
#print-root .vx-s2 .sheet-title{font-size:16pt;padding-bottom:5px}
#print-root .vx-s2 .vx-b{gap:5px}
#print-root .vx-s2 .vx-l{padding:6px 10px;gap:6px 16px}
#print-root .vx-s2 .vx-m{gap:4px}
#print-root .vx-s2 .vx-n{font-size:12pt}
#print-root .vx-s2 .vx-rdv{padding:3px 8px}
#print-root .vx-s2 .vx-d{font-size:9.5pt}
#print-root .vx-s2 .vx-c{font-size:11pt}
#print-root .vx-s2 .vx-why{font-size:10pt;line-height:1.3}
#print-root .vx-s2 .vx-note{font-size:9pt}
#print-root .vx-s2 .vx-adv{font-size:9.5pt}
@media print{
  /* Seule la feuille s'imprime : ni fenêtre ouverte (planning de l'accueil), ni message ou liste flottante par-dessus ou à la suite */
  body.print-rs>:not(#print-root){display:none!important}
  body.print-rs #print-root{display:block}
}

/* ---------- QR code agenda ---------- */
.qr-dlg{width:min(760px,calc(100vw - 24px));max-height:calc(100vh - 24px);overflow:auto;padding:22px;border:1px solid var(--line);border-radius:22px;background:var(--surface);color:var(--ink);box-shadow:var(--shadow-lg)}
.qr-dlg::backdrop{background:rgba(14,12,19,.5)}
.qr-dlg{flex-direction:column;gap:14px}
.qr-dlg[open]{display:flex}
.qr-head{display:flex;justify-content:space-between;align-items:flex-start;gap:12px}
.qr-head b{display:block;font-family:var(--f-display);font-weight:600;font-size:1.3rem}
.qr-head span{display:block;color:var(--muted);font-size:.95rem;margin-top:2px}
.qr-body{display:grid;grid-template-columns:auto minmax(0,1fr);gap:20px;align-items:start}
.qr-code{width:300px;padding:10px;border-radius:14px;background:#fff;border:1px solid var(--line);line-height:0}
.qr-code svg{display:block;width:100%;height:auto}
.qr-list{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:8px}
.qr-list li{padding:9px 12px;border-radius:12px;background:var(--surface-2);border:1px solid var(--line)}
.qr-list .d{display:block;font-size:.84rem;font-weight:700;color:var(--strong)}
.qr-list .t{display:block;font-weight:700}
.qr-list .n{display:block;color:var(--muted);font-size:.88rem;line-height:1.4}
@media (max-width:640px){.qr-body{grid-template-columns:minmax(0,1fr)}.qr-code{width:min(300px,100%);margin-inline:auto}}
/* QR code imprimé au bas de la fiche : largeur en mm calculée pour des modules d'au moins 0,4 mm */
.sheet-qr{display:flex;align-items:center;gap:14px;padding:6px 12px 6px 6px;border:1.5px dashed var(--paper-line);border-radius:12px;break-inside:avoid;page-break-inside:avoid}
.sheet-qr-c{flex:none;line-height:0}
.sheet-qr-c svg{display:block;width:100%;height:auto}
.sheet-qr p{font-size:9.5pt;line-height:1.4}
.sheet-qr b{display:block;font-size:10.5pt;color:var(--paper-strong);margin-bottom:2px}

.hist-day{font-family:var(--f-display);font-size:1rem;margin:16px 0 8px;text-transform:capitalize}
#hist-body .mi{margin-bottom:8px}
.pz-note{margin-top:6px}
html[data-fs="l"]{font-size:112.5%}
html[data-fs="xl"]{font-size:125%}
/* Page Raccourcis clavier : une carte par endroit, la touche à gauche, ce qu'elle fait à droite */
/* Raccourcis clavier : deux colonnes équilibrées (sections rangées par RK[].col), une ligne par raccourci,
   touches dans une colonne fixe à gauche, filets entre les lignes ; les touches courtes du planning vont par deux */
.rk-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:var(--sp-4);align-items:start}
.rk-col{display:grid;gap:var(--sp-4);min-width:0}
.rk-grid .card{padding:var(--sp-4) var(--sp-5) var(--sp-2)}
.rk-grid .ct{margin:0 0 var(--sp-1);font-size:var(--fz-lg)}
.rk-list{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:1fr;column-gap:var(--sp-6)}
.rk-list li{display:grid;grid-template-columns:120px minmax(0,1fr);gap:var(--sp-3);align-items:center;min-height:44px;padding:var(--sp-2) 0;border-top:1px solid var(--line-soft);font-size:var(--fz-md);line-height:1.35;color:var(--ink)}
.rk-list li:first-child{border-top:0}
.rk-list span:first-child{display:flex;flex-wrap:wrap;gap:var(--sp-1)}
.rk-list.rk-duo{grid-template-columns:repeat(2,minmax(0,1fr))}
.rk-list.rk-duo li:nth-child(2){border-top:0}
.rk-list.rk-duo li{grid-template-columns:120px minmax(0,1fr)}
.rk-list kbd{display:inline-grid;place-items:center;min-width:26px;height:26px;padding:0 7px;border-radius:var(--r-sm);border:1px solid var(--line-strong);border-bottom-width:2px;background:var(--surface-2);color:var(--ink);font:700 var(--fz-sm)/1 var(--font)}
@media (max-width:999.98px){.rk-grid{grid-template-columns:minmax(0,1fr)}}
@media (max-width:599.98px){.rk-list.rk-duo{grid-template-columns:1fr}.rk-list.rk-duo li:nth-child(2){border-top:1px solid var(--line-soft)}}
.rk-pied{margin-top:16px}
/* Sans clavier ni souris (téléphone, tablette), la page des raccourcis n'a pas d'onglet */
@media (hover:none),(pointer:coarse){#tab-raccourcis{display:none}}
.ab-ul{padding-left:1.2em;display:flex;flex-direction:column;gap:6px}


.pg-sa2{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.pg-big{font-family:var(--f-mono);font-weight:700;font-size:clamp(1.8rem,6vw,2.8rem);color:var(--strong);line-height:1.1}
.pg-stats{display:grid;grid-template-columns:repeat(auto-fit,minmax(170px,1fr));gap:10px;margin-top:12px}
.pg-st{padding:10px 14px;border:1px solid var(--line);border-radius:14px;background:var(--surface-2)}
.pg-st span{display:block;color:var(--muted);font-size:.82rem}
.pg-st b{font-family:var(--f-display);font-size:1.05rem}
.pg-lanes{display:flex;flex-wrap:wrap;gap:8px;margin:6px 0 12px}
.pg-lanes .opt{padding:7px 12px;min-height:0}
.pg-pathbox{padding:12px 14px;border:1.5px dashed rgba(194,65,91,.55);border-radius:18px;background:rgba(194,65,91,.07);margin-bottom:16px}
.pg-ph{font-family:var(--f-display);font-size:1.05rem}
.pg-p{padding:10px 0;border-top:1px solid rgba(194,65,91,.22)}
.pg-p:first-of-type{border-top:0}
.pg-p b{font-family:var(--f-display);font-size:.98rem;color:var(--ink)}
.pg-p p{margin:4px 0 0;color:var(--muted);font-size:.88rem;line-height:1.4}
.pg-scale{display:grid;grid-template-columns:repeat(10,minmax(0,1fr));gap:2px;margin:6px 0 2px}
.pg-scale i{display:block;height:16px;border-radius:4px;background:rgba(127,127,127,.14);color:var(--muted);font-size:.62rem;font-style:normal;text-align:center;line-height:16px}
.pg-scale i.on{background:var(--lc);color:#fff;opacity:.5}
.tv-tri{margin:14px 0 2px;padding:6px 14px;border-radius:12px;background:var(--soft);color:var(--strong);font-family:var(--f-display);font-weight:700}
.tv-row{display:grid;grid-template-columns:92px minmax(0,1fr);gap:12px;padding:12px 8px;border-top:1px solid var(--line);border-radius:16px}
.tv-row.now{background:var(--soft);outline:2px solid var(--accent);outline-offset:-2px}
.tv-m{position:sticky;top:10px;align-self:start}
.tv-m b{display:block;font-family:var(--f-display);font-size:1.05rem;line-height:1.2}
.tv-m span{display:block;color:var(--muted);font-size:.82rem}
.tv-row.now .tv-m::after{content:"Vous êtes ici";display:block;margin-top:6px;width:fit-content;padding:2px 9px;border-radius:999px;background:var(--accent);color:var(--accent-ink);font-size:.72rem;font-weight:700}
.tv-c{display:flex;flex-direction:column;gap:10px;min-width:0}
.tv-lane{min-width:0}
.tv-lh{margin:0 0 4px;font-size:.74rem;font-weight:800;letter-spacing:.06em;text-transform:uppercase;color:var(--lc)}
.tv-it{padding:8px 11px;border-radius:12px;border-left:4px solid var(--lc);background:var(--lcb);font-size:.9rem;line-height:1.4;margin-bottom:6px}
.tv-it b{display:block;font-family:var(--f-display);font-size:.95rem;margin-bottom:2px}
.tv-it p{margin:0;color:var(--muted)}
.tv-chips{display:flex;flex-wrap:wrap;gap:5px}
.tv-cont{padding:3px 10px;border-radius:999px;border:1px dashed var(--lc);color:var(--muted);font-size:.8rem}
.tv-cont b{color:var(--ink);font-weight:700}
.tv-pill{padding:3px 10px;border-radius:999px;border:1px dashed rgba(194,65,91,.7);background:rgba(194,65,91,.1);font-size:.8rem;color:var(--ink)}
@media (max-width:520px){.tv-row{grid-template-columns:74px minmax(0,1fr);gap:8px;padding:10px 4px}.tv-m b{font-size:.95rem}}
/* Lisibilité de la frise (2026-11-10) : plus de texte sous 13 px, et les noms de strates en encre avec une pastille
   de couleur au lieu d'un texte coloré (contraste de 3,3 à 4,3 sur fond teinté, sous le seuil de 4,5) */
.pg-scale i{height:20px;line-height:20px;font-size:.8rem;font-weight:700}
.pg-scale i.on{opacity:1;background:color-mix(in srgb,var(--lc) 55%,var(--surface));color:var(--ink)}
.tv-m span{font-size:.86rem}
.tv-lh{display:flex;align-items:center;gap:7px;font-size:.82rem;color:var(--ink)}
.tv-lh::before,.pg-lanes .t::before{content:"";flex:none;width:10px;height:10px;border-radius:50%;background:var(--lc)}
.tv-cont,.tv-pill{font-size:.86rem}
.pg-lanes .t{display:flex;align-items:center;gap:7px;color:var(--ink)}

/* ---------- Accueil ---------- */
/* Ouverture : halos violet et orange du logo, titre au dégradé, recherche au premier plan */
/* Accueil connecté : bandeau de bienvenue aux couleurs du logo (identique dans les deux thèmes), puis tableau de bord */
.hm-hero{position:relative;isolation:isolate;overflow:hidden;display:flex;flex-wrap:wrap;align-items:stretch;gap:12px 14px;padding:14px 16px 14px 22px;border-radius:24px;color:#fff;background:#1C0B3B;box-shadow:none}
.hm-sky{position:absolute;inset:0;z-index:-1;overflow:hidden;pointer-events:none;background:radial-gradient(90% 130% at 0% 0%,#5B1CB0 0,rgba(91,28,176,0) 62%),radial-gradient(70% 120% at 72% 0%,#A3208F 0,rgba(163,32,143,0) 66%),radial-gradient(62% 110% at 104% 104%,var(--hm-sun,#FD5214) 0,rgba(253,82,20,0) 70%)}
.hm-hero[data-moment="matin"]{--hm-sun:#FF7A1A}
.hm-hero[data-moment="soir"]{--hm-sun:#B5267F;background:#140830}
/* Les deux anneaux du logo, en très grand */
.hm-ring{position:absolute;width:320px;height:320px;border-radius:50%;border:44px solid #fff;opacity:.07}
.hm-ring-v{right:130px;top:-160px}
.hm-ring-o{right:-60px;top:-110px}
/* Bandeau bas, en trois lignes : l'officine, l'équipe et les tâches ; « Bonjour » et le message côte à côte ; la recherche */
/* Le bandeau passe à la ligne selon la place : bienvenue et date d'abord, la veille (jauges et pollens) à côté ou dessous */
.hm-hello{flex:1 1 250px;display:flex;flex-wrap:wrap;align-items:center;align-content:center;gap:8px 14px;min-width:0}
.hm-hello::before{content:"";flex:1 0 100%;height:0;order:2;margin-top:-6px}
.hm-office,.hm-tk,.hm-crew{order:1}
.hm-hero h2,.hm-sub{order:3}
.hm-hello .search{order:4}
.hm-office{display:inline-flex;align-items:center;gap:8px;min-height:28px;max-width:100%;padding:3px 12px 3px 4px;border-radius:999px;background:rgba(255,255,255,.14);font-weight:700;font-size:.86rem}
.hm-office img{width:22px;height:22px;border-radius:50%;background:#fff;padding:2px;flex:none}
.hm-office span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.hm-hero h2{flex:0 1 auto;font-size:clamp(1.6rem,2.4vw,2rem);font-weight:600;letter-spacing:-.03em;line-height:1.1;overflow-wrap:anywhere}
.hm-sub{flex:0 1 auto;font-size:1.02rem;font-weight:500;color:rgba(255,255,255,.88)}
.hm-crew{display:flex;align-items:center;flex-wrap:wrap;gap:4px 8px;font-weight:600;font-size:.86rem;color:rgba(255,255,255,.92)}
.hm-crew .hm-stack .hm-av{width:26px;height:26px;font-size:.62rem;box-shadow:0 0 0 2px #2C0F58}
.hm-hello .search{flex:1 0 100%;max-width:600px}
.hm-hello .search svg{left:16px}
.hm-hello .search .inp{min-height:42px;padding-left:46px;font-size:1rem;border-color:transparent;box-shadow:none}
/* Page du calendrier : le jour, la semaine et le prochain jour férié */
/* La carte prend la hauteur du bandeau (container-type:size) et le chiffre du jour grandit avec elle */
.hm-day{flex:0 0 176px;container-type:size;min-height:96px;border-radius:16px;background:rgba(255,255,255,.12);border:1px solid rgba(255,255,255,.2)}
/* Le jour et le texte au centre de la carte, avec la même marge tout autour */
.hm-day-in{display:flex;flex-direction:column;justify-content:space-between;gap:8px;height:100%;padding:10px 12px}
.hm-day-t{flex:1;display:flex;align-items:center;justify-content:center;gap:9px;min-width:0}
/* Chiffre et mois suivent la hauteur, sans jamais déborder de la largeur (« septembre » compris) */
.hm-day-n{flex:none;font-family:var(--f-display);font-weight:600;font-size:clamp(2.1rem,min(38cqh,25cqw),4.2rem);letter-spacing:-.05em;line-height:.9}
.hm-day-wm{display:flex;flex-direction:column;min-width:0}
.hm-day-w{font-weight:700;font-size:clamp(.9rem,min(10cqh,8.4cqw),1.15rem);line-height:1.15;text-transform:capitalize}
.hm-day-m{font-family:var(--f-display);font-weight:500;font-size:clamp(.92rem,min(10.5cqh,8.6cqw),1.2rem);line-height:1.15;text-transform:capitalize}
.hm-day-s{padding-top:8px;border-top:1px solid rgba(255,255,255,.24);font-size:.76rem;line-height:1.35;text-align:center;color:rgba(255,255,255,.9)}
.hm-day-s b{color:#fff}
.hm-day-s b::after{content:" ·"}
/* Carte haute : la semaine sur sa ligne, en plus grand */
@container (min-height:170px){
  .hm-day-s{font-size:.88rem}
  .hm-day-s b{display:block;font-size:1rem}
  .hm-day-s b::after{content:none}
}
/* À côté de la date : situation épidémique et pollens en un coup d'œil, le détail de chacun s'ouvre en grand */
.hm-veille{flex:2 1 600px;container-type:inline-size;min-width:0}
.hm-veille[hidden]{display:none}
/* Un seul des deux blocs : la veille ne réserve pas la place de l'autre */
.hm-veille.seul{flex:1 1 300px}
.hm-veille.seul .hm-polb{flex-grow:1;max-width:480px}
.hm-veille-in{display:flex;flex-wrap:wrap;align-items:stretch;gap:12px;height:100%}
/* Trop étroit pour les deux côte à côte : une bande qu'on fait glisser, le bord du bloc suivant visible ; le bandeau garde la hauteur d'un seul bloc */
@container (max-width:601px){
  .hm-veille-in{flex-wrap:nowrap;gap:10px;overflow-x:auto;overscroll-behavior-x:contain;scroll-snap-type:x mandatory;scrollbar-width:none}
  .hm-veille-in::-webkit-scrollbar{display:none}
  .hm-veille-in>.hm-epib{flex:0 0 min(88%,360px);scroll-snap-align:start}
  .hm-veille.seul .hm-veille-in>.hm-epib{flex-basis:100%}
  .hm-veille:not(.seul) .hm-veille-pts{display:flex}
  .hm-veille:not(.seul) .hm-veille-in{height:auto}
}
/* Deux points sous la bande : où l'on est, et qu'il y a un second bloc */
.hm-veille-pts{display:none;justify-content:center;gap:2px;margin-top:4px}
.hm-veille-pts button{width:22px;height:14px;padding:0;border:0;background:none;cursor:pointer;display:grid;place-items:center}
.hm-veille-pts button::before{content:"";width:7px;height:7px;border-radius:50%;background:rgba(255,255,255,.38);transition:width .2s,background-color .2s}
.hm-veille-pts button.on::before{width:16px;border-radius:4px;background:#fff}
.hm-epib{flex:1 1 290px;container-type:inline-size;display:flex;flex-direction:column;gap:7px;min-width:0;padding:10px 14px 9px;border-radius:16px;background:rgba(255,255,255,.12);border:1px solid rgba(255,255,255,.2)}
.hm-epib-h{display:flex;align-items:center;justify-content:space-between;gap:10px}
.hm-epib-h>div{display:flex;flex-wrap:wrap;align-items:baseline;gap:0 8px;min-width:0}
.hm-epib-h h3{margin:0;color:#fff;font-family:inherit;font-size:.98rem;font-weight:700;letter-spacing:0;line-height:1.25}
.hm-epib-h small{display:block;color:rgba(255,255,255,.84);font-size:.78rem}
.hm-epib-b{flex:none;min-height:30px;padding:0 13px;border-radius:999px;border:1px solid rgba(255,255,255,.4);background:transparent;color:#fff;font-weight:700;font-size:.82rem;cursor:pointer}
.hm-epib-b:hover{background:rgba(255,255,255,.14)}
/* Les jauges occupent toute la hauteur restante : deux colonnes, quatre sur une ligne quand le bloc est large ;
   le niveau passe sous le nom plutôt que de le couper */
.hm-epib-l{flex:1;list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-items:start;align-content:space-evenly;gap:8px 16px}
@container (min-width:520px){.hm-epib-l{grid-template-columns:repeat(4,minmax(0,1fr))}}
@container (max-width:239px){.hm-epib-l{grid-template-columns:minmax(0,1fr)}}
.hm-epib-l li{display:flex;flex-wrap:wrap;align-items:baseline;justify-content:space-between;gap:4px 8px;min-width:0;font-size:.86rem;line-height:1.2}
.hm-epib-l b{font-weight:700}
.hm-epib-l span{color:rgba(255,255,255,.92);font-weight:600;font-size:.8rem}
.hm-epib-l .hm-epib-a{flex:1 0 100%;display:flex;align-items:baseline;gap:6px;font-weight:600;font-size:.76rem;line-height:1.25;text-align:left}
.hm-epib-a i{flex:none;width:9px;height:9px;border-radius:50%;background:#F3C42A}
.hm-epib-a i.a2{background:#F5A35C}.hm-epib-a i.a3{background:#FF7AA2}
.hm-epib .hm-epi-g{flex:1 0 100%;height:8px;gap:3px}
.hm-epib .hm-epi-g i,.hm-epib .hm-epi-g.continu{background:rgba(255,255,255,.18);box-shadow:none}
.hm-epib .hm-epi-g i.on:nth-child(1){background:rgba(255,255,255,.45)}
.hm-epib .hm-epi-g i.on:nth-child(2){background:rgba(255,255,255,.58)}
.hm-epib .hm-epi-g i.on:nth-child(3){background:rgba(255,255,255,.72)}
.hm-epib .hm-epi-g i.on:nth-child(4){background:rgba(255,255,255,.86)}
.hm-epib .hm-epi-g i.on:nth-child(5){background:#fff}
.hm-epib .hm-epi-g.continu u{background:rgba(255,255,255,.5)}
.hm-epib .hm-epi-g em{width:13px;height:13px;margin:-6.5px 0 0 -6.5px;background:#fff;box-shadow:0 0 0 2px #2C0F58}
.hm-epib-s{margin:0;color:rgba(255,255,255,.82);font-size:.7rem;line-height:1.3}
.hm-epib-s a{color:inherit}
/* Pollens : le niveau de l'officine, la source dessous */
/* Largeur fixe à côté des jauges, qui prennent la place libre ; seul sur sa ligne, il prend toute la largeur */
.hm-polb{flex:0 1 300px;display:grid;grid-template-columns:minmax(0,1.5fr) minmax(92px,1fr);grid-template-rows:auto minmax(0,1fr) auto;gap:7px 12px}
.hm-polb>.hm-epib-h,.hm-polb>.hm-epib-s,.hm-polb>.hm-polb-msg{grid-column:1/-1}
.hm-polb.sans-carte{grid-template-columns:minmax(0,1fr)}
.hm-polb-n{display:flex;flex-direction:column;justify-content:center;gap:5px;min-width:0}
.hm-polb-n b{font-family:var(--f-display);font-weight:600;font-size:1.3rem;letter-spacing:-.02em;line-height:1.05;overflow-wrap:anywhere}
.hm-polb-n small{color:rgba(255,255,255,.88);font-size:.76rem;line-height:1.25}
.hm-polb-g{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:2px;height:9px;margin-top:2px}
.hm-polb-g i{border-radius:2px;background:var(--pol)}
.hm-polb-g i:first-child{border-radius:5px 2px 2px 5px}
.hm-polb-g i:last-child{border-radius:2px 5px 5px 2px}
.hm-polb-g i.ici{box-shadow:0 0 0 2px #fff;position:relative;z-index:1}
.hm-polb-al{align-self:flex-start;padding:2px 8px;border-radius:999px;background:#FF7AA2;color:#2C0F58;font-size:.74rem;font-weight:700}
.hm-polb-msg{margin:0;color:rgba(255,255,255,.92);font-size:.84rem;line-height:1.35}
.hm-polb-adr{justify-self:start;grid-column:1/-1}
/* ---------- Accueil, refonte 2026-11 (docs/DESIGN.md § 6.4 et § 6.12) ----------
   Le titre, puis le bandeau du jour : une bande blanche, trois modules séparés par un filet (date et semaine, épidémies à
   crans, pollens), les sources sur une ligne dessous. Mêmes places et mêmes tailles en thème sombre ;
   ces règles, préfixées par #panel-home, passent devant l'ancien bandeau violet. */
#panel-home .hm-top{display:flex;flex-wrap:wrap;align-items:flex-end;gap:10px 16px;margin-bottom:-4px}
#panel-home .hm-hi{flex:1 1 auto;min-width:0}
#panel-home .hm-hi h2{margin:0;color:var(--ink);font-size:var(--fz-h1);line-height:34px;font-weight:700;letter-spacing:-.01em}
#panel-home .hm-hi .hm-sub{margin:2px 0 0;color:var(--ink-2);font-size:var(--fz-md);line-height:20px;font-weight:400}
#panel-home .hm-top .hm-tk{display:none}
#panel-home .hm-top .search{flex:1 0 100%}
#panel-home .hm-hero{display:flex;flex-wrap:wrap;align-items:stretch;gap:0;padding:0;overflow:visible;isolation:auto;border:1px solid var(--line);border-radius:var(--r-lg);background:var(--surface);color:var(--ink);box-shadow:none}
/* La case de la date porte la couleur de Fusioon (dégradé du logo, assombri pour le texte blanc) ; épidémies et pollens restent sur fond blanc */
#panel-home .hm-day{flex:0 1 232px;container-type:normal;min-height:0;display:flex;align-items:center;padding:16px 24px;border:0;border-radius:calc(var(--r-lg) - 1px) 0 0 calc(var(--r-lg) - 1px);background:var(--date-grad);color:var(--date-on)}
#panel-home .hm-hero:has(>.hm-veille[hidden]) .hm-day{border-radius:calc(var(--r-lg) - 1px)}
#panel-home .hm-day-in{display:flex;flex-direction:row;align-items:center;justify-content:flex-start;gap:14px;height:auto;padding:0}
#panel-home .hm-day-n{font-family:var(--font);font-size:44px;line-height:44px;font-weight:700;letter-spacing:-.02em;font-variant-numeric:tabular-nums;color:var(--date-on)}
#panel-home .hm-day-wm{display:flex;flex-direction:column;gap:3px;min-width:0}
#panel-home .hm-day-w{color:var(--date-on);font-size:16px;line-height:20px;font-weight:700}
#panel-home .hm-day-m{color:var(--date-on);font-family:var(--font);font-size:14px;line-height:18px;font-weight:400;text-transform:none}
#panel-home .hm-day-w{text-transform:none}
#panel-home .hm-day-s{align-self:flex-start;margin-top:3px;padding:2px 8px;border:0;border-radius:var(--r-pill);background:var(--date-on);color:var(--date-pill);font-size:12px;line-height:16px;font-weight:700}
#panel-home .hm-veille{flex:1 1 640px;min-width:0;container-type:inline-size}
#panel-home .hm-veille-in{display:flex;flex-wrap:wrap;gap:0;height:100%;overflow:visible}
#panel-home .hm-veille-pts{display:none}
#panel-home .hm-epib{flex:1 1 380px;container-type:normal;gap:9px;min-width:0;padding:12px 24px 16px;border:0;border-radius:0;background:none;color:var(--ink)}
#panel-home .hm-epib+.hm-epib{border-left:1px solid var(--line)}
#panel-home .hm-epib-h h3{color:var(--ink);font-size:14px;line-height:20px;font-weight:700}
#panel-home .hm-epib-h small{display:inline;color:var(--ink-3);font-size:12px;line-height:16px}
#panel-home .hm-epib-b{min-height:32px;margin-right:-8px;padding:0 8px;border:0;border-radius:8px;background:none;color:var(--action);font-size:12px;font-weight:700}
#panel-home .hm-epib-b:hover{background:var(--action-soft)}
#panel-home .hm-epib-b:focus-visible{outline:3px solid var(--action);outline-offset:1px}
#panel-home .hm-epib-l{grid-template-columns:repeat(2,minmax(0,1fr));align-content:start;gap:10px 28px}
#panel-home .hm-epib-l li{display:flex;flex-wrap:wrap;align-items:baseline;justify-content:space-between;gap:0 8px}
#panel-home .hm-epib-l b{color:var(--ink);font-size:14px;line-height:18px;font-weight:600}
#panel-home .hm-epib-l span{color:var(--ink-2);font-size:12px;line-height:16px;font-weight:400}
#panel-home .hm-epib-l .hm-epib-a{color:var(--ink-2);font-size:12px;font-weight:600}
/* Jauges à crans : les crans atteints prennent la couleur du cran du jour ; jamais de poignée ronde */
#panel-home .hm-epib .hm-epi-g{flex:1 0 100%;height:6px;margin-top:5px;gap:3px}
#panel-home .hm-epib .hm-epi-g i,#panel-home .hm-epib .hm-epi-g.continu{border-radius:3px;background:var(--epi-vide);box-shadow:none}
#panel-home .hm-epib .hm-epi-g em{display:none}
#panel-home .hm-epib .hm-epi-g i.on{background:var(--k,var(--epi-1))}
#panel-home .hm-epib .hm-epi-g[data-k="0"]{--k:var(--epi-1)}#panel-home .hm-epib .hm-epi-g[data-k="1"]{--k:var(--epi-2)}#panel-home .hm-epib .hm-epi-g[data-k="2"]{--k:var(--epi-3)}
#panel-home .hm-epib .hm-epi-g[data-k="3"]{--k:var(--epi-4)}#panel-home .hm-epib .hm-epi-g[data-k="4"]{--k:var(--epi-5)}
#panel-home .hm-epib .hm-epi-g.continu u{border-radius:3px;background:var(--epi-1)}
/* Pollens : le niveau du jour et l'échelle Atmo (le niveau du jour plus haut, cerclé) */
#panel-home .hm-polb{display:flex;flex-direction:row;align-items:center;gap:16px;padding:12px 24px 14px}
#panel-home .hm-polb-x{flex:1 1 auto;min-width:0;display:flex;flex-direction:column;gap:6px}
#panel-home .hm-polb-n{flex-direction:row;flex-wrap:wrap;align-items:baseline;justify-content:flex-start;gap:2px 8px}
#panel-home .hm-polb-n b{color:var(--ink);font-family:var(--font);font-size:20px;line-height:24px;font-weight:700;letter-spacing:0}
#panel-home .hm-polb-n small{color:var(--ink-2);font-size:12px;line-height:16px}
#panel-home .hm-polb-g{flex:1 0 100%;align-items:center;gap:4px;height:14px;margin-top:2px}
#panel-home .hm-polb-g i{height:6px;border-radius:3px}
#panel-home .hm-polb-g i.ici{height:12px;border-radius:4px;box-shadow:0 0 0 2px var(--surface),0 0 0 3.5px var(--ink)}
#panel-home .hm-polb-msg{color:var(--ink-2);font-size:14px}
#panel-home .hm-polb-al{background:var(--crit-bg);color:var(--crit)}
#panel-home .hm-polb.sans-carte{flex-direction:column;align-items:stretch}
/* Sources, sur une ligne sous le bandeau */
#panel-home .hm-src1{margin:-12px 0 0;color:var(--ink-3);font-size:12px;line-height:18px}
#panel-home .hm-src1 a{color:inherit}
#panel-home .hm-src1[hidden]{display:none}
/* Fenêtre plus étroite : la date sur toute la largeur, puis épidémies et pollens côte à côte, en plus compact */
@container (max-width:600px){
  #panel-home .hm-veille-in{flex-wrap:nowrap}
  #panel-home .hm-veille-in>.hm-epib{flex:1 1 0;padding:12px 14px 14px}
  #panel-home .hm-epib-l{grid-template-columns:minmax(0,1fr);gap:7px}
  #panel-home .hm-epib-l b,#panel-home .hm-epib-l span{font-size:12px;line-height:16px}
  #panel-home .hm-epib .hm-epi-g{height:4px;margin-top:3px;gap:2px}
  #panel-home .hm-epib-h{flex-wrap:wrap;gap:2px 8px}
  #panel-home .hm-epib-b{min-height:28px;margin:0 -6px 0 auto;padding:0 6px}
  #panel-home .hm-polb{flex-direction:column;align-items:stretch;gap:8px}
  #panel-home .hm-polb-n b{font-size:16px;line-height:20px}
}
/* Dès que date (232 px) et veille (640 px) ne tiennent plus côte à côte, la date prend toute la ligne, en haut du bandeau */
@media (max-width:960px){
  #panel-home .hm-day,#panel-home .hm-hero:has(>.hm-veille[hidden]) .hm-day{flex:1 0 100%;padding:12px 14px;border-radius:calc(var(--r-lg) - 1px) calc(var(--r-lg) - 1px) 0 0}
  #panel-home .hm-hero:has(>.hm-veille[hidden]) .hm-day{border-radius:calc(var(--r-lg) - 1px)}
  #panel-home .hm-day-in{gap:10px}
  #panel-home .hm-day-n{font-size:28px;line-height:32px}
  #panel-home .hm-day-wm{flex-direction:row;flex-wrap:wrap;align-items:baseline;gap:2px 8px}
  #panel-home .hm-day-s{flex:none;align-self:center;margin:0 0 0 auto}
}
/* Pastilles de personnes : initiales sur la couleur d'un outil, toujours la même pour une personne */
.hm-av{position:relative;flex:none;display:inline-grid;place-items:center;width:46px;height:46px;border-radius:50%;background:var(--accent);color:var(--accent-ink);font-family:var(--f-display);font-weight:600;font-size:.95rem;letter-spacing:.01em}
.hm-av.sm{width:34px;height:34px;font-size:.74rem}
.hm-av.wait{background:transparent;border:2px dashed var(--line-strong);color:var(--muted)}
.hm-av.here::after{content:"";position:absolute;right:-1px;bottom:-1px;width:13px;height:13px;border-radius:50%;background:#22A565;box-shadow:0 0 0 2.5px var(--surface)}
.hm-stack{display:inline-flex;padding-left:6px}
.hm-stack .hm-av{margin-left:-6px}
/* À traiter : ce qui attend une action, uniquement quand il y en a */
.hm-todo{display:flex;flex-wrap:wrap;gap:10px}
.hm-do{display:inline-flex;align-items:center;gap:10px;min-height:48px;padding:6px 16px 6px 7px;border-radius:999px;border:1.5px solid color-mix(in srgb,var(--warn-line) 55%,var(--line));background:var(--warn-bg);color:var(--ink);font-weight:700;text-align:left;cursor:pointer}
.hm-do:hover{border-color:var(--warn-line)}
.hm-do i{flex:none;display:grid;place-items:center;min-width:34px;height:34px;padding:0 8px;border-radius:999px;background:var(--warn);color:var(--surface);font-style:normal;font-family:var(--f-display);font-size:.95rem}
/* Tableau de bord */
.hm-dash{display:grid;grid-template-columns:minmax(0,2fr) minmax(0,1fr);gap:20px;align-items:start}
.hm-col{display:flex;flex-direction:column;gap:18px;min-width:0}
.hm-card{gap:14px;padding:24px;border-radius:var(--r-card)}
.hm-h{display:flex;align-items:center;gap:12px;min-height:40px}
.hm-h>i{flex:none;display:grid;place-items:center;width:40px;height:40px;border-radius:12px;background:var(--soft);color:var(--strong)}
.hm-h h3{flex:1 1 auto;min-width:0;font-size:1.22rem;letter-spacing:-.02em}
.hm-h .of-count{margin-left:8px}
/* Nouveautés : date à côté du titre, croix pour masquer, précédentes à la demande */
.hm-date{margin-left:10px;color:var(--muted);font-family:var(--f-body);font-size:.84rem;font-weight:600;letter-spacing:0}
.hm-x{flex:none;display:grid;place-items:center;width:36px;height:36px;padding:0;border-radius:50%;border:1.5px solid var(--line-strong);background:transparent;color:var(--muted);cursor:pointer}
.hm-x:hover{color:var(--ink);border-color:var(--ink)}
.hm-x:focus-visible{outline:3px solid var(--accent);outline-offset:2px}
.hm-news-old .mi small{font-size:.8rem}
.hm-link{flex:none;min-height:40px;padding:0 15px;border-radius:999px;border:1.5px solid var(--line-strong);background:transparent;color:var(--ink);font-weight:700;font-size:.92rem;cursor:pointer}
.hm-link:hover{border-color:var(--accent);color:var(--strong)}
.hm-link.on{background:var(--accent);border-color:var(--accent);color:var(--accent-ink)}
.hm-link.on:hover{filter:brightness(1.08);color:var(--accent-ink)}
/* Écran tactile : petits boutons portés à 44 px de haut, la taille minimale conseillée pour le doigt */
@media (pointer:coarse){.hm-link,.btn.sm{min-height:44px}}
.hm-note{color:var(--muted);font-size:.95rem}
.hm-more-m{display:none}
/* Équipe */
.hm-people{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(auto-fill,minmax(min(210px,100%),1fr));gap:8px}
.hm-p{display:flex;align-items:center;gap:10px;min-width:0;max-width:100%;padding:5px 16px 5px 5px;border-radius:999px;background:var(--surface-2)}
.hm-p .hm-av{width:38px;height:38px;font-size:.8rem}
.hm-p .hm-av.here::after{width:11px;height:11px}
.hm-p.fresh{background:color-mix(in srgb,#22A565 11%,var(--surface))}
.hm-p>div{min-width:0}
.hm-p b{display:block;font-family:var(--f-display);font-weight:600;font-size:.95rem;line-height:1.2;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.hm-n{display:flex;align-items:center;min-width:0}
.hm-n b{min-width:0}
.hm-n span{flex:none}
.hm-p small{display:block;color:var(--muted);font-size:.8rem;line-height:1.3}
.hm-p .hm-role{color:var(--ink);font-weight:600}
.hm-new{display:inline-block;margin-left:7px;padding:1px 8px;border-radius:999px;background:var(--ok-bg);color:var(--ok);font-family:var(--f-body);font-size:.78rem;font-weight:700;letter-spacing:0;vertical-align:1px}
.hm-solo{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:12px;padding:16px;border-radius:16px;border:1.5px dashed var(--line-strong)}
.hm-solo p{flex:1 1 240px}
/* Aujourd'hui à l'officine : une ligne par personne, sur les heures de la journée */
.hm-live{flex:none;display:inline-flex;align-items:center;gap:7px;padding:4px 11px;border-radius:999px;background:var(--ok-bg);color:var(--ok);font-size:.84rem;font-weight:700}
.hm-live::before{content:"";width:8px;height:8px;border-radius:50%;background:currentColor}
.hm-tl{position:relative;display:grid;gap:3px;--who:96px}
.hm-tl-axis{position:relative;height:18px;margin-left:var(--who);color:var(--muted);font-size:.74rem;font-weight:700}
.hm-tl-axis span{position:absolute;transform:translateX(-50%)}
.hm-tl-axis span:first-child{transform:none}
.hm-tl-axis span:last-child{transform:translateX(-100%)}
.hm-tl-row{display:grid;grid-template-columns:var(--who) minmax(0,1fr);align-items:center;min-height:22px}
.hm-tl-who{padding-right:8px;font-size:.88rem;font-weight:700;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.hm-tl-who.off{color:var(--muted);font-weight:500}
.hm-tl-bars{position:relative;height:14px;border-radius:6px;background:var(--surface-2)}
.hm-tl-bars i{position:absolute;top:0;bottom:0;min-width:3px;border-radius:5px;background:color-mix(in srgb,var(--accent) 34%,var(--surface))}
.hm-tl-row.now .hm-tl-bars i{background:var(--accent)}
.hm-tl-now{position:absolute;z-index:1;top:18px;bottom:-3px;width:2px;margin-left:-1px;border-radius:2px;background:var(--brand-o);pointer-events:none}
.hm-tl-now::before{content:"";position:absolute;left:-3px;top:-3px;width:8px;height:8px;border-radius:50%;background:var(--brand-o)}
.hm-tl-pos{position:absolute;inset:0 0 0 var(--who);pointer-events:none}
/* La frise de la carte ouvre le planning du jour en grand */
.hm-tl-open{position:absolute;z-index:2;inset:-6px;border:0;border-radius:14px;background:transparent;color:var(--muted);cursor:zoom-in}
.hm-tl-open:hover{background:color-mix(in srgb,var(--accent) 8%,transparent);color:var(--strong)}
.hm-tl-zoom{position:absolute;left:6px;top:6px;display:inline-flex;align-items:center;gap:4px;font-size:.74rem;font-weight:700;line-height:18px}
/* Bandeau de la semaine, sur la carte et dans la pop-up : violet Fusioon, quelle que soit la teinte de l'outil */
.hm-wk{display:flex;flex-direction:column;gap:8px}
.hm-wk-h{display:flex;align-items:center;justify-content:space-between;gap:8px}
.hm-wk-h>b{min-width:0;font-family:var(--f-display);font-weight:600;font-size:1rem;text-align:center}
.hm-wk-h>b small{font-family:var(--f-body);font-weight:500;font-size:.9rem;color:var(--muted)}
.hm-wk-h>b i{font-style:normal}
.hm-wk-n{flex:none;display:grid;place-items:center;width:40px;height:40px;border-radius:50%;border:1.5px solid var(--line-strong);background:transparent;color:var(--ink);cursor:pointer}
.hm-wk-n:hover:not(:disabled){border-color:var(--brand-v);color:var(--brand-strong)}
.hm-wk-n:disabled{opacity:.35;cursor:not-allowed}
.hm-wk-d{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:5px}
.hm-wk-d button{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:1px;min-height:52px;padding:4px 0;border:0;border-radius:14px;background:var(--surface-2);color:var(--ink);cursor:pointer}
.hm-wk-d small{font-size:.74rem;font-weight:700;color:var(--muted)}
.hm-wk-d b{font-family:var(--f-display);font-weight:600;font-size:1.08rem;line-height:1.1}
.hm-wk-d button:hover:not(:disabled){box-shadow:inset 0 0 0 1.5px var(--brand-v)}
.hm-wk-d button.vide:not([aria-pressed="true"]){background:transparent;box-shadow:inset 0 0 0 1px var(--line)}
.hm-wk-d button.vide:not([aria-pressed="true"]) b{color:var(--muted)}
.hm-wk-d button:disabled{opacity:.4;cursor:not-allowed}
.hm-wk-d button[aria-pressed="true"]{background:var(--brand-v);color:var(--brand-ink)}
.hm-wk-d button[aria-pressed="true"] small{color:inherit}
.hm-wk-d button[aria-current="date"]::after{content:"";position:absolute;top:6px;right:7px;width:7px;height:7px;border-radius:50%;background:var(--brand-o)}
/* La page qui tourne reste dans sa carte : pas de débordement sur la largeur de l'écran */
#home-today{overflow:hidden}
.hm-page{display:flex;flex-direction:column;gap:14px;min-width:0}

/* ---------- Planning du jour en grand : pop-up en lecture seule, animation dans le bloc qui suit ---------- */
.qr-dlg.hm-pj{width:calc(100vw - 32px);height:calc(100vh - 32px);height:calc(100dvh - 32px);max-width:none;max-height:none;margin:auto;padding:0;gap:0;overflow:hidden;border:0;border-radius:28px;box-shadow:none;opacity:1;transform:none;transition:none}
.qr-dlg.hm-pj::backdrop{background:rgba(14,8,30,.66)}
.hm-pj-head{position:relative;isolation:isolate;overflow:hidden;flex:none;padding:26px 88px 26px 34px;background:#1C0B3B;color:#fff}
.hm-pj-hd{display:flex;align-items:flex-end;justify-content:space-between;flex-wrap:wrap;gap:12px 28px}
.hm-pj-eye{font-size:.92rem;font-weight:700;color:rgba(255,255,255,.86)}
.hm-pj-head h2{margin-top:2px;color:#fff;font-size:clamp(2rem,4.4vw,3.4rem);font-weight:600;letter-spacing:-.04em;line-height:1.05}
.hm-pj-sub{margin-top:6px;color:rgba(255,255,255,.86)}
.hm-pj-live{display:flex;flex-direction:column;align-items:flex-end;gap:6px}
.hm-pj-clock{font-family:var(--f-display);font-weight:600;font-size:clamp(1.7rem,3.2vw,2.6rem);letter-spacing:-.03em;line-height:1}
.hm-pj-pres{display:inline-flex;align-items:center;gap:8px;padding:4px 12px;border-radius:999px;background:rgba(255,255,255,.14);font-size:.9rem;font-weight:700}
.hm-pj-pres::before{content:"";width:8px;height:8px;border-radius:50%;background:#4ADE80}
.hm-pj .mp-close{position:absolute;top:18px;right:18px;border-radius:50%;border-color:rgba(255,255,255,.3);background:rgba(255,255,255,.14);color:#fff}
.hm-pj .mp-close:hover{background:rgba(255,255,255,.26)}
.hm-pj-body{flex:1 1 auto;min-height:0;overflow:auto;overflow-x:hidden;overscroll-behavior:contain;display:flex;flex-direction:column;gap:18px;padding:20px 34px 26px;background:var(--surface)}
.hm-pj-body>.hm-wk{flex:none}
.hm-pj-body>.hm-page{flex:0 1 auto;min-height:0;gap:18px}
.hm-pj-droite{display:flex;align-items:flex-end;flex-wrap:wrap;justify-content:flex-end;gap:12px 18px}
.hm-pj-pages{display:flex;align-items:center;gap:8px}
.hm-pj-tr,.hm-pj-auj{min-height:48px;border-radius:999px;border:1px solid rgba(255,255,255,.3);background:rgba(255,255,255,.14);color:#fff;cursor:pointer}
.hm-pj-tr{display:grid;place-items:center;width:48px}
.hm-pj-auj{padding:0 16px;font-weight:700}
.hm-pj-tr:hover:not(:disabled),.hm-pj-auj:hover{background:rgba(255,255,255,.26)}
.hm-pj-tr:disabled{opacity:.35;cursor:not-allowed}
.hm-pj-out{display:flex;flex-wrap:wrap;align-items:center;gap:8px}
.hm-pj-o{display:inline-flex;align-items:center;gap:7px;min-height:48px;padding:0 15px;border-radius:999px;border:1px solid rgba(255,255,255,.3);background:rgba(255,255,255,.14);color:#fff;font-weight:700;cursor:pointer}
.hm-pj-o:hover:not(:disabled){background:rgba(255,255,255,.26)}
.hm-pj-o:disabled{opacity:.6;cursor:progress}
.hm-pj-oerr{flex-basis:100%;margin:0;color:#fff;font-size:.86rem;font-weight:600}
.hm-pj-tl{position:relative;isolation:isolate;flex:0 1 auto;min-height:calc(var(--n)*70px + 30px);display:grid;gap:10px;grid-template-rows:auto;grid-auto-rows:minmax(60px,104px);--who:220px;--sep:10px}
.hm-pj-axis{position:relative;height:20px;margin-left:var(--who);color:var(--muted);font-size:.84rem;font-weight:700}
.hm-pj-axis span{position:absolute;transform:translateX(-50%)}
.hm-pj-axis span:first-child{transform:none}
.hm-pj-axis span:last-child{transform:translateX(-100%)}
.hm-pj-grid{position:absolute;z-index:0;top:24px;bottom:0;left:var(--who);right:0;pointer-events:none}
.hm-pj-grid i{position:absolute;top:0;bottom:0;width:1px;background:var(--line)}
.hm-pj-row{display:grid;grid-template-columns:var(--who) minmax(0,1fr);min-width:0}
/* Un fin trait entre deux personnes, au milieu de l'écart (--sep), du nom jusqu'au bout de la journée */
.hm-pj-row{position:relative}
.hm-pj-row+.hm-pj-row::before{content:"";position:absolute;z-index:0;left:0;right:0;top:calc(var(--sep) / -2 - .5px);height:1px;background:var(--line-strong);opacity:.7;pointer-events:none}
.hm-pj-who{position:relative;z-index:3;display:flex;align-items:center;gap:12px;min-width:0;padding-right:14px}
.hm-pj-who div{min-width:0}
.hm-pj-who b{display:block;font-family:var(--f-display);font-weight:600;font-size:1.14rem;line-height:1.2;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.hm-pj-who small{display:block;color:var(--muted);font-size:.86rem;line-height:1.3;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.hm-pj-who small.hm-pj-t{display:none}
.hm-pj-bars{position:relative;border-radius:14px;background:color-mix(in srgb,var(--surface-2) 70%,transparent)}
.hm-pj-seg{position:absolute;z-index:1;top:0;bottom:0;min-width:4px;container-type:inline-size;display:flex;align-items:center;justify-content:center;overflow:hidden;border-radius:14px;background:color-mix(in srgb,var(--accent) 34%,var(--surface));color:var(--ink)}
.hm-pj-seg.act{background:var(--accent);color:var(--accent-ink)}
.hm-pj-seg.fini{background:color-mix(in srgb,var(--accent) 14%,var(--surface))}
.hm-pj-h{padding:0 8px;font-weight:700;font-size:clamp(.86rem,1.2vw,1.05rem);white-space:nowrap}
@container (max-width:92px){.hm-pj-h{display:none}}
.hm-pj-now{position:absolute;z-index:2;top:0;bottom:0;left:var(--who);right:0;pointer-events:none}
.hm-pj-now i{position:absolute;top:24px;bottom:0;width:3px;margin-left:-1.5px;border-radius:3px;background:var(--brand-o)}
.hm-pj-now b{position:absolute;top:-1px;transform:translateX(-50%);padding:1px 9px;border-radius:999px;background:var(--brand-o);color:#1C0B3B;font-size:.82rem;font-weight:700}
/* Planning du jour en grand, compact (demande du 2026-11-07) : en-tête et semaine resserrés, une ligne basse par personne,
   pour voir au moins une dizaine de personnes sans faire défiler */
.hm-pj.tool-plan .hm-pj-head{padding:12px 74px 12px 28px}
.hm-pj.tool-plan .hm-pj-hd{align-items:center;gap:8px 24px}
.hm-pj.tool-plan .hm-pj-eye{font-size:.8rem}
.hm-pj.tool-plan .hm-pj-head h2{margin-top:0;font-size:clamp(1.3rem,2.3vw,1.8rem);letter-spacing:-.03em}
.hm-pj.tool-plan .hm-pj-sub{margin-top:1px;font-size:.88rem}
.hm-pj.tool-plan .hm-pj-live{flex-direction:row;align-items:center;gap:10px}
.hm-pj.tool-plan .hm-pj-clock{font-size:clamp(1.25rem,2vw,1.6rem)}
.hm-pj.tool-plan .hm-pj-pres{padding:3px 10px;font-size:.82rem}
.hm-pj.tool-plan .hm-pj-droite{align-items:center;gap:8px 14px}
.hm-pj.tool-plan .hm-pj-tr,.hm-pj.tool-plan .hm-pj-auj,.hm-pj.tool-plan .hm-pj-o{min-height:40px}
.hm-pj.tool-plan .hm-pj-tr{width:40px}
.hm-pj.tool-plan .hm-pj-o{padding:0 13px;font-size:.92rem}
.hm-pj.tool-plan .mp-close{top:12px;right:14px}
.hm-pj.tool-plan .hm-pj-body{gap:10px;padding:12px 28px 18px}
.hm-pj.tool-plan .hm-page{gap:10px}
.hm-pj.tool-plan .hm-wk{flex-direction:row;align-items:center;gap:6px 16px}
.hm-pj.tool-plan .hm-wk-h{flex:none;gap:6px}
.hm-pj.tool-plan .hm-wk-h>b{font-size:.95rem}
.hm-pj.tool-plan .hm-wk-h>b small{display:block;font-size:.8rem}
.hm-pj.tool-plan .hm-wk-h>b i{display:none}
.hm-pj.tool-plan .hm-wk-n{width:32px;height:32px}
.hm-pj.tool-plan .hm-wk-d{flex:1 1 auto;gap:4px}
.hm-pj.tool-plan .hm-wk-d button{flex-direction:row;gap:5px;min-height:34px;padding:0;border-radius:10px}
.hm-pj.tool-plan .hm-wk-d b{font-size:.98rem}
.hm-pj.tool-plan .hm-wk-d button[aria-current="date"]::after{top:4px;right:5px;width:6px;height:6px}
.hm-pj.tool-plan .hm-pj-tl{gap:7px;--sep:7px;min-height:calc(var(--n)*41px + 24px);grid-auto-rows:34px;--who:210px}
.hm-pj.tool-plan .hm-pj-bars{align-self:center;height:24px}
.hm-pj.tool-plan .hm-pj-grid{top:21px}
.hm-pj.tool-plan .hm-pj-axis{height:16px;font-size:.78rem}
.hm-pj.tool-plan .hm-pj-who{gap:10px;padding-right:12px}
.hm-pj.tool-plan .hm-pj-who .hm-av{width:32px;height:32px;font-size:.7rem}
.hm-pj.tool-plan .hm-pj-who .hm-av.here::after{width:10px;height:10px}
.hm-pj.tool-plan .hm-pj-who b{font-size:1rem}
.hm-pj.tool-plan .hm-pj-who small{font-size:.78rem;line-height:1.2}
.hm-pj.tool-plan .hm-pj-bars,.hm-pj.tool-plan .hm-pj-seg{border-radius:10px}
.hm-pj.tool-plan .hm-pj-h{font-size:clamp(.8rem,1.05vw,.95rem)}
.hm-pj.tool-plan .hm-pj-now i{top:21px}
@media (max-width:900px){
  .hm-pj.tool-plan .hm-wk{flex-direction:column;align-items:stretch}
  .hm-pj.tool-plan .hm-wk-h{justify-content:space-between}
}
@media (max-width:700px){
  .qr-dlg.hm-pj{width:100vw;height:100vh;height:100dvh;border-radius:0}
  .hm-pj-head{padding:calc(16px + env(safe-area-inset-top,0px)) 70px 16px 18px}
  .hm-pj-live{flex-direction:row;align-items:center;gap:12px}
  .hm-pj .mp-close{top:calc(12px + env(safe-area-inset-top,0px));right:12px}
  .hm-pj-body{padding:14px 18px calc(18px + env(safe-area-inset-bottom,0px))}
  .hm-pj-tl{--who:0px;grid-auto-rows:auto;min-height:0;flex:none}
  .hm-pj-axis .hm-pj-imp,.hm-pj-grid .hm-pj-imp,.hm-pj-now b{display:none}
  .hm-pj-droite{width:100%;justify-content:space-between;align-items:center}
  .hm-pj-tr,.hm-pj-auj,.hm-pj-o{min-height:44px}
  .hm-pj-out{width:100%}
  .hm-pj-o{flex:1 1 auto;justify-content:center;padding:0 10px}
  .hm-pj-tr{width:44px}
  .hm-wk-h>b small{display:block}
  .hm-wk-h>b i{display:none}
  /* Autre jour que celui d'aujourd'hui : deux boutons, ils passent sous le titre */
  #home-today .hm-h:has(.hm-link+.hm-link){flex-wrap:wrap}
  #home-today .hm-h:has(.hm-link+.hm-link) h3{flex-basis:calc(100% - 52px)}
  .hm-pj-row{grid-template-columns:minmax(0,1fr);gap:6px}
  .hm-pj-who{justify-self:start;max-width:100%;padding:0 10px 0 0;background:var(--surface)}
  .hm-pj-who small{display:none}
  .hm-pj-who small.hm-pj-t{display:block}
  .hm-pj-bars{height:44px}
  .hm-pj.tool-plan .hm-pj-head{padding:calc(10px + env(safe-area-inset-top,0px)) 62px 10px 16px}
  .hm-pj.tool-plan .hm-pj-body{padding:10px 14px calc(14px + env(safe-area-inset-bottom,0px))}
  .hm-pj.tool-plan .hm-pj-tl{--who:0px;min-height:0;grid-auto-rows:auto}
  .hm-pj.tool-plan .mp-close{top:calc(10px + env(safe-area-inset-top,0px));right:10px}
  .hm-pj.tool-plan .hm-pj-tr,.hm-pj.tool-plan .hm-pj-auj,.hm-pj.tool-plan .hm-pj-o{min-height:44px}
  .hm-pj.tool-plan .hm-pj-tr{width:44px}
  .hm-pj.tool-plan .hm-pj-out{gap:6px}
  .hm-pj.tool-plan .hm-pj-o{flex:1 1 0;min-width:0;padding:0 6px;gap:5px;font-size:.84rem}
  .hm-pj.tool-plan .hm-pj-row{gap:3px}
  .hm-pj.tool-plan .hm-pj-bars{height:22px}
}
@media (prefers-reduced-motion:no-preference){
  .hm-tl-open{transition:background-color .15s,color .15s}
  /* Entrée : la pop-up se déploie depuis la carte (dans le script), puis le titre, les noms, les plages de gauche à droite et le trait de l'heure */
  .hm-pj.entree .hm-pj-hd>*>*{animation:hm-pj-up .42s var(--tr-ease) .1s backwards}
  .hm-pj.entree .hm-pj-hd>*>:nth-child(2){animation-delay:.15s}
  .hm-pj.entree .hm-pj-hd>*>:nth-child(3){animation-delay:.2s}
  .hm-pj.entree .hm-pj-axis,.hm-pj.entree .hm-pj-grid{animation:hm-pj-fade .4s ease .18s backwards}
  .hm-pj.entree .hm-pj-who{animation:hm-pj-left .4s var(--tr-ease) var(--d) backwards}
  .hm-pj.entree .hm-pj-bars{animation:hm-pj-fade .3s ease var(--d) backwards}
  .hm-pj.entree .hm-pj-seg{animation:hm-pj-seg .56s var(--tr-ease) var(--d) backwards}
  .hm-pj.entree .hm-pj-now i{animation:hm-pj-drop .5s var(--tr-ease) var(--d) backwards;transform-origin:top}
  .hm-pj.entree .hm-pj-now b{animation:hm-pj-fade .3s ease var(--d) backwards}
  .hm-pj.entree .hm-page>.hm-note{animation:hm-pj-fade .4s ease var(--d) backwards}
  .hm-pj.entree .hm-wk{animation:hm-pj-fade .4s ease .16s backwards}
  /* Changement de jour : la nouvelle page glisse depuis le côté où on la prend */
  .hm-page.tourne-g{animation:hm-page-g .2s var(--tr-ease)}
  .hm-page.tourne-d{animation:hm-page-d .2s var(--tr-ease)}
  .hm-wk-d button,.hm-wk-n,.hm-pj-tr,.hm-pj-auj{transition:background-color .15s,color .15s,box-shadow .15s,border-color .15s}
  /* Sortie : le contenu s'efface pendant que la pop-up revient vers la carte */
  .hm-pj.sortie .hm-pj-hd,.hm-pj.sortie .hm-pj-body>*{opacity:0;transition:opacity .12s ease}
  .qr-dlg.hm-pj.sortie[open]::backdrop{opacity:0;transition:opacity .26s ease}
  @keyframes hm-page-g{from{opacity:0;transform:translate3d(16px,0,0)}}
  @keyframes hm-page-d{from{opacity:0;transform:translate3d(-16px,0,0)}}
  @keyframes hm-pj-up{from{opacity:0;transform:translate3d(0,14px,0)}}
  @keyframes hm-pj-left{from{opacity:0;transform:translate3d(-14px,0,0)}}
  @keyframes hm-pj-fade{from{opacity:0}}
  @keyframes hm-pj-seg{from{clip-path:inset(0 100% 0 0 round 14px)}to{clip-path:inset(0 0 0 0 round 14px)}}
  @keyframes hm-pj-drop{from{transform:scaleY(0)}}
}
/* Situation épidémique en détail : même déploiement que le planning, la pop-up garde la hauteur de son contenu */
.qr-dlg.hm-pj.hm-ep{width:min(1040px,calc(100vw - 32px));height:fit-content;max-height:calc(100vh - 32px);max-height:calc(100dvh - 32px)}
.hm-ep .hm-pj-head h2{font-size:clamp(1.7rem,3.4vw,2.6rem)}
.hm-ep-bul{display:inline-flex;align-items:center;min-height:36px;padding:0 14px;border-radius:999px;background:rgba(255,255,255,.14);color:#fff;font-size:.9rem;font-weight:700;text-decoration:none}
.hm-ep-bul:hover{background:rgba(255,255,255,.26)}
.hm-ep .hm-epi-tr svg{width:132px;height:42px}
.hm-ep .hm-epi-tr small{display:block;font-size:.78rem}
.hm-ep-ail{margin:-6px 0 0;color:var(--muted);font-size:.84rem;line-height:1.35}
.hm-ep-ail b{font-weight:600}
/* Pollens en grand : l'officine et ses six pollens */
.hm-po-g{display:grid;grid-template-columns:minmax(230px,290px) minmax(0,1fr);gap:20px 30px;align-items:start}
.hm-po-g.seul{grid-template-columns:minmax(0,1fr)}
.hm-po-ici{display:flex;flex-direction:column;gap:14px;min-width:0}
.hm-po-ici h4{margin:4px 0 0;font-size:1rem;font-weight:700}
.hm-po .hm-taxons{grid-template-columns:minmax(0,1fr);gap:8px}
@media (max-width:760px){
  .hm-po-g{grid-template-columns:minmax(0,1fr)}
  .hm-po .hm-taxons{grid-template-columns:repeat(auto-fill,minmax(min(100%,160px),1fr));gap:6px 18px}
}
@media (max-width:700px){
  .qr-dlg.hm-pj.hm-ep{width:100vw;height:100vh;height:100dvh;max-height:none}
}
@media (prefers-reduced-motion:no-preference){
  /* Entrée : la pop-up se déploie depuis la carte (dans le script), puis chaque maladie paraît, légèrement décalée ;
     jauges et courbes sont déjà à leur valeur, pour lire tout de suite (environ 0,3 s en tout) */
  .hm-ep.entree .hm-epi>li{animation:hm-pj-up .22s var(--tr-ease) var(--d) backwards}
  .hm-ep.entree .hm-sante,.hm-ep.entree .hm-pj-body>.hm-src{animation:hm-pj-fade .2s ease .2s backwards}
}
/* Mon espace : prochaine absence, heures, dernière demande */
.hm-facts{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:8px}
/* Statuts et badges de l'accueil en casse normale, comme le reste de la page */
.hm-facts .tag{text-transform:none;letter-spacing:0;font-size:.8rem}
/* Communication vide sur l'accueil : une ligne discrète, le champ d'écriture juste au-dessus suffit */
.cm-home .cm-empty{gap:10px;padding:10px 14px;border-radius:14px}
.cm-home .cm-empty svg{width:20px;height:20px}
.cm-home .cm-empty .hm-note{font-size:.88rem}
.hm-facts li{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:4px 14px;padding:12px 14px;border-radius:14px;background:var(--surface-2)}
.hm-facts small{color:var(--muted);font-size:.86rem}
.hm-facts b{font-weight:700;text-align:right}
.hm-rows{display:flex;flex-direction:column;gap:8px}
/* Indice pollen : les couleurs de l'échelle officielle d'Atmo France, toujours accompagnées du qualificatif */
.hm-pol-1{--pol:#50F0E6}.hm-pol-2{--pol:#50CCAA}.hm-pol-3{--pol:#F0E641}.hm-pol-4{--pol:#FF5050}.hm-pol-5{--pol:#960032}.hm-pol-6{--pol:#872181}
.hm-pol-now{display:flex;align-items:baseline;flex-wrap:wrap;gap:4px 12px}
.hm-pol-now b{font-family:var(--f-display);font-weight:600;font-size:1.9rem;letter-spacing:-.03em;line-height:1.1}
.hm-pol-now small{color:var(--muted);font-size:.92rem}
.hm-gauge{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:3px;height:16px}
.hm-gauge i{border-radius:3px;background:var(--surface-2);box-shadow:inset 0 0 0 1px var(--line)}
.hm-gauge i:first-child{border-radius:8px 3px 3px 8px}
.hm-gauge i:last-child{border-radius:3px 8px 8px 3px}
.hm-gauge i.on{background:var(--pol);box-shadow:none}
.hm-gauge-ends{display:flex;justify-content:space-between;gap:12px;margin-top:-8px;color:var(--muted);font-size:.8rem}
.hm-taxons{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,190px),1fr));gap:6px 18px}
.hm-taxons li{display:flex;align-items:center;gap:8px;min-width:0;font-size:.92rem}
.hm-taxons i{flex:none;width:10px;height:10px;border-radius:50%;background:var(--pol,var(--line-strong))}
.hm-taxons span{flex:1 1 auto;min-width:0}
.hm-taxons small{flex:none;color:var(--muted);font-size:.84rem}
.hm-src{color:var(--muted);font-size:.8rem;line-height:1.45}
.hm-src a{color:inherit}
/* Situation épidémique : une échelle à une seule teinte pour l'intensité, les couleurs d'état pour l'alerte, toujours écrites en toutes lettres */
a.hm-link{display:inline-flex;align-items:center;text-decoration:none}
.hm-epi{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.hm-epi>li{display:flex;flex-direction:column;gap:10px;min-width:0;padding:16px;border-radius:18px;background:var(--surface-2)}
.hm-epi-n{display:flex;align-items:baseline;flex-wrap:wrap;gap:2px 8px}
.hm-epi-n h4{margin:0;font-size:1.02rem;font-weight:700;line-height:1.3}
.hm-epi-n small{color:var(--muted);font-size:.84rem}
.hm-epi-now{display:flex;flex-direction:column;gap:2px}
.hm-epi-now b{font-family:var(--f-display);font-weight:600;font-size:1.55rem;letter-spacing:-.025em;line-height:1.15}
.hm-epi-now small{color:var(--muted);font-size:.88rem;line-height:1.35}
.hm-epi-g{position:relative;display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:3px;height:12px}
.hm-epi-g i{border-radius:2px;background:var(--surface);box-shadow:inset 0 0 0 1px var(--line)}
.hm-epi-g i:first-child{border-radius:6px 2px 2px 6px}
.hm-epi-g i:nth-child(5){border-radius:2px 6px 6px 2px}
.hm-epi-g i.on{box-shadow:none}
.hm-epi-g i.on:nth-child(1){background:color-mix(in srgb,var(--accent) 28%,var(--surface))}
.hm-epi-g i.on:nth-child(2){background:color-mix(in srgb,var(--accent) 45%,var(--surface))}
.hm-epi-g i.on:nth-child(3){background:color-mix(in srgb,var(--accent) 62%,var(--surface))}
.hm-epi-g i.on:nth-child(4){background:color-mix(in srgb,var(--accent) 80%,var(--surface))}
.hm-epi-g i.on:nth-child(5){background:var(--accent)}
.hm-epi-g.continu{display:block;border-radius:6px;background:var(--surface);box-shadow:inset 0 0 0 1px var(--line)}
.hm-epi-g.continu u{display:block;height:100%;border-radius:6px;background:color-mix(in srgb,var(--accent) 45%,var(--surface))}
.hm-epi-g em{position:absolute;top:50%;width:12px;height:12px;margin:-6px 0 0 -6px;border-radius:50%;background:var(--ink);box-shadow:0 0 0 2px var(--surface-2)}
.hm-epi-ends{display:flex;justify-content:space-between;gap:12px;margin-top:-5px;color:var(--muted);font-size:.78rem}
.hm-epi-ech{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:3px;margin:-4px 0 0;padding:0;list-style:none;color:var(--muted);font-size:.74rem;line-height:1.25}
.hm-epi-ech b{display:block;font-weight:500}
.hm-epi-ech small{display:block;font-size:.7rem;font-variant-numeric:tabular-nums}
.hm-epi-ech .ici,.hm-epi-ech .ici b{color:var(--ink);font-weight:700}
.hm-epi-al{display:flex;flex-wrap:wrap;align-items:center;gap:2px 7px;margin:0;font-size:.9rem;line-height:1.35}
.hm-epi-al i{flex:none;width:10px;height:10px;border-radius:50%;background:var(--muted)}
.hm-epi-al i.a1{background:var(--ok)}.hm-epi-al i.a2{background:var(--warn-line)}.hm-epi-al i.a3{background:var(--crit)}
.hm-epi-al b{font-weight:700}
.hm-epi-al.neutre{color:var(--muted);font-size:.84rem}
.hm-epi-tr{display:flex;align-items:center;justify-content:space-between;gap:12px;font-size:.86rem;color:var(--muted)}
.hm-epi-tr svg{flex:none;display:block;width:96px;height:30px;color:var(--accent)}
.hm-epi-tr svg rect,.hm-sante svg rect{fill:transparent}
.hm-epi-tr svg rect:hover,.hm-sante svg rect:hover{fill:color-mix(in srgb,currentColor 14%,transparent)}
.hm-epi-t{margin:0;padding-top:10px;border-top:1px solid var(--line);color:var(--muted);font-size:.86rem;line-height:1.45}
details.hm-epi-m{margin:0;padding:0;border:0;border-radius:0;background:none;box-shadow:none}
.hm-epi-m summary{width:fit-content;padding:0;min-height:0;font-size:inherit;font-weight:600;color:inherit;cursor:pointer}
.hm-epi-m p{margin:6px 0 0}
.hm-sante{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,300px),1fr));column-gap:24px}
.hm-sante li{display:grid;grid-template-columns:minmax(0,1fr) 96px 64px;align-items:center;gap:12px;min-height:50px;padding:6px 0;border-top:1px solid var(--line)}
.hm-sante b{display:block;font-weight:700;line-height:1.25}
.hm-sante small{display:block;color:var(--muted);font-size:.82rem;line-height:1.3}
.hm-sante svg{display:block;width:96px;height:30px;color:var(--accent)}
.hm-sante-v{text-align:right}
.hm-sante-v b{font-variant-numeric:tabular-nums}
.hm-rows .mi{align-items:center}
/* Attente du premier chargement */
.hm-sk{display:block;height:58px;border-radius:16px;background:var(--surface-2)}
/* Titre de la liste complète des outils */
.hm-tools-h{display:flex;flex-wrap:wrap;align-items:flex-end;justify-content:space-between;gap:12px 20px;margin-top:14px}
@keyframes hm-pulse{to{opacity:.45}}
.hm-tools-h h3{font-size:clamp(1.5rem,2.6vw,1.95rem);font-weight:600;letter-spacing:-.03em}
.hm-tools-tg{display:none}
/* Grand écran (barre de gauche visible) : la grille « Tous les outils » refaisait la barre ; repliée sauf recherche ou demande */
@media screen and (min-width:1100px),screen and (min-width:481px) and (hover:hover) and (pointer:fine){
  #panel-home:not(.hm-recherche) .hm-tools-tg{display:inline-flex;align-items:center;justify-content:center}
  #panel-home:not(.hm-recherche):not(.hm-outils) #home-list,#panel-home:not(.hm-recherche):not(.hm-outils) #home-sort{display:none}
  #panel-home:not(.hm-recherche):not(.hm-outils) .hm-tools-h{align-items:center}
  #panel-home:not(.hm-recherche):not(.hm-outils) .hm-tools-h h3{font-size:1.25rem}
}
.search{position:relative;flex:1 1 300px;max-width:560px}
.search svg{position:absolute;left:18px;top:50%;transform:translateY(-50%);color:var(--muted);pointer-events:none}
.search .inp{min-height:56px;padding-left:52px;padding-right:52px;border-radius:999px;font-size:1.08rem}
.kbd{position:absolute;right:14px;top:50%;transform:translateY(-50%);min-width:28px;height:28px;padding:0 8px;display:grid;place-items:center;border-radius:8px;border:1px solid var(--line-strong);border-bottom-width:2px;background:var(--surface-2);color:var(--muted);font:700 .85rem var(--f-mono);pointer-events:none}
.search:focus-within .kbd,.search:has(.inp:not(:placeholder-shown)) .kbd{display:none}
@media (hover:none){.kbd{display:none}}
.vt{display:inline-flex;gap:2px;padding:4px;background:color-mix(in srgb,var(--ink) 6%,transparent);border-radius:999px}
.vt label{position:relative;display:block}
.vt input{position:absolute;inset:0;width:100%;height:100%;margin:0;opacity:0;cursor:pointer}
.vt span{display:inline-flex;align-items:center;min-height:42px;padding:0 18px;border-radius:999px;font-weight:700;color:var(--muted)}
.vt input:checked + span{background:var(--surface);color:var(--ink);box-shadow:0 1px 3px rgba(0,0,0,.14)}
.vt input:focus-visible + span{outline:3px solid var(--accent);outline-offset:2px}
.hcount{color:var(--muted);font-size:.92rem;font-weight:700}
.hlist{display:flex;flex-direction:column;gap:34px;margin-top:6px}
.group{display:flex;flex-direction:column;gap:14px}
.ghead{display:flex;flex-wrap:wrap;align-items:baseline;gap:2px 14px}
.ghead h3{font-size:1.3rem;font-weight:600;letter-spacing:-.02em}
.ghead p{color:var(--muted);font-size:.95rem}
/* Cartes d'outils comme sur le site : fond teinté, grande icône, la même en filigrane */
.tcards{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,250px),1fr));gap:16px}
.tcard{position:relative;isolation:isolate;overflow:hidden;display:flex;flex-direction:column;align-items:flex-start;gap:14px;width:100%;min-width:0;padding:22px;text-align:left;border:1px solid color-mix(in srgb,var(--accent) 22%,transparent);border-radius:26px;background:var(--soft);color:var(--ink);cursor:pointer}
.tcard:hover{border-color:var(--accent);box-shadow:none}
.tcard:focus-visible{outline:3px solid var(--accent);outline-offset:3px;border-radius:26px}
.tc-ico{width:56px;height:56px;border-radius:17px;flex:none;display:grid;place-items:center;background:var(--accent);color:var(--accent-ink);box-shadow:none}
.tc-bg{position:absolute;z-index:-1;right:-38px;bottom:-42px;width:190px;height:190px;color:var(--accent);opacity:.09;transform:rotate(-14deg);pointer-events:none}
.tc-bg svg{width:100%;height:100%}
.tc-body{display:flex;flex-direction:column;gap:6px;min-width:0;width:100%;flex:1}
.tc-grp{font-size:.74rem;font-weight:700;letter-spacing:.1em;text-transform:uppercase;color:var(--strong)}
.tc-name{font-family:var(--f-display);font-weight:600;font-size:1.32rem;letter-spacing:-.02em;line-height:1.15}
.tc-desc{color:var(--muted);font-size:.95rem;line-height:1.45}
.tc-tags{display:flex;flex-wrap:wrap;align-items:center;gap:6px;margin-top:auto;padding-top:8px}
.tc-tag{font-size:.78rem;font-weight:700;padding:3px 11px;border-radius:999px;background:var(--surface);color:var(--strong)}
.tc-last{display:inline-flex;align-items:center;gap:6px;font-size:.78rem;font-weight:700;padding:3px 11px 3px 9px;border-radius:999px;background:var(--accent);color:var(--accent-ink)}
.tc-last::before{content:"";width:7px;height:7px;border-radius:50%;background:currentColor}
.tc-go{position:absolute;top:22px;right:22px;width:42px;height:42px;border-radius:50%;display:grid;place-items:center;background:var(--surface);color:var(--strong)}
.tcard:hover .tc-go{background:var(--accent);color:var(--accent-ink)}
.empty{align-items:flex-start}

/* ---------- Adaptation ---------- */
@media (max-width:1020px){
  .split{grid-template-columns:minmax(0,1fr)}
  .hm-dash{grid-template-columns:minmax(0,1fr)}
}
@media (max-width:860px){
  .tgrid{grid-template-columns:minmax(0,1fr)}
  .aside{position:static;order:-1}
  .aside .btn:disabled{display:none}
  .hide-m{display:none}
  #panel-trod .fields>.actions>.btn,#panel-trodc .fields>.actions>.btn{display:inline-flex}
}
/* PC en petite fenêtre : la barre latérale reste à gauche et prend de la place, le contenu passe sur une colonne plus tôt */
@media screen and (min-width:481px) and (max-width:1099.98px) and (hover:hover) and (pointer:fine){
  .split,.hm-dash,.tgrid{grid-template-columns:minmax(0,1fr)}
  .aside{position:static;order:-1}
  .aside .btn:disabled{display:none}
  .hide-m{display:none}
  #panel-trod .fields>.actions>.btn,#panel-trodc .fields>.actions>.btn{display:inline-flex}
  main{padding:24px 24px 72px}
}
/* Fenêtre étroite : barre réduite d'office, sans bouton pour l'agrandir */
@media screen and (min-width:481px) and (max-width:899.98px) and (hover:hover) and (pointer:fine){
  html[data-rail="mini"] .rail-tg{display:none}
  html[data-rail="mini"] .wrap{--top-h:76px}
  main{padding:20px 16px 72px}
}
@media (max-width:640px){
  .card{padding:18px;border-radius:18px}
  .sheet{padding:18px}
  .fgrid{grid-template-columns:1fr}
  /* Smartphone : les cinq pages en icônes seules, pour que la barre tienne sans défilement caché (noms lus par les lecteurs d'écran) */
  .tablist{justify-content:space-between;gap:0}
  .tab,.tab.is-home{flex:1 0 42px;justify-content:center;min-width:42px;padding:4px 6px}
  .tab .t1{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
  .menu-btn{justify-content:center;gap:0;padding:0;width:54px;min-height:54px;height:54px}
  .menu-btn .mb-t{display:none}
  .menu-pop{padding:16px;border-radius:20px}
  /* Menu des outils sur téléphone : deux colonnes d'icônes et de noms, sans les présentations ; tous les outils en un écran et demi au lieu de quatre */
  .menu-pop .mp-g{margin-top:14px}
  .menu-pop .mp-g>p,.menu-pop .mp-grid .mi small,.menu-pop .mi-home small{display:none}
  .menu-pop .mp-g h3{margin-bottom:8px}
  .menu-pop .mp-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
  .menu-pop .mp-grid .mi,.menu-pop .mi-home{align-items:center;gap:10px;min-height:52px;padding:7px 10px}
  .menu-pop .mp-grid .mi-ico,.menu-pop .mi-home .mi-ico{width:36px;height:36px;border-radius:10px}
  .menu-pop .mp-grid .mi b{font-size:.92rem;line-height:1.2}
  .menu-fab{right:12px;width:54px;height:54px}
  /* En-tête d'outil : icône et titre sur une ligne, texte et bouton dessous sur toute la largeur */
  .phead{grid-template-columns:auto minmax(0,1fr);column-gap:14px;padding:18px;border-radius:22px}
  .ph-ico{grid-row:1/span 2;width:50px;height:50px;border-radius:15px}
  .ph-ico svg{width:26px;height:26px}
  .phead h2{font-size:1.65rem}
  .phead>div>.lead{grid-column:1/-1;margin-top:12px;font-size:.97rem}
  .phead>.btn{grid-column:1/-1;grid-row:auto;justify-self:start;margin-top:14px;min-height:44px}
  .phead>.phead-acts{grid-column:1/-1;grid-row:auto;flex-direction:row;flex-wrap:wrap;margin-top:14px}
  .phead-acts .btn{min-height:44px}
  .ph-bg{width:170px;height:170px;top:24px;right:-40px;transform:rotate(-14deg)}
  /* En-tête compact sur smartphone : une ligne pour l'icône et le titre, une pour les boutons */
  .phead.ph-court{padding:12px 14px;column-gap:12px;border-radius:18px}
  .ph-court .ph-ico{grid-row:1;width:40px;height:40px;border-radius:12px}
  .ph-court .ph-ico svg{width:22px;height:22px}
  .ph-court h2{font-size:1.35rem}
  .ph-court>.btn,.ph-court>.phead-acts{grid-column:1/-1;grid-row:2;margin-top:10px;justify-content:flex-start}
  .ph-court .ph-bg{display:none}
  .hm-hero{gap:10px;padding:14px 16px;border-radius:22px}
  .hm-epib{padding:11px 13px 10px;border-radius:18px}
  .hm-epib-b{min-height:44px}
  .hm-ring{width:260px;height:260px;border-width:36px}
  .hm-ring-v{right:40px;top:-150px}
  .hm-ring-o{right:-130px;top:-90px}
  .hm-day{flex:1 1 100%;container-type:normal;width:auto;min-height:0}
  .hm-day-in{display:flex;flex-direction:row;flex-wrap:wrap;justify-content:flex-start;align-items:baseline;gap:0 6px;height:auto;padding:8px 14px}
  .hm-day-t,.hm-day-wm{display:contents}
  .hm-day-n{font-size:1.05rem;letter-spacing:0;font-family:var(--f-body);font-weight:700}
  .hm-day-w,.hm-day-m{font-size:1.05rem;font-family:var(--f-body);font-weight:700}
  .hm-day-w{order:-1}
  .hm-day-s{flex:1 0 100%;margin-top:1px;padding-top:0;border-top:0;font-size:.8rem;text-align:left}
  .hm-day-s b{display:inline}
  .hm-day-s b::after{content:" ·"}
  /* Téléphone : les outils restent à portée de pouce, on abrège le tableau de bord */
  #home-news{display:none}
  /* Titre de carte et bouton : le bouton passe dessous plutôt que d'écraser le titre sur quatre lignes */
  .hm-h{flex-wrap:wrap}
  .hm-h h3{flex-basis:120px}
  .hm-more-m{display:block}
  /* Une seule colonne : le planning du jour passe juste sous la communication, avant l'équipe */
  .hm-dash>.hm-col{display:contents}
  .hm-col>.hm-card{order:3}
  #home-taches{order:0}
  #home-taches .hm-h{flex-wrap:wrap}
  #home-taches .hm-h h3{flex-basis:calc(100% - 52px)}
  #home-com{order:1}
  #home-today{order:2}
  .hm-card{padding:18px;border-radius:22px}
  .hm-epi{grid-template-columns:minmax(0,1fr)}
  .hm-epi>li{padding:14px;gap:8px}
  .hm-tl{--who:78px}
  /* Étapes : seul le nom de l'étape ouverte est écrit, les autres gardent leur numéro */
  .chip:not([aria-current]){flex:0 0 auto;gap:0;padding:6px;font-size:0}
  .chip[aria-current]{flex:1 1 auto;min-width:0}
  .chip .cl{overflow:hidden;text-overflow:ellipsis}
  /* Cartes compactes : icône à gauche, deux lignes de description */
  .tcards{gap:10px}
  .tcard{display:grid;grid-template-columns:auto minmax(0,1fr);column-gap:14px;padding:16px;border-radius:20px}
  .tc-ico{width:48px;height:48px;border-radius:14px}
  .tc-ico svg{width:24px;height:24px}
  .tc-name{font-size:1.15rem}
  .tc-desc{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;font-size:.92rem}
  .tc-tags{padding-top:4px}
  .tc-go{display:none}
  .tc-bg{width:130px;height:130px;right:-30px;bottom:-34px}
  .vt{width:100%}
  .vt label{flex:1}
  .vt span{justify-content:center;width:100%}
  .search{max-width:none}
  .pal{grid-template-columns:auto minmax(0,1fr) minmax(0,1fr)}
  .pal .del{grid-column:1/-1;justify-self:end;grid-row:3}
  .pal .combo{grid-row:2}
  .top{padding-block:18px 4px}
  .wm-logo{height:34px;margin-bottom:0}
  .brand p{display:none}
}
@media (max-width:440px){
  .seg.two{grid-template-columns:minmax(0,1fr)}
}
@media (max-width:420px){
  .pal{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}
  .pal .idx{grid-column:1/-1;justify-self:start;margin:0}
  .pal .del{grid-column:1/-1;grid-row:auto}
  .pal .combo{grid-row:auto}
}
@media (prefers-reduced-motion:no-preference){
  .opt,.chip,.btn,.tab,.chk span,.icon-btn,.tcard,.tc-go{transition:background-color .15s,border-color .15s,color .15s,box-shadow .2s,transform .2s cubic-bezier(.2,.8,.2,1)}
  .tcard:hover{transform:translateY(-3px)}
  /* Survol de la barre : seul le contenu glisse, la zone cliquable ne bouge pas (sinon la ligne tremble quand la souris est au bord) */
  .ri,.ri>span,.ri-ico,.ri::before,.ub-b,.rail-tg{transition:background-color var(--tr-in) ease,color var(--tr-in) ease,transform var(--tr-in) var(--tr-ease)}
  .ri>span:last-child{transition-delay:.025s}
  .ri:not([aria-current="page"]):hover>span,.ri:not([aria-current="page"]):focus-visible>span{transform:translateX(5px)}
  html[data-rail="mini"] .ri:not([aria-current="page"]):hover>span,html[data-rail="mini"] .ri:not([aria-current="page"]):focus-visible>span{transform:translateX(2px)}
  /* Anneaux du bandeau immobiles : rien ne tourne en boucle sur l'écran de travail (calcul permanent sur les vieux postes) */
  html:not(.auth-wait) .hm-col>.hm-card{animation:tr-enter var(--tr-in) var(--tr-ease) backwards}
  html:not(.auth-wait) .hm-col>.hm-card+.hm-card{animation-delay:.05s}
  html:not(.auth-wait) .hm-col+.hm-col>.hm-card{animation-delay:.08s}
  html:not(.auth-wait) .hm-dash>.hm-card,html:not(.auth-wait) .hm-epib{animation:tr-enter var(--tr-in) var(--tr-ease) backwards}
  .hm-sk{animation:hm-pulse 1.1s ease-in-out infinite alternate}
  .hm-do,.hm-link{transition:background-color .15s,border-color .15s,color .15s}
  .tcard:hover .tc-go{transform:translateX(3px)}
}

/* ---------- Départ en voyage ---------- */
.vy-search,.vx-search{position:relative}
.vy-sug,.vx-sug{position:absolute;z-index:20;left:0;right:0;top:100%;margin-top:4px;padding:6px;max-height:340px;overflow:auto;background:var(--surface);border:1px solid var(--line);border-radius:var(--r-md);box-shadow:var(--shadow-lg)}
.vy-sug button,.vx-sug button{display:flex;justify-content:space-between;align-items:baseline;gap:10px;width:100%;padding:10px 12px;border:0;border-radius:8px;background:transparent;color:var(--ink);text-align:left;font-weight:700;cursor:pointer}
.vy-sug button small,.vx-sug button small{color:var(--muted);font-weight:500;font-size:.84rem}
.vy-sug button:hover,.vy-sug button.on,.vx-sug button:hover,.vx-sug button.on{background:var(--soft);color:var(--strong)}
.vy-sug p,.vx-sug p{padding:8px 12px;color:var(--muted)}
.vy-globe{position:relative;margin-top:12px;aspect-ratio:1/.86;max-height:520px;width:100%;border-radius:14px;overflow:hidden;background:radial-gradient(120% 100% at 50% 40%,#161a4c 0%,#090b26 70%)}
.vy-globe canvas{display:block;position:absolute;inset:0;width:100%;height:100%;cursor:grab;touch-action:pan-y;-webkit-user-select:none;user-select:none;border-radius:inherit}
.vy-globe canvas:focus-visible{outline:3px solid var(--accent);outline-offset:-3px}
.vy-gload{position:absolute;inset:0;display:grid;place-items:center;margin:0;color:#c7d2fe;font-size:.92rem}
.vy-gload[hidden]{display:none}
.vy-gctl{position:absolute;right:10px;bottom:10px;display:flex;flex-direction:column;gap:6px}
.vy-gctl button{width:38px;height:38px;display:grid;place-items:center;padding:0;border:1px solid rgba(199,210,254,.32);border-radius:10px;background:rgba(13,17,56,.72);color:#fff;font-size:1.25rem;line-height:1;cursor:pointer}
.vy-gctl button:hover{background:rgba(67,56,202,.9)}
.vy-gctl button:focus-visible{outline:2px solid #fff;outline-offset:1px}
.vy-tip{position:absolute;z-index:2;max-width:240px;padding:6px 10px;border-radius:9px;background:var(--surface);color:var(--ink);box-shadow:var(--shadow-float);pointer-events:none}
.vy-tip[hidden]{display:none}
.vy-tip b{display:block;font-size:.9rem;line-height:1.25}
.vy-tip small{display:block;color:var(--muted);font-size:.76rem;line-height:1.25}
.vy-gmode{position:absolute;left:10px;right:58px;top:10px;margin:0;padding:6px 10px;width:fit-content;border-radius:9px;background:var(--brand-o);color:#fff;font-size:.84rem;font-weight:700;line-height:1.3;pointer-events:none}
.vy-gmode[hidden]{display:none}
.vy-add{display:inline-flex;align-items:center;gap:6px;min-height:40px;padding:5px 14px;border-radius:999px;border:1.5px dashed var(--accent);background:transparent;color:var(--strong);font:inherit;font-weight:700;cursor:pointer}
.vy-add:hover{background:var(--soft)}
.vy-add b{font-size:1.15rem;line-height:1}
.vy-add.on{border-style:solid;background:var(--soft)}
.vy-gcap{margin:6px 0 0}
.vy-gt{display:none}
@media (pointer:coarse){.vy-gs{display:none}.vy-gt{display:inline}}
.vy-dest{display:flex;flex-wrap:wrap;gap:8px;margin-top:10px}
.vy-dest:empty{display:none}
.vy-chip{display:inline-flex;align-items:center;gap:4px;padding:5px 5px 5px 14px;border-radius:999px;background:var(--soft);color:var(--strong);font-weight:700}
.vy-chip button{width:30px;height:30px;border-radius:50%;border:0;background:transparent;color:inherit;cursor:pointer;display:grid;place-items:center}
.vy-chip button:hover{background:color-mix(in srgb,var(--accent) 18%,transparent)}
.vy-zone h4{margin:14px 0 6px;font-family:var(--f-body);font-size:.74rem;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:var(--muted)}
.vy-zone div{display:flex;flex-wrap:wrap;gap:6px}
.vy-zone button{padding:5px 11px;border-radius:999px;border:1px solid var(--line);background:var(--surface);color:var(--ink);font-size:.9rem;cursor:pointer}
.vy-zone button:hover{border-color:var(--accent);color:var(--strong)}
.vy-zone button[aria-pressed="true"]{background:var(--accent);border-color:var(--accent);color:var(--accent-ink)}
.vy-v .opt .t{display:flex;flex-wrap:wrap;align-items:center;gap:6px 10px}
.vy-v details{margin-top:6px;border-radius:10px}
.vy-v summary{min-height:40px;padding:9px 0;font-size:.92rem}
.vy-v details p{font-size:.92rem;margin:0 0 8px}
.vy-ch{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:baseline;gap:4px 12px}
.vy-z{color:var(--muted);font-size:.9rem}
.vy-badges{display:flex;flex-wrap:wrap;gap:8px}
.vy-b{display:inline-flex;align-items:center;padding:5px 12px;border-radius:999px;font-weight:700;font-size:.86rem;line-height:1.3}
.vy-b.crit{background:var(--crit-bg);color:var(--crit)}
.vy-b.warn{background:var(--warn-bg);color:var(--warn)}
.vy-b.ok{background:var(--ok-bg);color:var(--ok)}
.vy-b.info{background:var(--soft);color:var(--strong)}
.vy-b.mute{background:var(--surface-2);color:var(--muted);border:1px solid var(--line)}
.vy-sec h4{font-size:1rem;margin-bottom:6px}
.vy-sec ul{margin:0;padding-left:20px;display:flex;flex-direction:column;gap:4px}
.vy-sec .vy-k{margin:8px 0 4px;font-size:.8rem;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:var(--muted)}
.vy-q{font-style:italic}
.vy-src{font-size:.85rem;color:var(--muted)}
.vy-src a{color:var(--strong)}
/* Fiche patient */
.vy-s{gap:10px}
.vy-s .sheet-title{border-bottom-color:var(--paper-accent)}
.vy-s h4{margin-top:4px}
.vy-s ul{margin:0;padding-left:18px;display:flex;flex-direction:column;gap:3px}
.vy-s .vy-dt{font-family:var(--f-mono);font-weight:700;white-space:nowrap}
.vy-s .vy-2{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:4px 22px}
.vy-s .vy-alert{border:2px solid var(--paper-crit);background:var(--paper-crit-bg);color:var(--paper-crit);border-radius:10px;padding:8px 12px;font-weight:700}
.vy-s .vy-foot{font-size:.8rem;color:var(--paper-muted)}
@media (max-width:640px){.vy-s .vy-2{grid-template-columns:minmax(0,1fr)}}
#print-root .vy-s{font-size:9.5pt;line-height:1.35;gap:5px}
#print-root .vy-s h4{font-size:10.5pt;margin-top:3px}
#print-root .vy-s ul{gap:1px}
#print-root .vy-s .vy-2{grid-template-columns:repeat(2,minmax(0,1fr))}
#print-root .vy-s .vy-alert{padding:4px 10px}
#print-root .vy-s .vy-foot{font-size:7.5pt}

/* ---------- Bilan partagé de médication ---------- */
/* Questions : libellé à gauche, Oui / Non à droite, précision sous la question quand la réponse est Oui */
.bp-box{display:flex;flex-direction:column;padding:4px 16px;border-radius:14px;background:var(--surface-2);border:1px solid var(--line)}
.bp-q{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:6px 14px;align-items:center;padding:9px 0;border-top:1px solid var(--line)}
.bp-q:first-child{border-top:0}
.bp-l{font-weight:600;font-size:.98rem;line-height:1.3}
.bp-l small{display:block;color:var(--muted);font-weight:400;font-size:.86rem;margin-top:1px}
.bp-q.txt{grid-template-columns:minmax(0,1fr)}
.bp-q .inp{min-height:42px;padding:8px 12px;font-size:.98rem;background:var(--surface)}
.bp-q textarea.inp{min-height:42px}
.bp-d{grid-column:1/-1;display:none}
.bp-q:has(input[value="oui"]:checked) .bp-d{display:block}
.bp-yn{display:inline-flex;flex:none;border:1.5px solid var(--line-strong);border-radius:999px;overflow:hidden;background:var(--surface)}
.bp-yn label{position:relative;cursor:pointer}
.bp-yn input{position:absolute;inset:0;width:100%;height:100%;margin:0;opacity:0;cursor:pointer}
.bp-yn span{display:grid;place-items:center;min-width:56px;min-height:38px;font-weight:700;font-size:.92rem;color:var(--muted)}
.bp-yn label:hover span{color:var(--ink)}
.bp-yn input:checked+span{background:var(--accent);color:var(--accent-ink)}
.bp-yn input:focus-visible+span{outline:3px solid var(--accent);outline-offset:-3px}
.bp-goal{margin:0;padding:10px 14px 10px 32px;border-radius:14px;background:var(--soft);color:var(--strong);font-size:.95rem}
.bp-goal li{margin:1px 0}
.bp-head{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:flex-end;gap:10px 16px}
.bp-head .ct{margin:0}
.bp-head>div:last-child{width:190px}
/* Traitements, plan de posologie et rendez-vous : une carte par ligne */
.bp-rows{display:flex;flex-direction:column;gap:8px}
.bp-row{display:grid;gap:8px;padding:10px 12px;border:1px solid var(--line);border-left:4px solid var(--accent);border-radius:14px;background:var(--surface-2)}
.bp-row .inp{min-height:42px;padding:8px 12px;font-size:.97rem;background:var(--surface)}
.bp-row textarea.inp{min-height:42px}
.bp-row .lab{font-size:.78rem;margin-bottom:3px;color:var(--muted)}
.bp-tr{grid-template-columns:repeat(2,minmax(0,1fr)) 40px;align-items:end}
.bp-tr>div:nth-child(3),.bp-tr>div:nth-child(4){grid-row:2}
.bp-tr .bp-x{grid-column:3;grid-row:1}
.bp-w{grid-column:1/-1;display:flex;flex-wrap:wrap;gap:6px 8px;align-items:center}
.bp-w .lab{margin:0}
.bp-w .inp{flex:1 1 220px;width:auto}
.bp-2{grid-column:1/-1;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.bp-fl{position:relative;display:inline-block;cursor:pointer}
.bp-fl input{position:absolute;inset:0;width:100%;height:100%;margin:0;opacity:0;cursor:pointer}
.bp-fl span{display:inline-flex;align-items:center;min-height:32px;padding:0 12px;border-radius:999px;border:1.5px solid var(--line-strong);background:var(--surface);font-size:.86rem;font-weight:600;color:var(--muted)}
.bp-fl input:checked+span{background:var(--soft);border-color:var(--accent);color:var(--strong)}
.bp-fl input:focus-visible+span{outline:3px solid var(--accent);outline-offset:1px}
.bp-x{width:40px;height:40px;border-radius:12px;border:1px solid var(--line);background:var(--surface);color:var(--muted);display:grid;place-items:center;cursor:pointer}
.bp-x:hover{border-color:var(--crit);color:var(--crit);background:var(--crit-bg)}
.bp-pl{grid-template-columns:repeat(4,minmax(0,1fr)) minmax(0,1.6fr) 40px;align-items:end}
.bp-pl>div:nth-child(1){grid-column:1/4}
.bp-pl>div:nth-child(2){grid-column:4/6}
.bp-pl .bp-x{grid-column:6;grid-row:1}
.bp-pl .m{text-align:center;padding-inline:4px}
.bp-rd{grid-template-columns:minmax(0,1fr) minmax(0,120px) minmax(0,1.6fr) 40px;align-items:end}
@media (max-width:1400px){.bp-rd{grid-template-columns:minmax(0,1fr) 120px 40px}.bp-rd>div:nth-child(3){grid-column:1/-1;grid-row:2}.bp-rd .bp-x{grid-column:3;grid-row:1}}
.bp-rdv{display:flex;flex-direction:column;gap:10px;margin-top:6px;padding:16px 18px;border-radius:18px;background:var(--soft);border:1.5px solid color-mix(in srgb,var(--accent) 35%,transparent)}
.bp-rdv .bp-row{background:var(--surface)}
.bp-empty{color:var(--muted);font-size:.95rem;margin:0}
.bp-ob{padding:14px 16px;border:1px solid var(--line);border-radius:18px;display:flex;flex-direction:column;gap:10px}
.bp-ob .ct{margin:0}
.bp-links{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:4px 16px;font-size:.95rem}
.bp-links a{color:var(--strong);font-weight:600}
.bp-dep{margin:0;padding-left:1.3em;font-size:.95rem;color:var(--ink)}
.bp-dep li{margin:2px 0}
.bp-rv{list-style:none;margin:0 0 6px;padding:0;display:flex;flex-direction:column;gap:6px}
#panel-bpm .tw td input[type=checkbox]{width:20px;height:20px;accent-color:var(--accent)}
.bp-tt{font-family:var(--f-display);font-weight:600;margin:4px 0 0}
@media (max-width:760px){
  .bp-2,.bp-links{grid-template-columns:minmax(0,1fr)}
  .bp-tr{grid-template-columns:minmax(0,1fr) 40px}
  .bp-tr>div:nth-child(n+1){grid-column:1/-1;grid-row:auto}
  .bp-tr>div:first-child{grid-column:1}
  .bp-pl{grid-template-columns:repeat(4,minmax(0,1fr)) 40px}
  .bp-pl>div:nth-child(1){grid-column:1/5}
  .bp-pl>div:nth-child(2),.bp-pl>div:nth-child(7){grid-column:1/-1}
  .bp-pl .bp-x{grid-column:5;grid-row:1}
}
/* Fiche du patient et document pour le DMP : plusieurs pages possibles, tableaux bordés */
.bp-t{border-collapse:collapse;width:100%;font-size:8.5pt;line-height:1.3}
.bp-t th{background:var(--paper-soft);color:var(--paper-strong);font-size:7.5pt;font-weight:700;text-align:left;padding:3px 4px;border:1px solid var(--paper-line)}
.bp-t td{padding:3px 4px;border:1px solid var(--paper-line);vertical-align:top;overflow-wrap:anywhere}
.bp-t td.c,.bp-t th.c{text-align:center}
.bp-fx{table-layout:fixed}
.bp-t td.b{font-weight:700}
#print-root .sheet.bp-doc,#print-root .sheet.bp-pat{display:block}
#print-root .bp-doc>*+*,#print-root .bp-pat>*+*{margin-top:6px}
#print-root .bp-t tr{break-inside:avoid;page-break-inside:avoid}
#print-root .bp-t thead{display:table-header-group}
.bp-pat .bp-t{font-size:10.5pt}
.bp-pat .bp-t th{font-size:9pt;padding:5px 6px}
.bp-pat .bp-t td{padding:6px}
.bp-pat .bp-t td.c{font-size:12pt;font-weight:700}
.bp-doc{font-size:9.5pt}
#print-root .sheet.bp-doc{font-size:9.5pt;line-height:1.35;gap:5px}
#print-root .bp-doc h4{font-size:10.5pt;margin-top:5px}
.bp-kv{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 18px}
.bp-a{padding:2px 0;border-bottom:1px dotted var(--paper-line);overflow-wrap:anywhere}
.bp-a span{color:var(--paper-muted)}
.bp-a b{font-weight:600}
.bp-a.w{grid-column:1/-1}
.bp-sy{padding:4px 0;border-bottom:1px solid var(--paper-line)}
.bp-sy h5{margin:0;font-size:9.5pt;font-weight:700;color:var(--paper-strong)}
.bp-sy p{margin:1px 0}
.bp-tx{white-space:pre-wrap;margin:0}

/* Entretien femme enceinte : cinq blocs sur une seule page, « à dire » à gauche et « à noter » à droite */
.ef-id{grid-template-columns:repeat(auto-fit,minmax(150px,1fr))}
.ef-id .inp{min-height:42px;padding:8px 12px;font-size:.97rem}
.ef-cadre ul.plain{font-size:.95rem}
.ef-cadre .bp-links{margin-top:8px}
.ef-b{display:flex;flex-direction:column;gap:10px;padding:12px 14px;border:1px solid var(--line);border-left:4px solid var(--accent);border-radius:16px}
.ef-h{display:flex;align-items:center;gap:10px}
.ef-h .ct{margin:0;flex:1 1 auto;min-width:0}
.ef-n{flex:none;display:grid;place-items:center;width:28px;height:28px;border-radius:50%;background:var(--accent);color:var(--accent-ink);font-weight:700;font-size:.92rem}
.ef-t{flex:none;font-family:var(--f-mono);font-size:.86rem;color:var(--muted)}
.ef-c{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:12px 16px;align-items:start}
.ef-say{margin:0;padding-left:1.15em;font-size:.97rem;line-height:1.38}
.ef-say li+li{margin-top:5px}
.ef-say .ef-small{font-size:.86rem;color:var(--muted)}
.ef-rec{display:flex;flex-direction:column;gap:8px;min-width:0}
.ef-rec>.inp{min-height:42px;padding:8px 12px;font-size:.97rem}
.ef-rec .bp-box{padding:2px 12px}
.ef-rec .bp-q{padding:7px 0}
.ef-chips{display:flex;flex-wrap:wrap;align-items:center;gap:6px 8px}
.ef-chips .bp-fl span{min-height:36px;padding:4px 12px;font-size:.92rem;line-height:1.2}
.ef-if{display:none;flex:1 1 100%;min-height:42px;padding:8px 12px;font-size:.97rem}
.ef-tog:has(.ef-on input:checked) .ef-if{display:block}
.ef-go{appearance:none;border:0;background:none;padding:0;font:inherit;font-size:.88rem;font-weight:600;color:var(--strong);text-decoration:underline;cursor:pointer}
.ef-bill{display:flex;flex-wrap:wrap;align-items:baseline;gap:4px 10px}
.ef-bill b{font-family:var(--f-mono);font-size:1.05rem;color:var(--strong)}
.ef-bill span{font-size:.95rem}
.ef-seg .opt{padding:6px 10px;min-height:42px;gap:8px;border-radius:12px}
.ef-seg .opt input{width:18px;height:18px}
.ef-seg .opt .t{font-size:.95rem}
.ef-seg .opt .s{font-size:.84rem;margin-top:0}
.ef-rec .foot{margin:0}
.ef-ph summary,.ef-ap summary{font-size:.92rem;color:var(--muted);cursor:pointer}
/* Rendez-vous de vaccination : ouvert quand le pharmacien coche « À prévoir » */
.ef-rv{display:flex;flex-direction:column;gap:10px;padding-top:10px;border-top:1px solid var(--line);container-type:inline-size}
.ef-rv h4{font-size:1rem;font-weight:700}
.ef-rv .actions{margin:0}
.ef-rv .stack{gap:10px}
/* Colonne étroite (smartphone) : la date passe sous « Le / À partir du » plutôt que d'être coupée */
.ef-ap .sheet{margin-top:8px}
@media screen and (prefers-reduced-motion:no-preference){.ef-rv{animation:tr-enter var(--tr-in) var(--tr-ease)}}
.ef-ph .fields{margin-top:8px}
.qr-dlg.ef-sadlg{width:min(560px,calc(100vw - 24px))}
.ef-sadlg .qr-head span{display:block;color:var(--muted);font-size:.86rem}
.ef-sadlg .pg-big{font-size:clamp(1.6rem,6vw,2.2rem)}
.ef-sadlg .actions{margin:0}
.ef-ph .inp{min-height:40px;padding:6px 10px;font-size:.95rem}
#panel-efe .bp-yn span{min-width:50px;padding-inline:10px}
@media (max-width:1250px){.ef-c{grid-template-columns:minmax(0,1fr)}}
@media (max-width:760px){#panel-efe #ef-vac .bp-q{grid-template-columns:minmax(0,1fr)}}
/* Entretiens d'accompagnement (AVK, AOD, anticancéreux oraux, opioïdes) : la page de l'entretien femme enceinte,
   une puce par entretien du jour, « à dire » à gauche et « à noter » à droite */
.en-known{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:8px 14px;margin:0;padding:8px 10px 8px 16px;border-radius:14px;background:var(--soft);color:var(--strong);font-size:.95rem;font-weight:600}
.en-known[hidden],.en-mol[hidden]{display:none}
.en-known .btn{min-height:38px}
.en-mol{margin:-4px 0 0;font-size:.92rem;color:var(--muted)}
.en-mol a{color:var(--strong);font-weight:600}
.bp-yn.en-a span{min-width:46px;padding-inline:8px}
.bp-d.en-p{display:block}
.en-lg{margin:0;font-size:.82rem;color:var(--muted)}
.en-sc{grid-template-columns:repeat(auto-fit,minmax(64px,1fr))}
.en-rg{grid-template-columns:repeat(auto-fit,minmax(136px,1fr))}
.en-rg .opt .t{white-space:nowrap}
/* Un long mot (« Hormonothérapie ») se coupe plutôt que de toucher le bord de sa case */
:is(#panel-avk,#panel-aod,#panel-aco,#panel-opi) .ef-seg .opt{min-width:0}
:is(#panel-avk,#panel-aod,#panel-aco,#panel-opi) .ef-seg .opt .t{min-width:0;hyphens:auto;-webkit-hyphens:auto;overflow-wrap:break-word}
.en-rdv-h{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:8px 12px}
.en-rdv-h .bp-tt{margin:0}
.en-rdv-h .actions{gap:8px}
.en-plan:empty{display:none}
/* Rendez-vous programmés : la ligne suit la largeur de son cadre (souvent la colonne de droite, étroite),
   pas celle de l'écran, pour que la liste, la date et l'heure ne s'écrasent jamais l'une sur l'autre */
.en-rdv .bp-rows{container-type:inline-size}
.en-rd{grid-template-columns:minmax(0,1fr) 40px;align-items:end}
.en-rd>div{min-width:0}
.en-rd>div:first-child{grid-column:1;grid-row:1}
.en-rd .bp-x{grid-column:2;grid-row:1}
.en-rd>div:nth-child(2),.en-rd>div:nth-child(3){grid-column:1/-1}
.en-rd .inp{width:100%;min-width:0}
@container (min-width:330px){
  .en-rd{grid-template-columns:minmax(0,1.5fr) minmax(0,1fr) 40px}
  .en-rd>div:first-child{grid-column:1/3}
  .en-rd .bp-x{grid-column:3}
  .en-rd>div:nth-child(2){grid-column:1;grid-row:2}
  .en-rd>div:nth-child(3){grid-column:2/4;grid-row:2}
}
@container (min-width:620px){
  .en-rd{grid-template-columns:minmax(0,1fr) minmax(158px,1.05fr) minmax(98px,.55fr) 40px}
  .en-rd>div:first-child,.en-rd>div:nth-child(2),.en-rd>div:nth-child(3){grid-column:auto;grid-row:1}
  .en-rd .bp-x{grid-column:4}
}
@media (max-width:560px){
  /* Téléphone : le libellé sur toute la largeur, les réponses dessous */
  :is(#panel-avk,#panel-aod,#panel-aco,#panel-opi) .bp-q{grid-template-columns:minmax(0,1fr)}
  :is(#panel-avk,#panel-aod,#panel-aco,#panel-opi) .ef-h .tag{display:none}
}
.en-2{display:grid;grid-template-columns:minmax(0,1fr) 120px;gap:12px;align-items:end}
.en-cr{display:flex;flex-direction:column;gap:8px;padding:12px 14px;border-radius:14px;border:1px solid var(--line);background:var(--surface-2)}
.en-cr .actions{gap:8px}
.en-cr .foot{margin:0}
.en-adm summary{font-size:.92rem;color:var(--muted)}
:is(#panel-avk,#panel-aod,#panel-aco,#panel-opi) .ef-rec .group-t{margin-top:2px}
:is(#panel-avk,#panel-aod,#panel-aco,#panel-opi) .bp-yn:not(.en-a) span{min-width:50px;padding-inline:10px}
.en-tr{grid-template-columns:repeat(auto-fit,minmax(200px,1fr))}
.bp-box.en-tx{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));column-gap:18px}
.bp-box.en-tx .bp-q:nth-child(2){border-top:0}
/* Sur grand écran, les questions prennent la place ; « à dire » à gauche, fixe dans la page */
@media (min-width:1251px){
  :is(#panel-avk,#panel-aod,#panel-aco,#panel-opi) .ef-c{grid-template-columns:minmax(0,.78fr) minmax(0,1.6fr)}
  :is(#panel-avk,#panel-aod,#panel-aco,#panel-opi) .ef-c.en-c2{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}
  /* « À dire » reste à sa place dans la page (demande du 18/11/2026) : il ne suit plus le défilement */
}
@media (max-width:760px){.bp-box.en-tx{grid-template-columns:minmax(0,1fr)}.bp-box.en-tx .bp-q:nth-child(2){border-top:1px solid var(--line)}}
@media (max-width:760px){.en-2{grid-template-columns:minmax(0,1fr)}}
/* Bilan de prévention */
.bv-age{display:flex;flex-wrap:wrap;gap:8px}
.bv-age label{position:relative;flex:1 1 110px;cursor:pointer}
.bv-age input{position:absolute;inset:0;width:100%;height:100%;margin:0;opacity:0;cursor:pointer}
.bv-age span{display:grid;place-items:center;min-height:50px;padding:6px 10px;border:1.5px solid var(--line-strong);border-radius:var(--r-md);background:var(--surface);font-family:var(--f-display);font-weight:600;font-size:1.02rem;color:var(--muted)}
.bv-age label:hover span{color:var(--ink)}
.bv-age input:checked+span{background:var(--accent);border-color:var(--accent);color:var(--accent-ink)}
.bv-age input:focus-visible+span{outline:3px solid var(--accent);outline-offset:2px}
.bv-note{margin:0;font-size:.95rem;color:var(--muted)}
.bv-note:empty{display:none}
.bv-sub{margin:4px 0 -2px;font-family:var(--f-display);font-weight:600;font-size:.98rem;color:var(--strong)}
.bv-g{display:flex;flex-direction:column;gap:8px;min-width:0}
.bv-2{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px 18px;align-items:start}
.bv-f{display:flex;flex-direction:column;gap:3px;min-width:0}
.bv-f .lab{margin:0;font-size:.86rem}
.bv-f .inp,.bv-tog>.inp{min-height:42px;padding:8px 12px;font-size:.97rem}
.bv-f textarea.inp{min-height:64px}
.bv-tog{display:contents}
.bv-tog>.inp{display:none;flex:1 1 100%}
.bv-tog:has(input[type="checkbox"]:checked)>.inp{display:block}
.bv-mes{display:grid;grid-template-columns:repeat(auto-fit,minmax(112px,1fr));gap:10px 12px;align-items:end}
.bv-imc{display:flex;flex-direction:column;gap:3px;min-height:42px;justify-content:flex-end}
.bv-imc span{font-size:.86rem;color:var(--muted);font-weight:600}
.bv-imc b{font-family:var(--f-mono);font-size:1.2rem;line-height:42px}
.bv-info{margin:0;font-size:.9rem;color:var(--muted)}
.bv-qz{padding:0 14px}
.bv-qz summary{display:flex;flex-wrap:wrap;align-items:center;gap:4px 12px;padding:10px 0;min-height:48px}
.bv-qz summary>span:first-child{flex:1 1 auto;min-width:0}
.bv-qz summary small{display:block;color:var(--muted);font-weight:400;font-size:.86rem}
.bv-res{font-family:var(--f-mono);font-weight:700;font-size:1rem;color:var(--strong);white-space:nowrap}
.bv-qb{display:flex;flex-direction:column;gap:10px}
.bv-q{display:flex;flex-direction:column;gap:6px;padding-bottom:10px;border-bottom:1px solid var(--line)}
.bv-ql{font-weight:600;font-size:.97rem;line-height:1.3}
.bv-qo{display:flex;flex-wrap:wrap;gap:6px}
.bv-qo .bp-fl span{gap:7px;min-height:36px;padding:3px 10px;font-size:.9rem;line-height:1.2}
.bv-pt{display:inline-grid;place-items:center;min-width:20px;height:20px;padding:0 4px;border-radius:6px;background:var(--surface-2);color:var(--ink);font-family:var(--f-mono);font-size:.8rem;font-weight:700}
.bv-had{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px 18px}
.bv-hi{display:flex;align-items:center;justify-content:space-between;gap:8px;font-size:.92rem;font-weight:600}
.bv-hi small{color:var(--muted);font-weight:400;margin-left:4px}
#panel-bv .bp-yn span{min-width:44px;padding-inline:10px}
#panel-bv .bv-hi .bp-yn span{min-width:36px;min-height:34px;padding-inline:4px}
.bv-tot{display:flex;flex-wrap:wrap;align-items:baseline;gap:4px 18px;padding:9px 12px;border-radius:12px;background:var(--surface-2)}
.bv-tot b{font-family:var(--f-mono);font-size:1.15rem}
.bv-tot span{font-size:.92rem;color:var(--muted)}
.bv-sc{margin:0;padding-left:1.15em;font-size:.88rem;color:var(--muted);line-height:1.4}
.bv-sc li+li{margin-top:2px}
.bv-pr{display:flex;flex-direction:column;gap:10px;padding:12px 14px;border:1px solid var(--line);border-radius:14px;background:var(--surface-2)}
.bv-pr .inp{background:var(--surface)}
.bv-res-l{display:flex;flex-direction:column;gap:4px}
.bv-doc{display:flex;flex-direction:column;gap:8px}
.bv-doc .btn{width:100%}
@media (max-width:760px){.bv-2,.bv-had{grid-template-columns:minmax(0,1fr)}
  .bv-wide{grid-template-columns:minmax(0,1fr)}
  .bv-wide .bp-yn{display:flex}
  .bv-wide .bp-yn label{flex:1 1 0;min-width:0}
  #panel-bv .bv-wide .bp-yn span{min-width:0;height:100%;padding:4px 6px;text-align:center;line-height:1.15}}
.bv-ppp{table-layout:fixed}
.bp-pat .bv-ppp td{height:38mm}
/* Contrat de location */
.lo-ch{display:flex;flex-wrap:wrap;gap:8px}
.lo-ch .bp-fl span{min-height:42px;padding:0 16px;font-size:.95rem}
.lo-w{grid-column:1/-1}
.lo-off{display:flex;flex-direction:column;gap:2px;padding:10px 12px;border:1.5px solid var(--accent);border-radius:12px;font-size:.9rem;overflow-wrap:anywhere}
.lo-off b{font-family:var(--f-display);font-weight:600;font-size:1rem}
.lo-off span{color:var(--muted)}
.lo-miss .btn{margin-top:8px}
/* Contrat, à l'écran comme sur le papier : tailles en em, données par la feuille elle-même */
.sheet.lo-s{gap:7px;font-size:.8rem;line-height:1.32}
.lo-cadre{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:4px 16px;padding:.7em 1em;border:2px solid var(--paper-strong);border-radius:8px}
.lo-ph{flex:1 1 55%;min-width:0;overflow-wrap:anywhere}
.lo-ph b{display:block;font-size:1.5em;line-height:1.2;font-weight:700;color:var(--paper-strong)}
.lo-ids{display:flex;flex-direction:column;align-items:flex-end;gap:1px;text-align:right}
.lo-ids b{font-weight:600}
.lo-tit{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:baseline;gap:2px 12px;padding-bottom:4px;border-bottom:2px solid var(--paper-accent)}
.lo-tit h3{font-size:1.4em;font-weight:600;color:var(--paper-strong)}
.lo-tit p{margin:0;overflow-wrap:anywhere}
.sheet.lo-s h4{font-size:1.04em;margin:2px 0 -3px}
.lo-g{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1px 16px}
.lo-f{display:flex;gap:6px;padding:1px 2px;border-bottom:1px dotted var(--paper-line);min-width:0}
.lo-f span{flex:none;color:var(--paper-muted)}
.lo-f b{min-width:0;font-weight:600;overflow-wrap:anywhere}
.lo-f i{font-style:normal;color:var(--paper-muted);overflow:hidden;white-space:nowrap}
.lo-cl{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 14px;font-size:.86em;line-height:1.27}
.lo-cl p{margin:0 0 3px;overflow-wrap:anywhere}
.lo-cl b{font-weight:700;color:var(--paper-strong)}
.lo-cl small{font-size:.9em;color:var(--paper-muted)}
.lo-res{padding:.35em .7em .9em;border:1px solid var(--paper-line);border-radius:6px;font-size:.92em}
.lo-res b{font-weight:700;color:var(--paper-strong)}
.lo-res i{display:block;margin-top:.7em;font-style:normal;color:var(--paper-muted);white-space:nowrap;overflow:hidden}
.lo-fin{margin:.2em 0 0;font-size:.92em;color:var(--paper-ink)}
.lo-fin-n{display:block;margin-top:4px;color:var(--ink-3);font-size:12px;line-height:16px}
.lo-fait{margin:0}
.lo-sign{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.lo-sb{min-height:33mm;padding:.5em .8em;border:1.5px solid var(--paper-muted);border-radius:8px;overflow-wrap:anywhere}
.lo-sb.pat{border-style:dashed}
.lo-sb>b{display:block;font-weight:700;color:var(--paper-strong)}
.lo-sb>span{display:block}
.lo-sb small{display:block;font-size:.9em;color:var(--paper-muted)}
#print-root .sheet.lo-s{gap:5.5px;font-size:9.5pt;line-height:1.3}
#print-root .sheet.lo-s h4{font-size:10pt;margin:2px 0 -2px}
@media (max-width:560px){.lo-g,.lo-cl,.lo-sign{grid-template-columns:minmax(0,1fr)}.lo-w{grid-column:auto}.lo-ids{align-items:flex-start;text-align:left}}

/* ---------- Impression de la fiche patient ---------- */
@media print{
  @page{size:A4;margin:12mm}
  html,body{background:#fff!important}
  .app{background:none!important;padding:0!important}
  .top,.tabs,.rail,.ubar,.dk,.phead,.col-in,.pf-in,.no-print,#panel-trod,#panel-trodc,#panel-bpm,#panel-efe,#panel-vax,#panel-avk,#panel-aod,#panel-aco,#panel-opi,#panel-bv,#panel-loc,#panel-home,#panel-com,.legal{display:none!important}
  .app::before,.wrap::before{display:none!important}
  .wrap{display:block!important}
  main{padding:0!important}
  .menu-fab,.menu-pop,.menu-scrim,.qr-dlg{display:none!important}
  .col-out>:not(.sheet-wrap){display:none!important}
  .split{display:block}
  .sheet{border:0;box-shadow:none;padding:0;border-radius:0}
  .sheet-wrap{gap:0}
}
/* ---------- Réglages : officine et équipe ---------- */
.of-row{display:flex;flex-wrap:wrap;gap:12px;align-items:flex-end}
.of-grow{flex:1 1 240px;min-width:0}
.of-head{display:flex;justify-content:space-between;align-items:flex-start;gap:12px}
.of-count{display:inline-grid;place-items:center;min-width:28px;height:28px;padding:0 8px;margin-left:8px;border-radius:999px;background:var(--soft);color:var(--strong);font-size:.85rem;vertical-align:middle}
.of-list{list-style:none;margin:0;padding:0;display:flex;flex-direction:column}
.of-m{padding:14px 0;border-top:1px solid var(--line);display:flex;flex-direction:column;gap:10px}
.of-m:first-child{border-top:0;padding-top:4px}
.of-line{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:10px 16px}
.of-who{min-width:0}
.of-who b{display:block;font-family:var(--f-display);font-weight:600;overflow-wrap:anywhere}
.of-who small{display:block;color:var(--muted);font-size:.88rem;overflow-wrap:anywhere}
.of-me{font-family:var(--f-body);font-size:.74rem;font-weight:700;letter-spacing:.05em;text-transform:uppercase;color:var(--muted);margin-left:6px}
.of-act{display:flex;flex-wrap:wrap;align-items:center;gap:8px}
.of-sel{width:auto;min-height:42px;padding:6px 12px;font-size:.95rem}
.of-sm{min-height:42px;padding:0 14px;font-size:.92rem}
.of-perms{display:flex;flex-wrap:wrap;gap:8px}
.of-perms .chk span{min-height:40px;font-family:var(--f-body);font-size:.9rem}
#of-role,#of-titre{min-height:50px}
.of-sel.of-due{border-color:var(--warn-line);background:var(--warn-bg);color:var(--warn)}
.of-autre{max-width:340px}
.of-perms legend{width:100%}
.of-sub{font-size:1rem;margin-top:4px}
.tag.plain{background:var(--surface-2);color:var(--muted)}
.of-wide{grid-column:1/-1}
.of-adr{display:grid;grid-template-columns:minmax(76px,1fr) 4fr;gap:14px}
#of-id .lead:empty,#ac-card .lead:empty,#ac-dlg-msg:empty,.ac-who small:empty{display:none}
#of-id .pf-g{align-items:start}
/* ---------- Photos de profil : par-dessus les initiales, dans tous les ronds de l'équipe ---------- */
.av-ph{position:absolute;inset:0;width:100%;height:100%;border-radius:inherit;object-fit:cover}
/* ---------- Réglages : compte et photo de profil ---------- */
.ac-me{display:flex;align-items:center;gap:20px}
.ac-pic{position:relative;flex:none;width:104px;height:104px;padding:0;border:0;border-radius:50%;background:none;color:inherit;cursor:pointer}
.ac-pic .hm-av{width:100%;height:100%;font-size:2.1rem;box-shadow:0 0 0 4px var(--surface),0 0 0 5px var(--line)}
.ac-pic-ed{position:absolute;right:0;bottom:0;width:34px;height:34px;border-radius:50%;display:grid;place-items:center;background:var(--brand-v,var(--accent));color:var(--brand-ink,#fff);box-shadow:0 0 0 3px var(--surface)}
.ac-pic:hover .av-ph,.ac-pic:hover .hm-av{filter:brightness(.93)}
.ac-pic.drop .hm-av{box-shadow:0 0 0 4px var(--surface),0 0 0 7px var(--brand-v,var(--accent))}
.ac-pic:focus-visible{outline-offset:6px;border-radius:50%}
.ac-who{min-width:0}
.ac-who b{display:block;font-family:var(--f-display);font-weight:600;font-size:1.4rem;line-height:1.2;overflow-wrap:anywhere}
.ac-who small{display:block;margin-top:2px;color:var(--muted);font-size:.95rem;overflow-wrap:anywhere}
#ac-card.drop{border-color:var(--brand-v,var(--accent))}
/* Connexion, au bas de la carte du compte */
.ac-co{display:flex;flex-direction:column;gap:12px;padding-top:16px;border-top:1px solid var(--line)}
.ac-legal a,#dmd-d a{color:var(--strong);text-underline-offset:3px}
/* Recadrage : l'image remplit le carré, le rond est la photo gardée */
.ac-dlg{width:min(460px,calc(100vw - 24px))}
.ac-stage{position:relative;width:min(340px,100%);aspect-ratio:1;margin-inline:auto;border-radius:20px;overflow:hidden;background:#17131F;touch-action:none;cursor:grab;-webkit-user-select:none;user-select:none}
.ac-stage:active{cursor:grabbing}
.ac-stage canvas{display:block;width:100%;height:100%}
.ac-stage::after{content:"";position:absolute;inset:0;border-radius:50%;box-shadow:0 0 0 400px rgba(14,12,19,.55);outline:2px solid rgba(255,255,255,.9);outline-offset:-2px;pointer-events:none}
.ac-stage:focus-visible{outline-offset:3px;border-radius:20px}
.ac-zoom{display:flex;align-items:center;gap:12px;width:min(340px,100%);margin-inline:auto;color:var(--muted)}
.ac-zoom span{display:grid;place-items:center}
.ac-z-s svg{width:13px;height:13px}
.ac-zoom input{flex:1;min-width:0;accent-color:var(--brand-v,var(--accent))}
.ac-dlg-act{justify-content:flex-end}
@media (max-width:640px){.ac-me{gap:16px}.ac-pic{width:84px;height:84px}.ac-pic .hm-av{font-size:1.7rem}.ac-who b{font-size:1.2rem}.ac-dlg-act .btn{padding:0 16px}}
/* ---------- Nous contacter ---------- */
.ct-cats{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:8px}
.ct-cats .opt{padding:10px 12px}
#ct-msg{min-height:170px}
.ct-count{margin-top:6px;text-align:right;color:var(--muted);font-size:.85rem}
.ct-hint{margin-top:6px;color:var(--muted);font-size:.85rem}
/* ---------- Planning ---------- */
.pl-bar{display:flex;flex-wrap:wrap;gap:12px;align-items:center;justify-content:space-between}
.pl-tabs{flex-wrap:wrap}
.pl-tabs .n{display:inline-grid;place-items:center;min-width:22px;height:22px;padding:0 6px;margin-left:8px;border-radius:999px;background:var(--crit);color:#fff;font-size:.75rem}
.pl-genrow{display:flex;flex-wrap:wrap;gap:12px 16px;align-items:center;justify-content:space-between}
/* Demandes de congés : bouton toujours à portée, fenêtre, demandes en attente, historique */
.pl-bar-a{display:flex;flex-wrap:wrap;gap:10px;align-items:center;margin-left:auto}
.pl-cg-btn{gap:8px;white-space:nowrap}
.pl-cg-hero{display:flex;flex-direction:row;flex-wrap:wrap;align-items:center;gap:14px 18px}
.pl-cg-hero .pl-cg-tx{flex:1 1 300px;min-width:0}
.pl-cg-hero .ct{margin:0}
.pl-cg-hero .lead{margin:4px 0 0}
.pl-cg-ic{flex:none;width:52px;height:52px;border-radius:16px;display:grid;place-items:center;background:var(--soft);color:var(--strong)}
.pl-cj-sum{display:flex;flex-direction:column;gap:2px;margin:0;color:var(--muted);font-size:.92rem;line-height:1.45}
.pl-cj-sum:empty{display:none}
.pl-cj-sum span:first-child{color:var(--ink);font-weight:600}
.pl-cj-sum span.h{color:var(--muted);font-weight:400}
.pl-dem-t{color:var(--muted);font-size:.85rem;white-space:nowrap}
.of-m.is-cible{margin:0 -12px;padding-left:12px;padding-right:12px;border-radius:14px;animation:pl-cible 2.4s ease-out}
@keyframes pl-cible{0%,35%{background:var(--soft);box-shadow:0 0 0 2px var(--accent)}100%{background:transparent;box-shadow:0 0 0 2px transparent}}
@media (prefers-reduced-motion:reduce){.of-m.is-cible{animation:none;background:var(--soft)}}
.pl-jr-m{color:var(--ink)!important}
.pl-c.abs{background:repeating-linear-gradient(135deg,transparent 0 7px,color-mix(in srgb,var(--warn-line) 35%,transparent) 7px 8px)}
.pl-c.abs:hover{background:repeating-linear-gradient(135deg,var(--warn-bg) 0 7px,color-mix(in srgb,var(--warn-line) 45%,transparent) 7px 8px);border-color:var(--warn-line)}
.pl-ed-abs{margin:0}
@media (max-width:640px){.pl-bar-a{margin-left:0;width:100%}.pl-bar-a .pl-cg-btn{flex:1 1 auto;justify-content:center}}
.pl-nav{display:flex;align-items:center;justify-content:flex-end;gap:8px;flex:1 1 340px;min-width:0}
.pl-nav b{font-family:var(--f-display);font-weight:600;font-size:1.06rem;min-width:0;flex:0 1 auto;text-align:center}
.pl-nav .icon-btn:hover{border-color:var(--accent);color:var(--strong);background:var(--soft)}
.pl-wk+.pl-wk{margin-top:18px}
.pl-wk-t{font-family:var(--f-display);font-weight:600;font-size:1rem;margin-bottom:6px;display:flex;flex-wrap:wrap;gap:4px 10px;align-items:baseline}
.pl-wk-t small{font-family:var(--f-body);color:var(--muted);font-weight:600;font-size:.85rem}
.pl-scroll{overflow-x:auto;padding-bottom:4px}
.pl-grid{width:100%;border-collapse:separate;border-spacing:0;min-width:820px;font-size:.88rem;table-layout:fixed}
.pl-grid th,.pl-grid td{border-bottom:1px solid var(--line);padding:2px;vertical-align:top}
.pl-grid thead th{font-size:.78rem;font-weight:700;color:var(--muted);text-align:center;padding:6px 3px;white-space:nowrap;text-transform:capitalize}
.pl-grid thead th b{display:block;color:var(--ink);font-size:.98rem;font-family:var(--f-display);font-weight:600}
.pl-grid thead th.fer b,.pl-grid thead th.fer{color:var(--crit)}
.pl-grid thead th.hors{opacity:.55}
.pl-grid .who{width:160px;text-align:left;position:sticky;left:0;z-index:1;background:var(--surface)}
.pl-grid .tot{width:76px}
.pl-who{display:flex;align-items:center;gap:10px;min-width:0}
.pl-who>div{min-width:0}
.pl-who b{display:block;font-family:var(--f-display);font-weight:600;font-size:.95rem;line-height:1.25;overflow-wrap:anywhere}
.pl-who small{display:block;color:var(--muted);font-size:.78rem;font-weight:500;line-height:1.3}
.pl-c{position:relative;display:flex;flex-direction:column;gap:3px;width:100%;min-height:54px;padding:3px;border:1.5px solid transparent;border-radius:10px;background:transparent;color:var(--ink);text-align:left;cursor:pointer;-webkit-user-select:none;user-select:none}
.pl-c:hover{border-color:var(--accent);background:var(--soft)}
.pl-c:focus-visible{outline-offset:0}
/* Repères du contrôle, cases modifiées à la main, glisser-déposer, case choisie pour un échange */
.pl-c.crit{border-color:var(--crit);background:var(--crit-bg)}
.pl-c.warn{border-color:var(--warn-line);background:color-mix(in srgb,var(--warn-bg) 60%,transparent)}
.pl-c.man::after,.pl-lman::before{content:"";width:7px;height:7px;border-radius:50%;background:var(--accent);box-shadow:0 0 0 2px var(--surface)}
.pl-c.man::after{position:absolute;top:3px;right:3px}
.pl-lman{display:inline-flex;align-items:center;gap:6px}
.pl-c.dragging{opacity:.35}
.pl-c.drop{border:2px dashed var(--accent);background:var(--soft)}
.pl-c.sel{border:2px solid var(--accent);box-shadow:0 0 0 4px color-mix(in srgb,var(--accent) 25%,transparent)}
.pl-pt{display:inline-block;width:8px;height:8px;border-radius:50%;margin-left:6px;vertical-align:middle;background:var(--warn-line)}
.pl-pt.crit{background:var(--crit)}
.pl-av{position:relative;flex:none;width:32px;height:32px;border-radius:50%;display:inline-grid;place-items:center;font-family:var(--f-display);font-weight:700;font-size:.8rem;letter-spacing:.02em;background:hsl(var(--h) 65% 91%);color:hsl(var(--h) 55% 28%)}
@media (prefers-color-scheme:dark){:root:not([data-theme="light"]) .pl-av{background:hsl(var(--h) 30% 24%);color:hsl(var(--h) 75% 82%)}}
:root[data-theme="dark"] .pl-av{background:hsl(var(--h) 30% 24%);color:hsl(var(--h) 75% 82%)}
.pl-edbar{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:flex-start;gap:10px 16px}
.pl-edbar .actions{gap:8px}
.icon-btn.pl-ib:hover{border-color:var(--accent);color:var(--strong);background:var(--soft)}
.icon-btn.pl-ib:disabled{opacity:.4;cursor:not-allowed;background:var(--surface);border-color:var(--line-strong);color:var(--muted)}
.pl-keys{display:flex;flex-wrap:wrap;gap:8px 18px;padding:10px 14px;border-radius:12px;background:var(--surface-2);font-size:.88rem;color:var(--muted)}
kbd{display:inline-block;min-width:22px;padding:1px 6px;border:1px solid var(--line-strong);border-bottom-width:2px;border-radius:6px;background:var(--surface);color:var(--ink);font-family:var(--f-mono);font-size:.78rem;text-align:center}
.pl-banner{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:10px;padding:10px 14px;border-radius:12px;border:1.5px solid var(--accent);background:var(--soft);color:var(--strong)}
.pl-wk-t{justify-content:space-between}
.btn.pl-ghost{border-color:transparent;background:transparent;color:var(--strong);gap:6px}
.btn.pl-ghost:hover{background:var(--soft);border-color:transparent}
.pl-mods{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:10px}
.pl-mt{display:flex;flex-direction:column;gap:8px}
.pl-pauses{display:flex;flex-wrap:wrap;gap:8px}
.pl-pp{position:relative;display:inline-block}
.pl-pp input{position:absolute;inset:0;width:100%;height:100%;margin:0;opacity:0;cursor:pointer}
.pl-pp span{display:inline-flex;align-items:center;min-height:42px;padding:0 16px;border-radius:999px;border:1.5px solid var(--line-strong);background:var(--surface);font-weight:700;font-size:.92rem}
.pl-pp input:checked+span{background:var(--accent);border-color:var(--accent);color:var(--accent-ink)}
.pl-pp input:focus-visible+span{outline:3px solid var(--accent);outline-offset:2px}
/* Onglet Heures : soldes de la cagnotte, mouvements, heures en plus d'un planning, heures supplémentaires */
.pl-soldes{list-style:none;margin:4px 0 0;padding:0;display:grid;grid-template-columns:repeat(auto-fill,minmax(250px,1fr));gap:10px}
.pl-sd{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 14px;border:1px solid var(--line);border-radius:14px;background:var(--surface-2)}
.pl-sd .pl-who{min-width:0}
.pl-sd-v{text-align:right;flex:none}
.pl-sd-v b{display:block;font-family:var(--f-mono);font-weight:700;font-size:1.15rem;white-space:nowrap}
.pl-sd-v small{display:block;color:var(--muted);font-size:.82rem}
.pl-sd.up .pl-sd-v b{color:var(--ok)}.pl-sd.down .pl-sd-v b{color:var(--crit)}
.pl-full{grid-column:1/-1}
.pl-dur{display:flex;align-items:center;gap:6px}.pl-dur .inp{flex:1;min-width:0}.pl-dur span{color:var(--muted);font-weight:700}
.pl-mv{font-family:var(--f-mono);font-weight:700;white-space:nowrap}.pl-mv.up{color:var(--ok)}.pl-mv.down{color:var(--crit)}
.pl-ecl{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:10px;max-height:min(56vh,520px);overflow:auto}
.pl-ec{border:1px solid var(--line);border-radius:14px;padding:12px;display:flex;flex-direction:column;gap:10px}
.pl-ec-h{display:flex;align-items:center;justify-content:space-between;gap:10px 16px;flex-wrap:wrap}
.pl-ec-v{display:flex;gap:16px}
.pl-ec-v span{font-family:var(--f-mono);font-weight:700;font-size:1.1rem;text-align:right;white-space:nowrap}
.pl-ec-v small{display:block;font-family:var(--f-body);font-weight:600;font-size:.78rem;color:var(--muted)}
.pl-ec-v .up{color:var(--warn)}.pl-ec-v .down{color:var(--crit)}
.pl-suptot{margin:4px 0 0}.pl-suptot b{font-family:var(--f-mono);font-size:1.3rem}
.pl-supw{list-style:none;margin:0;padding:0 0 0 52px;display:flex;flex-direction:column;gap:8px}
.pl-supw li{display:flex;flex-wrap:wrap;align-items:center;gap:4px 12px;font-size:.92rem}
.pl-supw li b{font-family:var(--f-mono)}.pl-supw li small{color:var(--muted);flex:1 1 220px}
.pl-supadd{margin-top:8px;border-top:1px solid var(--line);padding-top:12px}
.pl-supadd summary{cursor:pointer;font-weight:700;font-family:var(--f-display);padding:6px 0}
.pl-supadd[open] summary{margin-bottom:10px}
@media (max-width:560px){.pl-supw{padding-left:0}.pl-ec-v span{font-size:1rem}}
/* Relevé des heures supplémentaires imprimé : A4 portrait */
#print-root .plr{color:#17141F;font-family:var(--f-body);display:flex;flex-direction:column;gap:4mm;font-size:10pt;-webkit-print-color-adjust:exact;print-color-adjust:exact}
#print-root .plr-t{width:100%;border-collapse:collapse}
#print-root .plr-t th,#print-root .plr-t td{border:.3mm solid #C9C4D4;padding:1.6mm 2mm;text-align:right;font-variant-numeric:tabular-nums;vertical-align:middle}
#print-root .plr-t thead th{background:#ECF5DA;color:#2F4A0C;font-size:9pt}
#print-root .plr-t td{white-space:nowrap}#print-root .plr-t td.w{white-space:normal}#print-root .plr-t td.w small{display:block;color:#5E5A6B;font-size:8.5pt}
#print-root .plr-t thead th:nth-child(-n+2),#print-root .plr-t td.w{text-align:left}
#print-root .plr-t tbody th{text-align:left;vertical-align:top;background:#FAF9FC;width:46mm}
#print-root .plr-t tbody th b{display:block;font-family:var(--f-display);font-weight:600;font-size:11pt}
#print-root .plr-t tbody th small{display:block;color:#5E5A6B;font-size:8.5pt;font-weight:600;line-height:1.4;margin-top:1mm}
#print-root .plr-t tr.tot td{background:#F1F0F6;font-weight:800}
#print-root .plr-t tr{break-inside:avoid;page-break-inside:avoid}
#print-root .plr-g{font-size:12pt;margin:0}
#print-root .plr-n{font-size:8.5pt;color:#5E5A6B;margin:0;line-height:1.45}
.pl-autost{color:var(--muted)}
.pl-autost.pl-err{color:var(--crit);font-weight:700}
.pl-von{background:var(--soft);border-radius:12px;padding-inline:12px}
.pl-sv{margin:0}
.pl-foot{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:10px 16px;padding-top:14px;border-top:1px solid var(--line)}
.pl-foot .pl-legend{flex:1 1 320px}
/* État du planning : ordre de construction, pharmacien à chaque ouverture */
.pl-etat{display:flex;flex-wrap:wrap;gap:8px}
.pl-chip{display:inline-flex;align-items:center;gap:6px;min-height:30px;padding:0 12px;border-radius:999px;background:var(--surface-2);color:var(--strong);font-weight:700;font-size:.85rem}
.pl-chip.ok{background:var(--ok-bg);color:var(--ok)}
.pl-chip.crit{background:var(--crit-bg);color:var(--crit)}
/* Ordre de construction, demandé avant chaque génération */
.pl-ord{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.pl-ord-o{position:relative;display:block;cursor:pointer}
.pl-ord-o input{position:absolute;inset:0;width:100%;height:100%;margin:0;opacity:0;cursor:pointer}
.pl-ord-in{display:flex;flex-direction:column;gap:6px;height:100%;padding:14px 16px 16px;border:1.5px solid var(--line);border-radius:16px;background:var(--surface);transition:border-color .15s,background-color .15s,box-shadow .15s}
.pl-ord-o:hover .pl-ord-in{border-color:color-mix(in srgb,var(--accent) 55%,var(--line))}
.pl-ord-o input:checked+.pl-ord-in{border-color:var(--accent);background:var(--soft);box-shadow:inset 0 0 0 1px var(--accent)}
.pl-ord-o input:focus-visible+.pl-ord-in{outline:3px solid var(--accent);outline-offset:2px}
.pl-ord-in>b{font-family:var(--f-display);font-weight:600;font-size:1.1rem;line-height:1.25}
.pl-ord-in>.s{color:var(--muted);font-size:.92rem;line-height:1.45}
.pl-ord-f{position:relative;display:flex;flex-direction:column;align-items:flex-start;gap:6px;margin-bottom:6px}
.pl-ord-f::before{content:"";position:absolute;left:10px;top:22px;height:6px;border-left:2px dotted var(--line-strong)}
.pl-ord-e{display:inline-flex;align-items:center;gap:6px;font-weight:700;font-size:.84rem;color:var(--strong)}
.pl-ord-e>i{font-style:normal;width:22px;height:22px;border-radius:50%;display:inline-grid;place-items:center;background:var(--accent);color:var(--accent-ink);font-size:.74rem;font-weight:800}
.pl-ord-e+.pl-ord-e>i{background:var(--surface-2);color:var(--muted);box-shadow:inset 0 0 0 1.5px var(--line-strong)}
.pl-avs{display:inline-flex}
.pl-avs .pl-av{width:24px;height:24px;font-size:.6rem;box-shadow:0 0 0 2px var(--surface)}
.pl-ord-o input:checked+.pl-ord-in .pl-av{box-shadow:0 0 0 2px var(--soft)}
.pl-avs .pl-av+.pl-av{margin-left:-7px}
.pl-avs .pl-avn{background:var(--surface-2);color:var(--muted)}
.pl-ordph{display:flex;align-items:flex-start;gap:12px;padding:12px 14px;border-radius:14px;background:var(--surface-2);color:var(--ink);font-size:.92rem;line-height:1.45}
.pl-ordph>svg{flex:none;margin-top:2px;color:var(--strong)}
.pl-ordph b{display:block;font-family:var(--f-display);font-weight:600;font-size:1rem}
.pl-form .pl-ordph{background:var(--surface)}
@media (max-width:560px){.pl-ord{grid-template-columns:minmax(0,1fr)}}
@media (prefers-reduced-motion:no-preference){.pl-ord-o input:checked+.pl-ord-in .pl-ord-e:first-child>i{animation:pl-pop .45s cubic-bezier(.2,.9,.3,1.5) both}}
.pl-sam{grid-template-columns:repeat(auto-fit,minmax(170px,1fr))}
.pl-samr{margin-top:10px;max-width:320px}
/* Notification en bas de l'écran, avec « Annuler » */
.pl-toast{position:fixed;left:50%;bottom:calc(20px + env(safe-area-inset-bottom,0px));transform:translateX(-50%);z-index:90;display:flex;align-items:center;gap:14px;width:max-content;max-width:min(560px,calc(100vw - 24px));padding:10px 10px 10px 18px;border-radius:14px;background:var(--surface);color:var(--ink);border:1px solid var(--line);box-shadow:var(--shadow-lg);font-weight:600;font-size:.95rem}
.pl-toast button{flex:none;min-height:40px;padding:0 14px;border-radius:10px;border:0;background:var(--soft);color:var(--strong);font-weight:700;cursor:pointer}
.pl-toast button:hover{background:var(--accent);color:var(--accent-ink)}
@media print{.pl-toast{display:none!important}}
.pl-r{display:flex;align-items:center;gap:4px;padding:2px 4px;border-radius:7px;font-family:var(--f-mono);font-weight:700;font-size:.76rem;letter-spacing:-.03em;white-space:nowrap;background:var(--surface-2);color:var(--ink);overflow:hidden}
.pl-r i{font-style:normal;font-family:var(--f-body);font-size:.66rem;font-weight:800;min-width:17px;height:17px;padding:0 3px;border-radius:5px;display:inline-grid;place-items:center;background:var(--muted);color:var(--surface);flex:none}
.pl-r.t-comptoir{background:var(--soft);color:var(--strong)}.pl-r.t-comptoir i{background:var(--accent);color:var(--accent-ink)}
.pl-r.t-reception{background:var(--p-soft);color:var(--p-strong)}.pl-r.t-reception i{background:var(--p-accent);color:var(--p-ink)}
.pl-r.t-autre{background:var(--y-soft);color:var(--y-strong)}.pl-r.t-autre i{background:var(--y-accent);color:var(--y-ink)}
.pl-abs{display:block;padding:2px 6px;border-radius:7px;border:1.5px dashed var(--warn-line);background:var(--warn-bg);color:var(--warn);font-weight:700;font-size:.76rem;line-height:1.3}
.pl-rest{color:var(--muted);font-size:.78rem;padding:2px 4px}
.pl-grid td.pl-closed{background:repeating-linear-gradient(135deg,var(--surface-2) 0 6px,transparent 6px 12px)}
.pl-tot{text-align:right;white-space:nowrap;font-family:var(--f-mono);font-weight:700;padding-top:8px!important}
.pl-tot small{display:block;color:var(--muted);font-family:var(--f-body);font-weight:600;font-size:.74rem}
.pl-tot.up{color:var(--warn)}.pl-tot.down{color:var(--crit)}
.pl-cov td,.pl-cov th{font-size:.78rem;color:var(--muted);text-align:center;border-bottom:0!important;font-weight:600}
.pl-cov th{text-align:left}
.pl-cov .bad{color:var(--crit);font-weight:800}
.pl-legend{display:flex;flex-wrap:wrap;gap:8px 16px;align-items:center;color:var(--muted);font-size:.85rem}
.pl-legend .pl-r,.pl-legend .pl-abs{display:inline-flex}
.pl-alerts{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:6px}
.pl-alerts li{display:flex;gap:10px;align-items:baseline;padding:8px 12px;border-radius:10px;background:var(--surface-2);font-size:.93rem}
.pl-alerts li .tag{flex:none}
.pl-tbl{width:100%;border-collapse:collapse;font-size:.93rem}
.pl-tbl th,.pl-tbl td{text-align:left;padding:8px 10px;border-bottom:1px solid var(--line);vertical-align:top}
.pl-tbl th{font-size:.78rem;letter-spacing:.05em;text-transform:uppercase;color:var(--muted);font-weight:700}
.pl-tbl td.n{font-family:var(--f-mono);font-weight:700;white-space:nowrap}
.pl-tbl .up{color:var(--warn)}.pl-tbl .down{color:var(--crit)}
.pl-chips{display:flex;flex-wrap:wrap;gap:6px}
.chk input:disabled+span{opacity:.45;cursor:not-allowed}
.pl-chips .tag{text-transform:none;letter-spacing:0;font-size:.8rem}
.pl-form{display:flex;flex-direction:column;gap:14px;padding:16px;border:1.5px solid var(--accent);border-radius:14px;background:var(--surface-2)}
.pl-days{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:8px}
.pl-days label{display:block;font-size:.82rem;font-weight:700;margin-bottom:4px}
.pl-sm{min-height:42px;padding:6px 10px;font-size:.95rem}
.pl-days .pl-sm{padding:6px 4px;font-size:.84rem}
.pl-num{width:100px}
.pl-hrow{display:grid;grid-template-columns:150px minmax(0,1fr) auto minmax(0,1fr);gap:8px 14px;align-items:center;padding:8px 0;border-top:1px solid var(--line)}
.pl-hrow.cont .p2{visibility:hidden}
.pl-hrow.off .pl-cont{opacity:.35}
.pl-hrow:first-child{border-top:0}
.pl-hrow.off .pl-pl{opacity:.35}
.pl-pl{display:flex;align-items:center;gap:6px;flex-wrap:wrap}
.pl-pl .inp{width:auto;min-width:0;flex:1 1 92px;font-family:var(--f-mono)}
.pl-pl span{color:var(--muted);font-size:.85rem}
.pl-req{display:grid;grid-template-columns:minmax(0,1.4fr) 110px minmax(0,1fr) auto;gap:10px;align-items:end}
.pl-save{position:sticky;bottom:12px;z-index:5;display:flex;flex-wrap:wrap;gap:10px 16px;align-items:center;padding:12px 16px;background:var(--surface);border:1px solid var(--line);border-radius:14px;box-shadow:var(--shadow-lg)}
/* Barre de décision du planning : une seule ligne, l'état, les points à régler, le bouton qui valide ; rien d'autre ne s'y superpose */
.pl-decide{flex-wrap:nowrap;justify-content:space-between;gap:10px;min-height:0;padding:8px 8px 8px 14px;border-color:var(--line-strong);border-radius:999px}
.pl-dec-st{flex:0 1 auto;min-width:0;display:flex;align-items:center;gap:9px;margin-right:auto}
.pl-dec-st i{flex:none;width:10px;height:10px;border-radius:50%;background:var(--warn)}
.pl-decide.fait .pl-dec-st i{background:var(--ok)}
.pl-dec-st b{display:block;font-weight:600;font-size:.92rem;line-height:1.2;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.pl-pts{flex:none;display:inline-flex;align-items:center;gap:6px;min-height:40px;padding:0 13px;border:0;border-radius:999px;font-weight:700;font-size:.88rem;cursor:pointer}
.pl-pts b{font-weight:800}
.pl-pts.crit{background:var(--crit-bg);color:var(--crit)}
.pl-pts.warn{background:var(--warn-bg);color:var(--warn)}
.pl-pts:hover{box-shadow:inset 0 0 0 1.5px currentColor}
.pl-dec-b{flex:none;display:flex;align-items:center;gap:8px}
.pl-dec-b .btn{gap:8px;min-height:44px}
.pl-co{display:none}
.btn.pl-autre,.btn.pl-autre:disabled:hover{background:var(--brand-soft);border-color:color-mix(in srgb,var(--brand-v) 45%,transparent);color:var(--brand-strong)}
.btn.pl-autre:hover{border-color:var(--brand-v);color:var(--brand-strong)}
.pl-outils{gap:8px}
.pl-outils .btn{gap:7px}
.btn.danger.pl-sup{margin-left:auto;border-color:transparent}
button.pl-chip{border:0;cursor:pointer}
button.pl-chip:hover{box-shadow:inset 0 0 0 1.5px currentColor}
/* Points à régler */
.pl-rg{display:flex;flex-direction:column;gap:8px;padding:14px;border:1px solid var(--line);border-radius:16px}
.pl-rg.crit{border-color:var(--crit)}
.pl-rg.warn{border-color:var(--warn-line)}
.pl-rg h4{margin:0;font-family:var(--f-display);font-weight:600;font-size:1.04rem}
.pl-rg p{margin:0;color:var(--muted);font-size:.92rem;line-height:1.4}
.pl-rg .pl-cfm-l{margin:0}
/* Les messages passent au-dessus de la barre, jamais dessus */
body:has(#pl-body .pl-decide) .pl-toast{bottom:calc(84px + env(safe-area-inset-bottom,0px))}
@media (max-width:640px){
  /* À côté du bouton rond « Tous les outils » */
  .pl-decide{bottom:calc(14px + env(safe-area-inset-bottom,0px));margin-right:68px;padding:6px;gap:6px}
  .pl-dec-st b{display:none}
  .pl-dec-st{display:none}
  .pl-dec-b{flex:1 1 auto}
  .pl-dec-b .btn{flex:1 1 auto;min-height:44px;padding:0 10px;font-size:.92rem;white-space:nowrap}
  .pl-dec-b .btn.pl-autre{flex:none;width:44px;padding:0}
  .pl-pts{min-height:44px;padding:0 10px}
  .pl-lg{display:none}
  .pl-co{display:inline}
  .btn.pl-valider svg{display:none}
  .btn.danger.pl-sup{margin-left:0}
  body:has(#pl-body .pl-decide) .pl-toast{bottom:calc(76px + env(safe-area-inset-bottom,0px))}
}
/* Bouton qui valide le planning et le partage à l'équipe : le plus visible de la page */
.btn.pl-valider{box-shadow:0 0 0 3px var(--soft)}
/* En-tête de l'onglet Planning : une seule carte, la période, d'où partir, la sortie (docs/DESIGN.md § 6.14) */
.pl-per{display:flex;flex-wrap:wrap;align-items:center;gap:12px 16px;min-width:0;flex:1 1 auto}
.pl-per .pl-nav{flex:0 1 auto;justify-content:flex-start}
.wrap .tool .btn.pl-rep{gap:6px}
.wrap .tool .btn.pl-rep[aria-expanded="true"]{border-color:var(--action);background:var(--action-tint);color:var(--action)}
/* D'où partir : quatre tuiles ; « Générer » est plein quand rien n'est affiché */
.pl-deps{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:12px;margin-top:16px}
.pl-dep{display:flex;align-items:center;gap:12px;min-height:72px;padding:12px 16px;border:1px solid var(--line);border-radius:var(--r-lg);background:var(--surface);color:var(--ink);text-align:left;font:inherit;cursor:pointer}
.pl-dep:hover:not(:disabled){border-color:var(--action);background:var(--action-tint)}
.pl-dep:disabled{opacity:.5;cursor:not-allowed}
.pl-dep i{flex:none;display:grid;place-items:center;width:40px;height:40px;border-radius:var(--r-md);background:var(--action-soft);color:var(--action)}
.pl-dep b{display:block;font-size:var(--fz-lg);line-height:24px;font-weight:700}
.pl-dep small{display:block;color:var(--ink-2);font-size:var(--fz-sm);line-height:16px}
.pl-dep.plein{background:var(--action);border-color:var(--action);color:var(--action-ink)}
.pl-dep.plein:hover:not(:disabled){background:var(--action-strong);border-color:var(--action-strong)}
.pl-dep.plein i{background:color-mix(in srgb,var(--action-ink) 18%,transparent);color:var(--action-ink)}
.pl-dep.plein small{color:var(--action-ink)}
/* Sortie : Paysage | Portrait, Imprimer, PDF, Smartphone, puis en discret ce qui sert moins */
.pl-sortie{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin-top:16px}
.pl-sortie .btn{gap:6px}
.pl-sep{width:1px;align-self:stretch;margin:4px;background:var(--line)}
.wrap .tool .btn.pl-disc{border-color:transparent;background:transparent;color:var(--action);gap:6px}
.wrap .tool .btn.pl-disc:hover:not(:disabled){border-color:transparent;background:var(--action-tint);color:var(--action)}
.wrap .tool .btn.pl-disc.danger{color:var(--crit)}
.wrap .tool .btn.pl-disc.danger:hover:not(:disabled){background:var(--crit-bg);color:var(--crit)}
/* Au-dessus de la grille : Remplir vite à gauche, Annuler, Rétablir et Raccourcis à droite, puis la ligne de rappel */
.pl-edbar{align-items:center}
.pl-edbar .pl-pin{flex:1 1 auto;margin:0;padding:0;border:0;background:none}
.pl-eda{flex:none}
.pl-rappel{margin:8px 0 12px;color:var(--ink-3);font-size:var(--fz-sm);line-height:16px}
/* Horaires proposés (Remplir vite, fenêtre d'une case) : puces du § 6.8, le choix en violet clair, jamais en couleur de famille */
.pl-pre .pl-pill{border-width:1px;border-radius:var(--r-md)}
.pl-pre .pl-pill b{font-size:var(--fz-md);line-height:20px}
.pl-pre .pl-pill small{font-family:var(--font);font-size:var(--fz-sm);line-height:16px;color:var(--ink-2);font-variant-numeric:tabular-nums}
.pl-pre .pl-pill:hover{border-color:var(--action)}
.pl-pre .pl-pill[aria-pressed="true"]{border-color:var(--action);background:var(--action-tint);color:var(--action);box-shadow:inset 0 0 0 .5px var(--action)}
.pl-pre .pl-pill[aria-pressed="true"] small{color:var(--action);opacity:1}
/* Glisser une case ou un jour : l'étiquette qui suit le pointeur, la zone Supprimer, le petit choix au doigt */
html.pl-glisse,html.pl-glisse *{cursor:grabbing!important;-webkit-user-select:none;user-select:none}
html.pl-glisse.pl-dup,html.pl-glisse.pl-dup *{cursor:copy!important}
.pl-etq{position:fixed;left:0;top:0;z-index:130;display:flex;flex-direction:column;gap:2px;padding:8px 14px;border-radius:var(--r-pill);background:var(--ink);color:var(--surface);font-size:var(--fz-md);line-height:20px;font-weight:700;white-space:nowrap;pointer-events:none;box-shadow:var(--shadow-float)}
.pl-etq[hidden],.pl-corb[hidden],.pl-choix[hidden]{display:none}
.pl-etq b{display:inline-flex;align-items:center;gap:6px;font-weight:700}
.pl-etq small{padding-left:22px;font-size:var(--fz-sm);line-height:16px;font-weight:400}
.pl-etq.dupliquer{background:var(--action);color:var(--action-ink)}
.pl-etq.supprimer{background:var(--crit);color:var(--surface)}
.pl-corb{position:fixed;left:50%;bottom:calc(24px + env(safe-area-inset-bottom,0px));transform:translateX(-50%);z-index:120;display:flex;align-items:center;justify-content:center;gap:8px;min-width:240px;min-height:52px;padding:0 24px;border:2px dashed var(--crit);border-radius:var(--r-lg);background:var(--surface);color:var(--crit);font-size:var(--fz-md);font-weight:700;box-shadow:var(--shadow-float)}
.pl-corb.cible{border-style:solid;background:var(--crit-bg)}
body:has(#pl-body .pl-decide) .pl-corb{bottom:calc(84px + env(safe-area-inset-bottom,0px))}
.pl-c,.pl-jh{-webkit-touch-callout:none;touch-action:manipulation}
.pl-c.drop,.pl-c.drop:hover{border:2px dashed var(--action);background:var(--action-tint)}
html.pl-dup .pl-c.drop{border-style:solid}
.pl-jh.drop{outline:2px dashed var(--action);outline-offset:-1px;background:var(--action-tint)}
.pl-c.peint,.pl-c.peint:hover{border-color:var(--action);background:var(--action-tint)}
.pl-choix{position:fixed;left:0;top:0;z-index:130;display:flex;flex-wrap:wrap;gap:8px;max-width:calc(100vw - 16px);padding:8px;border:1px solid var(--line);border-radius:var(--r-lg);background:var(--surface);box-shadow:var(--shadow-float)}
.pl-choix button{display:inline-flex;align-items:center;gap:8px;min-height:48px;padding:0 16px;border:1px solid var(--line-strong);border-radius:var(--r-md);background:var(--surface);color:var(--ink);font:inherit;font-size:var(--fz-lg);font-weight:700;cursor:pointer}
.pl-choix button:hover{border-color:var(--action);background:var(--action-tint)}
.pl-choix .pl-ch-x{border-color:transparent;color:var(--action);font-size:var(--fz-md)}
@media (max-width:640px){.pl-choix button{flex:1 1 0;justify-content:center;padding:0 12px}.pl-choix .pl-ch-x{flex:1 1 100%;min-height:44px}}
.pl-wt{display:none}
/* Grille au téléphone : toute la semaine dans la largeur ; le nom sur sa ligne, puis une case par jour (docs/DESIGN.md § 6.14).
   La grille modifiable (.pl-ed) et la lecture des plannings validés (.pl-vd-tab), vue aussi par l'équipe */
@media (max-width:640px){
  .pl-ed .pl-scroll,.pl-scroll.pl-vd-tab{overflow:visible;padding-bottom:0}
  .pl-vd-tab .pl-grid tr.pl-moi>.who{background:var(--soft);border-radius:var(--r-sm) var(--r-sm) 0 0}
  :is(.pl-ed,.pl-vd-tab) .pl-grid{display:block;width:100%;min-width:0;font-size:var(--fz-sm)}
  :is(.pl-ed,.pl-vd-tab) .pl-grid colgroup{display:none}
  :is(.pl-ed,.pl-vd-tab) .pl-grid thead{display:contents}
  :is(.pl-ed,.pl-vd-tab) .pl-grid tbody{display:block}
  :is(.pl-ed,.pl-vd-tab) .pl-grid tr{display:grid;grid-template-columns:repeat(var(--n,6),minmax(0,1fr))}
  :is(.pl-ed,.pl-vd-tab) .pl-grid th,:is(.pl-ed,.pl-vd-tab) .pl-grid td{display:block;min-width:0;padding:1px}
  :is(.pl-ed,.pl-vd-tab) .pl-grid .tot,:is(.pl-ed,.pl-vd-tab) .pl-grid .pl-tot,:is(.pl-ed,.pl-vd-tab) .pl-grid thead .who{display:none}
  /* La rangée des jours reste sous la barre du haut */
  :is(.pl-ed,.pl-vd-tab) .pl-grid thead tr{position:sticky;top:var(--pl-haut,57px);z-index:3;background:var(--surface);border-bottom:1px solid var(--line)}
  :is(.pl-ed,.pl-vd-tab) .pl-grid thead th{padding:4px 1px;border-bottom:0;font-size:var(--fz-sm);line-height:16px}
  :is(.pl-ed,.pl-vd-tab) .pl-grid thead th b{font-family:var(--font);font-size:var(--fz-lg);line-height:20px;font-weight:700}
  /* Ligne du nom : pastille, nom, poste, puis le total de la semaine à droite */
  :is(.pl-ed,.pl-vd-tab) .pl-grid .who{grid-column:1/-1;position:static;width:auto;padding:12px 2px 4px;border-bottom:0;background:none}
  :is(.pl-ed,.pl-vd-tab) .pl-who{gap:8px}
  :is(.pl-ed,.pl-vd-tab) .pl-who>div{display:flex;align-items:baseline;gap:6px;flex:1 1 auto;min-width:0}
  :is(.pl-ed,.pl-vd-tab) .pl-who b{flex:0 0 auto;max-width:100%;min-width:0;overflow:hidden;font-family:var(--font);font-size:var(--fz-md);line-height:20px;font-weight:700;white-space:nowrap;text-overflow:ellipsis}
  :is(.pl-ed,.pl-vd-tab) .pl-who small{flex:1 1 0;min-width:0;overflow:hidden;color:var(--ink-3);font-size:var(--fz-sm);line-height:16px;white-space:nowrap;text-overflow:ellipsis}
  :is(.pl-ed,.pl-vd-tab) .pl-who .pl-av{width:28px;height:28px;font-size:var(--fz-sm)}
  :is(.pl-ed,.pl-vd-tab) .pl-wt{display:block;flex:none;color:var(--ink-2);font-size:var(--fz-sm);line-height:16px;font-weight:700;font-variant-numeric:tabular-nums;white-space:nowrap}
  :is(.pl-ed,.pl-vd-tab) .pl-wt.up{color:var(--warn)}
  :is(.pl-ed,.pl-vd-tab) .pl-wt.down{color:var(--crit)}
  /* Les cases : horaires en 12 px, à la ligne après le tiret */
  :is(.pl-ed,.pl-vd-tab) .pl-grid td{border-bottom:1px solid var(--line-soft)}
  :is(.pl-ed,.pl-vd-tab) .pl-c{min-height:52px;padding:1px;gap:2px;border-width:1px;border-radius:var(--r-sm)}
  :is(.pl-ed,.pl-vd-tab) .pl-c.man::after{top:2px;right:2px;width:6px;height:6px}
  :is(.pl-ed,.pl-vd-tab) .pl-r{display:block;padding:1px;overflow:hidden;font-family:var(--font);font-size:var(--fz-sm);line-height:16px;font-weight:700;letter-spacing:-.02em;white-space:normal;font-variant-numeric:tabular-nums}
  :is(.pl-ed,.pl-vd-tab) .pl-r i{display:inline-grid;min-width:16px;height:16px;margin-right:2px;vertical-align:top;font-family:var(--font);font-size:var(--fz-sm)}
  :is(.pl-ed,.pl-vd-tab) .pl-rest,:is(.pl-ed,.pl-vd-tab) .pl-abs{padding:2px;font-size:var(--fz-sm);line-height:16px;overflow-wrap:anywhere}
  :is(.pl-ed,.pl-vd-tab) .pl-grid .pl-cov .who{padding-top:8px}
  :is(.pl-ed,.pl-vd-tab) .pl-grid .pl-cov td{padding:2px 1px 6px;font-size:var(--fz-sm);text-align:center}
}
/* Tablette et téléphone : la barre du bas et la zone Supprimer passent au-dessus du dock ; pas de raccourcis clavier */
html[data-ui="tel"] .pl-decide{bottom:calc(104px + env(safe-area-inset-bottom,0px));margin-right:0}
html[data-ui="tab"] .pl-decide{bottom:calc(112px + env(safe-area-inset-bottom,0px))}
html[data-ui="tel"] body:has(#pl-body .pl-decide) .pl-corb,html[data-ui="tel"] body:has(#pl-body .pl-decide) .pl-toast{bottom:calc(172px + env(safe-area-inset-bottom,0px))}
html[data-ui="tab"] body:has(#pl-body .pl-decide) .pl-corb,html[data-ui="tab"] body:has(#pl-body .pl-decide) .pl-toast{bottom:calc(180px + env(safe-area-inset-bottom,0px))}
html:is([data-ui="tel"],[data-ui="tab"]) #pl-body [data-ed="keys"],html:is([data-ui="tel"],[data-ui="tab"]) #pl-body .pl-keys{display:none}
@media (max-width:640px){
  /* Onglets sur une ligne qui défile, plutôt qu'un bloc de trois lignes */
  .pl-bar{flex-direction:column;align-items:stretch}
  .pl-tabs{display:flex;flex-wrap:nowrap;max-width:100%;overflow-x:auto;scrollbar-width:none}
  .pl-tabs::-webkit-scrollbar{display:none}
  .pl-tabs label{flex:none}
  .pl-tabs span{white-space:nowrap;padding:0 14px}
  /* Semaine | Mois et Repartir sur une ligne, la période dessous, sur une ligne */
  .pl-genrow{gap:12px 8px}
  .pl-per{display:contents}
  .pl-per>.vt{order:1;flex:1 1 auto}
  .pl-genrow .pl-rep{order:2;flex:none}
  .pl-per .pl-nav{order:3;flex:1 1 100%;justify-content:space-between}
  .pl-nav b{white-space:nowrap}
  /* Remplir vite : les horaires sur une ligne qui défile */
  .pl-edbar .pl-pin{flex-wrap:nowrap;flex-direction:column;align-items:stretch;min-width:0;width:100%}
  .pl-pin .pl-pre{display:flex;flex-wrap:nowrap;overflow-x:auto;scrollbar-width:none;padding-bottom:2px}
  .pl-pin .pl-pre::-webkit-scrollbar{display:none}
  .pl-pin .pl-pre .pl-pill{flex:none;min-height:44px}
  .pl-wk-t .pl-wk-a{width:100%}
}
/* En-tête d'un jour : se glisse ou se touche pour copier toute la journée */
.pl-jh{position:relative;display:block;padding:2px 0;border-radius:9px;cursor:grab}
.pl-jh:hover{background:var(--soft)}
.pl-jh.dragging{opacity:.4}
.pl-jh.drop,.pl-jh.cible{outline:2px dashed var(--accent);outline-offset:-1px}
.pl-jh.sel{background:var(--soft);outline:2px solid var(--accent);outline-offset:-1px}
.pl-peint .pl-jh{cursor:default}
.btn.pl-ghost.danger{color:var(--crit)}
/* Touches du planning à la main, dans les préférences */
.pl-rang{list-style:none;margin:0;padding:0;display:grid;gap:6px;max-width:460px}
.pl-rang li{display:flex;align-items:center;gap:10px;padding:5px 6px 5px 12px;border-radius:14px;background:var(--surface-2)}
.pl-rang b{flex:1 1 auto;min-width:0;font-weight:600}
.pl-rang-n{flex:none;display:grid;place-items:center;width:26px;height:26px;border-radius:50%;background:var(--accent);color:var(--accent-ink);font-size:.8rem;font-weight:700}
.pl-rang .icon-btn{width:38px;height:38px}
.pl-rang .icon-btn:disabled{opacity:.3;cursor:not-allowed}
@media (pointer:coarse){.pl-rang .icon-btn{width:44px;height:44px}}
.pl-tc{display:flex;flex-direction:column;gap:6px;padding:10px 0;border-top:1px solid var(--line)}
.pl-tc-h{display:flex;flex-wrap:wrap;gap:8px 18px}
.pl-tc.auto .pl-tc-h{display:none}
.pl-tc:not(.auto) .pl-tc-a{display:none}
/* Remplir vite : un horaire posé sur chaque case touchée */
.pl-pin-r{display:inline-flex;align-items:center;gap:5px;min-height:38px;padding:0 8px;border:0;background:transparent;color:var(--strong);font-weight:600;font-size:.86rem;cursor:pointer;text-decoration:underline;text-underline-offset:3px}
.pl-pin{display:flex;flex-wrap:wrap;align-items:center;gap:8px 12px;margin-bottom:12px;padding:10px 12px;border:1px solid var(--line);border-radius:14px;background:var(--surface-2)}
.pl-pin>b{display:inline-flex;align-items:center;gap:6px;font-size:.92rem}
.pl-pin .pl-pre{margin:0}
.pl-pin-h{display:flex;flex-wrap:wrap;gap:8px;align-items:center}
.pl-pin-h label{display:inline-flex;align-items:center;gap:6px;font-weight:600;font-size:.9rem}
.pl-peint .pl-c{cursor:copy}
.pl-wk-a{display:inline-flex;flex-wrap:wrap;gap:6px}
/* Plannings validés */
.pl-vds{display:grid;grid-template-columns:repeat(auto-fill,minmax(250px,1fr));gap:8px;max-height:236px;overflow:auto;margin-top:10px;padding:2px}
.pl-vd{display:flex;align-items:center;justify-content:space-between;gap:8px;min-height:48px;padding:8px 12px;border:1.5px solid var(--line);border-radius:12px;background:transparent;color:var(--ink);text-align:left;cursor:pointer}
.pl-vd b{font-weight:600;font-size:.92rem;line-height:1.25}
.pl-vd:hover{border-color:var(--accent)}
.pl-vd[aria-pressed="true"]{border-color:var(--accent);background:var(--soft)}
.pl-c.lect{cursor:default}
.pl-c.lect:hover{border-color:transparent;background:transparent}
.pl-lect tr.pl-moi>*{background:var(--soft)}
.pl-lect .pl-tot{text-align:center}
/* Au téléphone aussi, la grille de la semaine (docs/DESIGN.md § 6.14) ; la vue jour par jour reste l'image du bouton « Smartphone » */
/* Dupliquer */
.pl-cp-q{display:flex;flex-wrap:wrap;gap:6px;margin-bottom:8px}
.pl-cps{display:grid;grid-template-columns:repeat(auto-fill,minmax(270px,1fr));gap:4px 12px;max-height:230px;overflow:auto;padding:2px}
.pl-cp-l{display:flex;align-items:center;gap:8px;min-height:36px;flex-wrap:wrap}
.pl-cp-l .tag{text-transform:none;letter-spacing:0}
/* Format smartphone : couleurs écrites en clair, l'image ne suit pas le thème de l'écran */
.qr-dlg.pl-dlg.pl-telw{width:min(480px,calc(100vw - 24px))}
.pl-tel-o{display:flex;flex-wrap:wrap;gap:8px;align-items:center;justify-content:space-between}
.pl-tel-o select{flex:1 1 180px;width:auto}
.pl-tel-v{display:flex;flex-direction:column;align-items:center;gap:10px;background:var(--surface-2);border-radius:16px;padding:12px}
.pl-tel-att{display:grid;place-items:center;height:min(62vh,640px);aspect-ratio:9/19.5;border-radius:22px;background:#E9E7EE;color:#5E5A6B;font-weight:600;font-size:.86rem;text-align:center;overflow:hidden}
.pl-tel-att img{display:block;width:100%;height:100%}
.plt{width:100%;display:flex;flex-direction:column;background:#FFFFFF;color:#17141F;font-family:var(--f-body);font-size:13px;line-height:1.25}
.plt.fixe{height:845px;overflow:hidden}
.plt-h{position:relative;flex:none;overflow:hidden;padding:16px 16px 14px;background:linear-gradient(125deg,#1C0B3B 0%,#3E1380 42%,#8E1E8C 78%,#E2491E 112%);color:#FFFFFF}
.plt-h>span.plt-ring{position:absolute;display:block;margin:0;border-radius:50%;border:34px solid #FFFFFF;opacity:.07}
.plt-h>.plt-ring.a{width:250px;height:250px;right:70px;top:-150px}
.plt-h>.plt-ring.b{width:250px;height:250px;right:-90px;top:-110px}
.plt-t{position:relative;display:flex;justify-content:space-between;align-items:center;gap:8px}
.plt-logo{display:block;height:19px;width:auto}
.plt-t em{font-style:normal;font-size:12px;font-weight:700;padding:1px 9px;border-radius:999px;background:rgba(255,255,255,.2)}
.plt-of{position:relative;display:block;margin-top:9px;font-size:12px;font-weight:600;color:#E6D6FB}
.plt-h>b{position:relative;display:block;margin-top:1px;font-family:var(--f-display);font-weight:600;font-size:24px;line-height:1.12;letter-spacing:-.02em}
.plt-h>span{position:relative;display:block;margin-top:3px;font-size:13px;font-weight:600}
.plt-h>span.plt-po{margin-top:0;font-weight:500;color:#E6D6FB}
.plt-st{display:flex;gap:8px;margin-top:12px}
.plt-st{position:relative}.plt-st>div{flex:1 1 0;min-width:0;padding:8px 9px;border-radius:12px;background:rgba(255,255,255,.15)}
.plt-st b{display:block;font-family:var(--f-display);font-weight:600;font-size:19px;line-height:1.1;white-space:nowrap}
.plt-st small{display:block;margin-top:1px;font-size:11px;font-weight:500;color:#EFE4FC}
.plt-b{flex:1 1 auto;min-height:0;display:flex;flex-direction:column;gap:6px;padding:9px 12px;background:#F4F3F7}
.plt-j{flex:1 1 auto;display:flex;flex-direction:column;justify-content:center;padding:6px 10px;border-radius:12px;background:#FFFFFF;border:1px solid #E4E1EA}
.plt-d{display:flex;justify-content:space-between;align-items:baseline;gap:8px;margin-bottom:3px}
.plt-d b{font-family:var(--f-display);font-weight:600;font-size:15px;color:#5B1199}
.plt-d span{font-size:11px;font-weight:600;color:#5E5A6B}
.plt-l{flex:1 1 auto;display:flex;align-items:center;gap:6px;min-height:21px}
.plt-l .n{flex:none;width:86px;font-weight:600;font-size:12px;white-space:nowrap;overflow:hidden}
.plt-l .n i{display:inline-block;margin-left:4px;padding:0 3px;border-radius:4px;background:#F1E8FC;color:#5B1199;font-style:normal;font-size:9px;font-weight:800;line-height:13px;vertical-align:1px}
.plt-l .plt-p{flex:1 1 auto;min-width:40px}
.plt-l .h{flex:none;width:140px;text-align:right;font-weight:700;font-size:11.5px;white-space:pre}
.plt-l .h.lg{font-size:10.5px;letter-spacing:-.02em}
.plt-ax{flex:none;height:13px;padding:0 157px 0 103px;font-size:10px;font-weight:700;color:#5E5A6B}
.plt-ax div{position:relative;height:13px}
.plt-ax span{position:absolute;top:0;transform:translateX(-50%);white-space:nowrap}
.plt-l.vide{color:#6B6778;font-style:italic}
.plt-p{position:relative;height:9px;border-radius:5px;background:#EEEDF2;overflow:hidden}
.plt-p u{position:absolute;top:0;bottom:0;width:1px;background:#D6D3DE}
.plt-p s{position:absolute;top:0;bottom:0;border-radius:4px}
.plt-a{margin:3px 0 0;font-size:11px;font-weight:600;color:#8A5A00}
.solo .plt-b{gap:7px}
.plt-s{flex:1 1 0;min-height:66px;display:flex;align-items:center;gap:12px;padding:8px 12px;border-radius:14px;background:#FFFFFF;border:1px solid #E4E1EA}
.plt-tu{flex:none;width:46px;padding:5px 0;border-radius:11px;background:#F1E8FC;color:#5B1199;text-align:center}
.plt-tu small{display:block;font-size:11px;font-weight:700}
.plt-tu b{display:block;font-family:var(--f-display);font-weight:600;font-size:20px;line-height:1.1}
.plt-sc{flex:1 1 auto;min-width:0}
.plt-sl{display:flex;justify-content:space-between;align-items:baseline;gap:8px}
.plt-sl b{font-weight:700;font-size:14.5px;white-space:pre}
.plt-sl span{font-size:12px;font-weight:700;color:#751BCB;white-space:nowrap}
.plt-sc .plt-p{margin-top:6px}
.plt-sc small{display:block;margin-top:4px;font-size:11px;font-weight:600;color:#5E5A6B}
.plt-s.off{background:#FAF9FC}
.plt-s.off .plt-tu{background:#EEEDF2;color:#6B6778}
.plt-s.off .plt-sl b{font-weight:600;color:#6B6778}
.plt-s.off .plt-sl span{color:#B42318}
.plt-f{flex:none;padding:7px 14px 12px;background:#F4F3F7;font-size:11px;color:#5E5A6B;text-align:center}
.plt-f p{margin:4px 0 0}
/* L'équipe sur une image : tableau dense, couleurs de Fusioon */
.plt.mat{background:#F5F4F8}
.plt-h.c{padding:11px 14px 10px}
.plt-h.c .plt-t b{font-family:var(--f-display);font-weight:600;font-size:19px;line-height:1.1;letter-spacing:-.02em}
.plt-h.c>span{margin-top:2px;font-size:11px;font-weight:600;color:#EFE4FC}
.plt-m{flex:1 1 auto;min-height:0;overflow:hidden;padding:6px 4px 2px}
.plt-m table{width:100%;table-layout:fixed;border-collapse:separate;border-spacing:0;background:#FFFFFF;border:1px solid #E4E1EB;border-radius:12px;overflow:hidden}
.plt-m col.n{width:64px}
.plt-m thead th{height:30px;padding:3px 1px;background:#F1E8FC;color:#5B1199;text-align:center;line-height:1.05;border-bottom:1px solid #E4E1EB}
.plt-m thead th small{display:block;font-size:8.5px;font-weight:700;text-transform:uppercase;letter-spacing:.02em}
.plt-m thead th b{display:block;font-family:var(--f-display);font-weight:600;font-size:12px}
.plt-m thead th i{display:block;font-style:normal;font-size:7px;font-weight:700;color:#C2410C}
.plt-m thead th.fer{background:#FFE9DF;color:#9A2F05}
.plt-m tbody th{padding:2px 3px 2px 6px;text-align:left;vertical-align:middle;border-top:1px solid #EEECF3}
.plt-m tbody th b{display:block;font-size:var(--fn,10px);font-weight:700;line-height:1.15;color:#17141F;white-space:nowrap;overflow:hidden}
.plt-m tbody th i{display:table;margin-top:1px;padding:0 3px;border-radius:3px;background:#F1E8FC;color:#5B1199;font-style:normal;font-size:7px;font-weight:800;line-height:10px}
.plt-m tbody tr:nth-child(even)>*{background:#FBFAFD}
.plt-m tbody tr.moi>*,.plt-m tbody tr.moi:nth-child(even)>*{background:#F4ECFE}
.plt-m td{padding:2px 1px;vertical-align:middle;text-align:center;border-top:1px solid #EEECF3;border-left:1px solid #F1EFF5}

.plt-m td span{display:block;margin:1px 0;padding:1px 3px 1px 1px;border-radius:4px;text-align:center;font-size:var(--f,8.5px);font-weight:700;line-height:1.15;letter-spacing:-.02em;font-variant-numeric:tabular-nums}
.plt-m td span.cpt{background:#F1E8FC;color:#4A0F87;border-left:2px solid #751BCB}
.plt-m td span.rec{background:#FFE9DF;color:#9A2F05;border-left:2px solid #FD5214}
.plt-m td span.aut{background:#FBE4F2;color:#7A1458;border-left:2px solid #B4237F}
.plt-m td span.non{background:#EEEDF2;color:#3F3B4A;border-left:2px solid #8A8597}
.plt-m td em{display:block;font-style:normal;font-size:7.5px;font-weight:700;color:#8A5A00}
.plt.mat .plt-f{background:#F5F4F8;padding:4px 10px 8px;font-size:10px}
/* Le mois de l'équipe : les semaines l'une sous l'autre, les horaires côte à côte, à zoomer */
.plt-m.mois{display:flex;flex-direction:column;gap:2px;padding:4px 3px 2px}
.plt-mw>b{display:block;margin:0 0 1px 3px;font-size:6.5px;font-weight:700;line-height:1.2;color:#5B1199}
.plt-mw.vide p{margin:0;padding:3px 6px;border-radius:6px;background:#FFFFFF;border:1px dashed #C9C4D4;font-size:7px;color:#6B6778}
.plt-m.mois col.n{width:46px}
.plt-m.mois table{border-radius:7px}
.plt-m.mois thead th{height:auto;padding:1px}
.plt-m.mois thead th small,.plt-m.mois thead th b{display:inline;font-size:6px;line-height:1.3}
.plt-m.mois thead th b{margin-left:2px}
.plt-m.mois thead th i{display:none}
.plt-m.mois tbody th{padding:0 2px 0 3px}
.plt-m.mois tbody th i{display:none}
.plt-m.mois td{padding:0 1px;font-size:var(--f,5px);line-height:1}
.plt-m.mois tbody th{font-size:var(--fn,6px);line-height:1}
.plt-m.mois td span{display:inline-block;margin:.5px;padding:0 2px 0 1px;border-left-width:1.5px;border-radius:2px}
.plt-m.mois td em{font-size:var(--f,5px)}
/* Le mois d'une personne : un calendrier */
.plt-cal{flex:1 1 auto;min-height:0;display:flex;flex-direction:column;gap:4px;padding:8px 7px 4px;background:#F5F4F8}
.plt-cal-h{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:4px;text-align:center;font-size:9px;font-weight:700;text-transform:uppercase;color:#5B1199}
.plt-cal-s{flex:1 1 0;display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:4px}
.plt-cal-c{min-width:0;display:flex;flex-direction:column;align-items:stretch;gap:2px;padding:4px 3px;border-radius:9px;background:#FFFFFF;border:1px solid #E4E1EB;text-align:center}
.plt-cal-c b{font-family:var(--f-display);font-weight:600;font-size:13px;line-height:1.1;color:#17141F}
.plt-cal-c span{display:block;padding:1px 3px 1px 1px;border-radius:4px;font-size:8.5px;font-weight:700;line-height:1.2;letter-spacing:-.02em}
.plt-cal-c span.cpt{background:#F1E8FC;color:#4A0F87;border-left:2px solid #751BCB}
.plt-cal-c span.rec{background:#FFE9DF;color:#9A2F05;border-left:2px solid #FD5214}
.plt-cal-c span.aut{background:#FBE4F2;color:#7A1458;border-left:2px solid #B4237F}
.plt-cal-c span.non{background:#EEEDF2;color:#3F3B4A;border-left:2px solid #8A8597}
.plt-cal-c i{font-style:normal;font-size:8px;font-weight:600;color:#8A8597}
.plt-cal-c em{font-style:normal;font-size:8px;font-weight:700;color:#8A5A00}
.plt-cal-c.off{background:#FAF9FC}
.plt-cal-c.ferme{background:#EFEEF3;border-color:transparent}
.plt-cal-c.ferme b{color:#8A8597}
.plt-cal-c.hors{opacity:.45}
.plt.solo.mois .plt-f{padding:4px 10px 8px;font-size:10px}
.pl-tel-m{align-self:flex-start}
.plt.mat .plt-lg{gap:2px 10px}
.plt.mat .plt-lg .q{font-weight:500;color:#6B6778}
.plt-lg{display:flex;flex-wrap:wrap;justify-content:center;gap:3px 12px;font-weight:600}
.plt-lg span{display:inline-flex;align-items:center;gap:5px}
.plt-lg i{display:inline-block;width:12px;height:8px;border-radius:3px}
.plt-lg i.ph{width:auto;height:auto;padding:0 3px;border-radius:4px;background:#F1E8FC;color:#5B1199;font-style:normal;font-size:9px;font-weight:800;line-height:13px}
/* Fenêtre de modification d'une case */
.qr-dlg.pl-dlg{width:min(720px,calc(100vw - 24px));gap:16px}
/* Fenêtre du titulaire d'abord : grande, une ligne par jour, les horaires saisis directement ; l'en-tête et les boutons restent visibles */
.qr-dlg.pl-dlg.pl-wide{width:min(1280px,calc(100vw - 24px));max-height:calc(100vh - 24px);max-height:calc(100dvh - 24px);overflow:hidden;gap:12px}
.pl-tpb{flex:1 1 auto;min-height:0;overflow:auto;display:flex;flex-direction:column;gap:12px;margin:0 -22px;padding:0 22px}
.pl-tpb .lead{margin:0;max-width:none}
.pl-tpn{position:sticky;top:0;z-index:2;display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:10px 16px;padding:2px 0 8px;background:var(--surface)}
.pl-tpts{display:flex;flex-wrap:wrap;gap:8px}
.pl-tpt{display:inline-flex;align-items:center;gap:10px;min-height:52px;padding:6px 16px 6px 10px;border:1.5px solid var(--line-strong);border-radius:14px;background:var(--surface);color:var(--ink);font:inherit;text-align:left;cursor:pointer}
.pl-tpt:hover{border-color:var(--accent)}
.pl-tpt[aria-pressed="true"]{border-color:var(--accent);background:var(--soft);box-shadow:inset 0 0 0 1px var(--accent)}
.pl-tpt b{display:block;font-family:var(--f-display);font-weight:600;font-size:1rem;line-height:1.25}
.pl-tpt small{display:block;color:var(--muted);font-size:.82rem;line-height:1.3}
.pl-tpw{display:flex;flex-wrap:wrap;align-items:center;gap:10px 16px}
.pl-tr{display:grid;grid-template-columns:8.5rem max-content minmax(0,1fr) max-content;align-items:center;gap:8px 16px;padding:12px 0;border-top:1px solid var(--line)}
.pl-trj b{display:block;font-family:var(--f-display);font-weight:600;font-size:1.12rem;line-height:1.25}
.pl-trj small{display:block;color:var(--muted);font-size:.82rem;line-height:1.3}
.pl-trj small.fer{color:var(--crit);font-weight:700}
.pl-trp{display:flex;flex-wrap:wrap;gap:6px}
.pl-trp .pl-pill.sm{min-height:44px;padding:0 13px;font-size:.92rem}
.pl-trr{display:flex;flex-wrap:wrap;align-items:center;gap:8px 18px;min-width:0}
.pl-trg{display:inline-flex;align-items:center;gap:6px;font-weight:700;color:var(--muted)}
.pl-trg .inp{width:5.6rem;min-height:46px;padding:6px 8px;font-family:var(--f-mono);font-size:1.1rem;font-weight:700;color:var(--ink);text-align:center}
.pl-trg .inp::-webkit-calendar-picker-indicator{display:none}
.pl-trg.bad .inp{border-color:var(--crit);background:var(--crit-bg)}
.pl-trc{justify-self:end}
.pl-tra{grid-column:2/-1;display:flex;flex-wrap:wrap;align-items:center;gap:6px 12px;margin:0;color:var(--muted);font-size:.9rem}
.pl-tra .pl-abs,.pl-trl .pl-abs{display:inline-block}
.pl-trl{grid-column:2/-1;display:flex;flex-wrap:wrap;align-items:center;gap:6px 10px;margin:0;color:var(--muted);font-size:.95rem}
.pl-tr.libre .pl-trj{opacity:.65}
.pl-tpf{display:flex;flex-direction:column;gap:10px;padding-top:12px;border-top:1px solid var(--line)}
.pl-tpf #pl-sum:empty{display:none}
@media (max-width:980px){
  .pl-tr{grid-template-columns:minmax(0,1fr) auto}
  .pl-trp,.pl-trr,.pl-tra,.pl-trl{grid-column:1/-1}
  .pl-trj{grid-row:1;grid-column:1}
  .pl-trc{grid-row:1;grid-column:2}
  .pl-trp .pl-pill.sm{flex:1 1 auto;justify-content:center;align-items:center}
}
@media (max-width:760px){
  .qr-dlg.pl-dlg.pl-wide{padding:16px}
  .pl-tpb{margin:0 -16px;padding:0 16px}
  .pl-tpn{position:static}
  .pl-trp{flex-wrap:nowrap;gap:4px}
  .pl-trp .pl-pill.sm{padding:0 6px;font-size:.84rem;white-space:nowrap}
  .pl-tpf .actions{flex-wrap:nowrap}
  .pl-tpf .btn{padding-inline:14px}
  .pl-tpf .btn.primary{flex:1;justify-content:center}
}
.pl-rp{max-width:360px}
/* Fenêtres de Planning : confirmation dans le style du site (animations dans assets/transitions.css) */
.pl-dlg::backdrop,.pl-cfm::backdrop{background:rgba(14,12,19,.48)}
.qr-dlg.pl-cfm{width:min(470px,calc(100vw - 24px));padding:24px;gap:20px;border-radius:24px}
.pl-cfm-top{display:flex;align-items:flex-start;gap:16px}
.pl-cfm-top>div:last-child{flex:1;min-width:0}
.pl-cfm-ic{flex:none;width:52px;height:52px;border-radius:16px;display:grid;place-items:center}
.pl-cfm-ic.crit{background:var(--crit-bg);color:var(--crit)}
.pl-cfm-ic.warn{background:var(--warn-bg);color:var(--warn)}
.pl-cfm-ic.info{background:var(--soft);color:var(--strong)}
.pl-cfm-top b{display:block;font-family:var(--f-display);font-weight:600;font-size:1.22rem;line-height:1.3;margin-top:3px;overflow-wrap:anywhere}
.pl-cfm-top p{margin:6px 0 0;color:var(--muted);line-height:1.5}
.pl-cfm-l{list-style:none;margin:12px 0 0;padding:0;border:1px solid var(--line);border-radius:12px;max-height:38vh;overflow:auto}
.pl-cfm-l li{display:flex;justify-content:space-between;gap:12px;padding:9px 14px;border-top:1px solid var(--line)}
.pl-cfm-l li:first-child{border-top:0}
.pl-cfm-l strong{font-family:var(--f-mono);white-space:nowrap}
.pl-cfm .actions{justify-content:flex-end}
/* Invitations à rejoindre une équipe : une carte par officine quand il y en a plusieurs */
.inv-l{list-style:none;margin:0;padding:0;display:grid;gap:10px;max-height:46vh;overflow:auto}
.inv-l li{padding:14px 16px;border:1px solid var(--line);border-radius:16px;background:var(--surface-2)}
.inv-l b{display:block;font-family:var(--f-display);font-weight:600;font-size:1.05rem;overflow-wrap:anywhere}
.inv-l p{margin:4px 0 10px;color:var(--muted);line-height:1.5}
.pl-cfm .inv-l .actions{justify-content:flex-start}
/* Titre des membres à choisir : une ligne par personne, le choix à droite (dessous sur un petit écran) */
.ti-l{list-style:none;margin:0;padding:0;display:grid;gap:10px;max-height:46vh;overflow:auto}
.ti-l li{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:10px 14px;padding:12px 14px;border:1px solid var(--line);border-radius:16px;background:var(--surface-2)}
.ti-l .of-who b{font-size:1rem}
.ti-f{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:8px}
.ti-f .inp[data-ti-autre]{width:180px;min-height:42px;padding:6px 12px;font-size:.95rem}
.pl-cfm .btn.crit{background:var(--crit);border-color:var(--crit);color:var(--surface);box-shadow:none}
.pl-cfm .btn.crit:hover{filter:brightness(1.08)}
@media (max-width:560px){
  .qr-dlg.pl-cfm{margin:auto auto calc(12px + env(safe-area-inset-bottom,0px));padding:22px 18px 18px}
  .pl-cfm .actions{flex-direction:column;align-items:stretch}
}
@media (prefers-reduced-motion:no-preference){
  .pl-cfm[open] .pl-cfm-ic{animation:pl-pop .3s .05s cubic-bezier(.2,.9,.3,1.5) both}
  .pl-toast:not([hidden]){animation:pl-toast .22s cubic-bezier(.2,.9,.3,1.15) both}
}
/* Sur téléphone, la confirmation monte depuis le bas de l'écran, où elle s'affiche */
@media (prefers-reduced-motion:no-preference) and (max-width:560px){@starting-style{.pl-cfm[open]{transform:translate3d(0,32px,0)}}}
@keyframes pl-pop{from{opacity:0;transform:scale(.4) rotate(-12deg)}to{opacity:1;transform:none}}
@keyframes pl-toast{from{opacity:0;transform:translate(-50%,16px) scale(.96)}to{opacity:1;transform:translateX(-50%)}}
.pl-edh{display:flex;align-items:flex-start;gap:12px}
.pl-edh>.pl-edh-a{flex:none;display:flex;align-items:center;gap:8px}
.pl-edh-a .btn{gap:6px;min-height:40px}
@media (max-width:560px){.pl-edh{flex-wrap:wrap}.pl-edh>.pl-edh-a{order:3;flex:1 1 100%}.pl-edh-a .btn{flex:1 1 auto}}
.pl-edh>div{flex:1;min-width:0}
.pl-edh .pl-av{width:44px;height:44px;font-size:1rem}
.pl-edh b{display:block;font-family:var(--f-display);font-weight:600;font-size:1.3rem;line-height:1.2}
.pl-edh>div>span{display:block;color:var(--muted);font-size:.92rem}
.pl-pre{display:flex;flex-wrap:wrap;gap:8px}
.pl-pill{display:inline-flex;flex-direction:column;align-items:flex-start;justify-content:center;gap:1px;min-height:46px;padding:5px 14px;border-radius:12px;border:1.5px solid var(--line-strong);background:var(--surface);color:var(--ink);font:inherit;text-align:left;cursor:pointer}
.pl-pill b{font-weight:700;font-size:.95rem}
.pl-pill small{font-family:var(--f-mono);font-size:.74rem;color:var(--muted)}
.pl-pill:hover{border-color:var(--accent)}
.pl-pill[aria-pressed="true"]{background:var(--accent);border-color:var(--accent);color:var(--accent-ink)}
.pl-pill[aria-pressed="true"] small{color:inherit;opacity:.85}
.pl-pill.sm{min-height:36px;padding:0 12px;border-radius:999px;font-weight:700;font-size:.85rem}
.pl-pill.sm.t-reception[aria-pressed="true"]{background:var(--p-accent);border-color:var(--p-accent);color:var(--p-ink)}
.pl-pill.sm.t-autre[aria-pressed="true"]{background:var(--y-accent);border-color:var(--y-accent);color:var(--y-ink)}
.pl-pill.sm.t-x[aria-pressed="true"]{background:var(--muted);border-color:var(--muted);color:var(--surface)}
/* Frise de la journée : ouverture en clair, fermeture hachurée, plages à étirer ou à déplacer */
.pl-tl{display:flex;flex-direction:column;gap:4px}
.pl-tl-bar{position:relative;height:58px;border-radius:12px;border:1px solid var(--line);background:repeating-linear-gradient(135deg,var(--surface-2) 0 6px,var(--surface) 6px 12px);cursor:copy;touch-action:none;overflow:hidden}
.pl-tl-open{position:absolute;top:0;bottom:0;background:var(--surface);border-left:1px dashed var(--line-strong);border-right:1px dashed var(--line-strong)}
.pl-tl-r{position:absolute;top:8px;bottom:8px;min-width:10px;border-radius:9px;display:flex;align-items:center;justify-content:center;background:var(--accent);color:var(--accent-ink);font-family:var(--f-mono);font-weight:700;font-size:.8rem;white-space:nowrap;overflow:hidden;cursor:grab;box-shadow:0 6px 14px -8px rgba(0,0,0,.45)}
.pl-tl-r.on{cursor:grabbing;box-shadow:0 0 0 3px color-mix(in srgb,var(--accent) 35%,transparent)}
.pl-tl-r em{font-style:normal;pointer-events:none;padding:0 14px}
.pl-tl-r.t-reception{background:var(--p-accent);color:var(--p-ink)}
.pl-tl-r.t-autre{background:var(--y-accent);color:var(--y-ink)}
.pl-tl-r.t-x{background:var(--muted);color:var(--surface)}
.pl-tl-h{position:absolute;top:0;bottom:0;width:14px;cursor:ew-resize}
.pl-tl-h[data-h="s"]{left:0}.pl-tl-h[data-h="e"]{right:0}
.pl-tl-h::after{content:"";position:absolute;top:28%;bottom:28%;left:5px;width:3px;border-radius:2px;background:currentColor;opacity:.75}
.pl-tl-ticks{position:relative;height:18px;font-size:.72rem;color:var(--muted);font-family:var(--f-mono)}
.pl-tl-ticks span{position:absolute;transform:translateX(-50%);white-space:nowrap}
.pl-tl-ticks span:first-child{transform:none}.pl-tl-ticks span:last-child{transform:translateX(-100%)}
.pl-ranges{display:flex;flex-direction:column;gap:8px;align-items:flex-start}
.pl-rgrow{display:flex;flex-wrap:wrap;align-items:center;gap:8px;width:100%;padding:8px 10px;border:1px solid var(--line);border-radius:12px;background:var(--surface-2)}
.pl-rgrow .inp{width:auto;min-height:42px;font-family:var(--f-mono)}
.pl-rgrow .pl-tags{display:flex;flex-wrap:wrap;gap:6px;flex:1 1 220px}
.pl-dot{width:12px;height:12px;border-radius:50%;background:var(--accent);flex:none}
.pl-dot.t-reception{background:var(--p-accent)}.pl-dot.t-autre{background:var(--y-accent)}.pl-dot.t-x{background:var(--muted)}
.pl-sumk{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.pl-sumk .stat .v{font-size:1.35rem}
.pl-sumk small{color:var(--strong);font-size:.82rem}
.pl-sumk small.up{color:var(--warn)}.pl-sumk small.down{color:var(--crit)}
#pl-sum{display:flex;flex-direction:column;gap:10px}
.pl-okline{display:flex;align-items:center;gap:8px;color:var(--ok);font-weight:700}
.pl-edf{display:flex;flex-wrap:wrap;align-items:center;gap:10px}
.pl-sp{flex:1}
@media (max-width:640px){.pl-edf .pl-sp{display:none}.pl-edf .btn{flex:1 1 auto}.pl-pill{flex:1 1 40%}}
.pl-solde{font-family:var(--f-mono);font-weight:700;font-size:1.6rem;color:var(--strong)}
.pl-solde.neg{color:var(--crit)}
/* Membre de l'équipe : sa cagnotte d'heures, les congés accordés de l'équipe mois par mois */
.pl-cgp{display:flex;flex-wrap:wrap;align-items:baseline;gap:4px 14px;margin:2px 0 4px}
.pl-cgp .pl-solde{margin:0;font-size:2.1rem;line-height:1.1}
.pl-cgp .pl-solde.pos{color:var(--ok)}
.pl-cgp .lead{margin:0}
.pl-cge-m{margin:18px 0 0;color:var(--muted);font-family:var(--f-body);font-size:.8rem;font-weight:700;text-transform:uppercase;letter-spacing:.06em}
.pl-cge .pl-who{flex:1 1 220px}
.pl-cge-d{flex:0 1 auto;min-width:0;text-align:right}
.pl-cge-d b{display:block;font-weight:600;font-size:.95rem;overflow-wrap:anywhere}
.pl-cge-d small{display:block;color:var(--muted);font-size:.84rem}
.pl-cge.moi .pl-who b{color:var(--strong)}
@media (max-width:640px){.pl-cge-d{text-align:left;flex-basis:100%;padding-left:42px}.pl-cge .of-line>.tag{margin-left:42px}}
@media (max-width:760px){.pl-hrow{grid-template-columns:minmax(0,1fr)}.pl-hrow.cont .p2{display:none}.pl-days{grid-template-columns:repeat(2,minmax(0,1fr))}.pl-req{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}.pl-grid .who{width:128px}}
/* Planning imprimé : une semaine par page A4 paysage, couleurs conservées, texte lisible (jamais réduit sous 75 %) */
#print-root .plp{color:#17141F;font-family:var(--f-body);-webkit-print-color-adjust:exact;print-color-adjust:exact}
#print-root .plp-p{display:flex;flex-direction:column;gap:3mm}
#print-root .plp-p+.plp-p{break-before:page;page-break-before:always}
#print-root .plp-h{display:flex;justify-content:space-between;align-items:flex-end;gap:6mm;border-bottom:.7mm solid #4D7C0F;padding-bottom:2mm}
#print-root .plp-h b{display:block;font-family:var(--f-display);font-weight:600;font-size:17pt;line-height:1.15}
#print-root .plp-h span{display:block;font-size:12.5pt;font-weight:700;margin-top:.8mm}
#print-root .plp-h small{font-size:9pt;color:#5E5A6B;text-align:right;line-height:1.45}
#print-root .plp-t{width:100%;border-collapse:collapse;table-layout:fixed;font-size:10pt}
#print-root .plp-t thead{display:table-header-group}
#print-root .plp-t tr{break-inside:avoid;page-break-inside:avoid}
#print-root .plp-t th,#print-root .plp-t td{border:.3mm solid #C9C4D4;padding:1mm 1.2mm;vertical-align:middle;text-align:center}
#print-root .plp-t thead th{background:#ECF5DA;color:#2F4A0C;font-weight:700;font-size:9pt;text-transform:uppercase;letter-spacing:.04em;line-height:1.2;padding:1.5mm 1mm}
#print-root .plp-t thead th b{display:block;font-family:var(--f-display);font-weight:600;font-size:15pt;letter-spacing:0;text-transform:none}
#print-root .plp-t thead th small{display:block;font-size:7.5pt;font-weight:800;text-transform:none;letter-spacing:0;color:#B42318;margin-top:.5mm}
#print-root .plp-t thead th.fer{background:#FDE8E6;color:#B42318}
#print-root .plp-t thead th.hors{background:#F3F2F6;color:#8A8597}
#print-root .plp-t .who{text-align:left;padding-left:2mm}
#print-root .plp-t .who b{display:block;font-family:var(--f-display);font-weight:600;font-size:11.5pt;line-height:1.2}
#print-root .plp-t .who small{display:block;color:#5E5A6B;font-size:8.5pt;line-height:1.25;margin-top:.3mm}
#print-root .plp-t tbody tr:nth-child(even)>*{background:#FAF9FC}
#print-root .plp-t td.cl{background:#EFEEF3!important}
#print-root .plp-r{display:flex;align-items:center;justify-content:center;gap:.8mm;border-radius:1.2mm;padding:.6mm .8mm;margin:.6mm 0;font-weight:700;font-size:10.5pt;letter-spacing:-.01em;line-height:1.2;white-space:nowrap;font-variant-numeric:tabular-nums;background:#EEEDF2;border-left:.8mm solid #8A8597}
#print-root .plp-t.n7 .plp-r{font-size:9.5pt}#print-root .plp-t.n7 .plp-r i{display:none}
#print-root .plp-r i{font-style:normal;font-size:7.5pt;font-weight:800;line-height:1;padding:.5mm .8mm;border-radius:.8mm;background:rgba(255,255,255,.8)}
#print-root .plp-r.t-comptoir{background:#E6F2D2;color:#24390A;border-left-color:#4D7C0F}
#print-root .plp-r.t-reception{background:#FFE8DA;color:#7A2608;border-left-color:#C2410C}
#print-root .plp-r.t-autre{background:#E6E8FD;color:#2E2A78;border-left-color:#4338CA}
#print-root .plp-a{display:block;border:.35mm dashed #E0A93B;background:#FFF2D6;color:#6B4000;border-radius:1.2mm;font-weight:700;font-size:9.5pt;padding:.6mm 1mm;margin:.6mm 0}
#print-root .plp-t td.tt{font-weight:800;font-size:13pt;white-space:nowrap;font-variant-numeric:tabular-nums}
#print-root .plp-t td.tt small{display:block;font-size:8pt;font-weight:600;color:#5E5A6B}
#print-root .plp-t tr.cov>*{background:#F1F0F6!important;color:#3F3B4A;font-weight:700;font-size:10.5pt}
#print-root .plp-f{display:flex;flex-wrap:wrap;gap:1.5mm 5mm;align-items:center;font-size:8.5pt;color:#5E5A6B}
#print-root .plp-f .plp-r,#print-root .plp-f .plp-a{display:inline-flex;margin:0;font-size:9pt}
#print-root .plp em{font-style:normal}
#print-root .plp-t td{overflow:hidden}
#print-root .plp-t tbody tr:not(.cov)>*{height:var(--plp-rh,auto)}
/* Modèle portrait : colonnes étroites, rien ne déborde, les horaires passent à la ligne si une colonne ne suffit pas */
#print-root .plp.por .plp-p{gap:2.5mm}
#print-root .plp.por .plp-h b{font-size:14pt}
#print-root .plp.por .plp-h span{font-size:11pt}
#print-root .plp.por .plp-h small{font-size:8pt}
#print-root .plp.por .plp-t{font-size:8.5pt}
#print-root .plp.por .plp-t th,#print-root .plp.por .plp-t td{padding:.7mm .5mm}
#print-root .plp.por .plp-t thead th{font-size:7.5pt;letter-spacing:0;padding:1.2mm .3mm}
#print-root .plp.por .plp-t thead th b{font-size:12pt}
#print-root .plp.por .plp-t thead th small{font-size:6.5pt}
#print-root .plp.por .plp-t .who{padding-left:1.2mm;overflow-wrap:anywhere}
#print-root .plp.por .plp-t .who b{font-size:9pt}
#print-root .plp.por .plp-t .who small{font-size:7pt}
#print-root .plp.por .plp-r{display:block;white-space:normal;text-align:center;font-size:8.5pt;padding:.6mm .2mm;border-left-width:.6mm}
#print-root .plp.por .plp-t.n7 .plp-r{font-size:8pt}
#print-root .plp.por .plp-a{font-size:7.5pt;padding:.5mm .3mm;overflow-wrap:anywhere}
#print-root .plp.por .plp-t td small{font-size:7.5pt}
#print-root .plp.por .plp-t td.tt{font-size:9.5pt}
#print-root .plp.por .plp-t tr.cov>*{font-size:8.5pt}
#print-root .plp.por .plp-f{font-size:7.5pt}
#print-root .plp.por .plp-f .plp-r{display:inline-flex;font-size:8pt;padding:.4mm 1.2mm}
/* ---------- Communication : fil de l'équipe, sur l'accueil (à côté du planning du jour) et dans le module ---------- */
.cm-home.is-search{display:none!important}
.cm-split{display:grid;grid-template-columns:minmax(0,1fr) minmax(280px,340px);gap:20px;align-items:start}
.cm-aside{position:sticky;top:24px}
.cm-main{gap:14px}
.cm-feed{display:flex;flex-direction:column;gap:12px}
.hm-av.xs{width:24px;height:24px;font-size:.56rem}
/* Écrire : une ligne sur l'accueil, le reste s'ouvre à la saisie */
.cm-new{display:flex;flex-direction:column;gap:12px}
#cm-main .cm-new{padding:18px;border-radius:var(--r-card);background:var(--surface);border:1px solid var(--line);box-shadow:var(--shadow)}
.cm-new-top{display:flex;align-items:flex-start;gap:12px}
.cm-new-top>.hm-av{margin-top:7px}
textarea.inp.cm-ta{min-height:48px;padding:11px 16px;border-radius:18px;resize:none;overflow:hidden;font-size:1.02rem;line-height:1.45}
.cm-new:not(.is-open) .cm-new-more{display:none}
.cm-new-more{display:flex;flex-direction:column;gap:12px;padding-left:46px}
.cm-kinds{display:flex;flex-wrap:wrap;gap:8px}
.cm-kind{position:relative;display:inline-flex}
.cm-kind input{position:absolute;inset:0;margin:0;opacity:0;cursor:pointer}
.cm-kind span{display:inline-flex;align-items:center;gap:7px;min-height:40px;padding:0 14px;border-radius:999px;border:1.5px solid var(--line-strong);color:var(--muted);font-weight:700;font-size:.92rem}
.cm-kind:hover span{border-color:var(--accent)}
.cm-kind input:checked+span{background:var(--soft);border-color:var(--accent);color:var(--strong)}
.cm-kind input:focus-visible+span{outline:2px solid var(--accent);outline-offset:2px}
.cm-opts{display:flex;flex-direction:column;gap:8px}
.cm-o{display:flex;align-items:center;gap:10px}
.cm-o-n{flex:none;width:28px;height:28px;border-radius:50%;display:grid;place-items:center;background:var(--soft);color:var(--strong);font-weight:700;font-size:.85rem}
.cm-o .inp{min-height:44px;font-size:1rem}
.cm-o-x{flex:none;width:38px;height:38px;border:0;border-radius:50%;background:transparent;color:var(--muted);display:grid;place-items:center;cursor:pointer}
.cm-o-x:hover{background:var(--crit-bg);color:var(--crit)}
.cm-o-f{display:flex;flex-wrap:wrap;align-items:center;gap:10px 18px}
.cm-chk{display:inline-flex;align-items:center;gap:8px;font-weight:600;cursor:pointer}
.cm-chk input{width:20px;height:20px;margin:0;accent-color:var(--accent)}
.cm-tip{display:flex;align-items:flex-start;gap:8px;color:var(--muted);font-size:.92rem}
.cm-tip svg{flex:none;margin-top:3px;color:var(--ok)}
.cm-hds{font-size:.9rem}
.cm-hds b{font-size:.95rem}
.cm-new-f{display:flex;flex-wrap:wrap;align-items:center;justify-content:flex-end;gap:10px 14px}
.cm-msg{flex:1 1 220px;color:var(--crit);font-size:.92rem;font-weight:600}
.cm-msg:empty{display:none}
.cm-count{color:var(--muted);font-size:.85rem}
.cm-count:empty{display:none}
.btn.cm-pub{min-height:44px;padding:0 20px}
/* Filtres du module */
.cm-filtres{display:flex;flex-wrap:wrap;gap:8px}
.cm-f{min-height:38px;padding:0 15px;border-radius:999px;border:1.5px solid var(--line);background:var(--surface);color:var(--muted);font-weight:700;font-size:.9rem;cursor:pointer}
.cm-f:hover{border-color:var(--accent);color:var(--strong)}
.cm-f[aria-pressed="true"]{background:var(--accent);border-color:var(--accent);color:var(--accent-ink)}
/* Une publication */
.cm-post{position:relative;display:flex;flex-direction:column;gap:12px;min-width:0;padding:16px 18px;border-radius:20px;background:var(--surface-2);border:1.5px solid transparent}
#cm-main .cm-post{padding:20px 22px;border-radius:var(--r-card);background:var(--surface);border-color:var(--line);box-shadow:var(--shadow)}
.cm-post.is-new{border-color:color-mix(in srgb,var(--accent) 50%,var(--line))}
.cm-post.is-task::before{content:"";position:absolute;left:-1.5px;top:18px;bottom:18px;width:4px;border-radius:0 4px 4px 0;background:var(--warn-line)}
.cm-post.is-done::before{background:var(--ok)}
.cm-post.is-anim{animation:cm-arrive .32s ease both}
/* Tâche faite : un fil aux couleurs du logo, du violet à l'orange, fait le tour du cadre en partant du bouton, puis s'éteint */
.cm-ph{display:flex;align-items:center;gap:12px;min-width:0}
.cm-ph>.hm-av{width:42px;height:42px}
.cm-who{flex:1 1 auto;min-width:0}
.cm-who p{display:flex;flex-wrap:wrap;align-items:center;gap:3px 10px}
.cm-who b{font-family:var(--f-display);font-weight:600;font-size:1.02rem;overflow-wrap:anywhere}
.cm-who small{display:flex;flex-wrap:wrap;align-items:center;gap:2px 8px;color:var(--muted);font-size:.86rem}
.cm-who .hm-new{margin:0}
.cm-chip{display:inline-flex;align-items:center;gap:5px;padding:2px 9px;border-radius:999px;background:var(--soft);color:var(--strong);font-size:.76rem;font-weight:700;white-space:nowrap}
.cm-chip.warn{background:var(--warn-bg);color:var(--warn)}
.cm-chip.ok{background:var(--ok-bg);color:var(--ok)}
.cm-x{flex:none;align-self:flex-start;width:38px;height:38px;border:0;border-radius:50%;background:transparent;color:var(--muted);display:grid;place-items:center;cursor:pointer}
.cm-x:hover{background:var(--crit-bg);color:var(--crit)}
.cm-txt{white-space:pre-wrap;overflow-wrap:anywhere;font-size:1.02rem;line-height:1.55}
.cm-txt a{color:var(--strong);text-decoration:underline;text-underline-offset:2px}
.cm-bar{display:flex;flex-wrap:wrap;align-items:center;gap:4px;margin:0 -8px}
.cm-act{display:inline-flex;align-items:center;gap:7px;min-height:40px;padding:0 12px;border:0;border-radius:999px;background:transparent;color:var(--muted);font-weight:700;font-size:.92rem;cursor:pointer}
.cm-act:hover{background:color-mix(in srgb,var(--ink) 7%,transparent);color:var(--ink)}
.cm-like.is-on,.cm-like.is-on:hover{color:var(--e-accent)}
.cm-like.is-on svg{fill:currentColor}
.cm-like.is-anim svg{animation:cm-coeur .3s ease-out}
.cm-act.sm{min-height:30px;padding:0 8px;gap:5px;font-size:.82rem}
.cm-lk{border:0;background:none;padding:2px 0;color:var(--strong);font:inherit;font-weight:700;font-size:.88rem;cursor:pointer;text-decoration:underline;text-underline-offset:2px;text-decoration-color:color-mix(in srgb,currentColor 35%,transparent)}
.cm-lk:hover{text-decoration-color:currentColor}
/* « C'est fait » : le vert remplit le bouton depuis le doigt, la coche se trace, des éclats jaillissent, la photo rejoint la trace */
.cm-fait{position:relative;isolation:isolate;margin-left:auto;display:inline-flex;align-items:center;gap:9px;min-height:42px;padding:0 18px 0 8px;border-radius:999px;border:1.5px solid color-mix(in srgb,var(--ok) 50%,var(--line));background:var(--surface);color:var(--ok);font-weight:700;cursor:pointer;-webkit-tap-highlight-color:transparent}
.cm-fait:hover{border-color:var(--ok);background:var(--ok-bg)}
.cm-fait-bg{position:absolute;inset:-1.5px;z-index:-1;border-radius:inherit;background:var(--ok);opacity:0}
.cm-fait-ico{position:relative;flex:none;width:26px;height:26px;border-radius:50%;display:grid;place-items:center;border:2px solid currentColor}
.cm-fait-ico path{stroke-dasharray:24;stroke-dashoffset:24}
.cm-fait.is-on,.cm-fait.is-on:hover{color:var(--surface);border-color:var(--ok);background:var(--surface)}
.cm-fait.is-on .cm-fait-bg{opacity:1}
.cm-fait.is-on:hover .cm-fait-bg{filter:brightness(1.08)}
.cm-fait.is-on .cm-fait-ico{border-color:transparent;background:color-mix(in srgb,var(--surface) 24%,transparent)}
.cm-fait.is-on .cm-fait-ico path{stroke-dashoffset:0}
.cm-fait.is-anim .cm-fait-bg{animation:cm-remplir .5s cubic-bezier(.2,.7,.2,1) both}
.cm-fait.is-anim .cm-fait-ico path{animation:cm-trait .35s .22s ease-out both}
.cm-fait.is-anim .cm-fait-t{animation:cm-monte .35s .12s ease-out both}
.cm-burst{display:none}
/* Trace : qui a fait la tâche, avec sa photo et l'heure */
.cm-trace{display:flex;flex-wrap:wrap;align-items:center;gap:8px 10px;padding:9px 12px;border-radius:14px;background:var(--ok-bg)}
.cm-trace-t{display:inline-flex;align-items:center;gap:6px;color:var(--ok);font-weight:700;font-size:.88rem}
.cm-trace ul{list-style:none;margin:0;padding:0;display:flex;flex-wrap:wrap;gap:6px}
.cm-done{display:inline-flex;align-items:center;gap:7px;padding:3px 11px 3px 3px;border-radius:999px;background:var(--surface);font-size:.88rem}
.cm-done small{color:var(--muted);font-size:.8rem}
.cm-done.is-pop{animation:cm-monte .2s .1s ease-out both}
/* Sondage */
.cm-poll{display:flex;flex-direction:column;gap:8px}
.cm-opt{position:relative;isolation:isolate;overflow:hidden;display:flex;align-items:center;gap:10px;min-height:48px;padding:8px 14px;border-radius:14px;border:1.5px solid var(--line-strong);background:var(--surface);color:var(--ink);font:inherit;font-weight:600;text-align:left;cursor:pointer}
.cm-opt:hover:not(:disabled){border-color:var(--accent)}
.cm-opt:disabled{cursor:default}
.cm-opt-bar{position:absolute;z-index:-1;left:0;top:0;bottom:0;width:var(--w);background:color-mix(in srgb,var(--accent) 13%,transparent);transition:width .4s ease}
.cm-opt.is-top .cm-opt-bar{background:color-mix(in srgb,var(--accent) 24%,transparent)}
.cm-poll.is-anim .cm-opt-bar{animation:cm-barre .35s ease-out both}
.cm-opt-r{flex:none;width:22px;height:22px;border-radius:50%;border:2px solid var(--line-strong);display:grid;place-items:center;color:var(--accent-ink)}
.cm-opt-r.sq{border-radius:6px}
.cm-opt.is-mine{border-color:var(--accent)}
.cm-opt.is-mine .cm-opt-r{background:var(--accent);border-color:var(--accent)}
.cm-opt-t{flex:1 1 auto;min-width:0;overflow-wrap:anywhere}
.cm-opt-n{flex:none;min-width:3.2em;text-align:right;font-family:var(--f-mono);font-weight:700;font-size:.9rem;color:var(--strong)}
.cm-pile{flex:none;display:inline-flex;align-items:center;padding-left:6px}
.cm-pile .hm-av{margin-left:-6px;box-shadow:0 0 0 2px var(--surface)}
.cm-pile-n{margin-left:5px;color:var(--muted);font-size:.78rem;font-weight:700}
.cm-poll-f{display:flex;flex-wrap:wrap;align-items:center;gap:4px 14px;color:var(--muted);font-size:.86rem}
/* Réponses */
.cm-reps{display:flex;flex-direction:column;gap:10px;padding-top:12px;border-top:1px solid var(--line)}
.cm-prev{align-self:flex-start}
.cm-rep{display:flex;align-items:flex-start;gap:10px}
.cm-rep.is-anim{animation:cm-arrive .3s ease both}
.cm-rb{flex:1 1 auto;min-width:0;display:flex;flex-direction:column;gap:2px}
.cm-bub{align-self:flex-start;max-width:100%;padding:8px 14px;border-radius:4px 16px 16px 16px;background:var(--surface)}
#cm-main .cm-bub{background:var(--surface-2)}
.cm-bub b{display:block;font-size:.9rem}
.cm-bub .cm-txt{font-size:.97rem;line-height:1.45}
.cm-rf{display:flex;flex-wrap:wrap;align-items:center;gap:0 10px;padding-left:6px;color:var(--muted);font-size:.82rem}
.cm-rf .cm-lk{font-size:.82rem}
.cm-rform{display:flex;align-items:flex-end;gap:10px}
textarea.inp.cm-ri{flex:1 1 auto;min-height:42px;padding:9px 14px;border-radius:20px;resize:none;overflow:hidden;font-size:.98rem;line-height:1.4}
.cm-send{flex:none;width:42px;height:42px;border:0;border-radius:50%;background:var(--accent);color:var(--accent-ink);display:grid;place-items:center;cursor:pointer}
.cm-send:hover{filter:brightness(1.08)}
/* Vide, suite, nouveautés */
.cm-empty{display:flex;align-items:center;gap:14px;padding:16px 18px;border-radius:18px;border:1.5px dashed var(--line-strong);color:var(--strong)}
.cm-empty svg{flex:none}
#cm-main .cm-empty{background:var(--surface)}
.cm-plus{display:flex;justify-content:center}
.cm-neuf{display:inline-block;margin-left:10px;padding:2px 10px;border-radius:999px;background:var(--accent);color:var(--accent-ink);font-family:var(--f-body);font-size:.76rem;font-weight:700;letter-spacing:.02em;vertical-align:3px}
/* Colonne du module : réglage du titulaire et rappels */
.cm-pubs{display:flex;flex-direction:column;gap:8px}
.cm-pub-d>summary{display:flex;flex-wrap:wrap;align-items:baseline;gap:4px 10px;cursor:pointer;list-style:none;padding-right:22px;position:relative}
.cm-pub-d>summary::-webkit-details-marker{display:none}
.cm-pub-d>summary::after{content:"";position:absolute;right:4px;top:10px;width:9px;height:9px;border-right:2px solid var(--muted);border-bottom:2px solid var(--muted);transform:rotate(45deg)}
.cm-pub-d[open]>summary::after{top:14px;transform:rotate(-135deg)}
.cm-pub-d>summary:focus-visible{outline:3px solid var(--accent);outline-offset:4px;border-radius:6px}
.cm-pub-d>summary .ct{margin:0}
.cm-pub-cur{color:var(--muted);font-size:.9rem;font-weight:600}
.cm-ul{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:12px}
.cm-ul li{display:flex;align-items:flex-start;gap:10px;color:var(--muted);font-size:.94rem}
.cm-ul li b{color:var(--ink)}
.cm-ul svg{flex:none;margin-top:2px;color:var(--strong)}
.cm-ul li.is-warn{padding:10px 12px;border-radius:14px;background:var(--warn-bg);color:var(--ink)}
.cm-ul li.is-warn svg{color:var(--warn)}
/* Pastille des publications non lues, sur l'icône de l'outil (barre latérale et fenêtre des outils) */
.ri[data-open="com"] .ri-ico,.mi[data-open="com"] .mi-ico{position:relative}
.ri-badge{position:absolute;top:-5px;right:-7px;min-width:18px;height:18px;padding:0 5px;border-radius:999px;background:var(--brand-o);color:#fff;font:700 .66rem/18px var(--f-body);text-align:center;box-shadow:0 0 0 2px var(--surface)}
.cm-toast{padding:12px 18px}
@keyframes cm-arrive{from{opacity:0;transform:translateY(-8px)}to{opacity:1;transform:none}}
@keyframes cm-coeur{0%{transform:scale(.7)}60%{transform:scale(1.15)}100%{transform:scale(1)}}
@keyframes cm-remplir{from{clip-path:circle(0 at var(--x,26px) var(--y,50%))}to{clip-path:circle(160% at var(--x,26px) var(--y,50%))}}
@keyframes cm-trait{from{stroke-dashoffset:24}to{stroke-dashoffset:0}}
@keyframes cm-monte{from{opacity:0;transform:translateY(7px)}to{opacity:1;transform:none}}
@keyframes cm-barre{from{width:0}}
/* Mentions « @ » : la personne citée ressort dans le texte, en couleur pleine quand c'est vous */
.cm-at{padding:0 4px;border-radius:6px;background:var(--soft);color:var(--strong);font-weight:700;white-space:nowrap}
.cm-at.is-me{background:var(--accent);color:var(--accent-ink)}
.cm-kind-at{display:inline-flex;align-items:center;gap:7px;min-height:40px;padding:0 14px;border-radius:999px;border:1.5px dashed var(--line-strong);background:transparent;color:var(--muted);font:inherit;font-weight:700;font-size:.92rem;cursor:pointer}
.cm-kind-at:hover{border-color:var(--accent);color:var(--strong)}
.cm-mt{position:fixed;z-index:95;display:flex;flex-direction:column;gap:2px;padding:6px;border-radius:16px;background:var(--surface);border:1px solid var(--line);box-shadow:var(--shadow-lg)}
.cm-mt-h{padding:4px 10px 2px;color:var(--muted);font-size:.74rem;font-weight:700;letter-spacing:.06em;text-transform:uppercase}
.cm-mt-o{display:flex;align-items:center;gap:10px;min-height:42px;padding:6px 10px;border-radius:11px;cursor:pointer}
.cm-mt-o b{flex:1 1 auto;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-weight:600}
.cm-mt-o small{flex:none;color:var(--muted);font-size:.8rem}
.cm-mt-o:hover,.cm-mt-o[aria-selected="true"]{background:var(--soft);color:var(--strong)}
.cm-mt .hm-av.xs{width:28px;height:28px;font-size:.62rem}
/* Épinglée : en tête du fil, teintée, avec qui l'a épinglée */
.cm-post.is-pin{border-color:color-mix(in srgb,var(--accent) 40%,var(--line));background:color-mix(in srgb,var(--soft) 55%,var(--surface-2))}
#cm-main .cm-post.is-pin{border-color:color-mix(in srgb,var(--accent) 40%,var(--line));background:color-mix(in srgb,var(--soft) 45%,var(--surface))}
.cm-pin-l{display:flex;align-items:center;gap:6px;margin-bottom:-4px;color:var(--strong);font-size:.78rem;font-weight:700;letter-spacing:.05em;text-transform:uppercase}
.cm-x.cm-pin:hover{background:var(--soft);color:var(--strong)}
.cm-x.cm-pin.is-on{background:var(--soft);color:var(--accent)}
.cm-post.is-pinning .cm-pin-l svg{animation:cm-monte .2s ease-out}
/* Publication ou réponse ouverte depuis une notification : un halo le temps de la repérer */
.cm-post.is-flash,.cm-rep.is-flash .cm-bub{animation:cm-halo 1.8s ease-out}
.cm-extra{display:flex;flex-direction:column;gap:8px;padding-bottom:14px;border-bottom:1.5px dashed var(--line-strong)}
.cm-extra>p{display:flex;align-items:center;gap:8px;color:var(--muted);font-size:.88rem}
.cm-extra>p span{flex:1 1 auto}
/* Cloche : barre du compte sur grand écran, barre du haut sur smartphone */
.nt-m{flex:none;position:relative;width:54px;min-height:54px;border:0;border-radius:999px;background:color-mix(in srgb,var(--ink) 6%,transparent);color:var(--ink);display:grid;place-items:center;cursor:pointer}
.nt-m .ri-badge{top:7px;right:7px}
/* Panneau des notifications */
.qr-dlg.nt-dlg{width:min(440px,calc(100vw - 24px));height:min(760px,calc(100vh - 24px));max-height:none;padding:20px 0 0;gap:0;overflow:hidden}
.nt-dlg>.qr-head{padding:0 20px 12px}
.nt-bar{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:8px;padding:0 20px 12px;border-bottom:1px solid var(--line)}
.nt-f{display:flex;gap:6px}
.nt-f button{min-height:36px;padding:0 14px;border-radius:999px;border:1.5px solid var(--line);background:var(--surface);color:var(--muted);font:inherit;font-weight:700;font-size:.88rem;cursor:pointer}
.nt-f button:hover{border-color:var(--accent);color:var(--strong)}
.nt-f button[aria-pressed="true"]{background:var(--accent);border-color:var(--accent);color:var(--accent-ink)}
.nt-body{flex:1 1 auto;min-height:0;overflow:auto;padding:4px 10px 12px}
.nt-sec h4{padding:12px 10px 6px;color:var(--muted);font-family:var(--f-body);font-size:.76rem;font-weight:700;letter-spacing:.06em;text-transform:uppercase}
.nt-sec ul{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:2px}
.nt-it{width:100%;display:flex;align-items:center;gap:12px;padding:10px;border:0;border-radius:14px;background:transparent;color:var(--ink);font:inherit;text-align:left;cursor:pointer}
.nt-it:hover{background:var(--surface-2)}
.nt-it.is-unread{background:color-mix(in srgb,var(--soft) 70%,transparent)}
.nt-it.is-unread:hover{background:var(--soft)}
.nt-av{position:relative;flex:none}
.nt-av>.hm-av{width:44px;height:44px}
.nt-g{position:absolute;right:-4px;bottom:-4px;width:22px;height:22px;border-radius:50%;display:grid;place-items:center;color:#fff;box-shadow:0 0 0 2px var(--surface)}
.g-mention{background:#0369A1}.g-reponse{background:#4338CA}.g-like{background:#E11D48}.g-fait{background:#15803D}.g-vote{background:#A16207}.g-epingle{background:#751BCB}
.g-conge_demande{background:#0F766E}.g-conge_acceptee{background:#15803D}.g-conge_refusee,.g-conge_retiree{background:#B91C1C}
.g-like svg{fill:currentColor}
.nt-tx{flex:1 1 auto;min-width:0;display:flex;flex-direction:column;gap:2px;font-size:.95rem;line-height:1.4;overflow-wrap:anywhere}
.nt-tx q,.cm-toast q{color:var(--muted)}
.nt-tx small{color:var(--muted);font-size:.82rem}
.nt-it.is-unread .nt-tx small{color:var(--strong);font-weight:700}
.nt-dot{flex:none;width:10px;height:10px;border-radius:50%;background:var(--accent)}
.nt-vide{display:flex;flex-direction:column;align-items:center;gap:10px;padding:40px 24px;color:var(--muted);text-align:center}
.nt-foot{display:flex;justify-content:center;padding:12px 20px;border-top:1px solid var(--line)}
.cm-toast>span{min-width:0}
/* ---------- Liste de tâches (Communication) ---------- */
/* Onglets du module : fil de l'équipe, liste de tâches */
.cm-tabs{display:flex;width:max-content;max-width:100%;gap:4px;margin:0 0 18px;padding:4px;border-radius:999px;background:var(--surface-2);border:1px solid var(--line)}
.cm-tabs button{display:inline-flex;align-items:center;gap:8px;min-height:40px;padding:0 18px;border:0;border-radius:999px;background:transparent;color:var(--muted);font:inherit;font-weight:700;font-size:.95rem;white-space:nowrap;cursor:pointer}
.cm-tabs button:hover{color:var(--ink)}
.cm-tabs button[aria-selected="true"]{background:var(--surface);color:var(--strong);box-shadow:0 1px 2px rgba(0,0,0,.08),0 4px 12px -6px rgba(0,0,0,.18)}
.cm-tabs button:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
/* Réglages en onglets : une seule colonne, seules les cartes de l'onglet ouvert sont affichées */
#panel-reglages[data-rg] .of-split{grid-template-columns:minmax(0,1fr);max-width:860px}
#panel-reglages #rg-tabs{margin-bottom:0}
#panel-reglages[data-rg="compte"] [data-rgt]:not([data-rgt="compte"]),#panel-reglages[data-rg="officine"] [data-rgt]:not([data-rgt="officine"]),#panel-reglages[data-rg="equipe"] [data-rgt]:not([data-rgt="equipe"]){display:none}
#panel-reglages[data-rg="equipe"] .of-split>.stack:not([data-rgt]){display:none}
.cm-tab-n{min-width:20px;height:20px;padding:0 6px;border-radius:999px;background:var(--brand-o);color:#fff;font-size:.72rem;line-height:20px;text-align:center}
/* Confier une tâche : intitulé, personne, jour, précisions */
.tk-new{gap:14px}
.tk-new .hm-h{min-height:0}
.tk-ti{min-height:48px;font-size:1.02rem}
.tk-lab{display:block;margin:0 0 7px;color:var(--muted);font-size:.78rem;font-weight:700;letter-spacing:.06em;text-transform:uppercase}
.tk-lab small{font-size:inherit;font-weight:600;letter-spacing:0;text-transform:none}
.tk-a2{display:flex;align-items:flex-start;gap:8px;margin-top:9px;color:var(--strong);font-size:.88rem;font-weight:600}
.tk-a2 svg{flex:none;margin-top:1px}
.tk-qui .cm-pile{padding-left:6px}
.tk-qui .cm-pile .hm-av{width:24px;height:24px;font-size:.56rem}
.tk-ppl{display:flex;flex-wrap:wrap;gap:8px}
.tk-p{position:relative;display:inline-flex;min-width:0}
.tk-p input{position:absolute;inset:0;margin:0;opacity:0;cursor:pointer}
.tk-p span{display:inline-flex;align-items:center;gap:8px;min-height:40px;padding:3px 14px 3px 4px;border-radius:999px;border:1.5px solid var(--line-strong);font-weight:600;font-size:.92rem}
.tk-p .hm-av{width:30px;height:30px;font-size:.64rem}
.tk-p:hover span{border-color:var(--accent)}
.tk-p input:checked+span{background:var(--soft);border-color:var(--accent);color:var(--strong);box-shadow:inset 0 0 0 1px var(--accent)}
.tk-p input:focus-visible+span{outline:2px solid var(--accent);outline-offset:2px}
.tk-quand{display:flex;flex-wrap:wrap;align-items:center;gap:8px}
.tk-quand .tk-lab{margin:0}
.tk-j{min-height:40px;padding:0 15px;border-radius:999px;border:1.5px solid var(--line-strong);background:var(--surface);color:var(--muted);font:inherit;font-weight:700;font-size:.9rem;cursor:pointer}
.tk-j:hover{border-color:var(--accent);color:var(--strong)}
.tk-j[aria-pressed="true"]{background:var(--soft);border-color:var(--accent);color:var(--strong)}
.tk-quand .sd-date,.tk-quand input[type="date"],.tk-quand select{width:auto;min-height:40px}
.tk-det>summary{display:inline-flex;align-items:center;gap:6px;color:var(--strong);font-weight:700;font-size:.92rem;cursor:pointer;list-style:none}
.tk-det>summary::-webkit-details-marker{display:none}
.tk-det>summary:focus-visible{outline:2px solid var(--accent);outline-offset:3px;border-radius:6px}
.tk-det textarea{display:block;width:100%;margin-top:8px}
.tk-hds{display:flex;align-items:flex-start;gap:8px;color:var(--muted);font-size:.86rem}
.tk-hds svg{flex:none;margin-top:1px;color:var(--warn)}
.tk-hds b{color:var(--ink)}
/* Barre : à faire / faites, personne */
.tk-bar{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:10px}
.tk-sel select.inp{width:auto;max-width:100%;min-height:40px;padding-top:0;padding-bottom:0;font-weight:600}
/* Groupes : en retard, aujourd'hui, demain, plus tard */
.tk-list{display:flex;flex-direction:column;gap:20px}
.tk-g{display:flex;flex-direction:column;gap:8px}
.tk-g>h3{display:flex;align-items:center;gap:8px;margin:0 0 0 4px;color:var(--muted);font-family:var(--f-body);font-size:.78rem;font-weight:700;letter-spacing:.06em;text-transform:uppercase}
.tk-g>h3 span{padding:1px 8px;border-radius:999px;background:var(--surface-2);color:var(--ink);letter-spacing:0}
.tk-g.is-late>h3{color:var(--crit)}
.tk-g.is-late>h3 span{background:var(--crit-bg);color:var(--crit)}
.tk-items{display:flex;flex-direction:column;gap:8px}
/* Une tâche : case ronde, intitulé, personne, jour, commentaires */
.tk-it{position:relative;display:flex;align-items:flex-start;gap:14px;min-width:0;padding:14px 16px;border-radius:18px;background:var(--surface);border:1.5px solid var(--line)}
.tk-it.is-late{border-color:color-mix(in srgb,var(--crit) 32%,var(--line))}
.tk-it.is-new{border-color:color-mix(in srgb,var(--accent) 60%,var(--line))}
.tk-it.is-done{background:var(--surface-2);border-color:transparent}
.tk-it.is-arrive{animation:cm-arrive .32s ease both}
.tk-chk{flex:none;width:30px;height:30px;margin-top:-1px;padding:0;border-radius:50%;border:2px solid var(--line-strong);background:var(--surface);color:#fff;display:grid;place-items:center;cursor:pointer;transition:border-color .15s,background-color .15s}
.tk-chk:hover{border-color:var(--ok);background:var(--ok-bg)}
.tk-chk path{stroke-dasharray:24;stroke-dashoffset:24}
.tk-chk:hover path{stroke-dashoffset:0;stroke:var(--ok)}
.tk-chk[aria-pressed="true"]{border-color:var(--ok);background:var(--ok)}
.tk-chk[aria-pressed="true"] path{stroke-dashoffset:0;stroke:#fff}
.tk-chk:focus-visible{outline:3px solid var(--accent);outline-offset:2px}
.tk-it.is-anim .tk-chk{animation:tk-pop .4s cubic-bezier(.2,.9,.3,1.4)}
.tk-it.is-anim .tk-chk path{animation:cm-trait .3s .08s ease-out both}
.tk-it.is-anim .tk-t{animation:tk-barre .4s .1s ease-out both}
.tk-b{flex:1 1 auto;min-width:0;display:flex;flex-direction:column;gap:6px}
.tk-t{font-weight:600;font-size:1.04rem;line-height:1.4;overflow-wrap:anywhere}
.tk-t .hm-new{background:var(--soft);color:var(--strong)}
.tk-it.is-done .tk-t{color:var(--muted);text-decoration:line-through;text-decoration-color:color-mix(in srgb,var(--muted) 70%,transparent)}
.tk-d{color:var(--muted);font-size:.94rem;line-height:1.45;white-space:pre-wrap;overflow-wrap:anywhere}
.tk-d a{color:var(--strong);text-decoration:underline}
.tk-m{display:flex;flex-wrap:wrap;align-items:center;gap:6px 14px;color:var(--muted);font-size:.86rem}
.tk-m>span{display:inline-flex;align-items:center;gap:6px;min-width:0}
.tk-qui{color:var(--ink);font-weight:600}
.tk-qui .hm-av{width:24px;height:24px;font-size:.56rem}
.tk-ech{font-weight:700}
.tk-ech.is-auj{color:var(--strong)}
.tk-ech.is-late{color:var(--crit)}
.tk-ok{color:var(--ok);font-weight:700}
.tk-acts{display:flex;flex-wrap:wrap;align-items:center;gap:2px;margin:0 -8px -6px}
.tk-acts .cm-act.sm{min-height:34px}
.tk-acts .tk-x:hover{background:var(--crit-bg);color:var(--crit)}
.tk-dot{width:8px;height:8px;border-radius:50%;background:var(--brand-o)}
.tk-coms{display:flex;flex-direction:column;gap:10px;margin-top:6px;padding-top:12px;border-top:1px solid var(--line)}
.tk-coms .cm-bub{background:var(--surface-2)}
.tk-it.is-done .tk-coms .cm-bub{background:var(--surface)}
.tk-hint{color:var(--muted);font-size:.88rem}
.tk-edit{display:flex;flex-direction:column;gap:10px}
.tk-edit-f{display:flex;flex-wrap:wrap;align-items:center;justify-content:flex-end;gap:8px}
.tk-it.is-flash{animation:cm-halo 1.8s ease-out}
#tk-main .cm-empty{background:var(--surface)}
/* Colonne : la journée de l'équipe en chiffres, puis les rappels */
.tk-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.tk-stat{display:flex;flex-direction:column;gap:4px;min-width:0;padding:10px 12px;border-radius:14px;background:var(--surface-2)}
.tk-stat b{font-family:var(--f-display);font-size:1.6rem;font-weight:600;line-height:1}
.tk-stat span{color:var(--muted);font-size:.8rem;font-weight:600;line-height:1.25}
.tk-stat.is-late b{color:var(--crit)}
.tk-stat.is-ok b{color:var(--ok)}
/* Pastille du bandeau de l'accueil : les tâches du jour */
.hm-tk{display:inline-flex;align-items:center;gap:8px;min-width:0;max-width:100%;min-height:28px;padding:3px 12px 3px 3px;border-radius:999px;border:1px solid rgba(255,255,255,.26);background:rgba(255,255,255,.1);color:#fff;font:inherit;font-weight:700;font-size:.86rem;cursor:pointer}
.hm-tk:hover{background:rgba(255,255,255,.2);border-color:rgba(255,255,255,.45)}
.hm-tk:focus-visible{outline:3px solid #fff;outline-offset:2px}
.hm-tk i{flex:none;display:grid;place-items:center;min-width:22px;height:22px;padding:0 6px;border-radius:999px;background:rgba(255,255,255,.2);font-style:normal;font-weight:800;font-size:.78rem}
.hm-tk.is-on i{background:var(--brand-o);box-shadow:0 0 0 3px rgba(253,82,20,.28)}
.hm-tk span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.hm-tk em{font-style:normal;color:#FFC7B0}
/* Fenêtre « Mes tâches » : ajout d'une ligne pour soi, puis ses tâches à cocher */
.qr-dlg.td-dlg{width:min(380px,calc(100vw - 24px))}
.td-body{gap:14px}
.td-add{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:8px}
.td-add .inp{min-height:42px}
.td-add .cm-send{width:42px;height:42px}
.td-j{grid-column:1/-1;display:flex;flex-wrap:wrap;align-items:center;gap:6px}
.td-j .tk-j{min-height:32px;padding:0 12px;font-size:.84rem}
.td-lock{display:inline-flex;align-items:center;gap:5px;margin-left:auto;color:var(--muted);font-size:.8rem;font-weight:600}
.td-add .cm-msg{grid-column:1/-1}
.td-list{display:flex;flex-direction:column;gap:12px}
.td-g h4{margin:0 0 4px;padding:0 4px;color:var(--muted);font-family:var(--f-body);font-size:.74rem;font-weight:700;letter-spacing:.06em;text-transform:uppercase}
.td-g.is-late h4{color:var(--crit)}
.td-g ul{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:2px}
.td-it{display:flex;align-items:flex-start;gap:10px;padding:6px;border-radius:12px}
.td-it:hover{background:var(--surface-2)}
.td-it .tk-chk{width:26px;height:26px;margin-top:1px}
.td-t{flex:1 1 auto;min-width:0;display:flex;flex-direction:column;gap:2px;padding:2px 0;border:0;background:none;color:var(--ink);font:inherit;text-align:left;cursor:pointer}
.td-t:focus-visible{outline:2px solid var(--accent);outline-offset:2px;border-radius:6px}
.td-t b{font-weight:600;font-size:.95rem;line-height:1.35;overflow-wrap:anywhere}
.td-t b .hm-new{background:var(--soft);color:var(--strong)}
.td-t small{display:flex;flex-wrap:wrap;align-items:center;gap:2px 6px;color:var(--muted);font-size:.8rem}
.td-t small i{font-style:normal}
.td-t small svg{margin-right:-2px}
.td-it.is-late .td-t small{color:var(--crit)}
.td-it.is-done .td-t b{color:var(--muted);text-decoration:line-through}
.td-it.is-anim .tk-chk{animation:tk-pop .4s cubic-bezier(.2,.9,.3,1.4)}
.td-it.is-anim .tk-chk path{animation:cm-trait .3s .08s ease-out both}
.td-it.is-arrive{animation:cm-arrive .3s ease both}
.td-vide{display:flex;flex-direction:column;align-items:center;gap:8px;padding:16px 10px;color:var(--muted);text-align:center;font-size:.9rem}
.td-vide svg{color:var(--ok)}
/* « Toute l'équipe » : coche tout le monde d'un clic dans le formulaire de tâche */
.tk-tous{display:inline-flex;align-items:center;gap:6px;min-height:34px;margin:0 0 8px 10px;padding:0 13px;border-radius:999px;border:1.5px solid var(--line-strong);background:var(--surface);color:var(--ink);font:inherit;font-weight:700;font-size:.88rem;cursor:pointer;vertical-align:middle}
.tk-tous:hover{border-color:var(--accent);color:var(--strong)}
.tk-tous[aria-pressed="true"]{border-color:var(--accent);background:var(--soft);color:var(--strong)}
/* Formulaire « Confier une tâche » replié en une ligne (2026-11-10) : la liste passe avant. Il se déplie dès qu'on y
   clique ou qu'un titre est saisi (personnes, jour, précisions, rappel « aucune donnée patient », bouton). */
.tk-new:not(:focus-within):not(:has(.tk-ti:not(:placeholder-shown)))>:not(.tk-ti){display:none}
.tk-new:not(:focus-within):not(:has(.tk-ti:not(:placeholder-shown))){padding-block:14px}
/* Carte « À faire aujourd'hui » de l'accueil : mêmes lignes que la fenêtre « Mes tâches », à cocher sur place */
#home-taches{gap:10px}
#home-taches .td-g+.td-g{margin-top:6px}
#home-taches .td-it{padding:7px 6px}
#home-taches .td-t b{font-size:1rem}
#home-taches .td-t small{font-size:.86rem}
.ht-vide{display:flex;align-items:center;gap:10px;margin:0;color:var(--muted)}
.ht-vide svg{flex:none;color:var(--ok)}
.ht-eq{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:8px 12px;padding-top:10px;border-top:1px solid var(--line);color:var(--muted);font-size:.92rem}
.ht-eq b{color:var(--ink)}
.ht-eq em{font-style:normal;font-weight:700;color:var(--crit)}
/* Entrée « Tâches » de la barre de gauche : ouvre la liste de tâches de Communication */
.ri[data-taches] .ri-badge{position:static;margin-left:auto;box-shadow:none}
html[data-rail="mini"] .ri[data-taches] .ri-badge{position:absolute;top:0;right:6px;margin:0}
/* La pastille est le dernier enfant de « Tâches » : son libellé n'est plus span:last-child, on le vise donc directement
   (sinon il dépassait de la barre réduite et n'était plus tronqué) */
.ri[data-taches]>.ri-ico+span{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
html[data-rail="mini"] .ri[data-taches]>.ri-ico+span{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.tk-perso{color:var(--strong);font-weight:700}
@media (prefers-reduced-motion:reduce){.td-it,.td-it *{animation:none!important}}
@keyframes tk-pop{0%{transform:scale(.8)}55%{transform:scale(1.18)}100%{transform:scale(1)}}
@keyframes tk-barre{from{text-decoration-color:transparent}}
@media (prefers-reduced-motion:reduce){.tk-it,.tk-it *{animation:none!important;transition:none!important}}
@keyframes cm-halo{0%,30%{box-shadow:0 0 0 3px var(--accent)}100%{box-shadow:0 0 0 3px transparent}}
@media (prefers-reduced-motion:reduce){.cm-post,.cm-post *{animation:none!important;transition:none!important}.cm-post.is-fil::after{display:none}}
@media (max-width:1020px){.cm-split{grid-template-columns:minmax(0,1fr)}.cm-aside{position:static}}
@media screen and (min-width:481px) and (max-width:1099.98px) and (hover:hover) and (pointer:fine){.cm-split{grid-template-columns:minmax(0,1fr)}.cm-aside{position:static}}
@media (max-width:640px){
  .cm-new-more{padding-left:0}
  .cm-post{padding:14px}
  #cm-main .cm-post{padding:16px}
  #cm-main .cm-new{padding:14px}
  .cm-bar{margin:0 -6px}
  .cm-act{padding:0 10px}
  .cm-fait{padding-right:14px}
  .cm-opt-n{min-width:2.8em}
  .cm-tabs{width:100%}
  .cm-tabs button{flex:1 1 0;justify-content:center;padding:0 10px}
  .tk-it{gap:12px;padding:12px 14px}
  .tk-bar>*{flex:1 1 100%}
  .tk-sel select.inp{width:100%}
  .tk-stat b{font-size:1.35rem}
}

/* ---- Poste partagé : écran de verrouillage et choix du code à 4 chiffres (assets/poste.js) ---- */
.pv{--accent:var(--brand-v);--accent-ink:var(--brand-ink);--strong:var(--brand-strong);--soft:var(--brand-soft);
  width:min(760px,calc(100vw - 24px));max-height:calc(100dvh - 24px);padding:0;border:1px solid var(--line);border-radius:var(--r-lg);
  background:var(--surface);color:var(--ink);box-shadow:var(--shadow-lg);font-family:var(--f-body);font-size:1rem;overflow:auto}
.pv::backdrop{background:rgba(14,12,19,.5)}
.pv.pv-lock::backdrop{background:var(--bg)}
.pv-in{display:flex;flex-direction:column;gap:18px;padding:26px 28px 22px;outline:none}
.pv-top{display:flex;flex-wrap:wrap;align-items:center;gap:8px 12px}
.pv-top img{width:40px;height:40px;flex:none}
.pv-ou{display:flex;flex-direction:column;min-width:160px;flex:1}
.pv-poste{font-family:var(--f-display);font-weight:600;font-size:1.08rem;letter-spacing:-.01em}
.pv-off{color:var(--muted);font-size:.9rem}
.pv-cx{flex:none;padding:5px 12px;border-radius:999px;background:var(--surface-2);border:1px solid var(--line);color:var(--muted);font-size:.84rem;font-weight:700}
.pv h2{margin:0;font-family:var(--f-display);font-weight:600;font-size:1.55rem;letter-spacing:-.02em;line-height:1.15}
.pv-msg{margin:0;padding:12px 16px;border-radius:var(--r-md);border-left:5px solid var(--brand-v);background:var(--brand-soft);color:var(--ink)}
.pv-msg.is-warn{border-left-color:var(--warn-line);background:var(--warn-bg)}
.pv-liste{display:flex;flex-direction:column;gap:14px}
.pv-grille{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:10px}
.pv-m{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;min-height:136px;padding:16px 10px;border-radius:var(--r-md);
  border:1.5px solid var(--line-strong);background:var(--surface);color:var(--ink);font:inherit;text-align:center;cursor:pointer}
.pv-m:hover{border-color:var(--brand-v)}
.pv-m.is-der{border-color:var(--brand-v);background:var(--brand-soft);box-shadow:inset 0 0 0 1px var(--brand-v)}
.pv-m b{font-family:var(--f-display);font-weight:600;font-size:1rem;line-height:1.2}
.pv-m small{color:var(--muted);font-size:.84rem}
.pv-m.is-sans .pv-av{opacity:.55}
.pv-av{width:56px;height:56px;flex:none;border-radius:50%;display:grid;place-items:center;overflow:hidden;background:var(--brand-soft);color:var(--brand-strong);
  font-family:var(--f-display);font-weight:700;font-size:1.05rem}
.pv-m.is-der .pv-av{background:var(--surface)}
.pv-av img{width:100%;height:100%;object-fit:cover}
.pv-attente{margin:0;color:var(--muted)}
.pv-code{display:flex;flex-direction:column;align-items:center;gap:12px;text-align:center}
.pv-retour{align-self:flex-start;display:inline-flex;align-items:center;gap:6px;min-height:44px;padding:0 12px 0 6px;border:0;border-radius:999px;
  background:none;color:var(--brand-strong);font:inherit;font-weight:700;cursor:pointer}
.pv-retour:hover{background:var(--brand-soft)}
.pv-qui{display:flex;flex-direction:column;align-items:center;gap:6px}
.pv-qui b{font-family:var(--f-display);font-weight:600;font-size:1.1rem}
.pv-intro{margin:0;max-width:440px;color:var(--muted)}
.pv-pts{display:flex;gap:16px;margin:4px 0}
.pv-pts i{width:16px;height:16px;border-radius:50%;border:2px solid var(--line-strong);transition:background .12s,border-color .12s}
.pv-pts i.on{background:var(--brand-v);border-color:var(--brand-v)}
.pv-err{margin:0;min-height:1.5em;max-width:460px;color:var(--crit);font-weight:700}
.pv-pave{display:grid;grid-template-columns:repeat(3,76px);gap:10px}
.pv-pave button{height:62px;border-radius:var(--r-md);border:1.5px solid var(--line-strong);background:var(--surface-2);color:var(--ink);
  font-family:var(--f-mono);font-weight:700;font-size:1.5rem;cursor:pointer;display:grid;place-items:center}
.pv-pave button:hover{border-color:var(--brand-v)}
.pv-pave button:active{transform:scale(.97)}
.pv.is-occupe .pv-pave{opacity:.5;pointer-events:none}
.pv-pied{display:flex;flex-wrap:wrap;gap:10px;justify-content:space-between;align-items:center;padding-top:14px;border-top:1px solid var(--line)}
.pv-pied .btn{min-height:44px;padding:0 18px}
@media (prefers-reduced-motion:no-preference){
  .pv-pts.is-faux{animation:pv-faux .32s ease}
  @keyframes pv-faux{20%,60%{transform:translateX(-8px)}40%,80%{transform:translateX(8px)}}
}
@media (max-width:560px){
  .pv-in{padding:20px 16px 16px}
  .pv-grille{grid-template-columns:repeat(auto-fill,minmax(130px,1fr))}
  .pv-pave{grid-template-columns:repeat(3,68px)}
}
@media print{.pv{display:none!important}}
/* Réglages : postes partagés et code de poste */
.pc-ici{display:flex;flex-direction:column;gap:10px;padding:14px 16px;border-radius:var(--r-md);background:var(--surface-2);border:1px solid var(--line)}
.pc-ici .pf-g{margin:0}
.pc-liste{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:6px}
.pc-liste li{display:flex;align-items:center;gap:12px;flex-wrap:wrap;padding:10px 12px;border-radius:11px;border:1px solid var(--line)}
.pc-liste li>span{flex:1;min-width:180px;display:flex;flex-direction:column}
.pc-liste small{color:var(--muted)}
.pc-liste .btn{min-height:40px;padding:0 14px;font-size:.9rem}
/* ---------- Premiers pas : premiers réglages (une question par écran) ----------
   À gauche, la carte du compte et le cachet de l'officine se remplissent au fil des réponses ; à droite, l'écran en cours.
   Sur téléphone, plein écran et sans la colonne de gauche. */
.qr-dlg.pp-dlg{width:min(1040px,calc(100vw - 24px));height:min(700px,calc(100dvh - 24px));max-height:none;padding:0;gap:0;overflow:hidden;border-radius:26px;grid-template-columns:minmax(0,380px) minmax(0,1fr)}
.qr-dlg.pp-dlg[open]{display:grid}
.pp-dlg::backdrop{background:rgba(14,8,28,.72)}
.pp-art{position:relative;isolation:isolate;overflow:hidden;display:flex;flex-direction:column;gap:18px;padding:28px 26px;color:#fff;background:#1C0B3B}
.pp-art::before{content:"";position:absolute;inset:0;z-index:-1;background:radial-gradient(90% 70% at 0% 0%,#5B1CB0 0,rgba(91,28,176,0) 70%),radial-gradient(80% 60% at 100% 100%,#FD5214 0,rgba(253,82,20,0) 70%),radial-gradient(70% 60% at 90% 30%,#A3208F 0,rgba(163,32,143,0) 70%)}
.pp-ring{position:absolute;z-index:-1;width:300px;height:300px;border-radius:50%;border:40px solid #fff;opacity:.06;pointer-events:none}
.pp-ring-v{left:-120px;bottom:-110px}.pp-ring-o{left:60px;bottom:-170px}
.pp-marque{display:flex;align-items:center;gap:10px;font-family:var(--f-display);font-weight:600;font-size:1rem;letter-spacing:.01em}
.pp-marque img{border-radius:50%;background:#fff;padding:3px}
.pp-carte{display:flex;flex-direction:column;align-items:center;text-align:center;gap:3px;padding:24px 18px 20px;border-radius:22px;background:rgba(255,255,255,.1);border:1px solid rgba(255,255,255,.2);box-shadow:var(--shadow-float)}
.pp-carte .hm-av{width:84px;height:84px;font-size:1.6rem;margin-bottom:10px;box-shadow:0 0 0 4px rgba(255,255,255,.22)}
.pp-nom{font-family:var(--f-display);font-weight:600;font-size:1.3rem;line-height:1.2;overflow-wrap:anywhere}
.pp-nom.vide{opacity:.55}
.pp-carte small{color:rgba(255,255,255,.82);font-size:.92rem;font-weight:600}
.pp-carte .pp-rp{font-family:var(--f-mono);font-size:.84rem;color:rgba(255,255,255,.7)}
/* Le cachet, comme sur les fiches imprimées : papier blanc dans les deux thèmes */
.pp-cachet{display:flex;flex-direction:column;gap:2px;padding:14px 16px;border-radius:14px;background:var(--paper);color:var(--paper-ink);border:2px dashed #C9C4D4;font-size:.86rem;line-height:1.35;transform:rotate(-1.2deg);box-shadow:none}
.pp-cachet b{font-family:var(--f-display);font-weight:600;font-size:.98rem}
.pp-cachet small{margin-top:6px;color:var(--paper-muted);font-size:.74rem;letter-spacing:.06em;text-transform:uppercase;font-weight:700}
.pp-suivi{list-style:none;margin:auto 0 0;padding:0;display:flex;flex-direction:column;gap:6px}
.pp-suivi li{display:flex;align-items:center;gap:10px;font-weight:600;font-size:.93rem;color:rgba(255,255,255,.6)}
.pp-suivi li i{width:22px;height:22px;flex:none;border-radius:50%;display:grid;place-items:center;border:2px solid rgba(255,255,255,.35);color:transparent}
.pp-suivi li.ici{color:#fff}
.pp-suivi li.ici i{border-color:#fff;box-shadow:0 0 0 4px rgba(255,255,255,.16)}
.pp-suivi li.fait{color:rgba(255,255,255,.88)}
.pp-suivi li.fait i{background:#fff;border-color:#fff;color:#5B1199}
.pp-main{display:flex;flex-direction:column;min-width:0;min-height:0;background:var(--surface)}
.pp-top{display:flex;align-items:center;gap:14px;padding:18px 26px 0}
.pp-back{width:42px;height:42px;flex:none;display:grid;place-items:center;border-radius:50%;border:1.5px solid var(--line-strong);background:var(--surface);color:var(--ink);cursor:pointer}
.pp-back:hover{border-color:var(--brand-v);color:var(--brand-strong)}
.pp-back.off{visibility:hidden}
.pp-bar{flex:1;height:6px;border-radius:999px;background:var(--line);overflow:hidden}
.pp-bar i{display:block;height:100%;width:0;border-radius:inherit;background:var(--grad);transition:width .3s var(--tr-ease,ease)}
.pp-count{min-width:56px;text-align:right;color:var(--muted);font-weight:700;font-size:.88rem;font-variant-numeric:tabular-nums}
.pp-sl{flex:1;min-height:0;overflow:auto;overscroll-behavior:contain;display:flex;flex-direction:column;gap:16px;padding:26px 40px 20px}
.pp-sl h1{font-size:clamp(1.6rem,2.6vw,2.15rem);letter-spacing:-.02em;line-height:1.15;outline:none}
.pp-sl .eyebrow{margin-bottom:-8px}
.pp-sub{color:var(--muted);font-size:1.05rem;max-width:56ch}
.pp-sub b{color:var(--ink)}
.pp-note{display:flex;align-items:center;gap:8px;color:var(--muted);font-size:.93rem}
.pp-note svg{flex:none;color:var(--brand-v)}
.pp-err{min-height:1.4em;color:var(--crit);font-weight:700;font-size:.95rem}
.pp-err:empty{min-height:0}
.pp-msg{font-weight:600;font-size:.95rem}
.pp-msg:empty{display:none}
.pp-sl .inp[aria-invalid="true"]{border-color:var(--crit);box-shadow:0 0 0 3px var(--crit-bg)}
.pp-g1,.pp-g2,.pp-g-adr{display:grid;gap:12px 14px}
.pp-g2{grid-template-columns:repeat(2,minmax(0,1fr))}
.pp-g-adr{grid-template-columns:minmax(76px,1fr) 4fr}
.pp-g-ville{grid-template-columns:minmax(110px,1.3fr) 3fr}
.pp-f .lab{margin-bottom:5px}
.pp-quoi{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.pp-quoi li{display:flex;align-items:center;gap:12px;padding:12px 14px;border-radius:var(--r-md);background:var(--surface-2);border:1px solid var(--line)}
.pp-quoi b{display:block;font-weight:700}
.pp-quoi small{display:block;color:var(--muted);font-size:.88rem}
.pp-li-ic{width:38px;height:38px;flex:none;display:grid;place-items:center;border-radius:12px;background:var(--brand-soft);color:var(--brand-strong)}
/* Choix en pastilles : sexe, taille du texte */
.pp-sx,.pp-fs{border:0;margin:0;padding:0;display:flex;flex-direction:column;gap:8px;min-width:0}
.pp-pills{display:flex;flex-wrap:wrap;gap:10px}
.pp-pills label{position:relative}
.pp-pills input{position:absolute;inset:0;width:100%;height:100%;margin:0;opacity:0;cursor:pointer}
.pp-pills span{display:inline-flex;align-items:center;gap:10px;min-height:48px;padding:0 20px;border-radius:999px;border:1.5px solid var(--line-strong);background:var(--surface);font-weight:700}
.pp-pills input:checked+span{border-color:var(--brand-v);background:var(--brand-soft);color:var(--brand-strong);box-shadow:inset 0 0 0 1px var(--brand-v)}
.pp-pills input:focus-visible+span{outline:3px solid var(--brand-v);outline-offset:2px}
.pp-aa{font-style:normal;font-family:var(--f-display);font-weight:600;line-height:1}
.pp-aa-n{font-size:.95rem}.pp-aa-l{font-size:1.15rem}.pp-aa-xl{font-size:1.38rem}
/* Photo */
.pp-photo{display:flex;align-items:center;gap:28px;flex-wrap:wrap}
.pp-pic{position:relative;padding:0;border:0;background:none;border-radius:50%;cursor:pointer}
.pp-pic .hm-av{width:132px;height:132px;font-size:2.4rem;box-shadow:0 0 0 5px var(--brand-soft)}
.pp-pic.drop .hm-av{box-shadow:0 0 0 5px var(--brand-v)}
.pp-pic-ed{position:absolute;right:4px;bottom:4px;width:40px;height:40px;border-radius:50%;display:grid;place-items:center;background:var(--brand-v);color:var(--brand-ink);box-shadow:0 0 0 3px var(--surface)}
.pp-photo-a{flex:1;min-width:220px;display:flex;flex-direction:column;gap:10px}
/* RPPS */
.pp-rpps{display:flex;align-items:center;gap:14px;max-width:440px}
.pp-xl{min-height:60px;font-size:1.5rem;font-family:var(--f-mono);letter-spacing:.12em}
.pp-rpps-n{flex:none;font-weight:700;color:var(--muted);font-variant-numeric:tabular-nums}
.pp-rpps-n.ok{color:var(--ok)}
/* Favoris */
.pp-fav{display:flex;flex-direction:column;gap:12px}
.pp-fav fieldset{border:0;margin:0;padding:0;min-width:0}
.pp-fav legend{padding:0;margin-bottom:8px;font-size:.78rem;letter-spacing:.1em;text-transform:uppercase;color:var(--muted);font-weight:700}
.pp-fav-l{display:flex;flex-wrap:wrap;gap:8px}
.pp-tool{position:relative;display:inline-flex;align-items:center;gap:10px;min-height:44px;padding:0 12px 0 5px;border-radius:999px;border:1.5px solid var(--line-strong);background:var(--surface);font-weight:700;cursor:pointer}
.pp-tool input{position:absolute;inset:0;width:100%;height:100%;margin:0;opacity:0;cursor:pointer}
.pp-tool-ic{width:34px;height:34px;flex:none;display:grid;place-items:center;border-radius:50%;background:var(--soft);color:var(--strong)}
.pp-tool-ok{width:20px;height:20px;display:grid;place-items:center;border-radius:50%;border:2px solid var(--line-strong);color:transparent}
.pp-tool:has(input:checked){border-color:var(--accent);background:var(--soft);box-shadow:inset 0 0 0 1px var(--accent)}
.pp-tool:has(input:checked) .pp-tool-ok{background:var(--accent);border-color:var(--accent);color:var(--accent-ink)}
.pp-tool:has(input:focus-visible){outline:3px solid var(--accent);outline-offset:2px}
.pp-tool.off{opacity:.5}
.pp-tool.off input{cursor:not-allowed}
/* Thème : trois aperçus de fenêtre */
.pp-th{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.pp-th-o{position:relative;display:flex;flex-direction:column;gap:8px;padding:10px;border-radius:18px;border:1.5px solid var(--line-strong);background:var(--surface);cursor:pointer}
.pp-th-o input{position:absolute;inset:0;width:100%;height:100%;margin:0;opacity:0;cursor:pointer}
.pp-th-o:has(input:checked){border-color:var(--brand-v);box-shadow:inset 0 0 0 1px var(--brand-v);background:var(--brand-soft)}
.pp-th-o:has(input:focus-visible){outline:3px solid var(--brand-v);outline-offset:2px}
.pp-th-n{font-weight:700;text-align:center}
.pp-th-p{display:block;aspect-ratio:16/10;border-radius:12px;overflow:hidden}
.pp-mw-2{display:grid;grid-template-columns:1fr 1fr;height:100%}
.pp-mw{position:relative;display:block;height:100%;background:#F5F4F8;border:1px solid #E4E1EB}
.pp-mw-2 .pp-mw{border-radius:0}
.pp-th-p>.pp-mw{border-radius:12px}
.pp-mw>b{position:absolute;left:0;right:0;top:0;height:16%;background:linear-gradient(100deg,#751BCB,#B4237F 52%,#FD5214)}
.pp-mw>i{position:absolute;left:7%;top:26%;bottom:8%;width:22%;border-radius:5px;background:#E9E5F1}
.pp-mw>span{position:absolute;left:34%;right:7%;top:26%;bottom:8%;display:flex;flex-direction:column;gap:7%}
.pp-mw>span i{flex:1;border-radius:5px;background:#fff;border:1px solid #E4E1EB}
.pp-mw.dk{background:#0E0C13;border-color:#2A2635}
.pp-mw.dk>i{background:#1E1A28}
.pp-mw.dk>span i{background:#17141F;border-color:#2A2635}
/* Fin : ce qui est enregistré */
.pp-rec{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.pp-rec li{display:flex;gap:10px;align-items:flex-start;padding:10px 12px;border-radius:var(--r-md);border:1px solid var(--line);background:var(--surface-2);min-width:0}
.pp-rec li>span:first-child{width:24px;height:24px;flex:none;display:grid;place-items:center;border-radius:50%;background:var(--ok-bg);color:var(--ok)}
.pp-rec li.vide>span:first-child{background:var(--surface);border:1.5px dashed var(--line-strong);color:var(--muted)}
.pp-rec b{display:block;font-size:.93rem}
.pp-rec small{display:block;color:var(--muted);font-size:.88rem;overflow-wrap:anywhere}
.pp-suite{display:flex;align-items:center;gap:14px;padding:14px 16px;border-radius:var(--r-md);background:var(--brand-soft);color:var(--brand-strong)}
.pp-suite b{display:block}
.pp-suite small{display:block;color:var(--ink);opacity:.8}
.pp-suite-ic{width:42px;height:42px;flex:none;display:grid;place-items:center;border-radius:50%;background:var(--brand-v);color:var(--brand-ink)}
.pp-suite-ic svg{fill:currentColor}
.pp-act{display:flex;align-items:center;gap:10px;padding:14px 26px 18px 40px;border-top:1px solid var(--line)}
.pp-act [data-pp="suivant"]{margin-left:auto;min-width:170px}
.pp-act [data-pp="passer"]{order:0}
.pp-link{border-color:transparent;background:none;color:var(--muted);padding:0 12px}
.pp-link:hover{color:var(--ink);border-color:transparent}
.pp-hint{margin-left:auto;color:var(--muted);font-size:.88rem}
.pp-hint:not([hidden])+[data-pp="suivant"]{margin-left:0}
.pp-hint kbd{font-family:var(--f-mono);font-size:.82rem;padding:2px 7px;border-radius:7px;border:1px solid var(--line-strong);background:var(--surface-2)}
@media (prefers-reduced-motion:no-preference){
  .pp-sl{animation:pp-in var(--tr-in,.22s) var(--tr-ease,ease)}
  .pp-sl[data-e]{animation-name:pp-in}
  @keyframes pp-in{from{opacity:0;transform:translate3d(14px,0,0)}}
}
@media (max-width:860px){
  .qr-dlg.pp-dlg{grid-template-columns:minmax(0,1fr)}
  .pp-art{display:none}
}
@media (max-width:640px){
  .qr-dlg.pp-dlg{width:100vw;height:100dvh;max-width:none;max-height:none;margin:0;border:0;border-radius:0}
  .pp-top{padding:14px 16px 0}
  .pp-sl{padding:20px 16px 16px;gap:14px}
  .pp-act{padding:12px 16px calc(12px + env(safe-area-inset-bottom));flex-wrap:wrap}
  .pp-act [data-pp="suivant"]{flex:1 0 100%;order:5;min-width:0}
  .pp-g2,.pp-quoi,.pp-rec{grid-template-columns:minmax(0,1fr)}
  .pp-th{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
  .pp-th-o{padding:6px;border-radius:14px}
  .pp-pic .hm-av{width:104px;height:104px}
}

/* ---------- Visite guidée : l'écran réel, assombri autour de l'élément montré ---------- */
dialog.vg-dlg{position:fixed;inset:0;width:100vw;height:100vh;max-width:none;max-height:none;margin:0;padding:0;border:0;background:transparent;overflow:hidden;color:var(--ink)}
dialog.vg-dlg::backdrop{background:transparent}
.vg-trou{position:absolute;left:50%;top:50%;width:0;height:0;border-radius:16px;box-shadow:0 0 0 200vmax rgba(12,6,24,.66);pointer-events:none}
.vg-trou::after{content:"";position:absolute;inset:-3px;border-radius:19px;padding:3px;background:var(--grad);-webkit-mask:linear-gradient(#000 0 0) content-box,linear-gradient(#000 0 0);-webkit-mask-composite:xor;mask-composite:exclude}
.vg-centre .vg-trou{background:rgba(12,6,24,.66)}
.vg-centre .vg-trou::after{opacity:0}
.vg-carte{position:absolute;left:50%;top:50%;width:min(380px,calc(100vw - 24px));display:flex;flex-direction:column;gap:10px;padding:18px 20px 16px;border-radius:20px;background:var(--surface);border:1px solid var(--line);box-shadow:var(--shadow-float)}
.vg-carte.vg-large{width:min(500px,calc(100vw - 24px));padding:24px 26px 20px;gap:12px}
.vg-carte.vg-liste{width:min(460px,calc(100vw - 24px))}
.vg-haut{display:flex;align-items:center;justify-content:space-between;gap:10px}
.vg-n{font-size:.78rem;letter-spacing:.1em;text-transform:uppercase;color:var(--brand-strong);font-weight:700}
.vg-ic{width:44px;height:44px;display:grid;place-items:center;border-radius:50%;background:var(--grad);color:#fff}
.vg-ic svg{stroke:#fff}
.vg-x{width:36px;height:36px;display:grid;place-items:center;border-radius:50%;border:0;background:none;color:var(--muted);cursor:pointer}
.vg-x:hover{background:var(--surface-2);color:var(--ink)}
.vg-carte h2{font-size:1.25rem}
.vg-large h2{font-size:1.55rem}
.vg-carte p{color:var(--muted);font-size:1rem}
.vg-l{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:8px}
.vg-l li{display:flex;gap:10px;align-items:flex-start;font-size:.95rem;color:var(--muted)}
.vg-l b{color:var(--ink)}
.vg-l-ic{width:30px;height:30px;flex:none;display:grid;place-items:center;border-radius:9px;background:var(--brand-soft);color:var(--brand-strong)}
.vg-pied{display:flex;align-items:center;gap:8px;margin-top:4px}
.vg-pied .btn{min-height:44px;padding:0 18px}
.vg-pied .btn.primary{margin-left:auto}
.vg-pied .vg-prec{padding:0;width:44px}
.vg-pts{display:flex;gap:5px;flex-wrap:wrap;margin-right:auto}
.vg-pts i{width:7px;height:7px;border-radius:50%;background:var(--line-strong)}
.vg-pts i.vu{background:color-mix(in srgb,var(--brand-v) 45%,var(--line-strong))}
.vg-pts i.on{width:20px;border-radius:999px;background:var(--brand-v)}
.vg-pts+.vg-prec{margin-left:auto}
.vg-pts+.vg-prec+.btn.primary{margin-left:0}
.vg-bouge .vg-carte{opacity:0}
@media (prefers-reduced-motion:no-preference){
  .vg-trou{transition:left var(--tr-in,.22s) var(--tr-ease,ease),top var(--tr-in,.22s) var(--tr-ease,ease),width var(--tr-in,.22s) var(--tr-ease,ease),height var(--tr-in,.22s) var(--tr-ease,ease)}
  .vg-carte{transition:opacity var(--tr-out,.14s) ease}
  .vg-dlg:not(.vg-bouge) .vg-carte{animation:vg-in var(--tr-in,.22s) var(--tr-ease,ease)}
  @keyframes vg-in{from{opacity:0;transform:translate3d(0,6px,0)}}
}
@media (max-width:600px){
  .vg-carte,.vg-carte.vg-large{padding:16px 16px 14px}.vg-large h2{font-size:1.3rem}
  .vg-large .vg-pied{flex-direction:column-reverse;align-items:stretch}
  .vg-large .vg-pied .btn{width:100%;margin:0}
}
@media print{.pp-dlg,.vg-dlg{display:none!important}}
/* Réglages › Prise en main */
.pp-reg .actions .btn svg{flex:none}
/* ---------- Pages d'outil (PC, refonte 2026-11, étape 5 ; docs/DESIGN.md § 6.6 à 6.9) ----------
   En fin de feuille pour passer devant les anciennes règles. Communes aux 17 outils : en-tête sans cadre, étapes en
   onglets plats, saisie à gauche et fiche à droite (330 px), un seul bouton plein (Imprimer, dans la fiche), contrôles
   de 44 px. Tablette et téléphone : étape 6. --k-alt : « Alt », ou « ⌥ » sur Mac (posé par le script). */
:root{--k-alt:"Alt"}
@media screen and (min-width:1100px),screen and (min-width:481px) and (hover:hover) and (pointer:fine){
  .wrap .tool:not(.tool-home){gap:20px}
  /* En-tête : pastille de 48 px aux couleurs de la famille, titre en 28, une ligne d'explication, boutons secondaires */
  .wrap .tool>.phead{column-gap:16px;padding:4px 0 0;border:0;border-radius:0;background:none;overflow:visible}
  .wrap .tool>.phead .ph-bg,.wrap .tool>.phead .eyebrow{display:none}
  .wrap .tool>.phead .ph-ico{width:48px;height:48px;border-radius:12px;background:var(--soft);color:var(--accent);box-shadow:none}
  .wrap .tool>.phead .ph-ico>svg{width:24px;height:24px}
  .wrap .tool>.phead .ph-ico-play .ph-pb{width:20px;height:20px;right:-4px;bottom:-4px;color:var(--ink);box-shadow:0 0 0 2px var(--bg)}
  .wrap .tool>.phead .ph-ico-play .ph-pb svg{width:9px;height:9px}
  .wrap .tool>.phead h2{margin:0;font-size:var(--fz-h1);line-height:34px;font-weight:700;letter-spacing:-.01em}
  .wrap .tool>.phead .lead{margin-top:4px;max-width:96ch;font-size:var(--fz-md);line-height:20px;color:var(--ink-2)}
  .wrap .tool>.phead>.phead-acts{flex-direction:row;flex-wrap:wrap;align-items:center;justify-content:flex-end;gap:8px}
  .wrap .tool>.phead .btn{background:var(--surface)}
  /* Compact, dès la deuxième ouverture : pastille de 40 px et titre en 20 sur la ligne des boutons */
  .wrap .tool>.phead.ph-court{padding:0;column-gap:12px}
  .wrap .tool>.phead.ph-court .ph-ico{width:40px;height:40px;border-radius:10px}
  .wrap .tool>.phead.ph-court .ph-ico>svg{width:20px;height:20px}
  .wrap .tool>.phead.ph-court h2{font-size:var(--fz-h2);line-height:28px}
  .wrap .tool>.phead .ph-info{width:28px;height:28px;border-color:var(--line-strong);color:var(--ink-2)}
  .wrap .tool>.phead .ph-info:hover,.wrap .tool>.phead .ph-info[aria-expanded="true"]{border-color:var(--ink-3);color:var(--ink)}

  /* Étapes : onglets plats, numéro dans un rond de 24 px ; l'étape ouverte en noir, soulignée de la couleur d'action */
  .wrap .tool .steps{gap:4px;padding:0;border:0;border-bottom:1px solid var(--line);border-radius:0;background:none;box-shadow:none}
  .wrap .tool .chip{flex:0 0 auto;gap:8px;min-height:44px;margin-bottom:-1px;padding:0 14px 0 4px;border-bottom:2px solid transparent;border-radius:0;background:none;color:var(--ink-2);font:700 var(--fz-md)/20px var(--font)}
  .wrap .tool .chip:hover{background:none;color:var(--ink)}
  .wrap .tool .chip .n{width:24px;height:24px;border:1px solid var(--line-strong);background:var(--surface);color:var(--ink-2);font:700 var(--fz-sm)/1 var(--font)}
  .wrap .tool .chip.done{color:var(--ink-2)}
  .wrap .tool .chip.done .n{border-color:transparent;background:var(--ok-bg);color:var(--ok);font-size:0}
  .wrap .tool .chip.done .n::before{font:700 var(--fz-sm)/1 var(--font)}
  .wrap .tool .chip[aria-current="step"]{border-bottom-color:var(--action);background:none;color:var(--ink)}
  .wrap .tool .chip[aria-current="step"] .n{border-color:var(--ink);background:var(--ink);color:var(--surface);font-size:var(--fz-sm)}
  .wrap .tool .chip[aria-current="step"] .n::before{content:none}
  .wrap .tool .chip:focus-visible{outline:3px solid var(--action);outline-offset:-3px;border-radius:8px}

  /* Saisie à gauche, fiche à droite (330 px), sans ombre ; titres en 20 et 16 */
  .wrap .tool .tgrid{grid-template-columns:minmax(0,1fr) 330px;gap:20px}
  .wrap .tool .card{padding:24px;border-radius:var(--r-card);box-shadow:none}
  .wrap .tool .ct{font-size:var(--fz-h2);line-height:28px;font-weight:700;letter-spacing:-.01em}
  .wrap .tool .group-t h3{font-size:var(--fz-lg);line-height:24px;font-weight:700}
  .wrap .tool .tag{padding:2px 8px;font-size:var(--fz-sm);line-height:16px;letter-spacing:.06em}
  .wrap .tool .lead{font-size:var(--fz-md);line-height:20px;color:var(--ink-2)}
  .wrap .tool .lead.sm{font-size:var(--fz-md)}
  .wrap .tool .foot{font-size:var(--fz-sm);line-height:16px;color:var(--ink-3)}
  .wrap .tool .callout{padding:12px 16px;border-left-width:4px;border-radius:var(--r-md);font-size:var(--fz-md);line-height:20px}
  .wrap .tool .callout b{font-size:var(--fz-md);font-weight:700}
  .wrap .tool .callout.info{background:var(--action-tint);color:var(--ink);border-color:var(--line);border-left-color:var(--action)}
  .wrap .tool .callout.info b{color:var(--ink)}

  /* Fiche : titre, résumé, un seul bouton plein (Imprimer, pastille Alt P), puis les actions secondaires l'une sous l'autre */
  .wrap .tool .aside{gap:12px}
  .wrap .tool .aside .card{gap:12px;padding:20px}
  .wrap .tool .aside .eyebrow{gap:6px;color:var(--ink-3);font-size:var(--fz-sm);line-height:16px;letter-spacing:.06em}
  .wrap .tool .aside .eyebrow::before{width:6px;height:6px;background:var(--ink-3)}
  .wrap .tool .mini{gap:12px;padding:6px 0;border-bottom:1px solid var(--line-soft);font-size:var(--fz-md);line-height:20px;color:var(--ink-2)}
  .wrap .tool .mini b{min-width:0;overflow-wrap:anywhere;text-align:right;font-family:var(--font);font-weight:700;color:var(--ink);font-variant-numeric:tabular-nums}
  .wrap .tool .aside .btn{width:100%;min-height:44px;margin:0;justify-content:flex-start}
  .wrap .tool .aside .btn.primary{min-height:48px;margin-top:4px;justify-content:center;border-radius:12px;font-size:var(--fz-lg)}
  .wrap .tool .aside-fiche{gap:8px;padding:0}
  .wrap .tool .aside>.foot{padding:0 4px}

  /* Boutons (§ 6.9) : secondaires de 40 px ; un seul plein à l'écran, celui de la fiche ; « Suivant » est secondaire */
  .wrap .tool .btn{min-height:40px;padding:0 16px;gap:8px;border:1px solid var(--line-strong);border-radius:var(--r-md);background:var(--surface);color:var(--ink);font-size:var(--fz-md);font-weight:700;box-shadow:none}
  .wrap .tool .btn:hover:not(:disabled){border-color:var(--ink-3);background:var(--surface-2);color:var(--ink);filter:none}
  .wrap .tool .btn:active:not(:disabled){transform:none}
  .wrap .tool .btn:focus-visible{outline:3px solid var(--action);outline-offset:2px}
  .wrap .tool .btn.primary{border-color:var(--action);background:var(--action);color:var(--action-ink)}
  .wrap .tool .btn.primary:hover:not(:disabled){border-color:var(--action-strong);background:var(--action-strong);color:var(--action-ink)}
  .wrap .tool .btn.primary:disabled:hover{border-color:var(--action);color:var(--action-ink)}
  .wrap .tool:has(.aside .btn.primary) .btn.primary:not(.aside .btn){border-color:var(--line-strong);background:var(--surface);color:var(--ink)}
  .wrap .tool:has(.aside .btn.primary) .btn.primary:not(.aside .btn):hover:not(:disabled){border-color:var(--ink-3);background:var(--surface-2);color:var(--ink)}
  .wrap .tool .btn.danger{border-color:var(--crit);background:var(--surface);color:var(--crit)}
  .wrap .tool .btn.copied,.wrap .tool .btn.copied:hover{border-color:var(--ok);background:var(--ok);color:var(--surface)}
  /* Pastille de raccourci dans le bouton (Alt N, Alt P, Alt S) */
  .wrap .tool>.phead [id$="-reset"]::after,.wrap .tool .aside .btn.primary::after,.wrap .tool #bp-next::after,.wrap .tool #bv-next::after{
    content:var(--k-alt) " N";flex:none;padding:2px 6px;border:1px solid var(--line);border-radius:6px;color:var(--ink-3);font:700 var(--fz-sm)/16px var(--font)}
  .wrap .tool .aside .btn.primary::after{content:var(--k-alt) " P";border-color:color-mix(in srgb,var(--action-ink) 45%,transparent);color:var(--action-ink)}
  .wrap .tool #bp-next::after,.wrap .tool #bv-next::after{content:var(--k-alt) " S";border-color:color-mix(in srgb,var(--action) 35%,transparent);color:var(--action)}

  /* Contrôles de saisie (§ 6.8) */
  .wrap .tool .lab{margin-bottom:6px;font-size:var(--fz-md);line-height:20px;font-weight:700}
  .wrap .tool .inp{min-height:44px;padding:9px 12px;border:1px solid var(--line-strong);border-radius:var(--r-md);font-size:var(--fz-lg);line-height:24px;font-weight:400}
  .wrap .tool .inp:focus-visible,.wrap .tool .sd-date:focus-within{border-color:var(--action);box-shadow:0 0 0 1px var(--action);outline:none}
  .wrap .tool .opt{gap:12px;min-height:52px;padding:13px 14px;border:1px solid var(--line);border-radius:var(--r-md)}
  .wrap .tool .opt:hover{border-color:var(--line-strong)}
  .wrap .tool .opt input{width:20px;height:20px;margin-top:2px;accent-color:var(--action)}
  .wrap .tool .opt .t{font-size:var(--fz-lg);line-height:24px;font-weight:400}
  .wrap .tool .opt .s{margin-top:0;font-size:var(--fz-md);line-height:20px;color:var(--ink-2)}
  .wrap .tool .opt:has(input:checked){border-color:var(--action);background:var(--action-tint);box-shadow:inset 0 0 0 .5px var(--action)}
  .wrap .tool .opt.danger:has(input:checked){border-color:var(--crit);background:var(--crit-bg);box-shadow:inset 0 0 0 .5px var(--crit)}
  .wrap .tool .opt.warnx:has(input:checked){border-color:var(--warn-line);background:var(--warn-bg);box-shadow:inset 0 0 0 .5px var(--warn-line)}
  .wrap .tool .seg .opt{align-items:center}
  .wrap .tool .seg .opt .t{font-weight:700}
  .wrap .tool .seg .opt:has(input[value="pos"]:checked){border-color:var(--crit);background:var(--crit-bg);box-shadow:inset 0 0 0 .5px var(--crit)}
  .wrap .tool .seg .opt:has(input[value="neg"]:checked){border-color:var(--ok);background:var(--ok-bg);box-shadow:inset 0 0 0 .5px var(--ok)}
  .wrap .tool .mc-pt{font:700 var(--fz-sm)/16px var(--font);color:var(--ink-3)}
  .wrap .tool details{border-width:1px;border-radius:var(--r-md)}
  .wrap .tool summary{min-height:44px;padding:12px 0;font-size:var(--fz-md);line-height:20px;font-weight:700}
}
/* ---------- Finitions des outils (18/11/2026 ; docs/DESIGN.md § 6.7) ---------- */
@media screen and (min-width:1100px),screen and (min-width:481px) and (hover:hover) and (pointer:fine){
  /* Pas de carte dans une carte : l'officine du contrat et les rendez-vous du bilan de médication se séparent par un filet */
  .wrap .tool .lo-off{padding:8px 0 0;border:0;border-top:1px solid var(--line-soft);border-radius:0;background:none;font-size:var(--fz-md);line-height:20px}
  .wrap .tool .lo-off b{font-family:var(--font);font-weight:700;font-size:var(--fz-md)}
  .wrap .tool .bp-rdv{margin-top:8px;padding:16px 0 0;border:0;border-top:1px solid var(--line-soft);border-radius:0;background:none}
  .wrap .tool .bp-rdv .bp-row{background:none}
  /* Planning : un seul bouton plein (Générer ou Valider) ; « Poser une absence » passe en secondaire ; boutons discrets sans cadre */
  .wrap #panel-plan:has(.pl-gen,.pl-valider) .pl-cg-btn.primary{border-color:var(--line-strong);background:var(--surface);color:var(--ink)}
  .wrap #panel-plan:has(.pl-gen,.pl-valider) .pl-cg-btn.primary:hover:not(:disabled){border-color:var(--ink-3);background:var(--surface-2);color:var(--ink)}
  .wrap .tool .btn.pl-ghost{border-color:transparent;background:none;color:var(--action)}
  .wrap .tool .btn.pl-ghost:hover:not(:disabled){border-color:transparent;background:var(--action-soft);color:var(--action-strong)}
  /* Suivi de grossesse : les strates de la frise en puces légères, cochées sans cadre violet */
  .wrap .tool .pg-lanes{gap:6px}
  .wrap .tool .pg-lanes .opt{min-height:36px;padding:6px 12px;border:1px solid var(--line);border-radius:999px;background:var(--surface);align-items:center}
  .wrap .tool .pg-lanes .opt:has(input:checked){border-color:var(--line-strong);background:var(--surface);box-shadow:none}
  .wrap .tool .pg-lanes .opt input{width:16px;height:16px;margin:0;accent-color:var(--ink)}
  .wrap .tool .pg-lanes .t{font-size:var(--fz-md);line-height:20px;font-weight:700}
}
/* ---------- Communication : puces à la charte (18/11/2026 ; docs/DESIGN.md § 6.8) ----------
   Genre de publication, filtres du fil et « Mentionner » en puces de 36 px ; le choix en violet clair, jamais en plein */
.wrap .cm-kind span{min-height:36px;padding:0 12px;border:1px solid var(--line-strong);border-radius:999px;color:var(--ink-2);font-size:var(--fz-md);font-weight:700}
.wrap .cm-kind:hover span{border-color:var(--ink-3)}
.wrap .cm-kind input:checked+span{border-color:var(--action);background:var(--action-tint);color:var(--action);box-shadow:inset 0 0 0 .5px var(--action)}
.wrap .cm-kind input:focus-visible+span{outline:3px solid var(--action);outline-offset:2px}
.wrap .cm-kind-at{min-height:36px;padding:0 12px;border-width:1px;color:var(--ink-2);font-size:var(--fz-md)}
.wrap .cm-kind-at:hover{border-color:var(--ink-3);color:var(--ink)}
.wrap .cm-f{min-height:36px;padding:0 12px;border:1px solid var(--line-strong);color:var(--ink-2);font-size:var(--fz-md)}
.wrap .cm-f:hover{border-color:var(--ink-3);color:var(--ink)}
.wrap .cm-f[aria-pressed="true"]{border-color:var(--action);background:var(--action-tint);color:var(--action);box-shadow:inset 0 0 0 .5px var(--action)}
.wrap .cm-tabs{border-radius:var(--r-md);background:var(--bg)}
.wrap .cm-tabs button{border-radius:8px;color:var(--ink-2);font-size:var(--fz-md)}
.wrap .cm-tabs button[aria-selected="true"]{background:var(--surface);color:var(--ink);box-shadow:0 1px 2px rgba(21,19,26,.08)}
.wrap .cm-tabs button:focus-visible{outline:3px solid var(--action)}
.wrap .cm-post{border-radius:var(--r-card)}
/* Recherche : sans rien de tapé, les outils sont rangés par famille (« Parcourir ») */
.cmd-gh{padding:12px 14px 4px;color:var(--ink-3);font:700 12px/16px var(--font);letter-spacing:.06em;text-transform:uppercase;list-style:none}
.cmd-gh:first-child{padding-top:4px}
/* ---------- Accueil : cartes harmonisées (18/11/2026 ; docs/DESIGN.md § 6.12) ----------
   Même en-tête partout (icône neutre de 32 px, titre en 16, compteur, bouton secondaire de 36 px), lignes à filets au
   lieu de fonds gris, nouveautés en ligne discrète. En fin de feuille pour passer devant les anciennes règles. */
#panel-home .hm-col{gap:20px}
#panel-home .hm-card{gap:16px;padding:20px 24px;border-radius:var(--r-card);box-shadow:none}
#panel-home .hm-h{gap:10px;min-height:36px}
#panel-home .hm-h>i{width:32px;height:32px;border-radius:var(--r-md);background:var(--bg);color:var(--ink-2)}
#panel-home .hm-h>i svg{width:18px;height:18px}
#panel-home .hm-h h3{font-size:var(--fz-lg);line-height:24px;font-weight:700;letter-spacing:0}
#panel-home .hm-h .of-count{min-width:24px;height:20px;margin-left:8px;padding:0 7px;background:var(--bg);color:var(--ink-2);font-size:var(--fz-sm);font-weight:700}
#panel-home .hm-link{min-height:36px;padding:0 14px;border:1px solid var(--line-strong);border-radius:var(--r-md);background:var(--surface);color:var(--ink);font-size:var(--fz-md);font-weight:700}
#panel-home .hm-link:hover{border-color:var(--ink-3);background:var(--surface-2);color:var(--ink)}
#panel-home .hm-link.on{border-color:var(--line-strong);background:var(--surface);color:var(--action)}
#panel-home .hm-link.on:hover{border-color:var(--action);background:var(--action-tint);color:var(--action-strong);filter:none}
#panel-home .hm-link:focus-visible{outline:3px solid var(--action);outline-offset:2px}
#panel-home .hm-note{color:var(--ink-2);font-size:var(--fz-md);line-height:20px}
#panel-home .hm-x{width:32px;height:32px;border:0;border-radius:var(--r-sm);color:var(--ink-3)}
#panel-home .hm-x:hover{background:var(--bg);color:var(--ink)}
/* Fil vide : une ligne comme « Rien à faire », sans cadre en pointillé */
#panel-home .cm-empty{padding:0;border:0;border-radius:0}
/* Frise du planning du jour : heures en 12 px, trait « maintenant » à la couleur d'action */
#panel-home .hm-tl-axis{color:var(--ink-3);font-size:var(--fz-sm);font-weight:700}
#panel-home .hm-tl-who{font-size:var(--fz-md);line-height:20px}
#panel-home .hm-tl-bars{height:12px;border-radius:6px;background:var(--bg)}
#panel-home .hm-tl-now,#panel-home .hm-tl-now::before{background:var(--action)}
/* Jauges des épidémies, partout (bandeau et fenêtre « Détails ») : crans aux couleurs de Santé publique France, sans poignée */
.hm-epi-g em{display:none}
.hm-epi-g[data-k] i{border-radius:3px;background:var(--epi-vide);box-shadow:none}
.hm-epi-g[data-k] i.on{background:var(--k,var(--epi-1))}
.hm-epi-g[data-k="0"]{--k:var(--epi-1)}.hm-epi-g[data-k="1"]{--k:var(--epi-2)}.hm-epi-g[data-k="2"]{--k:var(--epi-3)}.hm-epi-g[data-k="3"]{--k:var(--epi-4)}.hm-epi-g[data-k="4"]{--k:var(--epi-5)}
.hm-ep .hm-epi-g{height:8px}
.hm-epi-g.continu{border-radius:4px;background:var(--epi-vide);box-shadow:none}
.hm-epi-g.continu u{border-radius:4px;background:var(--epi-1)}
/* Équipe : une personne par ligne, séparées par des filets */
#panel-home .hm-people{grid-template-columns:minmax(0,1fr);gap:0}
#panel-home .hm-p{gap:12px;padding:8px 0;border-bottom:1px solid var(--line-soft);border-radius:0;background:none}
#panel-home .hm-p:last-child{border-bottom:0;padding-bottom:0}
#panel-home .hm-p:first-child{padding-top:0}
#panel-home .hm-p .hm-av{width:32px;height:32px;font-size:var(--fz-sm)}
#panel-home .hm-p b{font-family:var(--font);font-size:var(--fz-md);line-height:20px;font-weight:700}
#panel-home .hm-p small{font-size:var(--fz-sm);line-height:16px;color:var(--ink-2)}
#panel-home .hm-p .hm-role{color:var(--ink-2);font-weight:400}
/* Mes congés et mes heures : lignes à filets */
#panel-home .hm-facts{gap:0}
#panel-home .hm-facts li{padding:10px 0;border-bottom:1px solid var(--line-soft);border-radius:0;background:none}
#panel-home .hm-facts li:last-child{border-bottom:0;padding-bottom:0}
#panel-home .hm-facts li:first-child{padding-top:0}
#panel-home .hm-facts small{color:var(--ink-2);font-size:var(--fz-sm)}
/* Nouveautés : une ligne sans cadre, texte sur deux lignes au plus (en entier au survol) */
#panel-home #home-news{gap:8px;padding:0 4px;border:0;border-radius:0;background:none}
.hm-nw{display:flex;align-items:flex-start;gap:10px}
.hm-nw+.hm-nw{padding-top:8px;border-top:1px solid var(--line-soft)}
.hm-nw-i{flex:none;display:grid;place-items:center;width:20px;height:20px;color:var(--ink-3)}
.hm-nw-x{flex:1 1 auto;min-width:0}
.hm-nw-k{margin:0;color:var(--ink-3);font-size:var(--fz-sm);line-height:20px;font-weight:700}
.hm-nw-o{padding:0;border:0;background:none;color:var(--action);font:inherit;text-decoration:underline;text-underline-offset:2px;cursor:pointer}
.hm-nw-o:focus-visible,.hm-nw-plus:focus-visible{outline:3px solid var(--action);outline-offset:2px;border-radius:4px}
.hm-nw-t{display:-webkit-box;margin:2px 0 0;overflow:hidden;color:var(--ink-2);font-size:var(--fz-md);line-height:20px;-webkit-box-orient:vertical;-webkit-line-clamp:2}
#panel-home #home-news .hm-x{margin:-6px -6px 0 0}
.hm-nw-plus{align-self:flex-start;min-height:32px;margin-left:30px;padding:0;border:0;background:none;color:var(--action);font:700 var(--fz-sm)/16px var(--font);cursor:pointer}
/* PC : « Tous les outils » quitte l'accueil (barre du haut et Alt R y mènent) ; la mention de conformité reste */
@media screen and (min-width:1100px),screen and (min-width:481px) and (hover:hover) and (pointer:fine){
  #panel-home .hm-tools-h,#panel-home #home-list{display:none}
}
/* ---------- Titres de 20 px et plus en Lexend (18/11/2026 ; docs/DESIGN.md § 4) ----------
   Bonjour de l'accueil, chiffre du jour, titres de page et d'outil, titres de section des outils. Le reste (texte,
   champs, boutons, valeurs, codes) reste en Atkinson Hyperlegible Next. Lexend en 600 : plus large, espacement resserré. */
#panel-home .hm-hi h2,#panel-home .hm-day-n,.tool>.phead h2,.wrap .tool>.phead h2,.tool .ct,.wrap .tool .ct{font-family:var(--font-title);font-weight:600;letter-spacing:-.015em}
#panel-home .hm-day-n{letter-spacing:-.03em}
/* ---------- Téléphone et tablette (refonte 2026-11, étape 6 ; docs/DESIGN.md § 2, 6.10 et 6.11) ----------
   <html data-ui="tel|tab"> : barre du haut réduite, dock en bas (cinq entrées sur téléphone ; Accueil, écrans ouverts et Tous
   sur tablette), feuille « Outils », lanceur de tuiles sur l'accueil de la tablette. En fin de feuille pour passer devant
   les anciennes règles du smartphone. */
.dk,.dk-launch,.dk-more{display:none}
html:is([data-ui="tel"],[data-ui="tab"]) .app{padding:0}
html:is([data-ui="tel"],[data-ui="tab"]) .app::before{display:none}
html:is([data-ui="tel"],[data-ui="tab"]) .wrap{max-width:none}
html:is([data-ui="tel"],[data-ui="tab"]) .tabs,html:is([data-ui="tel"],[data-ui="tab"]) .menu-fab,html:is([data-ui="tel"],[data-ui="tab"]) .menu-pop,html:is([data-ui="tel"],[data-ui="tab"]) .menu-scrim,html:is([data-ui="tel"],[data-ui="tab"]) .tk-top,html:is([data-ui="tel"],[data-ui="tab"]) .rail{display:none!important}
html:is([data-ui="tel"],[data-ui="tab"]) .top{position:sticky;top:0;z-index:58;display:flex;flex-wrap:nowrap;align-items:center;gap:4px;min-height:56px;margin:0;padding:calc(6px + env(safe-area-inset-top,0px)) 10px 6px 16px;background:var(--surface);border-bottom:1px solid var(--line)}
html:is([data-ui="tel"],[data-ui="tab"]) .top .brand{flex:none;margin-right:auto;cursor:pointer}
html:is([data-ui="tel"],[data-ui="tab"]) .top .wm-logo{height:22px;margin:0}
html:is([data-ui="tel"],[data-ui="tab"]) .brand p{display:none}
html:is([data-ui="tel"],[data-ui="tab"]) .top .tb-q,html:is([data-ui="tel"],[data-ui="tab"]) .top .ubar{display:flex}
html:is([data-ui="tel"],[data-ui="tab"]) .top .tb-q kbd{display:none}
html:is([data-ui="tel"],[data-ui="tab"]) #panel-home .hm-top .search{display:none}
html:is([data-ui="tel"],[data-ui="tab"]) .wrap>main{padding:16px 16px calc(124px + env(safe-area-inset-bottom,0px))}
/* Le dock */
html:is([data-ui="tel"],[data-ui="tab"]) .dk{position:fixed;z-index:60;bottom:calc(14px + env(safe-area-inset-bottom,0px));display:grid;align-items:end;padding:8px 4px 6px;border:1px solid var(--line);border-radius:24px;background:var(--surface);box-shadow:var(--shadow-float)}
.dk-e{position:relative;display:flex;flex-direction:column;align-items:center;gap:3px;min-width:0;padding:0;border:0;background:none;color:var(--ink-2);font:400 12px/16px var(--font);cursor:pointer;-webkit-tap-highlight-color:transparent}
.dk-i{position:relative;display:grid;place-items:center;width:46px;height:46px;border-radius:14px;color:inherit}
.dk-t{max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.dk-e[aria-current="page"]{color:var(--action);font-weight:700}
.dk-e[aria-current="page"] .dk-i{background:var(--action-soft)}
.dk-e:focus-visible{outline:3px solid var(--action);outline-offset:2px;border-radius:14px}
.dk-i .ri-badge{position:absolute;top:2px;right:0;min-width:18px;height:18px;padding:0 5px;border-radius:999px;background:var(--action);color:var(--action-ink);font:700 12px/18px var(--font);text-align:center}
.dk-i .ri-badge.is-late{background:var(--crit);color:#fff}
.dk-i .hm-av{width:28px;height:28px;font-size:12px}
/* Outils, au centre : plein, cerclé de la famille de l'outil ouvert, point orange si une saisie est en cours, croix feuille ouverte */
.dk-o .dk-i{width:58px;height:58px;border-radius:18px;background:var(--action);color:var(--action-ink)}
.dk-o[aria-current="page"] .dk-i{background:var(--action);color:var(--action-ink)}
.dk-o.in-tool .dk-i{box-shadow:0 0 0 3px var(--surface),0 0 0 5px var(--fam)}
.dk-o.has-dot .dk-i::after{content:"";position:absolute;top:3px;right:3px;width:11px;height:11px;border-radius:999px;background:var(--fam-trod);box-shadow:0 0 0 2px var(--surface)}
.dk.is-sheet .dk-o .dk-i{background:var(--ink);color:var(--surface)}
html[data-ui="tel"] .dk{left:0;right:0;bottom:0;grid-template-columns:repeat(5,minmax(0,1fr));padding:8px 4px calc(6px + env(safe-area-inset-bottom,0px));border-width:1px 0 0;border-radius:20px 20px 0 0;box-shadow:0 -2px 12px rgba(21,19,26,.08)}
/* Tablette : Accueil, écrans ouverts, puis « Tous », centrés */
html[data-ui="tab"] .dk{left:50%;right:auto;display:flex;gap:2px;max-width:calc(100vw - 24px);padding:8px 8px 6px;overflow-x:auto;transform:translateX(-50%);scrollbar-width:none}
html[data-ui="tab"] .dk::-webkit-scrollbar{display:none}
html[data-ui="tab"] .dk-e{flex:0 0 76px}
.dk-sg .dk-i{color:var(--fam)}
.dk-dot{position:absolute;top:4px;right:4px;width:9px;height:9px;border-radius:999px;background:var(--fam-trod);box-shadow:0 0 0 2px var(--surface)}
.dk-sep{flex:none;align-self:stretch;width:1px;margin:6px 6px 20px;background:var(--line)}
/* Barre du haut : téléphone = logo, cloche, loupe ; tablette = logo, champ de recherche, cloche, Mes tâches, compte */
html[data-ui="tel"] .top .ubar{order:1}
html[data-ui="tel"] .top .tb-q{order:2;width:44px;height:44px;margin-left:0;padding:0;justify-content:center}
html[data-ui="tel"] .top .tb-q>span{display:none}
html[data-ui="tel"] .top .ub-me,html[data-ui="tel"] .top .ub-tk{display:none!important}
html[data-ui="tel"] .top .ub-b[data-nt-open]{width:44px;min-width:44px;height:44px}
html[data-ui="tab"] .top{gap:8px;padding-inline:20px 12px}
html[data-ui="tab"] .top .brand{margin-right:0}
html[data-ui="tab"] .top .tb-q{flex:1 1 auto;max-width:520px;height:44px;margin:0 auto;padding:0 14px;border:1px solid var(--line);border-radius:var(--r-md);background:var(--bg);color:var(--ink-2);font-weight:400;justify-content:flex-start}
html[data-ui="tab"] .top .tb-q>span{display:inline}
html[data-ui="tab"] .top .ub-me [data-acct-nom]{display:none}
html[data-ui="tab"] .top .ub-me{padding-right:4px}
html[data-ui="tab"] .wrap>main{padding:24px 24px calc(124px + env(safe-area-inset-bottom,0px))}
/* Feuille « Outils » : monte du bas */
dialog.dk-sheet{position:fixed;inset:auto 0 0 0;width:100%;max-width:640px;max-height:calc(100dvh - 40px);margin:0 auto;padding:8px 16px calc(24px + env(safe-area-inset-bottom,0px));overflow:auto;border:0;border-radius:24px 24px 0 0;background:var(--surface);color:var(--ink);box-shadow:var(--shadow-float);overscroll-behavior:contain}
dialog.dk-sheet::backdrop{background:rgba(21,19,26,.42)}
.dk-sh-h{position:sticky;top:-8px;z-index:1;display:flex;align-items:center;gap:8px;margin:0 -16px 8px;padding:14px 16px 6px;background:var(--surface)}
.dk-grab{position:absolute;top:6px;left:50%;width:36px;height:4px;border-radius:2px;background:var(--line-strong);transform:translateX(-50%)}
.dk-sh-h b{font:600 20px/28px var(--font-title);letter-spacing:-.015em}
.dk-x{display:grid;place-items:center;width:44px;height:44px;margin-left:auto;padding:0;border:0;border-radius:var(--r-md);background:var(--bg);color:var(--ink);cursor:pointer}
.dk-q{display:flex;align-items:center;gap:10px;width:100%;min-height:48px;padding:0 14px;border:1px solid var(--line-strong);border-radius:var(--r-md);background:var(--bg);color:var(--ink-2);font:400 16px/1 var(--font);text-align:left;cursor:pointer}
.dk-ouv h3,.dk-fam h3{display:flex;align-items:center;gap:8px;margin:18px 0 8px;font:700 14px/20px var(--font);color:var(--ink)}
.dk-xall{display:inline-flex;align-items:center;gap:6px;min-height:44px;margin:-12px -8px -12px auto;padding:0 10px;border:0;border-radius:10px;background:none;color:var(--ink-2);font:700 14px/20px var(--font);cursor:pointer}
.dk-xall:hover{background:var(--surface-2);color:var(--ink)}
.dk-fam h3 .fm-c{width:9px;height:9px;border-radius:2px;background:var(--fam)}
.dk-ouv ul{display:flex;flex-direction:column;gap:6px;margin:0;padding:0;list-style:none}
.dk-s{display:flex;align-items:center;border:1px solid var(--line);border-left:3px solid var(--fam);border-radius:12px;background:var(--surface)}
.dk-s.is-on{background:var(--action-tint)}
.dk-s-b{flex:1 1 auto;min-width:0;display:flex;align-items:center;gap:10px;min-height:56px;padding:6px 10px;border:0;background:none;color:var(--ink);text-align:left;cursor:pointer}
.dk-s-t{min-width:0;display:flex;flex-direction:column}
.dk-s-t b{font:700 14px/18px var(--font)}
.dk-s-t small{font-size:12px;line-height:16px;color:var(--ink-2)}
.dk-s-t small.is-cours{color:var(--fam-trod-strong);font-weight:700}
.dk-s-t small.is-fiche{color:var(--ok);font-weight:700}
.dk-s-x{flex:none;display:grid;place-items:center;width:44px;height:44px;margin-right:4px;padding:0;border:0;border-radius:var(--r-md);background:none;color:var(--ink-3);cursor:pointer}
.dk-tiles{display:grid;grid-template-columns:repeat(auto-fill,minmax(104px,1fr));gap:8px}
.dk-tile{display:flex;flex-direction:column;align-items:flex-start;justify-content:space-between;gap:8px;min-height:104px;padding:12px;border:1px solid var(--line);border-radius:16px;background:var(--surface);color:var(--ink);font:700 14px/18px var(--font);text-align:left;cursor:pointer}
.dk-tile.is-cours{border:1.5px solid var(--fam)}
.dk-tile small{margin-top:-6px;font:700 12px/16px var(--font);color:var(--fam-trod-strong)}
.dk-ti{display:grid;place-items:center;width:42px;height:42px;border-radius:12px;background:var(--fam-soft);color:var(--fam)}
.dk-s .dk-ti{flex:none;width:36px;height:36px;border-radius:10px}
.dk-tile:focus-visible,.dk-s-b:focus-visible,.dk-s-x:focus-visible,.dk-q:focus-visible,.dk-x:focus-visible{outline:3px solid var(--action);outline-offset:2px}
/* Tablette : l'accueil en lanceur, sous le bandeau */
html[data-ui="tab"] #panel-home .dk-launch{display:block}
html[data-ui="tab"] .dk-launch .dk-fam h3{margin-top:4px}
html[data-ui="tab"] .dk-launch .dk-tiles{grid-template-columns:repeat(auto-fill,minmax(132px,1fr));gap:10px}
html[data-ui="tab"] .dk-launch .dk-fam+.dk-fam{margin-top:16px}
/* Dans un outil : en-tête compact, menu « ⋯ » sur téléphone ; étape suivante au-dessus du dock */
html:is([data-ui="tel"],[data-ui="tab"]) .tool:not(.tool-home)>.phead{grid-template-columns:auto minmax(0,1fr) auto;column-gap:12px;align-items:center;padding:0;border:0;border-radius:0;background:none;overflow:visible}
html:is([data-ui="tel"],[data-ui="tab"]) .tool>.phead .ph-bg,html:is([data-ui="tel"],[data-ui="tab"]) .tool>.phead .eyebrow{display:none}
html:is([data-ui="tel"],[data-ui="tab"]) .tool>.phead .ph-ico{width:44px;height:44px;border-radius:12px;background:var(--soft);color:var(--accent);box-shadow:none}
html:is([data-ui="tel"],[data-ui="tab"]) .tool>.phead .ph-ico>svg{width:22px;height:22px}
html:is([data-ui="tel"],[data-ui="tab"]) .tool>.phead .ph-ico-play .ph-pb{box-shadow:0 0 0 2px var(--bg)}
html:is([data-ui="tel"],[data-ui="tab"]) .tool>.phead h2{margin:0;font-size:20px;line-height:26px}
html:is([data-ui="tel"],[data-ui="tab"]) .tool>.phead .lead{font-size:14px;line-height:20px;color:var(--ink-2)}
html[data-ui="tel"] .tool>.phead>.phead-acts,html[data-ui="tel"] .tool>.phead>.btn{display:none}
html[data-ui="tel"] .tool>.phead .dk-more{display:grid;grid-column:3;grid-row:1;place-items:center;width:44px;height:44px;padding:0;border:0;border-radius:var(--r-md);background:none;color:var(--ink-2);cursor:pointer}
html[data-ui="tel"] .tool .nav{position:sticky;bottom:calc(92px + env(safe-area-inset-bottom,0px));z-index:6;margin-inline:-18px;padding:10px 18px;background:var(--surface);border-top:1px solid var(--line-soft)}
dialog.dk-pm{width:min(420px,calc(100vw - 24px));margin:auto auto calc(16px + env(safe-area-inset-bottom,0px)) auto;padding:8px;gap:0;border-radius:18px}
.dk-pm-l{display:flex;flex-direction:column}
.dk-pm-i{display:block;width:100%;min-height:52px;padding:0 16px;border:0;border-radius:12px;background:none;color:var(--ink);font:700 16px/1 var(--font);text-align:left;cursor:pointer}
.dk-pm-i:hover,.dk-pm-i:focus-visible{background:var(--action-tint);outline:none}
.dk-pm-c{margin-top:4px;border-top:1px solid var(--line-soft);border-radius:0 0 12px 12px;color:var(--ink-2)}
/* Téléphone : outils étape par étape, barre de progression, barre d'action au-dessus du dock (module pasApas) */
.ea-bar,.ea-act{display:none}
html[data-ui="tel"].ea-on .ea-off{display:none!important}
html[data-ui="tel"].ea-on .ea-bar{display:flex;flex-direction:column;gap:8px}
.ea-bar p{margin:0;color:var(--ink-2);font-size:12px;line-height:16px}
.ea-bar b{color:var(--ink);font-weight:700}
.ea-seg{display:grid;grid-auto-flow:column;grid-auto-columns:minmax(0,1fr);gap:4px}
.ea-seg i{height:5px;border-radius:3px;background:var(--line)}
.ea-seg i.on{background:var(--action)}
html[data-ui="tel"].ea-on .ea-act{position:fixed;z-index:59;left:0;right:0;bottom:calc(92px + env(safe-area-inset-bottom,0px));display:flex;gap:8px;padding:10px 16px;background:var(--bg)}
.ea-act .btn{min-height:50px;border-radius:12px;font-size:15px}
.ea-act [data-ea="-1"]{flex:none;padding-inline:16px}
.ea-act [data-ea="1"]{flex:1 1 auto}
html[data-ui="tel"].ea-on .wrap>main{padding-bottom:calc(200px + env(safe-area-inset-bottom,0px))}
html[data-ui="tel"].ea-on .tool .nav{display:none}
/* Étape par étape : la saisie d'abord, la fiche du patient (résumé, enregistrement) ensuite */
html[data-ui="tel"].ea-on .tool .aside{order:1}
/* Le compte, ouvert depuis le dock : au-dessus de lui, sans pointe */
dialog.ub-pop.dk-up::before{display:none}
/* Au doigt : ni raccourcis clavier ni rangement de la barre des outils (réservés au PC) */
html:is([data-ui="tel"],[data-ui="tab"]) .ub-pop .up-act[data-go="raccourcis"],html:is([data-ui="tel"],[data-ui="tab"]) .ub-pop .up-qs:has([data-qs="barre"]){display:none}
/* Palette en plein écran sur téléphone */
html[data-ui="tel"]  dialog.qr-dlg.cmd-dlg{width:100vw;max-width:none;height:100dvh;max-height:none;margin:0;border:0;border-radius:0}
html[data-ui="tel"] .cmd-dlg .cmd-q{padding-right:92px}
html[data-ui="tel"] .cmd-dlg .cmd-x{position:absolute;top:50%;right:6px;display:inline-flex;align-items:center;min-height:44px;padding:0 12px;border:0;background:none;color:var(--action);font:700 16px/1 var(--font);transform:translateY(-50%);cursor:pointer}
html[data-ui="tel"] .cmd-dlg .cmd-x kbd{display:none}
html[data-ui="tel"] .cmd-aide{display:none}
@media print{.dk{display:none!important}}
/* Ouverture d'un outil encore jamais ouvert (assets/app.js, « Outils chargés à la demande ») : curseur d'attente, puis un mot sous la barre si cela dure */
html.outil-attente,html.outil-attente *{cursor:progress}
.outil-attente-m{position:fixed;left:50%;top:calc(var(--chrome-h,64px) + 12px);z-index:80;margin:0;padding:8px 16px;border:1px solid var(--line);border-radius:var(--r-pill);background:var(--surface);color:var(--ink-2);font-size:var(--fz-md);line-height:20px;box-shadow:var(--shadow-float);transform:translateX(-50%)}
.outil-attente-m[hidden]{display:none}

/* ---- Abonnement : carte des Réglages et écran « Abonnement requis » (assets/abonnement.js, DESIGN.md § 6.15) ---- */
.ab-card .ab-tags{margin:0}
.ab-etat{display:flex;flex-direction:column;gap:var(--sp-1)}
.ab-ligne{margin:0;color:var(--ink-2);font-size:var(--fz-md);line-height:20px}
.ab-fin{margin:0;font-size:var(--fz-sm);color:var(--ink-3);line-height:18px}
.ab-lien{align-self:flex-start;min-height:44px;padding:0 4px;border:0;background:none;color:var(--action);font:inherit;font-size:var(--fz-md);font-weight:700;cursor:pointer}
.ab-lien:hover{text-decoration:underline}
.ab-lien:focus-visible,.ab-x:focus-visible{outline:2px solid var(--action);outline-offset:2px;border-radius:var(--r-sm)}
.ab-code-l{display:flex;gap:var(--sp-2)}
.ab-code-l .inp{flex:1;min-width:0;min-height:44px;font-size:16px;text-transform:uppercase}
.ab-code-l .btn{flex:none}
.ab-err{margin:var(--sp-1) 0 0;color:var(--crit);font-size:var(--fz-md)}
.ab-err:empty{display:none}
.ab-code-ok{display:flex;flex-wrap:wrap;align-items:center;gap:var(--sp-2)}
.ab-code-ok .tag{text-transform:none;letter-spacing:0;font-size:var(--fz-sm)}
.ab-x{width:44px;height:44px;border:0;border-radius:var(--r-pill);background:none;color:var(--ink-2);font-size:20px;line-height:1;cursor:pointer}
.ab-x:hover{background:var(--bg)}
.ab-msg{margin:0;padding:var(--sp-3) var(--sp-4);border-radius:var(--r-md);background:var(--action-tint);color:var(--ink);font-size:var(--fz-md)}
.ab-msg.is-ok{background:var(--ok-bg);color:var(--ok)}
.ab-msg.is-err{background:var(--crit-bg);color:var(--crit)}
.ab-mur .pv-in{gap:var(--sp-4)}
.ab-mur h2{font-family:var(--font-title);font-size:var(--fz-h1);font-weight:600;line-height:1.2;outline:none}
.ab-pied{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:var(--sp-4);padding-top:var(--sp-2);border-top:1px solid var(--line)}
/* Écran de choix de la formule (inscription) : en-tête au dégradé de l'accueil, cartes colorées comme tarifs.html (DESIGN.md § 6.15) */
.pv.ab-mur{width:min(880px,calc(100vw - 24px))}
.ab-mur .pv-in.ab-in{gap:0;padding:0}
.ab-hero{position:relative;overflow:hidden;isolation:isolate;display:flex;flex-direction:column;gap:var(--sp-3);padding:var(--sp-6) 28px 28px;background:var(--date-grad);color:var(--date-on)}
.ab-hero::before,.ab-hero::after{content:"";position:absolute;z-index:-1;border-radius:50%;border:18px solid color-mix(in srgb,var(--date-on) 13%,transparent);pointer-events:none}
.ab-hero::before{width:220px;height:220px;right:-40px;top:-90px}
.ab-hero::after{width:150px;height:150px;right:120px;top:-70px;border-width:14px;border-color:color-mix(in srgb,var(--date-on) 9%,transparent)}
.ab-hero-top{display:flex;align-items:center;gap:var(--sp-3)}
.ab-logo{flex:none;width:44px;height:44px;display:grid;place-items:center;border-radius:var(--r-md);background:var(--date-on)}
.ab-logo img{width:32px;height:32px}
.ab-hero-top b{font-size:var(--fz-lg);font-weight:700;line-height:24px}
.ab-hero-top small{font-size:var(--fz-md);line-height:20px}
.ab-mur .ab-hero h2{margin:var(--sp-1) 0 0;max-width:680px;color:var(--date-on)}
.ab-hero .ab-etat{gap:2px}
.ab-hero .ab-ligne{max-width:620px;color:var(--date-on)}
.ab-hero .ab-appel{font-weight:700}
.ab-corps{display:flex;flex-direction:column;gap:var(--sp-5);padding:var(--sp-6) 28px var(--sp-5)}
.ab-in .ab-pied{margin:0 28px;padding:var(--sp-2) 0 var(--sp-4)}
.ab-bill{align-self:center;display:flex;gap:var(--sp-1);margin:0;padding:var(--sp-1);min-width:0;border:1px solid var(--line);border-radius:var(--r-pill);background:var(--surface)}
.ab-bill label{position:relative;display:flex;align-items:center;gap:var(--sp-2);min-height:40px;padding:0 18px;border-radius:var(--r-pill);color:var(--ink-2);font-size:var(--fz-md);font-weight:700;cursor:pointer}
.ab-bill input{position:absolute;inset:0;width:100%;height:100%;margin:0;opacity:0;cursor:pointer}
.ab-bill label:has(input:checked){background:var(--ink);color:var(--bg)}
.ab-bill label:has(input:focus-visible){outline:3px solid var(--action);outline-offset:2px}
.ab-bill label.is-non{opacity:.5;cursor:not-allowed}
.ab-gift{display:inline-flex;align-items:center;gap:var(--sp-1);padding:2px var(--sp-2) 2px 6px;border-radius:var(--r-pill);background:var(--date-grad);color:var(--date-on);font-size:var(--fz-sm);line-height:16px;white-space:nowrap}
.ab-gift svg{width:14px;height:14px}
.ab-cartes{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:var(--sp-4);min-width:0;margin:0;padding:var(--sp-3) 0 0;border:0}
.ab-carte{--ta:var(--ab-f1);position:relative;display:flex;flex-direction:column;gap:2px;min-width:0;padding:var(--sp-6) var(--sp-5) var(--sp-5);border:2px solid transparent;border-radius:var(--r-card);
  background:linear-gradient(var(--surface),var(--surface)) padding-box,linear-gradient(var(--line),var(--line)) border-box;cursor:pointer}
.ab-c2{--ta:var(--ab-f2)}
.ab-c3{--ta:var(--ab-f3)}
.ab-carte>input{position:absolute;inset:0;width:100%;height:100%;margin:0;opacity:0;cursor:pointer}
.ab-carte:hover{background:linear-gradient(var(--surface),var(--surface)) padding-box,linear-gradient(var(--ta),var(--ta)) border-box}
.ab-carte:has(input:checked){background:linear-gradient(color-mix(in srgb,var(--ta) 6%,var(--surface)),color-mix(in srgb,var(--ta) 6%,var(--surface))) padding-box,var(--date-grad) border-box}
.ab-carte:has(input:focus-visible){outline:3px solid var(--action);outline-offset:3px}
.ab-carte.is-non{opacity:.5;cursor:not-allowed}
.ab-carte.is-non>input{cursor:not-allowed}
.ab-badge{position:absolute;top:-12px;left:50%;transform:translateX(-50%);padding:4px var(--sp-3);border-radius:var(--r-pill);background:var(--date-grad);color:var(--date-on);font-size:var(--fz-sm);font-weight:700;line-height:16px;letter-spacing:.06em;text-transform:uppercase;white-space:nowrap}
.ab-coche{position:absolute;top:14px;right:14px;width:24px;height:24px;display:grid;place-items:center;border:2px solid var(--line-strong);border-radius:50%;color:transparent}
.ab-coche svg{width:14px;height:14px;stroke-width:3}
.ab-carte:has(input:checked) .ab-coche{border-color:var(--ta);background:var(--ta);color:var(--surface)}
.ab-ico{width:44px;height:44px;display:grid;place-items:center;margin-bottom:var(--sp-2);border-radius:var(--r-card);background:color-mix(in srgb,var(--ta) 14%,var(--surface));color:var(--ta)}
.ab-ico svg{width:22px;height:22px}
.ab-nom{font-family:var(--font-title);font-size:var(--fz-h2);font-weight:600;line-height:28px}
.ab-team{color:var(--ta);font-size:var(--fz-md);font-weight:700;line-height:20px}
.ab-prix{display:flex;flex-wrap:wrap;align-items:flex-end;gap:2px var(--sp-2);margin-top:var(--sp-3);padding-top:var(--sp-3);border-top:1px solid var(--line-soft)}
.ab-prix b{font-family:var(--font-title);font-size:var(--fz-display);font-weight:600;line-height:44px;letter-spacing:-.03em;font-variant-numeric:tabular-nums;white-space:nowrap}
.ab-prix span{padding-bottom:4px;color:var(--ink-2);font-size:var(--fz-md);font-weight:700;line-height:20px}
.ab-sous{min-height:32px;color:var(--ink-3);font-size:var(--fz-sm);line-height:16px}
.ab-pts{display:flex;flex-direction:column;gap:6px;margin-top:var(--sp-3);color:var(--ink-2);font-size:var(--fz-md);line-height:20px}
.ab-pts>span{display:flex;align-items:flex-start;gap:var(--sp-2)}
.ab-pts svg,.ab-plus svg{flex:none;width:18px;height:18px;margin-top:1px;padding:3px;border-radius:50%;background:color-mix(in srgb,var(--ta) 14%,var(--surface));color:var(--ta);stroke-width:3}
.ab-choix{container:ab-choix/inline-size;display:flex;flex-direction:column;gap:var(--sp-5);min-width:0}
.ab-choix>.ab-lien{align-self:center}
.ab-card .ab-choix{margin-top:var(--sp-2)}
.ab-go{display:flex;align-items:center;justify-content:center;gap:10px;width:100%;min-height:52px;padding:var(--sp-3) var(--sp-6);border:0;border-radius:var(--r-pill);background:var(--date-grad);color:var(--date-on);font:inherit;font-size:var(--fz-lg);font-weight:700;line-height:24px;text-align:center;cursor:pointer}
.ab-go svg{flex:none;width:20px;height:20px}
.ab-go:hover{filter:brightness(1.1) saturate(1.1)}
.ab-go:focus-visible{outline:3px solid var(--action);outline-offset:3px}
.ab-go:disabled{opacity:.65;cursor:progress;filter:none}
.ab-plus{--ta:var(--action);display:flex;flex-wrap:wrap;justify-content:center;gap:var(--sp-2) var(--sp-5);margin:0;padding:0;list-style:none;color:var(--ink-2);font-size:var(--fz-md);font-weight:700;line-height:20px}
.ab-plus li{display:flex;align-items:center;gap:6px}
.ab-plus svg{margin-top:0}
.ab-fin-c{margin-top:calc(-1 * var(--sp-3));text-align:center}
@media (prefers-reduced-motion:no-preference){
  .ab-carte{transition:transform .2s cubic-bezier(.2,.7,.2,1)}
  .ab-carte:not(.is-non):hover{transform:translateY(-3px)}
  .ab-go svg{transition:transform .2s}
  .ab-go:hover svg{transform:translateX(3px)}
  .ab-bill label{transition:background-color .2s,color .2s}
}
@media (max-width:700px){
  .ab-hero{padding:var(--sp-5) var(--sp-4) var(--sp-6)}
  .ab-corps{padding:var(--sp-5) var(--sp-4) var(--sp-4)}
  .ab-in .ab-pied{margin:0 var(--sp-4)}
}
/* Cartes des formules empilées quand la place manque (téléphone, carte étroite des Réglages) */
@container ab-choix (max-width:640px){
  .ab-cartes{grid-template-columns:minmax(0,1fr);gap:var(--sp-5)}
  .ab-carte{display:grid;grid-template-columns:44px minmax(0,1fr) auto;align-items:center;column-gap:var(--sp-3);row-gap:2px;padding:var(--sp-5) var(--sp-4) var(--sp-4)}
  .ab-ico{grid-row:1/3;margin:0}
  .ab-nom,.ab-team{grid-column:2;min-width:0}
  .ab-prix{grid-column:3;grid-row:1/3;flex-direction:column;align-items:flex-end;gap:0;margin:0 32px 0 0;padding:0;border:0}
  .ab-prix b{font-size:var(--fz-h1);line-height:34px}
  .ab-prix span{padding:0;font-size:var(--fz-sm);line-height:16px}
  .ab-sous{grid-column:1/-1;min-height:0;margin-top:var(--sp-2)}
  .ab-pts{display:none}
  .ab-coche{top:12px;right:12px}
  .ab-bill{align-self:stretch}
  .ab-bill label{flex:1;justify-content:center;padding:0 var(--sp-3)}
}
.ab-toast{--lien:#D4C8FF;position:fixed;left:var(--sp-5);bottom:calc(var(--sp-5) + env(safe-area-inset-bottom,0px));z-index:95;display:flex;align-items:center;gap:var(--sp-4);
  max-width:min(480px,calc(100vw - 32px));padding:var(--sp-2) var(--sp-2) var(--sp-2) var(--sp-4);border-radius:var(--r-md);background:var(--ink);color:var(--surface);font-size:var(--fz-md);font-weight:600}
.ab-toast[hidden]{display:none}
.ab-toast button{flex:none;min-height:44px;padding:0 var(--sp-2);border:0;background:none;color:var(--lien);font:inherit;font-weight:700;cursor:pointer}
@media (prefers-color-scheme:dark){:root:not([data-theme="light"]) .ab-toast{--lien:#5B21B6}}
:root[data-theme="dark"] .ab-toast{--lien:#5B21B6}
[data-ui="tel"] .ab-toast{left:var(--sp-4);bottom:calc(110px + env(safe-area-inset-bottom,0px))}
@media print{.ab-toast,.ab-mur{display:none!important}}
