/* Trade section: trade-account-bar.css */
.trade-market-strip{display:flex;align-items:stretch;flex-wrap:wrap;margin-bottom:16px;border:1px solid var(--border-soft-2,rgba(255,255,255,.1));border-radius:16px;background:linear-gradient(178deg, rgba(45, 99, 143, .16), rgba(16, 29, 42, .35));backdrop-filter:blur(20px);overflow:hidden}
.trade-account{display:flex;align-items:center;gap:24px;min-width:0;box-sizing:border-box;min-height:98px;padding:18px 22px;color:var(--tx1,var(--text-1,#fff));font-family:var(--font-body,var(--sans,inherit))}
/* Basis = widest (Demo) content, so the market widgets wrap at the same width in both modes. */
.trade-market-strip>.trade-account{flex:1 1 1300px}
body>.trade-account{margin:10px 12px;border:1px solid var(--b1,#293441);border-radius:14px;background:var(--bg1,#111b27);flex-shrink:0}
.trade-account__identity{display:flex;align-items:center;gap:14px;flex:0 0 250px;min-width:0}
.trade-account__logo{width:46px;height:46px;object-fit:contain;flex-shrink:0}
.trade-account__identity h2{margin:0 0 6px;font-family:var(--font-display,inherit);font-size:18px;line-height:1.25;font-weight:600;white-space:nowrap;color:var(--blue-1,#87aedb)}
.trade-account__description{margin:0;max-width:200px;font-size:11px;line-height:1.45;color:var(--tx2,var(--text-2,#aab2bf))}
.trade-account__balances{display:flex;align-items:center;gap:24px;padding-left:24px;border-left:1px solid var(--border-soft,rgba(255,255,255,.08))}
.trade-account__balance{display:flex;align-items:center;gap:10px;min-width:145px}
.trade-account__coin{display:flex;align-items:center;justify-content:center;width:36px;height:36px;flex:0 0 36px;border:1px solid rgba(135,174,219,.18);border-radius:50%;color:var(--blue-1,#87aedb);background:rgba(135,174,219,.05);font-size:18px}
.trade-account__coin img{width:20px;height:20px;object-fit:contain}
.trade-account__label{display:block;font-size:10px;line-height:1.3;color:var(--tx2,var(--text-2,#aab2bf));white-space:nowrap}
.trade-account__balance strong{display:block;margin-top:5px;font-size:15px;line-height:1.3;font-weight:600;white-space:nowrap;font-variant-numeric:tabular-nums}
.trade-account__balance small{font-size:10px;color:var(--tx2,var(--text-2,#aab2bf))}
.trade-account__pnl{display:flex;align-items:center;gap:10px;flex-shrink:0}
.trade-account__trend{font-size:26px;color:#75ab94}
.trade-account__pnl strong{display:block;margin-top:4px;font-size:14px;font-weight:600;white-space:nowrap}
.trade-account__pnl small{display:block;margin-top:3px;font-size:9px;color:var(--tx2,var(--text-2,#aab2bf))}
.trade-account__switch{position:relative;display:flex;margin-left:auto;padding:4px;border:1px solid var(--border-soft-2,rgba(255,255,255,.1));border-radius:12px;background:rgba(0,0,0,.16);flex:0 0 284px;box-sizing:border-box}
.trade-account__switch::before{content:'';position:absolute;top:4px;bottom:4px;left:4px;width:calc(50% - 4px);border-radius:8px;background:linear-gradient(145deg,rgba(135,174,219,.24),rgba(135,174,219,.12));box-shadow:inset 0 0 0 1px rgba(135,174,219,.4),0 2px 6px rgba(0,0,0,.12);transition:transform .22s ease}
.trade-account[data-trading-mode="demo"] .trade-account__switch::before{transform:translateX(100%)}
/* Demo: dedicate the market-depth column to the order book. */
.exch:has(.trade-account[data-trading-mode="demo"]) .exch-side>.exch-trades{display:none}
.exch:has(.trade-account[data-trading-mode="demo"]) .exch-orderbook{display:flex;flex-direction:column;flex:1;min-height:0}
.exch:has(.trade-account[data-trading-mode="demo"]) .exch-orderbook__rows{display:flex;flex-direction:column;flex:1;min-height:0;overflow:hidden}
/* Без прокрутки: у продаж лучшая цена у спреда, лишнее срезается сверху */
.exch:has(.trade-account[data-trading-mode="demo"]) .exch-orderbook__rows--asks{justify-content:flex-end}
.exch:has(.trade-account[data-trading-mode="demo"]) .exch-orderbook__row{flex:1 0 20px;box-sizing:border-box}
.exch:has(.trade-account[data-trading-mode="demo"]) .exch-orderbook__spread{flex-shrink:0}
@media(max-width:1200px){.exch:has(.trade-account[data-trading-mode="demo"]) .exch-side{height:760px}}
.trade-account__switch button{position:relative;z-index:1;display:flex;align-items:center;justify-content:center;gap:9px;flex:1;min-width:0;min-height:50px;border:0;border-radius:8px;padding:9px 10px;background:transparent;color:var(--tx2,var(--text-2,#aab2bf));font:inherit;text-align:left;cursor:pointer}
.trade-account__switch button[aria-pressed="true"]{color:var(--tx1,var(--text-1,#fff))}
.trade-account__switch button:hover{color:var(--tx1,var(--text-1,#fff));background:rgba(135,174,219,.04)}
.trade-account__switch button:focus-visible{outline:2px solid var(--blue-1,#87aedb);outline-offset:2px}
.trade-account__switch svg,.trade-account__switch img{width:23px;height:23px;object-fit:contain;flex-shrink:0;color:var(--blue-1,#87aedb)}
.trade-account__switch strong{display:block;font-size:11px;line-height:1.4;font-weight:600;white-space:nowrap}
.trade-account__switch small{display:block;margin-top:3px;font-size:9px;line-height:1.3;white-space:nowrap;opacity:.7}
.trade-market-strip>.exch-ticker__widgets{margin-left:auto}
.trade-mode-notice{margin:0 0 10px;font-size:11px;color:var(--blue-1,#87aedb)}
#spotForm[data-trading-mode="demo"] [data-market="spot"]{display:none}
@media(max-width:1800px){.trade-market-strip>.exch-ticker__widgets{flex:1 0 100%;border-top:1px solid var(--border-soft,rgba(255,255,255,.08))}.trade-account__identity{flex-basis:240px}}
@media(max-width:1200px){.trade-account{flex-wrap:wrap;gap:18px}.trade-account__identity{flex:1 1 230px}.trade-account__balances{gap:18px;padding-left:18px}.trade-account__switch{margin-left:auto}}
@media(max-width:760px){.trade-account{padding:16px;gap:16px}.trade-account__identity{flex:1 0 100%}.trade-account__identity h2{font-size:18px}.trade-account__description{max-width:none}.trade-account__balances{flex:1 0 100%;padding:12px 0 0;border-left:0;border-top:1px solid var(--border-soft,rgba(255,255,255,.08));gap:12px}.trade-account__balance{flex:1;min-width:0;gap:8px}.trade-account__coin{width:30px;height:30px;flex-basis:30px}.trade-account__balance strong{font-size:13px}.trade-account__label{font-size:9px}.trade-account__switch{flex:1 0 100%;margin:0}.trade-account__pnl{width:100%}.trade-account__logo{width:40px;height:40px}.trade-market-strip>.exch-ticker__widgets{width:100%;overflow:auto}}
@media(prefers-reduced-motion:reduce){.trade-account__switch::before{transition:none}}
.trade-account__balance[hidden],.trade-account__demo-hint[hidden],.trade-account__tournament[hidden]{display:none}
/* Demo tournament countdown: shown between PnL and the mode switch. */
.trade-account__tournament{display:none!important;align-items:center;gap:14px;flex-shrink:0;padding:0 24px;border-left:1px solid var(--border-soft,rgba(255,255,255,.08));border-right:1px solid var(--border-soft,rgba(255,255,255,.08))}
.trade-account__trophy{width:30px;height:30px;flex:0 0 30px;color:#f2b632}
.trade-account__tournament .trade-account__label{font-size:11px}
.trade-account__timer{display:block;margin-top:5px;font-family:var(--font-display,inherit);font-size:20px;line-height:1.2;font-weight:700;white-space:nowrap;font-variant-numeric:tabular-nums}
.trade-account__info{display:inline-flex;align-items:center;justify-content:center;align-self:flex-end;width:17px;height:17px;margin-bottom:4px;border:1px solid currentColor;border-radius:50%;color:var(--tx2,var(--text-2,#aab2bf));font:600 10px/1 serif;cursor:help;opacity:.8}
.trade-account__info:focus-visible{outline:2px solid var(--blue-1,#87aedb);outline-offset:2px}
/* Same strip height in Real and Demo: the description never grows past two lines. */
.trade-account__description{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden}
@media(min-width:1201px) and (max-width:2000px){.trade-account{gap:16px}.trade-account__identity{flex-basis:230px}}
@media(max-width:2000px){.trade-account__tournament{padding:0 18px;gap:10px}.trade-account__timer{font-size:17px}}

@media(min-width:1201px){
  .trade-account__tournament{margin-left:auto;border-right:0;padding-right:0}
}
@media(max-width:760px){.trade-account__tournament{flex:1 0 100%;padding:12px 0 0;border:0;border-top:1px solid var(--border-soft,rgba(255,255,255,.08))}}
.trade-account__demo-hint{display:block;margin-top:2px;font-size:8px;line-height:1.4;white-space:nowrap;color:var(--tx2,var(--text-2,#aab2bf));opacity:.75}
/* Same tinted blocks in Real and Demo. Vertical padding stays small so they never outgrow the 60px mode switch (strip height stays constant). */
.trade-account .trade-account__balances{padding:4px 14px;border-radius:8px}
.trade-account .trade-account__pnl{padding:4px 12px;border-radius:8px;background:rgba(49,121,98,.045)}
.trade-account .trade-account__pnl strong{color:#65b590}
.trade-account .trade-account__pnl strong.is-neg{color:#e27383}

.trade-form-position{margin:0 0 10px;padding:8px 10px;border:1px solid rgba(135,174,219,.14);border-radius:8px;background:rgba(135,174,219,.06);font-size:11px;line-height:1.55;color:var(--tx2,var(--text-2,#aab2bf))}
.trade-form-position b{font-weight:600}.trade-form-position .is-up{color:#65b590}.trade-form-position .is-down{color:#e27383}
.trade-form-position[hidden]{display:none}
#submitBtn.is-loading{opacity:.7;cursor:progress}
@media(max-width:760px){.trade-account .trade-account__balances{box-sizing:border-box}.trade-account .trade-account__pnl{box-sizing:border-box}}


/* Trade section: trade-demo-panels.css */
.demo-workspace{display:grid;grid-template-columns:minmax(0,1fr) 390px;gap:16px;margin-top:16px;margin-bottom:0;font-family:var(--font-body,var(--sans,inherit));color:var(--tx1,var(--text-1,#fff))}
.demo-workspace[hidden],.exch-grid-bottom[hidden],.btm[hidden],.demo-workspace [hidden]{display:none!important}
.demo-orders-card{min-width:0;border:1px solid var(--border-soft-2,var(--b1,rgba(255,255,255,.1)));border-radius:16px;background:var(--panel-2,var(--bg1,rgba(255,255,255,.04)));overflow:hidden}
.demo-orders-card{display:flex;flex-direction:column}
.demo-orders-toolbar{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:14px;padding:14px 18px 0;border-bottom:1px solid var(--border-soft,rgba(255,255,255,.08))}
.demo-order-tabs{display:flex;gap:22px;align-self:stretch}
.demo-order-tabs button{padding:14px 0 17px;border:0;border-bottom:2px solid transparent;background:transparent;color:var(--tx2,var(--text-2,#aab2bf));font:inherit;font-size:14px;white-space:nowrap;cursor:pointer}
.demo-order-tabs button[aria-selected=true]{color:var(--blue-1,#87aedb);border-color:var(--blue-1,#87aedb);font-weight:600}
.demo-workspace button:focus-visible,.demo-workspace select:focus-visible,.demo-workspace input:focus-visible{outline:2px solid var(--blue-1,#87aedb);outline-offset:2px}
.demo-workspace button:disabled{cursor:default;opacity:.65}
.demo-table-scroll{overflow-x:auto;padding:0 20px;min-height:0}
.demo-orders-table{border-collapse:collapse;width:100%;font-size:13px;white-space:nowrap;font-variant-numeric:tabular-nums}
.demo-orders-table th{font-size:10px;font-weight:500;color:var(--tx2,var(--text-2,#aab2bf));text-align:left;padding:18px 10px;border-bottom:1px solid var(--border-soft,rgba(255,255,255,.08))}
.demo-orders-table td{padding:15px 10px;border-bottom:1px solid var(--border-soft,rgba(255,255,255,.08))}
.demo-orders-table tbody tr:nth-child(even){background:rgba(135,174,219,.035)}
.demo-pair{display:flex;gap:9px;align-items:center;font-weight:600}.demo-pair img{object-fit:contain}
.demo-workspace .positive{color:var(--green,var(--g1,#18a979))}.demo-workspace .negative{color:var(--red,var(--r1,#df5b67))}
.demo-tpsl{display:flex;gap:12px;line-height:1.8;color:var(--tx2,var(--text-2,#aab2bf))}.demo-order-time{color:var(--tx2,var(--text-2,#aab2bf))}
.demo-order-actions{display:flex;gap:8px}.demo-order-actions button{border:1px solid var(--border-soft-2,rgba(255,255,255,.1));border-radius:17px;background:rgba(135,174,219,.06);padding:9px 12px;color:inherit;font:inherit}.demo-order-actions .demo-cancel{color:#e17b87;border-color:rgba(223,91,103,.28);background:rgba(223,91,103,.06)}
.demo-orders-footer{display:flex;gap:10px;align-items:center;padding:14px 20px;font-size:11px;line-height:1.5;color:var(--tx2,var(--text-2,#aab2bf))}.demo-orders-footer>span{font-size:17px;color:var(--blue-1,#87aedb)}
.demo-table-empty{text-align:center;padding:65px 16px;color:var(--tx2,var(--text-2,#aab2bf));font-size:12px}
@media(max-width:1400px){.demo-workspace{grid-template-columns:minmax(0,1fr) 330px}}
@media(max-width:1050px){.demo-workspace{grid-template-columns:1fr}}
@media(max-width:600px){.demo-orders-toolbar{padding:8px 12px 0;gap:8px}.demo-order-tabs{gap:18px;width:100%;overflow:auto}.demo-order-tabs button{font-size:11px}.demo-table-scroll{padding:0 12px}.demo-orders-footer{padding:12px}.demo-workspace{gap:12px}}

/* Consistent card edges, legible rows and a compact statistics column. */
.demo-orders-card{background:linear-gradient(178deg, rgba(45, 99, 143, .16), rgba(16, 29, 42, .35));border-color:var(--border-soft-2,rgba(255,255,255,.1));box-shadow:0 2px 8px rgba(0,0,0,.08)}
.demo-orders-card::before{display:none}
.demo-orders-toolbar{padding:6px 20px 0;min-height:65px;gap:10px}
.demo-order-tabs{gap:26px}.demo-order-tabs button{padding:18px 0 17px}
.demo-order-tabs button span{font-size:11px;margin-left:4px;color:var(--tx2,var(--text-2,#aab2bf))}
.demo-orders-table th{height:45px;padding:12px 10px;letter-spacing:.035em}
.demo-orders-table td{height:72px;box-sizing:border-box;font-weight:400}
.demo-orders-table td:nth-child(1){width:28px;color:var(--tx2,var(--text-2,#aab2bf))}
.demo-orders-table th:nth-child(5),.demo-orders-table th:nth-child(6),.demo-orders-table th:nth-child(8),.demo-orders-table td:nth-child(5),.demo-orders-table td:nth-child(6),.demo-orders-table td:nth-child(8){text-align:right;padding-right:20px}
.demo-orders-table tbody tr:nth-child(even){background:rgba(135,174,219,.025)}
.demo-orders-table tbody tr:hover{background:rgba(135,174,219,.05)}
.demo-orders-table td:nth-child(8){font-weight:500}
.demo-pair img{width:30px;height:30px}.demo-tpsl{font-size:12px;line-height:1.65}
.demo-order-time{font-size:11px;line-height:1.6}.demo-order-time small{display:block;color:var(--text-3,#798592);font-size:10px}
.demo-order-actions button{padding:8px 12px;min-height:34px;font-size:12px}
.demo-workspace button:disabled{opacity:.82}.demo-orders-footer{margin-top:auto;border-top:1px solid var(--border-soft,rgba(255,255,255,.08));background:rgba(0,0,0,.06)}
.demo-workspace .positive{color:#41b88c}.demo-workspace .negative{color:#e27383}
@media(min-width:2200px){.demo-workspace{grid-template-columns:minmax(0,1fr) 460px}.demo-orders-table{font-size:14px}.demo-orders-table td{height:77px}}
@media(max-width:1400px){.demo-workspace{grid-template-columns:minmax(0,1fr) 350px}.demo-orders-toolbar{gap:0}.demo-order-tabs{width:100%}.demo-orders-table{min-width:1040px}}
@media(max-width:1100px){.demo-workspace{grid-template-columns:1fr}.demo-table-scroll{flex:initial}}
@media(max-width:600px){.demo-orders-toolbar{padding:4px 12px 0}.demo-order-tabs{gap:18px}.demo-order-tabs button{font-size:12px}.demo-table-scroll{padding:0 12px}.demo-orders-footer{margin-top:0;font-size:10px}}
/* Compact rows; the viewport uses the available card height. */
.demo-orders-card{align-self:start}
.demo-table-scroll{max-height:65vh;overflow:auto;flex:none;scrollbar-width:thin;scrollbar-color:rgba(135,174,219,.3) transparent}
.demo-table-scroll::-webkit-scrollbar{width:6px;height:6px}
.demo-table-scroll::-webkit-scrollbar-thumb{background:rgba(135,174,219,.3);border-radius:6px}
.demo-orders-table{border-collapse:separate;border-spacing:0;font-size:11px;line-height:1.3}
.demo-orders-table th{position:sticky;top:0;z-index:2;height:38px;box-sizing:border-box;padding:8px 10px;font-size:9px;background:transparent;}
.demo-orders-table td{height:48px;padding:6px 10px;box-sizing:border-box;font-size:11px;line-height:1.3}
.demo-pair img{width:24px;height:24px}
.demo-tpsl{font-size:10px;line-height:1.6}
.demo-order-time{font-size:10px}.demo-order-time small{font-size:9px;line-height:1.4}
.demo-order-actions button{min-height:28px;padding:5px 9px;font-size:10px}
.demo-order-tabs button{font-size:12px}
/* Orders summary (Active Orders | Margin Used | Floating PnL): a panel at the right end of the toolbar. */
.demo-orders-summary{display:flex;align-items:center;gap:12px;box-sizing:border-box;margin:0 0 6px auto;padding:9px 14px;border:1px solid var(--border-soft-2,rgba(255,255,255,.1));border-radius:10px;background:rgba(135,174,219,.05);font-size:11px;white-space:nowrap;color:var(--tx2,var(--text-2,#aab2bf))}
.demo-orders-summary dl{display:flex;align-items:center;margin:0}
.demo-orders-summary dl>div{display:flex;gap:5px;padding:0 12px;border-left:1px solid var(--border-soft-2,rgba(255,255,255,.1))}
.demo-orders-summary dl>div:first-child{padding-left:0;border-left:0}
.demo-orders-summary dd{margin:0;font-weight:600;color:var(--tx1,var(--text-1,#fff));font-variant-numeric:tabular-nums}
.demo-summary-info{display:inline-flex;align-items:center;justify-content:center;width:15px;height:15px;border:1px solid currentColor;border-radius:50%;font:600 9px/1 serif;cursor:help;opacity:.8}
.demo-summary-info:focus-visible{outline:2px solid var(--blue-1,#87aedb);outline-offset:2px}
@media(max-width:1400px){.demo-orders-summary{width:100%;margin:0 0 10px}}
@media(max-width:600px){.demo-orders-summary dl{flex-wrap:wrap;row-gap:6px}}

/* Live demo account: positions / orders / history / leaderboard. */
.demo-orders-footer>[data-footer]{font-size:11px;color:var(--tx2,var(--text-2,#aab2bf))}
.demo-bulk{margin:0 0 6px 10px}
.demo-pair-link{border:0;padding:0;background:none;color:inherit;font:inherit;font-weight:600;cursor:pointer;text-align:left}
.demo-pair-link:hover{color:var(--blue-1,#87aedb)}
.demo-pair-link:focus-visible{outline:2px solid var(--blue-1,#87aedb);outline-offset:2px}
.demo-btn{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:30px;padding:6px 12px;border:1px solid rgba(135,174,219,.35);border-radius:18px;background:rgba(135,174,219,.12);color:var(--tx1,#fff);font:inherit;font-size:11px;font-weight:500;text-decoration:none;cursor:pointer;white-space:nowrap}
.demo-btn:hover{background:rgba(135,174,219,.2)}
.demo-btn--danger{color:#e17b87;border-color:rgba(223,91,103,.35);background:rgba(223,91,103,.08)}
.demo-btn--danger:hover{background:rgba(223,91,103,.16)}
.demo-btn--ghost{background:transparent}
.demo-workspace button:disabled{cursor:progress;opacity:.55}
.demo-order-actions button{cursor:pointer}.demo-order-actions button:hover{background:rgba(135,174,219,.14)}
.demo-order-actions .demo-cancel:hover{background:rgba(223,91,103,.14)}
.demo-coin{position:relative;display:inline-flex;align-items:center;justify-content:center;width:22px;height:22px;flex:0 0 22px;border-radius:50%;overflow:hidden;background:rgba(135,174,219,.16);color:var(--blue-1,#87aedb);font-size:10px}
.demo-coin img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}

.demo-pair .demo-coin img{width:100%;height:100%}
.demo-sub{display:block;margin-top:2px;font-size:9px;font-weight:400;color:var(--text-3,#798592)}
.demo-orders-table td .demo-sub{white-space:nowrap}
.demo-liq{color:#e8a36b}
.demo-history-switch{display:flex;gap:6px;padding:10px 20px 0}
.demo-history-switch button{padding:5px 11px;border:1px solid var(--border-soft-2,rgba(255,255,255,.1));border-radius:999px;background:transparent;color:var(--tx2,#aab2bf);font:inherit;font-size:11px;cursor:pointer}
.demo-history-switch button[aria-pressed=true]{background:rgba(135,174,219,.14);border-color:rgba(135,174,219,.4);color:var(--tx1,#fff)}
.demo-tpsl-edit td{height:auto!important;padding:10px!important;background:rgba(135,174,219,.05)}
.demo-tpsl-edit form{display:flex;flex-wrap:wrap;align-items:flex-end;gap:10px;font-size:11px;color:var(--tx2,#aab2bf)}
.demo-tpsl-edit form>span{flex:1 0 100%;color:var(--tx1,#fff)}
.demo-tpsl-edit label{display:flex;flex-direction:column;gap:4px}
.demo-tpsl-edit input{width:150px;min-height:30px;box-sizing:border-box;padding:6px 9px;border:1px solid var(--border-soft-2,rgba(255,255,255,.12));border-radius:7px;background:var(--bg-elevated,#101a26);color:inherit;font:inherit;font-size:12px}
.demo-tpsl-edit small{flex:1 0 100%;font-size:10px;color:var(--text-3,#798592)}
.demo-login{display:flex;flex-direction:column;align-items:center;gap:10px;padding:48px 16px;text-align:center}
.demo-login strong{font-size:15px}.demo-login p{max-width:420px;margin:0;font-size:12px;line-height:1.6;color:var(--tx2,#aab2bf)}
.demo-lb-me td{background:rgba(135,174,219,.08)}
.demo-lb-note{margin:0;padding:12px 10px;font-size:11px;color:var(--tx2,#aab2bf)}
@media(max-width:1400px){.demo-bulk{margin:0 0 10px}}
/* Closing actions use the terminal's neutral button palette. */
.demo-order-actions button[data-act="close"],.demo-workspace button[data-act="bulk"]{color:var(--tx1,var(--text-1,#e2e8ef));border-color:var(--border-soft-2,rgba(255,255,255,.1));background:rgba(255,255,255,.035);box-shadow:none}
.demo-order-actions button[data-act="close"]:hover,.demo-workspace button[data-act="bulk"]:hover{color:var(--tx1,var(--text-1,#fff));border-color:rgba(255,255,255,.2);background:rgba(255,255,255,.075)}
.demo-order-actions button[data-act="close"]:active,.demo-workspace button[data-act="bulk"]:active{background:rgba(255,255,255,.1)}
/* Clearer position rows without changing the six-row viewport. */
.demo-orders-card .positive{color:#25d49b}
.demo-orders-card .negative{color:#ff657b}
.demo-orders-table [data-cell="pnl"]{font-weight:600;letter-spacing:.01em}
.demo-orders-table [data-cell="pnl"] .demo-sub{color:inherit;opacity:.85;font-weight:500}
.demo-orders-card .demo-orders-summary [data-sum="upnl"]{font-weight:600}
.demo-orders-card .demo-orders-table th{color:#9eafc1;border-bottom-color:rgba(144,170,198,.18)}
.demo-orders-card .demo-orders-table td{border-bottom-color:rgba(144,170,198,.09)}
.demo-orders-card .demo-orders-table tbody tr:nth-child(even){background:rgba(135,174,219,.028)}
.demo-orders-card .demo-orders-table tbody tr:hover{background:rgba(135,174,219,.075)}
.demo-orders-card .demo-pair{color:var(--text-1,#e3eaf2)}
.demo-orders-card .demo-orders-summary{background:rgba(135,174,219,.035);border-color:rgba(144,170,198,.15)}
.demo-orders-card .demo-order-tabs button:hover{color:#c9dbee}
.demo-orders-card .demo-orders-footer{color:#93a0ae}
/* Slightly larger table text; retain 48px rows and the existing viewport. */
.demo-orders-card .demo-orders-table td{font-size:12px}
.demo-orders-card .demo-orders-table th{font-size:10px}
.demo-orders-card .demo-orders-table .demo-sub{font-size:10px}
.demo-orders-card .demo-tpsl{font-size:11px;line-height:1.5}
.demo-orders-card .demo-order-actions button{font-size:11px}


/* Trade section: trade-demo-controls.css */
.demo-margin-controls{display:none;grid-template-columns:1fr 1fr;gap:10px;margin-bottom:12px;position:relative;z-index:12}
#spotForm[data-trading-mode="demo"]:not(.mode-spot) .demo-margin-controls{display:grid}
#spotForm[data-trading-mode="demo"] #marginTabs{display:none}
.demo-control{position:relative;min-width:0}
.demo-control-trigger{width:100%;height:36px;text-align:left;padding:0 28px 0 12px;border:1px solid var(--border-soft-2,rgba(255,255,255,.1));border-radius:8px;background:var(--bg-elevated,#101a26);color:var(--text-1,#edf1f7);font-family:inherit;font-size:12px;font-weight:600;cursor:pointer}
.demo-control-trigger::after{content:'';position:absolute;right:13px;top:14px;width:5px;height:5px;border-right:1.5px solid #8494a7;border-bottom:1.5px solid #8494a7;transform:rotate(45deg)}
.demo-control:last-child .demo-control-trigger{color:var(--blue-1,#87aedb)}
.demo-control-menu{position:absolute;top:calc(100% + 7px);left:0;min-width:210px;box-sizing:border-box;padding:10px;border:1px solid rgba(135,174,219,.22);border-radius:10px;background:#15202c;box-shadow:0 10px 30px rgba(0,0,0,.35);color:#e2ebf5;font-size:11px}
.demo-control:last-child .demo-control-menu{left:auto;right:0;width:238px}
.demo-control-menu[hidden]{display:none}
.demo-control-menu>strong{display:block;margin:3px 3px 10px;font-size:12px;font-weight:500}
.demo-control-menu button{border:1px solid transparent;border-radius:6px;padding:8px;background:transparent;color:inherit;font:inherit;cursor:pointer;text-align:left}
.demo-control-menu>button{width:100%}.demo-control-menu strong{display:block}.demo-control-menu small{display:block;margin:4px 3px;color:#8fa1b6;font-size:10px;line-height:1.4}
.demo-control-menu button:hover{background:rgba(135,174,219,.1)}.demo-control-menu button[aria-pressed="true"]{border-color:rgba(135,174,219,.35);background:rgba(135,174,219,.12);color:#a9c9e9}
.demo-leverage-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:5px;margin-bottom:10px}.demo-leverage-grid button{text-align:center;background:rgba(255,255,255,.025);border-color:rgba(255,255,255,.07)}
.demo-margin-controls button:focus-visible{outline:2px solid #87aedb;outline-offset:2px}
/* Margin choices use a compact list aligned with their trigger. */
.demo-control:first-child .demo-control-menu{min-width:100%;width:max-content;padding:4px;top:calc(100% + 5px);border-radius:8px;background:#18222d;border-color:rgba(135,174,219,.16);box-shadow:0 8px 20px rgba(0,0,0,.24)}
.demo-control:first-child .demo-control-menu>button{position:relative;display:flex;align-items:center;min-height:36px;padding:8px 28px 8px 10px;border:0;border-radius:5px;color:var(--text-2,#bdc8d4)}
.demo-control:first-child .demo-control-menu strong{font-size:11px;font-weight:500;white-space:nowrap}
.demo-control:first-child .demo-control-menu small{display:none}
.demo-control:first-child .demo-control-menu>button:hover{background:rgba(135,174,219,.07)}
.demo-control:first-child .demo-control-menu>button[aria-pressed="true"]{background:rgba(135,174,219,.09);color:var(--text-1,#edf1f7)}
.demo-control:first-child .demo-control-menu>button[aria-pressed="true"]::after{content:'';position:absolute;right:11px;width:8px;height:4px;border-left:1.5px solid #91b4d3;border-bottom:1.5px solid #91b4d3;transform:rotate(-45deg);top:14px}
.demo-control-trigger[aria-expanded="true"]{border-color:rgba(135,174,219,.4)!important}
.demo-control-trigger[aria-expanded="true"]::after{transform:rotate(225deg)}


/* Trade section: trade-order-panel.css */
/* Trading ticket: compact surfaces and the existing site palette. */
#spotForm.order-panel .trade-form-position,
#spotForm.order-panel .order-panel-account{display:none!important}
#spotForm.order-panel .order-panel-actions{margin-bottom:0}
#spotForm.order-panel{padding:16px;min-width:0;align-self:start}
#spotForm.order-panel #sideTabs,#spotForm.order-panel #submitBtn,#spotForm.order-panel .exch-spot__settings,#spotForm.order-panel .order-panel-hidden{display:none!important}
#spotForm.order-panel:not(.mode-spot) .demo-margin-controls{display:grid}
#spotForm.order-panel #marginTabs{display:none}
#spotForm.order-panel .demo-control-trigger{height:40px;font-size:13px;background:rgb(18 32 45 / 0%);border-color:rgba(133,172,208,.18)}
#spotForm.order-panel .demo-control-trigger::after{top:16px}
#spotForm.order-panel .exch-spot__market-tabs{margin-bottom:12px}

#spotForm.order-panel .exch-spot__order-tabs{gap:0;border-bottom:1px solid var(--border-soft);margin-bottom:14px}
#spotForm.order-panel .exch-spot__order-tabs button{position:relative;flex:1 1 0;min-width:0;padding:10px 4px 12px;font-size:12px;text-align:center;white-space:nowrap}
#spotForm.order-panel .exch-spot__order-tabs button.active::after{content:'';position:absolute;bottom:-1px;left:0;right:0;height:2px;background:var(--blue-1,#87aedb);border-radius:2px}
#spotForm.order-panel .exch-spot__input{height:40px;rgb(255 255 255 / 36%);border-color:rgba(133,172,208,.18);border-radius:8px}
#spotForm.order-panel .exch-spot__input:focus-within{border-color:#789cbc}
#spotForm.order-panel .exch-spot__input input{font-size:13px}
#spotForm.order-panel .exch-spot__field label{text-transform:none;font-size:11px;letter-spacing:0}
#spotForm.order-panel #amountMinus,#spotForm.order-panel #amountPlus{display:none}
.order-panel-unit{padding:0 8px 0 14px;border-left:1px solid rgba(133,172,208,.22);font-size:12px;font-weight:600;color:var(--text-1)}
#spotForm.order-panel .exch-spot__slider{margin:2px 0 18px}

#spotForm.order-panel .exch-spot__leverage-field label{text-transform:none;letter-spacing:0;font-size:11px;margin-bottom:4px}
#spotForm.order-panel .exch-spot__meta{padding:10px 12px;border:1px solid rgba(133,172,208,.15);border-radius:9px;background:rgba(13,26,38,.3);gap:0;margin-bottom:14px}
#spotForm.order-panel .exch-spot__meta>div{gap:8px;align-items:center;font-size:11px;min-height:25px;border-bottom:1px solid rgba(133,172,208,.07)}
#spotForm.order-panel .exch-spot__meta>div:last-child{border-bottom:0}
#spotForm.order-panel .exch-spot__meta>div[hidden]{display:none}
#spotForm.order-panel .exch-spot__meta strong{font-size:11px;text-align:right;font-variant-numeric:tabular-nums;white-space:nowrap}
#spotForm.order-panel .exch-spot__tpsl-head{justify-content:flex-start;gap:8px}
#spotForm.order-panel .exch-spot__tpsl-head>label{display:flex;align-items:center;gap:6px;margin-left:auto;font-size:10px;color:var(--text-3);cursor:not-allowed}
#spotForm.order-panel .exch-spot__tpsl-head>label input{appearance:none;width:32px;height:19px;border:1px solid var(--border-soft-2);border-radius:12px;background:var(--panel-2);position:relative;margin:0}
#spotForm.order-panel .exch-spot__tpsl-head>label input::before{content:'';position:absolute;left:2px;top:2px;width:13px;height:13px;border-radius:50%;background:var(--text-3);opacity:.6}
#spotForm.order-panel .exch-spot__tpsl{margin-bottom:8px}
#spotForm.order-panel .exch-spot__toggle.on span{box-shadow:none}
.order-panel-extras{display:grid;grid-template-columns:1fr 1fr;gap:10px 8px;margin:0 0 16px}
.order-panel-extras label{display:flex;gap:7px;align-items:center;font-size:10px;color:var(--text-3);cursor:not-allowed;line-height:1.4}
.order-panel-extras input{margin:0;accent-color:#88add0;width:14px;height:14px}
.order-panel-actions{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:12px 0 16px}
.order-panel-actions button{height:44px;border:1px solid rgba(255,255,255,.08);border-radius:29px;background:#149b6c;color:#fff;font:600 14px var(--font-display,Arial,sans-serif);cursor:pointer;transition:filter .15s}
.order-panel-actions button[data-submit-side=sell]{background:#cc4859}
.order-panel-actions button:hover{filter:brightness(1.1)}
.order-panel-actions button:disabled{opacity:.5;cursor:wait}
.order-panel-actions button:focus-visible{outline:2px solid #a4c4e2;outline-offset:3px}
.order-panel-account{padding:12px;border:1px solid rgba(133,172,208,.15);border-radius:10px;background:rgba(13,26,38,.3)}
.order-panel-account header{display:flex;align-items:center;justify-content:space-between;gap:8px;padding-bottom:10px;border-bottom:1px solid var(--border-soft)}
.order-panel-account h3{margin:0;font-size:12px;color:var(--text-1);font-weight:600}
.order-panel-account header>span{font-size:9px;letter-spacing:.08em;color:var(--blue-1,#87aedb)}
.order-panel-account dl{margin:7px 0 0}
.order-panel-account dl>div{display:flex;justify-content:space-between;align-items:center;gap:8px;padding:6px 0;font-size:10px}
.order-panel-account dt{color:var(--text-3)}
.order-panel-account dd{margin:0;color:var(--text-1);text-align:right;font-variant-numeric:tabular-nums;white-space:nowrap}
.order-panel-account dd.up{color:#29b78b}.order-panel-account dd.down{color:#de6978}


/* Trade section: trade-position-chart.css */

/* Demo account insights, replacing the old statistics card. */
.demo-workspace{grid-template-columns:minmax(0,1fr) calc(var(--orderbook-col,300px) + var(--trade-col,340px) + var(--main-grid-gap,16px));gap:var(--main-grid-gap,16px);align-items:stretch}
.demo-workspace>.demo-orders-card{align-self:stretch}
@media(min-width:1201px){
  .demo-workspace>.demo-orders-card{contain:size;min-height:0}
  .demo-workspace>.demo-orders-card .demo-table-scroll{flex:1 1 0;min-height:0;max-height:none}
  .demo-workspace>.demo-orders-card>.demo-orders-toolbar,.demo-workspace>.demo-orders-card>.demo-history-switch,.demo-workspace>.demo-orders-card>.demo-orders-footer{flex-shrink:0}
}
.demo-insights{display:flex;flex-direction:column;gap:10px;min-width:0;align-self:stretch}
.demo-insight-card{padding:13px;border:1px solid rgba(135,174,219,.17);border-radius:12px;background:var(--bg1,#18212c);min-width:0}
.demo-insight-card header{display:flex;justify-content:space-between;align-items:center;gap:8px;margin-bottom:12px}
.demo-insight-card h3{font:600 12px var(--font-display,Arial,sans-serif);color:var(--text-1,#e7edf5);margin:0}
.demo-insight-card h3>span{color:#8cb5de;margin-right:5px}
.demo-insight-card header>span{font-size:10px;color:#8cb5de}
.demo-insight-stats{display:grid;grid-template-columns:1fr 1.15fr;gap:12px}
.demo-insight-stats>dl+dl{padding-left:12px;border-left:1px solid rgba(135,174,219,.1)}
.demo-insight-card dl{margin:0;min-width:0}
.demo-insight-card dl>div{display:flex;justify-content:space-between;align-items:center;gap:6px;min-height:23px;font-size:10px}
.demo-insight-card dt{color:var(--text-2,#aab8c9)}
.demo-insight-card dd{margin:0;text-align:right;font-weight:600;white-space:nowrap;font-variant-numeric:tabular-nums}
.demo-insight-card .positive{color:#25d49b}.demo-insight-card .negative{color:#ff657b}
.demo-insight-card small{font-size:10px;color:var(--text-3,#92a3b8)}
.demo-rank-row{display:flex;gap:18px;align-items:center;justify-content:space-between}
.demo-rank-row strong{display:block;margin-top:6px;font-size:14px;font-variant-numeric:tabular-nums}
.demo-rank-row .demo-rank{color:#c9a5e7;font-size:18px}
.demo-rank-row .demo-btn{font-size:10px;padding:9px;color:#a9c8e8;white-space:nowrap}
.demo-insight-bottom{display:grid;grid-template-columns:1fr 1fr;gap:10px;flex:1}
.demo-cycle-clock{display:block;font-size:20px;letter-spacing:.025em;margin:5px 0 8px;font-variant-numeric:tabular-nums}
.demo-insight-card progress{width:100%;height:7px;border:0;border-radius:6px;overflow:hidden;display:block;background:#243444;accent-color:#25ba94}
.demo-insight-card progress::-webkit-progress-bar{background:#243444;border-radius:6px}
.demo-insight-card progress::-webkit-progress-value{background:#25ba94;border-radius:6px}
.demo-insight-card progress::-moz-progress-bar{background:#25ba94;border-radius:6px}
.demo-insight-card p{margin:9px 0 0;font-size:9px;color:var(--text-3,#92a3b8);line-height:1.5}
@media(max-width:1200px){.demo-workspace{grid-template-columns:minmax(0,1fr)}.demo-insights{display:grid;grid-template-columns:1fr 1fr}.demo-insight-bottom{grid-column:1/-1}}
@media(max-width:650px){.demo-insights{display:flex}.demo-insight-stats{grid-template-columns:1fr}.demo-insight-stats>dl+dl{padding:8px 0 0;border-left:0;border-top:1px solid rgba(135,174,219,.1)}.demo-rank-row{gap:8px;flex-wrap:wrap}}

/* Illustrated account cards: decorative art stays separate from live values. */
.demo-insights{container-type:inline-size;gap:12px}
.demo-insights .demo-insight-card{position:relative;isolation:isolate;overflow:hidden;padding:18px;border-radius:15px;border-color:var(--border-soft-2,rgba(255,255,255,.1));background:linear-gradient(178deg, rgba(45, 99, 143, .16), rgba(16, 29, 42, .35));box-sizing:border-box}
.demo-insight-card>.insight-art{position:absolute;right:-12px;bottom:-14px;width:28%;height:90%;object-fit:contain;object-position:right bottom;pointer-events:none;z-index:-1;opacity:.68;filter:saturate(.5) brightness(.88)}
.demo-insight-card header{margin-bottom:18px;position:relative}
.demo-insight-card h3{display:flex;align-items:center;gap:9px;font-family:var(--font-body,Arial,sans-serif);font-size:14px;line-height:1.3}
.demo-insight-card h3 svg{width:22px;height:22px;flex:none;color:#8ea9c1}
.demo-insight-card .insight-period{display:flex;gap:10px;align-items:center;font-size:10px;white-space:nowrap}
.insight-period b{font-weight:500;border:1px solid #394754;border-radius:8px;padding:7px 9px;color:#b5c6d5;text-transform:capitalize}
.insight-statistics>.insight-art{width:20%;right:0}
.insight-statistics .demo-insight-stats{margin-right:20%;grid-template-columns:1fr 1.18fr;gap:14px}
.insight-statistics .demo-insight-stats>dl+dl{padding-left:14px;border-color:#303e4b}
.demo-insight-card dl>div{min-height:29px;gap:8px}
.demo-insight-card dt{display:flex;align-items:center;gap:7px;color:#aebac7;font-size:10px}
.demo-insight-card dd{font-size:11px;color:#e0e7ef}
.insight-icon{display:inline-flex;align-items:center;justify-content:center;flex:none;width:20px;height:23px;color:#87a1b8;font-style:normal}
.insight-icon svg{width:17px;height:17px}
.insight-statistics dl:first-child .insight-icon{background:#273541;border-radius:4px}
.insight-statistics dl:first-child .insight-icon-up{color:#1bd5ae;background:#203735}
.insight-statistics dl:first-child .insight-icon-down{color:#ff657b;background:#352c35}
.insight-tournament{min-height:158px}
.insight-tournament .insight-art{right:5px;width:31%;height:105%;bottom:-22px}
.insight-tournament header{justify-content:flex-start;gap:14px}
.insight-demo-badge{border:1px solid #405465;padding:5px 12px;border-radius:30px;font-size:10px;color:#99b3c9}
.insight-tournament .demo-rank-row{width:70%;gap:24px;flex-wrap:wrap;align-items:center;justify-content:flex-start}
.insight-tournament .demo-rank-row>div{display:flex;flex-direction:column;justify-content:space-between;min-height:54px}
.insight-tournament .demo-rank-row strong{line-height:1;margin-top:0}
.demo-rank-row>div:first-child{padding-right:24px;border-right:1px solid #33424e}
.demo-rank-row .demo-rank{font-size:25px;color:#b0c2d3}
.demo-rank-row strong{font-size:17px}
.demo-rank-row .btn-connect{margin-left:auto;padding:10px 18px;font-size:13px;font-weight:600;cursor:pointer}

.demo-insights .insight-tournament .demo-rank-row{display:grid;grid-template-columns:auto auto;justify-content:start;column-gap:24px;row-gap:16px}
.demo-insights .insight-tournament .demo-rank-row .btn-connect{margin:0}
.demo-insights .insight-tournament .demo-rank-row>.demo-rank-actions{grid-column:1/-1;display:flex;flex-direction:row;align-items:center;flex-wrap:wrap;gap:12px 22px;min-height:0;padding:0;border:0}

.insight-tour-sub{margin:-12px 0 16px 31px;font-size:13px;color:#9fb0c1}
.insight-tour-hint{display:inline-flex;align-items:center;gap:9px;font-size:12px;color:#8fa3b6}
.insight-tour-hint svg{width:18px;height:18px;flex:none}
.insight-tour-hint[hidden],.insight-tour-sub[hidden],.insight-tour-pool[hidden]{display:none}

.insight-tour-pool{display:inline-flex;align-items:center;gap:8px;font-size:12px;color:#9fb0c1;white-space:nowrap}
.insight-tour-pool svg{width:17px;height:17px;flex:none;color:#e6ba69}
.demo-insights .insight-tour-pool b{font-size:14px;font-weight:500;color:#e6ba69;font-variant-numeric:tabular-nums}
.insight-tournament:not(.is-inactive) .insight-demo-badge{color:#25d49b;border-color:rgba(37,212,155,.45);background:rgba(37,212,155,.07)}
.insight-tournament.is-inactive .insight-demo-badge{color:#8fa3b6;border-color:#3a4855}
.insight-tournament.is-inactive .demo-rank,.insight-tournament.is-inactive [data-insight="pnl"]{color:#7f93a6}
.demo-rank-row .btn-connect:disabled{opacity:.75;filter:saturate(.35);cursor:default;box-shadow:none;transform:none}
.demo-insight-bottom{gap:12px;flex:none}
.insight-cycle,.insight-risk{min-height:200px}
.insight-cycle .insight-art{width:40%;height:86%;right:-9px;bottom:-7px}
.insight-cycle .demo-cycle-clock{font-size:23px;letter-spacing:0;color:#c3d0dd;white-space:nowrap;margin:10px 0 15px}
.insight-cycle progress{width:67%;height:7px;accent-color:#83a5be}
.insight-cycle progress::-webkit-progress-value{background:#83a5be}
.insight-cycle progress::-moz-progress-bar{background:#83a5be}
.insight-cycle p{max-width:70%;font-size:9px;color:#95a5b5}
.insight-risk .insight-art{width:39%;height:80%;right:-13px;bottom:8px}
.insight-risk dl{margin-right:25%}
.insight-risk p{position:relative;background:rgba(30,41,52,.85);border:1px solid #394754;border-radius:7px;padding:8px;color:#a9b9c8;font-size:9px;line-height:1.5}
@container(max-width:570px){.insight-period{flex-wrap:wrap;justify-content:flex-end}.demo-insight-card h3{font-size:12px}.insight-statistics .demo-insight-stats{margin-right:0}.insight-statistics .insight-art{opacity:.12;width:35%}.insight-tournament .demo-rank-row{width:77%}.demo-insight-card dt{font-size:9px}.demo-insight-card dd{font-size:10px}.insight-icon{width:15px}.insight-cycle .demo-cycle-clock{font-size:18px}.insight-risk dl{margin-right:10%}.insight-risk .insight-art{opacity:.35}}
@media(max-width:1200px){.demo-insights{display:flex}.demo-insight-bottom{grid-column:auto}}
@media(max-width:500px){.demo-insight-bottom{grid-template-columns:1fr}.demo-insight-card .insight-period{font-size:9px}.insight-period b{padding:5px}.insight-tournament .demo-rank-row{width:75%}.insight-cycle .demo-cycle-clock{font-size:25px}}

/* English insight cards: larger text with regular weight. */
.demo-insights .demo-insight-card{font-weight:400}
.demo-insights .demo-insight-card h3{font-size:16px;font-weight:400}
.demo-insights .demo-insight-card dt,.demo-insights .demo-insight-card dd{font-size:12px;font-weight:400}
.demo-insights .demo-insight-card small,.demo-insights .demo-insight-card .insight-period,.demo-insights .demo-insight-card p{font-size:11px;font-weight:400}
.demo-insights .demo-insight-card strong,.demo-insights .demo-insight-card b,.demo-insights .demo-insight-card button{font-weight:400}
.demo-insights .demo-rank-row .btn-connect{font-size:13px;font-weight:600}
.demo-insights .demo-rank-row strong{font-size:19px}
.demo-insights .demo-rank-row .demo-rank{font-size:28px}
.demo-insights .demo-cycle-clock{font-size:25px;font-weight:400}
.demo-insights .demo-insight-card dl>div{min-height:32px}
.demo-insights .insight-period{flex-wrap:wrap;justify-content:flex-end}
.demo-insights .demo-insight-card header{flex-wrap:wrap}
.demo-insights .demo-rank-row{row-gap:12px}
@container(max-width:570px){.demo-insights .demo-insight-card h3{font-size:15px}.demo-insights .demo-cycle-clock{font-size:22px}.demo-insights .insight-statistics .demo-insight-stats{grid-template-columns:1fr}.demo-insights .insight-statistics .demo-insight-stats>dl+dl{padding:8px 0 0;border-left:0;border-top:1px solid #28435d}}

/* Illustrated background behind the original working mode buttons. */
.trade-account__switch-backdrop{display:flex;align-items:center;justify-content:center;align-self:stretch;flex:1 1 440px;min-width:360px;max-width:560px;box-sizing:border-box;margin:-18px -22px -18px auto;padding:16px 30px;position:relative;isolation:isolate;background:transparent}
.trade-account__switch-backdrop::before{content:'';position:absolute;inset:0;z-index:0;pointer-events:none;background:url('/img/trade-mode-network.webp?v=20260911-candles') center/cover no-repeat;filter:brightness(.95) saturate(.75);opacity:.55;mix-blend-mode:screen;mask-image:linear-gradient(90deg,transparent,#000 18%,#000 82%,transparent);-webkit-mask-image:linear-gradient(90deg,transparent,#000 18%,#000 82%,transparent)}
.trade-account__switch-backdrop .trade-account__switch{flex:0 1 320px;width:320px;min-width:284px;margin:0;padding:0;z-index:1;isolation:isolate;border-radius:12px;background:rgba(13,35,46,.66);backdrop-filter:blur(5px);border-color:rgba(87,160,181,.45);box-shadow:-3px 0 10px rgba(51,155,145,.05),3px 0 10px rgba(62,132,219,.06)}
.trade-account__switch-backdrop .trade-account__switch::before{top:0;bottom:0;left:0;width:50%;border-radius:11px 0 0 11px;background:linear-gradient(135deg,rgba(41,132,124,.5),rgba(22,77,81,.32));box-shadow:inset 0 0 0 1px rgba(107,193,181,.45);pointer-events:none}
.trade-account[data-trading-mode="demo"] .trade-account__switch-backdrop .trade-account__switch::before{border-radius:0 11px 11px 0;background:linear-gradient(125deg,rgba(41,85,157,.8),rgba(45,119,180,.68));box-shadow:inset 0 0 0 1px rgba(117,179,234,.55),0 0 10px rgba(50,129,210,.12)}
.trade-account__switch-backdrop .trade-account__switch button{min-height:58px;padding:10px 12px;border-radius:0;transition:color .18s ease,background .18s ease}
.trade-account__switch-backdrop .trade-account__switch button:first-child{border-radius:11px 0 0 11px}
.trade-account__switch-backdrop .trade-account__switch button:last-child{border-radius:0 11px 11px 0;box-shadow:inset 1px 0 rgba(136,185,209,.2)}
.trade-account__switch-backdrop .trade-account__switch button[aria-pressed="true"]{color:#edf6ff}
.trade-account__switch-backdrop .trade-account__switch strong{font-size:12px;font-weight:500}
.trade-account__switch-backdrop .trade-account__switch small{font-size:10px;opacity:.8}
.trade-account__switch-backdrop .trade-account__switch [data-mode="demo"] svg{color:#9acaf3}
.trade-account__switch-backdrop .trade-account__switch [data-mode="real"] img{filter:sepia(.35) saturate(1.4) hue-rotate(315deg)}
@media(max-width:1200px){.trade-account__switch-backdrop{margin:0 0 0 auto;border-radius:10px;min-height:90px}}
@media(max-width:760px){.trade-account__switch-backdrop{flex:1 1 100%;max-width:none;min-width:0;margin:0;padding:16px 8px}.trade-account__switch-backdrop .trade-account__switch{min-width:0;max-width:100%}}

/* Responsive trading layout. Keep the existing laptop zoom: 0.75. */
.exch-grid-top>*{min-width:0}
.demo-orders-card,.demo-insights,.trade-account__balances{min-width:0}
.demo-orders-summary{max-width:100%;white-space:normal}
.demo-orders-summary dl{flex-wrap:wrap;row-gap:8px}
.demo-orders-summary dl>div{flex-wrap:wrap}
.exch-chart__tools{flex-wrap:wrap}
.exch-pair-dd{max-width:calc(100vw - 48px)}
@media(min-width:1201px) and (max-width:1700px){
  .exch{--main-grid-gap:12px}
  .exch-nav{gap:16px;flex-wrap:wrap}

  .exch-nav__menu{min-width:0;flex:1 1 500px;flex-wrap:nowrap;gap:16px;overflow-x:auto;overflow-y:hidden;padding-bottom:4px;scrollbar-width:none}
  .exch-nav__menu::-webkit-scrollbar{display:none}
  .trade-account{flex-wrap:wrap;gap:16px;min-width:0}
  .trade-account__identity{flex:0 1 220px}
  .trade-account__balances{gap:16px;padding-left:16px;flex-wrap:wrap}
  .trade-account__switch-backdrop{flex:1 1 360px;min-width:344px;max-width:480px;margin:0 0 0 auto;padding:12px 24px;border-radius:10px}
  .exch-chart{padding:16px}
  .exch-chart__head{gap:16px}
  .demo-orders-toolbar{padding:8px 14px 0;gap:8px}
  .demo-order-tabs{width:auto;gap:18px;flex-wrap:wrap}
  .demo-orders-summary{width:auto;margin-left:auto;font-size:11px;padding:8px}
  .demo-orders-summary dl>div{padding:0 8px}
  .demo-orders-table{min-width:900px}
  .demo-table-scroll{padding:0 12px}
  .demo-orders-table th,.demo-orders-table td{padding-left:8px;padding-right:8px}
  .demo-insights .demo-insight-card{padding:14px}
  .demo-insights .demo-insight-card h3{font-size:15px}
  .demo-insights .demo-cycle-clock{font-size:23px}
}
@media(min-width:981px) and (max-width:1200px){
  .exch-grid-top{grid-template-columns:minmax(0,1fr) 310px}
  .exch-grid-top>.exch-chart{grid-column:1}
  .exch-grid-top>#spotForm{grid-column:2}
  .exch-chart{padding:14px}
  .exch-chart__head{gap:12px}
}
@media(max-width:1200px){
  .trade-account{width:100%;min-width:0}
  .trade-account__balances{flex-wrap:wrap}
  .trade-account__switch-backdrop{min-width:0;flex-basis:344px;padding:12px 20px}
  .demo-workspace>.demo-orders-card{contain:none;min-height:0}
  .demo-workspace .demo-table-scroll{max-height:65vh;max-height:65dvh;min-height:0;overflow:auto}
  .demo-orders-toolbar{flex-wrap:wrap}
  .demo-order-tabs{max-width:100%;overflow-x:auto;flex-wrap:nowrap}
  .demo-orders-summary{width:100%;box-sizing:border-box}
  .demo-insights{width:100%}
  .exch:has(.trade-account[data-trading-mode="demo"]) .exch-side{height:600px}
}
@media(max-width:980px){
  .exch-grid-top{grid-template-columns:minmax(0,1fr)}
  .exch-grid-top>#spotForm{grid-column:1;height:auto}
  .exch-chart{padding:12px}
  .exch-chart__head{gap:12px}
  .exch-side{margin-bottom:16px}
}
@media(max-width:600px){
  .trade-account{padding:14px;gap:12px}
  .trade-account__balances{gap:12px}
  .trade-account__balance{flex:1 1 130px}
  .trade-account__switch-backdrop{flex-basis:100%;padding:12px 4px}
  .trade-account__switch-backdrop .trade-account__switch{width:100%;flex-basis:320px}
  .trade-account__switch-backdrop .trade-account__switch button{gap:6px;padding:9px 7px}
  .trade-account__switch-backdrop .trade-account__switch small{font-size:9px}
  .demo-orders-summary dl>div{padding:0 6px;border-left:0}
  .demo-insight-bottom{grid-template-columns:minmax(0,1fr)}
  .demo-insights .demo-insight-card header{gap:10px}
  .demo-insights .demo-rank-row{width:100%;padding-right:20%;box-sizing:border-box}
  .demo-insights .demo-rank-row .btn-connect{margin-left:0;white-space:normal}
  .demo-insights .demo-insight-card p{overflow-wrap:anywhere}
  .demo-order-tabs{gap:16px}
  .exch-chart__pair-name{font-size:14px}
}

@media(min-width:761px) and (max-width:1200px){
  .trade-market-strip>.exch-ticker__widgets>.exch-ticker__widget{flex:1 1 0}
  .trade-market-strip>.exch-ticker__widgets>.exch-ticker__widget:first-child{border-left:0}
  .trade-market-strip .exch-vol-bars{max-width:240px}
  .trade-market-strip .exch-dom-chart{max-width:280px}
  .trade-market-strip .exch-ticker__widget-head em{margin-left:0}
}

@media(min-width:1201px){
  .trade-market-strip{flex-wrap:nowrap}
  .trade-market-strip>.trade-account{flex:1 1 auto;min-width:0;flex-wrap:nowrap}
  .trade-market-strip>.exch-ticker__widgets{flex:0 0 auto;margin-left:0;border-top:0}
  .trade-market-strip>.exch-ticker__widgets>.exch-ticker__widget{flex:0 0 auto;padding:10px 14px}
  .trade-account__balances{flex-wrap:nowrap}
}

@media(min-width:1201px) and (max-width:1400px){
  .trade-market-strip>.trade-account{gap:12px;padding-left:16px;padding-right:16px}
  .trade-account__identity{flex:0 0 auto;gap:10px}
  .trade-account__logo{width:38px;height:38px}
  .trade-account__identity h2{font-size:16px}
  .trade-account__switch-backdrop{flex:1 1 300px;min-width:300px;padding:12px 6px}
  .trade-account__switch-backdrop .trade-account__switch{flex-basis:288px;min-width:288px}
  .trade-account__switch-backdrop .trade-account__switch button{gap:6px;padding:10px 8px}
  .trade-market-strip>.exch-ticker__widgets>.exch-ticker__widget{padding:10px;min-width:110px}
}

@media(min-width:1201px) and (max-width:1700px){
  .trade-market-strip>.trade-account{min-height:0;padding-top:10px;padding-bottom:10px}
  .trade-account__switch-backdrop{padding-top:6px;padding-bottom:6px;min-height:0}
  .trade-account__switch-backdrop .trade-account__switch button{min-height:46px;padding-top:6px;padding-bottom:6px}
  .trade-market-strip>.exch-ticker__widgets>.exch-ticker__widget{padding-top:6px;padding-bottom:6px}
}

@media(max-width:480px){
  .demo-order-tabs{gap:12px;justify-content:space-between}
  .demo-order-tabs button{font-size:11px}
}
@media(max-width:360px){
  .demo-order-tabs{gap:6px}
  .demo-order-tabs button{font-size:10px;letter-spacing:-.1px}
}


html.dt-lock,html.dt-lock body{overflow:hidden}
html.dt-lock-gutter{scrollbar-gutter:stable}
.demo-tournament-modal{width:min(1120px,calc(100vw - 32px));max-width:none;max-height:94vh;max-height:94dvh;padding:0;margin:auto;border:1px solid var(--border-soft-2,rgba(255,255,255,.1));border-radius:16px;background:linear-gradient(rgba(7,20,31,.45),rgba(7,20,31,.94)),url('/img/trade-tournament-mountains.webp') center top/cover no-repeat #0a1824;color:#e8f0f8;font:13px/1.4 var(--font-body,Arial,sans-serif);box-sizing:border-box;box-shadow:0 24px 90px #0009;overflow:auto;scrollbar-width:thin;scrollbar-color:#3a566d transparent}
.demo-tournament-modal::backdrop{background:rgba(2,9,16,.78);backdrop-filter:blur(4px)}

.demo-tournament-modal.dt-opening{animation:dtIn .38s cubic-bezier(.16,1,.3,1) both}
.demo-tournament-modal.dt-opening::backdrop{animation:dtFade .3s ease both}
.demo-tournament-modal.dt-opening .dt-place{animation:dtRise .5s cubic-bezier(.16,1,.3,1) both}
.demo-tournament-modal.dt-opening .dt-place-2{animation-delay:.08s}
.demo-tournament-modal.dt-opening .dt-place-1{animation-delay:.14s}
.demo-tournament-modal.dt-opening .dt-place-3{animation-delay:.2s}
.demo-tournament-modal.dt-opening .dt-table-wrap{animation:dtRise .5s cubic-bezier(.16,1,.3,1) .26s both}
.demo-tournament-modal.dt-closing{animation:dtOut .22s ease-in both;pointer-events:none}

.demo-tournament-modal.dt-opening,.demo-tournament-modal.dt-closing,.demo-tournament-modal.dt-opening .dt-content,.demo-tournament-modal.dt-closing .dt-content{overflow:hidden}
.demo-tournament-modal.dt-closing::backdrop{animation:dtFade .22s ease-in reverse both}
@keyframes dtIn{from{opacity:0;transform:translateY(20px)}to{opacity:1;transform:none}}
@keyframes dtOut{from{opacity:1;transform:none}to{opacity:0;transform:translateY(12px)}}
@keyframes dtFade{from{opacity:0}to{opacity:1}}
@keyframes dtRise{from{opacity:0;transform:translateY(16px)}to{opacity:1;transform:none}}
@media(prefers-reduced-motion:reduce){.demo-tournament-modal.dt-opening,.demo-tournament-modal.dt-opening::backdrop,.demo-tournament-modal.dt-opening .dt-place,.demo-tournament-modal.dt-opening .dt-table-wrap{animation:none}}
.dt-shell{padding:22px;display:flex;flex-direction:column;box-sizing:border-box;max-height:calc(94dvh - 2px)}
.dt-content{overflow:auto;min-height:0;scrollbar-width:thin;scrollbar-color:#3a566d transparent}
.dt-header,.dt-footer{flex-shrink:0}
.dt-header{display:flex;gap:20px;align-items:center;margin-bottom:24px}
.dt-title{display:flex;gap:18px;align-items:center;flex:1;min-width:0}
.dt-title svg{width:42px;height:42px;flex:none;color:#62baf0}
.dt-title h2{margin:0;font-size:25px;font-weight:500;line-height:1.2}
.dt-title p{margin:5px 0 0;color:#99b5cf;font-size:14px}
.dt-cycle{display:flex;align-items:center;gap:22px;padding:12px 16px;border:1px solid var(--border-soft-2);border-radius:12px;background:var(--bg1,#18212c)}
.dt-cycle>div+div{border-left:1px solid var(--border-soft-2);padding-left:22px}
.dt-cycle small{display:block;color:#a3bed6;font-size:12px;margin-top:3px}
.dt-cycle strong{font-weight:500;font-size:17px}

.dt-cycle>.dt-timer{border-left:0;padding-left:0}
.dt-ended-info[hidden],.dt-timer[hidden]{display:none}
.dt-ended-info small{color:#e6ba69}
.dt-ended [data-dt-sub]{color:#e6ba69}

.dt-timer{min-width:176px}
.dt-timer small{display:flex;align-items:center;gap:6px;margin:0 0 4px}
.dt-timer small svg{width:13px;height:13px;flex:none;color:#62baf0}
.dt-segs{display:flex;align-items:baseline;white-space:nowrap}
.dt-segs[hidden],.dt-time-na[hidden],.dt-timer-bar[hidden]{display:none}
.dt-segs b{font:500 20px/1.2 var(--font-display,Arial,sans-serif);font-variant-numeric:tabular-nums;color:#eaf4ff}
.dt-segs i{font-style:normal;font-size:12px;color:#7f9db6;margin:0 9px 0 2px}
.dt-segs i:last-child{margin-right:0}
.dt-segs .dt-seg-s{color:#8fd3ff}
.dt-timer-bar{display:block;height:3px;margin-top:8px;border-radius:3px;background:rgba(135,174,219,.15);overflow:hidden}
.dt-timer-bar>span{display:block;height:100%;width:0;border-radius:inherit;background:linear-gradient(90deg,#62baf0,#8fd3ff);transition:width 1s linear}
@media(max-width:760px){.dt-timer{min-width:0}.dt-segs b{font-size:17px}.dt-segs i{margin-right:6px}}
.dt-x{align-self:flex-start;border:0;background:none;color:#9ebbd1;font:28px/1 Arial;cursor:pointer;padding:4px}
.dt-podium{display:grid;grid-template-columns:1fr 1.35fr 1fr;gap:14px;align-items:end;max-width:760px;margin:0 auto 16px}
.dt-place{--prize:#8fc5eb;position:relative;text-align:center;border:1px solid var(--border-soft-2);border-radius:15px;padding:0 10px 10px;background:linear-gradient(135deg,rgba(255,255,255,.015),rgba(135,155,175,.025)),var(--bg1,#18212c);overflow:hidden}
.dt-place-1{--prize:#e6ba69;border-color:var(--border-soft-2)}
.dt-place-3{--prize:#d29a78;border-color:var(--border-soft-2)}
.dt-place img{display:block;width:100%;height:135px;object-fit:contain;margin:0 auto -5px}
.dt-place-1 img{height:165px}
.dt-place h3{margin:0 0 6px;font-size:16px;font-weight:500;overflow-wrap:anywhere}
.dt-place>strong{display:block;font-size:20px;font-weight:500}
.dt-place-1>strong{font-size:23px}
.dt-place p{font-size:11px;color:#a7bdd1;margin:5px 0 10px}
.dt-prize{padding:7px 5px;border:1px solid var(--border-soft-2);border-radius:8px;background:var(--panel);color:var(--prize);font-size:14px}
.dt-prize span{font-weight:500}
.dt-table-wrap{overflow:auto;border:1px solid var(--border-soft-2);border-radius:12px;background:var(--bg1,#18212c);max-height:none;scrollbar-width:thin;scrollbar-color:#3a566d transparent}
.dt-table{width:100%;border-collapse:separate;border-spacing:0;min-width:660px;text-align:left;font-variant-numeric:tabular-nums}
.dt-table th{position:sticky;top:0;z-index:1;background:var(--bg1,#18212c);color:#9dbad2;font-size:12px;font-weight:400;padding:11px 14px;border-bottom:1px solid var(--border-soft-2)}
.dt-table td{padding:7px 14px;border-bottom:1px solid var(--border-soft);font-size:12px}
.dt-table tr:last-child td{border-bottom:0}
.dt-table tr:nth-child(even){background:#182a3744}
.dt-table tr:hover{background:#25466044}
.dt-table .dt-me td{background:#174365aa;border-top:1px solid #458fc2;border-bottom:1px solid #458fc2}
.dt-user{display:inline-flex;align-items:center;gap:0;vertical-align:middle}
.dt-avatar{display:inline-flex;flex:none;width:30px;height:30px;align-items:center;justify-content:center;border-radius:50%;overflow:hidden;margin-right:12px;color:#cfe3fb;background:linear-gradient(145deg,#2c4a66,#1c3044);box-shadow:inset 0 0 0 1.5px rgba(255,255,255,.18),0 2px 5px rgba(0,0,0,.25)}
.dt-avatar img{width:100%;height:100%;object-fit:cover;display:block}
.dt-avatar svg{width:100%;height:100%;display:block}
.dt-medal-1{box-shadow:0 0 0 2px #e6ba69,0 2px 6px rgba(230,186,105,.25)}
.dt-medal-2{box-shadow:0 0 0 2px #b7d7ed,0 2px 6px rgba(183,215,237,.2)}
.dt-medal-3{box-shadow:0 0 0 2px #d29a78,0 2px 6px rgba(210,154,120,.2)}
.dt-you{color:#6bd1ef;margin-left:6px}

.dt-place{--tint:135,174,219;background:linear-gradient(180deg,rgba(var(--tint),.10),rgba(15,24,34,.55) 55%,rgba(15,24,34,.7));border-color:rgba(var(--tint),.35)}
.dt-place-1{--tint:230,186,105;border-color:rgba(230,186,105,.45)}
.dt-place-3{--tint:210,154,120;border-color:rgba(210,154,120,.4)}
.dt-prize{background:rgba(var(--tint),.06);border-color:rgba(var(--tint),.4)}
.demo-tournament-modal .positive{color:#25d4aa}.demo-tournament-modal .negative{color:#fa6a80}
.dt-table th button{background:none;border:0;color:inherit;font:inherit;cursor:pointer;padding:0}
.dt-empty{text-align:center;height:90px;color:#a4b8c8}
.dt-note{font-size:11px;color:#8fa8be;margin:10px 0}
.dt-footer{display:flex;justify-content:space-between;align-items:center;gap:16px;padding-top:12px}
.dt-footer p{margin:0;color:#b2cadd}.dt-footer small{display:block;color:#849fb7;font-size:11px;margin-top:4px}
.dt-footer>div{display:flex;gap:10px}
.demo-tournament-modal button:focus-visible{outline:2px solid #8dc9f4;outline-offset:3px}

@media(min-width:1201px) and (max-width:1700px){
  .demo-tournament-modal{zoom:.75;width:1120px;max-width:calc(100% - 32px);max-height:94%}
  .demo-tournament-modal[open]{display:flex;flex-direction:column}
  .dt-shell{flex:1 1 auto;min-height:0;max-height:none}
}
@media(max-height:800px) and (min-width:761px){.dt-shell{padding:16px 20px}.dt-header{margin-bottom:16px}.dt-place img{height:110px}.dt-place-1 img{height:135px}.dt-table-wrap{max-height:none}}
@media(max-width:760px){
 .demo-tournament-modal{width:calc(100vw - 16px);max-height:calc(100dvh - 16px);border-radius:18px}
 .dt-shell{padding:12px;max-height:calc(100dvh - 18px)}
 .dt-header{flex-wrap:wrap;gap:12px;margin-bottom:14px}.dt-title{gap:10px}.dt-title svg{width:30px;height:30px}.dt-title h2{font-size:19px}.dt-title p{font-size:11px;margin-top:3px}
 .dt-cycle{order:3;width:100%;box-sizing:border-box;justify-content:space-between;gap:12px;padding:10px 12px}.dt-cycle>div{min-width:0;flex:1}.dt-cycle>div+div{padding-left:12px}.dt-cycle strong{font-size:15px}.dt-cycle small{font-size:11px}
 .dt-podium{grid-template-columns:1fr 1.12fr 1fr;gap:6px;margin-bottom:14px}.dt-place{padding:0 4px 7px;border-radius:11px;min-width:0}.dt-place-1{order:0}.dt-place img{height:70px}.dt-place-1 img{height:86px}.dt-place h3{font-size:11px;margin:2px 0 6px}.dt-place>strong,.dt-place-1>strong{font-size:12px;line-height:1.4;overflow-wrap:anywhere}.dt-place p{display:none}.dt-prize{margin-top:8px;padding:5px 2px;font-size:9px;line-height:1.4}.dt-prize span{display:block}
 .dt-table-wrap{border:0;background:transparent;overflow:visible}.dt-table{min-width:0;display:block;width:100%}.dt-table thead{display:none}.dt-table tbody{display:grid;gap:8px}.dt-table tr{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));position:relative;padding:12px;gap:8px;border:1px solid var(--border-soft-2);border-radius:12px;background:var(--bg1,#18212c)}
 .dt-table td{padding:0;border:0;min-width:0;font-size:12px}.dt-table td:first-child{position:absolute;top:16px;right:12px;color:#94b3cc}.dt-table td:first-child::before{content:'#'}.dt-table td:nth-child(2){grid-column:1/-1;padding-right:32px}.dt-user{flex-wrap:wrap}.dt-avatar{width:25px;height:25px;margin-right:8px}.dt-table td:nth-child(3){grid-column:1/-1;font-size:16px;padding-bottom:4px}.dt-table td:nth-child(n+3)::before{display:block;font-size:10px;font-weight:400;color:#8fa9c0;margin-bottom:3px}.dt-table td:nth-child(3)::before{content:'Total profit'}.dt-table td:nth-child(4)::before{content:'PnL %'}.dt-table td:nth-child(5)::before{content:'Trades'}.dt-table td:nth-child(6)::before{content:'Win rate'}
 .dt-table .dt-me{border-color:#508fbd;background:#15334a}.dt-table .dt-me td{background:transparent;border:0}.dt-table .dt-empty{grid-column:1/-1;position:static!important;height:auto;padding:16px!important}.dt-table .dt-empty::before{content:none!important}
 .dt-footer{padding-top:10px;gap:10px;flex-wrap:nowrap}.dt-footer p{font-size:10px}.dt-footer small{font-size:9px}.dt-footer>div{width:auto;flex:none}.dt-footer button{flex:none;min-width:90px;justify-content:center;padding:9px 18px;font-size:12px}
}

.demo-tournament-modal .dt-row-prize{display:block;margin:3px 0 0 38px;color:#9fb8cd;font-size:11px;font-weight:400}

/* Position result card: isolated from the exchange layout and page zoom. */
body:has(.trade-result-dialog[open]){overflow:hidden}
.trade-result-dialog{width:min(1060px,calc(100vw - 32px));max-width:none;max-height:94dvh;margin:auto;padding:0;border:1px solid var(--border-soft-2,rgba(255,255,255,.1));border-radius:22px;background:rgba(12,22,33,.72);-webkit-backdrop-filter:blur(22px);backdrop-filter:blur(22px);color:#eef5ff;overflow:auto;box-shadow:0 30px 100px #000b;font-family:Inter,Arial,sans-serif}
.trade-result-dialog::backdrop{background:#030910cc;backdrop-filter:blur(6px)}
.trade-result-dialog[open]{animation:trade-result-enter .24s ease-out}
.trade-result-card{position:relative;isolation:isolate;padding:36px 42px 20px;min-height:450px;box-sizing:border-box;background:linear-gradient(178deg, rgba(45, 99, 143, .16), rgba(16, 29, 42, .35))}

.trade-result-card::after{content:'';position:absolute;inset:0;z-index:-1;pointer-events:none;opacity:.82;background:linear-gradient(90deg,#030a1288,transparent 70%),url('/img/trade-result-bull.webp') center/cover no-repeat}
.trade-result-card[data-side="short"]::after{background-image:linear-gradient(90deg,#030a1288,transparent 70%),url('/img/trade-result-bear.webp')}
.trade-result-brand{display:flex;align-items:center;gap:14px;font-size:32px;letter-spacing:4px;font-weight:600;margin-bottom:28px}.trade-result-brand img{display:block;width:280px;height:64px;object-fit:contain;object-position:left center}
.trade-result-pair{display:flex;align-items:center;gap:18px;flex-wrap:wrap;max-width:62%}.trade-result-pair h2{font-size:36px;margin:0;font-weight:650;letter-spacing:-1px}.trade-result-pair>span{padding:7px 12px;border:1px solid #10d8a144;border-radius:9px;color:#20efb6;background:#04382c99;font-size:20px}
.trade-result-card[data-side="short"] .trade-result-pair>span{color:#ff5a73;background:#410b1599;border-color:#ff5a733f}
.trade-result-roi{margin:24px 0 28px}.trade-result-roi>span{display:block;color:#a7bbd2;font-size:17px}.trade-result-roi>strong{display:block;font-size:clamp(42px,6.2vw,74px);line-height:1.2;font-weight:700;letter-spacing:-2px;font-variant-numeric:tabular-nums;color:#c4d5e7}
.trade-result-roi>strong[data-tone="profit"]{color:#20f3a3}.trade-result-roi>strong[data-tone="loss"]{color:#ff425e}
.trade-result-prices{display:flex;gap:32px;margin:0;max-width:62%;flex-wrap:wrap}.trade-result-prices dt{color:#a7bbd2;font-size:17px;margin-bottom:7px}.trade-result-prices dd{margin:0;font-size:29px;font-weight:600;font-variant-numeric:tabular-nums}
.trade-result-meta{display:flex;gap:16px;flex-wrap:wrap;margin-top:25px;color:#9cb4cb;font-size:11px}.trade-result-meta>span{letter-spacing:1px}
.trade-result-footer{display:flex;align-items:center;justify-content:space-between;gap:15px;padding:14px 22px;border-top:1px solid #ffffff16;font-size:12px;color:#95aac1}.trade-result-footer>.btn-connect{cursor:pointer;min-width:100px;justify-content:center;flex:none}.trade-result-footer button:focus-visible{outline:2px solid #a4d3ff;outline-offset:4px}
@keyframes trade-result-enter{from{opacity:0;transform:translateY(14px) scale(.98)}to{opacity:1;transform:none}}
@media(prefers-reduced-motion:reduce){.trade-result-dialog[open]{animation:none}}
@media(max-width:700px){.trade-result-card{padding:26px 22px 18px;min-height:410px}.trade-result-card::after{background-position:65% center;background-image:linear-gradient(90deg,#030a12dd,#030a1266),url('/img/trade-result-bull.webp')}.trade-result-card[data-side="short"]::after{background-image:linear-gradient(90deg,#030a12dd,#030a1266),url('/img/trade-result-bear.webp')}.trade-result-brand{font-size:25px;margin-bottom:25px}.trade-result-brand img{width:220px;height:51px}.trade-result-pair,.trade-result-prices{max-width:100%}.trade-result-pair h2{font-size:29px}.trade-result-pair>span{font-size:16px}.trade-result-prices{gap:22px}.trade-result-prices dd{font-size:24px}.trade-result-prices dt{font-size:14px}.trade-result-roi>strong{font-size:56px}}

.trade-result-referral{position:relative;display:flex;align-items:center;gap:10px;flex:1;min-width:0;padding:7px 9px 7px 14px;border:1px solid #ffffff19;border-radius:100px;background:linear-gradient(110deg,#ffffff03,#87aedb0a);color:#b4cce3}
.trade-result-referral>svg{flex:none}.trade-result-referral label{white-space:nowrap;font-size:12px}.trade-result-referral input{min-width:0;width:0;flex:1;border:0;border-left:1px solid #ffffff20;border-radius:0;background:transparent;color:#eef5ff;padding:4px 0 4px 12px;font:13px/1.4 Inter,Arial,sans-serif;text-overflow:ellipsis;outline-offset:2px}
.trade-result-referral button{flex:none;cursor:pointer;border:1px solid #87aedb25;border-radius:100px;padding:7px 13px;background:#87aedb18;color:#b4d7fd;font:500 12px/1.3 Inter,Arial,sans-serif}.trade-result-referral button:hover{background:#87aedb30}.trade-result-referral button:disabled{opacity:.5;cursor:default}
.trade-result-copy-status{position:absolute;top:calc(100% + 4px);right:12px;font-size:10px;color:#adc7df}.trade-result-footer{padding-bottom:20px}
@media(max-width:850px){.trade-result-footer{flex-wrap:wrap}.trade-result-referral{order:3;flex-basis:100%}.trade-result-footer>span{flex:1}}
@media(max-width:450px){.trade-result-referral{gap:7px}.trade-result-referral label{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}.trade-result-referral input{font-size:12px;padding-left:8px}}


.trade-result-card[data-tone="profit"]::after{background-image:linear-gradient(90deg,#030a1288,transparent 70%),url('/img/trade-result-bull.webp')}
.trade-result-card[data-tone="loss"]::after{background-image:linear-gradient(90deg,#030a1288,transparent 70%),url('/img/trade-result-bear.webp')}
@media(max-width:700px){
  .trade-result-card[data-tone="profit"]::after{background-image:linear-gradient(90deg,#030a12dd,#030a1266),url('/img/trade-result-bull.webp')}
  .trade-result-card[data-tone="loss"]::after{background-image:linear-gradient(90deg,#030a12dd,#030a1266),url('/img/trade-result-bear.webp')}
}


.trade-result-footer{display:flex;align-items:center;gap:18px;flex-wrap:wrap;row-gap:12px;padding:16px 22px 20px}
.trade-result-referral{position:relative;display:flex;align-items:center;gap:14px;flex:1 1 340px;min-width:0;padding:0;border:0;background:none}
.trade-result-referral__icon{display:flex;align-items:center;justify-content:center;width:36px;height:36px;flex:none;border-radius:11px;background:rgba(135,174,219,.12);color:#8fbdf0}
.trade-result-referral__text{display:flex;flex-direction:column;gap:2px;flex:none}
.trade-result-referral__text strong{font:600 14px/1.3 Inter,Arial,sans-serif;color:#eaf3ff}
.trade-result-referral__text small{font-size:11.5px;color:#8ea6bf}
.trade-result-referral__field{display:flex;align-items:center;gap:8px;flex:1 1 220px;min-width:0;padding:9px 8px 9px 16px;border:0;border-radius:12px;background:rgba(255,255,255,.05)}
.trade-result-referral input{flex:1;min-width:0;width:100%;padding:0;border:0;background:transparent;color:#eaf3ff;font:500 13.5px/1.5 Inter,Arial,sans-serif;text-overflow:ellipsis}
.trade-result-referral input:focus,.trade-result-referral input:focus-visible{outline:none;box-shadow:none}
.trade-result-referral input::placeholder{color:#728699;font-weight:400}
.trade-result-referral button{display:inline-flex;align-items:center;justify-content:center;gap:0;flex:none;width:32px;height:32px;padding:0;border:0;border-radius:9px;background:rgba(135,174,219,.12);color:#b4d7fd;cursor:pointer}
.trade-result-referral button:hover{background:rgba(135,174,219,.24);color:#eaf3ff}
.trade-result-referral button:disabled{opacity:.45;cursor:default}
.trade-result-referral button svg{display:block}
.trade-result-copy-status{position:absolute;left:66px;bottom:-15px;font-size:10.5px;color:#9fd3b4}
.trade-result-footer>.btn-connect{cursor:pointer;min-width:112px;justify-content:center;flex:none;margin-left:auto}
@media(max-width:700px){.trade-result-footer{gap:12px}.trade-result-referral{flex:1 1 100%}.trade-result-referral__text{flex:1}.trade-result-referral__field{flex:1 1 100%;order:3}.trade-result-copy-status{left:0;bottom:-14px}}


.trade-result-dialog{width:min(820px,calc(100vw - 32px));border-radius:18px}
.trade-result-card{padding:26px 30px 16px;min-height:340px}
.trade-result-brand{margin-bottom:18px}
.trade-result-brand img{width:186px;height:42px}
.trade-result-pair h2{font-size:27px;letter-spacing:-.5px}
.trade-result-pair>span{padding:5px 10px;font-size:15px;border-radius:8px}
.trade-result-roi{margin:16px 0 18px}
.trade-result-roi>span{font-size:13px}
.trade-result-roi>strong{font-size:clamp(34px,4.6vw,52px);letter-spacing:-1.5px}
.trade-result-prices{gap:24px}
.trade-result-prices dt{font-size:13px;margin-bottom:4px}
.trade-result-prices dd{font-size:21px}
.trade-result-meta{margin-top:16px;font-size:10.5px}
.trade-result-footer{padding:12px 18px 16px;gap:14px}
.trade-result-referral__icon{width:32px;height:32px;border-radius:10px}
.trade-result-referral__text strong{font-size:13px}
.trade-result-referral__text small{font-size:11px}
.trade-result-referral__field{padding:8px 6px 8px 14px;border-radius:11px}
.trade-result-referral input{font-size:14.5px}
.trade-result-footer>.btn-connect{min-width:96px;padding:9px 18px;font-size:12.5px}
@media(max-width:700px){.trade-result-card{padding:22px 18px 14px;min-height:300px}.trade-result-brand img{width:158px;height:36px}}


.trade-result-brand img{width:150px;height:34px}
@media(max-width:700px){.trade-result-brand img{width:132px;height:30px}}
.trade-result-pnl{display:block;margin-top:4px;font-style:normal;font-weight:600;font-size:18px;font-variant-numeric:tabular-nums;color:#c4d5e7}
.trade-result-pnl[data-tone="profit"]{color:#20f3a3}
.trade-result-pnl[data-tone="loss"]{color:#ff425e}


.demo-tournament-modal::backdrop{backdrop-filter:blur(2px);-webkit-backdrop-filter:blur(2px)}
.trade-result-dialog::backdrop{backdrop-filter:blur(2px);-webkit-backdrop-filter:blur(2px)}
.trade-result-dialog{-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px)}


.demo-order-actions .demo-share-btn{display:inline-flex;align-items:center;gap:6px;color:#9cc8f5}
.demo-order-actions .demo-share-btn:hover{background:rgba(110,170,235,.16);color:#e4f1ff}
.demo-share-btn svg{width:14px;height:14px;flex:none}


.demo-workspace input:focus-visible,.demo-tpsl-edit input:focus-visible{outline:1px solid rgba(135,174,219,.55);outline-offset:0}
.demo-tpsl-edit input:focus-visible{border-color:rgba(135,174,219,.5)}

/* Mobile trading introduction. */
body:has(.trade-mobile-sheet[open]){overflow:hidden}
.trade-mobile-sheet{position:fixed;inset:auto 0 0;width:100%;max-width:520px;max-height:90dvh;box-sizing:border-box;margin:0 auto;padding:12px 24px max(24px,env(safe-area-inset-bottom));border:0px solid #6688ab;border-bottom:0;border-radius:28px 28px 0 0;background:radial-gradient(ellipse at 50% 18%,#23466a80,transparent 56%),linear-gradient(150deg,#182d40,#0c1926 70%);box-shadow:0 -16px 65px #0006;color:#ecf3fc;text-align:center;font-family:Inter,Arial,sans-serif;overflow:auto}
.trade-mobile-sheet::backdrop{background:#030a12a8;backdrop-filter:blur(5px)}
.trade-mobile-sheet[open]{animation:trade-mobile-reveal .3s ease-out}
.trade-mobile-sheet__handle{width:46px;height:5px;border-radius:10px;background:#749bc388;margin:0 auto 8px}
.trade-mobile-sheet__art{position:relative;width:160px;height:112px;margin:4px auto 12px;filter:drop-shadow(0 0 17px #73afff55)}
.trade-mobile-sheet__art svg{width:100%;height:100%;display:block}.trade-mobile-sheet__art img{position:absolute;width:34px;height:34px;object-fit:contain;left:63px;top:28px}.trade-mobile-sheet__art span{position:absolute;color:#9dccff;font-size:15px;top:36px;left:0}.trade-mobile-sheet__art span:last-child{left:auto;right:0;top:12px}
.trade-mobile-sheet h2{margin:0 0 12px;font-size:23px;line-height:1.25;font-weight:600;letter-spacing:-.4px}.trade-mobile-sheet p{margin:0;color:#afc2d7;font-size:14px;line-height:1.6}.trade-mobile-sheet .trade-mobile-sheet__hint{margin:10px 0 20px;color:#839eb9;font-size:13px}
.trade-mobile-sheet .btn-connect{width:180px;max-width:100%;min-height:40px;padding:9px 22px;display:flex;justify-content:center;align-items:center;margin:0 auto;font-size:14px;cursor:pointer}.trade-mobile-sheet .btn-connect:focus-visible{outline:2px solid #d6eaff;outline-offset:4px}
@keyframes trade-mobile-reveal{from{opacity:0;transform:translateY(100%)}to{opacity:1;transform:translateY(0)}}
@media(prefers-reduced-motion:reduce){.trade-mobile-sheet[open]{animation:none}}
@media(max-height:540px){.trade-mobile-sheet__art{width:110px;height:77px;margin-bottom:8px}.trade-mobile-sheet__art img{width:24px;height:24px;left:43px;top:18px}.trade-mobile-sheet h2{font-size:20px}.trade-mobile-sheet p{font-size:13px}}

/* Кнопка скачивания карточки PNG рядом с Close */
.trade-result-download{display:inline-flex;align-items:center;gap:7px;flex:none;height:38px;padding:0 14px;border:0;border-radius:100px;background:rgba(135,174,219,.12);color:#b4d7fd;font:500 12.5px/1 Inter,Arial,sans-serif;cursor:pointer}
.trade-result-download:hover{background:rgba(135,174,219,.22);color:#eaf3ff}
.trade-result-download:disabled{opacity:.55;cursor:progress}
.trade-result-download svg{width:15px;height:15px}
.trade-result-download:focus-visible{outline:2px solid #a4d3ff;outline-offset:2px}
.trade-result-footer>.btn-connect{margin-left:0}
@media(max-width:700px){.trade-result-download{margin-left:auto}}

/* Иконка перед текстом кнопки лидерборда */
.demo-rank-row .btn-connect .tour-btn-icon{width:16px;height:16px;flex:none}

/* Поделиться карточкой: X, Telegram, системное меню (на телефонах) */
.trade-result-share{display:flex;align-items:center;gap:6px;flex:none}
.trade-result-share button{display:inline-flex;align-items:center;justify-content:center;width:38px;height:38px;padding:0;border:0;border-radius:50%;background:rgba(135,174,219,.12);color:#b4d7fd;cursor:pointer;transition:background .15s,color .15s}
.trade-result-share button[hidden]{display:none}
.trade-result-share button:hover{background:rgba(135,174,219,.24);color:#fff}
.trade-result-share button[data-result-share="tg"]:hover{background:rgba(42,171,238,.25);color:#7fd0ff}
.trade-result-share button:disabled{opacity:.55;cursor:progress}
.trade-result-share button:focus-visible{outline:2px solid #a4d3ff;outline-offset:2px}
.trade-result-share svg{width:16px;height:16px}
@media(max-width:700px){.trade-result-share{margin-left:auto}.trade-result-download{margin-left:0}}
