:root{
  --bg:#f6f8fb;--panel:#fff;--panel-2:#fbfcfe;--line:#e5eaf1;--text:#122033;--muted:#69778a;
  --navy:#17263b;--blue:#2f77ed;--blue-soft:#eaf2ff;--green:#10a56b;--green-soft:#e9f8f1;
  --red:#e5484d;--red-soft:#fff0f1;--amber:#e58918;--amber-soft:#fff5e8;--shadow:0 10px 32px rgba(18,32,51,.05);
  --radius:14px;--sidebar:220px;
}
*{box-sizing:border-box}html{background:var(--bg)}body{margin:0;color:var(--text);font-family:Inter,ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;font-size:14px;-webkit-font-smoothing:antialiased}a{color:inherit;text-decoration:none}button,input,select,textarea{font:inherit;color:inherit}.icon{display:block;flex:0 0 auto}.app-shell{min-height:100vh}.sidebar{position:fixed;inset:0 auto 0 0;width:var(--sidebar);background:#fff;border-right:1px solid var(--line);display:flex;flex-direction:column;z-index:20}.brand{height:66px;padding:0 20px;display:flex;align-items:center;gap:12px;border-bottom:1px solid var(--line);letter-spacing:.05em;font-size:18px}.brand-mark{width:34px;height:34px;border-radius:8px;background:var(--navy);display:grid;place-items:center;position:relative;box-shadow:0 4px 12px rgba(23,38,59,.15)}.brand-mark:before{content:"";width:17px;height:17px;border:4px solid #fff;border-radius:50%;display:block}.brand-mark span{position:absolute;width:4px;height:8px;background:#fff;border-radius:2px;bottom:4px}.main-nav{padding:12px 8px;display:grid;gap:4px}.nav-item{height:44px;border-radius:9px;display:flex;align-items:center;gap:12px;padding:0 13px;color:#233247;position:relative}.nav-item:hover{background:#f4f7fb}.nav-item.active{color:#155dc7;background:var(--blue-soft);font-weight:650}.nav-item.active:before{content:"";position:absolute;left:-8px;width:3px;height:26px;border-radius:0 3px 3px 0;background:var(--blue)}.nav-count{margin-left:auto;min-width:20px;height:20px;padding:0 5px;border-radius:10px;background:var(--red);color:#fff;display:grid;place-items:center;font-size:11px}.sidebar-bottom{margin-top:auto;border-top:1px solid var(--line);padding:14px}.plan-card{border:1px solid var(--line);border-radius:11px;padding:13px;display:grid;gap:5px;background:var(--panel-2)}.plan-card span,.plan-card small{font-size:12px;color:var(--muted)}.plan-card strong{font-size:13px}.help-link{display:block;margin:13px 2px 0;font-size:12px;color:var(--muted)}.workspace{margin-left:var(--sidebar);min-height:100vh}.topbar{height:66px;background:rgba(255,255,255,.95);backdrop-filter:blur(10px);border-bottom:1px solid var(--line);display:flex;align-items:center;padding:0 26px;position:sticky;top:0;z-index:15}.global-search{margin-left:auto;margin-right:34px;width:min(340px,32vw);height:38px;border:1px solid var(--line);border-radius:10px;background:#f8fafc;display:flex;align-items:center;gap:9px;padding:0 12px;color:var(--muted)}.global-search input{width:100%;border:0;outline:0;background:transparent}.top-actions{display:flex;align-items:center;gap:18px}.icon-button{border:0;background:transparent;padding:8px;border-radius:9px;cursor:pointer;position:relative}.icon-button:hover{background:#f3f6fa}.dot{position:absolute;right:0;top:0;min-width:17px;height:17px;padding:0 4px;background:var(--red);color:white;border-radius:10px;font-size:10px;display:grid;place-items:center;border:2px solid #fff}.profile{display:flex;align-items:center;gap:9px}.profile>span:last-child{display:grid;gap:1px}.profile strong{font-size:13px}.profile small{font-size:11px;color:var(--muted)}.avatar{width:34px;height:34px;border-radius:50%;background:#e9eef5;display:grid;place-items:center;font-weight:700}.logout{font-size:12px;color:var(--muted)}.mobile-menu{display:none}.content{padding:28px 28px 50px;max-width:1640px;margin:0 auto}.page-title{display:flex;align-items:flex-start;justify-content:space-between;margin-bottom:22px}.page-title h1{margin:0;font-size:27px;letter-spacing:-.03em}.page-title p{margin:7px 0 0;color:var(--muted)}.page-actions{display:flex;gap:10px;align-items:center}.button{border:1px solid var(--line);background:#fff;border-radius:9px;height:38px;padding:0 14px;display:inline-flex;align-items:center;justify-content:center;gap:8px;font-weight:600;cursor:pointer}.button:hover{border-color:#cdd6e2;background:#fafcff}.button.primary{background:var(--blue);border-color:var(--blue);color:#fff}.button.danger{border-color:#f2c4c6;color:#c52e34;background:#fff}.button.small{height:32px;padding:0 10px;font-size:12px}.button:disabled{opacity:.5;cursor:not-allowed}.grid{display:grid;gap:14px}.stats-grid{grid-template-columns:repeat(6,minmax(0,1fr));margin-bottom:16px}.stat-card{background:var(--panel);border:1px solid var(--line);border-radius:var(--radius);padding:16px;min-height:110px;position:relative;box-shadow:0 1px 0 rgba(18,32,51,.02)}.stat-card .label{font-size:12px;margin-bottom:14px}.stat-card strong{font-size:25px;letter-spacing:-.03em}.stat-card .trend{font-size:11px;color:var(--green);margin-left:5px}.stat-icon{position:absolute;right:15px;top:30px;width:42px;height:42px;border-radius:12px;display:grid;place-items:center}.stat-icon.blue{background:var(--blue-soft);color:var(--blue)}.stat-icon.green{background:var(--green-soft);color:var(--green)}.stat-icon.red{background:var(--red-soft);color:var(--red)}.stat-icon.amber{background:var(--amber-soft);color:var(--amber)}.panel{background:var(--panel);border:1px solid var(--line);border-radius:var(--radius);box-shadow:0 1px 0 rgba(18,32,51,.02)}.panel-head{padding:15px 17px;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;gap:10px}.panel-head h2,.panel-head h3{font-size:14px;margin:0}.panel-head p{font-size:12px;color:var(--muted);margin:4px 0 0}.panel-body{padding:16px}.dashboard-mid{grid-template-columns:1.1fr 1.25fr 1.15fr;margin-bottom:16px}.progress-list{display:grid;gap:15px}.progress-row{display:grid;gap:7px}.progress-meta{display:flex;justify-content:space-between;font-size:12px}.progress-track{height:4px;background:#edf1f5;border-radius:4px;overflow:hidden}.progress-track span{display:block;height:100%;background:var(--green);border-radius:4px}.progress-track .warn{background:var(--amber)}.progress-track .bad{background:var(--red)}.chart{height:190px;position:relative;background:linear-gradient(#fff,#fff),repeating-linear-gradient(0deg,transparent,transparent 37px,#edf1f5 38px),repeating-linear-gradient(90deg,transparent,transparent 84px,#edf1f5 85px);background-blend-mode:multiply;border-left:1px solid #edf1f5;border-bottom:1px solid #edf1f5;margin:8px 4px 0}.chart svg{position:absolute;inset:0;width:100%;height:100%}.chart-labels{display:flex;justify-content:space-between;color:var(--muted);font-size:10px;margin:6px 4px 0}.alert-list{display:grid}.alert-item{display:grid;grid-template-columns:auto 1fr auto;gap:10px;align-items:center;padding:12px 2px;border-bottom:1px solid var(--line)}.alert-item:last-child{border-bottom:0}.alert-item .signal{width:28px;height:28px;border-radius:8px;display:grid;place-items:center}.signal.danger{background:var(--red-soft);color:var(--red)}.signal.warning{background:var(--amber-soft);color:var(--amber)}.alert-item strong{display:block;font-size:12px;margin-bottom:3px}.alert-item small{display:block;color:var(--muted);font-size:11px}.badge{display:inline-flex;align-items:center;height:23px;padding:0 8px;border-radius:999px;font-size:11px;font-weight:650;white-space:nowrap}.badge.success{background:var(--green-soft);color:#08774b}.badge.danger{background:var(--red-soft);color:#ca3036}.badge.warning{background:var(--amber-soft);color:#ad6005}.badge.info{background:var(--blue-soft);color:#155dc7}.badge.neutral{background:#f0f3f7;color:#58677a}.dashboard-bottom{grid-template-columns:2.4fr 1fr}.table-wrap{overflow:auto}.data-table{width:100%;border-collapse:collapse}.data-table th{text-align:left;font-size:11px;color:#536278;font-weight:650;padding:11px 13px;border-bottom:1px solid var(--line);white-space:nowrap}.data-table td{padding:12px 13px;border-bottom:1px solid var(--line);font-size:12px;vertical-align:middle}.data-table tr:last-child td{border-bottom:0}.data-table tbody tr:hover{background:#fbfcfe}.table-actions{display:flex;gap:5px}.thumb{width:64px;height:36px;border-radius:5px;border:1px solid var(--line);object-fit:cover;background:#f1f4f7}.empty-thumb{width:64px;height:36px;border:1px dashed #ccd5e0;border-radius:5px;display:grid;place-items:center;color:#8c99a9;font-size:10px}.list-lines{display:grid}.list-line{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:14px 0;border-bottom:1px solid var(--line);font-size:12px}.list-line:last-child{border:0}.list-line small{color:var(--muted)}.split{display:grid;grid-template-columns:1.65fr .9fr;gap:16px}.toolbar{display:flex;align-items:center;gap:10px;margin-bottom:14px}.toolbar .search{flex:1;max-width:380px}.field,.search{height:40px;border:1px solid var(--line);border-radius:9px;background:#fff;padding:0 11px;outline:0}.field:focus,.search:focus,textarea:focus{border-color:#9bbff8;box-shadow:0 0 0 3px #eaf2ff}.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:13px}.form-group{display:grid;gap:6px}.form-group label{font-size:12px;font-weight:650}.form-group small{font-size:11px;color:var(--muted)}.form-group input,.form-group select,.form-group textarea{width:100%;border:1px solid var(--line);border-radius:9px;background:#fff;padding:10px 11px;outline:none}.form-group textarea{min-height:94px;resize:vertical}.form-group.full{grid-column:1/-1}.form-actions{display:flex;gap:9px;justify-content:flex-end;margin-top:15px}.modal{position:fixed;inset:0;background:rgba(11,22,38,.34);display:none;align-items:center;justify-content:center;padding:20px;z-index:50}.modal.open{display:flex}.modal-card{width:min(620px,100%);max-height:90vh;overflow:auto;background:#fff;border-radius:16px;box-shadow:0 24px 80px rgba(11,22,38,.2)}.modal-head{display:flex;align-items:center;justify-content:space-between;padding:18px 20px;border-bottom:1px solid var(--line)}.modal-head h2{margin:0;font-size:17px}.modal-body{padding:20px}.xbutton{border:0;background:transparent;font-size:24px;line-height:1;cursor:pointer;color:var(--muted)}.flash{padding:11px 13px;border-radius:9px;margin:-6px 0 16px;font-size:12px}.flash.success{background:var(--green-soft);color:#08774b}.flash.error{background:var(--red-soft);color:#b5272d}.flash.warning{background:var(--amber-soft);color:#9b5706}.section-tabs{display:flex;gap:2px;border-bottom:1px solid var(--line);margin-bottom:16px;overflow:auto}.section-tabs a{padding:11px 13px;color:var(--muted);font-size:12px;white-space:nowrap;border-bottom:2px solid transparent}.section-tabs a.active{color:var(--text);font-weight:650;border-bottom-color:var(--blue)}.site-hero{display:grid;grid-template-columns:1fr auto;gap:18px;align-items:center;padding:17px}.site-identity{display:flex;align-items:center;gap:12px}.favicon{width:40px;height:40px;border-radius:10px;background:#eef3f8;display:grid;place-items:center;font-weight:750;color:#49617e}.site-identity h2{margin:0 0 4px;font-size:17px}.site-identity p{margin:0;color:var(--muted);font-size:12px}.metric-strip{display:grid;grid-template-columns:repeat(4,1fr);border-top:1px solid var(--line)}.metric-strip>div{padding:14px 17px;border-right:1px solid var(--line)}.metric-strip>div:last-child{border-right:0}.metric-strip span{display:block;color:var(--muted);font-size:11px;margin-bottom:5px}.metric-strip strong{font-size:14px}.capture-viewer{background:#111821;border-radius:12px;padding:12px;min-height:420px;display:grid;place-items:center;overflow:auto}.capture-viewer img{max-width:100%;height:auto;border-radius:5px;background:#fff}.capture-meta{display:grid;grid-template-columns:repeat(4,1fr);gap:10px}.meta-card{border:1px solid var(--line);border-radius:10px;padding:12px}.meta-card span{display:block;color:var(--muted);font-size:11px;margin-bottom:5px}.meta-card strong{font-size:13px}.status-dot{width:8px;height:8px;border-radius:50%;display:inline-block;margin-right:6px;background:var(--green)}.status-dot.bad{background:var(--red)}.status-dot.warn{background:var(--amber)}.kpi-list{display:grid;grid-template-columns:repeat(4,1fr);gap:12px}.kpi{border:1px solid var(--line);border-radius:11px;padding:14px;background:#fff}.kpi span{font-size:11px;color:var(--muted)}.kpi strong{display:block;font-size:21px;margin-top:7px}.danger-zone{border-color:#f3d4d5}.danger-zone .panel-head{background:#fff8f8}.auth-shell{min-height:100vh;display:grid;grid-template-columns:1.05fr .95fr;background:#fff}.auth-brand{background:linear-gradient(145deg,#14243a,#1e3551 65%,#284a70);padding:70px clamp(35px,7vw,100px);color:#fff;display:flex;flex-direction:column;justify-content:center;position:relative;overflow:hidden}.auth-brand:before,.auth-brand:after{content:"";position:absolute;border:1px solid rgba(255,255,255,.08);border-radius:50%}.auth-brand:before{width:540px;height:540px;right:-190px;top:-180px}.auth-brand:after{width:360px;height:360px;right:-100px;bottom:-150px}.auth-logo{display:flex;align-items:center;gap:12px;font-size:20px;letter-spacing:.06em;position:absolute;top:45px}.auth-brand h1{font-size:clamp(36px,5vw,64px);line-height:1.02;letter-spacing:-.04em;max-width:650px;margin:0 0 25px}.auth-brand p{font-size:17px;line-height:1.6;max-width:560px;color:#cbd8e7}.auth-panel{display:flex;align-items:center;justify-content:center;padding:35px;background:#f8fafc}.auth-card{width:min(420px,100%);background:#fff;border:1px solid var(--line);border-radius:17px;padding:28px;box-shadow:var(--shadow)}.auth-card h2{margin:0 0 7px;font-size:23px}.auth-card>p{margin:0 0 22px;color:var(--muted);line-height:1.5}.auth-card .button{width:100%;margin-top:5px}.auth-note{margin-top:15px;font-size:11px;color:var(--muted);line-height:1.5}.inline-form{display:flex;gap:8px;align-items:center;flex-wrap:wrap}.checkbox{display:inline-flex;align-items:center;gap:7px}.checkbox input{accent-color:var(--blue)}.code{font-family:ui-monospace,SFMono-Regular,Menlo,monospace;background:#f2f5f8;border-radius:6px;padding:2px 6px;font-size:11px}.callout{border:1px solid #cfe0fb;background:#f4f8ff;border-radius:11px;padding:13px 14px;color:#244b7c;font-size:12px;line-height:1.55}.callout.warning{border-color:#f2dfbf;background:#fff9ef;color:#78501d}.muted{color:var(--muted)}.text-danger{color:var(--red)}.text-success{color:var(--green)}.right{text-align:right}.nowrap{white-space:nowrap}
@media(max-width:1200px){.stats-grid{grid-template-columns:repeat(3,1fr)}.dashboard-mid{grid-template-columns:1fr 1fr}.dashboard-mid>.panel:last-child{grid-column:1/-1}.dashboard-bottom,.split{grid-template-columns:1fr}.kpi-list{grid-template-columns:repeat(2,1fr)}}
@media(max-width:820px){:root{--sidebar:250px}.sidebar{transform:translateX(-100%);transition:.2s ease}.sidebar.open{transform:none;box-shadow:0 0 45px rgba(0,0,0,.15)}.workspace{margin-left:0}.mobile-menu{display:block}.global-search{margin:0 auto;width:45vw}.profile>span:last-child,.logout{display:none}.content{padding:20px 15px 40px}.stats-grid{grid-template-columns:repeat(2,1fr)}.dashboard-mid{grid-template-columns:1fr}.dashboard-mid>.panel:last-child{grid-column:auto}.form-grid{grid-template-columns:1fr}.form-group.full{grid-column:auto}.metric-strip{grid-template-columns:repeat(2,1fr)}.auth-shell{grid-template-columns:1fr}.auth-brand{display:none}}
@media(max-width:520px){.stats-grid,.kpi-list{grid-template-columns:1fr}.topbar{padding:0 12px}.global-search{width:auto;flex:1;margin:0 8px}.top-actions{gap:6px}.page-title h1{font-size:23px}.metric-strip{grid-template-columns:1fr}.metric-strip>div{border-right:0;border-bottom:1px solid var(--line)}.metric-strip>div:last-child{border-bottom:0}.capture-meta{grid-template-columns:repeat(2,1fr)}}
.filter-row{display:flex;align-items:center;gap:7px;flex-wrap:wrap}.filter-chip{display:inline-flex;align-items:center;height:32px;padding:0 11px;border:1px solid var(--line);border-radius:999px;background:#fff;color:#536278;font-size:12px;font-weight:600}.filter-chip:hover{border-color:#cbd5e2;background:#fafcff}.filter-chip.active{border-color:#bcd3fa;background:var(--blue-soft);color:#155dc7}
.email-option{display:grid;gap:5px;border:1px solid var(--line);border-radius:10px;padding:12px 13px;background:#fff;cursor:pointer}.email-option:hover{background:#fbfcfe}.email-option small{display:block;color:var(--muted);font-size:11px;line-height:1.45;padding-left:23px}.email-option .checkbox{align-items:flex-start}

/* Kpture 2.0.9 — corrections UI cumulatives */
.brand{padding:0 18px;gap:13px;font-size:19px}
.brand-logo{width:32px;height:32px;display:block;flex:0 0 32px;object-fit:contain}
.auth-logo .brand-logo{width:36px;height:36px;flex-basis:36px}
.form-group input[type="checkbox"],.form-group input[type="radio"]{width:auto;padding:0;margin:0}
.checkbox input[type="checkbox"]{width:16px;height:16px;flex:0 0 16px;margin-top:1px}
.checkbox-main{align-items:flex-start;gap:10px;border:1px solid var(--line);border-radius:10px;padding:12px 13px;background:#fbfcfe;cursor:pointer}
.checkbox-main>span{display:grid;gap:3px}.checkbox-main strong{font-size:12px}.checkbox-main small{font-weight:400;line-height:1.45}
.label-row{display:flex;align-items:center;justify-content:space-between;gap:12px}.label-row .muted{font-size:11px;font-weight:400}
.field-error{border:1px solid #f1c7c9;background:#fff5f5;color:#ad272d;border-radius:8px;padding:9px 10px;font-size:11px;line-height:1.45}
.field-error[hidden]{display:none}.form-group textarea[aria-invalid="true"]{border-color:#dd7479;box-shadow:0 0 0 3px #fff0f1}
.email-test-row{border-top:1px solid var(--line);margin-top:18px;padding-top:16px;display:flex;align-items:center;justify-content:space-between;gap:18px}.email-test-row strong{font-size:12px}.email-test-row p{margin:4px 0 0;color:var(--muted);font-size:11px;line-height:1.45}
.field-with-suffix{display:flex;align-items:stretch}.field-with-suffix input{border-radius:9px 0 0 9px}.field-with-suffix span{display:flex;align-items:center;padding:0 11px;border:1px solid var(--line);border-left:0;border-radius:0 9px 9px 0;background:#f7f9fc;color:var(--muted);font-size:12px}
.service-status .kpi strong{font-size:17px}.service-message{margin:14px 0 0}
@media(max-width:620px){.email-test-row{align-items:stretch;flex-direction:column}.email-test-row .button{width:100%}.label-row{align-items:flex-start;flex-direction:column;gap:3px}}


/* Kpture 2.0.9 — capture UX */
.thumb-button{display:inline-flex;border:0;padding:0;background:transparent;border-radius:6px;cursor:zoom-in;vertical-align:middle}.thumb-button:focus-visible{outline:3px solid #cfe0fb;outline-offset:2px}.thumb-button .thumb{display:block}.capture-age{display:block;margin-top:4px;font-size:10px;color:var(--muted);white-space:nowrap}.capture-mode-pill{display:inline-flex;align-items:center;min-height:24px;padding:3px 8px;border-radius:999px;background:#f1f5f9;color:#42536a;font-size:10px;font-weight:650;white-space:nowrap}.capture-lightbox{position:fixed;inset:0;display:none;align-items:center;justify-content:center;padding:24px;background:rgba(8,17,29,.72);z-index:120}.capture-lightbox.open{display:flex}.capture-lightbox-card{width:min(1180px,96vw);max-height:94vh;display:flex;flex-direction:column;background:#fff;border-radius:16px;overflow:hidden;box-shadow:0 28px 90px rgba(0,0,0,.34)}.capture-lightbox-head{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;padding:14px 18px;border-bottom:1px solid var(--line)}.capture-lightbox-head strong{display:block;font-size:14px}.capture-lightbox-head small{display:block;color:var(--muted);margin-top:3px}.capture-lightbox-body{display:grid;place-items:center;min-height:240px;padding:14px;background:#111821;overflow:auto}.capture-lightbox-body img{display:block;max-width:100%;max-height:72vh;width:auto;height:auto;background:#fff;border-radius:5px}.capture-lightbox-actions{display:flex;justify-content:flex-end;gap:8px;padding:12px 18px;border-top:1px solid var(--line)}.capture-mode-options{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.capture-mode-option{position:relative;display:flex;gap:8px;align-items:flex-start;padding:11px;border:1px solid var(--line);border-radius:10px;background:#fff;cursor:pointer}.capture-mode-option input{width:auto!important;margin-top:2px}.capture-mode-option strong{display:block;font-size:12px}.capture-mode-option small{display:block;margin-top:3px;color:var(--muted);font-size:10px;line-height:1.35}.capture-mode-option.is-locked{opacity:.55;cursor:not-allowed;background:#f8fafc}.capture-mode-option:has(input:checked){border-color:#8ab5f7;background:#f4f8ff}.capture-selector-field[hidden]{display:none!important}.capture-settings-row{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.capture-settings-row .muted{font-size:11px}.capture-viewer.screen-preview{min-height:0;max-height:calc(100vh - 260px)}.capture-viewer.screen-preview img{max-height:calc(100vh - 290px);object-fit:contain}
@media(max-width:820px){.capture-mode-options{grid-template-columns:1fr}.capture-lightbox{padding:10px}.capture-lightbox-card{width:100%;max-height:96vh}.capture-lightbox-body img{max-height:74vh}}

/* Kpture 2.2 commercial / collections / super admin */
.promo-banner{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:14px 16px;margin:0 0 16px;border:1px solid #c9d9ff;background:#f4f8ff;border-radius:12px}.promo-banner>div{display:flex;flex-direction:column;gap:3px}.promo-banner span{font-size:13px;color:#496078}.sidebar-banner{padding:12px;border:1px solid #dbe4f0;border-radius:10px;background:#f8fafc;display:flex;flex-direction:column;gap:5px}.sidebar-banner strong{font-size:12px}.sidebar-banner small{font-size:11px;color:#64748b;line-height:1.4}.sidebar-banner a{font-size:11px;font-weight:700}.plan-card a{display:block;margin-top:7px;font-size:11px;font-weight:700}.superadmin-badge{margin:0 14px 8px;padding:5px 8px;border-radius:6px;background:#16253a;color:#fff;font-size:10px;letter-spacing:.08em;text-align:center}.feature-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:10px 0 18px}.feature-box{padding:12px;border:1px solid #dfe6ef;border-radius:10px;background:#fafcff}.advanced{margin-top:18px;border-top:1px solid #e5eaf0;padding-top:14px}.advanced summary{cursor:pointer;font-weight:700}.inline-actions{display:flex;gap:8px;align-items:center;flex-wrap:wrap}.inline-actions select{min-width:110px}.queue-grid{display:flex;flex-wrap:wrap;gap:10px}.queue-chip{border:1px solid #dfe6ef;border-radius:10px;padding:10px 12px;min-width:150px;display:flex;flex-direction:column}.queue-chip span{font-size:11px;color:#64748b}.plan-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(230px,1fr));gap:16px}.plan-offer{border:1px solid #dfe6ef;border-radius:14px;background:#fff;padding:18px;display:flex;flex-direction:column;gap:14px}.plan-offer.current{border-color:#7aa7ff;box-shadow:0 0 0 2px #e8f0ff}.plan-offer h2{margin:3px 0 6px}.plan-offer p{color:#64748b;min-height:42px}.plan-offer ul{padding:0;list-style:none;display:grid;gap:6px;font-size:13px}.eyebrow{text-transform:uppercase;font-size:10px;font-weight:800;letter-spacing:.08em;color:#55708f}.plan-price{font-size:24px;display:block}.plan-price small{font-size:12px;font-weight:500;color:#64748b}.annual-price{font-size:12px;color:#64748b}.subscription-current{display:flex;gap:14px;align-items:center;flex-wrap:wrap}.subscription-current strong{font-size:20px}.subscription-current span,.subscription-current small{color:#64748b}.capture-tabs{margin-bottom:16px}.collection-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(240px,1fr));gap:14px}.collection-card{display:flex;flex-direction:column;gap:7px;padding:16px;border:1px solid #dfe6ef;border-radius:12px;background:#fff;text-decoration:none;color:inherit}.collection-card:hover{border-color:#91b6ff;box-shadow:0 6px 20px rgba(15,23,42,.06)}.collection-card>span{font-size:10px;text-transform:uppercase;font-weight:800;color:#6b7d92}.collection-card p{font-size:12px;color:#64748b;min-height:32px}.collection-card small{color:#718096}.collection-heading{margin-bottom:14px}.collection-add{display:flex;gap:8px}.collection-add select{min-width:190px}.recipient-source{padding:9px 10px;margin:8px 0;border:1px solid #dce7f6;background:#f8fbff;border-radius:8px;font-size:12px;color:#4d6278}.quota-note{font-size:12px;color:#64748b;align-self:center}.danger{color:#b42318}.button.danger{border-color:#fecaca;color:#b42318;background:#fff}.empty-state{padding:28px}.superadmin-shell .content{max-width:1500px}.superadmin-shell .topbar>strong{font-size:14px}.stats-grid .stat-card{min-height:96px}
@media(max-width:800px){.feature-grid{grid-template-columns:1fr}.promo-banner{align-items:flex-start;flex-direction:column}.collection-add{width:100%;flex-direction:column}.collection-add select{width:100%}}


.destination-actions{display:flex;gap:10px;align-items:center;flex-wrap:wrap;margin-top:14px;padding-top:14px;border-top:1px solid var(--border,#e3e8ef)}
.destination-actions form{margin:0}.destination-actions .button[disabled]{opacity:.5;cursor:not-allowed}
.storage-bar{height:10px;border-radius:999px;background:var(--border,#e5e7eb);overflow:hidden;margin:16px 0 10px}.storage-bar>span{display:block;height:100%;background:var(--accent,#2563eb);border-radius:inherit}

/* Kpture 2.3.1 — Super Admin cockpit */
.superadmin-shell .page-title{margin-bottom:16px}.superadmin-shell .page-title h1{font-size:24px}.superadmin-shell .page-title p{margin-top:4px}
.sa-kpi-grid{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:12px;margin-bottom:16px}.sa-kpi-card{min-width:0;min-height:106px;padding:15px 16px;border:1px solid var(--line);border-radius:13px;background:#fff;display:flex;flex-direction:column;justify-content:center;transition:border-color .15s ease,background .15s ease}.sa-kpi-card:hover{border-color:#c9d7e9;background:#fcfdff}.sa-kpi-label{font-size:11px;color:var(--muted);font-weight:650;margin-bottom:8px}.sa-kpi-card strong{font-size:25px;line-height:1;letter-spacing:-.035em}.sa-kpi-card small{display:block;margin-top:8px;color:var(--muted);font-size:10px;line-height:1.35}.sa-kpi-denom{font-size:13px;font-weight:650;color:var(--muted);letter-spacing:0;margin-left:3px}.sa-kpi-card.is-warning,.sa-kpi-card.is-attention{border-color:#efd5ab;background:#fffdf8}.sa-kpi-card.is-danger{border-color:#f0c7ca;background:#fffafb}.sa-kpi-card.is-success{border-color:#dbe7df}
.sa-overview-grid{display:grid;grid-template-columns:minmax(0,1.28fr) minmax(0,.92fr) minmax(0,.92fr);gap:16px;margin-bottom:16px}.sa-secondary-grid{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(0,.85fr);gap:16px;margin-bottom:16px}.sa-bottom-grid{display:grid;grid-template-columns:minmax(0,1.55fr) minmax(300px,.65fr);gap:16px}.sa-overview-grid>.panel,.sa-secondary-grid>.panel,.sa-bottom-grid>.panel{min-width:0}
.sa-storage-head{display:flex;align-items:center;justify-content:space-between;gap:16px}.sa-storage-head>div{display:flex;align-items:baseline;gap:7px}.sa-storage-head strong{font-size:29px;letter-spacing:-.04em}.sa-storage-head span{font-size:11px;color:var(--muted)}.storage-bar.attention>span,.storage-bar.warning>span{background:var(--amber)}.storage-bar.danger>span{background:var(--red)}.storage-bar.success>span{background:var(--green)}.sa-storage-values{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin-top:12px}.sa-storage-values span{font-size:10px;color:var(--muted);display:grid;gap:3px}.sa-storage-values b{font-size:13px;color:var(--text)}.sa-thresholds{display:flex;gap:12px;flex-wrap:wrap;margin-top:14px;padding-top:11px;border-top:1px solid var(--line);font-size:9px;color:var(--muted)}
.sa-activity-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1px;background:var(--line);padding:0}.sa-activity-grid>div{background:#fff;padding:13px 14px;min-height:66px;display:flex;flex-direction:column;justify-content:center}.sa-activity-grid span{font-size:10px;color:var(--muted)}.sa-activity-grid strong{font-size:19px;margin-top:5px;letter-spacing:-.03em}
.sa-health-list{display:grid;gap:9px}.sa-health-item{display:grid;grid-template-columns:auto 1fr;gap:9px;align-items:flex-start}.sa-health-dot{width:8px;height:8px;border-radius:50%;margin-top:4px;background:#94a3b8}.sa-health-item.success .sa-health-dot{background:var(--green)}.sa-health-item.attention .sa-health-dot,.sa-health-item.warning .sa-health-dot{background:var(--amber)}.sa-health-item.danger .sa-health-dot{background:var(--red)}.sa-health-item strong{font-size:11px;display:block}.sa-health-item small{font-size:10px;line-height:1.4;color:var(--muted);display:block;margin-top:2px}
.sa-queue-list{display:grid;padding-top:5px;padding-bottom:5px}.sa-queue-row{display:grid;grid-template-columns:minmax(100px,1.2fr) repeat(3,minmax(82px,.7fr));gap:10px;align-items:center;padding:10px 0;border-bottom:1px solid var(--line);font-size:10px}.sa-queue-row:last-child{border-bottom:0}.sa-queue-row>strong{font-size:11px}.sa-queue-row span{color:var(--muted);white-space:nowrap}.sa-queue-row span b{color:var(--text);font-size:12px;margin-right:2px}.sa-queue-row .text-danger,.sa-queue-row .text-danger b{color:var(--red)}
.sa-plan-list{display:grid;gap:12px}.sa-plan-row{display:grid;gap:6px}.sa-plan-row>div:first-child{display:flex;align-items:center;justify-content:space-between;font-size:11px}.sa-plan-row>div:first-child span{color:var(--muted);font-size:10px}.sa-plan-row .progress-track{height:5px}.sa-plan-row .progress-track span{background:var(--blue)}.sa-commercial-foot{display:flex;align-items:center;gap:9px;flex-wrap:wrap;padding-top:11px;border-top:1px solid var(--line);font-size:10px;color:var(--muted)}
.sa-failure-list{padding-top:4px;padding-bottom:4px}.sa-failure-row{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 0;border-bottom:1px solid var(--line)}.sa-failure-row:last-child{border-bottom:0}.sa-failure-row strong{font-size:11px;display:block}.sa-failure-row small{font-size:10px;color:var(--muted);display:block;margin-top:2px}.sa-failure-row>span{font-size:10px;color:var(--muted);white-space:nowrap}.sa-empty-ok{min-height:104px;display:grid;place-content:center;text-align:center;gap:4px}.sa-empty-ok strong{font-size:12px}.sa-empty-ok span{font-size:10px;color:var(--muted)}
@media(max-width:1380px){.sa-kpi-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.sa-overview-grid{grid-template-columns:1.2fr 1fr}.sa-overview-grid>.panel:last-child{grid-column:1/-1}.sa-secondary-grid{grid-template-columns:1fr 1fr}}
@media(max-width:980px){.sa-overview-grid,.sa-secondary-grid,.sa-bottom-grid{grid-template-columns:1fr}.sa-overview-grid>.panel:last-child{grid-column:auto}.sa-queue-row{grid-template-columns:1fr repeat(3,auto)}}
@media(max-width:620px){.sa-kpi-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.sa-storage-values{grid-template-columns:1fr}.sa-activity-grid{grid-template-columns:1fr 1fr}.sa-queue-row{grid-template-columns:1fr 1fr;gap:5px 12px}.sa-queue-row>strong{grid-column:1/-1}}

/* 2.3.2 — marque blanche Business */
.brand-custom-mark{width:32px;height:32px;flex:0 0 32px;border-radius:8px;background:var(--blue);color:#fff;display:grid;place-items:center;font-size:12px;font-weight:800;letter-spacing:.02em}
.custom-brand-logo{border-radius:6px}
.nav-item.active{color:var(--blue)}
.badge.info{color:var(--blue)}
.form-group input[type="color"]{height:42px;padding:4px;cursor:pointer}
.branding-preview{display:flex;align-items:center;gap:14px;border:1px solid var(--line);border-radius:11px;padding:12px;background:var(--panel-2)}
.branding-preview img{width:64px;height:64px;object-fit:contain;border:1px solid var(--line);border-radius:9px;background:#fff;padding:5px}
.branding-preview>div{display:grid;gap:8px}

/* Kpture 2.3.5 — Google/Firebase, reset password, TOTP */
.google-button{margin:0!important;background:#fff;color:#1f2937;border-color:#d7dee8;min-height:42px}.google-button:hover{background:#f8fafc;border-color:#bac6d6}.google-g{width:22px;height:22px;border:1px solid #d8dee8;border-radius:50%;display:grid;place-items:center;font-weight:800;font-size:13px;color:#4285f4;background:#fff}.auth-divider{display:flex;align-items:center;gap:10px;margin:17px 0 14px;color:var(--muted);font-size:11px}.auth-divider:before,.auth-divider:after{content:"";height:1px;background:var(--line);flex:1}.auth-divider span{white-space:nowrap}.auth-inline-link{font-size:11px;font-weight:600;color:var(--blue)}.auth-inline-link:hover{text-decoration:underline}.auth-google-error{min-height:0;color:var(--red);font-size:11px;line-height:1.4;margin-top:8px}.auth-google-error:not(:empty){padding:8px 10px;background:var(--red-soft);border-radius:8px}.auth-back{margin-top:17px;text-align:center;font-size:12px;color:var(--muted)}.auth-back a:hover{color:var(--blue)}.totp-input{text-align:center;font-size:22px;letter-spacing:.18em;font-variant-numeric:tabular-nums}.security-summary,.firebase-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.security-summary>div,.firebase-summary>div{border:1px solid var(--line);border-radius:10px;padding:11px 12px;background:var(--panel-2);min-width:0}.security-summary strong,.firebase-summary strong{display:block;font-size:11px;margin-bottom:4px}.security-summary span,.firebase-summary span{display:block;font-size:11px;color:var(--muted);overflow-wrap:anywhere}.secret-key{padding:10px 12px;border:1px solid var(--line);background:#f8fafc;border-radius:9px;overflow:auto}.secret-key code{font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:12px;letter-spacing:.06em}.totp-setup h3{font-size:14px;margin:0 0 7px}.totp-setup p{color:var(--muted);font-size:12px;line-height:1.5}.recovery-codes{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;margin-top:10px}.recovery-codes code{display:block;padding:8px 10px;border-radius:7px;background:#f4f6f9;border:1px solid var(--line);font-size:12px;text-align:center}.auth-admin-grid{grid-template-columns:minmax(0,1.1fr) minmax(0,.9fr)}.checkbox-main{width:100%;align-items:flex-start;padding:12px;border:1px solid var(--line);border-radius:10px;background:var(--panel-2)}.checkbox-main span{display:grid;gap:3px}.checkbox-main small{font-size:11px;color:var(--muted);font-weight:400}.danger-inline{border-top:1px solid var(--line);padding-top:16px}.two-factor-actions{display:grid;gap:0}
@media(max-width:900px){.auth-admin-grid{grid-template-columns:1fr}.security-summary,.firebase-summary{grid-template-columns:1fr}}
@media(max-width:520px){.recovery-codes{grid-template-columns:1fr}.label-row{align-items:flex-start;flex-direction:column;gap:4px}}

/* ========================================================================
   Kpture 2.4.2 — application shell refresh
   Reference-driven UI: compact left navigation, restrained header, dense
   white panels, contextual footer links and clear capture previews.
   ======================================================================== */
:root{
  --bg:#f8fafc;
  --panel:#fff;
  --panel-2:#fbfcfe;
  --line:#e7ebf1;
  --text:#111827;
  --muted:#6f7b8c;
  --navy:#182235;
  --blue:#4f6fe8;
  --blue-soft:#edf3ff;
  --green:#17a66a;
  --green-soft:#eaf8f1;
  --red:#ef4d52;
  --red-soft:#fff0f1;
  --amber:#eb921f;
  --amber-soft:#fff5e9;
  --shadow:0 1px 2px rgba(15,23,42,.025);
  --radius:9px;
  --sidebar:184px;
}

body{font-size:13px;background:var(--bg);color:var(--text)}
button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:2px solid color-mix(in srgb,var(--blue) 52%,white);outline-offset:2px}

/* Sidebar */
.sidebar{width:var(--sidebar);background:#fff;border-right:1px solid var(--line);box-shadow:none}
.brand{height:72px;padding:0 17px;gap:9px;border-bottom:0;font-size:15px;letter-spacing:.055em}
.brand .brand-logo{width:29px;height:29px;object-fit:contain}
.main-nav{padding:8px 7px 12px;gap:2px;overflow-y:auto;overscroll-behavior:contain}
.nav-item{height:36px;border-radius:7px;gap:10px;padding:0 11px;color:#263347;font-size:11.5px;font-weight:500}
.nav-item .icon{width:16px;height:16px;stroke-width:1.7}
.nav-item:hover{background:#f6f8fb;color:#152238}
.nav-item.active{background:var(--blue-soft);color:#245fc5;font-weight:650}
.nav-item.active:before{display:none}
.nav-count{min-width:17px;height:17px;padding:0 4px;font-size:9px;border-radius:999px}
.sidebar-bottom{padding:12px;border-top:1px solid var(--line);background:#fff}
.sidebar-banner{border-radius:8px;font-size:11px}
.plan-card{border-radius:8px;padding:10px 9px;gap:4px;background:#fff;box-shadow:none}
.plan-card>span{font-size:10px;color:#6b7280}
.plan-card>strong{font-size:11.5px;color:#172033}
.plan-card>small{font-size:9.5px;color:#8993a3;line-height:1.3}
.plan-card>a{font-size:10px;color:#2f66ca;font-weight:600;margin-top:2px}
.help-link{margin:9px 1px 0;display:flex;align-items:center;gap:7px;font-size:10px;color:#667284}
.help-link .icon{width:14px;height:14px}
.sidebar-help{padding-top:8px;border-top:1px solid #f0f2f5}

/* Workspace + topbar */
.workspace{margin-left:var(--sidebar)}
.topbar{height:72px;padding:0 17px 0 22px;background:rgba(255,255,255,.98);border-bottom:1px solid var(--line);backdrop-filter:blur(12px)}
.global-search{margin-left:auto;margin-right:30px;width:min(258px,28vw);height:34px;border-radius:7px;background:#f7f9fc;border-color:#e5e9ef;padding:0 10px;gap:7px;font-size:11px}
.global-search .icon{width:15px;height:15px}
.global-search input::placeholder{color:#8b95a5}
.top-actions{gap:8px}
.top-actions>.language-switcher{margin-right:2px}
.icon-button{padding:7px;border-radius:7px;color:#283548}
.icon-button:hover{background:#f5f7fa}
.top-help{color:#59677b}
.dot{right:-1px;top:-2px;min-width:15px;height:15px;font-size:8px;border-width:1.5px}
.topbar-context{font-size:12px;color:#4f5d70}

/* Profile dropdown */
.profile-menu{position:relative;margin-left:2px}
.profile-trigger{appearance:none;border:0;background:transparent;display:flex;align-items:center;gap:8px;padding:4px 5px 4px 4px;border-radius:8px;cursor:pointer;text-align:left}
.profile-trigger:hover,.profile-menu.open .profile-trigger{background:#f5f7fa}
.profile-trigger>.icon{width:14px;height:14px;color:#7a8798;margin-left:1px}
.profile-copy{display:grid;gap:0;min-width:84px;max-width:145px}
.profile-copy strong{font-size:10.5px;line-height:1.25;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.profile-copy small{font-size:9px;color:#7a8798;line-height:1.25;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.avatar{width:29px;height:29px;font-size:10px;background:#e8edf3;color:#283548}
.profile-dropdown{position:absolute;right:0;top:calc(100% + 9px);width:218px;background:#fff;border:1px solid var(--line);border-radius:10px;box-shadow:0 14px 36px rgba(15,23,42,.12);padding:6px;z-index:80}
.profile-dropdown[hidden]{display:none!important}
.profile-dropdown-head{display:grid;gap:2px;padding:8px 9px 9px;border-bottom:1px solid var(--line);margin-bottom:4px}
.profile-dropdown-head strong{font-size:11px}
.profile-dropdown-head small{font-size:9.5px;color:var(--muted);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.profile-dropdown>a{display:flex;align-items:center;gap:8px;padding:8px 9px;border-radius:7px;font-size:10.5px;color:#344155}
.profile-dropdown>a:hover{background:#f5f7fa}
.profile-dropdown>a .icon{width:15px;height:15px}
.profile-dropdown .profile-logout{margin-top:4px;border-top:1px solid var(--line);border-radius:0 0 7px 7px;padding-top:9px;color:#a7353a}

/* Main content */
.content{padding:24px 22px 46px;max-width:1720px;margin:0 auto}
.page-title{margin-bottom:18px;min-height:42px}
.page-title h1{font-size:21px;letter-spacing:-.025em;font-weight:680}
.page-title p{margin-top:5px;font-size:11px;color:#7a8798}
.page-actions{gap:7px}
.button{height:34px;border-radius:7px;padding:0 11px;font-size:10.5px;box-shadow:none}
.button.small{height:29px;padding:0 9px;font-size:10px}
.panel{border-radius:var(--radius);box-shadow:var(--shadow);border-color:var(--line)}
.panel-head{padding:12px 13px;border-bottom:1px solid #edf0f4}
.panel-head h2,.panel-head h3{font-size:11.5px;font-weight:650}
.panel-head p{font-size:9.5px;margin-top:3px;color:#8791a0}
.panel-body{padding:13px}
.panel-metric{font-size:12px;font-weight:700}
.grid{gap:10px}

/* Dashboard */
.stats-grid{grid-template-columns:repeat(6,minmax(0,1fr));gap:9px;margin-bottom:12px}
.stat-card{min-height:91px;padding:13px 12px;border-radius:8px;box-shadow:none}
.stat-card .label{font-size:10px;margin-bottom:13px;color:#364255}
.stat-card .stat-value{display:flex;align-items:baseline;gap:7px}
.stat-card strong{font-size:22px;font-weight:650;letter-spacing:-.035em}
.stat-icon{right:11px;top:28px;width:34px;height:34px;border-radius:8px}
.stat-icon .icon{width:18px;height:18px}
.stat-trend{font-size:9px;font-weight:650}
.stat-trend.up{color:var(--green)}
.stat-trend.down{color:var(--red)}
.stat-trend.neutral{color:#95a0af}
.dashboard-mid{grid-template-columns:1.12fr 1.35fr 1.1fr;gap:10px;margin-bottom:10px}
.dashboard-bottom{grid-template-columns:minmax(0,2.35fr) minmax(250px,.95fr);gap:10px}
.dashboard-panel{display:flex;flex-direction:column;min-width:0}
.dashboard-panel>.panel-body,.dashboard-panel>.table-wrap{flex:1}
.progress-list{gap:12px}
.progress-row{gap:5px}
.progress-meta{font-size:9.5px}
.progress-track{height:3px}
.chart{height:164px;margin:4px 2px 0;color:#3974e8;background:repeating-linear-gradient(0deg,#fff 0,#fff 31px,#edf1f5 32px),repeating-linear-gradient(90deg,transparent 0,transparent 62px,#edf1f5 63px);border-color:#e8edf3}
.chart-labels{font-size:8.5px;margin:5px 2px 0;gap:4px}
.alert-list{padding-top:6px;padding-bottom:6px}
.alert-item{gap:8px;padding:9px 0}
.alert-item .signal{width:24px;height:24px;border-radius:6px}
.alert-item strong{font-size:9.8px;margin-bottom:2px}
.alert-item small{font-size:8.8px;line-height:1.3}
.alert-age{margin-top:3px;color:#9aa3af!important}
.badge{height:20px;padding:0 7px;font-size:9px}
.panel-footer-link{min-height:31px;border-top:1px solid #edf0f4;display:flex;align-items:center;justify-content:center;padding:7px 10px;font-size:9.5px;font-weight:600;color:#2e68cf;background:#fff;border-radius:0 0 var(--radius) var(--radius)}
.panel-footer-link:hover{background:#fafcff;color:#1f59bd}
.empty-compact{min-height:86px;display:grid;place-items:center;text-align:center;color:#8a95a5;font-size:10px;padding:12px}
.success-empty{color:#5f7f70}
.list-lines{padding-top:4px;padding-bottom:4px}
.list-line{padding:10px 0;font-size:9.8px}
.list-line>div{display:grid;gap:2px}
.list-line>div small{font-size:8.6px}
.list-line>small{font-size:8.8px;text-align:right}
.text-attention{color:#c87412!important;font-weight:650}

/* Tables and capture presentation */
.table-wrap{border-radius:0 0 var(--radius) var(--radius)}
.data-table th{font-size:9px;font-weight:650;padding:9px 10px;color:#536174;background:#fff}
.data-table td{font-size:9.8px;padding:9px 10px}
.data-table tbody tr:hover{background:#fafbfd}
.data-table td>strong{font-size:10px}
.capture-age{display:block;margin-top:2px;font-size:8.4px;color:#8b96a5}
.thumb{width:58px;height:33px;border-radius:4px}
.thumb-button{border-radius:5px}
.table-actions{gap:2px;white-space:nowrap}
.table-actions .icon-button{padding:5px}
.dashboard-captures th:last-child,.dashboard-captures td:last-child{text-align:center}
.tabs{gap:3px;margin-bottom:12px}
.tabs a{font-size:10px;padding:7px 10px;border-radius:7px}
.collection-grid{gap:10px}

/* Forms */
.field,.search{height:36px;border-radius:7px;font-size:11px}
.form-group label{font-size:10.5px}
.form-group small{font-size:9.5px}
.form-group input,.form-group select,.form-group textarea{border-radius:7px;padding:9px 10px;font-size:11px}
.toolbar{gap:7px;margin-bottom:11px}

/* Lightbox keeps the actual capture as the focus. */
.capture-lightbox{background:rgba(13,20,32,.48)}
.capture-lightbox-card{border-radius:12px}
.capture-lightbox-head{padding:12px 14px}
.capture-lightbox-actions{padding:10px 14px}

/* Super Admin uses exactly the same shell language. */
.superadmin-badge{margin:0 10px 7px;padding:5px 8px;border-radius:6px;font-size:8.5px;letter-spacing:.08em}
.superadmin-shell .content{max-width:1720px}
.superadmin-shell .page-title h1{font-size:21px}

/* Existing page-action blocks use inline negative margins; normalize them to
   the new 42px page heading while preserving every existing action. */
.content>.page-actions[style]{margin-top:-53px!important;margin-bottom:17px!important}

@media(max-width:1320px){
  :root{--sidebar:176px}
  .stats-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
  .dashboard-mid{grid-template-columns:1fr 1fr}
  .dashboard-mid>.panel:last-child{grid-column:1/-1}
  .dashboard-bottom{grid-template-columns:1.8fr .9fr}
  .profile-copy{display:none}
  .global-search{margin-right:18px;width:min(280px,34vw)}
}
@media(max-width:1000px){
  .dashboard-mid,.dashboard-bottom{grid-template-columns:1fr}
  .dashboard-mid>.panel:last-child{grid-column:auto}
  .stats-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .global-search{width:min(320px,42vw)}
}
@media(max-width:860px){
  :root{--sidebar:210px}
  .sidebar{transform:translateX(-100%);transition:transform .18s ease;box-shadow:0 16px 48px rgba(15,23,42,.15)}
  .sidebar.open{transform:translateX(0)}
  .workspace{margin-left:0}
  .mobile-menu{display:inline-flex;margin-right:8px}
  .topbar{padding:0 12px}
  .global-search{margin-left:0;margin-right:auto;width:min(340px,48vw)}
  .content{padding:20px 14px 38px}
}
@media(max-width:620px){
  .topbar{height:64px}
  .global-search{width:auto;flex:1;margin-right:5px}
  .top-help,.top-actions>.language-switcher{display:none}
  .profile-trigger>.icon{display:none}
  .stats-grid{grid-template-columns:1fr 1fr}
  .stat-card{min-height:84px}
  .dashboard-mid,.dashboard-bottom{gap:9px}
  .page-title h1{font-size:19px}
  .content>.page-actions[style]{margin-top:0!important;margin-bottom:12px!important;justify-content:flex-start!important;flex-wrap:wrap}
}
@media(max-width:430px){
  .stats-grid{grid-template-columns:1fr}
  .global-search{display:none}
  .top-actions{margin-left:auto}
}


/* Kpture 2.5.3 — Time + Visuels + auth pleine page */
.capture-tabs a{display:inline-flex;align-items:center;gap:6px}.time-toolbar{margin-bottom:16px}.time-filter{display:grid;grid-template-columns:minmax(280px,1fr) 180px auto;gap:12px;align-items:end}.time-stage{background:#101821;border-radius:0;padding:18px;min-height:520px;display:grid;place-items:center;position:relative;overflow:auto}.time-stage>img{max-width:100%;max-height:68vh;object-fit:contain;background:#fff;border-radius:6px}.time-stage-meta{position:absolute;left:28px;bottom:28px;background:rgba(10,20,31,.86);color:#fff;border:1px solid rgba(255,255,255,.12);border-radius:10px;padding:10px 12px;display:grid;gap:3px;backdrop-filter:blur(8px)}.time-stage-meta strong{font-size:12px}.time-stage-meta span{font-size:10px;color:#c8d3df}.time-controls{display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:12px;padding:15px 18px 8px}.time-controls input[type=range]{width:100%;accent-color:var(--blue)}.time-scale{display:flex;align-items:center;padding:2px 28px 18px;min-height:32px;overflow:hidden}.time-point{flex:1;height:18px;border:0;background:transparent;position:relative;cursor:pointer;padding:0}.time-point:before{content:"";position:absolute;left:0;right:0;top:8px;height:2px;background:#dfe5ed}.time-point:first-child:before{left:50%}.time-point:last-child:before{right:50%}.time-point span{position:absolute;width:8px;height:8px;border-radius:50%;background:#aab7c6;left:50%;top:5px;transform:translateX(-50%);z-index:1}.time-point.changed span{background:#e29a2d}.time-point.active span{width:12px;height:12px;top:3px;background:var(--blue);box-shadow:0 0 0 4px #e8f1ff}.time-select-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(130px,1fr));gap:9px;max-height:420px;overflow:auto}.time-select-card,.visual-source-card{position:relative;border:1px solid var(--line);border-radius:10px;background:#fff;overflow:hidden;cursor:pointer}.time-select-card input,.visual-source-card input{position:absolute;top:8px;left:8px;z-index:2;width:17px;height:17px;accent-color:var(--blue)}.time-select-card img{width:100%;height:85px;object-fit:cover;object-position:top;background:#edf1f5;display:block}.time-select-card span{display:block;padding:8px;font-size:10px}.time-select-card:has(input:checked),.visual-source-card:has(input:checked){border-color:#75a9f6;box-shadow:0 0 0 2px #e6f0ff}.visual-create-bar{margin-top:14px;display:grid;grid-template-columns:190px 1fr auto;gap:10px}.visual-create-bar select,.visual-create-bar input{border:1px solid var(--line);border-radius:9px;padding:0 11px;height:40px}.visuals-layout{display:grid;grid-template-columns:1.15fr .85fr;gap:16px}.visual-source-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(180px,1fr));gap:9px;max-height:480px;overflow:auto;margin-top:15px}.visual-source-card{display:grid;grid-template-rows:105px auto}.visual-source-card img{width:100%;height:105px;object-fit:cover;object-position:top;background:#eef2f6}.visual-source-card>span{padding:9px;display:grid;gap:3px}.visual-source-card strong{font-size:11px}.visual-source-card small{font-size:9px;color:var(--muted)}.visual-output-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(270px,1fr));gap:13px;padding:16px}.visual-output-card{border:1px solid var(--line);border-radius:12px;background:#fff;overflow:hidden}.visual-output-card>a{display:block;background:#e9edf2}.visual-output-card img{width:100%;height:170px;object-fit:cover;object-position:top;display:block}.visual-output-card>div{padding:12px;display:grid;gap:5px}.visual-output-card>div>span{font-size:9px;font-weight:800;text-transform:uppercase;color:#6c7d91}.visual-output-card>div>strong{font-size:12px}.visual-output-card>div>small{font-size:10px;color:var(--muted)}.visual-output-card .table-actions{margin-top:5px;align-items:center}.visual-output-viewer{background:#111821;border-radius:10px;padding:14px;display:grid;place-items:center;overflow:auto}.visual-output-viewer img{max-width:100%;height:auto;background:#fff;border-radius:5px}
.auth-shell.auth-full{min-height:100vh;display:block;background:#fff}.auth-full .auth-header{height:82px;border-bottom:1px solid var(--line);display:flex;align-items:center;padding:0 clamp(20px,5vw,70px)}.auth-full .auth-header-inner{width:100%;display:flex;align-items:center;justify-content:space-between}.auth-full .auth-logo{position:static;color:var(--text)}.auth-full .auth-header-link{font-size:12px;color:var(--muted)}.auth-full .auth-header-link a{color:#225fba;font-weight:700}.auth-full .auth-panel{min-height:calc(100vh - 82px);background:#fff;display:flex;align-items:flex-start;justify-content:center;padding:64px 24px 80px}.auth-full .auth-card{width:min(520px,100%);box-shadow:none;border:0;padding:0}.auth-full .auth-card h2{font-size:31px;letter-spacing:-.035em;margin-bottom:9px}.auth-full .signup-layout{display:block;width:min(580px,100%)}.auth-full .signup-side{display:none}.auth-full .auth-plan-summary{margin-bottom:20px}
@media(max-width:980px){.visuals-layout{grid-template-columns:1fr}.time-filter{grid-template-columns:1fr 150px auto}}
@media(max-width:720px){.time-filter,.visual-create-bar{grid-template-columns:1fr}.time-stage{min-height:360px;padding:10px}.time-scale{padding-left:14px;padding-right:14px}.visual-output-grid{grid-template-columns:1fr}.auth-full .auth-panel{padding-top:42px}}


/* Kpture 2.5.3 — clearer auth surfaces and visible plan selection */
.auth-full .auth-panel{background:#fff;padding-top:58px}
.auth-full .auth-card{background:#f6f7f9;border:1px solid #e4e8ee;border-radius:18px;padding:28px 30px;box-shadow:0 14px 40px rgba(20,35,52,.055)}
.auth-full .auth-card h2{letter-spacing:-.028em}
.auth-full .auth-card>.form-grid,.auth-full .auth-card>.google-button,.auth-full .auth-card>.auth-divider,.auth-full .auth-card>.auth-google-error{position:relative}
.auth-full .form-group input,.auth-full .form-group select,.auth-full .form-group textarea{background:#fff;border-color:#d9dfe7}
.auth-full .form-group input:focus,.auth-full .form-group select:focus,.auth-full .form-group textarea:focus{border-color:#8fa9cf;box-shadow:0 0 0 3px rgba(47,119,237,.08)}
.auth-full .signup-layout{width:min(760px,100%)}
.auth-full .signup-layout>.auth-card{width:100%}
.signup-plan-picker{margin:24px 0 20px}.signup-plan-head{display:flex;justify-content:space-between;align-items:center;gap:14px;margin-bottom:12px}.signup-plan-head>div:first-child{display:grid;gap:3px}.signup-plan-head strong{font-size:12px}.signup-plan-head span{font-size:10px;color:var(--muted)}
.billing-toggle.compact{display:flex;gap:3px;background:#eef1f5;border-radius:8px;padding:3px}.billing-toggle.compact button{height:27px;border:0;background:transparent;border-radius:6px;padding:0 9px;font-size:9.5px;color:#69778a;cursor:pointer}.billing-toggle.compact button.active{background:#fff;color:#1c2c42;box-shadow:0 1px 3px rgba(15,23,42,.08)}
.signup-plan-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}.signup-plan-card{position:relative;text-align:left;border:1px solid #dfe4eb;background:#fff;border-radius:10px;padding:12px 10px;min-height:104px;display:grid;align-content:start;gap:5px;cursor:pointer;color:#1d2939}.signup-plan-card:hover{border-color:#b9c7da}.signup-plan-card.active{border-color:#5878df;background:#f1f4ff;box-shadow:0 0 0 2px rgba(79,111,232,.09)}.signup-plan-check{position:absolute;right:8px;top:8px;width:18px;height:18px;border-radius:50%;background:#5676e4;color:#fff;display:grid;place-items:center;font-size:10px}.signup-plan-card:not(.active) .signup-plan-check{background:#eef1f5}.signup-plan-card>strong{font-size:11px}.signup-plan-card>small{font-size:8.8px;color:#7b8797}.signup-plan-price{display:flex;align-items:baseline;gap:3px}.signup-plan-price b{font-size:15px;letter-spacing:-.02em}.signup-plan-price small{font-size:8px;color:#8a95a3}
.auth-full .google-button{background:#fff;border-color:#d9dfe7}
.auth-full .checkbox{line-height:1.45}
@media(max-width:760px){.signup-plan-grid{grid-template-columns:1fr 1fr}.signup-plan-head{align-items:flex-start;flex-direction:column}.auth-full .auth-card{padding:22px 20px}}
@media(max-width:440px){.signup-plan-grid{grid-template-columns:1fr}}

/* Kpture 2.5.5 — accessibilité globale + densité d'interface */
.app-shell{font-size:13px}.app-shell .content{font-size:13px}.app-shell .nav-item{font-size:12px}.app-shell .global-search,.app-shell .profile-copy strong{font-size:12px}.app-shell .profile-copy small{font-size:10px}.app-shell .page-title h1{font-size:22px}.app-shell .panel-head h2,.app-shell .panel-head h3{font-size:12px}.app-shell .data-table th{font-size:10px}.app-shell .data-table td{font-size:11px}.app-shell .button{font-size:12px}.app-shell .form-group label{font-size:11.5px}
.skip-link{position:fixed;left:14px;top:10px;z-index:10000;padding:10px 14px;border-radius:9px;background:#111827;color:#fff;font-weight:700;transform:translateY(-160%);transition:transform .12s ease}.skip-link:focus{transform:translateY(0)}
.sr-only{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}
.a11y-trigger{display:inline-flex;align-items:center;justify-content:center;gap:5px;min-width:38px;height:34px;padding:0 9px;border:1px solid var(--line,#dfe5ec);border-radius:9px;background:#fff;color:#27364a;font-weight:750;font-size:12px;cursor:pointer}.a11y-trigger:hover{background:#f6f8fb;border-color:#cbd5e1}.a11y-trigger[aria-expanded="true"]{background:#eef4ff;border-color:#a8c6f8;color:#155dc7}.page-home .a11y-trigger{background:rgba(255,255,255,.06);border-color:rgba(255,255,255,.22);color:#fff}.page-home .a11y-trigger:hover{background:rgba(255,255,255,.11)}.a11y-floating{position:fixed;right:16px;bottom:16px;z-index:9997;box-shadow:0 12px 30px rgba(15,23,42,.16)}
.a11y-panel{position:fixed;right:18px;top:74px;z-index:9998;width:min(390px,calc(100vw - 28px));max-height:calc(100vh - 92px);overflow:auto;background:#fff;color:#172033;border:1px solid #dfe5ec;border-radius:16px;box-shadow:0 24px 70px rgba(15,23,42,.2);padding:0}.a11y-panel[hidden]{display:none!important}.a11y-panel-head{position:sticky;top:0;background:#fff;z-index:2;display:flex;align-items:center;justify-content:space-between;gap:14px;padding:16px 17px;border-bottom:1px solid #e8ebef}.a11y-panel-head strong{font-size:15px;letter-spacing:-.01em}.a11y-panel-head small{display:block;color:#738093;font-size:11px;margin-top:2px}.a11y-close{width:32px;height:32px;border:0;border-radius:8px;background:#f3f5f8;cursor:pointer;font-size:20px;line-height:1}
.a11y-section{padding:15px 17px;border-bottom:1px solid #edf0f3}.a11y-section:last-child{border-bottom:0}.a11y-section h3{font-size:12px;margin:0 0 10px;color:#536176}.a11y-row{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.a11y-row+.a11y-row{margin-top:9px}.a11y-control{height:34px;padding:0 10px;border:1px solid #dce2e9;border-radius:8px;background:#fff;color:#27364a;font-size:12px;font-weight:650;cursor:pointer}.a11y-control:hover{background:#f7f9fb}.a11y-control.active{background:#18324d;border-color:#18324d;color:#fff}.a11y-control:disabled{opacity:.45;cursor:not-allowed}.a11y-select{height:34px;border:1px solid #dce2e9;border-radius:8px;background:#fff;padding:0 8px;font-size:12px;max-width:100%}.a11y-switch{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;width:100%;padding:8px 0}.a11y-switch-copy{display:grid;gap:2px}.a11y-switch-copy strong{font-size:12px}.a11y-switch-copy small{font-size:10px;color:#768294;line-height:1.35}.a11y-switch input{width:18px;height:18px;margin:1px 0 0;accent-color:#2f77ed}.a11y-status{font-size:10px;color:#6f7b8d;min-height:15px;margin-top:7px}.a11y-nav-grid{display:grid;grid-template-columns:1fr auto;gap:8px}.a11y-nav-grid select{min-width:0}
.a11y-image-text{display:flex;align-items:flex-start;justify-content:center;min-height:54px;padding:11px 12px;border:1px dashed #aeb9c7;border-radius:8px;background:#f7f9fb;color:#445164;font-size:12px;line-height:1.45;text-align:left}.a11y-image-text:before{content:"Image : ";font-weight:750;margin-right:4px}.a11y-image-hidden{display:none!important}.a11y-time-summary{margin-top:14px;padding:13px 15px;border:1px solid var(--line);border-radius:10px;background:#f8fafc}.a11y-time-summary h3{font-size:13px;margin:0 0 8px}.a11y-time-summary ul{margin:0;padding-left:20px;display:grid;gap:5px}.a11y-time-summary li{font-size:12px;line-height:1.45;color:#536176}
html[data-a11y-font="small"] .app-shell{font-size:12px}html[data-a11y-font="normal"] .app-shell{font-size:13px}html[data-a11y-font="large"] .app-shell{font-size:14.5px}html[data-a11y-font="xlarge"] .app-shell{font-size:16px}
html[data-a11y-font="small"] .app-shell .nav-item{font-size:10.5px}html[data-a11y-font="small"] .app-shell .content{font-size:12px}html[data-a11y-font="small"] .app-shell .page-title h1{font-size:20px}html[data-a11y-font="small"] .app-shell .panel-head h2,html[data-a11y-font="small"] .app-shell .panel-head h3{font-size:11px}html[data-a11y-font="small"] .app-shell .data-table th{font-size:9px}html[data-a11y-font="small"] .app-shell .data-table td{font-size:10px}html[data-a11y-font="small"] .app-shell .button,html[data-a11y-font="small"] .app-shell .form-group label{font-size:10.5px}
html[data-a11y-font="large"] .app-shell .nav-item,html[data-a11y-font="large"] .app-shell .content{font-size:14.5px}html[data-a11y-font="large"] .app-shell .page-title h1{font-size:25px}html[data-a11y-font="large"] .app-shell .panel-head h2,html[data-a11y-font="large"] .app-shell .panel-head h3{font-size:14px}html[data-a11y-font="large"] .app-shell .data-table th{font-size:11.5px}html[data-a11y-font="large"] .app-shell .data-table td{font-size:13px}html[data-a11y-font="large"] .app-shell .button,html[data-a11y-font="large"] .app-shell .form-group label{font-size:13.5px}
html[data-a11y-font="xlarge"] .app-shell .nav-item,html[data-a11y-font="xlarge"] .app-shell .content{font-size:16px}html[data-a11y-font="xlarge"] .app-shell .page-title h1{font-size:29px}html[data-a11y-font="xlarge"] .app-shell .panel-head h2,html[data-a11y-font="xlarge"] .app-shell .panel-head h3{font-size:16px}html[data-a11y-font="xlarge"] .app-shell .data-table th{font-size:13px}html[data-a11y-font="xlarge"] .app-shell .data-table td{font-size:14.5px}html[data-a11y-font="xlarge"] .app-shell .button,html[data-a11y-font="xlarge"] .app-shell .form-group label{font-size:15px}
html.a11y-line-spacing body{line-height:1.7}html.a11y-line-spacing p,html.a11y-line-spacing li,html.a11y-line-spacing td{line-height:1.7!important}html.a11y-links a:not(.button):not(.nav-item):not(.brand):not(.marketing-brand){text-decoration:underline!important;text-underline-offset:3px;text-decoration-thickness:2px}html.a11y-strong-focus :focus-visible{outline:3px solid #ffbf47!important;outline-offset:3px!important;box-shadow:none!important}
html.a11y-high-contrast{--text:#000;--muted:#252525;--line:#757575;--bg:#fff;--panel:#fff;--panel-2:#fff;--blue:#0047b3;--blue-soft:#e7f0ff}html.a11y-high-contrast .panel,html.a11y-high-contrast .card,html.a11y-high-contrast .data-table td,html.a11y-high-contrast .data-table th{border-color:#777!important}html.a11y-high-contrast .muted{color:#222!important}
html.a11y-dark body{background:#111923;color:#eef3f8}html.a11y-dark .app-shell{--bg:#111923;--panel:#17212d;--panel-2:#1b2734;--line:#334252;--text:#f2f5f8;--muted:#aeb9c5;background:var(--bg);color:var(--text)}html.a11y-dark .sidebar,html.a11y-dark .topbar,html.a11y-dark .panel,html.a11y-dark .card,html.a11y-dark .data-table td,html.a11y-dark .data-table th,html.a11y-dark .form-group input,html.a11y-dark .form-group select,html.a11y-dark .form-group textarea{background:#17212d;color:#eef3f8;border-color:#334252}html.a11y-dark .global-search{background:#1b2734;border-color:#334252}html.a11y-dark .a11y-panel{background:#17212d;color:#eef3f8;border-color:#334252}html.a11y-dark .a11y-panel-head{background:#17212d;border-color:#334252}html.a11y-dark .a11y-section{border-color:#334252}html.a11y-dark .a11y-control,html.a11y-dark .a11y-select{background:#1b2734;color:#eef3f8;border-color:#415267}html.a11y-dark .a11y-switch-copy small,html.a11y-dark .a11y-section h3{color:#b9c3ce}html.a11y-dark .auth-shell{background:#111923;color:#eef3f8}html.a11y-dark .auth-header,html.a11y-dark .auth-panel,html.a11y-dark .auth-card{background:#17212d;color:#eef3f8;border-color:#334252}
html.a11y-text-mode [aria-hidden="true"],html.a11y-text-mode .cinematic-product-glow,html.a11y-text-mode .stat-icon{display:none!important}html.a11y-text-mode .chart{background:none!important;border:1px solid var(--line)}html.a11y-reduce-motion *,html.a11y-reduce-motion *::before,html.a11y-reduce-motion *::after{scroll-behavior:auto!important;animation-duration:.001ms!important;animation-iteration-count:1!important;transition-duration:.001ms!important}@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;animation-duration:.001ms!important;animation-iteration-count:1!important;transition-duration:.001ms!important}}@media(max-width:720px){.a11y-panel{top:64px;right:10px;max-height:calc(100vh - 78px)}.a11y-trigger:not(.a11y-floating){min-width:34px;padding:0 7px}.a11y-trigger .a11y-label{display:none}}


/* Kpture 2.5.6 — mode sombre par composants.
   Corrige les surfaces restées claires et les contrastes trop faibles de 2.5.5. */
html.a11y-dark{
  color-scheme:dark;
  --bg:#0f1823;
  --panel:#162230;
  --panel-2:#1a2837;
  --line:#314356;
  --text:#edf3f8;
  --muted:#9faebe;
  --blue:#6aa2ff;
  --blue-soft:#1d3859;
  --green:#4dd49a;
  --green-soft:#153a30;
  --red:#ff7278;
  --red-soft:#47252a;
  --amber:#f4b35b;
  --amber-soft:#48351f;
  --shadow:0 1px 2px rgba(0,0,0,.22);
}
html.a11y-dark body,
html.a11y-dark .app-shell,
html.a11y-dark .workspace,
html.a11y-dark .content{background:var(--bg);color:var(--text)}
html.a11y-dark .sidebar{background:#142130;border-color:var(--line);color:var(--text)}
html.a11y-dark .brand{color:#f5f8fb;border-color:var(--line)}
html.a11y-dark .main-nav{background:#142130}
html.a11y-dark .nav-item{color:#b9c6d4}
html.a11y-dark .nav-item:hover{background:#1d2c3d;color:#fff}
html.a11y-dark .nav-item.active{background:#203c60;color:#9fc5ff}
html.a11y-dark .nav-item.active .icon{color:#9fc5ff}
html.a11y-dark .sidebar-bottom{background:#142130;border-color:var(--line)}
html.a11y-dark .sidebar-help{border-color:var(--line)}
html.a11y-dark .plan-card,
html.a11y-dark .sidebar-banner{background:#192838;border-color:#3a4c60;color:var(--text)}
html.a11y-dark .plan-card>span,
html.a11y-dark .plan-card>small,
html.a11y-dark .help-link{color:var(--muted)}
html.a11y-dark .plan-card>strong{color:var(--text)}
html.a11y-dark .plan-card>a{color:#8eb9ff}

html.a11y-dark .topbar{background:rgba(18,31,44,.96);border-color:var(--line);color:var(--text)}
html.a11y-dark .global-search{background:#192838;border-color:#35495d;color:var(--muted)}
html.a11y-dark .global-search input{color:var(--text)}
html.a11y-dark .global-search input::placeholder{color:#8493a4}
html.a11y-dark .icon-button{color:#bdc9d6}
html.a11y-dark .icon-button:hover,
html.a11y-dark .profile-trigger:hover,
html.a11y-dark .profile-menu.open .profile-trigger{background:#1d2c3d}
html.a11y-dark .profile-copy strong{color:var(--text)}
html.a11y-dark .profile-copy small,
html.a11y-dark .profile-trigger>.icon{color:var(--muted)}
html.a11y-dark .avatar{background:#28394b;color:#f2f6fa}
html.a11y-dark .profile-dropdown{background:#172534;border-color:var(--line);color:var(--text);box-shadow:0 18px 42px rgba(0,0,0,.35)}
html.a11y-dark .profile-dropdown-head{border-color:var(--line)}
html.a11y-dark .profile-dropdown>a{color:#c4cfda}
html.a11y-dark .profile-dropdown>a:hover{background:#213246;color:#fff}
html.a11y-dark .profile-dropdown .profile-logout{border-color:var(--line);color:#ff8a8f}

html.a11y-dark .page-title h1,
html.a11y-dark .panel-head h2,
html.a11y-dark .panel-head h3,
html.a11y-dark .stat-card strong,
html.a11y-dark .list-line,
html.a11y-dark .progress-meta{color:var(--text)}
html.a11y-dark .page-title p,
html.a11y-dark .panel-head p,
html.a11y-dark .chart-labels,
html.a11y-dark .capture-age,
html.a11y-dark .list-line small{color:var(--muted)}

html.a11y-dark .panel,
html.a11y-dark .card,
html.a11y-dark .stat-card,
html.a11y-dark .sa-kpi-card,
html.a11y-dark .modal-card,
html.a11y-dark .capture-lightbox-card,
html.a11y-dark .branding-preview,
html.a11y-dark .security-summary>div,
html.a11y-dark .firebase-summary>div,
html.a11y-dark .checkbox-main{background:var(--panel);border-color:var(--line);color:var(--text);box-shadow:var(--shadow)}
html.a11y-dark .panel-head,
html.a11y-dark .panel-footer-link{border-color:var(--line)}
html.a11y-dark .panel-footer-link{background:#172534;color:#8db8ff}
html.a11y-dark .panel-footer-link:hover{background:#1d2e41;color:#b2d0ff}
html.a11y-dark .stat-card .label{color:#b9c5d1}
html.a11y-dark .stat-trend.neutral{color:#8f9dad}
html.a11y-dark .stat-icon.blue{background:#1c3a61;color:#8bb7ff}
html.a11y-dark .stat-icon.green{background:#153b31;color:#53dca2}
html.a11y-dark .stat-icon.red{background:#47262b;color:#ff858a}
html.a11y-dark .stat-icon.amber{background:#49361f;color:#f6bd70}

html.a11y-dark .progress-track{background:#293b4d}
html.a11y-dark .chart{
  color:#73a9ff;
  background-color:#13202d;
  background-image:
    repeating-linear-gradient(0deg,transparent 0,transparent 31px,#293b4d 32px),
    repeating-linear-gradient(90deg,transparent 0,transparent 62px,#293b4d 63px);
  background-blend-mode:normal;
  border-color:#304256;
}
html.a11y-dark .chart svg polyline{stroke:#70a8ff}
html.a11y-dark .chart svg line{stroke:#33485d}

html.a11y-dark .alert-item,
html.a11y-dark .list-line{border-color:var(--line)}
html.a11y-dark .badge.success{background:#153b31;color:#79e0b2}
html.a11y-dark .badge.danger{background:#47262b;color:#ff9296}
html.a11y-dark .badge.warning{background:#49361f;color:#ffd08e}
html.a11y-dark .badge.info{background:#1d3859;color:#a7c8ff}
html.a11y-dark .badge.neutral{background:#283746;color:#c2ccd6}

html.a11y-dark .data-table th{background:#172534;color:#aebccb;border-color:var(--line)}
html.a11y-dark .data-table td{background:var(--panel);color:var(--text);border-color:var(--line)}
html.a11y-dark .data-table tbody tr:hover td{background:#1b2a3a}
html.a11y-dark .thumb,
html.a11y-dark .empty-thumb{background:#243547;border-color:#405268;color:#aab8c6}
html.a11y-dark .thumb-button{background:transparent}

html.a11y-dark .button,
html.a11y-dark .field,
html.a11y-dark .search,
html.a11y-dark .form-group input,
html.a11y-dark .form-group select,
html.a11y-dark .form-group textarea,
html.a11y-dark .visual-create-bar select,
html.a11y-dark .visual-create-bar input{background:#1a2939;color:var(--text);border-color:#3a4c60}
html.a11y-dark .button:hover{background:#223348;border-color:#53677d}
html.a11y-dark .button.primary{background:#4f79dc;border-color:#4f79dc;color:#fff}
html.a11y-dark .button.primary:hover{background:#5d86e5}
html.a11y-dark .button.danger{background:#382328;border-color:#704047;color:#ff989c}
html.a11y-dark .field:focus,
html.a11y-dark .search:focus,
html.a11y-dark .form-group input:focus,
html.a11y-dark .form-group select:focus,
html.a11y-dark .form-group textarea:focus{border-color:#6b97df;box-shadow:0 0 0 3px rgba(92,140,218,.18)}
html.a11y-dark input::placeholder,
html.a11y-dark textarea::placeholder{color:#7f8e9e}
html.a11y-dark option{background:#1a2939;color:var(--text)}

html.a11y-dark .tabs a{color:#aebac7}
html.a11y-dark .tabs a:hover{background:#1d2c3d;color:#fff}
html.a11y-dark .tabs a.active{background:#203c60;color:#a8caff}
html.a11y-dark .time-select-card,
html.a11y-dark .visual-source-card,
html.a11y-dark .visual-output-card{background:var(--panel);border-color:var(--line);color:var(--text)}
html.a11y-dark .time-select-card:has(input:checked),
html.a11y-dark .visual-source-card:has(input:checked){border-color:#6f9ee6;box-shadow:0 0 0 2px rgba(94,146,226,.18)}
html.a11y-dark .time-select-card img,
html.a11y-dark .visual-source-card img{background:#223345}
html.a11y-dark .visual-output-card>a{background:#213142}
html.a11y-dark .visual-output-card>div>span,
html.a11y-dark .visual-output-card>div>small,
html.a11y-dark .visual-source-card small{color:var(--muted)}
html.a11y-dark .time-point:before{background:#3b4d61}
html.a11y-dark .time-point span{background:#76889b}
html.a11y-dark .time-point.active span{background:#72a8ff;box-shadow:0 0 0 4px #20364f}
html.a11y-dark .a11y-time-summary{background:#172534;border-color:var(--line)}
html.a11y-dark .a11y-time-summary li{color:#b7c3cf}

html.a11y-dark .sa-kpi-card:hover{background:#1b2a3a;border-color:#4c6076}
html.a11y-dark .sa-kpi-card.is-warning,
html.a11y-dark .sa-kpi-card.is-attention{background:#30291e;border-color:#715735}
html.a11y-dark .sa-kpi-card.is-danger{background:#352227;border-color:#734047}
html.a11y-dark .sa-kpi-card.is-success{background:#172c28;border-color:#35594c}
html.a11y-dark .sa-activity-grid{background:var(--line)}
html.a11y-dark .sa-activity-grid>div{background:var(--panel)}

html.a11y-dark .secret-key,
html.a11y-dark .recovery-codes code{background:#1a2939;border-color:#3a4c60;color:var(--text)}
html.a11y-dark .branding-preview img{background:#f4f6f8}

html.a11y-dark .a11y-panel{background:#172534;color:var(--text);border-color:#3b4d61}
html.a11y-dark .a11y-panel-head{background:#172534;border-color:#3b4d61}
html.a11y-dark .a11y-section{border-color:#33465a}
html.a11y-dark .a11y-close{background:#233548;color:#e8eef5}
html.a11y-dark .a11y-control,
html.a11y-dark .a11y-select{background:#1c2c3d;color:#edf3f8;border-color:#42566c}
html.a11y-dark .a11y-control:hover{background:#26394d}
html.a11y-dark .a11y-control.active{background:#4775d1;border-color:#4775d1;color:#fff}
html.a11y-dark .a11y-image-text{background:#1a2939;color:#c5d0db;border-color:#53677c}

html.a11y-dark .auth-shell,
html.a11y-dark .auth-full .auth-panel{background:#0f1823;color:var(--text)}
html.a11y-dark .auth-header{background:#142130;border-color:var(--line)}
html.a11y-dark .auth-full .auth-card{background:#172534;color:var(--text);border-color:#33465a;box-shadow:0 16px 42px rgba(0,0,0,.24)}
html.a11y-dark .auth-full .form-group input,
html.a11y-dark .auth-full .form-group select,
html.a11y-dark .auth-full .form-group textarea,
html.a11y-dark .auth-full .google-button,
html.a11y-dark .signup-plan-card{background:#1a2939;color:var(--text);border-color:#3a4c60}
html.a11y-dark .google-button:hover{background:#223348;border-color:#53677d}
html.a11y-dark .google-g{background:#fff}
html.a11y-dark .billing-toggle.compact{background:#223143}
html.a11y-dark .billing-toggle.compact button{color:#aeb9c5}
html.a11y-dark .billing-toggle.compact button.active{background:#30465d;color:#fff}
html.a11y-dark .signup-plan-card>small,
html.a11y-dark .signup-plan-price small{color:var(--muted)}
html.a11y-dark .signup-plan-card.active{background:#203652;border-color:#6f97e7;box-shadow:0 0 0 2px rgba(96,144,226,.15)}

/* Les captures, aperçus et visuels restent des documents : on ne leur applique
   jamais un filtre de couleur. Seule leur surface d'encadrement change. */
html.a11y-dark .time-stage,
html.a11y-dark .visual-output-viewer{background:#0a1119}
html.a11y-dark .time-stage>img,
html.a11y-dark .visual-output-viewer img{filter:none;background:#fff}

/* Mode contraste renforcé + sombre : conserver un contraste élevé sans revenir
   accidentellement aux couleurs claires. */
html.a11y-dark.a11y-high-contrast .app-shell{--line:#718198;--text:#fff;--muted:#d4dbe3}
html.a11y-dark.a11y-high-contrast .nav-item{color:#eef4fa}
html.a11y-dark.a11y-high-contrast .panel,
html.a11y-dark.a11y-high-contrast .card,
html.a11y-dark.a11y-high-contrast .stat-card,
html.a11y-dark.a11y-high-contrast .data-table td,
html.a11y-dark.a11y-high-contrast .data-table th{border-color:#718198!important}


/* Kpture 2.5.6 — correctif images vers texte + cases accessibilité homogènes */
.a11y-switch input[type="checkbox"]{
  width:24px!important;
  height:24px!important;
  min-width:24px;
  min-height:24px;
  flex:0 0 24px;
  margin:0;
  accent-color:#2f77ed;
  cursor:pointer;
}
.a11y-switch{align-items:center;min-height:42px}
.a11y-image-text{
  width:100%;
  max-width:100%;
  min-height:48px;
  overflow-wrap:anywhere;
  white-space:normal;
}
.thumb-button .a11y-image-text,
.capture-thumb .a11y-image-text,
.time-select-card .a11y-image-text,
.visual-source-card .a11y-image-text{
  min-width:130px;
  padding:9px 10px;
  font-size:11px;
}
html.a11y-dark .a11y-switch input[type="checkbox"]{accent-color:#6aa2ff}


/* Kpture 2.6.0 — Capture Hub intégré à l'interface existante */
.capture-hub-groups{display:grid;gap:7px;margin:0 0 16px}.capture-hub-groups>div{display:flex;align-items:center;gap:12px;min-width:0}.capture-hub-groups>div>span{width:142px;flex:0 0 142px;font-size:9px;font-weight:800;letter-spacing:.07em;color:#8a98a9}.capture-hub-groups .capture-tabs{margin:0;min-width:0;overflow:auto;flex-wrap:nowrap}.capture-hub-groups .capture-tabs a{white-space:nowrap}
.compare-filter{display:grid;grid-template-columns:1.4fr .8fr 1fr 1fr auto;gap:10px;align-items:end}.compare-filter .form-group{margin:0}.compare-mode-buttons{display:flex;gap:6px;flex-wrap:wrap}.compare-mode-buttons .active{border-color:#8bb4f6;background:#edf4ff;color:#1768d8}.compare-side{display:grid;grid-template-columns:1fr 1fr;gap:10px;padding:14px}.compare-side figure{margin:0;min-width:0}.compare-side figcaption{font-size:10px;color:#6e7e91;margin:0 0 6px}.compare-side img,.compare-slider-stage img,.compare-diff>img{display:block;width:100%;height:auto;border:1px solid #e1e7ee;border-radius:8px;background:#fff}.compare-slider{padding:14px}.compare-slider-stage{position:relative;overflow:hidden;border-radius:8px;background:#eef2f6}.compare-slider-top{position:absolute;inset:0 auto 0 0;width:50%;overflow:hidden}.compare-slider-top img{width:auto;max-width:none;height:auto;min-width:100%;border:0;border-radius:0}.compare-slider-stage>input[type=range]{position:absolute;left:3%;right:3%;bottom:12px;width:94%}.compare-slider-labels{display:flex;justify-content:space-between;font-size:10px;color:#6f7e90;margin-top:6px}.compare-diff{padding:14px}.api-secret-row{display:flex;gap:8px;margin-top:10px}.api-secret-row input{flex:1}.api-doc-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-top:18px}.api-doc-grid>div{display:grid;gap:5px;padding:12px;border:1px solid #e0e6ed;border-radius:10px;background:#fafcff}.api-doc-grid strong{font-size:11px}.api-doc-grid code{font-size:10px;overflow-wrap:anywhere}.api-doc-grid small{font-size:10px;color:#718096}
html.a11y-dark .capture-hub-groups>div>span{color:#91a0b0}html.a11y-dark .compare-mode-buttons .active{background:#203c60;color:#a8caff;border-color:#557cad}html.a11y-dark .compare-side img,html.a11y-dark .compare-slider-stage img,html.a11y-dark .compare-diff>img{border-color:#3a4c60;background:#fff}html.a11y-dark .compare-slider-stage{background:#0a1119}html.a11y-dark .api-doc-grid>div{background:#172534;border-color:#3a4c60}
@media(max-width:1050px){.compare-filter{grid-template-columns:1fr 1fr}.compare-filter .button{align-self:end}.capture-hub-groups>div{align-items:flex-start;flex-direction:column;gap:5px}.capture-hub-groups>div>span{width:auto;flex:auto}.compare-side{grid-template-columns:1fr}}@media(max-width:720px){.compare-filter{grid-template-columns:1fr}.api-doc-grid{grid-template-columns:1fr}.api-secret-row{display:grid}}

/* Kpture 2.6.1 — API sécurité, token principal et callbacks */
.api-primary-token,.api-webhook-secret{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:14px;border:1px solid #e0e6ed;border-radius:10px;background:#fafcff}.api-primary-token>div,.api-webhook-secret>div{display:grid;gap:5px}.api-primary-token .code{font-size:12px}.api-primary-token small,.api-webhook-secret small,.api-webhook-secret p{font-size:10px;color:#718096;margin:0}.api-code-example{border:1px solid #e0e6ed;border-radius:10px;background:#fbfcfe;margin:8px 0;overflow:hidden}.api-code-example summary{cursor:pointer;padding:11px 13px;font-size:11px;font-weight:750}.api-code-example pre,.callout pre{margin:0;padding:13px;background:#101722;color:#dbe7f4;overflow:auto;font-size:10px;line-height:1.55}.api-code-example code,.callout pre code{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono",monospace}.api-webhook-secret{margin-top:16px}
html.a11y-dark .api-primary-token,html.a11y-dark .api-webhook-secret,html.a11y-dark .api-code-example{background:#172534;border-color:#3a4c60}html.a11y-dark .api-primary-token small,html.a11y-dark .api-webhook-secret small,html.a11y-dark .api-webhook-secret p{color:#9fb0c2}
@media(max-width:720px){.api-primary-token,.api-webhook-secret{align-items:stretch;flex-direction:column}.api-primary-token form,.api-webhook-secret form,.api-primary-token .button,.api-webhook-secret .button{width:100%}}

/* KPTURE 2.6.5 — BASE TYPOGRAPHIQUE NORMALE 14 PX
   "Normal" = 14 px. Les tailles A− / A+ / A++ restent des choix d’accessibilité explicites. */
:root{--kpture-font-normal:14px}
body{font-size:14px}
.app-shell,html[data-a11y-font="normal"] .app-shell{font-size:14px}
.app-shell .content,html[data-a11y-font="normal"] .app-shell .content{font-size:14px}
.app-shell .nav-item,html[data-a11y-font="normal"] .app-shell .nav-item{font-size:14px}
.app-shell .global-search,.app-shell .profile-copy strong,.app-shell .profile strong{font-size:14px}
.app-shell .button,.app-shell .form-group label,.app-shell .form-group input,.app-shell .form-group select,.app-shell .form-group textarea{font-size:14px}
.app-shell .data-table th,.app-shell .data-table td{font-size:14px}
.app-shell .panel-head h2,.app-shell .panel-head h3{font-size:14px}
.app-shell .section-tabs a,.app-shell .list-line,.app-shell .progress-meta{font-size:14px}
.auth-full .auth-header-link,.auth-full .auth-card>p,.auth-account-link,.auth-card .form-group label,.auth-card .form-group input,.auth-card .form-group select,.auth-card .form-group textarea,.auth-card .button,.auth-card .google-button{font-size:14px}
.a11y-trigger,.a11y-control,.a11y-select,.a11y-section h3,.a11y-switch-copy strong,.a11y-image-text{font-size:14px}
/* Les métadonnées restent volontairement secondaires, sans passer sous 12 px en mode normal. */
.app-shell .profile small,.app-shell .form-group small,.app-shell .panel-head p,.app-shell .stat-card .label,.app-shell .alert-item small,.app-shell .chart-labels,.a11y-panel-head small,.a11y-switch-copy small,.a11y-status{font-size:12px}
html[data-a11y-font="small"] .app-shell{font-size:12.5px}
html[data-a11y-font="small"] .app-shell .content,html[data-a11y-font="small"] .app-shell .nav-item,html[data-a11y-font="small"] .app-shell .button,html[data-a11y-font="small"] .app-shell .form-group label,html[data-a11y-font="small"] .app-shell .data-table th,html[data-a11y-font="small"] .app-shell .data-table td{font-size:12.5px}
html[data-a11y-font="large"] .app-shell{font-size:16px}
html[data-a11y-font="large"] .app-shell .content,html[data-a11y-font="large"] .app-shell .nav-item,html[data-a11y-font="large"] .app-shell .button,html[data-a11y-font="large"] .app-shell .form-group label,html[data-a11y-font="large"] .app-shell .data-table th,html[data-a11y-font="large"] .app-shell .data-table td{font-size:16px}
html[data-a11y-font="xlarge"] .app-shell{font-size:18px}
html[data-a11y-font="xlarge"] .app-shell .content,html[data-a11y-font="xlarge"] .app-shell .nav-item,html[data-a11y-font="xlarge"] .app-shell .button,html[data-a11y-font="xlarge"] .app-shell .form-group label,html[data-a11y-font="xlarge"] .app-shell .data-table th,html[data-a11y-font="xlarge"] .app-shell .data-table td{font-size:18px}

/* Kpture 2.8.0 — accès direct aux sections sensibles des paramètres */
.settings-jump-nav{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin:0 0 16px;padding:10px 12px;border:1px solid var(--border,#dfe6ef);border-radius:12px;background:var(--surface,#fff)}
.settings-jump-nav a,.settings-jump-nav span{font-size:13px;line-height:1.2;padding:7px 10px;border-radius:8px;text-decoration:none}
.settings-jump-nav a{color:inherit;background:rgba(47,119,237,.07)}
.settings-jump-nav a:hover,.settings-jump-nav a:focus-visible{background:rgba(47,119,237,.14);outline:none}
.settings-jump-nav .danger-link{margin-left:auto;color:#a62a2a;background:rgba(190,45,45,.08);font-weight:700}
.settings-jump-nav .danger-link:hover,.settings-jump-nav .danger-link:focus-visible{background:rgba(190,45,45,.15)}
html.a11y-dark .settings-jump-nav{background:#13202d;border-color:#314357}
html.a11y-dark .settings-jump-nav a{background:rgba(116,165,255,.12)}
@media(max-width:760px){.settings-jump-nav .danger-link{margin-left:0}}

/* Kpture 2.8.0 — console SEO automatisée */
.seo-connectors-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
.seo-connector-card{border:1px solid var(--border,#dfe6ef);border-radius:14px;overflow:hidden;background:var(--surface,#fff)}
.seo-connector-card>.panel-head{border-bottom:1px solid var(--border,#e7edf4);margin:0;padding:14px 16px}
.seo-connector-card>.panel-body{padding:16px}
.seo-connector-actions{gap:8px;flex-wrap:wrap}
.seo-connector-card code{overflow-wrap:anywhere;word-break:break-word}
html.a11y-dark .seo-connector-card{background:#13202d;border-color:#314357}
html.a11y-dark .seo-connector-card>.panel-head{border-color:#314357}
@media(max-width:980px){.seo-connectors-grid{grid-template-columns:1fr}}

/* Kpture 2.8.0 R2 — header aligné, recherche globale et navigation par sections. */
.superadmin-shell .topbar-context{flex:0 0 auto}
.superadmin-shell .global-search{margin-left:auto}
.superadmin-shell .top-actions{flex:0 0 auto}
.section-tabs[data-section-tabs]{position:sticky;top:72px;z-index:12;display:flex;align-items:center;gap:4px;margin:0 0 16px;padding:4px;border:1px solid var(--line);border-radius:10px;background:rgba(248,250,252,.96);backdrop-filter:blur(10px);overflow-x:auto;box-shadow:0 1px 2px rgba(15,23,42,.03)}
.section-tabs[data-section-tabs] a{display:inline-flex;align-items:center;min-height:32px;padding:0 11px;border:0;border-radius:7px;color:#657286;font-size:12px;font-weight:600;white-space:nowrap}
.section-tabs[data-section-tabs] a:hover{background:#fff;color:#263347}
.section-tabs[data-section-tabs] a.active,.section-tabs[data-section-tabs] a[aria-selected="true"]{background:#fff;color:var(--blue);box-shadow:0 1px 2px rgba(15,23,42,.08)}
[data-tab-panel][hidden]{display:none!important}
.search-result-summary{margin:-4px 0 12px;color:var(--muted);font-size:11px}
.search-result-panel{margin-bottom:12px}
.search-result-link{padding-left:13px;padding-right:13px}
.search-result-link:hover{background:#f8fafc}
.search-result-link>span:first-child{min-width:0;display:grid;gap:3px}
.search-result-link strong,.search-result-link small{overflow-wrap:anywhere}
html.a11y-dark .section-tabs[data-section-tabs]{background:rgba(13,24,35,.96);border-color:#314357}
html.a11y-dark .section-tabs[data-section-tabs] a:hover,html.a11y-dark .section-tabs[data-section-tabs] a.active,html.a11y-dark .section-tabs[data-section-tabs] a[aria-selected="true"]{background:#18293a}
@media(max-width:860px){.section-tabs[data-section-tabs]{top:72px}.superadmin-shell .topbar-context{display:none}}
@media(max-width:620px){.section-tabs[data-section-tabs]{top:64px;margin-left:-3px;margin-right:-3px}.superadmin-shell .global-search{width:min(320px,52vw)}}

/* Kpture 2.8.1 — responsive complet mobile/tablette. */
html,body{max-width:100%;overflow-x:hidden}
body{min-width:0}
img,video,canvas{max-width:100%;height:auto}
.app-shell,.workspace,.content,.panel,.panel-body,.grid,.grid>*,.split>*,.form-grid>*,.page-title>*,.panel-head>*{min-width:0}
.table-wrap{max-width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch;overscroll-behavior-inline:contain}
.data-table{max-width:100%}
pre,code{max-width:100%;overflow-wrap:anywhere;word-break:break-word}
pre{overflow:auto;-webkit-overflow-scrolling:touch}
.sidebar-backdrop{display:none;position:fixed;inset:0;border:0;padding:0;background:rgba(10,20,34,.42);backdrop-filter:blur(2px);z-index:19;cursor:pointer}
body.sidebar-open{overflow:hidden;touch-action:none}
body.sidebar-open .sidebar-backdrop{display:block}
.sidebar{padding-bottom:env(safe-area-inset-bottom)}
.topbar{padding-top:env(safe-area-inset-top)}
.content{padding-bottom:calc(50px + env(safe-area-inset-bottom))}
.button,.icon-button,.profile-trigger,.nav-item,.section-tabs[data-section-tabs] a{touch-action:manipulation}

@media(max-width:1100px){
  .page-title{gap:14px;flex-wrap:wrap}
  .page-actions,.panel-head,.toolbar,.form-actions,.table-actions,.seo-connector-actions{flex-wrap:wrap}
  .toolbar>*{min-width:0}
  .plan-grid,.queue-grid,.collection-grid{min-width:0}
  .content{width:100%}
}

@media(max-width:860px){
  :root{--sidebar:min(82vw,300px)}
  .sidebar{width:var(--sidebar);max-width:300px;z-index:30;overflow-y:auto;overscroll-behavior:contain}
  .sidebar.open{box-shadow:18px 0 55px rgba(15,23,42,.24)}
  .topbar{height:auto;min-height:64px;display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:8px;padding:8px max(12px,env(safe-area-inset-right)) 8px max(12px,env(safe-area-inset-left));padding-top:max(8px,env(safe-area-inset-top))}
  .mobile-menu{grid-column:1;display:inline-flex;align-items:center;justify-content:center;width:44px;height:44px;margin:0}
  .global-search{grid-column:2;width:100%;max-width:none;margin:0;height:42px}
  .top-actions{grid-column:3;margin:0;justify-self:end;gap:4px}
  .profile-trigger{min-height:44px;padding:5px}
  .profile-copy{display:none!important}
  .profile-dropdown{position:fixed;right:max(10px,env(safe-area-inset-right));top:calc(64px + env(safe-area-inset-top));width:min(280px,calc(100vw - 20px));max-height:calc(100dvh - 82px - env(safe-area-inset-bottom));overflow:auto}
  .content{padding:18px max(12px,env(safe-area-inset-right)) calc(34px + env(safe-area-inset-bottom)) max(12px,env(safe-area-inset-left))}
  .page-title{margin-bottom:16px}
  .page-title h1{font-size:clamp(20px,5.5vw,25px);line-height:1.14}
  .page-title p{line-height:1.45}
  .section-tabs[data-section-tabs]{top:calc(64px + env(safe-area-inset-top));scrollbar-width:thin;scroll-snap-type:x proximity;-webkit-overflow-scrolling:touch}
  .section-tabs[data-section-tabs] a{min-height:40px;scroll-snap-align:start}
  .modal{align-items:flex-end;padding:10px max(8px,env(safe-area-inset-right)) max(10px,env(safe-area-inset-bottom)) max(8px,env(safe-area-inset-left))}
  .modal-card{width:100%;max-height:min(88dvh,760px);border-radius:18px 18px 12px 12px}
  .modal-head{position:sticky;top:0;z-index:2;background:var(--panel)}
  .a11y-panel{right:max(8px,env(safe-area-inset-right));left:max(8px,env(safe-area-inset-left));width:auto;max-height:calc(100dvh - 82px - env(safe-area-inset-bottom))}
  input,select,textarea,.field,.search,.global-search input{font-size:16px}
  .button{min-height:42px;height:auto;padding-block:9px}
  .button.small{min-height:38px;height:auto}
}

@media(max-width:680px){
  .topbar{grid-template-columns:auto minmax(0,1fr) auto;grid-template-rows:auto auto;min-height:112px;align-content:center}
  .mobile-menu{grid-column:1;grid-row:1}
  .topbar-context{display:none!important}
  .top-actions{grid-column:3;grid-row:1}
  .global-search{display:flex!important;grid-column:1/-1;grid-row:2;width:100%!important;max-width:none;margin:0!important}
  .section-tabs[data-section-tabs]{top:calc(112px + env(safe-area-inset-top));margin-inline:-2px}
  .content>.page-actions[style]{margin-top:0!important}
  .page-title{display:grid;grid-template-columns:1fr;gap:10px}
  .page-actions{width:100%;justify-content:flex-start!important}
  .page-actions .button{flex:1 1 auto}
  .panel-head{align-items:flex-start;flex-direction:column}
  .panel-head>.button,.panel-head>form,.panel-head>.table-actions{max-width:100%}
  .panel-body{padding:14px}
  .form-grid{grid-template-columns:1fr!important}
  .form-group.full{grid-column:auto}
  .form-actions{display:grid;grid-template-columns:1fr;margin-top:16px}
  .form-actions .button{width:100%}
  .toolbar{align-items:stretch;display:grid;grid-template-columns:1fr}
  .toolbar .search,.toolbar .field,.toolbar select,.toolbar .button{width:100%;max-width:none}
  .list-line,.sa-failure-row,.status-row{align-items:flex-start;flex-direction:column}
  .alert-item{grid-template-columns:auto 1fr}
  .alert-item>.badge,.alert-item>:last-child{grid-column:2;justify-self:start}
  .progress-meta,.sa-storage-head{gap:8px;flex-wrap:wrap}
  .stats-grid,.sa-kpi-grid,.superadmin-kpi-grid,.privacy-status-grid{grid-template-columns:1fr!important}
  .metric-strip,.sa-activity-grid{grid-template-columns:1fr!important}
  .metric-strip>div{border-right:0!important;border-bottom:1px solid var(--line)}
  .metric-strip>div:last-child{border-bottom:0}
  .sa-queue-row{grid-template-columns:1fr 1fr!important}
  .sa-queue-row>strong{grid-column:1/-1}
  .time-controls{grid-template-columns:auto 1fr auto;gap:7px;padding-inline:10px}
  .time-stage-meta{position:static;margin-top:10px;width:100%}
  .capture-meta{grid-template-columns:1fr 1fr}
  .api-secret-row{display:grid;grid-template-columns:1fr}
  .api-secret-row .button{width:100%}
  .compare-side{grid-template-columns:1fr}
  .settings-jump-nav{overflow-x:auto;flex-wrap:nowrap;-webkit-overflow-scrolling:touch}
  .settings-jump-nav a,.settings-jump-nav span{white-space:nowrap}
  .settings-jump-nav .danger-link{margin-left:0}
  .responsive-table{display:block;width:100%;border-collapse:separate}
  .responsive-table thead{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}
  .responsive-table tbody{display:grid;gap:10px;padding:10px}
  .responsive-table tbody tr{display:grid;border:1px solid var(--line);border-radius:12px;background:var(--panel);overflow:hidden;box-shadow:0 1px 2px rgba(15,23,42,.03)}
  .responsive-table tbody tr:hover{background:var(--panel)}
  .responsive-table tbody td{display:grid;grid-template-columns:minmax(94px,38%) minmax(0,1fr);gap:10px;align-items:start;padding:10px 12px;border-bottom:1px solid var(--line);overflow-wrap:anywhere}
  .responsive-table tbody td:last-child{border-bottom:0}
  .responsive-table tbody td::before{content:attr(data-label);font-size:10px;font-weight:750;line-height:1.35;color:var(--muted);text-transform:none}
  .responsive-table tbody td:empty::after{content:"—";color:var(--muted)}
  .responsive-table .table-actions{justify-content:flex-start}
  .responsive-table .thumb,.responsive-table .empty-thumb{width:min(112px,100%);height:auto;aspect-ratio:16/9}
  html.a11y-dark .responsive-table tbody tr{background:var(--panel);border-color:var(--line)}
}

@media(max-width:480px){
  .top-actions>.language-switcher,.top-help{display:none!important}
  .avatar{width:36px;height:36px}
  .content{padding-inline:max(10px,env(safe-area-inset-left));padding-right:max(10px,env(safe-area-inset-right))}
  .panel,.stat-card,.sa-kpi-card,.seo-connector-card{border-radius:12px}
  .panel-body,.modal-body{padding:12px}
  .page-actions{display:grid;grid-template-columns:1fr}
  .page-actions .button{width:100%}
  .section-tabs[data-section-tabs]{border-radius:9px;padding:3px}
  .section-tabs[data-section-tabs] a{min-height:42px;padding-inline:12px}
  .responsive-table tbody{padding:8px}
  .responsive-table tbody td{grid-template-columns:1fr;gap:4px}
  .responsive-table tbody td::before{font-size:9.5px}
  .capture-meta{grid-template-columns:1fr}
  .time-controls{grid-template-columns:1fr 1fr}
  .time-controls input[type=range]{grid-column:1/-1;grid-row:1}
  .time-controls .button{width:100%}
  .sa-queue-row{grid-template-columns:1fr!important}
  .sa-queue-row>strong{grid-column:auto}
  .a11y-panel{top:calc(118px + env(safe-area-inset-top));max-height:calc(100dvh - 132px - env(safe-area-inset-bottom))}
}

@media(orientation:landscape) and (max-height:520px) and (max-width:950px){
  .sidebar{max-width:270px}
  .topbar{min-height:58px;grid-template-rows:auto;padding-block:5px}
  .global-search{grid-column:2;grid-row:1}
  .section-tabs[data-section-tabs]{top:calc(58px + env(safe-area-inset-top))}
  .modal-card{max-height:94dvh}
}

/* Kpture 2.8.3 — profils de capture / upsell contextuel */
.capture-config-modal{width:min(780px,100%)}
.capture-config-modal .modal-body{padding-top:14px}
.capture-setup-tabs{display:flex;gap:6px;margin:0 0 16px;padding:4px;border:1px solid var(--line);border-radius:11px;background:#f8fafc;overflow-x:auto;-webkit-overflow-scrolling:touch}
.capture-setup-tabs button{border:0;background:transparent;border-radius:8px;min-height:38px;padding:0 14px;font-size:12px;font-weight:700;color:var(--muted);white-space:nowrap;cursor:pointer}
.capture-setup-tabs button.active{background:#fff;color:var(--text);box-shadow:0 1px 3px rgba(15,23,42,.08)}
.capture-setup-panel[hidden]{display:none!important}
.capture-plan-callout{display:grid;grid-template-columns:1fr auto;gap:5px 14px;align-items:center;margin-top:15px;padding:12px 14px;border:1px solid #cfe0fb;border-radius:11px;background:#f5f9ff;color:#244b7c}
.capture-plan-callout strong{font-size:12px}.capture-plan-callout span{font-size:11px;line-height:1.45}.capture-plan-callout a{grid-column:2;grid-row:1/3;font-size:11px;font-weight:700;color:#155dc7}
.capture-quota-warning{color:#a65b05!important;font-weight:650}
.capture-device-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.capture-device-option{display:flex!important;align-items:flex-start;gap:9px;padding:11px;border:1px solid var(--line);border-radius:10px;background:#fff;cursor:pointer}
.capture-device-option input{width:auto!important;margin-top:2px;accent-color:var(--blue)}
.capture-device-option strong{display:block;font-size:12px}.capture-device-option small{display:block;margin-top:3px;color:var(--muted);font-size:10px}
.capture-device-option:has(input:checked){border-color:#8ab5f7;background:#f4f8ff}
.capture-delivery-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-bottom:14px}
.capture-delivery-card{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:13px;border:1px solid var(--line);border-radius:11px;background:#fff}
.capture-delivery-card>div{display:grid;gap:4px}.capture-delivery-card strong{font-size:12px}.capture-delivery-card span{font-size:10px;line-height:1.4;color:var(--muted)}
.capture-delivery-card.is-locked{background:#f8fafc}.capture-delivery-card.is-locked>div{opacity:.65}
[data-capture-email-options].is-inactive{opacity:.58}
.capture-request-profile{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.capture-config-actions{position:sticky;bottom:-20px;margin:18px -20px -20px;padding:12px 20px calc(12px + env(safe-area-inset-bottom));background:rgba(255,255,255,.96);backdrop-filter:blur(8px);border-top:1px solid var(--line);z-index:3}
html.a11y-dark .capture-setup-tabs{background:#111b29}
html.a11y-dark .capture-setup-tabs button.active,html.a11y-dark .capture-device-option,html.a11y-dark .capture-delivery-card{background:var(--panel)}
html.a11y-dark .capture-plan-callout{background:#142339;border-color:#294d7d;color:#bdd7ff}

@media(max-width:680px){
  .capture-config-modal{width:100%}
  .capture-setup-tabs{margin-inline:-2px}
  .capture-setup-tabs button{flex:1 0 auto;min-height:42px}
  .capture-device-grid,.capture-delivery-grid,.capture-request-profile{grid-template-columns:1fr}
  .capture-plan-callout{grid-template-columns:1fr}
  .capture-plan-callout a{grid-column:auto;grid-row:auto}
  .capture-delivery-card{align-items:flex-start;flex-direction:column}
  .capture-config-actions{margin:16px -12px -12px;padding:12px}
}

/* Kpture 2.8.4 — assistant Ajouter un site / validation finale */
.capture-wizard-tabs button:disabled{cursor:not-allowed;opacity:.48}
.capture-wizard-tabs button.is-complete{color:#225ea8}
.capture-wizard-tabs button.is-complete:before{content:'✓';margin-right:5px;font-size:10px}
.capture-wizard-actions{display:flex;align-items:center;gap:8px;margin-left:auto}
.capture-validation-panel{display:grid;gap:14px}
.capture-validation-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px}
.capture-validation-head h3{margin:4px 0 5px;font-size:20px}
.capture-validation-head p{margin:0}
.capture-validation-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.capture-validation-grid article{border:1px solid var(--line);border-radius:12px;background:#fff;padding:13px;min-width:0}
.capture-validation-grid article>header{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:9px}
.capture-validation-grid article>header>strong{font-size:12px}
.capture-validation-grid dl{display:grid;gap:7px;margin:0}
.capture-validation-grid dl>div{display:grid;grid-template-columns:105px minmax(0,1fr);gap:10px;align-items:start}
.capture-validation-grid dt{font-size:10px;color:var(--muted);font-weight:650}
.capture-validation-grid dd{margin:0;font-size:11px;line-height:1.45;overflow-wrap:anywhere}
.capture-validation-quota{grid-column:1/-1;background:#f5f9ff!important;border-color:#cfe0fb!important}
.capture-validation-quota p{margin:0 0 4px;font-size:12px;font-weight:650;color:#244b7c}
.capture-validation-quota small{font-size:10px;color:#64748b}
html.a11y-dark .capture-validation-grid article{background:var(--panel)}
html.a11y-dark .capture-validation-quota{background:#142339!important;border-color:#294d7d!important}
html.a11y-dark .capture-validation-quota p{color:#bdd7ff}
@media(max-width:680px){
  .capture-validation-grid{grid-template-columns:1fr}
  .capture-validation-quota{grid-column:auto}
  .capture-validation-head{align-items:flex-start;flex-direction:column;gap:8px}
  .capture-config-actions{gap:8px;align-items:stretch}
  .capture-wizard-actions{width:100%;margin-left:0;display:grid;grid-template-columns:1fr}
  .capture-wizard-actions .button{width:100%;justify-content:center}
  .capture-config-actions>[data-modal-close]{width:100%}
  .capture-validation-grid dl>div{grid-template-columns:92px minmax(0,1fr)}
}

/* Kpture 2.8.5 — simplification UX globale / divulgation progressive */
.ux-section-head{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;margin:0 0 14px}.ux-section-head>div{display:grid;gap:3px}.ux-section-head strong{font-size:13px}.ux-section-head small{font-size:11px;color:var(--muted);line-height:1.45}
.ux-disclosure{margin-top:12px;border:1px solid var(--line);border-radius:12px;background:var(--panel);overflow:hidden}.ux-disclosure>summary{list-style:none;display:flex;align-items:center;justify-content:space-between;gap:16px;min-height:48px;padding:10px 13px;cursor:pointer;user-select:none}.ux-disclosure>summary::-webkit-details-marker{display:none}.ux-disclosure>summary:after{content:'⌄';font-size:16px;color:var(--muted);transition:transform .18s ease}.ux-disclosure[open]>summary:after{transform:rotate(180deg)}.ux-disclosure>summary>span{font-size:12px;font-weight:750;color:var(--text)}.ux-disclosure>summary>small{margin-left:auto;font-size:10px;color:var(--muted)}.ux-disclosure[open]>summary{border-bottom:1px solid var(--line);background:#fafcff}.ux-disclosure-body{padding:13px}.ux-disclosure-body.form-grid{display:grid}
.input-suffix{display:flex;align-items:stretch}.input-suffix input{border-radius:8px 0 0 8px}.input-suffix span{display:flex;align-items:center;padding:0 11px;border:1px solid var(--line);border-left:0;border-radius:0 8px 8px 0;background:#f8fafc;color:var(--muted);font-size:11px;font-weight:700}
.compact-form{gap:12px}.compact-form .form-group{gap:5px}.compact-form textarea{min-height:78px}.capture-plan-callout.compact{padding:10px 12px}.capture-plan-callout.compact span{max-width:560px}
.capture-first-toggle{display:flex!important;align-items:center;gap:9px;padding:10px 12px;border:1px solid var(--line);border-radius:10px;background:#fafcff}.capture-first-toggle input{width:auto!important}
.capture-wizard-tabs{position:relative;gap:0;padding:0;border:0;background:transparent;overflow:visible}.capture-wizard-tabs:before{content:'';position:absolute;left:8%;right:8%;top:17px;height:1px;background:var(--line);z-index:0}.capture-wizard-tabs button{position:relative;z-index:1;display:flex;flex-direction:column;align-items:center;justify-content:flex-start;gap:5px;flex:1;min-width:94px;height:auto;padding:0 8px;background:transparent!important;box-shadow:none!important;color:var(--muted)}.capture-wizard-tabs button>span{display:grid;place-items:center;width:34px;height:34px;border:1px solid var(--line);border-radius:50%;background:var(--panel);font-size:11px;font-weight:800;color:var(--muted);box-shadow:0 0 0 5px var(--panel)}.capture-wizard-tabs button.active{color:var(--text)}.capture-wizard-tabs button.active>span{border-color:var(--blue);background:var(--blue);color:#fff}.capture-wizard-tabs button.is-complete{color:#315f9d}.capture-wizard-tabs button.is-complete:before{display:none}.capture-wizard-tabs button.is-complete>span{border-color:#b9d1f4;background:#eff6ff;color:#235ea8}.capture-wizard-tabs button:disabled{opacity:.55}
.capture-profile-choice{display:flex;gap:10px;align-items:flex-start;padding:12px;border:1px solid var(--line);border-radius:11px;background:var(--panel);cursor:pointer}.capture-profile-choice:has(input:checked){border-color:#8ab5f7;background:#f4f8ff}.capture-profile-choice input{width:auto!important;margin-top:2px}.capture-profile-choice span{display:grid;gap:3px}.capture-profile-choice strong{font-size:12px}.capture-profile-choice small{font-size:10px;color:var(--muted);line-height:1.4}
.compact-editor .modal-body{padding-top:14px}.compact-editor .capture-mode-options{gap:8px}.compact-editor .capture-mode-option{min-height:82px}.compact-editor .form-actions{margin-top:14px}.sticky-modal-actions{position:sticky;bottom:-20px;z-index:4;margin:16px -20px -20px;padding:12px 20px calc(12px + env(safe-area-inset-bottom));border-top:1px solid var(--line);background:rgba(255,255,255,.97);backdrop-filter:blur(8px)}
.legacy-device-grid label.capture-device-option{margin:0;font-weight:400}.legacy-device-grid label.capture-device-option>input{flex:0 0 auto}.capture-after-save{display:flex;align-items:flex-start;gap:10px;margin-top:12px;padding:11px 12px;border:1px solid var(--line);border-radius:11px;background:#fafcff;cursor:pointer}.capture-after-save input{width:auto!important;margin-top:2px}.capture-after-save span{display:grid;gap:2px}.capture-after-save strong{font-size:11px}.capture-after-save small{font-size:10px;color:var(--muted);line-height:1.4}
.capture-delivery-simple{display:grid;gap:10px}.capture-delivery-toggle{display:flex;align-items:flex-start;gap:10px;padding:11px 12px;border:1px solid var(--line);border-radius:11px;background:#fafcff;cursor:pointer}.capture-delivery-toggle input{width:auto!important;margin-top:2px}.capture-delivery-toggle span{display:grid;gap:3px}.capture-delivery-toggle strong{font-size:11px}.capture-delivery-toggle small{font-size:10px;color:var(--muted);line-height:1.4}.capture-delivery-toggle.is-locked{opacity:.65;cursor:not-allowed}.capture-email-details{display:grid;gap:8px;padding-top:2px}
html.a11y-dark .ux-disclosure[open]>summary,html.a11y-dark .capture-first-toggle,html.a11y-dark .capture-after-save,html.a11y-dark .capture-delivery-toggle{background:#111b29}.a11y-dark .sticky-modal-actions{background:rgba(13,24,35,.97)}
@media(max-width:680px){.capture-wizard-tabs{padding:0 2px;overflow-x:auto}.capture-wizard-tabs:before{left:46px;right:46px}.capture-wizard-tabs button{min-width:78px;font-size:10px;padding-inline:4px}.capture-wizard-tabs button>span{width:30px;height:30px;box-shadow:0 0 0 4px var(--panel)}.ux-disclosure>summary{align-items:flex-start;flex-direction:column;gap:2px}.ux-disclosure>summary:after{position:absolute;right:14px}.ux-disclosure>summary{position:relative;padding-right:36px}.ux-disclosure>summary>small{margin-left:0}.sticky-modal-actions{margin:14px -12px -12px;padding:12px}.compact-editor .capture-mode-options,.capture-request-profile{grid-template-columns:1fr}}

/* Onglets de section 2.8.5 : plus lisibles, moins « barre technique ». */
.section-tabs[data-section-tabs]{gap:7px;padding:0;border:0;border-radius:0;background:transparent;box-shadow:none;backdrop-filter:none}.section-tabs[data-section-tabs] a{min-height:36px;padding:0 12px;border:1px solid transparent;border-radius:9px;background:transparent;color:#66758a}.section-tabs[data-section-tabs] a:hover{border-color:var(--line);background:var(--panel);color:var(--text)}.section-tabs[data-section-tabs] a.active,.section-tabs[data-section-tabs] a[aria-selected="true"]{border-color:#c7daf8;background:#eef5ff;color:#245fad;box-shadow:none}.section-tabs[data-section-tabs] a.active:after,.section-tabs[data-section-tabs] a[aria-selected="true"]:after{content:'';width:5px;height:5px;margin-left:7px;border-radius:50%;background:var(--blue)}
html.a11y-dark .section-tabs[data-section-tabs]{background:transparent}.a11y-dark .section-tabs[data-section-tabs] a.active,.a11y-dark .section-tabs[data-section-tabs] a[aria-selected="true"]{background:#172b45;border-color:#2a5382;color:#bed9ff}

/* Kpture 2.8.6 — SEO SERP appearance workbench */
.seo-appearance-panel .panel-body{padding-top:14px}
.seo-appearance-layout{display:grid;grid-template-columns:minmax(0,1.45fr) minmax(300px,.75fr);gap:18px;align-items:start;margin-top:16px}
.seo-serp-workbench{display:grid;gap:14px;min-width:0}
.seo-serp-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px}
.segmented.compact{display:inline-flex;padding:3px;border:1px solid var(--border);border-radius:12px;background:var(--surface-2,#f7f9fc)}
.segmented.compact button{border:0;background:transparent;padding:7px 10px;border-radius:9px;font:inherit;font-size:12px;font-weight:700;color:var(--muted);cursor:pointer}
.segmented.compact button.active{background:var(--surface,#fff);color:var(--text);box-shadow:0 1px 4px rgba(15,23,42,.08)}
.seo-serp-preview{max-width:700px;background:#fff;border:1px solid #e2e7ef;border-radius:18px;padding:20px 22px;box-shadow:0 8px 26px rgba(15,23,42,.06);color:#202124}
.seo-serp-preview.mobile{max-width:390px}
.seo-serp-source{display:flex;align-items:center;gap:10px;margin-bottom:8px}
.seo-serp-source>span:nth-child(2){display:grid;line-height:1.25}
.seo-serp-source strong{font-size:14px;font-weight:500;color:#202124}
.seo-serp-source small{font-size:12px;color:#4d5156}
.seo-serp-favicon{width:30px;height:30px;border-radius:50%;display:grid;place-items:center;background:#102238;color:#fff;font-size:13px;font-weight:800}
.seo-serp-more{margin-left:auto;border:0;background:transparent;font-size:22px;color:#5f6368;line-height:1;cursor:default}
.seo-serp-title{font-size:21px;line-height:1.3;color:#1a0dab;margin:2px 0 6px;font-weight:400}
.seo-serp-description{font-size:14px;line-height:1.5;color:#4d5156;margin:0 0 14px}
.seo-sitelinks-preview{display:grid;grid-template-columns:1fr 1fr;border-top:1px solid #e5e7eb;margin-top:10px}
.seo-sitelink{position:relative;padding:12px 28px 12px 0;border-bottom:1px solid #e5e7eb;min-width:0}
.seo-sitelink:nth-child(odd){padding-right:34px}
.seo-sitelink:nth-child(even){padding-left:18px}
.seo-sitelink strong{display:block;color:#1a0dab;font-size:15px;font-weight:400;margin-bottom:2px}
.seo-sitelink span{display:block;color:#5f6368;font-size:12px;line-height:1.35}
.seo-sitelink b{position:absolute;right:8px;top:50%;transform:translateY(-50%);font-size:22px;color:#5f6368;font-weight:400}
.seo-paa-preview{max-width:700px;background:#fff;border:1px solid #e2e7ef;border-radius:18px;overflow:hidden}
.seo-paa-title{display:flex;justify-content:space-between;gap:12px;align-items:center;padding:16px 18px;font-size:19px;font-weight:700;color:#202124}
.seo-paa-title span{font-size:11px;font-weight:700;color:var(--blue);background:var(--blue-soft);padding:5px 8px;border-radius:999px}
.seo-paa-row{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:14px 18px;border-top:1px solid #e5e7eb;color:#202124;font-size:14px}
.seo-paa-row b{width:28px;height:28px;border-radius:50%;display:grid;place-items:center;background:#f1f3f4;color:#5f6368;font-size:16px}
.seo-appearance-editor{display:grid;gap:14px}
.seo-appearance-editor>form{background:var(--surface,#fff);border:1px solid var(--border);border-radius:16px;padding:16px}
.seo-appearance-editor .form-group+ .form-group{margin-top:12px}
.seo-appearance-editor textarea{resize:vertical}
.seo-serp-signals{display:grid;gap:8px}
.seo-serp-signals>div{display:grid;grid-template-columns:auto 1fr;column-gap:8px;row-gap:1px;padding:11px 12px;border:1px solid var(--border);border-radius:12px;background:var(--surface,#fff)}
.seo-serp-signals>div .badge{grid-row:1/3;align-self:start;margin-top:1px}
.seo-serp-signals strong{font-size:13px}
.seo-serp-signals small{font-size:11px;color:var(--muted);line-height:1.35}
@media(max-width:1050px){.seo-appearance-layout{grid-template-columns:1fr}.seo-appearance-editor{grid-template-columns:minmax(0,1fr) minmax(260px,.65fr)}.seo-appearance-editor>form{min-width:0}}
@media(max-width:720px){.seo-appearance-layout{gap:12px}.seo-appearance-editor{grid-template-columns:1fr}.seo-serp-toolbar{align-items:flex-start;flex-direction:column}.seo-serp-preview{padding:16px;border-radius:14px}.seo-sitelinks-preview{grid-template-columns:1fr}.seo-sitelink:nth-child(even){padding-left:0}.seo-paa-title{font-size:17px}.seo-serp-title{font-size:19px}.seo-appearance-panel .panel-head{align-items:flex-start}.seo-appearance-panel .panel-head>.badge{margin-top:3px}}

/* Kpture 2.8.7 — clarté des familles d'abonnement Surveillance / Render / Suite */
.subscription-clarity-hero{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;margin:0 0 16px;padding:18px 20px;border:1px solid var(--border,var(--line));border-radius:16px;background:linear-gradient(135deg,var(--surface,#fff),#f5f8ff)}
.subscription-clarity-hero h2{margin:4px 0 6px;font-size:20px;line-height:1.25}.subscription-clarity-hero p{margin:0;max-width:820px;color:var(--muted);line-height:1.55}.subscription-clarity-badges{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:7px;min-width:220px}.subscription-tabs{margin-bottom:16px}
.subscription-family-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin-bottom:16px}.subscription-family-card{display:flex;flex-direction:column;gap:10px;min-height:315px;padding:18px;border:1px solid var(--border,var(--line));border-radius:16px;background:var(--surface,#fff);box-shadow:0 5px 18px rgba(15,23,42,.04)}.subscription-family-card.active{border-color:#b9d1f4;background:linear-gradient(180deg,#f7faff,#fff)}.subscription-family-card.beta{border-color:#c9d9f1}.subscription-family-card.suite{background:linear-gradient(180deg,#fbfcfe,#fff)}.family-card-top{display:flex;align-items:center;justify-content:space-between;gap:10px}.family-icon{display:grid;place-items:center;width:38px;height:38px;border-radius:11px;background:#eef5ff;color:#245fad;font-size:18px;font-weight:800}.subscription-family-card h2{margin:0;font-size:22px}.subscription-family-card p{margin:0;color:var(--muted);line-height:1.5}.family-card-metric{display:grid;gap:1px;margin-top:auto;padding-top:8px}.family-card-metric strong{font-size:24px;line-height:1.15}.family-card-metric span{font-size:11px;color:var(--muted)}.family-breakdown{display:flex;flex-wrap:wrap;gap:5px}.family-breakdown span{padding:5px 7px;border:1px solid var(--border,var(--line));border-radius:8px;font-size:10px;color:var(--muted)}.family-breakdown b{color:var(--text)}
.usage-progress{height:7px;border-radius:999px;background:#edf1f6;overflow:hidden}.usage-progress i{display:block;height:100%;border-radius:inherit;background:var(--blue,#4f6fed)}
.subscription-usage-map{margin-bottom:16px}.product-usage-table td:nth-child(2),.product-usage-table td:nth-child(3){white-space:nowrap}.subscription-security-strip{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin-bottom:4px}.subscription-security-strip>div{display:grid;gap:3px;padding:12px;border:1px solid var(--border,var(--line));border-radius:12px;background:var(--surface,#fff)}.subscription-security-strip strong{font-size:12px}.subscription-security-strip span{font-size:10px;line-height:1.45;color:var(--muted)}.subscription-security-strip.compact{margin:0}
.product-current{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.product-current>div{display:grid;gap:3px;padding:12px;border:1px solid var(--border,var(--line));border-radius:12px;background:#fafcff}.product-current small{font-size:9px;letter-spacing:.08em;color:var(--muted);font-weight:800}.product-current strong{font-size:16px}.product-current span{font-size:10px;color:var(--muted)}
.product-section-heading{display:flex;align-items:flex-end;justify-content:space-between;gap:14px;margin:18px 0 12px}.product-section-heading h2{margin:3px 0 3px;font-size:20px}.product-section-heading p{margin:0;color:var(--muted)}.subscription-plan-grid .plan-offer{position:relative}.plan-family-label{display:inline-flex;align-items:center;width:max-content;margin-bottom:8px;padding:4px 7px;border-radius:7px;background:#eef5ff;color:#245fad;font-size:9px;font-weight:900;letter-spacing:.08em}.plan-feature-list li{display:grid!important;gap:1px}.plan-feature-list li small{color:var(--muted);font-size:9px}.plan-buy-actions{display:grid;gap:7px;margin-top:auto}.plan-buy-actions form{margin:0}.button.disabled{opacity:.58;pointer-events:none}
.render-beta-panel{margin-bottom:16px}.render-capability-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}.render-capability-grid article{display:grid;gap:4px;padding:13px;border:1px solid var(--border,var(--line));border-radius:12px;background:#fafcff}.render-capability-grid strong{font-size:13px}.render-capability-grid span{font-size:10px;line-height:1.45;color:var(--muted)}.render-usage-card{display:grid;grid-template-columns:minmax(220px,.7fr) minmax(0,1.3fr);gap:12px;margin-top:12px}.render-usage-card>div{padding:14px;border-radius:12px;background:#f5f8ff;border:1px solid #d9e6fa}.render-usage-card small{display:block;font-size:9px;font-weight:900;letter-spacing:.08em;color:#35649f}.render-usage-card>div>strong{display:block;margin:3px 0;font-size:22px}.render-usage-card span,.render-beta-copy p{font-size:10px;line-height:1.5;color:var(--muted)}.render-beta-copy strong{font-size:12px}.render-beta-copy p{margin:4px 0 0}.render-tier-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin:10px 0}.render-tier-grid article{display:grid;gap:5px;padding:13px;border:1px solid var(--border,var(--line));border-radius:12px;background:var(--surface,#fff)}.render-tier-grid strong{font-size:12px}.render-tier-grid p{margin:0;color:var(--muted);font-size:10px;line-height:1.4}
.suite-explainer,.suite-public-card{display:grid;grid-template-columns:minmax(0,1.4fr) minmax(220px,.6fr);gap:18px;align-items:center;padding:20px;border:1px solid #cfd9e8;border-radius:16px;background:linear-gradient(135deg,#f8fbff,#fff)}.suite-explainer h2,.suite-public-card h2{margin:4px 0 5px}.suite-explainer p,.suite-public-card p{margin:0;color:var(--muted);line-height:1.5}.suite-public-card.admin{grid-template-columns:1fr 1fr}
.pricing-family-hero{max-width:1180px;margin:0 auto 22px;padding:28px 0 8px}.pricing-family-hero h1{max-width:760px;margin:6px 0 8px;font-size:clamp(30px,4vw,48px);line-height:1.08}.pricing-family-hero>p{max-width:820px;margin:0;color:var(--muted);font-size:15px;line-height:1.6}.pricing-family-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-top:22px}.pricing-family-summary article{display:grid;grid-template-columns:auto 1fr auto;gap:10px;align-items:center;padding:14px;border:1px solid var(--border,var(--line));border-radius:14px;background:var(--surface,#fff)}.pricing-family-summary article>div{display:grid;gap:2px}.pricing-family-summary strong{font-size:13px}.pricing-family-summary small{font-size:10px;color:var(--muted);line-height:1.35}.pricing-family-tabs{max-width:1180px;margin:0 auto 18px}.pricing-product-panel{max-width:1180px;margin:0 auto 26px}.pricing-product-panel .pricing-grid{margin-top:14px}.render-public-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}.render-public-grid article{padding:18px;border:1px solid var(--border,var(--line));border-radius:15px;background:var(--surface,#fff)}.render-public-grid h3{margin:9px 0 5px}.render-public-grid p{margin:0;color:var(--muted);font-size:12px;line-height:1.5}.render-public-icon{display:inline-grid;place-items:center;min-width:42px;height:32px;padding:0 8px;border-radius:9px;background:#eef5ff;color:#245fad;font-size:10px;font-weight:900;letter-spacing:.06em}.render-beta-pricing{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(300px,.8fr);gap:14px;margin-top:14px;padding:18px;border:1px solid #c8dcfb;border-radius:15px;background:#f5f9ff}.render-beta-pricing h3{margin:7px 0 5px}.render-beta-pricing p{margin:0;color:var(--muted);line-height:1.5}.render-tier-roadmap{display:grid;grid-template-columns:1fr 1fr;gap:8px}.render-tier-roadmap span{display:grid;gap:2px;padding:10px;border:1px solid #d8e5f8;border-radius:10px;background:#fff}.render-tier-roadmap b{font-size:11px}.render-tier-roadmap small{font-size:9px;color:var(--muted)}.suite-public-status{display:grid;gap:7px;justify-items:start}.suite-public-status strong{font-size:18px}.pricing-consumption-guide{max-width:1180px;margin:0 auto 50px}.section-heading.compact{margin-top:18px}.section-heading.compact h3{font-size:18px;margin:0}.pricing-family-mini{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:0 auto 18px}.pricing-family-mini a{display:grid;gap:4px;padding:13px;border:1px solid var(--border,var(--line));border-radius:12px;background:var(--surface,#fff);text-decoration:none;color:inherit}.pricing-family-mini a:hover{border-color:#b9d1f4;background:#f7faff}.pricing-family-mini strong{font-size:13px}.pricing-family-mini small{font-size:10px;line-height:1.4;color:var(--muted)}
.subscription-stripe-scope{margin-bottom:14px}
html.a11y-dark .subscription-clarity-hero,html.a11y-dark .subscription-family-card.active,html.a11y-dark .product-current>div,html.a11y-dark .render-capability-grid article,html.a11y-dark .render-usage-card>div,html.a11y-dark .suite-explainer,html.a11y-dark .suite-public-card,html.a11y-dark .pricing-family-summary article,html.a11y-dark .render-public-grid article,html.a11y-dark .render-beta-pricing,html.a11y-dark .pricing-family-mini a{background:#111b29}
@media(max-width:980px){.subscription-family-grid,.pricing-family-summary{grid-template-columns:1fr}.render-capability-grid,.render-tier-grid,.render-public-grid{grid-template-columns:1fr 1fr}.subscription-clarity-hero{flex-direction:column}.subscription-clarity-badges{justify-content:flex-start;min-width:0}.render-beta-pricing,.render-usage-card,.suite-explainer,.suite-public-card{grid-template-columns:1fr}.product-current{grid-template-columns:1fr 1fr}.pricing-family-mini{grid-template-columns:1fr}}
@media(max-width:620px){.subscription-family-card{min-height:0}.render-capability-grid,.render-tier-grid,.render-public-grid,.product-current,.subscription-security-strip{grid-template-columns:1fr}.product-section-heading{align-items:flex-start;flex-direction:column}.product-usage-table td:nth-child(2),.product-usage-table td:nth-child(3){white-space:normal}.pricing-family-hero{padding-top:16px}.pricing-family-summary article{grid-template-columns:auto 1fr}.pricing-family-summary article>.badge{grid-column:2}.render-tier-roadmap{grid-template-columns:1fr}.suite-public-card,.suite-explainer{padding:16px}.subscription-clarity-hero{padding:15px}.pricing-family-tabs{overflow-x:auto}.pricing-family-tabs a{white-space:nowrap}}

/* BEGIN KPTURE-2.13.3-READABILITY */
/* Texte courant 16px; texte secondaire 15px minimum. */
:root{--sidebar:220px;--kpture-text:16px;--kpture-secondary:15px}
body{font-size:var(--kpture-text);line-height:1.48}
.brand{font-size:17px}.brand .brand-logo,.brand-logo{width:32px;height:32px}
.main-nav{gap:3px}.nav-item{height:42px;font-size:15px;padding-inline:12px}
.nav-count,.dot{font-size:15px}
.plan-card span,.plan-card small,.plan-card strong,.plan-card a,.help-link,.sidebar-banner{font-size:15px!important;line-height:1.42}
.global-search,.global-search input,.topbar-context{font-size:15px}
.profile-copy strong,.profile-copy small,.profile-dropdown-head strong,.profile-dropdown-head small,.profile-dropdown>a{font-size:15px}
.page-title h1{font-size:25px}.page-title p{font-size:15px;line-height:1.45;color:#5f6f84}
.button,.button.small{font-size:15px;min-height:38px;height:auto;padding-block:8px}
.panel-head h2,.panel-head h3{font-size:16px}.panel-head p{font-size:15px;line-height:1.42}
.panel-body,.panel-body p,.panel-body li{font-size:16px}
.stat-card .label,.progress-meta,.chart-labels,.alert-item strong,.alert-item small,.alert-age,.empty-compact,.list-line,.list-line small,.capture-age{font-size:15px!important;line-height:1.42}
.badge,.superadmin-badge{font-size:15px;min-height:26px;height:auto;padding-block:4px}
.data-table th{font-size:15px}.data-table td,.data-table td>strong{font-size:15px;line-height:1.42}
.tabs a{font-size:15px}.field,.search,.form-group label,.form-group small,.form-group input,.form-group select,.form-group textarea{font-size:15px;line-height:1.42}
.muted,small,.text-muted,.secondary,.hint,.help-text{font-size:15px!important;line-height:1.42}
/* Un peu plus de couleur, sans modifier le logo. */
.nav-item.active{background:#e8f1ff;color:#1f5fc5}
.page-title h1{color:#172b4d}
.panel-head{background:linear-gradient(180deg,#fbfdff 0%,#ffffff 100%)}
.stat-icon.blue{background:#e7f0ff}.stat-icon.green{background:#e7f8ef}.stat-icon.amber{background:#fff1dd}.stat-icon.red{background:#ffe9eb}
.superadmin-badge{background:#eef3ff;color:#315fbd;border:1px solid #dce7ff}
@media(max-width:1320px){:root{--sidebar:210px}}
@media(max-width:1000px){:root{--sidebar:0px}.nav-item,.page-title p,.panel-head p,.data-table td,.data-table th,.form-group small,small{font-size:15px!important}}
/* END KPTURE-2.13.3-READABILITY */
