/*
 * Boot skeleton (index.html #boot): painted with the HTML itself, before the JS, the language and the local data
 * arrive, so a slow connection shows the app's shape at once instead of a blank page (slow 3G: ~2 s instead of ~11 s).
 * It hides itself the moment React fills #root (sibling selector), and main.tsx removes it. External file: strict CSP.
 */
.boot { --b-bg: #ffffff; --b-canvas: #f4f4f5; --b-bar: #ececee; --b-dim: #f2f2f4; --b-accent: #5b55f0;
  position: fixed; inset: 0; display: flex; background: var(--b-bg); pointer-events: none; }
[data-theme="dark"] .boot { --b-bg: #141416; --b-canvas: #0c0c0e; --b-bar: #232328; --b-dim: #1c1c20; --b-accent: #8a85ff; }
#root:not(:empty) ~ .boot { display: none; }
.boot-side { display: none; }
.boot-main { flex: 1; min-width: 0; padding: 14px 16px; }
.boot-head { display: flex; align-items: center; gap: 10px; height: 32px; margin-bottom: 26px; }
.boot-logo { width: 24px; height: 24px; border-radius: 7px; background: var(--b-accent); }
.boot i { display: block; height: 12px; border-radius: 6px; background: var(--b-bar); }
.boot-title { width: 96px; height: 26px !important; margin-bottom: 10px; }
.boot-sub { width: 120px; margin-bottom: 26px; }
.boot-row { display: flex; align-items: center; gap: 12px; height: 46px; border-bottom: 1px solid var(--b-dim); }
.boot-row::before { content: ""; width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--b-bar); flex: none; }
.boot-row i { width: 55%; } .boot-row:nth-child(2) i { width: 62%; } .boot-row:nth-child(3) i { width: 48%; } .boot-row:nth-child(4) i { width: 70%; } .boot-row:nth-child(5) i { width: 40%; }
.boot-main, .boot-side { animation: boot-pulse 1.4s ease-in-out infinite; }
@keyframes boot-pulse { 50% { opacity: .55; } }
@media (prefers-reduced-motion: reduce) { .boot-main, .boot-side { animation: none; } }
@media (min-width: 861px) {
  .boot { background: var(--b-canvas); }
  .boot-side { display: block; width: 248px; flex: none; padding: 18px 16px; }
  .boot-side i { margin: 0 0 16px; width: 70%; } .boot-side i:first-child { width: 40%; margin-bottom: 28px; }
  .boot-main { margin: 8px 8px 8px 0; border-radius: 14px; background: var(--b-bg); padding: 22px 10%; }
  .boot-head { display: none; }
  .boot-title { margin-top: 22px; }
}
