/* Current wallet, tier and salary surfaces only. Other pages keep their theme. */

/* Keep the two purchase counts readable without changing other summaries. */
.purchase-theme .purchase-app .plan-section .shared-opportunity-metrics {
  display: grid;
  gap: 7px;
}
.purchase-theme .purchase-app .plan-section .shared-opportunity-metrics .shared-opportunity-top {
  align-items: baseline;
}
.purchase-theme
  .purchase-app
  .plan-section
  .shared-opportunity-metrics
  .shared-opportunity-top
  + .shared-opportunity-top {
  padding-top: 7px;
  border-top: 1px solid #e1eafa;
}
.purchase-theme
  .purchase-app
  .plan-section
  .shared-opportunity-metrics
  .shared-opportunity-top
  > span {
  flex: 1 1 0;
  min-width: 0;
  overflow-wrap: anywhere;
}
.purchase-theme .purchase-app .plan-section .shared-opportunity-metrics strong {
  flex-shrink: 0;
}

/* Grade indicators and count spacing are restricted to current purchase cards. */
.purchase-theme .purchase-app .plan-section .latest-tier-grid .product-card.level-locked {
  border-color: #e1e7f2;
  background: #f8faff;
}
.purchase-theme .purchase-app .plan-section .latest-tier-grid .level-locked .tier-price {
  color: #71819a;
}
.purchase-theme .purchase-app .plan-section .latest-tier-grid .level-locked .selection-check {
  visibility: hidden;
}
.purchase-theme .purchase-app .plan-section .latest-tier-grid .level-locked .tier-today {
  align-items: flex-start;
}
.purchase-theme .purchase-app .plan-section .latest-tier-grid [data-tier-today-label] {
  flex: 1 1 0;
  min-width: 0;
  overflow-wrap: anywhere;
}
.purchase-theme .purchase-app .plan-section .latest-tier-grid [data-tier-today-count],
.purchase-theme .purchase-app .plan-section .latest-tier-grid [data-tier-remaining] {
  flex-shrink: 0;
}
.purchase-theme .purchase-app .plan-section .latest-tier-grid .tier-unlock-label {
  flex: 1 1 0;
  min-width: 0;
  max-width: 60%;
  color: #657a9b;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.6;
  text-align: end;
  overflow-wrap: anywhere;
}
.purchase-theme .purchase-app .plan-section .latest-tier-grid [data-tier-today-count][hidden],
.purchase-theme .purchase-app .plan-section .latest-tier-grid [data-tier-lock][hidden] {
  display: none;
}
.purchase-theme .purchase-unlock-note {
  margin: 10px 0 0;
  color: #6c82a4;
  font-size: 11px;
  line-height: 1.8;
  overflow-wrap: anywhere;
}

.purchase-theme .latest-tier-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.purchase-theme .latest-tier-grid .product-card {
  min-height: 176px;
  padding: 15px 13px 13px;
}
.purchase-theme .latest-tier-grid .tier-brand {
  white-space: normal;
  overflow-wrap: anywhere;
  line-height: 1.55;
}
.purchase-theme .latest-tier-grid .tier-price {
  margin-top: 15px;
  font-size: 28px;
}
.purchase-theme .latest-tier-grid .tier-status {
  padding-right: 0;
  margin-top: 7px;
}
.purchase-theme .latest-tier-grid .selection-check {
  top: 11px;
  right: 10px;
  bottom: auto;
  width: 11px;
  height: 11px;
}
.purchase-theme .latest-tier-grid .tier-brand {
  padding-right: 8px;
}
.purchase-theme .tier-opportunities {
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 100%;
  min-width: 0;
  margin-top: 13px;
  padding-top: 10px;
  border-top: 1px solid #e9eff9;
  color: #6c82a4;
  font-size: 10px;
  line-height: 1.6;
}
.purchase-theme .tier-opportunities > strong {
  color: #5c789f;
  font-size: 11px;
  font-weight: 400;
}
.purchase-theme .tier-opportunities b {
  margin-right: 2px;
  color: #466eae;
  font-family: 'Segoe UI', sans-serif;
  font-size: 15px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}
