/* Layout adapter; the simulation and rendered vehicle geometry are unchanged. */
body.embed{overflow:visible;min-width:0}
.embed .scene-host canvas{touch-action:pan-y!important}
.embed .app-header{height:auto;min-height:46px;flex-wrap:wrap;padding:9px 16px;gap:9px 16px}
.embed .app-header .brand-wrap,.embed .mission-context,.embed .clock,.embed .rail-foot{display:none}
.embed .header-spacer{display:none}.embed .header-tools{margin-left:auto}
.embed .shell{height:auto;min-height:0;display:block}
.embed .rail{width:auto;padding:0;flex-direction:row;gap:0;border-right:0;border-bottom:1px solid var(--line);overflow-x:auto}
.embed .nav-btn{flex:1 0 90px;min-height:58px;padding:10px 8px;gap:6px;font-size:10px}
.embed .nav-btn svg{width:17px;height:17px}
.embed .nav-btn.active:before{left:12px;right:12px;top:auto;bottom:0;width:auto;height:2px}
.embed .main{display:flex;flex-direction:column;overflow:visible;min-width:0}
.embed .transport{height:auto;min-height:47px;flex-wrap:wrap;gap:7px;padding:10px 16px}
.embed .transport .timeline{min-width:90px}.embed .transport .mode-note{display:none}
.embed .workspace{overflow:visible;min-height:0;padding:16px}
.embed .page{height:auto;min-height:0}
.embed .monitor-layout{height:auto;min-height:0;grid-template-columns:minmax(0,1fr) 280px;align-items:start}
.embed .camera-panel{height:clamp(400px,52vw,700px);min-height:0}
.embed .side-stack{min-width:0}.embed .side-stack .section-panel,.embed .side-stack .wheels-panel{flex:none}
.embed .twin-page{height:auto;min-height:0}
.embed .twin-scene{flex:none;height:clamp(360px,52vw,700px);min-height:0}
.embed .op-field{min-height:460px}.embed .recorder{min-height:88px;flex-wrap:wrap}
.embed .recorder-main{min-width:180px}.embed .stop-button{min-height:64px}
.embed .page-heading{flex-wrap:wrap;gap:12px}.embed .page-heading .inline{justify-content:flex-start}
.embed .twin-hint{font-size:9px;max-width:60%;line-height:1.5}
@media(max-width:900px){
 .embed .monitor-layout{display:flex;flex-direction:column}.embed .camera-panel{width:100%;height:clamp(360px,60vw,620px)}
 .embed .side-stack{width:100%;display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}
 .embed .side-stack .section-panel,.embed .side-stack .wheels-panel{grid-column:auto;grid-row:auto}
 .embed .next-panel{display:block}.embed .field-control-panel{grid-column:1/-1}
 .embed .header-tools .lang-select{display:block}
}
@media(max-width:600px){
 .embed .app-header{padding:8px 10px}.embed .pill{padding:5px 8px;max-width:100%;flex-wrap:wrap}
 .embed .header-tools{gap:4px}.embed .header-tools select{max-width:120px}
 .embed .nav-btn{flex-basis:76px;min-height:58px;font-size:9px}.embed .workspace{padding:10px}
 .embed .transport{padding:9px 10px;gap:7px}.embed .transport .timeline{flex:1 1 120px}
 .embed .transport button{min-height:36px}.embed .transport .time{min-width:32px}
 .embed .twin-scene,.embed .camera-panel{height:390px;min-height:0}
 .embed .side-stack{grid-template-columns:minmax(0,1fr)}.embed .field-control-panel{grid-column:auto}
 .embed .page-heading h1{font-size:22px}.embed .page-heading .inline{gap:6px}.embed .page-heading button,.embed .render-link{min-height:36px}
 .embed .plan-inset{width:98px;height:124px;right:8px;bottom:8px}.embed .quality-badge{right:8px;top:8px;font-size:8px;padding:7px}
 .embed .scene-badge{left:8px;top:8px;font-size:8px;padding:7px;gap:5px}.embed .scene-badge strong{font-size:8px}
 .embed .scene-bottom{left:8px;bottom:8px;max-width:calc(100% - 122px);flex-wrap:wrap;font-size:8px;padding:6px;gap:5px}
 .embed .camera-note{left:8px;max-width:calc(100% - 24px);font-size:7px;bottom:70px}
 .embed .twin-hint{left:8px;right:auto;bottom:110px;max-width:200px;padding:6px}
 .embed .param-summary{flex-wrap:wrap;gap:14px}.embed .param-row{grid-template-columns:minmax(0,1fr) minmax(80px,105px);gap:8px;padding:10px 0}
 .embed .param-row label{overflow-wrap:anywhere}.embed .param-row .policy{grid-column:1/-1}.embed .param-toolbar input[type=search]{min-width:0;width:100%;flex-basis:100%}
 .embed .device-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.embed .result-table{font-size:9px}.embed .result-table th,.embed .result-table td{padding:9px 4px}
 .embed .comparison-row{gap:5px;font-size:9px;grid-template-columns:minmax(90px,1.2fr) repeat(3,minmax(0,1fr))}.embed .result-summary{gap:8px}
 .embed .metric .value{font-size:22px}.embed .operate-layout{grid-template-columns:minmax(0,1fr)}.embed .op-field{min-height:390px}
 .embed .status-strip{gap:14px}.embed .recorder{padding:10px;gap:10px}.embed .recorder-main{flex-basis:100%}.embed .stop-button{width:100%;min-height:58px;font-size:19px}
 .embed .saved-run{flex-wrap:wrap;gap:10px}.embed .saved-run .inline{flex-wrap:wrap}
}
