/* sentrix-d1-boot.css — SX-F (D-SX-249, 2026-12-01). The D1 loading screen (F-LOGIN sx-loading-boot: mark, 3px progress line,
   one status line, three stage dots) styled from the first paint. It loads in <head> right after the shared loading sheet, so the
   old L1 radar look (dark navy, radar, wordmark, security line) is never drawn while sentrix-d1-kit.css (end of <body>) is still
   on its way. Same rules as the kit's 「loading」 block; the tokens are scoped to the overlay so nothing else changes.
   DESIGN 「Loading timing」: nothing new for the first 0.6 s, so a quick saved-session check shows no flash. */
#startupOverlay {
  --d1-font: Pretendard, "Noto Sans KR", system-ui, -apple-system, sans-serif;
  --d1-bg: #f4f5f7; --d1-card: #ffffff; --d1-line: #e5e7ea; --d1-rule: #d1d5da; --d1-mute: #9aa0a6; --d1-strong: #3c4043;
  --d1-selt: #b64000; --d1-key: #ff6b00; --d1-danger: #dc2626; --d1-s1: 0 1px 4px rgba(0, 0, 0, 0.08);
}
html[data-theme="dark"] #startupOverlay, body.dark #startupOverlay {
  --d1-bg: #0b1220; --d1-card: #121c2f; --d1-line: #23324e; --d1-rule: #33466a; --d1-mute: #8190a8; --d1-strong: #cbd5e1; --d1-selt: #fb923c; --d1-s1: none;
}
html[data-theme="dark"] body #startupOverlay .soc-startup-logo--light { display: none !important; }
html[data-theme="dark"] body #startupOverlay .soc-startup-logo--dark { display: block !important; }
html body #startupOverlay.soc-startup-overlay { background: var(--d1-bg) !important; }
html body #startupOverlay .soc-startup-panel {
  background: none !important; box-shadow: none !important; border: 0 !important; width: 320px !important; max-width: calc(100vw - 32px) !important;
  padding: 0 !important; display: flex !important; flex-direction: column; align-items: center; gap: 0 !important;
}
html body #startupOverlay :is(.soc-startup-radar-orbit, .soc-startup-radar-sweep, .soc-startup-radar-ring, .soc-startup-radar-sites, .soc-startup-wordmark, .soc-startup-status-dots, .soc-startup-security, .soc-startup-stage-icon, .soc-startup-stage-connector, .soc-startup-stage-copy small, #startupOverlayPercent) { display: none !important; }
html body #startupOverlay .soc-startup-brand { margin: 0 0 32px !important; }
html body #startupOverlay .soc-startup-radar { width: 56px !important; height: 56px !important; background: none !important; border: 0 !important; box-shadow: none !important; display: grid !important; place-items: center; }
html body #startupOverlay .soc-startup-radar::before, html body #startupOverlay .soc-startup-radar::after { display: none !important; }
html body #startupOverlay .soc-startup-logo { position: static !important; width: 56px !important; height: auto !important; transform: none !important; animation: none !important; }
html body #startupOverlay .soc-startup-copy { order: 2; margin: 16px 0 12px !important; padding: 0 !important; min-height: 0 !important; text-align: center; }
html body #startupOverlay .soc-startup-title { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
html body #startupOverlay .soc-startup-message { margin: 0 !important; font: 500 14px/1.4 var(--d1-font) !important; color: var(--d1-strong) !important; }
html body #startupOverlay .soc-startup-progress-wrap { order: 1; width: 200px !important; margin: 0 !important; }
html body #startupOverlay .soc-startup-progress-track { height: 3px !important; border-radius: 2px !important; background: var(--d1-line) !important; overflow: hidden; }
html body #startupOverlay .soc-startup-progress-bar { height: 3px !important; border-radius: 2px !important; background: var(--d1-key) !important; box-shadow: none !important; }
html body #startupOverlay .soc-startup-stages { order: 3; display: flex !important; justify-content: center; gap: 16px !important; margin: 0 !important; padding: 0 !important; background: none !important; border: 0 !important; }
html body #startupOverlay .soc-startup-stage { display: inline-flex !important; align-items: center; gap: 6px; padding: 0 !important; background: none !important; border: 0 !important; box-shadow: none !important; min-width: 0 !important; }
html body #startupOverlay .soc-startup-stage::before { content: ""; width: 6px; height: 6px; border-radius: 3px; background: var(--d1-rule); flex: none; }
html body #startupOverlay .soc-startup-stage strong { font: 500 12px/1 var(--d1-font) !important; color: var(--d1-mute) !important; white-space: nowrap; }
html body #startupOverlay .soc-startup-stage.is-completed::before { background: var(--d1-strong); }
html body #startupOverlay .soc-startup-stage.is-completed strong { color: var(--d1-strong) !important; }
html body #startupOverlay .soc-startup-stage.is-running::before { background: var(--d1-key); }
html body #startupOverlay .soc-startup-stage.is-running strong { color: var(--d1-selt) !important; font-weight: 600 !important; }
html body #startupOverlay .soc-startup-stage.is-failed::before { background: var(--d1-danger); }
html body #startupOverlay .soc-startup-stage-copy { display: inline !important; }
/* failure: one state card */
html body #startupOverlay:has(#startupOverlayError:not([hidden])) .soc-startup-panel {
  width: 400px !important; padding: 32px !important; background: var(--d1-card) !important; border: 1px solid var(--d1-line) !important; border-radius: 12px !important; box-shadow: var(--d1-s1) !important;
}
html body #startupOverlay:has(#startupOverlayError:not([hidden])) :is(.soc-startup-progress-wrap, .soc-startup-stages) { display: none !important; }
html body #startupOverlay:has(#startupOverlayError:not([hidden])) .soc-startup-title { position: static !important; width: auto; height: auto; clip: auto; margin: 0 0 8px !important; font: 800 20px/1.3 var(--d1-font) !important; color: var(--d1-ink) !important; }
html body #startupOverlay #startupOverlayError { order: 4; width: 100%; margin: 16px 0 0 !important; padding: 0 !important; background: none !important; border: 0 !important; text-align: center; font: 400 14px/1.5 var(--d1-font) !important; color: var(--d1-sub) !important; }
html body #startupOverlay #startupOverlayError p { margin: 0 0 20px !important; display: grid; gap: 4px; }
html body #startupOverlay #startupOverlayFailedItem { font: 600 13px/1.4 var(--d1-font) !important; color: var(--d1-sub) !important; }
html body #startupOverlay #startupOverlayError .soc-startup-error-actions { display: grid !important; gap: 12px; justify-items: stretch; text-align: center; }
html body #startupOverlay #startupOverlayRetryBtn { order: -1; width: 100% !important; height: 44px !important; border-radius: 999px !important; border: 0 !important; background: var(--d1-key) !important; color: #fff !important; font: 700 15px/1 var(--d1-font) !important; }
html body #startupOverlay .soc-startup-panel { animation: d1-boot-reveal 200ms ease-out 600ms both; }
@keyframes d1-boot-reveal { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { html body #startupOverlay .soc-startup-panel { animation: d1-boot-reveal 1ms linear 600ms both; } }
