/* Keep the common model layout and scope the inspection tools to 3DS. */
#tdsTools[hidden], #tdsStats[hidden], #tdsFallback[hidden], #canvas[hidden], #modelHelp[hidden] { display:none!important; }
#app.mp-model-legacy { width:min(100%,1120px); }
.tds-tools { order:2; display:flex; flex-wrap:wrap; align-items:center; gap:8px 12px; padding:10px 12px; border:1px solid #d4e0e9; border-radius:10px; background:#fff; color:#284457; }
.tds-tools label { display:flex; align-items:center; gap:7px; font-size:13px; }
.tds-tools select, .tds-tools button { min-height:40px; border:1px solid #c2d2df; border-radius:7px; background:#fff; color:#1d3e56; font:500 13px system-ui,sans-serif; padding:7px 9px; }
.tds-tools button { cursor:pointer; }
.tds-tools input[type=checkbox] { width:17px; height:17px; accent-color:#116a9d; }
#app.mp-model-legacy .mp-model-dock { order:3; }
#app.mp-model-legacy > footer { order:4; }
#tdsStats { position:absolute; bottom:12px; left:12px; border:1px solid #d9e4ec; border-radius:7px; padding:7px 10px; background:#fffffff0; color:#29465c; font:500 12px/1.4 system-ui,sans-serif; pointer-events:none; }
#tdsFallback { position:absolute; inset:20px; display:grid; place-items:center; text-align:center; color:#344e63; font:16px/1.6 system-ui,sans-serif; }
#tdsFacts { white-space:pre-wrap; overflow-wrap:anywhere; font-size:12px; margin:6px 0; }
#modelHelp p { margin:7px 0; font-size:13px; line-height:1.5; color:#405c70; }
#tdsTextureNote:empty { display:none; }
.tds-note { order:2; margin:0; padding:10px 12px; border:1px solid #cedfec; border-radius:8px; background:#edf6fc; color:#254961; font:13px/1.5 system-ui,sans-serif; }
#tdsSourceNotice[hidden],#tdsSourceChoice[hidden] { display:none!important; }
html.mp-embedded #app.mp-model-legacy [data-model-stage] { height:clamp(250px,calc(100dvh - 215px),750px); }
@media (min-width:1600px) { #app.mp-model-legacy { width:min(100%,1440px); } }
@media (max-width:560px) {
 .tds-tools { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); gap:8px; padding:9px; }
 .tds-tools label { min-width:0; flex-wrap:wrap; }
 .tds-tools select { width:100%; min-width:0; min-height:44px; }
 .tds-tools button { min-height:44px; }
 #tdsStats { bottom:8px; left:8px; font-size:11px; }
 html.mp-embedded #app.mp-model-legacy [data-model-stage] { height:clamp(220px,calc(100dvh - 330px),650px); }
}
