#modal:has(.cut-editor){width:min(1400px,calc(100vw - 24px));max-width:1400px}.cut-editor [hidden]{display:none!important}.cut-editor-layout{display:grid;grid-template-columns:minmax(0,1fr) 260px;gap:20px}.cut-editor-sheets{display:flex;gap:8px;overflow:auto;padding:8px 0 16px}.cut-editor-sheets button{min-width:170px;flex-shrink:0}.cut-editor-sheets small{display:block;font-size:.7rem;font-weight:400;margin-top:4px}#cut-editor-canvas{background:#e4eae6;border:1px solid var(--line);padding:10px;border-radius:10px}#cut-editor-svg{display:block;width:100%;max-height:58vh;min-height:210px;touch-action:none}.cut-edit-piece{cursor:grab;outline:none}.cut-edit-piece rect{fill:#cde5df;stroke:#277764;stroke-width:2;vector-effect:non-scaling-stroke}.cut-edit-piece.selected rect,.cut-edit-piece:focus rect{stroke:#142523;stroke-width:4}.cut-edit-piece.pinned{cursor:default}.cut-edit-piece.pinned rect{fill:#e1dded;stroke:#75658e}.cut-edit-piece.invalid rect{fill:#f9d4ce;stroke:#b83a29}.cut-edit-piece text{fill:#193e34}#cut-editor-properties h3{margin-top:4px}#cut-editor-properties .formgrid{grid-template-columns:1fr 1fr;gap:8px}#cut-editor-properties .actions{margin:14px 0}#cut-editor-properties input{width:100%}.cut-editor-actions{justify-content:flex-end}.cut-editor .error:empty{display:none}.cut-editor .actions>.field{max-width:100px}.cut-editor .actions{align-items:end}.cut-editor #cut-editor-stats{font-variant-numeric:tabular-nums}
@media(max-width:750px){.cut-editor-layout{grid-template-columns:1fr}.cut-editor #cut-editor-svg{max-height:45vh}.cut-editor-actions button{flex:1;min-height:44px}#cut-editor-properties .actions{margin:8px 0}.cut-editor-sheets button{min-width:130px}#modal:has(.cut-editor){max-height:96dvh}}
#modal:has(.cut-editor)>.modalbody{padding:14px 24px}.cut-editor>.footer-note:first-child{margin:0 0 8px}.cut-editor #cut-editor-svg{max-height:43dvh}.cut-editor #cut-editor-geometry{margin:8px 0;font-size:.75rem}.cut-editor #cut-editor-stats{margin:12px 0;padding:10px}.cut-editor>.footer-note:last-child{margin:8px 0 0}.cut-editor-actions{position:sticky;bottom:-14px;background:white;padding:10px 0;z-index:1;border-top:1px solid var(--line)}.cut-editor-part-list{font-size:.8rem;margin:8px 0}.cut-editor-part-list summary{cursor:pointer}.cut-editor-part-list button{display:block;width:100%;text-align:left;justify-content:flex-start;font-size:.75rem;margin-top:4px}.cut-editor-sheets button{display:block}.cut-editor-sheets small{font-size:.72rem}#cut-editor-properties .footer-note{margin-top:12px}

.cut-add-panel{border:1px solid var(--line,#d9e3df);border-radius:12px;padding:12px;margin-bottom:14px}.cut-add-panel summary{font-weight:700;cursor:pointer}.cut-add-search{display:flex;align-items:end;gap:12px;flex-wrap:wrap;margin:12px 0}.cut-add-search>.field{flex:1;min-width:160px}#cut-add-results{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:8px;max-height:230px;overflow:auto}#cut-add-results button{text-align:left;white-space:normal}#cut-add-results span{display:block;font-size:12px;color:var(--muted,#64746d);margin-top:5px}#cut-add-selection{margin-top:12px}#cut-add-count{overflow-wrap:anywhere}
