/* STEP8C9_CONSOLE_UI_STABILIZE_V1 */

:root{
  --lcd9-header:#05090d;
  --lcd9-side:#08121b;
  --lcd9-side2:#101a24;
  --lcd9-page:#eef2f6;
  --lcd9-card:#ffffff;
  --lcd9-border:#d7dee6;
  --lcd9-text:#101820;
  --lcd9-muted:#697789;
  --lcd9-green:#16885a;
  --lcd9-amber:#a86c00;
  --lcd9-red:#c53b3b;
}

/* Remove artifacts created by 8C.8 frontend. */
#lcd88SidebarCap,#lcd87SideTopPatch{display:none!important}

/* LOGIN: no fake sidebar/header artifacts. */
body.lcd9-login #lcd88SidebarCap,
body.lcd9-login #lcd87SideTopPatch,
body.lcd9-login #lcd89SettingsPage{display:none!important}

/* APP SHELL */
.lcd9-sidebar{
  top:0!important;
  margin-top:0!important;
  height:100vh!important;
  min-height:100vh!important;
  overflow-y:auto!important;
  overflow-x:hidden!important;
  background:var(--lcd9-side)!important;
  border-right:1px solid #17232e!important;
  color:#fff!important;
  box-sizing:border-box!important;
}
.lcd9-sidebar-brand{
  position:sticky!important;
  top:0!important;
  z-index:30!important;
  background:var(--lcd9-side)!important;
  padding-top:14px!important;
  padding-bottom:14px!important;
}
.lcd9-sidebar .lcd9-nav-row{
  background:#101923!important;
  color:#f6f8fa!important;
  border:1px solid transparent!important;
  box-shadow:none!important;
}
.lcd9-sidebar .lcd9-nav-row:hover{
  background:#18232d!important;
}
.lcd9-sidebar .lcd9-nav-row.lcd9-active{
  background:#222d37!important;
  border-color:#4f5a65!important;
  box-shadow:inset 3px 0 0 #fff!important;
}
.lcd9-sidebar .lcd9-nav-row *{color:inherit!important}

/* One exact header concept across all pages */
.lcd9-header{
  min-height:82px!important;
  height:82px!important;
  margin:0!important;
  padding:0 34px!important;
  box-sizing:border-box!important;
  display:flex!important;
  align-items:center!important;
  background:var(--lcd9-header)!important;
  border-bottom:1px solid #18222c!important;
  color:#fff!important;
  overflow:hidden!important;
}
.lcd9-header h1,.lcd9-header h2,.lcd9-header h3,
.lcd9-header strong,.lcd9-header b{color:#fff!important}
.lcd9-header button{
  background:#111a23!important;
  border-color:#222f3b!important;
  color:#fff!important;
}

/* Native main content: keep it light. */
.lcd9-main{
  background:var(--lcd9-page)!important;
  color:var(--lcd9-text)!important;
}

/* Hide only menu entry, do not delete monitoring backend. */
.lcd9-hidden-monitor{display:none!important}

/* OVERLAY BASE: Supplier / Report / suite pages always below native header. */
#lcd82Overlay{
  background:var(--lcd9-page)!important;
  color:var(--lcd9-text)!important;
  overflow:auto!important;
}
#lcd82Overlay .lcd82-top{display:none!important}
#lcd82Overlay .lcd82-body{padding:24px 28px 50px!important}

/* SUPPLIER: smaller, light, black-white, no blue decoration. */
#lcd82Overlay.lcd87-supplier-mode{
  background:var(--lcd9-page)!important;
  color:var(--lcd9-text)!important;
}
#lcd82Overlay.lcd87-supplier-mode .lcd82-title h2,
#lcd82Overlay.lcd87-supplier-mode .lcd82-provider h3,
#lcd82Overlay.lcd87-supplier-mode .lcd82-card h3{
  color:var(--lcd9-text)!important;
}
#lcd82Overlay.lcd87-supplier-mode .lcd82-title p,
#lcd82Overlay.lcd87-supplier-mode .lcd82-meta,
#lcd82Overlay.lcd87-supplier-mode .lcd82-muted,
#lcd82Overlay.lcd87-supplier-mode .lcd82-small{
  color:var(--lcd9-muted)!important;
}
#lcd82Overlay.lcd87-supplier-mode .lcd82-card,
#lcd82Overlay.lcd87-supplier-mode .lcd82-provider{
  background:var(--lcd9-card)!important;
  border:1px solid var(--lcd9-border)!important;
  box-shadow:0 8px 22px rgba(20,30,40,.06)!important;
  color:var(--lcd9-text)!important;
}
#lcd82Overlay.lcd87-supplier-mode .lcd82-provider{
  min-height:230px!important;
  padding:16px!important;
  border-radius:13px!important;
}
#lcd82Overlay.lcd87-supplier-mode .lcd82-provider:before{
  width:3px!important;
  background:#2c333a!important;
}
#lcd82Overlay.lcd87-supplier-mode .lcd82-provider.low:before{
  background:var(--lcd9-amber)!important;
}
#lcd82Overlay.lcd87-supplier-mode .lcd82-provider h3{
  font-size:21px!important;
  margin:5px 0 8px!important;
}
#lcd82Overlay.lcd87-supplier-mode .lcd82-btn{
  padding:8px 11px!important;
  border-radius:8px!important;
  font-size:12px!important;
  background:#121920!important;
  border:1px solid #121920!important;
  color:#fff!important;
  box-shadow:none!important;
}
#lcd82Overlay.lcd87-supplier-mode .lcd82-btn:hover{
  background:#252e37!important;
}
#lcd82Overlay.lcd87-supplier-mode .lcd82-btn:not(.alt){
  background:#121920!important;
  border-color:#121920!important;
}
#lcd82Overlay.lcd87-supplier-mode .lcd82-stat{
  background:#fff!important;
  color:var(--lcd9-text)!important;
  border:1px solid var(--lcd9-border)!important;
  border-top:3px solid #20272e!important;
  min-height:82px!important;
}
#lcd82Overlay.lcd87-supplier-mode .lcd82-stat strong{color:var(--lcd9-text)!important}
#lcd82Overlay.lcd87-supplier-mode .lcd82-stat small{color:var(--lcd9-muted)!important}
#lcd82Overlay.lcd87-supplier-mode .lcd82-alert{
  background:#fff!important;
  color:#394553!important;
  border:1px solid var(--lcd9-border)!important;
}
#lcd82Overlay.lcd87-supplier-mode .lcd82-alert.warn{
  background:#fff8e8!important;
  color:#735018!important;
  border-color:#e8cf96!important;
}
#lcd82Overlay.lcd87-supplier-mode .lcd82-table,
#lcd82Overlay.lcd87-supplier-mode .lcd82-tw{
  background:#fff!important;
  color:var(--lcd9-text)!important;
  border-color:var(--lcd9-border)!important;
}
#lcd82Overlay.lcd87-supplier-mode .lcd82-table th{
  background:#f4f6f8!important;
  color:#556372!important;
  border-color:var(--lcd9-border)!important;
}
#lcd82Overlay.lcd87-supplier-mode .lcd82-table td{
  border-color:#e3e8ee!important;
}

