/* Light mode retains style.css. :where() keeps the original selector
   specificity, including primary buttons, active tabs and custom content. */
:root{color-scheme:light}
:root[data-theme="dark"] {
  --price-unavailable-bg: #39282a;
  --price-unavailable-input: #473236;
  --price-unavailable-border: #745157;
  --price-unavailable-text: #ffb2a8;
}
:root[data-theme="dark"]{color-scheme:dark;--theme-text:#e7eee9;--theme-muted:#b3c1b7;--theme-accent:#87d9a6;--theme-error:#ffb2a8;--theme-warning:#ecd08b;--theme-surface:#1c2821;--theme-soft:#24332a;--theme-border:#465c4c;--theme-warning-bg:#403623;--theme-icon-fill:#355d42}
.header-tools{display:flex;align-items:center;gap:18px;flex-shrink:0}.topline .wrap{align-items:center}
.theme-toggle{display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;width:44px;height:44px;padding:10px;border:1px solid #607468;border-radius:50%;background:transparent;color:#e7eee9}
.theme-toggle:hover{background:#2e4838}.theme-toggle svg{width:22px;height:22px;stroke:currentColor;stroke-width:1.8;fill:none;stroke-linecap:round;stroke-linejoin:round}
@media(max-width:740px){.header-hours{display:none}.header-tools{gap:0}.topline{padding:3px 0}.topline .wrap>span{font-size:11px}.theme-toggle{width:44px;height:44px}}
:where(:root[data-theme="dark"]) body{background:var(--theme-surface);color:var(--theme-text);}
:where(:root[data-theme="dark"]) p{color:var(--theme-muted);}
:where(:root[data-theme="dark"]) .muted{color:var(--theme-muted);}
:where(:root[data-theme="dark"]) .eyebrow{color:var(--theme-accent);}
:where(:root[data-theme="dark"]) .btn{border:1px solid var(--theme-border);background:var(--theme-surface);color:var(--theme-text);}
:where(:root[data-theme="dark"]) .btn.danger{color:var(--theme-error);border-color:var(--theme-border);}
:where(:root[data-theme="dark"]) .nav a.active{color:var(--theme-accent);}
:where(:root[data-theme="dark"]) .hero-section{background:var(--theme-soft);border-top:1px solid var(--theme-border);}
:where(:root[data-theme="dark"]) .hero .accent{color:var(--theme-accent);}
:where(:root[data-theme="dark"]) .hero-badge{background:var(--theme-surface);}
:where(:root[data-theme="dark"]) .hero-badge b{color:var(--theme-accent);}
:where(:root[data-theme="dark"]) .service-strip{border-bottom:1px solid var(--theme-border);}
:where(:root[data-theme="dark"]) .service-strip a{border-right:1px solid var(--theme-border);}
:where(:root[data-theme="dark"]) .service-strip span{color:var(--theme-muted);}
:where(:root[data-theme="dark"]) .icon{color:var(--theme-accent);}
:where(:root[data-theme="dark"]) .offer-panel{border:1px solid var(--theme-border);}
:where(:root[data-theme="dark"]) .offer-panel .mini-row{border-bottom:1px solid var(--theme-border);}
:where(:root[data-theme="dark"]) .about-band{background:var(--theme-soft);}
:where(:root[data-theme="dark"]) .about-points strong{color:var(--theme-accent);}
:where(:root[data-theme="dark"]) .about-points span{color:var(--theme-muted);}
:where(:root[data-theme="dark"]) .page-title{background:var(--theme-soft);border-top:1px solid var(--theme-border);}
:where(:root[data-theme="dark"]) .breadcrumb{color:var(--theme-muted);}
:where(:root[data-theme="dark"]) .pill{background:var(--theme-soft);color:var(--theme-accent);}
:where(:root[data-theme="dark"]) .notice{background:var(--theme-soft);color:var(--theme-muted);}
:where(:root[data-theme="dark"]) .category-nav{border-bottom:1px solid var(--theme-border);}
:where(:root[data-theme="dark"]) .category-nav a{color:var(--theme-muted);border:1px solid var(--theme-border);background:var(--theme-soft);}
:where(:root[data-theme="dark"]) .category-nav a:hover{color:var(--theme-accent);background:var(--theme-soft);}
:where(:root[data-theme="dark"]) .search input{border:1px solid var(--theme-border);background:var(--theme-soft);}
:where(:root[data-theme="dark"]) .table-category span{color:var(--theme-muted);}
:where(:root[data-theme="dark"]) .price-table th{color:var(--theme-muted);background:var(--theme-soft);}
:where(:root[data-theme="dark"]) .price-table td{border-bottom:1px solid var(--theme-border);}
:where(:root[data-theme="dark"]) .price-table tr:hover td{background:var(--theme-soft);}
:where(:root[data-theme="dark"]) .price-table .price-cell{color:var(--theme-accent);}
:where(:root[data-theme="dark"]) .price-cell small{color:var(--theme-muted);}
:where(:root[data-theme="dark"]) .price-cell .arrow{color:var(--theme-muted);}
:where(:root[data-theme="dark"]) .price-foot{color:var(--theme-muted);}
:where(:root[data-theme="dark"]) .empty{color:var(--theme-muted);}
:where(:root[data-theme="dark"]) .product-image{background:var(--theme-surface);color:var(--theme-muted);}
:where(:root[data-theme="dark"]) .product-price{color:var(--theme-accent);}
:where(:root[data-theme="dark"]) .variant-row{border-top:1px solid var(--theme-border);}
:where(:root[data-theme="dark"]) .map-box{border:1px solid var(--theme-border);background:var(--theme-soft);}
:where(:root[data-theme="dark"]) .map-fallback{color:var(--theme-muted);}
:where(:root[data-theme="dark"]) .calculator{background:var(--theme-soft);border:1px solid var(--theme-border);}
:where(:root[data-theme="dark"]) .field{color:var(--theme-muted);}
:where(:root[data-theme="dark"]) .field input,:where(:root[data-theme="dark"]) .field select,:where(:root[data-theme="dark"]) .field textarea{border:1px solid var(--theme-border);color:var(--theme-text);background:var(--theme-surface);}
:where(:root[data-theme="dark"]) .calc-result{border-top:1px solid var(--theme-border);}
:where(:root[data-theme="dark"]) .calc-result b{color:var(--theme-accent);}
:where(:root[data-theme="dark"]) .calc-result.error b{color:var(--theme-error);}
:where(:root[data-theme="dark"]) .zone-tab{border:1px solid var(--theme-border);background:var(--theme-surface);}
:where(:root[data-theme="dark"]) .delivery-table th,:where(:root[data-theme="dark"]) .delivery-table td{border-bottom:1px solid var(--theme-border);}
:where(:root[data-theme="dark"]) .delivery-table th{background:var(--theme-soft);}
:where(:root[data-theme="dark"]) .contact-phone{color:var(--theme-accent);}
:where(:root[data-theme="dark"]) .contact-item{border-top:1px solid var(--theme-border);}
:where(:root[data-theme="dark"]) .contact-side{background:var(--theme-soft);}
:where(:root[data-theme="dark"]) .preview-note{background:var(--theme-soft);color:var(--theme-muted);}
:where(:root[data-theme="dark"]) .skip{background:var(--theme-surface);}
:where(:root[data-theme="dark"]) dialog{border:1px solid var(--theme-border);}
:where(:root[data-theme="dark"]) .change-row{border-bottom:1px solid var(--theme-border);}
:where(:root[data-theme="dark"]) .change-row del{color:var(--theme-warning);}
:where(:root[data-theme="dark"]) .change-row strong{color:var(--theme-accent);}
:where(:root[data-theme="dark"]) .admin-shell{background:var(--theme-soft);}
:where(:root[data-theme="dark"]) .admin-nav button{color:var(--theme-muted);}
:where(:root[data-theme="dark"]) .admin-nav button.active{background:var(--theme-soft);color:var(--theme-accent);}
:where(:root[data-theme="dark"]) .admin-card{background:var(--theme-surface);border:1px solid var(--theme-border);}
:where(:root[data-theme="dark"]) .admin-table td,:where(:root[data-theme="dark"]) .admin-table th{border-bottom:1px solid var(--theme-border);}
:where(:root[data-theme="dark"]) .admin-table th{color:var(--theme-muted);background:var(--theme-soft);}
:where(:root[data-theme="dark"]) .price-input{border:1px solid var(--theme-border);}
:where(:root[data-theme="dark"]) .price-input.changed{background:var(--theme-warning-bg);border-color:var(--theme-warning);}
:where(:root[data-theme="dark"]) .admin-actions{border-top:1px solid var(--theme-border);}
:where(:root[data-theme="dark"]) .mini-btn{border:1px solid var(--theme-border);background:var(--theme-surface);}
:where(:root[data-theme="dark"]) .login-card{background:var(--theme-surface);border:1px solid var(--theme-border);}
:where(:root[data-theme="dark"]) .error-text{color:var(--theme-error);}
:where(:root[data-theme="dark"]) .admin-status{background:var(--theme-soft);color:var(--theme-accent);}
:where(:root[data-theme="dark"]) .price-tabs button{background:var(--theme-soft);border:1px solid var(--theme-border);}
:where(:root[data-theme="dark"]) .loading{color:var(--theme-muted);}
:where(:root[data-theme="dark"]) .help{color:var(--theme-muted);}
@media (max-width:740px){
:where(:root[data-theme="dark"]) .mobile-toggle{border:1px solid var(--theme-border);background:var(--theme-surface);}
:where(:root[data-theme="dark"]) .service-strip a,:where(:root[data-theme="dark"]) .service-strip a:first-child{border-bottom:1px solid var(--theme-border);}
:where(:root[data-theme="dark"]) .category-nav a{border:1px solid var(--theme-border);}
}
:where(:root[data-theme="dark"]) .content-group{border:1px solid var(--theme-border);}
:where(:root[data-theme="dark"]) .content-group legend{color:var(--theme-accent);}
:where(:root[data-theme="dark"]) .pricing-fields{border:1px solid var(--theme-border);}
:where(:root[data-theme="dark"]) .pricing-fields legend{color:var(--theme-accent);}
:where(:root[data-theme="dark"]) .price-input[readonly]{background:var(--theme-soft);color:var(--theme-muted);}
:where(:root[data-theme="dark"]) .price-expand{border:1px solid var(--theme-border);background:var(--theme-soft);color:var(--theme-accent);}
:where(:root[data-theme="dark"]) .price-variant{background:var(--theme-soft);}
:where(:root[data-theme="dark"]) .price-auto{color:var(--theme-muted);}
:where(:root[data-theme="dark"]) .delivery-price-editor caption{color:var(--theme-muted);}
:where(:root[data-theme="dark"]) .delivery-inherited{background:var(--theme-soft);color:var(--theme-muted);}
:where(:root[data-theme="dark"]) .inherited-rate:hover{color:var(--theme-accent);}
:where(:root[data-theme="dark"]) .address-search{border-bottom:1px solid var(--theme-border);}
:where(:root[data-theme="dark"]) .address-result{border:1px solid var(--theme-border);background:var(--theme-surface);color:var(--theme-accent);}
:where(:root[data-theme="dark"]) .address-result:hover{background:var(--theme-soft);}
:where(:root[data-theme="dark"]) #calc-mass{color:var(--theme-accent);}
@media (max-width:740px){
:where(:root[data-theme="dark"]) .navbar .nav a{border-bottom:1px solid var(--theme-border);}
:where(:root[data-theme="dark"]) .navbar .nav a.active{background:var(--theme-soft);color:var(--theme-accent);}
}
:where(:root[data-theme="dark"]) .catalog-base{color:var(--theme-text);}
:where(:root[data-theme="dark"]) .catalog-base small{color:var(--theme-muted);}
:where(:root[data-theme="dark"]) .catalog-offer,:where(:root[data-theme="dark"]) .catalog-offer small{color:var(--theme-accent);}
:where(:root[data-theme="dark"]) .catalog-offer{border-left:2px solid var(--theme-border);}
@media (max-width:740px){
:where(:root[data-theme="dark"]) .navbar .nav{background:var(--theme-surface);border:1px solid var(--theme-border);}
}
:where(:root[data-theme="dark"]) .map-credits{color:var(--theme-muted);}
:where(:root[data-theme="dark"]) .calc-details{color:var(--theme-muted);}
:where(:root[data-theme="dark"]) .gallery-grid button{background:var(--theme-soft);}
:where(:root[data-theme="dark"]) .gallery-grid figcaption{color:var(--theme-muted);}
:where(:root[data-theme="dark"]) .gallery-empty{border-bottom:1px solid var(--theme-border);}
:where(:root[data-theme="dark"]) .gallery-editor-section{border-bottom:1px solid var(--theme-border);}
:where(:root[data-theme="dark"]) .gallery-admin-photo{border:1px solid var(--theme-border);}
:where(:root[data-theme="dark"]) .media-dialog{background:var(--theme-surface);}
:where(:root[data-theme="dark"]) .media-close{border:1px solid var(--theme-border);background:var(--theme-surface);color:var(--theme-accent);}
:where(:root[data-theme="dark"]) .announcement-image{background:var(--theme-soft);}
:where(:root[data-theme="dark"]) .announcement-text{color:var(--theme-text);}
:where(:root[data-theme="dark"]) .gallery-lightbox{background:var(--theme-surface);}
:where(:root[data-theme="dark"]) .home-pick{color:var(--theme-muted);}
:where(:root[data-theme="dark"]) .service-strip .service-icon{background:var(--theme-soft);color:var(--theme-accent);border:1px solid var(--theme-border);}
:where(:root[data-theme="dark"]) .service-icon .service-icon-tint{fill:var(--theme-icon-fill);}
:where(:root[data-theme="dark"]) .service-strip a:hover .service-icon,:where(:root[data-theme="dark"]) .service-strip a:focus-visible .service-icon{background:var(--theme-soft);border-color:var(--theme-border);}
:where(:root[data-theme="dark"]) .media-dialog.gallery-lightbox{background:var(--theme-surface);}
:where(:root[data-theme="dark"]) .announcement-row{border:1px solid var(--theme-border);}
:where(:root[data-theme="dark"]) .announcement-row.editing{background:var(--theme-soft);}
:where(:root[data-theme="dark"]) .announcement-row small{color:var(--theme-muted);}
:where(:root[data-theme="dark"]) .popup-status{background:var(--theme-soft);color:var(--theme-accent);}
:where(:root[data-theme="dark"]) .rich-editor{border:1px solid var(--theme-border);}
:where(:root[data-theme="dark"]) .rich-toolbar{background:var(--theme-soft);border-bottom:1px solid var(--theme-border);}
:where(:root[data-theme="dark"]) .rich-toolbar button,:where(:root[data-theme="dark"]) .rich-toolbar select{border:1px solid var(--theme-border);background:var(--theme-surface);color:var(--theme-text);}
:where(:root[data-theme="dark"]) .rich-toolbar button:hover{background:var(--theme-soft);}
:where(:root[data-theme="dark"]) .rich-content{background:var(--theme-surface);}
:where(:root[data-theme="dark"]) .rich-link:not([hidden]){background:var(--theme-soft);}
:where(:root[data-theme="dark"]) .background-library figure{border:1px solid var(--theme-border);}
:where(:root[data-theme="dark"]) .background-page{border:1px solid var(--theme-border);}
:where(:root[data-theme="dark"]) .background-selected{background:var(--theme-soft);border:1px solid var(--theme-border);}
:where(:root[data-theme="dark"]) .background-selected span{color:var(--theme-muted);}
@media (min-width:1441px){
:where(:root[data-theme="dark"]) body.has-page-background{background-color:var(--theme-soft);}
:where(:root[data-theme="dark"]) body.has-page-background>#main{background:var(--theme-surface);}
:where(:root[data-theme="dark"]) body.has-page-background>#header{background:var(--theme-surface);}
}
:where(:root[data-theme="dark"]) .background-upload{color:var(--theme-accent);}
:where(:root[data-theme="dark"]) .background-upload input{color:var(--theme-text);}
:where(:root[data-theme="dark"]) .background-upload input::file-selector-button{border:1px solid var(--theme-border);background:var(--theme-soft);color:var(--theme-accent);}
:where(:root[data-theme="dark"]) .background-set{border:1px solid var(--theme-border);}
:where(:root[data-theme="dark"]) #background-status{color:var(--theme-accent);}
:where(:root[data-theme="dark"]) .unavailable-notice{color:var(--theme-error);}
:where(:root[data-theme="dark"]) .rate-mode{background:var(--theme-soft);}
:where(:root[data-theme="dark"]) .rate-result{color:var(--theme-accent);}
:where(:root[data-theme="dark"]) .logo-option{border:2px solid var(--theme-border);background:var(--theme-surface);}
:where(:root[data-theme="dark"]) .logo-option:has(input:checked){background:var(--theme-soft);}
:where(:root[data-theme="dark"]) .photo-editor{color:var(--theme-text);background:var(--theme-surface);}
:where(:root[data-theme="dark"]) .photo-stage{background:var(--theme-soft);}
:where(:root[data-theme="dark"]) .photo-settings fieldset{border:1px solid var(--theme-border);}
:where(:root[data-theme="dark"]) .photo-settings output{color:var(--theme-accent);}
:where(:root[data-theme="dark"]) .photo-editor footer{border-top:1px solid var(--theme-border);}
:where(:root[data-theme="dark"]) .photo-editor footer{background:var(--theme-surface);}
:where(:root[data-theme="dark"]) .delivery-price-input{border:1px solid var(--theme-border);}
:where(:root[data-theme="dark"]) .account-forms form{border:1px solid var(--theme-border);}
:where(:root[data-theme="dark"]) .account-forms [data-account-status]{color:var(--theme-accent);}
:where(:root[data-theme="dark"]) .delivery-map-dialog{background:var(--theme-surface);}
:where(:root[data-theme="dark"]) .map-workspace-bar{border-bottom:1px solid var(--theme-border);}
:where(:root[data-theme="dark"]) .delivery-map-dialog .map-credits{background:var(--theme-surface);}
:where(:root[data-theme="dark"]) .delivery-map-dialog .calculator{background:var(--theme-surface);}
:where(:root[data-theme="dark"]) .site-version{background:var(--theme-surface);color:var(--theme-muted);}
:where(:root[data-theme="dark"]) .price-options-toggle{border:1px solid var(--theme-border);background:var(--theme-surface);color:var(--theme-muted);}
:where(:root[data-theme="dark"]) .price-options-toggle[aria-expanded="true"]{background:var(--theme-soft);color:var(--theme-accent);}
:where(:root[data-theme="dark"]) .price-options-row td{background:var(--theme-soft);}
:where(:root[data-theme="dark"]) .catalog-prices .catalog-offer strong,:where(:root[data-theme="dark"]) .mini-prices .catalog-offer strong{color:var(--theme-accent);}
:where(:root[data-theme="dark"]) .product-base{color:var(--theme-text);}
:where(:root[data-theme="dark"]) .quantity-arrows button{background:var(--theme-soft);color:var(--theme-accent);}
:where(:root[data-theme="dark"]) .quantity-arrows button:hover{background:var(--theme-soft);}
:where(:root[data-theme="dark"]) .announcement-row.editing{border-color:var(--theme-border);}
:where(:root[data-theme="dark"]) .announcement-row.announcement-current{background:var(--theme-soft);}
:where(:root[data-theme="dark"]) .announcement-row.announcement-muted{background:var(--theme-soft);border-color:var(--theme-border);}
:where(:root[data-theme="dark"]) .announcement-muted>div:first-child{color:var(--theme-muted);}
:where(:root[data-theme="dark"]) .announcement-muted .popup-status{background:var(--theme-soft);color:var(--theme-muted);}
:where(:root[data-theme="dark"]) .admin-table .admin-category th{color:var(--theme-accent);background:var(--theme-soft);}
:where(:root[data-theme="dark"]) .product-navigation{border-bottom:1px solid var(--theme-border);}
:where(:root[data-theme="dark"]) .product-navigation a{color:var(--theme-accent);}
:where(:root[data-theme="dark"]) .product-navigation strong{color:var(--theme-text);}

:where(:root[data-theme="dark"]) body{background:#121a16}
:where(:root[data-theme="dark"]) dialog{background:var(--theme-surface);color:var(--theme-text)}
:where(:root[data-theme="dark"]) input,:where(:root[data-theme="dark"]) select,:where(:root[data-theme="dark"]) textarea{color:var(--theme-text);background-color:var(--theme-surface);accent-color:var(--theme-accent)}
:where(:root[data-theme="dark"]) input::placeholder,:where(:root[data-theme="dark"]) textarea::placeholder{color:var(--theme-muted);opacity:1}
:where(:root[data-theme="dark"]) button{color:inherit}
:where(:root[data-theme="dark"]) .btn.primary,:where(:root[data-theme="dark"]) .btn.dark,:where(:root[data-theme="dark"]) .price-tabs button.active,:where(:root[data-theme="dark"]) .zone-tab.active{color:#fff}
:where(:root[data-theme="dark"]) .brand,:where(:root[data-theme="dark"]) .logo-option img{background:#fff;border-radius:4px}
:where(:root[data-theme="dark"]) .brand{padding:6px}
:where(:root[data-theme="dark"]) .product-image>img{background:#fff;border-radius:6px}
/* Match the wide-screen background and opaque content frame in style.css. */
@media(min-width:1441px){
:where(:root[data-theme="dark"]) body.has-page-background{background-image:linear-gradient(#121a16bf,#121a16bf),var(--page-background)}
}
:where(:root[data-theme="dark"]) .leaflet-bar a,:where(:root[data-theme="dark"]) .leaflet-control-attribution,:where(:root[data-theme="dark"]) .leaflet-popup-content-wrapper,:where(:root[data-theme="dark"]) .leaflet-popup-tip{background:var(--theme-surface);color:var(--theme-text)}
:where(:root[data-theme="dark"]) .leaflet-container a{color:var(--theme-accent)}
:where(:root[data-theme="dark"]) .leaflet-bar a:hover{background:var(--theme-soft)}
:where(:root[data-theme="dark"]) .popup-default-colors{--popup-text-bg:var(--theme-surface)!important;--popup-text-color:var(--theme-text)!important}
:where(:root[data-theme="dark"]) .announcement-dialog.popup-text-only{background:var(--popup-text-bg)}

:where(:root[data-theme="dark"]) .product-image .product-ai-label{color:var(--theme-muted)}
