/* Small first-paint surface. Readiness is controlled by theme-init.js. */
:root.boot body>:not(#workspace-startup),:root.boot body>:not(#workspace-startup) *{visibility:hidden!important;pointer-events:none!important}
:root.boot #shell#shell#shell#shell#shell,:root.boot #shell#shell#shell#shell#shell *{visibility:hidden!important;pointer-events:none!important}
#workspace-startup{
  --startup-bg:var(--b1x-bg,#141918);
  --startup-ink:var(--b1x-text,#edf1ee);
  --startup-muted:var(--b1x-muted,#b1bdb5);
  --startup-line:var(--b1x-border,#2d3d35);
  --startup-accent:var(--b1x-accent,#a6d0b8);
  position:fixed;inset:0;z-index:2147483000;display:flex;flex-direction:column;align-items:center;box-sizing:border-box;overflow:auto;
  padding:32px 24px max(24px,env(safe-area-inset-bottom));
  background:radial-gradient(circle at 50% 42%,color-mix(in srgb,var(--startup-accent) 9%,transparent) 0%,transparent 60%),var(--startup-bg);
  color:var(--startup-ink);font:13px/1.5 system-ui,-apple-system,sans-serif;text-align:center;opacity:1;visibility:visible;
  transition:opacity .18s ease,background .2s ease,color .2s ease;
}
:is(:root, [data-palette=studio])[data-palette=studio]:is(:root, [data-theme=dark])[data-theme=dark] #workspace-startup{--startup-bg:#141918;--startup-ink:#edf1ee;--startup-muted:#b1bdb5;--startup-line:#2d3d35;--startup-accent:#a6d0b8}
:is(:root, [data-palette=studio])[data-palette=studio]:is(:root, [data-theme=light])[data-theme=light] #workspace-startup{--startup-bg:#f5f6f5;--startup-ink:#202a26;--startup-muted:#5c6862;--startup-line:#dde5e0;--startup-accent:#3d715b}
:is(:root, [data-palette=paper])[data-palette=paper]:is(:root, [data-theme=dark])[data-theme=dark] #workspace-startup{--startup-bg:#201c19;--startup-ink:#f4eee6;--startup-muted:#c7b8a9;--startup-line:#42352c;--startup-accent:#efb195}
:is(:root, [data-palette=paper])[data-palette=paper]:is(:root, [data-theme=light])[data-theme=light] #workspace-startup{--startup-bg:#f8f6f1;--startup-ink:#302a24;--startup-muted:#71655a;--startup-line:#eeebe4;--startup-accent:#9a4d32}
:is(:root, [data-palette=slate])[data-palette=slate]:is(:root, [data-theme=dark])[data-theme=dark] #workspace-startup{--startup-bg:#242536;--startup-ink:#eeeefa;--startup-muted:#babbd0;--startup-line:#3f4058;--startup-accent:#ceb2f4}
:is(:root, [data-palette=slate])[data-palette=slate]:is(:root, [data-theme=light])[data-theme=light] #workspace-startup{--startup-bg:#f3f3f9;--startup-ink:#2a293a;--startup-muted:#67647a;--startup-line:#eaeaf3;--startup-accent:#6d50a8}
:root:not(.boot) #workspace-startup{opacity:0;visibility:hidden;pointer-events:none;transition:opacity .18s ease,visibility 0s .18s}
#workspace-startup .startup-center{width:min(300px,100%);margin-block:auto;padding:32px 0}
#workspace-startup .startup-brand{display:flex;align-items:center;justify-content:center;gap:16px;margin-bottom:32px}
#workspace-startup .startup-emblem{
  display:block;width:64px;height:31px;object-fit:contain;
  content:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 720 348'/%3E");
  background:var(--startup-accent)!important;
  mask:url('/web/assets/brand/b1xagi-arrow-logo.png') center/contain no-repeat;
  -webkit-mask:url('/web/assets/brand/b1xagi-arrow-logo.png') center/contain no-repeat;
  filter:drop-shadow(0 0 10px color-mix(in srgb,var(--startup-accent) 60%,transparent));
  transition:background .2s ease,filter .2s ease;
}
#workspace-startup .startup-version{padding-left:16px;border-left:1px solid var(--startup-line);color:var(--startup-muted);font:500 10px/1.7 ui-monospace,monospace;letter-spacing:.08em;text-align:left}
#workspace-startup .startup-version [data-app-version]{color:var(--startup-accent);font-weight:600}
#workspace-startup strong{display:block;font-size:20px;line-height:1.4;font-weight:500;letter-spacing:-.025em;color:var(--startup-ink)}
#workspace-startup #startup-status{margin:10px 0 24px;min-height:40px;color:var(--startup-muted);font-size:12px;line-height:1.65}
#workspace-startup .startup-progress-meta{display:flex;justify-content:space-between;margin-bottom:9px;color:var(--startup-muted);font-size:10px;letter-spacing:.04em}
#startup-percent{font-variant-numeric:tabular-nums;color:var(--startup-accent);font-weight:600}
#startup-progress,#project-launch-progress progress{appearance:none;display:block;width:100%;height:3px;border:0;border-radius:3px;overflow:hidden;background:var(--startup-line,#dce5df);box-shadow:inset 0 1px 2px rgba(0,0,0,.15)}
#startup-progress::-webkit-progress-bar{background:var(--startup-line)}
#startup-progress::-webkit-progress-value{background:var(--startup-accent);box-shadow:0 0 8px var(--startup-accent);transition:width .18s ease,background .2s ease}
#startup-progress::-moz-progress-bar{background:var(--startup-accent);box-shadow:0 0 8px var(--startup-accent)}
#workspace-startup #startup-retry{display:inline-flex;align-items:center;justify-content:center;min-height:48px;box-sizing:border-box;margin-top:20px;padding:8px 20px;border:1px solid var(--startup-line);border-radius:10px;color:var(--startup-ink);background:transparent;font:500 12px system-ui;cursor:pointer;text-decoration:none}
#workspace-startup #startup-retry:focus-visible{outline:2px solid var(--startup-accent);outline-offset:3px}
#workspace-startup [hidden]{display:none!important}
#workspace-startup .startup-caption{display:grid;gap:4px;max-width:540px;margin-top:32px;color:var(--startup-muted);font:400 10px/1.6 system-ui,-apple-system,sans-serif}
#project-launch-progress{position:fixed;right:18px;top:72px;z-index:1100;width:min(288px,calc(100vw - 32px));box-sizing:border-box;display:grid;grid-template-columns:1fr auto;gap:8px;padding:14px 16px;border:1px solid var(--b1x-border,#dce5df);border-radius:12px;background:var(--b1x-solid,#f7f9f8);color:var(--b1x-text,#20372e);font:12px/1.5 system-ui;pointer-events:none}
#project-launch-progress[hidden]{display:none!important}
#project-launch-progress strong{font-weight:500}#project-launch-progress output{font-size:11px;font-variant-numeric:tabular-nums}
#project-launch-progress progress{grid-column:1/-1}#project-launch-progress progress::-webkit-progress-value,#project-launch-progress progress::-moz-progress-bar{background:var(--b1x-accent,#557966)}
#project-launch-progress span{grid-column:1/-1;color:var(--b1x-muted)}
#project-launch-progress button{pointer-events:auto;min-height:48px;border:1px solid var(--b1x-border);background:transparent;color:inherit;border-radius:8px;font:500 12px system-ui;padding:8px 12px;cursor:pointer}
@media(prefers-reduced-motion:reduce){#startup-progress::-webkit-progress-value,#workspace-startup{transition:none!important}}
:root[data-motion=reduced] #startup-progress::-webkit-progress-value,:root[data-motion=reduced] #workspace-startup{transition:none!important}
