:root {
  --bg: #0b1222;
  --panel: #141e32;
  --panel-2: #10192b;
  --line: #293650;
  --text: #eef3ff;
  --muted: #94a1b8;
  --dim: #687895;
  --mint: #20c997;
  --mint-2: #55dfb1;
  --red: #fb5488;
  --blue: #168cff;
}

body { background: #0b1222; }
.topbar { background: #0d172b; border-color: #263550; }
.ticker-bar { background: #101a30; border-color: #293650; }
.watchlist-panel, .chart-panel, .order-ticket, .data-panel {
  background: #111b2f;
  border-color: #263550;
}
.mode-switch button.active { background: #167fe5; color: #fff; }
.wallet-connect { background: #168cff; color: #fff; }
.watch-row:hover, .watch-row.active { background: #152644; }
.mobile-watch-card.active { border-color: #168cff; background: #13223c; }
.mobile-nav button.active { color: #168cff; }
.buy-cta, .submit-order:not(.sell), .mobile-trade-bar .buy-cta { background: #168cff; color: #fff; }
.side-tabs button.active { background: #157de0; color: #fff; }
.watch-sparkline { display: block; width: 76px; height: 28px; overflow: visible; }
.watch-spark-empty { display: block; width: 76px; height: 28px; border-bottom: 1px solid #35445e; opacity: .7; }
.mobile-watch-quote { display: block; min-width: 0; text-align: right; font-variant-numeric: tabular-nums; }
.mobile-watch-card .mobile-watch-price { margin: 0; white-space: nowrap; }
.mobile-watch-card .mobile-watch-change { display: block; }
.market-list-mode .mobile-trade-bar,
.portfolio-mode .mobile-trade-bar { display: none !important; }
.portfolio-mode .mobile-watchlist-wrap { display: none !important; }

@media (max-width: 760px) {
  body { background: #0b1222; }
  .topbar { background: #0d172b; }
  .ticker-bar { background: #101a30; }
  .page-head { padding-top: 13px; }
  .mobile-section-label { padding: 2px 3px 8px; font-size: 10px; color: #e3eaf8; }
  .watchlist-mobile {
    display: grid;
    gap: 0;
    overflow: visible;
    padding: 0;
    background: #111b2f;
    border: 1px solid #273550;
    border-radius: 10px;
  }
  .mobile-watch-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 78px max-content;
    align-items: center;
    gap: 9px;
    width: 100%;
    min-height: 61px;
    padding: 9px 11px;
    border: 0;
    border-bottom: 1px solid #25314a;
    border-radius: 0;
    background: transparent;
  }
  .mobile-watch-card:last-child { border-bottom: 0; }
  .mobile-watch-card.active { border-color: #25314a; box-shadow: inset 3px 0 #168cff; }
  .mobile-watch-card .watch-main { min-width: 0; }
  .mobile-watch-card .watch-info b { font-size: 10px; }
  .mobile-watch-card .watch-info small { font-size: 7px; }
  .watch-sparkline, .watch-spark-empty { width: 78px; height: 30px; }
  .mobile-watch-card .mobile-watch-price { font-size: 9px; }
  .mobile-watch-card .mobile-watch-change { margin-top: 3px; font-size: 8px; }
  .chart-panel { border-radius: 11px; }
  .chart-container { background: #0f192c; border-radius: 7px; }
  .chart-toolbar { border-color: #263550; }
  .mobile-nav { background: #0d172b; border-color: #293650; }
  .mobile-trade-bar { background: #0d172bf2; border-color: #293650; }
  .mode-pro .mobile-watchlist-wrap { display: block; }
  .market-list-mode .terminal-grid .chart-panel,
  .market-list-mode .terminal-grid .order-ticket { display: none !important; }
  .market-detail-mode .mobile-watchlist-wrap,
  .portfolio-mode .mobile-watchlist-wrap { display: none !important; }
}

@media (max-width: 390px) {
  .mobile-watch-card { grid-template-columns: minmax(0, 1fr) 58px max-content; gap: 6px; padding-inline: 8px; }
  .watch-sparkline, .watch-spark-empty { width: 58px; }
  .mobile-watch-card .mobile-watch-price { font-size: 8px; }
}
