.editor .paneHead{padding-bottom:12px}
.partPalette{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:4px;margin:0 12px 12px}
.partPalette button{display:flex;align-items:center;gap:9px;min-height:32px;padding:5px 9px;text-align:left;border-radius:5px;color:#42594c;font-size:.875rem}
.partPalette .ico{width:19px;height:19px;stroke-width:1.5;color:#537765}
.partPalette button:hover{background:#eaf0e9}
.partPalette button[aria-pressed=true]{background:#214d3b;color:#fff;font-weight:600}
.partPalette button[aria-pressed=true] .ico{color:#eff8ed}
.editor .scroll{border-top:1px solid var(--line)}
.editingTitle{display:flex;gap:9px;align-items:center;padding:16px 0 4px;font-size:1.1rem;color:#244b38}
details.group{padding:0}
.group summary{display:flex;align-items:center;justify-content:space-between;gap:8px;cursor:pointer;list-style:none;padding:14px 1px;font-size:.875rem;font-weight:650}
.group summary::-webkit-details-marker{display:none}
.group summary .ico{width:13px;height:13px;transform:rotate(-90deg)}
.group[open] summary .ico{transform:none}
.group[open]{padding-bottom:14px}
.group .field{font-size:.875rem}
.group summary:focus-visible{outline:2px solid #34805b;outline-offset:-2px}
.stageHead{top:20px}
.stageHead h1{font-size:clamp(26px,2.7vw,44px);margin:4px 0 3px}
.stageMeta{font-size:10px}
.modeBar{position:absolute;z-index:1;top:105px;left:clamp(18px,2.5vw,40px);display:flex;gap:2px;background:#f7faf5;border:1px solid #bfcfc1;border-radius:7px;padding:3px;box-shadow:0 2px 8px #344c3910}
.modeBar button{padding:6px 11px;border-radius:4px;font-size:.8125rem;line-height:1.2}
.modeBar button[aria-pressed=true]{background:#24513c;color:white;font-weight:600}
#renderer{inset:140px 0 82px;outline-offset:-3px}
#renderer canvas{cursor:grab}
#renderer canvas:active{cursor:grabbing}
.stage[data-display=exploded] #renderer{bottom:137px}
.stage[data-display=caliber] #renderer{bottom:215px}
#assemblyDock{position:absolute;bottom:86px;left:50%;transform:translateX(-50%);width:min(450px,calc(100% - 28px));padding:10px 14px;border:1px solid #c8d4c6;background:#f8fbf6f7;box-shadow:0 3px 16px #29433310;border-radius:9px;color:#274432}
.dockControls,.layerLine{display:flex;align-items:center;gap:10px;font-size:.8125rem}
.dockControls label,.layerLine label{font-weight:600}
.dockControls input{flex:1;min-width:35px;margin:0;min-height:18px}
.dockControls output{font:12px var(--mono);min-width:33px;text-align:right}
.layerLine{margin-top:7px;flex-wrap:wrap}
.layerLine select{border:1px solid #b7c8b8;background:#fff;color:#264f39;border-radius:5px;font-size:.8125rem;padding:4px;min-width:0;flex:1}
.layerLine a{color:#255a40;text-underline-offset:3px;font-size:.8rem}
#layerNote{font-size:.8rem;line-height:1.35;color:#4b6352;margin-top:6px}
.bottomStage{bottom:13px;white-space:nowrap}
.viewtools button{width:33px;height:33px}
.stage[data-display=exploded] #dimension{bottom:140px}
.profileChoices{display:grid;grid-template-columns:repeat(auto-fit,minmax(65px,1fr));gap:5px}
.profileChoices button{border:1px solid #cfd9cf;border-radius:6px;padding:5px 2px;display:grid;gap:2px;place-items:center;background:white;min-height:45px;font-size:.75rem;color:#445e4a}
.profileChoices svg{width:44px;height:20px;fill:#dce8db;stroke:#46674e;stroke-linejoin:round;stroke-width:1.4}
.profileChoices button[aria-pressed=true]{border-color:#387253;background:#e9f2e7}
@media(max-width:1100px){.stageHead h1{max-width:calc(100vw - 540px)}.viewMenu{top:18px}.modeBar{top:96px}#renderer{top:130px}.partPalette{margin:0 8px 8px}.partPalette button{gap:6px;padding:5px 6px}}
@media(max-width:800px){.stageHead h1{max-width:65vw}.partPalette{grid-template-columns:repeat(5,minmax(0,1fr));max-width:600px;width:calc(100% - 20px);margin:0 auto 8px}.partPalette button{flex-direction:column;justify-content:center;font-size:.78rem;gap:3px}.editor .scroll{margin:0 auto;flex:1}.stageHead{top:12px}.modeBar{top:87px}.stage[data-display] #renderer{top:118px}.modeBar button{min-height:31px}.history{bottom:7px}.bottomStage{bottom:18px}.viewtools button{width:33px}.layerLine{gap:6px}}
@media(max-height:690px){.stageHead,.stageMeta{top:8px}.stageHead h1{font-size:25px}.modeBar{top:74px}.stage[data-display] #renderer{top:109px}.stage[data-display=caliber] #renderer{bottom:165px}.stage[data-display=exploded] #renderer{bottom:112px}#assemblyDock{bottom:62px;padding:6px 9px}.bottomStage{bottom:6px}.stageHint{margin-top:2px}.partPalette button{min-height:27px}.partPalette{gap:2px}.workbench{min-height:410px}}
@media(max-width:420px){.stageHint{font-size:10px}.partPalette button{padding:4px 1px}.stage[data-display=caliber] #renderer{bottom:210px}.viewtools button{width:28px}.layerLine label{display:none}}

.fabControls{display:grid;gap:6px}.fabControls label{font-weight:600}.fabControls select{width:100%;padding:9px 12px;font:inherit;border:1px solid #b7c8b8;background:#fff;color:#244a33;border-radius:6px}
#hardwarePanel{margin-top:6px}#hardwarePanel button{color:#245538;background:transparent;border:0;padding:3px 0;text-decoration:underline;text-underline-offset:3px;cursor:pointer}.cadIssue{color:#893d27}
#modalBody .modalActions{display:flex;flex-wrap:wrap;gap:8px}#modalBody details>summary{cursor:pointer}

#focusLayer{min-height:27px;border:1px solid #b7c8b8;border-radius:5px;background:#fff;color:#264f39;cursor:pointer}#focusLayer[aria-pressed=true]{background:#254d39;color:white}

dialog.drawingDialog{width:min(1180px,96vw);max-width:96vw}.drawingBar{display:flex;align-items:center;justify-content:space-between;gap:8px;flex-wrap:wrap;margin:0 0 10px}.drawingBar [aria-pressed=true]{background:#24483c;color:white}.drawingPaper{background:#111819;max-height:67vh;overflow:auto;border-radius:4px}.drawingPaper img{display:block;width:auto;height:auto;max-width:100%;max-height:65vh;margin:auto}.drawingPaper.magnified img{width:max(170%,1380px);max-width:none;max-height:none}.drawingHint{margin:8px 0 0;color:#526255;font-size:.875rem}

dialog.inspectDialog{width:min(1160px,96vw);max-width:96vw}.inspectTabs,.inspectControls{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.fixGrid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,200px),1fr));gap:12px}.fixGrid .record{margin:0}.inspectTabs{margin-bottom:12px}.inspectTabs [aria-pressed=true],.inspectDialog .btn[aria-pressed=true]{background:#234b3f;color:#fff}.inspectGrid{display:grid;grid-template-columns:minmax(0,1.7fr) minmax(250px,1fr);gap:18px}.inspectCanvas{height:clamp(235px,49vh,500px);background:#e6ede8;border-radius:6px;overflow:hidden}.inspectCanvas canvas{display:block;width:100%;height:100%;touch-action:none}.inspectControls{margin:10px 0}.inspectControls label,.inspectInfo label{display:grid;gap:4px;font-size:.82rem}.inspectControls select,.inspectInfo select,.inspectLimits input{min-width:0;padding:6px;border:1px solid #aebeb2;border-radius:5px;background:#fff;color:#19392c}.inspectControls output{display:inline}.inspectInfo{min-width:0}.inspectInfo h3{margin:0 0 8px}.inspectInfo h4{margin:.9em 0 .5em}.inspectInfo p,.inspectInfo dl{font-size:.87rem;line-height:1.45}.inspectInfo dd{margin:0 0 5px;color:#305948}.inspectInfo dt{font-size:.76rem}.inspectInfo pre,.fitRange{white-space:pre-wrap;overflow-wrap:anywhere;background:#edf3ec;padding:10px;border-radius:5px}.inspectMap{width:145px;max-height:155px;margin:0 auto 9px;display:block}.inspectMap [role=button]{cursor:pointer}.inspectLimits{display:grid;grid-template-columns:1.4fr 1fr;gap:8px}.inspectLimits input{width:100%;box-sizing:border-box}.inspectInfo a{color:#285a47}@media(max-width:740px){.inspectGrid{grid-template-columns:minmax(0,1fr)}.inspectCanvas{height:30vh;min-height:210px}.modeBar button{padding-inline:6px}}

[data-profile-editor]{margin:8px 0 14px}.profileBoard{background:#eef3ed;border:1px solid #c2d0c4;border-radius:9px;overflow:hidden}.profileBoard svg{display:block;width:100%;height:auto;touch-action:none;background-image:radial-gradient(#bfcfc1 .7px,transparent .7px);background-size:13px 13px}.profileBoard svg text{font:600 8px system-ui;letter-spacing:1.2px;fill:#587061}.profileWall{fill:#a9c5b5;stroke:#164839;stroke-width:1.6}.profileDatum{fill:none;stroke:#779185;stroke-dasharray:4 4}.profileBoard g{cursor:ew-resize;outline:none}.profileBoard g[data-handle=caseThickness]{cursor:ns-resize}.profileBoard g path{stroke:#56735e}.profileBoard g circle{fill:#185640;stroke:white;stroke-width:1.5}.profileBoard g[data-handle*=Edge] circle{fill:#97612d}.profileBoard g:focus circle{stroke:#182e20;stroke-width:2}.profileBoard g .hit{fill:transparent!important;stroke:none!important}.profileFoot,.revToolbar{display:flex;justify-content:space-between;align-items:center;gap:8px}.profileFoot{padding:6px 10px;background:#e2ebe1;font-size:.77rem}.profileFoot output{font-variant-numeric:tabular-nums}.profileHint{font-size:.77rem;color:#46594b;margin:7px 0}.revisionDialog{width:min(940px,96vw);max-width:96vw}.revToolbar,.revPair small{color:#506257;font-size:.85rem}.revToolbar{margin-bottom:14px}.revPair{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.revPair label,.revToolbar label{display:grid;gap:4px;font-weight:600}.revPair select,.revToolbar select{max-width:100%;width:100%}.revPair small{display:block;margin:5px 0}.revPhoto{background:#eaf0eb;border:1px solid #cfdbd1;border-radius:8px;aspect-ratio:1.2;overflow:hidden}.revPhoto img{width:100%;height:100%;object-fit:contain}.revTable{max-height:280px;overflow:auto;margin-bottom:14px}.revTable table{border-collapse:collapse;width:100%;font-size:.85rem}.revTable td,.revTable th{padding:6px 8px;border-bottom:1px solid #d6dfd5;text-align:left;overflow-wrap:anywhere}.revTable thead{background:#e9f0ea;position:sticky;top:0}.revPair section{min-width:0}#modalBody .record header:has([data-revisions]){flex-wrap:wrap}@media(max-width:520px){.revPair{gap:6px}.revToolbar{align-items:flex-end}.revTable td,.revTable th{padding:4px}.revPair small{font-size:.72rem}}

.labForm{display:grid;grid-template-columns:repeat(auto-fit,minmax(170px,1fr));gap:12px}.labForm label,.record label{display:grid;gap:4px}.revTable small{display:block;font-weight:normal} [data-rotor][hidden]{display:none!important}

.dialOverlay{display:block;width:100%;max-height:56vh;border:1px solid #cddacf;background:#eef3ee;border-radius:7px;margin-bottom:1rem}
