/* Skeletons (infra/web-kit/skeleton.css; identical copy in each app's shared/web-kit/; root CLAUDE.md section 18).
   Grey shapes the size of what is coming, instead of a spinner, so the screen does not jump when the data arrives.
   Use the helpers in skeleton.js, or the classes directly: .sk (a block), .sk-line, .sk-title, .sk-avatar, .sk-card, .sk-row.
   An app that still draws `<div class="loading"><div class="spinner"></div></div>` gets skeleton lines in its place from the last block here. */
.sk { position: relative; overflow: hidden; background: color-mix(in srgb, var(--text, #1d2433) 8%, transparent); border-radius: 8px; }
.sk::after {
  content: ""; position: absolute; inset: 0; transform: translateX(-100%);
  background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--surface, #fbf8f3) 55%, transparent), transparent);
  animation: sk-shine 1.3s ease-in-out infinite;
}
@keyframes sk-shine { to { transform: translateX(100%); } }
@media (prefers-reduced-motion: reduce) { .sk::after { animation: none; } }
.sk-line { height: .875rem; margin: .5rem 0; }
.sk-line.short { width: 40%; }
.sk-line.mid { width: 70%; }
.sk-title { height: 1.375rem; width: 45%; margin: .25rem 0 .875rem; }
.sk-avatar { width: 2.5rem; height: 2.5rem; border-radius: 50%; flex: 0 0 auto; }
.sk-card { border: 1px solid var(--border, #e3e0d8); border-radius: 14px; padding: 1rem; margin-bottom: 1rem; background: var(--surface, #fbf8f3); }
.sk-row { display: flex; align-items: center; gap: .75rem; padding: .625rem 0; }
.sk-row > div { flex: 1; }
.sk-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr)); gap: .75rem; margin-bottom: 1rem; }
.sk-tile { height: 5.5rem; border-radius: 14px; }
.sk-screen { padding: .25rem 0; }
/* the old spinner, drawn as a skeleton instead (sized like a short list) */
.loading.sk-auto { display: block; padding: .5rem 0; }
.loading.sk-auto .spinner { display: none; }
