.theme-toggle{display:inline-grid;place-items:center;flex-shrink:0;width:44px;height:44px;border-radius:50%;border:1px solid var(--line);background:var(--white);color:var(--ink);font-size:25px;line-height:1;cursor:pointer}.setup-account small{margin-left:auto}.theme-toggle:focus-visible{outline:3px solid #bacf8f;outline-offset:3px}
:root[data-theme="dark"]{color-scheme:dark;--paper:#191817;--cream:#191817;--white:#272522;--ink:#f6f0e6;--muted:#c4b9a9;--line:#514b42;--lime:#d3e7a7;--lime-dark:#bacf8f;--green:#d3e7a7;--wash:#332e27;--soft:#302c26;--shadow:0 12px 50px #0004;background:var(--paper);color:var(--ink)}
html[data-theme="dark"] :is(.input,select,.choice,.counter button,.day-option,.chip,.day-tabs button,.search-bar,.recipe-tile,.shop-items,.check-box,.profile-card,.delivery-option,.mini-budget,.market-product,.market-cart-preview,.account-entry,.account-dialog input){background:var(--white);color:var(--ink);border-color:var(--line)}
html[data-theme="dark"] :is(.sidebar,.setup-story,.account-dialog){background:var(--paper);color:var(--ink)}
html[data-theme="dark"] :is(.button.secondary,.pill,.brand small,.budget-hint,.setup-review,.side-tip,.week-banner,.stat-icon,.season-card,.notice,.shopping-summary,.install-card,.detail-stats,.step-num,.checkout-totals,.mini-groceries,.week-preset,.market-intro,.market-total,.product-confirm,.selected-product,.account-card,.account-sync-status,.resume-banner,.market-ingredient,.shopping-tabs,.stock-label){background:var(--wash);color:var(--ink);border-color:var(--line)}
html[data-theme="dark"] :is(.button:not(.outline):not(.secondary),.chip.selected,.day-option.selected,.hotspot.selected,.check-box.checked,.pill.lime,.choice.selected .tick){background:var(--lime);color:#213c2e;border-color:var(--lime)}
html[data-theme="dark"] :is(.button.outline,.text-button,.setting-link,.pantry-button,.product-source){color:var(--green)}
html[data-theme="dark"] :is(.choice.selected,.nav-item.active,.day-tabs button.active,.market-ingredient.active,.shopping-tabs button.active){background:#39412e;color:#e5edcf;border-color:#bacf8f}
html[data-theme="dark"] :is(.eyebrow,.location-note,.store-help,.story-copy p,.story-footer,.side-label,.side-location,.breadcrumb,.nav-item,.bottom-nav button,.fineprint,.account-dialog .fineprint,.setup-account small,.product-body>p,.product-body>small,.market-caption,.selected-product small,.checkout-route ol){color:var(--muted)}
html[data-theme="dark"] :is(.nav-item.active,.bottom-nav button.active,.detail-tabs button.active){color:var(--lime)}
html[data-theme="dark"] :is(.notice.warm,.error-note,.account-warning,.storage-warning,.stock-out){background:#493326;color:#ffd4ae}
html[data-theme="dark"] .account-message{color:#ffb3a5}html[data-theme="dark"] .search-bar input{color:var(--ink)}
html[data-theme="dark"] :is(.progress-track,.budget-progress,.step-progress){background:#514b42}
html[data-theme="dark"] .bottom-nav{background:#23211ff5;border-color:var(--line)}
html[data-theme="dark"] :is(.hotspot,.tile-heart,.modal-close-float,.welcome-photo span,.floating-note){background:#272522ed;color:var(--ink);border-color:var(--line)}
html[data-theme="dark"] .setup-footer{background:linear-gradient(#19181700,var(--paper) 12%)}
html[data-theme="dark"] .resume-banner{border-color:var(--line)}
html[data-theme="dark"] :is(.modal-backdrop,.account-backdrop){background:#0009}
@media(max-width:650px){.app-top .theme-toggle{width:40px;height:40px}.app-top .account-entry{max-width:100px}.setup-account{flex-wrap:wrap}.setup-account small{font-size:10px}}
/* All content surfaces must follow the theme, including weekly meal rows. */
html[data-theme="dark"] :is(.recipe-row,.basket-card,.market-store,.choice .tick){background:#272522;color:#f6f0e6;border-color:#514b42}
html[data-theme="dark"] :is(.recipe-row.cooked,.market-store.selected){background:#332e27;color:#f6f0e6;border-color:#8daa68}
html[data-theme="dark"] :is(.basket-card .cart-icon,.nav-item .count,.market-intro>.pill,.product-placeholder){background:#39412e;color:#e5edcf}
html[data-theme="dark"] :is(.recipe-info h3,.basket-card h3,.basket-card .amount,.market-store b){color:#f6f0e6}
html[data-theme="dark"] :is(.recipe-meta,.basket-card p,.season-card p,.week-banner p,.week-stats small,.day-title span,.shop-category h3,.shop-info small,.shop-price small,.profile-card p,.profile-card ol,.detail-stats small,.ingredient-line span:last-child,.delivery-option p,.setup-mobile-brand>span,.mini-budget>span,.mini-groceries small,.market-store small,.market-ingredient small,.market-loading,.product-confirm .fineprint,.product-body .pack-note){color:#c4b9a9}
html[data-theme="dark"] .setup-body .eyebrow{color:#cfbd9c}
html[data-theme="dark"] .pill.peach{background:#493326;color:#ffd4ae}
html[data-theme="dark"] .pill.blue{background:#293e50;color:#c1dcf4}
html[data-theme="dark"] .store-logo.lider{color:#75bfff}
html[data-theme="dark"] .store-logo.jumbo{color:#6bdb95}
html[data-theme="dark"] .store-logo.tottus{color:#9cda75}
html[data-theme="dark"] :is(.store-logo.unimarc,.store-logo.santaisabel){color:#ff8d9d}
html[data-theme="dark"] .store-logo.feria{color:#e5b785}
