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

.ie-row {
  width: min(240px, 78vw);
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px;
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 14px 24px rgba(23, 20, 26, 0.32);
}

.ie-row__label {
  font-size: 11px;
  color: rgba(23, 20, 26, 0.72);
}

.ie-row__field {
  display: flex;
  align-items: center;
  gap: 8px;
  border-radius: 8px;
  border: 1px solid transparent;
  padding: 8px 12px;
  transition: border-color 220ms ease-out, background 220ms ease-out;
}

.ie-row.is-editing .ie-row__field {
  border-color: #2f6df6;
  background: #eef4ff;
}

.ie-row__input {
  flex: 1 1 auto;
  border: 0;
  background: none;
  font: 700 14px/1.3 sans-serif;
  font-family: inherit;
  color: #17141a;
  padding: 0;
}

.ie-row__input:focus {
  outline: none;
}

.ie-row__toggle {
  position: relative;
  width: 24px;
  height: 24px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border: 0;
  background: none;
  color: #2f6df6;
  cursor: pointer;
}

.ie-row__toggle:focus-visible {
  outline: 2px solid #2f6df6;
  outline-offset: 2px;
  border-radius: 4px;
}

.ie-row__icon {
  position: absolute;
  width: 15px;
  height: 15px;
  transition: opacity 220ms ease-out, transform 220ms ease-out;
}

.ie-row__icon--check {
  opacity: 0;
  transform: scale(0.6);
  color: #4cd4a6;
}

.ie-row.is-saved .ie-row__icon--pencil {
  opacity: 0;
  transform: scale(0.6);
}

.ie-row.is-saved .ie-row__icon--check {
  opacity: 1;
  transform: scale(1);
}

.ie-row.is-demo .ie-row__field {
  animation: ie-field-loop 2s ease-out infinite;
}

.ie-row.is-demo .ie-row__icon--pencil {
  animation: ie-pencil-loop 2s ease-out infinite;
}

.ie-row.is-demo .ie-row__icon--check {
  animation: ie-check-loop 2s ease-out infinite;
}

@keyframes ie-field-loop {
  0%, 10% {
    border-color: transparent;
    background: transparent;
  }
  30%, 80% {
    border-color: #2f6df6;
    background: #eef4ff;
  }
  95%, 100% {
    border-color: transparent;
    background: transparent;
  }
}
@keyframes ie-pencil-loop {
  0%, 10% {
    opacity: 1;
    transform: scale(1);
  }
  35%, 100% {
    opacity: 0;
    transform: scale(0.6);
  }
}
@keyframes ie-check-loop {
  0%, 30% {
    opacity: 0;
    transform: scale(0.6);
  }
  40%, 80% {
    opacity: 1;
    transform: scale(1);
  }
  95%, 100% {
    opacity: 0;
    transform: scale(0.6);
  }
}
@media (prefers-reduced-motion: reduce) {
  .ie-row__field, .ie-row__icon {
    transition: none;
  }
}
