/* Keep account tools at the prototype's compact section scale. */
.member-workspace-heading .page-title,
.support-page > .page-title {
  padding: 0 0 14px;
}

.member-workspace-heading h1,
.support-page > .page-title h1 {
  font-size: 22px;
  line-height: 1.4;
  font-weight: 650;
  letter-spacing: -.02em;
}

.member-identity { flex-direction: column; gap: 8px; padding: 8px 0 22px; text-align: center; }
.member-identity .profile-image { width: 74px; height: 74px; flex: 0 0 74px; border: 3px solid var(--soft); border-radius: 50%; }
.member-identity-name { justify-content: center; }
.member-identity strong { font-size: 19px; }
.member-identity small { max-width: 100%; color: var(--muted); font-size: 11px; overflow-wrap: anywhere; }
.member-navigation { gap: 5px; padding: 0; border: 0; }
.member-navigation a, .member-sidebar-actions > * {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  min-height: 43px;
  padding: 8px 12px;
  border-radius: 9px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}
.member-navigation a[aria-current="page"], .member-navigation a:hover, .member-sidebar-actions > :hover {
  color: var(--accent);
  background: var(--soft);
}
.member-sidebar-actions { display: grid; gap: 3px; padding-top: 29px; }
.member-sidebar-actions a .icon { transform: rotate(180deg); }
.member-sidebar-actions button { width: 100%; border: 0; background: transparent; cursor: pointer; font-family: inherit; }
.member-workspace-heading, .member-collection-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 14px;
}
.member-workspace-heading { margin-bottom: 13px; }
.member-workspace-heading .page-title { padding: 0; }
.member-collection-toolbar { margin-bottom: 14px; }
.member-collection-toolbar .tabs { min-width: 0; }
.member-message-link { display: inline-flex; align-items: center; gap: 7px; position: relative; font-size: 13px; }
.member-message-link .notification-count { margin: 0; }
.member-vip-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 102px;
  padding: 16px 20px;
  border: 1px solid #d9c3e8;
  border-radius: 14px 14px 0 0;
  background: linear-gradient(120deg, #f6edfc, #e4cef1);
  color: #502674;
}
.member-vip-level, .member-vip-details { display: flex; align-items: center; gap: 10px; min-width: 0; }
.member-vip-level > span:last-child { display: grid; gap: 4px; }
.member-vip-level strong { font-size: clamp(16px, 2.2vw, 23px); line-height: 1.2; }
.member-vip-level small { font-size: 12px; }
.member-vip-details { flex: none; border-radius: 20px; padding: 6px 11px; background: #5d3280; color: #fff; font-size: 12px; white-space: nowrap; }
.member-vip-details .icon { width: 13px; height: 13px; }
:root[data-theme="dark"] .member-vip-card { border-color: #795693; background: linear-gradient(120deg, #493252, #624479); color: #f5e6ff; }
:root[data-theme="dark"] .member-vip-details { background: #3b254a; }
.member-point-shortcuts, .member-overview-links {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
}
.member-point-shortcuts { border-top: 0; border-radius: 0 0 14px 14px; }
.member-point-shortcuts > *, .member-overview-links > * {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  min-width: 0;
  min-height: 67px;
  padding: 7px 4px;
  text-align: center;
  font-size: 12px;
}
.member-point-shortcuts > :not(:last-child), .member-overview-links > :not(:last-child) { border-inline-end: 1px solid var(--line); }
.member-point-shortcuts > button { border: 0; background: transparent; color: inherit; cursor: pointer; font-family: inherit; }
.member-point-shortcuts > button:disabled { color: var(--muted); cursor: default; }
.member-point-shortcuts strong { font-size: 22px; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.member-point-shortcuts .icon, .member-overview-links .icon { color: var(--accent); }
.member-overview-links .notification-count { position: absolute; top: 6px; inset-inline-start: calc(50% + 7px); }
.member-overview-menu { border: 1px solid var(--line); border-radius: 12px; padding-inline: 14px; background: var(--surface); }
.member-overview-menu a { display: flex; align-items: center; gap: 10px; min-height: 47px; font-size: 13px; }
.member-overview-menu a + a { border-top: 1px solid var(--line); }
.member-overview-menu a .icon { color: var(--accent); }
.member-overview-menu a small { color: var(--muted); }
.member-overview-menu a .icon:last-child { margin-inline-start: auto; }
.member-view-actions, .member-point-tabs { margin-bottom: 12px; }
.member-discovery { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.member-checkin-calendar { display: grid; grid-template-columns: repeat(auto-fit, minmax(66px, 1fr)); gap: 6px; padding: 0; margin: 0 0 10px; list-style: none; }
.member-checkin-calendar li { display: grid; gap: 3px; padding: 8px 4px; border: 1px solid var(--line); border-radius: 7px; text-align: center; font-size: 12px; }
.member-checkin-calendar .member-checkin-done { background: var(--soft); color: var(--accent); }
.member-checkin-calendar li[aria-current="step"] { border-color: var(--accent); }
.member-profile-phone b { min-width: 0; overflow-wrap: anywhere; text-align: end; }
.member-password-methods { display: grid; gap: 8px; }
.member-password-methods details { padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; }
.member-password-methods summary { cursor: pointer; font-weight: 600; }
.member-password-methods details[open] > summary { margin-bottom: 10px; }
.collection-row > .collection-link:has(> .collection-copy:first-child) { grid-template-columns: minmax(0, 1fr); }
.redemption-coupon-main > .text-link { margin-top: 8px; }

.auth-card .page-title h1 {
  font-size: 26px;
  line-height: 1.35;
  font-weight: 650;
}

.auth-slogan {
  margin: 0;
  font-size: 30px;
  line-height: 1.35;
  font-weight: 650;
}

.auth-brand img {
  width: min(100%, 220px);
  aspect-ratio: 1;
  object-fit: contain;
}

@media (max-width: 740px) {
  .member-identity { display: grid; grid-template-columns: 43px minmax(0, 1fr); gap: 2px 9px; text-align: start; padding: 0 0 10px; }
  .member-identity .profile-image { grid-row: span 2; width: 43px; height: 43px; }
  .member-identity-name { justify-content: start; }
  .member-navigation { grid-template-columns: repeat(auto-fit, minmax(61px, 1fr)); gap: 4px; }
  .member-navigation a { flex-direction: column; justify-content: center; gap: 4px; min-height: 49px; padding: 4px; text-align: center; font-size: 11px; }
  .member-sidebar-actions { display: flex; gap: 9px; padding-top: 7px; }
  .member-sidebar-actions > * { min-height: 30px; padding: 3px 5px; font-size: 11px; gap: 5px; }
  .member-sidebar-actions button { width: auto; }
  .member-vip-card { padding: 12px; }
  .auth-slogan {
    font-size: 20px;
  }

  .auth-brand img {
    width: 80px;
  }
}