.purchase-theme .purchase-account-limits {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin: 15px 0 0;
  padding: 13px 0;
  border: 1px solid #e5ecfa;
  border-radius: 11px;
  background: #f8faff;
}
.purchase-theme .purchase-account-limits > div {
  min-width: 0;
  padding: 0 6px;
  text-align: center;
}
.purchase-theme .purchase-account-limits > div + div {
  border-left: 1px solid #e4ecfa;
}
.purchase-theme .purchase-account-limits dt {
  color: #5c789f;
  font-size: 10px;
  line-height: 1.7;
  overflow-wrap: anywhere;
}
.purchase-theme .purchase-account-limits dd {
  margin: 5px 0 0;
  color: #6c82a4;
  font-size: 10px;
  line-height: 1.5;
}
.purchase-theme .purchase-account-limits b {
  margin-right: 2px;
  color: #567db9;
  font-family: 'Segoe UI', sans-serif;
  font-size: 20px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}
.purchase-theme .plan-details .opportunity-note {
  font-size: 11px;
  line-height: 1.9;
  margin-top: 12px;
  overflow-wrap: anywhere;
}
.purchase-theme .plan-details .opportunity-note b {
  font-family: 'Segoe UI', sans-serif;
  font-weight: 500;
}

.latest-market-support .support-income-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
  gap: 10px;
  margin-top: 0;
}
.latest-market-support .support-income-card {
  display: flex;
  flex-direction: column;
  gap: 0;
  min-width: 0;
  min-height: 0;
  margin: 0;
  padding: 13px 12px 13px;
  border: 1px solid #dce7fc;
  border-radius: 16px;
  background: linear-gradient(155deg, #fff 30%, #f5f8ff);
  box-shadow: 0 4px 14px #315ca405;
}
.latest-market-support .support-card-top {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 7px;
  min-height: 27px;
}
.latest-market-support .support-card-top h3 {
  margin: 0;
  color: #254670;
  font-size: 14px;
  font-weight: 650;
  line-height: 1.5;
  white-space: nowrap;
}
.latest-market-support .support-icon {
  flex: 0 0 26px;
  width: 26px;
  height: 26px;
  border-radius: 9px;
}
.latest-market-support .support-icon svg {
  width: 15px;
  height: 15px;
}
.latest-market-support .support-rate,
.latest-market-support .support-month .support-amount {
  display: flex;
  align-items: baseline;
  align-self: auto;
  gap: 3px;
  min-width: 0;
  min-height: 38px;
  margin: 9px 0 0;
  color: #416fc2;
}
.latest-market-support .support-rate > strong,
.latest-market-support .support-month .support-amount > strong {
  display: inline-flex;
  align-items: baseline;
  gap: 3px;
  color: #416fc2;
  font-family: 'Segoe UI', sans-serif;
  font-size: 36px;
  font-weight: 650;
  line-height: 1.15;
  letter-spacing: -0.7px;
}
.latest-market-support .support-rate > strong > small,
.latest-market-support .support-month .support-amount > small {
  font-size: 17px;
  font-weight: 500;
  letter-spacing: 0;
}
.latest-market-support .support-condition,
.latest-market-support .support-month .support-threshold {
  align-self: stretch;
  min-width: 0;
  min-height: 42px;
  margin: 6px 0 0;
  text-align: left;
  color: #5c789f;
  font-size: 11px;
  line-height: 1.7;
  overflow-wrap: anywhere;
}
.latest-market-support .support-metric {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-width: 0;
  min-height: 39px;
  margin-top: 3px;
}
.latest-market-support .support-stat-row {
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  gap: 3px;
}
.latest-market-support .support-stat {
  color: #5c789f;
  font-size: 11px;
}
.latest-market-support .support-stat b {
  margin-inline: 3px;
  color: #416fc2;
  font-size: 12px;
}
.latest-market-support .support-status {
  color: #6c82a4;
  font-size: 10px;
}
.latest-market-support .support-month .support-progress {
  width: 100%;
  margin-top: 0;
}
.latest-market-support .support-progress-caption {
  align-items: flex-start;
  flex-direction: column;
  gap: 2px;
  margin-top: 4px;
  color: #5c789f;
  font-size: 10px;
  line-height: 1.6;
}
.latest-market-support .support-progress-caption > span:first-child {
  max-width: 100%;
  white-space: normal;
  overflow-wrap: anywhere;
}
.latest-market-support .support-card-bottom,
.latest-market-support .support-month-bottom {
  display: block;
  min-width: 0;
  margin-top: 9px;
  padding-top: 9px;
  border-top: 1px solid #e5edfc;
}
.latest-market-support .support-claim-summary {
  display: block;
  min-width: 0;
}
.latest-market-support .support-available {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  margin: 0;
  color: #5c789f;
  font-size: 11px;
  line-height: 1.6;
}
.latest-market-support .support-available > strong {
  display: flex;
  align-items: baseline;
  gap: 3px;
  color: #416fc2;
  font-family: 'Segoe UI', sans-serif;
  font-size: 12px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}
.latest-market-support .support-available > strong > small {
  font-size: 12px;
  font-weight: 500;
}
.latest-market-support .support-available b {
  margin-inline: 0;
  color: #416fc2;
  font-size: 22px;
  font-weight: 600;
  line-height: 1.35;
  overflow-wrap: anywhere;
}
.latest-market-support .support-income-card .support-claim-button,
.latest-market-support .support-month-bottom .support-claim-button {
  width: 100%;
  min-width: 0;
  min-height: 44px;
  margin: 9px 0 0;
  padding: 8px 3px;
  font-size: 12px;
  white-space: normal;
  overflow-wrap: anywhere;
}
.recharge-page .usdt-estimate-summary .usdt-total-credit {
  margin-top: 3px;
  padding-top: 13px;
  border-top: 1px solid #e1eafa;
}
.recharge-page .usdt-estimate-summary .usdt-total-credit dt {
  color: #5c789f;
  font-weight: 500;
}
.recharge-page .usdt-estimate-summary .usdt-total-credit dd {
  color: #416db5;
  font-size: 20px;
  font-weight: 600;
}

@media (max-width: 360px) {
  .purchase-theme .latest-tier-grid .product-card {
    padding: 14px 11px 12px;
    min-height: 174px;
  }
  .purchase-theme .latest-tier-grid .tier-brand {
    font-size: 11px;
    gap: 4px;
  }
  .purchase-theme .latest-tier-grid .tier-price {
    font-size: 27px;
  }
  .purchase-theme .tier-opportunities {
    font-size: 9px;
  }
  .purchase-theme .purchase-account-limits > div {
    padding: 0 3px;
  }
  .purchase-theme .purchase-account-limits dt {
    font-size: 9px;
  }
  .purchase-theme .purchase-account-limits b {
    font-size: 18px;
  }
  .latest-market-support .support-income-grid {
    gap: 8px;
  }
  .latest-market-support .support-income-card {
    padding: 12px 10px;
    border-radius: 14px;
  }
  .latest-market-support .support-card-top {
    gap: 6px;
  }
  .latest-market-support .support-card-top h3 {
    font-size: 13px;
  }
  .latest-market-support .support-rate > strong,
  .latest-market-support .support-month .support-amount > strong {
    font-size: 34px;
  }
  .latest-market-support .support-available b {
    font-size: 21px;
  }
  .recharge-page .usdt-estimate-summary .usdt-total-credit dd {
    font-size: 19px;
  }
}

/* Compact, aligned wallet cards: one header, one balance and one footer row. */
.activity-app .my-page .wallet-grid-dual {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  align-items: stretch;
}
.activity-app .my-page .wallet-grid-dual .wallet-card {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  min-width: 0;
  padding: 9px 13px 7px;
  border: 1px solid #dfe8f9;
  border-radius: 15px;
  background: linear-gradient(155deg, #fff 38%, #f4f7ff);
  box-shadow: 0 4px 15px #365c9e05;
}
.activity-app .my-page .wallet-grid-dual .wallet-label {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  gap: 7px;
  width: 100%;
  min-height: 44px;
  padding: 0;
  color: #365782;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.5;
  white-space: nowrap;
}
.activity-app .my-page .wallet-grid-dual .wallet-symbol {
  display: grid;
  place-items: center;
  flex: 0 0 27px;
  width: 27px;
  height: 27px;
  border-radius: 9px;
  background: #ecf3ff;
  color: #7596cf;
}
.activity-app .my-page .wallet-grid-dual .wallet-symbol svg {
  width: 17px;
  height: 17px;
}
.activity-app .my-page .wallet-grid-dual .balance {
  display: flex;
  align-items: baseline;
  justify-content: flex-start;
  gap: 3px;
  min-width: 0;
  width: 100%;
  margin: 1px 0 0;
  color: #2f5488;
  line-height: 1.35;
}
.activity-app .my-page .wallet-grid-dual .balance strong {
  flex: 0 1 auto;
  min-width: 0;
  max-width: calc(100% - 13px);
  font-size: 28px;
  font-weight: 650;
  letter-spacing: -0.6px;
  white-space: normal;
  overflow-wrap: anywhere;
}
.activity-app .my-page .wallet-grid-dual .balance small {
  flex: 0 0 auto;
  font-size: 12px;
}
.activity-app .my-page .wallet-grid-dual .wallet-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
  min-width: 0;
  margin-top: 5px;
  border-top: 1px solid #edf2fb;
}
.activity-app .my-page .wallet-grid-dual .wallet-use {
  color: #6b81a1;
  font-size: 11px;
  line-height: 1.7;
  white-space: nowrap;
}
.activity-app .my-page .wallet-grid-dual .wallet-action {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  flex: 0 0 auto;
  gap: 2px;
  width: auto;
  min-width: 53px;
  min-height: 44px;
  margin: 0;
  padding: 7px 0 7px 6px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #436fb3;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.6;
  white-space: nowrap;
}
.activity-app .my-page .wallet-grid-dual .wallet-action svg {
  width: 13px;
  height: 13px;
}
.activity-app .my-page .wallet-grid-dual .wallet-action:hover {
  color: #2858ed;
  background: #edf3ff;
}
@media (max-width: 360px) {
  .activity-app .my-page .wallet-grid-dual {
    gap: 8px;
  }
  .activity-app .my-page .wallet-grid-dual .wallet-card {
    padding: 8px 10px 6px;
  }
  .activity-app .my-page .wallet-grid-dual .wallet-label {
    gap: 5px;
    font-size: 13px;
  }
  .activity-app .my-page .wallet-grid-dual .balance strong {
    font-size: 26px;
  }
  .activity-app .my-page .wallet-grid-dual .wallet-use {
    font-size: 10px;
  }
}

/* Customer-facing activity rules. Every selector is confined to this dialog. */
#rulesDialog.customer-rules-dialog {
  width: 440px;
  max-width: calc(100vw - 28px);
  max-height: 88vh;
  max-height: min(88dvh, calc(100dvh - 28px));
  box-sizing: border-box;
  padding: 0;
  overflow: hidden;
  border: 1px solid #dce6f7;
  border-radius: 20px;
  background: #fff;
  color: #25456f;
  box-shadow: 0 24px 90px #18355a38;
}
#rulesDialog.customer-rules-dialog[open] {
  display: flex;
  flex-direction: column;
}
#rulesDialog .customer-rules-header {
  position: relative;
  display: flex;
  flex: 0 0 auto;
  align-items: flex-start;
  min-width: 0;
  padding: 23px 64px 17px 20px;
  border-bottom: 1px solid #e8eef9;
  background: #fff;
}
#rulesDialog .customer-rules-header h2 {
  margin: 0;
  color: #17385f;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.45;
  letter-spacing: 0;
}
#rulesDialog .customer-rules-header p {
  margin: 5px 0 0;
  color: #60789b;
  font-size: 14px;
  line-height: 1.6;
}
#rulesDialog .customer-rules-close {
  position: absolute;
  top: 13px;
  right: 9px;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  min-height: 44px;
  padding: 0;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: #7186a5;
  font-size: 27px;
  line-height: 1;
}
#rulesDialog .customer-rules-close:hover {
  background: #f1f5fc;
  color: #315f9a;
}
#rulesDialog .customer-rules-body {
  flex: 1 1 auto;
  min-width: 0;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: #c3d3ed transparent;
  padding: 0 20px 22px;
  font-size: 14.5px;
  line-height: 1.75;
  -webkit-overflow-scrolling: touch;
}
#rulesDialog .customer-rules-body:focus-visible {
  outline: 2px solid #6288ff;
  outline-offset: -3px;
  border-radius: 4px;
}
#rulesDialog .customer-rules-section {
  min-width: 0;
  margin: 0;
  padding: 20px 0;
  border-bottom: 1px solid #e8eef9;
}
#rulesDialog .customer-rules-section h3 {
  margin: 0 0 13px;
  color: #21446f;
  font-size: 16px;
  font-weight: 650;
  line-height: 1.6;
}
#rulesDialog .customer-rules-body p {
  margin: 0;
  color: #526d92;
  font-size: 14.5px;
  line-height: 1.8;
  overflow-wrap: anywhere;
}
#rulesDialog .customer-rules-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 0 0 13px;
  padding: 0;
  list-style: none;
}
#rulesDialog .customer-rules-steps li {
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 7px;
  min-width: 0;
  color: #355b8b;
  font-size: 14px;
  line-height: 1.6;
  text-align: center;
}
#rulesDialog .customer-rules-steps i {
  display: grid;
  place-items: center;
  width: 29px;
  height: 29px;
  border: 1px solid #dfe9fc;
  border-radius: 10px;
  background: #edf3ff;
  color: #315ee9;
  font-style: normal;
  font-size: 14px;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
}
#rulesDialog .customer-rules-products {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 5px;
  margin: 0 0 14px;
}
#rulesDialog .customer-rules-products > span {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  padding: 7px 2px;
  border-radius: 8px;
  background: #f4f7fd;
  color: #526d92;
  font-size: 13px;
  line-height: 1.65;
  text-align: center;
  white-space: nowrap;
}
#rulesDialog .customer-rules-products b {
  color: #315782;
  font-size: 13.5px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
