.diagram-shell { display: flex; height: 100%; } .diagram-canvas { flex: 1; min-width: 0; height: 100%; } .diagram-toolbar { display: flex; flex-wrap: wrap; gap: 8px; max-width: 280px; } /* * opacity/pointer-events, not display:none — hiding via display collapses the * handle to 0x0, and xyflow computes edge paths from the handle's actual * layout position, so every edge that references a handle id would snap to * a degenerate point the moment view mode hid it. */ .diagram-flow--view-mode .react-flow__handle { opacity: 0; pointer-events: none; } /* * React Flow's built-in disabled styling only dims children (for the * zoom/fit/lock icon buttons) — our undo/redo controls use plain text glyphs, * so they need their own dimming or they'd look clickable while inert. */ .react-flow__controls-button:disabled { opacity: 0.4; } .diagram-alignment-guide { position: absolute; background: #ff0072; pointer-events: none; z-index: 1000; } .diagram-node { position: relative; width: 100%; height: 100%; padding: 6px 10px; border: 1px solid #555; border-radius: 6px; background: canvas; color: canvastext; font-size: 12px; text-align: center; box-sizing: border-box; display: flex; align-items: center; justify-content: center; } .diagram-node__label { color: white; white-space: pre-wrap; overflow-wrap: break-word; } .diagram-node__badge { position: absolute; top: -8px; right: -8px; width: 16px; height: 16px; border-radius: 50%; border: 1px solid #555; background: canvas; font-size: 11px; line-height: 14px; display: flex; align-items: center; justify-content: center; z-index: 1; } .diagram-node__caption { position: absolute; top: 100%; left: 50%; transform: translateX(-50%); margin-top: 4px; max-width: 120px; font-size: 11px; text-align: center; color: canvastext; white-space: pre-wrap; } .diagram-node--circle { padding: 0; border-radius: 50%; } .diagram-node--startEvent { border-width: 1px; } .diagram-node--endEvent { border-width: 3px; } .diagram-node--intermediateEvent { border-width: 1px; } .diagram-node--intermediateEvent::after { content: ''; position: absolute; inset: 3px; border: 1px solid #555; border-radius: 50%; } .diagram-node--gateway-outer { position: relative; width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; } /* Diamond via clip-path on an unrotated box — see the comment in nodes.tsx for why. */ .diagram-node--diamond-bg { position: absolute; inset: 0; border: 1px solid #555; box-sizing: border-box; clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%); } .diagram-node__icon { position: relative; display: inline-block; color: white; font-size: 18px; font-weight: 700; line-height: 1; } .diagram-aside { width: 340px; flex-shrink: 0; border-left: 1px solid color-mix(in srgb, currentcolor 20%, transparent); padding: 12px; overflow: auto; display: flex; flex-direction: column; gap: 16px; } .diagram-aside__hint { opacity: 0.7; font-size: 13px; } .diagram-aside__json summary { cursor: pointer; font-size: 13px; text-transform: uppercase; letter-spacing: 0.04em; opacity: 0.7; } .diagram-aside__json pre { font-size: 12px; white-space: pre-wrap; word-break: break-word; } .node-inspector { display: flex; flex-direction: column; gap: 10px; } .node-inspector__header { display: flex; align-items: center; justify-content: space-between; } .node-inspector__toolbar { display: flex; gap: 8px; } .node-inspector__field { display: flex; flex-direction: column; gap: 4px; } .node-inspector__label, .node-inspector__description { white-space: pre-wrap; } .node-inspector__meta { margin: 0; font-size: 12px; display: grid; grid-template-columns: auto 1fr; gap: 2px 8px; } .node-inspector__meta dt { opacity: 0.7; } .node-inspector__meta dd { margin: 0; }