html.lgw-on{margin-top:0!important;height:100%!important;overflow:hidden!important;scroll-padding-top:var(--lgw-all)}
body.lgw-enabled{margin:0!important;padding:0!important;height:var(--lgw-vh,100dvh)!important;overflow:hidden!important;--lgw-top:calc(var(--lgw-admin,0px) + var(--lgw-site,52px));--lgw-all:calc(var(--lgw-top) + var(--lgw-bar,56px));--lgw-work:calc(var(--lgw-vh,100dvh) - var(--lgw-all) - var(--lgw-bottom,0px));background:var(--lg-brand-bg)}
body.lgw-enabled #wpadminbar{position:fixed!important;top:0!important}
body.lgw-enabled .lg-mainbar{position:fixed!important;inset:var(--lgw-admin,0px) 0 auto!important;z-index:4000!important;margin:0!important;background:var(--lg-brand-panel);transition:transform .15s ease}
body.lgw-enabled .lg-mainbar,body.lgw-enabled .lg-mainbar *{box-sizing:border-box!important}
body.lgw-enabled .lg-mainbar-inner{min-height:52px!important;padding:5px 14px!important;gap:12px!important;max-width:none}
body.lgw-enabled .lg-mainbar .lg-brand-logo{font-size:18px}
body.lgw-enabled .lg-mainbar .lg-brand-logo span{display:none}
body.lgw-enabled .lg-mainbar :is(button,#lg-tool-mainnav>a){min-height:38px;padding:7px 10px}
body.lgw-enabled .lg-mainbar{max-height:calc(var(--lgw-vh,100dvh) - var(--lgw-admin,0px) - 70px);overflow:visible}
body.lgw-enabled .lg-mainbar:is(.lg-menu-open,.lg-site-menu-open){overflow:auto}
body.lgw-site-hidden .lg-mainbar{transform:translateY(calc(-100% - 6px));pointer-events:none}
body.lgw-enabled :is(.site-footer,#colophon,.lg-site-footer,.lg-tool-intro,.lg-calculator-links,.test-files-footer-link){display:none!important}
body.lgw-enabled .lgw-app{position:fixed!important;inset:var(--lgw-top) 0 auto!important;width:100%!important;max-width:none!important;height:calc(var(--lgw-vh,100dvh) - var(--lgw-top))!important;min-height:0!important;margin:0!important;padding:var(--lgw-bar,56px) 0 var(--lgw-bottom,0px)!important;box-sizing:border-box!important;overflow:hidden!important;background:var(--lg-brand-bg);color:var(--lg-brand-text);z-index:20}
body.lgw-enabled .lgw-shell{width:100%!important;max-width:none!important;margin:0!important;padding:0!important;min-height:0!important;height:auto!important}
body.lgw-enabled .lgw-bar{position:fixed!important;inset:var(--lgw-top) 0 auto!important;display:flex!important;flex-direction:row!important;flex-wrap:wrap!important;align-items:center!important;justify-content:flex-start!important;gap:7px!important;padding:7px 12px!important;min-height:54px!important;margin:0!important;width:100%!important;max-width:none!important;border-radius:0!important;background:var(--lg-brand-panel)!important;border:0!important;border-bottom:1px solid var(--lg-brand-line)!important;box-shadow:none!important;z-index:3000!important;max-height:calc(var(--lgw-vh,100dvh) - var(--lgw-top) - 80px);overflow:visible!important}
body.lgw-enabled .lgw-strip{display:flex!important;align-items:center!important;gap:7px!important;min-width:0!important;flex:1 0 auto!important;position:static!important}
body.lgw-enabled .lgw-title{font:750 17px/1.2 system-ui,sans-serif!important;color:var(--lg-brand-text)!important;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin-right:auto!important}
body.lgw-enabled .lgw-app .lgw-button,body.lgw-enabled .lgw-mobile-nav .lgw-button{font:650 13px/1.3 system-ui,sans-serif!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;position:static!important;min-width:38px!important;min-height:40px!important;width:auto!important;height:auto!important;margin:0!important;padding:8px 11px!important;gap:5px!important;line-height:1.3!important;color:var(--lg-brand-text)!important;background:var(--lg-brand-field)!important;border:1px solid var(--lg-brand-line)!important;border-radius:8px!important;box-shadow:none!important;text-decoration:none!important;cursor:pointer;flex-shrink:0;touch-action:manipulation}
body.lgw-enabled .lgw-button:focus-visible{outline:3px solid var(--lg-brand-accent)!important;outline-offset:2px}
body.lgw-enabled .lgw-app .lgw-button:disabled{opacity:.45!important;cursor:default}
body.lgw-enabled .lgw-app .lgw-native-brand,body.lgw-enabled .lgw-app .lgw-brand-only{display:none!important}
body.lgw-enabled .lgw-bar>.lgw-native-controls{min-width:0!important;max-width:100%;margin:0!important;flex:0 1 auto}
body.lgw-enabled .lgw-bar :is(.header-left,.header-actions,.header-controls,.bc-tools,.pc-tools,.wc-toolbar,.top-panel-group){gap:6px!important;flex-wrap:wrap!important;margin:0!important}
body.lgw-enabled .lgw-bar :is(button,a){min-height:38px}
body.lgw-enabled .lgw-app .lgw-more,body.lgw-enabled .lgw-app .lgw-touch{display:none!important}
body.lgw-enabled .lgw-frame{display:grid!important;grid-template-columns:minmax(300px,360px) minmax(0,1fr)!important;gap:12px!important;align-items:stretch!important;height:var(--lgw-work)!important;max-height:var(--lgw-work)!important;min-height:0!important;margin:0!important;padding:12px!important;width:100%!important;overflow:hidden!important;box-sizing:border-box!important}
body.lgw-enabled .lgw-pane{height:100%!important;min-height:0!important;max-height:none!important;min-width:0!important;position:relative!important;top:0!important;overflow:auto!important;overscroll-behavior:contain;scrollbar-gutter:stable;scrollbar-width:thin;scroll-padding-block:12px;align-content:start}
body.lgw-enabled .lgw-pane :is(.part-list,#cutting-layout){max-height:none!important;overflow:visible!important}
body.lgw-enabled .lgw-native-scene{height:var(--lgw-scene-height,400px)!important;min-height:0!important;max-height:none!important}
body.lgw-desktop .lgw-native-scene{position:sticky!important;top:0!important;z-index:10}
body.lgw-enabled .lgw-scene-anchor{height:0!important;padding:0!important;border:0!important;margin:0!important}
body.lgw-enabled .lgw-results :is(.bc-drawing,.pc-drawing){height:clamp(210px,calc(var(--lgw-work)*.34),360px)!important;min-height:190px!important;max-height:none!important}
body.lgw-enabled .lgw-results .chart-container{height:clamp(240px,calc(var(--lgw-work)*.4),380px)!important;min-height:0!important}
body.lgw-enabled .lgw-gestures{display:flex;justify-content:space-between;align-items:center;gap:8px;padding:7px 2px;font:12px/1.4 system-ui,sans-serif;color:var(--lg-brand-muted)}
body.lgw-enabled .lgw-native-controls.lgw-links a{font:13px/1.4 system-ui,sans-serif;color:var(--lg-brand-accent)}
body.lgw-enabled .lgw-single-scroller{height:var(--lgw-work)!important;max-height:var(--lgw-work)!important;min-height:0!important;overflow:auto!important;overscroll-behavior:contain;scrollbar-gutter:stable;scrollbar-width:thin;max-width:none!important;width:100%!important;margin:0!important;padding:12px!important;box-sizing:border-box!important}
body.lgw-enabled .lgw-app[data-lgw-kind=pro] .lg6-layout{grid-template-columns:minmax(280px,.5fr) minmax(0,1fr)!important;min-width:0}
body.lgw-enabled .lgw-app[data-lgw-kind=pro] .lg6-head-side{flex-direction:row;flex-wrap:wrap;align-items:center;gap:6px;width:auto!important}
body.lgw-enabled .lgw-app[data-lgw-kind=pro] .lg6-draft{flex-wrap:wrap}
body.lgw-enabled .lgw-app[data-lgw-kind=pro] .lg6-draft>span{flex:0 1 auto}
body.lgw-enabled .lgw-app[data-lgw-kind=pro] .lg6-head label{font-size:12px;margin:0!important;max-width:230px!important}
body.lgw-enabled .lgw-app[data-lgw-kind=pro] .lg6-head :is(input,select){min-height:36px;height:36px}
body.lgw-enabled .lgw-app[data-lgw-kind=pro] .lg6-head .lg6-draft button{flex:0 1 auto;min-height:36px}
body.lgw-enabled .lgw-app[data-lgw-kind=pro] .lgw-more{display:inline-flex!important}
body.lgw-enabled .lgw-app[data-lgw-kind=pro] .lgw-bar>.lgw-native-controls{display:none!important}
body.lgw-enabled .lgw-app[data-lgw-kind=pro] .lgw-bar[data-lgw-more=true]>.lgw-native-controls:not(.lgw-brand-only){display:flex!important;flex-wrap:wrap;gap:8px}
body.lgw-enabled .lgw-app[data-lgw-kind=pro] :is(.lg6-canvas-wrap,.lg6-sheet-canvas-wrap){height:clamp(240px,calc(var(--lgw-work)*.48),500px)!important;min-height:220px!important}
body.lgw-enabled .lgw-app[data-lgw-kind=viewer] .pv-titlebar{display:none!important}
body.lgw-enabled .lgw-viewer-frame{height:calc(var(--lgw-work) - 52px)!important;min-height:0!important;max-height:none!important;width:calc(100% - 24px)!important;margin:12px!important;display:flex!important;flex-direction:column!important;border-radius:10px!important;overflow:hidden!important}
body.lgw-enabled .lgw-viewer-frame .canvas-wrapper{flex:1 1 0!important;height:auto!important;min-height:0!important;max-height:none!important}
body.lgw-enabled .lgw-app[data-lgw-kind=viewer] .pv-help{font-size:11px!important;line-height:1.3!important;margin:0 12px!important;height:24px!important;overflow:auto}
body.lgw-enabled .lgw-mobile-nav{display:none}
body.lgw-enabled .lgw-status{position:fixed;right:14px;bottom:calc(var(--lgw-bottom,0px) + 10px);z-index:5000;font-size:13px;background:var(--lg-brand-panel);color:var(--lg-brand-text);border-radius:8px}
body.lgw-enabled .lgw-status:empty{display:none}
body.lgw-enabled .mobile-action-bar{display:none!important}
body.lgw-enabled .lgw-app .alert-container{bottom:calc(var(--lgw-bottom,0px) + 12px)!important;right:12px!important;max-width:min(400px,calc(100vw - 24px))!important;max-height:min(24dvh,180px)!important;overflow:auto!important;gap:6px!important;scrollbar-width:thin}
body.lgw-enabled .lgw-app .alert{padding:10px 12px!important;font-size:13px!important;flex-shrink:0}
body.lgw-enabled .lgw-app :is(input,select,textarea,button,[tabindex],.section,section){scroll-margin-top:12px;scroll-margin-bottom:12px}
.lgw-reveal{display:none!important;position:fixed!important;inset:var(--lgw-admin,0px) 0 auto!important;width:100%!important;height:8px!important;min-height:8px!important;max-height:8px!important;margin:0!important;padding:0!important;border:0!important;border-radius:0!important;background:transparent!important;font-size:0!important;z-index:6000!important;cursor:pointer}
body.lgw-site-hidden .lgw-reveal{display:block!important}
.lgw-reveal:focus-visible{height:28px!important;max-height:28px!important;background:var(--lg-brand-accent)!important;color:#fff!important;font-size:12px!important}
body.lgw-enabled.lgw-modal-open :is(.lg-mainbar,.lgw-bar,.lgw-mobile-nav,.lgw-reveal){visibility:hidden!important}
body.lgw-enabled .lgw-overlay{position:fixed!important;inset:var(--lgw-admin,0px) 0 0!important;height:calc(var(--lgw-vh,100dvh) - var(--lgw-admin,0px))!important;max-height:calc(var(--lgw-vh,100dvh) - var(--lgw-admin,0px))!important;z-index:2001000!important;overflow:auto!important;box-sizing:border-box!important}
body.lgw-enabled .lgw-overlay :is(.modal-content,#settings-modal-content,.lg6-modal-card){max-height:calc(var(--lgw-vh,100dvh) - var(--lgw-admin,0px) - 32px)!important;overflow:auto!important}
@media(max-width:1099px),(max-height:679px){
 body.lgw-enabled .lg-mainbar:not(.lg-menu-open) .lg-mainbar-inner{flex-wrap:nowrap!important}
 body.lgw-enabled .lg-mainbar .lg-mainbar-actions{width:auto!important;flex:0 0 auto!important;gap:6px!important}
 body.lgw-enabled .lg-mainbar [data-lg-tour-start]{font-size:0!important;width:38px!important;min-width:38px!important;padding:8px!important}
 body.lgw-enabled .lg-mainbar [data-lg-tour-start]::before{content:'?';font:700 16px/1 system-ui}
 body.lgw-enabled .lgw-bar{padding:6px 9px!important;gap:6px!important;min-height:54px!important;overflow:auto!important}
 body.lgw-enabled .lgw-strip{flex:1 0 100%!important;width:100%!important}
 body.lgw-enabled .lgw-title{font-size:15px!important;min-width:0;white-space:normal!important;line-height:1.2!important;max-height:38px}
 body.lgw-enabled .lgw-app .lgw-more{display:inline-flex!important}
 body.lgw-enabled .lgw-bar>.lgw-native-controls{display:none!important}
 body.lgw-enabled .lgw-bar[data-lgw-more=true]>.lgw-native-controls:not(.lgw-brand-only){display:flex!important;flex-wrap:wrap!important;align-items:center;gap:8px;width:100%!important;padding:6px 0!important}
 body.lgw-enabled .lgw-bar .lgw-native-controls :is(.header-controls,.header-actions){display:flex!important;flex-wrap:wrap!important;max-width:100%}
 body.lgw-enabled .lgw-frame{display:block!important;padding:9px!important;gap:0!important}
 /* Keep a real canvas size in inactive panes: legacy grid renderers require nonzero dimensions. */
 body.lgw-enabled .lgw-frame{position:relative!important}
 body.lgw-enabled .lgw-app[data-lgw-panel=inputs] .lgw-results,body.lgw-enabled .lgw-app:not([data-lgw-panel=inputs]) .lgw-inputs{position:absolute!important;inset:9px!important;width:calc(100% - 18px)!important;height:calc(100% - 18px)!important;visibility:hidden!important;pointer-events:none!important}
 body.lgw-enabled .lgw-pane{scrollbar-gutter:auto}
 body.lgw-enabled .lgw-mobile-nav{position:fixed;inset:auto 0 0;display:flex;gap:7px;padding:7px 9px max(7px,env(safe-area-inset-bottom));background:var(--lg-brand-panel);border-top:1px solid var(--lg-brand-line);z-index:3500}
 body.lgw-enabled .lgw-mobile-nav>.lgw-button{flex:1 1 0;min-width:0!important;white-space:normal;font-size:13px!important;min-height:40px!important}
 body.lgw-enabled .lgw-mobile-nav>[aria-pressed=true]{border-color:var(--lg-brand-accent)!important;color:var(--lg-brand-accent)!important}
 body.lgw-enabled .lgw-app .lgw-touch{display:inline-flex!important;min-height:38px!important}
 body.lgw-enabled .lgw-gestures>span{display:none}
 body.lgw-enabled #canvas3d canvas{touch-action:pan-y!important}
 body.lgw-enabled .lgw-app[data-lgw-touch=true] #canvas3d canvas{touch-action:none!important}
 body.lgw-enabled .lgw-native-scene{position:relative!important;top:auto!important}
 body.lgw-enabled .lgw-app[data-lgw-kind=pro] .lg6-layout{grid-template-columns:1fr!important}
 body.lgw-enabled .lgw-results :is(.bc-drawing,.pc-drawing){height:clamp(200px,calc(var(--lgw-work)*.48),300px)!important}
 body.lgw-enabled .lgw-viewer-frame .pv-empty{padding:14px}
 body.lgw-enabled .lgw-viewer-frame .pv-empty .pv-empty-icon{display:none}
 body.lgw-enabled .lgw-viewer-frame .pv-empty h2{font-size:18px;margin:4px 0}
 body.lgw-enabled .lgw-viewer-frame .pv-empty p{font-size:12px;margin:4px 0}
}
body.lgw-fullscreen .lg-mainbar,body.lgw-fullscreen .lgw-mobile-nav,body.lgw-keyboard .lg-mainbar,body.lgw-keyboard .lgw-mobile-nav{display:none!important}
@media(max-width:420px){body.lgw-enabled:not(.lgw-fullscreen) .lgw-app .lgw-quick{display:none!important}body.lgw-enabled .lgw-title{font-size:14px!important}}
body.lgw-fullscreen .lgw-bar{top:0!important}
body.lgw-enabled .lgw-app:fullscreen{inset:0!important;width:100vw!important;height:var(--lgw-vh,100dvh)!important;max-height:none!important}
body.lgw-enabled :is(.canvas-container,#viewer-container):fullscreen{width:100vw!important;height:100dvh!important;min-height:0!important;max-height:none!important;margin:0!important}
body.lgw-enabled .lgw-app:fullscreen .lgw-menu{display:none!important}

/* Equal DXF sections follow content, stay vertically centered and scroll when height is limited. */
body.lgw-enabled [data-lg-calculator="dxf"] .app-footer{display:none!important}
body.lgw-enabled [data-lg-calculator="dxf"] .lgw-frame{align-items:stretch!important;align-content:center!important;grid-auto-rows:minmax(0,max-content)}
body.lgw-enabled [data-lg-calculator="dxf"] .lgw-pane{height:auto!important;max-height:calc(var(--lgw-work) - 24px)!important;align-self:stretch;flex-shrink:0;box-sizing:border-box!important}
body.lgw-enabled [data-lg-calculator="dxf"] #calc-form,
body.lgw-enabled [data-lg-calculator="dxf"] .drop-zone-group{flex:0 0 auto!important}
body.lgw-enabled [data-lg-calculator="dxf"] .drop-zone{flex:0 0 auto!important;min-height:200px;height:auto;padding:24px}
body.lgw-enabled [data-lg-calculator="dxf"] .grid-3-col{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:12px!important}
body.lgw-enabled [data-lg-calculator="dxf"] .grid-3-col>.form-group{display:flex;flex-direction:column;min-width:0}
body.lgw-enabled [data-lg-calculator="dxf"] .grid-3-col label{flex:1}
body.lgw-enabled [data-lg-calculator="dxf"] .grid-3-col>.form-group:first-child{grid-column:1/-1}
body.lgw-enabled [data-lg-calculator="dxf"] #file-info{min-width:0;gap:10px}
body.lgw-enabled [data-lg-calculator="dxf"] #file-name-display{min-width:0;overflow-wrap:anywhere}
@media(min-width:1100px) and (min-height:680px){
 body.lgw-enabled [data-lg-calculator="dxf"] .lgw-frame{grid-template-columns:repeat(2,minmax(0,1fr))!important}
}
@media(max-width:1099px),(max-height:679px){
 body.lgw-enabled [data-lg-calculator="dxf"] .lgw-frame{display:flex!important;flex-direction:column!important;justify-content:center!important}
 body.lgw-enabled [data-lg-calculator="dxf"] .lgw-pane{max-height:calc(var(--lgw-work) - 18px)!important}
}

@media print{
 body.lgw-enabled [data-lg-calculator="dxf"] .lgw-frame{display:block!important;align-content:normal!important;justify-content:normal!important}
 body.lgw-enabled [data-lg-calculator="dxf"] .lgw-pane{height:auto!important;max-height:none!important}
 html.lgw-on,body.lgw-enabled{height:auto!important;overflow:visible!important;padding:0!important}
 body.lgw-enabled .lgw-app{position:static!important;inset:auto!important;height:auto!important;width:100%!important;padding:0!important;overflow:visible!important}
 body.lgw-enabled :is(.lgw-frame,.lgw-pane,.lgw-single-scroller,.lgw-viewer-frame){height:auto!important;max-height:none!important;overflow:visible!important;display:block!important}
 body.lgw-enabled .lgw-app[data-lgw-kind] .lgw-pane{position:static!important;inset:auto!important;width:100%!important;visibility:visible!important;pointer-events:auto!important}
 body.lgw-enabled .lgw-bar{position:static!important;height:auto!important;max-height:none!important;overflow:visible!important}
 body.lgw-enabled :is(.lgw-strip,.lgw-mobile-nav,.lgw-gestures,.lg-mainbar,#wpadminbar,.lgw-reveal,.lgw-status){display:none!important}
 body.lgw-enabled .lgw-app .lgw-native-scene{position:static!important;height:350px!important;max-height:none!important}
 body.lgw-enabled .lgw-app[data-lgw-panel] :is(.lgw-inputs,.lgw-results){display:block!important}
}
