.terrain-readout {
  position: absolute;
  z-index: 6;
  top: calc(var(--layout-top, 64px) + 12px);
  right: calc(var(--layout-side, 306px) + 14px);
  max-width: calc(100% - var(--layout-side, 306px) - 145px);
  display: flex;
  flex-wrap: wrap;
  gap: 4px 12px;
  padding: 7px 10px;
  border: 1px solid #cfddd6;
  border-radius: 8px;
  background: #f4f8f7ed;
  color: #274f58;
  font-size: 11px;
  line-height: 1.5;
  font-variant-numeric: tabular-nums;
  pointer-events: none;
}
.terrain-readout span { white-space: nowrap; }
.place-elevation { color: #426973; font-size: 11px; margin: -2px 0 10px; }
.camera-gesture-hint { font-size: 11px; line-height: 1.6; color: #426973; margin: 0 0 10px; }
body.ocean-view .terrain-readout, body.immersive .terrain-readout { display: none; }
#marine-grid-note { font-size: 10px; margin-top: 4px; color: #526f76; }
@media (max-width: 700px) and (min-height: 501px) {
  .terrain-readout {
    top: calc(var(--layout-top, 104px) + var(--layout-layer-size, 48px) + 7px);
    left: 8px;
    right: auto;
    max-width: calc(100% - 75px);
    padding: 4px 7px;
    gap: 2px 8px;
    font-size: 10px;
  }
}
@media (max-height: 500px) {
  .terrain-readout { font-size: 9px; padding: 3px 5px; }
}
@media (min-width: 701px) and (max-height: 680px), (max-height: 500px) and (pointer: coarse) and (orientation: landscape) {
  .terrain-readout { top: calc(var(--layout-top, 56px) + 62px); }
}
