.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{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;color-scheme:dark;--bg:#171b24;--panel:#202631;--panel-raised:#272e3a;--canvas:#151a23;--border:#384252;--text:#edf1f6;--muted:#a7b3c4;--accent:#b0d4c0;--accent-ink:#14261c;--blue:#88aecd;--violet:#b8a5e4;--danger:#ffb9b3;--teal:#88bdb9;--amber:#c49a79;--grid:#303b4c;--shadow:0 12px 30px #0003;font-size:13px}:root[data-theme=light]{color-scheme:light;--bg:#eff3f7;--panel:#fff;--panel-raised:#f1f4f8;--canvas:#edf2f7;--border:#ccd5df;--text:#1f2d3f;--muted:#53657b;--accent:#286848;--accent-ink:#fff;--blue:#315f89;--violet:#705392;--danger:#a42324;--teal:#306e69;--amber:#86582f;--grid:#cad3df;--shadow:0 12px 30px #27465b16}*{box-sizing:border-box}html,body,#root{width:100%;height:100%;margin:0}body{overflow:hidden}button,input,textarea,select{font:inherit}button{cursor:pointer;display:inline-flex;align-items:center;justify-content:center;gap:7px;border:1px solid var(--border);border-radius:7px;padding:8px 11px;color:var(--text);background:var(--panel-raised);font-weight:550;line-height:1.3}button:hover{filter:brightness(1.1);border-color:var(--muted)}button:disabled{cursor:default;opacity:.4;filter:none}button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,summary:focus-visible,[role=separator]:focus-visible{outline:2px solid var(--blue);outline-offset:3px}input,textarea,select{width:100%;border:1px solid var(--border);border-radius:6px;background:var(--bg);padding:9px 10px;color:var(--text);min-width:0}textarea{line-height:1.5;resize:vertical;max-height:55vh}input::placeholder,textarea::placeholder{color:var(--muted);opacity:1}label{display:flex;flex-direction:column;gap:7px;font-weight:550;font-size:12px}h1,h2,h3,p{margin:0}h2{font-size:14px;line-height:1.4}h3{font-size:13px;line-height:1.4}.muted{font-size:12px;color:var(--muted);line-height:1.65}.hidden{display:none}.primary{background:var(--accent);border-color:transparent;color:var(--accent-ink)}.icon-button{border-color:transparent;padding:7px;width:32px;height:32px;background:transparent;flex:none}.icon-button:hover,.icon-button.active{background:var(--panel-raised);color:var(--accent)}.button-row{display:flex;gap:7px;flex-wrap:wrap}.button-row button{flex:1;white-space:nowrap}.inline-error{border:1px solid var(--danger);padding:10px;color:var(--danger);font-size:12px;line-height:1.5;white-space:pre-wrap;overflow-wrap:anywhere;max-height:150px;overflow:auto;border-radius:6px}.editor-shell{height:100dvh;min-width:360px;display:flex;flex-direction:column;background:var(--bg);color:var(--text)}.app-header{height:70px;display:flex;align-items:center;gap:20px;padding:0 20px;border-bottom:1px solid var(--border);background:var(--panel);flex:none}.brand{font-size:18px;font-weight:750;letter-spacing:-.6px;color:var(--text);text-decoration:none;display:flex;align-items:center;gap:9px;white-space:nowrap}.brand>span{width:31px;height:31px;display:grid;place-items:center;background:var(--accent);color:var(--accent-ink);border-radius:8px}.header-divider{height:28px;border-left:1px solid var(--border)}.project-name{display:flex;flex-direction:column;gap:4px;min-width:120px}.project-name strong{font-size:14px;font-weight:650;max-width:32vw;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.project-name small{font-size:11px;color:var(--muted)}.mode-badge,.sandbox-badge{font-size:10px;color:var(--muted);border:1px solid var(--border);border-radius:5px;padding:4px 6px;white-space:nowrap}.mode-badge.connected{color:var(--accent)}.header-actions{margin-left:auto;display:flex;align-items:center;gap:9px}.dirty-dot{width:6px;height:6px;border-radius:50%;background:var(--accent);display:inline-block}.workspace-toolbar{display:flex;align-items:center;gap:20px;min-height:45px;padding:4px 13px;background:var(--panel);border-bottom:1px solid var(--border);flex:none}.toolbar-group{display:flex;align-items:center;gap:4px}.toolbar-label{display:flex;align-items:center;gap:8px;margin-left:12px;font-size:12px;font-weight:600}.toolbar-spacer{flex:1}.tool-separator{border-left:1px solid var(--border);height:18px;margin:0 8px}.assistant-toggle{background:transparent;border-color:transparent;font-size:12px}.assistant-toggle.active{background:var(--panel-raised);color:var(--accent)}.error-banner{display:flex;align-items:center;gap:10px;padding:8px 18px;background:var(--panel-raised);color:var(--danger);border-bottom:1px solid var(--danger);flex:none;max-height:130px;overflow:auto}.error-banner>span{flex:1;line-height:1.5;overflow-wrap:anywhere;white-space:pre-wrap;font-size:12px}.workspace{display:flex;flex:1;min-height:0;position:relative}.palette{flex:none;padding:20px 12px 16px;overflow-y:auto;background:var(--panel)}.palette-title{display:flex;align-items:center;justify-content:space-between;padding:0 8px 15px}.palette-title small{color:var(--muted);font-size:11px}.search{position:relative;margin:0 4px 24px}.search>svg{position:absolute;left:10px;top:10px;color:var(--muted)}.search input{padding-left:32px;font-size:12px}.palette section>h3{font-size:11px;font-weight:600;color:var(--muted);margin:22px 8px 9px}.palette-node{display:flex;width:100%;justify-content:flex-start;border:1px solid transparent;background:transparent;text-align:left;padding:10px 7px;gap:10px;border-radius:7px;cursor:grab}.palette-node:hover{background:var(--panel-raised);border-color:var(--border)}.palette-icon{color:var(--node-color,var(--blue));width:30px;height:32px;display:grid;place-items:center;border:1px solid var(--border);border-radius:7px;flex:none}.palette-node>span:last-child{display:flex;flex-direction:column;gap:4px;min-width:0}.palette-node strong{font-size:12px;font-weight:600;line-height:1.2}.palette-node small{font-size:10px;font-weight:400;color:var(--muted);line-height:1.35;overflow-wrap:anywhere}.palette-footnote{font-size:10px;line-height:1.7;color:var(--muted);padding:25px 8px 0}.panel-resizer{width:5px;cursor:col-resize;flex:none;background:var(--border);opacity:.45;touch-action:none}.panel-resizer:hover,.panel-resizer:focus-visible{background:var(--blue);opacity:1}.graph-workspace{flex:1;min-width:0;position:relative;background:var(--canvas)}.canvas{width:100%;height:100%;position:relative}.canvas-hint{position:absolute;bottom:20px;left:50%;transform:translate(-50%);font-size:10px;white-space:nowrap;color:var(--muted);pointer-events:none;padding:6px 8px;background:var(--canvas);border-radius:5px}.loading-state{height:100%;display:grid;place-items:center;padding:25px;color:var(--muted);text-align:center}.statusbar{min-height:30px;display:flex;align-items:center;gap:22px;flex:none;padding:6px 16px;font-size:10px;background:var(--panel);border-top:1px solid var(--border);color:var(--muted)}.statusbar>span:first-child{display:flex;align-items:center;gap:6px}.statusbar .saved{color:var(--accent)}.statusbar .unsaved{color:var(--blue)}.statusbar>small{margin-left:auto;font-size:10px;white-space:nowrap}.kind-scene,.kind-video{--node-color:var(--blue)}.kind-choice,.kind-condition{--node-color:var(--violet)}.kind-state_write,.kind-settings{--node-color:var(--accent)}.kind-effect,.kind-end{--node-color:var(--amber)}.kind-image,.kind-model3d,.kind-shot_plan,.kind-media_edit{--node-color:var(--teal)}.story-node{width:252px;border:1px solid var(--border);border-radius:10px;background:var(--panel);box-shadow:var(--shadow);text-align:left;overflow:visible;border-top:3px solid var(--node-color,var(--muted));color:var(--text)}.story-node.selected{outline:2px solid var(--node-color,var(--blue));outline-offset:3px}.story-node>header{display:flex;align-items:center;gap:7px;padding:13px 15px 9px;font-size:10px;color:var(--muted)}.node-icon{color:var(--node-color,var(--muted));display:flex}.node-kind{font-size:10px}.entry-badge{margin-left:auto;font-size:9px;background:var(--panel-raised);color:var(--accent);padding:3px 5px;border-radius:4px}.story-node h3{font-size:14px;line-height:1.45;padding:0 15px 13px;word-break:break-word;font-weight:650}.node-media{height:102px;margin:0 13px 13px;background:var(--canvas);border:1px solid var(--border);border-radius:6px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;position:relative;color:var(--muted);overflow:hidden}.node-media>span{font-size:9px;text-align:center;max-width:90%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.node-media small{position:absolute;bottom:5px;right:6px;font-size:8px;background:var(--panel);padding:2px 5px;border-radius:3px}.node-media img{width:100%;height:100%;object-fit:cover}.node-description{font-size:11px;line-height:1.5;color:var(--muted);margin:0 15px 15px;max-height:65px;overflow:hidden;white-space:pre-wrap}.state-badge{font-size:10px;color:var(--node-color,var(--accent));margin:0 14px 9px;line-height:1.5;overflow-wrap:anywhere}.node-ports{display:flex;justify-content:space-between;gap:12px;padding:8px 14px 10px;border-top:1px solid var(--border)}.node-ports>div{min-width:0;flex:1}.port{position:relative;display:flex;align-items:center;min-height:29px;font-size:10px;line-height:1.35;color:var(--muted)}.port>span{max-width:105px;overflow-wrap:anywhere}.port.output{justify-content:flex-end;text-align:right}.port .react-flow__handle{width:9px;height:9px;border:2px solid var(--panel);background:var(--blue);min-width:9px;min-height:9px}.port .react-flow__handle-left{left:-19px}.port .react-flow__handle-right{right:-19px}.port .story-handle{border-radius:2px;background:var(--node-color,var(--muted))}.react-flow{--xy-background-color:var(--canvas);--xy-background-pattern-dots-color:var(--grid);--xy-edge-stroke:var(--muted);--xy-edge-stroke-width:1.4;--xy-edge-label-background-color:var(--panel);--xy-edge-label-color:var(--text);--xy-controls-button-background-color:var(--panel);--xy-controls-button-background-color-hover:var(--panel-raised);--xy-controls-button-color:var(--text);--xy-controls-button-border-color:var(--border);--xy-controls-box-shadow:none;--xy-minimap-background-color:var(--panel);--xy-minimap-mask-background-color:var(--canvas)}.react-flow__edge-text{font-size:10px;fill:var(--text)}.react-flow__edge-textbg{fill:var(--panel)}.react-flow__edge.selected .react-flow__edge-path{stroke:var(--accent);stroke-width:2}.react-flow__controls{display:flex;border:1px solid var(--border);border-radius:7px;overflow:hidden;bottom:10px;left:8px}.react-flow__controls-button{width:31px;height:31px;border-right:1px solid var(--border)}.react-flow__minimap{width:140px;height:86px;border:1px solid var(--border);border-radius:5px;bottom:7px;right:8px;overflow:hidden}.helper-lines{position:absolute;inset:0;width:100%;height:100%;pointer-events:none}.helper-line{stroke:var(--accent);stroke-width:1;stroke-dasharray:4 4}.inspector{background:var(--panel);overflow-y:auto;flex:none;max-width:90vw}.inspector-tabs{display:flex;border-bottom:1px solid var(--border);height:49px;padding:0 18px;gap:20px;position:sticky;top:0;background:var(--panel);z-index:2}.inspector-tabs button{border:0;border-bottom:2px solid transparent;background:transparent;border-radius:0;padding:0 0 1px;font-size:12px;color:var(--muted)}.inspector-tabs .active{border-bottom-color:var(--accent);color:var(--text)}.inspector-content{display:flex;flex-direction:column;gap:20px;padding:22px 18px 30px}.panel-heading{display:flex;align-items:center;justify-content:space-between;color:var(--muted);font-size:11px;gap:10px}.panel-heading>span{font-weight:650;color:var(--text)}.panel-heading small{font-size:9px}.inspector-empty{height:70%;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:30px;text-align:center;gap:16px;color:var(--muted)}.inspector-empty p{font-size:12px;line-height:1.7}.choice-list{display:flex;flex-direction:column;gap:8px}.choice-list>div{display:flex;align-items:center;gap:8px;padding:8px;border:1px solid var(--border);border-radius:5px;font-size:12px}.choice-list small{margin-left:auto;color:var(--muted);font-size:9px}.port-dot{background:var(--violet);width:5px;height:5px;border-radius:2px}.media-section{display:flex;flex-direction:column;gap:12px;border-top:1px solid var(--border);padding-top:20px}.preview-empty{display:flex;align-items:center;justify-content:center;gap:9px;text-align:center;flex-direction:column;min-height:130px;border:1px dashed var(--border);border-radius:7px;background:var(--canvas);color:var(--muted);font-size:11px;padding:15px}.active-preview{display:flex;flex-direction:column;gap:7px}.active-preview video,.active-preview img{max-width:100%;max-height:220px;width:100%;background:#000;border-radius:6px;object-fit:contain}.active-preview small{font-size:10px;color:var(--muted);overflow-wrap:anywhere}.file-button{position:relative;border:1px solid var(--border);background:var(--panel-raised);border-radius:6px;padding:9px 7px;display:flex;flex-direction:row;justify-content:center;align-items:center;cursor:pointer;font-size:11px}.file-button input{position:absolute;inset:0;opacity:0;cursor:pointer}.file-button:focus-within{outline:2px solid var(--blue)}.advanced{border-top:1px solid var(--border);padding-top:16px}.advanced summary{font-size:12px;font-weight:600;cursor:pointer;margin-bottom:14px}.advanced label{margin-bottom:12px}.json-input{font-family:ui-monospace,SFMono-Regular,Consolas,monospace;font-size:10px;line-height:1.6;tab-size:2;white-space:pre;overflow-x:auto}.inspector-actions,.variables{display:flex;flex-direction:column;gap:9px}.variables button{display:flex;flex-direction:column;align-items:flex-start;gap:5px;text-align:left}.variables button span,.variables button small{color:var(--muted);font-size:10px}.variables button strong{font-size:12px}.variables button small{font-size:9px}.assistant{width:320px;flex:none;background:var(--panel);border-left:1px solid var(--border);padding:0 18px 25px;overflow-y:auto;display:flex;flex-direction:column;gap:16px;box-shadow:-12px 0 24px #0001}.assistant>header{display:flex;align-items:center;gap:9px;min-height:49px;position:sticky;top:0;background:var(--panel);z-index:1;border-bottom:1px solid var(--border)}.assistant>header>svg{color:var(--violet)}.assistant>header button{margin-left:auto}.assistant>header h2{font-size:13px}.notes{display:flex;flex-direction:column;gap:10px}.note{border:1px solid var(--border);background:var(--panel-raised);padding:11px;border-radius:7px}.note small{font-size:9px;color:var(--muted)}.note p{font-size:12px;line-height:1.6;white-space:pre-wrap;margin-top:5px;overflow-wrap:anywhere}.patch-section{display:flex;flex-direction:column;gap:15px;border-top:1px solid var(--border);padding-top:22px}.patch-section>h3{display:flex;align-items:center;gap:8px}dialog{color:var(--text);background:var(--panel);border:1px solid var(--border);border-radius:12px;box-shadow:0 25px 100px #0008;padding:22px;max-height:90dvh;overflow:auto}dialog::backdrop{background:#060b13bb;-webkit-backdrop-filter:blur(3px);backdrop-filter:blur(3px)}dialog>header{display:flex;align-items:center;gap:15px;margin-bottom:20px}dialog>header>button:last-child{margin-left:auto}.connection-dialog{width:480px}.connection-dialog>label,.connection-dialog>.button-row,.connection-dialog>.muted{margin:18px 0 0}.story-preview{width:min(1100px,94vw);padding:22px}.preview-grid{display:grid;grid-template-columns:minmax(0,1fr) 270px;gap:25px}.preview-stage{display:flex;flex-direction:column;gap:15px}.preview-screen{aspect-ratio:16/9;background:#090c12;border:1px solid #354052;color:#f0f3f7;position:relative;border-radius:8px;display:flex;align-items:center;justify-content:center;overflow:hidden}.preview-screen video,.preview-screen img{width:100%;height:100%;object-fit:contain}.preview-title{display:flex;flex-direction:column;align-items:center;gap:14px;padding:30px;text-align:center}.preview-title h3{font-size:22px}.preview-title>p{font-size:12px;line-height:1.7;color:#aebbcf;max-width:300px}.preview-complete{position:absolute;inset:0;background:#111925;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:14px;color:#fff}.preview-complete h3{font-size:22px}.preview-choices{display:flex;flex-wrap:wrap;gap:10px;justify-content:center}.preview-choices button{min-width:100px}.preview-grid aside{display:flex;flex-direction:column;gap:13px}.preview-grid pre{font-family:ui-monospace,SFMono-Regular,Consolas,monospace;white-space:pre-wrap;font-size:10px;line-height:1.6;overflow-wrap:anywhere;padding:12px;background:var(--bg);border-radius:6px;margin:0}.event-log{max-height:140px;overflow:auto}.preview-grid aside small{color:var(--muted);font-size:10px;line-height:1.5}@media(max-width:1250px){.app-header{gap:13px;padding:0 15px}.header-actions{gap:5px}.mode-badge{display:none}.assistant{position:absolute;right:0;top:0;bottom:0;z-index:7}.canvas-hint{display:none}.toolbar-label{font-size:11px;margin-left:3px}.workspace-toolbar{gap:12px}}@media(max-width:950px){.app-header .header-divider{display:none}.project-name strong{max-width:27vw}.brand{font-size:15px;gap:6px}.brand>span{width:27px;height:27px}.header-actions .icon-button:first-child{display:none}.preview-button>span{display:none}.toolbar-label{display:none}.workspace-toolbar{gap:5px}.palette{max-width:225px}.inspector{position:absolute;right:0;top:0;bottom:0;z-index:5;box-shadow:-10px 0 30px #0003;border-left:1px solid var(--border)}.inspector+.panel-resizer{display:none}.workspace>.panel-resizer:nth-last-of-type(1){display:none}.statusbar{gap:12px}.statusbar>span:nth-child(3){display:none}.preview-grid{grid-template-columns:1fr}.preview-grid aside{display:grid;grid-template-columns:1fr 1fr}.preview-grid aside>p{display:none}.story-preview{width:94vw}}@media(max-width:600px){.app-header{height:62px;gap:10px;padding:0 10px}.brand{font-size:0;gap:0}.brand>span{width:31px;height:31px}.project-name{min-width:0;flex:1}.project-name strong{max-width:42vw;font-size:12px}.project-name small{font-size:9px}.header-actions{gap:3px;margin-left:0}.save-button{padding:7px}.save-button>span{display:none}.preview-button{padding:7px}.workspace-toolbar{padding:4px 6px}.toolbar-group{gap:1px}.tool-separator{margin:0 2px}.toolbar-group .icon-button{width:29px}.assistant-toggle{font-size:0;gap:0;width:30px;padding:7px}.assistant-toggle svg{width:17px;height:17px}.palette{position:absolute;left:0;top:0;bottom:0;z-index:6;border-right:1px solid var(--border);box-shadow:12px 0 30px #0004}.palette+.panel-resizer{display:none}.statusbar{font-size:9px;gap:8px;justify-content:space-between}.statusbar>span:nth-child(2){display:none}.react-flow__minimap{display:none}.assistant{width:min(340px,94vw)}.preview-grid aside{display:flex}.preview-title{padding:15px}.preview-title h3{font-size:17px}.story-preview{padding:15px}.sandbox-badge{display:none}}@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation-duration:.01ms!important;transition-duration:.01ms!important;scroll-behavior:auto!important}}.auth-page{height:100dvh;display:grid;grid-template-columns:1.1fr 1fr;background:var(--bg);color:var(--text)}.auth-story{padding:45px 8vw 35px 5vw;display:flex;flex-direction:column;justify-content:space-between;background:var(--canvas);border-right:1px solid var(--border)}.auth-story h1{font-size:clamp(30px,3.4vw,51px);font-weight:650;line-height:1.17;letter-spacing:-1.7px}.auth-story p{font-size:15px;color:var(--muted);max-width:370px;line-height:1.8;margin-top:25px}.auth-story>small{font-size:11px;color:var(--muted)}.auth-filmstrip{display:flex;gap:12px;align-items:center;margin-top:45px;color:var(--muted);font-size:11px}.auth-filmstrip>div{padding:19px 16px;border:1px solid var(--border);border-top:2px solid var(--blue);border-radius:6px;background:var(--panel)}.auth-filmstrip>div:nth-child(3){border-top-color:var(--violet)}.auth-filmstrip>div:nth-child(5){border-top-color:var(--accent)}.auth-form{display:flex;align-items:center;justify-content:center;padding:40px}.auth-form form{width:100%;max-width:340px;display:flex;flex-direction:column;gap:23px}.auth-form h2{font-size:25px;font-weight:650;letter-spacing:-.7px}.auth-form button.primary{padding:12px;justify-content:space-between}.auth-footnote{color:var(--muted);font-size:10px;line-height:1.7}.auth-links{display:flex;justify-content:space-between;gap:8px}.auth-links button{background:none;border:0;padding:0;font-size:11px;color:var(--muted)}.auth-notice{font-size:12px;line-height:1.6;color:var(--accent)}.auth-loading{height:100dvh;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:18px;background:var(--bg);color:var(--text)}.auth-loading strong{font-size:22px}.auth-loading p{font-size:13px;color:var(--muted)}.projects-page{height:100dvh;overflow:auto;background:var(--bg);color:var(--text)}.projects-page>header{height:82px;padding:0 5vw;display:flex;align-items:center;gap:22px;border-bottom:1px solid var(--border);background:var(--panel)}.account-email{margin-left:auto;font-size:12px;color:var(--muted)}.projects-content{width:min(980px,90vw);margin:55px auto}.projects-heading{display:flex;align-items:center;gap:12px;margin-bottom:35px}.projects-heading>div:first-child{flex:1}.projects-heading h1{font-size:28px;letter-spacing:-.9px;font-weight:650}.projects-heading p{margin-top:8px}.project-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:15px;margin-top:25px}.project-list>button{text-align:left;justify-content:flex-start;gap:17px;padding:20px;background:var(--panel);min-height:100px}.project-list>button>span:nth-child(2){display:flex;flex-direction:column;gap:10px;min-width:0}.project-list strong{font-size:15px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.project-list small{font-size:10px;color:var(--muted)}.project-list>button>svg{margin-left:auto;flex:none;color:var(--muted)}.project-cover{padding:14px;background:var(--panel-raised);color:var(--blue);border-radius:7px;flex:none}.empty-projects{padding:70px 20px;display:flex;flex-direction:column;align-items:center;gap:20px;border:1px dashed var(--border);border-radius:10px;color:var(--muted)}.empty-projects h2{font-size:19px;color:var(--text)}.empty-projects p{text-align:center}.create-project{padding:28px;background:var(--panel);border:1px solid var(--border);border-radius:10px;display:flex;flex-direction:column;gap:22px;margin:20px 0 30px}.create-project h2{font-size:18px}.create-project>button{align-self:flex-start}.form-columns{display:flex;gap:18px}.form-columns>label{flex:1}.terms-panel{padding:28px;display:flex;flex-direction:column;align-items:flex-start;gap:20px;background:var(--panel);border:1px solid var(--border);border-radius:10px;max-width:700px}.terms-panel>p{font-size:13px;line-height:1.7;color:var(--muted)}.terms-panel>a{color:var(--blue);font-size:13px}.checkbox-label{flex-direction:row;align-items:center;line-height:1.6}.checkbox-label input{width:17px;height:17px;accent-color:var(--accent);flex:none}.projects-endpoint{display:block;color:var(--muted);font-size:10px;margin-top:40px}@media(max-width:800px){.auth-page{grid-template-columns:1fr}.auth-story{padding:24px 25px 30px;gap:35px;border-right:none;border-bottom:1px solid var(--border)}.auth-story h1{font-size:33px;letter-spacing:-1px}.auth-story p{font-size:12px;margin-top:14px}.auth-story>small,.auth-filmstrip{display:none}.auth-form{padding:30px 25px;align-items:flex-start}.auth-page{overflow-y:auto}.auth-form form{max-width:400px}.projects-page>header{padding:0 20px;gap:12px}.account-email{display:none}.projects-page>header>button{margin-left:auto}.projects-content{margin-top:30px}.projects-heading{flex-wrap:wrap}.projects-heading>div:first-child{flex-basis:100%}.project-list{grid-template-columns:1fr}.form-columns{flex-direction:column}.create-project{padding:20px}}.draft-notice{padding:10px;background:var(--panel-raised);border-left:2px solid var(--blue);color:var(--muted);font-size:11px;line-height:1.6}.connections-dialog,.diagnostics-dialog{width:min(620px,94vw)}.connections-dialog form{display:flex;flex-direction:column;gap:15px}.connections-dialog h3{margin:25px 0 12px}.connections-list{max-height:240px;overflow:auto}.connections-list>div{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:7px 0;border-bottom:1px solid var(--border);font-size:12px}.diagnostics-dialog ol{padding-left:22px}.diagnostics-dialog li{padding:14px 0 20px;border-bottom:1px solid var(--border)}.diagnostics-dialog li>p{font-size:12px;line-height:1.7;margin:10px 0;color:var(--muted)}.diagnostics-dialog li>small{display:block;font-size:10px;margin-bottom:12px;color:var(--muted)}.diagnostic-status{font-size:10px;border:0;background:none;padding:0;color:var(--muted);text-decoration:underline;text-underline-offset:3px}@media(max-width:950px){.statusbar>span:nth-child(3){display:inline}.statusbar>span:first-child{min-width:0;max-width:44vw}}@media(max-width:600px){.statusbar>small{display:none}.statusbar>span:nth-child(3){margin-left:auto}.statusbar{gap:6px}}.preview-issues{border-top:1px solid var(--border);padding-top:20px;margin-top:22px}.preview-issues ol{padding-left:22px}.preview-issues li{padding:14px 0;border-bottom:1px solid var(--border)}.preview-issues li p{font-size:12px;color:var(--muted);line-height:1.7;margin:8px 0}.preview-issues li small{display:block;font-size:10px;color:var(--muted);margin-bottom:12px}.recovery-banner{display:flex;align-items:center;gap:12px;flex-wrap:wrap;padding:12px 18px;border-bottom:1px solid var(--border);background:var(--panel);font-size:13px}.recovery-banner>div{flex:1;min-width:200px;overflow-wrap:anywhere}.recovery-banner p{margin:5px 0;color:var(--muted)}.recovery-banner small{color:var(--muted)}
