@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;600;700&display=swap');
:root{--bg:#000;--field:#1d2028;--line:#202329;--muted:#777b83;--green:#00c878;--red:#ff304a;--white:#f5f5f5}
*{box-sizing:border-box;scrollbar-width:none;-ms-overflow-style:none}*::-webkit-scrollbar{display:none;width:0;height:0}html,body{margin:0;width:100%;min-height:100%;background:#000;color:var(--white);font-family:Roboto,"Helvetica Neue",Arial,sans-serif;font-synthesis:none;-webkit-font-smoothing:antialiased;scrollbar-width:none;-ms-overflow-style:none}html::-webkit-scrollbar,body::-webkit-scrollbar{display:none;width:0;height:0}body{overflow-x:hidden}button,input{font:inherit;color:inherit}button{border:0} .hidden{display:none!important}
.app-shell{width:100%;min-height:100dvh;background:#000;padding-bottom:84px;overflow:hidden}
.topbar{height:58px;display:flex;align-items:center;gap:15px;padding:8px 30px}.brand-menu{flex:0 0 34px;width:34px;height:34px;border-radius:10px;background:#f7a11a;padding:8px;display:grid;gap:4px;align-content:center}.brand-menu span{height:2px;background:#171717;border-radius:2px}.top-tabs{display:flex;gap:16px;overflow:hidden;white-space:nowrap}.top-tabs button{background:transparent;color:#5c6068;font-size:17px;font-weight:600;padding:5px 0}.top-tabs .active{color:#fff}
.pair-row{display:grid;grid-template-columns:minmax(0,1fr) auto auto;align-items:center;gap:13px;padding:10px 30px 13px}.pair-title{background:none;padding:0;font-size:27px;font-weight:700}.pair-title span{font-size:13px}.pair-change{color:var(--red);font-size:16px;margin-top:4px}.mm-box{text-align:center;color:var(--green);font-size:14px}.mm-pill{border:1px solid var(--green);border-radius:20px;padding:3px 11px;font-weight:700;margin-bottom:3px}.view-toggle{display:flex;align-items:center;padding:3px;border-radius:34px;background:#222631}.view-toggle button{width:62px;height:46px;border-radius:28px;background:transparent;color:#818792;font-size:22px;display:flex;align-items:center;justify-content:center}.view-toggle .active{background:#4b5362;color:#fff}
.trade-grid{display:grid;grid-template-columns:minmax(0,58%) minmax(0,42%);gap:12px;padding:0 30px}.selectors{display:grid;grid-template-columns:1fr 1fr;gap:9px}.select-btn,.market-select{height:49px;border-radius:10px;background:var(--field);padding:0 15px;display:flex;align-items:center;justify-content:space-between;font-size:16px}.select-btn span,.market-select span:last-child{color:#7d828b;font-size:13px}.available-line{display:flex;align-items:center;margin:12px 0;color:#777b83;font-size:14px}.available-line strong{margin-left:auto;color:#fff;font-size:15px;font-weight:500}.plus-btn{width:20px;height:20px;border:2px solid #fff;border-radius:50%;background:transparent;margin-left:6px;line-height:13px;padding:0}.market-select{width:100%;font-weight:700;margin-bottom:10px}.order-input-wrap{height:59px;background:var(--field);border-radius:10px;margin-bottom:12px;display:flex;align-items:center;position:relative}.order-input-wrap input{width:100%;height:100%;border:0;outline:0;background:transparent;padding:0 92px 0 14px;font-size:16px}.order-input-wrap input::placeholder{color:#666b74}.order-input-wrap b{position:absolute;right:39px;font-size:16px}.swap-btn{position:absolute;right:7px;background:none;font-size:23px}.slider-wrap{height:49px;display:flex;justify-content:space-between;align-items:flex-start;padding-top:10px;position:relative}.slider-line,.slider-fill{position:absolute;left:10px;right:10px;top:19px;height:3px;background:#3d424b}.slider-fill{right:auto;width:0;background:#fff}.slider-dot{position:relative;z-index:1;width:20px;height:20px;border:3px solid #454a53;border-radius:50%;background:#000;padding:0}.slider-dot.active{border-color:#fff}.calc-box{border:1px solid #292e35;border-radius:10px;padding:11px 12px;margin:7px 0 12px}.calc-box>div{display:flex;justify-content:space-between;color:#777b83;font-size:12px;margin:4px 0}.calc-box strong{font-weight:500;color:#fff}.calc-box em{font-style:normal}.calc-box strong em:first-child{color:var(--green)}.calc-box strong em:nth-child(2){color:var(--red)}.check-row{display:flex;align-items:center;gap:9px;margin:10px 0;font-size:15px}.check-row input{position:absolute;opacity:0}.checkmark{width:23px;height:23px;border:2px solid #737983;border-radius:6px}.check-row input:checked+.checkmark{background:#f0b90b}.trade-btn{width:100%;height:56px;border-radius:28px;margin-top:9px;font-size:20px;font-weight:700}.trade-btn.long{background:var(--green)}.trade-btn.short{background:var(--red)}
.book-actions{height:43px;display:flex;justify-content:flex-end;align-items:center;gap:10px}.book-actions button{background:transparent;color:#818792;font-size:22px}.book-actions i{display:inline-block;width:9px;height:9px;border-radius:50%;background:var(--red);vertical-align:top}.funding{text-align:right;color:#737881;font-size:11px;margin-bottom:10px}.funding strong{display:block;color:#fff;font-weight:500;margin-top:3px}.book-head{display:grid;grid-template-columns:1fr 1fr;color:#777b83;font-size:12px}.book-head span:last-child{text-align:right}.book-head small{display:block;font-size:11px}.book-row{display:grid;grid-template-columns:1fr 1fr;min-height:28px;align-items:center;position:relative;font-size:14px}.book-row:before{content:"";position:absolute;right:0;top:2px;bottom:2px;width:var(--depth);opacity:.25}.book-row.sell:before{background:var(--red)}.book-row.buy:before{background:var(--green)}.book-row span{position:relative}.book-row span:last-child{text-align:right}.book-row.sell span:first-child{color:var(--red)}.book-row.buy span:first-child{color:var(--green)}.last-price{padding:7px 0}.last-price div{display:flex;align-items:center;justify-content:space-between}.last-price strong{font-size:25px;color:var(--green)}.last-price div span{font-size:25px}.last-price small{font-size:12px}.ratio-row{display:grid;grid-template-columns:24px auto 1fr auto 24px;align-items:center;gap:2px;margin-top:5px}.ratio-label{height:20px;border:1px solid currentColor;display:flex;align-items:center;justify-content:center;font-size:12px}.buy{color:var(--green)}.sell{color:var(--red)}.ratio-track{display:flex;height:20px;background:#211015}.ratio-buy{width:65%;background:rgba(0,200,120,.25)}.ratio-sell{width:35%;background:rgba(255,48,74,.25)}.depth-row{display:grid;grid-template-columns:1fr 45px;gap:7px;margin-top:8px}.depth-row button{height:38px;border-radius:7px;background:var(--field);font-size:14px}.depth-row button:first-child{display:flex;justify-content:space-between;align-items:center;padding:0 10px}.depth-row .book-mode{font-size:18px}
.account-panel{margin-top:22px;min-height:270px;border-top:1px solid #17191d}.account-tabs{display:flex;gap:21px;align-items:center;overflow:hidden;padding:13px 30px 0;border-bottom:1px solid #202329}.account-tabs button{flex:0 0 auto;background:transparent;color:#70747d;font-size:16px;padding:0 0 10px;white-space:nowrap}.account-tabs button.active{color:#fff;border-bottom:3px solid #fff}.account-tabs .icon-tab{font-size:22px}.account-content{display:none;padding:20px 30px}.account-content.active{display:block}.empty-card{text-align:center;color:#666}.positions-summary{padding-bottom:18px;border-bottom:1px solid #17191d;margin-bottom:14px}.positions-summary>div:first-child{display:flex;gap:8px;align-items:center;font-size:18px}.positions-summary>div:first-child span{font-size:25px;color:#888}.positions-summary>div:nth-child(2){display:flex;justify-content:space-between;margin-top:6px;color:#70747d;font-size:12px}.positions-summary b{text-align:right;font-weight:400}.positions-summary b em{display:block;color:var(--red);font-style:normal;font-size:18px;margin-top:4px}.positions-summary button{width:100%;height:43px;background:#000;border:1px solid #333;border-radius:24px;margin-top:18px;font-weight:700}.position-card{padding:16px 0 20px;border:0;border-bottom:1px solid #17191d;background:transparent}.position-card-head{display:flex;justify-content:space-between;align-items:flex-start;margin-bottom:6px}.position-card-head>strong{font-size:18px}.position-card-head>span{text-align:right;color:#777d86;font-size:12px}.position-card-head em{display:block;color:var(--red);font-style:normal;font-size:17px;margin-top:5px}.position-side{font-size:13px;margin-bottom:17px}.position-side b{color:var(--red)}.position-grid{display:grid;grid-template-columns:1.2fr 1fr 1fr 1.25fr;gap:8px}.position-grid div{display:flex;flex-direction:column;gap:6px}.position-grid span{color:#777d86;font-size:11px;white-space:nowrap}.position-grid strong{font-weight:400;font-size:15px;white-space:nowrap}.position-grid .liq{color:#e2a454}.tpbar{height:43px;border-radius:24px;background:#181a1e;color:#777d86;margin-top:17px;padding:0 14px;display:flex;align-items:center;justify-content:space-between;font-size:12px}.tpbar span{color:#fff}.position-actions{display:grid;grid-template-columns:1fr 1fr 1fr;gap:12px;margin-top:15px}.position-actions button{height:43px;border:1px solid #34383e;border-radius:24px;background:#000;color:#fff;font-weight:700}.bottom-nav{position:fixed;z-index:30;left:0;right:0;bottom:0;width:100%;height:84px;background:#050607;border-top:1px solid #17191d;border-radius:36px 36px 0 0;display:grid;grid-template-columns:repeat(5,1fr);padding:8px 13px 6px}.bottom-nav button{background:transparent;color:#666d77;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px}.bottom-nav button>span{width:31px;height:31px;font-size:21px;display:flex;align-items:center;justify-content:center}.bottom-nav button small{font-size:12px}.bottom-nav .active{color:#fff}.trade-icon{background:#fff;color:#000;border-radius:7px}
.modal-backdrop{position:fixed;inset:0;background:#000b;z-index:100;display:flex;align-items:flex-end}.sheet{width:100%;background:#181b21;padding:20px;border-radius:18px 18px 0 0}.sheet-head{display:flex;justify-content:space-between}.sheet-head button{background:none;font-size:26px}.sheet-options{display:grid;gap:10px;margin-top:15px}.sheet-options button{height:48px;background:#242932;border-radius:9px;text-align:left;padding:0 15px}.toast{display:none;position:fixed;z-index:120;bottom:100px;left:50%;transform:translateX(-50%);background:#252a32;padding:12px 18px;border-radius:9px}.toast.show{display:block}

/* Compact scale for the phone screenshot. */
@media(max-width:700px){
  .app-shell{zoom:.9;width:111.1111111%;}
  .app-shell{padding-bottom:84px}
  .topbar{height:58px;padding:8px 12.5px;gap:15px}.brand-menu{width:34px;height:34px;padding:8px;border-radius:10px}.top-tabs{gap:16px}.top-tabs button{font-size:18px;padding:5px 0}
  .pair-row{grid-template-columns:minmax(0,1fr) 68px 136px;gap:8px;padding:8px 12.5px 8px}.pair-title{font-size:23px;font-weight:600;line-height:1.05}.pair-title span{font-size:11px}.pair-change{font-size:14px;margin-top:3px}.mm-box{justify-self:center;font-size:14px;transform:translateX(-24px)}.mm-pill{font-size:14px;padding:2px 10px}.view-toggle{justify-self:end;padding:3px;border-radius:32px}.view-toggle button{width:61px;height:44px;border-radius:27px;font-size:21px}
  .trade-grid{gap:12px;padding:0 12.5px}.selectors{gap:6px}.select-btn,.market-select{height:43px;border-radius:8px;padding:0 11px;font-size:15px}.available-line{margin:8px 0;font-size:14px}.available-line strong{font-size:15px}.plus-btn{width:19px;height:19px;font-size:14px}.market-select{margin-bottom:8px}
  .order-input-wrap{height:53px;margin-bottom:9px}.order-input-wrap input{font-size:16px;padding-left:13px;padding-right:86px}.order-input-wrap b{right:36px;font-size:16px}.swap-btn{right:6px;font-size:22px}.slider-wrap{height:43px;padding-top:8px}.slider-line,.slider-fill{top:17px}.slider-dot{width:18px;height:18px;border-width:3px}
  .calc-box{padding:9px 11px;margin:6px 0 9px;border-radius:8px}.calc-box>div{font-size:12px;margin:3px 0}.check-row{gap:8px;margin:8px 0;font-size:15px}.checkmark{width:21px;height:21px;border-radius:5px}.trade-btn{height:50px;margin-top:7px;font-size:19px}
  .book-actions{height:38px;padding-top:1px}.book-actions button{font-size:20px}.funding{font-size:13px;line-height:1.2;margin:0 0 8px}.funding strong{margin-top:2px;font-size:14px}.book-head{font-size:12px}.book-head small{font-size:11px}.book-row{min-height:25px;font-size:13px}.last-price{padding:5px 0}.last-price strong,.last-price div span{font-size:23px}.last-price small{font-size:11px}.ratio-row{margin-top:4px}.ratio-label{height:18px;font-size:11px}.depth-row{margin-top:6px;gap:6px}.depth-row button{height:35px;font-size:13px}
  .account-panel{margin-top:22px;min-height:270px}.account-tabs{gap:21px;padding:13px 12.5px 0}.account-tabs button{font-size:17px;padding-bottom:10px}.account-content{padding:20px 12.5px}.positions-summary{padding-bottom:18px;margin-bottom:14px}.positions-summary>div:first-child{font-size:19px}.positions-summary>div:nth-child(2){font-size:13px}.positions-summary b em{font-size:19px}.positions-summary button{height:43px;margin-top:18px}.position-card{padding:16px 0 20px}.position-card-head>strong{font-size:19px}.position-card-head>span{font-size:13px}.position-card-head em{font-size:18px}.position-side{font-size:14px;margin-bottom:17px}.position-grid{gap:8px}.position-grid span{font-size:12px}.position-grid strong{font-size:16px}.tpbar{height:43px;margin-top:17px;padding:0 14px;font-size:13px}.position-actions{gap:12px;margin-top:15px}.position-actions button{height:43px;font-size:15px}
  .bottom-nav{height:84px;border-radius:36px 36px 0 0;padding:8px 13px 6px}.bottom-nav button>span{width:31px;height:31px;font-size:21px}.bottom-nav button small{font-size:12px}
}

.position-side.long b{color:var(--green)}
.position-side.short b{color:var(--red)}
.position-card-head em.profit{color:var(--green)}
.position-side i{width:1px;height:14px;background:#373b42;display:inline-block}
.position-side u{text-decoration:none;color:#8b9099}
.tpbar em{font-style:normal}
.tpbar .tp-value{color:var(--green)}
.tpbar .sl-value{color:var(--red)}
.position-actions .shield-btn{display:none}
.position-grid>div:last-child{text-align:right;align-items:flex-end}
.position-grid .editable-entry{cursor:pointer}
.position-grid .editable-quantity{cursor:pointer}
.position-side .edit-position-icon{display:inline-flex;align-items:center;width:13px;height:13px;margin-left:3px;color:#8b9099;vertical-align:-2px}
.position-side .edit-position-icon svg{display:block;width:100%;height:100%}
.symbol-search{width:100%;height:42px;border:0;outline:0;border-radius:8px;background:#0f1117;color:#fff;padding:0 12px;margin-bottom:10px}
.symbol-results{max-height:56vh;overflow:auto;display:grid;gap:6px}
.sheet-options .symbol-option{height:46px;display:flex;align-items:center;justify-content:space-between;background:#20242d}
.symbol-option strong{font-size:15px}
.symbol-option span{font-size:12px;color:#777d86}
.symbol-loading{color:#777d86;padding:12px 0}
.available-line strong{cursor:pointer}
.balance-editor{display:grid;gap:12px}
.balance-editor label{color:#777d86;font-size:13px}
.balance-editor input{height:46px;border:0;outline:0;border-radius:8px;background:#0f1117;color:#fff;padding:0 12px;font-size:18px}
.balance-editor button{height:44px;border-radius:8px;background:var(--green);color:#fff;font-weight:700}
.close-sheet{display:grid;gap:12px}
.close-sheet p{display:flex;justify-content:space-between;color:#888;margin:0}
.close-sheet p strong{color:#fff}
.close-mode,.close-percent{display:flex;gap:8px}
.close-mode button,.close-percent button{flex:1;text-align:center!important;padding:0!important;height:42px!important;border-radius:22px!important}
.close-mode .active,.close-percent .active{background:#454a54!important;color:#fff}
.close-sheet label{color:#888;font-size:13px}
.close-sheet input{height:46px;border:0;outline:0;border-radius:8px;background:#0f1117;color:#fff;padding:0 12px;font-size:17px}
.expected-loss{display:block!important;background:#202226;padding:14px;border-radius:9px}
.expected-loss em{color:var(--red);font-style:normal}
.post-only{display:flex;align-items:center;gap:8px;color:#fff!important;font-size:15px!important}
.post-only input{width:20px;height:20px}
.confirm-close{height:50px;border:0;border-radius:26px;background:#ff9f2d;color:#111;font-size:18px;font-weight:700}
