/* You v1.1 rebuild: a clean personal workspace, not a reskinned settings list. */
body.member-mode #profile.profile-view.active {
  display: block !important;
  max-width: 1120px !important;
  margin-inline: auto !important;
  padding: var(--bm-space-10) 0 var(--bm-space-16) !important;
  background: var(--bm-color-canvas) !important;
}

/* Contacts: render a scannable QR canvas, with explicit loading/error states. */
body.member-mode .member-you-v11-modal--contact-card .contact-qr-preview {
  display: grid !important;
  place-items: center !important;
  width: 208px !important;
  min-height: 208px !important;
  box-sizing: border-box !important;
  padding: 12px !important;
  border: 1px solid var(--bm-color-line) !important;
  border-radius: var(--bm-radius-panel) !important;
  background: var(--bm-color-surface) !important;
  box-shadow: var(--bm-shadow-soft) !important;
}
body.member-mode .member-you-v11-modal--contact-card .contact-qr-preview .contact-qr-svg {
  display: block !important;
  width: 184px !important;
  height: 184px !important;
  image-rendering: pixelated !important;
  border-radius: 8px !important;
}
body.member-mode .member-you-v11-modal--contact-card .contact-qr-loading,
body.member-mode .member-you-v11-modal--contact-card .contact-qr-error {
  color: var(--bm-color-muted) !important;
  font: 600 12px / 18px var(--bm-font-sans) !important;
  text-align: center !important;
}
body.member-mode .member-you-v11-modal--contact-card .contact-qr-preview[data-qr-state="error"] {
  gap: 8px !important;
  align-content: center !important;
  background: var(--bm-color-fill) !important;
}
body.member-mode .member-you-v11-modal--contact-card .contact-qr-retry {
  min-height: 36px !important;
  padding: 0 12px !important;
  border: 1px solid var(--bm-color-line) !important;
  border-radius: var(--bm-radius-control) !important;
  background: var(--bm-color-surface) !important;
  color: var(--bm-color-accent) !important;
  font: 700 12px / 16px var(--bm-font-sans) !important;
  cursor: pointer !important;
}

body.member-mode #profile .member-profile-page-header {
  margin: 0 0 var(--bm-space-8) !important;
  padding: 0 !important;
  background: transparent !important;
}

body.member-mode #profile .member-profile-page-header .eyebrow { margin: 0 0 var(--bm-space-2) !important; }
body.member-mode #profile .member-profile-page-header h1 {
  margin: 0 !important;
  color: var(--bm-color-ink) !important;
  font: 700 clamp(32px, 4vw, 40px) / 1.15 var(--bm-font-sans) !important;
  letter-spacing: -.035em !important;
}
body.member-mode #profile .member-profile-page-header p:not(.eyebrow) {
  max-width: 56ch !important;
  margin: var(--bm-space-2) 0 0 !important;
  color: var(--bm-color-copy) !important;
  font: 400 14px / 20px var(--bm-font-sans) !important;
}

body.member-mode #profile .profile-hero-web {
  display: grid !important;
  grid-template-columns: 88px minmax(0, 1fr) !important;
  align-items: center !important;
  gap: var(--bm-space-5) !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: var(--bm-space-6) !important;
  border: 1px solid var(--bm-color-line) !important;
  border-radius: var(--bm-radius-panel) !important;
  background: var(--bm-color-surface) !important;
  box-shadow: none !important;
  color: var(--bm-color-ink) !important;
}
body.member-mode #profile .profile-hero-web .profile-avatar {
  width: 88px !important;
  height: 88px !important;
  border: 1px solid var(--bm-color-line) !important;
  background: var(--bm-color-fill) !important;
  color: var(--bm-color-action) !important;
  box-shadow: none !important;
}
body.member-mode #profile .profile-hero-web .eyebrow { color: var(--bm-color-muted) !important; }
body.member-mode #profile .profile-hero-web h1 {
  margin: 0 !important;
  color: var(--bm-color-ink) !important;
  font: 700 28px / 34px var(--bm-font-sans) !important;
  letter-spacing: -.03em !important;
}
body.member-mode #profile .profile-hero-web p:not(.eyebrow) { color: var(--bm-color-copy) !important; }
body.member-mode #profile .profile-hero-web .profile-hero-meta { margin-top: var(--bm-space-3) !important; }
body.member-mode #profile .profile-hero-web .profile-hero-meta span {
  border-color: var(--bm-color-line) !important;
  background: var(--bm-color-fill) !important;
  color: var(--bm-color-copy) !important;
}

body.member-mode #profile .member-you-account-hub {
  display: grid !important;
  gap: var(--bm-space-6) !important;
  margin: var(--bm-space-6) 0 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}
body.member-mode #profile .member-you-v11-heading {
  display: flex !important;
  align-items: end !important;
  justify-content: space-between !important;
  gap: var(--bm-space-6) !important;
  padding: 0 !important;
  border: 0 !important;
}
body.member-mode #profile .member-you-v11-heading h2 {
  margin: var(--bm-space-1) 0 var(--bm-space-2) !important;
  color: var(--bm-color-ink) !important;
  font: 700 clamp(22px, 2.4vw, 28px) / 1.2 var(--bm-font-sans) !important;
  letter-spacing: -.025em !important;
}
body.member-mode #profile .member-you-v11-heading p:not(.eyebrow) {
  margin: 0 !important;
  color: var(--bm-color-copy) !important;
  font: 400 14px / 20px var(--bm-font-sans) !important;
}
body.member-mode #profile .member-you-v11-heading .primary {
  flex: 0 0 auto !important;
  min-height: var(--bm-control-standard) !important;
  padding-inline: var(--bm-space-5) !important;
  border-radius: var(--bm-radius-control) !important;
  background: var(--bm-color-action) !important;
  box-shadow: none !important;
}

