/* Single embedded presentation shared by the four existing market-tool pages.
   Standalone routes remain unchanged. Only ?embed=1 inside an iframe activates this. */
html[data-eb-market-embed="1"],
html[data-eb-market-embed="1"] body{
  margin:0!important;
  min-height:0!important;
  width:100%!important;
  overflow-x:hidden!important;
  background:#fff!important;
}
html[data-eb-market-embed="1"] #navbar,
html[data-eb-market-embed="1"] #footer,
html[data-eb-market-embed="1"] main.ix-page > :not([data-eb-market-tool-main]){
  display:none!important;
}
html[data-eb-market-embed="1"] main.ix-page{
  width:100%!important;
  max-width:none!important;
  min-width:0!important;
  margin:0!important;
  padding:0!important;
  overflow:visible!important;
  background:#fff!important;
}
html[data-eb-market-embed="1"] [data-eb-market-tool-main]{
  display:block!important;
  width:100%!important;
  min-width:0!important;
  margin:0!important;
  padding:10px 0 24px!important;
  background:#fff!important;
  border:0!important;
}
html[data-eb-market-embed="1"] [data-eb-market-tool-main] > .ix-shell{
  width:100%!important;
  max-width:none!important;
  min-width:0!important;
  margin:0!important;
  padding:0 10px!important;
}
html[data-eb-market-embed="1"] [data-eb-market-tool-main] .ix-section-head{
  display:none!important;
}
html[data-eb-market-embed="1"] [data-eb-market-tool-main] .ix-market-card{
  box-shadow:none!important;
  border:1px solid #e2e8f0!important;
  border-radius:16px!important;
  min-width:0!important;
}
html[data-eb-market-embed="1"] [data-eb-market-tool-main] .ix-market-stack{
  gap:18px!important;
}
html[data-eb-market-embed="1"] [data-eb-market-tool-main] .ix-widget{
  padding:0 12px 12px!important;
}
html[data-eb-market-embed="1"] [data-eb-market-tool-main] .ix-market-copy{
  padding:20px 18px 14px!important;
}
/* Embedded pages are tools, not another website with navigation buttons. */
html[data-eb-market-embed="1"] .mm-open-scanner,
html[data-eb-market-embed="1"] #sectorContext a[href="/nasdaq-stock-scanner.html"]{
  display:none!important;
}
@media(max-width:600px){
  html[data-eb-market-embed="1"] [data-eb-market-tool-main]{
    padding:4px 0 16px!important;
  }
  html[data-eb-market-embed="1"] [data-eb-market-tool-main] > .ix-shell{
    padding:0 4px!important;
  }
  html[data-eb-market-embed="1"] [data-eb-market-tool-main] .ix-widget{
    padding:0 6px 9px!important;
  }
  html[data-eb-market-embed="1"] [data-eb-market-tool-main] .ix-market-copy{
    padding:15px 13px 11px!important;
  }
}
