/* The browser preference applies to the site, including the shared display dialog. */
#dbm-settings-dialog .dbm-appearance-picker { margin: 12px 0 16px; }
#dbm-settings-dialog .dbm-appearance-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  margin-top: 7px;
  padding: 4px;
  border: 1px solid #c8dce9;
  border-radius: 12px;
  background: #e8f1f7;
}
#dbm-settings-dialog .dbm-appearance-option {
  position: relative;
  min-width: 0;
  cursor: pointer;
}
#dbm-settings-dialog .dbm-appearance-option input {
  position: absolute;
  inline-size: 1px;
  block-size: 1px;
  opacity: 0;
}
#dbm-settings-dialog .dbm-appearance-option span {
  display: grid;
  place-items: center;
  min-height: 38px;
  padding: 5px 8px;
  border: 1px solid transparent;
  border-radius: 8px;
  color: #183b58;
  font: 700 15px/1.35 system-ui, sans-serif;
}
#dbm-settings-dialog .dbm-appearance-option:hover span { background: #dce8f1; }
#dbm-settings-dialog .dbm-appearance-option input:checked + span {
  border-color: #9c74a9;
  background: #633783;
  color: #fff;
}
#dbm-settings-dialog .dbm-appearance-option input:focus-visible + span {
  outline: 2px solid #7e4191;
  outline-offset: 2px;
}

html[data-dbm-theme="dark"] {
  color-scheme: dark;
  --dbm-night-bg: #0c1726;
  --dbm-night-surface: #142438;
  --dbm-night-elevated: #1b3047;
  --dbm-night-field: #0f1c2d;
  --dbm-night-line: #455e76;
  --dbm-night-text: #eaf3ff;
  --dbm-night-muted: #b7cde0;
  --dbm-night-link: #8dddec;
  --dbm-night-focus: #eea8fb;
  --dbm-ink: var(--dbm-night-text);
  --dbm-blue: var(--dbm-night-link);
  --dbm-light: var(--dbm-night-surface);
  --dbm-line: var(--dbm-night-line);
  --wp--preset--color--ink: var(--dbm-night-text);
  --wp--preset--color--light: var(--dbm-night-surface);
  --wp--preset--color--line: var(--dbm-night-line);
  --dbm-flyer-light: linear-gradient(135deg,#102438,#153344 55%,#291d37);
  --dbm-flyer-paper: linear-gradient(140deg,#17263a,#192e40 58%,#2a213b);
  background: var(--dbm-night-bg);
}
html[data-dbm-theme="dark"] body {
  background: var(--dbm-night-bg);
  color: var(--dbm-night-text);
}
html[data-dbm-theme="dark"] :where(a,button,input,select,textarea,[tabindex]):focus-visible {
  outline-color: var(--dbm-night-focus);
}
html[data-dbm-theme="dark"] main > :is(h1.wp-block-post-title,h1.wp-block-query-title),
html[data-dbm-theme="dark"] body main.dbm-page-main > :is(h1.wp-block-post-title,h1.wp-block-query-title) {
  color: var(--dbm-night-text) !important;
}
html[data-dbm-theme="dark"] main :where(h1,h2,h3,h4,h5,h6,legend,summary) {
  color: inherit;
}
html[data-dbm-theme="dark"] main :where(a:not([class]),.dbm-copy-link,.wp-element-caption a) {
  color: var(--dbm-night-link);
}
html[data-dbm-theme="dark"] main :is(.wp-element-caption,.dbm-eyebrow,.dbm-kicker,.dbm-price-note,.wc-block-components-product-price__regular) {
  color: var(--dbm-night-muted);
}

/* Header, mobile navigation, and the settings surface. */
html[data-dbm-theme="dark"] header.dbm-header.dbm-navigation-v2,
html[data-dbm-theme="dark"] body header.dbm-header.dbm-navigation-v2 :is(.wp-block-navigation__submenu-container,.wp-block-navigation__responsive-container.is-menu-open,.dbm-nav-panel,.dbm-mobile-menu) {
  background: var(--dbm-night-surface) !important;
  color: var(--dbm-night-text) !important;
  border-color: var(--dbm-night-line) !important;
}
html[data-dbm-theme="dark"] header.dbm-header.dbm-navigation-v2 .dbm-logo-wordmark img {
  filter: brightness(0) invert(1);
}
html[data-dbm-theme="dark"] header.dbm-header.dbm-navigation-v2 .dbm-logo-decoration { filter: brightness(1.7); }
html[data-dbm-theme="dark"] header.dbm-header.dbm-navigation-v2 :is(#dbm-settings-toggle,.dbm-cart-link,.wp-block-navigation__responsive-container-open,.wp-block-navigation__responsive-container-close) {
  background: var(--dbm-night-elevated);
  color: var(--dbm-night-text);
  border-color: var(--dbm-night-line);
}
html[data-dbm-theme="dark"] header.dbm-header.dbm-navigation-v2 nav.dbm-main-navigation.dbm-nav-controller :is(.wp-block-navigation-item__content,.wp-block-navigation__submenu-icon) {
  color: var(--dbm-night-text);
}
html[data-dbm-theme="dark"] header.dbm-header.dbm-navigation-v2 nav.dbm-main-navigation.dbm-nav-controller .wp-block-navigation__submenu-container > li:not(.dbm-nav-overview,.dbm-nav-shop) > a.wp-block-navigation-item__content[href] {
  background: transparent !important;
  color: var(--dbm-night-text) !important;
  border-color: var(--dbm-night-line) !important;
}
html[data-dbm-theme="dark"] header.dbm-header.dbm-navigation-v2 nav.dbm-main-navigation.dbm-nav-controller .wp-block-navigation__submenu-container > li:not(.dbm-nav-overview,.dbm-nav-shop) > a.wp-block-navigation-item__content[href]:is(:hover,:focus-visible) {
  background: var(--dbm-night-elevated) !important;
}
html[data-dbm-theme="dark"] #dbm-settings-dialog {
  color-scheme: dark;
  background: var(--dbm-night-surface);
  color: var(--dbm-night-text);
  border-color: var(--dbm-night-line);
}
html[data-dbm-theme="dark"] #dbm-settings-dialog .dbm-settings-row {
  color: var(--dbm-night-text);
  border-color: var(--dbm-night-line);
}
html[data-dbm-theme="dark"] #dbm-settings-dialog .dbm-settings-row:has(input:disabled) { color: var(--dbm-night-muted); }
html[data-dbm-theme="dark"] #dbm-settings-dialog :is(#dbm-settings-close,.dbm-appearance-options) {
  background: var(--dbm-night-field);
  color: var(--dbm-night-text);
  border-color: var(--dbm-night-line);
}
html[data-dbm-theme="dark"] #dbm-settings-dialog .dbm-appearance-option input:not(:checked) + span { color: var(--dbm-night-text); }
html[data-dbm-theme="dark"] #dbm-settings-dialog .dbm-appearance-option:hover input:not(:checked) + span { background: var(--dbm-night-elevated); }
html[data-dbm-theme="dark"] #dbm-settings-dialog .dbm-appearance-option input:focus-visible + span { outline-color: var(--dbm-night-focus); }

