
*{box-sizing:border-box}
body{margin:0}
.app{display:grid;grid-template-columns:280px 1fr;min-height:100vh}
aside{padding:22px}
.brand{margin-bottom:25px}.brand-logo{display:block;width:174px;max-width:100%;height:auto;margin-bottom:9px}
.brand small{display:block;margin-top:5px}
nav{display:grid;gap:6px}
nav button{text-align:left;padding:11px;cursor:pointer}
main{padding:28px;max-width:1650px}
h1{margin:5px 0 4px}
.sub{margin-bottom:22px}
.view{display:none}.view.active{display:block}.grid{display:grid;grid-template-columns:repeat(12,1fr);gap:16px}
.card{padding:18px}.span12{grid-column:span 12}.span8{grid-column:span 8}.span6{grid-column:span 6}.span4{grid-column:span 4}.span3{grid-column:span 3}
.metric .value{margin-top:6px}
.btn{padding:9px 12px;cursor:pointer}
.toprow{display:flex;justify-content:space-between;gap:14px;align-items:flex-start}.actions{display:flex;gap:8px;flex-wrap:wrap}
table{width:100%;border-collapse:collapse}
th,td{padding:10px 8px;text-align:left;vertical-align:top}
.status{padding:4px 7px}
.filters{display:grid;grid-template-columns:1fr 220px 190px;gap:10px;margin:14px 0}
input,select,textarea{padding:10px;width:100%}
.form{display:grid;grid-template-columns:1fr 1fr;gap:12px}.wide{grid-column:1/-1}
label{display:grid;gap:6px}
.drawer{display:none;position:fixed;top:0;right:0;width:min(680px,96vw);height:100vh;overflow:auto;padding:22px;z-index:10}.drawer.open{display:block}
.drawerhead{display:flex;justify-content:space-between;align-items:center}
.x{cursor:pointer}
.detailgrid{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.detail{padding:10px}
.detail span{display:block;margin-bottom:4px}
.callout{padding:11px 13px}
.linkchip{display:inline-block;padding:4px 7px;margin:2px 4px 2px 0}

th.sortable{cursor:pointer;user-select:none;position:relative;padding-right:18px}
th.sortable::after{content:"↕";position:absolute;right:5px}
th.sortable.asc::after{content:"↑"}
th.sortable.desc::after{content:"↓"}
.row-inactive td{background:rgba(244,185,66,.055);color:#d7b96c}
.row-archived td{background:rgba(125,135,150,.055);color:#7f8996;opacity:.72}
.lifecycle-active{color:var(--ui-success)}
.lifecycle-inactive{color:var(--ui-warning)}
.lifecycle-archived{color:#8993a0}
.record-rule{border:1px solid color-mix(in srgb,var(--ui-accent) 28.000000000000004%,transparent);background:color-mix(in srgb,var(--ui-accent) 5.5%,transparent);padding:12px;border-radius:9px;margin:12px 0}


.auth-overlay{position:fixed;inset:0;background:radial-gradient(800px 500px at 80% 10%,color-mix(in srgb,var(--ui-accent) 12%,transparent),transparent 60%),#090b0e;z-index:100;display:flex;align-items:center;justify-content:center;padding:20px}
.auth-card{width:min(460px,96vw);background:linear-gradient(180deg,#141922,#0f1318);border:1px solid var(--ui-border);border-radius:16px;padding:24px;box-shadow:0 30px 100px rgba(0,0,0,.55)}
.auth-card h2{margin:6px 0 8px}.auth-card .brandline{color:var(--ui-accent);font-weight:800;letter-spacing:.18em}
.auth-card .error{display:none;color:#ff9d9d;background:rgba(255,107,107,.08);border:1px solid rgba(255,107,107,.3);padding:9px;border-radius:8px;margin:10px 0;font-size:12px}
.auth-card .demo{margin-top:14px;padding:10px;border:1px dashed var(--ui-border);border-radius:8px;color:var(--ui-muted);font-size:11px;line-height:1.5}
.user-menu{display:flex;align-items:center;gap:10px;border:1px solid var(--ui-border);background:#11161d;padding:8px 10px;border-radius:10px}
.user-avatar{width:30px;height:30px;border-radius:50%;background:color-mix(in srgb,var(--ui-accent) 15%,transparent);display:grid;place-items:center;color:var(--ui-accent);font-weight:800}
.user-meta b{font-size:11px;display:block}.user-meta span{font-size:10px;color:var(--ui-muted)}
.audit-event{font-size:11px}.audit-login{color:var(--ui-success)}.audit-change{color:var(--ui-accent)}.audit-fail{color:var(--ui-error)}
.reasonbox{margin-top:10px}


.e8-context{margin:0 0 16px;border:1px solid color-mix(in srgb,var(--ui-accent) 30%,transparent);background:linear-gradient(90deg,color-mix(in srgb,var(--ui-accent) 7.000000000000001%,transparent),color-mix(in srgb,var(--ui-accent) 2.5%,transparent));border-radius:12px;padding:14px 16px}
.e8-context h3{margin:0 0 6px;font-size:13px;color:#f1e5c3}
.e8-context p{margin:0;color:#b9c0ca;font-size:12px;line-height:1.55;max-width:950px}
.e8-context .helps{margin-top:10px;display:flex;gap:7px;align-items:center;flex-wrap:wrap}
.e8-context .helps-label{font-size:10px;text-transform:uppercase;letter-spacing:.09em;color:#7f8995;margin-right:2px}
.e8-chip{display:inline-flex;align-items:center;padding:5px 8px;border-radius:999px;border:1px solid color-mix(in srgb,var(--ui-accent) 25%,transparent);background:#12171d;color:#dbc27e;font-size:10px;cursor:help}
.e8-support{border-color:#303844;color:#9aa4b0}


.multi-filter{position:relative;display:inline-block;min-width:155px}
.multi-filter-btn{width:100%;text-align:left;white-space:nowrap}
.multi-filter-menu{display:none;position:absolute;top:calc(100% + 5px);left:0;z-index:40;min-width:210px;background:#11161d;border:1px solid var(--ui-border);border-radius:9px;padding:8px;box-shadow:0 18px 50px rgba(0,0,0,.45)}
.multi-filter.open .multi-filter-menu{display:block}
.multi-filter-menu label{display:flex;align-items:center;gap:8px;padding:7px 6px;font-size:11px;color:#c7cdd5;cursor:pointer;border-radius:6px}
.multi-filter-menu label:hover{background:#171d25}
.multi-filter-menu input{accent-color:var(--ui-accent)}
.multi-filter-actions{display:flex;gap:6px;border-top:1px solid var(--ui-border);margin-top:5px;padding-top:7px}


.impersonate-wrap{position:relative}
.impersonate-menu{display:none;position:absolute;right:0;top:calc(100% + 6px);z-index:80;min-width:260px;background:#11161d;border:1px solid var(--ui-border);border-radius:10px;padding:8px;box-shadow:0 18px 50px rgba(0,0,0,.5)}
.impersonate-wrap.open .impersonate-menu{display:block}
.impersonate-menu .dev-label{font-size:9px;text-transform:uppercase;letter-spacing:.12em;color:var(--ui-accent);padding:6px 8px}
.impersonate-option{width:100%;text-align:left;background:transparent;border:0;color:#cfd5dc;padding:9px 8px;border-radius:7px;cursor:pointer}
.impersonate-option:hover{background:#181e26}
.impersonate-option b{display:block;font-size:11px}
.impersonate-option span{display:block;font-size:10px;color:var(--ui-muted);margin-top:2px}
.dev-badge{display:inline-flex;align-items:center;padding:4px 7px;border:1px solid color-mix(in srgb,var(--ui-accent) 35%,transparent);border-radius:999px;background:color-mix(in srgb,var(--ui-accent) 7.000000000000001%,transparent);color:var(--ui-accent);font-size:9px;text-transform:uppercase;letter-spacing:.08em}
.readonly-note{display:none;margin:0 0 12px;padding:10px 12px;border-radius:8px;border:1px solid rgba(100,160,255,.25);background:rgba(100,160,255,.06);color:#aabbd0;font-size:11px}
body.role-assessor .readonly-note{display:block}
body.role-assessor .app button.primary:not([onclick^="confirmImpersonation"]), body.role-assessor .app button[onclick^="openNew"], body.role-assessor .app button[onclick^="changeLifecycle"]{opacity:.4;pointer-events:none}


.rbac-context{margin:0 0 14px;padding:10px 12px;border:1px solid color-mix(in srgb,var(--ui-accent) 22%,transparent);border-radius:9px;background:color-mix(in srgb,var(--ui-accent) 4.5%,transparent);font-size:11px;color:#b6bec8;display:flex;gap:10px;align-items:center;flex-wrap:wrap}
.rbac-context b{color:#efe4c4}.rbac-context .rbac-mode{display:inline-flex;padding:3px 7px;border:1px solid var(--ui-border);border-radius:999px;color:#9fa9b5;font-size:9px;text-transform:uppercase;letter-spacing:.08em}
.rbac-denied{opacity:.38!important;pointer-events:none!important}


.policy-toolbar{display:flex;gap:8px;align-items:center;justify-content:space-between;flex-wrap:wrap;margin-top:16px;padding-top:14px;border-top:1px solid var(--ui-border)}
.policy-list{margin-top:10px;display:grid;gap:8px}
.policy-item{padding:10px 11px}
.policy-item .policy-head{display:flex;justify-content:space-between;gap:10px;align-items:flex-start}
.policy-item h4{margin:0;font-size:12px;color:#e3e7eb}
.policy-item .policy-url{font-size:10px;color:#8ea5bd;word-break:break-all;margin-top:3px}
.policy-meta{display:flex;gap:10px;flex-wrap:wrap;margin-top:8px;font-size:10px;color:#8d97a2}
.policy-meta b{color:#cbd2d9;font-weight:600}
.policy-date-confidence{display:inline-flex;padding:3px 6px;border:1px solid var(--ui-border);border-radius:999px;font-size:9px}
.policy-candidates{display:grid;gap:8px;margin-top:10px}
.policy-candidate{display:grid;grid-template-columns:130px 1fr auto;gap:8px;align-items:center;border:1px solid var(--ui-border);border-radius:8px;padding:8px}
.policy-candidate input{width:100%}


.product-list{margin-top:10px;display:grid;gap:8px}
.product-item{padding:10px 11px}
.product-item .product-head{display:flex;justify-content:space-between;gap:10px;align-items:flex-start}
.product-item h4{margin:0;font-size:12px;color:#e3e7eb}
.product-meta{display:flex;gap:10px;flex-wrap:wrap;margin-top:7px;font-size:10px;color:#8d97a2}
.product-meta b{color:#cbd2d9;font-weight:600}
.scope-chip{display:inline-flex;padding:3px 7px;border:1px solid var(--ui-border);border-radius:999px;font-size:9px;color:#aab3bd}
.product-policy-link{font-size:10px;color:#d3b86d}


.pagination{display:flex;justify-content:space-between;gap:10px;align-items:center;flex-wrap:wrap;margin-top:10px;padding-top:10px;border-top:1px solid var(--ui-border)}
.pagination .page-meta{font-size:10px;color:#8f98a3}
.pagination .page-controls{display:flex;gap:6px;align-items:center}
.pagination select{padding:6px 8px}
.pagination button{min-width:32px}
.filters select{max-width:220px}
.sidebar-toggle{position:fixed;left:224px;top:14px;z-index:120;width:30px;height:30px;padding:0;transition:left .18s ease}
body.sidebar-collapsed .sidebar-toggle{left:12px}
body.sidebar-collapsed aside{transform:translateX(-100%);visibility:hidden}
body.sidebar-collapsed .content{margin-left:0!important;width:100%!important}
aside{transition:transform .18s ease,visibility .18s ease}
.content{transition:margin-left .18s ease,width .18s ease}
@media(max-width:1000px){
 .sidebar-toggle{left:12px}
 body:not(.sidebar-collapsed) aside{transform:translateX(0);visibility:visible;z-index:110}
}

@media(max-width:1000px){.app{grid-template-columns:1fr}.span8,.span6,.span4,.span3{grid-column:span 12}.filters,.form{grid-template-columns:1fr}}
.topbar,.header{background:rgba(244,247,248,.94);border-bottom-color:#dbe4e8}
.card h2,.card h3,.panel h2,.panel h3,.product-item h4,.policy-item h4{color:#20313b}
tbody tr:hover{background:#f0f6f7}
.rbac-context{background:#edf5f6;border-color:#cadde2;color:#526771}
.rbac-context b{color:#244f5b}
.scope-chip,.policy-date-confidence{background:#f6f9fa;border-color:#d5e1e5;color:#526771}
.policy-url{color:#4d7481!important}
.product-policy-link{color:#527b86}
.audit-event{color:#315f6c}
.audit-fail{color:#a34b4b}
.lifecycle-active{opacity:1}
.lifecycle-inactive{opacity:.68}
.lifecycle-archived{opacity:.48}


.breadcrumbs{display:flex;align-items:center;gap:6px;flex-wrap:wrap;margin:0 0 14px;font-size:10px;color:#71828b}
.breadcrumbs button{appearance:none;border:0;background:transparent;padding:2px 0;color:#4f7480;cursor:pointer;font:inherit}
.breadcrumbs button:hover{text-decoration:underline;color:#315f6c}
.breadcrumbs .crumb-current{color:#20313b;font-weight:600}
.breadcrumbs .crumb-sep{color:#a6b2b8}


.audit-access-panel{background:#edf5f6;border:1px solid #cadde2;border-radius:10px;padding:12px 14px;margin:0 0 12px}
.audit-access-panel b{color:#244f5b}
.audit-access-panel .note{margin-top:4px}
.audit-scope-chip{display:inline-flex;align-items:center;border:1px solid #cbdde2;background:#fff;border-radius:999px;padding:3px 8px;margin:4px 4px 0 0;font-size:9px;color:#4f6973}
button,.btn,.sidebar-toggle,nav button,.pagination button{
  box-sizing:border-box;
  min-height:36px;
  height:36px;
  padding:0 14px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:6px;
  vertical-align:middle;
  cursor:pointer;
  white-space:nowrap;
  transition:background .15s ease,border-color .15s ease,color .15s ease,box-shadow .15s ease,opacity .15s ease}
.sidebar-toggle:hover,.pagination button:hover{
  background:#edf5f6;
  border-color:#b9d0d6;
  color:#244f5b;
}
button:focus-visible,
.btn:focus-visible,
.sidebar-toggle:focus-visible,
nav button:focus-visible,
.pagination button:focus-visible{
  outline:2px solid #7da6b1;
  outline-offset:2px;
}
.pagination button:disabled{
  opacity:.45;
  cursor:not-allowed;
  background:#f5f7f8;
  color:#8a989f;
  border-color:#d8e1e4;
}
button:disabled,.btn:disabled{
  opacity:.45;
  cursor:not-allowed}
.btn.compact,button.compact,.pagination button{
  min-height:32px;
  height:32px;
  padding:0 10px}
.sidebar-toggle{
  width:36px;
  min-width:36px;
  padding:0}
.pagination button{
  min-width:32px;
  width:32px;
  padding:0;
}
nav button{
  width:100%;
  min-height:38px;
  height:38px;
  justify-content:flex-start;
  padding:0 12px}

/* Ensure action clusters align */
.actions,
.policy-toolbar,
.product-head,
.page-controls,
.table-tools{
  align-items:center;
}
.actions .btn,
.policy-toolbar .btn,
.product-head .btn{
  min-width:104px;
}

/* Avoid stretched buttons where a compact action is preferable */
.pagination .btn,
.sidebar-toggle,
nav button{
  min-width:0;
}


/* v0.21 — Header/action toolbar normalization */
.toprow .actions{
  display:flex;
  align-items:center;
  gap:8px;
  flex-wrap:wrap;
}

/* All three header action buttons use one exact visual treatment. */
.toprow .actions > .btn,
.toprow .actions > .impersonate-wrap > .btn{
  width:112px !important;
  min-width:112px !important;
  max-width:112px !important;
  height:40px !important;
  min-height:40px !important;
  padding:0 12px !important;
  border:1px solid #bfd0d5 !important;
  border-radius:9px !important;
  background:#ffffff !important;
  color:#315f6c !important;
  font-size:11px !important;
  font-weight:600 !important;
  line-height:38px !important;
  box-shadow:none !important;
}
.toprow .actions > .btn:hover,
.toprow .actions > .impersonate-wrap > .btn:hover{
  background:#edf5f6 !important;
  border-color:#9fbec6 !important;
  color:#244f5b !important;
}

/* Do not use a solid primary button in this utility toolbar. */
.toprow .actions > .btn.primary{
  background:#ffffff !important;
  border-color:#bfd0d5 !important;
  color:#315f6c !important;
}
.toprow .actions > .btn.primary:hover{
  background:#edf5f6 !important;
  border-color:#9fbec6 !important;
  color:#244f5b !important;
}

/* User identity card now belongs to the same light design system. */
.toprow .user-menu{
  height:40px !important;
  min-height:40px !important;
  padding:4px 12px 4px 7px !important;
  border:1px solid #bfd0d5 !important;
  border-radius:9px !important;
  background:#ffffff !important;
  color:#20313b !important;
  box-shadow:none !important;
  display:flex;
  align-items:center;
}
.toprow .user-avatar{
  width:28px !important;
  height:28px !important;
  min-width:28px !important;
  border-radius:50% !important;
  background:#dcebed !important;
  color:#315f6c !important;
  display:flex;
  align-items:center;
  justify-content:center;
  font-weight:700;
}
.toprow .user-meta b{color:#20313b !important}
.toprow .user-meta span{color:#71828b !important}

/* Development badge aligns vertically with the controls instead of floating as a small pill. */
.toprow .dev-badge{
  height:40px !important;
  min-height:40px !important;
  min-width:78px !important;
  padding:0 11px !important;
  border:1px solid #d7c89e !important;
  border-radius:9px !important;
  background:#fbf7ec !important;
  color:#8b6d2c !important;
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
  font-size:9px !important;
  font-weight:700 !important;
  line-height:38px !important;
}

/* Keep impersonation wrapper from introducing different sizing. */
.toprow .impersonate-wrap{
  height:40px;
  display:flex;
  align-items:center;
}

/* The drop-down options remain menu rows, not toolbar buttons. */
.impersonate-menu .impersonate-option{
  width:100% !important;
  max-width:none !important;
  min-height:48px !important;
  height:auto !important;
  border-radius:6px !important;
  justify-content:flex-start !important;
  line-height:1.25 !important;
}


/* v0.25 — repaired Essential Eight overview + evidence preview */
.e8-overall-banner{display:flex;justify-content:space-between;gap:12px;align-items:center;flex-wrap:wrap;background:#edf5f6;border:1px solid #cadde2;border-radius:10px;padding:12px 14px;margin:0 0 12px}
.e8-overall-banner strong{color:#244f5b}
.maturity-toolbar{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap;margin:0 0 12px;padding:10px 12px;background:#f7fafb;border:1px solid #dbe4e8;border-radius:10px}
.maturity-selector{display:flex;gap:6px;align-items:center;flex-wrap:wrap}
.maturity-selector .level-btn{min-width:74px!important;width:auto!important;height:34px!important;min-height:34px!important;padding:0 12px!important;border-radius:8px!important;background:#fff!important;color:#526771!important;border:1px solid #cfdde2!important;line-height:32px!important;font-size:10px!important}
.maturity-selector .level-btn.active{background:#3f7180!important;border-color:#3f7180!important;color:#fff!important}
.maturity-help{font-size:10px;color:#71828b;max-width:640px}
.e8-summary-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin:12px 0}
.e8-summary-card{background:#fff;border:1px solid #dbe4e8;border-radius:10px;padding:12px}
.e8-summary-card .label{font-size:9px;text-transform:uppercase;letter-spacing:.08em;color:#71828b}
.e8-summary-card .value{font-size:22px;font-weight:700;color:#20313b;margin-top:3px}
.e8-summary-card .sub{font-size:10px;color:#71828b;margin-top:2px}
.e8-table-wrap{background:#fff;border:1px solid #dbe4e8;border-radius:10px;padding:12px;margin:0 0 14px}
.e8-progress{height:7px;background:#edf2f4;border-radius:999px;overflow:hidden;min-width:90px}
.e8-progress span{display:block;height:100%;background:#5f8e9a;border-radius:999px}
.e8-status-pass{color:#286b5a}.e8-status-partial{color:#8b6427}.e8-status-fail{color:#9b4545}
.level-requirement-note{font-size:9px;color:#7b8990;margin-top:3px}
.evidence-source{margin-top:12px;overflow:hidden}
.evidence-source-head{display:flex;justify-content:space-between;gap:10px;align-items:center;flex-wrap:wrap;padding:10px 12px;border-bottom:1px solid #dce6e9;background:#f1f6f7}
.evidence-source-body{padding:12px}
.evidence-preview{min-height:220px;border:1px solid #cfdde2;border-radius:9px;background:#fff;overflow:auto;display:flex;align-items:center;justify-content:center}
.evidence-preview img{display:block;max-width:100%;height:auto;cursor:zoom-in}
.evidence-source-meta{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-top:10px}
.evidence-source-meta .detail{margin:0}
.evidence-modal{position:fixed;inset:0;background:rgba(26,42,50,.62);z-index:250;display:none;align-items:center;justify-content:center;padding:28px}
.evidence-modal.open{display:flex}
.evidence-modal-card{width:min(1100px,96vw);max-height:92vh;overflow:auto;background:#fff;border-radius:12px;border:1px solid #cad9de;box-shadow:0 18px 60px rgba(20,41,50,.25)}
.evidence-modal-head{position:sticky;top:0;z-index:2;display:flex;justify-content:space-between;align-items:center;gap:10px;padding:10px 12px;background:#f4f8f9;border-bottom:1px solid #dbe4e8}
.evidence-modal-body{padding:14px}
.mock-screenshot{width:100%;min-height:300px;background:#f7f9fb;color:#24343e;font-family:Arial,sans-serif;border-radius:6px;overflow:hidden}
.mock-shot-top{height:42px;background:#fff;border-bottom:1px solid #dfe5e8;display:flex;align-items:center;padding:0 14px;gap:10px}
.mock-shot-dot{width:10px;height:10px;border-radius:50%;background:#d0d8dc}
.mock-shot-body{display:grid;grid-template-columns:150px 1fr;min-height:258px}
.mock-shot-nav{background:#eef2f5;padding:16px 12px;font-size:11px;line-height:2;color:#60727c}
.mock-shot-main{padding:20px}
.mock-shot-main h3{margin:0 0 4px;font-size:17px}
.mock-shot-main .subtle{font-size:11px;color:#71828b;margin-bottom:16px}
.mock-setting{display:flex;justify-content:space-between;gap:12px;align-items:center;padding:12px 0;border-top:1px solid #e2e8eb}
.mock-toggle{display:inline-flex;padding:4px 9px;border-radius:999px;font-size:10px;font-weight:700;background:#e5f3ed;color:#286b5a}
.mock-toggle.warn{background:#fbf2df;color:#8b6427}
.document-sheet{max-width:680px;margin:auto;padding:26px;background:#fff;border:1px solid #dfe6e9;box-shadow:0 4px 20px rgba(31,58,68,.08)}
.document-sheet h3{margin:0 0 6px;color:#244f5b}
.doc-rule{height:1px;background:#dfe7ea;margin:14px 0}
@media(max-width:1000px){.e8-summary-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:700px){.e8-summary-grid,.evidence-source-meta{grid-template-columns:1fr}.mock-shot-body{grid-template-columns:1fr}.mock-shot-nav{display:none}}
.drawerhead{
  background:#ffffff!important;
  color:#20313b!important;
  padding-bottom:12px;
  margin-bottom:12px;
  border-bottom:1px solid #e0e8eb;
}
.drawerhead h2,
.drawerhead .eyebrow{
  color:#20313b!important;
}
.drawer .x{
  width:36px!important;
  min-width:36px!important;
  height:36px!important;
  min-height:36px!important;
  padding:0!important;
  border:1px solid #cbdade!important;
  border-radius:8px!important;
  background:#ffffff!important;
  color:#31515c!important;
  font-size:20px!important;
  line-height:34px!important;
}
.drawer .x:hover{
  background:#edf5f6!important;
  color:#244f5b!important;
  border-color:#b9d0d6!important;
}
.detail b,
.detail div{
  color:#20313b!important;
}
.drawer label{
  color:#526771!important;
}
.drawer input,
.drawer select,
.drawer textarea{
  background:#ffffff!important;
  color:#20313b!important;
  border-color:#cfdde2!important;
}
.drawer .callout{
  background:#edf5f6!important;
  border-color:#cadde2!important;
  color:#526771!important;
}
.drawer .status,
.drawer .chip,
.drawer .scope-chip{
  background:#f6f9fa!important;
  color:#526771!important;
  border-color:#d5e1e5!important;
}
.drawer .policy-item,
.drawer .product-item,
.drawer .evidence-source{
  background:#ffffff!important;
  color:#20313b!important;
  border-color:#dbe4e8!important;
}
.drawer a{
  color:#4d7481!important;
}


/* v0.27 — dropdown/menu palette normalization */
.impersonate-menu,
.multi-filter-menu{
  background:#ffffff!important;
  color:#20313b!important;
  border:1px solid #d5e1e5!important;
  box-shadow:0 14px 36px rgba(31,58,68,.14)!important;
}
.impersonate-menu .dev-label{
  color:#71828b!important;
  border-bottom:1px solid #e3eaed;
  margin-bottom:4px;
}
.impersonate-option{
  background:#ffffff!important;
  color:#20313b!important;
  border:1px solid transparent!important;
}
.impersonate-option:hover{
  background:#edf5f6!important;
  border-color:#d8e6e9!important;
}
.impersonate-option b{color:#20313b!important}
.impersonate-option span{color:#71828b!important}

.multi-filter-menu label{
  color:#20313b!important;
  background:#ffffff!important;
}
.multi-filter-menu label:hover{
  background:#edf5f6!important;
}
.multi-filter-menu input{
  accent-color:#3f7180!important;
}
.multi-filter-summary{
  color:#526771!important;
}

/* Header contextual action */
#contextActionBtn[disabled]{
  opacity:.45!important;
  cursor:not-allowed!important;
}


/* v0.28 — responsive workspace and evidence layout repair */
.app{
  grid-template-columns:280px minmax(0,1fr)!important;
  transition:grid-template-columns .18s ease;
  width:100%;
}
main{
  width:100%!important;
  max-width:none!important;
  min-width:0!important;
}
.card,
.grid > *{
  min-width:0;
}
body.sidebar-collapsed .app{
  grid-template-columns:0 minmax(0,1fr)!important;
}
body.sidebar-collapsed aside{
  width:280px;
  overflow:hidden;
}
body.sidebar-collapsed main{
  width:100%!important;
  max-width:none!important;
}
.table-scroll{
  width:100%;
  min-width:0;
  overflow-x:auto;
  -webkit-overflow-scrolling:touch;
}
.table-scroll table{
  width:100%;
  min-width:760px;
}
#evidence .grid{
  align-items:start;
}
#evidence .evidence-register-card,
#evidence .evidence-strength-card{
  overflow:hidden;
}
#evidence .filters{
  display:grid!important;
  grid-template-columns:repeat(auto-fit,minmax(150px,1fr))!important;
  gap:10px!important;
  width:100%;
}
#evidence .filters input,
#evidence .filters select,
#evidence .filters .multi-filter{
  width:100%!important;
  max-width:none!important;
  min-width:0!important;
}
#evidence .multi-filter-btn{
  width:100%!important;
}
#evidence th,
#evidence td{
  overflow-wrap:anywhere;
  word-break:normal;
}
#evidence .evidence-strength-card .callout{
  overflow-wrap:anywhere;
}
@media(max-width:1180px){
  #evidence .evidence-register-card,
  #evidence .evidence-strength-card{
    grid-column:span 12!important;
  }
  #evidence .evidence-strength-card{
    order:2;
  }
}


/* v0.29 — record editing */
.record-actions{
  display:flex;
  gap:8px;
  align-items:center;
  flex-wrap:wrap;
  margin-top:14px;
  padding-top:12px;
  border-top:1px solid #e1e8eb;
}
.edit-audit-note{
  margin-top:10px;
  padding:10px 12px;
  border:1px solid #d5e2e6;
  border-radius:9px;
  background:#f6f9fa;
  color:#60737d;
  font-size:10px;
}
.edit-audit-note b{color:#315f6c}
.change-summary{
  margin-top:10px;
  padding:10px 12px;
  border-left:3px solid #8db0b9;
  background:#f2f7f8;
  color:#526771;
  font-size:10px;
}


/* v0.30 — record controls at top of subscreens */
.drawer-record-actions{display:flex;gap:8px;align-items:center;flex-wrap:wrap;margin:0 0 14px;padding:0 0 12px;border-bottom:1px solid #e1e8eb}
.drawer-record-actions .btn{margin:0!important}

/* v0.31 — required-field treatment */
.req{color:#9b4545;font-weight:700;margin-left:2px}
.required-note{font-size:10px;color:#71828b;margin:0 0 10px}
.field-error{border-color:#c96b6b!important;background:#fff8f8!important}
.validation-error{margin:8px 0;padding:9px 11px;border:1px solid #e5c3c3;border-radius:8px;background:#fff5f5;color:#8d3f3f;font-size:10px}


/* v0.32 — obvious required field labels */
.drawer label:has(input[required]),
.drawer label:has(select[required]),
.drawer label:has(textarea[required]){
  font-weight:700!important;
  color:#263f49!important;
}
.drawer label .req{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  margin-left:6px!important;
  padding:2px 6px;
  border-radius:999px;
  background:#f9e9e9;
  border:1px solid #e7c2c2;
  color:#9b4545!important;
  font-size:8px;
  line-height:1.2;
  font-weight:800;
  letter-spacing:.04em;
  text-transform:uppercase;
  vertical-align:middle;
}
.drawer label:has(input[required]) input,
.drawer label:has(select[required]) select,
.drawer label:has(textarea[required]) textarea{
  border-left:3px solid #b85b5b!important;
}
.required-legend{
  display:flex;
  align-items:center;
  gap:7px;
  margin:0 0 12px;
  padding:8px 10px;
  border-radius:8px;
  background:#fff7f7;
  border:1px solid #ecd0d0;
  color:#714646;
  font-size:10px;
}
.required-legend .req-badge{
  display:inline-flex;
  padding:2px 6px;
  border-radius:999px;
  background:#f9e9e9;
  border:1px solid #e7c2c2;
  color:#9b4545;
  font-size:8px;
  font-weight:800;
  letter-spacing:.04em;
}


/* v0.33 — reorderable table columns */
table.reorderable-columns th[draggable="true"]{cursor:grab;user-select:none}
table.reorderable-columns th[draggable="true"]:active{cursor:grabbing}
table.reorderable-columns th.col-dragging{opacity:.45}
table.reorderable-columns th.col-drop-before{box-shadow:inset 3px 0 0 #5f8e9a}
table.reorderable-columns th.col-drop-after{box-shadow:inset -3px 0 0 #5f8e9a}
table.reorderable-columns th .col-grip{
  display:inline-block;margin-right:5px;color:#9aabb2;font-size:10px;letter-spacing:-1px
}


/* v0.35 — task-oriented UI guidance */
.task-guidance{
  display:flex;
  justify-content:space-between;
  gap:16px;
  align-items:flex-start;
  margin:0 0 16px;
  padding:12px 14px;
  background:#f7fafb;
  border:1px solid #dbe4e8;
  border-radius:10px;
}
.task-guidance-title{
  font-size:12px;
  font-weight:700;
  color:#244f5b;
  margin-bottom:3px;
}
.task-guidance-body{
  max-width:920px}
.task-guidance-why{
  margin-top:5px}
.task-guidance-why b{color:#526771}
.architecture-explainer,
.technical-model-card{
  display:none!important;
}


/* v0.36 — record subscreen positioning repair */
#drawer.drawer{
  display:none!important;
  position:fixed!important;
  top:0!important;
  right:0!important;
  bottom:0!important;
  left:auto!important;
  width:min(680px,96vw)!important;
  max-width:680px!important;
  height:100dvh!important;
  max-height:100dvh!important;
  overflow-y:auto!important;
  overflow-x:hidden!important;
  padding:22px!important;
  margin:0!important;
  background:#ffffff!important;
  border-left:1px solid #dbe4e8!important;
  z-index:1001!important;
  box-shadow:-18px 0 48px rgba(31,58,68,.18)!important;
  transform:translateX(102%);
  transition:transform .18s ease;
}
#drawer.drawer.open{
  display:block!important;
  transform:translateX(0)!important;
}
body.drawer-open{
  overflow:hidden;
}
body.drawer-open::after{
  content:"";
  position:fixed;
  inset:0;
  background:rgba(31,49,59,.18);
  z-index:1000;
  pointer-events:none;
}
#drawer .drawerhead{
  position:sticky;
  top:-22px;
  z-index:2;
  margin:-22px -22px 14px!important;
  padding:18px 22px 12px!important;
  background:#ffffff!important;
  border-bottom:1px solid #e0e8eb!important;
}
#drawerBody{
  display:block!important;
  width:100%!important;
  min-width:0!important;
}


/* v0.37 — workspace containment safeguard */
main > section.view{
  width:100%;
  min-width:0;
}
main{
  align-self:start;
}


/* v0.38 — structural safeguard: application views remain in the main workspace */
main > section.view{position:relative;min-width:0;width:100%}
.topbar,.header{
  background:rgba(242,246,247,.97)!important;
  border-bottom-color:#cbd9de!important;
}
.card h2,.card h3,.panel h2,.panel h3,.drawer h2,.drawer h3,
.product-item h4,.policy-item h4{
  color:#173541!important;
}
.task-guidance{
  background:#f5fafb!important;
  border-color:#cbdde2!important;
}
.task-guidance-title{
  color:#1d4a58!important;
}
.task-guidance-why b{
  color:#314f5b!important;
}
tbody tr:hover{
  background:#edf5f7!important;
}
.scope-chip,.policy-date-confidence,.chip{
  background:#f2f7f8!important;
  color:#415e69!important;
  border-color:#c9d8dd!important;
}
.rbac-context,.audit-access-panel{
  background:#eef6f7!important;
  border-color:#bfd4da!important;
  color:#415f69!important;
}
.callout b,.rbac-context b,.audit-access-panel b{
  color:#214c59!important;
}
.e8-context{
  background:#fffaf0!important;
  border-color:#e3cf9f!important;
}
.e8-context h3{
  color:#7a5a1b!important;
}
.e8-context p{
  color:#5b6570!important;
}
.e8-chip{
  background:#243b45!important;
  color:#ffffff!important;
  border-color:#243b45!important;
}
.e8-summary-card{
  border-color:#c9d8dd!important;
}
.e8-summary-card .label{
  color:#526b76!important;
}
.e8-summary-card .value{
  color:#173541!important;
}
.e8-progress{
  background:#dfe9ec!important;
}
.e8-progress span{
  background:#4f8390!important;
}
.breadcrumbs{
  color:#607680!important;
}
.breadcrumbs button{
  color:#386573!important;
}
.breadcrumbs .crumb-current{
  color:#173541!important;
}
.filter-label{
  color:#526b76!important;
}
.required-legend{
  color:#704444!important;
}
.drawer label{
  color:#3c5964!important;
}
.drawer .detail{
  border-color:#cbd9de!important;
}
.drawer .detail span{
  color:#607680!important;
}
.drawer .detail b{
  color:#173541!important;
}
.impersonate-menu,.multi-filter-menu{
  border-color:#c8d7dc!important;
}
.impersonate-option b{
  color:#173541!important;
}
.impersonate-option span{
  color:#607680!important;
}
.dev-badge{
  color:#76591f!important;
  border-color:#d8c48c!important;
  background:#fff8e6!important;
}
.user-menu{
  color:#173541!important;
}


/* v0.40 — overview headline metrics */
#overview > .grid:first-child{
  margin-top:0!important;
  margin-bottom:16px!important;
}
#overview > .grid:first-child .metric{
  min-height:74px;
}


/* v0.41 — assurance progression over time */
.progress-section{
  margin:0 0 16px;
  background:#ffffff;
  border:1px solid #cbd9de;
  border-radius:12px;
  padding:14px;
}
.progress-head{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:12px;
  flex-wrap:wrap;
  margin-bottom:12px;
}
.progress-head h3{margin:0 0 3px;color:#173541}
.progress-controls{
  display:flex;
  gap:8px;
  align-items:center;
  flex-wrap:wrap;
}
.progress-controls .segmented{
  display:flex;
  gap:4px;
  padding:3px;
  background:#eef4f6;
  border:1px solid #cbd9de;
  border-radius:9px;
}
.progress-controls .segmented button{
  min-width:52px!important;
  width:auto!important;
  height:30px!important;
  min-height:30px!important;
  padding:0 10px!important;
  border:0!important;
  background:transparent!important;
  color:#526b76!important;
  line-height:30px!important;
  font-size:10px!important;
  box-shadow:none!important;
}
.progress-controls .segmented button.active{
  background:#ffffff!important;
  color:#214c59!important;
  box-shadow:0 1px 4px rgba(31,58,68,.08)!important;
}
.progress-chart{
  width:100%;
  min-height:280px;
  border:1px solid #d8e3e7;
  border-radius:10px;
  background:#fbfdfd;
  padding:8px;
  overflow:hidden;
}
.progress-chart svg{
  width:100%;
  height:280px;
  display:block;
}
.progress-grid-line{stroke:#dde7ea;stroke-width:1}
.progress-axis-label{fill:#71828b;font-size:10px}
.progress-line{fill:none;stroke:#4f8390;stroke-width:3}
.progress-point{fill:#ffffff;stroke:#4f8390;stroke-width:3}
.progress-milestone{stroke:#a8742a;stroke-width:1.5;stroke-dasharray:4 4}
.progress-milestone-label{fill:#7f5b20;font-size:9px}
.progress-legend{
  display:flex;
  gap:12px;
  flex-wrap:wrap;
  margin-top:8px;
  font-size:10px;
  color:#526b76;
}
.progress-legend-item{display:flex;gap:5px;align-items:center}
.progress-legend-dot{width:8px;height:8px;border-radius:50%;background:#4f8390}
.progress-delta-grid{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:10px;
  margin:12px 0 0;
}
.progress-delta{
  border:1px solid #d7e2e6;
  border-radius:10px;
  padding:11px 12px;
  background:#f9fbfc;
}
.progress-delta .label{
  font-size:9px;
  text-transform:uppercase;
  letter-spacing:.07em;
  color:#71828b;
}
.progress-delta .value{
  font-size:20px;
  font-weight:700;
  color:#173541;
  margin-top:2px;
}
.progress-delta .movement{
  font-size:10px;
  margin-top:3px;
  color:#526b76;
}
.progress-delta .movement.good{color:#24705f}
.progress-delta .movement.warn{color:#8a6424}
.assurance-timeline{
  margin-top:14px;
  border-top:1px solid #dbe4e8;
  padding-top:12px;
}
.assurance-timeline h4{
  margin:0 0 8px;
  color:#173541;
}
.timeline-list{
  display:grid;
  gap:8px;
}
.timeline-item{
  display:grid;
  grid-template-columns:110px 12px minmax(0,1fr);
  gap:10px;
  align-items:start;
}
.timeline-date{
  font-size:10px;
  color:#607680;
  padding-top:2px;
}
.timeline-marker{
  width:10px;height:10px;border-radius:50%;
  background:#4f8390;
  margin-top:3px;
  position:relative;
}
.timeline-marker:after{
  content:"";
  position:absolute;
  top:10px;left:4px;
  width:1px;height:calc(100% + 22px);
  background:#d4e0e4;
}
.timeline-item:last-child .timeline-marker:after{display:none}
.timeline-content{
  background:#f7fafb;
  border:1px solid #dbe4e8;
  border-radius:9px;
  padding:9px 10px;
}
.timeline-content b{color:#244f5b}
.timeline-content .note{margin-top:2px}
.snapshot-badge{
  display:inline-flex;
  align-items:center;
  padding:2px 6px;
  border-radius:999px;
  background:#edf5f6;
  border:1px solid #cadde2;
  color:#315f6c;
  font-size:8px;
  font-weight:700;
  margin-left:5px;
}
@media(max-width:900px){
  .progress-delta-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:600px){
  .progress-delta-grid{grid-template-columns:1fr}
  .timeline-item{grid-template-columns:1fr}
  .timeline-marker{display:none}
}


/* v0.43 — collapsible overview progression */
.collapse-card{
  border:1px solid #cbd9de;
  border-radius:12px;
  background:#ffffff;
  overflow:hidden;
}
.collapse-head{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:12px;
  padding:12px 14px;
  cursor:pointer;
  user-select:none;
}
.collapse-head:hover{background:#f7fafb}
.collapse-title{min-width:0}
.collapse-title h3,.collapse-title h4{margin:0;color:#173541}
.collapse-title .note{margin-top:3px}
.collapse-toggle{
  width:34px!important;
  min-width:34px!important;
  height:34px!important;
  min-height:34px!important;
  padding:0!important;
  border-radius:8px!important;
  font-size:14px!important;
}
.collapse-body{
  border-top:1px solid #dbe4e8;
  padding:12px 14px 14px;
}
.collapse-card.collapsed > .collapse-body{display:none}
.collapse-card.collapsed > .collapse-head .collapse-toggle{transform:rotate(-90deg)}
.sub-collapse{
  border:1px solid #dbe4e8;
  border-radius:10px;
  background:#fbfdfd;
  margin-top:10px;
  overflow:hidden;
}
.sub-collapse .collapse-head{
  padding:10px 12px;
}
.sub-collapse .collapse-body{
  padding:10px 12px 12px;
}
.progress-section{
  padding:0!important;
  border:0!important;
  background:transparent!important;
  margin:0 0 16px!important;
}


/* v0.44 — independent record actions */
.drawer-record-actions:empty{display:none}
.drawer-record-actions .lifecycle-actions{margin-top:0!important}
.lifecycle-actions .btn{margin:0!important}


/* v0.45 — explicit lifecycle confirmation */
.lifecycle-confirm-panel{
  border:1px solid #c8d9de;
  border-radius:10px;
  background:#f8fbfc;
  margin-bottom:14px;
  overflow:hidden;
}
.lifecycle-confirm-head{
  display:flex;
  justify-content:space-between;
  gap:10px;
  align-items:center;
  padding:10px 12px;
  background:#eef5f7;
  border-bottom:1px solid #d5e2e6;
}
.lifecycle-confirm-head b{color:#214c59}
.lifecycle-confirm-body{padding:12px}
.lifecycle-confirm-body label{
  display:block;
  font-weight:700;
  color:#263f49;
}
.lifecycle-confirm-body textarea{
  width:100%;
  min-height:90px;
  margin-top:6px;
}


/* v0.46 — lifecycle reason tooltip */
.record-state-with-info{
  display:inline-flex;
  align-items:center;
  gap:6px;
}
.lifecycle-info{
  position:relative;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:16px;
  height:16px;
  min-width:16px;
  border-radius:50%;
  border:1px solid #9eb8c1;
  background:#edf5f7;
  color:#285766;
  font-size:10px;
  line-height:1;
  font-weight:800;
  cursor:help;
  font-family:Arial,sans-serif;
}
.lifecycle-info:hover,
.lifecycle-info:focus{
  background:#dfeef1;
  border-color:#6f99a5;
  outline:none;
}
.lifecycle-info::after{
  content:attr(data-tooltip);
  display:none;
  position:absolute;
  z-index:2005;
  left:50%;
  bottom:calc(100% + 8px);
  transform:translateX(-50%);
  width:max-content;
  max-width:320px;
  white-space:pre-line;
  padding:8px 10px;
  border-radius:8px;
  background:#173541;
  color:#ffffff;
  font-size:10px;
  font-weight:400;
  line-height:1.45;
  box-shadow:0 8px 22px rgba(23,53,65,.22);
  pointer-events:none;
}
.lifecycle-info::before{
  content:"";
  display:none;
  position:absolute;
  z-index:2006;
  left:50%;
  bottom:calc(100% + 3px);
  transform:translateX(-50%);
  border:5px solid transparent;
  border-top-color:#173541;
}
.lifecycle-info:hover::after,
.lifecycle-info:hover::before,
.lifecycle-info:focus::after,
.lifecycle-info:focus::before{
  display:block;
}


/* v0.47 — record state history */
.lifecycle-history{
  margin-top:14px;
  border:1px solid #cbd9de;
  border-radius:10px;
  background:#ffffff;
  overflow:hidden;
}
.lifecycle-history-head{
  display:flex;
  justify-content:space-between;
  gap:10px;
  align-items:center;
  padding:10px 12px;
  background:#f4f8f9;
  border-bottom:1px solid #dbe4e8;
}
.lifecycle-history-head b{color:#214c59}
.lifecycle-history-list{display:grid}
.lifecycle-history-item{
  display:grid;
  grid-template-columns:120px 150px minmax(0,1fr);
  gap:12px;
  align-items:start;
  padding:10px 12px;
  border-bottom:1px solid #e3eaed;
}
.lifecycle-history-item:last-child{border-bottom:0}
.lifecycle-history-date{font-size:10px;color:#607680;line-height:1.4}
.lifecycle-history-who{font-size:10px;color:#415e69;line-height:1.4}
.lifecycle-history-who b{color:#244f5b}
.lifecycle-history-reason{font-size:10px;color:#314f5b;line-height:1.45}
.lifecycle-history-reason b{color:#173541}
.lifecycle-history-state{
  display:inline-flex;
  align-items:center;
  gap:6px;
  margin-top:4px;
  font-size:9px;
  font-weight:700;
  color:#526b76;
}
.lifecycle-history-state .arrow{color:#92a3aa}
.lifecycle-history-empty{padding:12px;color:#71828b;font-size:10px}
@media(max-width:700px){
  .lifecycle-history-item{grid-template-columns:1fr}
}


/* v0.48 — grouped Overview summaries */
.overview-summary-group{
  display:grid;
  gap:12px;
  margin-bottom:16px;
}
.overview-summary-group > .grid{
  margin:0!important;
}
.overview-assurance-summary{
  display:grid;
  gap:10px;
  padding:12px;
  border:1px solid #cbd9de;
  border-radius:12px;
  background:#f8fbfc;
}
.overview-assurance-summary .maturity-toolbar{
  margin:0!important;
}
.overview-assurance-summary .e8-overall-banner{
  margin:0!important;
}
.overview-assurance-summary .e8-summary-grid{
  margin:0!important;
}
#overview .progress-section{
  margin-top:0!important;
}


/* v0.49 — maturity selector treated as a header-level filter */
#overview .maturity-toolbar{
  display:grid!important;
  grid-template-columns:minmax(0,1fr) auto!important;
  align-items:center!important;
  gap:16px!important;
  padding:8px 10px!important;
}
#overview .maturity-toolbar-copy{
  min-width:0;
}
#overview .maturity-selector{
  justify-self:end;
  align-self:center;
  flex-wrap:nowrap!important;
}
#overview .maturity-selector .level-btn{
  height:32px!important;
  min-height:32px!important;
  min-width:74px!important;
  line-height:30px!important;
}
@media(max-width:680px){
  #overview .maturity-toolbar{
    grid-template-columns:1fr!important;
  }
  #overview .maturity-selector{
    justify-self:start;
  }
}


/* v0.50 — security/data protection page */
.security-posture-card{position:relative}
.security-status{
  display:inline-flex;
  align-items:center;
  padding:3px 8px;
  border-radius:999px;
  font-size:9px;
  font-weight:700;
  margin:0 0 10px;
}
.security-status.warn{
  background:#f8edd8;
  border:1px solid #ddc58e;
  color:#7f5b20;
}
.security-status.pass{
  border:1px solid #acd8ca;
}
.security-list{display:grid;gap:7px}
.security-list > div{
  display:flex;
  justify-content:space-between;
  gap:14px;
  padding:8px 0;
  border-bottom:1px solid #e3eaed;
  font-size:10px;
}
.security-list > div:last-child{border-bottom:0}
.security-list b{color:#244f5b}
.security-list span{color:#526b76;text-align:right}
.security-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:8px;
}
.security-control{
  padding:10px;
  border:1px solid #dbe4e8;
  border-radius:9px;
  background:#f8fbfc;
}
.security-control span{
  display:block;
  font-size:9px;
  color:#71828b;
  text-transform:uppercase;
  letter-spacing:.05em;
  margin-bottom:4px;
}
.security-control b{
  color:#244f5b;
  font-size:10px;
  line-height:1.4;
}
.storage-model{
  display:grid;
  grid-template-columns:1fr auto 1fr auto 1fr;
  gap:10px;
  align-items:center;
}
.storage-model > div:not(.storage-arrow){
  min-height:88px;
  padding:12px;
  border:1px solid #d5e1e5;
  border-radius:10px;
  background:#f8fbfc;
}
.storage-model b{
  display:block;
  color:#244f5b;
  margin-bottom:5px;
}
.storage-model span{
  font-size:10px;
  line-height:1.45;
  color:#526b76;
}
.storage-arrow{
  color:#75909b;
  font-size:18px;
}
@media(max-width:800px){
  .security-grid{grid-template-columns:1fr}
  .storage-model{grid-template-columns:1fr}
  .storage-arrow{transform:rotate(90deg);text-align:center}
}


/* v0.51 — company-specific framework configuration */
.framework-company-section{
  margin-top:14px;
  border:1px solid #cbd9de;
  border-radius:10px;
  overflow:hidden;
  background:#fff;
}
.framework-company-head{
  display:flex;justify-content:space-between;gap:10px;align-items:center;
  padding:10px 12px;background:#f4f8f9;border-bottom:1px solid #dbe4e8;
}
.framework-company-list{display:grid}
.framework-company-row{
  display:flex;justify-content:space-between;align-items:center;gap:12px;
  padding:10px 12px;border-bottom:1px solid #e3eaed;
}
.framework-company-row:last-child{border-bottom:0}
.framework-company-row.enabled{background:#fbfdfd}
.framework-company-actions{display:flex;align-items:center;gap:10px}
.framework-target{
  font-size:9px;font-weight:700;color:#315f6c;background:#edf5f6;
  border:1px solid #cadde2;border-radius:999px;padding:3px 7px;
}
.switch{position:relative;display:inline-block;width:38px;height:22px}
.switch input{opacity:0;width:0;height:0}
.switch-slider{
  position:absolute;cursor:pointer;inset:0;background:#cbd7db;border-radius:999px;transition:.15s;
}
.switch-slider:before{
  content:"";position:absolute;height:16px;width:16px;left:3px;top:3px;background:#fff;
  border-radius:50%;box-shadow:0 1px 3px rgba(0,0,0,.15);transition:.15s;
}
.switch input:checked + .switch-slider{background:#4f8390}
.switch input:checked + .switch-slider:before{transform:translateX(16px)}
.switch input:disabled + .switch-slider{opacity:.45;cursor:not-allowed}
.framework-library-grid{
  display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;
}
.framework-library-card{
  border:1px solid #d5e1e5;border-radius:10px;padding:12px;background:#f8fbfc;
}
.framework-library-card b{display:block;color:#244f5b}
.framework-library-card span{display:block;color:#526b76;margin:4px 0}
.framework-library-card small{color:#71828b}
.framework-library-card.planned{opacity:.65}
.framework-pill{
  display:inline-flex;margin:2px;padding:3px 7px;border-radius:999px;
  background:#edf5f6;border:1px solid #cadde2;color:#315f6c;font-size:9px;font-weight:700;
}
@media(max-width:800px){
  .framework-library-grid{grid-template-columns:1fr}
}


/* v0.52 — full evidence preview must render above record drawer */
.evidence-modal{
  position:fixed!important;
  inset:0!important;
  z-index:4000!important;
  display:none!important;
  align-items:center!important;
  justify-content:center!important;
  padding:24px!important;
  background:rgba(22,38,46,.72)!important;
  backdrop-filter:blur(2px);
}
.evidence-modal.open{display:flex!important}
.evidence-modal-card{
  width:min(1440px,calc(100vw - 48px))!important;
  height:min(920px,calc(100dvh - 48px))!important;
  max-width:none!important;
  max-height:none!important;
  overflow:hidden!important;
  display:flex!important;
  flex-direction:column!important;
  background:#fff!important;
  border:1px solid #c9d8dd!important;
  border-radius:12px!important;
  box-shadow:0 24px 80px rgba(15,31,39,.35)!important;
}
.evidence-modal-head{
  position:relative!important;
  top:auto!important;
  flex:0 0 auto!important;
  padding:12px 14px!important;
  background:#f6f9fa!important;
  border-bottom:1px solid #dbe4e8!important;
}
.evidence-modal-body{
  flex:1 1 auto!important;
  min-height:0!important;
  overflow:auto!important;
  padding:18px!important;
  background:#eef3f5!important;
}
.evidence-full-preview{
  min-height:100%;
  display:flex;
  align-items:center;
  justify-content:center;
}
.evidence-full-preview > img{
  display:block;
  max-width:100%!important;
  max-height:calc(100dvh - 150px)!important;
  width:auto!important;
  height:auto!important;
  object-fit:contain!important;
  background:#fff;
  box-shadow:0 8px 24px rgba(24,48,59,.14);
}
.evidence-full-preview .mock-screenshot{
  width:min(1180px,100%)!important;
  min-height:560px;
  margin:auto;
  background:#fff;
  box-shadow:0 8px 24px rgba(24,48,59,.14);
}
.evidence-full-preview .mock-shot-body{
  min-height:500px;
}
.evidence-full-preview .mock-shot-main{
  padding:28px!important;
}
.evidence-full-preview .document-sheet{
  width:min(900px,100%)!important;
  max-width:none!important;
  min-height:620px;
}
body.evidence-modal-open{
  overflow:hidden!important;
}
@media(max-width:700px){
  .evidence-modal{padding:8px!important}
  .evidence-modal-card{
    width:calc(100vw - 16px)!important;
    height:calc(100dvh - 16px)!important;
  }
  .evidence-modal-body{padding:10px!important}
  .evidence-full-preview .mock-screenshot{min-height:0}
  .evidence-full-preview .mock-shot-body{min-height:0}
}


/* v0.53 — typography consistency and legibility pass */

html{font-size:16px}
.readonly-note,.rbac-context,.e8-context p{
  font-size:var(--fs-ui)!important;
  line-height:var(--lh-body)!important;
}
.toprow .actions > .btn,.toprow .actions > .impersonate-wrap > .btn{
  font-family:var(--font-ui)!important;
  font-size:var(--fs-ui)!important;
}
.detail{
  padding:11px 12px!important;
  min-height:62px;
}
.detail span{
  margin-bottom:5px!important}
.detail b,
.detail div{
  font-size:13px;
  line-height:1.35;
}
.drawerhead h2{
  font-size:22px!important;
  line-height:1.2!important;
}

/* Metadata and secondary UI */
.breadcrumbs{font-size:11px!important}
.user-meta b{font-size:12px!important}
.user-meta span{font-size:11px!important}
.audit-event{font-size:12px!important}
.pagination .page-meta{
  font-size:11px!important;
}
.multi-filter-menu label{font-size:11px!important}
.impersonate-option b{font-size:12px!important}
.impersonate-option span{font-size:11px!important}
.scope-chip,.policy-date-confidence,.framework-pill,.framework-target,.rbac-mode,.audit-scope-chip,.dev-badge,.required-badge{
  font-size:10px!important;
  line-height:1.2;
}
.product-policy-link,.policy-url,.policy-meta,.product-meta,.lifecycle-history-date,.lifecycle-history-who,.lifecycle-history-reason,.lifecycle-history-empty{
  font-size:11px!important;
}

/* Essential Eight / dashboard summary */
.maturity-help{font-size:11px!important;line-height:1.45}
.e8-summary-card .label{font-size:10px!important}
.e8-summary-card .sub{font-size:11px!important}
.level-requirement-note{font-size:10px!important}
.progress-axis-label{font-size:10px}
.progress-milestone-label{font-size:10px}

/* Forms / validation */
.required-note,
.validation-error{
  font-size:11px!important;
  line-height:1.45;
}

/* Security and framework cards */
.security-list > div,
.security-control b,
.storage-model span{
  font-size:11px!important;
}
.security-control span{
  font-size:10px!important;
}
.framework-library-card small{
  font-size:11px;
  line-height:1.4;
}

/* Keep mock evidence previews visually representative of external systems. */
.mock-screenshot{
  font-family:Arial,sans-serif!important;
}
.mock-shot-nav{font-size:11px!important}
.mock-shot-main .subtle{font-size:11px!important}
.mock-toggle{font-size:10px!important}


/* v0.54 — per-user light/dark themes */
:root{
  --theme-bg:var(--ui-background);
  --theme-panel:var(--ui-surface);
  --theme-panel-2:var(--ui-subtle);
  --theme-panel-3:var(--ui-subtle);
  --theme-text:var(--ui-heading);
  --theme-text-2:var(--ui-ink);
  --theme-muted:var(--ui-muted);
  --theme-line:var(--ui-border);
  --theme-accent:var(--ui-primary);
  --theme-accent-2:var(--ui-primary-hover);
  --theme-hover:var(--ui-subtle);
  --theme-sidebar:var(--ui-surface);
  --theme-input:var(--ui-surface);
  --theme-shadow:var(--ui-shadow-dialog);
}

body[data-theme="dark"]{
  --theme-bg:var(--ui-background);
  --theme-panel:var(--ui-surface);
  --theme-panel-2:var(--ui-subtle);
  --theme-panel-3:var(--ui-subtle);
  --theme-text:var(--ui-heading);
  --theme-text-2:var(--ui-ink);
  --theme-muted:var(--ui-muted);
  --theme-line:var(--ui-border);
  --theme-accent:var(--ui-primary);
  --theme-accent-2:var(--ui-primary-hover);
  --theme-hover:var(--ui-subtle);
  --theme-sidebar:var(--ui-surface);
  --theme-input:var(--ui-surface);
  --theme-shadow:var(--ui-shadow-dialog);
}

/* Header theme toggle */
.theme-toggle-btn{
  display:inline-flex!important;
  align-items:center;
  justify-content:center;
  gap:7px;
  min-width:108px;
  height:36px;
  padding:0 11px!important;
  border:1px solid var(--theme-line)!important;
  border-radius:8px!important;
  background:var(--theme-panel)!important;
  color:var(--theme-text)!important;
  font-size:12px!important;
  font-weight:600;
  white-space:nowrap;
}
.theme-toggle-btn:hover{
  background:var(--theme-hover)!important;
}
.theme-toggle-icon{
  width:16px;
  font-size:15px;
  line-height:1;
  text-align:center;
}
.theme-toggle-label{
  font-size:11px;
  line-height:1;
}

/* Global surfaces */
body[data-theme]{
  background:var(--theme-bg)!important;
  color:var(--theme-text)!important;
}
body[data-theme] .framework-company-section,body[data-theme] .framework-library-card,body[data-theme] .security-control,body[data-theme] .storage-model > div:not(.storage-arrow),body[data-theme] .overview-summary-group,body[data-theme] .overview-assurance-summary,body[data-theme] .progress-section,body[data-theme] .e8-summary-card,body[data-theme] .task-guidance{
  background:var(--theme-panel)!important;
  color:var(--theme-text)!important;
  border-color:var(--theme-line)!important;
}
body[data-theme] .framework-company-head,
body[data-theme] .evidence-modal-head{
  background:var(--theme-panel-2)!important;
  border-color:var(--theme-line)!important;
}
body[data-theme] tbody tr:hover{background:var(--theme-hover)!important}
body[data-theme="dark"] .row-inactive td{background:rgba(168,116,42,.12)!important;color:#d4b77f!important}
body[data-theme="dark"] .row-archived td{background:rgba(147,168,177,.07)!important;color:#879ba4!important}

/* User / menus */
body[data-theme] .user-menu,
body[data-theme] .multi-filter-menu,
body[data-theme] .impersonate-menu{
  background:var(--theme-panel)!important;
  color:var(--theme-text)!important;
  border-color:var(--theme-line)!important;
  box-shadow:0 18px 50px var(--theme-shadow)!important;
}
body[data-theme] .impersonate-option{color:var(--theme-text-2)!important}
body[data-theme] .impersonate-option:hover,
body[data-theme] .multi-filter-menu label:hover{
  background:var(--theme-hover)!important;
}
body[data-theme] .user-avatar{
  background:color-mix(in srgb,var(--theme-accent) 16%,transparent)!important;
  color:var(--theme-accent-2)!important;
}

/* v0.99 — compact development context; impersonation stays separate */
.developer-context{position:relative}
.toprow .developer-context.user-menu{
  padding-right:7px!important;
  max-width:230px;
}
.developer-context .user-meta{min-width:0}
.developer-context .user-meta b,
.developer-context .user-meta span{
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.developer-context-summary{
  display:none;
  position:absolute;
  right:0;
  top:calc(100% + 6px);
  z-index:70;
  width:290px;
  padding:10px 11px;
  border:1px solid var(--theme-line,#d5e1e5);
  border-radius:9px;
  background:var(--theme-panel,#fff);
  color:var(--theme-muted,#71828b);
  box-shadow:0 14px 36px var(--theme-shadow,rgba(31,58,68,.14));
  font-size:10px;
  line-height:1.45;
}
.developer-context.open .developer-context-summary{display:block}
.developer-context-summary b{color:var(--theme-text,#20313b)}
.toprow .actions{
  justify-content:flex-end;
  margin-left:auto;
}
.toprow .actions > .impersonate-wrap{height:40px}
.toprow .actions > .header-dev-badge{
  height:40px!important;
  min-height:40px!important;
  min-width:78px!important;
  padding:0 11px!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  white-space:nowrap;
}
@media(max-width:700px){
  .developer-context .user-meta{display:none}
  .toprow .developer-context.user-menu{padding-right:5px!important}
  .developer-context-summary{right:auto;left:0;width:min(290px,calc(100vw - 32px))}
}

/* Context / breadcrumbs / chips */
body[data-theme] .breadcrumbs,
body[data-theme] .breadcrumbs button{color:var(--theme-muted)!important}
body[data-theme] .breadcrumbs .crumb-current{color:var(--theme-text)!important}
body[data-theme] .rbac-context,body[data-theme] .audit-access-panel,body[data-theme] .e8-context{
  background:var(--theme-panel-2)!important;
  color:var(--theme-text-2)!important;
  border-color:var(--theme-line)!important;
}
body[data-theme] .scope-chip,body[data-theme] .framework-pill,body[data-theme] .framework-target,body[data-theme] .policy-date-confidence,body[data-theme] .audit-scope-chip,body[data-theme] .rbac-mode{
  background:var(--theme-panel-2)!important;
  color:var(--theme-text-2)!important;
  border-color:var(--theme-line)!important;
}

/* Framework / security surfaces */
body[data-theme] .framework-company-row{
  background:var(--theme-panel)!important;
  border-color:var(--theme-line)!important;
}
body[data-theme] .framework-company-row.enabled{background:var(--theme-panel-2)!important}
body[data-theme] .security-list > div{border-color:var(--theme-line)!important}
body[data-theme] .security-list b,
body[data-theme] .security-control b,
body[data-theme] .storage-model b{color:var(--theme-text)!important}
body[data-theme] .security-list span,
body[data-theme] .storage-model span,
body[data-theme] .security-control span{color:var(--theme-muted)!important}

/* Maturity controls */
body[data-theme] .level-btn{
  background:var(--theme-panel)!important;
  color:var(--theme-text-2)!important;
  border-color:var(--theme-line)!important;
}
body[data-theme] .level-btn.active{
  background:var(--theme-accent)!important;
  color:#fff!important;
  border-color:var(--theme-accent)!important;
}
body[data-theme="dark"] .level-btn.active{color:#102027!important}

/* Evidence record/drawer. Source previews intentionally retain source-system styling. */
body[data-theme] .evidence-source-card,
body[data-theme] .evidence-meta-card{
  background:var(--theme-panel)!important;
  border-color:var(--theme-line)!important;
}
body[data-theme] .evidence-modal{
  background:rgba(5,12,15,.80)!important;
}
body[data-theme] .evidence-modal-card{
  background:var(--theme-panel)!important;
  border-color:var(--theme-line)!important;
}
body[data-theme] .evidence-modal-body{
  background:var(--theme-bg)!important;
}

/* Lifecycle/history */
body[data-theme] .lifecycle-history-item,
body[data-theme] .lifecycle-confirm{
  background:var(--theme-panel-2)!important;
  border-color:var(--theme-line)!important;
}

/* Auth view */
body[data-theme] .auth-overlay{
  background:var(--theme-bg)!important;
}
body[data-theme] .auth-card{
  background:var(--theme-panel)!important;
  border-color:var(--theme-line)!important;
  color:var(--theme-text)!important;
}

/* Native controls in dark mode */
body[data-theme="dark"]{color-scheme:dark}
body[data-theme="light"]{color-scheme:light}

@media(max-width:900px){
  .theme-toggle-btn{
    min-width:36px;
    width:36px;
    padding:0!important;
  }
  .theme-toggle-label{display:none}
}


/* v0.56 — user-specific theme preference with global fallback */
.user-theme-reset{
  width:100%;
  justify-content:center;
  margin:4px 0 2px;
  font-size:11px!important;
}


/* v0.57 — compact, always-visible theme toggle */
.toprow .actions > .theme-toggle-btn,
.theme-toggle-btn{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  flex:0 0 40px!important;
  width:40px!important;
  min-width:40px!important;
  max-width:40px!important;
  height:40px!important;
  min-height:40px!important;
  max-height:40px!important;
  padding:0!important;
  margin:0!important;
  border:1px solid var(--theme-line)!important;
  border-radius:9px!important;
  background:var(--theme-panel)!important;
  color:var(--theme-text)!important;
  box-shadow:none!important;
  overflow:visible!important;
}
.toprow .actions > .theme-toggle-btn:hover,
.theme-toggle-btn:hover{
  background:var(--theme-hover)!important;
  border-color:var(--theme-accent)!important;
}
.theme-toggle-icon{
  display:block!important;
  width:auto!important;
  height:auto!important;
  font-size:18px!important;
  line-height:1!important;
  text-align:center!important;
  pointer-events:none;
}


/* v0.58 — polished top-right theme switch */
.toprow .theme-switch,
.theme-switch{
  display:inline-flex!important;
  align-items:center!important;
  gap:8px!important;
  flex:0 0 auto!important;
  height:38px!important;
  padding:4px 10px 4px 5px!important;
  margin:0!important;
  border:1px solid var(--theme-line)!important;
  border-radius:999px!important;
  background:var(--theme-panel)!important;
  color:var(--theme-text)!important;
  box-shadow:0 1px 2px var(--theme-shadow)!important;
  cursor:pointer!important;
}
.theme-switch:hover{
  background:var(--theme-hover)!important;
  border-color:var(--theme-accent)!important;
}
.theme-switch:focus-visible{
  outline:2px solid var(--theme-accent)!important;
  outline-offset:2px!important;
}
.theme-switch-track{
  position:relative;
  display:grid;
  grid-template-columns:1fr 1fr;
  align-items:center;
  width:54px;
  height:28px;
  padding:0 5px;
  border-radius:999px;
  background:var(--theme-panel-3);
  border:1px solid var(--theme-line);
  overflow:hidden;
}
.theme-switch-sun,
.theme-switch-moon{
  position:relative;
  z-index:1;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:12px;
  line-height:1;
  color:var(--theme-muted);
  pointer-events:none;
}
.theme-switch-thumb{
  position:absolute;
  z-index:0;
  top:3px;
  left:3px;
  width:20px;
  height:20px;
  border-radius:50%;
  background:var(--theme-panel);
  border:1px solid var(--theme-line);
  box-shadow:0 2px 5px var(--theme-shadow);
  transition:transform .18s ease;
}
.theme-switch[data-mode="dark"] .theme-switch-thumb{
  transform:translateX(26px);
}
.theme-switch[data-mode="light"] .theme-switch-sun,
.theme-switch[data-mode="dark"] .theme-switch-moon{
  color:var(--theme-accent-2);
  font-weight:700;
}
.theme-switch-text{
  min-width:34px;
  font-size:11px!important;
  font-weight:700;
  line-height:1;
  text-align:left;
}
@media(max-width:760px){
  .theme-switch{
    width:38px!important;
    min-width:38px!important;
    padding:4px!important;
    justify-content:center!important;
  }
  .theme-switch-track{
    width:28px;
    grid-template-columns:1fr;
  }
  .theme-switch-sun,
  .theme-switch-moon{display:none}
  .theme-switch-thumb{
    left:3px;
    transform:none!important;
  }
  .theme-switch-text{display:none}
}


/* v0.59 — theme switch in top-right of left navigation frame */
aside{
  position:relative!important;
}
aside .nav-theme-switch{
  position:absolute!important;
  top:14px!important;
  right:64px!important;
  z-index:20!important;
  height:32px!important;
  min-height:32px!important;
  padding:3px 7px 3px 4px!important;
  gap:5px!important;
  box-shadow:none!important;
}
.sidebar-toggle{
  position:fixed!important;
  top:12px!important;
  left:224px!important;
  right:auto!important;
  z-index:21!important;
  width:32px!important;
  min-width:32px!important;
  height:32px!important;
  min-height:32px!important;
  padding:0!important}
body.sidebar-collapsed .sidebar-toggle{
  position:fixed!important;
  top:12px!important;
  left:12px!important;
  right:auto!important;
}
body.sidebar-collapsed aside .nav-theme-switch{display:none!important;}
@media(max-width:760px){
  aside .nav-theme-switch{right:52px!important;width:38px!important;min-width:38px!important;}
  .sidebar-toggle{left:224px!important;}
}
aside .nav-theme-switch .theme-switch-track{
  width:46px!important;
  height:24px!important;
  padding:0 4px!important;
}
aside .nav-theme-switch .theme-switch-thumb{
  top:2px!important;
  left:2px!important;
  width:18px!important;
  height:18px!important;
}
aside .nav-theme-switch[data-mode="dark"] .theme-switch-thumb{
  transform:translateX(22px)!important;
}
aside .nav-theme-switch .theme-switch-sun,
aside .nav-theme-switch .theme-switch-moon{
  font-size:10px!important;
}
aside .nav-theme-switch .theme-switch-text{
  min-width:29px!important;
  font-size:10px!important;
}
body.sidebar-collapsed aside .nav-theme-switch,
aside.collapsed .nav-theme-switch{
  right:8px!important;
  width:32px!important;
  min-width:32px!important;
  padding:3px!important;
}
body.sidebar-collapsed aside .nav-theme-switch .theme-switch-track,
aside.collapsed .nav-theme-switch .theme-switch-track{
  width:24px!important;
  grid-template-columns:1fr!important;
}
body.sidebar-collapsed aside .nav-theme-switch .theme-switch-sun,
body.sidebar-collapsed aside .nav-theme-switch .theme-switch-moon,
body.sidebar-collapsed aside .nav-theme-switch .theme-switch-text,
aside.collapsed .nav-theme-switch .theme-switch-sun,
aside.collapsed .nav-theme-switch .theme-switch-moon,
aside.collapsed .nav-theme-switch .theme-switch-text{
  display:none!important;
}
body.sidebar-collapsed aside .nav-theme-switch .theme-switch-thumb,
aside.collapsed .nav-theme-switch .theme-switch-thumb{
  left:2px!important;
  transform:none!important;
}


/* v0.65 — complete application-shell theme propagation
   All EssentialsReady UI surfaces follow the active user's theme.
   Source evidence previews intentionally preserve source-system appearance. */

body[data-theme="dark"] .topbar,
body[data-theme="dark"] .header{
  background:var(--theme-bg)!important;
  border-color:var(--theme-line)!important;
}
body[data-theme="dark"] .toprow .actions > .btn,body[data-theme="dark"] .toprow .actions > .impersonate-wrap > .btn,body[data-theme="dark"] .toprow .user-menu{
  background:var(--theme-panel)!important;
  color:var(--theme-text-2)!important;
  border-color:var(--theme-line)!important;
}
body[data-theme="dark"] .toprow .actions > .btn:hover,
body[data-theme="dark"] .toprow .actions > .impersonate-wrap > .btn:hover,
body[data-theme="dark"] .pagination button:hover{
  background:var(--theme-hover)!important;
  color:var(--theme-text)!important;
  border-color:var(--theme-accent)!important;
}
body[data-theme="dark"] .toprow .user-avatar{
  background:var(--theme-panel-3)!important;
  color:var(--theme-accent-2)!important;
}
body[data-theme="dark"] .toprow .user-meta b{color:var(--theme-text)!important}
body[data-theme="dark"] .toprow .user-meta span{color:var(--theme-muted)!important}
body[data-theme="dark"] .toprow .dev-badge{
  background:#30291a!important;
  color:#e1c981!important;
  border-color:#5a4b29!important;
}

/* Overview, Essential Eight and progression */
body[data-theme="dark"] .e8-overall-banner,
body[data-theme="dark"] .maturity-toolbar,
body[data-theme="dark"] .e8-table-wrap,
body[data-theme="dark"] .progress-chart,
body[data-theme="dark"] .progress-delta,
body[data-theme="dark"] .timeline-content,
body[data-theme="dark"] .collapse-card,
body[data-theme="dark"] .sub-collapse,
body[data-theme="dark"] .overview-assurance-summary{
  background:var(--theme-panel)!important;
  border-color:var(--theme-line)!important;
  color:var(--theme-text)!important;
}
body[data-theme="dark"] .maturity-toolbar,
body[data-theme="dark"] .sub-collapse,
body[data-theme="dark"] .overview-assurance-summary{
  background:var(--theme-panel-2)!important;
}
body[data-theme="dark"] .e8-overall-banner strong,
body[data-theme="dark"] .progress-head h3,
body[data-theme="dark"] .progress-delta .value,
body[data-theme="dark"] .assurance-timeline h4,
body[data-theme="dark"] .timeline-content b,
body[data-theme="dark"] .collapse-title h3,
body[data-theme="dark"] .collapse-title h4{
  color:var(--theme-text)!important;
}
body[data-theme="dark"] .maturity-help,
body[data-theme="dark"] .progress-legend,
body[data-theme="dark"] .progress-delta .label,
body[data-theme="dark"] .progress-delta .movement,
body[data-theme="dark"] .timeline-date{
  color:var(--theme-muted)!important;
}
body[data-theme="dark"] .progress-controls .segmented{
  background:var(--theme-panel-3)!important;
  border-color:var(--theme-line)!important;
}
body[data-theme="dark"] .progress-controls .segmented button{
  background:transparent!important;
  color:var(--theme-muted)!important;
  border-color:transparent!important;
}
body[data-theme="dark"] .progress-controls .segmented button.active{
  background:var(--theme-panel)!important;
  color:var(--theme-text)!important;
  border-color:var(--theme-line)!important;
}
body[data-theme="dark"] .collapse-head:hover{background:var(--theme-hover)!important}
body[data-theme="dark"] .timeline-marker:after{background:var(--theme-line)!important}
body[data-theme="dark"] .snapshot-badge{
  background:var(--theme-panel-3)!important;
  color:var(--theme-text-2)!important;
  border-color:var(--theme-line)!important;
}
body[data-theme="dark"] .e8-progress{background:var(--theme-panel-3)!important}

/* Context and guidance */
body[data-theme="dark"] .e8-context{
  background:#262419!important;
  border-color:#554a2c!important;
}
body[data-theme="dark"] .e8-context h3{color:#e3ca83!important}
body[data-theme="dark"] .e8-context p{color:var(--theme-text-2)!important}
body[data-theme="dark"] .e8-context .helps-label{color:var(--theme-muted)!important}
body[data-theme="dark"] .e8-chip{
  background:var(--theme-panel-3)!important;
  color:#e6d08f!important;
  border-color:var(--theme-line)!important;
}
body[data-theme="dark"] .task-guidance-title{color:var(--theme-text)!important}
body[data-theme="dark"] .task-guidance-why b{color:var(--theme-text-2)!important}
body[data-theme="dark"] #drawer.drawer,body[data-theme="dark"] .drawerhead{
  background:var(--theme-panel)!important;
  color:var(--theme-text)!important;
  border-color:var(--theme-line)!important;
}
body[data-theme="dark"] .drawerhead h2,
body[data-theme="dark"] .drawerhead .eyebrow,
body[data-theme="dark"] .detail b,
body[data-theme="dark"] .detail div{
  color:var(--theme-text)!important;
}
body[data-theme="dark"] .drawer label{color:var(--theme-muted)!important}
body[data-theme="dark"] .drawer .x{
  background:var(--theme-panel-2)!important;
  color:var(--theme-text)!important;
  border-color:var(--theme-line)!important;
}
body[data-theme="dark"] .drawer .x:hover{background:var(--theme-hover)!important}
body[data-theme="dark"] .drawer .callout,
body[data-theme="dark"] .drawer .status,
body[data-theme="dark"] .drawer .chip,
body[data-theme="dark"] .drawer .scope-chip{
  background:var(--theme-panel-2)!important;
  color:var(--theme-text-2)!important;
  border-color:var(--theme-line)!important;
}
body[data-theme="dark"] .drawer .policy-item,
body[data-theme="dark"] .drawer .product-item,
body[data-theme="dark"] .drawer .evidence-source{
  background:var(--theme-panel)!important;
  color:var(--theme-text)!important;
  border-color:var(--theme-line)!important;
}
body[data-theme="dark"] .drawer a{color:var(--theme-accent-2)!important}

/* Menus, dropdowns and filters */
body[data-theme="dark"] .impersonate-menu,
body[data-theme="dark"] .multi-filter-menu{
  background:var(--theme-panel)!important;
  color:var(--theme-text)!important;
  border-color:var(--theme-line)!important;
}
body[data-theme="dark"] .impersonate-menu .dev-label{
  color:var(--theme-muted)!important;
  border-color:var(--theme-line)!important;
}
body[data-theme="dark"] .impersonate-option,
body[data-theme="dark"] .multi-filter-menu label{
  background:var(--theme-panel)!important;
  color:var(--theme-text)!important;
}
body[data-theme="dark"] .impersonate-option:hover,
body[data-theme="dark"] .multi-filter-menu label:hover{
  background:var(--theme-hover)!important;
}
body[data-theme="dark"] .impersonate-option b{color:var(--theme-text)!important}
body[data-theme="dark"] .impersonate-option span,
body[data-theme="dark"] .multi-filter-summary{color:var(--theme-muted)!important}

/* Edit / validation / required-field surfaces */
body[data-theme="dark"] .edit-audit-note,
body[data-theme="dark"] .change-summary{
  background:var(--theme-panel-2)!important;
  color:var(--theme-text-2)!important;
  border-color:var(--theme-line)!important;
}
body[data-theme="dark"] .edit-audit-note b{color:var(--theme-accent-2)!important}
body[data-theme="dark"] .field-error{background:#2d2021!important;border-color:#805153!important}
body[data-theme="dark"] .validation-error,
body[data-theme="dark"] .required-legend{
  background:#2d2021!important;
  color:#e3aaaa!important;
  border-color:#704649!important;
}
body[data-theme="dark"] .drawer label .req,
body[data-theme="dark"] .required-legend .req-badge{
  background:#3b2427!important;
  color:#eda4a4!important;
  border-color:#704649!important;
}

/* Lifecycle and history */
body[data-theme="dark"] .lifecycle-confirm-panel,
body[data-theme="dark"] .lifecycle-history{
  background:var(--theme-panel)!important;
  border-color:var(--theme-line)!important;
}
body[data-theme="dark"] .lifecycle-confirm-head,
body[data-theme="dark"] .lifecycle-history-head{
  background:var(--theme-panel-2)!important;
  border-color:var(--theme-line)!important;
}
body[data-theme="dark"] .lifecycle-confirm-head b,
body[data-theme="dark"] .lifecycle-history-head b,
body[data-theme="dark"] .lifecycle-history-who b,
body[data-theme="dark"] .lifecycle-history-reason b{
  color:var(--theme-text)!important;
}
body[data-theme="dark"] .lifecycle-confirm-body label,
body[data-theme="dark"] .lifecycle-history-reason,
body[data-theme="dark"] .lifecycle-history-who{
  color:var(--theme-text-2)!important;
}
body[data-theme="dark"] .lifecycle-history-date,
body[data-theme="dark"] .lifecycle-history-state,
body[data-theme="dark"] .lifecycle-history-empty{
  color:var(--theme-muted)!important;
}
body[data-theme="dark"] .lifecycle-info{
  background:var(--theme-panel-3)!important;
  color:var(--theme-accent-2)!important;
  border-color:var(--theme-line)!important;
}

/* Frameworks */
body[data-theme="dark"] .framework-company-section,
body[data-theme="dark"] .framework-company-row,
body[data-theme="dark"] .framework-library-card{
  background:var(--theme-panel)!important;
  border-color:var(--theme-line)!important;
  color:var(--theme-text)!important;
}
body[data-theme="dark"] .framework-company-head,
body[data-theme="dark"] .framework-company-row.enabled{
  background:var(--theme-panel-2)!important;
}
body[data-theme="dark"] .framework-library-card b{color:var(--theme-text)!important}
body[data-theme="dark"] .framework-library-card span{color:var(--theme-text-2)!important}
body[data-theme="dark"] .framework-library-card small{color:var(--theme-muted)!important}
body[data-theme="dark"] .framework-target,
body[data-theme="dark"] .framework-pill{
  background:var(--theme-panel-3)!important;
  color:var(--theme-accent-2)!important;
  border-color:var(--theme-line)!important;
}
body[data-theme="dark"] .switch-slider{background:#45555d!important}
body[data-theme="dark"] .switch-slider:before{background:#dce7eb!important}

/* Security & data protection */
body[data-theme="dark"] .security-posture-card,
body[data-theme="dark"] .security-control,
body[data-theme="dark"] .storage-model > div:not(.storage-arrow){
  background:var(--theme-panel)!important;
  border-color:var(--theme-line)!important;
  color:var(--theme-text)!important;
}
body[data-theme="dark"] .security-list b,
body[data-theme="dark"] .security-control b,
body[data-theme="dark"] .storage-model b{color:var(--theme-text)!important}
body[data-theme="dark"] .security-list span,
body[data-theme="dark"] .security-control span,
body[data-theme="dark"] .storage-model span,
body[data-theme="dark"] .storage-arrow{color:var(--theme-muted)!important}
body[data-theme="dark"] .evidence-source-head,body[data-theme="dark"] .evidence-preview,body[data-theme="dark"] .evidence-register-card,body[data-theme="dark"] .evidence-strength-card{
  background:var(--theme-panel)!important;
  border-color:var(--theme-line)!important;
  color:var(--theme-text)!important;
}
body[data-theme="dark"] .evidence-source-head{background:var(--theme-panel-2)!important}
body[data-theme="dark"] .evidence-modal-card{
  background:var(--theme-panel)!important;
  border-color:var(--theme-line)!important;
}
body[data-theme="dark"] .evidence-modal-head{
  background:var(--theme-panel-2)!important;
  border-color:var(--theme-line)!important;
}
body[data-theme="dark"] .evidence-modal-body{background:var(--theme-bg)!important}

/* Keep captured source evidence faithful to the original source appearance. */
body[data-theme="dark"] .mock-screenshot,
body[data-theme="dark"] .mock-shot-top,
body[data-theme="dark"] .mock-shot-nav,
body[data-theme="dark"] .document-sheet,
body[data-theme="dark"] .evidence-full-preview > img{
  color-scheme:light;
}

/* Tables and table wrappers */
body[data-theme="dark"] .tablewrap,
body[data-theme="dark"] .table-wrap,
body[data-theme="dark"] .table-scroll{
  background:var(--theme-panel)!important;
  border-color:var(--theme-line)!important;
}

/* Generic secondary text and links not already covered */
body[data-theme="dark"] .policy-meta,
body[data-theme="dark"] .product-meta,
body[data-theme="dark"] .pagination .page-meta,
body[data-theme="dark"] .filter-label,
body[data-theme="dark"] .readonly-note{
  color:var(--theme-muted)!important;
}
body[data-theme="dark"] .policy-meta b,
body[data-theme="dark"] .product-meta b{color:var(--theme-text-2)!important}
body[data-theme="dark"] .policy-url,
body[data-theme="dark"] .product-policy-link,
body[data-theme="dark"] .breadcrumbs button{
  color:var(--theme-accent-2)!important;
}

/* Light mode explicitly restores application-shell surfaces after a dark-mode switch. */
body[data-theme="light"] .topbar,
body[data-theme="light"] .header,
body[data-theme="light"] .progress-chart,
body[data-theme="light"] .progress-delta,
body[data-theme="light"] .timeline-content,
body[data-theme="light"] .collapse-card,
body[data-theme="light"] .sub-collapse,
body[data-theme="light"] .framework-company-section,
body[data-theme="light"] .framework-company-row,
body[data-theme="light"] .framework-library-card,
body[data-theme="light"] .security-control,
body[data-theme="light"] .storage-model > div:not(.storage-arrow){
  color-scheme:light;
}


/* v0.66 — dark-mode heading/readability audit across all application pages */
body[data-theme="dark"]{
  --theme-heading:#f0f6f8;
  --theme-heading-2:#d9e6ea;
  --theme-label:#afc1c8;
  --theme-label-strong:#c7d6dc;
}

/* Page and section headings */
body[data-theme="dark"] main h1,
body[data-theme="dark"] main h2,
body[data-theme="dark"] main h3,
body[data-theme="dark"] main h4,
body[data-theme="dark"] .card h2,
body[data-theme="dark"] .card h3,
body[data-theme="dark"] .card h4,
body[data-theme="dark"] .panel h2,
body[data-theme="dark"] .panel h3,
body[data-theme="dark"] .panel h4,
body[data-theme="dark"] .drawer h2,
body[data-theme="dark"] .drawer h3,
body[data-theme="dark"] .drawer h4{
  color:var(--theme-heading)!important;
}

/* Secondary section / record headings */
body[data-theme="dark"] .security-posture-card h3,
body[data-theme="dark"] .security-control b,
body[data-theme="dark"] .framework-company-head b,
body[data-theme="dark"] .framework-library-card b,
body[data-theme="dark"] .product-item h4,
body[data-theme="dark"] .policy-item h4,
body[data-theme="dark"] .task-guidance-title,
body[data-theme="dark"] .collapse-title h3,
body[data-theme="dark"] .collapse-title h4,
body[data-theme="dark"] .progress-head h3,
body[data-theme="dark"] .assurance-timeline h4,
body[data-theme="dark"] .timeline-content b,
body[data-theme="dark"] .drawerhead h2,
body[data-theme="dark"] .detail b,
body[data-theme="dark"] .storage-model b,
body[data-theme="dark"] .security-list b{
  color:var(--theme-heading-2)!important;
}
body[data-theme="dark"] .label,body[data-theme="dark"] .e8-summary-card .label,body[data-theme="dark"] .filter-label,body[data-theme="dark"] .progress-delta .label,body[data-theme="dark"] .framework-library-card small,body[data-theme="dark"] .security-control span,body[data-theme="dark"] .storage-model span,body[data-theme="dark"] .security-list span,body[data-theme="dark"] .policy-meta,body[data-theme="dark"] .product-meta,body[data-theme="dark"] .lifecycle-history-date,body[data-theme="dark"] .lifecycle-history-state{
  color:var(--theme-label)!important;
}
body[data-theme="dark"] .maturity-help,body[data-theme="dark"] .progress-legend,body[data-theme="dark"] .readonly-note{
  color:var(--theme-label)!important;
}
body[data-theme="dark"] .e8-summary-card .value,body[data-theme="dark"] .progress-delta .value,body[data-theme="dark"] .framework-library-card span,body[data-theme="dark"] .lifecycle-history-reason,body[data-theme="dark"] .lifecycle-history-who{
  color:var(--theme-label-strong)!important;
}

/* The security page highlighted in review: make its two lead headings obvious. */
body[data-theme="dark"] .security-posture-card > h3{
  color:#dcecef!important;
  font-weight:700!important;
}

/* Preserve source evidence exactly as source UI, including its own heading palette. */
body[data-theme="dark"] .mock-screenshot h1,
body[data-theme="dark"] .mock-screenshot h2,
body[data-theme="dark"] .mock-screenshot h3,
body[data-theme="dark"] .mock-screenshot h4,
body[data-theme="dark"] .document-sheet h1,
body[data-theme="dark"] .document-sheet h2,
body[data-theme="dark"] .document-sheet h3,
body[data-theme="dark"] .document-sheet h4{
  color:#24343e!important;
}
body[data-theme="dark"] .document-sheet h3{
  color:#244f5b!important;
}


/* v0.67 — CIS Controls assessment alongside Essential Eight */
.cis-summary{margin-bottom:14px}
.cis-shared-model{
  display:grid;
  grid-template-columns:1fr auto 1fr auto 1fr auto 1.2fr;
  align-items:stretch;
  gap:10px;
}
.cis-shared-model > div:not(.storage-arrow){
  min-height:84px;
  padding:14px;
  border:1px solid var(--theme-line);
  border-radius:10px;
  background:var(--theme-panel-2);
  display:flex;
  flex-direction:column;
  justify-content:center;
  gap:7px;
}
.cis-shared-model b{font-size:12px;color:var(--theme-text)!important}
.cis-shared-model span{font-size:11px;line-height:1.45;color:var(--theme-muted)!important}
.cis-shared-model .storage-arrow{display:flex;align-items:center;color:var(--theme-muted)}
body[data-theme="dark"] #cis .card,
body[data-theme="dark"] #cis .metric{
  background:var(--theme-panel)!important;
  border-color:var(--theme-line)!important;
}
body[data-theme="dark"] #cis h3{color:var(--theme-heading)!important}
body[data-theme="dark"] #cis .cis-shared-model > div:not(.storage-arrow){
  background:var(--theme-panel-2)!important;
  border-color:var(--theme-line)!important;
}
@media(max-width:1050px){
  .cis-shared-model{grid-template-columns:1fr}
  .cis-shared-model .storage-arrow{height:14px;justify-content:center;transform:rotate(90deg)}
}


/* v0.98 — multi-framework Overview hierarchy */
.framework-overview-intro{margin:18px 0 10px}
.framework-overview-intro h2,.framework-progress-header h2,.overview-deeper-heading h2{margin:0 0 4px;font-size:18px}
.framework-summary-grid,.framework-progress-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin-bottom:18px}
.framework-summary-card,.framework-progress-card{
  background:var(--theme-panel);
  border:1px solid var(--theme-line);
  border-radius:14px;
  padding:16px;
  box-shadow:var(--theme-shadow);
}
.framework-summary-head,.framework-progress-title{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}
.framework-summary-head h3,.framework-progress-title h3{margin:3px 0 0;font-size:16px}
.framework-kicker{font-size:10px;text-transform:uppercase;letter-spacing:.08em;font-weight:800;color:var(--theme-muted)}
.framework-readiness-row{display:flex;align-items:center;gap:14px;margin:18px 0 10px}
.framework-readiness-value{font-size:34px;line-height:1;font-weight:800;color:var(--theme-text)}
.framework-readiness-copy{display:flex;flex-direction:column;gap:3px}
.framework-readiness-copy b{font-size:12px;color:var(--theme-text)}
.framework-readiness-copy span{font-size:11px;line-height:1.35;color:var(--theme-muted)}
.framework-progress-track{height:7px;border-radius:999px;background:var(--theme-panel-3);overflow:hidden;margin-bottom:14px}
.framework-progress-track span{display:block;height:100%;background:var(--theme-accent);border-radius:999px}
.framework-mini-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}
.framework-mini-stats>div{padding:9px 10px;border-radius:9px;background:var(--theme-panel-2);border:1px solid var(--theme-line)}
.framework-mini-stats span{display:block;font-size:10px;color:var(--theme-muted);margin-bottom:4px}
.framework-mini-stats b{font-size:12px;color:var(--theme-text)}
.framework-expand-btn{
  width:100%;margin-top:12px;padding:9px 0 0;border:0;border-top:1px solid var(--theme-line);
  background:transparent;color:var(--theme-accent-2);font:inherit;font-size:11px;font-weight:700;
  display:flex;justify-content:space-between;cursor:pointer;text-align:left
}
.framework-expandable{display:none;padding-top:12px}
.framework-expandable.open{display:block}
.framework-detail-grid{display:grid;grid-template-columns:1fr 1fr;gap:7px;margin-bottom:10px}
.framework-detail-grid>div{display:flex;justify-content:space-between;gap:10px;padding:7px 9px;border-radius:7px;background:var(--theme-panel-2)}
.framework-detail-grid span{font-size:10px;color:var(--theme-muted)}
.framework-detail-grid b{font-size:11px;color:var(--theme-text)}
.cis-position-summary{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-bottom:10px}
.cis-position-summary>div{padding:10px;border:1px solid var(--theme-line);border-radius:8px;background:var(--theme-panel-2)}
.cis-position-summary b,.cis-position-summary small{display:block;margin-top:6px}
.cis-position-summary b{font-size:12px;color:var(--theme-text)}
.cis-position-summary small{font-size:10px;line-height:1.4;color:var(--theme-muted)}
.framework-progress-section{margin:4px 0 18px}
.framework-progress-header{margin-bottom:10px}
.framework-progress-title>b{font-size:24px;color:var(--theme-text)}
.mini-trend{height:86px;display:flex;align-items:flex-end;gap:7px;padding:10px 4px 0;margin-top:10px;border-bottom:1px solid var(--theme-line)}
.mini-trend span{flex:1;min-height:4px;background:var(--theme-accent);border-radius:4px 4px 0 0;opacity:.82}
.mini-trend-axis{display:flex;justify-content:space-around;font-size:9px;color:var(--theme-muted);padding-top:5px}
.framework-history-row{display:grid;grid-template-columns:95px 48px 1fr;gap:8px;align-items:center;padding:8px 0;border-bottom:1px solid var(--theme-line)}
.framework-history-row span,.framework-history-row small{font-size:10px;color:var(--theme-muted)}
.framework-history-row b{font-size:11px;color:var(--theme-text)}
.framework-history-empty{padding:10px;border-radius:8px;background:var(--theme-panel-2);font-size:10px;line-height:1.45;color:var(--theme-muted)}
.overview-deeper-heading{margin:20px 0 10px;padding-top:4px;border-top:1px solid var(--theme-line)}
.overview-deep-detail{opacity:.98}
body[data-theme="dark"] .framework-summary-card,
body[data-theme="dark"] .framework-progress-card{background:var(--theme-panel)!important;border-color:var(--theme-line)!important}
body[data-theme="dark"] .framework-summary-head h3,
body[data-theme="dark"] .framework-progress-title h3,
body[data-theme="dark"] .framework-overview-intro h2,
body[data-theme="dark"] .framework-progress-header h2,
body[data-theme="dark"] .overview-deeper-heading h2{color:var(--theme-heading)!important}
@media(max-width:900px){
 .framework-summary-grid,.framework-progress-grid{grid-template-columns:1fr}
 .framework-mini-stats{grid-template-columns:1fr 1fr}
}

.nav-group{margin:3px 0}.nav-group-toggle{width:100%;display:flex!important;justify-content:space-between;padding:8px 12px!important;background:transparent!important;border:0!important;color:var(--theme-muted)!important;font-size:10px!important;font-weight:800!important;text-transform:uppercase;letter-spacing:.07em}.nav-submenu{display:none;padding-left:7px}.nav-group.open .nav-submenu{display:block}.nav-submenu button{padding-left:20px!important;font-size:11px!important;position:relative}.nav-submenu button:before{content:"";position:absolute;left:9px;top:50%;width:4px;height:4px;border-radius:50%;background:var(--theme-line)}.nav-submenu button.active:before{background:var(--theme-accent)}.nist-profile-flow{display:grid;grid-template-columns:1fr auto 1fr auto 1fr;gap:10px;align-items:center}.nist-profile-flow>div{padding:14px;border:1px solid var(--theme-line);border-radius:10px;background:var(--theme-panel-2);display:flex;flex-direction:column;gap:6px}.nist-profile-flow b{color:var(--theme-text)!important}.nist-profile-flow span{font-size:11px;color:var(--theme-muted)!important}.framework-summary-grid,.framework-progress-grid{grid-template-columns:repeat(3,minmax(0,1fr))}@media(max-width:1180px){.framework-summary-grid,.framework-progress-grid{grid-template-columns:1fr 1fr}}@media(max-width:900px){.framework-summary-grid,.framework-progress-grid,.nist-profile-flow{grid-template-columns:1fr}}
.impersonation-reason-overlay{display:none;position:fixed;inset:0;z-index:5200;background:rgba(12,20,26,.58);backdrop-filter:blur(2px);align-items:center;justify-content:center;padding:20px}.impersonation-reason-overlay.open{display:flex}.impersonation-reason-modal{width:min(560px,100%);background:var(--theme-panel);border:1px solid var(--theme-line);border-radius:14px;box-shadow:0 24px 70px rgba(0,0,0,.28);padding:18px}.impersonation-reason-head{display:flex;justify-content:space-between;gap:16px;align-items:flex-start;margin-bottom:16px}.impersonation-reason-head h3{margin:3px 0 5px;font-size:18px}.impersonation-reason-modal textarea{width:100%;box-sizing:border-box;resize:vertical;min-height:96px;margin-top:6px;border:1px solid var(--theme-line);border-radius:9px;padding:10px 11px;background:var(--theme-input);color:var(--theme-text);font:inherit}.field-label{display:block;font-size:11px;font-weight:700;color:var(--theme-text-2)}.field-help{font-size:10px;line-height:1.45;color:var(--theme-muted);margin-top:6px}.impersonation-reason-error{min-height:18px;margin-top:5px;font-size:10px;color:#a34b4b}.modal-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:14px;padding-top:12px;border-top:1px solid var(--theme-line)}body[data-theme="dark"] .impersonation-reason-modal{background:var(--theme-panel)!important;border-color:var(--theme-line)!important}body[data-theme="dark"] .impersonation-reason-head h3{color:var(--theme-heading)!important}

/* v0.98 — minimal Accounts & Access local action fix */
#accounts .task-guidance{display:flex;justify-content:space-between;gap:18px;align-items:flex-start}
#accounts .task-guidance-action{flex:0 0 auto;padding-top:2px}
@media(max-width:760px){
  #accounts .task-guidance{display:block}
  #accounts .task-guidance-action{margin-top:12px}
}

/* v0.98 — Framework assessments intro */
.framework-assessment-hero{
  position:relative;
  margin:16px 0 20px!important;
  padding:26px 30px 26px 96px!important;
  min-height:104px;
  box-sizing:border-box;
  border:1px solid rgba(64,128,184,.20)!important;
  border-radius:14px!important;
  background:linear-gradient(135deg,rgba(237,246,255,.88),rgba(249,252,255,.96))!important;
  box-shadow:0 8px 24px rgba(24,63,91,.045);
}
.framework-assessment-hero::before{
  content:"◇";
  position:absolute;
  left:28px;
  top:50%;
  transform:translateY(-50%);
  width:46px;height:46px;
  display:grid;place-items:center;
  border-radius:12px;
  background:rgba(52,137,205,.08);
  border:1px solid rgba(52,137,205,.10);
  color:#1775b9;
  font-size:25px;
  font-weight:800;
}
.framework-assessment-hero .eyebrow{
  margin-bottom:5px!important;
  letter-spacing:.16em!important;
}
.framework-assessment-hero h2,
.framework-assessment-hero h3{
  margin:0 0 9px!important;
  line-height:1.18!important;
}
.framework-assessment-hero .note,
.framework-assessment-hero p{
  margin:0!important;
  max-width:1040px;
  line-height:1.6!important;
}
body[data-theme="dark"] .framework-assessment-hero{
  background:linear-gradient(135deg,rgba(18,39,53,.96),rgba(17,31,41,.96))!important;
  border-color:rgba(100,171,218,.22)!important;
  box-shadow:none;
}
body[data-theme="dark"] .framework-assessment-hero::before{
  background:rgba(64,153,211,.12);
  border-color:rgba(100,171,218,.18);
  color:#73bce9;
}
@media(max-width:720px){
  .framework-assessment-hero{
    padding:22px 20px!important;
    min-height:0;
  }
  .framework-assessment-hero::before{display:none}
}


/* v0.98 — targeted Organisation Profile form refinement */
#companies .card{overflow:visible}
#companies .card h3{margin-bottom:7px}
#companies .task-guidance{margin-top:12px}
.org-conditional-field{display:block}
.address-lookup{position:relative}
.address-search-row{position:relative}
.address-search-row input{padding-right:36px!important}
.address-search-icon{position:absolute;right:12px;top:50%;transform:translateY(-50%);color:var(--theme-muted);pointer-events:none;font-size:18px}
.address-suggestions{display:none;position:absolute;z-index:1800;left:0;right:0;top:39px;background:var(--theme-panel);border:1px solid var(--theme-line);border-radius:9px;box-shadow:0 12px 28px rgba(20,45,61,.14);overflow:hidden}
.address-suggestions.open{display:block}
.address-suggestions button{display:block;width:100%;border:0;border-bottom:1px solid var(--theme-line);background:transparent;color:var(--theme-text);text-align:left;padding:10px 12px;font:inherit;cursor:pointer}
.address-suggestions button:last-child{border-bottom:0}
.address-suggestions button:hover{background:rgba(51,133,188,.08)}
.address-empty{padding:10px 12px;color:var(--theme-muted);font-size:11px}
.text-action{border:0;background:transparent;padding:7px 0 0;color:var(--theme-accent);font:inherit;font-size:11px;cursor:pointer}
.manual-address-fields{display:none;margin-top:9px;gap:8px}
.manual-address-fields.open{display:grid}
.address-grid{display:grid;grid-template-columns:1.5fr 1fr .8fr;gap:8px}
@media(max-width:720px){.address-grid{grid-template-columns:1fr}}


/* v0.98 — Organisation type progressive disclosure */
.organisation-edit-form .org-type-dependent{display:none}
.organisation-edit-form .org-type-dependent.is-visible{display:grid}
.organisation-edit-form .field-help{display:block;margin-top:5px;font-size:10px;line-height:1.4;color:var(--theme-muted)}

/* v0.98 — optional/unknown domain handling */
#ec_domain_field{transition:opacity .12s ease}

/* v0.98 — organisation-level privacy and policy governance */
.organisation-edit-form .privacy-policy-dependent{display:none}

/* v0.98 — Framework assessments compact header */
.framework-assessment-header{
  display:grid !important;
  grid-template-columns:132px minmax(0,1fr) !important;
  column-gap:20px !important;
  align-items:start !important;
  margin:4px 0 18px !important;
  padding:0 0 16px !important;
  min-height:0 !important;
  background:transparent !important;
  border:0 !important;
  border-bottom:1px solid var(--theme-line) !important;
  border-radius:0 !important;
  box-shadow:none !important;
}
.framework-assessment-kicker{
  padding-top:4px !important;
  font-size:9px !important;
  line-height:1.2 !important;
  font-weight:700 !important;
  letter-spacing:.15em !important;
  text-transform:uppercase !important;
  color:var(--theme-muted) !important;
}
.framework-assessment-copy{
  min-width:0 !important;
}
.framework-assessment-copy h2{
  margin:0 0 4px !important;
  padding:0 !important;
  font-size:17px !important;
  line-height:1.25 !important;
  font-weight:700 !important;
  letter-spacing:-.01em !important;
  color:var(--theme-text) !important;
}
.framework-assessment-copy p{
  margin:0 !important;
  max-width:760px !important;
  font-size:12px !important;
  line-height:1.5 !important;
  color:var(--theme-muted) !important;
}
@media(max-width:720px){
  .framework-assessment-header{
    grid-template-columns:1fr !important;
    row-gap:5px !important;
    margin-bottom:15px !important;
    padding-bottom:13px !important;
  }
  .framework-assessment-kicker{padding-top:0 !important}
}


/* v0.98 — clean informational-card language */
.clean-info-card{
  display:block !important;
  margin:0 0 12px !important;
  padding:16px 18px !important;
  min-height:0 !important;
  background:var(--theme-panel) !important;
  border:1px solid var(--theme-line) !important;
  border-radius:12px !important;
  box-shadow:none !important;
}
.clean-info-card h3{
  margin:0 0 7px !important;
  padding:0 !important;
  font-size:13px !important;
  line-height:1.35 !important;
  font-weight:700 !important;
  letter-spacing:0 !important;
  text-transform:none !important;
  color:var(--theme-text) !important;
}
.clean-info-card p{
  margin:0 !important;
  max-width:none !important;
  font-size:11px !important;
  line-height:1.55 !important;
  color:var(--theme-muted) !important;
}

.framework-assessment-header{display:none !important}


/* v0.98 — customer-facing cleanup */
.dev-only,
.development-only,
[data-dev-only="true"],
#impersonationControls,
.impersonation-controls,
.dev-impersonation{
  display:none !important;
}


/* v0.98 — consistent panel system */
.consistent-panel{
  width:100% !important;
  max-width:none !important;
  min-width:0 !important;
  min-height:0 !important;
  box-sizing:border-box !important;
  padding:16px 18px !important;
  border:1px solid var(--theme-line) !important;
  border-radius:12px !important;
  background:var(--theme-panel) !important;
  box-shadow:none !important;
}
.companies-panel{
  grid-column:1 / -1 !important;
  width:100% !important;
}
.consistent-panel h2,
.consistent-panel h3{
  display:flex !important;
  align-items:center !important;
  gap:9px !important;
  margin:0 0 9px !important;
  padding:0 !important;
  min-height:24px !important;
}
.panel-identifier{
  display:inline-grid;
  place-items:center;
  flex:0 0 24px;
  width:24px;
  height:24px;
  border:1px solid var(--theme-line);
  border-radius:7px;
  background:rgba(52,126,169,.08);
  color:var(--theme-text);
  font-size:8px;
  line-height:1;
  font-weight:800;
  letter-spacing:.05em;
}
.panel-title-text{
  min-width:0;
}
body[data-theme="dark"] .panel-identifier,
.dark .panel-identifier{
  background:rgba(120,180,215,.10);
}


/* v0.98 — repaired page-view containment */
.view{display:none}
.view.active{display:block}


/* v0.98 Privacy readiness */
.privacy-summary-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin-bottom:14px}
.privacy-score-row,.panel-head-row{display:flex;align-items:center;justify-content:space-between;gap:14px}
.privacy-score{font-size:30px;font-weight:750;letter-spacing:-.04em;margin-top:4px}
.privacy-note{margin:10px 0 0}.privacy-action{margin-top:18px}
.privacy-checklist{margin-top:4px}
.privacy-check-row{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:12px 0;border-top:1px solid var(--theme-line)}
.privacy-check-row:first-child{border-top:0}.privacy-check-row>div{display:flex;flex-direction:column;gap:3px;min-width:0}
.privacy-check-row>div span{font-size:11px;color:var(--theme-muted)}
.privacy-facts-panel{margin-top:14px}.privacy-facts-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin-top:14px}
.privacy-fact{border:1px solid var(--theme-line);border-radius:10px;padding:12px;display:flex;flex-direction:column;gap:7px}
.fact-source{font-size:9px;text-transform:uppercase;letter-spacing:.07em;color:var(--theme-muted);font-weight:700}
.privacy-review-modal{max-width:650px}.privacy-question{display:grid;gap:6px;margin:14px 0}.privacy-question label{font-weight:650;font-size:12px}
@media(max-width:900px){.privacy-summary-grid,.privacy-facts-grid{grid-template-columns:1fr}}


/* v0.98 — Overview cleanup */
.overview-mini-id{
  display:inline-grid;
  place-items:center;
  width:22px;
  height:22px;
  flex:0 0 22px;
  border:1px solid var(--theme-line);
  border-radius:7px;
  background:rgba(52,126,169,.08);
  font-size:7px;
  line-height:1;
  font-weight:800;
  letter-spacing:.05em;
  margin-right:7px;
  vertical-align:middle;
}
body[data-theme="dark"] .overview-mini-id,.dark .overview-mini-id{background:rgba(120,180,215,.10)}


/* v0.98 — verified Overview metric identifiers */
.overview-metric-label{
  display:flex !important;
  align-items:center !important;
  gap:8px !important;
}
.overview-metric-label .overview-mini-id{
  display:inline-grid !important;
  place-items:center !important;
  width:24px !important;
  height:24px !important;
  flex:0 0 24px !important;
  margin:0 !important;
  border:1px solid var(--theme-line) !important;
  border-radius:7px !important;
  background:rgba(52,126,169,.08) !important;
  font-size:8px !important;
  line-height:1 !important;
  font-weight:800 !important;
  letter-spacing:.05em !important;
}
body[data-theme="dark"] .overview-metric-label .overview-mini-id,
.dark .overview-metric-label .overview-mini-id{background:rgba(120,180,215,.10) !important}


/* v0.98 — row alignment across Essential Eight / CIS / NIST summary cards */
.framework-summary-grid{
  align-items:stretch !important;
}
.framework-summary-card{
  height:100% !important;
  display:grid !important;
  grid-template-rows: 54px 72px 8px 88px 1fr 46px !important;
  row-gap:10px !important;
  align-content:stretch !important;
}
/* The cards share the same six direct-child sequence in the Overview markup. */
.framework-summary-card > :nth-child(1){grid-row:1;min-height:0;margin-top:0 !important;margin-bottom:0 !important}
.framework-summary-card > :nth-child(2){grid-row:2;min-height:0;margin-top:0 !important;margin-bottom:0 !important;align-self:start}
.framework-summary-card > :nth-child(3){grid-row:3;min-height:0;margin:0 !important;align-self:center}
.framework-summary-card > :nth-child(4){grid-row:4;min-height:0;margin:0 !important}
.framework-summary-card > :nth-child(5){grid-row:6;min-height:0;margin:0 !important;align-self:end}
.framework-summary-card > :nth-child(4) > *{height:100%;box-sizing:border-box}


/* v0.98 — stronger heading hierarchy + abstract icon system */
.page-head h1{font-size:26px !important;line-height:1.15 !important;letter-spacing:-.025em !important}
.consistent-panel h3,
.framework-summary-card h3,
.overview-summary-group h3{
  font-size:15px !important;
  line-height:1.25 !important;
  font-weight:750 !important;
}
.framework-summary-card .framework-readiness-title,
.framework-summary-card h2{
  font-size:16px !important;
  line-height:1.2 !important;
  font-weight:750 !important;
}
.abstract-icon{
  display:inline-grid;
  place-items:center;
  width:26px;
  height:26px;
  flex:0 0 26px;
  border:1px solid var(--theme-line);
  border-radius:8px;
  background:rgba(52,126,169,.07);
  vertical-align:middle;
}
.abstract-icon svg{
  width:15px;
  height:15px;
  fill:none;
  stroke:currentColor;
  stroke-width:1.7;
  stroke-linecap:round;
  stroke-linejoin:round;
}
body[data-theme="dark"] .abstract-icon,.dark .abstract-icon{background:rgba(120,180,215,.10)}
.overview-metric-label{display:flex !important;align-items:center !important;gap:8px !important}


/* v1.02 — ASD Essential Eight assessment workspace */
.e8-assessment-head{display:flex;justify-content:space-between;gap:20px;align-items:flex-start;margin-bottom:18px}.e8-assessment-head h1{font-size:26px;margin:3px 0 5px}
.e8-target-state{min-width:180px;border:1px solid var(--border);border-radius:10px;padding:12px 14px;background:var(--card);display:grid;gap:2px}.e8-target-state span,.e8-target-state small{font-size:11px;color:var(--ui-muted)}.e8-target-state b{font-size:22px}.e8-target-state small{color:#b45309;font-weight:700}
.e8-stagebar{display:grid;grid-template-columns:repeat(4,1fr);border:1px solid var(--border);border-radius:10px;overflow:hidden;background:var(--card);margin-bottom:16px}.e8-stage{appearance:none;border:0;border-right:1px solid var(--border);background:transparent;padding:12px;text-align:left;display:grid;grid-template-columns:26px 1fr;column-gap:8px;cursor:pointer;color:inherit}.e8-stage:last-child{border-right:0}.e8-stage>span{grid-row:1/3;width:24px;height:24px;border:1px solid var(--border);border-radius:50%;display:grid;place-items:center;font-size:11px;font-weight:800}.e8-stage b{font-size:12px}.e8-stage small{font-size:10px;color:var(--ui-muted);margin-top:2px}.e8-stage.done>span{background:var(--ui-ink);color:var(--ui-background);border-color:var(--ui-ink)}.e8-stage.active{background:var(--soft)}
.e8-run-summary{display:grid;grid-template-columns:repeat(5,1fr);gap:10px;margin-bottom:14px}.e8-run-metric{border:1px solid var(--border);border-radius:9px;background:var(--card);padding:12px}.e8-run-metric span{display:block;color:var(--ui-muted);font-size:10px;text-transform:uppercase;letter-spacing:.04em}.e8-run-metric b{display:block;font-size:19px;margin-top:5px}.e8-run-metric small{font-size:10px;color:var(--ui-muted)}
.e8-assess-layout{display:grid;grid-template-columns:245px minmax(0,1fr);gap:14px}.e8-strategy-nav{border:1px solid var(--border);border-radius:10px;background:var(--card);padding:7px;height:max-content}.e8-strategy-btn{width:100%;border:0;background:transparent;color:inherit;text-align:left;padding:10px;border-radius:7px;cursor:pointer;display:grid;grid-template-columns:1fr auto;gap:3px 8px}.e8-strategy-btn:hover,.e8-strategy-btn.active{background:var(--soft)}.e8-strategy-btn b{font-size:12px}.e8-strategy-btn span{font-size:10px;color:var(--ui-muted)}.e8-strategy-btn em{font-style:normal;font-size:10px;align-self:center;color:var(--ui-muted)}
.e8-strategy-panel{min-width:0}.e8-strategy-title{border:1px solid var(--border);border-radius:10px;background:var(--card);padding:15px;margin-bottom:10px}.e8-strategy-title h2{font-size:17px;margin:0 0 5px}.e8-strategy-meta{display:flex;gap:14px;flex-wrap:wrap;font-size:11px;color:var(--ui-muted);margin-top:10px}.e8-rule-banner{padding:10px 12px;border:1px solid var(--border);border-radius:8px;background:var(--soft);font-size:11px;margin-top:12px}
.e8-control-card{border:1px solid var(--border);border-radius:10px;background:var(--card);margin-bottom:9px;overflow:hidden}.e8-control-main{padding:13px 14px}.e8-control-top{display:flex;gap:12px;justify-content:space-between;align-items:flex-start}.e8-control-id{font-size:10px;color:var(--ui-muted);font-weight:750;letter-spacing:.04em}.e8-control-title{font-size:13px;font-weight:750;line-height:1.4;margin-top:3px;max-width:760px}.e8-outcome{font-size:10px;font-weight:750;padding:4px 7px;border:1px solid var(--border);border-radius:999px;white-space:nowrap}.e8-outcome.effective{color:#15803d}.e8-outcome.ineffective,.e8-outcome.no-visibility{color:#b45309}.e8-control-guidance{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-top:12px}.e8-guidance-box{border-top:1px solid var(--border);padding-top:9px}.e8-guidance-box b{display:block;font-size:10px;text-transform:uppercase;letter-spacing:.05em;margin-bottom:4px}.e8-guidance-box p{font-size:11px;line-height:1.5;color:var(--ui-muted);margin:0}.e8-control-foot{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:9px 14px;border-top:1px solid var(--border);background:var(--soft)}.e8-evidence-meta{display:flex;gap:12px;font-size:10px;color:var(--ui-muted)}.e8-control-actions{display:flex;gap:7px}.e8-control-actions button{font-size:10px;padding:5px 8px}
.e8-quality{font-weight:750}.quality-excellent{color:#15803d}.quality-good{color:#2563eb}.quality-fair{color:#b45309}.quality-poor{color:#b91c1c}.e8-stage-card{border:1px solid var(--border);border-radius:10px;background:var(--card);padding:16px}.e8-stage-card h2{font-size:17px;margin:0 0 6px}.e8-scope-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:10px;margin-top:14px}.e8-scope-item{border:1px solid var(--border);border-radius:8px;padding:11px}.e8-scope-item span{display:block;font-size:10px;color:var(--ui-muted);margin-bottom:3px}.e8-scope-item b{font-size:12px}.e8-report-warning{border:1px solid var(--border);background:var(--soft);padding:12px;border-radius:8px;margin-top:12px;font-size:11px}.e8-modal-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}.e8-modal-grid label{font-size:11px;font-weight:700}.e8-modal-grid select,.e8-modal-grid textarea,.e8-modal-grid input{width:100%;margin-top:5px}.e8-modal-grid .wide{grid-column:1/-1}.e8-help-text{font-size:10px;color:var(--ui-muted);font-weight:400;margin-top:4px;line-height:1.4}
@media(max-width:900px){.e8-stagebar{grid-template-columns:1fr 1fr}.e8-run-summary{grid-template-columns:1fr 1fr}.e8-assess-layout{grid-template-columns:1fr}.e8-strategy-nav{display:grid;grid-template-columns:1fr 1fr}.e8-control-guidance,.e8-scope-grid{grid-template-columns:1fr}}
.modal{display:none;position:fixed;inset:0;z-index:5000;backdrop-filter:blur(2px);align-items:center;justify-content:center;padding:20px}
.modal.show{display:flex}
.modal-card{width:min(720px,100%);max-height:calc(100vh - 40px);overflow:auto;background:var(--theme-panel,var(--card));border:1px solid var(--theme-line,var(--border));border-radius:14px;box-shadow:0 24px 70px rgba(0,0,0,.28);padding:18px}
.modal-card [hidden]{display:none!important}
.live-bulk-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:10px 0;padding:10px 12px;border:1px solid var(--theme-line,var(--border));border-radius:9px;background:var(--theme-panel,var(--card));font-size:12px;font-weight:700}.live-bulk-toolbar[hidden]{display:none!important}.live-bulk-toolbar .actions{display:flex;gap:8px;flex-wrap:wrap}.row-deleted td{opacity:.7}.lifecycle-deleted{color:#ad4545;font-weight:700}
.live-auth-panel{display:flex;align-items:center;gap:7px}.live-state{font-size:10px;font-weight:750;letter-spacing:.04em;text-transform:uppercase;color:var(--theme-muted,var(--ui-muted));white-space:nowrap}.live-state-ok{color:#27705a}.live-register-message{margin:12px 0;padding:10px 12px;border:1px solid var(--theme-line,var(--border));border-radius:8px;background:rgba(177,130,30,.07);font-size:12px;color:var(--theme-muted,var(--ui-muted))}.live-register-message.is-ok{background:rgba(39,112,90,.08);color:#245d4b}.live-form-message{min-height:18px;color:#a62e2e;font-size:12px;line-height:1.4}.live-login-card.modal-card{width:min(920px,calc(100vw - 32px));max-width:920px;min-height:570px;display:grid;grid-template-columns:.94fr 1.06fr;overflow:hidden;padding:0;border-radius:28px;background:#fff;color:#11263d;border-color:#e3ebf0;box-shadow:0 26px 75px #193c5e20}.live-login-brand{position:relative;display:flex;flex-direction:column;justify-content:space-between;gap:32px;padding:40px;background:#102a43;color:#fff;overflow:hidden}.live-login-brand:after{content:"";position:absolute;width:370px;height:370px;border:1px solid #ffffff20;border-radius:50%;right:-180px;bottom:-150px;box-shadow:0 0 0 55px #ffffff08,0 0 0 115px #ffffff05}.live-login-brand>img{position:relative;z-index:1;width:215px;max-width:100%;height:auto;filter:none}.live-login-brand .icon-btn{position:absolute;z-index:2;right:22px;top:18px;color:#fff}.live-login-brand-copy{position:relative;z-index:1}.live-login-brand .eyebrow{color:#80e0cc;margin:0 0 15px}.live-login-brand h2{font-size:clamp(29px,4vw,43px);line-height:1.12;letter-spacing:-.045em;margin:0 0 19px}.live-login-brand p{margin:0;color:#c3d6e5;line-height:1.65;font-size:14px;max-width:305px}.live-login-brand small{position:relative;z-index:1;color:#a7bfd0;font-size:12px}.live-login-form{padding:58px clamp(30px,6vw,72px);display:flex;flex-direction:column;justify-content:center}.live-login-form h1{font-size:30px;letter-spacing:-.04em;margin:0 0 8px}.live-login-intro{color:#5d7081;font-size:14px;line-height:1.5;margin:0 0 28px}.live-login-form .form{display:grid;grid-template-columns:1fr;gap:0}.live-login-form label{display:block;font-weight:650;font-size:13px;margin:0 0 8px}.live-login-form input{width:100%;height:46px;border:1px solid #cbd9e3;border-radius:10px;padding:0 14px;margin:0 0 17px;font:14px inherit;outline:none;background:#fff;color:#11263d}.live-login-form input:focus{border-color:#128c86;box-shadow:0 0 0 3px #16a89e25}.live-login-form .modal-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:5px}.live-login-form .btn.primary{background:#087f79;border-color:#087f79}.live-social-login{display:grid;gap:8px}.live-provider-button{width:100%;min-height:50px;border:1px solid #cbd9e3;border-radius:11px;background:#fff;color:#18344c;display:flex;align-items:center;justify-content:center;gap:12px;font:650 14px inherit;cursor:pointer;transition:transform .15s,box-shadow .15s}.live-provider-button:hover{transform:translateY(-1px);box-shadow:0 6px 14px #12324c20}.live-ms-mark{display:grid;grid-template-columns:repeat(2,9px);gap:2px}.live-ms-mark i{width:9px;height:9px}.live-ms-mark i:nth-child(1){background:#f25022}.live-ms-mark i:nth-child(2){background:#7fba00}.live-ms-mark i:nth-child(3){background:#00a4ef}.live-ms-mark i:nth-child(4){background:#ffb900}.live-provider-mark{font-size:20px;font-weight:800;line-height:1;color:#1877f2}.live-social-divider{display:flex;align-items:center;gap:14px;color:#8293a2;font-size:12px;margin:25px 0}.live-social-divider:before,.live-social-divider:after{content:"";height:1px;flex:1;background:#e1e9ee}.live-login-note{margin:21px 0 0;color:#718293;font-size:12px;line-height:1.5;text-align:center}@media(max-width:700px){.live-login-card.modal-card{grid-template-columns:1fr;min-height:0}.live-login-brand{padding:25px 28px;min-height:165px}.live-login-brand>img{width:160px}.live-login-brand-copy h2{font-size:25px;margin-bottom:0}.live-login-brand-copy p,.live-login-brand small{display:none}.live-login-brand .eyebrow{margin-bottom:8px}.live-login-form{padding:35px 28px 40px}}
.live-signed-out .app,.live-signed-out .sidebar-toggle,.live-signed-out #sidebarResizer{display:none}.live-landing{position:fixed;inset:0;z-index:4000;display:grid;place-items:center;padding:24px;background:linear-gradient(135deg,#edf4f5,#d9e7e9);color:#17313a}.live-landing-card{width:min(470px,100%);padding:38px;border:1px solid rgba(38,86,96,.18);border-radius:18px;background:#fff;box-shadow:0 24px 70px rgba(22,53,61,.18)}.live-landing-brand{margin-bottom:38px}.live-landing-logo{display:block;width:min(280px,100%);height:auto}.live-landing-brand small{display:block;margin-top:10px;font-size:10px;letter-spacing:.03em;color:#63808a}.live-landing h1{margin:8px 0 10px;font-size:32px;letter-spacing:-.035em}.live-landing p{margin:0;color:#58717b;line-height:1.6}.live-landing-action{width:100%;margin-top:28px;padding:12px}.live-landing-note{margin-top:16px;text-align:center;font-size:11px;color:#718991}
/* The persistent shell owns navigation; embedded pages render only their content. */
html.embedded-page,html.embedded-page body{height:100%;min-height:100%}
html.embedded-page .app{display:block!important;min-height:100%;width:100%!important;margin:0!important}
html.embedded-page .app>aside,html.embedded-page .sidebar-toggle,html.embedded-page #sidebarResizer{display:none!important}
html.embedded-page .app>main,html.embedded-page .content{display:block!important;width:100%!important;max-width:none!important;margin-left:0!important}
.e8-live-tabs{display:flex;flex-wrap:wrap;gap:8px;margin:16px 0}
.e8-live-tabs .active{background:var(--theme-accent,#087f90);color:#fff}
.e8-run-selector{display:block;max-width:520px;margin-top:12px}
.e8-run-selector select{display:block;width:100%;margin-top:5px}
.e8-workspace-head,.e8-report{margin-bottom:16px}
.e8-plan-list{display:grid;grid-template-columns:minmax(170px,220px) minmax(0,1fr);gap:10px 22px;margin:18px 0}
.e8-plan-list dt{font-weight:700;color:var(--theme-muted,#536d7b)}
.e8-plan-list dd{margin:0;white-space:pre-wrap;overflow-wrap:anywhere}
.e8-live-modal{width:min(850px,calc(100vw - 30px));max-height:90vh;overflow:auto}
.e8-evidence-choices{max-height:180px;overflow:auto;border:1px solid var(--theme-line,#d5e5eb);border-radius:8px;padding:8px;margin-top:8px}
.e8-evidence-choices .e8-check{display:flex;align-items:center;gap:8px;margin:4px 0}
.e8-evidence-choices input{width:auto;margin:0}
.e8-report-conclusion{padding:16px;border-radius:10px;background:var(--theme-sidebar,#e9f2f4);font-size:18px}
@media(max-width:650px){.e8-plan-list{grid-template-columns:1fr}.e8-plan-list dd{margin-bottom:8px}}
@media print{.e8-live-tabs,.e8-workspace-head,.e8-report button,.app>aside,.sidebar-toggle,.toprow>.actions{display:none!important}.e8-report{border:0;box-shadow:none}}
.live-login-brand,.live-login-brand h2,.live-login-brand p,.live-login-brand small{color:#f7fbff!important}.live-login-brand .eyebrow{color:#57d8c7!important}.live-login-brand p{color:#d9e8f2!important}.live-login-brand small{color:#bfd3e1!important}
.live-page h2{margin:5px 0 6px}.live-page .note{max-width:760px}.live-record-count{margin:18px 0 10px;font-size:11px;font-weight:750;color:var(--theme-muted,var(--ui-muted));text-transform:uppercase;letter-spacing:.05em}.live-empty{text-align:center;padding:28px!important;color:var(--theme-muted,var(--ui-muted))}

/* Adjustable navigation width. */
:root{--sidebar-width:280px}
.app{grid-template-columns:var(--sidebar-width) minmax(0,1fr)!important}
body.sidebar-collapsed aside{width:var(--sidebar-width)!important}
.sidebar-toggle{left:calc(var(--sidebar-width) - 56px)!important}
.sidebar-resizer{position:fixed;z-index:115;top:0;bottom:0;left:calc(var(--sidebar-width) - 4px);width:8px;cursor:col-resize;touch-action:none;outline:none}
.sidebar-resizer:before{content:"";position:absolute;top:0;bottom:0;left:3px;width:1px;background:var(--theme-line);transition:width .15s,background .15s}
.sidebar-resizer:hover:before,.sidebar-resizer:focus-visible:before,.resizing-sidebar .sidebar-resizer:before{left:1px;width:4px;background:var(--theme-accent)}
body.sidebar-collapsed .sidebar-resizer{display:none}
body.sidebar-collapsed .sidebar-toggle{left:12px!important}
aside{display:flex;flex-direction:column;min-height:100vh}
aside .nav-v2{min-height:0;overflow:auto}
@media(max-width:1000px){.sidebar-resizer{display:none}.app{grid-template-columns:1fr!important}.sidebar-toggle{left:224px!important}}

/* EssentialsReady brand treatment: navy foundation with restrained teal signals. */
body[data-theme="light"]{background:linear-gradient(135deg,#f5f9fb 0%,#edf6f5 100%)!important}
body[data-theme="dark"]{background:linear-gradient(135deg,#0b1824 0%,#102432 100%)!important}
body[data-theme] .consistent-panel{box-shadow:0 1px 2px rgba(16,42,67,.05)!important}
body[data-theme="dark"] .consistent-panel{box-shadow:0 1px 2px rgba(0,0,0,.22)!important}


/* The account controls provide the shared theme switch. */
aside .nav-theme-switch{display:none!important}

/* Keep the additional frameworks available in code while the E8 workflow is the focus. */
nav button[data-v="cis"],nav button[data-v="nist"],
.cis-framework-summary,.nist-framework-summary{display:none!important}

/* Keep tenant context in the application, but remove it from the page chrome. */
main > .breadcrumbs,
main > .toprow > div:first-child > .eyebrow{display:none!important}

.impersonate-menu .impersonate-note{margin:4px 8px 8px;color:var(--theme-muted);font-size:11px;line-height:1.4}
.impersonate-option:disabled{opacity:.55;cursor:default}

/* Do not paint the local prototype records before the live workspace responds. */
.live-loading .app{visibility:hidden}

/* The custom role input is conditional on selecting Other. */
.live-other-role-field.is-disabled{opacity:.5}
.live-other-role-field input:disabled{cursor:not-allowed}
.modal-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin-bottom:14px}
.modal-head h2,.modal-head h3{margin:0}
.icon-btn{border:0;background:transparent;color:inherit;font-size:22px;line-height:1;cursor:pointer}
.live-service-choices{max-height:180px;overflow:auto;display:grid;gap:8px;margin-top:8px}
.live-service-choices label{display:flex;align-items:center;gap:8px}
.live-service-choices input{width:auto}
.modal-card{max-height:calc(100vh - 40px);overflow:auto}
.live-vendor-import-card{width:min(900px,100%)}
.live-import-link-card{width:min(1100px,100%)}
.live-import-link-card .live-vendor-import-preview{max-height:min(55vh,560px)}
.live-import-link-card .live-vendor-import-preview table{min-width:900px}
.live-import-link-card .live-vendor-import-preview td label{display:block;min-width:160px;white-space:normal}
.live-import-link-card .live-vendor-import-preview select{width:100%;min-width:150px;max-width:230px}
.live-import-link-card .live-vendor-import-preview select[multiple]{min-height:92px}
.live-import-link-card .live-vendor-import-preview input[type="checkbox"]{width:16px;min-width:16px;height:16px;vertical-align:middle}
.live-vendor-import-guide{margin:14px 0;border:1px solid var(--theme-line,var(--border));border-radius:8px;padding:10px 12px}
.live-vendor-import-guide summary{cursor:pointer;font-weight:700;color:var(--theme-text,var(--ui-ink))}
.live-vendor-import-guide p{margin:10px 0}
.live-vendor-import-guide small{display:block;color:var(--theme-muted,var(--ui-muted));font-size:10px}
.live-vendor-import-guide code{white-space:normal;overflow-wrap:anywhere;color:var(--theme-text,var(--ui-ink))}
.live-vendor-export-card{width:min(610px,100%)}
.live-vendor-export-options{display:grid;gap:12px;margin:14px 0;padding:14px;border:1px solid var(--theme-line,var(--border));border-radius:8px}
.live-vendor-export-options legend{font-weight:700;color:var(--theme-text,var(--ui-ink))}
.live-vendor-export-options label{display:flex;align-items:flex-start;gap:9px;color:var(--theme-text,var(--ui-ink))}
.live-vendor-export-options input[type="radio"]{width:16px;min-width:16px;height:16px;flex:none;margin:2px 0 0}
.live-vendor-export-options label{padding:12px;border:1px solid var(--theme-line,var(--border));border-radius:8px;cursor:pointer}
.live-vendor-export-options label:has(input:checked){border-color:var(--theme-accent,#008a96);background:var(--theme-panel,var(--card))}
.live-vendor-export-options label:has(input:disabled){opacity:.55;cursor:not-allowed}
.live-vendor-export-options label span{display:grid;gap:3px}
.live-vendor-export-options label small{font-size:11px;color:var(--theme-muted,var(--ui-muted))}
.pagination .page-controls,.live-register-pager .page-controls{display:flex;align-items:center;gap:8px;flex-wrap:wrap;width:auto}
.pagination .page-controls select,.live-register-pager .page-controls select{width:88px!important;min-width:88px!important;max-width:88px!important;flex:none}
.pagination .page-controls label,.live-register-pager .page-controls label{white-space:nowrap}
.pagination [hidden],.live-register-pager [hidden]{display:none!important}
.pagination .page-custom-size,.live-register-pager .page-custom-size{width:76px;min-width:0}
.live-register-pager{display:flex;justify-content:space-between;align-items:center;gap:10px;flex-wrap:wrap;margin-top:12px;padding-top:10px;border-top:1px solid var(--theme-line,var(--border));font-size:12px}
.live-register-pager select{width:auto;min-width:82px}
body[data-view="vendors"] .companies-panel .filters{display:grid!important;grid-template-columns:minmax(160px,1fr) 170px 120px!important;min-width:470px;align-items:center}
body[data-view="vendors"] .companies-panel .filters #companyExactFilter{width:170px;min-width:170px;max-width:170px;white-space:nowrap}
body[data-view="vendors"] .companies-panel .filters #companyLifeMulti{width:120px;min-width:120px}
body[data-view="vendors"] #companyTable th:first-child,body[data-view="vendors"] #companyTable td:first-child{box-sizing:border-box;width:32px;min-width:32px;max-width:32px;padding-left:8px;padding-right:8px;text-align:center}
body[data-view="vendors"] #companyTable th:first-child{padding-right:8px}
body[data-view="vendors"] #companyTable th:first-child .col-grip,body[data-view="vendors"] #companyTable th:first-child::after{display:none}
body[data-view="vendors"] #companyTable th:first-child input,body[data-view="vendors"] #companyTable td:first-child input{display:block;width:16px;min-width:16px;height:16px;margin:0 auto}
body[data-view="vendors"] #companyTable th:nth-child(5),body[data-view="vendors"] #companyTable td:nth-child(5){text-align:center}
body[data-view="vendors"] #companyTable tbody tr:nth-child(even) td{background:var(--theme-panel-2,#f8fbfc)!important}
body[data-view="vendors"] #companyTable tbody tr:hover td{background:var(--theme-panel-3,#eaf2f4)!important}
.live-page table tbody tr:nth-child(even) td{background:var(--theme-panel-2,#f8fbfc)!important}
.live-page table tbody tr:hover td{background:var(--theme-panel-3,#eaf2f4)!important}
.live-page .live-register-filters{display:grid!important;grid-template-columns:minmax(180px,1fr) 120px!important;min-width:320px;align-items:center}
.live-page .live-register-filters{margin-bottom:10px}
.live-page #liveBulkError:empty{display:none}
.live-page .live-register-filters .live-status-filter{width:120px;min-width:120px}
.live-page .live-register-filters .multi-filter-btn{overflow:hidden;text-overflow:ellipsis}
.live-page .live-register-filters .multi-filter-menu{left:auto;right:0;width:112px;min-width:112px;max-width:calc(100vw - 24px);padding:6px}
.live-page .live-register-filters .multi-filter-menu label{gap:6px;padding:6px 5px}
.live-page .live-register-filters .multi-filter-menu input[type="checkbox"]{width:16px;min-width:16px;height:16px;flex:0 0 16px;margin:0}
.modal-card .live-required-star{color:#c73535;font-weight:800}
.modal-card .live-required-caption{white-space:nowrap}
.modal-card .live-required-note{grid-column:1/-1;margin:0 0 4px;font-size:11px;color:var(--theme-text-2,#596f7a)}

/* Keep the sign-in actions reachable on short phone screens. */
@media(max-width:700px){
  .live-login-modal{padding:12px}
  .live-login-modal .live-login-card.modal-card{
    max-height:calc(100dvh - 24px);
    overflow-x:hidden;
    overflow-y:auto;
    overscroll-behavior:contain;
    -webkit-overflow-scrolling:touch;
  }
}
.live-page table .live-status-column{text-align:center;white-space:nowrap}
.live-page table th:has(#liveSelectPage),.live-page table td:has(.live-select-row){box-sizing:border-box;width:32px;min-width:32px;max-width:32px;padding-left:8px;padding-right:8px;text-align:center}
.live-page table th:has(#liveSelectPage){padding-right:8px}
.live-page table th:has(#liveSelectPage) .col-grip,.live-page table th:has(#liveSelectPage)::after{display:none}
.live-page table th #liveSelectPage,.live-page table td .live-select-row{display:block;width:16px;min-width:16px;height:16px;margin:0 auto}
.live-vendor-import-tools{display:flex;align-items:end;gap:16px;flex-wrap:wrap;margin:16px 0}
.live-vendor-import-tools label{flex:1 1 250px;color:var(--theme-text-2,var(--ui-muted))}
.live-vendor-import-tools input[type="file"]{width:100%;max-width:100%;color:var(--theme-text,var(--ui-ink))}
.live-vendor-import-preview{max-height:320px;overflow:auto;margin-top:12px;border:1px solid var(--theme-line,var(--border));border-radius:8px}
.live-vendor-import-preview table{width:100%;min-width:620px;border-collapse:collapse}
.live-vendor-import-preview th,.live-vendor-import-preview td{text-align:left;vertical-align:top;padding:9px;border-bottom:1px solid var(--theme-line,var(--border));font-size:12px;color:var(--theme-text,var(--ui-ink))}
.live-vendor-import-preview th{position:sticky;top:0;background:var(--theme-panel,var(--card));z-index:1}
.live-vendor-import-preview .live-import-error{color:#b53737;font-weight:600}
.live-import-ack{display:flex;align-items:flex-start;gap:9px;margin:12px 0;color:var(--theme-text,var(--ui-ink));font-size:12px}
.live-import-ack[hidden]{display:none}
.live-import-ack input[type="checkbox"]{width:16px;min-width:16px;height:16px;margin:1px 0 0}
.live-inventory-review h3{margin:16px 0 4px;color:var(--theme-heading,var(--ui-ink))}
.live-inventory-review>p{margin:0 0 12px}
.live-inventory-draft{border:1px solid var(--theme-line,var(--border));border-radius:10px;padding:12px;margin:10px 0;background:var(--theme-input,var(--card))}
.live-inventory-draft-head{display:flex;align-items:center;justify-content:space-between;gap:12px}
.live-inventory-draft-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.live-inventory-draft dl{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px 18px;margin:10px 0 0}
.live-inventory-draft dl>div{min-width:0}
.live-inventory-draft dt{font-size:11px;color:var(--theme-muted,var(--ui-muted))}
.live-inventory-draft dd{margin:2px 0 0;overflow-wrap:anywhere;color:var(--theme-text,var(--ui-ink))}
@media(max-width:600px){.live-inventory-draft dl{grid-template-columns:1fr}}
.nav-subgroup{margin:2px 0}
.nav-subgroup>summary{display:flex;align-items:center;justify-content:space-between;padding:8px 12px 8px 20px;color:var(--theme-muted);font-size:10px;font-weight:800;letter-spacing:.05em;text-transform:uppercase;cursor:pointer;list-style:none}
.nav-subgroup>summary::-webkit-details-marker{display:none}
.nav-subgroup>summary:after{content:'⌄';font-size:13px;line-height:1}
.nav-subgroup[open]>summary:after{content:'⌃'}
.nav-subgroup>summary:hover{color:var(--theme-text)}
.nav-subgroup-menu button{padding-left:32px!important}
.nav-subgroup-menu button:before{left:21px!important}

/* Keep one boundary between register rows and pagination controls. */
.pagination,.live-register-pager{border-top:0;margin-top:8px;padding-top:0}
.live-page .toprow .actions #liveAddRecord:not(.table-tool-button){width:auto!important;min-width:max-content!important;max-width:none!important;white-space:nowrap;flex:0 0 auto}
.live-page .toprow{flex-wrap:wrap}

/* Custom employee type follows the existing Other role convention. */
.live-other-employee-type-field.is-disabled{opacity:.5}
.live-other-employee-type-field input:disabled{cursor:not-allowed}

.live-field-help{display:inline-flex;align-items:center;justify-content:center;width:16px;height:16px;margin-left:6px;padding:0;border:1px solid var(--theme-line,var(--border));border-radius:50%;background:transparent;color:var(--theme-text-2,#526f7a);font-family:inherit;font-size:10px;font-weight:600;line-height:1;cursor:help;vertical-align:middle}
.live-field-help:focus-visible{outline:2px solid var(--theme-accent,#008c9a);outline-offset:2px}
.live-field-tooltip{position:fixed;z-index:100000;box-sizing:border-box;width:max-content;max-width:min(300px,calc(100vw - 16px));padding:10px 12px;border:1px solid var(--theme-line,var(--border));border-radius:8px;background:var(--theme-panel,var(--card));color:var(--theme-text,#173d50);font-size:12px;line-height:1.5;box-shadow:0 4px 18px #0002;pointer-events:none}

/* Field placement is shared by Add, edit and record windows. */

/* Override the form’s normal full-height button sizing for label help icons. */
.modal-card .form .live-field-help{width:16px!important;min-width:16px!important;height:16px!important;min-height:16px!important;padding:0!important;flex:none;box-shadow:none}

/* Register column visibility: compact, keyboard-accessible and theme-aware. */
.table-columns-control{position:relative;flex:none}
.table-columns-control>summary{list-style:none;cursor:pointer;white-space:nowrap;display:inline-flex;align-items:center;justify-content:center}
.table-columns-control>summary::-webkit-details-marker{display:none}
.table-columns-control>summary.table-columns-button{box-sizing:border-box;width:28px!important;min-width:28px!important;height:28px!important;min-height:28px!important;padding:5px!important;border-radius:7px!important;box-shadow:none!important}
.table-columns-button svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.view .e8-report .toprow .actions>#e8Finalise{display:inline-flex;align-items:center;justify-content:center;gap:6px;box-sizing:border-box;width:auto!important;min-width:0!important;max-width:none!important;height:28px!important;min-height:28px!important;padding:0 10px!important;border-radius:7px!important;line-height:1.2!important}
#e8Finalise svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.table-columns-control>summary:focus-visible{outline:2px solid var(--theme-accent);outline-offset:2px}
.table-columns-menu{position:fixed;z-index:1200;box-sizing:border-box;width:220px;max-width:calc(100vw - 16px);max-height:calc(100vh - 24px);overflow:auto;padding:12px;border:1px solid var(--theme-line,var(--border));border-radius:9px;background:var(--theme-panel,var(--card));color:var(--theme-text,var(--ui-ink));box-shadow:0 8px 24px #0002;text-align:left}
.table-columns-control:not([open])>.table-columns-menu{display:none}
.table-columns-menu strong{display:block;margin-bottom:8px;font-size:12px}
.table-columns-menu label{display:flex;align-items:center;gap:9px;padding:5px 0;font-size:12px;line-height:1.4;cursor:pointer}
.table-columns-menu label:has(input:disabled){opacity:.6;cursor:default}
.table-columns-menu input[type=checkbox]{width:14px;height:14px;min-width:14px;margin:0;accent-color:var(--theme-accent)}
.table-columns-menu>.btn{margin-top:8px}
.table-column-toolbar{justify-content:flex-end;margin-bottom:10px}
.view table th[hidden],.view table td[hidden]{display:none!important}

/* Consistent summary-row pills, including the Edit action. */
.view table .status,.view table .record-edit-pill{display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;border-radius:999px!important;padding:4px 7px!important;min-width:0!important;min-height:22px!important;height:22px!important;font-size:10px!important;line-height:1.2!important;font-weight:500;white-space:nowrap;vertical-align:middle}
.view table .record-edit-pill{position:relative;background:var(--theme-panel,var(--card))!important;color:var(--theme-text,var(--ui-ink))!important;border:1px solid var(--theme-line,var(--border))!important;box-shadow:none!important;cursor:pointer}
.view table .record-edit-pill:hover{border-color:var(--theme-accent)!important;background:color-mix(in srgb,var(--theme-accent) 8%,var(--theme-panel,var(--card)))!important}
.view table .record-edit-pill:focus-visible{outline:2px solid var(--theme-accent);outline-offset:3px}
@media(pointer:coarse){.view table .record-edit-pill:before{content:'';position:absolute;inset:-10px -8px}}

.modal-card .form .live-required-caption .live-add-related{flex:none;margin:0 0 0 4px;color:var(--tool-add)!important;vertical-align:middle;cursor:pointer}
.live-add-related svg{width:14px;height:14px;fill:none;stroke:currentColor;stroke-width:2.3;stroke-linecap:round}
.modal-card .form .live-required-caption .live-add-related:hover{background:color-mix(in srgb,var(--tool-add) 9%,var(--theme-panel,var(--card)))!important;border-color:var(--tool-add)!important}
body[data-theme="dark"] .modal-card .form .live-add-related,html[data-theme="dark"] .modal-card .form .live-required-caption .live-add-related{color:var(--tool-add)!important}
.live-add-related:disabled{opacity:.5;cursor:wait}
.live-add-related:focus-visible{outline:2px solid var(--theme-accent);outline-offset:3px}
.live-related-save-note{margin:8px 0 12px;padding:8px;border-left:2px solid var(--theme-accent)}
.modal[inert]{pointer-events:none}

/* Reserve predictable space for lifecycle indicators and row actions. */
.view table .summary-status-column{box-sizing:border-box;width:var(--summary-status-width,74px)!important;min-width:var(--summary-status-width,74px)!important;max-width:var(--summary-status-width,74px)!important;text-align:center!important;white-space:nowrap;padding-left:8px!important;padding-right:8px!important}
.view table .summary-actions-column{box-sizing:border-box;width:var(--summary-actions-width,70px)!important;min-width:var(--summary-actions-width,70px)!important;max-width:var(--summary-actions-width,70px)!important;text-align:center!important;white-space:nowrap;padding-left:8px!important;padding-right:8px!important}
.view table td.summary-actions-column>.btn{margin-left:3px;margin-right:3px;vertical-align:middle}

/* Centre the label itself; the reorder grip must not offset its text. */
.view table .summary-status-column,.view table .summary-actions-column{vertical-align:top!important}
.view table th.summary-status-column,.view table th.summary-actions-column{position:relative}
.view table.reorderable-columns th.summary-status-column .col-grip,.view table.reorderable-columns th.summary-actions-column .col-grip{position:absolute;left:8px;top:50%;transform:translateY(-50%);margin:0}

/* Compact pop-out control on the register heading, separate from record actions. */
:root{--tool-add:#23865a;--tool-teal:#087f88;--tool-export:#286eb5;--tool-slate:#617782}
[data-theme="dark"]{--tool-add:#62d69b;--tool-teal:#69d4d9;--tool-export:#82b8fa;--tool-slate:#b1c4cf}
body.live-auth-pending .app{display:none!important}
.live-login-form select{width:100%;height:46px;box-sizing:border-box;border:1px solid var(--theme-line,#cbd9e3);border-radius:10px;padding:0 12px;margin:8px 0 17px;background:var(--theme-input,#fff);color:var(--theme-text,#11263d);font:inherit}
.table-popout-enabled{position:relative}
.table-popout-enabled>.toprow{padding-right:0;flex-wrap:wrap}
.table-popout-enabled>.toprow>.actions{flex-shrink:0}
.table-popout-enabled .table-tool-button[data-compact-tool="add"]{order:1}
.table-popout-enabled .table-tool-button[data-compact-tool="import"]{order:2}
.table-popout-enabled .table-tool-button[data-compact-tool="export"]{order:3}
.table-popout-enabled .table-columns-control{order:4}
.table-popout-enabled .table-reset-button{order:6}
.table-popout-enabled .table-expand-button.table-refresh-button{order:3}
.table-popout-enabled .table-print-button{order:5}
.table-popout-enabled .table-expand-button:not(.table-print-button):not(.table-refresh-button){order:6}
.view .card.table-popout-enabled .actions>.table-expand-button{position:static;flex:0 0 28px;display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;width:28px!important;min-width:28px!important;height:28px!important;min-height:28px!important;padding:5px!important;border:1px solid var(--theme-line,var(--border));border-radius:7px;box-shadow:none;cursor:pointer}
.table-expand-button svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.table-expand-button:focus-visible{outline:2px solid var(--theme-accent);outline-offset:3px}
.view .card .toprow .actions .table-tool-button,.live-page .toprow .actions #liveAddRecord.table-tool-button{cursor:pointer}
.table-tool-button svg{width:16px;height:16px;flex:none;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.table-tool-label{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.table-tool-button:focus-visible{outline:2px solid var(--theme-accent);outline-offset:3px}
body.table-popout-page{overflow:hidden!important}
body.table-popout-page main>header,body.table-popout-page .view>.why-card{display:none!important}
.view .card.table-popout-card{position:fixed!important;inset:0!important;z-index:1000;box-sizing:border-box;width:auto!important;max-width:none!important;height:100dvh!important;max-height:none!important;margin:0!important;padding:20px!important;overflow:auto;border:0!important;border-radius:0!important;background:var(--theme-panel,var(--card))!important}
.table-popout-card .table-scroll{max-width:100%;overflow-x:auto}
@media(max-width:600px){.view .card.table-popout-card{padding:12px!important}}
@media print{
 body.table-printing,body.table-printing .table-print-path{height:auto!important;overflow:visible!important;display:block!important;margin:0!important;padding:0!important}
 body.table-printing .table-print-path>:not(.table-print-path):not(.table-print-card){display:none!important}
 body.table-printing .view .card.table-print-card{position:static!important;inset:auto!important;width:100%!important;height:auto!important;max-height:none!important;overflow:visible!important;margin:0!important;padding:0!important;border:0!important;box-shadow:none!important;background:#fff!important;color:#111!important}
 .table-print-card>.toprow{padding:0!important}
 .table-print-card .actions,.table-print-card .filters,.table-print-card .table-expand-button,.table-print-card .pagination,.table-print-card .live-form-message,.table-print-card .live-bulk-toolbar,.table-print-card .col-grip,.table-print-card .table-print-message,.table-print-card .table-popout-message{display:none!important}
 .table-print-card .table-scroll{overflow:visible!important}
 .table-print-card .summary-actions-column,.table-print-card table:has(thead th:first-child input[type=checkbox]) tr>:first-child{display:none!important}
 .table-print-card th,.table-print-card td{font-size:9pt!important;color:#111!important;padding:6px!important}
 .table-print-card table{width:100%!important}
 .table-print-card thead{display:table-header-group}
 .table-print-card tr{break-inside:avoid}
}

/* Keep wide register tables inside their panel and expose horizontal navigation. */
.view .card>.table-scroll{max-width:100%;min-width:0;overflow-x:auto;overscroll-behavior-x:contain}
.table-scroll:focus-visible{outline:2px solid var(--theme-accent);outline-offset:2px}
.workspace-status-dropdown .live-inline-state-filter{display:flex!important;flex-direction:column!important;align-items:stretch!important;gap:0!important;border:0!important;padding:0!important;background:transparent!important}
.workspace-status-dropdown .filter-caption{display:none}
.workspace-status-dropdown summary .status{margin:0}
.workspace-status-dropdown .workspace-checkbox-menu label{justify-content:flex-start!important}
.workspace-checkbox-filter{position:relative;display:inline-block;min-width:140px;font-size:12px;color:var(--theme-text,var(--ui-ink))}
.workspace-checkbox-filter>summary{display:flex;justify-content:space-between;align-items:center;gap:14px;list-style:none;cursor:pointer;padding:10px;border:1px solid var(--theme-line,var(--border));border-radius:8px;background:var(--theme-panel,var(--card));white-space:nowrap;font-weight:400}
.workspace-checkbox-filter>summary::after{content:'⌄'}
.workspace-checkbox-filter>summary::-webkit-details-marker{display:none}
.workspace-checkbox-menu{position:absolute;top:calc(100% + 6px);left:0;z-index:1200;min-width:220px;max-width:calc(100vw - 32px);max-height:320px;overflow:auto;padding:10px}
.workspace-checkbox-menu label{display:flex!important;flex-direction:row!important;align-items:center;gap:8px;padding:7px 4px;font-size:12px;font-weight:400;white-space:nowrap}
.workspace-checkbox-menu input[type=checkbox]{appearance:auto!important;flex:none;width:16px!important;min-width:16px!important;height:16px!important;padding:0!important;margin:0!important;accent-color:var(--theme-accent,#087f90)}
.checkbox-filter-close{display:block;margin:8px 0 0 auto;border:0;background:none;color:var(--theme-accent,#087f90);padding:5px;text-decoration:underline;cursor:pointer;font-size:12px}
.view .card:not(.table-popout-card):has(.workspace-checkbox-filter[open]){overflow:visible!important}
.table-scroll-controls{display:flex;align-items:center;justify-content:flex-end;gap:6px;margin-top:6px;color:var(--theme-muted,var(--ui-muted));font-size:11px}
.table-scroll-controls[hidden]{display:none}
.table-scroll-controls .table-scroll-arrow{display:inline-flex;align-items:center;justify-content:center;width:26px!important;min-width:26px!important;height:24px!important;padding:0!important;border:1px solid var(--theme-line,var(--border));border-radius:5px;background:transparent;color:var(--theme-text,var(--ui-ink));cursor:pointer}
.table-scroll-arrow:disabled{opacity:.4;cursor:default}
@media print{.table-scroll-controls{display:none!important}}

/* Horizontal shell presents account controls above the page content. */
html.embedded-page.shell-header-controls main>.toprow{display:block}
html.embedded-page.shell-header-controls main>.toprow>div:first-child{width:100%;max-width:none}
html.embedded-page.shell-header-controls main>.toprow>.actions{display:none!important}

/* Register headings live above the Why panel; retain titles for print and pop-out. */
.register-heading-at-page>.toprow>div:first-child{display:none}
.register-heading-at-page>.toprow{justify-content:flex-end}
.table-popout-page .register-heading-at-page>.toprow>div:first-child{display:block}
@media print{.register-heading-at-page>.toprow>div:first-child{display:block}}

/* One register row for search, status and record tools. */
.register-combined-toolbar>.toprow{display:flex!important;flex-wrap:nowrap!important;align-items:center;gap:8px;margin-bottom:12px}
.register-combined-toolbar>.toprow>.filters{display:flex!important;flex-wrap:nowrap!important;align-items:center;gap:8px;flex:1;min-width:0!important;margin:0!important;grid-template-columns:none!important}
.register-combined-toolbar>.toprow>.filters>input{width:260px!important;max-width:320px!important;min-width:56px!important;flex:1;height:32px;box-sizing:border-box;margin:0}
.register-combined-toolbar>.toprow>.filters>.multi-filter{width:96px!important;min-width:96px!important;flex:0 0 96px}
.register-combined-toolbar .filters>.multi-filter>.multi-filter-btn{height:32px;padding:5px 8px!important;white-space:nowrap}
.register-combined-toolbar>.toprow>.actions{flex-wrap:nowrap;gap:4px;margin-left:auto;flex:0 0 auto}
@media(max-width:600px){.register-combined-toolbar>.toprow{gap:6px}.register-combined-toolbar>.toprow>.filters{gap:6px}.register-combined-toolbar>.toprow>.filters>.multi-filter{width:80px!important;min-width:80px!important;flex-basis:80px}.register-combined-toolbar>.toprow>.actions{gap:2px;flex-shrink:1;min-width:28px;overflow-x:auto}.register-combined-toolbar .filters>#companyExactFilter{width:110px!important;min-width:110px!important}}

/* Pop-outs retain their own title above the compact filter/tool row. */
.table-popout-page .register-combined-toolbar>.toprow{display:grid!important;grid-template-columns:minmax(0,1fr) auto;gap:8px}
.table-popout-page .register-combined-toolbar>.toprow>div:first-child{grid-column:1/-1}
.table-popout-page .register-combined-toolbar>.toprow>.filters{grid-column:1;min-width:0}
.table-popout-page .register-combined-toolbar>.toprow>.actions{grid-column:2;max-width:calc(100vw - 190px)}

.register-combined-toolbar>.toprow>.actions{justify-content:flex-start!important}
.table-popout-page .table-fullscreen-button{order:6}
.table-popout-page .table-expand-button:not(.table-print-button):not(.table-refresh-button){order:7}

/* Every pop-out retains its heading above its table tools. */
.table-popout-page .table-popout-card>.toprow{display:flex;flex-wrap:wrap;align-items:center;gap:8px}
.table-popout-page .table-popout-card>.toprow>div:not(.actions):not(.filters){flex-basis:100%}
.table-popout-page .table-popout-card:not(.register-combined-toolbar)>.toprow>.actions{margin-left:auto;flex-wrap:nowrap;justify-content:flex-start;min-width:0;max-width:100%;overflow-x:auto}

.view table th.wrapped-column-heading{vertical-align:top!important}

/* Compact headings centre independently of sort and reorder decorations. */
.view table th.summary-status-column .col-grip,.view table th.summary-actions-column .col-grip{display:none}
.view table th.summary-status-column::after,.view table th.summary-actions-column::after{right:2px}
.view table td.summary-actions-column>button,.view table td.summary-actions-column>a{display:block;width:max-content;margin:3px auto!important}
.view table td.summary-actions-column>:only-child{margin-top:0!important;margin-bottom:0!important}
.view table .simple-value-column{text-align:center;vertical-align:top}
.table-boolean-value{display:inline-flex;align-items:center;justify-content:center;width:22px;height:22px;border:1px solid currentColor;border-radius:50%;vertical-align:middle}
.table-boolean-value.is-yes{color:var(--theme-accent,#087f88)}
.table-boolean-value.is-no{color:var(--theme-muted,#617782)}
.status.risk-level-high{color:#a52b35;background:#fff1f2;border:1px solid #e5a4ab}
.status.risk-level-medium{color:#895300;background:#fff6e6;border:1px solid #dfbc77}
.status.risk-level-low{color:#1c6955;background:#eaf8f1;border:1px solid #92cbb7}
.view table .risk-level-column{text-align:center!important}
.view table .support-status-column{text-align:center!important}
.status.privilege-standard{color:#1c6955;background:#eaf8f1;border:1px solid #92cbb7}
.status.privilege-privileged{color:#a52b35;background:#fff1f2;border:1px solid #e5a4ab}
.status.privilege-service{color:#315f8f;background:#edf4fd;border:1px solid #a2bbdc}
[data-theme="dark"] .status.privilege-standard{color:#a2e4ca;background:#233f38;border-color:#4d8875}
[data-theme="dark"] .status.privilege-privileged{color:#ffb4bd;background:#532b35;border-color:#92515f}
[data-theme="dark"] .status.privilege-service{color:#bbd8ff;background:#283f57;border-color:#6b8fb4}
.live-page .governance-register-filters:has(#liveRegisterLifecycle){display:flex!important;flex-wrap:wrap!important;gap:10px 16px;min-width:0}
.live-page .governance-register-filters:has(#liveRegisterLifecycle) #liveRegisterSearch{width:260px!important;min-width:min(220px,100%)!important;flex:0 1 260px}
.live-page .live-register-filters #liveRegisterLifecycle{width:auto!important;min-width:0!important;max-width:100%;flex:0 1 auto;flex-wrap:wrap!important}
.filter-caption{font-size:11px;color:var(--theme-muted);white-space:nowrap}
.status.support-state-supported{color:#1c6955;background:#eaf8f1;border:1px solid #92cbb7}
.status.support-state-limited{color:#895300;background:#fff6e6;border:1px solid #dfbc77}
.status.support-state-end-of-support{color:#a52b35;background:#fff1f2;border:1px solid #e5a4ab}
.status.support-state-unknown{color:var(--theme-muted);background:var(--theme-panel-2,#f4f7f9);border:1px solid var(--theme-line)}
[data-theme="dark"] .status.support-state-supported{color:#a2e4ca;background:#233f38;border-color:#4d8875}
[data-theme="dark"] .status.support-state-limited{color:#f4d18b;background:#473b22;border-color:#8e7444}
[data-theme="dark"] .status.support-state-end-of-support{color:#ffb4bd;background:#532b35;border-color:#92515f}
[data-theme="dark"] .status.risk-level-high{color:#ffb4bd;background:#532b35;border-color:#92515f}
[data-theme="dark"] .status.risk-level-medium{color:#f4d18b;background:#473b22;border-color:#8e7444}
[data-theme="dark"] .status.risk-level-low{color:#a2e4ca;background:#233f38;border-color:#4d8875}
.account-security-value{position:relative;display:inline-flex;align-items:center;justify-content:center;width:22px;height:22px;border:1px solid currentColor;border-radius:50%;vertical-align:middle}
.account-security-value svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.account-security-value.is-enabled{color:var(--theme-accent,#087f88)}
.account-security-value.is-disabled{color:var(--danger,#b94040)}
.account-security-value.is-required{color:var(--warning,#986100)}
.account-security-value.is-unknown,.account-security-value.is-not-applicable{color:var(--theme-muted,#617782)}
.table-boolean-value svg{width:14px;height:14px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.table-value-label{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap}

/* Keep column boundaries visible while preserving compact summary widths. */
.view table th:not(:last-child),.view table td:not(:last-child){border-inline-end:1px solid var(--theme-line,var(--border))}
.view table th.sortable:hover{color:var(--theme-text,var(--ui-ink));background:color-mix(in srgb,var(--theme-accent,#087f88) 8%,var(--theme-panel,var(--card)))}
.view table th.sortable:focus-visible{outline:2px solid var(--theme-accent,#087f88);outline-offset:-2px}

/* Separate edge resizing from header sorting and the column reorder grip. */
.view table th{position:relative}
.column-resizer{position:absolute;right:-3px;top:0;bottom:0;width:7px;z-index:2;cursor:col-resize;touch-action:none;user-select:none}
.column-resizer:hover,.column-resizer:focus-visible{background:var(--theme-accent,#087f88);outline:none;opacity:.65}
body.resizing-table-column,body.resizing-table-column *{cursor:col-resize!important;user-select:none!important}
.view table.resized-columns{table-layout:fixed;min-width:0;max-width:none}
.view table.resized-columns th{box-sizing:border-box}
.view table.resized-columns th,.view table.resized-columns td{overflow-wrap:anywhere}
@media print{.column-resizer{display:none!important}}

/* Align every register column to the top, including wrapped headings and controls. */
.view table th,.view table td{vertical-align:top!important}
.view table td.summary-actions-column>:first-child{margin-top:0!important}

/* Header labels and sort indicators stay at the first line of wrapped headings. */
table thead th{vertical-align:top!important}
.view table th.sortable::after{top:10px}
.view table.reorderable-columns th.summary-status-column .col-grip,.view table.reorderable-columns th.summary-actions-column .col-grip{top:10px;transform:none}

.view table.reorderable-columns th:has(.col-grip):not(.summary-status-column):not(.summary-actions-column){padding-left:18px;padding-right:18px}
.view table.reorderable-columns th .col-grip{position:absolute;left:4px;top:10px;margin:0;transform:none}

/* Labels wrap independently; grips and sort arrows have their own edge space. */
.view table .column-heading-label{display:block;white-space:normal;word-break:normal;overflow-wrap:normal;hyphens:none;line-height:1.45}
.view table .column-heading-label{font-family:inherit;font-size:inherit;font-weight:inherit}
.view table th.first-named-column .column-heading-label{white-space:nowrap!important;overflow-wrap:normal!important;word-break:normal!important;overflow:hidden;text-overflow:ellipsis}
.table-popout-enabled .actions:has(>.table-refresh-button){position:relative}
.table-refresh-status{position:relative;order:10;align-self:center;z-index:40;padding:5px 9px;border:1px solid var(--theme-line);border-radius:7px;background:var(--theme-panel);color:#27705a;font-size:11px;font-weight:500;white-space:nowrap;box-shadow:0 3px 10px #0001;pointer-events:none}
.table-refresh-status.is-error{color:#a33b3b}
.record-locked-date{display:none}
.record-summary.is-locked .record-date-input{display:none}
.record-summary.is-locked .record-locked-date{display:block;padding:10px 12px;min-height:40px;border:1px solid var(--theme-line);border-radius:8px;color:var(--theme-text)}
.table-refresh-button.is-refreshing svg{animation:table-refresh-spin .75s linear infinite}
@keyframes table-refresh-spin{to{transform:rotate(360deg)}}
@media(prefers-reduced-motion:reduce){.table-refresh-button.is-refreshing svg{animation:none}}
.view table th.summary-status-column .column-heading-label,.view table th.summary-actions-column .column-heading-label{white-space:nowrap}
.view table th.sortable{padding-right:18px;cursor:pointer}
.view table.reorderable-columns th .col-grip{cursor:grab;line-height:1.45}

/* Main register tools end with the separate-window control, then full screen. */
.table-popout-enabled .table-fullscreen-button{order:7}
.table-popout-enabled .table-expand-button:not(.table-print-button):not(.table-refresh-button){order:6}

.view .table-scroll{max-width:100%;min-width:0;overflow-x:auto;overscroll-behavior-x:contain}

/* Pop-out table area grows with the window; records scroll within its visible borders. */
.view .card.table-popout-card{display:flex;flex-direction:column;overflow:hidden;padding:12px!important}
.table-popout-card>.toprow,.table-popout-card>.filters,.table-popout-card>.live-register-pager,.table-popout-card>.table-scroll-controls{flex:0 0 auto}
.table-popout-card>.table-scroll{flex:1 1 0;min-height:0;min-width:0;width:100%;box-sizing:border-box;overflow:auto}
.view .table-scroll{border-top:1px solid var(--theme-line,var(--border));border-left:1px solid var(--theme-line,var(--border));border-right:1px solid var(--theme-line,var(--border));box-sizing:border-box}
.table-popout-card .table-scroll{border:1px solid var(--theme-line,var(--border))}
.table-popout-card .table-scroll thead th{position:sticky;top:0;z-index:3}
.view table tr>:first-child{border-left:1px solid var(--theme-line,var(--border))}
.view table tr>:last-child{border-right:1px solid var(--theme-line,var(--border))}
.table-enter-fullscreen{order:8;white-space:nowrap}
@media print{.view .card.table-popout-card{display:block}.table-popout-card>.table-scroll{height:auto;overflow:visible}.table-enter-fullscreen{display:none!important}}

/* Data icons have compact, stable widths in both page and pop-out tables. */
.view table .fixed-icon-column{box-sizing:border-box;width:var(--data-icon-width)!important;min-width:var(--data-icon-width)!important;max-width:var(--data-icon-width)!important;text-align:center!important;padding-left:8px!important;padding-right:8px!important}
.view table th.fixed-icon-column .col-grip{display:none}
.view table th.fixed-icon-column::after{right:2px}
/* Selection information uses a permanent row so selecting records cannot move the table. */
.live-bulk-toolbar{box-sizing:border-box;height:52px;min-height:52px;max-height:52px;flex:0 0 52px;flex-wrap:nowrap;gap:8px}
.live-bulk-toolbar>#liveSelectedCount{flex:0 0 170px;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.live-bulk-toolbar>.actions{min-width:0;flex-wrap:nowrap;overflow-x:auto;scrollbar-width:none}
@media(max-width:600px){.live-bulk-toolbar>#liveSelectedCount{flex-basis:100px}}


/* Destructive row actions retain the compact action shape. */
.view table .record-edit-pill.danger{color:var(--ui-error,#b55353)!important;border-color:color-mix(in srgb,var(--ui-error,#b55353) 45%,var(--theme-panel,var(--card)))!important}
.view table .record-edit-pill.danger:hover{border-color:var(--ui-error,#b55353)!important;background:color-mix(in srgb,var(--ui-error,#b55353) 8%,var(--theme-panel,var(--card)))!important}

/* Exposure is a risk signal: amber for exposed, teal for not exposed. */
.internet-exposure-value.is-yes{color:#9a5700;background:color-mix(in srgb,#e9a12b 18%,var(--theme-panel,var(--card)));border-color:#d79a38}
.internet-exposure-value.is-no{color:#08776e;background:color-mix(in srgb,#29a99a 12%,var(--theme-panel,var(--card)));border-color:#60a89e}

.internet-exposure-value{box-sizing:border-box;width:auto;min-width:34px;height:22px;padding:3px 8px;border-radius:999px;font-size:10px;font-weight:500;line-height:1.2;white-space:nowrap}

/* Give Active a distinct fill and border on alternating and dark rows. */
.status.lifecycle-active{background:#e3f5eb!important;color:#176343!important;border-color:#74b993!important}
[data-theme="dark"] .status.lifecycle-active{background:#204c3b!important;color:#b8f1ce!important;border-color:#78c79b!important}

/* Consistent contrast for the remaining lifecycle states. */
.status.lifecycle-inactive{background:#fff1d6!important;color:#805000!important;border-color:#c99b46!important;opacity:1}
.status.lifecycle-archived{background:#e9eef3!important;color:#425469!important;border-color:#98a9ba!important;opacity:1}
.status.lifecycle-deleted{background:#fde8e7!important;color:#942e32!important;border-color:#d48c90!important;opacity:1}
[data-theme="dark"] .status.lifecycle-inactive{background:#514020!important;color:#ffe0a0!important;border-color:#cda454!important}
[data-theme="dark"] .status.lifecycle-archived{background:#334253!important;color:#dae5f1!important;border-color:#91a6bd!important}
[data-theme="dark"] .status.lifecycle-deleted{background:#572d34!important;color:#ffc8cb!important;border-color:#d68e98!important}
/* Keep selected record states readable in the filter trigger. */
.live-status-filter{flex:none;max-width:100%}
.live-status-filter .multi-filter-btn{display:flex;align-items:center;gap:8px;width:auto!important;min-width:156px;max-width:100%;height:auto;min-height:34px;padding:6px 10px;white-space:normal}
#liveRegisterStatusLabel{display:flex;align-items:center;flex-wrap:wrap;gap:4px;overflow:visible;white-space:normal;text-overflow:clip}
#liveRegisterStatusLabel .status{font-size:10px;padding:3px 7px;line-height:1.2}
.live-status-filter .multi-filter-menu{min-width:170px;padding:8px}
.live-status-filter .multi-filter-menu label{display:flex;align-items:center;gap:8px;padding:7px 8px;border-radius:5px}
.live-status-filter .multi-filter-menu label:has(input:checked){background:color-mix(in srgb,var(--theme-accent,#087f88) 10%,var(--theme-panel,var(--card)))}
/* Summarise multiple selections instead of crowding the trigger. */
.live-status-filter .multi-filter-btn{width:max-content!important;min-width:0!important;max-width:none;flex:none;justify-content:space-between;gap:6px;padding:5px 8px;white-space:nowrap}
#liveRegisterStatusLabel{flex-wrap:nowrap;white-space:nowrap;flex:none}
.live-inline-state-filter{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.live-inline-state-filter label{display:inline-flex;align-items:center;gap:5px;cursor:pointer;white-space:nowrap;margin:0}
.live-inline-state-filter input[type=checkbox]{width:14px!important;min-width:14px!important;height:14px;margin:0;accent-color:var(--theme-accent,#087f88)}
.live-inline-state-filter .status{font-size:10px;line-height:1.2;padding:3px 7px}

.live-inline-state-filter .status{display:inline-flex;align-items:center;box-sizing:border-box;height:22px;border-radius:999px}
.governance-register-filters{display:flex!important;align-items:center;flex-wrap:wrap;gap:12px!important}
.live-page .governance-register-filters .governance-pill-filters.live-inline-state-filter{flex-wrap:wrap!important;min-width:0!important;width:auto!important;max-width:100%;flex:1 1 280px!important}
.governance-filter-pill{border:1px solid var(--theme-line,var(--border));background:var(--theme-panel,var(--card));color:var(--theme-muted,var(--ui-muted))}
.governance-pill-filters label:has(input:checked) .governance-filter-pill{background:color-mix(in srgb,var(--theme-accent,#087f88) 12%,var(--theme-panel,var(--card)));border-color:var(--theme-accent,#087f88);color:var(--theme-text,var(--ui-ink))}
.governance-dropdown-filter{display:flex;align-items:center;gap:8px;white-space:nowrap;font-size:11px}
.governance-dropdown-filter select{width:auto!important;min-width:140px;max-width:240px}
.navigation-icon-button{display:inline-flex!important;align-items:center;justify-content:center;width:28px!important;min-width:28px!important;height:28px!important;padding:5px!important}
.navigation-icon-button svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.navigation-icon-label{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.audit-detail-card{max-width:1000px!important}
.audit-change-table td{white-space:pre-wrap!important;overflow-wrap:anywhere;vertical-align:top!important}
.governance-status{border:1px solid var(--theme-line,var(--border));background:color-mix(in srgb,var(--theme-accent,#087f88) 8%,var(--theme-panel,var(--card)))}

/* Override the old dropdown's 120px slot for the inline state controls. */
.live-page .live-register-filters .live-inline-state-filter{display:flex!important;flex-direction:row!important;flex-wrap:nowrap!important;width:max-content!important;min-width:max-content!important;max-width:none;flex:0 0 auto;gap:8px}
.live-page .live-register-filters .live-inline-state-filter label{flex:0 0 auto}
@media(max-width:700px){.register-combined-toolbar>.toprow>.filters:has(.live-inline-state-filter){flex-wrap:wrap!important}.live-page .live-register-filters:has(.live-inline-state-filter){grid-template-columns:1fr!important;min-width:0}.live-page .live-register-filters .live-inline-state-filter{gap:6px}}
.table-columns-group+.table-columns-group{margin-top:12px;padding-top:12px;border-top:1px solid var(--theme-line,var(--border))}
.table-columns-group>.btn{margin-top:8px}

.tenant-dropdown-row{display:grid;grid-template-columns:minmax(100px,1fr) minmax(120px,1fr) auto auto;gap:8px;align-items:center;padding:8px 0;border-bottom:1px solid var(--theme-line,var(--border))}
.tenant-dropdown-row label{display:flex;align-items:center;gap:5px}.tenant-dropdown-row input[type=checkbox]{width:16px;min-width:16px}
@media(max-width:600px){.tenant-dropdown-row{grid-template-columns:1fr 1fr}}
.workspace-settings-card{width:min(600px,100%)}
.settings-section{display:flex!important;flex-direction:column;align-items:flex-start;gap:6px;width:100%;white-space:normal!important;text-align:left;padding:16px!important}
.settings-section span{font-weight:400;line-height:1.5}
.account-icon-button{display:inline-flex;align-items:center;justify-content:center;min-width:36px;min-height:34px}
/* Compact account actions share one row in the persistent header. */
.live-auth-panel:has(#openWorkspaceSettings){display:flex;flex-direction:row;align-items:center;justify-content:flex-end;gap:5px}
#persistentApp.horizontal .shell-account-controls .live-auth-panel{flex-direction:row;align-items:center;justify-content:flex-end;gap:5px}
#liveSignOut,#openWorkspaceSettings,.shell-account-controls .live-auth-panel .btn{display:inline-flex;align-items:center;justify-content:center;width:28px;min-width:28px;min-height:28px;height:28px;padding:4px!important;box-sizing:border-box;align-self:center}
#liveSignOut svg,#openWorkspaceSettings svg,.shell-account-controls .live-auth-panel .btn svg{width:15px;height:15px}
/* Keep sign-out after workspace and settings actions in both header layouts. */
#liveSignOut,.shell-account-controls [aria-label="Sign out"]{order:10;margin-left:auto}
/* Workspace selection uses the same compact square as the account actions. */
.live-auth-panel select[data-workspace-choice],.shell-account-controls select[data-workspace-choice]{appearance:none;width:28px!important;min-width:28px!important;max-width:28px!important;height:28px!important;min-height:28px!important;flex:0 0 28px;padding:4px!important;box-sizing:border-box;align-self:center;border:1px solid var(--theme-line)!important;border-radius:7px!important;background-color:var(--theme-panel)!important;color:transparent!important;font-size:0!important;cursor:pointer;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='15' height='15' viewBox='0 0 24 24' fill='none' stroke='%23315f6c' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 7h16m-4-4 4 4-4 4M20 17H4m4-4-4 4 4 4'/%3E%3C/svg%3E")!important;background-position:center;background-repeat:no-repeat}
.live-auth-panel select[data-workspace-choice] option,.shell-account-controls select[data-workspace-choice] option{font-size:14px;color:var(--theme-text);background:var(--theme-panel)}
[data-theme="dark"] .live-auth-panel select[data-workspace-choice],[data-theme="dark"] .shell-account-controls select[data-workspace-choice]{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='15' height='15' viewBox='0 0 24 24' fill='none' stroke='%23c3d6e5' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 7h16m-4-4 4 4-4 4M20 17H4m4-4-4 4 4 4'/%3E%3C/svg%3E")}
/* Settings and list editing have their own layout, independent of header buttons. */
#workspaceSettings .workspace-settings-card{width:min(560px,calc(100vw - 40px));padding:24px;box-sizing:border-box}
#workspaceSettings .settings-section{height:auto!important;min-height:88px!important;max-height:none!important;box-sizing:border-box;justify-content:center;line-height:1.45!important;padding:16px 18px!important;border-radius:10px!important;gap:7px}
#workspaceSettings .settings-section strong{font-size:14px}
#workspaceSettings .settings-section span{font-size:13px;color:var(--theme-muted);line-height:1.5}
#workspaceSettings .note{margin:0 0 18px}
#tenantDropdownManager .tenant-dropdown-card{width:min(760px,calc(100vw - 40px));box-sizing:border-box;padding:24px}
.tenant-dropdown-actions{display:flex;gap:8px;flex-wrap:wrap;justify-content:flex-end}
#tenantDropdownManager .modal-head{align-items:center}
.tenant-dropdown-list-label{display:flex;flex-direction:column;gap:7px;font-size:12px;font-weight:700;margin-top:20px}
#tenantDropdownManager [data-list]{width:100%;height:40px!important;min-height:40px!important}
#tenantDropdownManager [data-list-help]{margin:10px 0 18px;line-height:1.5}
#tenantDropdownManager .tenant-dropdown-columns,#tenantDropdownManager .tenant-dropdown-row{display:grid;grid-template-columns:minmax(100px,1fr) minmax(160px,1.6fr) 95px 62px;gap:12px;align-items:center}
#tenantDropdownManager .tenant-dropdown-columns{font-size:11px;font-weight:700;color:var(--theme-muted);padding:8px 0;border-bottom:1px solid var(--theme-line)}
#tenantDropdownManager .tenant-dropdown-row{padding:10px 0}
#tenantDropdownManager .tenant-dropdown-row>span{overflow-wrap:anywhere;font-size:12px;color:var(--theme-muted)}
#tenantDropdownManager .tenant-dropdown-row>input{width:100%;min-width:0;box-sizing:border-box;height:38px!important;min-height:38px!important;padding:8px 10px!important}
#tenantDropdownManager .tenant-dropdown-row>label{white-space:nowrap;font-size:12px;font-weight:400}
#tenantDropdownManager .tenant-dropdown-row>.btn{width:62px;height:34px!important;min-height:34px!important;padding:6px 10px!important}
#tenantDropdownManager .tenant-dropdown-add{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr) auto;gap:12px;align-items:end;margin-top:22px;padding-top:18px;border-top:1px solid var(--theme-line)}
#tenantDropdownManager .tenant-dropdown-add h3{grid-column:1/-1;margin:0;font-size:14px}
#tenantDropdownManager .tenant-dropdown-add label{display:flex;flex-direction:column;gap:7px;font-size:12px;font-weight:700}
#tenantDropdownManager .tenant-dropdown-add input{width:100%;min-width:0;box-sizing:border-box;height:38px!important;min-height:38px!important}
#tenantDropdownManager [data-message]:empty{display:none}
#tenantDropdownManager [data-message]{margin:16px 0 0;font-size:13px}
@media(max-width:600px){#tenantDropdownManager .tenant-dropdown-card,#workspaceSettings .workspace-settings-card{padding:18px}#tenantDropdownManager .modal-head{align-items:flex-start;flex-direction:column}#tenantDropdownManager .tenant-dropdown-columns{display:none}#tenantDropdownManager .tenant-dropdown-row{grid-template-columns:minmax(0,1fr) auto}#tenantDropdownManager .tenant-dropdown-row>span,#tenantDropdownManager .tenant-dropdown-row>input{grid-column:1/-1}#tenantDropdownManager .tenant-dropdown-add{grid-template-columns:1fr}#tenantDropdownManager .tenant-dropdown-add>.btn{justify-self:start}}
.live-auth-panel select[data-workspace-choice],.shell-account-controls select[data-workspace-choice]{background-repeat:no-repeat!important;background-position:center!important;background-size:15px 15px!important}
/* The current workspace sits above the compact account controls. */
.shell-account-controls .shell-workspace-label{align-self:stretch;min-width:0;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;text-align:right;font-size:11px;line-height:1.4;font-weight:500;color:var(--theme-muted,#596f7a)}
#persistentApp.horizontal .shell-account-controls{gap:4px}
.shell-account-controls [aria-label="Sign out"]{margin-left:0}
/* Increase only the first-level horizontal menu labels. */
#persistentApp.horizontal nav>.nav-primary,#persistentApp.horizontal nav>.nav-group>.nav-group-toggle{font-size:13px!important}
/* Assessment setup uses a separate window with one short step at a time. */
body:has(.e8-setup-wizard) .app{display:block!important}
body:has(.e8-setup-wizard) .app>aside,body:has(.e8-setup-wizard) main>.toprow,body:has(.e8-setup-wizard) .sidebar-toggle{display:none!important}
body:has(.e8-setup-wizard) main{padding:24px!important;max-width:1040px;margin:auto}
body:has(.e8-setup-wizard) .sidebar-resizer{display:none!important}
.workspace-choice-modal .live-login-form{padding:42px}
.workspace-choice-modal .live-login-form h1{font-size:27px;margin-bottom:12px}
.workspace-choice-modal .live-login-intro{margin-bottom:24px;line-height:1.6}
.workspace-signed-in{display:flex;flex-direction:column;gap:5px;margin-bottom:26px;padding:14px 16px;background:#f2f7f8;border-radius:10px;overflow-wrap:anywhere}
.workspace-signed-in span{font-size:11px;color:#637789}
.workspace-signed-in strong{font-size:13px;font-weight:600;color:#18344b}
.workspace-choice-form label{margin:0!important}
.workspace-choice-form select{margin:10px 0 0!important;font-size:14px!important}
.workspace-choice-form .live-form-message:empty{display:none}
.workspace-choice-form .modal-actions{justify-content:space-between!important;margin-top:26px!important;padding-top:20px!important}
.workspace-choice-form .btn{height:40px!important;min-height:40px!important;padding:0 18px!important}
@media(max-width:700px){.workspace-choice-modal .live-login-form{padding:28px}}
.e8-setup-wizard header{display:flex;align-items:center;justify-content:space-between;margin-bottom:18px}
.e8-setup-wizard header img{width:190px}
.e8-setup-wizard header p{font-size:13px;color:var(--theme-muted)}
.e8-wizard-progress{margin-bottom:22px}
.e8-setup-wizard .card{padding:28px}
.e8-wizard-heading h1{margin:0;font-size:25px;outline:none}
.e8-wizard-heading p{color:var(--theme-muted);margin:10px 0 24px}
.e8-setup-wizard .form{display:grid;grid-template-columns:1fr 1fr;gap:18px}
.e8-setup-wizard .form>label{display:flex;flex-direction:column;gap:7px}
.e8-setup-wizard .form .wide{grid-column:1/-1}
.e8-setup-wizard input,.e8-setup-wizard select,.e8-setup-wizard textarea{width:100%;box-sizing:border-box}
.e8-setup-wizard [hidden]{display:none!important}
.e8-setup-wizard footer{display:flex;justify-content:space-between;gap:12px;margin-top:24px;border-top:1px solid var(--theme-line);padding-top:20px}
.e8-setup-wizard footer>div{display:flex;gap:10px}
.e8-wizard-review dl{display:grid;grid-template-columns:1fr 2fr;gap:12px}
.e8-wizard-review dd{margin:0;white-space:pre-wrap;overflow-wrap:anywhere}
.e8-edit-value{float:right;margin-left:14px;font-size:11px!important;height:26px!important;min-height:26px!important}
.e8-resume-banner{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:16px}
.e8-wizard-track{height:5px;background:var(--theme-line);border-radius:5px;overflow:hidden;margin:-8px 0 24px}
.e8-wizard-track [role=progressbar]{height:100%;background:var(--theme-accent);transition:width .2s}
.e8-abandon-button{color:#a33b3b!important}
.e8-setups-list{margin-bottom:18px;padding:20px!important}
.e8-setup-row{display:flex;justify-content:space-between;gap:18px;align-items:center;padding:14px 0;border-top:1px solid var(--theme-line)}
.e8-setup-row>div{display:flex;flex-direction:column;gap:5px}
.e8-setup-row span{font-size:12px;color:var(--theme-muted)}
#e8RunSelect[hidden]{display:none!important}
.e8-assessment-list-scroll{overflow-x:auto;margin-top:14px}
.e8-run-table{width:100%;border-collapse:collapse}
.e8-run-table th:nth-child(2){width:25%}
.view .e8-run-table th:has(input[type=checkbox]),.view .e8-run-table td:has(>input[type=checkbox]){box-sizing:border-box;width:32px!important;min-width:32px!important;max-width:32px!important;padding:8px!important;text-align:center!important}
.view .e8-run-table input[type=checkbox]{appearance:auto!important;box-sizing:border-box;width:16px!important;min-width:16px!important;max-width:16px!important;height:16px!important;min-height:16px!important;padding:0!important;margin:0!important;vertical-align:middle;accent-color:var(--theme-accent,#087f90)}
.e8-workspace-head>.toprow>.actions{margin-left:auto;flex-wrap:nowrap;align-items:center;gap:4px}
.e8-workspace-head>.e8-assessment-toolbar{align-items:center!important;gap:14px;margin-top:14px}
.e8-workspace-head>.e8-assessment-toolbar>.filters{margin:0!important;flex:1 1 auto}
@media(max-width:700px){.e8-workspace-head>.e8-assessment-toolbar{flex-wrap:wrap}.e8-workspace-head>.e8-assessment-toolbar>.filters{flex-wrap:wrap}.e8-workspace-head>.e8-assessment-toolbar>.actions{margin-left:0;max-width:100%}}
.e8-run-table small{display:block;margin-top:5px;color:var(--theme-muted)}
.e8-run-table [data-run-row]{cursor:pointer}
.e8-run-table [data-run-row]:hover{background:color-mix(in srgb,var(--theme-accent) 5%,var(--theme-panel))}
.e8-run-table .selected-assessment{background:color-mix(in srgb,var(--theme-accent) 10%,var(--theme-panel));box-shadow:inset 3px 0 var(--theme-accent)}
.e8-run-table .selected-assessment>td{background:color-mix(in srgb,var(--theme-accent) 10%,var(--theme-panel))!important}
.e8-run-table .selected-assessment>td:first-child{box-shadow:inset 3px 0 var(--theme-accent)}
.e8-run-table [data-run-row]:focus-visible{outline:2px solid var(--theme-accent);outline-offset:-2px}
.e8-assessment-status{display:inline-flex;white-space:nowrap;align-items:center;border-radius:999px;padding:4px 9px;background:var(--theme-line);font-size:11px}
.record-link{display:inline-flex;align-items:center;gap:6px;text-align:left;padding:0;border:0;background:transparent!important;color:var(--theme-accent,#087f90);font:inherit;cursor:pointer;max-width:100%}
body[data-theme] .view button.record-link[data-linked-record],body[data-theme] .view button.record-link[data-linked-record]:hover{background:transparent!important;box-shadow:none!important}
body[data-theme] .view button.record-link[data-linked-record]{height:auto!important;min-height:0!important;max-height:none!important;padding:0!important;line-height:inherit!important;vertical-align:middle}
.view table tbody td,.view table tbody td.summary-status-column,.view table tbody td.summary-actions-column{vertical-align:middle!important}
.record-email{color:var(--theme-accent,#087f90);text-decoration:none}
.record-email:hover{text-decoration:underline}
.record-link span,.record-email span{min-width:0;white-space:normal;overflow-wrap:anywhere}
.view table .record-link,.view table .record-email{box-sizing:border-box;min-width:0;max-width:100%;white-space:normal}
.record-link-list{display:flex;flex-direction:column;align-items:flex-start;gap:6px;min-width:0}
.record-link-list .record-link{align-items:flex-start}
.record-link-list .record-link svg{margin-top:2px}
.record-link svg{width:13px;height:13px;flex:none;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.record-link:hover span{text-decoration:underline}
.record-link:focus-visible{outline:2px solid var(--theme-accent);outline-offset:3px}
.view table td.summary-actions-column>.btn,.view table td.summary-actions-column>button{display:inline-flex;margin:0 3px!important}
.view table td .record-row-actions,.view table td.summary-actions-column>.actions{display:inline-flex;align-items:center;flex-wrap:nowrap!important;gap:4px;white-space:nowrap}
.record-action-button svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.record-action-button:disabled{opacity:.35!important;cursor:not-allowed!important;box-shadow:none!important}
.view button:disabled,.record-popup-page button:disabled{opacity:.35!important;cursor:not-allowed!important;box-shadow:none!important}
.e8-assessment-confirm{width:min(620px,calc(100vw - 32px));max-width:620px}
.e8-assessment-confirm p,.e8-assessment-confirm li{line-height:1.6}
.e8-assessment-confirm label{display:flex;flex-direction:column;gap:8px;font-weight:600}
.e8-assessment-confirm input{width:100%;box-sizing:border-box}
.e8-assessment-confirm ul{max-height:150px;overflow:auto}
.view .e8-context p{max-width:none!important;width:auto!important;white-space:normal;overflow-wrap:normal;word-break:normal}
.view .e8-assessment-filters.live-register-filters{display:flex!important;align-items:center;gap:12px;min-width:0;margin:14px 0}
.e8-assessment-filters input[type=search]{width:260px;max-width:100%}
.e8-workspace-head .live-bulk-toolbar .record-action-button{flex:0 0 28px}
.e8-workspace-head #e8ClearSelection{width:auto!important;min-width:0!important;max-width:none!important;height:28px!important;min-height:28px!important;padding:0 10px!important;line-height:1.2!important}
.record-action-button[data-record-action=delete],.record-action-button[data-assessment-action=delete]{color:#a33b3b!important}
body[data-view=vendors] .companies-panel .filters.live-register-filters{display:flex!important;align-items:center;justify-content:flex-start;gap:12px;min-width:0;flex:1 1 auto}
body[data-view=vendors] .companies-panel .filters #companySearch{width:260px;min-width:180px;flex:0 1 260px}
body[data-view=vendors] .companies-panel .filters #companyLifeMulti.live-inline-state-filter{flex-wrap:nowrap;min-width:max-content!important;margin-left:0!important}
body.record-popup-page .app{display:block!important}
body.record-popup-page aside,body.record-popup-page .sidebar-resizer,body.record-popup-page .sidebar-toggle,body.record-popup-page main>.toprow{display:none!important}
body.record-popup-page main{max-width:1060px;margin:auto;padding:24px!important}
.record-summary{padding:26px!important}
.record-summary header{display:flex;justify-content:space-between;align-items:center;gap:20px}
.record-title{display:flex;flex-wrap:wrap;align-items:center;gap:10px;min-width:0}
.record-title>.note{flex-basis:100%;margin:0;font-size:11px}
.record-title>h1{overflow-wrap:anywhere}
.record-summary header .record-lock-button{display:inline-flex;align-items:center;justify-content:center;width:32px!important;min-width:32px!important;max-width:32px!important;height:32px;padding:6px!important}
.record-lock-button svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.record-inline-editor.modal.show{position:static;display:block;inset:auto;z-index:auto;padding:0;background:transparent;backdrop-filter:none;overflow:visible}
.record-inline-editor>.modal-card{width:100%;max-width:none;box-sizing:border-box;margin:24px 0 0;padding:0;border:0;border-radius:0;box-shadow:none;background:transparent}
.record-inline-editor .modal-head[hidden],.record-inline-editor .modal-actions[hidden]{display:none!important}
.record-inline-editor form{display:block}
.record-inline-editor .record-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px 24px;min-width:0;margin:0;padding:0;border:0}
.record-fields>label{min-width:0;margin:0;font-size:12px;color:var(--theme-muted);font-weight:500}
.record-fields input,.record-fields select,.record-fields textarea{box-sizing:border-box;max-width:100%;width:100%;margin-top:6px}
.record-summary.is-locked .record-fields input:disabled,.record-summary.is-locked .record-fields select:disabled,.record-summary.is-locked .record-fields textarea:disabled{opacity:1;color:var(--theme-text);-webkit-text-fill-color:var(--theme-text);background:var(--theme-panel-2,#f8fbfc);cursor:default}
.record-summary.is-locked .audit-reason-field{display:none}
.record-summary.is-locked .live-required-note,.record-summary.is-locked .live-required-star{display:none}
.record-readonly-field{min-width:0}
.record-readonly-field dt{padding:0 0 6px;border:0;font-size:12px;font-weight:500}
.record-readonly-field dd{min-height:38px;box-sizing:border-box;padding:10px 12px;border:1px solid var(--theme-line);border-radius:8px;background:var(--theme-panel-2,#f8fbfc)}
.record-readonly-field dd.is-empty{color:var(--theme-muted)}
.record-inline-editor .modal-actions{margin-top:24px;padding-top:16px;border-top:1px solid var(--theme-line)}
@media(max-width:600px){.record-inline-editor .record-fields{grid-template-columns:minmax(0,1fr)}.record-summary header{align-items:flex-start}.record-summary header>.actions{flex-wrap:nowrap}}
.record-summary h1{font-size:25px;margin:0}
.record-summary dl{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px 24px;margin-top:24px}
.record-summary dt,.record-summary dd{margin:0;overflow-wrap:anywhere;white-space:pre-wrap}
.record-summary dt{color:var(--theme-muted)}
@media(max-width:600px){.record-summary dl{grid-template-columns:minmax(0,1fr)}}
body[data-view=vendors] .companies-panel .filters #companyLifeMulti.live-inline-state-filter{width:auto!important;min-width:0!important;display:flex;flex:0 0 auto}
body[data-view=vendors] .companies-panel .filters{display:flex;align-items:center;gap:14px;flex-wrap:wrap}
.e8-plan-card{padding:24px!important}
.e8-plan-sections{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,540px),1fr));gap:22px;margin-top:22px;align-items:stretch}
.e8-plan-section{background:var(--theme-panel);border:1px solid var(--theme-line);border-radius:10px;padding:18px}
.e8-plan-section h3{margin:0 0 12px;font-size:15px;color:var(--theme-text)}
.e8-plan-section dl{margin:0}
.e8-plan-value{display:grid;grid-template-columns:minmax(130px,.9fr) minmax(0,1.4fr) auto;gap:14px;align-items:start;padding:12px 0;border-top:1px solid var(--theme-line);font-size:13px;line-height:1.5}
.e8-plan-value dt{font-weight:600;color:var(--theme-muted)}
.e8-plan-value dd{margin:0;white-space:pre-wrap;overflow-wrap:anywhere}
.e8-plan-value>.btn{font-size:11px!important;height:27px!important;min-height:27px!important;padding:0 10px!important}
.view .e8-pencil-button,.view .e8-plan-value>.e8-pencil-button{display:inline-flex;align-items:center;justify-content:center;width:28px!important;min-width:28px!important;height:28px!important;min-height:28px!important;padding:5px!important;border-radius:7px!important;border:1px solid var(--theme-line)!important;background:var(--theme-panel)!important;color:var(--theme-muted)!important;box-shadow:none!important;cursor:pointer}
.e8-pencil-button svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.view .e8-pencil-button:hover{border-color:var(--theme-accent)!important;color:var(--theme-accent)!important;background:color-mix(in srgb,var(--theme-accent) 8%,var(--theme-panel))!important}
.e8-pencil-button:focus-visible{outline:2px solid var(--theme-accent);outline-offset:3px}
.app-action-icon,.view table .app-action-icon{color:var(--theme-muted)!important}
.app-action-icon svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.app-action-caption{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}
.app-action-icon:hover{color:var(--theme-accent)!important;border-color:var(--theme-accent)!important}
.app-action-icon:focus-visible{outline:2px solid var(--theme-accent);outline-offset:3px}
.app-action-icon[data-app-action-icon=remove]{color:#a33b3b!important}
.e8-live-tabs{align-items:center;gap:8px}
.e8-live-tabs>.btn{display:inline-flex;align-items:center;gap:8px;border-radius:999px!important;padding:8px 14px 8px 8px!important;height:40px!important;min-height:40px!important;font-weight:600!important;box-shadow:none!important}
.e8-stage-number{display:inline-flex;align-items:center;justify-content:center;width:24px;height:24px;flex:none;border-radius:50%;background:var(--theme-line);color:var(--theme-text);font-size:12px}
body .view .e8-live-tabs>button.btn.active{background:var(--theme-accent,#087f90)!important;border-color:var(--theme-accent,#087f90)!important;color:white!important}
body .view .e8-live-tabs>button.btn.active .e8-stage-number{background:#fff!important;color:#087f90!important;border:1px solid #fff!important;font-weight:700}
.e8-stage-connector{color:var(--theme-muted);font-size:19px;flex:none}
@media(max-width:600px){.e8-live-tabs{gap:6px}.e8-live-tabs>.btn{height:36px!important;min-height:36px!important;font-size:11px!important}.e8-stage-connector{display:none}}
@media(min-width:1800px){.e8-plan-sections{grid-template-columns:repeat(2,minmax(0,1fr));max-width:1520px;margin-left:auto;margin-right:auto}}
@media(max-width:600px){.e8-plan-value{grid-template-columns:minmax(0,1fr) auto}.e8-plan-value dt{grid-column:1/-1}.e8-plan-section{padding:14px}}
@media(max-width:600px){.e8-setup-wizard .form,.e8-wizard-review dl{grid-template-columns:1fr}.e8-setup-wizard .card{padding:18px}.e8-setup-wizard footer{flex-wrap:wrap}body:has(.e8-setup-wizard) main{padding:12px!important}}
/* Align menu text with the original logo wordmark rather than its taller symbol. */
#persistentApp.horizontal nav:not(.nav-measure){margin-bottom:8px}
#persistentApp.horizontal .compact-menu-toggle{height:48px!important;min-height:48px!important;max-height:48px!important;margin-bottom:8px}
#persistentApp.horizontal.compact-nav nav:not(.nav-measure){margin-bottom:0}

/* Compact audit event multi-select. */
.audit-event-dropdown{position:relative;flex:0 0 auto;font-size:12px}
.audit-event-dropdown summary{cursor:pointer;border:1px solid var(--border,#cddfe8);border-radius:8px;padding:9px 12px;background:var(--card,#fff);white-space:nowrap}
.audit-event-dropdown summary:focus-visible{outline:2px solid var(--theme-accent,#087f88);outline-offset:2px}
.audit-event-menu{position:absolute;top:calc(100% + 6px);left:0;z-index:30;width:350px;max-width:calc(100vw - 40px);max-height:320px;overflow:auto;background:var(--card,#fff);border:1px solid var(--border,#cddfe8);border-radius:10px;padding:8px;box-shadow:0 8px 24px #102b4226}
.live-page .live-register-filters .audit-event-menu .governance-pill-filters.live-inline-state-filter{display:flex!important;flex-direction:column!important;align-items:stretch;gap:2px;min-width:0!important;width:100%!important;max-width:100%;flex:none!important}
.live-page .audit-event-menu .governance-pill-filters label{display:flex;padding:6px;gap:8px;white-space:normal}
.audit-event-menu .governance-filter-pill{white-space:normal}

@media(max-width:700px){.audit-event-dropdown{width:100%;min-width:0}.audit-event-menu{width:100%;box-sizing:border-box}}

.record-email{display:inline-flex;align-items:center;gap:5px}.record-email svg{width:13px;height:13px;flex:none;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linejoin:round}
.actions>.table-print-button{order:5}
.actions>.table-reset-button{order:6}
.actions>.table-expand-button:not(.table-print-button):not(.table-refresh-button){order:7}
.actions>.table-fullscreen-button{order:8}

/* Status dropdown options are always a vertical list, including live registers. */
body .view .filters .workspace-status-dropdown .live-inline-state-filter{display:flex!important;flex-direction:column!important;flex-wrap:nowrap!important;align-items:stretch!important;width:100%!important;min-width:0!important;max-width:100%!important;flex:none!important;gap:0!important;margin:0!important}
body .view .filters .workspace-status-dropdown .live-inline-state-filter>label{display:flex!important;width:100%!important;flex:none!important;justify-content:flex-start!important}

.workspace-filter-field{display:inline-flex;align-items:center;gap:8px;flex:none}
.workspace-filter-label{font-size:12px;font-weight:400;white-space:nowrap;color:var(--theme-text,var(--ui-ink))}

.workspace-filter-field,.governance-dropdown-filter{display:inline-flex!important;flex-direction:column!important;align-items:center!important;justify-content:flex-end;gap:5px!important}
.workspace-filter-label{text-align:center;width:100%}

/* Compact status selectors: fit the widest pill plus controls. */
.workspace-status-dropdown{min-width:0!important;max-width:100%}
.workspace-status-dropdown>summary{box-sizing:border-box;height:32px;min-height:0!important;padding:3px 6px!important;gap:5px!important;overflow:hidden;font-size:11px}
.workspace-status-dropdown>summary .status{height:20px!important;padding:2px 6px!important;font-size:10px!important;white-space:nowrap}
.workspace-status-dropdown>.workspace-checkbox-menu{min-width:0!important;width:max-content;max-width:calc(100vw - 32px);padding:5px}
.workspace-status-dropdown .workspace-checkbox-menu label{padding:5px 2px!important;gap:5px!important}
.workspace-filter-field{min-width:0}

/* Filter captions sit beside the compact selectors. */
.workspace-filter-field,.governance-dropdown-filter{flex-direction:row!important;align-items:center!important;justify-content:flex-start;gap:8px!important}
.workspace-filter-label{width:auto;text-align:left;flex:none}

/* Match the admin register search field and align filter selector heights. */
.view .filters input:not([type=checkbox]):not([type=radio]):not([type=hidden]),.view .table-tools input[type=search]{box-sizing:border-box!important;width:260px!important;max-width:100%!important;min-width:56px!important;flex:0 1 260px!important;height:40px!important;min-height:40px!important;padding:10px!important;font-size:12px!important;font-weight:400!important;border-radius:6px!important}
.view .filters .workspace-checkbox-filter>summary,.view .table-tools .workspace-checkbox-filter>summary,.view .filters select,.view .table-tools select{box-sizing:border-box!important;display:flex;align-items:center;height:40px!important;min-height:40px!important;max-height:40px!important;padding:6px 10px!important;font-size:12px!important;border-radius:6px!important}

/* Dropdown statuses use their status colour as text, without a pill surface. */
body .view .filters .workspace-status-dropdown .status{background:transparent!important;border:0!important;border-radius:0!important;box-shadow:none!important;padding:0!important;height:auto!important;min-height:0!important;line-height:1.4!important;font-size:12px!important;opacity:1!important}
body .view .filters .workspace-status-dropdown .governance-filter-pill{color:var(--theme-accent,#087f88)!important}

/* Match the console sign-in layout without changing factor verification. */
#liveMfaModal{display:flex;align-items:flex-start;justify-content:center;padding:24px;background:#f2f7fb;overflow:auto;backdrop-filter:none}
#liveMfaModal .live-mfa-card.modal-card{display:grid;grid-template-columns:44% minmax(0,1fr);gap:0;width:min(920px,100%);max-width:920px;min-height:570px;height:auto;max-height:none;flex-shrink:0;margin-block:auto;padding:0;overflow:hidden;border-radius:28px;box-sizing:border-box}
#liveMfaModal .live-mfa-form{min-width:0;padding:58px clamp(30px,6vw,72px);display:flex;flex-direction:column;justify-content:center}
#liveMfaModal .modal-head{margin:0 0 28px;padding:0;border:0}
#liveMfaModal .live-mfa-form h2{font-size:30px;line-height:1.2;letter-spacing:-.04em;margin:0 0 8px}
#liveMfaModal .note{font-size:14px;line-height:1.5}
#liveMfaModal .form{display:grid;grid-template-columns:minmax(0,1fr);gap:12px;margin:0}
#liveMfaModal label{display:flex;flex-direction:column;gap:8px;margin:0;font-size:13px;font-weight:650}
#liveMfaModal #liveMfaCode{width:100%;height:46px;min-height:46px;box-sizing:border-box;font-size:14px;letter-spacing:normal;padding:0 14px;margin:0}
#liveMfaModal .modal-actions{display:flex;gap:10px;margin:0;padding-top:12px;border:0}
#liveMfaModal .form .btn.primary{width:100%;height:46px;min-height:46px;border-radius:10px}
#liveMfaModal .live-mfa-signout{text-align:center;margin-top:18px}
#liveMfaModal #liveMfaSignOut{background:transparent!important;border:0!important;box-shadow:none!important;color:#2563eb!important;font-size:12px;min-height:36px}
#liveMfaModal .live-mfa-qr{min-width:0;overflow-wrap:anywhere;margin-bottom:20px}
#liveMfaModal .live-mfa-qr img{max-width:100%;height:auto}
@media(max-width:700px){#liveMfaModal{padding:16px}#liveMfaModal .live-mfa-card.modal-card{grid-template-columns:minmax(0,1fr);min-height:0;border-radius:22px}#liveMfaModal .live-mfa-form{padding:30px 28px 36px}#liveMfaModal .live-mfa-form h2{font-size:26px}}
