.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;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))}:root{color-scheme:light;--bg: #eef3f8;--panel: rgba(255, 255, 255, .86);--panel-solid: #ffffff;--soft: #f8fafc;--ink: #141a28;--muted: #647084;--line: #dbe3ed;--teal: #14b8a6;--blue: #4f6df5;--coral: #ff6f61;--shadow: 0 18px 45px rgba(38, 50, 70, .13)}*{box-sizing:border-box}body{margin:0;min-height:100vh;color:var(--ink);background:radial-gradient(circle at 20% 12%,rgba(20,184,166,.13),transparent 34%),radial-gradient(circle at 88% 88%,rgba(255,111,97,.16),transparent 32%),var(--bg);font-family:Microsoft YaHei,Noto Sans SC,system-ui,-apple-system,BlinkMacSystemFont,sans-serif}button,textarea,input{font:inherit}.app-shell{display:grid;grid-template-columns:60px minmax(0,1fr);gap:18px;height:100vh;padding:0 18px 0 0;transition:grid-template-columns .22s ease}.app-shell.history-open{grid-template-columns:300px minmax(0,1fr)}.app-main{padding-block:18px;display:grid;min-width:0;min-height:0;grid-template-rows:minmax(0,1fr);gap:14px}.app-header{position:relative;z-index:40;display:flex;align-items:center;justify-content:space-between;gap:16px;min-height:72px;padding:12px 14px;border:1px solid rgba(219,227,237,.85);border-radius:8px;background:var(--panel);box-shadow:var(--shadow);-webkit-backdrop-filter:blur(16px);backdrop-filter:blur(16px)}.header-left{display:flex;align-items:center;min-width:0;gap:12px}.work-grid{display:grid;min-width:0;min-height:0;grid-template-columns:minmax(240px,310px) minmax(0,1fr) minmax(280px,380px);gap:18px}.project-rail,.inspector{display:flex;min-height:0;flex-direction:column;gap:12px}.sidebar{min-width:0;height:100vh;height:100dvh;overflow:hidden;background:var(--panel);border:0;border-right:1px solid var(--line);border-radius:0;padding:18px 8px}.sidebar-nav{display:flex;flex-direction:column;gap:8px;position:relative}.sidebar-nav-button{display:flex;align-items:center;gap:12px;width:100%;min-height:42px;padding:10px;border:0;border-radius:8px;color:var(--ink);background:transparent;cursor:pointer;text-align:left}.sidebar-nav-button svg{flex-shrink:0}.sidebar-nav-button:hover,.sidebar-nav-button.active{background:#e8edf5}.sidebar-nav-button:focus-visible,.sidebar-toggle:focus-visible{outline:2px solid var(--blue);outline-offset:-2px}.history-collapsed .sidebar-nav-button span{display:none}.sidebar-content{display:flex;flex:1;min-height:0}.sidebar-content[hidden]{display:none}.sidebar-content .history-panel{background:transparent;border:0;box-shadow:none;padding:8px 2px}.project-search{display:flex;align-items:center;gap:8px;padding:9px;margin-bottom:12px;border:1px solid var(--line);border-radius:8px;background:#fff}.project-search:focus-within{border-color:var(--blue)}.project-search input{width:100%;min-width:0;border:0;outline:none;background:transparent}.project-rail,.history-sidebar{display:flex;min-height:0;flex-direction:column;gap:12px}.project-rail,.inspector{height:100%;overflow:hidden}.panel,.brand,.history-title,.workspace{background:var(--panel);border:1px solid rgba(219,227,237,.85);border-radius:8px;box-shadow:var(--shadow);-webkit-backdrop-filter:blur(16px);backdrop-filter:blur(16px)}.brand,.header-brand{display:flex;align-items:center;gap:14px;padding:14px}.header-brand{padding:0}.header-brand h1{margin:0;font-size:22px;line-height:1.2}.header-brand p{margin-top:2px;color:var(--muted)}.brand-copy{min-width:0;flex:1}.history-title{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px}.history-title h2{margin:3px 0 0;font-size:18px}.sidebar-toggle,.sidebar-open{flex:0 0 auto}.mark{display:grid;place-items:center;width:48px;height:48px;border-radius:8px;color:#fff;background:var(--ink);font-weight:900}h1,h2,p{margin:0}.brand h1{font-size:20px;line-height:1.2}.brand p,.status,.upload-drop small,.detail-card p,.module-item span{color:var(--muted)}.panel{padding:14px}.panel h2{margin-bottom:12px;font-size:17px}.upload-panel{display:grid;gap:12px}.workflow-phase{padding:8px 10px;border-radius:8px;color:var(--blue);background:#eef4ff;font-size:12px;font-weight:900;text-align:center}.workflow-phase.completed{color:#047857;background:#ecfdf5}.workflow-phase.failed{color:#b91c1c;background:#fef2f2}.upload-drop{display:flex;min-height:86px;flex-direction:column;align-items:flex-start;justify-content:center;gap:8px;padding:14px;border:1px dashed #9fb0c6;border-radius:8px;color:var(--ink);background:var(--soft);cursor:pointer;text-align:left}.upload-drop span{font-weight:900}.primary,.ghost{display:inline-flex;align-items:center;justify-content:center;gap:8px;border:0;border-radius:8px;cursor:pointer;font-weight:900}.primary{padding:12px 14px;color:#fff;background:var(--ink)}.primary:disabled,.ghost:disabled{cursor:not-allowed;opacity:.48}.spin{animation:spin .85s linear infinite}.ghost{padding:10px 13px;color:var(--ink);background:#fff;border:1px solid var(--line)}.icon-only{width:40px;height:40px;padding:0}.status{padding:0 4px;font-size:13px;line-height:1.5}.snapshot-compact{display:grid;gap:9px}.app-summary{width:100%;min-width:min(560px,100%);max-width:720px;background:var(--panel-solid)}.snapshot-head{display:flex;align-items:center;justify-content:space-between;gap:10px}.snapshot-label{color:var(--teal);font-size:12px;font-weight:900;letter-spacing:.08em}.snapshot-compact strong{font-size:15px}.snapshot-metrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}.snapshot-metrics span{padding:7px 8px;border-radius:8px;color:#334155;background:var(--soft);font-size:12px;font-weight:900;text-align:center;white-space:nowrap}.snapshot-compact p{color:var(--muted);font-size:12px;line-height:1.45}dt{color:var(--muted)}dd{margin:0;font-weight:800}.module-list{flex:1;min-height:0;overflow:auto;padding-bottom:10px}.module-empty,.history-empty{display:flex;align-items:center;gap:7px;padding:10px;border-radius:8px;color:var(--muted);background:var(--soft);font-size:12px;line-height:1.5}.history-panel{display:flex;flex:1;min-height:0;flex-direction:column;overflow:hidden}.history-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:10px}.history-head h2{margin:0}.history-list{display:grid;min-height:0;gap:7px;overflow:auto}.history-item{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:9px;width:100%;padding:9px;border:1px solid transparent;border-radius:8px;color:var(--ink);background:transparent;cursor:pointer;text-align:left}.history-item:hover,.history-item.active{border-color:var(--line);background:var(--soft)}.history-item:disabled{cursor:not-allowed;opacity:.62}.history-item span{display:grid;min-width:0;gap:3px}.history-item strong,.history-item small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.history-item small{color:var(--muted);font-size:12px}.module-items{display:grid;gap:8px}.module-item{width:100%;padding:10px 11px;border:1px solid var(--line);border-radius:8px;color:var(--ink);background:#fff;cursor:pointer;text-align:left;transition:transform .16s ease,border-color .16s ease,background .16s ease,opacity .16s ease}.module-item.active,.module-item:hover{border-color:var(--teal);background:#f0fdfae6}.module-item:disabled{cursor:not-allowed}.module-item:disabled:not(.pending){opacity:.48}.module-item.pending{transform:translateY(1px) scale(.99);border-color:var(--blue);background:#eef4ff}.module-item strong,.module-item span,.module-item em{display:block}.module-item span{margin-top:3px;font-size:12px}.module-item em{display:inline-flex;align-items:center;gap:6px;margin-top:8px;color:var(--blue);font-size:12px;font-style:normal;font-weight:900}.workspace{display:flex;min-width:0;min-height:0;flex-direction:column;overflow:hidden}.topbar{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:18px;border-bottom:1px solid var(--line)}.topbar h2{margin-top:4px;font-size:22px}.eyebrow{display:inline-block;color:var(--teal);font-size:12px;font-weight:900;letter-spacing:.08em}.toolbar{position:relative;display:flex;align-items:center;gap:8px}.auth-wrap{position:relative;display:inline-flex;align-items:center;gap:8px;flex:0 0 auto}.auth-button{min-height:40px;padding-inline:12px}.backend-mode{padding:7px 10px;border:1px solid #bfdbfe;border-radius:999px;color:#1d4ed8;background:#eff6ff;font-size:12px;font-weight:900}.auth-user{display:inline-flex;align-items:center;gap:8px;min-height:40px;padding:6px 10px 6px 6px;border:1px solid var(--line);border-radius:8px;color:var(--ink);background:#fff;cursor:pointer;font-weight:900}.avatar{display:grid;place-items:center;width:28px;height:28px;border-radius:8px;color:#fff;background:var(--blue);font-size:13px}.auth-menu{position:absolute;top:calc(100% + 8px);right:0;z-index:2000;display:grid;width:190px;gap:4px;padding:8px;border:1px solid var(--line);border-radius:8px;background:#fff;box-shadow:var(--shadow)}.auth-menu strong{padding:7px 8px 9px;overflow:hidden;color:var(--muted);border-bottom:1px solid var(--line);font-size:12px;text-overflow:ellipsis;white-space:nowrap}.auth-menu button,.auth-switch,.icon-ghost{border:0;color:var(--ink);background:transparent;cursor:pointer}.auth-menu button{display:inline-flex;align-items:center;gap:8px;padding:9px 8px;border-radius:8px;text-align:left}.auth-menu button:hover,.auth-switch:hover,.icon-ghost:hover{background:var(--soft)}.auth-modal{position:fixed;top:0;right:0;bottom:0;left:0;z-index:9999;display:grid;place-items:center;padding:18px;background:#141a2847;-webkit-backdrop-filter:blur(3px);backdrop-filter:blur(3px)}.auth-dialog{position:relative;z-index:10000;display:grid;width:min(420px,100%);gap:14px;padding:18px;border:1px solid rgba(219,227,237,.9);border-radius:8px;background:#fff;box-shadow:var(--shadow)}.auth-dialog-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}.auth-dialog-head h2{margin-top:4px}.icon-ghost{display:grid;place-items:center;width:34px;height:34px;border-radius:8px}.auth-field{display:grid;gap:7px;color:var(--muted);font-size:13px;font-weight:900}.auth-field input{width:100%;min-height:42px;border:1px solid var(--line);border-radius:8px;padding:10px 11px;color:var(--ink);outline:none}.auth-field input:focus,textarea:focus{border-color:var(--teal);box-shadow:0 0 0 3px #14b8a61f}.auth-code-row{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:end;gap:10px}.auth-code-row .ghost{min-height:42px;white-space:nowrap}.auth-switch{min-height:36px;border-radius:8px;color:var(--blue);font-weight:900}.auth-error{padding:9px 10px;border-radius:8px;color:#b91c1c;background:#fef2f2;font-size:12px;line-height:1.5}.flow-wrap{position:relative;flex:1;min-height:0;background:linear-gradient(180deg,#f8fafce6,#ffffffc7)}.flow-node{display:grid;min-width:220px;max-width:240px;gap:6px;padding:14px 16px;border:2px solid var(--teal);border-radius:8px;background:#f0fdfa;box-shadow:0 8px 12px #2632461a;text-align:center;transition:transform .16s ease,box-shadow .16s ease,border-color .16s ease}.flow-handle{width:9px;height:9px;border:2px solid #ffffff;background:var(--blue);box-shadow:0 0 0 1px #2563eb38;opacity:.9}.flow-node:hover{transform:none;border-color:var(--blue);box-shadow:0 0 0 3px #4f6df51f,0 12px 18px #26324624}.flow-node.pending{transform:translateY(1px) scale(.98);border-color:var(--blue);background:#e8f0ff;box-shadow:0 0 0 4px #4f6df524,0 12px 18px #26324629}.flow-node.dimmed{opacity:.42}.flow-node.focus-dimmed{opacity:.32}.flow-node-submodule{border-color:var(--blue);background:#eef4ff}.flow-node-file{border-color:var(--coral);background:#fff7ed}.flow-node strong{font-size:14px;line-height:1.35}.flow-node small{overflow:hidden;color:#475569;font-size:11px;font-weight:700;line-height:1.35;text-overflow:ellipsis;white-space:nowrap}.flow-node span{color:var(--muted);font-size:12px;font-weight:800}.flow-node em{display:inline-flex;align-items:center;justify-content:center;gap:6px;color:var(--blue);font-size:12px;font-style:normal;font-weight:900}.flow-node.pending svg,.module-item.pending svg,.model-overlay-card svg{animation:spin .85s linear infinite}.model-overlay{position:absolute;top:0;right:0;bottom:0;left:0;z-index:10;display:grid;place-items:center;pointer-events:all;background:#eef3f885;-webkit-backdrop-filter:blur(2px);backdrop-filter:blur(2px)}.model-overlay-card{display:grid;min-width:360px;gap:10px;justify-items:center;padding:24px 28px;border:1px solid rgba(79,109,245,.28);border-radius:8px;color:var(--ink);background:#fffffff0;box-shadow:var(--shadow);text-align:center}.model-overlay-card svg{color:var(--blue)}.model-overlay-card strong{font-size:20px}.model-overlay-card span{color:var(--muted);font-size:14px}@keyframes spin{to{transform:rotate(360deg)}}.react-flow__edge-textbg{fill:#ffffffe6}.react-flow__edge-text{pointer-events:none}.edge-inspector{position:absolute;right:18px;bottom:18px;z-index:8;display:grid;width:min(300px,calc(100% - 36px));gap:6px;padding:14px;border:1px solid var(--line);border-radius:8px;background:#fffffff5;box-shadow:var(--shadow)}.edge-inspector>.icon-ghost{position:absolute;top:8px;right:8px;padding:4px}.edge-inspector strong{padding-right:20px;line-height:1.35}.edge-inspector small{color:var(--muted);font-size:12px;line-height:1.45}.edge-evidence{display:grid;gap:4px;margin-top:4px}.edge-evidence code{overflow:hidden;padding:5px 7px;border-radius:6px;color:#334155;background:var(--soft);font-size:11px;text-overflow:ellipsis;white-space:nowrap}.empty-state{position:absolute;top:0;right:0;bottom:0;left:0;display:grid;place-content:center;gap:8px;padding:32px;text-align:center;color:var(--muted)}.empty-state strong{color:var(--ink);font-size:28px}.detail-card{display:flex;flex:0 0 34%;min-height:190px;max-height:38vh;flex-direction:column;overflow:hidden}.detail-card p{min-height:0;overflow:auto;line-height:1.75}.file-list{display:flex;flex:1;min-height:0;flex-direction:column;gap:6px;margin-top:14px;overflow:auto;font-family:Consolas,Courier New,monospace;font-size:12px}.file-list code{padding:7px 8px;border-radius:6px;color:#334155;background:var(--soft)}.chat-card{display:flex;flex:1 1 auto;min-height:0;flex-direction:column;overflow:hidden}.chat-head{display:flex;justify-content:space-between;gap:12px}.chat-scope{display:grid;gap:4px;margin-top:10px;padding:9px 10px;border:1px solid var(--line);border-radius:8px;background:var(--soft)}.chat-scope strong{overflow:hidden;font-size:13px;text-overflow:ellipsis;white-space:nowrap}.chat-scope span{color:var(--muted);font-size:12px}.context-tray{display:flex;flex:0 0 auto;flex-wrap:wrap;gap:7px;margin-top:10px}.context-chip,.context-clear{display:inline-flex;align-items:center;gap:5px;min-height:28px;border:1px solid var(--line);border-radius:999px;cursor:pointer;font-size:12px;font-weight:900}.context-chip{max-width:100%;padding:5px 8px 5px 10px;color:#334155;background:#fff}.context-clear{padding:5px 10px;color:var(--blue);background:#eef4ff}.agent-source{align-self:flex-start;padding:4px 8px;border-radius:999px;color:#0369a1;background:#e0f2fe;font-size:12px;font-weight:900}.chat-log{display:flex;flex:1;min-height:0;flex-direction:column;gap:10px;margin:12px 0;overflow:auto}.chat-message{padding:10px 12px;border-radius:8px;line-height:1.65}.chat-message p{margin:0}.chat-message.user{align-self:flex-end;max-width:92%;color:#fff;background:#111827}.chat-message.assistant{color:var(--muted);background:var(--soft)}.chat-input{display:grid;flex:0 0 auto;grid-template-columns:1fr 92px;gap:8px}textarea{min-height:72px;resize:vertical;border:1px solid var(--line);border-radius:8px;padding:10px;outline:none}.icon-button{padding-inline:10px}@media (max-width: 1180px){.app-shell{grid-template-columns:60px minmax(0,1fr);height:auto;min-height:100vh}.app-shell.history-open,.app-shell.history-collapsed{grid-template-columns:60px minmax(0,1fr)}.app-main{min-height:900px}.app-header{align-items:flex-start;flex-direction:column}.work-grid{grid-template-columns:1fr}.sidebar{position:sticky;top:0;height:100dvh;z-index:50}.history-open .sidebar{width:min(300px,calc(100vw - 36px));background:var(--panel-solid);box-shadow:var(--shadow)}.project-rail,.inspector{height:auto;overflow:visible}.detail-card{flex-basis:auto;max-height:none}.workspace{min-height:720px}.topbar{align-items:flex-start;flex-direction:column}.toolbar{width:100%;flex-wrap:wrap}.auth-wrap{margin-left:auto}}.sidebar-brand-row{display:flex;align-items:center;min-height:44px}.sidebar-brand-toggle{position:relative;display:grid;place-items:center;width:42px;height:42px;flex-shrink:0;border:0;border-radius:8px;background:var(--ink);color:#fff;cursor:pointer}.sidebar-brand-letters{font-size:15px;font-weight:700;letter-spacing:.04em}.sidebar-brand-action{position:absolute;top:0;right:0;bottom:0;left:0;display:grid;place-items:center;opacity:0}.sidebar-brand-toggle:hover,.sidebar-brand-toggle:focus-visible{background:#e8edf5;color:var(--ink)}.sidebar-brand-toggle:hover .sidebar-brand-letters,.sidebar-brand-toggle:focus-visible .sidebar-brand-letters{opacity:0}.sidebar-brand-toggle:hover .sidebar-brand-action,.sidebar-brand-toggle:focus-visible .sidebar-brand-action{opacity:1}.sidebar-brand-toggle:focus-visible{outline:2px solid var(--blue);outline-offset:2px}.app-header.app-header-account{min-height:44px;padding:0;flex-direction:row;justify-content:flex-end;align-items:center;border:0;background:transparent;box-shadow:none;-webkit-backdrop-filter:none;backdrop-filter:none}.history-open .sidebar-brand-row{justify-content:flex-end}.history-open .sidebar-brand-toggle{background:transparent;color:var(--ink)}.history-open .sidebar-brand-toggle:hover,.history-open .sidebar-brand-toggle:focus-visible{background:#e8edf5}.history-open .sidebar-brand-action{opacity:1}.sidebar-account{margin-top:auto;flex-shrink:0;padding-top:10px;border-top:1px solid var(--line)}.sidebar-account .auth-wrap{display:flex;width:100%;margin:0}.sidebar-account-button{display:flex;align-items:center;gap:10px;width:100%;min-height:42px;padding:4px;border:0;border-radius:8px;background:transparent;color:var(--ink);cursor:pointer;text-align:left}.sidebar-account-button:hover{background:#e8edf5}.sidebar-account-button:focus-visible{outline:2px solid var(--blue);outline-offset:-2px}.sidebar-account-button .avatar{width:34px;height:34px;border-radius:50%;flex-shrink:0;font-weight:700}.sidebar-account-button .avatar-guest{background:#e2e8f0;color:var(--muted)}.sidebar-account-name{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:14px}.history-collapsed .sidebar-account-name{display:none}.auth-dialog{max-height:calc(100dvh - 36px);overflow-y:auto}.project-name-dialog{padding:0;border:0;border-radius:8px;background:transparent;width:min(420px,calc(100vw - 36px));max-width:none}.project-name-dialog::backdrop{background:#141a2847;-webkit-backdrop-filter:blur(3px);backdrop-filter:blur(3px)}.project-name-dialog .auth-dialog{width:100%}.project-name-actions{display:flex;justify-content:flex-end;gap:10px}
