/* A bounded local workflow demonstration. Crisp DOM nodes, no canvas raster. */
#farmium .work-layout{align-items:start}
.dag-visual-body>.engine[data-demo="dag-workflow"]{min-height:820px}
@container(min-width:340px){.dag-visual-body>.engine[data-demo="dag-workflow"]{min-height:770px}}
@container(min-width:480px){.dag-visual-body>.engine[data-demo="dag-workflow"]{min-height:650px}}
.wf-demo{--wf-ink:#e4eddb;--wf-muted:#acbfa3;--wf-accent:#c9e78f;--wf-line:#b6ccaa38;position:relative;color:var(--wf-ink);font-family:inherit;min-width:0}
.wf-heading{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:17px 18px 13px;font-size:11px;line-height:1.4;border-bottom:1px solid #b6ccaa1a}
.wf-badge{font-weight:550;color:#d7e8c9}.wf-state{display:flex;align-items:center;gap:6px;color:var(--wf-muted);text-align:right;font-size:10px}
.wf-state:before{content:'';width:5px;height:5px;flex:none;border-radius:50%;background:#7b9370}
.wf-demo[data-state=running] .wf-state:before{background:var(--wf-accent);box-shadow:0 0 0 4px #c9e78f13}
.wf-demo[data-state=complete] .wf-state{color:#c9e78f}
.wf-toolbar{display:flex;align-items:center;gap:8px;padding:13px 15px 0;flex-wrap:wrap}
.wf-toolbar button{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:44px;max-width:100%;border:1px solid var(--wf-line);border-radius:9px;padding:10px 13px;background:#213024;color:#d5e5ca;font:500 12px/1.35 Portfolio,Arial,sans-serif;cursor:pointer}
.wf-toolbar .wf-run{background:var(--wf-accent);border-color:var(--wf-accent);color:#1b2914}
.wf-toolbar svg{width:16px;height:16px;flex:none}.wf-toolbar .wf-reset{background:transparent}
.wf-toolbar button:focus-visible,.wf-node:focus-visible{outline:2px solid #e2f7bd;outline-offset:4px}
.wf-count{font-size:10px;line-height:1.5;color:#b9cca9;margin-left:auto;white-space:nowrap}
.wf-stage{position:relative;isolation:isolate;width:100%;height:300px;background-image:radial-gradient(#b4cfab24 .7px,transparent .7px);background-size:20px 20px;min-width:0;overflow:clip;margin-top:4px}
.wf-wires{position:absolute;inset:0;width:100%;height:100%;overflow:visible;pointer-events:none}
.wf-wire-base{stroke:#88a37f65;stroke-width:1.4;vector-effect:non-scaling-stroke}
.wf-wire-flow{stroke:var(--wf-accent);stroke-width:2.4;stroke-linecap:round;stroke-dasharray:5 13;opacity:0;vector-effect:non-scaling-stroke}
.wf-wire.is-done .wf-wire-base{stroke:#b7d799ad}
.wf-wire.is-active .wf-wire-flow{opacity:1;animation:wf-transfer .72s linear infinite}
@keyframes wf-transfer{to{stroke-dashoffset:-36}}
.wf-node{position:absolute;translate:-50% -50%;height:70px;display:grid;grid-template-columns:24px minmax(0,1fr);grid-template-rows:20px 15px 14px;column-gap:7px;align-items:center;text-align:left;margin:0;padding:9px 10px 7px;border:1px solid #8fa98560;border-radius:11px;background:#233127;color:var(--wf-ink);box-shadow:0 4px 12px #06120a25;cursor:grab;user-select:none;-webkit-user-select:none;touch-action:none;font-family:inherit;transition:border-color .18s,background .18s,box-shadow .18s;min-width:0}
.wf-node:hover{border-color:#c9e78f85}.wf-node[aria-pressed=true]{border-color:#d0e7b3;background:#2c3b2b}
.wf-node-icon{grid-column:1;grid-row:1/3;display:grid;place-items:center;width:24px;height:26px;color:#bed99f}
.wf-node-icon svg{width:22px;height:22px}.wf-node-title{grid-column:2;grid-row:1;font-size:12px;font-weight:550;line-height:1.2;letter-spacing:-.2px;white-space:nowrap}
.wf-node-sub{grid-column:2;grid-row:2;font-size:9px;line-height:1.4;color:#a9bfa1;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.wf-node-status{grid-column:1/-1;grid-row:3;font-size:9px;line-height:1.4;color:#90a985}
.wf-node-track{position:absolute;inset:auto 8px 0;height:2px;overflow:hidden;border-radius:2px}
.wf-node-track>span{display:block;height:100%;background:var(--wf-accent);transform:scaleX(0);transform-origin:left}
.wf-node[data-state=active]{border-color:#d2ef9b;background:#2b3b29;box-shadow:0 0 0 3px #c9e78f12,0 5px 16px #07100a35}
.wf-node[data-state=active] .wf-node-status{color:#d3e8b9}
.wf-node[data-state=done]{background:#26382a;border-color:#a4ce8c90}
.wf-node[data-state=done] .wf-node-status{color:#c9e78f}
.wf-node[data-state=done] .wf-node-status:before{content:'✓ ';font-family:Arial,sans-serif}
.wf-inspector{padding:16px 18px 17px;border-block:1px solid #b6ccaa25;background:#b8d49d04;min-width:0}
.wf-inspector-title{display:block;font-size:14px;line-height:1.4;color:#dbe8d0;font-weight:550}
.wf-inspector-copy{margin:8px 0 13px;font-size:12px;line-height:1.75;color:#b6c7ae;max-width:none}
.wf-ports{display:flex;flex-wrap:wrap;gap:7px 14px;color:#a7c38e;font-size:10px;line-height:1.5}
.wf-result{display:flex;align-items:center;gap:12px;padding:15px 18px;border-bottom:1px solid #b6ccaa20}
.wf-result-art{display:grid;place-items:center;width:48px;height:36px;flex:none;border:1px solid #bfdc9b3b;border-radius:7px;background:linear-gradient(145deg,#3c5737,#1b322b);color:#a3bb85;transition:color .3s,border-color .3s}
.wf-result-art svg{width:24px;height:24px}.wf-result>div{min-width:0;display:grid;gap:4px}
.wf-result strong{font-size:12px;font-weight:500;line-height:1.5;color:#c4d3b7}.wf-result>div>span{font-size:10px;line-height:1.6;color:#92aa86}
.wf-result[data-ready=true] .wf-result-art{color:#d7f2ae;border-color:#c9e78f85}.wf-result[data-ready=true] strong{color:#d3e9b5}
.wf-scope{font-size:10px;line-height:1.65;color:#99ae8e;padding:0 18px;margin:12px 0 16px;max-width:none}
.wf-live{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}
.wf-demo[data-visible=false] .wf-wire-flow,.wf-demo[data-state=paused] .wf-wire-flow{animation-play-state:paused}
.wf-demo[data-motion=light] .wf-wire-flow,.wf-demo[data-motion=reduced] .wf-wire-flow{animation:none}
.wf-demo[data-motion=light] .wf-node{box-shadow:none;transition:none}
@media(max-width:760px),(max-width:1024px) and (max-height:500px){
 .wf-heading{padding:15px 14px 12px;gap:10px}.wf-badge{font-size:12px}.wf-state{font-size:10px;max-width:115px}
 .wf-toolbar{padding:12px 12px 0;gap:8px}.wf-toolbar button{font-size:12px;padding:10px 12px}.wf-count{font-size:11px}
 .wf-node{height:70px;grid-template-columns:22px minmax(0,1fr);padding-inline:9px;column-gap:6px}
 .wf-node-icon{width:22px}.wf-node-icon svg{width:21px;height:21px}.wf-node-title{font-size:13px}.wf-node-sub{font-size:10px}.wf-node-status{font-size:10px}
 .wf-inspector{padding:16px 14px}.wf-inspector-copy{font-size:13px;line-height:1.75}.wf-ports{font-size:11px;gap:7px 12px}
 .wf-result{padding:14px}.wf-result strong{font-size:13px}.wf-result>div>span{font-size:11px}.wf-scope{font-size:11px;padding-inline:14px}
 .engine[data-demo=dag-workflow]:not([data-mobile-interacting=true]) .wf-node{touch-action:pan-y!important;cursor:pointer}
 .engine[data-demo=dag-workflow][data-mobile-interacting=true] .wf-node{touch-action:none!important}
}
@media(max-width:370px){.wf-toolbar{column-gap:6px}.wf-count{flex-basis:100%;margin:0;text-align:right;padding-right:2px}.wf-node-title{font-size:12px}.wf-node-sub{padding-left:0}}
@media(prefers-reduced-motion:reduce){.wf-demo *{animation:none!important;transition:none!important}}
