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);
}

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

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 6px 12px rgba(23, 20, 26, 0.32);
  font-family: -apple-system, "Segoe UI", "Noto Sans KR", sans-serif;
  font-weight: 600;
  font-size: 13px;
  color: #17141a;
}

.dot {
  position: relative;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex: 0 0 auto;
}

.pill--online .dot {
  background: #50a26e;
}

.pill--online .dot::before {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid #50a26e;
  opacity: 0;
  transform: scale(0.6);
}

.stage.is-demo .pill--online .dot::before {
  animation: ping 2s ease-out infinite;
}

.pill--away .dot {
  background: #b9a871;
}

.pill--busy .dot {
  background: #be7c7c;
}

.pill--offline .dot {
  background: #9ca3af;
}

@keyframes ping {
  0% {
    opacity: 0.55;
    transform: scale(0.6);
  }
  70%, 100% {
    opacity: 0;
    transform: scale(2.1);
  }
}
.pill--online {
  position: relative;
}

.stage.is-demo .pill--online {
  animation: pill-tint 2s ease-out infinite;
}

.pill--online::after {
  content: "";
  position: absolute;
  inset: -8px;
  border-radius: 999px;
  border: 2px solid #50a26e;
  opacity: 0;
  pointer-events: none;
}

.stage.is-demo .pill--online::after {
  animation: pill-ripple 2s ease-out infinite;
  animation-delay: 0.6666666667s;
}

@keyframes pill-tint {
  0%, 35% {
    background-color: #fff;
  }
  55% {
    background-color: rgb(91.7647058824%, 95.6235294118%, 93.1764705882%);
  }
  80%, 100% {
    background-color: #fff;
  }
}
@keyframes pill-ripple {
  0% {
    opacity: 0.38;
    transform: scale(0.95);
  }
  70%, 100% {
    opacity: 0;
    transform: scale(1.16);
  }
}
@media (prefers-reduced-motion: reduce) {
  .stage.is-demo .pill--online .dot::before {
    animation: none;
    opacity: 0;
  }
  .stage.is-demo .pill--online {
    animation: none;
  }
  .stage.is-demo .pill--online::after {
    animation: none;
    opacity: 0;
  }
}