/* REPORT: light dashboard, black-white, semantic status only. */
#lcd82Overlay.lcd87-report-mode{
  background:var(--lcd9-page)!important;
  color:var(--lcd9-text)!important;
}
#lcd82Overlay.lcd87-report-mode .lcd87-report-head h2,
#lcd82Overlay.lcd87-report-mode .lcd87-panel-head h3,
#lcd82Overlay.lcd87-report-mode .lcd87-kpi strong,
#lcd82Overlay.lcd87-report-mode .lcd87-big-value{
  color:var(--lcd9-text)!important;
}
#lcd82Overlay.lcd87-report-mode .lcd87-report-head p,
#lcd82Overlay.lcd87-report-mode .lcd87-panel-head p,
#lcd82Overlay.lcd87-report-mode .lcd87-muted,
#lcd82Overlay.lcd87-report-mode .lcd87-kpi small,
#lcd82Overlay.lcd87-report-mode .lcd87-kpi .sub{
  color:var(--lcd9-muted)!important;
}
#lcd82Overlay.lcd87-report-mode .lcd87-toolbar,
#lcd82Overlay.lcd87-report-mode .lcd87-panel,
#lcd82Overlay.lcd87-report-mode .lcd87-kpi{
  background:#fff!important;
  border:1px solid var(--lcd9-border)!important;
  color:var(--lcd9-text)!important;
  box-shadow:0 6px 18px rgba(20,30,40,.04)!important;
}
#lcd82Overlay.lcd87-report-mode .lcd87-control{
  background:#f6f8fa!important;
  color:#222c35!important;
  border-color:#d7dee6!important;
}
#lcd82Overlay.lcd87-report-mode .lcd87-mini-btn{
  background:#111820!important;
  color:#fff!important;
  border:1px solid #111820!important;
}
#lcd82Overlay.lcd87-report-mode .lcd87-blue,
#lcd82Overlay.lcd87-report-mode .lcd87-purple,
#lcd82Overlay.lcd87-report-mode .lcd87-cyan{
  background:#e9edf1!important;
  color:#1b232b!important;
}
#lcd82Overlay.lcd87-report-mode .lcd87-green{
  background:#e8f5ef!important;color:var(--lcd9-green)!important
}
#lcd82Overlay.lcd87-report-mode .lcd87-amber{
  background:#fff3da!important;color:var(--lcd9-amber)!important
}
#lcd82Overlay.lcd87-report-mode .lcd87-red{
  background:#fdeaea!important;color:var(--lcd9-red)!important
}
#lcd82Overlay.lcd87-report-mode .lcd87-kpis{
  grid-template-columns:repeat(4,minmax(0,1fr))!important;
  gap:12px!important;
}
#lcd82Overlay.lcd87-report-mode .lcd87-kpi{
  min-width:0!important;
  overflow:hidden!important;
  min-height:94px!important;
}
#lcd82Overlay.lcd87-report-mode .lcd87-kpi>div:last-child{
  min-width:0!important;
  width:100%!important;
}
#lcd82Overlay.lcd87-report-mode .lcd87-kpi strong{
  display:block!important;
  max-width:100%!important;
  white-space:nowrap!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
  font-size:clamp(16px,1.45vw,23px)!important;
}
#lcd82Overlay.lcd87-report-mode .lcd87-table-wrap{
  border-color:var(--lcd9-border)!important;
  overflow:hidden!important;
}
#lcd82Overlay.lcd87-report-mode .lcd87-panel .lcd87-table{
  min-width:100%!important;
  width:100%!important;
  table-layout:fixed!important;
}
#lcd82Overlay.lcd87-report-mode .lcd87-panel .lcd87-table th,
#lcd82Overlay.lcd87-report-mode .lcd87-panel .lcd87-table td{
  background:#fff!important;
  color:#27323c!important;
  border-color:#e1e6eb!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
  white-space:nowrap!important;
}
#lcd82Overlay.lcd87-report-mode .lcd87-panel .lcd87-table th{
  background:#f4f6f8!important;
  color:#687687!important;
}
#lcd82Overlay.lcd87-report-mode .lcd87-flow-box{
  background:#f6f8fa!important;
}
#lcd82Overlay.lcd87-report-mode .lcd87-flow-box strong{color:var(--lcd9-text)!important}
#lcd82Overlay.lcd87-report-mode .lcd87-simple-row{
  border-color:#e2e7ec!important;
}
#lcd82Overlay.lcd87-report-mode .lcd87-simple-row span{color:var(--lcd9-muted)!important}
#lcd82Overlay.lcd87-report-mode .lcd87-simple-row b{color:var(--lcd9-text)!important}
#lcd82Overlay.lcd87-report-mode .lcd87-chart rect{fill:#303942!important}
#lcd82Overlay.lcd87-report-mode .lcd87-chart text{fill:#7c8996!important}
#lcd82Overlay.lcd87-report-mode .lcd87-chart line{stroke:#dfe4e9!important}

