/* Formula Vault — thème « laboratoire » : sobre, clair, professionnel.
   Accueil : porcelaine et papier millimétré très léger, verrerie de laboratoire en filigrane.
   Autres pages : une teinte et un motif discrets qui rappellent le titre de la page (attribut body[data-fv-screen],
   posé par js/app/page/14-lab-theme.js). Polices système uniquement (la politique de sécurité n'autorise que 'self'). */
:root{
  --lab-ink:#0e1d29;--lab-ink2:#16314a;--lab-steel:#5b6a74;--lab-line:rgba(14,40,56,.10);--lab-gold:#a98b54;--lab-gold-soft:#e9dfc9;
  --lab-serif:"Iowan Old Style","Palatino Linotype","Book Antiqua",Palatino,Georgia,serif;
  --fv-accent:#1f5e78;
  --fv-page:#f5f5f2;
  --fv-pattern:none;
  --ink:#0f2230;--muted:#5d6c76;--line:#dde3e3;--radius:16px;
  --shadow:0 1px 2px rgba(14,40,56,.04),0 12px 32px rgba(14,40,56,.06);
}
body{background:var(--fv-page);font-family:"Segoe UI Variable Text","Segoe UI",Inter,ui-sans-serif,system-ui,-apple-system,sans-serif}
.shell{min-height:100vh;background:var(--fv-pattern),var(--fv-page);background-attachment:fixed;transition:background-color .35s ease}

