:root { color-scheme: light; }
.badge.scheduled { background: #e9eef2; color: #465e70; }
.header-actions { display: flex; align-items: center; gap: 22px; }
.theme-toggle { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--border); border-radius: 8px; padding: 8px 11px; color: #53664d; background: #eeeee6; font-size: 11px; white-space: nowrap; }
.theme-toggle:hover { background: #e4e8dc; }
.theme-icon { font-size: 17px; line-height: 18px; }
:root[data-theme="dark"] { color-scheme: dark; color: #e0e7df; background: #151b18; --green: #82b58f; --muted: #a0afa4; --border: #354139; }
[data-theme="dark"] .brand-icon { background: #31563e; color: #e7f0e4; }
[data-theme="dark"] .brand-dot { color: #99b487; }
[data-theme="dark"] .theme-toggle { color: #c0d0bc; background: #242e27; }
[data-theme="dark"] .theme-toggle:hover { background: #303e33; }
[data-theme="dark"] .stats > div { background: #202922; border-color: #354139; }
[data-theme="dark"] .collection { background: #1d2520; }
[data-theme="dark"] h2 > span { color: #a9bf9b; border-color: #465442; }
[data-theme="dark"] .primary { background: #92bd91; color: #15271a; }
[data-theme="dark"] .primary:hover { background: #a6cea3; }
[data-theme="dark"] .secondary { background: #303c32; color: #d2ddcb; }
[data-theme="dark"] .danger { background: #a74742; color: #fff0ee; }
[data-theme="dark"] .tabs { background: #141c17; }
[data-theme="dark"] .tabs button { color: #a2b19d; }
[data-theme="dark"] .tabs button.selected { background: #354536; color: #e2edda; }
[data-theme="dark"] .search, [data-theme="dark"] .search input { color: #c4d1be; border-color: #3c483c; }
[data-theme="dark"] .search input::placeholder { color: #93a18e; }
[data-theme="dark"] thead { background: #18201b; color: #a7b59f; }
[data-theme="dark"] th, [data-theme="dark"] td, [data-theme="dark"] .table-footer { border-color: #303c32; }
[data-theme="dark"] td .store { color: #e0e8dc; }
[data-theme="dark"] .store-avatar { background: #2c382c; border-color: #3f503b; color: #b5c9a8; }
[data-theme="dark"] .notes, [data-theme="dark"] .cap, [data-theme="dark"] .date-caption { color: #a2af9b; }
[data-theme="dark"] .promo { color: #b4cf9e; background: #253121; border-color: #637951; }
[data-theme="dark"] .maximum-purchase { color: #a8ce90; }
[data-theme="dark"] .badge { color: #b6d59f; background: #2c4026; }
[data-theme="dark"] .badge.soon { color: #e1c779; background: #403820; }
[data-theme="dark"] .badge.scheduled { color: #b3c7d8; background: #283943; }
[data-theme="dark"] .badge.expired { color: #b0b6a9; background: #333932; }
[data-theme="dark"] .badge.deleted { color: #dfb1a7; background: #4a302c; }
[data-theme="dark"] tr.deleted { background: #281f1d; }
[data-theme="dark"] tr.deleted :is(.store, .amount, .money, .date, .maximum-purchase) { color: #bfb0a8; }
[data-theme="dark"] tr.expired { background: #1a211c; }
[data-theme="dark"] tr.expired .store, [data-theme="dark"] tr.expired .amount, [data-theme="dark"] tr.expired .money, [data-theme="dark"] tr.expired .date, [data-theme="dark"] tr.expired .maximum-purchase { color: #9ca596; }
[data-theme="dark"] .icon-button { color: #acbda2; }
[data-theme="dark"] .icon-button:hover { color: #e2edda; background: #354332; }
[data-theme="dark"] .empty-icon { background: #293628; border-color: #3c4c36; color: #adc496; }
[data-theme="dark"] .empty p, [data-theme="dark"] .table-footer, [data-theme="dark"] footer, [data-theme="dark"] .storage-note { color: #9ba892; }
[data-theme="dark"] .text-button, [data-theme="dark"] footer button { color: #b4ce9f; }
[data-theme="dark"] dialog { background: #202922; color: #e0e7da; border-color: #46553e; box-shadow: 0 30px 120px #0008; }
[data-theme="dark"] dialog::backdrop { background: #050a0799; }
[data-theme="dark"] .eyebrow, [data-theme="dark"] .optional, [data-theme="dark"] .delete-content p { color: #a4b598; }
[data-theme="dark"] form input, [data-theme="dark"] form select, [data-theme="dark"] form textarea { color: #e1e8da; background: #18201a; border-color: #43523b; }
[data-theme="dark"] form input::placeholder, [data-theme="dark"] form textarea::placeholder { color: #899b7e; }
[data-theme="dark"] .form-hint { background: #2b3927; color: #b6cfa4; }
[data-theme="dark"] .form-error { color: #f0a49a; }
[data-theme="dark"] #toast { background: #3b5734; color: #edf4e5; border: 1px solid #648054; }
@media (max-width: 580px) {
  .header-actions { gap: 10px; }
  .header-actions .local-label { display: none; }
  .theme-toggle { padding: 7px 9px; font-size: 10px; }
}
.theme-toggle { width: 36px; height: 36px; padding: 0; justify-content: center; }