body.member-mode #profile .member-you-v11-groups {
  display: grid !important;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr) !important;
  gap: var(--bm-space-5) !important;
}
body.member-mode #profile .member-you-v11-group {
  overflow: hidden !important;
  border: 1px solid var(--bm-color-line) !important;
  border-radius: var(--bm-radius-panel) !important;
  background: var(--bm-color-surface) !important;
}
body.member-mode #profile .member-you-v11-group > header {
  padding: var(--bm-space-5) var(--bm-space-5) var(--bm-space-4) !important;
  border-bottom: 1px solid var(--bm-color-line) !important;
}
body.member-mode #profile .member-you-v11-group > header .eyebrow { margin: 0 0 var(--bm-space-1) !important; }
body.member-mode #profile .member-you-v11-group > header h3 {
  margin: 0 !important;
  color: var(--bm-color-ink) !important;
  font: 700 18px / 24px var(--bm-font-sans) !important;
  letter-spacing: -.015em !important;
}
body.member-mode #profile .member-you-v11-rows { display: grid !important; }
body.member-mode #profile .member-you-v11-row {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) minmax(120px, .56fr) 18px !important;
  align-items: center !important;
  gap: var(--bm-space-4) !important;
  width: 100% !important;
  min-height: 88px !important;
  padding: var(--bm-space-4) var(--bm-space-5) !important;
  border: 0 !important;
  border-bottom: 1px solid var(--bm-color-line) !important;
  background: var(--bm-color-surface) !important;
  color: inherit !important;
  text-align: left !important;
  cursor: pointer !important;
  transition: background-color var(--bm-motion-standard) var(--bm-ease-standard) !important;
}
body.member-mode #profile .member-you-v11-row:last-child { border-bottom: 0 !important; }
body.member-mode #profile .member-you-v11-row:hover { background: var(--bm-color-fill) !important; }
body.member-mode #profile .member-you-v11-row:focus-visible {
  outline: 3px solid rgba(10, 102, 255, .24) !important;
  outline-offset: -3px !important;
  background: var(--bm-color-selected) !important;
}
body.member-mode #profile .member-you-v11-row > span,
body.member-mode #profile .member-you-v11-row > em {
  display: grid !important;
  gap: var(--bm-space-1) !important;
  min-width: 0 !important;
}
body.member-mode #profile .member-you-v11-row b,
body.member-mode #profile .member-you-v11-row strong {
  color: var(--bm-color-ink) !important;
  font: 600 14px / 20px var(--bm-font-sans) !important;
  letter-spacing: 0 !important;
}
body.member-mode #profile .member-you-v11-row small {
  color: var(--bm-color-muted) !important;
  font: 400 12px / 16px var(--bm-font-sans) !important;
}
body.member-mode #profile .member-you-v11-row > em {
  color: var(--bm-color-copy) !important;
  font-style: normal !important;
  text-align: right !important;
}
body.member-mode #profile .member-you-v11-row .member-you-setting-chevron {
  width: 18px !important;
  height: 18px !important;
  color: var(--bm-color-muted) !important;
  transition: color var(--bm-motion-standard) var(--bm-ease-standard), transform var(--bm-motion-standard) var(--bm-ease-standard) !important;
}
body.member-mode #profile .member-you-v11-row:hover .member-you-setting-chevron,
body.member-mode #profile .member-you-v11-row:focus-visible .member-you-setting-chevron {
  color: var(--bm-color-action) !important;
  transform: translateX(2px) !important;
}

@media (max-width: 820px) {
  body.member-mode #profile.profile-view.active { padding: var(--bm-space-6) var(--bm-space-4) var(--bm-space-12) !important; }
  body.member-mode #profile .profile-hero-web { grid-template-columns: 64px minmax(0, 1fr) !important; gap: var(--bm-space-4) !important; padding: var(--bm-space-5) !important; }
  body.member-mode #profile .profile-hero-web .profile-avatar { width: 64px !important; height: 64px !important; }
  body.member-mode #profile .profile-hero-web h1 { font-size: 24px !important; line-height: 28px !important; }
  body.member-mode #profile .member-you-v11-heading { align-items: stretch !important; flex-direction: column !important; }
  body.member-mode #profile .member-you-v11-heading .primary { width: 100% !important; }
  body.member-mode #profile .member-you-v11-groups { grid-template-columns: 1fr !important; }
  body.member-mode #profile .member-you-v11-row { grid-template-columns: minmax(0, 1fr) 18px !important; gap: var(--bm-space-3) !important; }
  body.member-mode #profile .member-you-v11-row > em { grid-column: 1 !important; text-align: left !important; }
}

/* You V1.1 routes: the panels opened from the workspace are deliberate
   editing surfaces, rather than legacy generic dialogs. */
