/* SIQPUEDES V17.5.401 — Perfil vertical, sin desplazamiento lateral.
   Only affects profile screens on phones / tablets, never the public pages. */
@media(max-width:820px){
  html:has(body.profile-route){overflow-x:hidden!important;overscroll-behavior-x:none}
  body.profile-route{
    width:100%!important;max-width:100%!important;overflow-x:hidden!important;
    overscroll-behavior-x:none!important;touch-action:pan-y!important;
  }
  body.profile-route #profilePage{
    width:100%!important;max-width:100%!important;min-width:0!important;
    overflow-x:hidden!important;box-sizing:border-box!important;
    touch-action:pan-y!important;
  }
  body.profile-route :is(.profile-page-bg,.profile-page-shell,.profile-page-layout,.profile-sidebar,.profile-page-main){
    box-sizing:border-box!important;min-width:0!important;max-width:100%!important;
  }
  body.profile-route .profile-page-shell{
    width:calc(100% - 16px)!important;margin-inline:auto!important;
    overflow-x:clip!important;
  }
  body.profile-route .profile-page-layout{
    display:grid!important;grid-template-columns:minmax(0,1fr)!important;
    width:100%!important;gap:12px!important;overflow-x:clip!important;
  }
  body.profile-route .profile-page-main{width:100%!important;overflow-x:clip!important}
  body.profile-route :is(.portal-block,.portal-section,.portal-panel,.portal-welcome,.portal-contest-card,.portal-entry-card,.portal-summary-card,.portal-card-actions,.portal-form-grid,.profile-user-card,.profile-page-top){
    box-sizing:border-box!important;min-width:0!important;max-width:100%!important;
  }
  body.profile-route :is(.portal-block,.portal-section,.portal-panel,.portal-contest-card,.portal-entry-card,.portal-summary-card,.profile-user-card){overflow-wrap:anywhere!important}
  body.profile-route .profile-page-main img{max-width:100%!important;height:auto}
  body.profile-route :is(input,select,textarea){max-width:100%!important;min-width:0!important;box-sizing:border-box!important}
  /* A deliberately scrollable table remains inside its own boundary; the page doesn't move sideways. */
  body.profile-route :is(.portal-table-wrap,.portal-table-scroll){max-width:100%!important;overflow-x:auto;overscroll-behavior-x:contain}
}
