/* Cross-page polish shared by the market, portfolio and discovery surfaces. */
.sx-nav{min-height:0;flex:1;overflow-y:auto;scrollbar-width:thin;scrollbar-color:#302b40 transparent}
.sx-nav .sx-nav-label{display:block;margin:16px 12px 5px;color:#817990;font-size:.72rem;font-weight:800;letter-spacing:.08em}
.sx-nav .sx-nav-categories-label{margin-top:20px}

/* Source portraits are usually framed from the knees up: bias every compact crop to the face. */
:is(.hv3-headline,.hv3-movers,.hv3-ipo-list,.pv3-identity,.mv3-leaders,.mv3-portfolio,.lb3-person,.discover-ipo-list,.discover-side) img{
  object-fit:cover!important;
  object-position:center 10%!important;
}
.thumb-face{display:block;flex:none;width:48px;height:48px;overflow:hidden;border-radius:50%;background:#17171f}.thumb-face img{display:block;width:100%!important;height:100%!important;object-fit:cover!important;object-position:center top!important;transform:scale(1.82);transform-origin:50% 10%}
.hv3-headline>.thumb-face{width:86px;height:86px;border-radius:18px}
.hv3-movers article>a>.thumb-face{width:48px;height:48px;border-radius:50%}
.hv3-movers-grid article>a:not(.hv3-join a){grid-template-columns:48px minmax(0,1fr) auto!important}
.pv3-identity img{width:46px!important;height:46px!important}
.mv3-leaders img,.mv3-portfolio img{width:44px!important;height:44px!important}
.lb3-person>img{width:44px!important;height:44px!important}
.mv3-hot-grid>a>div{background-position:center top!important;background-size:185% auto!important}
.face-crop img{transform:scale(1.82)!important;transform-origin:50% 10%!important}.face-crop{border-radius:12px!important}.ct4-extremes .face-crop,.ct4-holdings .face-crop{border-radius:50%!important}

/* The market feed uses traders' avatars, not the traded asset artwork. */
.mv3-feed>div{display:grid!important;grid-template-columns:36px minmax(0,1fr) auto;align-items:center;gap:10px}
.mv3-feed-user,.mv3-feed-user img{display:block;width:36px;height:36px;border-radius:12px}.mv3-feed-user img{object-fit:cover;object-position:center;background:#1b1723}.mv3-feed p a{color:inherit}
.hv3-feed article>a,.hv3-feed article>a>img{display:block;width:40px;height:40px;border-radius:13px}.hv3-feed article>a>img{object-fit:cover}.hv3-feed header a,.hv3-feed p>a:first-child,.hv3-follow span>a{color:inherit}.hv3-follow>div>a:first-of-type,.hv3-follow>div>a:first-of-type img{display:block;width:38px;height:38px;border-radius:12px}.hv3-follow>div>a:first-of-type img{object-fit:cover}
.hv3-now span a{color:inherit}
.mv3-feed>div>p{min-width:0;margin:0}
.mv3-feed>div>span{margin:0!important;white-space:nowrap}
.sx-balance strong{transition:color .2s ease,text-shadow .2s ease}.sx-balance strong.balance-up{color:#3be0a8!important;text-shadow:0 0 16px rgba(59,224,168,.35)}.sx-balance strong.balance-down{color:#ff6b81!important;text-shadow:0 0 16px rgba(255,107,129,.35)}.sx-balance strong.balance-idle{color:#f4f2f7!important;text-shadow:none}

/* Trade confirmation is a compact dialog on desktop and a visible sheet on mobile. */
.sx-trade-success{place-content:center!important;background:rgba(5,5,8,.82)!important;color:#f4f2f7!important;backdrop-filter:blur(12px);isolation:isolate}
.sx-trade-success:before{position:absolute;z-index:-1;width:min(440px,calc(100vw - 36px));height:min(590px,calc(100dvh - 48px));content:"";border:1px solid #2a2235;border-radius:28px;background:linear-gradient(155deg,#171124,#0d0d15);box-shadow:0 30px 100px rgba(0,0,0,.55)}
.sx-trade-success>*{position:relative;z-index:1;max-width:380px}.sx-trade-success>button{position:fixed!important;left:calc(50% - min(220px,calc(50vw - 18px)) + 18px)!important;top:calc(50% - min(295px,calc(50dvh - 24px)) + 14px)!important;color:#aaa4b5!important}.sx-trade-success h2{max-width:370px!important;font-size:36px!important}.sx-trade-success>p{max-width:360px;font-size:15px!important;color:#aaa5b5}.sx-trade-success>img{width:92px!important;height:92px!important}.sx-success-actions a,.sx-success-actions button{border-color:#a855f7!important;background:#a855f7!important;color:#100719!important}.sx-success-actions button{background:transparent!important;color:#d6b4ff!important}

/* Final alignment with the supplied Markets desktop composition. */
.mk4-categories{grid-template-columns:repeat(3,1fr)!important}
.mk4-lower{grid-template-columns:minmax(0,1fr) 372px!important}
.mk4-news header>a{color:#a855f7;font-size:12px}
.mk4-news>a{grid-template-columns:4px 1fr!important;align-items:start!important}
.mk4-news>a>i{width:4px;height:100%;min-height:42px;border-radius:99px;background:#a855f7}
.mk4-news>a>span{white-space:normal!important}
.mk4-news>a b,.mk4-news>a small{display:block}
.mk4-news>a b{font-size:13px;line-height:1.5}
.mk4-news>a small{margin-top:5px;color:#6f6c7a}

@media(max-width:1100px){.mk4-lower{grid-template-columns:1fr!important}}
@media(max-width:800px){
  .hv3-headline>.thumb-face{width:70px;height:70px}
  .sx-nav .sx-nav-label{margin-inline:16px}
  .mk4-categories{grid-template-columns:repeat(2,1fr)!important}
  .mk4-lower{grid-template-columns:1fr!important}
  .sx-trade-success{place-content:end center!important;padding:0!important}.sx-trade-success:before{bottom:0;width:100%;height:min(650px,92dvh);border-radius:26px 26px 0 0}.sx-trade-success>button{position:fixed!important;top:auto!important;bottom:min(610px,calc(92dvh - 40px))!important;left:18px!important}.sx-trade-success h2{font-size:30px!important}.sx-trade-success>p{padding-inline:20px}.sx-trade-success>img{margin-top:48px}.sx-success-actions{margin-bottom:max(24px,env(safe-area-inset-bottom))}
}
@media(max-width:480px){.mk4-categories{grid-template-columns:1fr!important}}