body.member-mode .member-you-v11-backdrop {
  align-items: flex-start !important;
  overflow-y: auto !important;
  padding: clamp(20px, 5vh, 56px) 20px !important;
  background: rgba(15, 23, 42, .24) !important;
}
body.member-mode .member-you-v11-modal {
  width: min(720px, 100%) !important;
  max-width: 720px !important;
  max-height: none !important;
  margin: 0 auto !important;
  padding: clamp(28px, 4vw, 44px) !important;
  border: 1px solid var(--bm-color-line) !important;
  border-radius: var(--bm-radius-panel) !important;
  background: var(--bm-color-surface) !important;
  box-shadow: 0 18px 46px rgba(15, 23, 42, .14) !important;
  color: var(--bm-color-ink) !important;
}
body.member-mode .member-you-v11-modal .modal-close {
  top: 16px !important;
  right: 16px !important;
  display: grid !important;
  width: 36px !important;
  height: 36px !important;
  place-items: center !important;
  border: 1px solid var(--bm-color-line) !important;
  border-radius: 50% !important;
  background: var(--bm-color-surface) !important;
  color: var(--bm-color-copy) !important;
  font-size: 24px !important;
  line-height: 1 !important;
}
body.member-mode .member-you-v11-modal .modal-close:hover { background: var(--bm-color-fill) !important; color: var(--bm-color-ink) !important; }
body.member-mode .member-you-v11-modal .eyebrow {
  margin: 0 0 var(--bm-space-2) !important;
  color: var(--bm-color-muted) !important;
  font: 700 11px / 16px var(--bm-font-sans) !important;
  letter-spacing: .12em !important;
}
body.member-mode .member-you-v11-modal h2 {
  max-width: 18ch !important;
  margin: 0 !important;
  color: var(--bm-color-ink) !important;
  font: 700 clamp(26px, 3.4vw, 34px) / 1.15 var(--bm-font-sans) !important;
  letter-spacing: -.035em !important;
}
body.member-mode .member-you-v11-modal .modal-copy {
  max-width: 58ch !important;
  margin: var(--bm-space-3) 0 var(--bm-space-7) !important;
  color: var(--bm-color-copy) !important;
  font: 400 14px / 21px var(--bm-font-sans) !important;
}
body.member-mode .member-you-v11-modal .plan-form {
  display: grid !important;
  gap: var(--bm-space-5) !important;
}
body.member-mode .member-you-v11-modal .plan-form > label,
body.member-mode .member-you-v11-modal .plan-form fieldset > label {
  display: grid !important;
  gap: var(--bm-space-2) !important;
  color: var(--bm-color-ink) !important;
  font: 600 13px / 18px var(--bm-font-sans) !important;
}
body.member-mode .member-you-v11-modal input:not([type="checkbox"]),
body.member-mode .member-you-v11-modal select,
body.member-mode .member-you-v11-modal textarea {
  width: 100% !important;
  min-height: 46px !important;
  padding: 11px 12px !important;
  border: 1px solid var(--bm-color-line) !important;
  border-radius: var(--bm-radius-control) !important;
  background: var(--bm-color-surface) !important;
  color: var(--bm-color-ink) !important;
  font: 400 14px / 20px var(--bm-font-sans) !important;
  box-shadow: none !important;
}
body.member-mode .member-you-v11-modal textarea { min-height: 112px !important; resize: vertical !important; }
body.member-mode .member-you-v11-modal input:focus,
body.member-mode .member-you-v11-modal select:focus,
body.member-mode .member-you-v11-modal textarea:focus {
  outline: 3px solid rgba(10, 102, 255, .18) !important;
  outline-offset: 1px !important;
  border-color: var(--bm-color-action) !important;
}
body.member-mode .member-you-v11-modal .check-row {
  display: flex !important;
  align-items: flex-start !important;
  gap: var(--bm-space-3) !important;
  padding: var(--bm-space-4) !important;
  border: 1px solid var(--bm-color-line) !important;
  border-radius: var(--bm-radius-control) !important;
  background: var(--bm-color-surface) !important;
  font: 500 13px / 19px var(--bm-font-sans) !important;
}
body.member-mode .member-you-v11-modal .check-row input { width: 16px !important; height: 16px !important; margin: 1px 0 0 !important; accent-color: var(--bm-color-action) !important; }
body.member-mode .member-you-v11-modal .credit-notice,
body.member-mode .member-you-v11-modal .contact-card-boundary {
  display: grid !important;
  gap: var(--bm-space-1) !important;
  padding: var(--bm-space-4) !important;
  border: 1px solid var(--bm-color-line) !important;
  border-left: 3px solid var(--bm-color-action) !important;
  border-radius: 0 var(--bm-radius-control) var(--bm-radius-control) 0 !important;
  background: var(--bm-color-fill) !important;
}
body.member-mode .member-you-v11-modal .credit-notice b,
body.member-mode .member-you-v11-modal .contact-card-boundary b { color: var(--bm-color-ink) !important; font: 700 13px / 18px var(--bm-font-sans) !important; }
body.member-mode .member-you-v11-modal .credit-notice span,
body.member-mode .member-you-v11-modal .contact-card-boundary span { color: var(--bm-color-copy) !important; font: 400 12px / 18px var(--bm-font-sans) !important; }
body.member-mode .member-you-v11-modal .primary,
body.member-mode .member-you-v11-modal .outline-button,
body.member-mode .member-you-v11-modal .text-button {
  min-height: 44px !important;
  border-radius: var(--bm-radius-control) !important;
  font: 600 14px / 20px var(--bm-font-sans) !important;
}
body.member-mode .member-you-v11-modal .primary { background: var(--bm-color-action) !important; box-shadow: none !important; }
body.member-mode .member-you-v11-modal .outline-button { border-color: var(--bm-color-line) !important; background: var(--bm-color-surface) !important; color: var(--bm-color-ink) !important; }

