:root{--primary:#6366f1;--primary-hover:#4f46e5;--bg-main:#0f172a;--bg-card:#1e293b;--bg-sidebar:#1e293b;--text-main:#f8fafc;--text-muted:#94a3b8;--border:#334155;--accent-start:#22c55e;--accent-task:#3b82f6;--accent-approval:#eab308;--accent-automated:#a855f7;--accent-end:#ef4444;--shadow-sm:0 1px 2px 0 #0000000d;--shadow-md:0 4px 6px -1px #0000001a, 0 2px 4px -2px #0000001a;--shadow-lg:0 10px 15px -3px #0000001a, 0 4px 6px -4px #0000001a;--font-sans:"Inter", system-ui, -apple-system, sans-serif}*{box-sizing:border-box;margin:0;padding:0}body{font-family:var(--font-sans);background-color:var(--bg-main);color:var(--text-main);overflow:hidden}button{cursor:pointer;font-family:inherit;transition:all .2s}input,select,textarea{border:1px solid var(--border);color:var(--text-main);background-color:#0f172a;border-radius:.375rem;width:100%;padding:.5rem;font-family:inherit}input:focus,select:focus,textarea:focus{outline:2px solid var(--primary);border-color:#0000}h1,h2,h3{letter-spacing:-.025em;font-weight:600}::-webkit-scrollbar{width:8px;height:8px}::-webkit-scrollbar-track{background:var(--bg-main)}::-webkit-scrollbar-thumb{background:var(--border);border-radius:4px}::-webkit-scrollbar-thumb:hover{background:var(--text-muted)}.sidebar{background:#1e293b;border-right:1px solid #334155;flex-direction:column;width:300px;height:100%;padding:24px;display:flex}.sidebar-header{margin-bottom:24px}.sidebar-header h2{color:#f8fafc;margin-bottom:4px;font-size:18px}.sidebar-header p{color:#94a3b8;font-size:13px}.nodes-list{flex-direction:column;flex:1;gap:12px;display:flex}.dnd-node{cursor:grab;background:#0f172a;border:1px solid #334155;border-radius:8px;align-items:center;gap:12px;padding:12px;transition:all .2s;display:flex}.dnd-node:hover{background:#1e293b;border-color:#6366f1;transform:translate(4px)}.dnd-node-icon{border-radius:6px;justify-content:center;align-items:center;width:36px;height:36px;display:flex}.dnd-node-info{flex-direction:column;display:flex}.dnd-node-label{color:#f8fafc;font-size:14px;font-weight:500}.dnd-node-desc{color:#64748b;font-size:11px}.dnd-start .dnd-node-icon{color:#22c55e;background:#22c55e1a}.dnd-task .dnd-node-icon{color:#3b82f6;background:#3b82f61a}.dnd-approval .dnd-node-icon{color:#eab308;background:#eab3081a}.dnd-automated .dnd-node-icon{color:#a855f7;background:#a855f71a}.dnd-end .dnd-node-icon{color:#ef4444;background:#ef44441a}.sidebar-footer{margin-top:auto;padding-top:24px}.help-card{color:#a5b4fc;background:#6366f11a;border:1px solid #6366f133;border-radius:8px;gap:12px;padding:12px;font-size:12px;line-height:1.4;display:flex}.react-flow{direction:ltr}.react-flow__container{width:100%;height:100%;position:absolute;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:1px;fill:none}.react-flow__edge{pointer-events:visibleStroke;cursor:pointer}.react-flow__edge.animated path{stroke-dasharray:5;animation:.5s linear infinite dashdraw}.react-flow__edge.animated path.react-flow__edge-interaction{stroke-dasharray: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;user-select:none}.react-flow__connection{pointer-events:none}.react-flow__connection .animated{stroke-dasharray:5;animation:.5s linear infinite dashdraw}.react-flow__connectionline{z-index:1001}.react-flow__nodes{pointer-events:none;transform-origin:0 0}.react-flow__node{-webkit-user-select:none;user-select:none;pointer-events:all;transform-origin:0 0;box-sizing:border-box;cursor:-webkit-grab;cursor:grab;position:absolute}.react-flow__node.dragging{cursor:-webkit-grabbing;cursor:grabbing}.react-flow__nodesselection{z-index:3;transform-origin:0 0;pointer-events:none}.react-flow__nodesselection-rect{pointer-events:all;cursor:-webkit-grab;cursor:grab;position:absolute}.react-flow__handle{pointer-events:none;background:#1a192b;border:1px solid #fff;border-radius:100%;width:6px;min-width:5px;height:6px;min-height:5px;position:absolute}.react-flow__handle.connectionindicator{pointer-events:all;cursor:crosshair}.react-flow__handle-bottom{top:auto;bottom:-4px;left:50%;transform:translate(-50%)}.react-flow__handle-top{top:-4px;left:50%;transform:translate(-50%)}.react-flow__handle-left{top:50%;left:-4px;transform:translateY(-50%)}.react-flow__handle-right{top:50%;right:-4px;transform:translateY(-50%)}.react-flow__edgeupdater{cursor:move;pointer-events:all}.react-flow__panel{z-index:5;margin:15px;position:absolute}.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{background:#ffffff80;margin:0;padding:2px 3px;font-size:10px}.react-flow__attribution a{color:#999;text-decoration:none}@keyframes dashdraw{0%{stroke-dashoffset:10px}}.react-flow__edgelabel-renderer{pointer-events:none;-webkit-user-select:none;user-select:none;width:100%;height:100%;position:absolute}.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{color:#222;text-align:center;background-color:#fff;border:1px solid #1a192b;border-radius:3px;width:150px;padding:10px;font-size:12px}.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 #0059dccc}.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{box-sizing:content-box;cursor:pointer;-webkit-user-select:none;user-select:none;background:#fefefe;border:none;border-bottom:1px solid #eee;justify-content:center;align-items:center;width:16px;height:16px;padding:5px;display:flex}.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{background-color:#3367d9;border:1px solid #fff;border-radius:1px;width:4px;height:4px;transform:translate(-50%,-50%)}.react-flow__resize-control.handle.left{top:50%;left:0}.react-flow__resize-control.handle.right{top:50%;left:100%}.react-flow__resize-control.handle.top{top:0;left:50%}.react-flow__resize-control.handle.bottom{top:100%;left:50%}.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:0 solid #3367d9}.react-flow__resize-control.line.left,.react-flow__resize-control.line.right{width:1px;height:100%;top:0;transform:translate(-50%)}.react-flow__resize-control.line.left{border-left-width:1px;left:0}.react-flow__resize-control.line.right{border-right-width:1px;left:100%}.react-flow__resize-control.line.top,.react-flow__resize-control.line.bottom{width:100%;height:1px;left:0;transform:translateY(-50%)}.react-flow__resize-control.line.top{border-top-width:1px;top:0}.react-flow__resize-control.line.bottom{border-bottom-width:1px;top:100%}.custom-node{color:#f8fafc;background:#1e293b;border:2px solid #334155;border-radius:12px;flex-direction:column;gap:8px;min-width:180px;padding:12px 16px;transition:all .2s cubic-bezier(.4,0,.2,1);display:flex;position:relative;box-shadow:0 10px 15px -3px #0000004d,0 4px 6px -4px #0000004d}.custom-node:hover{border-color:#6366f1;transform:translateY(-2px);box-shadow:0 20px 25px -5px #0006,0 8px 10px -6px #0006}.custom-node.selected{border-color:#6366f1;box-shadow:0 0 0 4px #6366f133}.custom-node.invalid{border-color:#ef4444;animation:2s infinite pulse-border;box-shadow:0 0 0 4px #ef444433}@keyframes pulse-border{0%{border-color:#ef4444}50%{border-color:#f87171}to{border-color:#ef4444}}.node-header{align-items:center;gap:10px;font-size:14px;font-weight:600;display:flex}.invalid-icon{color:#ef4444;align-items:center;margin-left:auto;display:flex}.node-icon{color:#6366f1;background:#6366f126;border-radius:6px;justify-content:center;align-items:center;width:28px;height:28px;display:flex}.node-content{color:#94a3b8;font-size:12px;line-height:1.4}.node-footer{text-transform:uppercase;letter-spacing:.05em;color:#64748b;border-top:1px solid #334155;justify-content:space-between;align-items:center;margin-top:4px;padding-top:8px;font-size:10px;display:flex}.node-start{border-left:4px solid #22c55e}.node-start .node-icon{color:#22c55e;background:#22c55e1a}.node-task{border-left:4px solid #3b82f6}.node-task .node-icon{color:#3b82f6;background:#3b82f61a}.node-approval{border-left:4px solid #eab308}.node-approval .node-icon{color:#eab308;background:#eab3081a}.node-automated{border-left:4px solid #a855f7}.node-automated .node-icon{color:#a855f7;background:#a855f71a}.node-end{border-left:4px solid #ef4444}.node-end .node-icon{color:#ef4444;background:#ef44441a}.react-flow__handle{background:#6366f1;border:2px solid #1e293b;width:8px;height:8px}.react-flow__handle:hover{background:#818cf8}.canvas-wrapper{background:#0f172a;flex:1;height:100%;position:relative}.custom-controls{background:#1e293b;border:1px solid #334155;border-radius:8px;overflow:hidden;box-shadow:0 4px 6px -1px #0000001a}.custom-controls button{fill:#94a3b8;background:#1e293b;border-bottom:1px solid #334155}.custom-controls button:hover{background:#334155}.custom-minimap{background:#1e293b!important;border:1px solid #334155!important;border-radius:8px!important}.canvas-panel{padding:12px}.canvas-badge{color:#a5b4fc;letter-spacing:.05em;text-transform:uppercase;background:#6366f11a;border:1px solid #6366f133;border-radius:9999px;padding:6px 12px;font-size:12px;font-weight:600}.react-flow__background{background-image:radial-gradient(#334155 1px,#0000 0);background-size:20px 20px}.node-config-panel{z-index:10;background:#1e293b;border-left:1px solid #334155;flex-direction:column;width:400px;height:100%;display:flex;position:relative;box-shadow:-10px 0 15px -3px #0003}.panel-header{border-bottom:1px solid #334155;justify-content:space-between;align-items:flex-start;padding:24px;display:flex}.panel-header h3{color:#f8fafc;font-size:18px}.header-info span{color:#64748b;font-family:monospace;font-size:11px}.panel-body{flex:1;padding:24px;overflow-y:auto}.form-group{margin-bottom:20px}.form-group label{color:#94a3b8;margin-bottom:8px;font-size:13px;font-weight:500;display:block}.divider{background:#334155;height:1px;margin:24px 0}.automation-config{background:#0f172a;border:1px solid #334155;border-radius:8px;padding:16px}.automation-config h4{text-transform:uppercase;color:#64748b;letter-spacing:.05em;margin-bottom:12px;font-size:12px}.panel-footer{border-top:1px solid #334155;justify-content:space-between;align-items:center;padding:24px;display:flex}.footer-right{gap:12px;display:flex}.btn-icon{color:#94a3b8;background:0 0;border:none;border-radius:4px;padding:4px}.btn-icon:hover{color:#f8fafc;background:#334155}.btn-primary{color:#fff;background:#6366f1;border:none;border-radius:6px;align-items:center;gap:8px;padding:8px 16px;font-size:14px;font-weight:500;display:flex}.btn-primary:hover{background:#4f46e5}.btn-secondary{color:#f8fafc;background:#334155;border:none;border-radius:6px;padding:8px 16px;font-size:14px;font-weight:500}.btn-secondary:hover{background:#475569}.btn-danger{color:#ef4444;background:#ef44441a;border:1px solid #ef444433;border-radius:6px;align-items:center;gap:8px;padding:8px 16px;font-size:14px;font-weight:500;display:flex}.btn-danger:hover{color:#fff;background:#ef4444}.checkbox-group{align-items:center;gap:10px;display:flex}.checkbox-group input[type=checkbox]{width:18px;height:18px}.checkbox-group label{margin-bottom:0}.simulation-overlay{z-index:20;pointer-events:none;width:350px;max-height:calc(100vh - 40px);position:absolute;top:20px;right:20px}.simulation-panel{-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px);pointer-events:all;background:#1e293bf2;border:1px solid #33415580;border-radius:12px;flex-direction:column;display:flex;overflow:hidden;box-shadow:0 20px 25px -5px #00000080}.simulation-header{border-bottom:1px solid #33415580;justify-content:space-between;align-items:center;padding:20px;display:flex}.title-area h3{color:#f8fafc;font-size:16px}.title-area p{color:#94a3b8;font-size:11px}.header-actions{gap:8px;display:flex}.btn-simulate{color:#fff;background:#6366f1;border:none;border-radius:6px;align-items:center;gap:8px;padding:8px 14px;font-size:12px;font-weight:600;display:flex}.btn-simulate:hover:not(:disabled){background:#4f46e5;transform:translateY(-1px)}.btn-simulate:disabled{opacity:.7;cursor:not-allowed}.simulation-results{flex-direction:column;gap:12px;max-height:500px;padding:16px;display:flex;overflow-y:auto}.empty-state{text-align:center;color:#64748b;padding:40px 20px}.empty-icon{margin-bottom:12px;font-size:32px}.empty-state p{font-size:13px;line-height:1.5}.simulation-error{color:#ef4444;background:#ef44441a;border:1px solid #ef444433;border-radius:8px;align-items:center;gap:12px;margin:16px;padding:12px;font-size:13px;display:flex}.result-item{opacity:0;background:#0f172a66;border:1px solid #3341554d;border-radius:8px;gap:12px;padding:12px;animation:.3s ease-out forwards slideIn;display:flex}@keyframes slideIn{0%{opacity:0;transform:translate(20px)}to{opacity:1;transform:translate(0)}}.step-badge{color:#a5b4fc;text-transform:uppercase;background:#6366f133;border-radius:4px;padding:2px 6px;font-size:10px;font-weight:600}.node-name{color:#f8fafc;font-size:13px;font-weight:600}.timestamp{color:#64748b;margin-left:auto;font-size:10px}.result-top{align-items:center;gap:8px;margin-bottom:4px;display:flex}.result-msg{color:#94a3b8;font-size:12px}.text-success{color:#22c55e}.text-error{color:#ef4444}.simulation-loading{text-align:center;padding:20px}.loading-bar{background:#334155;border-radius:2px;height:4px;margin-bottom:12px;overflow:hidden}.loading-bar:after{content:"";background:#6366f1;width:50%;height:100%;animation:1s ease-in-out infinite loading;display:block}@keyframes loading{0%{transform:translate(-100%)}to{transform:translate(200%)}}.spin{animation:1s linear infinite spin}@keyframes spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.employee-view{background:#0f172a;flex:1;padding:40px;overflow-y:auto}.view-header{justify-content:space-between;align-items:center;margin-bottom:32px;display:flex}.view-header h2{color:#f8fafc;margin-bottom:4px;font-size:24px}.view-header p{color:#94a3b8;font-size:14px}.employee-grid{grid-template-columns:repeat(auto-fill,minmax(280px,1fr));gap:24px;display:grid}.employee-card{background:#1e293b;border:1px solid #334155;border-radius:12px;padding:24px;transition:all .2s}.employee-card:hover{border-color:#6366f1;transform:translateY(-4px);box-shadow:0 10px 15px -3px #0006}.card-top{justify-content:space-between;align-items:flex-start;margin-bottom:16px;display:flex}.avatar{color:#6366f1;background:#334155;border:2px solid #334155;border-radius:9999px;justify-content:center;align-items:center;width:48px;height:48px;font-size:20px;font-weight:700;display:flex}.badge{color:#a5b4fc;text-transform:uppercase;background:#6366f11a;border-radius:4px;align-items:center;gap:4px;padding:4px 8px;font-size:10px;font-weight:600;display:flex}.card-body h3{color:#f8fafc;margin-bottom:2px;font-size:18px}.role{color:#6366f1;margin-bottom:16px;font-size:13px;font-weight:500;display:block}.contact-info{flex-direction:column;gap:8px;display:flex}.info-item{color:#94a3b8;align-items:center;gap:8px;font-size:13px;display:flex}.settings-view{background:#0f172a;flex:1;padding:40px}.settings-container{background:#1e293b;border:1px solid #334155;border-radius:12px;gap:40px;min-height:500px;display:flex;overflow:hidden}.settings-sidebar{background:#0f172a66;border-right:1px solid #334155;width:240px;padding:24px 0}.settings-nav-item{text-align:left;color:#94a3b8;cursor:pointer;background:0 0;border:none;align-items:center;gap:12px;width:100%;padding:12px 24px;font-size:14px;display:flex}.settings-nav-item:hover{color:#f8fafc;background:#ffffff0d}.settings-nav-item.active{color:#6366f1;background:#6366f11a;border-left:2px solid #6366f1}.settings-content{flex:1;max-width:600px;padding:32px}.settings-section{margin-bottom:40px}.settings-section h3{color:#f8fafc;margin-bottom:24px;font-size:18px}.settings-section p{color:#64748b;margin-bottom:16px;font-size:13px}.setting-control{margin-bottom:24px}.setting-control label{color:#94a3b8;margin-bottom:12px;font-size:13px;display:block}.control-row{color:#f8fafc;align-items:center;gap:16px;font-weight:600;display:flex}.tags-input{flex-wrap:wrap;gap:8px;display:flex}.tag{color:#cbd5e1;background:#334155;border-radius:4px;padding:4px 12px;font-family:monospace;font-size:12px}.btn-add-tag{color:#475569;cursor:pointer;background:0 0;border:1px dashed #475569;border-radius:4px;width:24px;height:24px}.app-container{background:var(--bg-main);width:100vw;height:100vh;color:var(--text-main);flex-direction:column;display:flex}.app-header{z-index:30;background:#1e293b;border-bottom:1px solid #334155;justify-content:space-between;align-items:center;height:64px;padding:0 24px;display:flex}.logo{align-items:center;gap:12px;display:flex}.logo-icon{color:#fff;background:#6366f1;border-radius:8px;justify-content:center;align-items:center;width:32px;height:32px;display:flex;box-shadow:0 4px 6px -1px #6366f166}.logo h1{letter-spacing:-.025em;background:linear-gradient(90deg,#f8fafc,#94a3b8);-webkit-text-fill-color:transparent;-webkit-background-clip:text;font-size:18px;font-weight:700}.header-nav{gap:8px;display:flex}.nav-item{color:#94a3b8;background:0 0;border:none;border-radius:8px;align-items:center;gap:8px;padding:8px 16px;font-size:14px;font-weight:500;display:flex}.nav-item:hover{color:#f8fafc;background:#ffffff0d}.nav-item.active{color:#6366f1;background:#6366f11a}.header-actions{align-items:center;gap:16px;display:flex}.btn-share{color:#f8fafc;background:#334155;border:1px solid #475569;border-radius:8px;align-items:center;gap:8px;padding:8px 16px;font-size:13px;font-weight:600;display:flex}.btn-share:hover{background:#475569}.user-profile img{border:2px solid #334155;border-radius:9999px;width:36px;height:36px}.app-content{flex:1;display:flex;overflow:hidden}.editor-area{flex-direction:column;flex:1;display:flex;position:relative}
