/* 7FCLAB Responsive Lab v0.1 · iPad Tablet widths · Production release
 * Mobile path retains all touch/navigation/Build behavior; only spatial layout changes.
 */
@media (min-width:650px) and (min-height:600px){
  /* Override every legacy 430px app-shell cap, without changing phone widths. */
  html body .app{
    width:min(100vw,920px)!important;
    max-width:920px!important;
    margin-left:auto!important;margin-right:auto!important;
  }
  html body .app>main#scroll,
  html body .app>main#playstylesMobilePage,
  html body .app>main#enhanceMobilePage,
  html body .app>main#apToolsMobilePage,
  html body .app>main#myBuildsMobilePage{
    padding-left:clamp(16px,2.2vw,28px)!important;
    padding-right:clamp(16px,2.2vw,28px)!important;
    min-width:0!important;
  }
  html body .bottom-dock{
    width:100%!important;max-width:none!important;min-width:0!important;
  }
  /* Popovers remain touch-friendly; no tiny 430px mobile sheet on a wide iPad. */
  body .facility-picker-sheet,body .my-sheet{
    width:min(calc(100vw - 32px),620px)!important;
    max-width:620px!important;
  }
  body .my-sim-backdrop{width:min(100vw,920px)!important;}
  body .dropdown{max-height:58dvh!important;}
  /* Preserve scrolling at actual viewport height (including Safari toolbars). */
  html body .app{height:100dvh!important;min-height:0!important;}
  html body .app>main{overscroll-behavior-y:contain!important;-webkit-overflow-scrolling:touch!important;}
}
@media (min-width:920px) and (min-height:600px){
  html body .app{width:min(100vw,1080px)!important;max-width:1080px!important;}
  /* iPad landscape: put complete attribute categories in two columns.
     No duplication or reorder in the data model; the DOM remains unchanged. */
  body #scroll .attrs{columns:2!important;column-gap:18px!important;}
  body #scroll .attrs>.cat{break-inside:avoid-column!important;page-break-inside:avoid!important;
    display:flow-root!important;margin-top:0!important;margin-bottom:14px!important;}
  body .my-sim-backdrop{width:min(100vw,1080px)!important;}
}
/* Existing phones (<650px) retain identical styling and viewport shell. */
