/* A long run's progress card (task #397, ADR 0385, mockup A): the goal, the milestones as a
   timeline with what was said and the grouped steps under each, the live line, results,
   requirements and the finish. Tokens only (palette.css). */
.progress-card { margin: 0 0 16px; padding: 16px 18px; border: 1px solid var(--q-card-line); border-radius: 14px; background: var(--q-surface); color: var(--q-ink); font-size: 13px; }
.progress-card h4 { margin: 16px 0 6px; font-size: 11px; font-weight: 500; letter-spacing: .04em; text-transform: uppercase; color: var(--q-muted); }
.progress-goal { margin: 0 0 4px; font: 400 21px/1.3 var(--serif); color: var(--q-ink); overflow-wrap: anywhere; }
.progress-meta { margin: 0; color: var(--q-muted); font-size: 12px; font-variant-numeric: tabular-nums; }
.progress-milestones { list-style: none; margin: 14px 0 0; padding: 0; }
.progress-milestone { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; gap: 2px 8px; align-items: baseline; padding: 6px 0; }
.progress-mark { color: var(--q-olive); text-align: center; }
.progress-mark .q-spinner, .progress-spin { width: 10px; height: 10px; border-width: 1.5px; }
.progress-title { overflow-wrap: anywhere; }
.progress-milestone[data-state='done'] .progress-title { color: var(--q-secondary); }
.progress-milestone[data-state='current'] .progress-title { font-weight: 600; }
.progress-milestone[data-state='pending'] .progress-title, .progress-milestone[data-state='pending'] .progress-mark { color: var(--q-faint); }
.progress-milestone[data-state='stopped'] .progress-title { color: var(--q-secondary); font-style: italic; }
/* A state in words for a screen reader; the mark says it to the eye. */
.progress-state { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.progress-time { color: var(--q-muted); font-size: 12px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.progress-under { grid-column: 2 / 4; list-style: none; margin: 4px 0 2px; padding: 0 0 0 10px; border-left: 1px solid var(--q-line); color: var(--q-secondary); }
.progress-under > li { padding: 2px 0; overflow-wrap: anywhere; }
.progress-group summary { cursor: pointer; color: var(--q-muted); font-size: 12px; width: fit-content; overflow-wrap: anywhere; }
.progress-group summary .progress-spin { display: inline-block; margin-right: 6px; vertical-align: middle; }
.progress-group ul { list-style: none; margin: 2px 0 4px; padding: 0 0 0 12px; color: var(--q-muted); font-size: 12px; }
.progress-sub { color: var(--q-olive-ink); font-size: 12px; }
.progress-now { display: flex; gap: 8px; align-items: center; margin: 12px 0 0; padding: 9px 12px; border-radius: 10px; background: var(--q-card); color: var(--q-olive-ink); overflow-wrap: anywhere; }
.progress-now[hidden] { display: none; }
.progress-now b { font-weight: 600; color: var(--q-olive-dark); }
.progress-links { display: flex; flex-wrap: wrap; gap: 8px; }
.progress-link { overflow-wrap: anywhere; display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border: 1px solid var(--q-line); border-radius: 999px; background: var(--q-field); color: var(--q-olive-ink); text-decoration: none; }
.progress-link:hover { background: var(--q-hover); }
.progress-picture { display: inline-flex; flex-direction: column; gap: 4px; margin: 8px 8px 0 0; vertical-align: top; }
.progress-picture figcaption { color: var(--q-muted); font-size: 12px; overflow-wrap: anywhere; }
.progress-pair { display: flex; gap: 6px; flex-wrap: wrap; }
.progress-shot { display: inline-flex; flex-direction: column; gap: 2px; padding: 0; border: 1px solid var(--q-line); border-radius: 8px; overflow: hidden; background: var(--q-field); color: var(--q-muted); font-size: 11px; }
.progress-shot img { display: block; width: 148px; max-width: 40vw; height: 92px; object-fit: cover; }
.progress-checks ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 3px; overflow-wrap: anywhere; }
.progress-checks li::before { display: inline-block; width: 20px; color: var(--q-olive); content: '○'; }
.progress-checks li[data-state='done']::before { content: '✓'; }
.progress-checks li[data-state='working']::before { content: '⋯'; color: var(--q-warn); }
.progress-checks li[data-state='failed']::before { content: '✗'; color: var(--q-danger); }
.progress-finish ul { margin: 0; padding-left: 18px; overflow-wrap: anywhere; }
.progress-log { margin-top: 12px; }
.progress-log > summary { cursor: pointer; color: var(--q-olive-ink); font-size: 12px; width: fit-content; text-decoration: underline; text-underline-offset: 2px; }
.progress-log .tool-activity { margin: 6px 0 0; }
/* Inside the card the log is open behind its one line: no second line to press. */
.progress-log .tool-activity > summary { display: none; }
.progress-card[data-state='done'] .progress-spin, .progress-card[data-state='cancelled'] .progress-spin, .progress-card[data-state='cut'] .progress-spin { display: none; }
.files-attaching { display: flex; align-items: center; gap: 8px; color: var(--q-olive-ink); font-size: 13px; margin: 6px 0; }
.files-attaching[hidden] { display: none; }
@media (max-width: 600px) {
  .progress-card { padding: 14px 12px; }
  .progress-goal { font-size: 18px; }
}
/* The run pinned by the message box while it works (task #397): what it does, how long, Zatrzymaj. */
.pinned-status { display: flex; align-items: center; gap: 10px; width: fit-content; max-width: 100%; margin: 0 auto 8px; padding: 6px 8px 6px 6px; border: 1px solid var(--q-line); border-radius: 999px; background: var(--q-glass); box-shadow: 0 4px 18px var(--q-shadow); color: var(--q-olive-ink); font-size: 12.5px; }
.pinned-status[hidden] { display: none; }
/* Only the milestone's title is cut on a narrow screen: its number and the time stay. */
.pin-show { display: flex; align-items: center; gap: 8px; min-width: 0; border: 0; border-radius: 999px; padding: 2px 8px; background: none; color: inherit; font: inherit; cursor: pointer; }
.pin-words { display: flex; min-width: 0; white-space: nowrap; }
.pin-what { overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.pin-stop, .pin-notify { flex: none; border: 0; border-radius: 999px; padding: 4px 10px; background: var(--q-hover); color: var(--q-ink); font: inherit; }
.pin-stop:hover, .pin-notify:hover { background: var(--q-hover-soft); }
.pin-stop[hidden], .pin-notify[hidden] { display: none; }
