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

.tb {
  width: min(100%, 300px);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.tb__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  background: rgba(23, 20, 26, 0.05);
  border: 1px solid rgba(23, 20, 26, 0.16);
  border-radius: 12px;
  padding: 8px 12px;
}

.tb__input {
  flex: 1 1 60px;
  min-width: 40px;
  border: none;
  background: transparent;
  color: #17141a;
  font-size: 12px;
  outline: none;
}

.tb__input::placeholder {
  color: rgba(23, 20, 26, 0.5);
}

.tb__chip {
  display: inline-flex;
  align-items: center;
  height: 24px;
  padding: 0 12px;
  background: #17141a;
  color: #fff7e6;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
  box-shadow: 0 0 0 0 rgba(194, 54, 26, 0);
  transform: scale(1) rotate(0deg);
  opacity: 1;
  transition: box-shadow 220ms ease-out, transform 300ms cubic-bezier(0.2, 0.8, 0.2, 1), opacity 300ms ease-out;
}

.tb__chip--selected {
  box-shadow: 0 0 0 3px rgba(194, 54, 26, 0.55);
}

.tb__chip--exit {
  transform: scale(0.4) rotate(-14deg);
  opacity: 0;
}

.tb__meta {
  margin: 0;
  font-size: 11px;
  color: rgba(23, 20, 26, 0.72);
  min-height: 14px;
}

.tb__sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  margin: -1px;
  padding: 0;
  border: 0;
}

@media (max-width: 340px) {
  .tb {
    width: 100%;
  }
  .tb__row {
    padding: 8px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .tb__chip {
    transition: none;
  }
}
