.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%}:root{font-family:IBM Plex Sans,system-ui,sans-serif;color:#0f172a;background:#f8fafc}*{box-sizing:border-box}body,html,#root{margin:0;width:100%;height:100%}.app{display:flex;flex-direction:column;height:100%}.layout{display:flex;flex:1;min-height:0}.sidebar{width:280px;padding:12px;background:#f1f5f9;border-right:1px solid #e2e8f0;overflow:auto}.panel{background:#fff;border:1px solid #e2e8f0;border-radius:8px;padding:12px;margin-bottom:12px}.panel-title{font-weight:700;font-size:13px;margin-bottom:10px}.panel-title-row{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:10px}.panel-title-row .panel-title,.panel-title-row .panel-subtitle{margin-bottom:0}.panel-collapse-btn{padding:4px 8px;font-size:11px;flex:0 0 auto}.panel-subtitle{font-weight:600;font-size:12px;margin-bottom:8px;color:#1e293b}.field-heading{margin-bottom:0}.field{display:flex;flex-direction:column;gap:6px;margin-bottom:10px;font-size:12px}.graph-source-name-row{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:6px;font-size:12px}.field input,.field select,.field textarea{font-size:12px;padding:6px 8px;border-radius:6px;border:1px solid #cbd5f5}.field input[type=checkbox]{width:16px;height:16px;padding:0;border-radius:4px}.btn.btn-secondary{background:#38bdf8}.empty{font-size:12px;color:#64748b}.expression-preview{border:1px solid #dbeafe;background:#f8fbff;border-radius:6px;padding:6px 8px;display:flex;flex-direction:column;gap:4px}.expression-preview-title{font-size:11px;font-weight:600;color:#334155}.search-results{display:flex;flex-direction:column;gap:6px;margin:6px 0 10px}.search-item{border:1px solid #e2e8f0;background:#f8fafc;border-radius:6px;padding:6px 8px;font-size:12px;text-align:left;display:flex;flex-direction:column;gap:6px}.search-title{font-weight:600;margin-bottom:2px;display:flex;align-items:center;gap:6px}.search-desc{color:#64748b;font-size:11px;margin-bottom:2px}.search-props{color:#475569;font-size:11px}.search-actions{display:flex;gap:6px}.search-actions .btn{padding:4px 8px;font-size:11px}.icon-only-btn{width:32px;height:30px;padding:0;display:inline-flex;align-items:center;justify-content:center;line-height:0}.icon-only-btn .trash-icon{display:block;stroke:currentColor;stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round;fill:none}.copy-source-btn{margin-left:auto}.copy-source-btn .copy-icon{display:block;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round;fill:none}.chip-list{display:flex;flex-wrap:wrap;gap:6px}.chip{border:1px solid #0f172a;border-radius:999px;background:#e2e8f0;color:#0f172a;padding:3px 8px;font-size:11px;cursor:pointer}.status{font-size:10px;padding:2px 6px;border-radius:999px;text-transform:uppercase;letter-spacing:.3px}.status-completed{background:#dcfce7;color:#166534}.status-pending{background:#fef9c3;color:#854d0e}.search-item span{color:#64748b}.topbar{display:flex;align-items:center;justify-content:space-between;padding:12px 16px;background:#0f172a;color:#f8fafc}.topbar-actions{display:flex;align-items:center;gap:8px}.save-hint{padding:8px 16px;background:#dcfce7;color:#166534;border-bottom:1px solid #bbf7d0;font-size:12px;font-weight:600}.graph-warning-banner{padding:8px 16px;background:#fef3c7;color:#9a3412;border-bottom:1px solid #fde68a;font-size:12px;font-weight:600;display:grid;gap:4px}.tabs{display:flex;gap:8px}.tab{background:transparent;color:#e2e8f0;border:1px solid #334155;padding:6px 10px;border-radius:999px;cursor:pointer;font-size:12px}.tab-active{background:#38bdf8;color:#0f172a;border-color:#38bdf8;font-weight:600}.brand{font-weight:600;letter-spacing:.3px}.btn{background:#22c55e;border:none;color:#0f172a;padding:8px 12px;font-weight:600;border-radius:6px;cursor:pointer}.canvas{flex:1;min-width:0;position:relative}.current-story-floating{position:absolute;top:12px;right:12px;width:min(420px,calc(100% - 24px));max-height:calc(100% - 24px);overflow:auto;z-index:6;box-shadow:0 10px 24px #0f172a29}.logic-page{padding:16px}.stories-page-wrap{position:relative;min-height:100%}.stories-page-dimmed{filter:brightness(.55);pointer-events:none}.stories-edit-overlay{position:fixed;top:0;right:0;bottom:0;left:0;background:#0f172a73;display:flex;align-items:center;justify-content:center;padding:20px;z-index:30}.stories-edit-modal{width:min(700px,94vw);max-height:86vh;overflow:auto}.duplicate-story-modal{width:min(640px,92vw)}.stories-generated-modal{width:min(820px,94vw);max-height:86vh;overflow:auto}.logic-header{margin-bottom:12px}.logic-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:12px}.node{padding:10px 12px;border:2px solid #0f172a;background:#f8fafc;min-width:60px;min-height:60px;text-align:center;font-size:12px;display:flex;flex-direction:column;justify-content:center;align-items:center;position:relative}.logic-node{border-radius:6px;background:#dbeafe}.logic-node-vectorized{background:#fb923c}.wrapper-node{border-radius:6px;background:#dcfce7}.simple-node{border-radius:999px;background:#fff7ed}.simple-node-input-interface{background:#fff}.simple-node-initializer{border-style:dotted;border-width:2px}.simple-node-output-interface{background:#0f172a}.simple-node-output-interface .node-title{color:#f8fafc}.simple-node-output-interface .output-handle{background:#f8fafc;border-color:#f8fafc}.constant-node{border-radius:999px;background:#fbcfe8}.node-title{font-weight:600}.node-name{font-size:11px;color:#334155;margin-top:2px}.node-subtitle{font-size:10px;color:#475569;margin-top:4px}.story-copy-summary{margin:12px 0;padding:10px 12px;border:1px solid #dbeafe;border-radius:10px;background:#eff6ff}.duplicate-option-list{display:flex;flex-direction:column;gap:10px;margin:12px 0 16px}.checkbox-field{display:flex;align-items:center;gap:10px;font-size:13px;color:#334155}.checkbox-field input[type=checkbox]{width:16px;height:16px;margin:0}.port-handle{width:10px;height:10px;border:2px solid #0f172a;background:#f8fafc}.input-handle{background:#fff}.output-handle{background:#0f172a}.edge-role-label{position:absolute;pointer-events:all;background:#f8fafc;border:1px solid #94a3b8;border-radius:4px;padding:1px 5px;font-size:10px;color:#0f172a;cursor:pointer}.edge-role-label-selected{font-weight:400;border-width:1px;border-color:#dc2626;color:#dc2626;box-shadow:none}.btn.btn-danger{background:#fecaca;color:#7f1d1d}.react-flow__node.selected .node{border-color:#dc2626;box-shadow:none}.preview-modal{width:min(860px,94vw);max-height:86vh;overflow:auto}.derived-webview-modal{width:min(1100px,96vw)}.derived-webview-modal .illustration-preview-img{width:50%;max-width:100%;margin:0 auto}.preview-text{white-space:pre-wrap;word-break:break-word}.preview-json{margin:0;font-size:11px;line-height:1.45;white-space:pre-wrap;word-break:break-word;color:#334155}.illustration-preview-img{width:100%;max-height:70vh;object-fit:contain;background:#fff;border:1px solid #e2e8f0;border-radius:8px}.source-webview-img{width:50%;max-width:100%;margin:0 auto}.auth-user-btn{font-size:12px;color:#e2e8f0;border:1px solid #334155;border-radius:999px;padding:5px 10px;background:transparent;cursor:pointer}.auth-user-btn:hover,.auth-user-btn-active{border-color:#38bdf8;color:#bae6fd}.profile-page{padding:16px}.profile-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:12px}.profile-grid .panel:last-child{grid-column:1 / -1}.auth-modal{width:min(420px,92vw);max-height:86vh;overflow:auto}.auth-error{color:#b91c1c}.asy-warning{font-size:12px;color:#b45309;background:#fef3c7;border:1px solid #fde68a;border-radius:6px;padding:6px 8px;margin-bottom:10px}
