/* Korda V110 — refonte de l'administration, lot 1 : le socle visuel.
   Charte graphique v1 (28 novembre 2026). Tout est limité à l'administration (#view-espace.sa) :
   l'espace des agences, des particuliers et le site public ne changent pas.
   Retirer ce fichier et js/142-refonte-admin.js suffit pour revenir exactement à la V109. */
@font-face{font-family:"Figtree";src:url(../fonts/figtree-var.woff) format("woff");font-weight:300 900;font-style:normal;font-display:swap}

/* ---------- 1. Jetons de la charte (clair) ---------- */
html body #view-espace.sa:not(#k1):not(#k2){
 --kr-brand:#E0703A;--kr-act:#BF4F1A;--kr-act-h:#A84414;--kr-navy:#0F2A3D;--kr-ok:#14756C;--kr-ok-bg:#E6F2F0;--kr-err:#A8321C;--kr-err-bg:#F8E9E5;
 --kr-ink:#222222;--kr-mute:#6A6A6A;--kr-canvas:#FFFFFF;--kr-faint:#F7F7F7;--kr-line:#EBEBEB;--kr-deco:#DDDDDD;--kr-card:#FFFFFF;--kr-on-act:#FFFFFF;
 --kr-sh-float:0 0 0 1px rgba(0,0,0,.02),0 2px 6px rgba(0,0,0,.04),0 4px 8px rgba(0,0,0,.1);--kr-sh-menu:0 6px 20px rgba(0,0,0,.2);--kr-sh-over:0 8px 28px rgba(0,0,0,.28);
 --kr-focus:0 0 0 3px rgba(191,79,26,.2);--kr-txt-act:#BF4F1A;
 --kr-d0:#0F2A3D;--kr-d1:#14756C;--kr-d2:#E0703A;--kr-d3:#6A6A6A;--kr-d4:#DDDDDD;--kr-d5:#A3AFB6;
 --kr-font:"Figtree",-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,sans-serif;
 /* les variables des anciennes couches suivent la charte */
 --e-card:var(--kr-card);--e-line:var(--kr-line);--e-title:var(--kr-ink);--e-text:var(--kr-ink);--e-muted:var(--kr-mute);--e-soft:var(--kr-faint);--e-kick:var(--kr-mute);
 --e-shadow:none;--e-tint:var(--kr-faint);--e-brand:var(--kr-ink);--e-r:12px;
 --sa-s1:var(--kr-d0);--sa-s2:var(--kr-d1);--sa-s3:var(--kr-d2);--sa-s4:var(--kr-d3);--sa-ok:var(--kr-ok);--sa-ok-bg:var(--kr-ok-bg);--sa-r1:8px;--sa-r2:12px;
 --a-r-card:12px;--a-r-ctl:8px;--a-shadow-hover:var(--kr-sh-float);--v10-r:12px;--v10-sh:none;
 --acc:var(--kr-ink);--acc-s:var(--kr-faint);--k-teal-ui:var(--kr-ink);--k-teal-soft:var(--kr-faint);
 font-family:var(--kr-font)!important;color:var(--kr-ink);font-feature-settings:normal;
}
/* ---------- 1 bis. Thème sombre (page 10 de la charte) ---------- */
html[data-theme="dark"] body #view-espace.sa:not(#k1):not(#k2){
 --kr-ok:#6FC9BB;--kr-ok-bg:#17332F;--kr-err:#F0A08F;--kr-err-bg:#3A211C;
 --kr-ink:#F2F5F6;--kr-mute:#A3AFB6;--kr-canvas:#0E1922;--kr-faint:#16232D;--kr-line:#2A3943;--kr-deco:#364752;--kr-card:#15232D;
 --kr-sh-float:0 8px 24px rgba(0,0,0,.5);--kr-sh-menu:0 8px 24px rgba(0,0,0,.5);--kr-sh-over:0 8px 28px rgba(0,0,0,.6);--kr-txt-act:#E0703A;
 --kr-d0:#C7D2D9;--kr-d1:#6FC9BB;--kr-d2:#E0703A;--kr-d3:#5E717E;--kr-d4:#364752;--kr-d5:#8FA3AF;
}

