/* Present before the JavaScript graph starts. main.tsx removes this in
   the same layout phase as the completed initial route is committed, so
   a slow chunk can never expose a white frame between two React trees. */
#kalends-bootstrap {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f4f5f7;
  color: #1d2229;
  font: 700 1.75rem/1 ui-sans-serif, system-ui, -apple-system, sans-serif;
  letter-spacing: -0.035em;
}
#kalends-bootstrap b { color: #2763ba; }
/* The splash is what the first paint actually shows, so it follows the
   stored choice first and the operating system only in its absence —
   the same precedence the app itself uses once it is running. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) #kalends-bootstrap { background: #292d33; color: #f4f5f7; }
}
:root[data-theme="dark"] #kalends-bootstrap { background: #292d33; color: #f4f5f7; }
:root[data-theme="light"] #kalends-bootstrap { background: #f4f5f7; color: #1d2229; }
/* A splash that lasts past a second says it is still working: a thin
   indeterminate bar under the name, never on a fast start. */
#kalends-bootstrap::after {
  content: "";
  position: absolute;
  top: calc(50% + 1.5rem);
  left: calc(50% - 3.5rem);
  width: 7rem;
  height: 2px;
  border-radius: 1px;
  opacity: 0;
  background: linear-gradient(90deg, transparent, #2763ba, transparent) no-repeat;
  background-size: 40% 100%;
  animation: kalends-boot-show 0.2s 1s forwards, kalends-boot-slide 1.2s 1s ease-in-out infinite;
}
@keyframes kalends-boot-show { to { opacity: 1; } }
@keyframes kalends-boot-slide {
  from { background-position: -60% 0; }
  to { background-position: 160% 0; }
}
@media (prefers-reduced-motion: reduce) {
  #kalends-bootstrap::after { animation: kalends-boot-show 0.2s 1s forwards; background-position: 50% 0; }
}
