/* Controls are part of expandable nodes; the diagram retains readable 1:1 text sizing. */
.expanded-node-controls { box-sizing: border-box; width: 260px; border: 0; margin: 0; padding: 0 12px 10px; color: var(--text); font: 12px/1.4 system-ui; cursor: default; }
.expanded-node-controls legend { font-size: 11px; color: var(--muted); padding: 0 0 7px; }
.expanded-node-controls .node-equation { font-size: 11px; line-height: 1.5; margin-bottom: 9px; }
.expanded-node-controls .prior-argument { display: grid; grid-template-columns: 1fr 64px; gap: 4px 7px; margin-top: 10px; font-size: 12px; }
.expanded-node-controls .prior-argument > span, .expanded-node-controls .prior-argument > code, .expanded-node-controls .prior-argument > label { grid-column: 1/-1; }
.expanded-node-controls code { overflow-wrap: anywhere; }
.expanded-node-controls .prior-argument input[type=range] { width: 100%; min-width: 0; touch-action: none; }
.expanded-node-controls .prior-argument input[type=number] { width: 100%; min-width: 0; box-sizing: border-box; padding: 3px; font-size: 12px; }
.expanded-node-controls .fixed-choice { font-size: 12px; display: flex; gap: 4px; align-items: center; }
.expanded-node-controls .fixed-value { margin-top: 5px; padding: 3px; }
.expanded-node-controls .hint { font-size: 11px; margin: 9px 0 0; line-height: 1.4; }
.model-node foreignObject { overflow: hidden; touch-action: pan-x pan-y; }
.node-measure { position: absolute; left: -10000px; top: 0; width: 260px; visibility: hidden; }
.model-node:focus-within .node-shape { stroke-width: 3; }
.model-node [data-toggle-node]:focus { outline: none; }
.model-node:has([data-toggle-node]:focus) .node-shape { stroke-dasharray: 4 2; }
#model-graph { margin-inline: auto; }
.model-plates .plate-outline { fill: color-mix(in srgb, var(--muted) 3%, var(--surface)); stroke: var(--muted); stroke-width: 1.25; stroke-dasharray: none; }
.model-plates .plate-label { font: 13px ui-serif, Georgia, serif; }
.node-card-shape { fill: var(--surface); stroke: var(--border); stroke-width: 1; }
.node-observed circle.node-shape { fill: color-mix(in srgb, #4f9b81 28%, var(--surface)); }
.node-input circle.node-shape { fill: color-mix(in srgb, var(--muted) 22%, var(--surface)); }
.node-element { fill: var(--muted); font: 10px ui-monospace, monospace; pointer-events: none; }
.dependency-halo { fill:none; stroke:var(--surface); stroke-width:5; stroke-linejoin:round; }
.dependency-edge { opacity:.85; stroke-linejoin:round; }
.dimension-edge { stroke-dasharray:3 4; opacity:.55; }
.edge-label { fill:var(--muted); stroke:var(--surface); stroke-width:4; paint-order:stroke; font:10px system-ui; }
#diagram-notes { margin:.5rem 0; font-size:.75rem; }
.node-symbol { fill:var(--text); font:italic 20px Georgia, serif; pointer-events:none; }
