:root{--bg:#eef1f6;--panel:#fff;--text:#111827;--muted:#6b7280;--border:#e5e7eb;--accent:#4f46e5;--accent-soft:#eef2ff;--danger:#dc2626;--warning:#d97706;--ok:#059669;--info:#2563eb}*{box-sizing:border-box}html,body{height:100%;margin:0}body{font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;color:var(--text);background:var(--bg);overflow:hidden}.app{--left-panel-w:250px;--right-panel-w:320px;height:100vh;display:grid;position:relative;grid-template-columns:var(--left-panel-w) minmax(0,1fr) var(--right-panel-w);grid-template-rows:64px minmax(0,1fr)}header{grid-column:1/4;background:var(--panel);border-bottom:1px solid var(--border);display:flex;align-items:center;justify-content:space-between;gap:14px;padding:0 16px;z-index:20}.brand{display:flex;align-items:center;gap:10px;font-weight:800;white-space:nowrap}.brand-badge{width:34px;height:34px;border-radius:10px;background:var(--accent);color:#fff;display:grid;place-items:center;font-size:13px}.toolbar{display:flex;align-items:center;gap:7px;flex-wrap:wrap;justify-content:flex-end}button,.button-like{border:1px solid #d1d5db;background:#fff;color:#111827;border-radius:9px;padding:8px 10px;font-size:12.5px;font-weight:700;cursor:pointer;transition:.15s;white-space:nowrap;text-decoration:none}button:hover,.button-like:hover{background:#f9fafb;border-color:#9ca3af}button.primary{background:var(--accent);border-color:var(--accent);color:#fff}button.primary:hover{filter:brightness(.97)}button.danger{color:var(--danger)}button.active{background:var(--accent-soft);border-color:#a5b4fc;color:#3730a3}button:disabled{opacity:.45;cursor:not-allowed}.left,.right{background:var(--panel);padding:14px;overflow:auto;min-height:0}.left{border-right:1px solid var(--border)}.right{border-left:1px solid var(--border)}.canvas-wrap{position:relative;overflow:auto;background:#eef1f6;min-width:0;min-height:0}svg#canvas{display:block;width:2600px;height:1600px;background:#fff;-webkit-user-select:none;user-select:none;transform-origin:0 0}.section-title{font-size:10.5px;text-transform:uppercase;letter-spacing:.09em;color:#9ca3af;font-weight:800;margin:5px 0 9px}.palette{display:grid;grid-template-columns:1fr 1fr;gap:7px}.palette button{min-height:56px;display:flex;flex-direction:column;align-items:flex-start;justify-content:center;gap:6px;padding:9px;text-align:left}.palette .wide{grid-column:1/-1;min-height:auto;flex-direction:row;align-items:center}.icon{width:25px;height:18px;border:2px solid #6b7280;border-radius:5px;background:#fff;display:inline-block;position:relative;flex:0 0 auto}.icon.start,.icon.end{border-radius:999px}.icon.start{background:#ecfdf5;border-color:#10b981}.icon.end{background:#f3f4f6;border-color:#374151;border-width:3px}.icon.action{border-radius:999px;background:#f3f4f6}.icon.decision{width:17px;height:17px;transform:rotate(45deg);border-radius:2px;background:#fff7ed;border-color:#f59e0b;margin-left:4px}.icon.system{border-style:dashed;background:#eff6ff;border-color:#3b82f6}.icon.api{background:#f5f3ff;border-color:#8b5cf6}.icon.input{background:#f0fdfa;border-color:#14b8a6}.icon.modal{background:#fff1f2;border-color:#f43f5e}.icon.success{background:#ecfdf5;border-color:#10b981}.icon.error{background:#fef2f2;border-color:#ef4444}.icon.note{background:#fffbeb;border-color:#f59e0b;border-style:dashed}.icon.lane{width:30px;height:20px;border-color:#64748b;background:linear-gradient(90deg,#e2e8f0 0,#e2e8f0 30%,#f8fafc 30%,#f8fafc);position:relative}.icon.lane:after{content:"";position:absolute;left:30%;top:0;bottom:0;border-left:2px solid #94a3b8}.icon.section{width:28px;height:20px;border-style:dashed;border-color:#9ca3af;background:#f9fafb}.divider{height:1px;background:var(--border);margin:14px 0}.hint{font-size:11.5px;color:var(--muted);line-height:1.45;background:#f9fafb;border:1px solid var(--border);border-radius:10px;padding:10px;margin-top:13px}.kbd{font-family:ui-monospace,SFMono-Regular,Menlo,monospace;background:#e5e7eb;border-radius:5px;padding:1px 5px;font-size:10.5px;color:#374151}.node{cursor:grab}.node:active{cursor:grabbing}.node text{pointer-events:none}.selection-ring{display:none;fill:none;stroke:var(--accent);stroke-width:3;stroke-dasharray:7 4;pointer-events:none}.node.selected .selection-ring{display:block}.marquee{fill:#4f46e514;stroke:#4f46e5;stroke-width:2;stroke-dasharray:7 5;pointer-events:none}.group-selection-info{position:fixed;left:50%;top:74px;transform:translate(-50%);background:#111827;color:#fff;border-radius:999px;padding:6px 10px;font-size:11.5px;font-weight:800;z-index:40;display:none}.group-selection-info.show{display:block}.inline-editor{position:fixed;z-index:1000;border:2px solid #4f46e5;border-radius:8px;background:#fff;color:#111827;font:700 14px Inter,ui-sans-serif,system-ui,sans-serif;text-align:center;outline:none;padding:6px 9px;box-shadow:0 10px 28px #1118272e}.group-outline{fill:#4f46e506;stroke:#c7d2fe;stroke-width:2;stroke-dasharray:8 6;pointer-events:none}.group-outline.selected{stroke:#4f46e5;stroke-width:3;fill:#4f46e50b}.group-label{font-size:10px;font-weight:800;fill:#6366f1;letter-spacing:.04em;pointer-events:none}.autoconnect-handle{cursor:pointer}.autoconnect-handle .handle-bg{fill:#fff;stroke:#c7d2fe;stroke-width:1.5}.autoconnect-handle:hover .handle-bg{fill:#eef2ff;stroke:#4f46e5}.autoconnect-handle .handle-arrow{fill:#6366f1}.connection-dot{cursor:crosshair}.connection-dot circle{fill:#fff;stroke:#6366f1;stroke-width:2}.connection-dot:hover circle{fill:#eef2ff;stroke:#4338ca;stroke-width:3}.node.connect-target>rect:first-child,.node.connect-target>polygon:first-child{stroke:#6366f1!important;stroke-width:3!important;stroke-dasharray:6 4}.quick-shape-menu{position:fixed;z-index:1100;display:none;background:#fff;border:1px solid #d1d5db;border-radius:12px;padding:7px;box-shadow:0 14px 36px #11182733;gap:5px;align-items:center}.quick-shape-menu.show{display:flex}.quick-shape-menu button{min-width:66px;padding:7px 8px;font-size:11px}.quick-shape-menu .menu-title{font-size:10px;color:#9ca3af;font-weight:800;padding:0 4px;text-transform:uppercase;letter-spacing:.06em}.app.focus-mode{grid-template-columns:0 minmax(0,1fr) 0}.app.focus-mode .left,.app.focus-mode .right{display:none}.app.focus-mode .canvas-wrap{grid-column:1/4}.focus-drawer-btn{display:none;position:absolute;z-index:25;top:14px;border-radius:999px;padding:7px 10px;background:#111827;color:#fff;border:0;box-shadow:0 6px 18px #1118272e}.focus-drawer-btn.left-drawer{left:14px}.focus-drawer-btn.right-drawer{right:14px}.app.focus-mode .focus-drawer-btn{display:block}.app.focus-mode.drawer-left-open .left,.app.focus-mode.drawer-right-open .right{display:block;position:fixed;top:64px;bottom:0;z-index:60;box-shadow:0 16px 40px #1118272e}.app.focus-mode.drawer-left-open .left{left:0}.app.focus-mode.drawer-right-open .right{right:0}.canvas-controls{position:absolute;z-index:24;right:14px;bottom:14px;display:flex;align-items:center;gap:5px;background:#fffffff5;border:1px solid #d1d5db;border-radius:12px;padding:6px;box-shadow:0 8px 22px #1118271f}.canvas-controls button{padding:7px 9px}.canvas-controls .zoom-slider{width:110px;accent-color:var(--accent)}.canvas-controls .mini-label{font-size:10.5px;color:#6b7280;font-weight:800;padding:0 3px}.canvas-controls button.active{background:var(--accent-soft);color:#3730a3;border-color:#a5b4fc}.canvas-wrap.hand-mode{cursor:grab}.canvas-wrap.hand-mode.panning{cursor:grabbing}.minimap{position:absolute;left:14px;bottom:14px;width:220px;height:145px;background:#fffffff5;border:1px solid #d1d5db;border-radius:12px;box-shadow:0 8px 22px #1118271f;z-index:23;overflow:hidden;display:none}.minimap.show{display:block}.minimap-head{height:28px;padding:6px 9px;font-size:10.5px;font-weight:800;color:#6b7280;border-bottom:1px solid #e5e7eb;display:flex;justify-content:space-between;align-items:center}.minimap svg{width:100%;height:116px;background:#fff;display:block;cursor:crosshair}.minimap-viewport{fill:#4f46e514;stroke:#4f46e5;stroke-width:10;vector-effect:non-scaling-stroke;pointer-events:none}.minimap-node{fill:#e5e7eb;stroke:#9ca3af;stroke-width:5;vector-effect:non-scaling-stroke}.minimap-edge{fill:none;stroke:#cbd5e1;stroke-width:5;vector-effect:non-scaling-stroke}.snap-guide{stroke:#ec4899;stroke-width:1.5;stroke-dasharray:5 4;pointer-events:none;vector-effect:non-scaling-stroke}.version-actions{display:flex;gap:6px;margin-bottom:10px}.version-actions input{min-width:0;flex:1;border:1px solid #d1d5db;border-radius:8px;padding:8px;font-size:12px}.version-list{display:grid;gap:7px}.version-item{border:1px solid var(--border);border-radius:10px;padding:9px;background:#fff}.version-item.current{border-color:#a5b4fc;background:#eef2ff}.version-top{display:flex;justify-content:space-between;gap:8px;align-items:center}.version-name{font-size:12px;font-weight:800;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.version-time{font-size:10px;color:#9ca3af;margin-top:3px}.version-buttons{display:flex;gap:5px;margin-top:7px}.version-buttons button{padding:5px 7px;font-size:10.5px}.history-note{font-size:10.5px;color:#6b7280;line-height:1.4;margin-bottom:10px}.canvas-wrap{touch-action:none}.validation-ring{fill:none;stroke-width:4;pointer-events:none}.validation-ring.error{stroke:var(--danger)}.validation-ring.warning{stroke:var(--warning)}.validation-ring.info{stroke:var(--info)}.edge-hit{stroke:transparent;stroke-width:18;fill:none;cursor:pointer}.edge-visible{stroke:#9ca3af;stroke-width:2.2;fill:none;pointer-events:none}.edge.selected .edge-visible{stroke:var(--accent);stroke-width:3}.edge.validation-error .edge-visible{stroke:var(--danger)}.edge.validation-warning .edge-visible{stroke:var(--warning)}.edge.validation-info .edge-visible{stroke:var(--info)}.edge-label{font-size:12px;fill:#374151;font-weight:700;pointer-events:none}.edge-label-bg{fill:#fff;stroke:#e5e7eb;pointer-events:none}.field{display:grid;gap:6px;margin-bottom:11px}.field label{font-size:11.5px;color:#6b7280;font-weight:750}.field input,.field textarea,.field select{width:100%;border:1px solid #d1d5db;border-radius:8px;padding:8px 9px;font:inherit;font-size:12.5px;background:#fff;color:#111827}.field textarea{min-height:70px;resize:vertical}.row{display:flex;gap:8px;flex-wrap:wrap}.row>*{flex:1 1 120px;min-width:0}.empty{color:#9ca3af;font-size:12.5px;line-height:1.5;padding:7px 0}.status{position:fixed;left:266px;bottom:16px;background:#111827ed;color:#fff;font-size:12px;padding:8px 10px;border-radius:8px;opacity:0;transform:translateY(6px);transition:.2s;pointer-events:none;z-index:30}.status.show{opacity:1;transform:none}.file-input{display:none}.badge{display:inline-flex;align-items:center;gap:5px;padding:3px 7px;border-radius:999px;font-size:10.5px;font-weight:800}.badge.error{background:#fef2f2;color:#b91c1c}.badge.warning{background:#fff7ed;color:#b45309}.badge.info{background:#eff6ff;color:#1d4ed8}.badge.ok{background:#ecfdf5;color:#047857}.validation-summary{display:flex;gap:6px;flex-wrap:wrap;margin-bottom:10px}.issue-list{display:grid;gap:7px}.issue{border:1px solid var(--border);border-radius:9px;padding:9px;background:#fff;cursor:pointer}.issue:hover{background:#f9fafb}.issue-top{display:flex;gap:6px;align-items:center;margin-bottom:4px}.issue-title{font-size:11.5px;font-weight:800}.issue-msg{font-size:11.5px;color:#4b5563;line-height:1.4}.small{font-size:10.5px;color:#9ca3af}.tabs{display:flex;gap:6px;margin-bottom:12px}.tab{flex:1}.tab.active{background:var(--accent-soft);color:#3730a3;border-color:#c7d2fe}.zoom-box{display:flex;align-items:center;gap:4px}.zoom-label{font-size:11px;color:#6b7280;min-width:44px;text-align:center}.legend{display:grid;gap:6px;font-size:11px;color:#6b7280}.legend-row{display:flex;align-items:center;gap:7px}.dot{width:8px;height:8px;border-radius:999px;background:#9ca3af}.dot.error{background:var(--danger)}.dot.warning{background:var(--warning)}.dot.info{background:var(--info)}.print-title{display:none}.panel-resizer{position:absolute;top:64px;bottom:0;width:10px;z-index:35;cursor:col-resize;touch-action:none;background:transparent}.panel-resizer:after{content:"";position:absolute;top:0;bottom:0;left:4px;width:2px;background:transparent;transition:background .15s}.panel-resizer:hover:after,.panel-resizer.dragging:after{background:var(--accent)}.panel-resizer.left-resizer{left:calc(var(--left-panel-w) - 5px)}.panel-resizer.right-resizer{right:calc(var(--right-panel-w) - 5px)}.app.focus-mode .panel-resizer{display:none}.app.focus-mode.drawer-left-open .left{width:var(--left-panel-w)}.app.focus-mode.drawer-right-open .right{width:var(--right-panel-w)}.palette button[draggable=true]{cursor:grab}.palette button[draggable=true]:active{cursor:grabbing}.palette button.dragging-source{opacity:.5}.canvas-wrap.palette-drag-over{outline:3px solid rgba(79,70,229,.45);outline-offset:-3px;background:#f8f9ff}.canvas-wrap.palette-drag-over:after{content:"Отпусти, чтобы добавить элемент";position:absolute;z-index:40;left:50%;top:18px;transform:translate(-50%);padding:7px 11px;border-radius:999px;background:#111827;color:#fff;font-size:11px;font-weight:800;pointer-events:none}.left,.right{min-width:0;overflow-x:hidden}.left>*,.right>*{min-width:0;max-width:100%}.palette{grid-template-columns:repeat(2,minmax(0,1fr))}.palette button{min-width:0;width:100%;overflow:hidden}.palette button span:last-child{min-width:0;max-width:100%;white-space:normal;overflow-wrap:anywhere;line-height:1.2}.toolbar{min-width:0}.field input,.field textarea,.field select{min-width:0;max-width:100%}.tabs{min-width:0}.tab{min-width:0;overflow:hidden;text-overflow:ellipsis}@container sidebar (max-width: 220px){.palette{grid-template-columns:1fr}}.left,.right{container-type:inline-size;container-name:sidebar}.left,.right{width:auto;max-width:100%;overscroll-behavior:contain}.left .palette,.right .palette,.left .tabs,.right .tabs,.left .row,.right .row,.left .validation-summary,.right .validation-summary,.left button,.right button,.left .button-like,.right .button-like{max-width:100%}.left .hint,.right .hint,.left .empty,.right .empty,.left .issue,.right .issue{overflow-wrap:anywhere;word-break:normal}@container sidebar (max-width: 230px){.palette{grid-template-columns:1fr}.palette .wide{grid-column:auto}.tabs,.row{flex-direction:column}.row>*{flex-basis:auto;width:100%}}@container sidebar (max-width: 185px){.left,.right{padding:10px}.section-title{font-size:9.5px}.palette button{padding:8px;min-height:48px}.hint{padding:8px;font-size:10.5px}}.node.selected{cursor:grab}.node.selected:active{cursor:grabbing}.autoconnect-handle,.connection-dot{cursor:pointer}.node-port{cursor:crosshair}.node-port .port-halo{filter:drop-shadow(0 1px 1px rgba(17,24,39,.12))}.node-port .port-halo{fill:#fff;stroke:#4f46e5;stroke-width:2.5}.node-port:hover .port-halo{fill:#eef2ff;stroke:#3730a3;stroke-width:3}.node-port .port-core,.node-port .port-arrow{fill:#4f46e5;pointer-events:none}.node-port:hover .port-arrow{fill:#3730a3}.node.selected .node-port{display:block}.connection-preview{fill:none;stroke:#4f46e5;stroke-width:3;stroke-dasharray:7 4;pointer-events:none}.node.connection-drop-target>rect:first-child,.node.connection-drop-target>polygon:first-child{stroke:#4f46e5!important;stroke-width:4!important}.node.connection-drop-target .selection-ring{display:block;stroke:#4f46e5;stroke-dasharray:none}.node-port{touch-action:none}header{overflow:hidden}header .toolbar{flex-wrap:nowrap;overflow-x:auto;overflow-y:hidden;min-width:0;scrollbar-width:thin}header .toolbar>*{flex:0 0 auto}.quick-shape-menu{max-width:min(620px,calc(100vw - 20px));flex-wrap:wrap}.quick-shape-menu.edge-insert-menu{border-color:#a5b4fc}.quick-shape-menu.edge-insert-menu .menu-title{color:#4338ca}.edge.selected .edge-visible{stroke:#4f46e5;stroke-width:3.2}.quick-shape-menu button[hidden]{display:none!important}.edge-visible,.connection-preview{stroke-linejoin:round;stroke-linecap:round}.decision-branches-action{cursor:pointer}.decision-branches-action rect{fill:#fff;stroke:#f59e0b;stroke-width:1.6}.decision-branches-action:hover rect{fill:#fff7ed;stroke:#d97706}.decision-branches-action text{fill:#92400e;font-size:11px;font-weight:800;pointer-events:none}.edge-visible,.edge-hit{vector-effect:non-scaling-stroke}.edge-visible{shape-rendering:geometricPrecision;stroke-linejoin:miter;stroke-linecap:square}.edge-label,.edge-label-bg{cursor:text}.inline-editor.edge-label-editor{min-width:96px;max-width:260px;text-align:center;font-weight:800;border-color:#818cf8;box-shadow:0 8px 24px #4f46e52e}.canvas-controls #magnetBtn.active{background:var(--accent-soft);color:#3730a3;border-color:#a5b4fc}header,.left,.right,.panel-resizer{transform:none!important;zoom:1!important}.canvas-wrap{contain:layout paint}svg#canvas{transform:none!important}.edge-route-handle{pointer-events:all}.edge-route-handle.horizontal{cursor:ns-resize}.edge-route-handle.vertical{cursor:ew-resize}.edge-route-handle circle{fill:#fff;stroke:#4f46e5;stroke-width:2;vector-effect:non-scaling-stroke;filter:drop-shadow(0 1px 2px rgba(17,24,39,.18))}.edge-route-handle:hover circle{fill:#eef2ff;stroke:#3730a3;stroke-width:3}.edge-route-handle line{stroke:#4f46e5;stroke-width:1.6;pointer-events:none;vector-effect:non-scaling-stroke}.canvas-size-badge{position:absolute;left:14px;bottom:14px;z-index:22;padding:5px 8px;border-radius:8px;background:#ffffffe6;border:1px solid #e5e7eb;color:#6b7280;font-size:10px;font-weight:700;pointer-events:none;opacity:0;transition:opacity .2s}.canvas-size-badge.show{opacity:1}.subprocess-badge{cursor:pointer}.subprocess-badge rect{fill:#111827;stroke:#fff;stroke-width:2;vector-effect:non-scaling-stroke}.subprocess-badge text{fill:#fff;font-size:10px;font-weight:900;pointer-events:none}.subprocess-badge:hover rect{fill:#4f46e5}.diagram-breadcrumb{display:none;position:absolute;z-index:28;left:14px;top:14px;max-width:min(70%,760px);align-items:center;gap:7px;padding:7px 9px;border:1px solid #d1d5db;border-radius:11px;background:#fffffff5;box-shadow:0 6px 18px #1118271a;font-size:11px}.diagram-breadcrumb.show{display:flex}.diagram-breadcrumb .crumbs{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#4b5563;font-weight:700}.diagram-breadcrumb button{padding:6px 8px}.process-panel{margin-top:12px;padding:10px;border:1px solid #dbeafe;background:#f8fbff;border-radius:10px}.process-panel .process-title{font-size:10px;text-transform:uppercase;letter-spacing:.08em;color:#64748b;font-weight:900;margin-bottom:8px}.process-actions{display:flex;gap:6px;flex-wrap:wrap;margin-top:8px}.process-actions button{flex:1 1 100px;min-width:0}.process-link-hint{font-size:10.5px;color:#64748b;line-height:1.4;margin-top:6px}.process-modal{display:none;position:fixed;top:0;right:0;bottom:0;left:0;z-index:1500;background:#0f172a75;padding:32px;align-items:center;justify-content:center}.process-modal.show{display:flex}.process-modal-card{width:min(1100px,96vw);height:min(760px,90vh);background:#fff;border-radius:16px;box-shadow:0 28px 90px #0f172a4d;display:flex;flex-direction:column;overflow:hidden}.process-modal-head{display:flex;align-items:center;gap:9px;padding:12px 14px;border-bottom:1px solid #e5e7eb;min-width:0}.process-modal-head .process-modal-title{font-weight:900;min-width:120px;flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.process-preview-controls{display:flex;align-items:center;gap:5px;flex:0 0 auto}.process-preview-controls button{padding:7px 9px}.process-preview-zoom-slider{width:100px;accent-color:var(--accent);flex:0 1 100px}.process-preview-controls button.active{background:var(--accent-soft);color:#3730a3;border-color:#a5b4fc}.process-preview-zoom-label{min-width:46px;text-align:center;font-size:11px;font-weight:800;color:#4b5563}.process-modal-body{flex:1;min-height:0;overflow:auto;background:#f8fafc;padding:16px;position:relative;overscroll-behavior:contain}.process-modal-body.preview-hand{cursor:grab}.process-modal-body.preview-panning{cursor:grabbing;-webkit-user-select:none;user-select:none}.process-modal-canvas{background:#fff;border:1px solid #e5e7eb;border-radius:12px;position:relative;overflow:visible;box-sizing:border-box}.process-modal-canvas svg{display:block;position:absolute;max-width:none;min-width:0;height:auto;transform:none!important;transform-origin:0 0;-webkit-user-select:none;user-select:none}@media(max-width:800px){.process-modal-head{flex-wrap:wrap}.process-modal-head .process-modal-title{order:1;flex:1 1 180px}.process-preview-controls{order:3;width:100%}#processModalEditBtn,#processModalCloseBtn{order:2}}.process-preview-link{cursor:pointer}.process-preview-link .process-preview-badge{fill:#111827}.process-preview-link:hover .process-preview-badge{fill:#4f46e5}.print-book{display:none}.node.lane-node{cursor:grab}.node.lane-node .lane-body{fill:#fbfdff;stroke:#cbd5e1;stroke-width:1.5}.node.lane-node .lane-header{fill:#eef2f7;stroke:#cbd5e1;stroke-width:1.5}.node.lane-node .lane-title{fill:#334155;font-size:14px;font-weight:900;pointer-events:none}.node.lane-node .lane-orientation-mark{fill:#94a3b8;font-size:9px;font-weight:800;pointer-events:none;letter-spacing:.08em}.lane-resize-handle{cursor:nwse-resize}.lane-resize-handle.edge-x{cursor:ew-resize}.lane-resize-handle.edge-y{cursor:ns-resize}.lane-resize-handle rect{fill:#fff;stroke:#4f46e5;stroke-width:2;vector-effect:non-scaling-stroke}.lane-resize-handle:hover rect{fill:#eef2ff;stroke:#3730a3}.lane-add-next{cursor:pointer}.lane-add-next rect{fill:#fff;stroke:#64748b;stroke-width:1.5;vector-effect:non-scaling-stroke}.lane-add-next:hover rect{fill:#f8fafc;stroke:#4f46e5}.lane-add-next text{font-size:10px;font-weight:900;fill:#475569;pointer-events:none}.edge-endpoint-handle{cursor:crosshair}.edge-endpoint-handle .endpoint-halo{fill:#fff;stroke:#4f46e5;stroke-width:2.4;vector-effect:non-scaling-stroke}.edge-endpoint-handle .endpoint-core{fill:#4f46e5;pointer-events:none}.edge-endpoint-handle:hover .endpoint-halo{fill:#eef2ff;stroke:#3730a3;stroke-width:3}.edge-endpoint-handle.source .endpoint-halo{stroke:#64748b}.edge-endpoint-handle.source .endpoint-core{fill:#64748b}.lane-linked-note{margin-top:8px;padding:8px 9px;border-radius:8px;background:#f8fafc;border:1px solid #e2e8f0;color:#64748b;font-size:10.5px;line-height:1.35}.lane-node{cursor:ns-resize}.lane-node.lane-vertical{cursor:ew-resize}.lane-node:active{cursor:grabbing}.lane-reorder-hint{margin-top:8px;padding:8px 9px;border-radius:8px;background:#eef2ff;border:1px solid #c7d2fe;color:#4338ca;font-size:10.5px;line-height:1.35}@media print{@page{size:A4 landscape;margin:10mm}.app,.process-modal,.quick-shape-menu,.inline-editor,.group-selection-info{display:none!important}.print-book{display:block!important}.print-sheet{break-after:page;page-break-after:always;min-height:180mm;position:relative}.print-sheet:last-child{break-after:auto;page-break-after:auto}.print-sheet-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin:0 0 8mm;font-family:Arial,sans-serif}.print-sheet-title{font-size:18pt;font-weight:800;color:#111827}.print-sheet-meta{font-size:9pt;color:#6b7280;margin-top:2mm}.print-sheet-link{font-size:9pt;color:#3730a3;text-decoration:none}.print-diagram{width:100%;height:155mm;display:flex;align-items:center;justify-content:center}.print-diagram svg{width:100%;height:100%;display:block}}@media print{.canvas-size-badge{display:none!important}body{overflow:visible;background:#fff}.app{display:block;height:auto}header,.left,.right,.status,.quick-shape-menu,.inline-editor,#autoconnectLayer,#edgeControlsLayer,#guidesLayer,#groupsLayer,#marqueeLayer,.canvas-controls,.minimap,.focus-drawer-btn{display:none!important}.canvas-wrap{overflow:visible;background:#fff}svg#canvas{width:100%;height:auto}.print-title{display:block}}.db-save-status{display:inline-flex;align-items:center;justify-content:center;min-width:22px;height:28px;padding:0 6px;border-radius:8px;font-size:12px;font-weight:800;color:#047857;background:#ecfdf5;border:1px solid #a7f3d0}#libraryPane .version-actions{margin-bottom:10px}#libraryPane .version-actions button{flex:1}
