/* SUNDEX p107 — compact mobile Markets without horizontal scrolling. */
@media (max-width: 700px) {
  html.sx92-markets-root,
  html.sx92-markets-root body,
  body.sx92-markets-route,
  body[data-sx88-route="markets"] {
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: clip !important;
  }

  body.sx92-markets-route .sx88-route-portal,
  body[data-sx88-route="markets"] .sx88-route-portal {
    width: 100% !important;
    overflow: clip !important;
  }

  body.sx92-markets-route .sx88-markets,
  body[data-sx88-route="markets"] .sx88-markets {
    width: 100% !important;
    padding: 104px 14px 56px !important;
    overflow: visible !important;
    box-sizing: border-box !important;
  }

  .sx88-market-head {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 22px !important;
    margin-bottom: 20px !important;
  }

  .sx88-market-head h1 {
    margin: 7px 0 7px !important;
    font-size: clamp(3.2rem, 16vw, 4.25rem) !important;
    line-height: .9 !important;
  }

  .sx88-market-head p {
    max-width: 32ch !important;
    font-size: .9rem !important;
    line-height: 1.45 !important;
  }

  .sx88-search-wrap > label {
    margin-bottom: 7px !important;
  }

  .sx88-search-field {
    min-height: 50px !important;
    border-radius: 14px !important;
  }

  .sx88-market-focus {
    min-height: 0 !important;
    grid-template-columns: minmax(0, 1fr) !important;
    border-radius: 18px !important;
  }

  .sx88-market-identity {
    min-height: 0 !important;
    padding: 22px 20px 18px !important;
    border-right: 0 !important;
    border-bottom: 1px solid var(--sx88-line) !important;
  }

  .sx88-focus-icon {
    width: 38px !important;
    height: 38px !important;
  }

  .sx88-focus-price {
    margin-top: 22px !important;
    font-size: clamp(2.45rem, 13vw, 3.25rem) !important;
  }

  .sx88-focus-change {
    margin-top: 9px !important;
  }

  .sx88-focus-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 8px !important;
    margin-top: 21px !important;
    padding-top: 0 !important;
  }

  .sx88-focus-stats div {
    min-width: 0 !important;
    flex-direction: column !important;
    justify-content: flex-start !important;
    gap: 5px !important;
    padding-top: 9px !important;
  }

  .sx88-focus-stats dt,
  .sx88-focus-stats dd {
    min-width: 0 !important;
    overflow: hidden !important;
    font-size: .64rem !important;
    text-align: left !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
  }

  .sx88-chart-panel {
    min-height: 0 !important;
    padding: 16px 14px 13px !important;
  }

  .sx88-chart-toolbar {
    flex-direction: row !important;
    align-items: center !important;
    gap: 10px !important;
  }

  .sx88-periods {
    margin-left: auto !important;
  }

  .sx88-periods button {
    min-width: 36px !important;
    height: 30px !important;
  }

  .sx88-chart {
    min-height: 0 !important;
    height: 188px !important;
    flex: 0 0 188px !important;
    margin-top: 8px !important;
  }

  .sx88-chart svg {
    height: 168px !important;
    min-height: 168px !important;
  }

  .sx88-chart-tooltip {
    min-width: 116px !important;
    padding: 7px 9px !important;
  }

  .sx88-market-list {
    margin-top: 14px !important;
    overflow: hidden !important;
    border-radius: 18px !important;
  }

  .sx88-list-head {
    min-height: 0 !important;
    align-items: center !important;
    padding: 17px 18px !important;
  }

  .sx88-list-head p {
    max-width: 24ch !important;
  }

  body.sx92-markets-route .sx88-table-wrap,
  body[data-sx88-route="markets"] .sx88-table-wrap,
  .sx88-table-wrap {
    width: 100% !important;
    max-width: 100% !important;
    overflow: visible !important;
  }

  .sx88-market-list table,
  .sx88-market-list tbody {
    display: block !important;
    width: 100% !important;
    min-width: 0 !important;
  }

  .sx88-market-list thead {
    display: none !important;
  }

  .sx88-market-list tbody tr {
    display: grid !important;
    width: 100% !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    grid-template-areas:
      "asset asset price"
      "change cap volume" !important;
    gap: 14px 10px !important;
    padding: 16px 17px !important;
    border-top: 1px solid rgba(190, 207, 230, .09) !important;
    box-sizing: border-box !important;
  }

  .sx88-market-list tbody tr:first-child {
    border-top: 0 !important;
  }

  .sx88-market-list td {
    display: flex !important;
    width: auto !important;
    min-width: 0 !important;
    height: auto !important;
    padding: 0 !important;
    border: 0 !important;
    font-size: .73rem !important;
    text-align: left !important;
  }

  .sx88-market-list td:first-child {
    display: none !important;
  }

  .sx88-market-list td:nth-child(2) {
    grid-area: asset !important;
    align-items: center !important;
  }

  .sx88-market-list td:nth-child(3) {
    grid-area: price !important;
    align-items: flex-end !important;
    text-align: right !important;
  }

  .sx88-market-list td:nth-child(4) { grid-area: change !important; }
  .sx88-market-list td:nth-child(5) { grid-area: cap !important; }
  .sx88-market-list td:nth-child(6) { grid-area: volume !important; }

  .sx88-market-list td:nth-child(n+3) {
    flex-direction: column !important;
    gap: 5px !important;
    justify-content: flex-end !important;
    white-space: nowrap !important;
  }

  .sx88-market-list td:nth-child(n+3)::before {
    color: #657286 !important;
    font-size: .58rem !important;
    font-weight: 620 !important;
    letter-spacing: .045em !important;
    line-height: 1 !important;
    text-transform: uppercase !important;
  }

  .sx88-market-list td:nth-child(3)::before { content: "Price"; }
  .sx88-market-list td:nth-child(4)::before { content: "24h"; }
  .sx88-market-list td:nth-child(5)::before { content: "Market cap"; }
  .sx88-market-list td:nth-child(6)::before { content: "Volume"; }

  .sx88-row-asset {
    width: 100% !important;
    gap: 10px !important;
  }

  .sx88-row-asset img {
    width: 34px !important;
    height: 34px !important;
    flex: 0 0 34px !important;
  }

  .sx88-row-asset > span {
    min-width: 0 !important;
  }

  .sx88-row-asset strong {
    max-width: 145px !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
  }
}

@media (max-width: 370px) {
  body.sx92-markets-route .sx88-markets,
  body[data-sx88-route="markets"] .sx88-markets {
    padding-right: 10px !important;
    padding-left: 10px !important;
  }

  .sx88-market-list tbody tr {
    padding-right: 13px !important;
    padding-left: 13px !important;
  }

  .sx88-row-asset strong {
    max-width: 112px !important;
  }
}
