/* 13.7 states: skeleton after 300 ms, slow line after 5 s, error, empty, offline. */
@keyframes zm-appear { from { opacity: 0; } to { opacity: 1; } }
@keyframes zm-pulse { 50% { opacity: .45; } }

.zm-skel { display: grid; gap: 12px; padding: 16px 0; }
.zm-skel__line {
  display: block; height: 18px; border-radius: 8px; background: var(--surface-2, #1b1a2b);
  animation: zm-pulse 1.4s ease-in-out infinite;
}
.zm-skel__line:first-child { width: 60%; height: 24px; }
.zm-skel__line:nth-child(3n) { width: 80%; }

.zm-skel::after,
[data-panel-skeleton]::after,
[data-panel-boot]::after {
  content: "کمی بیشتر طول کشید؛ هنوز در حال آماده شدن است…";
  display: block; width: 100%; margin-top: 12px; color: var(--muted, #9894b0); font-size: .9rem; text-align: center;
  opacity: 0; animation: zm-appear 180ms 5s both;
}
[data-panel-skeleton],
[data-panel-boot] { animation: zm-appear 180ms 300ms both; }

.zm-state { display: grid; justify-items: center; gap: 14px; padding: 32px 16px; text-align: center; }
.zm-state__text { margin: 0; color: var(--text, #eceaf4); line-height: 1.8; }
.zm-state--error .zm-state__text { color: var(--text, #eceaf4); }

.zm-offline {
  position: fixed; z-index: 220; inset-inline: 0; top: var(--app-header-height, 56px);
  padding: 6px 12px; text-align: center; font-size: .85rem;
  background: var(--surface-2, #1b1a2b); color: var(--gold, #e3bd4d);
  border-bottom: 1px solid var(--border, #2a2845);
}

@media (prefers-reduced-motion: reduce) {
  .zm-skel__line { animation: none; }
}

/* S24 care screen (SAF-01): no tool, pack or credit here. */
.zm-care {
  position: fixed; inset: 0; z-index: 6000; display: flex; align-items: center; justify-content: center;
  padding: 16px; background: rgba(0, 0, 0, .65);
}
.zm-care__body {
  width: min(100%, 440px); display: grid; gap: 12px; padding: 24px 20px; border-radius: 16px;
  background: var(--surface, #14141f); color: var(--text, #eceaf4); text-align: center;
}
.zm-care__title { margin: 0; font-size: 1.2rem; }
.zm-care__text, .zm-care__closing { margin: 0; line-height: 1.8; }
.zm-care__closing { color: var(--muted, #9894b0); font-size: .9rem; }
.zm-care__line {
  display: block; padding: 12px; border-radius: 12px; border: 1px solid var(--border, #2a2845);
  color: var(--text, #eceaf4); text-decoration: none; font-weight: 700;
}
.zm-care__call { min-height: 52px; display: flex; align-items: center; justify-content: center; }
.zm-care__back { background: none; border: 0; color: var(--accent, #9d7aea); font: inherit; cursor: pointer; padding: 8px; }

/* SAF-03 / SAF-08 / SAF-10 notes under tool results. */
.zm-result-notes { display: grid; gap: 6px; margin: 20px 0 8px; padding: 12px 16px 8px; border-top: 1px solid var(--border, #2a2845); justify-items: center; }
.zm-result-note { margin: 0; font-size: 12px; line-height: 1.8; color: var(--muted, #9894b0); max-width: 40rem; }
.zm-result-note--disclaimer { text-align: center; }
.zm-result-note--health, .zm-result-note--religious { color: var(--text, #eceaf4); }