/* Modal detail remains readable. */
#lcd87ReportModal .lcd87-modalbox{
  background:#fff!important;color:var(--lcd9-text)!important;border-color:var(--lcd9-border)!important
}
#lcd87ReportModal .lcd87-modalhead{
  background:#0a0f14!important;color:#fff!important
}
#lcd87ReportModal .lcd87-modalbody .lcd87-table{
  min-width:900px!important;
  table-layout:auto!important;
}
#lcd87ReportModal .lcd87-modalbody .lcd87-table th{
  background:#f4f6f8!important;color:#5e6b78!important
}
#lcd87ReportModal .lcd87-modalbody .lcd87-table td{
  color:#26313b!important;background:#fff!important
}

/* Settings page */
#lcd89SettingsPage{
  position:fixed;
  display:none;
  overflow:auto;
  z-index:80;
  background:var(--lcd9-page);
  color:var(--lcd9-text);
  padding:28px 30px 60px;
  box-sizing:border-box;
}
#lcd89SettingsPage.on{display:block}
.lcd9-settings{max-width:1180px;margin:0 auto}
.lcd9-settings-head{margin-bottom:18px}
.lcd9-settings-head h2{margin:0;color:var(--lcd9-text);font-size:28px}
.lcd9-settings-head p{margin:6px 0 0;color:var(--lcd9-muted)}
.lcd9-settings-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px}
.lcd9-settings-card{
  background:#fff;border:1px solid var(--lcd9-border);border-radius:14px;padding:20px;
  box-shadow:0 6px 18px rgba(20,30,40,.04)
}
.lcd9-settings-card.full{grid-column:1/-1}
.lcd9-settings-card h3{margin:0 0 5px;color:var(--lcd9-text)}
.lcd9-settings-card p{margin:0 0 14px;color:var(--lcd9-muted);font-size:12px}
.lcd9-field{margin:12px 0}
.lcd9-field label{display:block;margin-bottom:6px;font-size:11px;font-weight:800;color:#52606e}
.lcd9-field input{
  width:100%;box-sizing:border-box;padding:11px 12px;border:1px solid #cbd4dd;
  border-radius:9px;background:#fff;color:#111820;outline:none
}
.lcd9-field input:focus{border-color:#333e48;box-shadow:0 0 0 3px rgba(20,30,40,.08)}
.lcd9-status{
  padding:11px 12px;border:1px solid var(--lcd9-border);border-radius:9px;
  background:#f6f8fa;color:#33404c;font-size:12px
}
.lcd9-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:12px}
.lcd9-btn{
  border:1px solid #141b22;border-radius:8px;padding:10px 14px;
  background:#141b22;color:#fff;font-weight:800;cursor:pointer
}
.lcd9-btn:hover{background:#2a333c}
.lcd9-btn.light{background:#fff;color:#1d2730;border-color:#cbd4dd}
.lcd9-btn.danger{background:#fff;color:#a93434;border-color:#d7abab}
.lcd9-note{font-size:11px;color:#697789;margin-top:8px}
.lcd9-ok{color:var(--lcd9-green)!important}.lcd9-warn{color:var(--lcd9-amber)!important}
.lcd9-secret{font-family:monospace;letter-spacing:.08em;word-break:break-all}
#lcd9Qr{display:inline-block;background:#fff;padding:10px;border:1px solid #d8dfe6;border-radius:10px;margin-top:10px}

/* TOTP login guard modal */
#lcd9TotpModal{
  position:fixed;inset:0;z-index:200000;display:none;align-items:center;justify-content:center;
  background:rgba(0,0,0,.68);padding:20px
}
#lcd9TotpModal.on{display:flex}
.lcd9-totpbox{
  width:min(420px,94vw);background:#fff;color:#111820;border-radius:14px;
  border:1px solid #d5dde5;padding:20px;box-shadow:0 25px 70px rgba(0,0,0,.28)
}
.lcd9-totpbox h3{margin:0 0 6px}.lcd9-totpbox p{color:#6d7a87;font-size:12px}
.lcd9-totpbox input{
  width:100%;box-sizing:border-box;padding:13px;text-align:center;letter-spacing:.32em;
  font-size:22px;border-radius:9px;border:1px solid #c9d2db;background:#fff;color:#111820;margin:10px 0
}
.lcd9-totp-actions{display:flex;justify-content:flex-end;gap:8px}

/* IRS 8C.5 modal stays readable. */
#lcd85Modal .lcd85-box{background:#fff!important;color:#111820!important}
#lcd85Modal .lcd85-head{background:#080d12!important}
#lcd85Modal .lcd85-input{background:#fff!important;color:#111820!important}

/* Generic anti-overflow */
#lcd82Overlay *,#lcd89SettingsPage *{box-sizing:border-box}
#lcd82Overlay .lcd82-card,#lcd82Overlay .lcd87-panel,#lcd82Overlay .lcd87-kpi{min-width:0!important}

@media(max-width:1200px){
  #lcd82Overlay.lcd87-report-mode .lcd87-kpis{grid-template-columns:repeat(2,minmax(0,1fr))!important}
}
@media(max-width:800px){
  .lcd9-settings-grid{grid-template-columns:1fr}
  .lcd9-settings-card.full{grid-column:auto}
  #lcd82Overlay.lcd87-report-mode .lcd87-kpis{grid-template-columns:1fr!important}
}

/* =========================================================
   CONSOLE UNIFIED STRUCTURAL LAYER V1
   One native shell, one header and regular in-flow pages.
   ========================================================= */
html,body{margin:0!important;padding:0!important;background:var(--lcd9-page)!important}
#dashboardPage.hidden{display:none!important}
#dashboardPage{
  margin:0!important;padding:0!important;display:grid!important;
  grid-template-columns:280px minmax(0,1fr)!important;align-items:start!important
}

/* =========================================================
   STEP 8F — MEMBER DEVICE SECURITY
   ========================================================= */
.member-device-btn{
  min-height:30px;padding:6px 10px;border:1px solid #cbd5df;border-radius:7px;
  background:#fff;color:#17222c;font-size:10px;font-weight:800;cursor:pointer
}
.member-device-btn:hover{background:#f2f5f7;border-color:#9eabb7}
.lcd8f-device-modal{
  position:fixed;inset:0;z-index:12000;display:none;align-items:center;justify-content:center;
  padding:22px;background:rgba(4,9,14,.76);box-sizing:border-box
}
.lcd8f-device-modal.on{display:flex}
.lcd8f-device-dialog{
  width:min(920px,100%);max-height:calc(100vh - 44px);overflow:auto;background:#f3f6f8;
  border:1px solid #53606c;border-radius:15px;box-shadow:0 24px 70px rgba(0,0,0,.32)
}
.lcd8f-device-head{
  position:sticky;top:0;z-index:2;display:flex;align-items:center;justify-content:space-between;
  gap:14px;padding:14px 17px;background:#080d12;color:#fff;border-bottom:1px solid #28323b
}
.lcd8f-device-head small{display:block;color:#8fa1b2;font-size:9px;font-weight:900;letter-spacing:.1em}
.lcd8f-device-head h3{margin:3px 0 0;font-size:17px;color:#fff}
.lcd8f-device-close{width:34px;height:34px;border:1px solid #394550;border-radius:8px;background:#151e27;color:#fff;font-size:20px;cursor:pointer}
.lcd8f-device-body{padding:16px}
.lcd8f-device-issue{
  display:grid;grid-template-columns:170px minmax(220px,1fr) auto;gap:9px;align-items:end;
  padding:13px;border:1px solid #d5dde4;border-radius:11px;background:#fff
}
.lcd8f-device-field{display:flex;flex-direction:column;gap:5px;color:#536170;font-size:10px;font-weight:800}
.lcd8f-device-field input,.lcd8f-device-field select{
  min-height:36px;padding:7px 9px;border:1px solid #cbd5df;border-radius:7px;background:#fff;color:#101820
}
.lcd8f-device-primary,.lcd8f-device-secondary,.lcd8f-device-danger{
  min-height:34px;padding:7px 11px;border-radius:7px;font-size:10px;font-weight:900;cursor:pointer
}
.lcd8f-device-primary{border:1px solid #111a22;background:#111a22;color:#fff}
.lcd8f-device-secondary{border:1px solid #c7d1da;background:#fff;color:#18232d}
.lcd8f-device-danger{border:1px solid #e3b7b7;background:#fff4f4;color:#a32626}
.lcd8f-device-note{margin:11px 0;padding:10px 12px;border:1px solid #d5dde4;border-radius:9px;background:#edf2f5;color:#556473;font-size:11px}
.lcd8f-device-credential{margin:12px 0;padding:13px;border:1px solid #e4bf65;border-radius:11px;background:#fff9e9}
.lcd8f-device-credential.hidden{display:none!important}
.lcd8f-device-credential h4{margin:0 0 4px;color:#442f00;font-size:14px}
.lcd8f-device-credential p{margin:0 0 10px;color:#72540b;font-size:11px}
.lcd8f-secret-row{display:grid;grid-template-columns:95px minmax(0,1fr) auto;gap:7px;align-items:center;margin-top:7px}
.lcd8f-secret-row span{font-size:9px;font-weight:900;color:#72540b}
.lcd8f-secret-row code{padding:8px;border:1px solid #ebd58f;border-radius:6px;background:#fff;color:#202830;overflow-wrap:anywhere;font-size:10px}
.lcd8f-device-table-wrap{margin-top:12px;overflow:auto;border:1px solid #d5dde4;border-radius:11px;background:#fff}
.lcd8f-device-table{width:100%;border-collapse:collapse;font-size:11px}
.lcd8f-device-table th{padding:9px 10px;background:#edf2f5;color:#647282;text-align:left;font-size:9px;letter-spacing:.07em;text-transform:uppercase}
.lcd8f-device-table td{padding:10px;border-top:1px solid #e4e9ed;color:#27333e;vertical-align:middle}
.lcd8f-device-actions{display:flex;gap:5px;flex-wrap:wrap}
.lcd8f-device-status{display:inline-flex;padding:4px 7px;border-radius:999px;background:#e7f6ef;color:#14704c;font-size:9px;font-weight:900}
.lcd8f-device-status.revoked{background:#f1f2f3;color:#6b7580}
.lcd8f-device-empty{padding:24px;text-align:center;color:#6f7c89}
.lcd8f-device-message{margin-top:10px;padding:9px 11px;border-radius:8px;background:#e7f6ef;color:#146744;font-size:11px}
.lcd8f-device-message.error{background:#fff0f0;color:#a32626}
@media(max-width:760px){
  .lcd8f-device-issue{grid-template-columns:1fr}
  .lcd8f-secret-row{grid-template-columns:1fr}
}
#dashboardPage .lcd9-sidebar{
  position:sticky!important;inset:auto!important;top:0!important;width:auto!important
}
#dashboardPage .lcd9-main{
  margin-left:0!important;min-width:0!important;min-height:100vh!important;
  overflow:visible!important
}
#dashboardPage .lcd9-header{
  position:sticky!important;top:0!important;z-index:50!important;width:100%!important
}
.console-unified-page{
  min-height:calc(100vh - 82px);box-sizing:border-box;
  background:var(--lcd9-page);color:var(--lcd9-text)
}
#lcd82Overlay,#lcdConsoleSuite,#lcd89SettingsPage{
  position:static!important;inset:auto!important;top:auto!important;right:auto!important;
  bottom:auto!important;left:auto!important;width:auto!important;height:auto!important;
  min-height:calc(100vh - 82px)!important;z-index:auto!important;overflow:visible!important;
  background:var(--lcd9-page)!important;color:var(--lcd9-text)!important;
  box-sizing:border-box!important;display:none!important
}
#lcd82Overlay.on,#lcdConsoleSuite.visible,#lcd89SettingsPage.on{display:block!important}
#lcd82Overlay .lcd82-body,#lcdConsoleSuite .lcd-suite-body,#lcd89SettingsPage{
  padding:24px 28px 50px!important;box-sizing:border-box!important
}
#lcd82Overlay .lcd82-top,#lcdConsoleSuite .lcd-suite-top,#lcdConsoleSuite .lcd-suite-close{
  display:none!important
}

/* Suite pages: namespaced light content without global shell selectors. */
#lcdConsoleSuite .lcd-suite-body{max-width:none}
#lcdConsoleSuite .lcd-suite-eyebrow{
  font-size:10px;letter-spacing:.12em;text-transform:uppercase;font-weight:900
}
#lcdConsoleSuite .lcd-section-title{
  display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin-bottom:18px
}
#lcdConsoleSuite .lcd-section-title h2{margin:4px 0 6px;color:var(--lcd9-text)}
#lcdConsoleSuite .lcd-muted{color:var(--lcd9-muted)}
#lcdConsoleSuite .lcd-small{font-size:11px}
#lcdConsoleSuite .lcd-strong{font-weight:900}
#lcdConsoleSuite .lcd-grid{display:grid;gap:14px}
#lcdConsoleSuite .lcd-grid-4{grid-template-columns:repeat(4,minmax(0,1fr))}
#lcdConsoleSuite .lcd-grid-3{grid-template-columns:repeat(3,minmax(0,1fr))}
#lcdConsoleSuite .lcd-grid-2{grid-template-columns:repeat(2,minmax(0,1fr))}
#lcdConsoleSuite .lcd-card{
  min-width:0;padding:18px;border:1px solid var(--lcd9-border);border-radius:14px;
  background:#fff;color:var(--lcd9-text);box-shadow:0 6px 18px rgba(20,30,40,.04)
}
#lcdConsoleSuite .lcd-stat-label{
  color:var(--lcd9-muted);font-size:10px;font-weight:900;
  letter-spacing:.06em;text-transform:uppercase
}
#lcdConsoleSuite .lcd-stat-value{
  margin-top:7px;overflow-wrap:anywhere;color:var(--lcd9-text);
  font-size:22px;font-weight:900
}
#lcdConsoleSuite .lcd-toolbar{
  display:grid;grid-template-columns:1.6fr 1fr 1fr;gap:10px;margin-bottom:14px
}
#lcdConsoleSuite .lcd-bulk{
  display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-bottom:14px;
  padding:14px;border:1px solid var(--lcd9-border);border-radius:12px;background:#fff
}
#lcdConsoleSuite input,#lcdConsoleSuite select,
#lcdConsoleSuite .lcd-input,#lcdConsoleSuite .lcd-select{
  width:100%;padding:10px 11px;border:1px solid #cbd5df;border-radius:9px;
  background:#fff;color:var(--lcd9-text);box-sizing:border-box
}
#lcdConsoleSuite .lcd-btn{
  width:auto;padding:10px 13px;border:1px solid #111820;border-radius:9px;
  background:#111820;color:#fff;font-weight:850;cursor:pointer
}
#lcdConsoleSuite .lcd-btn.secondary{
  border-color:#cbd5df;background:#fff;color:#111820
}
#lcdConsoleSuite .lcd-table-wrap{
  max-width:100%;overflow:auto;border:1px solid var(--lcd9-border);
  border-radius:12px;background:#fff
}
#lcdConsoleSuite .lcd-table{width:100%;min-width:760px;border-collapse:collapse}
#lcdConsoleSuite .lcd-table th,#lcdConsoleSuite .lcd-table td{
  padding:11px 12px;border-bottom:1px solid #e7ebef;text-align:left;
  vertical-align:top;color:#26313b
}
#lcdConsoleSuite .lcd-table th{
  background:#f4f6f8;color:#5e6b78;font-size:10px;
  letter-spacing:.05em;text-transform:uppercase
}
#lcdConsoleSuite .lcd-alert{
  margin-top:12px;padding:11px 13px;border:1px solid #d9e1e8;
  border-radius:10px;background:#f7f9fb;color:#34414e
}
#lcdConsoleSuite .lcd-alert.success{border-color:#9bd8be;background:#edf9f3;color:#146b48}
#lcdConsoleSuite .lcd-alert.error{border-color:#e5abab;background:#fff1f1;color:#9a2828}
#lcdConsoleSuite .lcd-pre{
  max-height:440px;overflow:auto;padding:12px;border-radius:10px;
  background:#111820;color:#dfe7ef;font:11px/1.55 Consolas,monospace;
  white-space:pre-wrap;overflow-wrap:anywhere
}
#lcdConsoleSuite .lcd-badge{
  display:inline-flex;padding:5px 8px;border-radius:999px;
  background:#eef2f6;font-size:10px;font-weight:900
}
#lcdConsoleSuite .lcd-badge.ok{background:#e4f7ef;color:#08734e}
#lcdConsoleSuite .lcd-badge.warn{background:#fff0d2;color:#8b5700}
#lcdConsoleSuite .lcd-badge.err{background:#fde8e8;color:#a12626}
#lcd82ProductAddon{max-width:calc(100% - 56px);margin:18px 28px 28px!important}
#lcdLiveMonitorNav,.lcd-monitor-nav-link{display:none!important}

@media(max-width:1000px){
  #lcdConsoleSuite .lcd-grid-4{grid-template-columns:repeat(2,minmax(0,1fr))}
  #lcdConsoleSuite .lcd-grid-3{grid-template-columns:1fr}
}
@media(max-width:760px){
  #dashboardPage{grid-template-columns:1fr!important}
  #dashboardPage .lcd9-sidebar{
    position:relative!important;width:100%!important;height:auto!important;min-height:0!important
  }
  #dashboardPage .lcd9-main{margin-left:0!important}
  #lcd82Overlay .lcd82-body,#lcdConsoleSuite .lcd-suite-body,#lcd89SettingsPage{
    padding:18px 14px 40px!important
  }
  #lcdConsoleSuite .lcd-grid-4,#lcdConsoleSuite .lcd-grid-2,
  #lcdConsoleSuite .lcd-toolbar{grid-template-columns:1fr}
  #lcd82ProductAddon{max-width:none;margin:16px 14px 24px!important}
}

/* =========================================================
   CONSOLE UNIFIED VISUAL LOCK V2
   Preserve the health Overview; neutralize non-semantic color.
   ========================================================= */
#dashboardPage .brand-badge.small{
  background:#f6f8fa!important;color:#0a1016!important;
  border:1px solid #cfd6dd!important;box-shadow:none!important
}
#dashboardPage .lcd9-sidebar .lcd9-nav-row.active,
#dashboardPage .lcd9-sidebar .lcd9-nav-row.lcd9-active{
  background:#222d37!important;color:#fff!important;
  border-color:#4f5a65!important;box-shadow:inset 3px 0 0 #fff!important
}

