html {
  color-scheme: dark;
}
html[data-theme="day"] {
  color-scheme: light;
  --bg: #f7f5f8;
  --surface: #fff;
  --surface2: #eee9f0;
  --panel: #fff;
  --line: #ded5e1;
  --ink: #251a2b;
  --ink2: #5e5264;
  --ink3: #736479;
  --muted: #65576d;
  --brand: #b70086;
  --brand-soft: #9f087b;
  --brand-wash: #f6dbee;
  --pink: #b70086;
  --cyan: #087684;
  --lime: #28752d;
  --amber: #966000;
  --glow: none;
}
.theme-toggle {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 7px;
  flex-shrink: 0;
  border: 1px solid var(--line, #66556c) !important;
  border-radius: 999px !important;
  background: var(--surface, #19101b) !important;
  color: var(--ink, #f8f3fa) !important;
  padding: 8px 13px !important;
  font: 600 12px system-ui !important;
  cursor: pointer;
  min-height: 36px;
  white-space: nowrap;
}
.theme-toggle span {
  font-size: 16px;
}
.theme-toggle:focus-visible {
  outline: 3px solid var(--brand, #ff39d1);
  outline-offset: 3px;
}
.theme-floating {
  position: fixed;
  right: 16px;
  top: 14px;
  z-index: 500;
}
html[data-theme="day"] .side,
html[data-theme="day"] .top,
html[data-theme="day"] .site-header,
html[data-theme="day"] header,
html[data-theme="day"] .mobbar {
  background: rgba(255, 255, 255, 0.96) !important;
  color: var(--ink);
}
html[data-theme="day"] .account-card {
  background: linear-gradient(140deg, #fff, #f9edf7);
}
html[data-theme="day"] .quiet {
  background: var(--surface2);
  color: var(--ink);
}
html[data-theme="day"] .primary {
  color: #fff;
}
html[data-theme="day"] .account-metrics > div {
  background: var(--bg);
}
html[data-theme="day"] .modal,
html[data-theme="day"] .drawer,
html[data-theme="day"] .pop,
html[data-theme="day"] .searchbox {
  background: var(--surface);
  color: var(--ink);
}
html[data-theme="day"] .btn-p {
  color: #fff;
}
html[data-theme="day"] .brandmark img,
html[data-theme="day"] .account-header img,
html[data-theme="day"] .logo img {
  filter: brightness(0.45) saturate(1.4);
}
@media (max-width: 600px) {
  .top {
    gap: 6px !important;
    flex-wrap: wrap;
  }
  .theme-toggle {
    padding: 7px 10px !important;
  }
  .account-header {
    gap: 12px;
    flex-wrap: wrap;
  }
}
