/* Shared theme: light mode keeps the existing layout and colors. */
.bt-theme-toggle{display:inline-flex;align-items:center;justify-content:center;flex:0 0 36px;width:36px;height:36px;padding:0;margin:0 8px;border:1px solid #ffffff73;border-radius:9px;background:#ffffff16;color:#fff;font-size:23px;cursor:pointer;line-height:1}
.bt-theme-toggle:focus-visible,.bt-product-media-tabs button:focus-visible{outline:3px solid #20c9d0;outline-offset:3px}
.bt-product-media-tabs,.bt-product-chart-panel{display:none}
html[data-bt-theme=dark]{color-scheme:dark;background:#0c1928}
html[data-bt-theme=dark] body{background:#0c1928!important;color:#e6edf6!important}
html[data-bt-theme=dark] :is(main.ansicht,.main_section,.flex-container){background:transparent!important;color:#e6edf6}
html[data-bt-theme=dark] :is(.bt-side-card,.bt-pv-main-info,.bt-pv-best-offer,.bt-pv-main-image-card,.bt-pv-sell-card,.bt-amazon-chart-note,.bt-report-modal-content,.bt-pv-after-pill,.bt-mobile-set-action){background:#162b3e!important;color:#e6edf6!important;border-color:#355069!important}
html[data-bt-theme=dark] :is(h1,h2,h3,h4,p,legend,label,summary){color:inherit}
html[data-bt-theme=dark] :is(.bt-side-card,.bt-pv-main-info) :is(strong,span,small,p,h2,h3){color:#dce8f4!important}
html[data-bt-theme=dark] a{color:#68d4df}
html[data-bt-theme=dark] :is(.bt-site-header,.bt-site-header nav){background:#102b3c!important}
html[data-bt-theme=dark] .bt-site-header :is(a,label){color:#fff!important}
html[data-bt-theme=dark] .bt-site-header :is(.dropdown,nav>ul){background:#15394c!important}
html[data-bt-theme=dark] :is(input,select,textarea){background:#142d42!important;color:#eaf1f9!important;border-color:#4b647b!important}
html[data-bt-theme=dark] input::placeholder{color:#afc2d3!important}
html[data-bt-theme=dark] :is(.autocom-box,.search-input.active .autocom-box){background:#183247!important;color:#eaf1f9!important}
html[data-bt-theme=dark] .autocom-box li:hover{background:#284b62!important}
html[data-bt-theme=dark] :is(table,tbody,td){background:#142b3e!important;color:#e6edf6!important;border-color:#34506a!important}
html[data-bt-theme=dark] th{background:#174e5c!important;color:#fff!important}
html[data-bt-theme=dark] tr:nth-child(even) td{background:#1b3449!important}
html[data-bt-theme=dark] :is(.breadcumb-list,.bt-chart-legend){color:#c4d7e7!important}
html[data-bt-theme=dark] hr{border-color:#34506a!important}
/* Product photos and the existing CanvasJS chart keep their original rendering. */
html[data-bt-theme=dark] #chartContainer{background:#fff;border-radius:8px}
html[data-bt-theme=dark] .bt-product-chart-panel{background:#142b3e;border-color:#34506a}
@media(max-width:768px){
 .bt-site-header nav.bt-nav-has-search{grid-template-columns: minmax(100px,142px) minmax(0,1fr) 34px 40px!important;gap:5px!important}
 .bt-site-header nav.bt-nav-no-search{grid-template-columns:minmax(0,1fr) 34px 40px!important}
 .bt-site-header nav .bt-theme-toggle{grid-column:3;grid-row:1;width:32px;height:34px;margin:0;min-width:0}
 .bt-site-header nav .toggle_button{grid-column:4!important;grid-row:1}
 .bt-site-header nav.bt-nav-no-search .bt-theme-toggle{grid-column:2}
 .bt-site-header nav.bt-nav-no-search .toggle_button{grid-column:3!important}
}
@media(max-width:430px){.bt-site-header nav.bt-nav-has-search{grid-template-columns:112px minmax(0,1fr) 30px 34px!important;gap:4px!important}.bt-site-header nav .bt-theme-toggle{width:30px}}
@media(max-width:1024px){
 .bt-product-media-tabs:not([hidden]){display:grid;grid-template-columns:1fr 1fr;gap:0;margin:14px 0;border:1px solid #bdd6de;border-radius:9px;overflow:hidden;clear:both}
 .bt-product-media-tabs button{appearance:none;border:0;padding:13px 8px;background:#f2f7fa;color:#23455d;font:700 14px Arial,sans-serif;cursor:pointer}
 .bt-product-media-tabs button[aria-selected=true]{background:#087f8d;color:#fff}
 .bt-product-chart-panel:not([hidden]){display:block;clear:both;margin:0 0 16px;padding:12px 6px;border:1px solid #d3e2e9;border-radius:10px;min-width:0;box-sizing:border-box}
 .bt-product-chart-panel #Preischart{display:block!important;width:100%!important;margin:0!important}
 html body .main_section main.ansicht :is(.lego_images,.mobilbild1).bt-media-hidden{display:none!important}.bt-media-hidden{display:none!important}
 html[data-bt-theme=dark] .bt-product-media-tabs button{background:#213c51;color:#e6edf6}
 html[data-bt-theme=dark] .bt-product-media-tabs button[aria-selected=true]{background:#087f8d;color:#fff}
}

html[data-bt-theme=dark] :is(.card,.panel,.box,.filter-container,.filter-box,.filter-panel,.product-card,.set-card,.faq-item,.news-card,.branding-container){background:#162b3e!important;color:#e6edf6!important;border-color:#355069!important}
html[data-bt-theme=dark] :is(.card,.panel,.box,.filter-container,.filter-box,.filter-panel,.product-card,.set-card,.faq-item,.news-card) :is(h1,h2,h3,h4,p,label,summary){color:#e6edf6!important}

/* Recover the mobile tab height from the existing generous product-heading gaps. */
@media(max-width:1024px){
 main.ansicht:has(.bt-product-media-tabs)>.flex-container{margin-top:8px!important;margin-bottom:8px!important;gap:8px!important}
 main.ansicht:has(.bt-product-media-tabs) .details-text-container h1{margin-top:8px!important;margin-bottom:8px!important}
 main.ansicht .bt-product-media-tabs{margin-top:4px!important;margin-bottom:4px!important}
 main.ansicht .bt-product-media-tabs button{padding-top:10px;padding-bottom:10px}
}

/* Mobile product head: override the existing ID-based !important title rule. */
@media(max-width:1024px){
 html body .main_section main.ansicht:has(.bt-product-media-tabs)>.flex-container{margin:0 auto!important;padding:0!important}
 html body .main_section main.ansicht:has(.bt-product-media-tabs) .details-text-container h1#top-heading{margin:6px auto 4px!important}
 html body .main_section main.ansicht:has(.bt-product-media-tabs)>.flex-container+hr{margin:2px auto!important}
}

/* Complete shared dark palette for the existing Brick-Tracker page families. */
html[data-bt-theme=dark],html[data-bt-theme=dark] body,html[data-bt-theme=dark] .bt-home-refresh,html[data-bt-theme=dark] .bt-hub-page{
 --bt-page:#0c1928!important;--bt-card:#162b3e!important;--bt-ink:#edf3fb!important;--bt-muted:#b5c7da!important;--bt-border:#355069!important;--bt-teal:#71d8df!important;--bt-teal-dark:#96e9ee!important;--bt-teal-soft:#203e50!important;
 --bg:#0c1928!important;--soft:#203e50!important;--ink:#edf3fb!important;--muted:#b5c7da!important;--line:#355069!important;--bt-text:#edf3fb!important;--bt-primary:#78d8e0!important;--bt-primary-soft:#203e50!important;--bt-primary-light:#203e50!important;
}
html[data-bt-theme=dark] body :is(h1,h2,h3,h4,h5,h6,p,li,dt,dd,label,summary,strong,b,small,legend){color:inherit!important}
html[data-bt-theme=dark] body :is(main,.bt-home-refresh,.bt-hub-page,.hub-main,.bf-main,.btma,.bt-legal-page){color:#edf3fb!important}
html[data-bt-theme=dark] body :is(.bt-home-hero,.hero,.hub-hero,.bt-hub-hero,.bt-topdeals-hero,.bt-hm-hero){background:linear-gradient(125deg,#102438,#19394b)!important;color:#edf3fb!important;border-color:#355069!important}
html[data-bt-theme=dark] body :is(.bt-home-section,.bt-feature-band,.bt-latest-sets-section,#branding-section,.Footer_above_info,.Footer_above_info .width_wrapper.csk){background:#0c1928!important;color:#edf3fb!important}
html[data-bt-theme=dark] body :is(.bt-feature-card,.bt-deal-card,.bt-topic-card,.bt-info-card,.bt-why-card,.bt-community-strip,.bt-latest-set-card,.bt-home-hero-card,.bt-home-secondary,.bt-theme-deal-loader,.bt-themed-deal-nav,.branding-container,.text_section,.hub-card,.hub-info,.bt-hm-filter,.bt-hm-card,.bt-hm-bottom,.bt-hub-panel,.bt-hub-link-card,.bt-hub-app-panel,.bt-hub-webapp-panel,.bt-hub-seo,.bt-legal-card,.bt-theme-auto-card,.bt-theme-auto-body,.filter_section,.bt-filter-panel,.bt-deal-alarm-card,.container_link,.mcard,.stat,.tablewrap,.theme-multi-menu,.form-card,.summary,.choice label,.set-preview,.fee-box,.note,.benefit,.bt-market-seo-card,.bt-patreon-card,.bt-market-fee-note,.bf-main .article,.bf-main .mini,.bf-main .feature,.bf-main .faq details,.bf-main .feed-tile,.bf-main .eol-data-card){background:#162b3e!important;color:#edf3fb!important;border-color:#355069!important;box-shadow:0 6px 22px #0002!important}
html[data-bt-theme=dark] body :is(.bt-home-eyebrow,.bt-home-metrics>span,.bt-theme-label,.bt-hm-chip,.kicker,.date,.bf-jump a,.progress span,.bf-main .hub-related a){background:#203e50!important;color:#d8edf7!important;border-color:#355069!important}
html[data-bt-theme=dark] body :is(.bt-pv-title,#top-heading,.bt-pv-product-summary,.bt-pv-rating-row,.bt-pv-watch,.bt-pv-collection,.bt-side-details-accordion summary,.bt-pv-best-card,.bt-pv-stat-grid,.bt-pv-stat,.bt-side-card,.bt-side-card-alarm,.app-promo-card,.bt-pv-sell-card,.bt-price-summary,.best-offer){background-color:#162b3e!important;color:#edf3fb!important;border-color:#355069!important}
html[data-bt-theme=dark] body :is(.bt-pv-title,#top-heading,.bt-pv-product-summary,.bt-pv-rating-row){background-color:transparent!important}
html[data-bt-theme=dark] body .main_section>aside>div:first-child{background:#162b3e!important;color:#edf3fb!important;border-color:#355069!important}
html[data-bt-theme=dark] body :is(.bt-side-card-head,.bt-side-detail-row,.bt-side-price-line,.bt-pv-best-title,.bt-pv-best-price,.bt-pv-best-discount,.bt-pv-sell-card-copy,.bt-pv-stat){color:#edf3fb!important}
html[data-bt-theme=dark] body :is(.bt-side-detail-row,.bt-pv-stat){border-color:#355069!important}
html[data-bt-theme=dark] body :is(.bt-pv-after-pill,.bt-side-soft-link,.bt-mobile-set-action,.bt-pv-sell-card,.bt-market-seo-links a){background:#203e50!important;color:#9ae9ed!important;border-color:#45677b!important}
html[data-bt-theme=dark] body a{color:#8de2e8!important}
html[data-bt-theme=dark] body a:hover{color:#c0f8fa!important}
html[data-bt-theme=dark] body :is(.bt-home-primary,.bt-side-primary-button,.bt-pv-offer-button,.bt-hub-primary,.btn.primary,.primary,.bf-main .btn,.show_deals_button){background:#087784!important;color:#fff!important;border-color:#2593a0!important}
html[data-bt-theme=dark] body :is(td a, .bt-pv-best-card .bt-pv-offer-button){color:#fff!important}
html[data-bt-theme=dark] body td :is(a,button)[class],html[data-bt-theme=dark] body td a[style*="background"]{background-color:#2256aa!important;color:#fff!important}
html[data-bt-theme=dark] body :is(.bt-report-offer-button,.bt-report-button){background:#492f38!important;color:#ffced6!important;border-color:#92606d!important}
html[data-bt-theme=dark] body :is(.bt-deal-title,.bt-deal-meta,.bt-deal-meta-row,.bt-home-metrics,.bt-deal-uvp,.bt-deal-shop-count,.bt-hub-panel p,.bt-hm-card p){color:#bed0e2!important}
html[data-bt-theme=dark] body :is(.bt-deal-title a,.bt-latest-set-card a,.bt-feature-card,.hub-card){color:#edf3fb!important}
html[data-bt-theme=dark] body :is(.bt-feature-icon,.bt-side-card-icon,.bt-hub-panel-icon){background:#203e50!important}
html[data-bt-theme=dark] body :is(.bt-home-art,.bt-home-market-image,.bt-hm-placeholder){background:#203344!important}
html[data-bt-theme=dark] body :is(input,select,textarea){background:#102337!important;color:#edf3fb!important;border-color:#5a738b!important}
html[data-bt-theme=dark] body input::placeholder{color:#bdcddd!important;opacity:1}
html[data-bt-theme=dark] body :is(.bt-pv-product-summary,.bt-side-card,.deal_information_container,.bt-price-summary) [style*="color"]{color:inherit!important}
html[data-bt-theme=dark] body .main_section .mobile-promo-link-section>div{background:#162b3e!important;color:#edf3fb!important}
html[data-bt-theme=dark] body .main_section .mobile-promo-link-section>div>div{color:#d3e5f1!important}
html[data-bt-theme=dark] body .bt-site-header :is(a,label){color:#fff!important}
html[data-bt-theme=dark] body :is(.bt-site-footer,.bt-modern-footer){background:#102235!important;color:#d9e6f2!important}
/* Do not invert photos, brand marks, custom icon art or the existing CanvasJS canvas. */
html[data-bt-theme=dark] body #chartContainer{background:#fff!important;color:#172332!important}
html[data-bt-theme=dark] body .bt-chart-legend{color:#d4e1ef!important}

html[data-bt-theme=dark] body .main_section :is(.app-promo-card,.bt-pv-stat,.bt-pv-best-price,.bt-pv-best-discount,.bt-pv-buyer-protection,.bt-pv-sell-card-copy,.bt-pv-sell-card-arrow){color:#d8e7f4!important}
html[data-bt-theme=dark] body .main_section :is(.app-promo-card,.bt-pv-stat,.bt-pv-best-price,.bt-pv-best-discount) :is(h2,p,span){color:#d8e7f4!important}
html[data-bt-theme=dark] body .main_section :is(.links-ul a,.bt-pv-sell-button){background:#203e50!important;color:#c2f1f4!important;border-color:#45677b!important}
html[data-bt-theme=dark] body .main_section .bt-desktop-offer-label{background:#2256aa!important;color:#fff!important}
html[data-bt-theme=dark] body .main_section :is(.bt-side-card-head,.bt-pv-sell-card) svg{color:#8de2e8!important;background-color:#203e50!important}

/* Legacy pages hard-code descendant text colors; inherit from themed surfaces. */
html[data-bt-theme=dark] body :is(div,section,article,aside,main,h1,h2,h3,h4,h5,h6,p,span,li,dt,dd,label,summary,strong,b,small,legend):not(#bt-theme-unused):where(:not(#chartContainer):not(#chartContainer *)){color:inherit!important}
html[data-bt-theme=dark] body a:not(#bt-theme-unused){color:#9be9ed!important}
html[data-bt-theme=dark] body :is(.bt-home-refresh,.main_section,.bt-hub-page,.hub-main,.bf-main,.btma,.bt-legal-page):not(#bt-theme-unused){color:#edf3fb!important}
html[data-bt-theme=dark] body :is(.links-ul a,.bt-pv-sell-button,.bt-pv-sell-set,.bt-hub-jumpnav a,.btn.secondary,.reset,.theme-multi-field summary,.bt-topdeals-marktanalyse-link):not(#bt-theme-unused){background:#203e50!important;color:#c6f1f4!important;border-color:#45677b!important}
html[data-bt-theme=dark] body :is(.hero-main,.btma .info,.btma .seo,.btma .seo-grid>*,.swiper-container,.swiper,.swiper-wrapper):not(#bt-theme-unused){background-color:#0c1928!important;color:#edf3fb!important}
html[data-bt-theme=dark] body :is(.discount_circle,.bt-deal-badge,.bt-feature-new-badge):not(#bt-theme-unused){background:#b7183f!important;color:#fff!important}
html[data-bt-theme=dark] body :is(.bt-home-primary,.bt-side-primary-button,.bt-pv-offer-button,.bt-hub-primary,.btn.primary,.primary,.bf-main .btn,.show_deals_button):not(#bt-theme-unused){color:#fff!important}
html[data-bt-theme=dark] body #jotform-feedback-240301355685352{background:#925000!important;color:#fff!important}

html[data-bt-theme=dark] body :is(.bt-home-refresh,.deals_section,.top_deals_section):not(#bt-theme-unused){background:#0c1928!important;color:#edf3fb!important}
html[data-bt-theme=dark] body :is(.branding-container,.socialmedia_container,.search-input,.autocom-box,.autocom-box li,.bt-pv-quicklinks a,.bt-pv-sell-inline-button,.bt-pv-buy-tabs,.bt-side-icon,.bt-pv-info-dot,.bt-topdeals-marktanalyse-link-icon,.bt-deal-alarm-card-title-icon,.bt-filter-panel-title-icon,.bt-filter-field-label-icon,.bt-hub-kicker,.bt-hub-social,.bt-hub-social span,.bt-hub-seo-links a):not(#bt-theme-unused){background:#203e50!important;color:#edf3fb!important;border-color:#45677b!important}
html[data-bt-theme=dark] body .bt-hub-social:not(#bt-theme-unused):hover{background:#2c5268!important}
html[data-bt-theme=dark] body :is(.badge.eol,.eol_badge):not(#bt-theme-unused){background:#54336f!important;color:#f3e4ff!important}
html[data-bt-theme=dark] body .deal_information_container p[style*="background"]:not(#bt-theme-unused){background:#194d43!important;color:#ceffeb!important;border-color:#4a8c7c!important}

html[data-bt-theme=dark] body :is(ul,ol):not(#bt-theme-unused){color:inherit!important}

html[data-bt-theme=dark] body :is(.bt-theme-auto-head,.bt-invest-patreon,.bt-contact-box,.bt-legal-jump,.bt-legal-card [style*="background"]):not(#bt-theme-unused){background:#203e50!important;color:#edf3fb!important;border-color:#45677b!important}
html[data-bt-theme=dark] body .bt-theme-auto-logo:not(#bt-theme-unused){color:#fff!important}

html[data-bt-theme=dark] body a:has(>.bt-desktop-offer-label):not(#bt-theme-unused){background:#2256aa!important;color:#fff!important}
html[data-bt-theme=dark] body a .bt-desktop-offer-label:not(#bt-theme-unused){background:transparent!important;color:#fff!important}
html[data-bt-theme=dark] body :is(.bt-pv-offer-button,.bt-side-primary-button,.bt-home-primary,.bt-hub-primary):not(#bt-theme-unused),html[data-bt-theme=dark] body :is(.bt-pv-offer-button,.bt-side-primary-button,.bt-home-primary,.bt-hub-primary):not(#bt-theme-unused) span{color:#fff!important}
html[data-bt-theme=dark] body :is(.bt-pv-watch,.bt-pv-collection)::before{color:#9be9ed!important}

html[data-bt-theme=dark] body :is(.bt-update-card,.bt-updates-hero,.bt-updates-count,.bt-updates-empty,.bt-deal-hero,.bt-live-service,.bt-empty,.bt-preview-note,.bt-legal-note,.bt-legal-toc,.gwp-hero,.gwp-card,.gwp-info-card,.gwp-code-box,.gwp-fact,.gwp-note,.gwp-message,.bt-404-card,.bt-404-link-card,.bt-404-mascot-card):not(#bt-theme-unused){background:#162b3e!important;color:#edf3fb!important;border-color:#355069!important}
html[data-bt-theme=dark] body :is(.bt-updates-page,.bt-deal-page,.gwp-page,.bt-404-page):not(#bt-theme-unused){background:#0c1928!important;color:#edf3fb!important}
html[data-bt-theme=dark] body :is(.bt-updates-kicker,.gwp-kicker,.bt-404-kicker,.bt-404-code):not(#bt-theme-unused){background:#203e50!important;color:#d5f4f6!important}
html[data-bt-theme=dark] body :is(.bt-load-more,.gwp-button,.bt-404-button-primary):not(#bt-theme-unused){background:#087784!important;color:#fff!important;border-color:#3e94a2!important}
html[data-bt-theme=dark] body :is(.bt-discount,.bt-status-live,.bt-status-preview,.bt-eol,.bt-expired,.bt-pages .current):not(#bt-theme-unused){background:#203e50!important;color:#edf3fb!important}

html[data-bt-theme=dark] body :is(.bt-legal-toc a,.bt-404-search-note,.bt-404-button-secondary):not(#bt-theme-unused){background:#203e50!important;color:#edf3fb!important;border-color:#45677b!important}
html[data-bt-theme=dark] body .gwp-lego-link:not(#bt-theme-unused){background:#925000!important;color:#fff!important}

html[data-bt-theme=dark] body .mobileOnly>:is(div[style*="background"],details):not(#bt-theme-unused){background:#162b3e!important;color:#edf3fb!important;border-color:#355069!important}
html[data-bt-theme=dark] body :is(.bt-pv-lego-check-link,.bt-pv-sell-inline-icon,.bt-pv-tab-icon):not(#bt-theme-unused){background:#203e50!important;color:#edf3fb!important}
html[data-bt-theme=dark] body #mobile-only-link:not(#bt-theme-unused){background:#087784!important;color:#fff!important}

html[data-bt-theme=dark] body :is(.bt-side-eol-alert,.bt-side-status-badge):not(#bt-theme-unused){background:#492b40!important;color:#ffb5c7!important;border-color:#87506c!important}
html[data-bt-theme=dark] body h1[style*="color: red"]:not(#bt-theme-unused){color:#ff9fb3!important}
html[data-bt-theme=dark] body .bt-site-header .logo{background:transparent!important}

html[data-bt-theme=dark] body .bt-home-title span:not(#bt-theme-unused){color:#75d7df!important;background:transparent!important}
html[data-bt-theme=dark] body :is(.bt-home-art,.bt-home-market-image):not(#bt-theme-unused){background:transparent!important}

html[data-bt-theme=dark] body :is(.bt-pv-tab-icon,.bt-pv-sell-inline-icon):not(#bt-theme-unused){background-color:#d8f8fa!important}
html[data-bt-theme=dark] body .main_section table :is(tr,td){border-color:#355069!important}

/* Mobile market analysis: UVP/current price and both change metrics. */
html[data-bt-theme=dark] body .btma .mval:not(#bt-theme-unused){background:#203e50!important;color:#edf3fb!important}
html[data-bt-theme=dark] body .btma .mval>span:not(#bt-theme-unused){color:#c1d3e4!important}
html[data-bt-theme=dark] body .btma .mval>strong:not(#bt-theme-unused){color:#edf3fb!important}
html[data-bt-theme=dark] body .btma .mval>strong.pos:not(#bt-theme-unused){color:#83e6c4!important}
html[data-bt-theme=dark] body .btma .mval>strong.neg:not(#bt-theme-unused){color:#ffacbb!important}

/* Desktop homepage: keep the theme switch directly beside the navigation. */
@media(min-width:901px){
 .bt-site-header nav.bt-nav-no-search>.bt-theme-toggle{margin-left:auto!important;margin-right:24px!important}
}