/* ---------- 2. Fond de page : blanc (nuit en sombre), sans dégradé ---------- */
html body:has(#view-espace.sa.active){background:#FFFFFF!important;background-image:none!important}
html[data-theme="dark"] body:has(#view-espace.sa.active){background:#0E1922!important;background-image:none!important}
html body:has(#view-espace.sa.active)::before,html body:has(#view-espace.sa.active)::after{background-image:none!important}

/* ---------- 3. Titres et textes ---------- */
html body #view-espace.sa:not(#k1):not(#k2) :is(h1,h2,h3,h4,p,span,b,strong,small,label,button,input,select,textarea,td,th,li,a,em,time){font-family:var(--kr-font)}
html body #view-espace.sa:not(#k1):not(#k2) #esp-titre{font-size:28px!important;line-height:34px!important;font-weight:700!important;letter-spacing:-.02em!important;color:var(--kr-ink)!important;margin:0 0 2px}
html body #view-espace.sa:not(#k1):not(#k2) #esp-kicker,html body #view-espace.sa:not(#k1):not(#k2) .esp-sub{font-size:14px;line-height:20px;font-weight:400;color:var(--kr-mute)}
html body #view-espace.sa:not(#k1):not(#k2) :is(.sa-h,.esp-h,.kk-h,.sa-h4,.hsa-head h2,.hsa-head h3)::before{display:none!important}
html body #view-espace.sa:not(#k1):not(#k2) :is(.sa-h,.esp-h,.kk-h,.hsa-head h3){padding-left:0;font-size:20px;line-height:24px;font-weight:600;letter-spacing:-.01em;color:var(--kr-ink)}
html body #view-espace.sa:not(#k1):not(#k2) .sa-h4{font-size:16px;line-height:20px;font-weight:600;color:var(--kr-ink)}
html body #view-espace.sa:not(#k1):not(#k2) :is(.sa-sub,.sa-ks,.sa-note,.esp-muted,.k103-mut,.sa-mut,.kk-sub,.kp-sub){color:var(--kr-mute)}
html body #view-espace.sa:not(#k1):not(#k2) :is(.sa-sub,.sa-ks){font-size:14px;line-height:20px}
html body #view-espace.sa:not(#k1):not(#k2) :is(.sa-note,.kk-note){font-size:12px;line-height:16px}
html body #view-espace.sa:not(#k1):not(#k2) :is(.sa-v,.sa-t td,.esp-stat b,.sa-leg b,.kd-stats b,.sa-vtile b,.esp-perf-val,.esp-ann-price){font-variant-numeric:tabular-nums}
html body #view-espace.sa:not(#k1):not(#k2) a:not(.btn){color:var(--kr-ink)}

/* ---------- 4. Menu latéral : à plat, groupes dépliables ---------- */
html body #view-espace.sa:not(#k1):not(#k2) .esp-side{background:var(--kr-faint)!important;background-image:none!important;border:1px solid var(--kr-line)!important;border-radius:12px!important;box-shadow:none!important;-webkit-backdrop-filter:none!important;backdrop-filter:none!important;padding:16px 12px}
html body #view-espace.sa:not(#k1):not(#k2) .esp-side-head{padding:0 4px 8px}
html body #view-espace.sa:not(#k1):not(#k2) .esp-side-t{font-size:14px;line-height:20px;font-weight:600;color:var(--kr-ink)}
html body #view-espace.sa:not(#k1):not(#k2) .esp-collapse{width:32px;height:32px;border-radius:50%;border:1px solid var(--kr-deco);background:var(--kr-card);color:var(--kr-ink)}
html body #view-espace.sa:not(#k1):not(#k2) .esp-collapse:hover{background:var(--kr-faint)}
html body #view-espace.sa:not(#k1):not(#k2) :is(.esp-menu,.esp-side-foot) button{position:relative;min-height:40px;padding:0 12px;border-radius:8px!important;border:0;background:transparent!important;box-shadow:none!important;color:var(--kr-mute)!important;font-size:14px;line-height:20px;font-weight:500;transition:background .18s ease,color .18s ease}
html body #view-espace.sa:not(#k1):not(#k2) :is(.esp-menu,.esp-side-foot) button svg{width:20px;height:20px;color:currentColor!important}
html body #view-espace.sa:not(#k1):not(#k2) :is(.esp-menu,.esp-side-foot) button:hover{background:var(--kr-card)!important;color:var(--kr-ink)!important}
html body #view-espace.sa:not(#k1):not(#k2) .esp-menu button.on{background:var(--kr-card)!important;color:var(--kr-ink)!important;font-weight:600;box-shadow:0 0 0 1px var(--kr-line)!important}
html body #view-espace.sa:not(#k1):not(#k2) .esp-menu button.on::before{content:"";position:absolute;left:0;top:10px;bottom:10px;width:3px;border-radius:0 2px 2px 0;background:var(--kr-act);opacity:1;transform:none}
html body #view-espace.sa:not(#k1):not(#k2) .esp-menu button.on svg{color:var(--kr-ink)!important}
html body #view-espace.sa:not(#k1):not(#k2) .esp-side-foot{border-top:1px solid var(--kr-line)}
html body #view-espace.sa:not(#k1):not(#k2) .sa-g{gap:2px}
html body #view-espace.sa:not(#k1):not(#k2) .sa-gt{color:var(--kr-mute);font-size:12px;line-height:16px;font-weight:600}
html body #view-espace.sa:not(#k1):not(#k2) button.sa-gt{display:flex;align-items:center;justify-content:space-between;width:100%;min-height:32px;margin:8px 0 0;padding:0 8px 0 12px;border:0;border-radius:8px;background:transparent;cursor:pointer;text-align:left;font-family:var(--kr-font)}
html body #view-espace.sa:not(#k1):not(#k2) .sa-g:first-child button.sa-gt{margin-top:0}
html body #view-espace.sa:not(#k1):not(#k2) button.sa-gt:hover{color:var(--kr-ink);background:var(--kr-card)}
html body #view-espace.sa:not(#k1):not(#k2) button.sa-gt svg{width:16px;height:16px;flex:none;transition:transform .22s ease}
html body #view-espace.sa:not(#k1):not(#k2) button.sa-gt[aria-expanded="false"] svg{transform:rotate(-90deg)}
html body #view-espace.sa:not(#k1):not(#k2) .kr-gi{display:grid;grid-template-rows:1fr;transition:grid-template-rows .26s cubic-bezier(.2,.8,.2,1)}
html body #view-espace.sa:not(#k1):not(#k2) .kr-gi>div{min-height:0;overflow:hidden;display:flex;flex-direction:column;gap:2px}
html body #view-espace.sa:not(#k1):not(#k2) .sa-g.kr-ferme .kr-gi{grid-template-rows:0fr}
html body #view-espace.sa:not(#k1):not(#k2) .sa-g.kr-ferme .kr-gi>div{visibility:hidden}
html body #view-espace.sa:not(#k1):not(#k2) .kr-n{margin-left:auto;min-width:22px;height:22px;padding:0 7px;border-radius:999px;background:var(--kr-card);border:1px solid var(--kr-line);color:var(--kr-ink);font-size:12px;line-height:20px;font-weight:600;text-align:center;font-variant-numeric:tabular-nums}
html body #view-espace.sa:not(#k1):not(#k2) .kr-n.kr-alerte{background:var(--kr-act);border-color:var(--kr-act);color:#FFFFFF}
/* menu replié : icônes seules, tous les groupes visibles */
html body #view-espace.sa:not(#k1):not(#k2) .esp-layout.replie button.sa-gt{display:none}
html body #view-espace.sa:not(#k1):not(#k2) .esp-layout.replie .sa-g+.sa-g{border-top:1px solid var(--kr-line);margin-top:8px;padding-top:8px}
html body #view-espace.sa:not(#k1):not(#k2) .esp-layout.replie .sa-g.kr-ferme .kr-gi{grid-template-rows:1fr}
html body #view-espace.sa:not(#k1):not(#k2) .esp-layout.replie .sa-g.kr-ferme .kr-gi>div{visibility:visible}
html body #view-espace.sa:not(#k1):not(#k2) .esp-layout.replie .kr-n{position:absolute;top:2px;right:2px;min-width:18px;height:18px;padding:0 5px;font-size:11px;line-height:16px}

/* ---------- 5. Carte d'identité en haut à droite ---------- */
html body #view-espace.sa:not(#k1):not(#k2) .kd-who{background:var(--kr-card)!important;border:1px solid var(--kr-line)!important;box-shadow:none!important;-webkit-backdrop-filter:none!important;backdrop-filter:none!important;border-radius:999px;padding:4px 14px 4px 4px}
html body #view-espace.sa:not(#k1):not(#k2) .kd-who:hover{background:var(--kr-faint)!important}
html body #view-espace.sa:not(#k1):not(#k2) .kd-id b{color:var(--kr-ink);font-weight:600}
html body #view-espace.sa:not(#k1):not(#k2) .kd-id span{color:var(--kr-mute)}

/* ---------- 6. Cartes : blanches, à plat, filet de 1 px, arrondi 12 ---------- */
html body #view-espace.sa:not(#k1):not(#k2) :is(.sa-card,.sa-kpi,.esp-card,.esp-stat,.esp-empty,.hsa-card,.sa-listcard,.kd-card,.vf-sec,.sa-vtile,.kk,.k9-adm .k9-card,.kp-req,.kg-row){background:var(--kr-card)!important;background-image:none!important;border:1px solid var(--kr-line)!important;border-radius:12px!important;box-shadow:none!important;-webkit-backdrop-filter:none!important;backdrop-filter:none!important;color:var(--kr-ink)}
html body #view-espace.sa:not(#k1):not(#k2) :is(.sa-card,.sa-kpi,.esp-stat){padding:24px}
html body #view-espace.sa:not(#k1):not(#k2) :is(.esp-stat,.sa-kpi)::before{display:none!important}
html body #view-espace.sa:not(#k1):not(#k2) :is(.sa-kpi,.esp-stat,.sa-listcard,.hsa-card,.sa-vtile){transition:transform .25s ease,box-shadow .25s ease!important}
html body #view-espace.sa:not(#k1):not(#k2) :is(.sa-kpi,.esp-stat,.sa-listcard,.hsa-card,.sa-vtile):hover{transform:translateY(-3px);box-shadow:var(--kr-sh-float)!important}
html body #view-espace.sa:not(#k1):not(#k2) :is(.sa-top,.sa-kpis3,.sa-kpis4,.sa-donuts,.sa-3col){gap:16px}
html body #view-espace.sa:not(#k1):not(#k2) .sa-dash{gap:16px}
/* chiffres clés */
html body #view-espace.sa:not(#k1):not(#k2) .sa-kh{gap:12px}
html body #view-espace.sa:not(#k1):not(#k2) :is(.sa-ico,.esp-si){width:40px!important;height:40px!important;border-radius:50%!important;background:var(--kr-faint)!important;border:1px solid var(--kr-line)!important;color:var(--kr-ink)!important}
html body #view-espace.sa:not(#k1):not(#k2) :is(.sa-ico,.esp-si) svg{width:20px;height:20px}
html body #view-espace.sa:not(#k1):not(#k2) .sa-kl{font-size:14px;line-height:20px;font-weight:500;color:var(--kr-ink)}
html body #view-espace.sa:not(#k1):not(#k2) .sa-v{font-size:28px;line-height:34px;font-weight:700;letter-spacing:-.02em;color:var(--kr-ink)}
html body #view-espace.sa:not(#k1):not(#k2) .sa-kpi.main .sa-v{font-size:52px;line-height:54px;letter-spacing:-.035em}
html body #view-espace.sa:not(#k1):not(#k2) .sa-evo{display:inline-flex;align-self:flex-start;align-items:center;padding:3px 10px;border-radius:999px;font-size:12px;line-height:16px;font-weight:600;background:var(--kr-faint);color:var(--kr-mute)}
html body #view-espace.sa:not(#k1):not(#k2) .sa-evo.up{background:var(--kr-ok-bg);color:var(--kr-ok)}
html body #view-espace.sa:not(#k1):not(#k2) .sa-evo.down{background:var(--kr-err-bg);color:var(--kr-err)}
html body #view-espace.sa:not(#k1):not(#k2) .sa-split{height:8px;border-radius:999px;background:var(--kr-line);overflow:hidden}
html body #view-espace.sa:not(#k1):not(#k2) .sa-split i{background:var(--kr-d0);border-radius:999px}
html body #view-espace.sa:not(#k1):not(#k2) .esp-bar{background:var(--kr-line);border-radius:999px}
html body #view-espace.sa:not(#k1):not(#k2) .esp-bar i{background:var(--kr-d0);border-radius:999px}
html body #view-espace.sa:not(#k1):not(#k2) .esp-bar i.top{background:var(--kr-act)}
html body #view-espace.sa:not(#k1):not(#k2) .sa-c0{background:var(--kr-d0)}html body #view-espace.sa:not(#k1):not(#k2) .sa-c1{background:var(--kr-d1)}html body #view-espace.sa:not(#k1):not(#k2) .sa-c2{background:var(--kr-d2)}html body #view-espace.sa:not(#k1):not(#k2) .sa-c3{background:var(--kr-d3)}html body #view-espace.sa:not(#k1):not(#k2) .sa-c4{background:var(--kr-d4)}html body #view-espace.sa:not(#k1):not(#k2) .sa-c5{background:var(--kr-d5)}
html body #view-espace.sa:not(#k1):not(#k2) svg .sa-c0,html body #view-espace.sa:not(#k1):not(#k2) svg.sa-c0{stroke:var(--kr-d0)}html body #view-espace.sa:not(#k1):not(#k2) svg .sa-c1{stroke:var(--kr-d1)}html body #view-espace.sa:not(#k1):not(#k2) svg .sa-c2{stroke:var(--kr-d2)}html body #view-espace.sa:not(#k1):not(#k2) svg .sa-c3{stroke:var(--kr-d3)}html body #view-espace.sa:not(#k1):not(#k2) svg .sa-c4{stroke:var(--kr-d4)}html body #view-espace.sa:not(#k1):not(#k2) svg .sa-c5{stroke:var(--kr-d5)}
html body #view-espace.sa:not(#k1):not(#k2) svg .sa-pt.sa-c0{fill:var(--kr-d0)}html body #view-espace.sa:not(#k1):not(#k2) svg .sa-pt.sa-c1{fill:var(--kr-d1)}html body #view-espace.sa:not(#k1):not(#k2) svg .sa-pt.sa-c2{fill:var(--kr-d2)}html body #view-espace.sa:not(#k1):not(#k2) svg .sa-pt.sa-c3{fill:var(--kr-d3)}
html body #view-espace.sa:not(#k1):not(#k2) .sa-dot.sa-c0{background:var(--kr-d0)}html body #view-espace.sa:not(#k1):not(#k2) .sa-dot.sa-c1{background:var(--kr-d1)}html body #view-espace.sa:not(#k1):not(#k2) .sa-dot.sa-c2{background:var(--kr-d2)}html body #view-espace.sa:not(#k1):not(#k2) .sa-dot.sa-c3{background:var(--kr-d3)}html body #view-espace.sa:not(#k1):not(#k2) .sa-dot.sa-c4{background:var(--kr-d4)}
html body #view-espace.sa:not(#k1):not(#k2) .sa-tr{stroke:var(--kr-line)}
html body #view-espace.sa:not(#k1):not(#k2) :is(.sa-gl,.sa-ax line){stroke:var(--kr-line)}
html body #view-espace.sa:not(#k1):not(#k2) :is(.sa-ax text,.sa-dv){fill:var(--kr-mute);font-family:var(--kr-font)}
html body #view-espace.sa:not(#k1):not(#k2) .sa-dv{fill:var(--kr-ink);font-weight:700}
html body #view-espace.sa:not(#k1):not(#k2) .sa-tip{background:var(--kr-ink)!important;color:var(--kr-card)!important;border:0!important;border-radius:8px!important;box-shadow:var(--kr-sh-menu)!important;font-size:12px;line-height:16px}
/* listes */
html body #view-espace.sa:not(#k1):not(#k2) .sa-list li{border-color:var(--kr-line)}
html body #view-espace.sa:not(#k1):not(#k2) .sa-list li b{font-weight:500;color:var(--kr-ink)}
html body #view-espace.sa:not(#k1):not(#k2) :is(.sa-list li small,.sa-list time){color:var(--kr-mute);font-size:12px}

/* ---------- 7. Boutons ---------- */
html body #view-espace.sa:not(#k1):not(#k2) .btn{min-height:44px;padding:0 18px;border-radius:8px!important;font-family:var(--kr-font);font-size:14px;line-height:20px;font-weight:500;letter-spacing:0;background:var(--kr-ink)!important;background-image:none!important;border:1px solid var(--kr-ink)!important;color:var(--kr-card)!important;box-shadow:none!important;text-shadow:none!important;transition:background .18s ease,opacity .18s ease}
html body #view-espace.sa:not(#k1):not(#k2) .btn:hover{opacity:.88}
html body #view-espace.sa:not(#k1):not(#k2) .btn.outline,html body #view-espace.sa:not(#k1):not(#k2) .btn.ghost,html body #view-espace.sa:not(#k1):not(#k2) .btn.light{background:transparent!important;border:1px solid var(--kr-ink)!important;color:var(--kr-ink)!important}
html body #view-espace.sa:not(#k1):not(#k2) .btn.outline:hover,html body #view-espace.sa:not(#k1):not(#k2) .btn.ghost:hover,html body #view-espace.sa:not(#k1):not(#k2) .btn.light:hover{background:var(--kr-faint)!important;opacity:1}
/* bouton principal : pilule orange d'action, un seul par écran */
html body #view-espace.sa:not(#k1):not(#k2) :is(.btn.teal,.btn.coral,.btn.k100-glow,.k100-glow,.hsa-btn.pri,button.pri,.k103-cta,.kp-btn-prem){min-height:44px;padding:0 22px;border-radius:999px!important;background:var(--kr-act)!important;background-color:var(--kr-act)!important;background-image:none!important;border:1px solid var(--kr-act)!important;color:var(--kr-on-act)!important;box-shadow:none!important;font-weight:500}
html body #view-espace.sa:not(#k1):not(#k2) :is(.btn.teal,.btn.coral,.btn.k100-glow,.k100-glow,.hsa-btn.pri,button.pri,.k103-cta,.kp-btn-prem):hover{background:var(--kr-act-h)!important;background-color:var(--kr-act-h)!important;border-color:var(--kr-act-h)!important;opacity:1}
html body #view-espace.sa:not(#k1):not(#k2) :is(.btn,.hsa-btn,button):disabled{opacity:.4!important;cursor:not-allowed}
html body #view-espace.sa:not(#k1):not(#k2) .hsa-btn:not(.pri){min-height:40px;border-radius:8px!important;background:transparent!important;border:1px solid var(--kr-ink)!important;color:var(--kr-ink)!important;box-shadow:none!important}
html body #view-espace.sa:not(#k1):not(#k2) .hsa-btn:not(.pri):hover{background:var(--kr-faint)!important}
html body #view-espace.sa:not(#k1):not(#k2) :is(.sa-lk,.kg-open){color:var(--kr-ink)!important;font-weight:500;text-decoration:underline;text-underline-offset:3px;background:transparent!important}
html body #view-espace.sa:not(#k1):not(#k2) :is(.btn,button,a,input,select,textarea,[tabindex]):focus-visible{outline:2px solid var(--kr-act)!important;outline-offset:2px;box-shadow:var(--kr-focus)!important}

/* ---------- 8. Champs ---------- */
html body #view-espace.sa:not(#k1):not(#k2) .esp-main :is(input[type="text"],input[type="search"],input[type="email"],input[type="number"],input[type="tel"],input[type="url"],input[type="password"],input[type="date"],input:not([type]),select,textarea),html body #view-espace.sa:not(#k1):not(#k2) .kp-trigger{min-height:44px;padding:0 14px;border-radius:8px!important;border:1px solid var(--kr-deco)!important;background:var(--kr-card)!important;background-image:none;color:var(--kr-ink)!important;font-family:var(--kr-font);font-size:14px;line-height:20px;box-shadow:none!important;transition:border-color .15s ease,box-shadow .15s ease}
html body #view-espace.sa:not(#k1):not(#k2) .esp-main textarea{padding:12px 14px;min-height:96px}
html body #view-espace.sa:not(#k1):not(#k2) .esp-main select{padding-right:36px}
html body #view-espace.sa:not(#k1):not(#k2) .esp-main :is(input,textarea)::placeholder{color:var(--kr-mute);opacity:1}
html body #view-espace.sa:not(#k1):not(#k2) .esp-main :is(input,select,textarea):hover,html body #view-espace.sa:not(#k1):not(#k2) .kp-trigger:hover{border-color:var(--kr-mute)!important}
html body #view-espace.sa:not(#k1):not(#k2) .esp-main :is(input,select,textarea):focus,html body #view-espace.sa:not(#k1):not(#k2) .kp-trigger:focus{outline:0!important;border-color:var(--kr-act)!important;box-shadow:0 0 0 1px var(--kr-act),var(--kr-focus)!important}
html body #view-espace.sa:not(#k1):not(#k2) .esp-main :is(input[type="checkbox"],input[type="radio"]){accent-color:var(--kr-ink);width:18px;height:18px}
html body #view-espace.sa:not(#k1):not(#k2) .sa-search{border:0!important;background:transparent!important;box-shadow:none!important;padding:0}
html body #view-espace.sa:not(#k1):not(#k2) .esp-main .sa-search input[type]{border-radius:999px!important;padding-left:40px!important;box-shadow:var(--kr-sh-float)!important;border-color:var(--kr-line)!important;background-image:var(--a-ico-search,none)!important;background-repeat:no-repeat!important;background-position:14px 50%!important;background-size:16px!important}
html body #view-espace.sa:not(#k1):not(#k2) .esp-main label{color:var(--kr-ink)}
html body #view-espace.sa:not(#k1):not(#k2) .field label,html body #view-espace.sa:not(#k1):not(#k2) .sa-set-l{font-size:14px;line-height:20px;font-weight:500;color:var(--kr-ink)}

/* ---------- 9. Tableaux ---------- */
html body #view-espace.sa:not(#k1):not(#k2) .sa-tw{border:1px solid var(--kr-line);border-radius:12px;overflow-x:auto;background:var(--kr-card)}
html body #view-espace.sa:not(#k1):not(#k2) .sa-card>.sa-tw{border-radius:8px}
html body #view-espace.sa:not(#k1):not(#k2) .sa-t{border-collapse:collapse;width:100%;font-size:14px;line-height:20px}
html body #view-espace.sa:not(#k1):not(#k2) .sa-t th{background:var(--kr-faint)!important;color:var(--kr-mute)!important;font-size:12px;line-height:16px;font-weight:600;padding:12px 16px;border-bottom:1px solid var(--kr-line)!important;text-transform:none;letter-spacing:0}
html body #view-espace.sa:not(#k1):not(#k2) .sa-t td{color:var(--kr-ink);padding:14px 16px;border-bottom:1px solid var(--kr-line)!important;background:transparent}
html body #view-espace.sa:not(#k1):not(#k2) .sa-t tbody tr{transition:background .15s ease}
html body #view-espace.sa:not(#k1):not(#k2) .sa-t tbody tr:hover td{background:var(--kr-faint)!important}
html body #view-espace.sa:not(#k1):not(#k2) .sa-t td b{font-weight:500;color:var(--kr-ink)}
html body #view-espace.sa:not(#k1):not(#k2) .sa-t td small{color:var(--kr-mute)}
html body #view-espace.sa:not(#k1):not(#k2) .sa-av{border-radius:50%!important;background:var(--kr-faint)!important;border:1px solid var(--kr-deco)!important;color:var(--kr-ink)!important;font-weight:600}

/* ---------- 10. Filtres, onglets et pastilles ---------- */
html body #view-espace.sa:not(#k1):not(#k2) .sa-seg{padding:3px;border-radius:999px;background:var(--kr-faint)!important;border:1px solid var(--kr-line)!important}
html body #view-espace.sa:not(#k1):not(#k2) .sa-seg button{min-height:34px;border-radius:999px;color:var(--kr-mute)!important;background:transparent!important;box-shadow:none!important;font-size:12px;line-height:16px;font-weight:600;font-family:var(--kr-font)}
html body #view-espace.sa:not(#k1):not(#k2) .sa-seg button:hover{color:var(--kr-ink)!important}
html body #view-espace.sa:not(#k1):not(#k2) .sa-seg button.on{background:var(--kr-ink)!important;color:var(--kr-card)!important}
html body #view-espace.sa:not(#k1):not(#k2) :is(.sa-chip,.kk-chip,.k104a-chip,.sa-tg,.kp-chips button,.hsa-filt button,.vf-tabs:not(.sa-vt) button,.sa-parnav button){display:inline-flex;align-items:center;gap:8px;min-height:40px;padding:0 16px;border-radius:999px!important;border:1px solid var(--kr-deco)!important;background:var(--kr-card)!important;background-image:none!important;color:var(--kr-ink)!important;box-shadow:none!important;font-family:var(--kr-font);font-size:14px;line-height:20px;font-weight:500;transition:background .15s ease,border-color .15s ease}
html body #view-espace.sa:not(#k1):not(#k2) :is(.sa-chip,.kk-chip,.k104a-chip,.sa-tg,.kp-chips button,.hsa-filt button,.vf-tabs:not(.sa-vt) button,.sa-parnav button):hover{border-color:var(--kr-ink)!important}
html body #view-espace.sa:not(#k1):not(#k2) :is(.sa-chip,.kk-chip,.k104a-chip,.sa-tg,.kp-chips button,.hsa-filt button,.vf-tabs:not(.sa-vt) button,.sa-parnav button):is(.on,.active,[aria-pressed="true"],[aria-selected="true"]){background:var(--kr-ink)!important;border-color:var(--kr-ink)!important;color:var(--kr-card)!important}
html body #view-espace.sa:not(#k1):not(#k2) .sa-tg b{font-weight:600;font-variant-numeric:tabular-nums}
/* tuiles de statut des vérifications : la tuile active a le contour d'action de 2 px */
html body #view-espace.sa:not(#k1):not(#k2) .sa-vtile{padding:20px!important;text-align:left}
html body #view-espace.sa:not(#k1):not(#k2) .sa-vtile.on{border:2px solid var(--kr-act)!important;padding:19px!important}
html body #view-espace.sa:not(#k1):not(#k2) .sa-vtile b{font-size:28px;line-height:34px;font-weight:700;color:var(--kr-ink)}
html body #view-espace.sa:not(#k1):not(#k2) :is(.sa-vall){color:var(--kr-ink)!important;font-weight:600}
/* badges d'état */
html body #view-espace.sa:not(#k1):not(#k2) :is(.sa-state-b,.kg-st,.k9-badge,.sa-badge,.esp-badges>span,.sa-chips>span){border-radius:999px!important;font-size:12px;line-height:16px;font-weight:600}
html body #view-espace.sa:not(#k1):not(#k2) :is(.ok,.approved).sa-badge,html body #view-espace.sa:not(#k1):not(#k2) .kg-st.ok{background:var(--kr-ok-bg)!important;color:var(--kr-ok)!important}
html body #view-espace.sa:not(#k1):not(#k2) .kg-st-err,html body #view-espace.sa:not(#k1):not(#k2) .err.sa-badge{background:var(--kr-err-bg)!important;color:var(--kr-err)!important}
html body #view-espace.sa:not(#k1):not(#k2) .sa-state{background:var(--kr-faint)!important;border:1px dashed var(--kr-deco)!important;border-radius:12px!important;color:var(--kr-mute)}
html body #view-espace.sa:not(#k1):not(#k2) .sa-state b{color:var(--kr-ink)}
html body #view-espace.sa:not(#k1):not(#k2) :is(.k9-warn,.hsa-notice){background:var(--kr-faint)!important;border:1px solid var(--kr-line)!important;border-radius:12px!important;color:var(--kr-ink)!important;box-shadow:none!important}

/* ---------- 11. Navigation sur téléphone ---------- */
html body #view-espace.sa:not(#k1):not(#k2) .sa-mnav{background:var(--kr-card)!important;background-image:none!important;-webkit-backdrop-filter:none!important;backdrop-filter:none!important;border-top:1px solid var(--kr-line)!important;box-shadow:0 -2px 12px rgba(0,0,0,.06)!important}
html body #view-espace.sa:not(#k1):not(#k2) .sa-mnav button{color:var(--kr-mute)!important;background:transparent!important;font-size:12px;line-height:16px;font-weight:500;position:relative}
html body #view-espace.sa:not(#k1):not(#k2) .sa-mnav button.on{color:var(--kr-ink)!important;font-weight:600;background:transparent!important}
html body #view-espace.sa:not(#k1):not(#k2) .sa-mnav button.on::before{content:"";position:absolute;top:0;left:28%;right:28%;height:3px;border-radius:0 0 3px 3px;background:var(--kr-act)}
html body #view-espace.sa:not(#k1):not(#k2) .sa-mnav button.on svg{color:var(--kr-ink)!important}
html body #view-espace.sa:not(#k1):not(#k2) .sa-sheet .sa-sp{background:var(--kr-card)!important;background-image:none!important;-webkit-backdrop-filter:none!important;backdrop-filter:none!important;border-radius:12px 12px 0 0!important;box-shadow:var(--kr-sh-over)!important}
html body #view-espace.sa:not(#k1):not(#k2) .sa-sl button{border-radius:8px!important;border:0!important;background:transparent!important;color:var(--kr-ink)!important;box-shadow:none!important;font-size:14px;font-weight:500;position:relative}
html body #view-espace.sa:not(#k1):not(#k2) .sa-sl .sa-g>button{width:100%;max-width:none}
html body #view-espace.sa:not(#k1):not(#k2) .sa-sl button:hover{background:var(--kr-faint)!important}
html body #view-espace.sa:not(#k1):not(#k2) .sa-sl button.on{background:var(--kr-faint)!important;font-weight:600}
html body #view-espace.sa:not(#k1):not(#k2) .sa-sl button.on::before{content:"";position:absolute;left:0;top:10px;bottom:10px;width:3px;border-radius:0 2px 2px 0;background:var(--kr-act)}
html body #view-espace.sa:not(#k1):not(#k2) .sa-scrim{background:rgba(34,34,34,.45)!important;-webkit-backdrop-filter:none!important;backdrop-filter:none!important}
@media (max-width:800px){
 html body #view-espace.sa:not(#k1):not(#k2) #esp-titre{font-size:22px;line-height:26px}
 html body #view-espace.sa:not(#k1):not(#k2) :is(.sa-card,.sa-kpi,.esp-stat){padding:18px}
 html body #view-espace.sa:not(#k1):not(#k2) .sa-kpi.main .sa-v{font-size:40px;line-height:44px}
 html body #view-espace.sa:not(#k1):not(#k2) :is(.sa-chip,.kk-chip,.k104a-chip,.sa-tg,.kp-chips button,.hsa-filt button,.vf-tabs:not(.sa-vt) button,.sa-parnav button){min-height:36px;padding:0 14px}
}

/* ---------- 12. Animations (coupées si l'appareil demande moins d'animations) ---------- */
@keyframes krMonte{from{opacity:0;transform:translateY(10px)}to{opacity:1;transform:none}}
@keyframes krLargeur{from{transform:scaleX(0)}to{transform:scaleX(1)}}
@keyframes krHauteur{from{transform:scaleY(0)}to{transform:scaleY(1)}}
@keyframes krTrace{from{stroke-dashoffset:var(--kr-len,1000)}to{stroke-dashoffset:0}}
@keyframes krApparait{from{opacity:0}to{opacity:1}}
html body #view-espace.sa:not(#k1):not(#k2).kr-anim :is(.sa-top,.sa-kpis3,.sa-kpis4,.sa-donuts,.sa-3col,.esp-stats)>*,html body #view-espace.sa:not(#k1):not(#k2).kr-anim .sa-dash>.sa-card,html body #view-espace.sa:not(#k1):not(#k2).kr-anim .vf-tabs.sa-vt>*{animation:krMonte .55s cubic-bezier(.2,.8,.2,1) both}
html body #view-espace.sa:not(#k1):not(#k2).kr-anim :is(.sa-top,.sa-kpis3,.sa-kpis4,.sa-donuts,.esp-stats)>*:nth-child(2){animation-delay:70ms}
html body #view-espace.sa:not(#k1):not(#k2).kr-anim :is(.sa-top,.sa-kpis3,.sa-kpis4,.sa-donuts,.esp-stats)>*:nth-child(3){animation-delay:140ms}
html body #view-espace.sa:not(#k1):not(#k2).kr-anim :is(.sa-top,.sa-kpis3,.sa-kpis4,.sa-donuts,.esp-stats)>*:nth-child(4){animation-delay:210ms}
html body #view-espace.sa:not(#k1):not(#k2).kr-anim .vf-tabs.sa-vt>*:nth-child(2){animation-delay:60ms}html body #view-espace.sa:not(#k1):not(#k2).kr-anim .vf-tabs.sa-vt>*:nth-child(3){animation-delay:120ms}html body #view-espace.sa:not(#k1):not(#k2).kr-anim .vf-tabs.sa-vt>*:nth-child(4){animation-delay:180ms}
html body #view-espace.sa:not(#k1):not(#k2).kr-anim :is(.sa-split i,.esp-bar i){transform-origin:left center;animation:krLargeur .9s cubic-bezier(.2,.8,.2,1) .2s both}
html body #view-espace.sa:not(#k1):not(#k2).kr-anim .sa-din circle:not(.sa-tr){animation:krApparait .5s ease .2s both}
html body #view-espace.sa:not(#k1):not(#k2) .kr-trace{stroke-dasharray:var(--kr-len,1000);animation:krTrace 1.3s cubic-bezier(.2,.8,.2,1) both}
html body #view-espace.sa:not(#k1):not(#k2) .kr-trace-ar{animation:krApparait .9s ease .6s both}
@media (prefers-reduced-motion:reduce){
 html body #view-espace.sa:not(#k1):not(#k2) *,html body #view-espace.sa:not(#k1):not(#k2) *::before,html body #view-espace.sa:not(#k1):not(#k2) *::after{animation:none!important;transition:none!important}
 html body #view-espace.sa:not(#k1):not(#k2) :is(.sa-kpi,.esp-stat,.sa-listcard,.hsa-card,.sa-vtile):hover{transform:none}
}

/* ---------- 13. Corrections après essais ---------- */
/* les blocs de rubrique ne sont pas des cadres : leurs cartes suffisent */
html body #view-espace.sa:not(#k1):not(#k2) .esp-blk{background:transparent!important;background-image:none!important;border:0!important;box-shadow:none!important;-webkit-backdrop-filter:none!important;backdrop-filter:none!important;padding:0!important;border-radius:0!important}
/* légende sous la barre de disponibilité (même nom de classe que le panneau mobile, sans rapport) */
html body #view-espace.sa:not(#k1):not(#k2) .sa-dash .sa-sp{position:static!important;background:transparent!important;border:0!important;box-shadow:none!important;padding:0!important;border-radius:0!important;color:var(--kr-mute);font-size:12px;line-height:16px}
/* dans une liste, l'action d'une ligne reste secondaire : un seul bouton orange par écran */
html body #view-espace.sa:not(#k1):not(#k2) :is(li,td,.kp-req,.sa-cont-act,.kg-row-act,.k9-actions,.esp-ann-actions) :is(.btn.teal,.btn.coral,.btn.k100-glow,.k100-glow){min-height:40px;padding:0 16px;border-radius:8px!important;background:transparent!important;background-color:transparent!important;background-image:none!important;border:1px solid var(--kr-ink)!important;color:var(--kr-ink)!important}
html body #view-espace.sa:not(#k1):not(#k2) :is(li,td,.kp-req,.sa-cont-act,.kg-row-act,.k9-actions,.esp-ann-actions) :is(.btn.teal,.btn.coral,.btn.k100-glow,.k100-glow):hover{background:var(--kr-faint)!important;background-color:var(--kr-faint)!important}
html body #view-espace.sa:not(#k1):not(#k2) .kp-req{padding:12px 16px!important;margin-bottom:8px}
/* recherche : loupe dessinée, texte aligné à gauche */
html body #view-espace.sa:not(#k1):not(#k2) .esp-main .sa-search input[type]{text-align:left;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236A6A6A' stroke-width='1.6' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='6.5'/%3E%3Cpath d='M16 16l4 4'/%3E%3C/svg%3E")!important}
html[data-theme="dark"] body #view-espace.sa:not(#k1):not(#k2) .esp-main .sa-search input[type]{padding-left:40px!important;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23A3AFB6' stroke-width='1.6' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='6.5'/%3E%3Cpath d='M16 16l4 4'/%3E%3C/svg%3E")!important}
/* légendes de courbe : la pastille de couleur doit rester visible quand la série est affichée */
html body #view-espace.sa:not(#k1):not(#k2) .sa-tg.on,html body #view-espace.sa:not(#k1):not(#k2) .sa-tg[aria-pressed="true"]{background:var(--kr-card)!important;border:1px solid var(--kr-ink)!important;color:var(--kr-ink)!important}
html body #view-espace.sa:not(#k1):not(#k2) .sa-tg:not(.on):not([aria-pressed="true"]){color:var(--kr-mute)!important}
@media (max-width:800px){
 html body #view-espace.sa:not(#k1):not(#k2) .kd-who{border:0!important;background:transparent!important;padding:0!important;width:auto!important;max-width:max-content}
 html body #view-espace.sa:not(#k1):not(#k2) .kd-who:hover{background:transparent!important}
}
/* groupes de filtres faits de boutons (3 boutons ou plus côte à côte, ou sélecteur de période) : pastilles, l'actif en encre */
html body #view-espace.sa:not(#k1):not(#k2) .esp-main div:has(> .btn.outline):has(> .btn.teal):has(> .btn:nth-of-type(3)) > .btn,html body #view-espace.sa:not(#k1):not(#k2) .k105a-per > button{min-height:40px;padding:0 16px;border-radius:999px!important;border:1px solid var(--kr-deco)!important;background:var(--kr-card)!important;background-color:var(--kr-card)!important;background-image:none!important;color:var(--kr-ink)!important;font-size:14px;font-weight:500}
html body #view-espace.sa:not(#k1):not(#k2) .esp-main div:has(> .btn.outline):has(> .btn.teal):has(> .btn:nth-of-type(3)) > .btn.teal,html body #view-espace.sa:not(#k1):not(#k2) .k105a-per > button.k103-cta{background:var(--kr-ink)!important;background-color:var(--kr-ink)!important;border-color:var(--kr-ink)!important;color:var(--kr-card)!important}
