/* Smart Lab workspace rebalancing 2026-11-06. Scope: Lab only. */
:root{--lab-rail-width:166px}
.appshell{grid-template-columns:var(--lab-rail-width) minmax(0,1fr)!important;width:100%!important;min-width:0!important}
.workpage,.workcontent,.workspace,.activearea,.activearea .stage{min-width:0!important}
.workcontent.toolmode{padding:4px 5px 7px!important}
.workspace:has(.embedded-stage){min-height:calc(100dvh - 60px)!important;flex:1!important}
.activearea:has(.embedded-stage){min-height:calc(100dvh - 115px)!important}
.activearea .stage.embedded-stage{height:calc(100dvh - 115px)!important;min-height:620px!important;padding:0!important}
.activearea .stage.embedded-stage iframe.tool-iframe{inset:0!important;width:100%!important;height:100%!important;min-height:620px!important;display:block!important;border:0!important}
.side{padding:9px 5px!important}
.side .brand{padding:8px 7px 12px!important;font-size:12px!important}
.side button{padding:7px 8px!important;gap:8px!important;font-size:12px!important;min-height:38px!important}
.side button img{height:19px!important;width:19px!important;flex-shrink:0}
.side .group-caption{padding:6px 8px!important}
.toolbar{gap:7px!important;padding:0 9px!important;height:auto!important;min-height:46px!important}
.toolbar .group{gap:6px!important;min-width:0}
.toolbar .role{font-size:10px!important;padding:5px!important}
.workspace .subnav{min-height:45px!important;padding:0 5px!important;gap:2px!important}
.workspace .subnav button{padding:8px 11px!important;min-height:42px!important;font-size:12px!important}
.workspace .subnav .help{margin-left:0!important;white-space:nowrap!important}
.workspace .subnav .help[data-action=help]{margin-left:auto!important}
.workspace .capture-action{display:inline-flex!important;align-items:center!important;color:#ffbd5d!important;border:1px solid #6b552c!important;padding:7px 9px!important;margin:3px 4px!important}
.workspace .studio-event{display:block;max-width:160px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:10px!important}
@media (min-width:751px) and (max-width:1150px){
 :root{--lab-rail-width:62px}
 .side .brand{font-size:0!important;padding:10px 1px 7px!important}
 .side .brand small{font-size:10px!important;margin-left:1px!important}
 .side .group-caption,.side .navitems span,.side .bottom{display:none!important}
 .side .navitems{gap:4px!important}
 .side button{justify-content:center!important;padding:9px 4px!important;min-height:45px!important}
 .side button img{width:24px!important;height:24px!important}
 .workcontent.toolmode{padding:2px!important}
 .project-chip{max-width:130px!important}
 .toolbar .role{max-width:90px!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important}
 .toolbar .crumb{font-size:11px!important}
 .activearea .stage.embedded-stage{min-height:630px!important}
 .activearea .stage.embedded-stage iframe.tool-iframe{min-height:630px!important}
}
@media(max-width:750px){
 .appshell{grid-template-columns:minmax(0,1fr)!important}
 .side{position:relative!important;height:auto!important;min-height:0!important}
 .side .navitems{display:flex!important;overflow-x:auto!important;scrollbar-width:thin!important}
 .side button{width:auto!important;min-width:58px!important;flex-direction:column!important;gap:4px!important;font-size:10px!important;padding:6px!important}
 .side button img{width:20px!important;height:20px!important}
 .side .bottom,.side .group-caption,.side .brand{display:none!important}
 .workspace .subnav{overflow-x:auto!important;flex-wrap:nowrap!important;white-space:nowrap!important;justify-content:flex-start!important}
 .workspace .subnav button{flex:0 0 auto!important;font-size:11px!important;padding:8px!important}
 .workspace .subnav .help[data-action=help]{margin-left:0!important}
 .activearea:has(.embedded-stage){min-height:600px!important}
 .activearea .stage.embedded-stage{height:clamp(600px,85dvh,980px)!important;min-height:600px!important}
 .activearea .stage.embedded-stage iframe.tool-iframe{height:100%!important;min-height:600px!important}
 .workcontent.toolmode{padding:3px!important}
}
@media(min-width:751px){.activearea .stage.embedded-stage:has(iframe[src*="/3d/"]){min-height:690px!important}.activearea .stage.embedded-stage:has(iframe[src*="/3d/"]) iframe{min-height:690px!important}}

/* QA2 07-11-2026: the Showroom reports its actual content height. Do not lock its mobile stage to a 280/600px viewport. */
@media(max-width:750px){.workspace:has(.showroom-embedded),.activearea:has(.showroom-embedded){min-height:0!important;height:auto!important;overflow:visible!important}.activearea .stage.embedded-stage.showroom-embedded{max-height:none!important;overflow:visible!important}.activearea .stage.embedded-stage.showroom-embedded iframe.showroom-frame{max-height:none!important;overflow-y:auto!important}}

/* QA3: native Smart Order in the Lab layout, one stateful host for design, 3D gallery and PDF. */
.workspace .stage.embedded-stage.hc-native-smartorder{height:calc(100dvh - 215px)!important;min-height:560px!important;max-height:none!important;overflow:hidden!important;padding:0!important}
.workspace .stage.embedded-stage.hc-native-smartorder iframe.hc-smartorder-iframe{height:100%!important;min-height:100%!important;width:100%!important;display:block!important;overflow:auto!important;border:0!important}
@media(max-width:720px){.workspace .stage.embedded-stage.hc-native-smartorder{height:calc(100dvh - 240px)!important;min-height:490px!important}}

/* Navigation: always return from Smart Lab demo to plan cards without sign-in. */
.toolbar .hc-back-plans{flex:none;white-space:nowrap;min-height:34px;padding:5px 11px;color:#e9a12c;background:#102b44;border:1px solid #385c75;border-radius:5px;font-size:12px;cursor:pointer}
.toolbar .hc-back-plans:hover{background:#183b56}
@media(max-width:620px){.toolbar .hc-back-plans{min-height:38px;padding:5px 8px;font-size:11px}}

/* HOLDERCARD Smart Lab Ukrainian UX: one concise toolbar, settings collapsed. */
.toolbar{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:9px!important;position:relative!important;z-index:6!important}
.toolbar .crumb{flex:0 1 auto!important;min-width:0!important;max-width:35%!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important;font-size:13px!important}
.toolbar .group{margin-left:auto!important;display:flex!important;align-items:center!important;gap:8px!important}
.toolbar .hc-locale-select,.contour-head .hc-locale-select,.toolbar .avatar{display:none!important}
.toolbar .project-chip{max-width:205px!important;min-width:0!important;flex:0 1 auto!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important}
.hc-top-options{position:relative;flex:none;z-index:500}
.hc-top-options>summary{list-style:none;cursor:pointer;user-select:none;padding:8px 11px;border:1px solid #385c75;border-radius:6px;background:#102b44;color:#e7eff7;font-size:12px;white-space:nowrap}
.hc-top-options>summary::-webkit-details-marker{display:none}
.hc-top-options[open]>summary,.hc-top-options>summary:hover{background:#1b3d59;color:#f3aa24}
.hc-top-options-panel{position:absolute;right:0;top:calc(100% + 6px);width:260px;max-width:calc(100vw - 20px);padding:15px;display:flex;flex-direction:column;align-items:stretch;gap:13px;border:1px solid #3b5874;background:#0b2137;color:#f2f5fa;border-radius:9px;box-shadow:0 14px 28px #0007;z-index:550}
.hc-top-options-panel>strong{font-size:13px}
.hc-top-options-panel>label{display:block;color:#c9d9e8;font-size:12px;margin-top:2px}
.hc-top-options-panel .hc-theme-toggle{display:flex!important;align-self:flex-start}
.hc-top-options-panel .role-switch{display:block!important;position:static!important;max-width:100%!important;min-height:38px!important}
.hc-top-options-panel .role{display:block!important;position:static!important;max-width:none!important;white-space:normal!important}
.hc-top-options-panel .hc-option-profile{border:1px solid #536982;border-radius:5px;background:#12324e;color:#fff;padding:10px;text-align:left;cursor:pointer}
.contour-head .right{gap:9px!important}
@media(max-width:620px){.toolbar{flex-wrap:nowrap!important}.toolbar .crumb{max-width:29%!important;font-size:11px!important}.toolbar .group{gap:5px!important}.toolbar .project-chip{max-width:102px!important}.toolbar .hc-back-plans{padding:7px!important}.hc-top-options>summary{font-size:0!important;padding:8px 10px!important}.hc-top-options>summary::first-letter{font-size:17px!important}.hc-top-options-panel{font-size:13px}}
