/* v16.02.04 – INJ Node mobile Home launcher consistency.
   Keeps the native 2-column Home, reserves a complete line for Command Center
   and prevents decorative artwork from ever covering a label. */
@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;
 }
 /* Arrange four complete pairs first, then the full-width destinations. */
 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 #entryTreasuryButton{order:12!important}

 html[data-inj-page="index"] body #entryGate
 .entry-gate-shell:not(.first-access) > .entry-actions.entry-flat-v44
 > :is(#entryDashboardButton,#entryLiveButton,#entryLiveChartsButton,#entryOrderBookButton,
 #entryPerformanceButton,#entryConverterButton,#entryMarketButton,#entryLiveRewardsButton){
  box-sizing:border-box!important;display:flex!important;
  position:relative!important;
  grid-column:auto!important;grid-row:auto!important;
  flex-direction:column!important;flex-wrap:nowrap!important;
  justify-content:flex-end!important;align-items:center!important;
  width:100%!important;min-width:0!important;max-width:100%!important;
  height:104px!important;min-height:104px!important;max-height:none!important;
  gap:0!important;padding:12px 8px 13px!important;margin:0!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
 > :is(#entryDashboardButton,#entryLiveButton,#entryLiveChartsButton,#entryOrderBookButton,
 #entryPerformanceButton,#entryConverterButton,#entryMarketButton,#entryLiveRewardsButton)
 > :is(.entry-action-icon,.entry-action-arrow){display:none!important}
 html[data-inj-page="index"] body #entryGate
 .entry-gate-shell:not(.first-access) > .entry-actions.entry-flat-v44
 > :is(#entryDashboardButton,#entryLiveButton,#entryLiveChartsButton,#entryOrderBookButton,
 #entryPerformanceButton,#entryConverterButton,#entryMarketButton,#entryLiveRewardsButton)
 > span.inj-tile-scene{
  display:block!important;position:absolute!important;box-sizing:border-box!important;
  top:11px!important;bottom:auto!important;left:50%!important;right:auto!important;
  width:70%!important;max-width:116px!important;min-width:0!important;
  height:51px!important;min-height:0!important;
  margin:0!important;padding:0!important;
  flex:none!important;order:0!important;align-self:auto!important;
  transform:translateX(-50%)!important;-webkit-transform:translateX(-50%)!important;
  opacity:.89!important;z-index:1!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
 > :is(#entryDashboardButton,#entryLiveButton,#entryLiveChartsButton,#entryOrderBookButton,
 #entryPerformanceButton,#entryConverterButton,#entryMarketButton,#entryLiveRewardsButton)
 > span:not(.entry-action-icon):not(.inj-tile-scene){
  position:relative!important;z-index:2!important;
  display:flex!important;flex:0 0 auto!important;order:1!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;padding:0!important;margin:0!important;
  text-align:center!important;
 }
 html[data-inj-page="index"] body #entryGate
 .entry-gate-shell:not(.first-access) > .entry-actions.entry-flat-v44
 > :is(#entryDashboardButton,#entryLiveButton,#entryLiveChartsButton,#entryOrderBookButton,
 #entryPerformanceButton,#entryConverterButton,#entryMarketButton,#entryLiveRewardsButton) strong{
  width:100%!important;min-width:0!important;
  font-size:clamp(12px,3.35vw,14px)!important;
  line-height:1.2!important;font-weight:800!important;
  white-space:normal!important;overflow:hidden!important;
  text-overflow:ellipsis!important;overflow-wrap:normal!important;
  text-align:center!important;margin:0!important;
 }

 /* Command Center is a separate full-width launcher, not a squeezed square.
    Hide its old small icon so it never overlaps the animated scene or title. */
 html[data-inj-page="index"] body #entryGate
 .entry-gate-shell:not(.first-access) > .entry-actions.entry-flat-v44
 > #entryCommandCenterButton{
  box-sizing:border-box!important;position:relative!important;
  display:flex!important;flex-direction:row!important;flex-wrap:nowrap!important;
  align-items:center!important;justify-content:flex-start!important;
  grid-column:1/-1!important;grid-row:auto!important;
  width:100%!important;min-width:0!important;max-width:100%!important;
  height:78px!important;min-height:78px!important;max-height:none!important;
  gap:0!important;padding:12px 112px 12px 19px!important;
  overflow:hidden!important;text-align:left!important;
 }
 html[data-inj-page="index"] body #entryGate #entryCommandCenterButton
 > :is(.entry-action-icon,.entry-action-arrow){display:none!important}
 html[data-inj-page="index"] body #entryGate #entryCommandCenterButton
 > span:not(.entry-action-icon):not(.inj-tile-scene){
  display:flex!important;position:relative!important;z-index:2!important;
  flex:1 1 auto!important;order:0!important;
  align-items:center!important;justify-content:flex-start!important;
  width:100%!important;max-width:100%!important;min-width:0!important;
  padding:0!important;margin:0!important;
  text-align:left!important;background:transparent!important;
 }
 html[data-inj-page="index"] body #entryGate #entryCommandCenterButton strong{
  font-size:clamp(14px,3.8vw,17px)!important;
  font-weight:800!important;line-height:1.25!important;
  white-space:normal!important;max-width:100%!important;
  overflow:visible!important;text-overflow:clip!important;
  text-align:left!important;
 }
 html[data-inj-page="index"] body #entryGate #entryCommandCenterButton > span.inj-tile-scene{
  position:absolute!important;display:block!important;box-sizing:border-box!important;
  right:15px!important;left:auto!important;top:50%!important;bottom:auto!important;
  width:88px!important;max-width:88px!important;min-width:0!important;
  height:54px!important;min-height:0!important;
  padding:0!important;margin:0!important;
  z-index:1!important;order:unset!important;flex:none!important;
  align-self:auto!important;opacity:.85!important;pointer-events:none!important;
  transform:translateY(-50%)!important;-webkit-transform:translateY(-50%)!important;
  overflow:hidden!important;
 }
 html[data-inj-page="index"] body #entryGate #entryCommandCenterButton > .inj-tile-scene svg{
  display:block!important;width:100%!important;height:100%!important;
 }
 html[data-inj-page="index"] body #entryGate
 .entry-gate-shell:not(.first-access) > .entry-actions.entry-flat-v44
 > :is(#entryComparisonButton,#entryVisualizeWealthButton,#entryTreasuryButton){
  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}
 html[data-inj-page="index"] body #entryGate
 .entry-gate-shell:not(.first-access) > .entry-actions.entry-flat-v44
 > #entryCommandCenterButton{padding-right:98px!important;padding-left:14px!important}
 html[data-inj-page="index"] body #entryGate
 #entryCommandCenterButton > span.inj-tile-scene{width:75px!important;right:12px!important}
}
