.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.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))}.cloud-login-trigger,.cloud-command{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:32px;padding:0 9px;border:1px solid var(--line-strong);border-radius:4px;background:var(--surface);color:var(--text);font:inherit;font-size:12px;cursor:pointer;white-space:nowrap}.cloud-save-status{display:inline-flex;align-items:center;gap:5px}.cloud-save-status.has-error{color:#d99136}.cloud-status-action{border:0;background:transparent;color:var(--cyan);cursor:pointer;padding:0 4px;font-size:11px}.cloud-dialog{width:min(440px,calc(100vw - 24px));max-height:calc(100dvh - 32px);padding:0;border:1px solid var(--line-strong);border-radius:8px;background:var(--surface);color:var(--text);box-shadow:0 16px 60px #0005;font-size:12px}.cloud-dialog::backdrop{background:#0006}.cloud-dialog--wide{width:min(740px,calc(100vw - 24px))}.cloud-dialog>header{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 16px;border-bottom:1px solid var(--line)}.cloud-dialog h2{margin:0;font-size:15px}.cloud-dialog button:disabled{opacity:.5;cursor:wait}.cloud-login-form,.cloud-share-content{padding:20px}.cloud-login-form>label{display:flex;flex-direction:column;gap:8px;margin-bottom:16px;font-weight:600}.cloud-dialog input:not([type=checkbox]){min-width:0;height:36px;padding:7px 10px;border:1px solid var(--line-strong);border-radius:4px;background:var(--surface-raised);color:var(--text);font:inherit}.cloud-form-footer,.cloud-library-footer{display:flex;align-items:center;justify-content:space-between;gap:12px;color:var(--muted)}.cloud-error{color:#e86b57;overflow-wrap:anywhere;line-height:1.6}.cloud-library-toolbar{display:flex;gap:8px;align-items:center;padding:14px 16px}.cloud-library-toolbar>label{min-width:0;flex:1;display:flex;gap:8px;align-items:center;height:36px;border:1px solid var(--line-strong);border-radius:4px;padding:0 10px;background:var(--surface-raised)}.cloud-library-toolbar>label>svg{flex:0 0 16px;color:var(--muted)}.cloud-library-toolbar>label:focus-within{border-color:var(--cyan);outline:1px solid var(--cyan);outline-offset:1px}.cloud-dialog .cloud-library-toolbar>label input:not([type=checkbox]){flex:1;width:0;min-width:0;height:34px;border:0;border-radius:0;outline:0;background:transparent;padding:0;box-shadow:none}.cloud-library-list{max-height:min(440px,55dvh);overflow:auto}.cloud-list-columns,.cloud-document-row{display:grid;grid-template-columns:minmax(0,1fr) 90px 125px;align-items:center;gap:12px;padding:12px 18px}.cloud-list-columns{font-size:11px;color:var(--muted);border-block:1px solid var(--line);background:var(--surface-raised)}.cloud-document-row{width:100%;text-align:left;border:0;border-bottom:1px solid var(--line);border-radius:0;background:transparent;color:var(--text);font:inherit;cursor:pointer}.cloud-document-row:hover,.cloud-document-row.is-current{background:var(--surface-raised)}.cloud-document-entry{display:grid;grid-template-columns:minmax(0,1fr) 40px;align-items:center;border-bottom:1px solid var(--line)}.cloud-document-entry .cloud-document-row{border-bottom:0}.cloud-list-columns{padding-right:58px}.cloud-delete-trigger{color:var(--muted)}.cloud-delete-trigger:hover{color:#e86b57}.cloud-delete-form{padding:20px}.cloud-delete-form>p{margin:0 0 16px;color:var(--muted);line-height:1.6}.cloud-delete-form>label{display:flex;flex-direction:column;gap:10px}.cloud-delete-form strong{overflow-wrap:anywhere;font-size:14px;white-space:pre-wrap}.cloud-delete-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:20px}.cloud-delete-confirm{display:inline-flex;align-items:center;gap:6px;min-height:32px;padding:0 10px;border:1px solid #c44434;border-radius:4px;background:#c44434;color:#fff;font:inherit;cursor:pointer}.cloud-document-row>span{display:flex;align-items:center;gap:8px;min-width:0}.cloud-document-row strong{overflow:hidden;white-space:nowrap;text-overflow:ellipsis;font-weight:500}.cloud-document-row small,.cloud-document-row time{color:var(--muted);font-size:11px;white-space:nowrap}.cloud-library-footer{padding:12px 16px;border-top:1px solid var(--line)}.cloud-library-error{padding:12px 16px;display:flex;gap:8px;flex-wrap:wrap;color:#e86b57;border-bottom:1px solid var(--line)}.cloud-library-error>span{width:100%;line-height:1.5}.cloud-library-error button{padding:5px 8px;color:var(--text);border:1px solid var(--line-strong);border-radius:4px;background:var(--surface-raised);cursor:pointer}.cloud-empty{padding:48px 16px;text-align:center;color:var(--muted)}.cloud-share-title{display:block;font-size:14px;overflow-wrap:anywhere;margin-bottom:20px}.cloud-access-row{display:flex;align-items:center;justify-content:space-between;gap:12px}.cloud-access-row>span{display:flex;align-items:center;gap:8px}.cloud-toggle{display:inline-flex;position:relative;width:34px;height:20px;flex:0 0 34px}.cloud-toggle input{position:absolute;opacity:0;width:100%;height:100%;margin:0;cursor:pointer;z-index:1}.cloud-toggle i{width:34px;height:20px;background:var(--line-strong);border-radius:12px}.cloud-toggle i:after{content:"";display:block;width:14px;height:14px;margin:3px;border-radius:50%;background:#fff;transition:transform .15s}.cloud-toggle input:checked+i{background:var(--cyan)}.cloud-toggle input:checked+i:after{transform:translate(14px)}.cloud-toggle input:focus-visible+i{outline:2px solid var(--cyan);outline-offset:3px}.cloud-share-link{display:flex;gap:6px;margin-top:20px}.cloud-share-link input{flex:1;width:0}.cloud-copy-status{margin-top:10px;color:var(--muted)}@media(max-width:700px){.cloud-list-columns,.cloud-document-row{grid-template-columns:minmax(0,1fr) 62px}.cloud-list-columns>span:last-child,.cloud-document-row time{display:none}.cloud-library-toolbar{flex-wrap:wrap}.cloud-library-toolbar>label{flex-basis:calc(100% - 50px)}.statusbar-count{display:none}}:root{color-scheme:dark;font-family:Inter,ui-sans-serif,-apple-system,BlinkMacSystemFont,Segoe UI,PingFang SC,Microsoft YaHei,sans-serif;background:#111418;color:#f3f5f7;font-synthesis:none;text-rendering:optimizeLegibility;--bg: #111418;--surface: #1a1f25;--surface-raised: #22282f;--surface-hover: #2a3139;--line: #303740;--line-strong: #424b56;--muted: #8e99a7;--text: #f4f6f8;--cyan: #67d8ef;--green: #6fd5a7;--yellow: #e2c66e;--orange: #f3a861;--violet: #a993e8;--node-fill: #30363d;--symbol-ink: #eef2f5}:root[data-theme=light]{color-scheme:light;background:#eef0f3;color:#262b32;--bg: #eef0f3;--surface: #ffffff;--surface-raised: #ffffff;--surface-hover: #f3f5f7;--line: #e3e6eb;--line-strong: #ccd2db;--muted: #78828f;--text: #262b32;--cyan: #ff5738;--green: #24a576;--yellow: #b99526;--orange: #e38333;--violet: #8d70c6;--node-fill: #ffffff;--symbol-ink: #39414b}*{box-sizing:border-box}html,body,#root{width:100%;height:100%}body{margin:0;min-width:320px;min-height:100vh;overflow:hidden;background:var(--bg);-webkit-font-smoothing:antialiased}button,input,textarea{font:inherit}button{color:inherit}button:focus-visible,input:focus-visible,textarea:focus-visible{outline:2px solid var(--cyan);outline-offset:2px}.app-shell{height:100dvh;min-height:560px;display:grid;grid-template-rows:auto minmax(0,1fr) 32px;background:var(--bg)}.topbar{min-height:58px;display:grid;grid-template-columns:auto minmax(100px,1fr) auto;align-items:center;gap:18px;padding:0 14px;border-bottom:1px solid var(--line);background:#171b20;position:relative;z-index:20}.brand-lockup,.document-title-wrap,.topbar-actions,.action-group,.brand-mark,.save-state,.text-button,.primary-button,.palette-footer,.tree-row,.selection-chip,.danger-button,.example-button,.toast{display:flex;align-items:center}.brand-lockup{gap:9px;font-size:15px;font-weight:750}.brand-mark{width:32px;height:32px;justify-content:center;color:#111418;background:var(--cyan);border-radius:7px}.document-title-wrap{min-width:0;justify-content:center;gap:10px}.document-title{width:min(280px,44vw);min-width:0;border:1px solid transparent;border-radius:5px;padding:6px 8px;background:transparent;color:var(--text);text-align:center;font-size:14px;font-weight:650}.document-title:hover,.document-title:focus{border-color:var(--line-strong);background:var(--surface)}.save-state{gap:6px;color:var(--muted);font-size:11px;white-space:nowrap}.save-state span,.status-dot{width:7px;height:7px;border-radius:50%;background:var(--green);box-shadow:0 0 0 3px #6fd5a71f}.topbar-actions{justify-content:flex-end;gap:8px}.topbar-file-actions{display:flex;align-items:center;gap:6px;min-width:0}.topbar-file-actions[hidden],.topbar-actions[hidden]{display:none}.topbar-file-actions .text-button{display:flex}.topbar-file-actions .export-menu{left:0;right:auto}.action-group{gap:2px;padding:2px;border:1px solid var(--line);border-radius:6px;background:#13171b}.icon-button{width:34px;height:34px;border:0;border-radius:5px;display:inline-grid;place-items:center;color:#cbd2dc;background:transparent;cursor:pointer}.icon-button:hover:not(:disabled){background:var(--surface-hover);color:#fff}.icon-button:disabled{color:#555e69;cursor:default}.text-button,.primary-button{height:36px;gap:7px;border-radius:6px;padding:0 12px;font-size:12px;font-weight:700;cursor:pointer}.text-button{border:1px solid var(--line);background:var(--surface)}.text-button:hover{background:var(--surface-hover)}.primary-button{border:1px solid #89e7f8;color:#0d181b;background:var(--cyan)}.primary-button:hover{background:#8ee6f6}.export-wrap{position:relative}.export-menu{width:224px;position:absolute;top:calc(100% + 8px);right:0;padding:6px;border:1px solid var(--line-strong);border-radius:7px;background:#20262d;box-shadow:0 18px 44px #0000006b}.export-menu button{width:100%;display:grid;grid-template-columns:20px 1fr;gap:10px;align-items:start;padding:10px;border:0;border-radius:5px;color:#dce2e8;text-align:left;background:transparent;cursor:pointer}.export-menu button:hover{background:var(--surface-hover)}.export-menu span,.export-menu strong,.export-menu small{display:block}.export-menu strong{font-size:12px}.export-menu small{margin-top:3px;color:var(--muted);font-size:10px}.workspace{min-height:0;display:grid;overflow:hidden}.center-workspace{grid-column:2;grid-row:1;min-width:0;min-height:0;display:grid;position:relative}.side-dock--left{grid-column:1;grid-row:1}.side-dock--right{grid-column:3;grid-row:1}.side-dock,.bottom-dock{min-width:0;min-height:0;position:relative}.bottom-dock{width:100%;z-index:12}.bottom-dock>.panel-surface{height:100%}.side-dock[hidden],.bottom-dock[hidden]{display:none}.side-dock>.panel-surface{height:100%}.dock-panel-heading{min-height:36px;display:flex;align-items:center;justify-content:space-between;flex-shrink:0;margin-bottom:7px}.dock-panel-heading h2{margin:0;display:flex;align-items:center;gap:8px;color:var(--text);font-size:12px;font-weight:650}.dock-panel-heading .icon-button{width:26px;height:26px;color:var(--muted)}.outline-panel{height:100%;display:flex;flex-direction:column;border-right:1px solid var(--line);padding:8px 12px 12px;overflow:hidden}.outline-panel .tree-list{min-height:0}.outline-panel .tree-item{max-width:100%}.outline-panel .tree-row{height:27px}.panel-resizer{position:absolute;touch-action:none;-webkit-user-select:none;user-select:none;z-index:16}.panel-resizer--left{top:0;bottom:0;right:-3px;width:7px;cursor:col-resize}.panel-resizer--right{top:0;bottom:0;left:-3px;width:7px;cursor:col-resize}.panel-resizer--bottom{top:-3px;left:0;right:0;height:7px;cursor:row-resize}.panel-resizer:after{content:"";position:absolute;background:transparent;transition:background .12s}.panel-resizer--left:after,.panel-resizer--right:after{left:3px;top:0;bottom:0;width:2px}.panel-resizer--bottom:after{top:3px;left:0;right:0;height:2px}.panel-resizer:hover:after,.panel-resizer:focus-visible:after,.panel-resizer.is-resizing:after{background:var(--cyan)}.panel-statusbar{min-width:0;display:flex;align-items:center;justify-content:space-between;padding:0 10px;border-top:1px solid var(--line);background:var(--surface);position:relative;z-index:20}.panel-statusbar__summary{display:flex;align-items:center;gap:7px;font-size:10px;color:var(--muted)}.statusbar-count{margin-left:10px}.panel-switches{display:flex;align-items:center;gap:3px}.panel-switches .icon-button{width:28px;height:26px}.panel-switches .toolbar-divider{height:17px}.app-shell.is-presenting{grid-template-rows:minmax(0,1fr);min-height:0}.app-shell.is-presenting>.topbar,.app-shell.is-presenting>.panel-statusbar,.app-shell.is-presenting .canvas-mode-toolbar,.app-shell.is-presenting .mobile-canvas-tools,.app-shell.is-presenting .floating-toolbar,.app-shell.is-presenting .react-flow__minimap{display:none}.app-shell.is-presenting .react-flow__controls{bottom:0}.app-shell.is-presenting .region-divider,.app-shell.is-presenting .edge-label-anchor,.app-shell.is-presenting .routed-edge-label,.app-shell.is-presenting .node-handle,.app-shell.is-presenting .node-free-handle,.app-shell.is-presenting .node-perimeter-handle{pointer-events:none}.presentation-controls{position:fixed;top:12px;right:12px;z-index:30;display:flex;align-items:center;gap:4px;padding:4px;border:1px solid var(--line-strong);border-radius:6px;background:var(--surface);box-shadow:0 2px 12px #00000014}.presentation-controls .text-button{display:flex;min-height:32px;border:0;background:transparent}.topbar-actions .view-actions{display:flex}.ai-loading{position:fixed;top:70px;right:12px;z-index:24;display:flex;align-items:center;gap:8px;padding:12px 16px;background:var(--surface);border:1px solid var(--line);border-radius:4px;color:var(--text);font-size:12px}.screenshot-spinner{animation:screenshot-spin 1s linear infinite}@keyframes screenshot-spin{to{transform:rotate(360deg)}}@media(prefers-reduced-motion:reduce){.screenshot-spinner{animation:none}}.panel-surface{min-width:0;min-height:0;background:#171b20;position:relative;z-index:6}.palette-panel{display:flex;flex-direction:column;padding:4px 12px 10px;border-top:1px solid var(--line);overflow:hidden}.inspector-panel{padding:18px 16px;border-left:1px solid var(--line);overflow-y:auto;height:100%}.panel-heading{min-height:43px;display:flex;justify-content:space-between;align-items:flex-start;margin-bottom:18px}.panel-heading h2{margin:3px 0 0;font-size:15px;line-height:1.25;letter-spacing:0}.eyebrow{color:#74808e;font-size:9px;font-weight:800;text-transform:uppercase}.muted-icon{color:#697482}.palette-list{display:flex;gap:16px;min-height:0;align-items:flex-start;overflow:auto;flex:1;padding:0 3px 4px 0;scrollbar-width:thin}.palette-category-group{flex:0 0 258px}.palette-category-items{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}.palette-category{margin:0;color:var(--muted);font-size:10px;font-weight:500;line-height:12px;padding:0 2px 4px}.palette-heading{gap:12px;margin-bottom:6px}.palette-heading h2{flex-shrink:0}.palette-heading>.search-field{flex:0 1 220px;margin-right:auto}.palette-heading>.icon-button{flex-shrink:0}.palette-item{height:40px;width:100%;display:grid;grid-template-columns:24px minmax(0,1fr);gap:8px;align-items:center;padding:0 8px;border:1px solid var(--line);border-radius:6px;color:#dce1e7;background:#1c2127;text-align:left;font-size:12px;font-weight:650;cursor:grab}.palette-item:hover{border-color:#515c69;background:#242a31}.palette-item.is-active{border-color:var(--cyan);background:#27363d}.palette-item:active{cursor:grabbing}.palette-item__icon{width:24px;height:24px;display:grid;place-items:center;border-radius:5px;background:#13171b}.accent-cyan{color:var(--cyan)}.accent-green{color:var(--green)}.accent-orange{color:var(--orange)}.accent-violet{color:var(--violet)}.accent-yellow{color:var(--yellow)}.palette-item__label{min-width:0;line-height:16px;overflow-wrap:anywhere}.palette-label-part{white-space:nowrap}.search-field{display:flex;align-items:center;gap:7px;min-width:0;height:34px;padding:0 8px;border:1px solid var(--line-strong);border-radius:5px;background:var(--surface-raised);color:var(--muted);flex-shrink:0}.search-field:focus-within{border-color:var(--cyan)}.search-field>svg{flex-shrink:0}.search-field input{width:100%;min-width:0;border:0;outline:none;background:transparent;color:var(--text);font-size:12px}.search-field input::placeholder{color:var(--muted)}.search-field input:focus-visible{outline:none}.search-field .icon-button{width:22px;height:22px;flex-shrink:0}.search-empty{grid-column:1 / -1;padding:20px 8px;text-align:center;font-size:12px;color:var(--muted)}.canvas-search{position:absolute;top:62px;right:12px;width:min(320px,calc(100% - 24px));max-height:calc(100% - 80px);display:flex;flex-direction:column;padding:10px;border:1px solid var(--line-strong);border-radius:6px;background:var(--surface);box-shadow:0 6px 20px #0002;z-index:18}.canvas-search-heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:8px}.canvas-search-heading h2{margin:0;font-size:12px}.canvas-search-heading .icon-button{width:24px;height:24px}.search-count{padding:9px 2px 6px;color:var(--muted);font-size:11px}.search-results{overflow-y:auto;min-height:0;max-height:260px}.search-result{width:100%;display:flex;gap:9px;align-items:center;border:0;border-radius:4px;padding:9px 8px;text-align:left;color:var(--text);background:transparent;cursor:pointer}.search-result:hover,.search-result.is-active{background:var(--surface-hover)}.search-result.is-active .search-result-icon{color:var(--cyan)}.search-result-icon{display:grid;place-items:center;width:24px;flex-shrink:0;color:var(--muted)}.search-result-text{min-width:0;display:grid;gap:4px}.search-result-text strong,.search-result-text small{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.search-result-text strong{font-size:12px;font-weight:600}.search-result-text small{font-size:10px;color:var(--muted)}.panel-divider{height:1px;margin:20px 0 16px;background:var(--line)}.outline-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:9px}.count-badge{padding:2px 6px;border-radius:4px;color:#8d98a5;background:#252b32;font-size:9px}.tree-list{min-height:80px;flex:1;display:grid;align-content:start;gap:2px;overflow-y:auto;scrollbar-width:thin}.tree-row{min-width:0;height:30px;display:grid;grid-template-columns:18px minmax(0,1fr);align-items:center;border-radius:4px;color:#aeb7c2;font-size:11px}.tree-row:hover{background:#20262d}.tree-row.is-selected{color:#e8faff;background:#67d8ef1c}.tree-toggle,.tree-item{min-width:0;height:28px;border:0;color:inherit;background:transparent;cursor:pointer}.tree-toggle{display:grid;place-items:center;padding:0;color:#6f7a87}.tree-toggle-placeholder{width:18px;height:28px}.tree-item{display:flex;align-items:center;gap:7px;padding:0 6px 0 1px;text-align:left}.tree-item svg{flex:0 0 auto;color:#82909e}.tree-row.is-selected .tree-item svg{color:var(--cyan)}.tree-item span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.tree-empty{padding:14px 4px;color:#626d79;font-size:10px;text-align:center}.palette-footer{gap:9px;margin-top:auto;padding:12px 6px 2px;color:#76818f;font-size:10px}.canvas-wrap{min-width:0;min-height:0;position:relative;overflow:hidden;background:#14181d}.react-flow__pane{cursor:default}.mode-hand .react-flow__pane,.mode-hand .react-flow__node{cursor:grab}.mode-create .react-flow__pane{cursor:crosshair}.mode-hand .react-flow__pane.dragging{cursor:grabbing}.mode-hand .node-handle{pointer-events:none}.react-flow__pane.dragging{cursor:grabbing}.react-flow__edge-path{stroke:#c9d1dc;stroke-width:1.7}.react-flow__edge.selected .react-flow__edge-path{stroke:var(--cyan);stroke-width:2.4}.react-flow__edge.selected .react-flow__edgeupdater{fill:transparent;stroke:transparent;cursor:grab}.react-flow__edge.selected .react-flow__edgeupdater:active{cursor:grabbing}.react-flow__edge-textbg{fill:#252a31}.edge-label-anchor{position:absolute;top:0;left:0;z-index:4;pointer-events:all}.react-flow__edgelabel-renderer{z-index:1001}.edge-label-anchor.is-selected{z-index:10}.routed-edge-label{max-width:200px;padding:3px 6px;border:1px solid rgba(71,80,91,.72);border-radius:4px;color:#eef2f7;background:#252a31f5;box-shadow:0 2px 7px #0000003d;font-size:12px;font-weight:650;line-height:1.2;white-space:normal;overflow-wrap:anywhere;display:block;cursor:pointer;pointer-events:all}.routed-edge-label:hover{border-color:var(--cyan)}.routed-edge-label .transition-parts{width:fit-content;max-width:100%;margin-inline:auto}.edge-label-resize-handle{position:absolute;top:50%;width:14px;height:28px;padding:0;border:0;background:none;cursor:ew-resize;touch-action:none;transform-origin:center}.edge-label-resize-handle:after{content:"";display:block;width:4px;height:16px;margin:auto;border:1px solid var(--cyan);border-radius:2px;background:var(--surface)}.edge-label-resize-handle--left{left:0}.edge-label-resize-handle--right{left:100%}.label-default-settings{margin-top:20px;padding-top:16px;border-top:1px solid var(--line)}.edge-toolbar{position:absolute;bottom:calc(100% + 8px);left:50%;transform:translate(-50%);display:flex;align-items:center;gap:2px;white-space:nowrap;padding:3px;border:1px solid var(--line-strong);border-radius:6px;background:var(--surface-raised);box-shadow:0 6px 20px #00000059}.edge-label-input{width:180px;padding:5px 7px;border:1px solid var(--cyan);border-radius:4px;color:var(--text);background:var(--surface);font-size:12px}.routed-edge-label.is-selected{border-color:#67d8efb8;color:#d9f8ff}.routed-edge-label.is-inline{border-radius:0;border-color:transparent;background:#292d33;box-shadow:none}.routed-edge-label.is-inline.is-selected,.routed-edge-label.is-inline:hover{border-color:var(--cyan)}.edge-label-input.is-inline{border-radius:0}.react-flow__controls.bottom{bottom:104px}.react-flow__controls{overflow:hidden;border:1px solid var(--line-strong);border-radius:6px;box-shadow:none}.react-flow__controls-button{width:30px;height:30px;border-color:var(--line)!important;color:#cbd3dd;background:#232930}.react-flow__controls-button:hover{background:#303740}.react-flow__controls-button svg{fill:currentColor}.react-flow__minimap{overflow:hidden;border:1px solid var(--line-strong);border-radius:6px;background:#1a1f25}.react-flow__minimap-svg{display:block;width:100%;height:100%}.state-node{width:100%;height:100%;min-height:10px;display:flex;flex-direction:column;justify-content:center;padding:10px 13px;border:1.5px solid #b9c1ca;border-radius:7px;color:#f3f5f7;background:#30363d;box-shadow:0 6px 18px #00000040}.state-node__content{min-width:0;min-height:0;max-height:100%;overflow:hidden}.state-node__name{min-width:0;max-width:100%;font-size:14px;font-weight:760;line-height:1.2;overflow-wrap:anywhere}.react-flow__node-state{width:126px;height:58px}.react-flow__node-submachine{width:166px;height:72px}.state-title{display:flex;flex-wrap:wrap;align-items:baseline;gap:4px}.submachine-reference{font-size:12px;overflow-wrap:anywhere}.submachine-symbol{position:absolute;bottom:7px;right:9px;color:#d8dde3}.state-behaviors{margin-top:7px;padding-top:6px;border-top:1px solid #59616b;font-size:11px;line-height:16px;font-weight:400;overflow-wrap:anywhere;white-space:pre-wrap;text-align:left}.group-node>.state-behaviors{margin:0;padding:6px 12px;border-top:0;border-bottom:1px solid #59616b}.inspector-section-title{color:#a5b0bc;font-size:11px;padding-top:7px;border-top:1px solid var(--line)}.field select{width:100%;padding:8px 10px;border:1px solid var(--line-strong);border-radius:4px;background:#13171c;color:var(--text);font:inherit}.machine-kind{font-size:11px;border-right:1px solid #8994a0;padding-right:10px}.group-node{position:relative}.group-regions{position:absolute;top:42px;right:0;bottom:0;left:0;display:grid;pointer-events:none}.group-region{position:relative;min-width:0;min-height:0}.region-divider{position:absolute;pointer-events:all;touch-action:none;outline:none}.is-readonly .region-divider{pointer-events:none}.app-shell.is-readonly .react-flow__node .react-flow__handle{opacity:0;pointer-events:none}.is-readonly .node-free-handle:after{display:none}.is-readonly .edge-label{cursor:default}.inspector-readonly-fields{border:0;margin:0;padding:0;min-width:0}.cloud-share-permission{color:var(--muted);font-size:12px;line-height:1.6}.group-regions--rows .region-divider{left:0;right:0;height:var(--region-hit);transform:translateY(-50%);cursor:ns-resize}.group-regions--columns .region-divider{top:0;bottom:0;width:var(--region-hit);transform:translate(-50%);cursor:ew-resize}.region-divider:before{content:"";position:absolute;border-color:var(--muted);border-style:dashed;border-width:0}.group-regions--rows .region-divider:before{left:0;right:0;top:50%;border-top-width:1px}.group-regions--columns .region-divider:before{top:0;bottom:0;left:50%;border-left-width:1px}.region-divider:hover:before,.region-divider:focus:before{border-color:var(--cyan)}.group-node.is-selected .region-divider:after,.region-divider:hover:after,.region-divider:focus:after{content:"";position:absolute;background:var(--cyan);border-radius:2px}.group-regions--rows .region-divider:after{left:50%;top:50%;width:var(--region-grip);height:3px;transform:translate(-50%,-50%)}.group-regions--columns .region-divider:after{left:50%;top:50%;width:3px;height:var(--region-grip);transform:translate(-50%,-50%)}.region-name-toggle{display:flex;align-items:center;gap:8px;color:var(--text);font-size:12px}.region-name-toggle input{accent-color:var(--cyan)}.group-region>span{position:absolute;top:7px;left:10px;right:7px;font-size:10px;color:#929eac;overflow-wrap:anywhere;text-align:left}.tree-region{display:flex;align-items:center;gap:5px;color:#9aa6b4;font-size:10px;min-height:24px;overflow-wrap:anywhere}.create-menu{max-height:min(440px,calc(100vh - 80px));overflow-y:auto}.uml-symbol{position:relative;width:100%;height:100%;color:var(--symbol-ink)}.uml-symbol__shape{position:absolute;top:0;right:0;bottom:0;left:0;display:grid;place-items:center;background:var(--symbol-fill);border:2px solid var(--symbol-border)}.uml-symbol.is-selected .uml-symbol__shape{border-color:var(--cyan);box-shadow:0 0 0 3px #67d8ef2b}.uml-symbol--choice .uml-symbol__shape{width:70.71%;height:70.71%;top:14.645%;right:14.645%;bottom:14.645%;left:14.645%;transform:rotate(45deg)}.uml-symbol--junction .uml-symbol__shape,.uml-symbol--history .uml-symbol__shape,.uml-symbol--deepHistory .uml-symbol__shape,.uml-symbol--entry .uml-symbol__shape,.uml-symbol--exit .uml-symbol__shape,.uml-symbol--connectionEntry .uml-symbol__shape,.uml-symbol--connectionExit .uml-symbol__shape{border-radius:50%}.uml-symbol--history .uml-symbol__shape,.uml-symbol--deepHistory .uml-symbol__shape{font-size:14px;font-weight:700}.uml-symbol--fork .uml-symbol__shape,.uml-symbol--join .uml-symbol__shape{border:0;border-radius:1px}.uml-symbol--terminate .uml-symbol__shape{background:transparent;border:0;color:var(--symbol-border)}.uml-symbol--terminate.is-selected .uml-symbol__shape{color:var(--cyan)}.uml-symbol__caption{position:absolute;left:50%;top:calc(100% + 8px);transform:translate(-50%);min-width:56px;max-width:160px;width:max-content;text-align:center;font-size:11px;font-weight:400;overflow-wrap:anywhere;background:#20252b;padding:1px 3px}.uml-symbol .node-label-input{position:absolute;top:calc(100% + 6px);left:50%;transform:translate(-50%);width:140px}.uml-symbol__reference{position:absolute;left:50%;top:calc(100% + 29px);transform:translate(-50%);color:#9ba9b8;font-size:10px;white-space:nowrap}.react-flow__node-terminate .node-handle--target{pointer-events:all}.react-flow__node-terminate.selected .node-handle--target{opacity:1}.note-node{position:relative;width:100%;height:100%;padding:12px 20px 12px 12px;border:1px solid #bba658;background:#343126;color:#f2e6b5;border-radius:0}.note-node:after{content:"";position:absolute;top:-1px;right:-1px;width:var(--note-fold, 14px);height:var(--note-fold, 14px);background:#20252b;border-left:1px solid #bba658;border-bottom:1px solid #bba658}.note-node.is-selected{border-color:var(--cyan);box-shadow:0 0 0 2px #67d8ef2b}.note-node__text{white-space:pre-wrap;overflow-wrap:anywhere}.note-node__description{margin-top:6px;white-space:pre-wrap;overflow-wrap:anywhere;font-size:11px;line-height:1.4}.note-node .note-content-input{display:block;height:100%;min-height:0;box-sizing:border-box;resize:none;line-height:1.4}.state-node__description{overflow-wrap:anywhere}.state-node__description{margin-top:4px;color:#a8b1bc;font-size:9px;line-height:1.35}.state-node.tone-cyan{border-color:#86d8e8}.state-node.tone-green{border-color:#8ad8b8}.state-node.tone-yellow{border-color:#dbc77d}.state-node.tone-orange{border-color:#e5ad76}.state-node.tone-violet{border-color:#ad9ae4}.state-node.is-selected,.initial-node.is-selected,.final-node.is-selected,.history-node.is-selected{border-color:var(--cyan);box-shadow:0 0 0 3px #67d8ef2b,0 10px 25px #0000004d}.initial-node,.final-node,.history-node{display:grid;place-items:center;border-radius:50%;background:#eff3f5}.initial-node{width:18px;height:18px;border:2px solid #fff;box-shadow:0 3px 12px #00000057}.final-node{width:26px;height:26px;border:2px solid #eef2f4;background:transparent}.final-node span{width:13px;height:13px;border-radius:50%;background:#eef2f4}.history-node{width:30px;height:30px;border:2px solid #d8dde3;color:#eef2f5;background:#333941;font-size:13px;font-weight:800}.history-glyph{width:22px;height:22px;display:inline-grid;place-items:center;border:1.5px solid currentColor;border-radius:50%;font-size:12px;line-height:1;font-weight:700;flex-shrink:0}.theme-toggle{flex-shrink:0}:root[data-theme=light] .topbar,:root[data-theme=light] .panel-surface,:root[data-theme=light] .mobile-panel-sheet{background:var(--surface)}:root[data-theme=light] .brand-mark{color:#fff}:root[data-theme=light] .action-group{background:#f8f9fb}:root[data-theme=light] .icon-button{color:#68727e}:root[data-theme=light] .icon-button:hover:not(:disabled){color:#262b32}:root[data-theme=light] .icon-button:disabled{color:#c4cad2}:root[data-theme=light] .primary-button{border-color:var(--cyan);color:#fff}:root[data-theme=light] .primary-button:hover{background:#f2482a}:root[data-theme=light] .export-menu,:root[data-theme=light] .board-menu,:root[data-theme=light] .floating-toolbar,:root[data-theme=light] .edge-toolbar,:root[data-theme=light] .canvas-mode-toolbar,:root[data-theme=light] .mobile-canvas-tools{background:var(--surface);box-shadow:0 5px 20px #2933431a}:root[data-theme=light] .export-menu button,:root[data-theme=light] .palette-item{color:var(--text)}:root[data-theme=light] .palette-item{background:#fff}:root[data-theme=light] .palette-item:hover{background:#f6f7f9;border-color:#bfc7d1}:root[data-theme=light] .palette-item__icon{background:#f5f6f8}:root[data-theme=light] .accent-cyan{color:#249eb6}:root[data-theme=light] .tone-bg-cyan{background:#60c3d7}:root[data-theme=light] .palette-item.is-active,:root[data-theme=light] .icon-button.is-active,:root[data-theme=light] .tree-row.is-selected{color:#e54b2e;background:#fff0eb}:root[data-theme=light] .palette-item.is-active{border-color:var(--cyan)}:root[data-theme=light] .tree-row{color:#606b78}:root[data-theme=light] .tree-row:hover{background:#f3f5f7}:root[data-theme=light] .count-badge,:root[data-theme=light] .selection-chip{color:#78828f;background:#f3f5f7}:root[data-theme=light] .canvas-wrap{background:#eef0f3}:root[data-theme=light] .react-flow{--xy-background-color: #eef0f3}:root[data-theme=light] .react-flow__edge-path{stroke:#626c79}:root[data-theme=light] .react-flow__edge.selected .react-flow__edge-path{stroke:var(--cyan)}:root[data-theme=light] .routed-edge-label{color:#3b434e;background:#f7f8fa;border-color:var(--line-strong);box-shadow:none}:root[data-theme=light] .routed-edge-label.is-inline{background:#eef0f3;border-color:transparent}:root[data-theme=light] .routed-edge-label.is-selected,:root[data-theme=light] .routed-edge-label.is-inline:hover{color:#e54b2e;border-color:var(--cyan)}:root[data-theme=light] .react-flow__controls-button{color:#68727e;background:#fff}:root[data-theme=light] .react-flow__controls-button:hover{background:#f3f5f7}:root[data-theme=light] .react-flow__minimap{background:#fff}:root[data-theme=light] .state-node{color:var(--text);background:var(--node-fill);border-color:#8e98a5;box-shadow:0 3px 10px #2933430f}:root[data-theme=light] .state-node__description,:root[data-theme=light] .group-node__header span,:root[data-theme=light] .submachine-symbol,:root[data-theme=light] .inspector-section-title,:root[data-theme=light] .field{color:#78828f}:root[data-theme=light] .state-node.tone-cyan{border-color:#75b8c5}:root[data-theme=light] .state-node.tone-green{border-color:#8ab5a1}:root[data-theme=light] .state-node.tone-yellow{border-color:#c5b478}:root[data-theme=light] .state-node.tone-orange{border-color:#d5a782}:root[data-theme=light] .state-node.tone-violet{border-color:#b09fc7}:root[data-theme=light] .group-node{background:#ffffff59}:root[data-theme=light] .group-node__header{color:#404853;background:#f9fafce6;border-bottom-color:var(--line-strong)}:root[data-theme=light] .state-behaviors{border-color:var(--line-strong)}:root[data-theme=light] .group-region>span,:root[data-theme=light] .tree-region,:root[data-theme=light] .uml-symbol__reference{color:#78828f}:root[data-theme=light] .initial-node{background:var(--symbol-ink);border-color:var(--symbol-ink);box-shadow:none}:root[data-theme=light] .final-node{border-color:var(--symbol-ink)}:root[data-theme=light] .final-node span{background:var(--symbol-ink)}:root[data-theme=light] .uml-symbol__caption{background:#eef0f3}:root[data-theme=light] .state-node.is-selected,:root[data-theme=light] .initial-node.is-selected,:root[data-theme=light] .final-node.is-selected,:root[data-theme=light] .note-node.is-selected,:root[data-theme=light] .uml-symbol.is-selected .uml-symbol__shape{border-color:var(--cyan);box-shadow:0 0 0 3px #ff57381f}:root[data-theme=light] .group-node.is-selected{border-color:var(--cyan);box-shadow:inset 0 0 0 1px #ff573833}:root[data-theme=light] .note-node{background:#fff9df;color:#655d3c}:root[data-theme=light] .note-node:after{background:#eef0f3}:root[data-theme=light] .node-handle{border-color:#fff}:root[data-theme=light] .node-handle--target{background:#7c8795}:root[data-theme=light] .react-flow__selection{background:#ff57380f}:root[data-theme=light] .toolbar-select,:root[data-theme=light] .node-label-input,:root[data-theme=light] .field input,:root[data-theme=light] .field textarea,:root[data-theme=light] .field select{background:#fff;color:var(--text)}:root[data-theme=light] .field input::placeholder{color:#a6aeb9}:root[data-theme=light] .syntax-preview{background:#f8f9fb}:root[data-theme=light] .swatch.is-active{border-color:#3a434f}:root[data-theme=light] .empty-inspector strong{color:#65717f}:root[data-theme=light] .danger-button{color:#c34b4b;background:#fff5f5;border-color:#f0cfcf}:root[data-theme=light] .danger-button:hover{background:#ffecec}:root[data-theme=light] .board-menu .menu-danger{color:#c34b4b}:root[data-theme=light] .example-button{color:#78828f;background:#fff}:root[data-theme=light] .example-button:hover{color:#262b32;background:#f3f5f7}:root[data-theme=light] .connection-source-ring{background:#fff}:root[data-theme=light] .edge-segment-handle:after{box-shadow:0 0 0 1px #eef0f3}:root[data-theme=light] .edge-segment-handle:hover:after{background:#dc4428}:root[data-theme=light] .resize-handle{border-color:#fff!important}:root[data-theme=light] .toast{color:#237551;background:#effaf4;border-color:#a3d7bd;box-shadow:0 5px 20px #2933431a}:root[data-theme=light] .error-screen__panel{color:var(--text)}:root[data-theme=light] .error-screen__panel button{color:#fff;border-color:var(--cyan)}.group-node{width:100%;height:100%;border:1.5px solid #8e99a5;border-radius:7px;background:#252a318a}.group-node.tone-cyan{border-color:#6d9aa3}.group-node.tone-green{border-color:#648f7b}.group-node.tone-yellow{border-color:#958756}.group-node.tone-orange{border-color:#9b7450}.group-node.tone-violet{border-color:#75699e}.group-node.is-selected{border-color:var(--cyan);box-shadow:inset 0 0 0 1px #67d8ef42}.group-node__header{height:42px;display:flex;align-items:center;gap:7px;padding:0 13px;border-bottom:1px solid rgba(132,143,155,.24);color:#e9edf1;background:#14181d7a;border-radius:6px 6px 0 0}.group-node__header strong{font-size:14px}.group-node__header span{margin-left:4px;color:#8d98a5;font-size:9px}.node-handle{width:8px;height:8px;border:1.5px solid #20252b;background:#e9eef1;opacity:0;transition:opacity .12s ease}.node-handle--source{background:var(--cyan);z-index:3}.react-flow__handle.node-perimeter-handle{transform:none;border:0;border-radius:0;background:transparent;opacity:1;z-index:2;pointer-events:all;cursor:crosshair}.react-flow__resize-control.handle{z-index:4}.react-flow__handle.node-free-handle{width:1px;height:1px;min-width:0;min-height:0;border:0;background:transparent;transform:translate(-50%,-50%);pointer-events:none}.node-free-handle:after{content:"";position:absolute;left:50%;top:50%;width:8px;height:8px;transform:translate(-50%,-50%);border:1.5px solid var(--cyan);border-radius:50%;background:var(--node-fill);opacity:0}.react-flow__node:hover .node-free-handle:after,.react-flow__node.selected .node-free-handle:after{opacity:1}.node-handle--target{background:#edf1f4;pointer-events:none}.react-flow__node:hover .node-handle,.react-flow__node.selected .node-handle{opacity:1}.react-flow__node.selected .node-handle--target{opacity:0}.react-flow__node-initial .node-handle--target,.react-flow__node-final .node-handle--target{pointer-events:all}.react-flow__node-final.selected .node-handle--target{opacity:1}.react-flow__handle.connectingto{opacity:1;background:var(--green)}.react-flow__selection{border:1px solid var(--cyan);background:#67d8ef14}.canvas-mode-toolbar,.floating-toolbar{display:flex;align-items:center;gap:2px;padding:4px;border:1px solid var(--line-strong);border-radius:6px;background:#22282f;box-shadow:0 5px 18px #00000047;max-width:calc(100vw - 12px)}.floating-toolbar{overflow-x:auto}.floating-toolbar .icon-button,.edge-toolbar .icon-button{flex-shrink:0}.edge-toolbar{max-width:calc(100vw - 12px);overflow-x:auto}.canvas-mode-toolbar{position:absolute;bottom:12px;left:50%;transform:translate(-50%);z-index:12}.icon-button.is-active{color:var(--cyan);background:#67d8ef21}.toolbar-divider{width:1px;height:22px;margin:0 3px;background:var(--line-strong);flex-shrink:0}.toolbar-select{height:30px;max-width:72px;border:1px solid var(--line);border-radius:4px;background:#171b20;color:var(--text);font-size:12px;padding:0 4px}.toolbar-color{width:30px;height:30px;flex:0 0 auto;display:grid;place-items:center;padding:0;border:0;background:transparent;cursor:pointer}.color-preview{width:19px;height:19px;border:1px solid #8793a0;border-radius:3px}.fixed-color-popover{position:fixed;z-index:10000;width:288px;box-sizing:border-box;padding:16px;border:1px solid var(--line-strong);border-radius:6px;background:var(--surface-raised);color:var(--text);box-shadow:0 8px 30px #0002}.fixed-color-grid{display:grid;grid-template-columns:repeat(9,22px);gap:8px 7px}.fixed-color-swatch{display:grid;place-items:center;width:22px;height:22px;padding:0;border:1px solid #0001;border-radius:50%;cursor:pointer}.fixed-color-swatch[aria-pressed=true]{outline:2px solid #3d64e8;outline-offset:3px}.fixed-color-swatch:hover{outline:1px solid #3d64e8;outline-offset:2px}.is-transparent{background:linear-gradient(135deg,transparent 47%,#bec3cb 48%,#bec3cb 52%,transparent 53%),var(--surface)}.fixed-color-opacity{display:grid;grid-template-columns:1fr auto;gap:10px;margin-top:22px;font-size:12px}.fixed-color-opacity output{color:var(--muted)}.fixed-color-opacity input{grid-column:1 / -1;width:100%;margin:0;accent-color:#3d64e8}.transition-parts{display:grid;gap:3px;text-align:left}.transition-part{display:block}.transition-part__value{min-width:0;overflow-wrap:anywhere}.transition-part--event{color:inherit;font-weight:650}.transition-part--guard{color:#edc778;font-weight:500}.transition-part--action{color:#7dceb4;font-weight:500}:root[data-theme=light] .transition-part--guard{color:#916513}:root[data-theme=light] .transition-part--action{color:#237c63}.transition-field--event>span{color:var(--text)}.transition-field--guard>span{color:#edc778}.transition-field--action>span{color:#7dceb4}:root[data-theme=light] .transition-field--guard>span{color:#916513}:root[data-theme=light] .transition-field--action>span{color:#237c63}.syntax-preview .transition-part__value{font-size:12px;color:inherit;font-weight:inherit}.syntax-preview .transition-part--event{color:var(--text)}.toolbar-count{font-size:11px;color:var(--muted);padding:0 6px}.batch-actions{display:flex;gap:4px;flex-wrap:wrap}.node-label-input{min-width:0;width:100%;padding:2px;border:1px solid var(--cyan);background:#171b20;color:var(--text);font-size:14px}.group-node__name{min-width:0;overflow-wrap:anywhere}.group-node__header{cursor:move}.react-flow__node-group{pointer-events:none!important;padding:0;border:0;border-radius:0;background:transparent}.group-node__header,.react-flow__node-group .react-flow__resize-control,.node-handle--source{pointer-events:all}.group-node__header span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.edge-segment-handle{position:absolute;top:0;left:0;width:22px;height:18px;border:0;background:transparent;pointer-events:all;z-index:11;padding:0}.edge-segment-handle:after{content:"";position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);width:12px;height:4px;border-radius:2px;background:var(--cyan);box-shadow:0 0 0 1px #14181d}.edge-segment-handle.is-horizontal{height:12px;z-index:12;cursor:ns-resize}.edge-segment-handle.is-vertical{width:12px;height:22px;cursor:ew-resize}.edge-segment-handle.is-vertical:after{width:4px;height:12px}.edge-segment-handle:hover:after{background:#fff}.react-flow__edge:has(.edge-port-orientation.source-top) .react-flow__edgeupdater-source,.react-flow__edge:has(.edge-port-orientation.target-top) .react-flow__edgeupdater-target{transform:translateY(8px)}.react-flow__edge:has(.edge-port-orientation.source-bottom) .react-flow__edgeupdater-source,.react-flow__edge:has(.edge-port-orientation.target-bottom) .react-flow__edgeupdater-target{transform:translateY(-8px)}.react-flow__edge:has(.edge-port-orientation.source-left) .react-flow__edgeupdater-source,.react-flow__edge:has(.edge-port-orientation.target-left) .react-flow__edgeupdater-target{transform:translate(8px)}.react-flow__edge:has(.edge-port-orientation.source-right) .react-flow__edgeupdater-source,.react-flow__edge:has(.edge-port-orientation.target-right) .react-flow__edgeupdater-target{transform:translate(-8px)}.alignment-guide{position:absolute;pointer-events:none;z-index:8}.alignment-guide--x{top:0;bottom:0;border-left:1px dashed #f3a861}.alignment-guide--y{left:0;right:0;border-top:1px dashed #f3a861}.connection-source-ring{position:absolute;top:63px;left:50%;transform:translate(-50%);border:1px solid var(--cyan);border-radius:4px;background:#22282f;padding:5px 10px;font-size:12px;pointer-events:none;z-index:12}.menu-dismiss{position:fixed;top:58px;right:0;bottom:0;left:0;z-index:30}.board-menu{position:fixed;z-index:31;width:210px;padding:5px;border:1px solid var(--line-strong);border-radius:6px;background:#22282f;box-shadow:0 8px 26px #0000004d}.board-menu button{display:flex;align-items:center;gap:9px;width:100%;height:34px;padding:0 9px;border:0;border-radius:3px;color:var(--text);background:transparent;font-size:12px;cursor:pointer}.board-menu button:hover:not(:disabled){background:var(--surface-hover)}.board-menu button:disabled{color:#65717f;cursor:default}.board-menu kbd{margin-left:auto;font-family:inherit;color:#98a3b0;font-size:10px}.board-menu .menu-danger{color:#e9aab4}.menu-rule{height:1px;background:var(--line);margin:4px 7px}.resize-line{border-color:var(--cyan)!important}.resize-handle{width:7px!important;height:7px!important;border:1px solid #152126!important;border-radius:2px!important;background:var(--cyan)!important}.inspector-fields{display:grid;gap:17px}.selection-chip{width:fit-content;gap:7px;padding:5px 8px;border:1px solid var(--line);border-radius:5px;color:#aeb8c3;background:#20262c;font-size:10px}.chip-dot{width:7px;height:7px;border-radius:50%}.field{display:grid;gap:7px;color:#8e99a6;font-size:10px;font-weight:700}.field input,.field textarea{width:100%;border:1px solid var(--line-strong);border-radius:5px;padding:9px 10px;color:#edf1f4;background:#111519;font-size:12px;font-weight:500;resize:vertical}.field input::placeholder{color:#59636f}.swatches{display:flex;gap:8px}.swatch{width:26px;height:26px;display:grid;place-items:center;border:2px solid transparent;border-radius:5px;color:#101317;cursor:pointer}.swatch.is-active{border-color:#fff}.tone-bg-slate{background:#8793a0}.tone-bg-cyan{background:var(--cyan)}.tone-bg-green{background:var(--green)}.tone-bg-yellow{background:var(--yellow)}.tone-bg-orange{background:var(--orange)}.tone-bg-violet{background:var(--violet)}.meta-row{display:grid;gap:5px;padding-top:4px;color:#687482;font-size:9px}.meta-row code{overflow:hidden;color:#8f9aa7;text-overflow:ellipsis}.syntax-preview{display:grid;gap:8px;padding:11px;border:1px solid var(--line);border-radius:5px;background:#12161a}.syntax-preview>span{color:#697582;font-size:9px;font-weight:700}.syntax-preview code{color:var(--cyan);font-size:11px;line-height:1.45;overflow-wrap:anywhere}.danger-button{width:100%;height:38px;justify-content:center;gap:7px;margin-top:24px;border:1px solid #68434a;border-radius:5px;color:#e9aab4;background:#2a1d21;font-size:11px;font-weight:700;cursor:pointer}.danger-button:hover{background:#38242a}.empty-inspector{height:calc(100% - 80px);min-height:250px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;color:#606b78;text-align:center}.empty-inspector strong{color:#9ba6b2;font-size:12px}.empty-inspector span{font-size:10px}.example-button{position:fixed;left:224px;bottom:17px;z-index:12;height:31px;gap:6px;padding:0 9px;border:1px solid var(--line-strong);border-radius:5px;color:#9ca7b4;background:#1d2228f0;font-size:10px;cursor:pointer}.example-button:hover{color:#fff;background:#2b323a}.toast{position:fixed;left:50%;bottom:24px;z-index:50;transform:translate(-50%);gap:8px;padding:10px 14px;border:1px solid #456c5c;border-radius:6px;color:#c9f4e0;background:#20382f;box-shadow:0 14px 36px #00000059;font-size:11px;font-weight:700}.visually-hidden{width:1px;height:1px;position:absolute;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}.mobile-only,.mobile-canvas-tools,.mobile-panel-backdrop{display:none}.error-screen{min-height:100dvh;display:grid;place-items:center;padding:24px;background:var(--bg)}.error-screen__panel{width:min(420px,100%);padding:28px;border:1px solid var(--line-strong);border-radius:8px;color:#dfe5eb;background:var(--surface)}.error-screen__panel>svg{color:var(--orange)}.error-screen__panel h1{margin:16px 0 8px;font-size:18px}.error-screen__panel p{margin:0 0 20px;color:var(--muted);font-size:12px}.error-screen__panel button{height:38px;display:flex;align-items:center;gap:8px;border:1px solid #8de5f5;border-radius:6px;padding:0 14px;color:#10171a;background:var(--cyan);font-size:12px;font-weight:750;cursor:pointer}@media(max-width:1080px){.topbar{grid-template-columns:auto minmax(100px,1fr) auto}.save-state,.text-button{display:none}.example-button{left:194px}}@media(max-width:980px){.menu-dismiss{top:54px}.app-shell{grid-template-rows:auto minmax(0,1fr) 32px}.topbar{min-height:54px;grid-template-columns:auto minmax(100px,1fr) auto;gap:8px;padding:0 9px}.brand-lockup>span,.desktop-actions{display:none}.brand-mark{width:31px;height:31px}.document-title{width:100%;max-width:220px;text-align:left}.workspace{grid-template-columns:0 minmax(0,1fr) 0!important}.workspace>.side-dock{display:none}.outline-panel{border-right:0}.react-flow__minimap{display:none}.react-flow__controls.bottom{bottom:62px}.mobile-canvas-tools{height:48px;display:flex;align-items:center;justify-content:space-around;position:absolute;left:12px;right:12px;bottom:10px;z-index:10;border:1px solid var(--line-strong);border-radius:7px;background:#1b2026f5;box-shadow:0 12px 28px #00000057}.mobile-panel-backdrop{display:flex;align-items:flex-end;position:fixed;top:54px;right:0;bottom:32px;left:0;z-index:40;background:#050709a8}.mobile-panel-sheet{width:100%;max-height:76dvh;overflow:auto;border-top:1px solid var(--line-strong);background:#171b20}.mobile-panel-sheet .panel-surface{display:flex;min-height:380px;height:76dvh;max-height:76dvh;border:0}.mobile-panel-sheet .inspector-panel{display:block}.mobile-only{display:inline-grid}.example-button{display:none}}@media(max-width:520px){.topbar{grid-template-columns:auto minmax(0,1fr) auto;gap:4px}.topbar-actions{gap:4px}.topbar-actions .icon-button{width:30px}.edge-toolbar .toolbar-select{max-width:48px;font-size:11px;padding:0}.edge-toolbar [aria-label=箭头方向]{width:36px}.edge-toolbar .toolbar-color{width:24px}.edge-toolbar .icon-button{width:30px;height:32px}.action-group{display:none}.primary-button{width:36px;padding:0;justify-content:center;font-size:0}.primary-button svg:last-child{display:none}.document-title{font-size:12px}}@media(max-width:900px){.topbar{min-height:94px;grid-template-columns:auto minmax(0,1fr);grid-template-areas:"files title" "views views";grid-template-rows:40px 34px;gap:6px;padding:6px 9px}.topbar-file-actions{grid-area:files}.topbar .document-title-wrap{grid-area:title;justify-content:flex-end}.topbar .document-title{width:100%;max-width:280px;text-align:right}.topbar-actions{grid-area:views;gap:6px}}@media(max-width:600px){.topbar-file-actions{gap:4px}.topbar-file-actions .text-button,.topbar-file-actions .primary-button{width:34px;height:34px;padding:0;justify-content:center}.topbar-file-actions .text-button>span,.topbar-file-actions .primary-button>span,.topbar-file-actions .primary-button>svg:last-child{display:none}.topbar-file-actions .icon-button,.topbar-actions .icon-button{width:28px;height:32px}.topbar-actions{gap:4px}.topbar-actions .cloud-command,.topbar-actions .cloud-login-trigger{padding:0 7px}.panel-statusbar__summary{min-width:0;overflow:hidden}.panel-statusbar__summary .cloud-save-status{min-width:0;white-space:nowrap;overflow:hidden}.panel-switches{flex-shrink:0}}@media(prefers-reduced-motion:reduce){*,*:before,*:after{scroll-behavior:auto!important;transition-duration:.01ms!important}}
