/*
 * DD SiteGuard · dark appearance for private workspace and sign-in pages
 * Add this stylesheet after the page-specific stylesheets. It is deliberately
 * inert unless the layout applies body.sg-private-dark.
 */
body.sg-private-dark {
    color-scheme: dark;
    --sg-dark-chrome-brand: #e7eef0;
    --sg-dark-chrome-muted: #a5b4b9;
    --sg-dark-menu-border: #26382b;
    --sg-dark-menu-surface: #080b09;
    --sg-button-blue: var(--sg-dark-accent);
    --sg-button-blue-hover: var(--sg-dark-accent-hover);
    --sg-button-blue-border: var(--sg-dark-accent-border);
    --sg-button-blue-border-hover: var(--sg-dark-accent-border-hover);
    --sg-button-blue-ink: #f5fbf6;
    --bg: var(--sg-dark-page);
    --card: var(--sg-dark-surface-base);
    --ink: var(--sg-dark-ink);
    --muted: var(--sg-dark-muted);
    --line: var(--sg-dark-border-muted);
    --brand: #b0c6b6;
    --brand-2: #c7d8cc;
    --accent: #efa064;
    --accent-soft: #34281f;
    --sage: #8fc39a;
    --critical: #ff8d82;
    --critical-bg: #632f31;
    --critical-border: #a8504b;
    --critical-ink: #ffe9e5;
    --high: #ffc07f;
    --high-bg: #583b25;
    --high-border: #91603a;
    --high-ink: #fff0dc;
    --medium: #f1d277;
    --medium-bg: #51451f;
    --medium-border: #847239;
    --medium-ink: #fff5d2;
    --low: #b8ddbf;
    --low-bg: #e3f2e6;
    --low-border: #95c4a0;
    --low-ink: #285632;
    --sg-surface-1: var(--sg-dark-surface-base);
    --sg-surface-2: var(--sg-dark-surface-raised);
    --sg-surface-3: var(--sg-dark-surface-deep);
    --sg-border-soft: var(--sg-dark-border-soft);
    --sg-text-soft: var(--sg-dark-text-soft);
    --sg-text-dim: var(--sg-dark-text-dim);
    --sg-teal: #7ad694;
    --sg-teal-deep: #21452d;
    --sg-orange: #efa064;
    background: var(--sg-dark-page);
    color: var(--ink);
    accent-color: var(--sg-teal);
}

