:root{font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;line-height:1.5;font-weight:400;background-color:#f7f8fb;color:#111827;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased}*,*:before,*:after{box-sizing:border-box}body{margin:0;min-height:100vh;background:#f7f8fb}#root{min-height:100vh}a{color:inherit;text-decoration:none}.react-flow{direction:ltr}.react-flow__container{position:absolute;width:100%;height:100%;top:0;left:0}.react-flow__pane{z-index:1;cursor:-webkit-grab;cursor:grab}.react-flow__pane.selection{cursor:pointer}.react-flow__pane.dragging{cursor:-webkit-grabbing;cursor:grabbing}.react-flow__viewport{transform-origin:0 0;z-index:2;pointer-events:none}.react-flow__renderer{z-index:4}.react-flow__selection{z-index:6}.react-flow__nodesselection-rect:focus,.react-flow__nodesselection-rect:focus-visible{outline:none}.react-flow .react-flow__edges{pointer-events:none;overflow:visible}.react-flow__edge-path,.react-flow__connection-path{stroke:#b1b1b7;stroke-width:1;fill:none}.react-flow__edge{pointer-events:visibleStroke;cursor:pointer}.react-flow__edge.animated path{stroke-dasharray:5;-webkit-animation:dashdraw .5s linear infinite;animation:dashdraw .5s linear infinite}.react-flow__edge.animated path.react-flow__edge-interaction{stroke-dasharray:none;-webkit-animation:none;animation:none}.react-flow__edge.inactive{pointer-events:none}.react-flow__edge.selected,.react-flow__edge:focus,.react-flow__edge:focus-visible{outline:none}.react-flow__edge.selected .react-flow__edge-path,.react-flow__edge:focus .react-flow__edge-path,.react-flow__edge:focus-visible .react-flow__edge-path{stroke:#555}.react-flow__edge-textwrapper{pointer-events:all}.react-flow__edge-textbg{fill:#fff}.react-flow__edge .react-flow__edge-text{pointer-events:none;-webkit-user-select:none;-moz-user-select:none;user-select:none}.react-flow__connection{pointer-events:none}.react-flow__connection .animated{stroke-dasharray:5;-webkit-animation:dashdraw .5s linear infinite;animation:dashdraw .5s linear infinite}.react-flow__connectionline{z-index:1001}.react-flow__nodes{pointer-events:none;transform-origin:0 0}.react-flow__node{position:absolute;-webkit-user-select:none;-moz-user-select:none;user-select:none;pointer-events:all;transform-origin:0 0;box-sizing:border-box;cursor:-webkit-grab;cursor:grab}.react-flow__node.dragging{cursor:-webkit-grabbing;cursor:grabbing}.react-flow__nodesselection{z-index:3;transform-origin:left top;pointer-events:none}.react-flow__nodesselection-rect{position:absolute;pointer-events:all;cursor:-webkit-grab;cursor:grab}.react-flow__handle{position:absolute;pointer-events:none;min-width:5px;min-height:5px;width:6px;height:6px;background:#1a192b;border:1px solid white;border-radius:100%}.react-flow__handle.connectionindicator{pointer-events:all;cursor:crosshair}.react-flow__handle-bottom{top:auto;left:50%;bottom:-4px;transform:translate(-50%)}.react-flow__handle-top{left:50%;top:-4px;transform:translate(-50%)}.react-flow__handle-left{top:50%;left:-4px;transform:translateY(-50%)}.react-flow__handle-right{right:-4px;top:50%;transform:translateY(-50%)}.react-flow__edgeupdater{cursor:move;pointer-events:all}.react-flow__panel{position:absolute;z-index:5;margin:15px}.react-flow__panel.top{top:0}.react-flow__panel.bottom{bottom:0}.react-flow__panel.left{left:0}.react-flow__panel.right{right:0}.react-flow__panel.center{left:50%;transform:translate(-50%)}.react-flow__attribution{font-size:10px;background:#ffffff80;padding:2px 3px;margin:0}.react-flow__attribution a{text-decoration:none;color:#999}@-webkit-keyframes dashdraw{0%{stroke-dashoffset:10}}@keyframes dashdraw{0%{stroke-dashoffset:10}}.react-flow__edgelabel-renderer{position:absolute;width:100%;height:100%;pointer-events:none;-webkit-user-select:none;-moz-user-select:none;user-select:none}.react-flow__edge.updating .react-flow__edge-path{stroke:#777}.react-flow__edge-text{font-size:10px}.react-flow__node.selectable:focus,.react-flow__node.selectable:focus-visible{outline:none}.react-flow__node-default,.react-flow__node-input,.react-flow__node-output,.react-flow__node-group{padding:10px;border-radius:3px;width:150px;font-size:12px;color:#222;text-align:center;border-width:1px;border-style:solid;border-color:#1a192b;background-color:#fff}.react-flow__node-default.selectable:hover,.react-flow__node-input.selectable:hover,.react-flow__node-output.selectable:hover,.react-flow__node-group.selectable:hover{box-shadow:0 1px 4px 1px #00000014}.react-flow__node-default.selectable.selected,.react-flow__node-default.selectable:focus,.react-flow__node-default.selectable:focus-visible,.react-flow__node-input.selectable.selected,.react-flow__node-input.selectable:focus,.react-flow__node-input.selectable:focus-visible,.react-flow__node-output.selectable.selected,.react-flow__node-output.selectable:focus,.react-flow__node-output.selectable:focus-visible,.react-flow__node-group.selectable.selected,.react-flow__node-group.selectable:focus,.react-flow__node-group.selectable:focus-visible{box-shadow:0 0 0 .5px #1a192b}.react-flow__node-group{background-color:#f0f0f040}.react-flow__nodesselection-rect,.react-flow__selection{background:#0059dc14;border:1px dotted rgba(0,89,220,.8)}.react-flow__nodesselection-rect:focus,.react-flow__nodesselection-rect:focus-visible,.react-flow__selection:focus,.react-flow__selection:focus-visible{outline:none}.react-flow__controls{box-shadow:0 0 2px 1px #00000014}.react-flow__controls-button{border:none;background:#fefefe;border-bottom:1px solid #eee;box-sizing:content-box;display:flex;justify-content:center;align-items:center;width:16px;height:16px;cursor:pointer;-webkit-user-select:none;-moz-user-select:none;user-select:none;padding:5px}.react-flow__controls-button:hover{background:#f4f4f4}.react-flow__controls-button svg{width:100%;max-width:12px;max-height:12px}.react-flow__controls-button:disabled{pointer-events:none}.react-flow__controls-button:disabled svg{fill-opacity:.4}.react-flow__minimap{background-color:#fff}.react-flow__minimap svg{display:block}.react-flow__resize-control{position:absolute}.react-flow__resize-control.left,.react-flow__resize-control.right{cursor:ew-resize}.react-flow__resize-control.top,.react-flow__resize-control.bottom{cursor:ns-resize}.react-flow__resize-control.top.left,.react-flow__resize-control.bottom.right{cursor:nwse-resize}.react-flow__resize-control.bottom.left,.react-flow__resize-control.top.right{cursor:nesw-resize}.react-flow__resize-control.handle{width:4px;height:4px;border:1px solid #fff;border-radius:1px;background-color:#3367d9;transform:translate(-50%,-50%)}.react-flow__resize-control.handle.left{left:0;top:50%}.react-flow__resize-control.handle.right{left:100%;top:50%}.react-flow__resize-control.handle.top{left:50%;top:0}.react-flow__resize-control.handle.bottom{left:50%;top:100%}.react-flow__resize-control.handle.top.left,.react-flow__resize-control.handle.bottom.left{left:0}.react-flow__resize-control.handle.top.right,.react-flow__resize-control.handle.bottom.right{left:100%}.react-flow__resize-control.line{border-color:#3367d9;border-width:0;border-style:solid}.react-flow__resize-control.line.left,.react-flow__resize-control.line.right{width:1px;transform:translate(-50%);top:0;height:100%}.react-flow__resize-control.line.left{left:0;border-left-width:1px}.react-flow__resize-control.line.right{left:100%;border-right-width:1px}.react-flow__resize-control.line.top,.react-flow__resize-control.line.bottom{height:1px;transform:translateY(-50%);left:0;width:100%}.react-flow__resize-control.line.top{top:0;border-top-width:1px}.react-flow__resize-control.line.bottom{border-bottom-width:1px;top:100%}html,body,#root{height:100%}body{margin:0;min-height:100%;background:#f7f8fb;overflow:hidden;font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;color:#1f2937}#root{min-height:100%}.shell{height:100%;background:#f7f8fb;display:flex;flex-direction:column}.topbar{display:flex;align-items:center;justify-content:space-between;padding:8px 14px;border-bottom:1px solid #e5e7eb;background:#fff;flex-shrink:0}.topbar-left{display:flex;align-items:center;gap:16px}.logo-link{display:flex;align-items:center;gap:6px;cursor:pointer;padding:4px 8px;border-radius:6px;transition:background .2s}.logo-link:hover{background:#f3f4f6}.logo-icon-small{width:24px;height:24px;background:#111827;color:#fff;border-radius:4px;display:flex;align-items:center;justify-content:center;font-weight:700;font-size:12px}.logo-text-small,.title{font-size:16px;font-weight:700;color:#111827}.workflow-name-editable{cursor:pointer;padding:4px 8px;border-radius:4px;transition:background .2s}.workflow-name-editable:hover{background:#f3f4f6}.workflow-name-input{font-size:16px;font-weight:700;color:#111827;border:2px solid #2563eb;border-radius:4px;padding:4px 8px;outline:none;background:#fff;min-width:200px}.topbar-actions{display:flex;align-items:center;gap:8px}.run-message{font-size:12px;color:#2563eb;background:#eef2ff;border:1px solid #c7d2fe;padding:4px 8px;border-radius:999px;max-width:240px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.icon-btn{background:#f9fafb;border:1px solid #e5e7eb;color:#374151;padding:4px 10px;border-radius:6px;font-size:12px;cursor:pointer}.icon-btn.primary{background:#2563eb;border-color:#2563eb;color:#fff}.layout{flex:1;display:grid;grid-template-columns:250px 1fr;gap:8px;padding:8px 8px 12px;overflow:hidden;min-height:0}.layout.has-panel{grid-template-columns:250px 1fr 300px}.sidebar,.panel{background:#f1f3f7;border:1px solid #e5e7eb;border-radius:10px;padding:12px;overflow-y:auto;height:100%;min-height:0;max-height:100%}.sidebar-header{display:flex;align-items:center;justify-content:space-between;margin-bottom:10px}.sidebar-title{font-weight:700;font-size:14px;color:#111827}.sidebar-search{width:90px;padding:4px 6px;border:1px solid #d1d5db;border-radius:6px;font-size:12px}.section+.section{margin-top:12px}.section-title{font-weight:700;margin-bottom:6px;color:#374151;letter-spacing:.2px;font-size:13px}.section-items{display:flex;flex-direction:column;gap:8px}.item{background:#fff;border:1px solid #e5e7eb;border-radius:8px;padding:8px;cursor:pointer}.item:hover{border-color:#c5d4f3}.item-placeholder{border-style:dashed;border-color:#f59eb3;color:#f43f5e}.item-row{display:flex;justify-content:space-between;align-items:center}.item-name{font-weight:600;color:#111827}.item-detail{color:#6b7280;font-size:12px;margin-top:2px}.badge{background:#e0f2fe;color:#0f172a;padding:2px 6px;border-radius:999px;font-size:11px;font-weight:700;border:1px solid #90c2f1}.canvas{background:#f7f8fb;border:1px solid #e5e7eb;border-radius:10px;display:flex;flex-direction:column;overflow:hidden;min-height:0;height:100%}.canvas-toolbar{display:flex;justify-content:space-between;align-items:center;padding:6px 10px;border-bottom:1px solid #e5e7eb;background:#fff}.toolbar-actions{display:flex;gap:8px;flex-wrap:wrap}.btn{background:#2563eb;color:#f8fafc;border:none;border-radius:8px;padding:6px 10px;font-weight:600;cursor:pointer;transition:transform .15s ease,opacity .15s ease;font-size:13px}.btn:hover{transform:translateY(-1px);opacity:.92}.btn.ghost{background:#eef2ff;color:#1f2937;border:1px solid #c7d2fe}.flow-wrapper{flex:1;border-radius:0 0 10px 10px;overflow:hidden;position:relative;min-height:0}.react-flow__attribution{display:none}.react-flow__edge-path{stroke-width:2.2px;stroke:#4b70c2}.react-flow__handle{background:transparent;border:none;box-shadow:none}.react-flow__node-default{background:transparent;border:none;padding:0}.react-flow__node.selected,.react-flow__node:focus,.react-flow__node:focus-visible{box-shadow:none;outline:none}.react-flow__node-default.selectable.selected,.react-flow__node-default.selectable:focus,.react-flow__node-default.selectable:focus-visible,.react-flow__node-input.selectable.selected,.react-flow__node-input.selectable:focus,.react-flow__node-input.selectable:focus-visible,.react-flow__node-output.selectable.selected,.react-flow__node-output.selectable:focus,.react-flow__node-output.selectable:focus-visible,.react-flow__node-group.selectable.selected,.react-flow__node-group.selectable:focus,.react-flow__node-group.selectable:focus-visible{box-shadow:none!important}.react-flow__node.selectable:focus,.react-flow__node.selectable:focus-visible,.react-flow__node.selectable.selected{box-shadow:none!important}.react-flow__controls{background:#fff;border:1px solid #e5e7eb;border-radius:8px;overflow:hidden}.react-flow__controls-button{border-bottom:1px solid #e5e7eb;background:#fff}.react-flow__minimap{border-radius:8px;overflow:hidden}.guidelines-layer{position:absolute;left:0;top:0;width:100%;height:100%;pointer-events:none;transform-origin:0 0;z-index:2}.guideline{position:absolute;border-color:#d1d5db;border-style:dashed;opacity:.8}.guideline.vertical{top:-5000px;height:10000px}.guideline.horizontal{left:-5000px;width:10000px}.muted{color:#6b7280}.panel-block+.panel-block{margin-top:12px}.panel-title{font-weight:700;margin-bottom:6px;color:#111827}.panel-text{color:#4b5563;font-size:13px;line-height:1.5}.panel-header{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:8px}.panel-title-input{font-size:14px;font-weight:700;border:1px solid #e5e7eb;padding:6px 8px;border-radius:8px;background:#fff;width:100%}.panel-actions{display:flex;gap:6px;flex-shrink:0}.panel-btn{background:#eef2ff;border:1px solid #c7d2fe;color:#1f2937;padding:4px 8px;border-radius:6px;font-size:12px;cursor:pointer}.panel-btn.danger{background:#fee2e2;border-color:#fecaca;color:#991b1b}.panel-tabs{display:flex;gap:6px;border-bottom:1px solid #e5e7eb;padding-bottom:6px;margin-bottom:8px}.panel-tab{background:transparent;border:none;font-size:12px;color:#6b7280;cursor:pointer;padding:4px 6px;border-radius:6px}.panel-tab.active{background:#e0f2fe;color:#1f2937;border:1px solid #90c2f1}.panel-content{display:flex;flex-direction:column;gap:10px}.logs{max-height:260px;overflow:auto;background:#fff;border:1px solid #e5e7eb;border-radius:8px;padding:8px;font-size:12px}.run-log-panel{position:absolute;width:320px;max-height:240px;background:#fff;border:1px solid #e5e7eb;border-radius:10px;box-shadow:0 6px 16px #00000014;display:flex;flex-direction:column;overflow:hidden;font-size:12px;z-index:5}.run-log-header{display:flex;justify-content:space-between;align-items:center;padding:6px 8px;border-bottom:1px solid #e5e7eb;background:#f8fafc;font-weight:600;cursor:move;-webkit-user-select:none;user-select:none}.run-log-body{padding:6px 8px;overflow:auto}.log-line{padding:4px 0;border-bottom:1px solid #e5e7eb}.log-line:last-child{border-bottom:none}.log-line.error{color:#dc2626}.upload-list{margin-top:6px;display:flex;flex-direction:column;gap:4px}.upload-item{background:#fff;border:1px solid #e5e7eb;padding:6px;border-radius:8px}.form{display:flex;flex-direction:column;gap:10px}.field{display:flex;flex-direction:column;gap:4px;color:#111827;font-size:13px}.field.inline{flex:1}.io-row{background:#fff;border:1px solid #e5e7eb;border-radius:8px;padding:8px}.io-title{font-weight:700;font-size:12px;color:#374151;margin-bottom:6px}.io-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}.upload-block{margin-top:6px}input,textarea{background:#fff;border:1px solid #d1d5db;border-radius:8px;padding:8px 10px;color:#111827;font-size:13px;font-family:inherit}textarea{resize:vertical}select{background:#fff;border:1px solid #d1d5db;border-radius:8px;padding:6px 8px;color:#111827;font-size:12px;font-family:inherit}code{background:#eef2ff;padding:2px 6px;border-radius:6px;color:#1f2937;font-size:12px;border:1px solid #c7d2fe}@media(max-width:1100px){.layout{grid-template-columns:1fr}.sidebar,.panel{order:2}.canvas{order:1}}.node-card{background:#fff;border:1px solid #93c8be;border-radius:10px;padding:8px 10px 10px;color:#111827;min-width:180px;width:100%;height:auto;position:relative;box-shadow:0 4px 10px #0f172a14;display:flex;flex-direction:column;min-height:0;overflow:hidden;box-sizing:border-box}.node-card.selected{border-width:2.5px;border-color:#2563eb!important;box-shadow:0 0 0 3px #2563eb33,0 8px 24px #2563eb40;background:linear-gradient(to bottom,#f8faff,#fff);animation:selected-pulse 2s ease-in-out infinite;transform:translateY(-1px);transition:all .2s ease}.node-card.selected .node-header{border-bottom-color:#2563eb33}.node-card.selected .node-icon{box-shadow:0 0 0 2px #2563eb33}@keyframes selected-pulse{0%,to{box-shadow:0 0 0 3px #2563eb33,0 8px 24px #2563eb40}50%{box-shadow:0 0 0 4px #2563eb4d,0 10px 28px #2563eb4d}}.node-header{display:flex;justify-content:space-between;align-items:center;gap:8px;padding:4px 4px 6px;border-bottom:1px solid #e1f0eb}.node-title{font-weight:700;font-size:13px;display:flex;align-items:center;gap:6px}.node-icon{width:16px;height:16px;border-radius:4px;background:#4fc1b0;display:inline-block}.node-card.variant-http{border-color:#9dc4f2}.node-card.variant-http .node-icon{background:#4b91f1}.node-card.variant-save-file .node-icon{background:#3bb2a0}.node-card.variant-display .node-icon{background:#6ac3c0}.node-card.variant-time .node-icon{background:#77b5f5}.node-card.variant-end .node-icon{background:#f59e0b}.node-card.variant-input .node-icon{background:#4fc1b0}.node-card.variant-output .node-icon{background:#f3a546}.node-card.variant-output{height:auto}.node-actions{display:flex;align-items:center;gap:6px}.node-badge{background:#e0f2fe;color:#0f172a;padding:2px 6px;border-radius:6px;border:1px solid #90c2f1;font-size:10px;font-weight:700}.status-dot{width:8px;height:8px;border-radius:999px;display:inline-block}.node-rows{padding:8px 4px 4px;display:flex;flex-direction:column;gap:6px;font-size:12px;flex-shrink:0}.node-row{position:relative;display:flex;justify-content:space-between;color:#374151;min-height:20px;align-items:center;padding:0 12px}.row-left{color:#374151;padding-left:4px}.row-right{color:#374151;text-align:right;padding-right:4px}.node-preview{margin-top:6px;background:#f3f4f6;border:1px solid #d1d5db;border-radius:8px;padding:6px 8px;font-size:11px;color:#374151;flex:0 0 auto;min-height:0;display:flex;flex-direction:column;overflow:hidden;box-sizing:border-box}.node-preview-doubao{height:200px;max-height:200px;min-height:200px;flex:0 0 200px;transition:height .2s ease,min-height .2s ease,max-height .2s ease,flex-basis .2s ease;box-sizing:border-box;margin-bottom:0}.node-preview-doubao.collapsed{height:30px;max-height:30px;min-height:30px;flex:0 0 30px;overflow:hidden}.preview-title{font-weight:700;margin-bottom:4px;color:#6b7280;flex-shrink:0;text-align:left}.preview-title-collapsible{display:flex;align-items:center;justify-content:space-between}.preview-title-collapsible:hover{color:#4b5563}.preview-body{font-family:JetBrains Mono,monospace;white-space:pre-wrap;flex:1 1 auto;min-height:0;overflow-y:auto;overflow-x:hidden;-webkit-user-select:text;user-select:text;cursor:text;box-sizing:border-box;text-align:left}.preview-body.output-text{font-family:Segoe UI,PingFang SC,Microsoft YaHei,sans-serif;white-space:pre-wrap;word-break:break-word;line-height:1.5;-webkit-user-select:text;user-select:text;cursor:text;text-align:left}.output-blocks{display:flex;flex-direction:column;gap:8px;min-height:0;flex:1 1 auto}.output-block{background:#fff;border:1px solid #e5e7eb;border-radius:8px;padding:6px 8px}.preview-body.output-code{font-family:JetBrains Mono,monospace;white-space:pre-wrap;word-break:break-word}.preview-body.output-markdown{font-family:Segoe UI,PingFang SC,Microsoft YaHei,sans-serif;line-height:1.6;word-break:break-word}.preview-body.output-markdown h1,.preview-body.output-markdown h2,.preview-body.output-markdown h3{margin:8px 0 6px;font-weight:700}.preview-body.output-markdown ul,.preview-body.output-markdown ol{padding-left:18px;margin:6px 0}.preview-body.output-markdown code{background:#eef2ff;padding:1px 4px;border-radius:4px;font-family:JetBrains Mono,monospace}.text-output-list{display:flex;flex-direction:column;gap:8px;overflow:visible}.text-output-list .node-preview{flex:0 0 auto;height:180px}.preview-body-streaming{min-height:40px;overflow-x:hidden;white-space:pre-wrap;word-wrap:break-word;font-family:JetBrains Mono,monospace;font-size:12px;line-height:1.5;text-align:left}.preview-body-doubao{flex:1 1 auto;min-height:0;height:170px;max-height:170px;overflow-y:auto;overflow-x:hidden;box-sizing:border-box;word-wrap:break-word;word-break:break-word;text-align:left}.image-output-list,.image-input-list{margin-top:6px}.image-item-input{position:relative}.image-item-delete{position:absolute;top:4px;right:4px;width:20px;height:20px;border-radius:50%;border:none;background:#ef4444e6;color:#fff;font-size:12px;cursor:pointer;display:flex;align-items:center;justify-content:center;opacity:0;transition:opacity .2s ease;z-index:10}.image-item-input:hover .image-item-delete{opacity:1}.image-item-delete:hover{background:#dc2626;transform:scale(1.1)}.image-grid{display:flex;flex-direction:column;gap:8px}.image-row{display:flex;gap:8px;justify-content:flex-start;align-items:flex-start;flex-wrap:nowrap}.image-item{width:100%;aspect-ratio:1 / 1;border-radius:8px;border:1px solid #d1d5db;background:#fff;min-width:0;min-height:0;flex-shrink:0;flex-grow:0;display:flex;align-items:center;justify-content:center;box-sizing:border-box}.image-item img{width:100%;height:100%;object-fit:contain;object-position:center;display:block;flex-shrink:0;cursor:pointer}.image-preview-overlay{position:fixed;inset:0;background:#00000080;display:flex;align-items:center;justify-content:center;z-index:2147483647;padding:16px;box-sizing:border-box}.image-preview-body{position:relative;background:transparent;border-radius:0;padding:60px 0 140px;width:100vw;height:100vh;max-width:none;max-height:none;display:flex;flex-direction:column;align-items:center;justify-content:center}.image-preview-content{max-width:66vw;max-height:calc(70vh - 200px);display:flex;align-items:center;justify-content:center;overflow:visible}.image-preview-content img{max-width:100%;max-height:100%;object-fit:contain;-webkit-user-select:none;user-select:none}.image-preview-actions{position:fixed;bottom:32px;left:50%;transform:translate(-50%);display:flex;gap:10px;align-items:center;justify-content:center;padding:8px 10px;background:#1e293bb8;border-radius:12px;-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px);box-shadow:0 12px 28px #0f172a47;z-index:2147483647}.image-preview-actions button,.image-preview-actions .image-preview-btn{width:36px;height:36px;padding:0;border-radius:10px;border:1px solid rgba(255,255,255,.25);background:#ffffffe6;cursor:pointer;font-size:16px;color:#0f172a;text-decoration:none;box-shadow:0 4px 12px #0f172a26;display:inline-flex;align-items:center;justify-content:center;line-height:1}.image-preview-actions button:hover,.image-preview-actions .image-preview-btn:hover{background:#e5e7eb}.preview-body.output-markdown table{width:100%;border-collapse:collapse;margin:8px 0;font-size:12px}.preview-body.output-markdown th,.preview-body.output-markdown td{border:1px solid #d1d5db;padding:6px 8px;text-align:left}.preview-body.output-markdown thead th{background:#f3f4f6;font-weight:700}.nodrag{cursor:text;-webkit-user-select:text;user-select:text}.node-resize-handle{background:transparent;border:none;width:20px;height:20px;cursor:nwse-resize}.react-flow__resize-control{background:transparent;display:none}.react-flow__resize-control.right.bottom{display:block;width:24px!important;height:24px!important;cursor:nwse-resize;background:transparent;border:none}.react-flow__resize-control.right.bottom:after{content:"";position:absolute;bottom:-2px;right:-2px;width:24px;height:24px;background:transparent;cursor:nwse-resize}.handle{width:12px;height:12px;border-radius:50%;border:2px solid #ffffff}.handle.input{background:#23ae77;left:-6px}.handle.output{background:#e8594f;right:-6px}.row-handle{top:50%;transform:translateY(-50%)}.image-preview-nav{position:absolute;top:50%;transform:translateY(-50%);width:48px;height:48px;border-radius:50%;border:none;background:#ffffffe6;-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);color:#0f172a;font-size:20px;cursor:pointer;display:flex;align-items:center;justify-content:center;box-shadow:0 4px 12px #0f172a33;z-index:10;transition:all .2s ease}.image-preview-nav:hover{background:#fff;box-shadow:0 6px 16px #0f172a4d;transform:translateY(-50%) scale(1.1)}.image-preview-nav-left{left:24px}.image-preview-nav-right{right:24px}.home-page{min-height:100vh;background:#fff;font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif}.home-header{display:flex;align-items:center;justify-content:space-between;padding:16px 24px;border-bottom:1px solid #e5e7eb;background:#fff}.home-logo{display:flex;align-items:center;gap:8px;cursor:pointer;text-decoration:none;color:#111827;transition:opacity .2s}.home-logo:hover{opacity:.8}.logo-icon{width:32px;height:32px;background:#111827;color:#fff;border-radius:6px;display:flex;align-items:center;justify-content:center;font-weight:700;font-size:14px}.logo-text{font-size:18px;font-weight:700;color:#111827}.home-nav{display:flex;align-items:center;gap:12px}.lang-select{padding:6px 12px;border:1px solid #e5e7eb;border-radius:6px;background:#fff;font-size:14px;cursor:pointer}.nav-icon-btn{width:36px;height:36px;border:1px solid #e5e7eb;border-radius:6px;background:#fff;cursor:pointer;display:flex;align-items:center;justify-content:center;font-size:16px}.nav-upgrade-btn{display:flex;align-items:center;gap:6px;padding:6px 12px;border:1px solid #e5e7eb;border-radius:6px;background:#fff;cursor:pointer;font-size:14px}.upgrade-points{color:#2563eb;font-weight:600}.nav-avatar{width:36px;height:36px;border-radius:50%;background:#f3f4f6;display:flex;align-items:center;justify-content:center;font-size:18px;cursor:pointer}.nav-avatar-menu{position:relative;width:auto;height:auto;background:transparent}.nav-avatar-circle{width:36px;height:36px;border-radius:50%;background:#f3f4f6;display:flex;align-items:center;justify-content:center;font-size:18px;cursor:pointer}.nav-avatar-dropdown{position:absolute;right:0;top:46px;background:#fff;border:1px solid #e5e7eb;border-radius:10px;min-width:200px;padding:12px;box-shadow:0 12px 24px #0f172a1f;opacity:0;pointer-events:none;transform:translateY(-6px);transition:all .15s ease;z-index:10}.nav-avatar-menu:hover .nav-avatar-dropdown{opacity:1;pointer-events:auto;transform:translateY(0)}.nav-avatar-name{font-weight:600;color:#0f172a}.nav-avatar-email{font-size:12px;color:#64748b;margin-top:4px}.nav-avatar-actions{display:flex;flex-direction:column;gap:6px;margin-top:10px}.nav-avatar-actions a,.nav-avatar-actions button{font-size:13px;color:#2563eb;text-decoration:none;background:none;border:none;padding:0;text-align:left;cursor:pointer}.home-banner{background:#fef3c7;color:#92400e;padding:12px 24px;text-align:center;font-size:14px;border-radius:0 0 8px 8px;margin:0 24px}.home-main{max-width:1200px;margin:0 auto;padding:40px 24px}.home-hero{text-align:center;margin-bottom:60px}.hero-title{font-size:36px;font-weight:700;color:#111827;margin:0 0 12px}.hero-logo{color:#2563eb}.hero-subtitle{font-size:16px;color:#6b7280;margin:0 0 32px}.hero-input-box{max-width:600px;margin:0 auto 24px;display:flex;align-items:center;gap:8px;padding:12px 16px;border:2px solid #e5e7eb;border-radius:12px;background:#fff}.input-attach{background:none;border:none;font-size:18px;cursor:pointer;padding:4px}.hero-input{flex:1;border:none;outline:none;font-size:16px;color:#111827}.hero-input::placeholder{color:#9ca3af}.input-actions{display:flex;gap:8px}.input-action-btn{background:none;border:none;font-size:18px;cursor:pointer;padding:4px}.hero-tags{display:flex;justify-content:center;gap:12px;flex-wrap:wrap}.tag{padding:6px 16px;border:1px solid #e5e7eb;border-radius:20px;font-size:14px;background:#fff;color:#374151;cursor:pointer;transition:all .2s}.tag:hover{background:#f3f4f6;border-color:#d1d5db}.tag-pro{background:#fef3c7;border-color:#fbbf24;color:#92400e}.home-projects{margin-top:60px}.projects-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:24px}.projects-actions{display:flex;align-items:center;gap:16px}.projects-title{font-size:24px;font-weight:700;color:#111827;margin:0}.projects-view-all{background:none;border:none;color:#2563eb;font-size:14px;cursor:pointer;padding:0}.projects-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(200px,1fr));gap:20px}.project-card{background:#fff;border:1px solid #e5e7eb;border-radius:12px;padding:16px;cursor:pointer;transition:all .2s;min-height:200px;display:flex;flex-direction:column;position:relative}.project-card:hover{border-color:#2563eb;box-shadow:0 4px 12px #2563eb1a}.project-card:hover .project-actions,.project-actions:hover{opacity:1}.new-project{align-items:center;justify-content:center;border:2px dashed #d1d5db;background:#f9fafb}.new-project:hover{border-color:#2563eb;background:#eff6ff}.new-project-icon{font-size:48px;color:#6b7280;margin-bottom:12px}.new-project-text{font-size:16px;color:#374151;font-weight:500}.project-thumbnail{width:100%;height:120px;background:#f3f4f6;border-radius:8px;margin-bottom:12px;display:flex;align-items:center;justify-content:center;overflow:hidden;position:relative}.project-thumbnail-img{width:100%;height:100%;object-fit:cover;border-radius:8px}.project-placeholder{font-size:48px;color:#9ca3af}.project-info{flex:1}.project-name{font-size:16px;font-weight:600;color:#111827;margin-bottom:8px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.project-date{font-size:12px;color:#6b7280}.project-name-input{font-size:16px;font-weight:600;color:#111827;border:2px solid #2563eb;border-radius:4px;padding:4px 8px;width:100%;outline:none;background:#fff}.project-actions{position:absolute;top:12px;right:12px;display:flex;gap:4px;opacity:0;transition:opacity .2s;z-index:10;pointer-events:auto}.project-action-btn{background:#fff;border:1px solid #e5e7eb;border-radius:4px;padding:4px 8px;cursor:pointer;font-size:14px;transition:all .2s;display:flex;align-items:center;justify-content:center;min-width:32px;min-height:32px;z-index:11;position:relative}.project-action-btn:hover{background:#f3f4f6;border-color:#d1d5db}.project-action-btn.danger:hover{background:#fee2e2;border-color:#fca5a5;color:#dc2626}.modal-backdrop{position:fixed;inset:0;background:#0f172a73;display:flex;align-items:center;justify-content:center;z-index:50;padding:16px}.modal{width:100%;max-width:420px;background:#fff;border-radius:12px;box-shadow:0 20px 60px #0003;padding:20px}.modal-title{font-size:18px;font-weight:700;color:#111827;margin-bottom:8px}.modal-content{font-size:14px;color:#374151;line-height:1.5}.modal-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:16px}.btn{border:1px solid #e5e7eb;background:#fff;color:#111827;padding:6px 12px;border-radius:8px;cursor:pointer;font-size:14px}.btn:disabled{opacity:.6;cursor:not-allowed}.btn-danger{background:#ef4444;border-color:#ef4444;color:#fff}.project-card.loading,.project-card.empty{align-items:center;justify-content:center;color:#9ca3af;font-size:14px}.auth-page{min-height:100vh;display:flex;align-items:center;justify-content:center;background:#f7f8fb;padding:40px 16px}.auth-card{width:100%;max-width:420px;background:#fff;border-radius:16px;box-shadow:0 20px 40px #0f172a14;padding:28px 28px 24px}.auth-title{font-size:22px;font-weight:700;margin:0 0 16px;color:#0f172a}.auth-field{display:flex;flex-direction:column;gap:6px;margin-bottom:14px}.auth-field label{font-size:13px;color:#64748b}.auth-field input{border:1px solid #e2e8f0;border-radius:8px;padding:10px 12px;font-size:14px;outline:none}.auth-field input:focus{border-color:#2563eb;box-shadow:0 0 0 2px #2563eb1a}.auth-actions{display:flex;flex-direction:column;gap:10px;margin-top:8px}.auth-btn{border:none;border-radius:8px;padding:10px 12px;font-weight:600;cursor:pointer;background:#2563eb;color:#fff}.auth-link{font-size:13px;color:#2563eb;text-decoration:none;text-align:center}.auth-error{background:#fef2f2;color:#b91c1c;border:1px solid #fecaca;padding:8px 10px;border-radius:8px;font-size:13px;margin-bottom:12px}.profile-page{min-height:100vh;background:#f7f8fb;padding:24px}.profile-card{max-width:760px;margin:0 auto;background:#fff;border-radius:16px;padding:24px;box-shadow:0 20px 40px #0f172a14}.profile-section{margin-bottom:24px}.profile-section h3{margin:0 0 12px;font-size:16px;color:#0f172a}.profile-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:16px}.profile-list{display:flex;flex-direction:column;gap:10px}.profile-log{font-size:13px;color:#475569;padding:10px 12px;border-radius:8px;background:#f8fafc;border:1px solid #e2e8f0}.admin-page{min-height:100vh;background:#f7f8fb;padding:24px}.admin-card{max-width:980px;margin:0 auto;background:#fff;border-radius:16px;padding:24px;box-shadow:0 20px 40px #0f172a14}.admin-table{width:100%;border-collapse:collapse;font-size:14px}.admin-table th,.admin-table td{border-bottom:1px solid #e2e8f0;padding:10px 8px;text-align:left}.admin-table th{color:#64748b;font-weight:600}.admin-actions{display:flex;gap:8px;align-items:center}.admin-actions input,.admin-actions select{padding:6px 8px;border-radius:6px;border:1px solid #e2e8f0;font-size:13px}.admin-actions button{padding:6px 10px;border-radius:6px;border:none;background:#2563eb;color:#fff;cursor:pointer;font-size:13px}
