:root{--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light;color:#1d1d1f;font-synthesis:none;text-rendering:optimizelegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;--bg-primary:#f5f5f7;--bg-secondary:#fff;--bg-tertiary:#f5f5f7;--bg-card:#fff;--border-color:#d2d2d7;--border-focus:#0071e3;--primary:#0071e3;--primary-hover:#0077ed;--primary-glow:#0071e31a;--accent-purple:#5e5ce6;--accent-emerald:#34c759;--accent-rose:#ff3b30;--accent-red:#ff3b30;--accent-amber:#ff9500;--danger:#ff3b30;--text-primary:#1d1d1f;--text-secondary:#6e6e73;--text-muted:#86868b;--shadow-sm:0 1px 2px #0000000d;--shadow-md:0 4px 16px #0000000f;--shadow-lg:0 12px 34px #0000001a;--shadow-primary:0 6px 18px #0071e340;--transition-fast:.15s ease;--transition-normal:.25s cubic-bezier(.4, 0, .2, 1);background-color:#f5f5f7;font-family:-apple-system,BlinkMacSystemFont,SF Pro Text,Segoe UI,Roboto,Helvetica,Arial,sans-serif;font-weight:400;line-height:1.5}*{box-sizing:border-box;margin:0;padding:0}body{background-color:var(--bg-primary);min-height:100vh;margin:0;overflow-x:hidden}@keyframes spin{to{transform:rotate(360deg)}}.animate-spin{animation:.9s linear infinite spin}.app-container{min-height:100vh;display:flex}.sidebar{background:var(--bg-secondary);border-right:1px solid var(--border-color);z-index:100;flex-direction:column;width:260px;height:100vh;padding:1.75rem 1.25rem;display:flex;position:fixed}.logo-container{align-items:center;gap:.75rem;margin-bottom:2.5rem;display:flex}.logo-icon{color:#fff;background:linear-gradient(135deg,#ff9500,#ff3b30);border-radius:11px;flex-shrink:0;justify-content:center;align-items:center;width:38px;height:38px;display:flex;box-shadow:0 4px 12px #ff5a1e4d}.logo-text{color:var(--text-primary);letter-spacing:-.02em;font-size:1.2rem;font-weight:700}.sidebar-nav{flex:1;width:100%}.nav-list{flex-direction:column;gap:.25rem;list-style:none;display:flex}.nav-item{color:var(--text-secondary);transition:var(--transition-fast);cursor:pointer;white-space:nowrap;border-radius:10px;align-items:center;gap:.75rem;padding:.7rem .9rem;font-size:.92rem;font-weight:500;text-decoration:none;display:flex}.nav-item:hover{color:var(--text-primary);background:#0000000a}.nav-item.active{background:var(--primary-glow);color:var(--primary);font-weight:600}.sidebar-footer{border-top:1px solid var(--border-color);flex-direction:column;gap:.75rem;margin-top:auto;padding-top:1rem;display:flex}.user-chip{align-items:center;gap:.6rem;min-width:0;display:flex}.user-avatar{color:#fff;background:linear-gradient(135deg,#0071e3,#5e5ce6);border-radius:50%;flex-shrink:0;justify-content:center;align-items:center;width:36px;height:36px;font-weight:700;display:flex}.user-meta{flex-direction:column;min-width:0;display:flex}.user-name{color:var(--text-primary);white-space:nowrap;text-overflow:ellipsis;font-size:.85rem;font-weight:600;overflow:hidden}.user-email{color:var(--text-muted);white-space:nowrap;text-overflow:ellipsis;font-size:.72rem;overflow:hidden}.logout-btn{width:100%}.topbar,.nav-label-short{display:none}.main-content{flex:1;width:calc(100% - 260px);max-width:1400px;margin-left:260px;padding:2.25rem 2.5rem}.header-title-section{margin-bottom:1.75rem}.header-title{color:var(--text-primary);letter-spacing:-.02em;margin-bottom:.25rem;font-size:1.7rem;font-weight:700}.header-subtitle{color:var(--text-secondary);font-size:.95rem}.card{background:var(--bg-card);border:1px solid var(--border-color);box-shadow:var(--shadow-sm);transition:var(--transition-normal);border-radius:18px;padding:1.5rem}.card:hover{box-shadow:var(--shadow-md)}.btn{cursor:pointer;transition:var(--transition-fast);border:1px solid #0000;border-radius:12px;outline:none;justify-content:center;align-items:center;gap:.5rem;padding:.6rem 1.15rem;font-size:.9rem;font-weight:600;line-height:1;display:inline-flex}.btn-primary{background:var(--primary);color:#fff}.btn-primary:hover:not(:disabled){background:var(--primary-hover);box-shadow:var(--shadow-primary)}.btn-secondary{color:var(--text-primary);border-color:var(--border-color);background:#fff}.btn-secondary:hover:not(:disabled){background:#f5f5f7}.btn-danger{color:var(--danger);background:#ff3b301a;border:1px solid #ff3b3040}.btn-danger:hover:not(:disabled){background:var(--danger);color:#fff}.btn:disabled{opacity:.5;cursor:not-allowed}.btn-block{width:100%;margin-top:.5rem;padding:.85rem;font-size:1rem}.form-group{flex-direction:column;gap:.4rem;margin-bottom:1.15rem;display:flex}label{color:var(--text-secondary);letter-spacing:0;text-transform:none;font-size:.82rem;font-weight:500}input,textarea,select{border:1px solid var(--border-color);color:var(--text-primary);transition:var(--transition-fast);background:#fff;border-radius:12px;outline:none;width:100%;padding:.7rem .9rem;font-family:inherit;font-size:.95rem}input::placeholder,textarea::placeholder{color:#b0b0b5}input:focus,textarea:focus,select:focus{border-color:var(--border-focus);box-shadow:0 0 0 3px #0071e326}textarea{resize:vertical;min-height:80px}.grid-2{grid-template-columns:repeat(2,1fr);gap:1.25rem;display:grid}.grid-3{grid-template-columns:repeat(3,1fr);gap:1.25rem;display:grid}.badge{letter-spacing:.1px;border-radius:9999px;align-items:center;padding:.22rem .6rem;font-size:.72rem;font-weight:600;display:inline-flex}.badge-success{color:#248a3d;background:#34c75924}.badge-warning{color:#b25f00;background:#ff950029}.badge-info{color:var(--primary);background:#0071e31f}.badge-danger{color:var(--danger);background:#ff3b301f}.toast-container{z-index:1000;flex-direction:column;gap:.6rem;display:flex;position:fixed;bottom:1.5rem;right:1.5rem}.toast{border:1px solid var(--border-color);border-left:4px solid var(--primary);box-shadow:var(--shadow-lg);background:#fff;border-radius:12px;align-items:center;gap:.75rem;min-width:280px;max-width:380px;padding:.85rem 1.1rem;animation:.25s cubic-bezier(.4,0,.2,1) slideIn;display:flex}.toast.success{border-left-color:var(--accent-emerald)}.toast.error{border-left-color:var(--danger)}.toast.warning{border-left-color:var(--accent-amber)}.toast.info{border-left-color:var(--primary)}@keyframes slideIn{0%{opacity:0;transform:translate(110%)}to{opacity:1;transform:translate(0)}}.auth-screen{background:var(--bg-primary);justify-content:center;align-items:center;min-height:100vh;padding:1.5rem;display:flex}.auth-card{border:1px solid var(--border-color);width:100%;max-width:400px;box-shadow:var(--shadow-lg);background:#fff;border-radius:22px;padding:2.5rem 2rem}.paywall-card{max-width:440px}.auth-brand{text-align:center;margin-bottom:1.75rem}.auth-logo{background:linear-gradient(135deg,#ff9500,#ff3b30);border-radius:18px;justify-content:center;align-items:center;width:64px;height:64px;margin:0 auto 1rem;font-size:32px;display:flex;box-shadow:0 8px 22px #ff5a1e4d}.paywall-lock{color:#fff;background:linear-gradient(135deg,#0071e3,#5e5ce6);box-shadow:0 8px 22px #0071e34d}.auth-title{color:var(--text-primary);letter-spacing:-.02em;font-size:1.55rem;font-weight:700}.auth-subtitle{color:var(--text-secondary);margin-top:.4rem;font-size:.92rem}.auth-form{flex-direction:column;display:flex}.auth-switch{text-align:center;color:var(--text-secondary);margin-top:1.5rem;font-size:.9rem}.link-btn{color:var(--primary);cursor:pointer;font-weight:600;font-size:inherit;background:0 0;border:none;padding:0;font-family:inherit}.link-btn:hover{text-decoration:underline}.paywall-benefits{flex-direction:column;gap:.7rem;margin:0 0 1.5rem;list-style:none;display:flex}.paywall-benefits li{color:var(--text-primary);align-items:center;gap:.6rem;font-size:.9rem;display:flex}.check-dot{width:20px;height:20px;color:var(--accent-emerald);background:#34c75929;border-radius:50%;flex-shrink:0;justify-content:center;align-items:center;display:flex}.paywall-logout{color:var(--text-muted);justify-content:center;align-items:center;gap:.4rem;margin:1.25rem auto 0;display:flex}.splash{background:var(--bg-primary);flex-direction:column;justify-content:center;align-items:center;gap:1rem;min-height:100vh;display:flex}.splash-logo{font-size:48px;animation:1.4s ease-in-out infinite pulse}@keyframes pulse{0%,to{opacity:1;transform:scale(1)}50%{opacity:.7;transform:scale(1.08)}}.react-flow-wrapper{border:1px solid var(--border-color);background:#fafafa;border-radius:16px;flex-grow:1;height:65vh;position:relative;overflow:hidden}.react-flow__background{background-color:#fafafa!important}.modal-overlay{-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px);z-index:200;background:#00000059;justify-content:center;align-items:center;padding:1rem;display:flex;position:fixed;inset:0}.modal-content{border:1px solid var(--border-color);width:100%;max-width:550px;box-shadow:var(--shadow-lg);background:#fff;border-radius:20px;animation:.2s ease-out scaleIn;overflow:hidden}@keyframes scaleIn{0%{opacity:0;transform:scale(.96)}to{opacity:1;transform:scale(1)}}.modal-header{border-bottom:1px solid var(--border-color);justify-content:space-between;align-items:center;padding:1.25rem 1.5rem;display:flex}.modal-body{max-height:70vh;padding:1.5rem;overflow-y:auto}.modal-footer{border-top:1px solid var(--border-color);justify-content:flex-end;gap:.75rem;padding:1.25rem 1.5rem;display:flex}.flex-between{justify-content:space-between;align-items:center;display:flex}.flex-gap-2{align-items:center;gap:.5rem;display:flex}.mt-1{margin-top:.5rem}.mt-2{margin-top:1rem}.mt-3{margin-top:1.5rem}.mb-1{margin-bottom:.5rem}.mb-2{margin-bottom:1rem}.mb-3{margin-bottom:1.5rem}.text-center{text-align:center}.text-xs{font-size:.75rem}.text-sm{font-size:.85rem}.custom-node{border:1px solid var(--border-color);width:250px;color:var(--text-primary);box-shadow:var(--shadow-sm);transition:var(--transition-fast);background:#fff;border-radius:14px;padding:1rem}.custom-node:hover{border-color:var(--primary);box-shadow:var(--shadow-md)}.custom-node.trigger{border-left:4px solid var(--accent-purple)}.custom-node.message{border-left:4px solid var(--primary);width:280px}.node-header{justify-content:space-between;align-items:center;margin-bottom:.5rem;font-size:.9rem;font-weight:700;display:flex}.node-body{color:var(--text-secondary);font-size:.8rem}.node-footer{border-top:1px solid var(--border-color);justify-content:space-between;align-items:center;margin-top:.75rem;padding-top:.5rem;display:flex}.react-flow__handle{background-color:var(--primary)!important;border:2px solid #fff!important;width:10px!important;height:10px!important}.react-flow__handle-left{left:-6px!important}.react-flow__handle-right{right:-6px!important}::-webkit-scrollbar{width:8px;height:8px}::-webkit-scrollbar-track{background:0 0}::-webkit-scrollbar-thumb{background:#c7c7cc;border-radius:4px}::-webkit-scrollbar-thumb:hover{background:var(--text-muted)}@media (width<=820px){.app-container{flex-direction:column}.topbar{background:var(--bg-secondary);border-bottom:1px solid var(--border-color);z-index:120;justify-content:space-between;align-items:center;height:56px;padding:0 1rem;display:flex;position:fixed;top:0;left:0;right:0}.topbar-brand{align-items:center;gap:.6rem;display:flex}.topbar-brand .logo-text{font-size:1.05rem;display:inline}.topbar-logout{border:1px solid var(--border-color);width:40px;height:40px;color:var(--text-secondary);cursor:pointer;background:#fff;border-radius:12px;justify-content:center;align-items:center;display:flex}.topbar-logout:active{background:#f0f0f2}.sidebar{border-right:none;border-top:1px solid var(--border-color);background:var(--bg-secondary);z-index:120;flex-direction:row;width:100%;height:auto;padding:0;position:fixed;inset:auto 0 0;box-shadow:0 -2px 12px #0000000d}.sidebar .logo-container,.sidebar .sidebar-footer{display:none}.sidebar-nav{flex:1;overflow:visible}.nav-list{padding:.25rem .25rem calc(.25rem + env(safe-area-inset-bottom,0px));flex-direction:row;gap:0}.nav-list li{flex:1}.nav-item{text-align:center;color:var(--text-muted);border-radius:12px;flex-direction:column;gap:.15rem;padding:.5rem .25rem;font-size:.68rem;font-weight:500}.nav-item.active{color:var(--primary);background:0 0}.nav-item:hover{background:0 0}.nav-label-full{display:none}.nav-label-short{line-height:1;display:inline}.main-content{width:100%;padding:calc(56px + 1.25rem) 1rem 1.25rem;padding-bottom:calc(68px + env(safe-area-inset-bottom,0px));margin-left:0}.grid-2,.grid-3{grid-template-columns:1fr}.header-title{font-size:1.35rem}.toast-container{left:1rem;right:1rem;bottom:calc(72px + env(safe-area-inset-bottom,0px))}.toast{width:100%;min-width:0;max-width:none}.auth-card{padding:2rem 1.5rem}.modal-content{max-height:88vh}}.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%}
