.dashboard-metric-loading {
  color: #a8b4ca !important;
  animation: dashboard-pulse 1.2s ease-in-out infinite;
}

.dashboard-loading,
.dashboard-load-error {
  display: grid;
  justify-items: center;
  gap: 7px;
  padding: 38px 20px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: #fbfcff;
  text-align: center;
}

.dashboard-loading strong,
.dashboard-load-error strong {
  color: var(--navy);
}

.dashboard-loading small,
.dashboard-load-error small {
  color: var(--muted);
}

.dashboard-load-error .button {
  margin-top: 8px;
}

.loading-spinner {
  width: 24px;
  height: 24px;
  margin-bottom: 5px;
  border: 3px solid #d9e3f5;
  border-top-color: var(--blue);
  border-radius: 50%;
  animation: dashboard-spin .8s linear infinite;
}

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

@keyframes dashboard-pulse {
  50% { opacity: .45; }
}

@media (prefers-reduced-motion: reduce) {
  .dashboard-metric-loading,
  .loading-spinner { animation: none; }
}
