.surface{background:var(--color-canvas);touch-action:none;-webkit-user-select:none;user-select:none;position:absolute;inset:0;overflow:hidden}.surface.pan,.surface.pan .board *{cursor:grab}.surface.pan:active{cursor:grabbing}.board{outline:none;width:100%;height:100%;display:block;position:absolute;inset:0}.board:focus-visible{box-shadow:inset 0 0 0 2px var(--color-accent-soft);outline:none}.dot{fill:var(--color-grid-dot)}.node{cursor:move}.shape{fill:var(--node-fill);stroke:var(--node-stroke);stroke-width:var(--stroke-node);transition:stroke var(--dur-fast) var(--ease)}.node.selected .shape,.node.target .shape,.edge.selected .edge-line,.group.selected .group-surface,.connection{stroke:var(--color-accent);stroke-width:var(--stroke-selected)}.node.target .shape{fill:var(--color-accent-soft)}.node.unnamed:not(.selected,.target,.isNew,.shape-note) .shape{stroke:var(--node-stroke-strong)}.hover-zone,.handle-hit,.group-headingarea{fill:#0000}.node-text-frame,.edge-text-frame{pointer-events:none;overflow:visible}.node-text-surface,.edge-text-surface{box-sizing:border-box;justify-content:center;align-items:center;width:100%;height:100%;display:flex}.board.out .node-text{font-size:max(var(--node-font), calc(9px / var(--zoom)));line-height:var(--leading-node-tight);-webkit-line-clamp:2!important}.board.one .node-text{-webkit-line-clamp:1!important}.node-text,.textfield-surface{color:var(--node-text);font-size:calc(var(--node-font) * var(--name-fit,1));line-height:var(--leading-node);text-align:center;overflow-wrap:anywhere}.node-text{overflow-wrap:normal;-webkit-box-orient:vertical;display:-webkit-box;overflow:visible clip}.node-word{text-overflow:ellipsis;white-space:nowrap;vertical-align:top;max-width:100%;display:inline-block;overflow:hidden}.handle{cursor:crosshair}.edge-seg{stroke:#0000;stroke-width:max(12px, calc(12px / var(--zoom,1)))}.edge-seg.across{cursor:ns-resize}.edge-seg.along{cursor:ew-resize}.handle.edge-end{cursor:grab}.surface.read-only :is(.handle,.resize){display:none}.handle-hit{r:max(12px, calc(12px / var(--zoom,1)))}.handle-dot,.resizehandle{fill:var(--color-surface);stroke:var(--color-accent);stroke-width:1.5px}.handle-dot{transition:r var(--dur-fast) var(--ease)}.handle:hover .handle-dot{r:6px;fill:var(--color-accent)}.edge-end .handle-dot{r:calc(5px / var(--zoom,1));stroke-width:calc(2px / var(--zoom,1))}.edge-end:hover .handle-dot{r:calc(7px / var(--zoom,1))}.edge{cursor:pointer}.edge-hit{stroke:#0000;stroke-width:14px;fill:none}.edge-line{stroke:var(--edge);stroke-width:var(--stroke-edge);fill:none;stroke-linejoin:round}.arrowhead{fill:var(--edge)}.edge.rest .edge-line{stroke:var(--edge-rest);vector-effect:non-scaling-stroke}.edge.rest:not(.bundle):not(:hover):not(:focus-visible) .edge-text-frame,.edge.rest:not(.bundle) .edge-name-bar{display:none}.arrowhead.selected,.group.selected .group-heading{fill:var(--color-accent)}.connection{stroke-dasharray:5 4;fill:none;pointer-events:none}.edge-text{pointer-events:auto;background:var(--edge-label-bg);color:var(--color-text-muted);font-size:max(var(--text-xs), var(--edge-text-grown,0px));line-height:var(--leading-xs);padding:var(--hairline) var(--gap-inside);border-radius:var(--radius-sm);white-space:nowrap;max-width:var(--measure-xs);text-overflow:ellipsis;overflow:hidden}.edge.selected .edge-text{color:var(--color-accent)}.surface.method .board{--edge-text-grown:min(calc(var(--text-xs) / var(--zoom)), calc(var(--text-xs) / var(--rules-from)))}.edge-name-bar{fill:var(--color-text-muted);opacity:var(--dim);pointer-events:none}.far .edge-line{vector-effect:non-scaling-stroke}.surface.read-only:not(.method) .edge:not(:hover):not(.selected):not(:focus-visible) .edge-text-frame,.surface.method .edge.crowded:not(:hover):not(.selected):not(.lit):not(:focus-visible) .edge-text-frame{display:none}.edge:focus{outline:none}.edge:focus-visible .edge-line{stroke:var(--color-accent)}.edge-about-frame{pointer-events:none;display:none;overflow:visible}.edge:hover .edge-about-frame,.edge:focus-visible .edge-about-frame{display:block}.edge-about{width:max-content;max-width:var(--measure-xs);background:var(--color-surface);color:var(--color-text);font:var(--type-meta);padding:var(--gap-inside) var(--pad-control-x-sm);border-radius:var(--radius-sm);outline:var(--focus-ring);white-space:normal;margin:0 auto}.surface.read-only .node,.surface.read-only .group-headingarea{cursor:default}.selectionbox,.guide{stroke:var(--color-accent);stroke-width:1px;vector-effect:non-scaling-stroke}.selectionbox{fill:var(--color-accent-soft)}.layer{transform-origin:0 0;pointer-events:none;position:absolute;top:0;left:0}.textfield{pointer-events:auto;justify-content:center;align-items:center;display:flex;position:absolute}.textfield-surface{white-space:pre-wrap;min-width:2ch;max-height:100%;caret-color:var(--color-accent);-webkit-user-select:text;user-select:text;cursor:text;outline:none}.edge-editing .textfield-surface{background:var(--color-surface);color:var(--color-text);font-size:var(--text-xs);padding:var(--pad-track) var(--pad-control-x-sm);border-radius:var(--radius-sm);outline:var(--focus-ring);white-space:nowrap;min-width:6ch}.selectionbar{z-index:var(--z-panel);position:absolute;transform:translate(-50%,-100%)}.selectionbar.under{transform:translate(-50%)}body:has(:is(.top-left,.tree,.sidebar) .menu) .selectionbar{visibility:hidden}.selectionbar{width:max-content;max-width:calc(100% - 2 * var(--space-3))}.selectionbar>.canvas-bar{width:max-content;max-width:100%;position:static}.selectionbar .menu{--menu-align:center}.selectionbar .canvas-bar>.divider:first-child{display:none}.selectionbar .popover{top:calc(100% + var(--space-2));z-index:var(--z-menu);position:absolute;left:50%;transform:translate(-50%)}.icon>*{fill:none;stroke:currentColor;stroke-width:1.4px}.guide{stroke:var(--color-guide);pointer-events:none}.node.missing .shape{stroke-dasharray:5 4}.node.isNew .shape,.edge.isNew .edge-line{stroke:var(--color-accent);stroke-dasharray:5 4}.node.isNew .shape{fill:var(--color-accent-soft)}.node.isNew .node-text{color:var(--color-accent-text)}.node.removing .shape{stroke:var(--color-danger-text);stroke-dasharray:none}.node.removing .strike{stroke:var(--color-danger-text);stroke-width:var(--stroke-edge);pointer-events:none}.node.removing .node-text,.node.removing .note-words{text-decoration:line-through;-webkit-text-decoration-color:var(--color-danger-text);text-decoration-color:var(--color-danger-text)}.edge.removing .edge-line{stroke:var(--color-danger-text);stroke-dasharray:2 4}:is(.node,.group).context:not(.removing){opacity:.5}.board .node.shape-text .shape{fill:#0000;stroke:none}.board .node.selected.shape-text .shape,.board .node.target.shape-text .shape{stroke:var(--color-accent);stroke-width:var(--hairline);stroke-dasharray:var(--space-1) var(--space-1)}.node.shape-text .node-text{text-align:left}.board .node:is(.shape-line,.shape-line-up) .shape{fill:none;stroke-linecap:round}.board .node.unnamed:is(.shape-line,.shape-line-up):not(.selected,.isNew) .shape{stroke:var(--node-text)}.board.drawing-form,.board.drawing-form *{cursor:crosshair}.form-hit{fill:none;stroke:#0000;stroke-width:var(--space-4);stroke-linecap:round}.shape-note .shape{fill:var(--note-fill);stroke:none;filter:var(--note-shadow)}.shape-note .note-top{fill:var(--note-top);pointer-events:none}.node.selected.shape-note .shape{stroke:var(--color-accent);stroke-width:var(--hairline)}.note-text,.note-editing{padding:var(--pad-control-x);color:var(--note-text);text-align:center;font-size:clamp(var(--note-text-min), var(--note-size,var(--text-sm)), var(--note-text-max));line-height:var(--leading-note)}.note-text{align-items:center;width:100%;height:100%;display:flex;overflow:hidden}.note-words{white-space:pre-wrap;overflow-wrap:anywhere;width:100%;overflow:hidden}.note-words.clipped{-webkit-box-orient:vertical;display:-webkit-box}.note-editing .textfield-surface{overflow-wrap:anywhere;width:100%;min-height:1lh;color:inherit;font-size:inherit;line-height:inherit;text-align:inherit;overflow:auto}.group{cursor:move}.group-surface{fill:var(--group-fill);stroke:var(--group-edge);stroke-width:1px;stroke-dasharray:6 4;pointer-events:none}.group-border{fill:none;stroke:#0000;stroke-width:12px;pointer-events:stroke}.group-headingarea{pointer-events:all;cursor:text}.group-heading{fill:var(--color-text-muted);font-size:max(var(--text-sm), calc(11px / var(--zoom)));font-weight:var(--weight-bold);pointer-events:none}.group-heading.empty{font-weight:var(--weight-medium);opacity:.6}.group.selected .group-surface{stroke-dasharray:none}.group.isNew .group-surface{stroke:var(--color-accent)}.group-editing{justify-content:flex-start;align-items:center;padding-left:14px}.group-editing .textfield-surface{text-align:left;font-size:var(--text-sm);font-weight:var(--weight-bold);white-space:nowrap;color:var(--color-text)}.resize{cursor:nwse-resize}.cluster-surface{fill:var(--group-fill);stroke:var(--group-edge);stroke-width:calc(1px / var(--zoom));rx:calc(var(--radius-lg) / var(--zoom))}.cluster-name{fill:var(--color-text);font:var(--type-label);text-anchor:middle;dominant-baseline:central;pointer-events:none}.cluster-count{fill:var(--color-text-muted)}.cluster.lit .cluster-surface{stroke:var(--color-accent);stroke-width:calc(var(--stroke-selected) / var(--zoom));fill:color-mix(in srgb, var(--color-accent-soft) calc(var(--share,0) * 100%), var(--group-fill))}.cluster.lit .cluster-name{fill:var(--color-accent)}.clusters.lighting>.cluster:not(.lit){opacity:var(--dim)}.level-links{pointer-events:none}.level-link{fill:none;stroke:var(--edge);stroke-opacity:var(--dim);stroke-width:1px;vector-effect:non-scaling-stroke}.level-link-text{fill:var(--color-text-muted);font:var(--type-label);text-anchor:middle;dominant-baseline:central;paint-order:stroke;stroke:var(--color-canvas);stroke-width:var(--space-1)}.color-red{--f:var(--color-red)}.color-orange{--f:var(--color-orange)}.color-yellow{--f:var(--color-yellow)}.color-green{--f:var(--color-green)}.color-blue{--f:var(--color-blue)}.color-violet{--f:var(--color-violet)}.color-pink{--f:var(--color-pink)}.color-gray{--f:var(--color-gray)}.color-white{--f:var(--color-white)}.node[class*=color-] .shape{fill:color-mix(in srgb, var(--f) var(--color-tint), var(--node-fill));stroke:color-mix(in srgb, var(--f) 80%, var(--node-stroke-strong))}.node[class*=color-] .shape-lock{stroke:color-mix(in srgb, var(--f) 80%, var(--node-stroke-strong))}.node.shape-note[class*=color-] .shape{fill:color-mix(in srgb, var(--f) var(--color-tint-note), var(--node-fill));stroke:none}.node.selected.shape-note[class*=color-] .shape{stroke:var(--color-accent)}.node.shape-note[class*=color-] .note-text{color:var(--node-text)}.group[class*=color-] .group-surface{fill:color-mix(in srgb, var(--f) 8%, transparent);stroke:color-mix(in srgb, var(--f) 65%, var(--group-edge))}.group[class*=color-] .group-heading{fill:color-mix(in srgb, var(--f) 75%, var(--color-text))}.node.selected[class*=color-] .shape,.node.target[class*=color-] .shape,.node.isNew[class*=color-] .shape,.group.selected[class*=color-] .group-surface{stroke:var(--color-accent)}.node.color-white .shape{fill:var(--color-white);stroke:var(--node-stroke)}.node.shape-note.color-white .shape{fill:var(--color-white);stroke:none}.group.color-white .group-surface{fill:var(--color-white);stroke:var(--group-edge)}.group.color-white .group-heading{fill:var(--color-text)}.node.selected.color-white .shape,.node.selected.shape-note.color-white .shape,.group.selected.color-white .group-surface{stroke:var(--color-accent)}.board :is(.node,.group).weight-medium :is(.shape,.group-surface){stroke-width:var(--stroke-medium)}.board :is(.node,.group).weight-thick :is(.shape,.group-surface){stroke-width:var(--stroke-thick)}.board .node.align-left .node-text-surface{justify-content:flex-start}.board .node.align-right .node-text-surface{justify-content:flex-end}.board .node:is(.align-left,.align-right):not(.shape-text) :is(.node-text-surface,.note-text),.textfield:is(.align-left,.align-right):not(.shape-text) .textfield-surface{padding-inline:var(--pad-control-x)}:is(.node,.textfield).align-left :is(.node-text,.note-text,.note-words,.textfield-surface){text-align:left}:is(.node,.textfield).align-center :is(.node-text,.note-text,.note-words,.textfield-surface){text-align:center}:is(.node,.textfield).align-right :is(.node-text,.note-text,.note-words,.textfield-surface){text-align:right}.still .board{--edge-text-grown:calc(var(--text-xs) / var(--zoom))}.still{--dim:.45}.still-back{left:var(--gap-item);top:var(--gap-group);position:absolute}
