/* RÉTROPLANNING (0.8.0 ; blocks/retro-frise.ejs, lib/retro.js) :
   frise des jalons en Gantt léger SVG (≥ 560 px de conteneur) et
   liste verticale lisible sur mobile. Couleurs : fait = vert,
   prochain = rouge d'action, retard = alerte, à venir = encre
   atténuée. Jamais la couleur seule : ✓ / ! et texte. */
.rp{ display:grid; gap:var(--pad-ligne, 14px); min-width:0; container-type:inline-size; }
.rp-tete{ display:flex; flex-wrap:wrap; gap:8px 16px; align-items:center; font-size:.9rem; color:var(--texte); line-height:1.5; }
.rp-compte{ font:500 .72rem var(--f-mono); letter-spacing:.08em; text-transform:uppercase; color:var(--muted); padding:4px 10px; border:1px solid var(--ligne); border-radius:999px; }
.rp-compte b{ color:var(--encre); }
.rp-prochain b{ color:var(--encre); }
.rp-alerte{ display:inline-flex; gap:6px; align-items:center; color:var(--alert); font-weight:600; font-size:.86rem; }
.rp-alerte .ico{ width:16px; height:16px; }
.rp-gantt{ display:grid; gap:2px; min-width:0; --rp-l:160px; --rp-d:110px; }
.rp-axe, .rp-row{ display:grid; grid-template-columns:var(--rp-l) minmax(0, 1fr); gap:0 12px; align-items:center; min-height:28px; }
.rp-axe{ min-height:22px; margin-bottom:6px; }
.rp-axe-t, .rp-row-t{ position:relative; height:100%; min-height:28px; margin-right:var(--rp-d); }
.rp-axe-t{ min-height:22px; }
.rp-rep{ position:absolute; left:var(--x); top:0; transform:translateX(-50%); font:500 .66rem var(--f-mono); color:var(--muted); letter-spacing:.04em; white-space:nowrap; }
.rp-rep.rp-auj b{ color:var(--accent); } .rp-rep.rp-lim b{ color:var(--alert); }
.rp-rep b{ font-weight:600; }
.rp-row-l{ font-size:.86rem; color:var(--encre); font-weight:500; line-height:1.45; }
.rp-row.fait .rp-row-l{ color:var(--muted); }
.rp-ligne{ position:absolute; left:var(--x); top:-2px; bottom:-2px; width:1px; background:var(--ligne); }
.rp-ligne.rp-auj{ background:var(--accent); width:1.5px; } .rp-ligne.rp-lim{ background:var(--alert); width:1.5px; }
.rp-bar{ position:absolute; top:50%; height:10px; margin-top:-5px; left:var(--a); width:max(4px, calc(var(--b) - var(--a))); border-radius:5px; background:var(--ligne-forte); }
.rp-row.fait .rp-bar{ background:var(--ok); } .rp-row.prochain .rp-bar{ background:var(--accent); } .rp-row.retard .rp-bar{ background:var(--alert); }
.rp-pt{ position:absolute; top:50%; left:var(--x); width:12px; height:12px; margin:-6px 0 0 -6px; border-radius:50%; background:var(--carte); border:2px solid var(--encre); box-sizing:border-box; z-index:1; }
.rp-row.fait .rp-pt{ background:var(--ok); border-color:var(--ok); } .rp-row.prochain .rp-pt{ border-color:var(--accent); box-shadow:0 0 0 3px rgba(var(--accent-rgb), .18); } .rp-row.retard .rp-pt{ background:var(--alert); border-color:var(--alert); }
.rp-date{ position:absolute; left:calc(var(--x) + 12px); top:50%; transform:translateY(-50%); font:500 .72rem var(--f-mono); color:var(--muted); white-space:nowrap; }
.rp-row.retard .rp-date{ color:var(--alert); font-weight:600; }
@container (max-width: 760px){ .rp-gantt{ --rp-l:110px; --rp-d:80px; } .rp-row-l{ font-size:.78rem; } }
/* Liste verticale : mobile (ou conteneur étroit), et toujours quand
   des actions sont proposées (édition) */
