html[data-theme="dark"] {
  color-scheme: dark;
  --ink: #edf3ff;
  --muted: #aab6ca;
  --line: #2d394c;
  --surface: #161e2b;
  --canvas: #0a0f18;
  --soft: #222d40;
  --shadow: 0 18px 48px rgba(0,0,0,.24);
  --accent-text: color-mix(in srgb, var(--accent) 42%, white);
}
html[data-theme="dark"] body,html[data-theme="dark"] .admin-body { background: var(--canvas); color: var(--ink); }
html[data-theme="dark"] a:focus-visible,html[data-theme="dark"] button:focus-visible,html[data-theme="dark"] input:focus-visible,html[data-theme="dark"] textarea:focus-visible,html[data-theme="dark"] select:focus-visible,html[data-theme="dark"] summary:focus-visible { outline: 2px solid #9db8ff; outline-offset: 3px; }
html[data-theme="dark"] .eyebrow,html[data-theme="dark"] .product-category,html[data-theme="dark"] .text-button,html[data-theme="dark"] .back-link,html[data-theme="dark"] .store-context a,html[data-theme="dark"] .intro-link,html[data-theme="dark"] .add-product summary { color: var(--accent-text); }
html[data-theme="dark"] .site-header,html[data-theme="dark"] .admin-header { background: #0f1521; border-bottom-color: var(--line); }
html[data-theme="dark"] .brand small,html[data-theme="dark"] .header-note,html[data-theme="dark"] .store-context,html[data-theme="dark"] .store-context strong,html[data-theme="dark"] .catalog-heading #result-count,html[data-theme="dark"] .platform-seal { color: var(--muted); }
html[data-theme="dark"] .admin-entry { background: #192234; border-color: #3a4860; color: #e7eeff; }
html[data-theme="dark"] .admin-entry:hover { color: var(--accent-text); border-color: var(--accent-text); }
html[data-theme="dark"] .intro { background: color-mix(in srgb, var(--hero-color) 9%, #171e2b); border: 1px solid #313b4d; }
html[data-theme="dark"] .hero-brand { color: #f1f4ff; }
html[data-theme="dark"] .hero-brand small,html[data-theme="dark"] .intro-copy p { color: #b8c3d7; }
html[data-theme="dark"] .intro-copy h1 em,html[data-theme="dark"] .intro-link { color: color-mix(in srgb, var(--hero-color) 46%, white); }
html[data-theme="dark"] .intro-visual { background: #141c29; }
html[data-theme="dark"] .search-box,html[data-theme="dark"] .chip,html[data-theme="dark"] .product-card,html[data-theme="dark"] .empty-search { background: var(--surface); border-color: var(--line); }
html[data-theme="dark"] .search-box input { color: var(--ink); }
html[data-theme="dark"] .search-box input::placeholder { color: #a3b0c5; }
html[data-theme="dark"] .chip { color: #c4cfe1; }
html[data-theme="dark"] .chip:hover { border-color: #697691; }
html[data-theme="dark"] .chip.active { background: color-mix(in srgb, var(--accent) 48%, #27334a); border-color: var(--accent-text); color: #fff; }
html[data-theme="dark"] .product-card:hover { border-color: #586985; }
html[data-theme="dark"] .product-art,html[data-theme="dark"] .product-card:nth-child(5n+2) .product-art,html[data-theme="dark"] .product-card:nth-child(5n+3) .product-art,html[data-theme="dark"] .product-card:nth-child(5n+4) .product-art,html[data-theme="dark"] .product-card:nth-child(5n+5) .product-art { background-color: #202a39; }
html[data-theme="dark"] .product-art.photo-art { background: #f6f7fa; }
html[data-theme="dark"] .price-row small,html[data-theme="dark"] .empty-search,html[data-theme="dark"] .footer { color: var(--muted); }
html[data-theme="dark"] .footer { border-color: var(--line); }
html[data-theme="dark"] .pedinfo-footer { color: #c0cbdd; }
html[data-theme="dark"] .pedinfo-wordmark { border-radius: 6px; }
html[data-theme="dark"] .drawer-overlay { background: rgba(0,0,0,.72); }
html[data-theme="dark"] .drawer { background: #111925; box-shadow: -18px 0 70px rgba(0,0,0,.44); }
html[data-theme="dark"] .drawer-head { border-bottom-color: var(--line); }
html[data-theme="dark"] .icon-button,html[data-theme="dark"] .qty-controls button { background: #283447; border-color: #48566e; color: var(--ink); }
html[data-theme="dark"] .cart-illustration { background: #253248; }
html[data-theme="dark"] .cart-item { border-bottom-color: var(--line); }
html[data-theme="dark"] .subtotal-hint,html[data-theme="dark"] .cart-empty,html[data-theme="dark"] .cart-item-main small,html[data-theme="dark"] .drawer #review-panel p { color: var(--muted); }
html[data-theme="dark"] input:not([type=radio]):not([type=checkbox]):not([type=file]):not([type=color]),html[data-theme="dark"] textarea,html[data-theme="dark"] select { background: #192434; border-color: #3d4b61; color: #f1f5ff; }
html[data-theme="dark"] input::placeholder,html[data-theme="dark"] textarea::placeholder { color: #9eabc0; }
html[data-theme="dark"] input:focus,html[data-theme="dark"] textarea:focus,html[data-theme="dark"] select:focus { box-shadow: 0 0 0 3px color-mix(in srgb,var(--accent) 30%,transparent); }
html[data-theme="dark"] input[type=file] { color: #c5d0e2; }
html[data-theme="dark"] input[type=file]::file-selector-button { background: #26354b; border: 1px solid #485a74; color: #e6edfa; border-radius: 8px; padding: 7px 11px; margin-right: 10px; }
html[data-theme="dark"] .choice-row label { background: #222e40; }
html[data-theme="dark"] .form-error,html[data-theme="dark"] .notice.error { background: #41252b; color: #ffd1d3; }
html[data-theme="dark"] .notice.success { background: #19362f; color: #b8f3d0; }
html[data-theme="dark"] .drawer pre { background: #1a2534; border-color: #3c4960; color: #e0eaf9; }
html[data-theme="dark"] .admin-title p,html[data-theme="dark"] .settings-section .section-title p,html[data-theme="dark"] .help-text,html[data-theme="dark"] .admin-foot,html[data-theme="dark"] .banner-logo-setting p { color: var(--muted); }
html[data-theme="dark"] .admin-section,html[data-theme="dark"] .login-card { background: #151d2b; border-color: var(--line); }
html[data-theme="dark"] .admin-section .section-title { border-color: var(--line); }
html[data-theme="dark"] .muted { color: #9ba9be; }
html[data-theme="dark"] .settings-logo-preview,html[data-theme="dark"] .banner-card img { background: #263246; }
html[data-theme="dark"] .settings-grid input[type=color] { background: #263246; border: 1px solid #48576e; border-radius: 8px; }
html[data-theme="dark"] .banner-logo-setting { background: #1d283a; border-color: #3a4961; }
html[data-theme="dark"] .banner-card,html[data-theme="dark"] .add-product,html[data-theme="dark"] .admin-product { background: #192335; border-color: #35435a; }
html[data-theme="dark"] .admin-product .product-form { border-top-color: var(--line); }
html[data-theme="dark"] .admin-product-name small { color: var(--muted); }
html[data-theme="dark"] .mini-art { background: #28364d; }
html[data-theme="dark"] .status { background: #303a4c; color: #d2dced; }
html[data-theme="dark"] .status.on { background: #1c4839; color: #b2f2cd; }
html[data-theme="dark"] .delete-button { color: #ff9fa8; }
html[data-theme="dark"] .login-card { box-shadow: var(--shadow); }
html[data-theme="dark"] .pedinfo-login-logo { border-radius: 18px; }
html[data-theme="dark"] .login-card p { color: var(--muted); }
html[data-theme="dark"] .login-card .form-error { color: #ffd1d3; }
html[data-theme="dark"] .admin-share { background: #1b2033; border-color: #3e415e; }
html[data-theme="dark"] .admin-share p,html[data-theme="dark"] .admin-share-field label { color: #c0c9dc; }
html[data-theme="dark"] .admin-share-field input { background: #121b2a; border-color: #45516a; color: #e9efff; }
html[data-theme="dark"] #share-feedback { color: #c5b6ff; }
html[data-theme="dark"] .cart-feedback { background: #283b62; color: #fff; border: 1px solid #6177a2; }
html[data-theme="dark"] .highlight-item,html[data-theme="dark"] .offer-fields{background:var(--surface);border-color:var(--line)}
html[data-theme="dark"] .highlight-art{background:var(--soft)}
html[data-theme="dark"] .highlight-price,html[data-theme="dark"] .highlights-heading>a{color:var(--accent-text)}
html[data-theme="dark"] .offers-chip:not(.active){color:#ffb9aa;border-color:#784848}
html[data-theme="dark"] .product-card[data-offer="1"] .product-prices strong{color:#ffb9aa}
html[data-theme="dark"] .product-field-group{background:#182335;border-color:#35445b}
html[data-theme="dark"] .product-field-group.offer-fields{background:#2a202e;border-color:#70505c}
html[data-theme="dark"] .product-form .option-button{background:#1d293b;border-color:#45546a}
html[data-theme="dark"] .product-form .option-button:has(input:checked){background:#293551;border-color:#8594b5}
html[data-theme="dark"] .product-form .option-button .option-indicator{border-color:#8390a6}
html[data-theme="dark"] .product-form .option-button:has(input:checked) .option-indicator{background:var(--accent);border-color:var(--accent);color:#fff}
html[data-theme="dark"] .edit-product-cue{color:#e3eaff;border-color:#48576e}
html[data-theme="dark"] .admin-platform{color:#b9c7dc}
html[data-theme="dark"] .highlight-copy small.highlight-offer-label,html[data-theme="dark"] .highlight-item:has(.highlight-offer-label) .highlight-price,html[data-theme="dark"] .product-card[data-offer="1"] .product-prices strong{color:#ff6677}
html[data-theme="dark"] .admin-product-meta .admin-offer-meta{color:#ff6677}
html[data-theme="dark"] .offers-chip:not(.active){color:#ff8090;border-color:#905565}
html[data-theme="dark"] .admin-product .delete-button{background:transparent;border-color:#80505b}
