/*
 * Full-screen loading overlay, reload progress checklist, and cancel button.
 */
.loading { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 1000; justify-content: center; align-items: center; flex-direction: column; gap: 16px; }
.loading.active { display: flex; }
.spinner { width: 40px; height: 40px; border: 3px solid var(--border); border-top-color: var(--ey-yellow); border-radius: 50%; animation: spin 0.7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.loading-text { color: white; font-size: 14px; }
.loading-checklist { display: none; width: min(440px, calc(100vw - 48px)); padding: 12px 14px; border-radius: 6px; background: rgba(30,30,30,0.92); color: #fff; }
.loading-checklist.active { display: block; max-height: min(65vh, 560px); overflow-y: auto; }
.loading-checklist-title { font-size: 12px; font-weight: 700; margin-bottom: 8px; }
.loading-checklist-row { display: flex; align-items: center; gap: 8px; min-height: 26px; font-size: 12px; color: rgba(255,255,255,0.62); }
.loading-checklist-row.running { color: #fff; }
.loading-checklist-row.completed { color: #b7e4c7; }
.loading-checklist-row.failed { color: #ffb4ad; }
.loading-checklist-row.cancelled { color: #ffd166; }
.loading-summary { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.loading-summary-chip { font-size: 11px; padding: 2px 8px; border-radius: 10px; background: rgba(255,255,255,0.08); color: rgba(255,255,255,0.75); }
.loading-summary-chip.running { color: var(--ey-yellow); }
.loading-summary-chip.completed { color: #62c370; }
.loading-summary-chip.failed { color: #ff756b; }
.loading-summary-chip.cancelled { color: #ffd166; }
.loading-summary-errors { margin-bottom: 8px; max-height: 120px; overflow-y: auto; }
.loading-summary-error { font-size: 11px; color: #ffb4ad; padding: 2px 0; word-break: break-word; }
.loading-checklist-icon { width: 16px; text-align: center; font-weight: 700; }
.loading-checklist-row.running .loading-checklist-icon { color: var(--ey-yellow); }
.loading-checklist-row.completed .loading-checklist-icon { color: #62c370; }
.loading-checklist-row.failed .loading-checklist-icon { color: #ff756b; }
.loading-checklist-row.cancelled .loading-checklist-icon { color: #ffd166; }
.loading-checklist-sublist { margin: 2px 0 4px 24px; padding-left: 8px; border-left: 1px solid rgba(255,255,255,0.2); }
.loading-checklist-subrow { display: flex; align-items: center; gap: 8px; min-height: 23px; font-size: 11px; color: rgba(255,255,255,0.55); }
.loading-checklist-subrow.running { color: #fff; }
.loading-checklist-subrow.completed { color: #b7e4c7; }
.loading-checklist-subrow.failed { color: #ffb4ad; }
.loading-checklist-subrow.cancelled { color: #ffd166; }
.loading-cancel { display: none; padding: 6px 16px; border: 1px solid rgba(255,255,255,0.5); border-radius: 4px; background: transparent; color: #fff; cursor: pointer; font-size: 12px; font-weight: 700; }
.loading-cancel.active { display: inline-block; }
.loading-cancel:hover { background: rgba(255,255,255,0.12); }
.loading-cancel:disabled { opacity: 0.65; cursor: wait; }
