.shape-dimensions-dialog{box-sizing:border-box;width:398px;max-width:calc(100vw - 24px);max-height:calc(100vh - 32px);padding:0;border:1px solid #cbd5dc;border-radius:12px;color:#223946;background:#fff;box-shadow:0 20px 75px #172d4540;font:14px/1.4 system-ui,sans-serif;overflow:auto}
.shape-dimensions-dialog::backdrop{background:#102b3b55}
.shape-dimensions-dialog form{margin:0;padding:0;background:transparent}
.shape-dimensions-dialog header{display:flex;align-items:center;justify-content:space-between;padding:6px 12px;border-bottom:1px solid #e4eaee;background:#f8fafb}
.shape-dimensions-dialog h2{margin:0;font-size:16px;font-weight:650}
.shape-dimensions-dialog button{box-sizing:border-box;min-height:32px;border:1px solid #cbd5dc;border-radius:6px;background:#fff;color:#334c58;padding:5px 12px;font:inherit;cursor:pointer}
.shape-dimensions-dialog button:hover{background:#eef3f6;border-color:#91a5b2}
.shape-dimensions-dialog button:focus-visible{outline:2px solid #697acc;outline-offset:2px}
.shape-dimensions-dialog header button{border:0;background:transparent;font-size:22px;line-height:1;padding:2px 6px;min-height:26px}
.shape-dimensions-body{display:grid;grid-template-columns:minmax(0,1fr) 112px;gap:10px;padding:8px 12px}
.shape-dimensions-drawing{min-width:0;align-self:start;position:sticky;top:8px}
.shape-dimensions-svg{height:170px;display:flex;align-items:center}
.shape-dimensions-svg svg{display:block;width:100%;height:170px}
.shape-dimensions-svg text{fill:#445b67;font:28px Consolas,monospace;stroke:#fff;stroke-width:3;stroke-linejoin:round;paint-order:stroke fill}
.shape-dimensions-svg g path{stroke:transparent;stroke-width:3;fill:none}
.shape-dimensions-svg .shape-height{stroke:#9baab4;stroke-width:1;stroke-dasharray:4 3}
.shape-dimensions-svg .active text{fill:#6555b7;font-weight:700}
.shape-dimensions-svg .active path{stroke:#7b6ac2;stroke-width:3}
.shape-dimensions-fields{display:flex;flex-direction:column;gap:5px;align-self:center}
.shape-dimensions-fields label{display:grid;grid-template-columns:25px minmax(0,1fr);gap:4px;align-items:center;font:14px Consolas,monospace}
.shape-dimension-input{position:relative;display:flex;align-items:center}
.shape-dimensions-fields input{box-sizing:border-box;width:100%;min-width:0;height:29px;border:1px solid #c7d2da;border-radius:5px;padding:4px 21px 4px 7px;font:14px Consolas,monospace;background:#fff;color:#223946}
.shape-dimensions-fields input:focus{outline:2px solid #7b6ac244;border-color:#7b6ac2}
.shape-dimension-input>span{position:absolute;right:8px;color:#8c9aa4;pointer-events:none;font:12px system-ui}
.shape-dimensions-fields input.shape-computed::placeholder{font-style:italic;color:#667f8e;opacity:1}
.shape-dimensions-error{margin:0 12px 8px;color:#a34927;font-size:12px}
.shape-dimensions-dialog footer{display:flex;align-items:center;justify-content:flex-end;gap:6px;margin:0;padding:6px 12px;border-top:1px solid #e4eaee;background:#f8fafb}
.shape-dimensions-actions{display:flex;gap:6px;margin-right:auto}
.shape-dimensions-dialog [type=submit]{min-width:64px;color:white;background:#596caa;border-color:#596caa}
.shape-dimensions-dialog [type=submit]:hover{background:#4c5e9a}
.shape-dimensions-dialog button:disabled{opacity:.4;cursor:default}
.shape-dimensions-dialog [hidden]{display:none!important}
@media(max-width:430px){.shape-dimensions-body{gap:8px;grid-template-columns:minmax(0,1fr) 104px}.shape-dimensions-dialog button{padding:5px 8px}}