/* The monitor remains part of Overview, but has no separate navigation. */
#lcdLiveMonitorNav,.lcd-monitor-nav-link,.lcd-v25-open{display:none!important}
#overviewContent .lcd-v25-hero-actions{justify-content:flex-end!important}
#overviewContent .lcd-v25-card.blue .lcd-v25-icon,
#overviewContent .lcd-v25-card.purple .lcd-v25-icon,
#overviewContent .lcd-v25-card.cyan .lcd-v25-icon,
#overviewContent .lcd-v25-card.orange .lcd-v25-icon{
  background:#272e35!important;color:#c7cfd7!important
}
#overviewContent .lcd-v25-card.green .lcd-v25-icon,
#overviewContent .lcd-v25-card.security .lcd-v25-icon{
  background:#17352a!important;color:#44d391!important
}
#overviewContent .eyebrow{color:#303942!important}
#overviewContent .flow-box{
  background:#f7f8fa!important;border-color:#d4dbe2!important;color:#111820!important
}
#overviewContent .flow-box.main-flow{
  background:#eef1f4!important;border-color:#909ba6!important
}
#overviewContent .flow-box span,#overviewContent .flow-arrow{color:#6e7a86!important}

/* All native page hero/header blocks use the same black-white language. */
#productsContent .products-hero,
#pricingContent .pricing-hero,
#membersContent .members-hero,
#balanceContent .balance-hero,
#transactionsContent .transaction-hero{
  background:#090e14!important;color:#fff!important;
  border:1px solid #202a34!important;box-shadow:none!important
}
#productsContent .products-hero .eyebrow,
#pricingContent .pricing-hero .eyebrow,
#membersContent .members-hero .eyebrow,
#balanceContent .balance-hero .eyebrow,
#transactionsContent .transaction-hero .eyebrow{
  color:#aeb8c2!important
}
#productsContent .products-hero h2,
#pricingContent .pricing-hero h2,
#membersContent .members-hero h2,
#balanceContent .balance-hero h2,
#transactionsContent .transaction-hero h2{
  color:#fff!important
}
#productsContent .products-hero p,
#pricingContent .pricing-hero p,
#membersContent .members-hero p,
#balanceContent .balance-hero p,
#transactionsContent .transaction-hero p{
  color:#b8c1ca!important
}
#productsContent .product-add-btn,
#pricingContent .primary-action,
#membersContent .primary-action,
#balanceContent .primary-action,
#transactionsContent .primary-action{
  background:#252e37!important;color:#fff!important;border-color:#4a5662!important;
  box-shadow:none!important
}

