/* Shared Guest Portal surfaces. Authentication keeps its quiet single-column layout. */
:root {
  --portal-surface: #f0e9de;
  --portal-soft: #f3eee5;
  --portal-sage: #e8ece2;
  --portal-sage-ink: #53624e;
  --portal-gold: #eee3d1;
  --portal-track: #dcd4c6;
  --portal-fill: #826044;
  --portal-muted: #68645e;
  --portal-progress-copy: #6a5d50;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --portal-surface: #292018; --portal-soft: #221b15; --portal-sage: #262e24;
    --portal-sage-ink: #bac8ae; --portal-gold: #352a1d; --portal-track: #4b3c2d;
    --portal-fill: #d1ae7b; --portal-muted: #a39789; --portal-progress-copy: #b8a592;
  }
}
:root[data-theme="dark"] {
  --portal-surface: #292018; --portal-soft: #221b15; --portal-sage: #262e24;
  --portal-sage-ink: #bac8ae; --portal-gold: #352a1d; --portal-track: #4b3c2d;
  --portal-fill: #d1ae7b; --portal-muted: #a39789; --portal-progress-copy: #b8a592;
}
.member-icon { display: inline-block; width: 20px; height: 20px; flex: 0 0 20px; vertical-align: middle; }
.member-page-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 22px; }
.member-page-heading > .ap-text-button { margin-top: 0; white-space: nowrap; }
.member-page-copy { min-width: 0; }
.member-page-heading .ap-description { margin-top: 7px; font-size: 12px; }
.member-content .ap-title { font-size: 32px; }
.member-session .ap-header, .member-session .ap-entry-nav { border-bottom: 0; }
.member-session .ap-entry-nav { padding-bottom: 8px; }
.member-dashboard .member-nav { background: var(--portal-soft); border: 0; border-radius: 12px; padding: 6px; gap: 4px; }
.member-dashboard .member-nav button { gap: 6px; min-height: 54px; }
.member-dashboard .member-nav .member-icon { width: 19px; height: 19px; }
.member-dashboard .member-nav button[aria-current="page"] { color: var(--ap-ink); background: var(--portal-gold); }
.member-overview { min-width: 0; }
.member-overview-identity { background: var(--portal-soft); padding: 20px 22px; border-radius: 12px; }
.member-overview-code { margin-top: 9px; }
[data-appointments-summary] { padding: 20px 22px; margin-top: 14px; border: 0; border-radius: 12px; background: var(--portal-sage); }
[data-appointments-summary] > .member-label { color: var(--portal-sage-ink); font-size: 10px; letter-spacing: .06em; }
[data-appointments-summary] p strong { font-size: 16px; }
.member-content .member-summary { background: var(--portal-soft); padding: 18px 10px; border: 0; border-radius: 10px; }
.member-content .member-summary > * + * { border-left: 0; }
.member-home-actions { padding-inline: 4px; }
.member-content .member-empty { padding: 20px; background: var(--portal-soft); border-radius: 10px; font-size: 13px; }
[data-appointments-summary] .member-empty { padding: 0; background: transparent; }

