/* INJ Node · compact embedded Market destinations. 31 October 2026.
   Applied only to pages loaded inside the Market tab, never to their
   standalone equivalents. The upper Market rail already names the section. */
html[data-inj-market-embedded="true"][data-inj-market] body>.shell>.header{
  display:none!important;
  height:0!important;min-height:0!important;max-height:0!important;
  padding:0!important;margin:0!important;border:0!important;
}
html[data-inj-market-embedded="true"][data-inj-market] body>.shell{
  padding-top:0!important;
}
html[data-inj-market-embedded="true"][data-inj-page="live-charts"] #livePage{
  padding-top:0!important;margin-top:0!important;
}
/* Old iPhone navigation reserved 44px for the duplicate LIVE CHARTS name,
   then another complete row for the price. We use just the price row. */
html[data-inj-market-embedded="true"][data-inj-page="live-charts"] #livePage>.terminal-header{
  display:grid!important;
  position:relative!important;
  grid-template-columns:minmax(0,1fr)!important;
  grid-template-rows:minmax(0,1fr)!important;
  justify-content:center!important;align-items:start!important;
  width:100%!important;height:76px!important;
  min-height:76px!important;max-height:76px!important;
  padding:5px max(10px,env(safe-area-inset-right,0px)) 3px max(10px,env(safe-area-inset-left,0px))!important;
  margin:0!important;
  box-sizing:border-box!important;
  overflow:visible!important;
}
html[data-inj-market-embedded="true"][data-inj-page="live-charts"] #livePage>.terminal-header>.brand,
html[data-inj-market-embedded="true"][data-inj-page="live-charts"] #livePage>.terminal-header>#liveChartsBack{
  display:none!important;visibility:hidden!important;pointer-events:none!important;
}
html[data-inj-market-embedded="true"][data-inj-page="live-charts"] #livePage>.terminal-header>.market-heading{
  grid-column:1!important;grid-row:1!important;
  display:grid!important;justify-self:center!important;align-self:start!important;
  justify-items:center!important;align-items:center!important;
  position:relative!important;inset:auto!important;
  width:max-content!important;max-width:calc(100% - 116px)!important;
  padding:0!important;margin:0!important;gap:0!important;
  transform:none!important;text-align:center!important;
}
html[data-inj-market-embedded="true"][data-inj-page="live-charts"] #livePage>.terminal-header>.header-actions{
  display:flex!important;grid-column:1!important;grid-row:1!important;
  position:absolute!important;
  right:max(9px,env(safe-area-inset-right,0px))!important;
  top:6px!important;left:auto!important;bottom:auto!important;
  align-items:flex-start!important;align-self:start!important;justify-self:end!important;
  height:auto!important;width:auto!important;
  padding:0!important;margin:0!important;
  gap:4px!important;z-index:8!important;
}
html[data-inj-market-embedded="true"][data-inj-page="live-charts"] #livePage>.terminal-header .market-price-row{
  gap:0!important;margin:0!important;padding:0!important;
  display:flex!important;flex-direction:column!important;align-items:center!important;
}
html[data-inj-market-embedded="true"][data-inj-page="live-charts"] #livePage>.terminal-header #headerLivePrice{
  font-size:clamp(19px,4.8vw,27px)!important;
  line-height:1.08!important;letter-spacing:-.035em!important;
  margin:1px 0 0!important;
}
html[data-inj-market-embedded="true"][data-inj-page="live-charts"] #livePage>.terminal-header #headerRangeChange{
  font-size:clamp(9px,2.45vw,11px)!important;
  line-height:1.2!important;margin:0!important;
}
html[data-inj-market-embedded="true"][data-inj-page="live-charts"] #livePage>.timeframe-bar{
  padding-top:2px!important;padding-bottom:3px!important;
  margin-top:0!important;
}
/* Keep the whole candle canvas / RSI / MACD visible: the fixed page grid
   gives all recovered header space to the chart rather than adding scroll. */
