.orbit-surface { position:relative; isolation:isolate; overflow:hidden; background:#09151e; }
.orbit-surface[hidden], .locator-largechart[hidden] { display:none !important; }
.orbit-canvas { display:block; width:100%; height:100%; outline-offset:-4px; touch-action:none; user-select:none; -webkit-user-select:none; -webkit-touch-callout:none; cursor:grab; }
.orbit-canvas.can-open { cursor:pointer; }
.orbit-canvas:active { cursor:grabbing; }
.orbit-canvas:focus-visible { outline:2px solid #f5d395; }
#atlas-orbit { position:absolute; inset:0; }
#stage.sphere-active #terrain, #stage.sphere-active #graph { display:none; }
#stage.sphere-active .stage-caption { top:12px; left:14px; text-shadow:0 1px 5px #04131c; }
#stage.sphere-active .stage-title { color:#f4e6c4; font-size:clamp(16px,1.3vw,21px); }
#stage.sphere-active .stage-region { color:#a4c6c7; letter-spacing:.09em; }
#stage.sphere-active #stage-help { background:#10252ed9; border-color:#53767d; }
.locator-dialog.orbit-open .locator-legend { display:none; }
@media (max-width:760px) and (orientation:portrait) {
  .workspace:not(.fullscreen) #stage.sphere-active { height:clamp(318px,52svh,535px); }
  #stage.sphere-active .stage-title { font-size:1rem; max-width:75vw; }
}
.orbit-hint { display:none; }
.sphere-active .orbit-hint, .locator-dialog.orbit-open .orbit-hint {
  display:block; position:absolute; left:50%; bottom:6px; transform:translateX(-50%);
  z-index:2; pointer-events:none; width:max-content; max-width:calc(100% - 18px); box-sizing:border-box; text-align:center; text-wrap:balance; color:#d1e3de;
  background:#0b1923d9; border-radius:12px; padding:3px 9px;
  font:500 .8rem/1.25 var(--sans); text-shadow:0 1px 2px #08141c;
}
.orbit-hint .finger-hint { display:none; }
@media (hover:none), (pointer:coarse), (max-width:760px) and (orientation:portrait) {
  .orbit-hint .finger-hint { display:inline; }
  .orbit-hint .pointer-hint { display:none; }
}
.orbit-canvas.is-dragging { cursor:grabbing; }

.family-light, .legend-row #clear-focus.family-light {
  display:grid; grid-template-columns:min-content minmax(0,1fr) min-content;
  column-gap:7px; align-items:center; text-align:left; white-space:normal;
  min-height:38px; padding:4px 10px; border-radius:12px;
}
.family-light::before {
  content:''; width:8px; height:8px; border:1px solid currentColor;
  border-radius:50%; grid-column:1; grid-row:1 / span 2;
}
.family-light strong,.family-light small { grid-column:2; line-height:1.23; }
.family-light strong { font-size:.825rem; font-weight:650; overflow-wrap:anywhere; }
.family-light small { font-size:.75rem; font-weight:500; }
.family-light[aria-pressed=true]::before { background:#9bead5; border-color:#326a5e; box-shadow:0 0 0 2px #78cfb33d; }
.family-light[aria-pressed=true]::after { content:'×'; grid-column:3; grid-row:1 / span 2; }
.family-light[hidden] { display:none; }
.locator-chartbar:has(.locator-pin:not([hidden])) .locator-legend { display:none; }
.locator-pin { border:1px solid #668f81; background:#244740; color:#ebf6e9; max-width:64%; }
.locator-pin small { color:#b3e5d4; }
.legend-row #clear-focus.family-light { flex:0 1 auto; max-width:100%; }
@media (max-width:760px) {
  .sphere-active .orbit-hint,.locator-dialog .orbit-hint { font-size:.76rem; }
  .locator-pin { max-width:calc(100% - 121px); }
}

@media (max-width:760px) and (orientation:portrait) {
  .legend-row:has(#clear-focus.family-light) { height:auto; min-height:48px; padding-block:3px; }
}

#map-record, .locator-destination .locator-pick-hint { display:none; }
@media (max-width:760px) {
  #map-record {
    display:block; flex:none; padding:.35rem .625rem;
    background:#f6f3e8; color:#263e34; border-block:1px solid #d7d7c6;
  }
  #map-record #peek-record {
    display:flex; width:100%; min-height:48px; align-items:center;
    gap:.55rem; text-align:left; padding:0; border:0; background:transparent;
  }
  #map-record .peek-medal { width:32px; height:32px; font-size:.875rem; }
  #map-record .peek-name { flex:1; min-width:0; gap:.125rem; }
  #map-record .peek-name strong { white-space:normal; color:#243a30; font-size:1.16rem; }
  #map-record .peek-name small {
    margin:0; white-space:normal; color:#475c50; font:500 .8125rem/1.25 var(--sans);
  }
  #map-record .peek-open-label {
    display:inline-flex; flex:none; align-items:center; justify-content:center;
    padding:.55rem .85rem; min-height:44px; margin:0; border-radius:1.5rem;
    color:#fffced; background:#274c3f; font:650 .875rem/1.2 var(--sans);
    text-decoration:none; white-space:nowrap;
  }
  #peek-record:hover .peek-open-label, #peek-record:focus-visible .peek-open-label { background:#193c30; }
  .profile-shortcut, #map-panel:has(#stage.has-highlight) .pick-instruction { display:none; }
  #map-panel:has(#stage.has-highlight) .profile-shortcut { display:inline; }
  #selection-reading #peek-near {
    margin-top:.3rem; padding:0 .2rem; background:transparent; color:#325442;
    font-size:.875rem; text-decoration:underline; text-underline-offset:.17em;
  }
  #selection-peek:has(#selection-reading:empty):not(:has(#map-record)) { display:none; }
  #selection-peek #map-record { padding:.15rem 0 .35rem; border-top:0; }
  .sphere-active .orbit-hint, .locator-dialog.orbit-open .orbit-hint, .legend-row .touch-hint,
  .locator-destination .locator-pick-detail { display:none; }
  .locator-destination .locator-pick-hint { display:block; font-size:.8125rem; color:#cfe0ce; }
}
@media (max-width:350px) {
  #map-record .peek-medal { display:none; }
}
@media (orientation:landscape) and (min-width:560px) and (max-width:760px) and (max-height:480px) {
  #selection-peek #map-record .peek-medal { display:none; }
}
