#spherePager{position:absolute;bottom:8px;left:50%;transform:translateX(-50%);display:flex;gap:10px;align-items:center;z-index:3;background:#f2f4f1e8;border-radius:5px}
#spherePager[hidden]{display:none}#spherePager button{min-width:40px;min-height:38px;padding:4px;font-size:18px;color:var(--blue)}#spherePager button:disabled{opacity:.3}#spherePageLabel{font-size:12px;color:var(--muted)}
@media(max-width:760px){
 html,body{width:100%;overflow-x:hidden}body{font-size:14px}
 header{padding:9px 14px 7px;gap:4px}.brand{min-height:44px;padding:4px 0;gap:10px}.brand-symbol{width:30px;height:30px}.brand-wordmark strong{font-size:16px}.brand-wordmark small{font-size:8px}
 .header-nav{gap:12px;margin:0}.header-nav button,.header-nav #aboutHeader{font-size:13px;padding:9px 0}
 #portfolioMain .explorer{grid-template-rows:auto auto auto minmax(320px,1fr) auto}
 #portfolioMain .view-head{min-height:42px;padding:7px 0;margin:0 14px}.view-head .surface-title{font-size:19px}.view-head p{font-size:12px}
 .medium-rail{padding:0 14px}.medium-rail>summary{font-size:13px;min-height:36px;padding:7px 9px}
 #portfolioMain .dimension-tools{margin:6px 14px 0}#dimensionNav{gap:2px}#dimensionNav button{font-size:13px;padding:7px 6px;min-height:34px}
 .dimension-row{gap:4px}#categoryPicker{font-size:16px;min-height:36px;max-width:100%}.search-controls input,.search-controls select{font-size:16px;min-height:40px}
 #portfolioMain #stage{height:clamp(320px,calc(100dvh - 290px),540px);min-height:320px;margin:2px 7px 0}
 .orb-corner{font-size:11px;pointer-events:none}.orb-corner.top-left{top:10px;left:10px}.orb-corner.bottom-right{bottom:12px;right:8px}
 #portfolioMain .bottom-bar{padding:6px 10px;gap:6px}.bottom-bar p{font-size:11px}.controls button{min-width:40px;min-height:38px}
 dialog{max-width:calc(100vw - 16px);max-height:calc(100dvh - 16px)}.close{min-height:40px;min-width:62px}
 #courseScroll{padding:12px}.feedback-entry p{font-size:15px}.course-view-controls button{min-width:44px;min-height:44px}
}
@supports not (height:100dvh){@media(max-width:760px){#portfolioMain #stage{height:380px}dialog{max-height:95vh}}}

.brand .official-logo{display:block;width:280px;height:auto;max-width:100%;mix-blend-mode:multiply}.brand{min-width:0}@media(max-width:760px){.brand .official-logo{width:215px}.brand{min-height:64px;padding:0}}

/* Mobile: the medium/form entry is primary, dimension controls are quieter. */
@media(max-width:760px){
 .medium-rail>summary{font-size:15px;font-weight:600;color:#a45c35;background:#f4e8dc;border:1px solid #c9754480;padding:10px 12px;min-height:42px;box-shadow:0 2px 6px #75462208}
 #dimensionNav{gap:0 2px}#dimensionNav button{font-size:11px;font-weight:400;padding:6px 4px;min-height:30px;color:#73808a}
 #dimensionNav button[aria-pressed=true]{color:var(--blue);font-weight:500}
 #categoryPicker{font-size:12px;min-height:30px;padding:4px 7px;width:auto;max-width:100%;color:#73808a;background-color:#f9faf7}
 #portfolioMain .dimension-tools{margin-top:9px}
}
