.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:Inter,system-ui,-apple-system,Segoe UI,Roboto,Helvetica,Arial,sans-serif;line-height:1.5;font-weight:400}*{box-sizing:border-box}html,body,#root{height:100%;margin:0}.stories-dashboard{background:linear-gradient(180deg,#f8fafc,#eef2ff);display:flex;flex-direction:column;gap:1rem;height:100%;padding:1rem}.stories-dashboard-header{align-items:flex-start;display:flex;gap:1rem;justify-content:space-between}.stories-dashboard-header h1{font-size:1.3rem;margin:0}.stories-dashboard-header p{color:#475569;margin:.25rem 0 0}.stories-dashboard-header-actions{align-items:center;display:flex;flex-wrap:wrap;gap:.6rem;justify-content:flex-end}.stories-dashboard-panel{background:#ffffffe6;border:1px solid #dbe3ec;border-radius:12px;box-shadow:0 14px 32px #0f172a0f;display:flex;flex:1;flex-direction:column;gap:.9rem;min-height:0;padding:.9rem}.stories-dashboard-panel-header{align-items:center;display:flex;flex-wrap:wrap;gap:.75rem;justify-content:space-between}.stories-dashboard-panel-header h2{font-size:1rem;margin:0}.stories-dashboard-panel-header p{color:#64748b;font-size:.85rem;margin:.2rem 0 0}.stories-dashboard-actions{display:flex;flex-wrap:wrap;gap:.45rem}.stories-dashboard-empty{color:#475569;margin:0}.stories-dashboard-list{display:flex;flex:1;flex-direction:column;gap:.5rem;list-style:none;margin:0;min-height:0;overflow:auto;padding:0}.stories-dashboard-row{align-items:center;background:#fff;border:1px solid #e2e8f0;border-radius:10px;display:flex;gap:.75rem;justify-content:space-between;padding:.7rem}.stories-dashboard-row-meta{display:flex;flex-direction:column;gap:.1rem;min-width:0}.stories-dashboard-row-meta strong{color:#0f172a;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.stories-dashboard-row-meta span{color:#64748b;font-size:.78rem}.stories-dashboard-row-actions{display:flex;flex-shrink:0;flex-wrap:wrap;gap:.35rem;justify-content:flex-end}.stories-dashboard-delete{border-color:#fecaca;color:#991b1b}.stories-dashboard-status{font-size:.82rem;font-weight:600;margin:0}.stories-dashboard-status-saved{color:#0f766e}.stories-dashboard-status-error{color:#b00020}.graph-view{display:flex;flex-direction:column;height:100%}.graph-header{border-bottom:1px solid #d9d9d9;padding:.75rem 1rem}.graph-header-top{align-items:center;display:flex;flex-wrap:wrap;justify-content:space-between;gap:.75rem}.graph-header-actions{align-items:center;display:flex;flex-wrap:wrap;gap:.6rem;justify-content:flex-end}.graph-header h1{font-size:1rem;margin:0 0 .25rem}.graph-header p{margin:0}.story-map-control-help{font-size:.95rem;font-weight:700}.story-save-controls{align-items:center;display:inline-flex;flex-wrap:wrap;gap:.45rem}.story-save-button{background:#0f766e;border:1px solid #115e59;border-radius:7px;color:#fff;cursor:pointer;font:inherit;font-size:.84rem;font-weight:600;padding:.35rem .65rem}.story-save-button:disabled{cursor:default;opacity:.7}.story-save-secondary{background:#fff;border-color:#94a3b8;color:#0f172a}.story-autosave-toggle{align-items:center;background:#fff;border:1px solid #cbd5e1;border-radius:999px;color:#0f172a;cursor:pointer;display:inline-flex;font-size:.78rem;font-weight:600;gap:.35rem;padding:.22rem .5rem}.story-autosave-toggle input{margin:0}.saved-drafts-panel{background:#fff;border:1px solid #cbd5e1;border-radius:7px}.saved-drafts-panel summary{cursor:pointer;font-size:.8rem;font-weight:600;list-style:none;padding:.35rem .55rem}.saved-drafts-panel summary::-webkit-details-marker{display:none}.saved-drafts-menu{border-top:1px solid #e2e8f0;display:flex;flex-direction:column;gap:.4rem;min-width:16rem;padding:.45rem}.saved-drafts-refresh{align-self:flex-start;background:#f8fafc;border:1px solid #cbd5e1;border-radius:6px;cursor:pointer;font:inherit;font-size:.78rem;font-weight:600;padding:.25rem .45rem}.saved-drafts-empty{color:#475569;font-size:.78rem;margin:0}.saved-drafts-list{display:flex;flex-direction:column;gap:.35rem;list-style:none;margin:0;max-height:12rem;overflow:auto;padding:0}.saved-draft-row{display:flex;flex-direction:column;gap:.25rem}.saved-drafts-list li>.saved-draft-row>button{align-items:flex-start;background:#f8fafc;border:1px solid #e2e8f0;border-radius:6px;cursor:pointer;display:flex;flex-direction:column;gap:.1rem;padding:.35rem .45rem;text-align:left;width:100%}.saved-drafts-list li>.saved-draft-row>button small{color:#64748b;font-size:.72rem}.saved-drafts-list li>.saved-draft-row>button.is-active-draft{background:#ecfeff;border-color:#14b8a6}.saved-draft-actions{display:flex;gap:.25rem}.saved-draft-action{background:#fff;border:1px solid #cbd5e1;border-radius:6px;color:#0f172a;cursor:pointer;flex:1;font:inherit;font-size:.72rem;font-weight:600;padding:.2rem .35rem}.saved-draft-action-danger{border-color:#fecaca;color:#991b1b}.story-dirty-indicator{border-radius:999px;font-size:.72rem;font-weight:700;padding:.18rem .45rem}.story-dirty-indicator-clean{background:#ecfdf5;color:#065f46}.story-dirty-indicator-dirty{background:#fff7ed;color:#9a3412}.story-save-status{font-size:.78rem;font-weight:600}.story-save-status-saved{color:#0f766e}.story-save-status-error{color:#b00020}.auth-panel{background:#f8fafc;border:1px solid #cbd5e1;border-radius:8px;color:#0f172a}.auth-panel summary{cursor:pointer;font-size:.85rem;font-weight:600;list-style:none;padding:.4rem .6rem}.auth-panel summary::-webkit-details-marker{display:none}.auth-panel-signed-in{align-items:center;display:inline-flex;gap:.5rem;padding:.35rem .45rem .35rem .6rem}.auth-user-email{font-size:.82rem;font-weight:600;max-width:15rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.auth-panel button,.auth-form input{font:inherit}.auth-panel button{background:#fff;border:1px solid #cbd5e1;border-radius:6px;color:#0f172a;cursor:pointer;padding:.35rem .6rem}.auth-form{border-top:1px solid #cbd5e1;display:grid;gap:.35rem;min-width:18rem;padding:.6rem}.auth-form label{font-size:.78rem;font-weight:600}.auth-form input{border:1px solid #cbd5e1;border-radius:6px;padding:.4rem .5rem}.auth-mode-toggle{display:inline-flex;gap:.35rem;margin-bottom:.15rem}.auth-mode-toggle .is-active{background:#e2e8f0;border-color:#94a3b8}.auth-error{color:#b00020;font-size:.78rem;margin:.1rem 0;max-width:20rem}.graph-canvas{flex:1;min-height:0}.graph-content{display:flex;flex:1;min-height:0}.node-editor{border-left:1px solid #d9d9d9;display:flex;flex-direction:column;gap:.5rem;overflow-y:auto;padding:.75rem;width:416px}.node-editor h2,.node-editor h3{margin:.25rem 0}.field-label-row{align-items:baseline;display:flex;gap:.5rem;justify-content:space-between}.field-label-row>label{margin:0}.field-with-counter{display:flex;flex-direction:column;gap:.15rem;min-width:0}.field-counter{align-self:flex-end;color:#64748b;font-size:.68rem;font-weight:600;line-height:1}.field-counter-over{color:#b91c1c}.scene-editor-header{align-items:center;display:flex;justify-content:space-between;gap:.75rem}.scene-editor-header h2{margin:.25rem 0}.node-editor label[for=node-title],.node-editor label[for=node-body]{font-size:1.17em;font-weight:700}.node-editor p{margin:0}.node-editor input,.node-editor textarea,.node-editor select,.node-editor button{font:inherit}.node-editor input,.node-editor textarea,.node-editor select{border:1px solid #cccccc;border-radius:4px;padding:.4rem .5rem}.node-editor textarea{resize:vertical}.node-editor button{align-self:flex-start;background:#f5f5f5;border:1px solid #cccccc;border-radius:4px;cursor:pointer;padding:.4rem .7rem}.node-editor .create-scene-trigger{align-self:center;background:#16a34a;border-color:#15803d;color:#fff}.node-editor .create-scene-trigger:hover{background:#15803d}.node-editor details{margin:0}.edge-list{--exit-scene-col-width: 9.5rem;--exit-delete-col-width: 5.5rem;display:flex;flex-direction:column;gap:.4rem;list-style:none;margin:0;padding:0}.edge-list li{align-items:center;display:grid;gap:.5rem;grid-template-columns:minmax(0,1fr) var(--exit-scene-col-width) var(--exit-delete-col-width)}.edge-list li select,.edge-list li .prompt-field,.add-choice .prompt-field,.node-editor .prompt-field{min-height:2rem;width:100%}.edge-list li .field-with-counter .prompt-field,.add-choice-row .field-with-counter .prompt-field{width:100%}.edge-list li button{align-self:center;min-height:2rem;width:100%}.exits summary{cursor:pointer;font-size:1.17em;font-weight:700}.exits[open]{display:flex;flex-direction:column;gap:.5rem}.inline-error{color:#b00020;font-size:.9rem}.add-choice summary{cursor:pointer;font-size:1.17em;font-weight:700}.add-choice[open]{display:flex;flex-direction:column;gap:.5rem}.add-choice-row{display:grid;gap:.5rem;grid-template-columns:minmax(0,1fr) 9.5rem 5.5rem}.add-choice-row select{min-height:2rem;width:100%}.add-choice-row button{align-self:center;min-height:2rem;width:100%}.diagnostics summary{cursor:pointer;font-size:1.17em;font-weight:700}.unreachable-list{display:flex;flex-direction:column;gap:.25rem;list-style:none;margin:0;padding:0}.unreachable-list button{background:transparent;border:0;color:#1d4ed8;padding:0;text-decoration:underline}.prompt-modal-backdrop{align-items:center;background:#0f172a73;display:flex;inset:0;justify-content:center;padding:1.25rem;position:fixed;z-index:1000}.prompt-modal{background:#fff;border:1px solid #cbd5e1;border-radius:8px;box-shadow:0 18px 45px #0f172a40;display:flex;flex-direction:column;gap:.6rem;max-width:760px;padding:.8rem;width:100%}.prompt-modal p{font-size:.95rem;font-weight:600;margin:0}.prompt-modal-header{align-items:baseline;display:flex;gap:.5rem;justify-content:space-between}.prompt-modal textarea{border:1px solid #94a3b8;border-radius:6px;font:inherit;min-height:16rem;padding:.6rem .7rem;resize:vertical;width:100%}.map-help-backdrop{align-items:center;background:#0f172a7a;display:flex;inset:0;justify-content:center;padding:1rem;position:fixed;z-index:1200}.map-help-modal{background:#fff;border:1px solid #cbd5e1;border-radius:10px;box-shadow:0 20px 50px #0f172a40;display:flex;flex-direction:column;gap:.75rem;height:80vh;overflow:auto;padding:1rem;width:80vw}.map-help-header{align-items:center;display:flex;justify-content:space-between;gap:.75rem}.map-help-header h2{margin:0}.map-help-list{display:flex;flex-direction:column;gap:.5rem;list-style:none;margin:0;padding:0}.map-help-list li{align-items:center;display:flex;gap:.6rem}.map-help-scene{background:#fff;border:2px solid #d1d5db;border-radius:8px;height:2.8rem;min-width:7.2rem}.map-help-scene-selected{border-color:#1d4ed8}.map-help-scene-ancestor{border-color:#7c3aed}.map-help-scene-descendant{border-color:#0f766e}.map-help-scene-neutral{border-color:#64748b}.map-help-scene-faded{border-color:#94a3b8;opacity:.3}.create-scene-backdrop{align-items:center;background:#0f172a7a;display:flex;inset:0;justify-content:center;padding:1rem;position:fixed;z-index:1100}.create-scene-modal{background:#fff;border:1px solid #cbd5e1;border-radius:10px;box-shadow:0 20px 50px #0f172a40;height:80vh;overflow:hidden;width:80vw}.create-scene-layout{display:grid;gap:1rem;grid-template-columns:minmax(0,1fr) minmax(0,1.25fr) minmax(0,1fr);height:100%;padding:1rem}.scene-selector-column{border:1px solid #dbe3ec;border-radius:8px;display:flex;flex-direction:column;gap:.5rem;min-height:0;padding:.75rem}.scene-selector-column h3,.scene-draft-center h3{margin:0}.scene-selector-list{display:flex;flex-direction:column;gap:.4rem;min-height:0;overflow:auto;padding-right:.2rem}.scene-selector-item{align-items:center;display:flex;gap:.5rem}.scene-selector-text{display:flex;flex-direction:column;gap:.1rem}.scene-selector-prompt{color:#475569;font-size:.84rem}.scene-selector-prompt-input{border:1px solid #cbd5e1;border-radius:4px;font:inherit;margin-top:.2rem;padding:.25rem .4rem;width:100%}.scene-selector-text .field-counter{margin-top:.15rem}.scene-draft-center{border:1px solid #dbe3ec;border-radius:8px;display:flex;flex-direction:column;gap:.5rem;min-height:0;padding:.75rem}.scene-draft-center input,.scene-draft-center textarea{border:1px solid #cccccc;border-radius:4px;font:inherit;padding:.4rem .5rem;width:100%}.scene-draft-center textarea{flex:1;min-height:0;resize:none}.create-scene-actions{display:flex;gap:.5rem;justify-content:flex-end}.create-scene-actions .create-scene-confirm{background:#16a34a;border-color:#15803d;color:#fff}@media(max-width:900px){.stories-dashboard{padding:.75rem}.stories-dashboard-header{flex-direction:column}.stories-dashboard-header-actions{justify-content:flex-start;width:100%}.stories-dashboard-row{align-items:flex-start;flex-direction:column}.stories-dashboard-row-actions{width:100%}.graph-content{flex-direction:column}.graph-canvas{min-height:46vh}.react-flow__minimap{display:none}.auth-form{min-width:min(18rem,calc(100vw - 2rem))}.node-editor{border-left:0;border-top:1px solid #d9d9d9;width:auto}}
