/* 2026-10-07 final density and responsive audit pass. */
body.modal-open .site-floating-actions,
body.store-modal-open .site-floating-actions {
  display: none !important;
}

.orders-section {
  padding-top: 42px !important;
  padding-bottom: 38px !important;
}

.orders-section .section-heading {
  margin-bottom: 14px !important;
}

.orders-section .section-heading h2 {
  max-width: 1180px;
  font-size: clamp(30px, 3.2vw, 48px) !important;
}

.board-toolbar {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto auto !important;
  min-height: 48px !important;
  margin-bottom: 12px !important;
  padding: 7px 9px 7px 14px !important;
}

.board-toolbar .button-more-orders {
  min-height: 34px !important;
  padding: 0 15px !important;
  color: #06120d !important;
  background: #31df81 !important;
  border-color: #31df81 !important;
  font-size: 12px !important;
  white-space: nowrap !important;
}

.order-rotation-note {
  margin: 9px 0 0 !important;
  font-size: 10px !important;
  line-height: 1.25 !important;
}

.orders-more-row {
  display: none !important;
}

@media (min-width: 761px) and (max-width: 1199px) {
  html body .order-card {
    grid-template-rows: auto auto auto minmax(38px, 1fr) auto auto !important;
    gap: 7px !important;
    padding: 11px !important;
  }

  html body .order-image {
    width: calc(100% + 22px) !important;
    margin: -11px -11px 0 !important;
    aspect-ratio: 16 / 9 !important;
  }

  html body .order-card-header {
    min-height: 34px !important;
  }

  html body .order-card h3 {
    font-size: clamp(16px, 1.8vw, 20px) !important;
  }

  html body .order-card > p {
    font-size: 11px !important;
    line-height: 1.3 !important;
  }
}

@media (min-width: 901px) {
  html body .commission-leaderboard-section + .path-section {
    grid-template-columns: minmax(250px, 0.34fr) minmax(0, 1.66fr) !important;
    padding-block: 38px !important;
  }

  html body .path-intro h2 {
    font-size: clamp(30px, 3vw, 42px) !important;
    line-height: 1.02 !important;
  }

  html body .path-intro > p:not(.eyebrow) {
    margin: 14px 0 18px !important;
    font-size: 14px !important;
    line-height: 1.5 !important;
  }

  html body .courses-section {
    padding-top: 40px !important;
    padding-bottom: 42px !important;
  }

  html body .price-card {
    min-height: 330px !important;
    padding: 17px !important;
  }

  html body .price-card ul {
    gap: 6px !important;
    margin: 12px 0 !important;
  }
}

.support-section {
  padding-top: 38px !important;
  padding-bottom: 38px !important;
}

.support-copy h2 {
  margin-top: 12px !important;
}

.support-copy > p {
  margin-top: 12px !important;
}

.site-footer {
  row-gap: 18px !important;
  padding-top: 22px !important;
  padding-bottom: 22px !important;
}

.site-footer .partner-thanks {
  padding: 12px 0 !important;
  gap: 12px !important;
}

.site-footer .partner-logo-row {
  gap: 7px !important;
}

.site-footer .risk-disclosure {
  padding-top: 14px !important;
}

.site-footer .risk-disclosure p {
  margin-top: 5px !important;
  line-height: 1.45 !important;
}

.payment-method-disclosure {
  min-width: 0;
}

.payment-method-disclosure > summary {
  display: none;
}

.payment-method-disclosure > .payment-method-card {
  height: 100%;
}

.store-category-select-wrap {
  display: none;
}

@media (min-width: 1025px) {
  html body.store-page .store-hero {
    width: calc(100% - clamp(40px, 4.4vw, 84px)) !important;
    max-width: 1760px !important;
    min-height: 0 !important;
    grid-template-columns: minmax(300px, 0.78fr) minmax(0, 1.22fr) !important;
    gap: 30px !important;
    padding: 34px 0 28px !important;
  }

  html body.store-page .store-hero-copy h1 {
    margin: 10px 0 10px !important;
    font-size: clamp(44px, 5vw, 70px) !important;
  }

  html body.store-page .store-hero-copy p {
    max-width: 680px !important;
    margin: 0 !important;
    line-height: 1.5 !important;
  }

  html body.store-page .store-benefit-panel {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    align-content: center !important;
    gap: 10px !important;
    min-height: 0 !important;
    padding: 12px !important;
  }

  html body.store-page .store-benefit-panel > div {
    min-height: 132px !important;
    padding: 16px 13px !important;
  }

  html body.store-page .store-section {
    padding-top: 34px !important;
    padding-bottom: 42px !important;
  }

  html body.store-page .store-section-head {
    margin-bottom: 18px !important;
  }

  html body.store-page .store-filter-bar {
    gap: 8px !important;
    margin-bottom: 16px !important;
  }

  html body.store-page .store-filter {
    min-height: 44px !important;
    padding: 6px 9px !important;
  }
}

