html {
  --theme-switch-bg:#232331;
  --theme-switch-ink:#eee9fb;
  --theme-switch-line:#494358;
  --theme-switch-icon:#c7b4ef;
  --theme-switch-tile:#353045;
}
html[data-theme="light"] {
  --theme-switch-bg:#fffdf9;
  --theme-switch-ink:#594363;
  --theme-switch-line:#cbb9cf;
  --theme-switch-icon:#78518f;
  --theme-switch-tile:#eee4f3;
}
html[data-site-theme="shared"] body #themeToggle {
  display:inline-flex;align-items:center;justify-content:flex-start;gap:9px;
  box-sizing:border-box;flex-shrink:0;min-width:116px;min-height:44px;
  padding:6px 12px 6px 7px;border:1px solid var(--theme-switch-line)!important;
  border-radius:14px;background:var(--theme-switch-bg)!important;color:var(--theme-switch-ink)!important;
  box-shadow:0 4px 16px #0002,inset 0 1px 0 #ffffff08!important;
  font:600 12px/1.3 "Manrope","Segoe UI",sans-serif;letter-spacing:.01em;
  cursor:pointer;touch-action:manipulation;-webkit-tap-highlight-color:transparent;
  transition:border-color .18s,box-shadow .18s,transform .18s;
}
#themeToggle svg {
  box-sizing:content-box;display:block;flex:0 0 18px;width:18px;height:18px;
  padding:6px;border-radius:9px;background:var(--theme-switch-tile);color:var(--theme-switch-icon);
}
#themeToggle span { color:inherit;white-space:nowrap; }
@media(hover:hover) {
  html[data-site-theme="shared"] body #themeToggle:hover {
    border-color:var(--theme-switch-icon)!important;transform:translateY(-1px);
    box-shadow:0 6px 22px #0003,inset 0 1px 0 #ffffff0c!important;
  }
}
html[data-site-theme="shared"] body #themeToggle:focus-visible {
  outline:2px solid var(--theme-switch-icon);outline-offset:4px;
}
html[data-site-theme="shared"] body #themeToggle:active { transform:scale(.97); }
@media(max-width:640px) {
  html[data-site-theme="shared"] body #themeToggle { min-width:108px;gap:7px;padding-right:9px; }
}
@media(prefers-reduced-motion:reduce) {
  html[data-site-theme="shared"] body #themeToggle { transition:none; }
}
