:root {
    --seo-theme-canvas:#f6f8fb;
    --seo-theme-surface:#fff;
    --seo-theme-raised:#f3f6fa;
    --seo-theme-border:#dce4eb;
    --seo-theme-ink:#1c2c3b;
    --seo-theme-muted:#526578;
    --seo-theme-link:#245bb1;
    --seo-theme-focus:#2d69c8;
}
:root[data-seo-theme=dark] {
    color-scheme:dark !important;
    --seo-theme-canvas:#101719;
    --seo-theme-surface:#182123;
    --seo-theme-raised:#202c2f;
    --seo-theme-border:#35474b;
    --seo-theme-ink:#e5eded;
    --seo-theme-muted:#aebfc2;
    --seo-theme-link:#9cc9fa;
    --seo-theme-focus:#85d3bb;
    --seo-theme-good:#8fe0ba;
    --seo-theme-warning:#f3c47d;
    --seo-theme-bad:#ffaaa4;
    --text-primary:var(--seo-theme-ink);
    --text-secondary:var(--seo-theme-muted);
    --text-muted:var(--seo-theme-muted);
    --text-medium:var(--seo-theme-muted);
    --text-dark:var(--seo-theme-ink);
    --bg-white:var(--seo-theme-surface);
    --background-white:var(--seo-theme-surface);
    --background-light:var(--seo-theme-canvas);
    --bg-subtle:var(--seo-theme-raised);
    --border-color:var(--seo-theme-border);
    background:var(--seo-theme-canvas);
    color:var(--seo-theme-ink);
}
:root[data-seo-theme=light] { color-scheme:light; }
:root[data-seo-theme-switching] :where(*, *::before, *::after){transition-property:none!important}
.seo-theme-picker{position:relative;flex:0 0 auto;line-height:1.35;letter-spacing:0}
.seo-theme-picker[hidden]{display:none!important}
.seo-theme-picker summary{display:grid;place-items:center;inline-size:38px;block-size:38px;border:1px solid var(--seo-theme-border);border-radius:6px;background:var(--seo-theme-surface);color:var(--seo-theme-muted);cursor:pointer;list-style:none}
.seo-theme-picker summary::-webkit-details-marker{display:none}
.seo-theme-picker summary::marker{content:""}
.seo-theme-picker summary:hover,.seo-theme-picker[open] summary{background:var(--seo-theme-raised);color:var(--seo-theme-ink)}
.seo-theme-picker summary:focus-visible,.seo-theme-picker label:focus-within{outline:2px solid var(--seo-theme-focus);outline-offset:2px}
.seo-theme-picker summary svg{width:18px;height:18px}
.seo-theme-picker .seo-theme-sun,:root[data-seo-theme=dark] .seo-theme-picker .seo-theme-moon{display:none}
:root[data-seo-theme=dark] .seo-theme-picker .seo-theme-sun{display:block}
.seo-theme-picker fieldset{position:absolute;inset:calc(100% + 8px) 0 auto auto;z-index:1200;min-width:9.7rem;width:max-content;max-width:calc(100vw - 24px);margin:0;padding:.48rem;border:1px solid var(--seo-theme-border);border-radius:8px;background:var(--seo-theme-surface);color:var(--seo-theme-ink);box-shadow:0 9px 24px #09171e2e;font:inherit}
.seo-theme-picker legend{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.seo-theme-picker label{display:flex;align-items:center;gap:.5rem;min-height:34px;padding:.22rem .38rem;border-radius:4px;font-size:.84rem;font-weight:500;cursor:pointer;white-space:nowrap}
.seo-theme-picker label:hover,.seo-theme-picker label:has(input:checked){background:var(--seo-theme-raised)}
.seo-theme-picker input[type=radio]{width:1rem;height:1rem;margin:0;flex:none;accent-color:var(--seo-theme-focus);cursor:pointer}
.audit-header-actions{display:flex;align-items:center;gap:.75rem;min-width:0}
.seo-audit-loading .seo-theme-picker summary{width:34px;height:34px}
#seo-tool-launcher i[data-feather=search]:empty{position:relative;display:block;width:17px;height:17px}
#seo-tool-launcher i[data-feather=search]:empty::before{content:"";position:absolute;top:1px;left:1px;width:10px;height:10px;border:1.6px solid currentColor;border-radius:50%;box-sizing:border-box}
#seo-tool-launcher i[data-feather=search]:empty::after{content:"";position:absolute;top:10px;left:10px;width:6px;height:1.6px;background:currentColor;border-radius:1px;transform:rotate(45deg);transform-origin:left center}

/* Keep shared chrome and key form surfaces correct before legacy page styles are adapted. */
:root[data-seo-theme=dark] body{background:var(--seo-theme-canvas)!important;color:var(--seo-theme-ink)!important}
:root[data-seo-theme=dark] :is(.site-wrapper,.seo-platform .main-content){background-color:var(--seo-theme-canvas)!important;color:var(--seo-theme-ink)}
:root[data-seo-theme=dark] :is(.site-header,.audit-header,.new-site-footer,.site-footer,.mobile-menu-panel,.dropdown-menu,.seo-palette,.dashboard-sidebar-desktop,.cookie-consent-banner){background:var(--seo-theme-surface)!important;color:var(--seo-theme-ink);border-color:var(--seo-theme-border)!important;box-shadow:none}
:root[data-seo-theme=dark] :is(.header-logo-text,.mobile-panel-header h4,.audit-brand,.seo-palette h2){color:var(--seo-theme-ink)!important}
:root[data-seo-theme=dark] :is(.site-header .header-logo-mark,.audit-brand img){background:#d6e5e9!important;padding:2px;border-radius:6px}
:root[data-seo-theme=dark] :is(.site-nav a,.site-nav .nav-tools-toggle,.dropdown-item,.seo-tool-list li>a,.new-site-footer a:not(.cta-button)){color:var(--seo-theme-ink)!important}
:root[data-seo-theme=dark] :is(.nav-cta-primary,.site-nav a.active,.dropdown-item:hover,.seo-tool-list li:hover){background:var(--seo-theme-raised)!important;color:var(--seo-theme-link)!important}
:root[data-seo-theme=dark] .nav-admin-link{background:#352a1c!important;color:#f3c47d!important}
:root[data-seo-theme=dark] :is(.seo-icon-button,.hamburger-menu,.close-menu,.lang-toggle,.btn-secondary){background:var(--seo-theme-surface)!important;color:var(--seo-theme-ink)!important;border-color:var(--seo-theme-border)!important}
:root[data-seo-theme=dark] :is(.seo-icon-button,.hamburger-menu,.close-menu,.lang-toggle,.btn-secondary):hover{background:var(--seo-theme-raised)!important}
:root[data-seo-theme=dark] :is(.seo-palette-header,.seo-palette-footer,.mobile-panel-header,.mobile-menu-divider,.new-site-footer .footer-divider){border-color:var(--seo-theme-border)!important}
:root[data-seo-theme=dark] :is(.seo-tool-copy small,.seo-palette-footer,.seo-tool-empty,.audit-back,.audit-brand-label){color:var(--seo-theme-muted)!important}
:root[data-seo-theme=dark] :is(input:not([type]),input[type=text],input[type=email],input[type=url],input[type=search],input[type=password],input[type=number],input[type=date],input[type=time],input[type=tel],select,textarea){background-color:var(--seo-theme-surface)!important;color:var(--seo-theme-ink)!important;border-color:var(--seo-theme-border)!important}
:root[data-seo-theme=dark] :is(input,textarea)::placeholder{color:var(--seo-theme-muted)!important;opacity:.86}
:root[data-seo-theme=dark] input:-webkit-autofill{-webkit-text-fill-color:var(--seo-theme-ink);box-shadow:0 0 0 100px var(--seo-theme-surface) inset}
:root[data-seo-theme=dark] :is(.seo-search-field,.seo-segmented,.seo-filter-row select){background:var(--seo-theme-raised)!important;border-color:var(--seo-theme-border)!important}
:root[data-seo-theme=dark] .seo-search-field input{background:transparent!important}
:root[data-seo-theme=dark] :is(a,button,summary,input,select,textarea):focus-visible{outline-color:var(--seo-theme-focus)}

:root[data-seo-theme=dark] :is(.home-renewal,.renewal-page,.renewal-scope,.renewal-faq,.contact-renewal .contact-main){background:var(--seo-theme-canvas)!important}
:root[data-seo-theme=dark] .renewal-stages{background:var(--seo-theme-surface)!important}
:root[data-seo-theme=dark] .renewal-cta{background:#d4f49d!important;border-color:#d4f49d!important;color:#163026!important}
:root[data-seo-theme=dark] .renewal-cta:hover{background:#c2e98b!important}
:root[data-seo-theme=dark] :is(.admin-console,.dashboard-page,.gt-wrap,.gt-page){background:var(--seo-theme-canvas)!important}
:root[data-seo-theme=dark] :is(.admin-console .admin-card,.admin-console .console-metric,.admin-console>.mobile-header,.bot-card,.lead-delivery-overview,.gt-card,.report-explorer,.report-progress-group){background:var(--seo-theme-surface)!important;color:var(--seo-theme-ink);border-color:var(--seo-theme-border)!important;box-shadow:none}
:root[data-seo-theme=dark] .admin-console{--console-ink:var(--seo-theme-ink);--console-muted:var(--seo-theme-muted);--console-line:var(--seo-theme-border);--console-accent:#a2e0ca}
:root[data-seo-theme=dark] :is(.admin-console .console-tabs a[aria-current],.admin-console .audit-feed-row:hover,.report-check-filters button[aria-pressed=true]){background:#243c37!important;color:#a2e0ca!important}
:root[data-seo-theme=dark] :is(.admin-console .console-week-track,.gt-chart,.gt-mini-chart,.gt-chart-shell,.gt-rank-plot){background-color:var(--seo-theme-raised)!important}
:root[data-seo-theme=dark] :is(.gt-chart,.gt-mini-chart,.gt-rank-plot){border-color:var(--seo-theme-border)!important;box-shadow:none!important}
:root[data-seo-theme=dark] .admin-console .score-badge.good{background:#203931!important;color:var(--seo-theme-good)!important}
:root[data-seo-theme=dark] .admin-console .score-badge.average{background:#273444!important;color:var(--seo-theme-link)!important}
:root[data-seo-theme=dark] .admin-console .score-badge.bad{background:#422829!important;color:var(--seo-theme-bad)!important}
:root[data-seo-theme=dark] .admin-console .console-week-track>span{background:#75b7a2!important}
:root[data-seo-theme=dark] .admin-console .console-week-bars .is-today .console-week-track>span{background:#a9e5ce!important}
:root[data-seo-theme=dark] :is(.gt-chart-grid,.gt-rank-gridline){stroke:#3e5157!important}
:root[data-seo-theme=dark] :is(.gt-chart-line,.gt-chart-point,.gt-chart-point.last){stroke:#a7adff!important}
:root[data-seo-theme=dark] .gt-chart-point{fill:var(--seo-theme-surface)!important}
:root[data-seo-theme=dark] :is(.audit-heading,.report-task-status,.report-status-good){color:var(--seo-theme-good)!important}
:root[data-seo-theme=dark] :is(.report-task-status[data-error],.report-status-bad){color:var(--seo-theme-bad)!important}
:root[data-seo-theme=dark] :is(.report-status-average,.report-status-skipped){color:var(--seo-theme-warning)!important}
:root[data-seo-theme=dark] .seo-audit-loading{--audit-text:var(--seo-theme-ink);--audit-muted:var(--seo-theme-muted);--audit-line:var(--seo-theme-border);--audit-accent:var(--seo-theme-link)}
@media(max-width:480px){.seo-theme-picker summary{inline-size:36px;block-size:36px}.audit-header-actions{gap:.55rem}}
@media print{.seo-theme-picker{display:none!important}}
