:root{color-scheme:light}
:root[data-theme="dark"]{color-scheme:dark;--orange:#ff8752;--ink:#f3f0e5;--olive:#f3f0e5;--muted:#b7bbae;--cream:#1b211c;--line:#3b443a;--border:#3b443a}
.theme-bar{display:flex;justify-content:flex-end;grid-column:1/-1;width:100%;margin:0 0 18px}
.theme-toggle{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:42px;padding:9px 15px;border:1px solid #dedfd3;border-radius:24px;background:#fffdf8;color:#394332;font:600 12px 'DM Sans',sans-serif;cursor:pointer;white-space:nowrap}
.theme-icon{font-size:19px;line-height:1}
.theme-toggle:hover{background:#f4f1e7}
.theme-toggle:focus-visible{outline:3px solid #e75a27;outline-offset:3px}
.access-main>.theme-bar{margin-bottom:0}
html[data-theme="dark"] body{background:#141a15;color:var(--ink)}
html[data-theme="dark"] :is(dialog,.sidebar,.card,.setup-card,.admin-card,.order-board,.order-detail,.order-card,.order-metrics>div,.admin-metric,.receipt-block,.search,.bottom-nav,.restaurant-menu-navigation,.restaurant-bag-dock,.restaurant-meal,.menu-editor,.summary-block,.record-grid>div,.partner-signed-in){background:#20271f;color:var(--ink);border-color:var(--border)}
html[data-theme="dark"] :is(.hero,.join,.notice,.auth-preview-note,.profile-access,.profile-avatar,.hero-tags span,.mini-stats>div,.help-box,.next-step,.delivery-items,.payment-note,.customer-box,.order-note,.state-note,.review-guidance,.admin-settings-note,.payment-preview,.receipt-status,.connection-card,.status-note,.check-icon,.review-hero,.hours-list,.restaurant-stats,.restaurant-preview-note,.reviews-overview,.movie-empty,.cinema-note,.zone-note,.delivery-summary,.pin-status,.empty-mark,.empty-icon,.empty-symbol,.verification-row>span){background:#293226;color:#d8dfce;border-color:#414a3b}
html[data-theme="dark"] :is(.theme-toggle,input,select,textarea,.auth-password,#authForm input,.restaurant-menu-search,.order-search,.secondary,.guest-continue,.restaurant-category-list>button,.restaurant-view-tabs>button>span,.qty button,.tab-count,.stage-progress>span,.restaurant-round,.badge,.map-actions button){background:#1b221b;color:#ecefdf;border-color:#48503f}
html[data-theme="dark"] :is(input,textarea)::placeholder{color:#a7af9d;opacity:1}
html[data-theme="dark"] :is(.theme-toggle:hover,.place-results button:hover,.hours-list>div.today){background:#35402e}
html[data-theme="dark"] :is(p,small,.small-copy,.hint,.carddesc,.cardmeta,.herofoot,.eyebrow,.studio-label,.step,.home-link,.sort,.sample,.restaurant-cuisine,.restaurant-city,.hours-prompt,.restaurant-hours>small,.restaurant-stats small,.restaurant-stats>div>span,.restaurant-stats>button>span,.restaurant-menu-heading>span,.restaurant-menu-heading p,.restaurant-meal p,.meal-category-label,.restaurant-category-list>button,.restaurant-view-tabs>button,.profile-address small,.auth-password button,.auth-divider,.order-tabs button,.order-metrics span,.order-metrics small,.admin-metric>span,.admin-copy,.detail-subtitle,.detail-label,.results-note,.route-stop small,.route-stop p,.route-caption,.map-footnote,.map-status,.map-legend,.offer-top p,.offer-note,.timeline p,.form-status,footer){color:#b7bbae}
html[data-theme="dark"] :is(.header-signup,.step.active,.workspace-link.active,.admin-nav[aria-current=page],.order-tabs button[aria-pressed=true],.bottom-nav .bottom-nav-item.active,.restaurant-view-tabs>button[aria-pressed=true],.restaurant-category-list>button[aria-pressed=true],.order-card[aria-pressed=true],.auth-feedback,.demo-tag,.preview-icon){background:#422b20;color:#ffb58e;border-color:#89583b}
html[data-theme="dark"] :is(.primary,.add,.profile-access button,.place-search button,.restaurant-add,.restaurant-bag-dock>button){background:#b64319;color:#fff}
html[data-theme="dark"] :is(.primary:hover,.restaurant-add:hover){background:#9e3713}
html[data-theme="dark"] :is(.basket,.category.active,.join button,.toast,.tabs button[aria-pressed=true],.service-tabs>button[aria-selected=true],.movie-filters button[aria-selected=true],.availability,.balance-card,.order-metrics .metric-accent,.admin-metric.accent){background:#34472e;color:#fff}
html[data-theme="dark"] :is(.availability p,.availability .eyebrow,.balance-card p,.balance-card .eyebrow,.metric-accent span,.metric-accent small,.admin-metric.accent>span,.admin-metric.accent small){color:#d5dfc9}
html[data-theme="dark"] :is(.auth-switch button,.auth-forgot,.access-forgot,.access-link,.partner-login-link,.workspace-guide-link,.clear-location,.official-link,.movie-empty a,.guide a,.seller-dashboard-link,.review-star,.restaurant-stats button small){color:#ffad80}
html[data-theme="dark"] :is(.status-pill,.status-preparing,.status-ready,.status-picked_up,.admin-tag.approved,.rating,.check-icon.done,.complete-mark,.status-pill.online,.restaurant-verified,.restaurant-verified.unverified){background:#2d3e2b;color:#d2e7bd;border-color:#506247}
html[data-theme="dark"] :is(.danger,.error,.record-error,.status-declined,.admin-tag.rejected,.pin-status.error){color:#ffb3a3}
html[data-theme="dark"] :is(.admin-tag,.admin-tag.changes,.draft-badge,.customer-stamp,.customer-stamp span){background:#453b23;color:#f1dca4;border-color:#75623f}
html[data-theme="dark"] :is(.roundstamp,.welcome-art,.hero-art,.preview-sun,.access-symbol){background:#3e492b;color:#e3e8b2}
html[data-theme="dark"] :is(.bottom-nav .bottom-nav-item:hover,.tabs,.restaurant-menu-navigation){background:#20271f}
html[data-theme="dark"] :is(.bottom-nav .bottom-nav-item,.tabs button){color:#b7bbae}
html[data-theme="dark"] :is(.hero p b,.restaurant-menu-search input,.order-search input,.sort select,.location select){color:var(--ink)}
html[data-theme="dark"] .restaurant-logo{border-color:#20271f}
html[data-theme="dark"] .restaurant-bag-dock{box-shadow:0 -8px 30px #0004}
html[data-theme="dark"] .theme-toggle{border-color:#48503f}
html[data-theme="dark"] .auth-divider:before,html[data-theme="dark"] .auth-divider:after{background:#414a3b}
@media(max-width:600px){.theme-bar{margin-bottom:14px}.theme-toggle{min-height:42px;padding:8px 13px}}
html[data-theme="dark"] :is(#menuDialog,#declineDialog,#adminDialog){background:#20271f;color:var(--ink);border-color:var(--border)}
html[data-theme="dark"] :is(.workspace>header,.plate,.seller-dashboard-link,.upload,.upload-symbol,.meal-placeholder,.check-row,.review-hero>span){background:#293226;color:#e3e8ce;border-color:#48503f}
html[data-theme="dark"] :is(.workspace>header b,.plate strong,.plate small){color:#e3e8ce}
