.toggle { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 14px; margin: 12px 0; }
.toggle small { display: block; }
.toggle input { appearance: none; flex: 0 0 48px; width: 48px; height: 24px; margin: 0; border-radius: 20px; background: #e2e7ed; position: relative; cursor: pointer; }
.toggle input::before { content: ""; position: absolute; top: 4px; left: 4px; width: 16px; height: 16px; border-radius: 50%; background: white; }
.toggle input:checked { background: #3e69f4; }
.toggle input { transition: background-color 180ms ease; }
.toggle input::before { transition: transform 180ms ease; }
.toggle input:checked::before { transform: translateX(24px); }
@media (prefers-reduced-motion: reduce) {
  .toggle input, .toggle input::before { transition: none; }
}
.toggle input:not(:checked)::after {
  content: "";
  box-sizing: border-box;
  position: absolute;
  right: 6px;
  top: 50%;
  width: 12px;
  height: 12px;
  border: 2px solid #a0a6ad;
  border-radius: 50%;
  transform: translateY(-50%);
}
.toggle input:checked::after {
  content: "";
  position: absolute;
  left: 8px;
  top: 5px;
  width: 5px;
  height: 9px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
@media (hover: hover) {
  .toggle input:not(:checked):hover:not(:disabled) { background-color: #c9cfd6; }
  .toggle input:checked:hover:not(:disabled) { background-color: #2a66df; }
}
.toggle input:disabled { opacity: .65; cursor: default; }
