/*
 * Pantalla de carga mientras llega la app (está dentro de #root en index.html: React la sustituye al
 * arrancar). Fichero aparte y no <style> en línea por la CSP. Aún no han cargado tokens.css ni las
 * fuentes: los colores son copia de los tokens (--bg, --ink, --brand-ink, --muted, --sea, --surface-2) y el tema
 * sigue al del sistema (la preferencia guardada la aplica la app al arrancar).
 */
/* Sale con `hidden` en index.html: solo se ve si este fichero ha cargado (sin él, pantalla en blanco). */
.boot {
  position: fixed; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px;
  background: #FFFFFF; color: #0D2B36;
  font-family: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  /* En la app se queda un momento encima de la app ya pintada (lib/native.ts → holdBootScreen) y se desvanece. */
  z-index: 5000; transition: opacity .25s ease;
}
.boot.is-leaving { opacity: 0; pointer-events: none; }
/* El logo subido en el panel; sin logo, la petición da 404 y no se pinta nada (ni icono roto). */
.boot-logo { width: 72px; height: 72px; background: url('/api/v1/media/branding/icon/192') center / contain no-repeat; }
.boot-name { color: #000000; font-size: 24px; font-weight: 800; letter-spacing: -0.02em; }
.boot-bar { width: 120px; height: 4px; border-radius: 999px; background: #E6EEF1; overflow: hidden; }
.boot-bar span { display: block; width: 40%; height: 100%; border-radius: inherit; background: #0A6B87; animation: boot-slide 1.1s ease-in-out infinite; }
@keyframes boot-slide { from { transform: translateX(-100%); } to { transform: translateX(250%); } }
.boot-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

@media (prefers-color-scheme: dark) {
  .boot { background: #0E1A20; color: #E4EEF1; }
  .boot-name { color: #E4EEF1; }
  .boot-bar { background: #1C303A; }
  .boot-bar span { background: #0E7A99; }
}
@media (prefers-reduced-motion: reduce) {
  .boot-bar span { animation: none; width: 100%; opacity: .6; }
}
