.soletech-theme-toggle {
  position: fixed; left: max(16px, env(safe-area-inset-left)); bottom: max(24px, env(safe-area-inset-bottom));
  z-index: 1024; display: grid; place-items: center; width: 44px; height: 44px; padding: 0;
  border: 1px solid #93aac7; border-radius: 50%; color: #fff; background: #163563; font-size: 23px;
  line-height: 1; cursor: pointer; box-shadow: 0 3px 12px #0003;
}
.soletech-theme-toggle:focus-visible { outline: 2px solid #4886d8; outline-offset: 3px; }
html[data-soletech-theme="dark"] {
  color-scheme: dark;
  --theme-background: #101a2a;
  --theme-panel: #192941;
  --theme-border: #455e7d;
  --theme-text: #e8effa;
  --theme-muted: #bdcce0;
  --heading-font-color: #f5f8ff;
  --body-font-color: var(--theme-text);
  --bg-light: #142238;
  --bs-body-bg: var(--theme-background);
  --bs-body-color: var(--theme-text);
  --bs-border-color: var(--theme-border);
}
/* Solaria assigns these tokens on every element. Inherit the active surface palette. */
html[data-soletech-theme="dark"] * {
  --heading-font-color: inherit;
  --body-font-color: inherit;
  --bg-light: inherit;
}
html[data-soletech-theme="dark"] .btn-main:not(.btn-line) {
  --btn-color: #172339;
}
html[data-soletech-theme="dark"] :is(h1,h2,h3,h4) .op-3 {
  color: var(--theme-muted);
  opacity: 1 !important;
}
html[data-soletech-theme="dark"] :is(body,#wrapper,#content,main, .site-search-page) {
  background-color: var(--theme-background); color: var(--theme-text);
}
html[data-soletech-theme="dark"] :is(.bg-white,.bg-light,.section-light,.site-search-home,.search-card,.product-panel,.product-information-panel,.search-chip,.accordion-item,.accordion-button) {
  background-color: var(--theme-panel) !important; color: var(--theme-text); border-color: var(--theme-border);
}
html[data-soletech-theme="dark"] #search-categories a,
html[data-soletech-theme="dark"] :is(.text-dark,.text-dark p,.text-dark h1,.text-dark h2,.text-dark h3,.text-dark h4,.product-languages a) { color: var(--theme-text) !important; }
html[data-soletech-theme="dark"] :is(input:not([type=checkbox]):not([type=radio]),textarea,select) {
  background-color: var(--theme-panel); color: var(--theme-text); border-color: var(--theme-border);
}
html[data-soletech-theme="dark"] #search-filters :is(select,input,option) {
  background-color: var(--theme-panel); color: var(--theme-text); border-color: var(--theme-border);
}
html[data-soletech-theme="dark"] :is(input,textarea)::placeholder { color: var(--theme-muted); opacity: 1; }
html[data-soletech-theme="dark"] :is(.table,.table-bordered) {
  --bs-table-bg: var(--theme-background); --bs-table-color: var(--theme-text); --bs-table-border-color: var(--theme-border);
  color: var(--theme-text); border-color: var(--theme-border);
}
html[data-soletech-theme="dark"] .table-warning {
  --bs-table-bg: #253956; --bs-table-color: var(--theme-text); --bs-table-border-color: var(--theme-border);
  color: var(--theme-text); background-color: #253956;
}
html[data-soletech-theme="dark"] #product-specifications caption { color: var(--theme-muted); }
html[data-soletech-theme="dark"] .soletech-theme-toggle { color: #163563; background: #fbec6b; }
html[data-soletech-theme="dark"] .home-chat-panel { background: var(--theme-panel); border-color: var(--theme-border); }
html[data-soletech-theme="dark"] header:is(.header-light,.scroll-light.smaller) { background: #163563; }
html[data-soletech-theme="dark"] header:is(.header-light,.scroll-light.smaller) #mainmenu > li > :is(a,button) { color: #fff; }

html[data-soletech-theme="dark"] :is(section.bg-color,div.bg-color.text-dark) {
  --heading-font-color: #172339;
  --body-font-color: #172339;
  color: #172339 !important;
}
html[data-soletech-theme="dark"] :is(section.bg-color,div.bg-color.text-dark) :is(h1,h2,h3,h4,p,.text-dark,.text-dark p) {
  color: #172339 !important;
}
html[data-soletech-theme="dark"] #solar-calculator #quick-rate-error { color: #ffadad; }

html[data-soletech-theme="dark"] .bg-color .de-marquee-list-2 :is(.fs-40,.js-marquee > span) {
  color: #172339;
}
html[data-soletech-theme="dark"] :is(section.bg-color,div.bg-color.text-dark) .op-3 {
  color: #172339;
  opacity: 1;
}

/* Solaria's FAQ uses accordion-section classes, with its own title and chevron colors. */
html[data-soletech-theme="dark"] .accordion .accordion-section-title {
  color: var(--theme-text);
  border-bottom-color: var(--theme-border);
}
html[data-soletech-theme="dark"] .accordion .accordion-section-title::before {
  color: var(--theme-muted);
}
html[data-soletech-theme="dark"] .accordion .accordion-section-title:is(:hover,:focus-visible,.active),
html[data-soletech-theme="dark"] .accordion .accordion-section-title:is(:hover,:focus-visible,.active)::before {
  color: var(--primary-color, #fbec6b);
}
html[data-soletech-theme="dark"] .accordion .accordion-section-content {
  color: var(--theme-text);
}

html[data-soletech-theme="dark"] .blog-read .table-bordered :is(th, td) {
  border: 1px solid #647d9e;
  color: var(--theme-text);
}
html[data-soletech-theme="dark"] .blog-read .table-bordered thead th {
  background-color: var(--theme-panel);
}

/* Outlined product actions need a light label on their transparent dark surface. */
html[data-soletech-theme="dark"] #product-detail :is(.product-capacity[aria-pressed="false"],.ux-quote-actions .btn-line,.quote-links .btn-line) {
  color: var(--theme-text) !important;
  border-color: #7892b5;
  background: transparent;
}
html[data-soletech-theme="dark"] #product-detail :is(.product-capacity[aria-pressed="false"],.ux-quote-actions .btn-line,.quote-links .btn-line):is(:hover,:focus-visible) {
  color: #fbec6b !important;
  border-color: #fbec6b;
  background: #253956;
}
html[data-soletech-theme="dark"] #product-detail .product-capacity[aria-pressed="true"] {
  color: #172339 !important;
}

