:root{
  color-scheme:light;
  --cresh-navy:#061a3a;
  --cresh-navy-2:#0b2450;
  --cresh-blue:#1558e8;
  --cresh-blue-2:#0c46d8;
  --cresh-cyan:#22a7f0;
  --cresh-ink:#091939;
  --cresh-muted:#63718e;
  --cresh-line:#dfe6f1;
  --cresh-soft:#f4f7fb;
  --cresh-panel:#fff;
  --cresh-green:#16a65a;
  --cresh-red:#e52b3d;
  --cresh-orange:#f08b1d;
  --cresh-violet:#7138e6;
  --cresh-shadow:0 8px 28px rgba(15,43,86,.08);
  --cresh-radius:14px;
  --cresh-sidebar:212px;
  font-family:Inter,"Segoe UI",Arial,sans-serif;
}

/* CRESH Check — tableau réel des vérifications */
.cresh-check-page{display:grid;gap:16px}.cresh-check-kpis{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:14px}.cresh-check-kpi{min-height:116px;padding:20px;display:flex;align-items:center;gap:16px}.cresh-check-kpi-icon{width:58px;height:58px;border-radius:13px;display:grid;place-items:center;flex:0 0 auto;color:#1763eb;background:#e7f0ff}.cresh-check-kpi-icon svg{width:32px;height:32px}.cresh-check-kpi-icon.is-green{color:#12a653;background:#e1f7e9}.cresh-check-kpi-icon.is-orange{color:#ff8a00;background:#fff0de}.cresh-check-kpi-icon.is-violet{color:#6e35eb;background:#eee7ff}.cresh-check-kpi div{display:grid;gap:4px;min-width:0}.cresh-check-kpi small{font-size:12px;font-weight:700;color:#15264a}.cresh-check-kpi strong{font-size:27px;line-height:1.05;color:#071739}.cresh-check-trend{display:flex;align-items:center;gap:4px;font-size:11px;font-style:normal;font-weight:800;white-space:nowrap}.cresh-check-trend small{font-size:10px;font-weight:600;color:inherit}.cresh-check-trend.is-good{color:#0ca446}.cresh-check-trend.is-bad{color:#ed2945}.cresh-check-top-grid{display:grid;grid-template-columns:minmax(0,1.45fr) minmax(270px,.78fr) minmax(330px,.98fr);gap:14px}.cresh-check-bottom-grid{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(380px,.85fr);gap:14px}.cresh-check-top-grid>.cresh-panel,.cresh-check-bottom-grid>.cresh-panel{padding:20px;min-width:0}.cresh-check-panel-head{display:flex;justify-content:space-between;align-items:center;gap:16px;margin-bottom:17px}.cresh-check-panel-head h3{margin:0;font-size:16px;color:#071739}.cresh-check-panel-head select,.cresh-check-panel-head button{height:36px;border:1px solid #d7e0ef;border-radius:8px;background:#fff;color:#064bd9;padding:0 13px;font:inherit;font-size:12px;font-weight:750}.cresh-check-chart-legend{display:flex;gap:22px;margin:0 0 6px 4px}.cresh-check-chart-legend span{display:flex;align-items:center;gap:7px;font-size:11px;color:#445577}.cresh-check-chart-legend span::before{content:"";width:8px;height:8px;border-radius:50%}.cresh-check-chart-legend .is-valid::before{background:#16a34a}.cresh-check-chart-legend .is-invalid::before{background:#ef233c}.cresh-check-chart-legend .is-pending::before{background:#2563eb}.cresh-check-line-chart{position:relative;padding-bottom:22px}.cresh-check-line-chart svg{display:block;width:100%;height:auto;overflow:visible}.cresh-check-grid-lines path{fill:none;stroke:#e7edf7;stroke-width:1}.cresh-check-line-chart polyline{fill:none;stroke-width:2.3;stroke-linecap:round;stroke-linejoin:round}.cresh-check-line-chart polyline.is-valid{stroke:#16a34a}.cresh-check-line-chart polyline.is-invalid{stroke:#ef233c}.cresh-check-line-chart polyline.is-pending{stroke:#2563eb}.cresh-check-line-chart circle{stroke:#fff;stroke-width:1.5}.cresh-check-line-chart circle.is-valid{fill:#16a34a}.cresh-check-line-chart circle.is-invalid{fill:#ef233c}.cresh-check-line-chart circle.is-pending{fill:#2563eb}.cresh-check-axis-labels{position:absolute;left:20px;right:20px;bottom:4px;height:16px}.cresh-check-axis-labels span{position:absolute;transform:translateX(-50%);font-size:10px;color:#667797}.cresh-check-chart-summary{display:grid;grid-template-columns:repeat(3,1fr);background:#f3f7ff;border-radius:9px;padding:12px 16px;gap:12px}.cresh-check-chart-summary span{display:grid;gap:2px}.cresh-check-chart-summary span+span{border-left:1px solid #dbe4f3;padding-left:16px}.cresh-check-chart-summary small{color:#536480;font-size:10px}.cresh-check-chart-summary strong{font-size:15px;color:#071739}.cresh-check-chart-summary em{font-style:normal;font-size:10px;color:#536480}.cresh-check-donut-layout{min-height:240px;display:flex;align-items:center;justify-content:center;gap:24px}.cresh-check-donut{width:175px;aspect-ratio:1;border-radius:50%;display:grid;place-items:center;background:var(--check-donut);position:relative;flex:0 0 auto}.cresh-check-donut::after{content:"";position:absolute;inset:34px;background:#fff;border-radius:50%;box-shadow:inset 0 0 0 1px #edf1f7}.cresh-check-donut strong{position:relative;z-index:1;display:grid;text-align:center;font-size:25px;color:#071739}.cresh-check-donut strong small{font-size:11px}.cresh-check-result-legend{display:grid;gap:20px}.cresh-check-result-legend>div{display:flex;gap:9px;align-items:flex-start}.cresh-check-result-legend i{width:9px;height:9px;border-radius:50%;margin-top:4px}.cresh-check-result-legend i.is-valid{background:#16a34a}.cresh-check-result-legend i.is-invalid{background:#ef233c}.cresh-check-result-legend i.is-pending{background:#2563eb}.cresh-check-result-legend span{display:grid;gap:4px}.cresh-check-result-legend b{font-size:11px;color:#16284e}.cresh-check-result-legend small{font-size:11px;color:#536480}.cresh-check-link{width:100%;height:42px;border:1px solid #d7e0ef;border-radius:8px;background:#fff;color:#0752e8;display:flex;align-items:center;justify-content:flex-start;gap:9px;padding:0 15px;font:inherit;font-size:12px;font-weight:750}.cresh-check-link svg:last-child{margin-left:auto}.cresh-check-link.is-plain{border:0;border-top:1px solid #e4eaf3;border-radius:0;padding:14px 0 0;height:auto;margin-top:10px}.cresh-check-recent-list{display:grid}.cresh-check-recent-row{display:grid;grid-template-columns:30px minmax(0,1fr) auto 42px;gap:10px;align-items:center;width:100%;min-height:54px;padding:8px 2px;border:0;background:transparent;text-align:left;color:inherit}.cresh-check-recent-row:hover{background:#f7f9fd;border-radius:8px}.cresh-check-result-icon{width:25px;height:25px;border-radius:50%;display:grid;place-items:center;color:#fff}.cresh-check-result-icon svg{width:15px;height:15px}.cresh-check-result-icon.is-valid{background:#15a454}.cresh-check-result-icon.is-invalid{background:#ef233c}.cresh-check-result-icon.is-pending{background:#1764ee}.cresh-check-recent-row span:nth-child(2){display:grid;gap:2px}.cresh-check-recent-row strong{font-size:11px;color:#14264b}.cresh-check-recent-row small{font-size:10px;color:#5d6e8c}.cresh-check-recent-row em,.cresh-check-pill{border-radius:6px;padding:4px 8px;font-size:9px;font-style:normal;font-weight:850;text-transform:uppercase;white-space:nowrap}.cresh-check-recent-row em.is-valid{background:#e0f5e7;color:#0c9b43}.cresh-check-recent-row em.is-invalid{background:#ffe3e8;color:#e61d39}.cresh-check-recent-row em.is-pending,.cresh-check-pill.is-pending{background:#e5efff;color:#1764ee}.cresh-check-recent-row time{font-size:10px;color:#465a7e;text-align:right}.cresh-check-table-wrap{overflow:auto}.cresh-check-table-wrap table{width:100%;border-collapse:collapse;min-width:720px}.cresh-check-table-wrap th{padding:9px 8px;border-bottom:1px solid #e0e7f2;text-align:left;font-size:10px;color:#536480;font-weight:700}.cresh-check-table-wrap td{padding:10px 8px;border-bottom:1px solid #edf1f7;font-size:10px;color:#1d3158;white-space:nowrap}.cresh-check-table-wrap td:first-child{color:#1764ee;width:24px}.cresh-check-table-wrap td:first-child svg{width:15px;height:15px}.cresh-check-table-wrap .cresh-icon-button{width:28px;height:28px}.cresh-check-criteria{display:grid;gap:18px;padding-top:5px}.cresh-check-criterion{display:grid;grid-template-columns:150px minmax(100px,1fr) 52px 78px;align-items:center;gap:12px}.cresh-check-criterion strong{font-size:11px;color:#17294e}.cresh-check-criterion>span{height:7px;border-radius:10px;background:#e8edf5;overflow:hidden}.cresh-check-criterion>span i{display:block;height:100%;border-radius:inherit;background:#16a34a}.cresh-check-criterion:nth-last-child(1)>span i{background:#ff9b11}.cresh-check-criterion b{font-size:11px;color:#182b50;text-align:right}.cresh-check-criterion small{font-size:10px;color:#60718f;text-align:right}.cresh-check-info{display:flex;align-items:center;gap:10px;margin-top:22px;padding:12px 14px;border-radius:8px;background:#edf4ff;color:#496284;font-size:10px}.cresh-check-info svg{width:17px;height:17px;color:#1764ee;flex:0 0 auto}.cresh-check-empty{display:flex;align-items:center;gap:12px;padding:20px;color:#63728e}.cresh-check-empty>svg{width:30px;height:30px;color:#1764ee}.cresh-check-empty span{display:grid;gap:3px}.cresh-check-empty strong{font-size:12px;color:#243759}.cresh-check-empty small{font-size:10px}.cresh-check-empty.is-compact{justify-content:center;padding:22px}.cresh-check-modal-result{display:flex;align-items:center;gap:14px;padding:16px;border-radius:10px;margin:4px 0 18px;background:#edf4ff}.cresh-check-modal-result>span{width:44px;height:44px;border-radius:50%;display:grid;place-items:center;color:#fff;background:#1764ee}.cresh-check-modal-result.is-valid{background:#eaf8ef}.cresh-check-modal-result.is-valid>span{background:#15a454}.cresh-check-modal-result.is-invalid{background:#fff0f2}.cresh-check-modal-result.is-invalid>span{background:#ef233c}.cresh-check-modal-result div{display:grid;gap:4px}.cresh-check-modal-result strong{font-size:18px}.cresh-check-modal-result small{color:#5f6f8b}.cresh-check-modal-list{display:grid;max-height:58vh;overflow:auto}.cresh-check-modal-list>button{display:grid;grid-template-columns:30px minmax(0,1fr) auto 18px;gap:10px;align-items:center;border:0;border-bottom:1px solid #edf1f7;background:#fff;padding:11px 4px;text-align:left}.cresh-check-modal-list>button>span:nth-child(2){display:grid;gap:3px}.cresh-check-modal-list strong{font-size:12px;color:#14264b}.cresh-check-modal-list small{font-size:10px;color:#60718f}.cresh-check-modal-list em{font-size:9px;font-style:normal;font-weight:800;text-transform:uppercase}.cresh-check-modal-list em.is-valid{color:#0c9b43}.cresh-check-modal-list em.is-invalid{color:#e61d39}.cresh-check-modal-list em.is-pending{color:#1764ee}.cresh-check-criteria.is-modal{margin:10px 0 22px}
@media(max-width:1280px){.cresh-check-kpis{grid-template-columns:repeat(3,minmax(0,1fr))}.cresh-check-top-grid{grid-template-columns:1.35fr .85fr}.cresh-check-recent-panel{grid-column:1/-1}.cresh-check-bottom-grid{grid-template-columns:1fr}.cresh-check-criteria-panel{order:-1}.cresh-check-recent-list{grid-template-columns:repeat(2,minmax(0,1fr));gap:0 18px}}
@media(max-width:820px){.cresh-check-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}.cresh-check-top-grid{grid-template-columns:1fr}.cresh-check-recent-panel{grid-column:auto}.cresh-check-recent-list{grid-template-columns:1fr}.cresh-check-donut-layout{min-height:210px}.cresh-check-chart-summary{grid-template-columns:1fr}.cresh-check-chart-summary span+span{border-left:0;border-top:1px solid #dbe4f3;padding:10px 0 0}}
@media(max-width:520px){.cresh-check-kpis{grid-template-columns:1fr}.cresh-check-kpi{min-height:96px}.cresh-check-top-grid>.cresh-panel,.cresh-check-bottom-grid>.cresh-panel{padding:15px}.cresh-check-panel-head{align-items:flex-start}.cresh-check-donut-layout{flex-direction:column}.cresh-check-result-legend{grid-template-columns:repeat(3,1fr);width:100%;gap:8px}.cresh-check-criterion{grid-template-columns:1fr 64px}.cresh-check-criterion>span{grid-column:1/-1;grid-row:2}.cresh-check-criterion small{grid-column:2}.cresh-check-recent-row{grid-template-columns:30px minmax(0,1fr) auto}.cresh-check-recent-row time{display:none}.cresh-check-recent-row em{font-size:8px;padding:4px 5px}}
*{box-sizing:border-box}
html,body{margin:0;min-height:100%;background:var(--cresh-soft);color:var(--cresh-ink)}
body{min-width:320px;overflow-x:hidden}
button,input,select,textarea{font:inherit;color:inherit}
button{cursor:pointer}
img{max-width:100%}
[hidden]{display:none!important}
.cresh-sr-only{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.cresh-muted{color:var(--cresh-muted)}
.cresh-kicker{color:var(--cresh-blue);font-size:11px;font-weight:800;letter-spacing:.08em;text-transform:uppercase}
.cresh-icon{width:20px;height:20px;display:inline-flex;align-items:center;justify-content:center;flex:0 0 auto}
.cresh-icon svg{width:100%;height:100%;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.cresh-button{min-height:42px;border:1px solid var(--cresh-line);border-radius:9px;background:#fff;padding:0 17px;display:inline-flex;align-items:center;justify-content:center;gap:9px;font-weight:700;transition:transform .16s ease,box-shadow .16s ease,background .16s ease}
.cresh-button:hover{transform:translateY(-1px);box-shadow:0 8px 20px rgba(20,57,117,.09)}
.cresh-button:active{transform:translateY(0)}
.cresh-button:disabled{opacity:.48;cursor:not-allowed;transform:none;box-shadow:none}
.cresh-button-primary{background:linear-gradient(135deg,#1763f2,#0d47db);border-color:#1253e7;color:#fff;box-shadow:0 8px 20px rgba(21,88,232,.18)}
.cresh-button-ghost{background:#fff}
.cresh-button-danger{color:var(--cresh-red);border-color:#f4bdc3;background:#fff}
.cresh-icon-button{width:40px;height:40px;border:1px solid var(--cresh-line);border-radius:10px;background:#fff;display:grid;place-items:center;font-size:22px}
.cresh-panel{background:var(--cresh-panel);border:1px solid #e6ebf4;border-radius:var(--cresh-radius);box-shadow:var(--cresh-shadow);animation:cresh-panel-enter .34s cubic-bezier(.22,1,.36,1) both}
.cresh-toast{position:fixed;right:24px;bottom:24px;z-index:1000;max-width:min(420px,calc(100vw - 32px));padding:14px 17px;border-radius:11px;color:#fff;background:#0b1d3e;box-shadow:0 16px 40px rgba(4,18,42,.24);animation:cresh-toast-in .22s ease both}
.cresh-toast.is-error{background:#9d2030}
@keyframes cresh-toast-in{from{opacity:0;transform:translateY(10px)}to{opacity:1;transform:none}}

/* Login isolé */
.cresh-login-page{min-height:100vh;padding:clamp(18px,5vw,82px);display:grid;place-items:center;background:#eef1f7}
.cresh-login-frame{width:min(1310px,100%);min-height:min(860px,calc(100vh - 36px));display:grid;grid-template-columns:minmax(390px,36%) 1fr;overflow:hidden;border-radius:20px;background:#fff;box-shadow:0 20px 58px rgba(14,33,70,.18)}
.cresh-login-form-panel{padding:clamp(42px,5vw,82px);display:flex;flex-direction:column;justify-content:center;background:#fff}
.cresh-login-brand{display:flex;flex-direction:column;align-items:center;text-align:center;margin-bottom:34px}
.cresh-login-brand img{width:210px;height:auto;display:block}
.cresh-login-brand strong{font-size:31px;letter-spacing:.02em}
.cresh-login-brand span{font-weight:700;font-size:17px}
.cresh-login-title{margin:0 0 10px;font-size:29px}
.cresh-login-intro{margin:0 0 24px;line-height:1.55;color:#344667}
.cresh-login-form{display:grid;gap:17px}
.cresh-field{display:grid;gap:7px;font-size:13px;font-weight:700}
.cresh-field input,.cresh-field select,.cresh-field textarea{width:100%;min-height:45px;border:1px solid #cdd7e7;border-radius:9px;background:#fff;padding:10px 13px;outline:none;font-weight:500}
.cresh-field textarea{min-height:94px;resize:vertical}
.cresh-field input:focus,.cresh-field select:focus,.cresh-field textarea:focus{border-color:var(--cresh-blue);box-shadow:0 0 0 3px rgba(21,88,232,.1)}
.cresh-login-options{display:flex;justify-content:space-between;align-items:center;font-size:12px;color:#29416e}
.cresh-login-options label{display:flex;gap:8px;align-items:center}
.cresh-login-options button{border:0;padding:0;background:transparent;color:#1558e8;font:inherit;font-weight:700;cursor:pointer}.cresh-login-error.is-success{color:#0a9950}.cresh-password-flow{width:min(520px,100%);padding:42px;border-radius:18px;background:#fff;box-shadow:0 20px 58px rgba(14,33,70,.18)}.cresh-password-flow h1{margin:8px 0}.cresh-password-flow>p:not(.cresh-eyebrow){color:#586985;line-height:1.55}.cresh-password-flow .cresh-login-brand{margin-bottom:26px}.cresh-password-flow.is-required{text-align:center}.cresh-password-flow.is-required form{text-align:left}.cresh-password-shield{width:68px;height:68px;margin:0 auto 14px;border-radius:18px;display:grid;place-items:center;color:#fff;background:linear-gradient(145deg,#1e6fff,#0b3ecb);box-shadow:0 12px 28px rgba(21,88,232,.26)}.cresh-password-shield svg{width:34px;height:34px}.cresh-password-input{display:grid;grid-template-columns:1fr auto;border:1px solid #dbe2ed;border-radius:9px;overflow:hidden}.cresh-password-input input{border:0!important}.cresh-password-input button{border:0;padding:0 12px;background:#f4f7fb;color:#1558e8;font:inherit;font-size:11px;font-weight:750}.cresh-password-rules{margin:0;padding:12px 12px 12px 30px;border-radius:9px;background:#f3f7ff;color:#526582;font-size:11px;line-height:1.7}
.cresh-login-error{min-height:20px;margin:0;color:var(--cresh-red);font-size:13px}
.cresh-login-help{margin:28px 0 0;padding-top:28px;border-top:1px solid var(--cresh-line);text-align:center;font-size:12px;color:#586985}
.cresh-dev-config{border:1px solid var(--cresh-line);border-radius:9px;padding:11px 13px;background:#f8faff}
.cresh-dev-config summary{cursor:pointer;font-weight:700;color:#29416e}
.cresh-dev-grid{display:grid;gap:12px;margin-top:12px}
.cresh-login-visual{position:relative;isolation:isolate;overflow:hidden;background:#031b41;color:#fff;min-height:620px}
.cresh-login-media{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;z-index:-2}
.cresh-login-shade{position:absolute;inset:0;background:linear-gradient(90deg,rgba(2,19,48,.22),rgba(2,16,42,.08));z-index:-1}
.cresh-login-editorial{position:absolute;top:13%;left:7%;max-width:430px}
.cresh-login-editorial h2{margin:0;font-size:clamp(32px,3.2vw,55px);line-height:1.18;font-weight:500;letter-spacing:-.025em}
.cresh-login-editorial em{font-style:normal;color:#3f8dff}
.cresh-login-editorial i{display:block;width:55px;height:2px;background:#fff;margin:27px 0 20px;transform-origin:left;animation:cresh-line .55s .35s ease both}
.cresh-login-editorial p{margin:0;font-size:18px;line-height:1.42}
.cresh-login-features{position:absolute;left:7%;right:7%;bottom:7%;display:grid;grid-template-columns:repeat(3,1fr);gap:0}
.cresh-login-feature{display:grid;grid-template-columns:56px 1fr;gap:14px;align-items:center;padding:0 22px;border-left:1px solid rgba(255,255,255,.2)}
.cresh-login-feature:first-child{padding-left:0;border-left:0}
.cresh-login-feature b{display:block;margin-bottom:5px}.cresh-login-feature small{line-height:1.35;color:#dce8fa}
.cresh-login-feature .cresh-icon{width:52px;height:52px;border:2px solid #2878e9;border-radius:50%;padding:12px;color:#6db0ff}
@keyframes cresh-line{from{transform:scaleX(0);opacity:0}to{transform:scaleX(1);opacity:1}}

/* Racine et navigation */
.cresh-app{min-height:100vh;display:grid;grid-template-columns:var(--cresh-sidebar) minmax(0,1fr);background:#f7f9fc}
.cresh-sidebar{position:sticky;top:0;height:100vh;display:flex;flex-direction:column;padding:24px 10px 14px;background:linear-gradient(180deg,#061a3a,#03152f 72%,#071e42);color:#fff;z-index:30}
.cresh-sidebar-brand{display:flex;align-items:center;gap:11px;padding:0 12px 32px}
.cresh-sidebar-brand img{width:43px;height:43px;filter:brightness(0) invert(1);object-fit:contain}.cresh-sidebar-brand strong{display:block;font-size:24px}.cresh-sidebar-brand small{display:block;margin-top:2px;font-size:12px}
.cresh-nav{display:grid;gap:5px}
.cresh-nav-button{width:100%;height:46px;border:0;border-radius:8px;background:transparent;color:#fff;display:flex;align-items:center;gap:12px;padding:0 14px;text-align:left;font-size:13px;font-weight:650;transition:background .18s ease,transform .18s ease,box-shadow .18s ease}
.cresh-nav-button:hover{background:rgba(255,255,255,.08)}
.cresh-nav-button[aria-current=page]{background:linear-gradient(135deg,#1764f3,#0f49da);box-shadow:0 8px 22px rgba(0,58,189,.2);transform:translateX(2px)}
.cresh-nav-separator{height:1px;background:rgba(255,255,255,.14);margin:13px 12px}
.cresh-sidebar-profile{position:relative;margin-top:auto}
.cresh-profile-trigger{width:100%;border:1px solid transparent;border-radius:11px;background:transparent;color:#fff;padding:10px;display:grid;grid-template-columns:38px 1fr auto;gap:10px;align-items:center;text-align:left}
.cresh-profile-trigger:hover,.cresh-profile-trigger[aria-expanded=true]{background:rgba(255,255,255,.07);border-color:rgba(255,255,255,.12)}
.cresh-avatar{width:38px;height:38px;border-radius:50%;display:grid;place-items:center;background:#e7eefb;color:var(--cresh-navy);font-weight:800;overflow:hidden}
.cresh-avatar img{width:100%;height:100%;object-fit:cover}
.cresh-profile-copy{min-width:0}.cresh-profile-copy strong,.cresh-profile-copy small{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.cresh-profile-copy small{font-size:11px;margin-top:3px;color:#c9d5e8}
.cresh-profile-menu{position:absolute;left:calc(100% + 12px);bottom:0;width:240px;padding:11px;background:#fff;color:var(--cresh-ink);border:1px solid var(--cresh-line);border-radius:12px;box-shadow:0 18px 45px rgba(7,26,58,.22);z-index:60}
.cresh-profile-menu button{width:100%;border:0;background:transparent;border-radius:8px;padding:11px;display:flex;gap:10px;align-items:center;text-align:left}.cresh-profile-menu button:hover{background:#f1f5fc}.cresh-profile-menu .is-danger{color:var(--cresh-red);border-top:1px solid var(--cresh-line);margin-top:8px;border-radius:0;padding-top:16px}
.cresh-main{min-width:0;display:flex;flex-direction:column}
.cresh-header{height:96px;display:flex;align-items:center;justify-content:space-between;gap:20px;padding:18px 30px;border-bottom:1px solid var(--cresh-line);background:rgba(255,255,255,.95);position:sticky;top:0;z-index:20;backdrop-filter:blur(12px)}
.cresh-header-copy{display:flex;align-items:center;gap:15px}.cresh-header-copy h1{margin:0;font-size:25px;line-height:1.1}.cresh-header-copy p{margin:6px 0 0;color:var(--cresh-muted);font-size:13px}
.cresh-menu-button{display:none}
.cresh-header-profile{display:flex;align-items:center;gap:12px}.cresh-header-profile strong,.cresh-header-profile small{display:block}.cresh-header-profile small{font-size:11px;color:var(--cresh-muted);margin-top:3px}
.cresh-view{min-width:0;padding:25px 26px 30px;outline:none;animation:cresh-view-in .18s ease both}
.cresh-view:focus,.cresh-view:focus-visible{outline:0!important}
@keyframes cresh-view-in{from{opacity:0;transform:translateY(7px)}to{opacity:1;transform:none}}@keyframes cresh-panel-enter{from{opacity:0;transform:translateY(9px) scale(.993)}to{opacity:1;transform:none}}
.cresh-footer{display:flex;justify-content:space-between;margin-top:26px;padding:0 8px;color:#6d7a94;font-size:11px}

/* Composants d'écran */
.cresh-page-head{display:flex;justify-content:space-between;align-items:flex-end;gap:20px;margin-bottom:18px}.cresh-page-head h2{margin:0;font-size:22px}.cresh-page-head p{margin:6px 0 0;color:var(--cresh-muted)}
.cresh-actions{display:flex;gap:10px;flex-wrap:wrap;align-items:center}
.cresh-kpis{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:12px;margin-bottom:17px}
.cresh-kpi{min-height:112px;padding:17px;display:grid;grid-template-columns:50px 1fr;gap:13px;align-items:center}
.cresh-kpi-icon{width:50px;height:50px;border-radius:11px;display:grid;place-items:center;background:#eaf1ff;color:var(--cresh-blue)}
.cresh-kpi-icon.is-green{background:#e5f7ed;color:var(--cresh-green)}.cresh-kpi-icon.is-red{background:#feecef;color:var(--cresh-red)}.cresh-kpi-icon.is-orange{background:#fff0df;color:var(--cresh-orange)}.cresh-kpi-icon.is-violet{background:#f0eaff;color:var(--cresh-violet)}
.cresh-kpi-icon .cresh-icon{width:28px;height:28px}.cresh-kpi-icon img{width:31px;height:31px;display:block}.cresh-kpi small,.cresh-kpi strong,.cresh-kpi span{display:block}.cresh-kpi small{font-size:11px;font-weight:700}.cresh-kpi strong{font-size:26px;margin:5px 0 4px}.cresh-kpi span{font-size:11px;color:var(--cresh-green)}
.cresh-grid{display:grid;gap:14px}.cresh-grid-3{grid-template-columns:1.35fr 1fr .9fr}.cresh-grid-2{grid-template-columns:minmax(0,1.55fr) minmax(300px,.75fr)}
.cresh-section{padding:18px}.cresh-section-head{display:flex;align-items:center;justify-content:space-between;gap:15px;margin-bottom:16px}.cresh-section-head h3{margin:0;font-size:15px}.cresh-section-head p{margin:4px 0 0;color:var(--cresh-muted);font-size:12px}
.cresh-list{display:grid}.cresh-list-row{display:grid;grid-template-columns:42px minmax(0,1fr) auto;gap:12px;align-items:center;padding:12px 0;border-top:1px solid #edf0f6}.cresh-list-row:first-child{border-top:0}.cresh-list-row strong,.cresh-list-row small{display:block}.cresh-list-row small{color:var(--cresh-muted);font-size:11px;margin-top:3px}
.cresh-status{display:inline-flex;align-items:center;gap:6px;padding:5px 9px;border-radius:7px;background:#e8f7ee;color:#087b3c;font-size:10px;font-weight:800;text-transform:uppercase;white-space:nowrap}.cresh-status::before{content:"";width:6px;height:6px;border-radius:50%;background:currentColor}.cresh-status.is-red{background:#feecee;color:#d71f34}.cresh-status.is-orange{background:#fff1e2;color:#db6d00}.cresh-status.is-blue{background:#eaf1ff;color:#0c50df}.cresh-status.is-neutral{background:#eef1f5;color:#647087}
.cresh-table-shell{overflow:hidden}.cresh-table-wrap{overflow:auto}.cresh-table{width:100%;border-collapse:collapse;min-width:800px;font-size:12px}.cresh-table th{padding:13px;text-align:left;background:#f7f9fc;color:#53617d;font-size:11px}.cresh-table td{padding:12px 13px;border-top:1px solid #e9edf4;vertical-align:middle}.cresh-table tbody tr{transition:background .15s ease}.cresh-table tbody tr:hover,.cresh-table tbody tr.is-selected{background:#f1f6ff}.cresh-table tbody tr[role=button]{cursor:pointer}.cresh-person{display:flex;gap:10px;align-items:center}.cresh-person strong,.cresh-person small{display:block}.cresh-person small{color:var(--cresh-muted);margin-top:3px}.cresh-thumb{width:80px;height:50px;object-fit:cover;border-radius:6px;border:1px solid #dbe2ee;background:#f1f4fa}.cresh-table-footer{display:flex;justify-content:space-between;gap:15px;align-items:center;padding:14px;border-top:1px solid var(--cresh-line);font-size:11px;color:var(--cresh-muted)}
.cresh-toolbar{display:flex;align-items:flex-end;gap:10px;padding:14px;margin-bottom:14px}.cresh-toolbar .cresh-field{min-width:160px;flex:1}.cresh-toolbar .cresh-search{flex:2}.cresh-toolbar .cresh-button{flex:0 0 auto}
.cresh-empty{min-height:260px;display:grid;place-items:center;text-align:center;padding:36px}.cresh-empty .cresh-icon{width:58px;height:58px;color:#9fb4da}.cresh-empty h3{margin:14px 0 7px}.cresh-empty p{margin:0;color:var(--cresh-muted);max-width:460px}
.cresh-loading{min-height:260px;display:grid;place-items:center;color:var(--cresh-muted)}
.cresh-spinner{width:32px;height:32px;border:3px solid #dce5f4;border-top-color:var(--cresh-blue);border-radius:50%;animation:cresh-spin .7s linear infinite}@keyframes cresh-spin{to{transform:rotate(1turn)}}

/* Accueil et dashboard */
.cresh-hero{position:relative;isolation:isolate;overflow:hidden;min-height:275px;padding:42px 48px;color:#fff;background:radial-gradient(circle at 20% 18%,rgba(30,107,255,.48),transparent 36%),radial-gradient(circle at 70% 4%,rgba(38,113,255,.22),transparent 34%),linear-gradient(125deg,#071b4d,#0c43a4 58%,#061d52);border-radius:17px;box-shadow:0 15px 38px rgba(5,38,111,.22);margin-bottom:16px;animation:cresh-hero-enter .42s cubic-bezier(.22,1,.36,1) both}
.cresh-hero::before,.cresh-hero::after{content:"";position:absolute;z-index:-1;pointer-events:none}.cresh-hero::before{inset:-20% -5% -45% 16%;border:1px solid rgba(83,151,255,.27);border-radius:50%;transform:rotate(-9deg);box-shadow:0 -16px 0 rgba(34,112,244,.07),0 -32px 0 rgba(34,112,244,.045)}.cresh-hero::after{inset:0;background:linear-gradient(116deg,transparent 0 43%,rgba(255,255,255,.055) 49%,transparent 55%);opacity:.7}
.cresh-hero-copy{position:relative;z-index:3;max-width:52%}.cresh-hero h2{margin:0;font-size:36px;line-height:1.15}.cresh-hero h2 em{font-style:normal;color:#4c90ff;text-shadow:0 0 24px rgba(67,139,255,.22)}.cresh-hero p{line-height:1.58;margin:17px 0 22px;color:#eef3ff}.cresh-hero-action{min-height:50px;padding:0 22px;box-shadow:0 14px 30px rgba(0,74,231,.38)}.cresh-hero-action:hover{transform:translateY(-2px) scale(1.018);box-shadow:0 18px 36px rgba(0,74,231,.48)}
.cresh-hero-card{position:absolute;right:7%;top:50%;z-index:3;width:min(390px,36%);padding:0;border:0;background:transparent;color:inherit;transform:translateY(-50%) rotate(.7deg);filter:drop-shadow(0 8px 9px rgba(0,10,38,.2)) drop-shadow(0 24px 30px rgba(0,8,32,.22));animation:cresh-hero-float 5.2s ease-in-out infinite;will-change:transform,filter}.cresh-hero-card-stage{position:relative;display:block;width:100%;aspect-ratio:930/603}.cresh-hero-card-stage img{position:absolute;inset:0;width:100%;height:100%;display:block;object-fit:cover;border:1px solid rgba(174,184,201,.58);border-radius:14px;background:#fff;box-shadow:inset 0 1px 0 rgba(255,255,255,.65),0 0 0 1px rgba(5,28,65,.09);backface-visibility:hidden;will-change:transform,opacity}.cresh-hero-card-current{z-index:2;opacity:1}.cresh-hero-card-next{z-index:1;opacity:0;visibility:hidden}.cresh-hero-card-next[data-ready=true]{visibility:visible}.cresh-hero-card.is-initializing .cresh-hero-card-current{animation:cresh-hero-diagonal-in 1s cubic-bezier(.16,1,.3,1) both}.cresh-hero-card.is-transitioning{animation-play-state:paused}.cresh-hero-card.is-transitioning .cresh-hero-card-current{animation:cresh-hero-diagonal-out .8s cubic-bezier(.4,0,.6,1) both}.cresh-hero-card.is-transitioning .cresh-hero-card-next[data-ready=true]{z-index:3;animation:cresh-hero-diagonal-in .9s .15s cubic-bezier(.16,1,.3,1) both}.cresh-hero-card.is-stabilizing{animation-play-state:paused}.cresh-hero-gloss{position:absolute;inset:0;z-index:5;border-radius:14px;background:linear-gradient(118deg,transparent 30%,rgba(255,255,255,.16) 48%,transparent 66%);opacity:0;transform:translateX(-135%) skewX(-10deg);pointer-events:none;clip-path:inset(0 round 14px)}.cresh-hero-card.is-transitioning .cresh-hero-gloss{animation:cresh-hero-gloss .42s .72s ease-out both}.cresh-hero-aura{position:absolute;inset:-12%;z-index:-1;border-radius:50%;background:rgba(22,112,255,.22);filter:blur(24px)}.cresh-hero-card.is-fallback{opacity:.98}.cresh-hero-card:focus-visible{outline:3px solid rgba(255,255,255,.92);outline-offset:7px;border-radius:17px}
@keyframes cresh-hero-enter{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}@keyframes cresh-hero-float{0%,100%{transform:translateY(-50%) rotate(-.8deg);filter:drop-shadow(0 8px 9px rgba(0,10,38,.2)) drop-shadow(0 24px 30px rgba(0,8,32,.22))}50%{transform:translateY(calc(-50% - 6px)) rotate(.8deg);filter:drop-shadow(0 10px 11px rgba(0,10,38,.17)) drop-shadow(0 29px 34px rgba(0,8,32,.2))}}@keyframes cresh-hero-diagonal-out{0%{opacity:1;transform:translate3d(0,0,0) rotate(0) scale(1)}55%{opacity:.46;transform:translate3d(-38px,72px,0) rotate(-2.6deg) scale(.975)}100%{opacity:0;transform:translate3d(-78px,132px,0) rotate(-5deg) scale(.95)}}@keyframes cresh-hero-diagonal-in{0%{opacity:0;transform:translate3d(110px,-130px,0) rotate(5deg) scale(.95)}45%{opacity:.68;transform:translate3d(48px,-58px,0) rotate(2deg) scale(.975)}88%{opacity:1;transform:translate3d(4px,-5px,0) rotate(.25deg) scale(.997)}100%{opacity:1;transform:translate3d(0,0,0) rotate(0) scale(1)}}@keyframes cresh-hero-gloss{0%{opacity:0;transform:translateX(-135%) skewX(-10deg)}25%{opacity:.75}100%{opacity:0;transform:translateX(135%) skewX(-10deg)}}
.cresh-shortcuts{display:grid;gap:10px}.cresh-shortcut{display:grid;grid-template-columns:42px 1fr auto;gap:11px;align-items:center;padding:13px;border:1px solid #e5eaf3;border-radius:10px;background:#fff;text-align:left}.cresh-shortcut:hover{border-color:#bfd0f0;background:#f8fbff}.cresh-shortcut strong,.cresh-shortcut small{display:block}.cresh-shortcut small{font-size:11px;color:var(--cresh-muted);margin-top:3px}
.cresh-home-primary-grid{display:grid;grid-template-columns:minmax(350px,1.08fr) minmax(390px,1.04fr) minmax(290px,.84fr);gap:14px;align-items:stretch}.cresh-home-secondary-grid{display:grid;grid-template-columns:minmax(0,1.46fr) minmax(330px,1fr);gap:14px;margin-top:14px}.cresh-home-panel{padding:18px 20px;min-width:0}.cresh-home-panel .cresh-section-head{margin-bottom:13px}.cresh-home-panel .cresh-section-head h3{font-size:15px}.cresh-home-view-all{height:34px;padding:0 12px;border:1px solid #e4eaf3;border-radius:8px;background:#f8faff;color:#30415f;font-size:10px;font-weight:750}.cresh-home-view-all:hover{background:#eef4ff;border-color:#cbd9ef}.cresh-home-recent .cresh-section-head h3{display:flex;align-items:center;gap:9px}.cresh-home-recent .cresh-section-head h3::before{content:"";width:22px;height:22px;background:url('../assets/icons/home/recent-clock.svg') center/contain no-repeat}.cresh-home-recent-list{display:grid}.cresh-home-recent-row{display:grid;grid-template-columns:40px minmax(0,1fr) auto 112px;gap:10px;align-items:center;min-height:55px;padding:7px 0;border:0;border-top:1px solid #edf1f6;background:transparent;text-align:left}.cresh-home-recent-row:first-child{border-top:0}.cresh-home-recent-row:hover{background:#f9fbff}.cresh-home-recent-row strong,.cresh-home-recent-row small{display:block}.cresh-home-recent-row strong{font-size:12px}.cresh-home-recent-row small{margin-top:3px;color:#60708e;font-size:10px}.cresh-home-recent-row time{color:#60708e;font-size:10px;text-align:right;white-space:nowrap}.cresh-home-recent-row .cresh-status{font-size:8px;padding:4px 7px}.cresh-home-person{width:36px;height:36px;border-radius:50%;display:grid;place-items:center;overflow:hidden;background:#6559df;color:#fff;font-size:11px;font-weight:800}.cresh-home-person img{width:100%;height:100%;object-fit:cover}.cresh-home-person.is-color-1{background:#6caec4}.cresh-home-person.is-color-2{background:#f1a44f}.cresh-home-person.is-color-3{background:#5976d7}.cresh-home-empty{min-height:180px;display:grid;place-content:center;gap:6px;text-align:center;color:#52617d}.cresh-home-empty span{font-size:11px}.cresh-home-empty.is-compact{min-height:120px}.cresh-home-stats{display:grid;grid-template-columns:1fr 1fr;gap:10px}.cresh-home-stat{min-width:0;min-height:92px;padding:12px;display:grid;grid-template-columns:50px minmax(0,1fr);gap:11px;align-items:center;border-radius:11px;background:linear-gradient(135deg,#f9fbff,#f1f6ff)}.cresh-home-stat>span{width:50px;height:50px;border-radius:10px;display:grid;place-items:center;background:#e7efff}.cresh-home-stat>span img{width:31px;height:31px}.cresh-home-stat strong,.cresh-home-stat small,.cresh-home-stat em{display:block}.cresh-home-stat strong{font-size:21px;line-height:1.05}.cresh-home-stat small{margin-top:6px;font-size:10px;font-weight:650}.cresh-home-stat em{margin-top:9px;color:#12a45b;font-size:9px;font-style:normal;font-weight:750}.cresh-home-stat.is-green{background:linear-gradient(135deg,#fbfffd,#effaf5)}.cresh-home-stat.is-green>span{background:#e3f7ec}.cresh-home-stat.is-orange{background:linear-gradient(135deg,#fffdf9,#fff5e8)}.cresh-home-stat.is-orange>span{background:#fff0da}.cresh-home-stat.is-violet{background:linear-gradient(135deg,#fcfbff,#f4efff)}.cresh-home-stat.is-violet>span{background:#ece5ff}.cresh-home-stat.is-violet em{color:#53617c}.cresh-home-stat.is-red{background:linear-gradient(135deg,#fffafb,#fff0f2)}.cresh-home-stat.is-red>span{background:#ffe4e8}.cresh-home-stat.is-wide{grid-column:1/-1;grid-template-columns:50px minmax(0,1fr) auto}.cresh-home-stat.is-wide button{border:0;background:transparent;color:#ed2f49;font-size:10px;font-weight:750}.cresh-home-shortcuts{display:grid;gap:8px}.cresh-home-shortcut{min-height:58px;display:grid;grid-template-columns:42px minmax(0,1fr) 22px;gap:10px;align-items:center;padding:7px 10px;border:1px solid #e2e8f2;border-radius:10px;background:#fff;text-align:left;transition:transform .16s ease,border-color .16s ease,box-shadow .16s ease}.cresh-home-shortcut:hover{transform:translateY(-1px);border-color:#c7d5ed;box-shadow:0 7px 16px rgba(16,49,104,.07)}.cresh-home-shortcut strong,.cresh-home-shortcut small{display:block}.cresh-home-shortcut strong{font-size:12px}.cresh-home-shortcut small{margin-top:4px;color:#687791;font-size:10px}.cresh-home-shortcut>.cresh-icon{width:20px;height:20px;color:#6a7891}.cresh-home-shortcut-icon{width:40px;height:40px;border-radius:50%;display:grid;place-items:center;background:#e6f0ff}.cresh-home-shortcut-icon img{width:27px;height:27px}.cresh-home-shortcut-icon.is-green{background:#e4f8ed}.cresh-home-shortcut-icon.is-violet{background:#eee8ff}.cresh-home-shortcut-icon.is-orange{background:#fff0dd}.cresh-home-activity-list{display:grid}.cresh-home-activity-row{display:grid;grid-template-columns:27px 155px minmax(0,1fr) 105px;gap:10px;align-items:center;min-height:39px;border-top:1px solid #edf1f6;font-size:10px}.cresh-home-activity-row:first-child{border-top:0}.cresh-home-activity-row>strong{font-size:10px}.cresh-home-activity-row>span:not(.cresh-home-activity-icon),.cresh-home-activity-row time{color:#61708b}.cresh-home-activity-row time{text-align:right;white-space:nowrap}.cresh-home-activity-icon{width:27px;height:27px;border-radius:8px;background:#f1f4fa;display:grid;place-items:center}.cresh-home-activity-icon img{width:17px;height:17px}.cresh-home-replacement{min-height:191px;display:flex;align-items:center;justify-content:space-between;gap:20px}.cresh-home-replacement-copy h3{margin:0 0 22px;font-size:15px}.cresh-home-replacement-copy small,.cresh-home-replacement-copy strong{display:block}.cresh-home-replacement-copy small{color:#64728d;font-size:10px}.cresh-home-replacement-copy strong{margin:5px 0 14px;font-size:23px}.cresh-home-replacement-copy .cresh-button{min-width:188px}.cresh-home-replacement-art{width:105px;height:122px;object-fit:contain;margin-right:12px}
.cresh-home-overview,.cresh-home-shortcuts-panel,.cresh-home-activity{min-width:0}
.cresh-bars{height:210px;display:flex;align-items:flex-end;gap:16px;padding:25px 15px 0;border-bottom:1px solid var(--cresh-line)}.cresh-bar{flex:1;min-width:18px;background:linear-gradient(#276cf4,#0e4bd8);border-radius:6px 6px 0 0;position:relative}.cresh-bar small{position:absolute;bottom:-24px;left:50%;transform:translateX(-50%);color:var(--cresh-muted)}
.cresh-donut{--value:70;position:relative;width:170px;aspect-ratio:1;border-radius:50%;background:conic-gradient(var(--cresh-green) calc(var(--value)*1%),#e7ebf3 0);display:grid;place-items:center;margin:18px auto}.cresh-donut::before{content:"";width:108px;aspect-ratio:1;border-radius:50%;background:#fff}.cresh-donut strong{position:absolute;font-size:27px;text-align:center}.cresh-progress-list{display:grid;gap:18px}.cresh-progress-row{display:grid;gap:7px}.cresh-progress-copy{display:flex;justify-content:space-between;font-size:12px}.cresh-progress{height:7px;border-radius:99px;background:#e8ecf3;overflow:hidden}.cresh-progress span{display:block;height:100%;background:var(--cresh-green);border-radius:inherit}

/* Cartes et fiche */
.cresh-cards-layout{display:grid;grid-template-columns:minmax(0,1fr) 370px;gap:14px}.cresh-card-detail{padding:17px;position:sticky;top:116px;align-self:start}.cresh-card-preview{display:block;width:100%;border-radius:9px;border:1px solid #ccd8eb;background:#f2f5fa;box-shadow:0 12px 24px rgba(14,46,101,.12)}.cresh-card-meta{display:grid;grid-template-columns:135px 1fr;gap:10px;margin:18px 0;font-size:12px}.cresh-card-meta dt{color:var(--cresh-muted)}.cresh-card-meta dd{margin:0;font-weight:650;overflow-wrap:anywhere}.cresh-detail-actions{display:grid;grid-template-columns:1fr 1fr;gap:9px}
.cresh-agent-hero{display:grid;grid-template-columns:150px minmax(0,1.4fr) minmax(260px,.8fr);gap:28px;padding:22px;align-items:center}.cresh-agent-photo{width:150px;height:170px;object-fit:cover;border-radius:11px;background:#e8edf5}.cresh-agent-identity h2{font-size:25px;margin:0 0 12px}.cresh-agent-identity p{margin:7px 0;color:#31446a}.cresh-agent-facts{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;margin-top:24px}.cresh-agent-facts small,.cresh-agent-facts strong{display:block}.cresh-agent-facts small{font-size:10px;color:var(--cresh-muted);margin-bottom:5px}.cresh-agent-contact{border-left:1px solid var(--cresh-line);padding-left:25px;display:grid;gap:14px;font-size:13px}
.cresh-tabs{display:flex;gap:25px;border-bottom:1px solid var(--cresh-line);margin:18px 0}.cresh-tab{border:0;background:transparent;padding:14px 5px;color:#52617d;font-weight:700;border-bottom:2px solid transparent}.cresh-tab[aria-selected=true]{color:var(--cresh-blue);border-color:var(--cresh-blue)}

/* Paramètres */
.cresh-settings-tabs{display:flex;gap:7px;overflow:auto;border-bottom:1px solid var(--cresh-line);margin:-25px -26px 18px;padding:0 26px;background:#fff}.cresh-settings-tabs button{height:52px;border:0;border-bottom:2px solid transparent;background:transparent;color:#52617d;font-size:12px;font-weight:700;white-space:nowrap;padding:0 15px}.cresh-settings-tabs button[aria-selected=true]{color:var(--cresh-blue);border-color:var(--cresh-blue)}
.cresh-settings-grid{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(300px,.8fr);gap:15px}.cresh-setting-list{display:grid}.cresh-setting-row{display:grid;grid-template-columns:44px 1fr auto;gap:12px;align-items:center;padding:13px 0;border-top:1px solid #edf0f5}.cresh-setting-row:first-child{border-top:0}.cresh-setting-row strong,.cresh-setting-row small{display:block}.cresh-setting-row small{font-size:11px;color:var(--cresh-muted);margin-top:3px}

/* Workflow carte — composition validée, portée dans la racine isolée */
.cresh-wizard{max-width:1160px;margin:0 auto}.cresh-creation-layout{display:grid;grid-template-columns:minmax(0,1fr) 350px;gap:16px;align-items:start;max-width:1280px;margin:0 auto}.cresh-creation-card{min-width:0;padding:0;overflow:clip}.cresh-stepper{display:grid;grid-template-columns:repeat(4,1fr);position:relative;margin:0;padding:18px 24px 16px;border-bottom:1px solid var(--cresh-line);background:linear-gradient(180deg,#fff,#fbfcff)}.cresh-stepper::before{content:"";position:absolute;top:38px;left:12.5%;right:12.5%;height:2px;background:#dfe6f1}.cresh-step{position:relative;z-index:1;border:0;background:transparent;display:grid;justify-items:center;gap:7px;color:#65728b;font-size:11px;font-weight:700;cursor:pointer}.cresh-step span:first-child{width:38px;height:38px;border-radius:50%;display:grid;place-items:center;background:#e8edf4;color:#20314f;border:4px solid #fff;box-shadow:0 0 0 1px #e2e8f2;transition:transform .18s ease,background .18s ease,box-shadow .18s ease}.cresh-step:hover span:first-child{transform:translateY(-2px);box-shadow:0 5px 13px rgba(11,51,118,.13)}.cresh-step.is-active{color:var(--cresh-blue)}.cresh-step.is-active span:first-child{background:linear-gradient(145deg,#2372ff,#0c4bd8);color:#fff;box-shadow:0 0 0 4px rgba(21,88,232,.11),0 7px 16px rgba(14,75,214,.2)}.cresh-step.is-complete{color:#087b3c}.cresh-step.is-complete span:first-child{background:var(--cresh-green);color:#fff}.cresh-workspace{padding:25px 26px 28px;min-height:520px;animation:cresh-step-in .24s cubic-bezier(.22,1,.36,1) both}.cresh-workspace-head{display:flex;justify-content:space-between;align-items:flex-start;gap:16px;margin-bottom:22px}.cresh-workspace-head h2{margin:5px 0 0;font-size:22px}.cresh-form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.cresh-field.is-wide{grid-column:1/-1}.cresh-calculated{min-height:45px;border:1px solid #d8e0ec;border-radius:9px;background:#f5f8fc;padding:12px 13px;color:#42516e;font-weight:600}.cresh-media-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px}.cresh-media-card{padding:18px;transition:transform .18s ease,box-shadow .18s ease}.cresh-media-card:hover{transform:translateY(-2px);box-shadow:0 16px 34px rgba(11,45,100,.11)}.cresh-media-stage{min-height:260px;border:1px dashed #b9c7dc;border-radius:12px;background:linear-gradient(145deg,#f8faff,#f1f5fb);display:grid;place-items:center;overflow:hidden;margin:14px 0}.cresh-media-stage img{width:100%;height:260px;object-fit:contain;background:#fff}.cresh-media-actions{display:flex;gap:9px;flex-wrap:wrap}.cresh-file-button{position:relative;overflow:hidden}.cresh-file-button input{position:absolute;inset:0;opacity:0;cursor:pointer}.cresh-preview-wrap{display:grid;place-items:center;padding:24px;background:linear-gradient(145deg,#f5f8fd,#eaf0f9);border-radius:13px}.cresh-preview-wrap img{width:min(700px,100%);border:1px solid rgba(154,170,195,.6);border-radius:10px;box-shadow:0 18px 36px rgba(9,35,80,.18)}.cresh-export-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:12px}.cresh-export-card{min-height:150px;border:1px solid #e1e7f1;border-radius:12px;background:#fff;padding:18px;display:grid;align-content:center;justify-items:center;gap:10px;text-align:center;transition:transform .18s ease,border-color .18s ease,box-shadow .18s ease}.cresh-export-card:hover{transform:translateY(-3px);border-color:#c2d4f4;box-shadow:0 14px 28px rgba(11,45,100,.1)}.cresh-export-card .cresh-icon{width:34px;height:34px;color:var(--cresh-blue)}.cresh-actionbar{display:flex;justify-content:flex-end;align-items:center;gap:10px;margin:0;padding:14px 18px;background:rgba(255,255,255,.97);border:0;border-top:1px solid var(--cresh-line);border-radius:0;position:sticky;bottom:0;z-index:12;box-shadow:0 -10px 24px rgba(11,37,80,.06);backdrop-filter:blur(10px)}.cresh-actionbar p{margin:0 auto 0 0}.cresh-preview-rail{position:sticky;top:116px;align-self:start;padding:20px;overflow:hidden}.cresh-preview-rail header{margin-bottom:16px}.cresh-preview-rail h2{margin:5px 0 0;font-size:19px}.cresh-preview-rail-stage{min-height:220px;display:grid;place-items:center;padding:14px;border-radius:13px;background:radial-gradient(circle at 50% 35%,#fff,#edf2fa);overflow:hidden}.cresh-preview-rail-stage img{display:block;width:100%;height:auto;max-height:250px;object-fit:contain;border:1px solid rgba(154,170,195,.58);border-radius:8px;box-shadow:0 16px 32px rgba(7,32,78,.16)}.cresh-preview-rail>p{color:var(--cresh-muted);font-size:12px;line-height:1.5}.cresh-preview-security{display:flex;align-items:center;gap:10px;margin-top:16px;padding:12px;border:1px solid #dce8fb;border-radius:10px;background:#f3f7ff;color:#17468e}.cresh-preview-security .cresh-icon{flex:0 0 auto}.cresh-preview-security strong,.cresh-preview-security small{display:block}.cresh-preview-security small{margin-top:3px;color:#647795;font-size:10px}@keyframes cresh-step-in{from{opacity:0;transform:translateX(8px)}to{opacity:1;transform:none}}

/* Dialogs */
.cresh-dialog{border:0;border-radius:15px;padding:0;box-shadow:0 24px 70px rgba(5,24,55,.28);max-width:min(720px,calc(100vw - 30px));max-height:calc(100vh - 30px)}.cresh-dialog::backdrop{background:rgba(4,17,40,.58);backdrop-filter:blur(3px)}
.cresh-photo-editor,.cresh-scanner{padding:20px}.cresh-photo-editor header,.cresh-scanner header{display:flex;justify-content:space-between;align-items:center;margin-bottom:15px}.cresh-photo-editor h2,.cresh-scanner h2{margin:4px 0 0}.cresh-photo-editor canvas{display:block;width:min(500px,100%);height:auto;background:#0b0f16}.cresh-photo-editor footer{display:flex;justify-content:flex-end;gap:10px;margin-top:15px}.cresh-video-wrap{position:relative;width:min(560px,80vw);aspect-ratio:4/3;background:#07142d;overflow:hidden;border-radius:13px}.cresh-video-wrap video{width:100%;height:100%;object-fit:cover}.cresh-scan-frame{position:absolute;inset:18%;border:2px solid #38a8ff;border-radius:12px;box-shadow:0 0 0 999px rgba(0,12,31,.35)}
.cresh-modal{position:fixed;inset:0;z-index:100;display:grid;place-items:center;padding:18px;background:rgba(3,17,40,.58);backdrop-filter:blur(3px)}.cresh-modal-card{width:min(760px,100%);max-height:calc(100vh - 36px);overflow:auto;padding:20px}.cresh-modal-head{display:flex;justify-content:space-between;align-items:flex-start;gap:15px;margin-bottom:18px}.cresh-modal-head h2{margin:4px 0 0}.cresh-credentials{display:grid;gap:8px;padding:15px;border-radius:10px;background:#edf4ff}.cresh-credentials code{display:block;padding:10px;background:#fff;border-radius:7px;overflow-wrap:anywhere}
.cresh-master-import-modal{width:min(850px,100%);padding:25px;border-radius:18px}.cresh-master-import-head{padding-bottom:18px;border-bottom:1px solid #e4eaf3}.cresh-master-import-head p{margin:7px 0 0}.cresh-master-import-summary{display:grid;grid-template-columns:repeat(4,minmax(130px,1fr));gap:12px}.cresh-master-import-summary article{min-height:118px;display:grid;grid-template-columns:42px minmax(0,1fr);grid-template-rows:auto auto;align-content:center;gap:4px 11px;padding:16px;border:1px solid #dce6f5;border-radius:12px;background:#f6f9ff}.cresh-master-import-summary article>span{grid-row:1/3;width:42px;height:42px;display:grid;place-items:center;border-radius:10px;background:#e2edff;color:#1558e8}.cresh-master-import-summary article>span .cresh-icon{width:24px;height:24px}.cresh-master-import-summary article small{align-self:end;color:#667792;font-size:10px;font-weight:700}.cresh-master-import-summary article strong{font-size:24px;line-height:1}.cresh-master-import-summary article.is-green{background:#f2fbf6}.cresh-master-import-summary article.is-green>span{background:#dcf5e7;color:#0a9f50}.cresh-master-import-summary article.is-orange{background:#fff9ef}.cresh-master-import-summary article.is-orange>span{background:#ffedcf;color:#e3810b}.cresh-master-import-summary article.is-blue>span{background:#e6e5ff;color:#6455d9}.cresh-master-import-details{display:grid;grid-template-columns:repeat(4,1fr);gap:1px;margin-top:14px;overflow:hidden;border:1px solid #e0e7f1;border-radius:11px;background:#e0e7f1}.cresh-master-import-details>div{min-height:64px;display:grid;align-content:center;gap:5px;padding:12px;background:#fff}.cresh-master-import-details span{color:#687995;font-size:9px}.cresh-master-import-details strong{font-size:16px}.cresh-master-import-warning{display:flex;align-items:flex-start;gap:9px;margin:15px 0 0;padding:13px 15px;border:1px solid #f1d6a9;border-radius:10px;background:#fff8ea;color:#805210;font-size:11px;line-height:1.5}.cresh-master-import-warning .cresh-icon{width:18px;height:18px;flex:none;color:#e28a16}.cresh-master-import-actions{display:grid;grid-template-columns:auto 1fr 1.2fr;gap:10px;margin-top:20px}.cresh-master-import-actions .cresh-button{min-height:45px}.cresh-master-import-note{display:flex;align-items:center;justify-content:center;gap:7px;margin:14px 0 0;color:#71809a;font-size:9px}.cresh-master-import-note .cresh-icon{width:14px;height:14px;color:#2b66bf}@media(max-width:760px){.cresh-master-import-summary{grid-template-columns:1fr 1fr}.cresh-master-import-details{grid-template-columns:1fr 1fr}.cresh-master-import-actions{grid-template-columns:1fr}.cresh-master-import-actions .cresh-button-primary{grid-row:1}.cresh-master-import-modal{padding:19px}}@media(max-width:430px){.cresh-master-import-summary{grid-template-columns:1fr}.cresh-master-import-details{grid-template-columns:1fr}}

@media (max-width:1280px){
  :root{--cresh-sidebar:196px}
  .cresh-kpis{grid-template-columns:repeat(3,minmax(0,1fr))}
  .cresh-grid-3{grid-template-columns:1fr 1fr}.cresh-grid-3>*:last-child{grid-column:1/-1}
  .cresh-cards-layout{grid-template-columns:minmax(0,1fr) 330px}
  .cresh-home-primary-grid{grid-template-columns:minmax(330px,1fr) minmax(390px,1.08fr)}.cresh-home-shortcuts-panel{grid-column:1/-1}.cresh-home-shortcuts{grid-template-columns:repeat(4,1fr)}
  .cresh-creation-layout{grid-template-columns:minmax(0,1fr) 310px}
  .cresh-view{padding:22px 20px}.cresh-settings-tabs{margin-left:-20px;margin-right:-20px;padding-left:20px;padding-right:20px}
}
@media (max-width:1024px){
  :root{--cresh-sidebar:78px}
  .cresh-sidebar-brand{justify-content:center;padding-left:0;padding-right:0}.cresh-sidebar-brand div{display:none}
  .cresh-nav-button{justify-content:center;padding:0}.cresh-nav-button span:last-child{display:none}
  .cresh-profile-copy,.cresh-profile-trigger>.cresh-icon{display:none}.cresh-profile-trigger{display:grid;grid-template-columns:1fr;justify-items:center}
  .cresh-profile-menu{left:calc(100% + 8px)}
  .cresh-header{padding:16px 22px}.cresh-view{padding:20px 18px}.cresh-settings-tabs{margin-left:-18px;margin-right:-18px;padding-left:18px;padding-right:18px}
  .cresh-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}.cresh-grid-2,.cresh-cards-layout,.cresh-settings-grid{grid-template-columns:1fr}.cresh-card-detail{position:static}.cresh-agent-hero{grid-template-columns:130px 1fr}.cresh-agent-contact{grid-column:1/-1;border-left:0;border-top:1px solid var(--cresh-line);padding:18px 0 0;grid-template-columns:repeat(2,1fr)}
  .cresh-home-primary-grid{grid-template-columns:1fr}.cresh-home-shortcuts-panel{grid-column:auto}.cresh-home-shortcuts{grid-template-columns:1fr 1fr}.cresh-home-secondary-grid{grid-template-columns:1fr}.cresh-home-activity-row{grid-template-columns:27px 140px minmax(0,1fr) 105px}
  .cresh-creation-layout{grid-template-columns:1fr}.cresh-preview-rail{position:static;display:grid;grid-template-columns:minmax(0,220px) 1fr;gap:16px;align-items:center}.cresh-preview-rail header{grid-column:1/-1;margin-bottom:0}.cresh-preview-rail-stage{grid-row:2/4;min-height:150px}.cresh-preview-rail>p{margin:0}.cresh-preview-security{margin:0}
  .cresh-login-frame{grid-template-columns:1fr 1.15fr}.cresh-login-form-panel{padding:44px}.cresh-login-features{grid-template-columns:1fr;gap:14px}.cresh-login-feature{border:0;padding:0}.cresh-login-editorial{top:9%}.cresh-login-editorial h2{font-size:34px}
}
@media (max-width:760px){
  .cresh-app{display:block}.cresh-sidebar{position:fixed;left:0;top:0;width:250px;transform:translateX(-105%);transition:transform .2s ease;box-shadow:12px 0 35px rgba(4,18,45,.22)}.cresh-app.is-menu-open .cresh-sidebar{transform:none}.cresh-sidebar-brand{justify-content:flex-start;padding-left:12px}.cresh-sidebar-brand div{display:block}.cresh-nav-button{justify-content:flex-start;padding:0 14px}.cresh-nav-button span:last-child{display:inline}.cresh-profile-copy,.cresh-profile-trigger>.cresh-icon{display:block}.cresh-profile-trigger{grid-template-columns:38px 1fr auto;justify-items:stretch}.cresh-profile-menu{left:8px;bottom:64px;width:220px}
  .cresh-menu-button{display:grid}.cresh-header{height:82px;padding:13px 15px}.cresh-header-copy h1{font-size:21px}.cresh-header-copy p{display:none}.cresh-header-profile>div:not(.cresh-avatar){display:none}
  .cresh-view{padding:15px 12px 25px}.cresh-settings-tabs{margin:-15px -12px 15px;padding:0 12px}.cresh-footer{display:block;text-align:center}.cresh-footer span:last-child{display:none}
  .cresh-page-head{align-items:flex-start;flex-direction:column}.cresh-actions{width:100%}.cresh-actions .cresh-button{flex:1}
  .cresh-kpis{grid-template-columns:1fr 1fr;gap:9px}.cresh-kpi{min-height:96px;padding:12px;grid-template-columns:42px 1fr}.cresh-kpi-icon{width:42px;height:42px}.cresh-kpi strong{font-size:21px}
  .cresh-grid-3{grid-template-columns:1fr}.cresh-grid-3>*:last-child{grid-column:auto}.cresh-toolbar{align-items:stretch;flex-direction:column}.cresh-toolbar .cresh-field{min-width:0}.cresh-table-footer{align-items:flex-start;flex-direction:column}
  .cresh-home-panel{padding:16px}.cresh-home-shortcuts{grid-template-columns:1fr}.cresh-home-recent-row{grid-template-columns:38px minmax(0,1fr) auto}.cresh-home-recent-row time{display:none}.cresh-home-activity-row{grid-template-columns:27px minmax(0,1fr) auto}.cresh-home-activity-row>span:not(.cresh-home-activity-icon){grid-column:2/-1}.cresh-home-activity-row time{grid-column:3;grid-row:1}.cresh-home-replacement-art{width:82px;margin-right:0}.cresh-home-replacement-copy .cresh-button{min-width:0}
  .cresh-hero{display:grid;gap:25px;padding:30px 25px;min-height:0}.cresh-hero-copy{max-width:100%}.cresh-hero h2{font-size:31px}.cresh-hero-card{position:relative;right:auto;top:auto;bottom:auto;width:min(100%,280px);margin:0 auto;transform:none;animation:cresh-hero-float-mobile 5.2s ease-in-out infinite}
  .cresh-agent-hero{grid-template-columns:95px 1fr;gap:16px}.cresh-agent-photo{width:95px;height:115px}.cresh-agent-facts{grid-template-columns:1fr 1fr}.cresh-agent-contact{grid-template-columns:1fr}.cresh-form-grid,.cresh-media-grid{grid-template-columns:1fr}.cresh-field.is-wide{grid-column:auto}.cresh-export-grid{grid-template-columns:1fr 1fr}.cresh-creation-card{border-radius:13px}.cresh-stepper{padding:14px 8px 13px}.cresh-stepper::before{top:34px}.cresh-step span:first-child{width:34px;height:34px}.cresh-workspace{padding:20px 16px;min-height:0}.cresh-workspace-head{align-items:flex-start;flex-direction:column}.cresh-actionbar{bottom:0;padding:12px;gap:8px}.cresh-actionbar p{display:none}.cresh-actionbar .cresh-button{padding-left:12px;padding-right:12px}.cresh-preview-rail{display:none}
  .cresh-login-page{padding:0}.cresh-login-frame{min-height:100vh;border-radius:0;grid-template-columns:1fr}.cresh-login-form-panel{padding:35px 24px}.cresh-login-visual{display:none}
}
@keyframes cresh-hero-float-mobile{0%,100%{transform:translateY(0) rotate(-.8deg)}50%{transform:translateY(-6px) rotate(.8deg)}}
@media (max-width:430px){.cresh-kpis{grid-template-columns:1fr}.cresh-export-grid{grid-template-columns:1fr}.cresh-stepper{padding:12px 3px}.cresh-step span:last-child{font-size:9px}.cresh-view{padding-left:10px;padding-right:10px}.cresh-settings-tabs{margin-left:-10px;margin-right:-10px}.cresh-actionbar .cresh-button:first-of-type{display:none}}
@media (prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important}}

/* Cartes — inventaire et détail conformes à la référence */
.cresh-cards-page{min-width:0}.cresh-cards-kpis{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:12px;margin-bottom:16px}.cresh-cards-kpi{position:relative;min-width:0;min-height:108px;padding:16px 16px;display:grid;grid-template-columns:56px minmax(0,1fr);gap:13px;align-items:center;border-radius:11px;box-shadow:0 5px 18px rgba(16,44,92,.065)}.cresh-cards-kpi-icon{width:56px;height:56px;border-radius:11px;display:grid;place-items:center;color:#1457df;background:#e2ebff}.cresh-cards-kpi-icon .cresh-icon{width:31px;height:31px}.cresh-cards-kpi-icon.is-green{color:#0ca04a;background:#e0f6e9}.cresh-cards-kpi-icon.is-red{color:#ec263d;background:#fee7ea}.cresh-cards-kpi-icon.is-orange{color:#ff8e14;background:#fff0df}.cresh-cards-kpi-icon.is-violet{color:#7935e9;background:#eee6ff}.cresh-cards-kpi small,.cresh-cards-kpi strong,.cresh-cards-kpi span{display:block;min-width:0}.cresh-cards-kpi small{overflow:hidden;color:#263654;font-size:10px;font-weight:750;white-space:nowrap;text-overflow:ellipsis}.cresh-cards-kpi strong{margin:7px 0 8px;font-size:23px;line-height:1}.cresh-cards-kpi span{font-size:10px;font-weight:750;white-space:nowrap}.cresh-cards-kpi .is-positive{color:#0ca04a}.cresh-cards-kpi .is-negative{color:#e6263d}.cresh-cards-kpi .is-stable{color:#66758d}.cresh-cards-kpi>i{position:absolute;top:22px;right:15px;width:7px;height:7px;border-radius:50%;background:#1457df}.cresh-cards-kpi>i.is-green{background:#0ca04a}.cresh-cards-kpi>i.is-red{background:#ec263d}.cresh-cards-kpi>i.is-orange{background:#ff8e14}.cresh-cards-kpi>i.is-violet{background:#7935e9}
.cresh-cards-filters{position:relative;display:grid;grid-template-columns:minmax(240px,1.45fr) repeat(3,minmax(145px,.88fr)) auto auto;gap:12px;align-items:end;margin-bottom:14px;padding:14px;border-radius:11px;box-shadow:0 4px 15px rgba(16,44,92,.055)}.cresh-cards-filters .cresh-field{font-size:10px}.cresh-cards-filters .cresh-field select{min-height:42px;padding-top:8px;padding-bottom:8px;font-size:11px}.cresh-cards-search{position:relative;display:block;align-self:end}.cresh-cards-search input{width:100%;height:42px;padding:0 42px 0 13px;border:1px solid #cdd7e7;border-radius:8px;background:#fff;outline:0;font-size:11px}.cresh-cards-search input:focus{border-color:var(--cresh-blue);box-shadow:0 0 0 3px rgba(21,88,232,.1)}.cresh-cards-search>.cresh-icon{position:absolute;right:13px;top:50%;width:17px;height:17px;color:#263d69;transform:translateY(-50%)}.cresh-cards-filters>.cresh-button{height:42px;min-height:42px;padding:0 15px;font-size:11px;white-space:nowrap}.cresh-cards-advanced-button{color:#174fd0}.cresh-cards-advanced{grid-column:1/-1;display:grid;grid-template-columns:220px 220px auto;gap:12px;align-items:end;padding-top:12px;border-top:1px solid #e8edf5}.cresh-cards-advanced .cresh-button{height:42px}
.cresh-cards-workspace{display:grid;grid-template-columns:minmax(0,1fr) 368px;gap:14px;align-items:start}.cresh-cards-workspace.is-detail-hidden{grid-template-columns:1fr}.cresh-cards-workspace.is-detail-hidden .cresh-card-detail{display:none}.cresh-cards-table-panel{min-width:0;overflow:hidden;border-radius:11px;box-shadow:0 5px 20px rgba(16,44,92,.07)}.cresh-cards-table-title{height:57px;display:flex;align-items:center;padding:0 17px;border-bottom:1px solid #e8edf4}.cresh-cards-table-title h3{display:flex;align-items:center;gap:9px;margin:0;font-size:15px}.cresh-cards-table-title h3 span{padding:5px 8px;border-radius:5px;background:#e5edff;color:#1553d7;font-size:9px;font-weight:750}.cresh-cards-table{width:100%;min-width:900px;border-collapse:collapse;font-size:10px}.cresh-cards-table th{height:47px;padding:0 10px;background:#f7f9fc;color:#263650;font-size:9px;text-align:left;white-space:nowrap}.cresh-cards-table th:first-child,.cresh-cards-table td:first-child{width:34px;text-align:center}.cresh-cards-table td{height:74px;padding:8px 10px;border-top:1px solid #e8edf4;vertical-align:middle;color:#243655}.cresh-cards-table tbody tr{transition:background .15s ease,box-shadow .15s ease}.cresh-cards-table tbody tr:hover,.cresh-cards-table tbody tr.is-selected{background:#f4f8ff}.cresh-cards-table tbody tr.is-selected{box-shadow:inset 3px 0 #1a59e5}.cresh-cards-table strong,.cresh-cards-table small{display:block}.cresh-cards-table td>strong{font-size:10px}.cresh-cards-table td>small{margin-top:4px;color:#66758d;font-size:9px;line-height:1.25}.cresh-cards-table td>small.is-expired{color:#e3263d;font-weight:750}.cresh-cards-table input[type=checkbox]{width:14px;height:14px;accent-color:var(--cresh-blue)}.cresh-card-thumb-button{width:86px;height:51px;padding:0;display:block;overflow:hidden;border:0;border-radius:5px;background:#eff4fb}.cresh-card-table-thumb{width:100%;height:100%;display:block;object-fit:cover}.cresh-card-table-placeholder{width:100%;height:100%;display:grid;place-items:center;color:#1c59df}.cresh-card-table-placeholder .cresh-icon{width:24px;height:24px}.cresh-card-type{display:inline-flex;padding:5px 7px;border-radius:5px;background:#e6efff;color:#1055dd;font-size:9px;font-weight:750;white-space:nowrap}.cresh-card-type.is-temporary{background:#fff0de;color:#e97800}.cresh-card-row-action{width:30px;height:30px;border-radius:6px}.cresh-card-row-action .cresh-icon{width:16px;height:16px}.cresh-cards-table .cresh-status{padding:5px 7px;font-size:8px}
.cresh-cards-pagination{min-height:58px;display:grid;grid-template-columns:minmax(190px,1fr) auto minmax(120px,1fr);gap:15px;align-items:center;padding:11px 14px;border-top:1px solid #e8edf4;color:#52617c;font-size:9px}.cresh-cards-pagination nav{display:flex;align-items:center;justify-content:center;gap:7px}.cresh-cards-pagination nav button{width:32px;height:32px;border:1px solid #dce4ef;border-radius:7px;background:#fff;color:#243756;font-size:10px}.cresh-cards-pagination nav button.is-active{border-color:#1558e8;background:#1558e8;color:#fff;box-shadow:0 5px 13px rgba(21,88,232,.2)}.cresh-cards-pagination nav button:disabled{opacity:.4;cursor:not-allowed}.cresh-cards-pagination nav span{padding:0 3px}.cresh-cards-pagination label{justify-self:end}.cresh-cards-pagination select{height:34px;border:1px solid #dce4ef;border-radius:7px;background:#fff;padding:0 30px 0 10px;color:#243756;font-size:9px}
.cresh-card-detail{width:100%;padding:17px;position:sticky;top:116px;align-self:start;border-radius:11px;box-shadow:0 5px 20px rgba(16,44,92,.07)}.cresh-card-detail-head{height:30px;display:flex;align-items:flex-start;justify-content:space-between;margin-bottom:14px}.cresh-card-detail-head h3{margin:3px 0 0;font-size:14px}.cresh-card-detail-head .cresh-icon-button{width:29px;height:29px;border:0}.cresh-card-detail-head .cresh-icon{width:16px;height:16px}.cresh-card-detail-preview{width:100%;padding:0;display:block;border:0;border-radius:9px;background:#f2f5fa;text-align:left}.cresh-card-detail-preview:focus-visible{outline:3px solid rgba(21,88,232,.2);outline-offset:3px}.cresh-card-detail .cresh-card-preview{width:100%;max-height:245px;object-fit:contain;border-radius:9px}.cresh-card-detail .cresh-empty{min-height:180px}.cresh-card-detail .cresh-empty .cresh-icon{width:42px;height:42px}.cresh-card-meta{display:grid;grid-template-columns:125px minmax(0,1fr);gap:9px;margin:18px 0;font-size:10px}.cresh-card-meta dt{color:#687691}.cresh-card-meta dd{min-width:0;margin:0;color:#1d3359;font-weight:650;overflow-wrap:anywhere}.cresh-card-meta .cresh-status{font-size:8px}.cresh-card-detail .cresh-detail-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px}.cresh-card-detail .cresh-detail-actions .cresh-button{min-width:0;min-height:42px;padding:0 9px;font-size:9px}.cresh-card-detail .cresh-detail-actions .cresh-icon{width:18px;height:18px}
@media (max-width:1320px){.cresh-cards-kpis{grid-template-columns:repeat(3,minmax(0,1fr))}.cresh-cards-filters{grid-template-columns:minmax(250px,1.5fr) repeat(3,minmax(140px,1fr))}.cresh-cards-filters>.cresh-button{grid-row:2}.cresh-cards-workspace{grid-template-columns:minmax(0,1fr) 340px}}
@media (max-width:1080px){.cresh-cards-workspace{grid-template-columns:1fr}.cresh-card-detail{position:static}.cresh-cards-filters{grid-template-columns:1fr 1fr 1fr}.cresh-cards-filters>.cresh-button{grid-row:auto}.cresh-cards-search{grid-column:span 2}.cresh-cards-advanced{grid-template-columns:1fr 1fr auto}}
@media (max-width:760px){.cresh-cards-kpis{grid-template-columns:1fr 1fr;gap:9px}.cresh-cards-kpi{min-height:91px;padding:12px;grid-template-columns:44px minmax(0,1fr);gap:10px}.cresh-cards-kpi-icon{width:44px;height:44px}.cresh-cards-kpi-icon .cresh-icon{width:25px;height:25px}.cresh-cards-kpi strong{font-size:18px}.cresh-cards-filters{grid-template-columns:1fr 1fr}.cresh-cards-search{grid-column:1/-1}.cresh-cards-filters .cresh-button{width:100%;padding:0 8px}.cresh-cards-advanced{grid-template-columns:1fr 1fr}.cresh-cards-advanced .cresh-button{grid-column:1/-1}.cresh-cards-pagination{grid-template-columns:1fr;justify-items:center}.cresh-cards-pagination label{justify-self:center}.cresh-card-detail{padding:14px}}
@media (max-width:430px){.cresh-cards-kpis{grid-template-columns:1fr}.cresh-cards-filters{grid-template-columns:1fr}.cresh-cards-search{grid-column:auto}.cresh-cards-advanced{grid-template-columns:1fr}.cresh-cards-advanced .cresh-button{grid-column:auto}.cresh-card-detail .cresh-detail-actions{grid-template-columns:1fr}}

/* Cartes — agents actifs qui ne possèdent aucune carte courante */
.cresh-cardless-panel{min-width:0;margin-bottom:14px;overflow:hidden;border-radius:11px;box-shadow:0 5px 18px rgba(16,44,92,.065)}.cresh-cardless-head{min-height:73px;display:flex;align-items:center;justify-content:space-between;gap:20px;padding:13px 17px;border-bottom:1px solid #e7ecf3}.cresh-cardless-head>div{min-width:0;display:flex;align-items:center;gap:12px}.cresh-cardless-head>div>span{width:42px;height:42px;flex:0 0 auto;display:grid;place-items:center;border-radius:10px;background:#e8f0ff;color:#1558e8}.cresh-cardless-head>div>span .cresh-icon{width:24px;height:24px}.cresh-cardless-head h3,.cresh-cardless-head p{margin:0}.cresh-cardless-head h3{display:flex;align-items:center;gap:8px;font-size:14px}.cresh-cardless-head h3 b{padding:4px 8px;border-radius:6px;background:#e8efff;color:#1555da;font-size:9px}.cresh-cardless-head p{margin-top:5px;color:#687791;font-size:9px}.cresh-cardless-head>label{position:relative;width:min(330px,34%);flex:0 0 auto}.cresh-cardless-head>label input{width:100%;height:38px;padding:0 39px 0 12px;border:1px solid #d6e0ed;border-radius:8px;background:#fff;color:#183159;font-size:10px;outline:0}.cresh-cardless-head>label input:focus{border-color:#3476ef;box-shadow:0 0 0 3px rgba(21,88,232,.09)}.cresh-cardless-head>label .cresh-icon{position:absolute;right:12px;top:50%;width:16px;height:16px;color:#516889;transform:translateY(-50%)}
.cresh-cardless-list{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:0;padding:0 17px}.cresh-cardless-agent{min-width:0;min-height:76px;display:grid;grid-template-columns:40px minmax(0,1fr) auto;gap:10px;align-items:center;padding:10px 12px;border:0;border-bottom:1px solid #e9edf4;background:#fff;color:#1a3157;text-align:left;transition:background .15s ease,box-shadow .15s ease}.cresh-cardless-agent:nth-child(3n+2),.cresh-cardless-agent:nth-child(3n+3){border-left:1px solid #e9edf4}.cresh-cardless-agent:hover,.cresh-cardless-agent:focus-visible{outline:0;background:#f4f8ff;box-shadow:inset 0 0 0 2px rgba(21,88,232,.08)}.cresh-cardless-avatar{width:38px;height:38px;display:grid;place-items:center;overflow:hidden;border-radius:50%;background:linear-gradient(145deg,#3579ee,#1553ca);color:#fff;font-size:10px;font-weight:800}.cresh-cardless-avatar img{width:100%;height:100%;display:block;object-fit:cover}.cresh-cardless-agent>span:nth-child(2){min-width:0}.cresh-cardless-agent strong,.cresh-cardless-agent small,.cresh-cardless-agent em{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.cresh-cardless-agent strong{font-size:10px}.cresh-cardless-agent small{margin-top:4px;color:#536783;font-size:8px}.cresh-cardless-agent em{margin-top:4px;color:#7a879b;font-size:8px;font-style:normal}.cresh-cardless-agent>i{min-height:29px;display:inline-flex;align-items:center;gap:6px;padding:0 9px;border:1px solid #cedbf0;border-radius:7px;background:#fff;color:#1455d7;font-size:8px;font-style:normal;font-weight:750;white-space:nowrap}.cresh-cardless-agent>i .cresh-icon{width:13px;height:13px}.cresh-cardless-empty{grid-column:1/-1;min-height:94px;display:flex;align-items:center;justify-content:center;gap:12px;color:#28704a;text-align:left}.cresh-cardless-empty>.cresh-icon{width:30px;height:30px;color:#18a45b}.cresh-cardless-empty strong,.cresh-cardless-empty small{display:block}.cresh-cardless-empty strong{font-size:11px}.cresh-cardless-empty small{margin-top:5px;color:#6c7b91;font-size:9px}.cresh-cardless-footer{min-height:42px;display:flex;align-items:center;justify-content:space-between;gap:15px;padding:8px 17px;color:#64738d;font-size:8px}.cresh-cardless-footer nav{display:flex;align-items:center;gap:8px}.cresh-cardless-footer nav button{width:29px;height:29px;border:1px solid #d9e2ee;border-radius:7px;background:#fff;color:#163b78}.cresh-cardless-footer nav button:disabled{opacity:.4}.cresh-cardless-footer nav span{font-size:8px}
@media (max-width:1250px){.cresh-cardless-list{grid-template-columns:repeat(2,minmax(0,1fr))}.cresh-cardless-agent:nth-child(3n+2),.cresh-cardless-agent:nth-child(3n+3){border-left:0}.cresh-cardless-agent:nth-child(even){border-left:1px solid #e9edf4}}
@media (max-width:760px){.cresh-cardless-head{align-items:stretch;flex-direction:column}.cresh-cardless-head>label{width:100%}.cresh-cardless-list{grid-template-columns:1fr;padding:0 12px}.cresh-cardless-agent:nth-child(even){border-left:0}.cresh-cardless-footer{align-items:flex-start;flex-direction:column}.cresh-cardless-footer nav{align-self:stretch;justify-content:space-between}}
@media (max-width:430px){.cresh-cardless-head{padding:13px}.cresh-cardless-head>div{align-items:flex-start}.cresh-cardless-head p{line-height:1.45}.cresh-cardless-agent{grid-template-columns:38px minmax(0,1fr)}.cresh-cardless-agent>i{grid-column:2;justify-self:start}.cresh-cardless-footer{padding:8px 13px}}

/* Tableau de bord — composition analytique dédiée */
.cresh-dashboard-toolbar{min-height:28px;display:flex;justify-content:flex-end;margin:-16px 0 8px}.cresh-dashboard-period{height:34px;display:inline-flex;align-items:center;gap:8px;padding:0 11px;border:1px solid #dbe3ef;border-radius:8px;background:#fff;box-shadow:0 4px 12px rgba(15,43,86,.05);font-size:10px}.cresh-dashboard-period small{font-weight:700}.cresh-dashboard-period strong{font-size:10px}.cresh-dashboard-period .cresh-icon{width:16px;height:16px;margin-left:4px;color:#0e2a5a}
.cresh-dashboard-kpis{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:12px;margin-bottom:16px}.cresh-dashboard-kpi{min-width:0;min-height:108px;padding:16px 14px;display:grid;grid-template-columns:55px minmax(0,1fr);gap:13px;align-items:center;border-radius:11px;box-shadow:0 5px 16px rgba(16,44,92,.07)}.cresh-dashboard-kpi-icon{width:55px;height:55px;border-radius:11px;display:grid;place-items:center;background:#dce9ff}.cresh-dashboard-kpi-icon img{width:36px;height:36px;display:block}.cresh-dashboard-kpi-icon.is-green{background:#ddf5e8}.cresh-dashboard-kpi-icon.is-orange{background:#fff0dc}.cresh-dashboard-kpi-icon.is-violet{background:#e9e4ff}.cresh-dashboard-kpi-icon.is-red{background:#fee6e9}.cresh-dashboard-kpi>span:last-child{min-width:0}.cresh-dashboard-kpi small,.cresh-dashboard-kpi strong,.cresh-dashboard-kpi em{display:block}.cresh-dashboard-kpi small{min-height:24px;color:#1b2b4a;font-size:10px;font-weight:750;line-height:1.2}.cresh-dashboard-kpi strong{margin:4px 0 8px;font-size:23px;line-height:1;white-space:nowrap}.cresh-dashboard-kpi em{overflow:hidden;color:#0b9b49;font-size:10px;font-style:normal;font-weight:750;white-space:nowrap;text-overflow:ellipsis}.cresh-dashboard-kpi em.is-negative{color:#e7253e}
.cresh-dashboard-main-grid,.cresh-dashboard-bottom-grid{display:grid;grid-template-columns:minmax(0,1.48fr) minmax(285px,.96fr) minmax(280px,.92fr);gap:14px}.cresh-dashboard-bottom-grid{margin-top:14px}.cresh-dashboard-panel{min-width:0;min-height:356px;padding:18px 19px 16px;border-radius:11px;display:flex;flex-direction:column;box-shadow:0 5px 18px rgba(16,44,92,.07)}.cresh-dashboard-bottom-grid .cresh-dashboard-panel{min-height:305px}.cresh-dashboard-panel-head{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:28px;margin-bottom:12px}.cresh-dashboard-panel-head h3{margin:0;font-size:15px}.cresh-dashboard-panel-head button{height:31px;display:inline-flex;align-items:center;gap:7px;padding:0 11px;border:1px solid #dfe6f1;border-radius:8px;background:#fff;color:#203452;font-size:10px;font-weight:700}.cresh-dashboard-panel-head button .cresh-icon{width:13px;height:13px}
.cresh-chart-legend{display:flex;gap:16px;margin:2px 0 8px;color:#52617c;font-size:10px}.cresh-chart-legend span{display:flex;align-items:center;gap:6px}.cresh-chart-legend i{width:8px;height:8px;border-radius:50%;background:#1c5de5}.cresh-chart-legend span:nth-child(2) i{background:#c3baf1}.cresh-emissions-chart{height:220px;display:grid;grid-template-columns:28px minmax(0,1fr);gap:5px;margin-bottom:10px}.cresh-chart-axis{display:flex;flex-direction:column;justify-content:space-between;padding:4px 0 22px;color:#566680;font-size:9px}.cresh-chart-bars{position:relative;display:grid;grid-template-columns:repeat(8,1fr);gap:7px;border-bottom:1px solid #dfe5ef;background:repeating-linear-gradient(to bottom,transparent 0,transparent calc(33.333% - 1px),#edf1f6 33.333%)}.cresh-month-group{min-width:0;display:grid;grid-template-rows:minmax(0,1fr) 22px;align-items:end}.cresh-month-bars{height:100%;display:flex;align-items:flex-end;justify-content:center;gap:4px}.cresh-month-bars>span{position:relative;width:min(18px,42%);min-height:3px;border-radius:4px 4px 0 0}.cresh-month-bars b{position:absolute;left:50%;bottom:calc(100% + 4px);transform:translateX(-50%);font-size:8px;font-weight:750}.cresh-bar-issued{background:linear-gradient(180deg,#2468f4,#114bd6);color:#1c315e}.cresh-bar-expired{background:#c8c0ee;color:#5d6680}.cresh-month-group>small{align-self:center;text-align:center;color:#4f607c;font-size:9px;text-transform:capitalize}.cresh-chart-comparison{min-height:42px;display:flex;align-items:center;gap:7px;padding:0 12px;border-radius:8px;background:#f3f7ff;font-size:10px}.cresh-chart-comparison strong{color:#13a74f;font-size:14px}.cresh-chart-comparison.is-negative strong{color:#e52b3d}.cresh-chart-comparison span{font-weight:700}.cresh-chart-comparison>i{width:21px;height:21px;margin-left:auto;border-radius:50%;display:grid;place-items:center;background:#dff6e8;color:#0da34b}.cresh-chart-comparison .cresh-icon{width:13px;height:13px}
.cresh-dashboard-donut-layout{flex:1;display:grid;grid-template-columns:minmax(145px,1fr) minmax(120px,.85fr);gap:15px;align-items:center}.cresh-dashboard-donut{--segments:#e7ecf3 0 100%;position:relative;width:min(174px,100%);aspect-ratio:1;margin:auto;border-radius:50%;background:conic-gradient(var(--segments));display:grid;place-items:center;box-shadow:inset 0 0 16px rgba(17,50,98,.04)}.cresh-dashboard-donut::before{content:"";width:64%;aspect-ratio:1;border-radius:50%;background:#fff;box-shadow:0 0 8px rgba(18,48,96,.05)}.cresh-dashboard-donut strong{position:absolute;display:grid;justify-items:center;font-size:25px}.cresh-dashboard-donut strong small{margin-top:4px;font-size:9px}.cresh-dashboard-legend{display:grid;gap:13px}.cresh-dashboard-legend-row{display:grid;grid-template-columns:8px 1fr;gap:8px;align-items:start}.cresh-dashboard-legend-row>i{width:8px;height:8px;margin-top:3px;border-radius:50%}.cresh-dashboard-legend-row strong,.cresh-dashboard-legend-row small{display:block}.cresh-dashboard-legend-row strong{font-size:10px}.cresh-dashboard-legend-row small{margin-top:5px;color:#53617c;font-size:10px}.cresh-dashboard-panel-action{align-self:flex-start;min-height:34px;display:inline-flex;align-items:center;gap:8px;padding:0 13px;border:1px solid #dfe6f1;border-radius:8px;background:#fff;font-size:10px;font-weight:700}.cresh-dashboard-panel-action .cresh-icon{width:17px;height:17px}
.cresh-dashboard-status-list{display:grid;gap:16px;margin-top:2px}.cresh-dashboard-status-row>div{display:flex;justify-content:space-between;margin-bottom:8px;font-size:10px}.cresh-dashboard-status-row>i{height:6px;display:block;border-radius:999px;background:#e9edf4;overflow:hidden}.cresh-dashboard-status-row b{display:block;height:100%;border-radius:inherit}.cresh-dashboard-panel-link{min-height:42px;width:calc(100% + 38px);margin:auto -19px -16px;padding:0 19px;border:0;border-top:1px solid #e7ebf3;background:#fff;display:flex;align-items:center;justify-content:space-between;color:#123c88;font-size:10px;font-weight:750;text-align:left;border-radius:0 0 11px 11px}.cresh-dashboard-panel-link .cresh-icon{width:15px;height:15px}
.cresh-dashboard-activity-list{display:grid}.cresh-dashboard-activity-row{min-height:47px;display:grid;grid-template-columns:35px minmax(0,1fr) 76px;gap:10px;align-items:center;border-top:1px solid #edf0f5}.cresh-dashboard-activity-row:first-child{border-top:0}.cresh-dashboard-activity-icon{width:31px;height:31px;border-radius:50%;display:grid;place-items:center;background:#e8f1ff}.cresh-dashboard-activity-icon.is-green{background:#e5f8ed}.cresh-dashboard-activity-icon.is-orange{background:#fff0df}.cresh-dashboard-activity-icon.is-violet{background:#eee8ff}.cresh-dashboard-activity-icon img{width:20px;height:20px}.cresh-dashboard-activity-row strong,.cresh-dashboard-activity-row small{display:block}.cresh-dashboard-activity-row strong{font-size:10px}.cresh-dashboard-activity-row small{margin-top:4px;color:#66748d;font-size:9px}.cresh-dashboard-activity-row time{color:#53617b;font-size:9px;text-align:right}.cresh-dashboard-empty{min-height:110px;display:grid;place-items:center;color:#6b7890;font-size:10px;text-align:center}
.cresh-dashboard-requests,.cresh-dashboard-devices{min-width:0}.cresh-dashboard-pending-label{color:#66758e;font-size:9px}.cresh-dashboard-pending-count{margin:4px 0 8px;font-size:21px}.cresh-dashboard-request-list{display:grid}.cresh-dashboard-request-row{min-height:58px;display:grid;grid-template-columns:34px minmax(0,1fr) 76px;gap:10px;align-items:center;border-top:1px solid #edf0f5}.cresh-dashboard-avatar{width:32px;height:32px;border-radius:50%;display:grid;place-items:center;background:#7048dd;color:#fff;font-size:10px;font-weight:800}.cresh-dashboard-avatar.is-1{background:#5d7ff0}.cresh-dashboard-request-row strong,.cresh-dashboard-request-row small{display:block}.cresh-dashboard-request-row strong{font-size:10px}.cresh-dashboard-request-row small,.cresh-dashboard-request-row time{color:#65738c;font-size:9px}.cresh-dashboard-request-row time{text-align:right}.cresh-dashboard-donut-layout.is-device{grid-template-columns:minmax(150px,1fr) minmax(120px,.85fr)}.cresh-dashboard-donut.is-device{width:min(160px,100%)}
@media (max-width:1180px){.cresh-dashboard-kpis{grid-template-columns:repeat(3,minmax(0,1fr))}.cresh-dashboard-kpi{min-height:96px}.cresh-dashboard-main-grid,.cresh-dashboard-bottom-grid{grid-template-columns:minmax(0,1.35fr) minmax(270px,1fr)}.cresh-dashboard-main-grid>*:last-child,.cresh-dashboard-bottom-grid>*:last-child{grid-column:1/-1}.cresh-dashboard-main-grid>*:last-child{min-height:180px}.cresh-dashboard-status-list{grid-template-columns:repeat(5,1fr);gap:12px}.cresh-dashboard-status .cresh-dashboard-panel-link{margin-top:18px}.cresh-dashboard-devices .cresh-dashboard-donut-layout{max-width:560px;margin:auto;width:100%}}
@media (max-width:1000px){.cresh-dashboard-main-grid,.cresh-dashboard-bottom-grid{grid-template-columns:1fr}.cresh-dashboard-main-grid>*:last-child,.cresh-dashboard-bottom-grid>*:last-child{grid-column:auto}.cresh-dashboard-status-list{grid-template-columns:1fr}.cresh-dashboard-panel{min-height:0}.cresh-dashboard-emissions{min-height:356px}.cresh-dashboard-distribution,.cresh-dashboard-devices{min-height:300px}}
@media (max-width:680px){.cresh-dashboard-toolbar{margin:0 0 10px}.cresh-dashboard-kpis{grid-template-columns:1fr 1fr;gap:9px}.cresh-dashboard-kpi{min-height:88px;padding:11px;grid-template-columns:44px minmax(0,1fr);gap:9px}.cresh-dashboard-kpi-icon{width:44px;height:44px}.cresh-dashboard-kpi-icon img{width:30px;height:30px}.cresh-dashboard-kpi strong{font-size:18px}.cresh-dashboard-kpi small,.cresh-dashboard-kpi em{font-size:8px}.cresh-dashboard-panel{padding:15px}.cresh-emissions-chart{height:190px}.cresh-dashboard-donut-layout,.cresh-dashboard-donut-layout.is-device{grid-template-columns:1fr}.cresh-dashboard-legend{grid-template-columns:1fr 1fr}.cresh-dashboard-panel-link{width:calc(100% + 30px);margin-left:-15px;margin-right:-15px;margin-bottom:-15px;padding-left:15px;padding-right:15px}.cresh-dashboard-activity-row{grid-template-columns:31px minmax(0,1fr)}.cresh-dashboard-activity-row time{grid-column:2;text-align:left}.cresh-dashboard-request-row{grid-template-columns:32px minmax(0,1fr)}.cresh-dashboard-request-row time{grid-column:2;text-align:left}}

/* Agents — tableau de gestion de référence */
.cresh-agents-shell{min-width:0;overflow:hidden;border-radius:11px;box-shadow:0 5px 20px rgba(16,44,92,.07)}.cresh-agents-summary{min-height:126px;display:grid;grid-template-columns:230px minmax(400px,.95fr) minmax(470px,1.12fr);gap:24px;align-items:center;padding:22px 20px;border-bottom:1px solid #e7ecf4;background:#fff}.cresh-agents-total{height:80px;display:grid;grid-template-columns:72px minmax(0,1fr);gap:16px;align-items:center;padding-right:24px;border-right:1px solid #d9e1ed}.cresh-agents-total-icon{width:72px;height:72px;display:grid;place-items:center;border-radius:12px;background:#e5edff}.cresh-agents-total-icon img{width:48px;height:48px}.cresh-agents-total small,.cresh-agents-total strong,.cresh-agents-total em{display:block}.cresh-agents-total small{font-size:11px;font-weight:750}.cresh-agents-total strong{margin:6px 0;font-size:28px;line-height:1}.cresh-agents-total em{color:#0a9d48;font-size:10px;font-style:normal;font-weight:750}
.cresh-agents-metrics{min-height:78px;display:grid;grid-template-columns:repeat(4,1fr);align-items:center;padding:0 22px;border:1px solid #e5eaf2;border-radius:10px;background:linear-gradient(110deg,#f8fcf9,#fff 35%);box-shadow:0 4px 12px rgba(20,49,95,.04)}.cresh-agents-metric{min-width:0}.cresh-agents-metric small,.cresh-agents-metric strong{display:block}.cresh-agents-metric small{display:flex;align-items:center;gap:7px;font-size:9px;white-space:nowrap}.cresh-agents-metric small i{width:7px;height:7px;border-radius:50%;background:#12a451}.cresh-agents-metric strong{margin-top:7px;font-size:19px}.cresh-agents-metric.is-orange small i{background:#ff991f}.cresh-agents-metric.is-red small i{background:#ef2944}.cresh-agents-metric.is-grey small i{background:#98a3b6}
.cresh-agents-controls{display:grid;grid-template-columns:minmax(190px,1fr) 92px 164px;gap:12px;align-items:center}.cresh-agents-search{position:relative;display:block}.cresh-agents-search input{width:100%;height:43px;padding:0 42px 0 14px;border:1px solid #dce4ef;border-radius:8px;background:#fff;outline:none;font-size:11px}.cresh-agents-search input:focus{border-color:#6b94ee;box-shadow:0 0 0 3px rgba(21,88,232,.08)}.cresh-agents-search>.cresh-icon{position:absolute;right:13px;top:50%;width:17px;height:17px;color:#3e5278;transform:translateY(-50%)}.cresh-agents-filter-button{height:43px;display:flex;align-items:center;justify-content:center;gap:8px;border:1px solid #dce4ef;border-radius:8px;background:#fff;font-size:11px;font-weight:700}.cresh-agents-filter-button[aria-expanded=true]{border-color:#9bb7ed;background:#f5f8ff;color:#104dcf}.cresh-agents-filter-button .cresh-icon{width:16px;height:16px}.cresh-agents-add{height:43px;min-height:43px;padding:0 15px;font-size:11px;white-space:nowrap}.cresh-agents-add .cresh-icon{width:17px;height:17px}
.cresh-agents-filter-panel{display:grid;grid-template-columns:minmax(170px,1fr) minmax(170px,1fr) auto auto;gap:12px;align-items:end;padding:14px 20px;border-bottom:1px solid #e7ecf4;background:#f8faff}.cresh-agents-filter-panel .cresh-field{font-size:10px}.cresh-agents-filter-panel .cresh-field select{min-height:40px}.cresh-agents-filter-panel .cresh-button{min-height:40px;font-size:10px}
.cresh-agents-table-wrap{width:100%;overflow:auto;background:#fff}.cresh-agents-table{width:100%;min-width:1120px;border-collapse:collapse;table-layout:fixed;color:#18305b;font-size:10px}.cresh-agents-table th{height:48px;padding:0 10px;background:linear-gradient(180deg,#fafbfe,#f4f7fb);text-align:left;font-size:10px;font-weight:700}.cresh-agents-table td{height:59px;padding:7px 10px;border-top:1px solid #e6ebf3;vertical-align:middle}.cresh-agents-table tbody tr{transition:background .15s ease}.cresh-agents-table tbody tr:hover,.cresh-agents-table tbody tr:focus{outline:none;background:#f8faff}.cresh-agents-table th:nth-child(1),.cresh-agents-table td:nth-child(1){width:40px}.cresh-agents-table th:nth-child(2),.cresh-agents-table td:nth-child(2){width:205px}.cresh-agents-table th:nth-child(3),.cresh-agents-table td:nth-child(3){width:125px}.cresh-agents-table th:nth-child(4),.cresh-agents-table td:nth-child(4){width:185px}.cresh-agents-table th:nth-child(5),.cresh-agents-table td:nth-child(5){width:160px}.cresh-agents-table th:nth-child(6),.cresh-agents-table td:nth-child(6){width:125px}.cresh-agents-table th:nth-child(7),.cresh-agents-table td:nth-child(7){width:120px}.cresh-agents-table th:nth-child(8),.cresh-agents-table td:nth-child(8){width:150px}.cresh-agents-table th:nth-child(9),.cresh-agents-table td:nth-child(9){width:62px;text-align:center}.cresh-agents-check input{width:14px;height:14px;margin:0;accent-color:#1758e8}.cresh-agents-person{display:grid;grid-template-columns:38px minmax(0,1fr);gap:10px;align-items:center}.cresh-agents-avatar{width:38px;height:38px;display:grid;place-items:center;overflow:hidden;border-radius:50%;background:linear-gradient(145deg,#dbe7fb,#b9cced);color:#153b75;font-size:11px;font-weight:800}.cresh-agents-avatar img{width:100%;height:100%;object-fit:cover}.cresh-agents-person strong,.cresh-agents-person small{display:block;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.cresh-agents-person strong{font-size:10px}.cresh-agents-person small{margin-top:4px;color:#5d7196;font-size:8px}.cresh-agents-assignment strong,.cresh-agents-assignment small{display:block;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.cresh-agents-assignment strong{font-size:10px;font-weight:500}.cresh-agents-assignment small{margin-top:4px;color:#5a6e94;font-size:9px}.cresh-agents-function{display:block;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.cresh-agents-table time{white-space:nowrap;color:#435b83}
.cresh-agent-status,.cresh-agent-card-status{min-height:24px;display:inline-flex;align-items:center;justify-content:center;gap:7px;padding:0 11px;border-radius:7px;font-size:8px;font-weight:750;white-space:nowrap}.cresh-agent-status{background:#e6f7ed;color:#07833f}.cresh-agent-status i{width:6px;height:6px;border-radius:50%;background:currentColor}.cresh-agent-status.is-suspended{background:#fff1df;color:#ee7900}.cresh-agent-status.is-revoked{background:#fee7eb;color:#e5203b}.cresh-agent-status.is-archived{background:#eef1f5;color:#6c7789}.cresh-agent-card-status{background:#edf2ff;color:#1851d3}.cresh-agent-card-status.is-suspended{background:#fff2e4;color:#ec7700}.cresh-agent-card-status.is-revoked,.cresh-agent-card-status.is-expired{background:#fee9ed;color:#e5253e}.cresh-agent-card-status.is-replaced{background:#f0eaff;color:#6b42d8}.cresh-agent-card-status.is-none,.cresh-agent-card-status.is-inactive{background:#eef1f5;color:#707c90}.cresh-agents-actions button{width:32px;height:32px;border:0;border-radius:7px;background:transparent;color:#0a1f45;display:grid;place-items:center}.cresh-agents-actions button:hover{background:#eef3fc}.cresh-agents-actions .cresh-icon{width:18px;height:18px}.cresh-agents-empty{min-height:210px;display:grid;place-items:center;color:#65738d;font-size:12px}
.cresh-agents-footer{min-height:62px;display:grid;grid-template-columns:minmax(190px,1fr) auto minmax(190px,1fr);align-items:center;gap:18px;padding:10px 20px;border-top:1px solid #e2e8f1;background:#fff;color:#566b91;font-size:10px}.cresh-agents-footer nav{display:flex;align-items:center;justify-content:center;gap:8px}.cresh-agents-footer nav button{width:34px;height:34px;padding:0;border:1px solid #dce4ef;border-radius:7px;background:#fff;font-size:10px;font-weight:700}.cresh-agents-footer nav button.is-current{border-color:#1352df;background:linear-gradient(145deg,#2469f0,#0c49d7);color:#fff;box-shadow:0 5px 12px rgba(19,82,223,.2)}.cresh-agents-footer nav button:disabled{opacity:.45;cursor:default}.cresh-agents-footer nav span{padding:0 4px}.cresh-agents-footer>label{justify-self:end}.cresh-agents-footer select{height:36px;min-width:119px;padding:0 12px;border:1px solid #dce4ef;border-radius:7px;background:#fff;color:#20395f;font-size:10px}
@media (max-width:1180px){.cresh-agents-summary{grid-template-columns:220px minmax(390px,1fr)}.cresh-agents-controls{grid-column:1/-1}.cresh-agents-summary{gap:16px}.cresh-agents-total{grid-row:1}.cresh-agents-metrics{grid-row:1}.cresh-agents-controls{grid-template-columns:minmax(220px,1fr) 100px 170px}}
@media (max-width:900px){.cresh-agents-summary{grid-template-columns:1fr}.cresh-agents-total,.cresh-agents-metrics,.cresh-agents-controls{grid-column:auto;grid-row:auto}.cresh-agents-total{border-right:0;padding-right:0}.cresh-agents-filter-panel{grid-template-columns:1fr 1fr}.cresh-agents-footer{grid-template-columns:1fr}.cresh-agents-footer nav{grid-row:1}.cresh-agents-footer>label{justify-self:center}.cresh-agents-footer>span{text-align:center}}
@media (max-width:560px){.cresh-agents-summary{padding:16px}.cresh-agents-metrics{padding:0 12px}.cresh-agents-metric small{font-size:8px}.cresh-agents-metric strong{font-size:16px}.cresh-agents-controls{grid-template-columns:minmax(0,1fr) 45px}.cresh-agents-filter-button{font-size:0}.cresh-agents-add{grid-column:1/-1}.cresh-agents-filter-panel{grid-template-columns:1fr}.cresh-agents-footer nav{gap:4px}.cresh-agents-footer nav button{width:30px;height:30px}}

/* Fiche agent — composition de référence */
.cresh-agent-profile{min-width:0;color:#10264d}.cresh-agent-profile-top{display:grid;grid-template-columns:minmax(0,1fr) 235px;gap:14px;align-items:start}.cresh-agent-profile-hero{min-width:0;min-height:205px;display:grid;grid-template-columns:148px minmax(255px,1.02fr) minmax(235px,.9fr) 144px;gap:22px;align-items:center;padding:22px;border-radius:9px;box-shadow:0 5px 18px rgba(16,44,92,.07)}.cresh-agent-profile-photo{width:148px;height:158px;display:block;object-fit:cover;border-radius:9px;background:#e5eaf2}.cresh-agent-profile-identity{min-width:0}.cresh-agent-profile-name{display:flex;align-items:center;gap:14px;flex-wrap:wrap}.cresh-agent-profile-name h2{margin:0;font-size:25px;line-height:1.12;letter-spacing:-.02em}.cresh-agent-profile-name .cresh-agent-status{min-height:25px}.cresh-agent-status.is-inactive{background:#eef1f5;color:#657187}.cresh-agent-profile-role,.cresh-agent-profile-assignment{display:flex;align-items:center;gap:9px;margin:14px 0 0;color:#1f365e;font-size:12px}.cresh-agent-profile-role .cresh-icon{width:19px;height:19px;color:#172f5a}.cresh-agent-profile-assignment{margin-left:29px;color:#344a70}.cresh-agent-profile-facts{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:15px;margin-top:27px}.cresh-agent-profile-facts span{min-width:0}.cresh-agent-profile-facts small,.cresh-agent-profile-facts strong{display:block}.cresh-agent-profile-facts small{margin-bottom:7px;color:#62728d;font-size:9px}.cresh-agent-profile-facts strong{overflow:hidden;font-size:10px;white-space:nowrap;text-overflow:ellipsis}.cresh-agent-profile-contact{min-width:0;align-self:stretch;display:grid;align-content:center;gap:13px;padding:5px 20px;border-left:1px solid #e1e6ef}.cresh-agent-profile-contact>span{min-width:0;display:grid;grid-template-columns:20px minmax(0,1fr) auto;gap:9px;align-items:center;color:#30466d}.cresh-agent-profile-contact .cresh-icon{width:18px;height:18px;color:#263f6e}.cresh-agent-profile-contact strong{overflow:hidden;font-size:10px;font-weight:600;white-space:nowrap;text-overflow:ellipsis}.cresh-agent-profile-contact i{width:6px;height:6px;border-radius:50%;background:#08a249}.cresh-agent-profile-code{min-width:0;display:grid;justify-items:center;align-content:center;gap:7px;text-align:center}.cresh-agent-profile-code small{font-size:9px;font-weight:700}.cresh-agent-profile-code>img{width:82px;height:82px;display:block;object-fit:contain;background:#fff}.cresh-agent-profile-code>strong{max-width:140px;overflow:hidden;font-size:9px;white-space:nowrap;text-overflow:ellipsis}.cresh-agent-qr-empty{width:82px;height:82px;display:grid;place-items:center;border:1px dashed #cbd5e4;border-radius:8px;background:#f7f9fc;color:#70809a}.cresh-agent-qr-empty .cresh-icon{width:28px;height:28px}.cresh-agent-qr-empty em{font-size:8px;font-style:normal}.cresh-agent-barcode{width:96px;height:23px;background:repeating-linear-gradient(90deg,#10254b 0 2px,transparent 2px 4px,#10254b 4px 5px,transparent 5px 8px,#10254b 8px 11px,transparent 11px 13px)}
.cresh-agent-profile-actions{position:relative;min-width:0}.cresh-agent-profile-action-buttons{display:grid;grid-template-columns:1fr 1fr;gap:9px}.cresh-agent-profile-action-buttons .cresh-button{min-height:40px;padding:0 12px;border-color:#1c5ce9;color:#124bc7;font-size:11px;white-space:nowrap}.cresh-agent-profile-action-buttons .cresh-icon{width:16px;height:16px}.cresh-agent-actions-menu{display:grid;margin-top:8px;padding:7px;border-radius:8px;box-shadow:0 6px 17px rgba(13,40,85,.09)}.cresh-agent-actions-menu[hidden]{display:none}.cresh-agent-actions-menu button{min-height:41px;display:grid;grid-template-columns:21px minmax(0,1fr);gap:9px;align-items:center;padding:0 9px;border:0;border-radius:7px;background:#fff;color:#142c55;font-size:10px;font-weight:650;text-align:left}.cresh-agent-actions-menu button:hover,.cresh-agent-actions-menu button:focus-visible{background:#f2f6fd;outline:none}.cresh-agent-actions-menu .cresh-icon{width:17px;height:17px;color:#173d82}
.cresh-agent-profile-tabs{height:57px;display:flex;align-items:flex-end;gap:24px;margin:0 0 16px;border-bottom:1px solid #dfe5ee}.cresh-agent-profile-tabs button{height:57px;min-width:190px;display:flex;align-items:center;justify-content:center;gap:10px;padding:0 18px;border:0;border-bottom:2px solid transparent;background:transparent;color:#263d65;font-size:11px;font-weight:700}.cresh-agent-profile-tabs button:hover{color:#1555dd}.cresh-agent-profile-tabs button.is-active{border-color:#175bed;color:#1555dd}.cresh-agent-profile-tabs .cresh-icon{width:18px;height:18px}.cresh-agent-profile-grid{display:grid;grid-template-columns:minmax(0,1.08fr) minmax(390px,.9fr);gap:14px}.cresh-agent-profile-grid>.cresh-panel{min-width:0;padding:20px;border-radius:9px;box-shadow:0 5px 18px rgba(16,44,92,.06)}.cresh-agent-profile-grid h3{margin:0;font-size:13px}.cresh-agent-profile-information,.cresh-agent-profile-cards{min-height:352px}.cresh-agent-information-grid{display:grid;grid-template-columns:1fr 1fr;gap:28px;margin:25px 0 20px}.cresh-agent-information-grid>div{display:grid;gap:14px}.cresh-agent-detail-row{display:grid;grid-template-columns:118px minmax(0,1fr);gap:12px;margin:0;font-size:10px}.cresh-agent-detail-row dt{color:#24395f;font-weight:650}.cresh-agent-detail-row dd{min-width:0;margin:0;overflow-wrap:anywhere;color:#41597f}.cresh-agent-detail-row .cresh-agent-status{min-height:21px}.cresh-agent-access-note{min-height:76px;display:grid;grid-template-columns:23px minmax(0,1fr) 142px;gap:11px;align-items:center;padding:12px 14px;border:1px solid #d8e4fa;border-radius:8px;background:#f3f7ff;color:#1b438a}.cresh-agent-access-note>.cresh-icon{width:21px;height:21px;color:#1260e9}.cresh-agent-access-note strong,.cresh-agent-access-note small{display:block}.cresh-agent-access-note strong{font-size:10px}.cresh-agent-access-note small{margin-top:7px;color:#526989;font-size:9px;line-height:1.4}.cresh-agent-access-note .cresh-button{min-height:37px;padding:0 12px;color:#1453da;font-size:9px}.cresh-agent-profile-cards>header,.cresh-agent-profile-notes>header{display:flex;align-items:center;justify-content:space-between;gap:15px;margin-bottom:12px}.cresh-agent-profile-cards>header .cresh-button,.cresh-agent-profile-notes>header .cresh-button{min-height:35px;padding:0 12px;color:#1453da;font-size:9px}.cresh-agent-card-list{overflow:hidden;border:1px solid #e1e7f0;border-radius:8px}.cresh-agent-card-row{min-height:91px;display:grid;grid-template-columns:54px minmax(0,1fr) auto 28px;gap:12px;align-items:center;padding:10px 12px;border-top:1px solid #e5eaf2;background:#fff;transition:background .15s ease}.cresh-agent-card-row:first-child{border-top:0}.cresh-agent-card-row:hover,.cresh-agent-card-row:focus{outline:none;background:#f8faff}.cresh-agent-card-icon{width:52px;height:52px;border-radius:8px;background:#edf3ff;display:grid;place-items:center;color:#194da9}.cresh-agent-card-icon .cresh-icon{width:26px;height:26px}.cresh-agent-card-copy{min-width:0}.cresh-agent-card-copy strong,.cresh-agent-card-copy small{display:block;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.cresh-agent-card-copy strong{font-size:11px}.cresh-agent-card-copy small{margin-top:6px;color:#526683;font-size:9px}.cresh-agent-card-pill{min-height:22px;display:inline-flex;align-items:center;padding:0 10px;border-radius:7px;background:#e9efff;color:#1450d6;font-size:8px;font-weight:750}.cresh-agent-card-pill.is-expired,.cresh-agent-card-pill.is-revoked{background:#fee7eb;color:#df203b}.cresh-agent-card-pill.is-replaced{background:#efe9ff;color:#6842d3}.cresh-agent-card-pill.is-suspended{background:#fff0dd;color:#e47400}.cresh-agent-card-more{width:28px;height:28px;border:0;border-radius:7px;background:transparent;color:#16325f}.cresh-agent-card-more:hover{background:#eaf0fb}.cresh-agent-card-more .cresh-icon{width:17px;height:17px}.cresh-agent-profile-empty{min-height:250px;display:grid;place-content:center;justify-items:center;gap:15px;color:#67768e;font-size:10px}.cresh-agent-profile-notes{min-height:181px}.cresh-agent-profile-notes h3{display:flex;align-items:center;gap:9px}.cresh-agent-profile-notes h3 .cresh-icon{width:18px;height:18px}.cresh-agent-notes-copy{min-height:103px;padding:15px;border:1px solid #e3e8f0;border-radius:8px;color:#62718a;font-size:9px;line-height:1.55}.cresh-agent-notes-copy p{margin:0}.cresh-agent-profile-system{min-height:181px}.cresh-agent-profile-system>dl{display:grid;gap:10px;margin:22px 0 0}.cresh-agent-profile-system .cresh-agent-detail-row{grid-template-columns:138px minmax(0,1fr)}.cresh-agent-history-list{display:grid}.cresh-agent-history-list article{min-height:58px;display:grid;grid-template-columns:38px 1fr;gap:11px;align-items:center;border-top:1px solid #e8edf3}.cresh-agent-history-list article:first-child{border-top:0}.cresh-agent-history-list article>span{width:34px;height:34px;border-radius:9px;background:#eef4ff;display:grid;place-items:center;color:#1756d8}.cresh-agent-history-list .cresh-icon{width:18px;height:18px}.cresh-agent-history-list strong,.cresh-agent-history-list small{display:block}.cresh-agent-history-list strong{font-size:11px}.cresh-agent-history-list small{margin-top:4px;color:#65738b;font-size:9px}
.cresh-agent-profile-tab-panel{grid-column:1/-1;min-width:0}.cresh-agent-profile-tab-panel[hidden]{display:none!important}.cresh-agent-information-view{display:grid;grid-template-columns:minmax(0,1.08fr) minmax(350px,.9fr);gap:14px}.cresh-agent-information-view>.cresh-panel,.cresh-agent-profile-tab-panel.cresh-panel{min-width:0;padding:20px;border-radius:9px;box-shadow:0 5px 18px rgba(16,44,92,.06)}.cresh-agent-information-view>.cresh-agent-profile-information{grid-column:1/-1}.cresh-agent-profile-cards>header>div{display:flex;gap:8px}.cresh-agent-profile-access{min-height:430px}.cresh-agent-profile-access>header{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;margin-bottom:22px}.cresh-agent-profile-access>header h3{margin:5px 0 7px;font-size:18px}.cresh-agent-profile-access>header p{margin:0;color:#60708a;font-size:10px}.cresh-agent-access-workspace{display:grid;grid-template-columns:minmax(280px,.72fr) minmax(0,1.28fr);gap:18px}.cresh-agent-access-photo,.cresh-agent-access-account{min-height:285px;padding:18px;border:1px solid #e0e7f1;border-radius:11px;background:#fbfcfe}.cresh-agent-access-photo{display:grid;grid-template-columns:150px minmax(0,1fr);gap:18px;align-items:center}.cresh-agent-access-photo img{width:150px;height:178px;object-fit:cover;border-radius:10px;background:#00aeef;box-shadow:0 9px 24px rgba(20,55,110,.14)}.cresh-agent-access-photo strong,.cresh-agent-access-photo small{display:block}.cresh-agent-access-photo strong{font-size:13px}.cresh-agent-access-photo small{margin:9px 0 18px;color:#687993;font-size:9px;line-height:1.5}.cresh-agent-access-photo .cresh-button{color:#1453da}.cresh-agent-access-account{display:flex;flex-direction:column}.cresh-agent-access-account-head{display:grid;grid-template-columns:48px 1fr;gap:12px;align-items:center;padding-bottom:15px;border-bottom:1px solid #e4e9f1}.cresh-agent-access-user-icon{width:48px;height:48px;display:grid;place-items:center;border-radius:12px;background:#e9f1ff;color:#1558e8}.cresh-agent-access-user-icon .cresh-icon{width:25px;height:25px}.cresh-agent-access-account-head small,.cresh-agent-access-account-head strong,.cresh-agent-access-account-head em{display:block}.cresh-agent-access-account-head small,.cresh-agent-access-account-head em{color:#657690;font-size:9px;font-style:normal}.cresh-agent-access-account-head strong{margin:4px 0;font-size:13px}.cresh-agent-access-account>dl{display:grid;gap:13px;margin:18px 0}.cresh-agent-role-list{display:flex;flex-wrap:wrap;gap:6px}.cresh-agent-role-list b{padding:5px 8px;border-radius:6px;background:#e9efff;color:#1553d4;font-size:8px}.cresh-agent-access-buttons{display:flex;flex-wrap:wrap;gap:9px;margin-top:auto}.cresh-agent-access-empty{height:100%;display:grid;place-content:center;grid-template-columns:48px minmax(0,340px);gap:14px;align-items:start}.cresh-agent-access-empty>.cresh-icon{width:42px;height:42px;padding:10px;border-radius:12px;background:#edf3ff;color:#1559e5}.cresh-agent-access-empty strong{font-size:14px}.cresh-agent-access-empty p,.cresh-agent-access-empty small{display:block;margin:7px 0 15px;color:#64758e;font-size:10px;line-height:1.5}
@media (max-width:1380px){.cresh-agent-profile-top{grid-template-columns:minmax(0,1fr) 210px}.cresh-agent-profile-hero{grid-template-columns:125px minmax(225px,1fr) minmax(210px,.85fr) 120px;gap:16px;padding:18px}.cresh-agent-profile-photo{width:125px;height:145px}.cresh-agent-profile-contact{padding:4px 14px}.cresh-agent-profile-code>img,.cresh-agent-qr-empty{width:72px;height:72px}.cresh-agent-profile-facts{gap:9px}.cresh-agent-profile-action-buttons{grid-template-columns:1fr}.cresh-agent-profile-grid{grid-template-columns:minmax(0,1.08fr) minmax(350px,.9fr)}}
@media (max-width:1120px){.cresh-agent-profile-top{grid-template-columns:1fr}.cresh-agent-profile-actions{display:grid;grid-template-columns:260px minmax(0,1fr);gap:10px}.cresh-agent-profile-action-buttons{grid-template-columns:1fr 1fr}.cresh-agent-actions-menu{grid-template-columns:repeat(4,minmax(0,1fr));margin-top:0}.cresh-agent-actions-menu button{min-height:40px}.cresh-agent-profile-grid{grid-template-columns:1fr}.cresh-agent-profile-information,.cresh-agent-profile-cards{min-height:0}.cresh-agent-profile-notes,.cresh-agent-profile-system{min-height:150px}}
@media (max-width:1120px){.cresh-agent-information-view{grid-template-columns:1fr}.cresh-agent-information-view>.cresh-panel{min-height:0}.cresh-agent-access-workspace{grid-template-columns:1fr}.cresh-agent-access-photo,.cresh-agent-access-account{min-height:230px}}
@media (max-width:840px){.cresh-agent-profile-hero{grid-template-columns:110px minmax(0,1fr);align-items:start}.cresh-agent-profile-photo{width:110px;height:130px}.cresh-agent-profile-contact{grid-column:1/-1;grid-template-columns:1fr 1fr;border-left:0;border-top:1px solid #e1e6ef;padding:16px 0 0}.cresh-agent-profile-code{position:absolute;right:22px;top:22px}.cresh-agent-profile-hero{position:relative;padding-right:130px}.cresh-agent-profile-actions{grid-template-columns:1fr}.cresh-agent-actions-menu{grid-template-columns:1fr 1fr}.cresh-agent-profile-tabs{overflow:auto}.cresh-agent-profile-tabs button{min-width:170px}.cresh-agent-information-grid{grid-template-columns:1fr;gap:14px}.cresh-agent-access-note{grid-template-columns:22px minmax(0,1fr)}.cresh-agent-access-note .cresh-button{grid-column:2;justify-self:start}}
@media (max-width:600px){.cresh-agent-profile-hero{grid-template-columns:90px minmax(0,1fr);padding:15px}.cresh-agent-profile-photo{width:90px;height:108px}.cresh-agent-profile-name h2{font-size:19px}.cresh-agent-profile-role,.cresh-agent-profile-assignment{font-size:10px}.cresh-agent-profile-assignment{margin-left:0}.cresh-agent-profile-code{position:static;grid-column:1/-1;grid-template-columns:auto 70px minmax(0,1fr);justify-items:start;text-align:left}.cresh-agent-profile-code>img,.cresh-agent-qr-empty{width:64px;height:64px}.cresh-agent-profile-code .cresh-agent-barcode{display:none}.cresh-agent-profile-facts{grid-template-columns:1fr 1fr}.cresh-agent-profile-contact{grid-template-columns:1fr}.cresh-agent-profile-action-buttons,.cresh-agent-actions-menu{grid-template-columns:1fr 1fr}.cresh-agent-profile-tabs{margin-top:4px}.cresh-agent-profile-tabs button{min-width:150px;padding:0 10px}.cresh-agent-profile-grid>.cresh-panel{padding:15px}.cresh-agent-detail-row{grid-template-columns:105px minmax(0,1fr)}.cresh-agent-card-row{grid-template-columns:45px minmax(0,1fr) auto}.cresh-agent-card-icon{width:43px;height:43px}.cresh-agent-card-more{display:none}.cresh-agent-profile-cards>header,.cresh-agent-profile-notes>header{align-items:flex-start;flex-direction:column}.cresh-agent-profile-system .cresh-agent-detail-row{grid-template-columns:120px minmax(0,1fr)}}
@media (max-width:600px){.cresh-agent-information-view>.cresh-panel,.cresh-agent-profile-tab-panel.cresh-panel{padding:15px}.cresh-agent-profile-cards>header>div{width:100%;flex-direction:column}.cresh-agent-profile-cards>header .cresh-button{width:100%}.cresh-agent-profile-access>header{align-items:flex-start;flex-direction:column}.cresh-agent-access-photo{grid-template-columns:1fr;justify-items:center;text-align:center}.cresh-agent-access-account-head{text-align:left}.cresh-agent-access-buttons{display:grid}.cresh-agent-access-buttons .cresh-button{width:100%}}

/* Ajustement final : toutes les colonnes Cartes restent visibles sur desktop. */
.cresh-cards-table{min-width:740px;table-layout:fixed;font-size:9px}.cresh-cards-table th{padding-left:6px;padding-right:6px;font-size:8px}.cresh-cards-table th:first-child,.cresh-cards-table td:first-child{width:31px}.cresh-cards-table th:nth-child(2){width:80px}.cresh-cards-table th:nth-child(3){width:112px}.cresh-cards-table th:nth-child(4){width:100px}.cresh-cards-table th:nth-child(5){width:104px}.cresh-cards-table th:nth-child(6){width:80px}.cresh-cards-table th:nth-child(7){width:74px}.cresh-cards-table th:nth-child(8){width:84px}.cresh-cards-table th:nth-child(9){width:40px}.cresh-cards-table td{height:68px;padding:7px 6px;overflow:hidden;text-overflow:ellipsis}.cresh-cards-table strong,.cresh-cards-table small{overflow:hidden;text-overflow:ellipsis}.cresh-cards-table td>strong{font-size:9px}.cresh-cards-table td>small{font-size:8px}.cresh-cards-table input[type=checkbox]{width:13px;height:13px}.cresh-card-thumb-button{width:70px;height:43px}.cresh-card-table-placeholder .cresh-icon{width:22px;height:22px}.cresh-card-type{max-width:100%;padding:5px 6px;font-size:8px}.cresh-card-row-action{width:28px;height:28px}.cresh-card-row-action .cresh-icon{width:15px;height:15px}.cresh-cards-table .cresh-status{padding:5px 6px;font-size:7px}

/* Création — Photo et QR selon la référence validée */
.cresh-removal-banner{min-height:68px;display:grid;grid-template-columns:56px minmax(0,1fr) auto;gap:12px;align-items:center;margin:-4px 0 14px;padding:12px 16px;border:1px solid #d9e5f5;border-radius:11px;background:#fbfdff;box-shadow:0 3px 10px rgba(16,50,101,.035);cursor:pointer}.cresh-removal-banner>span:nth-child(2) strong,.cresh-removal-banner>span:nth-child(2) small{display:block}.cresh-removal-banner>span:nth-child(2) strong{font-size:11px}.cresh-removal-banner>span:nth-child(2) small{margin-top:4px;color:#64738d;font-size:9px}.cresh-removal-banner>em{padding:8px 12px;border:1px solid #bdebcf;border-radius:999px;background:#e4f8eb;color:#0a8b43;font-size:9px;font-style:normal;font-weight:800}.cresh-toggle{position:relative;width:52px;height:29px;display:block}.cresh-toggle input{position:absolute;opacity:0;pointer-events:none}.cresh-toggle i{position:absolute;inset:0;border-radius:999px;background:#cdd6e5;transition:background .18s ease}.cresh-toggle i::after{content:"";position:absolute;top:4px;left:4px;width:21px;height:21px;border-radius:50%;background:#fff;box-shadow:0 2px 6px rgba(12,42,88,.2);transition:transform .18s ease}.cresh-toggle input:checked+i{background:linear-gradient(135deg,#1c6bff,#0e4ddf)}.cresh-toggle input:checked+i::after{transform:translateX(23px)}.cresh-reference-media-grid{gap:12px;align-items:stretch}.cresh-reference-media-card{min-width:0;padding:16px;border-radius:11px;box-shadow:0 5px 16px rgba(15,43,86,.055)}.cresh-reference-media-card:hover{transform:none;box-shadow:0 7px 20px rgba(15,43,86,.075)}.cresh-reference-media-head{min-height:57px;display:grid;grid-template-columns:42px minmax(0,1fr);gap:11px;align-items:center}.cresh-reference-media-head>span{width:42px;height:42px;border-radius:50%;display:grid;place-items:center;background:#e8f0ff;color:#1558e8}.cresh-reference-media-head>span .cresh-icon{width:22px;height:22px}.cresh-reference-media-head h3,.cresh-reference-media-head p{margin:0}.cresh-reference-media-head h3{font-size:15px}.cresh-reference-media-head p{margin-top:5px;color:#63728c;font-size:9px}.cresh-photo-preview-zone{position:relative;isolation:isolate;min-height:278px;margin:10px 0 9px;display:grid;place-items:center;overflow:hidden;border-radius:9px;background:radial-gradient(circle at 50% 45%,#173a70,#0b244d 60%,#071a39);color:#fff}.cresh-photo-preview-zone::before,.cresh-photo-preview-zone::after{content:"";position:absolute;width:22px;height:22px;pointer-events:none}.cresh-photo-preview-zone::before{left:28%;top:22px;border-left:2px solid #4b91ff;border-top:2px solid #4b91ff;border-radius:5px 0 0}.cresh-photo-preview-zone::after{right:28%;bottom:64px;border-right:2px solid #4b91ff;border-bottom:2px solid #4b91ff;border-radius:0 0 5px}.cresh-photo-preview-zone.has-photo::before,.cresh-photo-preview-zone.has-photo::after{display:none}.cresh-photo-preview-zone>img{position:absolute;inset:0;width:100%;height:100%;display:block;object-fit:contain;background:#0b244d}.cresh-photo-placeholder{display:grid;justify-items:center;gap:10px;text-align:center;z-index:1}.cresh-photo-placeholder strong{font-size:10px}.cresh-photo-placeholder small{color:#d6e4fa;font-size:9px;line-height:1.5}.cresh-photo-person{width:92px;height:92px;display:grid;place-items:center;border:1px dashed #4f8bf0;border-radius:50%;color:#6fa2ff}.cresh-photo-person .cresh-icon{width:47px;height:47px}.cresh-device-badge{position:absolute;left:50%;bottom:16px;z-index:2;min-height:29px;display:flex;align-items:center;gap:7px;padding:0 12px;border-radius:999px;background:rgba(30,64,111,.82);color:#e9f2ff;font-size:8px;white-space:nowrap;transform:translateX(-50%);backdrop-filter:blur(5px)}.cresh-device-badge .cresh-icon{width:14px;height:14px;color:#7eaeff}.cresh-media-validation{min-height:25px;display:flex;align-items:center;justify-content:center;gap:8px;margin:0 0 7px;color:#65738b;font-size:9px;font-weight:700}.cresh-media-validation .cresh-icon{width:17px;height:17px}.cresh-media-validation.is-success{color:#10a153}.cresh-photo-actions{display:grid;grid-template-columns:1fr 1fr;gap:10px}.cresh-photo-actions .cresh-button{width:100%;min-height:43px;padding:0 9px;font-size:10px}.cresh-photo-drop-zone{width:100%;min-height:55px;margin-top:10px;display:flex;align-items:center;justify-content:center;gap:9px;border:1px dashed #8bb5f4;border-radius:8px;background:#fff;color:#4772b5;font-size:9px;text-align:left;transition:background .15s ease,border-color .15s ease}.cresh-photo-drop-zone:hover,.cresh-photo-drop-zone.is-dragging{border-color:#1558e8;background:#f0f6ff}.cresh-photo-drop-zone .cresh-icon{width:19px;height:19px;color:#1763ec}.cresh-photo-drop-zone span,.cresh-photo-drop-zone small{display:block}.cresh-photo-drop-zone small{margin-top:3px;color:#6480aa}.cresh-media-tip{min-height:34px;display:flex;align-items:center;gap:8px;margin:12px 0 0;padding:0 10px;border:1px solid #cfe0fb;border-radius:7px;background:#f1f6ff;color:#51698f;font-size:8px}.cresh-media-tip .cresh-icon{width:15px;height:15px;color:#1763ef}.cresh-reference-qr-card{position:relative;overflow:hidden}.cresh-reference-qr-card::before{content:"";position:absolute;left:-12%;right:-12%;top:155px;height:145px;opacity:.22;background:repeating-radial-gradient(ellipse at 0 50%,transparent 0 8px,#93bafa 9px 10px);pointer-events:none}.cresh-reference-qr-card>*{position:relative;z-index:1}.cresh-qr-preview-zone{min-height:278px;margin:10px 0 7px;display:grid;place-items:center}.cresh-qr-preview-shell{position:relative;width:min(244px,82%);aspect-ratio:1;display:grid;place-items:center;padding:17px;border:1px solid #dbe5f3;border-radius:10px;background:#fff;box-shadow:0 4px 13px rgba(14,43,89,.05)}.cresh-qr-preview-shell::before,.cresh-qr-preview-shell::after{content:"";position:absolute;inset:-6px;border-radius:10px;background:linear-gradient(#1a68f3,#1a68f3) left top/19px 2px no-repeat,linear-gradient(#1a68f3,#1a68f3) left top/2px 19px no-repeat,linear-gradient(#1a68f3,#1a68f3) right bottom/19px 2px no-repeat,linear-gradient(#1a68f3,#1a68f3) right bottom/2px 19px no-repeat;pointer-events:none}.cresh-qr-preview-shell::after{transform:rotate(180deg)}.cresh-qr-preview-shell>img{width:100%;height:100%;display:block;object-fit:contain;background:#fff;image-rendering:pixelated}.cresh-qr-placeholder{display:grid;justify-items:center;gap:9px;color:#6681ac}.cresh-qr-placeholder .cresh-icon{width:56px;height:56px}.cresh-qr-placeholder strong{font-size:10px}.cresh-qr-local-copy{display:block;margin:-3px 0 17px;color:#6a7890;font-size:8px;text-align:center}.cresh-qr-generation-action{display:block}.cresh-qr-generation-action .cresh-button{width:100%;min-height:43px;font-size:10px}
@media (max-width:980px){.cresh-reference-media-grid{grid-template-columns:1fr}.cresh-reference-media-card{max-width:580px;width:100%;margin:auto}}
@media (max-width:600px){.cresh-removal-banner{grid-template-columns:49px 1fr}.cresh-removal-banner>em{grid-column:2;justify-self:start}.cresh-photo-actions{grid-template-columns:1fr}.cresh-photo-preview-zone,.cresh-qr-preview-zone{min-height:245px}}

/* Création — disponibilité du matricule et confirmations intégrées */
.cresh-field-control{position:relative;display:block}.cresh-field-control>input{padding-right:44px}.cresh-field-control>i{position:absolute;right:13px;top:50%;width:20px;height:20px;display:grid;place-items:center;color:#71809a;font-style:normal;transform:translateY(-50%);pointer-events:none}.cresh-field-control>i .cresh-icon{width:19px;height:19px}.cresh-field-status{min-height:18px;display:flex;align-items:center;color:#71809a;font-size:10px;font-weight:650;line-height:1.35;transition:color .18s ease}.cresh-matricule-field.is-checking .cresh-field-control>i{color:var(--cresh-blue);animation:cresh-matricule-spin .8s linear infinite}.cresh-matricule-field.is-checking .cresh-field-status{color:#416aaf}.cresh-matricule-field.is-available input{border-color:#51c984;background:#f8fffb;box-shadow:0 0 0 3px rgba(22,166,90,.09)}.cresh-matricule-field.is-available .cresh-field-control>i,.cresh-matricule-field.is-available .cresh-field-status{color:#0d9b4c}.cresh-matricule-field.is-duplicate input,.cresh-matricule-field.is-invalid input{border-color:#ef7180;background:#fff9fa;box-shadow:0 0 0 3px rgba(229,43,61,.08)}.cresh-matricule-field.is-duplicate .cresh-field-control>i,.cresh-matricule-field.is-duplicate .cresh-field-status,.cresh-matricule-field.is-invalid .cresh-field-control>i,.cresh-matricule-field.is-invalid .cresh-field-status{color:#d82238}@keyframes cresh-matricule-spin{to{transform:translateY(-50%) rotate(360deg)}}
.cresh-confirmation-overlay{z-index:120;background:rgba(3,17,40,.7);backdrop-filter:blur(7px);animation:cresh-confirmation-backdrop .2s ease both}.cresh-confirmation-card{position:relative;width:min(510px,100%);overflow:hidden;padding:30px;border:1px solid rgba(140,175,229,.42);border-radius:20px;background:linear-gradient(155deg,#fff 0%,#f7faff 100%);box-shadow:0 30px 80px rgba(1,17,45,.34),0 0 0 1px rgba(255,255,255,.6) inset;animation:cresh-confirmation-enter .28s cubic-bezier(.22,1,.36,1) both}.cresh-confirmation-card::before{content:"";position:absolute;inset:0 0 auto;height:5px;background:linear-gradient(90deg,#0b3ea8,#1d6cff,#21b7ed)}.cresh-confirmation-card.is-warning::before{background:linear-gradient(90deg,#db7c12,#f3a523,#1d6cff)}.cresh-confirmation-close{position:absolute;top:17px;right:17px;width:36px;height:36px;display:grid;place-items:center;border:0;border-radius:10px;background:#eef3fb;color:#536581}.cresh-confirmation-close .cresh-icon{width:18px;height:18px}.cresh-confirmation-symbol{width:58px;height:58px;display:grid;place-items:center;margin-bottom:20px;border:1px solid #cfe0fb;border-radius:17px;background:linear-gradient(145deg,#e9f2ff,#fff);color:#1558e8;box-shadow:0 10px 24px rgba(21,88,232,.12)}.cresh-confirmation-card.is-warning .cresh-confirmation-symbol{border-color:#f5d4a7;background:linear-gradient(145deg,#fff3df,#fff);color:#e58a14;box-shadow:0 10px 24px rgba(229,138,20,.12)}.cresh-confirmation-symbol .cresh-icon{width:29px;height:29px}.cresh-confirmation-copy h2{margin:6px 46px 9px 0;font-size:23px;letter-spacing:-.02em}.cresh-confirmation-copy p{margin:0;color:#566681;font-size:13px;line-height:1.65}.cresh-confirmation-actions{display:grid;grid-template-columns:1fr 1fr;gap:11px;margin-top:25px}.cresh-confirmation-actions .cresh-button{min-height:47px}.cresh-confirmation-card .cresh-button-primary.cresh-button-danger{border-color:#d8273b;background:linear-gradient(135deg,#ef4254,#ca1e32);color:#fff;box-shadow:0 8px 20px rgba(208,31,51,.2)}.cresh-confirmation-note{display:flex;align-items:center;justify-content:center;gap:7px;margin:18px 0 0;color:#78869b;font-size:10px}.cresh-confirmation-note .cresh-icon{width:14px;height:14px;color:#4f73ad}@keyframes cresh-confirmation-backdrop{from{opacity:0}to{opacity:1}}@keyframes cresh-confirmation-enter{from{opacity:0;transform:translateY(14px) scale(.97)}to{opacity:1;transform:none}}@media (max-width:600px){.cresh-confirmation-card{padding:25px 20px 22px;border-radius:17px}.cresh-confirmation-copy h2{font-size:20px}.cresh-confirmation-actions{grid-template-columns:1fr}.cresh-confirmation-actions .cresh-button-primary{grid-row:1}.cresh-confirmation-note{justify-content:flex-start}}
@media (prefers-reduced-motion:reduce){.cresh-confirmation-overlay,.cresh-confirmation-card,.cresh-matricule-field.is-checking .cresh-field-control>i{animation:none}}

/* Création — la zone d’aperçu photo est aussi le sélecteur galerie */
.cresh-photo-upload-zone{width:100%;min-height:318px;padding:26px;border:1px solid #b8c5d6;background:linear-gradient(145deg,#e8edf4,#dbe3ed);color:var(--cresh-ink);cursor:pointer;box-shadow:inset 0 1px 0 rgba(255,255,255,.8),0 4px 12px rgba(12,43,91,.08);transition:border-color .18s ease,box-shadow .18s ease,background .18s ease}.cresh-photo-upload-zone:hover,.cresh-photo-upload-zone.is-dragging{border-color:#4d8ff6;background:linear-gradient(145deg,#edf4ff,#dfeafa);box-shadow:0 0 0 4px rgba(21,88,232,.08),0 8px 20px rgba(12,43,91,.1)}.cresh-photo-upload-zone:focus-visible{outline:0;border-color:var(--cresh-blue);box-shadow:0 0 0 4px rgba(21,88,232,.14)}.cresh-photo-upload-zone::before{inset:26px 21%;width:auto;height:auto;border:0;border-radius:0;background:linear-gradient(#2671f3,#2671f3) left top/20px 2px no-repeat,linear-gradient(#2671f3,#2671f3) left top/2px 20px no-repeat,linear-gradient(#2671f3,#2671f3) right top/20px 2px no-repeat,linear-gradient(#2671f3,#2671f3) right top/2px 20px no-repeat,linear-gradient(#2671f3,#2671f3) left bottom/20px 2px no-repeat,linear-gradient(#2671f3,#2671f3) left bottom/2px 20px no-repeat,linear-gradient(#2671f3,#2671f3) right bottom/20px 2px no-repeat,linear-gradient(#2671f3,#2671f3) right bottom/2px 20px no-repeat}.cresh-photo-upload-zone::after{display:none}.cresh-photo-upload-zone .cresh-photo-placeholder{gap:12px;color:#142849}.cresh-photo-upload-zone .cresh-photo-person{width:76px;height:76px;border-color:#4b8cf3;background:rgba(255,255,255,.18);color:#1b63e7}.cresh-photo-upload-zone .cresh-photo-person .cresh-icon{width:42px;height:42px}.cresh-inline-upload{display:grid;grid-template-columns:20px auto;align-items:center;justify-content:center;column-gap:8px;row-gap:2px}.cresh-inline-upload>.cresh-icon{grid-row:1/3;width:19px;height:19px;color:#1763eb}.cresh-inline-upload strong,.cresh-inline-upload small{display:block;text-align:left}.cresh-inline-upload strong{font-size:10px}.cresh-inline-upload small{color:#4d607e;font-size:9px}.cresh-photo-recommendation{color:#2766cb!important;font-size:9px!important;line-height:1.45!important}.cresh-photo-upload-zone .cresh-device-badge{bottom:22px;background:rgba(255,255,255,.36);color:#425574;box-shadow:0 1px 0 rgba(255,255,255,.55) inset;text-shadow:0 1px 0 rgba(255,255,255,.7)}.cresh-photo-upload-zone .cresh-device-badge .cresh-icon{color:#1763eb}.cresh-photo-upload-zone.has-photo{padding:0;background:#dfe6ef}.cresh-photo-upload-zone.has-photo>img{background:#dfe6ef}.cresh-photo-replace-hint{position:absolute;top:14px;right:14px;z-index:3;display:flex;align-items:center;gap:6px;padding:8px 10px;border:1px solid rgba(255,255,255,.72);border-radius:8px;background:rgba(5,28,63,.78);color:#fff;font-size:8px;font-weight:750;opacity:0;transform:translateY(-4px);transition:opacity .18s ease,transform .18s ease;backdrop-filter:blur(5px)}.cresh-photo-replace-hint .cresh-icon{width:14px;height:14px}.cresh-photo-upload-zone.has-photo:hover .cresh-photo-replace-hint,.cresh-photo-upload-zone.has-photo:focus-visible .cresh-photo-replace-hint{opacity:1;transform:none}.cresh-photo-actions{grid-template-columns:1fr}.cresh-photo-actions .cresh-file-button{width:100%;min-height:45px}.cresh-photo-actions>input{position:absolute}.cresh-photo-upload-zone+.cresh-media-validation{margin-top:7px}
@media (max-width:600px){.cresh-photo-upload-zone{min-height:270px;padding:21px 16px}.cresh-photo-upload-zone::before{inset:21px 12%}.cresh-photo-upload-zone .cresh-device-badge{bottom:16px;max-width:calc(100% - 28px)}.cresh-photo-replace-hint{opacity:1;transform:none}}

/* Cartes — centrage strict des icônes dans leurs tuiles KPI */
.cresh-cards-kpi>.cresh-cards-kpi-icon{display:grid;place-items:center;padding:0;line-height:0}.cresh-cards-kpi>.cresh-cards-kpi-icon>.cresh-icon{display:inline-flex;align-items:center;justify-content:center;margin:auto}.cresh-cards-kpi>.cresh-cards-kpi-icon>.cresh-icon>svg{display:block;margin:auto}

/* Création — proportions et alignements finaux Photo / QR */
.cresh-reference-media-card{display:grid;grid-template-rows:auto auto 58px 45px 34px;align-content:start}.cresh-photo-upload-zone,.cresh-qr-preview-zone{height:318px;min-height:318px;margin:10px 0 9px}.cresh-photo-placeholder .cresh-device-badge{position:static;left:auto;bottom:auto;min-height:29px;margin:0;transform:none;background:rgba(255,255,255,.46);color:#425574}.cresh-photo-placeholder .cresh-device-badge .cresh-icon{color:#1763eb}.cresh-photo-final-frame{width:min(290px,80%);max-height:274px;aspect-ratio:322/300;display:block;overflow:hidden;border:1px solid rgba(255,255,255,.85);border-radius:18px;background:#00aeef;box-shadow:0 9px 24px rgba(7,47,103,.14)}.cresh-photo-final-frame>img{width:100%;height:100%;display:block;object-fit:cover;background:#00aeef}.cresh-photo-upload-zone.has-photo{display:grid;place-items:center;padding:20px;background:linear-gradient(145deg,#e8edf4,#dbe3ed)}.cresh-photo-upload-zone.has-photo>.cresh-device-badge{left:18px;bottom:15px;transform:none}.cresh-qr-preview-shell{width:100%;height:100%;aspect-ratio:auto;padding:24px}.cresh-qr-final-frame{width:min(246px,76%);aspect-ratio:1;display:grid;place-items:center;padding:8px;border:6px solid #00aeef;border-radius:18px;background:#fff;box-shadow:0 8px 22px rgba(8,64,125,.12)}.cresh-qr-final-frame>img{width:100%;height:100%;display:block;object-fit:contain;background:#fff;image-rendering:pixelated}.cresh-media-feedback{min-height:58px;display:grid;align-content:center;justify-items:center;gap:4px;text-align:center}.cresh-media-feedback .cresh-media-validation{min-height:23px;margin:0}.cresh-media-feedback>small{display:block;min-height:14px;color:#6a7890;font-size:8px;line-height:1.35}.cresh-qr-generation-action{margin:0}.cresh-reference-media-card>.cresh-media-actions,.cresh-reference-media-card>.cresh-qr-generation-action{align-self:stretch}.cresh-reference-media-card>.cresh-media-tip{align-self:stretch;margin:0}.cresh-reference-media-card>.cresh-media-actions .cresh-button,.cresh-reference-media-card>.cresh-qr-generation-action .cresh-button{height:45px;min-height:45px}
@media (max-width:600px){.cresh-reference-media-card{grid-template-rows:auto auto 62px 45px 34px}.cresh-photo-upload-zone,.cresh-qr-preview-zone{height:270px;min-height:270px}.cresh-photo-final-frame{width:min(246px,84%);max-height:228px}.cresh-qr-preview-shell{padding:18px}.cresh-qr-final-frame{width:min(210px,78%);padding:6px;border-width:5px}.cresh-photo-placeholder .cresh-device-badge{max-width:100%}.cresh-photo-upload-zone.has-photo>.cresh-device-badge{left:12px;bottom:10px}}

/* Dossier agent — fenêtre administrative dédiée */
.cresh-agent-form-modal{width:min(1370px,calc(100vw - 34px));max-height:calc(100vh - 28px);display:flex;flex-direction:column;padding:0;overflow:hidden;border-radius:14px;background:#fff;box-shadow:0 28px 70px rgba(4,20,48,.28)}.cresh-agent-form-modal.is-fullscreen{position:fixed;inset:10px;width:auto;max-height:none;border-radius:12px}.cresh-agent-form-head{min-height:116px;display:flex;align-items:center;justify-content:space-between;gap:24px;padding:22px 28px;border-bottom:1px solid #e4e9f1;background:#fff}.cresh-agent-form-head h2{margin:5px 0 8px;font-size:29px;letter-spacing:-.025em}.cresh-agent-form-head p{margin:0;color:#64738d;font-size:12px}.cresh-agent-form-head>div:last-child{display:flex;gap:10px}.cresh-agent-form-head .cresh-icon-button{width:45px;height:45px;border:1px solid #dce4ef;border-radius:10px;background:#fff;color:#102c59}.cresh-agent-form-head .cresh-icon{width:21px;height:21px}
.cresh-agent-form-tabs{height:63px;display:grid;grid-template-columns:repeat(4,1fr);border-bottom:1px solid #e2e8f1;background:#fff}.cresh-agent-form-tabs button{display:flex;align-items:center;justify-content:center;gap:10px;padding:0 12px;border:0;border-bottom:2px solid transparent;background:transparent;color:#66758f;font-size:12px;font-weight:650;outline:none}.cresh-agent-form-tabs button:focus-visible{box-shadow:inset 0 0 0 2px rgba(23,97,239,.38)}.cresh-agent-form-tabs button i{width:25px;height:25px;display:grid;place-items:center;border-radius:50%;background:#e9eef5;color:#738097;font-style:normal;font-size:11px}.cresh-agent-form-tabs button.is-active{border-bottom-color:#1761ef;color:#143d87}.cresh-agent-form-tabs button.is-active i{background:linear-gradient(145deg,#2371ff,#0c4cd9);color:#fff;box-shadow:0 5px 12px rgba(20,87,225,.22)}
.cresh-agent-form{min-height:0;display:flex;flex:1;flex-direction:column}.cresh-agent-form-panel{min-height:0;flex:1;overflow:auto;padding:22px 28px 26px;background:#fff;animation:cresh-step-in .2s ease both}.cresh-agent-form-panel[hidden]{display:none}.cresh-agent-form-section{padding:0 0 19px}.cresh-agent-form-section+.cresh-agent-form-section{padding-top:17px;border-top:1px solid #e6ebf2}.cresh-agent-form-section h3{margin:0 0 14px;color:#0759d7;font-size:12px;text-transform:uppercase;letter-spacing:.015em}.cresh-agent-form-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px 16px}.cresh-agent-form-field{min-width:0;display:grid;align-content:start;gap:7px;color:#142b50;font-size:10px;font-weight:700}.cresh-agent-form-field>span:first-child b,.cresh-agent-form-footer>p b{color:#e3283e}.cresh-agent-form-field input,.cresh-agent-form-field select,.cresh-agent-form-field textarea,.cresh-agent-form-field output{width:100%;min-height:40px;padding:8px 12px;border:1px solid #d5deea;border-radius:7px;background:#fff;color:#183159;font:500 11px/1.3 inherit;outline:0}.cresh-agent-form-field textarea{min-height:78px;resize:vertical}.cresh-agent-form-field output{display:flex;align-items:center;background:#f6f8fb;color:#738097}.cresh-agent-form-field input:focus,.cresh-agent-form-field select:focus,.cresh-agent-form-field textarea:focus{border-color:#3476ef;box-shadow:0 0 0 3px rgba(22,93,232,.09)}.cresh-agent-form-field small{color:#7a879b;font-size:9px;font-weight:500}.cresh-agent-form-field.is-wide{grid-column:1/-1}.cresh-agent-form-field.is-span-2{grid-column:span 2}.cresh-agent-form-field .cresh-field-control>input{padding-right:40px}.cresh-agent-form-field .cresh-field-status{font-size:9px}.cresh-agent-matricule.is-checking .cresh-field-control>i{color:var(--cresh-blue);animation:cresh-matricule-spin .8s linear infinite}.cresh-agent-matricule.is-available input{border-color:#51c984;background:#f8fffb}.cresh-agent-matricule.is-available .cresh-field-status{color:#0d9b4c}.cresh-agent-matricule.is-duplicate input,.cresh-agent-matricule.is-invalid input{border-color:#ef7180;background:#fff9fa}.cresh-agent-matricule.is-duplicate .cresh-field-status,.cresh-agent-matricule.is-invalid .cresh-field-status{color:#d82238}
.cresh-agent-access-toggle{min-height:104px;display:flex;align-items:center;gap:17px;padding:20px;border:1px solid #d8e3f4;border-radius:10px;background:#f7faff;color:#17325e}.cresh-agent-access-toggle>input{width:21px;height:21px;accent-color:#165deb}.cresh-agent-access-toggle strong,.cresh-agent-access-toggle small{display:block}.cresh-agent-access-toggle strong{font-size:13px}.cresh-agent-access-toggle small{margin-top:7px;color:#657793;font-size:11px}.cresh-agent-access-fields{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin-top:18px}.cresh-agent-access-fields[hidden]{display:none}.cresh-agent-access-explainer,.cresh-agent-security-note{display:grid;grid-template-columns:34px minmax(0,1fr);gap:13px;align-items:start;padding:18px;border:1px solid #d9e5f8;border-radius:10px;background:#f5f8ff;color:#153d81}.cresh-agent-access-explainer .cresh-icon,.cresh-agent-security-note .cresh-icon{width:25px;height:25px}.cresh-agent-access-explainer strong,.cresh-agent-security-note strong{font-size:12px}.cresh-agent-access-explainer p,.cresh-agent-security-note p{margin:6px 0 0;color:#647690;font-size:11px;line-height:1.5}.cresh-agent-security-note{margin-top:18px;background:#f8fbff}
.cresh-agent-documents-grid{display:grid;grid-template-columns:minmax(330px,.8fr) minmax(0,1.35fr);gap:24px}.cresh-agent-photo-upload{min-height:315px;display:grid;place-items:center;align-content:center;gap:15px;padding:20px;border:1px dashed #afbdd1;border-radius:10px;background:#fbfcfe;text-align:center;cursor:pointer}.cresh-agent-photo-upload>input{position:absolute;width:1px;height:1px;opacity:0}.cresh-agent-photo-upload>span{display:grid;justify-items:center;gap:10px}.cresh-agent-photo-upload .cresh-icon{width:48px;height:48px;color:#1762e9}.cresh-agent-photo-upload strong{font-size:12px}.cresh-agent-photo-upload small{color:#687992;font-size:10px;line-height:1.55}.cresh-agent-photo-upload>b{min-height:39px;display:inline-flex;align-items:center;padding:0 20px;border:1px solid #cfdced;border-radius:7px;background:#fff;color:#1255d4;font-size:10px}.cresh-agent-photo-upload img{width:190px;height:200px;display:block;object-fit:cover;border-radius:9px;background:#00aeef;box-shadow:0 10px 25px rgba(11,51,105,.14)}
.cresh-agent-form-footer{min-height:70px;display:flex;align-items:center;justify-content:space-between;gap:20px;padding:12px 28px;border-top:1px solid #e1e7ef;background:#fff;box-shadow:0 -8px 20px rgba(9,38,83,.035)}.cresh-agent-form-footer p{margin:0;color:#697892;font-size:9px}.cresh-agent-form-footer>div{display:flex;gap:12px}.cresh-agent-form-footer .cresh-button{min-height:42px;padding:0 24px;font-size:11px}.cresh-agent-form-footer .cresh-button-primary{min-width:205px}
@media (max-width:1000px){.cresh-agent-form-modal{width:min(930px,calc(100vw - 24px))}.cresh-agent-form-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.cresh-agent-documents-grid{grid-template-columns:1fr}.cresh-agent-photo-upload{min-height:260px}.cresh-agent-form-tabs button span{font-size:10px}}
@media (max-width:650px){.cresh-agent-form-modal{width:100%;height:100%;max-height:none;border-radius:0}.cresh-agent-form-head{min-height:94px;padding:16px}.cresh-agent-form-head h2{font-size:23px}.cresh-agent-form-head p{display:none}.cresh-agent-form-head #agentFullscreen{display:none}.cresh-agent-form-tabs{height:auto;overflow-x:auto;grid-template-columns:repeat(4,minmax(150px,1fr))}.cresh-agent-form-tabs button{height:57px}.cresh-agent-form-panel{padding:18px 16px}.cresh-agent-form-grid,.cresh-agent-access-fields{grid-template-columns:1fr}.cresh-agent-form-field.is-span-2{grid-column:auto}.cresh-agent-form-footer{align-items:stretch;flex-direction:column;padding:12px 16px}.cresh-agent-form-footer>div{display:grid;grid-template-columns:1fr}.cresh-agent-form-footer .cresh-button-primary{min-width:0}.cresh-agent-photo-upload{min-height:235px}}

/* Audit — journal central, graphiques et filtres réels */
.cresh-audit-page{display:grid;gap:15px;color:#0c2046}.cresh-audit-page h3{margin:0;font-size:14px}.cresh-audit-top{display:grid;grid-template-columns:repeat(5,minmax(145px,1fr)) minmax(205px,1.15fr);gap:12px}.cresh-audit-top>.cresh-kpi{min-width:0;min-height:103px}.cresh-audit-period{display:grid;align-content:center;gap:8px;padding:14px 17px}.cresh-audit-period label{font-size:10px;font-weight:800}.cresh-audit-period select,.cresh-audit-evolution select,.cresh-audit-toolbar select,.cresh-audit-pagination select{height:36px;border:1px solid #d9e2ef;border-radius:7px;background:#fff;color:#183257;padding:0 11px;font:inherit}.cresh-audit-period span{color:#536889;font-size:10px}.cresh-audit-overview{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(275px,.72fr) minmax(305px,.86fr);gap:15px}.cresh-audit-overview>.cresh-panel{min-width:0;min-height:277px;padding:17px;border-radius:10px}.cresh-audit-evolution header,.cresh-audit-critical header{display:flex;align-items:center;justify-content:space-between;gap:12px}.cresh-audit-evolution select{width:102px}.cresh-audit-legend{display:flex;gap:25px;margin:18px 0 4px;color:#40577b;font-size:9px}.cresh-audit-legend span{display:flex;align-items:center;gap:7px}.cresh-audit-legend span::before{content:"";width:8px;height:8px;transform:rotate(45deg);background:currentColor}.cresh-audit-legend .is-success{color:#12a957}.cresh-audit-legend .is-warning{color:#ff8b00}.cresh-audit-legend .is-failure{color:#f02f4c}.cresh-audit-line-chart{width:100%;height:205px;overflow:visible}.cresh-audit-line-chart .grid line{stroke:#e8edf4;stroke-width:1}.cresh-audit-line-chart path{fill:none;stroke-width:2.4;stroke-linecap:round;stroke-linejoin:round}.cresh-audit-line-chart .area{fill:url(#auditSuccessFill);stroke:none}.cresh-audit-line-chart .success{stroke:#12a957}.cresh-audit-line-chart .warning{stroke:#ff8b00}.cresh-audit-line-chart .failure{stroke:#f02f4c}.cresh-audit-line-chart text{fill:#657796;font-size:9px;text-anchor:middle}.cresh-audit-distribution h3{margin-bottom:23px}.cresh-audit-donut-wrap{display:grid;grid-template-columns:145px minmax(0,1fr);gap:18px;align-items:center}.cresh-audit-donut{position:relative;display:grid;place-items:center;width:145px;aspect-ratio:1;border-radius:50%}.cresh-audit-donut::before{content:"";width:86px;aspect-ratio:1;border-radius:50%;background:#fff}.cresh-audit-donut>strong{position:absolute;font-size:22px;text-align:center}.cresh-audit-donut small{display:block;margin-top:3px;color:#71809a;font-size:8px}.cresh-audit-donut-legend{display:grid;gap:13px}.cresh-audit-donut-legend span{display:grid;grid-template-columns:8px minmax(0,1fr);gap:4px 7px;align-items:center;font-size:8px}.cresh-audit-donut-legend i{grid-row:1/3;width:8px;height:8px;border-radius:50%}.cresh-audit-donut-legend b{font-size:9px}.cresh-audit-donut-legend em{color:#637493;font-size:8px;font-style:normal}.cresh-audit-critical header button,.cresh-audit-critical>div>button,.cresh-audit-users>button,.cresh-audit-detail-button{border:0;background:transparent;color:#0a56d7}.cresh-audit-critical header button{padding:7px 10px;border:1px solid #d7e2f0;border-radius:6px;background:#fff;font-size:8px;font-weight:800}.cresh-audit-critical>div{display:grid;margin-top:8px}.cresh-audit-critical>div>button{display:grid;grid-template-columns:32px minmax(0,1fr) auto;gap:10px;align-items:center;padding:10px 0;border-bottom:1px solid #e7ecf3;text-align:left;color:#162d52}.cresh-audit-critical>div>button>span:first-child{width:30px;height:30px;display:grid;place-items:center;border-radius:7px;background:#ffe9ec;color:#ec3349}.cresh-audit-critical .cresh-icon{width:17px;height:17px}.cresh-audit-critical strong,.cresh-audit-critical small{display:block}.cresh-audit-critical strong{font-size:9px}.cresh-audit-critical small{margin-top:4px;color:#687b99;font-size:8px}.cresh-audit-critical time{max-width:70px;color:#29456e;font-size:8px;text-align:right}.cresh-audit-lower{display:grid;grid-template-columns:minmax(0,2.35fr) minmax(285px,.72fr);gap:15px;align-items:start}.cresh-audit-log{min-width:0;overflow:hidden;border-radius:10px}.cresh-audit-toolbar{display:grid;grid-template-columns:minmax(215px,1.4fr) repeat(3,minmax(130px,.8fr)) auto;gap:10px;padding:12px}.cresh-audit-toolbar label{position:relative}.cresh-audit-toolbar label>.cresh-icon{position:absolute;right:11px;top:50%;width:16px;height:16px;color:#637897;transform:translateY(-50%)}.cresh-audit-toolbar input{width:100%;height:36px;padding:0 37px 0 11px;border:1px solid #d9e2ef;border-radius:7px;background:#fff;color:#183257;font:inherit}.cresh-audit-toolbar button,.cresh-audit-advanced button{height:36px;display:flex;align-items:center;justify-content:center;gap:7px;border:1px solid #d9e2ef;border-radius:7px;background:#fff;color:#173158;font:inherit;font-weight:700}.cresh-audit-toolbar button .cresh-icon{width:15px;height:15px}.cresh-audit-advanced{display:flex;align-items:end;gap:11px;padding:0 12px 12px}.cresh-audit-advanced[hidden]{display:none}.cresh-audit-advanced label{display:grid;gap:5px;color:#5c6f8c;font-size:8px;font-weight:750}.cresh-audit-advanced input{height:34px;padding:0 9px;border:1px solid #d9e2ef;border-radius:6px}.cresh-audit-advanced button{padding:0 13px}.cresh-audit-table{min-width:860px;font-size:9px}.cresh-audit-table th{height:38px;background:#f5f7fb;font-size:8px}.cresh-audit-table td{height:49px;padding:7px 10px}.cresh-audit-table td strong,.cresh-audit-table td small{display:block}.cresh-audit-table td small{margin-top:3px;color:#73829c;font-size:7px}.cresh-audit-user{display:flex;align-items:center;gap:7px}.cresh-audit-avatar{width:25px;height:25px;display:grid;flex:0 0 auto;place-items:center;border-radius:50%;background:#143f86;color:#fff;font-size:7px;font-weight:800}.cresh-audit-avatar.is-system{background:#e6edf8;color:#244d8e}.cresh-audit-avatar .cresh-icon{width:14px;height:14px}.cresh-audit-action,.cresh-audit-status{display:inline-flex;align-items:center;gap:6px;white-space:nowrap}.cresh-audit-action i,.cresh-audit-status i{width:6px;height:6px;border-radius:50%;background:#10a957}.cresh-audit-action.is-warning i,.cresh-audit-status.is-warning i{background:#ff8b00}.cresh-audit-action.is-failure i,.cresh-audit-status.is-failure i{background:#f02f4c}.cresh-audit-status{padding:5px 7px;border-radius:6px;background:#e8f8ef;color:#079046;font-size:7px;font-weight:800;text-transform:uppercase}.cresh-audit-status.is-warning{background:#fff1df;color:#df7600}.cresh-audit-status.is-failure{background:#ffe9ec;color:#da2037}.cresh-audit-detail-button{width:28px;height:28px;display:grid;place-items:center;border-radius:6px;background:#edf3ff}.cresh-audit-detail-button .cresh-icon{width:14px;height:14px}.cresh-audit-pagination{min-height:55px;display:grid;grid-template-columns:1fr auto auto;gap:13px;align-items:center;padding:9px 13px;border-top:1px solid #e5eaf2;color:#637491;font-size:8px}.cresh-audit-pagination nav{display:flex;gap:5px;align-items:center}.cresh-audit-pagination nav button{width:29px;height:29px;border:1px solid #d9e2ef;border-radius:6px;background:#fff;color:#18345d}.cresh-audit-pagination nav button[aria-current=page]{border-color:#145be6;background:#145be6;color:#fff}.cresh-audit-pagination nav button:disabled{opacity:.38}.cresh-audit-pagination select{height:32px;font-size:8px}.cresh-audit-users{padding:17px;border-radius:10px}.cresh-audit-user-head{display:grid;grid-template-columns:minmax(0,1fr) 58px 28px;gap:8px;margin:18px 0 7px;padding-bottom:9px;border-bottom:1px solid #e5eaf2;color:#617492;font-size:8px}.cresh-audit-users>[data-audit-user]{width:100%;display:grid;grid-template-columns:minmax(95px,1fr) minmax(70px,1fr) 40px 27px;gap:8px;align-items:center;padding:11px 0;border:0;background:transparent;color:#19345d;text-align:left;font-size:8px}.cresh-audit-users>[data-audit-user] strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.cresh-audit-users>[data-audit-user]>span{height:6px;overflow:hidden;border-radius:999px;background:#e8edf4}.cresh-audit-users>[data-audit-user] i{height:100%;display:block;border-radius:inherit;background:var(--bar,#1760e8)}.cresh-audit-users>[data-audit-user] b,.cresh-audit-users>[data-audit-user] em{text-align:right;font-size:8px;font-style:normal}.cresh-audit-users>#auditAllUsers{width:100%;height:38px;display:flex;align-items:center;justify-content:space-between;margin-top:10px;border-top:1px solid #e5eaf2;font-size:8px;font-weight:800}.cresh-audit-users>#auditAllUsers .cresh-icon{width:14px;height:14px}.cresh-audit-detail>div:first-child{display:grid;gap:7px;padding:16px;border-radius:9px;background:#f5f8fe}.cresh-audit-detail h3,.cresh-audit-detail p{margin:0}.cresh-audit-detail h3{font-size:18px}.cresh-audit-detail p{color:#657590;font-size:10px}.cresh-audit-detail .cresh-card-meta{margin-top:16px}
@media (max-width:1500px){.cresh-audit-top{grid-template-columns:repeat(3,1fr)}.cresh-audit-overview{grid-template-columns:1.4fr .8fr}.cresh-audit-critical{grid-column:1/-1}.cresh-audit-critical>div{grid-template-columns:repeat(2,1fr);gap:0 20px}.cresh-audit-toolbar{grid-template-columns:minmax(210px,1.3fr) repeat(2,minmax(125px,.8fr)) auto}.cresh-audit-toolbar #auditStatus{grid-column:2}.cresh-audit-toolbar #auditToggleFilters{grid-column:4;grid-row:1}}
@media (max-width:1100px){.cresh-audit-overview,.cresh-audit-lower{grid-template-columns:1fr}.cresh-audit-users{grid-row:auto}.cresh-audit-toolbar{grid-template-columns:1fr 1fr}.cresh-audit-toolbar label{grid-column:1/-1}.cresh-audit-toolbar #auditStatus,.cresh-audit-toolbar #auditToggleFilters{grid-column:auto;grid-row:auto}.cresh-audit-donut-wrap{grid-template-columns:160px 1fr}.cresh-audit-critical>div{grid-template-columns:1fr 1fr}}
@media (max-width:760px){.cresh-audit-top{grid-template-columns:1fr 1fr}.cresh-audit-period{grid-column:1/-1}.cresh-audit-overview>.cresh-panel{padding:14px}.cresh-audit-distribution{min-height:auto}.cresh-audit-donut-wrap{grid-template-columns:1fr;justify-items:center}.cresh-audit-donut-legend{width:100%}.cresh-audit-critical>div{grid-template-columns:1fr}.cresh-audit-toolbar{grid-template-columns:1fr}.cresh-audit-toolbar label{grid-column:auto}.cresh-audit-advanced{align-items:stretch;flex-direction:column}.cresh-audit-pagination{grid-template-columns:1fr;justify-items:center;text-align:center}.cresh-audit-line-chart{height:170px}}
@media (max-width:480px){.cresh-audit-top{grid-template-columns:1fr}.cresh-audit-period{grid-column:auto}.cresh-audit-page{gap:11px}.cresh-audit-overview{gap:11px}.cresh-audit-critical time{display:none}}

.cresh-audit-line-chart circle{stroke:#fff;stroke-width:1.5;vector-effect:non-scaling-stroke}.cresh-audit-line-chart circle.success{fill:#12a957}.cresh-audit-line-chart circle.warning{fill:#ff8b00}.cresh-audit-line-chart circle.failure{fill:#f02f4c}.cresh-audit-top .cresh-kpi-icon svg{width:30px;height:30px;stroke-width:1.8}.cresh-audit-top .cresh-kpi-icon.is-red svg{stroke-width:1.9}.cresh-audit-modal-list,.cresh-audit-user-modal{display:grid;max-height:62vh;overflow:auto;border:1px solid #e3e9f2;border-radius:10px}.cresh-audit-modal-list>button{display:grid;grid-template-columns:34px minmax(0,1fr) auto 18px;gap:11px;align-items:center;min-height:61px;padding:9px 12px;border:0;border-bottom:1px solid #e8edf4;background:#fff;color:#173158;text-align:left}.cresh-audit-modal-list>button:last-child{border-bottom:0}.cresh-audit-modal-list>button:hover,.cresh-audit-user-modal>button:hover{background:#f7faff}.cresh-audit-modal-list>button>span:first-child{width:32px;height:32px;display:grid;place-items:center;border-radius:8px;background:#fff0df;color:#e77900}.cresh-audit-modal-list>button>span:first-child.is-failure{background:#ffe9ec;color:#e32842}.cresh-audit-modal-list>button>span:first-child .cresh-icon{width:18px;height:18px}.cresh-audit-modal-list strong,.cresh-audit-modal-list small{display:block}.cresh-audit-modal-list strong{font-size:11px}.cresh-audit-modal-list small{margin-top:4px;color:#697b97;font-size:9px}.cresh-audit-modal-list time{color:#506684;font-size:9px;text-align:right}.cresh-audit-modal-list>button>.cresh-icon{width:15px;height:15px;color:#1258df}.cresh-audit-user-modal>button{display:grid;grid-template-columns:36px minmax(0,1fr) auto 18px;gap:12px;align-items:center;min-height:64px;padding:10px 13px;border:0;border-bottom:1px solid #e8edf4;background:#fff;color:#173158;text-align:left}.cresh-audit-user-modal>button:last-child{border-bottom:0}.cresh-audit-user-modal>button>span{display:grid;gap:7px}.cresh-audit-user-modal>button strong{font-size:11px}.cresh-audit-user-modal>button i{height:6px;overflow:hidden;border-radius:999px;background:#e7edf5}.cresh-audit-user-modal>button i b{height:100%;display:block;border-radius:inherit;background:linear-gradient(90deg,#1260e9,#724bf1)}.cresh-audit-user-modal>button em{display:grid;gap:3px;text-align:right;font-size:11px;font-style:normal;font-weight:800}.cresh-audit-user-modal>button em small{color:#71819a;font-size:8px}.cresh-audit-user-modal>button>.cresh-icon{width:15px;height:15px;color:#1258df}

.cresh-audit-top>.cresh-kpi:nth-child(1) .cresh-kpi-icon{background:#e8f0ff;color:#1763eb}.cresh-audit-top>.cresh-kpi:nth-child(2) .cresh-kpi-icon{background:#e5f7ed;color:#12a653}.cresh-audit-top>.cresh-kpi:nth-child(3) .cresh-kpi-icon{background:#fff0df;color:#ff8a00}.cresh-audit-top>.cresh-kpi:nth-child(4) .cresh-kpi-icon{background:#feecef;color:#ef2944}.cresh-audit-top>.cresh-kpi:nth-child(5) .cresh-kpi-icon{background:#f0eaff;color:#7b39ed}.cresh-audit-top>.cresh-kpi:nth-child(3) div>span{color:#a34a32}.cresh-audit-top>.cresh-kpi:nth-child(4) div>span{color:#e32943}.cresh-audit-top>.cresh-kpi:nth-child(5) div>span{color:#7042da}

.cresh-audit-top .cresh-kpi-icon .cresh-icon{color:inherit}
.cresh-audit-top .cresh-kpi-icon svg{width:31px;height:31px;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}.cresh-audit-top>.cresh-kpi:nth-child(1) .cresh-kpi-icon svg{stroke-width:2}.cresh-audit-top>.cresh-kpi:nth-child(3) .cresh-kpi-icon svg,.cresh-audit-top>.cresh-kpi:nth-child(4) .cresh-kpi-icon svg{stroke-width:1.85}

/* Synchronisation — file locale réelle et Central Platform */
.cresh-sync-page{display:grid;gap:15px;color:#0c2046}.cresh-sync-page h3{margin:0;font-size:14px}.cresh-sync-kpis{display:grid;grid-template-columns:repeat(4,minmax(145px,1fr)) minmax(265px,1.45fr);gap:12px}.cresh-sync-kpi{min-width:0;min-height:103px;display:grid;grid-template-columns:55px minmax(0,1fr);gap:13px;align-items:center;padding:16px;border-radius:10px}.cresh-sync-kpi-icon{width:55px;height:55px;display:grid;place-items:center;border-radius:11px;background:#e7f0ff;color:#1761e8}.cresh-sync-kpi-icon .cresh-icon{width:32px;height:32px;color:inherit}.cresh-sync-kpi.is-green .cresh-sync-kpi-icon{background:#e3f7ed;color:#0ba85b}.cresh-sync-kpi.is-violet .cresh-sync-kpi-icon{background:#eee7ff;color:#7644eb}.cresh-sync-kpi.is-orange .cresh-sync-kpi-icon{background:#fff0df;color:#ff8500}.cresh-sync-kpi small,.cresh-sync-kpi strong,.cresh-sync-kpi em{display:block}.cresh-sync-kpi small{color:#1d355d;font-size:9px;font-weight:800}.cresh-sync-kpi strong{margin:7px 0 6px;overflow:hidden;color:#0a1d43;font-size:23px;line-height:1.05;text-overflow:ellipsis;white-space:nowrap}.cresh-sync-kpi em{color:#0ba451;font-size:8px;font-style:normal;font-weight:750}.cresh-sync-kpi.is-violet em{color:#145de1}.cresh-sync-kpi.is-orange em{color:#0ba451}.cresh-sync-overview{display:grid;grid-template-columns:minmax(0,1.55fr) minmax(350px,1fr);gap:15px}.cresh-sync-global,.cresh-sync-last,.cresh-sync-process,.cresh-sync-planning,.cresh-sync-activity{min-width:0;overflow:hidden;border-radius:10px}.cresh-sync-global>h3,.cresh-sync-last>header,.cresh-sync-process>h3,.cresh-sync-planning>header,.cresh-sync-activity>header{padding:17px 18px}.cresh-sync-global-body{display:grid;grid-template-columns:165px minmax(0,1fr);gap:18px;align-items:center;padding:3px 18px 15px}.cresh-sync-ring{--ring:#12aa63;position:relative;width:155px;aspect-ratio:1;display:grid;place-items:center;border-radius:50%;background:conic-gradient(var(--ring) calc(var(--sync-progress)*1%),#e5edf5 0);box-shadow:inset 0 0 0 1px rgba(13,90,69,.05)}.cresh-sync-ring::before{content:"";width:118px;aspect-ratio:1;border-radius:50%;background:#fff;box-shadow:0 1px 5px rgba(11,48,85,.08)}.cresh-sync-ring.is-failure{--ring:#ef334d}.cresh-sync-ring.is-pending{--ring:#1b67eb}.cresh-sync-ring.is-offline{--ring:#94a3b8}.cresh-sync-ring>span{position:absolute;width:102px;display:grid;justify-items:center;gap:5px;text-align:center}.cresh-sync-ring>span>.cresh-icon{width:24px;height:24px;color:var(--ring)}.cresh-sync-ring strong{font-size:11px;line-height:1.35}.cresh-sync-ring small{color:#657997;font-size:7px;line-height:1.4}.cresh-sync-route{display:grid;grid-template-columns:1fr 56px 1fr;gap:10px;align-items:center}.cresh-sync-route>div{display:grid;gap:4px}.cresh-sync-route small{color:#667a99;font-size:8px;font-weight:700}.cresh-sync-route strong{font-size:10px}.cresh-sync-route em{max-width:240px;overflow:hidden;color:#536a8d;font-size:8px;font-style:normal;text-overflow:ellipsis;white-space:nowrap}.cresh-sync-route>span{position:relative;display:grid;place-items:center;color:#0ca85a}.cresh-sync-route>span::before,.cresh-sync-route>span::after{content:"";position:absolute;top:50%;width:19px;border-top:1px dashed #c9d6e7}.cresh-sync-route>span::before{right:32px}.cresh-sync-route>span::after{left:32px}.cresh-sync-route>span .cresh-icon{width:23px;height:23px;padding:5px;border-radius:50%;background:#0ca85a;color:#fff;transform:none}.cresh-sync-mini-metrics{grid-column:2;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px;margin-top:14px}.cresh-sync-mini-metrics>span{min-height:67px;display:grid;grid-template-columns:34px 1fr;gap:2px 9px;align-content:center;padding:9px;border:1px solid #e2e9f2;border-radius:8px;background:#fff}.cresh-sync-mini-metrics .cresh-icon{grid-row:1/3;width:34px;height:34px;padding:8px;border-radius:8px;background:#eaf1ff;color:#1761e8}.cresh-sync-mini-metrics small{color:#697c98;font-size:7px}.cresh-sync-mini-metrics strong{overflow:hidden;font-size:8px;text-overflow:ellipsis;white-space:nowrap}.cresh-sync-link{width:100%;height:38px;display:flex;align-items:center;gap:8px;padding:0 18px;border:0;border-top:1px solid #e3e9f2;background:#fff;color:#0856d8;font-size:8px;font-weight:800;text-align:left}.cresh-sync-link .cresh-icon:last-child{width:14px;height:14px;margin-left:auto}.cresh-sync-last>header,.cresh-sync-planning>header,.cresh-sync-activity>header{display:flex;align-items:center;justify-content:space-between;gap:12px}.cresh-sync-last dl{display:grid;grid-template-columns:minmax(135px,.85fr) minmax(0,1.25fr);gap:8px 14px;margin:0;padding:1px 18px 13px;font-size:8px}.cresh-sync-last dt{color:#5f7393}.cresh-sync-last dd{min-width:0;margin:0;overflow:hidden;color:#1b355e;font-weight:700;text-overflow:ellipsis;white-space:nowrap}.cresh-sync-pill{display:inline-flex;align-items:center;justify-content:center;min-height:20px;padding:4px 8px;border-radius:6px;background:#e5f8ed;color:#07954a;font-size:7px;font-weight:850;white-space:nowrap}.cresh-sync-pill.is-pending{background:#eaf1ff;color:#175ddd}.cresh-sync-pill.is-failure{background:#ffe9ec;color:#d92940}.cresh-sync-pill.is-offline,.cresh-sync-pill.is-local{background:#edf1f6;color:#60728d}.cresh-sync-lower{display:grid;grid-template-columns:minmax(0,1.55fr) minmax(350px,1fr);gap:15px;align-items:start}.cresh-sync-process>h3{padding-bottom:9px}.cresh-sync-process-head,.cresh-sync-process-row{display:grid;grid-template-columns:minmax(190px,1.35fr) 74px minmax(105px,.75fr) minmax(105px,.75fr) minmax(105px,.75fr) 34px;gap:9px;align-items:center}.cresh-sync-process-head{min-height:34px;padding:0 18px;color:#687b99;font-size:7px}.cresh-sync-process-row{min-height:61px;margin:0 12px;padding:8px 6px;border:1px solid #e4eaf2;border-bottom:0;background:#fff}.cresh-sync-process-row:first-child{border-radius:8px 8px 0 0}.cresh-sync-process-row:last-child{border-bottom:1px solid #e4eaf2;border-radius:0 0 8px 8px}.cresh-sync-process-row>span:nth-child(2){display:grid;gap:3px}.cresh-sync-process-row>span:nth-child(2) strong{font-size:8px}.cresh-sync-process-row>span:nth-child(2) small{color:#6a7d99;font-size:7px}.cresh-sync-process-row>.cresh-sync-process-icon{position:absolute;width:34px;height:34px;display:grid;place-items:center;border-radius:8px;background:#e5f8ed;color:#0ba65a;transform:translateX(3px)}.cresh-sync-process-row>span:nth-child(2){padding-left:44px}.cresh-sync-process-icon .cresh-icon{width:20px;height:20px}.cresh-sync-process-icon.is-cards{background:#e9f0ff;color:#1760e6}.cresh-sync-process-icon.is-access{background:#eee8ff;color:#7845ed}.cresh-sync-process-icon.is-audit{background:#fff0df;color:#ff8500}.cresh-sync-process-icon.is-settings{background:#dff8f7;color:#0aa7a4}.cresh-sync-progress{display:grid;grid-template-columns:30px minmax(45px,1fr);gap:6px;align-items:center}.cresh-sync-progress b{font-size:8px}.cresh-sync-progress i{height:5px;overflow:hidden;border-radius:999px;background:#e7edf4}.cresh-sync-progress i em{height:100%;display:block;border-radius:inherit;background:#0ba759}.cresh-sync-process-row time{color:#40597f;font-size:7px;font-style:normal}.cresh-sync-process-row>.cresh-icon-button{width:29px;height:29px;border:1px solid #dce5f1;background:#fff}.cresh-sync-side{display:grid;gap:15px}.cresh-sync-planning>header button,.cresh-sync-activity>header button{display:flex;align-items:center;gap:6px;padding:7px 10px;border:1px solid #dae3ef;border-radius:6px;background:#fff;color:#135adc;font-size:8px;font-weight:750}.cresh-sync-planning>header button .cresh-icon{width:13px;height:13px}.cresh-sync-planning>div{min-height:120px;display:grid;grid-template-columns:minmax(0,1fr) 150px;align-items:center;padding:0 18px 12px}.cresh-sync-planning dl{display:grid;gap:4px;margin:0;font-size:8px}.cresh-sync-planning dt{color:#667b99}.cresh-sync-planning dd{margin:0 0 5px;font-weight:750}.cresh-sync-calendar-art{position:relative;width:120px;height:90px;display:grid;place-items:center;justify-self:end;border-radius:18px;background:radial-gradient(circle,#ddebff 1px,transparent 1px);background-size:10px 10px;color:#1764e9}.cresh-sync-calendar-art>.cresh-icon:first-child{width:72px;height:72px;padding:13px;border-radius:14px;background:linear-gradient(180deg,#e9f1ff,#cfe0ff);filter:drop-shadow(0 7px 8px rgba(20,91,217,.15))}.cresh-sync-calendar-art>.cresh-icon:last-child{position:absolute;right:10px;bottom:5px;width:37px;height:37px;padding:7px;border-radius:50%;background:#fff;box-shadow:0 3px 10px rgba(12,63,145,.18)}.cresh-sync-activity>div{display:grid;padding:0 18px 12px}.cresh-sync-activity>div>button{display:grid;grid-template-columns:31px minmax(0,1fr) auto;gap:9px;align-items:center;min-height:48px;padding:6px 0;border:0;border-bottom:1px solid #e7edf4;background:#fff;color:#18345c;text-align:left}.cresh-sync-activity>div>button:last-child{border-bottom:0}.cresh-sync-activity>div>button>span:nth-child(2){display:grid;gap:3px}.cresh-sync-activity strong{font-size:8px}.cresh-sync-activity small,.cresh-sync-activity time{color:#667b99;font-size:7px}.cresh-sync-activity-icon{width:29px;height:29px;display:grid;place-items:center;border-radius:50%;background:#e4f8ec;color:#0aa653}.cresh-sync-activity-icon.is-pending{background:#e8f0ff;color:#1760e6}.cresh-sync-activity-icon.is-failure{background:#ffe9ec;color:#e12d43}.cresh-sync-activity-icon .cresh-icon{width:16px;height:16px}.cresh-sync-report-list{display:grid;max-height:62vh;overflow:auto;border:1px solid #e1e8f2;border-radius:10px}.cresh-sync-report-list>button{display:grid;grid-template-columns:36px minmax(0,1fr) auto 18px;gap:11px;align-items:center;min-height:64px;padding:9px 12px;border:0;border-bottom:1px solid #e7edf4;background:#fff;color:#19345b;text-align:left}.cresh-sync-report-list>button:last-child{border-bottom:0}.cresh-sync-report-list>button:hover{background:#f7faff}.cresh-sync-report-list>button>span:nth-child(2){display:grid;gap:3px}.cresh-sync-report-list strong{font-size:10px}.cresh-sync-report-list small{color:#687b98;font-size:8px}.cresh-sync-report-list>button>.cresh-icon{width:14px;height:14px;color:#145be3}
@media(max-width:1450px){.cresh-sync-kpis{grid-template-columns:repeat(3,1fr)}.cresh-sync-kpi.is-wide{grid-column:span 2}.cresh-sync-overview,.cresh-sync-lower{grid-template-columns:1fr}.cresh-sync-side{grid-template-columns:1fr 1fr}}
@media(max-width:920px){.cresh-sync-kpis{grid-template-columns:1fr 1fr}.cresh-sync-kpi.is-wide{grid-column:1/-1}.cresh-sync-global-body{grid-template-columns:1fr;justify-items:center}.cresh-sync-route,.cresh-sync-mini-metrics{grid-column:auto;width:100%}.cresh-sync-process{overflow:auto}.cresh-sync-process>h3,.cresh-sync-process>.cresh-sync-link{position:sticky;left:0}.cresh-sync-process-head,.cresh-sync-process-row{min-width:750px}.cresh-sync-side{grid-template-columns:1fr}}
@media(max-width:560px){.cresh-sync-kpis{grid-template-columns:1fr}.cresh-sync-kpi.is-wide{grid-column:auto}.cresh-sync-route{grid-template-columns:1fr}.cresh-sync-route>span{transform:rotate(90deg)}.cresh-sync-mini-metrics{grid-template-columns:1fr}.cresh-sync-planning>div{grid-template-columns:1fr}.cresh-sync-calendar-art{justify-self:center}.cresh-sync-last dl{grid-template-columns:1fr}.cresh-sync-last dd{margin-bottom:5px}}

/* Synchronisation : alignement des icônes et conservation de la rangée KPI sur bureau. */
.cresh-sync-process-row{position:relative}
@media(min-width:1101px) and (max-width:1450px){.cresh-sync-kpis{grid-template-columns:repeat(4,minmax(145px,1fr)) minmax(265px,1.45fr)}.cresh-sync-kpi.is-wide{grid-column:auto}.cresh-sync-overview,.cresh-sync-lower{grid-template-columns:minmax(0,1.55fr) minmax(350px,1fr)}.cresh-sync-side{grid-template-columns:1fr}}

/* Paramètres — composition fidèle, contrôles réels et préférences persistantes. */
.cresh-settings-tabs{gap:18px;margin:-25px -26px 18px;padding:0 26px}.cresh-settings-tabs button{display:flex;align-items:center;gap:8px;height:50px;padding:0 8px}.cresh-settings-tabs .cresh-icon{width:17px;height:17px}.cresh-settings-reference-grid{display:grid;grid-template-columns:minmax(0,1.45fr) minmax(340px,.98fr);gap:16px;align-items:start}.cresh-settings-column{display:grid;gap:16px}.cresh-settings-reference-grid .cresh-section,.cresh-settings-wide{padding:21px}.cresh-settings-reference-grid .cresh-section-head,.cresh-settings-wide .cresh-section-head{margin-bottom:18px}.cresh-settings-reference-grid .cresh-section-head h3,.cresh-settings-wide .cresh-section-head h3{font-size:15px}.cresh-settings-form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:13px 28px}.cresh-settings-form-grid>label{display:grid;gap:7px;color:#24385e;font-size:11px;font-weight:750}.cresh-settings-form-grid input,.cresh-settings-form-grid select,.cresh-settings-form-grid textarea{width:100%;min-height:39px;padding:8px 11px;border:1px solid #d5deec;border-radius:7px;background:var(--cresh-panel);outline:none;color:var(--cresh-ink);font-size:11px}.cresh-settings-form-grid textarea{min-height:53px;resize:vertical}.cresh-settings-form-grid input:focus,.cresh-settings-form-grid select:focus,.cresh-settings-form-grid textarea:focus{border-color:var(--cresh-blue);box-shadow:0 0 0 3px color-mix(in srgb,var(--cresh-blue) 12%,transparent)}.cresh-settings-brand-grid{display:grid;grid-template-columns:175px minmax(0,1fr);gap:26px}.cresh-settings-logo{display:grid;justify-items:center;gap:9px;padding:13px;border:1px solid #e1e7f0;border-radius:9px}.cresh-settings-logo img{width:86px;height:86px;object-fit:contain;border-radius:14px}.cresh-settings-logo small{color:var(--cresh-muted);font-size:9px}.cresh-settings-logo .cresh-button{min-height:31px;padding:0 9px;font-size:9px}.cresh-settings-appearance{display:grid;grid-template-columns:1fr 1fr;gap:14px}.cresh-settings-appearance>label{display:grid;grid-template-columns:32px 1fr auto;align-items:center;gap:8px;color:#294064;font-size:10px;font-weight:750}.cresh-settings-appearance>label>input[type=color]{width:32px;height:32px;padding:2px;border:1px solid #d6dfec;border-radius:7px;background:#fff}.cresh-settings-appearance code{font:inherit;font-weight:700}.cresh-settings-appearance fieldset{grid-column:1/-1;display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:0;padding:0;border:0}.cresh-settings-appearance legend{margin-bottom:8px;color:#294064;font-size:10px;font-weight:750}.cresh-settings-appearance fieldset label{min-height:43px;display:flex;align-items:center;gap:9px;padding:0 14px;border:1px solid var(--cresh-blue);border-radius:7px;color:#16325c;font-size:11px;font-weight:700}.cresh-settings-appearance fieldset label.is-dark{border-color:#10224b;background:#061a3a;color:#fff}.cresh-check-line{display:flex!important;grid-column:1/-1!important;grid-template-columns:none!important;align-items:center;gap:8px!important;font-size:10px!important}.cresh-settings-profile-panel>.cresh-button{margin-top:18px}.cresh-settings-profile{display:grid;grid-template-columns:105px 1fr;gap:20px;align-items:center}.cresh-settings-profile-avatar{position:relative;width:100px;height:100px;border-radius:50%;display:grid;place-items:center;overflow:visible;background:#e7edf5;color:#17345f}.cresh-settings-profile-avatar>img{width:100%;height:100%;object-fit:cover;border-radius:50%}.cresh-settings-profile-avatar>span{font-size:25px;font-weight:800}.cresh-settings-profile-avatar>button{position:absolute;right:-2px;bottom:4px;width:31px;height:31px;display:grid;place-items:center;border:1px solid #d7dfeb;border-radius:50%;background:#fff;color:#174fbd}.cresh-settings-profile-avatar .cresh-icon{width:16px;height:16px}.cresh-settings-profile h3{display:flex;align-items:center;gap:10px;margin:0 0 10px;font-size:17px}.cresh-settings-profile p{display:flex;align-items:center;gap:8px;margin:7px 0;color:#546785;font-size:10px}.cresh-settings-profile p .cresh-icon{width:14px;height:14px}.cresh-settings-actions .cresh-setting-row{width:100%;border-right:0;border-bottom:0;border-left:0;background:transparent;text-align:left}.cresh-settings-actions .cresh-setting-row>b{padding:6px 10px;border:1px solid #d8e1ef;border-radius:6px;color:#0757df;font-size:9px}.cresh-settings-actions .cresh-setting-row>.cresh-icon:last-child{width:16px;height:16px}.cresh-settings-actions .cresh-kpi-icon{width:34px;height:34px;border-radius:8px}.cresh-settings-actions .cresh-kpi-icon .cresh-icon{width:18px;height:18px}.cresh-settings-permissions{display:flex;flex-wrap:wrap;gap:8px}.cresh-settings-permissions span{display:flex;align-items:center;gap:6px;padding:7px 9px;border-radius:7px;background:#edf4ff;color:#174c9e;font-size:9px}.cresh-settings-permissions .cresh-icon{width:13px;height:13px;color:#0ca455}.cresh-settings-info{display:flex;gap:14px;padding:18px;border-radius:10px;background:#eef4ff;color:#173660}.cresh-settings-info>.cresh-icon{width:36px;height:36px;color:#1762e8}.cresh-settings-info strong{font-size:16px}.cresh-settings-info p{margin:6px 0 0;line-height:1.55;color:#536785}.cresh-settings-notification-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.cresh-settings-notification-grid>label{min-height:76px;display:flex;align-items:center;justify-content:space-between;gap:15px;padding:13px 16px;border:1px solid #dfe6f0;border-radius:10px}.cresh-settings-notification-grid>label>span{display:flex;align-items:center;gap:12px}.cresh-settings-notification-grid>label>span>.cresh-icon{width:34px;height:34px;padding:8px;border-radius:9px;background:#eaf1ff;color:#1762e8}.cresh-settings-notification-grid>label>span>span{display:grid;gap:4px}.cresh-settings-notification-grid strong{font-size:12px}.cresh-settings-notification-grid small{color:var(--cresh-muted);font-size:10px}.cresh-settings-notification-grid input{width:36px;height:20px;accent-color:var(--cresh-blue)}.cresh-settings-notification-grid>.cresh-button{grid-column:1/-1;justify-self:end}.cresh-settings-system-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.cresh-settings-system-grid article{min-height:76px;display:grid;align-content:center;gap:6px;padding:14px;border:1px solid #e0e6ef;border-radius:9px}.cresh-settings-system-grid small{color:var(--cresh-muted);font-size:10px}.cresh-settings-system-grid strong{overflow-wrap:anywhere;font-size:12px}.cresh-settings-integration-grid,.cresh-settings-backup-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.cresh-settings-integration-grid article{display:grid;grid-template-columns:48px minmax(0,1fr) auto;gap:14px;align-items:center;min-height:105px;padding:15px;border:1px solid #dfe6f0;border-radius:10px}.cresh-settings-integration-grid article>span{width:46px;height:46px;display:grid;place-items:center;border-radius:11px;background:#eaf1ff;color:#1762e8}.cresh-settings-integration-grid article>span .cresh-icon{width:25px;height:25px}.cresh-settings-integration-grid h3,.cresh-settings-backup-grid h3{margin:0 0 5px;font-size:13px}.cresh-settings-integration-grid p,.cresh-settings-backup-grid p{margin:0 0 6px;color:var(--cresh-muted);font-size:10px}.cresh-settings-integration-grid output{font-size:9px;font-weight:800;color:#63718e}.cresh-settings-integration-grid output.is-success{color:#0a9c4e}.cresh-settings-integration-grid output.is-error{color:#db2940}.cresh-settings-backup-grid article{min-height:165px;display:grid;justify-items:start;align-content:center;padding:20px;border:1px solid #dfe6f0;border-radius:10px}.cresh-settings-backup-grid article>.cresh-icon{width:34px;height:34px;margin-bottom:12px;color:#1762e8}.cresh-settings-backup-grid article .cresh-button{margin-top:8px}.cresh-settings-reference-grid .cresh-card-meta{font-size:11px}

/* Thème sombre : variables globales, sans modifier la logique des pages. */
:root[data-cresh-theme="dark"]{color-scheme:dark;--cresh-navy:#030d20;--cresh-navy-2:#071833;--cresh-ink:#eef5ff;--cresh-muted:#9eabc2;--cresh-line:#263754;--cresh-soft:#081326;--cresh-panel:#0d1b31;--cresh-shadow:0 10px 28px rgba(0,0,0,.24)}
:root[data-cresh-theme="dark"] html,:root[data-cresh-theme="dark"] body{background:var(--cresh-soft);color:var(--cresh-ink)}:root[data-cresh-theme="dark"] .cresh-main,:root[data-cresh-theme="dark"] .cresh-view{background:var(--cresh-soft)}:root[data-cresh-theme="dark"] .cresh-header,:root[data-cresh-theme="dark"] .cresh-settings-tabs,:root[data-cresh-theme="dark"] .cresh-panel,:root[data-cresh-theme="dark"] .cresh-button,:root[data-cresh-theme="dark"] .cresh-icon-button,:root[data-cresh-theme="dark"] input,:root[data-cresh-theme="dark"] select,:root[data-cresh-theme="dark"] textarea,:root[data-cresh-theme="dark"] .cresh-setting-row{background:var(--cresh-panel);color:var(--cresh-ink);border-color:var(--cresh-line)}:root[data-cresh-theme="dark"] .cresh-settings-form-grid>label,:root[data-cresh-theme="dark"] .cresh-settings-appearance>label,:root[data-cresh-theme="dark"] .cresh-settings-appearance legend{color:#c9d7ec}:root[data-cresh-theme="dark"] .cresh-settings-system-grid article,:root[data-cresh-theme="dark"] .cresh-settings-integration-grid article,:root[data-cresh-theme="dark"] .cresh-settings-backup-grid article,:root[data-cresh-theme="dark"] .cresh-settings-notification-grid>label,:root[data-cresh-theme="dark"] .cresh-settings-logo{border-color:var(--cresh-line)}:root[data-cresh-theme="dark"] .cresh-table th,:root[data-cresh-theme="dark"] .cresh-table td{border-color:var(--cresh-line)}

@media(max-width:1050px){.cresh-settings-reference-grid{grid-template-columns:1fr}.cresh-settings-column{grid-template-columns:1fr}.cresh-settings-integration-grid{grid-template-columns:1fr}}
@media(max-width:680px){.cresh-settings-reference-grid .cresh-section,.cresh-settings-wide{padding:15px}.cresh-settings-form-grid,.cresh-settings-notification-grid,.cresh-settings-system-grid,.cresh-settings-backup-grid{grid-template-columns:1fr}.cresh-settings-brand-grid{grid-template-columns:1fr}.cresh-settings-appearance{grid-template-columns:1fr}.cresh-settings-appearance fieldset,.cresh-settings-notification-grid>.cresh-button{grid-column:auto}.cresh-settings-profile{grid-template-columns:80px 1fr}.cresh-settings-profile-avatar{width:76px;height:76px}.cresh-settings-integration-grid article{grid-template-columns:42px 1fr}.cresh-settings-integration-grid article>.cresh-button{grid-column:1/-1}.cresh-settings-tabs{gap:8px}.cresh-settings-tabs button{padding:0 6px}}

/* Utilisateurs & accès — administration centrale réelle */
.cresh-users-page{display:grid;gap:16px}.cresh-users-top{display:grid;grid-template-columns:repeat(4,minmax(145px,1fr)) minmax(330px,1.65fr);gap:13px}.cresh-users-kpi{min-height:112px;display:grid;grid-template-columns:53px minmax(0,1fr);gap:13px;align-items:center;padding:18px;border-radius:10px}.cresh-users-kpi-icon{width:53px;height:53px;display:grid;place-items:center;border-radius:11px;background:#e8f0ff;color:#1558e8}.cresh-users-kpi-icon.is-green{background:#e5f7ed;color:#0ca653}.cresh-users-kpi-icon.is-orange{background:#fff0df;color:#ff8510}.cresh-users-kpi-icon .cresh-icon{width:31px;height:31px}.cresh-users-kpi small,.cresh-users-kpi strong,.cresh-users-kpi em{display:block}.cresh-users-kpi small{color:#23395f;font-size:10px;font-weight:750}.cresh-users-kpi strong{margin:5px 0;font-size:25px;line-height:1}.cresh-users-kpi em{color:#0aa454;font-size:9px;font-style:normal;font-weight:750}.cresh-users-kpi:nth-child(3) em{color:#f07c0b}.cresh-users-kpi:nth-child(4) em{color:#1558e8}
.cresh-users-tools{position:relative;z-index:20;display:grid;grid-template-columns:minmax(210px,1fr) auto;grid-template-areas:"search add" "filters filters";gap:11px;padding:16px;border-radius:10px;align-content:center}.cresh-users-tools>label{position:relative;grid-area:search}.cresh-users-tools>label input{width:100%;height:41px;padding:0 42px 0 13px;border:1px solid #d8e1ee;border-radius:7px;background:#fff;color:var(--cresh-ink);font:inherit;outline:0}.cresh-users-tools>label input:focus{border-color:#3678ef;box-shadow:0 0 0 3px rgba(21,88,232,.09)}.cresh-users-tools>label>.cresh-icon{position:absolute;right:13px;top:50%;width:18px;height:18px;color:#536b94;transform:translateY(-50%)}.cresh-users-tools>#addUser{grid-area:add;min-height:41px;white-space:nowrap}.cresh-users-tools>#addUser .cresh-icon:last-child{width:14px;height:14px;margin-left:1px}.cresh-users-tools>#userFiltersToggle{grid-area:filters;justify-self:start;min-height:38px}.cresh-users-filter-panel{position:absolute;left:16px;right:16px;top:calc(100% - 11px);z-index:15;display:grid;grid-template-columns:1fr 1fr auto;gap:10px;align-items:end;padding:14px;border:1px solid #dce4ef;border-radius:9px;background:#fff;box-shadow:0 15px 34px rgba(8,34,78,.17)}.cresh-users-filter-panel[hidden]{display:none}.cresh-users-filter-panel label{display:grid;gap:6px;color:#31486f;font-size:9px;font-weight:750}.cresh-users-filter-panel select{height:39px;padding:0 11px;border:1px solid #d8e1ee;border-radius:7px;background:#fff;color:#183159}.cresh-users-filter-panel .cresh-button{min-height:39px}
.cresh-users-workspace{display:grid;grid-template-columns:minmax(0,2fr) minmax(310px,1fr);gap:16px;align-items:start}.cresh-users-list{min-width:0;overflow:hidden;border-radius:10px}.cresh-users-list>header{padding:20px 18px 12px}.cresh-users-list h3,.cresh-users-rail h3{margin:0;font-size:14px}.cresh-users-list table{width:100%;min-width:790px;border-collapse:collapse;font-size:10px}.cresh-users-list th{height:40px;padding:0 12px;background:#f5f7fb;color:#344868;font-size:9px;text-align:left}.cresh-users-list td{height:59px;padding:8px 12px;border-top:1px solid #e8edf4;color:#223a60;vertical-align:middle}.cresh-users-list tbody tr{transition:background .15s ease}.cresh-users-list tbody tr:hover{background:#f8faff}.cresh-users-list td>strong,.cresh-users-list td>small{display:block}.cresh-users-list td>small{margin-top:4px;color:#687995;font-size:9px}.cresh-user-identity{display:flex;align-items:center;gap:10px}.cresh-user-identity strong,.cresh-user-identity small{display:block;max-width:170px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.cresh-user-identity strong{font-size:10px}.cresh-user-identity small{margin-top:4px;color:#647795;font-size:9px}.cresh-user-avatar{width:34px;height:34px;flex:0 0 auto;display:grid;place-items:center;overflow:hidden;border-radius:50%;background:hsl(var(--avatar-hue,215) 72% 58%);color:#fff;font-size:10px;font-weight:800}.cresh-user-avatar>img{width:100%;height:100%;object-fit:cover}.cresh-user-roles{display:flex;gap:4px;flex-wrap:wrap}.cresh-user-roles span{padding:5px 8px;border-radius:6px;background:#eaf0ff;color:#1553d5;font-size:8px;font-weight:750}.cresh-user-roles span:nth-child(even){background:#f0eaff;color:#7042da}.cresh-users-list .cresh-icon-button{width:31px;height:31px;border:0;background:transparent}.cresh-users-list .cresh-icon-button:hover{background:#edf3fd}.cresh-users-list>footer{min-height:58px;display:grid;grid-template-columns:1fr auto auto;gap:14px;align-items:center;padding:10px 17px;border-top:1px solid #e4eaf2;color:#687791;font-size:9px}.cresh-users-list>footer nav{display:flex;gap:6px;align-items:center}.cresh-users-list>footer nav button{width:31px;height:31px;border:1px solid #dce4ef;border-radius:7px;background:#fff;color:#263d64}.cresh-users-list>footer nav button.is-active{border-color:#1558e8;background:#1558e8;color:#fff}.cresh-users-list>footer nav button:disabled{opacity:.42}.cresh-users-list>footer nav span{padding:0 3px}.cresh-users-list>footer select{height:34px;padding:0 28px 0 10px;border:1px solid #dce4ef;border-radius:7px;background:#fff;color:#344965;font-size:9px}
.cresh-users-rail{display:grid;gap:14px;min-width:0}.cresh-users-rail>.cresh-panel{padding:18px;border-radius:10px}.cresh-users-role-card>div{display:grid;grid-template-columns:148px minmax(0,1fr);gap:15px;align-items:center;margin-top:15px}.cresh-users-donut{position:relative;width:142px;aspect-ratio:1;border:0;border-radius:50%;display:grid;place-items:center}.cresh-users-donut::before{content:"";width:88px;aspect-ratio:1;border-radius:50%;background:#fff}.cresh-users-donut>span{position:absolute;text-align:center}.cresh-users-donut strong,.cresh-users-donut small{display:block}.cresh-users-donut strong{font-size:25px}.cresh-users-donut small{margin-top:4px;color:#60708c;font-size:9px}.cresh-users-role-card ul{display:grid;gap:13px;margin:0;padding:0;list-style:none}.cresh-users-role-card li{display:grid;grid-template-columns:8px minmax(0,1fr) auto;gap:8px;align-items:center;font-size:9px}.cresh-users-role-card li i{width:8px;height:8px;border-radius:50%}.cresh-users-role-card li span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.cresh-users-role-card li strong{font-size:9px}.cresh-users-link-button{width:100%;min-height:38px;margin-top:12px;display:flex;align-items:center;justify-content:space-between;padding:0 12px;border:1px solid #dce4ef;border-radius:7px;background:#fff;color:#1550ca;font-size:9px;font-weight:750}.cresh-users-link-button .cresh-icon{width:15px;height:15px}
.cresh-users-request-card>header{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:8px}.cresh-users-request-card>header button{border:0;background:transparent;color:#1555da;font-size:9px;font-weight:750}.cresh-pending-user{width:100%;min-height:66px;display:grid;grid-template-columns:35px minmax(0,1fr) auto;gap:10px;align-items:center;padding:9px 0;border:0;border-top:1px solid #e7ecf3;background:transparent;color:inherit;text-align:left}.cresh-pending-user:first-child{border-top:0}.cresh-pending-user:hover{background:#f8faff}.cresh-pending-user .cresh-avatar{width:34px;height:34px;color:#fff;background:hsl(var(--avatar-hue,230) 76% 58%);font-size:9px}.cresh-pending-user strong,.cresh-pending-user small{display:block}.cresh-pending-user strong{font-size:10px}.cresh-pending-user small{margin-top:4px;color:#64738f;font-size:8px;line-height:1.3}.cresh-pending-user .cresh-status{font-size:7px}.cresh-users-request-card .cresh-muted{margin:18px 0;color:#6c7990;font-size:10px}
.cresh-users-security{display:grid;gap:0}.cresh-users-security h3{margin-bottom:8px}.cresh-users-security>div,.cresh-users-security>button{min-height:48px;display:grid;grid-template-columns:33px minmax(0,1fr) auto auto;gap:10px;align-items:center;border:0;border-top:1px solid #e8edf4;background:transparent;color:inherit;text-align:left}.cresh-users-security>button{width:100%;font:inherit;cursor:pointer}.cresh-users-security>button:hover{background:#f8faff}.cresh-users-security>div>span,.cresh-users-security>button>span{width:30px;height:30px;display:grid;place-items:center;border-radius:8px;background:#e9f7ee;color:#0ca653}.cresh-users-security span.is-orange{background:#fff1e1;color:#f1840d}.cresh-users-security span.is-blue{background:#e9f1ff;color:#1558e8}.cresh-users-security .cresh-icon{width:17px;height:17px}.cresh-users-security small{font-size:9px;font-weight:650}.cresh-users-security strong{font-size:13px}.cresh-users-security em{color:#5d6f8d;font-size:8px;font-style:normal;white-space:nowrap}
.cresh-user-action-grid{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(220px,.65fr);gap:18px;margin:18px 0}.cresh-user-action-grid fieldset{display:grid;gap:8px;margin:0;padding:14px;border:1px solid #dfe6f0;border-radius:9px}.cresh-user-action-grid legend{padding:0 6px;font-size:11px;font-weight:750}.cresh-user-action-grid fieldset label{display:grid;grid-template-columns:20px 1fr;gap:9px;align-items:center;padding:9px;border-radius:7px;background:#f7f9fc}.cresh-user-action-grid fieldset input{width:17px;height:17px;accent-color:#1558e8}.cresh-user-action-grid fieldset strong,.cresh-user-action-grid fieldset small{display:block}.cresh-user-action-grid fieldset strong{font-size:10px}.cresh-user-action-grid fieldset small{margin-top:3px;color:#6b7890;font-size:8px}.cresh-request-modal-row{width:100%;border:0;border-top:1px solid #e7ebf2;background:#fff;color:inherit;text-align:left}.cresh-request-modal-row:first-child{border-top:0}
@media (max-width:1600px){.cresh-users-top{grid-template-columns:repeat(4,minmax(140px,1fr))}.cresh-users-tools{grid-column:1/-1;grid-template-columns:minmax(260px,1fr) auto auto;grid-template-areas:"search filters add"}.cresh-users-tools>#userFiltersToggle{justify-self:stretch}.cresh-users-workspace{grid-template-columns:minmax(0,1.65fr) minmax(300px,.75fr)}.cresh-users-role-card>div{grid-template-columns:130px 1fr}.cresh-users-donut{width:126px}}
@media (max-width:1050px){.cresh-users-top{grid-template-columns:repeat(2,minmax(0,1fr))}.cresh-users-workspace{grid-template-columns:1fr}.cresh-users-rail{grid-template-columns:repeat(3,minmax(0,1fr))}.cresh-users-role-card>div{grid-template-columns:120px 1fr}.cresh-users-donut{width:116px}.cresh-users-list>footer{grid-template-columns:1fr auto}.cresh-users-list>footer>label{grid-column:1/-1;justify-self:end}}
@media (max-width:760px){.cresh-users-top{grid-template-columns:1fr 1fr}.cresh-users-tools{grid-column:1/-1;grid-template-columns:1fr auto;grid-template-areas:"search search" "filters add"}.cresh-users-filter-panel{grid-template-columns:1fr;top:calc(100% - 5px)}.cresh-users-rail{grid-template-columns:1fr}.cresh-users-list>footer{grid-template-columns:1fr}.cresh-users-list>footer nav{justify-self:start}.cresh-users-list>footer>label{grid-column:auto;justify-self:start}.cresh-user-action-grid{grid-template-columns:1fr}}
@media (max-width:500px){.cresh-users-top{grid-template-columns:1fr}.cresh-users-kpi{min-height:92px}.cresh-users-tools{grid-template-columns:1fr;grid-template-areas:"search" "filters" "add"}.cresh-users-tools>#userFiltersToggle,.cresh-users-tools>#addUser{width:100%}.cresh-users-role-card>div{grid-template-columns:112px 1fr}.cresh-users-donut{width:108px}.cresh-users-list>footer nav{max-width:100%;overflow:auto}.cresh-users-security>div,.cresh-users-security>button{grid-template-columns:33px minmax(0,1fr) auto}.cresh-users-security em{display:none}}
