/* YOOBIZZ — responsive mobile pass */
html,body{max-width:100%;overflow-x:hidden}
*,*::before,*::after{min-width:0}
img,svg,video,canvas{max-width:100%;height:auto}
.page,.shell,main,section,.card,.yv3-shell{max-width:100%}
.navStripInner,.tabs,.newsFilters,.tickerInner,.yv3-tabs{-webkit-overflow-scrolling:touch;scrollbar-width:none}
.navStripInner::-webkit-scrollbar,.tabs::-webkit-scrollbar,.newsFilters::-webkit-scrollbar,.tickerInner::-webkit-scrollbar,.yv3-tabs::-webkit-scrollbar{display:none}
/* Never show the obsolete demo label now that a source label is injected separately. */
.priceHeader>div:last-child>.sub{display:none!important}

/* Trading Lab injected hero */
#tradingLabV3{width:100%;overflow:hidden}
#tradingLabV3>div{padding:18px!important}
#tradingLabV3>div>div:first-child{min-width:0}
#tradingLabV3>div>div:nth-child(2){min-width:0}
#tradingLabV3 a{min-width:0;overflow:hidden}

@media(max-width:900px){
  .topbarInner{grid-template-columns:1fr!important;gap:10px!important;padding:11px 16px!important}
  .brandWrap{justify-content:flex-start}
  .searchWrap{width:100%}
  .topActions{display:none!important}
  .navStripInner{padding:0 16px!important;gap:20px!important;overflow-x:auto!important}
  .page{padding:16px 16px 42px!important}
  .mainGrid{grid-template-columns:1fr!important}
  .newsGrid{grid-template-columns:1fr!important}
  .newsCard:first-child{grid-column:auto!important}
  .moverGrid{grid-template-columns:1fr!important}
  .hero{grid-template-columns:1fr!important}
  .heroSide{display:none!important}
  .yv3-body,.yv3-community{grid-template-columns:1fr!important}
  .yv3-main{border-right:0!important;border-bottom:1px solid #e6ebf1}
}

@media(max-width:620px){
  body{font-size:14px}
  .topbarInner{padding:10px 14px!important}
  .brandMark{width:38px!important;height:38px!important}
  .brandMain{font-size:18px!important}
  .brandSub{display:none!important}
  .search{height:44px!important;font-size:14px!important}
  .navStripInner{padding:0 14px!important;gap:18px!important}
  .navLink{font-size:13px!important;padding:11px 0!important}
  .page{padding:14px 14px 36px!important}

  #tradingLabV3{border-radius:20px!important;margin-bottom:16px!important}
  #tradingLabV3>div{padding:15px!important}
  #tradingLabV3>div>div:first-child{display:flex!important;flex-direction:column!important;gap:10px!important;align-items:stretch!important}
  #tradingLabV3>div>div:first-child>div:last-child{min-width:0!important;width:max-content!important;max-width:100%!important;padding:9px 11px!important}
  #tradingLabV3 h1{font-size:29px!important;line-height:1.02!important;margin:6px 0 8px!important}
  #tradingLabV3 p{font-size:11px!important;line-height:1.45!important}
  #tradingLabV3>div>div:nth-child(2){display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:9px!important;margin-top:13px!important}
  #tradingLabV3>div>div:nth-child(2)>a{padding:11px!important;min-height:0!important;border-radius:14px!important}
  #tradingLabV3>div>div:nth-child(2)>a h3{font-size:13px!important;line-height:1.15!important;margin:8px 0 5px!important}
  #tradingLabV3>div>div:nth-child(2)>a p{font-size:8.5px!important;line-height:1.35!important;margin-bottom:7px!important}

  /* Compact market overview: horizontal cards instead of six large tiles */
  .yv3-shell{border-radius:18px!important;margin-bottom:14px!important}
  .yv3-head{padding:12px 14px 8px!important;align-items:flex-start!important;flex-direction:row!important;justify-content:space-between!important}
  .yv3-title{font-size:18px!important;line-height:1.1!important}
  .yv3-sub{font-size:9px!important;margin-top:3px!important}
  .yv3-tabs{padding:0 14px 8px!important;gap:6px!important;overflow-x:auto!important}
  .yv3-tab{padding:6px 9px!important;font-size:8px!important}
  .yv3-indices{display:flex!important;grid-template-columns:none!important;gap:8px!important;padding:0 14px 10px!important;overflow-x:auto!important;overflow-y:hidden!important;-webkit-overflow-scrolling:touch!important;scrollbar-width:none!important;scroll-snap-type:x proximity!important}
  .yv3-indices::-webkit-scrollbar{display:none!important}
  .yv3-idx{flex:0 0 142px!important;min-width:142px!important;min-height:80px!important;padding:9px 10px!important;border-radius:12px!important;scroll-snap-align:start!important}
  .yv3-idx small{font-size:7px!important;line-height:1.15!important}
  .yv3-idx b{font-size:13px!important;margin:4px 0!important;line-height:1.1!important}
  .yv3-idx span{font-size:8px!important}
  .yv3-main,.yv3-side,.yv3-community{padding:12px!important}
  .yv3-h{font-size:13px!important;margin-bottom:7px!important}
  .yv3-tables{grid-template-columns:1fr!important}
  .yv3-row{padding:8px!important;font-size:8px!important}.yv3-row b{font-size:9px!important}

  /* Asset page: one trading zone only; no duplicate hero CTA over the real ticket. */
  .heroBtns a.btn[href*="#ticket"]{display:none!important}
  /* Guaranteed branded BTC fallback even if a remote icon provider is blocked. */
  .liveAsset[data-live-sym="BTC"] .liveLogo{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64'%3E%3Ccircle cx='32' cy='32' r='32' fill='%23F7931A'/%3E%3Ctext x='32' y='44' text-anchor='middle' font-family='Arial,sans-serif' font-size='38' font-weight='700' fill='white'%3E%E2%82%BF%3C/text%3E%3C/svg%3E")!important;background-size:cover!important;background-position:center!important;background-repeat:no-repeat!important;color:transparent!important}
  .liveAsset[data-live-sym="BTC"] .liveLogo img{opacity:0!important}

  .tickerCard{min-width:145px!important}
  .marketTable{min-width:650px}
  .card:has(.marketTable){overflow-x:auto;-webkit-overflow-scrolling:touch}
  .cardHead{padding:14px!important;align-items:flex-start!important}
  .newsSection{padding:15px!important;border-radius:18px!important}
  .newsHead{flex-direction:column!important}
  .newsHead h2{font-size:22px!important}
  .newsCard{padding:13px!important}
  .newsCard:first-child{padding:16px!important}
}

@media(max-width:390px){
  .page{padding-left:12px!important;padding-right:12px!important}
  #tradingLabV3>div{padding:13px!important}
  #tradingLabV3 h1{font-size:27px!important}
  #tradingLabV3>div>div:nth-child(2){gap:7px!important}
  #tradingLabV3>div>div:nth-child(2)>a{padding:10px!important}
  .yv3-indices{padding-left:12px!important;padding-right:12px!important;gap:7px!important}
  .yv3-idx{flex-basis:132px!important;min-width:132px!important}
}