/* Choice sheets are routes, not a bare list of links. */
body.member-mode .member-you-v11-modal--chooser .you-settings-chooser-list {
  display: grid !important;
  margin-top: var(--bm-space-6) !important;
  border: 1px solid var(--bm-color-line) !important;
  border-radius: var(--bm-radius-panel) !important;
  overflow: hidden !important;
}
body.member-mode .member-you-v11-modal--chooser .you-settings-chooser-list button {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) 20px !important;
  align-items: center !important;
  gap: var(--bm-space-4) !important;
  min-height: 82px !important;
  padding: var(--bm-space-4) var(--bm-space-5) !important;
  border: 0 !important;
  border-bottom: 1px solid var(--bm-color-line) !important;
  background: var(--bm-color-surface) !important;
  text-align: left !important;
}
body.member-mode .member-you-v11-modal--chooser .you-settings-chooser-list button:last-child { border-bottom: 0 !important; }
body.member-mode .member-you-v11-modal--chooser .you-settings-chooser-list button:hover { background: var(--bm-color-fill) !important; }
body.member-mode .member-you-v11-modal--chooser .you-settings-chooser-list span { display: grid !important; gap: 4px !important; }
body.member-mode .member-you-v11-modal--chooser .you-settings-chooser-list b { color: var(--bm-color-ink) !important; font: 700 15px / 20px var(--bm-font-sans) !important; }
body.member-mode .member-you-v11-modal--chooser .you-settings-chooser-list small { color: var(--bm-color-copy) !important; font: 400 13px / 19px var(--bm-font-sans) !important; }
body.member-mode .member-you-v11-modal--chooser .you-settings-chevron { width: 20px !important; height: 20px !important; color: var(--bm-color-muted) !important; }

/* Profile and contact editing get their own compact editorial structure. */
body.member-mode .member-you-v11-modal--profile-editor { width: min(860px, 100%) !important; max-width: 860px !important; }
body.member-mode .member-you-v11-modal--profile-editor .profile-studio-heading,
body.member-mode .member-you-v11-modal--contact-card .contact-card-modal > header {
  display: flex !important;
  align-items: flex-start !important;
  justify-content: space-between !important;
  gap: var(--bm-space-5) !important;
  padding-bottom: var(--bm-space-6) !important;
  border-bottom: 1px solid var(--bm-color-line) !important;
}
body.member-mode .member-you-v11-modal--profile-editor .profile-studio-score {
  flex: 0 0 auto !important;
  padding: 8px 10px !important;
  border: 1px solid var(--bm-color-line) !important;
  border-radius: 999px !important;
  background: var(--bm-color-fill) !important;
  color: var(--bm-color-copy) !important;
  font: 700 12px / 16px var(--bm-font-sans) !important;
}
body.member-mode .member-you-v11-modal--profile-editor .profile-readiness { margin: var(--bm-space-5) 0 !important; border-radius: var(--bm-radius-control) !important; }
body.member-mode .member-you-v11-modal--profile-editor .profile-editor-section {
  overflow: hidden !important;
  border: 1px solid var(--bm-color-line) !important;
  border-radius: var(--bm-radius-control) !important;
  background: var(--bm-color-surface) !important;
}
body.member-mode .member-you-v11-modal--profile-editor .profile-editor-section summary {
  min-height: 58px !important;
  padding: var(--bm-space-4) var(--bm-space-5) !important;
  color: var(--bm-color-ink) !important;
  font: 700 14px / 20px var(--bm-font-sans) !important;
}
body.member-mode .member-you-v11-modal--profile-editor .profile-editor-body { padding: var(--bm-space-5) !important; border-top: 1px solid var(--bm-color-line) !important; }
body.member-mode .member-you-v11-modal--profile-editor .profile-save { position: sticky !important; bottom: 0 !important; margin-top: var(--bm-space-2) !important; }
body.member-mode .member-you-v11-modal--contact-card .contact-card-modal > header { margin-bottom: var(--bm-space-6) !important; }
body.member-mode .member-you-v11-modal--contact-card .contact-qr-preview { flex: 0 0 auto !important; }
body.member-mode .member-you-v11-modal--contact-card .modal-actions,
body.member-mode .member-you-v11-modal .action-receipt-actions { display: flex !important; flex-wrap: wrap !important; gap: var(--bm-space-3) !important; margin-top: var(--bm-space-6) !important; }

/* Security, notification and completion surfaces use the same readable rail. */
body.member-mode .member-you-v11-modal .you-security-list,
body.member-mode .member-you-v11-modal .profile-conversion-modal,
body.member-mode .member-you-v11-modal .contact-card-privacy {
  display: grid !important;
  gap: 0 !important;
  overflow: hidden !important;
  margin-top: var(--bm-space-6) !important;
  border: 1px solid var(--bm-color-line) !important;
  border-radius: var(--bm-radius-panel) !important;
  background: var(--bm-color-surface) !important;
}
body.member-mode .member-you-v11-modal .you-security-list article,
body.member-mode .member-you-v11-modal .profile-conversion-modal article {
  display: grid !important;
  grid-template-columns: 28px minmax(0, 1fr) auto !important;
  align-items: center !important;
  gap: var(--bm-space-3) !important;
  min-height: 76px !important;
  padding: var(--bm-space-4) var(--bm-space-5) !important;
  border-bottom: 1px solid var(--bm-color-line) !important;
}
body.member-mode .member-you-v11-modal .you-security-list article:last-child,
body.member-mode .member-you-v11-modal .profile-conversion-modal article:last-child { border-bottom: 0 !important; }
body.member-mode .member-you-v11-modal .you-security-list article > span { color: var(--bm-color-muted) !important; font: 700 11px / 16px var(--bm-font-sans) !important; }
body.member-mode .member-you-v11-modal .you-security-list b,
body.member-mode .member-you-v11-modal .profile-conversion-modal b { color: var(--bm-color-ink) !important; font: 700 14px / 20px var(--bm-font-sans) !important; }
body.member-mode .member-you-v11-modal .you-security-list small,
body.member-mode .member-you-v11-modal .profile-conversion-modal small { color: var(--bm-color-copy) !important; font: 400 12px / 18px var(--bm-font-sans) !important; }
body.member-mode .member-you-v11-modal .contact-card-privacy .check-row { margin: 0 !important; border: 0 !important; border-bottom: 1px solid var(--bm-color-line) !important; border-radius: 0 !important; }
body.member-mode .member-you-v11-modal .contact-card-privacy .check-row:last-child { border-bottom: 0 !important; }

