/* The same neutral surfaces and cobalt controls as the public home page. */
.account-page :is(.sign-in-panel,.auth-layout,.license-card,.scanner-card,.own-scans) {
  background:var(--pf-surface,#101216);
  border-color:var(--pf-border,#ffffff12);
  border-radius:6px;
  box-shadow:none;
}
.account-page :is(.auth-card,.auth-aside) { background:var(--pf-surface,#101216); }
.account-page :is(.sign-in-heading h1,.member-account-title,.auth-form h2,.auth-form h3) { color:var(--pf-text,#f3f4f6); }
.account-page :is(.sign-in-switcher,.auth-tabs) {
  background:var(--pf-bg,#08090b);
  border-color:var(--pf-border,#ffffff12);
  border-radius:4px;
}
.account-page .sign-in-option { border-radius:2px; }
.account-page .sign-in-option.active {
  color:var(--pf-text,#f3f4f6);
  background:var(--pf-surface-raised,#171a20);
  border-color:#ffffff18;
}
.account-page .auth-tab.active { color:var(--pf-text,#f3f4f6); border-color:var(--pf-blue,#439aff); }
.account-page :is(.auth-form input,.redeem-form input,.invite-box input) {
  background:var(--pf-bg,#08090b);
  color:var(--pf-text,#f3f4f6);
  border-color:#ffffff24;
  border-radius:3px;
  box-shadow:none;
}
.account-page :is(.auth-form input,.redeem-form input,.invite-box input):focus {
  border-color:var(--pf-blue,#439aff);
  box-shadow:0 0 0 2px #439aff12;
}
.account-page .sign-in-note { border-color:var(--pf-border,#ffffff12); }
.account-page :is(.sign-in-text,.text-action,.download-link) { color:var(--pf-blue,#439aff); }
.account-page :is(.auth-form label,.redeem-form label) { color:#c8cbd2; }
.account-page :is(.sign-in-heading p,.sign-in-note,.sign-in-hint,.auth-form p,.auth-privacy,.empty-scans,.own-scan-row small) { color:var(--pf-muted,#969da9); }
.account-page :is(.notice,.backend-note) { background:var(--pf-surface,#101216); border-color:var(--pf-border,#ffffff12); border-radius:4px; }
.account-page .notice.error { border-color:#f4758560; }
.account-page :is(.invite-box,.own-scans-labels,.own-scan-row,.own-scans-more) { border-color:var(--pf-border,#ffffff12); }
.account-page .own-scans-labels { background:#ffffff02; color:var(--pf-muted,#969da9); }
.account-page .own-scan-row:hover { background:#ffffff04; }
.account-page :is(.button,.sign-in-submit,.invite-box button) { border-radius:3px; box-shadow:none; }
.account-page .button.light,.account-page .sign-in-submit {
  color:#fff;
  background:var(--pf-primary,#166cf0);
  border-color:var(--pf-primary,#166cf0);
}
.account-page .button.light:hover,.account-page .sign-in-submit:hover { background:#287dff; border-color:#458fff; }
.account-page .button.outline { color:#d6d8df; background:var(--pf-surface-raised,#171a20); border-color:#ffffff20; }
.account-page .button.outline:hover { background:#23262d; border-color:#ffffff38; }

/* Profile content and dialogs keep all existing avatar and key interactions. */
.workspace-main:has(#profileBody) .panel,
.profile-dialog {
  color:var(--pf-text,#f3f4f6);
  background:var(--pf-surface,#101216);
  border-color:var(--pf-border,#ffffff12);
  border-radius:6px;
  box-shadow:none;
}
.workspace-main:has(#profileBody) :is(.view-heading p,.profile-identity p,.profile-email p,.profile-media-card p,.profile-media-card small,.field-note,.key-lifetime-note,.profile-key-meta,.keys-empty p) { color:var(--pf-muted,#969da9); }
.workspace-main:has(#profileBody) :is(.view-heading h1,.profile-identity h2,.panel h2,.profile-key-head strong,.profile-facts dd,.profile-media-content strong) { color:var(--pf-text,#f3f4f6); }
.workspace-main:has(#profileBody) :is(.eyebrow,.profile-facts dt,.profile-dialog legend,.profile-key-head code) { color:var(--pf-muted,#969da9); }
.workspace-main:has(#profileBody) :is(.profile-back,.profile-inline-link,.text-button,.profile-section-icon) { color:var(--pf-blue,#439aff); }
.workspace-main:has(#profileBody) :is(.api-intro,.keys-empty-icon,.key-count,.profile-key-scopes span) {
  background:var(--pf-surface-raised,#171a20);
  border-color:var(--pf-border,#ffffff12);
  color:#bac4d3;
  border-radius:4px;
}
.workspace-main:has(#profileBody) .api-intro :is(strong,a) { color:var(--pf-text,#f3f4f6); }
.workspace-main:has(#profileBody) .api-intro p { color:var(--pf-muted,#969da9); }
.workspace-main:has(#profileBody) :is(.profile-key,.profile-facts dl>div) { border-color:var(--pf-border,#ffffff12); }
.workspace-main:has(#profileBody) :is(input:not([type=checkbox]),select,textarea),
.profile-dialog :is(input:not([type=checkbox]),select,textarea) {
  background:var(--pf-bg,#08090b);
  color:var(--pf-text,#f3f4f6);
  border-color:#ffffff24;
  border-radius:3px;
  box-shadow:none;
}
.workspace-main:has(#profileBody) :is(input:not([type=checkbox]),select,textarea):focus,
.profile-dialog :is(input:not([type=checkbox]),select,textarea):focus {
  border-color:var(--pf-blue,#439aff);
  box-shadow:0 0 0 2px #439aff12;
}
.workspace-main:has(#profileBody) :is(.button,.key-revoke),.profile-dialog .button { border-radius:3px; box-shadow:none; }
.workspace-main:has(#profileBody) .button.light,.profile-dialog .button.light {
  color:#fff;
  background:var(--pf-primary,#166cf0);
  border-color:var(--pf-primary,#166cf0);
}
.workspace-main:has(#profileBody) .button.light:hover,.profile-dialog .button.light:hover { background:#287dff; border-color:#458fff; }
.workspace-main:has(#profileBody) .button.outline,.profile-dialog .button.outline {
  color:#d6d8df;
  background:var(--pf-surface-raised,#171a20);
  border-color:#ffffff20;
}
.workspace-main:has(#profileBody) .button.outline:hover,.profile-dialog .button.outline:hover { background:#23262d; border-color:#ffffff38; }
.workspace-main:has(#profileBody) .key-secret-card {
  /* The once-only key card has important rules in the original profile sheet. */
  background:var(--pf-surface-raised,#171a20)!important;
  border-color:#439aff60!important;
}
.workspace-main:has(#profileBody) .profile-photo { background:#171a20; color:#9fa9b7; }
.workspace-main:has(#profileBody) .profile-card-photo { border-color:#ffffff24; }
.workspace-main:has(#profileBody) .profile-media-status { color:#b9c8db; }
.profile-dialog::backdrop { background:#040507c9; backdrop-filter:blur(4px); }
.profile-dialog :is(label,legend) { color:#c8cbd2; }
.profile-dialog :is(form>small,.key-scopes>p,.key-scope-option small,.key-scope-option code) { color:var(--pf-muted,#969da9); }
.profile-dialog .key-scope-option { background:var(--pf-bg,#08090b); border-color:var(--pf-border,#ffffff12); }
.profile-dialog .key-scope-option strong { color:var(--pf-text,#f3f4f6); }
.profile-dialog .key-scope-option input { accent-color:var(--pf-primary,#166cf0); }
.profile-dialog .button.danger { background:#ad3f531a; border-color:#f4758540; color:#f59fac; }

/* Reports use the same base surfaces while preserving verdict colors. */
.report-top { background:var(--pf-bg,#08090b); border-color:var(--pf-border,#ffffff12); backdrop-filter:none; }
.report-top :is(.secure-label,.top-return),.report-footer { color:var(--pf-muted,#969da9); }
.report-top .top-return { border-color:#ffffff20; }
.report-shell { color:var(--pf-text,#f3f4f6); }
.report-shell :is(.report-hero,.report-footer,.info-row,.coverage-row,.log-line,.file-head,.file-row,.detection-row,.rpf-folder,.triage-row,.deleted-records,.deleted-record) { border-color:var(--pf-border,#ffffff12); }
.report-shell .report-hero h1 { color:var(--pf-text,#f3f4f6); background:none; -webkit-text-fill-color:currentColor; }
.report-shell :is(.report-hero p,.kicker,.section-heading p,.muted,.context-note,.empty-line,.report-empty p,.info-row dt,.card p,.file-row small,.file-row time,.triage-row small) { color:var(--pf-muted,#969da9); }
.report-shell :is(.card,.accounts-table,.report-empty,.page-notice),
.report-shell .card:is(.scan-facts,.diagram,.findings-card),
.report-shell .service-card.compact-service-card,
.report-dialog {
  background:var(--pf-surface,#101216);
  border-color:var(--pf-border,#ffffff12);
  border-radius:6px;
  box-shadow:none;
}
.report-shell .report-nav { background:var(--pf-surface,#101216); border-color:var(--pf-border,#ffffff12); border-radius:4px; }
.report-shell .report-nav button { color:var(--pf-muted,#969da9); border-radius:3px; }
.report-shell .report-nav button:hover { background:#ffffff07; color:#fff; }
.report-shell .report-nav button.active { background:var(--pf-primary,#166cf0); border-color:#2c7af1; color:#fff; }
.report-shell :is(.button,.account-link) { border-radius:3px; box-shadow:none; }
.report-shell .button.solid { background:var(--pf-primary,#166cf0); border-color:var(--pf-primary,#166cf0); color:#fff; }
.report-shell .button.solid:hover { background:#287dff; border-color:#458fff; }
.report-shell .button.outline { background:var(--pf-surface-raised,#171a20); border-color:#ffffff20; color:#d6d8df; }
.report-shell .button.outline:hover { background:#23262d; border-color:#ffffff38; }
.report-shell :is(.file-row,.account-row):hover { background:#ffffff04; }
.report-shell .account-link { background:#ffffff03; border-color:#ffffff20; color:#b8cce5; }
.report-shell .account-link:hover { background:#439aff12; border-color:#439aff55; }
.report-shell .account-avatar { background:#1b1e24; border-color:#ffffff14; color:#9da8b8; }
.report-shell .scan-verdict-banner {
  border-radius:6px;
  border-color:color-mix(in srgb,var(--result-accent) 32%,#24262d);
  background:color-mix(in srgb,var(--result-accent) 7%,#101216);
}
.report-shell .scan-verdict-main p { color:#b3b7c0; }
.report-shell .verdict-count { background:#08090b70; border-color:#ffffff0d; border-radius:4px; }
.report-shell .verdict-count dt { color:#b8bec8; }
.report-shell .overview-card-icon { background:#439aff0c; border-color:#439aff30; color:#8dbaf4; border-radius:4px; }
.report-shell .overview-card-heading h3 { color:var(--pf-text,#f3f4f6); }
.report-shell .overview-card-heading p { color:var(--pf-muted,#969da9); }
.report-shell .scan-facts .info-row dt { color:var(--pf-muted,#969da9); }
.report-shell .scan-facts .info-row dd { color:#dee1e7; }
.report-shell .scan-facts-footer { border-color:var(--pf-border,#ffffff12); }
.report-shell .donut>.donut-center { background:var(--pf-surface,#101216); }
.report-shell .donut-center small { color:var(--pf-muted,#969da9); }
.report-shell .donut>.donut-tooltip { background:#171a20; border-color:color-mix(in srgb,var(--result-accent) 45%,#393c44); color:#e4e7ed; border-radius:4px; }
.report-shell .legend-item { border-color:var(--pf-border,#ffffff12); border-radius:4px; color:#b8bec8; }
.report-shell .report-panel[data-panel="overview"] .count-card {
  background:color-mix(in srgb,var(--result-accent) 5%,#101216);
  border-color:color-mix(in srgb,var(--result-accent) 28%,#292c33);
  border-radius:4px;
}
.report-shell .report-panel[data-panel="overview"] .count-card:is(:hover,.active) { background:color-mix(in srgb,var(--result-accent) 11%,#101216); border-color:var(--result-accent); }
.report-shell .findings-card .finding {
  border-color:color-mix(in srgb,var(--result-accent) 20%,#25282e);
  border-left-color:var(--result-accent);
  background:color-mix(in srgb,var(--result-accent) 6%,#101216);
  border-radius:4px;
}
.report-shell .finding .path-chip { background:#08090b75; border-color:#ffffff07; border-radius:3px; }
.report-shell .finding-icon { border-radius:4px; }
.report-shell .finding-badge { border-radius:4px; }
.report-shell :is(.history-context,.history-category) { background:var(--pf-surface,#101216); border-color:var(--pf-border,#ffffff12); border-radius:6px; box-shadow:none; backdrop-filter:none; }
.report-shell .history-category[open] { border-color:#ffffff29; }
.report-shell .history-category>summary:hover { background:#ffffff04; }
.report-shell :is(.history-category-mark,.history-category-count) { background:#ffffff04; border-color:#ffffff16; color:#aebbcf; border-radius:4px; }
.report-shell .history-category-title small { color:var(--pf-muted,#969da9); }
.report-shell .history-record-reason { background:#ffffff02; border-left-color:#439aff60; }
.report-shell .history-record-reason>span { color:#9fa9b7; }
.report-shell .service-card.compact-service-card .service-card-name h3 { color:var(--pf-text,#f3f4f6); }
.report-shell .compact-service-card .service-icon { background:#439aff10; border-color:#439aff30; color:#8dbaf4; border-radius:4px; }
.report-shell .service-start-panel { background:#ffffff02; border-color:var(--pf-border,#ffffff12); border-radius:4px; }
.report-shell .service-start-heading,.report-shell .service-process-details dt { color:var(--pf-muted,#969da9); }
.report-shell .service-start-panel strong { color:#c9d1dd; }
.report-shell .service-uptime,.report-shell .service-card-footer { color:#8e98a7; }
.report-shell .service-card-footer { border-color:var(--pf-border,#ffffff12); }
.report-shell .service-process-details dd { background:var(--pf-bg,#08090b); border-color:#ffffff13; border-radius:3px; color:#bdcce0; }
.report-shell .service-process-id { background:#439aff0b; border-color:#439aff2b; color:#91b9eb; }
.report-shell :is(.file-controls input,.file-controls select,.triage-row select,.triage-row textarea),
.report-dialog :is(input,select,textarea) { background:var(--pf-bg,#08090b); border-color:#ffffff24; border-radius:3px; color:var(--pf-text,#f3f4f6); }
.report-dialog :is(header,.dialog-actions) { border-color:var(--pf-border,#ffffff12); }
.report-dialog .button { border-radius:3px; box-shadow:none; }
.report-dialog .button.solid { background:var(--pf-primary,#166cf0); border-color:var(--pf-primary,#166cf0); color:#fff; }
.report-dialog::backdrop { background:#040507c9; }

@media(prefers-reduced-motion:reduce) {
  .account-page :is(.button,.sign-in-option),.report-shell :is(.button,.report-nav button,.account-link),.workspace-main:has(#profileBody) .button { transition:none; }
}
