[x-cloak] { display: none !important; }

/* ── Section card ── */
.mem-card {
  background: #fff; border-radius: 14px; border: 1px solid var(--bmr-border);
  overflow: hidden; margin-bottom: 1.25rem;
}
.mem-card-header {
  padding: .9rem 1.4rem; border-bottom: 1px solid var(--bmr-border);
  display: flex; align-items: center; gap: .6rem;
}
.mem-card-header h5 {
  font-size: .95rem; font-weight: 700; margin: 0; color: #1a1a1a;
}
.mem-card-header .icon {
  width: 30px; height: 30px; border-radius: 8px;
  background: var(--bmr-teal-light); color: var(--bmr-teal);
  display: flex; align-items: center; justify-content: center; font-size: .88rem;
  flex-shrink: 0;
}
.mem-card-body { padding: 1.4rem; }

/* ── Status banner ── */
.status-banner {
  border-radius: 14px; padding: 1.4rem 1.6rem;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 1rem; margin-bottom: 1.25rem;
}
.sb-left { display: flex; align-items: center; gap: 1rem; }
.sb-icon { font-size: 2.2rem; line-height: 1; }
.sb-title { font-size: 1.15rem; font-weight: 800; color: inherit; margin-bottom: .2rem; }
.sb-sub { font-size: .83rem; opacity: .85; }
.sb-ref { text-align: right; }
.sb-ref .label { font-size: .75rem; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; opacity: .75; }
.sb-ref .value { font-size: 1.1rem; font-weight: 800; letter-spacing: .04em; }
.sb-ref .date { font-size: .78rem; opacity: .75; margin-top: .1rem; }

