@layer components {
.state {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-5);
  background: var(--color-panel);
}

.state--empty {
  text-align: center;
}

.state--error {
  border-color: rgba(255, 92, 122, 0.48);
  background: rgba(255, 92, 122, 0.1);
}

.state--success {
  border-color: rgba(98, 230, 165, 0.48);
  background: rgba(98, 230, 165, 0.1);
}

.state__title {
  margin-block-end: var(--space-2);
  font-size: var(--text-xl);
}

.loading-spinner {
  inline-size: 2rem;
  block-size: 2rem;
  border: 3px solid var(--color-border-muted);
  border-block-start-color: var(--surface);
  border-radius: 999px;
  animation: depth-spin 900ms linear infinite;
}

.loading-dots {
  display: inline-flex;
  gap: var(--space-1);
}

.loading-dots span {
  inline-size: 0.45rem;
  block-size: 0.45rem;
  border-radius: 999px;
  background: var(--color-fill-surface);
  animation: depth-pulse 1s ease-in-out infinite;
}

.loading-dots span:nth-child(2) {
  animation-delay: 120ms;
}

.loading-dots span:nth-child(3) {
  animation-delay: 240ms;
}

.skeleton {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-sm);
  background: var(--color-panel-frost-strong);
}

.skeleton::after {
  content: "";
  position: absolute;
  inset: 0;
  transform: translateX(-100%);
  background: linear-gradient(90deg, transparent, var(--color-panel-frost-strong), transparent);
  animation: depth-shimmer 1.4s ease-in-out infinite;
}

.skeleton--line {
  block-size: 0.9rem;
}

.skeleton--title {
  block-size: 1.4rem;
  inline-size: 60%;
}

.skeleton--block {
  block-size: 8rem;
}

@keyframes depth-spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes depth-pulse {
  0%,
  100% {
    opacity: 0.36;
    transform: translateY(0);
  }

  50% {
    opacity: 1;
    transform: translateY(-0.2rem);
  }
}

@keyframes depth-shimmer {
  to {
    transform: translateX(100%);
  }
}
}
