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

.ts {
  position: relative;
  box-sizing: border-box;
  width: min(304px, 92vw);
  padding: 12px;
  border: 1px solid rgb(23.5764705882%, 22.0862745098%, 22.9960784314%);
  border-radius: 16px;
  background: #17141a;
  color: #fff7e6;
  font-family: -apple-system, "Segoe UI", "Noto Sans KR", sans-serif;
  font-size: 12px;
  line-height: 1.3;
  overflow: hidden;
}

.ts__h {
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 0 0 8px;
}

.ts__ic {
  display: inline-flex;
  width: 14px;
  height: 14px;
  color: #4cd4a6;
}

.ts__t {
  margin: 0;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.ts__n {
  position: relative;
  margin-left: auto;
  min-width: 34px;
  padding: 0 8px;
  border-radius: 999px;
  background: #2f6df6;
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.7;
  text-align: center;
}

.ts__list {
  display: grid;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}

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

.ts__row.is-shut .ts__fold {
  grid-template-rows: 0fr;
}

.ts__cell {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 8px;
  min-height: 0;
  overflow: hidden;
  padding: 4px 8px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: rgb(16.2980392157%, 14.9647058824%, 16.5960784314%);
}

.ts__row--new .ts__fold {
  grid-template-rows: 0fr;
}

.ts.is-demo .ts__row--new .ts__fold {
  grid-template-rows: 1fr;
}

.ts__av {
  display: inline-grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--a);
  color: #17141a;
  font-size: 11px;
  font-weight: 700;
}

.ts__line {
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
}

.ts__line b {
  color: #fff7e6;
  font-weight: 700;
}

.ts__tm {
  color: rgba(255, 255, 255, 0.72);
  font-size: 10px;
  white-space: nowrap;
}

.ts__bar {
  position: absolute;
  left: 0;
  top: 6px;
  bottom: 6px;
  width: 4px;
  border-radius: 999px;
  background: #4cd4a6;
  transform-origin: center;
  visibility: hidden;
}

.ts__row.is-in .ts__cell {
  animation: ts-rise 300ms cubic-bezier(0.2, 1.4, 0.4, 1) both;
}

@keyframes ts-rise {
  from {
    transform: translateY(-10px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}
.ts__add {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin: 8px 0 0;
  padding: 4px 12px;
  border: 1px solid rgb(23.5764705882%, 22.0862745098%, 22.9960784314%);
  border-radius: 999px;
  background: transparent;
  color: rgba(255, 255, 255, 0.72);
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.6;
  cursor: pointer;
}

.ts__add:focus-visible {
  outline: 2px solid #2f6df6;
  outline-offset: 2px;
}

.ts__plus {
  display: inline-flex;
  width: 12px;
  height: 12px;
}

@keyframes ts-fold-in {
  0%, 19% {
    grid-template-rows: 0fr;
  }
  26%, 87% {
    grid-template-rows: 1fr;
  }
  88%, 100% {
    grid-template-rows: 0fr;
  }
}
@keyframes ts-new-rise {
  0%, 20% {
    transform: translateY(-10px);
  }
  28%, 87% {
    transform: translateY(0);
  }
  88%, 100% {
    transform: translateY(-10px);
  }
}
@keyframes ts-bar-on {
  0%, 19% {
    visibility: hidden;
  }
  20%, 87% {
    visibility: visible;
  }
  88%, 100% {
    visibility: hidden;
  }
}
@keyframes ts-bar-breath {
  0%, 100% {
    transform: scaleY(0.55);
  }
  50% {
    transform: scaleY(1);
  }
}
@keyframes ts-av-pop {
  0%, 20% {
    transform: scale(0.4);
  }
  26%, 87% {
    transform: scale(1);
  }
  88%, 100% {
    transform: scale(0.4);
  }
}
@keyframes ts-n-swap {
  0%, 19% {
    transform: translateY(0);
  }
  20%, 87% {
    transform: translateY(-3px);
  }
  88%, 100% {
    transform: translateY(0);
  }
}
.ts.is-demo .ts__row--new .ts__fold {
  animation-name: ts-fold-in;
  animation-duration: 2s;
  animation-timing-function: cubic-bezier(0.2, 1.4, 0.4, 1);
  animation-iteration-count: infinite;
}
.ts.is-demo .ts__row--new .ts__cell {
  animation-name: ts-new-rise;
  animation-duration: 2s;
  animation-timing-function: cubic-bezier(0.2, 0.8, 0.2, 1);
  animation-iteration-count: infinite;
}
.ts.is-demo .ts__row--new .ts__bar {
  visibility: visible;
  animation-name: ts-bar-on, ts-bar-breath;
  animation-duration: 2s, 600ms;
  animation-timing-function: steps(1, end), ease-in-out;
  animation-iteration-count: infinite, infinite;
}
.ts.is-demo .ts__row--new .ts__av {
  animation-name: ts-av-pop;
  animation-duration: 2s;
  animation-timing-function: cubic-bezier(0.2, 0.8, 0.2, 1);
  animation-iteration-count: infinite;
}
.ts.is-demo .ts__n {
  animation-name: ts-n-swap;
  animation-duration: 2s;
  animation-timing-function: steps(1, end);
  animation-iteration-count: infinite;
}
.ts.is-demo .ts__row--new .ts__cell {
  background: rgba(255, 255, 255, 0.12);
}

@media (max-width: 340px) {
  .ts {
    padding: 8px;
    font-size: 11px;
  }
  .ts__h {
    margin-bottom: 4px;
  }
  .ts__cell {
    padding: 0 8px;
  }
  .ts__av {
    width: 16px;
    height: 16px;
    font-size: 10px;
  }
  .ts__row--old {
    display: none;
  }
  .ts__add {
    margin-top: 4px;
    padding: 0 12px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .ts__fold {
    transition: none;
  }
  .ts__row.is-in .ts__cell {
    animation: none !important;
  }
  .ts.is-demo .ts__row--new .ts__fold,
  .ts.is-demo .ts__row--new .ts__cell,
  .ts.is-demo .ts__row--new .ts__av,
  .ts.is-demo .ts__n {
    animation: none !important;
    transform: none !important;
  }
  .ts.is-demo .ts__row--new .ts__bar {
    animation: none !important;
  }
  .ts.is-demo .ts__row--new .ts__fold {
    grid-template-rows: 1fr !important;
  }
  .ts.is-demo .ts__row--new .ts__bar {
    visibility: visible !important;
  }
  .ts.is-demo .ts__row--new .ts__av {
    transform: scale(1) !important;
  }
}
