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

.rowx-list {
  list-style: none;
  margin: 0;
  padding: 0;
  width: min(300px, 84vw);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.rowx-item {
  border-radius: 16px;
  background: #ffffff;
  overflow: hidden;
}

.rowx-item__head {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 16px;
  border: 0;
  background: none;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
}

.rowx-item__head:focus-visible {
  outline: 2px solid #2f6df6;
  outline-offset: -2px;
  border-radius: 16px;
}

.rowx-item__caret {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  color: #2f6df6;
  transition: transform 300ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.rowx-item.is-open .rowx-item__caret {
  transform: rotate(90deg);
}

.rowx-item__title {
  flex: 1 1 auto;
  font-weight: 700;
  font-size: 14px;
  color: #17141a;
}

.rowx-item__meta {
  font-size: 12px;
  color: rgba(23, 20, 26, 0.6);
}

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

.rowx-item.is-open .rowx-item__body {
  grid-template-rows: 1fr;
}

.rowx-item__body-inner {
  overflow: hidden;
  visibility: hidden;
  padding: 0 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.rowx-item.is-open .rowx-item__body-inner {
  padding: 0 16px 16px;
  visibility: visible;
}

.rowx-item__body-inner p {
  margin: 0;
  font-size: 12px;
  color: rgba(23, 20, 26, 0.72);
}

.rowx-item__head.is-demo {
  pointer-events: none;
}

.rowx-item__head.is-demo .rowx-item__caret {
  animation: rowx-caret-loop 2s cubic-bezier(0.2, 0.8, 0.2, 1) infinite;
}

.rowx-item:has(.rowx-item__head.is-demo) .rowx-item__body {
  animation: rowx-rows-loop 2s cubic-bezier(0.2, 0.8, 0.2, 1) infinite;
}

@keyframes rowx-caret-loop {
  0%, 10% {
    transform: rotate(0deg);
  }
  40%, 65% {
    transform: rotate(90deg);
  }
  95%, 100% {
    transform: rotate(0deg);
  }
}
@keyframes rowx-rows-loop {
  0%, 10% {
    grid-template-rows: 0fr;
  }
  40%, 65% {
    grid-template-rows: 1fr;
  }
  95%, 100% {
    grid-template-rows: 0fr;
  }
}
@media (prefers-reduced-motion: reduce) {
  .rowx-item__caret, .rowx-item__body {
    transition: none;
  }
}
