.workflow-lab{max-width:1080px;margin:56px auto 0;scroll-margin-top:18px;--wf-accent:var(--client-color,#2489d4);--wf-light:color-mix(in srgb,var(--wf-accent) 63%,white);--wf-line:color-mix(in srgb,var(--wf-accent) 25%,#222)}
.hero-watch{color:var(--text);border:1px solid var(--border);margin:10px 0 0 6px}
.hero-watch:hover{border-color:var(--accent);color:var(--accent)}
.wf-heading{display:flex;justify-content:space-between;align-items:end;gap:20px;margin-bottom:17px}
.wf-heading h2{font-size:clamp(1.78rem,4vw,3rem);line-height:1.07;letter-spacing:-.04em;margin:0}
.wf-heading h2 em{color:var(--wf-light);font-style:normal}
.wf-heading p:not(.kicker){color:var(--dim);margin:7px 0 0;max-width:610px}
.wf-heading button{flex:none;min-height:46px}
.wf-board{position:relative;overflow:hidden;border:1px solid var(--wf-line);border-radius:18px;background:#09090b}
.wf-toolbar{display:flex;justify-content:space-between;gap:8px;padding:13px clamp(13px,3vw,24px);border-bottom:1px solid var(--wf-line);background:#101012;color:#ccc6c4;font:700 .69rem/1.25 var(--mono);letter-spacing:.13em}
.wf-toolbar i,.wf-check{display:inline-block;width:7px;height:7px;margin-right:6px;border-radius:50%;background:var(--wf-light);box-shadow:0 0 9px var(--wf-accent)}
.wf-canvas{position:relative;display:grid;justify-items:center;gap:19px;padding:19px clamp(12px,4vw,51px) 20px;background-color:#0a090b;background-image:radial-gradient(ellipse at 50% 26%,color-mix(in srgb,var(--wf-accent) 11%,transparent),transparent 63%),radial-gradient(#ffffff22 1px,transparent 1px);background-size:auto,18px 18px}
.wf-wires{position:absolute;inset:0;pointer-events:none;width:100%;height:100%}
.wf-wires path{fill:none;stroke:var(--wf-light);stroke-width:1.25;opacity:.18;stroke-dasharray:.018 .015}
.wf-wires .traced{opacity:.95;stroke-width:1.9;stroke-dasharray:1;filter:drop-shadow(0 0 4px var(--wf-accent));animation:wf-draw .47s ease-out both}
@keyframes wf-draw{from{stroke-dashoffset:1}to{stroke-dashoffset:0}}
.wf-root{position:relative;display:grid;justify-items:center;text-align:center;gap:2px;line-height:1.2;max-width:100%;padding:9px 17px;border:1px solid var(--wf-line);border-radius:10px;background:#111113;color:#fbf4f0;z-index:1}
.wf-root span,.wf-inspector span,.wf-outcome small{color:var(--wf-light);font:750 .69rem/1.35 var(--mono);letter-spacing:.07em}
.wf-root strong{font-size:clamp(.94rem,2vw,1.12rem)}
.wf-root small{color:#c4b7b0;line-height:1.3}
.wf-brain{border-color:var(--wf-light);box-shadow:0 0 22px color-mix(in srgb,var(--wf-accent) 26%,transparent)}
.wf-handoff{border-style:dashed}.wf-board[data-phase="ready"] .wf-handoff,.wf-board[data-phase="released"] .wf-handoff{border-style:solid;border-color:var(--wf-light)}
.wf-agents{z-index:1;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;width:min(100%,745px)}
.wf-agent{position:relative;background:#131215;border:1px solid #343036;color:#f0e9e7;display:flex;align-items:center;min-width:0;text-align:left;padding:5px 7px;min-height:58px;border-radius:10px}
.wf-agent:hover,.wf-agent[aria-pressed=true]{border-color:var(--wf-light);background:color-mix(in srgb,var(--wf-accent) 12%,#151417)}
.wf-agent.reached .wf-check{background:var(--wf-light);box-shadow:0 0 8px var(--wf-accent)}
.wf-agent.reached{border-color:var(--wf-line);animation:wf-dock .50s ease-out}
.wf-agent.reached[aria-pressed=true]{border-color:var(--wf-light)}
@keyframes wf-dock{0%{box-shadow:0 0 0 transparent}45%{box-shadow:0 0 19px var(--wf-accent)}100%{box-shadow:0 0 0 transparent}}
.wf-check{position:absolute;right:5px;top:7px;margin:0;width:5px;height:5px;background:#696166;box-shadow:none}
.wf-portrait{flex:0 0 47px;aspect-ratio:1;background:url('forged-soft-robot-atlas.webp') var(--sprite-x) var(--sprite-y)/300% 200% no-repeat;filter:hue-rotate(var(--brand-hue,0deg)) saturate(var(--brand-sat,1));margin-right:3px}
.wf-agent-copy{display:grid;min-width:0;line-height:1.17}
.wf-agent-copy strong{font-size:.96rem}
.wf-agent-copy small{color:#c3b9b6;font-size:.78rem;margin-top:4px}
.wf-inspector{display:grid;grid-template-columns:.83fr 1fr 1.3fr;gap:15px;padding:15px clamp(13px,3vw,23px);background:#141315;border-top:1px solid var(--wf-line)}
.wf-inspector strong{display:block;font-size:1.04rem;margin-top:3px;line-height:1.2}
.wf-inspector p,.wf-gate p,.wf-outcome p{margin:3px 0 0;color:#d2c8c3;font-size:.89rem;line-height:1.46}
.wf-gate{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:14px clamp(13px,3vw,23px);border-top:1px solid var(--wf-line)}
.wf-options{display:flex;gap:8px;flex-wrap:wrap}.wf-options button{min-height:42px}.wf-options button[aria-pressed=true]{outline:2px solid var(--wf-light);outline-offset:2px}
.wf-outcome{padding:13px clamp(13px,3vw,23px);border-top:1px solid var(--wf-line);background:color-mix(in srgb,var(--wf-accent) 12%,#0d0c10)}
.wf-outcome strong{color:var(--wf-light)}.wf-outcome small{display:block;margin-top:6px}
.wf-sr{position:absolute;width:1px;height:1px;margin:-1px;clip-path:inset(50%);overflow:hidden}
.solo-brief{grid-template-columns:1fr}
@media(max-width:640px){.workflow-lab{margin-top:37px}.wf-heading{display:grid;gap:11px}.wf-heading button{justify-self:start}.wf-inspector{grid-template-columns:1fr 1fr;gap:10px}.wf-inspector>div:first-child{grid-column:1/-1}.wf-gate{align-items:start;flex-direction:column}}
@media(max-width:500px){.wf-agents{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.wf-root small{font-size:.74rem}.wf-canvas{gap:15px}.wf-portrait{flex-basis:39px}.wf-agent{min-height:55px}.wf-agent-copy strong{font-size:.91rem}.wf-agent-copy small{font-size:.74rem}.wf-toolbar{font-size:.61rem;letter-spacing:.08em}}
@media(prefers-reduced-motion:reduce){.wf-board *{animation:none!important;transition:none!important}}
.paused .wf-board *{animation:none!important;transition:none!important}

/* Orange is the brand; icy cyan always tells you what to read right now. */
.wf-board{--wf-focus:#72edff;--wf-focus-bg:#112229}
.wf-story{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:11px clamp(13px,3vw,23px);background:#10181c;border-top:1px solid #24404a}
.wf-story-label{display:flex;align-items:center;gap:9px;flex-wrap:wrap}
.wf-story-label strong{color:var(--wf-focus);font-size:.92rem}
.wf-story-label span{color:#b7cbd1;font-size:.76rem}
.wf-story-controls{display:flex;gap:6px;flex-wrap:wrap}
.wf-story-controls button.quiet{font-size:.77rem;min-height:44px;padding:5px 10px;background:#112026;border-color:#35545e}
.wf-story-controls button:hover{border-color:var(--wf-focus)}
.wf-story-controls button:disabled{opacity:.45;cursor:default}
.wf-root.wf-active,.wf-agent.wf-active,.wf-agent.reached.wf-active{border-color:var(--wf-focus);border-style:solid;background:var(--wf-focus-bg);box-shadow:0 0 18px #4cd8fb38,inset 0 0 0 1px #6deaff40;animation:wf-focus-in .33s ease-out}
.wf-root.wf-active>span{color:var(--wf-focus)}
.wf-agent.wf-active .wf-check{background:var(--wf-focus);box-shadow:0 0 8px var(--wf-focus)}
.wf-wires .wf-edge-active{stroke:var(--wf-focus);stroke-width:2.1;filter:drop-shadow(0 0 4px var(--wf-focus))}
.wf-inspector.wf-explain-active{border-top-color:#457582;box-shadow:inset 4px 0 var(--wf-focus);background:#111a1f;}
.wf-inspector.wf-explain-active span{color:var(--wf-focus)}
@keyframes wf-focus-in{from{box-shadow:0 0 3px #4cd8fb15}to{box-shadow:0 0 18px #4cd8fb38,inset 0 0 0 1px #6deaff40}}
@media(max-width:640px){.wf-story{align-items:start;flex-direction:column}.wf-story-controls{gap:5px}.wf-story-controls button.quiet{padding-inline:8px}}
.wf-picker{display:grid;grid-template-columns:1fr;gap:6px;flex:0 1 325px;min-width:0}
.wf-picker label{color:var(--wf-light);font-weight:800;font-size:.9rem}
.wf-picker select{appearance:none;min-height:46px;min-width:0;width:100%;padding:10px 34px 10px 12px;border:1px solid var(--wf-line);border-radius:9px;background:#131216 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Cpath d='m4 6 4 4 4-4' fill='none' stroke='%23eee8e4' stroke-width='1.5'/%3E%3C/svg%3E") right 10px center/16px no-repeat;color:var(--text);font:inherit;text-overflow:ellipsis}
.wf-picker select:focus-visible{outline:2px solid #72edff;outline-offset:2px}
.wf-picker .primary{justify-self:start}
@media(max-width:640px){.wf-picker{width:100%;max-width:345px}}

/* A mint indicator is distinct from the blue brand, even on the active wires. */
.wf-board{--wf-focus:#8af5ce;--wf-focus-bg:#102522}
.wf-story{background:#0f1918;border-color:#244943}
.wf-story-controls button.quiet{background:#10201e;border-color:#355d54}
.wf-root.wf-active,.wf-agent.wf-active,.wf-agent.reached.wf-active{box-shadow:0 0 18px #76eed13c,inset 0 0 0 1px #8af5ce4a}
.wf-inspector.wf-explain-active{border-top-color:#417a68;background:#111e1b}
.wf-picker select:focus-visible{outline-color:var(--accent)}
@keyframes wf-focus-in{from{box-shadow:0 0 3px #76eed115}to{box-shadow:0 0 18px #76eed13c,inset 0 0 0 1px #8af5ce4a}}