/* Security is a compact decision workspace, not a numbered settings list. */
body.member-mode .member-you-v11-modal--security .you-security-workspace,
body.member-mode .member-you-v11-modal--data .you-data-workspace,
body.member-mode .member-you-v11-modal--password .you-password-workspace { display: grid !important; gap: var(--bm-space-6) !important; }
body.member-mode .member-you-v11-modal--security .modal-copy,
body.member-mode .member-you-v11-modal--data .modal-copy,
body.member-mode .member-you-v11-modal--password .modal-copy { margin-bottom: 0 !important; }
body.member-mode .member-you-v11-modal--security .you-security-status {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: var(--bm-space-4) !important;
  padding: var(--bm-space-5) !important;
  border: 1px solid var(--bm-color-line) !important;
  border-radius: var(--bm-radius-panel) !important;
  background: var(--bm-color-fill) !important;
}
body.member-mode .member-you-v11-modal--security .you-security-status > div { display: grid !important; gap: 3px !important; }
body.member-mode .member-you-v11-modal--security .you-security-status .eyebrow { margin: 0 !important; }
body.member-mode .member-you-v11-modal--security .you-security-status b { color: var(--bm-color-ink) !important; font: 700 16px / 22px var(--bm-font-sans) !important; }
body.member-mode .member-you-v11-modal--security .you-security-status small { color: var(--bm-color-copy) !important; font: 400 12px / 18px var(--bm-font-sans) !important; }
body.member-mode .member-you-v11-modal--security .you-security-status > span { flex: 0 0 auto !important; padding: 6px 9px !important; border: 1px solid rgba(23, 153, 98, .22) !important; border-radius: 999px !important; background: #effbf5 !important; color: #087849 !important; font: 700 12px / 16px var(--bm-font-sans) !important; }
body.member-mode .member-you-v11-modal--security .you-security-routes { overflow: hidden !important; border: 1px solid var(--bm-color-line) !important; border-radius: var(--bm-radius-panel) !important; }
body.member-mode .member-you-v11-modal--security .you-security-routes button {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto !important;
  align-items: center !important;
  gap: var(--bm-space-4) !important;
  width: 100% !important;
  min-height: 86px !important;
  padding: var(--bm-space-4) var(--bm-space-5) !important;
  border: 0 !important;
  border-bottom: 1px solid var(--bm-color-line) !important;
  background: var(--bm-color-surface) !important;
  color: var(--bm-color-ink) !important;
  text-align: left !important;
}
body.member-mode .member-you-v11-modal--security .you-security-routes button:last-child { border-bottom: 0 !important; }
body.member-mode .member-you-v11-modal--security .you-security-routes button:hover { background: var(--bm-color-fill) !important; }
body.member-mode .member-you-v11-modal--security .you-security-routes span { display: grid !important; gap: 4px !important; }
body.member-mode .member-you-v11-modal--security .you-security-routes b { font: 700 15px / 20px var(--bm-font-sans) !important; }
body.member-mode .member-you-v11-modal--security .you-security-routes small { color: var(--bm-color-copy) !important; font: 400 13px / 19px var(--bm-font-sans) !important; }
body.member-mode .member-you-v11-modal--security .you-security-routes em { color: var(--bm-color-action) !important; font: 700 13px / 18px var(--bm-font-sans) !important; font-style: normal !important; }
body.member-mode .member-you-v11-modal--security .you-security-footer,
body.member-mode .member-you-v11-modal--data .you-data-actions { display: flex !important; align-items: center !important; justify-content: space-between !important; gap: var(--bm-space-4) !important; padding-top: var(--bm-space-2) !important; border-top: 1px solid var(--bm-color-line) !important; }
body.member-mode .member-you-v11-modal--security .you-security-footer p { max-width: 44ch !important; margin: 0 !important; color: var(--bm-color-muted) !important; font: 400 12px / 18px var(--bm-font-sans) !important; }
body.member-mode .member-you-v11-modal--data .you-data-boundaries { overflow: hidden !important; border: 1px solid var(--bm-color-line) !important; border-radius: var(--bm-radius-panel) !important; }
body.member-mode .member-you-v11-modal--data .you-data-boundaries article { display: grid !important; gap: 4px !important; padding: var(--bm-space-5) !important; border-bottom: 1px solid var(--bm-color-line) !important; }
body.member-mode .member-you-v11-modal--data .you-data-boundaries article:last-child { border-bottom: 0 !important; }
body.member-mode .member-you-v11-modal--data .you-data-boundaries b,
body.member-mode .member-you-v11-modal--data .you-data-actions b { color: var(--bm-color-ink) !important; font: 700 15px / 20px var(--bm-font-sans) !important; }
body.member-mode .member-you-v11-modal--data .you-data-boundaries small,
body.member-mode .member-you-v11-modal--data .you-data-actions small { color: var(--bm-color-copy) !important; font: 400 12px / 18px var(--bm-font-sans) !important; }
body.member-mode .member-you-v11-modal--data .you-data-actions > div { display: grid !important; gap: 3px !important; max-width: 28ch !important; }
body.member-mode .member-you-v11-modal--data .danger-text { color: #b42318 !important; }

body.member-mode.member-you-v11-membership-open .upgrade-panel {
  width: min(760px, calc(100vw - 40px)) !important;
  max-width: 760px !important;
  max-height: min(860px, calc(100vh - 48px)) !important;
  padding: clamp(28px, 4vw, 44px) !important;
  border-color: var(--bm-color-line) !important;
  border-radius: var(--bm-radius-panel) !important;
  background: var(--bm-color-surface) !important;
  box-shadow: 0 18px 46px rgba(15, 23, 42, .14) !important;
  color: var(--bm-color-ink) !important;
}
body.member-mode.member-you-v11-membership-open .upgrade-panel::before { background: var(--bm-color-surface) !important; }
body.member-mode.member-you-v11-membership-open .upgrade-panel .membership-photo,
body.member-mode.member-you-v11-membership-open .upgrade-panel .demo-membership-controls { display: none !important; }
body.member-mode.member-you-v11-membership-open .upgrade-panel .close-upgrade {
  top: 16px !important;
  right: 16px !important;
  width: 36px !important;
  height: 36px !important;
  border: 1px solid var(--bm-color-line) !important;
  border-radius: 50% !important;
  background: var(--bm-color-surface) !important;
  color: var(--bm-color-copy) !important;
}
body.member-mode.member-you-v11-membership-open .upgrade-panel .eyebrow { margin: 0 0 var(--bm-space-2) !important; color: var(--bm-color-muted) !important; }
body.member-mode.member-you-v11-membership-open .upgrade-panel h2 {
  max-width: 15ch !important;
  margin: 0 !important;
  color: var(--bm-color-ink) !important;
  font: 700 clamp(28px, 3.6vw, 36px) / 1.12 var(--bm-font-sans) !important;
  letter-spacing: -.04em !important;
}
body.member-mode.member-you-v11-membership-open .upgrade-panel .upgrade-intro { max-width: 56ch !important; margin: var(--bm-space-3) 0 var(--bm-space-6) !important; color: var(--bm-color-copy) !important; font: 400 14px / 21px var(--bm-font-sans) !important; }
body.member-mode.member-you-v11-membership-open .upgrade-panel .membership-value-row { display: flex !important; flex-wrap: wrap !important; gap: var(--bm-space-2) !important; margin: 0 0 var(--bm-space-5) !important; }
body.member-mode.member-you-v11-membership-open .upgrade-panel .membership-value-row span,
body.member-mode.member-you-v11-membership-open .upgrade-panel .membership-benefit-list span { padding: 6px 9px !important; border: 1px solid var(--bm-color-line) !important; border-radius: 999px !important; background: var(--bm-color-fill) !important; color: var(--bm-color-copy) !important; font: 600 12px / 16px var(--bm-font-sans) !important; }
body.member-mode.member-you-v11-membership-open .upgrade-panel .plan-summary,
body.member-mode.member-you-v11-membership-open .upgrade-panel .membership-free-choice { margin: 0 0 var(--bm-space-5) !important; padding: var(--bm-space-4) var(--bm-space-5) !important; border: 1px solid var(--bm-color-line) !important; border-radius: var(--bm-radius-control) !important; background: var(--bm-color-surface) !important; color: var(--bm-color-ink) !important; box-shadow: none !important; }
body.member-mode.member-you-v11-membership-open .upgrade-panel .membership-choice-heading,
body.member-mode.member-you-v11-membership-open .upgrade-panel .points-heading { display: flex !important; align-items: baseline !important; justify-content: space-between !important; gap: var(--bm-space-3) !important; margin: var(--bm-space-6) 0 var(--bm-space-3) !important; color: var(--bm-color-ink) !important; }
body.member-mode.member-you-v11-membership-open .upgrade-panel .membership-choice-heading b,
body.member-mode.member-you-v11-membership-open .upgrade-panel .points-heading b { font: 700 16px / 22px var(--bm-font-sans) !important; }
body.member-mode.member-you-v11-membership-open .upgrade-panel .membership-choice-heading small,
body.member-mode.member-you-v11-membership-open .upgrade-panel .points-heading small,
body.member-mode.member-you-v11-membership-open .upgrade-panel #plus-disclosure { color: var(--bm-color-muted) !important; font: 400 12px / 18px var(--bm-font-sans) !important; }
body.member-mode.member-you-v11-membership-open .upgrade-panel .membership-plan-grid { display: grid !important; grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: var(--bm-space-3) !important; }
body.member-mode.member-you-v11-membership-open .upgrade-panel .plan-choice { min-height: 118px !important; padding: var(--bm-space-4) !important; border: 1px solid var(--bm-color-line) !important; border-radius: var(--bm-radius-control) !important; background: var(--bm-color-surface) !important; color: var(--bm-color-ink) !important; box-shadow: none !important; }
body.member-mode.member-you-v11-membership-open .upgrade-panel .plan-choice.selected { border-color: var(--bm-color-action) !important; background: var(--bm-color-selected) !important; }
body.member-mode.member-you-v11-membership-open .upgrade-panel .plan-choice em { color: var(--bm-color-action) !important; font: 700 10px / 14px var(--bm-font-sans) !important; }
body.member-mode.member-you-v11-membership-open .upgrade-panel .plan-choice b { font: 700 15px / 20px var(--bm-font-sans) !important; }
body.member-mode.member-you-v11-membership-open .upgrade-panel .plan-choice small { color: var(--bm-color-copy) !important; font: 400 12px / 17px var(--bm-font-sans) !important; }
body.member-mode.member-you-v11-membership-open .upgrade-panel .point-pack-row { display: grid !important; grid-template-columns: repeat(4, minmax(0, 1fr)) !important; gap: var(--bm-space-2) !important; }
body.member-mode.member-you-v11-membership-open .upgrade-panel .point-pack { min-height: 56px !important; border: 1px solid var(--bm-color-line) !important; border-radius: var(--bm-radius-control) !important; background: var(--bm-color-surface) !important; color: var(--bm-color-ink) !important; box-shadow: none !important; }
body.member-mode.member-you-v11-membership-open .upgrade-panel .point-pack[aria-checked="true"] { border-color: var(--bm-color-action) !important; background: var(--bm-color-selected) !important; }
body.member-mode.member-you-v11-membership-open .upgrade-panel #try-plus { margin-top: var(--bm-space-5) !important; border-radius: var(--bm-radius-control) !important; background: var(--bm-color-action) !important; box-shadow: none !important; }

@media (max-width: 620px) {
  body.member-mode .member-you-v11-backdrop { padding: 0 !important; align-items: flex-end !important; }
  body.member-mode .member-you-v11-modal { width: 100% !important; min-height: min(640px, 88vh) !important; padding: 28px 20px 32px !important; border-radius: 22px 22px 0 0 !important; }
  body.member-mode .member-you-v11-modal h2 { font-size: 28px !important; }
  body.member-mode .member-you-v11-modal--profile-editor .profile-studio-heading,
  body.member-mode .member-you-v11-modal--contact-card .contact-card-modal > header { gap: var(--bm-space-3) !important; }
  body.member-mode .member-you-v11-modal--profile-editor .profile-studio-heading { flex-direction: column !important; }
  body.member-mode .member-you-v11-modal .you-security-list article,
  body.member-mode .member-you-v11-modal .profile-conversion-modal article { grid-template-columns: minmax(0, 1fr) !important; gap: var(--bm-space-2) !important; }
  body.member-mode .member-you-v11-modal .you-security-list article > span { display: none !important; }
  body.member-mode .member-you-v11-modal .modal-actions,
  body.member-mode .member-you-v11-modal .action-receipt-actions { display: grid !important; }
  body.member-mode .member-you-v11-modal .modal-actions > *,
  body.member-mode .member-you-v11-modal .action-receipt-actions > * { width: 100% !important; }
  body.member-mode.member-you-v11-membership-open .upgrade-panel { width: 100% !important; max-height: 90vh !important; padding: 28px 20px 32px !important; border-radius: 22px 22px 0 0 !important; }
  body.member-mode.member-you-v11-membership-open .upgrade-panel .membership-plan-grid { grid-template-columns: 1fr !important; }
  body.member-mode.member-you-v11-membership-open .upgrade-panel .point-pack-row { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
  body.member-mode .member-you-v11-modal--security .you-security-footer,
  body.member-mode .member-you-v11-modal--data .you-data-actions { align-items: stretch !important; flex-direction: column !important; }
  body.member-mode .member-you-v11-modal--security .you-security-footer .text-button,
  body.member-mode .member-you-v11-modal--data .you-data-actions > button { width: 100% !important; }
}
/* Inbox rooms: make permissions and future capabilities explicit without
   competing with the conversation itself. */
body.member-mode .member-conversation-rail .member-rail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}
body.member-mode .member-conversation-rail .member-rail-meta span {
  padding: 5px 9px;
  border: 1px solid rgba(29, 91, 213, .16);
  border-radius: 999px;
  background: #f7faff;
  color: #31507f;
  font-size: 11px;
  font-weight: 700;
}
body.member-mode .member-conversation-rail [data-member-conversation-permission] { color: #4a5d77; }
body.member-mode #inbox .conversation-context-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 7px; }
body.member-mode #inbox .conversation-context-meta span { padding: 4px 8px; border: 1px solid rgba(31, 105, 220, .16); border-radius: 999px; color: #31507f; background: #f7faff; font-size: 11px; font-weight: 700; }
body.member-mode .composer .composer-future-tool { opacity: .55; cursor: not-allowed; }
body.member-mode .composer .composer-future-tool { width: 34px; min-width: 34px; height: 30px; padding: 0; white-space: nowrap; font-size: 0 !important; display: inline-flex; align-items: center; justify-content: center; }
body.member-mode .composer .composer-future-tool::before,
body.member-mode .composer [aria-label="Video call coming soon"]::before { content: none; }
body.member-mode .private-settings-group { margin: 10px 0; border: 1px solid rgba(31, 71, 136, .14); border-radius: 14px; background: #fff; overflow: hidden; }
body.member-mode .private-settings-group > summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 13px 15px; list-style: none; cursor: pointer; color: #182b49; }
body.member-mode .private-settings-group > summary::-webkit-details-marker { display: none; }
body.member-mode .private-settings-group > summary::after { content: "+"; color: #1f69dc; font-size: 18px; line-height: 1; }
body.member-mode .private-settings-group[open] > summary::after { content: "–"; }
body.member-mode .private-settings-group > summary small { margin-left: auto; color: #74839a; font-size: 12px; font-weight: 600; }

@media (max-width: 820px) {
  body.member-mode #inbox .messenger.mobile-conversation-open .composer { position: fixed; z-index: 58; left: 28px; right: 28px; bottom: calc(70px + env(safe-area-inset-bottom)); width: auto; margin: 0; min-height: 60px; padding: 8px; border: 1px solid #dfe7f2; border-radius: 16px; background: #fff; box-shadow: 0 10px 26px rgba(18, 43, 83, .14); }
  body.member-mode #inbox .messenger.mobile-conversation-open .composer input { min-width: 0; flex: 1 1 auto; }
  body.member-mode #inbox .messenger.mobile-conversation-open .composer .composer-future-tool { display: inline-flex; width: 30px; min-width: 30px; padding: 0; font-size: 0 !important; align-items: center; justify-content: center; }
  body.member-mode #inbox .messenger.mobile-conversation-open .composer .composer-future-tool::before { font-size: 14px; line-height: 1; }
  body.member-mode #inbox .messenger.mobile-conversation-open .composer [aria-label="Voice call coming soon"]::before,
  body.member-mode #inbox .messenger.mobile-conversation-open .composer [aria-label="Video call coming soon"]::before { content: none; }
  body.member-mode #inbox .messenger.mobile-conversation-open .conversation { padding-bottom: 84px; }
  body.member-mode #inbox .messenger.mobile-conversation-open .conversation-context { flex: 0 0 auto; min-height: 0; overflow: visible; display: grid; grid-template-columns: 1fr; gap: 3px 0; align-items: start; }
  body.member-mode #inbox .messenger.mobile-conversation-open .conversation-context > b,
  body.member-mode #inbox .messenger.mobile-conversation-open .conversation-context > span,
  body.member-mode #inbox .messenger.mobile-conversation-open .conversation-context > .conversation-context-meta,
  body.member-mode #inbox .messenger.mobile-conversation-open .conversation-context > .room-context-note { width: auto; min-width: 0; grid-column: 1; }
  body.member-mode #inbox .messenger.mobile-conversation-open .conversation-context > span { line-height: 1.35; }
  body.member-mode #inbox .messenger.mobile-conversation-open .conversation-context > .room-context-note { margin-top: 5px; }
  body.member-mode #inbox .messenger.mobile-conversation-open .conversation-context-meta span { white-space: nowrap; }
  body.member-mode #inbox .messenger.mobile-conversation-open .conversation-context-meta span:nth-child(n + 3) { display: none; }
  body.member-mode #inbox .messenger.mobile-conversation-open .messages { padding-bottom: 170px; }
  body.member-mode .private-settings-group > summary b, body.member-mode .private-settings-group > summary small { white-space: nowrap; }
  body.member-mode .private-settings-group > summary small { overflow: hidden; text-overflow: ellipsis; max-width: 42%; }
}
body.member-mode #inbox .composer-tool[aria-label="Send voice note"], body.member-mode #inbox .composer [data-composer-gift="true"] { font-size: 0; }
body.member-mode #inbox .composer-tool[aria-label="Send voice note"]::before,
body.member-mode #inbox .composer [data-composer-gift="true"]::before { content: none; }

body.member-mode #inbox .room-context-note {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  margin: 14px auto 0;
  max-width: 360px;
  padding: 10px 12px;
  border: 1px solid #e3eaf4;
  border-radius: 12px;
  background: #fbfdff;
  color: #5c6d85;
  font-size: 11px;
  line-height: 1.45;
}
body.member-mode #inbox .room-context-note b { color: #1b355a; font-size: 10px; white-space: nowrap; }
body.member-mode #inbox .room-context-note span { display: block; }
@media (max-width: 820px) {
  body.member-mode #inbox .room-context-note { margin-top: 10px; padding: 8px 10px; font-size: 10px; }
}
body.member-mode .private-settings-body { padding: 0 15px 15px; }
body.member-mode .private-settings-body > :first-child { margin-top: 2px; }
body.member-mode .private-settings-group + .modal-actions { margin-top: 14px; }

/* Contact links stay compact: a permanent QR is the primary surface, while
   short-lived invitations remain a clearly revocable secondary control. */
body.member-mode .member-you-v11-modal--contact-card .contact-temporary-code-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: var(--bm-space-3);
  align-items: center;
  padding: var(--bm-space-4);
  border: 1px solid var(--bm-color-line);
  border-radius: var(--bm-radius-card);
  background: var(--bm-color-fill);
}
body.member-mode .member-you-v11-modal--contact-card .contact-temporary-code-section b {
  display: block;
  color: var(--bm-color-ink);
  font: 700 13px / 18px var(--bm-font-sans);
}
body.member-mode .member-you-v11-modal--contact-card .contact-temporary-code-section p {
  margin: 3px 0 0;
  color: var(--bm-color-copy);
  font: 400 12px / 18px var(--bm-font-sans);
}
body.member-mode .member-you-v11-modal--contact-card .contact-temporary-code-list {
  display: grid;
  grid-column: 1 / -1;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--bm-color-line);
}
body.member-mode .member-you-v11-modal--contact-card .contact-temporary-code-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--bm-space-3);
  padding: var(--bm-space-3) 0 0;
}
body.member-mode .member-you-v11-modal--contact-card .contact-temporary-code-list span { min-width: 0; }
body.member-mode .member-you-v11-modal--contact-card .contact-temporary-code-list small {
  display: block;
  margin-top: 2px;
  color: var(--bm-color-copy);
  font: 400 12px / 16px var(--bm-font-sans);
}
body.member-mode #inbox .bubble .inbox-message-delivery {
  display: block;
  margin-top: 4px;
  opacity: .72;
  font: 600 10px / 13px var(--bm-font-sans);
  letter-spacing: .01em;
}
@media (max-width: 820px) {
  body.member-mode .member-you-v11-modal--contact-card .contact-temporary-code-section { grid-template-columns: 1fr; }
  body.member-mode .member-you-v11-modal--contact-card .contact-temporary-code-section .outline-button { width: 100%; }
}
