/* Shared theme tokens; individual service pages inherit the selected mode. */
:root {color-scheme:light dark}
html[data-theme="light"] {color-scheme:light;--background:#f3f6fa;--surface:#fff;--surface-muted:#eaf0f6;--text:#102b46;--muted:#52647a;--border:#ccd9e6;--primary:#d95c0c;--primary-dark:#b74a05;--success:#147e50;--danger:#bb3434;--shadow:0 10px 28px #102b460d;--theme-selected:#fff0e5}
html[data-theme="dark"] {--background:#101521;--surface:#1b2332;--surface-muted:#222d3e;--text:#edf2fc;--muted:#b0bdd1;--border:#38455c;--primary:#2563eb;--primary-dark:#1d4ed8;--success:#69dfab;--danger:#ff9a94;--shadow:0 16px 40px #0005;--theme-selected:#293858}
html[data-theme="dark"] body {background:var(--background);color:var(--text)}
html[data-theme="dark"] :is(.header,.mobile-discovery,.modal-content,.profile-content,.profile-section,.profile-tabs,.profile-list-row,.product-card,.category-card,.shelf-product,.store-card,.cart-item,.order-row,.checkout-content,.checkout-block,.repeat-order-content,.repeat-item,.repeat-order-footer,.support-chat-window,.mobile-bottom-nav,.about-mowo,#auth) {background:var(--surface);color:var(--text);border-color:var(--border)}
html[data-theme="dark"] :is(input,select,textarea,.modal-close,.secondary-button,.quantity-control,.quantity-controls,.repeat-quantity,.order-detail-line,.profile-form-title,.mobile-discovery form,.quick-discovery button,.customer-chat,.chat-message,.repeat-price-legend,.checkout-total-summary) {background:var(--surface-muted);color:var(--text);border-color:var(--border)}
html[data-theme="dark"] :is(input,textarea)::placeholder {color:var(--muted)}
html[data-theme="dark"] :is(.catalog-products-heading h3,#popular-products-section .shelf-heading h3,.order-total,.shelf-product b,.profile-section h3,.form-field span) {color:var(--text)}
html[data-theme="dark"] :is(.catalog-products-heading p,.repeat-order-intro,.repeat-item-info>p,.repeat-old-price,.repeat-price-legend span,.repeat-total-box span,.repeat-total-box small,.catalog-empty p,.intro,.about-description,.about-steps p,footer) {color:var(--muted)}
html[data-theme="dark"] :is(.eyebrow,.shelf-product small,.shelf-heading small,.back,.staff-entry button) {color:#a6beff}
html[data-theme="dark"] :is(#popular-products-section,.catalog-empty) {background:linear-gradient(135deg,#202d49,#2d2549);border-color:#586bc0}
html[data-theme="dark"] #cart-modal .cart-summary {background:var(--surface-muted);border-color:var(--border)}
html[data-theme="dark"] #cart-modal .cart-summary span {color:var(--muted)}
html[data-theme="dark"] .profile-logout-button {background:#352329;color:#ffa49d;border-color:#8b4951}
html[data-theme="dark"] .quick-discovery button.active {background:#324570;color:#fff}
html[data-theme="dark"] .primary-button {background:#285cdd;color:#fff}
html[data-theme="dark"] .profile-tabs button.active {color:#fff}
html[data-theme="dark"] .modal {background:#0009}
html[data-theme="dark"] .language-switcher {background:var(--surface-muted);border-color:var(--border)}
html[data-theme="dark"] :is(.price-row,.payment-methods,.saved-address-block,.saved-address-chip,.saved-card,.profile-list-item,.chat-bubble,.radius-toolbar-slim) {background:var(--surface);color:var(--text);border-color:var(--border)}
html[data-theme="dark"] :is(.price-quantity,.price-quantity button,.card-form,.checkout-grand-total,.delivery-quote,.cart-item-controls button) {background:var(--surface-muted);color:var(--text);border-color:var(--border)}
html[data-theme="dark"] :is(.profile-tabs button:not(.active),.order-kicker,.order-total-label,.radius-toolbar-slim>span) {color:var(--muted)}
html[data-theme="dark"] .price-row:first-child {background:#173b32;border-color:#348069}
/* Checkout amounts must not retain the light theme's dark text. */
html[data-theme="dark"] #checkout-modal .checkout-total-row{color:#c7d2e5;border-color:#40516b;gap:12px}
html[data-theme="dark"] #checkout-modal .checkout-total-row>span{min-width:0;line-height:1.5}
html[data-theme="dark"] #checkout-modal .checkout-total-row strong{color:#f4f7ff;font-size:17px;font-weight:800;font-variant-numeric:tabular-nums;white-space:nowrap;flex-shrink:0}
html[data-theme="dark"] #checkout-modal .checkout-estimated-row strong{color:#a8d4ff;font-size:16px}
html[data-theme="dark"] #checkout-modal .checkout-grand-total{color:#f4f7ff;background:#182b47;border:1px solid #405879}
html[data-theme="dark"] #checkout-modal .checkout-grand-total strong{color:#a8d4ff;font-size:24px}
html[data-theme="dark"] #checkout-modal .checkout-total-summary>small{color:#c7d2e5;line-height:1.6}
