/* Bloqueo previo al primer render; conserva el diseño definitivo. */
/* Mantener visibles los enlaces iniciales si la comprobación de sesión tarda o falla.\n   El módulo de autenticación los sustituye por Mi Panel y Salir al validar la sesión. */
html:not([data-session-state="authenticated"]) [data-auth-logout] {
    display: none !important;
}
html[data-auth-form-pending] body > .section,
html[data-auth-form-pending] body > .footer {
    visibility: hidden;
    pointer-events: none;
}
#auth-loading { display: none; }
html[data-auth-form-pending] #auth-loading {
    display: block;
    position: fixed;
    top: 45vh;
    left: 0;
    width: 100%;
    text-align: center;
    color: #64748b;
}
