/* Shared trade components, arranged to match the reference without replacing them. */
[data-boss-page=trade] main:has(>.boss-trade-grid){padding-left:0!important;padding-right:0!important;background:#fff!important}
[data-boss-ui] .boss-trade-grid{width:100%;margin:0!important;padding:0!important;gap:0!important;overflow:visible!important;background:#fff!important;min-height:calc(100dvh - 70px);grid-template-columns:clamp(180px,14.3vw,330px) minmax(0,1fr) clamp(200px,14.3vw,330px) clamp(250px,14.3vw,330px)!important;grid-template-rows:80px clamp(460px,56vh,640px) minmax(280px,1fr)!important}
.boss-trade-grid>*{min-width:0;border-radius:0!important;background:#fff!important;box-sizing:border-box}
.boss-trade-grid>.boss-trade-quote{grid-area:1 / 1 / 2 / 5!important;border-bottom:1px solid #edf0f5;overflow:auto!important}
.boss-trade-grid>.boss-trade-sidebar{grid-area:2 / 1 / 4 / 2;border-right:1px solid #edf0f5;overflow:hidden}
.boss-trade-grid>.boss-trade-chart{grid-area:2 / 2 / 3 / 3!important;border-right:1px solid #edf0f5;border-bottom:1px solid #edf0f5;overflow:hidden!important}
.boss-trade-grid>.boss-trade-book{grid-area:2 / 3 / 3 / 4!important;border-right:1px solid #edf0f5;border-bottom:1px solid #edf0f5;overflow:hidden!important}
.boss-trade-grid>.boss-trade-form{grid-area:2 / 4 / 4 / 5!important;overflow:auto!important}
.boss-trade-grid>.boss-trade-orders{grid-area:3 / 2 / 4 / 4!important;border-right:1px solid #edf0f5;min-height:280px}
.boss-trade-grid .MuiTypography-root,.boss-trade-grid .MuiButtonBase-root,.boss-trade-grid input{font-family:BossPlex,'PingFang SC','Helvetica Neue',sans-serif!important}
.boss-trade-quote>div{height:80px!important;padding:14px 20px!important;min-width:760px}
.boss-trade-quote button{font-size:16px!important}.boss-trade-quote .MuiTypography-root{white-space:nowrap}
.boss-trade-search{display:flex;position:relative;align-items:center;padding:16px 14px 12px}
.boss-trade-search input{width:100%;min-width:0;height:38px;box-sizing:border-box;border:1px solid #e5eaf2;border-radius:22px;background:#fff;padding:8px 35px 8px 14px;color:#061023;font-size:12px;font-family:inherit;outline:none}
.boss-trade-search input:focus{border-color:#014cfa}.boss-trade-search input::placeholder{color:#989fb0}.boss-trade-search img{position:absolute;right:27px;opacity:.65;pointer-events:none}
.boss-trade-watch-tabs{display:flex;gap:22px;padding:0 15px;border-bottom:1px solid #edf0f5;height:40px;align-items:stretch}
.boss-trade-watch-tabs button{position:relative;padding:0;border:0;background:none;color:#8f92a1;font:500 14px BossPlex,'PingFang SC',sans-serif;cursor:pointer}
.boss-trade-watch-tabs button[aria-pressed=true]{color:#061023;font-weight:600}.boss-trade-watch-tabs button[aria-pressed=true]:after{content:'';position:absolute;bottom:4px;left:50%;transform:translateX(-50%);width:16px;height:3px;background:#014cfa;border-radius:4px}
.boss-trade-pairs{overflow-y:auto;max-height:calc(100dvh - 255px);min-height:300px;scrollbar-width:thin;scrollbar-color:#e9ecf2 transparent}
.boss-trade-pair{display:flex;align-items:center;min-height:64px;gap:9px;padding:9px 14px;box-sizing:border-box;border-bottom:1px solid #f1f3f7;text-decoration:none;color:#061023}
.boss-trade-pair:hover,.boss-trade-pair[aria-current=page]{background:#f8faff}.boss-trade-pair>img{width:32px;height:32px;flex-shrink:0;object-fit:contain;border-radius:50%}.boss-trade-pair>strong{font-size:13px;font-weight:600;white-space:nowrap}
.boss-trade-pair-price{margin-left:auto;min-width:0;text-align:right;display:flex;flex-direction:column;align-items:flex-end;gap:4px;font-variant-numeric:tabular-nums}.boss-trade-pair-price b{font-size:13px;font-weight:600;white-space:nowrap}.boss-trade-pair-price small{font-size:10px;font-weight:600;padding:2px 4px;border-radius:4px;line-height:1.2}
.boss-trade-pair-price.up{color:var(--up)}.boss-trade-pair-price.down{color:var(--down)}.boss-trade-pair-price.up small{background:var(--up);color:#fff}.boss-trade-pair-price.down small{background:var(--down);color:#fff}
.boss-trade-list-state{padding:40px 16px;text-align:center;font-size:12px;color:#9197a6;line-height:1.8}.boss-trade-list-state button{display:block;margin:14px auto 0;padding:7px 18px;border:1px solid #e8ecf5;border-radius:18px;background:#f8faff;color:#014cfa;cursor:pointer}
.boss-trade-chart>.MuiStack-root>div:first-child{height:34px!important;min-height:34px!important;margin:0!important;padding:0 12px;border-bottom:1px solid #f1f3f7;display:flex;align-items:center}
.boss-trade-chart>.MuiStack-root>div:nth-child(2){height:calc(100% - 34px)!important}
.boss-trade-chart [aria-pressed]:not(:has(svg)){border-radius:18px!important;background:#f1f5fa!important;color:#014cfa!important;min-height:27px;padding:4px 11px!important;margin:0 3px!important;font-size:12px!important}
.boss-trade-chart [aria-pressed=true]:not(:has(svg)){background:#014cfa!important;color:#fff!important}
.boss-trade-chart .MuiTab-root,.boss-trade-book .MuiTab-root,.boss-trade-orders .MuiTab-root{color:#8f92a1;font-size:14px!important;font-weight:400!important;padding:0!important;min-width:0!important;margin-right:22px!important}
.boss-trade-chart .MuiTab-root.Mui-selected,.boss-trade-book .MuiTab-root.Mui-selected,.boss-trade-orders .MuiTab-root.Mui-selected{color:#061023!important;font-weight:600!important}
.boss-trade-grid .MuiTabs-indicator{background:transparent!important}.boss-trade-grid .MuiTabs-indicatorSpan{background:#014cfa!important;height:3px!important;width:20px!important;border-radius:4px}
.boss-trade-book>div>div:first-child{margin:0!important;padding:12px 12px 9px;border-bottom:1px solid #edf0f5}.boss-trade-book .MuiTab-root{font-size:12px!important;margin-right:15px!important}
.boss-trade-book button:has(svg){background:transparent!important}.boss-trade-book button svg{width:20px!important;height:20px!important}.boss-trade-book .MuiInputBase-root{border:0!important}
.boss-book-rows{padding:0 12px!important}.boss-book-rows>div:not(.MuiStack-root){grid-template-columns:1fr 1fr!important}.boss-book-rows>div:not(.MuiStack-root)>div:nth-child(3){display:none}
.boss-book-rows>div:first-child{height:30px;font-size:11px!important;align-items:center;padding:2px 0!important}
.boss-book-row{position:relative;height:clamp(17px,2vh,21px)!important;min-height:clamp(17px,2vh,21px);padding:0!important;font-size:11px!important;font-variant-numeric:tabular-nums}
.boss-book-row:before{content:'';position:absolute;inset:0 0 0 auto;width:var(--depth-size,0%);pointer-events:none}.boss-book-row.ask:before{background:rgba(var(--down-rgb),.09)}.boss-book-row.bid:before{background:rgba(var(--up-rgb),.09)}.boss-book-row>div{position:relative;z-index:1}
.boss-book-rows>.MuiStack-root{height:42px!important;min-height:42px;white-space:nowrap}.boss-book-rows>.MuiStack-root>div:first-child{font-size:20px!important;font-weight:600!important}.boss-book-rows>.MuiStack-root>div:nth-child(2){font-size:11px!important;overflow:hidden;text-overflow:ellipsis}
.boss-trade-form>div{padding:20px 18px!important;gap:18px!important}.boss-spot-form>.MuiTabs-root:first-child{display:none}
.boss-spot-form>div:has(>button[aria-pressed]){padding:4px;border-radius:26px!important;background:#f1f5fa!important}
.boss-spot-form>div>button[aria-pressed]{height:36px!important;border-radius:22px!important;background:transparent!important;color:#8f92a1!important;font-weight:500!important}
.boss-spot-form>div>button[aria-pressed=true]{background:#014cfa!important;color:#fff!important}
.boss-trade-form .MuiTabs-root{height:34px!important;min-height:34px!important;border-bottom:1px solid #e9edf4}
.boss-trade-form .MuiTab-root{height:30px!important;min-height:30px!important;font-size:13px!important;padding:0!important;margin-right:24px!important;color:#8f92a1!important}
.boss-trade-form .MuiTab-root.Mui-selected{color:#061023!important;font-weight:600!important}
.boss-trade-form .MuiStack-root:has(>.MuiTextField-root)>p{font-size:14px!important;color:#061023!important;margin-bottom:4px}
.boss-trade-form .MuiInputBase-root{height:45px;border:1px solid #e5eaf2!important;border-radius:10px!important;background:#fff!important}
.boss-trade-form fieldset{border:0!important}.boss-trade-form .MuiInputBase-input{font-size:14px!important;padding:12px 14px!important}
.boss-trade-form .MuiInputAdornment-root p{font-size:14px!important;color:#061023!important}
.boss-spot-form>.MuiStack-root:has(>p):not(:has(.MuiInputBase-root)):has(>div:not(.MuiStack-root)){gap:12px!important}
.boss-spot-form>.MuiStack-root:has(>p):not(:has(.MuiInputBase-root))>p{font-size:14px!important;color:#061023!important}
.boss-spot-form>.MuiStack-root:has(>p):not(:has(.MuiInputBase-root))>div:not(.MuiStack-root){height:45px!important;border:1px solid #e5eaf2!important;border-radius:10px!important;background:#fff!important;color:#9ba3b5!important;font-weight:400!important}
.boss-trade-amount{display:flex;flex-direction:column;gap:12px;color:#061023;font-size:14px}
.boss-trade-amount>div{display:flex;gap:10px;align-items:center;border:1px solid #e5eaf2;border-radius:10px;height:45px;padding:0 14px;background:#fff;box-sizing:border-box}
.boss-trade-amount input{min-width:0;width:100%;border:0;background:none;outline:0;font-family:inherit;font-size:14px;color:inherit}.boss-trade-amount input::placeholder{color:#adb5c4}.boss-trade-amount>div>span{font-size:14px}
.boss-trade-form .MuiSlider-root{height:8px!important;margin:2px 6px 20px!important;width:calc(100% - 12px)!important;padding:9px 0!important;color:#014cfa!important}
.boss-trade-form .MuiSlider-track{background:#014cfa!important;color:#014cfa!important}.boss-trade-form .MuiSlider-rail{background:#edf2f8!important;color:#edf2f8!important;opacity:1!important}
.boss-trade-form .MuiSlider-mark{width:3px!important;height:10px!important;border-radius:0!important;background:#fff!important}.boss-trade-form .MuiSlider-markLabel{display:block!important;top:24px!important;font-size:10px!important;color:#9299a8!important}
.boss-trade-form .MuiSlider-thumb{background:#014cfa!important;background-image:none!important;width:14px!important;height:14px!important;border:2px solid #fff!important}
.boss-trade-form>.MuiStack-root>.MuiButton-root{height:46px!important;border-radius:10px!important;color:white!important;font-size:15px!important}
.boss-trade-orders>div{padding:0!important;min-height:280px!important}.boss-trade-orders>div>div:first-child{height:44px;padding:0 14px;border-bottom:1px solid #edf0f5;margin:0!important;box-sizing:border-box;flex-shrink:0}
.boss-trade-orders>div>div:has(>span){min-height:200px}.boss-trade-orders>div>div:has(>span):before{content:'';display:block;width:90px;height:80px;margin-bottom:16px;background:url('/boss-ui/assets/trade-nodata.png') center/contain no-repeat;opacity:.7}
.boss-trade-mobile-nav{display:none}
@media(min-width:1024px) and (max-width:1279px){
 [data-boss-ui] .boss-trade-grid{grid-template-columns:174px minmax(0,1fr) 186px 230px!important;grid-template-rows:80px 500px minmax(280px,1fr)!important}
 .boss-book-row{height:18px!important;min-height:18px}
 .boss-trade-pair{padding:10px 8px;gap:5px}.boss-trade-pair>img{width:24px;height:24px}.boss-trade-pair>strong{font-size:11px}.boss-trade-pair-price b{font-size:11px}.boss-trade-pair-price small{font-size:9px}
 .boss-trade-form>div{padding:16px 12px!important}.boss-trade-chart [aria-pressed]:not(:has(svg)){padding:4px 7px!important;margin:0 1px!important;font-size:11px!important}
 .boss-trade-orders .MuiTab-root{font-size:12px!important;margin-right:14px!important}
}
@media(max-width:1023px){
 [data-boss-page=trade] main:has(.boss-trade-mobile){padding-left:0!important;padding-right:0!important;padding-top:58px!important}
 .boss-trade-mobile{background:#fff!important;padding-bottom:95px!important}
 .boss-trade-mobile-nav{display:flex;align-items:center;gap:25px;overflow:auto;scrollbar-width:none;padding:10px 16px 17px;min-height:48px;box-sizing:border-box;border-bottom:1px solid #f5f6f9}
 .boss-trade-mobile-nav a{white-space:nowrap;text-decoration:none;color:#8f92a1;font-size:14px;font-weight:400}.boss-trade-mobile-nav a[aria-current=page]{font-size:21px;font-weight:700;color:#061023}
 .boss-trade-mobile>div:nth-child(2){padding:10px 16px!important;min-height:56px!important}.boss-trade-mobile>div:nth-child(2) button>div:first-child{font-size:18px!important}
 .boss-mobile-workspace{padding:0 16px!important;gap:16px!important;margin-top:10px!important}
 .boss-mobile-workspace>.boss-mobile-order{order:0;flex:1.15!important;min-width:0}.boss-mobile-workspace>.boss-mobile-book{order:1;flex:1!important;min-width:0}
 .boss-mobile-form{gap:12px!important}.boss-mobile-form>div:first-child{order:7;height:auto!important;min-height:26px}.boss-mobile-form>div:first-child>div:first-child{font-size:11px!important;white-space:normal!important;line-height:1.6!important}
 .boss-mobile-form>div:has(>button[aria-pressed]){height:32px!important;border-radius:18px!important;padding:3px;background:#f1f5fa!important;order:-2}
 .boss-mobile-form>div>button[aria-pressed]{font-size:12px!important;border-radius:16px!important;background:transparent!important;color:#9299a8!important}.boss-mobile-form>div>button[aria-pressed=true]{background:#014cfa!important;color:#fff!important}
 .boss-mobile-form>.MuiTabs-root{order:-1;min-height:30px!important;height:30px!important;border-bottom:1px solid #edf0f5}
 .boss-mobile-form .MuiTab-root{font-size:13px!important;height:27px!important;min-height:27px!important;color:#8f92a1!important}.boss-mobile-form .MuiTab-root.Mui-selected{font-weight:600!important;color:#061023!important}
 .boss-mobile-form .MuiTabs-indicator{background:transparent!important}.boss-mobile-form .MuiTabs-indicatorSpan{background:#014cfa!important}
 .boss-mobile-form>div:has(>input),.boss-mobile-form>div:has(>div+input){height:42px!important;min-height:42px;border:1px solid #e5eaf2!important;background:#fff!important;border-radius:8px!important}
 .boss-mobile-form input{font-size:14px!important;font-weight:400!important;color:#061023!important}.boss-mobile-form input::placeholder{font-size:12px!important;color:#a1a8b7!important}
 .boss-mobile-form>div:has(>input)>div{font-size:12px!important}
 .boss-mobile-form>div:has(>div+div):not(:has(button)):not(:has(input)){font-size:12px}
 .boss-mobile-form .MuiSlider-root{color:#014cfa!important}.boss-mobile-form .MuiSlider-track{background:#014cfa!important;color:#014cfa!important}.boss-mobile-form .MuiSlider-thumb{background:#014cfa!important;background-image:none!important;width:14px!important;height:14px!important;border:2px solid #fff!important}.boss-mobile-form .MuiSlider-rail{background:#edf2f8!important}
 .boss-mobile-form .boss-trade-amount{gap:0}.boss-mobile-form .boss-trade-amount>span{font-size:11px;color:#8f92a1;margin-bottom:5px}.boss-mobile-form .boss-trade-amount>div{height:42px;padding:0 10px;border-radius:8px}.boss-mobile-form .boss-trade-amount>div>span{font-size:12px}
 .boss-mobile-book>div>div:first-child{height:27px!important;font-size:10px!important;margin-bottom:8px;gap:3px!important}.boss-mobile-book>div>button{font-size:11px!important}
 .boss-mobile-book>div>div{font-size:11px}.boss-mobile-book [role=button]{font-size:11px!important}.boss-trade-mobile>.MuiBox-root:last-of-type{margin-top:24px!important}
}

.boss-trade-grid>.boss-trade-quote{overflow-x:auto!important;overflow-y:hidden!important}.boss-trade-quote>div{height:79px!important}
.boss-trade-orders>div>div:has(>span):before{width:124px;height:110px;opacity:1}
.boss-chart-study-legend{display:flex;gap:14px;font-size:10px;line-height:16px;pointer-events:none;font-family:BossPlex,sans-serif}
.boss-chart-study-legend span:nth-child(1){color:#f39a13}.boss-chart-study-legend span:nth-child(2){color:#a36ae0}.boss-chart-study-legend span:nth-child(3){color:#388fff}.boss-chart-study-legend span:nth-child(4){color:#f04bb7}

@media(max-width:1023px){
 [data-boss-page=trade]:has(.boss-trade-mobile) .top-bar-v2{display:none!important}
 [data-boss-page=trade] main:has(.boss-trade-mobile){padding-top:0!important}
 .boss-mobile-quote{padding:0 16px 8px;font-size:13px;display:flex;gap:12px;font-weight:500}
 .boss-trade-mobile>div:nth-child(2){padding-bottom:0!important;min-height:38px!important}
 .boss-trade-mobile>div:nth-child(2) button>div:first-child{font-size:17px!important}
 .boss-mobile-form>div:first-child{order:0}
}

@media(max-width:1023px){
 [data-boss-page=trade] main>.boss-trade-mobile:first-child{background:#fff!important}
 .boss-mobile-form>.boss-mobile-available{order:5!important;margin-top:5px}
 .boss-mobile-form>.boss-mobile-summary{order:6!important}
 .boss-mobile-form>.boss-mobile-submit{order:7!important;color:#fff!important;font-size:15px!important;height:38px!important;border-radius:8px!important}
 .boss-mobile-form>button:last-child:not(.boss-mobile-submit){order:8}
 .boss-mobile-book{color:#061023}
}

/* Spot desktop: reference panels are fixed-width, independently collapsible. */
@media(min-width:1024px){
 [data-boss-ui] .boss-trade-grid[data-mode=spot]{--spot-side:330px;--spot-book:260px;grid-template-columns:var(--spot-side) minmax(0,1fr) var(--spot-book) 330px!important;grid-template-rows:80px max(340px,calc((100dvh - 150px)*.6)) minmax(260px,1fr)!important;height:calc(100dvh - 70px);min-height:650px;overflow:hidden!important}
 [data-boss-ui] .boss-trade-grid[data-mode=spot][data-sidebar-closed=true]{--spot-side:50px}
 [data-boss-ui] .boss-trade-grid[data-mode=spot][data-book-closed=true]{--spot-book:50px}
 .boss-trade-grid[data-mode=spot] .boss-trade-sidebar,.boss-trade-grid[data-mode=spot] .boss-trade-book{position:relative}
 .boss-trade-collapse{position:absolute;right:12px;top:14px;width:28px;height:28px;border:0;padding:2px;background:white;color:#42464a;cursor:pointer;z-index:3;border-radius:4px}
 .boss-trade-collapse:hover{background:#f2f5fa}.boss-trade-collapse:focus-visible{outline:2px solid #014cfa;outline-offset:2px}
 .boss-trade-grid[data-mode=spot] .boss-trade-search{padding:16px 64px 12px 16px}
 .boss-trade-grid[data-mode=spot] .boss-trade-search img{right:80px}
 .boss-trade-grid[data-mode=spot] .boss-trade-search input{height:40px;font-size:14px}
 .boss-trade-grid[data-mode=spot] .boss-trade-watch-tabs{height:48px;gap:16px}
 .boss-trade-grid[data-mode=spot] .boss-trade-pair{height:60px;min-height:60px;padding:9px 16px;gap:10px}
 .boss-trade-grid[data-mode=spot] .boss-trade-pair>img{width:40px;height:40px}
 .boss-trade-grid[data-mode=spot] .boss-trade-pair>strong,.boss-trade-grid[data-mode=spot] .boss-trade-pair-price b{font-size:16px}
 .boss-trade-grid[data-mode=spot] .boss-trade-pair-price small{font-size:12px}
 .boss-trade-grid[data-mode=spot] .boss-trade-pairs{max-height:calc(100dvh - 266px)}
 .boss-trade-grid[data-mode=spot][data-sidebar-closed=true] .boss-trade-sidebar>:not(.boss-trade-collapse),.boss-trade-grid[data-mode=spot][data-book-closed=true] .boss-trade-book>:not(.boss-trade-collapse){display:none!important}
 .boss-trade-grid[data-mode=spot] .boss-trade-book>div>div:first-child{padding:14px 40px 10px 16px}
 .boss-trade-grid[data-mode=spot] .boss-trade-book .MuiTab-root{font-size:14px!important;margin-right:16px!important}
 .boss-trade-grid[data-mode=spot] .boss-book-rows{padding:0 16px!important}
 .boss-trade-grid[data-mode=spot] .boss-book-row{font-size:12px!important}
 .boss-trade-grid[data-mode=spot] .boss-trade-form>div{padding:20px!important;gap:20px!important}
 .boss-trade-grid[data-mode=spot] .boss-spot-form>div>button[aria-pressed]{height:40px!important;font-size:16px!important}
 .boss-trade-grid[data-mode=spot] .boss-trade-form .MuiInputBase-root,.boss-trade-grid[data-mode=spot] .boss-trade-amount>div{height:48px}
 .boss-trade-grid[data-mode=spot] .boss-trade-amount,.boss-trade-grid[data-mode=spot] .boss-trade-form .MuiStack-root:has(>.MuiTextField-root)>p{font-size:16px!important}
 .boss-trade-grid[data-mode=spot] .boss-trade-orders{min-height:260px}
 .boss-trade-grid[data-mode=spot] .boss-trade-orders>div{min-height:260px!important}
 .boss-trade-grid[data-mode=spot] .boss-trade-orders>div>div:first-child{height:48px;padding:0 20px}
 .boss-trade-grid[data-mode=spot] .boss-trade-orders>div>div:has(>span):before{display:none}
 .boss-trade-grid[data-mode=spot] .boss-trade-orders .MuiTab-root{font-size:16px!important;margin-right:36px!important}
 .boss-trade-grid[data-mode=spot] .boss-trade-form [role=tablist]{flex-direction:row-reverse;justify-content:flex-end}
}
@media(min-width:1024px) and (max-width:1199px){
 [data-boss-ui] .boss-trade-grid[data-mode=spot]{--spot-side:240px;--spot-book:210px;grid-template-columns:var(--spot-side) minmax(0,1fr) var(--spot-book) 280px!important}
 .boss-trade-grid[data-mode=spot] .boss-trade-pair>strong,.boss-trade-grid[data-mode=spot] .boss-trade-pair-price b{font-size:13px}
}
@media(min-width:1024px){
 .boss-trade-grid[data-mode=spot] .boss-trade-quote .mui-15atx9n{font-size:20px!important;font-weight:500!important}
 .boss-trade-grid[data-mode=spot] .boss-trade-quote .mui-150xdne{font-size:24px!important;font-weight:700!important}
 .boss-trade-grid[data-mode=spot] .boss-trade-quote .mui-nssp1k{font-size:12px!important}
 .boss-trade-grid[data-mode=spot] .boss-trade-quote .mui-11lpwi6{font-size:14px!important}
 .boss-trade-grid[data-mode=spot] .boss-trade-quote .mui-1l9tnm3{gap:22px!important}
 .boss-trade-grid[data-mode=spot] .boss-trade-quote .mui-ufrh0h{font-size:12px!important}
}

/* Shared typography for spot and perpetual desks. Keep trading controls intact. */
[data-boss-ui] .boss-trade-grid,[data-boss-ui] .boss-trade-mobile{font-family:BossPlex,'PingFang SC','Helvetica Neue',sans-serif}
[data-boss-ui] .boss-trade-mobile button,[data-boss-ui] .boss-trade-mobile input,[data-boss-ui] .boss-trade-mobile .MuiTypography-root{font-family:BossPlex,'PingFang SC','Helvetica Neue',sans-serif!important}
@media(min-width:1024px){
 .boss-trade-grid[data-mode=future] .boss-trade-search input{font-size:14px}
 .boss-trade-grid[data-mode=future] .boss-trade-pair>strong,.boss-trade-grid[data-mode=future] .boss-trade-pair-price b{font-size:16px;font-weight:600}
 .boss-trade-grid[data-mode=future] .boss-trade-pair>strong{min-width:0;overflow:hidden;text-overflow:ellipsis}
 .boss-trade-grid[data-mode=future] .boss-trade-pair-price{flex-shrink:0}
 .boss-trade-grid[data-mode=future] .boss-trade-pair-price small{font-size:12px}
 .boss-trade-grid[data-mode=future] .boss-trade-book .MuiTab-root{font-size:14px!important}
 .boss-trade-grid[data-mode=future] .boss-book-row{font-size:12px!important}
 .boss-trade-grid[data-mode=future] .boss-trade-orders .MuiTab-root{font-size:16px!important}
 .boss-trade-grid[data-mode=future] .boss-trade-form .MuiStack-root:has(>.MuiTextField-root)>p,
 .boss-trade-grid[data-mode=future] .boss-trade-form .MuiStack-root:has(>p+div:not(.MuiStack-root))>p{font-size:16px!important;font-weight:500!important;color:#061023!important}
 .boss-trade-grid[data-mode=future] .boss-trade-form button[aria-pressed]{font-size:16px!important;font-weight:500!important}
 .boss-trade-grid[data-mode=future] .boss-trade-quote .mui-15atx9n{font-size:20px!important;font-weight:500!important}
 .boss-trade-grid[data-mode=future] .boss-trade-quote .mui-150xdne{font-size:24px!important;font-weight:700!important}
 .boss-trade-grid[data-mode=future] .boss-trade-quote .mui-nssp1k{font-size:12px!important}
 .boss-trade-grid[data-mode=future] .boss-trade-quote .mui-11lpwi6{font-size:14px!important}
 .boss-trade-grid[data-mode=future] .boss-trade-quote .mui-ufrh0h{font-size:12px!important}
}
@media(min-width:1024px) and (max-width:1199px){
 .boss-trade-grid[data-mode=future] .boss-trade-pair>strong,.boss-trade-grid[data-mode=future] .boss-trade-pair-price b{font-size:13px}
}
@media(min-width:1200px){
 [data-boss-ui] .boss-trade-grid[data-mode=future]{grid-template-columns:clamp(280px,20vw,330px) minmax(0,1fr) clamp(200px,14.3vw,330px) clamp(250px,14.3vw,330px)!important}
}

/* Forex and commodities retain their own execution controls and full chart. */
@media(min-width:1024px){
 [data-boss-ui] .boss-reference-desk{--reference-side:280px;grid-template-columns:var(--reference-side) minmax(0,1fr) 330px!important;grid-template-rows:100px max(460px,56vh) minmax(260px,1fr)!important}
 [data-boss-ui] .boss-reference-desk[data-sidebar-closed=true]{--reference-side:50px}
 .boss-reference-desk>.boss-trade-quote{grid-area:1/1/2/4!important;position:relative}
 .boss-reference-desk>.boss-trade-sidebar{grid-area:2/1/4/2!important;position:relative}
 .boss-reference-desk>.boss-trade-chart{grid-area:2/2/3/3!important}
 .boss-reference-desk>.boss-trade-form{grid-area:2/3/4/4!important;border-left:1px solid #edf0f5}
 .boss-reference-desk>.boss-trade-orders{grid-area:3/2/4/3!important}
 .boss-reference-desk .boss-trade-search{padding-right:60px}.boss-reference-desk .boss-trade-search img{right:74px}
 .boss-reference-desk[data-sidebar-closed=true] .boss-trade-sidebar>:not(.boss-trade-collapse){display:none!important}
 .boss-reference-desk .boss-trade-pair>strong,.boss-reference-desk .boss-trade-pair-price b{font-size:16px}
 .boss-reference-desk .boss-trade-pair>strong{min-width:0;overflow:hidden;text-overflow:ellipsis}
 .boss-reference-desk .boss-trade-pair-price{flex-shrink:0}
 .boss-reference-desk .boss-trade-search input{font-size:14px}
 .boss-reference-desk .boss-trade-orders .MuiTab-root{font-size:16px!important}
 .boss-reference-desk .boss-trade-quote .mui-15atx9n{font-size:20px!important;font-weight:500!important}
 .boss-reference-desk .boss-trade-quote .mui-150xdne{font-size:24px!important;font-weight:700!important}
 .boss-reference-desk .boss-trade-quote .mui-11lpwi6{font-size:14px!important}
 .boss-reference-desk .boss-trade-form .MuiStack-root:has(>.MuiTextField-root)>p{font-size:16px!important}
 .boss-reference-status{position:absolute;bottom:3px;left:20px;font-size:12px;color:#8f92a1}
}
