/* The controls occupy their own space: rotating the model never hides a dial. */
.pt452-workspace .pt452-tools { display:none; }
.pt507-switcher { position:absolute;z-index:6;right:14px;top:14px;width:306px;display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:5px;padding:6px;border:1px solid #d6decd;border-radius:13px;background:#f7f8ee;color:#254c3b;box-shadow:0 3px 12px #183b2710; }
.pt507-switcher>button,.pt507-more { position:relative;display:flex;align-items:center;justify-content:center;min-width:0;min-height:44px;padding:6px 3px;border:1px solid #ced9c5;border-radius:9px;background:#fffef6;color:#345744;font:inherit;font-size:11px;font-weight:700;cursor:pointer; }
.pt507-switcher>button[aria-expanded=true],.pt507-more.is-active { background:#234d3c;color:#fff6dc;border-color:#234d3c; }
.pt507-more>span { pointer-events:none;display:flex;gap:3px;align-items:center; }
.pt507-more i { font-style:normal;font-size:15px; }
/* The native picker covers the visible More button, retaining OS and keyboard support. */
#app .pt507-more select { position:absolute;inset:0;width:100%;height:100%;min-height:44px;margin:0;padding:0;opacity:0;cursor:pointer; }
.pt507-more:focus-within { outline:3px solid #b58b45;outline-offset:2px; }
.pt420-page .pt452-workspace .pt420-stage { height:clamp(520px,calc(100svh - 190px),720px);background:#f0f3e9; }
.pt452-workspace #putter-3d-canvas { width:calc(100% - 334px);height:100%; }
.pt452-workspace .pt452-camera { right:350px; }
.pt452-workspace .pt452-popovers { top:80px;left:auto;right:14px;bottom:14px;width:306px;height:auto;max-height:calc(100% - 94px); }
.pt452-workspace .pt452-popovers .pt452-panel { height:100%;max-height:100%;box-shadow:0 3px 14px #17362413; }
.pt420-page[data-inspection=true] .pt452-panel-body .pt429-distance { display:block; }
.pt452-workspace .pt452-panel-body { min-height:0;max-height:none;flex:1; }
.pt452-workspace .pt452-playback { right:350px; }
.pt452-workspace .pt434-face-badge { right:350px; }
.pt452-workspace .pt452-panel>header .pt452-icon { min-width:44px;min-height:44px; }

@media (max-width:1400px) {
 .pt420-page .pt452-workspace .pt420-stage,.pt420-page .pt452-workspace .pt420-stage:has(.pt452-panel:not([hidden])) { height:clamp(460px,calc(100svh - 272px),600px); }
 .pt507-switcher { top:auto;bottom:82px;left:10px;right:10px;width:auto;padding:5px;gap:4px; }
 .pt507-switcher>button,.pt507-more { font-size:11px; }
 .pt452-workspace .pt452-camera { right:10px; }
 .pt452-workspace .pt452-playback { right:10px; }
 .pt452-workspace #putter-3d-canvas { width:100%;height:calc(100% - 145px); }
 .pt452-workspace .pt452-popovers { left:10px;right:10px;top:auto;bottom:145px;width:auto;height:var(--m499-panel);max-height:var(--m499-panel); }
 .pt452-workspace .pt434-face-badge { right:12px; }
 .pt452-workspace .pt452-panel>header { padding-block:2px; }
}

@media (max-height:500px) and (min-width:540px) and (max-width:1400px) {
 .pt420-page .pt452-workspace .pt420-stage,.pt420-page .pt452-workspace .pt420-stage:has(.pt452-panel:not([hidden])) { height:330px; }
 .pt507-switcher { left:52%;right:10px;bottom:77px; }
 .pt452-workspace #putter-3d-canvas { width:50%;height:255px; }
 .pt452-workspace .pt452-popovers { left:52%;top:62px;right:10px;bottom:auto;width:auto;height:150px;max-height:150px; }
}

@media (forced-colors:active) {
 .pt507-more:focus-within { outline-color:Highlight; }
 .pt507-more.is-active,.pt507-switcher>button[aria-expanded=true] { outline:2px solid Highlight;outline-offset:-3px; }
}
