/* Runtime feedback only. Layout, controls and tokens have their own owners. */
.loading-overlay {
    position: fixed;
    inset: 0;
    z-index: 1100;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, .9);
    backdrop-filter: blur(4px);
}
.loading-overlay[hidden] { display: none; }
.loading-container { display: flex; flex-direction: column; align-items: center; gap: 16px; }
.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--accent-line);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: feedback-spin .8s linear infinite;
}
.loading-text { color: var(--text-secondary); font-size: 13px; }
.loading-inline { display: inline-flex; align-items: center; gap: 8px; }
.loading-spinner-sm {
    width: 16px;
    height: 16px;
    border: 2px solid currentColor;
    border-top-color: transparent;
    border-radius: 50%;
    animation: feedback-spin .8s linear infinite;
}
.loading-text-sm { font-size: 12px; color: var(--text-muted); }
@keyframes feedback-spin { to { transform: rotate(360deg); } }

.skeleton {
    background: linear-gradient(90deg, var(--surface-muted), var(--surface-soft), var(--surface-muted));
    background-size: 200% 100%;
    animation: feedback-shimmer 1.5s ease-in-out infinite;
    border-radius: var(--radius-sm);
}
.skeleton-text { height: 14px; margin-bottom: 8px; }
.skeleton-text:last-child { width: 70%; }
.skeleton-avatar { width: 40px; height: 40px; border-radius: 50%; }
.skeleton-button { width: 100px; height: 36px; }
@keyframes feedback-shimmer { to { background-position: -200% 0; } }

.toast-host { bottom: 0; right: 0; z-index: var(--z-toast); max-width: min(440px, 100vw); pointer-events: none; }
.toast-host .toast { pointer-events: auto; }
.app-toast {
    width: 380px;
    max-width: 100%;
    background: var(--surface);
    color: var(--text-main);
    border: 1px solid var(--surface-border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
}
.app-toast-content { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.app-toast-title, .app-toast-single-line { display: flex; align-items: center; gap: 10px; }
.app-toast-title { font-weight: 600; margin-bottom: 4px; }
.app-toast-message { font-size: 13px; color: var(--text-secondary); }
.app-toast-icon { display: inline-flex; flex-shrink: 0; color: var(--accent); }
.app-toast-success .app-toast-icon { color: var(--success); }
.app-toast-error .app-toast-icon { color: var(--danger); }
.app-toast-warning .app-toast-icon { color: var(--warning); }
.app-toast-close { flex-shrink: 0; }
@media (prefers-reduced-motion: reduce) {
    .loading-spinner, .loading-spinner-sm, .skeleton { animation: none; }
}
