/* R263: readable anatomical workspace on expanded, touch, zoomed and short viewports. */
@media(min-width:1500px) and (min-height:680px){
 html[data-human-route=anatomy] main{max-width:none;padding-inline:clamp(1rem,1.8vw,3rem)}
 html[data-human-route=anatomy] h1{margin:.55rem 0 .25rem}
 html[data-human-route=anatomy] .layout{grid-template-columns:minmax(0,3fr) minmax(360px,1fr);gap:1rem}
 html[data-human-route=anatomy] .layout .stage,.layout .controls{position:sticky;top:.7rem;align-self:start;max-height:calc(100dvh - 1.4rem);overflow-y:auto;overscroll-behavior-y:contain;scrollbar-gutter:stable}
 html[data-human-route=anatomy] model-viewer{height:clamp(390px,70dvh,1050px)}
 html[data-human-route=anatomy] #preview{max-height:70dvh}
 html[data-human-route=anatomy] .controls ul{max-height:44dvh}
}
@media(min-width:900px) and (max-width:1499px) and (min-height:640px){
 html[data-human-route=anatomy] .layout{grid-template-columns:minmax(0,1fr) minmax(300px,35%)}
 html[data-human-route=anatomy] model-viewer{height:clamp(350px,62dvh,740px)}
}
@media(max-width:899px),(max-height:639px){
 html[data-human-route=anatomy] .layout{grid-template-columns:minmax(0,1fr)}
 html[data-human-route=anatomy] .layout .stage,html[data-human-route=anatomy] .layout .controls{position:static;max-height:none;overflow:visible}
 html[data-human-route=anatomy] model-viewer{height:clamp(290px,55dvh,600px)}
}
@media(hover:none) and (pointer:coarse){
 html[data-human-route=anatomy] button,html[data-human-route=anatomy] select,html[data-human-route=anatomy] input{min-height:44px}
}

/* R264 context inspector can be hidden without hiding the original reference. */
#anatomy-layout.hide-controls .controls,
#anatomy-layout.viewer-focus .controls{display:none!important}
#anatomy-layout.hide-controls,
#anatomy-layout.viewer-focus{grid-template-columns:minmax(0,1fr)!important}
#anatomy-layout.hide-controls .stage,
#anatomy-layout.viewer-focus .stage{grid-column:1/-1}
@media(min-width:900px) and (min-height:640px){
 #anatomy-layout.hide-controls model-viewer,
 #anatomy-layout.viewer-focus model-viewer{height:clamp(420px,70dvh,1100px)}
}
