#pfSectionsInfo{padding:12px;border:1px solid var(--app-border,#92aeb5);border-radius:9px;margin:9px 0;display:grid;gap:8px}
#pfSectionsInfo h3,#pfSectionsInfo p{margin:0}
#pfSectionsInfo output,#pfSectionsDims{font-variant-numeric:tabular-nums}
#pfSectionsInfo[hidden],#pfSectionsDialog [hidden]{display:none!important}
#pfSectionsDialog{width:min(950px,calc(100vw - 26px));max-width:none;max-height:92dvh;overflow:auto;margin:auto;padding:18px;border:1px solid #9abfc0;border-radius:14px;background:#f3f8f7;color:#1a393f;box-sizing:border-box}
#pfSectionsDialog::backdrop{background:#10262dc4}
#pfSectionsDialog header{display:flex;align-items:center;justify-content:space-between;gap:8px;background:none!important;color:inherit;position:static!important;padding:0!important}
#pfSectionsDialog h2{margin:0;font-size:24px}
#pfSectionsDialog h3{margin:9px 0 5px;font-size:14px}
#pfSectionsDialog footer{display:flex;align-items:center;justify-content:space-between;gap:10px;border-top:1px solid #c2d8d7;margin-top:12px;padding-top:9px}
#pfSectionsDialog button{min-height:35px;white-space:normal}
#pfSectionsDialog button[aria-pressed=true]{background:#166f70;color:white;border-color:#166f70}
#pfSectionsDialog :is(input,select){max-width:100%;width:100%;margin-top:4px;box-sizing:border-box}
#pfSectionsDialog label{display:block;font-size:12px;margin:3px 0}
#pfSectionsDialog small{display:block;color:#405f65}
#pfSectionsTemplates,.pf-sections-buttons,#pfSectionsPointControls{display:flex;gap:6px;flex-wrap:wrap}
#pfSectionsTemplates{margin:9px 0 12px}
#pfSectionsStatus{font-size:12px;min-width:0}
.pf-sections-work{display:grid;grid-template-columns:minmax(0,.95fr) minmax(0,1.05fr);gap:18px}
.pf-sections-preview{position:relative}
#pfSectionsCanvas{display:block;width:100%;height:281px;touch-action:none;cursor:grab;background:radial-gradient(ellipse at center,#fdfefd,#dae8e6);border-radius:9px}
#pfSectionsCanvas:active{cursor:grabbing}
#pfSectionsFront{position:absolute;right:8px;bottom:8px}
#pfSectionsDims{display:block;font-size:16px;font-weight:700;margin:9px 0 2px}
.pf-sections-contour{border-top:1px solid #c2d8d7;margin-top:9px;padding-top:2px}
#pfSectionsPlan{width:100%;height:155px;border-radius:8px;background:#e8f2ef;touch-action:none}
.pf-section-axis{fill:none;stroke:#8babac;stroke-width:.7;stroke-dasharray:3 3}
.pf-section-outline{fill:#78aca45e;stroke:#1b776e;stroke-width:1.5}
#pfSectionsPlan circle{fill:#fff;stroke:#1b776e;stroke-width:1.5;cursor:move}
#pfSectionsPlan circle.selected,#pfSectionsPlan circle:focus{fill:#f6d795}
#pfSectionsPointControls p{font-size:11px;margin:0;flex-basis:100%}
#pfSectionsList{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:4px;max-height:150px;overflow:auto}
#pfSectionsList button{display:grid;gap:2px;text-align:left;min-width:0;padding:5px 7px;font-size:11px}
#pfSectionsList span{font-variant-numeric:tabular-nums}
.pf-sections-buttons{margin:6px 0}
#pfSectionsDialog fieldset{min-inline-size:0;border:1px solid #b2cecc;border-radius:8px;padding:6px 9px}
.pf-sections-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:3px 9px}
body[data-section-model=true] :is(label:has(#wallThickness),label:has(#baseThickness),label:has(#objectShape),.pf-parametric-thickness-note,#lidPanel){display:none!important}
@media(max-width:920px){#pfSectionsOpen{display:none}}
@media(max-width:650px){#pfSectionsDialog{padding:11px}.pf-sections-work{grid-template-columns:1fr;gap:10px}#pfSectionsCanvas{height:195px}#pfSectionsPlan{height:118px}#pfSectionsDialog h2{font-size:19px}#pfSectionsList{max-height:126px}}

#pfSectionsOpen{margin-left:8px;white-space:nowrap}
#pfSectionsDialog[open]{display:flex;flex-direction:column;overflow:hidden}
#pfSectionsDialog :is(header,footer,#pfSectionsTemplates){flex-shrink:0}
#pfSectionsDialog .pf-sections-work{min-height:0;overflow:auto;padding-right:4px;overscroll-behavior:contain}
#pfSectionsList{max-height:197px}
#pfSectionsFootprintHint{margin:0 0 5px}
.pf-section-reference{fill:none;stroke:#688b88;stroke-width:1.3;stroke-dasharray:4 3}
@media(max-width:650px){#pfSectionsList{max-height:126px}#pfSectionsDialog footer button{min-width:108px}}
.pf-sections-tabs{display:flex;gap:6px;margin:10px 0 7px;border-bottom:1px solid #c2d8d7;padding-bottom:7px}
.pf-sections-tabs button{flex:1}
#pfSectionsPartTools h3{margin:7px 0 5px}
#pfSectionsCutFields,#pfSectionsCapFields{margin-top:8px}
#pfSectionsCutPlan{width:100%;height:205px;border-radius:8px;background:#e8f2ef;touch-action:none}
.pf-cut-shape{fill:#d5a14c66;stroke:#974d0c;stroke-width:1.1;cursor:move}
.pf-cut-shape.selected{fill:#eab35bb3;stroke:#8c450b;stroke-width:1.7}
.pf-sections-cap{border-top:1px solid #c2d8d7;margin-top:12px;padding-top:4px}
#pfSectionsCapHint{margin:6px 0}
#pfSectionsCapColor{min-height:36px}
body[data-section-cap=true] #pfOpeningSettings{display:none!important}
@media(max-width:650px){#pfSectionsCutPlan{height:160px}}
@media(min-width:651px){
 #pfSectionsDialog .pf-sections-work{overflow:hidden;grid-template-rows:minmax(0,1fr);padding-right:0}
 #pfSectionsDialog .pf-sections-view,#pfSectionsDialog .pf-sections-controls{min-width:0;min-height:0;overflow-y:auto;padding-right:5px;overscroll-behavior:contain}
 #pfSectionsDialog .pf-sections-tabs{position:sticky;top:0;z-index:2;background:#f3f8f7;padding-top:5px}
}
