.case-editor{container-type:inline-size;color:var(--ink,#1b1f1d);font:400 13px/1.5 var(--sans,system-ui);min-width:0}
.case-editor *{box-sizing:border-box}.case-editor-header{display:flex;align-items:flex-end;justify-content:space-between;gap:1rem;padding-bottom:.65rem}.case-editor h3{font:400 1.7rem/1.2 var(--serif,Georgia);margin:0}.case-eyebrow{display:block;font-size:.65rem;text-transform:uppercase;letter-spacing:.13em;margin-bottom:.3rem;color:var(--ink-3,#646a66)}.case-component-id{font:.68rem var(--mono,monospace);color:var(--ink-3,#646a66);overflow-wrap:anywhere}.case-scope{font-size:.75rem;padding:.7rem .8rem;background:var(--accent-wash,#e3e9e2);margin:0 0 1rem;border-radius:5px}.case-scope button{border:0;background:none;text-decoration:underline;padding:0;margin-left:.2rem;font:inherit}
.case-editor-layout{display:grid;gap:1.25rem;min-width:0}.case-controls-column,.case-drawing-column{min-width:0}.case-editor h4{font:600 .76rem var(--sans,system-ui);margin:0 0 .6rem;letter-spacing:.02em}.case-group{border-top:1px solid var(--line,#ddd);padding:1rem 0}.case-group-title{display:flex;justify-content:space-between}.case-group-title span{font-size:.7rem;color:var(--ink-3,#646a66)}.case-group-title h4{margin-bottom:.5rem}.case-editor select,.case-editor input{width:100%;min-width:0;height:2.35rem;border:1px solid var(--line-2,#ccc);background:var(--surface,#fbfaf7);border-radius:4px;padding:.35rem .45rem;color:inherit;font:400 .76rem var(--sans,system-ui)}.case-editor select{margin-bottom:.65rem}.case-editor input:disabled{opacity:.5}.case-editor label{display:block;min-width:0;font-size:.68rem;color:var(--ink-2,#464d49)}.case-editor label input,.case-editor label select{margin-top:.25rem}.case-number-pair{display:grid;grid-template-columns:1fr 1fr;gap:.6rem;margin:.55rem 0}.case-binding{display:grid;grid-template-columns:1.4fr .9fr .9fr;gap:.35rem}.case-coordinate-label{display:block;font-size:.7rem;font-weight:600;margin:.4rem 0}.case-editor details{margin:.65rem 0}.case-editor summary{font-size:.73rem;cursor:pointer}.case-editor details[open] summary{margin-bottom:.6rem}.case-editor button{font:500 .72rem var(--sans,system-ui);border:1px solid var(--line-2,#ccc);background:var(--surface,#fbfaf7);border-radius:5px;padding:.6rem .65rem;color:inherit;min-height:2.25rem;touch-action:manipulation}.case-editor button:disabled{opacity:.4;cursor:not-allowed}.case-editor button:hover:not(:disabled){background:var(--accent-wash,#e3e9e2)}.case-editor .case-quiet-button{margin-top:.45rem;font-size:.68rem}.case-button-row{display:flex;flex-wrap:wrap;gap:.4rem;margin-top:.7rem}.case-caption{font-size:.68rem;line-height:1.5;color:var(--ink-3,#646a66);margin:.55rem 0 .9rem}.case-mode-switch{display:flex;gap:.25rem;margin-bottom:.55rem}.case-mode-switch button{flex:1;padding:.5rem}.case-mode-switch button[aria-pressed=true]{background:var(--accent,#2c4a3f);color:var(--surface,#fbfaf7);border-color:var(--accent,#2c4a3f)}.case-plan-frame{background:var(--surface,#fbfaf7);border:1px solid var(--line,#ddd);border-radius:7px;overflow:hidden}.case-plan-frame svg{display:block;width:100%;aspect-ratio:1;overflow:visible;touch-action:none}.case-axis{stroke:var(--line-2,#ccc);stroke-width:.05;stroke-dasharray:.5 .4;fill:none}.case-ghost{stroke:#a2aaa3;stroke-width:.065;fill:none}.case-active-wire{stroke:var(--accent,#2c4a3f);stroke-width:.17;fill:rgba(44,74,63,.045)}.case-control-line{stroke:#9b845c;stroke-width:.075;fill:none}.case-point{cursor:grab;outline:none}.case-point:active{cursor:grabbing}.case-point-hit{fill:transparent;stroke:none}.case-point-dot{stroke:var(--accent,#2c4a3f);stroke-width:.12;fill:var(--surface,#fbfaf7)}.case-point.is-anchor .case-point-dot{fill:var(--accent,#2c4a3f)}.case-point.is-selected .case-point-dot,.case-point:focus .case-point-dot{stroke:var(--focus,#2a5d86);stroke-width:.24;fill:#d5e6f1}.case-bore{fill:none;stroke:#bd7d56;stroke-width:.08;stroke-dasharray:.4 .3}.case-bore-label{font:.7px var(--mono,monospace);fill:#9e6b49}.case-strap-bay{stroke:#bd7d56;stroke-width:.14;stroke-dasharray:.5 .3;fill:none}.case-wire-key{display:flex;flex-wrap:wrap;gap:.35rem 1rem;font-size:.64rem;margin-bottom:1.3rem;color:var(--ink-3,#646a66)}.case-wire-key span:before{content:'';display:inline-block;width:1rem;height:2px;background:var(--accent,#2c4a3f);vertical-align:middle;margin-right:.3rem}.case-wire-key span:nth-child(2):before{background:#a2aaa3;height:1px}.case-wire-key span:nth-child(3):before{background:#bd7d56;height:1px}.case-section-view{display:block;width:100%;max-height:220px;overflow:visible;background:var(--surface,#fbfaf7);border:1px solid var(--line,#ddd);border-radius:5px}.case-section-guide{stroke:#677d6c;stroke-width:.08;fill:none;stroke-dasharray:.25 .2}.case-section-guide.is-north{stroke:#a6906f}.case-station-marker{cursor:pointer;outline:none}.case-station-marker path{stroke:#b1b8b2;stroke-width:.045}.case-station-marker circle{fill:var(--accent,#2c4a3f)}.case-station-marker text{font:.42px var(--mono,monospace);fill:#727a73}.case-station-marker.is-selected path,.case-station-marker:focus path{stroke:var(--focus,#2a5d86);stroke-width:.11}.case-station-marker.is-selected text{fill:var(--focus,#2a5d86)}.case-editor-status{margin:.8rem 0;padding:.7rem;color:var(--danger,#9a2b20);background:var(--danger-wash,#f6e3df);font-size:.75rem;border-radius:5px}.case-limit-note{border-top:1px solid var(--line,#ddd);padding-top:.8rem;font-size:.67rem;color:var(--ink-3,#646a66);margin:.5rem 0}.case-editor :focus-visible{outline:2px solid var(--focus,#2a5d86);outline-offset:2px}.case-editor .case-point:focus-visible{outline:none}@container(min-width:620px){.case-editor-layout{grid-template-columns:minmax(0,1.2fr) minmax(270px,1fr);align-items:start}.case-drawing-column{position:sticky;top:1rem}.case-plan-frame{min-height:300px}}
.case-editor-status[data-tone=info]{color:var(--accent,#2c4a3f);background:var(--accent-wash,#e3e9e2)}
