/* Consistent form metrics across Safari and Android Chrome. */
html { -webkit-text-size-adjust:100%; text-size-adjust:100%; }
button,input,select,textarea { font-family:inherit; }
@media(max-width:900px){
  html:not(#label-a#label-b#label-c#label-d#label-e) #page-home .portal-category-grid {
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    grid-template-rows:none!important;grid-auto-rows:minmax(112px,auto)!important;
    height:auto!important;max-height:none!important;
    align-items:stretch!important;
  }
  html:not(#label-a#label-b#label-c#label-d#label-e) #page-home .portal-category {
    display:grid!important;grid-template-columns:minmax(0,1fr)!important;
    grid-template-rows:44px auto!important;justify-items:center!important;
    align-content:start!important;align-items:center!important;
    gap:8px!important;padding:12px 8px!important;min-width:0!important;
    height:auto!important;min-height:112px!important;
    text-align:center!important;font-size:12px!important;line-height:1.35!important;
  }
  html:not(#label-a#label-b#label-c#label-d#label-e) #page-home .portal-category :is(img,.veh-icon) {
    width:72px!important;height:44px!important;max-width:100%!important;
    object-fit:contain!important;margin:0!important;justify-self:center!important;
  }
  html:not(#label-a#label-b#label-c#label-d#label-e) #page-home .portal-category span {
    display:flex!important;align-items:center!important;justify-content:center!important;
    width:100%!important;min-width:0!important;min-height:2.7em!important;
    margin:0!important;padding:0!important;text-align:center!important;
    white-space:normal!important;word-break:normal!important;overflow-wrap:normal!important;
    line-height:1.35!important;letter-spacing:normal!important;
  }
  .hsb-field,.hsb-field select,.hsb-field input { min-width:0;box-sizing:border-box; }
  .mobile-bottom-nav button { min-width:0;position:relative; }
  .mobile-bottom-nav button>span:not(.message-count-badge) { text-align:center;line-height:1.25;white-space:nowrap; }
}

