/* Records: free vertical space for NFT cards on mobile. */
@media (max-width: 800px) {
  .certhis-history .certhis-history__summary { display: none !important; }
  .certhis-history .certhis-history__toolbar { margin-top: 16px; }
}

@media (max-width: 800px) {
  .certhis-history .certhis-history__continue {
    width: 112px;
    min-height: 26px;
    padding: 0 16px;
    justify-self: center;
    font-size: 11px;
  }
}

@media (max-width: 800px) {
  .certhis-history .certhis-history__row { padding-block: 10px; row-gap: 10px; }
  .yuga-home--member .certhis-history .certhis-history__row { padding-block: 10px; }
}

/* Compact mobile Records layout so more NFT cards fit in view. */
@media (max-width: 800px) {
  .yuga-home--member .yuga-member-dialog .is-records .certhis-dashboard__workspace > .certhis-history__content { padding: 10px 12px; }
  .yuga-home--member .certhis-history .certhis-history__heading p { margin-top: 4px; font-size: 10px; }
  .yuga-home--member .certhis-history .certhis-history__title svg { width: 18px; height: 20px; }
  .yuga-home--member .certhis-history .certhis-history__heading h1 { font-size: 14px; }
  .yuga-home--member .certhis-history .certhis-history__toolbar { margin-top: 8px; padding-bottom: 6px; }
  .yuga-home--member .certhis-history .certhis-history__filters button { min-height: 30px; padding-inline: 11px; font-size: 10px; }
  .yuga-home--member .certhis-history .certhis-history__row { min-height: 0; padding: 8px 10px; margin-block: 5px; row-gap: 6px; }
  .yuga-home--member .certhis-history .certhis-history__product > img { width: 36px; height: 36px; }
  .yuga-home--member .certhis-history .certhis-history__product { gap: 8px; }
  .yuga-home--member .certhis-history .certhis-history__product h2 { font-size: 11px; line-height: 1.25; }
  .yuga-home--member .certhis-history .certhis-history__product span { margin-top: 3px; font-size: 8px; }
  .yuga-home--member .certhis-history .certhis-history__status { padding: 5px 7px; font-size: 9px; }
  .yuga-home--member .certhis-history .certhis-history__financials dt { margin-bottom: 3px; font-size: 8px; }
  .yuga-home--member .certhis-history .certhis-history__financials dd { font-size: 11px; line-height: 1.3; }
  .yuga-home--member .certhis-history .certhis-history__financials dd small { display: inline; margin-top: 0; font-size: 7px; }
  .yuga-home--member .certhis-history .certhis-history__financials > div > small { margin-top: 2px; font-size: 7px; }
  .yuga-home--member .certhis-history .certhis-history__continue { min-height: 24px; width: 100px; justify-self: center; font-size: 10px; }
}

/* Keep the mobile brand outside the bounded, scrollable Records list. */
@media (max-width: 800px) {
  .yuga-home--member .yuga-member-dialog > .yuga-member-dialog__frame.is-records { display: flex; flex-direction: column; overflow: hidden; }
  .yuga-home--member .yuga-member-dialog__frame.is-records > .yuga-member-mobile-brand { flex: 0 0 auto; }
  .yuga-home--member .yuga-member-dialog .is-records > .certhis.certhis--embedded { flex: 1 1 0; height: 0; min-height: 0; overflow: hidden; }
  .yuga-home--member .yuga-member-dialog .is-records .certhis-history,
  .yuga-home--member .yuga-member-dialog .is-records .certhis-dashboard__workspace { height: 100%; min-height: 0; overflow: hidden; }
  .yuga-home--member .certhis-history .certhis-history__heading { flex: 0 0 auto; }
  .yuga-home--member .certhis-history .certhis-history__ledger { flex: 1 1 0; min-height: 0; overflow: hidden; }
  .yuga-home--member .certhis-history .certhis-history__ledger-scroll { flex: 1 1 0; min-height: 0; overflow-y: auto; touch-action: pan-y; -webkit-overflow-scrolling: touch; }
}
