.account-member-page .ri-header-inner {
  align-items: center;
  height: auto;
  padding: 10px 0;
}

.account-member-page .ri-header-meta {
  flex-wrap: wrap;
  justify-content: flex-end;
  max-width: min(100%, 460px);
}

.account-member-page .ri-logout-btn,
.account-member-page .ri-text-action {
  height: auto;
  min-height: 36px;
  padding: 8px 12px;
  white-space: normal;
  overflow-wrap: anywhere;
  line-height: 1.3;
  text-align: center;
}

.ac-intro h1,
.ac-intro p,
.mc-note,
.mc-benefits li,
.mc-bucket span,
.mc-bucket strong,
.mc-bucket small {
  overflow-wrap: anywhere;
}

.mc-note {
  margin: 14px 0 0;
  color: var(--ac-muted);
  font-size: 14px;
}

.mc-stats,
.mc-source-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.mc-stat,
.mc-bucket,
.mc-shared,
.mc-benefits,
.mc-history {
  background: var(--ac-surface);
  border: 1px solid var(--ac-line);
  border-radius: 14px;
  min-width: 0;
}

.mc-stat,
.mc-bucket {
  padding: 16px 18px;
}

.mc-stat span,
.mc-bucket span {
  display: block;
  color: var(--ac-muted);
  font-size: 13px;
  line-height: 1.4;
}

.mc-stat strong,
.mc-bucket strong,
.mc-shared > strong {
  display: block;
  margin-top: 8px;
  color: var(--ac-navy);
  font-size: 22px;
  font-weight: 600;
  line-height: 1.3;
}

.mc-stat-wide {
  grid-column: 1 / -1;
}

.mc-stat-wide strong {
  font-size: 36px;
  font-variant-numeric: tabular-nums;
}

.mc-bucket small {
  display: block;
  margin-top: 8px;
  color: var(--ac-muted);
  font-size: 13px;
  line-height: 1.45;
}

.mc-sources,
.mc-shared,
.mc-benefits,
.mc-actions {
  margin-top: 22px;
}

.mc-sources h2,
.mc-shared h2,
.mc-benefits h2,
.mc-actions h2,
.mc-history h2 {
  margin: 0 0 4px;
  font-size: 21px;
  font-weight: 600;
  color: var(--ac-navy);
  overflow-wrap: anywhere;
}

.mc-shared,
.mc-benefits {
  padding: 16px 18px 18px;
}

.mc-shared > strong {
  font-variant-numeric: tabular-nums;
}

.mc-benefits ul {
  margin: 10px 0 0;
  padding-left: 1.2em;
}

.mc-benefits li + li {
  margin-top: 8px;
}

.mc-reserved {
  margin: 14px 0 0;
  color: var(--ac-muted);
  font-size: 14px;
}

.mc-action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

.mc-action-row .ac-primary-link {
  margin-top: 0;
  white-space: normal;
  overflow-wrap: anywhere;
  text-align: center;
  line-height: 1.35;
}

.mc-history {
  margin-top: 22px;
  padding: 16px 0 4px;
}

.mc-history h2,
.mc-history .mc-note,
.mc-empty {
  margin-left: 18px;
  margin-right: 18px;
}

.mc-empty {
  margin-top: 8px;
  margin-bottom: 12px;
  color: var(--ac-muted);
}

.mc-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px 16px;
  padding: 14px 18px;
  border-top: 1px solid var(--ac-line);
}

.mc-row b {
  font-weight: 600;
  color: var(--ac-navy);
  overflow-wrap: anywhere;
}

.mc-row small,
.mc-delta {
  color: var(--ac-muted);
  font-size: 13px;
}

.mc-delta {
  align-self: center;
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  color: var(--ac-navy);
}

@media (max-width: 800px) {
  .account-member-page .ri-header-inner {
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 10px;
  }

  .account-member-page .ri-header-meta {
    width: 100%;
    max-width: none;
    justify-content: flex-start;
  }

  .mc-stats,
  .mc-source-grid,
  .mc-action-row {
    grid-template-columns: 1fr;
  }

  .mc-action-row {
    flex-direction: column;
  }

  .mc-action-row .ac-primary-link {
    display: block;
  }

  .mc-stat-wide strong {
    font-size: 32px;
  }

  .mc-row {
    grid-template-columns: 1fr;
  }
}
