/* Preserve every legend item while letting stablecoin controls fit narrow screens. */
@media (max-width: 767px) {
  #ciCoinDash.ci-cdash--coin-usds .ci-cdash-chart__legend,
  #ciCoinDash.ci-cdash--coin-usds .ci-cdash-history-legend {
    flex-wrap: wrap;
    white-space: normal;
    max-width: 100%;
    gap: 8px 14px;
  }
  #ciCoinDash.ci-cdash--coin-usds .ci-cdash-chart__legend > span,
  #ciCoinDash.ci-cdash--coin-usds .ci-cdash-history-legend > span {
    max-width: 100%;
    white-space: normal;
  }
}
@media (max-width: 767px) {
  #ciCoinDash.ci-cdash--view-price-history .ci-cdash__inner,
  #ciCoinDash.ci-cdash--view-price-history .ci-cdash-yearly-table-section,
  #ciCoinDash.ci-cdash--view-price-history .ci-cdash-monthly-table-section {
    min-width: 0;
    max-width: 100%;
  }
  #ciCoinDash.ci-cdash--view-price-history .ci-cdash-yearly-table-container {
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow-x: auto !important;
  }
}
