/* ────────────────────────────────────────────────────────────────────────────
   BOOT HEALTH / DEGRADED STARTUP
   ──────────────────────────────────────────────────────────────────────────── */
.boot-health-overlay {
  position: fixed;
  inset: 0;
  z-index: 1800;
  display: grid;
  place-items: center;
  padding: max(24px, env(safe-area-inset-top)) 20px max(24px, env(safe-area-inset-bottom)) 20px;
  background: color-mix(in srgb, var(--bg-card) 76%, transparent);
  backdrop-filter: blur(12px);
}

.boot-health-dialog {
  width: min(680px, calc(100vw - 32px));
  max-height: calc(100vh - 48px);
  overflow: auto;
  padding: 24px;
  border-radius: 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  box-shadow: 0 18px 48px rgba(0,0,0,0.18);
}

.boot-health-eyebrow {
  margin: 0 0 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--status-error);
}

.boot-health-title {
  margin: 0 0 10px;
  font-size: 24px;
  line-height: 1.15;
}

.boot-health-body,
.boot-health-help,
.boot-health-meta {
  margin: 0 0 10px;
  color: var(--text-sec);
  line-height: 1.55;
}

.boot-health-details {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}

.boot-health-details summary {
  cursor: pointer;
  font-weight: 600;
}


.boot-health-details--diagnostics {
  margin-top: 14px;
}

.boot-health-diagnostics {
  margin: 12px 0 0;
  padding: 14px;
  border-radius: 14px;
  background: var(--fill-subtle);
  border: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.45;
  color: var(--text-sec);
  white-space: pre-wrap;
  word-break: break-word;
  max-height: min(240px, 40vh);
  overflow: auto;
}

.boot-health-status {
  min-height: 1.25em;
  margin: 14px 0 0;
  color: var(--text-sec);
  font-size: 12px;
}

.boot-health-list {
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.boot-health-list-item {
  display: grid;
  gap: 4px;
  padding: 12px 14px;
  border-radius: 14px;
  background: var(--fill-subtle);
  border: 1px solid var(--border);
}

.boot-health-step {
  font-weight: 600;
  color: var(--text);
}

.boot-health-error {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-sec);
  white-space: pre-wrap;
  word-break: break-word;
}

.boot-health-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 20px;
}

body[data-boot-state='degraded'] #app {
  pointer-events: none;
  user-select: none;
}
