/* 부품 state — 빈 · 로딩 · 잘못 상태. 묶음: templates/ui/state.html · static/ui/parts/state/state.css · state.md.
   바탕(static/ui/base/ui.css)의 변수 · 단추 클래스에 기댄다. CDN·의존 없음. */
.nx-state { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: var(--sp-2);
            padding: var(--sp-5) var(--sp-4); text-align: center; color: var(--muted); font-size: var(--fs-s); }
.nx-state-icon { font-size: 1.6em; line-height: 1; }
.nx-state[data-state="error"] { color: var(--bad); }
.nx-state[data-state="ok"] { display: none; }
.nx-state[data-state="loading"] .nx-state-icon { width: 22px; height: 22px; border: 3px solid var(--line); border-top-color: var(--acc);
  border-radius: 50%; animation: nx-spin .8s linear infinite; font-size: 0; }
.nx-state [data-state-retry] { display: none; }
.nx-state[data-state="error"] [data-state-retry] { display: inline-flex; }
@keyframes nx-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .nx-state[data-state="loading"] .nx-state-icon { animation-duration: 2.4s; } }
