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

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

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

.ft__tree, .ft__tree ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

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

.ft__tree:focus-visible .ft__item.is-at > .ft__row {
  outline: 2px solid #2f6df6;
  outline-offset: -2px;
}

.ft__row {
  box-sizing: border-box;
  height: 22px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 4px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  user-select: none;
}

.ft__row:hover {
  background: rgba(23, 20, 26, 0.07);
}

.ft__item.is-at > .ft__row {
  background: rgba(23, 20, 26, 0.12);
}

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

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

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

.ft__kind {
  margin-left: auto;
  flex: 0 0 auto;
  font-size: 9px;
  line-height: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: rgba(23, 20, 26, 0.72);
}

.ft__kids {
  display: grid;
  grid-template-rows: 1fr;
  transition: grid-template-rows 300ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.ft__kwrap {
  overflow: hidden;
  min-height: 0;
}

.ft__lv2, .ft__lv3 {
  margin-left: 4px;
  padding-left: 8px;
  border-left: 1px solid rgba(23, 20, 26, 0.22);
  transform-origin: top center;
}

.ft__lv3 {
  border-left-color: rgba(23, 20, 26, 0.14);
}

.ft__item.is-branch:not(.is-open) > .ft__kids {
  grid-template-rows: 0fr;
}

.ft.is-demo .ft__lv2 {
  animation-name: ft-guide;
  animation-duration: 2s;
  animation-timing-function: ease-out;
  animation-iteration-count: infinite;
}

@keyframes ft-guide {
  0% {
    transform: scaleY(0);
  }
  14%, 84% {
    transform: scaleY(1);
  }
  96%, 100% {
    transform: scaleY(0);
  }
}
.ft.is-demo .ft__lv3 {
  animation-name: ft-guide;
  animation-duration: 2s;
  animation-timing-function: ease-out;
  animation-iteration-count: infinite;
  animation-delay: 120ms;
}

.ft.is-demo .ft__row {
  animation-name: ft-rise;
  animation-duration: 2s;
  animation-timing-function: cubic-bezier(0.2, 0.8, 0.2, 1);
  animation-iteration-count: infinite;
  animation-delay: calc(60ms + var(--i) * 80ms);
}

@keyframes ft-rise {
  0% {
    opacity: 0;
    transform: translateX(-6px);
  }
  9% {
    opacity: 1;
    transform: translateX(0);
  }
  84% {
    opacity: 1;
    transform: translateX(0);
  }
  95%, 100% {
    opacity: 0;
    transform: translateX(-6px);
  }
}
@media (max-width: 340px) {
  .ft__row {
    height: 20px;
    font-size: 11px;
  }
  .ft__kind {
    display: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  .ft.is-demo .ft__row,
  .ft.is-demo .ft__lv2,
  .ft.is-demo .ft__lv3 {
    animation: none !important;
  }
  .ft__kids {
    transition: none;
  }
}
