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

.cc {
  width: min(100%, 420px);
  display: grid;
  gap: 8px;
  color: #17141a;
}

.cc__label {
  font-size: 12px;
  font-weight: 600;
  line-height: 16px;
  color: #17141a;
}

.cc__field {
  position: relative;
  height: 72px;
  border-radius: 8px;
  background: rgba(23, 20, 26, 0.04);
}

.cc__mirror,
.cc__ta {
  box-sizing: border-box;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 8px 12px;
  border: 1px solid rgba(23, 20, 26, 0.32);
  border-radius: 8px;
  font-family: inherit;
  font-size: 13px;
  line-height: 18px;
  white-space: pre-wrap;
  overflow-wrap: break-word;
  word-break: normal;
}

.cc__mirror {
  overflow: hidden;
  color: transparent;
  border-color: transparent;
  pointer-events: none;
}

.cc__ta {
  resize: none;
  overflow-y: auto;
  scrollbar-width: none;
  background: transparent;
  color: #17141a;
}

.cc__ta::-webkit-scrollbar {
  display: none;
}

.cc__ta::placeholder {
  color: rgba(23, 20, 26, 0.64);
}

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

.cc__mark {
  color: transparent;
  border-radius: 4px;
  background: rgba(255, 158, 187, 0.5);
}

.cc__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 28px;
}

.cc__big {
  display: flex;
  align-items: baseline;
  gap: 4px;
}

.cc__num {
  font-size: 24px;
  line-height: 28px;
  font-weight: 700;
  color: #17141a;
  font-variant-numeric: tabular-nums;
}

.cc__unit {
  font-size: 12px;
  font-weight: 600;
  color: rgba(23, 20, 26, 0.78);
}

.cc__over {
  padding: 0 8px;
  border-radius: 999px;
  font-size: 12px;
  line-height: 20px;
  font-weight: 600;
  color: #17141a;
  background: transparent;
}

.cc__over.is-on {
  background: #ff9ebb;
}

.cc__sr {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

@media (max-width: 340px) {
  .cc__num {
    font-size: 20px;
    line-height: 24px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .cc__mark {
    transition: none;
  }
}