/* Barre latérale : encre profonde, filet doré sur l'entrée active */
.sidebar{background:linear-gradient(180deg,#0b1822 0%,#0f2433 60%,#0c1c28 100%);box-shadow:inset -1px 0 0 rgba(255,255,255,.04)}
.brandmark{background:linear-gradient(150deg,#21465e,#0d2434);color:#f3ead7;border:1px solid rgba(169,139,84,.55);box-shadow:0 6px 18px rgba(0,0,0,.25);font-family:var(--lab-serif);font-weight:600;letter-spacing:.04em}
.brand strong{font-family:var(--lab-serif);font-weight:600;letter-spacing:.06em;white-space:nowrap}
.brand small{color:#9fb1bd;letter-spacing:.12em}
.nav button{color:#a8b8c3;font-size:.89rem;border-radius:10px}
.nav button:hover{background:rgba(255,255,255,.05);color:#fff}
.nav button.active{background:rgba(255,255,255,.07);color:#fff;box-shadow:inset 2px 0 0 var(--lab-gold)}
.nav .ico{color:#7f97a6}
.nav button.active .ico{color:var(--lab-gold)}

/* Barre du haut : verre dépoli, filet fin */
.topbar{background:rgba(252,252,250,.82);backdrop-filter:blur(16px);border-bottom:1px solid var(--lab-line)}
#topTitle{font-family:var(--lab-serif);font-weight:600;font-size:1.02rem;letter-spacing:.01em}
.avatar{background:var(--lab-ink2);box-shadow:0 0 0 2px #fff,0 0 0 3px var(--lab-gold-soft)}

/* Typographie et cartes */
.eyebrow{color:var(--fv-accent);letter-spacing:.18em;font-weight:700;font-size:.66rem}
.screen-head{padding-bottom:16px;border-bottom:1px solid var(--lab-line);margin-bottom:24px}
.screen h1,.screen-head h1{font-family:var(--lab-serif);font-weight:600;letter-spacing:-.01em;font-size:1.95rem;color:var(--lab-ink)}
.card h2,.card h3{font-family:var(--lab-serif);font-weight:600;letter-spacing:0;color:var(--lab-ink)}
.card{background:rgba(255,255,255,.94);border:1px solid var(--lab-line);border-radius:var(--radius);box-shadow:var(--shadow)}
.card.flat{background:rgba(255,255,255,.88)}
.lead{color:var(--muted)}
.btn{border-radius:10px;border-color:rgba(14,40,56,.16);font-weight:650}
.btn.primary{background:linear-gradient(160deg,#1b3c56,#0f2638);border-color:#0f2638;color:#fff;box-shadow:0 6px 16px rgba(14,40,56,.18)}
.btn.primary:hover{box-shadow:0 10px 22px rgba(14,40,56,.24)}
.btn.sky{background:#f1f5f6;border-color:rgba(31,94,120,.25);color:#1f5e78}
.chip.selected,.fv-notch.selected{background:var(--lab-ink2);border-color:var(--lab-ink2)}
.kpi strong{font-family:var(--lab-serif);font-weight:600;font-size:2rem;color:var(--lab-ink)}
.kpi small{text-transform:uppercase;letter-spacing:.12em;font-size:.64rem;color:var(--lab-steel)}
.kpi .trend{color:var(--fv-accent)}

/* ---------- Accueil : laboratoire, porcelaine ---------- */
body[data-fv-screen="home"]{--fv-accent:#1f5e78;--fv-page:#f4f4f1;
  --fv-pattern:radial-gradient(1200px 520px at 70% -10%,rgba(255,255,255,.95),rgba(255,255,255,0) 70%),url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32'%3E%3Cpath d='M32 0H0V32' fill='none' stroke='%230f2a3a' stroke-opacity='.045'/%3E%3C/svg%3E")}
#home .home-launch{position:relative;overflow:hidden;text-align:left;padding:58px 56px;border:1px solid var(--lab-line);
  background:linear-gradient(105deg,rgba(255,255,255,.97) 0%,rgba(255,255,255,.93) 52%,rgba(244,246,245,.85) 100%)}
#home .home-launch::before{content:"";position:absolute;left:0;top:0;bottom:0;width:3px;background:linear-gradient(180deg,var(--lab-gold),rgba(169,139,84,0))}
#home .home-launch::after{content:"";position:absolute;right:28px;top:50%;width:380px;height:270px;transform:translateY(-50%);opacity:.9;pointer-events:none;
  background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 380 270' fill='none' stroke='%231f5e78' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cg stroke-opacity='.35'%3E%3Cpath d='M124 46h34M130 46v56L94 204a11 11 0 0 0 10 16h74a11 11 0 0 0 10-16L152 102V46'/%3E%3Cpath d='M106 176h70' stroke-opacity='.6'/%3E%3Cpath d='M214 96v112a9 9 0 0 0 9 9h70a9 9 0 0 0 9-9V96M208 96h12'/%3E%3Cpath d='M222 128h14M222 148h22M222 168h14M222 188h22'/%3E%3Cpath d='M214 150h88' stroke-opacity='.5'/%3E%3Cpath d='M332 50v126a13 13 0 0 0 26 0V50M326 50h38'/%3E%3Cpath d='M332 132h26' stroke-opacity='.55'/%3E%3C/g%3E%3Cg stroke='%23a98b54' stroke-opacity='.55'%3E%3Cpath d='M58 112c0 0-19 23-19 36a19 19 0 0 0 38 0c0-13-19-36-19-36z'/%3E%3Cpath d='M40 40l12-7 12 7v14l-12 7-12-7zM64 54l12 7v14M52 61v14'/%3E%3C/g%3E%3C/svg%3E") center/contain no-repeat}
#home .home-launch>*{position:relative;z-index:1;max-width:560px}
#home .home-launch h1{font-size:2.45rem;margin:10px 0 12px}
#home .home-launch .lead{margin:0 0 26px;max-width:520px}
#home .home-main-action{display:inline-flex;margin:0 14px 0 0;padding:13px 22px;font-size:.95rem}
#home .home-second-action{display:inline-flex;margin:0;text-decoration:none;border-bottom:1px solid currentColor;border-radius:0;padding:4px 0;color:var(--fv-accent)}
#home .source-health{border-left:3px solid var(--lab-gold)}
#home .project-card{border-bottom-color:var(--lab-line);cursor:pointer;border-radius:10px;padding-left:6px;padding-right:6px}
#home .project-card:hover{background:rgba(31,94,120,.04)}
#home .folder{background:#eef2f2;color:var(--fv-accent);font-family:var(--lab-serif)}
#home .fv-home-empty{padding:22px 4px;color:var(--muted);font-size:.86rem}
#home .fv-home-steps{list-style:none;padding:0;margin:14px 0 4px;display:grid;gap:8px}
#home .fv-home-steps li{display:flex;gap:10px;align-items:center;font-size:.86rem;color:var(--muted)}
#home .fv-home-steps li b{width:22px;height:22px;border-radius:50%;display:grid;place-items:center;font-size:.72rem;background:#eef1f1;color:var(--lab-steel)}
#home .fv-home-steps li.done b{background:var(--lab-ink2);color:#fff}
#home .fv-home-steps li.done{color:var(--ink)}
#home .progressbar i{background:linear-gradient(90deg,var(--lab-ink2),var(--fv-accent))}
@media(max-width:1280px){#home .home-launch::after{width:300px;right:-20px;opacity:.35}}
@media(max-width:900px){#home .home-launch{padding:40px 26px}#home .home-launch::after{opacity:.14;right:-60px}#home .home-launch h1{font-size:2rem}}

/* ---------- Une ambiance par page, toujours discrète ---------- */
/* Profil produit : nacre et rose poudré, comme une texture de crème */
body[data-fv-screen="brief"]{--fv-accent:#8a5a6a;--fv-page:#f7f2f1;
  --fv-pattern:radial-gradient(900px 420px at 85% -5%,rgba(236,214,222,.55),rgba(236,214,222,0) 70%),radial-gradient(700px 380px at 0% 100%,rgba(229,222,240,.5),rgba(229,222,240,0) 70%)}
/* Fonctions : bleu ardoise, motif moléculaire */
body[data-fv-screen="needs"]{--fv-accent:#2d5674;--fv-page:#f1f4f7;
  --fv-pattern:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='52'%3E%3Cpath d='M15 1l14 8v16l-14 8-14-8V9zM45 27l14 8v16M29 25l16 2' fill='none' stroke='%232d5674' stroke-opacity='.07'/%3E%3C/svg%3E")}
/* Matières proposées : vert sauge, végétal */
body[data-fv-screen="candidates"]{--fv-accent:#4f6f52;--fv-page:#f2f5f0;
  --fv-pattern:radial-gradient(900px 420px at 90% -10%,rgba(214,228,208,.6),rgba(214,228,208,0) 70%),url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24'%3E%3Ccircle cx='2' cy='2' r='1.1' fill='%234f6f52' fill-opacity='.12'/%3E%3C/svg%3E")}
/* Formule : bleu d'eau, feuille quadrillée */
body[data-fv-screen="formula"]{--fv-accent:#1d6a78;--fv-page:#eff5f6;
  --fv-pattern:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='28'%3E%3Cpath d='M28 0H0V28' fill='none' stroke='%231d6a78' stroke-opacity='.06'/%3E%3C/svg%3E")}
/* Protocole et batch : acier, papier millimétré */
body[data-fv-screen="protocol"]{--fv-accent:#45586a;--fv-page:#f0f2f4;
  --fv-pattern:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40'%3E%3Cpath d='M40 0H0V40' fill='none' stroke='%2345586a' stroke-opacity='.08'/%3E%3Cpath d='M8 0V40M16 0V40M24 0V40M32 0V40M0 8H40M0 16H40M0 24H40M0 32H40' fill='none' stroke='%2345586a' stroke-opacity='.03'/%3E%3C/svg%3E")}
/* Mes projets : ivoire d'archives, papier ligné */
body[data-fv-screen="history"]{--fv-accent:#7a6440;--fv-page:#f7f4ee;
  --fv-pattern:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='30'%3E%3Cpath d='M0 29.5H10' stroke='%237a6440' stroke-opacity='.07'/%3E%3C/svg%3E")}
/* Résultats et stabilité : bleu glacier */
body[data-fv-screen="results"]{--fv-accent:#2f6487;--fv-page:#eff4f8;
  --fv-pattern:radial-gradient(900px 420px at 80% -10%,rgba(206,224,238,.65),rgba(206,224,238,0) 70%),url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='48'%3E%3Cpath d='M48 0H0V48' fill='none' stroke='%232f6487' stroke-opacity='.045'/%3E%3C/svg%3E")}
/* Diagnostic : sable clair, réticule d'analyse */
body[data-fv-screen="diagnostic"]{--fv-accent:#8a6a3a;--fv-page:#f7f5ef;
  --fv-pattern:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='64'%3E%3Cpath d='M32 26v12M26 32h12' stroke='%238a6a3a' stroke-opacity='.10'/%3E%3C/svg%3E")}
/* Mémoire R&D : lavande grise, réseau de connaissances */
body[data-fv-screen="memory"],body[data-fv-screen="rd-map"]{--fv-accent:#5d5a86;--fv-page:#f3f3f7;
  --fv-pattern:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='70' height='70'%3E%3Cg fill='%235d5a86' fill-opacity='.10'%3E%3Ccircle cx='10' cy='12' r='2'/%3E%3Ccircle cx='52' cy='28' r='2'/%3E%3Ccircle cx='26' cy='58' r='2'/%3E%3C/g%3E%3Cpath d='M10 12L52 28L26 58Z' fill='none' stroke='%235d5a86' stroke-opacity='.05'/%3E%3C/svg%3E")}
/* Sources : papier de bibliothèque */
body[data-fv-screen="sources"],body[data-fv-screen="scienceCore"],body[data-fv-screen="research"]{--fv-accent:#6b5a3a;--fv-page:#f6f4ef;
  --fv-pattern:radial-gradient(900px 420px at 85% -10%,rgba(236,228,210,.6),rgba(236,228,210,0) 70%),url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='26'%3E%3Cpath d='M0 25.5H10' stroke='%236b5a3a' stroke-opacity='.05'/%3E%3C/svg%3E")}
/* Stock : gris béton, étagères */
body[data-fv-screen="stock"]{--fv-accent:#55606a;--fv-page:#f1f2f2;
  --fv-pattern:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='60'%3E%3Cpath d='M0 59.5H120' stroke='%2355606a' stroke-opacity='.07'/%3E%3C/svg%3E")}
/* Parfum et couleur : rose doré */
body[data-fv-screen="sensory"]{--fv-accent:#94644f;--fv-page:#f8f2ee;
  --fv-pattern:radial-gradient(900px 420px at 85% -10%,rgba(240,218,204,.6),rgba(240,218,204,0) 70%)}
/* Entreprise et administration : ardoise neutre, rayure fine */
body[data-fv-screen="enterprise"],body[data-fv-screen="admin"]{--fv-accent:#3c4f60;--fv-page:#f0f2f4;
  --fv-pattern:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14'%3E%3Cpath d='M0 14L14 0' stroke='%233c4f60' stroke-opacity='.035'/%3E%3C/svg%3E")}

@media (prefers-reduced-motion:reduce){.shell{transition:none}}
/* Fonction principale / secondaire (fiche de traçabilité) */
.fv-rank-line{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin:6px 0 10px}
.fv-rank{font-size:.78rem;font-weight:700;padding:3px 9px;border-radius:999px;border:1px solid}
.fv-rank.main{color:#1f5e78;background:#eef5f8;border-color:rgba(31,94,120,.3)}
.fv-rank.second{color:#6b5a2e;background:#f8f4ea;border-color:rgba(107,90,46,.3)}
.fv-rank-line small{color:#5c6b72}
.fv-rank-btn{font:inherit;font-size:.78rem;padding:3px 10px;border-radius:6px;border:1px solid rgba(31,94,120,.25);background:#fff;color:#1f5e78;cursor:pointer}
.fv-rank-btn.on{background:#1f5e78;color:#fff}
/* Carte de proposition : rubriques à titre visible, citations et confirmations en vert. */
.fv-summary-rows{margin:6px 0 10px;border-top:1px solid var(--line)}
.fv-summary-rows>div{padding:5px 0;border-bottom:1px solid var(--line)}
.fv-rubric{margin:12px 0;padding:10px 12px;border:1px solid var(--line);border-left:4px solid var(--blue);border-radius:8px;background:#fff}
.fv-rubric .fv-why-title,.fv-rubric .fv-crit-family{margin:0 0 8px;font-size:.92rem;font-weight:800;letter-spacing:0;text-transform:none;color:var(--ink)}
.fv-rubric ul,.fv-proposal .fv-rubric .fv-warnings{margin:0;padding-left:18px;min-height:0}
.fv-rubric li{margin:0 0 6px}
.fv-rubric li:last-child{margin-bottom:0}
.candidate small.fv-cite,.fv-cite.fv-cite,.fv-sheet-proof small{display:block;margin-top:5px;padding:5px 8px;border-left:3px solid var(--green);border-radius:4px;background:var(--greenbg);color:#17634a;font-weight:600}
.fv-benefit-ok,.fv-benefit-ok>strong{color:#17634a}
div.fv-benefit-ok{padding:6px 8px;border-radius:6px;background:var(--greenbg);border:1px solid var(--green)}

/* Fiche matière consolidée : en-tête, rubriques à titre visible, pastilles de labels, citations dépliables. */
.v233-meta>.fv-sheet-head{grid-column:1/-1;padding:14px 16px;border:1px solid var(--line);border-left:4px solid var(--fv-accent);border-radius:12px;background:#fbfdfe}
.v233-meta .fv-sheet-head div{border:0;padding:0;background:none;border-radius:0}
.fv-sheet-head-top{display:flex;flex-wrap:wrap;align-items:center;gap:8px 12px}
.fv-sheet-name{font-size:1.05rem;color:var(--ink)}
.fv-sheet-status{display:inline-block;padding:3px 10px;border-radius:999px;font-size:.78rem;font-weight:800;border:1px solid currentColor}
.fv-sheet-status.st-avalider{color:#8a5a00;background:#fff6e0}
.fv-sheet-status.st-validee{color:#17634a;background:#e9f7f0}
.fv-sheet-status.st-arbitrer{color:#9a3b22;background:#fdeee8}
.fv-sheet-status.st-quarantaine{color:#5b3f99;background:#f2edfb}
.fv-sheet-status.st-rejetee{color:#6b7280;background:#f3f4f6}
.v233-meta small.fv-sheet-hint{margin:6px 0 0;color:var(--muted)}
.fv-sheet-ids{display:grid;grid-template-columns:repeat(auto-fit,minmax(190px,1fr));gap:6px 16px;margin-top:10px}
.fv-sheet-id-row{margin:0;display:flex;flex-direction:column;gap:1px;min-width:0}
.fv-sheet-id-row span{font-size:.72rem;color:var(--muted)}
.fv-sheet-id-row strong{overflow-wrap:anywhere}
.fv-sheet-rubric{margin:0}
.fv-sheet-rubric>.fv-sheet-title{margin:0 0 8px;font-size:.95rem;font-weight:800;color:var(--ink)}
.fv-sheet-rubric.fv-sheet-alert{border-left-color:#c26a00;background:#fffaf2}
.fv-sheet-item,.fv-sheet-card{padding:7px 0;border-top:1px solid var(--line);min-width:0}
.fv-sheet-rubric>.fv-sheet-title+.fv-sheet-item,.fv-sheet-rubric>.fv-sheet-title+.fv-sheet-card,.fv-label-pills+.fv-sheet-item{border-top:0}
.fv-sheet-line{display:flex;flex-wrap:wrap;align-items:baseline;gap:4px 10px}
.fv-sheet-k{flex:0 0 190px;color:var(--muted);font-size:.82rem}
.fv-sheet-v{flex:1 1 220px;overflow-wrap:anywhere}
.fv-sheet-state{font-size:.72rem;font-weight:700;color:#8a5a00;background:#fff6e0;border-radius:999px;padding:1px 8px}
.fv-sheet-note{display:block;color:var(--muted);font-size:.76rem;margin-top:2px}
.fv-sheet-cite>summary,.fv-label-pill summary{cursor:pointer;font-size:.78rem;color:#1570a6}
.fv-sheet-cite{margin-top:3px}
.fv-sheet-card>div>small:first-child{display:block;color:var(--muted);font-size:.82rem}
.fv-sheet-actions{display:flex;gap:12px;margin-top:4px}
.fv-rubric ul.fv-label-pills{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 6px;padding:0;list-style:none}
.fv-rubric .fv-label-pill{margin:0;max-width:100%;border:1px solid var(--line);border-radius:12px;padding:4px 10px;background:#fff}
.fv-label-pill summary{color:var(--ink);list-style:none}
.fv-label-pill summary::-webkit-details-marker{display:none}
.fv-label-pill summary strong{margin-right:6px}
.fv-label-pill summary span{color:var(--muted);font-weight:600}
.fv-label-pill.tone-strong{border-color:#9dd8bd;background:#f2fbf7}
.fv-label-pill.tone-weak{border-style:dashed}
.fv-rubric .fv-label-pill:has(details[open]){flex-basis:100%}
/* « Corriger / Rejeter » visible sur chaque pastille ; son formulaire s'ouvre dessous, pastille en pleine largeur. */
.fv-rubric .fv-label-pill{display:flex;flex-wrap:wrap;align-items:center;gap:4px 8px}
.fv-label-pill>details{flex:1 1 auto;min-width:0}
.fv-label-pill .fv-fix-btn{margin-left:0;min-height:26px;padding:1px 8px;font-size:.72rem}
.fv-label-pill>.fv-fix-form{flex-basis:100%}
.fv-rubric .fv-label-pill:has(.fv-fix-form){flex-basis:100%}
.fv-sheet-missing{margin:4px 2px;color:var(--muted);font-size:.8rem}
.fv-sheet-fix>summary,.fv-sheet-docs>summary{font-weight:800}
.fv-sheet-item .fv-property-edit>summary{font-size:.78rem;font-weight:600;color:#1570a6;padding:2px 0}
/* Encadrés de la fiche : un cadre par rubrique, fond et bandeau de titre plus foncés, une teinte discrète par famille.
   Texte sombre sur fond clair teinté et texte blanc sur bandeau foncé (contraste WCAG AA vérifié, au moins 6:1). */
.fv-sheet-rubric{--rb-head:#3b4a57;--rb-body:#dce2e8;--rb-line:#a3b0bb;--rb-ink:#10202a;--rb-mute:#2f4049;--rb-link:#0b3a5a}
.fv-tone-teal{--rb-head:#0f5f66;--rb-body:#d3eaec;--rb-line:#8fbcc0}
.fv-tone-green{--rb-head:#2a6a38;--rb-body:#d8ecd9;--rb-line:#93c096}
.fv-tone-blue{--rb-head:#1f4f86;--rb-body:#d6e3f4;--rb-line:#98b4d8}
.fv-tone-violet{--rb-head:#583b8a;--rb-body:#e2daf1;--rb-line:#b0a0d2}
.fv-tone-rose{--rb-head:#8a2f57;--rb-body:#f2d9e4;--rb-line:#d69db6}
.fv-tone-amber{--rb-head:#8a5200;--rb-body:#f3e3c3;--rb-line:#d4b072}
.fv-tone-orange{--rb-head:#8a3b12;--rb-body:#f2dacb;--rb-line:#d6a98e}
.fv-tone-slate{--rb-head:#3b4a57;--rb-body:#dce2e8;--rb-line:#a3b0bb}
.fv-rubric.fv-sheet-rubric{margin:14px 0;padding:0 0 8px;overflow:hidden;border:2px solid var(--rb-head);border-radius:10px;background:var(--rb-body);color:var(--rb-ink)}
.fv-rubric.fv-sheet-rubric.fv-sheet-alert{border-left:2px solid var(--rb-head);background:var(--rb-body)}
.fv-rubric.fv-sheet-rubric>.fv-sheet-title{margin:0 0 6px;padding:8px 12px;background:var(--rb-head);color:#fff;font-size:.95rem;font-weight:800}
.fv-rubric.fv-sheet-rubric>:not(.fv-sheet-title){margin-left:12px;margin-right:12px}
.fv-rubric.fv-sheet-rubric .fv-sheet-item,.fv-rubric.fv-sheet-rubric .fv-sheet-card{border-top-color:var(--rb-line)}
.fv-sheet-rubric .fv-sheet-k,.fv-sheet-rubric .fv-sheet-note,.fv-sheet-rubric .fv-sheet-card>div>small:first-child,.fv-sheet-rubric .fv-sheet-rejected small{color:var(--rb-mute)}
.fv-sheet-rubric .fv-sheet-cite>summary,.fv-sheet-rubric .fv-sheet-proof>summary,.fv-sheet-rubric .fv-property-edit>summary{color:var(--rb-link);font-weight:600}
.fv-sheet-rubric .fv-sheet-state{background:#fff;color:#6b3f00;border:1px solid #c9a35a}
.fv-sheet-rubric .fv-label-pill summary span{color:var(--rb-mute)}
.fv-sheet-cite,.fv-sheet-proof,.fv-card-value>details{display:block}
.fv-fix-btn{font:inherit;font-size:.78rem;font-weight:700;margin-left:auto;padding:3px 10px;min-height:28px;border:1px solid var(--rb-head,#1f5e78);border-radius:6px;background:#fff;color:var(--rb-link,#0b3a5a);cursor:pointer}
.fv-fix-btn:hover,.fv-fix-btn:focus-visible{background:var(--rb-head,#1f5e78);color:#fff}
.has-fix-toggle .fv-property-edit>summary{display:none}
.fv-sheet-rubric .fv-property-edit[open],.fv-fix-form{margin:6px 0;padding:8px 10px;border:1px solid var(--rb-head,#1f5e78);border-radius:8px;background:#fff;color:#10202a}
.fv-fix-form{display:grid;gap:6px}
.fv-fix-form label{display:grid;gap:2px;font-size:.8rem;font-weight:700}
.fv-fix-form input{width:100%;box-sizing:border-box}
.fv-fix-form small{color:#2f4049}
.fv-fix-actions{display:flex;flex-wrap:wrap;gap:8px}
/* Rappel de la ligne corrigée en tête du formulaire, et champs nommés. */
.fv-fix-target{margin:0 0 4px;padding:4px 8px;border-left:3px solid var(--rb-head,#1f5e78);background:#f4f7f9;color:#10202a;font-size:.82rem}
.fv-fix-field{display:grid;gap:2px;font-size:.8rem;font-weight:700;margin-top:4px}
.fv-sheet-rejected{display:flex;flex-wrap:wrap;align-items:baseline;gap:4px 10px;padding:7px 0;border-top:1px dashed var(--rb-line)}
@media (max-width:640px){
  .fv-sheet-k{flex-basis:100%}
  .fv-fix-btn{min-height:36px;padding:6px 14px}
  .fv-rubric.fv-sheet-rubric>:not(.fv-sheet-title){margin-left:10px;margin-right:10px}
  .v233-modal .v233-dialog{box-sizing:border-box;padding:14px;width:100vw;margin:0;max-height:100vh;border-radius:0}
  .fv-sheet-ids{grid-template-columns:1fr}
}
/* Numérisation assistée d'un radar sensoriel (js/app/page/16-radar-digitizer.js) : au-dessus de la fiche matière. */
.fv-radar-modal{display:none;position:fixed;inset:0;z-index:10050}
.fv-radar-modal.open{display:block}
.fv-radar-backdrop{position:absolute;inset:0;background:rgba(4,20,34,.58)}
.fv-radar-box{position:relative;box-sizing:border-box;margin:2vh auto;width:min(1280px,96vw);max-height:96vh;overflow:auto;background:#fff;border-radius:16px;padding:16px 18px;box-shadow:0 28px 90px rgba(0,0,0,.28);color:#10202a}
.fv-radar-head{display:flex;justify-content:space-between;align-items:flex-start;gap:12px}
.fv-radar-head h2{margin:0}
.fv-radar-body{display:grid;grid-template-columns:minmax(260px,340px) 1fr;gap:16px;margin-top:10px}
.fv-radar-steps{margin:0;padding-left:18px;display:grid;gap:12px}
.fv-radar-steps label{display:grid;gap:3px;font-size:.82rem;font-weight:700}
.fv-radar-steps input[type=text],.fv-radar-steps input[type=number],.fv-radar-steps textarea{width:100%;box-sizing:border-box}
.fv-radar-row{display:flex;flex-wrap:wrap;gap:8px;align-items:end;margin-top:6px}
.fv-radar-row label{flex:1 1 80px}
.fv-radar-check{display:flex!important;align-items:center;gap:6px;font-weight:600!important}
.fv-radar-prompt{margin:12px 0 6px;padding:8px 10px;border-left:4px solid #1f5e78;background:#f4f7f9;font-weight:700}
.fv-radar-curve{margin:4px 0;font-size:.85rem}
.fv-radar-dot{display:inline-block;width:10px;height:10px;border-radius:50%;margin-right:6px}
.fv-radar-errors{color:#9b1c1c;font-size:.82rem;padding-left:18px}
.fv-radar-note{font-size:.78rem;color:#2f4049}
.fv-radar-canvas{overflow:auto;max-height:86vh;border:1px solid #d5dde2;border-radius:8px;background:#f7f9fa}
.fv-radar-canvas canvas{display:block;width:100%;height:auto;cursor:crosshair}
.fv-radar-proof{display:block;max-width:min(360px,100%);height:auto;margin-top:6px;border:1px solid #d5dde2;border-radius:6px}
@media (max-width:760px){.fv-radar-body{grid-template-columns:1fr}.fv-radar-box{width:100vw;margin:0;max-height:100vh;border-radius:0}}