html[data-soletech-theme="dark"] a.btn-main.btn-line[href^="https://wa.me/"] {
  color: var(--theme-text);
  border-color: #7892b5;
}
html[data-soletech-theme="dark"] a.btn-main.btn-line[href^="https://wa.me/"]:is(:hover,:focus-visible) {
  color: #fbec6b;
  border-color: #fbec6b;
  background: #253956;
}
html[data-soletech-theme="dark"] #solar-calculator .calc-mode-tabs {
  border-bottom-color: var(--theme-border);
}
html[data-soletech-theme="dark"] #solar-calculator .calc-mode-tabs [role="tab"][aria-selected="false"] {
  color: var(--theme-text);
  border: 1px solid #7892b5;
  background: var(--theme-panel);
}
html[data-soletech-theme="dark"] #solar-calculator .calc-mode-tabs [role="tab"][aria-selected="true"] {
  color: #172339;
  background: var(--primary-color, #fbec6b);
}
html[data-soletech-theme="dark"] #solar-calculator .calc-mode-tabs [role="tab"]:focus-visible {
  outline-color: #a8c9ef;
}
html[data-soletech-theme="dark"] #soletech-consent-dialog {
  color: var(--theme-text);
  background: var(--theme-panel);
  border: 1px solid var(--theme-border);
}
html[data-soletech-theme="dark"] #soletech-consent-dialog fieldset { border-top-color: #647d9e; }
html[data-soletech-theme="dark"] #soletech-consent-dialog [data-consent-close] {
  color: var(--theme-text);
  border-color: #7892b5;
  background: var(--theme-background);
}
html[data-soletech-theme="dark"] #soletech-consent-dialog input { accent-color: #fbec6b; }
html[data-soletech-theme="dark"] #soletech-privacy .consent-status {
  color: var(--theme-text);
  background: var(--theme-panel);
}

html[data-soletech-theme="dark"] #product-detail .nav-tabs {
  border-color: var(--theme-border);
}
html[data-soletech-theme="dark"] #product-detail .nav-tabs .nav-link {
  color: var(--theme-text);
  border-color: var(--theme-border);
}
html[data-soletech-theme="dark"] #product-detail .nav-tabs .nav-link[aria-selected="true"] {
  background: var(--theme-panel);
  color: #fbec6b;
  border-color: var(--theme-border);
  border-block-end-color: #fbec6b;
  box-shadow: inset 0 -2px #fbec6b;
}
html[data-soletech-theme="dark"] #product-detail .nav-tabs .nav-link:is(:hover,:focus-visible) {
  background: var(--theme-panel);
  color: #fbec6b;
}
html[data-soletech-theme="dark"] #product-faq details { border-color: var(--theme-border); }
html[data-soletech-theme="dark"] body.homepage-finalized section.bg-color :is(.owl-single-dots .item i,.grid-divider i,.grid-divider p,.grid-divider a) {
  color: #172339 !important;
}

