/* Shared decorative loading shapes. Existing modules own real status/error text. */
.mley-skeleton {
  --skeleton-fill: color-mix(in srgb, var(--text-muted) 19%, var(--bg-surface));
  --skeleton-sheen: color-mix(in srgb, var(--bg-surface) 70%, transparent);
  display: grid; gap: 12px; width: 100%; min-width: 0; box-sizing: border-box;
  margin: 0; padding: 0; list-style: none; pointer-events: none;
}
.mley-skeleton__row { display: flex; align-items: center; gap: 12px; padding: 12px 0; min-width: 0; }
.mley-skeleton--cards .mley-skeleton__row {
  padding: 16px; border: 1px solid var(--border-color); border-radius: 12px; background: var(--bg-surface);
}
.mley-skeleton__copy { display: grid; flex: 1 1 auto; min-width: 0; gap: 10px; }
.mley-skeleton__line, .mley-skeleton__shape {
  display: block; position: relative; overflow: hidden; background: var(--skeleton-fill); border-radius: 5px;
}
.mley-skeleton__line { width: 100%; height: 10px; }
.mley-skeleton__line:first-child { width: 64%; height: 14px; }
.mley-skeleton__line:nth-child(2) { width: 40%; height: 8px; }
.mley-skeleton__line:last-child { width: 78%; }
.mley-skeleton__shape { flex: none; width: 32px; height: 28px; border-radius: 6px; }
.mley-skeleton__line::after, .mley-skeleton__shape::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(100deg, transparent 15%, var(--skeleton-sheen) 50%, transparent 85%);
  transform: translateX(-100%); animation: mley-skeleton-sheen 1.8s ease-in-out infinite;
}
.mley-skeleton--detail .mley-skeleton__copy { gap: 15px; }
.mley-skeleton--detail { min-height: 150px; }
.mley-skeleton-status { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
@keyframes mley-skeleton-sheen { to { transform: translateX(100%); } }
@media (prefers-reduced-motion: reduce) {
  .mley-skeleton__line::after, .mley-skeleton__shape::after { animation: none; display: none; }
}
@media (forced-colors: active) {
  .mley-skeleton__line, .mley-skeleton__shape { background: GrayText; forced-color-adjust: none; opacity: .25; }
  .mley-skeleton__line::after, .mley-skeleton__shape::after { display: none; }
}
