/*
 * BresciaPC Dark Mode Contract - release 7.80.0
 * Late-loaded safety net shared by explicit toggle and OS preference.
 * Page modules should still use design tokens; these rules prevent residual
 * light surfaces, unreadable native controls and modal/table regressions.
 */

:root {
    color-scheme: light;
}

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

:root[data-theme="dark"],
:root[data-theme="dark"] body {
    background: var(--bspc-bg-light, #000);
    color: var(--bspc-text-primary, #f5f5f7);
}

:root[data-theme="dark"] :where(input, textarea, select),
:root[data-theme="dark"] :where(.select2-selection, .select2-dropdown, .choices__inner, .choices__list--dropdown) {
    color-scheme: dark;
    background-color: var(--bspc-input-bg, #2c2c2e);
    color: var(--bspc-text-primary, #f5f5f7);
    border-color: var(--bspc-border-medium, #48484a);
}

:root[data-theme="dark"] :where(input, textarea)::placeholder {
    color: var(--bspc-text-light, #86868b);
    opacity: 1;
}

:root[data-theme="dark"] :where(select option) {
    background: #1c1c1e;
    color: #f5f5f7;
}

:root[data-theme="dark"] :where(input, textarea, select):-webkit-autofill,
:root[data-theme="dark"] :where(input, textarea, select):-webkit-autofill:hover,
:root[data-theme="dark"] :where(input, textarea, select):-webkit-autofill:focus {
    -webkit-text-fill-color: #f5f5f7;
    -webkit-box-shadow: 0 0 0 1000px #2c2c2e inset;
    caret-color: #f5f5f7;
}

:root[data-theme="dark"] :where(dialog, [role="dialog"], .modal-content, .search-dialog-content, .mini-cart-panel, .mobile-menu-panel, .bpc-panel, .bpc-popover, .bpc-dropdown) {
    background-color: var(--bspc-modal-bg, #1c1c1e);
    color: var(--bspc-text-primary, #f5f5f7);
    border-color: var(--bspc-border-light, #38383a);
}

:root[data-theme="dark"] :where(.bpc-card, .bento-card, .apple-card, .apple-product-card, .bpc-card-unified, .woocommerce table.shop_table, .woocommerce form.checkout, .woocommerce form.login, .woocommerce form.register) {
    background-color: var(--bspc-card-bg, #1c1c1e);
    color: var(--bspc-text-primary, #f5f5f7);
    border-color: var(--bspc-card-border, #38383a);
}

:root[data-theme="dark"] :where(.woocommerce table.shop_table th, .woocommerce table.shop_table td, .woocommerce table.shop_table tbody th) {
    border-color: var(--bspc-border-light, #38383a);
}

:root[data-theme="dark"] :where(.woocommerce-info, .woocommerce-message, .woocommerce-error, .woocommerce-noreviews, .bpc-notice, .bpc-customer-notice) {
    color: var(--bspc-text-primary, #f5f5f7);
    border-color: var(--bspc-border-medium, #48484a);
}

:root[data-theme="dark"] :where(.tax-product_brand .brand-category-header, .tax-product_brand .category-faults-accordion__header, .tax-product_brand .category-faults-accordion__content) {
    background-color: #211c14;
    color: var(--bspc-text-primary, #f5f5f7);
    border-color: #5b4726;
}

:root[data-theme="dark"] :where(.bpc-diag-note--warn, .bka-warning-grid span) {
    background-color: var(--bspc-amber-soft, #2a1f0a);
    color: #ffd08a;
    border-color: var(--bspc-amber-warning, #F5A623);
}

:root[data-theme="dark"] :where(.bpc-diag-card__icon--blue, .bpc-diag-pricing__badge--blue) {
    background: var(--bspc-blue-soft, #0a1a2e);
}

:root[data-theme="dark"] :where(.bpc-diag-card__icon--green) {
    background: var(--bspc-green-soft, #0d2818);
}

:root[data-theme="dark"] :where(.bpc-diag-card__icon--red) {
    background: var(--bspc-red-soft, #2a0f0d);
}

:root[data-theme="dark"] :where(.bpc-diag-card__icon--orange, .bpc-diag-pricing__badge--orange) {
    background: var(--bspc-amber-soft, #2a1f0a);
    color: #ffd08a;
}

:root[data-theme="dark"] :where(hr, .separator, .divider) {
    border-color: var(--bspc-border-light, #38383a);
}

:root[data-theme="dark"] ::selection {
    background: rgba(41, 151, 255, .35);
    color: #fff;
}

:root[data-theme="dark"] {
    scrollbar-color: #636366 #1c1c1e;
}

@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]),
    :root:not([data-theme="light"]) body {
        color-scheme: dark;
        background: var(--bspc-bg-light, #000);
        color: var(--bspc-text-primary, #f5f5f7);
    }

    :root:not([data-theme="light"]) :where(input, textarea, select),
    :root:not([data-theme="light"]) :where(.select2-selection, .select2-dropdown, .choices__inner, .choices__list--dropdown) {
        color-scheme: dark;
        background-color: var(--bspc-input-bg, #2c2c2e);
        color: var(--bspc-text-primary, #f5f5f7);
        border-color: var(--bspc-border-medium, #48484a);
    }

    :root:not([data-theme="light"]) :where(input, textarea)::placeholder {
        color: var(--bspc-text-light, #86868b);
        opacity: 1;
    }

    :root:not([data-theme="light"]) :where(select option) {
        background: #1c1c1e;
        color: #f5f5f7;
    }

    :root:not([data-theme="light"]) :where(input, textarea, select):-webkit-autofill,
    :root:not([data-theme="light"]) :where(input, textarea, select):-webkit-autofill:hover,
    :root:not([data-theme="light"]) :where(input, textarea, select):-webkit-autofill:focus {
        -webkit-text-fill-color: #f5f5f7;
        -webkit-box-shadow: 0 0 0 1000px #2c2c2e inset;
        caret-color: #f5f5f7;
    }

    :root:not([data-theme="light"]) :where(dialog, [role="dialog"], .modal-content, .search-dialog-content, .mini-cart-panel, .mobile-menu-panel, .bpc-panel, .bpc-popover, .bpc-dropdown) {
        background-color: var(--bspc-modal-bg, #1c1c1e);
        color: var(--bspc-text-primary, #f5f5f7);
        border-color: var(--bspc-border-light, #38383a);
    }

    :root:not([data-theme="light"]) :where(.bpc-card, .bento-card, .apple-card, .apple-product-card, .bpc-card-unified, .woocommerce table.shop_table, .woocommerce form.checkout, .woocommerce form.login, .woocommerce form.register) {
        background-color: var(--bspc-card-bg, #1c1c1e);
        color: var(--bspc-text-primary, #f5f5f7);
        border-color: var(--bspc-card-border, #38383a);
    }

    :root:not([data-theme="light"]) :where(.woocommerce table.shop_table th, .woocommerce table.shop_table td, .woocommerce table.shop_table tbody th) {
        border-color: var(--bspc-border-light, #38383a);
    }

    :root:not([data-theme="light"]) :where(.woocommerce-info, .woocommerce-message, .woocommerce-error, .woocommerce-noreviews, .bpc-notice, .bpc-customer-notice) {
        color: var(--bspc-text-primary, #f5f5f7);
        border-color: var(--bspc-border-medium, #48484a);
    }

    :root:not([data-theme="light"]) :where(.tax-product_brand .brand-category-header, .tax-product_brand .category-faults-accordion__header, .tax-product_brand .category-faults-accordion__content) {
        background-color: #211c14;
        color: var(--bspc-text-primary, #f5f5f7);
        border-color: #5b4726;
    }

    :root:not([data-theme="light"]) :where(.bpc-diag-note--warn, .bka-warning-grid span) {
        background-color: var(--bspc-amber-soft, #2a1f0a);
        color: #ffd08a;
        border-color: var(--bspc-amber-warning, #F5A623);
    }

    :root:not([data-theme="light"]) :where(.bpc-diag-card__icon--blue, .bpc-diag-pricing__badge--blue) {
        background: var(--bspc-blue-soft, #0a1a2e);
    }

    :root:not([data-theme="light"]) :where(.bpc-diag-card__icon--green) {
        background: var(--bspc-green-soft, #0d2818);
    }

    :root:not([data-theme="light"]) :where(.bpc-diag-card__icon--red) {
        background: var(--bspc-red-soft, #2a0f0d);
    }

    :root:not([data-theme="light"]) :where(.bpc-diag-card__icon--orange, .bpc-diag-pricing__badge--orange) {
        background: var(--bspc-amber-soft, #2a1f0a);
        color: #ffd08a;
    }

    :root:not([data-theme="light"]) :where(hr, .separator, .divider) {
        border-color: var(--bspc-border-light, #38383a);
    }

    :root:not([data-theme="light"]) ::selection {
        background: rgba(41, 151, 255, .35);
        color: #fff;
    }

    :root:not([data-theme="light"]) {
        scrollbar-color: #636366 #1c1c1e;
    }
}


/* Modern header, mega-menu, drawer and search. */
:root[data-theme="dark"] #bresciapc-header.bpc-header-modern {
    --bpc-shell-blue: #64a9ff;
    --bpc-shell-blue-deep: #8ec5ff;
    --bpc-shell-ink: #f5f5f7;
    --bpc-shell-muted: #a7b1bf;
    --bpc-shell-line: #383f49;
    --bpc-shell-soft: #242a33;
    border-bottom-color: rgba(255, 255, 255, .08);
    background: rgba(8, 10, 13, .93);
    box-shadow: 0 1px 0 rgba(255, 255, 255, .025);
}
:root[data-theme="dark"] #bresciapc-header.bpc-header-modern.scrolled,
:root[data-theme="dark"] body.scrolled #bresciapc-header.bpc-header-modern {
    background: rgba(8, 10, 13, .98);
    box-shadow: 0 16px 42px rgba(0, 0, 0, .42);
}
:root[data-theme="dark"] #bresciapc-header.bpc-header-modern .header-logo__wordmark {
    filter: invert(1) grayscale(1) brightness(1.18) drop-shadow(0 0 1px rgba(255, 255, 255, .28));
    opacity: .94;
}
:root[data-theme="dark"] #bresciapc-header.bpc-header-modern .header-nav-desktop li.menu-item > a:hover,
:root[data-theme="dark"] #bresciapc-header.bpc-header-modern .header-nav-desktop li.menu-item > a:focus-visible,
:root[data-theme="dark"] #bresciapc-header.bpc-header-modern .header-nav-desktop li.current-menu-item > a,
:root[data-theme="dark"] #bresciapc-header.bpc-header-modern .bpc-simple-submenu li a:hover,
:root[data-theme="dark"] #bresciapc-header.bpc-header-modern .bpc-simple-submenu li a:focus-visible {
    color: #a9d2ff;
    background: #172433;
}
:root[data-theme="dark"] #bresciapc-header.bpc-header-modern .header-nav-desktop .submenu,
:root[data-theme="dark"] #bresciapc-search-dialog .search-dialog-content {
    border-color: #384454;
    background: rgba(23, 27, 34, .99);
    color: #f5f5f7;
    box-shadow: 0 32px 100px rgba(0, 0, 0, .58), 0 6px 20px rgba(0, 0, 0, .28);
}
:root[data-theme="dark"] .bpc-repair-hub__header {
    border-color: #384454;
    background: linear-gradient(135deg, #151b23, #101923);
}
:root[data-theme="dark"] .bpc-repair-hub__search,
:root[data-theme="dark"] .bpc-repair-hub__item,
:root[data-theme="dark"] .bpc-repair-hub__aside a,
:root[data-theme="dark"] #bresciapc-search-dialog .search-form-container,
:root[data-theme="dark"] #bresciapc-search-dialog .bpc-search-browse__item,
:root[data-theme="dark"] #bresciapc-search-dialog .result-item {
    border-color: #3b4858;
    background: #20252d;
    color: #f5f5f7;
    box-shadow: none;
}
:root[data-theme="dark"] .bpc-repair-hub__item:hover,
:root[data-theme="dark"] .bpc-repair-hub__item:focus-visible,
:root[data-theme="dark"] #bresciapc-search-dialog .bpc-search-browse__item:hover,
:root[data-theme="dark"] #bresciapc-search-dialog .bpc-search-browse__item:focus-visible,
:root[data-theme="dark"] #bresciapc-search-dialog .result-item:hover,
:root[data-theme="dark"] #bresciapc-search-dialog .result-item:focus-visible {
    border-color: #5479a2;
    background: #273341;
}
:root[data-theme="dark"] .bpc-repair-hub__item-icon,
:root[data-theme="dark"] .bpc-repair-hub__aside a > span:first-child,
:root[data-theme="dark"] #bresciapc-search-dialog .bpc-search-browse__thumb,
:root[data-theme="dark"] #bresciapc-search-dialog .bpc-search-no-results > span {
    color: #8ec5ff;
    background: #0c2138;
}
:root[data-theme="dark"] .bpc-repair-hub__aside {
    border-color: #384454;
    background: #151a21;
}
:root[data-theme="dark"] #bresciapc-header.bpc-header-modern .bpc-header-status-link {
    border-color: #365878;
    color: #b9dcff;
    background: linear-gradient(180deg, #15283b, #102234);
    box-shadow: none;
}
:root[data-theme="dark"] #bresciapc-header.bpc-header-modern .bpc-header-status-link:hover,
:root[data-theme="dark"] #bresciapc-header.bpc-header-modern .bpc-header-status-link:focus-visible {
    border-color: #5688b8;
    color: #d9ecff;
    background: #1b334b;
}
:root[data-theme="dark"] #bresciapc-mobile-menu .mobile-menu-content {
    background: #11151b;
    color: #f5f5f7;
    box-shadow: 28px 0 90px rgba(0, 0, 0, .58);
}
:root[data-theme="dark"] #bresciapc-mobile-menu .mobile-menu-header {
    border-color: #343c47;
    background: rgba(24, 28, 34, .98);
}
:root[data-theme="dark"] #bresciapc-mobile-menu .dialog-close-button,
:root[data-theme="dark"] #bresciapc-mobile-menu .bpc-mobile-search-trigger,
:root[data-theme="dark"] #bresciapc-mobile-menu .bpc-mobile-theme-toggle,
:root[data-theme="dark"] #bresciapc-mobile-menu .bpc-mobile-catalog__item,
:root[data-theme="dark"] #bresciapc-mobile-menu .bpc-mobile-quick-grid a,
:root[data-theme="dark"] #bresciapc-mobile-menu .bpc-mobile-editorial {
    border-color: #37414d;
    background: #20252d;
    color: #f5f5f7;
    box-shadow: none;
}
:root[data-theme="dark"] #bresciapc-mobile-menu .bpc-mobile-theme-toggle:hover,
:root[data-theme="dark"] #bresciapc-mobile-menu .bpc-mobile-theme-toggle:focus-visible,
:root[data-theme="dark"] #bresciapc-mobile-menu .bpc-mobile-catalog__item:hover,
:root[data-theme="dark"] #bresciapc-mobile-menu .bpc-mobile-quick-grid a:hover {
    border-color: #5479a2;
    background: #273341;
}
:root[data-theme="dark"] #bresciapc-mobile-menu .bpc-mobile-theme-toggle__icon,
:root[data-theme="dark"] #bresciapc-mobile-menu .bpc-mobile-service-action__icon {
    color: #8ec5ff;
    background: #0c2138;
}
:root[data-theme="dark"] #bresciapc-mobile-menu .bpc-mobile-theme-toggle__state {
    color: #c9e3ff;
    background: #18314a;
}
:root[data-theme="dark"] #bresciapc-mobile-menu .bpc-mobile-service-action {
    border-color: #38506a;
    background: linear-gradient(145deg, #1d2835, #152536);
    color: #f5f5f7;
}
:root[data-theme="dark"] #bresciapc-mobile-menu .bpc-mobile-service-action--ship {
    border-color: #31594d;
    background: linear-gradient(145deg, #1a2b28, #142723);
}
:root[data-theme="dark"] #bresciapc-mobile-menu .bpc-mobile-service-action--ship .bpc-mobile-service-action__icon {
    color: #6fd5ac;
    background: #12352a;
}
:root[data-theme="dark"] #bresciapc-mobile-menu .bpc-mobile-catalog__all {
    border-color: #3c6388;
    color: #a9d2ff;
    background: #14273a;
}
:root[data-theme="dark"] #bresciapc-mobile-menu .bpc-mobile-editorial__group + .bpc-mobile-editorial__group,
:root[data-theme="dark"] #bresciapc-mobile-menu .bpc-mobile-editorial__children,
:root[data-theme="dark"] #bresciapc-mobile-menu .bpc-mobile-editorial__children a {
    border-color: #343e49;
}
:root[data-theme="dark"] #bresciapc-mobile-menu .bpc-mobile-editorial__children {
    background: #191f27;
}
:root[data-theme="dark"] #bresciapc-mobile-menu .bpc-mobile-editorial a {
    color: #f5f5f7;
}
:root[data-theme="dark"] #bresciapc-mobile-menu .bpc-mobile-editorial__children a {
    color: #c6d1de;
}
:root[data-theme="dark"] #bresciapc-mobile-menu .bpc-mobile-editorial a:hover,
:root[data-theme="dark"] #bresciapc-mobile-menu .bpc-mobile-editorial a:focus-visible,
:root[data-theme="dark"] #bresciapc-mobile-menu .bpc-mobile-editorial a[aria-current="page"] {
    color: #c9e3ff;
    background: #243344;
}
:root[data-theme="dark"] #bresciapc-search-dialog .dialog-close-button,
:root[data-theme="dark"] #bresciapc-search-dialog .chip,
:root[data-theme="dark"] #bresciapc-search-dialog .bpc-search-paths a,
:root[data-theme="dark"] #bresciapc-search-dialog .bpc-search-no-results {
    border-color: #3b4858;
    color: #c6d1de;
    background: #20252d;
}
:root[data-theme="dark"] #bresciapc-search-dialog .search-dialog-input,
:root[data-theme="dark"] #bresciapc-search-dialog .bpc-search-head__title,
:root[data-theme="dark"] #bresciapc-search-dialog .result-title,
:root[data-theme="dark"] #bresciapc-search-dialog .bpc-search-no-results strong {
    color: #f5f5f7;
}
:root[data-theme="dark"] #bresciapc-search-dialog .result-image { background: #111820; }

/* Shared information, policy, FAQ and diagnosis surfaces. */
:root[data-theme="dark"] .bpc-info-wrapper,
:root[data-theme="dark"] .bpc-diag-wrapper {
    background: #0b0f14;
    color: #f5f5f7;
}
:root[data-theme="dark"] .bpc-info-mesh,
:root[data-theme="dark"] .bpc-diag-mesh { opacity: .78; }
:root[data-theme="dark"] .bpc-info-badge,
:root[data-theme="dark"] .bpc-info-card,
:root[data-theme="dark"] .bpc-info-content__card,
:root[data-theme="dark"] .faq-wrapper,
:root[data-theme="dark"] .info-faq-section {
    border-color: #394451;
    background: rgba(25, 29, 36, .94);
    color: #f5f5f7;
    box-shadow: 0 18px 44px rgba(0, 0, 0, .28);
}
:root[data-theme="dark"] .bpc-info-meta { color: #9ba8b8; }
:root[data-theme="dark"] .bpc-prose blockquote {
    border-color: #3f78b7;
    background: #10243a;
}
:root[data-theme="dark"] .bpc-prose hr { border-color: #394451; }
:root[data-theme="dark"] .bpc-info-cta__card {
    border-color: #3c4c5e;
    background: linear-gradient(135deg, #10243a, #10281f);
    box-shadow: 0 18px 44px rgba(0, 0, 0, .26);
}
:root[data-theme="dark"] .bpc-btn-secondary {
    border-color: #465464;
    background: #20262f;
    color: #f5f5f7;
}
:root[data-theme="dark"] .bpc-btn-secondary:hover,
:root[data-theme="dark"] .bpc-btn-secondary:focus-visible {
    border-color: #5d7591;
    background: #293442;
}
:root[data-theme="dark"] .faq-category-card,
:root[data-theme="dark"] .faq-category-section .faq-item {
    border-color: #394451;
    background: #1b2027;
    color: #f5f5f7;
}
:root[data-theme="dark"] .faq-category-card:hover,
:root[data-theme="dark"] .faq-category-card:focus-visible,
:root[data-theme="dark"] .faq-category-card.active {
    border-color: #5d8fc4;
    background: #14283d;
    color: #9dcbff;
}
:root[data-theme="dark"] .bpc-diag-section--alt { background: rgba(25, 29, 36, .72); }
:root[data-theme="dark"] .bpc-diag-btn--secondary,
:root[data-theme="dark"] .bpc-diag-card,
:root[data-theme="dark"] .bpc-diag-pricing__card {
    border-color: #394451;
    background: #1b2027;
    color: #f5f5f7;
    box-shadow: 0 16px 40px rgba(0, 0, 0, .26);
}
:root[data-theme="dark"] .bpc-diag-card--highlight {
    border-top-color: #64a9ff;
    background: linear-gradient(135deg, #10243a, #1b2027 68%);
}
:root[data-theme="dark"] .bpc-diag-card--warn {
    border-top-color: #f5a623;
    background: linear-gradient(135deg, #2a1f0a, #1b2027 68%);
}

/* Product-brand archives keep their warm identity without light islands. */
:root[data-theme="dark"] .tax-product_brand .bpc-category-hero-immersive .bpc-hero-overlay {
    background: linear-gradient(to bottom, rgba(45, 34, 17, .78), rgba(24, 21, 17, .91) 62%, #0b0f14 100%);
}
:root[data-theme="dark"] .tax-product_brand .bpc-hero-title,
:root[data-theme="dark"] .tax-product_brand .brand-category-title { color: #fff1d1; }
:root[data-theme="dark"] .tax-product_brand .brand-category-subtitle { color: #d7c19b; }
:root[data-theme="dark"] .tax-product_brand .apple-card {
    border-color: #5b4726;
    background: #1c1a17;
}
:root[data-theme="dark"] .tax-product_brand .category-faults-accordion__item { border-color: #5b4726; }
:root[data-theme="dark"] .tax-product_brand .btn--outline:hover,
:root[data-theme="dark"] .tax-product_brand .btn--outline:focus {
    background: #35250e;
    color: #ffd28a;
}

/* Newsletter. */
:root[data-theme="dark"] .bpc-newsletter {
    --bpc-nl-ink: #f5f5f7;
    --bpc-nl-muted: #aab5c4;
    --bpc-nl-line: #3a4553;
    --bpc-nl-accent: #7bb8ff;
    --bpc-nl-soft: #10243b;
    color: var(--bpc-nl-ink);
    background: linear-gradient(135deg, #10151d 0%, #111a27 100%);
}
:root[data-theme="dark"] .bpc-newsletter__copy li {
    border-color: #3b4b60;
    background: rgba(33, 39, 48, .88);
    color: #d2dae5;
}
:root[data-theme="dark"] .bpc-newsletter__copy li::before { color: #6fd5ac; }
:root[data-theme="dark"] .bpc-newsletter__form {
    border-color: #3a4553;
    background: rgba(27, 31, 38, .96);
    box-shadow: 0 18px 44px rgba(0, 0, 0, .28);
}
:root[data-theme="dark"] .bpc-newsletter__email > span,
:root[data-theme="dark"] .bpc-newsletter__geo label > span,
:root[data-theme="dark"] .bpc-newsletter__preferences legend { color: #d2dae5; }
:root[data-theme="dark"] .bpc-newsletter__email input,
:root[data-theme="dark"] .bpc-newsletter__geo select,
:root[data-theme="dark"] .bpc-newsletter__geo input {
    border-color: #46515f;
    background: #22272f;
    color: #f5f5f7;
}
:root[data-theme="dark"] .bpc-newsletter__preferences fieldset { border-color: #3a4553; }
:root[data-theme="dark"] .bpc-newsletter__preferences > small,
:root[data-theme="dark"] .bpc-newsletter__form > small { color: #98a5b5; }
:root[data-theme="dark"] .bpc-newsletter-status {
    border-color: #315746;
    background: #12271d;
    color: #91e0b4;
}

/* WooCommerce confirmation page: coherent canvas, success state and details. */
:root[data-theme="dark"] body.woocommerce-order-received {
    background: #0b0f14 !important;
}
:root[data-theme="dark"] body.woocommerce-order-received .bpc-thankyou-unified-card,
:root[data-theme="dark"] body.woocommerce-order-received .woocommerce-order-overview,
:root[data-theme="dark"] body.woocommerce-order-received .bpc-tracking-cta,
:root[data-theme="dark"] body.woocommerce-order-received .woocommerce-order-details,
:root[data-theme="dark"] body.woocommerce-order-received .woocommerce-customer-details {
    border-color: #35404d;
    background: #111820;
    color: #f5f5f7;
    box-shadow: 0 16px 42px rgba(0, 0, 0, .32);
}
:root[data-theme="dark"] .bpc-ty-success-header {
    border-color: #315746;
    background: linear-gradient(135deg, #10291f 0%, #14291f 58%, #102238 100%);
    color: #dff8e9;
}
:root[data-theme="dark"] .bpc-ty-success-header .bpc-ty-icon {
    border-color: #376b50;
    background: #173529;
    color: #75dfa5;
    box-shadow: none;
}
:root[data-theme="dark"] .bpc-ty-eyebrow,
:root[data-theme="dark"] .bpc-ty-success-header .bpc-ty-appt-when { color: #8fe0b1; }
:root[data-theme="dark"] .bpc-ty-success-header h1 { color: #f4fff8; }
:root[data-theme="dark"] .bpc-ty-success-header p { color: #b8d4c3; }
:root[data-theme="dark"] .bpc-ty-mode {
    border-color: #3c7055;
    background: #173529;
    color: #a4efc1;
}
:root[data-theme="dark"] .bpc-ty-body { background: #111820; }
:root[data-theme="dark"] .bpc-ty-next li > span,
:root[data-theme="dark"] .bpc-ty-info-card__icon,
:root[data-theme="dark"] .bpc-tracking-cta__icon {
    color: #8ec5ff;
    background: #102a43;
}
:root[data-theme="dark"] .bpc-ty-backup { border-color: #35404d; }
:root[data-theme="dark"] body.woocommerce-order-received .woocommerce-order-overview li {
    color: #99a6b5;
    border-color: #35404d;
}
:root[data-theme="dark"] body.woocommerce-order-received .woocommerce-order-overview strong,
:root[data-theme="dark"] .woocommerce-order-details__title,
:root[data-theme="dark"] .woocommerce-column__title { color: #f5f5f7; }
:root[data-theme="dark"] body.woocommerce-order-received .woocommerce-order-details th,
:root[data-theme="dark"] body.woocommerce-order-received .woocommerce-order-details td {
    border-color: #35404d;
}
:root[data-theme="dark"] body.woocommerce-order-received .woocommerce-order-details thead th { color: #9aa7b7; }
:root[data-theme="dark"] body.woocommerce-order-received .woocommerce-order-details tbody td,
:root[data-theme="dark"] body.woocommerce-order-received .woocommerce-order-details tfoot,
:root[data-theme="dark"] body.woocommerce-order-received .woocommerce-customer-details address { color: #c5ced9; }

/* WooCommerce confirmation cards. */
:root[data-theme="dark"] body.woocommerce-order-received .woocommerce-order-details,
:root[data-theme="dark"] body.woocommerce-order-received .woocommerce-customer-details,
:root[data-theme="dark"] .bpc-ty-success-header .bpc-ty-icon,
:root[data-theme="dark"] .bpc-ty-info-card,
:root[data-theme="dark"] .bpc-thankyou-print-btn-outline {
    border-color: #3a4553;
    background: #1c2027;
    color: #f5f5f7;
}
:root[data-theme="dark"] .bpc-ty-success-header h1,
:root[data-theme="dark"] .bpc-ty-next li strong,
:root[data-theme="dark"] .bpc-ty-info-card h2,
:root[data-theme="dark"] .bpc-ty-lab-card strong,
:root[data-theme="dark"] .bpc-ty-backup summary,
:root[data-theme="dark"] .bpc-tracking-cta__copy strong { color: #f5f5f7; }
:root[data-theme="dark"] .bpc-ty-success-header p,
:root[data-theme="dark"] .bpc-ty-next li p,
:root[data-theme="dark"] .bpc-ty-info-card p,
:root[data-theme="dark"] .bpc-ty-lab-card p,
:root[data-theme="dark"] .bpc-ty-backup p,
:root[data-theme="dark"] .bpc-tracking-cta__copy span { color: #aab5c4; }
:root[data-theme="dark"] .bpc-ty-next li,
:root[data-theme="dark"] .bpc-ty-lab-card { border-color: #343d49; background: #171b21; }
:root[data-theme="dark"] .bpc-ty-lab-card span { color: #96a3b3; }
:root[data-theme="dark"] .bpc-thankyou-print-btn-outline:hover { color: #d9ecff; background: #253345; }
:root[data-theme="dark"] .bpc-tracking-cta__copy code { color: #b9dcff; background: #11283e; }

/* Repair tracking page and residual controls. */
:root[data-theme="dark"] body.bpc-repair-status-page {
    --bpc-track-ink: #f5f7fb;
    --bpc-track-muted: #aab7c7;
    --bpc-track-line: #35475c;
    background: #0b1119;
}
:root[data-theme="dark"] .bpc-tracking-lookup__hero {
    border-color: #35475c;
    background: radial-gradient(circle at 100% 0, rgba(50, 139, 239, .11), transparent 21rem), #121b27;
}
:root[data-theme="dark"] .bpc-tracking-lookup__control {
    border-color: #405268;
    background: #0f1722;
}
:root[data-theme="dark"] .bpc-tracking-lookup__error {
    border-color: #7f3936;
    color: #ffaaa5;
    background: #351817;
}
:root[data-theme="dark"] .bpc-ct-btn--ghost { color: #8ec5ff; background: #171b21; border-color: #5688b8; }
:root[data-theme="dark"] .bpc-ct-note { color: #b1bac6; }
:root[data-theme="dark"] .bpc-qb-badge { color: #ffd28a; background: #35250e; }


@media (prefers-color-scheme: dark) {

    /* Modern header, mega-menu, drawer and search. */
    :root:not([data-theme="light"]) #bresciapc-header.bpc-header-modern {
        --bpc-shell-blue: #64a9ff;
        --bpc-shell-blue-deep: #8ec5ff;
        --bpc-shell-ink: #f5f5f7;
        --bpc-shell-muted: #a7b1bf;
        --bpc-shell-line: #383f49;
        --bpc-shell-soft: #242a33;
        border-bottom-color: rgba(255, 255, 255, .08);
        background: rgba(8, 10, 13, .93);
        box-shadow: 0 1px 0 rgba(255, 255, 255, .025);
    }
    :root:not([data-theme="light"]) #bresciapc-header.bpc-header-modern.scrolled,
    :root:not([data-theme="light"]) body.scrolled #bresciapc-header.bpc-header-modern {
        background: rgba(8, 10, 13, .98);
        box-shadow: 0 16px 42px rgba(0, 0, 0, .42);
    }
    :root:not([data-theme="light"]) #bresciapc-header.bpc-header-modern .header-logo__wordmark {
        filter: invert(1) grayscale(1) brightness(1.18) drop-shadow(0 0 1px rgba(255, 255, 255, .28));
        opacity: .94;
    }
    :root:not([data-theme="light"]) #bresciapc-header.bpc-header-modern .header-nav-desktop li.menu-item > a:hover,
    :root:not([data-theme="light"]) #bresciapc-header.bpc-header-modern .header-nav-desktop li.menu-item > a:focus-visible,
    :root:not([data-theme="light"]) #bresciapc-header.bpc-header-modern .header-nav-desktop li.current-menu-item > a,
    :root:not([data-theme="light"]) #bresciapc-header.bpc-header-modern .bpc-simple-submenu li a:hover,
    :root:not([data-theme="light"]) #bresciapc-header.bpc-header-modern .bpc-simple-submenu li a:focus-visible {
        color: #a9d2ff;
        background: #172433;
    }
    :root:not([data-theme="light"]) #bresciapc-header.bpc-header-modern .header-nav-desktop .submenu,
    :root:not([data-theme="light"]) #bresciapc-search-dialog .search-dialog-content {
        border-color: #384454;
        background: rgba(23, 27, 34, .99);
        color: #f5f5f7;
        box-shadow: 0 32px 100px rgba(0, 0, 0, .58), 0 6px 20px rgba(0, 0, 0, .28);
    }
    :root:not([data-theme="light"]) .bpc-repair-hub__header {
        border-color: #384454;
        background: linear-gradient(135deg, #151b23, #101923);
    }
    :root:not([data-theme="light"]) .bpc-repair-hub__search,
    :root:not([data-theme="light"]) .bpc-repair-hub__item,
    :root:not([data-theme="light"]) .bpc-repair-hub__aside a,
    :root:not([data-theme="light"]) #bresciapc-search-dialog .search-form-container,
    :root:not([data-theme="light"]) #bresciapc-search-dialog .bpc-search-browse__item,
    :root:not([data-theme="light"]) #bresciapc-search-dialog .result-item {
        border-color: #3b4858;
        background: #20252d;
        color: #f5f5f7;
        box-shadow: none;
    }
    :root:not([data-theme="light"]) .bpc-repair-hub__item:hover,
    :root:not([data-theme="light"]) .bpc-repair-hub__item:focus-visible,
    :root:not([data-theme="light"]) #bresciapc-search-dialog .bpc-search-browse__item:hover,
    :root:not([data-theme="light"]) #bresciapc-search-dialog .bpc-search-browse__item:focus-visible,
    :root:not([data-theme="light"]) #bresciapc-search-dialog .result-item:hover,
    :root:not([data-theme="light"]) #bresciapc-search-dialog .result-item:focus-visible {
        border-color: #5479a2;
        background: #273341;
    }
    :root:not([data-theme="light"]) .bpc-repair-hub__item-icon,
    :root:not([data-theme="light"]) .bpc-repair-hub__aside a > span:first-child,
    :root:not([data-theme="light"]) #bresciapc-search-dialog .bpc-search-browse__thumb,
    :root:not([data-theme="light"]) #bresciapc-search-dialog .bpc-search-no-results > span {
        color: #8ec5ff;
        background: #0c2138;
    }
    :root:not([data-theme="light"]) .bpc-repair-hub__aside {
        border-color: #384454;
        background: #151a21;
    }
    :root:not([data-theme="light"]) #bresciapc-header.bpc-header-modern .bpc-header-status-link {
        border-color: #365878;
        color: #b9dcff;
        background: linear-gradient(180deg, #15283b, #102234);
        box-shadow: none;
    }
    :root:not([data-theme="light"]) #bresciapc-header.bpc-header-modern .bpc-header-status-link:hover,
    :root:not([data-theme="light"]) #bresciapc-header.bpc-header-modern .bpc-header-status-link:focus-visible {
        border-color: #5688b8;
        color: #d9ecff;
        background: #1b334b;
    }
    :root:not([data-theme="light"]) #bresciapc-mobile-menu .mobile-menu-content {
        background: #11151b;
        color: #f5f5f7;
        box-shadow: 28px 0 90px rgba(0, 0, 0, .58);
    }
    :root:not([data-theme="light"]) #bresciapc-mobile-menu .mobile-menu-header {
        border-color: #343c47;
        background: rgba(24, 28, 34, .98);
    }
    :root:not([data-theme="light"]) #bresciapc-mobile-menu .dialog-close-button,
    :root:not([data-theme="light"]) #bresciapc-mobile-menu .bpc-mobile-search-trigger,
    :root:not([data-theme="light"]) #bresciapc-mobile-menu .bpc-mobile-theme-toggle,
    :root:not([data-theme="light"]) #bresciapc-mobile-menu .bpc-mobile-catalog__item,
    :root:not([data-theme="light"]) #bresciapc-mobile-menu .bpc-mobile-quick-grid a,
    :root:not([data-theme="light"]) #bresciapc-mobile-menu .bpc-mobile-editorial {
        border-color: #37414d;
        background: #20252d;
        color: #f5f5f7;
        box-shadow: none;
    }
    :root:not([data-theme="light"]) #bresciapc-mobile-menu .bpc-mobile-theme-toggle:hover,
    :root:not([data-theme="light"]) #bresciapc-mobile-menu .bpc-mobile-theme-toggle:focus-visible,
    :root:not([data-theme="light"]) #bresciapc-mobile-menu .bpc-mobile-catalog__item:hover,
    :root:not([data-theme="light"]) #bresciapc-mobile-menu .bpc-mobile-quick-grid a:hover {
        border-color: #5479a2;
        background: #273341;
    }
    :root:not([data-theme="light"]) #bresciapc-mobile-menu .bpc-mobile-theme-toggle__icon,
    :root:not([data-theme="light"]) #bresciapc-mobile-menu .bpc-mobile-service-action__icon {
        color: #8ec5ff;
        background: #0c2138;
    }
    :root:not([data-theme="light"]) #bresciapc-mobile-menu .bpc-mobile-theme-toggle__state {
        color: #c9e3ff;
        background: #18314a;
    }
    :root:not([data-theme="light"]) #bresciapc-mobile-menu .bpc-mobile-service-action {
        border-color: #38506a;
        background: linear-gradient(145deg, #1d2835, #152536);
        color: #f5f5f7;
    }
    :root:not([data-theme="light"]) #bresciapc-mobile-menu .bpc-mobile-service-action--ship {
        border-color: #31594d;
        background: linear-gradient(145deg, #1a2b28, #142723);
    }
    :root:not([data-theme="light"]) #bresciapc-mobile-menu .bpc-mobile-service-action--ship .bpc-mobile-service-action__icon {
        color: #6fd5ac;
        background: #12352a;
    }
    :root:not([data-theme="light"]) #bresciapc-mobile-menu .bpc-mobile-catalog__all {
        border-color: #3c6388;
        color: #a9d2ff;
        background: #14273a;
    }
    :root:not([data-theme="light"]) #bresciapc-mobile-menu .bpc-mobile-editorial a {
        border-color: #343e49;
        color: #f5f5f7;
    }
    :root:not([data-theme="light"]) #bresciapc-search-dialog .dialog-close-button,
    :root:not([data-theme="light"]) #bresciapc-search-dialog .chip,
    :root:not([data-theme="light"]) #bresciapc-search-dialog .bpc-search-paths a,
    :root:not([data-theme="light"]) #bresciapc-search-dialog .bpc-search-no-results {
        border-color: #3b4858;
        color: #c6d1de;
        background: #20252d;
    }
    :root:not([data-theme="light"]) #bresciapc-search-dialog .search-dialog-input,
    :root:not([data-theme="light"]) #bresciapc-search-dialog .bpc-search-head__title,
    :root:not([data-theme="light"]) #bresciapc-search-dialog .result-title,
    :root:not([data-theme="light"]) #bresciapc-search-dialog .bpc-search-no-results strong {
        color: #f5f5f7;
    }
    :root:not([data-theme="light"]) #bresciapc-search-dialog .result-image { background: #111820; }

    /* Shared information, policy, FAQ and diagnosis surfaces. */
    :root:not([data-theme="light"]) .bpc-info-wrapper,
    :root:not([data-theme="light"]) .bpc-diag-wrapper {
        background: #0b0f14;
        color: #f5f5f7;
    }
    :root:not([data-theme="light"]) .bpc-info-mesh,
    :root:not([data-theme="light"]) .bpc-diag-mesh { opacity: .78; }
    :root:not([data-theme="light"]) .bpc-info-badge,
    :root:not([data-theme="light"]) .bpc-info-card,
    :root:not([data-theme="light"]) .bpc-info-content__card,
    :root:not([data-theme="light"]) .faq-wrapper,
    :root:not([data-theme="light"]) .info-faq-section {
        border-color: #394451;
        background: rgba(25, 29, 36, .94);
        color: #f5f5f7;
        box-shadow: 0 18px 44px rgba(0, 0, 0, .28);
    }
    :root:not([data-theme="light"]) .bpc-info-meta { color: #9ba8b8; }
    :root:not([data-theme="light"]) .bpc-prose blockquote {
        border-color: #3f78b7;
        background: #10243a;
    }
    :root:not([data-theme="light"]) .bpc-prose hr { border-color: #394451; }
    :root:not([data-theme="light"]) .bpc-info-cta__card {
        border-color: #3c4c5e;
        background: linear-gradient(135deg, #10243a, #10281f);
        box-shadow: 0 18px 44px rgba(0, 0, 0, .26);
    }
    :root:not([data-theme="light"]) .bpc-btn-secondary {
        border-color: #465464;
        background: #20262f;
        color: #f5f5f7;
    }
    :root:not([data-theme="light"]) .bpc-btn-secondary:hover,
    :root:not([data-theme="light"]) .bpc-btn-secondary:focus-visible {
        border-color: #5d7591;
        background: #293442;
    }
    :root:not([data-theme="light"]) .faq-category-card,
    :root:not([data-theme="light"]) .faq-category-section .faq-item {
        border-color: #394451;
        background: #1b2027;
        color: #f5f5f7;
    }
    :root:not([data-theme="light"]) .faq-category-card:hover,
    :root:not([data-theme="light"]) .faq-category-card:focus-visible,
    :root:not([data-theme="light"]) .faq-category-card.active {
        border-color: #5d8fc4;
        background: #14283d;
        color: #9dcbff;
    }
    :root:not([data-theme="light"]) .bpc-diag-section--alt { background: rgba(25, 29, 36, .72); }
    :root:not([data-theme="light"]) .bpc-diag-btn--secondary,
    :root:not([data-theme="light"]) .bpc-diag-card,
    :root:not([data-theme="light"]) .bpc-diag-pricing__card {
        border-color: #394451;
        background: #1b2027;
        color: #f5f5f7;
        box-shadow: 0 16px 40px rgba(0, 0, 0, .26);
    }
    :root:not([data-theme="light"]) .bpc-diag-card--highlight {
        border-top-color: #64a9ff;
        background: linear-gradient(135deg, #10243a, #1b2027 68%);
    }
    :root:not([data-theme="light"]) .bpc-diag-card--warn {
        border-top-color: #f5a623;
        background: linear-gradient(135deg, #2a1f0a, #1b2027 68%);
    }

    /* Product-brand archives keep their warm identity without light islands. */
    :root:not([data-theme="light"]) .tax-product_brand .bpc-category-hero-immersive .bpc-hero-overlay {
        background: linear-gradient(to bottom, rgba(45, 34, 17, .78), rgba(24, 21, 17, .91) 62%, #0b0f14 100%);
    }
    :root:not([data-theme="light"]) .tax-product_brand .bpc-hero-title,
    :root:not([data-theme="light"]) .tax-product_brand .brand-category-title { color: #fff1d1; }
    :root:not([data-theme="light"]) .tax-product_brand .brand-category-subtitle { color: #d7c19b; }
    :root:not([data-theme="light"]) .tax-product_brand .apple-card {
        border-color: #5b4726;
        background: #1c1a17;
    }
    :root:not([data-theme="light"]) .tax-product_brand .category-faults-accordion__item { border-color: #5b4726; }
    :root:not([data-theme="light"]) .tax-product_brand .btn--outline:hover,
    :root:not([data-theme="light"]) .tax-product_brand .btn--outline:focus {
        background: #35250e;
        color: #ffd28a;
    }

    /* Newsletter. */
    :root:not([data-theme="light"]) .bpc-newsletter {
        --bpc-nl-ink: #f5f5f7;
        --bpc-nl-muted: #aab5c4;
        --bpc-nl-line: #3a4553;
        --bpc-nl-accent: #7bb8ff;
        --bpc-nl-soft: #10243b;
        color: var(--bpc-nl-ink);
        background: linear-gradient(135deg, #10151d 0%, #111a27 100%);
    }
    :root:not([data-theme="light"]) .bpc-newsletter__copy li {
        border-color: #3b4b60;
        background: rgba(33, 39, 48, .88);
        color: #d2dae5;
    }
    :root:not([data-theme="light"]) .bpc-newsletter__copy li::before { color: #6fd5ac; }
    :root:not([data-theme="light"]) .bpc-newsletter__form {
        border-color: #3a4553;
        background: rgba(27, 31, 38, .96);
        box-shadow: 0 18px 44px rgba(0, 0, 0, .28);
    }
    :root:not([data-theme="light"]) .bpc-newsletter__email > span,
    :root:not([data-theme="light"]) .bpc-newsletter__geo label > span,
    :root:not([data-theme="light"]) .bpc-newsletter__preferences legend { color: #d2dae5; }
    :root:not([data-theme="light"]) .bpc-newsletter__email input,
    :root:not([data-theme="light"]) .bpc-newsletter__geo select,
    :root:not([data-theme="light"]) .bpc-newsletter__geo input {
        border-color: #46515f;
        background: #22272f;
        color: #f5f5f7;
    }
    :root:not([data-theme="light"]) .bpc-newsletter__preferences fieldset { border-color: #3a4553; }
    :root:not([data-theme="light"]) .bpc-newsletter__preferences > small,
    :root:not([data-theme="light"]) .bpc-newsletter__form > small { color: #98a5b5; }
    :root:not([data-theme="light"]) .bpc-newsletter-status {
        border-color: #315746;
        background: #12271d;
        color: #91e0b4;
    }

    /* WooCommerce confirmation page: coherent canvas, success state and details. */
    :root:not([data-theme="light"]) body.woocommerce-order-received {
        background: #0b0f14 !important;
    }
    :root:not([data-theme="light"]) body.woocommerce-order-received .bpc-thankyou-unified-card,
    :root:not([data-theme="light"]) body.woocommerce-order-received .woocommerce-order-overview,
    :root:not([data-theme="light"]) body.woocommerce-order-received .bpc-tracking-cta,
    :root:not([data-theme="light"]) body.woocommerce-order-received .woocommerce-order-details,
    :root:not([data-theme="light"]) body.woocommerce-order-received .woocommerce-customer-details {
        border-color: #35404d;
        background: #111820;
        color: #f5f5f7;
        box-shadow: 0 16px 42px rgba(0, 0, 0, .32);
    }
    :root:not([data-theme="light"]) .bpc-ty-success-header {
        border-color: #315746;
        background: linear-gradient(135deg, #10291f 0%, #14291f 58%, #102238 100%);
        color: #dff8e9;
    }
    :root:not([data-theme="light"]) .bpc-ty-success-header .bpc-ty-icon {
        border-color: #376b50;
        background: #173529;
        color: #75dfa5;
        box-shadow: none;
    }
    :root:not([data-theme="light"]) .bpc-ty-eyebrow,
    :root:not([data-theme="light"]) .bpc-ty-success-header .bpc-ty-appt-when { color: #8fe0b1; }
    :root:not([data-theme="light"]) .bpc-ty-success-header h1 { color: #f4fff8; }
    :root:not([data-theme="light"]) .bpc-ty-success-header p { color: #b8d4c3; }
    :root:not([data-theme="light"]) .bpc-ty-mode {
        border-color: #3c7055;
        background: #173529;
        color: #a4efc1;
    }
    :root:not([data-theme="light"]) .bpc-ty-body { background: #111820; }
    :root:not([data-theme="light"]) .bpc-ty-next li > span,
    :root:not([data-theme="light"]) .bpc-ty-info-card__icon,
    :root:not([data-theme="light"]) .bpc-tracking-cta__icon {
        color: #8ec5ff;
        background: #102a43;
    }
    :root:not([data-theme="light"]) .bpc-ty-backup { border-color: #35404d; }
    :root:not([data-theme="light"]) body.woocommerce-order-received .woocommerce-order-overview li {
        color: #99a6b5;
        border-color: #35404d;
    }
    :root:not([data-theme="light"]) body.woocommerce-order-received .woocommerce-order-overview strong,
    :root:not([data-theme="light"]) .woocommerce-order-details__title,
    :root:not([data-theme="light"]) .woocommerce-column__title { color: #f5f5f7; }
    :root:not([data-theme="light"]) body.woocommerce-order-received .woocommerce-order-details th,
    :root:not([data-theme="light"]) body.woocommerce-order-received .woocommerce-order-details td {
        border-color: #35404d;
    }
    :root:not([data-theme="light"]) body.woocommerce-order-received .woocommerce-order-details thead th { color: #9aa7b7; }
    :root:not([data-theme="light"]) body.woocommerce-order-received .woocommerce-order-details tbody td,
    :root:not([data-theme="light"]) body.woocommerce-order-received .woocommerce-order-details tfoot,
    :root:not([data-theme="light"]) body.woocommerce-order-received .woocommerce-customer-details address { color: #c5ced9; }

    /* WooCommerce confirmation cards. */
    :root:not([data-theme="light"]) body.woocommerce-order-received .woocommerce-order-details,
    :root:not([data-theme="light"]) body.woocommerce-order-received .woocommerce-customer-details,
    :root:not([data-theme="light"]) .bpc-ty-success-header .bpc-ty-icon,
    :root:not([data-theme="light"]) .bpc-ty-info-card,
    :root:not([data-theme="light"]) .bpc-thankyou-print-btn-outline {
        border-color: #3a4553;
        background: #1c2027;
        color: #f5f5f7;
    }
    :root:not([data-theme="light"]) .bpc-ty-success-header h1,
    :root:not([data-theme="light"]) .bpc-ty-next li strong,
    :root:not([data-theme="light"]) .bpc-ty-info-card h2,
    :root:not([data-theme="light"]) .bpc-ty-lab-card strong,
    :root:not([data-theme="light"]) .bpc-ty-backup summary,
    :root:not([data-theme="light"]) .bpc-tracking-cta__copy strong { color: #f5f5f7; }
    :root:not([data-theme="light"]) .bpc-ty-success-header p,
    :root:not([data-theme="light"]) .bpc-ty-next li p,
    :root:not([data-theme="light"]) .bpc-ty-info-card p,
    :root:not([data-theme="light"]) .bpc-ty-lab-card p,
    :root:not([data-theme="light"]) .bpc-ty-backup p,
    :root:not([data-theme="light"]) .bpc-tracking-cta__copy span { color: #aab5c4; }
    :root:not([data-theme="light"]) .bpc-ty-next li,
    :root:not([data-theme="light"]) .bpc-ty-lab-card { border-color: #343d49; background: #171b21; }
    :root:not([data-theme="light"]) .bpc-ty-lab-card span { color: #96a3b3; }
    :root:not([data-theme="light"]) .bpc-thankyou-print-btn-outline:hover { color: #d9ecff; background: #253345; }
    :root:not([data-theme="light"]) .bpc-tracking-cta__copy code { color: #b9dcff; background: #11283e; }

    /* Repair tracking page and residual controls. */
    :root:not([data-theme="light"]) body.bpc-repair-status-page {
        --bpc-track-ink: #f5f7fb;
        --bpc-track-muted: #aab7c7;
        --bpc-track-line: #35475c;
        background: #0b1119;
    }
    :root:not([data-theme="light"]) .bpc-tracking-lookup__hero {
        border-color: #35475c;
        background: radial-gradient(circle at 100% 0, rgba(50, 139, 239, .11), transparent 21rem), #121b27;
    }
    :root:not([data-theme="light"]) .bpc-tracking-lookup__control {
        border-color: #405268;
        background: #0f1722;
    }
    :root:not([data-theme="light"]) .bpc-tracking-lookup__error {
        border-color: #7f3936;
        color: #ffaaa5;
        background: #351817;
    }
    :root:not([data-theme="light"]) .bpc-ct-btn--ghost { color: #8ec5ff; background: #171b21; border-color: #5688b8; }
    :root:not([data-theme="light"]) .bpc-ct-note { color: #b1bac6; }
    :root:not([data-theme="light"]) .bpc-qb-badge { color: #ffd28a; background: #35250e; }

}

@media (forced-colors: active) {
    .bpc-theme-toggle,
    :where(button, a, input, select, textarea):focus-visible {
        outline: 2px solid CanvasText;
        outline-offset: 3px;
    }
}
