/* CSS, public/themes.css, readable light and charcoal themes including checkout and operator screens. */
:root{--pet-panel:#fff;--pet-ink:#203b49;--pet-muted:#536975;--pet-line:#cbd9dc;--pet-soft:#edf3f7}
.theme-toggle{display:grid;place-items:center;width:44px;height:44px;flex-shrink:0;padding:10px;color:#30454e;border:1px solid #ccd5d6;border-radius:9px;background:#fff}
.theme-toggle:hover{background:#e9efeb}.theme-toggle svg{width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.theme-toggle .theme-sun{display:none}
html[data-theme="dark"]{color-scheme:dark;--bg:#10171c;--surface:#19242b;--raised:#213039;--line:#34464f;--text:#edf4f5;--muted:#b0c1c8;--blue:#8db8ff;--success:#9edcba;--danger:#ffb3be;--pet-panel:#1b2932;--pet-ink:#edf4f5;--pet-muted:#b0c1c8;--pet-line:#405762;--pet-soft:#263a47}
html[data-theme="dark"] body{background:var(--bg);color:var(--text)}
html[data-theme="dark"] :is(h1,h2,h3,.page-heading h1,.product-card h3,.price,.stat-card strong,.checkout-summary strong,.integration-facts strong,.integration-provider h3,.fragment-job strong,.supplier-listing h3,.mobile-brand){color:var(--text)}
html[data-theme="dark"] a{color:#99c1ff}html[data-theme="dark"] a:hover{color:#d1e3ff}
html[data-theme="dark"] :is(.hero-copy p,.hero-kicker,.hero-note,.store-heading p,.catalog-help,.result-count,.product-description,.product-category,.product-meta,.product-bottom small,.page-heading p,.content-panel p,.content-panel li,.empty-state p,.integration-provider p,.integration-hint,.integrations-intro p,.integration-facts span,.supplier-listing p,.integration-job-message,.auto-lead,.order-info p,.order-info small,.order-id,.order-note,.profile-details p,.admin-row small,.stat-card,.integration-artifact,.integration-order-id,.field small,.modal-description,.modal-footer,.terms-row,.footer,.footer a,.rush-story-copy p,.overline,.eyebrow,.optional,.loading){color:var(--muted)}
html[data-theme="dark"] .hero-copy h1 span{color:#8db8ff}
html[data-theme="dark"] .sidebar{background:#0b1217;border-color:var(--line)}
html[data-theme="dark"] .nav-item{color:#b8cbd4}html[data-theme="dark"] .nav-item:hover{background:#22353e;color:#fff}
html[data-theme="dark"] .nav-item.active{background:#284753;color:#f0fafb}
html[data-theme="dark"] :is(.topbar,.footer,.catalog-help,.product-bottom,.admin-order-form,.modal-header){border-color:var(--line)}
html[data-theme="dark"] :is(.search-wrap,.orders-button,.profile-button,.theme-toggle,.category-tab,.catalog-toolbar select,.secondary,.admin-tabs button,.chip){background:var(--surface);color:var(--text);border-color:var(--line)}
html[data-theme="dark"] :is(.search-wrap input,.field label,.field input,.field select,.field textarea){color:var(--text)}
html[data-theme="dark"] :is(.search-wrap input::placeholder,.field input::placeholder,.field textarea::placeholder){color:#a4b9c4}
html[data-theme="dark"] :is(.search-wrap>span,.search-wrap kbd){color:#b0c1c8;border-color:var(--line)}
html[data-theme="dark"] :is(.theme-toggle:hover,.secondary:hover,.orders-button:hover,.profile-button:hover,.category-tab:hover,.chip:hover){background:#293c48;color:#fff;border-color:#63828f}
html[data-theme="dark"] .theme-toggle .theme-sun{display:block}html[data-theme="dark"] .theme-toggle .theme-moon{display:none}
html[data-theme="dark"] :is(.product-card,.order-card,.content-panel,.profile-card,.stat-card,.admin-product,.admin-order,.integration-provider,.integration-workspace,.supplier-listing,.fragment-job,.empty-state,.modal-panel){background:var(--surface);border-color:var(--line);box-shadow:none}
html[data-theme="dark"] .product-card:hover{border-color:#66818e;box-shadow:0 12px 28px #0003}
html[data-theme="dark"] :is(.field input,.field select,.field textarea){background:#121e25;border-color:#4b6470}
html[data-theme="dark"] :is(.product-preview,.checkout-summary,.integration-empty,.admin-bar,.quantity-control button,.icon-button){background:#213039;color:var(--text);border-color:var(--line)}
html[data-theme="dark"] :is(.checkout-summary span,.checkout-summary>div,.product-preview p,.integration-empty){color:var(--muted)}
html[data-theme="dark"] .checkout-summary .total{border-color:var(--line);color:var(--text)}
html[data-theme="dark"] dialog#modal{background:var(--surface);color:var(--text);border-color:#526b78}
html[data-theme="dark"] .exact-invoice{border-color:#4b6470}
html[data-theme="dark"] :is(.exact-invoice .delivery-text,.exact-invoice p){color:var(--text)}
html[data-theme="dark"] :is(.primary,.buy-button){background:#3478e5;border-color:#3478e5;color:#fff}
html[data-theme="dark"] .primary:hover{background:#2464cc;border-color:#2464cc}
html[data-theme="dark"] :is(.category-tab.active,.chip.active,.admin-tabs button.active){background:#2e5365;border-color:#719aaa;color:#fff}
html[data-theme="dark"] .category-tab small{background:#2c3e48;color:#cedde3}
html[data-theme="dark"] .product-term{background:#263e4a;color:#c3e1ed}
html[data-theme="dark"] .product-icon.crown{background:#3d2b40;color:#eab8e6}
html[data-theme="dark"] .product-icon.star{background:#403722;color:#f3d18b}
html[data-theme="dark"] .product-icon.phone{background:#233e34;color:#a6d9be}
html[data-theme="dark"] .product-icon.telegram{background:transparent}
html[data-theme="dark"] :is(.profile-avatar,.integration-logo){background:#263c57;color:#a8cdff;border-color:#476282}
html[data-theme="dark"] :is(.status,.notice){background:#223b50;color:#c3ddf4;border-color:#42637c}
html[data-theme="dark"] :is(.status-completed,.notice.success,.toast.success,.integration-state.ready){background:#203c32;color:#b8e9c9;border-color:#466c55}
html[data-theme="dark"] :is(.status-cancelled,.notice.error,.toast.error,.integration-state.failed,.danger){background:#412b32;color:#ffbdc8;border-color:#77505b}
html[data-theme="dark"] .integration-state.pending{background:#413724;color:#f4d391;border-color:#7e6942}
html[data-theme="dark"] .store-announcement{background:#243b31;color:#c0ddc9;border-color:#415e4d}
html[data-theme="dark"] .rush-story{background:#192b33;border-color:#3c535f}
html[data-theme="dark"] .mascot-scene{background:#19344b;border-color:#31556e}
html[data-theme="dark"] .mascot-scene:before{border-color:#416781}
html[data-theme="dark"] :is(.mascot-label,.mascot-plus){color:#a4cce6}
html[data-theme="dark"] :is(.mascot-message,.motion-control){background:#233f53;color:#d6edfc;border-color:#527590}
html[data-theme="dark"] .toast{background:#233440;color:var(--text);border-color:#607f91}
html[data-theme="dark"] .text-link{color:#99c1ff}
.operator-mode .top-actions{visibility:visible}.operator-mode .top-actions>:not(.theme-toggle){display:none}
@media(max-width:760px){.top-actions{gap:7px}.theme-toggle{width:40px;height:40px;padding:9px}.mobile-brand{font-size:18px}.topbar{column-gap:10px}}