#rulesDialog .customer-rules-timing {
  padding: 3px 12px;
  border: 1px solid #e0e9fc;
  border-radius: 12px;
  background: #f4f7ff;
}
#rulesDialog .customer-rules-timing > p {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 0;
  font-size: 14px;
  line-height: 1.7;
}
#rulesDialog .customer-rules-timing > p + p {
  border-top: 1px solid #e3ebfa;
}
#rulesDialog .customer-rules-timing span {
  flex: 0 0 auto;
  color: #567098;
}
#rulesDialog .customer-rules-timing strong {
  color: #2e578f;
  font-size: 14px;
  font-weight: 600;
  text-align: right;
}
#rulesDialog .customer-rules-body .customer-rules-note {
  margin-top: 11px;
  color: #617694;
  font-size: 14px;
  line-height: 1.8;
}
#rulesDialog .customer-rules-table-wrap {
  min-width: 0;
  border: 1px solid #dfe8f8;
  border-radius: 11px;
  overflow: hidden;
}
#rulesDialog .customer-rules-table {
  width: 100%;
  min-width: 0;
  margin: 0;
  border: 0;
  border-collapse: collapse;
  table-layout: fixed;
  text-align: center;
}
#rulesDialog .customer-rules-table th,
#rulesDialog .customer-rules-table td {
  padding: 10px 2px;
  border: 0;
  font-size: 14.5px;
  font-weight: 500;
  line-height: 1.6;
  vertical-align: middle;
}
#rulesDialog .customer-rules-table .rules-level-col {
  width: 18%;
}
#rulesDialog .customer-rules-table .rules-rate-col {
  width: 16%;
}
#rulesDialog .customer-rules-table .rules-base-col {
  width: 22%;
}
#rulesDialog .customer-rules-table .rules-cap-col {
  width: 28%;
}
#rulesDialog .customer-rules-table thead th {
  background: #edf3ff;
  color: #46658c;
  font-size: 13px;
  font-weight: 600;
  white-space: normal;
  word-break: keep-all;
  overflow-wrap: normal;
}
#rulesDialog .customer-rules-table tbody th {
  color: #315782;
  font-size: 13px;
  text-align: center;
}
#rulesDialog .customer-rules-table tbody td {
  color: #28518a;
  font-variant-numeric: tabular-nums;
}
#rulesDialog .customer-rules-table tbody tr + tr > * {
  border-top: 1px solid #e8eef9;
}
#rulesDialog .customer-rules-table tbody th > span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  white-space: nowrap;
}
#rulesDialog .customer-rules-table img {
  flex: 0 0 14px;
  width: 14px;
  height: 14px;
  object-fit: contain;
}
#rulesDialog .customer-rules-list {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}
#rulesDialog .customer-rules-list li {
  min-width: 0;
  padding-left: 12px;
  border-left: 2px solid #dce6ff;
}
#rulesDialog .customer-rules-list b {
  display: block;
  margin: 0 0 3px;
  color: #315988;
  font-size: 14.5px;
  font-weight: 650;
  line-height: 1.65;
}
#rulesDialog .customer-rules-list span {
  display: block;
  color: #526d92;
  font-size: 14.5px;
  line-height: 1.8;
  overflow-wrap: anywhere;
}
#rulesDialog .customer-rules-body .customer-rules-example {
  margin: 13px 0 0;
  padding: 11px 12px;
  border-radius: 10px;
  background: #f3f7ff;
  color: #526d92;
  font-size: 14px;
  line-height: 1.85;
}
#rulesDialog .customer-rules-example b {
  color: #355f96;
  font-weight: 650;
}
#rulesDialog .customer-rules-upgrades {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
}
#rulesDialog .customer-rules-upgrades > p {
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  padding: 10px 2px;
  border-radius: 10px;
  background: #f3f7ff;
  font-size: 14px;
  line-height: 1.65;
}
#rulesDialog .customer-rules-upgrades span {
  color: #587298;
  font-size: 14px;
}
#rulesDialog .customer-rules-upgrades strong {
  color: #315989;
  font-size: 14px;
  font-weight: 650;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
