
html { color-scheme: light }
html[data-theme="light"] { color-scheme: light }

html[data-theme="dark"] {
  color-scheme: dark;

  --bg:       oklch(17% .014 78);
  --surface:  oklch(21.5% .018 78);
  --surface2: oklch(26.5% .020 78);
  --ink:      oklch(95% .010 90);
  --muted:    oklch(72% .016 84);
  --line:     oklch(33% .022 78);

  --green:  oklch(72% .150 159);
  --green2: oklch(80% .120 159);
  --gold:   oklch(79% .120 78);
  --red:    oklch(67% .170 24);
  --blue:   oklch(70% .130 245);

  --sf-line: color-mix(in oklch, var(--line), transparent 12%);
  --sf-hair: color-mix(in oklch, var(--line), transparent 22%);
  --sf-soft: color-mix(in oklch, var(--green), transparent 88%);
  --sf-shadow-1: 0 1px 2px rgba(0,0,0,.35), 0 8px 24px -12px rgba(0,0,0,.55);
  --sf-shadow-2: 0 18px 50px -20px rgba(0,0,0,.70);
  --sf-shadow-3: 0 30px 80px -28px rgba(0,0,0,.80);
  --sf-ring: 0 0 0 3px color-mix(in oklch, var(--green), transparent 78%);
}

html[data-theme="dark"] .sf-skeleton {
  background: linear-gradient(90deg, var(--surface2),
    color-mix(in oklch, var(--surface2), var(--ink) 12%), var(--surface2));
}
html[data-theme="dark"] .btn.light { background: var(--surface2); color: var(--ink) }
html[data-theme="dark"] .sf-head { background: color-mix(in oklch, var(--surface), transparent 12%) }
html[data-theme="dark"] .sf-bottomnav { background: color-mix(in oklch, var(--surface), transparent 4%) }
html[data-theme="dark"] .sfdrawer,
html[data-theme="dark"] .sf-acct-menu,
html[data-theme="dark"] .sf-suggest { background: var(--surface) }
html[data-theme="dark"] .sf-scrim { background: rgba(0,0,0,.62) }
html[data-theme="dark"] .support,
html[data-theme="dark"] .sfbtn.dark { background: var(--surface2); color: var(--ink) }

body, .sf-head, .sf-navbar, .sf-util, footer.sf-foot, .product, .sf-card,
.sidebox, .sfdrawer, .sf-act, .sfbtn {
  transition: background-color .22s ease, border-color .22s ease, color .22s ease;
}
@media (prefers-reduced-motion: reduce) {
  body, .sf-head, .sf-navbar, .sf-util, footer.sf-foot { transition: none }
}

.sf-theme { flex: none }
.sf-theme .sf-i { width: 19px; height: 19px }
.sf-theme .ic-sun { display: none }
html[data-theme="dark"] .sf-theme .ic-sun { display: block }
html[data-theme="dark"] .sf-theme .ic-moon { display: none }
.sf-theme:hover { border-color: var(--gold); color: var(--gold) }

.sfdrawer-theme {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  margin-top: 14px; padding: 11px 13px; border-radius: 14px; cursor: pointer;
  background: var(--surface2); border: 1px solid var(--sf-line, var(--line));
  font: 800 12.5px var(--font); color: var(--ink); width: 100%; font-size: calc(12.5px * var(--fz-nav, 1))}
.sfdrawer-theme b { display: flex; align-items: center; gap: 8px; font-weight: 800 }
.sfdrawer-theme .state { font: 700 11.5px var(--font); color: var(--muted); font-size: calc(11.5px * var(--fz-nav, 1))}
.sfdrawer-theme .ic-sun { display: none }
html[data-theme="dark"] .sfdrawer-theme .ic-sun { display: block }
html[data-theme="dark"] .sfdrawer-theme .ic-moon { display: none }
