.mode-switch {
  width: 296px;
  height: 54px;
  gap: 4px;
  padding: 5px;
}
.mode-switch.has-sliding-bubble {
  position: fixed;
  top: 18px;
  left: 50%;
  z-index: 60;
  transform: translateX(-50%);
}
.site-header .mode-switch {
  position: fixed;
  top: 18px;
  left: 50%;
  z-index: 60;
  transform: translateX(-50%);
}
.mode-switch a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 140px;
  height: 42px;
  padding-inline: 8px;
  font-size: 15px;
  transition: color 240ms ease, background-color 240ms ease, border-color 240ms ease, box-shadow 240ms ease;
}
.mode-switch .selected {
  color: var(--ink);
  background: rgba(255,255,255,.14);
  border-color: rgba(255,255,255,.42);
  box-shadow: inset 0 1px 2px rgba(255,255,255,.2), 0 1px 8px rgba(255,255,255,.08);
}
.mode-switch a:first-child.selected,
.mode-switch a:last-child.selected {
  border-color: rgba(255,255,255,.42);
  box-shadow: inset 0 1px 2px rgba(255,255,255,.2), 0 1px 8px rgba(255,255,255,.08);
}
.mode-switch .motion-icon { width: 24px; height: 24px; flex: none; }
.mode-switch.is-subtle { opacity: .65; }
.mode-switch.is-subtle:hover,
.mode-switch.is-subtle:focus-within { opacity: 1; }
@media (max-width: 800px) {
  .mode-switch { width: 218px; height: 48px; gap: 2px; padding: 4px; }
  .mode-switch a { width: 102px; height: 38px; gap: 3px; padding-inline: 3px; font-size: 11px; }
}
@media (max-width: 520px) {
  .mode-switch { width: min(222px, 100%); height: 44px; padding: 3px; }
  .mode-switch a { width: 104px; height: 36px; gap: 3px; padding-inline: 4px; font-size: 11px; }
  .mode-switch .motion-icon { width: 20px; height: 20px; }
}
@media (max-width: 360px) {
  .mode-switch { width: min(204px, 100%); }
  .mode-switch a { width: 94px; gap: 3px; padding-inline: 3px; font-size: 10px; }
}
