*{box-sizing:border-box}html,body{margin:0;height:100%;font:14px system-ui,-apple-system,"Microsoft YaHei",sans-serif;color:#eaf1f0;background:#172325}body{display:flex;flex-direction:column;overflow:hidden}button,input,select{font:inherit}button{background:#263638;color:#f0f5f3;border:1px solid #415453;border-radius:8px;padding:9px 12px;cursor:pointer;white-space:nowrap}button:hover,button.active{background:#42634e;border-color:#91bf89;color:white}button:disabled{opacity:.45;cursor:default}header{height:64px;display:flex;align-items:center;justify-content:space-between;padding:0 18px;border-bottom:1px solid #35484a;background:#192527;gap:10px}.brand{display:flex;gap:12px;align-items:center}.mark{font-weight:900;font-size:19px;letter-spacing:-1px;color:#d6ead6;background:#456447;width:42px;height:42px;border-radius:11px;display:grid;place-items:center}.brand b{font-size:18px;white-space:nowrap}.brand small{display:block;color:#91a8a5;font-size:10px;letter-spacing:1px;margin-top:4px}.headright{display:flex;gap:6px}main{min-height:0;flex:1;display:grid;grid-template-columns:264px minmax(0,1fr) 254px}aside{background:#1e2e30;min-width:0;min-height:0;display:flex;flex-direction:column;border-right:1px solid #435052}#inspector{border-right:0;border-left:1px solid #435052;overflow:auto}.asidehead{display:flex;justify-content:space-between;align-items:center;padding:12px;border-bottom:1px solid #40504f}.asidehead button{padding:5px 8px;font-size:12px}.filters{padding:10px;display:grid;gap:8px}.filters input:not([type=checkbox]),select{width:100%;color:#eaf1f0;background:#152427;border:1px solid #526563;border-radius:6px;padding:8px}.filters label{font-size:12px;color:#bbc9c5}#catalog{flex:1;overflow:auto;padding:0 10px 12px}.item{display:flex;gap:8px;align-items:center;margin:7px 0;border:1px solid #41544f;background:#26393a;border-radius:9px;padding:8px;min-height:78px}.item img{width:65px;height:56px;object-fit:contain;background:#ecf0ed;border-radius:6px}.item .name{font-weight:650;overflow-wrap:anywhere;font-size:13px;line-height:1.3}.item small{display:block;font-size:11px;color:#a5c0ac;margin-top:4px}.item button{margin-left:auto;padding:8px;font-size:17px}.item>div{min-width:0;flex:1}#stage{position:relative;overflow:hidden;background:#b8c7c4}#view{position:absolute;inset:0}canvas{display:block;width:100%;height:100%;touch-action:none}.toolbar{position:absolute;top:12px;left:12px;right:12px;display:flex;gap:5px;flex-wrap:wrap;pointer-events:none}.toolbar button{pointer-events:auto;box-shadow:0 2px 7px #10232333;font-size:13px}#hint,#stats,#toast{position:absolute;background:#172b2be8;border:1px solid #64847e70;color:#eef6f1;padding:8px 12px;border-radius:7px;pointer-events:none}#hint{left:12px;bottom:12px;max-width:75%;font-size:12px}#stats{right:12px;bottom:12px;font-size:12px}#toast{top:105px;left:50%;transform:translateX(-50%);display:none;max-width:85%;text-align:center;z-index:4}#objects,#properties,#connections{padding:8px;display:grid;gap:6px}.object,.edge{display:flex;align-items:center;gap:5px;justify-content:space-between;border:1px solid #40534d;border-radius:7px;padding:8px;color:#e3eae5;font-size:12px}.object button:first-child{min-width:0;white-space:normal;flex:1;text-align:left;padding:6px}.edge span{overflow-wrap:anywhere}.edge button{padding:4px 7px}.selected{border-color:#a8d1a0}.property{display:grid;grid-template-columns:1fr 1fr;gap:6px}.property label{font-size:12px;color:#a6bcb5}.property input{width:100%;color:white;background:#142525;border:1px solid #4f6560;border-radius:6px;padding:7px}.property button{font-size:12px;padding:7px}.disclaimer{padding:0 12px;font-size:11px;color:#a1b0aa;line-height:1.6}footer{height:28px;display:flex;align-items:center;justify-content:space-between;padding:0 14px;font-size:11px;color:#acbeb9;border-top:1px solid #415252;gap:10px}#showLib,#hideLib{display:none}@media(max-width:900px){main{grid-template-columns:200px minmax(0,1fr) 185px}.item img{width:42px;height:46px}.brand b{font-size:15px}}@media(max-width:680px){header{height:auto;min-height:58px;padding:8px;flex-wrap:wrap}.headright button{padding:6px 8px;font-size:12px}.brand small{display:none}.mark{height:32px;width:32px}.brand{gap:7px}main{display:flex;flex-direction:column;position:relative}#stage{flex:1;min-height:180px}#library{position:absolute;z-index:5;left:0;top:0;bottom:0;width:min(275px,86%);box-shadow:6px 0 25px #0005;display:none}#library.open{display:flex}#showLib,#hideLib{display:inline-block}#inspector{height:155px;flex-shrink:0;border-left:0;border-top:1px solid #40504f;display:block}#objects{display:flex;overflow:auto}.object{flex-shrink:0}.property{grid-template-columns:repeat(4,1fr)}.toolbar{top:8px;left:8px;right:8px}.toolbar button{font-size:12px;padding:7px 8px}#stats{bottom:8px;right:8px}#hint{bottom:34px;left:8px}footer{display:none}}
[hidden]{display:none!important}header{height:60px}.headright{position:relative;align-items:center}.headright #save{background:#52744e;border-color:#88ae7d;font-weight:700}#moreMenu{position:absolute;top:calc(100% + 8px);right:0;z-index:20;background:#203632;padding:8px;border:1px solid #58706a;border-radius:12px;min-width:145px;box-shadow:0 6px 22px #0005;display:grid;gap:5px}#moreMenu button{text-align:left}.toolbar{top:10px;left:10px;right:10px;z-index:3;gap:6px}.toolbar button{background:#f9fbf8;color:#233c32;border-color:#a3b5aa;padding:9px 12px;font-weight:650}.toolbar button.active{background:#e0eee0;border-color:#5e8d60}.toolbar #settings{margin-left:auto}#stage{isolation:isolate}#view{bottom:72px}#labels{position:absolute;inset:0 0 72px;pointer-events:none;z-index:2;overflow:hidden}.device-label{position:absolute;transform:translate(-50%,-100%);pointer-events:auto;display:flex;align-items:center;gap:5px;padding:5px 7px;border:1px solid #b2c6b6;background:#203a30ed;color:#fff;font-size:11px;border-radius:8px;max-width:155px;box-shadow:0 2px 7px #13261938}.device-label b{display:grid;place-items:center;background:#e1eddd;color:#254c32;border-radius:5px;min-width:22px;height:22px;font-size:13px}.device-label span{max-width:118px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.device-label.active{background:#376b45;border-color:#d7ead1}.device-label.active b{background:#fff}#stepbar{position:absolute;bottom:0;left:0;right:0;z-index:4;display:grid;grid-template-columns:repeat(4,1fr);gap:7px;padding:8px;background:#1b2d28;border-top:1px solid #829489}#stepbar button{display:flex!important;flex-direction:column;align-items:center;justify-content:center;gap:2px;min-height:54px;padding:5px 4px;font-size:13px;font-weight:700;background:#31483b;border-color:#56715c}#stepbar button span{font-size:21px;line-height:24px}#stepbar #showLib{background:#76976a;color:#142916;border-color:#b6cfaa}#stepbar button.active{background:#a8c5a0;color:#203b23;border-color:#e4f2dd}#hint{bottom:88px;left:10px;max-width:calc(100% - 20px);background:#f6faf5ec;color:#244030;border-color:#b1c4b3;box-shadow:0 2px 8px #25472a17}#stats{bottom:124px;right:10px;background:#243a31ed;z-index:2}#toast{top:65px;z-index:9}.asidehead small{display:block;margin-top:4px;color:#afc5b3;font-size:11px}#cats{display:grid;grid-template-columns:repeat(3,1fr);gap:5px}#cats button{padding:6px 3px;font-size:12px}#catalogNote{font-size:11px;color:#b6c5b9;padding:0 10px 8px}#catalog .item{cursor:pointer;min-height:86px;gap:10px}#catalog .item img{width:73px;height:66px;object-fit:contain}#catalog .item button{font-size:12px;padding:9px 7px;background:#52764e}#catalog .item .name{font-size:13px;line-height:1.4}#catalog .item small{font-size:11px;line-height:1.3}#catalog .item[data-status="rejected"] small{color:#e5ada5}#catalog .item[data-status="reference"] small{color:#d6c9a3}#linkPanel{position:absolute;bottom:82px;left:12px;right:12px;z-index:6;background:#f7faf5;color:#203c2a;border-radius:14px;padding:12px;box-shadow:0 7px 26px #0004;max-width:550px;margin:auto;border:1px solid #90a38c}#linkPanel p{font-size:12px;margin:6px 0 10px;color:#4c6650}.linkhead{display:flex;justify-content:space-between;align-items:center}.linkhead b{font-size:17px}.linkhead button{font-size:12px;padding:5px 9px;background:#e7eee3;color:#28402d;border-color:#b8c6b1}.linkfields{display:grid;grid-template-columns:minmax(0,1fr) 18px minmax(0,1fr);align-items:center;gap:6px}.linkfields label{font-size:12px;font-weight:700;min-width:0}.linkfields select{margin-top:6px;background:#fff;color:#213e29;border-color:#9db09a;min-width:0}.linkfields span{font-size:19px;text-align:center;margin-top:20px;color:#5d805e}#linkNote{font-size:11px;line-height:1.5;color:#657361;margin:8px 0}#makeLink{width:100%;background:#4f784b;border:0;font-weight:700;min-height:44px}.object button:first-child{font-weight:600}.property .wide{grid-column:span 2}#hideInspector{display:none}@media(max-width:680px){header{height:52px;min-height:52px;flex-wrap:nowrap;padding:6px 8px;z-index:10}.brand b{font-size:15px}.headright button{font-size:12px;padding:8px}.mark{width:29px;height:29px}.headright{gap:4px}main{display:block;position:relative}#stage{height:100%;width:100%;min-height:0}#library{position:absolute;inset:0;display:none;width:100%;z-index:8;box-shadow:none;border:0}#library.open{display:flex}#library .asidehead{padding:12px 14px}#library .asidehead b{font-size:18px}#library #hideLib{padding:10px 17px;background:#67895c;font-weight:700;font-size:14px}#catalog{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-content:start;gap:9px;padding:0 10px 12px}#catalog .item{flex-direction:column;align-items:stretch;margin:0;padding:9px;gap:6px;min-height:180px}#catalog .item img{width:100%;height:91px;object-fit:contain;background:#f4f6f0}#catalog .item button{margin:0;width:100%;font-size:14px;padding:9px}#catalog .item>div{flex:1}#catalog .item .name{display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;font-size:12px}#cats{grid-template-columns:repeat(6,minmax(0,1fr));gap:4px}#cats button{font-size:11px;padding:9px 2px}#inspector{display:none;position:absolute;inset:auto 0 0;max-height:78%;height:auto;z-index:8;overflow:auto;border-top:2px solid #7a9779;box-shadow:0 -8px 25px #0003}#inspector.open{display:block}#hideInspector{display:inline-block}#objects{display:grid;grid-template-columns:1fr;overflow:visible}#objects .object{min-width:0}#properties .property{grid-template-columns:1fr 1fr}#properties button{min-height:42px}.toolbar{top:9px;gap:5px}.toolbar button{font-size:12px;padding:8px 9px}#stepbar{padding-bottom:max(8px,env(safe-area-inset-bottom));gap:5px}#stepbar button{font-size:12px;min-height:56px}#view{bottom:76px}#labels{bottom:76px}.device-label{min-height:32px;font-size:11px}#stats{bottom:122px;font-size:11px}#hint{bottom:85px;font-size:12px}#linkPanel{bottom:84px;left:7px;right:7px;padding:11px}.linkfields{grid-template-columns:1fr 17px 1fr}#linkPanel select{font-size:12px}#toast{top:52px}footer{display:none}}
@media(max-width:680px){.device-label{max-width:96px;padding:4px 6px}.device-label span{max-width:55px}.device-label b{min-width:23px;height:23px}}
/* Customer mode: simple game controls, same-origin app module. */
html,body{background:#f2f5f5;color:#182c39}header{background:#fff;color:#102b45;border-bottom:1px solid #d9e3e9;height:62px}.brand .mark{background:#e3edf6;color:#1263a1}.brand b{font-size:18px}.brand small{color:#7c8b97}.backBtn{display:grid;place-items:center;text-decoration:none;color:#183e5e;background:#eff4f9;border:1px solid #dce5eb;border-radius:8px;font-size:30px;line-height:1;width:37px;height:37px}.headright #save{background:#0e5685;border-color:#0e5685;color:#fff}.headright #more{background:#edf3f7;color:#183e5e;border-color:#dce5eb}#moreMenu{background:#fff;border-color:#d5e1e8}#moreMenu button{background:#f3f7fa;color:#153b56;border-color:#dce5eb}main{display:grid;grid-template-columns:278px minmax(0,1fr)}#library{background:#f7fafb;color:#19374b;border:0;border-right:1px solid #d5e1e8}.asidehead{border-color:#d5e1e8}.asidehead small{color:#607786}#library #hideLib{display:none}.filters input:not([type=checkbox]),select{color:#17394b;background:#fff;border-color:#c9d8df}#cats{grid-template-columns:repeat(3,minmax(0,1fr))}#cats button{background:#e9f0f4;color:#2a4758;border:1px solid #d3e0e7}#cats button.active{background:#165a84;color:#fff;border-color:#165a84}#catalogNote{color:#647985}#catalog .item{background:#fff;color:#153247;border:1px solid #d5e0e7;box-shadow:0 2px 6px #12384d08}#catalog .item button{background:#e2edf3;border-color:#d6e5ed;color:#0f5d8c;font-weight:700}#catalog .item small,#catalog .item[data-status="reference"] small{color:#77858d}#inspector{display:none;position:absolute;right:0;top:0;bottom:0;z-index:8;width:280px;box-shadow:-6px 0 24px #13334126;background:#203434;color:#f7fbf8}#inspector.open{display:flex}#hideInspector{display:inline-block}.toolbar #quickSettings{margin-left:auto}#stepbar{grid-template-columns:repeat(3,1fr);background:#f6f9fa;border-top:1px solid #c9d8df;padding:8px 12px}#stepbar button{background:#e6eef3;color:#25495f;border-color:#d0dee7;font-size:15px;min-height:58px}#stepbar #showLib{background:#155a85;color:#fff;border-color:#155a85}#stepbar button.active{background:#d1e9d1;color:#244b31;border-color:#9bbd9d}#stepbar button b{font-weight:650}#emptyHelp{position:absolute;left:50%;top:39%;transform:translate(-50%,-50%);text-align:center;width:min(320px,80%);padding:20px 12px;background:#f8fbf6ed;border:1px solid #b5c6bf;border-radius:17px;z-index:3;color:#234938;box-shadow:0 5px 23px #294c3515}#emptyHelp strong{font-size:20px}#emptyHelp p{font-size:13px;color:#617968;margin:9px 0 14px}#emptyHelp button{background:#47774c;border-color:#47774c;min-height:45px;font-weight:700}#linkPanel{bottom:86px;max-width:520px;padding:12px;background:#fff;color:#1b3d32}#linkChoices{display:flex;gap:8px;flex-wrap:wrap;margin-top:10px;max-height:110px;overflow:auto}#linkChoices button{background:#eaf1ec;color:#294736;border-color:#b9cec0;font-size:13px;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}#linkChoices button.active{background:#517e54;color:#fff}#stats{background:#24465b;color:white}#hint{background:#f9fbfd;color:#284e62;border-color:#c3d4e1}footer{background:#fff;color:#627a89;border-color:#cddce4}#view,#labels{bottom:78px}.disclaimer{color:#b2c1bc}.device-label{background:#1e4a60e8;border-color:#c4d6e1}.device-label.active{background:#397945}.device-label b{background:#e1ecf4;color:#1d4f72}
@media(max-width:680px){header{height:52px;min-height:52px;padding:5px 8px}.brand{gap:6px}.brand .mark{display:none}.brand b{font-size:16px}.backBtn{width:30px;height:32px;font-size:26px}main{display:block}#library{position:absolute;width:100%;inset:0;display:none;z-index:8;background:#f5f8fa}#library.open{display:flex}#library #hideLib{display:block;background:#155a85;color:#fff;border-color:#155a85;font-size:13px;padding:10px 12px}.filters{gap:9px;padding:9px 10px}#cats{display:flex;flex-wrap:nowrap;overflow:auto;gap:5px}#cats button{flex-shrink:0;padding:8px 10px;font-size:12px}#catalog{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}#catalog .item{min-height:157px;gap:5px;padding:8px}#catalog .item img{height:86px;background:#f3f6f8}#catalog .item button{font-size:13px;padding:7px}#catalog .item .name{font-size:13px}#catalog .item small{font-size:11px}#stepbar{gap:8px;padding:8px 10px max(8px,env(safe-area-inset-bottom))}#stepbar button{min-height:57px;font-size:14px}#view,#labels{bottom:76px}#inspector{position:absolute;width:100%;inset:auto 0 0;max-height:78%;height:auto;display:none}#inspector.open{display:block}#linkPanel{bottom:85px}#hint{bottom:87px}#stats{bottom:125px}#emptyHelp{top:40%}.toolbar #quickSettings{font-size:12px}.headright button{font-size:12px}}

/* Fix hidden legacy move control and card clipping seen in real mobile browser. */
#stepbar #move[hidden]{display:none!important}
#stepbar{grid-template-columns:repeat(3,minmax(0,1fr))}
@media(max-width:680px){#catalog{grid-auto-rows:minmax(184px,auto);align-items:stretch}#catalog .item{min-height:184px;height:auto;overflow:hidden;justify-content:flex-start}#catalog .item img{flex-shrink:0;height:91px}#catalog .item>div{min-height:33px;flex:1 1 auto}#catalog .item button{flex-shrink:0;min-height:35px}#hint{bottom:88px}#stats{bottom:125px}}

/* Full-viewport workspace, including phone landscape. */
html,body{height:100%;height:100dvh;width:100%;overflow:hidden;overscroll-behavior:none}main{min-height:0;overflow:hidden}#stage{min-height:0}#fullScreen{white-space:nowrap}
@media (min-width:681px) and (max-height:550px) and (max-width:1100px){
 header{height:42px;min-height:42px;padding:4px 12px}.brand b{font-size:15px}.brand small,.brand .mark,footer{display:none}.backBtn{width:28px;height:28px;font-size:24px}.headright button{font-size:12px;padding:6px 9px}
 main{display:block;position:relative}#stage{width:100%;height:100%}#library{display:none;position:absolute;top:0;bottom:0;left:0;right:auto;width:min(320px,46%);z-index:8;box-shadow:3px 0 15px #0003}#library.open{display:flex}#library #hideLib{display:block;background:#155a85;color:#fff;padding:6px 9px}#library .asidehead{padding:8px 10px}#catalog .item{min-height:64px;padding:6px 7px}#catalog .item img{width:64px;height:50px}
 #stepbar{padding:4px 10px max(4px,env(safe-area-inset-bottom));gap:7px}#stepbar button{min-height:40px;flex-direction:row;gap:7px;font-size:13px}#view,#labels{bottom:50px}#stats{bottom:82px}#hint{bottom:55px}#linkPanel{bottom:54px;max-width:460px}#linkChoices{max-height:80px}.toolbar button{padding:6px 10px;font-size:12px}#inspector{max-height:100%;height:auto}#emptyHelp{padding:12px;top:41%}
}

#catalog .item[data-status="rejected"] small{color:#9b4038;font-weight:650}
#catalog .item[data-status="external_reference"] small{color:#795e37}

/* Render output stays in the same production-line module. */
#stepbar{grid-template-columns:repeat(4,minmax(0,1fr))}
#stepbar #renderScene{background:#225f89;color:white;border-color:#225f89}
.render-modal{position:fixed;inset:0;z-index:100;background:#eaf0f4;display:grid;place-items:center;padding:18px;overflow:auto;overscroll-behavior:contain}
.render-shell{width:min(1160px,100%);max-height:100%;display:flex;flex-direction:column;gap:12px;background:white;border-radius:16px;border:1px solid #d0dfe7;padding:18px;box-shadow:0 8px 35px #1a415920;min-height:0}
.render-head,.render-actions{display:flex;align-items:center;justify-content:space-between;gap:10px}
.render-head strong{display:block;font-size:21px;color:#133c57}
.render-head small{display:block;margin-top:5px;color:#718493;font-size:12px}
.render-modal button{background:#eef4f7;color:#23536e;border:1px solid #c5d8e4;border-radius:8px;padding:10px 13px;font-weight:650;white-space:nowrap}
.render-modal button:disabled{opacity:.45;cursor:default}
.render-controls{display:flex;gap:8px;align-items:flex-end;flex-wrap:wrap}
.render-controls label{display:grid;gap:5px;color:#536f81;font-size:12px;flex:1 1 130px}
.render-controls select{width:100%;font-size:13px;padding:9px;background:#f7fafc;color:#23455d;border:1px solid #cbdce7;border-radius:8px}
.render-output{position:relative;min-height:170px;display:grid;place-items:center;overflow:hidden;background:#dde5e8;border-radius:10px;flex:1;aspect-ratio:16/9;border:1px solid #cfdce2}
.render-output img{display:block;width:100%;height:100%;max-height:57dvh;object-fit:contain;background:#e5e9e8}
#renderStatus{padding:22px;color:#416078;text-align:center;font-weight:650;font-size:14px;line-height:1.6}
.render-actions{font-size:12px;color:#597181}#renderSave{background:#155a85;color:white;border-color:#155a85;min-width:110px}
@media(max-width:680px){#stepbar button{font-size:12px}#stepbar button span{font-size:19px}.render-modal{padding:10px}.render-shell{padding:12px;gap:10px}.render-head strong{font-size:18px}.render-head small{font-size:11px}.render-modal button{padding:9px 10px;font-size:12px}.render-controls label{flex:1 1 110px}.render-controls select{font-size:12px;padding:8px}.render-controls #renderAgain{flex:1 1 100%}.render-output{aspect-ratio:16/9;min-height:140px}.render-output img{max-height:46dvh}}
@media(max-height:550px) and (min-width:681px){.render-modal{padding:8px}.render-shell{max-width:920px;padding:9px;gap:7px}.render-head strong{font-size:16px}.render-head small{display:none}.render-controls label{display:flex;align-items:center;gap:6px}.render-controls label span{white-space:nowrap}.render-output{min-height:80px;aspect-ratio:auto;height:48dvh}.render-output img{max-height:48dvh}.render-modal button{padding:7px 10px;font-size:12px}}

.render-controls label:has(#renderMode){flex:1 1 160px}
@media(max-width:680px){.render-controls label:has(#renderMode){flex:1 1 100%}.render-controls label{gap:4px}.render-controls #renderAgain{flex:1 1 100%}}

#renderFocusRow{flex:1 1 150px}#renderFocusRow[hidden]{display:none!important}

#catalog .item .device-actions{display:flex;gap:5px;align-items:stretch;flex:0 0 auto;margin:0}
#catalog .item .device-actions button{min-width:0;flex:1;margin:0;padding:7px 5px;font-size:12px}
#catalog .item .device-actions .device-hd{background:#155a85;color:#fff;border-color:#155a85;font-weight:650}
#renderTitle{max-width:72vw;overflow-wrap:anywhere}
@media(min-width:681px){#catalog .item .device-actions{flex-direction:column;width:70px}}
@media(max-width:680px){#catalog .item .device-actions{width:100%;flex:0 0 auto}#catalog .item .device-actions button{font-size:12px;min-height:35px}}

.render-file-actions{display:flex;gap:6px;flex-wrap:wrap;justify-content:flex-end}
#renderImage{cursor:zoom-in}
#renderZoom{position:fixed;inset:0;background:#182633;z-index:110;display:flex;flex-direction:column;color:#fff;overscroll-behavior:contain}
#renderZoom[hidden]{display:none!important}
.zoom-bar{display:flex;gap:8px;align-items:center;padding:10px;min-height:48px;background:#203443;flex:0 0 auto}
.zoom-bar strong{flex:1;font-size:13px}.zoom-bar button{padding:8px 10px;font-size:13px}
#zoomStage{min-height:0;flex:1;display:flex;align-items:center;justify-content:center;overflow:auto;padding:8px}
#zoomImage{max-width:100%;max-height:100%;object-fit:contain;flex:none}
#zoomStage.native{display:block;padding:0}
#zoomStage.native #zoomImage{max-width:none;max-height:none;display:block}
@media(max-width:680px){.render-actions{align-items:flex-start;flex-wrap:wrap}.render-file-actions{margin-left:auto}}

#linkPanel{z-index:7;padding:12px;border:1px solid #91aebf;background:#fff}
#linkProgress{font-size:13px;color:#24536f;font-weight:650;padding:8px 0;line-height:1.4}
#linkChoices{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));max-height:160px;overflow-y:auto;gap:6px}
#linkChoices button{min-height:40px;white-space:normal;text-align:left;font-size:12px;overflow-wrap:anywhere}
#linkChoices button.active{background:#155a85;color:white;border-color:#155a85}
#resetLink{font-size:12px;padding:6px 9px;margin-top:7px}
#motionStatus{position:absolute;left:10px;top:54px;max-width:calc(100% - 20px);padding:6px 10px;background:#193e2eeb;color:#fff;border-radius:7px;font-size:12px;z-index:4;pointer-events:none;line-height:1.4}
@media(max-width:680px){#linkPanel{padding:9px}#linkChoices{max-height:132px}#linkChoices button{min-height:40px}#motionStatus{top:47px;font-size:11px}}

#focusMachine{font-weight:650} @media(max-width:680px){.toolbar #focusMachine{padding:7px 8px}}

.headright #undo,.headright #redo{font-size:18px;line-height:1;padding:7px 8px;min-width:30px;background:#f1f5f7;color:#31566b;border-color:#d5e2e8}.headright #undo:disabled,.headright #redo:disabled{opacity:.36}
#quickTools{position:absolute;right:10px;bottom:86px;z-index:5;display:flex;gap:5px;padding:5px;background:#f7fbfbed;border:1px solid #bbced8;border-radius:10px;box-shadow:0 3px 12px #29424a1a}
#quickTools button{padding:8px 11px;background:#e9f1f4;color:#23495f;border:1px solid #d0dfe7;font-size:12px}#quickTools #quickDelete{color:#963e35}
#draftPanel{position:absolute;z-index:8;left:10px;right:10px;bottom:86px;max-width:540px;margin:auto;padding:11px 12px;background:#f9fbfbea;border:1px solid #9db9c8;border-radius:14px;box-shadow:0 4px 20px #14344728;color:#193d54}
.draft-head{display:flex;align-items:center;justify-content:space-between;gap:8px}.draft-head strong{font-size:17px}.draft-head button{background:#e8eff3;color:#36596c;border-color:#cfdee7;padding:6px 9px;font-size:12px}
#draftName{display:block;margin:5px 0 3px;font-size:13px;overflow-wrap:anywhere}#draftStatus{font-size:12px;color:#27704c;font-weight:650;line-height:1.4}#draftStatus.warning{color:#a54a3a}
.draft-adjust{display:flex;gap:7px;align-items:center;flex-wrap:wrap;margin:8px 0}.draft-adjust button{background:#e7f0f5;color:#1e5271;border-color:#c7dae6;font-size:12px;padding:7px 9px}
#draftPanel label{display:inline-flex;align-items:center;gap:5px;font-size:12px;color:#34576b}#draftPanel input{accent-color:#1a638b;width:16px;height:16px}#draftLinkNote{display:block;margin:2px 0 6px;font-size:11px;color:#647787}
.draft-confirm{display:flex;gap:6px;margin-top:8px}.draft-confirm button{flex:1;min-height:38px;background:#155a85;border-color:#155a85;color:white;font-weight:700}.draft-confirm button:disabled{opacity:.4}#forcePlace{background:#a85b44;border-color:#a85b44}
#stage.building #hint,#stage.building #stats,#stage.building #quickTools{display:none!important}
#linkChoices .link-unavailable{border-color:#d5c8bf;color:#8a7466;background:#f5efeb}
#runSpeed{background:#d8eee0;color:#286142;border-color:#a8cdb3}
@media(max-width:680px){.headright{gap:3px}.headright #undo,.headright #redo{padding:5px 6px;font-size:16px;min-width:26px}.brand b{font-size:14px}.headright #more,.headright #save{padding:7px 6px}.draft-head strong{font-size:15px}#draftPanel{bottom:85px;padding:9px 10px;left:7px;right:7px}.draft-adjust{gap:5px}.draft-adjust button{padding:6px 8px}.draft-confirm button{min-height:39px}#quickTools{bottom:86px;right:8px}}
@media(min-width:681px) and (max-height:550px) and (max-width:1100px){#draftPanel{bottom:54px;max-width:400px;right:10px;left:auto;padding:8px}.draft-adjust{margin:5px 0}.draft-head strong{font-size:14px}#quickTools{bottom:54px}.draft-confirm button{min-height:32px}}
@media(min-width:681px) and (min-height:551px){
#draftPanel{top:58px;bottom:auto;left:auto;right:10px;width: min(285px,42%);margin:0}
#draftPanel .draft-adjust{gap:5px}#draftPanel .draft-adjust button{padding:7px 8px}
}
/* While placing a hologram, let the pointer reach the floor even over machine labels. */
#stage.building #labels,#stage.building #labels *{pointer-events:none!important}

#view,#view canvas,#labels .device-label{touch-action:none;user-select:none;-webkit-user-select:none;-webkit-touch-callout:none}
#viewControls{position:absolute;left:10px;bottom:128px;z-index:5;display:flex;gap:5px;align-items:center}
#viewControls button{min-width:38px;min-height:36px;padding:6px 10px;background:#f8fbfbed;color:#23495f;border:1px solid #b9cdd5;border-radius:8px;font-weight:650;font-size:15px;box-shadow:0 2px 8px #173d4b15;touch-action:manipulation}
#viewControls #viewPan{font-size:12px}
#stage.building #viewControls{top:55px;bottom:auto}
@media(max-width:680px){#viewControls{left:8px;bottom:126px}#viewControls button{min-width:38px;min-height:36px}#stage.building #viewControls{top:48px;bottom:auto}}
@media(min-width:681px) and (max-height:550px) and (max-width:1100px){#viewControls{bottom:86px}#stage.building #viewControls{top:40px;bottom:auto}}

/* Compact product workspace: visual controls smaller, touch targets remain usable. */
:root{--line-ink:#223747;--line-muted:#687b89;--line-blue:#17648c;--line-border:#d6dfe5;--dock:57px}
html,body{background:#f7f9fa;color:var(--line-ink)}
header{height:48px;min-height:48px;padding:0 12px;gap:8px;background:#fff;border-bottom:1px solid #e0e7eb}
.brand{gap:8px;min-width:0}.brand b{font-size:15px;font-weight:700;letter-spacing:-.2px}.brand small{font-size:9px;color:#8595a1;letter-spacing:.5px}.brand .mark{width:27px;height:27px;border-radius:6px;font-size:13px;background:#eaf2f6;color:#17648c}
.backBtn{width:30px;height:34px;flex:0 0 30px;border:0;background:transparent;font-size:27px;border-radius:5px}
.headright{gap:3px}.headright button{min-height:34px;padding:6px 9px;font-size:12px;border-radius:6px}
.headright #undo,.headright #redo{min-width:31px;min-height:34px;padding:5px;font-size:18px;border:0;background:transparent;color:#486274}
.headright #save{background:#edf4f7;border-color:#d8e5ec;color:#195b81}
.headright #more{background:#fff;border-color:#e2e8ec;color:#526675}
main{grid-template-columns:248px minmax(0,1fr);overflow:hidden}
#library{background:#fff;border-right:1px solid #e0e6e9;color:var(--line-ink)}
#library .asidehead{padding:12px 11px 8px;border:0}.asidehead b{font-size:14px}.asidehead small{color:#738695;font-size:11px}
.filters{padding:6px 10px 8px;gap:6px}.filters input:not([type=checkbox]){padding:9px;border-radius:8px;background:#f7f9fb;border-color:#e0e7eb;font-size:12px}
#cats button{background:#f4f6f8;color:#647987;border-color:#e5eaee;border-radius:6px;padding:6px 3px;font-size:11px}
#cats button.active{background:#e3eff5;color:#185f86;border-color:#bcd4e3;font-weight:700}
#catalogNote{font-size:10px;color:#8b9ba4;padding:0 10px 5px}
#catalog{padding:0 8px 10px}#catalog .item{border:0;border-bottom:1px solid #ebeff1;border-radius:0;box-shadow:none;background:#fff;gap:7px;min-height:76px;padding:8px 5px;margin:0}
#catalog .item img{width:65px;height:59px;border-radius:6px;background:#f2f5f5}#catalog .item .name{font-size:12px;font-weight:650;color:#263e50}
#catalog .item small{font-size:10px;color:#84929b}#catalog .item .device-actions{width:57px;gap:4px}
#catalog .item .device-actions button{font-size:11px;padding:6px 4px;border-radius:5px;min-height:28px;border:1px solid #d9e6ed;background:#edf5f8;color:#175d82}
#catalog .item .device-actions .device-hd{background:white;color:#72818c;border-color:#e0e6e9;font-weight:550}
#stage{background:#e1e6e8}#view,#labels{bottom:var(--dock)}
.toolbar{top:9px;left:10px;right:10px;gap:4px;flex-wrap:nowrap}
.toolbar button{border:1px solid #d4dfe4;box-shadow:0 2px 5px #203a4710;background:#fffffff5;color:#465d6d;font-size:11px;padding:5px 9px;border-radius:7px;min-height:31px}
.toolbar button.active{background:#dceaf0;color:#155c83;border-color:#b9d2e0}
.toolbar #quickSettings{margin-left:auto;min-width:31px;padding:5px;display:grid;place-items:center}.toolbar #quickSettings svg{width:17px;height:17px}
#stepbar{position:absolute;bottom:0;left:0;right:0;padding:5px 8px max(5px,env(safe-area-inset-bottom));gap:5px;grid-template-columns:repeat(4,minmax(0,1fr));background:#fffffffa;border-top:1px solid #dce4e8}
#stepbar button{min-height:42px;height:42px;display:flex!important;flex-direction:row;align-items:center;justify-content:center;gap:6px;padding:3px 5px;background:#fff;color:#496171;border:1px solid #e4e9ec;border-radius:7px;box-shadow:none;font-size:12px;font-weight:600}
#stepbar button span{font-size:15px;line-height:1;display:flex;align-items:center}
#stepbar button svg{width:17px;height:17px;display:block}
#stepbar #showLib{color:#155f88;background:#eaf3f8;border-color:#d6e6ef}
#stepbar #renderScene{background:#fff;color:#496171;border-color:#e4e9ec}
#stepbar button.active{background:#e4f0e8;color:#327452;border-color:#c8e0d0}
#stepbar #move[hidden]{display:none!important}
#viewControls{right:10px;left:auto;bottom:calc(var(--dock) + 42px);top:auto;display:flex;flex-direction:column;gap:4px}
#viewControls button{font-size:17px;min-width:32px;width:32px;min-height:33px;padding:2px 5px;background:#fffffff2;border-color:#d8e2e6;border-radius:7px;box-shadow:0 2px 5px #203a470d}
#viewControls #viewPan{font-size:10px}
#stage.building #viewControls{top:47px;bottom:auto}
#stats{background:#ffffffd9;color:#4b6475;font-size:11px;bottom:calc(var(--dock) + 9px);left:10px;right:auto;border-color:#d4dfe3;padding:5px 8px;box-shadow:none}
#hint{display:none}
#toast{top:47px;max-width:90%;padding:7px 11px;border:0;border-radius:7px;font-size:12px;background:#243c49e8;color:white;box-shadow:none}
#motionStatus{top:47px;left:10px;font-size:10px;padding:5px 8px;background:#e3f1e8f2;color:#31714c;border:1px solid #bcd9c7;max-width:85%}
.device-label{padding:3px 6px;gap:4px;min-height:27px;border:1px solid #d5e0e6;background:#fffffff2;color:#2d4d60;border-radius:6px;box-shadow:0 1px 5px #23435516;font-size:10px}
.device-label b{font-size:11px;min-width:17px;height:17px;border-radius:4px;background:#e7eef2;color:#44647a}
.device-label.active{background:#e9f4ec;border-color:#8db99c;color:#285c3b}.device-label.active b{background:#4c9566;color:white}
#quickTools{bottom:calc(var(--dock) + 9px);right:8px;gap:3px;padding:3px;background:#ffffffed;border-color:#dce5e8;box-shadow:none}
#quickTools button{padding:5px 8px;font-size:11px;border:0;background:transparent;min-height:30px}
#linkPanel{bottom:calc(var(--dock) + 8px);background:white;border-color:#d4e0e6;border-radius:12px;padding:10px;box-shadow:0 5px 20px #243b491b}
#linkChoices button{min-height:35px;font-size:11px;background:#f1f5f7;border-color:#e1e8ec;color:#4a6475;padding:5px 8px}#linkChoices button.active{background:#dfedf5;color:#165b82;border-color:#bcd6e6}
#linkProgress{font-size:11px;padding:6px 0;color:#4c687a}.linkhead b{font-size:14px}
#draftPanel{bottom:calc(var(--dock) + 8px);padding:10px 11px;background:#fffffff8;border-color:#d5e1e7;box-shadow:0 5px 20px #243b491b;border-radius:12px}
.draft-head strong{font-size:14px}.draft-head button{background:#f1f4f6;border:0;color:#536c7b;font-size:11px}
#draftName{font-size:12px}#draftStatus{font-size:11px}.draft-adjust{margin:6px 0;gap:5px}.draft-adjust button{background:#f0f5f7;color:#315a70;border-color:#e2e9ed;padding:5px 8px;font-size:11px}
#draftPanel label{font-size:11px}.draft-confirm button{min-height:35px;font-size:12px;background:#17648c;border-color:#17648c}
#inspector{background:#fff;color:#253b4a;border-color:#d5e0e6}.object,.edge{color:#314e60;border-color:#e1e7eb}.object button,.edge button,.property button{background:#f0f5f7;color:#315568;border-color:#dde7eb}.property label{color:#607786}.property input{background:#fff;color:#263b49;border-color:#d5e2e8}.disclaimer{color:#7a8995}
footer{height:22px;padding:0 10px;color:#7a8b96;border-color:#e1e7eb;font-size:10px}
#emptyHelp{width:min(360px,90%);top:43%;padding:0;text-align:left;overflow:hidden;background:#fff;color:#223e50;border:1px solid #d8e2e6;border-radius:15px;box-shadow:0 8px 28px #28475a14;z-index:6}
.welcome-image{position:relative;aspect-ratio:16/9;background:#d8e2e2;overflow:hidden}
.welcome-image img{display:block;width:100%;height:100%;object-fit:cover}
.welcome-image>span{position:absolute;left:11px;top:10px;background:#fffffff0;border-radius:4px;padding:5px 7px;font-size:10px;font-weight:750;letter-spacing:1.2px;color:#225269}
.welcome-copy{padding:16px}.welcome-copy strong{font-size:20px;letter-spacing:-.45px;color:#203d50}
.welcome-copy p{font-size:12px;line-height:1.5;margin:7px 0 14px;color:#6b8190}
#bootStatus{font-size:11px;line-height:1.5;color:#748896;margin:0 0 9px}#bootStatus:empty{display:none}#bootStatus.boot-error{color:#a45341}
.welcome-actions{display:flex;gap:7px;flex-wrap:wrap}
#emptyHelp .welcome-actions button{min-height:37px;padding:8px 11px;flex:1 1 auto;font-size:12px;border-radius:7px;border:1px solid #d9e4eb;background:#f1f5f8;color:#426476;font-weight:650}
#emptyHelp #startBuild,#emptyHelp #resumeLayout,#emptyHelp #bootRetry{background:#17648c;border-color:#17648c;color:white}
.booting #emptyHelp .welcome-actions #startBuild,.booting #emptyHelp .welcome-actions #openExample,.boot-failed #emptyHelp .welcome-actions #startBuild,.boot-failed #emptyHelp .welcome-actions #openExample,.boot-failed #emptyHelp .welcome-actions #resumeLayout{display:none!important}
.booting #viewControls,.booting .toolbar,.booting #stepbar,.booting #stats,.boot-failed #viewControls,.boot-failed .toolbar,.boot-failed #stepbar,.boot-failed #stats,.boot-failed #quickTools,.boot-failed #labels{visibility:hidden;pointer-events:none}
.booting .headright,.boot-failed .headright{visibility:hidden}
.boot-failed #emptyHelp{display:block!important;z-index:15}
.boot-failed #library,.boot-failed #inspector,.boot-failed #linkPanel,.boot-failed #draftPanel{display:none!important}
@media(max-width:680px){
 :root{--dock:calc(53px + env(safe-area-inset-bottom))}
 header{height:46px;min-height:46px;padding:0 7px}.brand{gap:4px}.brand b{font-size:14px}.brand .mark,.brand small{display:none}
 .backBtn{width:28px;flex-basis:28px;font-size:24px}.headright{gap:2px}.headright #undo,.headright #redo{min-width:28px;padding:5px}.headright #save,.headright #more{font-size:11px;padding:6px 7px}
 main{display:block}#stage{height:100%}#library{position:absolute;inset:0;z-index:10;width:100%;background:#f8fafb}
 #library .asidehead{padding:10px 12px 5px}.asidehead b{font-size:15px}
 #library #hideLib{padding:7px 10px;font-size:11px;background:#edf4f8;color:#205b7b;border-color:#d4e4ed;border-radius:7px}
 .filters{padding:6px 10px 8px}#cats{gap:4px}#cats button{padding:7px 10px;font-size:11px}
 #catalog{padding:0 9px 12px;grid-template-columns:repeat(2,minmax(0,1fr));grid-auto-rows:minmax(146px,auto);gap:8px}
 #catalog .item{border:1px solid #e1e7eb;border-radius:9px;min-height:146px;padding:7px;gap:5px}
 #catalog .item img{width:100%;height:83px;object-fit:contain;flex-shrink:0;background:#f3f6f6}
 #catalog .item>div{min-height:25px}#catalog .item .device-actions{width:100%;min-height:30px;gap:4px}
 #catalog .item .device-actions button{min-height:31px;font-size:11px}
 .toolbar{top:7px;left:8px;right:8px;gap:4px}.toolbar button{min-height:31px;font-size:11px;padding:5px 8px}
 #stepbar{padding:4px 7px max(4px,env(safe-area-inset-bottom));gap:4px}
 #stepbar button{min-height:43px;height:43px;font-size:11px;gap:4px;border-radius:6px}
 #stepbar button svg{width:16px;height:16px}
 #viewControls{right:7px;bottom:calc(var(--dock) + 47px);gap:4px}
 #viewControls button{min-width:34px;width:34px;min-height:34px}
 #stats{left:8px;bottom:calc(var(--dock) + 9px);font-size:10px;padding:5px 6px}
 #quickTools{right:7px;bottom:calc(var(--dock) + 9px)}
 #quickTools button{padding:6px 8px;font-size:10px}
 #draftPanel,#linkPanel{left:7px;right:7px;bottom:calc(var(--dock) + 8px);padding:9px}
 #stage.building #viewControls{top:44px;bottom:auto}
 #emptyHelp{top:43%;width:min(330px,88%)}.welcome-copy{padding:13px}.welcome-copy strong{font-size:18px}.welcome-copy p{margin:5px 0 12px}
 #toast{top:44px}#motionStatus{top:43px}
 footer{display:none}
}
@media(min-width:681px) and (max-height:550px) and (max-width:1100px){
 :root{--dock:45px}header{min-height:39px;height:39px}.brand b{font-size:13px}
 main{display:block;position:relative}#library{position:absolute;inset:0 auto 0 0;width:min(260px,42%);display:none;z-index:10}#library.open{display:flex}
 #stepbar{padding:3px 7px;gap:5px}#stepbar button{height:37px;min-height:37px;font-size:11px}
 #emptyHelp{width: min(480px,68%);display:flex;align-items:center;top:46%}.welcome-image{width:48%;flex:0 0 48%;aspect-ratio:4/3}.welcome-copy{padding:10px}.welcome-copy strong{font-size:15px}.welcome-copy p{font-size:11px;margin:4px 0 8px}.welcome-actions{gap:4px}
 #emptyHelp .welcome-actions button{min-height:31px;font-size:11px;padding:6px 7px}
 #viewControls{bottom:calc(var(--dock) + 6px)}#viewControls button{min-height:29px;width:29px;min-width:29px}
 #draftPanel{bottom:calc(var(--dock) + 8px);right:8px;left:auto;width:min(320px,47%);max-width:none}
}
@media(min-width:681px) and (min-height:551px){#draftPanel{top:48px;bottom:auto;right:10px;left:auto;width:min(260px,42%);margin:0}}

/* Keep the full card action row in view; never clip the model or its controls. */
@media(max-width:680px){
 #catalog{grid-auto-rows:minmax(168px,auto)}
 #catalog .item{height:auto;min-height:168px;padding:7px;display:grid;grid-template-rows:76px minmax(32px,auto) 31px;gap:5px;align-content:start;overflow:visible}
 #catalog .item img{height:76px;max-height:76px;min-height:76px}
 #catalog .item>div{min-height:0;min-width:0}
 #catalog .item .name{font-size:12px;line-height:1.3;white-space:normal;-webkit-line-clamp:2}
 #catalog .item small{margin-top:3px;line-height:1.2;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
 #catalog .item .device-actions{height:31px;min-height:31px;margin:0;align-items:stretch}
 #catalog .item .device-actions button{min-height:31px;height:31px;padding:5px 6px}
}
#loadState{position:fixed;z-index:90;top:55px;left:50%;transform:translateX(-50%);display:flex;align-items:center;gap:8px;width:max-content;max-width:calc(100% - 24px);padding:7px 10px;background:#243e50f2;color:white;border-radius:8px;box-shadow:0 4px 15px #22374720;font-size:12px}
#loadMessage{max-width:min(68vw,440px);overflow-wrap:anywhere;line-height:1.4}
#loadState button{font-size:11px;min-height:27px;padding:4px 7px;border:1px solid #ffffff35;background:#ffffff16;color:white;border-radius:5px}

/* Keep desktop properties inside the editing area, never over the global toolbar. */
@media(min-width:681px){main{position:relative}}

/* 07: compact, non-overlay inspector. Keep all existing desktop actions. */
#inspectorTabs{display:none}
@media(max-width:680px),(max-width:1100px) and (max-height:550px){
 main.inspecting{display:flex;position:relative;min-height:0;overflow:hidden}
 main.inspecting #stage{flex:1 1 0;height:auto;min-height:0;min-width:0}
 main.inspecting #inspector.open{position:relative;inset:auto;display:flex;flex-direction:column;overflow:hidden;flex:0 0 auto;width:100%;height:min(248px,37%);max-height:none;border:0;border-top:1px solid #d6e2e8;box-shadow:0 -3px 12px #243b4910;z-index:9}
 #inspector>.asidehead{padding:4px 10px;min-height:38px;flex-shrink:0;border-bottom:1px solid #e2e9ed}
 #inspector>.asidehead button{min-height:34px;border-radius:6px;background:#eef4f6;color:#315568;border-color:#dbe5eb}
 #inspector #objects{display:flex;flex:0 0 auto;min-height:42px;max-height:47px;gap:5px;padding:4px 8px;overflow:auto;scrollbar-width:thin;align-items:center}
 #inspector .object{min-width:0;flex:0 0 auto;max-width:230px;padding:2px 3px;border:1px solid #e0e7eb;gap:3px}
 #inspector .object.selected{border-color:#81a8b6;background:#e8f1f3}
 #inspector .object button:first-child{font-size:11px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:160px;min-height:32px;padding:4px 7px}
 #inspector .object button:last-child{min-height:32px;min-width:30px;padding:4px}
 #inspectorTabs{display:flex;gap:6px;padding:3px 8px;border-bottom:1px solid #e2e9ed;flex:0 0 auto;background:#fff}
 #inspectorTabs button{min-height:32px;flex:1;background:#f4f7f9;color:#536b7a;border:1px solid #e2e8ed;font-size:12px;padding:5px}
 #inspectorTabs button[aria-selected=true]{background:#e1eef5;color:#175d82;border-color:#c1d9e6;font-weight:700}
 #inspectorBody{flex:1 1 0;min-height:0;overflow:auto;overscroll-behavior:contain;scrollbar-width:thin}
 #inspector[data-tab=pose] #inspectorLinks,#inspector[data-tab=links] #properties{display:none}
 #inspector #properties,#inspector #connections{padding:6px 8px;gap:5px}
 #inspector #properties:empty:before{content:'请选择上方设备，查看位置与操作。';font-size:12px;color:#667d89;padding:5px}
 #inspector .property{grid-template-columns:repeat(2,minmax(0,1fr));gap:5px}
 #inspector .property input{min-height:34px;font-size:16px;padding:5px}
 #inspector .property button,#inspector .edge button{min-height:38px;font-size:12px;padding:5px}
 #inspectorLinks>.asidehead{display:none}
 #inspector .disclaimer{margin:3px 0 6px;font-size:10px}
}
@media(min-width:681px) and (max-width:1100px) and (max-height:550px){
 main.inspecting{flex-direction:row}
 main.inspecting #inspector.open{width:min(285px,37%);height:100%;border-top:0;border-left:1px solid #d6e2e8}
 main.inspecting #stage{height:100%}
}
@media(max-width:680px){main.inspecting{flex-direction:column}}

@media(min-width:681px) and (max-width:1100px) and (max-height:550px){main.inspecting #viewControls{bottom:calc(var(--dock) + 47px)}main.inspecting #stage.building #viewControls{top:40px;bottom:auto}}

#rotateGrip{position:absolute;z-index:6;width:44px;height:44px;transform:translate(-50%,-50%);padding:9px;border:1px solid #a5cbd9;border-radius:50%;background:#fffffff2;color:#167c9d;box-shadow:0 3px 12px #294c5b24;display:grid;place-items:center;touch-action:none;cursor:grab}
#rotateGrip svg{width:23px;height:23px}#rotateGrip:active{cursor:grabbing;background:#e3f1f6}
#rotationReadout{position:absolute;z-index:7;top:42px;left:50%;transform:translateX(-50%);display:flex;gap:8px;align-items:center;background:#fff;border:1px solid #c8dde5;border-radius:7px;padding:4px 7px;color:#24546b;font-size:12px;white-space:nowrap}
#rotationReadout button{min-height:30px;padding:4px 7px;background:#f0f5f7;color:#315568;border-color:#dce7ed}
#quickTools #angleSnap{color:#17648c;border:1px solid #d6e4eb;min-width:33px;border-radius:5px}
#quickTools #angleSnap[aria-pressed=false]{color:#617481;background:#f4f6f8}

@media(min-width:681px) and (max-width:1100px) and (max-height:550px){#viewControls{bottom:calc(var(--dock) + 47px)}#stage.building #viewControls{top:40px;bottom:auto}}

/* 10: multi-select group actions */
#multiSelect[aria-pressed=true]{background:#d8edf3;color:#11678a;border-color:#87bcca}
#groupPanel{position:absolute;z-index:8;left:50%;transform:translateX(-50%);bottom:calc(var(--dock) + 10px);width:min(360px,calc(100% - 24px));border:1px solid #c1d5de;border-radius:12px;background:#fffffff5;padding:9px;box-shadow:0 5px 18px #1a3e501b}
.group-head,.group-actions{display:flex;align-items:center;gap:5px}.group-head strong{flex:1;font-size:13px;color:#204f65}.group-head button,.group-actions button{min-height:38px;padding:6px 9px;background:#f1f6f8;color:#24566b;border-color:#d3e3e8;font-size:12px}.group-actions{margin-top:6px}.group-actions button{flex:1;background:#e8f2f5}.group-actions button:disabled{opacity:.45}#groupDone{color:#16705c}
@media(max-height:550px) and (min-width:681px){#groupPanel{bottom:calc(var(--dock) + 5px);width:min(320px,48%);padding:5px}.group-head button,.group-actions button{min-height:30px;padding:4px}.group-actions{margin-top:3px}}

#stage.grouping #viewControls{bottom:calc(var(--dock) + 120px)}@media(max-height:550px) and (min-width:681px){#stage.grouping #viewControls{bottom:calc(var(--dock) + 8px)}}

@media(max-height:550px) and (min-width:681px){#groupPanel{left:8px;transform:none;width:min(230px,34%)}#stage.grouping #stats{bottom:calc(var(--dock) + 91px)}}

/* 11: review status and source data are visible, not an implicit approval. */
#reviewTabs{display:grid;grid-template-columns:1fr 1fr;gap:4px}#reviewTabs button{min-height:28px;font-size:10px;background:#f5f7f8;border-color:#dce5e8;color:#516c7a;padding:4px 5px}#reviewTabs button[aria-pressed=true]{background:#deedf4;color:#195e80;border-color:#9cc8d9;font-weight:700}
#catalog .item .assetMeta{display:block;width:100%;margin:3px 0 0;text-align:left;border:0;background:none;color:#768892;font-size:10px;font-weight:500;padding:4px 0;min-height:21px;white-space:normal;line-height:1.2}
#catalog .item[data-status=confirmed] .assetMeta{color:#2b775e;font-weight:650}#catalog .item[data-status=external_reference] .assetMeta{color:#80682e}#catalog .item[data-status=rejected] .assetMeta{color:#a44236}#catalog .missing-preview{color:#667e89;font-size:11px;display:flex;align-items:center;justify-content:center}
#assetInfo{width:min(420px,calc(100vw - 28px));border:1px solid #d1e0e6;border-radius:14px;padding:14px;background:#fff;color:#254555;max-height:85vh;overflow:auto}#assetInfo::backdrop{background:#142f4660}.asset-info-head{display:flex;align-items:center;gap:10px}.asset-info-head strong{flex:1;overflow-wrap:anywhere}#assetInfoClose{min-height:38px;color:#24566b;background:#eef5f7;border-color:#c8dce5}#assetInfoFields{display:grid;gap:4px;font-size:12px;margin:12px 0 0}#assetInfoFields dt{color:#72858f;font-size:11px}#assetInfoFields dd{margin:0 0 8px;padding:7px;background:#f4f7f8;border-radius:6px;overflow-wrap:anywhere}
@media(max-width:680px){#reviewTabs{grid-template-columns:repeat(4,minmax(0,1fr))}#reviewTabs button{font-size:10px;min-height:34px;padding:3px 1px}#catalog .item{grid-template-rows:76px minmax(43px,auto) 31px}#catalog .item .assetMeta{min-height:24px}}

/* 12: single-data-source plan editing */
#planSvg{position:absolute;inset:0 0 var(--dock);width:100%;height:calc(100% - var(--dock));background:#f5f8fa;touch-action:none;user-select:none;z-index:1}
#stage.plan-mode #view canvas{visibility:hidden}
#stage.plan-mode #labels,#stage.plan-mode #rotateGrip,#stage.plan-mode #rotationReadout{display:none!important}
#planSvg [data-plan-device]{cursor:move;outline:none}#planSvg [data-plan-device]:focus-visible rect{stroke:#126e9c;stroke-width:3}
#planToggle[aria-pressed=true]{background:#d7ebf2;color:#146a8d;border-color:#a0c5d4}

@media(max-height:550px) and (min-width:681px){#stage.plan-mode #linkPanel{left:8px;right:auto;transform:none;width:min(230px,30%);max-height:calc(100% - var(--dock) - 70px);overflow:auto}#stage.plan-mode #linkChoices{grid-template-columns:1fr;max-height:110px;overflow:auto}}

@media(max-width:680px){#stage.plan-mode.linking #viewControls{top:82px;bottom:auto}}

#stage.plan-mode #angleSnap{display:none!important}

/* 13: reference measurement overlays and readout */
#measureSvg{position:absolute;inset:0 0 var(--dock);width:100%;height:calc(100% - var(--dock));z-index:5;pointer-events:none}
#measureToggle[aria-pressed=true]{background:#d6ebf3;color:#156d8b;border-color:#a3c8d6}
#measurePanel{position:absolute;z-index:8;left:8px;bottom:calc(var(--dock) + 9px);width:min(340px,calc(100% - 60px));border:1px solid #c6dbe4;border-radius:10px;background:#fffffff7;padding:9px;color:#315766;box-shadow:0 4px 14px #163d4e16;font-size:11px;line-height:1.5}
.measure-head{display:flex;align-items:center;gap:8px;margin-bottom:5px}.measure-head strong{flex:1;font-size:12px}.measure-head button{min-height:32px;color:#215d78;background:#eff6f8;border-color:#d6e5eb;padding:5px 8px}
.measure-select{display:grid;grid-template-columns:1fr 1fr;gap:5px;margin:5px 0}.measure-select label{display:flex;align-items:center;min-width:0;gap:3px}.measure-select select{width:100%;min-width:0;min-height:33px;font-size:12px;border:1px solid #d9e5eb;border-radius:5px;background:#f5f8fa;color:#37576b}
#measureReadout,#measureGap{font-weight:650}#measurePanel small{display:block;color:#738692;font-size:10px}
#stage.measuring #stats{top:44px;bottom:auto;left:8px}#stage.measuring #quickTools{display:none!important}
@media(max-height:550px) and (min-width:681px){#measurePanel{width:min(280px,34%);font-size:10px;padding:6px}.measure-select{grid-template-columns:1fr;gap:3px}.measure-select select{min-height:27px}}

/* 16: motion state controls */
#motionStatus{pointer-events:auto;max-width:min(340px,calc(100% - 20px));padding:7px 9px}#motionStatus.paused{background:#fff5db;color:#8a5b13;border-color:#e5d2a4}.motionActions{display:flex;gap:5px;margin-top:5px}.motionActions button{min-height:36px;min-width:62px;padding:5px 9px;border:1px solid #a8cdb3;border-radius:6px;background:#fff;color:#327452;font-size:12px;font-weight:600}.motionActions button[aria-pressed="true"]{background:#f9e9c4;color:#8a5b13;border-color:#ddc58a}

.bom-dialog{box-sizing:border-box;width:min(780px,calc(100vw - 24px));max-height:calc(100dvh - 24px);margin:auto;overflow:auto;border:1px solid #cbd9df;background:white;color:#17394b;padding:16px;border-radius:12px;font-size:13px}
.bom-dialog::backdrop{background:#17334270}.bom-heading{display:flex;justify-content:space-between;align-items:center;gap:8px;font-size:17px}.bom-heading button,.bom-actions button{min-height:44px;background:#145f7e;color:#fff;border:1px solid #145f7e;border-radius:7px;padding:8px 12px}
#bomNotice,#bomMissing{font-size:12px;line-height:1.5;color:#607582;margin:10px 0}#bomSummary{font-weight:700;font-size:15px;margin:12px 0 6px}#bomBounds{font-size:12px;margin:0 0 12px}.bom-table-wrap{overflow:auto;max-height:45dvh;border:1px solid #d7e2e7;border-radius:7px}.bom-table-wrap table{width:100%;border-collapse:collapse;text-align:left}.bom-table-wrap th,.bom-table-wrap td{padding:9px 7px;border-bottom:1px solid #e3eaed;overflow-wrap:anywhere}.bom-table-wrap th{background:#eff5f7;position:sticky;top:0;font-size:12px}.bom-actions{display:flex;gap:7px;flex-wrap:wrap;margin-top:12px}.bom-actions button{flex:1;min-width:115px;font-size:12px}.bom-actions button:disabled{opacity:.5}@media(max-width:500px){.bom-dialog{padding:11px}.bom-table-wrap th,.bom-table-wrap td{padding:7px 4px;font-size:11px}}

/* Onboarding occupies its own row, never covers the camera, catalog or placement panel. */
#guideBar{display:flex;flex:0 0 auto;align-items:center;gap:8px;padding:7px 10px;background:#edf5f7;border-bottom:1px solid #c8dce3;color:#264c60;min-height:51px;z-index:9}
#guideBar .guide-copy{flex:1;min-width:0}#guideBar .guide-progress{display:flex;align-items:center;gap:9px;font-size:12px;line-height:1.25}
#guideStep{font-weight:750}#guideCount{color:#5f7987;font-size:11px;white-space:nowrap}#guideInstruction{font-size:11px;line-height:1.4;margin-top:2px;overflow-wrap:anywhere}
#guideBar button{border:1px solid #b7d0db;background:#fff;color:#1d536f;min-height:36px;font-size:11px;padding:6px 8px;border-radius:7px}#guideBar #guideAction{background:#17648c;color:white;border-color:#17648c}#guideBar #guideAction:disabled{background:#dce8ed;color:#66818f;border-color:#cbdde5;opacity:1}
#guideBar[data-step="6"]{background:#e7f3e9;border-color:#b9d7bf;color:#296341}
.booting #guideStart,.boot-failed #guideStart{display:none!important}
@media(max-width:450px){#guideBar{padding:5px 7px;gap:5px}#guideBar button{min-height:34px;padding:5px 6px}#guideInstruction{font-size:10px}}
@media(max-height:500px) and (orientation:landscape){#guideBar{min-height:38px;padding:4px 8px}#guideBar .guide-copy{display:flex;align-items:center;gap:10px}#guideInstruction{margin:0}#guideBar button{min-height:29px;padding:4px 8px}}
#moreMenu{max-height:calc(100dvh - 65px);overflow:auto}

.share-dialog{box-sizing:border-box;width:min(530px,calc(100vw - 24px));max-height:calc(100dvh - 24px);overflow:auto;margin:auto;padding:16px;border-radius:13px;border:1px solid #cbd9df;color:#244657;background:white;font-size:13px}.share-dialog::backdrop{background:#17334270}
#sharePolicy,#shareStorageNote,#shareExpiry{font-size:12px;line-height:1.5;color:#617985;margin:10px 0}#shareStatus{color:#20556c;font-weight:650;min-height:20px;margin:5px 0 9px}
.share-dialog button{min-height:42px;padding:8px 12px;background:#17648c;color:white;border-color:#17648c;border-radius:7px;font-size:12px}.share-dialog #shareRevoke{background:#fff;color:#a3483d;border-color:#dfb8b0}
#shareCreate{width:100%;margin-bottom:12px}#shareResult label,#shareHistoryLabel{display:block;font-size:12px;font-weight:650;margin:7px 0}
#shareLink,#shareHistory{width:100%;border:1px solid #d1e0e7;background:#f3f7f8;color:#244657;padding:10px;border-radius:7px;min-height:40px;font-size:12px}
.share-actions{display:flex;gap:7px;margin-top:8px;flex-wrap:wrap}.share-actions button{flex:1}
#sharedBanner{display:flex;flex:0 0 auto;align-items:center;justify-content:space-between;gap:8px;background:#e9f2f6;border-bottom:1px solid #c8dce3;color:#315a70;padding:6px 10px;font-size:12px;z-index:9}
#sharedBanner button{min-height:34px;border-color:#bfd6e0;background:#fff;color:#245b76;font-size:11px;padding:6px 9px;border-radius:6px}
@media(max-height:500px){#sharedBanner{padding:3px 8px}#sharedBanner button{min-height:29px}}

.project-dialog{box-sizing:border-box;width:min(650px,calc(100vw - 20px));max-height:calc(100dvh - 20px);overflow:auto;margin:auto;padding:14px;border-radius:12px;border:1px solid #cbd9df;color:#244657;background:white;font-size:13px}.project-dialog::backdrop{background:#17334270}
#projectCurrent{font-weight:650;margin:9px 0 4px;overflow-wrap:anywhere}#projectStatus,#projectCloudState{color:#315c70;font-size:12px;line-height:1.45;overflow-wrap:anywhere;margin:4px 0 8px}#projectStatus:empty{display:none}.project-dialog label{display:block;font-size:12px;font-weight:650;margin:7px 0}
.project-dialog button{min-height:40px;padding:7px 10px;background:#17648c;color:white;border-color:#17648c;border-radius:7px;font-size:12px;white-space:normal}.project-dialog button.project-secondary,#projectDeleteCloud{color:#9d483f;background:white;border-color:#dfb8b0}
.project-dialog input,.project-dialog select{width:100%;border:1px solid #cadde5;background:#f6f9fa;color:#254858;padding:9px;border-radius:6px;min-height:38px;font-size:13px;min-width:0}
.project-actions{display:flex;gap:6px;flex-wrap:wrap;margin:8px 0}.project-actions button{flex:1 1 115px}.project-section{border-top:1px solid #dce8ec;padding:10px 0 0;margin-top:10px}.project-section>strong{font-size:14px}
.project-row{display:flex;align-items:center;gap:6px;border-bottom:1px solid #e3eaed;padding:9px 0}.project-row>div{flex:1;min-width:0}.project-row strong{font-size:13px;display:block;overflow-wrap:anywhere}.project-row small{display:block;color:#6b818d;font-size:11px;line-height:1.4;margin-top:4px}.project-row button{min-height:36px;padding:5px 7px;font-size:11px}
.project-inline,#projectCodePanel{display:flex;align-items:center;gap:6px;margin:7px 0}.project-inline>input,.project-inline>select,#projectCodePanel input{flex:1;min-width:0;width:auto}.project-inline button,#projectCodePanel button{flex:none}.project-dialog p{font-size:12px;line-height:1.5;color:#617985;margin:8px 0}.booting #projectWelcome,.boot-failed #projectWelcome{display:none!important}

#projectTabs{display:flex;gap:4px;padding:4px;background:#eff5f7;border-radius:8px;margin:9px 0}
#projectTabs button{flex:1;min-height:39px;border-color:transparent;background:transparent;color:#426173;font-weight:650}
#projectTabs button[aria-selected="true"]{background:#fff;color:#145f7e;border-color:#d2e1e6;box-shadow:0 1px 3px #17334214}
#projectCloud{border-top:0;margin-top:5px;padding-top:3px}

.sound-dialog{box-sizing:border-box;width:min(490px,calc(100vw - 24px));max-height:calc(100dvh - 24px);margin:auto;overflow:auto;padding:14px;background:#fff;color:#244657;border:1px solid #cbd9df;border-radius:12px}.sound-dialog::backdrop{background:#17334270}
.sound-dialog p,.sound-dialog>small{font-size:12px;line-height:1.5;color:#617985}.sound-dialog button{min-height:42px;background:#17648c;color:#fff;border-color:#17648c;border-radius:7px;padding:7px 11px;font-size:12px}
.sound-actions{display:flex;gap:10px;align-items:center;margin:10px 0}.sound-actions output{font-size:12px;color:#315c70;flex:1}.sound-volume{display:flex;align-items:center;gap:8px;margin:16px 0;font-size:13px}.sound-volume input{flex:1;min-width:0;accent-color:#17648c}.sound-volume output{min-width:40px;text-align:right}
#soundSources{max-height:34dvh;overflow:auto;margin-bottom:10px}.sound-row{display:flex;gap:8px;justify-content:space-between;align-items:center;border-top:1px solid #e4eaee;padding:8px 0;font-size:12px}.sound-row span{min-width:0;overflow-wrap:anywhere}.sound-row small{flex-shrink:0;color:#637e8a;font-size:11px}
#motionStatus #soundQuick{min-width:46px;padding:5px 7px;font-size:11px;color:#405d6b;background:#fff;border-color:#d1e0e6}#motionStatus #soundQuick[aria-pressed="true"]{background:#dfefe7;border-color:#bdd6c7;color:#28644a}

.steam-quality{display:flex;align-items:center;gap:9px;font-size:13px;margin:12px 0}.steam-quality select{flex:1;min-height:40px;background:#f3f7f9;color:#244657;border-color:#cbdde5;padding:8px;border-radius:7px}#steamSources{max-height:35dvh;overflow:auto;margin-bottom:10px}

.process-dialog{box-sizing:border-box;width:min(560px,calc(100vw - 20px));max-height:calc(100dvh - 20px);margin:auto;overflow:auto;padding:14px;background:#fff;color:#244657;border:1px solid #cbd9df;border-radius:12px}.process-dialog::backdrop{background:#17334270}.process-dialog p,.process-stage small{font-size:12px;line-height:1.45;color:#607b87}.process-feed{display:flex;gap:8px;align-items:center;font-size:13px;margin:10px 0}.process-feed input{flex:1;min-width:0}.process-dialog input{width:100%;min-height:38px;border:1px solid #cbdde5;border-radius:7px;background:#f4f7f9;color:#244657;padding:8px;font-size:13px}.process-dialog input:disabled{color:#8496a0;background:#eef1f3}.process-dialog button{min-height:41px;padding:8px 10px;background:#17648c;color:#fff;border-color:#17648c;border-radius:7px;font-size:12px}.process-dialog button:disabled{opacity:.45}#processStatus{font-size:12px;color:#245b70;line-height:1.4;margin:8px 0}#processStages{max-height:42dvh;overflow:auto;overscroll-behavior:contain}.process-stage{border:1px solid #dce7eb;border-radius:8px;margin:6px 0;padding:9px}.process-stage strong{font-size:13px}.process-flow{font-size:13px;color:#17648c;font-weight:650;margin:5px 0}.process-params{display:grid;grid-template-columns:1fr 1fr;gap:6px;margin:6px 0}.process-params label{font-size:11px;color:#56717f}.process-actions{display:flex;flex-wrap:wrap;gap:6px}.process-actions button{flex:1 1 120px}

#renderCancel{color:#8b3341;background:#fff5f5;border-color:#e4bdc4;min-height:44px}#renderCancel[hidden]{display:none!important}
@media(max-width:680px){.render-controls #renderCancel{flex:1 1 100%}}

.factory-dialog{box-sizing:border-box;width:min(580px,calc(100vw - 20px));max-height:calc(100dvh - 20px);margin:auto;overflow:auto;padding:14px;background:#fff;color:#244657;border:1px solid #cbd9df;border-radius:12px}.factory-dialog::backdrop{background:#17334270}.factory-dialog p,#factoryPartInfo{font-size:12px;line-height:1.5;color:#617985}.factory-dialog button{min-height:42px;padding:8px 10px;background:#17648c;color:white;border:1px solid #17648c;border-radius:7px;font-size:12px}.factory-dialog button:disabled{opacity:.45}.factory-actions{display:flex;flex-wrap:wrap;gap:6px;margin:9px 0}.factory-actions button{flex:1 1 115px}#factoryRemove{background:#fff;color:#8c4650;border-color:#dfb8b0}#factoryStatus{font-size:12px;color:#245b70;line-height:1.45;overflow-wrap:anywhere}.factory-part-label,.factory-check{display:flex;align-items:center;gap:8px;margin:10px 0;font-size:13px}.factory-part-label select{flex:1;min-width:0}.factory-dialog select,.factory-dialog input[type=number]{width:100%;box-sizing:border-box;min-height:38px;border:1px solid #cbdde5;border-radius:7px;background:#f4f7f9;color:#244657;padding:7px;font-size:13px}#factoryFields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}#factoryFields label{font-size:11px;color:#56717f}#factoryFields label input{display:block;margin-top:3px}.factory-check input{accent-color:#17648c}

body.lhmc-walking .headright,body.lhmc-walking #guideBar,body.lhmc-walking #sharedBanner,body.lhmc-walking #stage .toolbar,body.lhmc-walking #viewControls,body.lhmc-walking #labels,body.lhmc-walking #stats,body.lhmc-walking #hint,body.lhmc-walking #motionStatus,body.lhmc-walking #stepbar,body.lhmc-walking #quickTools,body.lhmc-walking #rotateGrip,body.lhmc-walking #rotationReadout,body.lhmc-walking #linkPanel,body.lhmc-walking #measurePanel,body.lhmc-walking #groupPanel,body.lhmc-walking #emptyHelp{display:none!important}
body.lhmc-walking #stage{--dock:0px}body.lhmc-walking #view{bottom:0!important;height:100%!important}
#walkControls{position:absolute;inset:0;z-index:16;pointer-events:none;user-select:none;color:#fff;touch-action:none}#walkControls[hidden]{display:none!important}
#walkControls button,#walkControls select{pointer-events:auto;touch-action:none;min-height:42px;border:1px solid #b8d7e4;background:#f4f9fb;color:#254b5e;border-radius:8px;font-size:13px;font-weight:650;padding:8px;box-sizing:border-box}
.walk-top{position:absolute;top:10px;left:10px;right:10px;display:flex;align-items:center;gap:7px;padding:9px;border:1px solid #9cb6c3;border-radius:11px;background:#1c3545e8;box-shadow:0 3px 16px #1233}
.walk-top>div{flex:1;min-width:0}.walk-top strong{display:block;font-size:13px;line-height:1.25}.walk-top small{display:block;font-size:11px;line-height:1.35;color:#c4e3f2;margin-top:4px;white-space:normal}.walk-top select{max-width:46%;min-width:0;padding:6px;font-size:11px}.walk-top #walkExit{flex-shrink:0;padding:6px 11px}
.walk-crosshair{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);font-size:20px;line-height:1;font-weight:500;text-shadow:0 0 4px #20323c;opacity:.85}
.walk-bottom{position:absolute;left:12px;right:12px;bottom:max(12px,env(safe-area-inset-bottom));display:flex;justify-content:space-between;align-items:flex-end;gap:8px}.walk-dpad{display:grid;grid-template-columns:repeat(3,50px);grid-template-rows:50px 50px;gap:5px;pointer-events:none}
#walkControls .walk-dpad button{padding:0;width:50px;height:50px;font-size:23px;background:#e9f5fbea;box-shadow:0 1px 5px #1234}#walkForward{grid-column:2;grid-row:1}#walkLeft{grid-column:1;grid-row:2}#walkBack{grid-column:2;grid-row:2}#walkRight{grid-column:3;grid-row:2}
#walkControls .walk-dpad button.pressed,#walkControls #walkSpeed[aria-pressed=true]{color:white;background:#17648c;border-color:#17648c}
.walk-help{display:flex;flex-direction:column;gap:6px;align-items:flex-end;max-width:50%}.walk-help small{color:white;background:#1c3545ce;padding:6px 8px;border-radius:6px;font-size:11px;line-height:1.35;text-align:right}.walk-help button{min-width:80px}
@media(max-height:470px) and (orientation:landscape){.walk-top{top:5px;left:7px;right:7px;padding:5px}.walk-top strong{font-size:12px}.walk-top small{font-size:10px}.walk-top select,.walk-top #walkExit{min-height:36px}.walk-bottom{bottom:7px;left:7px;right:7px}.walk-dpad{grid-template-columns:repeat(3,43px);grid-template-rows:43px 43px}.walk-help{flex-direction:row;align-items:flex-end;max-width:55%}#walkControls .walk-dpad button{width:43px;height:43px;min-height:43px}.walk-help button{min-height:37px}}

body.lhmc-walking #library,body.lhmc-walking #inspector{display:none!important}body.lhmc-walking #stage{flex:1 1 100%;width:100%;min-width:0}body.lhmc-walking .walk-top select{flex:0 1 220px;max-width:46%}

body.lhmc-walking main{display:block!important;grid-template-columns:minmax(0,1fr)!important;grid-template-rows:minmax(0,1fr)!important}body.lhmc-walking #stage{height:100%!important;width:100%!important;grid-column:1/-1!important}

.band-toggle{display:flex;align-items:center;gap:7px;padding:7px 0;font-size:12px;color:#35556a}.band-toggle input{width:18px;height:18px;accent-color:#155a85}
#bandPicker:not([hidden]){display:grid;grid-template-columns:1fr 1fr;gap:6px;padding-bottom:6px}#bandPicker label{font-size:11px;display:grid;gap:3px;min-width:0}#bandPicker select{width:100%;min-width:0;padding:7px 4px;border:1px solid #d4e0e6;border-radius:6px;background:white;color:#35556a}#bandPicker button,#bandPicker small{grid-column:1/-1}#bandPicker small{font-size:10px;color:#627586;line-height:1.4}
@media(max-height:550px){#linkPanel:has(#bandPicker:not([hidden])){max-height:calc(100% - var(--dock) - 16px);overflow:auto}#linkPanel:has(#bandPicker:not([hidden])) #linkChoices{max-height:68px}}

.floor-dialog{box-sizing:border-box;width:min(720px,calc(100vw - 16px));max-height:calc(100dvh - 18px);margin:auto;padding:14px;overflow:auto;background:#fff;color:#244657;border:1px solid #cbd9df;border-radius:12px}.floor-dialog::backdrop{background:#17334280}.floor-head{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:9px}.floor-head strong{font-size:16px}.floor-dialog button{min-height:42px;border:1px solid #b9d0dc;border-radius:7px;padding:7px 10px;color:#245a75;background:#eef5f8;font-size:12px;font-weight:650}.floor-dialog button:disabled{opacity:.45}.floor-selects{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.25fr);gap:8px;margin-bottom:9px}.floor-selects label,#floorPosition label{font-size:11px;display:grid;gap:4px;min-width:0}.floor-dialog input,.floor-dialog select{box-sizing:border-box;min-width:0;width:100%;min-height:40px;padding:7px;border:1px solid #cbdde5;background:#f4f7f9;color:#244657;border-radius:7px;font-size:13px}
.floor-layout{border:1px solid #cbd9df;border-radius:8px;overflow:hidden;background:#edf3f6}#floorPlanSvg{width:100%;height:auto;display:block;cursor:crosshair;touch-action:manipulation}.floor-legend{display:flex;flex-wrap:wrap;gap:6px 12px;padding:6px 10px;font-size:11px;color:#486471;background:#fff}.floor-legend span{display:flex;gap:5px;align-items:center}.floor-key{display:inline-block;width:13px;height:10px;border:1px solid #9caeb6}.floor-key.slab{background:#d6e4e7}.floor-key.section{background:#637985}.floor-key.machine{background:#91b3a5}.floor-key.preview{border:1px dashed #17648c;background:#d0e9f6}#floorReadout,#floorResult{font-size:12px;line-height:1.45;margin:9px 0;color:#426474;overflow-wrap:anywhere}#floorResult{padding:8px;border:1px solid #d5e1e6;border-radius:7px}#floorResult.floor-warning{background:#fff1ed;border-color:#e5b7a8;color:#934d3e}#floorResult.floor-pass{background:#edf6f2;border-color:#b9d8c7;color:#346b56}#floorPosition:not([hidden]){display:grid;grid-template-columns:1fr 1fr auto;align-items:end;gap:7px}.floor-actions{display:flex;gap:7px}.floor-actions button{flex:1}#floorApply{background:#17648c;color:#fff;border-color:#17648c}#floorNote{font-size:11px;color:#637986;line-height:1.5;margin:9px 0 0}
@media (max-height:500px) and (orientation:landscape){.floor-dialog{width:min(850px,calc(100vw - 12px));padding:9px}.floor-layout{max-width:440px;margin:auto}#floorPlanSvg{max-height:220px}.floor-head strong{font-size:14px}}

.spec-dialog{box-sizing:border-box;width:min(760px,calc(100vw - 16px));max-height:calc(100dvh - 18px);margin:auto;overflow:auto;padding:14px;background:white;color:#244657;border:1px solid #cbd9df;border-radius:12px}.spec-dialog::backdrop{background:#17334280}.spec-dialog button,.asset-specs-button,.spec-launch{min-height:40px;padding:8px 10px;border:1px solid #b9d0dc;border-radius:7px;background:#eef5f8;color:#245a75;font-size:12px}.asset-specs-button,.process-dialog .spec-launch{width:100%;color:#245a75;background:#eef5f8;border-color:#b9d0dc}.spec-dialog p{font-size:12px;line-height:1.5;color:#56717f;margin:8px 0}.spec-family-label,.spec-model{display:grid;gap:5px;font-size:12px;color:#486471;margin:9px 0}.spec-dialog select{box-sizing:border-box;min-width:0;width:100%;min-height:40px;padding:7px;border:1px solid #cbdde5;background:#f4f7f9;color:#244657;border-radius:7px;font-size:13px}#specConflict{padding:9px;background:#fff5e8;border:1px solid #e6d1b4;border-radius:7px;color:#805e33}#specSources{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,285px),1fr));gap:9px}.spec-source{min-width:0;border:1px solid #d2dfe5;border-radius:9px;padding:10px;display:flex;flex-direction:column;gap:5px}.spec-source strong{font-size:13px;color:#254657}.spec-fields{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(0,1fr);gap:0;margin:0}.spec-fields dt,.spec-fields dd{margin:0;padding:9px 3px;border-bottom:1px solid #e5edf0;font-size:12px;line-height:1.4;overflow-wrap:anywhere}.spec-fields dt{color:#637986}.spec-fields dd{color:#254657;font-weight:650;text-align:right}.spec-origin{color:#7b8e96;font-size:10px;margin-top:6px}.spec-source-link{font-size:12px;color:#17648c;min-height:28px;display:inline-flex;align-items:center}.spec-source-note{background:#f4f7f8;padding:6px;border-radius:6px}

/* Short landscape screens: reserve a scrollable equipment list, keep filters in single horizontal rows. */
@media(min-width:681px) and (max-width:1100px) and (max-height:550px) {
 #library{width:min(320px,46%);min-height:0;overflow:hidden}
 #library .asidehead{flex:0 0 auto;padding:6px 9px}
 #library .filters{flex:0 0 auto;display:grid;gap:5px;padding:5px 8px;min-width:0;grid-template-columns:minmax(0,1fr)}
 #library #search{min-height:34px;padding:6px 8px}
 #library #cats,#library #reviewTabs{display:flex;grid-template-columns:none;overflow-x:auto;overflow-y:hidden;min-width:0;gap:4px;flex-wrap:nowrap;scrollbar-width:thin;padding-bottom:3px}
 #library #cats button,#library #reviewTabs button{flex:0 0 auto;padding:6px 8px;min-height:34px;white-space:nowrap}
 #library #catalogNote{flex:0 0 auto;font-size:10px;padding:1px 8px 4px;line-height:1.25}
 #library #catalog{flex:1 1 0;min-height:0;overflow:auto;padding-bottom:8px}
}

.steam-source-row{align-items:flex-start}.steam-source-row>span{flex:1;min-width:0}.steam-source-row>small{flex:0 1 45%;max-width:45%;white-space:normal;overflow-wrap:anywhere;text-align:right;line-height:1.4}.steam-source-row[data-steam-state=pending]>small{color:#8a6b40}

#catalog .item[data-evidence] .assetMeta{color:#246b69;font-weight:600}
@media(max-width:680px){#reviewTabs{display:flex;flex-wrap:nowrap;overflow-x:auto;overflow-y:hidden;scrollbar-width:thin;gap:4px;padding-bottom:4px}#reviewTabs button{flex:0 0 auto;padding:5px 9px;min-height:34px;white-space:nowrap}}

#catalog .item,#catalog .item button,#reviewTabs button{-webkit-tap-highlight-color:transparent;user-select:none}
#catalog .item button:focus-visible,#reviewTabs button:focus-visible{outline:2px solid #17648c;outline-offset:2px}
#assetInfo .asset-info-head{position:sticky;top:0;z-index:1;background:#fff;padding:3px 0 9px}

#factoryAuditResults{margin:8px 0;padding:9px;border:1px solid #cbd9df;background:#f4f8fa;border-radius:7px;font-size:12px;color:#355a6c;max-height:200px;overflow:auto}
.factory-audit-row{padding:7px 0;border-bottom:1px solid #e3ebee;color:#925f42;line-height:1.4;overflow-wrap:anywhere}

/* The desktop placement panel owns the upper right. Keep camera controls independently reachable. */
@media(min-width:681px) and (min-height:551px){
 #stage.building #viewControls{left:10px;right:auto;top:58px;bottom:auto}
}

.material-dialog{box-sizing:border-box;width:min(720px,calc(100vw - 16px));max-height:calc(100dvh - 18px);margin:auto;overflow:auto;padding:14px;background:#fff;color:#244657;border:1px solid #cbd9df;border-radius:12px}.material-dialog::backdrop{background:#17334280}.material-dialog p{font-size:12px;line-height:1.48;color:#526f7b;margin:8px 0}.material-dialog h3{font-size:13px;margin:12px 0 6px}.material-dialog button{min-height:40px;padding:7px 10px;border:1px solid #b9d0dc;border-radius:7px;background:#eef5f8;color:#245a75;font-size:12px;font-weight:650}.material-dialog button:disabled{opacity:.46}.material-dialog select,.material-dialog input[type=number]{box-sizing:border-box;min-width:0;width:100%;min-height:40px;padding:6px 8px;border:1px solid #cbdde5;border-radius:7px;background:#f4f7f9;color:#244657;font-size:14px}.material-input,.material-alloc,.material-result-card{border:1px solid #d8e3e7;border-radius:8px;padding:9px;margin:6px 0}.material-input label,.material-alloc strong,.material-result-card strong{font-size:12px;font-weight:650}.material-density{display:grid;grid-template-columns:minmax(0,1fr) 88px;gap:8px;margin-top:5px}.material-heading{display:flex;align-items:center;justify-content:space-between;gap:8px}.material-share{display:grid;grid-template-columns:minmax(0,1fr) 85px 14px;align-items:center;gap:6px;margin:7px 0 0;font-size:12px}.material-action{display:flex;flex-wrap:wrap;gap:7px;margin:10px 0}.material-action button{flex:1 1 125px}#materialCalculate{background:#17648c;color:white;border-color:#17648c}#materialStatus{padding:9px;border:1px solid #cbd9df;background:#f4f8fa;font-size:12px;border-radius:7px;line-height:1.5;overflow-wrap:anywhere}#materialStatus[data-kind=error]{background:#fff0eb;color:#954938;border-color:#e1b8aa}#materialStatus[data-kind=pending]{background:#fff6e7;color:#8b6738;border-color:#e6d5b8}#materialStatus[data-kind=ok]{background:#edf5f2;color:#376852;border-color:#bfdbce}#materialSummary{display:grid;grid-template-columns:1fr 1fr;gap:7px;margin:10px 0}.material-summary-cell{min-width:0;padding:9px;border:1px solid #d8e3e7;border-radius:7px;background:#f4f8fa}.material-summary-cell span,.material-summary-cell strong{display:block;overflow-wrap:anywhere}.material-summary-cell span{font-size:11px;color:#63808b}.material-summary-cell strong{margin-top:5px;font-size:17px;color:#274d5c;font-variant-numeric:tabular-nums}.material-result-card dl{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.2fr);gap:5px;margin:7px 0;font-size:12px}.material-result-card dt{color:#6b8088}.material-result-card dd{text-align:right;margin:0;overflow-wrap:anywhere;font-variant-numeric:tabular-nums}.material-result-card small{color:#6b8088;line-height:1.4;font-size:11px}


.material-dialog>.floor-head{position:sticky;top:-14px;z-index:2;background:#fff;margin-top:-2px;padding:5px 0 9px;border-bottom:1px solid #e6edf0}

/* Multi-floor workbench: one visible floor choice for placement and walk entry. */
#floorBar{position:absolute;top:58px;left:10px;right:10px;z-index:3;display:flex;align-items:center;gap:6px;max-width:620px;pointer-events:none}
#floorBar button,#floorBar select{pointer-events:auto;background:#f8fbfc;color:#25495f;border:1px solid #b8cdd8;box-shadow:0 2px 6px #173b5012;min-height:38px;font-weight:650;border-radius:9px;padding:7px 10px}
#floorBar select{width:155px;min-width:0;flex:1}#floorBar button:hover{background:#dcecf4}
body.booting #floorBar,body.boot-failed #floorBar,body.lhmc-walking #floorBar{display:none}
#assetSourceReview{margin:12px 0;padding:10px;border:1px solid #c3d3dd;border-radius:9px;background:#f8fafb;color:#304e60}
#assetSourceReview img{display:block;width:100%;height:auto;margin-top:9px;border-radius:5px}#assetSourceReview p{font-size:12px;line-height:1.65;margin:8px 0 0}
.steam-machine-switch{display:flex;gap:8px;align-items:center;font-size:12px}.steam-machine-switch input{width:19px;height:19px;accent-color:#17648c}
@media(max-width:680px){#floorBar{top:53px;left:7px;right:7px;gap:4px}#floorBar button,#floorBar select{font-size:11px;min-height:36px;padding:6px}#floorBar select{width:120px}#stage .toolbar{gap:4px}#stage .toolbar button{padding:7px}#assetSourceReview{padding:7px}}
@media(max-height:440px){#floorBar{top:49px;max-width:520px}#floorBar button,#floorBar select{min-height:31px;padding:4px 7px}}

#assetSourceReview button{margin-top:8px;background:#e6eff5;color:#1e5576;border-color:#c0d5e1}
#sourceReviewDialog{width:min(1450px,98vw);max-width:98vw;max-height:95dvh;background:#f5f8fa;color:#24445a;border:1px solid #b9cedc;border-radius:14px;padding:12px}
#sourceReviewDialog::backdrop{background:#172f42b3}.source-review-heading{display:flex;gap:8px;align-items:center;position:sticky;top:0;background:#f5f8fa;padding-bottom:10px}.source-review-heading strong{flex:1}.source-review-heading button{font-size:12px;background:#e6eff5;color:#1e5576;border-color:#c0d5e1;padding:8px}
.source-review-scroll{overflow:auto;max-height:calc(93dvh - 75px);overscroll-behavior:contain}.source-review-scroll img{display:block;max-width:100%;height:auto;margin:auto}.original-pixels .source-review-scroll img{max-width:none;width:auto}

#steamSources .steam-source-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:7px 12px;align-items:start}
#steamSources .steam-source-row>span{grid-column:1;grid-row:1;overflow-wrap:anywhere;line-height:1.6;font-size:12px}
#steamSources .steam-source-row>small{grid-column:1 / -1;grid-row:2;line-height:1.6}
#steamSources .steam-machine-switch{grid-column:2;grid-row:1;white-space:nowrap;align-self:start;padding-top:2px}

/* Per-machine controls share the existing device label position. */
.device-tag{position:absolute;display:flex;align-items:stretch;gap:3px;transform:translate(-50%,-100%);pointer-events:none;max-width:210px}
.device-tag .device-label{position:static;transform:none;min-height:36px;margin:0;flex:1;min-width:0}
.device-tag .machine-run{pointer-events:auto;touch-action:manipulation;flex:0 0 36px;width:36px;min-height:36px;padding:0;border:1px solid #a5c5b2;border-radius:7px;background:#f4faf6;color:#267044;font-size:15px;line-height:1;box-shadow:0 1px 5px #23435516}
.device-tag .machine-run.running{background:#337b4e;border-color:#337b4e;color:#fff}
.device-tag .machine-run:disabled{opacity:1;font-size:11px;background:#f0f3f4;border-color:#d8e0e5;color:#a5afb4;box-shadow:none}
.device-tag .machine-run:focus-visible{outline:3px solid #1f6b9b;outline-offset:2px}
#stage.building .machine-run{pointer-events:none!important}
@media(pointer:coarse),(max-width:680px){.device-tag .device-label{min-height:44px;max-width:110px}.device-tag .machine-run{flex-basis:44px;width:44px;min-height:44px}}

/* Dropdowns stay above the equipment drawer, including mobile. */
header{position:relative;z-index:30}

.model-record-dialog{width:min(740px,calc(100vw - 28px));max-height:calc(100dvh - 34px);overflow:auto;box-sizing:border-box;border:1px solid #b9cbd1;border-radius:16px;padding:16px;color:#213b46;background:#fff}
.model-record-dialog .bom-heading{position:sticky;top:-16px;background:#fff;padding:8px 0;z-index:1;display:flex;justify-content:space-between;align-items:center;gap:12px}
.model-record-dialog strong{overflow-wrap:anywhere}.model-record-dialog p,.model-record-dialog li{line-height:1.5;overflow-wrap:anywhere}
.model-record-dialog details{border-top:1px solid #e0e8eb;padding:12px 0}.model-record-dialog summary{cursor:pointer;font-weight:650}
.model-record-dialog ul{padding-left:18px}.model-record-dialog li{margin:8px 0;font-size:13px}.model-record-dialog input{width:100%;box-sizing:border-box;margin-top:12px}
.model-record-dialog .material-swatch{display:inline-block;width:15px;height:15px;vertical-align:middle;border:1px solid #9aa8ae;border-radius:3px;margin-right:7px}
.model-record-dialog button{min-height:42px;flex-shrink:0}#modelRecordExport{width:100%;margin-top:8px}

/* V172: original first-person game HUD; two independent thumb zones. */
body.lhmc-walking>header,body.lhmc-walking>footer{display:none!important}
body.lhmc-walking main{flex:1;position:relative}
#walkControls .game-head{position:absolute;left:max(12px,env(safe-area-inset-left));right:max(12px,env(safe-area-inset-right));top:max(12px,env(safe-area-inset-top));display:flex;align-items:center;gap:8px;padding:8px;background:#15303bdc;border:1px solid #b3d6cf80;border-radius:15px;box-shadow:0 3px 18px #13273035}
.game-identity{display:flex;align-items:center;gap:8px;min-width:0;flex:1;padding:0 3px}
.game-dot{width:8px;height:8px;border-radius:99px;background:#9fca9c;box-shadow:0 0 0 4px #9fca9c30;flex-shrink:0}
.game-identity strong{display:block;font-size:16px;line-height:1.4;letter-spacing:.2px}
.game-identity small{display:block;white-space:normal;line-height:1.35;font-size:11px;color:#d2e6e4;margin-top:1px}
#walkControls button,#walkControls select{min-height:44px}
#walkControls #walkRun{color:#17362c;border:1px solid #9cc9a0;background:#a5ca9d;min-width:72px}
#walkControls #walkRun[aria-pressed=true]{color:#fff;background:#37684a;border-color:#a7d59c}
#walkControls #walkExit{color:#f4f6f2;background:#ffffff20;border-color:#ffffff50}
.game-overview{position:absolute;top:max(92px,calc(env(safe-area-inset-top) + 82px));left:max(12px,env(safe-area-inset-left));display:flex;align-items:flex-start;gap:8px;right:max(12px,env(safe-area-inset-right))}
.game-map{background:#183440e8;border:1px solid #b8d1cf7d;border-radius:12px;padding:8px;width:150px;flex-shrink:0;box-shadow:0 3px 14px #132c3430}
.game-map-label{display:flex;justify-content:space-between;align-items:center;font-size:11px;color:#dcebea;margin-bottom:3px}.map-arrow-key{font-size:9px;color:#fff}
#walkMapCanvas{display:block;width:100%;height:68px;border-radius:5px}
#walkWhere{display:block;min-height:14px;max-width:100%;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;margin-top:4px;color:#d7e9e0;font-size:10px}
.game-guide{display:grid;grid-template-columns:minmax(0,1fr);gap:4px;width:146px;max-width:calc(100% - 158px);background:#1d3540d9;border:1px solid #adcfc780;padding:7px;border-radius:12px}
.game-guide label{font-size:11px;padding:0 3px;color:#e7f1ea}
#walkControls #walkDestination{background:#eaf2ef;color:#244539;padding:6px;font-size:12px;width:100%}
#walkControls #walkGo,#walkControls #walkCancelGuide{background:#819e7d;color:#102f28;border-color:#b1c8a6;font-size:12px;width:100%;min-height:44px}
#walkControls #walkCancelGuide{background:#e4c990;color:#433920}
.game-floor{position:absolute;right:max(12px,env(safe-area-inset-right));top:max(247px,calc(env(safe-area-inset-top) + 237px));display:flex;gap:5px;background:#183440dc;padding:5px;border:1px solid #c0d6d080;border-radius:10px;max-width:95%}
#walkControls #walkLevel{max-width:154px}
#walkControls #walkStairs{padding:7px 9px}
#walkControls .walk-crosshair{display:grid;place-items:center;width:18px;height:18px;border:1px solid #fff9;border-radius:50%;box-shadow:0 0 4px #192f37a0}
.walk-crosshair i{width:3px;height:3px;background:white;border-radius:50%}
.game-bottom{position:absolute;bottom:max(17px,calc(env(safe-area-inset-bottom) + 12px));left:max(13px,env(safe-area-inset-left));right:max(13px,env(safe-area-inset-right));display:flex;align-items:flex-end;justify-content:space-between;gap:5px}
.stick-area{display:flex;flex-direction:column;align-items:center;gap:5px;flex-shrink:0}
.stick-area>b{font-size:13px;line-height:1.2;letter-spacing:.8px;text-shadow:0 1px 5px #123,0 0 2px #123;color:#fff}
#walkControls .game-small{padding:7px 13px;background:#15323ddc;border:1px solid #b3d5cb9c;color:#f1f8f2;min-height:44px;border-radius:22px;min-width:76px;box-shadow:0 2px 9px #0f28393d}
#walkControls .game-small[aria-pressed=true]{background:#557c5d}
.walk-stick{width:clamp(100px,31vw,132px);height:clamp(100px,31vw,132px);border-radius:50%;pointer-events:auto;touch-action:none;user-select:none;position:relative;display:grid;place-items:center;border:1.5px solid #e4f2edb0;background:radial-gradient(circle,#93a8aa33 0 44%,#19343c60 45% 100%);box-shadow:0 3px 14px #102a3866,inset 0 0 0 6px #18344030;outline:none}
.walk-stick.held{border-color:#e2f8c1;background:radial-gradient(circle,#afe5c745 0 44%,#183d4290 45% 100%)}
.stick-knob{width:49%;height:49%;border-radius:50%;background:linear-gradient(160deg,#e8f3e4e8,#8db9a6d9);border:1px solid #dcebe0;box-shadow:0 3px 10px #16323a80;display:grid;place-items:center;will-change:transform;pointer-events:none;position:absolute;left:25.5%;top:25.5%}.stick-knob>span{width:32%;height:32%;border:1px solid #597b70;border-radius:50%;background:#72988a60}
.stick-axis{position:absolute;font-size:13px;font-weight:700;color:#f3fcf3b0;line-height:15px;text-shadow:0 0 3px #15313a;pointer-events:none}.stick-axis.top{top:5px;left:50%;transform:translateX(-50%);font-size:9px}.stick-axis.bottom{bottom:5px;left:50%;transform:translateX(-50%);font-size:9px}.stick-axis.left{left:7px;top:50%;transform:translateY(-50%);font-size:21px}.stick-axis.right{right:7px;top:50%;transform:translateY(-50%);font-size:21px}
.game-instruction{display:flex;align-items:center;flex-direction:column;gap:5px;text-align:center;max-width:110px;margin-bottom:31px}
.game-instruction small{font-size:11px;line-height:1.5;text-shadow:0 1px 4px #123,0 0 2px #123;color:white}.game-instruction span{font-size:9px;line-height:1.35;color:#e8f3eb;background:#183540d6;border:1px solid #b6d4c45c;padding:4px 5px;border-radius:6px}
#quickTools #quickReplace{color:#165d85;font-weight:750;min-height:38px}
@media(orientation:landscape) and (max-height:550px){
 #walkControls .game-head{top:max(6px,env(safe-area-inset-top));padding:5px;left:max(11px,env(safe-area-inset-left));right:max(11px,env(safe-area-inset-right));max-width:540px}
 .game-overview{top:max(71px,calc(env(safe-area-inset-top) + 67px));left:max(11px,env(safe-area-inset-left));right:auto;gap:6px}
 .game-map{width:148px;padding:5px}#walkMapCanvas{height:49px}.game-guide{width:126px;max-width:none;padding:5px}
 .game-floor{top:max(7px,env(safe-area-inset-top));right:max(11px,env(safe-area-inset-right));max-width:34%}
 .game-bottom{bottom:max(7px,env(safe-area-inset-bottom));left:max(13px,env(safe-area-inset-left));right:max(13px,env(safe-area-inset-right))}
 .walk-stick{width:104px;height:104px}.stick-area{gap:3px}.game-instruction{max-width:180px;flex-direction:row;margin:0 0 5px}
 .game-instruction small{font-size:12px}#walkControls .game-small{min-height:44px}
}
@media(max-width:350px){.game-map{width:130px}.game-guide{max-width:calc(100% - 138px)}.game-identity strong{font-size:14px}.game-instruction small{font-size:10px}.walk-stick{width:98px;height:98px}}
@media(min-width:1000px) and (min-height:551px){#walkControls .game-head{max-width:640px}.game-map{width:185px}#walkMapCanvas{height:88px}.game-guide{width:170px}.game-bottom{left:26px;right:26px}.walk-stick{width:140px;height:140px}.game-instruction{max-width:180px}}

/* V173 original industrial simulation game HUD */
body.lhmc-walking{background:#243139}
body.lhmc-walking #walkControls{font-family:system-ui,-apple-system,"Microsoft YaHei",sans-serif;color:#eef3f0;--hud:rgba(25,39,45,.91);--line:rgba(197,217,211,.24);--accent:#a9c99a;--ink:#eff5ef;--dockH:62px}
#walkControls *{box-sizing:border-box}
#walkControls button,#walkControls select,#walkControls input{pointer-events:auto;touch-action:manipulation;border-radius:12px;min-height:44px;font-size:13px;font-weight:650;line-height:1.15}
#walkControls button{display:inline-flex;align-items:center;justify-content:center;gap:5px;transition:background .1s,transform .1s,opacity .1s;-webkit-tap-highlight-color:transparent}
#walkControls button:active:not(:disabled){transform:scale(.96);filter:brightness(1.12)}
#walkControls button:disabled{opacity:.38;cursor:default}
#walkControls svg{width:23px;height:23px;flex-shrink:0}
#walkControls [hidden]{display:none!important}
.sim-head{position:absolute;top:max(12px,env(safe-area-inset-top));left:max(12px,env(safe-area-inset-left));right:max(12px,env(safe-area-inset-right));display:flex;justify-content:space-between;align-items:center;gap:8px}
.sim-brand{display:flex;align-items:center;gap:9px;color:#ffffff;background:var(--hud);border:1px solid var(--line);padding:7px 10px 7px 7px;border-radius:14px;box-shadow:0 2px 14px #101c2833;min-width:0}
.sim-mark{display:grid;place-items:center;width:36px;height:36px;border-radius:9px;color:#223d35;font-size:15px;font-weight:850;background:linear-gradient(140deg,#d1e3c7,#8caf82);letter-spacing:-.7px}
.sim-brand strong{display:block;font-size:15px;font-weight:750;letter-spacing:.7px;line-height:1.25;white-space:nowrap}
.sim-brand small{display:block;margin-top:2px;color:#d3e0da;font-size:10px;line-height:1.25;white-space:nowrap}
.sim-head-tools{display:flex;gap:6px}
#walkControls .sim-icon-btn{height:48px;min-width:50px;background:var(--hud);color:#ebf3f0;border:1px solid var(--line);padding:5px 10px;flex-direction:column;gap:2px;box-shadow:0 2px 10px #0b20252b}
.sim-icon-btn span{font-size:10px;font-weight:600}
.sim-icon-btn svg{width:20px!important;height:20px!important}
.sim-status{position:absolute;top:max(76px,calc(env(safe-area-inset-top) + 67px));left:max(13px,env(safe-area-inset-left));display:flex;align-items:center;gap:6px;padding:7px 9px;font-size:11px;background:rgba(22,37,42,.76);border:1px solid #cbd9d12b;border-radius:20px;color:#e7f0eb;max-width:calc(100% - 26px);box-shadow:0 2px 6px #0b202530}
.sim-live-dot{width:7px;height:7px;border-radius:50%;background:#a9b6ba;flex-shrink:0}
.sim-status.running .sim-live-dot{background:#aadc92;box-shadow:0 0 0 3px #aadc9240}
.sim-status-sep{height:12px;width:1px;background:#a8c1bd55}
#gameRunState{white-space:nowrap;font-weight:750}#walkStatus{font-size:10px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.sim-map-drawer,.sim-build-drawer,.sim-machine-panel,.sim-draft-panel{pointer-events:auto;position:absolute;background:var(--hud);color:var(--ink);border:1px solid var(--line);border-radius:17px;padding:12px;box-shadow:0 8px 30px #0a1d2299;backdrop-filter:blur(9px);-webkit-backdrop-filter:blur(9px);z-index:7}
.sim-sheet-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:9px}.sim-sheet-head>div{min-width:0;flex:1}.sim-sheet-head b{display:block;font-size:16px;line-height:1.35;overflow-wrap:anywhere}.sim-sheet-head small{display:block;color:#a6c1b5;font-size:11px;margin-bottom:3px;line-height:1.3}
#walkControls .sim-close{min-width:44px;height:44px;padding:0;background:#ffffff12;color:#fff;border:1px solid #ffffff26;flex-shrink:0;font-size:23px;font-weight:400}
.sim-map-drawer{top:max(110px,calc(env(safe-area-inset-top) + 101px));left:max(12px,env(safe-area-inset-left));width:min(345px,calc(100% - 24px))}
#walkMapCanvas{height:100px;width:100%;border-radius:10px;display:block;background:#142a32}
.sim-caption{display:block;font-size:11px;margin:10px 0 6px;color:#cbdad4}
.sim-chips{display:flex;flex-wrap:wrap;gap:5px}
#walkControls .sim-chips button,#walkControls .sim-secondary,#walkControls .sim-options button{background:#ffffff0c;color:#edf4ee;border:1px solid #c1d2c633;font-weight:650;padding:8px 10px;min-height:42px}
#walkControls .sim-chips button[aria-pressed=true],#walkControls .sim-options button[aria-pressed=true]{background:#a6c99a;color:#243c30;border-color:#c7dfbe}
.sim-options{display:flex;gap:7px;margin-top:9px;padding-top:9px;border-top:1px solid #ffffff16}
#walkControls #walkCancelGuide{margin-top:8px;min-height:40px;color:#f3dba0}
.sim-floor{position:absolute;right:max(12px,env(safe-area-inset-right));top:max(118px,calc(env(safe-area-inset-top) + 109px));display:flex;gap:5px;align-items:center;padding:5px;border-radius:12px;background:var(--hud);border:1px solid var(--line)}
#walkControls #walkLevel,#walkControls #walkStairs{background:#e5eee8;color:#2b4b41;border:1px solid #a3b9ad;min-height:44px;padding:7px;font-size:12px;width:auto;max-width:160px}
.sim-aim{position:absolute;top:50%;left:50%;width:17px;height:17px;margin:-8px 0 0 -8px;display:grid;place-items:center;border:1px solid #f2fbdf9c;border-radius:100%;box-shadow:0 1px 4px #0e232bbb}
.sim-aim i{width:3px;height:3px;border-radius:99px;background:#fff}
.sim-aim.targeted{border-color:#bbeb9a;border-width:2px;box-shadow:0 0 5px #9dd274}
.sim-aim-label{position:absolute;top:calc(50% + 16px);left:50%;transform:translateX(-50%);max-width:72%;padding:7px 11px;border:1px solid #bad3ae63;border-radius:9px;background:#19322fdc;text-shadow:0 1px 2px #0007;font-size:12px;color:#f5f9ee;line-height:1.4;text-align:center;white-space:normal}
.sim-feedback{position:absolute;left:50%;top:max(122px,calc(env(safe-area-inset-top) + 113px));transform:translateX(-50%);background:#203b34eb;color:#fff;padding:10px 13px;max-width:90%;border:1px solid #c4dcc48c;border-radius:12px;font-size:13px;font-weight:650;line-height:1.45;text-align:center;z-index:11;box-shadow:0 5px 20px #10232355}
.sim-feedback.warning{background:#663d30f3;border-color:#fdc1a2}
.sim-tool-hint{position:absolute;left:50%;bottom:calc(var(--dockH) + env(safe-area-inset-bottom) + 22px);transform:translateX(-50%);background:#192d35a6;border:1px solid #dbe9e52b;color:#ebf1ed;padding:7px 11px;font-size:11px;border-radius:9px;text-align:center;white-space:nowrap;pointer-events:none;max-width:80%;overflow:hidden;text-overflow:ellipsis}
.sim-move-zone{position:absolute;bottom:calc(var(--dockH) + env(safe-area-inset-bottom) + 10px);left:max(6px,env(safe-area-inset-left));width:min(44vw,178px);height:176px;pointer-events:auto;touch-action:none}
#walkControls .sim-pad{position:absolute;left:14px;bottom:20px;right:auto;top:auto;width:108px;height:108px;border-radius:50%;border:1.2px solid #d6e9df77;background:radial-gradient(circle,#19393c38 0 48%,#15313b45 49%);box-shadow:0 2px 9px #10212a45,inset 0 0 0 5px #142d3421;pointer-events:none;margin:0}
#walkControls .sim-pad.held{border-color:#d6efaf;background:radial-gradient(circle,#a4cd9b32 0 45%,#193d42a1 46%);box-shadow:0 2px 14px #10212a80}
#walkControls .sim-pad .stick-knob{width:45%;height:45%;left:27.5%;top:27.5%;background:linear-gradient(150deg,#cfdfc4cc,#8ab3a2c7);border-color:#d9e4d7b3}
.sim-move-zone>small{position:absolute;bottom:0;left:14px;width:108px;color:#f0f5ef;text-shadow:0 1px 3px #20363d;font-size:11px;font-weight:680;text-align:center}
#walkControls .sim-float-action{position:absolute;background:rgba(27,42,47,.83);border:1px solid #cbded371;border-radius:23px;color:#e8f2eb;padding:6px 9px;box-shadow:0 2px 9px #13272538}
#walkControls .sim-speed{left:max(23px,calc(env(safe-area-inset-left) + 18px));bottom:calc(var(--dockH) + env(safe-area-inset-bottom) + 162px);min-width:78px;height:44px;font-size:12px}
.sim-speed svg{width:18px!important;height:18px!important}
#walkControls .sim-speed[aria-pressed=true]{background:#759a67;color:#182f23;border-color:#c2daba}
.sim-look-assist{position:absolute;right:max(11px,env(safe-area-inset-right));bottom:calc(var(--dockH) + env(safe-area-inset-bottom) + 10px);height:144px;width:125px;text-align:center}
#walkControls .sim-look-assist .sim-pad{pointer-events:auto;left:8px;touch-action:none}
.sim-look-assist>small{position:absolute;bottom:0;left:0;right:0;font-size:11px;text-shadow:0 1px 3px #20363d}
#walkControls .sim-interact{position:absolute;right:max(22px,env(safe-area-inset-right));bottom:calc(var(--dockH) + env(safe-area-inset-bottom) + 50px);background:#b2d3a5;border:1px solid #e5f0d6;color:#203b2e;border-radius:20px;min-width:104px;height:56px;flex-direction:column;gap:2px;box-shadow:0 4px 16px #13252b60;font-weight:800}
.sim-interact svg{width:23px!important;height:23px!important}
.sim-dock{position:absolute;bottom:0;left:50%;transform:translateX(-50%);display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:4px;width:min(520px,100%);padding:6px max(8px,env(safe-area-inset-right)) max(6px,env(safe-area-inset-bottom)) max(8px,env(safe-area-inset-left));border-radius:18px 18px 0 0;background:#192f39ed;border:1px solid #c2d8cd50;z-index:9;box-shadow:0 -3px 16px #1b30394d}
#walkControls .sim-slot{height:54px;min-height:54px;min-width:0;display:flex;flex-direction:column;gap:3px;background:#ffffff0c;color:#d9e7e2;border:1px solid #c9ded323;border-radius:11px;padding:5px 3px}
#walkControls .sim-slot span{font-size:12px;font-weight:650;white-space:nowrap}
#walkControls .sim-slot.active,#walkControls .sim-slot[aria-pressed=true]{color:#223a31;background:#a9ca9c;border-color:#e1edd1}
#walkControls #walkRun{background:#72956d;color:#0d291c;border-color:#b9d3b0}
#walkControls #walkRun[aria-pressed=true]{background:#315f45;border-color:#c5e3b7;color:white}
.sim-machine-panel{right:max(12px,env(safe-area-inset-right));bottom:calc(var(--dockH) + env(safe-area-inset-bottom) + 16px);width:min(260px,66%);z-index:8}
.sim-machine-status{font-size:12px;color:#cfe1d5;line-height:1.45;margin:4px 0 9px;overflow-wrap:anywhere}
.sim-machine-actions{display:grid;grid-template-columns:1fr 1fr;gap:6px}
#walkControls .sim-machine-actions button{background:#ffffff0d;color:#eff5ef;border:1px solid #ceded03d;padding:8px 5px;min-height:44px}
#walkControls #gameSingleRun,#walkControls #gamePlaceDraft{background:#a9c99a;color:#203c29;border:1px solid #c6dbb9;font-weight:800}
.sim-draft-panel{left:50%;transform:translateX(-50%);bottom:calc(var(--dockH) + env(safe-area-inset-bottom) + 174px);width:min(360px,calc(100% - 24px));z-index:8}
#gameDraftStatus{display:block;font-size:12px;line-height:1.4;color:#d7e6d9;margin-bottom:7px;min-height:18px}
#gameDraftStatus.warning{color:#ffd2b3}
.sim-draft-options{display:flex;align-items:center;justify-content:space-between;gap:6px}.sim-draft-options label{display:flex;align-items:center;gap:4px;font-size:12px;white-space:nowrap}
#walkControls #gameAutoJoin{height:18px;min-height:18px;width:18px;accent-color:#a8c996;margin:0}
.sim-draft-actions{display:grid;grid-template-columns:1fr 1.5fr;gap:8px;margin-top:9px}
.sim-build-drawer{left:50%;transform:translateX(-50%);bottom:calc(var(--dockH) + env(safe-area-inset-bottom) + 7px);width:min(480px,calc(100% - 16px));height:min(64vh,540px);display:flex;flex-direction:column;overflow:hidden;z-index:10}
#walkControls .sim-search{width:100%;background:#eaf1ec;color:#253f3c;border:1px solid #bdcfc2;padding:10px 12px;font-size:15px;outline:none;margin-bottom:8px}
.sim-asset-count{color:#b3cec1;font-size:11px;line-height:1.3;margin:7px 0}
.sim-build-cards{min-height:0;flex:1;overflow:auto;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-content:start;gap:8px;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;padding:1px 1px 7px;pointer-events:auto;touch-action:pan-y}
#walkControls .sim-asset-card{display:flex;flex-direction:column;align-items:stretch;gap:4px;min-width:0;min-height:125px;text-align:left;background:#e1ebe4;color:#243d3b;border:1px solid #bdd2c2;padding:7px;border-radius:11px;touch-action:pan-y}
.sim-asset-card img{width:100%;height:75px;object-fit:contain;background:#f3f6f3;border-radius:7px}
.sim-asset-card b{font-size:12px;line-height:1.35;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;overflow-wrap:anywhere}
.sim-asset-card small{font-size:10px;font-weight:650;line-height:1.2;color:#4c6f64}
#walkControls .sim-load-msg{padding:14px;color:#c7dcd0;font-size:12px;grid-column:1/-1}
body.lhmc-walking #draftPanel{display:none!important}
body.lhmc-walking #loadState{z-index:40}
body.lhmc-walking #toast{display:none!important}
@media(max-width:350px){.sim-brand{gap:5px;padding:6px}.sim-brand strong{font-size:13px}.sim-brand small{font-size:9px}.sim-mark{width:31px;height:31px}.sim-head-tools{gap:4px}#walkControls .sim-icon-btn{padding:4px 7px;min-width:46px}.sim-dock{gap:3px}.sim-tool-hint{font-size:10px}}
@media(orientation:landscape) and (max-height:550px){
 #walkControls{--dockH:58px}
 .sim-head{top:max(7px,env(safe-area-inset-top));left:max(10px,env(safe-area-inset-left));right:max(10px,env(safe-area-inset-right))}
 .sim-status{top:max(64px,calc(env(safe-area-inset-top) + 57px))}
 .sim-brand{padding:5px 8px 5px 5px}.sim-mark{width:32px;height:32px}.sim-brand strong{font-size:14px}
 .sim-map-drawer{top:max(91px,calc(env(safe-area-inset-top) + 84px));max-height:calc(100% - 166px);overflow:auto;width:300px}
 #walkMapCanvas{height:74px}.sim-floor{top:max(67px,calc(env(safe-area-inset-top) + 63px))}
 .sim-move-zone{height:151px;width:170px;bottom:calc(var(--dockH) + env(safe-area-inset-bottom) + 3px)}
 #walkControls .sim-pad{width:96px;height:96px;left:14px;bottom:18px}
 .sim-move-zone>small{width:96px}
 #walkControls .sim-speed{bottom:calc(var(--dockH) + env(safe-area-inset-bottom) + 127px)}
 .sim-tool-hint{bottom:calc(var(--dockH) + env(safe-area-inset-bottom) + 9px)}
 .sim-dock{max-width:450px;width:60%;padding:4px 7px max(4px,env(safe-area-inset-bottom))}.sim-dock .sim-slot{height:48px!important;min-height:48px!important}.sim-dock svg{width:21px!important;height:21px!important}
 .sim-machine-panel{width:270px;bottom:calc(var(--dockH) + env(safe-area-inset-bottom) + 8px)}
 .sim-draft-panel{left:auto;right:12px;transform:none;bottom:calc(var(--dockH) + env(safe-area-inset-bottom) + 9px);width:308px}
 .sim-build-drawer{left:auto;right:max(10px,env(safe-area-inset-right));transform:none;bottom:calc(var(--dockH) + env(safe-area-inset-bottom) + 5px);top:65px;height:auto;width:340px}
 .sim-build-cards .sim-asset-card img{height:54px}
}
@media(min-width:1000px) and (min-height:551px){.sim-head{left:20px;right:20px}.sim-status{left:22px}.sim-brand{padding:9px 13px 9px 8px}.sim-move-zone{width:180px;height:200px;left:22px}#walkControls .sim-pad{height:120px;width:120px}.sim-move-zone>small{width:120px}.sim-build-drawer{left:auto;right:20px;transform:none;top:94px;bottom:84px;height:auto;width:390px}.sim-map-drawer{left:20px;width:360px}.sim-dock{width:510px}}


#walkControls #walkGo{display:none!important}
.sim-aim-label{max-width:66%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;padding:6px 9px;font-size:11px;line-height:1.1;background:#1b332fbb}
@media(orientation:portrait){.sim-machine-panel{width:min(255px,calc(100% - 149px))}}
@media(max-width:350px) and (orientation:portrait){.sim-machine-panel{width:calc(100% - 24px);bottom:calc(var(--dockH) + env(safe-area-inset-bottom) + 163px)}}

.sim-link-panel{pointer-events:auto;position:absolute;right:max(12px,env(safe-area-inset-right));bottom:calc(var(--dockH) + env(safe-area-inset-bottom) + 16px);width:min(240px,calc(100% - 149px));background:var(--hud);color:var(--ink);border:1px solid var(--line);border-radius:15px;padding:10px;z-index:8;box-shadow:0 8px 25px #0a1d2270}
#gameLinkTitle{font-size:14px;line-height:1.25}
#gameLinkNote{display:block;font-size:11px;color:#c4d8cb;line-height:1.35;margin:0 0 6px}
#gameNearbyLinks{display:grid;gap:5px;max-height:164px;overflow:auto;touch-action:pan-y}
#walkControls #gameNearbyLinks button{justify-content:space-between;text-align:left;padding:7px 8px;background:#e5eee5;color:#25433a;border:1px solid #c9ddd0;min-height:44px;font-size:12px}
#gameNearbyLinks button span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
#gameNearbyLinks button small{color:#537367;font-size:10px;flex-shrink:0}
@media(max-width:350px) and (orientation:portrait){.sim-link-panel{width:calc(100% - 24px);bottom:calc(var(--dockH) + env(safe-area-inset-bottom) + 155px)}}
@media(orientation:landscape) and (max-height:550px){.sim-link-panel{width:230px;bottom:calc(var(--dockH) + env(safe-area-inset-bottom) + 6px);padding:8px}#gameNearbyLinks{max-height:126px}.sim-link-panel .sim-sheet-head{margin-bottom:5px}}

#walkControls #gameStepAside{width:100%;margin:0 0 8px;border-color:#e5c285;color:#ffe1a9;background:#544839}

#walkControls #walkExit.sim-icon-btn{background:var(--hud)!important;border-color:var(--line);color:#edf4ef}

#emptyHelp .welcome-actions #gameWelcome{flex:1 1 100%;min-height:48px;font-size:15px;background:#557c58;color:#fff;border-color:#456e48;border-radius:10px;padding:10px 14px}
#emptyHelp .welcome-actions #gameWelcome:active{background:#365d40}
.booting #emptyHelp #gameWelcome,.boot-failed #emptyHelp #gameWelcome{display:none!important}
@media(orientation:landscape) and (max-height:550px){#emptyHelp .welcome-actions #gameWelcome{min-height:44px;font-size:13px}}

/* V174 walk settings: roomy press targets; keep the long map vertically scrollable. */
#walkControls .sim-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
#walkControls .sim-options button{min-height:44px;font-size:12px;text-align:center;border-radius:10px}
#walkControls #gameSave{background:#c7dbb9;color:#1d3629;border-color:#d9ebcc}
#walkControls .sim-map-drawer{max-height:calc(100% - max(198px,calc(env(safe-area-inset-top) + 180px)));overflow-y:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch}
@media(max-height:550px){#walkControls .sim-map-drawer{max-height:calc(100% - 166px)}}

/* V175: direct game opening, no model or preview download until selected. */
#studioLaunch{display:none}
html.lhmc-studio-entry body.booting:not(.boot-failed) #studioLaunch{position:fixed;inset:0;z-index:1000;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:13px;background:radial-gradient(ellipse at 50% 35%,#3c575b,#1d343c 65%,#12272f);color:#e9f0eb}
#studioLaunch .studio-launch-mark{display:grid;place-items:center;width:66px;height:66px;border-radius:17px;background:#bed5ad;color:#284235;font-size:28px;font-weight:800}
#studioLaunch strong{font-size:24px;letter-spacing:1px}#studioLaunch span{font-size:14px;color:#bdcec9}
.sim-empty-actions{position:absolute;right:max(16px,env(safe-area-inset-right));bottom:calc(var(--dockH) + env(safe-area-inset-bottom) + 34px);width:min(42vw,172px);z-index:6;display:flex;flex-direction:column;gap:8px;pointer-events:auto}
#walkControls .sim-empty-actions button{min-height:43px;border:1px solid #e0eed755;border-radius:12px;font-size:13px;font-weight:750;color:#ebf4ea;background:#233e46e8;padding:8px 7px}
#walkControls #gameEmptyBuild{background:#bfd9ae;color:#283f34;border-color:#e1f1d7;min-height:54px;font-size:16px}
#walkControls .sim-catalog-more{grid-column:1/-1;background:#bdd6b3;color:#243d32;min-height:44px;border-radius:10px;font-weight:750;padding:8px}
@media(max-height:550px){.sim-empty-actions{bottom:calc(var(--dockH) + env(safe-area-inset-bottom) + 12px);width:150px;gap:5px}#walkControls .sim-empty-actions button{min-height:37px}#walkControls #gameEmptyBuild{min-height:43px}}

/* Game library: direct machine cards, no engineering review categories. */
#walkControls #gameAssetTabs{display:none}
#walkControls .sim-asset-card{min-height:124px;gap:6px;padding:7px}
#walkControls .sim-card-picture{position:relative;display:grid;place-items:center;height:86px;background:#f4f7f3;border-radius:8px;overflow:hidden;color:#84958a;font-size:11px}
#walkControls .sim-card-picture img{position:absolute;inset:0;height:100%;width:100%;object-fit:contain;display:block}
#walkControls .sim-card-label{display:flex;align-items:center;justify-content:space-between;gap:6px;min-height:28px}
#walkControls .sim-card-label b{flex:1;font-size:13px;line-height:1.28}
#walkControls .sim-card-plus{display:grid;place-items:center;flex:0 0 27px;width:27px;height:27px;color:#244137;background:#b8d3af;border-radius:8px;font-size:18px;font-weight:800}
@media(max-height:550px){#walkControls .sim-card-picture{height:60px}#walkControls .sim-asset-card{min-height:100px}}

/* Both machine pickers use compact device-type cards; variant rows retain a full touch target. */
.machine-stages{display:flex;gap:6px;flex:0 0 auto;align-items:center;min-width:0;overflow-x:auto;scrollbar-width:none;padding:1px 0}
.machine-stages button{flex:1 0 auto;min-width:50px;min-height:35px;border-radius:8px;padding:4px 8px;font-size:12px;font-weight:650}
.machine-stages button[aria-pressed="true"]{background:#17668f!important;color:white!important;border-color:#17668f!important}
#walkControls #gameBuildCards{grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;align-content:start}
#walkControls #gameBuildCards.machine-variants{grid-template-columns:repeat(1,minmax(0,1fr))}
#walkControls .machine-group-card{height:88px;min-height:88px;padding:5px;gap:2px;display:flex;flex-direction:column;align-items:center;justify-content:flex-start;overflow:hidden;border-radius:9px}
#walkControls .machine-group-card .sim-card-picture{width:100%;height:39px;flex:0 0 39px;border-radius:6px}
#walkControls .machine-group-name{font-size:12px;font-weight:680;line-height:1.12;text-align:center;min-height:17px;max-height:28px;display:flex;align-items:center;justify-content:center;word-break:normal;overflow:hidden}
#walkControls .machine-group-note{font-size:10px;line-height:1.1;color:#14658a;white-space:nowrap;margin-top:auto;padding-bottom:2px}
#walkControls .machine-variant-card{display:flex;flex-direction:row;align-items:center;gap:9px;min-height:64px;height:67px;padding:6px;justify-content:flex-start}
#walkControls .machine-variant-card .sim-card-picture{height:51px;width:78px;flex:0 0 78px}
#walkControls .machine-variant-label{flex:1;text-align:left;font-size:14px;line-height:1.25;min-width:0}
#walkControls .machine-variant-card .sim-card-plus{flex:0 0 34px;width:34px;height:34px;margin-left:auto}
#walkControls .machine-back{grid-column:1/-1;min-height:40px;text-align:left;padding:8px 10px;font-size:13px;text-overflow:ellipsis;overflow:hidden;white-space:nowrap}
html[lang=en] #walkControls .machine-group-card .sim-card-picture{height:30px;flex-basis:30px}html[lang=en] #walkControls .machine-group-name{display:block;height:26px;min-height:26px;max-height:26px;flex:0 0 26px;font-size:11.4px;line-height:1.12;overflow-wrap:anywhere}
@media(min-width:950px) and (min-height:551px){#walkControls #gameBuildCards:not(.machine-variants){grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(orientation:landscape) and (max-height:550px){#walkControls #gameBuildCards:not(.machine-variants){grid-template-columns:repeat(4,minmax(0,1fr))}#walkControls .machine-group-card{height:72px;min-height:72px}#walkControls .machine-group-card .sim-card-picture{height:30px;flex-basis:30px}}

#walkControls .sim-whole-quick{position:absolute;right:max(22px,env(safe-area-inset-right));bottom:calc(var(--dockH) + env(safe-area-inset-bottom) + 115px);min-height:42px;min-width:76px;background:#eaf3ee;color:#24463a;border:1px solid #abc9bc;border-radius:12px;box-shadow:0 3px 10px #16292b66}
.sim-motion-note{color:#c4d7d1;font-size:11px;line-height:1.4;overflow-wrap:anywhere;margin:3px 0 8px}
.sim-draft-actions.whole-draft-actions{grid-template-columns:1fr 1fr 1.35fr;gap:5px}
.sim-draft-actions.whole-draft-actions button{font-size:12px;padding:8px 3px}
#gameWholePanel[hidden]{display:none!important}
#gameWholePanel{position:absolute;inset:0;z-index:30;pointer-events:auto!important;touch-action:none;display:flex;flex-direction:column;justify-content:space-between;user-select:none}
body.lhmc-whole-view #walkControls> :not(#gameWholePanel){visibility:hidden!important;pointer-events:none!important}
body.lhmc-whole-view .device-label{visibility:hidden!important}
#gameWholeHead,#gameWholeFoot{margin:10px 12px;padding:13px;background:#213842e8;border:1px solid #91acb9;border-radius:15px;color:#fff;box-shadow:0 2px 12px #344c5a30}
#gameWholeHead{margin-top:max(10px,env(safe-area-inset-top));display:flex;justify-content:space-between;align-items:center;gap:8px}
#gameWholeHead b{font-size:17px;display:block;overflow-wrap:anywhere}
#gameWholeHead small{font-size:12px;color:#cfe1e7;display:block;line-height:1.4;margin-top:4px}
#gameWholeHead>div{min-width:0}
#gameWholeBack{min-width:68px;flex-shrink:0}
#gameWholeFoot{margin-bottom:max(10px,env(safe-area-inset-bottom));text-align:center}
#gameWholeHint{font-size:12px;color:#d3e9ef;line-height:1.4}
.whole-buttons{display:grid;grid-template-columns:1fr 1fr 1fr;gap:8px;margin-top:8px}
#gameWholeFoot button{min-height:44px}
@media(max-height:480px)and(orientation:landscape){#gameWholeHead,#gameWholeFoot{margin:6px 10px;padding:8px}#gameWholeHead b{font-size:14px}#gameWholeHead small{font-size:10px}#gameWholeFoot button{min-height:40px}#gameWholeFoot .whole-buttons{margin-top:4px}.sim-whole-quick{bottom:calc(var(--dockH) + 74px)!important;min-width:65px!important}}

/* Controls R1: readable customer actions and a visible recovery control. */
#walkControls #walkFace{min-width:76px;font-size:12px;pointer-events:auto}
#walkControls #walkFace span{white-space:nowrap;font-size:12px}
#walkControls .sim-whole-quick{min-height:48px;min-width:100px;font-size:15px;padding:10px 14px}
#walkControls .sim-slot span{font-size:14px}
#walkControls .sim-tool-hint{font-size:12px;font-weight:500}
@media(min-width:800px) and (min-height:551px){
 #walkControls{--dockH:86px}
 #walkControls .sim-dock{width:660px;gap:7px;padding:8px 12px}
 #walkControls .sim-slot{height:66px;min-height:66px}
 #walkControls .sim-slot span{font-size:16px}
 #walkControls .sim-icon-btn{min-width:72px;min-height:58px}
 #walkControls #walkFace{min-width:96px}
 #walkControls #walkFace span{font-size:14px}
 #walkControls .sim-tool-hint{font-size:14px;bottom:calc(var(--dockH) + 15px)}
 #walkControls .sim-whole-quick{min-width:122px;min-height:54px;font-size:16px}
}
@media(max-width:480px){
 .sim-head-tools{gap:4px}
 #walkControls .sim-icon-btn{min-width:44px;padding:5px 6px}
 #walkControls #walkFace{min-width:66px}
 .sim-brand{padding:6px;gap:5px}
 .sim-brand .sim-mark{width:30px;height:30px}
 .sim-brand strong{font-size:14px}
 .sim-brand small{font-size:10px}
 #walkControls .sim-tool-hint{max-width:calc(100% - 24px);bottom:calc(var(--dockH) + env(safe-area-inset-bottom) + 204px)}
}
@media(orientation:landscape) and (max-height:550px){
 #walkControls .sim-whole-quick{bottom:calc(var(--dockH) + env(safe-area-inset-bottom) + 116px)!important;min-height:44px}
 #walkControls .sim-tool-hint{font-size:12px}
}

/* Compact headers must keep the recovery action distinct from the brand. */
.sim-head-tools{flex-shrink:0}
.sim-brand{overflow:hidden;flex-shrink:1}
.sim-brand>div:last-child{min-width:0;overflow:hidden}
.sim-brand strong,.sim-brand small{overflow:hidden;text-overflow:ellipsis;max-width:100%}

.sim-move-hint{font-size:13px;line-height:1.45;margin:7px 0 10px;color:#e0eee1}
#walkControls #gameRotateLeft,#walkControls #gameRotateRight{background:#d3e3ca;color:#203b2c;font-size:14px;min-height:46px}
body.lhmc-walking #rotateGrip,body.lhmc-walking #quickTools{display:none!important}

/* Presets are one sheet inside the existing editor. */
#unifiedPresetDialog{width:min(580px,calc(100vw - 24px));max-height:calc(100dvh - 36px);overflow:auto;padding:20px;background:#203841;color:#e8f3ec;border:1px solid #d7e8df55;border-radius:20px;box-shadow:0 16px 80px #10242c80}
#unifiedPresetDialog::backdrop{background:#10242c99;backdrop-filter:blur(5px)}
.unified-preset-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:16px}.unified-preset-head strong{font-size:20px}.unified-preset-head button{min-height:42px;padding:8px 14px}
#unifiedPresetCards{display:grid;gap:12px}.unified-preset-card{display:flex;align-items:stretch;text-align:left;overflow:hidden;min-height:116px;padding:0;border-radius:14px;gap:0;width:100%}.unified-preset-card img{width:38%;object-fit:cover;min-height:116px}.unified-preset-card>div{display:flex;flex-direction:column;justify-content:center;gap:7px;padding:13px;min-width:0}.unified-preset-card strong{font-size:17px}.unified-preset-card span{font-size:13px;font-weight:400}.unified-preset-card small{font-size:11px;opacity:.75;font-weight:400}
#unifiedRecovered{display:grid;gap:8px;margin-top:18px;border-top:1px solid #d7e8df44;padding-top:14px}#unifiedRecovered button{padding:10px;text-align:left;font-size:13px}
#unifiedPresetStatus{font-size:13px;line-height:1.6;min-height:1em}#unifiedBuildOwn{width:100%;min-height:46px;background:#bdd7ae;color:#19343d}
.unified-walk-presets{position:absolute;left:16px;top:76px;pointer-events:auto;padding:8px 13px;background:#203841ed;color:#e8f3ec;z-index:4}
@media(max-width:680px){#unifiedPresets{font-size:12px;padding:7px 9px}.headright{gap:5px}#unifiedPresetDialog{padding:15px}.unified-preset-card>div{padding:10px}.unified-preset-card strong{font-size:16px}.unified-preset-card span{font-size:12px}.unified-preset-card small{font-size:10px}.unified-preset-card{min-height:112px}.unified-preset-card img{min-height:112px}.unified-walk-presets{left:12px;top:74px}}

/* Four main game actions; all editor functionality remains available on editor=1. */
html.lhmc-simple-game header .headright,html.lhmc-simple-game #library,html.lhmc-simple-game #inspector,html.lhmc-simple-game #floorBar,html.lhmc-simple-game #stepbar,html.lhmc-simple-game .toolbar,html.lhmc-simple-game #viewControls,html.lhmc-simple-game #hint,html.lhmc-simple-game #stats{display:none!important}
html.lhmc-simple-game main{grid-template-columns:1fr!important}html.lhmc-simple-game #stage{width:100%;min-width:0}
html.lhmc-simple-game #emptyHelp .welcome-actions>button:not(#unifiedWelcomePresets):not(#bootRetry):not(#bootFallback){display:none!important}
html.lhmc-simple-game #walkTitle,html.lhmc-simple-game #walkModeNote,html.lhmc-simple-game #unifiedWalkPresets,html.lhmc-simple-game #walkExit,html.lhmc-simple-game #walkSpeed,html.lhmc-simple-game #gameWholeQuick,html.lhmc-simple-game .sim-status,html.lhmc-simple-game #gameMachineInfo,html.lhmc-simple-game #gameAddAfter,html.lhmc-simple-game #gameFrontWalk,html.lhmc-simple-game #gameMachineMotionNote,html.lhmc-simple-game #gameMachineCode{display:none!important}
html.lhmc-simple-game .sim-dock>#gameUndo{display:none!important}
html.lhmc-simple-game .sim-dock{grid-template-columns:repeat(4,minmax(0,1fr))!important}
html.lhmc-simple-game #gameMapDrawer{max-height:min(420px,65dvh);width:min(360px,calc(100vw - 24px))}
html.lhmc-simple-game #gameMapDrawer>canvas,html.lhmc-simple-game #walkWhere,html.lhmc-simple-game #walkNavLabel,html.lhmc-simple-game #gameWaypointChips,html.lhmc-simple-game #gameMapDrawer>.sim-options,html.lhmc-simple-game #walkGo,html.lhmc-simple-game #walkDestination{display:none!important}
.simple-more-actions{display:none}
html.lhmc-simple-game .simple-more-actions{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:12px}
html.lhmc-simple-game .simple-more-actions>button{min-height:46px;padding:10px;border-radius:12px}
html.lhmc-simple-game .simple-more-actions #simpleContinue{grid-column:1/-1;order:9;background:#bdd7ae;color:#203841}
html.lhmc-simple-game .simple-more-actions #gameUndo{display:flex;justify-content:center;align-items:center;gap:5px}
html.lhmc-simple-game .simple-more-actions #gameUndo svg{width:18px;height:18px}
html.lhmc-simple-game .sim-machine-actions{grid-template-columns:1fr 1fr!important}
html.lhmc-simple-game #gameWholeFromMachine{grid-column:1/-1}
html.lhmc-simple-game #gameDraftAlign,html.lhmc-simple-game #gameAutoJoinRow{display:none!important}
html.lhmc-simple-game .sim-tool-hint{max-width:calc(100vw - 32px);font-size:12px}
#simpleLineNote{position:absolute;left:16px;top:78px;z-index:8;background:#203841d9;color:#f0e6c8;border-radius:9px;padding:6px 10px;font-size:12px;pointer-events:none}
html.lhmc-simple-game .sim-head-tools{gap:7px}
html.lhmc-simple-game #unifiedPresetDialog{width:min(540px,calc(100vw - 24px))}
html.lhmc-simple-game #unifiedPresetTitle{font-size:20px}
html.lhmc-simple-game #gameEmptyExample{display:none!important}

/* Fixed, separate thumbsticks. The scene never doubles as a look gesture. */
html.lhmc-simple-game #gameLookSwitch,html.lhmc-simple-game #gameInteract,html.lhmc-simple-game #gameEmptyActions,html.lhmc-simple-game #gameToolHint,html.lhmc-simple-game .sim-aim{display:none!important}
html.lhmc-simple-game #gameMoveZone,html.lhmc-simple-game #gameLookAssist{position:absolute;top:auto;bottom:calc(var(--dockH) + env(safe-area-inset-bottom) + 24px);width:108px;height:136px;pointer-events:none}
html.lhmc-simple-game #gameMoveZone{left:16px;right:auto}
html.lhmc-simple-game #gameLookAssist{right:16px;left:auto}
html.lhmc-simple-game #walkControls .sim-pad{left:0;right:auto;top:0;bottom:auto;width:108px;height:108px;pointer-events:auto;touch-action:none}
html.lhmc-simple-game #gameMoveZone>small,html.lhmc-simple-game #gameLookAssist>small{position:absolute;bottom:0;left:0;width:108px;text-align:center;font-size:13px;color:#fff;text-shadow:0 1px 4px #14272c}
#simpleMoveBanner{position:absolute;left:50%;top:86px;transform:translateX(-50%);display:flex;align-items:center;justify-content:space-between;gap:10px;width:min(345px,calc(100% - 24px));padding:8px 10px;background:#203841ed;color:#fff;border:1px solid #bcd7ab;border-radius:12px;pointer-events:auto;font-size:13px}
#walkControls #simpleMoveDone{min-width:58px;background:#bdd7ae;color:#203841}
html.lhmc-simple-game #simpleMoveMachine{grid-column:1/-1;background:#bdd7ae;color:#203841;min-height:46px}
@media(max-height:500px){html.lhmc-simple-game #gameMoveZone,html.lhmc-simple-game #gameLookAssist{width:86px;height:108px;bottom:calc(var(--dockH) + 8px)}html.lhmc-simple-game #walkControls .sim-pad{width:86px;height:86px}html.lhmc-simple-game #gameMoveZone>small,html.lhmc-simple-game #gameLookAssist>small{width:86px;font-size:12px}#simpleMoveBanner{top:67px}}

/* One workshop scene: fixed placement view, optional walking in the same scene. */
html.lhmc-place-view #gameMoveZone,html.lhmc-place-view #gameLookAssist{display:none!important}
#simpleGameLoading{position:fixed;inset:0;z-index:12;display:grid;place-items:center;background:#203841;color:#eaf1e7;font:16px system-ui}
body:not(.booting) #simpleGameLoading{display:none}
html.lhmc-simple-game #groupPanel{display:none!important}
html.lhmc-simple-game #simpleWalkToggle{min-width:60px;font-size:12px;background:#203841;color:#edf4ee;border:1px solid #c7dbc844}
html.lhmc-simple-game #unifiedPresetDialog:not(:modal){position:fixed;inset:auto 12px max(86px,calc(env(safe-area-inset-bottom) + 78px));margin:0 auto;width:min(550px,calc(100vw - 24px));max-height:52dvh;padding:14px;box-shadow:0 10px 35px #0e273b65;z-index:25}
html.lhmc-simple-game #unifiedPresetCards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px}
html.lhmc-simple-game .unified-preset-card{display:flex;flex-direction:column;min-width:0;overflow:hidden;gap:7px;padding:0 0 9px;align-items:stretch}
html.lhmc-simple-game .unified-preset-card img{width:100%;height:80px;min-height:0;object-fit:cover}
html.lhmc-simple-game .unified-preset-card>div{padding:0 6px}
html.lhmc-simple-game .unified-preset-card strong{font-size:13px;line-height:1.3;white-space:normal;overflow:visible}
html.lhmc-simple-game .unified-preset-card span,html.lhmc-simple-game .unified-preset-card small:not(:first-of-type){display:none}
html.lhmc-simple-game .unified-preset-card small{font-size:10px;line-height:1.3;margin-top:5px}
html.lhmc-simple-game #unifiedBuildOwn{min-height:42px;margin-top:8px}
html.lhmc-simple-game #unifiedPresetStatus:empty{display:none}
html.lhmc-simple-game #simpleMoveWholeLine{grid-column:1/-1;min-height:44px;background:#d1e0c7;color:#203841}
html.lhmc-simple-game #simpleMoveWholeLine,html.lhmc-simple-game #gameRotateLeft,html.lhmc-simple-game #gameWholeFromMachine{display:none!important}
#simplePlaceHint{position:absolute;bottom:calc(var(--dockH) + env(safe-area-inset-bottom) + 20px);left:50%;transform:translateX(-50%);padding:7px 12px;border-radius:10px;background:#203841c9;color:#f1f5eb;font-size:12px;white-space:nowrap;pointer-events:none}
#simpleLineStrip{position:absolute;left:12px;top:78px;display:flex;gap:6px;max-width:calc(100% - 24px);pointer-events:auto;align-items:center;background:#203841df;padding:5px;border-radius:12px}
#walkControls #simpleLineSelect{min-width:0;max-width:190px;background:transparent;color:#f3f5ed;border:0;min-height:40px;font-size:12px}
#walkControls #simpleLineMove{background:#b7d3a8;color:#203841;min-height:40px;font-size:12px}
#simpleMoveBanner{top:132px}
#simpleConnectBar{position:absolute;left:12px;right:12px;bottom:calc(var(--dockH) + env(safe-area-inset-bottom) + 15px);border:1px solid #b6cfa2;background:#203841ed;color:#f5f6ee;border-radius:14px;padding:10px;pointer-events:auto;display:flex;gap:7px;align-items:center;flex-wrap:wrap;z-index:19}
#simpleConnectChoices{display:flex;gap:5px;flex-basis:100%;overflow-x:auto;padding:2px 0 4px;order:-1}
#walkControls #simpleConnectChoices button{white-space:nowrap;background:#eff5e8;color:#203841;border:0;min-height:34px;font-size:11px;padding:6px}
#walkControls #simpleConnectNow{background:#bdd7ae;color:#203841;margin-left:auto;min-width:80px}
#simpleConnectCount{font-size:13px;font-weight:500}
html.lhmc-simple-game>body>header,html.lhmc-simple-game>body>footer{display:none!important}
#simpleGameLoading{display:flex;flex-direction:column;justify-content:center;gap:18px;text-align:center;padding:24px;box-sizing:border-box}
#simpleGameRetry{min-height:46px;background:#bdd7ae;color:#203841;border:0;border-radius:12px;padding:10px 24px;font:15px system-ui}
#simpleGameBack{color:#eef4ec;font-size:14px;text-decoration:none}
#simpleGameLoading [hidden]{display:none!important}
#simpleLineNote{top:132px;max-width:calc(100% - 24px);font-size:11px}
#simpleMoveBanner:not([hidden])~#simpleLineNote{display:none}
@media(max-height:500px){html.lhmc-simple-game #unifiedPresetDialog:not(:modal){max-height:calc(100dvh - 100px);bottom:69px;width:470px}.unified-preset-head{margin-bottom:5px}html.lhmc-simple-game .unified-preset-card img{height:49px}html.lhmc-simple-game #unifiedBuildOwn{display:none}#simpleLineStrip{top:65px}#simpleMoveBanner{top:115px}}

/* Enter at eye level; one compact chooser and contextual game controls. */
html.lhmc-human-game #simpleWalkToggle{display:none!important}
html.lhmc-human-game .sim-dock{display:flex!important;gap:6px;width:min(540px,calc(100% - 16px))}
html.lhmc-human-game .sim-dock>.sim-slot{flex:1;min-width:0;width:0}
html.lhmc-human-game.lhmc-choosing-line .sim-dock,html.lhmc-human-game.lhmc-choosing-line #gameMoveZone,html.lhmc-human-game.lhmc-choosing-line #gameLookAssist,html.lhmc-human-game.lhmc-choosing-line #simpleLineStrip,html.lhmc-human-game.lhmc-choosing-line #simpleLineNote{display:none!important}
html.lhmc-human-game #unifiedPresetDialog:not(:modal){inset:auto 10px max(12px,env(safe-area-inset-bottom));width:min(540px,calc(100vw - 20px));max-height:178px;padding:8px;margin:0 auto;border-radius:16px;overflow:hidden}
html.lhmc-human-game .unified-preset-head{height:40px;min-height:40px;margin:0 0 4px;gap:5px}
html.lhmc-human-game #unifiedPresetTitle{font-size:13px;line-height:1.2;font-weight:600;flex:1;min-width:0}
html.lhmc-human-game #unifiedPresetClose{width:42px;min-width:42px;min-height:40px;height:40px;padding:3px;background:transparent;border:0;font-size:12px}
html.lhmc-human-game #unifiedPresetCards{gap:6px}
html.lhmc-human-game .unified-preset-card{height:91px;min-height:91px;padding:0 0 4px;gap:2px;border-radius:10px;background:#ffffff08;border:1px solid #c1d2c633}
html.lhmc-human-game .unified-preset-card img{width:100%;height:45px;min-height:0;object-fit:contain;background:#e3e8e3}
html.lhmc-human-game .unified-preset-card>div{padding:0 4px;gap:2px;justify-content:flex-start}
html.lhmc-human-game .unified-preset-card strong{font-size:11.5px;line-height:1.2;font-weight:550}
html.lhmc-human-game .unified-preset-card small{margin:0;font-size:10.5px;line-height:1.2;opacity:1;color:#c9dfb8}
html.lhmc-human-game #unifiedBuildOwn{display:none!important}
html.lhmc-human-game #unifiedPresetStatus{margin:3px 0 0;font-size:11px;line-height:1.2}
html.lhmc-human-game #unifiedPresetStatus:empty{display:none}
html.lhmc-human-game #unifiedPresetDialog #gameBuild{display:inline-flex;flex-direction:row;align-items:center;justify-content:center;gap:4px;flex:0 0 auto;width:auto;min-height:38px;height:38px;padding:5px 8px;background:#bdd7ae;color:#203841;border:0;font-size:12px;border-radius:10px}
html.lhmc-human-game #unifiedPresetDialog #gameBuild svg{width:17px;height:17px}
html.lhmc-human-game #unifiedPresetDialog #gameBuild span{font-size:12px}
html.lhmc-human-game .simple-more-actions #unifiedResumeEditor,html.lhmc-human-game .simple-more-actions #unifiedRecovered{grid-column:1/-1}
html.lhmc-human-game .simple-more-actions #unifiedRecovered{display:grid;gap:6px}
html.lhmc-human-game #simpleLineStrip{max-width:calc(100% - 24px)}
@media(max-height:500px){html.lhmc-human-game #unifiedPresetDialog:not(:modal){bottom:8px;max-height:157px;width:min(540px,calc(100vw - 24px))}html.lhmc-human-game .unified-preset-card{height:83px;min-height:83px}html.lhmc-human-game .unified-preset-card img{height:38px}}

/* Relative look pad: finger travel turns the view; holding still does nothing. */
.relative-look-symbol{display:none}
html.lhmc-human-game #gameLookAssist{width:132px;height:116px}
html.lhmc-human-game #walkControls #walkLookStick{width:132px;height:88px;border-radius:20px;display:flex;align-items:center;justify-content:center;background:#203d44a8;border:1px solid #d0dfcf88;box-shadow:0 2px 8px #152e3540,inset 0 1px 0 #ffffff22}
html.lhmc-human-game #walkLookStick .stick-knob,html.lhmc-human-game #walkLookStick .stick-axis{display:none}
html.lhmc-human-game #walkLookStick .relative-look-symbol{display:block;font:44px/1 system-ui;color:#e3eddd;pointer-events:none}
html.lhmc-human-game #walkControls #walkLookStick.held{background:#37594fe0;border-color:#c7dfb7}
html.lhmc-human-game #gameLookAssist>small{width:132px}
@media(max-height:500px){html.lhmc-human-game #gameLookAssist{width:112px;height:90px}html.lhmc-human-game #walkControls #walkLookStick{width:112px;height:64px;border-radius:17px}html.lhmc-human-game #gameLookAssist>small{width:112px}html.lhmc-human-game #walkLookStick .relative-look-symbol{font-size:36px}}

.simple-direction-row,#simpleDesktopHint{display:none}
html.lhmc-simple-game .simple-direction-row{display:flex;align-items:center;gap:8px;padding:8px 0 10px;color:#e7efe3;font-size:13px}
html.lhmc-simple-game #walkControls #simpleDirection{flex:1;min-width:0;min-height:44px;accent-color:#bdd7ae;padding:0;background:transparent}
html.lhmc-simple-game #simpleDirectionValue{font-variant-numeric:tabular-nums;width:44px;text-align:right}
html.lhmc-simple-game #walkControls #simpleDirection{appearance:none;-webkit-appearance:none}
html.lhmc-simple-game #simpleDirection::-webkit-slider-runnable-track{height:6px;border-radius:4px;background:#819487}
html.lhmc-simple-game #simpleDirection::-webkit-slider-thumb{-webkit-appearance:none;width:28px;height:28px;margin-top:-11px;border:2px solid #e2edda;border-radius:50%;background:#b6d49e}
html.lhmc-simple-game #simpleDirection::-moz-range-thumb{width:24px;height:24px;border:2px solid #e2edda;border-radius:50%;background:#b6d49e}
html.lhmc-machine-open #gameMoveZone,html.lhmc-machine-open #gameLookAssist{display:none!important}
@media(max-width:680px){html.lhmc-simple-game #walkControls #gameMachinePanel{width:min(380px,calc(100vw - 24px));right:12px;max-height:calc(100dvh - 170px);overflow-y:auto}}
html.lhmc-simple-game #simpleRemoveMachine{background:#563d3a;color:#ffe7df;border-color:#bf8e7955}
html.lhmc-simple-game #simpleConnectLine{min-height:44px;background:#344e50;color:#eaf3e5;font-size:12px}
@media(pointer:fine) and (min-width:800px){html.lhmc-simple-game #simpleDesktopHint{display:block;position:absolute;left:50%;bottom:calc(var(--dockH) + 12px);transform:translateX(-50%);font:12px system-ui;color:#eff4ed;text-shadow:0 1px 3px #142e36;pointer-events:none}html.lhmc-choosing-line #simpleDesktopHint{display:none}}

#workshopPhotoOpen{min-height:48px}
body>#workshopPhotoOpen{display:none}
#workshopPhoto{position:fixed;inset:0;margin:auto;width:min(900px,calc(100vw - 24px));max-width:calc(100vw - 24px);max-height:calc(100dvh - 28px);overflow:auto;border:1px solid #769395;border-radius:22px;background:#203b43;color:#f2f5ed;padding:20px;box-sizing:border-box;box-shadow:0 20px 70px #0008;font-family:inherit}
#workshopPhoto::backdrop{background:#0b1c26b8;backdrop-filter:blur(5px)}
#workshopPhoto h2{font-size:21px;margin:0;font-weight:600}
#workshopPhoto button,#workshopPhoto select{font:inherit;font-size:16px;min-height:46px;border-radius:12px;border:1px solid #779295;background:#2a464c;color:#f2f5ed;padding:9px 15px}
#workshopPhoto button:disabled{opacity:.45}
.photo-head,.photo-actions{display:flex;align-items:center;justify-content:space-between;gap:12px}
.photo-head{margin-bottom:18px;position:sticky;top:0;background:#203b43;z-index:2;padding-bottom:8px}.photo-options{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-bottom:14px}
.photo-options label{display:grid;gap:6px;font-size:14px}.photo-options select{width:100%}
.photo-check{display:flex;align-items:center;gap:6px;font-size:16px;min-height:46px;white-space:nowrap}
.photo-check input{width:22px;height:22px;accent-color:#b7d2a7}
#workshopPhoto .photo-primary{background:#bdd6ab;color:#163438;border-color:#d5e8ca;min-width:94px}
#workshopPhotoStatus{min-height:1.5em;margin:14px 0 10px;font-size:14px;color:#c6d3cd;overflow-wrap:anywhere}
.photo-preview{display:grid;place-items:center;border-radius:13px;overflow:hidden;background:#162e35;min-height:160px}.photo-preview img{display:block;max-width:100%;max-height:58dvh;object-fit:contain}.photo-preview img[hidden]{display:none}
.photo-measure{margin-top:18px;font-size:14px;border-top:1px solid #526d71;padding-top:14px}.photo-measure summary{font-size:16px;min-height:36px;cursor:pointer}.photo-measure p{line-height:1.6;color:#c6d3cd}.photo-table{overflow:auto;margin-bottom:12px;max-height:310px}.photo-table table{border-collapse:collapse;min-width:680px;width:100%;font-variant-numeric:tabular-nums}.photo-table th,.photo-table td{text-align:left;padding:10px 12px;border-bottom:1px solid #526d71;font-size:14px;font-weight:400}.photo-table th{white-space:nowrap;background:#29464d;position:sticky;top:0}
#workshopPhoto .photo-quality-link{display:block;margin:16px 0 0;width:100%;background:transparent;border-color:#587579}
@media(max-width:520px){#workshopPhoto{padding:16px;border-radius:18px}.photo-actions{gap:8px}.photo-actions button{padding:9px 12px!important}.photo-check{font-size:15px}.photo-options{gap:10px}}
