/* Operational Field Notes: graph editing should read as a clipped facilitator's wiring note, not a generic settings panel. */
.guided-route{display:grid;grid-template-columns:1fr 1fr;gap:5px;margin:8px 0;padding:7px;border:1px solid #e1dbce;border-radius:6px;background:#f8f6ef}.guided-route>span{grid-column:1/-1;color:#97948a;font:500 7px "DM Mono",monospace;letter-spacing:.08em}.guided-route button{border:1px solid #d4cab4;border-radius:5px;background:#fffdf7;color:#41423c;padding:6px;font:700 8px Manrope,sans-serif}.guided-route button:hover{border-color:#e19b8d;background:#fff5f1;color:#a64735}
.stage-card{display:block;padding:12px;overflow:visible}.stage-card.selected{padding:10px}.stage-card-open{display:flex;align-items:flex-start;width:100%;min-height:14px;padding:0;border:0;background:transparent;color:inherit;text-align:left}.stage-card-open:focus-visible{outline:2px solid var(--ember);outline-offset:5px;border-radius:3px}.stage-quick-actions{position:absolute;right:6px;top:5px;z-index:3;display:flex;gap:3px;opacity:0;pointer-events:none;transform:translateY(-2px);transition:opacity .15s ease,transform .15s ease}.stage-card:hover .stage-quick-actions,.stage-card.selected .stage-quick-actions,.stage-card.link-origin .stage-quick-actions{opacity:1;pointer-events:auto;transform:translateY(0)}.stage-quick-actions button{display:grid;place-items:center;width:18px;height:18px;padding:0;border:1px solid #d8d2c5;border-radius:4px;background:#fffdf7;color:#595a53;box-shadow:0 2px 5px rgba(37,38,33,.11)}.stage-quick-actions button:hover{border-color:#e19b8d;background:#fff7f3;color:#a94735}.stage-quick-actions button:focus-visible{outline:2px solid var(--ember);outline-offset:2px}.stage-quick-add{font:700 16px/.8 "DM Mono",monospace;color:#a94735!important;border-color:#d98a79!important;background:#fff7f3!important}.stage-quick-add:hover{color:#fff!important;border-color:#a94735!important;background:#a94735!important}.stage-quick-link svg{width:11px;height:11px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round}.stage-quick-delete{font:500 14px/.8 "DM Mono",monospace}.stage-card.selected em{right:52px}.stage-card .link-chip{right:52px}
.route-main,.route-branch,.route-rejoin{fill:none;stroke-width:2.8;stroke-linecap:round;stroke-linejoin:round;pointer-events:none}.route-main{stroke:#454640}.route-branch{stroke:var(--ember);stroke-dasharray:0}.route-rejoin{stroke:#849c2e;stroke-dasharray:5 4}.stage-card.link-origin{border-color:#3c3d37;box-shadow:0 0 0 4px rgba(69,70,64,.12),0 12px 26px rgba(45,46,41,.16)}.stage-card.link-target{border-color:#a6bf35;background:#fbfdf1;box-shadow:0 0 0 3px rgba(183,213,59,.22)}.link-chip{position:absolute;right:7px;top:-8px;padding:3px 4px;border-radius:3px;background:#41423c;color:#fffdf7;font:500 7px "DM Mono",monospace;letter-spacing:.08em}.link-target .link-chip{background:#849c2e}.graph-editor{position:relative;z-index:1;margin:13px 0 4px;border:1px dashed #d3ccbe;border-radius:8px 13px 9px 12px;background:rgba(250,248,241,.82);overflow:hidden}.graph-editor>header{display:flex;align-items:center;justify-content:space-between;padding:9px 10px}.graph-editor>header strong{display:block;margin-top:3px;color:#64645d;font:500 8px "DM Mono",monospace}.graph-editor>header button{border:1px solid #d3ccbe;border-radius:5px;background:#fffdf7;color:#51524b;padding:5px 7px;font:700 8px Manrope,sans-serif}.graph-controls{padding:0 10px 10px;border-top:1px solid #e3ded2}.graph-controls>p{margin:9px 0;color:#6d6c64;font-size:9px;line-height:1.5}.graph-controls>p b{color:#3e3f39}.link-kind{display:flex;gap:4px;align-items:center;margin:8px 0}.link-kind span{margin-right:auto;color:#97948a;font:500 7px "DM Mono",monospace;letter-spacing:.08em}.link-kind button{border:1px solid #d8d2c5;border-radius:5px;background:#fffdf7;color:#77766e;padding:4px 6px;font:500 8px "DM Mono",monospace}.link-kind button.active{border-color:#e19b8d;background:#fff5f1;color:#a64735}.link-start{display:flex;align-items:center;justify-content:space-between;width:100%;padding:8px;border:1px solid #d9d3c7;border-radius:6px;background:#fffdf7;color:#41423c;font-size:9px;font-weight:700}.link-start.active{border-color:#849c2e;background:#f6f9e9;color:#59641d}.link-start b{font-size:13px}.connection-list{display:grid;gap:4px;margin:9px 0;padding:0;list-style:none}.connection-list li{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:6px 0;border-bottom:1px solid #ece7dc}.connection-list li:last-child{border-bottom:0}.connection-list span{display:grid;gap:2px;min-width:0}.connection-list b{overflow:hidden;color:#51524b;text-overflow:ellipsis;white-space:nowrap;font-size:9px}.connection-list small{color:#96938a;font:400 7px "DM Mono",monospace}.connection-list button{display:grid;place-items:center;width:20px;height:20px;border:1px solid #e3bdb3;border-radius:50%;background:#fff8f5;color:#b94e38;font-size:13px}.connection-list .empty-link{display:block;padding:4px 0;border:0;color:#96938a;font:400 8px "DM Mono",monospace}.delete-stage{width:100%;margin-top:7px;border:0;border-top:1px solid #ecd7d0;background:transparent;color:#b34d39;padding:8px 0 1px;text-align:left;font:500 8px "DM Mono",monospace}.map-toolbar button[data-toggle-graph="true"]{border:1px solid #d8d2c5;border-radius:6px;padding:6px 8px;background:#fffdf7;color:#494a44;font-weight:700}.map-toolbar button[data-toggle-graph="true"]:hover{border-color:#e19b8d;color:#a64735}@media(max-width:780px){.graph-editor{margin-top:12px}.map-toolbar button[data-toggle-graph="true"]{font-size:8px}}
/* Operational Field Notes: a local bottom grip makes movement discoverable without changing the whole canvas into a drag mode. */
.stage-move-handle{position:absolute;z-index:5;left:50%;bottom:-9px;display:grid;place-items:center;width:32px;height:17px;padding:0;border:1px solid #cfc8b9;border-radius:4px 4px 7px 7px;background:#fffdf7;color:#67675f;cursor:grab;font:700 11px/1 "DM Mono",monospace;box-shadow:0 3px 6px rgba(37,38,33,.11);transform:translateX(-50%);opacity:.48;transition:opacity .16s cubic-bezier(.23,1,.32,1),background .16s cubic-bezier(.23,1,.32,1),color .16s cubic-bezier(.23,1,.32,1)}.stage-card:hover .stage-move-handle,.stage-card:focus-within .stage-move-handle{opacity:1}.stage-move-handle:hover,.stage-move-handle:focus-visible{border-color:#e19b8d;background:#fff5f1;color:#a64735;outline:none}.stage-move-handle:active{cursor:grabbing}.stage-card.is-dragging{z-index:60!important;cursor:grabbing;box-shadow:0 15px 30px rgba(45,46,41,.22);transition:none}.stage-lock-mark{position:absolute;z-index:5;left:calc(50% + 25px);bottom:-7px;display:grid;place-items:center;width:15px;height:15px;padding:0;border:0;border-radius:50%;background:#a64735;color:#fffdf7;cursor:pointer;font:700 8px/1 "DM Mono",monospace;box-shadow:0 2px 5px rgba(37,38,33,.14);transform:translateX(-50%)}.stage-lock-mark:hover,.stage-lock-mark:focus-visible{background:#7f392d;outline:2px solid #fffdf7;outline-offset:1px}.stage-card.position-locked .stage-index{color:#a64735}.notes-editor{display:grid;gap:10px;padding:3px 0 2px}.notes-editor header{display:grid;gap:4px}.notes-editor header span{color:#a8503c;font:500 8px "DM Mono",monospace;letter-spacing:.1em}.notes-editor header strong{color:#626159;font-size:10px;line-height:1.5}.notes-editor textarea{min-height:220px;width:100%;padding:10px;border:1px solid #ded7ca;border-radius:7px 11px 8px 11px;background:#fffdf7;color:#474842;font:400 11px/1.55 Manrope,sans-serif;outline:none;resize:vertical}.notes-editor textarea:focus{border-color:#e19b8d;box-shadow:0 0 0 3px rgba(230,93,70,.1)}.notes-editor footer{display:flex;align-items:center;justify-content:space-between;gap:8px;color:#929087;font-size:8px}.notes-editor footer button{border:0;border-radius:6px;padding:7px 9px;background:var(--ember);color:#fffdf7;font-size:9px;font-weight:700}@media(max-width:780px){.notes-editor textarea{min-height:180px}}
/* Process-card and wiring refinement: titles sit closer to their identifiers, while the new-link cue has stronger visual priority. */
.stage-title-rename{margin-top:2px}.stage-title-input{margin-top:2px}.link-kind span{color:#6f6e65;font-size:9px;font-weight:700;letter-spacing:.09em}
/* Stage-card ownership refinement: keep the owner badge inside the card, lower-right, and clear of the centred drag grip. */
.stage-owner{right:5px;bottom:4px}
