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

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

.al {
  box-sizing: border-box;
  width: min(300px, 88vw);
  font-family: -apple-system, "Segoe UI", "Noto Sans KR", sans-serif;
  color: #17141a;
}

.al__card {
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px;
  border-radius: 16px;
  background-color: #ffffff;
  box-shadow: 0 14px 24px rgba(23, 20, 26, 0.32);
}

.al__head {
  margin: 0;
  height: 18px;
  font-size: 13px;
  line-height: 18px;
  font-weight: 800;
  letter-spacing: 0.01em;
}

.al__list {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.al__row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 8px;
  height: 32px;
  border-radius: 8px;
  background-color: transparent;
}

.al__ic {
  display: inline-flex;
  color: rgba(23, 20, 26, 0.45);
}

.al__ic svg {
  display: block;
}

.al__lab {
  flex-grow: 1;
  font-size: 12px;
  line-height: 18px;
  font-weight: 600;
  white-space: nowrap;
}

.al__sw {
  position: relative;
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  width: 40px;
  height: 22px;
  border: 0;
  border-radius: 999px;
  background-color: rgba(23, 20, 26, 0.18);
  cursor: pointer;
  transition: background-color 220ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.al__sw:focus-visible {
  outline: 3px solid #17141a;
  outline-offset: 2px;
}

.al__knob {
  position: absolute;
  left: 2px;
  top: 2px;
  display: block;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background-color: #ffffff;
  box-shadow: 0 6px 12px rgba(23, 20, 26, 0.32);
  transform: translateX(0);
  transition: transform 220ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.al__sw[aria-checked=true] {
  background-color: #2f6df6;
}

.al__sw[aria-checked=true] .al__knob {
  transform: translateX(18px);
}

.al:not(.is-demo) .al__row:has(.al__sw[aria-checked=true]) {
  background-color: rgba(47, 109, 246, 0.16);
}

.al:not(.is-demo) .al__row:has(.al__sw[aria-checked=true]) .al__ic {
  color: #2f6df6;
}

.al__saved {
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 0;
  height: 18px;
  color: #17141a;
  opacity: 0;
}

.al__saved-ic {
  display: inline-flex;
  color: #4cd4a6;
}

.al__saved-ic svg {
  display: block;
}

.al__saved-t {
  font-size: 12px;
  line-height: 18px;
  font-weight: 700;
}

.al:not(.is-demo)[data-saved=true] .al__saved {
  opacity: 1;
}

.al.is-demo .al__sw,
.al.is-demo .al__row {
  animation-duration: 2s;
  animation-timing-function: steps(1, end);
  animation-iteration-count: infinite;
}

.al.is-demo .al__sw[data-sw=mail] {
  animation-name: al-track-on;
}

.al.is-demo .al__sw[data-sw=push] {
  animation-name: al-track-push;
}

.al.is-demo .al__sw[data-sw=sms] {
  animation-name: al-track-sms;
}

.al.is-demo .al__row[data-row=mail] {
  animation-name: al-row-on;
}

.al.is-demo .al__row[data-row=push] {
  animation-name: al-row-push;
}

.al.is-demo .al__row[data-row=sms] {
  animation-name: al-row-sms;
}

@keyframes al-track-on {
  0% {
    background-color: #2f6df6;
  }
  100% {
    background-color: #2f6df6;
  }
}
@keyframes al-track-push {
  0% {
    background-color: rgba(23, 20, 26, 0.18);
  }
  20.83% {
    background-color: #2f6df6;
  }
  100% {
    background-color: #2f6df6;
  }
}
@keyframes al-track-sms {
  0% {
    background-color: rgba(23, 20, 26, 0.18);
  }
  58.33% {
    background-color: #2f6df6;
  }
  100% {
    background-color: #2f6df6;
  }
}
@keyframes al-row-on {
  0% {
    background-color: rgba(47, 109, 246, 0.16);
  }
  100% {
    background-color: rgba(47, 109, 246, 0.16);
  }
}
@keyframes al-row-push {
  0% {
    background-color: transparent;
  }
  29.17% {
    background-color: rgba(47, 109, 246, 0.16);
  }
  100% {
    background-color: rgba(47, 109, 246, 0.16);
  }
}
@keyframes al-row-sms {
  0% {
    background-color: transparent;
  }
  58.33% {
    background-color: rgba(47, 109, 246, 0.16);
  }
  100% {
    background-color: rgba(47, 109, 246, 0.16);
  }
}
.al.is-demo .al__knob {
  animation-duration: 2s;
  animation-timing-function: cubic-bezier(0.2, 0.8, 0.2, 1);
  animation-iteration-count: infinite;
}

.al.is-demo .al__sw[data-sw=mail] .al__knob {
  animation-name: al-knob-on;
}

.al.is-demo .al__sw[data-sw=push] .al__knob {
  animation-name: al-knob-push;
}

.al.is-demo .al__sw[data-sw=sms] .al__knob {
  animation-name: al-knob-sms;
}

@keyframes al-knob-on {
  0% {
    transform: translateX(18px);
  }
  100% {
    transform: translateX(18px);
  }
}
@keyframes al-knob-push {
  0% {
    transform: translateX(0);
  }
  20.83% {
    transform: translateX(0);
  }
  33.33% {
    transform: translateX(18px);
  }
  100% {
    transform: translateX(18px);
  }
}
@keyframes al-knob-sms {
  0% {
    transform: translateX(0);
  }
  58.33% {
    transform: translateX(0);
  }
  70.83% {
    transform: translateX(18px);
  }
  100% {
    transform: translateX(18px);
  }
}
.al.is-demo .al__ic {
  animation-duration: 2s, 2s;
  animation-iteration-count: infinite, infinite;
  animation-timing-function: steps(1, end), cubic-bezier(0.2, 1.4, 0.4, 1);
}

.al.is-demo .al__row[data-row=mail] .al__ic {
  animation-name: al-ic-on, al-pop-none;
}

.al.is-demo .al__row[data-row=push] .al__ic {
  animation-name: al-ic-push, al-pop-push;
}

.al.is-demo .al__row[data-row=sms] .al__ic {
  animation-name: al-ic-sms, al-pop-sms;
}

@keyframes al-ic-on {
  0% {
    color: #2f6df6;
  }
  100% {
    color: #2f6df6;
  }
}
@keyframes al-ic-push {
  0% {
    color: rgba(23, 20, 26, 0.45);
  }
  29.17% {
    color: #2f6df6;
  }
  100% {
    color: #2f6df6;
  }
}
@keyframes al-ic-sms {
  0% {
    color: rgba(23, 20, 26, 0.45);
  }
  58.33% {
    color: #2f6df6;
  }
  100% {
    color: #2f6df6;
  }
}
@keyframes al-pop-none {
  0% {
    transform: scale(1);
  }
  100% {
    transform: scale(1);
  }
}
@keyframes al-pop-push {
  0% {
    transform: scale(1);
  }
  29.17% {
    transform: scale(1);
  }
  33.33% {
    transform: scale(1.35);
  }
  41.67% {
    transform: scale(1);
  }
  100% {
    transform: scale(1);
  }
}
@keyframes al-pop-sms {
  0% {
    transform: scale(1);
  }
  58.33% {
    transform: scale(1);
  }
  62.5% {
    transform: scale(1.35);
  }
  70.83% {
    transform: scale(1);
  }
  100% {
    transform: scale(1);
  }
}
.al.is-demo .al__saved {
  animation-name: al-saved-cut, al-saved-lift;
  animation-duration: 2s, 2s;
  animation-timing-function: steps(1, end), cubic-bezier(0.2, 0.8, 0.2, 1);
  animation-iteration-count: infinite, infinite;
}

@keyframes al-saved-cut {
  0% {
    opacity: 0;
  }
  33.33% {
    opacity: 1;
  }
  100% {
    opacity: 1;
  }
}
@keyframes al-saved-lift {
  0% {
    transform: translateY(6px) scale(1);
  }
  33.33% {
    transform: translateY(6px) scale(1);
  }
  41.67% {
    transform: translateY(0) scale(1);
  }
  58.33% {
    transform: translateY(0) scale(1);
  }
  62.5% {
    transform: translateY(0) scale(1.08);
  }
  70.83% {
    transform: translateY(0) scale(1);
  }
  100% {
    transform: translateY(0) scale(1);
  }
}
@media (max-width: 340px) {
  .al__card {
    gap: 8px;
    padding: 8px;
  }
  .al__head {
    height: 14px;
    font-size: 11px;
    line-height: 14px;
  }
  .al__row {
    height: 26px;
    padding: 0 4px;
    gap: 4px;
  }
  .al__lab {
    font-size: 10px;
    line-height: 14px;
  }
  .al__sw {
    width: 32px;
    height: 18px;
  }
  .al__knob {
    width: 14px;
    height: 14px;
  }
  .al__sw[aria-checked=true] .al__knob {
    transform: translateX(14px);
  }
  .al__saved {
    height: 14px;
  }
  .al__saved-t {
    font-size: 10px;
    line-height: 14px;
  }
  @keyframes al-knob-on {
    0% {
      transform: translateX(14px);
    }
    100% {
      transform: translateX(14px);
    }
  }
  @keyframes al-knob-push {
    0% {
      transform: translateX(0);
    }
    20.83% {
      transform: translateX(0);
    }
    33.33% {
      transform: translateX(14px);
    }
    100% {
      transform: translateX(14px);
    }
  }
  @keyframes al-knob-sms {
    0% {
      transform: translateX(0);
    }
    58.33% {
      transform: translateX(0);
    }
    70.83% {
      transform: translateX(14px);
    }
    100% {
      transform: translateX(14px);
    }
  }
}
@media (prefers-reduced-motion: reduce) {
  .al.is-demo .al__sw,
  .al.is-demo .al__row,
  .al.is-demo .al__knob,
  .al.is-demo .al__ic,
  .al.is-demo .al__saved {
    animation: none !important;
  }
  .al.is-demo .al__sw[data-sw=mail] {
    background-color: #2f6df6 !important;
  }
  .al.is-demo .al__sw[data-sw=mail] .al__knob {
    transform: translateX(18px) !important;
  }
  .al.is-demo .al__row[data-row=mail] {
    background-color: rgba(47, 109, 246, 0.16) !important;
  }
  .al.is-demo .al__row[data-row=mail] .al__ic {
    color: #2f6df6 !important;
  }
  .al.is-demo .al__saved {
    opacity: 1 !important;
    transform: translateY(0) !important;
  }
  .al__sw,
  .al__knob {
    transition: none !important;
  }
}
@media (max-width: 340px) and (prefers-reduced-motion: reduce) {
  .al.is-demo .al__sw[data-sw=mail] .al__knob {
    transform: translateX(14px) !important;
  }
}
