/* A viewport-sized workspace: the graph, not the introductory copy, is primary. */
body[data-page="workflows"] .topbar{height:84px;padding-top:16px;padding-bottom:16px}
.workflow-page{height:calc(100dvh - 84px);min-height:620px;max-width:none;padding:20px 28px 22px;display:flex;flex-direction:column;gap:14px;overflow:hidden}
.workflow-page .section-heading{display:none}.workflow-page .section-heading .eyebrow{display:none}.workflow-page .section-heading h2{font-size:21px;margin:0 0 5px}.workflow-page .section-heading p{font-size:11px}.workflow-page .read-only{padding:5px 10px}
.workflow-tabs{margin:0;gap:10px;flex-shrink:0}.workflow-tab{padding:12px 16px;min-width:0;border-radius:10px}.workflow-tab b{font-size:12px;margin-bottom:5px}.workflow-tab span{font-size:10px}
.flow-panel{flex:1;min-height:380px;display:flex;flex-direction:column;border-radius:13px;box-shadow:0 3px 14px #33395503}.flow-toolbar{padding:14px 18px;flex-shrink:0}.flow-toolbar h3{font-size:15px}.flow-toolbar p{font-size:11px;margin-top:5px}.flow-actions{flex-shrink:0;gap:7px}.flow-actions .button{font-size:11px;padding:8px 10px}
.flow-info{padding:8px 18px;gap:8px 18px;flex-shrink:0;justify-content:flex-start;align-items:center;font-size:10px;min-height:40px}.flow-info>span:first-child{white-space:nowrap;margin-right:auto}.node-picker-label,.direction-label{display:flex;align-items:center;gap:7px;white-space:nowrap;flex-shrink:0;min-width:0}.node-picker-label select,.direction-label select{font:inherit;border:1px solid #e2e6ef;border-radius:6px;background:white;padding:5px 7px;color:#576077}.node-picker-label select{width:190px;max-width:230px}.direction-label select{width:90px}.canvas-help{font-size:9px;color:#9ba2b3;width:100%;display:none}
.graph-layout{display:grid;grid-template-columns:minmax(0,1fr) 248px;flex:1;min-height:0;overflow:hidden}.graph-layout.details-collapsed{grid-template-columns:minmax(0,1fr)}.details-collapsed .node-detail{display:none}
.graph-stage{height:100%;min-height:0;position:relative;overflow:hidden;outline-offset:-3px;background-size:20px 20px;background-color:#f7f9fc}.graph-stage:focus-visible{outline:2px solid #ff9fb8}#graph{display:block;width:100%;height:100%}
.flow-node rect{fill:#fff;stroke:#d9e0ec;stroke-width:1.2;filter:drop-shadow(0 2px 3px #293b5c06)}.flow-node .node-accent{stroke:none;filter:none}.flow-node:hover rect:not(.node-accent),.flow-node.selected rect:not(.node-accent){stroke:#ff5b87;stroke-width:2;fill:#fff9fb}.flow-node text.node-title{font-size:13px;font-weight:500;fill:#313d55}.flow-node text.node-type{font-size:11px;fill:#8994a8}.flow-edge{stroke:#b9c4d5;stroke-width:1.6;marker-end:url(#arrow);opacity:.8}.flow-edge.connected-edge{stroke:#ef7598;stroke-width:2;opacity:1}.edge-label{font-size:10px;fill:#8592a6;paint-order:stroke;stroke:#f7f9fc;stroke-width:5px;stroke-linejoin:round}
.node-detail{padding:19px 18px;min-height:0;max-height:none;background:#fff;overflow:auto}.node-detail .eyebrow{font-size:9px;color:#a1a8b7;letter-spacing:1px}.node-detail h3{font-size:14px;line-height:1.7;margin:12px 0}.node-detail p{font-size:11px;line-height:1.9}.node-detail dt{margin-top:16px}.node-next{display:grid;gap:7px}.node-next button{font:inherit;text-align:left;border:1px solid #e8ebf2;border-radius:7px;padding:8px 9px;background:#fafbfe;color:#68748d;cursor:pointer;line-height:1.6}.node-next button:hover{background:#fff1f6;border-color:#ffc1d3;color:#e54676}
.zoom-tools{left:15px;bottom:15px;z-index:2;align-items:stretch;border-radius:8px;overflow:hidden;box-shadow:0 3px 15px #293c6510;background:#fff}.zoom-tools button{font-size:10px;padding:9px 11px;border:0;border-right:1px solid #edf0f6}.zoom-tools button:hover{background:#fff1f6}.zoom-tools output{font-size:10px;padding:9px 5px;min-width:42px;display:grid;place-items:center;color:#7e8ba3;font-variant-numeric:tabular-nums}
.minimap{position:absolute;right:15px;bottom:15px;width:132px;height:108px;background:#ffffffed;border:1px solid #e1e6f0;border-radius:9px;box-shadow:0 3px 14px #293c6509;overflow:hidden;cursor:crosshair}.minimap>span{display:block;font-size:8px;color:#a0aabb;padding:6px 9px;border-bottom:1px solid #eef0f6}.minimap svg{display:block;width:100%;height:83px;pointer-events:auto}.mini-viewport{vector-effect:non-scaling-stroke;stroke-width:1.4}
.flow-footnote{padding:9px 18px;font-size:9px;line-height:1.6;flex-shrink:0;color:#a1a8b8}.workflow-page #workflowError:empty{display:none}.workflow-page #workflowError{margin:0;font-size:12px;color:#cf416e}
.flow-panel.expanded{position:fixed;inset:14px;z-index:90;height:auto;min-height:0;box-shadow:0 12px 80px #1c244948}.canvas-expanded{overflow:hidden}.flow-panel.expanded .graph-layout{grid-template-columns:minmax(0,1fr) 280px}.flow-panel.expanded .details-collapsed{grid-template-columns:minmax(0,1fr)}
@media(min-width:1500px){.canvas-help{display:block;width:auto}}
@media(max-width:1150px){.workflow-page{padding:16px 20px}.flow-toolbar{align-items:flex-start;flex-direction:column;gap:10px}.flow-actions{flex-wrap:wrap}.graph-layout{grid-template-columns:minmax(0,1fr) 218px}.flow-info{gap:8px 13px}.flow-info>span:first-child{width:100%}}
@media(max-width:900px){body[data-page="workflows"] .topbar{height:74px}.workflow-page{height:calc(100dvh - 74px);min-height:690px;padding:14px;gap:10px}.workflow-tabs{grid-template-columns:repeat(4,minmax(0,1fr));gap:7px}.workflow-tab{padding:10px 9px}.workflow-tab b{font-size:10px;line-height:1.5}.workflow-tab span{font-size:9px}.graph-layout{grid-template-columns:minmax(0,1fr) 210px}.node-picker-label{width:auto}.node-picker-label select{width:175px}.flow-toolbar p{display:none}.flow-info{flex-direction:row}.flow-panel.expanded{inset:7px}.flow-panel.expanded .graph-layout{grid-template-columns:minmax(0,1fr) 235px}}
@media(max-width:650px){.workflow-page{padding:12px 9px;min-height:780px}.workflow-page .section-heading h2{font-size:18px}.workflow-page .section-heading p{font-size:9px}.workflow-tabs{grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}.workflow-tab{padding:8px 9px}.workflow-tab b{margin-bottom:3px}.flow-toolbar{padding:12px;gap:8px}.flow-actions{gap:5px}.flow-actions .button{font-size:9px;padding:7px}.flow-info{padding:8px 12px}.node-picker-label select{width:145px}.direction-label{font-size:0;gap:0}.direction-label select{font-size:10px;width:78px}.graph-layout,.flow-panel.expanded .graph-layout{grid-template-columns:minmax(0,1fr);grid-template-rows:minmax(240px,1fr) 170px}.node-detail{border:0;border-top:1px solid #e9ecf3;padding:12px 15px;max-height:170px}.node-detail h3{margin:5px 0;font-size:12px}.node-detail p{margin:4px 0}.node-detail dt{margin-top:9px}.details-collapsed,.flow-panel.expanded .graph-layout.details-collapsed{grid-template-rows:1fr}.minimap{right:9px;bottom:51px;width:82px;height:82px;opacity:.85}.minimap>span{font-size:7px;padding:4px 6px}.minimap svg{height:62px}.zoom-tools{left:9px;bottom:10px}.zoom-tools button{padding:8px 9px}.flow-footnote{font-size:8px;padding:7px 12px}}
