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

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

.cb {
  box-sizing: border-box;
  width: min(272px, 84vw);
  background: #fff7e6;
  border-radius: 16px;
  padding: 16px;
  box-shadow: 0 14px 24px rgba(23, 20, 26, 0.32);
}
.cb__label {
  display: block;
  margin: 0 0 4px;
  font-weight: 700;
  font-size: 12px;
  line-height: 1;
  font-family: inherit;
  color: #17141a;
}
.cb__field {
  position: relative;
  width: 100%;
}
.cb__input {
  box-sizing: border-box;
  width: 100%;
  border: 2px solid transparent;
  border-radius: 12px;
  padding: 12px 40px 12px 16px;
  font-weight: 500;
  font-size: clamp(14px, 4.2vw, 16px);
  font-family: inherit;
  color: #17141a;
  background: #fff;
  transition: border-color 140ms cubic-bezier(0.2, 1.4, 0.4, 1);
}
.cb__input:focus {
  outline: none;
  border-color: #2f6df6;
}
.cb__clear {
  position: absolute;
  top: 50%;
  right: 8px;
  transform: translateY(-50%) scale(0.5);
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: rgba(23, 20, 26, 0.08);
  color: #17141a;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity 140ms cubic-bezier(0.2, 1.4, 0.4, 1), transform 140ms cubic-bezier(0.2, 1.4, 0.4, 1), background 140ms cubic-bezier(0.2, 1.4, 0.4, 1);
}
.cb__clear:hover, .cb__clear:focus-visible {
  background: rgba(23, 20, 26, 0.16);
}

.cb.has-value .cb__clear {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(-50%) scale(1);
}

@media (prefers-reduced-motion: reduce) {
  .cb__input, .cb__clear {
    transition: none;
  }
}
