/* R264 shared viewer controls: native buttons and disclosures, honest state.
 * Includes no model/scene/recipe or simulation changes.
 */
.panel-workspace-bar{position:sticky;top:0;z-index:10;display:flex;align-items:center;gap:.4rem .6rem;flex-wrap:wrap;padding:.45rem .65rem;margin:.4rem 0 .7rem;background:var(--surface,Canvas);color:var(--ink,CanvasText);border:1px solid var(--line,#7777);border-radius:.65rem}
.panel-workspace-bar button,.panel-workspace-bar a{display:inline-flex;align-items:center;justify-content:center;flex:none;min-height:44px;padding:.4rem .65rem;font-size:.85rem;font-weight:600;border:1px solid var(--line,#7777);border-radius:.45rem;white-space:nowrap;color:inherit;background:var(--surface,Canvas);text-decoration:none}
.panel-workspace-bar a{color:LinkText}
.panel-workspace-bar button[aria-expanded=true],.panel-workspace-bar button[aria-pressed=true]{outline:2px solid var(--accent,CanvasText);outline-offset:-3px}
.panel-workspace-bar button[aria-expanded=false]{border-style:dashed}
.panel-workspace-bar button:hover,.panel-workspace-bar a:hover{filter:brightness(.95)}
.panel-workspace-bar .panel-help-label{margin-left:auto;font-size:.8rem;font-weight:650;opacity:.8}
.panel-workspace-bar :focus-visible,.help-explain>summary:focus-visible{outline:3px solid var(--focus,Highlight);outline-offset:2px}
details.help-explain{border:1px solid var(--line,#7777);border-radius:.5rem;padding:0 .55rem;margin:.45rem 0;background:var(--surface,Canvas);color:var(--ink,CanvasText)}
details.help-explain>summary{cursor:pointer;min-height:42px;display:flex;align-items:center;font-size:.86rem;font-weight:600;padding:.3rem .2rem}
details.help-explain p{font-size:.86rem;line-height:1.5;margin:.3rem 0 .7rem;max-width:80ch}
@media(max-width:520px){.panel-workspace-bar{gap:.35rem;padding:.4rem}.panel-workspace-bar .panel-help-label{flex-basis:100%;margin:0}.panel-workspace-bar button,.panel-workspace-bar a{font-size:.76rem;padding:.4rem .5rem}}
@media(prefers-reduced-motion:reduce){.panel-workspace-bar{scroll-behavior:auto}}

/* A 844×390 short landscape view has one critical task: keep >=160 CSS px
 * of the actual 3D reference visible before scroll. Keep all controls and
 * the medical research caution visible, but compress the overhead. */
@media(max-height:550px) and (min-width:741px) and (orientation:landscape){
 html[data-human-route=anatomy] .human-header{min-height:42px;padding-block:.12rem;gap:.15rem .65rem}
 html[data-human-route=anatomy] .human-nav a{min-height:36px;padding:.15rem .45rem}
 html[data-human-route=anatomy] .human-theme select{min-height:36px;padding:.2rem .45rem}
 html[data-human-route=anatomy] main{padding-top:.2rem;padding-bottom:.3rem}
 html[data-human-route=anatomy] main>h1{font-size:1.25rem;line-height:1.15;margin:.1rem 0}
 html[data-human-route=anatomy] main>.notice{font-size:.73rem;line-height:1.2;margin:.12rem 0;padding:.2rem .45rem}
 html[data-human-route=anatomy] main>nav{margin:.15rem 0;gap:.35rem}
 html[data-human-route=anatomy] main>nav button{min-height:36px;padding:.15rem .55rem}
 html[data-human-route=anatomy] .panel-workspace-bar{position:relative;top:auto;flex-wrap:nowrap;overflow-x:auto;gap:.3rem;margin:.12rem 0 .25rem;padding:.1rem .25rem;min-height:40px}
 html[data-human-route=anatomy] .panel-workspace-bar button,
 html[data-human-route=anatomy] .panel-workspace-bar a{min-height:36px;font-size:.75rem;padding:.2rem .45rem}
 html[data-human-route=anatomy] .panel-workspace-bar .panel-help-label{margin-left:.3rem;white-space:nowrap}
 html[data-human-route=anatomy] .layout{gap:.5rem}
}