/* Page headings and decorative labels are grayscale; status colors remain semantic. */
#lcd82Overlay .lcd82-kicker,
#lcd82Overlay .lcd87-kicker,
#lcdConsoleSuite .lcd-suite-eyebrow,
#lcdConsoleSuite .lcd-eyebrow,
#lcd89SettingsPage .lcd9-kicker,
#productsContent > :not(.products-hero) .eyebrow,
#membersContent > :not(.members-hero) .eyebrow,
#balanceContent > :not(.balance-hero) .eyebrow,
#transactionsContent > :not(.transaction-hero) .eyebrow{
  color:#5f6b77!important
}
#lcd82Overlay .lcd82-title,
#lcd82Overlay .lcd87-report-head,
#lcdConsoleSuite .lcd-section-title,
#lcd89SettingsPage .lcd9-settings-head{
  border-color:#d7dee6!important
}

/* =========================================================
   STEP 8D / CONSOLE EXPERIENCE V3
   ========================================================= */
.brand-badge img,
.brand-badge.small img{
  display:block;width:100%;height:100%;object-fit:contain
}
#dashboardPage .brand-badge.small{
  padding:5px!important;overflow:hidden!important
}
.lcd9-avatar-photo{color:transparent!important;overflow:hidden!important}
.lcd9-brand-preview{
  width:112px;height:112px;padding:10px;display:flex;align-items:center;justify-content:center;
  border:1px solid var(--lcd9-border);border-radius:16px;background:#f6f8fa;overflow:hidden
}
.lcd9-brand-preview img{display:block;width:100%;height:100%;object-fit:contain}
.lcd9-profile-preview{
  width:112px;height:112px;display:flex;align-items:center;justify-content:center;overflow:hidden;
  border:1px solid var(--lcd9-border);border-radius:50%;background:#e8eef5;color:#142235;
  font-size:34px;font-weight:900
}
.lcd9-profile-preview img{display:block;width:100%;height:100%;object-fit:cover}
.lcd9-field input[type="file"]{padding:8px;background:#f8fafc}

.lcd3-header-left{
  display:flex;align-items:center;min-width:0
}
.lcd3-sidebar-toggle{
  flex:0 0 38px;width:38px;height:38px;padding:9px;
  display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;
  border:1px solid #35414c;border-radius:9px;background:#151e27;color:#fff;
  cursor:pointer;box-shadow:none
}
.lcd3-sidebar-toggle:hover{background:#26313b!important;border-color:#596673!important}
.lcd3-sidebar-toggle span{
  display:block;width:17px;height:2px;border-radius:2px;background:#fff
}
.lcd9-sidebar-brand .lcd3-sidebar-toggle{margin-left:auto}
.lcd3-header-left .lcd3-sidebar-toggle{margin-right:15px}

#dashboardPage.lcd3-sidebar-collapsed{
  grid-template-columns:0 minmax(0,1fr)!important
}
#dashboardPage.lcd3-sidebar-collapsed .lcd9-sidebar{
  width:0!important;min-width:0!important;padding-left:0!important;padding-right:0!important;
  border-right:0!important;overflow:hidden!important;visibility:hidden!important;
  pointer-events:none!important
}
#dashboardPage.lcd3-sidebar-collapsed .lcd9-main{
  width:100%!important;max-width:none!important
}

