/* Approved integrated ZCHPC Backup V12 visual system.
   This file owns the production shell/auth branding layer. */
:root{
  --z-brand-950:#0d1e3b;--z-brand-900:#10264b;--z-brand-850:#14305b;--z-brand-800:#183864;
  --z-brand-700:#20537d;--z-brand-600:#2d7098;--z-brand-500:#4387aa;--z-brand-100:#e8f1f7;--z-brand-50:#f3f8fb;
  --z-ink:#132238;--z-ink-2:#2d3b4f;--z-muted:#657488;--z-bg:#f4f7fb;--z-surface:#fff;--z-surface-2:#f8fafc;
  --z-line:#dde5ee;--z-line-strong:#cbd6e3;--z-ok:#16785a;--z-warn:#9a650f;--z-danger:#ad352d;--z-info:#256b91;
  --z-shadow:0 14px 32px rgba(15,33,61,.09),0 2px 8px rgba(15,33,61,.05);--z-sidebar:268px;
}
body{color:var(--z-ink);background:var(--z-bg)}
.zchpc-brand{display:flex;align-items:center;gap:11px;text-decoration:none;min-width:0}
.zchpc-mark{display:block;width:38px;height:38px;flex:0 0 38px;border-radius:11px;background-image:url("/zchpc_mark_v12.png");background-position:center;background-repeat:no-repeat;background-size:cover;box-shadow:0 6px 18px rgba(7,22,43,.22)}
.zchpc-wordmark{display:grid;line-height:1.05;min-width:0}.zchpc-wordmark strong{font-size:15px;letter-spacing:.085em;color:#fff}.zchpc-wordmark small{margin-top:5px;font-size:9px;font-weight:850;letter-spacing:.19em;color:#9eb6ca}
.app-shell:not([hidden]){grid-template-columns:var(--z-sidebar) minmax(0,1fr);background:var(--z-bg)}
.sidebar{padding:0;background:linear-gradient(180deg,var(--z-brand-950),#0b1a33);border-right:1px solid rgba(255,255,255,.045)}
.sidebar-top{height:82px;padding:17px 18px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid rgba(255,255,255,.065)}
.sidebar-top .zchpc-brand{min-width:0}.sidebar-top .zchpc-mark{width:40px;height:40px;flex-basis:40px}
.app-nav{flex:1;overflow:auto;padding:14px 12px 18px;display:grid;align-content:start;gap:4px}
.app-nav button{min-height:42px;padding:10px 12px;border-radius:10px;color:#a9bbce;font-size:12px;letter-spacing:.005em}
.app-nav button span{width:20px;color:#7f98b2}.app-nav button:hover{background:rgba(255,255,255,.055);color:#eef5fb}
.app-nav button.active{background:linear-gradient(135deg,rgba(67,135,170,.25),rgba(45,112,152,.18));box-shadow:inset 0 0 0 1px rgba(110,174,207,.16);color:#fff}
.app-nav button.active span{color:#a9d7ec}.nav-divider{background:rgba(255,255,255,.075);margin:9px 8px}
.sidebar-footer{margin-top:auto;padding:0 12px 12px;background:linear-gradient(180deg,rgba(13,30,59,0),rgba(13,30,59,.72) 18%)}
.sidebar-status{margin-top:0;border-top:1px solid rgba(255,255,255,.075);padding:14px 8px 12px;color:#fff}
.sidebar-status small{color:#8fa7bd}.sidebar-status .status-dot{background:#38bd8b}
.sidebar-collapse{width:100%;min-height:36px;border:0;border-radius:9px;background:transparent;color:#8fa7bd;display:flex;align-items:center;gap:10px;padding:8px 10px;font-size:11px;font-weight:750;text-align:left}
.sidebar-collapse:hover{background:rgba(255,255,255,.05);color:#fff}.sidebar-collapse-icon{font-size:16px;line-height:1}
.account-shell{position:relative;margin-top:4px}.account-button{width:100%;border:1px solid rgba(255,255,255,.08);background:rgba(255,255,255,.045);border-radius:12px;padding:9px;display:flex;align-items:center;gap:9px;color:#fff;text-align:left}
.account-button:hover,.account-button[aria-expanded="true"]{background:rgba(255,255,255,.075);border-color:rgba(255,255,255,.12)}
.account-button .avatar{width:34px;height:34px;flex:0 0 34px;border-radius:10px;background:#eaf3f8;color:var(--z-brand-850)}
.account-button .user-meta{min-width:0;flex:1}.account-button .user-meta b{color:#fff;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.account-button .user-meta small{color:#8fa7bd;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.account-chevron{color:#7f98b2;font-size:12px}
.account-menu{position:absolute;left:0;right:0;bottom:calc(100% + 8px);max-height:min(70vh,520px);overflow:auto;padding:7px;background:#fff;color:var(--z-ink);border:1px solid var(--z-line);border-radius:12px;box-shadow:var(--z-shadow);z-index:80}
.account-menu[hidden]{display:none}.account-menu button{width:100%;border:0;background:transparent;color:var(--z-ink-2);text-align:left;padding:9px 10px;border-radius:8px;font-size:11px;font-weight:750}
.account-menu button:hover{background:var(--z-brand-50);color:var(--z-brand-900)}.account-menu button:focus-visible{outline:2px solid var(--z-brand-500);outline-offset:1px}
.account-context-menu{padding-bottom:6px;margin-bottom:5px;border-bottom:1px solid var(--z-line)}.account-context-menu[hidden]{display:none}.account-context-label{padding:6px 10px 5px;color:var(--z-muted);font-size:9px;font-weight:850;letter-spacing:.08em;text-transform:uppercase}
.account-menu .account-context-option{display:flex;align-items:center;justify-content:space-between;gap:10px;padding-block:9px}.account-context-copy{min-width:0;display:grid;gap:2px}.account-context-copy b{font-size:11px;color:inherit;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.account-context-copy small{font-size:9px;font-weight:650;color:var(--z-muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.account-context-state{flex:0 0 auto;color:var(--z-muted);font-size:11px}
.account-menu .account-context-option.current{background:var(--z-brand-50);color:var(--z-brand-900)}.account-menu .account-context-option.current .account-context-state{color:var(--z-brand-700);font-weight:900}.account-menu .danger{color:var(--z-danger)}
.app-header{height:72px;padding:0 28px;background:rgba(255,255,255,.97);border-bottom:1px solid var(--z-line);backdrop-filter:blur(10px)}
.app-header .page-identity{flex:1;min-width:0}.page-eyebrow{color:#7a8797}.app-header h1{font-size:19px;color:var(--z-ink)}
.header-tools{display:flex;align-items:center;gap:8px}.header-tool{height:38px;border:1px solid var(--z-line);background:#fff;border-radius:10px;color:#58697c;display:flex;align-items:center;gap:8px;padding:0 11px;font-size:11px;font-weight:750}
.header-tool:hover{border-color:#c5d5e3;background:var(--z-brand-50);color:var(--z-brand-800)}.header-tool-icon{font-size:16px}.header-tool kbd{border:1px solid var(--z-line);border-bottom-width:2px;border-radius:5px;padding:1px 5px;background:var(--z-surface-2);font:700 9px/1.4 ui-monospace,SFMono-Regular,Menlo,monospace;color:#7b8798}
.notification-dot{width:7px;height:7px;border-radius:50%;background:var(--z-danger);display:none}
.shell-popover{position:fixed;right:28px;top:62px;width:min(340px,calc(100vw - 24px));padding:10px;background:#fff;border:1px solid var(--z-line);border-radius:13px;box-shadow:var(--z-shadow);z-index:90}
.shell-popover[hidden]{display:none}.shell-popover h3{font-size:12px;margin:4px 6px 3px}.shell-popover p{font-size:11px;color:var(--z-muted);margin:0 6px 8px;line-height:1.5}.shell-popover button{width:100%;border:0;background:var(--z-brand-50);color:var(--z-brand-800);border-radius:9px;padding:9px 10px;text-align:left;font-size:11px;font-weight:800}
.shell-search{border:0;padding:0;background:transparent;max-width:none;max-height:none;width:100%;height:100%;margin:0}
.shell-search::backdrop{background:rgba(8,19,37,.42);backdrop-filter:blur(2px)}.shell-search-card{width:min(620px,calc(100vw - 28px));margin:11vh auto 0;background:#fff;border:1px solid var(--z-line);border-radius:16px;box-shadow:0 28px 80px rgba(8,24,48,.22);overflow:hidden}
.shell-search-head{display:flex;align-items:center;gap:10px;padding:13px;border-bottom:1px solid var(--z-line)}.shell-search-head input{flex:1;border:0;outline:0;font-size:14px;color:var(--z-ink)}.shell-search-close{border:0;background:var(--z-surface-2);border-radius:8px;width:32px;height:32px;color:#66768a}
.shell-search-results{max-height:48vh;overflow:auto;padding:8px}.shell-search-results button{width:100%;border:0;background:transparent;border-radius:9px;padding:10px 12px;display:flex;align-items:center;justify-content:space-between;text-align:left;color:var(--z-ink)}
.shell-search-results button:hover,.shell-search-results button:focus-visible{background:var(--z-brand-50);outline:0}.shell-search-results small{color:var(--z-muted)}
.app-content{padding:28px 32px 60px}.panel,.metric-card,.setting-card,.table-wrap{border-color:var(--z-line);box-shadow:0 1px 2px rgba(15,33,61,.02)}
.button{background:linear-gradient(135deg,var(--z-brand-700),var(--z-brand-600));box-shadow:0 8px 20px rgba(32,83,125,.16)}.button:hover{box-shadow:0 11px 26px rgba(32,83,125,.22)}
.button.button-ghost{background:#fff;color:var(--z-ink);box-shadow:inset 0 0 0 1px var(--z-line)}.button.button-ghost:hover{background:var(--z-brand-50);color:var(--z-brand-900);box-shadow:inset 0 0 0 1px var(--z-line-strong)}.button.button-ghost.light{background:rgba(255,255,255,.08);color:#fff;box-shadow:inset 0 0 0 1px rgba(255,255,255,.25)}.button.button-ghost.dark{background:#fff;color:var(--z-ink-2);box-shadow:inset 0 0 0 1px var(--z-line-strong)}
.shell-search-empty{padding:14px;color:var(--z-muted);font-size:12px}.auth-theme-control{position:absolute;right:24px;top:20px;z-index:2}.auth-panel>.auth-theme-control{width:auto}.theme-toggle .theme-icon{font-size:14px;line-height:1}.theme-toggle .theme-label{white-space:nowrap}
.button:focus-visible,.text-button:focus-visible,.app-nav button:focus-visible,.icon-button:focus-visible,.header-tool:focus-visible,.account-button:focus-visible,.sidebar-collapse:focus-visible{outline:3px solid rgba(67,135,170,.35);outline-offset:2px}
.auth-shell:not([hidden]){grid-template-columns:minmax(0,1fr) minmax(420px,520px);background:var(--z-bg)}
.auth-brand{padding:36px clamp(42px,7vw,108px);background:radial-gradient(circle at 20% 18%,rgba(67,135,170,.24),transparent 35%),linear-gradient(145deg,var(--z-brand-950),#102b52 72%,#153a63);color:#fff}
.auth-brand .back-button{color:#b4c6d7}.auth-brand .zchpc-brand{margin-top:48px}.auth-brand .zchpc-mark{width:54px;height:54px;flex-basis:54px;border-radius:15px}
.auth-brand .zchpc-wordmark strong{font-size:20px}.auth-brand .zchpc-wordmark small{font-size:10px;margin-top:6px}
.auth-message{max-width:600px}.auth-message .eyebrow{color:#9cc5da;margin-bottom:14px}.auth-message h2{font-size:clamp(38px,4.2vw,56px);line-height:1.03;letter-spacing:-.045em;margin:0 0 20px}.auth-message>p:last-child{max-width:560px;color:#aec0d1;font-size:14px}
.auth-panel{padding:64px clamp(38px,5vw,64px);background:#fff}.auth-panel>div{max-width:410px;margin-inline:auto}.auth-panel h1{font-size:34px;color:var(--z-ink)}
.form-stack input,.modal-body input,.modal-body select,.modal-body textarea{border-color:var(--z-line-strong)}.form-stack input:focus,.modal-body input:focus,.modal-body select:focus,.modal-body textarea:focus{border-color:var(--z-brand-600);box-shadow:0 0 0 3px rgba(67,135,170,.15)}
.modal-body .table-wrap{min-width:0;max-width:100%;overflow:hidden}.modal-body .data-table{width:100%;min-width:0;table-layout:fixed}.modal-body .data-table th,.modal-body .data-table td{padding:10px 8px;overflow-wrap:anywhere;word-break:break-word}.form-stack label,.modal-body label{color:#46566a}.muted{color:var(--z-muted)}
body.sidebar-collapsed .app-shell:not([hidden]){grid-template-columns:76px minmax(0,1fr)}
body.sidebar-collapsed .sidebar-top{padding-inline:18px}body.sidebar-collapsed .sidebar-top .zchpc-wordmark,body.sidebar-collapsed .sidebar-top .nav-close{display:none}
body.sidebar-collapsed .app-nav{padding-inline:10px}body.sidebar-collapsed .app-nav button{justify-content:center;padding-inline:8px;font-size:0}body.sidebar-collapsed .app-nav button span{font-size:16px;width:22px}
body.sidebar-collapsed .nav-divider{margin-inline:6px}body.sidebar-collapsed .sidebar-status{justify-content:center;padding-inline:0}body.sidebar-collapsed .sidebar-status>div{display:none}
body.sidebar-collapsed .sidebar-collapse{justify-content:center;font-size:0;padding-inline:0}body.sidebar-collapsed .sidebar-collapse-icon{font-size:16px;transform:rotate(180deg)}
body.sidebar-collapsed .account-button{justify-content:center;padding:8px}body.sidebar-collapsed .account-button .user-meta,body.sidebar-collapsed .account-chevron{display:none}
body.sidebar-collapsed .account-menu{left:56px;right:auto;bottom:0;width:232px}
@media(max-width:900px){
  .app-shell:not([hidden]),body.sidebar-collapsed .app-shell:not([hidden]){display:block}
  .sidebar{position:fixed;left:0;top:0;bottom:0;width:min(292px,86vw);height:100dvh;z-index:70;transform:translateX(-102%);visibility:hidden;pointer-events:none;transition:transform .18s ease,visibility 0s linear .18s}
  .sidebar.open{transform:translateX(0);visibility:visible;pointer-events:auto;transition-delay:0s}.nav-close{display:grid!important}.sidebar-collapse{display:none}
  body.sidebar-collapsed .sidebar-top .zchpc-wordmark,body.sidebar-collapsed .sidebar-top .nav-close{display:initial}
  body.sidebar-collapsed .app-nav button{justify-content:flex-start;padding:10px 12px;font-size:12px}body.sidebar-collapsed .app-nav button span{font-size:inherit;width:20px}
  body.sidebar-collapsed .sidebar-status{justify-content:flex-start;padding:14px 8px 12px}body.sidebar-collapsed .sidebar-status>div{display:block}
  body.sidebar-collapsed .account-button{justify-content:flex-start;padding:9px}body.sidebar-collapsed .account-button .user-meta{display:grid}body.sidebar-collapsed .account-chevron{display:inline}
  body.sidebar-collapsed .account-menu{left:0;right:0;bottom:calc(100% + 8px);width:auto}
  .menu-button{display:grid}.app-header{padding:0 16px;height:66px}.header-tool .header-tool-label,.header-tool kbd{display:none}.header-tool{width:38px;padding:0;justify-content:center}
  .app-content{padding:20px 16px 48px}.shell-popover{right:12px;top:58px}
  .auth-shell:not([hidden]){display:block;background:#fff}.auth-brand{min-height:auto;padding:24px 22px 20px}.auth-brand .back-button{position:static;align-self:flex-start;margin-bottom:20px}.auth-brand .zchpc-brand{margin-top:0}
  .auth-message{display:none}.auth-panel{padding:34px 22px 48px}.auth-panel>div{max-width:430px}.auth-panel h1{font-size:30px}
}
@media(max-width:390px){.app-header{padding-inline:12px}.app-header h1{font-size:17px}.page-eyebrow{font-size:8px}.auth-panel{padding-inline:18px}.zchpc-mark{width:36px;height:36px;flex-basis:36px}}
@media(prefers-reduced-motion:reduce){.sidebar{transition:none}}


/* V12 authentication depth: one task on the right, authority context on the left. */
.auth-panel{position:relative}
.auth-back{position:absolute;left:26px;top:22px;border:0;background:transparent;color:#687a8d;font-size:10.5px;font-weight:800;padding:8px 9px;border-radius:8px}
.auth-back:hover{background:var(--z-brand-50);color:var(--z-brand-800)}
.auth-back:focus-visible{outline:3px solid rgba(67,135,170,.35);outline-offset:2px}
.auth-task{width:100%}
.auth-task .kicker{margin-bottom:13px;color:var(--z-brand-700)}
.auth-task>h1{margin-bottom:8px}
.auth-assurance{margin:18px 0 0;padding:11px 12px;border:1px solid #d8e5ef;border-radius:10px;background:var(--z-brand-50);color:#52687d;font-size:10.5px;line-height:1.55}
.auth-principles{display:grid;gap:10px;margin-top:30px;max-width:570px}
.auth-principles>div{display:grid;grid-template-columns:34px 1fr;gap:12px;padding:13px 0;border-top:1px solid rgba(255,255,255,.10)}
.auth-principles>div>span{width:28px;height:28px;border-radius:8px;display:grid;place-items:center;background:rgba(255,255,255,.07);color:#a9c9da;font-size:9px;font-weight:900;letter-spacing:.05em}
.auth-principles p{margin:0}.auth-principles b{display:block;color:#f4f8fb;font-size:11px}.auth-principles small{display:block;margin-top:4px;color:#9fb3c7;font-size:10px;line-height:1.5}
.auth-panel .auth-foot{margin-top:18px}.auth-panel [data-password-recovery-action]{margin-top:13px}
.auth-panel .form-stack{margin-top:25px}

/* V8 role-aware landing composition. Posture and work always precede summary metrics. */
.landing-v8{display:grid;gap:16px}
.landing-v8-posture{margin-bottom:0;background:#fff;border:1px solid var(--z-line);border-radius:18px;padding:22px 24px;display:grid;grid-template-columns:minmax(0,1.25fr) minmax(300px,.75fr);gap:26px;align-items:center;box-shadow:0 2px 8px rgba(15,33,61,.035)}
.landing-v8-posture.attention{border-left:4px solid var(--z-warn)}.landing-v8-posture.good{border-left:4px solid var(--z-ok)}.landing-v8-posture.bad{border-left:4px solid var(--z-danger)}
.landing-v8-posture h3{margin:7px 0 8px;font-size:24px;letter-spacing:-.035em;line-height:1.12;color:var(--z-ink)}
.landing-v8-posture p{margin:0;color:var(--z-muted);font-size:11.5px;line-height:1.65;max-width:780px}
.landing-v8-posture .hero-actions{margin:16px 0 0}
.landing-v8-evidence{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.landing-v8-evidence>div{padding:12px;border:1px solid var(--z-line);background:var(--z-surface-2);border-radius:11px;min-width:0}
.landing-v8-evidence span{display:block;color:#748397;font-size:8.5px;font-weight:850;text-transform:uppercase;letter-spacing:.055em}
.landing-v8-evidence b{display:block;margin-top:5px;color:var(--z-ink);font-size:11.5px;overflow-wrap:anywhere}
.landing-v8-section{background:#fff;border:1px solid var(--z-line);border-radius:17px;padding:20px 22px}
.landing-v8-section>.panel-head{margin-bottom:12px}
.landing-v8-section .panel-head h3{font-size:14px}.landing-v8-section .panel-head span{font-size:10px}
.landing-work-list{display:grid;border-top:1px solid var(--z-line)}
.landing-work-item{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:18px;align-items:center;padding:14px 2px;border-bottom:1px solid var(--z-line)}
.landing-work-item:last-child{border-bottom:0}.landing-work-item h4{margin:0 0 5px;font-size:12px;color:var(--z-ink)}.landing-work-item p{margin:0;color:var(--z-muted);font-size:10.5px;line-height:1.5}
.landing-work-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap;justify-content:flex-end}
.landing-v8-lower{display:grid;grid-template-columns:1fr 1fr;gap:16px}
.readiness-snapshot{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
.readiness-snapshot>div{padding:13px;border:1px solid var(--z-line);border-radius:11px;background:var(--z-surface-2)}
.readiness-snapshot span{display:block;color:#748397;font-size:8.5px;font-weight:850;text-transform:uppercase;letter-spacing:.055em}.readiness-snapshot b{display:block;margin-top:6px;font-size:14px;color:var(--z-ink)}.readiness-snapshot small{display:block;margin-top:3px;color:var(--z-muted);font-size:9.5px;line-height:1.45}
.recent-evidence{display:grid;gap:0}.recent-evidence>div{padding:11px 0;border-bottom:1px solid var(--z-line)}.recent-evidence>div:last-child{border-bottom:0}.recent-evidence b{display:block;font-size:10.5px;color:var(--z-ink)}.recent-evidence p{margin:4px 0 0;font-size:9.8px;line-height:1.5;color:var(--z-muted)}
.landing-truth-note{padding:11px 12px;border-radius:10px;background:#fff8ec;border:1px solid #ecd9b5;color:#74551f;font-size:10px;line-height:1.55}
.landing-truth-note.info{background:var(--z-brand-50);border-color:#d6e5ef;color:#42647b}
.landing-empty-work{padding:18px 2px 4px;color:var(--z-muted);font-size:11px;line-height:1.55}
.provider-infrastructure{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px}.provider-infrastructure>div{padding:13px;border:1px solid var(--z-line);border-radius:11px;background:var(--z-surface-2)}.provider-infrastructure span{display:block;color:#748397;font-size:8.5px;font-weight:850;text-transform:uppercase}.provider-infrastructure b{display:block;margin-top:6px;font-size:13px}.provider-infrastructure small{display:block;margin-top:3px;color:var(--z-muted);font-size:9.5px;line-height:1.45}
.systems-v12-note{margin:12px 0;padding:12px;border:1px solid var(--z-line);border-radius:11px;background:var(--z-brand-50);font-size:10.5px;line-height:1.55;color:#42647b}

@media(max-width:900px){
  .landing-v8-posture{grid-template-columns:1fr}.landing-v8-lower{grid-template-columns:1fr}
}
@media(max-width:650px){
  .auth-theme-control{right:18px;top:14px}.theme-toggle{width:38px;justify-content:center;padding:7px}.theme-toggle .theme-label{display:none}
  .auth-back{position:static;align-self:flex-start;margin:0 0 20px -8px}
  .auth-panel{align-items:flex-start;flex-direction:column}
  .auth-task{max-width:430px;margin-inline:auto}
  .auth-assurance{font-size:10px}
  .landing-v8{gap:12px}.landing-v8-posture,.landing-v8-section{padding:17px}
  .landing-v8-posture h3{font-size:21px}.landing-v8-evidence,.readiness-snapshot,.provider-infrastructure{grid-template-columns:1fr}
  .landing-work-item{grid-template-columns:1fr;gap:10px}.landing-work-actions{justify-content:flex-start}
}

.landing-truth-spaced{margin-top:12px}


.ui-inline-actions{display:flex;flex-wrap:wrap;gap:2px;align-items:center}
.organisation-status-actions{display:inline-flex;margin-left:2px}
.mfa-status-actions{gap:4px}
.registration-check-row{display:grid!important;grid-template-columns:20px minmax(0,1fr);align-items:start!important;gap:10px}
.registration-check-row input[type="checkbox"]{width:18px;height:18px;margin:1px 0 0;box-shadow:none}

/* V12 dark-mode closure: every primary interaction surface must inherit the
   same visual system rather than falling back to hard-coded light colours. */
html[data-theme="dark"]{
  color-scheme:dark;
  --ink:#e8eef6;--muted:#9aacc0;--line:#24364a;--soft:#101d2d;--white:#0d1927;
  --z-ink:#e8eef6;--z-ink-2:#c7d3e0;--z-muted:#9aacc0;--z-bg:#08111c;--z-surface:#0d1927;--z-surface-2:#101d2d;
  --z-line:#24364a;--z-line-strong:#31485f;--z-brand-50:#10263e;--z-brand-100:#15314b;
  --z-ok:#57c79d;--z-warn:#e4b661;--z-danger:#f28a83;--z-info:#77b6d8;
  --z-shadow:0 16px 38px rgba(0,0,0,.28),0 2px 8px rgba(0,0,0,.22)
}
html[data-theme="dark"] body,
html[data-theme="dark"] .app-shell:not([hidden]),
html[data-theme="dark"] .auth-shell:not([hidden]){background:var(--z-bg);color:var(--z-ink)}
html[data-theme="dark"] .site-header,
html[data-theme="dark"] .app-header{background:rgba(8,17,28,.96);border-color:var(--z-line)}
html[data-theme="dark"] .brand,
html[data-theme="dark"] .text-button,
html[data-theme="dark"] .app-header h1,
html[data-theme="dark"] .page-head h2,
html[data-theme="dark"] .panel,
html[data-theme="dark"] .metric-card,
html[data-theme="dark"] .setting-card,
html[data-theme="dark"] .empty-state,
html[data-theme="dark"] .modal-card{color:var(--z-ink)}
html[data-theme="dark"] .brand small,
html[data-theme="dark"] .site-nav a,
html[data-theme="dark"] .hero-lede,
html[data-theme="dark"] .hero-proof,
html[data-theme="dark"] .feature-grid p,
html[data-theme="dark"] .steps p,
html[data-theme="dark"] .site-footer,
html[data-theme="dark"] .page-head p,
html[data-theme="dark"] .muted{color:var(--z-muted)}
html[data-theme="dark"] .site-nav a:hover{color:#8cc9e6}
html[data-theme="dark"] .hero-visual{background:linear-gradient(145deg,#0f2031,#0a1623);border-color:var(--z-line);box-shadow:var(--z-shadow)}
html[data-theme="dark"] .flow-card,
html[data-theme="dark"] .feature-grid article,
html[data-theme="dark"] .panel,
html[data-theme="dark"] .metric-card,
html[data-theme="dark"] .setting-card,
html[data-theme="dark"] .table-wrap,
html[data-theme="dark"] .modal-card,
html[data-theme="dark"] .empty-state,
html[data-theme="dark"] .landing-v8-posture,
html[data-theme="dark"] .landing-v8-section,
html[data-theme="dark"] .account-menu,
html[data-theme="dark"] .shell-popover,
html[data-theme="dark"] .shell-search-card,
html[data-theme="dark"] .auth-panel{background:var(--z-surface);border-color:var(--z-line);color:var(--z-ink)}
html[data-theme="dark"] .flow-node,
html[data-theme="dark"] .landing-v8-evidence>div,
html[data-theme="dark"] .readiness-snapshot>div,
html[data-theme="dark"] .provider-infrastructure>div,
html[data-theme="dark"] .data-table th,
html[data-theme="dark"] .header-tool kbd,
html[data-theme="dark"] .shell-search-close{background:var(--z-surface-2);border-color:var(--z-line);color:var(--z-ink)}
html[data-theme="dark"] .flow-node small,
html[data-theme="dark"] .flow-label,
html[data-theme="dark"] .data-table td small,
html[data-theme="dark"] .activity-item p,
html[data-theme="dark"] .activity-item time{color:var(--z-muted)}
html[data-theme="dark"] .flow-node.accent,
html[data-theme="dark"] .landing-truth-note.info,
html[data-theme="dark"] .systems-v12-note,
html[data-theme="dark"] .auth-assurance{background:#10263e;border-color:#284a6f;color:#b7d5e8}
html[data-theme="dark"] .landing-truth-note,
html[data-theme="dark"] .gate-pill{background:#2a2112;border-color:#5a4520;color:#e8c680}
html[data-theme="dark"] .gate-pill.ready{background:#10271f;border-color:#255844;color:#8bd9ba}
html[data-theme="dark"] .security-section{background:#0a1420}
html[data-theme="dark"] .data-table th,
html[data-theme="dark"] .data-table td,
html[data-theme="dark"] .gate-row,
html[data-theme="dark"] .activity-item{border-color:var(--z-line)}
html[data-theme="dark"] .header-tool,
html[data-theme="dark"] .button.button-ghost,
html[data-theme="dark"] .button.button-ghost.dark,
html[data-theme="dark"] .theme-toggle{background:var(--z-surface);border-color:var(--z-line);color:var(--z-ink)}
html[data-theme="dark"] .header-tool:hover,
html[data-theme="dark"] .button.button-ghost:hover,
html[data-theme="dark"] .account-menu button:hover,
html[data-theme="dark"] .shell-search-results button:hover,
html[data-theme="dark"] .shell-search-results button:focus-visible{background:var(--z-brand-50);color:#dcecf5;border-color:var(--z-line-strong)}
html[data-theme="dark"] .account-menu .account-context-option.current{background:#10263e;color:#dcecf5}
html[data-theme="dark"] .account-menu .account-context-option.current .account-context-state{color:#a9cbee}
html[data-theme="dark"] .account-menu button,
html[data-theme="dark"] .shell-search-results button,
html[data-theme="dark"] .shell-search-head input{color:var(--z-ink)}
html[data-theme="dark"] .shell-search-head input,
html[data-theme="dark"] .form-stack input,
html[data-theme="dark"] .modal-body input,
html[data-theme="dark"] .modal-body select,
html[data-theme="dark"] .modal-body textarea{background:var(--z-surface-2);border-color:var(--z-line-strong);color:var(--z-ink)}
html[data-theme="dark"] .form-stack input::placeholder,
html[data-theme="dark"] .modal-body input::placeholder,
html[data-theme="dark"] .modal-body textarea::placeholder{color:#8295aa}
html[data-theme="dark"] .form-stack label,
html[data-theme="dark"] .modal-body label{color:#bdc9d6}
html[data-theme="dark"] .account-button .avatar{background:#17324b;color:#b8def0}
html[data-theme="dark"] .badge{background:#172537;color:#b9c8d8}
html[data-theme="dark"] .badge.good{background:#10271f;color:#8bd9ba}
html[data-theme="dark"] .badge.warn{background:#2a2112;color:#e8c680}
html[data-theme="dark"] .badge.info{background:#10263e;color:#a9cbee}
html[data-theme="dark"] .badge.bad{background:#351d22;color:#f0a5aa}