@media(max-width:700px){
 html[data-inj-market-embedded="true"][data-inj-page="live-charts"] #livePage>.terminal-header{
  height:72px!important;min-height:72px!important;max-height:72px!important;
 }
 html[data-inj-market-embedded="true"][data-inj-page="live-charts"] #livePage>.terminal-header>.market-heading{
  max-width:calc(100% - 105px)!important;
 }
}
@media(max-width:370px){
 html[data-inj-market-embedded="true"][data-inj-page="live-charts"] #livePage>.terminal-header>.market-heading{
  justify-self:start!important;margin-left:4px!important;
  max-width:calc(100% - 92px)!important;
 }
 html[data-inj-market-embedded="true"][data-inj-page="live-charts"] #livePage>.terminal-header #headerLivePrice{
  font-size:20px!important;
 }
}
/* The top navigation already reads Order Book. Keep the tradable pair,
   aggregation step and connection state; remove duplicate title only. */
html[data-inj-market-embedded="true"][data-inj-page="order-book"] .book-page>.book-topbar{
  display:grid!important;
  grid-template-columns:minmax(0,1fr) auto!important;
  grid-template-rows:auto!important;
  align-items:center!important;
  min-height:48px!important;height:auto!important;
  margin:0!important;padding:4px 10px!important;
}
html[data-inj-market-embedded="true"][data-inj-page="order-book"] .book-page>.book-topbar>.book-brand,
html[data-inj-market-embedded="true"][data-inj-page="order-book"] .book-page>.book-topbar>#bookBack{
  display:none!important;visibility:hidden!important;pointer-events:none!important;
}
html[data-inj-market-embedded="true"][data-inj-page="order-book"] .book-page>.book-topbar>.pair{
  grid-column:1!important;grid-row:1!important;
  justify-self:start!important;min-width:0!important;
  margin:0!important;padding:0!important;
}
html[data-inj-market-embedded="true"][data-inj-page="order-book"] .book-page>.book-topbar>.top-actions{
  grid-column:2!important;grid-row:1!important;
  justify-self:end!important;margin:0!important;
}


/* Embedded Live Charts · one timeframe row + maximum chart area.
   The INJ quote is now next to Live Charts on Market's fixed top rail.
   Standalone Live Charts retain their own price/header. */
html[data-inj-market-embedded="true"][data-inj-page="live-charts"] #livePage{
  grid-template-rows:auto minmax(0,1fr)!important;
  padding:0!important;row-gap:0!important;
}
html[data-inj-market-embedded="true"][data-inj-page="live-charts"] #livePage>.terminal-header,
html[data-inj-market-embedded="true"][data-inj-page="live-charts"] #livePage>.live-footer{
  display:none!important;height:0!important;min-height:0!important;
  max-height:0!important;margin:0!important;padding:0!important;
}
html[data-inj-market-embedded="true"][data-inj-page="live-charts"] #livePage>.terminal-shell{
  grid-template-rows:minmax(0,1fr)!important;min-height:0!important;
  height:100%!important;
}
html[data-inj-market-embedded="true"][data-inj-page="live-charts"] #livePage>.terminal-shell>.market-strip{
  display:none!important;
}
html[data-inj-market-embedded="true"][data-inj-page="live-charts"] #livePage>.timeframe-bar{
  min-height:37px!important;padding-block:3px 5px!important;
}
html[data-inj-market-embedded="true"][data-inj-page="live-charts"] .market-embedded-chart-actions{
  display:inline-flex!important;align-items:center!important;justify-content:center!important;
  flex:0 0 auto!important;gap:5px!important;
  margin-left:9px!important;padding:0!important;
}
html[data-inj-market-embedded="true"][data-inj-page="live-charts"] .market-embedded-chart-actions .focus-button{
  flex:0 0 auto!important;min-height:27px!important;font-size:10px!important;
  padding-inline:10px!important;border-radius:8px!important;
}
