/* Compact Original-chart workspace, matching the supplied reference. */
:root {
  --canvas: #ffffff;
  --shell-950: #ffffff;
  --shell-850: #fafafa;
  --body: Arial, "PingFang SC", sans-serif;
  --display: Arial, "PingFang SC", sans-serif;
}
html, body { height: 100%; }
.app-shell { min-height: 100vh; }
.workstation { height: 100vh; min-height: 620px; grid-template-columns: 240px minmax(0, 1fr); }
.desk { display: flex; flex-direction: column; gap: 0; min-width: 0; min-height: 0; padding: 0; background: var(--canvas); }
.market-drawer { padding: 20px 12px 12px; overflow-y: auto; }
.drawer-heading h2 { font-size: 17px; }
.drawer-heading .section-kicker { display: none; }
.drawer-footnote { font-size: 10px; }
.symbol-button { min-height: 57px; }
.instrument-bar { flex: 0 0 66px; flex-direction: row; align-items: center; justify-content: flex-start; gap: 18px; padding: 8px 16px; border-bottom: 1px solid #eaecef; }
.instrument-title-line { gap: 6px; }
.instrument-title-line h2 { font: 600 21px var(--body); letter-spacing: 0; }
.symbol-navigation { display: inline-flex; gap: 2px; }
.symbol-navigation button { display: grid; place-items: center; width: 28px; height: 28px; padding: 4px; border: 1px solid #eaecef; border-radius: 4px; background: transparent; color: #515b6a; cursor: pointer; }
.symbol-navigation svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.symbol-navigation button:hover:not(:disabled) { color: #1e2329; background: #f0f1f2; }
.symbol-navigation button:disabled { opacity: 0.35; cursor: default; }
.symbol-navigation button:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.instrument-identity p { margin: 4px 0 0; font-size: 11px; }
.instrument-bar .asset-badge, .instrument-bar .availability-badge { display: none; }
.perp-badge { color: #707a8a; background: #eaecef; border-radius: 2px; padding: 1px 4px; font-size: 12px; }
.quote-strip { display: flex; width: auto; gap: 0; padding: 0; margin: 0; }
.quote-strip > div:not(.quote-primary), .quote-primary dt { display: none; }
.quote-primary { min-width: 108px; }
.quote-primary dd { font: 600 23px var(--body); }
.quote-primary .price-change { font: 12px var(--body); }
.chart-tab { align-self: stretch; display: grid; align-items: center; color: #1e2329; border-bottom: 3px solid #c99400; font-size: 14px; margin-left: 8px; }
.control-deck { flex: 0 0 44px; display: flex; align-items: center; flex-wrap: nowrap; gap: 14px; padding: 0 16px; border-bottom: 1px solid #eaecef; background: var(--canvas); }
.intervals { gap: 12px; padding: 0; border: 0; }
.intervals button, .intervals button.is-active { padding: 4px 0; min-width: 0; background: transparent; color: #1e2329; box-shadow: none; font: 13px var(--body); }
.intervals button.is-active { color: #9e7400; box-shadow: inset 0 -2px var(--focus); }
.control-label, .last-price-label { color: #707a8a; font-size: 12px; }
.indicator-toggle { color: #1e2329; background: transparent; padding: 4px; cursor: pointer; font-size: 12px; white-space: nowrap; }
.indicator-toggle span { color: #707a8a; margin-left: 4px; }
.indicator-toggle[aria-pressed="false"] { color: #707a8a; }
.toolbar-divider { height: 16px; width: 1px; background: #eaecef; }
.original-label { color: #1e2329; font-size: 12px; padding-left: 12px; }
.chart-navigation { margin-left: auto; gap: 7px; }
.chart-navigation button { background: transparent; border: 0; color: #707a8a; font-size: 14px; }
.chart-navigation button:hover { color: #1e2329; }
.chart-navigation-hint { display: none; }
.zoom-range { font-size: 10px; color: #707a8a; }
.chart-card { display: flex; flex-direction: column; flex: 1 1 0; min-height: 0; border: 0; box-shadow: none; background: var(--canvas); }
.chart-heading { display: none; }
.chart-stage { flex: 1 1 0; min-height: 0; background: var(--canvas); }
.market-chart { position: absolute; inset: 0; height: 100%; min-height: 0; }
.chart-readouts { position: absolute; top: 10px; left: 12px; right: 92px; z-index: 2; pointer-events: none; color: #707a8a; font-size: 11px; line-height: 18px; }
.candle-readout, .ma-readout { display: flex; align-items: center; gap: 12px; white-space: nowrap; overflow: hidden; }
.ma-readout { margin-top: 4px; padding: 0; border: 0; background: transparent; color: inherit; font: inherit; pointer-events: auto; cursor: pointer; }
.indicator-readouts { display: flex; align-items: baseline; gap: 16px; }
#position-cost-readout { color: #008c95; }
.ma-readout[aria-pressed="false"] { opacity: 0.45; }
.ma-readout:focus-visible { outline: 1px solid #c99400; outline-offset: 2px; }
.ma-readout[hidden] { display: none; }
.chart-readouts b { font-weight: 400; margin-left: 4px; }
.signal-console { display: none; }
.desk-footer { flex: 0 0 23px; min-height: 23px; gap: 12px; margin: 0; padding: 0 12px; border-top: 1px solid #eaecef; font-size: 9px; background: var(--canvas); }
.closed-candle-rule { display: none; }
.connection-status { min-height: 0; min-width: 0; padding: 0; border: 0; margin-left: auto; background: transparent; font: 9px var(--body); }
@media (max-width: 860px) {
  .workstation { grid-template-columns: 210px minmax(0, 1fr); }
  .symbol-list { display: flex; }
  .symbol-nav { max-height: none; }
  .instrument-bar { gap: 10px; padding: 8px; }
  .instrument-title-line h2 { font-size: 17px; }
  .quote-primary dd { font-size: 19px; }
  .control-deck { padding: 0 8px; gap: 8px; }
  .last-price-label, .indicator-toggle span, .zoom-range { display: none; }
  .chart-readouts { font-size: 10px; }
}
@media (max-width: 600px) {
  .workstation { display: block; height: auto; min-height: 100vh; }
  .market-drawer { max-height: 260px; }
  .desk { height: 100dvh; min-height: 620px; }
  .drawer-heading, .drawer-footnote { display: none; }
  .symbol-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .instrument-bar { gap: 8px; }
  .quote-primary { min-width: 0; }
  .chart-tab { display: none; }
  .original-label { padding-left: 0; }
}
.quote-strip .quote-primary { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; min-width: 108px; }
.quote-strip .quote-primary dd { font: 600 23px var(--body); letter-spacing: 0; }

/* Light surfaces and Binance yellow selection accents. */
:root {
  color-scheme: light;
  --canvas: #ffffff;
  --canvas-raised: #ffffff;
  --canvas-quiet: #f5f5f5;
  --shell-950: #ffffff;
  --shell-900: #ffffff;
  --shell-850: #fafafa;
  --shell-800: #eaecef;
  --shell-line: #eaecef;
  --shell-text: #1e2329;
  --shell-muted: #707a8a;
  --ink: #1e2329;
  --ink-muted: #707a8a;
  --line: #eaecef;
  --focus: #c99400;
  --shadow: none;
}
.chart-tab { border-bottom-color: #f0b90b; }
.market-drawer { background: #fafafa; }
.symbol-button.is-active { background: #f5f5f5; color: #1e2329; }
.symbol-button.is-active::before { background: #f0b90b; box-shadow: none; }
.symbol-button:hover, .category-tab:hover { background: #f0f1f2; }
.category-tab.is-active { color: #9e7400; background: #fff8df; }
.search-box { background: #ffffff; }
.search-box kbd, .perp-badge { color: #707a8a; background: #f0f1f2; border-color: #eaecef; }
.asset-badge, .symbol-category { color: #707a8a; border-color: #d8dce1; }
.drawer-toggle:hover { color: #1e2329; background: #f0f1f2; }
.chart-readouts, .desk-footer, .list-meta, .drawer-footnote { color: #707a8a; }

/* Keep light-mode labels and chart controls legible at normal desktop scale. */
:root { --ink-muted: #515b6a; --shell-muted: #515b6a; }
.chart-readouts { color: #515b6a; font-size: 12px; line-height: 20px; }
.control-label, .last-price-label, .indicator-toggle span,
.chart-navigation button, .zoom-range { color: #515b6a; }
.symbol-name, .instrument-identity p { color: #515b6a; font-size: 12px; }
.list-meta, .desk-footer, .drawer-footnote { color: #596273; font-size: 11px; }
.chart-readouts b { font-weight: 500; }

/* Keep the trading view focused on prices and chart controls. */
.watch-count, .list-meta, .drawer-footnote, .search-box kbd,
.symbol-type, .chart-tab, .last-price-label, .original-label,
.toolbar-divider, .zoom-range, .desk-footer { display: none; }

/* A quiet indicator exposes stale data without adding a status bar. */
.instrument-bar > .connection-status { margin-left: auto; }
#connection-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
#connection-status.is-offline #connection-text { position: static; width: auto; height: auto; clip-path: none; color: #cf304a; font-size: 11px; }

.exchange-badge { font-size: 11px; color: #707a8a; flex-shrink: 0; }
.symbol-metrics { display: flex; flex-direction: column; align-items: flex-end; gap: 5px; flex-shrink: 0; }
.symbol-turnover { font-size: 11px; color: #515b6a; font-variant-numeric: tabular-nums; }

.intervals button, .control-label { white-space: nowrap; }

.watchlist-settings { padding: 12px; color: #707a8a; font-size: 12px; border-top: 1px solid #eaecef; }
.watchlist-settings summary { cursor: pointer; color: #1e2329; }
.watchlist-settings textarea { width: 100%; box-sizing: border-box; margin: 8px 0; }
.watchlist-settings button { border: 1px solid #d8dce1; padding: 6px 12px; border-radius: 4px; background: #fff8df; }

#watchlist-status { display: block; padding: 8px 12px; line-height: 1.5; }
.list-meta { display: flex; }

#positions-status { display: block; padding: 0 12px 8px; line-height: 1.5; color: #707a8a; font-size: 10px; }
#positions-token { width: 100%; box-sizing: border-box; margin: 8px 0; }
