:root{
 --bg:#f4f7fb;--panel:#fff;--panel2:#f8fafc;--text:#172033;--muted:#6b778c;--line:#dfe5ee;
 --primary:#0d6efd;--primary-dark:#0b5ed7;--primary-soft:#eaf2ff;--nav:#0f172a;--nav2:#172033;
 --success:#198754;--success-soft:#eaf7f0;--warning:#b7791f;--warning-soft:#fff7e6;--danger:#dc3545;--danger-soft:#fff0f2;
 --shadow:0 8px 24px rgba(15,23,42,.06);--radius:12px;--sidebar:260px;--sidebar-collapsed:82px
}
*{box-sizing:border-box}html{background:var(--bg)}body{margin:0;font-family:Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",Roboto,Arial,sans-serif;background:var(--bg);color:var(--text);font-size:14px;line-height:1.45}a{color:inherit;text-decoration:none}button,input,select,textarea{font:inherit}button:disabled{opacity:.5;cursor:not-allowed}.app{min-height:100vh}.sidebar{position:fixed;z-index:40;inset:0 auto 0 0;width:var(--sidebar);background:linear-gradient(180deg,var(--nav) 0%,#111c31 100%);color:#dbe5f3;padding:18px 14px;transition:width .2s ease;overflow:hidden}.brand{height:52px;display:flex;align-items:center;gap:12px;padding:0 8px 12px}.brand-mark{width:38px;height:38px;display:grid;place-items:center;border-radius:10px;background:#0d6efd;color:#fff;font-weight:800;box-shadow:0 8px 22px rgba(13,110,253,.25);flex:0 0 auto}.brand-copy{display:flex;flex-direction:column;white-space:nowrap}.brand-copy b{font-size:17px;color:#fff}.brand-copy small{font-size:10px;color:#8ea2c0;letter-spacing:.08em;text-transform:uppercase}.nav{display:flex;flex-direction:column;gap:4px;margin-top:12px}.nav a{height:44px;display:flex;align-items:center;gap:12px;border-radius:9px;padding:0 12px;color:#aebbd0;font-weight:650;white-space:nowrap}.nav a:hover{background:rgba(255,255,255,.06);color:#fff}.nav a.active{background:#1d4ed8;color:#fff;box-shadow:inset 3px 0 0 #93c5fd}.nav .ico{width:22px;height:22px;display:grid;place-items:center;flex:0 0 auto}.nav svg,.icon-btn svg,.credit-chip svg,.section-icon svg,.btn svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.nav-divider{height:1px;background:rgba(255,255,255,.08);margin:9px 8px}.side-foot{position:absolute;bottom:16px;left:16px;right:16px;padding-top:13px;border-top:1px solid rgba(255,255,255,.08);font-size:11px;color:#8192ad;display:flex;gap:8px;align-items:flex-start}.status-dot{width:8px;height:8px;border-radius:50%;background:#20c997;margin-top:4px;box-shadow:0 0 0 4px rgba(32,201,151,.1)}
.main{margin-left:var(--sidebar);width:calc(100% - var(--sidebar));transition:margin-left .2s ease,width .2s ease}.topbar{height:72px;position:sticky;top:0;z-index:30;display:flex;align-items:center;justify-content:space-between;background:rgba(255,255,255,.96);backdrop-filter:blur(10px);border-bottom:1px solid var(--line);padding:0 26px}.top-left{display:flex;align-items:center;gap:12px}.icon-btn{width:38px;height:38px;border:1px solid var(--line);background:#fff;border-radius:9px;display:grid;place-items:center;cursor:pointer;color:#526178}.top-title{font-weight:800;font-size:14px}.top-sub{font-size:11px;color:var(--muted);margin-top:1px}.page{max-width:1480px;margin:auto;padding:28px}.toolbar{display:flex;align-items:center;gap:9px;flex-wrap:wrap}.user-chip{font-size:12px;color:#455268;font-weight:650;padding:7px 10px;border-radius:8px;background:#f5f7fb}.credit-chip{display:inline-flex;align-items:center;gap:7px;border:1px solid #cfe0ff;background:#f2f7ff;color:#174ea6;padding:7px 10px;border-radius:9px;font-size:12px}.credit-chip svg{width:16px;height:16px}.credit-chip b{font-size:14px}
body.sidebar-collapsed .sidebar{width:var(--sidebar-collapsed)}body.sidebar-collapsed .main{margin-left:var(--sidebar-collapsed);width:calc(100% - var(--sidebar-collapsed))}body.sidebar-collapsed .brand-copy,body.sidebar-collapsed .nav .txt,body.sidebar-collapsed .side-foot .txt{display:none}body.sidebar-collapsed .brand{justify-content:center;padding-left:0;padding-right:0}body.sidebar-collapsed .nav a{justify-content:center;padding:0}body.sidebar-collapsed .nav-divider{margin-left:4px;margin-right:4px}body.sidebar-collapsed .side-foot{justify-content:center;border:0}
.page-head{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;margin-bottom:22px}.page-head h1{margin:2px 0 4px;font-size:26px;letter-spacing:-.02em}.eyebrow{font-size:11px;color:var(--primary);font-weight:800;text-transform:uppercase;letter-spacing:.1em}.page-head-actions{display:flex;gap:8px}.card{background:var(--panel);border:1px solid var(--line);border-radius:var(--radius);box-shadow:var(--shadow)}.card-pad{padding:20px}.muted{color:var(--muted)}.stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin-bottom:18px}.stat{padding:18px}.stat .k{font-size:11px;color:var(--muted);text-transform:uppercase;letter-spacing:.07em;font-weight:700}.stat .n{font-size:30px;font-weight:800;margin-top:5px;letter-spacing:-.03em}.grid-main{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(320px,.72fr);gap:18px}.grid-2{display:grid;grid-template-columns:1fr 1fr;gap:14px}.grid-3{display:grid;grid-template-columns:repeat(3,1fr);gap:14px}.grid-parcel{display:grid;grid-template-columns:minmax(250px,1.4fr) 110px 110px 130px;gap:12px;align-items:end}
.btn{border:1px solid #d7dee9;background:#fff;color:#30405a;border-radius:8px;padding:10px 14px;cursor:pointer;font-weight:750;display:inline-flex;align-items:center;justify-content:center;gap:7px;transition:.15s ease}.btn:hover{background:#f8fafc;border-color:#cbd5e1}.btn.primary{background:var(--primary);border-color:var(--primary);color:#fff}.btn.primary:hover{background:var(--primary-dark)}.btn.secondary{background:#1f2937;border-color:#1f2937;color:#fff}.btn.soft{background:#eef7f4;border-color:#d3e9e1;color:#16634f}.btn.ghost{background:#fff}.btn.danger{background:var(--danger-soft);border-color:#facbd1;color:#b42331}.btn.small{padding:7px 10px;font-size:12px}.btn.wide{width:100%}.btn-lg{padding:12px 17px;font-size:14px}
label{display:block;font-weight:700;margin:0 0 14px;color:#29364d;font-size:13px}label small{display:block;margin-top:5px;color:var(--muted);font-weight:400}.req{color:#e03131}input,select,textarea{width:100%;border:1px solid #d8e0ea;border-radius:8px;padding:11px 12px;background:#fff;color:var(--text);outline:none;margin-top:6px;transition:.15s ease}input::placeholder,textarea::placeholder{color:#9ba6b6}input:focus,select:focus,textarea:focus{border-color:#86b7fe;box-shadow:0 0 0 3px rgba(13,110,253,.12)}textarea{min-height:96px;resize:vertical;line-height:1.45}.section-title{font-weight:800;font-size:12px;text-transform:uppercase;letter-spacing:.06em;color:#566277;border-bottom:1px solid var(--line);padding-bottom:10px;margin:22px 0 15px}
.form-stack{display:flex;flex-direction:column;gap:16px}.form-section{padding:22px}.form-section-head{display:flex;gap:13px;align-items:center;margin-bottom:18px}.form-section-head h2{font-size:16px;margin:0 0 2px}.form-section-head p{margin:0;color:var(--muted);font-size:12px}.section-icon{width:38px;height:38px;border-radius:9px;background:var(--primary-soft);color:var(--primary);display:grid;place-items:center;flex:0 0 auto}.section-icon.simple{font-weight:800;font-size:11px}.segmented{display:inline-flex;padding:4px;background:#f1f5f9;border:1px solid #e2e8f0;border-radius:9px;margin-bottom:16px}.segmented button{border:0;background:transparent;color:#65738a;padding:8px 12px;border-radius:7px;cursor:pointer;font-weight:750;display:flex;align-items:center;gap:7px}.segmented button svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.8}.segmented button.active{background:#fff;color:var(--primary);box-shadow:0 1px 3px rgba(15,23,42,.08)}.address-wrap{position:relative}.dropdown-results{position:absolute;left:0;right:0;top:100%;z-index:60;background:#fff;border:1px solid var(--line);border-radius:10px;box-shadow:0 16px 40px rgba(15,23,42,.12);overflow:hidden;margin-top:4px;display:none}.address-result{padding:12px 13px;cursor:pointer;border-bottom:1px solid #eef2f6}.address-result:hover{background:#f8fafc}.address-result:last-child{border-bottom:0}.result-main{display:flex;gap:10px;align-items:flex-start}.result-main small{display:block;color:var(--muted);margin-top:2px}.result-pin{color:var(--primary);font-size:18px}.location-ok{display:flex;align-items:center;gap:10px;background:#f0faf5;border:1px solid #cce8d8;border-radius:9px;padding:10px 12px;margin-top:8px}.location-ok .ok-dot{width:28px;height:28px;border-radius:50%;background:#d9f2e4;color:#157347;display:grid;place-items:center;font-weight:900}.location-ok div{flex:1}.location-ok small{display:block;color:#5c7467}.parcel-actions{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:4px}.parcel-results{display:flex;flex-direction:column;gap:8px;margin-top:12px}.parcel-result{width:100%;display:grid;grid-template-columns:135px 1fr auto;align-items:center;gap:12px;padding:12px;border:1px solid var(--line);background:#fff;border-radius:9px;text-align:left;cursor:pointer;color:var(--text)}.parcel-result:hover,.parcel-result.selected{border-color:#9ec5fe;background:#f5f9ff}.parcel-code{font-family:ui-monospace,SFMono-Regular,Consolas,monospace;font-weight:800;color:#1e4f9b}.parcel-result small{display:block;color:var(--muted);font-weight:400}.parcel-result em{font-style:normal;color:var(--primary);font-size:12px;font-weight:800}.loading-panel{padding:16px;border-radius:8px;background:#f8fafc;color:var(--muted);display:flex;gap:8px;align-items:center}.spinner{width:15px;height:15px;border-radius:50%;border:2px solid #d6dfeb;border-top-color:var(--primary);animation:spin .8s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}.disclosure{overflow:hidden}.disclosure>summary,.inline-disclosure>summary{list-style:none;cursor:pointer;padding:17px 20px;display:flex;align-items:center;justify-content:space-between}.disclosure>summary::-webkit-details-marker,.inline-disclosure>summary::-webkit-details-marker{display:none}.disclosure>summary span:first-child{display:flex;flex-direction:column}.disclosure>summary small{font-weight:400;color:var(--muted);margin-top:2px}.summary-plus{font-size:20px;color:var(--muted)}.disclosure-body{padding:0 20px 20px;border-top:1px solid #eef2f6;padding-top:18px}.inline-disclosure{border:1px solid #e4e9f0;border-radius:9px;margin:12px 0}.inline-disclosure>summary{padding:12px 14px;font-weight:800}.inline-disclosure>summary span{font-weight:500;color:var(--muted);margin-left:5px;font-size:11px}.inline-disclosure .disclosure-body{padding:14px}.form-footer{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:3px 2px 24px}
.table-wrap{overflow:auto}.table{width:100%;border-collapse:collapse}.table th,.table td{text-align:left;padding:13px 14px;border-bottom:1px solid #edf1f5;vertical-align:middle}.table th{font-size:10px;color:#718096;text-transform:uppercase;letter-spacing:.07em;background:#fafbfc}.table tr:last-child td{border-bottom:0}.table.compact th,.table.compact td{padding:10px 12px}.badge{display:inline-flex;border-radius:999px;padding:4px 8px;font-size:10px;font-weight:800}.badge.neutral{background:#eef1f5;color:#596579}.badge.info{background:#eaf2ff;color:#285ca8}.badge.warn{background:var(--warning-soft);color:#8d5c13}.badge.success{background:var(--success-soft);color:#176c47}.alert{padding:12px 14px;border-radius:9px;margin-bottom:15px;border:1px solid}.alert.success{background:var(--success-soft);border-color:#cdebdc;color:#19613f}.alert.danger{background:var(--danger-soft);border-color:#facbd1;color:#962632}.alert.info{background:#eef6ff;border-color:#d3e6ff;color:#285a91}.empty{padding:34px;text-align:center;color:var(--muted)}.meta-list{display:grid;grid-template-columns:145px 1fr;gap:8px 12px;font-size:12px}.meta-list dt{color:var(--muted)}.meta-list dd{margin:0;font-weight:700}.source-box{padding:14px;border:1px solid #d6e2f0;background:#f8fbff;border-radius:9px}.split-actions{display:flex;justify-content:space-between;gap:10px;align-items:center}.danger-zone{border-color:#f3cbd0;background:#fffafb}.pill{display:inline-flex;padding:5px 8px;border-radius:7px;background:#f0f3f6;font-size:10px;font-weight:700}.code{font-family:ui-monospace,SFMono-Regular,Consolas,monospace;font-size:11px}.list{display:flex;flex-direction:column}.list-item{padding:12px 0;border-bottom:1px solid var(--line);display:flex;justify-content:space-between;gap:16px}.list-item:last-child{border-bottom:0}.toolbar input,.toolbar select{margin:0;width:auto;min-width:170px}.progress-steps{display:flex;gap:6px;margin:12px 0 18px}.step{height:6px;flex:1;border-radius:99px;background:#e5eaf0}.step.on{background:#4f8df7}
.risk-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:11px}.risk-card{border:1px solid #e0e6ee;border-radius:10px;padding:12px;background:#fff}.risk-card.auto-ok{border-color:#d7e9df;background:#fcfffd}.risk-card.needs-check{border-color:#f0ddae;background:#fffdf8}.risk-card-head{display:flex;align-items:flex-start;justify-content:space-between;gap:8px;margin-bottom:8px}.risk-card-head h4{font-size:12px;margin:0}.risk-card select{margin:0}.risk-card textarea{min-height:62px;margin-top:8px;font-size:11px}.risk-meta{font-size:10px;color:var(--muted);margin-top:7px}.risk-status{display:inline-flex;border-radius:999px;padding:3px 6px;font-size:9px;font-weight:800}.risk-status.ok{background:#e5f5ed;color:#277154}.risk-status.wait{background:#fff1cc;color:#795b19}.analysis-note{margin-top:12px;padding:10px 12px;border-radius:8px;background:#f7f9fb;color:var(--muted);font-size:11px;border:1px solid #e8edf3}.reg-detail{margin-top:12px;padding:14px;border:1px solid #dde6ef;background:#f9fbfd;border-radius:9px}.reg-detail-title{font-weight:800;margin-bottom:10px}.file-list{display:flex;flex-direction:column;gap:10px}.file-row{display:grid;grid-template-columns:minmax(0,1fr) minmax(280px,.8fr);gap:14px;align-items:center;border:1px solid var(--line);border-radius:9px;padding:12px}.file-chip{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:7px;background:#f3f6f8;border-radius:7px;padding:8px}.file-chip form{margin:0}.upload-inline{display:flex;align-items:center;gap:8px}.upload-inline input[type=file]{margin:0;padding:8px;font-size:11px}.final-errors{margin-top:12px;padding:11px 12px;border-radius:8px;background:#fff8e8;border:1px solid #edd9a7;color:#775516;font-size:11px}.final-errors ul{margin:8px 0 0;padding-left:18px}
.billing-grid{display:grid;grid-template-columns:1fr 1fr .9fr;gap:16px}.plan-card{position:relative;background:#fff;border:1px solid var(--line);border-radius:12px;padding:22px;box-shadow:var(--shadow)}.plan-card.featured{border:1.5px solid #88b5ff}.plan-badge{position:absolute;top:14px;right:14px;background:var(--primary-soft);color:#225aa7;border-radius:999px;padding:4px 8px;font-size:10px;font-weight:800}.plan-title{font-size:15px;font-weight:800}.plan-price{font-size:34px;font-weight:850;letter-spacing:-.04em;margin:8px 0}.plan-price span{font-size:13px;color:var(--muted);font-weight:600}.plan-card p{color:var(--muted);min-height:40px}.plan-card ul{padding-left:18px;color:#4c5a70;min-height:84px}.plan-card li{margin:5px 0}.balance-hero{display:flex;align-items:baseline;gap:6px;background:#fff;border:1px solid var(--line);border-radius:11px;padding:12px 16px;box-shadow:var(--shadow)}.balance-hero span{font-size:11px;color:var(--muted);margin-right:6px}.balance-hero b{font-size:26px}.balance-hero small{color:var(--muted)}.callback-card{box-shadow:none}.switch-row{display:flex;align-items:center;justify-content:space-between;gap:16px;border:1px solid var(--line);border-radius:9px;padding:12px 14px;margin-bottom:16px}.switch-row span{display:flex;flex-direction:column}.switch-row input{display:none}.switch-row i{width:42px;height:24px;border-radius:999px;background:#cbd5e1;position:relative;flex:0 0 auto;transition:.15s}.switch-row i:after{content:"";width:18px;height:18px;border-radius:50%;background:#fff;position:absolute;left:3px;top:3px;box-shadow:0 1px 3px rgba(0,0,0,.2);transition:.15s}.switch-row input:checked+i{background:var(--primary)}.switch-row input:checked+i:after{left:21px}.connector-row{display:flex;align-items:center;gap:10px;padding:12px 14px;border-radius:9px;background:#f7fafc;border:1px solid #e5ebf2}.connector-row small{display:block;color:var(--muted)}.connector-ok{width:28px;height:28px;border-radius:50%;display:grid;place-items:center;background:#dff4e9;color:#167249;font-weight:900}
.auth-body{min-height:100vh;display:grid;place-items:center;background:linear-gradient(135deg,#eff5ff,#f7f9fc);padding:24px}.auth-card,.install-card{width:min(440px,100%);background:#fff;border:1px solid var(--line);border-radius:14px;box-shadow:0 20px 60px rgba(15,23,42,.1);padding:28px}.install-card{width:min(700px,100%)}.auth-card h1,.install-card h1{margin:12px 0 4px}.auth-card>.brand-mark,.install-card>.brand-mark{width:44px;height:44px}
@media(max-width:1180px){.billing-grid{grid-template-columns:1fr 1fr}.callback-card{grid-column:1/-1}.risk-grid{grid-template-columns:repeat(2,1fr)}.grid-main{grid-template-columns:1fr}.stats{grid-template-columns:repeat(2,1fr)}}
@media(max-width:900px){.sidebar{width:var(--sidebar-collapsed)}.main{margin-left:var(--sidebar-collapsed);width:calc(100% - var(--sidebar-collapsed))}.brand-copy,.nav .txt,.side-foot .txt{display:none}.brand,.nav a{justify-content:center}.nav a{padding:0}.top-sub{display:none}.grid-parcel{grid-template-columns:1fr 100px 100px}.grid-parcel label:first-child{grid-column:1/-1}.file-row{grid-template-columns:1fr}.upload-inline{flex-direction:column;align-items:stretch}}
@media(max-width:720px){.sidebar{display:none}.main,body.sidebar-collapsed .main{margin-left:0;width:100%}.page{padding:17px}.topbar{height:64px;padding:0 16px}.user-chip{display:none}.page-head{flex-direction:column}.grid-2,.grid-3,.risk-grid,.billing-grid{grid-template-columns:1fr}.stats{grid-template-columns:1fr 1fr}.form-footer,.parcel-actions{align-items:stretch;flex-direction:column}.form-footer .btn,.parcel-actions .btn{width:100%}.grid-parcel{grid-template-columns:1fr 1fr}.grid-parcel label:first-child{grid-column:1/-1}.parcel-result{grid-template-columns:1fr}.parcel-result em{justify-self:start}}
@media(max-width:480px){.stats{grid-template-columns:1fr}.page{padding:13px}.toolbar{gap:5px}.credit-chip{padding:6px 8px}.top-title{font-size:12px}}

/* =========================================================
   SilaRisques SaaS 1.4.0 — public / client / superadmin
   ========================================================= */
:root{
 --sr-teal:#0b6b63;--sr-teal-dark:#07564f;--sr-teal-deep:#073c39;--sr-teal-soft:#eaf6f3;--sr-mint:#dff1ec;
 --sr-ink:#15202f;--sr-slate:#5f6f82;--sr-blue:#315ca8;--sr-gold:#b8862f;--sr-admin:#111827;--sr-admin-2:#172033;
 --primary:var(--sr-teal);--primary-dark:var(--sr-teal-dark);--primary-soft:var(--sr-teal-soft);--nav:var(--sr-teal-deep);--nav2:#0a4742;
 --radius:14px;--shadow:0 10px 30px rgba(24,39,55,.065)
}
body{letter-spacing:-.005em}.client-body{--nav:#073f3b;--nav2:#0a4c46}.admin-body{--nav:#111827;--nav2:#172033;--primary:#374151;--primary-dark:#1f2937;--primary-soft:#eef1f4}.admin-body .sidebar{background:linear-gradient(180deg,#111827 0%,#172033 100%)}.admin-body .nav a.active{background:#263447;box-shadow:inset 3px 0 0 #93a4ba}.admin-body .brand-mark{background:#263447;box-shadow:none}.client-body .sidebar{background:linear-gradient(180deg,#073f3b 0%,#0a4c46 100%)}.client-body .nav a.active{background:#0f756d;box-shadow:inset 3px 0 0 #a7ded5}.client-body .brand-mark{background:#fff;color:#0b6b63;box-shadow:none}.page{max-width:1540px;padding:30px 32px 44px}.card{border-color:#e2e8ee;box-shadow:0 8px 26px rgba(27,39,54,.055)}.card-header{min-height:68px;padding:18px 20px;border-bottom:1px solid #edf1f4;display:flex;align-items:center;justify-content:space-between;gap:14px}.card-header>div{display:flex;flex-direction:column}.card-header b{font-size:14px}.card-header small{margin-top:2px;color:var(--muted)}.card-header.compact{min-height:auto;padding:0 0 15px;margin-bottom:17px}.card-header.compact+*{margin-top:0}.table th{background:#f8fafb;color:#758397;font-weight:800}.table td small{display:block;margin-top:3px;color:var(--muted)}.table tr:hover td{background:#fbfcfd}.btn{border-radius:10px}.btn.primary{box-shadow:0 8px 18px rgba(11,107,99,.14)}.admin-body .btn.primary{box-shadow:none}.btn.light{background:#fff;color:#124b47;border-color:#fff}.btn.light:hover{background:#f4fbf9}.btn.btn-xl{padding:14px 20px;font-size:14px}.btn[disabled]{filter:grayscale(.25)}.badge.danger{background:#fff0f1;color:#b52d3a}.eyebrow{color:#0d736b}.admin-body .eyebrow{color:#596b82}.topbar{height:74px;padding:0 30px;box-shadow:0 2px 8px rgba(15,23,42,.025)}.top-title{font-size:15px}.top-sub{font-size:11px}.user-menu{display:flex;align-items:center;gap:9px;padding:4px 2px 4px 4px}.user-menu .avatar{width:34px;height:34px;border-radius:10px;display:grid;place-items:center;background:#e8f4f1;color:#0b6b63;font-weight:850}.admin-body .user-menu .avatar{background:#edf0f4;color:#334155}.user-menu>span:last-child{display:flex;flex-direction:column}.user-menu b{font-size:11px}.user-menu small{font-size:10px;color:var(--muted);max-width:180px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.subscription-chip{padding:6px 9px;border-radius:999px;font-size:10px;font-weight:800;background:#f2f4f7;color:#677487}.subscription-chip.active{background:#e7f5ef;color:#1f7859}.credit-chip{border-color:#cfe7e1;background:#f1faf8;color:#0a665e}.page-head h1{font-size:28px}.welcome-banner{margin-bottom:18px;border-radius:16px;padding:25px 27px;background:linear-gradient(120deg,#0a5f58,#0d756c);color:#fff;display:flex;align-items:center;justify-content:space-between;gap:20px;box-shadow:0 14px 30px rgba(9,91,84,.13)}.welcome-banner .eyebrow{color:#bde7df}.welcome-banner h1{margin:5px 0 3px;font-size:27px}.welcome-banner p{margin:0;color:#d6efeb}.saas-stats .stat{min-height:135px}.stat small{color:var(--muted)}.stat a{font-size:11px;color:var(--primary);font-weight:800}.stat.accent{display:flex;align-items:center;gap:14px;background:linear-gradient(145deg,#f1fbf8,#fff);border-color:#d6ebe6}.stat-icon{width:44px;height:44px;border-radius:13px;display:grid;place-items:center;background:#dff2ed;color:#0a6a62}.stat-icon svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.8}.dashboard-grid{display:grid;grid-template-columns:minmax(0,1.55fr) minmax(360px,.78fr);gap:18px}.quick-panel{padding:20px}.quick-head{display:flex;align-items:center;gap:12px;margin-bottom:17px}.quick-head>div{display:flex;flex-direction:column}.quick-head small{color:var(--muted)}.quick-list{border-top:1px solid #edf1f4;margin:4px 0 17px}.quick-list>div{display:flex;align-items:center;justify-content:space-between;padding:12px 0;border-bottom:1px solid #edf1f4}.quick-list span{color:var(--muted)}.quick-list b{font-size:12px}.balance-card,.subscription-card{border:1px solid #e0e8eb;background:#fff;border-radius:15px;padding:20px;display:flex;flex-direction:column}.billing-hero{display:grid;grid-template-columns:1fr 1fr;gap:15px;margin-bottom:18px}.balance-card{background:linear-gradient(135deg,#0a615a,#0c786e);color:#fff;border:0}.balance-card span,.balance-card small{color:#cfeae5}.balance-card b{font-size:44px;line-height:1;margin:7px 0 4px}.subscription-card b{font-size:22px;margin:7px 0}.subscription-card small{color:var(--muted)}.pricing-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.price-card{position:relative;border:1px solid #e1e7ec;border-radius:16px;padding:25px;background:#fff;box-shadow:0 8px 25px rgba(15,23,42,.05)}.price-card.featured{border-color:#8cc8be;box-shadow:0 14px 35px rgba(11,107,99,.10)}.price-card h3{margin:0;font-size:18px}.price-card .price{display:flex;align-items:baseline;gap:6px;margin:12px 0}.price-card .price b{font-size:34px;letter-spacing:-.04em}.price-card .price span{color:var(--muted)}.price-card p{color:var(--muted);min-height:42px}.price-card ul{list-style:none;padding:0;margin:18px 0;color:#4d5e70}.price-card li{margin:8px 0}.price-badge{position:absolute;right:18px;top:18px;border-radius:999px;padding:5px 9px;background:#dff2ed;color:#0a6a62;font-weight:800;font-size:10px}.app-pricing{margin-bottom:18px}.billing-history{margin-top:18px}.credit-delta{font-weight:850;border-radius:999px;padding:4px 8px}.credit-delta.plus{background:#e6f6ef;color:#227454}.credit-delta.minus{background:#fff1f1;color:#b43b45}.account-grid{display:grid;grid-template-columns:minmax(420px,.75fr) minmax(0,1.25fr);gap:18px}.disclosure.embedded{border:0;border-top:1px solid #edf1f4;border-radius:0;margin:0}.disclosure.embedded summary{padding-left:20px;padding-right:20px}.document-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.document-card{padding:15px;display:grid;grid-template-columns:54px minmax(0,1fr) auto;align-items:center;gap:14px}.pdf-tile{width:48px;height:58px;border-radius:9px;background:#fff0f1;color:#b62c39;border:1px solid #f3cfd3;display:grid;place-items:center;font-size:11px;font-weight:900}.document-info{display:flex;flex-direction:column;min-width:0}.document-info span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.document-info small{color:var(--muted);margin-top:3px}.document-actions{display:flex;gap:7px}.empty-state{grid-column:1/-1;padding:50px;text-align:center}.empty-state .feature-icon{margin:auto}.empty-state h3{margin:14px 0 5px}.empty-state p{color:var(--muted)}

/* superadmin */
.admin-hero{border-radius:16px;padding:25px 27px;margin-bottom:18px;background:linear-gradient(120deg,#172033,#27364a);color:#fff;display:flex;justify-content:space-between;align-items:center;gap:20px}.admin-hero .eyebrow{color:#b5c2d2}.admin-hero h1{margin:5px 0 4px;font-size:25px}.admin-hero p{margin:0;color:#c7d0db;max-width:800px}.admin-stats .stat .n{font-size:28px}.small-number{font-size:20px!important;text-transform:capitalize}.admin-client-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px;margin-bottom:18px}.plans-admin-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.plan-editor .switch-row{margin-top:8px}.settings-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px}.settings-grid>section:nth-of-type(3){grid-column:1/-1}.settings-save{grid-column:1/-1;display:flex;justify-content:flex-end}.collapsible-box{margin-bottom:15px;display:none}.collapsible-box.open{display:block}.switch-row input[type=checkbox]{display:block;appearance:none;width:44px;height:24px;border:0;margin:0;border-radius:999px;background:#cbd5e1;position:relative;cursor:pointer;box-shadow:none;padding:0;flex:0 0 auto}.switch-row input[type=checkbox]:before{content:"";position:absolute;left:3px;top:3px;width:18px;height:18px;border-radius:50%;background:#fff;box-shadow:0 1px 3px rgba(0,0,0,.2);transition:.16s}.switch-row input[type=checkbox]:checked{background:#0b6b63}.switch-row input[type=checkbox]:checked:before{left:23px}.admin-body .switch-row input[type=checkbox]:checked{background:#334155}.grid-4{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}

/* public landing */
.marketing-body{background:#fbfdfc;color:#17242d}.public-nav{height:76px;display:flex;align-items:center;justify-content:space-between;gap:20px;padding:0 max(32px,calc((100vw - 1240px)/2));border-bottom:1px solid #e7eeec;background:rgba(255,255,255,.94);backdrop-filter:blur(12px);position:sticky;top:0;z-index:80}.public-brand{display:flex;align-items:center;gap:10px}.public-brand .brand-mark{width:38px;height:38px;border-radius:11px;background:#0b6b63;color:#fff;box-shadow:none}.public-brand>span:last-child{display:flex;flex-direction:column}.public-brand b{font-size:15px}.public-brand small{font-size:9px;text-transform:uppercase;letter-spacing:.12em;color:#7a8a91}.public-nav nav{display:flex;align-items:center;gap:28px}.public-nav nav a{font-size:12px;font-weight:700;color:#52636c}.public-nav nav a:hover{color:#0b6b63}.public-nav-actions{display:flex;gap:8px}.marketing{overflow:hidden}.hero{max-width:1240px;margin:auto;display:grid;grid-template-columns:1.05fr .95fr;gap:70px;align-items:center;padding:90px 24px 72px}.hero-kicker,.section-eyebrow{display:inline-block;font-size:10px;font-weight:900;letter-spacing:.14em;color:#0b7269}.hero h1{font-size:58px;line-height:1.02;letter-spacing:-.055em;margin:13px 0 20px;max-width:650px}.hero-copy>p{font-size:18px;line-height:1.65;color:#5b6a72;max-width:650px}.hero-actions{display:flex;gap:10px;margin:28px 0 23px}.trust-row{display:flex;gap:18px;flex-wrap:wrap;color:#596a72;font-size:11px;font-weight:700}.trust-row span{display:flex;align-items:center;gap:6px}.trust-row svg{width:16px;height:16px;fill:none;stroke:#0b6b63;stroke-width:1.9}.hero-visual{position:relative;min-height:480px;display:grid;place-items:center}.visual-window{position:relative;z-index:2;width:100%;max-width:540px;background:#fff;border:1px solid #dce8e5;border-radius:20px;box-shadow:0 30px 70px rgba(27,59,53,.15);padding:0 20px 20px;transform:rotate(1.5deg)}.visual-top{height:48px;display:flex;align-items:center;gap:6px;border-bottom:1px solid #edf2f1;margin-bottom:18px}.visual-top>span{width:7px;height:7px;border-radius:50%;background:#cbd5d2}.visual-top b{margin-left:auto;font-size:10px;color:#64746f}.visual-search{display:flex;align-items:center;gap:11px;border:1px solid #d7e4e1;border-radius:12px;padding:13px;background:#fbfdfd}.visual-search>span{width:34px;height:34px;border-radius:9px;background:#e3f3ef;color:#0b6b63;display:grid;place-items:center}.visual-search svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.8}.visual-search>div{display:flex;flex-direction:column;flex:1}.visual-search b{font-size:11px}.visual-search small{color:#7b898e;margin-top:2px}.visual-search i{font-style:normal;width:25px;height:25px;border-radius:50%;display:grid;place-items:center;background:#dff3e9;color:#177457;font-weight:900}.visual-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:14px 0}.visual-grid article{border:1px solid #e2eae8;border-radius:11px;padding:12px;display:flex;align-items:center;gap:10px}.visual-grid article>div{display:flex;flex-direction:column}.visual-grid small{color:#7b898e}.visual-grid b{font-size:11px}.visual-icon{width:31px;height:31px;border-radius:9px;display:grid;place-items:center;font-weight:900;font-style:normal}.visual-icon.ok{background:#e4f5ee;color:#1d7a5b}.visual-icon.warn{background:#fff2d8;color:#976d1c}.visual-icon.info{background:#eaf0fb;color:#345b9f}.visual-pdf{display:flex;align-items:center;gap:12px;border-radius:12px;background:#0b5e58;color:#fff;padding:14px}.doc-lines{width:34px;height:42px;border-radius:5px;background:#fff;padding:10px 6px;display:flex;flex-direction:column;gap:4px}.doc-lines i{height:2px;background:#b8d8d2}.visual-pdf>div:nth-child(2){display:flex;flex-direction:column;flex:1}.visual-pdf small{color:#bfe0da}.visual-pdf span{font-size:10px;font-weight:900;padding:5px 7px;border-radius:6px;background:rgba(255,255,255,.15)}.map-orbit{position:absolute;width:480px;height:480px;border-radius:50%;background:radial-gradient(circle,#dff2ed 0 2px,transparent 3px),linear-gradient(135deg,#eff8f5,#f9fcfb);background-size:26px 26px,auto;border:1px solid #e1efeb;transform:translate(42px,4px)}.map-orbit:after{content:"";position:absolute;left:18%;top:28%;width:62%;height:44%;border:3px solid rgba(11,107,99,.25);border-radius:42% 58% 44% 56%;transform:rotate(-18deg)}.map-orbit i{position:absolute;width:15px;height:15px;border-radius:50%;background:#0b6b63;box-shadow:0 0 0 7px rgba(11,107,99,.10)}.map-orbit i:nth-child(1){left:17%;top:29%}.map-orbit i:nth-child(2){right:15%;top:39%}.map-orbit i:nth-child(3){left:35%;bottom:14%}.logo-strip{max-width:1180px;margin:0 auto 35px;border-top:1px solid #e8efed;border-bottom:1px solid #e8efed;padding:18px 10px;display:flex;justify-content:space-around;gap:24px;flex-wrap:wrap;color:#7a898e;font-size:10px;font-weight:800;text-transform:uppercase;letter-spacing:.1em}.marketing-section{max-width:1180px;margin:0 auto;padding:80px 24px}.marketing-section h2{font-size:39px;line-height:1.1;letter-spacing:-.04em;margin:10px 0 14px}.section-lead{max-width:720px;font-size:16px;color:#65757c;line-height:1.65}.feature-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:16px;margin-top:36px}.feature-grid article{border:1px solid #e0e9e7;border-radius:16px;background:#fff;padding:23px}.feature-icon{width:43px;height:43px;border-radius:12px;display:grid;place-items:center;background:#e8f5f2;color:#0a6b63}.feature-icon svg{width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.feature-grid h3{font-size:15px;margin:17px 0 7px}.feature-grid p{font-size:12px;color:#66767d;line-height:1.65;margin:0}.workflow-band{max-width:1180px;margin:20px auto 30px;padding:22px 28px;border-radius:18px;background:#103f3c;color:#fff;display:flex;align-items:center;justify-content:space-between}.workflow-band>div{display:flex;flex-direction:column}.workflow-band span{font-size:10px;color:#9dd5cc;font-weight:900}.workflow-band b{font-size:14px;margin:3px 0}.workflow-band small{color:#b9d4cf}.workflow-band>i{width:55px;height:1px;background:#3d6f69}.pricing-section{text-align:center}.pricing-section>.pricing-grid{max-width:820px;margin:34px auto 0;text-align:left}.pricing-section .price-card{padding:30px}.faq-section{display:grid;grid-template-columns:.75fr 1.25fr;gap:70px}.faq-list details{border-bottom:1px solid #e0e7e5;padding:17px 0}.faq-list summary{cursor:pointer;font-weight:800}.faq-list p{color:#65757c;line-height:1.65}.final-cta{max-width:1180px;margin:20px auto 80px;border-radius:22px;padding:36px 40px;background:linear-gradient(120deg,#0a5b55,#0e7268);color:#fff;display:flex;align-items:center;justify-content:space-between;gap:20px}.final-cta span{font-size:11px;color:#bfe4de;text-transform:uppercase;letter-spacing:.1em;font-weight:800}.final-cta h2{font-size:30px;margin:5px 0}.public-footer{border-top:1px solid #e5ecea;max-width:1180px;margin:auto;padding:25px 0 35px;display:flex;justify-content:space-between;align-items:center;color:#7a898e;font-size:11px}

/* SaaS auth */
.auth-saas{display:grid;grid-template-columns:minmax(380px,.85fr) minmax(520px,1.15fr);padding:0;background:#f7faf9}.auth-side{min-height:100vh;background:linear-gradient(145deg,#083e3a,#0b625a);color:#fff;padding:42px 54px;display:flex;flex-direction:column}.auth-side .public-brand b{color:#fff}.auth-side .public-brand small{color:#9dcac3}.auth-side .brand-mark{background:#fff;color:#0b655d}.auth-side-copy{margin:auto 0;max-width:530px}.auth-side-copy .hero-kicker{color:#9fd4ca}.auth-side-copy h1{font-size:42px;line-height:1.08;letter-spacing:-.04em;margin:14px 0 18px}.auth-side-copy p,.auth-side-copy li{color:#c3ddd8;line-height:1.65}.auth-side-copy ul{padding-left:20px}.auth-panel{display:grid;place-items:center;padding:40px}.auth-card.premium{width:min(570px,100%);padding:34px;border-radius:18px}.auth-card.premium h1{font-size:28px;letter-spacing:-.03em}.back-link{display:inline-block;color:#6c7b84;font-size:11px;font-weight:750;margin-bottom:20px}.auth-foot{text-align:center;border-top:1px solid #edf1f0;margin-top:19px;padding-top:17px;color:#6d7b82}.auth-foot a{color:#0b6b63;font-weight:800}

@media(max-width:1180px){.dashboard-grid{grid-template-columns:1fr}.feature-grid{grid-template-columns:1fr 1fr}.hero{gap:38px}.settings-grid{grid-template-columns:1fr}.settings-grid>section:nth-of-type(3),.settings-save{grid-column:auto}.plans-admin-grid{grid-template-columns:1fr}.account-grid{grid-template-columns:1fr}.document-grid{grid-template-columns:1fr}.grid-4{grid-template-columns:1fr 1fr}.admin-client-grid{grid-template-columns:1fr}}
@media(max-width:960px){.public-nav nav{display:none}.hero{grid-template-columns:1fr;padding-top:65px}.hero-copy{text-align:center}.hero h1,.hero-copy>p{margin-left:auto;margin-right:auto}.hero-actions,.trust-row{justify-content:center}.hero-visual{min-height:430px}.workflow-band{margin-left:20px;margin-right:20px}.faq-section{grid-template-columns:1fr;gap:25px}.auth-saas{grid-template-columns:1fr}.auth-side{display:none}.auth-panel{min-height:100vh}.billing-hero{grid-template-columns:1fr}.pricing-grid{grid-template-columns:1fr}}
@media(max-width:720px){.page{padding:18px 15px 34px}.topbar{padding:0 15px}.subscription-chip,.user-menu>span:last-child{display:none}.welcome-banner,.admin-hero{align-items:flex-start;flex-direction:column}.feature-grid{grid-template-columns:1fr}.hero{padding:54px 18px 45px}.hero h1{font-size:42px}.hero-copy>p{font-size:15px}.hero-visual{min-height:370px}.map-orbit{width:360px;height:360px}.visual-window{max-width:430px}.public-nav{padding:0 15px}.public-nav-actions .ghost{display:none}.marketing-section{padding:58px 18px}.marketing-section h2{font-size:32px}.workflow-band{display:grid;grid-template-columns:1fr 1fr;gap:20px}.workflow-band>i{display:none}.final-cta{margin:15px 18px 55px;align-items:flex-start;flex-direction:column}.public-footer{padding:22px 18px}.grid-4{grid-template-columns:1fr}.document-card{grid-template-columns:48px 1fr}.document-actions{grid-column:1/-1}.auth-panel{padding:18px}.auth-card.premium{padding:25px}}
@media(max-width:480px){.hero h1{font-size:36px}.hero-actions{flex-direction:column}.hero-actions .btn{width:100%}.public-brand small{display:none}.public-nav-actions .btn{padding:8px 10px}.visual-grid{grid-template-columns:1fr 1fr}.visual-search small{display:none}.toolbar .credit-chip{display:none}.welcome-banner h1{font-size:23px}}

/* ==== SilaRisques 1.4.3 — visual system inspired by approved mockups ==== */
:root{
 --bg:#f5f9f8;--panel:#fff;--panel2:#f8fbfa;--text:#11273a;--muted:#6d7b86;--line:#e1ebe8;
 --primary:#0b6b63;--primary-dark:#075149;--primary-soft:#e9f6f3;--nav:#073f3b;--nav2:#0a5049;
 --success:#138a62;--success-soft:#e7f6ef;--warning:#d9911b;--warning-soft:#fff6df;--danger:#d9535f;--danger-soft:#fff0f2;
 --shadow:0 18px 50px rgba(12,44,40,.07);--radius:18px
}
html,body{background:var(--bg)}body{letter-spacing:-.008em}.main{background:radial-gradient(circle at 88% 2%,rgba(75,201,177,.08),transparent 28%),linear-gradient(180deg,#f7fbfa 0%,#f4f8f7 100%)}
.sidebar{background:linear-gradient(180deg,#073f3b 0%,#0a514a 100%);box-shadow:22px 0 58px rgba(5,49,44,.16);border-right:1px solid rgba(255,255,255,.05)}
.admin-body .sidebar{background:linear-gradient(180deg,#073f3b 0%,#0a514a 100%)}
.brand-mark,.client-body .brand-mark,.admin-body .brand-mark{background:#fff;color:#0b6b63;box-shadow:0 8px 24px rgba(0,0,0,.12)}
.nav a{border-radius:11px}.nav a.active,.admin-body .nav a.active,.client-body .nav a.active{background:linear-gradient(90deg,rgba(21,151,136,.72),rgba(20,132,121,.5));box-shadow:inset 3px 0 0 rgba(255,255,255,.78),0 8px 18px rgba(0,0,0,.09);color:#fff}.nav a:hover{background:rgba(255,255,255,.08)}
.topbar{height:76px;background:rgba(255,255,255,.9);backdrop-filter:blur(16px);border-bottom:1px solid rgba(219,232,228,.9);box-shadow:0 2px 12px rgba(10,46,42,.025)}
.page{max-width:1580px;padding:30px 34px 48px}.card{border:1px solid var(--line);border-radius:18px;box-shadow:0 16px 42px rgba(17,44,40,.055);background:#fff}.card:hover{border-color:#d8e7e3}.card-header{min-height:70px;padding:19px 22px;background:linear-gradient(180deg,#fff,#fcfefd);border-bottom:1px solid #edf2f0;border-radius:18px 18px 0 0}.card-header b{font-size:14px}.card-header small{color:#839097}.table-wrap{padding:0 8px 8px}.table{border-collapse:separate;border-spacing:0}.table th{background:#f7fbfa;color:#728189;font-weight:800}.table th,.table td{padding:14px 16px}.table tbody tr:hover td{background:#f7fcfa}.table td:first-child{border-left:1px solid transparent}.table tbody tr:hover td:first-child{border-left-color:#9bd8cb}
.btn{border-radius:11px;padding:10px 15px}.btn.primary{background:linear-gradient(135deg,#0a6d64,#0d8176);border-color:#0b6b63;box-shadow:0 12px 24px rgba(11,107,99,.16)}.btn.primary:hover{background:linear-gradient(135deg,#075a53,#0b6d65)}.btn.soft{background:#eef8f6;border-color:#d4ebe5;color:#09655c}.btn.ghost{background:#fff}.badge{padding:5px 9px}.badge.success{background:#e8f7f0;color:#1d7758}.credit-chip{border-color:#cde8e1;background:#eff9f7;color:#09645c}.subscription-chip.active{background:#e8f6f0;color:#197657}
.welcome-banner,.admin-hero{border-radius:24px;padding:30px 32px;background:linear-gradient(135deg,#0a5952,#0d756b);color:#fff;box-shadow:0 20px 44px rgba(9,92,84,.16);position:relative;overflow:hidden}.welcome-banner:after,.admin-hero:after{content:"";position:absolute;width:300px;height:300px;border-radius:50%;right:-100px;bottom:-190px;background:radial-gradient(circle,rgba(255,255,255,.18),transparent 70%)}.welcome-banner .eyebrow,.admin-hero .eyebrow{color:#b8e8df}.welcome-banner p,.admin-hero p{color:#d6efeb;max-width:820px}.admin-hero h1{font-size:30px;margin:6px 0 7px}.welcome-banner h1{font-size:30px}
.stats{gap:15px}.stat{min-height:126px;padding:20px 21px;position:relative;overflow:hidden}.stat:before{content:"";position:absolute;right:-22px;top:-26px;width:82px;height:82px;border-radius:26px;transform:rotate(18deg);background:rgba(11,107,99,.04)}.stat .n{font-size:32px}.stat.accent{background:linear-gradient(145deg,#eaf8f4,#ffffff);border-color:#cfe7df}.kpi-green{background:linear-gradient(145deg,#eefaf7,#fff)}.kpi-mint{background:linear-gradient(145deg,#f2fbf8,#fff)}.kpi-gold{background:linear-gradient(145deg,#fff9eb,#fff)}.kpi-orange{background:linear-gradient(145deg,#fff4eb,#fff)}
.dashboard-showcase,.admin-dashboard-visual{display:grid;grid-template-columns:minmax(280px,.72fr) minmax(0,1.28fr);gap:24px;align-items:center;padding:24px;margin-bottom:18px;overflow:hidden;background:linear-gradient(135deg,#fff,#fbfefd)}.dashboard-showcase-copy,.admin-dashboard-copy{padding:8px 4px 8px 8px}.dashboard-showcase h2,.admin-dashboard-visual h2{font-size:31px;line-height:1.08;letter-spacing:-.04em;margin:10px 0 12px}.dashboard-showcase p,.admin-dashboard-visual p{color:#63737a;line-height:1.72;margin:0}.dashboard-showcase .btn{margin-top:20px}.info-pills{display:flex;flex-wrap:wrap;gap:8px;margin-top:18px}.info-pills span{display:inline-flex;align-items:center;padding:8px 11px;border-radius:999px;background:#edf8f5;color:#09685f;font-size:11px;font-weight:800;border:1px solid #d8ece7}
.media-frame{position:relative;border-radius:22px;padding:10px;border:1px solid #dbe9e5;background:linear-gradient(180deg,#fbfefd,#f3faf8);box-shadow:0 20px 50px rgba(15,55,50,.09);overflow:hidden}.media-frame img{display:block;width:100%;height:auto;border-radius:16px}.media-frame.compact{padding:8px}.mini-media{border-radius:14px;overflow:hidden;margin:14px 0 18px;border:1px solid #e0ece8}.mini-media img{width:100%;display:block}
.quick-panel{background:linear-gradient(180deg,#ffffff 0%,#fbfefd 100%);border-color:#dce9e6}.quick-head .feature-icon{box-shadow:0 8px 20px rgba(11,107,99,.08)}
.workspace-hero{display:grid;grid-template-columns:minmax(0,.72fr) minmax(420px,1.28fr);gap:22px;align-items:center;padding:24px 26px;margin-bottom:18px;border:1px solid #dce9e5;background:linear-gradient(135deg,#fff,#f9fcfb);border-radius:22px;box-shadow:0 16px 40px rgba(16,48,44,.055)}.workspace-hero h1{font-size:34px;letter-spacing:-.045em;margin:8px 0 10px}.workspace-hero p{line-height:1.65}.form-section{border-radius:20px}.form-section-head{padding-bottom:15px;border-bottom:1px solid #edf2f0}.section-icon{border-radius:12px;background:linear-gradient(145deg,#dff4ef,#effaf7);color:#0b6b63}.segmented{padding:5px;border-radius:12px;background:#f1f7f5;border-color:#dde9e6}.segmented button{border-radius:9px}.segmented button.active{color:#0b6b63}.location-ok{border-radius:13px;background:#edf9f4;border-color:#cbe9dc}.parcel-result{border-radius:12px}.form-footer{background:#fff;border:1px solid #dce9e6;border-radius:18px;padding:18px 20px;box-shadow:0 14px 34px rgba(17,44,40,.045)}
.billing-visual-grid{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(360px,.65fr);gap:18px;margin-bottom:18px}.billing-preview{overflow:hidden}.billing-hero{grid-template-columns:1.08fr .92fr}.balance-card{background:linear-gradient(135deg,#0a6059,#0d7b70);border-radius:19px;box-shadow:0 18px 42px rgba(11,107,99,.18)}.subscription-card{border-radius:19px;background:linear-gradient(145deg,#fff,#fbfefd)}.price-card{border-radius:20px;padding:27px;box-shadow:0 14px 34px rgba(18,45,40,.055)}.price-card.featured{border-color:#7fcabb;box-shadow:0 18px 42px rgba(11,107,99,.11);transform:translateY(-2px)}
/* Landing */
.marketing-body{background:radial-gradient(circle at 85% 5%,rgba(82,205,181,.08),transparent 26%),#fbfdfc}.public-nav{height:80px;border-bottom-color:#e7f0ed}.public-brand .brand-mark{background:linear-gradient(135deg,#0a625b,#0d7a70);color:#fff}.public-nav nav a{font-size:12px}.hero-premium{max-width:1320px;grid-template-columns:.9fr 1.1fr;gap:48px;padding-top:78px;padding-bottom:64px}.hero-premium .hero-copy{position:relative;z-index:2}.hero-premium h1{font-size:61px}.hero-shot{margin:0}.floating-pill{position:absolute;z-index:2;background:#fff;border:1px solid #dce9e5;border-radius:999px;padding:10px 14px;box-shadow:0 12px 30px rgba(15,50,45,.12);font-size:11px;font-weight:800;color:#0b645c}.floating-pill.top{left:18px;top:18px}.floating-pill.bottom{right:16px;bottom:18px}.marketing-metrics{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin-top:24px}.marketing-metrics article{background:#fff;border:1px solid #e1ece9;border-radius:16px;padding:14px;box-shadow:0 10px 24px rgba(15,48,43,.045)}.marketing-metrics b{display:block;font-size:24px;letter-spacing:-.04em}.marketing-metrics span{display:block;font-size:11px;color:#718087;margin-top:2px;line-height:1.45}.logo-strip{max-width:1240px;border-color:#e6efec}.marketing-section{max-width:1240px}.feature-grid article{border-radius:19px;box-shadow:0 14px 34px rgba(17,44,40,.04)}.feature-grid article:hover{transform:translateY(-2px);transition:.18s ease;border-color:#cfe5df}.feature-icon{border-radius:13px;background:linear-gradient(145deg,#e0f4ef,#f3fbf9)}.product-gallery-section{padding-top:54px}.product-gallery{display:grid;grid-template-columns:1fr 1fr;gap:20px;margin-top:34px}.gallery-card{display:flex;flex-direction:column;gap:16px;padding:22px;background:#fff;border:1px solid #dfeae7;border-radius:22px;box-shadow:0 18px 42px rgba(17,44,40,.055)}.gallery-copy h3{font-size:23px;margin:0 0 6px}.gallery-copy p{margin:0;color:#66767d;line-height:1.65}.workflow-band{border-radius:22px;background:linear-gradient(120deg,#0a514c,#0d6d64);box-shadow:0 18px 42px rgba(9,81,75,.14)}.pricing-section .price-card{border-radius:22px}.faq-list details{background:#fff;border:1px solid #e3ece9;border-radius:14px;padding:17px 19px;margin-bottom:10px}.faq-list details[open]{border-color:#cfe5df;box-shadow:0 10px 24px rgba(17,44,40,.04)}.final-cta-premium{max-width:1240px;border-radius:26px;background:linear-gradient(135deg,#084f4a,#0d756b);box-shadow:0 22px 50px rgba(8,79,74,.18)}.final-cta-premium p{color:#d6ece8;margin:6px 0 0}
@media(max-width:1180px){.dashboard-showcase,.admin-dashboard-visual,.workspace-hero,.billing-visual-grid{grid-template-columns:1fr}.hero-premium{grid-template-columns:1fr}.hero-shot{max-width:950px;margin:0 auto}.product-gallery{grid-template-columns:1fr}.marketing-metrics{max-width:720px}.billing-preview{order:-1}}
@media(max-width:760px){.page{padding:20px 16px 36px}.dashboard-showcase,.admin-dashboard-visual,.workspace-hero{padding:18px}.dashboard-showcase h2,.admin-dashboard-visual h2,.workspace-hero h1{font-size:27px}.hero-premium h1{font-size:43px}.marketing-metrics{grid-template-columns:1fr}.floating-pill{display:none}.public-nav{height:70px}.product-gallery{gap:14px}.billing-visual-grid{grid-template-columns:1fr}.billing-hero{grid-template-columns:1fr}}

/* ==== 1.4.5 · Superadmin Tests & fiabilité ==== */
.quality-hero{position:relative;overflow:hidden;display:flex;align-items:center;justify-content:space-between;gap:28px;margin-bottom:18px;padding:30px 32px;border-radius:24px;color:#fff;background:linear-gradient(135deg,#084b46 0%,#0c6a61 58%,#128176 100%);box-shadow:0 20px 48px rgba(8,75,70,.16)}
.quality-hero:after{content:"";position:absolute;right:-70px;bottom:-130px;width:330px;height:330px;border-radius:50%;border:54px solid rgba(255,255,255,.055)}
.quality-hero>div{position:relative;z-index:1}.quality-hero .eyebrow{color:#b9e6de}.quality-hero h1{font-size:30px;letter-spacing:-.04em;margin:7px 0 7px}.quality-hero p{max-width:850px;color:#d6eeea;margin:0;line-height:1.65}.quality-hero-badge{min-width:145px;padding:20px;border:1px solid rgba(255,255,255,.16);border-radius:20px;background:rgba(255,255,255,.09);backdrop-filter:blur(8px);display:flex;flex-direction:column}.quality-hero-badge b{font-size:36px;line-height:1}.quality-hero-badge span{margin-top:7px;color:#cae7e2;font-size:12px}
.quality-stats .stat:nth-child(1){background:linear-gradient(145deg,#effaf7,#fff)}.quality-stats .stat:nth-child(2){background:linear-gradient(145deg,#f3f8ff,#fff)}.quality-stats .stat:nth-child(3){background:linear-gradient(145deg,#fff9eb,#fff)}.quality-stats .stat:nth-child(4){background:linear-gradient(145deg,#fff2f3,#fff)}
.quality-tabs{display:inline-flex;gap:4px;padding:4px;margin:4px 0 18px;border:1px solid #dce8e5;border-radius:14px;background:#edf5f3}.quality-tabs a{display:flex;align-items:center;gap:7px;padding:9px 14px;border-radius:10px;color:#65767c;font-weight:800;font-size:12px}.quality-tabs a.active{background:#fff;color:#0a655e;box-shadow:0 4px 14px rgba(12,61,56,.08)}.quality-tabs span{min-width:20px;height:20px;padding:0 5px;border-radius:999px;background:#e5f5f1;color:#0b6b63;display:grid;place-items:center;font-size:10px}
.quality-grid{display:grid;grid-template-columns:minmax(0,1.4fr) minmax(300px,.6fr);gap:18px;margin-bottom:18px}.quality-launch textarea{min-height:210px;font-family:ui-monospace,SFMono-Regular,Consolas,monospace;font-size:12px;line-height:1.65}.quality-explain{background:linear-gradient(160deg,#f7fcfb,#fff)}.quality-explain h3{font-size:20px;margin:16px 0 12px}.quality-explain p{margin:18px 0 0;padding-top:15px;border-top:1px solid #e4eeeb;color:#66777d;font-size:12px;line-height:1.65}.quality-checklist{display:grid;gap:10px}.quality-checklist span{display:flex;align-items:center;gap:8px;color:#445a57;font-size:13px;font-weight:650}
.quality-mini-progress{width:105px;height:7px;border-radius:999px;background:#e7efed;overflow:hidden;margin-bottom:5px}.quality-mini-progress i{display:block;height:100%;border-radius:999px;background:linear-gradient(90deg,#0b6b63,#3ca99a)}.quality-number{display:inline-grid;place-items:center;min-width:34px;height:29px;padding:0 8px;border-radius:10px;font-weight:900}.quality-number.pass{background:#e8f7f1;color:#167052}.quality-number.warning{background:#fff5dc;color:#9a6a11}.quality-number.fail{background:#fff0f2;color:#b52d3a}
.quality-progress{padding:19px 21px;margin-bottom:18px;display:grid;grid-template-columns:220px minmax(220px,1fr) auto;align-items:center;gap:20px}.quality-progress>div:first-child{display:flex;flex-direction:column}.quality-progress>div:first-child small{color:var(--muted);text-transform:capitalize;margin-top:3px}.quality-progress-track{height:10px;border-radius:999px;background:#e6efec;overflow:hidden}.quality-progress-track i{display:block;height:100%;border-radius:999px;background:linear-gradient(90deg,#0b6b63,#44aa9b);transition:width .25s ease}.quality-progress-counts{display:flex;gap:8px}.quality-progress-counts span{padding:7px 10px;border-radius:10px;font-size:10px;font-weight:900}.quality-progress-counts .pass{background:#e8f7f1;color:#167052}.quality-progress-counts .warning{background:#fff5dc;color:#946714}.quality-progress-counts .fail{background:#fff0f2;color:#ad3040}
.quality-case-list{display:flex;flex-direction:column;gap:14px}.quality-case{overflow:hidden}.quality-case-head{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:18px 20px}.quality-case-title{display:flex;align-items:center;gap:13px;min-width:0}.quality-case-title>div{display:flex;flex-direction:column;min-width:0}.quality-case-title strong{font-size:14px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.quality-case-title small{color:var(--muted);margin-top:3px}.quality-status{min-width:73px;text-align:center;padding:7px 9px;border-radius:10px;font-size:10px;font-weight:950;letter-spacing:.05em;background:#eef2f3;color:#65737a}.quality-status.pass{background:#e6f7f0;color:#187151}.quality-status.warning{background:#fff3d6;color:#946310}.quality-status.fail{background:#fff0f2;color:#ad3040}.quality-status.running{background:#eaf3ff;color:#2e659c}.quality-status.pending{background:#f0f2f5;color:#677482}
.quality-case-summary{display:grid;grid-template-columns:repeat(4,1fr);gap:1px;background:#e8efed;border-top:1px solid #e8efed;border-bottom:1px solid #e8efed}.quality-case-summary>div{padding:14px 18px;background:#fbfdfc;display:flex;flex-direction:column}.quality-case-summary span{font-size:10px;text-transform:uppercase;letter-spacing:.06em;color:#7b898e;font-weight:800}.quality-case-summary b{font-size:17px;margin-top:3px}.quality-error{margin:0 20px 18px}.quality-mismatch{margin:16px 20px;padding:14px 16px;border:1px solid #f1ccd1;border-radius:14px;background:#fff6f7;display:flex;flex-direction:column;gap:5px;color:#8f3240}.quality-mismatch>b{font-size:12px}.quality-mismatch span{font-size:11px}
.quality-detail{border-top:1px solid #e8efed}.quality-detail>summary{cursor:pointer;padding:14px 20px;color:#3c5652;font-weight:800;font-size:12px;list-style:none}.quality-detail>summary::-webkit-details-marker{display:none}.quality-detail>summary:after{content:"+";float:right;color:#7b8b88}.quality-detail[open]>summary:after{content:"−"}.quality-risk-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;padding:0 20px 20px}.quality-risk{position:relative;padding:14px;border:1px solid #e1eae8;border-radius:14px;background:#fbfdfc;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px}.quality-risk.mismatch{border-color:#efbdc4;background:#fff8f8}.quality-risk>div{display:flex;flex-direction:column;min-width:0}.quality-risk b{font-size:12px}.quality-risk small{color:#7c8a8e;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin-top:2px}.quality-risk p{grid-column:1/-1;margin:0;color:#5d6d72;font-size:11px;line-height:1.55}.quality-risk em{grid-column:1/-1;font-style:normal;color:#aa3342;font-size:10px;font-weight:800}.quality-url{display:block;max-width:650px;white-space:normal;word-break:break-all;color:#285b55;font-size:10px}.quality-preview{max-width:520px;max-height:210px;overflow:auto;padding:10px;border-radius:9px;background:#10211f;color:#cfe8e3;font-size:10px;white-space:pre-wrap;word-break:break-word}.quality-reference-action{margin:0}.text-danger{color:#b52d3a!important}
.quality-reference-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.quality-reference>summary{padding:18px 20px;display:flex;justify-content:space-between;align-items:center;gap:16px;cursor:pointer;list-style:none}.quality-reference>summary::-webkit-details-marker{display:none}.quality-reference>summary>div{display:grid;grid-template-columns:auto 1fr;column-gap:9px;align-items:center}.quality-reference>summary strong{font-size:13px}.quality-reference>summary small{grid-column:2;color:var(--muted);margin-top:2px}.quality-dot{width:10px;height:10px;border-radius:50%;background:#a5b0b7}.quality-dot.pass{background:#27a476}.quality-dot.warning{background:#e0a62d}.quality-dot.fail{background:#d54a5b}.quality-expected-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px 12px}.quality-expected-grid label{margin:0;font-size:11px}.quality-expected-grid select{margin-top:4px;padding:9px 10px}.quality-last-run{margin-top:14px;padding:11px 12px;border-radius:10px;background:#f4f8f7;color:#66777c;font-size:11px}
@media(max-width:1180px){.quality-grid{grid-template-columns:1fr}.quality-reference-grid{grid-template-columns:1fr}.quality-risk-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.quality-progress{grid-template-columns:1fr}.quality-progress-counts{justify-content:flex-start}}
@media(max-width:720px){.quality-hero{align-items:flex-start;flex-direction:column;padding:24px}.quality-hero h1{font-size:25px}.quality-hero-badge{min-width:0}.quality-case-head{align-items:flex-start;flex-direction:column}.quality-case-summary{grid-template-columns:1fr 1fr}.quality-risk-grid{grid-template-columns:1fr}.quality-expected-grid{grid-template-columns:1fr}.quality-progress-counts{flex-wrap:wrap}}
.admin-quality-strip{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:14px;padding:16px 18px;margin-bottom:18px;background:linear-gradient(100deg,#f0faf7,#fff);border-color:#d5ebe5}.admin-quality-icon{width:46px;height:46px;border-radius:14px;display:grid;place-items:center;background:#dff4ee;color:#0a6b62}.admin-quality-icon svg{width:23px;height:23px;fill:none;stroke:currentColor;stroke-width:1.8}.admin-quality-strip>div:nth-child(2){display:flex;flex-direction:column}.admin-quality-strip .eyebrow{font-size:9px}.admin-quality-strip b{font-size:13px;margin:2px 0}.admin-quality-strip small{color:var(--muted)}.quality-delete-reference{padding:0 20px 20px;text-align:right}
@media(max-width:720px){.admin-quality-strip{grid-template-columns:auto 1fr}.admin-quality-strip>a{grid-column:1/-1}}

/* ==== v1.4.5 random quality address generator ==== */
.quality-random-generator{margin-bottom:18px;background:linear-gradient(135deg,#f2fbf8 0%,#fff 62%);border-color:#d5ebe5;overflow:hidden}
.quality-random-head{display:flex;align-items:flex-start;justify-content:space-between;gap:22px;margin-bottom:22px}
.quality-random-head>div:first-child{display:flex;gap:14px;align-items:flex-start}.quality-random-head h2{margin:4px 0 6px;font-size:22px;letter-spacing:-.03em}.quality-random-head p{margin:0;color:#65777b;line-height:1.6;max-width:850px}.quality-random-head .feature-icon{flex:0 0 auto}
.quality-random-controls{display:grid;grid-template-columns:1fr 1.15fr 1.15fr 1fr;gap:12px;padding:16px;border:1px solid #dfebe8;border-radius:17px;background:rgba(255,255,255,.78)}
.quality-random-controls label{margin:0}.quality-random-controls label>small{display:inline;margin-left:5px}.quality-random-controls select,.quality-random-controls input{background:#fff}
.quality-random-footer{display:flex;align-items:center;justify-content:space-between;gap:18px;margin-top:16px}.quality-random-check{margin:0;display:flex;align-items:center;gap:11px;cursor:pointer}.quality-random-check input{width:18px;height:18px;margin:0;accent-color:#0b6b63}.quality-random-check span{display:flex;flex-direction:column}.quality-random-check b{font-size:12px}.quality-random-check small{color:var(--muted);font-weight:400;margin-top:2px}.quality-random-actions{display:flex;gap:8px;align-items:center;flex:0 0 auto}
.quality-random-progress{margin-top:18px;padding:14px 16px;border-radius:14px;background:#fff;border:1px solid #dfeae7;display:grid;grid-template-columns:minmax(210px,.45fr) minmax(260px,1fr);align-items:center;gap:18px}.quality-random-progress[hidden]{display:none}.quality-random-progress>div:first-child{display:flex;flex-direction:column}.quality-random-progress b{font-size:12px}.quality-random-progress small{margin-top:3px;color:var(--muted)}
.quality-launch textarea[data-quality-addresses]{min-height:260px;background:linear-gradient(180deg,#fff,#fbfdfc)}
@media(max-width:1050px){.quality-random-controls{grid-template-columns:1fr 1fr}.quality-random-footer{align-items:flex-start;flex-direction:column}.quality-random-actions{width:100%;justify-content:flex-end}}
@media(max-width:650px){.quality-random-head{flex-direction:column}.quality-random-controls{grid-template-columns:1fr}.quality-random-progress{grid-template-columns:1fr}.quality-random-actions{display:grid;grid-template-columns:1fr 1fr}.quality-random-actions .btn{width:100%}}

/* ==== v1.4.6 cartes interactives : plan / photo aérienne ==== */
.map-card{overflow:hidden;margin-bottom:16px}.map-card-head{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;padding:22px 24px 18px;border-bottom:1px solid #e5efec;background:linear-gradient(135deg,#fbfefd,#f3faf8)}.map-card-head h2{font-size:20px;margin:4px 0 5px;letter-spacing:-.025em}.map-card-head p{margin:0;max-width:760px;color:#6c7b80;line-height:1.6;font-size:12px}.map-source-badge{display:inline-flex;align-items:center;white-space:nowrap;padding:7px 10px;border-radius:999px;background:#e9f6f2;color:#0a665e;font-size:10px;font-weight:850;border:1px solid #d1ebe4}
.sr-map-shell{position:relative;min-height:390px;background:#edf5f2;overflow:hidden}.sr-map-canvas{height:390px;width:100%;background:#edf5f2;z-index:1}.sr-map-shell.dossier-map,.sr-map-shell.dossier-map .sr-map-canvas{height:330px;min-height:330px}.sr-map-shell.quality-map,.sr-map-shell.quality-map .sr-map-canvas{height:430px;min-height:430px}.sr-map-toolbar{position:absolute;z-index:600;left:12px;right:12px;top:12px;display:flex;justify-content:space-between;align-items:center;gap:12px;pointer-events:none}.sr-map-tabs,.sr-map-actions{display:flex;align-items:center;gap:5px;padding:5px;background:rgba(255,255,255,.94);border:1px solid rgba(212,227,223,.95);border-radius:12px;box-shadow:0 8px 24px rgba(18,49,44,.13);backdrop-filter:blur(8px);pointer-events:auto}.sr-map-tabs button,.sr-map-actions button{border:0;background:transparent;border-radius:8px;padding:8px 11px;cursor:pointer;color:#586c70;font-weight:800;font-size:11px}.sr-map-tabs button:hover,.sr-map-actions button:hover{background:#eef7f5;color:#0a665e}.sr-map-tabs button.active{background:#0b6b63;color:#fff;box-shadow:0 6px 14px rgba(11,107,99,.18)}.sr-map-actions span{font-size:10px;color:#65777a;font-weight:750;padding:0 6px;max-width:200px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.sr-map-actions button{width:32px;height:32px;padding:0;font-size:16px;display:grid;place-items:center}.sr-map-empty{position:absolute;z-index:500;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;background:linear-gradient(135deg,#f1f8f6,#e8f3f0);color:#35504e;pointer-events:none}.sr-map-empty[hidden]{display:none}.sr-map-empty>span{width:54px;height:54px;border-radius:18px;background:#fff;box-shadow:0 10px 24px rgba(22,57,52,.09);display:grid;place-items:center;font-size:26px;color:#0b6b63;margin-bottom:12px}.sr-map-empty b{font-size:15px}.sr-map-empty small{margin-top:5px;color:#70817f}.dossier-map-wrap{margin:17px -20px 0;border-top:1px solid #e6efed;border-bottom:1px solid #e6efed}.dossier-map-wrap .sr-map-shell{border-radius:0}.quality-map-body{padding:14px}.quality-map{border:1px solid #dfeae7;border-radius:15px}.leaflet-container{font-family:Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",Roboto,Arial,sans-serif}.leaflet-control-zoom{border:0!important;box-shadow:0 8px 24px rgba(18,49,44,.14)!important}.leaflet-control-zoom a{color:#0b665e!important;border-color:#e1ece9!important}.leaflet-control-attribution{background:rgba(255,255,255,.82)!important;font-size:9px!important}.sr-map-shell.is-fullscreen{position:fixed!important;z-index:10000!important;inset:14px!important;height:auto!important;min-height:0!important;border-radius:20px!important;border:1px solid #d8e7e3!important;box-shadow:0 30px 80px rgba(4,31,28,.32)!important}.sr-map-shell.is-fullscreen .sr-map-canvas{height:100%!important;min-height:100%!important}.map-fullscreen-open{overflow:hidden}.map-fullscreen-open:before{content:"";position:fixed;z-index:9999;inset:0;background:rgba(4,31,28,.54);backdrop-filter:blur(6px)}
@media(max-width:760px){.map-card-head{flex-direction:column;padding:18px}.sr-map-shell,.sr-map-canvas{height:330px;min-height:330px}.sr-map-toolbar{left:8px;right:8px;top:8px;align-items:flex-start}.sr-map-actions span{display:none}.sr-map-tabs button{padding:8px 9px}.sr-map-shell.dossier-map,.sr-map-shell.dossier-map .sr-map-canvas{height:300px;min-height:300px}.sr-map-shell.quality-map,.sr-map-shell.quality-map .sr-map-canvas{height:340px;min-height:340px}.sr-map-shell.is-fullscreen{inset:6px!important;border-radius:14px!important}}

/* ==== v1.4.7 direct purchase from dossier ==== */
.credit-required-card{margin:0 0 18px;padding:22px 24px;border:1px solid #cfe7e1;border-radius:20px;background:linear-gradient(135deg,#f7fdfb 0%,#ffffff 52%,#eef9f6 100%);box-shadow:0 18px 44px rgba(11,107,99,.08)}
.credit-required-main{display:flex;align-items:flex-start;gap:16px}.credit-required-icon{width:52px;height:52px;border-radius:16px;display:grid;place-items:center;flex:0 0 auto;background:linear-gradient(135deg,#0b6b63,#109287);color:#fff;box-shadow:0 12px 24px rgba(11,107,99,.2)}.credit-required-icon svg{width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:1.8}.credit-required-main h2{font-size:22px;letter-spacing:-.03em;margin:5px 0 6px}.credit-required-main p{margin:0;color:#60736f;line-height:1.55;max-width:920px}.credit-required-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin:18px 0 14px 68px}.credit-required-actions form{margin:0}.credit-required-foot{margin-left:68px;padding-top:13px;border-top:1px solid #dfebe8;display:flex;align-items:center;justify-content:space-between;gap:14px;flex-wrap:wrap;color:#6c7c78;font-size:12px}.credit-required-foot b{color:#0b665e}.aside-credit-gate{margin-top:12px;padding:14px;border:1px solid #d4e9e4;border-radius:14px;background:#f3faf8;display:flex;flex-direction:column;gap:8px}.aside-credit-gate>b{color:#0a625a}.aside-credit-gate>small{color:#6a7b77;line-height:1.45}.aside-credit-gate form{margin:2px 0 0}.payment-return{display:flex;align-items:center;gap:12px;margin:0 0 16px;padding:13px 15px;border-radius:14px;border:1px solid}.payment-return.success{background:#eef9f5;border-color:#cde9dc;color:#175f48}.payment-return.cancel{background:#fff8ed;border-color:#f0dfbd;color:#815b16}.payment-return-icon{width:32px;height:32px;border-radius:50%;display:grid;place-items:center;flex:0 0 auto;font-size:18px;font-weight:900;background:rgba(255,255,255,.78)}.payment-return>div{display:flex;flex-direction:column;flex:1;min-width:0}.payment-return b{font-size:13px}.payment-return small{margin-top:2px;color:inherit;opacity:.82;line-height:1.45}
@media(max-width:720px){.credit-required-card{padding:18px}.credit-required-main{gap:12px}.credit-required-icon{width:44px;height:44px;border-radius:14px}.credit-required-main h2{font-size:19px}.credit-required-actions,.credit-required-foot{margin-left:0}.credit-required-actions{align-items:stretch;flex-direction:column}.credit-required-actions form,.credit-required-actions .btn{width:100%}.payment-return{align-items:flex-start;flex-wrap:wrap}}

/* ==== v1.4.8 topbar + map polish ==== */
.topbar-tools{display:flex;align-items:center;justify-content:flex-end;gap:12px;flex-wrap:wrap}
.topbar-pills{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.credit-pill,.subscription-pill,.topbar-usercard{display:inline-flex;align-items:center;border:1px solid #d7e9e3;background:#fff;border-radius:14px;min-height:46px}
.credit-pill{padding:7px 12px 7px 10px;gap:10px;background:linear-gradient(180deg,#f6fcfa,#eef8f5);box-shadow:0 8px 18px rgba(11,107,99,.06)}
.credit-pill .ico{width:30px;height:30px;border-radius:10px;display:grid;place-items:center;background:#e0f2ed;color:#09645c;flex:0 0 auto}
.credit-pill .ico svg{width:16px;height:16px}
.credit-pill .meta,.topbar-usercard .meta{display:flex;flex-direction:column;line-height:1.1}
.credit-pill b{font-size:18px;color:#0b625a;letter-spacing:-.03em}
.credit-pill small{font-size:11px;color:#738488;margin-top:3px}
.subscription-pill{padding:0 12px;gap:8px;font-size:11px;font-weight:800;color:#6e7c88;background:#f8fafb}
.subscription-pill .dot{width:8px;height:8px;border-radius:50%;background:#aab5c1;box-shadow:0 0 0 5px rgba(170,181,193,.12)}
.subscription-pill.active{background:#eef8f4;color:#14735a;border-color:#cfe7dc}
.subscription-pill.active .dot{background:#1aa86d;box-shadow:0 0 0 5px rgba(26,168,109,.12)}
.topbar-usercard{padding:6px 12px 6px 6px;gap:10px;min-width:200px;box-shadow:0 8px 18px rgba(14,30,37,.04)}
.topbar-usercard .avatar{width:34px;height:34px;border-radius:12px;display:grid;place-items:center;background:linear-gradient(135deg,#e0f2ed,#cfeae3);color:#0b6b63;font-weight:900;flex:0 0 auto}
.admin-body .topbar-usercard .avatar{background:linear-gradient(135deg,#eef2f7,#dde5ef);color:#334155}
.topbar-usercard b{font-size:13px;color:#1f2937}
.topbar-usercard small{font-size:11px;color:#71818a;max-width:180px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin-top:3px}
.topbar-logout{min-height:46px;padding:0 14px;border-radius:14px;font-weight:700}
.topbar .btn.small{padding:0 14px}
.credit-chip,.subscription-chip,.user-menu{display:none !important}

.sr-map-toolbar{left:10px;right:10px;top:10px;gap:10px;align-items:flex-start;flex-wrap:wrap}
.sr-map-tabs,.sr-map-actions{max-width:100%}
.sr-map-actions{margin-left:auto}
.sr-map-actions span{max-width:170px}
.leaflet-top.leaflet-left .leaflet-control-zoom{margin-top:76px!important}
.leaflet-top.leaflet-right .leaflet-control{margin-top:76px!important}
.sr-map-shell .leaflet-control-zoom a{width:34px;height:34px;line-height:34px;font-size:16px}

@media(max-width:980px){
  .topbar{height:auto;min-height:76px;padding:12px 18px}
  .topbar{align-items:flex-start}
  .topbar-tools{width:100%;justify-content:flex-start}
  .top-left{padding-top:2px}
}
@media(max-width:760px){
  .topbar{padding:12px 14px}
  .topbar-tools{gap:10px}
  .topbar-usercard{min-width:0;flex:1 1 auto}
  .topbar-logout{width:auto}
}
@media(max-width:620px){
  .topbar{flex-direction:column;gap:12px;align-items:stretch}
  .top-left,.topbar-tools{width:100%}
  .topbar-tools{justify-content:space-between}
  .topbar-pills{flex:1 1 100%;order:1}
  .topbar-usercard{flex:1 1 auto;min-width:0}
  .topbar-logout{order:3}
}
@media(max-width:560px){
  .credit-pill b{font-size:16px}
  .subscription-pill{padding:0 10px}
  .topbar-usercard{padding-right:10px}
  .topbar-usercard small{max-width:120px}
  .sr-map-toolbar{display:grid;grid-template-columns:1fr;gap:8px}
  .sr-map-tabs,.sr-map-actions{width:max-content;max-width:100%}
  .sr-map-actions{margin-left:0;justify-content:space-between;width:100%}
  .sr-map-actions span{flex:1;max-width:none}
  .leaflet-top.leaflet-left .leaflet-control-zoom{margin-top:118px!important}
  .leaflet-top.leaflet-right .leaflet-control{margin-top:118px!important}
}
@media(max-width:420px){
  .topbar-usercard b{font-size:12px}
  .topbar-usercard small{display:none}
  .topbar-logout{padding:0 12px}
}

/* ==== v1.4.9 fidélité clients + crédits offerts FacilErp ==== */
.loyalty-stats{margin-bottom:18px}
.loyalty-toolbar{margin-bottom:18px}
.loyalty-filters{justify-content:space-between;gap:14px}
.loyalty-filters>input{min-width:240px;flex:1 1 260px}
.sort-pills{display:flex;align-items:center;gap:6px;padding:5px;border:1px solid #dde9e6;background:#f6faf9;border-radius:13px;flex-wrap:wrap}
.sort-pills a{padding:8px 11px;border-radius:9px;font-size:11px;font-weight:800;color:#617176;transition:.15s ease}
.sort-pills a:hover{background:#fff;color:#0b6b63}
.sort-pills a.active{background:#fff;color:#0b6b63;box-shadow:0 5px 14px rgba(10,67,61,.09)}
.loyalty-table-card{overflow:hidden}
.loyalty-table{min-width:1180px}
.loyalty-table td{vertical-align:middle}
.loyalty-table td:first-child a{display:flex;flex-direction:column}
.client-segments{display:flex;gap:5px;flex-wrap:wrap;min-width:135px}
.segment{display:inline-flex;align-items:center;border-radius:999px;padding:5px 8px;font-size:9px;font-weight:850;white-space:nowrap;border:1px solid transparent}
.segment.vip{background:#e8f7ef;color:#146c50;border-color:#ccebdd}
.segment.loyal{background:#eff9f6;color:#147064;border-color:#d5ece6}
.segment.power{background:#fff1df;color:#9a5b10;border-color:#f5d6aa}
.segment.heavy{background:#fff8e9;color:#936a16;border-color:#f1dfb8}
.segment.neutral{background:#f1f4f7;color:#667484;border-color:#e2e7ec}
.loyalty-balance{display:inline-grid;place-items:center;min-width:38px;height:30px;padding:0 9px;border-radius:10px;background:#eef8f6;color:#09675e;font-weight:900}
.gift-inline{display:flex;align-items:center;gap:6px;min-width:145px}
.gift-inline select{margin:0;width:68px;min-width:68px;padding:7px 8px;border-radius:9px}
.gift-inline .btn{white-space:nowrap}
.loyalty-legend{margin-top:14px;display:flex;gap:10px 18px;flex-wrap:wrap;color:#6b7b80;font-size:11px;padding:0 4px}
.loyalty-legend span{display:inline-flex;align-items:center;gap:4px}
.gift-card{background:linear-gradient(145deg,#f7fcfa,#fff);border-color:#d8ebe5}
.gift-presets{display:grid;grid-template-columns:repeat(5,1fr);gap:8px;margin:2px 0 17px}
.gift-preset{border:1px solid #cde7df;background:#fff;color:#0b6b63;border-radius:12px;padding:11px 8px;font-weight:900;cursor:pointer;transition:.15s ease;box-shadow:0 6px 16px rgba(11,107,99,.05)}
.gift-preset:hover{transform:translateY(-1px);background:#0b6b63;color:#fff;border-color:#0b6b63;box-shadow:0 10px 20px rgba(11,107,99,.15)}
.gift-custom{margin-top:2px}
.admin-adjustment{margin-top:18px;border-top:1px solid #e3ece9}
.admin-adjustment>summary{padding-left:0;padding-right:0;color:#68777c}
.admin-adjustment .disclosure-body{padding-left:0;padding-right:0;padding-bottom:0}
.client-insight-stats .stat:nth-child(2){background:linear-gradient(145deg,#f7fcfa,#fff)}
.client-insight-stats .stat:nth-child(3){background:linear-gradient(145deg,#fffaf2,#fff)}

@media(max-width:980px){
  .loyalty-filters{align-items:stretch}
  .sort-pills{order:3;width:100%}
  .gift-presets{grid-template-columns:repeat(5,minmax(58px,1fr))}
}
@media(max-width:720px){
  .loyalty-stats,.client-insight-stats{grid-template-columns:1fr 1fr}
  .gift-presets{grid-template-columns:repeat(3,1fr)}
  .gift-presets .gift-preset:nth-child(4),.gift-presets .gift-preset:nth-child(5){grid-column:auto}
}
@media(max-width:480px){
  .loyalty-stats,.client-insight-stats{grid-template-columns:1fr}
  .sort-pills{display:grid;grid-template-columns:1fr 1fr}
  .sort-pills a{text-align:center}
  .gift-presets{grid-template-columns:repeat(2,1fr)}
  .gift-preset:last-child{grid-column:1/-1}
}

/* ==== v1.4.10 aide visuelle validation réglementaire ==== */
.validation-summary{padding:14px 15px;background:linear-gradient(180deg,#fff9ea,#fff6df);border-color:#e9cd86;border-radius:12px;color:#715018}
.validation-summary-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}
.validation-summary-head>div{display:flex;flex-direction:column;gap:3px}
.validation-summary-head strong{font-size:12px;color:#6d4a10}
.validation-summary-head small{font-size:10px;color:#8a6a2f}
.validation-summary ul{list-style:none;padding:0;margin:10px 0 0;display:flex;flex-direction:column;gap:5px}
.validation-summary li{margin:0;padding:0}
.validation-error-link{display:block;width:100%;border:0;background:transparent;padding:4px 0;text-align:left;color:#76551a;font:inherit;font-size:11px;line-height:1.45;cursor:pointer}
.validation-error-link:before{content:"•";margin-right:7px;color:#d18a16;font-weight:900}
.validation-error-link:hover{color:#8f5700;text-decoration:underline;text-underline-offset:2px}
.validation-disabled-action{margin-top:10px;background:linear-gradient(135deg,#a5bfba,#88aaa4)!important;border-color:#94b2ad!important;box-shadow:none!important}
.validation-control-missing{border-color:#e28a39!important;background:#fffaf4!important;box-shadow:0 0 0 3px rgba(226,138,57,.12)!important}
.validation-label-missing{color:#9a5318!important;scroll-margin-top:105px}
.validation-label-missing>input,.validation-label-missing>select,.validation-label-missing>textarea{border-color:#e28a39!important;background:#fffaf4!important}
.validation-block-missing{border-color:#e28a39!important;background:linear-gradient(180deg,#fffdf9,#fff8ee)!important;box-shadow:0 0 0 3px rgba(226,138,57,.08);scroll-margin-top:105px}
.validation-block-missing .risk-status{background:#ffead1!important;color:#95500f!important}
.validation-missing-note{display:flex;align-items:center;gap:6px;margin-top:7px;color:#a45a19;font-size:10px;font-weight:750;line-height:1.4}
.validation-missing-note:before{content:"!";width:17px;height:17px;border-radius:50%;background:#f5a64d;color:#fff;display:inline-grid;place-items:center;font-size:10px;font-weight:900;flex:0 0 auto}
.file-row.validation-block-missing{padding:13px}
.field-focus-pulse{animation:validationPulse 1.2s ease}
@keyframes validationPulse{0%,100%{box-shadow:0 0 0 3px rgba(226,138,57,.08)}45%{box-shadow:0 0 0 7px rgba(226,138,57,.20)}}
@media(max-width:720px){.validation-summary-head{flex-direction:column}.validation-summary-head .btn{width:100%}}

/* ==== v1.4.11 parcours d'analyse explicite ==== */
.analysis-required-card{margin:0 0 18px;padding:24px 26px;border:1px solid #b9dfd6;border-radius:20px;background:linear-gradient(135deg,#f0fbf8 0%,#ffffff 58%,#eaf7f3 100%);box-shadow:0 18px 44px rgba(11,107,99,.10);scroll-margin-top:96px}
.analysis-required-main{display:grid;grid-template-columns:54px minmax(0,1fr) auto;gap:18px;align-items:center}
.analysis-required-step{width:54px;height:54px;border-radius:17px;display:grid;place-items:center;background:linear-gradient(135deg,#0a655d,#0c887c);color:#fff;font-size:22px;font-weight:900;box-shadow:0 12px 26px rgba(11,107,99,.20)}
.analysis-required-card .eyebrow{color:#0b6b63}
.analysis-required-card h2{margin:4px 0 7px;font-size:22px;letter-spacing:-.03em;color:#12332f}
.analysis-required-card p{margin:0;max-width:840px;color:#5f7470;line-height:1.6}
.analysis-required-tags{display:flex;gap:8px;flex-wrap:wrap;margin-top:12px}
.analysis-required-tags span{padding:6px 9px;border-radius:999px;background:#e4f4ef;color:#0a655d;font-size:10px;font-weight:800}
.analysis-required-action{min-width:250px;display:flex;flex-direction:column;gap:7px;align-items:stretch;margin:0}
.analysis-required-action .btn{min-height:48px;font-size:13px}
.analysis-required-action small{text-align:center;color:#72837f;font-size:10px}
.analysis-done-strip{display:flex;align-items:center;gap:12px;margin:0 0 18px;padding:13px 15px;border:1px solid #cfe7dc;border-radius:15px;background:#f2faf7;color:#245f50}
.analysis-done-icon{width:34px;height:34px;border-radius:11px;display:grid;place-items:center;background:#dff2e9;color:#127455;font-weight:900;flex:0 0 auto}
.analysis-done-strip>div{display:flex;flex-direction:column;flex:1;min-width:0}
.analysis-done-strip b{font-size:12px}.analysis-done-strip small{margin-top:2px;color:#647b75}
.analysis-done-strip form{margin:0}
.analysis-pending-note{display:flex;align-items:center;gap:11px;margin:0 0 13px;padding:11px 13px;border:1px solid #d5e8e3;border-radius:12px;background:#f5faf9;color:#405d58}
.analysis-pending-note>span{width:28px;height:28px;border-radius:9px;background:#e1f2ed;color:#0a665e;display:grid;place-items:center;font-weight:900;flex:0 0 auto}
.analysis-pending-note>div{display:flex;flex-direction:column;flex:1}.analysis-pending-note b{font-size:11px}.analysis-pending-note small{margin-top:2px;color:#748681}
.analysis-pending-note>a{font-size:11px;font-weight:850;color:#0a665e;white-space:nowrap}
.risk-card.pending-analysis{border-color:#d9e5e3;background:#f9fbfb;box-shadow:none!important}
.risk-card.pending-analysis select,.risk-card.pending-analysis textarea{border-color:#dce5e4;background:#fff}
.risk-status.pending{background:#e8f2f0;color:#58716c}
.risk-card.pending-analysis .risk-meta{color:#71837f}
.generation-waiting{display:flex;align-items:flex-start;gap:11px;margin:13px 0;padding:12px;border:1px solid #d7e8e4;background:#f5faf9;border-radius:12px}
.generation-waiting-step{width:30px;height:30px;border-radius:9px;background:#e0f1ec;color:#0a665e;display:grid;place-items:center;font-weight:900;flex:0 0 auto}
.generation-waiting>div{display:flex;flex-direction:column}.generation-waiting b{font-size:12px;color:#28564d}.generation-waiting small{margin-top:3px;color:#6d817c;line-height:1.45}
.aside-analysis-form{margin-top:12px;display:flex;flex-direction:column;gap:6px}.aside-analysis-form small{text-align:center;color:#748681;font-size:10px}
@media(max-width:920px){.analysis-required-main{grid-template-columns:48px minmax(0,1fr)}.analysis-required-step{width:48px;height:48px}.analysis-required-action{grid-column:1/-1;min-width:0;margin-left:66px}}
@media(max-width:620px){.analysis-required-card{padding:18px}.analysis-required-main{grid-template-columns:42px minmax(0,1fr);gap:12px}.analysis-required-step{width:42px;height:42px;border-radius:13px;font-size:18px}.analysis-required-card h2{font-size:19px}.analysis-required-action{margin-left:0}.analysis-required-action .btn{width:100%}.analysis-pending-note{align-items:flex-start;flex-wrap:wrap}.analysis-pending-note>a{width:100%;padding-left:39px}.analysis-done-strip{align-items:flex-start;flex-wrap:wrap}.analysis-done-strip form{width:100%;padding-left:46px}}

/* ==== v1.4.12 analyse + validation dynamique ==== */
.analysis-progress-overlay{position:fixed;z-index:12000;inset:0;background:rgba(5,34,31,.56);backdrop-filter:blur(8px);display:grid;place-items:center;padding:22px}
.analysis-progress-overlay[hidden]{display:none!important}
.analysis-progress-card{width:min(620px,100%);display:grid;grid-template-columns:58px minmax(0,1fr);gap:20px;align-items:start;padding:28px;border-radius:22px;background:#fff;border:1px solid #d8ebe6;box-shadow:0 32px 90px rgba(4,29,26,.32)}
.analysis-progress-spinner{width:54px;height:54px;border-radius:50%;border:5px solid #dceee9;border-top-color:#0b756b;animation:spin .8s linear infinite;box-shadow:0 0 0 8px rgba(11,117,107,.06)}
.analysis-progress-card h3{margin:5px 0 8px;font-size:22px;letter-spacing:-.03em;color:#163632}
.analysis-progress-card p{margin:0;color:#657874;line-height:1.6}
.analysis-progress-steps{display:flex;gap:8px;flex-wrap:wrap;margin-top:18px}
.analysis-progress-steps span{padding:7px 10px;border-radius:999px;background:#f1f5f4;color:#7a8986;font-size:10px;font-weight:850}
.analysis-progress-steps span.active{background:#dff3ed;color:#08675e;box-shadow:0 0 0 2px rgba(11,107,99,.08)}
.analysis-running{overflow:hidden}
.analysis-btn-spinner{width:15px;height:15px;border-radius:50%;border:2px solid rgba(255,255,255,.45);border-top-color:currentColor;display:inline-block;animation:spin .75s linear infinite;vertical-align:-2px;margin-right:7px}
.btn.soft .analysis-btn-spinner{border-color:rgba(11,107,99,.2);border-top-color:#0b6b63}
.validation-control-missing,.validation-label-missing,.validation-block-missing{transition:border-color .18s ease,background .18s ease,box-shadow .18s ease}
.validation-summary.validation-summary-resolved{border-color:#b9dfcf!important;background:#f0faf5!important;color:#1b674d!important}
.validation-summary.validation-summary-resolved ul{display:none}
.validation-summary.validation-summary-resolved .validation-summary-head small{color:#4f7868}
@media(max-width:620px){.analysis-progress-card{grid-template-columns:44px minmax(0,1fr);padding:21px;gap:14px}.analysis-progress-spinner{width:42px;height:42px;border-width:4px}.analysis-progress-card h3{font-size:19px}.analysis-progress-steps{grid-column:1/-1}}

/* ==== v1.4.13 enregistrement explicite avant PDF ==== */
#generation-reglementaire{scroll-margin-top:100px}
.generation-title-row{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:12px}
.generation-title-row>div{display:flex;flex-direction:column;gap:3px}
.generation-title-row strong{font-size:16px;color:#18302d}
.generation-step-badge{display:inline-flex;align-items:center;justify-content:center;min-width:46px;height:28px;padding:0 10px;border-radius:999px;background:#eaf6f3;color:#0b6b63;font-size:11px;font-weight:900}
.generation-ready{line-height:1.55}
.generation-save-hint{display:flex;align-items:flex-start;gap:10px;margin:10px 0;padding:12px 13px;border:1px solid #b9dfcf;background:#effaf5;border-radius:12px;color:#245f4b}
.generation-save-hint[hidden]{display:none}
.generation-save-hint>span{width:24px;height:24px;border-radius:50%;display:grid;place-items:center;background:#d5f1e4;color:#147252;font-weight:900;flex:0 0 auto}
.generation-save-hint>div{display:flex;flex-direction:column;gap:2px}.generation-save-hint b{font-size:12px}.generation-save-hint small{font-size:10px;color:#55786c;line-height:1.45}
.validation-ready-action{background:linear-gradient(135deg,#0a6d64,#0d8176)!important;border-color:#0b6b63!important;box-shadow:0 12px 24px rgba(11,107,99,.16)!important}
.editor-save-row{display:flex;align-items:center;justify-content:space-between;gap:18px;margin-top:16px;padding:14px 15px;border-radius:14px;border:1px solid #e0ebe8;background:#f9fcfb}
.editor-save-help{display:flex;flex-direction:column;gap:3px;min-width:0}.editor-save-help small{color:#6f7f83;font-size:10px;line-height:1.45}
.editor-save-status{display:inline-flex;align-items:center;gap:7px;color:#50706a;font-size:11px;font-weight:850}
.editor-save-status:before{content:"";width:8px;height:8px;border-radius:50%;background:#7eb4a9;box-shadow:0 0 0 4px rgba(126,180,169,.12)}
.editor-save-status.dirty{color:#9a611b}.editor-save-status.dirty:before{background:#e3a23f;box-shadow:0 0 0 4px rgba(227,162,63,.14)}
.editor-save-status.ready{color:#167254}.editor-save-status.ready:before{background:#20a66f;box-shadow:0 0 0 4px rgba(32,166,111,.14)}
@media(max-width:720px){.editor-save-row{flex-direction:column;align-items:stretch}.editor-save-row .btn{width:100%}.generation-title-row{align-items:flex-start}}

/* ==== v1.4.14 sticky dossier actions + responsive mobile ==== */
.sidebar-mobile-close,.sidebar-backdrop{display:none}

/* Sticky contextual action bar */
.dossier-sticky-bar{position:fixed;z-index:880;left:calc(var(--sidebar) + 24px);right:24px;bottom:18px;min-height:72px;padding:11px 12px 11px 16px;border:1px solid rgba(203,226,219,.96);border-radius:18px;background:rgba(255,255,255,.94);backdrop-filter:blur(18px);box-shadow:0 18px 55px rgba(6,46,41,.20);display:flex;align-items:center;justify-content:space-between;gap:18px;transition:left .2s ease,transform .2s ease}
body.sidebar-collapsed .dossier-sticky-bar{left:calc(var(--sidebar-collapsed) + 24px)}
body:has(.dossier-sticky-bar) .page{padding-bottom:126px}
.dossier-sticky-context{display:flex;align-items:center;gap:11px;min-width:0}
.dossier-sticky-context>div{display:flex;flex-direction:column;min-width:0}
.dossier-sticky-context b{font-size:12px;color:#20332f;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.dossier-sticky-context small{font-size:11px;color:#667a76;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:520px;margin-top:2px}
.dossier-sticky-dot{width:10px;height:10px;border-radius:50%;background:#21a979;box-shadow:0 0 0 6px rgba(33,169,121,.12);flex:0 0 auto}
.dossier-sticky-actions{display:flex;align-items:center;justify-content:flex-end;gap:9px;flex:0 0 auto}
.sticky-inline-form{margin:0;display:flex}
.dossier-sticky-actions .btn{min-height:44px;white-space:nowrap}
.sticky-save-btn[hidden]{display:none!important}

/* Keep all grids/cards shrinkable, preventing whole-page horizontal overflow */
.main,.page,.grid-main,.dashboard-grid,.account-grid,.admin-client-grid,.settings-grid,.card,.card-pad,.table-wrap{min-width:0;max-width:100%}
.table-wrap{display:block;width:100%;max-width:100%;overflow-x:auto;overflow-y:hidden;-webkit-overflow-scrolling:touch;overscroll-behavior-inline:contain;scrollbar-width:thin}
.table{width:100%;max-width:none}
.table-wrap>.table{min-width:680px}
.table-wrap:after{content:"";display:block;width:1px;height:1px}

/* Mobile drawer navigation + top toolbar */
@media(max-width:720px){
  .sidebar{display:block!important;position:fixed!important;z-index:1300!important;inset:0 auto 0 0!important;width:min(88vw,320px)!important;padding:16px 14px 20px!important;transform:translateX(-104%);transition:transform .22s ease;overflow-y:auto;overflow-x:hidden;box-shadow:22px 0 60px rgba(3,31,28,.28)}
  body.mobile-menu-open .sidebar{transform:translateX(0)}
  body.sidebar-collapsed .sidebar{width:min(88vw,320px)!important}
  body.sidebar-collapsed .brand-copy,body.sidebar-collapsed .nav .txt,body.sidebar-collapsed .side-foot .txt{display:flex}
  body.sidebar-collapsed .nav a{justify-content:flex-start;padding:0 12px}
  .sidebar .brand{position:relative;padding-right:48px}
  .sidebar-mobile-close{display:grid;place-items:center;position:absolute;right:0;top:0;width:38px;height:38px;border:1px solid rgba(255,255,255,.12);border-radius:11px;background:rgba(255,255,255,.08);color:#fff;font-size:25px;line-height:1;cursor:pointer}
  .sidebar-backdrop{display:block;position:fixed;z-index:1290;inset:0;border:0;background:rgba(4,30,27,.48);backdrop-filter:blur(3px);opacity:0;pointer-events:none;transition:opacity .2s ease}
  body.mobile-menu-open .sidebar-backdrop{opacity:1;pointer-events:auto}
  body.mobile-menu-open{overflow:hidden}
  .main,body.sidebar-collapsed .main{margin-left:0!important;width:100%!important}

  .topbar{height:auto!important;min-height:0!important;padding:10px 12px!important;display:grid!important;grid-template-columns:1fr!important;gap:9px!important;align-items:stretch!important}
  .top-left{width:100%;display:grid;grid-template-columns:40px minmax(0,1fr);gap:10px;align-items:center}
  .top-left .icon-btn{width:40px;height:40px;border-radius:12px}
  .top-title{font-size:13px!important;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .top-sub{font-size:10px!important;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .topbar-tools{width:100%!important;display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;gap:8px!important;align-items:center!important}
  .topbar-pills{display:flex!important;min-width:0;gap:7px!important;flex-wrap:nowrap!important;overflow:hidden}
  .credit-pill{min-height:39px!important;padding:5px 9px 5px 6px!important;border-radius:12px!important;flex:0 0 auto}
  .credit-pill .ico{width:28px!important;height:28px!important;border-radius:9px!important}
  .credit-pill b{font-size:15px!important}.credit-pill small{font-size:9px!important}
  .subscription-pill{min-height:39px!important;padding:0 10px!important;border-radius:12px!important;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:0}
  .topbar-usercard{min-height:39px!important;min-width:0!important;width:auto!important;padding:4px 7px 4px 4px!important;border-radius:12px!important}
  .topbar-usercard .avatar{width:30px!important;height:30px!important;border-radius:10px!important}
  .topbar-usercard .meta{display:none!important}
  .topbar-logout{display:none!important}

  .page{padding:15px 12px 34px!important;overflow-x:hidden}
  body:has(.dossier-sticky-bar) .page{padding-bottom:118px!important}
  .page-head{gap:12px}.page-head .toolbar{width:100%;min-width:0}.page-head h1{font-size:23px!important}
  .toolbar{max-width:100%;min-width:0}
  .toolbar input,.toolbar select{min-width:0!important;width:100%!important;flex:1 1 150px}

  .dossier-sticky-bar{left:8px!important;right:8px!important;bottom:max(8px,env(safe-area-inset-bottom));min-height:0;padding:9px;border-radius:16px;gap:8px}
  .dossier-sticky-context{flex:1 1 auto;min-width:0;padding-left:4px}
  .dossier-sticky-context small{max-width:32vw;font-size:9px}
  .dossier-sticky-context b{font-size:10px}
  .dossier-sticky-dot{width:8px;height:8px;box-shadow:0 0 0 4px rgba(33,169,121,.12)}
  .dossier-sticky-actions{gap:6px;flex:0 0 auto}
  .dossier-sticky-actions .btn{min-height:42px;padding:9px 11px;font-size:11px;border-radius:11px}
  .sticky-save-btn{font-size:0!important;width:42px;padding:0!important}
  .sticky-save-btn:after{content:"✓";font-size:17px}

  .table-wrap{margin-left:0;margin-right:0;border-radius:0;position:relative}
  .table-wrap>.table{min-width:620px}
  .table th,.table td{padding:11px 12px!important;font-size:11px}
  .table th{font-size:9px!important}
  .card>.table-wrap{width:100%}
  .dashboard-grid,.grid-main{min-width:0!important;overflow:visible}
}

@media(max-width:480px){
  .subscription-pill{font-size:9px!important;padding:0 8px!important}
  .subscription-pill .dot{width:6px;height:6px;box-shadow:none}
  .credit-pill .meta small{display:none}
  .credit-pill{gap:5px!important}
  .dossier-sticky-context{display:none}
  .dossier-sticky-actions{width:100%;display:grid;grid-template-columns:auto minmax(0,1fr)}
  .dossier-sticky-actions .sticky-inline-form{width:100%}
  .dossier-sticky-actions .sticky-inline-form .btn,.dossier-sticky-actions>a.btn,.dossier-sticky-actions>button[data-sticky-primary]{width:100%}
  .dossier-sticky-actions .btn[data-sticky-primary]{grid-column:2}
  .sticky-save-btn[hidden]+.sticky-inline-form,.sticky-save-btn[hidden]+a,.sticky-save-btn[hidden]+button[data-sticky-primary]{grid-column:1/-1}
  .table-wrap>.table{min-width:580px}
}

/* ==== v1.4.15 palette premium + branding PDF + mobile table details ==== */
:root{
  --bg:#f5f6fa;--panel:#fff;--panel2:#f8f9fc;--text:#1b2436;--muted:#6f7889;--line:#e1e5ed;
  --primary:#425fc0;--primary-dark:#334b9d;--primary-soft:#edf1ff;--nav:#172033;--nav2:#202b42;
  --success:#24845f;--success-soft:#eaf7f0;--warning:#b7791f;--warning-soft:#fff6e7;--danger:#d94a5a;--danger-soft:#fff0f2;
}
body{background:var(--bg);color:var(--text)}
.client-body,.admin-body{--nav:#172033;--nav2:#202b42;--primary:#425fc0;--primary-dark:#334b9d;--primary-soft:#edf1ff}
.client-body .sidebar,.admin-body .sidebar{background:linear-gradient(180deg,#172033 0%,#202b42 100%)}
.brand-mark,.client-body .brand-mark,.admin-body .brand-mark{background:#fff;color:#3d56ad;box-shadow:0 8px 24px rgba(9,18,42,.16)}
.nav a.active,.admin-body .nav a.active,.client-body .nav a.active{background:linear-gradient(90deg,rgba(73,96,184,.95),rgba(59,78,147,.72));box-shadow:inset 3px 0 0 #dfe5ff,0 8px 18px rgba(15,24,50,.16)}
.nav a:hover{background:rgba(255,255,255,.07)}
.eyebrow,.admin-body .eyebrow{color:#5669aa}
.btn.primary{background:linear-gradient(135deg,#425fc0,#526ed0);border-color:#425fc0;box-shadow:0 10px 22px rgba(66,95,192,.18)}
.btn.primary:hover{background:linear-gradient(135deg,#334b9d,#425fc0);border-color:#334b9d}
.btn.soft{background:#f0f3fc;border-color:#dce3f8;color:#38519d}
.btn.soft:hover{background:#e7ecfa;border-color:#cfd8f2;color:#2f468e}
.btn.light{color:#25345f}.btn.light:hover{background:#f5f7fc}
.section-icon,.feature-icon{background:linear-gradient(145deg,#e8edff,#f5f7ff);color:#425fc0}
.segmented{background:#f2f4f9;border-color:#e2e6ef}.segmented button.active{color:#425fc0}
.workspace-hero{border-color:#e2e6ef;background:linear-gradient(135deg,#fff,#fafbfe);box-shadow:0 16px 40px rgba(32,43,72,.055)}
.welcome-banner,.admin-hero{background:linear-gradient(135deg,#1e2b4a,#354d98 68%,#546bc3);box-shadow:0 20px 44px rgba(29,42,79,.20)}
.welcome-banner .eyebrow,.admin-hero .eyebrow{color:#d5ddff}.welcome-banner p,.admin-hero p{color:#e2e6f5}
.stat.accent{background:linear-gradient(145deg,#f3f5fc,#fff);border-color:#e0e5f1}.stat-icon{background:#e8edff;color:#425fc0}
.balance-card{background:linear-gradient(135deg,#24345f,#425fc0);box-shadow:0 18px 42px rgba(48,67,135,.20)}
.balance-card span,.balance-card small{color:#dce3ff}
.price-card.featured{border-color:#9eabe0;box-shadow:0 18px 42px rgba(66,95,192,.12)}
.price-badge{background:#edf1ff;color:#3d56ad}
.credit-pill{background:linear-gradient(180deg,#f8f9fd,#f0f3fb);border-color:#dfe5f3;box-shadow:0 8px 18px rgba(45,58,100,.05)}
.credit-pill .ico{background:#e8edff;color:#425fc0}.credit-pill b{color:#334b9d}
.topbar-usercard .avatar{background:linear-gradient(135deg,#e9edfb,#dfe5f7);color:#354d98}
.subscription-pill{border-color:#e0e5ee}.subscription-pill.active{background:#eef8f3;color:#247556;border-color:#d4eadf}
.switch-row input[type=checkbox]:checked,.admin-body .switch-row input[type=checkbox]:checked{background:#425fc0}
.validation-ready-action{background:linear-gradient(135deg,#425fc0,#526ed0)!important;border-color:#425fc0!important;box-shadow:0 12px 24px rgba(66,95,192,.16)!important}
.generation-step-badge{background:#edf1ff;color:#425fc0}
.analysis-required-card .eyebrow{color:#425fc0}.btn.soft .analysis-btn-spinner{border-color:rgba(66,95,192,.18);border-top-color:#425fc0}
.credit-required-icon{background:linear-gradient(135deg,#354d98,#536bc4);box-shadow:0 12px 24px rgba(66,95,192,.2)}
.credit-required-foot b,.aside-credit-gate>b{color:#3b559f}.aside-credit-gate{background:#f6f7fc;border-color:#e0e5f1}
.gift-preset{border-color:#dce3f8;color:#3e57a6}.gift-preset:hover{background:#425fc0;color:#fff;border-color:#425fc0;box-shadow:0 10px 20px rgba(66,95,192,.15)}
.sort-pills a:hover,.sort-pills a.active{color:#425fc0}

/* Landing: neutral, navy and indigo instead of omnipresent teal */
.marketing-body{background:radial-gradient(circle at 82% 7%,rgba(96,116,198,.10),transparent 28%),radial-gradient(circle at 10% 22%,rgba(218,170,93,.06),transparent 22%),#fbfbfd;color:#1d2536}
.public-nav{border-bottom-color:#e7e9ef;background:rgba(255,255,255,.94)}
.public-brand .brand-mark{background:linear-gradient(135deg,#273967,#5069c1);color:#fff}
.public-nav nav a{color:#5e6677}.public-nav nav a:hover{color:#425fc0}
.hero-kicker,.section-eyebrow{color:#5669aa}
.hero-copy>p{color:#667083}.trust-row{color:#626c7d}.trust-row svg{stroke:#425fc0}
.hero-shot,.gallery-card,.marketing-metrics article{border-color:#e2e5ed;box-shadow:0 14px 34px rgba(37,49,83,.06)}
.floating-pill{border-color:#e0e5ef;color:#3d4b71;box-shadow:0 12px 30px rgba(31,43,74,.10)}
.logo-strip{border-color:#e7e9ef;color:#747b8a}
.feature-grid article{box-shadow:0 14px 34px rgba(37,49,83,.04)}.feature-grid article:hover{border-color:#d5dbef}
.workflow-band{background:linear-gradient(120deg,#1e2b4a,#354d98);box-shadow:0 18px 42px rgba(29,42,79,.18)}
.faq-list details{border-color:#e4e7ee}.faq-list details[open]{border-color:#d6dcef;box-shadow:0 10px 24px rgba(37,49,83,.045)}
.final-cta-premium{background:linear-gradient(135deg,#1c2947,#425fc0);box-shadow:0 22px 50px rgba(31,45,84,.22)}.final-cta-premium p{color:#e1e6f8}
.auth-side{background:linear-gradient(145deg,#1d2947,#354d98)!important}.auth-side-copy p,.auth-side-copy li{color:#dce2f4!important}.auth-foot a{color:#425fc0}

/* Maps keep status colors, but controls/parcel use the application accent */
.sr-map-tabs button:hover,.sr-map-actions button:hover{background:#f0f3fc;color:#425fc0}.sr-map-tabs button.active{background:#425fc0;box-shadow:0 6px 14px rgba(66,95,192,.20)}
.leaflet-control-zoom a{color:#425fc0!important}.sr-map-empty>span{color:#425fc0}

/* Report branding upload */
.report-branding-box{display:grid;grid-template-columns:128px minmax(0,1fr);gap:16px;align-items:center;margin:0 0 18px;padding:15px;border:1px solid #e1e5ef;border-radius:16px;background:linear-gradient(145deg,#fafbfe,#f5f7fc)}
.report-logo-preview{height:88px;border:1px dashed #cfd6e5;border-radius:13px;background:#fff;display:grid;place-items:center;overflow:hidden;color:#9aa3b5;font-size:12px;font-weight:900;letter-spacing:.12em}
.report-logo-preview img{display:block;max-width:100%;max-height:100%;object-fit:contain;padding:9px}
.report-logo-copy{display:flex;flex-direction:column;min-width:0}.report-logo-copy>b{font-size:13px}.report-logo-copy>small{margin:4px 0 8px;color:var(--muted);font-size:11px;line-height:1.5}.report-logo-copy input[type=file]{margin:0;padding:9px;background:#fff}
.report-logo-remove{display:flex;align-items:center;gap:8px;margin:9px 0 0;font-size:11px;font-weight:650;color:#7a5660}.report-logo-remove input{width:16px;height:16px;margin:0;padding:0}

/* Mobile tables: compact row, tap to reveal every column */
@media(max-width:720px){
  .table-wrap.mobile-expand-wrap{overflow:visible!important}
  .mobile-expand-table{display:block!important;min-width:0!important;width:100%!important;border-collapse:separate!important}
  .mobile-expand-table thead{display:none!important}
  .mobile-expand-table tbody{display:flex!important;flex-direction:column;gap:9px;width:100%}
  .mobile-expand-table .mobile-expand-row{display:block!important;position:relative;width:100%;padding:12px 40px 12px 13px;border:1px solid #e1e5ee;border-radius:14px;background:#fff;box-shadow:0 5px 16px rgba(27,36,59,.045);cursor:pointer;outline:none}
  .mobile-expand-table .mobile-expand-row:after{content:"⌄";position:absolute;right:13px;top:15px;width:22px;height:22px;border-radius:8px;background:#f0f3fb;color:#425fc0;display:grid;place-items:center;font-size:14px;font-weight:900;transition:transform .16s ease}
  .mobile-expand-table .mobile-expand-row.is-expanded:after{transform:rotate(180deg)}
  .mobile-expand-table .mobile-expand-row:focus-visible{box-shadow:0 0 0 3px rgba(66,95,192,.16)}
  .mobile-expand-table .mobile-expand-row td{display:none!important;width:100%!important;min-width:0!important;max-width:100%!important;padding:0!important;border:0!important;background:transparent!important;white-space:normal!important;overflow-wrap:anywhere}
  .mobile-expand-table .mobile-expand-row td:nth-child(1),.mobile-expand-table .mobile-expand-row td:nth-child(2){display:block!important}
  .mobile-expand-table .mobile-expand-row td:nth-child(1){font-size:12px!important;font-weight:800;color:#202a3d;padding-right:4px!important}
  .mobile-expand-table .mobile-expand-row td:nth-child(2){font-size:10px!important;color:#70798a;margin-top:4px}
  .mobile-expand-table .mobile-expand-row:not(.is-expanded) td:nth-child(-n+2):before{display:none!important}
  .mobile-expand-table .mobile-expand-row.is-expanded{padding-top:13px;padding-bottom:13px}
  .mobile-expand-table .mobile-expand-row.is-expanded td{display:grid!important;grid-template-columns:minmax(90px,34%) minmax(0,1fr);gap:10px;align-items:start;padding:9px 0!important;border-top:1px solid #edf0f5!important;font-size:11px!important;font-weight:500;color:#30394b}
  .mobile-expand-table .mobile-expand-row.is-expanded td:first-child{border-top:0!important;padding-top:2px!important}
  .mobile-expand-table .mobile-expand-row.is-expanded td:before{content:attr(data-mobile-label);font-size:9px;font-weight:850;text-transform:uppercase;letter-spacing:.045em;color:#8a93a3;line-height:1.4}
  .mobile-expand-table .mobile-expand-row.is-expanded td .btn{width:fit-content;max-width:100%}
  .mobile-expand-table .mobile-empty-row{display:block!important;border:0;background:transparent;box-shadow:none;padding:20px}.mobile-expand-table .mobile-empty-row td{display:block!important}
  .report-branding-box{grid-template-columns:1fr}.report-logo-preview{height:105px}.report-logo-copy input[type=file]{font-size:11px}
}
:root{--sr-teal:#425fc0;--sr-teal-dark:#334b9d;--sr-teal-deep:#1e2b4a;--sr-teal-soft:#edf1ff;--sr-mint:#e8edff}

/* ==== v1.4.16 FacilErp branding + visuals integration ==== */
.brand-logo{display:block;width:auto;height:34px;max-width:180px}
.public-brand-logo,.brand.brand-rich{display:flex;align-items:center;gap:14px}
.public-brand-logo>span,.brand.brand-rich .brand-copy{display:flex;flex-direction:column}
.public-logo{height:38px;max-width:200px}
.footer-logo{height:32px;max-width:170px}
.brand.brand-rich{height:auto;min-height:58px;padding:2px 8px 14px}
.brand-mark-icon{display:block;width:42px;height:42px;flex:0 0 auto;filter:drop-shadow(0 10px 18px rgba(20,31,59,.18))}
.sidebar .brand-copy b{font-size:18px;letter-spacing:-.02em}
.sidebar .brand-copy small{font-size:10px;letter-spacing:.12em}
.public-footer .public-brand-logo{gap:12px}
.public-footer .public-brand-logo b{font-size:18px}
.public-nav .public-brand-logo b,.auth-side .public-brand-logo b{font-size:18px;letter-spacing:-.02em}
.auth-side .public-logo{height:40px;max-width:208px}
.hero-shot img,.gallery-card img,.dashboard-showcase img,.admin-dashboard-visual img,.visual-story-frame img{display:block;width:100%;height:auto;border-radius:18px}
.visual-story-section{padding-top:34px}
.visual-story-frame{padding:18px;background:linear-gradient(180deg,#ffffff,#f7f9fd);border:1px solid #e4e8f0;box-shadow:0 18px 42px rgba(31,46,90,.08)}
.visual-story-frame.wide img{border-radius:16px}
.admin-hero-rich{display:flex;align-items:center;justify-content:space-between;gap:20px;flex-wrap:wrap}
.admin-hero-rich .info-pills{margin-top:16px}
.admin-hero-actions{display:flex;align-items:center}
.admin-dashboard-visual .media-frame,.dashboard-showcase .media-frame{background:linear-gradient(180deg,#fff,#f8faff);border:1px solid #e4e8f0}
.media-frame{overflow:hidden}
.logo-strip span{background:#fff;border:1px solid #e2e6ef;color:#5f6880}
.final-cta-premium{background:linear-gradient(135deg,#243563,#435db5)}
.workflow-band{background:linear-gradient(120deg,#243563,#435db5)}
.info-pills span{background:#eef2ff;border-color:#dde5fb;color:#354d98}
.feature-icon{background:linear-gradient(145deg,#edf2ff,#f8fbff)}
.brand.brand-rich .sidebar-mobile-close{margin-left:auto}
@media (max-width:960px){
  .public-logo{height:34px;max-width:180px}
  .brand-logo{height:30px}
}
@media (max-width:760px){
  .public-brand-logo{gap:10px}
  .public-logo{height:30px;max-width:156px}
  .footer-logo{height:28px}
  .visual-story-frame{padding:10px}
  .admin-hero-rich{align-items:flex-start}
}
@media (max-width:480px){
  .brand-mark-icon{width:36px;height:36px}
  .public-logo{height:28px;max-width:140px}
  .auth-side .public-logo{height:34px;max-width:170px}
}

/* ==== FacilErp 1.4.18 — Agents terrain + complétude DDT ==== */
.field-body{--nav:#182746;--nav2:#22365f;--primary:#3f5fbd;--primary-dark:#2f478f;--primary-soft:#eef2ff;background:#f4f6fa}
.field-body .sidebar{background:linear-gradient(180deg,#172541,#21365e 100%)}
.field-body .nav a.active{background:#405db2;color:#fff;box-shadow:inset 3px 0 0 #9fb5ff}
.field-body .brand-mark-icon{filter:drop-shadow(0 8px 16px rgba(0,0,0,.22))}
.field-mobile-head{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;margin-bottom:20px;padding:22px 24px;border:1px solid #e1e6f0;background:linear-gradient(135deg,#fff,#f5f7ff);border-radius:20px;box-shadow:0 12px 32px rgba(30,45,84,.06)}
.field-mobile-head h1{font-size:30px;margin:4px 0 3px}.field-mobile-head p{margin:0;color:#6a7487}.field-agent-badge{display:inline-flex;align-items:center;padding:8px 11px;border-radius:999px;background:#e8edff;color:#344f9e;font-size:11px;font-weight:850;white-space:nowrap}
.field-mission-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:15px}.field-mission-card{display:block;background:#fff;border:1px solid #e0e5ef;border-radius:18px;padding:18px;box-shadow:0 10px 28px rgba(32,47,82,.055);transition:.16s ease}.field-mission-card:hover{transform:translateY(-2px);border-color:#cbd5f1;box-shadow:0 15px 34px rgba(32,47,82,.09)}.field-mission-card-top{display:flex;align-items:center;justify-content:space-between;gap:10px}.field-mission-card-top>b{font-size:12px;color:#536077}.field-mission-card h2{margin:16px 0 5px;font-size:20px;letter-spacing:-.03em}.field-mission-card p{margin:0;color:#515f72;line-height:1.55}.field-mission-card p small{color:#8992a1}.field-open{display:block;margin-top:16px;color:#3c58a6;font-weight:850;font-size:12px}
.mission-status{display:inline-flex;align-items:center;padding:6px 9px;border-radius:999px;font-size:10px;font-weight:850;background:#eef1f5;color:#606c7c;white-space:nowrap}.mission-status.planned{background:#eef2ff;color:#4058a1}.mission-status.en_route{background:#eef6ff;color:#2d68a3}.mission-status.onsite{background:#fff4dc;color:#996b16}.mission-status.review{background:#fff0e8;color:#a45428}.mission-status.completed{background:#e9f7ef;color:#267252}.mission-status.cancelled{background:#f4f4f5;color:#72727d}
.mission-create-card{margin-bottom:18px}.field-mission-hero{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;padding:22px 24px;background:linear-gradient(135deg,#1f3156,#3b57a3);border-radius:20px;color:#fff;margin-bottom:12px;box-shadow:0 16px 38px rgba(28,44,80,.17)}.field-mission-hero .eyebrow{color:#bdcaff}.field-mission-hero h1{font-size:30px;margin:4px 0}.field-mission-hero p{margin:0;color:#dce4f7}.field-mission-hero .mission-status{margin-top:3px;background:rgba(255,255,255,.14);border:1px solid rgba(255,255,255,.18);color:#fff}
.field-action-strip{display:flex;gap:9px;flex-wrap:wrap;margin:0 0 16px}.field-layout{display:grid;grid-template-columns:minmax(0,1.45fr) minmax(270px,.55fr);gap:16px}.field-layout main{display:flex;flex-direction:column;gap:16px}.field-status-buttons{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin:0 0 18px}.field-status-btn{min-height:48px;border:1px solid #dfe5ef;background:#fff;border-radius:12px;padding:8px 10px;color:#4d5b70;font-weight:800;cursor:pointer}.field-status-btn:hover,.field-status-btn.active{border-color:#8098dd;background:#eef2ff;color:#324c99}.field-checklist{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-bottom:18px}.field-checklist label{display:flex;align-items:center;gap:9px;border:1px solid #e3e7ef;background:#fafbfc;border-radius:12px;padding:11px 12px;margin:0;font-weight:700;color:#49566a}.field-checklist input{width:18px;height:18px}.field-info-card{position:sticky;top:96px}.field-info-card>b{font-size:16px}.field-info-card dl{margin:16px 0 0}.field-info-card dt{font-size:10px;color:#8a94a4;text-transform:uppercase;letter-spacing:.07em;font-weight:850;margin-top:14px}.field-info-card dd{margin:3px 0 0;color:#344055;line-height:1.55}.field-info-card dd a{color:#3b58ad;font-weight:800}.field-photo-upload{display:flex;gap:10px;align-items:end;flex-wrap:wrap}.field-photo-upload input[type=file]{max-width:100%}.field-photo-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin-top:15px}.field-photo-grid a{display:block;border:1px solid #e2e6ed;background:#fff;border-radius:13px;overflow:hidden}.field-photo-grid img{display:block;width:100%;aspect-ratio:4/3;object-fit:cover}.field-photo-grid small{display:block;padding:7px 9px;color:#707b8d;font-size:10px}
.ddt-card{overflow:hidden}.ddt-head{display:flex;align-items:flex-start;justify-content:space-between;gap:24px;margin-bottom:16px}.ddt-head h2{margin:4px 0 6px;font-size:24px}.ddt-head p{margin:0;max-width:850px;color:#687386;line-height:1.62}.ddt-score{min-width:160px;padding:14px 16px;border:1px solid #dfe5f1;border-radius:15px;background:linear-gradient(145deg,#f8faff,#fff);text-align:right}.ddt-score b{display:block;font-size:30px;line-height:1;color:#344e9e}.ddt-score span{display:block;font-size:11px;font-weight:800;color:#56647a;margin-top:4px}.ddt-score small{display:block;margin-top:6px;color:#8993a3;font-size:10px}.ddt-list{border-top:1px solid #e7eaf0}.ddt-item{border-bottom:1px solid #e7eaf0}.ddt-item summary{list-style:none;cursor:pointer;display:flex;align-items:center;justify-content:space-between;gap:14px;padding:14px 4px}.ddt-item summary::-webkit-details-marker{display:none}.ddt-item summary>div{display:flex;flex-direction:column}.ddt-item summary b{font-size:13px}.ddt-item summary small{margin-top:2px;color:#7a8495}.ddt-status{padding:5px 9px;border-radius:999px;font-size:10px;font-weight:850;background:#eef1f5;color:#637083}.ddt-status.present{background:#e8f6ef;color:#267254}.ddt-status.missing{background:#fff0ec;color:#a84a2f}.ddt-status.na{background:#f1f2f5;color:#6e7480}.ddt-status.to_check{background:#eef2ff;color:#3f57a1}.ddt-item-body{padding:2px 4px 15px}.ddt-file{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-top:10px}.ddt-save{display:flex;justify-content:flex-end;padding-top:16px}.ddt-upload-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin-top:16px;padding-top:16px;border-top:1px solid #e7eaf0}.ddt-upload{display:flex;align-items:end;gap:8px;padding:10px;border:1px solid #e4e8ef;border-radius:12px;background:#fafbfc;min-width:0}.ddt-upload label{min-width:0;flex:1;margin:0}.ddt-upload label>span{display:block;font-size:10px;font-weight:850;color:#657186;margin-bottom:5px}.ddt-upload input[type=file]{width:100%;font-size:10px}
@media(max-width:1020px){.field-layout{grid-template-columns:1fr}.field-info-card{position:static}.ddt-upload-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:760px){
 .field-body .page{padding:14px 12px 28px}.field-mobile-head{padding:17px 16px;border-radius:16px}.field-mobile-head h1{font-size:25px}.field-agent-badge{display:none}.field-mission-list{grid-template-columns:1fr;gap:10px}.field-mission-card{padding:16px;border-radius:15px}.field-mission-card h2{font-size:18px}.field-mission-hero{padding:17px 16px;border-radius:16px;flex-direction:column}.field-mission-hero h1{font-size:25px}.field-action-strip .btn{flex:1}.field-status-buttons{grid-template-columns:1fr 1fr}.field-status-btn{min-height:54px}.field-checklist{grid-template-columns:1fr}.field-photo-grid{grid-template-columns:1fr 1fr}.field-photo-upload{align-items:stretch;flex-direction:column}.field-photo-upload .btn{width:100%}.ddt-head{flex-direction:column}.ddt-score{width:100%;text-align:left;display:grid;grid-template-columns:auto 1fr;gap:3px 10px;align-items:center}.ddt-score b{grid-row:1/3;font-size:36px}.ddt-score small{margin:0}.ddt-item summary{align-items:flex-start}.ddt-item summary small{max-width:220px}.ddt-item-body .grid-3{grid-template-columns:1fr}.ddt-upload-grid{grid-template-columns:1fr}.ddt-upload{align-items:stretch;flex-direction:column}.ddt-upload .btn{width:100%}
}
@media(max-width:420px){.field-status-buttons{grid-template-columns:1fr}.field-photo-grid{grid-template-columns:1fr 1fr}.mission-status{font-size:9px}.ddt-status{font-size:9px}}
@media(max-width:760px){.field-body .topbar-logout{display:flex!important;min-height:39px!important;padding:0 10px!important}.field-body .topbar-tools{grid-template-columns:minmax(0,1fr) auto!important}.field-body .topbar-usercard{display:flex!important}}

/* ==== v1.4.19 Rapport V2 ==== */
.report-v2-preview{display:flex;align-items:flex-start;gap:12px;margin-top:14px;padding:13px 14px;border:1px solid #dfe5f2;border-radius:14px;background:linear-gradient(135deg,#f8faff,#f2f5fc)}
.report-v2-preview>div{display:flex;flex-direction:column;gap:3px;min-width:0}.report-v2-preview b{font-size:12px;color:#26345d}.report-v2-preview small{font-size:11px;color:#69758b;line-height:1.45}.report-v2-preview .badge{flex:0 0 auto}
@media(max-width:560px){.report-v2-preview{flex-direction:column;gap:8px}}

/* ==== v1.4.20 parcours express + rapport automatique ==== */
.quick-start-card{display:flex;align-items:flex-start;gap:18px;background:linear-gradient(135deg,#f8faff,#fff);border-color:#dfe5f4}
.quick-start-icon{width:48px;height:48px;border-radius:15px;display:grid;place-items:center;flex:0 0 auto;background:linear-gradient(135deg,#273967,#5069c1);color:#fff;font-size:22px;box-shadow:0 12px 24px rgba(53,77,152,.18)}
.quick-start-card h2{margin:5px 0 8px;font-size:24px;letter-spacing:-.03em}.quick-start-card p{margin:0;color:#697386;line-height:1.65;max-width:900px}
.quick-start-pills{display:flex;flex-wrap:wrap;gap:8px;margin-top:15px}.quick-start-pills span{padding:7px 10px;border-radius:999px;background:#eef2ff;color:#354d98;border:1px solid #dce4fb;font-size:11px;font-weight:800}
.quick-start-footer{position:sticky;bottom:16px;z-index:16;padding:16px 18px;border:1px solid #dfe5f2;border-radius:18px;background:rgba(255,255,255,.96);backdrop-filter:blur(14px);box-shadow:0 18px 48px rgba(27,39,77,.12)}
.new-analysis-overlay{position:fixed;inset:0;z-index:120;background:rgba(17,26,50,.44);backdrop-filter:blur(6px);display:grid;place-items:center;padding:20px}.new-analysis-overlay[hidden]{display:none!important}.new-analysis-progress-card{width:min(520px,100%);display:flex;gap:18px;align-items:center;background:#fff;border-radius:22px;padding:26px;border:1px solid #e2e7f1;box-shadow:0 24px 70px rgba(15,25,55,.22)}.new-analysis-progress-card h3{margin:4px 0 6px;font-size:21px}.new-analysis-progress-card p{margin:0;color:#6b7485;line-height:1.55}
.auto-report-ready{display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:18px;align-items:center;margin:18px 0;padding:20px;border:1px solid #d9e1f5;border-radius:20px;background:linear-gradient(135deg,#f4f7ff,#fff);box-shadow:0 12px 34px rgba(42,57,106,.07)}
.auto-report-ready-icon{width:58px;height:58px;border-radius:16px;display:grid;place-items:center;background:#22335f;color:#fff;font-weight:900;letter-spacing:.03em;box-shadow:0 12px 24px rgba(34,51,95,.16)}
.auto-report-ready-copy h2{margin:4px 0 7px;font-size:22px;letter-spacing:-.03em}.auto-report-ready-copy p{margin:0;color:#697386;line-height:1.58}.auto-report-meta{display:flex;flex-wrap:wrap;gap:8px;margin-top:11px}.auto-report-meta span{font-size:10px;font-weight:750;color:#6b7381;background:#fff;border:1px solid #e2e6ef;border-radius:999px;padding:5px 8px}.auto-report-ready-actions{display:flex;flex-direction:column;gap:8px;min-width:235px}
.human-info-anchor{position:relative;top:-100px}.human-info-head{margin:-2px -2px 20px;padding:18px 20px;border-radius:16px;background:linear-gradient(135deg,#f7f9ff,#fdfdff);border:1px solid #e1e6f3}.human-info-head h2{margin:4px 0 6px;font-size:22px;letter-spacing:-.03em}.human-info-head p{margin:0;color:#697386;line-height:1.55}
@media(max-width:900px){.auto-report-ready{grid-template-columns:auto 1fr}.auto-report-ready-actions{grid-column:1/-1;flex-direction:row;min-width:0}.auto-report-ready-actions .btn{flex:1}.quick-start-footer{bottom:10px}}
@media(max-width:620px){.quick-start-card{flex-direction:column}.quick-start-footer{position:relative;bottom:auto;flex-direction:column;align-items:stretch}.quick-start-footer .btn{width:100%}.auto-report-ready{grid-template-columns:1fr}.auto-report-ready-icon{width:48px;height:48px}.auto-report-ready-actions{flex-direction:column}.auto-report-ready-actions .btn{width:100%}.human-info-head{padding:15px}.human-info-head h2{font-size:19px}}


/* ==== v1.4.20.1 build report separate request ==== */
.auto-report-building{display:flex;align-items:center;gap:18px;padding:20px 22px;margin:16px 0;border:1px solid #dfe5f4;border-radius:18px;background:linear-gradient(135deg,#f8faff,#eef3ff);box-shadow:0 12px 28px rgba(45,67,130,.07)}
.auto-report-building>div{flex:1}.auto-report-building h2{margin:4px 0 5px;font-size:20px}.auto-report-building p{margin:0;color:#6b7487}.auto-report-building form{margin-left:auto}.auto-report-building .analysis-btn-spinner{width:28px;height:28px;border-width:3px;flex:0 0 auto}
@media(max-width:720px){.auto-report-building{align-items:flex-start;flex-direction:column}.auto-report-building form,.auto-report-building .btn{width:100%}}

/* ==== v1.4.24 — automatisation PPR ==== */
.ppr-detail-title{display:flex;align-items:center;justify-content:space-between;gap:12px}
.ppr-auto-badge{display:inline-flex;align-items:center;gap:6px;padding:5px 9px;border-radius:999px;font-size:11px;font-weight:800;letter-spacing:.02em;white-space:nowrap}
.ppr-auto-badge.complete{background:#e6f6ef;color:#21684e;border:1px solid #ccebdd}
.ppr-auto-badge.partial{background:#fff3da;color:#9a5d13;border:1px solid #f1ddb6}
.ppr-auto-detail{border-color:#d8e4e0;background:linear-gradient(180deg,#fff,#fbfdfc)}
.ppr-auto-summary{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:10px 0 12px}
.ppr-auto-summary>div{padding:11px 12px;border:1px solid #dfe6ef;border-radius:10px;background:#fff;min-width:0}
.ppr-auto-summary>div.wide{grid-column:1/-1}
.ppr-auto-summary small{display:block;color:#788399;font-size:10px;text-transform:uppercase;letter-spacing:.06em;margin-bottom:4px}
.ppr-auto-summary b{display:block;color:#1d2b46;font-size:13px;line-height:1.35;overflow-wrap:anywhere}
.ppr-procedure-list{border:1px solid #e1e6ee;border-radius:10px;overflow:hidden;background:#fff;margin-bottom:12px}
.ppr-procedure-list-title{padding:8px 11px;background:#f5f7fb;color:#5c6880;font-size:10px;font-weight:800;text-transform:uppercase;letter-spacing:.05em}
.ppr-procedure-row{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(150px,.8fr);gap:12px;padding:8px 11px;border-top:1px solid #eef1f5;font-size:11px;color:#36425a}
.ppr-procedure-row span:last-child{text-align:right;color:#68738a}
.ppr-auto-source{display:flex;gap:10px;align-items:flex-start;padding:10px 12px;border-radius:10px;background:#eef8f5;border:1px solid #d4ece4;margin:10px 0 12px}
.ppr-auto-source>span{width:22px;height:22px;border-radius:50%;display:grid;place-items:center;background:#d5f0e7;color:#19705a;font-weight:900;flex:0 0 auto}
.ppr-auto-source b,.ppr-auto-source small{display:block}.ppr-auto-source b{font-size:12px;color:#1f5f50}.ppr-auto-source small{font-size:10px;color:#62786f;margin-top:2px;line-height:1.35}
.ppr-auto-source.unresolved{background:#fff7e8;border-color:#f2dfbb}.ppr-auto-source.unresolved>span{background:#ffe6b7;color:#9c6113}.ppr-auto-source.unresolved b{color:#8e5b1d}.ppr-auto-source.unresolved small{color:#846f54}
.ppr-human-question{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;padding:12px;border-radius:10px;margin:10px 0;background:#f7f9fc;border:1px solid #e2e7ef}
.ppr-human-question.needs-answer{background:#fff8ec;border-color:#f0d7a8}
.ppr-human-question label{margin:0;color:#29364f;font-weight:700}.ppr-human-question label small{display:block;margin-top:5px;font-weight:500;color:#7d8799}
.ppr-human-question select{margin-top:6px}
.ppr-manual-correction{margin-top:10px}.ppr-manual-correction summary{color:#5b6680}.ppr-manual-correction summary span{font-size:10px;text-transform:uppercase;letter-spacing:.06em;color:#98a1b3}
@media(max-width:760px){.ppr-auto-summary,.ppr-human-question{grid-template-columns:1fr}.ppr-auto-summary>div.wide{grid-column:auto}.ppr-procedure-row{grid-template-columns:1fr;gap:3px}.ppr-procedure-row span:last-child{text-align:left}.ppr-detail-title{align-items:flex-start;flex-direction:column}.ppr-auto-badge{align-self:flex-start}}


/* ==== v1.4.25 PPR multi-procédures ==== */
.ppr-procedure-rich{grid-template-columns:minmax(0,1.45fr) minmax(180px,.85fr);align-items:center}
.ppr-procedure-rich>div:first-child{min-width:0}.ppr-procedure-rich b{display:block;color:#22304b;font-size:11px;line-height:1.35}.ppr-procedure-rich small{display:block;margin-top:3px;color:#69758b;font-size:10px;line-height:1.35}
.ppr-procedure-meta{display:flex;align-items:flex-end;flex-direction:column;gap:4px;text-align:right}.ppr-procedure-meta>span{color:#5f6c84;font-size:10px;font-weight:700}
.ppr-scope{display:inline-flex;padding:3px 7px;border-radius:999px;font-size:9px;font-style:normal;font-weight:800;white-space:nowrap}.ppr-scope.parcel{background:#e7f6ef;color:#21684e}.ppr-scope.commune{background:#eef2fb;color:#4b5f91}
@media(max-width:760px){.ppr-procedure-rich{grid-template-columns:1fr}.ppr-procedure-meta{align-items:flex-start;text-align:left}}


/* ==== v1.4.25.1 — nouvelle analyse compacte + formulaires human-only ==== */
.new-analysis-head{margin-bottom:14px}.new-analysis-head h1{margin:3px 0 4px;font-size:28px;letter-spacing:-.035em}.new-analysis-compact{max-width:1180px}.context-first-card{background:linear-gradient(135deg,#fbfcff,#fff);border-color:#e2e7f2}.section-step{width:34px;height:34px;border-radius:11px;display:grid;place-items:center;flex:0 0 auto;background:#edf1ff;color:#354d98;font-weight:900}.context-grid{margin-top:15px}.context-grid label{margin:0}.compact-locator-map .map-card-head{padding:16px 20px 13px}.compact-locator-map .sr-map-shell,.compact-locator-map .sr-map-canvas{height:285px;min-height:285px}.compact-submit-footer{position:relative;bottom:auto;margin-top:0;box-shadow:0 10px 28px rgba(27,39,77,.075)}
.concise-dossier-editor{padding:20px}.concise-editor-head{display:flex;justify-content:space-between;align-items:flex-start;gap:20px;padding-bottom:16px;border-bottom:1px solid #edf0f6}.concise-editor-head h2{margin:4px 0 5px;font-size:22px;letter-spacing:-.03em}.concise-editor-head p{margin:0;color:var(--muted);font-size:12px}.context-summary{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:7px}.context-summary span{padding:7px 10px;border-radius:999px;background:#eef2ff;border:1px solid #dbe3fb;color:#354d98;font-size:10px;font-weight:850;white-space:nowrap}.compact-edit-context{margin:14px 0 0}.missing-context{margin-top:15px}.compact-single-field{display:block;max-width:480px;margin-top:12px}.human-only-detail{background:#fbfcff;border-color:#e2e7f2}.automated-summary{display:flex;align-items:center;gap:11px;margin:13px 0;padding:12px 14px;border:1px solid #d9ebe5;border-radius:12px;background:#f6fbf9}.automated-summary>span{width:30px;height:30px;border-radius:10px;display:grid;place-items:center;background:#e3f5ed;color:#19704f;font-weight:900;flex:0 0 auto}.automated-summary>div{display:flex;flex-direction:column}.automated-summary small{color:var(--muted);margin-top:2px}.concise-risk-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.optional-data,.automated-correction{margin-top:14px}.automated-correction>summary{color:#6a7281}.automated-correction .risk-card{opacity:.92}.ddt-card .automated-summary{margin-top:4px}
@media(max-width:760px){.compact-locator-map .sr-map-shell,.compact-locator-map .sr-map-canvas{height:245px;min-height:245px}.concise-editor-head{flex-direction:column}.context-summary{justify-content:flex-start}.concise-risk-grid{grid-template-columns:1fr}.new-analysis-head h1{font-size:24px}}

/* UI simplification - regulatory attachments and DDT */
.tidy-files-card .inline-disclosure{margin:0}
.file-disclosure>summary{font-weight:800}
.compact-help{margin:0 0 12px;font-size:12px;line-height:1.55}
.compact-file-list{gap:12px}
.compact-file-row{grid-template-columns:minmax(0,1fr) auto;align-items:flex-start;padding:14px;border-radius:12px;background:#fbfcfe}
.file-row-main{min-width:0}
.file-row-meta{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-top:6px}
.file-row-meta small{color:var(--muted)}
.mini-badge{display:inline-flex;align-items:center;padding:4px 8px;border-radius:999px;font-size:10px;font-weight:850;line-height:1}
.mini-badge.success{background:#e8f6ef;color:#267254}
.mini-badge.warning{background:#fff3db;color:#8b5a14}
.mini-badge.neutral{background:#eef2f7;color:#5f6e82}
.compact-upload-inline{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.compact-upload-inline input[type=file]{max-width:280px}
.compact-ddt-card .ddt-head{margin-bottom:10px}
.compact-ddt-card .ddt-head h2{font-size:20px;margin:3px 0 4px}
.compact-ddt-card .ddt-head p{max-width:none;font-size:13px;line-height:1.55}
.compact-ddt-card .ddt-score{padding:12px 14px;border-radius:12px;min-width:140px}
.compact-ddt-card .ddt-score b{font-size:26px}
.compact-ddt-card .ddt-list{border-top:1px solid #e7eaf0}
.compact-ddt-card .ddt-item summary{padding:13px 0}
.compact-ddt-card .ddt-item-body{padding:2px 0 14px}
.ddt-upload-disclosure{margin-top:14px}
.ddt-upload-disclosure>summary{font-weight:800}
.ddt-upload-grid.compact{display:flex;flex-direction:column;gap:10px;margin-top:0;padding-top:0;border-top:0}
.ddt-upload-row{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:12px;border:1px solid #e6eaf0;border-radius:12px;background:#fbfcfe}
.ddt-upload-copy{display:flex;flex-direction:column;min-width:0}
.ddt-upload-copy b{font-size:13px}
.ddt-upload-copy small{color:var(--muted);margin-top:3px}
.ddt-upload.compact{padding:0;border:0;background:transparent;min-width:auto;display:flex;align-items:center;gap:8px}
.ddt-upload.compact input[type=file]{font-size:11px;max-width:290px}
@media(max-width:900px){
  .compact-file-row{grid-template-columns:1fr}
  .compact-upload-inline{align-items:stretch}
  .compact-upload-inline input[type=file]{max-width:none;width:100%}
  .ddt-upload-row{flex-direction:column;align-items:stretch}
  .ddt-upload.compact{flex-direction:column;align-items:stretch}
  .ddt-upload.compact input[type=file]{max-width:none;width:100%}
}

/* ===== Parcours ERP épuré — vérification type ERNMT ===== */
.ernmt-page-head{align-items:flex-end;gap:24px}
.ernmt-steps{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.ernmt-steps span{padding:8px 12px;border:1px solid #e2e8f0;border-radius:999px;background:#fff;color:#7a8597;font-size:11px;font-weight:800}
.ernmt-steps span.active{background:#eef3ff;border-color:#cfdaf8;color:#3552a2}
.ernmt-new-form{max-width:1080px}
.ernmt-search-card{padding:24px}
.ernmt-search-card .segmented{margin-bottom:20px}
.ernmt-map-card{max-height:none}
.ernmt-map-card .sr-map-shell{min-height:260px}
.ernmt-new-footer{border-top:1px solid #edf0f4;padding-top:16px;margin-top:0}
.ernmt-analysis-strip,.ernmt-report-strip{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:14px 16px;margin:0 0 14px;border:1px solid #dde5f2;border-radius:12px;background:#fff}
.ernmt-analysis-strip>div,.ernmt-report-strip>div{display:flex;flex-direction:column;gap:3px}
.ernmt-analysis-strip small,.ernmt-report-strip small{color:var(--muted)}
.ernmt-analysis-done{padding:10px 14px;margin-bottom:14px}
.ernmt-report-strip.ready{border-color:#d7e9df;background:#fbfefc}
.ernmt-confirm-card{padding:24px}
.ernmt-confirm-head{display:flex;justify-content:space-between;gap:20px;margin-bottom:16px}
.ernmt-confirm-head h2{margin:4px 0 5px;font-size:22px;letter-spacing:-.025em}
.ernmt-confirm-head p{margin:0;color:var(--muted);font-size:12px;line-height:1.55;max-width:820px}
.ernmt-property-summary{display:grid;grid-template-columns:1.6fr 1fr;gap:1px;margin:0 0 18px;border:1px solid #e5eaf1;border-radius:10px;overflow:hidden;background:#e5eaf1}
.ernmt-property-summary>div{background:#f8fafc;padding:12px 14px;display:flex;flex-direction:column;gap:3px;min-width:0}
.ernmt-property-summary span{font-size:9px;text-transform:uppercase;letter-spacing:.07em;color:#7b8797;font-weight:850}
.ernmt-property-summary b{font-size:12px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.ernmt-form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px 16px}
.ernmt-form-grid label{margin:0}
.ernmt-personalize{margin-top:16px;background:#fbfcfe}
.ernmt-personalize>summary{font-weight:800}
.ernmt-auto-ok,.ernmt-auto-warning{display:flex;align-items:center;gap:10px;margin-top:14px;padding:10px 12px;border-radius:10px;border:1px solid #dce9e3;background:#f8fcfa}
.ernmt-auto-warning{border-color:#efddb9;background:#fffaf1}
.ernmt-auto-ok>span,.ernmt-auto-warning>span{width:27px;height:27px;border-radius:8px;display:grid;place-items:center;background:#e5f5ed;color:#267254;font-weight:900;flex:0 0 auto}
.ernmt-auto-warning>span{background:#fff0d2;color:#976318}
.ernmt-auto-ok>div,.ernmt-auto-warning>div{display:flex;flex-direction:column}
.ernmt-auto-ok small,.ernmt-auto-warning small{color:var(--muted);margin-top:1px}
.ernmt-save-row{margin-top:16px;padding-top:14px;border-top:1px solid #edf0f4}
.ernmt-tech{margin-top:12px}
.ernmt-missing-files{padding:14px 16px}
.ernmt-missing-files .inline-disclosure{margin:0}
.ernmt-missing-files .compact-file-row{background:#fff}
.ernmt-claim-detail{margin-top:16px}

/* Le DDT reste disponible côté moteur / mission, mais n'encombre plus l'écran de création ERP. */

@media(max-width:900px){
 .ernmt-page-head{align-items:flex-start;flex-direction:column}
 .ernmt-property-summary,.ernmt-form-grid{grid-template-columns:1fr}
 .ernmt-analysis-strip,.ernmt-report-strip{align-items:stretch;flex-direction:column}
 .ernmt-analysis-strip form,.ernmt-analysis-strip .btn,.ernmt-report-strip form,.ernmt-report-strip .btn{width:100%}
}

/* ==== Parcours ERP guidé : une seule action à la fois ==== */
.guided-dossier-head{margin-bottom:14px}
.guided-dossier-head .guided-head-actions{display:none!important}
.guided-legacy-grid{display:none!important}
.ernmt-analysis-strip,.ernmt-analysis-done,.ernmt-report-strip,#credit-required{display:none!important}
.dossier-sticky-bar{display:none!important}
.guided-erp-shell{max-width:1220px;margin:0 auto 26px}
.guided-stepper{display:flex;align-items:center;gap:10px;margin:0 0 14px;padding:13px 16px;border:1px solid #dfe6ef;border-radius:14px;background:#fff;box-shadow:0 8px 28px rgba(15,23,42,.04)}
.guided-stepper>i{height:1px;flex:1;min-width:24px;background:#dfe5ed}
.guided-step{display:flex;align-items:center;gap:9px;min-width:0;color:#8792a3}
.guided-step>span{width:28px;height:28px;border-radius:50%;display:grid;place-items:center;border:1px solid #d7dee8;background:#fff;font-size:11px;font-weight:900;flex:0 0 auto}
.guided-step>div{display:flex;flex-direction:column;line-height:1.1}
.guided-step b{font-size:11px;color:#657185}
.guided-step small{font-size:9px;margin-top:3px;color:#9aa4b3;white-space:nowrap}
.guided-step.done>span{background:#e8f7ef;border-color:#cfead9;color:#18704e}
.guided-step.done b{color:#2d6c55}
.guided-step.active>span{background:#4566d6;border-color:#4566d6;color:#fff;box-shadow:0 0 0 4px #edf1ff}
.guided-step.active b{color:#24345f}
.guided-step.active small{color:#65769d}
.guided-erp-layout{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(270px,.55fr);gap:16px;align-items:start}
.guided-action-card{padding:28px 30px;border-radius:16px;min-height:390px;display:flex;flex-direction:column;justify-content:flex-start}
.guided-kicker{display:block;font-size:10px;font-weight:900;letter-spacing:.11em;color:#4964ba;margin-bottom:6px}
.guided-action-card h2{margin:0 0 8px;font-size:26px;letter-spacing:-.035em;color:#14213b}
.guided-action-card>p{margin:0 0 22px;max-width:760px;color:#6b778b;line-height:1.6;font-size:13px}
.guided-field-grid{display:grid;grid-template-columns:1fr 1fr;gap:15px}
.guided-field-grid label,.guided-claim-box label{margin:0}
.guided-field-grid label>span,.guided-claim-box label{font-size:11px;font-weight:800;color:#293956}
.guided-field-grid em{font-style:normal;font-weight:500;color:#8c96a7;font-size:9px;margin-left:4px}
.guided-field-grid input,.guided-field-grid select,.guided-claim-box input,.guided-claim-box select{margin-top:6px}
.guided-claim-box{margin-top:16px;padding:15px;border:1px solid #e2e7f0;border-radius:12px;background:#fbfcfe;display:grid;gap:12px}
.guided-claim-box>b{font-size:12px}
.guided-action-foot{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-top:22px;padding-top:18px;border-top:1px solid #edf0f4}
.guided-action-foot>div{display:flex;flex-direction:column;gap:3px}
.guided-action-foot b{font-size:12px;color:#293954}
.guided-action-foot small{font-size:10px;color:#818c9d;max-width:540px}
.guided-action-foot .btn{min-width:180px}
.guided-property-card{border-radius:16px;padding:22px}
.guided-property-card h3{font-size:15px;line-height:1.45;margin:5px 0 18px;color:#1f2d48}
.guided-property-card dl{display:grid;grid-template-columns:90px 1fr;gap:10px 12px;margin:0;padding:14px 0;border-top:1px solid #edf0f4;border-bottom:1px solid #edf0f4}
.guided-property-card dt{font-size:10px;color:#8893a4}
.guided-property-card dd{margin:0;font-size:11px;font-weight:800;color:#36445c;word-break:break-word}
.guided-details{margin-top:13px}
.guided-details summary{cursor:pointer;font-size:10px;font-weight:800;color:#68758b;list-style:none}
.guided-details summary::-webkit-details-marker{display:none}
.guided-details summary:after{content:'+';float:right}
.guided-details[open] summary:after{content:'−'}
.guided-details>div{display:grid;gap:7px;margin-top:10px}
.guided-main-action{margin-top:auto;padding-top:20px}
.guided-main-action .btn{min-height:48px;font-size:13px}
.guided-auto-list{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:4px 0 18px}
.guided-auto-list span{padding:11px 12px;border-radius:10px;background:#f7f9fc;border:1px solid #e7ebf2;color:#536177;font-size:11px;font-weight:750}
.guided-auto-state{display:flex;align-items:center;gap:13px;padding:15px;border:1px solid #dfe5ef;border-radius:12px;background:#f8faff;margin:5px 0 8px}
.guided-auto-state .analysis-progress-spinner{width:22px;height:22px;flex:0 0 auto}
.guided-auto-state>div{display:flex;flex-direction:column;gap:2px}
.guided-auto-state b{font-size:12px}.guided-auto-state small{font-size:10px;color:#7c8798}
.guided-file-needed{display:flex;align-items:center;gap:14px;padding:16px;border:1px solid #dfe5ee;border-radius:12px;background:#fbfcfe;margin:6px 0 16px}
.guided-file-needed>span{width:38px;height:38px;border-radius:11px;display:grid;place-items:center;background:#edf2ff;color:#4160be;flex:0 0 auto}
.guided-file-needed>span svg{width:19px;height:19px}
.guided-file-needed>div{display:flex;flex-direction:column;gap:3px}.guided-file-needed b{font-size:12px}.guided-file-needed small{font-size:10px;color:#7d8899}
.guided-upload-form{display:grid;grid-template-columns:1fr auto;gap:10px;align-items:center;margin-top:auto;padding-top:18px}
.guided-upload-form input[type=file]{margin:0;min-height:45px}
.guided-ready-list{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:8px 0 18px}
.guided-ready-list>div{display:flex;align-items:center;gap:9px;padding:13px;border:1px solid #dce9e3;border-radius:11px;background:#f8fcfa}
.guided-ready-list span{width:23px;height:23px;border-radius:50%;display:grid;place-items:center;background:#e3f5ec;color:#19704f;font-size:11px;font-weight:900}.guided-ready-list b{font-size:11px;color:#3a5d50}
.guided-success-mark{width:54px;height:54px;border-radius:16px;display:grid;place-items:center;background:#e6f7ee;color:#19704f;font-weight:950;font-size:24px;margin-bottom:16px}
.guided-action-card .analysis-progress-overlay{z-index:110}
@media(max-width:1050px){.guided-erp-layout{grid-template-columns:1fr}.guided-property-card{order:-1}.guided-property-card dl{grid-template-columns:110px 1fr}.guided-action-card{min-height:0}}
@media(max-width:720px){.guided-stepper{overflow-x:auto;align-items:flex-start}.guided-stepper>i{min-width:16px}.guided-step>div{display:none}.guided-action-card{padding:20px}.guided-action-card h2{font-size:22px}.guided-field-grid,.guided-auto-list,.guided-ready-list{grid-template-columns:1fr}.guided-action-foot{align-items:stretch;flex-direction:column}.guided-action-foot .btn{width:100%}.guided-upload-form{grid-template-columns:1fr}.guided-upload-form .btn{width:100%}}

/* Guided retry result: show the user the return, not the same waiting screen again */
.guided-result-summary{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:14px 0}
.guided-result-ok,.guided-result-pending{display:flex;align-items:center;gap:11px;padding:14px;border-radius:13px;border:1px solid #dfe6ef;background:#fbfcfe}
.guided-result-ok>span,.guided-result-pending>span{width:30px;height:30px;border-radius:50%;display:grid;place-items:center;font-weight:900;flex:0 0 auto}
.guided-result-ok>span{background:#e8f6ef;color:#19704f}.guided-result-pending>span{background:#fff2da;color:#9b6419}
.guided-result-ok>div,.guided-result-pending>div{display:flex;flex-direction:column;gap:2px}.guided-result-ok b,.guided-result-pending b{font-size:12px}.guided-result-ok small,.guided-result-pending small{font-size:10px;color:#7b8798}
.guided-return-list{margin:14px 0;border:1px solid #e1e6ee;border-radius:13px;overflow:hidden;background:#fff}
.guided-return-title{display:block;padding:10px 13px;background:#f7f9fc;border-bottom:1px solid #e8ecf2;font-size:10px;font-weight:850;color:#667489;text-transform:uppercase;letter-spacing:.05em}
.guided-return-row{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:13px}
.guided-return-row+ .guided-return-row{border-top:1px solid #edf0f4}
.guided-return-row>div{display:flex;flex-direction:column;gap:2px;min-width:0}.guided-return-row b{font-size:12px}.guided-return-row small{color:#7b8798;font-size:10px}
.guided-return-badge{white-space:nowrap;border-radius:999px;padding:5px 9px;background:#fff2da;color:#8d5c18;font-size:9px;font-weight:850}
.guided-next-explainer{display:flex;flex-direction:column;gap:3px;padding:12px 14px;border-left:3px solid #4d69d8;background:#f7f9ff;border-radius:0 10px 10px 0;margin-top:12px}
.guided-next-explainer b{font-size:11px}.guided-next-explainer span{font-size:10px;color:#718096}
.guided-secondary-link{display:block;text-align:center;margin-top:10px;color:#4159af;font-size:11px;font-weight:750;text-decoration:none}.guided-secondary-link:hover{text-decoration:underline}
@media(max-width:760px){.guided-result-summary{grid-template-columns:1fr}.guided-return-row{align-items:flex-start;flex-direction:column;gap:8px}}

/* V5 - fin de vérification explicite + accès PDF toujours visible */
.guided-dossier-head .guided-head-actions{display:flex!important;align-items:center;gap:8px;flex-wrap:wrap}
.guided-pdf-btn{display:inline-flex;align-items:center;gap:7px}
.guided-pdf-btn svg{width:15px;height:15px}
.guided-step.warning>span{background:#fff3db;border-color:#f0d59d;color:#8b5a14;box-shadow:none}
.guided-step.warning b{color:#78531e}
.guided-step.warning small{color:#9a6d2d}
.guided-auto-state.finished{position:relative;background:#fffdf8;border-color:#eadbbd;padding-right:88px}
.guided-status-icon{width:30px;height:30px;border-radius:50%;display:grid;place-items:center;font-weight:950;flex:0 0 auto}
.guided-status-icon.warning{background:#fff0cf;color:#946018}
.guided-finished-badge{position:absolute;right:13px;top:50%;transform:translateY(-50%);padding:5px 9px;border-radius:999px;background:#edf7f1;color:#247154;font-size:9px;font-weight:900;text-transform:uppercase;letter-spacing:.04em}
.guided-result-note{display:flex;align-items:center;gap:11px;margin:12px 0;padding:12px 14px;border:1px solid #d9ebe3;border-radius:12px;background:#f7fcf9}
.guided-result-note>span{width:28px;height:28px;border-radius:50%;display:grid;place-items:center;background:#e5f5ec;color:#19704f;font-weight:900;flex:0 0 auto}
.guided-result-note>div{display:flex;flex-direction:column;gap:2px}.guided-result-note b{font-size:11px}.guided-result-note small{font-size:10px;color:#738193}
.guided-report-actions{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(0,.8fr);gap:10px;margin-top:auto;padding-top:22px}
.guided-report-actions>a,.guided-report-actions form,.guided-report-actions button{width:100%}
.guided-report-actions form{margin:0}
.guided-report-actions .btn{min-height:48px;font-size:12px}
.guided-completion-help{display:flex;flex-direction:column;gap:3px;margin-top:11px;padding:11px 13px;border-radius:10px;background:#f7f9fc;border:1px solid #e7ebf2}
.guided-completion-help b{font-size:10px;color:#40506a}.guided-completion-help span{font-size:10px;color:#7a8698;line-height:1.45}
@media(max-width:760px){
 .guided-dossier-head{align-items:flex-start;flex-direction:column}
 .guided-dossier-head .guided-head-actions{width:100%}
 .guided-dossier-head .guided-head-actions .btn{width:100%}
 .guided-report-actions{grid-template-columns:1fr}
 .guided-auto-state.finished{padding-right:15px;padding-bottom:42px}
 .guided-finished-badge{right:auto;left:15px;top:auto;bottom:10px;transform:none}
}

/* PPR - confirmation humaine unique après enrichissement officiel */
.guided-ppr-work-form{display:flex;flex-direction:column;gap:14px}
.guided-ppr-work-card{border:1px solid #e1e7f2;border-radius:16px;background:#fbfcff;padding:17px}
.guided-ppr-work-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;padding-bottom:12px;border-bottom:1px solid #e8ecf3}
.guided-ppr-work-head>div{display:flex;flex-direction:column;gap:3px}
.guided-ppr-work-head b{font-size:15px}
.guided-ppr-work-head small{color:var(--muted)}
.guided-ppr-work-card>p{margin:13px 0 9px;color:#5e6879;font-size:12px}
.guided-choice{display:flex!important;align-items:flex-start;gap:11px;padding:11px 12px;margin:7px 0;border:1px solid #e1e6ef;border-radius:12px;background:#fff;cursor:pointer}
.guided-choice:hover{border-color:#b8c6ee;background:#f9faff}
.guided-choice input[type=radio]{width:17px;height:17px;margin:2px 0 0;flex:0 0 auto}
.guided-choice>span{display:flex;flex-direction:column;gap:2px}
.guided-choice b{font-size:12px;color:#17233c}
.guided-choice small{font-size:11px;color:var(--muted);line-height:1.45}
@media(max-width:760px){.guided-ppr-work-head{flex-direction:column}.guided-ppr-work-head .btn{width:100%}}

/* v1.4.26 — finalisation du rapport sans écran intermédiaire ambigu */
.guided-auto-report-submit{position:absolute!important;width:1px!important;height:1px!important;overflow:hidden!important;clip:rect(0 0 0 0)!important;clip-path:inset(50%)!important;white-space:nowrap!important;opacity:0!important;pointer-events:none!important}
.guided-report-building{display:flex;align-items:center;gap:14px;margin:28px 0 18px;padding:18px;border:1px solid #dce4f5;border-radius:14px;background:#f7f9ff}
.guided-report-building .analysis-progress-spinner{width:28px;height:28px;flex:0 0 auto}
.guided-report-building>div{display:flex;flex-direction:column;gap:3px}
.guided-report-building b{font-size:14px;color:#14223b}
.guided-report-building small{font-size:12px;color:#6d7990;line-height:1.45}
.guided-report-reserve{display:flex;align-items:flex-start;gap:11px;margin:0 0 18px;padding:12px 14px;border:1px solid #f1d7a5;border-radius:12px;background:#fffaf1}
.guided-report-reserve>span{width:24px;height:24px;border-radius:50%;display:grid;place-items:center;background:#fff0cc;color:#9a6500;font-weight:900;flex:0 0 auto}
.guided-report-reserve>div{display:flex;flex-direction:column;gap:2px}
.guided-report-reserve b{font-size:12px;color:#6f4a00}
.guided-report-reserve small{font-size:11px;color:#8a7346}

/* PPR : statut de zonage conclu, complétude documentaire séparée */
.guided-ppr-concluded{display:flex;align-items:center;gap:12px;margin:18px 0;padding:14px 16px;border:1px solid #cfe7db;border-radius:14px;background:#f4fbf7}
.guided-ppr-concluded>span{width:34px;height:34px;border-radius:50%;display:grid;place-items:center;background:#def3e8;color:#157347;font-weight:900;flex:0 0 auto}
.guided-ppr-concluded>div{display:flex;flex-direction:column;gap:3px}.guided-ppr-concluded small{color:var(--muted)}
.guided-ppr-docs{margin:14px 0 18px;border:1px solid #e1e6ef;border-radius:14px;background:#fbfcfe;overflow:hidden}
.guided-ppr-docs-head{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:13px 15px;border-bottom:1px solid #e8ecf2}
.guided-ppr-docs-head span{font-size:10px;font-weight:850;padding:4px 8px;border-radius:999px;background:#eef2ff;color:#4158a6}
.guided-ppr-doc-line{display:flex;align-items:center;gap:9px;padding:11px 15px;border-bottom:1px solid #eef1f5;font-size:12px}.guided-ppr-doc-line:last-child{border-bottom:0}.guided-ppr-doc-line>span{color:#4d69ce}
.guided-result-note.warning{border-color:#f0ddb1;background:#fffaf0}.guided-result-note.warning>span{background:#fff0c7;color:#8a5b12}