.transaction-failed-card{
  border-top:3px solid var(--lcd9-red)!important
}
.transaction-failed-card strong{color:var(--lcd9-red)!important}
@media(min-width:1251px){
  #transactionsContent .transaction-stats{grid-template-columns:repeat(5,minmax(0,1fr))!important}
}
@media(min-width:1051px) and (max-width:1250px){
  #transactionsContent .transaction-stats{grid-template-columns:repeat(3,minmax(0,1fr))!important}
}

/* =========================================================
   STEP 8E — COMPACT SERVER CONSOLE
   The native topbar is the only page header. Secondary hero
   blocks become small utility bars without duplicate titles.
   ========================================================= */
#productsContent .products-hero,
#membersContent .members-hero,
#balanceContent .balance-hero,
#transactionsContent .transaction-hero{
  min-height:0!important;margin:0 0 14px!important;padding:11px 14px!important;
  display:flex!important;align-items:center!important;gap:12px!important;
  background:#fff!important;color:var(--lcd9-text)!important;
  border:1px solid var(--lcd9-border)!important;border-radius:11px!important;
  box-shadow:0 4px 14px rgba(20,30,40,.04)!important
}
#productsContent .products-hero .eyebrow,
#productsContent .products-hero h2,
#membersContent .members-hero .eyebrow,
#membersContent .members-hero h2,
#balanceContent .balance-hero .eyebrow,
#balanceContent .balance-hero h2,
#transactionsContent .transaction-hero .eyebrow,
#transactionsContent .transaction-hero h2{display:none!important}
#productsContent .products-hero p,
#membersContent .members-hero p,
#balanceContent .balance-hero p,
#transactionsContent .transaction-hero p{
  margin:0!important;color:#5f6d7b!important;font-size:12px!important;line-height:1.45!important
}
#productsContent .product-add-btn,
#membersContent .members-hero .primary-action,
#balanceContent .balance-hero .primary-action{
  min-height:34px!important;padding:7px 12px!important;border-radius:8px!important;
  background:#171f27!important;color:#fff!important;border:1px solid #171f27!important;
  font-size:12px!important;white-space:nowrap!important
}
#transactionsContent .transaction-live{
  min-height:30px!important;padding:6px 10px!important;border-radius:999px!important;
  color:#1c2a35!important;background:#f4f7f9!important;border:1px solid #d6dee5!important;
  font-size:10px!important;white-space:nowrap!important
}