@media (min-width: 761px) and (max-width: 1199px) {
  html body.store-page .store-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 11px !important;
  }

  html body.store-page .store-card-media {
    aspect-ratio: 4 / 3 !important;
  }

  html body.store-page .store-card-body {
    gap: 8px !important;
    padding: 10px !important;
  }

  html body.store-page .store-card h3 {
    min-height: 38px !important;
    font-size: 16px !important;
  }

  html body.store-page .store-card p {
    min-height: 36px !important;
    font-size: 12px !important;
    line-height: 1.35 !important;
  }

  html body.store-page .store-price-grid div {
    padding: 7px 5px !important;
  }
}

@media (max-width: 1024px) {
  html body.store-page .store-category-select-wrap {
    display: grid !important;
    grid-template-columns: auto minmax(0, 1fr) !important;
    align-items: center !important;
    gap: 10px !important;
    width: 100% !important;
    margin: 0 0 12px !important;
    padding: 9px 11px !important;
    color: #0f172a !important;
    background: linear-gradient(135deg, #effff6, #ffffff) !important;
    border: 1px solid #9de8bd !important;
    border-radius: 10px !important;
    font-size: 11px !important;
    font-weight: 850 !important;
    text-transform: uppercase !important;
    box-sizing: border-box !important;
  }

  html body.store-page .store-category-select {
    width: 100% !important;
    min-width: 0 !important;
    min-height: 42px !important;
    padding: 0 38px 0 12px !important;
    color: #0f172a !important;
    background: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 8px !important;
    font: inherit !important;
    font-size: 13px !important;
    font-weight: 750 !important;
    text-transform: none !important;
  }

  html body.store-page .store-filter-bar {
    display: none !important;
  }

  html body.store-page .store-section {
    padding-top: 16px !important;
  }

  html body.store-page .store-section-head {
    margin-bottom: 10px !important;
  }
}

@media (max-width: 760px) {
  html body .orders-section {
    padding-top: 18px !important;
    padding-bottom: 20px !important;
  }

  html body .orders-section .section-heading {
    margin-bottom: 8px !important;
  }

  html body .orders-section .section-heading h2 {
    font-size: clamp(21px, 5.7vw, 27px) !important;
  }

  html body .board-toolbar {
    grid-template-columns: minmax(0, 1fr) auto !important;
    gap: 7px !important;
    min-height: 0 !important;
    padding: 8px !important;
  }

  html body .board-status {
    font-size: 9px !important;
    line-height: 1.2 !important;
  }

  html body .board-legend {
    grid-column: 1 / -1 !important;
    justify-content: space-between !important;
    gap: 8px !important;
    font-size: 9px !important;
  }

  html body .board-toolbar .button-more-orders {
    min-height: 32px !important;
    padding: 0 10px !important;
    font-size: 10px !important;
  }

  html body .order-rotation-note {
    margin-top: 7px !important;
    text-align: left !important;
  }

  html body .courses-section {
    padding-top: 18px !important;
    padding-bottom: 22px !important;
  }

  html body .pricing-grid {
    gap: 9px !important;
  }

  html body .price-card {
    display: grid !important;
    grid-template-columns: minmax(92px, 0.62fr) minmax(0, 1.38fr) !important;
    grid-template-areas:
      "rank price"
      "features features"
      "actions actions" !important;
    gap: 9px 12px !important;
    padding: 13px !important;
  }

  html body .price-card .recommended-tag {
    grid-column: 1 / -1 !important;
  }

  html body .price-rank {
    grid-area: rank !important;
    align-self: center !important;
    gap: 7px !important;
  }

  html body .price-rank .rank-medal {
    width: 42px !important;
    height: 42px !important;
  }

  html body .price-rank-label::after {
    font-size: 12px !important;
  }

  html body .price-row {
    grid-area: price !important;
    align-self: center !important;
    justify-content: flex-end !important;
  }

  html body .price-row .price {
    font-size: clamp(27px, 7.2vw, 34px) !important;
  }

  html body .price-note {
    font-size: 10px !important;
  }

  html body .price-card ul {
    grid-area: features !important;
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 5px 12px !important;
  }

  html body .price-card li {
    font-size: 12px !important;
    line-height: 1.25 !important;
  }

  html body .price-actions {
    grid-area: actions !important;
    gap: 7px !important;
  }

  html body .price-actions .button {
    min-height: 38px !important;
    font-size: 12px !important;
  }

  html body .support-section {
    padding-top: 20px !important;
    padding-bottom: 22px !important;
  }

  html body .site-footer {
    gap: 12px !important;
    padding: 18px 14px !important;
  }

  html body .site-footer .footer-brand p {
    margin-top: 6px !important;
    line-height: 1.35 !important;
  }

  html body .site-footer .partner-thanks {
    gap: 8px !important;
    padding: 8px 0 !important;
  }

  html body .site-footer .partner-logo-row {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 5px !important;
  }

  html body .site-footer .partner-logo {
    min-width: 0 !important;
    min-height: 30px !important;
    padding: 4px !important;
    font-size: 8px !important;
  }

  html body .site-footer .risk-disclosure {
    padding-top: 8px !important;
  }

  html body .site-footer .risk-short {
    font-size: 10px !important;
    line-height: 1.35 !important;
  }

  html body #paymentModal .payment-modal-panel {
    padding: 18px 13px 16px !important;
  }

  html body #paymentModal .payment-summary {
    grid-template-columns: 1fr auto !important;
    gap: 7px !important;
    margin: 12px 0 !important;
  }

  html body #paymentModal .payment-summary > div {
    padding: 10px !important;
  }

  html body #paymentModal .payment-method-grid {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 8px !important;
  }

  html body #paymentModal .payment-method-disclosure {
    overflow: hidden !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 9px !important;
    background: #ffffff !important;
  }

  html body #paymentModal .payment-method-disclosure > summary {
    display: flex !important;
    min-height: 48px !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 10px !important;
    padding: 0 13px !important;
    color: #0f172a !important;
    background: linear-gradient(135deg, #f1fff6, #ffffff) !important;
    cursor: pointer !important;
    font-size: 14px !important;
    font-weight: 850 !important;
    list-style: none !important;
  }

  html body #paymentModal .payment-method-disclosure > summary::-webkit-details-marker {
    display: none !important;
  }

  html body #paymentModal .payment-method-disclosure > summary b {
    font-size: 22px !important;
    transition: transform 160ms ease !important;
  }

  html body #paymentModal .payment-method-disclosure[open] > summary b {
    transform: rotate(45deg) !important;
  }

  html body #paymentModal .payment-method-card {
    min-height: 0 !important;
    gap: 10px !important;
    padding: 13px !important;
    border: 0 !important;
    border-top: 1px solid #cbd5e1 !important;
    border-radius: 0 !important;
  }

  html body.store-page .store-card-media {
    aspect-ratio: 4 / 3 !important;
  }

  html body.store-page .store-card-body {
    gap: 6px !important;
    padding: 8px !important;
  }

  html body.store-page .store-card h3 {
    min-height: 32px !important;
    font-size: 13px !important;
  }

  html body.store-page .store-card p {
    min-height: 30px !important;
    font-size: 10px !important;
    line-height: 1.3 !important;
  }

  html body.store-page .store-more-quotes {
    min-height: 0 !important;
    gap: 10px !important;
    padding: 13px !important;
  }

  html body.store-page .store-more-quotes strong {
    font-size: 18px !important;
  }

  html body.store-page .store-more-quotes p {
    margin-top: 4px !important;
    font-size: 11px !important;
    line-height: 1.35 !important;
  }

  html body.store-page .store-more-quotes-button {
    min-height: 42px !important;
  }

  html body.store-page .store-main-image {
    max-height: 300px !important;
    aspect-ratio: 4 / 3 !important;
  }

  html body.store-page .store-detail-pricing-panel {
    gap: 9px !important;
    padding: 12px !important;
  }

  html body.store-page .store-detail-pricing-panel h2 {
    font-size: clamp(22px, 6vw, 28px) !important;
  }
}
