/* .sec-workflows styles (contract v1: every selector prefixed with .sec-workflows). */

.sec-workflows .wf-note { min-height: 0; font-size: 13px; max-width: 860px; }
.sec-workflows .wf-note.is-ok { color: #56d364; }
.sec-workflows .wf-note.is-held { color: #ff7b72; }
.sec-workflows .wf-note:not(:empty) { margin-bottom: 12px; }

.sec-workflows .wf-item .wf-subject { font-weight: 600; font-size: 13.5px; color: var(--fg); }
.sec-workflows .wf-item .wf-email { color: var(--fg-faint); margin-top: 2px; }
.sec-workflows .wf-detail { padding: 18px 20px; }

.sec-workflows .wf-head { margin-bottom: 14px; }
.sec-workflows .wf-headline { margin: 6px 0 0; font-size: 14px; color: var(--fg); line-height: 1.5; }
.sec-workflows .wf-status { margin: 6px 0 0; font-size: 13.5px; color: var(--fg-dim); }
.sec-workflows .wf-meta { margin-top: 14px; }
.sec-workflows .wf-request { margin-top: 14px; padding: 10px 12px; border-left: 2px solid var(--line); background: rgba(255,255,255,.02); }
.sec-workflows .wf-request p { margin: 4px 0 0; font-size: 13.5px; color: var(--fg-dim); }
.sec-workflows .wf-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 16px; align-items: center; }
.sec-workflows .wf-reason { display: flex; gap: 8px; flex-wrap: wrap; width: 100%; margin-top: 4px; }
.sec-workflows .wf-reason .input { flex: 1 1 320px; max-width: 460px; }
.sec-workflows .wf-note-card { border-style: dashed; }

.sec-workflows .wf-steps-card { margin-bottom: 14px; }
.sec-workflows .wf-steps .wf-step { padding-right: 18px; }
.sec-workflows .wf-steps .wf-system { font-size: 11px; }
.sec-workflows .wf-steps .step-evidence { color: var(--fg-faint); margin-top: 4px; line-height: 1.5; word-break: break-word; }
/* A step that did not run cannot look like one that did. */
.sec-workflows .wf-steps .wf-step.is-skipped,
.sec-workflows .wf-steps .wf-step.is-cancelled,
.sec-workflows .wf-steps .wf-step.is-pending { opacity: .6; }
.sec-workflows .wf-steps .wf-step.is-failed::before { border-color: rgba(248,81,73,.55); color: #ff7b72; }
.sec-workflows .wf-steps .wf-step.is-needs_human::before,
.sec-workflows .wf-steps .wf-step.is-blocked::before { border-color: rgba(240,136,62,.55); color: var(--warn); }

.sec-workflows .wf-summary { border-style: dashed; }
.sec-workflows .wf-summary .card-body { white-space: pre-wrap; font-family: var(--mono); font-size: 12.5px; line-height: 1.6; }

/* A token-signed tab can read a run but cannot decide one, because a decision
 * has to name a person. The note replaces the buttons rather than sitting next
 * to dead ones. */
.sec-workflows .wf-signin-note { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-top: 16px; }
