.vr-lab .lab-intro{display:flex;align-items:center;gap:14px;max-width:1600px;padding:16px 20px 10px!important}.vr-lab .lab-intro h1{font-size:23px!important;line-height:1.4;margin:0}.lab-mode-label{font-size:11px;line-height:1.4;padding:4px 8px;border:1px solid #b9d8df;border-radius:6px;background:#eff9f9;color:#197b88}.vr-lab .lab-intro>a{margin-left:auto;font-size:12px;color:#627da8}.vr-toolbar{max-width:1560px;margin:0 auto;background:#087f8c;color:#fff;border-radius:10px 10px 0 0;padding:9px 14px;display:flex;gap:12px;align-items:center}.vr-project{font-size:14px;white-space:nowrap;margin-right:auto}.vr-toolbar .run-controls{display:flex;align-items:center;padding:0!important;gap:7px;border:0;background:transparent!important;flex-wrap:nowrap}.vr-toolbar button{font-size:12px;padding:8px 12px;min-height:36px;border-radius:6px;background:#fff;color:#245273;border:1px solid #ffffff44;box-shadow:none;transform:none}.vr-toolbar #run{background:#fff;color:#087346;font-weight:700}.vr-toolbar #stop{background:#ffe8e8;color:#a53f49}.vr-toolbar #reset{background:#ffffff19;color:white}.vr-toolbar label{font-size:11px;color:#fff;display:flex;align-items:center;gap:6px;margin:0;white-space:nowrap}.vr-toolbar select{width:60px;height:32px;padding:3px 5px;font-size:12px;margin:0;background:#ffffff20;color:#fff;border:1px solid #ffffff66}.vr-toolbar select option{color:#243b62;background:white}.vr-lab .lab{max-width:1560px;width:calc(100% - 40px);margin:0 auto 25px;border-radius:0 0 10px 10px;grid-template-columns:260px minmax(280px,1fr) minmax(350px,1.1fr);height:calc(100dvh - 200px);min-height:590px;max-height:900px}.vr-lab .lab>.lab-panel{min-width:0;min-height:0;overflow:auto;max-width:none;grid-column:auto;width:100%;margin:0}.vr-lab .panel-head{padding:13px 16px!important;min-height:72px}.vr-lab .panel-head h2{font-size:17px!important;margin:0}.vr-lab .panel-head p{font-size:11px;line-height:1.5;margin:4px 0 0}.vr-palette-body{display:grid;grid-template-columns:58px minmax(0,1fr);min-height:330px}.vr-categories{display:flex;flex-direction:column;gap:3px;background:#f1f5fb;padding:8px 4px;border-right:1px solid #e0e7f0}.vr-categories button{padding:9px 2px;font-size:11px;background:transparent;color:#62748e;border-radius:6px;min-height:44px;border:0;box-shadow:none;transform:none}.vr-categories button[aria-pressed=true]{background:#deebf8;color:#254e7d;font-weight:700}.vr-categories i{display:block;width:15px;height:15px;border-radius:50%;margin:0 auto 4px}.vr-lab .palette{display:flex;flex-direction:column;padding:12px 9px;gap:10px;min-width:0}.vr-lab .palette [hidden]{display:none!important}.vr-lab .piece{font-size:12px;min-height:44px;padding:10px 9px 12px;text-align:left;width:100%}.vr-lab .demo-input{font-size:10px;padding:2px 5px}.vr-lab .palette-category{font-size:11px;margin:5px 0 1px}.vr-lab .palette-note{font-size:10px;line-height:1.7;padding:12px;color:#7b8da5}.vr-lab .program-panel{display:flex;flex-direction:column}.vr-lab .program-toolbar{padding:10px 12px;gap:6px;display:flex;flex-wrap:wrap}.vr-lab .program-toolbar button{font-size:11px;padding:6px 8px;min-height:30px;border-radius:5px}.vr-lab .program-list{min-height:0;max-height:none;flex:1;overflow:auto;padding:0 20px 24px}.vr-lab .program-row{width:max-content;max-width:100%;min-width:230px;min-height:49px;padding:9px 12px 13px;margin:-1px 0 0;font-size:13px}.vr-lab .row-content{gap:7px;flex-wrap:wrap}.vr-lab .program-row input{max-width:128px;height:30px;padding:3px 9px;font-size:13px}.vr-lab .program-row select{width:85px;height:30px;font-size:12px;padding:3px 7px}.vr-lab .row-tools{display:flex;margin-top:3px;gap:4px;justify-content:flex-end;opacity:.12;transition:opacity .15s}.vr-lab .program-row:hover .row-tools,.vr-lab .program-row:focus-within .row-tools{opacity:1}.vr-lab .row-tools button{min-height:22px;font-size:10px;padding:1px 6px}.vr-lab .start-block{width:max-content;min-width:190px;padding:10px 16px;font-size:13px;min-height:43px;box-sizing:border-box}.vr-lab .legend{font-size:10px;padding:9px 16px;margin:0;background:#f2f6fc}.vr-lab .stage-toolbar{padding:7px 12px}.vr-lab .stage-actions{display:none}.vr-lab .backdrops{margin-left:auto}.vr-lab .screen-box{padding:9px 12px}.vr-lab .screen-top{font-size:10px;letter-spacing:1px}.vr-lab .screen{font-size:16px;padding:8px 10px;min-height:35px;margin-top:5px}.vr-lab .stage-wrap{padding:12px}.vr-lab .stage{aspect-ratio:8/6;width:100%;max-height:none}.vr-lab .status{font-size:12px;padding:10px 13px;min-height:58px}.vr-lab .stage-meta{font-size:10px}.vr-lab .lab.vr-stage-expanded{grid-template-columns:210px minmax(250px,.65fr) minmax(480px,1.6fr)}.vr-lab .lab-bottom,.vr-lab .lesson-card{margin-top:15px}.vr-toolbar #vrStageToggle{background:#ffffff19;color:white;white-space:nowrap}
@media(min-width:851px) and (max-width:1150px){.vr-lab .lab{grid-template-columns:210px minmax(240px,1fr) minmax(310px,1.05fr)}.vr-lab .lab.vr-stage-expanded{grid-template-columns:190px minmax(230px,.7fr) minmax(390px,1.4fr)}.vr-lab .vr-project{display:none}.vr-lab .program-row{min-width:210px}.vr-toolbar{margin:0 20px}.vr-lab .palette{padding:10px 6px}}
@media(max-width:850px){.vr-lab .lab-intro{padding:12px 14px 8px!important;flex-wrap:wrap;gap:7px}.vr-lab .lab-intro h1{font-size:19px!important}.vr-lab .lab-intro>a{display:none}.vr-toolbar{margin:0 10px;padding:7px 10px;border-radius:8px 8px 0 0}.vr-project{font-size:12px}.vr-toolbar #vrRunSlot{display:none}.vr-toolbar #vrStageToggle{font-size:11px;min-height:30px;padding:5px 8px}.vr-lab .lab{height:auto;min-height:0;max-height:none;display:flex;width:auto;margin:0 10px 20px;border-radius:0 0 9px 9px}.vr-lab .lab>.lab-panel{overflow:visible}.vr-lab .vr-palette-body{display:contents;min-height:0}.vr-lab .vr-categories{display:none}.vr-lab .program-list{min-height:100px;flex:auto;max-height:40svh;padding-left:8px;padding-right:8px}.vr-lab .program-row{min-width:0;width:100%;font-size:12px}.vr-lab .row-tools{opacity:1}.vr-lab .start-block{min-width:0;width:auto}.vr-lab .lab.vr-stage-expanded .simulation-panel .stage{height:auto!important;max-height:60svh!important;aspect-ratio:8/6!important}.vr-lab.palette-open .palette-panel .palette{display:contents}.vr-lab.palette-open .palette .palette-category{grid-column:1/-1}.vr-lab .palette .piece{font-size:13px}.vr-lab .stage-toolbar{padding:4px 8px}.vr-lab .stage-wrap{padding:8px}.vr-lab .screen-box{padding:6px 9px}.vr-lab .status{min-height:0}.vr-lab .stage-actions{display:none}}

@media(min-width:851px){.vr-toolbar{width:calc(100% - 40px);box-sizing:border-box}}
/* Compact inline blocks: tools do not contribute to stack height. */
.vr-lab .program-row{position:relative;display:block;min-height:0!important;height:46px!important;box-sizing:border-box;padding:7px 13px!important;margin:0 0 -1px!important;width:max-content;max-width:100%;min-width:150px;line-height:30px;font-size:13px}.vr-lab .program-row .row-content{display:flex;align-items:center;flex-wrap:nowrap!important;gap:8px;min-height:30px;line-height:30px;white-space:nowrap}.vr-lab .program-row .row-index{font-size:10px;line-height:30px}.vr-lab .program-row input,.vr-lab .program-row select{display:inline-block;width:128px;max-width:128px!important;height:28px!important;padding:2px 8px!important;margin:0;line-height:22px;font-size:13px!important;box-sizing:border-box}.vr-lab .program-row select{width:84px}.vr-lab .program-row .row-tools{position:absolute!important;left:calc(100% + 6px)!important;right:auto!important;top:50%!important;transform:translateY(-50%)!important;display:flex!important;gap:3px;height:28px;margin:0!important;z-index:20;opacity:0;pointer-events:none;white-space:nowrap;background:#f7f9fff5;border-radius:5px;padding:2px;box-sizing:content-box}.vr-lab .program-row:hover .row-tools,.vr-lab .program-row:focus-within .row-tools{opacity:1;pointer-events:auto}.vr-lab .row-tools button{color:#46648c;background:#fff;border:1px solid #cfdaeb;min-width:24px;min-height:26px;height:26px;padding:0 5px;font-size:11px;line-height:24px}.vr-lab .program-list{padding-top:0;padding-bottom:38px}.vr-lab .program-panel>div:has(>.start-block){padding-top:12px!important;padding-bottom:0!important}.vr-lab .start-block{height:44px;min-height:0;margin-bottom:0;padding:7px 16px;font-size:13px;line-height:28px;border-radius:21px 21px 4px 4px}.vr-lab .piece{min-height:40px;padding:8px 9px 10px}.vr-lab .program-row .block-shape{height:100%}.vr-lab .program-row .touch-handle{height:32px!important;top:7px!important}
@media(max-width:850px){body.vr-lab.mobile-lab .program-row{height:44px!important;min-height:0!important;padding:6px 9px 6px 29px!important;margin:0 0 -1px!important;max-width:100%;width:max-content;min-width:150px;font-size:12px!important}body.vr-lab.mobile-lab .program-row .row-content{min-height:30px;gap:6px;font-size:12px;line-height:30px;white-space:nowrap;flex-wrap:nowrap!important}body.vr-lab.mobile-lab .program-row input{font-size:16px!important;width:112px;max-width:112px!important;height:28px!important;padding:2px 7px!important}body.vr-lab.mobile-lab .program-row select{font-size:16px!important;width:85px;max-width:85px!important;height:28px!important;padding:2px 5px!important}body.vr-lab.mobile-lab .program-row .row-tools{left:auto!important;right:0!important;top:100%!important;transform:none!important;height:28px!important;display:none!important;margin:0!important;padding:3px!important;box-shadow:0 3px 9px #243b6220;z-index:40}body.vr-lab.mobile-lab .program-row:focus-within .row-tools{display:flex!important;opacity:1;pointer-events:auto}body.vr-lab.mobile-lab .program-row .row-tools button{width:28px!important;min-width:28px!important;height:28px!important;min-height:28px!important;padding:0!important}body.vr-lab.mobile-lab .start-block{height:40px!important;min-height:0!important;padding:6px 12px!important;font-size:12px!important;margin:0!important;line-height:26px!important}body.vr-lab.mobile-lab .program-list{padding-top:0!important;padding-bottom:38px!important}}

/* Fill the desktop editor column; mobile keeps its compact, bounded stack. */
@media(min-width:851px){
  .vr-lab .lab>.program-panel{align-self:stretch;height:100%;box-sizing:border-box;overflow:hidden}
  .vr-lab .program-panel>.panel-head,.vr-lab .program-panel>.program-toolbar,.vr-lab .program-panel>div:has(>.start-block),.vr-lab .program-panel>.legend{flex-shrink:0}
  .vr-lab .program-panel>.program-list{flex:1 1 0;min-height:0;max-height:none;overflow:auto}
}
/* Keep execution within reach while the desktop stage is being viewed. */
.vr-execution-dock[hidden]{display:none!important}
@media(min-width:851px){
 .vr-toolbar.vr-execution-dock{position:fixed;right:24px;bottom:20px;left:auto;z-index:1450;margin:0;max-width:calc(100vw - 48px);width:max-content;padding:10px 12px;gap:10px;box-sizing:border-box;border:1px solid #ffffff66;border-radius:12px;box-shadow:0 8px 30px #18345333}
 .vr-execution-dock .run-controls{flex-wrap:wrap;justify-content:flex-end}
 .vr-execution-dock #vrStageToggle{min-height:36px}
 body.stage-dock-visible .resource-map-entry{visibility:hidden!important}
 body.vr-lab .simulation-panel{padding-bottom:78px!important}
}
@media(max-width:850px){.vr-execution-dock{display:none!important}}
/* Align the workspace and all supporting content to the same outer grid. */
@media(min-width:851px){
 body.vr-lab .vr-toolbar:not(.vr-execution-dock),body.vr-lab .lab-intro,body.vr-lab .lab-more-notes>section,body.vr-lab>footer{width:calc(100% - 40px)!important;max-width:1560px!important;box-sizing:border-box;margin-left:auto!important;margin-right:auto!important}
 body.vr-lab .lab-intro{padding:16px 0 12px!important}
 body.vr-lab .lab-more-notes>section{padding:0!important;margin-top:24px!important;margin-bottom:0!important}
 body.vr-lab .lab-more-notes>.lesson-card{padding:28px 30px!important;border-radius:12px}
 body.vr-lab .lab-more-notes .callout{box-sizing:border-box;margin:0!important;padding:26px 30px;border-radius:12px}
 body.vr-lab .lab-bottom .cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px;margin:0!important;padding:0!important}
 body.vr-lab .lab-bottom .card{box-sizing:border-box;margin:0!important;padding:24px!important;border-radius:10px;display:flex;flex-direction:column;min-width:0}
 body.vr-lab .lab-bottom .card h3{font-size:21px;margin:0 0 16px;line-height:1.5}
 body.vr-lab .lab-bottom .card p{font-size:15px;line-height:1.8;margin:0 0 20px}
 body.vr-lab .lab-bottom .card>a{margin-top:auto}
 body.vr-lab>footer{padding:24px 0!important;margin-top:28px!important}
}
