
:root{
  --bg:#f6f8fb;
  --sidebar:#101826;
  --sidebar-hover:#182337;
  --surface:#ffffff;
  --surface-subtle:#f8fafc;
  --surface-hover:#f4f7fb;
  --border:#e2e7ee;
  --border-strong:#d2d9e3;
  --text:#172033;
  --muted:#65758b;
  --muted-2:#91a0b2;
  --blue:#2f6fed;
  --blue-hover:#255dcc;
  --blue-soft:#edf3ff;
  --green:#198c63;
  --green-soft:#eaf8f2;
  --amber:#a96c10;
  --amber-soft:#fff5df;
  --red:#c54c59;
  --red-soft:#fdefef;
  --shadow:0 1px 2px rgba(16,24,40,.04),0 10px 28px rgba(16,24,40,.05);
  --font-sans:"Segoe UI Variable Text","Segoe UI Variable","SF Pro Text","SF Pro Display","Inter","Helvetica Neue",Arial,sans-serif;
}
body:not(.light){
  --bg:#0e131b;
  --sidebar:#0a1019;
  --sidebar-hover:#141d2a;
  --surface:#141b24;
  --surface-subtle:#101721;
  --surface-hover:#18212d;
  --border:#27313e;
  --border-strong:#364353;
  --text:#eef2f7;
  --muted:#9aa7b7;
  --muted-2:#738195;
  --blue:#6b95ff;
  --blue-hover:#81a6ff;
  --blue-soft:#17284a;
  --green:#45c99a;
  --green-soft:#102d25;
  --amber:#e2a84b;
  --amber-soft:#332811;
  --red:#e57985;
  --red-soft:#351c21;
  --shadow:none
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  min-height:100vh;
  background:var(--bg);
  color:var(--text);
  font-family:var(--font-sans);
  font-size:clamp(13px,.72vw,15px);
  line-height:1.5;
  letter-spacing:-.005em;
  -webkit-font-smoothing:antialiased;
  text-rendering:optimizeLegibility
}
body.modal-open{overflow:hidden}
a{text-decoration:none;color:inherit}
button,input,textarea{font:inherit}