body.sg-private-dark .page-shell { color: var(--ink); }
body.sg-private-dark h1,
body.sg-private-dark h2,
body.sg-private-dark h3,
body.sg-private-dark h4,
body.sg-private-dark h5,
body.sg-private-dark h6,
body.sg-private-dark strong,
body.sg-private-dark dt { color: var(--ink); }
body.sg-private-dark p,
body.sg-private-dark li,
body.sg-private-dark dd,
body.sg-private-dark td { color: inherit; }
body.sg-private-dark a { color: #9ecfca; }
body.sg-private-dark a:hover { color: #c0e5dd; }
body.sg-private-dark .muted,
body.sg-private-dark .hero-note { color: var(--muted); }

/* Persistent account controls and navigation actions */
body.sg-private-dark .header-action:hover,
body.sg-private-dark .header-menu-trigger:hover,
body.sg-private-dark .header-menu[open] > .header-menu-trigger {
    box-shadow: 0 4px 14px rgba(0, 0, 0, .22);
}
body.sg-private-dark .header-operator-button {
    border-color: var(--sg-button-blue-border);
    background: var(--sg-button-blue);
    color: var(--sg-button-blue-ink);
}
body.sg-private-dark .header-operator-button:hover {
    border-color: var(--sg-button-blue-border-hover);
    background: var(--sg-button-blue-hover);
    color: #fff;
}
body.sg-private-dark .header-menu-section { color: #93aaa9; }
body.sg-private-dark .header-menu-signout { color: #ffaaa0; }
body.sg-private-dark .header-menu-signout:hover { background: #422d30; }

/* Base surfaces, metrics, and form controls */
body.sg-private-dark .card,
body.sg-private-dark .sg-panel,
body.sg-private-dark .agency-panel,
body.sg-private-dark .ex-profile-card,
body.sg-private-dark .ex-form-card,
body.sg-private-dark .ex-preview-card,
body.sg-private-dark .ex-run-summary,
body.sg-private-dark .ex-result-card,
body.sg-private-dark .admin-metric,
body.sg-private-dark .admin-summary-card,
body.sg-private-dark .admin-finding {
    border-color: var(--line);
    background: var(--sg-surface-1);
    color: var(--ink);
    box-shadow: 0 10px 28px rgba(0, 0, 0, .17);
}
body.sg-private-dark .metric,
body.sg-private-dark .stat-card,
body.sg-private-dark .score-box,
body.sg-private-dark .ex-stat,
body.sg-private-dark .agency-report-stat {
    border-color: #394a65;
    background: linear-gradient(145deg, var(--sg-surface-3), var(--sg-surface-1) 74%);
    color: var(--ink);
    box-shadow: 0 8px 24px rgba(0, 0, 0, .16);
}
body.sg-private-dark .metric-label,
body.sg-private-dark .eyebrow,
body.sg-private-dark .sg-eyebrow,
body.sg-private-dark .sg-step,
body.sg-private-dark .sg-chart-kicker,
body.sg-private-dark .ex-kicker,
body.sg-private-dark .agency-kicker,
body.sg-private-dark .admin-heading .sg-eyebrow {
    color: #a3b7bb;
}
body.sg-private-dark .sg-intro h1,
body.sg-private-dark .sg-settings-intro h1,
body.sg-private-dark .ex-page-head h1,
body.sg-private-dark .agency-page h1,
body.sg-private-dark .admin-heading h1 { color: #edf3f4; }
body.sg-private-dark .sg-lede,
body.sg-private-dark .sg-settings-intro > p:last-child,
body.sg-private-dark .admin-heading > p:last-child,
body.sg-private-dark .ex-lede,
body.sg-private-dark .agency-lede { color: #adbbc0; }
body.sg-private-dark .sg-intro-note {
    border-color: #d6b08d;
    color: #b5c0c3;
}
body.sg-private-dark .sg-note-icon {
    border-color: #d6b08d;
    background: #f5e7d7;
    color: #754a2c;
}
body.sg-private-dark .sg-panel-heading,
body.sg-private-dark .sg-recent-heading,
body.sg-private-dark .agency-panel-head {
    border-color: #344750;
}
body.sg-private-dark .sg-panel-heading h2,
body.sg-private-dark .sg-check-title h3,
body.sg-private-dark .sg-empty h3,
body.sg-private-dark .agency-page h2,
body.sg-private-dark .agency-page h3,
body.sg-private-dark .ex-page h2,
body.sg-private-dark .ex-page h3 { color: #e3ecee; }
body.sg-private-dark .sg-step span,
body.sg-private-dark .ex-kicker span { color: #f0a76f; }

body.sg-private-dark input:not([type="checkbox"]):not([type="radio"]):not([type="file"]),
body.sg-private-dark textarea,
body.sg-private-dark select,
body.sg-private-dark .sg-select-trigger,
body.sg-private-dark .agency-field input:not([type=file]):not([type=checkbox]),
body.sg-private-dark .agency-field select,
body.sg-private-dark .agency-field textarea,
body.sg-private-dark .ex-field input,
body.sg-private-dark .ex-field select,
body.sg-private-dark .ex-field textarea,
body.sg-private-dark .admin-search input,
body.sg-private-dark .admin-grant-form input,
body.sg-private-dark .admin-revoke-form input,
body.sg-private-dark .admin-plan-change-filters input,
body.sg-private-dark .admin-plan-change-filters select,
body.sg-private-dark .admin-price-catalog-filters input,
body.sg-private-dark .admin-price-catalog-filters select {
    border-color: #465b65;
    background-color: #111f27;
    color: #e3ecee;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, .2);
}
body.sg-private-dark input::placeholder,
body.sg-private-dark textarea::placeholder { color: #80939a; opacity: 1; }
body.sg-private-dark input[readonly],
body.sg-private-dark input:disabled,
body.sg-private-dark textarea:disabled,
body.sg-private-dark select:disabled {
    border-color: #34454d;
    background-color: #1c2b33;
    color: #9bacb1;
}
body.sg-private-dark select {
    border-color: #3c5140;
    background-color: #0e1410;
    color: #e3ecee;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none'%3E%3Cpath d='m5 7.5 5 5 5-5' stroke='%239ecfc3' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    box-shadow: inset 0 1px 0 rgba(255,255,255,.025);
}
body.sg-private-dark .sg-select-trigger {
    border-color: #3c5140;
    background-color: #0e1410;
    color: #e3ecee;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.025);
}
body.sg-private-dark select:hover:not(:disabled),
body.sg-private-dark .sg-select-trigger:hover:not(:disabled) {
    border-color: #6aa879;
    background-color: #17241a;
}
body.sg-private-dark select option { background: #101711; color: #e6efe8; }
body.sg-private-dark .sg-theme-preference-field select {
    border-color:#237a43;
    background-color:#237a43;
    background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none'%3E%3Cpath d='m5 7.5 5 5 5-5' stroke='%23ffffff' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    color:#fff;
    box-shadow:inset 0 1px 0 rgba(255,255,255,.12),0 4px 12px rgba(35,122,67,.16);
}
body.sg-private-dark .sg-theme-preference-field select:hover:not(:disabled) { border-color:#2e8a51; background-color:#2e8a51; }
body.sg-private-dark .sg-theme-preference-field select:focus-visible {
    border-color:#3c9b61;
    outline:3px solid rgba(72,174,105,.3);
    outline-offset:2px;
    box-shadow:0 0 0 1px rgba(72,174,105,.24);
}
body.sg-private-dark .sg-theme-preference-field select option { background:#101711; color:#e6efe8; }
body.sg-private-dark .sg-select-chevron,
body.sg-private-dark .sg-input-wrap svg { color: #a2c9c1; }
body.sg-private-dark .sg-select-listbox {
    border-color: #3b5140;
    background: #101711;
    box-shadow: 0 18px 44px rgba(0, 0, 0, .44);
}
body.sg-private-dark .sg-select-option { color: #d4dfe2; }
body.sg-private-dark .sg-select-option.is-active,
body.sg-private-dark .sg-select-option:hover { background: #1d3523; color: #e6f5e9; }
body.sg-private-dark .sg-select-option.is-disabled { color: #75888f; }
body.sg-private-dark .sg-select-option-check { color: #9bd0b7; }
body.sg-private-dark .sg-history-filters select,
body.sg-private-dark .sg-history-filters .sg-select-trigger {
    border-color: #70c78b;
    background-color: #237a43;
    color: #ffffff;
}
body.sg-private-dark .sg-history-filters select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none'%3E%3Cpath d='m5 7.5 5 5 5-5' stroke='%23ffffff' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
body.sg-private-dark .sg-history-filters select:hover:not(:disabled),
body.sg-private-dark .sg-history-filters .sg-select-trigger:hover:not(:disabled) {
    border-color: #96e1aa;
    background-color: #2f9253;
}
body.sg-private-dark .sg-history-filters :is(select,.sg-select-trigger):focus-visible {
    border-color: #b9ebc5;
    outline: 3px solid rgba(122, 214, 148, .42);
    outline-offset: 2px;
}
body.sg-private-dark .sg-history-filters select option {
    background: #1b2b43;
    color: #e8f1fc;
}
body.sg-private-dark .sg-history-filters .sg-select-chevron { color: #ffffff; }
body.sg-private-dark .sg-history-filters > button[type="submit"] {
    border: 1px solid #4fa669;
    background: #237a43;
    color: #ffffff;
}
body.sg-private-dark .sg-history-filters > button[type="submit"]:hover {
    border-color: #75c68b;
    background: #2f9253;
    color: #ffffff;
}
body.sg-private-dark .sg-history-filters > button[type="submit"]:focus-visible {
    outline: 3px solid rgba(122, 214, 148, .42);
    outline-offset: 2px;
}
body.sg-private-dark :is(#audit-history-status-listbox,#audit-history-client-listbox) {
    border-color: #4b7654;
    background: #101711;
}
body.sg-private-dark :is(#audit-history-status-listbox,#audit-history-client-listbox) .sg-select-option {
    color: #d8e5f3;
}
body.sg-private-dark :is(#audit-history-status-listbox,#audit-history-client-listbox) .sg-select-option.is-active,
body.sg-private-dark :is(#audit-history-status-listbox,#audit-history-client-listbox) .sg-select-option:hover {
    background: #237a43;
    color: #ffffff;
}
body.sg-private-dark :is(#audit-history-status-listbox,#audit-history-client-listbox) .sg-select-option-check {
    color: #ffffff;
}
body.sg-private-dark .sg-start-panel input,
body.sg-private-dark .sg-start-panel input:hover {
    border-color: #465b65;
    background: #111f27;
    color: #e3ecee;
}
body.sg-private-dark .sg-start-panel input::placeholder { color: #81949a; }
body.sg-private-dark label,
body.sg-private-dark .sg-form label,
body.sg-private-dark .sg-monitoring-form label,
body.sg-private-dark .agency-field label,
body.sg-private-dark .agency-label,
body.sg-private-dark .admin-search label,
body.sg-private-dark .admin-grant-form label,
body.sg-private-dark .admin-plan-change-filters label,
body.sg-private-dark .admin-price-catalog-filters label,
body.sg-private-dark .ex-field label { color: #c5d1d4; }
body.sg-private-dark .sg-field-hint,
body.sg-private-dark .sg-submit-row > span,
body.sg-private-dark .sg-settings-hint,
body.sg-private-dark .agency-hint,
body.sg-private-dark .ex-muted,
body.sg-private-dark .ex-section-heading > p { color: #9aabb0; }

body.sg-private-dark button,
body.sg-private-dark .sg-submit-button,
body.sg-private-dark .agency-button:not(.agency-button-quiet):not(.agency-button-danger),
body.sg-private-dark .ex-button-primary,
body.sg-private-dark .sg-monitoring-button {
    border-color: var(--sg-button-blue-border);
    background: var(--sg-button-blue);
    color: var(--sg-button-blue-ink);
    box-shadow: 0 4px 12px rgba(0, 0, 0, .2);
}
body.sg-private-dark button:hover,
body.sg-private-dark .sg-submit-button:hover,
body.sg-private-dark .agency-button:not(.agency-button-quiet):not(.agency-button-danger):hover,
body.sg-private-dark .ex-button-primary:hover,
body.sg-private-dark .sg-monitoring-button:hover {
    border-color: var(--sg-button-blue-border-hover);
    background: var(--sg-button-blue-hover);
    color: #fff;
}
body.sg-private-dark button:disabled,
body.sg-private-dark button[aria-disabled="true"],
body.sg-private-dark .ex-button:disabled { opacity: .62; cursor: not-allowed; }
body.sg-private-dark .button-link { color: #9ecfca; }
body.sg-private-dark .header-menu-signout { background: transparent; }

/* Audit dashboard, report, history, comparison, evidence and charts */
body.sg-private-dark .sg-overview-strip,
body.sg-private-dark .sg-overview-context-card,
body.sg-private-dark .sg-overview-category-score,
body.sg-private-dark .sg-overview-pagespeed-item,
body.sg-private-dark .sg-overview-field-block,
body.sg-private-dark .sg-overview-gsc-metrics > div,
body.sg-private-dark .sg-overview-field-metrics > div {
    border-color: #394a65;
    background: var(--sg-surface-2);
    color: var(--ink);
}
body.sg-private-dark .sg-overview-heading,
body.sg-private-dark .sg-overview-context-heading,
body.sg-private-dark .sg-overview-field-block,
body.sg-private-dark .sg-overview-pagespeed-item h4 { color: #e3ecee; }
body.sg-private-dark .sg-overview-metrics > div,
body.sg-private-dark .sg-overview-gsc-metrics > div,
body.sg-private-dark .sg-overview-field-metrics > div { border-color: #354a53; }
body.sg-private-dark .sg-overview-metrics dt,
body.sg-private-dark .sg-overview-category-score dt,
body.sg-private-dark .sg-overview-field-metrics dt,
body.sg-private-dark .sg-overview-gsc-metrics dt { color: #a8b8bd; }
body.sg-private-dark .sg-overview-metrics dd,
body.sg-private-dark .sg-overview-category-score dd,
body.sg-private-dark .sg-overview-field-metrics dd,
body.sg-private-dark .sg-overview-gsc-metrics dd { color: #e3ecee; }
body.sg-private-dark .sg-overview-category-score dd span,
body.sg-private-dark .sg-overview-context-empty,
body.sg-private-dark .sg-overview-field-source,
body.sg-private-dark .sg-overview-range,
body.sg-private-dark .sg-overview-pagespeed-item h4 { color: #a4b5ba; }
body.sg-private-dark .sg-overview-context-note,
body.sg-private-dark .sg-overview-field-block { border-color: #354a53; }
body.sg-private-dark .sg-report-header,
body.sg-private-dark .sg-audit-overview,
body.sg-private-dark .sg-search-console-page-history,
body.sg-private-dark .sg-scheduled-issue-comparison { color: var(--ink); }
body.sg-private-dark .score-box,
body.sg-private-dark .sg-score-box--needs-work,
body.sg-private-dark .sg-score-box--watch,
body.sg-private-dark .sg-score-box--good,
body.sg-private-dark .sg-score-box--strong {
    border-color: #42536f;
    background: linear-gradient(145deg, var(--sg-surface-3), var(--sg-surface-2));
    color: #e7eff0;
}
body.sg-private-dark .score-box small,
body.sg-private-dark .score-box span { color: #a7b8bd; }
body.sg-private-dark .sg-score-grid-cell { background: #30424a; }
body.sg-private-dark .sg-score-grid-cell--filled { background: #79bea8; }
body.sg-private-dark .sg-running-audit {
    border-color: #394a65;
    background: var(--sg-surface-1);
    color: #e2ecee;
}
body.sg-private-dark .sg-running-audit-copy,
body.sg-private-dark .sg-running-audit-heading h2 { color: #dce7e9; }
body.sg-private-dark .sg-running-audit-actions { border-color: #394a65; }
body.sg-private-dark .sg-running-audit-actions-note,
body.sg-private-dark .sg-running-audit-actions-unavailable,
body.sg-private-dark .sg-running-audit-action-feedback { color: #a7b8bd; }
body.sg-private-dark .sg-running-audit-action-feedback--error { color: #f2a5a5; }
body.sg-private-dark .sg-running-audit-cell { background: #2b3c44; }
body.sg-private-dark .sg-running-audit-cell--filled { background: #70bda7; }
body.sg-private-dark .sg-running-audit-cell--yellow { background: #e8b46a; }
body.sg-private-dark .sg-running-audit-cell--failed { background: #b85f5d; }
body.sg-private-dark .sg-running-audit-live { color: #a7d9c7; }
body.sg-private-dark .sg-report-navigation { color: #a8b8bd; }
body.sg-private-dark .sg-report-navigation a,
body.sg-private-dark .sg-report-header a,
body.sg-private-dark .sg-overview-context-heading a { color: #9ecfca; }
body.sg-private-dark .sg-report-list { border-color: #33464f; }
body.sg-private-dark .sg-report-row {
    border-color: #33464f;
    color: #dce6e8;
}
body.sg-private-dark .sg-report-row:hover { background: var(--sg-surface-3); }
body.sg-private-dark .sg-report-site strong,
body.sg-private-dark .sg-report-detail strong { color: #e6eef0; }
body.sg-private-dark .sg-report-site small,
body.sg-private-dark .sg-report-detail small,
body.sg-private-dark .sg-history-description,
body.sg-private-dark .sg-history-count { color: #a4b4b9; }
body.sg-private-dark .sg-report-arrow { color: #9ebbb8; }
body.sg-private-dark .preview-issue,
body.sg-private-dark .issue-card,
body.sg-private-dark .sg-check-item,
body.sg-private-dark .admin-finding {
    border-color: #394a65;
    background: var(--sg-surface-2);
}
body.sg-private-dark .issue-card h3,
body.sg-private-dark .preview-issue h3 { color: #e6eef0; }
body.sg-private-dark .issue-card dt,
body.sg-private-dark .issue-card dd,
body.sg-private-dark .preview-issue dd { color: #c2cfd2; }
body.sg-private-dark .sg-check-item { background: var(--sg-surface-2); }
body.sg-private-dark .sg-check-title h3 { color: #dce7e8; }
body.sg-private-dark .sg-check-copy > p,
body.sg-private-dark .sg-check-footnote,
body.sg-private-dark .sg-empty p { color: #a0b0b5; }
body.sg-private-dark .sg-check-icon,
body.sg-private-dark .sg-check-mark,
body.sg-private-dark .sg-empty-icon {
    border-color: #a3c4b2;
    background: #dfeee5;
    color: #315342;
}
body.sg-private-dark .sg-empty { color: var(--ink); }
body.sg-private-dark .sg-history-link,
body.sg-private-dark .sg-pagination a,
body.sg-private-dark .sg-pagination span {
    border-color: #435760;
    background: #1c3039;
    color: #c6ddda;
}
body.sg-private-dark .sg-history-link:hover,
body.sg-private-dark .sg-pagination a:hover { border-color: #6a918c; background: #29443f; }
body.sg-private-dark.sg-getting-started .sg-history-link {
    border-color: #526f8c;
    background: #21384d;
    color: #d7e7f6;
}
body.sg-private-dark.sg-getting-started .sg-history-link:hover {
    border-color: #7697b7;
    background: #2b4964;
    color: #f5f9ff;
}
body.sg-private-dark .sg-pagination-current { background: #2b5f56!important; color: #f3fbf7!important; }
body.sg-private-dark .sg-pagination-disabled { color: #778a90; }
body.sg-private-dark .sg-history-clear { color: #a6ceca; }
body.sg-private-dark .sg-delete-audit { border: 1px solid #d6a09a; background: #f7e0dc; color: #7a302e; }
body.sg-private-dark .sg-delete-audit:hover { border-color: #c9857e; background: #f0cfcb; color: #652b28; }
body.sg-private-dark .stat-card-icon,
body.sg-private-dark .sg-report-icon {
    border-color: #a9bfd1;
    background: #e3edf5;
    color: #294a64;
}
body.sg-private-dark .admin-tag,
body.sg-private-dark .severity {
    border: 1px solid currentColor;
    font-weight: 750;
}
body.sg-private-dark .admin-tag,
body.sg-private-dark .severity,
body.sg-private-dark .sg-latest-label,
body.sg-private-dark .sg-severity-jump {
    border-color: #a9bfd1;
    background: #e3edf5;
    color: #294a64;
}
body.sg-private-dark .sg-latest-label { border-radius: 999px; }
body.sg-private-dark .sg-severity-jump:hover { border-color: #90abc2; background: #d8e6f1; color: #243f59; }
body.sg-private-dark .sg-severity-jump strong { color: #294a64; }
body.sg-private-dark .sg-severity-jump .sg-dot-critical { background: #9a3935; }
body.sg-private-dark .sg-severity-jump .sg-dot-high { background: #a65a1d; }
body.sg-private-dark .sg-severity-jump .sg-dot-medium { background: #80681e; }
body.sg-private-dark .sg-severity-jump .sg-dot-low { background: #356c84; }
body.sg-private-dark .severity-critical { border-color: #d59692; background: #f8e2e0; color: #7b302e; }
body.sg-private-dark .severity-high { border-color: #dfb184; background: #fbebdb; color: #754718; }
body.sg-private-dark .severity-medium { border-color: #d4c57a; background: #f6efce; color: #6a581b; }
body.sg-private-dark .severity-low { border-color: #a9c8d7; background: #e4f0f6; color: #315767; }
body.sg-private-dark .banner,
body.sg-private-dark .sg-compare-warning {
    border-color: #425b68;
    background: #203641;
    color: #c6e0e7;
}
body.sg-private-dark .banner-error,
body.sg-private-dark .field-error { border-color: #784443; background: #3c292d; color: #ffb2a9; }
body.sg-private-dark .banner-success { border-color: #76553a; background: #3a3025; color: #ffd0a0; }
body.sg-private-dark .sg-audit-progress { border-color: #40506b; background: var(--sg-surface-2); color: #c6d7e8; }
body.sg-private-dark .sg-audit-progress strong { color: #e1f2e8; }
body.sg-private-dark .sg-shopify-profile,
body.sg-private-dark .sg-audit-side,
body.sg-private-dark .sg-compare-metric,
body.sg-private-dark .sg-finding-group { border-color: #35445d; background: var(--sg-surface-1); }
body.sg-private-dark .sg-change-positive { color: #9bd6b2; }
body.sg-private-dark .sg-change-negative { color: #ff9e93; }
body.sg-private-dark .table-wrap,
body.sg-private-dark .table-scroll { border-color: #354952; }
body.sg-private-dark table { color: #d9e4e6; }
body.sg-private-dark th,
body.sg-private-dark td { border-color: #33464f; color: #d0dcdf; }
body.sg-private-dark th { color: #b4c4c8; }
body.sg-private-dark tbody tr:hover { background: rgba(137, 187, 179, .055); }
body.sg-private-dark code,
body.sg-private-dark pre { border-color: #3a505a; background: #101e26; color: #c5d9dc; }

/* Search Console report cards, charts, and tables */
body.sg-private-dark .sg-chart-panel.sg-gsc-chart {
    --viz-ink: #e6edf0;
    --viz-muted: #a4b3b9;
    --viz-line: #394a65;
    --viz-accent: #83c8b7;
    --viz-warm: #efa064;
    --viz-wash: #1d2b45;
    border-color: var(--line);
    background: var(--sg-surface-1);
    color: var(--ink);
}
body.sg-private-dark .sg-gsc-chart .sg-gsc-metric,
body.sg-private-dark .sg-gsc-report .sg-gsc-metrics article {
    border-color: #394a65;
    background: var(--sg-surface-2);
    color: var(--ink);
}
body.sg-private-dark .sg-gsc-report .sg-gsc-metrics span,
body.sg-private-dark .sg-gsc-report .sg-gsc-metric-change { color: var(--muted); }
body.sg-private-dark .sg-gsc-report .sg-gsc-metrics strong { color: var(--ink); }
body.sg-private-dark .sg-gsc-report .sg-gsc-table th,
body.sg-private-dark .sg-gsc-report .sg-gsc-table td {
    border-color: var(--sg-border-soft);
    color: var(--sg-text-soft);
}
body.sg-private-dark .sg-gsc-report .sg-gsc-table thead th,
body.sg-private-dark .sg-gsc-report .sg-gsc-daily-table thead,
body.sg-private-dark .sg-gsc-report .sg-gsc-daily-table thead th {
    background: var(--sg-surface-3);
    color: #e1e9f0;
}
body.sg-private-dark .sg-gsc-report .sg-gsc-daily-table tbody th { color: var(--ink); }
body.sg-private-dark .sg-gsc-report .sg-gsc-daily-table-wrap { border-color: var(--sg-border-soft); }
body.sg-private-dark .sg-gsc-report .sg-gsc-unavailable {
    border-left-color: #d5a357;
    background: #2d2b22;
    color: #e7dcc2;
}
body.sg-private-dark .sg-gsc-report .sg-gsc-opportunity-controls select {
    border-color: #40516b;
    background: var(--sg-surface-2);
    color: var(--ink);
}
body.sg-private-dark .sg-gsc-report .sg-gsc-table a,
body.sg-private-dark .sg-gsc-report > a,
body.sg-private-dark .sg-gsc-prompt a { color: #a6d7ce; }
body.sg-private-dark .sg-gsc-chart .sg-gsc-gridline { stroke: #394a65; }
body.sg-private-dark .sg-gsc-chart .sg-gsc-axis-line { stroke: #8496a4; }
body.sg-private-dark .sg-gsc-chart .sg-gsc-position-callout {
    border-color: #526b59;
    background: #1b2a20;
    color: #dce8de;
}
body.sg-private-dark .sg-gsc-chart .sg-gsc-position-callout strong { color: #f4faf4; }
body.sg-private-dark .sg-gsc-chart .sg-chart-note { color: #c3d0c5; }

/* Settings / integrations */
body.sg-private-dark .sg-settings-panel { overflow: hidden; }
body.sg-private-dark .sg-settings-panel[data-preference-card].sg-settings-panel--saving {
    box-shadow: 0 0 0 2px rgba(101,173,137,.18), 0 14px 38px rgba(0,0,0,.2);
}
body.sg-private-dark .sg-settings-panel[data-preference-card].sg-settings-panel--saved {
    box-shadow: 0 0 0 2px rgba(101,173,137,.34), 0 14px 38px rgba(0,0,0,.22);
}
body.sg-private-dark .sg-settings-panel[data-preference-card].sg-settings-panel--error {
    box-shadow: 0 0 0 2px rgba(255,142,132,.3), 0 14px 38px rgba(0,0,0,.22);
}
body.sg-private-dark .sg-settings-description,
body.sg-private-dark .sg-identity-settings-row p,
body.sg-private-dark .sg-identity-password-note,
body.sg-private-dark .sg-settings-security-note,
body.sg-private-dark .sg-settings-credential-copy p,
body.sg-private-dark .sg-gsc-connected p,
body.sg-private-dark .sg-gsc-property-help { color: #adbdc1; }
body.sg-private-dark .sg-identity-settings-row,
body.sg-private-dark .sg-settings-credential,
body.sg-private-dark .sg-gsc-property,
body.sg-private-dark .sg-audit-sound-setting,
body.sg-private-dark .sg-settings-guide,
body.sg-private-dark .sg-settings-security-note,
body.sg-private-dark .sg-gsc-connected {
    border-color: #394a65;
    background: var(--sg-surface-2);
    color: #dce6e8;
}
body.sg-private-dark .sg-settings-guide ol,
body.sg-private-dark .sg-settings-guide p { color: #bac8cb; }
body.sg-private-dark .sg-settings-guide a,
body.sg-private-dark .sg-identity-password-note a { color: #a8d5cc; }
body.sg-private-dark .sg-settings-status-active,
body.sg-private-dark .sg-monitoring-badge.is-active,
body.sg-private-dark .ex-status.is-on,
body.sg-private-dark .sg-current-plan {
    border-color: #a3c4b2;
    background: #dfeee5;
    color: #315342;
}
body.sg-private-dark .sg-settings-status-warning { border-color: #d2bd68; background: #f6edcf; color: #665415; }
body.sg-private-dark .sg-settings-status-expired { border-color: #d6a09a; background: #f7e0dc; color: #7a302e; }
body.sg-private-dark .sg-settings-expiry-warning { color: #f1cf8d!important; }
body.sg-private-dark .sg-settings-secret-state { color: #99aaaF!important; }
body.sg-private-dark .sg-settings-empty { color: #aebdc1; }
body.sg-private-dark .sg-gsc-message { border-color: #425863; background: #203640; color: #c8dfe5; }
body.sg-private-dark .sg-gsc-message-error { border-color: #784443; background: #3c292d; color: #ffb2a9; }
body.sg-private-dark .sg-gsc-message-warning { border-color: #7b6538; background: #3d3724; color: #f0d891; }
body.sg-private-dark .sg-gsc-property-form fieldset { border-color: #3c515b; }
body.sg-private-dark .sg-gsc-property-form legend,
body.sg-private-dark .sg-gsc-property strong { color: #e0eaeb; }
body.sg-private-dark .sg-gsc-property small { color: #a4b4b9; }
body.sg-private-dark .sg-gsc-property:hover { background: var(--sg-surface-3); }
body.sg-private-dark .sg-gsc-secondary {
    border-color: #86ad92;
    background: #d7ecd9;
    color: #214d31 !important;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.07), 0 3px 9px rgba(0,0,0,.2);
    transition: background-color .16s ease, border-color .16s ease, color .16s ease, box-shadow .16s ease;
}
body.sg-private-dark .sg-gsc-secondary:hover {
    border-color: #739e80;
    background: #c7e3ce;
    color: #193d28 !important;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.12), 0 4px 11px rgba(0,0,0,.22);
}
body.sg-private-dark .sg-gsc-secondary:active { transform: scale(.985); }
body.sg-private-dark .sg-settings-remove {
    border-color: #c3837f;
    background: #f3d4d1;
    color: #692b28;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.07), 0 3px 9px rgba(0,0,0,.2);
    transition: background-color .16s ease, border-color .16s ease, color .16s ease, box-shadow .16s ease;
}
body.sg-private-dark .sg-settings-remove:hover {
    border-color: #b56e69;
    background: #eac1bd;
    color: #541b19;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.12), 0 4px 11px rgba(0,0,0,.22);
}
body.sg-private-dark .sg-gsc-button {
    border-color: var(--sg-button-blue-border);
    background: var(--sg-button-blue);
    color: var(--sg-button-blue-ink);
}
body.sg-private-dark .sg-audit-sound-switch { background: #354a52; }
body.sg-private-dark .sg-audit-sound-toggle input:checked + .sg-audit-sound-switch { background: #65ad89; }
body.sg-private-dark .sg-audit-sound-feedback { color: #a7d8b7; }
body.sg-private-dark .sg-audit-sound-feedback--error { color: #ffb2a9; }

/* Contact and support pages use the signed-in account theme */
body.sg-private-dark .sg-contact-form label > span:first-child { color: #cbd7db; }
body.sg-private-dark .sg-contact-form input:not([type="checkbox"]):not([type="radio"]):not([type="file"]),
body.sg-private-dark .sg-contact-form textarea {
    border-color: #43586f;
    background: #111f27;
    color: #e3ecee;
}
body.sg-private-dark .sg-contact-form input:not([type="checkbox"]):not([type="radio"]):not([type="file"])[readonly] {
    border-color: #3d5360;
    background: #1c2b33;
    color: #d4e0e3;
}
body.sg-private-dark .sg-contact-form input:focus-visible,
body.sg-private-dark .sg-contact-form textarea:focus-visible {
    border-color: #83a9d0;
    outline-color: rgba(81, 139, 201, .45);
}
body.sg-private-dark .sg-contact-privacy { color: #aebdc4; }
body.sg-private-dark .sg-contact-link {
    border-color: var(--sg-button-blue-border);
    background: var(--sg-button-blue);
    color: var(--sg-button-blue-ink);
}
body.sg-private-dark .sg-contact-link:hover {
    border-color: var(--sg-button-blue-border-hover);
    background: var(--sg-button-blue-hover);
    color: #fff;
}
body.sg-private-dark .sg-contact-aside-note { border-color: #3a4e57; }
body.sg-private-dark .sg-contact-aside-note span { color: #aebdc4; }
body.sg-private-dark .sg-contact-aside-note strong { color: #eef4f6; }
body.sg-private-dark .sg-contact-aside-back a { color: #a9cef5; }

/* Billing and scan allowance */
body.sg-private-dark .sg-billing-status,
body.sg-private-dark .sg-plan-card,
body.sg-private-dark .sg-usage-panel { border-color: #35445d; background: var(--card); }
body.sg-private-dark .sg-plan-current { border-color: #699783; box-shadow: 0 0 0 2px rgba(105,151,131,.16); }
body.sg-private-dark .sg-plan-card h2 span,
body.sg-private-dark .sg-plan-description,
body.sg-private-dark .sg-plan-note,
body.sg-private-dark .sg-billing-status p:last-child,
body.sg-private-dark .sg-usage-description { color: #a9b8bd; }
body.sg-private-dark .sg-plan-entitlements li { color: #d1dddf; }
body.sg-private-dark .sg-plan-entitlements li::marker { color: #8bc9b2; }
body.sg-private-dark .sg-upcoming-invoice-breakdown { border-color: #3a4e57; }
body.sg-private-dark .sg-upcoming-invoice-breakdown li { color: #acbbc0; }
body.sg-private-dark .sg-upcoming-invoice-breakdown strong { color: #e2ecee; }
body.sg-private-dark .sg-usage-table th {
    border-color: #354851;
    background: #1d2b45;
    color: #b9c7ce;
}
body.sg-private-dark .sg-usage-table td {
    border-color: #354851;
    color: #dce5e8;
}
body.sg-private-dark .sg-usage-table td small,
body.sg-private-dark .sg-usage-table td::before { color: #aebdc4; }
body.sg-private-dark .sg-usage-table a { color: #a9cef5; }
body.sg-private-dark .sg-usage-table tbody tr:hover { background: #1d2b45; }
body.sg-private-dark .sg-usage-table tr { border-color: #354851; }
body.sg-private-dark .sg-usage-table caption { color: #a6b7bc; }
body.sg-private-dark .sg-usage-status-queued { border-color: #d2bd68; background: #f6edcf; color: #665415; }
body.sg-private-dark .sg-usage-status-credit_used { border-color: #a3c4b2; background: #dfeee5; color: #315342; }
body.sg-private-dark .sg-usage-status-refunded { border-color: #a9bfd1; background: #e3edf5; color: #294a64; }
body.sg-private-dark .sg-usage-unavailable,
body.sg-private-dark .sg-refund-reason { color: #a5b4b8; }
body.sg-private-dark .sg-usage-empty { color: #bdc9ce; }

body.sg-private-dark .sg-sample-charts {
    --sample-ink: #e6edf0;
    --sample-muted: #b0bec5;
    --sample-line: #3b4d66;
    --sample-accent: #68c9c0;
    --sample-warm: #f0a07e;
    border-color: var(--sample-line);
    background: linear-gradient(135deg, #1d2b45, #17243a);
    color: var(--sample-ink);
}
body.sg-private-dark .sg-sample-chart-card {
    border-color: #3b4d66;
    background: #1b2a43;
}
body.sg-private-dark .sg-sample-data-note {
    border-color: #d6b08d;
    background: #f5e7d7;
    color: #754a2c;
}
body.sg-private-dark .sg-sample-gridline { stroke: #3b4d66; }
body.sg-private-dark .sg-sample-axis { stroke: #71859a; }
body.sg-private-dark .sg-sample-donut-track { stroke: #354a63; }
body.sg-private-dark .sg-sample-score-point { fill: #1b2a43; }

/* Scheduled monitoring */
body.sg-private-dark .sg-monitoring-card {
    border-color: #35445d;
    background: var(--card);
    color: var(--ink);
}
body.sg-private-dark .sg-monitoring-card .sg-step { color: #aabac0; }
body.sg-private-dark .sg-monitoring-heading h2 { color: #f0f5f7; }
body.sg-private-dark .sg-monitoring-heading,
body.sg-private-dark .sg-monitoring-actions { border-color: #354a53; }
body.sg-private-dark .sg-monitoring-actions {
    background: linear-gradient(110deg, #1d2b45, #17243a);
}
body.sg-private-dark .sg-monitoring-last-result { border-color: #354a53; }
body.sg-private-dark .sg-monitoring-comparison { border-color: #354a53; }
body.sg-private-dark .sg-monitoring-site-icon,
body.sg-private-dark .sg-monitoring-detail-icon,
body.sg-private-dark .sg-monitoring-comparison-icon {
    border-color: #a9bfd1;
    background: #e3edf5;
    color: #294a64;
}
body.sg-private-dark .sg-monitoring-badge { border-color: #a9bfd1; background: #e3edf5; color: #294a64; }
body.sg-private-dark .sg-monitoring-status,
body.sg-private-dark .sg-monitoring-frequency-summary,
body.sg-private-dark .sg-monitoring-last-result,
body.sg-private-dark .sg-monitoring-unset,
body.sg-private-dark .sg-monitoring-comparison { color: #c0cbd0; }
body.sg-private-dark .sg-monitoring-status strong,
body.sg-private-dark .sg-monitoring-frequency-summary strong,
body.sg-private-dark .sg-monitoring-last-result strong { color: #f0f5f7; }
body.sg-private-dark .sg-monitoring-message { color: #efd28e; }
body.sg-private-dark .sg-monitoring-pause { border: 1px solid #465a63; background: #26363e; color: #d0dadd; }
body.sg-private-dark .sg-monitoring-pause:hover { background: #354952; }
body.sg-private-dark .sg-monitoring-compare-link { color: #a8d7ce; }

/* Agency workspace and client report management */
body.sg-private-dark .agency-page { --agency-ink: #e3ecee; --agency-muted: #a8b8bd; --agency-line: #35445d; --agency-paper: var(--card); --agency-wash: var(--sg-surface-2); --agency-accent: #efa064; color: #e3ecee; }
body.sg-private-dark .agency-page h1,
body.sg-private-dark .agency-page h2,
body.sg-private-dark .agency-page h3 { color: #e6eef0; }
body.sg-private-dark .agency-panel-head { border-color: #354a53; }
body.sg-private-dark .agency-panel-head p,
body.sg-private-dark .agency-client-stats,
body.sg-private-dark .agency-site-title small { color: #a6b6bb; }
body.sg-private-dark .agency-field input[type=file] { color: #c1cdd0; }
body.sg-private-dark .agency-field input[type=file]::file-selector-button { border: 1px solid #465b65; border-radius: 7px; padding: .42rem .65rem; background: #253a44; color: #dce7e9; }
body.sg-private-dark .agency-button-quiet,
body.sg-private-dark .ex-button-secondary,
body.sg-private-dark .admin-secondary-button,
body.sg-private-dark .sg-history-clear {
    border-color: #435861;
    background: #20343d;
    color: #c8d8da;
}
body.sg-private-dark .agency-button-quiet:hover,
body.sg-private-dark .ex-button-secondary:hover,
body.sg-private-dark .admin-secondary-button:hover {
    border-color: var(--sg-button-blue-border);
    background: #294765;
    color: #e8f2ff;
}
body.sg-private-dark .agency-button-danger { border-color: #744b48; background: #392c2e; color: #ffb4a9; }
body.sg-private-dark .agency-brand-preview { border-color: #3b4a62; background: var(--sg-surface-2); }
body.sg-private-dark .agency-brand-monogram { background: #2d4a47; color: #bee2d3; }
body.sg-private-dark .agency-client-row,
body.sg-private-dark .agency-site-row,
body.sg-private-dark .agency-active-link { border-color: #33474f; }
body.sg-private-dark .agency-client-row:hover,
body.sg-private-dark .agency-site-row:hover,
body.sg-private-dark .agency-active-link:hover { background: var(--sg-surface-3); }
body.sg-private-dark .agency-client-name { color: #b8ded5; }
body.sg-private-dark .agency-pill { border-color: #a9bfd1; background: #e3edf5; color: #294a64; }
body.sg-private-dark .agency-empty,
body.sg-private-dark .agency-notice { color: #bfcccf; }
body.sg-private-dark .agency-notice { border-color: #936b43; background: #392f25; }
body.sg-private-dark .agency-copy-row input { background: #111f27; }
body.sg-private-dark .agency-active-link code { color: #b4c6ca; }
body.sg-private-dark .agency-date { color: #a5b6bb; }

/* Extraction profiles, authoring, and run history */
body.sg-private-dark .ex-page {
    --ex-ink: #e3ecee;
    --ex-muted: #a6b7bc;
    --ex-line: #354a53;
    --ex-card: var(--card);
    --ex-sand: #202e49;
    --ex-teal: #83c8b7;
    --ex-teal-dark: #a5ddd0;
    --ex-coral: #efa064;
    --ex-gold: #e6c276;
    color: #e3ecee;
}
body.sg-private-dark .ex-stat,
body.sg-private-dark .ex-profile-card,
body.sg-private-dark .ex-form-card,
body.sg-private-dark .ex-preview-card,
body.sg-private-dark .ex-run-summary,
body.sg-private-dark .ex-result-card,
body.sg-private-dark .ex-run-list { border-color: #394a65; background: var(--sg-surface-2); }
body.sg-private-dark .ex-stat small,
body.sg-private-dark .ex-stat strong i,
body.sg-private-dark .ex-host,
body.sg-private-dark .ex-profile-meta,
body.sg-private-dark .ex-run-measure small,
body.sg-private-dark .ex-run-date,
body.sg-private-dark .ex-section-heading > p { color: #a1b2b7; }
body.sg-private-dark .ex-stat strong,
body.sg-private-dark .ex-title-line h3,
body.sg-private-dark .ex-profile-copy,
body.sg-private-dark .ex-run-identity strong { color: #e0eaec; }
body.sg-private-dark .ex-stat-icon,
body.sg-private-dark .ex-stat-icon-warm,
body.sg-private-dark .ex-stat-icon-sage,
body.sg-private-dark .ex-profile-icon {
    border-color: #a3c4b2;
    background: #dfeee5;
    color: #315342;
}
body.sg-private-dark .ex-stat-icon-warm { border-color: #d6b08d; background: #f5e7d7; color: #754a2c; }
body.sg-private-dark .ex-status.is-off { border: 1px solid #b8c6ce; background: #e7edf1; color: #485a66; }
body.sg-private-dark .ex-notice { border-color: #765c3b; background: #362f25; color: #e9d5aa; }
body.sg-private-dark .ex-notice p,
body.sg-private-dark .ex-notice>a { color: #d0bc91; }
body.sg-private-dark .ex-empty { border-color: #394a65; background: var(--sg-surface-2); color: #dce7e9; }
body.sg-private-dark .ex-empty p,
body.sg-private-dark .ex-plan-note { color: #a9b8bc; }
body.sg-private-dark .ex-empty-symbol { color: #a6d9c9; }
body.sg-private-dark .ex-profile-card:hover,
body.sg-private-dark .ex-run-row:hover { border-color: #52617b; background: var(--sg-surface-3); }
body.sg-private-dark .ex-run-row { border-color: #354a53; }
body.sg-private-dark .ex-run-link,
body.sg-private-dark .ex-result-source a { color: #c1d4d7; }
body.sg-private-dark .ex-run-pill { border-color: #d2bd68; background: #f6edcf; color: #665415; }
body.sg-private-dark .ex-run-pill.status-completed { border-color: #a3c4b2; background: #dfeee5; color: #315342; }
body.sg-private-dark .ex-run-pill.status-partial { border-color: #dfb184; background: #fbebdb; color: #754718; }
body.sg-private-dark .ex-run-pill.status-failed { border-color: #d6a09a; background: #f7e0dc; color: #7a302e; }
body.sg-private-dark .ex-run-pill.status-running { border-color: #a9bfd1; background: #e3edf5; color: #294a64; }
body.sg-private-dark .ex-multi-export-bar { border-color: #3c5159; background: #1d3039; }
body.sg-private-dark .ex-multi-export-bar p { color: #a9b8bd; }
body.sg-private-dark .ex-export-error { border-color: #784443; background: #3c292d; color: #ffb2a9; }
body.sg-private-dark .ex-result-values > div { border-color: #354a53; }
body.sg-private-dark .ex-result-values dt,
body.sg-private-dark .ex-result-values dd { color: #d1dcdf; }
body.sg-private-dark .ex-pagination a,
body.sg-private-dark .ex-pagination span { border-color: #435861; background: #20343d; color: #c8d8da; }

/* Operator console: dense records and state cues */
body.sg-private-dark .admin-heading h1,
body.sg-private-dark .admin-panel h2,
body.sg-private-dark .admin-metric strong,
body.sg-private-dark .admin-summary-card strong,
body.sg-private-dark .admin-finding h3 { color: #e5edef; }
body.sg-private-dark .admin-metric span,
body.sg-private-dark .admin-summary-card span,
body.sg-private-dark .admin-summary-card small,
body.sg-private-dark .admin-muted,
body.sg-private-dark .admin-empty { color: #a3b3b9; }
body.sg-private-dark .admin-panel { border-color: #35445d; background: var(--card); }
body.sg-private-dark .admin-table th,
body.sg-private-dark .admin-table td,
body.sg-private-dark .admin-limits div,
body.sg-private-dark .admin-detail-list div { border-color: #33464f; }
body.sg-private-dark .admin-table th { color: #a8b8bd; }
body.sg-private-dark .admin-table td,
body.sg-private-dark .admin-limits dd,
body.sg-private-dark .admin-detail-list dd { color: #d0dcdf; }
body.sg-private-dark .admin-table td span,
body.sg-private-dark .admin-table td small,
body.sg-private-dark .admin-limits dt,
body.sg-private-dark .admin-detail-list dt,
body.sg-private-dark .admin-finding dt { color: #a3b3b9; }
body.sg-private-dark .admin-view-link,
body.sg-private-dark .admin-back a { color: #a6d3cc; }
body.sg-private-dark .admin-tag { border-color: #4b7377; background: #263f48; color: #c8e1e2; }
body.sg-private-dark .admin-plan-change-actions button,
body.sg-private-dark .admin-search button {
    border-color: var(--sg-button-blue-border);
    background: var(--sg-button-blue);
    color: var(--sg-button-blue-ink);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 4px 12px rgba(0,0,0,.22);
}
body.sg-private-dark .admin-plan-change-actions button:hover,
body.sg-private-dark .admin-search button:hover {
    border-color: var(--sg-button-blue-border-hover);
    background: var(--sg-button-blue-hover);
    color: #fff;
}
body.sg-private-dark .admin-plan-change-actions .admin-secondary-button {
    border-color: #435861;
    background: #20343d;
    color: #dce8e9;
}
body.sg-private-dark .admin-plan-change-actions .admin-secondary-button:hover {
    border-color: var(--sg-button-blue-border);
    background: #294765;
    color: #e8f2ff;
}
body.sg-private-dark .admin-safety-note { border-color: #9a7043; background: #3b3125; color: #ead19c; }
body.sg-private-dark .admin-pagination a,
body.sg-private-dark .admin-pagination span { border-color: #435861; background: #1e323b; color: #d1dfe1; }
body.sg-private-dark .admin-pagination span[aria-current="page"] { border-color: #3b7468; background: #28584f; color: #f1faf6; }

/* Shared keyboard, native states, chart legibility, and reduced motion */
body.sg-private-dark :focus-visible {
    outline: 3px solid rgba(239, 160, 100, .82);
    outline-offset: 3px;
}
body.sg-private-dark input:focus-visible,
body.sg-private-dark textarea:focus-visible,
body.sg-private-dark select:focus-visible,
body.sg-private-dark .sg-select-trigger:focus-visible {
    border-color: #e5a46f;
    outline: 3px solid rgba(239, 160, 100, .42);
    outline-offset: 2px;
}
body.sg-private-dark progress { accent-color: #86cbb7; }
body.sg-private-dark ::selection { background: #376a61; color: #f1faf6; }
body.sg-private-dark .sg-report-chart-overview,
body.sg-private-dark .sg-chart-card,
body.sg-private-dark .sg-score-history,
body.sg-private-dark .sg-severity-breakdown { color: #dce7e9; }
body.sg-private-dark .sg-chart-card,
body.sg-private-dark .sg-score-history-card,
body.sg-private-dark .sg-severity-card { border-color: #394a65; background: var(--sg-surface-2); }
body.sg-private-dark .sg-chart-panel.sg-score-history {
    --viz-ink: #e6edf0;
    --viz-muted: #a4b3b9;
    --viz-line: #394a65;
    --viz-accent: #83c8b7;
    --viz-warm: #efa064;
    --viz-wash: #1d2b45;
    border-color: var(--line);
    background: var(--sg-surface-1);
    color: var(--ink);
}
body.sg-private-dark .sg-score-history .sg-history-point,
body.sg-private-dark .sg-history-dialog .sg-history-archive-point {
    border-color: #394a65;
    background: var(--sg-surface-2);
    color: var(--ink);
}
body.sg-private-dark .sg-history-dialog {
    border-color: var(--line);
    background: var(--sg-surface-1);
    color: var(--ink);
}
body.sg-private-dark .sg-history-dialog-close { background: var(--sg-surface-3); color: var(--ink); }
body.sg-private-dark .sg-history-archive-point a { color: var(--ink); }
body.sg-private-dark .sg-chart-card svg text,
body.sg-private-dark .sg-score-history svg text,
body.sg-private-dark .sg-severity-breakdown svg text { fill: #b9c8cc; }
body.sg-private-dark .sg-chart-card svg .grid-line,
body.sg-private-dark .sg-score-history svg .grid-line { stroke: #394d56; }
body.sg-private-dark .sg-progress-spinner,
body.sg-private-dark .sg-gsc-refresh-indicator { border-color: #3e565f; border-top-color: #efa064; }

@media (prefers-reduced-motion: reduce) {
    body.sg-private-dark *,
    body.sg-private-dark *::before,
    body.sg-private-dark *::after {
        scroll-behavior: auto !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }
}

/* Dashboard home uses the same black and green palette as the private workspace. */
body.sg-private-dark.sg-auth-dashboard {
    --audit-paper: #101a22;
    --audit-surface: #17243a;
    --audit-line: #34425b;
    --audit-ink: #e6edf0;
    --audit-muted: #a4b3b9;
}
body.sg-private-dark.sg-auth-dashboard .sg-intro {
    border-color: var(--audit-line);
}
body.sg-private-dark.sg-auth-dashboard .sg-lede { color: #adbbc0; }
body.sg-private-dark.sg-auth-dashboard .sg-overview-strip {
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    color: var(--audit-ink);
    padding: 0;
}
body.sg-private-dark.sg-auth-dashboard .sg-overview-heading h2,
body.sg-private-dark.sg-auth-dashboard .sg-panel-heading h2,
body.sg-private-dark.sg-auth-dashboard .sg-check-heading h2,
body.sg-private-dark.sg-auth-dashboard .sg-recent-heading h2,
body.sg-private-dark.sg-auth-dashboard .sg-report-site strong { color: var(--audit-ink); }
body.sg-private-dark.sg-auth-dashboard .sg-overview-metrics > div {
    border: 1px solid #354a53;
    background: var(--sg-surface-3);
    color: var(--audit-ink);
}
body.sg-private-dark.sg-auth-dashboard .sg-overview-metrics dt { color: #a8b8bd; }
body.sg-private-dark.sg-auth-dashboard .sg-overview-metrics dd { color: #e3ecee; }
body.sg-private-dark.sg-auth-dashboard .sg-check-panel {
    border-color: var(--audit-line);
    background: var(--sg-surface-2);
    color: var(--audit-ink);
}
body.sg-private-dark.sg-auth-dashboard .sg-check-item {
    border-color: var(--audit-line);
    background: var(--sg-surface-1);
}
body.sg-private-dark.sg-auth-dashboard .sg-check-icon {
    border: 1px solid #a3c4b2;
    background: #dfeee5;
    color: #315342;
}
body.sg-private-dark.sg-auth-dashboard .sg-history-link {
    border-color: #40535d;
    background: #1d303a;
    color: #d6e4eb;
}
body.sg-private-dark.sg-auth-dashboard .sg-history-link:hover {
    border-color: #68838a;
    background: #263d47;
}

/* Audit report dark palette: layered black surfaces, clear copy, green actions. */
body.sg-private-dark.sg-auth-report {
    --sg-report-surface: #101612;
    --sg-report-surface-raised: #17221a;
    --sg-report-surface-inset: #0b100c;
    --sg-report-border: #354b39;
    --sg-report-ink: #e6efe8;
    --sg-report-muted: #a6b2a8;
    --sg-report-blue: #98d9a7;
    background: #000000;
}
body.sg-private-dark.sg-auth-report .page-shell { color: var(--sg-report-ink); }
body.sg-private-dark.sg-auth-report .sg-report-header {
    border-color: #42617e;
    background:
        radial-gradient(ellipse at 88% 8%,rgba(124,186,220,.24),transparent 31%),
        radial-gradient(ellipse at 66% 120%,rgba(57,151,161,.18),transparent 46%),
        linear-gradient(112deg,#101e35 0%,#173553 52%,#174253 100%);
    box-shadow: 0 12px 32px rgba(0,0,0,.28),inset 0 1px 0 rgba(255,255,255,.08);
}
body.sg-private-dark.sg-auth-report .sg-report-header::after {
    border-color:rgba(180,218,231,.14);
    box-shadow:0 0 0 1.4rem rgba(180,218,231,.035),0 0 0 2.8rem rgba(180,218,231,.025);
}
body.sg-private-dark.sg-auth-report .sg-report-header h1 { color:#f2f7fc; }
body.sg-private-dark.sg-auth-report .sg-report-header .eyebrow { color:#bdccdc; }
body.sg-private-dark.sg-auth-report .sg-report-header .score-box {
    --sg-score-color:#9aefb5;
    --sg-score-empty:#3c5670;
    border-color:#3d4740;
    background:#000;
    box-shadow:none;
}
body.sg-private-dark.sg-auth-report .sg-report-header .score-box.sg-score-box--needs-work {
    --sg-score-color:#ffaaa3;
    --sg-score-empty:#65414c;
}
body.sg-private-dark.sg-auth-report .sg-report-header .score-box.sg-score-box--watch {
    --sg-score-color:#f2cb84;
    --sg-score-empty:#665438;
}
body.sg-private-dark.sg-auth-report .sg-report-header .score-box.sg-score-box--good {
    --sg-score-color:#e2d68e;
    --sg-score-empty:#5f5b3f;
}
body.sg-private-dark.sg-auth-report .sg-report-header .score-box strong { color:var(--sg-score-color); }
body.sg-private-dark.sg-auth-report .sg-report-header .score-box-copy > span { color:#edf4fb; }
body.sg-private-dark.sg-auth-report .sg-report-header .score-box small { color:#bdccdc; }
body.sg-private-dark.sg-auth-report .sg-report-header .sg-score-grid-cell--filled {
    background:var(--sg-score-color);
    box-shadow:none;
}
body.sg-private-dark.sg-auth-report .sg-report-header-live {
    border:1px solid #a9bfd1;
    border-radius:999px;
    padding:.4rem .72rem;
    background:#e3edf5;
    color:#294a64;
}
body.sg-private-dark.sg-auth-report .sg-report-header[data-audit-header-status="running"] .sg-report-header-live,
body.sg-private-dark.sg-auth-report .sg-report-header[data-audit-header-status="completed"] .sg-report-header-live {
    border-color:#a3c4b2;
    background:#dfeee5;
    color:#315342;
}
body.sg-private-dark.sg-auth-report .sg-report-header[data-audit-header-status="pending"] .sg-report-header-live {
    border-color:#d2bd68;
    background:#f6edcf;
    color:#665415;
}
body.sg-private-dark.sg-auth-report .sg-report-header[data-audit-header-status="running"] .sg-report-header-live,
body.sg-private-dark.sg-auth-report .sg-report-header[data-audit-header-status="completed"] .sg-report-header-live,
body.sg-private-dark.sg-auth-report .sg-report-header[data-audit-header-status="pending"] .sg-report-header-live,
body.sg-private-dark.sg-auth-report .sg-report-header[data-audit-header-status="failed"] .sg-report-header-live {
    border:1px solid #858d87;
    background:linear-gradient(135deg,#171b18 0%,#070807 72%,#030403 100%);
    background-color:#050705;
    color:#fff;
}
body.sg-private-dark.sg-auth-report .sg-running-audit[data-audit-progress-status="running"] .sg-running-audit-live-dot,
body.sg-private-dark.sg-auth-report .sg-report-header[data-audit-header-status="running"] .sg-running-audit-live-dot {
    background:radial-gradient(circle at 35% 30%,#eafff1 0%,#8af8ae 34%,#39dc83 100%);
    box-shadow:0 0 0 2px rgba(138,248,174,.23),0 0 12px rgba(70,238,133,.88);
}
body.sg-private-dark.sg-auth-report .sg-running-audit[data-audit-progress-status="completed"] .sg-running-audit-live-dot,
body.sg-private-dark.sg-auth-report .sg-report-header[data-audit-header-status="completed"] .sg-running-audit-live-dot {
    background:radial-gradient(circle at 35% 30%,#f0f8ff 0%,#96cfff 34%,#4da5ed 100%);
    box-shadow:0 0 0 2px rgba(150,207,255,.23),0 0 12px rgba(77,165,237,.88);
}
body.sg-private-dark.sg-auth-report .sg-running-audit[data-audit-progress-status="pending"] .sg-running-audit-live-dot,
body.sg-private-dark.sg-auth-report .sg-report-header[data-audit-header-status="pending"] .sg-running-audit-live-dot {
    background:radial-gradient(circle at 35% 30%,#fff6e4 0%,#ffd484 34%,#ffa33b 100%);
    box-shadow:0 0 0 2px rgba(255,212,132,.24),0 0 12px rgba(255,163,59,.86);
}
body.sg-private-dark.sg-auth-report .sg-report-header[data-audit-header-status="failed"] .sg-running-audit-live {
    border:1px solid #858d87;
    background:linear-gradient(135deg,#171b18 0%,#070807 72%,#030403 100%);
    background-color:#050705;
    color:#fff;
}
body.sg-private-dark.sg-auth-report .sg-running-audit[data-audit-progress-status="failed"] .sg-running-audit-live-dot,
body.sg-private-dark.sg-auth-report .sg-report-header[data-audit-header-status="failed"] .sg-running-audit-live-dot {
    background:radial-gradient(circle at 35% 30%,#fff0ed 0%,#ff9a92 38%,#ff5561 100%);
    box-shadow:0 0 0 2px rgba(255,154,146,.24),0 0 12px rgba(255,85,97,.86);
}
body.sg-private-dark.sg-auth-report :is(.card,.score-box,.stat-card,.sg-audit-overview,
    .sg-chart-panel,.sg-overview-context-card,.sg-overview-pagespeed-item,
    .sg-overview-category-score,.sg-overview-field-metrics > div,
    .sg-overview-gsc-metrics > div,.sg-finding-group,.sg-finding-card,
    .sg-report-reading-guide,.sg-scheduled-issue-group,.sg-pagespeed-run,
    .sg-pagespeed-strategy,.sg-pagespeed-comparison,.sg-pagespeed-empty,
    .sg-pagespeed-note,.sg-gsc-metrics article,.sg-running-audit,
    .sg-shopify-profile,.sg-gsc-metric,.sg-ahrefs-metrics > div,.sg-ahrefs-empty) {
    border-color:var(--sg-report-border);
    background:var(--sg-report-surface);
    color:var(--sg-report-ink);
    box-shadow:none;
}
body.sg-private-dark.sg-auth-report :is(.sg-overview-context-card,.sg-overview-pagespeed-item,
    .sg-overview-category-score,.sg-overview-field-metrics > div,
    .sg-overview-gsc-metrics > div,.sg-pagespeed-strategy,.sg-pagespeed-comparison,
    .sg-scheduled-issue-group,.sg-gsc-metric,.sg-ahrefs-metrics > div,.sg-ahrefs-empty,
    .sg-pagespeed-score,.sg-pagespeed-field,.sg-pagespeed-field-metrics > div,
    .sg-pagespeed-diagnostics li,.sg-history-chart,.sg-history-archive-point,
    .sg-overview-metrics > div,.sg-sample-chart-card) {
    background:var(--sg-report-surface-raised);
}
body.sg-private-dark.sg-auth-report :is(h1,h2,h3,h4,h5,strong,dt,.stat-card-copy strong,
    .sg-overview-category-score dd,.sg-overview-field-metrics dd,
    .sg-overview-gsc-metrics dd,.sg-pagespeed-score dd,.sg-pagespeed-field-metrics dd,
    .sg-ahrefs-metrics dd,.sg-finding-card dd) { color:var(--sg-report-ink); }
body.sg-private-dark.sg-auth-report :is(p,li,dd,small,.muted,.eyebrow,
    .sg-overview-context-empty,.sg-overview-category-score dd span,
    .sg-overview-field-source,.sg-overview-range,.sg-pagespeed-action-note,
    .sg-pagespeed-unit-note,.sg-pagespeed-field-empty,.sg-pagespeed-unavailable,
    .sg-pagespeed-finished,.sg-ahrefs-action-note,.sg-ahrefs-unit-note,
    .sg-ahrefs-metrics small,.sg-finding-card dt,.sg-report-reading-guide p,
    .sg-running-audit-copy,.sg-running-audit-actions-note,
    .sg-running-audit-actions-unavailable) { color:var(--sg-report-muted); }
body.sg-private-dark.sg-auth-report a,
body.sg-private-dark.sg-auth-report .sg-report-navigation a,
body.sg-private-dark.sg-auth-report .sg-overview-context-heading a,
body.sg-private-dark.sg-auth-report .sg-finding-card dd a,
body.sg-private-dark.sg-auth-report .sg-gsc-report a,
body.sg-private-dark.sg-auth-report .sg-ahrefs-footer a { color:var(--sg-report-blue); }
body.sg-private-dark.sg-auth-report a:hover { color:#c5e0fb; }
body.sg-private-dark.sg-auth-report .sg-running-audit-heading h2,
body.sg-private-dark.sg-auth-report .sg-running-audit-copy,
body.sg-private-dark.sg-auth-report .sg-report-reading-guide strong { color:var(--sg-report-ink); }
body.sg-private-dark.sg-auth-report :is(.sg-running-audit-actions,.sg-severity-nav,
    .sg-finding-group > .section-heading,.sg-finding-card dl,
    .sg-finding-card dt,.sg-finding-card dd,.sg-overview-field-block) { border-color:var(--sg-report-border); }
body.sg-private-dark.sg-auth-report .sg-finding-card .sg-evidence-detail {
    border-color:#405773;
    color:#c0cfde;
}
body.sg-private-dark.sg-auth-report .sg-report-reading-guide { background:#1a2b42; }
body.sg-private-dark.sg-auth-report .sg-report-reading-guide-mark {
    border-color:#a9bfd1;
    background:#e3edf5;
    color:#294a64;
}
body.sg-private-dark.sg-auth-report .sg-severity-jump {
    border-color:#405674;
    background:#1d2d45;
    color:#d3dfec;
}
body.sg-private-dark.sg-auth-report .sg-severity-jump strong { color:#f0f5fa; }
body.sg-private-dark.sg-auth-report .sg-finding-card { background:#19263b; }
body.sg-private-dark.sg-auth-report .sg-gsc-table,
body.sg-private-dark.sg-auth-report .sg-gsc-table td,
body.sg-private-dark.sg-auth-report .sg-gsc-table th { color:#d8e3ef; }
body.sg-private-dark.sg-auth-report .sg-gsc-table thead th { background:#243650; color:#edf4fb; }
body.sg-private-dark.sg-auth-report .sg-gsc-table td,
body.sg-private-dark.sg-auth-report .sg-gsc-table th { border-color:#344862; }
body.sg-private-dark.sg-auth-report .sg-gsc-table--stacked tbody tr {
    border-color:#3a4e69;
    background:var(--sg-report-surface-raised);
}
body.sg-private-dark.sg-auth-report .sg-gsc-table--stacked td { border-color:#344862; }
body.sg-private-dark.sg-auth-report .sg-gsc-table--stacked td::before { color:#a9bdd2; }
body.sg-private-dark.sg-auth-report .sg-gsc-table tbody tr:hover { background:#233550; }
body.sg-private-dark.sg-auth-report .card.sg-ahrefs {
    --sg-ahrefs-ink:#e5edf5;
    --sg-ahrefs-muted:#b6c5b8;
    --sg-ahrefs-line:#3e5f44;
    --sg-ahrefs-accent:#8bd99a;
    --sg-ahrefs-chart-surface:#111b13;
    --sg-ahrefs-chart-surface-end:#152219;
    --sg-ahrefs-chart-track:#0c130e;
    --sg-ahrefs-chart-tick:rgb(226 244 229 / 32%);
    --sg-ahrefs-chart-marker-border:#e5f3e7;
}
body.sg-private-dark.sg-auth-report .sg-ahrefs-footer a { color:var(--sg-ahrefs-accent); }
body.sg-private-dark.sg-auth-report .sg-ahrefs-feedback {
    border-left-color:#6da4d8;
    background:#203653;
    color:#d5e8fb;
}
body.sg-private-dark.sg-auth-report .sg-ahrefs-feedback--error {
    border-left-color:#d87876;
    background:#3b2931;
    color:#ffc4bd;
}
body.sg-private-dark.sg-auth-report :is(button,.sg-submit-button,.sg-monitoring-button) {
    border-color:#4e7dae;
    background:#245f9f;
    color:#f3f8ff;
}
body.sg-private-dark.sg-auth-report :is(button,.sg-submit-button,.sg-monitoring-button):hover {
    border-color:#74a3d1;
    background:#2e74b8;
    color:#fff;
}
body.sg-private-dark.sg-auth-report .sg-pagespeed-homepage,
body.sg-private-dark.sg-auth-report .sg-pagespeed-run-summary { color:var(--sg-report-muted); }
body.sg-private-dark.sg-auth-report .sg-pagespeed { --sg-ps-ink:#e5edf5; --sg-ps-muted:#a9b8c8; --sg-ps-line:#354661; --sg-ps-accent:#91bde8; --sg-ps-coral:#de8a7f; color:var(--sg-report-ink); }
body.sg-private-dark.sg-auth-report .sg-pagespeed-run-summary { background:#1b2a42; }
body.sg-private-dark.sg-auth-report .sg-pagespeed-run-body { border-color:var(--sg-report-border); }
body.sg-private-dark.sg-auth-report .sg-pagespeed-note,
body.sg-private-dark.sg-auth-report .sg-pagespeed-empty,
body.sg-private-dark.sg-auth-report .sg-pagespeed-state,
body.sg-private-dark.sg-auth-report .sg-pagespeed-unavailable {
    border-color:var(--sg-report-border);
    background:#1d3048;
    color:#cfdeed;
}
body.sg-private-dark.sg-auth-report .sg-pagespeed-note p,
body.sg-private-dark.sg-auth-report .sg-pagespeed-field-empty,
body.sg-private-dark.sg-auth-report .sg-pagespeed-diagnostics li p { color:#b8c8d9; }
body.sg-private-dark.sg-auth-report .sg-pagespeed-note strong,
body.sg-private-dark.sg-auth-report .sg-pagespeed-diagnostics li .sg-pagespeed-diagnostic-value { color:var(--sg-report-ink); }
body.sg-private-dark.sg-auth-report .sg-pagespeed-strategy-head,
body.sg-private-dark.sg-auth-report .sg-pagespeed-diagnostics { border-color:var(--sg-report-border); }
body.sg-private-dark.sg-auth-report .sg-pagespeed-score--strong dd { color:#a8d5c2; }
body.sg-private-dark.sg-auth-report .sg-pagespeed-score--moderate dd { color:#e9cb85; }
body.sg-private-dark.sg-auth-report .sg-pagespeed-score--low dd { color:#f1a092; }
body.sg-private-dark.sg-auth-report .sg-pagespeed-score-track { background:#344862; }
body.sg-private-dark.sg-auth-report .sg-pagespeed-score--moderate .sg-pagespeed-score-track span { background:#d2ae66; }
body.sg-private-dark.sg-auth-report .sg-pagespeed-score--low .sg-pagespeed-score-track span { background:#d68172; }
body.sg-private-dark.sg-auth-report .sg-pagespeed-status--done { border-color:#a3c4b2; background:#dfeee5; color:#315342; }
body.sg-private-dark.sg-auth-report .sg-pagespeed-status--failed { border-color:#d6a09a; background:#f7e0dc; color:#7a302e; }
body.sg-private-dark.sg-auth-report .sg-pagespeed-status--active { border-color:#d2bd68; background:#f6edcf; color:#665415; }
body.sg-private-dark.sg-auth-report .sg-pagespeed-cache { border-color:#455b76; }
body.sg-private-dark.sg-auth-report .sg-pagespeed-flash {
    border-color:#6da4d8;
    background:#203653;
    color:#d5e8fb;
}
body.sg-private-dark.sg-auth-report .sg-pagespeed-flash--error {
    border-color:#d87876;
    background:#3b2931;
    color:#ffc4bd;
}
body.sg-private-dark.sg-auth-report .sg-ahrefs-empty h3 { color:var(--sg-report-ink); }
body.sg-private-dark.sg-auth-report :is(input,textarea,select,.sg-select-trigger) {
    border-color:#455b76;
    background-color:var(--sg-report-surface-inset);
    color:var(--sg-report-ink);
}
body.sg-private-dark.sg-auth-report :is(input,textarea)::placeholder { color:#879cb3; }
body.sg-private-dark.sg-auth-report .sg-pagespeed-score-track { background:#344862; }
body.sg-private-dark.sg-auth-report .sg-pagespeed-score-track > span { background:#6da4d8; }
body.sg-private-dark.sg-auth-report .sg-running-audit {
    border-color:#3d5874;
    background:
        radial-gradient(ellipse at 96% 8%,rgba(85,164,203,.18),transparent 34%),
        linear-gradient(135deg,#14243a 0%,#192d47 64%,#19364a 100%);
    box-shadow:0 10px 30px rgba(0,0,0,.24),inset 0 1px 0 rgba(255,255,255,.065);
}
body.sg-private-dark.sg-auth-report .sg-running-audit-heading :is(h2,.eyebrow) { color:#eaf2fb; }
body.sg-private-dark.sg-auth-report .sg-running-audit-heading .eyebrow { color:#b5c6d8; }
body.sg-private-dark.sg-auth-report .sg-running-audit-copy { color:#b9c9d9; }
body.sg-private-dark.sg-auth-report .sg-running-audit-copy strong { color:#eef5fb; }
body.sg-private-dark.sg-auth-report .sg-running-audit-grid-wrap {
    border-color:#3c536c;
    background:linear-gradient(145deg,#0e1a2a 0%,#15253a 55%,#122337 100%);
    box-shadow:inset 0 2px 8px rgba(0,0,0,.3),inset 0 1px 0 rgba(255,255,255,.045);
}
body.sg-private-dark.sg-auth-report .sg-running-audit-cell { background:#24364d; }
body.sg-private-dark.sg-auth-report .sg-running-audit-cell--filled {
    background:linear-gradient(145deg,#9be2ff 0%,#55b5ef 58%,#328fda 100%);
    box-shadow:0 0 2px rgba(104,202,250,.7),0 1px 5px rgba(50,145,220,.4);
}
body.sg-private-dark.sg-auth-report .sg-running-audit-cell--filled.sg-running-audit-cell--yellow {
    background:linear-gradient(145deg,#ffec9d 0%,#f5c04e 55%,#dc9528 100%);
    box-shadow:0 0 2px rgba(255,209,94,.72),0 1px 5px rgba(205,140,31,.4);
}
body.sg-private-dark.sg-auth-report .sg-running-audit--complete .sg-running-audit-cell--filled {
    background:linear-gradient(145deg,#b2f7c0 0%,#70e095 58%,#42bf72 100%);
    box-shadow:0 0 2px rgba(100,231,145,.72),0 1px 5px rgba(49,184,105,.4);
}
body.sg-private-dark.sg-auth-report .sg-running-audit-live { color:#b7d9f7; }
body.sg-private-dark.sg-auth-report .sg-score-grid-cell { background:#30435d; }
body.sg-private-dark.sg-auth-report .sg-score-grid-cell--filled { background:#70a8dc; }
body.sg-private-dark.sg-auth-report .sg-running-audit-cell--failed {
    background:linear-gradient(145deg,#ffaaa2 0%,#de5a62 100%);
    box-shadow:0 0 2px rgba(239,101,111,.38),0 1px 4px rgba(197,64,75,.24);
}
body.sg-private-dark.sg-auth-report .sg-running-audit-cell--filled.sg-running-audit-cell--settling {
    background:var(--progress-travel-color,#ff3b48);
    box-shadow:none;
    animation:sg-audit-square-travel .72s ease-in-out infinite;
}
@media (prefers-reduced-motion: reduce) {
    body.sg-private-dark.sg-auth-report .sg-running-audit-cell--filled.sg-running-audit-cell--settling {
        animation:none;
    }
}
body.sg-private-dark.sg-auth-report .sg-ahrefs-rating dd { color:#b9daf8; }
body.sg-private-dark.sg-auth-report .sg-ahrefs-metric-note { color:#f0c98f; }
body.sg-private-dark.sg-auth-report .sg-pagespeed-state--error { color:#ffaaa4; }
body.sg-private-dark.sg-auth-report .sg-pagespeed-state--partial { color:#e8c889; }
body.sg-private-dark.sg-auth-report .card.sg-pagespeed {
    --sg-ps-ink:#f0f6ff;
    --sg-ps-muted:#c2d1e2;
    --sg-ps-line:#536f8f;
    --sg-ps-accent:#acd4ff;
    --sg-ps-coral:#ffaaa4;
    border:1px solid #536f8f;
    border-radius:9px;
    background:linear-gradient(145deg,#17283f 0%,#1b2e47 100%);
    box-shadow:0 10px 26px rgba(0,0,0,.2),inset 0 1px rgba(255,255,255,.05);
    color:var(--sg-ps-ink);
}
body.sg-private-dark.sg-auth-report .sg-pagespeed .sg-pagespeed-run {
    border:1px solid #536f8f;
    border-radius:9px;
    background:#192b43;
}
body.sg-private-dark.sg-auth-report .sg-pagespeed .sg-pagespeed-run-summary {
    background:#253d59;
    color:#f0f6ff;
}
body.sg-private-dark.sg-auth-report .sg-pagespeed .sg-pagespeed-run-body {
    border-color:#536f8f;
    background:#192b43;
}
body.sg-private-dark.sg-auth-report .sg-pagespeed .sg-pagespeed-strategy,
body.sg-private-dark.sg-auth-report .sg-pagespeed .sg-pagespeed-comparison {
    border:1px solid #536f8f;
    border-radius:9px;
    background:#1e334c;
    box-shadow:inset 0 1px rgba(255,255,255,.035);
}
body.sg-private-dark.sg-auth-report .sg-pagespeed .sg-pagespeed-strategy-head {
    border-bottom-color:#536f8f;
}
body.sg-private-dark.sg-auth-report .sg-pagespeed .sg-pagespeed-score,
body.sg-private-dark.sg-auth-report .sg-pagespeed .sg-pagespeed-field-metrics > div,
body.sg-private-dark.sg-auth-report .sg-pagespeed .sg-pagespeed-diagnostics li {
    border:1px solid #5b7896;
    border-radius:9px;
    background:#263e59;
}
body.sg-private-dark.sg-auth-report .sg-pagespeed .sg-pagespeed-field {
    border-top-color:#536f8f;
}
body.sg-private-dark.sg-auth-report .sg-pagespeed .sg-pagespeed-note,
body.sg-private-dark.sg-auth-report .sg-pagespeed .sg-pagespeed-empty {
    border:1px solid #5b7896;
    border-radius:9px;
    background:#213853;
    color:#e0ebf8;
}
body.sg-private-dark.sg-auth-report .sg-pagespeed .sg-pagespeed-note-mark {
    border-color:#a9bfd1;
    background:#e3edf5;
    color:#294a64;
}
body.sg-private-dark.sg-auth-report .sg-pagespeed .sg-pagespeed-state,
body.sg-private-dark.sg-auth-report .sg-pagespeed .sg-pagespeed-unavailable {
    border-color:#86add3;
    background:#233b56;
    color:#e0ebf8;
}
body.sg-private-dark.sg-auth-report .sg-pagespeed .sg-pagespeed-state--partial {
    border-color:#d2ae63;
    background:#493d2b;
    color:#ffedbe;
}
body.sg-private-dark.sg-auth-report .sg-pagespeed .sg-pagespeed-state--error {
    border-color:#dd777d;
    background:#482d35;
    color:#ffe0de;
}
body.sg-private-dark.sg-auth-report .sg-pagespeed :is(.sg-pagespeed-action-note,
    .sg-pagespeed-unit-note,.sg-pagespeed-finished,.sg-pagespeed-homepage span,
    .sg-pagespeed-strategy-head time,.sg-pagespeed-score dt,
    .sg-pagespeed-lab-metrics dt,.sg-pagespeed-field-heading > span,
    .sg-pagespeed-field-source,.sg-pagespeed-field-empty,
    .sg-pagespeed-diagnostic-head span,.sg-pagespeed-diagnostics li small,
    .sg-pagespeed-comparison-heading p,.sg-pagespeed-comparison-legend) {
    color:#c2d1e2;
}
body.sg-private-dark.sg-auth-report .sg-pagespeed-status {
    border:1px solid currentColor;
    font-weight:750;
}
body.sg-private-dark.sg-auth-report .sg-pagespeed-status--done {
    border-color:#a3c4b2;
    background:#dfeee5;
    color:#315342;
}
body.sg-private-dark.sg-auth-report .sg-pagespeed-status--active {
    border-color:#d2bd68;
    background:#f6edcf;
    color:#665415;
}
body.sg-private-dark.sg-auth-report .sg-pagespeed-status--failed {
    border-color:#d6a09a;
    background:#f7e0dc;
    color:#7a302e;
}
body.sg-private-dark.sg-auth-report .sg-pagespeed-cache {
    border:1px solid #a9bfd1;
    border-radius:999px;
    background:#e3edf5;
    color:#294a64;
    padding:.18rem .55rem;
}
body.sg-private-dark.sg-auth-report .sg-pagespeed-diagnostics > summary span {
    border-color:#a9bfd1;
    background:#e3edf5;
    color:#294a64;
}
body.sg-private-dark.sg-auth-report .sg-pagespeed-summary-toggle,
body.sg-private-dark.sg-auth-report .sg-pagespeed-comparison-heading h4,
body.sg-private-dark.sg-auth-report .sg-pagespeed-diagnostics > summary {
    color:#d6e7f8;
}
body.sg-private-dark.sg-auth-report .sg-pagespeed-score-track {
    background:#465f7d;
}
body.sg-private-dark.sg-auth-report .sg-pagespeed-score-track > span {
    background:#91c8ff;
}
body.sg-private-dark.sg-auth-report .sg-pagespeed-score--strong dd { color:#aaf0d1; }
body.sg-private-dark.sg-auth-report .sg-pagespeed-score--moderate dd { color:#ffe09a; }
body.sg-private-dark.sg-auth-report .sg-pagespeed-score--low dd { color:#ffb0a8; }
body.sg-private-dark.sg-auth-report .sg-pagespeed-score--strong .sg-pagespeed-score-track span { background:#68d4a8; }
body.sg-private-dark.sg-auth-report .sg-pagespeed-score--moderate .sg-pagespeed-score-track span { background:#f2c35f; }
body.sg-private-dark.sg-auth-report .sg-pagespeed-score--low .sg-pagespeed-score-track span { background:#f07e75; }
body.sg-private-dark.sg-auth-report .sg-pagespeed-diagnostics > summary span {
    border:1px solid #a9bfd1;
    background:#e3edf5;
    color:#294a64;
}
body.sg-private-dark.sg-auth-report .sg-pagespeed-comparison-track { background:#425a77; }
body.sg-private-dark.sg-auth-report .sg-pagespeed-comparison-bar--previous { background:#b1c6dc; }
body.sg-private-dark.sg-auth-report .sg-pagespeed-comparison-bar--current { background:#ffb16f; }
body.sg-private-dark.sg-auth-report .sg-pagespeed-comparison-row > strong.is-up { color:#9fe3bb; }
body.sg-private-dark.sg-auth-report .sg-pagespeed-comparison-row > strong.is-down { color:#ff9d98; }
body.sg-private-dark.sg-auth-report .sg-overview-category-score dt { color:#d0deed; }
body.sg-private-dark.sg-auth-report .sg-overview-category-score dd span { color:#b6c9dc; }
body.sg-private-dark.sg-auth-report .sg-overview-category-score--strong dd { color:#aaf0d1; }
body.sg-private-dark.sg-auth-report .sg-overview-category-score--moderate dd { color:#ffe09a; }
body.sg-private-dark.sg-auth-report .sg-overview-category-score--low dd { color:#ffb0a8; }
body.sg-private-dark.sg-auth-report .sg-overview-category-score progress {
    background:#405975;
}
body.sg-private-dark.sg-auth-report .sg-overview-category-score progress::-webkit-progress-bar {
    background:#405975;
}
body.sg-private-dark.sg-auth-report .sg-overview-category-score--strong progress::-webkit-progress-value,
body.sg-private-dark.sg-auth-report .sg-pagespeed-score--strong .sg-pagespeed-score-track > span {
    background:#69e2a4;
}
body.sg-private-dark.sg-auth-report .sg-overview-category-score--moderate progress::-webkit-progress-value,
body.sg-private-dark.sg-auth-report .sg-pagespeed-score--moderate .sg-pagespeed-score-track > span {
    background:#ffc85c;
}
body.sg-private-dark.sg-auth-report .sg-overview-category-score--low progress::-webkit-progress-value,
body.sg-private-dark.sg-auth-report .sg-pagespeed-score--low .sg-pagespeed-score-track > span {
    background:#ff827b;
}
body.sg-private-dark.sg-auth-report .sg-overview-category-score--strong progress::-moz-progress-bar {
    background:#69e2a4;
}
body.sg-private-dark.sg-auth-report .sg-overview-category-score--moderate progress::-moz-progress-bar {
    background:#ffc85c;
}
body.sg-private-dark.sg-auth-report .sg-overview-category-score--low progress::-moz-progress-bar {
    background:#ff827b;
}
body.sg-private-dark.sg-auth-report .sg-pagespeed-score-track { background:#405975; }
body.sg-private-dark.sg-auth-report .sg-pagespeed-comparison-track {
    border:1px solid #617b98;
    background:#344a66;
}
body.sg-private-dark.sg-auth-report .sg-pagespeed-comparison-bar--previous,
body.sg-private-dark.sg-auth-report .sg-pagespeed-legend-previous { background:#abd7c5; }
body.sg-private-dark.sg-auth-report .sg-pagespeed-comparison-bar--current,
body.sg-private-dark.sg-auth-report .sg-pagespeed-legend-current { background:#ff963d; }
body.sg-private-dark.sg-auth-report .sg-pagespeed-comparison-row > span { color:#e1ebf6; }
body.sg-private-dark.sg-auth-report .sg-pagespeed :focus-visible {
    outline-color:#b9dcff;
}
body.sg-private-dark.sg-auth-report :is(.severity-critical,.severity-high,.severity-medium,.severity-low) {
    border:1px solid currentColor;
    border-radius:6px;
}
body.sg-private-dark.sg-auth-report .severity-critical { border-color:#d59692; background:#f8e2e0; color:#7b302e; }
body.sg-private-dark.sg-auth-report .severity-high { border-color:#dfb184; background:#fbebdb; color:#754718; }
body.sg-private-dark.sg-auth-report .severity-medium { border-color:#d4c57a; background:#f6efce; color:#6a581b; }
body.sg-private-dark.sg-auth-report .severity-low { border-color:#a9c8d7; background:#e4f0f6; color:#315767; }
body.sg-private-dark.sg-auth-report .sg-chart-panel.sg-severity-chart {
    border:1px solid #536f8f;
    border-radius:9px;
    background:linear-gradient(145deg,#192b43 0%,#1e334c 100%);
    box-shadow:0 8px 24px rgba(0,0,0,.18),inset 0 1px rgba(255,255,255,.04);
    color:#f0f6ff;
}
body.sg-private-dark.sg-auth-report .sg-severity-chart .sg-chart-heading {
    border-bottom-color:#536f8f;
}
body.sg-private-dark.sg-auth-report .sg-severity-chart .sg-chart-heading h2 {
    color:#f5f8fc;
}
body.sg-private-dark.sg-auth-report .sg-severity-chart .sg-chart-heading p,
body.sg-private-dark.sg-auth-report .sg-severity-chart .sg-chart-kicker,
body.sg-private-dark.sg-auth-report .sg-severity-chart .sg-chart-note,
body.sg-private-dark.sg-auth-report .sg-severity-chart .sg-severity-share,
body.sg-private-dark.sg-auth-report .sg-severity-chart .sg-severity-figure figcaption {
    color:#c5d4e5;
}
body.sg-private-dark.sg-auth-report .sg-severity-chart .sg-chart-note strong,
body.sg-private-dark.sg-auth-report .sg-severity-chart .sg-severity-legend strong {
    color:#f6f9fd;
}
body.sg-private-dark.sg-auth-report .sg-severity-chart .sg-severity-legend li {
    border-bottom-color:#536a84;
}
body.sg-private-dark.sg-auth-report .sg-severity-chart .sg-severity-label {
    color:#e4edf7;
}
body.sg-private-dark.sg-auth-report .sg-severity-chart .sg-severity-track {
    stroke:#415a77;
}
body.sg-private-dark.sg-auth-report .sg-severity-chart .sg-severity-swatch--critical {
    background-color:#ff6670;
}
body.sg-private-dark.sg-auth-report .sg-severity-chart .sg-severity-swatch--high {
    background-color:#ff995f;
}
body.sg-private-dark.sg-auth-report .sg-severity-chart .sg-severity-swatch--medium {
    background-color:#ffd166;
}
body.sg-private-dark.sg-auth-report .sg-severity-chart .sg-severity-swatch--low {
    background-color:#55baff;
}
body.sg-private-dark.sg-auth-report .sg-severity-chart .sg-severity-segment--critical {
    fill:#ff6670;
    stroke:#ff6670;
}
body.sg-private-dark.sg-auth-report .sg-severity-chart .sg-severity-segment--high {
    fill:#ff995f;
    stroke:#ff995f;
}
body.sg-private-dark.sg-auth-report .sg-severity-chart .sg-severity-segment--medium {
    fill:#ffd166;
    stroke:#ffd166;
}
body.sg-private-dark.sg-auth-report .sg-severity-chart .sg-severity-segment--low {
    fill:#55baff;
    stroke:#55baff;
}
body.sg-private-dark.sg-auth-report .sg-severity-chart .sg-severity-full {
    filter:saturate(1.2) brightness(1.16);
}
@media (max-width:760px) {
    body.sg-private-dark.sg-auth-report .sg-gsc-table--stacked tbody tr {
        border-color:var(--sg-report-border);
        background:var(--sg-report-surface-raised);
    }
}

/* Black and green dark palette */
body.sg-private-dark.sg-auth-report {
    --sg-report-surface: var(--sg-dark-surface-base);
    --sg-report-surface-raised: var(--sg-dark-surface-raised);
    --sg-report-surface-inset: #050805;
    --sg-report-border: var(--sg-dark-border-report);
    --sg-report-blue: var(--sg-dark-link);
    background: var(--sg-dark-page);
}
body.sg-private-dark .page-shell { background: transparent; }
body.sg-private-dark .header-action,
body.sg-private-dark .header-menu-trigger,
body.sg-private-dark .agency-button-quiet,
body.sg-private-dark .ex-button-secondary,
body.sg-private-dark .admin-secondary-button,
body.sg-private-dark .sg-monitoring-pause,
body.sg-private-dark .sg-history-link,
body.sg-private-dark .sg-pagination a,
body.sg-private-dark .sg-pagination span,
body.sg-private-dark .ex-pagination a,
body.sg-private-dark .sg-history-dialog-close {
    border-color: var(--sg-dark-private-control-border);
    background: var(--sg-dark-control-surface);
    color: var(--sg-dark-control-ink);
}
body.sg-private-dark .header-action:hover,
body.sg-private-dark .header-menu-trigger:hover,
body.sg-private-dark .header-menu[open] > .header-menu-trigger,
body.sg-private-dark .agency-button-quiet:hover,
body.sg-private-dark .ex-button-secondary:hover,
body.sg-private-dark .admin-secondary-button:hover,
body.sg-private-dark .sg-monitoring-pause:hover,
body.sg-private-dark .sg-history-link:hover,
body.sg-private-dark .sg-pagination a:hover,
body.sg-private-dark .ex-pagination a:hover {
    border-color: var(--sg-dark-control-border-hover);
    background: var(--sg-dark-control-surface-hover);
    color: var(--sg-dark-control-ink-hover);
}
body.sg-private-dark :is(.card,.sg-panel,.agency-panel,.ex-profile-card,.ex-form-card,
    .ex-preview-card,.ex-run-summary,.ex-result-card,.admin-metric,.admin-summary-card,
    .admin-finding,.sg-plan-card,.sg-billing-status,.sg-usage-panel,.sg-monitoring-card,
    .sg-chart-card,.sg-score-history-card,.sg-severity-card,.sg-history-dialog,
    .sg-history-archive-point,.sg-settings-credential,.sg-gsc-property,
    .sg-audit-sound-setting,.sg-settings-guide,.sg-contact-aside-note,
    .sg-search-console-page-history,.sg-scheduled-issue-comparison) {
    border-color: var(--sg-border-soft);
    background: var(--sg-surface-1);
    color: var(--ink);
}
body.sg-private-dark :is(.metric,.stat-card,.score-box,.sg-overview-strip,
    .sg-overview-context-card,.sg-overview-category-score,.sg-overview-pagespeed-item,
    .sg-overview-field-block,.sg-overview-gsc-metrics > div,.sg-overview-field-metrics > div,
    .sg-gsc-metric,.sg-gsc-report .sg-gsc-metrics article,.sg-settings-credential,
    .sg-gsc-connected,.sg-gsc-property,.sg-identity-settings-row,.sg-monitoring-actions,
    .sg-sample-chart-card,.sg-running-audit-grid-wrap) {
    border-color: #344a38;
    background: var(--sg-surface-2);
    color: var(--ink);
}
body.sg-private-dark :is(.sg-panel-heading,.sg-recent-heading,.agency-panel-head,
    .sg-monitoring-heading,.sg-monitoring-actions,.sg-running-audit-actions,
    .sg-chart-heading,.sg-severity-chart .sg-chart-heading) {
    border-color: #344a38;
}
body.sg-private-dark input:not([type="checkbox"]):not([type="radio"]):not([type="file"]),
body.sg-private-dark textarea,
body.sg-private-dark select,
body.sg-private-dark .sg-select-trigger,
body.sg-private-dark .agency-field input:not([type=file]):not([type=checkbox]),
body.sg-private-dark .agency-field select,
body.sg-private-dark .agency-field textarea,
body.sg-private-dark .ex-field input,
body.sg-private-dark .ex-field select,
body.sg-private-dark .ex-field textarea,
body.sg-private-dark .admin-search input,
body.sg-private-dark .admin-grant-form input,
body.sg-private-dark .admin-revoke-form input,
body.sg-private-dark .admin-plan-change-filters input,
body.sg-private-dark .admin-plan-change-filters select,
body.sg-private-dark .admin-price-catalog-filters input,
body.sg-private-dark .admin-price-catalog-filters select {
    border-color: #354a39;
    background-color: #080d09;
    color: #e6efe8;
}
body.sg-private-dark input:disabled,
body.sg-private-dark input[readonly],
body.sg-private-dark textarea:disabled,
body.sg-private-dark select:disabled {
    border-color: #2b382e;
    background-color: #0c110d;
    color: #a4b0a6;
}
body.sg-private-dark select option { background: #0b110d; color: #e6efe8; }
body.sg-private-dark .sg-select-listbox {
    border-color: #3b5840;
    background: #0b110d;
}
body.sg-private-dark .sg-select-option.is-active,
body.sg-private-dark .sg-select-option:hover {
    background: #1d3523;
    color: #e6f5e9;
}
body.sg-private-dark .sg-history-filters select,
body.sg-private-dark .sg-history-filters .sg-select-trigger,
body.sg-private-dark .sg-history-filters > button[type="submit"] {
    border-color: #4fa669;
    background-color: #237a43;
    color: #ffffff;
}
body.sg-private-dark .sg-history-filters select:hover:not(:disabled),
body.sg-private-dark .sg-history-filters .sg-select-trigger:hover:not(:disabled),
body.sg-private-dark .sg-history-filters > button[type="submit"]:hover {
    border-color: #75c68b;
    background-color: #2f9253;
}
body.sg-private-dark :is(#audit-history-status-listbox,#audit-history-client-listbox) {
    border-color: #3b5840;
    background: #0b110d;
}
body.sg-private-dark :is(#audit-history-status-listbox,#audit-history-client-listbox) .sg-select-option.is-active,
body.sg-private-dark :is(#audit-history-status-listbox,#audit-history-client-listbox) .sg-select-option:hover {
    background: #237a43;
    color: #ffffff;
}
body.sg-private-dark a,
body.sg-private-dark .button-link,
body.sg-private-dark .sg-report-navigation a,
body.sg-private-dark .admin-view-link,
body.sg-private-dark .admin-back a,
body.sg-private-dark .sg-usage-table a,
body.sg-private-dark .sg-contact-aside-back a {
    color: #96d9a5;
}
body.sg-private-dark a:hover,
body.sg-private-dark .button-link:hover { color: #c4efcc; }
body.sg-private-dark .sg-report-header {
    border-color: #3a5a40;
    background:
        radial-gradient(ellipse at 88% 8%,rgba(75,180,101,.2),transparent 31%),
        radial-gradient(ellipse at 66% 120%,rgba(50,132,71,.17),transparent 46%),
        linear-gradient(112deg,#050805 0%,#101a12 52%,#17251a 100%);
}
body.sg-private-dark.sg-auth-report :is(.card,.score-box,.stat-card,.sg-audit-overview,
    .sg-chart-panel,.sg-overview-context-card,.sg-overview-pagespeed-item,
    .sg-overview-category-score,.sg-overview-field-metrics > div,
    .sg-overview-gsc-metrics > div,.sg-finding-group,.sg-finding-card,
    .sg-report-reading-guide,.sg-scheduled-issue-group,.sg-pagespeed-run,
    .sg-pagespeed-strategy,.sg-pagespeed-comparison,.sg-pagespeed-empty,
    .sg-pagespeed-note,.sg-gsc-metrics article,.sg-running-audit,
    .sg-shopify-profile,.sg-gsc-metric,.sg-ahrefs-metrics > div,.sg-ahrefs-empty) {
    border-color: var(--sg-report-border);
    background: var(--sg-report-surface);
    color: var(--sg-report-ink);
}
body.sg-private-dark.sg-auth-report :is(.sg-overview-context-card,.sg-overview-pagespeed-item,
    .sg-overview-category-score,.sg-overview-field-metrics > div,
    .sg-overview-gsc-metrics > div,.sg-pagespeed-strategy,.sg-pagespeed-comparison,
    .sg-scheduled-issue-group,.sg-gsc-metric,.sg-ahrefs-metrics > div,.sg-ahrefs-empty,
    .sg-pagespeed-score,.sg-pagespeed-field,.sg-pagespeed-field-metrics > div,
    .sg-pagespeed-diagnostics li,.sg-history-chart,.sg-history-archive-point,
    .sg-overview-metrics > div,.sg-sample-chart-card,.sg-pagespeed-run-summary,
    .sg-pagespeed-run-body) {
    background: var(--sg-report-surface-raised);
}
body.sg-private-dark.sg-auth-report :is(button,.sg-submit-button,.sg-monitoring-button) {
    border-color: var(--sg-button-blue-border);
    background: var(--sg-button-blue);
    color: var(--sg-button-blue-ink);
}
body.sg-private-dark.sg-auth-report :is(button,.sg-submit-button,.sg-monitoring-button):hover {
    border-color: var(--sg-button-blue-border-hover);
    background: var(--sg-button-blue-hover);
    color: #ffffff;
}
body.sg-private-dark :is(.stat-card-icon,.sg-report-icon,.admin-tag,.sg-latest-label,
    .sg-severity-jump,.sg-monitoring-site-icon,.sg-monitoring-detail-icon,
    .sg-monitoring-comparison-icon,.sg-monitoring-badge,.agency-pill,
    .sg-report-reading-guide-mark,.sg-pagespeed-note-mark,.sg-pagespeed-cache,
    .sg-pagespeed-diagnostics > summary span,.sg-usage-status-refunded,
    .ex-run-pill.status-running) {
    border-color: #acd5b4;
    background: #e3f2e6;
    color: #285632;
}
body.sg-private-dark .severity-low,
body.sg-private-dark .sg-severity-jump .sg-dot-low,
body.sg-private-dark .sg-severity-swatch--low,
body.sg-private-dark .sg-severity-segment--low { color: #285632; }
body.sg-private-dark .severity-low {
    border-color: #95c4a0;
    background: #e3f2e6;
}
body.sg-private-dark .sg-severity-jump .sg-dot-low,
body.sg-private-dark .sg-severity-swatch--low,
body.sg-private-dark .sg-severity-segment--low {
    background-color: #59b976;
    fill: #59b976;
    stroke: #59b976;
}
body.sg-private-dark.sg-auth-report .sg-running-audit {
    border-color: #354b39;
    background:
        radial-gradient(ellipse at 96% 8%,rgba(73,173,94,.16),transparent 34%),
        linear-gradient(135deg,#050805 0%,#101a12 64%,#17251a 100%);
}
body.sg-private-dark.sg-auth-report .sg-running-audit-grid-wrap {
    border-color: #38513c;
    background: linear-gradient(145deg,#050805 0%,#0d150e 55%,#111c13 100%);
}
body.sg-private-dark.sg-auth-report .sg-running-audit-cell { background: #202a22; }
body.sg-private-dark.sg-auth-report .sg-running-audit-cell--filled {
    background: linear-gradient(145deg,#a8edb6 0%,#64d483 58%,#38ad60 100%);
    box-shadow: 0 0 2px rgba(100,212,131,.62),0 1px 5px rgba(49,161,83,.38);
}
body.sg-private-dark.sg-auth-report .sg-running-audit-cell--filled.sg-running-audit-cell--yellow {
    background: linear-gradient(145deg,#ffec9d 0%,#f5c04e 55%,#dc9528 100%);
}
body.sg-private-dark.sg-auth-report .sg-score-grid-cell { background: var(--sg-score-empty,#263329); }
body.sg-private-dark.sg-auth-report .sg-score-grid-cell--filled { background: var(--sg-score-color,#64d483); }
body.sg-private-dark.sg-auth-report .sg-running-audit-live,
body.sg-private-dark.sg-auth-report .sg-ahrefs-rating dd { color: #9be2ac; }
body.sg-private-dark.sg-auth-report .sg-pagespeed,
body.sg-private-dark.sg-auth-report .card.sg-pagespeed {
    --sg-ps-ink: #e6efe8;
    --sg-ps-muted: #a6b2a8;
    --sg-ps-line: #354b39;
    --sg-ps-accent: #93d6a2;
}
body.sg-private-dark.sg-auth-report .sg-pagespeed-score-track,
body.sg-private-dark.sg-auth-report .sg-pagespeed-comparison-track,
body.sg-private-dark.sg-auth-report .sg-overview-category-score progress,
body.sg-private-dark.sg-auth-report .sg-overview-category-score progress::-webkit-progress-bar {
    background: #28382b;
}
body.sg-private-dark.sg-auth-report .sg-pagespeed-score-track > span,
body.sg-private-dark.sg-auth-report .sg-pagespeed-comparison-bar--previous {
    background: #59bd75;
}
body.sg-private-dark.sg-auth-report .sg-pagespeed-comparison-bar--current,
body.sg-private-dark.sg-auth-report .sg-pagespeed-legend-current { background: #efa064; }
body.sg-private-dark.sg-auth-report .sg-severity-chart,
body.sg-private-dark.sg-auth-report .sg-chart-panel.sg-severity-chart {
    border-color: #354b39;
    background: linear-gradient(145deg,#0d140f 0%,#141e16 100%);
}
body.sg-private-dark .sg-chart-card svg .grid-line,
body.sg-private-dark .sg-score-history svg .grid-line,
body.sg-private-dark .sg-gsc-chart .sg-gsc-gridline { stroke: #354638; }
body.sg-private-dark .sg-chart-panel.sg-gsc-chart,
body.sg-private-dark .sg-chart-panel.sg-score-history {
    --viz-line: #354638;
    --viz-accent: #75d28c;
    --viz-wash: #101a12;
}

@media (prefers-reduced-motion: reduce) {
    html:has(body.sg-private-dark),
    html:has(body.sg-marketing-dark) { scroll-behavior: auto; }
}

/* Route-specific component refinements */
body.sg-private-dark .sg-report-list,
body.sg-private-dark .sg-report-row,
body.sg-private-dark .preview-issue,
body.sg-private-dark .issue-card,
body.sg-private-dark .sg-check-item,
body.sg-private-dark .sg-audit-progress,
body.sg-private-dark .sg-audit-side,
body.sg-private-dark .sg-compare-metric,
body.sg-private-dark .sg-finding-group {
    border-color: #344a38;
}
body.sg-private-dark .sg-report-row,
body.sg-private-dark .preview-issue,
body.sg-private-dark .issue-card,
body.sg-private-dark .sg-check-item,
body.sg-private-dark .sg-audit-side,
body.sg-private-dark .sg-compare-metric,
body.sg-private-dark .sg-finding-group {
    background: var(--sg-surface-1);
}
body.sg-private-dark .sg-report-row:hover { background: #152119; }
body.sg-private-dark .sg-audit-progress {
    background: #111a13;
    color: #d8e6da;
}
body.sg-private-dark .banner,
body.sg-private-dark .sg-compare-warning {
    border-color: #49634d;
    background: #142118;
    color: #cfe5d2;
}
body.sg-private-dark.sg-getting-started .sg-history-link,
body.sg-private-dark.sg-getting-started .sg-history-link:hover {
    border-color: #4b7654;
    background: #142118;
    color: #d9eddd;
}
body.sg-private-dark .sg-overview-heading,
body.sg-private-dark .sg-overview-context-heading,
body.sg-private-dark .sg-overview-field-block,
body.sg-private-dark .sg-overview-pagespeed-item h4,
body.sg-private-dark .sg-overview-metrics dd,
body.sg-private-dark .sg-overview-category-score dd,
body.sg-private-dark .sg-overview-field-metrics dd,
body.sg-private-dark .sg-overview-gsc-metrics dd {
    color: #e6efe8;
}
body.sg-private-dark .sg-overview-metrics dt,
body.sg-private-dark .sg-overview-category-score dt,
body.sg-private-dark .sg-overview-field-metrics dt,
body.sg-private-dark .sg-overview-gsc-metrics dt,
body.sg-private-dark .sg-overview-category-score dd span,
body.sg-private-dark .sg-overview-context-empty,
body.sg-private-dark .sg-overview-field-source,
body.sg-private-dark .sg-overview-range {
    color: #a6b2a8;
}
body.sg-private-dark .sg-overview-strip,
body.sg-private-dark .sg-overview-context-card,
body.sg-private-dark .sg-overview-category-score,
body.sg-private-dark .sg-overview-pagespeed-item,
body.sg-private-dark .sg-overview-field-block,
body.sg-private-dark .sg-overview-gsc-metrics > div,
body.sg-private-dark .sg-overview-field-metrics > div {
    border-color: #344a38;
    background: var(--sg-surface-2);
}
body.sg-private-dark .sg-score-box--strong,
body.sg-private-dark .score-box {
    border-color: #42634a;
    background: linear-gradient(145deg,#18261b,#101810 74%);
}
body.sg-private-dark .sg-report-header {
    border-color: #3a5a40;
    background:
        radial-gradient(ellipse at 88% 8%,rgba(75,180,101,.2),transparent 31%),
        radial-gradient(ellipse at 66% 120%,rgba(50,132,71,.17),transparent 46%),
        linear-gradient(112deg,#050805 0%,#101a12 52%,#17251a 100%);
}
body.sg-private-dark.sg-auth-report .sg-report-header {
    border-color: #3a5a40;
    background:
        radial-gradient(ellipse at 92% 12%,rgba(99,195,120,.22),transparent 35%),
        radial-gradient(ellipse at 62% 115%,rgba(63,145,78,.16),transparent 48%),
        linear-gradient(112deg,#050805 0%,#0d180f 38%,#142219 72%,#192b1e 100%);
    box-shadow:0 12px 32px rgba(0,0,0,.3),inset 0 1px 0 rgba(236,255,239,.055);
}
body.sg-private-dark.sg-auth-report .sg-report-header h1 { color: #f0f7f1; }
body.sg-private-dark.sg-auth-report .sg-report-header .eyebrow { color: #b6c8b9; }
body.sg-private-dark.sg-auth-report .sg-report-header .score-box {
    --sg-score-color: #9aefb5;
    --sg-score-empty: #314b36;
    border-color: #3d4740;
    background: #000;
    box-shadow:none;
}
body.sg-private-dark.sg-auth-report .sg-report-header .score-box-copy > span { color: #e6efe8; }
body.sg-private-dark.sg-auth-report .sg-report-header .score-box small { color: #a6b7a8; }
body.sg-private-dark.sg-auth-report .sg-report-header-live {
    border-color: #acd5b4;
    background: #e3f2e6;
    color: #285632;
}
body.sg-private-dark.sg-auth-report .sg-report-header[data-audit-header-status] .sg-report-header-live {
    border-radius:4px;
}
body.sg-private-dark.sg-auth-report .sg-finding-card .sg-evidence-detail {
    border-color: #3a5140;
    color: #c4d4c7;
}
body.sg-private-dark.sg-auth-report .sg-report-reading-guide {
    border-color: #354b39;
    background: #0b110d;
}
body.sg-private-dark.sg-auth-report .sg-severity-jump {
    border-color: #acd5b4;
    background: #e3f2e6;
    color: #285632;
}
body.sg-private-dark.sg-auth-report .sg-severity-jump strong { color: #285632; }
body.sg-private-dark.sg-auth-report .sg-severity-jump:hover {
    border-color: #88bb91;
    background: #d4ebd9;
    color: #20472a;
}
body.sg-private-dark.sg-auth-report .sg-finding-card {
    border-color: #354b39;
    background: #0b110d;
}
body.sg-private-dark.sg-auth-report .sg-gsc-table,
body.sg-private-dark.sg-auth-report .sg-gsc-table td,
body.sg-private-dark.sg-auth-report .sg-gsc-table th {
    border-color: #354b39;
    color: #e6efe8;
}
body.sg-private-dark.sg-auth-report .sg-gsc-table thead th {
    background: #18251b;
    color: #eaf4ec;
}
body.sg-private-dark.sg-auth-report .sg-gsc-table tbody tr:hover { background: #142118; }
body.sg-private-dark.sg-auth-report .sg-gsc-table--stacked tbody tr {
    border-color: #354b39;
    background: #111a13;
}
body.sg-private-dark.sg-auth-report .sg-gsc-table--stacked td,
body.sg-private-dark.sg-auth-report .sg-gsc-table--stacked th { border-color: #354b39; }
body.sg-private-dark.sg-auth-report .sg-gsc-table--stacked td::before { color: #b6c8b9; }
body.sg-private-dark.sg-auth-report .sg-ahrefs {
    --sg-ahrefs-ink: #e6efe8;
    --sg-ahrefs-muted: #a6b2a8;
    --sg-ahrefs-line: #354b39;
    --sg-ahrefs-accent: #98d9a7;
}
body.sg-private-dark.sg-auth-report .sg-ahrefs-feedback {
    border-left-color: #75c68b;
    background: #142118;
    color: #d8ebdc;
}
body.sg-private-dark.sg-auth-report .sg-ahrefs-feedback--error {
    border-left-color: #d87876;
    background: #3b2931;
    color: #ffc4bd;
}
body.sg-private-dark.sg-auth-report .sg-pagespeed,
body.sg-private-dark.sg-auth-report .card.sg-pagespeed {
    --sg-ps-ink: #e6efe8;
    --sg-ps-muted: #a6b2a8;
    --sg-ps-line: #354b39;
    --sg-ps-accent: #93d6a2;
    --sg-ps-coral: #ffaaa4;
    border-color: #354b39;
    background: linear-gradient(145deg,#0b110d 0%,#111a13 100%);
    color: #e6efe8;
}
body.sg-private-dark.sg-auth-report .sg-pagespeed .sg-pagespeed-run,
body.sg-private-dark.sg-auth-report .sg-pagespeed .sg-pagespeed-run-body {
    border-color: #354b39;
    background: #0b110d;
    color: #e6efe8;
}
body.sg-private-dark.sg-auth-report .sg-pagespeed .sg-pagespeed-run-summary {
    background: #17251a;
    color: #e6efe8;
}
body.sg-private-dark.sg-auth-report .sg-pagespeed .sg-pagespeed-strategy,
body.sg-private-dark.sg-auth-report .sg-pagespeed .sg-pagespeed-comparison {
    border-color: #354b39;
    background: #111a13;
    color: #e6efe8;
}
body.sg-private-dark.sg-auth-report .sg-pagespeed .sg-pagespeed-strategy-head,
body.sg-private-dark.sg-auth-report .sg-pagespeed .sg-pagespeed-field {
    border-color: #354b39;
}
body.sg-private-dark.sg-auth-report .sg-pagespeed .sg-pagespeed-score,
body.sg-private-dark.sg-auth-report .sg-pagespeed .sg-pagespeed-field-metrics > div,
body.sg-private-dark.sg-auth-report .sg-pagespeed .sg-pagespeed-diagnostics li {
    border-color: #3b5840;
    background: #17251a;
    color: #e6efe8;
}
body.sg-private-dark.sg-auth-report .sg-pagespeed .sg-pagespeed-note,
body.sg-private-dark.sg-auth-report .sg-pagespeed .sg-pagespeed-empty {
    border-color: #3b5840;
    background: #142118;
    color: #d8ebdc;
}
body.sg-private-dark.sg-auth-report .sg-pagespeed .sg-pagespeed-note-mark,
body.sg-private-dark.sg-auth-report .sg-pagespeed .sg-pagespeed-diagnostics > summary span {
    border-color: #acd5b4;
    background: #e3f2e6;
    color: #285632;
}
body.sg-private-dark.sg-auth-report .sg-pagespeed .sg-pagespeed-state,
body.sg-private-dark.sg-auth-report .sg-pagespeed .sg-pagespeed-unavailable {
    border-color: #4b7654;
    background: #142118;
    color: #d9eddd;
}
body.sg-private-dark.sg-auth-report .sg-pagespeed .sg-pagespeed-state--partial {
    border-color: #d2ae63;
    background: #493d2b;
    color: #ffedbe;
}
body.sg-private-dark.sg-auth-report .sg-pagespeed .sg-pagespeed-state--error {
    border-color: #dd777d;
    background: #482d35;
    color: #ffe0de;
}
body.sg-private-dark.sg-auth-report .sg-pagespeed :is(.sg-pagespeed-action-note,
    .sg-pagespeed-unit-note,.sg-pagespeed-finished,.sg-pagespeed-homepage span,
    .sg-pagespeed-strategy-head time,.sg-pagespeed-score dt,
    .sg-pagespeed-lab-metrics dt,.sg-pagespeed-field-heading > span,
    .sg-pagespeed-field-source,.sg-pagespeed-field-empty,
    .sg-pagespeed-diagnostic-head span,.sg-pagespeed-diagnostics li small,
    .sg-pagespeed-comparison-heading p,.sg-pagespeed-comparison-legend) {
    color: #a6b2a8;
}
body.sg-private-dark.sg-auth-report .sg-pagespeed .sg-pagespeed-cache,
body.sg-private-dark.sg-auth-report .sg-pagespeed .sg-pagespeed-diagnostics > summary span {
    border-color: #acd5b4;
    background: #e3f2e6;
    color: #285632;
}
body.sg-private-dark.sg-auth-report .sg-pagespeed .sg-pagespeed-status--done {
    border-color: #acd5b4;
    background: #e3f2e6;
    color: #285632;
}
body.sg-private-dark.sg-auth-report .sg-pagespeed .sg-pagespeed-status--active {
    border-color: #d2bd68;
    background: #f6edcf;
    color: #665415;
}
body.sg-private-dark.sg-auth-report .sg-pagespeed .sg-pagespeed-status--failed {
    border-color: #d6a09a;
    background: #f7e0dc;
    color: #7a302e;
}
body.sg-private-dark.sg-auth-report .sg-pagespeed .sg-pagespeed-summary-toggle,
body.sg-private-dark.sg-auth-report .sg-pagespeed .sg-pagespeed-comparison-heading h4,
body.sg-private-dark.sg-auth-report .sg-pagespeed .sg-pagespeed-diagnostics > summary {
    color: #d8e8db;
}
body.sg-private-dark.sg-auth-report .sg-pagespeed :focus-visible { outline-color: #98d9a7; }
body.sg-private-dark.sg-auth-report .sg-pagespeed-score-track,
body.sg-private-dark.sg-auth-report .sg-pagespeed-comparison-track,
body.sg-private-dark.sg-auth-report .sg-pagespeed-score-track { background: #28382b; }
body.sg-private-dark.sg-auth-report .sg-pagespeed-comparison-track {
    border-color: #49634d;
    background: #28382b;
}
body.sg-private-dark.sg-auth-report .sg-pagespeed-score-track > span,
body.sg-private-dark.sg-auth-report .sg-pagespeed-comparison-bar--previous,
body.sg-private-dark.sg-auth-report .sg-pagespeed-legend-previous { background: #59bd75; }
body.sg-private-dark.sg-auth-report .sg-pagespeed-comparison-bar--current,
body.sg-private-dark.sg-auth-report .sg-pagespeed-legend-current { background: #efa064; }
body.sg-private-dark.sg-auth-report .sg-pagespeed-comparison-row > span { color: #d6e2d8; }
body.sg-private-dark.sg-auth-report .severity-low {
    border-color: #95c4a0;
    background: #e3f2e6;
    color: #285632;
}
body.sg-private-dark.sg-auth-report .sg-chart-panel.sg-severity-chart {
    border-color: #354b39;
    background: linear-gradient(145deg,#0b110d 0%,#111a13 100%);
    color: #e6efe8;
}
body.sg-private-dark.sg-auth-report .sg-overview-top-issues {
    border-color: #2d4032;
    background: linear-gradient(145deg,#101712 0%,#141e16 100%);
    color: #e6efe8;
}
body.sg-private-dark.sg-auth-report .sg-overview-top-issues-heading { border-bottom-color: #2d4032; }
body.sg-private-dark.sg-auth-report .sg-overview-top-issues-heading .sg-chart-kicker,
body.sg-private-dark.sg-auth-report .sg-overview-top-issues-heading > div > p:last-child,
body.sg-private-dark.sg-auth-report .sg-top-issues-count,
body.sg-private-dark.sg-auth-report .sg-top-issue-url {
    color: #a6b2a8;
}
body.sg-private-dark.sg-auth-report .sg-overview-top-issues-heading h3,
body.sg-private-dark.sg-auth-report .sg-top-issue-title,
body.sg-private-dark.sg-auth-report .sg-top-issue-pages { color: #e6efe8; }
body.sg-private-dark.sg-auth-report .sg-top-issues-table-wrap {
    border-color: #2d4032;
    background: #0b110d;
}
body.sg-private-dark.sg-auth-report .sg-top-issues-table th,
body.sg-private-dark.sg-auth-report .sg-top-issues-table td { border-bottom-color: #2d4032; }
body.sg-private-dark.sg-auth-report .sg-top-issues-table thead th {
    background: #121a14;
    color: #a6b2a8;
}
body.sg-private-dark.sg-auth-report .sg-top-issues-table tbody tr:hover { background: #17231a; }
body.sg-private-dark.sg-auth-report .sg-severity-chart .sg-chart-heading { border-bottom-color: #354b39; }
body.sg-private-dark.sg-auth-report .sg-severity-chart .sg-chart-heading p,
body.sg-private-dark.sg-auth-report .sg-severity-chart .sg-chart-kicker,
body.sg-private-dark.sg-auth-report .sg-severity-chart .sg-chart-note,
body.sg-private-dark.sg-auth-report .sg-severity-chart .sg-severity-share,
body.sg-private-dark.sg-auth-report .sg-severity-chart .sg-severity-figure figcaption {
    color: #b5c3b7;
}
body.sg-private-dark.sg-auth-report .sg-severity-chart .sg-severity-legend li { border-bottom-color: #354b39; }
body.sg-private-dark.sg-auth-report .sg-severity-chart .sg-severity-label { color: #dce8de; }
body.sg-private-dark.sg-auth-report .sg-severity-chart .sg-severity-track { stroke: #354b39; }
body.sg-private-dark.sg-auth-report .sg-severity-chart .sg-severity-swatch--low {
    background-color: #59b976;
}
body.sg-private-dark.sg-auth-report .sg-severity-chart .sg-severity-segment--low {
    fill: #59b976;
    stroke: #59b976;
}
body.sg-private-dark .sg-chart-card svg .grid-line,
body.sg-private-dark .sg-score-history svg .grid-line,
body.sg-private-dark .sg-gsc-chart .sg-gsc-gridline { stroke: #354638; }
body.sg-private-dark .sg-chart-panel.sg-gsc-chart,
body.sg-private-dark .sg-chart-panel.sg-score-history {
    --viz-line: #354638;
    --viz-accent: #75d28c;
    --viz-wash: #101a12;
}
body.sg-private-dark.sg-auth-report :is(.sg-report-reading-guide-mark,.sg-pagespeed-note-mark) {
    border-color: #acd5b4;
    background: #e3f2e6;
    color: #285632;
}

/* Private-page refinements for the black and green palette. */
body.sg-private-dark .sg-gsc-chart .sg-gsc-metric,
body.sg-private-dark .sg-gsc-report .sg-gsc-metrics article {
    border-color: #344a38;
    background: var(--sg-surface-2);
}
body.sg-private-dark .sg-gsc-report .sg-gsc-table th,
body.sg-private-dark .sg-gsc-report .sg-gsc-table td {
    border-color: #344a38;
    color: #dbe8dd;
}
body.sg-private-dark .sg-gsc-report .sg-gsc-table thead th,
body.sg-private-dark .sg-gsc-report .sg-gsc-daily-table thead,
body.sg-private-dark .sg-gsc-report .sg-gsc-daily-table thead th {
    background: #19251b;
    color: #e6efe8;
}
body.sg-private-dark .sg-gsc-trend-period > header h4 { color: #e6efe8; }
body.sg-private-dark .sg-gsc-trend-period > header p { color: #b6c9b9; }
body.sg-private-dark .sg-gsc-trend-unavailable {
    border-color: #354a38;
    background: #101812;
    color: #c4d3c6;
}
body.sg-private-dark .sg-gsc-trend-figure {
    --viz-ink: #e6efe8;
    --viz-muted: #b6c9b9;
    --viz-accent: #76df91;
    --viz-warm: #ffc268;
    border-color: #354a38;
    background: #0d140f;
}
body.sg-private-dark .sg-gsc-trend-gridline { stroke: #2e4032; }
body.sg-private-dark .sg-gsc-trend-axis-line { stroke: #718575; }
body.sg-private-dark .sg-gsc-trend-point { fill: #0d140f; }
body.sg-private-dark .sg-gsc-data-details {
    border-color: #354a38;
    background: #101812;
    color: #e6efe8;
}
body.sg-private-dark .sg-gsc-data-details > summary { color: #e6efe8; }
body.sg-private-dark .sg-gsc-data-details > summary::after { color: #a9c0ae; }
body.sg-private-dark .sg-gsc-data-details > summary:hover { background: #17241a; }
body.sg-private-dark .sg-gsc-data-details[open] > summary { border-bottom-color: #354a38; }
body.sg-private-dark .sg-gsc-data-details > summary:focus-visible { outline-color: #8de5a1; }
body.sg-private-dark .sg-gsc-report .sg-gsc-table a,
body.sg-private-dark .sg-gsc-report > a,
body.sg-private-dark .sg-gsc-prompt a { color: #96d9a5; }
body.sg-private-dark .sg-gsc-chart .sg-gsc-gridline { stroke: #354638; }
body.sg-private-dark .sg-gsc-report .sg-gsc-opportunity-controls select {
    border-color: #354a39;
    background: #111a13;
    color: #e6efe8;
}
body.sg-private-dark .sg-settings-panel :is(.sg-identity-settings-row,
    .sg-settings-credential,.sg-gsc-property,.sg-audit-sound-setting,
    .sg-settings-guide,.sg-settings-security-note,.sg-gsc-connected) {
    border-color: #344a38;
    background: var(--sg-surface-2);
    color: #dce8de;
}
body.sg-private-dark .sg-settings-guide ol,
body.sg-private-dark .sg-settings-guide p,
body.sg-private-dark .sg-settings-description,
body.sg-private-dark .sg-identity-settings-row p,
body.sg-private-dark .sg-identity-password-note,
body.sg-private-dark .sg-settings-security-note,
body.sg-private-dark .sg-settings-credential-copy p,
body.sg-private-dark .sg-gsc-connected p,
body.sg-private-dark .sg-gsc-property-help { color: #b5c3b7; }
body.sg-private-dark .sg-gsc-message {
    border-color: #49634d;
    background: #142118;
    color: #d8ebdc;
}
body.sg-private-dark .sg-gsc-message-error {
    border-color: #784443;
    background: #3c292d;
    color: #ffb2a9;
}
body.sg-private-dark .sg-gsc-message-warning {
    border-color: #7b6538;
    background: #3d3724;
    color: #f0d891;
}
body.sg-private-dark .sg-gsc-property-form fieldset { border-color: #354b39; }
body.sg-private-dark .sg-gsc-property-form legend,
body.sg-private-dark .sg-gsc-property strong { color: #e6efe8; }
body.sg-private-dark .sg-gsc-property small { color: #a6b2a8; }
body.sg-private-dark .sg-contact-form input:not([type="checkbox"]):not([type="radio"]):not([type="file"]),
body.sg-private-dark .sg-contact-form textarea,
body.sg-private-dark .agency-copy-row input {
    border-color: #354a39;
    background: #080d09;
    color: #e6efe8;
}
body.sg-private-dark .sg-contact-form input:not([type="checkbox"]):not([type="radio"]):not([type="file"])[readonly] {
    border-color: #354a39;
    background: #111a13;
    color: #dce8de;
}
body.sg-private-dark .sg-contact-form input:focus-visible,
body.sg-private-dark .sg-contact-form textarea:focus-visible {
    border-color: #75c68b;
    outline-color: rgba(117,198,139,.42);
}
body.sg-private-dark .sg-contact-aside-note { border-color: #354b39; }
body.sg-private-dark .sg-contact-aside-note span { color: #a6b2a8; }
body.sg-private-dark .sg-contact-aside-note strong { color: #e6efe8; }
body.sg-private-dark .sg-contact-aside-back a,
body.sg-private-dark .sg-contact-aside-back a:hover { color: #96d9a5; }
body.sg-private-dark .sg-billing-status,
body.sg-private-dark .sg-plan-card,
body.sg-private-dark .sg-usage-panel {
    border-color: #344a38;
    background: #0b110d;
}
body.sg-private-dark .sg-plan-description,
body.sg-private-dark .sg-plan-note,
body.sg-private-dark .sg-billing-status p:last-child,
body.sg-private-dark .sg-usage-description { color: #a6b2a8; }
body.sg-private-dark .sg-plan-entitlements li,
body.sg-private-dark .sg-upcoming-invoice-breakdown li { color: #d1dfd4; }
body.sg-private-dark .sg-plan-entitlements li::marker { color: #8fc39a; }
body.sg-private-dark .sg-upcoming-invoice-breakdown { border-color: #354b39; }
body.sg-private-dark .sg-upcoming-invoice-breakdown strong { color: #e6efe8; }
body.sg-private-dark .sg-usage-table th,
body.sg-private-dark .sg-usage-table td,
body.sg-private-dark .sg-usage-table tr { border-color: #354b39; }
body.sg-private-dark .sg-usage-table th {
    background: #17251a;
    color: #dce8de;
}
body.sg-private-dark .sg-usage-table td { color: #dce8de; }
body.sg-private-dark .sg-usage-table td small,
body.sg-private-dark .sg-usage-table td::before,
body.sg-private-dark .sg-usage-table caption { color: #a6b2a8; }
body.sg-private-dark .sg-usage-table a { color: #96d9a5; }
body.sg-private-dark .sg-usage-table tbody tr:hover { background: #142118; }
body.sg-private-dark .sg-sample-charts {
    --sample-ink: #e6efe8;
    --sample-muted: #a6b2a8;
    --sample-line: #344a38;
    --sample-accent: #75d28c;
    border-color: #304436;
    background: linear-gradient(145deg,#0b110d 0%,#111a13 100%);
}
body.sg-private-dark .sg-sample-chart-card {
    border-color: #304436;
    background: #111a13;
}
body.sg-private-dark .sg-sample-gridline { stroke: #354638; }
body.sg-private-dark .sg-sample-axis { stroke: #718076; }
body.sg-private-dark .sg-sample-donut-track { stroke: #354638; }
body.sg-private-dark .sg-sample-score-point { fill: #111a13; }
body.sg-private-dark .sg-monitoring-actions {
    border-color: #344a38;
    background: linear-gradient(110deg,#0b110d,#111a13);
}
body.sg-private-dark .sg-monitoring-last-result,
body.sg-private-dark .sg-monitoring-comparison { border-color: #344a38; }
body.sg-private-dark .sg-monitoring-card .sg-step { color: #a6b2a8; }
body.sg-private-dark .sg-monitoring-heading h2,
body.sg-private-dark .sg-monitoring-status strong,
body.sg-private-dark .sg-monitoring-frequency-summary strong,
body.sg-private-dark .sg-monitoring-last-result strong { color: #e6efe8; }
body.sg-private-dark .sg-monitoring-pause {
    border-color: #3b5140;
    background: #111813;
    color: #d1dfd4;
}
body.sg-private-dark .sg-monitoring-pause:hover { background: #1b2b1e; }
body.sg-private-dark .sg-monitoring-compare-link { color: #96d9a5; }
body.sg-private-dark .agency-page {
    --agency-ink: #e6efe8;
    --agency-muted: #a6b2a8;
    --agency-line: #344a38;
    --agency-paper: #0b110d;
    --agency-wash: #111a13;
    --agency-accent: #efa064;
    color: #e6efe8;
}
body.sg-private-dark .agency-page :is(h1,h2,h3) { color: #e6efe8; }
body.sg-private-dark .agency-panel-head,
body.sg-private-dark .agency-client-row,
body.sg-private-dark .agency-site-row,
body.sg-private-dark .agency-active-link { border-color: #344a38; }
body.sg-private-dark .agency-panel-head p,
body.sg-private-dark .agency-client-stats,
body.sg-private-dark .agency-site-title small,
body.sg-private-dark .agency-empty,
body.sg-private-dark .agency-date { color: #a6b2a8; }
body.sg-private-dark .agency-field input[type=file]::file-selector-button {
    border-color: #354a39;
    background: #111813;
    color: #dce8de;
}
body.sg-private-dark .agency-button-quiet,
body.sg-private-dark .ex-button-secondary,
body.sg-private-dark .admin-secondary-button,
body.sg-private-dark .sg-history-clear,
body.sg-private-dark .ex-pagination a,
body.sg-private-dark .ex-pagination span,
body.sg-private-dark .admin-pagination a,
body.sg-private-dark .admin-pagination span {
    border-color: #35493a;
    background: #111813;
    color: #d1dfd4;
}
body.sg-private-dark .agency-button-quiet:hover,
body.sg-private-dark .ex-button-secondary:hover,
body.sg-private-dark .admin-secondary-button:hover {
    border-color: #5a8a63;
    background: #1b2b1e;
    color: #f0f8f1;
}
body.sg-private-dark .agency-brand-preview,
body.sg-private-dark .ex-stat,
body.sg-private-dark .ex-profile-card,
body.sg-private-dark .ex-form-card,
body.sg-private-dark .ex-preview-card,
body.sg-private-dark .ex-run-summary,
body.sg-private-dark .ex-result-card,
body.sg-private-dark .ex-run-list,
body.sg-private-dark .ex-empty {
    border-color: #344a38;
    background: var(--sg-surface-2);
}
body.sg-private-dark .ex-page {
    --ex-ink: #e6efe8;
    --ex-muted: #a6b2a8;
    --ex-line: #344a38;
    --ex-card: #0b110d;
    --ex-sand: #111a13;
    --ex-teal: #8fc39a;
    --ex-teal-dark: #a8ddb3;
    color: #e6efe8;
}
body.sg-private-dark .ex-profile-card:hover,
body.sg-private-dark .ex-run-row:hover { border-color: #49634d; background: #17251a; }
body.sg-private-dark .ex-run-row { border-color: #344a38; }
body.sg-private-dark .ex-run-link,
body.sg-private-dark .ex-result-source a { color: #96d9a5; }
body.sg-private-dark .ex-run-pill.status-running {
    border-color: #acd5b4;
    background: #e3f2e6;
    color: #285632;
}
body.sg-private-dark .ex-multi-export-bar {
    border-color: #344a38;
    background: #111a13;
}
body.sg-private-dark .ex-multi-export-bar p { color: #a6b2a8; }
body.sg-private-dark .ex-result-values > div { border-color: #344a38; }
body.sg-private-dark .admin-panel {
    border-color: #344a38;
    background: #0b110d;
}
body.sg-private-dark .admin-table th,
body.sg-private-dark .admin-table td,
body.sg-private-dark .admin-limits div,
body.sg-private-dark .admin-detail-list div { border-color: #344a38; }
body.sg-private-dark .admin-table th,
body.sg-private-dark .admin-limits dt,
body.sg-private-dark .admin-detail-list dt,
body.sg-private-dark .admin-finding dt { color: #a6b2a8; }
body.sg-private-dark .admin-table td,
body.sg-private-dark .admin-limits dd,
body.sg-private-dark .admin-detail-list dd { color: #dce8de; }
body.sg-private-dark .admin-trial-invite-form > label:first-child,
body.sg-private-dark .admin-trial-invite-confirm { color: #dce8de; }
body.sg-private-dark .admin-trial-invite-confirm input[type="checkbox"] { width: 1.1rem; min-width: 1.1rem; height: 1.1rem; padding: 0; border: 0; box-shadow: none; }
body.sg-private-dark .admin-trial-invite-fields input {
    border-color: #354a39;
    background-color: #080d09;
    color: #e6efe8;
}
body.sg-private-dark .admin-trial-invite-fields .admin-trial-invite-submit { border-color: #207a43; background: #207a43; color: #fff; }
body.sg-private-dark .admin-trial-invite-fields .admin-trial-invite-submit:hover { border-color: #2b8c50; background: #2b8c50; color: #fff; }
body.sg-private-dark .admin-trial-invite-success {
    border-color: #75c58d;
    background: #112118;
    color: #c9efd2;
}
body.sg-private-dark .admin-view-link,
body.sg-private-dark .admin-back a { color: #96d9a5; }
body.sg-private-dark .admin-plan-change-actions .admin-secondary-button {
    border-color: #35493a;
    background: #111813;
    color: #dce8de;
}
body.sg-private-dark .admin-plan-change-actions .admin-secondary-button:hover {
    border-color: #5a8a63;
    background: #1b2b1e;
    color: #f0f8f1;
}
body.sg-private-dark.sg-auth-dashboard {
    --audit-paper: #000000;
    --audit-surface: #0b110d;
    --audit-line: #2d4032;
    --audit-ink: #e6efe8;
    --audit-muted: #a6b2a8;
}
body.sg-private-dark.sg-auth-dashboard .sg-overview-strip {
    background: transparent;
    background-image: none;
}
body.sg-private-dark.sg-auth-dashboard .sg-overview-metrics > div {
    border-color: #344a38;
    background: #17251a;
}
body.sg-private-dark.sg-auth-dashboard .sg-overview-metrics dt { color: #a6b2a8; }
body.sg-private-dark.sg-auth-dashboard .sg-overview-metrics dd { color: #e6efe8; }
body.sg-private-dark.sg-auth-report .sg-pagespeed-flash:not(.sg-pagespeed-flash--error) {
    border-color: #4b7654;
    background: #142118;
    color: #d8ebdc;
}
body.sg-private-dark.sg-auth-dashboard .sg-start-panel {
    border-color:#303733;
    background:#151816;
    background-image:none;
    color:#f0f2f0;
}
body.sg-private-dark.sg-auth-dashboard .sg-start-panel .sg-panel-heading {
    border-color:#303733;
}
body.sg-private-dark.sg-auth-dashboard .sg-start-panel .sg-panel-heading h2,
body.sg-private-dark.sg-auth-dashboard .sg-start-panel .sg-form label {
    color:#f0f2f0;
}
body.sg-private-dark.sg-auth-dashboard .sg-start-panel .sg-step,
body.sg-private-dark.sg-auth-dashboard .sg-start-panel .sg-field-topline > span,
body.sg-private-dark.sg-auth-dashboard .sg-start-panel .sg-field-hint,
body.sg-private-dark.sg-auth-dashboard .sg-start-panel .sg-submit-row > span {
    color:#b7c0b9;
}
body.sg-private-dark.sg-auth-dashboard .sg-start-panel input:not([type="checkbox"]):not([type="radio"]):not([type="file"]),
body.sg-private-dark.sg-auth-dashboard .sg-start-panel input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):hover {
    border-color:#3b403c;
    background:#0b110d;
    color:#e6efe8;
}
body.sg-private-dark.sg-auth-dashboard .sg-start-panel input::placeholder { color:#a3b5a6; }
body.sg-private-dark.sg-auth-dashboard .sg-start-panel input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):focus-visible {
    border-color:#c58b5e;
    outline:3px solid rgba(197,139,94,.28);
    outline-offset:2px;
}
body.sg-private-dark.sg-auth-dashboard .sg-start-panel .sg-input-wrap svg { color:#b7c0b9; }
body.sg-private-dark.sg-auth-dashboard .sg-start-panel .sg-submit-row {
    border-top-color:#303733;
}
body.sg-private-dark.sg-auth-dashboard .sg-start-panel .sg-submit-button {
    border-color:#000;
    background:#000;
    background-image:linear-gradient(135deg,#141914 0%,#030503 100%);
    box-shadow:none;
    color:#fff;
}
body.sg-private-dark.sg-auth-dashboard .sg-start-panel .sg-submit-button:hover {
    border-color:#171d19;
    background:#171d19;
    background-image:linear-gradient(135deg,#202820 0%,#101510 100%);
    box-shadow:0 4px 12px rgba(0,0,0,.22);
    color:#fff;
}

/* Muted, pastel-toned severity fills with consistently readable white labels. */
body.sg-private-dark .severity-critical,
body.sg-private-dark.sg-auth-report .severity-critical {
    border:0;
    background:#c13f4b;
    color:#fff;
}
body.sg-private-dark .severity-high,
body.sg-private-dark.sg-auth-report .severity-high {
    border:0;
    background:#c3542c;
    color:#fff;
}
body.sg-private-dark .severity-medium,
body.sg-private-dark.sg-auth-report .severity-medium {
    border:0;
    background:#8f6d00;
    color:#fff;
}
body.sg-private-dark .severity-low,
body.sg-private-dark.sg-auth-report .severity-low {
    border:0;
    background:#2d7f9f;
    color:#fff;
}

/* Monitoring frequency uses a light gradient in the shared form styles; remove it in dark mode. */
body.sg-private-dark .sg-monitoring-form .sg-select-trigger {
    border-color:#3d5944;
    background:#0a100c;
    color:#e6efe8;
    box-shadow:inset 0 1px rgba(255,255,255,.035);
}
body.sg-private-dark .sg-monitoring-form .sg-select-trigger:hover:not(:disabled),
body.sg-private-dark .sg-monitoring-form .sg-select-trigger[aria-expanded="true"] {
    border-color:#6da979;
    background:#142018;
    color:#f0f7f1;
}
body.sg-private-dark .sg-monitoring-form .sg-select-trigger:focus-visible {
    border-color:#a3d4aa;
    outline:3px solid rgba(123,201,135,.4);
    outline-offset:2px;
}

/* Extraction empty states and retention notices need stronger dark-mode contrast. */
body.sg-private-dark .ex-notice {
    border-color:#b98c51;
    background:#292014;
    color:#fff1d1;
    box-shadow:inset 0 1px 0 rgba(255,255,255,.04);
}
body.sg-private-dark .ex-notice p,
body.sg-private-dark .ex-notice > a {
    color:#f3d79f;
}
body.sg-private-dark .ex-notice-mark {
    border-color:#e6c27e;
    background:#f4e4c0;
    color:#563815;
    box-shadow:0 0 0 3px rgba(244,228,192,.12);
}
body.sg-private-dark .ex-empty {
    border:1px solid #4d7656;
    border-style:solid;
    background:#111b13;
    color:#f4f8f4;
}
body.sg-private-dark .ex-empty h3 {
    color:#f4f8f4;
}
body.sg-private-dark .ex-empty p,
body.sg-private-dark .ex-plan-note {
    color:#c3d1c6;
}
body.sg-private-dark .ex-empty-symbol {
    border-color:#9abea1;
    background:#e5f1e8;
    color:#145b30;
    box-shadow:0 4px 12px rgba(0,0,0,.18);
}
body.sg-private-dark .sg-monitoring-badge:not(.is-active),
body.sg-private-dark .sg-monitoring-badge.is-active {
    border-color:#fff;
    background:#000;
    color:#fff;
}
body.sg-private-dark.sg-auth-report .page-shell .summary-grid .stat-card,
body.sg-private-dark.sg-auth-report .page-shell .sg-overview-context-card {
    border-color:#3b403d;
    background:#1b1d1b;
}
body.sg-private-dark.sg-auth-report .sg-compare-picker select#compare-audit {
    border:1px solid rgba(255,255,255,.72);
    background-color:#000;
    background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none'%3E%3Cpath d='m5 7.5 5 5 5-5' stroke='%23cfd2cf' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    color:#f4f5f4;
    color-scheme:dark;
    box-shadow:inset 0 1px 0 rgba(255,255,255,.045);
    transition:background-color .16s ease,border-color .16s ease,box-shadow .16s ease;
}
body.sg-private-dark.sg-auth-report .sg-compare-picker select#compare-audit:hover:not(:disabled) {
    border-color:#fff;
    background-color:#0b0c0b;
    box-shadow:0 0 0 1px rgba(255,255,255,.09),0 4px 12px rgba(0,0,0,.2);
}
body.sg-private-dark.sg-auth-report .sg-compare-picker select#compare-audit:focus-visible {
    border-color:#fff;
    outline:2px solid rgba(255,255,255,.5);
    outline-offset:2px;
    box-shadow:0 0 0 4px rgba(255,255,255,.07);
}
body.sg-private-dark.sg-auth-report .sg-compare-picker select#compare-audit option {
    background:#050505;
    color:#f4f5f4;
}

@media (prefers-reduced-motion: reduce) {
    body.sg-private-dark.sg-auth-report .sg-compare-picker select#compare-audit {
        transition:none;
    }
}
body.sg-private-dark.sg-auth-report .sg-pagespeed .sg-pagespeed-state--error,
body.sg-private-dark.sg-auth-report .sg-pagespeed .sg-pagespeed-flash--error {
    border-color:#76514f;
    background:#a77b78;
    color:#231412;
}
body.sg-private-dark.sg-auth-report .sg-pagespeed .sg-pagespeed-status--failed {
    border-color:#76514f;
    background:#a77b78;
    color:#231412;
}

body.sg-private-dark.sg-auth-report .card.sg-ahrefs {
    --sg-ahrefs-ink: #fff1df;
    --sg-ahrefs-muted: #ffead3;
    --sg-ahrefs-line: #c17841;
    --sg-ahrefs-accent: #ffd09b;
    --sg-ahrefs-chart-surface: #513019;
    --sg-ahrefs-chart-surface-end: #513019;
    --sg-ahrefs-chart-track: #382316;
    --sg-ahrefs-chart-tick: rgb(255 241 223 / 40%);
    --sg-ahrefs-chart-marker-border: #fff1df;
    border-color: transparent;
    background: #9e5018;
    color: #fff1df;
}
body.sg-private-dark.sg-auth-report .sg-ahrefs :is(.sg-ahrefs-metrics > div,.sg-ahrefs-chart,.sg-ahrefs-empty) {
    border-color: var(--sg-ahrefs-line);
    background: var(--sg-ahrefs-chart-surface);
    color: var(--sg-ahrefs-ink);
}
body.sg-private-dark.sg-auth-report .sg-ahrefs .sg-ahrefs-metric-note { color: var(--sg-ahrefs-muted); }
body.sg-private-dark.sg-auth-report .card.sg-ahrefs :is(.eyebrow,.muted,.sg-ahrefs-action-note,
    .sg-ahrefs-unit-note,.sg-ahrefs-metrics small,.sg-ahrefs-footer,.sg-ahrefs-empty p),
body.sg-private-dark.sg-auth-report .card.sg-ahrefs .sg-ahrefs-heading-copy > p:last-child {
    color: var(--sg-ahrefs-muted);
}
body.sg-private-dark.sg-auth-report .card.sg-pagespeed {
    --sg-ps-ink: #f2f7fc;
    --sg-ps-muted: #d2e2f0;
    --sg-ps-line: #4b7192;
    --sg-ps-accent: #a5d0f6;
    --sg-ps-coral: #ffb2a5;
    border-color: transparent;
    background: #1b5f9e;
    color: #f2f7fc;
}
body.sg-private-dark.sg-auth-report .sg-pagespeed .sg-pagespeed-heading-copy > p:last-child,
body.sg-private-dark.sg-auth-report .sg-pagespeed .sg-pagespeed-action-note { color: #d2e2f0; }
body.sg-private-dark.sg-auth-report .sg-pagespeed :is(.sg-pagespeed-run,.sg-pagespeed-run-body,
    .sg-pagespeed-strategy,.sg-pagespeed-comparison,.sg-pagespeed-score,.sg-pagespeed-field,
    .sg-pagespeed-field-metrics > div,.sg-pagespeed-diagnostics li) {
    border-color: #4b7192;
    background: #173a58;
    color: #edf6ff;
}
body.sg-private-dark.sg-auth-report .sg-pagespeed .sg-pagespeed-run-summary {
    border-color: #4b7192;
    background: #2a557a;
    color: #f2f7fc;
}
body.sg-private-dark.sg-auth-report .sg-pagespeed :is(.sg-pagespeed-note,.sg-pagespeed-empty,.sg-pagespeed-state,.sg-pagespeed-unavailable) {
    border-color: #4b7192;
    background: #294f70;
    color: #e5f0fa;
}
body.sg-private-dark.sg-auth-report .sg-pagespeed .sg-pagespeed-note p,
body.sg-private-dark.sg-auth-report .sg-pagespeed .sg-pagespeed-empty p { color: #d6e7f5; }
body.sg-private-dark.sg-auth-report .sg-pagespeed .sg-pagespeed-empty-rule { background: #a5d0f6; }
body.sg-private-dark.sg-auth-report .card.sg-pagespeed :is(.eyebrow,.muted,.sg-pagespeed-comparison-legend) {
    color: var(--sg-ps-muted);
}
body.sg-private-dark.sg-auth-report .sg-pagespeed .sg-pagespeed-comparison-track {
    border-color: #547492;
    background: #102b43;
}
body.sg-private-dark.sg-auth-report .sg-pagespeed .sg-pagespeed-comparison-bar--current,
body.sg-private-dark.sg-auth-report .sg-pagespeed .sg-pagespeed-legend-current { background: #42d28a; }
body.sg-private-dark.sg-auth-report .sg-pagespeed .sg-pagespeed-comparison-bar--previous,
body.sg-private-dark.sg-auth-report .sg-pagespeed .sg-pagespeed-legend-previous { background: #70baff; }
body.sg-private-dark.sg-auth-report :is(.sg-ahrefs,.sg-pagespeed) .sg-report-action-button {
    border-color: #777;
    background: #000;
    color: #fff;
}
body.sg-private-dark.sg-auth-report :is(.sg-ahrefs,.sg-pagespeed) .sg-report-action-button:hover:not(:disabled) {
    border-color: #a5a5a5;
    background: #111;
    color: #fff;
}
body.sg-private-dark.sg-auth-report .card.sg-shopify-profile {
    border-color: transparent;
    background: #1c6237;
    color: #e9f4eb;
}
body.sg-private-dark.sg-auth-report .card.sg-shopify-profile .sg-report-action-button {
    border-color: #777;
    background: #000;
    color: #fff;
}
body.sg-private-dark.sg-auth-report .card.sg-shopify-profile .sg-report-action-button:hover:not(:disabled) {
    border-color: #a5a5a5;
    background: #111;
    color: #fff;
}
body.sg-private-dark.sg-auth-report .sg-shopify-profile :is(h2,h3,summary) { color: #eff9f0; }
body.sg-private-dark.sg-auth-report .sg-shopify-profile :is(.eyebrow,.muted) { color: #c2e0c8; }
body.sg-private-dark.sg-auth-report .sg-shopify-profile a { color: #b9e8c5; }
body.sg-private-dark.sg-auth-report .sg-running-audit-action-form[data-progress-async-form="pagespeed"] .sg-running-audit-action-button {
    border-color: #b2cbe0;
    background: #91b6d5;
    color: #17354c;
}
body.sg-private-dark.sg-auth-report .sg-running-audit-action-form[data-progress-async-form="pagespeed"] .sg-running-audit-action-button:hover:not(:disabled) {
    border-color: #c2d8e9;
    background: #a4c5de;
    color: #132f45;
}
body.sg-private-dark.sg-auth-report .sg-running-audit-action-form[data-progress-async-form="ahrefs"] .sg-running-audit-action-button {
    border-color: #f3cfaa;
    background: #edbb8b;
    color: #4a2f1d;
}
body.sg-private-dark.sg-auth-report .sg-running-audit-action-form[data-progress-async-form="ahrefs"] .sg-running-audit-action-button:hover:not(:disabled) {
    border-color: #f6d8b7;
    background: #f2c89e;
    color: #432818;
}
body.sg-private-dark.sg-auth-report .card.sg-pagespeed .sg-pagespeed-action .sg-report-action-button {
    border-color: #777;
    background: #000;
    color: #fff;
}
body.sg-private-dark.sg-auth-report .card.sg-pagespeed .sg-pagespeed-action .sg-report-action-button:hover:not(:disabled) {
    border-color: #a5a5a5;
    background: #111;
    color: #fff;
}
body.sg-private-dark.sg-auth-report .card.sg-ahrefs .sg-ahrefs-action .sg-report-action-button {
    border-color: #777;
    background: #000;
    color: #fff;
}
body.sg-private-dark.sg-auth-report .card.sg-ahrefs .sg-ahrefs-action .sg-report-action-button:hover:not(:disabled) {
    border-color: #a5a5a5;
    background: #111;
    color: #fff;
}

/* Sign-in pages can reuse the account's saved dark appearance. */
body.sg-private-dark .sg-login {
    --login-ink: #e6efe8;
    --login-muted: #aab9ad;
    border-color: var(--sg-dark-border-soft);
    background: var(--sg-dark-surface-base);
    box-shadow: 0 22px 60px rgba(0, 0, 0, .3);
}
body.sg-private-dark .sg-login-story {
    background: #111b13;
    color: var(--sg-dark-ink);
}
body.sg-private-dark .sg-login-story::before,
body.sg-private-dark .sg-login-story::after { border-color: rgba(194, 214, 199, .13); }
body.sg-private-dark .sg-login-kicker,
body.sg-private-dark .sg-login-lede,
body.sg-private-dark .sg-login-note p,
body.sg-private-dark .sg-login-index { color: #aebdb1; }
body.sg-private-dark .sg-login-story h1,
body.sg-private-dark .sg-login-note strong { color: #e6efe8; }
body.sg-private-dark .sg-login-index > span:first-child { color: #efa064; }
body.sg-private-dark .sg-login-index-rule { background: #526554; }
body.sg-private-dark .sg-login-note-line { background: #efa064; }
body.sg-private-dark .sg-login-orbit .sg-orbit-line { border-color: rgba(194, 214, 199, .22); }
body.sg-private-dark .sg-login-orbit .sg-orbit-dot { background: #efa064; }
body.sg-private-dark .sg-login-orbit .sg-orbit-dot--two { background: #8fc39a; }
body.sg-private-dark .sg-login-orbit .sg-orbit-core {
    border-color: #526554;
    background: rgba(17, 27, 19, .82);
    color: #c8d7cb;
}
body.sg-private-dark .sg-login-card { background: var(--sg-dark-surface-base); }
body.sg-private-dark .sg-login-card-heading .eyebrow { color: #efa064; }
body.sg-private-dark .sg-login-card-heading h2 { color: #e6efe8; }
body.sg-private-dark .sg-login-card .audit-form label > span { color: #c5d1c7; }
body.sg-private-dark .sg-login-card input:not([type="checkbox"]) {
    border-color: #3a4a3c;
    background: #080b09;
    color: #e6efe8;
    box-shadow: none;
}
body.sg-private-dark .sg-login-card input:not([type="checkbox"]):hover { border-color: #708b73; }
body.sg-private-dark .sg-login-card input:not([type="checkbox"]):focus-visible {
    border-color: #8fc39a;
    outline-color: rgba(143, 195, 154, .28);
    box-shadow: 0 0 0 1px rgba(143, 195, 154, .18);
}
body.sg-private-dark .sg-login-card .remember-label { color: #aebdb1; }
body.sg-private-dark .sg-login-card .remember-label input { accent-color: #8fc39a; }
body.sg-private-dark .sg-login-card .audit-form button {
    background: #237a43;
    color: #f5fbf6;
}
body.sg-private-dark .sg-login-card .audit-form button:hover { background: #2b8c50; }
body.sg-private-dark .sg-login-form-options > a,
body.sg-private-dark .sg-login-card .auth-switch a { color: #a8d7b1; }
body.sg-private-dark .sg-login-form-options > a:hover,
body.sg-private-dark .sg-login-card .auth-switch a:hover { color: #d1ead4; }
body.sg-private-dark .sg-login-card .auth-switch { color: #a7b5aa; }
body.sg-private-dark .sg-login-assurance {
    border-top-color: #344a38;
    color: #93a296;
}
body.sg-private-dark .sg-login-assurance span {
    background: #8fc39a;
    box-shadow: 0 0 0 3px #1a2b1d;
}

/* Keep dashboard button colors, but use a flatter treatment in dark mode. */
body.sg-private-dark.sg-auth-dashboard :is(button, input[type="button"], input[type="submit"], .sg-submit-button, .sg-history-link, .sg-monitoring-button, .sg-monitoring-pause),
body.sg-private-dark.sg-auth-dashboard :is(button, input[type="button"], input[type="submit"], .sg-submit-button, .sg-history-link, .sg-monitoring-button, .sg-monitoring-pause):hover {
    box-shadow: none;
}
