.billing-modal-overlay{position:fixed;top:0;right:0;bottom:0;left:0;z-index:999;display:flex;align-items:center;justify-content:center;background-color:#000c;-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px)}.billing-modal-content{position:relative;display:flex;width:100%;max-width:1240px;height:86vh;max-height:900px;background-color:#111;border:1px solid rgba(255,255,255,.1);border-radius:1.5rem;box-shadow:0 25px 50px -12px #00000080;margin:2rem;overflow:hidden}.billing-modal-sidebar{width:240px;background-color:#1a1a1a;border-right:1px solid rgba(255,255,255,.05);padding:2rem 1rem;display:flex;flex-direction:column;flex-shrink:0}.billing-modal-sidebar .sidebar-title{font-size:1.25rem;font-weight:700;color:#fff;margin-bottom:2rem;padding-left:1rem}.billing-modal-sidebar .sidebar-menu{display:flex;flex-direction:column;gap:.5rem}.billing-modal-sidebar .sidebar-menu .menu-item{display:flex;align-items:center;gap:.75rem;width:100%;padding:.75rem 1rem;border-radius:.75rem;color:#9ca3af;font-size:.875rem;font-weight:500;transition:all .2s ease}.billing-modal-sidebar .sidebar-menu .menu-item:hover{background-color:#ffffff0d;color:#fff}.billing-modal-sidebar .sidebar-menu .menu-item.active{background-color:#22c55e26;color:#22c55e}.billing-modal-main{flex:1;position:relative;padding:3rem;overflow-y:hidden;background-color:#111;display:flex;flex-direction:column}.billing-modal-main .tab-content{flex:1;overflow-y:auto;display:flex;flex-direction:column}.billing-modal-main .tab-content::-webkit-scrollbar{width:6px;height:6px}.billing-modal-main .tab-content::-webkit-scrollbar-track{background:transparent}.billing-modal-main .tab-content::-webkit-scrollbar-thumb{background:#ffffff24;border-radius:999px}.billing-modal-main .tab-content::-webkit-scrollbar-thumb:hover{background:#ffffff38}.billing-modal-main .tab-content{scrollbar-width:thin;scrollbar-color:rgba(255,255,255,.14) transparent}.billing-modal-main .close-btn{position:absolute;top:1.5rem;right:1.5rem;padding:.5rem;color:#9ca3af;border-radius:50%;transition:all .2s ease}.billing-modal-main .close-btn:hover{color:#fff;background-color:#ffffff1a}.section-block{margin-bottom:3rem}.section-block.flex-1{flex:1;display:flex;flex-direction:column;min-height:0;margin-bottom:0}.section-block .section-title{font-size:1.25rem;font-weight:600;color:#fff;margin-bottom:1.5rem;flex-shrink:0}.plan-card{background-color:#1a1a1a;border:1px solid rgba(255,255,255,.05);border-radius:1rem;padding:2rem}.plan-card .plan-info-content{display:flex;justify-content:space-between;align-items:center;gap:1.5rem}.plan-card .plan-info-content .plan-info-main{display:flex;flex-direction:column;gap:.5rem}.plan-card .plan-info-content .plan-info-main .plan-name{font-size:1.125rem;font-weight:600;color:#fff;margin-bottom:.25rem}.plan-card .plan-info-content .plan-info-main .plan-desc{font-size:.875rem;color:#9ca3af}.plan-card .plan-info-content .plan-info-main .plan-payment{font-size:.875rem;color:#9ca3af;display:flex;align-items:center;gap:.5rem}.plan-card .manage-btn{display:inline-flex;align-items:center;gap:.5rem;background-color:#22c55e;color:#000;font-size:.875rem;font-weight:600;padding:.75rem 1.5rem;border-radius:.75rem;transition:background-color .2s ease,opacity .2s ease}.plan-card .manage-btn:hover:not(:disabled){background-color:#4ade80}.plan-card .manage-btn:disabled{opacity:.45;cursor:not-allowed}.billing-table-container{background-color:#1a1a1a;border:1px solid rgba(255,255,255,.05);border-radius:1rem;overflow-y:auto;overflow-x:auto;flex:1}.billing-table-container .billing-table{width:100%;min-width:760px;border-collapse:collapse;table-layout:fixed;text-align:left}.billing-table-container .billing-table thead{position:sticky;top:0;z-index:2;background-color:#1a1a1a}.billing-table-container .billing-table th,.billing-table-container .billing-table td{padding:1rem 1.25rem;font-size:.875rem;vertical-align:middle}.billing-table-container .billing-table th,.billing-table-container .billing-table td{white-space:nowrap}.billing-table-container .billing-table .billing-cell-text,.billing-table-container .billing-table .billing-id-text{display:block;width:100%;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.billing-table-container .billing-table .col-billing-id{width:132px;min-width:132px;max-width:132px}.billing-table-container .billing-table .col-transaction-time{width:176px;min-width:176px}.billing-table-container .billing-table .col-content{width:auto;min-width:220px;max-width:100%}.billing-table-container .billing-table .col-type{width:100px;min-width:100px;max-width:100px}.billing-table-container .billing-table .col-amount{width:128px;min-width:128px;white-space:nowrap}.billing-table-container .billing-table .col-balance{width:120px;min-width:120px}.billing-table-container .billing-table .col-status{width:110px;min-width:110px}.billing-table-container .billing-table .col-invoice{width:90px;min-width:90px}.billing-table-container .billing-table th{color:#6b7280;font-weight:500;border-bottom:1px solid rgba(255,255,255,.05);background-color:#ffffff05}.billing-table-container .billing-table td{color:#d1d5db;border-bottom:1px solid rgba(255,255,255,.02)}.billing-table-container .billing-table td:first-child{color:#9ca3af}.billing-table-container .billing-table td .status-badge{display:inline-flex;align-items:center;padding:.25rem .75rem;border-radius:5px;font-size:.75rem;font-weight:500}.billing-table-container .billing-table td .status-badge.paid{background-color:#22c55e1a;color:#4ade80}.billing-table-container .billing-table td .status-badge.failed{background-color:#ef44441a;color:#f87171}.billing-table-container .billing-table td .status-badge.refunding{background-color:#fbbf241f;color:#fbbf24}.billing-table-container .billing-table td .status-badge.refunded{background-color:#60a5fa1f;color:#60a5fa}.billing-table-container .billing-table tr:last-child td{border-bottom:none}@media(max-width:768px){.billing-table-container .billing-table{min-width:680px}.billing-table-container .billing-table th,.billing-table-container .billing-table td{padding:.875rem;font-size:.8125rem}.billing-table-container .billing-table .col-billing-id{width:112px;min-width:112px;max-width:112px}.billing-table-container .billing-table .col-transaction-time{width:148px;min-width:148px}.billing-table-container .billing-table .col-content{width:auto;min-width:180px;max-width:100%}.billing-table-container .billing-table .col-type{width:100px;min-width:100px;max-width:100px}.billing-table-container .billing-table .col-amount,.billing-table-container .billing-table .col-balance{width:112px;min-width:112px}.billing-table-container .billing-table .col-status{width:96px;min-width:96px}.billing-table-container .billing-table .col-invoice{width:84px;min-width:84px}}.billing-table-container::-webkit-scrollbar{width:6px;height:6px}.billing-table-container::-webkit-scrollbar-track{background:transparent}.billing-table-container::-webkit-scrollbar-thumb{background:#ffffff24;border-radius:999px}.billing-table-container::-webkit-scrollbar-thumb:hover{background:#ffffff38}.billing-table-container{scrollbar-width:thin;scrollbar-color:rgba(255,255,255,.14) transparent}.billing-table-container .billing-table-sentinel{display:flex;justify-content:center;padding:1rem 0}.billing-table-container .billing-table-sentinel .billing-table-loading{display:flex;align-items:center;gap:.5rem;color:#9ca3af;font-size:.875rem}.empty-state{display:flex;align-items:center;justify-content:center;height:100%;min-height:400px;width:100%}.points-tab{height:100%;display:flex;flex-direction:column}.points-tab .points-section{display:flex;flex-direction:column;flex:1;margin-bottom:0;min-height:0}.points-tab .points-section .points-table{flex:1;max-height:none}.credit-capsule{display:inline-flex;align-items:center;gap:8px;height:36px;padding:0 12px;border:1px solid #e5e7eb;background:transparent;color:#fff;transition:background-color .2s ease,border-color .2s ease}.credit-capsule--compact{height:38px;gap:6px;padding:0 14px}.credit-capsule--compact .credit-capsule__icon,.credit-capsule--compact .credit-capsule__icon-svg{width:20px;height:20px}.credit-capsule__icon{display:inline-flex;align-items:center;justify-content:center;width:22px;height:22px;border-radius:9999px;color:#fff;flex-shrink:0}.credit-capsule__icon-svg{width:20px;height:20px;fill:currentColor}.credit-capsule__amount{padding:0 5px;font-size:18px;font-weight:600;line-height:1;font-variant-numeric:tabular-nums;white-space:nowrap}.dark .credit-capsule{border-color:#ffffff1a;background:transparent}.react-flow{direction:ltr;--xy-edge-stroke-default: #b1b1b7;--xy-edge-stroke-width-default: 1;--xy-edge-stroke-selected-default: #555;--xy-connectionline-stroke-default: #b1b1b7;--xy-connectionline-stroke-width-default: 1;--xy-attribution-background-color-default: rgba(255, 255, 255, .5);--xy-minimap-background-color-default: #fff;--xy-minimap-mask-background-color-default: rgba(240, 240, 240, .6);--xy-minimap-mask-stroke-color-default: transparent;--xy-minimap-mask-stroke-width-default: 1;--xy-minimap-node-background-color-default: #e2e2e2;--xy-minimap-node-stroke-color-default: transparent;--xy-minimap-node-stroke-width-default: 2;--xy-background-color-default: transparent;--xy-background-pattern-dots-color-default: #91919a;--xy-background-pattern-lines-color-default: #eee;--xy-background-pattern-cross-color-default: #e2e2e2;background-color:var(--xy-background-color, var(--xy-background-color-default));--xy-node-color-default: inherit;--xy-node-border-default: 1px solid #1a192b;--xy-node-background-color-default: #fff;--xy-node-group-background-color-default: rgba(240, 240, 240, .25);--xy-node-boxshadow-hover-default: 0 1px 4px 1px rgba(0, 0, 0, .08);--xy-node-boxshadow-selected-default: 0 0 0 .5px #1a192b;--xy-node-border-radius-default: 3px;--xy-handle-background-color-default: #1a192b;--xy-handle-border-color-default: #fff;--xy-selection-background-color-default: rgba(0, 89, 220, .08);--xy-selection-border-default: 1px dotted rgba(0, 89, 220, .8);--xy-controls-button-background-color-default: #fefefe;--xy-controls-button-background-color-hover-default: #f4f4f4;--xy-controls-button-color-default: inherit;--xy-controls-button-color-hover-default: inherit;--xy-controls-button-border-color-default: #eee;--xy-controls-box-shadow-default: 0 0 2px 1px rgba(0, 0, 0, .08);--xy-edge-label-background-color-default: #ffffff;--xy-edge-label-color-default: inherit;--xy-resize-background-color-default: #3367d9}.react-flow.dark{--xy-edge-stroke-default: #3e3e3e;--xy-edge-stroke-width-default: 1;--xy-edge-stroke-selected-default: #727272;--xy-connectionline-stroke-default: #b1b1b7;--xy-connectionline-stroke-width-default: 1;--xy-attribution-background-color-default: rgba(150, 150, 150, .25);--xy-minimap-background-color-default: #141414;--xy-minimap-mask-background-color-default: rgba(60, 60, 60, .6);--xy-minimap-mask-stroke-color-default: transparent;--xy-minimap-mask-stroke-width-default: 1;--xy-minimap-node-background-color-default: #2b2b2b;--xy-minimap-node-stroke-color-default: transparent;--xy-minimap-node-stroke-width-default: 2;--xy-background-color-default: #141414;--xy-background-pattern-dots-color-default: #555;--xy-background-pattern-lines-color-default: #333;--xy-background-pattern-cross-color-default: #333;--xy-node-color-default: #f8f8f8;--xy-node-border-default: 1px solid #3c3c3c;--xy-node-background-color-default: #1e1e1e;--xy-node-group-background-color-default: rgba(240, 240, 240, .25);--xy-node-boxshadow-hover-default: 0 1px 4px 1px rgba(255, 255, 255, .08);--xy-node-boxshadow-selected-default: 0 0 0 .5px #999;--xy-handle-background-color-default: #bebebe;--xy-handle-border-color-default: #1e1e1e;--xy-selection-background-color-default: rgba(200, 200, 220, .08);--xy-selection-border-default: 1px dotted rgba(200, 200, 220, .8);--xy-controls-button-background-color-default: #2b2b2b;--xy-controls-button-background-color-hover-default: #3e3e3e;--xy-controls-button-color-default: #f8f8f8;--xy-controls-button-color-hover-default: #fff;--xy-controls-button-border-color-default: #5b5b5b;--xy-controls-box-shadow-default: 0 0 2px 1px rgba(0, 0, 0, .08);--xy-edge-label-background-color-default: #141414;--xy-edge-label-color-default: #f8f8f8}.react-flow__background{background-color:var(--xy-background-color-props, var(--xy-background-color, var(--xy-background-color-default)));pointer-events:none;z-index:-1}.react-flow__container{position:absolute;width:100%;height:100%;top:0;left:0}.react-flow__pane{z-index:1;touch-action:none}.react-flow__pane.draggable{cursor:grab}.react-flow__pane.dragging{cursor:grabbing}.react-flow__pane.selection{cursor:pointer}.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__edge-path{stroke:var(--xy-edge-stroke, var(--xy-edge-stroke-default));stroke-width:var(--xy-edge-stroke-width, var(--xy-edge-stroke-width-default));fill:none}.react-flow__connection-path{stroke:var(--xy-connectionline-stroke, var(--xy-connectionline-stroke-default));stroke-width:var(--xy-connectionline-stroke-width, var(--xy-connectionline-stroke-width-default));fill:none}.react-flow .react-flow__edges{position:absolute}.react-flow .react-flow__edges svg{overflow:visible;position:absolute;pointer-events:none}.react-flow__edge{pointer-events:visibleStroke}.react-flow__edge.selectable{cursor:pointer}.react-flow__edge.animated path{stroke-dasharray:5;animation:dashdraw .5s linear infinite}.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.selectable:focus .react-flow__edge-path,.react-flow__edge.selectable:focus-visible .react-flow__edge-path{stroke:var(--xy-edge-stroke-selected, var(--xy-edge-stroke-selected-default))}.react-flow__edge-textwrapper{pointer-events:all}.react-flow__edge .react-flow__edge-text{pointer-events:none;-webkit-user-select:none;-moz-user-select:none;user-select:none}.react-flow__arrowhead polyline{stroke:var(--xy-edge-stroke, var(--xy-edge-stroke-default))}.react-flow__arrowhead polyline.arrowclosed{fill:var(--xy-edge-stroke, var(--xy-edge-stroke-default))}.react-flow__connection{pointer-events:none}.react-flow__connection .animated{stroke-dasharray:5;animation:dashdraw .5s linear infinite}svg.react-flow__connectionline{z-index:1001;overflow:visible;position:absolute}.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:default}.react-flow__node.selectable{cursor:pointer}.react-flow__node.draggable{cursor:grab;pointer-events:all}.react-flow__node.draggable.dragging{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:grab}.react-flow__handle{position:absolute;pointer-events:none;min-width:5px;min-height:5px;width:6px;height:6px;background-color:var(--xy-handle-background-color, var(--xy-handle-background-color-default));border:1px solid var(--xy-handle-border-color, var(--xy-handle-border-color-default));border-radius:100%}.react-flow__handle.connectingfrom{pointer-events:all}.react-flow__handle.connectionindicator{pointer-events:all;cursor:crosshair}.react-flow__handle-bottom{top:auto;left:50%;bottom:0;transform:translate(-50%,50%)}.react-flow__handle-top{top:0;left:50%;transform:translate(-50%,-50%)}.react-flow__handle-left{top:50%;left:0;transform:translate(-50%,-50%)}.react-flow__handle-right{top:50%;right:0;transform:translate(50%,-50%)}.react-flow__edgeupdater{cursor:move;pointer-events:all}.react-flow__pane.selection .react-flow__panel{pointer-events:none}.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.top.center,.react-flow__panel.bottom.center{left:50%;transform:translate(-15px) translate(-50%)}.react-flow__panel.left{left:0}.react-flow__panel.right{right:0}.react-flow__panel.left.center,.react-flow__panel.right.center{top:50%;transform:translateY(-15px) translateY(-50%)}.react-flow__attribution{font-size:10px;background:var(--xy-attribution-background-color, var(--xy-attribution-background-color-default));padding:2px 3px;margin:0}.react-flow__attribution a{text-decoration:none;color:#999}@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;left:0;top:0}.react-flow__viewport-portal{position:absolute;width:100%;height:100%;left:0;top:0;-webkit-user-select:none;-moz-user-select:none;user-select:none}.react-flow__minimap{background:var( --xy-minimap-background-color-props, var(--xy-minimap-background-color, var(--xy-minimap-background-color-default)) )}.react-flow__minimap-svg{display:block}.react-flow__minimap-mask{fill:var( --xy-minimap-mask-background-color-props, var(--xy-minimap-mask-background-color, var(--xy-minimap-mask-background-color-default)) );stroke:var( --xy-minimap-mask-stroke-color-props, var(--xy-minimap-mask-stroke-color, var(--xy-minimap-mask-stroke-color-default)) );stroke-width:var( --xy-minimap-mask-stroke-width-props, var(--xy-minimap-mask-stroke-width, var(--xy-minimap-mask-stroke-width-default)) )}.react-flow__minimap-node{fill:var( --xy-minimap-node-background-color-props, var(--xy-minimap-node-background-color, var(--xy-minimap-node-background-color-default)) );stroke:var( --xy-minimap-node-stroke-color-props, var(--xy-minimap-node-stroke-color, var(--xy-minimap-node-stroke-color-default)) );stroke-width:var( --xy-minimap-node-stroke-width-props, var(--xy-minimap-node-stroke-width, var(--xy-minimap-node-stroke-width-default)) )}.react-flow__background-pattern.dots{fill:var( --xy-background-pattern-color-props, var(--xy-background-pattern-color, var(--xy-background-pattern-dots-color-default)) )}.react-flow__background-pattern.lines{stroke:var( --xy-background-pattern-color-props, var(--xy-background-pattern-color, var(--xy-background-pattern-lines-color-default)) )}.react-flow__background-pattern.cross{stroke:var( --xy-background-pattern-color-props, var(--xy-background-pattern-color, var(--xy-background-pattern-cross-color-default)) )}.react-flow__controls{display:flex;flex-direction:column;box-shadow:var(--xy-controls-box-shadow, var(--xy-controls-box-shadow-default))}.react-flow__controls.horizontal{flex-direction:row}.react-flow__controls-button{display:flex;justify-content:center;align-items:center;height:26px;width:26px;padding:4px;border:none;background:var(--xy-controls-button-background-color, var(--xy-controls-button-background-color-default));border-bottom:1px solid var( --xy-controls-button-border-color-props, var(--xy-controls-button-border-color, var(--xy-controls-button-border-color-default)) );color:var( --xy-controls-button-color-props, var(--xy-controls-button-color, var(--xy-controls-button-color-default)) );cursor:pointer;-webkit-user-select:none;-moz-user-select:none;user-select:none}.react-flow__controls-button svg{width:100%;max-width:12px;max-height:12px;fill:currentColor}.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-input,.react-flow__node-default,.react-flow__node-output,.react-flow__node-group{padding:10px;border-radius:var(--xy-node-border-radius, var(--xy-node-border-radius-default));width:150px;font-size:12px;color:var(--xy-node-color, var(--xy-node-color-default));text-align:center;border:var(--xy-node-border, var(--xy-node-border-default));background-color:var(--xy-node-background-color, var(--xy-node-background-color-default))}.react-flow__node-input.selectable:hover,.react-flow__node-default.selectable:hover,.react-flow__node-output.selectable:hover,.react-flow__node-group.selectable:hover{box-shadow:var(--xy-node-boxshadow-hover, var(--xy-node-boxshadow-hover-default))}.react-flow__node-input.selectable.selected,.react-flow__node-input.selectable:focus,.react-flow__node-input.selectable:focus-visible,.react-flow__node-default.selectable.selected,.react-flow__node-default.selectable:focus,.react-flow__node-default.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:var(--xy-node-boxshadow-selected, var(--xy-node-boxshadow-selected-default))}.react-flow__node-group{background-color:var(--xy-node-group-background-color, var(--xy-node-group-background-color-default))}.react-flow__nodesselection-rect,.react-flow__selection{background:var(--xy-selection-background-color, var(--xy-selection-background-color-default));border:var(--xy-selection-border, var(--xy-selection-border-default))}.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-button:hover{background:var( --xy-controls-button-background-color-hover-props, var(--xy-controls-button-background-color-hover, var(--xy-controls-button-background-color-hover-default)) );color:var( --xy-controls-button-color-hover-props, var(--xy-controls-button-color-hover, var(--xy-controls-button-color-hover-default)) )}.react-flow__controls-button:disabled{pointer-events:none}.react-flow__controls-button:disabled svg{fill-opacity:.4}.react-flow__controls-button:last-child{border-bottom:none}.react-flow__controls.horizontal .react-flow__controls-button{border-bottom:none;border-right:1px solid var( --xy-controls-button-border-color-props, var(--xy-controls-button-border-color, var(--xy-controls-button-border-color-default)) )}.react-flow__controls.horizontal .react-flow__controls-button:last-child{border-right:none}.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:5px;height:5px;border:1px solid #fff;border-radius:1px;background-color:var(--xy-resize-background-color, var(--xy-resize-background-color-default));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:var(--xy-resize-background-color, var(--xy-resize-background-color-default));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%}.react-flow__edge-textbg{fill:var(--xy-edge-label-background-color, var(--xy-edge-label-background-color-default))}.react-flow__edge-text{fill:var(--xy-edge-label-color, var(--xy-edge-label-color-default))}[data-theme=dark]{--bg-primary: #000000;--bg-secondary: rgb(28, 28, 28);--bg-tertiary: rgb(28, 28, 28);--text-primary: #f8fafc;--text-secondary: #94a3b8;--text-tertiary: #94a3b8;--border-color: #1e2638;--border-hover: color-mix(in oklab, var(--color-white) 10%, transparent);--shadow-color: rgba(0, 0, 0, .3);--shadow-hover: rgba(0, 0, 0, .4)}[data-theme=dark] .node-run-btn:hover{box-shadow:0 0 16px var(--primary)}*{margin:0;padding:0;box-sizing:border-box}html,body{width:100%;height:100%}body{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;background-color:var(--bg-primary, #000000);transition:background-color .3s ease,color .3s ease}#app{width:100%;height:100%;overflow:hidden}[data-theme=dark] body{background-color:#000}.workflow-container{display:flex;flex-direction:column;width:100%;height:100%;background-color:var(--bg-primary, #000000)}.workflow-canvas{width:100%;height:100%;position:relative;flex:1;background-color:var(--bg-primary, #000000)}.workflow-preview-container{overflow:auto}.workflow-preview-react-flow .react-flow__pane{cursor:grab!important}.workflow-preview-react-flow .react-flow__pane:active{cursor:grabbing!important}.workflow-preview-react-flow .react-flow__node{pointer-events:auto!important;cursor:grab!important}.workflow-preview-react-flow .react-flow__node:active{cursor:grabbing!important}.workflow-preview-react-flow .react-flow__node textarea{pointer-events:auto!important;cursor:text!important}.workflow-preview-react-flow .react-flow__node input:not([type=text]):not([type=number]),.workflow-preview-react-flow .react-flow__node select,.workflow-preview-react-flow .react-flow__node button{pointer-events:none!important}.workflow-preview-react-flow .react-flow__resize-control{pointer-events:auto!important}.workflow-preview-react-flow .react-flow__resize-control.handle{pointer-events:auto!important;opacity:0!important}.workflow-preview-react-flow .react-flow__resize-control.handle:hover,.workflow-preview-react-flow .react-flow__resize-control.handle:active{opacity:1!important}.workflow-preview-react-flow .react-flow__resize-control.handle.top.left{cursor:nwse-resize!important}.workflow-preview-react-flow .react-flow__resize-control.handle.top.right,.workflow-preview-react-flow .react-flow__resize-control.handle.bottom.left{cursor:nesw-resize!important}.workflow-preview-react-flow .react-flow__resize-control.handle.bottom.right{cursor:nwse-resize!important}[data-theme=dark] .workflow-container{background-color:var(--bg-primary)}[data-theme=dark] .workflow-canvas{background-color:var(--bg-primary);transition:background-color .3s ease}.workflow-toolbar{display:flex;align-items:center;justify-content:space-between;padding:16px 24px;background-color:var(--bg-secondary, #ffffff);border-bottom:1px solid var(--border-color, #e5e7eb);box-shadow:0 2px 4px #0000000d;z-index:10}.toolbar-left{display:flex;align-items:center;gap:16px;flex:1}.toolbar-right{display:flex;align-items:center;gap:12px}.toolbar-buttons{display:flex;gap:12px}.toolbar-btn{padding:10px 20px;font-size:14px;font-weight:500;color:#fff;background:linear-gradient(135deg,var(--primary) 0%,var(--primary) 100%);border:none;border-radius:8px;cursor:pointer;transition:all .3s ease;box-shadow:0 2px 8px var(--shadow-color, rgba(0, 0, 0, .15))}.toolbar-btn:hover{transform:translateY(-2px);box-shadow:0 4px 12px var(--shadow-hover, rgba(0, 0, 0, .2))}.toolbar-btn:active{transform:translateY(0)}.save-status{display:flex;align-items:center;padding:6px 12px;background-color:var(--bg-primary, #000000);border-radius:6px;font-size:13px;font-weight:500;transition:all .3s ease}.save-saving{color:var(--primary);animation:pulse 1.5s ease-in-out infinite}.save-saved{color:#10b981}.save-unsaved{color:#f59e0b}.product-logo{display:flex;align-items:center;justify-content:center;width:40px;height:40px;background:linear-gradient(135deg,var(--primary) 0%,var(--primary) 100%);border-radius:8px;cursor:pointer;transition:all .3s ease;box-shadow:0 2px 8px var(--shadow-color, rgba(0, 0, 0, .15))}.product-logo:hover{transform:scale(1.05);box-shadow:0 4px 12px var(--shadow-hover, rgba(0, 0, 0, .2))}.logo-icon{font-size:20px}.canvas-title{display:flex;align-items:center}.canvas-title-text{font-size:18px;font-weight:600;color:var(--text-primary, #111827);cursor:pointer;padding:4px 8px;border-radius:4px;transition:all .2s ease}.canvas-title-text:hover{background-color:var(--bg-hover, #e5e7eb)}.canvas-title-input{font-size:18px;font-weight:600;color:var(--text-primary, #111827);padding:4px 8px;border:2px solid var(--primary);border-radius:4px;outline:none;min-width:250px}.canvas-title-input:focus{border-color:var(--primary)}.run-button{position:relative;display:flex;align-items:center;justify-content:center;gap:0;width:40px;height:40px;padding:0;font-size:10px;font-weight:600;color:#fff;background:linear-gradient(135deg,var(--primary) 0%,var(--primary) 100%);border:none;border-radius:12px;cursor:pointer;box-shadow:0 8px 20px #667eea59;transition:all .3s ease;z-index:50}.run-button:hover:not(:disabled){transform:translateY(-1px);box-shadow:0 10px 24px #667eea73}.run-button:active:not(:disabled){transform:translateY(0)}.run-button:disabled{background:#e0e0e0;color:#999;cursor:not-allowed;box-shadow:none;transform:none}.run-icon{font-size:16px;font-weight:700;line-height:1;display:flex;align-items:center;justify-content:center;margin-top:-1px}.run-text{font-size:14px;display:flex;align-items:center;justify-content:center;margin-top:-1px}.run-button-container{position:relative}.workflow-run-button-wrapper{display:flex;align-items:center;justify-content:center;gap:10px}.workflow-run-button-wrapper .workflow-run-credit-capsule{height:40px;padding:0 10px;border-radius:10px;background:#ffffff1a;border:1px solid rgba(255,255,255,.2);-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px);box-shadow:0 6px 16px #0003,inset 0 1px 1px #ffffff1a}.workflow-run-button-wrapper .workflow-run-credit-capsule .credit-capsule__amount{color:#fff;font-weight:600;padding:0 5px 0 2px}.workflow-run-button-wrapper .icon-button{width:40px;height:40px;border-radius:10px;background:#ffffff1a;border:1px solid rgba(255,255,255,.2);-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px);box-shadow:0 6px 16px #0003,inset 0 1px 1px #ffffff1a;display:inline-flex;align-items:center;justify-content:center;color:#fff;transition:all .3s ease;cursor:pointer}.workflow-run-button-wrapper .icon-button:hover:not(:disabled){background:#ffffff26;box-shadow:0 8px 20px #0000004d,inset 0 1px 1px #fff3;transform:translateY(-2px) scale(1.02)}.workflow-run-button-wrapper .icon-button:active:not(:disabled){transform:translateY(0) scale(.98)}.workflow-run-button-wrapper .run-button{width:auto;min-width:0;height:40px;border-radius:10px;background:#ffffff1a;border:1px solid rgba(255,255,255,.2);-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px);box-shadow:0 6px 16px #0003,inset 0 1px 1px #ffffff1a;display:flex;align-items:center;justify-content:center;gap:8px;padding:0 16px}.workflow-run-button-wrapper .run-button .run-icon{font-size:20px;color:#fff}.workflow-run-button-wrapper .run-button .run-text{font-size:14px;color:#fff;font-weight:500}.workflow-run-button-wrapper .run-button:hover:not(:disabled){background:#ffffff26;box-shadow:0 8px 20px #0000004d,inset 0 1px 1px #fff3;transform:translateY(-2px) scale(1.02)}.workflow-run-button-wrapper .run-button:active:not(:disabled){transform:translateY(0) scale(.98)}.workflow-run-button-wrapper .run-button:disabled{cursor:not-allowed;opacity:.5}.dark .workflow-run-button-wrapper .workflow-run-credit-capsule{background:#ffffff1a;border-color:#fff3}.dark .workflow-run-button-wrapper .workflow-run-credit-capsule .credit-capsule__amount{color:#fff;font-weight:600;padding:0 5px 0 2px}.workflow-more-menu{position:relative;cursor:pointer}.workflow-more-menu .workflow-more-menu-dropdown{position:absolute;top:100%;right:0;margin-top:8px;width:320px;background:#fff;border:1px solid rgba(0,0,0,.08);border-radius:12px;box-shadow:0 4px 20px #0000001f;z-index:100;padding:8px;display:flex;flex-direction:column;gap:4px}.workflow-more-menu .workflow-more-menu-item{display:flex;align-items:flex-start;padding:12px;border-radius:8px;transition:background-color .2s}.workflow-more-menu .workflow-more-menu-item:hover{background-color:#0000000a}.workflow-more-menu .workflow-more-menu-item-left{flex-shrink:0;width:32px;height:32px;display:flex;align-items:center;justify-content:center;background:#0000000a;border-radius:8px;margin-right:12px;color:#374151;margin-top:1px}.workflow-more-menu .workflow-more-menu-item-center{flex:1;min-width:0;display:flex;flex-direction:column;gap:4px}.workflow-more-menu .workflow-more-menu-item-title{font-size:14px;font-weight:500;color:#111827;line-height:1.2}.workflow-more-menu .workflow-more-menu-item-subtitle{font-size:12px;color:#6b7280;line-height:1.4;white-space:normal}.workflow-more-menu .workflow-more-menu-item-right{flex-shrink:0;margin-left:12px;align-self:flex-start}.workflow-more-menu .workflow-more-menu-item-right .workflow-more-menu-action-btn{padding:6px 12px;font-size:13px;font-weight:500;color:#83e359;background:#3b82f61a;border:none;border-radius:6px;cursor:pointer;transition:all .2s}.workflow-more-menu .workflow-more-menu-item-right .workflow-more-menu-action-btn:hover{background:#3b82f626}.workflow-action-sidebar{position:absolute;left:24px;top:50%;transform:translateY(-50%);z-index:55;display:flex;flex-direction:column;align-items:center;background:#1c1c1ce6;-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px);border:1px solid rgba(255,255,255,.1);padding:12px 0;box-shadow:0 8px 32px #0003;gap:8px}.workflow-action-sidebar .node-menu{position:static;transform:none;z-index:auto}.node-menu-toggle-light{background:#fff!important;color:#222!important;box-shadow:none!important;width:30px!important;height:30px!important;margin:0 8px}.node-menu-toggle-light:hover{background:#ffffff1a!important;color:#fff!important}.node-menu-toggle-light.expanded{background:#ffffff26!important;color:#fff!important}.theme-toggle-btn{display:flex;align-items:center;justify-content:center;width:40px;height:40px;background-color:var(--bg-tertiary, var(--bg-tertiary, #f9fafb));border:1px solid var(--border-color, var(--border-color, #e5e7eb));border-radius:8px;cursor:pointer;transition:all .3s ease;font-size:20px}.theme-toggle-btn:hover{background-color:var(--bg-secondary, var(--bg-hover, #e5e7eb));border-color:var(--border-hover, var(--primary));transform:scale(1.05)}[data-theme=dark] .workflow-toolbar{background-color:var(--bg-secondary);border-bottom-color:var(--border-color);box-shadow:0 2px 4px var(--shadow-color)}[data-theme=dark] .canvas-title-text{color:var(--text-primary)}[data-theme=dark] .canvas-title-text:hover{background-color:var(--bg-tertiary)}[data-theme=dark] .canvas-title-input{color:var(--text-primary);background-color:var(--bg-tertiary);border-color:var(--border-color)}[data-theme=dark] .canvas-title-input:focus{border-color:var(--border-hover)}[data-theme=dark] .theme-toggle-btn{background-color:var(--bg-tertiary);border-color:var(--border-color)}[data-theme=dark] .theme-toggle-btn:hover{background-color:var(--bg-secondary);border-color:var(--border-hover)}[data-theme=dark] .run-button{box-shadow:0 8px 20px #0006}[data-theme=dark] .run-button:hover:not(:disabled){box-shadow:0 10px 24px #00000080}[data-theme=dark] .run-button:disabled{background:#3d3d3d;color:gray}[data-theme=dark] .workflow-more-menu .workflow-more-menu-dropdown{background:var(--bg-secondary);border-color:var(--border-color);box-shadow:0 4px 20px #0006}[data-theme=dark] .workflow-more-menu .workflow-more-menu-item:hover{background-color:var(--bg-tertiary)}[data-theme=dark] .workflow-more-menu .workflow-more-menu-item-left{background:var(--bg-tertiary);color:var(--text-secondary)}[data-theme=dark] .workflow-more-menu .workflow-more-menu-item-title{color:var(--text-primary)}[data-theme=dark] .workflow-more-menu .workflow-more-menu-item-subtitle{color:var(--text-secondary)}[data-theme=dark] .workflow-more-menu .workflow-more-menu-item-right .workflow-more-menu-action-btn{color:#83e359;background:#60a5fa1a}[data-theme=dark] .workflow-more-menu .workflow-more-menu-item-right .workflow-more-menu-action-btn:hover{background:#60a5fa33}.workflow-run-confirm-dialog{max-width:420px;border-radius:16px;border:1px solid rgba(15,23,42,.08);background:linear-gradient(180deg,#fff,#f8fafc);box-shadow:0 24px 60px #0f172a2e,0 8px 24px #0f172a14;padding:22px 22px 18px;-webkit-backdrop-filter:blur(18px);backdrop-filter:blur(18px)}.workflow-run-confirm-dialog__desc{font-size:15px;line-height:1.7;color:#0f172a;text-align:left;padding:4px 2px 2px;font-weight:500}.workflow-run-confirm-dialog__footer{margin-top:16px;gap:10px}.workflow-run-confirm-dialog__cancel,.workflow-run-confirm-dialog__confirm{min-width:92px;height:38px;border-radius:12px;font-weight:600;transition:all .2s ease}.workflow-run-confirm-dialog__cancel{border-color:#0f172a1a;color:#475569;background:#ffffffe6}.workflow-run-confirm-dialog__cancel:hover{background:#f8fafc;border-color:#0f172a2e;color:#1e293b}.workflow-run-confirm-dialog__confirm{border:1px solid rgba(132,227,90,.42);background:linear-gradient(180deg,#f0fdf4fa,#dcfce7f5);color:#16a34a;box-shadow:inset 0 1px #ffffffa6,0 10px 24px #22c55e29}.workflow-run-confirm-dialog__confirm:hover{transform:translateY(-1px);border-color:#22c55e85;box-shadow:inset 0 1px #ffffffb3,0 14px 28px #22c55e38;background:linear-gradient(180deg,#ecfdf5,#d1fae5)}.workflow-run-confirm-dialog__confirm:active{transform:translateY(0);box-shadow:inset 0 1px #ffffff8c,0 8px 18px #22c55e29}[data-theme=dark] .workflow-run-confirm-dialog{border:1px solid rgba(255,255,255,.08);background:linear-gradient(180deg,#18181bf5,#111827fa);box-shadow:0 28px 70px #0000008c,0 10px 30px #0000004d;-webkit-backdrop-filter:blur(22px);backdrop-filter:blur(22px)}[data-theme=dark] .workflow-run-confirm-dialog__desc{color:#f8fafceb}[data-theme=dark] .workflow-run-confirm-dialog__cancel{background:#ffffff0a;color:#e2e8f0eb;border-color:#ffffff1a}[data-theme=dark] .workflow-run-confirm-dialog__cancel:hover{background:#ffffff14;color:#fff;border-color:#ffffff29}[data-theme=dark] .workflow-run-confirm-dialog__confirm{background:linear-gradient(180deg,#84e35a24,#6bc83e2e);color:#84e35a;border:1px solid rgba(132,227,90,.34);box-shadow:inset 0 1px #ffffff0f,0 12px 28px #6bc83e2e}[data-theme=dark] .workflow-run-confirm-dialog__confirm:hover{background:linear-gradient(180deg,#84e35a33,#6bc83e3d);border-color:#84e35a7a;box-shadow:inset 0 1px #ffffff14,0 16px 34px #6bc83e3d}[data-theme=dark] .workflow-run-confirm-dialog__confirm:active{box-shadow:inset 0 1px #ffffff0a,0 10px 22px #6bc83e2e}.ghost-clone-node{opacity:.5!important;pointer-events:none!important;z-index:1000!important;box-shadow:0 0 0 2px #667eea80,0 4px 12px #00000014!important;filter:grayscale(20%) brightness(1.1);transition:none!important}.ghost-clone-node .react-flow__handle{opacity:0!important;pointer-events:none!important}.input-node{position:relative;width:100%;height:100%;min-width:250px;min-height:250px;background-color:var(--bg-secondary, var(--bg-secondary, #ffffff));border:1px solid #f3f4f6;border-radius:12px;padding:0;box-shadow:0 4px 12px #00000014;transition:all .3s ease;display:flex;flex-direction:column;overflow:visible!important;box-sizing:border-box}.input-node>.node-content{position:absolute;top:0;left:0;right:0;bottom:0}.input-node>.node-content--overflow-hidden{overflow:hidden}.input-node.has-image{min-height:auto}.input-node.has-image .node-content{flex:1;min-height:0;position:absolute;overflow:hidden;border-radius:12px}.input-node.has-image .file-upload,.input-node.has-image .file-preview{width:100%;height:100%;overflow:hidden;border-radius:inherit}.input-node.has-error{border-color:#f87171;box-shadow:0 0 0 2px #f8717133,0 4px 6px #0000001a}.upload-overlay{position:absolute;top:0;right:0;bottom:0;left:0;z-index:3;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;background:#0000006b;pointer-events:none}.upload-dots{display:inline-flex;align-items:center;justify-content:center;gap:6px}.upload-dot{width:8px;height:8px;border-radius:999px;background:#fffffff2;animation:upload-dot-bounce 1s ease-in-out infinite}.upload-dots--dark .upload-dot{background:#666}.upload-dot-1{animation-delay:0s}.upload-dot-2{animation-delay:.15s}.upload-dot-3{animation-delay:.3s}@keyframes upload-dot-bounce{0%,80%,to{transform:translateY(0);opacity:.45}40%{transform:translateY(-4px);opacity:1}}.node-error-message{position:absolute;left:12px;right:12px;top:12px;padding:8px 24px 8px 12px;color:#f87171;font-size:12px;line-height:1.4;word-break:break-word;text-align:left;background:#ffffffeb;border:1px solid rgba(248,113,113,.35);border-radius:8px;box-shadow:0 4px 10px #f871711f;z-index:10;display:flex;align-items:flex-start}.node-error-message__text{flex:1}.node-error-message__close{position:absolute;top:4px;right:4px;background:transparent;border:none;color:#f87171;padding:4px;border-radius:4px;cursor:pointer;display:flex;align-items:center;justify-content:center;transition:all .2s ease;opacity:.7;z-index:11}.node-error-message__close:hover{background:#f871711a;opacity:1}.node-partial-success-banner{position:absolute;left:50%;bottom:calc(100% + 32px);transform:translate(-50%);z-index:30;min-width:240px;max-width:min(420px,100vw - 48px);padding:10px 14px;color:#b91c1c;font-size:12px;line-height:1.5;text-align:left;background:#fffffffa;border:1px solid rgba(248,113,113,.35);border-radius:10px;box-shadow:0 10px 24px #f8717124;pointer-events:none}.node-partial-success-banner__text{display:block;word-break:break-word}.node-partial-success-banner__connector{position:absolute;left:50%;top:100%;width:2px;height:32px;transform:translate(-50%);background:linear-gradient(180deg,#f871718c,#f871710d);border-radius:999px}.node-partial-success-banner:after{content:"";position:absolute;left:50%;top:calc(100% + 32px);width:8px;height:8px;transform:translate(-50%,-50%);border-radius:999px;background:#f87171d9;box-shadow:0 0 0 4px #f871711f}@keyframes holding-border-breath{0%,to{border-color:#667eea4d;box-shadow:0 0 0 2px #667eea0d}50%{border-color:#667eeacc;box-shadow:0 0 0 3px #667eea26}}.node-holding-state{width:100%;height:100%;min-height:150px;display:flex;align-items:center;justify-content:center;position:relative;overflow:hidden;background-color:var(--bg-secondary, #ffffff);border-radius:inherit}.node-holding-chip{display:flex;flex-direction:column;align-items:center;gap:16px;position:relative;z-index:2}.holding-radar-wrapper{position:relative;width:48px;height:48px;display:flex;align-items:center;justify-content:center}.holding-radar-core{width:12px;height:12px;background-color:#d1d5db;border-radius:50%;position:relative;z-index:2;box-shadow:0 0 10px #9ca3af66}.holding-radar-wave{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);width:100%;height:100%;border-radius:50%;border:1px solid #d1d5db;animation:radar-wave-out 2s cubic-bezier(.1,.5,.9,.1) infinite}.holding-radar-wave:nth-child(2){animation-delay:.6s}.holding-radar-wave:nth-child(3){animation-delay:1.2s}.holding-chip-text{font-size:14px;color:#9ca3af;letter-spacing:1px;font-weight:500;text-transform:uppercase;animation:holding-text-pulse 2s ease-in-out infinite}@keyframes radar-wave-out{0%{width:12px;height:12px;opacity:.8}to{width:60px;height:60px;opacity:0}}@keyframes holding-text-pulse{0%,to{opacity:.6}50%{opacity:1}}.function-node{position:relative;width:100%;height:100%;min-width:250px;border-radius:12px}.function-node.is-holding .node-display-area{border-color:#667eea73;box-shadow:0 0 0 2px #667eea1f,0 8px 18px #667eea2e;animation:holding-border-breath 1.6s ease-in-out infinite}.function-node.has-image,.function-node.has-image .node-display-area{min-height:auto}.function-node.has-image .node-content{min-height:0;position:relative}.function-node.has-error{border-color:#f87171;box-shadow:0 0 0 2px #f8717133,0 4px 6px #0000001a}.function-node.has-error .node-display-area{border-color:#f87171}.function-node>.multi-image-shadow-stack{position:absolute;top:0;left:0;width:100%;height:100%;z-index:1;overflow:visible;border-radius:12px}.function-node>.multi-image-shadow-stack.is-collapsed{pointer-events:auto;cursor:pointer}.function-node>.multi-image-shadow-stack.is-expanded{pointer-events:none}.function-node>.multi-image-shadow-stack .multi-image-shadow-card{position:absolute;top:0;right:0;bottom:0;left:0;border-radius:inherit;background:#ffffffd1;border:1px solid rgba(255,255,255,.75);box-shadow:0 18px 38px #0f172a1f;transform-origin:left center;transition:transform .22s ease,opacity .22s ease,box-shadow .22s ease}.function-node>.multi-image-shadow-stack .multi-image-shadow-card--back{transform:translate(18px,12px) rotate(5deg);opacity:.46}.function-node>.multi-image-shadow-stack .multi-image-shadow-card--middle{transform:translate(10px,6px) rotate(2.8deg);opacity:.7}.function-node>.multi-image-shadow-stack.is-expanded .multi-image-shadow-card{opacity:0;transform:none;pointer-events:none}.node-display-area{width:100%;height:100%;min-width:250px;min-height:250px;background-color:var(--bg-secondary, var(--bg-secondary, #ffffff));border:1px solid transparent;border-radius:12px;padding:0;box-shadow:0 4px 12px #00000014;transition:all .3s ease;position:relative;display:flex;flex-direction:column;z-index:2;overflow:visible;isolation:isolate;transform:translateZ(0)}.node-display-area>.node-content{position:absolute;top:0;left:0;right:0;bottom:0;overflow:hidden;border-radius:inherit}.function-node.selected .node-display-area{border-color:var(--primary);box-shadow:0 6px 16px #0000001f}.node-display-area .node-result-image.multi-image-expanded,.node-display-area .node-result-image.multi-image-collapsed{overflow:visible}.node-header{width:100%;position:absolute;top:-24px;padding-bottom:6px;left:0;display:flex;align-items:center;justify-content:space-between;height:24px;z-index:1}.function-node .node-header{right:0}.node-header-left{display:flex;align-items:center;gap:5px;flex:1;min-width:0}.node-header-right{display:flex;align-items:center;gap:2px}.node-header-download-btn{display:flex;align-items:center;justify-content:center;width:22px;height:22px;border:none;border-radius:4px;background:transparent;color:#f5f5f5;cursor:pointer;transition:all .2s ease;padding:0}.node-header-download-btn:hover{color:var(--primary-color, var(--primary))}.node-header-download-btn:active{transform:scale(.9)}.node-model-trigger-content{display:inline-flex;align-items:center;gap:6px;min-width:0}.node-model-trigger-content__label{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.node-model-option-title{display:inline-flex;align-items:center;gap:6px;min-width:-moz-max-content;min-width:max-content;max-width:none;white-space:nowrap}.node-model-option-title__label{white-space:nowrap;flex-shrink:0}.node-model-tags{display:inline-flex;align-items:center;gap:4px;min-width:0;flex-wrap:nowrap}.node-model-tag{display:inline-flex;align-items:center;justify-content:center;height:18px;padding:0 6px;border-radius:6px;font-size:10px;line-height:1;font-weight:600;white-space:nowrap;border:1px solid transparent;flex-shrink:0}.node-model-tag--status{color:#fff;background:linear-gradient(135deg,#38bdf8,#34d399);border-color:#38bdf82e}.node-model-tag--discount{color:#92400e;background:#fef3c7;border-color:#fcd34d}.node-model-tag--ability{color:#1d4ed8;background:#dbeafe;border-color:#93c5fd}.dark .node-model-tag--status{color:#eaffff;background:linear-gradient(135deg,#0ea5e9,#10b981);border-color:#67e8f947}.dark .node-model-tag--discount{color:#fde68a;background:#facc1524;border-color:#facc154d}.dark .node-model-tag--ability{color:#bfdbfe;background:#3b82f629;border-color:#60a5fa4d}.action-btn-expand{width:auto;padding:0 8px;display:flex;align-items:center;gap:4px;background:#0009;border-radius:16px;font-size:12px;font-weight:500;height:24px}.action-btn-expand svg{transition:transform .2s ease}.action-btn-expand:hover,.action-btn-expand:active{background:#000c;color:#fff}.action-btn-expand:hover svg,.action-btn-expand:active svg{transform:rotate(-90deg)}.node-run-btn{position:absolute;bottom:8px;right:8px;display:flex;align-items:center;justify-content:center;width:28px;height:28px;border:1px solid transparent;border-radius:50%;background:transparent;color:var(--dark-primary-color, #84E35A);cursor:pointer;transition:all .2s ease;padding:0;box-shadow:none;z-index:10}.node-run-btn:hover{transform:scale(1.1)}.node-run-btn:active{transform:scale(.95)}.node-run-btn--disabled,.node-run-btn:disabled{background:#9ca3af;color:#f3f4f6;box-shadow:none;cursor:not-allowed;opacity:.6}.node-run-btn--disabled:hover,.node-run-btn:disabled:hover{transform:none;box-shadow:none}.node-run-btn--disabled:active,.node-run-btn:disabled:active{transform:none}.node-icon-wrapper{display:flex;align-items:center;justify-content:center;color:#f5f5f5}.node-drag-handle{cursor:grab;-webkit-user-select:none;-moz-user-select:none;user-select:none}.node-drag-handle:active{cursor:grabbing}.node-header-drag-zone{flex:1;min-width:0;height:100%;cursor:grab}.node-header-drag-zone:active{cursor:grabbing}.node-top-drag-hotzone{position:absolute;top:0;left:12px;right:12px;height:12px;z-index:1000;cursor:grab;background:transparent}.node-top-drag-hotzone:active{cursor:grabbing}.node-left-drag-hotzone{position:absolute;left:0;top:12px;bottom:12px;width:12px;z-index:10;cursor:grab;background:transparent}.node-left-drag-hotzone:active{cursor:grabbing}.node-right-drag-hotzone{position:absolute;right:0;top:12px;bottom:12px;width:12px;z-index:10;cursor:grab;background:transparent}.node-right-drag-hotzone:active{cursor:grabbing}.node-bottom-drag-hotzone{position:absolute;bottom:-12px;left:12px;right:12px;height:12px;z-index:10;cursor:grab;background:transparent;pointer-events:none}.node-bottom-drag-hotzone:active{cursor:grabbing}.node-icon{font-size:18px;color:#f5f5f5}.node-label{font-size:12px;font-weight:600;color:#f5f5f5;cursor:pointer;transition:color .2s ease;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:100%}.node-label:hover{color:var(--primary)}.function-node .node-label{flex:1;min-width:0}.node-label-input{font-size:12px;font-weight:600;color:#f5f5f5;border:none;outline:none;background:transparent;padding:0;min-width:80px;width:100%;text-align:left;font-family:inherit;border-bottom:1px solid var(--primary);transition:border-color .2s ease}.node-label-input:focus{border-color:var(--primary);outline:none}.function-node .node-label-input{flex:1;min-width:0}.node-content{position:relative;display:flex;flex-direction:column;font-size:16px;flex:1;width:100%;height:100%;overflow:visible;border-radius:12px;isolation:isolate}.node-thumbnail-area{width:100%;display:flex;flex-wrap:wrap;gap:8px;margin-bottom:8px}.node-thumbnail-image{width:50px;height:50px;-o-object-fit:cover;object-fit:cover;display:block;border-radius:8px;border:1px solid #f3f4f6;background-color:var(--bg-tertiary, #f9fafb)}.node-bottom-input{width:100%;height:210px;font-size:13px;color:var(--text-primary, var(--text-primary, #111827));border:none;border-radius:8px;outline:none;background-color:transparent;resize:none;transition:all .2s ease;font-family:inherit}.read-only-textarea{cursor:default;outline:none}.node-controls-area{position:absolute;bottom:12px;left:12px;right:12px;display:flex;align-items:center;gap:8px;z-index:10}.node-model-selector,.node-ratio-selector{position:relative;display:flex;align-items:center}.node-input,.node-text-display,.node-result-text,.node-markdown-editor .markdown-editor-surface{width:100%;min-width:250px;height:250px;padding:16px;font-size:16px;color:var(--text-primary, var(--text-primary, #111827));border:none;border-radius:0;outline:none;background-color:var(--bg-tertiary, #f9fafb);transition:all .2s ease;resize:none;font-family:inherit;font-weight:500;overflow-y:auto}.node-input:focus{background-color:var(--bg-tertiary, #f9fafb)}.node-text-display{flex:1;white-space:pre-wrap;word-break:break-word;text-align:left}.node-text-display:hover{background-color:#e4e4e7}.function-node>.multi-image-floating-container{position:absolute;top:0;left:0;width:100%;z-index:10;pointer-events:none}.function-node>.multi-image-floating-container .floating-image-item{position:absolute;pointer-events:auto;border-radius:8px;overflow:hidden;cursor:zoom-in;border:1px solid var(--border-light, #e5e7eb);box-shadow:0 4px 12px #00000026;background-color:var(--bg-secondary, #ffffff);transition:all .2s ease}.function-node>.multi-image-floating-container .floating-image-item img{width:100%;height:100%;-o-object-fit:cover;object-fit:cover;display:block;transition:transform .3s ease}.function-node>.multi-image-floating-container .floating-image-item .floating-actions{position:absolute;top:6px;right:6px;display:flex;gap:4px;opacity:0;transition:opacity .2s ease}.function-node>.multi-image-floating-container .floating-image-item:hover{transform:translate(4px);border-color:var(--primary-color, #667eea);box-shadow:0 6px 16px #0003}.function-node>.multi-image-floating-container .floating-image-item:hover .floating-actions{opacity:1}.action-btn{display:flex;align-items:center;gap:4px;background:#0009;color:#fff;border:1px solid rgba(255,255,255,.2);padding:4px 8px;border-radius:10px;font-size:12px;cursor:pointer;-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px);transition:all .2s ease}.action-btn:hover{background:#000c;border-color:#fff6}.multi-image-actions{position:absolute;top:12px;right:12px;display:flex;gap:8px;z-index:5;transition:opacity .2s ease}.multi-image-actions .action-btn-expand{opacity:.8}.multi-image-actions .action-btn-collapse{width:28px;height:28px;padding:0;border-radius:999px;justify-content:center;opacity:0;pointer-events:none;transform:translateY(-4px);transition:opacity .2s ease,transform .2s ease,background .2s ease,border-color .2s ease}.node-result-image{width:100%;height:100%;position:relative;cursor:zoom-in;background-color:var(--bg-tertiary, #f3f4f6);border-radius:inherit}.node-result-image.multi-image-expanded,.node-result-image.multi-image-collapsed{overflow:visible}.node-result-image .multi-image-stage{position:relative;width:100%;height:100%;overflow:visible}.node-result-image .primary-image-container{width:100%;height:100%;border-radius:inherit;position:relative}.node-result-image .primary-image-container:hover .multi-image-actions .action-btn-collapse{opacity:1;pointer-events:auto;transform:translateY(0)}.node-result-image .primary-image-container{overflow:hidden;position:relative;z-index:4}.node-result-image .primary-image-container img{width:100%;height:100%;-o-object-fit:cover;object-fit:cover;display:block;transition:transform .3s ease}.multi-image-stack{display:none}.multi-image-stack .stack-primary-image{position:relative;z-index:4;width:100%;height:100%;-o-object-fit:cover;object-fit:cover;border-radius:inherit}.multi-image-stack .stack-bg-item{position:absolute;top:0;left:0;width:100%;height:100%;background:#2a2a2a;border-radius:inherit;border:1px solid #444;box-shadow:0 2px 8px #0003;transform-origin:top left}.multi-image-stack .stack-bg-item.bg-layer-1{transform:translate(8px,8px) scale(.98);z-index:3}.multi-image-stack .stack-bg-item.bg-layer-2{transform:translate(16px,16px) scale(.96);z-index:2}.multi-image-stack .stack-bg-item.bg-layer-3{transform:translate(24px,24px) scale(.94);z-index:1}.node-result-text{color:var(--text-primary, var(--text-primary, #111827));min-height:250px;box-sizing:border-box}.node-result-text:focus{outline-offset:-2px}.placeholder{color:#d1d5db;font-style:italic}.node-placeholder{width:100%;height:100%;min-height:250px;padding:16px;box-sizing:border-box;font-size:13px;color:#d1d5db;text-align:center;background-color:var(--bg-tertiary, #f9fafb);border-radius:0;flex:1;display:flex;align-items:center;justify-content:center}.node-input::-webkit-scrollbar,.node-text-display::-webkit-scrollbar,.node-result-text::-webkit-scrollbar,.node-bottom-input::-webkit-scrollbar,.node-markdown-editor .markdown-editor-surface::-webkit-scrollbar{width:6px;height:6px;cursor:default;background-color:transparent}.node-input::-webkit-scrollbar-track,.node-text-display::-webkit-scrollbar-track,.node-result-text::-webkit-scrollbar-track,.node-bottom-input::-webkit-scrollbar-track,.node-markdown-editor .markdown-editor-surface::-webkit-scrollbar-track{background:transparent;cursor:default}.node-input::-webkit-scrollbar-thumb,.node-text-display::-webkit-scrollbar-thumb,.node-result-text::-webkit-scrollbar-thumb,.node-bottom-input::-webkit-scrollbar-thumb,.node-markdown-editor .markdown-editor-surface::-webkit-scrollbar-thumb{background:transparent;border-radius:3px;cursor:default}.node-input:hover::-webkit-scrollbar-thumb,.node-input:focus::-webkit-scrollbar-thumb,.node-text-display:hover::-webkit-scrollbar-thumb,.node-text-display:focus::-webkit-scrollbar-thumb,.node-result-text:hover::-webkit-scrollbar-thumb,.node-result-text:focus::-webkit-scrollbar-thumb,.node-bottom-input:hover::-webkit-scrollbar-thumb,.node-bottom-input:focus::-webkit-scrollbar-thumb,.node-markdown-editor .markdown-editor-surface:hover::-webkit-scrollbar-thumb,.node-markdown-editor .markdown-editor-surface:focus::-webkit-scrollbar-thumb{background:#d1d5db}.node-input::-webkit-scrollbar-thumb:hover,.node-text-display::-webkit-scrollbar-thumb:hover,.node-result-text::-webkit-scrollbar-thumb:hover,.node-bottom-input::-webkit-scrollbar-thumb:hover,.node-markdown-editor .markdown-editor-surface::-webkit-scrollbar-thumb:hover{background:#9ca3af}.node-input,.node-text-display,.node-result-text,.node-bottom-input,.node-markdown-editor .markdown-editor-surface{scrollbar-width:thin;scrollbar-color:transparent transparent}.node-input:hover,.node-input:focus,.node-text-display:hover,.node-text-display:focus,.node-result-text:hover,.node-result-text:focus,.node-bottom-input:hover,.node-bottom-input:focus,.node-markdown-editor .markdown-editor-surface:hover,.node-markdown-editor .markdown-editor-surface:focus{scrollbar-color:#d1d5db transparent}.file-upload{position:relative;width:100%;height:100%;min-height:250px;display:flex;flex-direction:column;overflow:hidden}.input-node.has-image .file-upload{min-height:auto}.node-file-input{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border-width:0}.file-label{display:flex;align-items:center;justify-content:center;flex:1;width:100%;padding:12px;font-size:14px;color:var(--text-secondary, #6b7280);background-color:var(--bg-tertiary, #f9fafb);border:1px dashed #d0d0d0;border-radius:6px;cursor:pointer;text-align:center;transition:all .2s ease;word-break:break-all}.file-label:hover{background-color:var(--bg-hover, #e5e7eb);border-color:#9ca3af;color:var(--text-primary, #111827)}.node-floating-upload-btn{position:absolute;top:-46px;left:50%;transform:translate(-50%);z-index:20;opacity:0;visibility:hidden;pointer-events:none;transition:opacity .2s ease,visibility .2s ease}.node-floating-upload-btn.visible{opacity:1;visibility:visible;pointer-events:auto}.input-node:hover~.node-floating-upload-btn,.input-node.selected~.node-floating-upload-btn{opacity:1;visibility:visible;pointer-events:auto}.floating-upload-label{display:flex;align-items:center;gap:6px;padding:6px 14px;font-size:13px;font-weight:500;color:#111827;background:#fff;border:1px solid rgba(17,24,39,.08);border-radius:20px;cursor:pointer;box-shadow:0 2px 8px #0f172a1f;transition:all .2s ease;white-space:nowrap;-webkit-user-select:none;-moz-user-select:none;user-select:none}.floating-upload-label:hover{box-shadow:0 4px 12px #0f172a2e;transform:translateY(-1px)}.floating-upload-label:active{transform:translateY(0)}.file-preview.empty-state{flex-direction:column;gap:4px;background-color:var(--bg-tertiary, #f9fafb)}.empty-text{font-size:14px;color:#d1d5db}.file-preview{position:relative;width:100%;height:100%;min-height:250px;border-radius:0;overflow:hidden;background-color:var(--bg-tertiary, #f9fafb);display:flex;align-items:center;justify-content:center}.input-node.has-image .file-preview{min-height:auto;background-color:transparent;display:block;line-height:0}.input-node.has-image .file-preview.uploading{display:flex}.file-preview.uploading{flex-direction:column;gap:12px;z-index:10}.file-preview.uploading .uploading-spinner{color:var(--primary);animation:spin 1s linear infinite}@keyframes spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.preview-image{width:250px;height:auto;display:block;-o-object-fit:contain;object-fit:contain}.input-node.has-image .preview-image{width:100%;height:100%;display:block;-o-object-fit:contain;object-fit:contain}.upload-btn{position:absolute;bottom:8px;right:8px;padding:8px 12px;display:flex;align-items:center;gap:4px;font-size:14px;font-weight:500;color:#fff;background-color:color-mix(in oklab,var(--bg-primary, #000000) 90%,transparent);-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);border:1px solid color-mix(in oklab,var(--text-primary, #111827) 20%,transparent);border-radius:8px;cursor:pointer;box-shadow:0 4px 12px color-mix(in oklab,var(--text-primary, #111827) 10%,transparent);transition:all .3s ease;opacity:.8}.upload-btn:hover{opacity:1;transform:translateY(-2px);box-shadow:0 6px 16px color-mix(in oklab,var(--text-primary, #111827) 20%,transparent);background-color:color-mix(in oklab,var(--bg-primary, #000000) 95%,transparent)}.upload-btn:active{transform:translateY(0);box-shadow:0 2px 8px color-mix(in oklab,var(--text-primary, #111827) 15%,transparent)}.upload-btn.disabled{opacity:.5;cursor:not-allowed;transform:none;box-shadow:0 2px 4px color-mix(in oklab,var(--text-primary, #111827) 5%,transparent)}[data-theme=dark] .upload-btn{background-color:color-mix(in oklab,#444 90%,transparent);border-color:color-mix(in oklab,#444 30%,transparent);box-shadow:0 4px 12px #0000004d}[data-theme=dark] .upload-btn:hover{background-color:color-mix(in oklab,#444 95%,transparent);box-shadow:0 6px 16px #0006}[data-theme=dark] .upload-btn:active{box-shadow:0 2px 8px #00000059}[data-theme=light] .upload-btn{background-color:color-mix(in oklab,#f3f4f6 90%,transparent);color:var(--text-primary, #111827);border-color:color-mix(in oklab,var(--text-primary, #111827) 25%,transparent);box-shadow:0 4px 12px color-mix(in oklab,var(--text-primary, #111827) 15%,transparent)}[data-theme=light] .upload-btn:hover{background-color:color-mix(in oklab,#e5e7eb 95%,transparent);box-shadow:0 6px 16px color-mix(in oklab,var(--text-primary, #111827) 25%,transparent)}[data-theme=light] .upload-btn:active{box-shadow:0 2px 8px color-mix(in oklab,var(--text-primary, #111827) 20%,transparent)}.uploading-text{font-size:14px;font-weight:500;color:var(--text-primary, #111827);background:linear-gradient(135deg,var(--primary) 0%,var(--primary) 100%);-webkit-background-clip:text;-webkit-text-fill-color:transparent;letter-spacing:.5px;animation:pulse 2s cubic-bezier(.4,0,.6,1) infinite}@keyframes pulse{0%,to{opacity:1}50%{opacity:.5}}.node-result-image{width:100%;height:100%;min-width:250px;min-height:250px;background-color:var(--bg-tertiary, #f9fafb);display:flex;align-items:center;justify-content:center;overflow:hidden;line-height:0}.node-result-image img{width:100%;height:100%;display:block;-o-object-fit:contain;object-fit:contain}.function-node.has-image .node-result-image{width:100%;height:100%;background-color:transparent;display:block}.function-node.has-image .node-result-image img{width:100%;height:100%;min-width:250px;display:block;-o-object-fit:cover;object-fit:cover}.node-menu{position:absolute;left:20px;top:50%;transform:translateY(-50%);z-index:100}.node-menu-toggle{width:44px;height:44px;background:#fff;border:1px solid rgba(17,24,39,.12);border-radius:12px;display:flex;align-items:center;justify-content:center;cursor:pointer;box-shadow:0 4px 10px #0000001f;color:#1f2937;transition:all .3s ease}.node-menu-toggle.node-menu svg{width:20px;height:20px}.node-menu-toggle:hover{transform:scale(1.08);background:#f8fafc;box-shadow:0 5px 12px #00000029}.toggle-icon{font-size:24px;color:#fff;font-weight:300}.node-menu-content{position:absolute;left:60px;top:50%;transform:translateY(-50%);background-color:var(--bg-secondary, #ffffff);border:1px solid var(--border-color, #e5e7eb);border-radius:12px;padding:0 5px;box-shadow:0 8px 24px #00000026;min-width:200px;animation:slideIn .3s ease}.node-menu-content:before{content:"";position:absolute;left:-40px;top:0;bottom:0;width:40px;background:transparent}@keyframes slideIn{0%{opacity:0;transform:translateY(-50%) translate(-10px)}to{opacity:1;transform:translateY(-50%) translate(0)}}.menu-category{margin-bottom:16px}.menu-category:last-child{margin-bottom:0}.category-title,.menu-tips{font-size:12px;font-weight:600;color:var(--text-tertiary, #9ca3af);text-transform:uppercase;letter-spacing:.5px;margin-bottom:8px;padding:.6rem 0}.menu-items{display:flex;flex-direction:column}.menu-item{display:flex;align-items:center;gap:12px;padding:10px 12px;background-color:var(--bg-tertiary, #f9fafb);border:1px solid transparent;border-radius:8px;cursor:pointer;transition:all .2s ease;text-align:left}.menu-item:hover{background-color:#f0f7ff;border-color:var(--primary);transform:translate(4px)}.menu-node{z-index:2000;position:relative}.context-menu{background-color:var(--bg-secondary, #ffffff);border:1px solid var(--border-color, #e5e7eb);border-radius:12px;box-shadow:0 8px 24px #00000026;padding:0 5px 0 0;min-width:200px;animation:fadeIn .2s ease}@keyframes fadeIn{0%{opacity:0;transform:translateY(5px)}to{opacity:1;transform:translateY(0)}}[data-theme=dark] .input-node,[data-theme=dark] .function-node{background-color:var(--bg-secondary);border-color:var(--border-color);box-shadow:0 4px 12px var(--shadow-color)}[data-theme=dark] .input-node.selected,[data-theme=dark] .function-node.selected{border-color:var(--border-hover);box-shadow:0 6px 16px var(--shadow-hover)}[data-theme=dark] .input-node.has-error,[data-theme=dark] .function-node.has-error{border-color:#f87171;box-shadow:0 0 0 2px #f8717133,0 4px 6px #0003}[data-theme=dark] .input-node.has-error .node-display-area,[data-theme=dark] .function-node.has-error .node-display-area{border-color:#f87171}[data-theme=dark] .input-node.is-holding .holding-radar-core,[data-theme=dark] .function-node.is-holding .holding-radar-core{background-color:#4b5563;box-shadow:0 0 10px #4b556399}[data-theme=dark] .input-node.is-holding .holding-radar-wave,[data-theme=dark] .function-node.is-holding .holding-radar-wave{border-color:#4b5563}[data-theme=dark] .input-node.is-holding .holding-chip-text,[data-theme=dark] .function-node.is-holding .holding-chip-text{color:#6b7280}[data-theme=dark] .node-display-area{background-color:var(--bg-secondary);border-color:var(--border-color);box-shadow:0 4px 12px var(--shadow-color);border:1px solid transparent}[data-theme=dark] .node-input-area{background-color:var(--bg-secondary);border-color:var(--border-color)}[data-theme=dark] .node-header{border-bottom-color:var(--border-color)}[data-theme=dark] .node-label{color:#f5f5f5}[data-theme=dark] .node-label-input{color:#f5f5f5;border-bottom-color:var(--dark-primary-color, #84E35A)}[data-theme=dark] .node-label-input:focus{border-bottom-color:var(--dark-primary-dark, #6BC83E)}[data-theme=dark] .node-header-download-btn{color:#f5f5f5}[data-theme=dark] .node-header-download-btn:hover{color:var(--dark-primary-color, #84E35A)}[data-theme=dark] .node-run-btn{background:rgb(255,255,255,var(--tw-bg-opacity, 1));color:#222}[data-theme=dark] .node-run-btn--disabled,[data-theme=dark] .node-run-btn:disabled{background:#6b7280;color:#f3f4f6;box-shadow:none;cursor:not-allowed;opacity:.4}[data-theme=dark] .node-run-btn--disabled:hover,[data-theme=dark] .node-run-btn:disabled:hover{transform:none;box-shadow:none}[data-theme=dark] .node-run-btn--disabled:active,[data-theme=dark] .node-run-btn:disabled:active{transform:none}[data-theme=dark] .node-input{color:#f5f5f5;background-color:var(--bg-tertiary);border-color:transparent}[data-theme=dark] .node-input:focus{background-color:var(--bg-secondary);border-color:var(--border-hover);box-shadow:0 0 0 2px #667eea33}[data-theme=dark] .node-text-display{color:#f5f5f5;background-color:var(--bg-tertiary)}[data-theme=dark] .node-text-display:hover{background-color:var(--bg-tertiary)}[data-theme=dark] .placeholder{color:var(--text-tertiary)}[data-theme=dark] .file-label{color:var(--text-secondary);background-color:var(--bg-tertiary);border-color:var(--border-color)}[data-theme=dark] .file-label:hover{background-color:var(--bg-secondary);border-color:var(--border-hover);color:var(--border-hover)}[data-theme=dark] .file-preview{background-color:var(--bg-tertiary)}[data-theme=dark] .input-node.has-image .file-preview{background-color:transparent}[data-theme=dark] .file-preview.empty-state{background-color:var(--bg-tertiary)}[data-theme=dark] .empty-text{color:var(--text-tertiary)}[data-theme=dark] .floating-upload-label{color:#111827;background:#fff;border:1px solid rgba(255,255,255,.14);box-shadow:0 2px 8px #00000047}[data-theme=dark] .uploading-text{color:var(--text-primary)}[data-theme=dark] .node-placeholder{color:var(--text-tertiary);background-color:var(--bg-tertiary)}[data-theme=dark] .node-result-text,[data-theme=dark] .node-markdown-editor .markdown-editor-content{color:#f5f5f5}[data-theme=dark] .node-markdown-editor .markdown-editor-content pre{background:#0f172a59}[data-theme=dark] .node-markdown-editor .markdown-editor-content code{background:#0f172a4d}[data-theme=dark] .node-result-image{background-color:var(--bg-tertiary)}[data-theme=dark] .node-bottom-input{border:none;color:#f5f5f5}[data-theme=dark] .node-menu-content,[data-theme=dark] .context-menu{background-color:var(--bg-secondary);border-color:var(--border-color);box-shadow:0 8px 24px var(--shadow-color)}[data-theme=dark] .category-title,[data-theme=dark] .menu-tips{color:var(--text-tertiary)}[data-theme=dark] .menu-item{background-color:var(--bg-tertiary);border-color:transparent}[data-theme=dark] .menu-item:hover{background-color:#667eea1a;border-color:var(--border-hover)}[data-theme=dark] .node-input::-webkit-scrollbar-thumb,[data-theme=dark] .node-text-display::-webkit-scrollbar-thumb,[data-theme=dark] .node-result-text::-webkit-scrollbar-thumb,[data-theme=dark] .node-bottom-input::-webkit-scrollbar-thumb{background:#52525b}[data-theme=dark] .node-input::-webkit-scrollbar-thumb:hover,[data-theme=dark] .node-text-display::-webkit-scrollbar-thumb:hover,[data-theme=dark] .node-result-text::-webkit-scrollbar-thumb:hover,[data-theme=dark] .node-bottom-input::-webkit-scrollbar-thumb:hover{background:#71717a}@keyframes connection-snap-pulse{0%,to{box-shadow:0 0 0 3px #667eea40,0 0 12px #667eea26}50%{box-shadow:0 0 0 4px #667eea66,0 0 20px #667eea40}}.input-node.connection-snap-target{border-color:var(--primary)!important;animation:connection-snap-pulse 1.2s ease-in-out infinite;z-index:100!important}.function-node.connection-snap-target{z-index:100!important}.function-node.connection-snap-target .node-display-area{border-color:var(--primary)!important;animation:connection-snap-pulse 1.2s ease-in-out infinite}[data-theme=dark] .input-node.connection-snap-target,[data-theme=dark] .function-node.connection-snap-target .node-display-area{border-color:var(--primary-color, var(--primary))!important}.node-result-image img,.preview-image{cursor:zoom-in}.node-loading{display:flex;flex-direction:column;align-items:center;justify-content:center;width:100%;height:100%;min-height:150px;gap:12px}.node-loading-dots{display:flex;align-items:center;justify-content:center;gap:8px}.node-loading-dot{width:12px;height:12px;background-color:var(--primary);border-radius:50%;animation:dot-bounce 1.4s ease-in-out infinite}.node-loading-dot:nth-child(1){animation-delay:0s}.node-loading-dot:nth-child(2){animation-delay:.2s}.node-loading-dot:nth-child(3){animation-delay:.4s}@keyframes dot-bounce{0%,80%,to{transform:scale(.6);opacity:.5}40%{transform:scale(1);opacity:1}}.node-loading-text{font-size:14px;font-weight:500;color:var(--primary)}.node-loading-text-skeleton{display:flex;flex-direction:column;justify-content:flex-start;width:100%;height:100%;padding:24px 20px;gap:14px;box-sizing:border-box}.skeleton-line{height:14px;border-radius:7px;background:linear-gradient(90deg,#e8e8e8 25%,#d0d0d0,#e8e8e8 75%);background-size:200% 100%;animation:skeleton-shimmer 1.6s ease-in-out infinite}.skeleton-line-long{width:100%}.skeleton-line-medium{width:80%}.skeleton-line-short{width:60%}@keyframes skeleton-shimmer{0%{background-position:200% 0}to{background-position:-200% 0}}.node-loading-image-shimmer{position:absolute;top:-2px;right:-2px;bottom:-2px;left:-2px;z-index:1;background-color:var(--bg-secondary, var(--bg-secondary, #ffffff));border-radius:inherit;overflow:hidden;isolation:isolate;pointer-events:none;transform:translateZ(0);backface-visibility:hidden}[data-theme=dark] .node-loading-image-shimmer{background-color:var(--bg-secondary, var(--bg-secondary, #ffffff));isolation:isolate}.image-shimmer-overlay{position:absolute;top:0;right:0;bottom:0;left:0;z-index:2;background:#ffffff2e;backdrop-filter:blur(20px);-webkit-backdrop-filter:blur(20px);border-radius:inherit;overflow:hidden;box-shadow:inset 0 0 0 2px #ffffff1f}[data-theme=dark] .image-shimmer-overlay{background:#0000002e;box-shadow:inset 0 0 0 2px #00000047}.image-progress-bar{position:absolute;top:0;left:0;z-index:2;height:100%;width:0%;background:linear-gradient(90deg,#00000005,#00000014 80%,#00000026);border-right:2px solid rgba(0,0,0,.2);animation:image-progress-loop 10s ease-in-out infinite}@keyframes image-progress-loop{0%{width:0%;opacity:1}85%{width:100%;opacity:1}95%{width:100%;opacity:0}to{width:0%;opacity:0}}[data-theme=dark] .image-progress-bar{background:linear-gradient(90deg,#ffffff14,#ffffff38 80%,#ffffff59);border-right:2px solid rgba(255,255,255,.6)}.node-loading-image-shimmer.is-multi-image-loading{overflow:visible}.multi-image-loading-grid{position:absolute;top:0;right:0;bottom:0;left:0;pointer-events:none;z-index:1}.multi-image-loading-card{position:absolute;border-radius:inherit;overflow:hidden;background-color:var(--bg-secondary, var(--bg-secondary, #ffffff));box-shadow:0 10px 30px #0f172a24,0 2px 8px #0f172a1a}.multi-image-loading-card:nth-child(1){top:0;left:calc(100% + 12px);width:100%;height:100%}.multi-image-loading-card:nth-child(2){top:calc(100% + 12px);left:0;width:100%;height:100%}.multi-image-loading-card:nth-child(3){top:calc(100% + 12px);left:calc(100% + 12px);width:100%;height:100%}.image-loading-overlay{position:absolute;top:0;left:0;width:100%;height:100%;min-width:250px;min-height:250px;display:flex;align-items:center;justify-content:center;background-color:var(--bg-tertiary, #f9fafb);z-index:10}.input-node.is-loading{border-color:var(--primary);box-shadow:0 0 0 2px #667eea4d,0 4px 12px #667eea33}.global-loading-overlay{position:absolute;top:0;left:0;width:100%;height:100%;background-color:#00000080;display:flex;align-items:center;justify-content:center;border-radius:8px;z-index:100;pointer-events:none}.global-loading-content{display:flex;flex-direction:column;align-items:center;gap:8px;background-color:#fffffff2;padding:16px 24px;border-radius:8px;box-shadow:0 4px 12px #00000026}.global-loading-icon{width:24px;height:24px;color:var(--primary)}.global-loading-text{font-size:14px;font-weight:500;color:var(--text-primary, #111827)}[data-theme=dark] .node-loading-dot{background-color:var(--dark-primary-color, #84E35A)}[data-theme=dark] .node-loading-text{color:var(--dark-primary-color, #84E35A)}[data-theme=dark] .skeleton-line{background:linear-gradient(90deg,#3a3a3a 25%,#4a4a4a,#3a3a3a 75%);background-size:200% 100%;animation:skeleton-shimmer 1.6s ease-in-out infinite}[data-theme=dark] .input-node.is-loading{border-color:var(--dark-primary-color, #84E35A);box-shadow:0 0 0 2px #818cf84d,0 4px 12px #818cf833}[data-theme=dark] .global-loading-content{background-color:#1e1e1ef2}[data-theme=dark] .global-loading-text{color:var(--text-primary)}[data-theme=dark] .global-loading-icon{color:var(--dark-primary-color, #84E35A)}.zoom-controls-container{position:absolute;bottom:32px;left:24px;z-index:50;display:flex;align-items:center;gap:16px;pointer-events:auto}.zoom-controls-panel{display:flex;align-items:center;gap:4px;background-color:#fffc;-webkit-backdrop-filter:blur(16px);backdrop-filter:blur(16px);border:1px solid rgba(0,0,0,.1);border-radius:9999px;padding:6px 8px;box-shadow:0 10px 25px -5px #0000001a,0 8px 10px -6px #0000001a;transition:background-color .3s ease,border-color .3s ease,box-shadow .3s ease}.control-mode-toggle{padding:8px;border-radius:9999px;transition:all .3s ease;cursor:pointer;background-color:#0000000d;color:#6b7280;border:none;display:flex;align-items:center;justify-content:center}.control-mode-toggle:hover{background-color:#0000001a;color:#111827}.zoom-button{width:32px;height:32px;display:flex;align-items:center;justify-content:center;border-radius:9999px;background-color:transparent;border:none;color:#6b7280;cursor:pointer;transition:all .2s ease}.zoom-button:hover{background-color:#0000000d;color:#111827}.zoom-slider-container{width:96px;padding:0 8px;display:flex;align-items:center}.zoom-slider{width:100%;height:4px;background-color:#d1d5db;border-radius:8px;-webkit-appearance:none;-moz-appearance:none;appearance:none;cursor:pointer;accent-color:#9ca3af}.zoom-slider::-webkit-slider-thumb{-webkit-appearance:none;-moz-appearance:none;appearance:none;width:12px;height:12px;background-color:#9ca3af;border-radius:50%;cursor:pointer}.zoom-slider::-moz-range-thumb{width:12px;height:12px;background-color:#9ca3af;border-radius:50%;cursor:pointer;border:none}.zoom-percentage{font-size:12px;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;color:#6b7280;min-width:48px;text-align:center;-webkit-user-select:none;-moz-user-select:none;user-select:none;cursor:pointer;transition:color .3s ease,background-color .3s ease;border:none;background:transparent;padding:4px 8px;border-radius:9999px}.zoom-percentage:hover{color:#111827;background-color:#0000000d}.help-button{width:40px;height:40px;display:flex;align-items:center;justify-content:center;border-radius:9999px;background-color:#fffc;border:1px solid rgba(0,0,0,.1);color:#6b7280;cursor:pointer;transition:all .2s ease;box-shadow:0 10px 15px -3px #0000001a}.help-button:hover{background-color:#0000000d;color:#111827}.divider-vertical{width:1px;height:16px;background-color:#0000001a;margin:0 4px;transition:background-color .3s ease}.control-panel{background-color:var(--bg-secondary, #ffffff);border:1px solid var(--border-color, #e5e7eb);border-radius:8px;padding:8px;box-shadow:0 2px 8px #0000001a}.control-mode-switch{display:flex;gap:8px}.control-mode-btn{width:40px;height:40px;font-size:18px;background-color:var(--bg-tertiary, #f9fafb);border:1px solid var(--border-color, #e5e7eb);border-radius:6px;cursor:pointer;transition:all .2s ease;display:flex;align-items:center;justify-content:center}.control-mode-btn:hover{background-color:var(--bg-hover, #e5e7eb);border-color:var(--primary)}.control-mode-btn.active{background:linear-gradient(135deg,var(--primary) 0%,var(--primary) 100%);border-color:var(--primary);color:#fff}.control-bar{display:flex;align-items:center;gap:12px}.control-divider{width:1px;height:24px;background-color:var(--border-color, #e5e7eb)}.history-controls{display:flex;gap:8px}.history-btn{width:40px;height:40px;font-size:18px;background-color:var(--bg-tertiary, #f9fafb);border:1px solid var(--border-color, #e5e7eb);border-radius:6px;cursor:pointer;transition:all .2s ease;display:flex;align-items:center;justify-content:center}.history-btn:hover:not(.disabled){background-color:var(--bg-hover, #e5e7eb);border-color:var(--primary);transform:translateY(-1px)}.history-btn:active:not(.disabled){transform:translateY(0)}.history-btn.disabled{opacity:.4;cursor:not-allowed;background-color:var(--bg-primary, #000000)}.history-btn.disabled:hover{background-color:var(--bg-primary, #000000);border-color:var(--border-color, #e5e7eb);transform:none}.zoom-display{font-size:13px;font-weight:500;font-variant-numeric:tabular-nums;color:var(--text-secondary, #6b7280);min-width:45px;text-align:right;padding-right:4px}.embedded-controls{position:static!important;box-shadow:none!important;margin:0!important;padding:0!important;background:transparent!important;display:flex!important;gap:4px}.embedded-controls button{background-color:var(--bg-tertiary, #f9fafb);border:1px solid #52525b!important;border-radius:6px;width:32px!important;height:32px!important;transition:all .2s ease}.embedded-controls button:hover{background-color:var(--bg-hover, #e5e7eb);border-color:var(--primary)!important}.embedded-controls button svg{fill:var(--text-secondary, #6b7280);max-width:16px;max-height:16px}[data-theme=dark] .zoom-controls-panel{background-color:#1c1c1ce6;border-color:#ffffff1a;box-shadow:0 25px 50px -12px #00000040}[data-theme=dark] .control-mode-toggle{background-color:#ffffff1a;color:#9ca3af}[data-theme=dark] .control-mode-toggle:hover{background-color:#fff3;color:#fff}[data-theme=dark] .zoom-button{color:#9ca3af}[data-theme=dark] .zoom-button:hover{background-color:#ffffff1a;color:#fff}[data-theme=dark] .zoom-slider{background-color:#374151}[data-theme=dark] .zoom-percentage{color:#9ca3af}[data-theme=dark] .zoom-percentage:hover{color:#fff;background-color:#ffffff1a}[data-theme=dark] .help-button{background-color:#1c1c1ce6;border-color:#ffffff1a;color:#9ca3af}[data-theme=dark] .help-button:hover{background-color:#ffffff1a;color:#fff}[data-theme=dark] .divider-vertical{background-color:#ffffff1a}[data-theme=dark] .control-panel{background-color:var(--bg-secondary);border-color:var(--border-color);box-shadow:0 2px 8px var(--shadow-color)}[data-theme=dark] .control-mode-btn{background-color:var(--bg-tertiary);border-color:var(--border-color)}[data-theme=dark] .control-mode-btn:hover{background-color:var(--bg-secondary);border-color:var(--border-hover)}[data-theme=dark] .control-mode-btn.active{background:linear-gradient(135deg,var(--primary) 0%,var(--primary) 100%);border-color:var(--border-hover);color:#fff}[data-theme=dark] .control-divider{background-color:var(--border-color)}[data-theme=dark] .zoom-display{color:var(--text-secondary)}[data-theme=dark] .history-btn{background-color:#3f3f46;border-color:#52525b;color:#e4e4e7}[data-theme=dark] .history-btn:hover:not(.disabled){background-color:#27272a;border-color:var(--primary)}[data-theme=dark] .history-btn.disabled{background-color:#27272a;color:#71717a;border-color:#3f3f46}[data-theme=dark] .history-btn.disabled:hover{background-color:#27272a;border-color:#3f3f46}[data-theme=dark] .embedded-controls button{background-color:var(--bg-tertiary);border-color:var(--border-color)}[data-theme=dark] .embedded-controls button:hover{background-color:var(--bg-secondary);border-color:var(--border-hover)}[data-theme=dark] .embedded-controls button svg{fill:var(--text-secondary)}.react-flow__resize-control.line{display:none!important}.react-flow__resize-control.handle.top:not(.left):not(.right),.react-flow__resize-control.handle.right:not(.top):not(.bottom),.react-flow__resize-control.handle.bottom:not(.left):not(.right),.react-flow__resize-control.handle.left:not(.top):not(.bottom){display:none!important}.react-flow__resize-control.handle{width:16px!important;height:16px!important;background-color:transparent!important;border:0!important;border-radius:0!important;z-index:9999!important;opacity:0!important;transition:opacity .2s ease!important;pointer-events:auto!important}.react-flow__resize-control.handle:hover,.react-flow__resize-control.handle:active{opacity:1!important}.react-flow__resize-control.handle.top.left{border-top:3px solid #d1d5db!important;border-left:3px solid #d1d5db!important;border-top-left-radius:12px!important}.react-flow__resize-control.handle.top.right{border-top:3px solid #d1d5db!important;border-right:3px solid #d1d5db!important;border-top-right-radius:12px!important}.react-flow__resize-control.handle.bottom.left{border-bottom:3px solid #d1d5db!important;border-left:3px solid #d1d5db!important;border-bottom-left-radius:12px!important}.react-flow__resize-control.handle.bottom.right{border-bottom:3px solid #d1d5db!important;border-right:3px solid #d1d5db!important;border-bottom-right-radius:12px!important}.handle{position:absolute;width:1px!important;height:1px!important;background:transparent!important;border:none!important;min-width:0!important;min-height:0!important;border-radius:0!important;opacity:1;cursor:pointer;box-shadow:none!important;z-index:2001!important}.handle:before{content:"+";position:absolute;width:24px;height:24px;background-color:transparent;border:2px solid #d1d5db;border-radius:50%;color:#d1d5db;font-size:18px;font-weight:700;line-height:18px;text-align:center;transition:all .2s ease;box-shadow:0 2px 8px #00000026;z-index:2002;left:50%;top:50%;transform:translate(-50%,-50%) scale(.8);pointer-events:auto;opacity:0}.handle:hover:before{width:28px;height:28px;line-height:22px;background-color:transparent;border-color:#9ca3af;color:#9ca3af;transform:translate(calc(-50% - 20px),-50%) scale(1.1);box-shadow:0 4px 12px #0003}.handle.handle-disabled{cursor:not-allowed!important;pointer-events:none!important}.handle.handle-disabled:before{display:none!important}.react-flow__handle-left.handle{left:0;top:50%;transform:translate(-50%,-50%)}.react-flow__handle-left.handle:before{left:50%;transform:translate(calc(-50% - 20px),-50%) scale(.8)}.react-flow__handle-right.handle{right:0;top:50%;transform:translate(50%,-50%)}.react-flow__handle-right.handle:before{left:50%;transform:translate(calc(-50% + 20px),-50%) scale(.8)}.react-flow__handle-right.handle:hover:before{transform:translate(calc(-50% + 20px),-50%) scale(1.1)}.input-node:hover .react-flow__handle-left.handle:before,.input-node.selected .react-flow__handle-left.handle:before,.react-flow__node-function:hover .react-flow__handle-left.handle:before,.react-flow__node-function.selected .react-flow__handle-left.handle:before,.react-flow__node-function:hover .node-display-area .react-flow__handle-left.handle:before,.react-flow__node-function.selected .node-display-area .react-flow__handle-left.handle:before,.function-node:hover .react-flow__handle-left.handle:before,.function-node.selected .react-flow__handle-left.handle:before,.function-node:hover .node-display-area .react-flow__handle-left.handle:before,.function-node.selected .node-display-area .react-flow__handle-left.handle:before,.node-display-area:hover .react-flow__handle-left.handle:before,.react-flow__handle:hover .react-flow__handle-left.handle:before,.react-flow__handle.connecting .react-flow__handle-left.handle:before,.react-flow__handle.valid .react-flow__handle-left.handle:before{transform:translate(calc(-50% - 20px),-50%) scale(1);opacity:1}.input-node:hover .react-flow__handle-right.handle:before,.input-node.selected .react-flow__handle-right.handle:before,.react-flow__node-function:hover .react-flow__handle-right.handle:before,.react-flow__node-function.selected .react-flow__handle-right.handle:before,.react-flow__node-function:hover .node-display-area .react-flow__handle-right.handle:before,.react-flow__node-function.selected .node-display-area .react-flow__handle-right.handle:before,.function-node:hover .react-flow__handle-right.handle:before,.function-node.selected .react-flow__handle-right.handle:before,.function-node:hover .node-display-area .react-flow__handle-right.handle:before,.function-node.selected .node-display-area .react-flow__handle-right.handle:before,.node-display-area:hover .react-flow__handle-right.handle:before,.react-flow__handle:hover .react-flow__handle-right.handle:before,.react-flow__handle.connecting .react-flow__handle-right.handle:before,.react-flow__handle.valid .react-flow__handle-right.handle:before{transform:translate(calc(-50% + 20px),-50%) scale(1);opacity:1}.input-node:hover .handle.handle-disabled:before,.input-node.selected .handle.handle-disabled:before,.react-flow__node-function:hover .handle.handle-disabled:before,.react-flow__node-function.selected .handle.handle-disabled:before,.react-flow__node-function:hover .node-display-area .handle.handle-disabled:before,.react-flow__node-function.selected .node-display-area .handle.handle-disabled:before,.function-node:hover .handle.handle-disabled:before,.function-node.selected .handle.handle-disabled:before,.function-node:hover .node-display-area .handle.handle-disabled:before,.function-node.selected .node-display-area .handle.handle-disabled:before,.node-display-area:hover .handle.handle-disabled:before,.react-flow__handle:hover .handle.handle-disabled:before,.react-flow__handle.connecting .handle.handle-disabled:before,.react-flow__handle.valid .handle.handle-disabled:before{opacity:0!important;display:none!important}.function-node.multi-image-expanded .react-flow__handle-left.handle:before,.function-node.multi-image-expanded .react-flow__handle-right.handle:before,.react-flow__node-function:has(.function-node.multi-image-expanded) .react-flow__handle-left.handle:before,.react-flow__node-function:has(.function-node.multi-image-expanded) .react-flow__handle-right.handle:before{opacity:0!important;display:none!important}.function-node.multi-image-expanded:hover .react-flow__handle-left.handle:before,.function-node.multi-image-expanded:hover .react-flow__handle-right.handle:before,.function-node.multi-image-expanded.selected .react-flow__handle-left.handle:before,.function-node.multi-image-expanded.selected .react-flow__handle-right.handle:before,.function-node.multi-image-expanded .node-display-area:hover .react-flow__handle-left.handle:before,.function-node.multi-image-expanded .node-display-area:hover .react-flow__handle-right.handle:before,.function-node.multi-image-expanded .react-flow__handle:hover:before,.function-node.multi-image-expanded .react-flow__handle.connecting:before,.function-node.multi-image-expanded .react-flow__handle.valid:before,.react-flow__node-function:has(.function-node.multi-image-expanded):hover .react-flow__handle-left.handle:before,.react-flow__node-function:has(.function-node.multi-image-expanded):hover .react-flow__handle-right.handle:before,.react-flow__node-function:has(.function-node.multi-image-expanded).selected .react-flow__handle-left.handle:before,.react-flow__node-function:has(.function-node.multi-image-expanded).selected .react-flow__handle-right.handle:before,.react-flow__node-function:has(.function-node.multi-image-expanded) .node-display-area:hover .react-flow__handle-left.handle:before,.react-flow__node-function:has(.function-node.multi-image-expanded) .node-display-area:hover .react-flow__handle-right.handle:before,.react-flow__node-function:has(.function-node.multi-image-expanded) .react-flow__handle:hover:before,.react-flow__node-function:has(.function-node.multi-image-expanded) .react-flow__handle.connecting:before,.react-flow__node-function:has(.function-node.multi-image-expanded) .react-flow__handle.valid:before{opacity:0!important;display:none!important;transform:scale(0)!important}.react-flow__handle-left.handle.valid:before{transform:translate(calc(-50% - 20px),-50%) scale(1);opacity:1}.react-flow__handle-right.handle.valid:before{transform:translate(calc(-50% + 20px),-50%) scale(1);opacity:1}.react-flow__node-input.selectable.selected,.react-flow__node-input.selectable:focus,.react-flow__node-input.selectable:focus-visible,.react-flow__node-default.selectable.selected,.react-flow__node-default.selectable:focus,.react-flow__node-default.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,.react-flow__node-input,.react-flow__node-default,.react-flow__node-output,.react-flow__node-group{width:auto;background:transparent;border:none;box-shadow:none;padding:0;border-radius:12px}.react-flow__node{font-family:inherit;overflow:visible!important}.react-flow__node>div{overflow:visible!important}.react-flow__viewport,.react-flow__renderer,.react-flow__nodes,.react-flow__node-default,.react-flow__node-input,.react-flow__node-output,.react-flow__node-group{overflow:visible!important}.react-flow__edge-path{stroke:#9ca3af;stroke-width:2}.react-flow__edge.selected .react-flow__edge-path{stroke:#6b7280;stroke-width:3}.react-flow__handle{background-color:var(--primary)}.react-flow__background{background-color:var(--bg-primary, #000000)}.react-flow__controls{background-color:var(--bg-secondary, #ffffff);border:1px solid var(--border-color, #e5e7eb);border-radius:8px;box-shadow:0 2px 8px #0000001a}.react-flow__controls-button{background-color:#fff;border-bottom:1px solid var(--bg-hover, #e5e7eb);border-right:none!important}.react-flow__controls-button:hover{background-color:var(--bg-tertiary, #f9fafb)}.react-flow__controls-button:last-child{border-right:none}.react-flow__minimap{background-color:var(--bg-secondary, #ffffff);border:1px solid var(--border-color, #e5e7eb);border-radius:8px;box-shadow:0 2px 8px #0000001a}[data-theme=dark] .handle:before{background-color:transparent;border-color:var(--border-hover);color:var(--border-hover)}[data-theme=dark] .handle:hover:before{background-color:transparent;border-color:color-mix(in oklab,var(--color-white) 10%,transparent);color:color-mix(in oklab,var(--color-white) 10%,transparent)}[data-theme=dark] .react-flow__handle{background-color:var(--border-hover)}[data-theme=dark] .react-flow__background{background-color:var(--bg-primary)}[data-theme=dark] .react-flow__background circle{fill:var(--border-color)}[data-theme=dark] .react-flow__controls{background-color:var(--bg-secondary);border-color:var(--border-color);box-shadow:0 2px 8px var(--shadow-color)}[data-theme=dark] .react-flow__controls-button{background-color:var(--bg-tertiary);border-bottom-color:var(--border-color);border-right-color:var(--border-color)}[data-theme=dark] .react-flow__controls-button:hover{background-color:var(--bg-secondary)}[data-theme=dark] .react-flow__controls-button:last-child{border-right:none}[data-theme=dark] .react-flow__minimap{background-color:var(--bg-secondary);border-color:var(--border-color);box-shadow:0 2px 8px var(--shadow-color)}@media(max-width:768px){.workflow-toolbar{flex-direction:column;gap:12px;padding:12px}.toolbar-left{width:100%;justify-content:space-between}.toolbar-buttons{flex-wrap:wrap;justify-content:center}.toolbar-btn{padding:8px 16px;font-size:13px}.input-node,.function-node{min-width:160px;padding:12px}.canvas-title-text{font-size:16px}.canvas-title-input{font-size:16px;min-width:150px}.node-menu{left:10px}.node-menu-content{left:50px;min-width:180px}}.image-preview-modal-overlay{position:fixed;top:0;right:0;bottom:0;left:0;background:#000000e6;z-index:10000;display:flex;align-items:center;justify-content:center;animation:fadeIn .2s ease}.image-preview-controls{position:absolute;top:20px;right:20px;z-index:10001;display:flex;align-items:center;gap:8px;padding:8px 12px;border-radius:12px;border:1px solid rgba(255,255,255,.2);background:#14141480;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px)}.preview-control-btn{width:36px;height:36px;border:none;border-radius:8px;background:transparent;color:#fff;display:inline-flex;align-items:center;justify-content:center;cursor:pointer;transition:all .2s ease}.preview-control-btn:hover{background:#ffffff26}.preview-control-btn.close-btn:hover{background:#ef4444b3}.preview-control-btn:disabled{opacity:.4;cursor:not-allowed}.preview-scale-text{min-width:52px;text-align:center;font-size:13px;font-weight:600;color:#fff}.image-preview-primary-action{position:absolute;top:76px;right:20px;z-index:10001;display:flex;justify-content:flex-end;min-width:224px;margin-top:8px;padding:0}.preview-set-primary-btn{height:36px;padding:0 16px;border:none;border-radius:10px;background:#ffffff1f;color:#fff;font-size:13px;font-weight:600;cursor:pointer;transition:all .2s ease}.preview-set-primary-btn:hover{background:#fff3}.image-preview-content{position:relative;width:100%;height:100%;overflow:hidden;display:flex;align-items:center;justify-content:center}.image-preview-image-wrap{position:relative;display:flex;align-items:center;justify-content:center;width:min(90vw,1280px);height:min(90vh,920px);max-width:90vw;max-height:90vh}.image-preview-stage{position:relative;width:100%;height:100%;max-width:90vw;max-height:90vh}.image-preview-img{position:absolute;top:0;right:0;bottom:0;left:0;z-index:1;width:100%;height:100%;-o-object-fit:contain;object-fit:contain;-webkit-user-select:none;-moz-user-select:none;user-select:none;-webkit-user-drag:none;transition:opacity .2s ease-out;opacity:0}.image-preview-img.is-loaded{opacity:1}.image-preview-img.is-hidden{opacity:0;pointer-events:none}.image-preview-original{z-index:2}.image-preview-thumbnail{z-index:1}.image-preview-skeleton{position:absolute;top:0;right:0;bottom:0;left:0;z-index:3;width:100%;height:100%;border-radius:16px;overflow:hidden;border:1px solid rgba(255,255,255,.14);background:linear-gradient(180deg,#ffffff14,#ffffff0a),#ffffff08;box-shadow:0 12px 40px #00000040;animation:fadeInDelay .3s ease-out;animation-delay:.1s;animation-fill-mode:both}.image-preview-skeleton-shimmer{position:absolute;top:0;right:0;bottom:0;left:0;background:linear-gradient(90deg,#fff0,#ffffff0f 35%,#ffffff2e,#ffffff0f 65%,#fff0);transform:translate(-100%);animation:imagePreviewSkeletonShimmer 1.6s ease-in-out infinite}.image-preview-fallback{width:min(560px,80vw);min-height:240px;border-radius:16px;border:1px solid rgba(255,255,255,.18);background:#ffffff0f;-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);color:#ffffffe6;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;padding:28px 24px;text-align:center}.image-preview-fallback-icon{width:44px;height:44px;opacity:.9}.image-preview-fallback-title{font-size:16px;font-weight:600;line-height:1.3}.image-preview-fallback-desc{font-size:13px;line-height:1.5;color:#ffffffbf}.image-switch-btn{position:absolute;top:50%;transform:translateY(-50%);z-index:10001;width:48px;height:48px;border:none;border-radius:999px;background:#14141480;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);color:#fff;display:inline-flex;align-items:center;justify-content:center;cursor:pointer;transition:all .2s ease}.image-switch-btn:hover:not(:disabled){background:#ffffff26}.image-switch-btn:disabled{opacity:.3;cursor:not-allowed}.image-switch-btn.prev{left:24px}.image-switch-btn.next{right:24px}.image-preview-origin-loading{position:absolute;bottom:56px;left:50%;transform:translate(-50%);z-index:10002;display:inline-flex;align-items:center;gap:8px;padding:6px 10px;border-radius:999px;border:1px solid rgba(255,255,255,.2);background:#14141494;-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);color:#fffffff2;font-size:12px;line-height:1;pointer-events:none}.image-preview-origin-loading-dot{width:10px;height:10px;border-radius:999px;border:2px solid rgba(255,255,255,.35);border-top-color:#fffffff2;animation:imagePreviewOriginLoadingSpin .8s linear infinite}.image-preview-tips{position:absolute;bottom:20px;left:50%;transform:translate(-50%);z-index:10001;padding:8px 14px;border-radius:999px;border:1px solid rgba(255,255,255,.2);background:#14141473;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);color:#ffffffe6;font-size:12px;line-height:1;white-space:nowrap}@keyframes imagePreviewSkeletonShimmer{0%{transform:translate(-100%)}to{transform:translate(100%)}}@keyframes fadeInDelay{0%{opacity:0}to{opacity:1}}@keyframes imagePreviewOriginLoadingSpin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.markdown-editor,.markdown-editor *{-moz-user-select:text!important;user-select:text!important;-webkit-user-select:text!important}.node-markdown-editor{width:100%;height:100%}.node-markdown-editor ul,.node-markdown-editor ol{margin:.4em 0 .6em;padding-left:1.5em!important;list-style-position:outside}.node-markdown-editor ul{list-style-type:disc!important}.node-markdown-editor ol{list-style-type:decimal!important}.node-markdown-editor li{display:list-item;margin:.2em 0}.node-markdown-editor .markdown-editor-surface{width:100%;height:100%;min-height:250px;padding:16px;box-sizing:border-box;background-color:var(--bg-tertiary);overflow-y:auto;overflow-x:hidden}.node-markdown-editor .markdown-editor-content{width:100%;min-width:1px;caret-color:currentColor;outline:none;white-space:pre-wrap;word-break:break-word;text-align:left;-moz-user-select:text;user-select:text;-webkit-user-select:text}.node-markdown-editor .markdown-editor-content p{margin:0 0 .65em}.node-markdown-editor .markdown-editor-content p:last-child{margin-bottom:0}.node-markdown-editor .markdown-editor-content h1,.node-markdown-editor .markdown-editor-content h2,.node-markdown-editor .markdown-editor-content h3,.node-markdown-editor .markdown-editor-content h4{margin:.2em 0 .5em;line-height:1.3;font-weight:700}.node-markdown-editor .markdown-editor-content h1{font-size:1.5em}.node-markdown-editor .markdown-editor-content h2{font-size:1.3em}.node-markdown-editor .markdown-editor-content h3{font-size:1.15em}.node-markdown-editor .markdown-editor-content h4{font-size:1.05em}.node-markdown-editor .markdown-editor-content ul,.node-markdown-editor .markdown-editor-content ol{margin:.4em 0 .6em;padding-left:1.25em}.node-markdown-editor .markdown-editor-content blockquote{margin:.6em 0;padding:.5em .8em;border-left:3px solid #d1d5db;background:#f8fafc;color:#475569;border-radius:0 6px 6px 0}.node-markdown-editor .markdown-editor-content hr{border:0;border-top:1px solid #e5e7eb;margin:.9em 0}.node-markdown-editor .markdown-editor-content a{color:#2563eb;text-decoration:underline;text-underline-offset:2px}.node-markdown-editor .markdown-editor-content pre{margin:.5em 0;padding:10px 12px;border-radius:8px;background:#2b2b2b;overflow:auto}.node-markdown-editor .markdown-editor-content code{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-size:.9em;background:#2b2b2b;padding:.1em .3em;border-radius:4px;color:#f8fafc}.node-markdown-editor .markdown-editor-content pre code{background:transparent;padding:0;color:inherit}.node-markdown-editor .markdown-editor-content strong{font-weight:700}.node-markdown-editor .markdown-editor-content em{font-style:italic}.node-markdown-editor .markdown-editor-content .is-empty:before{color:#9ca3af;content:attr(data-placeholder);float:left;height:0;pointer-events:none}.node-markdown-editor .markdown-editor-content:focus{outline:none}.node-markdown-editor .markdown-editor-content.is-editor-empty{min-height:1.4em}.node-markdown-editor.is-preview .markdown-editor-content{cursor:grab}.node-markdown-editor.is-preview .markdown-editor-content:active{cursor:grabbing}.node-markdown-editor.is-editing .markdown-editor-content{cursor:text}.node-markdown-editor .markdown-editor-skeleton{width:100%;height:100%;min-height:250px;padding:16px;box-sizing:border-box;background-color:var(--bg-tertiary)}[data-theme=dark] .node-markdown-editor .markdown-editor-content{color:#f5f5f5}[data-theme=dark] .node-markdown-editor .markdown-editor-content blockquote{border-left-color:#475569;background:#0f172a;color:#cbd5e1}[data-theme=dark] .node-markdown-editor .markdown-editor-content hr{border-top-color:#334155}[data-theme=dark] .node-markdown-editor .markdown-editor-content a{color:#60a5fa}[data-theme=dark] .node-markdown-editor .markdown-editor-content pre{background:#2b2b2b}[data-theme=dark] .node-markdown-editor .markdown-editor-content code{background:#2b2b2b;color:#f8fafc}.node-input-area{position:absolute;top:100%;left:50%;transform:translate(-50%,10px);width:600px;padding:12px 24px 50px 16px;z-index:100;background-color:var(--bg-secondary, var(--bg-secondary, #ffffff));border:1px solid var(--border-color, #e5e7eb);border-radius:12px;box-shadow:0 4px 12px #0000001f;opacity:0;visibility:hidden;pointer-events:none;transition:all .2s ease}.function-node.selected .node-input-area,.function-node:focus-within .node-input-area{opacity:1;visibility:visible;pointer-events:auto}.node-input-area textarea,.node-input-area button,.node-input-area [role=button],.node-input-area [role=combobox],.node-input-area [data-radix-select-trigger],.node-input-area .node-controls-area,.node-input-area .node-thumbnail-area,.node-input-area .node-model-selector,.node-input-area .node-quality-selector,.node-input-area .node-ratio-selector{pointer-events:auto}.node-input-area--expanded{width:760px!important;max-width:calc(100vw - 48px);z-index:999!important;opacity:1!important;visibility:visible!important;pointer-events:auto!important;padding-top:20px}.node-input-area--expanded .node-bottom-input{height:min(320px,40vh)}.node-input-area__toggle-row{position:absolute;top:6px;right:8px;z-index:12;display:flex;align-items:center;gap:6px}.node-input-area__toggle{width:20px;height:20px;display:inline-flex;align-items:center;justify-content:center;cursor:pointer;transition:all .2s ease}.node-controls-area{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-top:10px}.node-controls-area__left{display:flex;align-items:center;gap:8px;min-width:0;flex:1;flex-wrap:wrap}.node-controls-area__right{display:flex;align-items:center;justify-content:flex-end;gap:8px;flex-shrink:0}.node-count-selector{display:flex;align-items:center;justify-content:flex-end;flex-shrink:0}.node-count-selector__trigger{justify-content:center}.node-run-group{display:flex;align-items:center;flex-shrink:0;background-color:#f3f4f6;border:1px solid transparent;box-shadow:0 1px 2px #00000014;border-radius:9999px;padding:4px}.dark .node-run-group{background-color:#2d2d2d;border-color:#404040}.node-run-group__credits{display:flex;align-items:center;gap:2px;padding-left:8px;padding-right:8px;font-size:12px;font-weight:500}.node-input-area__collapsed-hint{position:absolute;right:40px;top:12px;opacity:.35;color:var(--text-placeholder, #d1d5db)}.node-model-selector__menu-icon{width:14px;height:14px;-o-object-fit:contain;object-fit:contain;flex-shrink:0}.custom-size-input::-moz-placeholder{color:#e5e7eb;opacity:1}.custom-size-input::placeholder{color:#e5e7eb;opacity:1}.dark .custom-size-input::-moz-placeholder{color:#4b5563;opacity:1}.dark .custom-size-input::placeholder{color:#4b5563;opacity:1}.image-history-gallery-container{position:relative;z-index:55}.workflow-preview-action-sidebar{width:48px;min-width:48px;height:48px;display:flex;align-items:center;justify-content:center;padding:6px 0;border-radius:9999px!important;overflow:hidden}.workflow-preview-action-sidebar .image-history-gallery-container{display:flex;align-items:center;justify-content:center}.workflow-preview-action-sidebar .image-history-toggle-btn{margin:0}.image-history-toggle-btn{display:flex;align-items:center;justify-content:center;width:30px;height:30px;border-radius:50%;background:transparent;color:#9ca3af;border:none;box-shadow:none;cursor:pointer;transition:all .2s ease;margin:0}.image-history-toggle-btn:hover,.image-history-toggle-btn.active{color:#fff}.image-history-overlay{position:fixed;top:0;right:0;bottom:0;left:0;z-index:999;display:flex;align-items:center;justify-content:center;padding:32px;background:#0f172a73;-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px);animation:fadeIn .2s ease-out;overscroll-behavior:contain}.image-history-panel{pointer-events:auto;position:relative;width:1500px;height:clamp(600px,85vh,1000px);background:#fff;border-radius:20px;box-shadow:0 24px 80px #00000038;border:1px solid rgba(0,0,0,.08);display:flex;flex-direction:column;overflow:hidden;animation:zoomIn .2s ease-out}@media(max-width:1563px){.image-history-panel{width:960px}}@keyframes zoomIn{0%{opacity:0;transform:scale(.96)}to{opacity:1;transform:scale(1)}}.image-history-header{display:flex;align-items:center;justify-content:space-between;padding:20px 24px;border-bottom:1px solid rgba(0,0,0,.08);background:#f8fafc}.image-history-header h3{margin:0;font-size:20px;font-weight:700;color:#1f2937}.image-history-header .close-btn{background:none;border:none;color:#6b7280;cursor:pointer;padding:4px;border-radius:4px;display:flex;align-items:center;justify-content:center;transition:all .2s}.image-history-header .close-btn:hover{background:#0000000d;color:#1f2937}.image-history-content{flex:1;overflow-y:auto;padding:24px;position:relative;min-height:320px;overscroll-behavior:contain;pointer-events:auto}.image-history-content::-webkit-scrollbar{width:6px}.image-history-content::-webkit-scrollbar-track{background:transparent}.image-history-content::-webkit-scrollbar-thumb{background:#0000001a;border-radius:3px}.image-history-content::-webkit-scrollbar-thumb:hover{background:#0003}.empty-state{display:flex;flex-direction:column;align-items:center;justify-content:center;height:100%;color:#9ca3af;padding:40px 0}.empty-state .empty-icon{margin-bottom:12px;opacity:.5}.empty-state p{font-size:14px;margin:0}.loading-state{position:absolute;top:0;left:0;right:0;bottom:0;display:flex;align-items:center;justify-content:center;background:#fffc;color:var(--primary);z-index:10}.history-groups{display:flex;flex-direction:column;gap:24px}.history-group .group-date{font-size:13px;font-weight:600;color:#6b7280;margin-bottom:12px;padding-bottom:4px}.history-group .group-images{display:grid;grid-template-columns:repeat(6,230px);gap:14px;place-content:start center}@media(max-width:1563px){.image-history-panel .group-images{grid-template-columns:repeat(4,217px)}}.history-image-item{position:relative;aspect-ratio:1;border-radius:14px;overflow:hidden;cursor:default;background:#f3f4f6;border:1px solid rgba(0,0,0,.05);transition:all .2s}.history-image-item img{width:100%;height:100%;-o-object-fit:cover;object-fit:cover;transition:transform .3s ease}.history-image-item .history-image-actions{position:absolute;top:0;right:0;bottom:0;left:0;display:flex;align-items:center;justify-content:center;gap:12px;background:#0000008c;opacity:0;transition:opacity .2s ease;pointer-events:none}.history-image-item:hover img{transform:scale(1.05)}.history-image-item:hover .history-image-actions{opacity:1;pointer-events:auto}.history-image-item:hover .image-action-btn:not(:hover){opacity:.9;transform:scale(.98)}.image-action-btn{display:flex;flex-direction:column;align-items:center;gap:4px;padding:10px 16px;border:none;border-radius:10px;cursor:pointer;font-size:12px;font-weight:500;transition:all .15s ease}.image-action-btn span{line-height:1}.image-action-btn.preview,.image-action-btn.use{background:transparent;color:#fff}.image-action-btn.preview:hover,.image-action-btn.use:hover{transform:translateY(-1px) scale(1.1)}.image-history-load-more-sentinel-wrapper{padding:16px 0;display:flex;justify-content:center}.image-history-load-more-sentinel{width:100%;height:32px}.load-more-container{display:flex;justify-content:center;margin-top:16px;padding-top:16px;border-top:1px solid rgba(0,0,0,.05)}.load-more-container .load-more-btn{background:none;border:1px solid #e5e7eb;color:#4b5563;font-size:13px;padding:6px 16px;border-radius:16px;cursor:pointer;transition:all .2s;display:flex;align-items:center;gap:8px}.load-more-container .load-more-btn:hover:not(:disabled){background:#f9fafb;color:#1f2937;border-color:#d1d5db}.load-more-container .load-more-btn:disabled{opacity:.5;cursor:not-allowed}@media(max-width:768px){.image-history-overlay{padding:16px}.image-history-panel{width:720px}.image-history-header{padding:16px 18px}.image-history-header h3{font-size:18px}.image-history-content{padding:16px}.history-group .group-images{gap:12px}}[data-theme=dark] .image-history-toggle-btn:hover{color:var(--text-primary)}[data-theme=dark] .image-history-toggle-btn.active{color:var(--primary)}[data-theme=dark] .image-history-overlay{background:#020617b8}[data-theme=dark] .image-history-panel{background:var(--bg-secondary);border-color:var(--border-color);box-shadow:0 24px 80px #00000073}[data-theme=dark] .image-history-header{background:var(--bg-tertiary);border-color:var(--border-color)}[data-theme=dark] .image-history-header h3{color:var(--text-primary)}[data-theme=dark] .image-history-header .close-btn{color:var(--text-secondary)}[data-theme=dark] .image-history-header .close-btn:hover{background:#ffffff1a;color:var(--text-primary)}[data-theme=dark] .history-group .group-date{color:var(--text-primary);border-color:var(--border-color)}[data-theme=dark] .history-image-item{background:var(--bg-tertiary);border-color:var(--border-color)}[data-theme=dark] .history-image-item:hover{border-color:var(--primary)}[data-theme=dark] .load-more-container{border-color:var(--border-color)}[data-theme=dark] .load-more-container .load-more-btn{border-color:var(--border-color);color:var(--text-secondary)}[data-theme=dark] .load-more-container .load-more-btn:hover:not(:disabled){background:var(--bg-tertiary);color:var(--text-primary)}[data-theme=dark] .loading-state{background:#1e1e1ecc}.template-preview-modal-overlay{position:fixed;top:0;right:0;bottom:0;left:0;background:#0009;-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px);z-index:99999;display:flex;align-items:center;justify-content:center;animation:fadeIn .2s ease}.template-preview-modal-overlay.fullscreen{padding:0}.template-preview-modal-overlay.windowed{padding:16px}@media(min-width:640px){.template-preview-modal-overlay.windowed{padding:24px}}.template-preview-modal-container{background:#fff;box-shadow:0 25px 50px -12px #00000040;overflow:hidden;display:flex;flex-direction:column;animation:slideUp .3s ease-in-out;transition:all .3s ease-in-out}.dark .template-preview-modal-container{background:#111827}.template-preview-modal-container.fullscreen{width:100vw;height:100vh;border-radius:0}.template-preview-modal-container.windowed{position:relative;width:80vw;height:80vh;max-width:1280px;max-height:900px;border-radius:16px}@keyframes slideUp{0%{opacity:0;transform:translateY(20px)}to{opacity:1;transform:translateY(0)}}.workflow-empty-hint{position:absolute;top:0;right:0;bottom:0;left:0;display:flex;align-items:center;justify-content:center;pointer-events:none;z-index:2}.workflow-empty-hint__container{display:flex;flex-direction:column;align-items:center;gap:16px}.workflow-empty-hint__panel{position:relative;padding:30px 50px 30px 18px;border-radius:14px;background:#fffffff0;border:1px solid rgba(132,227,90,.42);box-shadow:0 10px 30px #0f172a1f;-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px)}.workflow-empty-hint__template-panel{padding:20px 24px;border-radius:14px;background:#fffffff0;border:1px solid rgba(132,227,90,.32);box-shadow:0 8px 24px #0f172a1a;-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px);width:100%}.workflow-empty-hint__template-buttons{display:flex;flex-wrap:wrap;justify-content:center;gap:12px}.workflow-empty-hint__template-btn{height:36px;padding:0 16px;border-radius:10px;border:1px solid rgba(75,85,99,.28);background:linear-gradient(180deg,#f9fafbf2,#fffffffa);color:#374151;font-size:14px;font-weight:500;cursor:pointer;pointer-events:auto;display:inline-flex;align-items:center;justify-content:center;gap:6px;transition:all .15s ease;box-shadow:inset 0 1px #ffffffe6,inset 0 -1px #0f172a0f,0 1px 2px #0f172a1a,0 4px 8px #0f172a14}.workflow-empty-hint__template-btn:hover:not(:disabled){background:linear-gradient(180deg,#f3f4f6f2,#f9fafbfa);border-color:#84e35a80;box-shadow:inset 0 1px #ffffffe6,inset 0 -1px #0f172a0f,0 1px 2px #0f172a1f,0 4px 10px #84e35a2e}.workflow-empty-hint__template-btn:active:not(:disabled){transform:translateY(1px);box-shadow:inset 0 1px #ffffff80,inset 0 -1px #0f172a0a,0 1px 1px #0f172a14}.workflow-empty-hint__template-btn:disabled{opacity:.6;cursor:not-allowed}.workflow-empty-hint__template-btn-icon{width:18px;height:18px;-o-object-fit:contain;object-fit:contain;flex-shrink:0}.workflow-empty-hint__template-btn-text{white-space:nowrap}.workflow-empty-hint__template-btn-spinner{width:14px;height:14px;border:2px solid rgba(132,227,90,.3);border-top-color:#84e35a;border-radius:50%;animation:workflow-hint-spin .6s linear infinite}.workflow-empty-hint__notice-badge{position:absolute;top:-10px;left:0;transform:rotate(-15deg);transform-origin:left center;display:inline-flex;align-items:center;justify-content:center}.workflow-empty-hint__notice-dot{width:30px;height:30px;background:#84e35a;clip-path:polygon(50% 0%,61% 35%,98% 35%,68% 57%,79% 92%,50% 72%,21% 92%,32% 57%,2% 35%,39% 35%);box-shadow:0 4px 10px #3f7a2652;flex-shrink:0}.workflow-empty-hint__line{display:flex;align-items:center;justify-content:flex-start;gap:16px;color:#4b5563;font-size:16px;font-weight:500;line-height:1.6}.workflow-empty-hint__line+.workflow-empty-hint__line{margin-top:12px}.workflow-empty-hint__icon-btn{height:26px;border:1px solid rgba(75,85,99,.38);border-radius:8px;background:linear-gradient(180deg,#f3f4f6eb,#fffffffa);color:inherit;display:inline-flex;align-items:center;justify-content:center;gap:4px;padding:0 8px;flex-shrink:0;pointer-events:auto;opacity:.92;box-shadow:inset 0 1px #ffffffe6,inset 0 -1px #0f172a14,0 1px 2px #0f172a24,0 4px 10px #0f172a24}.workflow-empty-hint__icon{width:13px;height:13px;line-height:1}.workflow-empty-hint__btn-text{font-size:12px;line-height:1;font-weight:600}.workflow-empty-hint__dot{width:7px;height:7px;border-radius:100%;background:#84e35a;flex-shrink:0;box-shadow:0 0 0 4px #84e35a33}.workflow-empty-hint__text{margin:0}@keyframes workflow-hint-spin{to{transform:rotate(360deg)}}[data-theme=dark] .workflow-empty-hint__panel{background:#111827c7;border-color:#84e35a80;box-shadow:0 12px 30px #0000006b}[data-theme=dark] .workflow-empty-hint__template-panel{background:#111827c7;border-color:#84e35a66;box-shadow:0 8px 24px #00000059}[data-theme=dark] .workflow-empty-hint__template-btn{background:linear-gradient(180deg,#1f2937eb,#374151f2);border-color:#d1d5db59;color:#e5e7eb;box-shadow:inset 0 1px #ffffff26,inset 0 -1px #0003,0 1px 2px #0000004d,0 4px 8px #00000040}[data-theme=dark] .workflow-empty-hint__template-btn:hover:not(:disabled){background:linear-gradient(180deg,#1f2937f2,#374151fa);border-color:#84e35a8c;box-shadow:inset 0 1px #ffffff26,inset 0 -1px #0003,0 1px 2px #00000059,0 4px 10px #84e35a33}[data-theme=dark] .workflow-empty-hint__notice-dot{background:#84e35a;box-shadow:0 4px 12px #00000061}[data-theme=dark] .workflow-empty-hint__line{color:#d1d5db}[data-theme=dark] .workflow-empty-hint__icon-btn{color:inherit;border-color:#d1d5db73;background:linear-gradient(180deg,#1f2937eb,#374151f2);opacity:.92;box-shadow:inset 0 1px #fff3,inset 0 -1px #00000047,0 1px 2px #0000005c,0 4px 12px #00000052}[data-theme=dark] .workflow-empty-hint__dot{background:#84e35a;box-shadow:0 0 0 4px #84e35a3d}.template-panel-container{position:relative;z-index:55}.template-panel-toggle-btn{display:flex;align-items:center;justify-content:center;width:30px;height:30px;border-radius:50%;background:transparent;color:#9ca3af;border:none;box-shadow:none;cursor:pointer;transition:all .2s ease;margin:0}.template-panel-toggle-btn:hover,.template-panel-toggle-btn.active{color:#fff}.template-panel-overlay{position:fixed;top:50%;left:80px;transform:translateY(-50%);z-index:998;animation:templatePanelSlideIn .2s ease-out}.template-panel-overlay.fullscreen{top:0;left:0;right:0;bottom:0;transform:none;display:flex;align-items:center;justify-content:center;padding:32px;background:#0f172a73;-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px);animation:fadeIn .2s ease-out}@keyframes templatePanelSlideIn{0%{opacity:0;transform:translateY(-50%) translate(-10px)}to{opacity:1;transform:translateY(-50%) translate(0)}}@keyframes fadeIn{0%{opacity:0}to{opacity:1}}.template-panel{width:480px;height:clamp(480px,55vh,780px);background:#fff;border-radius:16px;box-shadow:0 12px 40px #00000026;border:1px solid rgba(0,0,0,.08);display:flex;flex-direction:column;overflow:hidden}.template-panel-overlay.fullscreen .template-panel{width:1500px;height:clamp(600px,85vh,1000px);border-radius:20px;box-shadow:0 24px 80px #00000038}@media(min-width:1800px){.template-panel-overlay:not(.fullscreen) .template-panel{width:740px}}@media(max-width:1563px){.template-panel-overlay.fullscreen .template-panel{width:960px}}.template-panel-header{display:flex;align-items:center;justify-content:space-between;padding:12px 16px;border-bottom:1px solid rgba(0,0,0,.06);background:#f8fafc}.template-panel-tabs{display:flex;gap:4px}.template-panel-tab{padding:6px 14px;border-radius:6px;border:none;background:transparent;color:#6b7280;font-size:13px;font-weight:500;cursor:pointer;transition:all .15s ease}.template-panel-tab:hover:not(:disabled){background:#0000000a;color:#374151}.template-panel-tab.active{background:var(--primary);color:#fff}.template-panel-tab:disabled{opacity:.5;cursor:not-allowed}.template-panel-fullscreen-btn{display:flex;align-items:center;justify-content:center;width:28px;height:28px;border-radius:6px;border:none;background:transparent;color:#6b7280;cursor:pointer;transition:all .15s ease}.template-panel-fullscreen-btn:hover{background:#0000000a;color:#374151}.template-panel-search{display:flex;align-items:center;gap:8px;padding:12px 16px}.template-panel-search-wrapper{position:relative;flex:1;min-width:0}.template-panel-search-icon{position:absolute;left:12px;top:50%;transform:translateY(-50%);color:#9ca3af;pointer-events:none}.template-panel-search-input{width:100%;padding:8px 32px 8px 36px;border-radius:8px;border:1px solid rgba(0,0,0,.1);background:#f9fafb;font-size:13px;color:#1f2937;outline:none;transition:all .15s ease}.template-panel-search-input::-moz-placeholder{color:#9ca3af}.template-panel-search-input::placeholder{color:#9ca3af}.template-panel-search-input:focus{border-color:var(--primary);background:#fff;box-shadow:0 0 0 2px color-mix(in srgb,var(--primary) 10%,transparent)}.template-panel-search-clear{position:absolute;right:8px;top:50%;transform:translateY(-50%);display:flex;align-items:center;justify-content:center;width:20px;height:20px;border-radius:50%;border:none;background:#00000014;color:#6b7280;cursor:pointer;transition:all .15s ease}.template-panel-search-clear:hover{background:#00000026;color:#374151}.template-panel-categories{display:flex;gap:6px;padding:0 16px 12px;overflow-x:auto;scrollbar-width:none}.template-panel-categories::-webkit-scrollbar{display:none}.template-panel-category{padding:4px 12px;border-radius:14px;border:1px solid rgba(0,0,0,.1);background:transparent;color:#6b7280;font-size:12px;white-space:nowrap;cursor:pointer;transition:all .15s ease}.template-panel-category:hover{border-color:color-mix(in srgb,var(--primary) 30%,transparent);color:var(--primary)}.template-panel-category.active{border-color:var(--primary);background:color-mix(in srgb,var(--primary) 8%,transparent);color:var(--primary);font-weight:500}.template-panel-content{flex:1;overflow-y:auto;padding:0 16px 16px;position:relative}.template-panel-content::-webkit-scrollbar{width:4px}.template-panel-content::-webkit-scrollbar-track{background:transparent}.template-panel-content::-webkit-scrollbar-thumb{background:#0000001a;border-radius:2px}.template-panel-grid{display:grid;grid-template-columns:repeat(3,138px);gap:12px;padding-top:4px;place-content:start center}@media(min-width:1800px){.template-panel-overlay:not(.fullscreen) .template-panel-grid{grid-template-columns:repeat(4,167px)}}.template-panel-overlay.fullscreen .template-panel-grid{grid-template-columns:repeat(6,234px)}@media(max-width:1563px){.template-panel-overlay.fullscreen .template-panel-grid{grid-template-columns:repeat(4,223px)}}.template-card{border-radius:10px;overflow:hidden;background:#f9fafb;border:1px solid rgba(0,0,0,.06);transition:all .2s ease;cursor:pointer}.template-card:hover{transform:translateY(-2px);box-shadow:0 8px 20px #00000014;border-color:color-mix(in srgb,var(--primary) 30%,transparent)}.template-card:hover .template-card-overlay{opacity:1}.template-card:hover .template-card-image{transform:scale(1.05)}.template-card.skeleton .template-card-image-wrapper{background:#e5e7eb;animation:skeleton-pulse 1.5s ease-in-out infinite}.template-card.skeleton .template-card-info{padding:8px}.template-card.skeleton .template-card-name-skeleton{height:12px;background:#e5e7eb;border-radius:4px;width:70%;animation:skeleton-pulse 1.5s ease-in-out infinite}@keyframes skeleton-pulse{0%,to{opacity:1}50%{opacity:.5}}.template-card-image-wrapper{position:relative;aspect-ratio:1;overflow:hidden;background:#e5e7eb}.template-card-image{width:100%;height:100%;-o-object-fit:cover;object-fit:cover;transition:transform .3s ease;opacity:0}.template-card-image.loaded{opacity:1}.template-card-image-placeholder{width:100%;height:100%;background:#e5e7eb}.template-card-no-image{width:100%;height:100%;display:flex;align-items:center;justify-content:center;color:#9ca3af}.template-card-overlay{position:absolute;top:0;right:0;bottom:0;left:0;display:flex;align-items:center;justify-content:center;gap:8px;background:#00000080;opacity:0;transition:opacity .2s ease}.template-card-action{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;width:60px;height:50px;padding:8px 12px;border:none;border-radius:8px;background:#fffffff2;color:#374151;font-size:11px;font-weight:500;cursor:pointer;transition:all .15s ease}.template-card-action span{line-height:1}.template-card-action:hover:not(:disabled){background:#e5e7eb;transform:scale(1.05)}.template-card-action:disabled{opacity:.6;cursor:not-allowed}.template-card-action.apply{background:#fffffff2;color:#374151}.template-card-action.apply:hover:not(:disabled){background:#e5e7eb;filter:none}.template-card-info{padding:8px}.template-card-name{font-size:12px;font-weight:500;color:#374151;margin:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.template-panel-empty,.template-panel-error{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:40px 20px;color:#9ca3af;gap:12px}.template-panel-empty p,.template-panel-error p{font-size:13px;margin:0;text-align:center}.template-panel-empty button,.template-panel-error button{padding:6px 16px;border-radius:6px;border:1px solid color-mix(in srgb,var(--primary) 30%,transparent);background:color-mix(in srgb,var(--primary) 8%,transparent);color:var(--primary);font-size:12px;cursor:pointer;transition:all .15s ease}.template-panel-empty button:hover,.template-panel-error button:hover{background:color-mix(in srgb,var(--primary) 15%,transparent)}.template-panel-loading-more{display:flex;justify-content:center;padding:16px;color:#9ca3af}.template-panel-loading-overlay{position:absolute;top:0;right:0;bottom:0;left:0;display:flex;align-items:center;justify-content:center;background:#ffffffb3;color:var(--primary);z-index:10}.template-panel-sentinel{height:1px}[data-theme=dark] .template-panel-overlay.fullscreen{background:#020617b8}[data-theme=dark] .template-panel{background:var(--bg-secondary);border-color:var(--border-color);box-shadow:0 12px 40px #0006}.fullscreen [data-theme=dark] .template-panel{box-shadow:0 24px 80px #00000073}[data-theme=dark] .template-panel-header{background:var(--bg-tertiary);border-color:var(--border-color)}[data-theme=dark] .template-panel-tab{color:var(--text-secondary)}[data-theme=dark] .template-panel-tab:hover:not(:disabled){background:#ffffff0f;color:var(--text-primary)}[data-theme=dark] .template-panel-tab.active{background:var(--primary);color:#fff}[data-theme=dark] .template-panel-fullscreen-btn{color:var(--text-secondary)}[data-theme=dark] .template-panel-fullscreen-btn:hover{background:#ffffff0f;color:var(--text-primary)}[data-theme=dark] .template-panel-search-input{background:var(--bg-tertiary);border-color:var(--border-color);color:var(--text-primary)}[data-theme=dark] .template-panel-search-input:focus{border-color:var(--primary);background:var(--bg-primary)}[data-theme=dark] .template-panel-search-clear{background:#ffffff1a;color:var(--text-secondary)}[data-theme=dark] .template-panel-search-clear:hover{background:#fff3;color:var(--text-primary)}[data-theme=dark] .template-panel-category{border-color:var(--border-color);color:var(--text-secondary)}[data-theme=dark] .template-panel-category:hover{border-color:color-mix(in srgb,var(--primary) 40%,transparent);color:var(--primary)}[data-theme=dark] .template-panel-category.active{border-color:var(--primary);background:color-mix(in srgb,var(--primary) 15%,transparent);color:var(--primary)}[data-theme=dark] .template-card{background:var(--bg-tertiary);border-color:var(--border-color)}[data-theme=dark] .template-card:hover{border-color:color-mix(in srgb,var(--primary) 40%,transparent)}[data-theme=dark] .template-card.skeleton .template-card-image-wrapper,[data-theme=dark] .template-card.skeleton .template-card-name-skeleton,[data-theme=dark] .template-card-image-wrapper,[data-theme=dark] .template-card-image-placeholder{background:var(--bg-tertiary)}[data-theme=dark] .template-card-no-image{color:var(--text-secondary)}[data-theme=dark] .template-card-name{color:var(--text-primary)}[data-theme=dark] .template-card-action{background:#1e1e1e00;color:var(--text-primary)}[data-theme=dark] .template-card-action:hover:not(:disabled){background:#1e1e1e00}[data-theme=dark] .template-card-action.apply{color:#fff}[data-theme=dark] .template-panel-empty,[data-theme=dark] .template-panel-error{color:var(--text-secondary)}[data-theme=dark] .template-panel-empty button,[data-theme=dark] .template-panel-error button{border-color:color-mix(in srgb,var(--primary) 40%,transparent);background:color-mix(in srgb,var(--primary) 15%,transparent);color:var(--primary)}[data-theme=dark] .template-panel-empty button:hover,[data-theme=dark] .template-panel-error button:hover{background:color-mix(in srgb,var(--primary) 25%,transparent)}[data-theme=dark] .template-panel-loading-more{color:var(--text-secondary)}[data-theme=dark] .template-panel-loading-overlay{background:#1e1e1eb3}
