/* White18 is canonical; query-only controls retain the earlier dark comparison. */
html[data-dex-background="white"] {
  --paper: #fff;
  --ink: #151515;
  --muted: #605f5b;
  --line: #15151524;
  color-scheme: light;
}
html[data-dex-background="white"] body { background: var(--paper); color: var(--ink); }
html[data-dex-background="white"] .dex-brand-notes { color: var(--muted); }
html[data-dex-background="white"] .dex-brand-notes h2 { color: var(--ink); }
.dex-background-switch {
  position: fixed;
  right: 24px;
  bottom: max(20px, env(safe-area-inset-bottom));
  z-index: 20;
  display: flex;
  gap: 4px;
  align-items: center;
  padding: 5px;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  font-size: 12px;
}
.dex-background-switch span { padding: 0 8px; color: var(--muted); }
.dex-background-switch button { padding: 10px 12px; min-height: 40px; }
.dex-background-switch button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
body:has(#menu:not([hidden])) .dex-background-switch { visibility: hidden; }
@media (max-width: 800px) { .dex-background-switch { right: 16px; } }