#rulesDialog .customer-rules-details-group {
  display: grid;
  gap: 10px;
  padding-top: 20px;
}
#rulesDialog .customer-rules-details {
  min-width: 0;
  border: 1px solid #e0e8f7;
  border-radius: 12px;
  background: #fff;
  overflow: hidden;
}
#rulesDialog .customer-rules-details > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 52px;
  box-sizing: border-box;
  margin: 0;
  padding: 13px 14px;
  color: #335c90;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.7;
  list-style: none;
  cursor: pointer;
}
#rulesDialog .customer-rules-details > summary::-webkit-details-marker {
  display: none;
}
#rulesDialog .customer-rules-details > summary::marker {
  content: '';
}
#rulesDialog .customer-rules-details > summary svg {
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
  fill: none;
  stroke: #6784b0;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.15s ease;
}
#rulesDialog .customer-rules-details[open] > summary {
  background: #f4f7ff;
}
#rulesDialog .customer-rules-details[open] > summary svg {
  transform: rotate(180deg);
}
#rulesDialog .customer-rules-detail-body {
  padding: 13px 14px 15px;
  border-top: 1px solid #e5ecf9;
}
#rulesDialog .customer-rules-detail-body p {
  font-size: 14px;
  line-height: 1.85;
}
#rulesDialog .customer-rules-detail-body p + p {
  margin-top: 10px;
}
#rulesDialog .customer-rules-wallets {
  display: grid;
  gap: 12px;
  margin: 0 0 12px;
  padding: 0;
}
#rulesDialog .customer-rules-wallets dt {
  margin: 0 0 3px;
  color: #315987;
  font-size: 14px;
  font-weight: 650;
  line-height: 1.7;
}
#rulesDialog .customer-rules-wallets dd {
  margin: 0;
  color: #526d92;
  font-size: 14px;
  line-height: 1.85;
}
#rulesDialog .customer-rules-footer {
  flex: 0 0 auto;
  margin: 0;
  padding: 15px 20px max(19px, env(safe-area-inset-bottom));
  border-top: 1px solid #e4ebf8;
  background: #fff;
}
#rulesDialog .customer-rules-footer .primary-button {
  display: block;
  width: 100%;
  min-height: 48px;
  margin: 0;
  padding: 12px 16px;
  border-radius: 11px;
  background: #2e57f5;
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
}
#rulesDialog .customer-rules-close:focus-visible,
#rulesDialog .customer-rules-footer button:focus-visible,
#rulesDialog .customer-rules-details > summary:focus-visible {
  outline: 2px solid #6488ff;
  outline-offset: 2px;
}
@media (max-width: 360px) {
  #rulesDialog .customer-rules-header {
    padding-left: 18px;
    padding-right: 59px;
  }
  #rulesDialog .customer-rules-body {
    padding-right: 18px;
    padding-left: 18px;
  }
  #rulesDialog .customer-rules-footer {
    padding-right: 18px;
    padding-left: 18px;
  }
  #rulesDialog .customer-rules-timing {
    padding-right: 10px;
    padding-left: 10px;
  }
  #rulesDialog .customer-rules-timing > p {
    flex-direction: column;
    gap: 2px;
  }
  #rulesDialog .customer-rules-timing strong {
    text-align: left;
  }
  #rulesDialog .customer-rules-upgrades {
    gap: 5px;
  }
  #rulesDialog .customer-rules-table thead th {
    font-size: 12px;
  }
  #rulesDialog .customer-rules-table tbody th {
    font-size: 12px;
  }
}
@media (max-height: 480px) {
  #rulesDialog.customer-rules-dialog {
    max-height: calc(100vh - 16px);
    max-height: calc(100dvh - 16px);
    overflow-y: auto;
  }
  #rulesDialog .customer-rules-header,
  #rulesDialog .customer-rules-body,
  #rulesDialog .customer-rules-footer {
    flex: 0 0 auto;
  }
  #rulesDialog .customer-rules-body {
    overflow: visible;
  }
}
@media (prefers-reduced-motion: reduce) {
  #rulesDialog .customer-rules-details > summary svg {
    transition: none;
  }
}