.rp-liste{ list-style:none; margin:0; padding:0; display:grid; gap:0; }
.rp-item{ display:grid; grid-template-columns:18px minmax(0, 1fr); gap:0 12px; position:relative; padding:var(--pad-ligne, 14px) 0; border-top:1px solid var(--ligne); }
.rp-item:first-child{ border-top:0; }
.rp-pt-l{ width:12px; height:12px; border-radius:50%; margin-top:5px; background:var(--carte); border:2px solid var(--encre); box-sizing:border-box; }
.rp-item.fait .rp-pt-l{ background:var(--ok); border-color:var(--ok); }
.rp-item.prochain .rp-pt-l{ border-color:var(--accent); box-shadow:0 0 0 4px rgba(var(--accent-rgb), .16); }
.rp-item.retard .rp-pt-l{ background:var(--alert); border-color:var(--alert); }
.rp-item-in{ display:grid; gap:4px; min-width:0; }
.rp-item-in b{ color:var(--encre); font-size:.95rem; }
.rp-item.fait .rp-item-in b{ color:var(--muted); text-decoration:line-through; text-decoration-color:rgba(30,127,79,.5); }
.rp-meta{ font-size:.84rem; color:var(--muted); line-height:1.5; }
.rp-retard{ font-style:normal; color:var(--alert); font-weight:600; }
.rp-form{ display:flex; flex-wrap:wrap; gap:8px; align-items:center; margin-top:6px; }
.rp-form input[type=date]{ font:inherit; font-size:.86rem; padding:6px 8px; border:1px solid var(--ligne-forte); border-radius:8px; background:var(--carte); color:var(--encre); min-height:36px; }
@container (min-width: 560px){ .rp:not(:has(.rp-form)) .rp-liste{ display:none; } }
@container (max-width: 559.98px){ .rp-gantt{ display:none; } }
.rp:has(.rp-form) .rp-gantt{ margin-bottom:4px; }
/* Version automobiliste : plus grande, moins dense */
.rp-simple .rp-item-in b{ font-size:1rem; }
/* Écran Rétroplanning (admin) : jalons à venir / en retard */
.rp-agenda{ list-style:none; margin:0; padding:0; display:grid; }
.rp-agenda li{ display:grid; grid-template-columns:auto minmax(0, 1fr) auto; gap:4px 14px; align-items:center; padding:var(--pad-ligne, 14px) 0; border-top:1px solid var(--ligne); }
.rp-agenda li:first-child{ border-top:0; }
.rp-agenda .rp-date-l{ font:500 .8rem var(--f-mono); color:var(--encre); min-width:84px; }
.rp-agenda .retard .rp-date-l{ color:var(--alert); }
/* Réglages des durées : neuf champs en grille */
.rp-durees{ display:grid; grid-template-columns:repeat(auto-fill, minmax(190px, 1fr)); gap:12px 16px; }
.rp-durees label{ display:grid; gap:4px; font-size:.86rem; }
.rp-durees input{ width:100%; }
.rp-total{ font:500 .8rem var(--f-mono); color:var(--muted); }
/* Calendrier : jalon = pastille carrée, distincte des rendez-vous */
.cal-rdv.jalon{ border-left:3px solid var(--encre); background:rgba(var(--accent-rgb), .06); }
.cal-rdv.jalon.retard{ border-left-color:var(--alert); }
.cal-rdv.jalon.fait{ opacity:.6; }

.sr{ position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; }

/* ═══ GANTT INTERACTIF (public/js/retro-gantt.js, 0.8.0) ═══
   Palette SOS : rouge d'action / alerte, encre, carte ; phases en
   couleur de zone (bleu, ambre, vert, rouge). Colonne gauche figée,
   échelle en tête, lignes de 40 px, barres positionnées (left /
   width), glisser en transform (rAF). Mobile : colonne gauche plus
   étroite, barre d'outils qui replie. */
