/* Keep every market metric available; switch layout before the table runs out of room. */
.market-home .market-list,.market-home .market-controls,.market-home .mk-sc{min-width:0}
.market-home .mtbl.mk .mr b.num{white-space:normal;overflow-wrap:anywhere}
.market-home .market-project .tn{overflow-wrap:anywhere}
@media(min-width:1200px){
 .market-home .mtbl.mk .mr[data-t] .market-metric{grid-template-rows:minmax(20px,auto) minmax(16px,auto)}
}
@media(max-width:1199px){
 .market-home .market-sort{display:flex;align-items:center;gap:8px}
 .market-home .market-sort select{height:44px;min-height:44px;min-width:0;width:auto;max-width:240px;font-size:16px;padding:0 12px;background:var(--bg)}
 .market-home #mkDirection{width:44px;min-width:44px;height:44px}
 .market-home .market-options{justify-content:space-between;flex-wrap:wrap;gap:12px 20px}
 .market-home .mtbl.mk{border:0}
 .market-home .mk-sc{display:grid;grid-template-columns:minmax(0,1fr);gap:16px}
 .market-home .mtbl.mk .mr.mh{display:none!important}
 .market-home .mtbl.mk .mr[data-t]{position:relative;grid-template-columns:repeat(2,minmax(0,1fr))!important;grid-template-areas:"project project" "price change" "vol cap" "holders action";gap:20px!important;padding:20px!important;width:100%;height:auto!important;min-height:0;align-items:start;border:1px solid var(--line);border-radius:8px!important;background:var(--card)}
 .market-home .mtbl.mk .mr[data-t]>div{min-width:0;grid-area:auto!important;position:static;display:block;text-align:left}
 .market-home .mtbl.mk .mr[data-t] .market-metric{display:block!important;align-content:normal;justify-items:normal;text-align:left}
 .market-home .mtbl.mk .mr[data-t] .market-metric:is(.c-change,.c-cap){text-align:right}
 .market-home .mtbl.mk .mr[data-t] .c-n{display:none}
 .market-home .mtbl.mk .mr[data-t] .c-n:has([data-market-rank]){display:block!important;position:absolute;inset:22px 20px auto auto;z-index:3;width:24px;height:26px;background:transparent;text-align:center}
 .market-home .mr[data-t] .rk.market-rank{display:grid;width:24px;min-width:24px;height:26px}
 .market-home .mtbl.mk .mr[data-t] .c-t{grid-area:project!important;display:flex;z-index:auto;background:transparent}
 .market-home .mtbl.mk .mr[data-t]:has([data-market-rank]) .c-t{padding-right:36px}
 .market-home .mtbl.mk .mr[data-t] .c-price{grid-area:price!important}
 .market-home .mtbl.mk .mr[data-t] .c-change{grid-area:change!important;text-align:right}
 .market-home .mtbl.mk .mr[data-t] .c-v{grid-area:vol!important}
 .market-home .mtbl.mk .mr[data-t] .c-cap{grid-area:cap!important;display:block!important;text-align:right}
 .market-home .mtbl.mk .mr[data-t] .c-holders{grid-area:holders!important;display:block!important}
 .market-home .mtbl.mk .mr[data-t] .c-action{grid-area:action!important;align-self:end;justify-self:stretch;text-align:right}
 .market-home .mr[data-t] .market-mobile-label{display:block;min-height:20px;margin-bottom:7px;font:400 12px/1.7 var(--ui-font);color:var(--tx3)}
 .market-home .mtbl.mk .mr[data-t] b.num{display:block;min-height:0;line-height:1.5;font-size:15px}
 .market-home .mtbl.mk .mr[data-t] .c-price b.num{font-size:18px}
 .market-home .mtbl.mk .mr[data-t] small{display:block;min-height:0;margin-top:4px;font-size:11px;line-height:1.6}
 .market-home .mtbl.mk .mr[data-t] .market-metric>small:empty{display:none}
 .market-home .market-project{width:100%;min-height:44px;gap:12px}
 .market-home .market-project .tav{width:36px;height:36px}
 .market-home .tn b{font-size:16px}
 .market-home .mr[data-t] .c-action .btn{min-height:44px;width:auto;min-width:104px;font-size:13px;padding:10px 14px}
}
@media(min-width:600px) and (max-width:1199px){
 .market-home .mk-sc{grid-template-columns:repeat(2,minmax(0,1fr));align-items:stretch}
 .market-home .mr[data-t] .market-project{align-items:flex-start}
 .market-home .mr[data-t] .market-mobile-label{min-height:40px;display:flex;align-items:flex-end}
 .market-home .mr[data-t] .c-change .market-mobile-label,.market-home .mr[data-t] .c-cap .market-mobile-label{justify-content:flex-end}
 .market-home .mr[data-t] .market-project .tn{padding-top:3px}
}
@media(min-width:768px) and (max-width:999px){
 .market-home .hot{grid-template-columns:repeat(2,minmax(0,1fr));gap:24px 0}
 .market-home .hot .hc:nth-child(odd){border-left:0;padding-left:0}
 .market-home .hot .hc:nth-child(even){padding-right:0}
}
@media(max-width:899px){
 .market-home .market-controls{grid-template-columns:minmax(0,1fr)}
 .market-home #mcat{grid-row:1}
 .market-home .mk-q{grid-row:2}
 .market-home .market-sort select{max-width:220px}
}
@media(max-width:359px){
 .market-home .market-options .market-sort{width:100%}
 .market-home .market-sort select{flex:1;max-width:none}
 .market-home .mr[data-t] .c-action .btn{min-width:88px}
}