/* Dynamic suite pages also use the native topbar as their only title. */
#lcdConsoleSuite .lcd-section-title{
  min-height:0!important;margin:0 0 14px!important;padding:10px 12px!important;
  border:1px solid var(--lcd9-border)!important;border-radius:11px!important;background:#fff!important
}
#lcdConsoleSuite .lcd-section-title h2,
#lcdConsoleSuite .lcd-section-title .lcd-suite-eyebrow{display:none!important}
#lcdConsoleSuite .lcd-section-title .lcd-muted{font-size:12px!important;line-height:1.45!important}

/* Member security stays a section, but no longer resembles a second page header. */
#membersContent .transaction-security-panel{
  border:1px solid var(--lcd9-border)!important;border-radius:12px!important;
  overflow:hidden!important;background:#fff!important;box-shadow:0 5px 16px rgba(20,30,40,.04)!important
}
#membersContent .transaction-security-head{
  min-height:0!important;padding:11px 14px!important;background:#f7f9fb!important;
  border-bottom:1px solid var(--lcd9-border)!important;color:var(--lcd9-text)!important
}
#membersContent .transaction-security-head span{display:none!important}
#membersContent .transaction-security-head h3{
  margin:0!important;font-size:15px!important;color:var(--lcd9-text)!important
}
#membersContent .transaction-security-head p{
  margin:3px 0 0!important;color:#677584!important;font-size:11px!important
}
#membersContent .transaction-security-head button{
  padding:6px 10px!important;min-height:30px!important;font-size:11px!important;border-radius:7px!important
}
#membersContent .transaction-security-grid article{min-height:78px!important;padding:12px!important}