/* Account: one identity strip and compact functional groups. */
.account-identity { display: flex; align-items: center; gap: 14px; padding: 19px 20px; background: var(--portal-gold); border-radius: 12px; margin-bottom: 16px; }
.account-avatar { width: 44px; height: 44px; border-radius: 50%; background: var(--ap-paper); color: var(--ap-bronze); display: grid; place-items: center; flex-shrink: 0; }
.account-avatar .member-icon { width: 23px; height: 23px; }
.account-identity > div { flex: 1; min-width: 0; }
.account-identity strong, .account-identity span:not(.account-avatar), .account-identity small { display: block; overflow-wrap: anywhere; }
.account-identity strong { font-weight: 400; font-size: 17px; }
.account-identity span:not(.account-avatar) { font-size: 12px; color: var(--ap-soft); margin-top: 2px; }
.account-identity small { margin-top: 5px; font-size: 10px; letter-spacing: .1em; color: var(--ap-soft); }
.account-identity > .ap-text-button { flex-shrink: 0; margin: 0; font-size: 11px; }
.account-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; align-items: start; }
.account-group { padding: 19px 20px; min-width: 0; background: var(--portal-soft); border-radius: 12px; }
.account-group h2 { display: flex; align-items: center; gap: 9px; margin: 0 0 15px; font-size: 13px; }
.account-group h2 > .member-icon { color: var(--ap-bronze); width: 18px; height: 18px; }
.account-profile { grid-column: 1; }
.account-logins { grid-column: 2; }
.account-actions { grid-column: 1; }
.account-wallet { grid-column: 2; }
.account-group .ap-field { margin-top: 0; }
.account-group input { background: var(--ap-paper); border-color: transparent; min-height: 48px; }
.account-group .account-save { justify-content: space-between; min-height: 44px; margin-top: 12px; padding: 10px 14px; border-radius: 6px; }
.account-save > .member-icon { margin-left: 0 !important; width: 17px; height: 17px; }
.account-providers { display: grid; gap: 12px; }
.account-provider { display: flex; align-items: center; gap: 10px; min-width: 0; min-height: 49px; }
.account-provider .ap-provider { width: 32px; height: 32px; min-width: 32px; margin: 0; }
.account-provider .ap-provider img { max-width: 26px; max-height: 26px; object-fit: contain; }
.account-provider .ap-provider .ap-line-icon { width: 30px; height: 30px; }
.account-provider-copy { flex: 1; min-width: 0; }
.account-provider-copy > strong { display: block; font-size: 13px; font-weight: 400; }
.account-provider-state { display: flex; align-items: center; gap: 3px; margin-top: 2px; font-size: 10px; color: var(--ap-soft); }
.account-provider-state.is-connected { color: var(--portal-sage-ink); }
.account-provider-state .member-icon { width: 12px; height: 12px; flex-basis: 12px; }
.account-provider > .ap-text-button { margin: 0; padding: 6px 0; font-size: 11px; }
.account-action { display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px 0; border: 0; background: transparent; color: var(--ap-ink); text-align: left; }
.account-action > .member-icon:first-child { color: var(--ap-bronze); width: 18px; height: 18px; }
.account-action > .member-icon:last-child { width: 14px; height: 14px; color: var(--ap-soft); }
.account-action > span { flex: 1; min-width: 0; }
.account-action strong, .account-action small { display: block; overflow-wrap: anywhere; }
.account-action strong { font-size: 12px; font-weight: 400; }
.account-action small { font-size: 10px; line-height: 1.6; color: var(--ap-soft); margin-top: 3px; }
.account-session { margin-top: 16px; display: flex; justify-content: flex-end; }
.account-signout { display: inline-flex; align-items: center; gap: 8px; padding: 10px 2px; border: 0; background: transparent; color: var(--ap-soft); font-size: 12px; min-height: 44px; }
.account-signout .member-icon { width: 17px; height: 17px; }

