.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: #555;--xy-background-pattern-lines-color-default: #333;--xy-background-pattern-cross-color-default: #333;--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;touch-action:none}.react-flow__pane.draggable{cursor:grab}.react-flow__pane.dragging{cursor:grabbing}.react-flow__pane.selection{cursor:pointer}.react-flow__viewport{transform-origin:0 0;z-index:2;pointer-events:none}.react-flow__renderer{z-index:4}.react-flow__selection{z-index:6}.react-flow__nodesselection-rect:focus,.react-flow__nodesselection-rect:focus-visible{outline:none}.react-flow__edge-path{stroke:var(--xy-edge-stroke, var(--xy-edge-stroke-default));stroke-width:var(--xy-edge-stroke-width, var(--xy-edge-stroke-width-default));fill:none}.react-flow__connection-path{stroke:var(--xy-connectionline-stroke, var(--xy-connectionline-stroke-default));stroke-width:var(--xy-connectionline-stroke-width, var(--xy-connectionline-stroke-width-default));fill:none}.react-flow .react-flow__edges{position:absolute}.react-flow .react-flow__edges svg{overflow:visible;position:absolute;pointer-events:none}.react-flow__edge{pointer-events:visibleStroke}.react-flow__edge.selectable{cursor:pointer}.react-flow__edge.animated path{stroke-dasharray:5;animation:dashdraw .5s linear infinite}.react-flow__edge.animated path.react-flow__edge-interaction{stroke-dasharray:none;animation:none}.react-flow__edge.inactive{pointer-events:none}.react-flow__edge.selected,.react-flow__edge:focus,.react-flow__edge:focus-visible{outline:none}.react-flow__edge.selected .react-flow__edge-path,.react-flow__edge.selectable:focus .react-flow__edge-path,.react-flow__edge.selectable:focus-visible .react-flow__edge-path{stroke:var(--xy-edge-stroke-selected, var(--xy-edge-stroke-selected-default))}.react-flow__edge-textwrapper{pointer-events:all}.react-flow__edge .react-flow__edge-text{pointer-events:none;-webkit-user-select:none;-moz-user-select:none;user-select:none}.react-flow__arrowhead polyline{stroke:var(--xy-edge-stroke, var(--xy-edge-stroke-default))}.react-flow__arrowhead polyline.arrowclosed{fill:var(--xy-edge-stroke, var(--xy-edge-stroke-default))}.react-flow__connection{pointer-events:none}.react-flow__connection .animated{stroke-dasharray:5;animation:dashdraw .5s linear infinite}svg.react-flow__connectionline{z-index:1001;overflow:visible;position:absolute}.react-flow__nodes{pointer-events:none;transform-origin:0 0}.react-flow__node{position:absolute;-webkit-user-select:none;-moz-user-select:none;user-select:none;pointer-events:all;transform-origin:0 0;box-sizing:border-box;cursor:default}.react-flow__node.selectable{cursor:pointer}.react-flow__node.draggable{cursor:grab;pointer-events:all}.react-flow__node.draggable.dragging{cursor:grabbing}.react-flow__nodesselection{z-index:3;transform-origin:left top;pointer-events:none}.react-flow__nodesselection-rect{position:absolute;pointer-events:all;cursor:grab}.react-flow__handle{position:absolute;pointer-events:none;min-width:5px;min-height:5px;width:6px;height:6px;background-color:var(--xy-handle-background-color, var(--xy-handle-background-color-default));border:1px solid var(--xy-handle-border-color, var(--xy-handle-border-color-default));border-radius:100%}.react-flow__handle.connectingfrom{pointer-events:all}.react-flow__handle.connectionindicator{pointer-events:all;cursor:crosshair}.react-flow__handle-bottom{top:auto;left:50%;bottom:0;transform:translate(-50%,50%)}.react-flow__handle-top{top:0;left:50%;transform:translate(-50%,-50%)}.react-flow__handle-left{top:50%;left:0;transform:translate(-50%,-50%)}.react-flow__handle-right{top:50%;right:0;transform:translate(50%,-50%)}.react-flow__edgeupdater{cursor:move;pointer-events:all}.react-flow__pane.selection .react-flow__panel{pointer-events:none}.react-flow__panel{position:absolute;z-index:5;margin:15px}.react-flow__panel.top{top:0}.react-flow__panel.bottom{bottom:0}.react-flow__panel.top.center,.react-flow__panel.bottom.center{left:50%;transform:translate(-15px) translate(-50%)}.react-flow__panel.left{left:0}.react-flow__panel.right{right:0}.react-flow__panel.left.center,.react-flow__panel.right.center{top:50%;transform:translateY(-15px) translateY(-50%)}.react-flow__attribution{font-size:10px;background:var(--xy-attribution-background-color, var(--xy-attribution-background-color-default));padding:2px 3px;margin:0}.react-flow__attribution a{text-decoration:none;color:#999}@keyframes dashdraw{0%{stroke-dashoffset:10}}.react-flow__edgelabel-renderer{position:absolute;width:100%;height:100%;pointer-events:none;-webkit-user-select:none;-moz-user-select:none;user-select:none;left:0;top:0}.react-flow__viewport-portal{position:absolute;width:100%;height:100%;left:0;top:0;-webkit-user-select:none;-moz-user-select:none;user-select:none}.react-flow__minimap{background:var( --xy-minimap-background-color-props, var(--xy-minimap-background-color, var(--xy-minimap-background-color-default)) )}.react-flow__minimap-svg{display:block}.react-flow__minimap-mask{fill:var( --xy-minimap-mask-background-color-props, var(--xy-minimap-mask-background-color, var(--xy-minimap-mask-background-color-default)) );stroke:var( --xy-minimap-mask-stroke-color-props, var(--xy-minimap-mask-stroke-color, var(--xy-minimap-mask-stroke-color-default)) );stroke-width:var( --xy-minimap-mask-stroke-width-props, var(--xy-minimap-mask-stroke-width, var(--xy-minimap-mask-stroke-width-default)) )}.react-flow__minimap-node{fill:var( --xy-minimap-node-background-color-props, var(--xy-minimap-node-background-color, var(--xy-minimap-node-background-color-default)) );stroke:var( --xy-minimap-node-stroke-color-props, var(--xy-minimap-node-stroke-color, var(--xy-minimap-node-stroke-color-default)) );stroke-width:var( --xy-minimap-node-stroke-width-props, var(--xy-minimap-node-stroke-width, var(--xy-minimap-node-stroke-width-default)) )}.react-flow__background-pattern.dots{fill:var( --xy-background-pattern-color-props, var(--xy-background-pattern-color, var(--xy-background-pattern-dots-color-default)) )}.react-flow__background-pattern.lines{stroke:var( --xy-background-pattern-color-props, var(--xy-background-pattern-color, var(--xy-background-pattern-lines-color-default)) )}.react-flow__background-pattern.cross{stroke:var( --xy-background-pattern-color-props, var(--xy-background-pattern-color, var(--xy-background-pattern-cross-color-default)) )}.react-flow__controls{display:flex;flex-direction:column;box-shadow:var(--xy-controls-box-shadow, var(--xy-controls-box-shadow-default))}.react-flow__controls.horizontal{flex-direction:row}.react-flow__controls-button{display:flex;justify-content:center;align-items:center;height:26px;width:26px;padding:4px;border:none;background:var(--xy-controls-button-background-color, var(--xy-controls-button-background-color-default));border-bottom:1px solid var( --xy-controls-button-border-color-props, var(--xy-controls-button-border-color, var(--xy-controls-button-border-color-default)) );color:var( --xy-controls-button-color-props, var(--xy-controls-button-color, var(--xy-controls-button-color-default)) );cursor:pointer;-webkit-user-select:none;-moz-user-select:none;user-select:none}.react-flow__controls-button svg{width:100%;max-width:12px;max-height:12px;fill:currentColor}.react-flow__edge.updating .react-flow__edge-path{stroke:#777}.react-flow__edge-text{font-size:10px}.react-flow__node.selectable:focus,.react-flow__node.selectable:focus-visible{outline:none}.react-flow__node-input,.react-flow__node-default,.react-flow__node-output,.react-flow__node-group{padding:10px;border-radius:var(--xy-node-border-radius, var(--xy-node-border-radius-default));width:150px;font-size:12px;color:var(--xy-node-color, var(--xy-node-color-default));text-align:center;border:var(--xy-node-border, var(--xy-node-border-default));background-color:var(--xy-node-background-color, var(--xy-node-background-color-default))}.react-flow__node-input.selectable:hover,.react-flow__node-default.selectable:hover,.react-flow__node-output.selectable:hover,.react-flow__node-group.selectable:hover{box-shadow:var(--xy-node-boxshadow-hover, var(--xy-node-boxshadow-hover-default))}.react-flow__node-input.selectable.selected,.react-flow__node-input.selectable:focus,.react-flow__node-input.selectable:focus-visible,.react-flow__node-default.selectable.selected,.react-flow__node-default.selectable:focus,.react-flow__node-default.selectable:focus-visible,.react-flow__node-output.selectable.selected,.react-flow__node-output.selectable:focus,.react-flow__node-output.selectable:focus-visible,.react-flow__node-group.selectable.selected,.react-flow__node-group.selectable:focus,.react-flow__node-group.selectable:focus-visible{box-shadow:var(--xy-node-boxshadow-selected, var(--xy-node-boxshadow-selected-default))}.react-flow__node-group{background-color:var(--xy-node-group-background-color, var(--xy-node-group-background-color-default))}.react-flow__nodesselection-rect,.react-flow__selection{background:var(--xy-selection-background-color, var(--xy-selection-background-color-default));border:var(--xy-selection-border, var(--xy-selection-border-default))}.react-flow__nodesselection-rect:focus,.react-flow__nodesselection-rect:focus-visible,.react-flow__selection:focus,.react-flow__selection:focus-visible{outline:none}.react-flow__controls-button:hover{background:var( --xy-controls-button-background-color-hover-props, var(--xy-controls-button-background-color-hover, var(--xy-controls-button-background-color-hover-default)) );color:var( --xy-controls-button-color-hover-props, var(--xy-controls-button-color-hover, var(--xy-controls-button-color-hover-default)) )}.react-flow__controls-button:disabled{pointer-events:none}.react-flow__controls-button:disabled svg{fill-opacity:.4}.react-flow__controls-button:last-child{border-bottom:none}.react-flow__controls.horizontal .react-flow__controls-button{border-bottom:none;border-right:1px solid var( --xy-controls-button-border-color-props, var(--xy-controls-button-border-color, var(--xy-controls-button-border-color-default)) )}.react-flow__controls.horizontal .react-flow__controls-button:last-child{border-right:none}.react-flow__resize-control{position:absolute}.react-flow__resize-control.left,.react-flow__resize-control.right{cursor:ew-resize}.react-flow__resize-control.top,.react-flow__resize-control.bottom{cursor:ns-resize}.react-flow__resize-control.top.left,.react-flow__resize-control.bottom.right{cursor:nwse-resize}.react-flow__resize-control.bottom.left,.react-flow__resize-control.top.right{cursor:nesw-resize}.react-flow__resize-control.handle{width:5px;height:5px;border:1px solid #fff;border-radius:1px;background-color:var(--xy-resize-background-color, var(--xy-resize-background-color-default));translate:-50% -50%}.react-flow__resize-control.handle.left{left:0;top:50%}.react-flow__resize-control.handle.right{left:100%;top:50%}.react-flow__resize-control.handle.top{left:50%;top:0}.react-flow__resize-control.handle.bottom{left:50%;top:100%}.react-flow__resize-control.handle.top.left,.react-flow__resize-control.handle.bottom.left{left:0}.react-flow__resize-control.handle.top.right,.react-flow__resize-control.handle.bottom.right{left:100%}.react-flow__resize-control.line{border-color:var(--xy-resize-background-color, var(--xy-resize-background-color-default));border-width:0;border-style:solid}.react-flow__resize-control.line.left,.react-flow__resize-control.line.right{width:1px;transform:translate(-50%);top:0;height:100%}.react-flow__resize-control.line.left{left:0;border-left-width:1px}.react-flow__resize-control.line.right{left:100%;border-right-width:1px}.react-flow__resize-control.line.top,.react-flow__resize-control.line.bottom{height:1px;transform:translateY(-50%);left:0;width:100%}.react-flow__resize-control.line.top{top:0;border-top-width:1px}.react-flow__resize-control.line.bottom{border-bottom-width:1px;top:100%}.react-flow__edge-textbg{fill:var(--xy-edge-label-background-color, var(--xy-edge-label-background-color-default))}.react-flow__edge-text{fill:var(--xy-edge-label-color, var(--xy-edge-label-color-default))}:root{font-family:Inter,ui-sans-serif,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;color:#142441;background:#f7f9fc;font-synthesis:none;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;--page:#f7f9fc;--surface:#fff;--surface-soft:#f5f8fd;--line:#dce4f0;--line-strong:#cbd7e8;--text:#142441;--muted:#65748d;--blue:#1769ef;--blue-hover:#0d55ce;--blue-soft:#e7f0ff;--shadow:0 10px 35px rgba(26,56,100,.08);--grid-dot:#c6d5eb}:root[data-theme=dark]{color-scheme:dark;--page:#111827;--surface:#192438;--surface-soft:#1e2d45;--line:#32445f;--line-strong:#405777;--text:#eff5ff;--muted:#9aaccc;--blue:#4c92ff;--blue-hover:#2779f7;--blue-soft:#233e67;--shadow:0 10px 35px rgba(0,0,0,.18);--grid-dot:#465a75}*{box-sizing:border-box}html,body,#root{margin:0;min-width:320px;min-height:100%;height:100%}body{overflow:hidden;background:var(--page);color:var(--text)}button,input,select,textarea{font:inherit}button{cursor:pointer}button:disabled{cursor:not-allowed;opacity:.42}button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid rgba(23,105,239,.38);outline-offset:2px}h1,h2,h3,p{margin-top:0}.app-shell{height:100dvh;display:flex;flex-direction:column;background:var(--page);overflow:hidden}.app-header{height:72px;flex:none;padding:0 24px;display:grid;grid-template-columns:1fr minmax(180px,390px) 1fr;align-items:center;gap:20px;border-bottom:1px solid var(--line);background:var(--surface);z-index:5}.brand{display:inline-flex;align-items:center;gap:10px;border:0;background:none;color:var(--text);font-size:23px;font-weight:750;letter-spacing:-.7px;padding:0;width:max-content}.brand-mark{width:37px;height:37px;display:inline-flex;align-items:center;justify-content:center;border:2px solid var(--blue);border-radius:12px;color:var(--blue);transform:rotate(-8deg)}.brand-mark svg{transform:rotate(8deg)}.header-center{min-width:0}.diagram-name,.diagram-name-input{width:100%;height:42px;display:flex;align-items:center;justify-content:center;gap:11px;padding:0 16px;border:1px solid var(--line);border-radius:11px;background:var(--surface);color:var(--text);font-size:15px;font-weight:650;white-space:nowrap;overflow:hidden}.diagram-name span:first-child{overflow:hidden;text-overflow:ellipsis}.diagram-name:hover{border-color:var(--blue)}.diagram-name-input{text-align:center;outline:none}.edit-pencil{font-size:20px;color:var(--muted);line-height:1}.header-actions{justify-self:end;display:flex;align-items:center;gap:16px}.saved-indicator{display:flex;gap:6px;align-items:center;color:var(--muted);font-size:12px;white-space:nowrap}.icon-button{width:38px;height:38px;display:inline-flex;align-items:center;justify-content:center;border:1px solid var(--line);border-radius:10px;color:var(--text);background:var(--surface);flex:none}.icon-button:hover{background:var(--surface-soft);border-color:var(--line-strong)}.menu-anchor{position:relative}.menu-popover{position:absolute;right:0;top:45px;z-index:20;width:200px;padding:6px;background:var(--surface);border:1px solid var(--line);box-shadow:var(--shadow);border-radius:12px}.menu-popover button{display:flex;align-items:center;gap:11px;width:100%;padding:11px;border:0;border-radius:8px;background:none;color:var(--text);text-align:left;font-size:14px}.menu-popover button:hover{background:var(--surface-soft)}.view-tabs{height:52px;flex:none;display:flex;justify-content:center;align-items:stretch;gap:6px;padding:5px 16px 0;border-bottom:1px solid var(--line);background:var(--surface);z-index:2}.view-tabs button{min-width:150px;border:0;border-bottom:3px solid transparent;background:none;color:var(--muted);font-size:15px;font-weight:600}.view-tabs button.active{border-color:var(--blue);color:var(--blue);background:linear-gradient(180deg,transparent,var(--blue-soft));border-radius:9px 9px 0 0}.view-tabs button:not(.active):hover{color:var(--text);background:var(--surface-soft)}.workspace{flex:1;min-height:0;display:flex;flex-direction:column;overflow:auto}.build-workspace{overflow:hidden}.build-layout{height:100%;display:flex;flex-direction:column;min-height:0}.canvas-area{min-height:0;flex:1;position:relative;display:flex;padding:12px 12px 0;gap:12px}.canvas-wrap{position:relative;min-width:0;flex:1;overflow:hidden;border:1px solid var(--line);border-radius:14px;background:var(--surface);box-shadow:inset 0 0 35px #5a90d808}.react-flow__node-diagram{width:198px;border:0;background:none;min-height:72px}.diagram-node{position:relative;width:198px;min-height:72px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;text-align:center;padding:12px 18px;border:2px solid var(--node-border);border-radius:11px;color:var(--node-text);background:var(--node-bg);box-shadow:0 5px 11px #19356012;font-size:15px;line-height:1.25}.diagram-node.is-selected,.diagram-node.is-link-source{box-shadow:0 0 0 4px #1769ef2b,0 8px 20px #1935601c}.diagram-node.shape-terminal,.diagram-node.shape-cloud{border-radius:45px}.diagram-node.shape-circle{width:120px;min-height:100px;margin-left:39px;border-radius:50%}.diagram-node.shape-decision{width:142px;min-height:100px;margin-left:28px;transform:rotate(45deg);border-radius:8px}.diagram-node.shape-decision .node-title,.diagram-node.shape-decision .node-subtitle{transform:rotate(-45deg)}.diagram-node.shape-database{border-radius:50%/15%;min-height:87px}.diagram-node.shape-database:before{content:"";position:absolute;top:0;left:-2px;right:-2px;height:20px;border:2px solid var(--node-border);border-radius:50%;background:var(--node-bg)}.diagram-node.shape-database .node-title,.diagram-node.shape-database .node-subtitle{z-index:1}.diagram-node.shape-input{transform:skew(-10deg)}.diagram-node.shape-input .node-title,.diagram-node.shape-input .node-subtitle{transform:skew(10deg)}.diagram-node.shape-manual{border-radius:4px 4px 24px 24px}.diagram-node.shape-document{border-radius:8px 8px 26px}.node-title{font-weight:650;word-break:break-word}.node-subtitle{font-size:13px;color:var(--node-sub);font-weight:450}.tone-blue{--node-bg:#e6f0ff;--node-border:#3f87f5;--node-text:#172c4b;--node-sub:#516d93}.tone-green{--node-bg:#dff8e8;--node-border:#24a35a;--node-text:#193f2d;--node-sub:#487961}.tone-purple{--node-bg:#eee9ff;--node-border:#7552d7;--node-text:#302452;--node-sub:#7460a9}.tone-slate{--node-bg:#edf4ff;--node-border:#293f67;--node-text:#142442;--node-sub:#526a8e}.tone-amber{--node-bg:#fff2d7;--node-border:#d58a1c;--node-text:#493311;--node-sub:#95713c}.node-handle{width:13px!important;height:13px!important;border:2px solid var(--blue)!important;background:#fff!important;opacity:0;transition:opacity .15s;z-index:4}.diagram-node:hover .node-handle,.diagram-node.is-selected .node-handle,.diagram-node.is-link-source .node-handle{opacity:1}.node-handle:after{content:"";position:absolute;top:-11px;right:-11px;bottom:-11px;left:-11px}.target-handle{z-index:3}.source-handle{z-index:4}.node-handle.react-flow__handle-top{top:-7px}.node-handle.react-flow__handle-bottom{bottom:-7px}.node-handle.react-flow__handle-left{left:-7px}.node-handle.react-flow__handle-right{right:-7px}.react-flow__node-group{z-index:-1!important}.group-node{position:absolute;top:0;right:0;bottom:0;left:0;border:1.5px dashed #9bb2d4;border-radius:16px;background:#e8f1ff2e}.group-node.is-selected{border-color:var(--blue);background:#e9f2ff47}.group-label{position:absolute;top:-1px;left:15px;padding:6px 12px;border-radius:0 0 7px 7px;background:#dfeaff;color:#315177;font-size:14px;font-weight:650}.group-resize-line{border-color:var(--blue)!important}.group-resize-handle{background:var(--blue)!important;border-color:#fff!important}.react-flow__edge.selected .react-flow__edge-path{stroke:var(--blue)!important;stroke-width:3!important}.react-flow__edge-text{font-weight:600}.canvas-zoom{position:absolute;top:18px;left:18px;height:40px;display:flex;align-items:center;overflow:hidden;border:1px solid var(--line);border-radius:10px;background:var(--surface);box-shadow:var(--shadow);z-index:4}.canvas-zoom button{width:37px;height:100%;display:grid;place-items:center;background:none;border:0;color:var(--text)}.canvas-zoom button:hover{background:var(--surface-soft)}.canvas-zoom span{min-width:56px;text-align:center;border-left:1px solid var(--line);border-right:1px solid var(--line);font-size:14px;font-weight:600}.canvas-fit{position:absolute;top:18px;right:18px;z-index:4;box-shadow:var(--shadow)}.canvas-hint{position:absolute;bottom:14px;left:16px;padding:6px 9px;border-radius:6px;background:var(--surface);color:var(--muted);font-size:11px;opacity:.82;pointer-events:none}.space-pan .react-flow__pane{cursor:grab}.build-toolbar{flex:none;display:flex;flex-direction:column;gap:10px;padding:10px 12px max(12px,env(safe-area-inset-bottom));background:var(--surface);border-top:1px solid var(--line);z-index:3}.tool-row{display:flex;justify-content:center;gap:8px;min-height:66px}.tool-button{min-width:78px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;border:1px solid transparent;border-radius:11px;background:none;color:#435578;padding:6px 12px}.tool-button span{display:grid;place-items:center}.tool-button small{font-size:12px;font-weight:600}.tool-button:hover:not(:disabled){background:var(--surface-soft)}.tool-button.active{color:var(--blue);background:var(--blue-soft);border-color:#bfdaff}.toolbar-separator{width:1px;height:38px;align-self:center;background:var(--line);margin:0 1px}.copy-primary{height:48px;width:100%;display:flex;align-items:center;justify-content:center;gap:10px;color:#fff;background:var(--blue);border:1px solid var(--blue);border-radius:11px;font-size:15px;font-weight:700;box-shadow:0 5px 13px #1769ef33}.copy-primary:hover,.button.primary:hover{background:var(--blue-hover)}.copy-primary span{display:flex}.link-hint{text-align:center;font-size:12px;color:var(--muted)}.link-hint button{margin-left:4px;border:0;background:none;color:var(--blue);font-weight:650}.properties-panel{width:265px;flex:none;display:flex;flex-direction:column;gap:20px;padding:20px;background:var(--surface);border:1px solid var(--line);border-radius:14px;box-shadow:var(--shadow);overflow:auto}.properties-header{display:flex;align-items:start;justify-content:space-between;gap:6px}.properties-header small,.eyebrow{color:var(--blue);font-size:11px;font-weight:750;letter-spacing:.12em}.properties-header h3{font-size:19px;margin:5px 0 0}.properties-header .icon-button{border:0;width:30px;height:30px}.properties-fields{display:flex;flex-direction:column;gap:15px}.field{display:flex;flex-direction:column;gap:7px;color:var(--text);font-size:13px;font-weight:650}.field input,.field select,.control-group select{width:100%;height:41px;padding:0 11px;border:1px solid var(--line-strong);border-radius:9px;background:var(--surface);color:var(--text);font-size:14px;font-weight:450}.muted{font-size:13px;color:var(--muted);line-height:1.55}.button{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:42px;padding:0 16px;border:1px solid var(--line-strong);border-radius:9px;background:var(--surface);color:var(--text);font-weight:650;font-size:14px;white-space:nowrap}.button.primary{background:var(--blue);border-color:var(--blue);color:#fff}.button.secondary:hover{background:var(--surface-soft)}.button.full{width:100%}.button.danger-outline{border-color:#f3c3c3;color:#bd3c45;background:transparent}.button.danger-outline:hover{background:#fff0f0}.properties-panel>.button{margin-top:auto}.text-button{align-self:start;border:0;background:none;color:var(--blue);font-size:13px;font-weight:600;padding:0}.content-view{width:min(100%,1180px);margin:0 auto;padding:26px 30px 36px;display:flex;flex-direction:column;gap:18px;min-height:100%}.view-heading{display:flex;justify-content:space-between;align-items:center;gap:18px}.view-heading h2{font-size:25px;letter-spacing:-.5px;margin:3px 0}.view-heading p{margin:0;color:var(--muted);font-size:14px}.code-editor{flex:1;min-height:320px;display:flex;flex-direction:column;overflow:hidden;border:1px solid var(--line);border-radius:13px;background:var(--surface);box-shadow:var(--shadow)}.code-editor-top{height:42px;display:flex;align-items:center;justify-content:space-between;padding:0 17px;border-bottom:1px solid var(--line);background:var(--surface-soft);color:var(--muted);font-size:12px;font-weight:650}.code-editor-top span:first-child{display:flex;align-items:center;gap:7px;color:var(--text)}.code-editor textarea{flex:1;min-height:300px;width:100%;resize:none;padding:21px 24px;border:0;outline:0;background:var(--surface);color:var(--text);font:14px/1.65 Cascadia Code,Consolas,monospace;-moz-tab-size:4;tab-size:4}.validation{min-height:42px;display:flex;align-items:center;gap:9px;padding:0 14px;border:1px solid var(--line);border-radius:9px;background:var(--surface);font-size:13px;font-weight:600;color:var(--muted);overflow:hidden;text-overflow:ellipsis}.validation.valid{color:#15804d;background:#eaf8ef;border-color:#bce5cd}.validation.invalid{color:#b84343;background:#fff2f2;border-color:#f1c8c8}.status-dot{width:8px;height:8px;border-radius:50%;background:#e2a02a}.compatibility{display:flex;justify-content:space-between;align-items:center;gap:16px;padding:16px;border:1px solid var(--line);border-radius:11px;background:var(--surface)}.compatibility strong{font-size:14px}.compatibility p{margin:4px 0 0;color:var(--muted);font-size:13px;line-height:1.4}.preview-controls{display:flex;align-items:end;flex-wrap:wrap;gap:14px;padding:14px;border:1px solid var(--line);border-radius:12px;background:var(--surface)}.control-group{display:flex;flex-direction:column;gap:6px}.control-label{font-size:11px;color:var(--muted);font-weight:750;text-transform:uppercase;letter-spacing:.06em}.segmented{display:flex;padding:3px;background:var(--surface-soft);border:1px solid var(--line);border-radius:10px;gap:2px}.segmented button{flex:1;min-height:37px;border:0;border-radius:7px;background:none;color:var(--muted);font-size:13px;font-weight:600}.segmented button.active{color:var(--blue);background:var(--surface);box-shadow:0 2px 7px #142a4c17}.segmented.compact button{padding:0 14px}.control-group select{min-width:166px}.preview-zoom{margin-left:auto;display:flex;align-items:center;gap:5px}.preview-zoom .icon-button{width:34px;height:34px}.zoom-number{width:54px;border:0;background:none;color:var(--text);font-size:13px;font-weight:650}.preview-stage{flex:1;min-height:330px;display:flex;align-items:center;justify-content:center;overflow:auto;padding:26px;border:1px solid var(--line);border-radius:13px;background:radial-gradient(var(--grid-dot) .9px,transparent .9px);background-size:20px 20px}.preview-paper{max-width:100%;min-height:280px;display:flex;align-items:center;justify-content:center;padding:30px;background:var(--surface);border:1px solid var(--line);border-radius:9px;box-shadow:0 15px 40px #142d551f;overflow:auto;transition:width .2s}.preview-paper.portrait{width:560px;min-height:660px}.preview-paper.landscape{width:920px;min-height:450px}.mermaid-svg{transform-origin:center;transition:transform .15s;max-width:100%;display:flex;justify-content:center}.mermaid-svg svg{max-width:100%;height:auto}.preview-loading,.preview-error{display:flex;flex-direction:column;align-items:center;gap:11px;text-align:center;color:var(--muted);font-size:14px}.preview-error{color:#b84343;max-width:370px}.preview-error span{font-size:12px}.spinner{width:20px;height:20px;border:2px solid var(--line-strong);border-top-color:var(--blue);border-radius:50%;animation:spin .8s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}.build-unavailable{align-self:center;margin:auto;padding:35px;max-width:440px;text-align:center}.build-unavailable svg{color:var(--blue)}.build-unavailable h2{margin:13px 0 7px}.build-unavailable p{color:var(--muted);line-height:1.55;font-size:14px}.modal-backdrop{position:fixed;top:0;right:0;bottom:0;left:0;z-index:40;display:flex;align-items:center;justify-content:center;background:#0c1c3466;padding:18px}.modal-card{width:min(100%,520px);max-height:min(90dvh,760px);display:flex;flex-direction:column;background:var(--surface);border:1px solid var(--line);border-radius:16px;box-shadow:0 22px 75px #10223f42;overflow:hidden}.modal-handle{display:none}.modal-header{display:flex;align-items:center;justify-content:space-between;padding:17px 22px;border-bottom:1px solid var(--line)}.modal-header h2{font-size:19px;margin:0}.modal-header .icon-button{border:0}.modal-body{display:flex;flex-direction:column;gap:21px;padding:22px;overflow:auto}.shape-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:8px}.shape-option{display:flex;align-items:center;gap:10px;min-height:49px;padding:7px 12px;border:1px solid var(--line);border-radius:9px;background:var(--surface);color:var(--text);font-size:12px;text-align:left}.shape-option.active{border-color:var(--blue);background:var(--blue-soft);color:var(--blue)}.settings-list fieldset{border:0;padding:0;margin:0}.settings-list legend{font-size:13px;font-weight:700;margin-bottom:9px}.settings-list .segmented{width:100%}.setting-help{margin:7px 0 0;color:var(--muted);font-size:12px}.diagram-list{display:flex;flex-direction:column;gap:7px}.diagram-list-item{display:flex;align-items:center;border:1px solid var(--line);border-radius:10px}.diagram-list-item.active{border-color:#9cc4ff;background:var(--blue-soft)}.diagram-open{flex:1;min-width:0;display:flex;align-items:center;gap:11px;text-align:left;padding:10px;border:0;background:transparent;color:var(--text)}.diagram-open>span:nth-child(2){min-width:0;display:flex;flex-direction:column;gap:3px}.diagram-open strong{font-size:14px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.diagram-open small{font-size:11px;color:var(--muted)}.diagram-list-icon{width:35px;height:35px;display:grid;place-items:center;flex:none;border-radius:8px;background:var(--surface);color:var(--blue)}.tiny-icon{height:36px;width:36px;border:0;background:none;color:var(--muted)}.tiny-icon:hover{color:#bc3b3b}.inline-confirm{display:flex;align-items:center;gap:8px;padding:10px;border-radius:8px;background:#fff0f0;font-size:12px}.inline-confirm span{flex:1}.inline-confirm button{border:0;background:none;color:var(--text);font-weight:650}.inline-confirm button.danger{color:#bb3838}.help-body{font-size:14px;line-height:1.6;color:var(--muted)}.help-body p{margin:0}.help-body strong{color:var(--text)}.loading-screen,.home-screen{min-height:100dvh;display:flex;align-items:center;justify-content:center;gap:13px}.loading-screen{font-size:24px}.home-screen{flex-direction:column;padding:24px}.home-hero{text-align:center}.home-hero .brand-mark{margin:auto;width:55px;height:55px}.home-hero h1{font-size:42px;margin:12px 0 0;letter-spacing:-1.5px}.home-hero p{color:var(--muted);margin:4px 0 24px}.home-list{width:min(100%,500px);margin-top:35px}.home-list h2{font-size:17px}.home-list button{width:100%;display:flex;align-items:center;gap:10px;padding:15px;border:1px solid var(--line);background:var(--surface);color:var(--text);border-radius:10px;text-align:left;margin-bottom:6px}.home-list button svg:last-child{margin-left:auto}@media(min-width:840px){.build-layout{flex-direction:row}.canvas-area{padding:14px;min-width:0}.build-toolbar{order:2;width:110px;padding:14px 10px;border-top:0;border-left:1px solid var(--line);gap:13px}.tool-row{flex-direction:column;justify-content:start;align-items:stretch;gap:5px;min-height:0}.tool-button{min-width:0;min-height:63px}.toolbar-separator{height:1px;width:70%;margin:5px auto}.build-toolbar .copy-primary{margin-top:auto;height:auto;min-height:72px;flex-direction:column;gap:5px;padding:10px 6px;font-size:11px;line-height:1.2}.link-hint{font-size:11px;line-height:1.4}.layout-portrait .build-layout{flex-direction:column}.layout-portrait .build-toolbar{order:initial;width:auto;padding:10px 12px 12px;border-top:1px solid var(--line);border-left:0;gap:8px}.layout-portrait .tool-row{flex-direction:row;justify-content:center}.layout-portrait .tool-button{min-width:78px;min-height:58px}.layout-portrait .toolbar-separator{width:1px;height:38px;margin:0}.layout-portrait .build-toolbar .copy-primary{min-height:46px;flex-direction:row;font-size:15px}}@media(max-width:839px){.layout-landscape .build-layout{flex-direction:row}.layout-landscape .build-toolbar{order:2;width:89px;border-top:0;border-left:1px solid var(--line);padding:8px 5px}.layout-landscape .tool-row{flex-direction:column;gap:1px}.layout-landscape .tool-button{min-width:0;min-height:53px;padding:3px}.layout-landscape .toolbar-separator{width:60%;height:1px}.layout-landscape .copy-primary{height:auto;min-height:70px;flex-direction:column;gap:4px;font-size:11px;padding:5px}.layout-landscape .canvas-area{padding:8px}.properties-panel{position:absolute;z-index:6;top:20px;right:20px;bottom:20px;width:min(285px,calc(100% - 40px))}}@media(max-width:640px){.app-header{height:64px;padding:0 12px;grid-template-columns:auto minmax(90px,1fr) auto;gap:8px}.brand{gap:6px;font-size:19px}.brand-mark{width:31px;height:31px;border-radius:9px}.brand-mark svg{width:22px}.diagram-name,.diagram-name-input{height:36px;font-size:12px;padding:0 7px}.edit-pencil{font-size:15px}.saved-indicator{display:none}.header-actions .icon-button{width:36px;height:36px}.view-tabs{height:50px;padding:5px 8px 0;gap:3px}.view-tabs button{min-width:0;flex:1;font-size:14px}.canvas-area{padding:8px 8px 0}.canvas-wrap{border-radius:11px}.canvas-hint{display:none}.build-toolbar{padding:6px 8px max(8px,env(safe-area-inset-bottom));gap:7px}.tool-row{justify-content:space-between;gap:1px;min-height:55px}.tool-button{min-width:0;flex:1;padding:4px 1px;gap:3px}.tool-button span svg{width:21px;height:21px}.tool-button small{font-size:10px}.redo-tool{display:none}.toolbar-separator{height:30px;margin:0 1px}.copy-primary{height:44px;font-size:14px}.content-view{padding:18px 12px 24px;gap:13px}.view-heading h2{font-size:21px}.view-heading p{font-size:12px}.view-heading .button{font-size:12px;padding:0 10px}.preview-controls{padding:10px;gap:10px}.control-group select{min-width:140px}.preview-zoom{margin-left:0}.preview-stage{padding:12px;min-height:300px}.preview-paper{padding:15px}.preview-paper.portrait{min-height:430px}.preview-paper.landscape{min-height:260px}.code-editor textarea{padding:14px;font-size:12px}.compatibility{flex-direction:column;align-items:start}.modal-backdrop{padding:0;align-items:end}.modal-card{width:100%;max-height:90dvh;border-radius:18px 18px 0 0;padding-bottom:env(safe-area-inset-bottom)}.modal-handle{display:block;width:34px;height:4px;border-radius:4px;background:var(--line-strong);margin:9px auto 0}.modal-header{padding:12px 18px}.modal-body{padding:18px;gap:17px}.shape-grid{grid-template-columns:repeat(2,1fr)}}@media(max-height:600px)and (max-width:839px){.app-header{height:50px}.view-tabs{height:42px}.build-toolbar{gap:3px;padding-top:3px;padding-bottom:3px}.tool-row{min-height:43px}.tool-button{min-height:41px;flex-direction:row;gap:4px}.copy-primary{height:37px}.canvas-area{padding-top:4px}}@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation-duration:.01ms!important;transition-duration:.01ms!important;scroll-behavior:auto!important}}.react-flow__node-group{background:transparent!important;border:0!important;box-shadow:none!important;padding:0!important}.app-shell{min-height:0}:root[data-theme=dark] .tool-button{color:#b7c8e3}@media(min-width:840px)and (max-height:600px){.app-header{height:50px}.view-tabs{height:42px}.canvas-area{padding:5px}.canvas-hint{display:none}.build-toolbar{width:100px;padding:5px;gap:3px}.tool-row{gap:0}.tool-button{min-height:34px;padding:2px;flex-direction:row;gap:5px}.tool-button span svg{width:17px;height:17px}.tool-button small{font-size:10px}.toolbar-separator{margin:1px auto}.build-toolbar .copy-primary{min-height:44px;flex-direction:row;font-size:10px;padding:4px;gap:3px}.build-toolbar .copy-primary svg{width:15px;height:15px}}