.sidebar{
  position:fixed;left:0;top:0;bottom:0;
  width:240px;
  display:flex;flex-direction:column;
  background:var(--sidebar);
  border-right:1px solid rgba(255,255,255,.06);
  z-index:40
}
.sidebar-brand{
  height:70px;
  display:flex;align-items:center;
  padding:0 20px;
  border-bottom:1px solid rgba(255,255,255,.07)
}
.brand-lockup{display:flex;align-items:center;gap:11px}
.brand-accent{
  width:3px;height:30px;border-radius:999px;
  background:linear-gradient(180deg,#5b8cff,#2f6fed)
}
.brand-copy{display:flex;flex-direction:column}
.brand-copy strong{
  color:#fff;
  font-size:13px;
  font-weight:700;
  line-height:1.2;
  letter-spacing:-.015em
}
.brand-copy small{margin-top:3px;color:#7e8da3;font-size:9px;font-weight:500}

.sidebar-nav{padding:18px 12px}
.nav-label{
  display:block;
  padding:0 10px 7px;
  color:#66758a;
  font-size:9px;
  font-weight:700;
  letter-spacing:.08em;
  text-transform:uppercase
}
.nav-label.nav-gap{margin-top:18px}
.sidebar-nav a{
  min-height:42px;
  display:flex;align-items:center;gap:10px;
  padding:0 10px;
  border-radius:8px;
  color:#9ba8b9;
  font-size:11px;
  font-weight:600
}
.sidebar-nav a:hover{background:var(--sidebar-hover);color:#fff}
.sidebar-nav a.active{background:#1b2b46;color:#fff}
.nav-icon{
  width:22px;height:22px;flex:0 0 22px;
  border:1px solid rgba(255,255,255,.09);
  border-radius:6px;
  position:relative;
  opacity:.9
}
.sidebar-nav a.active .nav-icon{border-color:#3c5f9c;background:#20365b}
.icon-overview:before{
  content:"";position:absolute;left:5px;top:5px;width:4px;height:4px;border-radius:1px;background:#8291a8;
  box-shadow:7px 0 0 #8291a8,0 7px 0 #8291a8,7px 7px 0 #8291a8
}
.icon-domains:before{
  content:"";position:absolute;left:5px;top:5px;width:10px;height:2px;border-radius:2px;background:#8291a8;
  box-shadow:0 4px 0 #8291a8,0 8px 0 #8291a8
}
.icon-health:before{
  content:"";position:absolute;left:5px;top:5px;width:10px;height:10px;border:2px solid #8291a8;border-radius:50%
}
.icon-health:after{
  content:"";position:absolute;left:9px;top:2px;width:2px;height:18px;background:var(--sidebar);transform:rotate(45deg)
}
.icon-history:before{
  content:"";position:absolute;left:4px;top:5px;width:12px;height:2px;border-radius:2px;background:#8291a8;
  box-shadow:0 4px 0 #8291a8,0 8px 0 #8291a8
}
.nav-text{padding-top:1px}
.sidebar-bottom{margin-top:auto;padding:14px}
.service-state{
  display:flex;align-items:center;gap:9px;
  padding:11px 12px;
  border:1px solid rgba(255,255,255,.07);
  border-radius:9px;
  background:rgba(255,255,255,.025)
}
.service-dot{width:6px;height:6px;border-radius:50%;background:#3ccf91}
.service-state div{display:flex;flex-direction:column}
.service-state strong{font-size:9px;color:#e6ebf1;font-weight:700}
.service-state small{margin-top:2px;font-size:8px;color:#718096}

.main-shell{margin-left:240px;min-width:0}
.topbar{
  height:62px;
  display:flex;align-items:center;
  padding:0 28px;
  position:sticky;top:0;z-index:30;
  background:var(--surface);
  border-bottom:1px solid var(--border)
}
.mobile-brand{display:none;align-items:center;gap:8px}
.mobile-brand-accent{width:3px;height:24px;background:var(--blue);border-radius:99px}
.mobile-brand strong{font-size:12px}
.topbar-path{display:flex;gap:7px;align-items:center;color:var(--muted-2);font-size:9px}
.topbar-path b{font-weight:400}.topbar-path strong{color:var(--muted);font-weight:600}
.topbar-actions{margin-left:auto;display:flex;align-items:center;gap:10px}
.top-status{display:flex;align-items:center;gap:6px;color:var(--muted);font-size:9px;font-weight:600}
.top-status i{width:6px;height:6px;border-radius:50%;background:var(--green)}
.icon-button{
  width:32px;height:32px;
  border:1px solid var(--border);
  border-radius:8px;
  background:var(--surface);
  color:var(--muted);
  cursor:pointer
}

.container{padding:34px 30px 68px}
.page-head,.detail-head{
  display:flex;align-items:flex-end;justify-content:space-between;gap:22px;
  margin-bottom:22px
}
.eyebrow{
  display:block;margin-bottom:5px;
  color:var(--muted-2);
  font-size:9px;
  font-weight:700;
  letter-spacing:.08em;
  text-transform:uppercase
}
.page-head h1,.detail-head h1{
  margin:0;
  font-size:30px;
  line-height:1.12;
  font-weight:700;
  letter-spacing:-.035em
}
.page-head p{
  max-width:760px;
  margin:8px 0 0;
  color:var(--muted);
  font-size:12px;
  line-height:1.55
}
.head-actions{display:flex;gap:8px}
.button{
  min-height:36px;
  display:inline-flex;align-items:center;justify-content:center;
  padding:0 13px;
  border-radius:8px;
  border:1px solid transparent;
  font-size:10px;
  font-weight:700;
  cursor:pointer
}
.button-primary{background:var(--blue);color:#fff;border-color:var(--blue)}
.button-primary:hover{background:var(--blue-hover);border-color:var(--blue-hover)}
.button-secondary{background:var(--surface);color:var(--text);border-color:var(--border-strong)}
.button-secondary:hover{background:var(--surface-subtle)}
.compact-add{min-height:34px}

.kpi-strip,.detail-kpis{
  display:grid;
  grid-template-columns:repeat(5,1fr);
  border:1px solid var(--border);
  border-radius:12px;
  background:var(--surface);
  box-shadow:var(--shadow);
  margin-bottom:18px;
  overflow:hidden
}
.kpi-strip article,.detail-kpis article{padding:16px 18px;border-right:1px solid var(--border)}
.kpi-strip article:last-child,.detail-kpis article:last-child{border-right:0}
.kpi-strip span,.detail-kpis span{
  display:block;
  color:var(--muted);
  font-size:9px;
  font-weight:700;
  text-transform:uppercase;
  letter-spacing:.05em
}
.kpi-strip strong,.detail-kpis strong{
  display:block;
  margin-top:9px;
  font-size:24px;
  line-height:1;
  font-weight:700;
  letter-spacing:-.04em
}
.kpi-strip small,.detail-kpis small{
  display:flex;align-items:center;gap:5px;
  margin-top:8px;
  color:var(--muted-2);
  font-size:8px;
  font-weight:500
}
.legend-dot{width:5px;height:5px;border-radius:50%}.legend-dot.green{background:var(--green)}.legend-dot.amber{background:var(--amber)}.legend-dot.red{background:var(--red)}
.detail-kpis{grid-template-columns:1fr 1.6fr 1.4fr 1fr}
.detail-kpis .text-value{font-size:12px;line-height:1.35;letter-spacing:-.01em}

.surface{
  background:var(--surface);
  border:1px solid var(--border);
  border-radius:12px;
  box-shadow:var(--shadow);
  overflow:hidden
}
.surface+.surface{margin-top:16px}
.surface-head{
  min-height:66px;
  display:flex;align-items:center;justify-content:space-between;gap:16px;
  padding:14px 16px;
  border-bottom:1px solid var(--border)
}
.surface-head.simple{border-bottom:0;padding-bottom:8px}
.surface-head h2{
  margin:0;
  font-size:13px;
  font-weight:700;
  letter-spacing:-.015em
}
.surface-head p{
  margin:4px 0 0;
  color:var(--muted);
  font-size:9px;
  line-height:1.45
}
.surface-tools{display:flex;gap:8px;align-items:center}
.search-input{
  width:235px;
  display:flex;align-items:center;gap:7px;
  padding:0 10px;
  border:1px solid var(--border);
  border-radius:8px;
  background:var(--surface-subtle)
}
.search-input.small{width:195px}
.search-input input{
  width:100%;
  padding:8px 0;
  border:0;outline:0;
  background:transparent;
  color:var(--text);
  font-size:9px
}
.search-icon{
  width:12px;height:12px;position:relative;display:inline-block;flex:0 0 12px
}
.search-icon:before{
  content:"";position:absolute;left:1px;top:1px;width:7px;height:7px;border:1.5px solid var(--muted-2);border-radius:50%
}
.search-icon:after{
  content:"";position:absolute;right:0;bottom:0;width:5px;height:1.5px;background:var(--muted-2);transform:rotate(45deg);transform-origin:right center
}

.filter-row{display:flex;gap:4px;padding:10px 14px;border-bottom:1px solid var(--border)}
.filter-chip{
  border:0;border-radius:7px;
  padding:6px 9px;
  background:transparent;
  color:var(--muted);
  font-size:8px;
  font-weight:700;
  cursor:pointer
}
.filter-chip:hover{background:var(--surface-subtle);color:var(--text)}
.filter-chip.active{background:var(--blue-soft);color:var(--blue)}
.filter-chip span{margin-left:4px;opacity:.7}

.scan-progress{padding:11px 14px;border-bottom:1px solid var(--border);background:var(--surface-subtle)}
.scan-progress.hidden{display:none!important}
.scan-progress-top{display:flex;justify-content:space-between;gap:12px}
.scan-progress-top>div{display:flex;flex-direction:column}
.scan-progress-top strong{font-size:9px;font-weight:700}
.scan-progress-top small,.scan-progress-top>span{color:var(--muted);font-size:8px}
.scan-track{height:4px;margin-top:8px;border-radius:999px;overflow:hidden;background:var(--border)}
.scan-track div{height:100%;width:0;background:var(--blue);transition:width .2s ease}

.table-scroll{overflow:auto}
.domain-table{width:100%;min-width:960px;border-collapse:collapse}
.domain-table th,.domain-table td{padding:12px 13px;text-align:left;border-bottom:1px solid var(--border);vertical-align:middle}
.domain-table th{
  color:var(--muted-2);
  background:var(--surface-subtle);
  font-size:7px;
  font-weight:800;
  letter-spacing:.07em;
  text-transform:uppercase
}
.domain-table tbody tr:last-child td{border-bottom:0}
.domain-table tbody tr[data-search]{cursor:pointer}
.domain-table tbody tr[data-search]:hover{background:var(--surface-hover)}
.domain-primary{display:flex;align-items:center;gap:10px}
.domain-favicon{
  width:30px;height:30px;flex:0 0 30px;
  display:flex;align-items:center;justify-content:center;
  border-radius:8px;
  background:var(--blue-soft);
  color:var(--blue);
  font-size:9px;
  font-weight:800
}
.domain-favicon.large{width:42px;height:42px;flex-basis:42px;font-size:12px}
.domain-primary>div{display:flex;flex-direction:column}
.domain-primary strong{font-size:10px;font-weight:700}
.domain-primary small{margin-top:2px;color:var(--muted-2);font-size:8px}
.issuer{max-width:240px;color:var(--muted);font-size:9px}
.state{
  display:inline-flex;align-items:center;gap:5px;
  padding:4px 7px;border-radius:999px;
  font-size:7px;font-weight:800
}
.state i{width:5px;height:5px;border-radius:50%}
.state.valid{color:var(--green);background:var(--green-soft)}.state.valid i{background:var(--green)}
.state.expired,.state.error{color:var(--red);background:var(--red-soft)}.state.expired i,.state.error i{background:var(--red)}
.state.pending,.state.invalid{color:var(--amber);background:var(--amber-soft)}.state.pending i,.state.invalid i{background:var(--amber)}
.days-left{font-size:9px}.days-left.warning{color:var(--amber);font-weight:700}
.mono-chip{font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-size:8px}
.row-action{text-align:right!important}
.row-action a{color:var(--blue);font-size:8px;font-weight:700}

.empty-state{
  padding:38px;
  display:flex;flex-direction:column;align-items:center;text-align:center;
  color:var(--muted)
}
.empty-state.compact{padding:14px}
.empty-symbol{width:32px;height:32px;display:flex;align-items:center;justify-content:center;border-radius:8px;background:var(--blue-soft);color:var(--blue)}
.empty-state strong{margin-top:8px;color:var(--text);font-size:10px}
.empty-state span{margin-top:4px;font-size:8px}
.empty-action{margin-top:12px}

.back-link{display:inline-block;margin-bottom:14px;color:var(--muted);font-size:8px}
.domain-heading{display:flex;align-items:center;gap:11px}
.domain-meta{display:flex;align-items:center;flex-wrap:wrap;gap:8px;margin-top:6px;color:var(--muted);font-size:8px}
.alert{display:flex;gap:8px;margin-bottom:13px;padding:10px 12px;border-radius:8px;font-size:8px}
.alert.error{color:var(--red);background:var(--red-soft);border:1px solid rgba(191,70,83,.16)}
.detail-columns{display:grid;grid-template-columns:1.25fr .75fr;gap:14px;margin-bottom:14px}
.detail-columns .surface+.surface{margin-top:0}
.details-list{display:grid;grid-template-columns:1fr 1fr;margin:0;padding:2px 15px 14px}
.details-list>div{padding:10px 0;border-bottom:1px solid var(--border)}
.details-list>div:nth-child(odd){padding-right:16px}
.details-list>div:nth-child(even){padding-left:16px}
.details-list>div.wide{grid-column:1/-1;padding-left:0;padding-right:0}
.details-list dt{color:var(--muted-2);font-size:7px;text-transform:uppercase;letter-spacing:.06em;font-weight:700}
.details-list dd{margin:3px 0 0;font-size:9px;font-weight:600}
.mono{font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace}
.break{word-break:break-all}
.count-pill{min-width:24px;height:22px;display:flex;align-items:center;justify-content:center;border-radius:6px;background:var(--surface-subtle);color:var(--muted);font-size:8px}
.san-list{max-height:300px;overflow:auto;padding:0 15px 14px}
.san-list>div{display:flex;align-items:center;gap:8px;padding:8px 0;border-bottom:1px solid var(--border)}
.san-list>div>span{padding:2px 4px;border-radius:4px;background:var(--blue-soft);color:var(--blue);font-size:6px;font-weight:800}
.san-list code{color:var(--text);font-size:8px}
.chain-list{padding:0 15px 14px}
.chain-list article{display:grid;grid-template-columns:25px 1fr auto;gap:10px;align-items:center;padding:10px 0;border-bottom:1px solid var(--border)}
.chain-list article:last-child{border-bottom:0}
.chain-step{width:23px;height:23px;display:flex;align-items:center;justify-content:center;border-radius:6px;background:var(--blue-soft);color:var(--blue);font-size:7px;font-weight:800}
.chain-body{display:flex;flex-direction:column}
.chain-type{color:var(--muted-2);font-size:6px;text-transform:uppercase;letter-spacing:.05em}
.chain-body strong{margin-top:2px;font-size:9px}
.chain-body small,.chain-list time{color:var(--muted);font-size:7px}
.activity-feed{padding:0 15px 14px}
.activity-feed>div{display:grid;grid-template-columns:7px 40px 1fr auto;gap:8px;align-items:start;padding:8px 0;border-bottom:1px solid var(--border)}
.activity-feed>div:last-child{border-bottom:0}
.activity-dot{width:5px;height:5px;border-radius:50%;margin-top:4px}.activity-dot.ok{background:var(--green)}.activity-dot.bad{background:var(--red)}
.activity-feed strong{font-size:7px}.activity-feed span,.activity-feed time{color:var(--muted);font-size:7px}

.modal-backdrop{
  position:fixed;inset:0;z-index:100;
  display:none;align-items:center;justify-content:center;
  padding:20px;
  background:rgba(15,23,36,.52);
  backdrop-filter:blur(4px)
}
.modal-backdrop.open{display:flex}
.modal-card{
  width:min(620px,100%);
  max-height:90vh;
  overflow:auto;
  border:1px solid var(--border-strong);
  border-radius:14px;
  background:var(--surface);
  box-shadow:0 28px 80px rgba(0,0,0,.24)
}
.modal-head{
  display:flex;align-items:flex-start;justify-content:space-between;gap:20px;
  padding:20px 20px 14px;
  border-bottom:1px solid var(--border)
}
.modal-head h2{margin:0;font-size:18px;letter-spacing:-.02em}
.modal-head p{margin:6px 0 0;color:var(--muted);font-size:10px;line-height:1.5}
.modal-close{
  width:32px;height:32px;flex:0 0 32px;
  border:1px solid var(--border);
  border-radius:8px;
  background:var(--surface-subtle);
  color:var(--muted);
  font-size:18px;
  line-height:1
}
.modal-form{padding:18px 20px 20px}
.modal-form label{display:block;margin-bottom:6px;color:var(--muted);font-size:9px;font-weight:700}
.modal-form textarea{
  width:100%;
  min-height:220px;
  resize:vertical;
  padding:12px;
  border:1px solid var(--border);
  border-radius:9px;
  outline:0;
  background:var(--surface-subtle);
  color:var(--text);
  font-size:10px;
  line-height:1.6
}
.modal-form textarea:focus{border-color:var(--blue);box-shadow:0 0 0 3px var(--blue-soft)}
.input-meta{display:flex;justify-content:space-between;gap:8px;margin:7px 1px 12px;color:var(--muted-2);font-size:8px}
.input-meta strong{color:var(--muted)}
.modal-note{
  display:flex;gap:9px;align-items:flex-start;
  padding:10px 11px;
  border:1px solid var(--border);
  border-radius:8px;
  background:var(--surface-subtle)
}
.modal-note-icon{
  width:20px;height:20px;flex:0 0 20px;
  display:flex;align-items:center;justify-content:center;
  border-radius:50%;
  background:var(--blue-soft);
  color:var(--blue);
  font-size:8px;
  font-weight:800
}
.modal-note p{margin:2px 0 0;color:var(--muted);font-size:8px}
.form-message{margin-top:10px;color:var(--muted);font-size:8px}
.form-message.success{color:var(--green)}.form-message.error{color:var(--red)}
.modal-actions{
  display:flex;justify-content:flex-end;gap:8px;
  margin-top:16px;padding-top:16px;
  border-top:1px solid var(--border)
}

.footer{
  padding:18px 30px 28px;
  display:flex;justify-content:space-between;gap:18px;
  color:var(--muted-2);
  font-size:8px;
  border-top:1px solid var(--border)
}

@media(max-width:1180px){
  .kpi-strip{grid-template-columns:repeat(3,1fr)}
  .kpi-strip article{border-bottom:1px solid var(--border)}
}
@media(max-width:980px){
  .sidebar{display:none}.main-shell{margin-left:0}.mobile-brand{display:flex}.topbar-path{display:none}
}
@media(max-width:760px){
  .container{padding:24px 14px 54px}.topbar{padding:0 14px}
  .page-head,.detail-head{align-items:flex-start;flex-direction:column}
  .kpi-strip,.detail-kpis{grid-template-columns:1fr 1fr}
  .detail-columns{grid-template-columns:1fr}
  .details-list{grid-template-columns:1fr}
  .details-list>div,.details-list>div:nth-child(odd),.details-list>div:nth-child(even){padding-left:0;padding-right:0}
  .details-list>div.wide{grid-column:auto}
  .surface-head{align-items:flex-start;flex-direction:column}
  .surface-tools{width:100%}
  .search-input,.search-input.small{width:100%}
  .compact-add{width:100%}
  .footer{padding:16px 14px 24px;flex-direction:column}
}
@media(max-width:480px){
  .kpi-strip,.detail-kpis{grid-template-columns:1fr}
  .page-head h1,.detail-head h1{font-size:26px}
  .top-status{display:none}
  .input-meta{flex-direction:column}
  .modal-actions{flex-direction:column-reverse}
  .modal-actions .button{width:100%}
}


/* v7 working-page additions */
.overview-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:16px;
}
.text-link{
  color:var(--blue);
  font-size:9px;
  font-weight:700;
}
.compact-list{padding:0 16px 8px}
.compact-row{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto 110px;
  gap:12px;
  align-items:center;
  padding:11px 0;
  border-bottom:1px solid var(--border);
}
.compact-row:last-child{border-bottom:0}
.compact-row:hover .domain-primary strong{color:var(--blue)}
.compact-date{
  text-align:right;
  color:var(--muted-2);
  font-size:8px;
}
.health-strip{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:12px;
  margin-bottom:16px;
}
.health-card{
  padding:16px 18px;
  border:1px solid var(--border);
  border-radius:12px;
  background:var(--surface);
  box-shadow:var(--shadow);
}
.health-card>span{
  display:block;
  font-size:9px;
  font-weight:700;
  text-transform:uppercase;
  letter-spacing:.05em;
}
.health-card>strong{
  display:block;
  margin-top:9px;
  font-size:25px;
}
.health-card>small{
  display:block;
  margin-top:6px;
  color:var(--muted-2);
  font-size:8px;
}
.health-card.healthy{border-top:3px solid var(--green)}
.health-card.warning{border-top:3px solid var(--amber)}
.health-card.critical{border-top:3px solid var(--red)}
.risk-badge{
  display:inline-flex;
  padding:4px 7px;
  border-radius:999px;
  font-size:7px;
  font-weight:800;
}
.risk-badge.healthy{color:var(--green);background:var(--green-soft)}
.risk-badge.warning{color:var(--amber);background:var(--amber-soft)}
.risk-badge.critical{color:var(--red);background:var(--red-soft)}
.mini-kpis{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:12px;
  margin-bottom:16px;
}
.mini-kpis article{
  padding:14px 16px;
  border:1px solid var(--border);
  border-radius:10px;
  background:var(--surface);
  box-shadow:var(--shadow);
}
.mini-kpis span{
  display:block;
  color:var(--muted);
  font-size:9px;
  font-weight:700;
}
.mini-kpis strong{
  display:block;
  margin-top:7px;
  font-size:22px;
  letter-spacing:-.03em;
}
@media(max-width:900px){
  .overview-grid{grid-template-columns:1fr}
}
@media(max-width:700px){
  .health-strip,.mini-kpis{grid-template-columns:1fr}
  .compact-row{grid-template-columns:minmax(0,1fr) auto}
  .compact-date{display:none}
}

.sidebar-nav a{cursor:pointer}


/* v8 responsive typography */
.page-head h1,.detail-head h1{
  font-size:clamp(26px,2vw,34px);
  font-weight:680;
  line-height:1.1;
  letter-spacing:-.035em;
}
.page-head p{
  font-size:clamp(11px,.78vw,13px);
  line-height:1.6;
}
.surface-head h2{
  font-size:clamp(13px,.9vw,15px);
  font-weight:680;
}
.surface-head p{
  font-size:clamp(8px,.62vw,10px);
}
.kpi-strip strong,.detail-kpis strong{
  font-size:clamp(22px,1.75vw,28px);
}
.domain-table{
  font-size:clamp(9px,.65vw,11px);
}
.domain-table th{
  font-size:clamp(7px,.52vw,9px);
}
.domain-primary strong{
  font-size:clamp(9px,.68vw,11px);
}
.domain-primary small,
.issuer,
.days-left{
  font-size:clamp(8px,.58vw,10px);
}
.button{
  font-size:clamp(9px,.62vw,11px);
}
.sidebar-nav a{
  font-size:clamp(10px,.68vw,12px);
}

/* v8 datatable */
.datatable-toolbar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:11px 14px;
  border-bottom:1px solid var(--border);
  background:var(--surface);
}
.dt-search{
  width:min(360px,100%);
  height:36px;
  display:flex;
  align-items:center;
  gap:8px;
  padding:0 11px;
  border:1px solid var(--border);
  border-radius:8px;
  background:var(--surface-subtle);
}
.dt-search input{
  width:100%;
  border:0;
  outline:0;
  background:transparent;
  color:var(--text);
  font-size:clamp(9px,.62vw,11px);
}
.dt-actions{
  display:flex;
  align-items:center;
  gap:10px;
}
.dt-size-label{
  display:flex;
  align-items:center;
  gap:7px;
  color:var(--muted);
  font-size:clamp(8px,.56vw,10px);
  font-weight:600;
}
.dt-size-label select{
  height:34px;
  padding:0 26px 0 9px;
  border:1px solid var(--border);
  border-radius:8px;
  background:var(--surface);
  color:var(--text);
  font-size:clamp(8px,.56vw,10px);
  outline:0;
}
.datatable-footer{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  padding:11px 14px;
  border-top:1px solid var(--border);
  background:var(--surface);
}
.datatable-footer>[data-dt-info]{
  color:var(--muted);
  font-size:clamp(8px,.56vw,10px);
}
.datatable-pagination{
  display:flex;
  align-items:center;
  gap:6px;
}
.datatable-pagination>button,
.dt-page{
  min-width:32px;
  height:32px;
  padding:0 9px;
  border:1px solid var(--border);
  border-radius:7px;
  background:var(--surface);
  color:var(--muted);
  font-size:clamp(8px,.56vw,10px);
  font-weight:650;
}
.datatable-pagination>button:hover:not(:disabled),
.dt-page:hover{
  border-color:var(--border-strong);
  background:var(--surface-subtle);
  color:var(--text);
}
.datatable-pagination>button:disabled{
  opacity:.42;
  cursor:not-allowed;
}
.dt-pages{
  display:flex;
  align-items:center;
  gap:5px;
}
.dt-page.active{
  border-color:var(--blue);
  background:var(--blue);
  color:#fff;
}

/* Better desktop proportions */
@media(min-width:1400px){
  .container{padding-left:36px;padding-right:36px}
  .domain-table th,.domain-table td{padding-top:13px;padding-bottom:13px}
}

/* Tablet */
@media(max-width:900px){
  .datatable-toolbar{
    align-items:stretch;
  }
  .dt-search{
    flex:1;
    width:auto;
  }
}

/* Mobile */
@media(max-width:640px){
  body{
    font-size:14px;
  }
  .container{
    padding-left:12px;
    padding-right:12px;
  }
  .page-head h1,.detail-head h1{
    font-size:26px;
  }
  .datatable-toolbar{
    flex-direction:column;
    align-items:stretch;
    padding:10px;
  }
  .dt-search{
    width:100%;
  }
  .dt-actions{
    justify-content:space-between;
  }
  .datatable-footer{
    flex-direction:column;
    align-items:stretch;
    padding:10px;
  }
  .datatable-pagination{
    justify-content:space-between;
    width:100%;
  }
  .dt-pages{
    max-width:150px;
    overflow:auto;
  }
  .domain-table{
    min-width:860px;
    font-size:10px;
  }
  .domain-table th,.domain-table td{
    padding:10px 11px;
  }
}

/* v9 accounts, groups, quota, and health buckets */
button:disabled,.button:disabled{opacity:.48;cursor:not-allowed}
.button-danger{background:var(--red-soft);color:var(--red);border-color:rgba(197,76,89,.22)}
.button-danger:hover{background:var(--red);color:#fff}
.icon-groups:before{content:"";position:absolute;left:5px;top:6px;width:5px;height:5px;border:1.5px solid #8291a8;border-radius:2px;box-shadow:7px 0 0 -1px var(--sidebar),7px 0 0 0 #8291a8,0 7px 0 -1px var(--sidebar),0 7px 0 0 #8291a8,7px 7px 0 -1px var(--sidebar),7px 7px 0 0 #8291a8}
.topbar-user{display:flex;flex-direction:column;text-align:right;line-height:1.2}
.topbar-user strong{font-size:9px;color:var(--text)}.topbar-user small{margin-top:2px;font-size:7px;color:var(--muted)}
.logout-form{margin:0}.logout-button{height:32px;padding:0 10px;border:1px solid var(--border);border-radius:8px;background:var(--surface);color:var(--muted);font-size:8px;font-weight:700;cursor:pointer}.logout-button:hover{color:var(--text);background:var(--surface-subtle)}
.dashboard-health a{color:inherit}.dashboard-health .health-card{transition:transform .15s ease,border-color .15s ease}.dashboard-health .health-card:hover{transform:translateY(-1px);border-color:var(--border-strong)}
.collection-usage{display:grid;grid-template-columns:auto minmax(180px,1fr) auto;align-items:center;gap:14px;padding:13px 16px;margin-bottom:16px}.collection-usage>div:first-child{display:flex;align-items:baseline;gap:6px}.collection-usage strong{font-size:16px}.collection-usage span,.collection-usage small{font-size:8px;color:var(--muted)}.quota-track{height:7px;border-radius:99px;background:var(--surface-subtle);border:1px solid var(--border);overflow:hidden}.quota-track i{display:block;height:100%;background:var(--blue);border-radius:99px}
.health-badge{display:inline-flex;align-items:center;padding:4px 7px;border-radius:999px;font-size:7px;font-weight:800;white-space:nowrap}.health-badge.good{color:var(--green);background:var(--green-soft)}.health-badge.expiring{color:var(--amber);background:var(--amber-soft)}.health-badge.expired{color:var(--red);background:var(--red-soft)}.health-badge.other{color:var(--muted);background:var(--surface-subtle)}
.group-select,.modal-select{height:34px;max-width:150px;padding:0 28px 0 9px;border:1px solid var(--border);border-radius:8px;background:var(--surface);color:var(--text);font-size:8px;outline:0}.modal-select{display:block;width:100%;max-width:none;margin-bottom:14px}.optional{font-weight:500;color:var(--muted-2)}
.action-pair{white-space:nowrap}.action-pair a{margin-right:9px}.text-danger{border:0;background:transparent;color:var(--red);font-size:8px;font-weight:700;padding:0;cursor:pointer}.text-danger:hover{text-decoration:underline}
.group-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;padding:16px}.group-card{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:14px;border:1px solid var(--border);border-radius:10px;background:var(--surface-subtle)}.group-card>div:first-child{display:flex;align-items:center;gap:10px}.group-icon{width:32px;height:32px;display:flex;align-items:center;justify-content:center;border-radius:8px;background:var(--blue-soft);color:var(--blue);font-size:13px;font-weight:800}.group-card strong{display:block;font-size:10px}.group-card small{display:block;margin-top:2px;color:var(--muted);font-size:8px}.group-actions{display:flex;gap:8px}.group-actions button{border:0;background:transparent;color:var(--blue);font-size:8px;font-weight:700;cursor:pointer}.group-actions button.text-danger{color:var(--red)}

.auth-page{min-height:100vh;background:var(--bg)}.auth-shell{min-height:100vh;display:flex;flex-direction:column}.auth-brand{height:72px;display:flex;align-items:center;gap:11px;padding:0 28px;border-bottom:1px solid var(--border);background:var(--surface)}.auth-brand>div{display:flex;flex-direction:column}.auth-brand strong{font-size:13px}.auth-brand small{margin-top:2px;color:var(--muted);font-size:8px}.auth-main{flex:1;display:flex;align-items:center;justify-content:center;padding:36px 18px}.auth-card{width:min(440px,100%);padding:26px;border:1px solid var(--border);border-radius:14px;background:var(--surface);box-shadow:var(--shadow)}.auth-card-head h1{margin:0;font-size:25px;letter-spacing:-.035em}.auth-card-head p{margin:8px 0 0;color:var(--muted);font-size:10px;line-height:1.6}.auth-form{display:grid;gap:13px;margin-top:20px}.auth-form label{display:grid;gap:6px;color:var(--muted);font-size:9px;font-weight:700}.auth-form input{width:100%;height:40px;padding:0 11px;border:1px solid var(--border);border-radius:8px;outline:0;background:var(--surface-subtle);color:var(--text);font-size:10px}.auth-form input:focus{border-color:var(--blue);box-shadow:0 0 0 3px var(--blue-soft)}.auth-form label small{color:var(--muted-2);font-size:7px;font-weight:500}.auth-submit{width:100%;min-height:40px;margin-top:3px}.auth-alert{margin-top:16px;padding:10px 11px;border-radius:8px;font-size:9px;line-height:1.5}.auth-alert.error{color:var(--red);background:var(--red-soft)}.auth-alert.success{color:var(--green);background:var(--green-soft)}.auth-alert.info{color:var(--blue);background:var(--blue-soft)}.auth-switch{margin:18px 0 0;text-align:center;color:var(--muted);font-size:9px}.auth-switch a,.auth-links a{color:var(--blue);font-weight:700}.auth-links{display:flex;justify-content:center;gap:14px;margin-top:15px;font-size:8px}.auth-footer{padding:18px;text-align:center;color:var(--muted-2);font-size:8px}
@media(max-width:760px){.collection-usage{grid-template-columns:1fr}.group-grid{grid-template-columns:1fr}.topbar-user{display:none}}

/* v10 administrator area */
.icon-admin:before,.icon-users:before,.icon-back:before{content:"";position:absolute;left:5px;top:5px;width:10px;height:10px;border:1.5px solid #8291a8;border-radius:3px}
.icon-admin:after{content:"A";position:absolute;left:8px;top:5px;font-size:7px;font-weight:800;color:#8291a8}
.icon-users:after{content:"";position:absolute;left:7px;top:6px;width:6px;height:6px;border:1.5px solid #8291a8;border-radius:50%;box-shadow:-4px 6px 0 -2px var(--sidebar),-4px 6px 0 -1px #8291a8,4px 6px 0 -2px var(--sidebar),4px 6px 0 -1px #8291a8}
.icon-back:after{content:"←";position:absolute;left:5px;top:1px;font-size:14px;color:#8291a8}
.admin-kpi-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-bottom:16px}
.admin-kpi-grid article{padding:15px 16px;border:1px solid var(--border);border-radius:10px;background:var(--surface);box-shadow:var(--shadow)}
.admin-kpi-grid span{display:block;color:var(--muted);font-size:8px;font-weight:700;text-transform:uppercase;letter-spacing:.04em}
.admin-kpi-grid strong{display:block;margin-top:8px;font-size:23px;letter-spacing:-.035em}
.admin-kpi-grid small{display:block;margin-top:5px;color:var(--muted);font-size:8px;line-height:1.45}
.admin-overview-grid{margin-bottom:16px}.admin-compact-row{grid-template-columns:minmax(0,1fr) auto 110px}.audit-row{grid-template-columns:minmax(0,1fr) 155px}
.admin-pill{display:inline-flex;align-items:center;justify-content:center;min-height:22px;padding:0 7px;border-radius:999px;background:var(--surface-subtle);color:var(--muted);font-size:7px;font-weight:800;white-space:nowrap}
.admin-pill.ok{background:var(--green-soft);color:var(--green)}.admin-pill.warn{background:var(--amber-soft);color:var(--amber)}.admin-pill.bad{background:var(--red-soft);color:var(--red)}.admin-pill.admin{background:var(--blue-soft);color:var(--blue)}
.admin-profile{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:16px;margin-bottom:16px}
.admin-profile-main{display:flex;align-items:center;gap:12px}.admin-avatar{width:44px;height:44px;display:flex;align-items:center;justify-content:center;border-radius:12px;background:var(--blue-soft);color:var(--blue);font-size:17px;font-weight:800}.admin-profile-main strong{display:block;font-size:13px}.admin-profile-main span{display:block;margin-top:3px;color:var(--muted);font-size:9px}.admin-profile-main small{display:block;margin-top:5px;color:var(--muted-2);font-size:7px}.admin-status-line{display:flex;align-items:center;justify-content:flex-end;gap:7px;flex-wrap:wrap}
.admin-actions{margin-bottom:16px}.admin-action-buttons{display:flex;gap:8px;flex-wrap:wrap;padding:14px 16px 16px}.admin-self-note{align-self:center;color:var(--muted);font-size:8px}.admin-group-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.admin-table small{color:var(--muted);font-size:7px}.admin-meta{max-width:380px;white-space:normal;word-break:break-word;font-size:7px}
.system-check-list{display:grid}.system-check-list>div{display:grid;grid-template-columns:48px 180px minmax(0,1fr);align-items:center;gap:10px;padding:12px 16px;border-top:1px solid var(--border)}.system-check-list>div:first-child{border-top:0}.system-check-list strong{font-size:9px}.system-check-list code{overflow:auto;color:var(--muted);font-size:8px}.code-panel{margin:0 16px 10px;padding:12px 14px;border:1px solid var(--border);border-radius:8px;background:var(--surface-subtle);overflow:auto}.code-panel code{font-size:9px}.system-note{margin:0;padding:0 16px 16px;color:var(--muted);font-size:9px;line-height:1.6}.system-note code{font-size:8px}
@media(max-width:1050px){.admin-kpi-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.admin-group-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:700px){.admin-kpi-grid{grid-template-columns:1fr}.admin-profile{align-items:flex-start;flex-direction:column}.admin-status-line{justify-content:flex-start}.admin-group-grid{grid-template-columns:1fr}.system-check-list>div{grid-template-columns:44px 1fr}.system-check-list code{grid-column:1/-1}.admin-compact-row{grid-template-columns:minmax(0,1fr) auto}.admin-compact-row .compact-date{display:none}}

/* ========================================================================
   v11 responsive readability + layout polish
   ======================================================================== */
:root{
  --sidebar-width:248px;
  --content-max:1760px;
  --font-sans:Inter,"Segoe UI Variable Text","Segoe UI Variable","Segoe UI",-apple-system,BlinkMacSystemFont,"Helvetica Neue",Arial,sans-serif;
}

html{font-size:16px}
body{
  font-size:15px;
  line-height:1.55;
  letter-spacing:0;
}
.app-shell{display:flex;min-height:100vh}
.sidebar{
  width:var(--sidebar-width);
  flex:0 0 var(--sidebar-width);
}
.main-shell{
  flex:1;
  min-width:0;
  margin-left:var(--sidebar-width);
}
.container{
  width:100%;
  max-width:var(--content-max);
  margin:0 auto;
  padding:32px 36px 56px;
}

/* Cleaner navigation */
.sidebar-brand{height:72px;padding:0 20px}
.brand-copy strong{font-size:15px;font-weight:750;letter-spacing:-.02em}
.brand-copy small{display:none}
.sidebar-nav{padding:16px 12px}
.sidebar-nav a{
  min-height:44px;
  padding:0 12px;
  border-radius:9px;
  font-size:13px;
  font-weight:650;
}
.nav-label{display:none}
.nav-divider{height:1px;margin:14px 8px;background:rgba(255,255,255,.08)}
.sidebar-bottom{display:none}
.nav-icon{width:23px;height:23px;flex-basis:23px}
.sidebar-close{display:none}

/* Top bar */
.topbar{
  height:66px;
  padding:0 32px;
}
.topbar-leading{display:flex;align-items:center;gap:12px;min-width:0}
.topbar-title{
  color:var(--text);
  font-size:14px;
  font-weight:700;
  letter-spacing:-.01em;
}
.topbar-path,.mobile-brand{display:none}
.topbar-actions{gap:10px}
.topbar-user strong{font-size:12px;font-weight:700}
.topbar-user small{display:none}
.icon-button{width:36px;height:36px;font-size:15px}
.logout-button{height:36px;padding:0 12px;font-size:12px}
.mobile-menu-button{
  display:none;
  width:38px;
  height:38px;
  padding:0;
  border:1px solid var(--border);
  border-radius:9px;
  background:var(--surface);
  cursor:pointer;
}
.mobile-menu-button span{display:block;width:16px;height:2px;margin:3px auto;border-radius:99px;background:var(--text)}
.sidebar-overlay{display:none}

/* Page titles */
.page-head,.detail-head{
  margin-bottom:22px;
  align-items:center;
}
.eyebrow{display:none}
.page-head h1,.detail-head h1{
  font-size:32px;
  line-height:1.15;
  font-weight:750;
  letter-spacing:-.035em;
}
.page-head p{
  max-width:760px;
  margin-top:7px;
  font-size:14px;
  line-height:1.55;
}
.head-actions{gap:10px}
.button{
  min-height:40px;
  padding:0 15px;
  border-radius:9px;
  font-size:13px;
  font-weight:700;
}

/* Surfaces */
.surface{border-radius:14px}
.surface+.surface{margin-top:18px}
.surface-head{
  min-height:62px;
  padding:15px 18px;
}
.surface-head.simple{padding:15px 18px 7px}
.surface-head h2{font-size:15px;font-weight:750}
.surface-head p{margin-top:4px;font-size:12px;line-height:1.5}
.text-link{font-size:12px}

/* Dashboard cards */
.health-strip{gap:14px;margin-bottom:18px}
.health-card{padding:19px 20px;border-radius:13px}
.health-card>span{font-size:12px;letter-spacing:.035em}
.health-card>strong{margin-top:10px;font-size:30px;line-height:1}
.health-card>small{margin-top:8px;font-size:12px}
.admin-kpi-grid{gap:14px;margin-bottom:18px}
.admin-kpi-grid article{padding:18px;border-radius:12px}
.admin-kpi-grid span{font-size:11px}
.admin-kpi-grid strong{margin-top:8px;font-size:28px}
.admin-kpi-grid small{margin-top:6px;font-size:11.5px}
.mini-kpis article{padding:17px 18px}
.mini-kpis span{font-size:12px}
.mini-kpis strong{font-size:27px}
.collection-usage{padding:16px 18px;gap:16px}
.collection-usage strong{font-size:18px}
.collection-usage span,.collection-usage small{font-size:12px}

/* Tables */
.table-scroll{overflow:auto;-webkit-overflow-scrolling:touch;scrollbar-width:thin}
.domain-table{
  min-width:980px;
  font-size:13px;
}
.domain-table th,.domain-table td{padding:14px 16px}
.domain-table th{
  font-size:10.5px;
  letter-spacing:.055em;
}
.domain-primary{gap:11px}
.domain-favicon{width:34px;height:34px;flex-basis:34px;border-radius:9px;font-size:11px}
.domain-primary strong{font-size:13px}
.domain-primary small{margin-top:2px;font-size:11.5px}
.issuer{max-width:300px;font-size:12.5px}
.days-left{font-size:12.5px}
.state,.health-badge,.admin-pill,.risk-badge{
  min-height:25px;
  padding:4px 8px;
  font-size:10.5px;
}
.row-action a,.text-danger{font-size:12px}
.mono-chip,.mono{font-size:11px}
.group-select,.modal-select{height:38px;font-size:12px}

/* Data-table controls */
.datatable-toolbar{padding:12px 16px;gap:14px}
.dt-search{width:min(390px,100%);height:40px;padding:0 12px}
.dt-search input{font-size:13px}
.dt-size-label{font-size:12px}
.dt-size-label select{height:38px;font-size:12px}
.filter-row{gap:6px;padding:10px 16px;overflow-x:auto}
.filter-chip{padding:7px 10px;font-size:11px;white-space:nowrap}
.datatable-footer{padding:12px 16px}
.datatable-footer>[data-dt-info],.datatable-pagination>button,.dt-page{font-size:11.5px}
.datatable-pagination>button,.dt-page{height:34px;min-width:34px}

/* Lists / details */
.compact-list{padding:0 18px 9px}
.compact-row{padding:13px 0;gap:14px}
.compact-date{font-size:11px}
.empty-state{padding:44px 24px}
.empty-state strong{font-size:14px}
.empty-state span{font-size:12px}
.back-link{font-size:12px}
.domain-meta{font-size:12px}
.details-list dt{font-size:10px}
.details-list dd{font-size:13px}
.count-pill{font-size:11px}
.san-list code{font-size:12px}
.chain-body strong{font-size:13px}
.chain-body small,.chain-list time,.activity-feed strong,.activity-feed span,.activity-feed time{font-size:11px}

/* Groups */
.group-grid{gap:14px;padding:18px}
.group-card{padding:16px;border-radius:11px}
.group-icon{width:36px;height:36px;font-size:14px}
.group-card strong{font-size:13px}
.group-card small{font-size:11px}
.group-actions button{font-size:12px}

/* Admin profile */
.admin-profile{padding:18px}
.admin-avatar{width:48px;height:48px;font-size:18px}
.admin-profile-main strong{font-size:15px}
.admin-profile-main span{font-size:12px}
.admin-profile-main small{font-size:11px}
.admin-self-note{font-size:11.5px}
.admin-table small{font-size:11px}
.admin-meta{font-size:11px}
.system-check-list>div{grid-template-columns:56px 190px minmax(0,1fr);padding:14px 18px}
.system-check-list strong{font-size:12px}
.system-check-list code{font-size:11px}
.code-panel code,.system-note,.system-note code{font-size:12px}

/* Auth */
.auth-brand strong{font-size:15px}
.auth-brand small{display:none}
.auth-card{width:min(470px,100%);padding:30px}
.auth-card-head h1{font-size:28px}
.auth-card-head p{font-size:13px}
.auth-form{gap:15px}
.auth-form label{font-size:12px}
.auth-form input{height:44px;font-size:14px}
.auth-form label small{font-size:11px}
.auth-alert,.auth-switch,.auth-links{font-size:12px}
.auth-footer{display:none}

/* No redundant app footer in v11 */
.footer{display:none}

/* Wide desktop: use the canvas without making text tiny */
@media (min-width:1600px){
  :root{--sidebar-width:252px;--content-max:1840px}
  body{font-size:16px}
  .container{padding:38px 42px 64px}
  .topbar{padding:0 40px}
  .page-head h1,.detail-head h1{font-size:34px}
  .domain-table{font-size:13.5px}
  .domain-table th{font-size:11px}
  .domain-primary strong{font-size:13.5px}
  .domain-primary small,.issuer{font-size:12.5px}
}

/* 13-inch / medium laptop */
@media (max-width:1366px){
  :root{--sidebar-width:228px}
  .container{max-width:none;padding:28px 26px 48px}
  .topbar{padding:0 26px}
  .sidebar-nav a{font-size:12.5px;padding:0 10px}
  .page-head h1,.detail-head h1{font-size:30px}
  .admin-users-table{min-width:860px}
}

/* Tablet + small laptop: off-canvas navigation */
@media (max-width:1024px){
  :root{--sidebar-width:270px}
  body.nav-open{overflow:hidden}
  .main-shell{margin-left:0}
  .sidebar{
    display:flex;
    width:var(--sidebar-width);
    flex-basis:var(--sidebar-width);
    transform:translateX(-105%);
    transition:transform .22s ease;
    box-shadow:0 18px 50px rgba(0,0,0,.25);
    z-index:120;
  }
  .sidebar.is-open{transform:translateX(0)}
  .sidebar-overlay{
    position:fixed;
    inset:0;
    display:block;
    pointer-events:none;
    opacity:0;
    background:rgba(10,16,25,.45);
    transition:opacity .2s ease;
    z-index:110;
  }
  .sidebar-overlay.is-open{opacity:1;pointer-events:auto}
  .mobile-menu-button{display:block}
  .sidebar-close{
    display:flex;
    align-items:center;
    justify-content:center;
    margin-left:auto;
    width:34px;
    height:34px;
    border:0;
    background:transparent;
    color:#9ba8b9;
    font-size:25px;
    cursor:pointer;
  }
  .container{padding:26px 22px 44px}
  .topbar{padding:0 22px}
  .topbar-user{display:flex}
  .admin-kpi-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}

@media (max-width:760px){
  body{font-size:14px}
  .topbar{height:60px;padding:0 14px}
  .container{padding:22px 14px 38px}
  .page-head,.detail-head{align-items:flex-start;gap:14px;margin-bottom:18px}
  .page-head h1,.detail-head h1{font-size:27px}
  .page-head p{font-size:13px}
  .head-actions{width:100%;flex-wrap:wrap}
  .head-actions .button{flex:1;min-width:130px}
  .health-strip,.mini-kpis,.admin-kpi-grid{grid-template-columns:1fr}
  .overview-grid{grid-template-columns:1fr}
  .surface-head{padding:14px 15px}
  .surface-head h2{font-size:14px}
  .surface-head p{font-size:11.5px}
  .datatable-toolbar{padding:10px;flex-direction:column;align-items:stretch}
  .dt-search{width:100%}
  .dt-actions{justify-content:flex-end}
  .datatable-footer{padding:10px;flex-direction:column;align-items:stretch}
  .datatable-pagination{justify-content:space-between}
  .filter-row{padding:9px 10px}
  .topbar-user{display:none}
  .logout-button{padding:0 10px}
  .icon-button{width:34px;height:34px}
  .group-grid{grid-template-columns:1fr;padding:12px}
  .collection-usage{grid-template-columns:1fr;gap:10px}
}

/* Admin/user tables become readable cards on phones instead of tiny horizontal text */
@media (max-width:680px){
  .mobile-card-table{min-width:0!important;width:100%}
  .mobile-card-table thead{display:none}
  .mobile-card-table tbody,.mobile-card-table tr,.mobile-card-table td{display:block;width:100%}
  .mobile-card-table tbody tr[data-search]{
    margin:0;
    padding:14px 14px 12px;
    border-bottom:1px solid var(--border);
    background:var(--surface);
  }
  .mobile-card-table tbody tr[data-search]:last-child{border-bottom:0}
  .mobile-card-table td{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:14px;
    min-height:36px;
    padding:6px 0;
    border:0!important;
    text-align:right;
    font-size:12.5px;
  }
  .mobile-card-table td::before{
    content:attr(data-label);
    flex:0 0 auto;
    color:var(--muted);
    font-size:10.5px;
    font-weight:750;
    letter-spacing:.035em;
    text-transform:uppercase;
    text-align:left;
  }
  .mobile-card-table td.mobile-primary{
    display:block;
    padding:0 0 10px;
    text-align:left;
  }
  .mobile-card-table td.mobile-primary::before{display:none}
  .mobile-card-table .domain-primary{align-items:center}
  .mobile-card-table .row-action{padding-top:10px;text-align:left!important}
  .mobile-card-table .row-action::before{display:none}
  .mobile-card-table .row-action a,
  .mobile-card-table .row-action button{
    width:100%;
    min-height:38px;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    border:1px solid var(--border);
    border-radius:8px;
    background:var(--surface-subtle);
  }
  .mobile-card-table .action-pair{display:grid;grid-template-columns:1fr 1fr;gap:8px}
  .mobile-card-table .action-pair a{margin:0}
  .mobile-card-table td[colspan]{display:block;text-align:center}
  .mobile-card-table td[colspan]::before{display:none}
}

@media (max-width:420px){
  .topbar-title{font-size:13px}
  .logout-button{font-size:11px}
  .page-head h1,.detail-head h1{font-size:25px}
  .button{font-size:12.5px}
  .health-card{padding:17px}
  .health-card>strong{font-size:28px}
  .modal-backdrop{padding:10px}
  .modal-head{padding:16px 16px 12px}
  .modal-form{padding:15px 16px 16px}
}

/* Desktop top bar stays intentionally minimal; title appears when navigation becomes mobile. */
.topbar-title{display:none}
@media(max-width:1024px){.topbar-title{display:block}}

/* Readable modal and scanner feedback text */
.modal-head h2{font-size:20px}
.modal-head p{font-size:13px}
.modal-form label{font-size:12px}
.modal-form textarea{font-size:14px;line-height:1.55}
.input-meta{font-size:11px}
.modal-note p,.form-message{font-size:12px}
.scan-progress-top strong{font-size:12px}
.scan-progress-top small,.scan-progress-top>span{font-size:11px}
.alert{font-size:12px}

/* ========================================================================
   Certificate Scanner SaaS additions
   This file styles only v13+ SaaS screens and leaves app-v11.css untouched.
   ======================================================================== */

/* ---------- Shared SaaS forms ---------- */
.form-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:16px 18px;
  width:100%;
}
.form-grid>label{
  display:flex;
  flex-direction:column;
  gap:7px;
  min-width:0;
  color:var(--text);
  font-size:12px;
  line-height:1.35;
  font-weight:700;
}
.form-grid>label>small{
  display:block;
  margin-top:-3px;
  color:var(--muted);
  font-size:10.5px;
  font-weight:500;
}
.form-grid input:not([type="checkbox"]):not([type="radio"]),
.form-grid select,
.form-grid textarea{
  display:block;
  width:100%;
  min-width:0;
  max-width:100%;
  min-height:42px;
  margin:0;
  padding:0 12px;
  border:1px solid var(--border-strong);
  border-radius:9px;
  outline:0;
  background:var(--surface);
  color:var(--text);
  box-shadow:0 1px 1px rgba(16,24,40,.02);
  font-size:13px;
  line-height:1.35;
  transition:border-color .15s ease,box-shadow .15s ease,background .15s ease;
}
.form-grid textarea{
  min-height:124px;
  padding:11px 12px;
  resize:vertical;
  line-height:1.55;
}
.form-grid select{padding-right:34px}
.form-grid input::placeholder,.form-grid textarea::placeholder{color:var(--muted-2);opacity:1}
.form-grid input:focus,.form-grid select:focus,.form-grid textarea:focus{
  border-color:var(--blue);
  box-shadow:0 0 0 3px var(--blue-soft);
}
.form-grid input[readonly],.form-grid input:disabled,.form-grid select:disabled,.form-grid textarea:disabled{
  cursor:not-allowed;
  background:var(--surface-subtle);
  color:var(--muted);
}
body.light .form-grid input,body.light .form-grid select,body.light .form-grid textarea{color-scheme:light}
body:not(.light) .form-grid input,body:not(.light) .form-grid select,body:not(.light) .form-grid textarea{color-scheme:dark}
.full-span{grid-column:1/-1}
.form-actions{
  display:flex;
  align-items:center;
  gap:10px;
  flex-wrap:wrap;
  margin-top:18px;
}
section.surface>form.form-grid{padding:18px}
.form-message{
  min-height:20px;
  margin-top:12px;
  color:var(--muted);
  font-size:12px;
  line-height:1.55;
}

/* ---------- Admin plan management ---------- */
.admin-settings-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:0;
  margin-bottom:18px;
  overflow:hidden;
}
.admin-settings-grid>div{min-width:0;padding:20px 22px}
.admin-settings-grid>div+div{border-left:1px solid var(--border)}
.admin-settings-grid h2{margin:0;font-size:20px;letter-spacing:-.025em}
.admin-settings-grid p{margin:7px 0 0;color:var(--muted);font-size:12px;line-height:1.55}
.admin-plan-stack{display:grid;gap:16px;padding:0 18px 18px}
.admin-plan-form{
  min-width:0;
  padding:20px;
  border:1px solid var(--border);
  border-radius:13px;
  background:var(--surface-subtle);
}
.admin-plan-title{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:16px;
  margin-bottom:18px;
  padding-bottom:15px;
  border-bottom:1px solid var(--border);
}
.admin-plan-title>div{display:grid;gap:3px;min-width:0}
.admin-plan-title strong{font-size:17px;line-height:1.25;letter-spacing:-.02em}
.admin-plan-title small{color:var(--muted);font-size:11px}
.admin-plan-grid{
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:15px 14px;
  margin-bottom:16px;
}
.admin-plan-grid .full-span{grid-column:span 2}
.admin-check-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:8px 10px;
  margin:4px 0 0;
  padding:12px;
  border:1px solid var(--border);
  border-radius:10px;
  background:var(--surface);
}
.admin-check-grid label{
  display:flex;
  align-items:center;
  gap:9px;
  min-width:0;
  min-height:34px;
  padding:4px 6px;
  color:var(--text);
  font-size:12px;
  font-weight:650;
  line-height:1.3;
}
.admin-check-grid input[type="checkbox"]{
  width:17px;
  height:17px;
  flex:0 0 17px;
  margin:0;
  accent-color:var(--blue);
}
.admin-plan-form .form-actions{margin-top:14px}

/* ---------- Admin billing ---------- */
.provider-readiness{
  display:flex;
  align-items:center;
  gap:9px;
  flex-wrap:wrap;
  padding:14px 15px;
  border:1px solid var(--border);
  border-radius:10px;
  background:var(--surface-subtle);
}
.provider-readiness>strong{margin-right:4px;font-size:12px}
.provider-readiness p{width:100%;margin:3px 0 0;color:var(--muted);font-size:11.5px;line-height:1.55}
.provider-readiness code{font-size:11px}

/* ---------- Subscription / reports ---------- */
.subscription-summary{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:22px;
  padding:20px 22px;
}
.subscription-summary>div:first-child{min-width:0}
.subscription-summary h2{margin:2px 0 6px;font-size:22px;letter-spacing:-.025em}
.subscription-summary p{margin:0;color:var(--muted);font-size:12.5px;line-height:1.55}
.subscription-status{
  display:flex;
  min-width:150px;
  flex-direction:column;
  align-items:flex-end;
  gap:5px;
  text-align:right;
}
.subscription-status strong{font-size:13px}.subscription-status small{color:var(--muted);font-size:11px}
.locked-feature{padding:30px;text-align:center}
.locked-feature h2{margin:0;font-size:21px;letter-spacing:-.025em}
.locked-feature p{max-width:660px;margin:9px auto 18px;color:var(--muted);font-size:13px;line-height:1.65}
.report-preview{
  width:min(760px,80vw);
  max-height:520px;
  margin-top:12px;
  overflow:auto;
  padding:18px;
  border:1px solid var(--border);
  border-radius:12px;
  background:#fff;
  color:#111827;
  box-shadow:var(--shadow);
}
.domain-table details summary{cursor:pointer;color:var(--blue);font-weight:700}

/* ---------- Assessment ---------- */
.assessment-form{padding:22px}
.assessment-form .form-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:17px 18px}
.assessment-form .form-actions{padding-top:2px;border-top:0}

/* ---------- AI recommendation ---------- */
.recommendation-hero{padding:24px}
.recommendation-hero h2{margin:4px 0 10px;font-size:25px;line-height:1.25;letter-spacing:-.03em}
.recommendation-hero p{max-width:980px;margin:0;color:var(--muted);font-size:13px;line-height:1.7}
.recommendation-hero small{display:block;margin-top:13px;color:var(--muted-2);font-size:10.5px}
.recommendation-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;margin:18px 0}
.recommendation-grid .surface{margin:0;padding:22px}
.recommendation-grid h2,.recommendation-list+h2{margin-top:0}
.recommendation-grid h3{margin:8px 0 10px;font-size:19px;letter-spacing:-.02em}
.recommendation-grid p{margin:0;color:var(--muted);font-size:12.5px;line-height:1.65}
.recommendation-list{display:grid;gap:0;padding:0 20px 18px}
.recommendation-list article{display:grid;grid-template-columns:auto minmax(0,1fr);gap:5px 10px;padding:15px 0;border-top:1px solid var(--border)}
.recommendation-list article:first-child{border-top:0}
.recommendation-list article>strong{align-self:center;font-size:13px}
.recommendation-list article>p{grid-column:1/-1;margin:0;color:var(--muted);font-size:12px;line-height:1.6}

/* ---------- Checkout ---------- */
.checkout-card{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(320px,.85fr);gap:0;overflow:hidden}
.checkout-summary{padding:26px;border-right:1px solid var(--border)}
.checkout-summary h2{margin:3px 0 12px;font-size:26px;letter-spacing:-.03em}
.checkout-summary>strong{display:block;font-size:21px;letter-spacing:-.02em}
.checkout-summary p{margin:12px 0 0;color:var(--muted);font-size:12.5px;line-height:1.65}
.checkout-provider{padding:26px}
.checkout-provider h3{margin:0 0 8px;font-size:17px}
.checkout-provider p{margin:0 0 18px;color:var(--muted);font-size:12.5px;line-height:1.6}
.square-card{min-height:90px;margin:0 0 18px;padding:14px;border:1px solid var(--border);border-radius:10px;background:var(--surface-subtle)}

/* ---------- Logged-in plans ---------- */
.pricing-grid{
  display:grid;
  grid-template-columns:repeat(5,minmax(0,1fr));
  gap:14px;
  align-items:stretch;
}
.pricing-card{
  position:relative;
  display:flex;
  min-width:0;
  min-height:500px;
  flex-direction:column;
  padding:20px;
  border:1px solid var(--border);
  border-radius:14px;
  background:var(--surface);
  box-shadow:var(--shadow);
}
.pricing-card.featured{border-color:var(--blue);box-shadow:0 0 0 1px var(--blue-soft),var(--shadow)}
.pricing-card .popular-badge{
  position:absolute;
  top:11px;
  right:11px;
  padding:4px 7px;
  border-radius:999px;
  background:var(--amber-soft);
  color:var(--amber);
  font-size:8.5px;
  font-weight:800;
  letter-spacing:.08em;
  text-transform:uppercase;
}
.pricing-card h2{margin:0 0 9px;font-size:17px;letter-spacing:-.02em}
.plan-limit{font-size:29px;font-weight:800;line-height:1.1;letter-spacing:-.03em}.plan-limit small{font-size:11px;font-weight:600;color:var(--muted);letter-spacing:0}
.pricing-card>div:first-child>p{min-height:54px;margin:13px 0 0;color:var(--muted);font-size:11.5px;line-height:1.55}
.plan-price{margin:20px 0 14px}.plan-price strong{font-size:29px;line-height:1;letter-spacing:-.035em}.plan-price span{margin-left:4px;color:var(--muted);font-size:11px}
.plan-features{display:grid;gap:10px;margin:6px 0 22px;padding:0;list-style:none;color:var(--text);font-size:11.5px}
.plan-features li{position:relative;padding-left:19px;line-height:1.45}.plan-features li:before{content:"";position:absolute;left:0;top:.37em;width:8px;height:8px;border:2px solid var(--blue);border-radius:50%;box-shadow:inset 0 0 0 2px var(--surface)}
.plan-actions{display:grid;gap:8px;margin-top:auto}.plan-actions .button{width:100%}.plan-note,.plan-setup-note{display:block;color:var(--muted);font-size:10.5px;line-height:1.5}
.billing-toggle{display:flex;gap:4px;padding:4px;border:1px solid var(--border);border-radius:999px;background:var(--surface)}
.billing-toggle a{padding:7px 13px;border-radius:999px;color:var(--muted);font-size:11.5px;font-weight:700;text-decoration:none}
.billing-toggle a.active{background:var(--blue);color:#fff}

/* ---------- Public pricing ---------- */
.pricing-public-body{margin:0;min-height:100vh;background:#05080d;color:#f7f9fc}
.pricing-public-body .button{display:inline-flex;align-items:center;justify-content:center}
.pricing-topbar{height:68px;border-bottom:1px solid #1f2937;display:flex;align-items:center;justify-content:space-between;padding:0 max(24px,calc((100vw - 1180px)/2));position:sticky;top:0;background:rgba(5,8,13,.94);backdrop-filter:blur(14px);z-index:20}
.pricing-brand{display:flex;gap:10px;align-items:center;color:#fff;text-decoration:none}.pricing-topbar nav{display:flex;align-items:center;gap:22px}.pricing-topbar nav>a:not(.button){color:#c7d0df;text-decoration:none;font-size:13px;font-weight:650}
.pricing-public-main{max-width:1180px;margin:auto}.pricing-intro{padding:72px 0 68px;border-bottom:1px solid #1f2937}.pricing-intro h1,.pricing-program h2,.pricing-feature-band h2{font-size:clamp(34px,4.5vw,56px);line-height:1.03;letter-spacing:-.045em;max-width:820px;margin:14px 0 18px}.pricing-intro p,.pricing-program p{max-width:760px;color:#9eacc0;font-size:16px;line-height:1.7}.pricing-program{padding:68px 0}.pricing-heading-row{display:flex;align-items:end;justify-content:space-between;gap:24px;margin-bottom:30px}
.pricing-public-body .public-pricing-grid{grid-template-columns:repeat(5,minmax(0,1fr));gap:14px}.pricing-public-body .pricing-card{min-height:520px;border-color:#29313d;background:#0a0f16;color:#f7f9fc;box-shadow:none}.pricing-public-body .pricing-card.featured{border-color:#2f6feb;background:linear-gradient(180deg,#102c62 0%,#0a1930 100%);box-shadow:0 0 0 1px rgba(47,111,237,.18)}.pricing-public-body .pricing-card h2{color:#fff}.pricing-public-body .pricing-card>div:first-child>p,.pricing-public-body .plan-price span,.pricing-public-body .plan-limit small,.pricing-public-body .plan-note,.pricing-public-body .plan-setup-note{color:#aab6c8}.pricing-public-body .plan-features{color:#dbe3ef}.pricing-public-body .plan-features li:before{box-shadow:inset 0 0 0 2px #0a0f16}.pricing-public-body .pricing-card.featured .plan-features li:before{box-shadow:inset 0 0 0 2px #0c2040}
.pricing-feature-band{border-top:1px solid #1f2937;padding:68px 0}.pricing-feature-cards{display:grid;grid-template-columns:repeat(4,1fr);gap:14px}.pricing-feature-cards article{border:1px solid #29313d;border-radius:14px;padding:20px;background:#0a0f16}.pricing-feature-cards strong{font-size:16px}.pricing-feature-cards p{margin:7px 0 0;color:#9eacc0;font-size:12px;line-height:1.6}.pricing-footer{max-width:1180px;margin:auto;border-top:1px solid #1f2937;padding:28px 0 42px;display:flex;justify-content:space-between;gap:20px;color:#9eacc0;font-size:11px}.pricing-footer strong{color:#fff}

/* ---------- Responsive ---------- */
@media(max-width:1500px){
  .admin-plan-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
  .admin-plan-grid .full-span{grid-column:1/-1}
  .pricing-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
}
@media(max-width:1100px){
  .admin-plan-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .admin-check-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .pricing-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .pricing-public-main,.pricing-footer{padding-left:22px;padding-right:22px}
  .pricing-public-body .public-pricing-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .pricing-feature-cards{grid-template-columns:repeat(2,1fr)}
}
@media(max-width:900px){
  .admin-settings-grid{grid-template-columns:1fr}.admin-settings-grid>div+div{border-left:0;border-top:1px solid var(--border)}
  .checkout-card{grid-template-columns:1fr}.checkout-summary{border-right:0;border-bottom:1px solid var(--border)}
  .recommendation-grid{grid-template-columns:1fr}
  .subscription-summary{align-items:flex-start;flex-direction:column}.subscription-status{min-width:0;align-items:flex-start;text-align:left}
  .report-preview{width:min(640px,80vw)}
}
@media(max-width:700px){
  .form-grid,.assessment-form .form-grid,.admin-plan-grid{grid-template-columns:1fr}
  .admin-plan-grid .full-span,.full-span{grid-column:1}
  .admin-plan-stack{padding:0 14px 14px}.admin-plan-form{padding:16px}
  .admin-check-grid{grid-template-columns:1fr}
  .pricing-grid{grid-template-columns:1fr}.pricing-card{min-height:0}
  .pricing-topbar{padding:0 16px}.pricing-topbar nav>a:not(.button){display:none}.pricing-intro{padding:52px 20px}.pricing-public-main{padding:0}.pricing-program,.pricing-feature-band{padding:52px 20px}.pricing-heading-row{align-items:flex-start;flex-direction:column}.pricing-public-body .public-pricing-grid,.pricing-feature-cards{grid-template-columns:1fr}.pricing-footer{padding:24px 20px 36px;flex-direction:column;gap:8px}
  .assessment-form{padding:16px}.locked-feature{padding:24px 18px}.checkout-summary,.checkout-provider{padding:20px}
}

/* Certificate Scanner v14 modern product layer */
:root{
  --v14-navy:#08111f;
  --v14-navy-2:#0c182b;
  --v14-navy-3:#12223b;
  --v14-blue:#2f6df6;
  --v14-blue-2:#5b8cff;
  --v14-cyan:#5fd2ff;
  --v14-amber:#f1ae3d;
  --v14-green:#19a974;
  --v14-red:#e25864;
  --v14-panel:#ffffff;
  --v14-soft:#f6f8fc;
  --v14-line:#e6eaf1;
  --v14-text:#162033;
  --v14-muted:#6e7a90;
  --v14-shadow:0 18px 45px rgba(20,32,55,.08);
  --v14-shadow-sm:0 8px 24px rgba(20,32,55,.07);
}
body.light{background:#f4f7fb;color:var(--v14-text)}
body.light .main-shell{background:linear-gradient(180deg,#f7f9fd 0,#f3f6fb 100%)}
body.light .container{max-width:1480px;padding:30px 34px 52px}
body.light .surface{border:1px solid var(--v14-line);border-radius:18px;background:#fff;box-shadow:var(--v14-shadow-sm)}

/* Admin shell */
.admin-body .sidebar{width:248px;background:linear-gradient(180deg,#07111f 0%,#0a1525 100%);border-right:1px solid rgba(255,255,255,.06)}
.admin-body .sidebar-brand{height:78px;padding:0 20px;border-bottom:1px solid rgba(255,255,255,.07)}
.admin-body .brand-lockup{gap:11px}
.admin-body .brand-accent{width:11px;height:11px;border-radius:4px;background:linear-gradient(135deg,var(--v14-cyan),var(--v14-blue));box-shadow:0 0 0 5px rgba(47,109,246,.13)}
.admin-body .brand-copy strong{font-size:14px;letter-spacing:-.015em;color:#fff}
.admin-body .sidebar-nav{padding:16px 13px}
.admin-body .sidebar-nav a{min-height:43px;margin:3px 0;padding:0 12px;border:1px solid transparent;border-radius:11px;color:#91a0b8;font-size:12px;font-weight:700;transition:.18s ease}
.admin-body .sidebar-nav a:hover{background:rgba(255,255,255,.045);color:#fff;transform:translateX(2px)}
.admin-body .sidebar-nav a.active{background:linear-gradient(90deg,rgba(47,109,246,.24),rgba(47,109,246,.1));border-color:rgba(91,140,255,.18);color:#fff;box-shadow:inset 3px 0 0 #5b8cff}
.admin-body .nav-divider{height:1px;margin:14px 8px;background:rgba(255,255,255,.08)}
.admin-body .topbar{height:78px;padding:0 34px;border-bottom:1px solid #e8edf5;background:rgba(255,255,255,.9);backdrop-filter:blur(16px);box-shadow:0 1px 0 rgba(13,31,60,.02)}
.admin-body .topbar-title{font-size:14px;color:#26344a}
.admin-body .topbar-user strong{font-size:12px;color:#26344a}
.admin-body .logout-button,.admin-body .icon-button{border:1px solid #dfe5ee;background:#fff;color:#41506a;border-radius:10px;box-shadow:0 2px 6px rgba(15,30,55,.04)}
.admin-body .logout-button:hover,.admin-body .icon-button:hover{border-color:#c8d3e3;background:#f8faff}

/* Shared page title */
.page-head{margin:0 0 22px;align-items:flex-end}
.page-head h1{margin:0;font-size:31px;line-height:1.08;letter-spacing:-.045em;color:#172033}
.page-head p{max-width:800px;margin:8px 0 0;color:#758198;font-size:13px;line-height:1.62}
.eyebrow,.section-kicker{display:inline-flex;align-items:center;gap:7px;color:#5370a6;font-size:9px;font-weight:850;letter-spacing:.14em;text-transform:uppercase}
.eyebrow:before,.section-kicker:before{content:"";width:6px;height:6px;border-radius:2px;background:var(--v14-amber)}
.button{min-height:40px;border-radius:10px;font-size:12px;font-weight:800;letter-spacing:-.01em}
.button-primary{border-color:var(--v14-blue);background:linear-gradient(180deg,#3f7bff,#2f6df6);box-shadow:0 8px 18px rgba(47,109,246,.18)}
.button-primary:hover{filter:brightness(.98);transform:translateY(-1px)}
.button-secondary{border-color:#dfe5ee;background:#fff;color:#31405a}
.button-danger{border-color:#ffd5d9;background:#fff5f6;color:#bf3340}

/* Dashboard */
.admin-welcome{display:flex;align-items:center;justify-content:space-between;gap:24px;margin-bottom:22px;padding:26px 28px;border:1px solid #dfe6f0;border-radius:20px;background:radial-gradient(circle at 90% 0,rgba(79,128,255,.16),transparent 32%),linear-gradient(135deg,#fff,#f9fbff);box-shadow:var(--v14-shadow-sm)}
.admin-welcome h1{margin:6px 0 8px;font-size:34px;letter-spacing:-.045em}
.admin-welcome p{margin:0;color:#718098;font-size:13px;line-height:1.65}
.admin-welcome-actions{display:flex;gap:9px;flex-wrap:wrap}
.admin-kpi-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:15px;margin:0 0 18px}
.admin-kpi-grid article{position:relative;overflow:hidden;min-height:142px;padding:22px;border:1px solid var(--v14-line);border-radius:18px;background:#fff;box-shadow:var(--v14-shadow-sm)}
.admin-kpi-grid article:after{content:"";position:absolute;width:90px;height:90px;right:-28px;top:-28px;border-radius:50%;background:rgba(47,109,246,.06)}
.admin-kpi-grid article span{display:block;color:#78859a;font-size:10px;font-weight:850;letter-spacing:.07em;text-transform:uppercase}
.admin-kpi-grid article strong{display:block;margin:14px 0 10px;font-size:31px;line-height:1;letter-spacing:-.045em;color:#172033}
.admin-kpi-grid article small{color:#8190a6;font-size:11px;line-height:1.45}
.admin-kpi-grid article:nth-child(2):before,.admin-kpi-grid article:nth-child(3):before,.admin-kpi-grid article:nth-child(4):before,.admin-kpi-grid article:first-child:before{content:"";position:absolute;left:0;top:0;bottom:0;width:3px;background:var(--v14-blue)}
.admin-kpi-grid article:nth-child(2):before{background:var(--v14-green)}
.admin-kpi-grid article:nth-child(3):before{background:var(--v14-amber)}
.admin-kpi-grid article:nth-child(4):before{background:#7a64e8}
.health-strip.dashboard-health{gap:15px;margin:0 0 18px}
.dashboard-health .health-card{min-height:122px;border-radius:17px;box-shadow:var(--v14-shadow-sm)}
.admin-overview-grid{gap:18px}
.admin-overview-grid .surface{overflow:hidden}
.surface-head{padding:20px 22px;border-bottom:1px solid #edf0f5}
.surface-head h2{font-size:16px;letter-spacing:-.025em}
.surface-head p{margin-top:5px;color:#7b8799;font-size:11.5px;line-height:1.55}
.compact-row{padding:14px 20px}
.text-link{color:var(--v14-blue);font-weight:750}

/* Modern tables */
.datatable-toolbar{padding:16px 18px;border-bottom:1px solid #edf0f5;background:#fbfcfe}
.dt-search input,.dt-size-label select{border-color:#dce3ed;border-radius:10px;background:#fff}
.domain-table th{padding:12px 16px;background:#fafbfd;color:#7a879b;font-size:9.5px;font-weight:850;letter-spacing:.07em;text-transform:uppercase}
.domain-table td{padding:14px 16px;border-color:#edf0f5;color:#27344a;font-size:11.5px}
.domain-table tbody tr:hover{background:#fafcff}
.admin-pill{border-radius:999px;padding:5px 9px;font-size:9.5px;font-weight:850;letter-spacing:.02em}
.row-action a{display:inline-flex;align-items:center;justify-content:center;min-height:32px;padding:0 11px;border:1px solid #dce3ee;border-radius:9px;background:#fff;color:#2f5fcb;font-size:10.5px;font-weight:800;text-decoration:none}
.datatable-footer{padding:14px 18px;background:#fbfcfe;border-top:1px solid #edf0f5}

/* Plans admin cards */
.admin-plan-header{display:flex;align-items:flex-end;justify-content:space-between;gap:20px;margin-bottom:22px}
.admin-plan-header h1{margin:5px 0 6px;font-size:32px;letter-spacing:-.045em}
.admin-plan-header p{margin:0;max-width:760px;color:#78859a;font-size:13px;line-height:1.6}
.admin-plan-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin:0 0 18px}
.admin-plan-summary article{padding:18px 20px;border:1px solid var(--v14-line);border-radius:16px;background:#fff;box-shadow:var(--v14-shadow-sm)}
.admin-plan-summary span{display:block;color:#7b8799;font-size:9.5px;font-weight:850;letter-spacing:.08em;text-transform:uppercase}
.admin-plan-summary strong{display:block;margin-top:8px;font-size:17px;color:#1b2740}
.admin-plan-summary small{display:block;margin-top:5px;color:#8793a6;font-size:10.5px;line-height:1.45}
.admin-plan-cards{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:14px;align-items:stretch}
.admin-plan-card{position:relative;display:flex;min-width:0;min-height:390px;flex-direction:column;padding:20px;border:1px solid #dfe5ee;border-radius:18px;background:#fff;box-shadow:var(--v14-shadow-sm);transition:.2s ease}
.admin-plan-card:hover{transform:translateY(-3px);box-shadow:0 22px 46px rgba(20,32,55,.12)}
.admin-plan-card.featured{border-color:#a9c1ff;background:linear-gradient(180deg,#f9fbff 0,#f2f6ff 100%);box-shadow:0 18px 45px rgba(47,109,246,.12)}
.admin-plan-card-top{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}
.admin-plan-card h2{margin:0;font-size:17px;letter-spacing:-.025em}
.admin-plan-card .slug{display:block;margin-top:4px;color:#8995a6;font-size:10px}
.admin-plan-limit{margin:22px 0 4px;font-size:31px;font-weight:850;letter-spacing:-.045em;color:#15213a}
.admin-plan-limit small{font-size:10px;font-weight:700;color:#8390a4;letter-spacing:0}
.admin-plan-price{margin-top:13px;color:#1d2a43;font-size:16px;font-weight:800}
.admin-plan-price small{font-size:10px;color:#8390a4;font-weight:650}
.admin-plan-card p{min-height:52px;margin:13px 0 16px;color:#748097;font-size:11px;line-height:1.55}
.admin-feature-list{display:grid;gap:8px;margin:0 0 20px;padding:0;list-style:none}
.admin-feature-list li{position:relative;padding-left:18px;color:#48566d;font-size:10.5px;line-height:1.42}
.admin-feature-list li:before{content:"";position:absolute;left:0;top:.38em;width:8px;height:8px;border:2px solid var(--v14-blue);border-radius:50%}
.admin-plan-card-actions{display:flex;gap:8px;margin-top:auto}.admin-plan-card-actions .button{width:100%}
.plan-state-badge{display:inline-flex;align-items:center;gap:5px;padding:5px 8px;border-radius:999px;background:#eaf8f2;color:#16845e;font-size:9px;font-weight:850}.plan-state-badge:before{content:"";width:6px;height:6px;border-radius:50%;background:#20aa78}
.plan-state-badge.off{background:#f2f4f7;color:#758096}.plan-state-badge.off:before{background:#9aa5b4}
.plan-dialog{width:min(960px,calc(100vw - 34px));max-height:90vh;padding:0;border:0;border-radius:20px;background:#fff;box-shadow:0 30px 90px rgba(6,15,31,.28);overflow:hidden}
.plan-dialog::backdrop{background:rgba(4,12,25,.55);backdrop-filter:blur(4px)}
.plan-dialog-head{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;padding:22px 24px;border-bottom:1px solid #e9edf4;background:#fbfcfe}
.plan-dialog-head h2{margin:3px 0 0;font-size:22px;letter-spacing:-.035em}.plan-dialog-head p{margin:6px 0 0;color:#7b8799;font-size:11.5px}
.dialog-close{width:36px;height:36px;border:1px solid #dce3ed;border-radius:10px;background:#fff;color:#5f6c80;font-size:22px;cursor:pointer}
.plan-dialog-body{max-height:calc(90vh - 84px);overflow:auto;padding:22px 24px 24px}
.plan-edit-section{margin-bottom:20px}.plan-edit-section h3{margin:0 0 11px;font-size:12px;color:#26344b}.plan-edit-section p{margin:-5px 0 12px;color:#8591a3;font-size:10.5px}
.plan-dialog .form-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
.plan-dialog .form-grid .wide{grid-column:span 2}
.plan-dialog .admin-check-grid{grid-template-columns:repeat(3,minmax(0,1fr));margin-top:0}
.plan-dialog-actions{position:sticky;bottom:-24px;display:flex;justify-content:flex-end;gap:9px;margin:22px -24px -24px;padding:16px 24px;border-top:1px solid #e9edf4;background:rgba(255,255,255,.96);backdrop-filter:blur(10px)}

/* Integrations */
.integration-hero{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(320px,.8fr);gap:18px;margin-bottom:18px}
.integration-hero .surface{margin:0;padding:24px}
.integration-hero h2{margin:4px 0 8px;font-size:23px;letter-spacing:-.035em}.integration-hero p{margin:0;color:#778399;font-size:12px;line-height:1.65}
.integration-status-list{display:grid;gap:9px;margin-top:16px}.integration-status-row{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 12px;border:1px solid #e6ebf2;border-radius:11px;background:#fafbfd}.integration-status-row strong{font-size:11px}.integration-status-row span{font-size:9.5px;font-weight:850}
.integrations-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}
.integration-card{overflow:hidden;margin:0}.integration-card-head{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:20px 22px;border-bottom:1px solid #edf0f5;background:#fbfcfe}.integration-card-head h2{margin:0;font-size:16px;letter-spacing:-.02em}.integration-card-head p{margin:5px 0 0;color:#7c889a;font-size:10.5px;line-height:1.5}.provider-mark{display:grid;place-items:center;width:42px;height:42px;border-radius:13px;background:#edf3ff;color:#2f6df6;font-size:13px;font-weight:900;letter-spacing:-.04em}.provider-mark.square{background:#eef0f3;color:#202936}.provider-mark.ai{background:#edf9f6;color:#10835c}.provider-mark.mail{background:#fff6e8;color:#a96a05}
.integration-card-body{padding:20px 22px}.integration-card .form-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.integration-card .form-grid .full-span{grid-column:1/-1}
.secret-wrap{position:relative}.secret-wrap input{padding-right:74px!important}.secret-toggle{position:absolute;right:7px;top:7px;height:28px;padding:0 9px;border:0;border-radius:7px;background:#edf2fa;color:#5a6a83;font-size:9.5px;font-weight:800;cursor:pointer}
.integration-actions{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:16px;padding-top:15px;border-top:1px solid #edf0f5}.integration-actions small{max-width:300px;color:#8792a4;font-size:10px;line-height:1.45}
.integration-test{min-width:110px}
.settings-sticky{position:sticky;bottom:14px;z-index:10;display:flex;align-items:center;justify-content:space-between;gap:16px;margin-top:18px;padding:14px 16px;border:1px solid #dbe3ee;border-radius:15px;background:rgba(255,255,255,.94);backdrop-filter:blur(14px);box-shadow:0 14px 40px rgba(20,32,55,.13)}
.settings-sticky p{margin:0;color:#748198;font-size:10.5px}.settings-sticky .button{min-width:150px}

/* Billing */
.billing-provider-bar{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin-bottom:18px}
.billing-provider-card{padding:18px 20px;border:1px solid var(--v14-line);border-radius:16px;background:#fff;box-shadow:var(--v14-shadow-sm)}
.billing-provider-card span{display:block;color:#7b8799;font-size:9.5px;font-weight:850;letter-spacing:.07em;text-transform:uppercase}.billing-provider-card strong{display:block;margin-top:8px;font-size:17px}.billing-provider-card small{display:block;margin-top:5px;color:#8792a4;font-size:10.5px;line-height:1.45}
.billing-provider-card.active{border-color:#b7caff;background:linear-gradient(180deg,#fbfdff,#f4f7ff)}

/* User pricing cards inspired by the supplied reference */
.user-pricing-stage{margin-top:4px;padding:28px;border-radius:22px;background:radial-gradient(circle at 50% -30%,#18345e 0,#0b1424 30%,#070d17 74%);box-shadow:0 20px 55px rgba(7,18,36,.2)}
.user-pricing-stage .pricing-stage-head{display:flex;align-items:flex-end;justify-content:space-between;gap:22px;margin-bottom:22px}.user-pricing-stage .pricing-stage-head h2{margin:4px 0 7px;color:#fff;font-size:28px;letter-spacing:-.04em}.user-pricing-stage .pricing-stage-head p{margin:0;max-width:720px;color:#9eacc0;font-size:12px;line-height:1.6}
.user-pricing-stage .billing-toggle{border-color:#283750;background:#0c1728}.user-pricing-stage .billing-toggle a{color:#96a6bd}.user-pricing-stage .billing-toggle a.active{background:#2f6df6;color:#fff}
.user-plan-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:12px;align-items:stretch}
.user-plan-card{position:relative;display:flex;min-width:0;min-height:510px;flex-direction:column;padding:19px;border:1px solid #263246;border-radius:17px;background:linear-gradient(180deg,#0c121b,#0a1018);color:#f7f9fc;box-shadow:inset 0 1px 0 rgba(255,255,255,.025)}
.user-plan-card.featured{border-color:#3979ff;background:linear-gradient(180deg,#122b58 0,#0c1d3a 100%);box-shadow:0 0 0 1px rgba(57,121,255,.16),0 18px 36px rgba(0,0,0,.12)}
.user-plan-card.current{outline:2px solid #5b8cff;outline-offset:2px}
.user-plan-card h3{margin:0;color:#fff;font-size:16px;letter-spacing:-.02em}.user-plan-card .card-kicker{margin-top:4px;color:#7f90aa;font-size:9.5px;text-transform:uppercase;letter-spacing:.08em;font-weight:800}
.user-plan-limit{margin-top:17px;color:#fff;font-size:31px;font-weight:850;line-height:1.05;letter-spacing:-.04em}.user-plan-limit small{font-size:10px;font-weight:650;color:#9ca9bc;letter-spacing:0}.user-plan-desc{min-height:58px;margin:13px 0 0;color:#aab6c8;font-size:10.7px;line-height:1.55}.user-plan-price{margin:20px 0 17px}.user-plan-price strong{font-size:27px;letter-spacing:-.04em}.user-plan-price span{margin-left:4px;color:#9eacc0;font-size:10px}.user-plan-features{display:grid;gap:10px;margin:0 0 20px;padding:0;list-style:none}.user-plan-features li{position:relative;padding-left:19px;color:#d9e1ed;font-size:10.7px;line-height:1.42}.user-plan-features li:before{content:"";position:absolute;left:0;top:.36em;width:8px;height:8px;border:2px solid #4d86ff;border-radius:50%;box-shadow:inset 0 0 0 2px #0b111a}.user-plan-card.featured .user-plan-features li:before{box-shadow:inset 0 0 0 2px #0e2346}.user-plan-actions{display:grid;gap:8px;margin-top:auto}.user-plan-actions .button{width:100%}.user-plan-actions .button-secondary{border-color:#334258;background:#111c2b;color:#e9eef7}.user-plan-card .popular-badge{position:absolute;right:15px;top:13px;padding:5px 8px;border-radius:999px;background:#2b2b24;color:#efb34d;font-size:8px;font-weight:900;letter-spacing:.08em;text-transform:uppercase}.current-plan-badge{display:inline-flex;align-items:center;gap:5px;margin-top:9px;color:#8fb0ff;font-size:9px;font-weight:850}.current-plan-badge:before{content:"";width:6px;height:6px;border-radius:50%;background:#5b8cff}
.pricing-benefit-band{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-top:14px}.pricing-benefit-band article{padding:15px 16px;border:1px solid #263246;border-radius:13px;background:#0b1422}.pricing-benefit-band strong{display:block;color:#fff;font-size:11px}.pricing-benefit-band p{margin:6px 0 0;color:#8fa0b8;font-size:9.8px;line-height:1.5}

/* Public pricing refinement */
.pricing-public-body{background:#05090f}.pricing-public-main{max-width:1200px}.pricing-intro{padding-top:68px}.pricing-public-body .public-pricing-grid{gap:12px}.pricing-public-body .pricing-card{border-radius:17px}.pricing-public-body .pricing-topbar{height:64px}.pricing-public-body .popular-badge{background:#302a1d;color:#efb34d}.pricing-public-body .pricing-feature-cards article{border-radius:16px}

/* Swal style alerts */
.v14-swal-backdrop{position:fixed;inset:0;z-index:10000;display:grid;place-items:center;padding:20px;background:rgba(6,14,27,.56);backdrop-filter:blur(5px);animation:v14fade .16s ease}
.v14-swal{width:min(430px,100%);padding:26px;border:1px solid rgba(255,255,255,.8);border-radius:20px;background:#fff;box-shadow:0 30px 90px rgba(0,0,0,.25);text-align:center;animation:v14pop .18s ease}
.v14-swal-icon{display:grid;place-items:center;width:48px;height:48px;margin:0 auto 14px;border-radius:15px;background:#edf3ff;color:#2f6df6;font-size:25px;font-weight:900}.v14-swal-icon.success{background:#eaf8f2;color:#159068}.v14-swal-icon.error{background:#fff0f1;color:#c63e4b}.v14-swal-icon.warning{background:#fff6e9;color:#b27611}
.v14-swal h3{margin:0 0 8px;color:#172033;font-size:20px;letter-spacing:-.03em}.v14-swal p{margin:0;color:#738097;font-size:12px;line-height:1.6}.v14-swal-actions{display:flex;justify-content:center;gap:9px;margin-top:20px}.v14-swal-actions button{min-width:110px;min-height:39px;padding:0 15px;border-radius:10px;font-size:11px;font-weight:850;cursor:pointer}.v14-swal-confirm{border:1px solid #2f6df6;background:#2f6df6;color:#fff}.v14-swal-cancel{border:1px solid #dfe5ee;background:#fff;color:#46546b}
@keyframes v14fade{from{opacity:0}to{opacity:1}}@keyframes v14pop{from{opacity:0;transform:translateY(10px) scale(.98)}to{opacity:1;transform:none}}

/* Dark mode support for modern admin and forms */
body:not(.light) .admin-body,body:not(.light){--v14-panel:#111926;--v14-soft:#0c1420;--v14-line:#243043;--v14-text:#edf3fc;--v14-muted:#93a1b7}
body:not(.light) .admin-body .topbar{background:rgba(12,20,32,.92);border-color:#233044}body:not(.light) .admin-body .topbar-title,body:not(.light) .admin-body .topbar-user strong{color:#e8eef8}
body:not(.light) .admin-body .logout-button,body:not(.light) .admin-body .icon-button{background:#111b2a;border-color:#2a384d;color:#dce6f4}
body:not(.light) .admin-body .container{background:transparent}
body:not(.light) .surface,body:not(.light) .admin-kpi-grid article,body:not(.light) .admin-plan-summary article,body:not(.light) .admin-plan-card,body:not(.light) .billing-provider-card{background:#111a27;border-color:#253247;color:#edf3fb;box-shadow:none}
body:not(.light) .page-head h1,body:not(.light) .admin-kpi-grid article strong,body:not(.light) .admin-plan-card h2,body:not(.light) .admin-plan-limit,body:not(.light) .admin-plan-price,body:not(.light) .billing-provider-card strong{color:#f3f7fc}
body:not(.light) .admin-plan-card.featured,body:not(.light) .billing-provider-card.active{background:#111f39;border-color:#355eaf}
body:not(.light) .domain-table th,body:not(.light) .datatable-toolbar,body:not(.light) .datatable-footer,body:not(.light) .surface-head,body:not(.light) .integration-card-head{background:#0d1623;border-color:#243043}
body:not(.light) .domain-table td{border-color:#223044;color:#dae3ef}body:not(.light) .domain-table tbody tr:hover{background:#101c2b}
body:not(.light) .row-action a,body:not(.light) .button-secondary{background:#111c2a;border-color:#2c3a4e;color:#d9e5f5}
body:not(.light) .integration-status-row,body:not(.light) .provider-readiness{background:#0e1724;border-color:#263349}
body:not(.light) .plan-dialog{background:#101925;color:#e8eef8}body:not(.light) .plan-dialog-head,body:not(.light) .plan-dialog-actions{background:#0d1623;border-color:#243043}.plan-dialog::backdrop{background:rgba(2,7,15,.72)}
body:not(.light) .v14-swal{background:#101925;border-color:#26354b}body:not(.light) .v14-swal h3{color:#f3f7fc}body:not(.light) .v14-swal p{color:#98a7bd}body:not(.light) .v14-swal-cancel{background:#142033;border-color:#2a3a50;color:#e0e9f5}

/* Responsive */
@media(max-width:1380px){.admin-plan-cards,.user-plan-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.admin-kpi-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:1050px){.integrations-grid{grid-template-columns:1fr}.integration-hero{grid-template-columns:1fr}.billing-provider-bar{grid-template-columns:1fr}.plan-dialog .form-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.plan-dialog .form-grid .wide{grid-column:1/-1}.user-plan-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.pricing-benefit-band{grid-template-columns:1fr}.admin-plan-summary{grid-template-columns:1fr}}
@media(max-width:760px){body.light .container{padding:22px 16px 38px}.admin-body .topbar{padding:0 16px}.admin-welcome{align-items:flex-start;flex-direction:column;padding:22px}.admin-welcome h1{font-size:28px}.admin-kpi-grid{grid-template-columns:1fr}.admin-plan-header{align-items:flex-start;flex-direction:column}.admin-plan-cards,.user-plan-grid{grid-template-columns:1fr}.admin-plan-card,.user-plan-card{min-height:0}.plan-dialog-body{padding:18px}.plan-dialog .form-grid,.plan-dialog .admin-check-grid,.integration-card .form-grid{grid-template-columns:1fr}.plan-dialog .form-grid .wide,.integration-card .form-grid .full-span{grid-column:1}.settings-sticky{align-items:flex-start;flex-direction:column}.settings-sticky .button{width:100%}.user-pricing-stage{padding:20px}.user-pricing-stage .pricing-stage-head{align-items:flex-start;flex-direction:column}.integration-card-body{padding:17px}.integration-card-head{padding:17px}.admin-sidebar{width:min(286px,88vw)}}
.v14-swal-input{display:block;width:100%;height:42px;margin:17px 0 0;padding:0 12px;border:1px solid #dce3ed;border-radius:10px;outline:0;background:#fff;color:#1f2b40;font-size:12px;text-align:left}.v14-swal-input:focus{border-color:#2f6df6;box-shadow:0 0 0 3px rgba(47,109,246,.12)}body:not(.light) .v14-swal-input{background:#0d1724;border-color:#2a3a50;color:#edf3fb}

/* ========================================================================
   v14.1 polish layer
   Keeps the original scanner layout semantics while giving every screen the
   same product quality as the modern plans and integrations experience.
   ======================================================================== */

/* Layout alignment */
.admin-body .main-shell{margin-left:248px}
body.light:not(.pricing-public-body){background:#f5f7fb}
.main-shell{min-height:100vh}
.topbar-leading{display:flex;align-items:center;gap:12px;min-width:0}
.topbar-title{font-weight:800;letter-spacing:-.015em}
.topbar-user{display:inline-flex;align-items:center;gap:8px;padding:7px 10px;border:1px solid var(--border);border-radius:10px;background:var(--surface);color:var(--muted)}
.topbar-user:before{content:"";width:7px;height:7px;border-radius:50%;background:#22b779;box-shadow:0 0 0 3px rgba(34,183,121,.12)}

/* User shell receives the same refinement as admin without changing structure */
body.light:not(.admin-body):not(.pricing-public-body):not(.auth-page) .sidebar{background:linear-gradient(180deg,#07111f,#0b1626);border-right-color:rgba(255,255,255,.06)}
body.light:not(.admin-body):not(.pricing-public-body):not(.auth-page) .sidebar-brand{height:78px;border-bottom-color:rgba(255,255,255,.07)}
body.light:not(.admin-body):not(.pricing-public-body):not(.auth-page) .brand-accent{width:11px;height:11px;border-radius:4px;background:linear-gradient(135deg,var(--v14-cyan),var(--v14-blue));box-shadow:0 0 0 5px rgba(47,109,246,.13)}
body.light:not(.admin-body):not(.pricing-public-body):not(.auth-page) .sidebar-nav{padding:16px 13px}
body.light:not(.admin-body):not(.pricing-public-body):not(.auth-page) .sidebar-nav a{min-height:43px;margin:3px 0;padding:0 12px;border:1px solid transparent;border-radius:11px;color:#91a0b8;font-size:12px;font-weight:700;transition:.18s ease}
body.light:not(.admin-body):not(.pricing-public-body):not(.auth-page) .sidebar-nav a:hover{background:rgba(255,255,255,.045);color:#fff;transform:translateX(2px)}
body.light:not(.admin-body):not(.pricing-public-body):not(.auth-page) .sidebar-nav a.active{background:linear-gradient(90deg,rgba(47,109,246,.24),rgba(47,109,246,.10));border-color:rgba(91,140,255,.18);color:#fff;box-shadow:inset 3px 0 0 #5b8cff}
body.light:not(.admin-body):not(.pricing-public-body):not(.auth-page) .topbar{height:78px;padding:0 34px;background:rgba(255,255,255,.9);border-bottom-color:#e8edf5;backdrop-filter:blur(16px)}

/* Common content surfaces */
.surface{overflow:hidden}
.surface+.surface{margin-top:18px}
.surface-head.simple{padding-top:18px;padding-bottom:18px}
.surface-head h2{margin:0}
.surface-head>div{min-width:0}
.overview-grid{gap:18px}
.health-strip{gap:15px;margin:0 0 18px}
.health-card{position:relative;overflow:hidden;min-height:122px;padding:20px;border:1px solid var(--v14-line);border-radius:17px;background:#fff;box-shadow:var(--v14-shadow-sm)}
.health-card:after{content:"";position:absolute;right:-28px;top:-28px;width:92px;height:92px;border-radius:50%;background:rgba(47,109,246,.055)}
.health-card span{font-size:10px;font-weight:850;letter-spacing:.065em;text-transform:uppercase}
.health-card strong{font-size:30px;letter-spacing:-.045em}
.health-card small{font-size:10.5px;line-height:1.45}
.health-card.critical{border-top:3px solid #e25864}.health-card.warning{border-top:3px solid #e5a33d}.health-card.healthy{border-top:3px solid #21a879}
.collection-usage{display:grid;grid-template-columns:auto minmax(180px,1fr) auto;align-items:center;gap:18px;margin-bottom:18px;padding:18px 20px}
.collection-usage strong{display:block;color:#162033;font-size:20px;letter-spacing:-.035em}.collection-usage span,.collection-usage small{color:#7b8799;font-size:10.5px}.quota-track{height:8px;border-radius:99px;background:#edf1f6;overflow:hidden}.quota-track i{display:block;height:100%;border-radius:inherit;background:linear-gradient(90deg,#2f6df6,#69a0ff)}
.compact-list{display:grid}.compact-row{display:flex;align-items:center;justify-content:space-between;gap:16px;border-bottom:1px solid #edf0f5}.compact-row:last-child{border-bottom:0}.compact-row strong{font-size:11.5px}.compact-row small{display:block;margin-top:3px;color:#8a96a8;font-size:9.5px}.compact-date{color:#7c899d;font-size:10px;font-weight:750}
.group-grid{gap:12px;padding:18px}.group-card{border:1px solid #e4e9f1;border-radius:14px;background:#fff;box-shadow:0 5px 16px rgba(25,39,65,.04);transition:.18s ease}.group-card:hover{transform:translateY(-2px);border-color:#cfdaea;box-shadow:var(--v14-shadow-sm)}
.group-icon{display:grid;place-items:center;width:34px;height:34px;border-radius:10px;background:#eef3ff;color:#2f6df6;font-weight:900}

/* Admin user detail */
.admin-profile{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:18px;padding:22px 24px}
.admin-profile-main{display:flex;align-items:center;gap:15px;min-width:0}.admin-avatar{display:grid;place-items:center;width:50px;height:50px;flex:0 0 50px;border-radius:15px;background:linear-gradient(135deg,#2f6df6,#6798ff);box-shadow:0 10px 22px rgba(47,109,246,.18);color:#fff;font-size:18px;font-weight:900}.admin-profile-main>div:last-child{display:grid;min-width:0}.admin-profile-main strong{font-size:16px}.admin-profile-main span{color:#627087;font-size:11px}.admin-profile-main small{margin-top:4px;color:#95a0b0;font-size:9.5px}.admin-status-line{display:flex;align-items:center;justify-content:flex-end;gap:7px;flex-wrap:wrap}
.admin-actions{margin-bottom:18px}.admin-action-buttons{display:flex;align-items:center;gap:9px;flex-wrap:wrap;padding:18px 20px}.admin-self-note{color:#7f8ca0;font-size:10.5px}
.admin-group-grid{padding:18px}
.text-danger{border:0;background:transparent;color:#c94d59;font-weight:800;cursor:pointer}

/* Strong form system that remains light in the default interface */
body.light .form-grid input:not([type="checkbox"]):not([type="radio"]),body.light .form-grid select,body.light .form-grid textarea{border-color:#dce3ed;background:#fff;color:#1b2940;box-shadow:0 1px 2px rgba(20,32,55,.025)}
body.light .form-grid input:not([type="checkbox"]):not([type="radio"]):hover,body.light .form-grid select:hover,body.light .form-grid textarea:hover{border-color:#cbd6e5}
.form-grid>label{font-size:10.5px;font-weight:800;color:#526178}.form-grid>label>small{font-size:9.5px;color:#929dad}.form-grid input:not([type="checkbox"]):not([type="radio"]),.form-grid select,.form-grid textarea{min-height:44px;border-radius:10px;font-size:12px}.form-grid textarea{min-height:118px}
.admin-check-grid{gap:9px;padding:11px;border-color:#e3e8f0;background:#fafbfd}.admin-check-grid label{min-height:38px;padding:6px 9px;border:1px solid #edf0f5;border-radius:9px;background:#fff;color:#425169;font-size:10.5px;font-weight:750}.admin-check-grid input[type="checkbox"]{width:16px;height:16px;flex-basis:16px}

/* Plans editor, stronger visual separation */
.plan-dialog .form-grid{gap:14px}.plan-edit-section{padding:16px;border:1px solid #e9edf4;border-radius:14px;background:#fbfcfe}.plan-edit-section+.plan-edit-section{margin-top:14px}.plan-edit-section:last-of-type{margin-bottom:0}.plan-edit-section h3{font-size:11px;font-weight:900;letter-spacing:.02em;text-transform:uppercase;color:#59687f}.plan-dialog .admin-check-grid{background:#fff}
.admin-plan-card.featured:before{content:"Recommended";position:absolute;left:20px;top:-9px;padding:4px 8px;border-radius:999px;background:#f2ae3e;color:#33240a;font-size:7.5px;font-weight:900;letter-spacing:.08em;text-transform:uppercase}

/* Integrations */
.integration-hero .surface:first-child{background:radial-gradient(circle at 100% 0,rgba(47,109,246,.13),transparent 40%),#fff}.integration-status-row .admin-pill.ok{background:#eaf8f2;color:#16845e}.integration-status-row .admin-pill.warn{background:#fff6e8;color:#a96a05}
.integration-card{transition:.2s ease}.integration-card:hover{transform:translateY(-2px);box-shadow:0 18px 42px rgba(20,32,55,.10)}
.integration-card-body .form-grid>label{font-size:10px}.integration-actions small{word-break:break-word}.settings-sticky{border-color:#cfd9e7}

/* Billing */
.billing-provider-bar{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin-bottom:18px}.billing-provider-card{padding:19px 20px;border:1px solid #e2e7ef;border-radius:16px;background:#fff;box-shadow:var(--v14-shadow-sm)}.billing-provider-card span{color:#7b8799;font-size:9.5px;font-weight:850;letter-spacing:.07em;text-transform:uppercase}.billing-provider-card strong{display:block;margin-top:8px;font-size:17px}.billing-provider-card small{display:block;margin-top:5px;color:#8792a4;font-size:10.5px;line-height:1.45}.billing-provider-card.active{border-color:#b7caff;background:linear-gradient(180deg,#fbfdff,#f4f7ff)}
.subscription-summary{border-bottom:1px solid #edf0f5}.subscription-summary h2{font-size:22px}.subscription-status{display:flex;align-items:center;gap:8px}

/* User plans and checkout */
.user-pricing-stage{border:1px solid #111e32}.user-plan-card{transition:.2s ease}.user-plan-card:hover{transform:translateY(-3px);border-color:#3a4a63}.user-plan-card.featured:hover{border-color:#5b8cff}.user-plan-card .button-primary{background:linear-gradient(180deg,#4b84ff,#2f6df6)}.user-plan-card.featured .button-primary{border-color:#f2ae3e;background:#f2ae3e;color:#2e210b;box-shadow:none}.plan-note,.plan-setup-note{display:block;color:#8898af;font-size:9.5px;line-height:1.45;text-align:center}
.checkout-card{max-width:850px;margin-inline:auto;padding:26px}.checkout-summary{padding:0 0 22px;border-bottom:1px solid #e8edf4}.checkout-summary h2{margin:5px 0 7px;font-size:28px;letter-spacing:-.04em}.checkout-summary strong{display:block;font-size:20px;color:#1d2a43}.checkout-summary p{max-width:680px;margin:10px 0 0;color:#748097;font-size:11.5px;line-height:1.65}.checkout-provider{padding-top:22px}.checkout-provider h3{margin:0 0 7px;font-size:16px}.checkout-provider p{margin:0 0 16px;color:#748097;font-size:11.5px}.square-card{min-height:92px;margin:14px 0 18px;padding:14px;border:1px solid #dfe5ee;border-radius:12px;background:#fafbfd}

/* Assessment, recommendations and reports */
.assessment-form{padding:22px}.assessment-form .form-grid{gap:16px}.locked-feature{padding:26px;text-align:center}.locked-feature h2{margin:0 0 7px;font-size:19px}.locked-feature p{max-width:620px;margin:0 auto;color:#7b8799;font-size:11.5px;line-height:1.65}
.recommendation-hero{padding:26px;background:radial-gradient(circle at 100% 0,rgba(47,109,246,.12),transparent 38%),#fff}.recommendation-hero h2{margin:6px 0 10px;font-size:24px;letter-spacing:-.035em}.recommendation-hero p{max-width:880px;margin:0;color:#65748b;line-height:1.65}.recommendation-hero small{display:block;margin-top:13px;color:#96a1b1;font-size:9.5px}.recommendation-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;margin:18px 0}.recommendation-grid .surface{margin:0;padding:22px}.recommendation-grid h2,.recommendation-list+* h2{margin-top:0}.recommendation-grid h3{margin:10px 0 6px;font-size:18px}.recommendation-grid p{color:#748097;font-size:11.5px;line-height:1.6}.recommendation-list{display:grid;gap:10px;padding:18px}.recommendation-list article{padding:14px 15px;border:1px solid #e7ebf2;border-radius:12px;background:#fbfcfe}.recommendation-list article strong{display:block;margin-top:7px}.recommendation-list article p{margin:5px 0 0;color:#748097;font-size:10.8px;line-height:1.55}

/* Auth */
.auth-page{background:radial-gradient(circle at 18% 5%,rgba(47,109,246,.11),transparent 28%),linear-gradient(180deg,#f7f9fd,#f3f6fb)}.auth-brand{height:78px;padding:0 34px;background:rgba(255,255,255,.92);backdrop-filter:blur(12px)}.auth-main{padding:46px 18px}.auth-card{width:min(470px,100%);padding:30px;border:1px solid #dfe6f0;border-radius:20px;background:rgba(255,255,255,.98);box-shadow:0 26px 70px rgba(22,41,75,.10)}.auth-card-head h1{font-size:28px}.auth-card-head p{font-size:11.5px}.auth-form{gap:15px;margin-top:23px}.auth-form label{gap:7px;font-size:10.5px;color:#526178}.auth-form input{height:45px;border-color:#dce3ed;border-radius:10px;background:#fff;color:#1c2940;font-size:12px}.auth-form input:focus{border-color:#2f6df6;box-shadow:0 0 0 3px rgba(47,109,246,.11)}.auth-submit{min-height:44px}.auth-switch{font-size:10.5px}.auth-links{font-size:10px}

/* Public pricing gets closer to the supplied visual reference */
.pricing-public-body{min-height:100vh;color:#edf3fb;font-family:var(--font-sans);background:#05090f}.pricing-topbar{height:66px;position:sticky;top:0;z-index:20;display:flex;align-items:center;justify-content:space-between;padding:0 max(24px,calc((100vw - 1180px)/2));border-bottom:1px solid #1b2431;background:rgba(5,9,15,.92);backdrop-filter:blur(14px)}.pricing-brand{display:flex;align-items:center;gap:10px;color:#fff;font-size:13px;font-weight:850}.pricing-brand .brand-accent{width:9px;height:9px;border-radius:3px}.pricing-topbar nav{display:flex;align-items:center;gap:20px}.pricing-topbar nav>a:not(.button){color:#9aa9bd;font-size:10px;font-weight:750}.pricing-topbar nav>a:not(.button):hover{color:#fff}.pricing-public-main{max-width:1180px;margin:auto}.pricing-intro{min-height:265px;padding:72px 0 55px;border-bottom:1px solid #1b2431}.pricing-intro h1{max-width:760px;margin:9px 0 12px;color:#f6f8fc;font-size:42px;line-height:1.03;letter-spacing:-.05em}.pricing-intro p{max-width:680px;margin:0;color:#9daabe;font-size:12.5px;line-height:1.7}.pricing-program{padding:62px 0 66px}.pricing-heading-row{display:flex;align-items:flex-end;justify-content:space-between;gap:26px;margin-bottom:25px}.pricing-heading-row h2{max-width:650px;margin:7px 0 8px;color:#fff;font-size:32px;line-height:1.05;letter-spacing:-.045em}.pricing-heading-row p{max-width:720px;margin:0;color:#97a6ba;font-size:11.5px;line-height:1.65}.pricing-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:12px}.pricing-card{position:relative;display:flex;min-width:0;min-height:500px;flex-direction:column;padding:20px;border:1px solid #263246;border-radius:17px;background:linear-gradient(180deg,#0b1119,#080e15);box-shadow:inset 0 1px 0 rgba(255,255,255,.025)}.pricing-card.featured{border-color:#3979ff;background:linear-gradient(180deg,#132d5c,#0b1d3b);box-shadow:0 18px 45px rgba(0,0,0,.18)}.pricing-card h2{margin:0;color:#fff;font-size:16px}.plan-limit{margin-top:11px;color:#fff;font-size:28px;font-weight:850;line-height:1.08;letter-spacing:-.04em}.plan-limit small{color:#9dacbf;font-size:9.5px;font-weight:650;letter-spacing:0}.pricing-card p{min-height:58px;margin:13px 0 0;color:#a7b3c4;font-size:10.3px;line-height:1.55}.plan-price{margin:18px 0}.plan-price strong{color:#fff;font-size:26px;letter-spacing:-.04em}.plan-price span{margin-left:4px;color:#94a3b7;font-size:9.5px}.plan-features{display:grid;gap:10px;margin:0 0 20px;padding:0;list-style:none}.plan-features li{position:relative;padding-left:18px;color:#d8e0eb;font-size:10.2px;line-height:1.4}.plan-features li:before{content:"";position:absolute;left:0;top:.34em;width:8px;height:8px;border:2px solid #4d86ff;border-radius:50%;box-shadow:inset 0 0 0 2px #091018}.pricing-card.featured .plan-features li:before{box-shadow:inset 0 0 0 2px #10264c}.plan-actions{margin-top:auto}.plan-actions .button{width:100%}.pricing-card.featured .plan-actions .button-primary{border-color:#f2ae3e;background:#f2ae3e;color:#302309;box-shadow:none}.pricing-card .popular-badge{position:absolute;right:14px;top:12px;padding:5px 8px;border-radius:999px;background:#302a1d;color:#efb34d;font-size:7.5px;font-weight:900;letter-spacing:.08em;text-transform:uppercase}.pricing-feature-band{padding:60px 0;border-top:1px solid #1b2431}.pricing-feature-band h2{margin:7px 0 9px;color:#fff;font-size:30px;letter-spacing:-.04em}.pricing-feature-band>div>p{max-width:730px;color:#95a4b8;font-size:11.5px;line-height:1.65}.pricing-feature-cards{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-top:23px}.pricing-feature-cards article{padding:18px;border:1px solid #223047;border-radius:15px;background:#0b1422}.pricing-feature-cards strong{display:block;color:#fff;font-size:11px}.pricing-feature-cards p{margin:7px 0 0;color:#94a3b8;font-size:9.8px;line-height:1.55}.pricing-footer{display:flex;align-items:center;justify-content:space-between;gap:24px;max-width:1180px;margin:auto;padding:26px 0 38px;border-top:1px solid #1b2431;color:#75859b;font-size:9.5px}.pricing-footer strong{color:#fff;font-size:12px}.pricing-public-body .eyebrow{color:#e6a73c}.pricing-public-body .eyebrow:before{background:#e6a73c}

/* Dark mode */
body:not(.light):not(.pricing-public-body) .health-card,body:not(.light):not(.pricing-public-body) .group-card,body:not(.light):not(.pricing-public-body) .auth-card{background:#111a27;border-color:#253247;box-shadow:none}body:not(.light) .collection-usage strong{color:#eef3fb}
body:not(.light) .admin-profile-main span,body:not(.light) .admin-profile-main small,body:not(.light) .checkout-summary p{color:#98a7bd}
body:not(.light) .form-grid>label{color:#a9b5c6}body:not(.light) .admin-check-grid{background:#0e1724;border-color:#253247}body:not(.light) .admin-check-grid label{background:#111c2a;border-color:#253247;color:#dbe4f0}
body:not(.light) .plan-edit-section{background:#0d1623;border-color:#243043}body:not(.light) .checkout-summary strong{color:#eef3fb}body:not(.light) .square-card{background:#0d1623;border-color:#253247}

@media(max-width:1180px){.pricing-public-main,.pricing-footer{margin-left:24px;margin-right:24px}.pricing-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.pricing-feature-cards{grid-template-columns:repeat(2,minmax(0,1fr))}.pricing-intro{min-height:0}}
@media(max-width:760px){.admin-body .main-shell{margin-left:0}.collection-usage{grid-template-columns:1fr;gap:10px}.admin-profile{align-items:flex-start;flex-direction:column}.admin-status-line{justify-content:flex-start}.recommendation-grid{grid-template-columns:1fr}.pricing-topbar{padding:0 16px}.pricing-topbar nav>a:not(.button){display:none}.pricing-public-main,.pricing-footer{margin-left:16px;margin-right:16px}.pricing-intro{padding:48px 0}.pricing-intro h1{font-size:34px}.pricing-heading-row{align-items:flex-start;flex-direction:column}.pricing-grid,.pricing-feature-cards{grid-template-columns:1fr}.pricing-card{min-height:0}.pricing-footer{align-items:flex-start;flex-direction:column}.auth-brand{padding:0 18px}}

/* User dashboard hero */
.user-welcome{display:flex;align-items:center;justify-content:space-between;gap:24px;margin-bottom:20px;padding:26px 28px;border:1px solid #dfe6f0;border-radius:20px;background:radial-gradient(circle at 90% 0,rgba(47,109,246,.16),transparent 34%),linear-gradient(135deg,#fff,#f9fbff);box-shadow:var(--v14-shadow-sm)}
.user-welcome h1{margin:6px 0 8px;font-size:32px;line-height:1.08;letter-spacing:-.045em}.user-welcome p{max-width:720px;margin:0;color:#718098;font-size:12.5px;line-height:1.65}.user-welcome-side{min-width:235px;padding:15px 16px;border:1px solid #e4e9f2;border-radius:14px;background:rgba(255,255,255,.82)}.user-welcome-side>span{display:block;color:#8a96a8;font-size:9px;font-weight:850;letter-spacing:.08em;text-transform:uppercase}.user-welcome-side>strong{display:block;margin:5px 0 12px;color:#172033;font-size:17px}.user-welcome-actions{display:flex;gap:8px}.user-welcome-actions .button{flex:1}
body:not(.light) .user-welcome{background:radial-gradient(circle at 90% 0,rgba(47,109,246,.18),transparent 34%),#111a27;border-color:#253247;box-shadow:none}body:not(.light) .user-welcome h1,body:not(.light) .user-welcome-side>strong{color:#f3f7fc}body:not(.light) .user-welcome p{color:#98a7bd}body:not(.light) .user-welcome-side{background:#0d1623;border-color:#253247}
@media(max-width:760px){.user-welcome{align-items:flex-start;flex-direction:column;padding:22px}.user-welcome h1{font-size:27px}.user-welcome-side{width:100%}.user-welcome-actions{flex-direction:column}}

/* System and audit polish */
.system-check-list{display:grid}.system-check-list>div{display:grid;grid-template-columns:auto minmax(130px,.55fr) minmax(0,1fr);align-items:center;gap:12px;padding:13px 20px;border-bottom:1px solid #edf0f5}.system-check-list>div:last-child{border-bottom:0}.system-check-list strong{font-size:11px}.system-check-list code{min-width:0;overflow:hidden;text-overflow:ellipsis;color:#66758b;font-size:10px;white-space:nowrap}.code-panel{margin:18px;padding:14px 16px;border:1px solid #e3e8f0;border-radius:11px;background:#0d1623;color:#dbe6f6;overflow:auto}.code-panel code{font-size:11px;white-space:nowrap}.admin-meta{max-width:420px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.domain-table td>small{display:block;margin-top:3px;color:#8c98a9;font-size:9px}
body:not(.light) .system-check-list>div{border-color:#243043}body:not(.light) .system-check-list code{color:#9dacbf}
@media(max-width:760px){.system-check-list>div{grid-template-columns:auto 1fr}.system-check-list code{grid-column:1/-1;white-space:normal}.admin-meta{max-width:none;white-space:normal}}

/* ========================================================================
   v14.2 true theme parity
   Light mode now uses light navigation and light subscription surfaces.
   Dark mode keeps the dark product treatment. Public pricing remains dark.
   ======================================================================== */

/* Light navigation shell for signed in user and admin areas */
body.light:not(.pricing-public-body):not(.auth-page) .sidebar,
body.light.admin-body .sidebar{
  background:#ffffff;
  border-right:1px solid #e3e8f0;
  box-shadow:8px 0 28px rgba(21,35,58,.035);
}
body.light:not(.pricing-public-body):not(.auth-page) .sidebar-brand,
body.light.admin-body .sidebar-brand{
  border-bottom-color:#edf0f5;
}
body.light:not(.pricing-public-body):not(.auth-page) .brand-copy strong,
body.light.admin-body .brand-copy strong{
  color:#172033;
}
body.light:not(.pricing-public-body):not(.auth-page) .sidebar-nav a,
body.light.admin-body .sidebar-nav a{
  color:#68778d;
}
body.light:not(.pricing-public-body):not(.auth-page) .sidebar-nav a:hover,
body.light.admin-body .sidebar-nav a:hover{
  background:#f4f7fb;
  color:#1f2d44;
  transform:translateX(2px);
}
body.light:not(.pricing-public-body):not(.auth-page) .sidebar-nav a.active,
body.light.admin-body .sidebar-nav a.active{
  background:linear-gradient(90deg,#edf3ff,#f6f9ff);
  border-color:#d9e5ff;
  color:#245ecb;
  box-shadow:inset 3px 0 0 #2f6df6;
}
body.light:not(.pricing-public-body):not(.auth-page) .nav-divider,
body.light.admin-body .nav-divider{
  background:#edf0f5;
}
body.light:not(.pricing-public-body):not(.auth-page) .sidebar-nav svg,
body.light.admin-body .sidebar-nav svg{
  opacity:.82;
}

/* True light mode for logged in plan selection */
body.light .user-pricing-stage{
  border:1px solid #dfe6f0;
  background:
    radial-gradient(circle at 78% -18%,rgba(47,109,246,.13),transparent 34%),
    linear-gradient(180deg,#ffffff 0%,#f8faff 100%);
  box-shadow:0 18px 46px rgba(20,32,55,.08);
}
body.light .user-pricing-stage .pricing-stage-head h2{
  color:#172033;
}
body.light .user-pricing-stage .pricing-stage-head p{
  color:#748198;
}
body.light .user-pricing-stage .billing-toggle{
  border-color:#dce4ef;
  background:#eef2f7;
}
body.light .user-pricing-stage .billing-toggle a{
  color:#65758b;
}
body.light .user-pricing-stage .billing-toggle a.active{
  background:#2f6df6;
  color:#fff;
  box-shadow:0 4px 12px rgba(47,109,246,.18);
}
body.light .user-plan-card{
  border-color:#e0e6ef;
  background:#ffffff;
  color:#1d2a43;
  box-shadow:0 8px 24px rgba(20,32,55,.055);
}
body.light .user-plan-card:hover{
  border-color:#cbd8eb;
  box-shadow:0 18px 38px rgba(20,32,55,.10);
}
body.light .user-plan-card.featured{
  border-color:#a9c3ff;
  background:linear-gradient(180deg,#f5f8ff 0%,#edf3ff 100%);
  box-shadow:0 16px 38px rgba(47,109,246,.12);
}
body.light .user-plan-card.current{
  outline-color:#2f6df6;
}
body.light .user-plan-card h3,
body.light .user-plan-limit,
body.light .user-plan-price strong{
  color:#172033;
}
body.light .user-plan-card .card-kicker{
  color:#7b889d;
}
body.light .user-plan-limit small,
body.light .user-plan-price span{
  color:#7d899c;
}
body.light .user-plan-desc{
  color:#66758c;
}
body.light .user-plan-features li{
  color:#405069;
}
body.light .user-plan-features li:before,
body.light .user-plan-card.featured .user-plan-features li:before{
  border-color:#2f6df6;
  background:#ffffff;
  box-shadow:inset 0 0 0 2px #ffffff;
}
body.light .user-plan-card.featured .user-plan-features li:before{
  background:#f2f6ff;
  box-shadow:inset 0 0 0 2px #f2f6ff;
}
body.light .user-plan-actions .button-secondary{
  border-color:#d7e0ec;
  background:#f8fafc;
  color:#32425c;
}
body.light .user-plan-actions .button-secondary:hover{
  background:#f1f5fa;
  border-color:#c7d4e5;
}
body.light .user-plan-card .popular-badge{
  background:#fff3d9;
  color:#9b6508;
}
body.light .current-plan-badge{
  color:#2f6df6;
}
body.light .current-plan-badge:before{
  background:#2f6df6;
}
body.light .plan-note,
body.light .plan-setup-note{
  color:#7f8ca0;
}
body.light .pricing-benefit-band article{
  border-color:#e0e6ef;
  background:#f8faff;
}
body.light .pricing-benefit-band strong{
  color:#21304a;
}
body.light .pricing-benefit-band p{
  color:#748198;
}

/* Explicit dark mode for signed in plan selection */
body:not(.light):not(.pricing-public-body) .user-pricing-stage{
  border-color:#111e32;
  background:radial-gradient(circle at 50% -30%,#18345e 0,#0b1424 30%,#070d17 74%);
  box-shadow:0 20px 55px rgba(0,0,0,.20);
}
body:not(.light):not(.pricing-public-body) .user-plan-card{
  border-color:#263246;
  background:linear-gradient(180deg,#0c121b,#0a1018);
  color:#f7f9fc;
}
body:not(.light):not(.pricing-public-body) .user-plan-card.featured{
  border-color:#3979ff;
  background:linear-gradient(180deg,#122b58 0,#0c1d3a 100%);
}
body:not(.light):not(.pricing-public-body) .user-plan-card h3,
body:not(.light):not(.pricing-public-body) .user-plan-limit,
body:not(.light):not(.pricing-public-body) .user-plan-price strong{
  color:#fff;
}
body:not(.light):not(.pricing-public-body) .user-plan-desc,
body:not(.light):not(.pricing-public-body) .user-plan-price span,
body:not(.light):not(.pricing-public-body) .user-plan-limit small{
  color:#9eacc0;
}
body:not(.light):not(.pricing-public-body) .user-plan-features li{
  color:#d9e1ed;
}
body:not(.light):not(.pricing-public-body) .pricing-benefit-band article{
  border-color:#263246;
  background:#0b1422;
}
body:not(.light):not(.pricing-public-body) .pricing-benefit-band strong{
  color:#fff;
}
body:not(.light):not(.pricing-public-body) .pricing-benefit-band p{
  color:#8fa0b8;
}

/* Light mode detail polish */
body.light .topbar-user{background:#fff;border-color:#e1e7ef;color:#66758b}
body.light .icon-button,body.light .logout-button{background:#fff;border-color:#dfe5ee;color:#405069}
body.light .icon-button:hover,body.light .logout-button:hover{background:#f6f8fb;border-color:#ced8e6}

@media(max-width:760px){
  body.light:not(.pricing-public-body):not(.auth-page) .sidebar,
  body.light.admin-body .sidebar{box-shadow:18px 0 50px rgba(20,32,55,.16)}
}

/* ========================================================================
   v15.1 polish fixes
   Admin navigation intentionally stays dark in both themes.
   ======================================================================== */
body.light.admin-body .sidebar,
body.admin-body .sidebar{
  background:linear-gradient(180deg,#07111f 0%,#0a1525 100%) !important;
  border-right:1px solid rgba(255,255,255,.06) !important;
  box-shadow:10px 0 30px rgba(6,15,31,.06) !important;
}
body.light.admin-body .sidebar-brand,
body.admin-body .sidebar-brand{border-bottom-color:rgba(255,255,255,.07) !important}
body.light.admin-body .brand-copy strong,
body.admin-body .brand-copy strong{color:#ffffff !important}
body.light.admin-body .sidebar-nav a,
body.admin-body .sidebar-nav a{color:#91a0b8 !important}
body.light.admin-body .sidebar-nav a:hover,
body.admin-body .sidebar-nav a:hover{background:rgba(255,255,255,.05) !important;color:#ffffff !important}
body.light.admin-body .sidebar-nav a.active,
body.admin-body .sidebar-nav a.active{background:linear-gradient(90deg,rgba(47,109,246,.24),rgba(47,109,246,.10)) !important;border-color:rgba(91,140,255,.18) !important;color:#ffffff !important;box-shadow:inset 3px 0 0 #5b8cff !important}
body.light.admin-body .nav-divider,
body.admin-body .nav-divider{background:rgba(255,255,255,.08) !important}
body.light.admin-body .sidebar-close,
body.admin-body .sidebar-close{color:#b9c5d6}

.admin-plan-cards{grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}
.admin-plan-card{min-height:410px;padding:21px}
.admin-plan-card p{min-height:56px}
.admin-feature-list li{font-size:11px;line-height:1.48}
@media(max-width:1240px){.admin-plan-cards{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:760px){.admin-plan-cards{grid-template-columns:1fr}.admin-plan-card{min-height:0}}

/* ========================================================================
   v15.3 complete dark theme parity
   Keeps the administration sidebar dark in both themes and ensures every
   signed in surface, control, table and sticky action area has readable
   contrast when the saved theme is dark.
   ======================================================================== */

body.admin-body:not(.light),
body:not(.light):not(.pricing-public-body):not(.auth-page){
  background:#08111d !important;
  color:#eef4ff;
  color-scheme:dark;
}
body.admin-body:not(.light) .main-shell,
body:not(.light):not(.pricing-public-body):not(.auth-page) .main-shell{
  background:linear-gradient(180deg,#0a121c 0%,#08111b 100%) !important;
}
body.admin-body:not(.light) .container,
body:not(.light):not(.pricing-public-body):not(.auth-page) .container{
  background:transparent !important;
}

/* Top navigation */
body.admin-body:not(.light) .topbar,
body:not(.light):not(.pricing-public-body):not(.auth-page) .topbar{
  background:rgba(10,18,29,.96) !important;
  border-bottom-color:#1f2e43 !important;
  box-shadow:0 1px 0 rgba(255,255,255,.02) !important;
  backdrop-filter:blur(16px);
}
body.admin-body:not(.light) .topbar-title,
body.admin-body:not(.light) .topbar-user strong,
body:not(.light):not(.pricing-public-body):not(.auth-page) .topbar-title,
body:not(.light):not(.pricing-public-body):not(.auth-page) .topbar-user strong{
  color:#edf4ff !important;
}
body.admin-body:not(.light) .topbar-user,
body:not(.light):not(.pricing-public-body):not(.auth-page) .topbar-user{
  background:#101b2a !important;
  border-color:#263750 !important;
  color:#b9c7da !important;
}
body.admin-body:not(.light) .icon-button,
body.admin-body:not(.light) .logout-button,
body:not(.light):not(.pricing-public-body):not(.auth-page) .icon-button,
body:not(.light):not(.pricing-public-body):not(.auth-page) .logout-button{
  background:#101b2a !important;
  border-color:#2a3b52 !important;
  color:#e4ecf7 !important;
  box-shadow:none !important;
}
body.admin-body:not(.light) .icon-button:hover,
body.admin-body:not(.light) .logout-button:hover,
body:not(.light):not(.pricing-public-body):not(.auth-page) .icon-button:hover,
body:not(.light):not(.pricing-public-body):not(.auth-page) .logout-button:hover{
  background:#162338 !important;
  border-color:#3a5171 !important;
  color:#fff !important;
}

/* Page titles and supporting copy */
body.admin-body:not(.light) .page-head h1,
body.admin-body:not(.light) .detail-head h1,
body:not(.light):not(.pricing-public-body):not(.auth-page) .page-head h1,
body:not(.light):not(.pricing-public-body):not(.auth-page) .detail-head h1{
  color:#f4f7fc !important;
}
body.admin-body:not(.light) .page-head p,
body.admin-body:not(.light) .detail-head p,
body:not(.light):not(.pricing-public-body):not(.auth-page) .page-head p,
body:not(.light):not(.pricing-public-body):not(.auth-page) .detail-head p{
  color:#95a5bb !important;
}
body.admin-body:not(.light) .section-kicker,
body.admin-body:not(.light) .eyebrow,
body:not(.light):not(.pricing-public-body):not(.auth-page) .section-kicker,
body:not(.light):not(.pricing-public-body):not(.auth-page) .eyebrow{
  color:#82a7ff !important;
}

/* Generic product surfaces */
body.admin-body:not(.light) .surface,
body:not(.light):not(.pricing-public-body):not(.auth-page) .surface,
body.admin-body:not(.light) .admin-kpi-grid article,
body.admin-body:not(.light) .health-card,
body.admin-body:not(.light) .admin-plan-summary article,
body.admin-body:not(.light) .admin-plan-card,
body.admin-body:not(.light) .billing-provider-card,
body.admin-body:not(.light) .group-card,
body:not(.light):not(.pricing-public-body):not(.auth-page) .health-card,
body:not(.light):not(.pricing-public-body):not(.auth-page) .group-card{
  background:#101a28 !important;
  border-color:#26364d !important;
  color:#eaf1fb !important;
  box-shadow:none !important;
}
body.admin-body:not(.light) .surface-head,
body:not(.light):not(.pricing-public-body):not(.auth-page) .surface-head{
  background:#0d1724 !important;
  border-color:#25354b !important;
}
body.admin-body:not(.light) .surface-head h2,
body.admin-body:not(.light) .surface h2,
body.admin-body:not(.light) .surface h3,
body:not(.light):not(.pricing-public-body):not(.auth-page) .surface-head h2,
body:not(.light):not(.pricing-public-body):not(.auth-page) .surface h2,
body:not(.light):not(.pricing-public-body):not(.auth-page) .surface h3{
  color:#eff5ff !important;
}
body.admin-body:not(.light) .surface-head p,
body:not(.light):not(.pricing-public-body):not(.auth-page) .surface-head p{
  color:#92a2b9 !important;
}

/* Dashboard hero and KPI surfaces */
body.admin-body:not(.light) .admin-welcome,
body:not(.light):not(.pricing-public-body):not(.auth-page) .user-welcome,
body:not(.light):not(.pricing-public-body):not(.auth-page) .recommendation-hero{
  background:radial-gradient(circle at 88% -8%,rgba(63,120,255,.18),transparent 38%),linear-gradient(135deg,#101b2a,#0d1724) !important;
  border-color:#2b3b53 !important;
  box-shadow:none !important;
}
body.admin-body:not(.light) .admin-welcome h1,
body:not(.light):not(.pricing-public-body):not(.auth-page) .user-welcome h1,
body:not(.light):not(.pricing-public-body):not(.auth-page) .recommendation-hero h2{
  color:#f4f7fc !important;
}
body.admin-body:not(.light) .admin-welcome p,
body:not(.light):not(.pricing-public-body):not(.auth-page) .user-welcome p,
body:not(.light):not(.pricing-public-body):not(.auth-page) .recommendation-hero p{
  color:#9aaabd !important;
}
body.admin-body:not(.light) .admin-kpi-grid article span,
body.admin-body:not(.light) .admin-kpi-grid article small,
body.admin-body:not(.light) .health-card span,
body.admin-body:not(.light) .health-card small{
  color:#91a2b8 !important;
}
body.admin-body:not(.light) .admin-kpi-grid article strong,
body.admin-body:not(.light) .health-card strong{
  color:#f4f8ff !important;
}

/* Integrations */
body.admin-body:not(.light) .integration-hero .surface:first-child{
  background:radial-gradient(circle at 100% 0,rgba(47,109,246,.16),transparent 42%),#101a28 !important;
}
body.admin-body:not(.light) .integration-hero h2,
body.admin-body:not(.light) .integration-card-head h2{
  color:#f1f6ff !important;
}
body.admin-body:not(.light) .integration-hero p,
body.admin-body:not(.light) .integration-card-head p{
  color:#93a3b9 !important;
}
body.admin-body:not(.light) .integration-status-row{
  background:#0c1623 !important;
  border-color:#26374e !important;
  color:#e7eef8 !important;
}
body.admin-body:not(.light) .integration-card-head{
  background:#0d1724 !important;
  border-color:#26364d !important;
}
body.admin-body:not(.light) .provider-mark{
  background:#16294a !important;
  color:#8cb0ff !important;
}
body.admin-body:not(.light) .provider-mark.square{
  background:#1b2430 !important;
  color:#e2e8f0 !important;
}
body.admin-body:not(.light) .provider-mark.ai{
  background:#102a26 !important;
  color:#67ddb3 !important;
}
body.admin-body:not(.light) .provider-mark.mail{
  background:#2b2413 !important;
  color:#f3c266 !important;
}
body.admin-body:not(.light) .settings-sticky{
  background:rgba(13,23,36,.97) !important;
  border-color:#2a3b53 !important;
  color:#a8b7ca !important;
  box-shadow:0 16px 42px rgba(0,0,0,.28) !important;
}
body.admin-body:not(.light) .integration-actions small{
  color:#899bb2 !important;
}

/* Form controls */
body.admin-body:not(.light) input:not([type="checkbox"]):not([type="radio"]),
body.admin-body:not(.light) select,
body.admin-body:not(.light) textarea,
body:not(.light):not(.pricing-public-body):not(.auth-page) input:not([type="checkbox"]):not([type="radio"]),
body:not(.light):not(.pricing-public-body):not(.auth-page) select,
body:not(.light):not(.pricing-public-body):not(.auth-page) textarea{
  background:#0c1623 !important;
  border-color:#304159 !important;
  color:#edf4ff !important;
  box-shadow:none !important;
  color-scheme:dark;
}
body.admin-body:not(.light) input::placeholder,
body.admin-body:not(.light) textarea::placeholder,
body:not(.light):not(.pricing-public-body):not(.auth-page) input::placeholder,
body:not(.light):not(.pricing-public-body):not(.auth-page) textarea::placeholder{
  color:#71839c !important;
  opacity:1;
}
body.admin-body:not(.light) input:focus,
body.admin-body:not(.light) select:focus,
body.admin-body:not(.light) textarea:focus,
body:not(.light):not(.pricing-public-body):not(.auth-page) input:focus,
body:not(.light):not(.pricing-public-body):not(.auth-page) select:focus,
body:not(.light):not(.pricing-public-body):not(.auth-page) textarea:focus{
  border-color:#6b95ff !important;
  box-shadow:0 0 0 3px rgba(107,149,255,.14) !important;
}
body.admin-body:not(.light) .form-grid>label,
body:not(.light):not(.pricing-public-body):not(.auth-page) .form-grid>label{
  color:#c4d0df !important;
}
body.admin-body:not(.light) .form-grid>label>small,
body:not(.light):not(.pricing-public-body):not(.auth-page) .form-grid>label>small{
  color:#8192a9 !important;
}
body.admin-body:not(.light) option,
body:not(.light):not(.pricing-public-body):not(.auth-page) option{
  background:#0c1623;
  color:#edf4ff;
}

/* Buttons */
body.admin-body:not(.light) .button-secondary,
body:not(.light):not(.pricing-public-body):not(.auth-page) .button-secondary{
  background:#111d2d !important;
  border-color:#304159 !important;
  color:#e5edf9 !important;
}
body.admin-body:not(.light) .button-secondary:hover,
body:not(.light):not(.pricing-public-body):not(.auth-page) .button-secondary:hover{
  background:#17253a !important;
  border-color:#46607f !important;
  color:#fff !important;
}
body.admin-body:not(.light) .button-danger,
body:not(.light):not(.pricing-public-body):not(.auth-page) .button-danger{
  background:#2a171d !important;
  border-color:#5a2d37 !important;
  color:#ffabb3 !important;
}

/* Tables, search controls and pagination */
body.admin-body:not(.light) .datatable-toolbar,
body.admin-body:not(.light) .datatable-footer,
body.admin-body:not(.light) .filter-row,
body:not(.light):not(.pricing-public-body):not(.auth-page) .datatable-toolbar,
body:not(.light):not(.pricing-public-body):not(.auth-page) .datatable-footer,
body:not(.light):not(.pricing-public-body):not(.auth-page) .filter-row{
  background:#0d1724 !important;
  border-color:#26364d !important;
}
body.admin-body:not(.light) .dt-search,
body:not(.light):not(.pricing-public-body):not(.auth-page) .dt-search{
  background:#0b1521 !important;
  border-color:#304159 !important;
}
body.admin-body:not(.light) .dt-search input,
body.admin-body:not(.light) .dt-size-label select,
body:not(.light):not(.pricing-public-body):not(.auth-page) .dt-search input,
body:not(.light):not(.pricing-public-body):not(.auth-page) .dt-size-label select{
  background:#0b1521 !important;
  border-color:#304159 !important;
  color:#e9f0fa !important;
}
body.admin-body:not(.light) .dt-size-label,
body:not(.light):not(.pricing-public-body):not(.auth-page) .dt-size-label{
  color:#9dacbf !important;
}
body.admin-body:not(.light) .domain-table,
body:not(.light):not(.pricing-public-body):not(.auth-page) .domain-table{
  color:#dce5f2 !important;
}
body.admin-body:not(.light) .domain-table th,
body:not(.light):not(.pricing-public-body):not(.auth-page) .domain-table th{
  background:#0c1623 !important;
  border-color:#25364d !important;
  color:#8fa1b8 !important;
}
body.admin-body:not(.light) .domain-table td,
body:not(.light):not(.pricing-public-body):not(.auth-page) .domain-table td{
  border-color:#223147 !important;
  color:#dce5f2 !important;
}
body.admin-body:not(.light) .domain-table tbody tr:hover,
body:not(.light):not(.pricing-public-body):not(.auth-page) .domain-table tbody tr:hover{
  background:#111e2e !important;
}
body.admin-body:not(.light) .filter-chip,
body:not(.light):not(.pricing-public-body):not(.auth-page) .filter-chip{
  color:#9cacbf !important;
}
body.admin-body:not(.light) .filter-chip:hover,
body:not(.light):not(.pricing-public-body):not(.auth-page) .filter-chip:hover{
  background:#162338 !important;
  color:#f0f5fc !important;
}
body.admin-body:not(.light) .filter-chip.active,
body:not(.light):not(.pricing-public-body):not(.auth-page) .filter-chip.active{
  background:#17325f !important;
  color:#91b2ff !important;
}
body.admin-body:not(.light) .datatable-pagination>button,
body.admin-body:not(.light) .dt-page,
body:not(.light):not(.pricing-public-body):not(.auth-page) .datatable-pagination>button,
body:not(.light):not(.pricing-public-body):not(.auth-page) .dt-page{
  background:#101b2a !important;
  border-color:#2b3d55 !important;
  color:#aab9cc !important;
}
body.admin-body:not(.light) .datatable-pagination>button:disabled,
body:not(.light):not(.pricing-public-body):not(.auth-page) .datatable-pagination>button:disabled{
  color:#596b83 !important;
  opacity:.55;
}
body.admin-body:not(.light) .dt-page.active,
body:not(.light):not(.pricing-public-body):not(.auth-page) .dt-page.active{
  background:#4e7dff !important;
  border-color:#4e7dff !important;
  color:#fff !important;
}
body.admin-body:not(.light) .datatable-footer>[data-dt-info],
body:not(.light):not(.pricing-public-body):not(.auth-page) .datatable-footer>[data-dt-info]{
  color:#91a2b7 !important;
}

/* Plan management and dialogs */
body.admin-body:not(.light) .admin-plan-card.featured,
body.admin-body:not(.light) .billing-provider-card.active{
  background:linear-gradient(180deg,#132440,#101d33) !important;
  border-color:#3d67b9 !important;
}
body.admin-body:not(.light) .admin-plan-card h2,
body.admin-body:not(.light) .admin-plan-limit,
body.admin-body:not(.light) .admin-plan-price,
body.admin-body:not(.light) .billing-provider-card strong{
  color:#f2f7ff !important;
}
body.admin-body:not(.light) .admin-plan-card p,
body.admin-body:not(.light) .admin-feature-list,
body.admin-body:not(.light) .billing-provider-card small{
  color:#95a5bb !important;
}
body.admin-body:not(.light) .admin-check-grid{
  background:#0c1623 !important;
  border-color:#293a52 !important;
}
body.admin-body:not(.light) .admin-check-grid label{
  background:#101c2b !important;
  border-color:#283950 !important;
  color:#dce5f2 !important;
}
body.admin-body:not(.light) .plan-dialog{
  background:#101a28 !important;
  color:#edf4ff !important;
}
body.admin-body:not(.light) .plan-dialog-head,
body.admin-body:not(.light) .plan-dialog-actions{
  background:#0c1623 !important;
  border-color:#283950 !important;
}
body.admin-body:not(.light) .plan-dialog-head h2,
body.admin-body:not(.light) .plan-edit-section h3{
  color:#f0f5fd !important;
}
body.admin-body:not(.light) .plan-edit-section{
  background:#0d1724 !important;
  border-color:#283950 !important;
}
body.admin-body:not(.light) .plan-edit-section p{
  color:#8798ae !important;
}
body.admin-body:not(.light) .dialog-close{
  background:#101c2b !important;
  border-color:#304159 !important;
  color:#c4d0df !important;
}

/* Profiles, lists and utilities */
body.admin-body:not(.light) .admin-profile,
body.admin-body:not(.light) .collection-usage,
body:not(.light):not(.pricing-public-body):not(.auth-page) .collection-usage{
  background:#101a28 !important;
  border-color:#26364d !important;
  color:#eaf1fb !important;
}
body.admin-body:not(.light) .compact-row,
body:not(.light):not(.pricing-public-body):not(.auth-page) .compact-row{
  border-color:#223147 !important;
}
body.admin-body:not(.light) .compact-row strong,
body:not(.light):not(.pricing-public-body):not(.auth-page) .compact-row strong{
  color:#e7eef8 !important;
}
body.admin-body:not(.light) .compact-row small,
body.admin-body:not(.light) .compact-date,
body:not(.light):not(.pricing-public-body):not(.auth-page) .compact-row small,
body:not(.light):not(.pricing-public-body):not(.auth-page) .compact-date{
  color:#8294aa !important;
}
body.admin-body:not(.light) .empty-state,
body:not(.light):not(.pricing-public-body):not(.auth-page) .empty-state{
  color:#8294aa !important;
}
body.admin-body:not(.light) .code-panel,
body:not(.light):not(.pricing-public-body):not(.auth-page) .code-panel{
  background:#08111d !important;
  border-color:#26364d !important;
  color:#dbe6f6 !important;
}
body.admin-body:not(.light) .system-check-list>div,
body:not(.light):not(.pricing-public-body):not(.auth-page) .system-check-list>div{
  border-color:#26364d !important;
}

/* Logged in plan / AI / report extras */
body:not(.light):not(.pricing-public-body):not(.auth-page) .user-welcome-side,
body:not(.light):not(.pricing-public-body):not(.auth-page) .square-card,
body:not(.light):not(.pricing-public-body):not(.auth-page) .provider-readiness{
  background:#0c1623 !important;
  border-color:#293a52 !important;
}
body:not(.light):not(.pricing-public-body):not(.auth-page) .user-welcome-side>strong{
  color:#eff5ff !important;
}
body:not(.light):not(.pricing-public-body):not(.auth-page) .report-preview{
  background:#f8fafc !important;
  color:#111827 !important;
  border-color:#dce3ec !important;
}

/* Dark theme SweetAlert */
body:not(.light) .v14-swal{
  background:#101a28 !important;
  border-color:#2a3b53 !important;
  box-shadow:0 30px 90px rgba(0,0,0,.45) !important;
}
body:not(.light) .v14-swal h3{color:#f4f7fc !important}
body:not(.light) .v14-swal p{color:#99a9bd !important}
body:not(.light) .v14-swal-cancel{
  background:#101c2b !important;
  border-color:#304159 !important;
  color:#e4ecf7 !important;
}

/* Admin navigation intentionally remains dark even while content is light. */
body.admin-body .sidebar{
  background:linear-gradient(180deg,#07111f 0%,#0a1525 100%) !important;
  border-right-color:rgba(255,255,255,.06) !important;
}
body.admin-body .brand-copy strong{color:#fff !important}
body.admin-body .sidebar-nav a{color:#91a0b8 !important}
body.admin-body .sidebar-nav a:hover{background:rgba(255,255,255,.05) !important;color:#fff !important}
body.admin-body .sidebar-nav a.active{background:linear-gradient(90deg,rgba(47,109,246,.24),rgba(47,109,246,.10)) !important;border-color:rgba(91,140,255,.18) !important;color:#fff !important;box-shadow:inset 3px 0 0 #5b8cff !important}
body.admin-body .nav-divider{background:rgba(255,255,255,.08) !important}

.client-pricing{
  --cp-bg:#f5f7fb;
  --cp-panel:#ffffff;
  --cp-panel-alt:#f0f4fa;
  --cp-text:#0f1b2d;
  --cp-muted:#5b6b82;
  --cp-border:#dfe6f0;
  --cp-brand:#1463ff;
  --cp-brand-2:#0bb5a6;
  --cp-brand-soft:#e6efff;
  --cp-ai:#7a3cff;
  --cp-ai-soft:#f1eaff;
  --cp-ok:#0f9d6b;
  --cp-no:#a8b3c3;
  --cp-shadow:0 10px 30px rgba(15,27,45,.08);
  color:var(--cp-text);
  font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,sans-serif;
  font-size:16px;
  line-height:1.5;
}
body:not(.light) .client-pricing{
  --cp-bg:#0b1220;
  --cp-panel:#121b2e;
  --cp-panel-alt:#17223a;
  --cp-text:#e8eef8;
  --cp-muted:#9aa9c0;
  --cp-border:#243250;
  --cp-brand:#4c8dff;
  --cp-brand-2:#2fd3c3;
  --cp-brand-soft:#16284d;
  --cp-ai:#a57bff;
  --cp-ai-soft:#251a45;
  --cp-ok:#36c98f;
  --cp-no:#56647c;
  --cp-shadow:0 10px 30px rgba(0,0,0,.35);
}
.client-pricing *{box-sizing:border-box}
.client-pricing .cp-wrap{width:min(100%,1280px);margin:0 auto;padding:50px 20px 72px}
.client-pricing .cp-header{text-align:center;margin:0 auto 32px;max-width:760px}
.client-pricing .cp-eyebrow{display:inline-block;font-size:11px;font-weight:800;letter-spacing:.18em;color:var(--cp-brand);background:var(--cp-brand-soft);padding:6px 12px;border-radius:999px;text-transform:uppercase}
.client-pricing h1{font-size:clamp(30px,4vw,46px);line-height:1.1;margin:16px 0 12px;font-weight:800;letter-spacing:-.035em;color:var(--cp-text)}
.client-pricing .cp-lede{color:var(--cp-muted);max-width:690px;margin:0 auto;font-size:16px;line-height:1.65}
.client-pricing .cp-billing{display:flex;justify-content:center;align-items:center;gap:12px;margin:26px 0 40px;flex-wrap:wrap}
.client-pricing .cp-toggle{display:inline-flex;background:var(--cp-panel);border:1px solid var(--cp-border);border-radius:999px;padding:4px;box-shadow:var(--cp-shadow)}
.client-pricing .cp-toggle button,.client-pricing .cp-toggle a{border:0;background:transparent;color:var(--cp-muted);font:inherit;font-size:13px;font-weight:700;padding:9px 18px;border-radius:999px;cursor:pointer;transition:all .2s;text-decoration:none}
.client-pricing .cp-toggle [aria-pressed=true],.client-pricing .cp-toggle .active{background:var(--cp-brand);color:#fff;box-shadow:0 4px 12px color-mix(in srgb,var(--cp-brand) 24%,transparent)}
.client-pricing .cp-save-badge{font-size:12px;font-weight:800;color:var(--cp-ok);background:color-mix(in srgb,var(--cp-ok) 13%,transparent);padding:7px 11px;border-radius:999px}

.client-pricing .cp-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:18px;align-items:stretch}
.client-pricing .cp-tile{position:relative;min-width:0;display:flex;flex-direction:column;padding:27px 22px 22px;background:var(--cp-panel);border:1px solid var(--cp-border);border-radius:18px;box-shadow:var(--cp-shadow);transition:transform .2s ease,border-color .2s ease,box-shadow .2s ease}
.client-pricing .cp-tile:hover{transform:translateY(-4px);border-color:color-mix(in srgb,var(--cp-brand) 55%,var(--cp-border));box-shadow:0 18px 42px rgba(15,27,45,.12)}
.client-pricing .cp-tile.featured{border:2px solid var(--cp-brand)}
.client-pricing .cp-tile.ai-tier{border-top:4px solid var(--cp-ai)}
.client-pricing .cp-tile.featured.ai-tier{border-top-color:var(--cp-ai)}
.client-pricing .cp-ribbon{position:absolute;top:-13px;left:50%;transform:translateX(-50%);max-width:calc(100% - 28px);overflow:hidden;text-overflow:ellipsis;background:linear-gradient(90deg,var(--cp-brand),var(--cp-ai));color:#fff;font-size:10px;font-weight:800;letter-spacing:.055em;padding:6px 12px;border-radius:999px;white-space:nowrap}
.client-pricing .cp-tier-name{display:flex;align-items:center;gap:7px;flex-wrap:wrap;font-size:13px;font-weight:800;letter-spacing:.11em;text-transform:uppercase;color:var(--cp-brand);margin:0}
.client-pricing .ai-tier .cp-tier-name{color:var(--cp-ai)}
.client-pricing .cp-current{display:inline-flex;align-items:center;font-size:9px;font-weight:800;letter-spacing:.01em;text-transform:none;color:var(--cp-ok);margin:0}
.client-pricing .cp-tagline{color:var(--cp-muted);font-size:13px;line-height:1.55;margin:7px 0 18px;min-height:61px}
.client-pricing .cp-price{display:flex;align-items:baseline;gap:5px;min-width:0}
.client-pricing .cp-price .amt{font-size:40px;font-weight:800;line-height:1;letter-spacing:-.04em;color:var(--cp-text)}
.client-pricing .cp-price .per{color:var(--cp-muted);font-size:12px;font-weight:600;white-space:nowrap}
.client-pricing .cp-price-note{color:var(--cp-muted);font-size:11px;line-height:1.45;min-height:34px;margin:7px 0 16px}
.client-pricing .cp-price-note strong{color:var(--cp-ok)}
.client-pricing .cp-quota{display:flex;align-items:center;gap:10px;min-height:56px;background:var(--cp-panel-alt);border:1px solid var(--cp-border);border-radius:12px;padding:10px 12px;margin-bottom:16px}
.client-pricing .cp-quota .num{font-size:21px;font-weight:800;line-height:1;color:var(--cp-text)}
.client-pricing .cp-quota .lbl{font-size:11px;color:var(--cp-muted);line-height:1.25}
.client-pricing .cp-cta{display:flex;align-items:center;justify-content:center;width:100%;min-height:42px;text-align:center;text-decoration:none;font-size:12px;font-weight:800;padding:10px 14px;border-radius:11px;margin:0 0 20px;transition:transform .18s ease,filter .18s ease,background .18s ease;border:1px solid var(--cp-brand);color:var(--cp-brand);background:transparent}
.client-pricing .cp-cta:hover:not(:disabled){filter:brightness(1.03);transform:translateY(-1px)}
.client-pricing .cp-cta.primary{background:var(--cp-brand);color:#fff}
.client-pricing .cp-cta.ai{background:var(--cp-ai);border-color:var(--cp-ai);color:#fff}
.client-pricing button.cp-cta{font-family:inherit;cursor:pointer}
.client-pricing .cp-cta:disabled{opacity:.58;cursor:not-allowed}
.client-pricing .cp-setup-note{display:block;min-height:30px;color:var(--cp-muted);font-size:9.5px;line-height:1.45;text-align:center;margin:-11px 4px 15px;overflow-wrap:anywhere}
.client-pricing .cp-group-label{font-size:10px;font-weight:800;color:var(--cp-muted);letter-spacing:.105em;text-transform:uppercase;margin:2px 0 11px}
.client-pricing ul.cp-features{list-style:none;padding:0;margin:0 0 16px;display:grid;gap:9px}
.client-pricing ul.cp-features li{position:relative;display:block;min-width:0;padding-left:27px;color:var(--cp-text);font-size:12px;line-height:1.45;overflow-wrap:normal;word-break:normal}
.client-pricing ul.cp-features li::before{content:'✓';position:absolute;left:0;top:0;width:17px;height:17px;display:grid;place-items:center;border-radius:50%;background:color-mix(in srgb,var(--cp-ok) 15%,transparent);color:var(--cp-ok);font-size:10px;font-weight:900}
.client-pricing ul.cp-features li.off{color:var(--cp-no)}
.client-pricing ul.cp-features li.off::before{content:'×';background:color-mix(in srgb,var(--cp-no) 15%,transparent);color:var(--cp-no)}
.client-pricing .cp-feature-copy{display:block!important;min-width:0!important;text-align:left!important;word-spacing:normal!important;letter-spacing:normal!important;white-space:normal!important}
.client-pricing .cp-feature-copy.cp-feature-short{white-space:nowrap!important}
.client-pricing .cp-features b,.client-pricing .cp-features strong{display:inline!important;color:var(--cp-text);font-weight:800!important;white-space:inherit!important}
.client-pricing .cp-ai-callout{margin-top:auto;background:var(--cp-ai-soft);border-radius:12px;padding:13px;font-size:11px;line-height:1.5;color:var(--cp-text)}
.client-pricing .cp-ai-callout b{color:var(--cp-ai);font-weight:800}

.client-pricing .cp-compare{margin-top:58px}
.client-pricing h2.cp-title{font-size:25px;line-height:1.2;margin:0 0 7px;text-align:center;letter-spacing:-.025em;color:var(--cp-text)}
.client-pricing .cp-sub{text-align:center;color:var(--cp-muted);font-size:13px;margin:0 0 22px}
.client-pricing .cp-table-wrap{overflow-x:auto;background:var(--cp-panel);border:1px solid var(--cp-border);border-radius:16px;box-shadow:var(--cp-shadow)}
.client-pricing .cp-table{width:100%;border-collapse:collapse;min-width:760px;font-size:12px}
.client-pricing .cp-table th,.client-pricing .cp-table td{padding:13px 15px;text-align:center;border-bottom:1px solid var(--cp-border);color:var(--cp-text);line-height:1.35}
.client-pricing .cp-table th:first-child,.client-pricing .cp-table td:first-child{text-align:left;width:38%}
.client-pricing .cp-table thead th{font-size:10px;letter-spacing:.06em;text-transform:uppercase;color:var(--cp-muted);background:var(--cp-panel-alt)}
.client-pricing .cp-table tr.section td{background:var(--cp-panel-alt);font-weight:800;font-size:10px;letter-spacing:.1em;text-transform:uppercase;color:var(--cp-muted)}
.client-pricing .cp-y{color:var(--cp-ok)!important;font-weight:800}
.client-pricing .cp-n{color:var(--cp-no)!important}
.client-pricing .cp-faq{margin-top:44px;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.client-pricing .cp-faq-item{background:var(--cp-panel);border:1px solid var(--cp-border);border-radius:14px;padding:18px 20px;box-shadow:0 4px 15px rgba(15,27,45,.025)}
.client-pricing .cp-faq-item h3{margin:0 0 6px;font-size:13px;color:var(--cp-text)}
.client-pricing .cp-faq-item p{margin:0;color:var(--cp-muted);font-size:11.5px;line-height:1.55}
.client-pricing .cp-footer{text-align:center;color:var(--cp-muted);font-size:10.5px;margin-top:34px}
.client-pricing .cp-section-note{max-width:880px;margin:18px auto 0;color:var(--cp-muted);font-size:13px;text-align:center}
.client-pricing .cp-tile.selected-plan{outline:4px solid color-mix(in srgb,var(--cp-brand) 18%,transparent);outline-offset:4px}

.pricing-client-page{background:#f5f7fb;color:#0f1b2d;margin:0}
.pricing-client-page:not(.light){background:#0b1220;color:#e8eef8}
.pricing-client-topbar{height:64px;display:flex;align-items:center;justify-content:space-between;padding:0 max(18px,calc((100vw - 1280px)/2));border-bottom:1px solid #dfe6f0;background:rgba(255,255,255,.92);position:sticky;top:0;z-index:20;backdrop-filter:blur(14px)}
body:not(.light).pricing-client-page .pricing-client-topbar{border-color:#243250;background:rgba(11,18,32,.92)}
.pricing-client-brand{display:flex;gap:10px;align-items:center;text-decoration:none;color:inherit;font-weight:800}
.pricing-client-brand i{width:12px;height:12px;border-radius:4px;background:#1463ff;box-shadow:0 0 0 4px #e6efff}
.pricing-client-actions{display:flex;align-items:center;gap:10px}
.pricing-client-actions a,.pricing-client-actions button{font:inherit;border:1px solid #dfe6f0;background:#fff;color:#0f1b2d;border-radius:10px;padding:9px 14px;text-decoration:none;cursor:pointer}
.pricing-client-actions .primary{background:#1463ff;border-color:#1463ff;color:#fff}
body:not(.light).pricing-client-page .pricing-client-actions a,body:not(.light).pricing-client-page .pricing-client-actions button{background:#121b2e;color:#e8eef8;border-color:#243250}

@media(max-width:1180px){
  .client-pricing .cp-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .client-pricing .cp-tagline{min-height:42px}
}
@media(max-width:760px){
  .client-pricing .cp-wrap{padding:34px 14px 52px}
  .client-pricing .cp-header{margin-bottom:26px}
  .client-pricing .cp-billing{margin:22px 0 30px}
  .client-pricing .cp-faq{grid-template-columns:1fr}
  .pricing-client-topbar{padding:0 14px}
  .pricing-client-actions .hide-mobile{display:none}
  .client-pricing .cp-table th,.client-pricing .cp-table td{padding:12px}
}
@media(max-width:620px){
  .client-pricing .cp-grid{grid-template-columns:1fr}
  .client-pricing .cp-tile{padding:24px 20px}
  .client-pricing .cp-tagline,.client-pricing .cp-price-note{min-height:0}
  .client-pricing .cp-ribbon{font-size:9px}
  .client-pricing .cp-price .amt{font-size:38px}
}

/* v15.2 feature copy guard: keep short plan benefits on one clean line on desktop. */
@media (max-width:1180px){
  .client-pricing .cp-feature-copy.cp-feature-short{white-space:normal!important}
}

