@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;600;700&display=swap');
:root{--bg:#000;--field:#1d2028;--line:#202329;--muted:#71757A;--icon-muted:#ADB1B8;--green:#20B26C;--red:#EF454A;--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:start!important;gap:13px;padding:10px 30px 13px;height:auto!important;min-height:0!important}.pair-row>div:first-child{display:flex!important;flex-direction:column!important;align-items:flex-start!important;justify-content:flex-start!important;align-self:start!important;min-width:0!important;height:auto!important;min-height:0!important}.pair-title{display:block;background:none;padding:0;font-size:27px;font-weight:700;line-height:1.1;margin:0;height:auto!important;min-height:0!important}.pair-title span{font-size:13px}.pair-change{display:block;color:var(--red);font-size:16px;line-height:1.1;margin:4px 0 0!important;height:auto!important;min-height:0!important;position:static!important}.mm-box{text-align:center;color:var(--green);font-size:14px;align-self:start!important}.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;align-self:start!important}.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;width:24px;height:24px;padding:0;background:none;display:flex;align-items:center;justify-content:center}.swap-btn svg{display:block;width:12px;height:12px}.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{display:flex;align-items:center;justify-content:center;width:25px;height:25px}.last-price div span svg{display:block;width:12px;height:12px}.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(32,178,108,.25)}.ratio-sell{width:35%;background:rgba(239,69,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;align-items:start}.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;transform:translateX(-8px)}.view-toggle button{width:61px;height:44px;border-radius:27px;font-size:24px}
  .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:11px;background:#4a4f58;display:inline-block}
.position-side u{text-decoration:none;color:#8b9099}
.tpbar em{font-style:normal}
.tpbar .tp-value{color:var(--green);letter-spacing:1px}
.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-grid .editable-quantity span{display:inline-flex;align-items:center;gap:4px}
.position-grid .editable-quantity .value-swap-icon{display:inline-flex;align-items:center;justify-content:center;width:14px;height:14px}
.position-grid .editable-quantity .value-swap-icon svg{display:block;width:14px;height:14px}
.position-grid .editable-quantity .value-swap-icon svg path{fill:#777d86!important}
.position-actions button{height:38px!important}
.account-tabs .icon-tab{width:24px;height:20px;padding:0;display:inline-flex;align-items:center;justify-content:center;align-self:center;line-height:1;position:relative;top:-5px}
.positions-summary>div:nth-child(2) small{font-size:14px}
.positions-summary button{height:38px!important}
.tpbar{height:38px!important;font-size:14px}
.position-card-head>span::before{display:inline-block;text-decoration-line:underline!important;text-decoration-style:dotted;text-decoration-color:#4d5158;text-decoration-thickness:1px;text-underline-offset:6px;background:none;padding-bottom:0}
.account-tabs button.icon-tab[aria-label="Position settings"] svg{filter:invert(46%) sepia(8%) saturate(300%) hue-rotate(175deg) brightness(91%) contrast(88%)}.account-tabs button.icon-tab:last-child{color:#70747d!important}.account-tabs button.icon-tab:last-child svg{display:block;width:24px;height:24px;opacity:1;filter:none}.account-tabs button.icon-tab:last-child svg path{fill:#70747d!important}
@media (max-width:700px){.topbar,.pair-row,.trade-grid,.account-tabs,.account-content{padding-left:15px;padding-right:15px}}
.trade-grid{grid-template-columns:minmax(0,62%) minmax(0,38%)}
@media (max-width:700px){.funding{font-size:13.5px}.funding strong{font-size:13.5px}.book-head{font-size:13px}.book-head small{font-size:12px}.book-row{font-size:15px;min-height:29px}.last-price strong{font-size:25px}.last-price small{font-size:13px}.ratio-label{font-size:13px}}
@media (max-width:700px){.calc-box>div{font-size:13px}.calc-box strong{font-size:14px}}
@media (max-width:700px){.depth-row button:first-child{height:34px;padding:0 8px;font-size:16px;border-radius:6px}.depth-row{gap:7px;margin-top:7px}}
@media (max-width:700px){.select-btn,.market-select{height:38px;border-radius:7px}}
@media (max-width:700px){.plus-btn{width:19px;height:19px;color:#fff;font-size:18px;line-height:15px;border-width:2px}}
@media (max-width:700px){
  .available-line{font-size:16px;font-weight:400}
  .available-line strong{font-size:16px;font-weight:400}
  .available-line .plus-btn{width:17px;height:17px;font-size:16px;line-height:13px;border-width:2px}
}
@media (max-width:700px){
  .order-input-wrap input{font-size:18px}
  .order-input-wrap b{font-size:18px}
  .order-input-wrap .swap-btn{font-size:25px}
}
.bottom-nav .home-icon{display:block;width:22px;height:22px}
@media (max-width:700px){
  .bottom-nav button:first-child>span{font-size:0;background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%238B8F98' d='M11.2 4.1Q12 3.4 12.8 4.1L19.2 8.9Q20 9.5 20 10.3V17.5A2.8 2.8 0 0 1 17.2 20.3H6.8A2.8 2.8 0 0 1 4 17.5V10.3Q4 9.5 4.8 8.9Z'/%3E%3Crect x='8.5' y='14' width='7' height='1.6' rx='.8' fill='%23111'/%3E%3C/svg%3E") center/39px 39px no-repeat}
  .bottom-nav button:nth-child(2)>span{font-size:0;background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='24' height='24'%3E%3Crect x='3' y='3' width='18' height='18' rx='3' fill='%238B8F98'/%3E%3Cpath d='M6.5 15.2L9.9 12.1L12.7 15L18.5 7.8' fill='none' stroke='%23111' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/33px 33px no-repeat}
  .bottom-nav button:nth-child(3)>.trade-icon{font-size:0;background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64'%3E%3Crect x='8' y='9' width='48' height='46' rx='7' fill='%23fff'/%3E%3Cpath d='M18 22H46' fill='none' stroke='%23000' stroke-width='4' stroke-linecap='round'/%3E%3Cpath d='M21 34L26 40L21 46' fill='none' stroke='%23000' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M34 34H46M34 46H46' fill='none' stroke='%23000' stroke-width='4' stroke-linecap='round'/%3E%3C/svg%3E") center/36px 33px no-repeat}
  .bottom-nav button:nth-child(4)>span{font-size:0;background: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='24' fill='%238B8F98'/%3E%3Ccircle cx='25' cy='25' r='3' fill='%23000'/%3E%3Ccircle cx='39' cy='39' r='3' fill='%23000'/%3E%3Cpath d='M24 40L40 24' fill='none' stroke='%23000' stroke-width='4.5' stroke-linecap='round'/%3E%3C/svg%3E") center/33px 33px no-repeat}
.bottom-nav button:nth-child(5)>span{font-size:0;background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64'%3E%3Cpath d='M12 16V14Q12 12 14 12H40Q42 12 42 14V16Z' fill='%237C7F86'/%3E%3Crect x='10' y='18' width='44' height='31' rx='3.5' fill='%237C7F86'/%3E%3Ccircle cx='43.5' cy='33.5' r='2.5' fill='%23111'/%3E%3C/svg%3E") center/35px 35px no-repeat}
  .book-mode{font-size:0!important;background:#1d2028 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' fill='none'%3E%3Cpath fill='%23EF454A' d='M2 3h6v6H2z'/%3E%3Cpath fill='%2320B26C' d='M2 11h6v6H2z'/%3E%3Cg fill='%23fff' opacity='.8'%3E%3Cpath d='M10 3h8v2h-8zM10 7h8v2h-8zM10 11h8v2h-8zM10 15h8v2h-8z'/%3E%3C/g%3E%3C/svg%3E") center/18px 18px no-repeat}
}
.position-grid .liq{color:#FF9C2E}
.position-card-head{display:grid;grid-template-columns:minmax(0,1fr) minmax(178px,auto);gap:10px;align-items:start}
.position-card-head>span{min-width:0;text-align:right}
.position-card{display:grid;grid-template-columns:minmax(0,1fr) minmax(178px,auto);column-gap:10px}
.position-card-head{display:contents}
.position-card-head>strong{grid-column:1;grid-row:1;align-self:start}
.position-card-head>span{grid-column:2;grid-row:1 / span 2;align-self:start}
.position-side{grid-column:1;grid-row:2;align-self:start;margin-bottom:17px}
.position-grid,.tpbar,.position-actions{grid-column:1 / -1}
@media (max-width:700px){
  /* Keep the lower controls aligned with the taller order-book column. */
  .order-column .selectors{margin-bottom:7px}
  .order-column .available-line{margin-top:10px;margin-bottom:10px}
  .order-column .market-select{margin-bottom:9px}
  .order-column .order-input-wrap{margin-bottom:10px}
  .order-column .slider-wrap{margin-bottom:6px}
  .order-column .calc-box{margin-bottom:10px}
  .order-column .check-row{margin-top:7px;margin-bottom:7px}
  .order-column .trade-btn{margin-top:7px}
}
.slider-wrap{touch-action:none}
.position-side .edit-position-icon{display:inline-flex;align-items:center;width:18px;height:18px;margin-left:3px;color:#777d86;vertical-align:-4px}
.position-side .edit-position-icon svg{display:block;width:100%;height:100%}
.position-card-head>span{font-size:14px}
.position-grid span{font-size:13px}
.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}
 .view-icon{width:24px;height:24px;display:block}
 .book-row span:last-child{color:#fff}
 .book-row{overflow:hidden}.book-row:before{z-index:0;transition:width .18s ease-out}.book-row span{z-index:1}
 .book-row:before{top:0;bottom:0}
 .close-sheet-panel{background:#0d0d0f;padding:20px 30px 64px;border-radius:28px 28px 0 0;min-height:calc(100dvh - 84px);max-height:calc(100dvh - 84px)}.close-sheet-panel .sheet-head{padding-bottom:20px;border-bottom:1px solid #242529}.close-sheet-panel .sheet-head h3{font-size:24px;margin:10px 0}.close-sheet-panel .sheet-head button{font-size:36px;font-weight:300}.close-sheet{grid-template-columns:145px minmax(0,1fr);gap:20px 14px;align-items:center}.close-sheet .close-mode,.close-sheet p,.close-sheet .expected-loss,.close-sheet .post-only,.close-sheet .confirm-close{grid-column:1/-1}.close-sheet p{font-size:17px;color:#7d7f86}.close-sheet p strong{font-size:17px}.close-sheet label{font-size:18px}.close-sheet input{width:100%;height:68px;border-radius:11px;background:#1d1e25;font-size:20px}.price-input{display:grid;grid-template-columns:1fr 48px 48px;align-items:center;background:#1d1e25;border-radius:11px;overflow:hidden}.price-input input{background:transparent;border-radius:0}.price-input button{height:68px;background:transparent;font-size:31px;padding:0}.price-input button+button{border-left:1px solid #3a3c43}.close-mode button{height:42px!important;background:#1a1b20!important;color:#777b83!important}.close-mode button.active{background:#3b3c43!important;color:#fff!important}.close-percent button{height:38px!important;font-size:16px;background:#202126!important}.close-percent .active{border:1px solid #fff;background:#17181d!important}.expected-loss{font-size:16px!important;line-height:1.35;margin:0!important;background:#1b1b1e!important}.post-only{font-size:17px!important}.post-only input{width:24px!important;height:24px!important}.confirm-close{height:58px;margin-top:auto;border-radius:30px;font-size:22px}.close-sheet-panel .sheet-options{height:100%;overflow:auto}

/* Close By modal: match the Bybit Market sheet and keep the new layout isolated. */
.close-sheet-panel{background:#0d0d0f!important;padding:20px 30px 64px!important;border-radius:28px 28px 0 0!important;min-height:calc(100dvh - 84px)!important;max-height:calc(100dvh - 84px)!important;overflow:hidden!important}
.close-sheet-panel .sheet-head{padding:0 0 20px!important;border-bottom:1px solid #242529!important}
.close-sheet-panel .sheet-head h3{font-size:24px!important;font-weight:500!important;margin:10px 0!important}
.close-sheet-panel .sheet-head button{font-size:36px!important;font-weight:300!important;line-height:1!important}
.close-sheet-panel .sheet-options{height:calc(100% - 58px)!important;margin-top:22px!important;overflow:hidden!important}
.close-sheet{grid-template-columns:145px minmax(0,1fr)!important;gap:20px 14px!important;align-items:center!important;height:100%!important}
.close-sheet .close-mode,.close-sheet p,.close-sheet .expected-loss,.close-sheet .post-only,.close-sheet .confirm-close{grid-column:1/-1!important}
.close-mode{gap:0!important;background:#1b1b20!important;border-radius:24px!important;overflow:hidden!important}
.close-mode button{height:42px!important;border-radius:22px!important;background:transparent!important;color:#777b83!important;font-size:18px!important;font-weight:600!important}
.close-mode button.active{background:#41434a!important;color:#fff!important}
.close-sheet p{font-size:17px!important;color:#7d7f86!important}
.close-sheet p strong{font-size:17px!important;color:#fff!important;font-weight:400!important}
.close-sheet label{font-size:18px!important;color:#7d7f86!important}
.close-sheet input{width:100%!important;height:68px!important;border-radius:11px!important;background:#1d1e25!important;font-size:20px!important}
.close-percent{gap:8px!important}
.close-percent button{height:38px!important;border-radius:20px!important;background:#202126!important;font-size:16px!important}
.close-percent .active{border:1px solid #fff!important;background:#17181d!important;color:#fff!important}
.expected-loss{font-size:16px!important;line-height:1.35!important;margin:0!important;padding:14px!important;background:#1b1b1e!important;border-radius:9px!important}
.post-only{font-size:17px!important;color:#fff!important}
.post-only input{width:24px!important;height:24px!important}
.confirm-close{height:58px!important;margin-top:auto!important;border-radius:30px!important;background:#ff9f2d!important;color:#111!important;font-size:22px!important;font-weight:700!important}
.pair-title .dropdown-icon{display:inline-flex!important;width:14px!important;height:14px!important;margin-left:5px!important;align-items:center;justify-content:center;vertical-align:middle}.pair-title .dropdown-icon svg{display:block!important;width:7px!important;height:6px!important}
.depth-row button:first-child>span:last-child{display:inline-flex!important;width:5px!important;height:4px!important;align-items:center;justify-content:center}.depth-row button:first-child>span:last-child svg{display:block!important;width:5px!important;height:4px!important}
@media(min-width:701px){.depth-row{margin-top:36px!important}}
.book-list{display:grid;grid-auto-rows:minmax(25px,auto);gap:0;overflow:hidden}
.book-row{min-height:25px;overflow:hidden}
.book-row:before{top:0!important;bottom:0!important;right:0!important;border-radius:0!important;opacity:.28!important;transition:width .55s linear!important}
.book-row.sell:before{background:#5b0b14!important}
.book-row.buy:before{background:#003d24!important}
.book-row span:last-child{color:#fff!important}
.position-grid>div:nth-child(2),.position-grid>div:nth-child(3){transform:translateX(10px)}
.position-card-head>span{background:none;text-decoration-line:underline;text-decoration-style:dotted;text-decoration-color:#4d5158;text-decoration-thickness:1px;text-underline-offset:7px}
.position-card-head>span em{ text-decoration:none }
.position-grid span{border:0;padding-bottom:0;text-decoration-line:underline;text-decoration-style:dotted;text-decoration-color:#4d5158;text-decoration-thickness:1px;text-underline-offset:5px}
.position-card-head>span em,.position-grid>div:first-child span{text-decoration:none!important}
.position-card-head>span{font-size:0!important;text-decoration:none!important}
.position-card-head>span::before{content:"Unrealized P&L (USDT) ↗";font-size:14px;color:#777d86;text-decoration-line:underline;text-decoration-style:dotted;text-decoration-color:#4d5158;text-decoration-thickness:1px;text-underline-offset:5px}
.position-card-head>span::before{content:none!important}
.compact-paren{display:inline-block;font-size:.92em;line-height:1;letter-spacing:-.15px;transform:translateY(-.04em);transform-origin:center}
.position-card-head em .compact-paren{font-size:.84em;letter-spacing:-.28px;transform:translateY(-.11em) scaleY(.95)}
.percent-mark{display:inline-flex;align-items:center;justify-content:center;width:1em;height:1em;vertical-align:-.12em;margin-left:.02em}
.position-card-head em .percent-mark{margin-left:-.08em;margin-right:-.08em;transform:translateY(.05em)}
.percent-mark svg{display:block;width:100%;height:100%}
.pnl-label{font-size:14px;color:#777d86;text-decoration-line:underline;text-decoration-style:dotted;text-decoration-color:#4d5158;text-decoration-thickness:1px;text-underline-offset:5px}
.pnl-label{font-size:0!important;display:inline-flex;align-items:center;gap:2px}
.pnl-label .pnl-text{display:inline-block;font-size:14px;color:#777d86;white-space:nowrap;border-bottom:1px dotted #4d5158;padding-bottom:2px;text-decoration:none;transform:translateX(-5px)}
.pnl-label::before{content:none}
.pnl-label .compact-paren{font-size:12.9px;transform:translateY(-.08em)}
.summary-pnl-label .compact-paren,.position-grid span .compact-paren{transform:translateY(-.08em)}
.position-grid .editable-quantity span .compact-paren:first-of-type{margin-right:-.24em}
.position-grid .editable-quantity span .compact-paren:nth-of-type(2){margin-left:-.14em}
.pnl-label::after{content:"";display:inline-block;width:20px;height:20px;transform:none;background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64'%3E%3Cpath d='M27 15H18a7 7 0 0 0-7 7v24a7 7 0 0 0 7 7h24a7 7 0 0 0 7-7v-9' fill='none' stroke='%238B8F98' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M30 34L53 11' fill='none' stroke='%238B8F98' stroke-width='4' stroke-linecap='round'/%3E%3Cpath d='M40 11H53V24' fill='none' stroke='%238B8F98' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat}
.pnl-label{border-bottom:0;padding-bottom:0;text-decoration:none!important}
.pnl-label .compact-paren{text-decoration:none!important}
.pnl-label{gap:1px}
.pnl-label::after{display:none}
.pnl-label .pnl-arrow{display:inline-flex;align-items:center;justify-content:center;width:18px;height:18px;transform:translateY(-1px);flex:0 0 18px}
.pnl-label .pnl-arrow svg{display:block;width:100%;height:100%}
.pnl-label.profit .pnl-arrow{color:var(--muted)!important}
.pnl-label.loss .pnl-arrow{color:var(--muted)!important}
.positions-summary>div:nth-child(2)>b{transform:translateY(-6px)}
.positions-summary{position:relative}
.positions-summary>div:nth-child(2)>b{position:absolute;top:4px;right:0;transform:none}
.positions-summary>div:nth-child(2){align-items:flex-end}
.positions-summary>div:nth-child(2)>b{position:static;align-self:flex-end;margin:0;transform:none}
.positions-summary>div:nth-child(2)>b{position:absolute;top:0;right:0;display:flex;flex-direction:column;align-items:flex-end;margin:0}
.positions-summary>div:nth-child(2){display:block;margin-top:6px}
.summary-pnl-label{display:inline-block;padding-bottom:2px;border-bottom:1px dotted #737881;text-decoration:none}
.positions-summary>div:nth-child(2)>b{top:-34px;line-height:1}
.positions-summary>div:nth-child(2)>b .summary-pnl-label{display:block;line-height:18px}
.positions-summary>div:nth-child(2)>b em{display:block;margin-top:12px;line-height:22px}
.account-tabs .icon-tab{position:relative;top:-6px;height:24px;align-self:center}
.positions-summary > div:nth-of-type(2){position:relative;top:2px}
.bottom-nav{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));align-items:stretch}
.bottom-nav > button{min-width:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;text-align:center;line-height:1}
.bottom-nav > button > span:first-child,.bottom-nav > button > .trade-icon{width:26px;height:26px;display:inline-flex;align-items:center;justify-content:center;flex:0 0 26px;line-height:0}
.bottom-nav svg,.bottom-nav img{display:block;width:24px;height:24px;max-width:24px;max-height:24px;object-fit:contain}
.bottom-nav small{min-height:16px;line-height:16px;margin:0}
.account-tabs button,.positions-summary>div:nth-child(2),.position-card-head>span,.position-grid span,.tpbar,.available-line,.calc-box>div,.symbol-option span,.symbol-loading,.balance-editor label,.close-sheet p,.close-sheet label,.close-mode button{color:var(--muted)!important}
.account-tabs button.icon-tab:last-child,.account-tabs button.icon-tab:last-child svg path,.position-side u,.position-side .edit-position-icon,.position-grid .editable-quantity .value-swap-icon svg path,.bottom-nav button{color:var(--icon-muted)!important}

