.mobile-only{display:none}
@media screen and (max-width:1024px){
 :root{--mobile-dock-height:72px;--mobile-safe-bottom:env(safe-area-inset-bottom,0px)}
 body{overflow-x:clip}button,select,summary,a,input{touch-action:manipulation}button,summary{min-height:44px}input,select,textarea{font-size:16px!important}input[type=range]{min-height:44px;touch-action:pan-y}input[type=checkbox]{width:20px;height:20px;flex:none}
 .mobile-only{display:flex}.studio-header{position:sticky;top:0;z-index:70;min-height:0;height:auto;display:flex;flex-wrap:wrap;padding:8px max(12px,env(safe-area-inset-right)) 8px max(12px,env(safe-area-inset-left));gap:8px 12px;backdrop-filter:none;background:#20262c}.brand img{width:116px;height:34px;max-height:34px}.studio-name{display:none}.studio-header>button{margin-left:auto;min-height:36px;padding:6px 14px;font-size:14px}.studio-header nav{order:3;width:100%;height:auto;margin:0;padding:3px;gap:2px;justify-content:stretch}.studio-header nav button{flex:1;padding:8px 5px;min-height:40px;font-size:13px;white-space:nowrap}
 .layout-view{display:flex;flex-direction:column;min-height:310px;height:calc(100dvh - var(--mobile-header-height,106px));padding:0 0 calc(var(--mobile-dock-height) + var(--mobile-safe-bottom));gap:0}.workbench{flex:1;min-height:0;padding:8px;overflow:hidden}.workbench-heading{margin:0;min-height:0}.workbench-heading>div:first-child{display:none}.workbench-actions{position:fixed;z-index:100;left:0;right:0;bottom:0;display:grid;grid-template-columns:1fr 1.2fr 1fr;gap:8px;padding:10px max(10px,env(safe-area-inset-right)) calc(10px + var(--mobile-safe-bottom)) max(10px,env(safe-area-inset-left));height:calc(var(--mobile-dock-height) + var(--mobile-safe-bottom));margin:0;width:auto;background:#fff;border-top:1px solid #ccd5db;box-shadow:0 -5px 24px #1c2d3814}.workbench-actions button,.workbench-actions #auto,.workbench-actions #openTools{font-size:14px;padding:8px 5px;min-width:0;min-height:48px;line-height:1.2;white-space:normal;gap:5px}.workbench-actions .ui-icon{display:none}#mobileSetup[aria-expanded=true]{border-color:#ab8919;background:#fff3bb;color:#443707}
 .canvas-frame{position:relative;flex:1;min-height:0;border-radius:16px;box-shadow:none;overflow:hidden}.viewbar{flex:none;display:flex;flex-wrap:nowrap;gap:5px;padding:5px 8px;min-height:50px;background:#fff;backdrop-filter:none}.viewbar>span{font-size:12px;min-width:0;max-width:43%;line-height:1.3;overflow-wrap:anywhere}.viewbar>div{margin-left:auto;gap:2px;flex:none;padding:0;background:transparent}.viewbar button{min-height:44px;font-size:14px;padding:6px 9px}.view-options>summary{min-height:38px;padding:9px 12px;font-size:13px}.view-options>summary>span{display:inline;font-size:12px}.view-options{position:relative;z-index:46}.view-options-body{position:absolute;left:0;right:0;top:100%;max-height:min(48dvh,320px);overflow:auto;overscroll-behavior:contain;background:#f8fafb;border-bottom:1px solid #c5d0d9;box-shadow:0 8px 16px #24323c22}.view-options .camera-controls button{min-height:44px;padding:8px;font-size:14px}.view-options .camera-controls{justify-content:flex-start}.view-options #cameraZoomIn,.view-options #cameraZoomOut{width:44px}.view-options .guidance-bar{display:grid;grid-template-columns:1fr;gap:6px}.view-options .guidance-bar label{min-height:44px;font-size:14px}.view-options .guidance-bar #labels{justify-self:start}.view-options .heat-map-filter select{flex:1;min-width:0}
 .stage{flex:1;min-height:120px;height:auto;overflow:hidden}.stage-title{top:9px;left:9px;padding:5px 8px;font-size:10px;max-width:65%}.stage-title span{display:none}.mount-legend{bottom:8px;right:8px;left:auto;gap:6px;padding:4px 6px;font-size:10px;max-width:calc(100% - 16px);flex-wrap:wrap}.view-help,.canvas-bottom,.layout-status{display:none}.mobile-touch-bar{flex:none;align-items:center;justify-content:space-between;gap:8px;padding:7px 10px;background:#f5f7f9;border-top:1px solid #dde4e9;color:#465b6a;min-height:34px;font-size:12px;line-height:1.4}.mobile-touch-bar button{min-height:40px;flex:none;font-size:13px}.mobile-touch-bar span{min-width:0}canvas{touch-action:none}
 #setupInspector{position:fixed;z-index:90;left:0;right:0;bottom:calc(var(--mobile-dock-height) + var(--mobile-safe-bottom));top:auto;display:block;width:auto;max-width:720px;height:min(68dvh,660px);max-height:calc(100dvh - var(--mobile-dock-height) - var(--mobile-safe-bottom) - 12px);margin:0 auto;padding:0 16px 24px;border:1px solid #bbc9d2;border-radius:22px 22px 0 0;background:#fff;box-shadow:0 -12px 40px #1d303b2b;overflow-y:auto;overscroll-behavior:contain;scrollbar-gutter:stable;transform:translateY(calc(100% + var(--mobile-dock-height) + var(--mobile-safe-bottom) + 20px));visibility:hidden;pointer-events:none;transition:transform .24s cubic-bezier(.22,1,.36,1),visibility .24s}
 #setupInspector[data-mobile-open=true]{transform:none;visibility:visible;pointer-events:auto}#setupInspector>.inspector-title,#setupInspector>.focus-hint{display:none}.mobile-sheet-head{position:sticky;top:0;z-index:5;display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:10px;margin:0 -16px 12px;padding:14px 16px 12px;background:#fff;border-bottom:1px solid #d7e0e6}.mobile-sheet-head>div{display:grid;gap:3px;min-width:0;flex:1}.mobile-sheet-head span{font-size:10px;font-weight:650;letter-spacing:.08em;color:#6b7881}.mobile-sheet-head strong{font-size:18px;color:#20323e}.mobile-sheet-head>button{min-height:44px;font-size:14px;padding:8px 14px}#mobileMoveTool{flex-basis:100%;background:#fff3c1;border-color:#d8bd59;color:#554411}.inspector .workspace-disclosure>summary{font-size:15px;min-height:48px}.inspector button{min-height:44px;font-size:14px}.inspector select{min-height:44px;max-width:100%;white-space:normal}.inspector input[type=number]{min-height:44px}.inspector .pressure-switch{font-size:14px!important;min-height:44px}.inspector .clamp-actions{flex-wrap:wrap}.inspector .clamp-actions button{flex-basis:110px}.inspector .rotation-dial{width:160px;height:160px;touch-action:none;margin:24px auto}.inspector .selected-product-photo>a>img{max-height:135px}.inspector .vertical-product img{max-height:140px}.inspector .editbar{flex-wrap:wrap}.inspector .editbar button{min-width:44px}.inspector .slot-adjustment button{min-width:44px;min-height:44px}.inspector .angle-control{flex-wrap:wrap}.inspector .angle-control select{width:100%}.inspector p,.inspector label,.inspector small{overflow-wrap:anywhere}.vertical-inspector{padding:8px 0}.asb-exact{grid-template-columns:minmax(0,1fr) 82px}.asb-exact button{grid-column:1/-1}
 #toolSuggestionPopup,.vertical-suggestion{position:fixed;z-index:95;left:8px!important;right:8px!important;top:auto!important;bottom:calc(var(--mobile-dock-height) + var(--mobile-safe-bottom) + 8px)!important;width:auto;max-width:600px;margin:0 auto;max-height:50dvh;overflow:auto}.tool-suggestion-heading{padding:10px 12px}.tool-suggestion-heading h2{font-size:17px}.tool-suggestion-body{padding:10px 12px}.tool-suggestion-footer{padding:10px 12px}#closeToolSuggestion{min-width:44px;min-height:44px}#toolSuggestionPopup #toolSuggestionIntro{margin-bottom:10px;padding:7px 10px}.fixture-search-status{position:fixed;z-index:110;top:auto;left:8px;right:8px;bottom:calc(var(--mobile-dock-height) + var(--mobile-safe-bottom) + 8px);padding:12px;gap:10px;max-width:600px;margin:0 auto}.fixture-search-status small{display:none}.fixture-search-status button{min-height:44px}.fixture-search-spinner{width:18px;height:18px;flex:none}
 #toolDrawer{inset:auto 0 0;width:100%;max-width:720px;height:94dvh;max-height:94dvh;border-radius:20px 20px 0 0;padding-bottom:var(--mobile-safe-bottom);overscroll-behavior:contain}#toolDrawer .drawer-heading{position:sticky;top:0;z-index:5;padding:12px 16px;background:#fff;backdrop-filter:none;gap:12px}#toolDrawer .drawer-heading h2{font-size:22px}#toolDrawer .drawer-heading .eyebrow{display:none}#closeTools{min-height:44px}#toolDrawer .library-options{padding:10px 16px;gap:8px}#toolDrawer .library-options p{font-size:13px}#toolDrawer .inventory-menu summary{font-size:14px;min-height:44px;padding:10px 0}#toolDrawer .clamp-library-tabs{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px;padding:10px 12px;margin:0}#toolDrawer .clamp-library-tabs button{font-size:13px;padding:8px 3px;min-height:48px;white-space:normal}#toolDrawer .clamp-library-tabs select{grid-column:1/-1;width:100%;min-height:44px;margin:0}#palette{grid-template-columns:1fr;padding:8px 12px 20px;gap:12px}#restPalette,#stopPalette,#clampPalette{padding:0 12px 20px}#toolDrawer .card{padding:14px;gap:12px;transform:none}#toolDrawer .pick strong{font-size:15px}#toolDrawer .qty button{width:44px;min-height:44px}#toolDrawer .clamp-card{grid-template-columns:64px minmax(0,1fr);gap:12px;padding:18px 0}#toolDrawer .clamp-card-actions{grid-column:1/-1;display:flex;flex-direction:row;flex-wrap:wrap;align-items:center;gap:12px}#toolDrawer .clamp-card-actions button{flex:1;min-height:44px;font-size:14px}#toolDrawer .clamp-card p,#toolDrawer .stop-card p{font-size:14px}#toolDrawer .clamp-card small,#toolDrawer .stop-card small{font-size:12px}#toolDrawer .stop-card{flex-wrap:wrap;padding:16px 0;gap:12px}#toolDrawer .stop-card .report-product-photo{width:64px;height:64px}#toolDrawer .stop-card-actions{padding-left:0;display:flex;flex-wrap:wrap;align-items:center;width:100%}#toolDrawer .stop-card-actions label{display:flex;align-items:center;gap:8px}#toolDrawer .stop-card-actions button{flex:1;font-size:14px}#toolDrawer .stop-card-actions input{width:76px;min-height:44px}#toolDrawer .stop-adapter-note{margin-left:0;max-width:100%}#toolDrawer .library-footer{font-size:12px;padding:12px 16px}
 #bomPanel,#stepsPanel{max-width:100%;margin:10px 8px 24px;padding:16px;border-radius:14px;overflow:hidden}.visual-report-heading{flex-direction:column;gap:14px}.visual-report-heading h2{font-size:27px}.report-total{min-width:0;width:100%}.parts-table-wrap{overflow:visible}.illustrated-parts,.illustrated-parts tbody{display:block;width:100%}.illustrated-parts thead{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}.illustrated-parts tbody tr{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));margin:12px 0;border:1px solid #d6e0e6;border-radius:12px;overflow:hidden}.illustrated-parts td{display:block;padding:12px 6px;min-width:0;border:0;background:#f5f8fa;font-size:14px;text-align:center;white-space:normal!important;overflow-wrap:anywhere}.illustrated-parts td:first-child{grid-column:1/-1;text-align:left;padding:14px;background:#fff}.illustrated-parts td[colspan]{grid-column:1/-1}.illustrated-parts td:not(:first-child):before{display:block;font-size:12px;color:#596d7b;margin-bottom:6px}.illustrated-parts td:nth-child(2):before{content:'Used'}.illustrated-parts td:nth-child(3):before{content:'Owned'}.illustrated-parts td:nth-child(4):before{content:'Short'}.illustrated-parts td:nth-child(5):before{content:'Estimate'}.parts-product{min-width:0;gap:12px;align-items:flex-start}.parts-product>div{min-width:0;overflow-wrap:anywhere}.parts-product .report-product-photo{width:70px;height:70px}.parts-name{font-size:15px}.sequence-stage-layout,.member-sequence-grid,.reference-explainer,.vertical-report-grid{grid-template-columns:1fr}.sequence-figure{position:static}.sequence-stage h3{font-size:21px}.sequence-tool{padding:12px;gap:10px;flex-wrap:wrap}.sequence-tool>div{flex:1;min-width:150px}.sequence-directions p,.sequence-directions li{font-size:15px}.vertical-sequence-step{padding:14px}.vertical-report-grid figure{margin:0}.vertical-connection-table{table-layout:fixed;width:100%}.vertical-connection-table td{overflow-wrap:anywhere}.vertical-connection-table td:first-child{width:80px}.report-footnote{overflow-wrap:anywhere}
 .studio-header{padding-top:calc(8px + env(safe-area-inset-top,0px))}.workbench{padding-left:max(8px,env(safe-area-inset-left,0px));padding-right:max(8px,env(safe-area-inset-right,0px))}.studio-header,.viewbar,#setupInspector,#toolDrawer .drawer-heading{backdrop-filter:none;-webkit-backdrop-filter:none}
}
@media screen and (max-width:1024px) and (max-height:520px){
 :root{--mobile-dock-height:62px}.studio-header{flex-wrap:nowrap;gap:8px;padding:5px 10px}.brand img{width:88px;height:32px}.studio-header nav{order:0;width:auto;flex:1;max-width:450px}.studio-header nav button{font-size:12px;min-height:36px}.studio-header>button{order:3}.layout-view{min-height:245px}.workbench-actions{padding-top:7px;padding-bottom:calc(7px + var(--mobile-safe-bottom))}.workbench-actions button{min-height:44px}.workbench{padding:4px 8px}.viewbar{min-height:44px}.view-options>summary{min-height:30px;padding:6px 10px}.mobile-touch-bar{min-height:28px;padding:4px 10px}#setupInspector{left:auto;right:0;top:6px;bottom:calc(var(--mobile-dock-height) + var(--mobile-safe-bottom));height:auto;max-height:none;width:min(420px,80vw);border-radius:16px 0 0 0}.mobile-sheet-head{padding-top:9px;padding-bottom:9px}#toolSuggestionPopup,.vertical-suggestion{max-height:70dvh;left:auto!important;width:min(380px,65vw)}.stage-title{padding:3px 6px}
}
@media(prefers-reduced-motion:reduce){#setupInspector{transition:none!important}}
@media print{.mobile-only{display:none!important}}
