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

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

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

.tl__search {
  flex: 1 1 auto;
  min-width: 0;
  box-sizing: border-box;
  border: 1px solid rgba(23, 20, 26, 0.18);
  background: #fff;
  border-radius: 12px;
  padding: 4px 8px;
  font: inherit;
  font-size: 11px;
  color: #17141a;
}

.tl__search::placeholder {
  color: rgba(23, 20, 26, 0.4);
}

.tl__invite {
  flex: 0 0 auto;
  width: 26px;
  height: 26px;
  padding: 0;
  border: 0;
  background: #17141a;
  color: #ffd23f;
  border-radius: 50%;
  display: grid;
  place-items: center;
  cursor: pointer;
}

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

.tl__row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.tl__avatar {
  position: relative;
  flex: 0 0 auto;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #fff;
  display: grid;
  place-items: center;
  font-size: 10px;
  font-weight: 800;
}

.tl__status {
  position: absolute;
  right: -1px;
  bottom: -1px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 2px solid #ffd23f;
}

.tl__status--on {
  background: #4cd4a6;
}

.tl__status--away {
  background: #d0bd9f;
}

.tl__status--on::after {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: 50%;
  border: 1px solid #4cd4a6;
  opacity: 0.8;
  animation: tl-ping 2.4s cubic-bezier(0.2, 1.4, 0.4, 1) infinite;
}

.tl__name {
  font-size: 12px;
  font-weight: 600;
}

.tl__empty {
  font-size: 11px;
  color: rgba(23, 20, 26, 0.5);
  margin: 8px 0 0;
}

@keyframes tl-ping {
  0% {
    transform: scale(1);
    opacity: 0.8;
  }
  100% {
    transform: scale(1.9);
    opacity: 0;
  }
}
.tl__row--new {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 600ms cubic-bezier(0.2, 1.4, 0.4, 1), transform 600ms cubic-bezier(0.2, 1.4, 0.4, 1);
}

.tl__row--new.is-demo {
  animation: tl-join 2.6s cubic-bezier(0.2, 1.4, 0.4, 1) infinite;
}

@keyframes tl-join {
  0% {
    opacity: 0;
    transform: translateY(8px);
  }
  30% {
    opacity: 1;
    transform: translateY(0);
  }
  80% {
    opacity: 1;
    transform: translateY(0);
  }
  100% {
    opacity: 0;
    transform: translateY(8px);
  }
}
@media (max-width: 340px) {
  .tl__name {
    font-size: 11px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .tl__status--on::after {
    animation: none !important;
    opacity: 0;
  }
  .tl__row--new.is-demo {
    animation: none !important;
    opacity: 1;
    transform: translateY(0);
  }
  .tl__row--new {
    transition: none;
  }
}
