.workflow-panel{grid-column:1/-1;padding:26px 28px;border-bottom:1px solid var(--line);background:linear-gradient(120deg,#142c24,#13271e);min-width:0}
.workflow-heading{display:flex;gap:18px;justify-content:space-between;align-items:flex-start}
.workflow-heading h3{font-size:1.125rem;margin-bottom:8px}
.workflow-note{font-size:.8125rem;line-height:1.65;color:var(--muted);overflow-wrap:anywhere}
.workflow-note.good{color:var(--green)}
.workflow-note.danger{color:var(--danger)}
.workflow-progress{display:flex;align-items:center;flex-wrap:wrap;gap:12px 18px;padding:18px 0;margin:12px 0;border-top:1px solid var(--line-soft);border-bottom:1px solid var(--line-soft)}
.workflow-progress strong{font-size:.875rem;font-weight:500}
.workflow-progress progress{appearance:none;accent-color:var(--amber);width:180px;max-width:100%;height:6px;border:0;border-radius:10px;overflow:hidden;background:#081c13}
.workflow-progress progress::-webkit-progress-bar{background:#081c13}
.workflow-progress progress::-webkit-progress-value{background:var(--amber)}
.workflow-budget{margin-left:auto;font-size:.75rem;color:var(--muted)}
.workflow-profile{font-size:.8125rem;line-height:1.6;overflow-wrap:anywhere;margin:10px 0;color:var(--ink)}
.workflow-summary{font-size:.9375rem;line-height:1.6;overflow-wrap:anywhere;margin-top:18px;max-width:90ch}
.workflow-plan-proof{margin-top:12px;font-size:.75rem;color:var(--muted)}
.workflow-plan-proof summary{cursor:pointer;padding:6px 0;min-height:32px}
.workflow-plan-proof code{display:block;padding:10px 0;overflow-wrap:anywhere}
.workflow-tasks{list-style:none;padding:0;margin:24px 0 18px;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}
.workflow-task{min-width:0;padding:20px;border:1px solid var(--line);border-radius:9px;background:#11251c;box-shadow:inset 0 3px #516d4a}
.workflow-task[data-task-status="running"],.workflow-task[data-task-status="verifying"]{box-shadow:inset 0 3px var(--amber);border-color:#8e7d4f}
.workflow-task[data-task-status="completed"]{box-shadow:inset 0 3px var(--green)}
.workflow-task[data-task-status="blocked"],.workflow-task[data-task-status="validation_error"],.workflow-task[data-task-status="validation_failed"]{box-shadow:inset 0 3px var(--danger)}
.workflow-task:focus{outline:2px solid var(--amber);outline-offset:3px}
.workflow-task-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}
.workflow-task-heading>div{min-width:0}
.workflow-task h4{font-size:1rem;line-height:1.4;font-weight:500;margin-top:7px;overflow-wrap:anywhere}
.workflow-role{color:var(--amber);font-size:.6875rem;letter-spacing:.07em;text-transform:uppercase}
.workflow-task .badge{white-space:normal;flex-shrink:0;max-width:140px;text-align:center}
.workflow-objective{font-size:.8125rem;line-height:1.6;color:var(--muted);margin:12px 0;overflow-wrap:anywhere}
.workflow-dependencies{display:flex;align-items:center;gap:4px 8px;flex-wrap:wrap;font-size:.75rem;color:var(--muted);border-top:1px solid var(--line-soft);border-bottom:1px solid var(--line-soft);padding:8px 0;margin:12px 0}
.workflow-dependency{font-size:.75rem;min-height:36px;height:auto;max-width:100%;white-space:normal;text-align:left;padding:6px 9px;color:var(--ink);background:#1e3829;border:1px solid #516d4a;overflow-wrap:anywhere}
.workflow-dependency:before{content:'↳';color:var(--amber);margin-right:5px}
.workflow-rationale{font-size:.75rem;line-height:1.6;overflow-wrap:anywhere;color:var(--muted);margin:6px 0 14px}
.workflow-criteria{font-size:.75rem;line-height:1.7;overflow-wrap:anywhere;margin:15px 0}
.workflow-criteria>strong{font-weight:500;color:var(--ink)}
.workflow-criteria ul{padding-left:18px;margin-top:6px;color:var(--muted)}
.workflow-task-controls{display:flex;align-items:center;gap:10px 14px;flex-wrap:wrap;margin-top:16px}
.workflow-task-controls .button{font-size:.75rem;min-height:44px}
.workflow-task-controls .workflow-note{font-size:.75rem}
.workflow-attempts{margin-top:16px;border-top:1px solid var(--line-soft);padding-top:10px;font-size:.75rem;color:var(--muted)}
.workflow-attempts summary{cursor:pointer;min-height:36px;padding:7px 0}
.workflow-attempts ol{padding-left:18px;display:grid;gap:8px}
.workflow-attempts li>.button{font-size:.75rem;min-height:44px;margin-right:8px}
.workflow-attempts small{display:block;overflow-wrap:anywhere;font-size:.6875rem}
.workflow-breadcrumb{padding-bottom:20px;margin-bottom:22px;border-bottom:1px solid var(--line)}
.workflow-breadcrumb .button{font-size:.8125rem;min-height:44px}
.workflow-breadcrumb p{margin-top:10px}
.workflow-inputs ul{list-style:none;padding:0;margin:12px 0;display:grid;gap:14px}
.workflow-inputs li{min-width:0;padding:12px;border:1px solid var(--line);border-radius:6px;font-size:.8125rem;overflow-wrap:anywhere}
.workflow-inputs .button{min-height:44px;font-size:.75rem;margin-left:10px}
.workflow-inputs code,.workflow-inputs small{display:block;overflow-wrap:anywhere;font-size:.6875rem;margin-top:6px;color:var(--muted)}
@media(max-width:800px){.workflow-tasks{grid-template-columns:1fr}.workflow-budget{width:100%;margin-left:0}}
@media(max-width:650px){.workflow-panel{padding:22px 18px}.workflow-task{padding:16px}.workflow-task-heading{flex-wrap:wrap}.workflow-task .badge{max-width:none}.workflow-progress{gap:10px}.workflow-progress progress{width:100%}.workflow-dependency{min-height:44px}.workflow-plan-proof summary{min-height:44px}.workflow-attempts summary{min-height:44px}}
