html,body,#root{height:100%;margin:0;font-family:system-ui,sans-serif}.sketch{touch-action:none;-webkit-user-select:none;user-select:none;background:#fff;width:100%;height:100%;position:fixed;inset:0}.sketch[data-pans]{cursor:grab}.sketch[data-panning]{cursor:grabbing}.grid{pointer-events:none}.grid-minor path,.grid-major path{fill:none;stroke-width:1px}.grid-minor path{stroke:#f1f1f4}.grid-major path{stroke:#e4e4ea}.selection-outline{vector-effect:non-scaling-stroke;fill:none;stroke:#4f46e5;stroke-width:1px;pointer-events:none}.resize-handle{vector-effect:non-scaling-stroke;fill:#fff;stroke:#4f46e5;stroke-width:1px}.resize-handle[data-handle=nw],.resize-handle[data-handle=se]{cursor:nwse-resize}.resize-handle[data-handle=ne],.resize-handle[data-handle=sw]{cursor:nesw-resize}.resize-handle[data-handle=n],.resize-handle[data-handle=s]{cursor:ns-resize}.resize-handle[data-handle=e],.resize-handle[data-handle=w]{cursor:ew-resize}.selection-box{vector-effect:non-scaling-stroke;fill:#4f46e514;stroke:#4f46e5;stroke-width:1px;pointer-events:none}.label-editor{transform-origin:0 0;box-sizing:border-box;white-space:pre-wrap;overflow-wrap:anywhere;tab-size:1;resize:none;background:0 0;border:none;outline:none;margin:0;padding:0;position:fixed;overflow:hidden}.toolbar{background:#fff;border:1px solid #ddd;border-radius:8px;gap:4px;padding:4px;display:flex;position:fixed;top:12px;left:50%;transform:translate(-50%)}.toolbar button{white-space:nowrap;cursor:pointer;background:0 0;border:none;border-radius:6px;padding:6px 10px}.toolbar button:has(.tool-icon){padding:6px;display:flex}.tool-icon path{fill:none;stroke:currentColor;stroke-width:1.25px;stroke-linejoin:round}.toolbar button[aria-pressed=true]{background:#e0e7ff}.toolbar button:disabled{color:#aaa;cursor:default}.toolbar-separator{background:#ddd;width:1px;margin:4px 2px}.style-panel{flex-direction:column;gap:8px;padding:8px;top:50%;left:auto;right:12px;transform:translateY(-50%)}.style-group-name{color:#555;margin:0 2px 4px;font-size:12px;display:block}.style-choices{grid-template-columns:repeat(4,auto);justify-content:start;gap:2px;display:grid}.style-choices[data-columns="3"]{grid-template-columns:repeat(3,auto)}.style-choices[data-columns="5"]{grid-template-columns:repeat(5,auto)}.toolbar button:has(.swatch,.stroke-icon,.alignment-icon,.routing-icon,.arrowhead-icon){padding:5px;display:flex}.swatch{box-sizing:border-box;border:1px solid #00000026;border-radius:4px;width:18px;height:18px;display:block}.swatch.transparent{background:linear-gradient(to top right,#0000 calc(50% - 1px),#e03131 calc(50% - 1px) calc(50% + 1px),#0000 calc(50% + 1px)),#fff}.stroke-icon line{stroke:currentColor;stroke-linecap:round}.routing-icon path,.arrowhead-icon :is(path,circle){fill:none;stroke:currentColor;stroke-width:1.5px;stroke-linecap:round;stroke-linejoin:round}.arrowhead-icon .filled{fill:currentColor}.alignment-icon path{fill:none;stroke:currentColor;stroke-width:1.5px;stroke-linecap:round}.alignment-frame{fill:none;stroke:currentColor;stroke-width:1px;opacity:.4}.sketches{flex-direction:column;gap:4px;max-width:calc(100% - 24px);display:flex;position:fixed;top:12px;left:12px}.sketches-bar{align-items:center;gap:8px;display:flex}.sketches button{cursor:pointer;background:0 0;border:none;border-radius:6px;padding:6px 10px}.sketches button:hover{background:#f1f1f4}.sketches-bar>button{background:#fff;border:1px solid #ddd}.sketch-name{color:#555;text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.sketch-list{background:#fff;border:1px solid #ddd;border-radius:8px;flex-direction:column;align-items:flex-start;gap:4px;width:280px;max-width:100%;max-height:calc(100vh - 80px);padding:4px;display:flex;overflow-y:auto}.sketch-list-actions{gap:4px;display:flex}.sketch-import-error{color:#c92a2a;overflow-wrap:anywhere;background:#fff5f5;border-radius:6px;align-self:stretch;margin:0;padding:6px 10px;font-size:13px}.sketch-list ul{align-self:stretch;margin:0;padding:0;list-style:none}.sketch-list li{border-radius:6px;align-items:center;display:flex}.sketch-list li[aria-current=true]{background:#e0e7ff}.sketch-list .sketch-open,.sketch-list input{text-align:left;text-overflow:ellipsis;white-space:nowrap;flex:1;min-width:0;overflow:hidden}.sketch-list input{font:inherit;margin:2px 4px;padding:4px 6px}.sketch-list li button:not(.sketch-open){color:#555;font-size:.85em}.arrow-selection{vector-effect:non-scaling-stroke;fill:none;stroke:#4f46e559;stroke-width:6px;stroke-linecap:round;pointer-events:none}.arrow-end-handle{vector-effect:non-scaling-stroke;fill:#fff;stroke:#4f46e5;stroke-width:1px;cursor:move}.segment-handle{vector-effect:non-scaling-stroke;fill:#fff;stroke:#4f46e5;stroke-width:1px}.segment-handle[data-segment-axis=x]{cursor:ew-resize}.segment-handle[data-segment-axis=y]{cursor:ns-resize}.port{vector-effect:non-scaling-stroke;fill:#fff;stroke:#4f46e5;stroke-width:1px;pointer-events:none}.port[data-snaps]{fill:#4f46e5}
