.volume-chart-legend{display:none!important}
.market-select-wrap .market-switch-symbol-name{font-size:100%!important}
.market-toolbar>.current-price>strong,.market-switch-mobile-price>strong{font-size:100%!important}
.app-shell.page-trade .chart-panel .market-toolbar>.market-navigation-group{width:fit-content!important;max-width:100%;justify-self:start}
@media (min-width:1101px) and (max-width:1600px){.app-shell.page-trade .chart-panel .market-navigation-group>.market-select-wrap{flex:0 0 220px!important}.app-shell.page-trade .chart-panel .market-switch-trigger{gap:6px!important;padding-right:4px!important;padding-left:8px!important}.app-shell.page-trade .chart-panel .market-switch-chevron{flex:0 0 18px!important;width:18px!important}}

.chart-frame a#tv-attr-logo{display:none!important}
.chart-heading .chart-attribution-link{display:inline-flex;align-items:center;justify-content:center;flex:0 0 24px;width:24px;height:24px;border-radius:6px;color:inherit}.chart-heading .chart-attribution-link:hover{opacity:.8}.chart-heading .chart-attribution-link:focus-visible{outline:2px solid #4d8dff;outline-offset:2px}

.chart-heading .chart-attribution-link{display:none!important}

/* Keep numeric entry fields and market rows inside their cards. */
.terminal-grid>.panel{min-width:0;max-width:100%}
.order-panel .spot-order-columns,.order-panel .spot-order-form,.order-panel .futures-order-form,.order-panel .mobile-order-trade-layout,.order-panel .mobile-order-form-column{min-width:0;max-width:100%}
.order-panel .spot-order-form,.order-panel .futures-order-form{width:100%}
.order-panel .input-affix{box-sizing:border-box;width:100%;min-width:0;max-width:100%;justify-self:stretch;overflow:hidden}
.order-panel .input-affix input,.order-panel .input-affix span{background:transparent!important}
.order-panel .input-affix input{box-sizing:border-box;flex:1 1 0;width:0;min-width:0;max-width:100%;font-variant-numeric:tabular-nums}
.order-panel .input-affix span{flex:0 0 auto;white-space:nowrap}
.order-panel .spot-order-size{box-sizing:border-box;min-width:0;max-width:100%}
.order-panel .spot-order-size input{box-sizing:border-box;min-width:0;max-width:100%}
.orderbook-panel .book-line{grid-template-columns:minmax(0,1fr) minmax(0,1fr);min-width:0}
.orderbook-panel .book-line span{box-sizing:border-box;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.orderbook-panel .book-line span:last-child{text-align:right}

/* Clear percentage steps and a visible maximum-size action. */
.order-panel .spot-order-size button{font-size:0!important;color:var(--muted)!important;gap:5px!important;min-width:28px;justify-items:center}
.order-panel .spot-order-size button::before{content:"";display:block;width:6px;height:6px;border-radius:50%;background:#73849b;transition:background-color .15s,box-shadow .15s,transform .15s}
.order-panel .spot-order-size button.reached::before{background:#36d3a6;box-shadow:0 0 0 3px rgba(54,211,166,.14)}
.order-panel .spot-order-form.spot-order-sell .spot-order-size button.reached::before{background:#ff6b81;box-shadow:0 0 0 3px rgba(255,107,129,.15)}
.order-panel .spot-order-size button span{color:#c5d2e0!important;font-size:10px!important;font-weight:600!important;line-height:1.25}
.order-panel .spot-order-size button.reached span{color:#f3f8fc!important}
.order-panel .spot-order-size button:hover::before{transform:scale(1.25)}
.order-panel .spot-order-size button:focus-visible,.order-panel .spot-order-maximum>button:focus-visible{outline:2px solid #36d3a6;outline-offset:2px;border-radius:5px}
.order-panel .spot-order-maximum{align-items:center;gap:7px;min-width:0}
.order-panel .spot-order-maximum>span{color:#b4c2d2;font-weight:500}
.order-panel .spot-order-maximum>strong{color:#e5edf5;font-variant-numeric:tabular-nums;font-weight:650}
.order-panel .spot-order-maximum>button{flex:0 0 auto;min-height:20px;padding:3px 7px;border:1px solid #214f8a;border-radius:5px;background:#214f8a;color:#fff;font-size:9px;font-weight:700;line-height:1.1;opacity:.76;transition:background-color .15s,border-color .15s,color .15s,opacity .15s}
.order-panel .spot-order-maximum>button:hover{border-color:#2d66ad;background:#2d66ad;color:#fff;opacity:.9}

/* Improve readability of prices and quantities in futures history tables. */
.futures-history-content .trade-history-table td{color:#c7d2df}
.futures-history-content .trade-history-table td.trade-history-number:not(.change-up):not(.change-down){color:#ffffff;font-weight:600}
.futures-history-content .trade-history-table td.trade-history-number:not(.change-up):not(.change-down) small{color:#c7d2df;font-weight:500}

/* Clearer order tabs and readable values across all order-history tables. */
.trade-history-panel .trade-history-tabs{gap:6px;align-items:center;padding:7px 12px;min-height:48px;overflow-x:auto;scrollbar-width:thin}
.trade-history-panel .trade-history-tabs button{flex:0 0 auto;min-height:34px;padding:0 12px;border:1px solid transparent;border-radius:8px;color:#c7d2df;font-size:12px;font-weight:600;transition:background-color .15s,border-color .15s,color .15s}
.trade-history-panel .trade-history-tabs button:hover{background:rgba(255,255,255,.05);color:#fff}
.trade-history-panel .trade-history-tabs button.active{position:relative;border-color:transparent;background:transparent;color:#fff}.trade-history-panel .trade-history-tabs button.active::after{content:"";position:absolute;right:0;bottom:-7px;left:0;height:2px;background:#214f8a;border-radius:2px}
.trade-history-panel .trade-history-table th{color:#c3cedb;font-size:11px}
.trade-history-panel .trade-history-table td{color:#d5deea}
.trade-history-panel .trade-history-table td.trade-history-number:not(.change-up):not(.change-down){color:#fff;font-weight:650}
.trade-history-panel .trade-history-table tbody tr:hover{background:rgba(69,112,164,.16)}

/* In-place editor for simulated open limit orders. */
.trade-history-edit{min-height:26px;margin-right:6px;padding:4px 8px;border:1px solid rgba(33,79,138,.75);border-radius:5px;background:rgba(33,79,138,.16);color:#eaf2fb;font-family:inherit;font-size:10px;font-weight:600;line-height:1.2;cursor:pointer;transition:background-color .15s,border-color .15s}
.trade-history-edit:hover{border-color:#214f8a;background:rgba(33,79,138,.32)}
.trade-history-edit:disabled{opacity:.55;cursor:wait}
.trade-order-edit-dialog{width:min(440px,calc(100vw - 32px));max-width:calc(100vw - 32px);max-height:calc(100dvh - 32px);padding:0;overflow:auto;border:1px solid #2a394d;border-radius:14px;background:#141f2e;color:#e5eaf2;box-shadow:0 24px 70px rgba(0,0,0,.52)}
.trade-order-edit-dialog::backdrop{background:rgba(3,9,17,.72);backdrop-filter:blur(3px)}
.trade-order-edit-form{display:grid;gap:15px;padding:20px}
.trade-order-edit-heading{display:flex;align-items:center;justify-content:space-between;gap:12px}
.trade-order-edit-heading h2{margin:0;color:#f5f8fc;font-size:17px;font-weight:650}
.trade-order-edit-close{width:30px;height:30px;border:0;border-radius:6px;background:transparent;color:#c7d2df;font-size:22px;line-height:1;cursor:pointer}
.trade-order-edit-close:hover{background:rgba(255,255,255,.07);color:#fff}
.trade-order-edit-field{display:grid;gap:7px;color:#c7d2df;font-size:12px;font-weight:600}
.trade-order-edit-field input{box-sizing:border-box;width:100%;min-height:42px;padding:9px 11px;border:1px solid #34465e;border-radius:7px;outline:none;background:#101a28;color:#fff;font-family:inherit;font-size:14px;font-weight:500;line-height:1.3;font-variant-numeric:tabular-nums}
.trade-order-edit-field input:focus{border-color:#4384cf;box-shadow:0 0 0 3px rgba(33,79,138,.24)}
.trade-order-edit-hint{margin:0;color:#9eafc2;font-size:11px;line-height:1.55}
.trade-order-edit-message{margin:0;color:#ff9da7;font-size:12px;line-height:1.45}
.trade-order-edit-message[hidden]{display:none}
.trade-order-edit-actions{display:flex;justify-content:flex-end;gap:8px;padding-top:2px}
.trade-order-edit-actions button{min-height:36px;padding:0 12px;border-radius:6px;font-size:12px;font-weight:650;cursor:pointer}
.trade-order-edit-cancel{border:1px solid #34465e;background:transparent;color:#d5deea}
.trade-order-edit-save{border:1px solid #214f8a;background:#214f8a;color:#fff}
.trade-order-edit-save:hover{background:#2d66ad}
.trade-order-edit-actions button:disabled,.trade-order-edit-close:disabled{opacity:.55;cursor:wait}
@media(max-width:640px){.trade-order-edit-form{gap:13px;padding:17px}.trade-order-edit-heading h2{font-size:15px}}

.app-shell.page-trade :is(button, a, input, select, textarea):focus-visible{outline:3px solid #78aaff!important;outline-offset:2px!important}
.order-panel .spot-order-maximum>button{min-height:32px;padding:5px 9px;font-size:10px}
@media(max-width:760px){.app-shell.page-trade .chart-panel .timeframes button{box-sizing:border-box;min-width:32px;min-height:32px;padding:5px 6px}}

@media(min-width:761px){
  .page-trade .desktop-trade-history-panel .trade-history-table th[data-zenta-liquidation-heading],
  .page-trade .desktop-trade-history-panel .trade-history-table td[data-zenta-liquidation-cell]{min-width:120px;white-space:nowrap}
  .page-trade .desktop-trade-history-panel .trade-history-table td:last-child{white-space:nowrap}
  .page-trade .zenta-desktop-position-share{display:inline-grid;width:34px;height:34px;margin-inline-start:8px;place-items:center;vertical-align:middle;border:1px solid #344a66;border-radius:8px;color:#c7d9f2;background:#142238;cursor:pointer}
  .page-trade .zenta-desktop-position-share:hover{border-color:#6ea8ff;color:#fff;background:#1a3150}
  .page-trade .zenta-desktop-position-share svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
  .page-trade .zenta-desktop-position-share:focus-visible{outline:3px solid #78aaff;outline-offset:2px}
}

html[data-theme="light"] .page-trade .trade-history-panel .trade-history-tabs button{color:#475569}
html[data-theme="light"] .page-trade .trade-history-panel .trade-history-tabs button:hover{background:#edf4ff;color:#174ea6}
html[data-theme="light"] .page-trade .trade-history-panel .trade-history-tabs button.active{color:#174ea6}
html[data-theme="light"] .page-trade .trade-history-panel .trade-history-table{color:#263445}
html[data-theme="light"] .page-trade .trade-history-panel .trade-history-table th{border-color:#dce3ed;color:#526071;background:#f2f5f9}
html[data-theme="light"] .page-trade .trade-history-panel .trade-history-table td,
html[data-theme="light"] .page-trade .futures-history-content .trade-history-table td{border-color:#e5eaf1;color:#344256}
html[data-theme="light"] .page-trade .trade-history-panel .trade-history-table tbody tr:nth-child(even){background:#f8fafc}
html[data-theme="light"] .page-trade .trade-history-panel .trade-history-table tbody tr:hover{background:#eaf2ff}
html[data-theme="light"] .page-trade .trade-history-panel .trade-history-table td.trade-history-number:not(.change-up):not(.change-down),
html[data-theme="light"] .page-trade .futures-history-content .trade-history-table td.trade-history-number:not(.change-up):not(.change-down){color:#263445}
html[data-theme="light"] .page-trade .trade-history-panel .trade-history-table td.trade-history-number small,
html[data-theme="light"] .page-trade .futures-history-content .trade-history-table td.trade-history-number small{color:#64748b}
html[data-theme="light"] .page-trade .trade-history-panel .trade-history-table .change-up,
html[data-theme="light"] .page-trade .futures-history-content .trade-history-table .change-up{color:#137347}
html[data-theme="light"] .page-trade .trade-history-panel .trade-history-table .change-down,
html[data-theme="light"] .page-trade .futures-history-content .trade-history-table .change-down{color:#b42332}
html[data-theme="light"] .page-trade .trade-history-edit{border-color:#b7c9e2;background:#edf4ff;color:#174ea6}
html[data-theme="light"] .page-trade .trade-history-edit:hover{border-color:#2478ff;background:#e2eeff}
html[data-theme="light"] .page-trade .trade-order-edit-dialog{border-color:#cbd5e1;background:#fff;color:#1f2937}
html[data-theme="light"] .page-trade .trade-order-edit-heading h2{color:#1f2937}
html[data-theme="light"] .page-trade .trade-order-edit-close{color:#475569}
html[data-theme="light"] .page-trade .trade-order-edit-close:hover{background:#edf2f7;color:#1f2937}
html[data-theme="light"] .page-trade .trade-order-edit-field{color:#475569}
html[data-theme="light"] .page-trade .trade-order-edit-field input{border-color:#cbd5e1;background:#fff;color:#1f2937}
html[data-theme="light"] .page-trade .trade-order-edit-hint{color:#64748b}
html[data-theme="light"] .page-trade .trade-order-edit-message{color:#b42332}
html[data-theme="light"] .page-trade .trade-order-edit-cancel{border-color:#cbd5e1;color:#344256}

.page-trade .spot-order-submit:disabled,
.page-trade .spot-order-submit:disabled:hover{opacity:.55;cursor:not-allowed;filter:grayscale(.25);transform:none}
