/* HYPE Fundamentals: shrink-only mobile metric-grid alignment.
   Loaded AFTER mobile-unified-ui.css. No chart/SVG geometry edits. */
@media (max-width: 720px), (min-width: 721px) and (max-width: 1060px) and (orientation: landscape) and (max-height: 500px) and (any-pointer: coarse) {
  #mobileTokenCards .one-line-metrics.hf-chart-expanded {
    align-items: start !important;
  }
  #mobileTokenCards .one-line-metrics.hf-chart-expanded > .hf-four-grid {
    box-sizing: border-box !important;
    height: 91px !important;
    min-height: 91px !important;
    max-height: 91px !important;
    grid-template-rows: repeat(2, minmax(0, 1fr)) !important;
    gap: 3px !important;
    align-self: start !important;
  }
  #mobileTokenCards .one-line-metrics.hf-chart-expanded > .hf-four-grid > .hf-grid-tile {
    box-sizing: border-box !important;
    height: 100% !important;
    min-height: 0 !important;
    max-height: 100% !important;
    min-width: 0 !important;
    padding: 1px 2px 13px !important;
    gap: 0 !important;
    justify-content: flex-start !important;
    overflow: hidden !important;
  }
  #mobileTokenCards .hf-four-grid .hf-tile-title {
    font-size: clamp(6.5px, 1.6vw, 8.5px) !important;
    line-height: .9 !important;
    min-height: 0 !important;
    margin: 0 !important;
    max-width: 100% !important;
    display: -webkit-box !important;
    -webkit-box-orient: vertical !important;
    -webkit-line-clamp: 2 !important;
    overflow: hidden !important;
    flex: 0 0 auto !important;
  }
  #mobileTokenCards .hf-four-grid .hf-tile-value {
    display: -webkit-box !important;
    -webkit-box-orient: vertical !important;
    -webkit-line-clamp: 2 !important;
    font-size: clamp(8px, 1.4vw, 9px) !important;
    line-height: .88 !important;
    letter-spacing: -.025em !important;
    margin: 0 !important;
    max-width: 100% !important;
    overflow: hidden !important;
    overflow-wrap: anywhere !important;
    white-space: normal !important;
    font-variant-numeric: tabular-nums;
    flex: 0 0 auto !important;
  }
  #mobileTokenCards .hf-four-grid .hf-value-unavailable {
    font-size: clamp(7px, 1.2vw, 8.5px) !important;
    line-height: .9 !important;
  }
  #mobileTokenCards .hf-four-grid .hf-tile-info {
    position: absolute !important;
    right: 2px !important;
    bottom: 1px !important;
    min-height: 13px !important;
    min-width: 13px !important;
    height: 13px !important;
    width: 13px !important;
    padding: 0 !important;
    margin: 0 !important;
    line-height: 13px !important;
    font-size: 11px !important;
    align-self: unset !important;
  }
  /* Chart dimensions and SVG animation intentionally remain unchanged. */
}