/* Display-only progress sample; actual claim calculations remain unchanged. */
.latest-market-support .support-progress[data-preview='true'] > span {
  background: #7091f6;
}
.latest-market-support
  .support-progress[data-preview='true']
  + .support-progress-caption
  .support-status {
  color: #6c82a4;
}

/* Membership summary: readable table, short rules and a separate footer. */
#levelsDialog.levels-compact-dialog {
  width: 440px;
  max-width: calc(100vw - 28px);
  max-height: 88vh;
  max-height: min(88dvh, calc(100dvh - 28px));
  box-sizing: border-box;
  padding: 0;
  overflow: hidden;
  border: 1px solid #dce6f7;
  border-radius: 20px;
  background: #fff;
  color: #25456f;
}
#levelsDialog.levels-compact-dialog[open] {
  display: flex;
  flex-direction: column;
}
#levelsDialog .levels-dialog-head {
  position: relative;
  flex: 0 0 auto;
  padding: 20px 62px 16px 20px;
  border-bottom: 1px solid #e8eef9;
}
#levelsDialog .levels-dialog-head h2 {
  margin: 0;
  color: #17385f;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.45;
}
#levelsDialog .levels-dialog-head .dialog-close {
  top: 9px;
  right: 8px;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin: 0;
  padding: 0;
  color: #7186a5;
  font-size: 27px;
}
#levelsDialog .levels-dialog-body {
  flex: 1 1 auto;
  min-width: 0;
  min-height: 0;
  overflow: auto;
  overscroll-behavior: contain;
  padding: 16px 20px 18px;
  font-size: 14px;
  line-height: 1.7;
  scrollbar-width: thin;
  scrollbar-color: #c3d3ed transparent;
}
#levelsDialog .levels-table-wrap {
  min-width: 0;
  overflow: hidden;
  border: 1px solid #dfe8f8;
  border-radius: 11px;
}
#levelsDialog .levels-table {
  width: 100%;
  min-width: 0;
  margin: 0;
  border: 0;
  border-collapse: collapse;
  table-layout: fixed;
  text-align: center;
}
#levelsDialog .levels-name-col {
  width: 18%;
}
#levelsDialog .levels-rate-col {
  width: 16%;
}
#levelsDialog .levels-base-col {
  width: 22%;
}
#levelsDialog .levels-limit-col {
  width: 28%;
}
#levelsDialog .levels-table th,
#levelsDialog .levels-table td {
  padding: 9px 2px;
  border: 0;
  color: #2d5185;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.6;
  vertical-align: middle;
}
#levelsDialog .levels-table thead th {
  background: #edf3ff;
  color: #46658c;
  font-size: 12.5px;
  font-weight: 600;
  word-break: keep-all;
}
#levelsDialog .levels-table tbody tr + tr > * {
  border-top: 1px solid #e8eef9;
}
#levelsDialog .levels-table tbody th {
  font-size: 13px;
}
#levelsDialog .level-title {
  flex-direction: row;
  gap: 2px;
}
#levelsDialog .level-badge {
  width: 14px;
  height: 14px;
  flex: 0 0 14px;
}
#levelsDialog .levels-table-note {
  margin: 9px 0 15px;
  color: #60789b;
  font-size: 12.5px;
  line-height: 1.7;
}
#levelsDialog .levels-upgrade {
  margin: 0 0 16px;
  padding: 0;
}
#levelsDialog .levels-upgrade h3 {
  margin: 0 0 9px;
  color: #315782;
  font-size: 14px;
  font-weight: 650;
  line-height: 1.6;
}
#levelsDialog .levels-upgrade-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
}
#levelsDialog .levels-upgrade-grid p {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  min-width: 0;
  margin: 0;
  padding: 9px 2px;
  border-radius: 10px;
  background: #f3f7ff;
  color: #587298;
  font-size: 13px;
  line-height: 1.6;
}
#levelsDialog .levels-upgrade-grid b {
  color: #315989;
  font-size: 14px;
  font-weight: 650;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
