/*
 * The portal's first-load fallback (CARD-102625.5), for the #boot-failed markup in index.html. A file of its own, never
 * an inline <style>: the agent's hosted window allows only same-origin stylesheets (apps/agent ui_delivery scheme.rs,
 * style-src 'self'). The markup starts `hidden`, so it stays out of sight even if this file never arrives.
 *
 * Hidden while the portal loads; shown at once when its script fails to arrive (boot.js) or the app fails to start
 * (src/boot.ts), and on its own after 20 s if no script ran at all. The app removes it once started.
 */
.boot-failed {
  position: fixed; inset: 0; z-index: 2147483647; display: flex; align-items: center; justify-content: center;
  padding: 16px; background: #f6f6f4; color: #1d1d1b;
  font: 15px/1.5 system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  visibility: hidden; animation: boot-late 0s 20s forwards;
}
.boot-failed.on { visibility: visible; animation: none; }
@keyframes boot-late { to { visibility: visible; } }
.boot-card {
  display: grid; gap: 28px; width: 100%; max-width: 440px; padding: 32px; box-sizing: border-box;
  background: #fff; border: 1px solid #e3e3df; border-radius: 12px;
}
.boot-card h1 { margin: 0 0 6px; font-size: 18px; line-height: 1.35; font-weight: 600; }
.boot-card p { margin: 0 0 18px; color: #5c5c58; }
.boot-retry {
  display: inline-block; padding: 9px 16px; border-radius: 8px; background: #1d1d1b; color: #fff;
  font-weight: 600; font-size: 14px; text-decoration: none;
}
.boot-retry:focus-visible { outline: 2px solid #1d1d1b; outline-offset: 2px; }
[data-boot-lang='fr'] .boot-en, [data-boot-lang='en'] .boot-fr { display: none; }
@media (prefers-color-scheme: dark) {
  .boot-failed { background: #161615; color: #ededea; }
  .boot-card { background: #1f1f1e; border-color: #33332f; }
  .boot-card p { color: #a6a6a1; }
  .boot-retry { background: #ededea; color: #161615; }
  .boot-retry:focus-visible { outline-color: #ededea; }
}
