.graph-editor{display:grid;grid-template-columns:210px minmax(0,1fr) 280px;gap:12px;min-height:760px}
.graph-sidebar,.graph-inspector{border:1px solid var(--border);border-radius:var(--radius);background:var(--surface-soft);padding:12px}
.graph-sidebar h3,.graph-inspector h3{font-size:13px;margin:0 0 10px;font-weight:600}
.graph-node-palette-list{display:flex;flex-direction:column;gap:10px;max-height:720px;overflow:auto;padding-right:2px}
.graph-node-palette-category{font-size:11px;color:var(--muted);margin:0 0 6px}
.graph-node-palette{width:100%;padding:7px 8px;border:1px solid var(--border);border-radius:var(--radius);background:var(--surface);color:var(--text);margin:0 0 6px;cursor:pointer;font-size:12px;text-align:left;display:flex;align-items:center;justify-content:flex-start;gap:8px}
.graph-node-palette:hover{border-color:var(--border-strong);background:var(--surface-strong)}
.graph-node-palette-icon{display:inline-flex;align-items:center;justify-content:center;width:25px;height:25px;border-radius:var(--radius);background:var(--surface-strong);color:var(--primary);font-size:10px;letter-spacing:0;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;flex:0 0 auto}
.graph-node-palette-text{display:flex;flex-direction:column;align-items:flex-start;min-width:0;gap:1px}
.graph-node-palette-text span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.graph-node-palette-text small{font-size:10px;color:var(--muted);font-weight:400;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.graph-canvas-wrap{position:relative;border:1px solid var(--border);border-radius:var(--radius);background:var(--surface);overflow:auto;height:min(80vh,980px);min-height:760px}
.graph-canvas-toolbar{position:absolute;top:10px;right:10px;z-index:2;display:flex;gap:8px}
.graph-canvas-toolbar .btn{background:var(--button-soft);font-size:12px;padding:6px 10px}
.graph-canvas{display:block;min-width:100%;min-height:760px}
.graph-node rect{fill:var(--surface);stroke:var(--border-strong);stroke-width:1.4}
.graph-node{cursor:grab}
.graph-node text{font-size:12px;fill:var(--text);pointer-events:none}
.graph-node .graph-node-icon{font-size:10px;fill:var(--primary);font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace}
.graph-node .graph-node-type{font-size:11px;fill:var(--muted)}
.graph-node.selected rect{stroke:var(--primary);stroke-width:2}
.graph-edge{stroke:var(--border-strong);stroke-width:1.8;fill:none;cursor:pointer}
.graph-edge-hit{stroke:transparent;stroke-width:16;fill:none;cursor:pointer}
.graph-edge.selected{stroke:var(--primary);stroke-width:2.2}
.graph-empty-inspector{font-size:12px;color:var(--muted)}
.graph-node-form,.graph-edge-form{display:flex;flex-direction:column;gap:10px}
.graph-node-form label,.graph-edge-form label{display:block;width:100%}
.graph-node-form label span,.graph-edge-form label span{display:block;font-size:11px;color:var(--muted);margin-bottom:4px}
.graph-node-form textarea,.graph-edge-form textarea{display:block;width:100%;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-size:11px;line-height:1.45;resize:vertical;min-height:96px}
.graph-inspector-title{font-size:12px;color:var(--text);margin-top:2px}
.graph-form-hint{font-size:11px;color:var(--muted);line-height:1.45}
.graph-typed-param-fields{display:flex;flex-direction:column;gap:10px}
.graph-typed-param-fields:empty::before{content:"此节点暂无常用参数";display:block;font-size:11px;color:var(--muted);padding:8px 0}
.graph-advanced-json{border-top:1px solid var(--border);padding-top:8px}
.graph-advanced-json label{display:block;width:100%}
.graph-advanced-json summary{cursor:pointer;font-size:12px;color:var(--text);margin-bottom:8px}
.graph-save-form{display:inline-flex;align-items:center;gap:8px;flex-wrap:wrap}
.graph-save-form input[type="text"]{min-width:180px;max-width:240px}
