/* Theme overrides load after page styles; light is the original design. */
.theme-toolbar{display:flex;justify-content:flex-end;align-items:center;gap:10px;padding-block:10px;font:13px/1.4 var(--sans,system-ui);color:var(--muted,#70766a)}
.theme-toolbar button{display:grid;place-items:center;width:44px;height:44px;padding:0;border:1px solid var(--line);border-radius:50%;background:var(--paper);color:var(--ink);font:24px/1 system-ui;cursor:pointer}
.theme-toolbar button:focus-visible{outline:2px solid var(--green,#435a3b);outline-offset:3px}
html[data-theme=dark]{color-scheme:dark;--ink:#edf1e9;--muted:#b2bdb0;--paper:#171e19;--paper-deep:#222c24;--green:#b8d59f;--green-deep:#d2e7bd;--pepper:#f19b80;--line:#424d42;--surface:#222b23;--field:#18211a}
html[data-theme=dark] body{background:var(--paper);color:var(--ink)}
html[data-theme=dark] .brand-mark{background:#bd482f;color:#fff}
html[data-theme=dark] .button:not(.messenger-button):not(.bank-payment-button):not(.messenger-telegram){background:#435f3b;color:#fff}
html[data-theme=dark] .join-card{background:#283d2d;color:#fff}
html[data-theme=dark] .order-panel,html[data-theme=dark] .order-card,html[data-theme=dark] .order-entry,html[data-theme=dark] #login{background:var(--surface);border-color:var(--line)}
html[data-theme=dark] .order-panel input:not([type=checkbox]),html[data-theme=dark] .order-panel textarea,html[data-theme=dark] .order-panel select,html[data-theme=dark] .order-panel #delivery-method,html[data-theme=dark] .dashboard input,html[data-theme=dark] .dashboard select{background:var(--field);color:var(--ink);border-color:var(--line)}
html[data-theme=dark] input::placeholder,html[data-theme=dark] textarea::placeholder{color:#a3afa1;opacity:1}
html[data-theme=dark] .product-info,html[data-theme=dark] .order-payment-details,html[data-theme=dark] .success-details{background:var(--paper-deep);color:var(--ink);border-color:var(--line)}
html[data-theme=dark] .product-row,html[data-theme=dark] .order-summary,html[data-theme=dark] .order-entry[open]>.order-row{border-color:var(--line)}
html[data-theme=dark] .product-row.is-selected,html[data-theme=dark] .order-row:hover{background:#30432d;border-color:#677c5a}
html[data-theme=dark] .order-summary .order-total,html[data-theme=dark] .row-basket,html[data-theme=dark] .row-chevron,html[data-theme=dark] .success-order-details summary{color:#c3dfa9}
html[data-theme=dark] #pickup-note a,html[data-theme=dark] .messenger-text-telegram{color:#76caff}
html[data-theme=dark] .order-error{background:#4a2822;color:#ffc2ad}
html[data-theme=dark] .badge{background:#35472e;color:#d4e9bf}
html[data-theme=dark] .dashboard button{background:#30412f;color:var(--ink);border-color:#64775b}
html[data-theme=dark] .dashboard .view-switch button[aria-pressed=true],html[data-theme=dark] .status-actions button{background:#506f42;color:#fff}
html[data-theme=dark] #notice{color:#ffc2a1}
html[data-theme=dark] .ticker .ticker-topic{color:#bec7b7}
html[data-theme=dark] .ticker .ticker-shop-link{background:#31442c;color:#d5eac1}
html[data-theme=dark] .ticker .ticker-shop-link:hover{background:#435f3b;color:#fff}
html[data-theme=dark] .customer-account-link{background:#193b4e;color:#a1dcff}
html[data-theme=dark] aside[aria-label="Техническое хранение данных"]{background:var(--surface)!important;color:var(--ink)!important;border-color:var(--line)!important}
html[data-theme=dark] .button:focus-visible,html[data-theme=dark] a:focus-visible{outline-color:#d3e8bc}
html[data-theme=dark] .intro,html[data-theme=dark] .about-text{color:var(--muted)}
html[data-theme=dark] .section-switch,html[data-theme=dark] .section-switch:hover{background:#30482b;color:#d4e9bf}