/* Status colour sets */
.sb-draft      { background: #f3f4f6; color: #374151; border: 1.5px solid #e5e7eb; }
.sb-pending    { background: #fffbeb; color: #92400e; border: 1.5px solid #fde68a; }
.sb-revise     { background: #fff1f2; color: #9f1239; border: 1.5px solid #fecdd3; }
.sb-payment    { background: #f5f3ff; color: #4c1d95; border: 1.5px solid #ddd6fe; }
.sb-reviewing  { background: #f0f9ff; color: #0c4a6e; border: 1.5px solid #bae6fd; }
.sb-active     { background: var(--bmr-teal-light); color: var(--bmr-teal); border: 1.5px solid var(--bmr-teal-mid); }
.sb-rejected   { background: #fff1f2; color: #9f1239; border: 1.5px solid #fecdd3; }
.sb-terminated { background: #f3f4f6; color: #374151; border: 1.5px solid #e5e7eb; }

/* ── Membership progress ── */
.mem-stage-card {
  background: #fff; border-radius: 14px; border: 1px solid var(--bmr-border);
  padding: 1rem 1.15rem; margin-bottom: 1.25rem;
}
.mem-stage-head {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 1rem; margin-bottom: .95rem;
}
.mem-stage-head h5 { margin: 0; font-size: .95rem; font-weight: 800; color: #111827; }
.mem-stage-head p { margin: .18rem 0 0; font-size: .82rem; color: #6b7280; }
.mem-stage-pill {
  flex-shrink: 0; border-radius: 999px; padding: .28rem .75rem;
  background: var(--bmr-teal-light); color: var(--bmr-teal);
  font-size: .76rem; font-weight: 800;
}
.mem-stage-track {
  display: grid; grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: .65rem; position: relative;
}
.mem-stage-item {
  min-width: 0; padding: .75rem .65rem; border-radius: 10px;
  border: 1px solid #edf2f1; background: #f9fafb;
}
.mem-stage-marker {
  width: 28px; height: 28px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: .45rem; background: #e5e7eb; color: #6b7280; font-size: .72rem;
}
.mem-stage-title { font-size: .78rem; font-weight: 800; color: #111827; line-height: 1.2; }
.mem-stage-desc { margin-top: .18rem; font-size: .72rem; color: #6b7280; line-height: 1.35; }
.mem-stage-item.is-done { background: #f0fdf4; border-color: #bbf7d0; }
.mem-stage-item.is-done .mem-stage-marker { background: #059669; color: #fff; }
.mem-stage-item.is-current { background: #eff6ff; border-color: #bfdbfe; box-shadow: 0 8px 22px rgba(59,130,246,.1); }
.mem-stage-item.is-current .mem-stage-marker { background: #2563eb; color: #fff; }
.mem-stage-item.is-stopped { background: #fef2f2; border-color: #fecaca; }
.mem-stage-item.is-stopped .mem-stage-marker { background: #dc2626; color: #fff; }

/* ── Info grid ── */
.info-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: .85rem 2rem; }
@media (max-width: 640px) {
  .info-grid { grid-template-columns: 1fr; }
  .mem-stage-head { display: block; }
  .mem-stage-pill { display: inline-flex; margin-top: .65rem; }
  .mem-stage-track { grid-template-columns: 1fr; }
  .mem-stage-item { display: flex; align-items: flex-start; gap: .75rem; }
  .mem-stage-marker { margin-bottom: 0; flex-shrink: 0; }
}
.info-item .il { font-size: .76rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: #999; margin-bottom: .2rem; }
.info-item .iv { font-size: .91rem; font-weight: 600; color: #222; }
.info-item .iv.empty { color: #bbb; font-weight: 400; font-style: italic; }
.sensitive-value {
  display: inline-flex; align-items: center; gap: .45rem; min-width: 0;
  max-width: 100%;
}
.sensitive-value span { overflow-wrap: anywhere; min-width: 0; }
.sensitive-toggle {
  border: 0; background: transparent; color: var(--bmr-teal);
  width: 1.7rem; height: 1.7rem; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0; flex-shrink: 0;
}
.sensitive-toggle:hover { background: var(--bmr-teal-light); }
.id-card .sensitive-toggle { color: var(--id-accent); }
.id-card .sensitive-toggle:hover { background: var(--id-decoration); }

/* ── Timeline ── */
.timeline { position: relative; padding-left: 1.6rem; }
.timeline::before {
  content: ''; position: absolute; left: .55rem; top: .4rem; bottom: .4rem;
  width: 2px; background: #e5e7eb;
}
.tl-item { position: relative; margin-bottom: 1.1rem; }
.tl-item:last-child { margin-bottom: 0; }
.tl-dot {
  position: absolute; left: -1.6rem; top: .25rem;
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--bmr-teal); border: 2px solid #fff;
  box-shadow: 0 0 0 2px var(--bmr-teal-mid);
}
.tl-dot.inactive { background: #d1d5db; box-shadow: 0 0 0 2px #e5e7eb; }
.tl-label { font-size: .83rem; font-weight: 700; color: #333; }
.tl-meta  { font-size: .76rem; color: #888; margin-top: .1rem; }
.tl-message { font-size: .8rem; color: #4b5563; margin-top: .25rem; line-height: 1.45; }
.tl-note {
  display: flex; align-items: flex-start; gap: .45rem;
  margin-top: .45rem; padding: .5rem .65rem;
  background: #fffbeb; border: 1px solid #fde68a; border-radius: 8px;
  color: #78350f; font-size: .8rem; line-height: 1.45;
}

/* ── Membership ID card ── */
/* ── Payment badge ── */
.pay-status-pill {
  display: inline-flex; align-items: center; gap: .35rem;
  border-radius: 20px; padding: .28rem .85rem;
  font-size: .78rem; font-weight: 700;
}
.psp-pending  { background: #fef9c3; color: #854d0e; }
.psp-submitted { background: #dbeafe; color: #1e40af; }
.psp-paid     { background: #dcfce7; color: #166534; }
.psp-verified { background: #d1fae5; color: #065f46; }
.psp-rejected { background: #fee2e2; color: #991b1b; }

/* ── Action strip ── */
.action-strip {
  background: #fff; border-radius: 14px; border: 1px solid var(--bmr-border);
  padding: 1rem 1.4rem; display: flex; align-items: center;
  justify-content: space-between; flex-wrap: wrap; gap: .75rem;
  margin-bottom: 1.25rem;
}
.action-strip p { margin: 0; font-size: .88rem; color: #555; }

/* Keep the membership status and progress beside the compact card. */
.membership-overview { display:grid; grid-template-columns:minmax(0,1fr); gap:24px; align-items:start; margin-bottom:24px; }
.membership-card-column, .membership-summary-column { min-width:0; }
/* Keep the card close to a real card size instead of stretching across wide screens. */
.membership-card-column { width:100%; max-width:680px; }
.membership-card-column .id-card, .membership-card-column .id-card-actions,
.membership-card-column .id-card-feedback { max-width:none; }
.membership-card-column .id-card-actions { margin-bottom:0; }
.membership-summary-column .status-banner { padding:22px; margin-bottom:18px; }
.membership-summary-column .sb-left { align-items:flex-start; }
.membership-summary-column .sb-ref { width:100%; text-align:left; padding-top:14px; border-top:1px solid currentColor; }
.membership-summary-column .mem-stage-card { margin-bottom:0; }
.membership-summary-column .mem-stage-track { grid-template-columns:repeat(2,minmax(0,1fr)); }
@media (min-width:1100px) {
  .membership-overview.has-card { grid-template-columns:minmax(0,680px) minmax(0,1fr); gap:28px; }
}
@media (max-width:640px) {
  .membership-overview { gap:18px; }
  .membership-summary-column .mem-stage-track { grid-template-columns:1fr; }
}

/* Membership summary: calm status panel and connected progress timeline. */
.membership-summary-column .status-banner {
  position:relative; border-radius:18px; padding:24px; gap:20px;
  box-shadow:0 4px 18px rgba(23,43,42,.035);
}
.membership-summary-column .sb-active { background:linear-gradient(135deg,#f1fbf8,#e4f4f0); border-color:#cce9e0; }
.membership-summary-column .sb-left { gap:14px; width:100%; align-items:center; }
.membership-summary-column .sb-icon {
  width:48px; height:48px; flex-shrink:0; display:flex; align-items:center; justify-content:center;
  font-size:1.4rem; border-radius:15px; background:rgba(255,255,255,.8); box-shadow:0 3px 10px rgba(23,43,42,.04);
}
.sb-eyebrow { font-size:.62rem; font-weight:700; letter-spacing:.09em; text-transform:uppercase; opacity:.7; margin-bottom:5px; }
.membership-summary-column .sb-title { font-size:1.15rem; line-height:1.3; margin-bottom:5px; }
.membership-summary-column .sb-sub { font-size:.8rem; line-height:1.5; }
.membership-summary-column .sb-ref {
  display:flex; flex-wrap:wrap; justify-content:space-between; align-items:center; gap:12px 24px;
  border-top:0; padding-top:0;
}.membership-summary-column .sb-ref .label { font-size:.6rem; letter-spacing:.06em; }
.membership-summary-column .sb-ref .value { font-size:.85rem; letter-spacing:.025em; margin-top:3px; }
.membership-summary-column .sb-ref .date { font-size:.85rem; font-weight:600; margin-top:3px; opacity:1; }
.membership-summary-column .mem-stage-card { padding:22px 24px; border-radius:18px; box-shadow:0 4px 18px rgba(23,43,42,.035); }
.membership-summary-column .mem-stage-head { margin-bottom:16px; }
.membership-summary-column .mem-stage-head h5 { font-size:.95rem; }
.membership-summary-column .mem-stage-head p { font-size:.76rem; line-height:1.5; margin-top:5px; }
.membership-summary-column .mem-stage-pill { padding:6px 11px; font-size:.65rem; font-weight:700; }
.mem-progress-meter { height:6px; background:#edf2f1; border-radius:10px; overflow:hidden; }
.mem-progress-meter span { display:block; height:100%; background:#009b83; border-radius:10px; }
.mem-progress-caption { display:flex; justify-content:space-between; gap:12px; margin-top:7px; font-size:.65rem; color:#71837f; }
.membership-summary-column .mem-stage-track { grid-template-columns:1fr; gap:0; margin-top:18px; }
.membership-summary-column .mem-stage-item {
  display:flex; align-items:flex-start; gap:12px; padding:8px 0; position:relative;
  background:transparent; border:0; border-radius:0; box-shadow:none;
}
.membership-summary-column .mem-stage-item::before {
  content:''; position:absolute; left:13px; top:36px; bottom:-7px; width:2px; background:#e5eeeb;
}
.membership-summary-column .mem-stage-item:last-child::before { display:none; }
.membership-summary-column .mem-stage-item.is-done::before { background:#b4e2d3; }
.membership-summary-column .mem-stage-marker { margin:0; width:28px; height:28px; flex-shrink:0; font-size:.68rem; position:relative; z-index:1; }
.membership-summary-column .is-done .mem-stage-marker { background:#e0f3eb; color:#078665; }
.membership-summary-column .is-current .mem-stage-marker { background:#009b83; color:#fff; box-shadow:0 0 0 3px #e0f3eb; }
.membership-summary-column .mem-stage-title { font-size:.76rem; line-height:1.4; }
.membership-summary-column .mem-stage-desc { margin-top:2px; font-size:.68rem; color:#71837f; line-height:1.4; }
@media (max-width:640px) {
  .membership-summary-column .status-banner, .membership-summary-column .mem-stage-card { padding:20px; }
}

/* ── Membership years / progress tabs ── */
.mem-tabs { display:flex; gap:4px; padding:4px; margin-bottom:20px; background:#f1f6f5; border-radius:12px; }
.mem-tab {
  flex:1; border:0; background:transparent; border-radius:9px; padding:8px 12px;
  font-size:.78rem; font-weight:700; color:#5b6f6b; transition:background .15s, color .15s;
}
.mem-tab:hover { color:#0f5f52; }
.mem-tab.is-active { background:#fff; color:#0f5f52; box-shadow:0 2px 8px rgba(23,43,42,.08); }
.mem-tab:focus-visible { outline:2px solid #009b83; outline-offset:2px; }

.my-summary { display:flex; align-items:flex-end; justify-content:space-between; gap:12px; flex-wrap:wrap; padding-bottom:16px; border-bottom:1px solid #e6efed; }
.my-count { display:flex; align-items:baseline; gap:8px; color:#0f5f52; }
.my-count strong { font-size:2rem; font-weight:800; line-height:1; }
.my-count span { font-size:.8rem; font-weight:600; color:#4b5f5b; }
.my-since { font-size:.76rem; color:#5b6f6b; }
.my-since b { color:#0f5f52; }


.my-empty { text-align:center; padding:28px 12px; color:#5b6f6b; }
.my-empty i { font-size:1.6rem; color:#9cc9bf; margin-bottom:10px; }
.my-empty p { margin:0; font-size:.8rem; }

/* ── Full-screen QR for check-in ── */
.qr-sheet {
  position:fixed; inset:0; z-index:2000; background:rgba(15,32,30,.55);
  display:flex; align-items:center; justify-content:center; padding:16px;
}
.qr-sheet-body {
  background:#fff; border-radius:20px; padding:28px 24px 22px; width:100%; max-width:340px;
  text-align:center; box-shadow:0 20px 50px rgba(0,0,0,.25);
}
.qr-sheet-code { display:flex; justify-content:center; margin-bottom:18px; }
.qr-sheet-code canvas { width:260px; height:260px; max-width:100%; }
.qr-sheet-code img { display:none !important; }
.qr-sheet-name { font-size:1.05rem; font-weight:800; color:#111827; overflow-wrap:anywhere; }
.qr-sheet-id { margin-top:4px; font-size:.9rem; font-weight:700; letter-spacing:.04em; color:#0f5f52; }
.qr-sheet-valid { margin-top:4px; font-size:.78rem; color:#5b6f6b; }
.qr-sheet-close { margin-top:18px; width:100%; min-height:44px; border-radius:12px; }
@media (max-width:540px) {
  .qr-sheet { padding:0; background:#fff; }
  .qr-sheet-body { box-shadow:none; max-width:none; }
}

/* ── Validity (Membership Years tab) ── */
.my-validity { padding:14px 16px; margin-bottom:18px; border-radius:14px; background:#f1faf7; border:1px solid #d6eee6; }
.my-validity-row { display:flex; align-items:flex-end; justify-content:space-between; gap:12px; }
.my-validity-label { font-size:.62rem; font-weight:700; letter-spacing:.06em; text-transform:uppercase; color:#4b5f5b; }
.my-validity-left { font-size:.76rem; font-weight:700; color:#0f5f52; white-space:nowrap; }
.my-validity-meter { height:6px; margin-top:10px; border-radius:6px; background:#d6eee6; overflow:hidden; }
.my-validity-meter span { display:block; height:100%; border-radius:6px; background:#009b83; }
.my-validity-note { margin:10px 0 0; font-size:.74rem; line-height:1.5; }
.my-validity.is-due { background:#fff8e8; border-color:#f6dfa6; }
.my-validity.is-due .my-validity-left, .my-validity.is-due .my-validity-note { color:#8a4b00; }
.my-validity.is-due .my-validity-meter { background:#f6e3b4; }
.my-validity.is-due .my-validity-meter span { background:#d68a00; }
.my-validity.is-expired { background:#fef2f2; border-color:#fecaca; }
.my-validity.is-expired .my-validity-left, .my-validity.is-expired .my-validity-note { color:#b42318; }

/* ── Progress tab ── */
.pg-summary { display:flex; align-items:flex-start; gap:12px; }
.pg-summary > i { font-size:1.25rem; margin-top:1px; color:#2563eb; }
.pg-summary.is-done > i { color:#009b83; }
.pg-summary.is-stopped > i { color:#dc2626; }
.pg-summary-title { font-size:.92rem; font-weight:800; color:#111827; }
.pg-summary-sub { margin-top:2px; font-size:.74rem; color:#5b6f6b; line-height:1.5; }

.pg-stepper { display:flex; list-style:none; margin:22px 0 0; padding:0; }
.pg-step { flex:1; min-width:0; position:relative; display:flex; flex-direction:column; align-items:center; text-align:center; }
.pg-step + .pg-step::before {
  content:''; position:absolute; top:13px; right:calc(50% + 16px); left:calc(-50% + 16px);
  height:2px; border-radius:2px; background:#e3eae8;
}
.pg-step + .pg-step.is-done::before,
.pg-step + .pg-step.is-current::before,
.pg-step + .pg-step.is-stopped::before { background:#9fd8c8; }
.pg-dot {
  width:28px; height:28px; border-radius:50%; flex-shrink:0;
  display:flex; align-items:center; justify-content:center; font-size:.66rem;
  background:#f1f3f3; color:#a3b0ad; position:relative; z-index:1;
}
.pg-step.is-done .pg-dot { background:#e0f3eb; color:#078665; }
.pg-step.is-current .pg-dot { background:#009b83; color:#fff; box-shadow:0 0 0 4px #e0f3eb; }
.pg-step.is-current .pg-dot i { font-size:.45rem; }
.pg-step.is-stopped .pg-dot { background:#dc2626; color:#fff; box-shadow:0 0 0 4px #fee2e2; }
.pg-step-copy { display:flex; flex-direction:column; margin-top:8px; padding:0 4px; }
.pg-step-title { font-size:.7rem; font-weight:700; color:#111827; line-height:1.3; }
.pg-step.is-pending .pg-step-title { color:#8a9794; font-weight:600; }
.pg-step-date { margin-top:2px; font-size:.64rem; color:#5b6f6b; min-height:1em; }
.pg-step.is-current .pg-step-date { color:#009b83; font-weight:700; }

.pg-current { margin-top:18px; padding:10px 14px; border-radius:12px; background:#eff8f6; font-size:.76rem; color:#24413c; }
.pg-current-label { display:block; font-size:.6rem; font-weight:700; letter-spacing:.06em; text-transform:uppercase; color:#009b83; margin-bottom:2px; }

.pg-activity { margin-top:22px; padding-top:18px; border-top:1px solid #e6efed; }
.pg-activity-head { display:flex; align-items:center; justify-content:space-between; margin-bottom:10px; }
.pg-activity-head h6 { margin:0; font-size:.8rem; font-weight:800; color:#111827; }
.pg-activity-toggle { border:0; background:none; padding:2px 0; font-size:.72rem; font-weight:700; color:#0f7d6b; }
.pg-activity-toggle:hover { text-decoration:underline; }
.pg-activity-toggle:focus-visible { outline:2px solid #009b83; outline-offset:2px; border-radius:4px; }
.pg-activity-list { list-style:none; margin:0; padding:0; }
.pg-activity-item { display:flex; gap:10px; padding:8px 0; }
.pg-activity-dot { width:8px; height:8px; margin-top:6px; border-radius:50%; flex-shrink:0; background:#9ca3af; }
.pg-activity-item.is-approve .pg-activity-dot { background:#059669; }
.pg-activity-item.is-submit .pg-activity-dot { background:#009b83; }
.pg-activity-item.is-payment .pg-activity-dot { background:#7c3aed; }
.pg-activity-item.is-revise .pg-activity-dot { background:#d97706; }
.pg-activity-item.is-reject .pg-activity-dot { background:#dc2626; }
.pg-activity-item.is-draft .pg-activity-dot { background:#64748b; }
.pg-activity-copy { flex:1; min-width:0; }
.pg-activity-row { display:flex; justify-content:space-between; gap:12px; flex-wrap:wrap; }
.pg-activity-label { font-size:.76rem; font-weight:700; color:#111827; }
.pg-activity-meta { font-size:.68rem; color:#5b6f6b; white-space:nowrap; }
.pg-activity-msg { margin-top:2px; font-size:.7rem; color:#5b6f6b; line-height:1.45; }
.pg-activity-note { margin-top:6px; padding:6px 10px; border-radius:8px; background:#fff8e8; font-size:.7rem; color:#7a4a00; }

@media (max-width:540px) {
  .pg-stepper { flex-direction:column; gap:0; }
  .pg-step { flex-direction:row; align-items:center; text-align:left; gap:12px; padding:6px 0; }
  .pg-step + .pg-step::before { top:-8px; bottom:auto; left:13px; right:auto; width:2px; height:16px; }
  .pg-step-copy { flex-direction:row; justify-content:space-between; align-items:baseline; flex:1; margin:0; padding:0; gap:8px; }
}

/* Beside the card (wide screens): the card sets the row height and the summary panel fills it,
   scrolling inside when its content is taller. */
@media (min-width:1100px) {
  .membership-overview.has-card { grid-template-columns:minmax(0,680px) minmax(340px,1fr); align-items:stretch; }
  .membership-overview.has-card .membership-card-column { display:flex; flex-direction:column; }
  .membership-overview.has-card .membership-card-column .id-card { flex:1; margin-bottom:0; align-content:start; }
  .membership-overview.has-card .membership-summary-column { position:relative; min-height:320px; }
  .membership-overview.has-card .mem-tabs-card { position:absolute; inset:0; display:flex; flex-direction:column; overflow:hidden; }
  .membership-overview.has-card .mem-tabs-card > [role=tabpanel] {
    flex:1; min-height:0; overflow-y:auto; margin-right:-10px; padding-right:10px;
    scrollbar-width:thin; scrollbar-color:#cfe3de transparent;
  }
  .membership-overview.has-card .mem-tabs { flex-shrink:0; margin-bottom:16px; }
  .membership-overview.has-card .mem-tab {
    display:flex; flex-direction:column; align-items:center; justify-content:center; gap:3px;
    min-width:0; padding:8px 6px; line-height:1.3; text-align:center;
  }
  .membership-overview.has-card .mem-tab > i { margin:0 !important; }
}

/* ── Years tab (compact) ── */
.membership-summary-column .my-summary { border-bottom:0; padding-bottom:0; margin-bottom:12px; }
.my-validity { padding:10px 14px; margin-bottom:16px; }
.my-validity-row { align-items:center; }
.my-validity-meter { margin-top:8px; }
.my-validity-note { margin-top:8px; }
.my-strip-label { font-size:.6rem; font-weight:700; letter-spacing:.06em; text-transform:uppercase; color:#4b5f5b; margin-bottom:8px; }
.my-strip { display:flex; flex-wrap:wrap; gap:6px; }
.my-chip {
  display:inline-flex; align-items:center; gap:5px; padding:5px 10px; border-radius:999px;
  border:1px solid transparent; font-size:.74rem; font-weight:700; line-height:1.2;
}
.my-chip i { font-size:.6rem; }
.my-chip.is-paid { background:#e0f3eb; color:#0f5f52; }
.my-chip.is-unpaid { background:#f4f6f6; color:#7d8b88; border-color:#e6ebea; }
.my-chip.is-due { background:#fff4dc; color:#8a4b00; }
.my-chip.is-selected { border-color:#009b83; box-shadow:0 0 0 2px #cdeee5; }
.my-chip:focus-visible { outline:2px solid #009b83; outline-offset:2px; }
.my-detail { display:flex; align-items:center; justify-content:space-between; gap:12px; margin-top:12px; padding:10px 14px; border-radius:12px; background:#f7faf9; }
.my-detail-title { font-size:.8rem; font-weight:800; color:#111827; }
.my-detail-sub { margin-top:2px; font-size:.7rem; color:#5b6f6b; }
.my-detail-amount { font-size:.8rem; font-weight:700; color:#1b6055; white-space:nowrap; }
.my-link { margin-top:10px; padding:2px 0; border:0; background:none; font-size:.74rem; font-weight:700; color:#0f7d6b; }
.my-link:hover { text-decoration:underline; }
.my-link:focus-visible { outline:2px solid #009b83; outline-offset:2px; border-radius:4px; }

/* ── Payments tab ── */
.pay-list { list-style:none; margin:0; padding:0; }
.pay-row { display:flex; align-items:center; gap:12px; padding:9px 0; border-bottom:1px solid #f0f4f3; }
.pay-row:last-child { border-bottom:0; }
.pay-icon { width:30px; height:30px; flex-shrink:0; border-radius:50%; display:flex; align-items:center; justify-content:center; background:#eef6f4; color:#0f7d6b; font-size:.72rem; }
.pay-copy { flex:1; min-width:0; }
.pay-title { display:flex; align-items:center; gap:8px; flex-wrap:wrap; font-size:.8rem; font-weight:700; color:#111827; }
.pay-sub { margin-top:1px; font-size:.68rem; color:#5b6f6b; overflow-wrap:anywhere; }
.pay-amount { font-size:.8rem; font-weight:700; color:#1b6055; white-space:nowrap; }

/* ── My details (collapsible) ── */
.mem-section-title { margin:4px 0 10px; font-size:.82rem; font-weight:800; color:#24413c; }
.mem-collapse > summary { cursor:pointer; list-style:none; }
.mem-collapse > summary::-webkit-details-marker { display:none; }
.mem-collapse > summary::after {
  content:'\f078'; font-family:'Font Awesome 6 Free'; font-weight:900; font-size:.7rem; color:#5b6f6b;
  margin-left:12px; transition:transform .2s;
}
.mem-collapse[open] > summary::after { transform:rotate(180deg); }
.mem-collapse:not([open]) > summary { border-bottom:0; }
.mem-collapse > summary:focus-visible { outline:2px solid #009b83; outline-offset:-2px; }
.mem-collapse > summary .btn { position:relative; z-index:1; }
.mem-collapse { margin-bottom:.75rem; }
.pg-activity-item.is-edit .pg-activity-dot { background:#0284c7; }
.pg-activity-item.is-system .pg-activity-dot { background:#475569; }

/* ── Audit log section ── */
.audit-count { margin-left:auto; font-size:.74rem; color:#5b6f6b; }
.audit-card .mem-card-body { padding:1rem 1.4rem 1.2rem; }
.audit-filters { display:flex; flex-wrap:wrap; gap:6px; margin-bottom:10px; }
.audit-filter {
  padding:4px 12px; border-radius:999px; border:1px solid #d6e4e1; background:#fff;
  font-size:.72rem; font-weight:700; color:#4b5f5b;
}
.audit-filter:hover { border-color:#9fd8c8; color:#0f5f52; }
.audit-filter.is-active { background:#0f5f52; border-color:#0f5f52; color:#fff; }
.audit-filter:focus-visible { outline:2px solid #009b83; outline-offset:2px; }
.audit-card .pg-activity-item { padding:10px 0; border-bottom:1px solid #f0f4f3; }
.audit-card .pg-activity-item:last-child { border-bottom:0; }
.audit-empty { margin:8px 0 0; font-size:.78rem; color:#5b6f6b; }

/* Match the visible card height to the adjacent summary after scaling. */
@media (min-width:1100px) {
  .membership-overview.has-card .id-card-frame { margin-bottom:0; }
  .membership-overview.has-card .id-card-frame > .id-card {
    min-height:calc(320px / var(--id-card-scale, 1));
  }
}
