html, body {
  margin: 0;
  overflow: hidden;
}

.stage {
  box-sizing: border-box;
  min-height: 100vh;
  display: grid;
  place-items: center;
  margin: 0;
  background: #ffffff;
  font-family: -apple-system, "Segoe UI", "Noto Sans KR", sans-serif;
  padding: clamp(8px, 4vw, 24px);
}

.accounts-card {
  width: min(240px, 86vw);
  padding: 12px;
  border-radius: 16px;
  background: #ffffff;
  border: 1.5px solid #e6e2d8;
  box-shadow: 0 6px 12px rgba(23, 20, 26, 0.32);
}

.accounts-card__title {
  margin: 0 0 12px;
  font-size: 13px;
  font-weight: 700;
  color: #17141a;
  font-family: inherit;
}

.accounts {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.accounts__row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 8px;
  border-radius: 8px;
  cursor: pointer;
  background: transparent;
}

.accounts__icon {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  color: #9a927e;
}

.accounts__label {
  flex: 1 1 auto;
  font-size: 12px;
  font-weight: 600;
  color: #17141a;
}

.accounts__switch {
  position: relative;
  flex: 0 0 auto;
  width: 32px;
  height: 18px;
}

.accounts__input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.accounts__track {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: #d8d2c4;
}

.accounts__knob {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 6px 12px rgba(23, 20, 26, 0.32);
}

.accounts__input:checked ~ .accounts__track {
  background: #6ec8ff;
}

.accounts__input:checked ~ .accounts__track .accounts__knob {
  transform: translateX(14px);
}

.accounts__input:focus-visible ~ .accounts__track {
  outline: 2px solid #6ec8ff;
  outline-offset: 2px;
}

.accounts__row:has(.accounts__input:checked) {
  background: rgba(76, 212, 166, 0.18);
}

.accounts.is-demo .accounts__row {
  animation: acct-row-cycle 2s ease-out infinite;
}

.accounts.is-demo .accounts__track {
  animation: acct-track-cycle 2s ease-out infinite;
}

.accounts.is-demo .accounts__knob {
  animation: acct-knob-cycle 2s ease-out infinite;
}

.accounts.is-demo .accounts__row:nth-child(1),
.accounts.is-demo .accounts__row:nth-child(1) .accounts__track,
.accounts.is-demo .accounts__row:nth-child(1) .accounts__knob {
  animation-delay: 0ms;
}

.accounts.is-demo .accounts__row:nth-child(2),
.accounts.is-demo .accounts__row:nth-child(2) .accounts__track,
.accounts.is-demo .accounts__row:nth-child(2) .accounts__knob {
  animation-delay: 500ms;
}

.accounts.is-demo .accounts__row:nth-child(3),
.accounts.is-demo .accounts__row:nth-child(3) .accounts__track,
.accounts.is-demo .accounts__row:nth-child(3) .accounts__knob {
  animation-delay: 1000ms;
}

@keyframes acct-row-cycle {
  0%, 8% {
    background: transparent;
  }
  14%, 36% {
    background: rgba(76, 212, 166, 0.22);
  }
  42%, 100% {
    background: transparent;
  }
}
@keyframes acct-track-cycle {
  0%, 8% {
    background: #d8d2c4;
  }
  14%, 36% {
    background: #6ec8ff;
  }
  42%, 100% {
    background: #d8d2c4;
  }
}
@keyframes acct-knob-cycle {
  0%, 8% {
    transform: translateX(0);
  }
  14%, 36% {
    transform: translateX(14px);
  }
  42%, 100% {
    transform: translateX(0);
  }
}
@media (prefers-reduced-motion: reduce) {
  .accounts.is-demo .accounts__row,
  .accounts.is-demo .accounts__track,
  .accounts.is-demo .accounts__knob {
    animation: none;
  }
}
