/* Content-first workflow: a step strip and one next action on each Content card, and the script's content link. */
.pipeline-card .flow-foot{display:grid;gap:8px;padding:0 15px 13px}
.flow-progress{display:grid;gap:5px}
.flow-now{margin:0;font:10px var(--mono);text-transform:uppercase;letter-spacing:.06em;color:#655f56}
.flow-now strong{color:var(--ink)}
.flow-steps{list-style:none;display:grid;grid-template-columns:repeat(6,1fr);gap:3px;margin:0;padding:0}
/* position:relative keeps the hidden step names inside the card; otherwise they escape the board's scroll frame and widen the page. */
.flow-steps li{position:relative;height:5px;border-radius:2px;background:#e3ddd2}
.flow-steps li.done{background:var(--moss)}
.flow-steps li.current{background:var(--ink)}
.flow-deal,.flow-note{font-size:12px;color:#655f56}
.flow-actions{display:flex;flex-wrap:wrap;align-items:center;gap:8px}
.pipeline-card .flow-foot button{width:auto;display:inline-flex;flex-direction:row;align-items:center;gap:6px;padding:8px 12px;min-height:40px;border:1px solid var(--ink);border-radius:3px;background:#fffdf8;font-size:13px}
.pipeline-card .flow-foot button.flow-link{border:0;padding:0 2px;background:none;text-decoration:underline;min-height:40px}
.pipeline-card .flow-foot button:hover{background:#fff7e6}
.flow-link{appearance:none;border:0;background:none;padding:0;color:var(--ink);text-decoration:underline;cursor:pointer;font:inherit}
.script-for{margin:0;padding:10px 26px;border-bottom:1px solid var(--line);font-size:14px}
.script-for .flow-link{font-weight:600}
.pipeline-card .flow-now strong{font:inherit;font-weight:700;color:var(--ink)}
.pipeline-card .flow-foot button.flow-delete{margin-left:auto;border:0;padding:0 4px;background:none;color:#8b5a4d;font-size:12px;text-decoration:underline;min-height:40px}
.pipeline-card .flow-foot button.flow-delete:hover{color:var(--coral);background:none}
/* Secondary destructive buttons (Delete next to other actions): outlined with red text. The filled .danger style stays for confirmations. */
button.quiet.danger{background:transparent;color:#9f3e31;border:1px solid var(--line);box-shadow:none}
button.quiet.danger:hover{border-color:#9f3e31;background:#fbefec}
#record-form menu .form-delete{margin-right:auto}
.pipeline-card .flow-actions{display:grid;gap:6px}
.pipeline-card .flow-secondary{display:flex;justify-content:space-between;align-items:center;gap:8px}
.pipeline-card .flow-foot .flow-next{justify-content:center;width:100%}