/* Benefits: two measurable goals, then the actual ritual privileges. */
.member-tier-badge { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 6px; color: var(--ap-bronze); background: var(--portal-gold); font-size: 11px; }
.member-progress-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin: 0 0 24px; }
.member-progress-card { min-width: 0; padding: 21px 22px; border-radius: 12px; background: var(--portal-gold); }
.member-progress-card.is-points { background: var(--portal-sage); }
.member-progress-label { display: flex; align-items: center; justify-content: space-between; gap: 8px; color: var(--ap-soft); font-size: 11px; }
.member-progress-value { display: flex; align-items: baseline; flex-wrap: wrap; gap: 7px; margin-top: 14px; }
.member-progress-value strong { font-size: 28px; line-height: 1.2; font-weight: 400; letter-spacing: -.035em; }
.member-progress-value small { font-size: 11px; color: var(--ap-soft); }
.member-progress-track { position: relative; height: 7px; margin-top: 17px; background: var(--portal-track); border-radius: 8px; overflow: hidden; }
.member-progress-meter { display: block; width: 100%; height: 100%; }
.member-progress-fill { fill: var(--portal-fill); }
.is-points .member-progress-fill { fill: var(--portal-sage-ink); }
.member-progress-foot { margin-top: 10px; color: var(--ap-soft); font-size: 11px; line-height: 1.65; }
.member-progress-foot strong { font-weight: 400; color: var(--ap-ink); }
.member-progress-card.is-unavailable { opacity: .8; }
.member-benefit-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 14px; }
.member-benefit-tile { position: relative; min-width: 0; border-radius: 11px; background: var(--portal-soft); color: var(--ap-ink); overflow: hidden; }
.member-benefit-tile.is-active { background: var(--portal-surface); }
.member-benefit-tile > summary { position: relative; min-height: 172px; display: flex; flex-direction: column; align-items: flex-start; padding: 16px 17px 14px; list-style: none; cursor: pointer; }
.member-benefit-tile > summary::-webkit-details-marker { display: none; }
.member-benefit-tile > summary::after { content: '+'; position: absolute; right: 13px; top: 10px; color: var(--ap-soft); font-size: 17px; }
.member-benefit-tile[open] > summary::after { content: '−'; }
.member-benefit-tile > summary:focus-visible { outline: 2px solid var(--ap-focus); outline-offset: -4px; border-radius: 11px; }
.member-benefit-icon { display: block; flex-shrink: 0; width: 52px; height: 52px; background-image: url('./assets/member-benefits.png'); background-size: 200% 400%; background-repeat: no-repeat; margin-bottom: 9px; }
.icon-session { background-position: 0% 0%; }
.icon-saving { background-position: 100% 0%; }
.icon-qualification { background-position: 0% 33.333333%; }
.icon-oils { background-position: 100% 33.333333%; }
.icon-gift { background-position: 0% 66.666667%; }
.icon-birthday { background-position: 100% 66.666667%; }
.icon-redemption { background-position: 0% 100%; }
.member-benefit-tile.is-locked .member-benefit-icon { filter: grayscale(1); opacity: .36; }
.member-benefit-title { display: block; font-size: 11px; color: var(--ap-soft); line-height: 1.5; }
.member-benefit-value { display: block; margin-top: 4px; font-size: 16px; line-height: 1.45; overflow-wrap: anywhere; }
.member-benefit-state { display: block; margin-top: auto; padding-top: 7px; font-size: 10px; color: var(--portal-sage-ink); line-height: 1.5; }
.member-benefit-tile.is-locked .member-benefit-value, .member-benefit-tile.is-locked .member-benefit-state { color: var(--portal-muted); }
.member-benefit-tile > p { padding: 0 17px 15px; color: var(--ap-soft); font-size: 11px; line-height: 1.7; }
.member-benefits > h2 { margin-top: 22px; font-size: 15px; }
.member-benefit-wallet { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 20px; background: var(--portal-soft); padding: 17px 20px; border-radius: 11px; margin-top: 20px; }
.member-benefit-wallet > .member-benefit-icon { width: 36px; height: 36px; margin: 0; }
.member-benefit-wallet .member-label { font-size: 10px; }
.member-benefit-wallet strong { font-weight: 400; font-size: 16px; }
.member-benefit-activity { margin-top: 18px; padding: 13px 18px; background: var(--portal-soft); border-radius: 10px; }
.member-benefit-activity > summary { cursor: pointer; font-size: 12px; min-height: 24px; }
.member-benefit-activity .history-record { padding: 12px 0; font-size: 12px; }
.member-benefit-activity .history-record:last-child { border: 0; }

/* Future and past visits share one date/time/ritual hierarchy. */
.member-record-intro { color: var(--ap-soft); font-size: 11px; margin: 0 0 16px; }
.member-record-list { display: grid; gap: 24px; }
.member-record-group-heading { margin: 0 0 10px; font-size: 12px; color: var(--ap-soft); letter-spacing: .03em; }
.member-record-group-items { display: grid; gap: 10px; }
.member-visit-record.history-record { display: grid; grid-template-columns: 62px minmax(0, 1fr); gap: 17px; border: 0; padding: 17px 19px; border-radius: 11px; background: var(--portal-soft); }
.member-visit-record.is-next { background: var(--portal-sage); padding: 21px 19px; }
.member-record-date { display: flex; flex-direction: column; justify-content: center; align-items: center; align-self: start; min-height: 67px; padding: 9px 4px; border-radius: 8px; background: var(--ap-paper); }
.member-record-day { font-size: 28px; line-height: 1.1; letter-spacing: -.035em; }
.member-record-month { margin-top: 4px; font-size: 10px; line-height: 1.4; color: var(--ap-soft); }
.member-record-main { min-width: 0; }
.member-record-kicker { display: block; margin-bottom: 7px; font-size: 10px; color: var(--portal-sage-ink); letter-spacing: .05em; }
.member-visit-record .booking-record-heading { gap: 10px; align-items: flex-start; }
.member-visit-record .booking-record-heading > strong { font-size: 14px; font-weight: 400; line-height: 1.5; }
.member-status-chip { display: inline-flex; flex-shrink: 0; padding: 3px 8px; color: var(--ap-soft); background: var(--ap-paper); border-radius: 5px; font-size: 10px; line-height: 1.6; }
.member-status-chip.is-complete, .member-status-chip.is-scheduled { color: var(--portal-sage-ink); }
.member-status-chip.is-inactive { color: var(--portal-muted); }
.member-visit-record p.member-record-meta { display: flex; align-items: baseline; flex-wrap: wrap; gap: 3px 12px; margin-top: 6px; }
.member-record-meta > strong { font-size: 17px; font-weight: 400; }
.member-record-meta > time { font-size: 11px; color: var(--ap-soft); }
.member-visit-record p.member-record-muse { display: flex; align-items: baseline; gap: 8px; margin-top: 5px; font-size: 12px; }
.member-record-muse-label { color: var(--ap-soft); font-size: 10px; }
.member-reservation-action { margin-top: 22px; padding: 18px 20px; border-radius: 11px; background: var(--portal-gold); }
.member-reservation-action .ap-submit { max-width: 260px; min-height: 46px; margin-top: 0; border-radius: 6px; }
.member-reservation-action .ap-small-note { margin-top: 10px; font-size: 11px; }

