:root{--em-price:#245eac;--em-quantity:#7547a2;--em-capital:#08756f;--em-gain:#08734f;--em-loss:#b03248;--em-cost:#956015;--em-muted:#657383;--em-surface:#f0f5fb;--em-line:#d8e3ed}
.emphasis-value{font-weight:700;font-variant-numeric:tabular-nums;color:var(--em-price)}
.emphasis-inherit{color:inherit}.desk-shell table td:first-child>strong,.detail-heading h3,.mcx-symbols h3{color:var(--em-capital)}
.emphasis-price,.emphasis-info{color:var(--em-price)}.emphasis-quantity{color:var(--em-quantity)}.emphasis-capital{color:var(--em-capital)}.emphasis-gain{color:var(--em-gain)}.emphasis-loss{color:var(--em-loss)}.emphasis-cost,.emphasis-caution{color:var(--em-cost)}.emphasis-muted,.emphasis-neutral{color:var(--em-muted)}
.emphasis-term{font-weight:700;padding:1px 4px;border-radius:4px;background:color-mix(in srgb,currentColor 9%,transparent);box-decoration-break:clone;-webkit-box-decoration-break:clone}
.emphasis-legend{display:flex;align-items:center;flex-wrap:wrap;gap:6px 14px;font-size:10px;margin:0 0 20px;line-height:1.7;color:var(--em-muted)}.emphasis-legend>span{font-weight:600}.emphasis-legend>span::before{content:'';display:inline-block;width:6px;height:6px;border-radius:50%;background:currentColor;margin-right:5px}
.hero{--em-price:#a5caff;--em-quantity:#dbc3ff;--em-capital:#8de2d3;--em-gain:#8ce0b6;--em-loss:#ffb1bd;--em-cost:#ffe09a;--em-muted:#c3d4de}.hero .emphasis-term{background:#ffffff13}
.binance-watch td{font-variant-numeric:tabular-nums}.binance-watch td:first-child strong{color:var(--em-capital)}.binance-watch .emphasis-term{display:inline-block}.binance-watch small{display:block;font-size:10px;line-height:1.7}.binance-watch .positive{color:var(--em-gain)}.binance-watch .negative{color:var(--em-loss)}
.lot-editor input,.mcx-lot-form.lot-editor input{color:var(--em-quantity);font-weight:700}.live-control{color:var(--em-cost);font-weight:700}.strategy-results td>strong{font-variant-numeric:tabular-nums}
/* Replay uses the existing chart theme and renderer. */
.legacy-dashboard,body[data-chart-replay=true]{--em-price:#9ecaff;--em-quantity:#d1afff;--em-capital:#8cddd3;--em-gain:#7ce1b2;--em-loss:#ff9eae;--em-cost:#ffd38a;--em-muted:#b3c0d2;--em-surface:#172434;--em-line:#35485d}
html[data-theme=light] body[data-chart-replay=true],body[data-theme=light][data-chart-replay=true]{--em-price:#245eac;--em-quantity:#7547a2;--em-capital:#08756f;--em-gain:#08734f;--em-loss:#b03248;--em-cost:#956015;--em-muted:#657383;--em-surface:#f0f5fb;--em-line:#d8e3ed}
#chart-replay-pnl{display:flex;flex-wrap:wrap;gap:8px;background:transparent;white-space:normal!important}#chart-replay-pnl .replay-value-card{display:grid;gap:6px;min-width:130px;flex:1;padding:11px 14px;border:1px solid var(--em-line);border-radius:8px;background:var(--em-surface);line-height:1.4}#chart-replay-pnl .replay-value-card small{color:var(--em-muted);font-size:11px}#chart-replay-pnl .replay-value-card strong{font-size:17px;font-weight:750;font-variant-numeric:tabular-nums}#chart-replay-pnl .replay-evidence{flex-basis:100%;font-size:12px;line-height:1.6;color:var(--em-cost)}#chart-replay-controls output{color:var(--em-price);font-weight:650}#chart-replay-controls select{color:var(--em-quantity)}
@media(max-width:600px){#chart-replay-pnl .replay-value-card{min-width:125px}.emphasis-legend{gap:5px 10px}}

.connection-selected{outline:2px solid var(--em-capital);outline-offset:3px}.connection-card .connection-heading h3{color:var(--em-capital)}
/* Column menus are shared by every desk table, including streamed rows. */
.table-tools{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:9px 12px;min-width:240px;font-size:11px;color:var(--em-muted);background:#f7f9fc;border-bottom:1px solid #e0e8ed}.table-tools button{font-size:10px;padding:5px 8px}.column-filter-button{display:inline-flex;align-items:center;justify-content:center;min-width:23px;margin-left:7px;padding:2px 5px!important;border:1px solid #cedae5!important;border-radius:4px;background:#f1f5fa!important;color:#466989!important;font-size:12px!important}.column-filter-active{background:#dcecff!important;color:#164f9f!important;outline:2px solid #8cb8ed}.table-filtered-out{display:none!important}#table-column-filter{position:fixed;margin:0;width:320px;max-width:calc(100vw - 24px);max-height:calc(100vh - 24px);overflow:auto;padding:16px;border:1px solid #bfcfdd;border-radius:10px;background:#fff;color:#24384b;box-shadow:0 12px 45px #122b4140;font:12px system-ui}#table-column-filter::backdrop{background:#142b3d20}.column-filter-top,.column-sort-buttons,.column-filter-actions,.column-selection{display:flex;justify-content:space-between;gap:8px;align-items:center;margin-bottom:12px}.column-filter-top strong{font-size:14px}.column-filter-top button{font-size:20px;border:0;padding:0 5px}#table-column-filter button{border:1px solid #cbd7e3;background:#f6f8fc;border-radius:5px;padding:7px 9px;font:11px system-ui;color:#315478;cursor:pointer}#table-column-filter .primary{background:#dcecff;color:#1d5295;margin-top:0}#table-column-filter>label,.column-number-range label{display:grid;gap:6px;color:#536e85;margin:8px 0}#table-column-filter input[type=search],#table-column-filter input[type=number]{width:100%;padding:8px;border:1px solid #c8d5e2;border-radius:5px;background:white;color:#245eac}.column-number-range{display:grid;grid-template-columns:1fr 1fr;gap:10px}#table-column-filter small{font-size:10px;color:#6b7e8f}.column-selection{margin-top:12px}.column-value-list{max-height:230px;overflow:auto;border:1px solid #dce4ec;border-radius:6px;padding:6px;margin:9px 0 12px}.column-value-list label{display:flex;gap:8px;align-items:flex-start;padding:6px;font-size:11px;overflow-wrap:anywhere}.column-value-list input{accent-color:#245eac}.column-filter-actions{border-top:1px solid #dce4ec;padding-top:12px;margin-bottom:0}#table-column-filter output{display:block;color:#b03248;margin:7px 0}.valuation-coverage button.badge{cursor:pointer;border:1px solid transparent}.valuation-coverage button.badge[aria-pressed=true]{outline:2px solid currentColor;outline-offset:1px}.valuation-filter-state{display:flex;gap:12px;align-items:center;flex-wrap:wrap;font-size:11px;color:var(--em-price)}.valuation-filter-state[hidden]{display:none}

.emphasis-value,.emphasis-term{display:inline!important;font-size:inherit!important;line-height:inherit}
.emphasis-value.emphasis-price,.emphasis-value.emphasis-info{color:var(--em-price)}.emphasis-value.emphasis-gain,.emphasis-term.emphasis-gain{color:var(--em-gain)}.emphasis-value.emphasis-loss,.emphasis-term.emphasis-loss{color:var(--em-loss)}.emphasis-value.emphasis-quantity,.emphasis-term.emphasis-quantity{color:var(--em-quantity)}.emphasis-value.emphasis-capital{color:var(--em-capital)}.emphasis-value.emphasis-cost,.emphasis-term.emphasis-caution{color:var(--em-cost)}.emphasis-value.emphasis-neutral,.emphasis-value.emphasis-muted,.emphasis-term.emphasis-muted{color:var(--em-muted)}.emphasis-value.emphasis-inherit{color:inherit}
.legacy-dashboard .table-tools{background:#15202d;border-color:#2d4053;color:var(--em-muted)}body[data-chart-replay=true] canvas{height:max(280px,calc(100vh - 350px))!important;min-height:280px}
