.mobile-quantity{display:contents}.mobile-quantity button{display:none}
#mobileApp,.mobile-sheet-header,#mobileInspectorContent{display:none}
@media(max-width:1024px){
 :root{--mobile-header:calc(56px + env(safe-area-inset-top,0px));--mobile-nav:calc(72px + env(safe-area-inset-bottom,0px));--mobile-deck-height:66px}
 html,body{height:100%;overscroll-behavior:none}body{overflow:hidden;-webkit-text-size-adjust:100%}button,a,input,select,summary{-webkit-tap-highlight-color:transparent}button,input,select{font-size:16px}button{min-height:48px}button:active{background:#dbe5d1}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid #9f6b29;outline-offset:2px}
 .app-header{position:fixed;inset:0 0 auto;height:var(--mobile-header);padding:env(safe-area-inset-top,0px) 112px 0 16px;gap:8px;z-index:20;background:#f6f7f2;border-bottom:1px solid #d9dfd4}.app-header .brand{gap:10px;font-size:13px;letter-spacing:.9px;min-width:0}.brand-mark{font-size:30px}.brand small{display:none}.app-header nav,.app-header #help{display:none}.workspace{position:fixed;top:var(--mobile-header);bottom:var(--mobile-nav);left:0;right:0;height:auto;display:block}.stage{height:calc(100% - var(--mobile-deck-height));width:100%}.stage-heading,.view-toolbar,.mode-toolbar,.stage-controls,.stage-bottom,.stats,.selection-summary,.compatibility-badge{display:none!important}.dimension-overlay .dim-label{font-size:12px;padding:6px 8px}
 #mobileApp{display:block;pointer-events:none}#mobileApp button,#mobileApp a,#mobileApp input,#mobileApp select,#mobileApp .panel{pointer-events:auto}#mobileApp svg,.mobile-tabs svg,#mobileInspectorContent svg{width:22px;height:22px;flex:none}.mobile-top-actions{position:fixed;right:10px;top:env(safe-area-inset-top,0px);height:56px;display:flex;gap:2px;align-items:center;z-index:21}.mobile-top-actions button{width:48px;padding:12px;border:0;background:transparent;display:grid;place-items:center}.mobile-canvas-top{position:fixed;left:14px;right:14px;top:calc(var(--mobile-header) + 10px);display:flex;justify-content:space-between;z-index:6;pointer-events:none}.mobile-canvas-top button{display:flex;align-items:center;justify-content:center;gap:8px;min-height:44px;padding:9px 13px;background:#f9fbf4f2;border:1px solid #cfd8c9;border-radius:12px;box-shadow:0 2px 12px #1834290b;font-size:13px}.mobile-canvas-top #mobileFit{width:46px;padding:10px}
 .mobile-deck{position:fixed;bottom:var(--mobile-nav);left:0;right:0;height:var(--mobile-deck-height);padding:7px 12px;background:#f6f7f2;border-top:1px solid #d9dfd4;z-index:10;pointer-events:auto}.mobile-mode-switch,.mobile-viewer-actions{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.mobile-mode-switch button{display:flex;align-items:center;justify-content:center;gap:6px;min-height:50px;font-size:12px;padding:8px 3px;border:1px solid #d6decf;border-radius:12px;background:#fbfcf7}.mobile-mode-switch button.active{background:#244c3c;color:#fff;border-color:#244c3c}.mobile-mode-switch svg{width:19px!important;height:19px!important}.mobile-selected-row{display:flex;align-items:center;gap:4px;height:50px;margin-bottom:2px}.mobile-selected-row>span{display:flex;gap:7px;align-items:center;min-width:0;flex:1;font-size:13px}.mobile-selected-row>span>svg{width:18px!important;color:#527a3e}.mobile-selected-row strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-weight:600}.mobile-selected-row button{display:flex;align-items:center;gap:5px;border:0;font-size:12px;padding:8px;min-height:44px}.mobile-selected-row #mobileClearSelection{width:40px;flex:none;padding:9px}.mobile-selected-row #mobileEditSelection{background:#e6edda;border-radius:10px;padding:8px 10px}.mobile-viewer-actions button{font-size:13px;background:#e7eddf;border:0;border-radius:12px;min-height:50px}
 .mobile-tabs{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:4px;position:fixed;bottom:0;left:0;right:0;height:var(--mobile-nav);padding:6px max(6px,env(safe-area-inset-right,0px)) calc(6px + env(safe-area-inset-bottom,0px)) max(6px,env(safe-area-inset-left,0px));z-index:60;background:#f6f7f2;border-top:1px solid #d9dfd4}.mobile-tabs button{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;position:relative;min-width:0;min-height:56px;padding:5px 1px;font-size:10px;font-weight:550;border:0;border-radius:12px;background:transparent;color:#54695b}.mobile-tabs button.active{color:#244c3c;background:#e6eddc}.mobile-tabs button.active svg{stroke-width:2.3}.mobile-tabs button span{white-space:nowrap}.mobile-tabs b{position:absolute;top:2px;right:8px;border:2px solid #f6f7f2;background:#244c3c;color:white;min-width:18px;height:18px;line-height:14px;border-radius:20px;font-size:9px;font-weight:600}body:not([data-workspace="builder"]) .mobile-tabs{grid-template-columns:repeat(4,minmax(0,1fr))}
 .sheet-backdrop{position:fixed;inset:0 0 var(--mobile-nav);z-index:25;border:0;border-radius:0;background:#182d2545;min-height:0;padding:0;touch-action:none}.sheet-backdrop:hover{background:#182d2545}.panel{display:none;position:fixed!important;top:auto!important;bottom:var(--mobile-nav)!important;left:0!important;right:0!important;width:100%!important;max-width:none!important;height:min(66dvh,calc(100dvh - var(--mobile-header) - var(--mobile-nav) - 24px));max-height:none;border:0;border-top:1px solid #d4ddcc;border-radius:24px 24px 0 0;box-shadow:0 -8px 32px #1b32251c;padding:0 16px 24px;z-index:40;overflow-y:auto;overscroll-behavior:contain;scroll-padding-top:106px;-webkit-overflow-scrolling:touch}.panel.open{display:block}.sheet-expanded .panel.open{height:calc(100dvh - var(--mobile-header) - var(--mobile-nav) - 8px)}.mobile-sheet-header{display:block;position:sticky;top:0;margin:0 -16px 14px;padding:0 16px 9px;background:#f6f7f2;z-index:5;border-bottom:1px solid #e0e5da}.sheet-grip{display:grid;place-items:center;width:100%;height:24px;min-height:24px;padding:0;border:0;border-radius:0;touch-action:none}.sheet-grip span{width:36px;height:4px;background:#b5c0af;border-radius:6px}.sheet-heading-row{display:flex;align-items:center;gap:4px;min-height:48px}.sheet-heading-row h2{font-size:20px;font-weight:600;letter-spacing:-.5px;line-height:1.2;margin:0;flex:1}.sheet-heading-row button{display:grid;place-items:center;width:44px;min-height:44px;border:0;padding:10px}.sheet-heading-row .sheet-expand svg{width:18px!important}.panel .panel-heading{display:none}.panel p{font-size:13px;line-height:1.55}.panel .section-title{font-size:11px;letter-spacing:1.1px;margin:22px 0 12px}.panel .section-title>span{font-size:10px;letter-spacing:0}.panel select,.panel input:not([type=checkbox]):not([type=range]){font-size:16px;min-height:48px}.panel select{max-width:100%;border-radius:10px;padding:10px;background:#fcfdf8}.panel input[type=checkbox]{width:24px;height:24px;accent-color:#244c3c}.panel .select-row{gap:12px;align-items:center;font-size:14px}.panel .select-row>label{max-width:45%}.panel .switch-row{font-size:14px;min-height:48px}.panel .switch-row label{flex:1}.panel .inspector-footer{display:none}
 .mobile-sheet-open .mobile-canvas-top,.mobile-sheet-open .mobile-deck{visibility:hidden;pointer-events:none}.mobile-sheet-open .mobile-top-actions{z-index:20}.mobile-sheet-open .toast{z-index:55}body[data-mobile-panel="cabinets"] #presetLibrarySection,body[data-mobile-panel="presets"] #cabinetLibrarySection{display:none}#placementSettingsSection,#projectFilesSection{margin-bottom:22px}.cabinet-card{padding:16px;margin:12px 0 18px;border-radius:16px;cursor:default;background:#fcfdf8}.cabinet-card .card-top{gap:16px}.cabinet-card h3,.c3d-card h3{font-size:20px;margin-bottom:6px}.cabinet-card p{font-size:13px;line-height:1.5}.cabinet-sketch{width:56px;height:68px}.cabinet-card .card-actions{gap:12px;margin-top:16px}.card-actions button[data-add]{font-size:14px;min-height:48px;border-radius:11px;padding:10px}.mobile-quantity{display:flex;border:1px solid #d3ddca;border-radius:11px;overflow:hidden;background:#f3f6ec;flex:none}.mobile-quantity button{display:block;width:44px;min-height:48px;flex:none;padding:4px;border:0;border-radius:0;font-size:22px;background:transparent}.mobile-quantity input{width:34px;max-width:34px;border:0;border-radius:0;font-size:16px;padding:0;text-align:center;appearance:textfield}.mobile-quantity input::-webkit-inner-spin-button{appearance:none}.library-options{font-size:13px;gap:4px}.library-options label{min-height:44px;gap:10px}.library-options .horn-finish-field{flex-wrap:wrap}.horn-finish-field select{font-size:14px;max-width:180px!important}.drag-note{display:none}.preset-buttons button{min-height:58px;font-size:14px;border-radius:12px;padding:12px}.preset-buttons button small{font-size:12px}.inspiration-panel{padding:12px;border-radius:14px}.inspiration-panel summary{font-size:14px;min-height:44px;padding:10px 0;line-height:1.5}.inspiration-card button{font-size:14px;min-height:54px;border-radius:10px}.inspiration-card small{font-size:11px}.inspiration-card p{font-size:13px}.inspiration-card a{display:inline-flex;align-items:center;min-height:44px;font-size:12px;line-height:1.5}.file-actions button{font-size:14px;min-height:50px}.text-note{font-size:12px!important}
 body[data-workspace="builder"] #inspectorContent{display:none}body[data-workspace="builder"] #mobileInspectorContent{display:block}.mobile-inspector-heading>strong{font-size:18px;line-height:1.35;display:block;overflow-wrap:anywhere}.mobile-inspector-heading p{margin:6px 0 14px}.mobile-edit-tabs{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:4px;padding:4px;border-radius:12px;background:#e8ede1;margin:10px 0 18px}.mobile-edit-tabs button{font-size:12px;min-height:44px;padding:7px 2px;border:0;border-radius:9px}.mobile-edit-tabs button[aria-selected=true]{background:#fff;color:#244c3c;box-shadow:0 1px 4px #19362c10}.mobile-helper{font-size:13px;color:#5c7065}.mobile-step-options{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin:16px 0}.mobile-step-options button{font-size:14px;border-radius:10px}.mobile-step-options [aria-pressed=true]{background:#244c3c;color:white;border-color:#244c3c}.mobile-nudge>div{display:grid;grid-template-columns:minmax(0,1fr) 48px 76px 48px;gap:6px;align-items:center;margin:12px 0}.mobile-nudge>div>span{font-size:13px;line-height:1.3}.mobile-nudge button{display:grid;place-items:center;border-radius:10px;background:#e9efdf;padding:10px}.mobile-nudge output{font-size:13px;text-align:center;font-variant-numeric:tabular-nums}.mobile-precise{border:1px solid #d9e1d1;border-radius:12px;padding:0 12px;margin:18px 0}.mobile-precise summary{font-size:14px;min-height:48px;padding:15px 0}.mobile-position-fields{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;padding-bottom:12px}.mobile-position-fields label{font-size:11px}.mobile-position-fields input{width:100%;border:1px solid #ccd8c1;border-radius:9px;padding:8px;background:#fff}.mobile-selection-actions{display:grid;grid-template-columns:1fr 1.3fr 48px;gap:8px;padding-top:18px;margin-top:18px;border-top:1px solid #dce3d4}.mobile-selection-actions button{display:flex;align-items:center;justify-content:center;gap:7px;font-size:13px;border-radius:10px;padding:8px;background:#edf1e6}.mobile-selection-actions .danger{background:#f7ebe5;color:#a34832}.mobile-list-tools{display:flex;gap:8px}.mobile-list-tools button{font-size:13px;flex:1;border-radius:10px}.mobile-object-list{display:grid;gap:8px}.mobile-object-list button{display:flex;gap:12px;text-align:left;align-items:center;width:100%;padding:12px;border-radius:12px;min-height:64px;background:#fafcf5}.mobile-object-list button[aria-pressed=true]{background:#e6edda;border-color:#aabf96}.mobile-list-check{width:25px;height:25px;border:1.5px solid #a6b596;border-radius:7px;display:grid;place-items:center;flex:none}.mobile-list-check svg{width:20px!important;height:20px!important}.mobile-object-list strong{font-size:14px;font-weight:600;overflow-wrap:anywhere}.mobile-object-list small{font-size:11px;color:#65745c;display:block;margin-top:4px}.mobile-pose-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:16px 0}.mobile-pose-grid button{display:flex;align-items:center;gap:8px;text-align:left;font-size:14px;padding:12px;border-radius:12px;background:#edf2e5}.mobile-angle-row{margin:20px 0 14px}.mobile-angle-row label{display:flex;align-items:center;justify-content:space-between;font-size:14px;gap:10px}.mobile-angle-row select{width:125px}.mobile-rotate-list>div{display:grid;grid-template-columns:1fr 48px 48px;align-items:center;gap:8px;margin:12px 0;font-size:13px}.mobile-rotate-list button{font-size:23px;border-radius:10px;background:#e9efdf}.mobile-field{display:grid;gap:8px;margin:16px 0;font-size:14px}.mobile-field input,.mobile-field select{width:100%;min-width:0;background:#fdfef9;border:1px solid #ccd7c1;border-radius:10px;padding:12px}.mobile-toggle{display:flex;align-items:center;justify-content:space-between;gap:16px;min-height:56px;margin:8px 0;font-size:14px}.mobile-route-grid,.mobile-file-actions{display:grid;gap:8px;margin:12px 0 22px}.mobile-route-grid a,.mobile-file-actions button{display:flex;gap:12px;align-items:center;min-height:52px;padding:12px;border:1px solid #d8e1cf;border-radius:12px;font-size:14px;text-decoration:none;background:#fdfef9}.mobile-view-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:16px 0 24px}.mobile-view-grid button{min-height:92px;border-radius:14px;display:flex;flex-direction:column;gap:12px;align-items:center;justify-content:center;font-size:14px;background:#edf2e5}.mobile-install-hint,.mobile-save-note{font-size:12px!important;padding:12px;background:#e9efdf;border-radius:12px}.mobile-menu{pointer-events:auto}.viewer-preset button{min-height:48px;font-size:14px}.part-row{min-height:56px;font-size:14px;gap:12px;padding:10px 2px}.part-row input{flex:none}.part-row small{font-size:11px}.viewer-dim{font-size:16px}.panel .builder-cta,.panel .source-links a{font-size:14px;padding:14px;display:block}.panel h2:not(.sheet-heading-row h2){font-size:22px}.panel input[type=range]{min-height:44px}.range-label{font-size:14px}
 .toast{position:fixed;top:calc(var(--mobile-header) + 65px);bottom:auto;max-width:calc(100% - 32px);font-size:13px;z-index:55;border-radius:12px;padding:12px 16px}.loading{font-size:15px}dialog{padding:32px 22px;border-radius:20px;max-height:calc(100dvh - 32px)}dialog h2{font-size:28px}dialog ol{font-size:14px}dialog .keyline{font-size:12px}.dialog-close{width:48px;min-height:48px}
}
@media(max-width:360px){.mobile-mode-switch button{font-size:11px;gap:4px}.mobile-nudge>div{grid-template-columns:minmax(0,1fr) 44px 68px 44px;gap:4px}.mobile-tabs button{font-size:9px}.mobile-quantity button{width:44px}.mobile-quantity input{width:30px;max-width:30px}.app-header .brand{font-size:11px}}
@media(max-width:1024px) and (max-height:520px){:root{--mobile-header:48px;--mobile-nav:58px;--mobile-deck-height:58px}.app-header{height:48px}.mobile-top-actions{height:48px}.mobile-tabs{height:58px;padding-top:3px;padding-bottom:3px}.mobile-tabs button{min-height:48px;gap:2px;font-size:9px}.mobile-tabs svg{width:19px;height:19px}.mobile-canvas-top{top:calc(var(--mobile-header) + 7px)}.mobile-deck{padding:5px 12px}.mobile-mode-switch button,.mobile-viewer-actions button{min-height:46px}.mobile-selected-row{display:none}.panel{height:calc(100dvh - var(--mobile-header) - var(--mobile-nav) - 8px)}.mobile-edit-tabs{margin:8px 0 12px}.mobile-inspector-heading p{margin-bottom:8px}}

@media(max-width:1024px){.mobile-selection-dimensions{display:block;font-size:12px;color:#607254;margin-top:6px}.mobile-sheet-open .mobile-top-actions{z-index:50}}

@media(max-width:1024px){.mobile-zoom{position:fixed;bottom:calc(var(--mobile-nav) + var(--mobile-deck-height) + 12px);right:14px;z-index:6;display:grid;gap:6px;pointer-events:auto}.mobile-zoom button{width:46px;height:46px;min-height:46px;display:grid;place-items:center;padding:11px;border:1px solid #cfd8c9;border-radius:12px;background:#f9fbf4f2;box-shadow:0 2px 12px #1834290b}.mobile-sheet-open .mobile-zoom{visibility:hidden;pointer-events:none}.mobile-selected-row #mobileClearSelection{width:44px}.sheet-grip{cursor:ns-resize}.mobile-edit-tabs button:disabled{opacity:.45}}
@media(max-width:1024px) and (max-height:520px){body{--mobile-deck-height:58px!important}}

@media(max-width:1024px){body:not([data-workspace=builder]) #mobileUndo{display:none}.mobile-viewer-actions button.active{background:#244c3c;color:#fff}}

@media(max-width:1024px){#mobileApp .cabinet-sketch{width:56px;height:68px}}

@media(max-width:1024px){.mobile-tabs{visibility:hidden}.mobile-app-active .mobile-tabs{visibility:visible}.mobile-overlap-note{background:#f6e9dc;border:1px solid #e2c7aa;border-radius:10px;padding:10px;color:#81522d!important;font-size:12px!important}}

@media(max-width:1024px){.mobile-mode-hint{display:flex;align-items:center;height:50px;color:#536a5a;font-size:12px;line-height:1.5;padding:4px 8px}}
@media(max-width:1024px) and (max-height:520px){.mobile-mode-hint{display:none}}