@media (max-width: 799px) {
  .member-content { padding-bottom: 78px; }
  .member-dashboard .member-nav { position: fixed; z-index: 10; left: 50%; bottom: 0; transform: translateX(-50%); width: min(100%, 450px); border-radius: 12px 12px 0 0; padding-bottom: max(7px, env(safe-area-inset-bottom)); box-shadow: 0 -6px 24px #35291f08; }
  .account-grid { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .account-profile, .account-logins, .account-actions, .account-wallet { grid-column: auto; grid-row: auto; }
  .account-logins { order: 1; }
  .account-profile { order: 0; }
  .account-actions { order: 3; }
  .account-wallet { order: 2; }
  .account-group { padding: 17px 18px; }
  .account-group h2 { margin-bottom: 12px; }
  .account-identity { padding: 17px 18px; flex-wrap: wrap; gap: 11px; }
  .account-identity > .ap-text-button { margin-left: 55px; padding-top: 0; min-height: 24px; }
  .member-progress-grid { gap: 12px; }
  .member-progress-card { padding: 18px; }
  .member-progress-value strong { font-size: 25px; }
  .member-benefit-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .member-benefit-tile > summary { min-height: 164px; padding: 15px 15px 12px; }
  .member-benefit-icon { width: 46px; height: 46px; }
  .member-benefit-value { font-size: 15px; }
  .member-content .ap-title { font-size: 30px; }
  .member-visit-record.history-record { grid-template-columns: 52px minmax(0, 1fr); padding: 15px; gap: 12px; }
  .member-record-date { min-height: 61px; }
  .member-record-day { font-size: 26px; }
  .member-visit-record .booking-record-heading { flex-wrap: wrap; gap: 5px 10px; }
  .member-status-chip { font-size: 9px; }
}
@media (max-width: 519px) {
  .member-progress-grid { grid-template-columns: minmax(0, 1fr); }
  .member-progress-card { padding: 18px 20px; }
  .member-progress-value { margin-top: 9px; }
  .member-progress-track { margin-top: 13px; }
  .member-progress-foot { margin-top: 8px; }
  .member-page-heading { margin-bottom: 18px; gap: 12px; }
  .member-visit-record .booking-record-heading > strong { font-size: 13px; }
}
@media (min-width: 700px) and (max-width: 799px) {
  body.member-session .ap-header, body.member-session .ap-entry-nav, #app[data-member-layout="true"] { max-width: 780px; }
  .member-dashboard .member-nav { width: min(100%, 780px); }
  .account-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .account-profile, .account-logins, .account-actions, .account-wallet { order: initial; }
}
@media (min-width: 800px) {
  .member-dashboard { grid-template-columns: 152px minmax(0, 1fr); gap: 32px; }
  .member-dashboard .member-nav { position: sticky; top: 24px; bottom: auto; left: auto; transform: none; width: auto; padding: 6px; border: 0; }
  .member-dashboard .member-nav button { flex-direction: row; align-items: center; justify-content: flex-start; min-height: 48px; gap: 10px; padding: 10px 12px; }
  .member-page-heading .ap-title { font-size: 34px; }
}
@media (prefers-reduced-motion: no-preference) {
  .member-benefit-tile > summary, .member-nav button, .account-action { transition: background-color .15s ease; }
  .member-benefit-tile > summary:hover, .account-action:hover { background: #80613e06; }
}
.member-eyebrow { margin-bottom: 5px; color: var(--ap-soft); font-size: 10px; letter-spacing: .06em; }
.member-benefits-intro { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: -8px 0 18px; }
.member-benefits-intro .ap-description { margin: 0; font-size: 12px; }
.member-tier-badge strong { font-size: 12px; font-weight: 400; letter-spacing: .05em; }
.member-tier-badge > span { font-size: 10px; }
.member-tier-identity, .member-founder-badge { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 5px; }
.member-founder-badge { color: var(--portal-sage-ink); }
.member-tier-badge:has(.member-founder-badge) > .member-tier-identity {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  column-gap: 5px;
  row-gap: 0;
}
.member-tier-badge:has(.member-founder-badge) > .member-tier-identity > img { grid-row: span 2; }
.member-tier-badge:has(.member-founder-badge) > .member-tier-identity > span { grid-column: 2; }
@media (max-width: 520px) {
  .member-tier-badge:has(.member-founder-badge) {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
    width: 100%;
  }
  .member-tier-badge > .member-founder-badge {
    display: grid;
    grid-template-columns: 24px minmax(0, 1fr);
    align-items: center;
  }
  .member-tier-badge:has(.member-founder-badge) > span:not(.member-tier-identity, .member-founder-badge) {
    grid-column: 1 / -1;
  }
}
.member-tier-icon {
  width: 24px;
  height: 24px;
  box-sizing: border-box;
  flex: 0 0 24px;
  display: block;
  padding: 2px;
  filter: var(--member-mineral-icon-tone, brightness(.62) saturate(1.08));
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) { --member-mineral-icon-tone: none; }
}
:root[data-theme="dark"] { --member-mineral-icon-tone: none; }
.member-benefit-notice { margin: 0 0 18px; padding: 14px 17px; border-radius: 10px; background: var(--portal-gold); color: var(--ap-soft); font-size: 12px; line-height: 1.8; }
.member-progress-track.is-unknown { background: repeating-linear-gradient(90deg,var(--portal-track) 0 10px,transparent 10px 14px); opacity: .65; }
.member-progress-track.is-paused .member-progress-fill { fill: var(--portal-muted); }
.member-progress-card > .ap-small-note { font-size: 10px; margin-top: 7px; }
.member-benefit-section-heading { display: flex; align-items: baseline; flex-wrap: wrap; justify-content: space-between; gap: 0 10px; margin-top: 25px; }
.member-benefit-section-heading h2 { font-size: 15px; }
.member-benefit-section-heading .ap-small-note { font-size: 10px; margin: 0; }
.member-benefit-copy { display: flex; flex: 1; flex-direction: column; width: 100%; min-width: 0; }
.member-benefit-toggle { display: none; }
.member-wallet-heading { display: flex; align-items: center; gap: 12px; flex: 1; min-width: 130px; }
.member-wallet-heading .member-benefit-icon { width: 35px; height: 35px; margin: 0; }
.member-wallet-heading .ap-small-note { margin: 0; font-size: 10px; }
.member-wallet-total strong { font-size: 22px; }
.member-wallet-breakdown { display: flex; flex-wrap: wrap; gap: 10px 18px; }
.member-wallet-breakdown strong { font-size: 13px; }
.member-wallet-expiry { flex-basis: 100%; margin: 0; font-size: 10px; }
.member-benefit-activity > summary { display: flex; justify-content: space-between; gap: 12px; list-style: none; }
.member-benefit-activity > summary::-webkit-details-marker { display: none; }
.member-benefit-activity .history-record { display: flex; justify-content: space-between; gap: 12px; }
.member-benefit-activity .history-record p { font-size: 11px; }
@media (max-width: 519px) {
  .member-benefit-wallet { gap: 14px; }
  .member-wallet-heading { flex: 1; }
  .member-wallet-breakdown { flex-basis: 100%; padding-left: 47px; gap: 28px; }
}

.member-content > .member-panel:first-child { margin-top: 0; }
.account-signout { white-space: nowrap; }
.account-provider .ap-line-icon { padding: 4px; background: #06c755; border-radius: 6px; }
.member-benefit-actions { display: flex; justify-content: flex-end; margin-top: 8px; }
.member-benefit-actions .ap-text-button { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; }
.member-benefit-actions .member-icon { width: 16px; height: 16px; }
.member-benefit-actions .ap-text-button { white-space: nowrap; }
.member-progress-card .member-progress-label, .member-progress-card .member-progress-value small,
.member-progress-card .member-progress-foot, .member-progress-card > .ap-small-note { color: var(--portal-progress-copy); }

/* Home keeps membership progress and usable credit immediately below identity. */
.member-content .member-home-membership.member-summary { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 12px; margin-top: 14px; padding: 0; background: transparent; border: 0; border-radius: 0; }
.member-content .member-home-membership.member-summary > * { min-width: 0; border: 0; padding: 0; text-align: left; }
.member-home-membership.member-summary > .member-home-tier { display: flex; flex-direction: row; align-items: center; justify-content: space-between; gap: 10px; grid-column: 1 / -1; }
.member-home-tier .member-label { color: var(--ap-soft); }
.member-home-membership.member-summary > .member-progress-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 0; }
.member-home-membership .member-progress-card { padding: 17px 18px; }
.member-home-membership .member-progress-value { gap: 4px 6px; margin-top: 10px; }
.member-home-membership .member-progress-value strong { font-size: 24px; }
.member-home-membership .member-progress-value small { font-size: 10px; }
.member-home-membership .member-progress-track { margin-top: 13px; }
.member-home-membership .member-progress-foot { margin-top: 8px; }
.member-content .member-home-membership.member-summary > .member-benefit-wallet { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 12px; margin: 0; padding: 17px 18px; }
.member-home-membership .member-wallet-heading { flex: 0 0 auto; min-width: 0; gap: 9px; }
.member-home-membership .member-wallet-heading .member-benefit-icon { width: 30px; height: 30px; }
.member-home-membership .member-wallet-total strong { font-size: 25px; }
.member-home-membership .member-wallet-breakdown { padding: 0; gap: 10px 18px; }
.member-home-membership .member-wallet-breakdown strong { font-size: 12px; }
.member-home-membership .member-wallet-expiry { flex-basis: auto; }
.member-home-membership.member-summary > .member-benefit-notice, .member-home-membership.member-summary > .member-empty { display: block; grid-column: 1 / -1; margin: 0; padding: 12px 16px; }
@media (max-width: 799px) {
  .member-content .member-home-membership.member-summary { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .member-home-membership.member-summary > .member-progress-grid { gap: 10px; }
  .member-content .member-home-membership.member-summary > .member-benefit-wallet { flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: flex-start; gap: 12px; }
  .member-home-membership .member-wallet-heading { flex: 1; }
  .member-home-membership .member-wallet-breakdown { flex-basis: 100%; padding-left: 39px; gap: 10px 24px; }
  .member-home-membership .member-wallet-expiry { flex-basis: 100%; }
}
@media (max-width: 519px) {
  .member-overview-identity { padding: 17px 18px; }
  .member-home-membership .member-progress-card { padding: 15px 13px; }
  .member-home-membership .member-progress-label { font-size: 10px; line-height: 1.6; }
  .member-home-membership .member-progress-value strong { font-size: 21px; }
  .member-home-membership .member-progress-foot, .member-home-membership .member-progress-card > .ap-small-note { font-size: 10px; }
}

/* Founder certification sits alongside the lifetime programme. */
.member-arun-card { margin-top: 18px; padding: 20px; border-radius: 12px; background: var(--portal-gold); min-width: 0; }
.member-arun-heading { display: flex; align-items: center; gap: 12px; }
.member-arun-heading h2 { margin: 0; font-size: 20px; font-weight: 400; letter-spacing: .07em; }
.member-arun-heading h2 span { margin-left: 6px; font-size: 12px; letter-spacing: 0; color: var(--ap-soft); }
.member-arun-emblem { color: var(--ap-bronze); width: 32px; flex: 0 0 32px; height: 32px; margin: 0; }
.member-arun-state { margin: 13px 0 5px; font-size: 12px; color: var(--ap-bronze); }
.member-arun-card .ap-small-note { margin: 0; line-height: 1.8; }
.member-arun-card[data-arun-status="verified"] { background: var(--portal-sage); }
.member-arun-card[data-arun-status="verified"] .member-arun-state { color: var(--portal-sage-ink); }
.member-arun-actions { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 9px; }
.member-arun-actions .ap-text-button { margin: 0; font-size: 11px; min-height: 36px; }
.member-arun-form .member-arun-card { margin: 0 0 22px; }
.member-arun-form > .ap-text-button { margin-top: 16px; }
.member-arun-link-option { padding: 16px; margin: 18px 0; border-radius: 10px; background: var(--portal-gold); }
.member-arun-link-option > label { display: flex; align-items: flex-start; gap: 9px; font-size: 12px; line-height: 1.7; }
.member-arun-link-option input[type="checkbox"] { width: 17px; height: 17px; flex: 0 0 17px; margin: 2px 0 0; accent-color: var(--ap-bronze); }
.member-arun-link-option .ap-small-note { margin: 6px 0 0; }
.member-arun-link-option .ap-field { display: block; margin-top: 15px; }
.member-arun-link-option .ap-field > span { display: block; margin-bottom: 8px; }
.member-benefit-icon.icon-founder { background-position: 0% 33.333333%; }
.member-benefit-tile[data-benefit="founder"] { grid-column: 1 / -1; background: var(--portal-sage); }
.member-benefit-tile[data-benefit="founder"] > summary { display: grid; grid-template-columns: 44px minmax(0, 1fr); align-items: center; gap: 14px; min-height: 118px; }
.member-benefit-tile[data-benefit="founder"] .member-benefit-icon { width: 44px; height: 44px; margin: 0; }
.member-benefit-tile[data-benefit="founder"].is-locked { background: var(--portal-soft); }
.member-content .member-arun-card p, .member-arun-link-option span { overflow-wrap: anywhere; }
@media (max-width: 519px) {
  .member-arun-card { padding: 18px; }
  .member-arun-heading h2 span { display: block; margin: 3px 0 0; }
}
/* Account-bound appointment management follows the Portal's quiet sections. */
.member-management{max-width:760px;margin-inline:auto;min-width:0;}
.member-management-summary{padding:24px;background:var(--portal-soft);border-radius:18px;margin-block:18px 24px;}
.member-management-summary h2{font-family:"Cormorant Unicase",serif;font-weight:400;font-size:26px;margin:10px 0;}
.member-management-summary p{margin:7px 0;}
.member-management-actions{display:flex;flex-wrap:wrap;gap:12px 22px;align-items:center;margin-block:20px;}
.member-management-form{display:grid;gap:18px;margin-block:24px;min-width:0;}
.member-management-form .ap-field{display:grid;gap:8px;min-width:0;}
.member-management-form :is(input,select,textarea){box-sizing:border-box;max-width:100%;min-width:0;width:100%;padding:12px;background:transparent;border:1px solid var(--ap-line);border-radius:8px;font:inherit;color:inherit;}
.member-management-form .member-management-check{display:flex;align-items:flex-start;gap:10px;line-height:1.6;}
.member-management-check input{width:auto;margin-top:6px;flex:none;}
.member-management-notice{padding:18px 20px;background:rgba(163,112,79,.08);border-radius:12px;line-height:1.6;margin-block:18px;}
.member-management-notice p{margin:8px 0;}
.member-management-poster{margin:24px 0;display:grid;gap:16px;justify-items:start;}
.member-management-poster img{width:100%;max-width:420px;height:auto;border-radius:8px;}
@media(max-width:600px){.member-management-summary{padding:20px;}.member-management-actions{align-items:stretch;flex-direction:column;}.member-management-actions>*{text-align:center;}}

.member-rewards { margin-top: 20px; padding: 18px 20px; border: 1px solid var(--ap-line); border-radius: 12px; }
.member-rewards h2 { margin: 0 0 10px; font-size: 15px; }
.member-rewards > p { margin: 8px 0 12px; color: var(--ap-soft); font-size: 12px; }
.member-rewards .ap-submit { width: auto; max-width: 100%; }
.member-rewards .member-management-notice { margin-bottom: 0; }
.member-rewards .member-management-notice > button + button { margin-inline-start: 12px; }
.member-rewards .member-reward-form { margin-block: 14px 0; gap: 12px; }
.member-rewards .member-reward-form > button { justify-self: start; }
.member-reward-list { margin-top: 10px; }
.member-reward-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 18px; padding: 10px 0; border-top: 1px solid var(--ap-line); font-size: 12px; }
.member-reward-row > div { display: grid; gap: 4px; min-width: 0; }
.member-reward-row small { color: var(--ap-soft); overflow-wrap: anywhere; }
