/* Critical FOUC guard — load synchronously before async stylesheets */
html.css-pending body {
    visibility: hidden;
}

html.css-pending #spinner {
    visibility: visible;
    opacity: 1 !important;
    transition: none !important;
    display: flex;
    position: fixed;
    inset: 0;
    top: 0 !important;
    left: 0 !important;
    width: 100vw;
    height: 100vh;
    transform: none !important;
    z-index: 9999;
    align-items: center;
    justify-content: center;
    background: #fff;
    pointer-events: none;
}

html.css-pending #spinner .spinner-grow {
    width: 3rem;
    height: 3rem;
    border-radius: 999px;
    background: #de6ea6;
    animation: ag-spinner-pulse 0.9s ease-in-out infinite;
}

html.css-pending #spinner .sr-only {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

@keyframes ag-spinner-pulse {
    0%, 100% { transform: scale(0.75); opacity: 0.55; }
    50% { transform: scale(1); opacity: 1; }
}
