.touch-workspace-nav{display:none}
body.touch-workspace{height:100dvh;overflow:hidden}
body.touch-workspace>header{height:56px;flex:0 0 56px;padding:4px 10px;gap:6px}
body.touch-workspace>header .brand{display:flex;margin-right:auto}body.touch-workspace>header .brand img{width:100px;height:auto}
body.touch-workspace>header .actions #save{display:none}body.touch-workspace>header button{min-height:44px;font-size:12px;padding:8px 10px}
body.touch-workspace main{height:calc(100dvh - 56px);padding:0!important;overflow:auto;min-height:0}
body.touch-workspace[data-screen=editor] main{overflow:hidden}
body.touch-workspace #planner-editor{height:100%;min-height:0;display:flex;flex-direction:column;gap:0;padding-bottom:calc(64px + env(safe-area-inset-bottom))}
body.touch-workspace .touch-workspace-nav{display:flex;flex:none;gap:6px;align-items:center;padding:4px 8px;border-bottom:1px solid #dbe1e8;background:white}
body.touch-workspace .touch-workspace-nav button{min-height:44px;flex:1;padding:7px;font-size:12px;white-space:nowrap}
body.touch-workspace #planner-editor>.onepage-tools{min-height:24px;padding:4px 12px;flex:none}
body.touch-workspace #planner-editor>.onepage-tools .onepage-tool-buttons{display:none}
body.touch-workspace #planner-editor .onepage-tools span{display:inline;font-size:11px}
body.touch-workspace #planner-editor>.workspace{flex:1;min-height:0;height:auto;width:100%}
body.touch-workspace #planner-editor .design-panel,body.touch-workspace #planner-editor .canvas-card{height:100%;min-height:0;width:100%}
body.touch-workspace #planner-editor .canvas-card{border:0;border-radius:0;overflow:hidden}
body.touch-workspace #planner-editor .canvas-toolbar,body.touch-workspace #planner-editor .mobile-view-controls,body.touch-workspace #planner-editor .desktop-view-controls,body.touch-workspace #planner-editor .canvas-heading,body.touch-workspace #planner-editor #door-guide,body.touch-workspace #planner-editor .scene-help{display:none!important}
body.touch-workspace #planner-editor .scene-wrap{height:100%!important;min-height:0!important;flex:1;width:100%;overflow:hidden}
body.touch-workspace #scene{width:100%!important;height:100%!important;min-height:0!important;max-height:none!important;touch-action:none}
body.touch-workspace #planner-editor>.item-dock{position:fixed;z-index:30;left:0;right:0;bottom:0;margin:0;padding:6px 10px max(6px,env(safe-area-inset-bottom));border-radius:16px 16px 0 0;background:white;box-shadow:0 -4px 24px #14213d20}
body.touch-workspace #mobile-dock-toggle{display:flex;align-items:center;justify-content:space-between;width:100%;min-height:50px;font-size:14px;padding:10px 14px;background:#ffe600;color:#172643}
body.touch-workspace .item-dock[data-mobile-open=false] #mobile-dock-content{display:none}
body.touch-workspace #mobile-dock-content{max-height:55dvh;overflow:auto;padding:10px 0;overscroll-behavior:contain}
body.touch-workspace #dock-groups{display:flex;flex-wrap:nowrap;overflow:auto;width:100%}body.touch-workspace #dock-groups button{min-height:44px;flex:none;padding:8px 12px;font-size:12px}
body.touch-workspace .dock-top{display:flex;flex-wrap:wrap;gap:8px}body.touch-workspace .dock-selection{width:100%;display:flex;margin:0;gap:5px}body.touch-workspace .dock-selection select{flex:1;max-width:none;min-width:0}
body.touch-workspace #dock-items{display:flex;overflow-x:auto;scroll-snap-type:x proximity;gap:8px}body.touch-workspace .dock-item{min-width:130px;flex:1;scroll-snap-align:start}body.touch-workspace .dock-item strong{font-size:12px}body.touch-workspace .dock-item svg{height:36px}body.touch-workspace .dock-item button{min-height:44px}
body.touch-workspace button,body.touch-workspace select,body.touch-workspace input{touch-action:manipulation}body.touch-workspace select,body.touch-workspace input:not([type=checkbox]):not([type=range]){font-size:16px;min-height:44px}
body.touch-workspace dialog{max-width:100vw!important;width:100vw;max-height:100dvh;margin:auto 0 0;padding:16px;border-radius:18px 18px 0 0;overflow:auto;overscroll-behavior:contain}
#touch-settings{width:min(620px,100vw);max-height:85dvh;padding:16px;border:0;border-radius:18px;color:#172643}#touch-settings::backdrop{background:#14213d66}.touch-sheet-head{display:flex;align-items:center;justify-content:space-between;gap:12px;position:sticky;top:-16px;background:white;z-index:1;padding:8px 0}.touch-sheet-head h2{font-size:20px;margin:0}.touch-sheet-head button{min-height:44px}
#touch-sheet-body .onepage-tool-buttons{display:grid;grid-template-columns:1fr 1fr;gap:10px}#touch-sheet-body button{min-height:44px;font-size:14px;padding:10px}#touch-sheet-body .canvas-toolbar{display:flex;flex-wrap:wrap;gap:10px}#touch-sheet-body .mobile-view-controls{display:grid;gap:12px;padding:16px 0}#touch-sheet-body .mobile-view-controls>div{display:flex;flex-wrap:wrap;gap:8px}#touch-sheet-body .mobile-view-controls small{font-size:12px}#touch-sheet-body #door-guide{display:block;padding:10px 0}#touch-sheet-body #door-guide[hidden]{display:none}#touch-sheet-body .door-guide-controls{display:flex;flex-wrap:wrap;gap:10px}#touch-sheet-body .door-position-range{min-width:180px}#touch-sheet-body .door-guide-controls label{font-size:13px}#touch-sheet-body #door-guide-confirm{width:100%}
body.touch-workspace .vehicle-screen{height:auto;min-height:100%;justify-content:flex-start;padding:24px 16px;overflow:visible}body.touch-workspace .vehicle-section{grid-template-columns:1fr;gap:12px}body.touch-workspace #vehicle-picker-slot{width:100%}body.touch-workspace .welcome-screen{min-height:100%;height:auto;padding:24px 16px}
@media(max-width:480px){body.touch-workspace>header .brand{display:none}body.touch-workspace>header .actions{margin-left:auto}body.touch-workspace .onepage-tools span{display:none!important}}
@media print{.touch-workspace-nav,#touch-settings{display:none!important}}
#touch-sheet-body .onepage-tools{display:block;padding:0;border:0}#touch-sheet-body .onepage-tools>div:first-child{display:none}
body.touch-workspace[data-screen]>header{height:56px;min-height:56px;flex:0 0 56px;flex-wrap:nowrap}body.touch-workspace[data-screen]>header .onepage-nav{order:0;width:auto;justify-content:flex-start}
body.touch-workspace #route-picker{padding:6px 10px;gap:6px}body.touch-workspace #route-options button{min-height:44px}
@media(max-height:500px) and (orientation:landscape){body.touch-workspace #planner-editor{padding-left:104px}body.touch-workspace .touch-workspace-nav{position:fixed;left:0;top:56px;bottom:64px;width:104px;flex-direction:column;justify-content:flex-start;border-right:1px solid #dbe1e8}body.touch-workspace .touch-workspace-nav button{flex:none;width:100%;min-height:44px}body.touch-workspace #planner-editor>.onepage-tools{display:none}body.touch-workspace #route-picker{flex-wrap:nowrap;padding:2px 8px}body.touch-workspace #route-picker>div:first-child{flex-basis:auto;min-width:100px}body.touch-workspace #route-picker small{margin:0}body.touch-workspace #route-options{flex:none}body.touch-workspace #route-options button{min-width:105px}body.touch-workspace #route-options span{display:inline}body.touch-workspace #planner-editor>.item-dock{left:104px}}
/* Product controls occupy their own layout area, never cover the model. */
body.touch-workspace>header .brand{display:none}
body.touch-workspace #planner-editor{padding-bottom:0}
body.touch-workspace #planner-editor>.item-dock{position:relative;left:auto;right:auto;bottom:auto;flex:none;width:100%;max-height:45%;overflow:auto;box-shadow:none;border-top:1px solid #cbd5e1;border-radius:12px 12px 0 0}
body.touch-workspace #mobile-dock-content{max-height:none}
body.touch-workspace #planner-editor .scene-wrap{min-height:0!important}
@media(min-width:760px) and (min-height:501px){
body.touch-workspace #planner-editor:has(.item-dock[data-mobile-open=true]:not([hidden])){display:grid;grid-template-columns:minmax(0,1fr) 310px;grid-template-rows:52px 28px minmax(0,1fr)}
body.touch-workspace #planner-editor:has(.item-dock[data-mobile-open=true]:not([hidden]))>.touch-workspace-nav{grid-column:1/-1}
body.touch-workspace #planner-editor:has(.item-dock[data-mobile-open=true]:not([hidden]))>.onepage-tools{grid-column:1/-1}
body.touch-workspace #planner-editor:has(.item-dock[data-mobile-open=true]:not([hidden]))>.workspace{grid-column:1;grid-row:3;height:100%}
body.touch-workspace #planner-editor:has(.item-dock[data-mobile-open=true]:not([hidden]))>.item-dock{grid-column:2;grid-row:3;height:100%;max-height:100%;border-left:1px solid #cbd5e1;border-radius:0;overflow:auto}
body.touch-workspace .item-dock[data-mobile-open=true] .dock-selection{flex-wrap:wrap}body.touch-workspace .item-dock[data-mobile-open=true] .dock-selection select{flex-basis:100%}
}
@media(max-height:500px) and (orientation:landscape){body.touch-workspace #planner-editor>.item-dock{left:auto;max-height:43%}body.touch-workspace .touch-workspace-nav{bottom:0}}
body.touch-workspace #electrical-steps{gap:6px;flex-wrap:wrap}body.touch-workspace #electrical-steps li{font-size:11px}body.touch-workspace .guide-row{flex-direction:column;align-items:stretch}body.touch-workspace .guide-actions{flex-wrap:wrap;flex-direction:row}body.touch-workspace .guide-actions button{min-height:44px;flex:1}body.touch-workspace #mobile-dock-content{overflow-x:hidden}body.touch-workspace .dock-shelf{min-width:0;max-width:100%}body.touch-workspace #dock-items{min-width:0}body.touch-workspace .dock-selection button{min-height:44px}body.touch-workspace #dock-selected{max-width:none!important}
