/* Visual states for opt-in lazy section panels. Existing content and forms keep
   their own styles; this only controls the loader's small status surface. */
.section-panel[data-lazy-src][aria-busy="true"] [data-lazy-status] {
  display: block;
  min-height: 5rem;
  padding: 1rem;
  border: 1px solid var(--border, #343943);
  border-radius: 12px;
  color: var(--muted, #9ca3af);
  background: linear-gradient(100deg, transparent 20%, color-mix(in srgb, currentColor 8%, transparent) 40%, transparent 60%);
  background-size: 200% 100%;
  animation: lazy-section-shimmer 1.25s linear infinite;
}
.section-panel[data-lazy-src][data-lazy-state="error"] [data-lazy-status] { color: var(--danger, #f87171); }
.section-panel[data-lazy-src][data-lazy-state="empty"]::after {
  content: "Нет данных для отображения.";
  display: block;
  color: var(--muted, #9ca3af);
}
@keyframes lazy-section-shimmer { to { background-position: -200% 0; } }
@media (prefers-reduced-motion: reduce) {
  .section-panel[data-lazy-src][aria-busy="true"] [data-lazy-status] { animation: none; }
}