/* Product submenu in the full and compact navigation. */
html[data-soletech-theme="dark"] :is(#mainmenu,#site-mainmenu) > li[data-site-group] > ul {
  background: var(--theme-panel);
  color: var(--theme-text);
  border: 1px solid var(--theme-border);
}
html[data-soletech-theme="dark"] :is(#mainmenu,#site-mainmenu) > li[data-site-group] > ul a {
  color: var(--theme-text);
  border-color: var(--theme-border);
}
html[data-soletech-theme="dark"] :is(#mainmenu,#site-mainmenu) > li[data-site-group] > ul a:is(:hover,:focus-visible) {
  background: var(--primary-color, #fbec6b);
  color: #172339 !important;
}

html[data-soletech-theme="dark"], html[data-soletech-theme="dark"] #de-loader { background-color: #101a2a; }

/* Transparent product photo backgrounds in dark mode. */
html[data-soletech-theme="dark"] img[src$="images/products/solar-inverters-illustration.webp"] { content: url("/images/products/solar-inverters-illustration-dark-cutout.webp"); }
html[data-soletech-theme="dark"] img[src$="images/products/deye-storage/deye-ge-f240-official.jpg"] { content: url("/images/products/deye-storage/deye-ge-f240-official-dark-cutout.webp"); }
html[data-soletech-theme="dark"] img[src$="images/products/deye-storage/deye-se-f12-official-led.jpg"] { content: url("/images/products/deye-storage/deye-se-f12-official-led-dark-cutout.webp"); }
html[data-soletech-theme="dark"] img[src$="images/products/deye-storage/deye-se-f5-official-led.jpg"] { content: url("/images/products/deye-storage/deye-se-f5-official-led-dark-cutout.webp"); }
html[data-soletech-theme="dark"] img[src$="images/products/deye-solar-inverters.webp"] { content: url("/images/products/deye-solar-inverters-dark-cutout.webp"); }
html[data-soletech-theme="dark"] img[src$="images/products/deye-lithium-battery-storage.webp"] { content: url("/images/products/deye-lithium-battery-storage-dark-cutout.webp"); }
html[data-soletech-theme="dark"] img[src$="images/products/deye-commercial-energy-storage.webp"] { content: url("/images/products/deye-commercial-energy-storage-dark-cutout.webp"); }
html[data-soletech-theme="dark"] img[src$="images/products/micro-hybrid-inverter-placeholder.webp"] { content: url("/images/products/micro-hybrid-inverter-placeholder-dark-cutout.webp"); }
html[data-soletech-theme="dark"] img[src$="images/products/microinverter-placeholder.webp"] { content: url("/images/products/microinverter-placeholder-dark-cutout.webp"); }
html[data-soletech-theme="dark"] img[src$="images/products/off-grid-inverter-placeholder.webp"] { content: url("/images/products/off-grid-inverter-placeholder-dark-cutout.webp"); }
html[data-soletech-theme="dark"] img[src$="images/products/deye-storage/deye-se-f5-pro-official-led.jpg"] { content: url("/images/products/deye-storage/deye-se-f5-pro-official-led-dark-cutout.webp"); }
html[data-soletech-theme="dark"] img[src$="images/products/deye-storage/deye-se-f16-official-led.jpg"] { content: url("/images/products/deye-storage/deye-se-f16-official-led-dark-cutout.webp"); }
html[data-soletech-theme="dark"] img[src$="images/products/on-grid-inverter-placeholder.webp"] { content: url("/images/products/on-grid-inverter-placeholder-dark-cutout.webp"); }
html[data-soletech-theme="dark"] img[src$="images/products/hybrid-inverter-placeholder.webp"] { content: url("/images/products/hybrid-inverter-placeholder-dark-cutout.webp"); }
html[data-soletech-theme="dark"] img[src$="images/products/deye-storage/deye-ge-f60-official-eu.jpg"] { content: url("/images/products/deye-storage/deye-ge-f60-official-eu-dark-cutout.webp"); }
