.switch {
  position: relative;
  width: 36px;
  height: 22px;
  border-radius: 11px;
  background: $muted;
  transition: background 200ms;
  flex-shrink: 0;
}

.switch::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: $fg;
  transition: transform 200ms cubic-bezier(0.2, 0, 0, 1);
}

.switch--checked {
  background: $accent;
}

.switch--checked::after {
  transform: translateX(14px);
}

