.color-mode-toggle { display: grid; place-items: center; width: 39px; height: 42px; flex: 0 0 auto; border: 1px solid var(--line); border-radius: 11px; background: var(--page); color: var(--red); }
.color-mode-toggle svg { width: 22px; height: 22px; }
.mode-sun { display: none; }
:root[data-color-mode="dark"] { color-scheme: dark; --ink: #f6edf1; --muted: #c5b5bf; --line: #493840; --page: #171217; --bg: #171217; --white: #241d24; --pink: #42232f; --redlight: #42232f; --red: #ff6b88; }
:root[data-color-mode="dark"] .mode-moon { display: none; }
:root[data-color-mode="dark"] .mode-sun { display: inline; }
:root[data-color-mode="dark"] body { color: var(--ink); background: var(--page); }
:root[data-color-mode="dark"] .site-header,
:root[data-color-mode="dark"] .bottomnav,
:root[data-color-mode="dark"] .department-grid button,
:root[data-color-mode="dark"] .department-drawers details,
:root[data-color-mode="dark"] .catalog-controls,
:root[data-color-mode="dark"] .woocommerce ul.products li.reference-card,
:root[data-color-mode="dark"] .content-page article,
:root[data-color-mode="dark"] .motion-product,
:root[data-color-mode="dark"] .store-dialog,
:root[data-color-mode="dark"] .product-media-viewer,
:root[data-color-mode="dark"] #erchuud-age,
:root[data-color-mode="dark"] .story-card,
:root[data-color-mode="dark"] .story-reader,
:root[data-color-mode="dark"] .story-reading-tools { background: #241d24; color: var(--ink); border-color: var(--line); }
:root[data-color-mode="dark"] .demo-strip { color: #ffc3d2; background: #39212c; }
:root[data-color-mode="dark"] .navline { border-color: var(--line); }
:root[data-color-mode="dark"] .store-search { background: #181318; border-color: var(--line); }
:root[data-color-mode="dark"] .store-search input { color: var(--ink); }
:root[data-color-mode="dark"] input::placeholder { color: #b5a5ae; }
:root[data-color-mode="dark"] .department-grid button { background: linear-gradient(120deg, #2e232b, #3c2530); }
:root[data-color-mode="dark"] .department-grid button[aria-expanded=true],
:root[data-color-mode="dark"] .department-drawers summary { background: #442734; color: #ffe3ec; }
:root[data-color-mode="dark"] .department-drawers details[open] summary { background: #9f183c; color: #fff; }
:root[data-color-mode="dark"] .promo { background: #241d24; border-color: var(--line); box-shadow: none; }
:root[data-color-mode="dark"] .promo-slide { color: #fff; }
:root[data-color-mode="dark"] .promo-copy .promo-link { color: #8a0c28; }
:root[data-color-mode="dark"] .quiet-button,
:root[data-color-mode="dark"] .catalog-controls select,
:root[data-color-mode="dark"] .woocommerce-ordering select,
:root[data-color-mode="dark"] .gallery-thumbs button,
:root[data-color-mode="dark"] .woocommerce .button:not(.alt):not(.add_to_cart_button),
:root[data-color-mode="dark"] .qty-change { background: #33262f; color: #ffe2eb; border-color: var(--line); }
:root[data-color-mode="dark"] .woocommerce ul.products li.product .woocommerce-loop-product__title { color: var(--ink); }
:root[data-color-mode="dark"] .woocommerce ul.products li.reference-card .fav { background: #38232d; border-color: #533342; color: #ff8aa4; }
:root[data-color-mode="dark"] .woocommerce ul.products li.reference-card .stock-label { background: #143e2e; color: #a7e2c2; }
:root[data-color-mode="dark"] .woocommerce ul.products li.reference-card .stock-label.backorder,
:root[data-color-mode="dark"] .woocommerce div.product .stock.available-on-backorder { background: #503413; color: #ffd28d; }
:root[data-color-mode="dark"] .woocommerce ul.products li.reference-card .stock-label.out { background: #3c3039; color: #d9cbd3; }
:root[data-color-mode="dark"] .product-badges span { color: #ffadc0; background: #482331; }
:root[data-color-mode="dark"] .gallery-stage { border-color: var(--line); background: #fff; }
:root[data-color-mode="dark"] .woocommerce form .form-row input.input-text,
:root[data-color-mode="dark"] .woocommerce form .form-row textarea,
:root[data-color-mode="dark"] .woocommerce select,
:root[data-color-mode="dark"] .woocommerce .quantity .qty,
:root[data-color-mode="dark"] .assistant-search input { background: #191419; color: var(--ink); border-color: #65515c; }
:root[data-color-mode="dark"] .select2-container--default .select2-selection--single,
:root[data-color-mode="dark"] .select2-dropdown { background: #241d24; color: var(--ink); border-color: #65515c; }
:root[data-color-mode="dark"] .select2-container--default .select2-selection--single .select2-selection__rendered { color: var(--ink); }
:root[data-color-mode="dark"] .woocommerce-checkout #payment,
:root[data-color-mode="dark"] .woocommerce-checkout #payment div.payment_box,
:root[data-color-mode="dark"] .woocommerce .woocommerce-info,
:root[data-color-mode="dark"] .woocommerce .woocommerce-message,
:root[data-color-mode="dark"] .woocommerce .woocommerce-error { background: #33242e; color: var(--ink); }
:root[data-color-mode="dark"] .woocommerce table.shop_table { border-color: var(--line); }
:root[data-color-mode="dark"] #age-description { color: #d6c8d0; }
:root[data-color-mode="dark"] #erchuud-age [data-age-confirm],
:root[data-color-mode="dark"] .store-search .search-submit,
:root[data-color-mode="dark"] .assistant-toggle,
:root[data-color-mode="dark"] .dialog-primary,
:root[data-color-mode="dark"] .woocommerce .button.alt { color: #fff; background: #b00936; }
:root[data-color-mode="dark"] #erchuud-age [data-age-exit] { color: #dac7d1; }
:root[data-color-mode="dark"] .dialog-close { color: #ffb1c6; background: #462535; }
:root[data-color-mode="dark"] .woocommerce-breadcrumb,
:root[data-color-mode="dark"] .woocommerce-breadcrumb a,
:root[data-color-mode="dark"] .story-meta { color: #c8b6c2; }
:root[data-color-mode="dark"] .story-reading-tools button[aria-pressed="true"],
:root[data-color-mode="dark"] .story-filters a[aria-current="page"] { background: #9e1b40; color: #fff; }
:root[data-color-mode="dark"] .story-card-art { background: linear-gradient(145deg, #482332, #281b26); color: #ffc5d4; }
:root[data-color-mode="dark"] .site-footer { background: #100d11; }
:root[data-color-mode="dark"] .bottomnav a, :root[data-color-mode="dark"] .bottomnav button { color: #c6b7c0; }
:root[data-color-mode="dark"] .bottomnav .active { color: #ff90ab; }
:root[data-color-mode="dark"] .story-filters a { background: #2b2129; border-color: var(--line); }
:root[data-color-mode="dark"] .story-filters a[aria-current="page"] { background: #9e1b40; color: #fff; }

@media(max-width: 360px) {
    .site-header .store-original-logo { width: 132px; }
    .site-header .masthead { gap: 5px; }
    .site-header .head-actions { gap: 3px; }
    .color-mode-toggle { width: 34px; }
}
