.vf-toolbar{display:flex;gap:12px;align-items:center;flex-wrap:wrap;margin-bottom:14px}.vf-toolbar input{flex:1;min-width:180px;font-size:18px;font-weight:700}.vf-toolbar .actions{margin-left:auto}.vf-context{display:flex;gap:14px;align-items:end;flex-wrap:wrap;margin-bottom:12px}.vf-context label{flex:1;min-width:170px}.vf-context .help{flex:2;min-width:220px;margin:0}.vf-layout{display:grid;grid-template-columns:156px minmax(0,1fr) 280px;gap:12px;min-height:650px}.vf-palette,.vf-inspector{background:#fff;border:1px solid #dce5df;border-radius:14px;padding:14px;align-self:stretch;min-width:0}.vf-palette h3,.vf-inspector h3{margin:0 0 12px}.vf-palette button{display:flex;width:100%;gap:8px;align-items:center;text-align:left;margin-bottom:8px;padding:12px 8px;cursor:grab}.vf-palette button:active{cursor:grabbing}.vf-palette small{display:block;font-size:11px;line-height:1.6;color:#647d74}.vf-canvas-wrap{min-width:0;display:flex;flex-direction:column;position:relative;border:1px solid #dce5df;border-radius:14px;overflow:hidden;background:#f9fcfa}.vf-canvas-bar{display:flex;gap:6px;align-items:center;padding:8px;background:white;border-bottom:1px solid #dce5df;flex-wrap:wrap}.vf-canvas-bar span{font-size:12px;color:#677d73;margin-left:auto}.vf-scroll{overflow:auto;flex:1;height:580px;touch-action:pan-x pan-y;background-image:radial-gradient(#bacdc3 1px,transparent 1px);background-size:18px 18px}.vf-sizer{position:relative;width:3200px;height:2400px}.vf-world{position:absolute;width:3200px;height:2400px;transform-origin:0 0}.vf-edges{position:absolute;inset:0;width:3200px;height:2400px;pointer-events:none}.vf-node{position:absolute;width:232px;background:#fff;border:1px solid #cfddd4;border-radius:12px;box-shadow:0 4px 12px #1f513812;overflow:visible}.vf-node.selected{outline:3px solid #37a986;outline-offset:2px}.vf-node.vf-start{border:2px solid #276d55}.vf-node h4{margin:0;background:#e9f1ed;padding:12px 14px;border-radius:11px 11px 0 0;cursor:grab;touch-action:none;font-size:13px}.vf-node.vf-start h4{background:#276d55;color:#fff}.vf-node h4:active{cursor:grabbing}.vf-node-preview{padding:12px 14px;font-size:12px;line-height:1.6;white-space:pre-wrap;overflow-wrap:anywhere;max-height:140px;overflow:hidden;color:#446557;min-height:42px}.vf-port{display:flex;align-items:center;position:relative;font-size:11px;padding:5px 12px 5px 16px;margin-bottom:4px;min-height:30px;gap:7px}.vf-port label{overflow:hidden;white-space:nowrap;text-overflow:ellipsis;flex:1}.vf-port button{width:14px;height:14px;min-height:0;padding:0;border:2px solid #2d8a67;border-radius:50%;background:#fff;position:absolute;right:-7px;top:9px}.vf-port button.connected{background:#2d8a67}.vf-input-port{width:14px;height:14px;min-height:0;padding:0!important;border:2px solid #789f8c!important;border-radius:50%;position:absolute;left:-7px;top:17px;background:white}.vf-connecting .vf-input-port{background:#a8e5bf}.vf-inspector label{display:block;margin-bottom:12px;font-size:12px}.vf-inspector input,.vf-inspector textarea,.vf-inspector select{font-size:13px;width:100%;margin-top:5px}.vf-inspector textarea{min-height:90px}.vf-inspector .help{font-size:11px;line-height:1.6}.vf-inspector hr{border:0;border-top:1px solid #e1e9e4;margin:18px 0}.vf-choice-edit{display:flex;gap:5px;margin-bottom:6px;align-items:center}.vf-choice-edit input{min-width:0;margin:0}.vf-choice-edit button{padding:6px}.vf-hint{font-size:12px;margin:10px 0;color:#597567}.vf-warning{padding:10px;background:#fdf6df;color:#79611a;border-radius:8px;font-size:12px;margin-bottom:10px}.vf-preview-chat{min-height:180px;max-height:50vh;overflow:auto;background:#efece5;padding:18px;border-radius:12px}.vf-preview-bubble{padding:12px 14px;background:white;border-radius:12px;margin:0 25% 12px 0;white-space:pre-wrap;overflow-wrap:anywhere}.vf-preview-bubble.customer{margin:0 0 12px 25%;background:#dff6d5}.vf-preview-bubble img{max-width:100%;max-height:180px;border-radius:8px;display:block;margin-bottom:8px}.vf-preview-choices{display:flex;gap:6px;flex-wrap:wrap;margin-top:10px}.vf-preview-choices button{font-size:12px}.vf-preview-compose{display:flex;gap:8px;margin-top:12px}.vf-preview-compose input{flex:1;min-width:0}.vf-workflow-item{display:flex;align-items:center;gap:10px;flex-wrap:wrap;border-top:1px solid #e4ebe7;padding:15px 0}.vf-workflow-item:first-child{border:0}.vf-workflow-item>div:first-child{flex:1;min-width:180px}.vf-workflow-item small{display:block;margin-top:5px}.vf-status{font-size:12px;color:#657f74}.vf-fullscreen{position:fixed!important;inset:12px!important;z-index:50;background:#f4f8f5;padding:14px;border-radius:12px;overflow:auto}.vf-fullscreen .vf-layout{height:calc(100vh - 155px)}
@media(max-width:1100px){.vf-layout{grid-template-columns:125px minmax(0,1fr);min-height:520px}.vf-inspector{grid-column:1/-1;display:block}.vf-inspector form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.vf-inspector form>hr,.vf-inspector form>.help{grid-column:1/-1}.vf-scroll{height:480px;min-height:480px}.vf-palette{padding:10px}.vf-fullscreen .vf-layout{height:auto}}
@media(max-width:600px){.vf-layout{display:flex;flex-direction:column;gap:10px;min-height:0}.vf-palette{display:flex;overflow-x:auto;gap:6px;padding:8px;flex-wrap:nowrap;align-items:center}.vf-palette h3,.vf-palette small{display:none}.vf-palette button{width:auto;min-width:max-content;margin:0;padding:10px;cursor:pointer}.vf-scroll{height:420px;min-height:420px;flex:none}.vf-inspector form{display:block}.vf-toolbar{gap:8px}.vf-toolbar .actions{width:100%;justify-content:flex-start;flex-wrap:wrap}.vf-context label{min-width:130px}.vf-context .help{flex-basis:100%}.vf-fullscreen{inset:0!important;border-radius:0;padding:10px}.vf-preview-bubble{margin-right:10%}.vf-preview-bubble.customer{margin-left:10%}}
/* The viewport pans independently of block coordinates; blocks never capture on a replaced heading. */
.vf-canvas-wrap{height:650px;min-height:0}.vf-scroll{position:relative;overflow:hidden;min-height:0;height:580px;flex:1;touch-action:none;cursor:grab;overscroll-behavior:contain}.vf-sizer{position:absolute;inset:0;width:100%;height:100%;pointer-events:none}.vf-world{left:0;top:0;width:1px;height:1px;overflow:visible;pointer-events:none;will-change:transform}.vf-edges{width:1px;height:1px;overflow:visible;z-index:0}.vf-node{z-index:1;pointer-events:auto;cursor:grab;touch-action:none;user-select:none}.vf-node h4{padding-right:40px;user-select:none;touch-action:none}.vf-node-preview,.vf-port label{cursor:grab;touch-action:none}.vf-start h4{padding-right:14px}.vf-node.selected{z-index:2}.vf-node.vf-dragging{z-index:4;cursor:grabbing}.vf-node.vf-dragging h4,.vf-node.vf-dragging .vf-node-preview{cursor:grabbing}.vf-input-port,.vf-port button{width:24px;height:24px;min-width:24px;padding:0;min-height:24px;cursor:crosshair;touch-action:none;z-index:5;box-shadow:0 0 0 3px #fff}.vf-input-port{left:-12px;top:12px}.vf-port button{right:-12px;top:4px}.vf-connecting .vf-node{cursor:crosshair}.vf-node.vf-connect-target{outline:3px solid #16a46f;outline-offset:5px;background:#f3fff6}.vf-node-delete{position:absolute;right:5px;top:5px;width:30px;height:30px;min-height:30px;padding:0;border:0;border-radius:6px;background:transparent;font-size:20px;font-weight:400;color:#708277;z-index:5;cursor:pointer}.vf-node-delete:hover{color:#a63838;background:#ffeaea}.vf-pan-mode .vf-node,.vf-pan-mode .vf-node h4,.vf-pan-mode .vf-node-preview{cursor:grab}.vf-gesture-active{cursor:grabbing}.vf-canvas-bar button.active{background:#e2f2e8;border-color:#2c8b66;color:#24664d}.vf-fullscreen .vf-canvas-wrap{height:100%;min-height:450px}
@media(max-width:1100px){.vf-canvas-wrap{height:560px}.vf-scroll{height:480px;min-height:0}.vf-fullscreen .vf-canvas-wrap{height:calc(100dvh - 180px);min-height:400px}}
@media(max-width:600px){.vf-canvas-wrap{height:470px}.vf-scroll{height:420px;min-height:0;flex:1}.vf-input-port,.vf-port button{width:28px;height:28px;min-width:28px;min-height:28px}.vf-input-port{left:-14px;top:10px}.vf-port button{right:-14px;top:2px}.vf-node-delete{width:32px;height:32px}.vf-canvas-bar span{flex-basis:100%;margin-left:0}.vf-fullscreen .vf-canvas-wrap{height:calc(100dvh - 200px);min-height:360px}}
