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

.ct {
  box-sizing: border-box;
  width: min(304px, 92vw);
  padding: 12px;
  border: 1px solid rgb(87.262745098%, 87.0980392157%, 87.4274509804%);
  border-radius: 16px;
  background: #ffffff;
  color: #17141a;
  font-family: -apple-system, "Segoe UI", "Noto Sans KR", sans-serif;
  font-size: 12px;
  line-height: 1.3;
}

.ct__top {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 8px;
  padding: 4px 8px;
  border: 1px solid rgb(87.262745098%, 87.0980392157%, 87.4274509804%);
  border-radius: 8px;
  background: rgb(95.1058823529%, 96.5647058824%, 99.7882352941%);
}

.ct__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;
}

.ct__av--s {
  width: 16px;
  height: 16px;
  font-size: 10px;
}

.ct__body {
  min-width: 0;
}

.ct__txt {
  margin: 0;
  font-size: 12px;
  line-height: 1.35;
}

.ct__txt b {
  font-weight: 700;
}

.ct__tm {
  display: block;
  margin-top: 0;
  color: rgba(23, 20, 26, 0.72);
  font-size: 10px;
}

.ct__tg {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin: 4px 0 0 12px;
  padding: 0 8px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #2f6df6;
  font-family: inherit;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.7;
  cursor: pointer;
}

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

