/* INJ Node · Home launcher grid v16.08.05
   Compact two-column cards plus full-width INJC ETF, INJ Workspace and Treasury.
   Isolated to the Home's mobile grid; links and animations stay unchanged. */
@media (max-width:799px) {
  html[data-inj-page="index"] body #entryGate
  .entry-gate-shell:not(.first-access) > .entry-actions.entry-flat-v44 {
    display:grid!important;
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    grid-auto-flow:row!important;
    grid-auto-rows:auto!important;
    gap:10px!important;
    align-items:stretch!important;
    justify-items:stretch!important;
    width:100%!important;
    min-width:0!important;
  }

  /* Command Center, Comparison, Potential Value and Reward Ladder remain compact. */
  html[data-inj-page="index"] body #entryGate
  .entry-gate-shell:not(.first-access) > .entry-actions.entry-flat-v44
  > .entry-action:not(#entryTreasuryButton):not(#entryWorkspaceButton):not(#entryInjcEtfButton):not(#entryMarketEventsButton):not(#entryFreedomButton) {
    display:flex!important;
    position:relative!important;
    box-sizing:border-box!important;
    grid-column:auto!important;
    grid-row:auto!important;
    flex-direction:column!important;
    flex-wrap:nowrap!important;
    align-items:center!important;
    justify-content:flex-end!important;
    align-self:stretch!important;
    gap:0!important;
    width:100%!important;
    min-width:0!important;
    max-width:100%!important;
    height:108px!important;
    min-height:108px!important;
    max-height:none!important;
    margin:0!important;
    padding:9px 8px 12px!important;
    overflow:hidden!important;
    text-align:center!important;
  }

  html[data-inj-page="index"] body #entryGate
  .entry-gate-shell:not(.first-access) > .entry-actions.entry-flat-v44
  > .entry-action:not(#entryTreasuryButton):not(#entryWorkspaceButton):not(#entryInjcEtfButton):not(#entryMarketEventsButton):not(#entryFreedomButton)
  > :is(.entry-action-icon,.entry-action-arrow) {
    display:none!important;
  }

  /* All existing SVG artwork stays in the same top-center position. */
  html[data-inj-page="index"] body #entryGate
  .entry-gate-shell:not(.first-access) > .entry-actions.entry-flat-v44
  > .entry-action:not(#entryTreasuryButton):not(#entryWorkspaceButton):not(#entryInjcEtfButton):not(#entryMarketEventsButton):not(#entryFreedomButton) > span.inj-tile-scene {
    display:block!important;
    box-sizing:border-box!important;
    position:absolute!important;
    z-index:1!important;
    top:9px!important;
    left:50%!important;
    right:auto!important;
    bottom:auto!important;
    width:70%!important;
    max-width:112px!important;
    min-width:0!important;
    height:46px!important;
    min-height:0!important;
    margin:0!important;
    padding:0!important;
    flex:none!important;
    order:0!important;
    align-self:auto!important;
    opacity:.89!important;
    transform:translateX(-50%)!important;
    -webkit-transform:translateX(-50%)!important;
    overflow:hidden!important;
    pointer-events:none!important;
  }
  html[data-inj-page="index"] body #entryGate
  .entry-gate-shell:not(.first-access) > .entry-actions.entry-flat-v44
  > .entry-action:not(#entryTreasuryButton):not(#entryWorkspaceButton):not(#entryInjcEtfButton):not(#entryMarketEventsButton):not(#entryFreedomButton) > span.inj-tile-scene svg {
    display:block!important;
    width:100%!important;
    height:100%!important;
  }

  /* One shared title size for all compact destinations.
     Allow two lines rather than shrinking the font to fit the narrower card. */
  html[data-inj-page="index"] body #entryGate
  .entry-gate-shell:not(.first-access) > .entry-actions.entry-flat-v44
  > .entry-action:not(#entryTreasuryButton):not(#entryWorkspaceButton):not(#entryInjcEtfButton):not(#entryMarketEventsButton):not(#entryFreedomButton)
  > span:not(.entry-action-icon):not(.inj-tile-scene) {
    display:flex!important;
    box-sizing:border-box!important;
    position:relative!important;
    z-index:2!important;
    order:1!important;
    flex:0 0 auto!important;
    align-items:center!important;
    justify-content:center!important;
    align-self:center!important;
    width:100%!important;
    min-width:0!important;
    max-width:100%!important;
    height:auto!important;
    margin:0!important;
    padding:0!important;
    text-align:center!important;
    background:transparent!important;
  }
  html[data-inj-page="index"] body #entryGate
  .entry-gate-shell:not(.first-access) > .entry-actions.entry-flat-v44
  > .entry-action:not(#entryTreasuryButton):not(#entryWorkspaceButton):not(#entryInjcEtfButton):not(#entryMarketEventsButton):not(#entryFreedomButton) strong {
    display:block!important;
    width:100%!important;
    max-width:100%!important;
    min-width:0!important;
    font-size:clamp(12px,3.35vw,14px)!important;
    font-weight:800!important;
    line-height:1.2!important;
    margin:0!important;
    text-align:center!important;
    white-space:normal!important;
    overflow-wrap:normal!important;
    word-break:normal!important;
    text-wrap:balance;
    overflow:visible!important;
    text-overflow:clip!important;
  }

  /* Reading order: INJC ETF full width, then INJ Workspace and Treasury. */
  html[data-inj-page="index"] body #entryGate #entryDashboardButton{order:1!important}
  html[data-inj-page="index"] body #entryGate #entryLiveButton{order:2!important}
  html[data-inj-page="index"] body #entryGate #entryLiveChartsButton{order:3!important}
  html[data-inj-page="index"] body #entryGate #entryOrderBookButton{order:4!important}
  html[data-inj-page="index"] body #entryGate #entryPerformanceButton{order:5!important}
  html[data-inj-page="index"] body #entryGate #entryConverterButton{order:6!important}
  html[data-inj-page="index"] body #entryGate #entryMarketButton{order:7!important}
  html[data-inj-page="index"] body #entryGate #entryLiveRewardsButton{order:8!important}
  html[data-inj-page="index"] body #entryGate #entryCommandCenterButton{order:9!important}
  html[data-inj-page="index"] body #entryGate #entryComparisonButton{order:10!important}
  html[data-inj-page="index"] body #entryGate #entryVisualizeWealthButton{order:11!important}
  html[data-inj-page="index"] body #entryGate #entryRewardLadderButton{order:12!important}
  html[data-inj-page="index"] body #entryGate
  .entry-gate-shell:not(.first-access) > .entry-actions.entry-flat-v44 > #entryInjcEtfButton{
    order:13!important;
    grid-column:1/-1!important;
    grid-row:auto!important;
    width:100%!important;
  }
  html[data-inj-page="index"] body #entryGate
  .entry-gate-shell:not(.first-access) > .entry-actions.entry-flat-v44 > #entryWorkspaceButton {
    order:14!important;
    grid-column:1/-1!important;
    grid-row:auto!important;
    width:100%!important;
  }
  html[data-inj-page="index"] body #entryGate
  .entry-gate-shell:not(.first-access) > .entry-actions.entry-flat-v44 > #entryTreasuryButton {
    order:15!important;
    grid-column:1/-1!important;
    grid-row:auto!important;
    width:100%!important;
  }
}
@media (max-width:360px) {
  html[data-inj-page="index"] body #entryGate
  .entry-gate-shell:not(.first-access) > .entry-actions.entry-flat-v44 {
    gap:8px!important;
  }
}
