/* The race owns its UI; keep only the scene, loading state and navigation map. */
html.is-orienteering-space .share-viewer-wrap > :not(#share-viewer):not(#share-loading-cover):not(#share-viewer-status):not(#share-sandtable-map):not(#share-sandtable-control) {
  display: none !important;
}

html.is-orienteering-space #share-sandtable-map {
  top:16px;right:var(--race-panel-right,16px);left:auto;bottom:auto;
  width:var(--race-panel-width,300px);max-width:calc(100vw - 32px);max-height:max(80px,calc(var(--race-panel-top,60vh) - 16px));transform:none;
}
html.is-orienteering-space #share-sandtable-map .share-sandtable-image-wrap {
  max-height:max(32px,calc(var(--race-panel-top,60vh) - 64px));
}
html.is-orienteering-space #share-sandtable-map.is-expanded {width:min(600px,calc(100vw - 32px))}
html.is-orienteering-space .share-viewer-wrap #share-sandtable-control {
  top:16px;right:calc(var(--race-panel-right,16px) + var(--race-panel-width,300px) + 8px);
}
@media(max-width:480px){html.is-orienteering-space .share-viewer-wrap #share-sandtable-control{right:auto;left:10px}}

/* Annotation dialogs live outside the viewer wrapper and must also stay out of a race. */
html.is-orienteering-space [id^="share-spatial-"] {display:none !important}
