:root{font-family:Inter,"Microsoft YaHei","PingFang SC",sans-serif;color:#253c3b;background:#f3f5f3;font-size:14px;--teal:#176d60;--line:#dfe6e0;--muted:#7b8983}*{box-sizing:border-box}body{margin:0;display:flex}button,input,select{font:inherit}button{border:1px solid #d5ded7;background:#fff;color:#324943;padding:9px 14px;border-radius:6px;cursor:pointer;white-space:nowrap}button:hover{background:#eef5ee;border-color:#8aaa9a}button:disabled{opacity:.45;cursor:default}button.primary{background:var(--teal);color:white;border-color:var(--teal)}input,select{border:1px solid #d5ded7;border-radius:5px;padding:9px;background:#fff;color:#263f38;min-width:0;width:100%}input:focus,select:focus,button:focus-visible{outline:2px solid #9bcbb4;outline-offset:2px}.sidebar{width:242px;background:#163b34;color:#e6efe8;padding:34px 23px;position:fixed;inset:0 auto 0 0;display:flex;flex-direction:column}.brand{display:flex;gap:12px;align-items:center;font-size:21px;font-weight:600;letter-spacing:1px}.brandmark{display:grid;place-items:center;background:#a8c5ae;color:#163b34;width:40px;height:44px;border-radius:8px;font-family:Georgia,serif;font-size:33px;font-style:italic}.brand small{font-size:8px;display:block;margin-top:7px;letter-spacing:1.5px;color:#9db7a8}.workspace-tag{font-size:12px;margin:42px 4px 18px;color:#a9bfb0;display:flex;justify-content:space-between}.workspace-tag span{color:#c5d881}nav{display:flex;flex-direction:column;gap:8px}.nav{background:transparent;color:#c7d7cb;text-align:left;border:0;padding:14px 12px}.nav.active{color:#173d33;background:#d1dfc9}.nav:hover{background:#36584b;color:#fff}.sidebar-note{font-size:12px;color:#a0b6a8;margin-top:auto;line-height:2}.sidebar-note hr{border:0;border-top:1px solid #3c5a4b;margin:22px 0}main{margin-left:242px;padding:35px 38px;width:calc(100% - 242px);max-width:1800px}header{display:flex;justify-content:space-between;align-items:center;gap:24px;flex-wrap:wrap}.eyebrow{font-size:10px;color:#7e9181;letter-spacing:2px;font-weight:600}h1{font-size:26px;line-height:1.4;margin:10px 0 5px;font-weight:600;letter-spacing:1px}h2{font-size:17px;font-weight:600;margin:0 0 9px}h3{font-size:15px;margin-top:27px}p{color:#748479;line-height:1.7;margin:0 0 12px}.toolbar{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.status{margin:22px 0;padding:11px 15px;border:1px solid #dce5dc;color:#557361;background:#eaf1e9;border-radius:7px;line-height:1.6}.status.error{background:#fff0eb;color:#a24b34;border-color:#f0c7ba}.metrics{display:grid;grid-template-columns:repeat(4,1fr);gap:15px;margin-bottom:20px}.metric{background:#fff;border:1px solid var(--line);border-radius:8px;padding:19px 21px}.metric .label{font-size:12px;color:var(--muted);margin-bottom:13px}.metric strong{font-size:27px;font-weight:500;font-variant-numeric:tabular-nums}.metric small{font-size:11px;margin-left:7px;color:#8d988e}.metric .tag{display:block;margin-top:10px;color:#8d988e;font-size:11px}.panel{background:#fff;border:1px solid var(--line);border-radius:9px;padding:24px;margin-bottom:20px}.panel-head{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:18px}.panel-head p{font-size:12px;margin:0}.diagram-wrap{overflow:auto;background:#f8faf6;border-radius:6px;background-image:radial-gradient(#dbe5dc .8px,transparent .8px);background-size:18px 18px}#diagram{display:block;width:100%;min-width:680px;height:auto;max-height:660px}#diagram text{font-family:inherit;font-size:13px}#diagram .stream-label{fill:#426759;font-size:12px;cursor:pointer;paint-order:stroke;stroke:#f8faf6;stroke-width:6px}#diagram .node-box{fill:#fff;stroke:#6d9b86;stroke-width:1.5}#diagram .mix-box{fill:#edf2e8;stroke:#9aaf90}#diagram .terminal-box{fill:#e0ebd8;stroke:#7e9b69}#diagram .flow{fill:none;stroke:#7d9e8c;stroke-width:1.5}#diagram .flow.return{stroke:#b6a176;stroke-dasharray:5 3}.legend{display:flex;gap:9px;align-items:center;font-size:11px;color:#859186;margin-top:13px}.legend i{display:inline-block;width:9px;height:9px;background:#6d9b86;border-radius:2px}.legend i.mix{background:#b6a176;margin-left:18px}.legend span{margin-left:auto}.overview-bottom{display:grid;grid-template-columns:1.2fr 1fr;gap:20px}.product{display:flex;justify-content:space-between;border-bottom:1px solid #edf0eb;padding:13px 0;gap:12px}.product:last-child{border:0}.product strong{color:#39705c;font-variant-numeric:tabular-nums}.product small{display:block;color:#8c978e;margin-top:7px}.hint{font-size:12px;color:#8b968c;margin-top:18px}#diagnostics{line-height:2;color:#4f6b5b}.form-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(160px,1fr));gap:15px;align-items:end;margin:16px 0}label{display:block;font-size:12px;color:#708273}label input,label select{margin-top:7px;font-size:14px}.table-wrap{overflow-x:auto}table{border-collapse:collapse;width:100%;text-align:left;font-size:12px}th{background:#f2f5ef;color:#6d806d;font-weight:500;padding:13px 11px;white-space:nowrap}td{padding:12px 11px;border-bottom:1px solid #e9eee7;white-space:nowrap;font-variant-numeric:tabular-nums}td input,td select{min-width:90px;padding:7px;font-size:12px}td:first-child input{min-width:55px}tbody tr:hover{background:#f9fbf7}tr.terminal{background:#eef6e9}tr.highlight{background:#fbf0c4}td .delete{border:0;color:#ab725c;background:transparent;padding:7px}.delta{color:#8d957f;font-size:10px;margin-left:8px}.prose{max-width:1050px;line-height:1.9}.prose p{color:#596f60}.prose a{color:var(--teal)}footer{display:flex;justify-content:space-between;color:#a0aa9d;font-size:11px;padding:8px 0 14px;letter-spacing:.6px}pre{white-space:pre-wrap;word-break:break-word;font-size:12px;background:#fbf5ec;padding:18px;border-radius:6px}dialog{border:1px solid #d8e1d5;border-radius:12px;padding:32px;max-width:570px;width:90%;color:#294633}dialog::backdrop{background:#183e3455}dialog label{margin:14px 0}dialog .toolbar{justify-content:flex-end}#stageError{color:#ab533b;margin-top:12px}[hidden]{display:none!important}@media(max-width:1100px){.sidebar{width:195px;padding:25px 16px}main{margin-left:195px;width:calc(100% - 195px);padding:25px 22px}.brand{font-size:17px}.metrics{gap:9px}.metric{padding:14px}.metric strong{font-size:22px}.overview-bottom{grid-template-columns:1fr}}@media(max-width:720px){body{display:block}.sidebar{position:static;width:100%;padding:14px}.brand{font-size:17px}.brandmark{width:30px;height:32px;font-size:24px}.workspace-tag,.sidebar-note{display:none}nav{flex-direction:row;overflow:auto;margin-top:13px;gap:4px}.nav{font-size:11px;padding:9px}.brand small{display:none}main{margin:0;width:100%;padding:20px 14px}h1{font-size:22px}.metrics{grid-template-columns:repeat(2,1fr)}.panel{padding:16px}.panel-head{flex-wrap:wrap}.toolbar button{padding:8px 10px;font-size:12px}.diagram-wrap{max-height:500px}}
/* Direct manipulation canvas and contextual properties. */
#canvasKind{width:auto;max-width:155px}#diagram{max-height:none;touch-action:none;user-select:none;min-width:900px}.diagram-wrap{max-height:800px;overflow:auto}#diagram .graph-node{cursor:grab}#diagram .graph-node:active{cursor:grabbing}#diagram .graph-node:focus .node-box,#diagram .graph-node:hover .node-box{stroke:#176d60;stroke-width:2.5}#diagram .node-title{fill:#294f3f;font-size:14px;font-weight:600;pointer-events:none}#diagram .node-subtitle{fill:#788b7c;font-size:10px;pointer-events:none}#diagram .output-port{fill:#176d60;stroke:white;stroke-width:2;cursor:crosshair}#diagram .input-port{fill:white;stroke:#176d60;stroke-width:2;cursor:crosshair}#diagram [data-port]:hover{stroke:#f2b54b;stroke-width:4}#diagram .port-label{font-size:10px;fill:#52725b;pointer-events:none}#diagram .flow-hit{fill:none;stroke:transparent;stroke-width:15;cursor:pointer}#diagram .flow{pointer-events:none}#diagram .link-preview{fill:none;stroke:#dc983b;stroke-width:3;stroke-dasharray:7 5;pointer-events:none}.node-editor{width:min(850px,96vw);max-width:850px;max-height:90vh;padding:24px}.editor-heading,.editor-footer{display:flex;justify-content:space-between;align-items:center;gap:16px}.editor-footer{position:sticky;bottom:-24px;background:white;padding:18px 0;border-top:1px solid var(--line);margin-top:24px}.editor-heading h2{margin:6px 0}.stream-card{border:1px solid var(--line);border-radius:9px;padding:16px;margin:18px 0;background:#fafcf9}.stream-card h3{margin:0}.stream-card .panel-head{margin:0}.connection-chips{display:flex;gap:8px;flex-wrap:wrap}.connection-chips span{border:1px solid #d6e1d5;padding:4px 10px;border-radius:20px}.connection-chips button{border:0;background:transparent;padding:4px}.editor-connect{display:flex;gap:10px;margin:14px 0}.condition-card{display:grid;grid-template-columns:2fr 1fr 1.3fr auto;gap:9px;align-items:end;margin:12px 0}.condition-card label{margin:0}.condition-card button{margin-bottom:0}.node-editor details{margin:16px 0}.node-editor summary{cursor:pointer;color:#176d60;padding:7px 0}.node-editor .danger{color:#a34b35;border-color:#e3b9aa}#editorError{color:#a34b35;margin-top:14px}.node-editor .hint button{font-size:11px;padding:3px 9px;margin-left:8px}@media(max-width:720px){.node-editor{padding:16px}.condition-card{grid-template-columns:1fr 1fr}.editor-footer{flex-wrap:wrap;bottom:-16px}.legend{flex-wrap:wrap}.legend span{margin:0}}

.canvas-tip{display:flex;align-items:center;gap:13px;flex-wrap:wrap;background:#f2f8ee;border:1px solid #d7e7d0;border-radius:7px;color:#446450;font-size:12px;padding:10px 13px;margin:-3px 0 13px}.canvas-tip strong{color:#176d60}.canvas-tip span{white-space:nowrap}.canvas-tip button{margin-left:auto;padding:4px 9px;background:transparent;color:#6d8770;border-color:#bfd3bd;font-size:11px}.canvas-meta{display:flex;justify-content:space-between;gap:12px;color:#809286;font-size:11px;margin:0 2px 10px;font-variant-numeric:tabular-nums}.zoom-label{min-width:39px;text-align:center;color:#6f8274;font-size:11px}.legend i.product{background:#7e9b69;margin-left:18px}#diagram .flow.active{stroke:#e09238;stroke-width:3;filter:drop-shadow(0 1px 1px #d29a5a)}#diagram .stream-label.active{fill:#a05e18;font-weight:700}#diagram .graph-node.selected .node-box{stroke:#e09238;stroke-width:3;filter:drop-shadow(0 2px 2px #c89f65)}#diagram .graph-node.related .node-box{stroke:#d3ae6b;stroke-width:2}.output-port.active{fill:#e09238}.node-editor{box-shadow:0 20px 60px #173e3426}@media(max-width:720px){.canvas-tip{display:block;line-height:1.9}.canvas-tip span{display:block}.canvas-tip button{float:right;margin-top:-25px}.canvas-meta{display:block;line-height:1.8}.canvas-meta span{display:block}}

#diagram .flow.return{stroke:#3d7e8b;stroke-width:2.5;stroke-dasharray:7 4;filter:drop-shadow(0 0 1.5px #fff)}#diagram .stream-label{paint-order:stroke;stroke:#f8faf6;stroke-width:6px;stroke-linejoin:round}
.legend{gap:10px;flex-wrap:wrap}.legend-group-title{font-weight:600;color:#52705f;margin-left:0!important}.legend-item{display:inline-flex;align-items:center;gap:5px;margin-left:0!important;white-space:nowrap}.legend-divider{height:17px;border-left:1px solid #d9e2d9;margin:0 3px}.legend-note{margin-left:auto!important}.legend i.flow-line{width:25px;height:0;border-radius:0;background:transparent;border-top:2px solid #7d9e8c}.legend i.return-line{border-top:2px dashed #3d7e8b}
.legend i.mix,.legend i.product{margin-left:0}
#diagram .mix-box{fill:#fbf0dd;stroke:#b88752}#diagram .product-box{fill:#e3eef7;stroke:#4f82a4}#diagram .feed-box{fill:#e0ebd8;stroke:#7e9b69}#diagram .terminal-input-port{fill:#e3eef7;stroke:#4f82a4;cursor:default}
