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

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

.rl {
  box-sizing: border-box;
  width: min(400px, 94vw);
  background: #fff7e6;
  border-radius: 16px;
  padding: 8px 16px;
}

.rl__filters {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.rl__chip {
  padding: 4px 12px;
  border-radius: 999px;
  border: 1px solid rgba(23, 20, 26, 0.18);
  background: transparent;
  color: rgba(23, 20, 26, 0.6);
  font-weight: 600;
  font-size: 10px;
  line-height: 1.6;
  font-family: inherit;
  cursor: pointer;
  transition: background 300ms cubic-bezier(0.2, 0.8, 0.2, 1), color 300ms cubic-bezier(0.2, 0.8, 0.2, 1), border-color 300ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.rl__chip[aria-pressed=true] {
  background: #17141a;
  border-color: #17141a;
  color: #fff7e6;
}

.rl__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.rl__row {
  position: relative;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 8px 8px 12px;
  border-radius: 8px;
  background: rgba(23, 20, 26, 0.04);
  overflow: hidden;
  max-height: 40px;
  opacity: 1;
  transition: max-height 300ms cubic-bezier(0.2, 0.8, 0.2, 1), opacity 300ms cubic-bezier(0.2, 0.8, 0.2, 1), padding 300ms cubic-bezier(0.2, 0.8, 0.2, 1), margin 300ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.rl__row::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: #2f6df6;
}

.rl__row.is-hidden {
  max-height: 0;
  opacity: 0;
  padding-top: 0;
  padding-bottom: 0;
  margin: 0;
}

.rl__date {
  flex: 0 0 auto;
  font-weight: 700;
  font-size: 10px;
  line-height: 1;
  font-family: inherit;
  color: rgba(23, 20, 26, 0.72);
}

.rl__title {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 600;
  font-size: clamp(11px, 3vw, 12px);
  line-height: 1.35;
  font-family: inherit;
  color: #17141a;
}

.rl__tag {
  flex: 0 0 auto;
  padding: 4px 8px;
  border-radius: 4px;
  background: rgba(47, 109, 246, 0.12);
  color: #0a4fe8;
  font-weight: 700;
  font-size: 9px;
  line-height: 1.6;
  font-family: inherit;
}

.rl.is-demo .rl__row::before {
  animation: rl-scan 2s cubic-bezier(0.2, 0.8, 0.2, 1) infinite;
}

.rl.is-demo .rl__row:nth-child(1)::before {
  animation-delay: 0ms;
}

.rl.is-demo .rl__row:nth-child(2)::before {
  animation-delay: 160ms;
}

.rl.is-demo .rl__row:nth-child(3)::before {
  animation-delay: 320ms;
}

.rl.is-demo .rl__row:nth-child(4)::before {
  animation-delay: 480ms;
}

@keyframes rl-scan {
  0%, 80%, 100% {
    transform: scaleY(1);
    opacity: 1;
  }
  30% {
    transform: scaleY(1.6);
    opacity: 0.5;
  }
}
@media (max-width: 340px), (max-height: 220px) {
  .rl {
    padding: 4px 12px;
  }
  .rl__filters {
    margin-bottom: 4px;
  }
  .rl__date {
    display: none;
  }
  .rl__row {
    padding: 4px 8px 4px 12px;
    max-height: 26px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .rl__row {
    transition: none;
  }
  .rl.is-demo .rl__row::before {
    animation: none !important;
  }
}
