@media (max-width: 800px) {
  body .Chat > .sub-menu {
    display: none;
  }

  body[data-wts-theme="0"]:not(.game-mode) .header .header__left .Toggle > button.Mode {
    box-sizing: border-box;
    width: 48px;
    height: 44px;
    padding: 0;
    justify-content: center;
  }

  body[data-wts-theme="0"]:not(.game-mode) .header .Toggle > .Mode > :is(.light-mode, .dark-mode) {
    box-sizing: border-box;
    flex: 0 0 44px;
    height: 26px;
  }

  body[data-wts-theme="0"]:not(.game-mode) .header .Toggle > .Mode :is(.light-mode__button, .dark-mode__button) {
    box-sizing: border-box;
    top: 50%;
    transform: translateY(-50%);
    width: 22px;
    height: 22px;
    font-size: 16px;
  }

  body[data-wts-theme="0"]:not(.game-mode) .header .Toggle > .Mode .dark-mode__button {
    left: auto;
    right: 1px;
  }
}
@media (max-width: 800px) {
  body[data-wts-theme="0"]:not(.game-mode) .dashboard_chart > .dashboard_chart__tab.top + .content-container > button:empty {
    display: none;
  }
}

@media (max-width: 800px) {
  body[data-wts-theme="0"]:not(.game-mode) .dashboard_chart {
    --mobile-header-bottom: 51px;
    --mobile-tabs-height: calc(max(40px, 1.2rem + 10px) + 12px);
    margin-top: 0;
  }

  body[data-wts-theme="0"]:not(.game-mode) .dashboard_chart > .dashboard_chart__tab.top {
    position: sticky;
    top: var(--mobile-header-bottom);
    height: var(--mobile-tabs-height);
    padding-block: 6px;
    background: var(--background);
    z-index: 10;
  }

  /* Let the quote stay pinned while the sibling order history scrolls into view. */
  body[data-wts-theme="0"]:not(.game-mode) .dashboard_chart > .content-container > .middle__box,
  body[data-wts-theme="0"]:not(.game-mode) .dashboard_chart .middle__box > .content.dashboard.mobile-trading-chart {
    display: contents;
  }

  body[data-wts-theme="0"]:not(.game-mode) .dashboard_chart .content.dashboard.mobile-trading-chart > .top__box {
    position: sticky;
    top: calc(var(--mobile-header-bottom) + var(--mobile-tabs-height));
    z-index: 6;
    background: var(--card);
  }
}
