/* État de chargement (EvaUI.LoadingState). Le keyframe `skeleton-shimmer` est
   global (style.css, chargé avant les composants) ; le dégradé est celui de
   `.skeleton-block` et de `.lb-skeleton`. */
.loading-state {
    margin: 0;
    color: var(--muted);
    font-size: .9rem;
    line-height: 1.5;
    overflow-wrap: anywhere;
}

.loading-state--skeleton {
    display: grid;
    gap: 10px;
    /* Sans texte, le squelette n'a pas de largeur propre : dans une rangée flex, il prend la place restante. */
    flex: 1 1 auto;
    min-width: 0;
}

.loading-state__row {
    display: block;
    height: 14px;
    border-radius: 8px;
    background: linear-gradient(90deg, rgba(255, 255, 255, .04) 0%, rgba(255, 255, 255, .09) 50%, rgba(255, 255, 255, .04) 100%);
    background-size: 200% 100%;
    animation: skeleton-shimmer 1.2s ease-in-out infinite;
}

.loading-state__row:nth-child(even) {
    width: 72%;
}

.loading-state__row:last-child:not(:only-child) {
    width: 48%;
}

@media (prefers-reduced-motion: reduce) {
    .loading-state__row {
        animation: none;
    }
}
