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

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

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

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

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

.cm__tree li[aria-selected=true] > .cm__row {
  outline: 2px solid #17141a;
  outline-offset: -2px;
}

.cm__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: context-menu;
  user-select: none;
}

.cm__row:hover {
  background: rgba(255, 255, 255, 0.1);
}

.cm__row:focus {
  outline: none;
}

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

.cm__ico--folder {
  color: #ffd23f;
}

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

.cm__dot {
  position: absolute;
  left: 96px;
  top: 10px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #fff;
  opacity: 0;
}

.cm__menu {
  position: absolute;
  left: 88px;
  top: 26px;
  box-sizing: border-box;
  width: 148px;
  padding: 4px 0;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 14px 24px rgba(23, 20, 26, 0.32);
  transform-origin: top left;
  z-index: 2;
}

.cm__menu:focus {
  outline: none;
}

.cm__hl {
  position: absolute;
  left: 4px;
  right: 4px;
  top: 4px;
  height: 28px;
  border-radius: 4px;
  background: rgba(255, 77, 31, 0.12);
  transition: transform 120ms ease-out;
}

.cm__mi {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  height: 28px;
  padding: 0 8px;
  border: 0;
  background: none;
  border-radius: 4px;
  font-family: inherit;
  font-size: 11px;
  line-height: 28px;
  font-weight: 700;
  color: #17141a;
  cursor: pointer;
  width: 100%;
  text-align: left;
}

.cm__mi-ico {
  display: inline-flex;
  flex: 0 0 auto;
  color: #ff4d1f;
}

.cm__mi:hover {
  background: rgba(255, 77, 31, 0.12);
}

.cm__mi:focus {
  outline: none;
}

.cm.is-demo .cm__dot {
  animation-name: cm-dot;
  animation-duration: 2s;
  animation-timing-function: cubic-bezier(0.2, 1.4, 0.4, 1);
  animation-iteration-count: infinite;
}

@keyframes cm-dot {
  0% {
    transform: scale(0);
    opacity: 1;
  }
  8%, 78% {
    transform: scale(1);
    opacity: 1;
  }
  90%, 100% {
    transform: scale(0);
    opacity: 0;
  }
}
.cm.is-demo .cm__menu {
  display: block;
  animation-name: cm-menu;
  animation-duration: 2s;
  animation-timing-function: cubic-bezier(0.2, 1.4, 0.4, 1);
  animation-iteration-count: infinite;
}

@keyframes cm-menu {
  0%, 7.9% {
    opacity: 0;
    transform: scale(0.7);
  }
  14% {
    opacity: 1;
    transform: scale(1);
  }
  72% {
    opacity: 1;
    transform: scale(1);
  }
  80%, 100% {
    opacity: 0;
    transform: scale(0.9);
  }
}
.cm.is-demo .cm__hl {
  animation-name: cm-bar;
  animation-duration: 2s;
  animation-timing-function: ease-out;
  animation-iteration-count: infinite;
}

@keyframes cm-bar {
  0%, 15% {
    transform: translateY(0);
  }
  25%, 35% {
    transform: translateY(28px);
  }
  45%, 55% {
    transform: translateY(56px);
  }
  65%, 100% {
    transform: translateY(84px);
  }
}
.cm.is-demo .cm__item.is-row1 .cm__row {
  animation-name: cm-tint;
  animation-duration: 2s;
  animation-timing-function: steps(1, end);
  animation-iteration-count: infinite;
}

@keyframes cm-tint {
  0%, 7.9% {
    background: transparent;
  }
  8%, 72% {
    background: rgba(255, 255, 255, 0.1);
  }
  72.01%, 100% {
    background: transparent;
  }
}
@media (max-width: 340px) {
  .cm__row {
    height: 22px;
    font-size: 11px;
  }
  .cm__mi {
    height: 24px;
    line-height: 24px;
    font-size: 10px;
  }
  .cm__hl {
    height: 24px;
  }
  .cm__menu {
    left: 72px;
    top: 22px;
    width: 132px;
  }
  .cm__dot {
    left: 80px;
    top: 8px;
  }
  @keyframes cm-bar {
    0%, 15% {
      transform: translateY(0);
    }
    25%, 35% {
      transform: translateY(24px);
    }
    45%, 55% {
      transform: translateY(48px);
    }
    65%, 100% {
      transform: translateY(72px);
    }
  }
}
@media (prefers-reduced-motion: reduce) {
  .cm.is-demo .cm__dot, .cm.is-demo .cm__menu, .cm.is-demo .cm__hl, .cm.is-demo .cm__item.is-row1 .cm__row {
    animation: none !important;
  }
  .cm__hl {
    transition: none;
  }
  .cm.is-demo .cm__menu {
    display: none;
  }
}
