/* Scan color modes. Evidence images retain their original colors. */
/* Desktop wordmarks are 10% larger; Fold and phone retain their existing size. */
@media(min-width:1100px) {
  html body.workspace-app .topbar>.brand,
  html body:not(.unified-auth) :is(.public-header,.public-footer) .public-brand {width:167.706px;height:45.738px;}
  html body.unified-auth .public-brand {width:165px;height:44px;}
  html body.product-first .logo {width:168.3px;}
}
html[data-color-mode=light],html[data-color-mode=light] body {
  color-scheme:light;--bg:var(--ui-ground);--surface:var(--ui-panel);--surface2:var(--ui-raised);
  --text:var(--ui-text);--heading:var(--ui-text);--muted:var(--ui-muted);--line:var(--ui-rule);
  --accent:var(--ui-brand);--brand:var(--ui-brand-fill);--button-accent:var(--ui-brand-fill);
  --button-accent-hover:#20adbe;--button-accent-active:#1a9baa;
  --accent-soft:var(--ui-active);--soft:var(--ui-active);--number:var(--ui-number);
  --critical:var(--ui-critical);--high:var(--ui-warning);--medium:var(--ui-warning);--success:var(--ui-success);
  --section-accent:var(--ui-icon);background:var(--ui-ground);color:var(--ui-text);
}
html[data-color-mode=light] :is(.workspace-app,.has-overview #main) {
  --overview-heading:var(--ui-text);--overview-body:var(--ui-text);--overview-secondary:var(--ui-muted);
  --overview-number:var(--ui-number);--overview-link:var(--ui-brand);--overview-critical:var(--ui-critical);
  --overview-high:var(--ui-warning);--overview-success:var(--ui-success);--overview-arrow:var(--ui-icon);
}
html[data-color-mode=light] :is(.brand,.public-brand,.logo) svg {mix-blend-mode:normal!important;}
html[data-color-mode=light] .brand-scan-image {filter:var(--scan-tone)!important;opacity:1!important;}
html[data-color-mode=light] .brand-scan-fill {flood-color:var(--ui-text);}
html[data-color-mode=light] .brand-host-fill {flood-color:var(--ui-brand-fill);}
html[data-color-mode=light] :is(.topbar,.public-header) {background:var(--ui-ground);}
html[data-color-mode=light] .workspace-app .dock {background:transparent;box-shadow:none;}
html[data-color-mode=light] .workspace-app .dock a:hover {background:var(--ui-hover);color:var(--ui-text);}
html[data-color-mode=light] .workspace-app .dock .active {background:var(--ui-active);color:var(--ui-active-text);}
html[data-color-mode=light] .workspace-app .topbar :is(.project-button,.avatar) {background:transparent;border-color:var(--ui-edge);color:var(--ui-text);}
html[data-color-mode=light] .workspace-app .topbar #account-initials {background:var(--ui-raised);color:var(--ui-text);}
html[data-color-mode=light] .workspace-app .topbar :is(.project-button,.avatar):hover {background:var(--ui-hover);}
html[data-color-mode=light] .workspace-app .topbar .pop>button.current {background:var(--ui-active);color:var(--ui-active-text);}
html[data-color-mode=light] :is(.panel,.app-dialog,.pop,.form-card,.auth-card,.summary-side,.selection-bar,.savebar,.toast) {background:var(--ui-panel);border-color:var(--ui-border);color:var(--ui-text);}
html[data-color-mode=light] .pop {box-shadow:0 12px 32px #263b4926;}
html[data-color-mode=light] :is(input:not([type=checkbox]):not([type=radio]),select,textarea,.search,.password-input,.input-action) {background:var(--ui-panel);border-color:var(--ui-edge);color:var(--ui-text);}
html[data-color-mode=light] :is(input,textarea)::placeholder {color:var(--ui-muted);}
html[data-color-mode=light] .search input {border:0;background:transparent;}
html[data-color-mode=light] :is(.btn,.button,.icon-button) {color:var(--ui-text);border-color:var(--ui-edge);background:var(--ui-panel);}
html[data-color-mode=light] :is(.btn,.button,.icon-button):hover {background:var(--ui-hover);}
html[data-color-mode=light] :is(.btn.primary,.button.primary,.auth-form button[type=submit],.btn:not(.outline):not(.subtle):not(.danger):not(.small).primary) {color:#102129;background:var(--ui-brand-fill);border-color:var(--ui-brand-fill);}
html[data-color-mode=light] :is(.link,.text-button,.text-link,.dashboard-heading .link) {color:var(--ui-brand);}
html[data-color-mode=light] :is(footer,.overview-chevron,.preview-note,.trustline,.available,.bottom p) {color:var(--ui-muted);}
html[data-color-mode=light] .workspace-app .overview-metrics .overview-metric>div>span {color:var(--ui-muted);}
html[data-color-mode=light] .workspace-app .main-sections .dashboard-heading {border-bottom-color:var(--ui-rule);}
html[data-color-mode=light] .workspace-app .main-sections .dashboard-heading h2 {color:var(--ui-text);}
html[data-color-mode=light] .workspace-app .main-sections .dashboard-heading .count {color:var(--ui-muted);}
html[data-color-mode=light] .workspace-app .dashboard-grid .dashboard-heading .link {color:var(--ui-brand);}
html[data-color-mode=light] .workspace-app .main-sections .scan-marker {color:var(--ui-icon);}
html[data-color-mode=light] .workspace-app .main-sections [data-severity=critical] .issue-marker::before {background:var(--ui-critical);}
html[data-color-mode=light] .workspace-app :is(.overview-heading-label>.icon,.overview-more-button,.overview-less-button) {color:var(--ui-icon);}
html[data-color-mode=light] :is(a.dashboard-row,.overview-asset,.overview-section-toggle,.overview-more-button,.overview-less-button):hover {background:var(--ui-hover);}
html[data-color-mode=light] .dashboard-meta .badge {background:transparent;border:0;}
html[data-color-mode=light] :is(.inventory-health-filters button,.settings-tabs button) {color:var(--ui-muted);border-color:var(--ui-border);background:transparent;}
html[data-color-mode=light] :is(.inventory-health-filters button,.settings-tabs button,.tabs a,.tabs button)[aria-pressed=true],html[data-color-mode=light] :is(.inventory-health-filters button,.settings-tabs button,.tabs a,.tabs button).active {background:var(--ui-active);color:var(--ui-active-text);border-color:var(--ui-active);}
html[data-color-mode=light] :is(.tree-domain,.tree-branch,.tree-row,.flaw-branch,.host-heading,.tree-asset,.tree-total,.report-list li,.data-table th,.data-table td) {border-color:var(--ui-rule);}
html[data-color-mode=light] :is(.tree-toggle,.tree-branch-toggle,.tree-node-icon,.tree-detail>.icon,.host-heading>.icon,.row-open) {color:var(--ui-icon);}
html[data-color-mode=light] :is(.tree-detail,.tree-branch-heading,.tree-asset,.flaw-branch-title,.data-table tr):hover {background:var(--ui-hover);}
html[data-color-mode=light] .workspace-app #main :is(.asset-link,.tree-branch-name,.report-title) {color:var(--ui-text);}
html[data-color-mode=light] .workspace-app #main .tree-url-context {color:var(--ui-muted);}
html[data-color-mode=light] .workspace-app #settings-panel .settings-section-heading {border-color:var(--ui-rule);}
html[data-color-mode=light] .workspace-app #settings-panel .settings-section-heading h2 {color:var(--ui-text);}
html[data-color-mode=light] .workspace-app #settings-panel .settings-section-heading .icon {color:var(--ui-icon);}
html[data-color-mode=light] :is(.badge.critical,.banner.error,.btn.danger,.stat-icon.critical) {color:var(--ui-critical);background:var(--ui-bad-surface);border-color:#dfb4bd;}
html[data-color-mode=light] :is(.badge.high,.badge.medium,.banner.warning,.stat-icon.high) {color:var(--ui-warning);background:var(--ui-warn-surface);border-color:#dbc597;}
html[data-color-mode=light] :is(.badge.success,.banner.success) {color:var(--ui-success);background:var(--ui-good-surface);border-color:#b4d5c4;}
html[data-color-mode=light] :is(.badge.accent,.banner:not(.warning):not(.error):not(.success),.stat-icon,.tile-icon) {color:var(--ui-brand);background:var(--ui-active);border-color:var(--ui-border);}
html[data-color-mode=light] .badge.neutral {background:transparent;color:var(--ui-muted);border-color:var(--ui-rule);}
html[data-color-mode=light] .dashboard-meta .badge {background:transparent;border:0;}
html[data-color-mode=light] .progress {background:var(--ui-raised);}
html[data-color-mode=light] .live-summary,html[data-color-mode=light] .live-empty {color:var(--ui-muted);}
html[data-color-mode=light] :is(.live-summary strong,.live-section-head h2,.live-empty strong,.live-job-copy strong) {color:var(--ui-text);}
html[data-color-mode=light] :is(.live-section-head h2>.icon,.live-empty>.icon,.live-job-icon) {color:var(--ui-icon);}
html[data-color-mode=light] .live-run-tools select {background:var(--ui-panel);border-color:var(--ui-edge);}
html[data-color-mode=light] .live-camera {background:var(--ui-panel);border-color:var(--ui-border);}
html[data-color-mode=light] .live-camera-top {color:var(--ui-text);}
html[data-color-mode=light] :is(.live-camera-device,.live-camera-foot,.live-camera-foot time,.live-job-copy>span,.live-job-results) {color:var(--ui-muted);}
html[data-color-mode=light] .live-discovery-row {border-color:var(--ui-rule);}
html[data-color-mode=light] .workspace-app :is(#live-run-note,.live-discovery-empty) {color:var(--ui-muted);}
/* Public page UI follows the chosen palette too; its rendered screenshots are unchanged. */
html[data-color-mode=light] :is(.window,.preview-window,.columns section,.preview-findings,.auth-form,.trust-point,.triptych article) {background:var(--ui-panel);border-color:var(--ui-border);}
html[data-color-mode=light] :is(.chrome,.preview-chrome,.preview-heading,.preview-rail) {background:var(--ui-raised);color:var(--ui-muted);border-color:var(--ui-border);}
html[data-color-mode=light] :is(.label,h1 em,.hero-copy h1 em,.auth-intro em,.step,.columns h3 svg,.metric svg,.rail) {color:var(--ui-icon);}
html[data-color-mode=light] :is(.columns h3,.metric div,.btn.outline,nav>a:hover) {color:var(--ui-text);}
html[data-color-mode=light] :is(.example,.record small) {color:var(--ui-muted);}
html[data-color-mode=light] :is(.record small b,.metric.rose svg) {color:var(--ui-critical);}
html[data-color-mode=light] .metric.gold svg {color:var(--ui-warning);}
html[data-color-mode=light] .record.urgent {border-color:var(--ui-critical);}
html[data-color-mode=light] .auth-switch a {color:var(--ui-brand);}
html[data-color-mode=light] .rail i:first-child {background:var(--ui-active);color:var(--ui-active-text);}
@media(max-width:599px) {html[data-color-mode=light] .workspace-app #navigation {background:var(--ui-panel);border:1px solid var(--ui-border);box-shadow:0 2px 14px #263b4912;}}

/* Reference palette, shared across Scan's public pages and workspace routes.
   These tokens intentionally belong to Scan, not the qa.pro shared adapter. */
:root:not([data-color-mode=light]) {
  --ui-ground:#0e171c;--ui-panel:#132028;--ui-panel-head:#14232b;--ui-panel-body:#132028;
  --ui-stat-surface:#122027;--ui-raised:#1b2b35;--ui-border:#293b46;--ui-rule:#2a3b45;--ui-edge:#526873;
  --ui-text:#cbd6de;--ui-heading:#e5ecf1;--ui-muted:#a6b7c3;--ui-number:#d6e1e9;
  --ui-brand:#26c4d7;--ui-brand-fill:#21bfd3;--ui-icon:#91ccd8;--ui-nav-ink:#c2ced8;
  --ui-danger:#fa88a8;--ui-critical:#fa88a8;--ui-warning:#e0bb73;--ui-success:#99c7b7;
  --ui-hover:#1a2b35;--ui-active:#16343f;--ui-active-text:#66d7e5;
  --ui-bad-surface:#33232e;--ui-warn-surface:#302b21;--ui-good-surface:#1a302b;
}
html:not([data-color-mode=light]),html:not([data-color-mode=light]) body {
  --bg:var(--ui-ground);--surface:var(--ui-panel);--surface2:var(--ui-raised);
  --text:var(--ui-text);--heading:var(--ui-heading);--muted:var(--ui-muted);--line:var(--ui-border);
  --accent:var(--ui-brand);--accent-soft:var(--ui-active);--soft:var(--ui-active);
  --critical:var(--ui-critical);--high:var(--ui-warning);--success:var(--ui-success);
  --number:var(--ui-number);--button-accent:var(--ui-brand-fill);
  --button-accent-hover:#37cede;--button-accent-active:#1aaabe;
  background:var(--ui-ground);color:var(--ui-text);
}
html:not([data-color-mode=light]) :is(.panel,.app-dialog,.pop,.form-card,.auth-card,.summary-side,.selection-bar,.savebar,.toast,.window,.preview-window,.columns section,.preview-findings,.auth-form,.trust-point,.triptych article) {background:var(--ui-panel);border-color:var(--ui-border);}
html:not([data-color-mode=light]) :is(.topbar,.public-header) {background:var(--ui-ground);}
html:not([data-color-mode=light]) .workspace-app #navigation .active {background:var(--ui-active);color:var(--ui-active-text);}
html:not([data-color-mode=light]) .workspace-app #navigation .active::before {background:var(--ui-brand);}
html:not([data-color-mode=light]) .workspace-app :is(.live-camera,.live-terminal-head,.live-curl) {background:var(--ui-panel);border-color:var(--ui-border);}
html:not([data-color-mode=light]) .workspace-app :is(.live-terminal,.live-camera-view,.live-run-tools select) {background:var(--ui-ground);border-color:var(--ui-border);}
html:not([data-color-mode=light]) .workspace-app .live-terminal-tools button[aria-pressed=true] {background:var(--ui-active);color:var(--ui-brand);}
@media(max-width:599px) {html:not([data-color-mode=light]) .workspace-app #navigation {background:var(--ui-panel);border-color:var(--ui-border);}}
