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

.rn {
  box-sizing: border-box;
  width: min(276px, 88vw);
  font-family: -apple-system, "Segoe UI", "Noto Sans KR", sans-serif;
  color: #17141a;
}

.rn__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0 0 8px;
}

.rn__title {
  font-size: 10px;
  line-height: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: rgba(23, 20, 26, 0.72);
}

.rn__add {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 20px;
  padding: 0 8px;
  border: 1px solid rgba(23, 20, 26, 0.16);
  border-radius: 999px;
  background: #fff;
  font-family: inherit;
  font-size: 10px;
  line-height: 20px;
  font-weight: 800;
  color: #17141a;
  cursor: pointer;
}

.rn__add:hover {
  border-color: #2f6df6;
  color: #2f6df6;
}

.rn__add svg {
  color: #2f6df6;
}

.rn__tree {
  list-style: none;
  margin: 0;
  padding: 0;
}

.rn__tree:focus-visible {
  outline: none;
}

.rn__row {
  box-sizing: border-box;
  height: 26px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 8px;
  margin-bottom: 4px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
  cursor: default;
  user-select: none;
}

.rn__row:hover {
  background: rgba(23, 20, 26, 0.05);
}

.rn__ico {
  display: inline-flex;
  flex: 0 0 auto;
  color: #17141a;
}

.rn__ico--folder {
  color: #2f6df6;
}

.rn__name {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.rn__ok {
  margin-left: auto;
  display: inline-flex;
  flex: 0 0 auto;
  color: #4cd4a6;
  opacity: 0;
}

.rn__ok.is-flash {
  animation-name: rn-ok;
  animation-duration: 480ms;
  animation-timing-function: cubic-bezier(0.2, 1.4, 0.4, 1);
  animation-iteration-count: 1;
}

@keyframes rn-ok {
  0% {
    opacity: 0;
    transform: scale(0.5);
  }
  40% {
    opacity: 1;
    transform: scale(1);
  }
  100% {
    opacity: 0;
    transform: scale(1);
  }
}
.rn__stack {
  position: relative;
  display: block;
  flex: 1;
  height: 26px;
  min-width: 0;
}

.rn__lab {
  position: absolute;
  left: 0;
  top: 0;
  line-height: 26px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
  opacity: 0;
}

.rn__field {
  position: absolute;
  left: -4px;
  top: 1px;
  right: 0;
  height: 24px;
  display: none;
  align-items: center;
  padding: 0 8px;
  border: 1px solid #2f6df6;
  border-radius: 4px;
  background: #fff;
  box-shadow: 0 0 0 2px rgba(47, 109, 246, 0.18);
  opacity: 0;
}

.rn__fv {
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}

.rn__fv--1 {
  background: rgba(47, 109, 246, 0.18);
}

.rn__caret {
  display: inline-block;
  width: 1px;
  height: 14px;
  margin-left: 0;
  background: #2f6df6;
}

.rn__live {
  display: inline-flex;
  flex: 1;
  min-width: 0;
}

.rn__edit {
  box-sizing: border-box;
  width: 100%;
  height: 22px;
  padding: 0 8px;
  border: 1px solid #2f6df6;
  border-radius: 4px;
  background: #fff;
  box-shadow: 0 0 0 2px rgba(47, 109, 246, 0.18);
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  color: #17141a;
  outline: none;
}

.rn.is-demo .rn__lab--1 {
  animation-name: rn-l1;
  animation-duration: 2s;
  animation-timing-function: steps(1, end);
  animation-iteration-count: infinite;
}

@keyframes rn-l1 {
  0% {
    opacity: 1;
  }
  8% {
    opacity: 0;
  }
  94% {
    opacity: 1;
  }
  100% {
    opacity: 1;
  }
}
.rn.is-demo .rn__lab--2 {
  animation-name: rn-l2;
  animation-duration: 2s;
  animation-timing-function: steps(1, end);
  animation-iteration-count: infinite;
}

@keyframes rn-l2 {
  0% {
    opacity: 0;
  }
  52% {
    opacity: 1;
  }
  82% {
    opacity: 1;
  }
  82.01%, 100% {
    opacity: 0;
  }
}
.rn.is-demo .rn__field {
  display: flex;
  animation-name: rn-f;
  animation-duration: 2s;
  animation-timing-function: steps(1, end);
  animation-iteration-count: infinite;
}

@keyframes rn-f {
  0% {
    opacity: 0;
  }
  8% {
    opacity: 1;
  }
  52% {
    opacity: 0;
  }
  100% {
    opacity: 0;
  }
}
.rn.is-demo .rn__fv--1 {
  animation-name: rn-v1;
  animation-duration: 2s;
  animation-timing-function: steps(1, end);
  animation-iteration-count: infinite;
}

@keyframes rn-v1 {
  0%, 7.9% {
    opacity: 0;
  }
  8% {
    opacity: 1;
  }
  36% {
    opacity: 0;
  }
  100% {
    opacity: 0;
  }
}
.rn.is-demo .rn__fv--2 {
  animation-name: rn-v2;
  animation-duration: 2s;
  animation-timing-function: steps(1, end);
  animation-iteration-count: infinite;
}

@keyframes rn-v2 {
  0%, 35.9% {
    opacity: 0;
  }
  36% {
    opacity: 1;
  }
  52% {
    opacity: 0;
  }
  100% {
    opacity: 0;
  }
}
.rn.is-demo .rn__caret {
  animation-name: rn-caret;
  animation-duration: 2s;
  animation-timing-function: steps(1, end);
  animation-iteration-count: infinite;
}

@keyframes rn-caret {
  0%, 7.9% {
    opacity: 0;
  }
  8% {
    opacity: 1;
  }
  16% {
    opacity: 0;
  }
  24% {
    opacity: 1;
  }
  32% {
    opacity: 0;
  }
  40% {
    opacity: 1;
  }
  48% {
    opacity: 0;
  }
  52%, 100% {
    opacity: 0;
  }
}
.rn.is-demo .rn__ok {
  animation-name: rn-oka;
  animation-duration: 2s;
  animation-timing-function: cubic-bezier(0.2, 1.4, 0.4, 1);
  animation-iteration-count: infinite;
}

@keyframes rn-oka {
  0%, 51.9% {
    opacity: 0;
    transform: scale(0.5);
  }
  56% {
    opacity: 1;
    transform: scale(1);
  }
  80% {
    opacity: 1;
    transform: scale(1);
  }
  92%, 100% {
    opacity: 0;
    transform: scale(0.5);
  }
}
@media (max-width: 340px) {
  .rn__row {
    height: 22px;
    font-size: 11px;
  }
  .rn__lab {
    line-height: 22px;
  }
  .rn__field {
    height: 20px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .rn.is-demo .rn__lab, .rn.is-demo .rn__field, .rn.is-demo .rn__fv, .rn.is-demo .rn__caret, .rn.is-demo .rn__ok {
    animation: none !important;
  }
  .rn.is-demo .rn__lab--1 {
    opacity: 1;
  }
  .rn.is-demo .rn__field {
    display: none;
  }
}
