.sidebar{width:250px;height:100vh;background:#f9fafb;border-right:1px solid #e5e7eb;display:flex;flex-direction:column;overflow-y:auto}.sidebar-header{padding:20px;border-bottom:1px solid #e5e7eb;background:#fff}.sidebar-header h2{margin:0 0 8px;font-size:20px;font-weight:600;color:#1f2937}.sidebar-subtitle{margin:0;font-size:12px;color:#6b7280}.node-palette{padding:16px;display:flex;flex-direction:column;gap:12px}.palette-item{display:flex;align-items:center;gap:12px;padding:12px 16px;background:#fff;border:2px solid;border-radius:8px;cursor:grab;transition:all .2s;-webkit-user-select:none;user-select:none}.palette-item:hover{transform:translateY(-2px);box-shadow:0 4px 12px #0000001a}.palette-item:active{cursor:grabbing;transform:translateY(0)}.palette-icon{font-size:20px;font-weight:700}.palette-label{font-size:14px;font-weight:500;color:#1f2937}.react-flow{direction:ltr}.react-flow__container{position:absolute;width:100%;height:100%;top:0;left:0}.react-flow__pane{z-index:1;cursor:-webkit-grab;cursor:grab}.react-flow__pane.selection{cursor:pointer}.react-flow__pane.dragging{cursor:-webkit-grabbing;cursor:grabbing}.react-flow__viewport{transform-origin:0 0;z-index:2;pointer-events:none}.react-flow__renderer{z-index:4}.react-flow__selection{z-index:6}.react-flow__nodesselection-rect:focus,.react-flow__nodesselection-rect:focus-visible{outline:none}.react-flow .react-flow__edges{pointer-events:none;overflow:visible}.react-flow__edge-path,.react-flow__connection-path{stroke:#b1b1b7;stroke-width:1;fill:none}.react-flow__edge{pointer-events:visibleStroke;cursor:pointer}.react-flow__edge.animated path{stroke-dasharray:5;-webkit-animation:dashdraw .5s linear infinite;animation:dashdraw .5s linear infinite}.react-flow__edge.animated path.react-flow__edge-interaction{stroke-dasharray:none;-webkit-animation:none;animation:none}.react-flow__edge.inactive{pointer-events:none}.react-flow__edge.selected,.react-flow__edge:focus,.react-flow__edge:focus-visible{outline:none}.react-flow__edge.selected .react-flow__edge-path,.react-flow__edge:focus .react-flow__edge-path,.react-flow__edge:focus-visible .react-flow__edge-path{stroke:#555}.react-flow__edge-textwrapper{pointer-events:all}.react-flow__edge-textbg{fill:#fff}.react-flow__edge .react-flow__edge-text{pointer-events:none;-webkit-user-select:none;-moz-user-select:none;user-select:none}.react-flow__connection{pointer-events:none}.react-flow__connection .animated{stroke-dasharray:5;-webkit-animation:dashdraw .5s linear infinite;animation:dashdraw .5s linear infinite}.react-flow__connectionline{z-index:1001}.react-flow__nodes{pointer-events:none;transform-origin:0 0}.react-flow__node{position:absolute;-webkit-user-select:none;-moz-user-select:none;user-select:none;pointer-events:all;transform-origin:0 0;box-sizing:border-box;cursor:-webkit-grab;cursor:grab}.react-flow__node.dragging{cursor:-webkit-grabbing;cursor:grabbing}.react-flow__nodesselection{z-index:3;transform-origin:left top;pointer-events:none}.react-flow__nodesselection-rect{position:absolute;pointer-events:all;cursor:-webkit-grab;cursor:grab}.react-flow__handle{position:absolute;pointer-events:none;min-width:5px;min-height:5px;width:6px;height:6px;background:#1a192b;border:1px solid white;border-radius:100%}.react-flow__handle.connectionindicator{pointer-events:all;cursor:crosshair}.react-flow__handle-bottom{top:auto;left:50%;bottom:-4px;transform:translate(-50%)}.react-flow__handle-top{left:50%;top:-4px;transform:translate(-50%)}.react-flow__handle-left{top:50%;left:-4px;transform:translateY(-50%)}.react-flow__handle-right{right:-4px;top:50%;transform:translateY(-50%)}.react-flow__edgeupdater{cursor:move;pointer-events:all}.react-flow__panel{position:absolute;z-index:5;margin:15px}.react-flow__panel.top{top:0}.react-flow__panel.bottom{bottom:0}.react-flow__panel.left{left:0}.react-flow__panel.right{right:0}.react-flow__panel.center{left:50%;transform:translate(-50%)}.react-flow__attribution{font-size:10px;background:#ffffff80;padding:2px 3px;margin:0}.react-flow__attribution a{text-decoration:none;color:#999}@-webkit-keyframes dashdraw{0%{stroke-dashoffset:10}}@keyframes dashdraw{0%{stroke-dashoffset:10}}.react-flow__edgelabel-renderer{position:absolute;width:100%;height:100%;pointer-events:none;-webkit-user-select:none;-moz-user-select:none;user-select:none}.react-flow__edge.updating .react-flow__edge-path{stroke:#777}.react-flow__edge-text{font-size:10px}.react-flow__node.selectable:focus,.react-flow__node.selectable:focus-visible{outline:none}.react-flow__node-default,.react-flow__node-input,.react-flow__node-output,.react-flow__node-group{padding:10px;border-radius:3px;width:150px;font-size:12px;color:#222;text-align:center;border-width:1px;border-style:solid;border-color:#1a192b;background-color:#fff}.react-flow__node-default.selectable:hover,.react-flow__node-input.selectable:hover,.react-flow__node-output.selectable:hover,.react-flow__node-group.selectable:hover{box-shadow:0 1px 4px 1px #00000014}.react-flow__node-default.selectable.selected,.react-flow__node-default.selectable:focus,.react-flow__node-default.selectable:focus-visible,.react-flow__node-input.selectable.selected,.react-flow__node-input.selectable:focus,.react-flow__node-input.selectable:focus-visible,.react-flow__node-output.selectable.selected,.react-flow__node-output.selectable:focus,.react-flow__node-output.selectable:focus-visible,.react-flow__node-group.selectable.selected,.react-flow__node-group.selectable:focus,.react-flow__node-group.selectable:focus-visible{box-shadow:0 0 0 .5px #1a192b}.react-flow__node-group{background-color:#f0f0f040}.react-flow__nodesselection-rect,.react-flow__selection{background:#0059dc14;border:1px dotted rgba(0,89,220,.8)}.react-flow__nodesselection-rect:focus,.react-flow__nodesselection-rect:focus-visible,.react-flow__selection:focus,.react-flow__selection:focus-visible{outline:none}.react-flow__controls{box-shadow:0 0 2px 1px #00000014}.react-flow__controls-button{border:none;background:#fefefe;border-bottom:1px solid #eee;box-sizing:content-box;display:flex;justify-content:center;align-items:center;width:16px;height:16px;cursor:pointer;-webkit-user-select:none;-moz-user-select:none;user-select:none;padding:5px}.react-flow__controls-button:hover{background:#f4f4f4}.react-flow__controls-button svg{width:100%;max-width:12px;max-height:12px}.react-flow__controls-button:disabled{pointer-events:none}.react-flow__controls-button:disabled svg{fill-opacity:.4}.react-flow__minimap{background-color:#fff}.react-flow__minimap svg{display:block}.react-flow__resize-control{position:absolute}.react-flow__resize-control.left,.react-flow__resize-control.right{cursor:ew-resize}.react-flow__resize-control.top,.react-flow__resize-control.bottom{cursor:ns-resize}.react-flow__resize-control.top.left,.react-flow__resize-control.bottom.right{cursor:nwse-resize}.react-flow__resize-control.bottom.left,.react-flow__resize-control.top.right{cursor:nesw-resize}.react-flow__resize-control.handle{width:4px;height:4px;border:1px solid #fff;border-radius:1px;background-color:#3367d9;transform:translate(-50%,-50%)}.react-flow__resize-control.handle.left{left:0;top:50%}.react-flow__resize-control.handle.right{left:100%;top:50%}.react-flow__resize-control.handle.top{left:50%;top:0}.react-flow__resize-control.handle.bottom{left:50%;top:100%}.react-flow__resize-control.handle.top.left,.react-flow__resize-control.handle.bottom.left{left:0}.react-flow__resize-control.handle.top.right,.react-flow__resize-control.handle.bottom.right{left:100%}.react-flow__resize-control.line{border-color:#3367d9;border-width:0;border-style:solid}.react-flow__resize-control.line.left,.react-flow__resize-control.line.right{width:1px;transform:translate(-50%);top:0;height:100%}.react-flow__resize-control.line.left{left:0;border-left-width:1px}.react-flow__resize-control.line.right{left:100%;border-right-width:1px}.react-flow__resize-control.line.top,.react-flow__resize-control.line.bottom{height:1px;transform:translateY(-50%);left:0;width:100%}.react-flow__resize-control.line.top{top:0;border-top-width:1px}.react-flow__resize-control.line.bottom{border-bottom-width:1px;top:100%}.base-node{padding:12px 16px;border-radius:8px;border:2px solid;background:#fff;box-shadow:0 2px 8px #0000001a;min-width:120px;text-align:center;transition:all .2s;cursor:pointer}.base-node:hover{box-shadow:0 4px 12px #00000026;transform:translateY(-2px);cursor:pointer}.base-node.selected{border-width:3px;box-shadow:0 4px 16px #6366f14d}.base-node.has-error{border-color:#ef4444!important;border-width:3px!important;box-shadow:0 0 0 2px #ef444433;animation:errorPulse 2s infinite}.base-node.has-warning{border-color:#f59e0b!important;border-width:3px!important;box-shadow:0 0 0 2px #f59e0b33}@keyframes errorPulse{0%,to{box-shadow:0 0 0 2px #ef444433}50%{box-shadow:0 0 0 4px #ef44444d}}.base-node.start{background:linear-gradient(135deg,#10b981,#059669);color:#fff;border-color:#059669}.base-node.task{background:linear-gradient(135deg,#3b82f6,#2563eb);color:#fff;border-color:#2563eb}.base-node.approval{background:linear-gradient(135deg,#f59e0b,#d97706);color:#fff;border-color:#d97706}.base-node.automatedStep{background:linear-gradient(135deg,#8b5cf6,#7c3aed);color:#fff;border-color:#7c3aed}.base-node.end{background:linear-gradient(135deg,#ef4444,#dc2626);color:#fff;border-color:#dc2626}.node-content{display:flex;flex-direction:column;align-items:center;gap:4px;position:relative}.node-icon{font-size:20px;margin-bottom:4px}.node-label{font-weight:600;font-size:14px}.node-title{font-size:12px;opacity:.9;margin-top:4px;max-width:150px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.node-handle{width:12px!important;height:12px!important;background:#fff!important;border:2px solid #6366f1!important;border-radius:50%!important;cursor:crosshair!important;transition:all .2s!important;opacity:.9!important;position:absolute!important}.node-handle:hover{width:16px!important;height:16px!important;opacity:1!important;background:#6366f1!important;border-color:#fff!important;box-shadow:0 0 10px #6366f1b3!important;z-index:10!important}.node-error-badge{position:absolute;top:-8px;right:-8px;width:20px;height:20px;border-radius:50%;display:flex;align-items:center;justify-content:center;font-size:12px;font-weight:700;color:#fff;z-index:100;box-shadow:0 2px 6px #0000004d}.node-error-badge.error{background:#ef4444;border:2px solid white}.node-error-badge.warning{background:#f59e0b;border:2px solid white}.workflow-canvas{flex:1;height:90vh;position:relative;outline:none;cursor:default}.workflow-canvas :global(.react-flow__edge){stroke-width:2px;cursor:pointer}.workflow-canvas :global(.react-flow__edge:hover){stroke-width:3px}.workflow-canvas :global(.react-flow__edge.selected){stroke-width:3px;stroke:#6366f1}.workflow-canvas :global(.react-flow__edge-path){stroke:#b1b5c0;transition:stroke-width .2s}.workflow-canvas :global(.react-flow__edge-path.selected){stroke:#6366f1}.workflow-canvas :global(.react-flow__edge.selected .react-flow__edge-path){stroke:#6366f1}.workflow-canvas :global(.react-flow__node){cursor:pointer}.workflow-canvas :global(.react-flow__handle){width:12px!important;height:12px!important;border:2px solid #6366f1!important;background:#fff!important;border-radius:50%!important;cursor:crosshair!important;opacity:.9!important;transition:all .2s!important;min-width:12px!important;min-height:12px!important}.workflow-canvas :global(.react-flow__handle:hover){width:16px!important;height:16px!important;opacity:1!important;background:#6366f1!important;border-color:#fff!important;box-shadow:0 0 10px #6366f1b3!important;z-index:10!important}.workflow-canvas :global(.react-flow__handle.connectable){cursor:crosshair!important}.workflow-canvas :global(.react-flow__handle.connecting){background:#10b981!important;border-color:#fff!important}.workflow-canvas :global(.react-flow__pane){cursor:default}.form-container{display:flex;flex-direction:column;gap:20px}.form-group{display:flex;flex-direction:column;gap:8px}.form-group label{font-size:14px;font-weight:500;color:#374151}.form-group input[type=text],.form-group input[type=email],.form-group input[type=date],.form-group input[type=number],.form-group textarea,.form-group select{padding:10px 12px;border:1px solid #d1d5db;border-radius:6px;font-size:14px;transition:border-color .2s}.form-group input:focus,.form-group textarea:focus,.form-group select:focus{outline:none;border-color:#6366f1;box-shadow:0 0 0 3px #6366f11a}.form-group textarea{resize:vertical;font-family:inherit}.form-group small{font-size:12px;color:#6b7280;margin-top:-4px}.form-group-header{display:flex;justify-content:space-between;align-items:center}.add-button{background:#6366f1;color:#fff;border:none;padding:6px 12px;border-radius:4px;font-size:12px;cursor:pointer;font-weight:500}.add-button:hover{background:#4f46e5}.key-value-row{display:flex;gap:8px;margin-bottom:8px}.key-value-row input{flex:1}.remove-button{background:#ef4444;color:#fff;border:none;padding:8px 12px;border-radius:4px;cursor:pointer;font-size:16px;width:36px;display:flex;align-items:center;justify-content:center}.remove-button:hover{background:#dc2626}.checkbox-label{display:flex;align-items:center;gap:8px;cursor:pointer}.checkbox-label input[type=checkbox]{width:18px;height:18px;cursor:pointer}.node-form-panel{position:absolute;right:0;top:0;width:350px;height:100%;background:#fff;box-shadow:-2px 0 8px #0000001a;display:flex;flex-direction:column;z-index:10}.form-header{padding:16px 20px;border-bottom:1px solid #e5e7eb;display:flex;justify-content:space-between;align-items:center}.header-actions{display:flex;gap:8px;align-items:center}.delete-button{background:none;border:none;font-size:18px;cursor:pointer;padding:4px 8px;border-radius:4px;transition:background .2s}.delete-button:hover{background:#fee2e2}.form-header h3{margin:0;font-size:18px;font-weight:600;color:#1f2937;text-transform:capitalize}.form-content{flex:1;overflow-y:auto;padding:20px}.testing-panel-overlay{position:fixed;top:0;left:0;right:0;bottom:0;background:#00000080;display:flex;align-items:center;justify-content:center;z-index:1000;animation:fadeIn .2s ease-in}@keyframes fadeIn{0%{opacity:0}to{opacity:1}}.testing-panel{position:relative;width:90%;max-width:800px;max-height:85vh;background:#fff;box-shadow:0 10px 40px #0003;border-radius:12px;display:flex;flex-direction:column;z-index:1001;animation:slideUp .3s ease-out;overflow:hidden}@keyframes slideUp{0%{transform:translateY(20px);opacity:0}to{transform:translateY(0);opacity:1}}.testing-header{padding:16px 20px;border-bottom:1px solid #e5e7eb;display:flex;justify-content:space-between;align-items:center}.testing-header h3{margin:0;font-size:18px;font-weight:600;color:#1f2937}.close-button{background:none;border:none;font-size:24px;cursor:pointer;color:#6b7280;padding:0;width:28px;height:28px;display:flex;align-items:center;justify-content:center;border-radius:4px}.close-button:hover{background:#f3f4f6;color:#1f2937}.testing-content{flex:1;overflow-y:auto;padding:20px;max-height:calc(85vh - 60px)}.testing-content::-webkit-scrollbar{width:8px}.testing-content::-webkit-scrollbar-track{background:#f1f1f1;border-radius:4px}.testing-content::-webkit-scrollbar-thumb{background:#888;border-radius:4px}.testing-content::-webkit-scrollbar-thumb:hover{background:#555}.testing-actions{margin-bottom:20px}.run-button{background:#6366f1;color:#fff;border:none;padding:12px 24px;border-radius:6px;font-size:14px;font-weight:500;cursor:pointer;transition:background .2s}.run-button:hover:not(:disabled){background:#4f46e5}.run-button:disabled{background:#9ca3af;cursor:not-allowed}.error-section{background:#fef2f2;border:1px solid #fecaca;border-radius:6px;padding:16px;margin-bottom:20px}.error-section h4{margin:0 0 12px;font-size:14px;font-weight:600;color:#dc2626}.error-section ul{margin:0;padding-left:20px}.error-item{color:#991b1b;font-size:13px;margin-bottom:4px}.result-section{margin-top:20px}.result-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:16px}.result-header h4{margin:0;font-size:16px;font-weight:600;color:#1f2937}.status-badge{padding:4px 12px;border-radius:12px;font-size:12px;font-weight:500}.status-badge.success{background:#d1fae5;color:#065f46}.status-badge.failed{background:#fee2e2;color:#991b1b}.execution-timeline{display:flex;flex-direction:column;gap:16px}.timeline-item{display:flex;gap:12px;position:relative}.timeline-item:not(:last-child):after{content:"";position:absolute;left:10px;top:32px;bottom:-16px;width:2px;background:#e5e7eb}.timeline-marker{width:24px;height:24px;border-radius:50%;background:#fff;border:2px solid currentColor;display:flex;align-items:center;justify-content:center;font-size:12px;font-weight:700;flex-shrink:0;z-index:1}.timeline-content{flex:1;background:#f9fafb;border-radius:6px;padding:12px}.timeline-header{display:flex;gap:12px;align-items:center;margin-bottom:8px}.step-number{font-weight:600;font-size:13px;color:#1f2937}.step-type{font-size:12px;color:#6b7280;text-transform:capitalize}.step-time{margin-left:auto;font-size:11px;color:#9ca3af}.step-message{font-size:13px;color:#374151}.step-error{margin-top:8px;font-size:12px;color:#dc2626;font-weight:500}.info-section{text-align:center;padding:40px 20px;color:#6b7280}.info-section p{margin:8px 0}.info-note{font-size:12px;color:#9ca3af}*{box-sizing:border-box}body{margin:0;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen,Ubuntu,Cantarell,Fira Sans,Droid Sans,Helvetica Neue,sans-serif;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.app{display:flex;height:100vh;overflow:hidden}.main-content{flex:1;display:flex;flex-direction:column;overflow:hidden}.toolbar{display:flex;justify-content:space-between;align-items:center;padding:16px 24px;background:#fff;border-bottom:1px solid #e5e7eb;z-index:5}.toolbar h1{margin:0;font-size:24px;font-weight:600;color:#1f2937}.toolbar-actions{display:flex;gap:12px}.toolbar-button{padding:8px 16px;border:1px solid #d1d5db;border-radius:6px;background:#fff;color:#374151;font-size:14px;font-weight:500;cursor:pointer;transition:all .2s}.toolbar-button:hover{background:#f9fafb;border-color:#9ca3af}.toolbar-button.primary{background:#6366f1;color:#fff;border-color:#6366f1}.toolbar-button.primary:hover{background:#4f46e5;border-color:#4f46e5}.toolbar-button.danger{background:#ef4444;color:#fff;border-color:#ef4444}.toolbar-button.danger:hover{background:#dc2626;border-color:#dc2626}.canvas-container{flex:1;position:relative;overflow:hidden}.confirm-backdrop{position:fixed;top:0;right:0;bottom:0;left:0;background:#00000073;display:flex;align-items:center;justify-content:center;z-index:1100}.confirm-modal{background:#fff;padding:20px;width:420px;border-radius:8px;box-shadow:0 10px 30px #00000040}.confirm-modal h3{margin-top:0;margin-bottom:8px}.confirm-modal p{margin-bottom:20px;color:#444}.confirm-actions{display:flex;justify-content:flex-end;gap:10px}.btn{padding:8px 14px;border-radius:4px;border:none;cursor:pointer}.btn.cancel{background:#e0e0e0}.btn.confirm{background:#1976d2;color:#fff}.btn.confirm:hover{background:#155fa0}:root{font-family:Inter,system-ui,Avenir,Helvetica,Arial,sans-serif;line-height:1.5;font-weight:400;color-scheme:light;color:#000000de;background-color:#fff;font-synthesis:none;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}body{margin:0;display:flex;place-items:center;min-width:320px;min-height:100vh;cursor:default}button,a,[role=button],input[type=button],input[type=submit]{cursor:pointer}button:disabled,input:disabled{cursor:not-allowed}#root{width:100%;height:100vh}
