.launch-loader {
    position:fixed; top:0; right:0; bottom:0; left:0; z-index:900; display:flex; flex-direction:column;
    align-items:center; justify-content:center; padding:24px; text-align:center;
    background:var(--ui-bg,#edf2f6); color:var(--ui-ink,#17364d);
    font-family:"Segoe UI",Arial,sans-serif;
}
.launch-wordmark { margin:0 0 14px; font-size:clamp(24px,3.5vw,34px); font-weight:650; letter-spacing:-.04em; }
.launch-wordmark span { font-weight:400; }
.launch-caption { margin:12px 0 0; font-size:1rem; color:var(--ui-muted,#526b7e); }
#launch-flight-slot, #workspace-flight-slot { width:min(84vw,340px); }
/* Explicit edges keep the workspace loader centered in older embedded Chromium. */
#loading { top:0; right:0; bottom:0; left:0; }
#workspace-flight-slot { margin:0 auto; }
.workspace-flight { color:var(--ui-ink,#17364d); text-align:center; }
.workspace-flight svg { display:block; width:100%; height:auto; overflow:visible; }
.flight-ground { fill:none; stroke:var(--ui-line,#bdced9); stroke-width:1; }
.flight-runway { fill:var(--ui-muted,#526b7e); }
.flight-stripes { fill:none; stroke:var(--ui-bg,#edf2f6); stroke-width:1.4; stroke-dasharray:10 6; }
/* Seek the existing runway and climb path to the fraction published by the active workspace. */
.flight-aircraft {
    transform-origin:0 0;
    animation:flight-path var(--flight-duration,.85s) linear both paused;
    animation-delay:calc(-1 * var(--flight-duration,.85s) * var(--flight-progress,0));
}
.flight-fuselage { fill:currentColor; }
.flight-window { fill:var(--ui-bg,#edf2f6); }
.flight-wheel { fill:currentColor; stroke:currentColor; stroke-width:1; }
.flight-count { display:block; margin:2px 0 6px; min-height:1.3em; font-size:.88rem; color:var(--ui-muted,#526b7e); font-variant-numeric:tabular-nums; }
@keyframes flight-path {
    0% { transform:translate(12px,52px) rotate(0deg); }
    40% { transform:translate(162px,52px) rotate(0deg); }
    44% { transform:translate(179px,51px) rotate(-3deg); }
    77% { transform:translate(240px,27px) rotate(-13deg); }
    100% { transform:translate(286px,-2px) rotate(-16deg); }
}
.flight-departure {
    position:fixed; z-index:901; pointer-events:none; overflow:visible; color:var(--ui-ink,#17364d);
    animation:flight-dissolve .12s linear forwards;
    animation-delay:calc(var(--flight-duration,.85s) * (1 - var(--flight-progress,0)));
}
.flight-departure .flight-aircraft { animation-play-state:running; }
.flight-departure[data-progress="partial"] { animation-delay:0s; }
.flight-departure[data-progress="partial"] .flight-aircraft { animation-play-state:paused; }
.flight-departure :is(.flight-ground,.flight-runway,.flight-stripes) { animation:runway-clear .65s ease-out forwards; }
@keyframes runway-clear { to { opacity:0; } }
@keyframes flight-dissolve { to { opacity:0; } }
@media (prefers-reduced-motion:reduce) {
    .flight-departure { display:none; animation:none; }
}