#levelsDialog .levels-key-rules {
  margin: 0;
  padding: 0;
}
#levelsDialog .levels-key-rules p {
  margin: 0;
  color: #526d92;
  font-size: 14px;
  line-height: 1.8;
  overflow-wrap: anywhere;
}
#levelsDialog .levels-key-rules p + p {
  margin-top: 9px;
}
#levelsDialog .levels-key-rules b {
  margin-right: 7px;
  color: #315782;
  font-weight: 650;
}
#levelsDialog .levels-dialog-footer {
  flex: 0 0 auto;
  padding: 14px 20px max(18px, env(safe-area-inset-bottom));
  border-top: 1px solid #e4ebf8;
  background: #fff;
}
#levelsDialog .levels-dialog-footer .primary-button {
  display: block;
  width: 100%;
  min-height: 48px;
  margin: 0;
  padding: 12px 16px;
  border-radius: 11px;
  background: #2e57f5;
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
}
#levelsDialog .levels-dialog-body:focus-visible,
#levelsDialog .dialog-close:focus-visible,
#levelsDialog .levels-dialog-footer button:focus-visible {
  outline: 2px solid #6488ff;
  outline-offset: -2px;
}
@media (max-width: 360px) {
  #levelsDialog .levels-dialog-head {
    padding-left: 18px;
  }
  #levelsDialog .levels-dialog-body,
  #levelsDialog .levels-dialog-footer {
    padding-right: 18px;
    padding-left: 18px;
  }
  #levelsDialog .levels-table thead th {
    font-size: 12px;
  }
  #levelsDialog .levels-table tbody th {
    font-size: 12px;
  }
  #levelsDialog .levels-upgrade-grid {
    gap: 5px;
  }
}
@media (max-height: 480px) {
  #levelsDialog.levels-compact-dialog {
    max-height: calc(100dvh - 16px);
    overflow-y: auto;
  }
  #levelsDialog .levels-dialog-head,
  #levelsDialog .levels-dialog-body,
  #levelsDialog .levels-dialog-footer {
    flex: 0 0 auto;
  }
  #levelsDialog .levels-dialog-body {
    overflow: visible;
  }
}
