/* Keep the station controls below the measured maintenance banner. */
.maintenance-active .station-sheet.ev-station-reference-surface {
  max-height: calc(100dvh - var(--nav) - var(--maintenance-banner-height, 0px) - 10px);
}

/* Leave room for browser chrome on short phone viewports. */
@media (max-width: 520px) and (max-height: 680px) {
  .ev-profile-home .ev-profile-heading,
  .ev-profile-home .ev-profile-summary { margin-bottom: 8px; }

  .ev-profile-home .ev-profile-hero {
    margin-bottom: 7px;
    padding-block: 3px 6px;
  }

  .ev-profile-home .ev-profile-hero-visual {
    width: min(84%, 330px);
    height: clamp(98px, calc(30dvh - 70px), 134px);
    aspect-ratio: auto;
    background-position: right center;
  }

  .ev-profile-home .ev-profile-grid { gap: 7px; }

  .ev-profile-home .ev-profile-tile {
    min-height: 0;
    height: clamp(76px, calc(22dvh - 48px), 103px);
    aspect-ratio: auto;
  }

  .ev-profile-home .ev-profile-art { bottom: 2px; }
  .ev-profile-home .ev-profile-logout { margin-top: 7px; }
}