/* Reuse the theme's flyer gradients on surfaces that already use them. */
html[data-dbm-theme="dark"] body :is(.dbm-page-main,.dbm-home-content,.dbm-copy-page,.dbm-method-page,.dbm-shop-redesign,.dbm-account-page,.dbm-help-hub,.dbm-lars-page,.dbm-visit-page) {
  background-color: var(--dbm-night-bg);
  color: var(--dbm-night-text);
}
html[data-dbm-theme="dark"] body main :is(
  .dbm-audience,.dbm-knowledge,.dbm-home-specials,.dbm-home-connect,.dbm-blog-home,.dbm-page-brand,
  .dbm-founder-story,.dbm-founder-story-card,.dbm-comic-card,
  .dbm-copy-section:not(.dbm-dark),.dbm-copy-card,.dbm-card,.dbm-audience-card,.dbm-special-card,.dbm-connect-panel,
  .dbm-method-overview,.dbm-method-hub-card,.dbm-method-card,.dbm-method-fit,.dbm-method-deep-card,.dbm-method-source,.dbm-method-sources,.dbm-method-model,
  .dbm-shop-nav,.dbm-shop-group-card,.dbm-shop-categories,.dbm-shop-section,.dbm-shop-note,.dbm-shop-info-grid > div,.wc-block-product,
  .dbm-account-panel,.dbm-account-overview > div,.dbm-unified-access,.dbm-login-method,.dbm-login-method-body,.dbm-email-entry,.dbm-password-fallback,
  .dbm-account-welcome,.dbm-account-newsletter,.dbm-account-newsletter-choice,.dbm-member-resources,
  .dbm-help-card,.dbm-help-scope,.dbm-help-sources,.dbm-contact-download,.dbm-download-folder,
  .dbm-visit-addresses,.dbm-visit-address,.dbm-functional-intro,.dbm-integration-placeholder,.dbm-checkout-unit,
  .dbm-product-summary,.dbm-product-visual,.dbm-product-appointment,.wp-block-woocommerce-product-details,
  #dbm-cart .woocommerce-cart-form,#dbm-cart .cart_totals,#dbm-cart .dbm-cart-next-options article,
  #dbm-checkout #customer_details,#dbm-checkout #payment,#dbm-checkout .payment_box
):not(.dbm-dark,.wp-block-cover,[style*="background-image"]) {
  background-color: var(--dbm-night-surface) !important;
  color: var(--dbm-night-text) !important;
  border-color: var(--dbm-night-line) !important;
}
html[data-dbm-theme="dark"] body main :is(.dbm-home-connect,.dbm-knowledge,.dbm-blog-home,.dbm-founder-story,.dbm-shop-nav,.dbm-shop-section,.dbm-login-method-body,.dbm-unified-access) {
  background-image: var(--dbm-flyer-light) !important;
}
html[data-dbm-theme="dark"] main .has-white-background-color {
  background-color: var(--dbm-night-surface) !important;
}
html[data-dbm-theme="dark"] main :is(.dbm-copy-page,.dbm-editorial-page,.dbm-method-page,.dbm-shop-redesign,.dbm-help-hub,.dbm-home-content,.woocommerce,.dbm-account-panel)
  :is(h1,h2,h3,h4,legend,summary,.dbm-price-stack,.dbm-price-gross,.dbm-price-note,.dbm-card-price,.dbm-flyer-eyebrow,.dbm-method-kicker,.dbm-cart-product-name,.dbm-cart-product-description,.dbm-special-price) {
  color: var(--dbm-night-text) !important;
}
html[data-dbm-theme="dark"] main .dbm-method-page {
  --method-ink: var(--dbm-night-text);
  --method-line: var(--dbm-night-line);
}
html[data-dbm-theme="dark"] body main :is(.dbm-home-content,.dbm-copy-page,.dbm-method-page,.dbm-shop-redesign,.dbm-account-panel,.dbm-help-hub,.woocommerce)
  :is(.dbm-card,.dbm-copy-card,.dbm-copy-section,.dbm-method-overview,.dbm-special-card,.dbm-connect-panel,.dbm-shop-group-card,.dbm-account-panel,.dbm-help-card,.dbm-price-stack) > :is(p,li,small,dl,.price) {
  color: var(--dbm-night-text) !important;
}