.rg{ --rg-l:250px; --rg-h:40px; display:grid; gap:12px; min-width:0; position:relative; container-type:inline-size; }
.rg.rg-plein{ background:var(--carte); padding:var(--pad-carte, 20px); overflow:auto; }
.rg-bar{ display:flex; flex-wrap:wrap; gap:10px 14px; align-items:center; padding-bottom:12px; border-bottom:1px solid var(--ligne); }
.rg-onglets{ display:flex; gap:4px; flex-wrap:wrap; }
.rg-onglets button, .rg-zoom button{ appearance:none; border:1px solid var(--ligne); background:var(--carte); color:var(--muted); font:600 .8rem var(--f-texte, inherit); padding:7px 12px; border-radius:999px; cursor:pointer; min-height:34px; }
.rg-onglets button[aria-selected="true"]{ background:var(--encre); color:var(--carte); border-color:var(--encre); }
.rg-zoom{ display:flex; gap:4px; flex-wrap:wrap; }
.rg-zoom button[aria-pressed="true"]{ border-color:var(--accent); color:var(--encre); background:rgba(var(--accent-rgb), .08); }
.rg-zoom .rg-auj{ color:var(--accent); }
.rg-filtres{ display:flex; gap:8px; flex-wrap:wrap; align-items:center; }
.rg-filtres select, .rg-q input{ font:inherit; font-size:.84rem; padding:6px 10px; border:1px solid var(--ligne-forte); border-radius:8px; background:var(--carte); color:var(--encre); min-height:34px; }
.rg-q{ position:relative; display:inline-flex; align-items:center; }
.rg-q input{ padding-right:56px; min-width:200px; }
.rg-q kbd{ position:absolute; right:8px; font:500 .6rem var(--f-mono); color:var(--muted); border:1px solid var(--ligne); border-radius:4px; padding:1px 5px; }
.rg-togs{ display:flex; gap:10px; flex-wrap:wrap; margin-left:auto; }
.rg-tog{ appearance:none; border:0; background:none; color:var(--muted); font:500 .78rem var(--f-texte, inherit); display:inline-flex; align-items:center; gap:7px; cursor:pointer; min-height:34px; padding:0 2px; }
.rg-tog i{ width:30px; height:16px; border-radius:999px; background:var(--ligne-forte); position:relative; transition:background var(--mvt-hover, 120ms); }
.rg-tog i::after{ content:""; position:absolute; top:2px; left:2px; width:12px; height:12px; border-radius:50%; background:#fff; transition:transform var(--mvt-hover, 120ms); }
.rg-tog[aria-checked="true"]{ color:var(--encre); } .rg-tog[aria-checked="true"] i{ background:var(--accent); } .rg-tog[aria-checked="true"] i::after{ transform:translateX(14px); }
/* Gantt */
.rg-g{ display:grid; grid-template-columns:var(--rg-l) minmax(0, 1fr); border:1px solid var(--ligne); border-radius:12px; overflow:hidden; background:var(--carte); }
.rg-gauche{ border-right:1px solid var(--ligne); position:relative; z-index:3; background:var(--carte); }
.rg-gh{ height:52px; display:flex; align-items:flex-end; padding:0 12px 8px; font:600 .62rem var(--f-mono); letter-spacing:.1em; text-transform:uppercase; color:var(--muted); border-bottom:1px solid var(--ligne); }
.rg-gl{ position:relative; }
.rg-gr{ position:absolute; left:0; right:0; height:var(--rg-h); display:flex; align-items:center; gap:8px; padding:0 10px 0 12px; border-bottom:1px solid var(--ligne); min-width:0; }
.rg-grp{ background:color-mix(in srgb, var(--encre) 4%, var(--carte)); font-weight:700; }
.rg-grp.courante{ box-shadow:inset 3px 0 0 var(--accent); }
.rg-gr:not(.rg-grp){ padding-left:30px; }
.rg-plier{ appearance:none; border:0; background:none; color:var(--muted); cursor:pointer; width:18px; padding:0; font-size:.9rem; }
.rg-nom{ display:grid; min-width:0; line-height:1.2; }
.rg-nom b{ font-size:.84rem; color:var(--encre); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.rg-nom small{ font-size:.68rem; color:var(--muted); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.rg-gr.fait .rg-nom b{ color:var(--muted); text-decoration:line-through; text-decoration-color:rgba(30,127,79,.5); }
.rg-gr.retard .rg-nom small{ color:var(--alert); }
.rg-pct{ margin-left:auto; font-size:.7rem; color:var(--muted); flex:none; }
.rg-lien{ text-decoration:none; color:var(--accent); flex:none; }
.rg-dot{ width:8px; height:8px; border-radius:50%; background:var(--c, var(--muted)); flex:none; }
.rg-th{ width:9px; height:9px; border-radius:50%; flex:none; background:var(--muted); box-shadow:0 0 8px currentColor; }
.rg-th.z-confortable{ background:var(--ok); color:var(--ok); } .rg-th.z-anticiper{ background:var(--info); color:var(--info); }
.rg-th.z-urgent{ background:var(--warn); color:var(--warn); } .rg-th.z-depasse{ background:var(--alert); color:var(--alert); }
.rg-droite{ overflow-x:auto; overflow-y:hidden; position:relative; }
.rg-dh{ height:52px; position:relative; border-bottom:1px solid var(--ligne); background:var(--carte); }
.rg-dh1, .rg-dh2{ position:relative; height:26px; }
.rg-dh1 span{ position:absolute; top:0; height:26px; display:flex; align-items:center; padding:0 8px; font:600 .62rem var(--f-mono); letter-spacing:.06em; text-transform:uppercase; color:var(--muted); border-left:1px solid var(--ligne); white-space:nowrap; overflow:hidden; }
.rg-dh2 .rg-j{ position:absolute; top:0; height:26px; display:grid; justify-items:center; align-content:center; font:500 .62rem var(--f-mono); color:var(--muted); border-left:1px solid var(--ligne); line-height:1; }
.rg-dh2 .rg-j i{ font-style:normal; font-size:.5rem; opacity:.7; }
.rg-dh2 .rg-j.we{ color:var(--muted); opacity:.7; } .rg-dh2 .rg-j.auj{ color:var(--accent); font-weight:700; }
.rg-dh-mois .rg-dh2{ display:none; } .rg-dh-mois .rg-dh1{ height:52px; } .rg-dh-mois .rg-dh1 span{ height:52px; }
.rg-grille{ position:relative; min-height:var(--rg-h); }
.rg-bandes i{ position:absolute; top:0; bottom:0; display:block; }
.rg-b.we{ background:rgba(var(--accent-rgb), .025); }
.rg-b.ferie{ background:repeating-linear-gradient(135deg, rgba(var(--accent-rgb), .10) 0 4px, transparent 4px 10px); }
.rg-b.ferme{ background:rgba(90,98,112,.12); }
.rg-r{ position:absolute; left:0; height:var(--rg-h); border-bottom:1px solid var(--ligne); }
.rg-pbar{ position:absolute; top:15px; height:10px; border-radius:5px; background:color-mix(in srgb, var(--c) 30%, transparent); overflow:hidden; }
.rg-pbar i{ display:block; height:100%; background:var(--c); border-radius:5px; }
.rg-lim-m{ position:absolute; top:6px; bottom:6px; width:2px; border-left:2px dashed var(--alert); }
.rg-bar-t{ position:absolute; top:9px; height:22px; border-radius:6px; background:color-mix(in srgb, var(--c) 28%, var(--carte)); border:1px solid color-mix(in srgb, var(--c) 60%, transparent); color:var(--encre); font:500 .68rem var(--f-mono); display:flex; align-items:center; padding:0 8px; cursor:pointer; overflow:visible; box-sizing:border-box; touch-action:none; user-select:none; transition:box-shadow var(--mvt-hover, 120ms), opacity var(--mvt-hover, 120ms); }
.rg-bar-t:hover, .rg-bar-t:focus-visible{ box-shadow:0 0 0 3px rgba(var(--accent-rgb), .18), var(--ombre-douce); z-index:2; }
.rg-bar-t .rg-fill{ position:absolute; left:0; top:0; bottom:0; background:var(--c); opacity:.55; border-radius:5px 0 0 5px; pointer-events:none; }
.rg-bar-t .rg-lbl{ position:relative; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.rg-bar-t.fait{ opacity:.7; } .rg-bar-t.fait .rg-fill{ opacity:.8; }
.rg-bar-t.retard{ border-color:var(--alert); } .rg-bar-t.retard .rg-fill{ background:var(--alert); }
.rg-bar-t.bloque{ background:repeating-linear-gradient(135deg, rgba(200,32,26,.18) 0 4px, transparent 4px 8px); }
.rg-bar-t.prochain{ box-shadow:0 0 0 2px var(--accent); }
.rg-bar-t.manuel::before{ content:""; position:absolute; top:-4px; right:-4px; width:7px; height:7px; border-radius:50%; background:var(--encre); }
.rg-bar-t .rg-los{ position:absolute; right:-7px; top:4px; width:12px; height:12px; transform:rotate(45deg); background:var(--carte); border:2px solid var(--c); border-radius:2px; }
.rg-bar-t.fait .rg-los{ background:var(--c); } .rg-bar-t.retard .rg-los{ background:var(--alert); border-color:var(--alert); }
.rg-h{ position:absolute; top:0; bottom:0; width:10px; cursor:ew-resize; z-index:2; }
.rg-h1{ left:-4px; } .rg-h2{ right:-4px; }
.rg-bar-t.glisse{ opacity:.85; box-shadow:0 10px 24px -10px rgba(0,0,0,.5); z-index:5; transition:none; }
.rg-crit-on .rg-bar-t:not(.crit):not(.fait){ opacity:.35; }
.rg-crit-on .rg-bar-t.crit{ box-shadow:0 0 0 2px var(--alert), 0 0 14px rgba(200,32,26,.35); }
.rg-deps{ position:absolute; inset:0; pointer-events:none; overflow:visible; }
.rg-deps path{ fill:none; stroke:var(--ligne-forte); stroke-width:1.2; }
.rg-deps path.crit{ stroke:var(--alert); stroke-width:1.5; }
.rg-deps .rg-fl{ stroke-linejoin:round; }
.rg-auj-l, .rg-lim-l{ position:absolute; top:0; bottom:0; width:0; pointer-events:none; z-index:2; }
.rg-auj-l{ border-left:2px solid var(--accent); box-shadow:0 0 12px rgba(var(--accent-rgb), .6); }
.rg-lim-l{ border-left:2px dashed var(--alert); }
.rg-auj-l b, .rg-lim-l b{ position:absolute; top:4px; left:4px; font:600 .56rem var(--f-mono); letter-spacing:.08em; text-transform:uppercase; white-space:nowrap; color:var(--carte); background:var(--accent); padding:2px 6px; border-radius:4px; }
.rg-lim-l b{ background:var(--alert); left:auto; right:4px; top:auto; bottom:4px; }
/* Kanban */
.rg-k{ display:grid; grid-template-columns:repeat(auto-fit, minmax(200px, 1fr)); gap:12px; }
.rg-col{ min-width:0; border:1px solid var(--ligne); border-radius:12px; background:color-mix(in srgb, var(--encre) 3%, var(--carte)); padding:12px; min-height:160px; }
.rg-col.sur{ border-color:var(--accent); background:rgba(var(--accent-rgb), .05); }
.rg-col h3{ margin:0 0 10px; font:700 .72rem var(--f-titre); letter-spacing:.1em; text-transform:uppercase; color:var(--muted); display:flex; justify-content:space-between; }
.rg-cards{ display:grid; gap:8px; }
.rg-card{ min-width:0; overflow-wrap:anywhere; text-decoration:none; background:var(--carte); border:1px solid var(--ligne); border-left:3px solid var(--c, var(--muted)); border-radius:10px; padding:12px 14px; display:grid; gap:4px; cursor:grab; box-shadow:var(--ombre-douce); line-height:1.45; }
.rg-card[draggable="false"]{ cursor:pointer; } .rg-card.drag{ opacity:.5; }
.rg-card b{ font-size:.9rem; color:var(--encre); } .rg-card small{ color:var(--muted); font-size:.76rem; }
.rg-mini{ display:block; height:4px; border-radius:2px; background:var(--ligne); overflow:hidden; margin-top:4px; }
.rg-mini i{ display:block; height:100%; background:var(--c); }
.rg-tag{ font:600 .6rem var(--f-mono); letter-spacing:.08em; text-transform:uppercase; color:var(--alert); }
.rg-vide{ color:var(--muted); font-size:.86rem; padding:14px 0; text-align:center; }
/* Jalons : frise verticale + compte à rebours */
.rg-compte{ display:grid; gap:4px; padding:var(--pad-carte, 20px); border:1px solid var(--ligne); border-radius:14px; background:color-mix(in srgb, var(--encre) 3%, var(--carte)); margin-bottom:14px; }
.rg-compte small{ font:600 .64rem var(--f-mono); letter-spacing:.12em; text-transform:uppercase; color:var(--muted); }
.rg-compte b{ font:500 clamp(2rem, 5cqi, 3rem)/1 var(--f-mono); color:var(--accent); }
.rg-frise{ list-style:none; margin:0; padding:0; display:grid; }
.rg-frise li{ display:grid; grid-template-columns:84px 18px minmax(0, 1fr); gap:0 12px; align-items:start; padding:var(--pad-ligne, 14px) 0; position:relative; cursor:pointer; }
.rg-frise li::before{ content:""; position:absolute; left:92px; top:0; bottom:0; width:2px; background:var(--ligne); }
.rg-frise .rg-fd{ font-size:.78rem; color:var(--muted); padding-top:2px; }
.rg-frise .rg-fp{ width:14px; height:14px; margin-top:3px; transform:rotate(45deg); background:var(--carte); border:2px solid var(--c); border-radius:2px; position:relative; z-index:1; }
.rg-frise li.fait .rg-fp{ background:var(--c); } .rg-frise li.retard .rg-fp{ background:var(--alert); border-color:var(--alert); }
.rg-frise .rg-ft{ display:grid; gap:2px; } .rg-frise .rg-ft b{ color:var(--encre); } .rg-frise .rg-ft small{ color:var(--muted); line-height:1.45; }
.rg-frise li.fait .rg-ft b{ color:var(--muted); }
/* Journal */
.rg-journal{ list-style:none; margin:0; padding:0; display:grid; }
.rg-journal li{ display:grid; grid-template-columns:150px minmax(0, 1fr); gap:12px; padding:var(--pad-ligne, 14px) 0; border-top:1px solid var(--ligne); line-height:1.5; font-size:.9rem; }
.rg-journal li:first-child{ border-top:0; } .rg-journal small{ color:var(--muted); }
@container (max-width: 520px){ .rg-journal li{ grid-template-columns:1fr; gap:2px; } }
/* HUD, tiroir, pied, toast */
.rg-hud{ position:absolute; z-index:20; display:grid; gap:2px; min-width:200px; max-width:260px; padding:10px 12px; border-radius:10px; background:var(--encre); color:var(--carte); font-size:.78rem; line-height:1.45; pointer-events:none; box-shadow:0 10px 30px rgba(0,0,0,.3); }
.rg-hud b{ font:700 .8rem var(--f-titre); text-transform:uppercase; letter-spacing:.05em; } .rg-hud em{ font-style:normal; color:#FF9A94; }
.rg-tiroir{ position:absolute; top:0; right:0; bottom:0; width:min(380px, 100%); background:var(--carte); border-left:1px solid var(--ligne); box-shadow:-20px 0 40px -30px rgba(0,0,0,.5); z-index:30; padding:var(--pad-carte, 20px); overflow:auto; display:grid; gap:12px; align-content:start; animation:rgTiroir var(--mvt-tiroir, 220ms) var(--mvt-courbe, ease); }
@keyframes rgTiroir{ from{ transform:translateX(16px); opacity:0; } }
.rg-tiroir header{ display:flex; align-items:center; gap:10px; } .rg-tiroir h3{ margin:0; font-size:1.05rem; flex:1; }
.rg-x{ appearance:none; border:1px solid var(--ligne); background:var(--carte); color:var(--encre); width:34px; height:34px; border-radius:50%; cursor:pointer; font-size:1.1rem; }
.rg-meta{ margin:0; font-size:.84rem; color:var(--muted); line-height:1.5; } .rg-meta .crit{ color:var(--alert); }
.rg-form{ display:grid; gap:10px; } .rg-form label{ display:grid; gap:4px; font-size:.82rem; color:var(--muted); }
.rg-form input, .rg-form select, .rg-form textarea{ font:inherit; font-size:.9rem; padding:8px 10px; border:1px solid var(--ligne-forte); border-radius:8px; background:var(--carte); color:var(--encre); }
.rg-form input[type=range]{ padding:0; accent-color:var(--accent); } .rg-form output{ color:var(--encre); font-family:var(--f-mono); }
.rg-form fieldset{ border:1px solid var(--ligne); border-radius:8px; padding:8px 10px; display:grid; gap:4px; } .rg-form legend{ font-size:.74rem; color:var(--muted); padding:0 4px; }
.rg-chk{ display:flex !important; gap:8px; align-items:center; color:var(--encre) !important; font-size:.84rem !important; }
.rg-actions{ display:flex; gap:8px; flex-wrap:wrap; }
.rg-dl{ display:grid; grid-template-columns:auto 1fr; gap:6px 14px; margin:0; font-size:.88rem; } .rg-dl dt{ color:var(--muted); } .rg-dl dd{ margin:0; }
.rg-pied{ display:flex; gap:10px; align-items:baseline; flex-wrap:wrap; font-size:.86rem; color:var(--muted); padding-top:12px; border-top:1px solid var(--ligne); }
.rg-pied b{ font:500 1.5rem/1 var(--f-mono); color:var(--accent); }
.rg-toast{ position:absolute; left:50%; bottom:16px; transform:translateX(-50%); background:var(--encre); color:var(--carte); padding:10px 14px; border-radius:10px; font-size:.86rem; z-index:40; animation:mvtFondu var(--mvt-tiroir, 220ms) both; }
.rg-busy{ opacity:.7; pointer-events:none; }
@media (max-width:767.98px){ .rg{ --rg-l:132px; } .rg-nom small{ display:none; } .rg-pct{ display:none; } .rg-togs{ margin-left:0; } .rg-q input{ min-width:140px; } .rg-gr:not(.rg-grp){ padding-left:22px; } }
@media (prefers-reduced-motion:reduce){ .rg-tiroir, .rg-toast{ animation:none; } .rg-bar-t, .rg-tog i, .rg-tog i::after{ transition:none; } }
.rp-details{ margin-top:14px; border-top:1px solid var(--ligne); padding-top:10px; }
.rp-details summary{ cursor:pointer; font-size:.86rem; color:var(--muted); padding:6px 0; }
.rp-details[open] summary{ margin-bottom:10px; }
