/* The Web shell stays hidden until device checks and ordered script loading pass. */
html[data-desktop-gate="pending"] body > :not(.desktop-gate-notice):not(script):not(link),
html[data-desktop-gate="blocked"] body > :not(.desktop-gate-notice):not(script):not(link) { display: none !important; }
.desktop-gate-notice { max-width: 34rem; margin: 15vh auto; padding: 2rem; text-align: center; }
html[data-desktop-gate="ready"] .desktop-gate-notice { display: none; }
.desktop-gate-notice a { color: #335cff; }
.download-icon { width: 1.2em; height: 1.2em; fill: currentColor; flex: 0 0 auto; }
.app-download-page .status-icon .download-icon { width: 2rem; height: 2rem; }
.app-download-page .status-actions .btn { white-space: normal; justify-content: center; }
.app-download-page .status-card .download-note { margin: var(--spacing-lg) 0 0; font-size: .875rem; }
/* Standalone template status page follows the OS theme, with no Web app boot. */
@media (prefers-color-scheme: dark) {
  .app-download-page { --background-color: #1b2436; --surface-color: #1b2436; --heading-color: #f0f4f8; --muted-color: #a8b5c7; --card-border: #2f3c53; --accent-color: #6b8aff; color: #f0f4f8; color-scheme: dark; }
  .app-download-page .btn-outline-secondary { color: #a8b5c7; border-color: #64748b; }
}
