/* Show the static video workspace while its existing session check runs.
   Business scripts still wait for WanxiangServer.ready; no auth is bypassed. */
html.server-edition.server-auth-pending body > :not(#server-auth-gate) {
  visibility: visible !important;
}
html.server-edition.server-auth-pending #server-auth-gate:not(.is-error) {
  display: none !important;
}
html.server-edition.server-auth-pending #server-auth-gate.is-error {
  display: grid !important;
}
/* Preserve the original failure state and conceal an already initialized
   workspace during logout/session redirection. */
html.server-edition.server-auth-pending:has(#server-auth-gate.is-error) body > :not(#server-auth-gate),
html.server-edition.server-auth-pending:has(#server-account:not(.hidden)) body > :not(#server-auth-gate) {
  visibility: hidden !important;
}
/* With scripting disabled, keep the existing enable-JavaScript message. */
@media (scripting: none) {
  html.server-edition.server-auth-pending body > :not(#server-auth-gate) {
    visibility: hidden !important;
  }
  html.server-edition.server-auth-pending #server-auth-gate:not(.is-error) {
    display: grid !important;
  }
}
