/* The live plan checklist inside the Build run banner (aly-run-checklist.js).

   Alyssiun semantic tokens only — no hardcoded brand colour, font or radius.
   The atmosphere (LUX / NEO) is owned by ALYSSIUN OS and reaches here through
   `--surface`, `--surface-2`, `--surface-line`, `--text`, `--muted`, `--jade`
   and `--danger`, exactly as every other ALY stylesheet consumes them. */

.run-checklist { margin: 7px 0 0; display: grid; gap: 6px; }
.run-checklist[hidden] { display: none; }

.run-checklist-head {
  margin: 0;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--muted);
}

.run-checklist-steps { margin: 0; padding: 0; list-style: none; display: grid; gap: 4px; }

.run-checklist-step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 8px;
  align-items: start;
  padding: 6px 8px;
  border: 1px solid var(--surface-line);
  border-radius: 8px;
  background: var(--surface);
}
/* The step being built now. One outline, no animation — a banner that moves
   while a person is reading it is harder to read, not livelier. */
.run-checklist-step.is-current { border-color: var(--jade); background: color-mix(in srgb, var(--jade) 8%, var(--surface)); }
.run-checklist-step[data-status="failed"] { border-color: var(--danger); }
.run-checklist-step[data-status="pending"] { opacity: .72; }

.run-checklist-mark { font-size: 12px; line-height: 1.5; }
.run-checklist-step-body { display: grid; gap: 2px; min-width: 0; }
.run-checklist-title { font-size: 12px; font-weight: 600; line-height: 1.35; color: var(--text); }
.run-checklist-done-when { font-size: 10.5px; line-height: 1.4; color: var(--muted); }
.run-checklist-facts { font-size: 10.5px; line-height: 1.4; color: var(--muted); font-variant-numeric: tabular-nums; }
.run-checklist-note { font-size: 10.5px; line-height: 1.4; color: var(--danger); }

.run-checklist-spend { margin: 0; font-size: 11px; font-variant-numeric: tabular-nums; }
.run-checklist-spend[hidden] { display: none; }

.run-checklist-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.run-checklist-actions[hidden] { display: none; }
.run-checklist-btn {
  font-size: 11px;
  padding: 3px 9px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--surface);
  color: var(--muted);
  cursor: pointer;
}
.run-checklist-btn:hover { border-color: var(--text); color: var(--text); }
.run-checklist-btn[hidden] { display: none; }
.run-checklist-btn[disabled] { opacity: .5; cursor: default; }

/* Phone. The banner lives in a narrow chat column, so the steps keep their
   shape and only the action row is allowed to stack. */
@media (max-width: 560px) {
  .run-checklist-step { padding: 6px 7px; gap: 6px; }
  .run-checklist-title { font-size: 11.5px; }
  .run-checklist-actions { flex-direction: column; align-items: stretch; }
  .run-checklist-btn { width: 100%; padding: 6px 9px; }
}
