html.page-loading body { overflow: hidden !important; }
html.page-loading body > :not(#page-loading),
html.page-loading body > :not(#page-loading) * { visibility: hidden !important; }
#page-loading { display: none; }
html.page-loading #page-loading {
    display: flex;
    position: fixed;
    inset: 0;
    z-index: 100000;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #f6f7fb;
    color: #2563eb;
}
#page-loading span {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: currentColor;
    animation: page-loading-dot 1s ease-in-out infinite;
}
#page-loading span:nth-child(2) { animation-delay: .15s; }
#page-loading span:nth-child(3) { animation-delay: .3s; }
@keyframes page-loading-dot {
    0%, 80%, 100% { opacity: .3; transform: translateY(0); }
    40% { opacity: 1; transform: translateY(-6px); }
}
@media (prefers-reduced-motion: reduce) {
    #page-loading span { animation: none; }
}
