/* 2026-10-15: compact the homepage sell cards into three mobile columns. */
@media screen and (max-width: 600px) {
  #root #conversion .tpm-portal-section__inner {
    padding-bottom: 24px;
  }

  #root #conversion .tpm-portal-section__hd {
    margin-bottom: 14px;
  }

  #root #conversion .tpm-portal-section__bd {
    overflow: visible;
  }

  #root #conversion .tpm-portal-sell {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    width: 100%;
  }

  #root #conversion .tpm-portal-sell__card,
  #root #conversion .tpm-portal-sell__card:last-child:nth-child(odd) {
    box-sizing: border-box;
    flex: none;
    width: auto;
    min-width: 0;
    max-width: 100%;
    margin: 0 !important;
    padding: 10px 8px !important;
  }

  #root #conversion .tpm-portal-sell__card-content,
  #root #conversion .tpm-portal-sell__card-title {
    min-width: 0;
  }

  #root #conversion .tpm-portal-sell__tag {
    width: 18px;
    height: 18px;
    object-fit: contain;
  }

  #root #conversion .tpm-portal-sell__card-title {
    margin-top: 7px;
    font-size: 13px;
    line-height: 19px;
    overflow-wrap: anywhere;
  }

  #root #conversion .tpm-portal-sell__card-title p + p {
    display: none !important;
  }

  #root #conversion .tpm-portal-sell__card-ft {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 5px;
    margin-top: 9px;
  }

  #root #conversion .tpm-portal-sell__btn {
    box-sizing: border-box;
    width: 100%;
    min-width: 0;
    height: 32px;
    padding: 0 3px;
    font-size: 12px;
    line-height: 18px;
  }

  #root #conversion .tpm-portal-sell__link,
  #root #conversion .tpm-portal-sell__tip {
    max-width: 100%;
    margin-left: 0;
    font-size: 11px;
    line-height: 16px;
    white-space: normal;
    overflow-wrap: anywhere;
  }

  #root #conversion .tpm-portal-sell__link {
    display: none !important;
  }

  #root #conversion .tpm-portal-sell__link:after {
    width: 8px;
    height: 8px;
    margin-left: 4px;
  }
}

@media screen and (max-width: 350px) {
  #root #conversion .tpm-portal-sell {
    gap: 6px;
  }

  #root #conversion .tpm-portal-sell__card,
  #root #conversion .tpm-portal-sell__card:last-child:nth-child(odd) {
    padding: 9px 6px !important;
  }

  #root #conversion .tpm-portal-sell__card-title {
    font-size: 12px;
    line-height: 18px;
  }

  #root #conversion .tpm-portal-sell__link,
  #root #conversion .tpm-portal-sell__tip {
    font-size: 10px;
    line-height: 15px;
  }
}