/* Native form surfaces. Hosted payment fields keep the provider's styling. */
html[data-dbm-theme="dark"] main :is(input:not([type=button],[type=submit],[type=reset],[type=checkbox],[type=radio],[type=range],[type=color],[type=file]), textarea, select, .select2-selection) {
  background: var(--dbm-night-field) !important;
  color: var(--dbm-night-text) !important;
  border-color: var(--dbm-night-line) !important;
}
html[data-dbm-theme="dark"] main :is(input,textarea)::placeholder { color: var(--dbm-night-muted); }
html[data-dbm-theme="dark"] main :is(.woocommerce-MyAccount-navigation a,.woocommerce-MyAccount-content table,.woocommerce-MyAccount-content th,.woocommerce-MyAccount-content td,.shop_table th,.shop_table td,.woocommerce-info,.woocommerce-message,.dbm-cart-visit-dialog,.dbm-cart-visit-dialog-head,.dbm-method-model-dialog,.dbm-model-dialog-head) {
  background-color: var(--dbm-night-elevated);
  color: var(--dbm-night-text);
  border-color: var(--dbm-night-line);
}
html[data-dbm-theme="dark"] body > .select2-container .select2-dropdown {
  background: var(--dbm-night-surface);
  color: var(--dbm-night-text);
  border-color: var(--dbm-night-line);
}


/* WordPress and WooCommerce render these panels on archive and account routes. */
html[data-dbm-theme="dark"] main :is(.dbm-blog-query .wp-block-post-template > li,.wp-block-post-template .dbm-post-card,.woocommerce-MyAccount-content .dbm-account-panel) {
  background: var(--dbm-flyer-paper);
  color: var(--dbm-night-text);
  border-color: var(--dbm-night-line);
}
html[data-dbm-theme="dark"] main :is(.woocommerce-MyAccount-navigation li:not(.is-active),.woocommerce-MyAccount-content .woocommerce-Address,.woocommerce-MyAccount-content .woocommerce-Address-title) {
  background: var(--dbm-night-surface);
  color: var(--dbm-night-text);
  border-color: var(--dbm-night-line);
}

