.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: #777;--xy-background-pattern-lines-color-default: #777;--xy-background-pattern-cross-color-default: #777;--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}.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))}:root{--primary: #6366f1;--primary-dark: #4f46e5;--primary-light: #818cf8;--bg: #f8fafc;--surface: #ffffff;--text: #1e293b;--text-light: #64748b;--border: #e2e8f0;--success: #22c55e;--error: #ef4444}*{margin:0;padding:0;box-sizing:border-box}body{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,sans-serif;background:var(--bg);color:var(--text);line-height:1.6;overflow:hidden;transition:background .3s,color .3s}.app-container{display:flex;flex-direction:column;height:100vh;width:100vw;background:var(--bg);color:var(--text);transition:background .3s,color .3s}.app-container.dark{--bg: #0B0B0C;--bg-alt: #111214;--surface: #1A1C1F;--surface-hover: #252729;--text: #f1f5f9;--text-light: #94a3b8;--border: #2A2D31;--primary: #818cf8;--primary-dark: #6366f1}.top-bar{height:56px;display:flex;align-items:center;justify-content:space-between;padding:0 16px;border-bottom:1px solid var(--border);background:var(--surface);transition:background .3s,border-color .3s}.dark .top-bar{border-bottom-color:var(--border)}.top-bar-left,.top-bar-right{display:flex;align-items:center;gap:8px}.logo{display:flex;align-items:center;gap:8px;font-weight:600;font-size:18px}.logo-icon{width:32px;height:32px;background:var(--primary);border-radius:8px;display:flex;align-items:center;justify-content:center;color:#fff}.logo-icon svg{width:18px;height:18px}.model-selector{display:flex;background:var(--border);border-radius:8px;padding:4px;transition:background .3s}.model-btn{display:flex;align-items:center;gap:6px;padding:6px 12px;border:none;background:transparent;border-radius:6px;font-size:13px;font-weight:500;cursor:pointer;transition:all .2s;color:var(--text-light)}.model-btn:hover{color:var(--text)}.model-btn.active{background:var(--surface);color:var(--primary);box-shadow:0 1px 3px #0003}.model-btn:hover{color:#1e293b}.model-btn.active{background:var(--surface);color:var(--primary);box-shadow:0 1px 3px #0000001a}.dark .model-btn.active{background:#334155;box-shadow:none}.btn{padding:8px 16px;border-radius:8px;font-weight:500;font-size:14px;cursor:pointer;transition:all .2s;display:flex;align-items:center;gap:6px;border:none;color:var(--text);background:var(--surface)}.btn svg{flex-shrink:0}.btn-primary{background:var(--primary);color:#fff}.btn-primary:hover{background:var(--primary-dark)}.btn-primary:disabled{opacity:.5;cursor:not-allowed}.btn-secondary{background:var(--surface);color:var(--text);border:1px solid var(--border)}.btn-secondary:hover{background:var(--border)}.main-content{display:flex;flex:1;overflow:hidden}.sidebar{width:280px;background:var(--surface);border-right:1px solid var(--border);display:flex;flex-direction:column;transition:background .3s,border-color .3s}.sidebar-section{padding:16px;border-bottom:1px solid var(--border);transition:border-color .3s}.sidebar-section h3{font-size:12px;font-weight:600;color:#64748b;text-transform:uppercase;letter-spacing:.5px;margin-bottom:12px;display:flex;align-items:center;gap:6px}.category-btn{width:100%;display:flex;align-items:center;justify-content:space-between;padding:8px 12px;border:none;background:transparent;border-radius:6px;font-size:13px;font-weight:500;color:var(--text);cursor:pointer;transition:all .2s}.category-btn-content{display:flex;align-items:center;gap:8px}.category-btn:hover{background:var(--border)}.category-item{width:100%;text-align:left;padding:6px 12px;border:none;background:transparent;border-radius:4px;font-size:13px;color:var(--text-light);cursor:pointer;transition:all .2s}.category-item:hover{background:var(--border);color:var(--text)}.history-item{width:100%;text-align:left;padding:8px 12px;background:#f8fafc;border-radius:6px;margin-bottom:8px;cursor:pointer;transition:all .2s}.history-item:hover{background:#f1f5f9}.history-item p{font-size:13px;color:#374151;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.history-item span{font-size:11px;color:#94a3b8}.canvas-area{flex:1;position:relative;background:var(--bg);overflow:hidden;transition:background .3s}.dark .canvas-area{background:var(--bg)}.dark .model-selector{background:var(--surface)}.canvas-toolbar{position:absolute;bottom:24px;left:50%;transform:translate(-50%);z-index:10}.node-card{background:var(--surface);border-radius:12px;box-shadow:0 4px 20px #00000026;width:340px;overflow:hidden;transition:background .3s,box-shadow .3s}.dark .node-card{background:#1e293b;box-shadow:0 4px 20px #0006}.node-card.selected{box-shadow:0 0 0 2px var(--primary),0 4px 20px #6366f14d}.node-header{padding:12px 16px;border-bottom:1px solid var(--border);display:flex;align-items:center;justify-content:space-between;transition:border-color .3s}.node-header-title{display:flex;align-items:center;gap:8px;font-weight:500;font-size:14px;color:var(--text)}.node-icon{color:var(--primary)}.node-header-title svg{color:var(--primary)}.node-select{padding:4px 8px;font-size:12px;background:var(--border);border:none;border-radius:4px;color:var(--text)}.node-field textarea,.node-field input{width:100%;padding:8px 12px;border:1px solid var(--border);border-radius:8px;font-size:14px;resize:none;background:var(--surface);color:var(--text);transition:background .3s,border-color .3s,color .3s}.node-body{padding:16px}.node-field{margin-bottom:12px}.node-field label{display:block;font-size:12px;color:#64748b;margin-bottom:6px}.node-field textarea,.node-field input{width:100%;padding:8px 12px;border:1px solid #e5e7eb;border-radius:8px;font-size:14px;resize:none}.node-field textarea:focus,.node-field input:focus{outline:none;border-color:var(--primary);box-shadow:0 0 0 3px #6366f11a}.style-chips{display:flex;flex-wrap:wrap;gap:6px;margin-top:6px}.style-chip{padding:4px 10px;font-size:12px;border-radius:999px;border:none;background:var(--border);color:var(--text-light);cursor:pointer;transition:all .2s}.style-chip:hover{background:var(--text-light);color:var(--surface)}.dark .style-chip:hover{color:var(--text)}.style-chip.active{background:var(--primary);color:#fff}.enhanced-prompt{margin-top:12px;padding:12px;background:var(--border);border-radius:8px;font-size:12px;color:var(--text-light);border-left:3px solid var(--primary);transition:background .3s,color .3s}.generate-btn{width:100%;padding:10px;background:var(--primary);color:#fff;border:none;border-radius:8px;font-size:14px;font-weight:500;cursor:pointer;display:flex;align-items:center;justify-content:center;gap:8px;transition:all .2s;margin-top:12px}.generate-btn:hover:not(:disabled){background:var(--primary-dark)}.generate-btn:disabled{opacity:.5;cursor:not-allowed}.generate-btn .spinner{animation:spin 1s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}.preview-section{border-top:1px solid var(--border);padding:16px;transition:border-color .3s}.preview-image{aspect-ratio:16/9;background:var(--border);border-radius:8px;overflow:hidden;transition:background .3s}.preview-image img{width:100%;height:100%;object-fit:contain}.preview-actions{display:flex;gap:8px;margin-top:12px}.preview-actions button{flex:1;padding:8px;font-size:12px}.reference-card{width:300px;background:var(--surface);border-radius:12px;box-shadow:0 4px 20px #00000026;transition:background .3s,box-shadow .3s}.dropzone{border:2px dashed var(--border);border-radius:8px;padding:24px;text-align:center;cursor:pointer;transition:all .2s;display:flex;flex-direction:column;align-items:center;gap:8px}.dropzone-icon{color:var(--text-light);opacity:.5}.dropzone:hover,.dropzone.dragover{border-color:var(--primary);background:#6366f11a}.dropzone p{font-size:14px;color:var(--text-light)}.dropzone span{font-size:12px;color:var(--text-light);opacity:.7}.images-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin-top:12px}.images-grid .image-thumb{position:relative;aspect-ratio:1;border-radius:8px;overflow:hidden}.images-grid .image-thumb img{width:100%;height:100%;object-fit:cover}.images-grid .remove-btn{position:absolute;top:4px;right:4px;width:20px;height:20px;background:#ef4444;color:#fff;border:none;border-radius:50%;font-size:12px;cursor:pointer;display:flex;align-items:center;justify-content:center}.right-panel{width:320px;background:var(--surface);border-left:1px solid var(--border);display:flex;flex-direction:column;transition:background .3s,border-color .3s}.right-panel-header{padding:16px;border-bottom:1px solid var(--border);display:flex;align-items:center;justify-content:space-between;transition:border-color .3s}.right-panel-header h2{font-size:16px;font-weight:600;color:var(--text)}.right-panel-content{flex:1;padding:16px;overflow-y:auto}.empty-panel{display:flex;flex-direction:column;align-items:center;justify-content:center;height:100%;text-align:center;color:var(--text-light)}.form-group label{display:block;font-size:12px;color:var(--text-light);margin-bottom:6px}.form-group select{width:100%;padding:8px 12px;border:1px solid var(--border);border-radius:8px;background:var(--surface);color:var(--text);font-size:14px;transition:background .3s,border-color .3s,color .3s}.empty-panel p{font-size:14px}.empty-panel span{font-size:12px}.general-settings{margin-top:24px}.general-settings h3{font-size:12px;font-weight:600;color:#64748b;text-transform:uppercase;margin-bottom:12px}.form-group{margin-bottom:16px}.form-group label{display:block;font-size:12px;color:#64748b;margin-bottom:6px}.form-group select{width:100%;padding:8px 12px;border:1px solid #e5e7eb;border-radius:8px;background:#fff;font-size:14px}.progress-bar{margin-top:16px;padding:12px;background:#6366f11a;border-radius:8px}.progress-bar p{font-size:14px;color:var(--primary);margin-bottom:8px}.progress-bar .bar{height:8px;background:#e2e8f0;border-radius:4px;overflow:hidden}.progress-bar .bar-fill{height:100%;background:var(--primary);transition:width .3s}.version-history{margin-top:24px;padding-top:24px;border-top:1px solid var(--border);transition:border-color .3s}.version-history h3{font-size:12px;font-weight:600;color:var(--text-light);text-transform:uppercase;margin-bottom:12px}.version-item{display:flex;align-items:center;gap:12px;padding:8px;background:var(--border);border-radius:8px;margin-bottom:8px;transition:background .3s}.version-item .thumb{width:40px;height:40px;background:var(--text-light);border-radius:6px}.version-item .info p{font-size:12px;color:var(--text)}.version-item .info span{font-size:11px;color:var(--text-light)}.version-item button{padding:4px;background:none;border:none;cursor:pointer;color:var(--text-light)}.draggable-item{display:flex;align-items:center;gap:6px;cursor:grab;padding:2px 0}.draggable-item:active{cursor:grabbing}.drag-handle{color:var(--text-light);opacity:.5;flex-shrink:0}.empty-canvas{position:absolute;top:0;right:0;bottom:0;left:0;display:flex;align-items:center;justify-content:center;pointer-events:none}.empty-canvas .content{text-align:center}.empty-canvas h3{font-size:16px;color:var(--text-light);margin-bottom:8px}.empty-canvas p{font-size:14px;color:var(--text-light);opacity:.7}.react-flow__node{padding:0}.react-flow__handle{width:12px;height:12px;background:var(--primary);border:2px solid var(--surface)}.react-flow__controls{box-shadow:0 4px 12px #0000001a;border-radius:8px;overflow:hidden}.react-flow__controls-button{border:none;background:var(--surface);color:var(--text);transition:background .3s,color .3s}.react-flow__controls-button:hover{background:var(--border)}.react-flow__minimap{box-shadow:0 4px 12px #0000001a;border-radius:8px;overflow:hidden;background:var(--surface)}.dark .react-flow__controls-button{background:#1e293b;color:#f1f5f9}.dark .react-flow__controls-button:hover{background:#334155}.dark .react-flow__minimap{background:#1e293b}.react-flow__edge-path{stroke:var(--primary);stroke-width:2}.react-flow__edge.animated .react-flow__edge-path{stroke-dasharray:5 5}.react-flow__edge.selected .react-flow__edge-path{stroke:var(--primary);stroke-width:3}.sidebar-content{display:flex;flex-direction:column;height:100%}.toggle-btn{font-size:13px;color:var(--text-light);background:none;border:none;cursor:pointer}.toggle-btn:hover{color:var(--text)}.history-item{width:100%;text-align:left;padding:8px 12px;background:var(--border);border-radius:6px;margin-bottom:8px;cursor:pointer;transition:all .2s;border:none}.history-item:hover{background:var(--text-light)}.history-item p{font-size:13px;color:var(--text);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.history-item span{font-size:11px;color:var(--text-light)}.favorite-item{display:flex;align-items:center;gap:8px;padding:8px 12px;background:var(--border);border-radius:6px;margin-bottom:8px;transition:background .3s}.favorite-thumb{width:32px;height:32px;border-radius:4px;object-fit:cover}.favorite-item span{font-size:13px;color:#374151;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.new-card-btn{width:100%;justify-content:center}.right-panel-footer{padding:16px;border-top:1px solid var(--border);transition:border-color .3s}.close-btn{background:transparent;border:none;cursor:pointer;color:var(--text-light);display:flex;align-items:center;justify-content:center;padding:4px;border-radius:4px;transition:all .2s}.close-btn:hover{background:var(--border);color:var(--text)}.form-group .value{font-size:14px;font-weight:500;color:var(--text);margin-top:4px}.save-preset-btn{width:100%;justify-content:center}.canvas-wrapper{width:100%;height:100%;position:relative}.icon-btn{padding:8px;background:transparent;border:none;cursor:pointer;color:var(--text-light);display:flex;align-items:center;justify-content:center;border-radius:8px;transition:all .2s}.icon-btn:hover{background:var(--border);color:var(--text)}.menu-btn{padding:8px;background:transparent;border:none;font-size:20px;cursor:pointer;color:var(--text-light);display:flex;align-items:center;justify-content:center}.top-bar-center{display:flex;align-items:center}
