body {
    margin: 0;
    background: var(--bg);
}

.app-loading {
    position: fixed;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 28px;
    background: var(--bg);
    color: var(--accent);
}

.app-loading svg {
    width: 56px;
    height: 56px;
    animation: app-loading-pulse 1.6s ease-in-out infinite;
}

.app-loading-track {
    width: 120px;
    height: 3px;
    border-radius: 3px;
    background: var(--line);
    overflow: hidden;
}

.app-loading-bar {
    height: 100%;
    width: var(--blazor-load-percentage, 0%);
    min-width: 12%;
    border-radius: 3px;
    background: var(--accent);
    transition: width .3s ease;
}

@keyframes app-loading-pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: .55; transform: scale(.94); }
}

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