html[data-appearance="dark"] {
  color-scheme: dark;
  --night-base: #050505;
  --night-panel: #101010;
  --night-card: #191919;
  --night-hover: #262626;
  --night-rule: #343434;
  --night-text: #e4e2df;
  --night-copy: #b9b7b3;
  --night-accent: #80bdf5;
  --night-amber: #f1b77e;
  --night-mint: #84ceae;
  --night-on-accent: #0c1a28;
  background: var(--night-base);
}

.listing-appearance {
  --switch-bg: transparent;
  --switch-edge: rgb(37 49 59 / 16%);
  --switch-text: #4b5660;
  --switch-active-bg: rgb(37 49 59 / 8%);
  --switch-active-text: #25313b;
  display: inline-flex;
  flex: none;
  align-items: center;
  padding: 2px;
  border: 1px solid var(--switch-edge);
  border-radius: 8px;
  background: var(--switch-bg);
}
.listing-appearance[hidden] { display: none; }
/* The listings header sits over a navy texture in light mode. */
.site-header .listing-appearance {
  --switch-edge: rgb(255 255 255 / 17%);
  --switch-text: #c2ccd5;
  --switch-active-bg: rgb(255 255 255 / 9%);
  --switch-active-text: #edf0f3;
}
[data-appearance="dark"] .listing-appearance {
  --switch-bg: #111517;
  --switch-edge: #484a47;
  --switch-text: #ccccc5;
  --switch-active-bg: #32332e;
  --switch-active-text: #ffdcab;
}
.listing-appearance [data-appearance-choice] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-width: 34px;
  min-height: 34px;
  padding: 0 8px;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: var(--switch-text);
  font: 600 12px/1 Manrope, Arial, sans-serif;
  cursor: pointer;
}
.listing-appearance svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.listing-appearance button:hover { color: var(--switch-active-text); background: var(--switch-active-bg); }
.listing-appearance button[aria-pressed="true"] { background: var(--switch-active-bg); color: var(--switch-active-text); box-shadow: inset 0 0 0 1px var(--switch-edge); }
.listing-appearance button:focus-visible { outline: 2px solid var(--switch-active-text); outline-offset: -2px; }
@media (max-width: 760px) {
  .listing-appearance [data-appearance-choice] { min-height: 36px; padding: 0 6px; }
}
@media (max-width: 345px) {
  .listing-appearance button:not([data-appearance-choice="system"]) svg { display: none; }
}
@media (forced-colors: active) {
  .listing-appearance button[aria-pressed="true"] { outline: 2px solid Highlight; outline-offset: -3px; }
}
