/* Keep the first paint stable while the existing initialization requests settle. */
#hb-app-boot { display: none; }
html[data-hb-boot] #root { opacity: 0 !important; pointer-events: none !important; }
html[data-hb-boot] #hb-app-boot {
  position: fixed; inset: 0; z-index: 10000; display: grid !important;
  place-items: center; box-sizing: border-box; padding: 24px;
  background: #f3f6fd; color: #172846;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}
.hb-app-boot-card { width: min(100%, 360px); text-align: center; }
.hb-app-boot-mark {
  display: inline-grid; place-items: center; width: 52px; height: 52px;
  margin-bottom: 24px;
}
.hb-app-boot-mark img { display: block; width: 100%; height: 100%; object-fit: contain; }
.hb-app-boot-title { margin: 0 0 12px; font-size: 19px; font-weight: 600; line-height: 1.5; }
.hb-app-boot-copy { margin: 0; color: #8594ad; font-size: 14px; line-height: 1.8; }
.hb-app-boot-progress { width: 128px; height: 3px; margin: 24px auto 0; overflow: hidden; border-radius: 3px; background: #e5eaf4; }
.hb-app-boot-progress::after {
  content: ""; display: block; width: 48px; height: 100%; border-radius: inherit;
  background: var(--hb-primary, #f07800); animation: hb-app-boot-progress 1.2s ease-in-out infinite alternate;
}
.hb-app-boot-error { display: none; }
html[data-hb-boot="error"] .hb-app-boot-loading { display: none; }
html[data-hb-boot="error"] .hb-app-boot-error { display: block; }
.hb-app-boot-actions { display: flex; justify-content: center; gap: 12px; margin-top: 24px; }
.hb-app-boot-actions button, .hb-app-boot-actions a {
  box-sizing: border-box; padding: 10px 18px; border: 1px solid #dce4f2;
  border-radius: 9px; background: #fff; color: #172846;
  font: inherit; font-size: 14px; line-height: 20px; text-decoration: none; cursor: pointer;
}
.hb-app-boot-actions button { border-color: var(--hb-primary, #f07800); background: var(--hb-primary, #f07800); color: #fff; }
.hb-app-boot-actions :focus-visible { outline: 3px solid var(--hb-primary-focus, #f7b778); outline-offset: 3px; }
@keyframes hb-app-boot-progress { from { transform: translateX(-48px); } to { transform: translateX(128px); } }
@media (prefers-reduced-motion: reduce) { .hb-app-boot-progress::after { animation: none; width: 100%; } }