/* Brand navigation labels and headline contrast on layered backgrounds. */
html[data-dbm-theme="dark"] header.dbm-header.dbm-navigation-v2 nav.dbm-main-navigation.dbm-nav-controller .wp-block-navigation-item__label {
  color: var(--dbm-night-text) !important;
}
html[data-dbm-theme="dark"] body.home .dbm-hero {
  background: radial-gradient(ellipse at 4% 86%,#00616d 0,transparent 46%),
    radial-gradient(ellipse at 98% 95%,#643779 0,transparent 41%),
    linear-gradient(115deg,#051d32,#06375a 58%,#15294b);
}
html[data-dbm-theme="dark"] body.home .dbm-hero .dbm-eyebrow { color: #a4eff2 !important; }
html[data-dbm-theme="dark"] main .cmplz-blocked-content-container .cmplz-blocked-content-notice {
  background: #482459 !important;
  color: #fff !important;
}

/* Editorial and catalogue styles with independently set light colors. */
html[data-dbm-theme="dark"] body main .dbm-method-page :is(.dbm-method-personal,.dbm-method-orientation,.dbm-method-deep-card) {
  background: var(--dbm-flyer-paper) !important;
  border-color: var(--dbm-night-line) !important;
  color: var(--dbm-night-text) !important;
}
html[data-dbm-theme="dark"] body main :is(.dbm-seo-page,.dbm-service-choice) :is(h1,h2,h3,h4,p,li) {
  color: var(--dbm-night-text) !important;
}
html[data-dbm-theme="dark"] body main .dbm-seo-page :is(.dbm-seo-card,.dbm-seo-box,.dbm-seo-index-grid > section) {
  background: var(--dbm-flyer-paper) !important;
  border-color: var(--dbm-night-line) !important;
}
html[data-dbm-theme="dark"] body main.dbm-shop-redesign
  :is(.dbm-shop-section,.dbm-shop-note,.dbm-shop-group-card,.wc-block-components-product-summary,.wc-block-product)
  :is(h2,h3,h4,p,li,.dbm-shop-title,.dbm-shop-kicker) {
  color: var(--dbm-night-text) !important;
}
html[data-dbm-theme="dark"] body main :is(.dbm-special-card,.dbm-price-stack)
  :is(.dbm-special-badge,.dbm-price-caption,.dbm-price-label) {
  color: var(--dbm-night-muted) !important;
}
html[data-dbm-theme="dark"] body main .dbm-special-card .dbm-special-badge {
  background-color: var(--dbm-night-elevated);
  border-color: var(--dbm-night-line);
}
html[data-dbm-theme="dark"] body main#dbm-product-detail
  :is(.dbm-product-recommendations,.dbm-product-share,.woocommerce-Tabs-panel,.dbm-product-appointment,.wc-block-product)
  :is(h2,h3,h4,p,li) {
  color: var(--dbm-night-text) !important;
}
html[data-dbm-theme="dark"] body main :is(.dbm-recommendation-link,.dbm-preview-link .dbm-preview-hint,.dbm-download-meta) {
  color: var(--dbm-night-link) !important;
}
html[data-dbm-theme="dark"] body main .wp-block-table :is(td,th) {
  background: var(--dbm-night-surface);
  color: var(--dbm-night-text);
  border-color: var(--dbm-night-line);
}
html[data-dbm-theme="dark"] body main .wp-block-table.is-style-stripes tbody tr:nth-child(odd) {
  background: var(--dbm-night-elevated);
}

/* Member area, cart, and shop settings. */
html[data-dbm-theme="dark"] body.woocommerce-account main .dbm-account-dashboard {
  background: var(--dbm-flyer-paper) !important;
  border-color: var(--dbm-night-line) !important;
  color: var(--dbm-night-text) !important;
}
html[data-dbm-theme="dark"] body.woocommerce-account main .dbm-account-member-intro :is(h2,h3,p) {
  color: var(--dbm-night-text) !important;
}
html[data-dbm-theme="dark"] body main#wp--skip-link--target #konto-zugang .woocommerce-MyAccount-navigation > ul > li > a[href] {
  background: var(--dbm-night-elevated) !important;
  color: var(--dbm-night-text) !important;
  border-color: var(--dbm-night-line) !important;
}
html[data-dbm-theme="dark"] body main#wp--skip-link--target #konto-zugang .woocommerce-MyAccount-navigation > ul > li.is-active > a[href] {
  background: #542f6c !important;
  color: #fff !important;
}
html[data-dbm-theme="dark"] body main #dbm-cart :is(.woocommerce-cart-form,.cart_totals) :is(th,td) {
  background-color: var(--dbm-night-elevated) !important;
  color: var(--dbm-night-text) !important;
  border-color: var(--dbm-night-line) !important;
}
html[data-dbm-theme="dark"] body main #dbm-cart .woocommerce-cart-form tr.cart_item > :is(th,td) {
  background: var(--dbm-night-surface) !important;
}
html[data-dbm-theme="dark"] body main #dbm-cart :is(.dbm-cart-next-options,.dbm-cart-selection-heading,.dbm-cart-offer-sharing,.dbm-cart-quantity-help) :is(h2,h3,h4,p) {
  color: var(--dbm-night-text) !important;
}


