/* Three clear workspaces. Bright accents, restrained chrome, a readable viewport. */
:root{--work-accent:#ff964d}
#app{grid-template-columns:226px minmax(0,1fr) 326px;grid-template-rows:116px minmax(0,1fr)}
#top{display:grid;grid-template-columns:auto 1fr auto;grid-template-rows:30px 62px;gap:10px 20px;padding:8px 16px;background:#0c1421!important;border-bottom:1px solid #2c3d53!important}
.brand{grid-column:1}.brand b{font-size:21px}.brand span{font-size:9px;color:#8da2bb}.topr{grid-column:3;grid-row:1}.topr .pill{font-size:9px;letter-spacing:0}.topr .btn{font-size:11px}
.rooms{grid-column:1/-1;grid-row:2;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));width:100%;height:62px;gap:10px;margin:0}
.rooms .room{border:1px solid #304157;border-radius:10px;background:#141f2d;padding:9px 16px;gap:14px;justify-content:flex-start;color:#b0bed0;overflow:hidden}
.rooms .room svg{width:27px;height:27px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round;flex:none;color:var(--tab-accent)}
.rooms .room span{display:flex;flex-direction:column;align-items:flex-start;gap:5px}.rooms .room strong{font:800 17px/1 'Barlow','Segoe UI',sans-serif;letter-spacing:.09em}.rooms .room small{font:12px/1.2 'Barlow','Segoe UI',sans-serif;color:#9eb0c6}.rooms .room em{margin-left:auto;font:600 13px/1 var(--f-mono);color:#60758c}
.rooms .room.on{color:#fff;border-color:var(--tab-accent);background:linear-gradient(105deg,color-mix(in srgb,var(--tab-accent) 16%,#141f2d),#141f2d);box-shadow:inset 4px 0 var(--tab-accent),0 4px 14px #0002}.rooms .room.on small,.rooms .room.on em{color:var(--tab-accent)}.rooms .room.on::after{display:none}.rooms .room:hover{border-color:var(--tab-accent);background:#1d2c3e}
#lib,#insp{background:#101925!important}#lib .ph h2{color:#b5c4d5;font-size:11px}.card{min-height:62px!important}.card.on{border-color:var(--work-accent)!important;box-shadow:inset 3px 0 var(--work-accent)!important}.tab.on{border-bottom:2px solid var(--work-accent)!important;color:var(--work-accent)!important;background:#1a2736!important}.tab{flex:1;text-align:center}#insp-body h3{font:750 16px/1.4 'Barlow','Segoe UI',sans-serif;margin-top:8px}#insp-body h4{font:700 11px/1.3 'Barlow','Segoe UI',sans-serif;letter-spacing:.13em;color:#a0b3c8;margin:26px 0 10px}.import-control{margin:17px 0;gap:9px}.import-control input{accent-color:var(--work-accent)}.mutation-choices{display:flex;flex-wrap:wrap;gap:7px}.mutation-choices button{flex:1;min-height:34px}.mutation-color{display:flex;align-items:center;justify-content:space-between;margin:14px 0;gap:12px}.mutation-color input[type=color]{width:50px;height:30px;background:#172333;border:1px solid #3c5069;padding:2px;border-radius:5px}.paint-slot{padding:12px;border:1px solid #30435b;border-radius:9px;margin:12px 0;background:#142131;display:grid;grid-template-columns:1fr 1fr;gap:10px}.paint-slot>label:first-child{grid-column:1/-1;display:flex;align-items:center;gap:8px;font-weight:700}.paint-slot label{font-size:12px;display:flex;flex-direction:row;align-items:center;justify-content:space-between;gap:4px}.paint-slot input[type=color]{width:36px;height:28px;border:0;padding:0;background:none}.paint-slot input[type=range]{grid-column:1/-1;width:100%;accent-color:var(--work-accent)}.paint-slot input[type=checkbox]{accent-color:var(--work-accent)}
#hud-title{font-size:27px!important;font-style:normal}#hud-hint{font-size:11px!important;max-width:280px!important;color:#98aec7!important}#hud-tr{opacity:.9}#hud-tl{top:20px!important}#hud-calc{max-width:300px;font-size:10px!important}.preview-scale{position:absolute;top:112px;left:18px;z-index:4;font:10px var(--f-mono);letter-spacing:.07em;color:#8ca3bb;pointer-events:none}.lab-actions{position:absolute;bottom:112px;left:50%;transform:translateX(-50%);z-index:12;display:flex;flex-direction:column;align-items:center;gap:9px;white-space:nowrap}.lab-actions span{font-size:11px;color:#adc0d5}.lab-actions[hidden],.preview-scale[hidden]{display:none}.charge-meter{bottom:174px}.studio-status{font-size:9px;opacity:.6}.view-dock{bottom:100px}.camera-hint{bottom:148px;font-size:10px}.clean .preview-scale,.clean .lab-actions,.run .lab-actions,.run .preview-scale{display:none}body[data-workspace=lab] .camera-hint{display:none}body[data-workspace=range] .preview-scale{display:none}
@media(max-width:1150px){#app{grid-template-columns:190px minmax(0,1fr) 292px}.topr .pill{max-width:180px;overflow:hidden;text-overflow:ellipsis}.rooms .room strong{font-size:15px}.rooms .room small{font-size:11px}.rooms .room{padding:8px 12px;gap:10px}}
@media(max-width:800px){#app{grid-template-columns:150px minmax(0,1fr);grid-template-rows:112px minmax(180px,1fr) minmax(200px,38%);grid-template-areas:'top top' 'lib stage' 'insp insp'}#top{grid-template-rows:28px 60px;gap:7px;padding:7px 9px}.rooms{gap:6px;height:60px}.rooms .room{padding:8px;gap:6px;border-radius:8px}.rooms .room svg{width:20px;height:20px}.rooms .room strong{font-size:12px;letter-spacing:.025em}.rooms .room small{font-size:9px}.rooms .room em{display:none}.brand b{font-size:18px}.brand span{display:none}.topr{gap:4px}.topr .pill{display:none}.topr .btn{font-size:10px;padding:5px}#insp-body{padding:12px!important}.preview-scale{top:76px;left:12px;font-size:8px}.view-dock{bottom:86px;max-width:96%;gap:2px;padding:4px}.view-dock .hbtn{font-size:10px;padding:6px}.lab-actions{bottom:100px;gap:5px}.lab-actions span{font-size:9px;white-space:normal;text-align:center;max-width:240px}#hud-title{font-size:21px!important}#hud-hint{display:none}.charge-meter{bottom:149px}.camera-hint{display:none}.card{padding:7px!important;min-height:56px!important}.card .th{width:35px;height:40px}.card .nm{font-size:11px}.card .sb{font-size:8px!important}.name-in{font-size:20px!important}body.clean #app{grid-template-columns:0 minmax(0,1fr) 0;grid-template-rows:0 minmax(0,1fr);grid-template-areas:'top top top' 'lib stage insp'}}
@media(max-width:460px){#app{grid-template-columns:112px minmax(0,1fr)}.rooms .room svg{display:none}.rooms .room strong{font-size:11px}.rooms .room small{font-size:9px;white-space:normal}.card{gap:5px!important}.card .th{width:26px;height:34px}.card .nm{font-size:10px}.card .sb{font-size:7px!important}.libacts{padding:5px;gap:4px}.libacts .btn{font-size:10px;padding:6px 3px}.ph{padding:9px}.ph .btn{font-size:9px}#hud-tr{gap:3px}.hbtn{font-size:10px}.preview-scale{max-width:150px;line-height:1.5}}

.lab-actions{display:grid;grid-template-columns:auto auto;justify-items:center;gap:7px}.lab-actions span{grid-column:1/-1}.lab-actions .sel{font-size:11px;padding:5px;max-width:125px}.lab-actions .hbtn{font-size:11px}@media(max-width:460px){.lab-actions{display:flex;gap:4px}.lab-actions .sel{padding:4px;font-size:10px}}
/* Override the older page's stacked-tablet rules explicitly. */
body{overflow:hidden}#app{height:100%;min-height:0}#lib>.scroll,#insp>.scroll{overflow-y:auto;overflow-x:hidden}
@media(min-width:801px){#app{grid-template-areas:'top top top' 'lib stage insp'}}
@media(max-width:800px){#app{height:100dvh;min-height:0}#lib,#insp{border-top:1px solid #2a384e}#hud-tr{max-width:calc(100% - 20px)}}
