/* Viewport planner shell, isolated from shared regional navigation. */
.hp-app-top,.hp-app-bar,.hp-app-dock,.hp-app-drawer,.hp-app-fit,.hp-app-context{display:none}.hp-app-launch[hidden]{display:none}
body.hp-app-lock .bottom-nav{visibility:hidden!important;pointer-events:none!important}
html.hp-app-lock,body.hp-app-lock{overflow:hidden!important;overscroll-behavior:none;height:100%}
.hp-studio.hp-app-active{position:fixed!important;inset:0;z-index:12000;box-sizing:border-box!important;width:100%!important;max-width:none!important;height:100dvh;margin:0!important;padding:env(safe-area-inset-top) 0 0!important;border:0!important;border-radius:0!important;display:flex!important;flex-direction:column;overflow:hidden;background:#edf3fa}
.hp-app-active>h2,.hp-app-active>.hp-studio-toolbar,.hp-app-active>.hp-studio-tabs,.hp-app-active>p,.hp-app-active>.hp-actions,.hp-app-active>#hp-share-panel{display:none!important}
.hp-app-active .hp-app-top{display:flex;order:-3;align-items:center;gap:8px;padding:4px 8px;background:#175b9c;color:white;flex-shrink:0}.hp-app-top strong{flex:1;white-space:nowrap;font-size:15px}.hp-app-active .hp-app-top button{background:#fff;color:#175b9c;border:0;min-width:44px}
.hp-app-active button{min-height:44px!important;box-sizing:border-box;font-size:13px;padding:6px 8px}.hp-app-active .hp-app-bar{display:grid;grid-template-columns:repeat(6,1fr);gap:4px;order:-2;padding:4px 8px;flex-shrink:0;background:white}
.hp-app-active>.hp-studio-layout{display:flex!important;flex:1;min-height:0;gap:0;overflow:hidden}.hp-app-active .hp-studio-layout>.hp-studio-center{display:flex!important;flex-direction:column;position:relative;flex:1;min-height:0;min-width:0;border:0;border-radius:0;padding:0;overflow:hidden}
.hp-app-active .hp-studio-layout>.hp-studio-catalog,.hp-app-active .hp-studio-layout>.hp-studio-inspector{display:none!important}
.hp-app-active .hp-studio-selection{flex-shrink:0;height:30px;box-sizing:border-box;padding:5px 60px 5px 8px;margin:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:12px;position:relative}.hp-app-active .hp-studio-selection:after{content:attr(data-zoom);position:absolute;right:8px;top:5px;background:#f5faff}
.hp-app-active .hp-studio-surfaces{display:flex!important;flex:1;min-height:0;overflow:hidden;padding:6px;box-sizing:border-box}.hp-app-active .hp-plan-scroll{display:flex;flex:1;align-items:safe center;justify-content:safe center;width:100%;height:100%;max-height:none!important;min-height:0;overflow:auto;overscroll-behavior:contain}.hp-app-active #hp-canvas{flex-shrink:0;min-height:0!important}.hp-app-active #hp-canvas svg{width:100%!important;height:100%!important;max-height:none!important;display:block}
.hp-app-active .hp-studio-center>p,.hp-app-active .hp-studio-center>.hp-studio-draft,.hp-app-active .hp-studio-center>.hp-studio-help{display:none!important}.hp-app-active .hp-studio-center>#hp-status:not(:empty),.hp-app-active .hp-studio-center>#hp-warnings:not([hidden]){display:block!important;font-size:11px;max-height:42px;overflow:auto;margin:0;padding:3px 8px;flex-shrink:0}
.hp-app-active .hp-app-fit{display:block;position:absolute;right:10px;top:36px;z-index:3;background:white;opacity:.92}.hp-app-active .hp-app-context:not([hidden]){display:flex;gap:6px;padding:4px 8px;flex-shrink:0;background:white}.hp-app-context button{flex:1}
.hp-app-active .hp-app-dock{display:flex;gap:4px;flex-shrink:0;padding:5px 6px calc(5px + env(safe-area-inset-bottom));background:#175b9c}.hp-app-dock button{flex:1;min-width:0;font-size:12px!important;background:white;color:#175b9c;border:0;padding:5px 2px!important;white-space:nowrap}
.hp-app-active .hp-app-drawer:not([hidden]){display:flex;flex-direction:column;position:absolute;z-index:10;top:52px;bottom:calc(60px + env(safe-area-inset-bottom));left:6px;right:6px;border:1px solid #b9d0e6;border-radius:14px;box-shadow:0 4px 30px #173b6260;background:white;overflow:hidden}.hp-app-drawer-head{display:flex;align-items:center;justify-content:space-between;padding:5px 10px;flex-shrink:0;background:#f0f6fc;color:#175b9c}.hp-app-drawer-body{padding:8px;overflow:auto;overscroll-behavior:contain;min-height:0}.hp-app-drawer-body>.hp-studio-catalog,.hp-app-drawer-body>.hp-studio-inspector{display:block!important;position:static;max-height:none;border:0;padding:0;overflow:visible}.hp-app-drawer-body .hp-controls{width:100%;box-sizing:border-box;margin:0}.hp-app-drawer-body #hp-setup[hidden],.hp-app-drawer-body #hp-step-plot[hidden],.hp-app-drawer-body #hp-step-rooms[hidden]{display:block!important}.hp-app-drawer-body #hp-next,.hp-app-drawer-body #hp-plot-back{display:none!important}.hp-app-drawer-body .hp-studio-file-menu>summary{display:none}.hp-app-drawer-body .hp-studio-file-menu>.hp-studio-tools{display:flex}.hp-app-drawer-body #hp-room-tools,.hp-app-drawer-body #hp-advanced,.hp-app-drawer-body #hp-opening-tools{width:100%!important;box-sizing:border-box}
.hp-app-active #hp-3d-panel:not([hidden]){display:flex!important;flex:1;flex-direction:column;min-height:0;border:0;padding:0;width:100%}.hp-app-active #hp-3d-panel>h3,.hp-app-active #hp-3d-panel>p,.hp-app-active #hp-3d-panel>label,.hp-app-active #hp-3d-yaw,.hp-app-active #hp-3d-close{display:none!important}.hp-app-active #hp-3d-panel>.hp-actions{display:flex;gap:4px;flex-shrink:0;margin:0;padding-right:60px;box-sizing:border-box}.hp-app-active #hp-3d-panel>.hp-actions button{flex:1;min-width:0;white-space:normal;font-size:11px}.hp-app-active #hp-3d-canvas{flex:1;min-height:0;display:flex}.hp-app-active #hp-3d-canvas svg{width:100%;height:100%!important;max-height:none!important}
.hp-app-active #hp-context-menu:not([hidden]){position:absolute!important;z-index:12;left:8px;right:8px;bottom:70px;max-height:70%;overflow:auto}
.hp-app-segments{display:flex;gap:4px;position:sticky;top:-8px;background:#fff;padding:4px 0;z-index:2}.hp-app-segments button{flex:1;font-size:12px!important}.hp-app-drawer-body .hp-studio-inspector[data-section=room-tools]>#hp-advanced,.hp-app-drawer-body .hp-studio-inspector[data-section=room-tools]>#hp-opening-tools,.hp-app-drawer-body .hp-studio-inspector[data-section=advanced]>#hp-room-tools,.hp-app-drawer-body .hp-studio-inspector[data-section=advanced]>#hp-opening-tools,.hp-app-drawer-body .hp-studio-inspector[data-section=opening-tools]>#hp-room-tools,.hp-app-drawer-body .hp-studio-inspector[data-section=opening-tools]>#hp-advanced{display:none!important}.hp-app-drawer-body .hp-studio-inspector>h3,.hp-app-drawer-body .hp-studio-inspector .hp-help,.hp-app-drawer-body #hp-opening-tools>p,.hp-app-drawer-body #hp-plot-apply{display:none!important}.hp-app-drawer-body .hp-studio-catalog{display:flex!important;flex-direction:column}.hp-app-drawer-body .hp-studio-catalog>input[type=search]{order:-3}.hp-app-drawer-body .hp-studio-catalog>.hp-studio-cards{order:-2}.hp-app-drawer-body .hp-studio-catalog>.hp-studio-cards{grid-template-columns:repeat(3,minmax(0,1fr))}

/* Larger screens use the same viewport editor with side drawers. */
.hp-app-feedback{font-size:12px;max-width:35%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#3b5975}
@media(max-width:700px){.hp-app-feedback{display:none}}
@media(min-width:701px) and (min-height:501px){
 .hp-app-active .hp-app-top{padding:6px 16px;gap:14px}.hp-app-top strong{font-size:18px}
 .hp-app-active .hp-app-bar{width:min(620px,100%);box-sizing:border-box;align-self:center;background:transparent;gap:8px}
 .hp-app-active .hp-app-dock{justify-content:center;gap:10px;padding-left:16px;padding-right:16px}.hp-app-dock button{flex:0 1 160px;font-size:14px!important}
 .hp-app-active .hp-app-drawer:not([hidden]){top:112px;bottom:70px;left:auto;right:12px;width:min(420px,calc(100% - 24px))}
 .hp-app-active .hp-app-drawer[data-panel=catalog]{left:12px;right:auto}
 .hp-app-active .hp-app-context:not([hidden]){justify-content:center}.hp-app-context button{flex:0 1 160px}
 .hp-app-active .hp-studio-selection{height:32px;text-align:center;font-size:14px}
}

@media print{body.hp-app-lock .bottom-nav{visibility:hidden!important;pointer-events:none!important}
html.hp-app-lock,body.hp-app-lock{overflow:visible!important;height:auto}.hp-studio.hp-app-active{position:static!important;height:auto!important;overflow:visible}.hp-app-active .hp-app-top,.hp-app-active .hp-app-bar,.hp-app-active .hp-app-dock,.hp-app-active .hp-app-drawer,.hp-app-active .hp-app-fit,.hp-app-active .hp-app-context{display:none!important}.hp-app-active #hp-canvas{height:auto!important}}

/* Keep the actual shared website header above the viewport planner. */
html.hp-app-lock .v2b-header{position:fixed;top:var(--hp-app-header-top,0px);left:0;right:0;z-index:12001}
.hp-app-active .hp-app-top{background:#fff;color:#175b9c;border-bottom:1px solid #d5e3f0}
.hp-app-active .hp-app-top button{border:1px solid #d5e3f0}
@media print{html.hp-app-lock .v2b-header{display:none!important}}
