/* G498F9EB212_MOBILE_USABILITY_POLISH
   Final mobile-only layer: preserves desktop and data/rendering behavior. */
@media (max-width:760px){
  html{-webkit-text-size-adjust:100%;scroll-padding-bottom:calc(72px + env(safe-area-inset-bottom));}
  body{padding-bottom:max(16px,env(safe-area-inset-bottom));}

  /* A single, scrollable navigation pattern prevents five tabs from being squeezed. */
  .mnfh-nav,.mnmy-nav,.mn161m-nav,
  .mn-single-ai-nav-g498f9e33g,.mn5s-nav-native-g47m{
    display:flex!important;
    justify-content:flex-start!important;
    gap:8px!important;
    overflow-x:auto!important;
    overflow-y:hidden!important;
    -webkit-overflow-scrolling:touch;
    scrollbar-width:none;
  }
  .mnfh-nav::-webkit-scrollbar,.mnmy-nav::-webkit-scrollbar,.mn161m-nav::-webkit-scrollbar,
  .mn-single-ai-nav-g498f9e33g::-webkit-scrollbar,.mn5s-nav-native-g47m::-webkit-scrollbar{display:none;}
  .mnfh-nav a,.mnmy-nav a,.mn161m-nav a,
  .mn-single-ai-nav-g498f9e33g a,.mn5s-nav-native-g47m a{
    flex:0 0 auto!important;
    min-height:44px!important;
    height:44px!important;
    padding-left:14px!important;
    padding-right:14px!important;
  }

  /* Avoid nested vertical scrolling in the account note panel. */
  .mnmy-note-list,.mn161k-r5r3-note-scroll{
    max-height:none!important;
    overflow:visible!important;
  }

  /* Small controls become reliable touch targets without changing content or data. */
  .mn161m-switch button,.mn161m-chips button,
  .mn161m-actions a,.mn161m-actions button,
  .mn5s-note-option,.mn5s-note-save,.mn5s-note-cancel{
    min-height:40px!important;
    height:40px!important;
  }
  .mn161m-pick{min-height:60px!important;}
}

@media (max-width:390px){
  /* Four compressed counters are harder to scan than a stable two-by-two block. */
  .mn161m-stats{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important;}
  .mn161m-stats > div{padding:12px 8px!important;}
  .mn161m-matchline > strong{
    white-space:normal!important;
    display:-webkit-box!important;
    -webkit-line-clamp:2;
    -webkit-box-orient:vertical;
  }
  /* The API status is non-interactive; preserve usable room for brand and navigation. */
  .mnfh-api,.mnmy-api,.mn-single-ai-api-g498f9e33g{display:none!important;}
}

@media (prefers-reduced-motion:reduce){
  *,*::before,*::after{scroll-behavior:auto!important;animation-duration:.01ms!important;transition-duration:.01ms!important;}
}
