/* Critical loading styles are available before the application bundle. */
.page-loading {
  --loading-canvas: #fff;
  --loading-ink: #000;
  --loading-muted: #64666b;
  box-sizing: border-box;
  display: grid;
  min-height: 60svh;
  place-items: center;
  padding: 64px 24px;
  background: var(--loading-canvas);
  color: var(--loading-ink);
  font-family: "Plus Jakarta Sans Variable", "Noto Sans SC", system-ui, sans-serif;
  text-align: center;
}
:root[data-theme="dark"] .page-loading {
  --loading-canvas: #000;
  --loading-ink: #fff;
  --loading-muted: #a8a8a8;
}
.page-loading--startup { position: fixed; inset: 0; min-height: 100svh; overflow-y: auto; }
.page-loading__content { position: relative; width: min(100%, 380px); }
.page-loading__mark { display: block; width: 88px; height: 50px; margin: 0 auto; overflow: visible; }
/* Only these three SVG shapes repaint; the viewport and page layout remain fixed. */
.page-loading__mark rect { animation-duration: 2.4s; animation-delay: -0.16s; animation-timing-function: cubic-bezier(0.45, 0, 0.55, 1); animation-iteration-count: infinite; }
.page-loading__mark rect:nth-child(1) { animation-name: loading-form-first; }
.page-loading__mark rect:nth-child(2) { animation-name: loading-form-middle; }
.page-loading__mark rect:nth-child(3) { animation-name: loading-form-last; }
.page-loading__status { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.page-loading__recovery-slot { position: absolute; top: 100%; left: 0; width: 100%; box-sizing: border-box; padding-top: 28px; }
.page-loading__recovery p, .page-loading__noscript { margin: 0 0 16px; color: var(--loading-muted); font-size: 0.75rem; line-height: 1.6; text-wrap: pretty; }
.page-loading .page-loading__reload { display: inline-flex; align-items: center; justify-content: center; box-sizing: border-box; min-height: 44px; height: auto; padding: 10px 22px; border: 0; border-radius: 999px; background: var(--loading-ink); color: var(--loading-canvas); font: inherit; font-size: 0.875rem; line-height: 1.6; text-decoration: none; cursor: pointer; touch-action: manipulation; box-shadow: none; }
.page-loading .page-loading__reload:hover { opacity: 0.8; }
.page-loading .page-loading__reload:focus-visible { outline: 2px solid var(--loading-ink); outline-offset: 4px; }
.page-loading[data-failed] .page-loading__mark rect { animation: none; }
.page-loading[data-failed] .page-loading__status { position: static; width: auto; height: auto; margin: 24px 0 0; overflow: visible; clip-path: none; white-space: normal; font-size: 0.875rem; line-height: 1.6; color: var(--loading-muted); }
/* Start in motion without a resting delay, even during brief loads.
   8 + 14 + 44 + 10 + 100 = 176 at every stage, including interpolation. */
@keyframes loading-form-first {
  0%, 100% { x: 0px; width: 8px; rx: 4px; ry: 4px; }
  33.333% { x: 0px; width: 44px; rx: 22px; ry: 50px; }
  66.667% { x: 0px; width: 100px; rx: 50px; ry: 50px; }
}
@keyframes loading-form-middle {
  0%, 100% { x: 22px; width: 44px; rx: 22px; ry: 50px; }
  33.333% { x: 58px; width: 100px; rx: 50px; ry: 50px; }
  66.667% { x: 114px; width: 8px; rx: 4px; ry: 4px; }
}
@keyframes loading-form-last {
  0%, 100% { x: 76px; width: 100px; rx: 50px; ry: 50px; }
  33.333% { x: 168px; width: 8px; rx: 4px; ry: 4px; }
  66.667% { x: 132px; width: 44px; rx: 22px; ry: 50px; }
}
@media (prefers-reduced-motion: reduce) { .page-loading__mark rect { animation: none; } }
@media (max-width: 600px) { .page-loading { padding: 48px 24px; } }