.ct__caret {
  display: inline-flex;
  width: 11px;
  height: 11px;
  transform: rotate(-90deg);
  transition: transform 220ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.ct__tg.is-open .ct__caret {
  transform: rotate(0deg);
}

.ct__fold {
  display: grid;
  grid-template-rows: 0fr;
  margin-left: 12px;
  transition: grid-template-rows 300ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.ct__fold.is-open {
  grid-template-rows: 1fr;
}

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

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

.ct__rep {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 8px;
  padding: 4px 8px;
  border: 1px dashed rgb(87.262745098%, 87.0980392157%, 87.4274509804%);
  border-radius: 8px;
  background: #ffffff;
}

.ct__rep .ct__tm {
  margin: 0;
}

.ct__rep--new, .ct__rep.is-in {
  display: block;
}

.ct__rfold {
  display: grid;
  grid-template-rows: 1fr;
}

.ct__rep--new .ct__rfold,
.ct__rep.is-in .ct__rfold {
  grid-template-rows: 0fr;
}

.ct__rep.is-grow .ct__rfold {
  grid-template-rows: 1fr;
  transition: grid-template-rows 300ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.ct__rcell {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 8px;
  min-height: 0;
  overflow: hidden;
}

.ct__rep.is-in {
  border-style: solid;
  border-color: #2f6df6;
}

.ct__rep.is-in .ct__rcell {
  animation: ct-rise 300ms cubic-bezier(0.2, 1.4, 0.4, 1) both;
}

@keyframes ct-rise {
  from {
    transform: translateY(8px);
  }
  to {
    transform: translateY(0);
  }
}
.ct__add {
  display: inline-flex;
  align-items: center;
  margin: 8px 0 0;
  padding: 4px 12px;
  border: 1px solid rgb(87.262745098%, 87.0980392157%, 87.4274509804%);
  border-radius: 999px;
  background: #ffffff;
  color: #17141a;
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.6;
  cursor: pointer;
}

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

@keyframes ct-fold-open {
  0%, 14% {
    grid-template-rows: 0fr;
  }
  22%, 86% {
    grid-template-rows: 1fr;
  }
  87%, 100% {
    grid-template-rows: 0fr;
  }
}
@keyframes ct-caret-turn {
  0%, 14% {
    transform: rotate(-90deg);
  }
  19%, 86% {
    transform: rotate(0deg);
  }
  87%, 100% {
    transform: rotate(-90deg);
  }
}
@keyframes ct-new-grow {
  0%, 54% {
    grid-template-rows: 0fr;
  }
  55% {
    grid-template-rows: 1fr;
  }
  55.1%, 86% {
    grid-template-rows: 1fr;
  }
  87%, 100% {
    grid-template-rows: 0fr;
  }
}
@keyframes ct-new-rise {
  0%, 55% {
    transform: translateY(8px);
  }
  62%, 86% {
    transform: translateY(0);
  }
  87%, 100% {
    transform: translateY(8px);
  }
}
@keyframes ct-new-pop {
  0%, 55% {
    transform: scale(0.4);
  }
  61%, 86% {
    transform: scale(1);
  }
  87%, 100% {
    transform: scale(0.4);
  }
}
@keyframes ct-add-breath {
  0%, 54% {
    transform: translateY(0);
  }
  59% {
    transform: translateY(-2px);
  }
  64%, 86% {
    transform: translateY(0);
  }
  87%, 100% {
    transform: translateY(0);
  }
}
.ct.is-demo .ct__fold {
  animation-name: ct-fold-open;
  animation-duration: 2s;
  animation-timing-function: cubic-bezier(0.2, 0.8, 0.2, 1);
  animation-iteration-count: infinite;
}
.ct.is-demo .ct__caret {
  animation-name: ct-caret-turn;
  animation-duration: 2s;
  animation-timing-function: cubic-bezier(0.2, 0.8, 0.2, 1);
  animation-iteration-count: infinite;
}
.ct.is-demo .ct__rep--new .ct__rfold {
  animation-name: ct-new-grow;
  animation-duration: 2s;
  animation-timing-function: steps(1, end);
  animation-iteration-count: infinite;
}
.ct.is-demo .ct__rep--new .ct__rcell {
  animation-name: ct-new-rise;
  animation-duration: 2s;
  animation-timing-function: cubic-bezier(0.2, 0.8, 0.2, 1);
  animation-iteration-count: infinite;
}
.ct.is-demo .ct__rep--new .ct__av {
  animation-name: ct-new-pop;
  animation-duration: 2s;
  animation-timing-function: cubic-bezier(0.2, 0.8, 0.2, 1);
  animation-iteration-count: infinite;
}
.ct.is-demo .ct__rep--new {
  border-style: solid;
  border-color: #2f6df6;
}
.ct.is-demo .ct__add {
  animation-name: ct-add-breath;
  animation-duration: 2s;
  animation-timing-function: cubic-bezier(0.2, 0.8, 0.2, 1);
  animation-iteration-count: infinite;
}

@media (max-width: 340px) {
  .ct {
    padding: 8px;
    font-size: 11px;
  }
  .ct__txt {
    font-size: 11px;
  }
  .ct__rep {
    padding: 0 8px;
  }
  .ct__rep--old {
    display: none;
  }
  .ct__fold {
    margin-left: 8px;
  }
  .ct__tg {
    margin-left: 8px;
  }
  .ct__add {
    margin-top: 4px;
    padding: 0 12px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .ct__fold {
    transition: none;
  }
  .ct__caret {
    transition: none;
  }
  .ct__rep.is-in .ct__rcell {
    animation: none !important;
  }
  .ct.is-demo .ct__fold,
  .ct.is-demo .ct__caret,
  .ct.is-demo .ct__rep--new .ct__rfold,
  .ct.is-demo .ct__rep--new .ct__rcell,
  .ct.is-demo .ct__rep--new .ct__av,
  .ct.is-demo .ct__add {
    animation: none !important;
    transform: none !important;
  }
  .ct.is-demo .ct__fold {
    grid-template-rows: 1fr !important;
  }
  .ct.is-demo .ct__caret {
    transform: rotate(0deg) !important;
  }
  .ct.is-demo .ct__rep--new .ct__rfold {
    grid-template-rows: 1fr !important;
  }
  .ct.is-demo .ct__rep--new .ct__av {
    transform: scale(1) !important;
  }
}
