.startup-status {
  position: fixed;
  z-index: 10000;
  inset: 0;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 16px;
  padding: 24px;
  box-sizing: border-box;
  background: var(--ui-bg, #f5f5f2);
  color: var(--ui-text, #20211f);
  line-height: 1.5;
}
.startup-status[hidden] { display: none; }
.startup-copy { position: relative; max-width: 320px; text-align: center; }
.startup-copy strong { display: block; font-size: 14px; font-weight: 600; }
.startup-copy p { margin: 8px 0 0; font-size: 12px; color: var(--ui-text-muted, #686b64); }
.startup-placeholder { position: absolute; inset: 0; pointer-events: none; }
.startup-placeholder-header { display: flex; align-items: center; height: 56px; padding: 0 20px; background: var(--ui-surface, #fff); border-bottom: 1px solid var(--ui-border, #e3e4dc); font-size: 14px; font-weight: 600; }
.startup-placeholder-toolbar { height: 40px; margin: 20px 24px 0; border-radius: 4px; background: var(--ui-surface-muted, #eeeee8); }
.startup-placeholder-content { display: grid; grid-template-columns: 200px 1fr; gap: 24px; height: calc(100% - 180px); padding: 24px; }
.startup-placeholder-content > div { border: 1px solid var(--ui-border, #e3e4dc); border-radius: 4px; background: var(--ui-surface, #fff); opacity: .65; }
.startup-placeholder-footer { display: none; }
.startup-spinner {
  width: 20px;
  height: 20px;
  margin-top: 2px;
  position: relative;
  box-sizing: border-box;
  border: 2px solid var(--ui-border, #e3e4dc);
  border-top-color: var(--ui-primary, #343a2f);
  border-radius: 50%;
  animation: startup-spin 1s linear infinite;
}
.startup-retry {
  position: relative;
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid var(--ui-border, #e3e4dc);
  border-radius: 4px;
  background: var(--ui-surface, #fff);
  color: inherit;
  font: inherit;
  font-size: 13px;
  cursor: pointer;
  text-decoration: none;
}
.startup-retry[hidden] { display: none; }
.startup-retry:focus-visible { outline: 2px solid var(--ui-focus, #3168d5); outline-offset: 2px; }
.startup-status[data-state="failed"] .startup-spinner {
  animation: none;
  border-color: #b74d42;
}
@keyframes startup-spin { to { transform: rotate(360deg); } }
@media (max-width: 820px) {
  .startup-placeholder-header { padding-inline: 16px; }
  .startup-placeholder-toolbar { margin: 16px 16px 0; height: 36px; }
  .startup-placeholder-content { grid-template-columns: 1fr; gap: 0; padding: 16px; height: calc(100% - 160px); }
  .startup-placeholder-content > div:first-child { display: none; }
  .startup-placeholder-footer { display: block; position: absolute; inset: auto 0 0; height: calc(56px + env(safe-area-inset-bottom, 0px)); background: var(--ui-surface, #fff); border-top: 1px solid var(--ui-border, #e3e4dc); }
}
@media (prefers-reduced-motion: reduce) { .startup-spinner { animation: none; } }