/* Supplier: one compact operational matrix instead of three oversized cards. */
.lcd8e-pagebar{
  display:flex;align-items:center;justify-content:space-between;gap:12px;
  margin:0 0 12px;padding:9px 11px;border:1px solid var(--lcd9-border);
  border-radius:10px;background:#fff
}
.lcd8e-pagebar p{margin:0;color:#627080;font-size:12px}
.lcd8e-provider-table{
  overflow:hidden;border:1px solid var(--lcd9-border);border-radius:12px;background:#fff;
  box-shadow:0 5px 16px rgba(20,30,40,.04)
}
.lcd8e-provider-head,.lcd8e-provider-row{
  display:grid;grid-template-columns:1.05fr .8fr 1.1fr .75fr 1.15fr 2.15fr;
  gap:10px;align-items:center
}
.lcd8e-provider-head{
  padding:9px 12px;background:#f2f5f7;border-bottom:1px solid var(--lcd9-border);
  color:#637180;font-size:9px;font-weight:900;letter-spacing:.08em;text-transform:uppercase
}
.lcd8e-provider-row{position:relative;padding:12px;border-bottom:1px solid #e6ebef;min-height:68px}
.lcd8e-provider-row:last-child{border-bottom:0}
.lcd8e-provider-row:before{content:"";position:absolute;left:0;top:0;bottom:0;width:3px;background:#222c35}
.lcd8e-provider-row.low:before{background:var(--lcd9-amber)}
.lcd8e-provider-name,.lcd8e-provider-metric,.lcd8e-provider-activity{display:flex;flex-direction:column;gap:3px;min-width:0}
.lcd8e-provider-name small,.lcd8e-provider-metric small,.lcd8e-provider-activity small{font-size:9px;color:#728090}
.lcd8e-provider-name strong{font-size:14px;color:#111820;overflow-wrap:anywhere}
.lcd8e-provider-metric strong{font-size:12px;color:#17222c;overflow-wrap:anywhere}
.lcd8e-provider-status{display:flex;gap:4px;flex-wrap:wrap}
.lcd8e-provider-actions{display:flex!important;gap:5px!important;flex-wrap:wrap!important;margin:0!important}
#lcd82Overlay .lcd8e-provider-actions .lcd82-btn{
  min-height:28px!important;padding:5px 8px!important;border-radius:6px!important;font-size:10px!important
}
.lcd8e-supplier-summary{margin-top:12px!important}
#lcd82Overlay .lcd8e-supplier-summary .lcd82-stat{min-height:66px!important;padding:11px!important}
#lcd82Overlay .lcd8e-supplier-summary .lcd82-stat strong{font-size:19px!important;margin-top:4px!important}

/* H2H & Callback operational page. */
.lcd8e-inline-actions{display:flex;align-items:center;gap:7px;color:#526170}
.lcd8e-live-dot{width:8px;height:8px;border-radius:50%;background:var(--lcd9-green);box-shadow:0 0 0 4px rgba(22,136,90,.12)}
.lcd8e-h2h-kpis{margin:0 0 12px!important}
#lcd82Overlay .lcd8e-h2h-kpis .lcd82-stat{min-height:66px!important;padding:11px!important}
#lcd82Overlay .lcd8e-h2h-kpis .lcd82-stat strong{font-size:18px!important;margin-top:4px!important}
.lcd8e-h2h-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-bottom:12px}
.lcd8e-section-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:10px}
.lcd8e-section-head small{display:block;color:#6b7886;font-size:9px;font-weight:900;letter-spacing:.08em}
.lcd8e-section-head h3{margin:3px 0 0!important;font-size:15px!important;color:#111820!important}
.lcd8e-keyrows{display:grid;grid-template-columns:1fr 1fr;gap:0 14px}
.lcd8e-keyrows div{display:flex;justify-content:space-between;gap:10px;padding:8px 0;border-bottom:1px solid #e7ebef;font-size:11px}
.lcd8e-keyrows span{color:#687684}.lcd8e-keyrows b{color:#17222c;text-align:right}
.lcd8e-endpoint{display:grid;grid-template-columns:70px minmax(0,1fr);gap:8px;align-items:center;margin:7px 0}
.lcd8e-endpoint small{color:#6b7886;font-size:10px;font-weight:800}
.lcd8e-endpoint code{padding:8px;border:1px solid #dce3e9;border-radius:7px;background:#f6f8fa;color:#25313c;overflow-wrap:anywhere;font-size:10px}
.lcd8e-ops-section{margin-top:12px!important}
.lcd8e-empty{padding:20px;border:1px dashed #ced7df;border-radius:9px;color:#71808f;text-align:center;font-size:12px;background:#f8fafb}

@media(max-width:1180px){
  .lcd8e-provider-head{display:none}
  .lcd8e-provider-row{grid-template-columns:1fr 1fr 1fr;align-items:start}
  .lcd8e-provider-actions{grid-column:1/-1}
}
@media(max-width:760px){
  #productsContent .products-hero,#membersContent .members-hero,#balanceContent .balance-hero,#transactionsContent .transaction-hero,
  .lcd8e-pagebar{align-items:flex-start!important;flex-direction:column!important}
  .lcd8e-provider-row{grid-template-columns:1fr 1fr}
  .lcd8e-provider-name,.lcd8e-provider-actions{grid-column:1/-1}
  .lcd8e-h2h-grid,.lcd8e-keyrows{grid-template-columns:1fr}
}

/* Authentication state must win over every structural dashboard rule. */
html body #dashboardPage.dashboard.hidden{
  display:none!important;visibility:hidden!important;pointer-events:none!important
}
