:root{--bg-page:#141414;--surface-1:#ffffff0d;--surface-2:#ffffff1a;--surface-sunken:#121212;--border-hairline:#ffffff0d;--border-strong:#ffffff1a;--text-main:#ffffffe6;--text-dim:#fff9;--accent-blue:#3d91ff;--accent-blue-fill:#3d91ff80;--accent-blue-border:#3d91ffe6;--accent-red:#ff3d3d;--accent-green:#3dff43;--radius-sm:10px;--radius-md:14px;--radius-lg:24px;--shadow-card:.3px .5px .7px 0px #00000057, .4px .8px 1px 0px #00000057, 1px 2px 2.5px 0px #00000057;--font-ui:"Figtree", system-ui, "Segoe UI", Roboto, sans-serif;--font-mc:"Minecraft", monospace, sans-serif}.icon-button{background:var(--surface-1);border:1px solid var(--border-hairline);color:var(--text-main);border-radius:var(--radius-sm);cursor:pointer;box-shadow:var(--shadow-card);justify-content:center;align-items:center;padding:5px;display:inline-flex}.icon-button:hover{background:var(--surface-2)}.icon-button svg{width:16px;height:16px}.icon-button--danger:hover{color:var(--accent-red)}.icon-button--plain{box-shadow:none;background:0 0;border:none;padding:2px}.chip-list{flex-direction:column;align-items:stretch;gap:3px;display:flex}.chip{background:var(--surface-1);border:1px solid var(--border-hairline);border-radius:var(--radius-sm);box-shadow:var(--shadow-card);align-items:center;gap:5px;padding:7px;display:flex}.chip input{min-width:0;color:var(--text-main);background:0 0;border:none;flex:1;padding:0;font-family:inherit;font-size:13px}.chip input:focus{outline:none}.chip button{color:var(--text-dim);cursor:pointer;background:0 0;border:none;padding:0;display:inline-flex}.chip button svg{width:16px;height:16px}.add-new{background:var(--surface-1);border:1px solid var(--border-hairline);width:100%;color:var(--text-dim);border-radius:var(--radius-sm);cursor:pointer;box-shadow:var(--shadow-card);align-items:center;gap:3px;padding:7px;font-family:inherit;font-size:13px;display:flex}.add-new:hover{background:var(--surface-2)}.add-new svg{width:16px;height:16px}.comparison-toggle{align-items:center;gap:5px;display:flex}.comparison-toggle button{background:var(--surface-1);border:1px solid var(--border-hairline);color:var(--text-main);border-radius:var(--radius-sm);cursor:pointer;box-shadow:var(--shadow-card);justify-content:center;align-items:center;padding:5px;display:inline-flex}.comparison-toggle button svg{width:16px;height:16px}.comparison-toggle button.comparison-active{background:var(--accent-blue-fill);border-color:var(--accent-blue-border)}:root{--lightningcss-light: ;--lightningcss-dark:initial;color-scheme:dark;font-family:var(--font-ui)}*{box-sizing:border-box}html,body,#root{background:var(--bg-page);color:#eee;min-height:100vh;margin:0}button{font-family:inherit}.load-screen{color:#eee;background:#141414;justify-content:center;align-items:center;height:100vh;display:flex}.load-card{text-align:center;background:#1e1e1e;border:1px solid #444;border-radius:10px;width:420px;padding:28px 32px}.load-card h1{margin-bottom:8px;font-size:1.4em}.load-card p{opacity:.75;margin-bottom:16px;font-size:.9em}.load-input-row{gap:8px;display:flex}.load-input-row input{color:#eee;background:#1c1c1c;border:1px solid #555;border-radius:4px;flex:1;padding:8px}.load-input-row button{color:#fff;cursor:pointer;background:#2563eb;border:none;border-radius:4px;padding:8px 14px}.load-input-row button:disabled{opacity:.5;cursor:not-allowed}.load-error{color:#f88;margin-top:10px;font-size:.85em}.load-example{margin-top:16px}.load-example button{color:#aaa;cursor:pointer;background:0 0;border:1px solid #555;border-radius:4px;padding:5px 10px;font-size:.8em}.mm-field{flex-direction:column;gap:3px;margin-bottom:10px;display:flex}.mm-field-label-row{justify-content:space-between;align-items:center;gap:5px;display:flex}.mm-field-label{color:var(--text-dim);white-space:nowrap;font-size:13px}.mm-field-toolbar{gap:5px;display:flex}.mm-field-toolbar--standalone{justify-content:flex-end}.mm-field-toolbar button{color:var(--text-dim);cursor:pointer;background:0 0;border:none;padding:0;display:inline-flex}.mm-field-toolbar button svg{width:12px;height:12px}.mm-field-box{border-radius:var(--radius-sm);box-shadow:var(--shadow-card);flex-direction:column;display:flex}.mm-field-input{border:1px solid var(--border-hairline);background:var(--surface-1);color:var(--text-main);border-radius:var(--radius-sm) var(--radius-sm) 0 0;resize:vertical;border-bottom:none;padding:7px;font-family:inherit;font-size:13px}.mm-field-input:focus{outline:none}.mm-field-preview{font-family:var(--font-mc);background:var(--surface-2);border:1px solid var(--border-hairline);color:var(--text-main);border-radius:0 0 var(--radius-sm) var(--radius-sm);white-space:pre-wrap;word-break:break-word;min-height:1.4em;padding:7px}.mm-popover{border:1px solid var(--border-hairline);background:var(--surface-2);border-radius:var(--radius-sm);flex-direction:column;gap:8px;max-height:260px;padding:6px;display:flex;overflow-y:auto}.mm-popover-group-title{text-transform:uppercase;letter-spacing:.05em;opacity:.6;margin-bottom:2px;font-size:.7em}.mm-popover-item{text-align:left;width:100%;color:var(--text-main);cursor:pointer;background:0 0;border:none;border-radius:4px;align-items:baseline;gap:8px;padding:3px 6px;font-size:.8em;display:flex}.mm-popover-item:hover{background:var(--surface-1)}.mm-popover-item code{color:#7dd3fc;white-space:nowrap}.list-editor{flex-direction:column;gap:5px;margin-bottom:10px;display:flex}.list-editor-label{color:#fff;font-size:16px;font-weight:600}.list-editor-empty{opacity:.55;font-size:.8em;font-style:italic}.list-editor-item{background:var(--surface-1);border:1px solid var(--border-hairline);border-radius:var(--radius-sm);box-shadow:var(--shadow-card);flex-direction:column;gap:7px;width:100%;padding:7px;display:flex}.list-editor-item-header{color:var(--text-main);justify-content:space-between;align-items:center;font-size:16px;font-weight:600;display:flex}.field-row{flex-direction:column;gap:3px;font-size:13px;display:flex}.field-row>label{color:var(--text-dim);align-items:center;gap:6px;display:flex}.field-row input[type=text],.field-row input[type=number],.field-row select{background:var(--surface-1);color:var(--text-main);border:1px solid var(--border-hairline);border-radius:var(--radius-sm);box-shadow:var(--shadow-card);box-sizing:border-box;width:100%;min-width:0;padding:7px;font-family:inherit;font-size:13px}.field-row input:focus,.field-row select:focus{outline:none}.field-grid-2{grid-template-columns:1fr 1fr;gap:5px;display:grid}.list-editor-add-select{background:var(--surface-1);color:var(--text-dim);border:1px solid var(--border-hairline);border-radius:var(--radius-sm);box-shadow:var(--shadow-card);cursor:pointer;padding:7px;font-family:inherit;font-size:13px}.slot-picker{align-items:center;gap:5px;display:flex}.slot-picker button{background:var(--surface-1);border:1px solid var(--border-hairline);color:#fff;border-radius:var(--radius-sm);width:26px;height:26px;box-shadow:var(--shadow-card);cursor:pointer;justify-content:center;align-items:center;font-family:inherit;font-size:13px;display:inline-flex}.slot-picker button.slot-active{background:var(--accent-blue-fill);border-color:var(--accent-blue-border)}.checkbox-grid{grid-template-columns:1fr 1fr;gap:3px;display:grid}.segmented{border:1px solid var(--border-hairline);border-radius:var(--radius-sm);box-shadow:var(--shadow-card);display:flex;overflow:hidden}.segmented button{background:var(--surface-1);color:var(--text-main);cursor:pointer;border:none;flex:1;padding:7px;font-family:inherit;font-size:13px}.segmented button.segmented-active{background:var(--accent-blue-fill)}.lore-line{flex-direction:row;align-items:flex-start;gap:5px;display:flex}.lore-line .mm-field{flex:1;min-width:0}.npc-select{position:relative}.npc-select-control{background:var(--surface-1);border:1px solid var(--border-hairline);border-radius:var(--radius-sm);box-shadow:var(--shadow-card);align-items:center;gap:3px;padding:7px;display:flex}.npc-select-control input{color:var(--text-main);background:0 0;border:none;flex:1;padding:0;font-family:inherit;font-size:13px}.npc-select-control input:focus{outline:none}.npc-select-thumb{width:16px;height:16px;image-rendering:pixelated;background:var(--surface-2);border-radius:3px;flex-shrink:0}.npc-select-thumb-placeholder{display:inline-block}.npc-select-dropdown{z-index:20;background:var(--surface-sunken);border:1px solid var(--border-strong);border-radius:var(--radius-sm);max-height:220px;box-shadow:var(--shadow-card);margin-top:2px;padding:4px;list-style:none;position:absolute;top:100%;left:0;right:0;overflow-y:auto}.npc-select-option{border-radius:var(--radius-sm);cursor:pointer;color:var(--text-main);align-items:center;gap:8px;padding:5px 6px;font-size:13px;display:flex}.npc-select-option:hover{background:var(--surface-2)}.npc-select-empty{opacity:.5;padding:5px 6px;font-size:.85em;font-style:italic}.npc-select-raw{opacity:.75;font-style:italic}.quest-card{background:var(--surface-1);border:1px solid var(--border-hairline);border-radius:var(--radius-sm);box-shadow:var(--shadow-card);cursor:pointer;flex-direction:column;gap:5px;width:220px;padding:10px;transition:border-color .1s;display:flex;position:relative}.quest-card:hover,.quest-card:focus-visible{border-color:var(--accent-blue-border)}.quest-card--drag-armed{border-color:#4ade80;transform:scale(1.03);box-shadow:0 0 0 2px #4ade8066}.quest-card-pill{border:1px solid var(--border-strong);border-radius:var(--radius-sm);color:var(--text-main);white-space:nowrap;box-shadow:var(--shadow-card);background:#252525;padding:3.5px 7px;font-size:10px;position:absolute;top:-10px;left:50%;transform:translate(-50%)}.quest-card-header{justify-content:space-between;align-items:center;gap:6px;display:flex}.quest-card-name{color:var(--text-main);font-size:16px;font-weight:600}.quest-card-status{color:var(--text-main);align-items:center;gap:3px;display:flex}.quest-card-status svg{width:16px;height:16px}.quest-card-desc{color:var(--text-dim);max-height:3.2em;font-size:13px;overflow:hidden}.quest-card-actions{gap:3px;display:flex}.quest-card-actions button{color:var(--text-dim);cursor:pointer;background:0 0;border:none;padding:0;display:inline-flex}.quest-card-actions button svg{width:16px;height:16px}.quest-card-danger:hover{color:var(--accent-red)}.pool-folder{background:var(--surface-1);border:1px solid var(--border-hairline);border-radius:var(--radius-lg);box-shadow:var(--shadow-card);flex-direction:column;gap:10px;padding:14px;transition:border-color .1s,background .1s;display:flex}.pool-folder--drag-over{background:#202b33;border-color:#7dd3fc}.pool-folder-header{align-items:center;gap:8px;display:flex}.pool-folder-toggle{color:var(--text-main);cursor:pointer;background:0 0;border:none;transition:transform .1s;display:inline-flex;transform:rotate(-90deg)}.pool-folder-toggle--open{transform:rotate(0)}.pool-folder-toggle svg{width:24px;height:24px}.pool-folder-name{color:var(--text-main);flex:1;font-size:18px;font-weight:600}.pool-folder-count{color:var(--text-dim);font-size:13px}.pool-folder-actions{gap:5px;display:flex}.pool-folder-settings{background:var(--surface-sunken);border:1px solid var(--border-strong);border-radius:var(--radius-sm);flex-direction:column;gap:10px;padding:10px;display:flex}.pool-folder-general{flex-direction:column;gap:5px;display:flex}.pool-folder-general-title{color:#fff;font-size:16px;font-weight:600}.pool-folder-general-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;display:grid}.field-checkbox{background:var(--surface-1);border:1px solid var(--border-hairline);border-radius:var(--radius-sm);box-shadow:var(--shadow-card);color:#fff;cursor:pointer;align-items:center;gap:3px;padding:7px;font-size:13px;display:flex}.pool-folder-columns{align-items:flex-start;gap:10px;display:flex}.pool-folder-columns>.list-editor{flex:1;min-width:0}.pool-folder-quests{flex-wrap:wrap;align-items:flex-start;gap:7px;display:flex}.pool-folder-add{width:220px;height:81px;color:var(--text-dim);border-radius:var(--radius-sm);cursor:pointer;background:0 0;border:1px dashed #fff9;justify-content:center;align-items:center;gap:3px;font-family:inherit;font-size:13px;display:flex}.pool-folder-add svg{width:16px;height:16px}.export-overlay{z-index:50;background:#0009;justify-content:center;align-items:center;display:flex;position:fixed;inset:0}.export-panel{border:1px solid var(--border-strong);border-radius:var(--radius-lg);box-shadow:var(--shadow-card);width:420px;color:var(--text-main);font-family:var(--font-ui);background:#1c1c1c;padding:20px}.export-header{color:#fff;justify-content:space-between;margin-bottom:8px;font-size:16px;font-weight:600;display:flex}.export-header button{color:var(--text-dim);cursor:pointer;background:0 0;border:none}.export-hint{opacity:.7;margin-bottom:12px;font-size:.8em}.export-button{background:var(--accent-blue-fill);border:1px solid var(--accent-blue-border);color:#fff;border-radius:var(--radius-sm);cursor:pointer;width:100%;padding:10px;font-family:inherit;font-weight:600}.export-button:disabled{opacity:.6;cursor:not-allowed}.export-error{color:var(--accent-red);margin-top:8px;font-size:.85em}.export-result{background:var(--surface-sunken);border-radius:var(--radius-sm);align-items:center;gap:8px;margin-top:14px;padding:8px;display:flex}.export-result code{overflow-wrap:anywhere;color:#7dd3fc;flex:1;font-size:.85em}.export-result button{background:var(--surface-1);border:1px solid var(--border-hairline);color:var(--text-main);border-radius:var(--radius-sm);cursor:pointer;padding:4px 10px;font-family:inherit}.modal-overlay{z-index:100;background:#0009;justify-content:center;align-items:center;display:flex;position:fixed;inset:0}.modal-panel{border:1px solid var(--border-strong);border-radius:var(--radius-lg);box-shadow:var(--shadow-card);width:420px;max-width:calc(100vw - 32px);color:var(--text-main);font-family:var(--font-ui);background:#1c1c1c;padding:20px}.modal-header{color:#fff;justify-content:space-between;align-items:center;margin-bottom:8px;font-size:16px;font-weight:600;display:flex}.modal-header button{color:var(--text-dim);cursor:pointer;background:0 0;border:none;font-size:1em}.modal-body{color:var(--text-main);font-size:.9em}.modal-actions{justify-content:flex-end;gap:8px;margin-top:16px;display:flex}.modal-actions button{background:var(--surface-1);border:1px solid var(--border-hairline);color:var(--text-main);border-radius:var(--radius-sm);cursor:pointer;box-shadow:var(--shadow-card);padding:8px 14px;font-family:inherit}.modal-actions .modal-danger{background:var(--accent-red);border-color:var(--accent-red);color:#fff}.vp-pill{background:var(--surface-1);border:1px solid var(--border-hairline);border-radius:var(--radius-md);box-shadow:var(--shadow-card);cursor:pointer;align-items:center;gap:3px;padding:3px 6px;display:inline-flex;position:relative}.vp-pill select{appearance:none;color:var(--text-dim);cursor:pointer;background:0 0;border:none;padding-right:2px;font-family:inherit;font-size:13px}.vp-pill select:focus{outline:none}.vp-pill svg{width:8px;height:8px;color:var(--text-dim);pointer-events:none}.dashboard{background:var(--bg-page);min-height:100vh;color:var(--text-main);font-family:var(--font-ui);flex-direction:column;gap:10px;padding:10px;display:flex}.dashboard-topbar{background:var(--surface-1);border:1px solid var(--border-hairline);border-radius:var(--radius-lg);box-shadow:var(--shadow-card);justify-content:space-between;align-items:flex-end;gap:10px;padding:10px 10px 10px 15px;display:flex}.dashboard-topbar-left,.dashboard-topbar-right{align-items:center;gap:10px;display:flex}.dashboard-topbar h1{color:#fff;white-space:nowrap;margin:0;font-size:20px;font-weight:600}.pill-button{background:var(--surface-1);border:1px solid var(--border-hairline);color:var(--text-main);border-radius:var(--radius-md);cursor:pointer;box-shadow:var(--shadow-card);align-items:center;gap:3px;padding:5px 10px;font-family:inherit;font-size:13px;display:inline-flex}.pill-button:hover{background:var(--surface-2)}.pill-button svg{width:18px;height:18px}.dashboard-export{background:var(--accent-blue-fill)!important}.dashboard-body{flex-direction:column;gap:10px;display:flex}.dashboard-ungrouped-section{flex-direction:column;gap:10px;padding:0 14px;display:flex}.dashboard-ungrouped-title{color:#fff;font-size:18px;font-weight:600}.dashboard-ungrouped{border-radius:var(--radius-sm);flex-wrap:wrap;gap:7px;min-height:40px;transition:background .1s;display:flex}.dashboard-ungrouped--drag-over{background:#1c2a30;outline:1px dashed #7dd3fc}.dashboard-empty{opacity:.5;font-size:.85em;font-style:italic}.dialog-builder{flex-direction:column;gap:10px;display:flex}.dialog-skippable{opacity:.85;align-items:center;gap:6px;font-size:.85em;display:flex}.dialog-line{background:#232323;border-left:3px solid #666;border-radius:6px;padding:8px}.dialog-line-npc{border-left-color:#7dd3fc}.dialog-line-player{border-left-color:#86efac;margin-left:16px}.dialog-line-nosender{opacity:.9;border-left-style:dashed;border-left-color:#999}.dialog-line-header{align-items:center;gap:6px;margin-bottom:4px;display:flex}.dialog-line-header select,.dialog-line-header input[type=number],.dialog-line-header input[type=text]{color:#eee;background:#1c1c1c;border:1px solid #555;border-radius:4px;padding:2px 4px;font-size:.8em}.dialog-line-header input[type=number]{width:56px}.dialog-line-sound{width:140px}.dialog-line-actions{gap:2px;margin-left:auto;display:flex}.dialog-line-actions button{color:#ccc;cursor:pointer;background:0 0;border:1px solid #555;border-radius:4px;padding:1px 6px;font-size:.75em}.dialog-add-row{gap:8px;display:flex}.dialog-add-row button{color:#ddd;cursor:pointer;background:#2a2a2a;border:1px solid #555;border-radius:4px;padding:4px 10px;font-size:.85em}.options-panel{background:#1a1a1a;border-right:1px solid #444;flex-direction:column;flex-shrink:0;gap:16px;width:340px;padding:12px;display:flex;overflow-y:auto}.options-section{flex-direction:column;gap:6px;display:flex}.options-section-title{text-transform:uppercase;letter-spacing:.06em;opacity:.6;border-bottom:1px solid #333;padding-bottom:4px;font-size:.75em}.options-checkbox-grid{grid-template-columns:1fr 1fr;gap:4px;font-size:.85em;display:grid}.options-checkbox-grid label{align-items:center;gap:4px;display:flex}.react-flow{direction:ltr}.react-flow__container{width:100%;height:100%;position:absolute;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:1px;fill:none}.react-flow__edge{pointer-events:visibleStroke;cursor:pointer}.react-flow__edge.animated path{stroke-dasharray:5;animation:.5s linear infinite dashdraw}.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: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;user-select:none}.react-flow__connection{pointer-events:none}.react-flow__connection .animated{stroke-dasharray:5;animation:.5s linear infinite dashdraw}.react-flow__connectionline{z-index:1001}.react-flow__nodes{pointer-events:none;transform-origin:0 0}.react-flow__node{-webkit-user-select:none;user-select:none;pointer-events:all;transform-origin:0 0;box-sizing:border-box;cursor:-webkit-grab;cursor:grab;position:absolute}.react-flow__node.dragging{cursor:-webkit-grabbing;cursor:grabbing}.react-flow__nodesselection{z-index:3;transform-origin:0 0;pointer-events:none}.react-flow__nodesselection-rect{pointer-events:all;cursor:-webkit-grab;cursor:grab;position:absolute}.react-flow__handle{pointer-events:none;background:#1a192b;border:1px solid #fff;border-radius:100%;width:6px;min-width:5px;height:6px;min-height:5px;position:absolute}.react-flow__handle.connectionindicator{pointer-events:all;cursor:crosshair}.react-flow__handle-bottom{top:auto;bottom:-4px;left:50%;transform:translate(-50%)}.react-flow__handle-top{top:-4px;left:50%;transform:translate(-50%)}.react-flow__handle-left{top:50%;left:-4px;transform:translateY(-50%)}.react-flow__handle-right{top:50%;right:-4px;transform:translateY(-50%)}.react-flow__edgeupdater{cursor:move;pointer-events:all}.react-flow__panel{z-index:5;margin:15px;position:absolute}.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{background:#ffffff80;margin:0;padding:2px 3px;font-size:10px}.react-flow__attribution a{color:#999;text-decoration:none}@keyframes dashdraw{0%{stroke-dashoffset:10px}}.react-flow__edgelabel-renderer{pointer-events:none;-webkit-user-select:none;user-select:none;width:100%;height:100%;position:absolute}.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{color:#222;text-align:center;background-color:#fff;border:1px solid #1a192b;border-radius:3px;width:150px;padding:10px;font-size:12px}.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 #0059dccc}.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{box-sizing:content-box;cursor:pointer;-webkit-user-select:none;user-select:none;background:#fefefe;border:none;border-bottom:1px solid #eee;justify-content:center;align-items:center;width:16px;height:16px;padding:5px;display:flex}.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{background-color:#3367d9;border:1px solid #fff;border-radius:1px;width:4px;height:4px;transform:translate(-50%,-50%)}.react-flow__resize-control.handle.left{top:50%;left:0}.react-flow__resize-control.handle.right{top:50%;left:100%}.react-flow__resize-control.handle.top{top:0;left:50%}.react-flow__resize-control.handle.bottom{top:100%;left:50%}.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:0 solid #3367d9}.react-flow__resize-control.line.left,.react-flow__resize-control.line.right{width:1px;height:100%;top:0;transform:translate(-50%)}.react-flow__resize-control.line.left{border-left-width:1px;left:0}.react-flow__resize-control.line.right{border-right-width:1px;left:100%}.react-flow__resize-control.line.top,.react-flow__resize-control.line.bottom{width:100%;height:1px;left:0;transform:translateY(-50%)}.react-flow__resize-control.line.top{border-top-width:1px;top:0}.react-flow__resize-control.line.bottom{border-bottom-width:1px;top:100%}.graph-canvas{background:#141414;flex:1;position:relative}.graph-canvas-toolbar{z-index:5;gap:8px;display:flex;position:absolute;top:8px;left:8px}.graph-canvas-toolbar button{color:#ddd;cursor:pointer;background:#2a2a2a;border:1px solid #555;border-radius:4px;padding:4px 10px;font-size:.85em}.node{color:#eee;box-sizing:border-box;background:#232323;border:1px solid #555;border-radius:8px;width:200px;font-size:.8em}.node-branch-header{background:#1f2937;border-color:#3b82f6;padding:8px}.node-branch-header-title{margin-bottom:6px;font-weight:700}.node-branch-header-actions{flex-wrap:wrap;gap:4px;display:flex}.node-branch-header-actions button{color:#ddd;cursor:pointer;background:#2a2a2a;border:1px solid #555;border-radius:4px;padding:2px 6px;font-size:.85em}.node-danger{color:#f88!important}.node-selected{border-width:2px;box-shadow:0 0 0 2px #facc1559;border-color:#facc15!important}.node-stage{text-align:center;cursor:pointer;padding:8px}.node-stage:hover{border-color:#7dd3fc}.node-stage-icon{font-size:1.4em}.node-stage-label{margin-top:2px;font-weight:600}.node-stage-id{opacity:.5;font-size:.75em}.node-ending{text-align:center;border-style:dashed;border-color:#f0a;padding:8px}.node-ending-race{color:#f0a;text-transform:uppercase;letter-spacing:.03em;margin-bottom:4px;font-size:.7em}.node-ending-link{color:#eee;background:#1c1c1c;border:1px solid #555;border-radius:4px;width:100%;margin-top:6px;font-size:.85em}.stage-editor-panel{background:#1a1a1a;border-left:1px solid #444;flex-direction:column;flex-shrink:0;gap:10px;width:360px;padding:12px;display:flex;overflow-y:auto}.stage-editor-header{justify-content:space-between;align-items:center;font-weight:700;display:flex}.stage-editor-header button{color:#ccc;cursor:pointer;background:0 0;border:none;font-size:1.1em}.stage-form{flex-direction:column;gap:8px;display:flex}.stage-form-section-title{text-transform:uppercase;letter-spacing:.05em;opacity:.6;margin-top:6px;font-size:.8em}.stage-form-hint{opacity:.65;font-size:.75em;font-style:italic}.stage-form-error{color:#f88;font-size:.75em}.stage-form-json{color:#ddd;background:#111;border:1px solid #555;border-radius:4px;width:100%;padding:6px;font-family:monospace;font-size:.8em}.field-grid-3{grid-template-columns:1fr 1fr 1fr;gap:6px;display:grid}.stage-editor-universal{border-top:1px solid #444;flex-direction:column;gap:4px;padding-top:8px;display:flex}.stage-editor-delete{color:#f88;cursor:pointer;background:#3a1e1e;border:1px solid #663;border-radius:4px;margin-top:auto;padding:6px}.quest-editor{flex-direction:column;height:100vh;display:flex}.quest-editor-topbar{background:#202020;border-bottom:1px solid #444;align-items:center;gap:12px;padding:8px 12px;display:flex}.quest-editor-topbar button{color:#ddd;cursor:pointer;background:#2a2a2a;border:1px solid #555;border-radius:4px;padding:4px 10px}.quest-editor-title{flex:1;font-weight:700}.quest-editor-body{flex:1;min-height:0;display:flex}.version-picker{opacity:.85;align-items:center;gap:4px;font-size:.8em;display:flex}.version-picker select{color:#eee;background:#1c1c1c;border:1px solid #555;border-radius:4px;padding:2px 4px}
