html[data-site-theme="light"] {
    color-scheme: light;
    --bg: #f4f7fb;
    --bg-soft: #eaf0f7;
    --panel: #ffffff;
    --panel-border: #d8e1ec;
    --text: #172235;
    --muted: #607086;
    --accent-soft: #e8f1ff;
    --error-bg: #fff1f2;
}

html[data-site-theme="dark"] {
    color-scheme: dark;
}

.site-notice {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin: 0 0 18px;
    border: 1px solid rgba(96, 165, 250, 0.34);
    border-radius: 8px;
    padding: 11px 13px;
    color: var(--text, #f8fafc);
    background: rgba(59, 130, 246, 0.12);
}

.site-notice[hidden] {
    display: none !important;
}

.site-notice-warning {
    border-color: rgba(245, 158, 11, 0.38);
    background: rgba(245, 158, 11, 0.12);
}

.site-notice-critical {
    border-color: rgba(248, 113, 113, 0.4);
    background: rgba(220, 38, 38, 0.13);
}

.site-notice-success {
    border-color: rgba(52, 211, 153, 0.36);
    background: rgba(16, 185, 129, 0.12);
}

.site-notice-beta {
    border-color: rgba(167, 139, 250, 0.4);
    background: rgba(139, 92, 246, 0.12);
}

.site-notice-copy {
    display: grid;
    gap: 2px;
    min-width: 0;
}

.site-notice-copy strong {
    color: inherit;
    font-size: 13px;
}

.site-notice-copy span {
    color: var(--muted, #b8c4d9);
    font-size: 12px;
    line-height: 1.45;
}

.site-notice-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 0 0 auto;
}

.site-notice-actions a {
    border: 1px solid rgba(96, 165, 250, 0.34);
    border-radius: 6px;
    padding: 6px 9px;
    color: inherit;
    background: rgba(255, 255, 255, 0.06);
    font-size: 12px;
    font-weight: 800;
    text-decoration: none;
}

.site-notice-actions button {
    display: inline-grid;
    width: 28px;
    height: 28px;
    min-width: 28px;
    min-height: 28px;
    place-items: center;
    border: 0;
    border-radius: 50%;
    padding: 0;
    color: inherit;
    background: transparent;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
}

html[data-site-theme="light"] .site-notice {
    color: #172235;
    background: #eaf2fa;
}

html[data-site-theme="light"] .site-notice-warning {
    background: #fef3c7;
}

html[data-site-theme="light"] .site-notice-critical {
    background: #fee2e2;
}

html[data-site-theme="light"] .site-notice-success {
    background: #dcfce7;
}

html[data-site-theme="light"] .site-notice-beta {
    background: #ede9fe;
}

.site-header-logo-light {
    display: none !important;
}

/* Recolor only the navy wordmark; retain the original blue mark and alpha. */
html[data-site-theme="dark"] .site-header-logo-dark.site-header-logo-wide,
html[data-site-theme="dark"] .site-header-logo-dark.footer-brand-logo-wide {
    filter: url(#adopsreport-dark-wordmark);
}

html[data-site-theme="light"] .site-header-logo-dark {
    display: none !important;
}

html[data-site-theme="light"] .site-header-logo-light {
    display: block !important;
}

.site-theme-toggle {
    display: inline-grid;
    width: 34px;
    height: 34px;
    min-width: 34px;
    min-height: 34px;
    place-items: center;
    align-self: center;
    border: 1px solid transparent;
    border-radius: 50%;
    padding: 0;
    color: var(--muted, #b8c4d9);
    background: transparent;
    box-shadow: none;
    font: inherit;
    line-height: 1;
    cursor: pointer;
    transition: color 0.16s ease, background 0.16s ease, border-color 0.16s ease;
}

.footer-powered {
    gap: 2px !important;
}

.footer-powered img {
    width: 28px !important;
    height: 28px !important;
}

.footer-brand-logo-wide {
    width: 190px !important;
    height: auto !important;
    max-width: 70vw;
    border-radius: 0 !important;
}

.site-theme-toggle:hover,
.site-theme-toggle:focus-visible {
    border-color: rgba(96, 112, 134, 0.24);
    color: var(--text, #f8fafc);
    background: rgba(96, 112, 134, 0.09);
    outline: none;
}

.site-theme-icon {
    grid-area: 1 / 1;
    font-family: "Segoe UI Symbol", "Arial Unicode MS", sans-serif;
    font-size: 18px;
    font-weight: 400;
}

html[data-site-theme="light"] .site-theme-icon-sun,
html[data-site-theme="dark"] .site-theme-icon-moon {
    display: none;
}

html[data-site-theme="light"] body {
    color: var(--text) !important;
    background: #f4f7fb !important;
}

html[data-site-theme="light"] h1,
html[data-site-theme="light"] h2,
html[data-site-theme="light"] h3,
html[data-site-theme="light"] h4,
html[data-site-theme="light"] .brand,
html[data-site-theme="light"] .brand-wordmark,
html[data-site-theme="light"] .site-header-brand,
html[data-site-theme="light"] .site-header-wordmark {
    color: var(--text) !important;
}

html[data-site-theme="light"] main p,
html[data-site-theme="light"] main li,
html[data-site-theme="light"] main label,
html[data-site-theme="light"] main dt,
html[data-site-theme="light"] main dd {
    color: var(--text);
}

html[data-site-theme="light"] main small {
    color: var(--muted);
}

html[data-site-theme="light"] .muted,
html[data-site-theme="light"] .lead,
html[data-site-theme="light"] .page-copy,
html[data-site-theme="light"] .section-copy,
html[data-site-theme="light"] .pricing-copy,
html[data-site-theme="light"] .helper-text,
html[data-site-theme="light"] .hint,
html[data-site-theme="light"] .eyebrow,
html[data-site-theme="light"] .kpi-label {
    color: var(--muted) !important;
}

html[data-site-theme="light"] .site-header-button:not(.site-header-primary),
html[data-site-theme="light"] .btn-secondary,
html[data-site-theme="light"] .button-link,
html[data-site-theme="light"] .secondary-button,
html[data-site-theme="light"] button:not(.site-header-primary):not(.btn):not(.primary-button):not(.button-danger):not(.site-theme-toggle) {
    border-color: #cfd9e6;
    color: var(--text);
    background: rgba(255, 255, 255, 0.78);
    box-shadow: none;
}

html[data-site-theme="light"] .site-header-primary,
html[data-site-theme="light"] .btn,
html[data-site-theme="light"] .primary-button {
    color: #ffffff;
}

html[data-site-theme="light"] form button[type="submit"]:not(.button-danger):not(.danger-button):not(.btn-secondary):not(.secondary-button):not(.ghost-button),
html[data-site-theme="light"] form input[type="submit"]:not(.button-danger):not(.danger-button):not(.btn-secondary):not(.secondary-button):not(.ghost-button) {
    border-color: transparent !important;
    color: #ffffff !important;
    background: linear-gradient(135deg, #2563eb 0%, #0284c7 100%) !important;
    box-shadow: 0 10px 24px rgba(37, 99, 235, 0.22) !important;
}

html[data-site-theme="light"] form button[type="submit"]:not(.button-danger):not(.danger-button):not(.btn-secondary):not(.secondary-button):not(.ghost-button):hover,
html[data-site-theme="light"] form input[type="submit"]:not(.button-danger):not(.danger-button):not(.btn-secondary):not(.secondary-button):not(.ghost-button):hover {
    background: linear-gradient(135deg, #1d4ed8 0%, #0369a1 100%) !important;
}

html[data-site-theme="light"] .site-header-dropdown-menu,
html[data-site-theme="light"] .nav-dropdown-menu {
    border-color: #d6e0eb;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 20px 48px rgba(31, 49, 75, 0.14);
}

html[data-site-theme="light"] .site-header-dropdown-title,
html[data-site-theme="light"] .nav-dropdown-title {
    color: #1d4ed8;
}

html[data-site-theme="light"] .site-header-dropdown-menu a,
html[data-site-theme="light"] .nav-dropdown-menu a,
html[data-site-theme="light"] .site-header-account-summary {
    color: var(--muted);
}

html[data-site-theme="light"] .site-header-dropdown-menu a:hover,
html[data-site-theme="light"] .site-header-dropdown-menu a:focus,
html[data-site-theme="light"] .nav-dropdown-menu a:hover,
html[data-site-theme="light"] .nav-dropdown-menu a:focus,
html[data-site-theme="light"] .site-header-account-summary {
    color: var(--text);
    background: #f1f5f9;
}

html[data-site-theme="light"] .site-header-account-summary strong {
    color: var(--text);
}

html[data-site-theme="light"] .site-header-account-plan {
    color: #1d4ed8;
    background: #e8f1ff;
}

html[data-site-theme="light"] :is(
    .panel,
    .section,
    .card,
    .content-card,
    .auth-card,
    .form-card,
    .upload-card,
    .pricing-card,
    .report-card,
    .feature-card,
    .info-card,
    .legal-card,
    .faq-item,
    .support-mini,
    .kpi-card,
    .billing-card,
    .profile-card,
    .benchmark-card,
    .basket-card
) {
    border-color: var(--panel-border) !important;
    background: var(--panel) !important;
    box-shadow: 0 12px 32px rgba(31, 49, 75, 0.07);
}

html[data-site-theme="light"] :is(input, select, textarea) {
    border-color: #cbd6e3 !important;
    color: var(--text) !important;
    background: #ffffff !important;
}

html[data-site-theme="light"] :is(input, textarea)::placeholder {
    color: #8795a8 !important;
}

html[data-site-theme="light"] :is(input, select, textarea):focus {
    border-color: #3b82f6 !important;
    outline: 3px solid rgba(59, 130, 246, 0.13);
}

html[data-site-theme="light"] .inline-info-button {
    border-color: #cbd6e3 !important;
    color: #36506f !important;
    background: #f1f5f9 !important;
}

html[data-site-theme="light"] .inline-info-box {
    border-color: #d6e0eb !important;
    color: var(--text) !important;
    background: #ffffff !important;
    box-shadow: 0 18px 34px rgba(31, 49, 75, 0.14) !important;
}

html[data-site-theme="light"] .logo-drop-zone,
html[data-site-theme="light"] .drop-zone {
    border-color: #b8c7d9 !important;
    color: var(--text) !important;
    background: rgba(255, 255, 255, 0.72) !important;
}

html[data-site-theme="light"] .logo-drop-zone:hover,
html[data-site-theme="light"] .drop-zone:hover {
    border-color: #60a5fa !important;
    background: #f0f7ff !important;
}

html[data-site-theme="light"] .logo-drop-zone.dragover,
html[data-site-theme="light"] .drop-zone.dragover {
    border-color: #2563eb !important;
    background: #e8f1ff !important;
}

html[data-site-theme="light"] table {
    color: var(--text);
    background: #ffffff;
}

html[data-site-theme="light"] th {
    border-color: #dbe3ed !important;
    color: #36506f !important;
    background: #eef3f8 !important;
}

html[data-site-theme="light"] td {
    border-color: #e3e9f1 !important;
}

html[data-site-theme="light"] tbody tr:hover td {
    background: #f8fafc;
}

html[data-site-theme="light"] details,
html[data-site-theme="light"] pre,
html[data-site-theme="light"] code,
html[data-site-theme="light"] .mono {
    color: #29415f;
}

html[data-site-theme="light"] .badge {
    color: #1d4ed8;
    background: #e8f1ff;
}

html[data-site-theme="light"] .badge.is-ok {
    color: #166534;
    background: #dcfce7;
}

html[data-site-theme="light"] .badge.is-warn {
    color: #854d0e;
    background: #fef3c7;
}

html[data-site-theme="light"] .badge.is-danger {
    color: #991b1b;
    background: #fee2e2;
}

html[data-site-theme="light"] .section-head,
html[data-site-theme="light"] .bulk-actions,
html[data-site-theme="light"] footer,
html[data-site-theme="light"] .footer {
    border-color: #dbe3ed !important;
}

html[data-site-theme="light"] footer,
html[data-site-theme="light"] .footer,
html[data-site-theme="light"] .site-footer,
html[data-site-theme="light"] .page-footer {
    border-color: #d8e1ec !important;
    color: #607086 !important;
    background: #ffffff !important;
    box-shadow: 0 12px 32px rgba(31, 49, 75, 0.06) !important;
}

html[data-site-theme="light"] footer a,
html[data-site-theme="light"] .footer a,
html[data-site-theme="light"] .site-footer a,
html[data-site-theme="light"] .page-footer a {
    color: #31577f !important;
}

html[data-site-theme="light"] .site-footer-title,
html[data-site-theme="light"] .footer-title,
html[data-site-theme="light"] .page-footer-title {
    color: #294b70 !important;
}

html[data-site-theme="light"] .pricing-kicker,
html[data-site-theme="light"] .pricing-price-note,
html[data-site-theme="light"] .pricing-list strong,
html[data-site-theme="light"] .plan-list strong {
    color: #285b91 !important;
}

html[data-site-theme="light"] body.account-page :is(
    p,
    li,
    .muted,
    .page-copy,
    .intro,
    .empty,
    .source,
    .account-plan-note,
    .meta-note,
    .search-empty,
    .share-modal-note,
    .bulk-actions-count,
    .report-group-count,
    .report-meta,
    .plan-list
) {
    color: #607086 !important;
}

html[data-site-theme="light"] body.account-page :is(
    label,
    .standard-value,
    .plan-price,
    .checkout-notice strong,
    .plan-expiry-notice strong
) {
    color: #172235 !important;
}

html[data-site-theme="light"] body.account-page :is(
    .standard-value span,
    .plan-kicker,
    .plan-list strong,
    .custom-active
) {
    color: #285b91 !important;
}

html[data-site-theme="light"] body.account-page .notice:not(.error) {
    color: #31577f !important;
}

html[data-site-theme="light"] body.account-page .notice.error,
html[data-site-theme="light"] body.account-page .errorlist {
    color: #991b1b !important;
}

html[data-site-theme="light"] body.account-page .meta a,
html[data-site-theme="light"] .page-card .section a {
    color: #31577f !important;
}

html[data-site-theme="light"] :is(
    a.secondary,
    button.secondary,
    .link-btn-secondary,
    body.admin-page .topbar-actions a,
    body.admin-page .support-tab
) {
    border-color: #b9cde2 !important;
    color: #31577f !important;
    background: #eaf2fa !important;
    background-image: none !important;
    box-shadow: none !important;
}

html[data-site-theme="light"] body.admin-page .support-tab.is-active {
    border-color: #8eafd1 !important;
    color: #214b74 !important;
    background: #dceaf7 !important;
}

html[data-site-theme="light"] body.admin-page .benchmark-country-toggle {
    color: #172235 !important;
    background: transparent !important;
}

html[data-site-theme="light"] body.admin-page .benchmark-country-group.is-review-due .benchmark-country-toggle {
    background: #fee2e2 !important;
}

html[data-site-theme="light"] body.admin-page .notice {
    border-color: #86efac !important;
    color: #166534 !important;
    background: #dcfce7 !important;
}

html[data-site-theme="light"] :is(.button-danger, button.danger) {
    border-color: #fecaca !important;
    color: #991b1b !important;
    background: #fee2e2 !important;
    background-image: none !important;
}

html[data-site-theme="light"] body.account-page .danger-button {
    border-color: #dc2626 !important;
    color: #ffffff !important;
    background: #dc2626 !important;
    background-image: none !important;
}

html[data-site-theme="light"] body.account-page form button[type="submit"].danger-button {
    border-color: #dc2626 !important;
    color: #ffffff !important;
    background: #dc2626 !important;
}

html[data-site-theme="light"] body.account-page .danger-button:hover,
html[data-site-theme="light"] body.account-page .danger-button:focus-visible {
    border-color: #b91c1c !important;
    background: #b91c1c !important;
}

html[data-site-theme="light"] .hero-pill {
    color: #31577f !important;
}

html[data-site-theme="light"] .pricing-actions .btn-secondary:not(.is-active-choice),
html[data-site-theme="light"] .pricing-tier:not(.is-featured) .pricing-tier-cta .btn-secondary,
html[data-site-theme="light"] .plan-actions .btn-secondary:not(.is-active-choice) {
    border-color: #b9cde2 !important;
    color: #31577f !important;
    background: #eaf2fa !important;
    box-shadow: none !important;
}

html[data-site-theme="light"] .pricing-actions .btn-secondary:not(.is-active-choice):hover,
html[data-site-theme="light"] .pricing-actions .btn-secondary:not(.is-active-choice):focus-visible,
html[data-site-theme="light"] .pricing-tier:not(.is-featured) .pricing-tier-cta .btn-secondary:hover,
html[data-site-theme="light"] .pricing-tier:not(.is-featured) .pricing-tier-cta .btn-secondary:focus-visible,
html[data-site-theme="light"] .plan-actions .btn-secondary:not(.is-active-choice):hover,
html[data-site-theme="light"] .plan-actions .btn-secondary:not(.is-active-choice):focus-visible {
    border-color: #8eafd1 !important;
    color: #214b74 !important;
    background: #dceaf7 !important;
}

html[data-site-theme="light"] .pricing-actions .is-active-choice,
html[data-site-theme="light"] .pricing-tier.is-featured .pricing-tier-cta .btn-secondary,
html[data-site-theme="light"] .plan-card.is-current .plan-actions .btn-secondary {
    border-color: transparent !important;
    color: #ffffff !important;
    background: linear-gradient(135deg, #2563eb 0%, #0284c7 100%) !important;
    box-shadow: 0 9px 22px rgba(37, 99, 235, 0.2) !important;
}

html[data-site-theme="light"] footer p,
html[data-site-theme="light"] footer strong,
html[data-site-theme="light"] .footer p,
html[data-site-theme="light"] .footer strong,
html[data-site-theme="light"] .site-footer p,
html[data-site-theme="light"] .site-footer strong,
html[data-site-theme="light"] .page-footer p,
html[data-site-theme="light"] .page-footer strong {
    color: inherit !important;
}

html[data-site-theme="light"] footer strong,
html[data-site-theme="light"] footer .brand,
html[data-site-theme="light"] footer .brand-wordmark,
html[data-site-theme="light"] .footer strong,
html[data-site-theme="light"] .site-footer strong,
html[data-site-theme="light"] .page-footer strong {
    color: #172235 !important;
}

html[data-site-theme="light"] .month-group-row td {
    color: #1e40af !important;
    background: #e8f1ff !important;
}

html[data-site-theme="light"] ::selection {
    color: #10213b;
    background: #bfdbfe;
}

@media (max-width: 640px) {
    .site-notice {
        align-items: flex-start;
    }

    .site-notice-actions a {
        display: none;
    }

    .site-theme-toggle {
        width: 32px;
        height: 32px;
        min-width: 32px;
        min-height: 32px;
    }
}
