.workflow-builder-dialog{width:min(1380px,calc(100vw - 40px))!important;max-width:none!important;height:min(920px,calc(100dvh - 40px));max-height:calc(100dvh - 40px);padding:0!important;border-radius:14px;color:#293548;overflow:hidden}
.wfb-context-menu{position:fixed;z-index:30;width:230px;max-width:calc(100vw - 36px);padding:6px;background:#fff;border:1px solid #dedee8;border-radius:9px;box-shadow:0 8px 28px #29344b2b}.wfb-menu-title{padding:8px 10px;color:#7f879a;font-size:10px;font-weight:600;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;border-bottom:1px solid #edf0f5;margin-bottom:4px}.wfb-context-menu [role=menuitem]{display:block;width:100%;border:0;background:transparent;text-align:left;padding:10px;font-size:12px;border-radius:5px;color:#535b70}.wfb-context-menu [role=menuitem]:hover,.wfb-context-menu [role=menuitem]:focus-visible{background:#f2eef7;outline:none}.wfb-context-menu [role=menuitem].wfb-menu-delete{color:#b24957}.wfb-context-menu [role=menuitem].wfb-menu-delete:hover,.wfb-context-menu [role=menuitem].wfb-menu-delete:focus-visible{background:#fdf0f1}
.wfb-connection{outline:none;cursor:pointer}.wfb-connections .wfb-connection-hit{stroke:transparent;stroke-width:22;pointer-events:stroke;vector-effect:non-scaling-stroke}.wfb-connection:hover .wfb-connection-line,.wfb-connection.selected .wfb-connection-line{stroke:#9470b9;stroke-width:3}.wfb-connection:focus-visible .wfb-connection-line{stroke:#6f469b;stroke-width:4}.wfb-node.disconnected{border-style:dashed;border-color:#cb9470}.wfb-node.disconnected>small{color:#ac724c}.wfb-type-icon.barrier{background:#e5edf9;color:#5578aa}
.wf-barrier-inputs{padding:0;margin:12px 0 0;list-style:none;display:grid;gap:6px}.wf-barrier-inputs li{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:6px 9px;background:#f4f6fa;border-radius:5px;font-size:10px;color:#7c8698}.wf-barrier-inputs li>span:first-child{overflow-wrap:anywhere}.wf-barrier-inputs li>span:last-child{flex-shrink:0}.wf-barrier-inputs .completed{color:#458166}.wf-barrier-inputs .failed,.wf-barrier-inputs .cancelled{color:#b16e60}
.wf-result-label{border:0;background:#e8f3ec;color:#458166;border-radius:4px;padding:2px 5px;font-size:9px;font-weight:650;letter-spacing:.5px}
.workflow-builder-dialog #dialog-form{display:flex;flex-direction:column;height:100%;min-height:0}.workflow-builder-dialog .dialog-header{padding:18px 24px;margin:0!important;border-bottom:1px solid #e5e8ef;flex-shrink:0}.workflow-builder-dialog .dialog-header h2{font-size:16px;margin:0}.workflow-builder-dialog #dialog-body{display:flex;flex-direction:column;flex:1;min-height:0;overflow:hidden;max-height:none}.workflow-builder-dialog .dialog-actions{padding:13px 24px;margin:0!important;border-top:1px solid #e5e8ef;background:#fff;flex-shrink:0}.workflow-builder-dialog .dialog-actions button{font-size:12px}
.workflow-builder-dialog [hidden]{display:none!important}.workflow-builder-dialog button:focus-visible{outline:2px solid #7359ab;outline-offset:3px}.workflow-builder-dialog button.primary{background:#7051a0;border-color:#7051a0}.workflow-builder-dialog button.primary:hover{background:#5d4388}.workflow-builder-dialog input:focus,.workflow-builder-dialog textarea:focus,.workflow-builder-dialog select:focus{border-color:#947abe;box-shadow:0 0 0 3px #eee9f6}
.wfb-toolbar{display:flex;align-items:center;gap:18px;padding:12px 24px;background:#fff;border-bottom:1px solid #e5e8ef;flex-shrink:0}.wfb-name-field{flex:1;min-width:0}.wfb-name-field label{font-size:9px;text-transform:uppercase;letter-spacing:.8px;margin:0 0 4px;color:#8993a2}.wfb-name-field input{width:100%;font-size:15px;font-weight:600;padding:6px 0;border:0;box-shadow:none!important;background:none}.wfb-name-field input::placeholder{font-weight:400;color:#a0a8b5}.wfb-tools{display:flex;gap:6px;align-items:center;flex-shrink:0}.wfb-tools button,.wfb-tools select{font-size:11px;padding:8px 10px;border-color:#e2e5ec}.wfb-tools button[title]{font-size:18px;padding:3px 9px}.wfb-preview-button{background:#f1edf7;color:#6a4a95;border-color:#e8dff4!important}
.wfb-layout{display:grid;grid-template-columns:minmax(0,1fr) 355px;flex:1;min-height:0}.wfb-canvas{position:relative;min-width:0;min-height:0;display:flex;flex-direction:column;background:#f6f7fa;background-image:radial-gradient(#d9dce6 .8px,transparent .8px);background-size:18px 18px}.wfb-canvas-header{display:flex;justify-content:space-between;align-items:center;gap:14px;padding:13px 18px;z-index:1;background:#f6f7faee;border-bottom:1px solid #e7e9f0;flex-shrink:0}.wfb-canvas-header>span{font-size:10px;color:#8893a3;line-height:1.6}.wfb-canvas-header>button{white-space:nowrap;font-size:11px;padding:7px 10px;background:white;color:#645177;border-color:#ddd6e7}.wfb-viewport{min-width:0;min-height:0;overflow:auto;flex:1;cursor:grab;overscroll-behavior:contain;touch-action:pan-x pan-y}.wfb-viewport:active{cursor:grabbing}.wfb-surface{position:relative;margin:auto;min-width:100%}.wfb-world{position:relative;transform-origin:top left}.wfb-connections{position:absolute;top:0;left:0;overflow:visible;pointer-events:none}.wfb-connections path{fill:none;stroke:#c2c8d7;stroke-width:2}.wfb-connections path.selected{stroke:#9073b7;stroke-width:2.5}
.wfb-node-wrap{position:absolute;width:240px}.wfb-node{display:block;text-align:left;width:240px;height:128px;padding:13px 15px;border:1px solid #d9dfeb;background:white;border-radius:10px;box-shadow:0 3px 8px #26334a08;cursor:pointer}.wfb-node:hover{background:#fff;border-color:#a591c0;box-shadow:0 4px 12px #3925530e}.wfb-node.selected{border:2px solid #8b6bb6;padding:12px 14px;box-shadow:0 0 0 4px #e6ddf14d}.wfb-node.drop-target{background:#eee5fa;border:2px dashed #9470be}.wfb-node-heading{display:flex;align-items:center;gap:8px;margin-bottom:10px}.wfb-type-icon{width:25px;height:25px;border-radius:6px;background:#f0eafa;color:#8151a9;display:inline-grid;place-items:center;flex-shrink:0;font-size:17px;font-weight:500}.wfb-type-icon.trigger{background:#fbeedc;color:#b58743}.wfb-type-icon.message{background:#e5effb;color:#517fb1}.wfb-type-icon.delay{background:#e4f2f2;color:#4a9293}.wfb-type-icon.complete{background:#e4f2e9;color:#36805c}.wfb-node-type{font-size:9px;letter-spacing:.4px;text-transform:uppercase;color:#8d91a1}.wfb-node-check{margin-left:auto;color:#63a57d;font-size:13px}.wfb-node-check.pending{color:#c5a565}.wfb-node>strong{display:block;font-size:12px;font-weight:650;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:#3d3c51}.wfb-node-summary{display:block;font-size:10px;line-height:1.5;margin-top:6px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:#7e8395}.wfb-node>small{display:block;font-size:9px;color:#959cac;margin-top:3px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.wfb-node-actions{display:flex;justify-content:center;gap:5px;margin-top:8px}.wfb-node-actions button{border:1px solid #dce0e9;color:#8890a3;background:#fafbfd;padding:0;width:22px;height:22px;border-radius:50%;font-size:13px;line-height:1}.wfb-node-actions button:hover{border-color:#9c83bd;background:#f0e9f8;color:#71518f}
.wfb-zoom{position:absolute;bottom:15px;left:16px;display:flex;align-items:center;gap:3px;background:white;border:1px solid #e2e6ee;border-radius:8px;box-shadow:0 2px 10px #27344c08;padding:3px;z-index:2}.wfb-zoom button{border:0;padding:5px 10px;font-size:13px}.wfb-zoom span{font-size:10px;color:#8a93a5;min-width:38px;text-align:center}.wfb-zoom button:last-child{border-left:1px solid #e9eaf0;border-radius:0;font-size:10px}.wfb-picker{position:absolute;right:16px;top:63px;width:285px;max-width:calc(100% - 32px);z-index:5;background:white;border:1px solid #dedee8;border-radius:12px;box-shadow:0 14px 40px #29344b24;padding:10px}.wfb-picker-heading{display:flex;align-items:center;justify-content:space-between;font-size:12px;padding:0 6px 8px}.wfb-picker-heading button{border:0;background:none;font-size:20px;padding:0 3px}.wfb-picker-choice{display:flex;align-items:center;text-align:left;gap:12px;width:100%;padding:12px 9px;border:0;background:none}.wfb-picker-choice:hover{background:#f6f3fa}.wfb-picker-choice strong{display:block;font-size:12px;font-weight:600}.wfb-picker-choice small{display:block;font-size:10px;color:#8490a3;line-height:1.6;margin-top:4px}
.wfb-inspector{overflow:auto;background:white;border-left:1px solid #e1e5ed;min-width:0}.wfb-inspector-heading{display:flex;align-items:center;gap:10px;padding:20px 22px;border-bottom:1px solid #ebedf2;background:#fff;position:sticky;top:0;z-index:2}.wfb-inspector-heading h3{font-size:14px;font-weight:650;margin:0}.wfb-section{padding:18px 22px;border-bottom:1px solid #eceef3}.wfb-section h4{font-size:11px;font-weight:650;letter-spacing:.1px;margin:0 0 13px;color:#575b70}.wfb-section input:not([type=checkbox]),.wfb-section select,.wfb-section textarea{width:100%;font-size:12px;padding:9px 10px;border-color:#dfe2ea;border-radius:6px;min-width:0}.wfb-section label{font-size:10px;margin:13px 0 6px;color:#7a8394}.wfb-section textarea{line-height:1.65;min-height:120px}.wfb-section .wf-hint{font-size:10px;line-height:1.7}.wfb-section button{font-size:10px;padding:6px 9px}.wfb-section .wf-agent-picker{max-height:215px;margin-top:7px}.wfb-section .wf-agent-choice{font-size:11px}.wfb-section .wf-agent-choice input{accent-color:#7954a7}.wfb-step-tools{display:flex;justify-content:flex-end;gap:8px;margin-top:12px}.wfb-step-tools button{border:0;color:#818a9d;background:#f7f8fb;font-size:10px}.wfb-step-tools .wfb-remove{color:#ad707c}.wfb-dependencies{display:grid;gap:5px;max-height:210px;overflow:auto}.wfb-dependencies label{display:flex;gap:8px;align-items:center;margin:0;font-size:11px;padding:7px 8px;background:#fafafe;border:1px solid #eaecf4;border-radius:5px;font-weight:400}.wfb-dependencies input{width:14px;height:14px;margin:0;accent-color:#7954a7}.wfb-dependencies span{overflow-wrap:anywhere}.wfb-variables{display:flex;flex-wrap:wrap;gap:5px}.wfb-variables button{background:#f3eff9;border:1px solid #e7dff1;color:#785995;padding:5px 7px;font-size:9px;max-width:100%;overflow-wrap:anywhere}.wfb-advanced{margin-top:18px}.wfb-advanced summary{font-size:10px;color:#798597;cursor:pointer}.wfb-next-actions{padding:20px 22px;display:grid;gap:8px}.wfb-next-actions button{font-size:11px;padding:9px}.wfb-next-actions button:not(.primary){border:0;color:#867292;background:#f8f6fa}
.wfb-schedule-preview{position:static;margin:15px 0 0;padding:13px;border-radius:7px;background:#f7f5fb}.wfb-schedule-preview strong{font-size:10px;color:#847099}.wfb-schedule-preview .wf-next-runs{font-size:10px;line-height:1.6}.wfb-schedule-preview .wf-hint{margin-bottom:0;color:#9b91a8}.wfb-weekdays{display:flex;gap:5px;margin-top:6px}.wfb-weekdays label{position:relative;margin:0;flex:1;cursor:pointer}.wfb-weekdays input{position:absolute;opacity:0;inset:0;width:100%;height:100%;margin:0;cursor:pointer}.wfb-weekdays span{display:block;border:1px solid #e1e3ec;background:#fafafe;text-align:center;font-size:10px;padding:7px 0;border-radius:5px}.wfb-weekdays input:checked+span{background:#ede5f7;border-color:#baa4d2;color:#785195}.wfb-weekdays input:focus-visible+span{outline:2px solid #8767af}.wfb-input-row{background:#fafafe;border:1px solid #e6e5ef;border-radius:7px;padding:10px;margin-bottom:10px}.wfb-input-row label:first-child{margin-top:0}.wfb-input-options{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:9px}.wfb-input-options label{display:flex;align-items:center;gap:6px;margin:0}.wfb-input-options input{margin:0;width:14px;height:14px;accent-color:#7954a7}.wfb-input-options button{border:0;color:#a57483;background:none}.wfb-message-preview,.wfb-api-example{white-space:pre-wrap;overflow-wrap:anywhere;word-break:break-word;background:#f7f8fc;border:1px solid #eceef5;border-radius:6px;padding:12px;font-size:10px;line-height:1.75;color:#778295;margin:14px 0}.wfb-api-example{font-size:9px}.wfb-preview-trigger{font-size:11px;color:#705e91}.wfb-statusbar{display:flex;align-items:center;gap:16px;padding:10px 24px;border-top:1px solid #e3e6ed;background:#fff;color:#8591a3;flex-shrink:0;font-size:10px;line-height:1.7}.wfb-statusbar>span:first-child{color:#78638f;font-weight:600}.wfb-paused{display:flex;align-items:center;gap:7px;margin:0 0 0 auto;white-space:nowrap;font-size:10px}.wfb-paused input{width:14px;height:14px;margin:0;accent-color:#7954a7}.workflow-builder-dialog .wf-form-error{margin:0;border-radius:0;border:0;border-top:1px solid #eeddd8;padding:9px 24px;font-size:11px;flex-shrink:0;max-height:90px;overflow:auto}
.wf-graph-flow{display:flex;gap:9px;align-items:stretch;overflow-x:auto;padding-bottom:3px}.wf-graph-flow .wf-step{min-width:180px;max-width:260px;flex:1}.wf-graph-flow .wf-step>div{display:flex;align-items:flex-start}.wf-graph-flow .wf-step small{font-size:9px}.wf-step-instructions{padding:14px 0;border-bottom:1px solid #edf0f6;white-space:normal}.wf-step-instructions:first-child{padding-top:0}.wf-step-instructions:last-child{border:0;padding-bottom:0}.wf-step-instructions>strong{font-size:12px}.wf-step-instructions>p{white-space:pre-wrap;font-size:12px}.wf-run-steps{display:grid;gap:10px;margin-top:10px}.wf-run-step{padding:12px 15px;border:1px solid #e6e9f0;border-radius:7px;background:#fdfdff;min-width:0}.wf-run-step-heading{display:flex;gap:12px;align-items:center;justify-content:space-between;flex-wrap:wrap}.wf-run-step .wf-deliveries{margin:12px 0}.wf-run-step>button{font-size:10px}.wf-run-step pre{white-space:pre-wrap;overflow-wrap:anywhere;font-size:11px;line-height:1.8;max-height:260px;overflow:auto;padding:12px;background:#f5f7fb;border-radius:5px;color:#67768b}.wf-run-inputs{font-size:11px;line-height:1.8;white-space:pre-wrap;overflow-wrap:anywhere;padding:12px;background:#f7f8fc;border-radius:6px}
@media(max-width:1050px){.workflow-builder-dialog{width:calc(100vw - 24px)!important;height:calc(100dvh - 24px);max-height:calc(100dvh - 24px)}.wfb-layout{grid-template-columns:minmax(0,1fr) 310px}.wfb-inspector-heading,.wfb-section,.wfb-next-actions{padding-left:17px;padding-right:17px}.wfb-toolbar{padding:12px 18px}.wfb-canvas-header>span{max-width:220px;font-size:9px}.wfb-statusbar>span:nth-child(2){display:none}.wf-graph-flow .wf-step{min-width:170px}}
@media(max-width:700px){.workflow-builder-dialog{width:calc(100vw - 12px)!important;height:calc(100dvh - 16px);max-height:calc(100dvh - 16px);border-radius:10px}.workflow-builder-dialog .dialog-header{padding:12px 15px}.workflow-builder-dialog .dialog-header h2{font-size:14px}.workflow-builder-dialog .dialog-actions{padding:10px 15px}.wfb-toolbar{padding:10px 15px;gap:8px;flex-wrap:wrap}.wfb-name-field{flex-basis:100%}.wfb-name-field input{font-size:14px;padding:5px 0}.wfb-tools{width:100%;gap:5px}.wfb-tools select{flex:1;min-width:0}.wfb-preview-button{font-size:10px!important}.wfb-layout{display:flex;flex-direction:column;overflow:auto}.wfb-canvas{flex:0 0 275px;min-height:275px}.wfb-canvas-header{padding:9px 12px;gap:8px}.wfb-canvas-header>span{font-size:9px}.wfb-canvas-header>button{font-size:10px;padding:5px 8px}.wfb-inspector{overflow:visible;border-left:0;border-top:1px solid #e0e4eb;flex-shrink:0}.wfb-inspector-heading{position:static;padding:15px 18px}.wfb-inspector-heading h3{font-size:13px}.wfb-section{padding:16px 18px}.wfb-section textarea{min-height:125px}.wfb-statusbar{padding:7px 15px;gap:8px;font-size:9px}.wfb-paused{font-size:9px}.wfb-zoom{left:10px;bottom:10px}.workflow-builder-dialog .wf-form-error{padding:8px 15px;font-size:10px}.wf-graph-flow{flex-direction:column}.wf-graph-flow .wf-step{max-width:none;min-width:0}.wf-graph-flow .wf-step>div{width:100%}}