html[data-dbm-theme="dark"] body main#dbm-product-detail .dbm-recommendation-link {
  color: var(--dbm-night-link) !important;
}
html[data-dbm-theme="dark"] body main .dbm-method-orientation .dbm-level-map figcaption p {
  color: var(--dbm-night-muted);
}
html[data-dbm-theme="dark"] body main :is(.dbm-cart-offer-sharing,.dbm-manual-intro,.dbm-express-intro) :is(h2,h3,p),
html[data-dbm-theme="dark"] body main #dbm-cart .dbm-cart-offer-name {
  color: var(--dbm-night-text) !important;
}
html[data-dbm-theme="dark"] body main #dbm-cart :is(.actions .button,.checkout-button,.return-to-shop .button,.dbm-cart-add-appointment) {
  background: linear-gradient(160deg,#714191,#4d285f) !important;
  color: #fff !important;
}

html[data-dbm-theme="dark"] body main#wp--skip-link--target #konto-zugang .woocommerce-MyAccount-navigation {
  background: var(--dbm-night-field) !important;
  border-color: var(--dbm-night-line) !important;
}
html[data-dbm-theme="dark"] body main#wp--skip-link--target #konto-zugang .woocommerce-MyAccount-navigation > ul > li:not(.is-active) > a[href]:is(:hover,:focus-visible) {
  background: var(--dbm-night-surface) !important;
  color: var(--dbm-night-link) !important;
}
html[data-dbm-theme="dark"] body main#dbm-product-detail .wp-block-post-excerpt__excerpt {
  color: var(--dbm-night-muted) !important;
}

html[data-dbm-theme="dark"] body main.dbm-checkout-main
  :is(#dbm-checkout,.dbm-checkout-intro,.dbm-checkout-discover)
  :is(h2,h3,h4,p,label,th,td,.optional,.woocommerce-Price-amount,.variation,.product-quantity) {
  color: var(--dbm-night-text) !important;
}
html[data-dbm-theme="dark"] body main.dbm-checkout-main #dbm-checkout
  :is(.woocommerce-checkout-review-order-table,.woocommerce-checkout-review-order-table th,.woocommerce-checkout-review-order-table td) {
  background-color: var(--dbm-night-elevated) !important;
  border-color: var(--dbm-night-line) !important;
}
html[data-dbm-theme="dark"] body main.dbm-checkout-main #dbm-checkout
  :is(.woocommerce-privacy-policy-text,.woocommerce-terms-and-conditions-wrapper,.legal) a[href] {
  color: var(--dbm-night-link) !important;
}
html[data-dbm-theme="dark"] body main.dbm-checkout-main #dbm-checkout #place_order {
  background: linear-gradient(160deg,#714191,#4d285f) !important;
  color: #fff !important;
}

html[data-dbm-theme="dark"] body main#wp--skip-link--target #konto-zugang .woocommerce-MyAccount-navigation .dbm-account-submenu a[href] {
  background: var(--dbm-night-elevated) !important;
  color: var(--dbm-night-text) !important;
}
html[data-dbm-theme="dark"] body main.dbm-checkout-main #dbm-checkout .woocommerce-checkout-review-order {
  background: var(--dbm-night-surface) !important;
  border-color: var(--dbm-night-line) !important;
}
html[data-dbm-theme="dark"] body main.dbm-checkout-main #dbm-checkout
  :is(.dbm-cart-offer-name,.select2-selection__rendered,#order_comments_description) {
  color: var(--dbm-night-text) !important;
}
