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

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

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

.zb__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin: 0 0 8px;
}

.zb__title {
  font-size: 10px;
  line-height: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.75);
}

.zb__hint {
  font-size: 9px;
  line-height: 12px;
  color: rgba(255, 255, 255, 0.52);
}

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

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

.zb__item {
  margin-bottom: 4px;
}

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

.zb__row:hover {
  background: rgba(255, 255, 255, 0.07);
}

.zb__item[aria-selected=true] .zb__row {
  background: rgba(47, 109, 246, 0.22);
}

.zb__ico {
  display: inline-flex;
  flex: 0 0 auto;
  color: #fff;
}

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

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

.zb__size {
  margin-left: auto;
  flex: 0 0 auto;
  font-size: 10px;
  line-height: 12px;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.55);
}

.zb__bar {
  display: block;
  height: 6px;
  margin: 0 8px 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  overflow: hidden;
}

.zb__fill {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: #2f6df6;
  transform-origin: left center;
  transform: scaleX(var(--v));
  transition: transform 300ms ease-out;
}

.zb.is-demo .zb__fill {
  animation-name: zb-grow;
  animation-duration: 2s;
  animation-timing-function: ease-out;
  animation-iteration-count: infinite;
  animation-delay: var(--d, 0ms);
}

.zb__item:nth-child(1) .zb__fill {
  --d: 0ms;
}

.zb__item:nth-child(2) .zb__fill {
  --d: 90ms;
}

.zb__item:nth-child(3) .zb__fill {
  --d: 180ms;
}

.zb__item:nth-child(4) .zb__fill {
  --d: 270ms;
}

@keyframes zb-grow {
  0% {
    transform: scaleX(0);
  }
  16% {
    transform: scaleX(var(--v));
  }
  80% {
    transform: scaleX(var(--v));
  }
  96%, 100% {
    transform: scaleX(0);
  }
}
.zb.is-demo .zb__size {
  animation-name: zb-size;
  animation-duration: 2s;
  animation-timing-function: steps(1, end);
  animation-iteration-count: infinite;
}

.zb__item:nth-child(1) .zb__size {
  animation-delay: 0ms;
}

.zb__item:nth-child(2) .zb__size {
  animation-delay: 90ms;
}

.zb__item:nth-child(3) .zb__size {
  animation-delay: 180ms;
}

.zb__item:nth-child(4) .zb__size {
  animation-delay: 270ms;
}

@keyframes zb-size {
  0%, 15.9% {
    opacity: 0;
  }
  16%, 80% {
    opacity: 1;
  }
  80.01%, 100% {
    opacity: 0;
  }
}
@media (max-width: 340px) {
  .zb__row {
    height: 20px;
    font-size: 11px;
  }
  .zb__hint {
    display: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  .zb.is-demo .zb__fill, .zb.is-demo .zb__size {
    animation: none !important;
  }
  .zb__fill {
    transition: none;
  }
}
