/* INJ Node · Home Pro · fixed iPhone portrait composition.
   ONLY the ready Home is frozen. Tools, Market, ETF, Rewards, Lite and
   first-access onboarding retain their own scrolling and gesture rules. */
@media screen and (max-width:700px) and (orientation:portrait){
 html[data-inj-page="index"][data-inj-home-tab="home"][data-inj-home-static="true"]:not([data-inj-view-mode="light"]),
 html[data-inj-page="index"][data-inj-home-tab="home"][data-inj-home-static="true"]:not([data-inj-view-mode="light"]) body.entry-gate-open {
  height:100dvh!important;
  max-height:100dvh!important;
  overflow-x:hidden!important;
  overflow-y:hidden!important;
  overscroll-behavior-y:none!important;
 }
 html[data-inj-page="index"][data-inj-home-tab="home"][data-inj-home-static="true"]:not([data-inj-view-mode="light"])
 body.entry-gate-open:not(.menu-overlay-open):not(.inj-section-open)
 #entryGate#entryGate#entryGate#entryGate#entryGate#entryGate#entryGate#entryGate.entry-gate.visible{
  position:fixed!important;
  inset:0!important;
  width:100%!important;
  height:100dvh!important;
  min-height:0!important;
  max-height:100dvh!important;
  overflow-x:hidden!important;
  overflow-y:hidden!important;
  overscroll-behavior:none!important;
  -webkit-overflow-scrolling:auto!important;
  touch-action:pan-x!important;
  transform:none!important;
 }
 html[data-inj-page="index"][data-inj-home-tab="home"][data-inj-home-static="true"]:not([data-inj-view-mode="light"])
 body.entry-gate-open #entryGate#entryGate#entryGate#entryGate#entryGate#entryGate#entryGate#entryGate.entry-gate.visible
 > .entry-gate-shell:not(.first-access){
  height:auto!important;
  min-height:0!important;
  max-height:none!important;
  overflow:visible!important;
  align-content:start!important;
  padding-bottom:0!important;
  margin-bottom:0!important;
 }
 /* The Home graph absorbs the *occasional* iOS size difference.
    The 244px reference and the original three icon launchers are retained
    whenever there is room, matching the photographed layout. */
 html[data-inj-page="index"][data-inj-home-tab="home"][data-inj-home-static="true"]:not([data-inj-view-mode="light"])
 body.entry-gate-open #entryGate#entryGate#entryGate#entryGate#entryGate#entryGate#entryGate#entryGate
 .entry-gate-shell:not(.first-access) > #entryInsights.entry-price-card{
  height:var(--inj-home-fit-chart-height,244px)!important;
  min-height:148px!important;
  max-height:var(--inj-home-fit-chart-height,244px)!important;
 }
 /* Compact only when geometry actually says the dock would cover a tile. */
 html[data-inj-home-static="true"][data-inj-home-static-level="1"][data-inj-home-tab="home"]{
  --inj-pro-link-height:clamp(65px,7.7dvh,78px);
  --inj-pro-link-icon:clamp(29px,4dvh,36px);
 }
 html[data-inj-home-static="true"][data-inj-home-static-level="2"][data-inj-home-tab="home"]{
  --inj-pro-link-height:clamp(57px,7dvh,69px);
  --inj-pro-link-icon:clamp(26px,3.3dvh,32px);
 }
 html[data-inj-home-static="true"][data-inj-home-static-level="1"][data-inj-home-tab="home"] body
 #entryGate#entryGate#entryGate .entry-wallet-section > .entry-wallet-heading{
  margin-top:6px!important;
 }
 html[data-inj-home-static="true"][data-inj-home-static-level="2"][data-inj-home-tab="home"] body
 #entryGate#entryGate#entryGate .entry-wallet-section > .entry-wallet-heading{
  margin-top:3px!important;
 }
 html[data-inj-home-static="true"][data-inj-home-static-level="2"][data-inj-home-tab="home"] body
 #entryGate#entryGate#entryGate .entry-wallet-section > #entryWallets.entry-wallets{
  padding-top:4px!important;padding-bottom:2px!important;
 }
 html[data-inj-home-static="true"][data-inj-home-static-level="2"][data-inj-home-tab="home"] body
 #entryGate#entryGate#entryGate .entry-gate-shell:not(.first-access) > #entryOverview.entry-overview{
  padding-top:8px!important;padding-bottom:7px!important;
 }
 html[data-inj-home-static="true"][data-inj-home-static-level="2"][data-inj-home-tab="home"] body
 #entryGate#entryGate#entryGate#entryGate#entryGate#entryGate#entryGate#entryGate
 .entry-gate-shell:not(.first-access) > .entry-actions.entry-flat-v44{
  margin-top:3px!important;
 }
}

/* Fixed Home at every viewport size. Other tabs and overlays release this flag. */
@media screen {
html[data-inj-page="index"][data-inj-home-tab="home"][data-inj-home-static="true"]:not([data-inj-view-mode="light"]):has(#entryGate#entryGate#entryGate#entryGate#entryGate#entryGate#entryGate#entryGate#entryGate#entryGate.visible),
html[data-inj-page="index"][data-inj-home-tab="home"][data-inj-home-static="true"]:not([data-inj-view-mode="light"]):has(#entryGate#entryGate#entryGate#entryGate#entryGate#entryGate#entryGate#entryGate#entryGate#entryGate.visible) body.entry-gate-open {
 height:100dvh!important;min-height:0!important;max-height:100dvh!important;
 overflow:hidden!important;overscroll-behavior:none!important;
}
html[data-inj-page="index"][data-inj-home-tab="home"][data-inj-home-static="true"]:not([data-inj-view-mode="light"]) body.entry-gate-open #entryGate#entryGate#entryGate#entryGate#entryGate#entryGate#entryGate#entryGate#entryGate#entryGate.visible {
 position:fixed!important;inset:0!important;width:100%!important;
 height:100dvh!important;min-height:0!important;max-height:100dvh!important;
 overflow:hidden!important;overscroll-behavior:none!important;
}
html[data-inj-page="index"][data-inj-home-tab="home"][data-inj-home-static="true"]:not([data-inj-view-mode="light"]) body.entry-gate-open #entryGate#entryGate#entryGate#entryGate#entryGate#entryGate#entryGate#entryGate#entryGate#entryGate.visible > .entry-gate-shell:not(.first-access) {
 min-height:0!important;padding-bottom:0!important;
}
}
