.site-preferences{display:flex;align-items:center;gap:7px;flex:0 0 auto}
.theme-toggle{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:34px;padding:0 10px;border:1px solid var(--line,#ece7e3);border-radius:8px;background:#fff;color:#514842;font-size:11px;font-weight:700;white-space:nowrap}
.theme-toggle-icon{font-size:16px;line-height:1}.language-select-label select{width:112px;min-height:34px;padding:0 8px;border:1px solid var(--line,#ece7e3);border-radius:8px;background:#fff;color:#514842;font-size:11px;font-weight:650}
.sr-only{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}
html[data-theme="dark"]{color-scheme:dark;--paper:#171514;--white:#211e1c;--ink:#f4efeb;--muted:#b8aea8;--line:#39322e;--red-soft:#392326;--shadow:0 14px 45px #0005;background:#171514;color:#f4efeb}
html[data-theme="dark"] body{background:#171514;color:#f4efeb}
html[data-theme="dark"] .topbar,html[data-theme="dark"] .footer,html[data-theme="dark"] .client-sidebar,html[data-theme="dark"] .client-welcome,html[data-theme="dark"] .client-orders,html[data-theme="dark"] .client-catalog,html[data-theme="dark"] .client-order,html[data-theme="dark"] .dash-panel,html[data-theme="dark"] .stat-card,html[data-theme="dark"] .dashboard-sidebar,html[data-theme="dark"] .admin-order-card,html[data-theme="dark"] .auth-card,html[data-theme="dark"] .product-modal,html[data-theme="dark"] .product-card{background:#211e1c;color:#f4efeb;border-color:#39322e}
html[data-theme="dark"] .client-welcome{background:linear-gradient(120deg,#211e1c,#302321)}
html[data-theme="dark"] .client-count,html[data-theme="dark"] .admin-order-summary,html[data-theme="dark"] .admin-order-line,html[data-theme="dark"] .order-detail-item,html[data-theme="dark"] .order-detail-management select,html[data-theme="dark"] .language-select-label select,html[data-theme="dark"] .theme-toggle,html[data-theme="dark"] .icon-button{background:#292522;color:#f4efeb;border-color:#49403a}
html[data-theme="dark"] input,html[data-theme="dark"] select,html[data-theme="dark"] textarea{background:#191716;color:#f4efeb;border-color:#49403a}
html[data-theme="dark"] .order-detail-info>div,html[data-theme="dark"] .catalog-filters,html[data-theme="dark"] .history-filters,html[data-theme="dark"] .admin-menu-toggle{background:#292522;color:#f4efeb;border-color:#49403a}
html[data-theme="dark"] .admin-order-meta,html[data-theme="dark"] .order-summary-main>small,html[data-theme="dark"] .order-summary-main>span,html[data-theme="dark"] .client-order-route,html[data-theme="dark"] .client-order-items{color:#c7bdb6}
html[data-theme="dark"] .service-card{background:#211e1c;border-color:#39322e;color:#f4efeb}
html[data-theme="dark"] .offer-detail{background:#211e1c;border-color:#39322e}
html[data-theme="dark"] .drawer{background:#211e1c;color:#f4efeb}
html[data-theme="dark"] .main-nav{color:#e2d9d3}
html[data-theme="dark"] .main-nav a,html[data-theme="dark"] .back-site,html[data-theme="dark"] .admin-link{color:#e2d9d3}
html[data-theme="dark"] .cart-trigger,html[data-theme="dark"] .button-light,html[data-theme="dark"] .product-order-button,html[data-theme="dark"] .qty-control button,html[data-theme="dark"] .nav-toggle{background:#302b28;color:#fff!important;border-color:#625650}
html[data-theme="dark"] .cart-trigger .eben-icon,html[data-theme="dark"] .cart-trigger #cart-count,html[data-theme="dark"] .button-light .eben-icon,html[data-theme="dark"] .nav-toggle span{color:#fff}
html[data-theme="dark"] .button-light:hover,html[data-theme="dark"] .product-order-button:hover,html[data-theme="dark"] .qty-control button:hover{background:#453a35;color:#fff!important}
html[data-theme="dark"] .add-button{background:#49282b;color:#fff;border:1px solid #744146}
html[data-theme="dark"] .service-tab{background:#292522;color:#e2d9d3;border-color:#49403a}
html[data-theme="dark"] .service-tab:hover,html[data-theme="dark"] .service-tab.active{background:var(--red);color:#fff;border-color:var(--red)}
html[data-theme="dark"] .cart-price-choice,html[data-theme="dark"] .checkout-fields select{background:#191716;color:#f4efeb;border-color:#49403a}
html[data-theme="dark"] .checkout-fields label{color:#e2d9d3}
html[data-theme="dark"] .cart-row .remove-item,html[data-theme="dark"] .description-toggle{color:#ff777d}
html[dir="rtl"] .site-preferences{direction:ltr}
@media(max-width:850px){.site-preferences{gap:5px}.theme-toggle{width:35px;min-height:35px;padding:0}.theme-toggle-label{display:none}.language-select-label select{width:91px;min-height:35px;padding:0 5px;font-size:10px}}
@media(max-width:560px){.site-preferences{gap:4px}.language-select-label select{width:82px}.client-page .topbar .back-site{display:none}}
@media(max-width:700px){
  .topbar{display:grid;grid-template-columns:minmax(0,1fr) 40px max-content;grid-template-rows:auto auto;gap:6px 8px;height:auto;min-height:66px;padding:8px 12px;align-content:center}
  .brand{grid-column:1;grid-row:1;min-width:0;margin:0}
  .nav-toggle{display:flex;grid-column:2;grid-row:1;order:0;flex:0 0 40px;width:40px;height:40px;justify-self:center;align-self:center;z-index:2}
  .header-actions{grid-column:3;grid-row:1;order:0;min-width:0;margin:0;gap:6px;justify-self:end}
  .site-preferences{grid-column:1/-1;grid-row:2;order:0;justify-self:end;gap:6px}
  .main-nav{top:100%;left:0;right:0}
}
@media(max-width:430px){
  .topbar{grid-template-columns:minmax(0,1fr) 38px max-content;column-gap:6px;padding-right:10px;padding-left:10px}
  .brand{gap:5px;font-size:12px}
  .brand img{width:28px;height:28px}
  .nav-toggle{width:38px;height:38px;flex-basis:38px;padding:8px}
  .header-actions{gap:5px}
  .cart-trigger{min-height:38px;padding:6px 8px;font-size:11px;white-space:nowrap}
  .cart-trigger #cart-count{width:20px;height:20px}
  .admin-link{width:34px;height:34px}
  .site-preferences .language-select-label select{width:82px}
}
@media(max-width:350px){.brand{font-size:11px;gap:4px}.brand img{width:25px;height:25px}.cart-trigger{gap:4px;padding:5px 6px;font-size:10px}.admin-link{width:30px;height:30px}}
html[data-theme="dark"] .nav-toggle span{background:#f4efeb}
