.members-body {
  min-height: 100vh;
  background: var(--cream);
}

.members-body .skip-link:not(:focus) { top: 0; transform: translateY(-130%); }
.members-body .skip-link:focus { transform: none; }

[hidden] { display: none !important; }

.members-header {
  min-height: 78px;
  padding: 0 clamp(1.25rem, 5vw, 5rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}

.members-back {
  padding-bottom: .2rem;
  border-bottom: 1px solid currentColor;
  font-size: .72rem;
  font-weight: 900;
  letter-spacing: .08em;
  text-decoration: none;
  text-transform: uppercase;
}

.members-alert {
  position: fixed;
  z-index: 2000;
  top: 1rem;
  left: 50%;
  width: min(560px, calc(100% - 2rem));
  padding: 1rem 1.25rem;
  border-left: 4px solid var(--gold-light);
  color: var(--white);
  background: var(--ink-deep);
  box-shadow: 0 14px 42px rgba(15, 35, 20, .24);
  transform: translateX(-50%);
}

.members-alert.is-error { border-left-color: #d99a94; }
.members-alert.is-success { border-left-color: #9fbea7; }

.auth-shell {
  min-height: calc(100vh - 78px);
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(420px, .95fr);
}
.auth-shell.is-registration { grid-template-columns: minmax(360px, .8fr) minmax(640px, 1.2fr); }
.auth-shell.is-registration .auth-intro { padding: clamp(3rem, 6vw, 6rem); }

.auth-intro {
  position: relative;
  overflow: hidden;
  padding: clamp(4rem, 8vw, 8rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: var(--white);
  background: var(--teal);
}

.auth-intro::before,
.auth-intro::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.auth-intro::before {
  width: 440px;
  height: 440px;
  right: -220px;
  top: -190px;
  border: 85px solid rgba(255, 255, 255, .07);
}

.auth-intro::after {
  width: 260px;
  height: 540px;
  right: 8%;
  bottom: -390px;
  border-radius: 150px 150px 0 0;
  background: rgba(255, 255, 255, .07);
}

.auth-intro > * { position: relative; z-index: 1; }
.auth-intro h1 { margin: 0; font-family: var(--serif); font-size: clamp(4rem, 7vw, 7.4rem); font-weight: 400; letter-spacing: -.055em; line-height: .92; }
.auth-intro > p:not(.eyebrow) { max-width: 570px; margin: 2rem 0 0; color: rgba(255,255,255,.72); font-size: 1.08rem; }
.auth-benefits { max-width: 580px; margin: 3.5rem 0 0; padding: 0; display: grid; list-style: none; border-top: 1px solid rgba(255,255,255,.18); }
.auth-benefits li { padding: 1rem 0; display: flex; align-items: center; gap: 1rem; border-bottom: 1px solid rgba(255,255,255,.18); font-size: .78rem; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.auth-benefits span { color: var(--gold-light); font-family: var(--serif); font-size: .85rem; }

.auth-card {
  width: min(500px, calc(100% - 3rem));
  margin: auto;
  padding: clamp(2rem, 4vw, 3.25rem);
  border: 1px solid var(--line);
  background: var(--white);
  box-shadow: 0 22px 70px rgba(44, 82, 52, .08);
}
.auth-card.is-registration { width: min(760px, calc(100% - 3rem)); margin-block: 2.5rem; }

.setup-notice { margin-bottom: 1.5rem; padding: 1rem; border-left: 3px solid var(--teal); background: var(--cream); }
.setup-notice strong { display: block; color: var(--teal); }
.setup-notice p { margin: .3rem 0 0; color: #686f69; font-size: .78rem; }
.setup-notice code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .72rem; }

.auth-tabs { margin-bottom: 2rem; display: grid; grid-template-columns: 1fr 1fr; border-bottom: 1px solid var(--line); }
.auth-tab { padding: .9rem .5rem; border: 0; border-bottom: 3px solid transparent; color: #757b76; background: transparent; font-size: .72rem; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; cursor: pointer; }
.auth-tab.is-active { border-bottom-color: var(--teal); color: var(--teal); }
.auth-heading { margin: 0 0 1.5rem; font-family: var(--serif); font-size: 1.8rem; line-height: 1.2; }

.members-form { display: grid; gap: 1rem; }
.registration-form { grid-template-columns: 1fr 1fr; }
.form-span { grid-column: 1 / -1; }
.members-form .conditional-date[hidden] { display: none; }
.members-form label { display: grid; gap: .4rem; color: var(--ink); font-size: .7rem; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.members-form label small { color: #7b807c; font-size: .62rem; }
.members-form input,
.members-form textarea,
.members-form select {
  width: 100%;
  min-height: 48px;
  padding: .8rem .9rem;
  border: 1px solid var(--line);
  border-radius: 0;
  color: var(--ink);
  background: var(--paper);
  font: inherit;
  font-size: .9rem;
  font-weight: 500;
  letter-spacing: 0;
  outline: none;
  text-transform: none;
}
.members-form textarea { resize: vertical; }
.members-form input:focus,
.members-form textarea:focus,
.members-form select:focus { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(44,82,52,.08); }
.members-form input[readonly] { color: #777c78; background: #eceeea; }
.members-form button[disabled] { cursor: wait; opacity: .6; transform: none; }
.consent-check { grid-template-columns: 20px 1fr !important; align-items: start; gap: .65rem !important; font-size: .7rem !important; font-weight: 600 !important; letter-spacing: 0 !important; line-height: 1.45; text-transform: none !important; }
.consent-check input { width: 18px; min-height: 18px; margin: .1rem 0 0; accent-color: var(--teal); }
.consent-check a { color: var(--teal); }
.link-button { margin-top: 1.2rem; padding: 0 0 .15rem; border: 0; border-bottom: 1px solid currentColor; color: var(--teal); background: transparent; font-size: .7rem; font-weight: 900; letter-spacing: .07em; text-transform: uppercase; cursor: pointer; }
.back-to-login { margin: 0 0 1.5rem; }

.status-shell { min-height: calc(100vh - 78px); padding: 3rem 1.25rem; display: grid; place-items: center; background: linear-gradient(135deg, var(--cream), #dfe7e1); }
.status-card { width: min(620px, 100%); padding: clamp(2.5rem, 6vw, 5rem); border: 1px solid var(--line); background: var(--white); text-align: center; box-shadow: 0 25px 80px rgba(44,82,52,.11); }
.status-icon { width: 72px; height: 72px; margin: 0 auto 2rem; display: grid; place-items: center; border-radius: 50%; color: var(--teal); background: var(--gold-light); font-size: 1.7rem; }
.status-card .eyebrow { margin-bottom: .8rem; }
.status-card h1 { margin: 0; font-family: var(--serif); font-size: clamp(2.4rem, 5vw, 4.4rem); font-weight: 400; letter-spacing: -.04em; line-height: 1; }
.status-card > p:not(.eyebrow) { max-width: 480px; margin: 1.4rem auto; color: #656c66; }
.status-user { margin: 1.5rem 0; padding: 1rem; background: var(--cream); font-weight: 800; }

.member-app { min-height: 100vh; display: grid; grid-template-columns: 270px minmax(0, 1fr); }
.member-sidebar { position: sticky; top: 0; height: 100vh; padding: 2rem 1.25rem 1.5rem; display: flex; flex-direction: column; color: rgba(255,255,255,.72); background: var(--ink-deep); }
.sidebar-brand { padding: 0 .6rem 1.8rem; display: flex; align-items: center; gap: .6rem; border-bottom: 1px solid rgba(255,255,255,.13); color: var(--white); }
.sidebar-brand .brand-mark { width: 49px; height: 40px; filter: brightness(0) invert(1); opacity: .92; }
.sidebar-brand .ipb-symbol img { left: -54px; width: 113px; }
.sidebar-brand strong, .sidebar-brand small { display: block; line-height: 1.2; }
.sidebar-brand strong { font-family: var(--serif); font-size: 1rem; }
.sidebar-brand small { margin-top: .2rem; color: var(--gold-light); font-size: .6rem; letter-spacing: .14em; text-transform: uppercase; }
.member-nav { margin-top: 1.5rem; display: grid; gap: .35rem; }
.member-nav button { width: 100%; padding: .85rem .9rem; display: flex; align-items: center; gap: .8rem; border: 0; color: inherit; background: transparent; font-size: .72rem; font-weight: 800; letter-spacing: .06em; text-align: left; text-transform: uppercase; cursor: pointer; }
.member-nav button span { width: 20px; color: var(--gold-light); font-size: 1rem; text-align: center; }
.member-nav button:hover,
.member-nav button.is-active { color: var(--white); background: rgba(255,255,255,.1); }
.sidebar-logout { margin-top: auto; padding: 1rem; border: 1px solid rgba(255,255,255,.2); color: var(--white); background: transparent; font-size: .68rem; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; cursor: pointer; }
.sidebar-logout:hover { background: rgba(255,255,255,.08); }

.member-content { min-width: 0; background: var(--cream); }
.member-topbar { min-height: 82px; padding: 1rem clamp(1.25rem, 4vw, 3.5rem); display: flex; align-items: center; gap: 1.5rem; border-bottom: 1px solid var(--line); background: rgba(250,250,247,.95); }
.member-topbar > div { margin-left: auto; display: grid; text-align: right; line-height: 1.2; }
.member-topbar > div span { color: #777d78; font-size: .65rem; letter-spacing: .08em; text-transform: uppercase; }
.member-topbar > div strong { font-family: var(--serif); font-size: 1rem; }
.role-badge { padding: .42rem .7rem; color: var(--teal); background: var(--gold-light); font-size: .6rem; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.sidebar-toggle { display: none; width: 42px; height: 42px; border: 1px solid var(--line); color: var(--ink); background: transparent; cursor: pointer; }
.member-page { max-width: 1500px; margin: 0 auto; padding: clamp(2rem, 5vw, 4.5rem); }
.app-section { animation: section-in .3s ease; }
@keyframes section-in { from { opacity: 0; transform: translateY(8px); } }
.page-heading { margin-bottom: 2.5rem; display: grid; grid-template-columns: 1fr minmax(260px, .6fr); gap: 3rem; align-items: end; }
.page-heading .eyebrow { margin-bottom: .5rem; }
.page-heading h1 { margin: 0; font-family: var(--serif); font-size: clamp(2.8rem, 5vw, 5rem); font-weight: 400; letter-spacing: -.05em; line-height: .98; }
.page-heading > p { max-width: 430px; margin: 0 0 .4rem; color: #687069; }
.summary-grid { margin-bottom: 1.5rem; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.summary-grid article { min-height: 145px; padding: 1.5rem; display: grid; grid-template-columns: 1fr auto; grid-template-rows: auto 1fr; border: 1px solid var(--line); background: var(--white); }
.summary-grid article span { color: var(--teal); font-size: .68rem; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.summary-grid article strong { grid-row: 1 / 3; align-self: center; font-family: var(--serif); font-size: 4rem; font-weight: 400; line-height: 1; }
.summary-grid article small { align-self: end; color: #757b76; font-size: .75rem; }
.dashboard-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.content-panel { padding: clamp(1.25rem, 3vw, 2rem); border: 1px solid var(--line); background: var(--white); }
.panel-heading { padding-bottom: 1.25rem; display: flex; justify-content: space-between; align-items: end; gap: 1rem; border-bottom: 1px solid var(--line); }
.panel-heading .eyebrow { margin-bottom: .25rem; }
.panel-heading h2 { margin: 0; font-family: var(--serif); font-size: 1.65rem; font-weight: 400; }
.panel-heading button { padding: 0 0 .15rem; border: 0; border-bottom: 1px solid; color: var(--teal); background: transparent; font-size: .62rem; font-weight: 900; letter-spacing: .06em; text-transform: uppercase; cursor: pointer; }

.mini-item { padding: 1.15rem 0; display: grid; gap: .25rem; border-bottom: 1px solid var(--line); }
.mini-item:last-child { border-bottom: 0; }
.mini-item time { color: var(--teal-soft); font-size: .65rem; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.mini-item strong { font-family: var(--serif); font-size: 1.1rem; }
.mini-item p { margin: 0; color: #737974; font-size: .78rem; }

.birthday-reminder-panel { margin-top: 1rem; }
.birthday-privacy-note { color: #777d78; font-size: .62rem; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.birthday-list { padding-top: 1.25rem; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .75rem; }
.birthday-card { min-height: 145px; padding: 1.25rem; display: flex; flex-direction: column; border: 1px solid var(--line); background: var(--cream); }
.birthday-card.is-today { color: var(--white); background: var(--teal); }
.birthday-date { color: var(--coral); font-size: .66rem; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.birthday-card.is-today .birthday-date { color: var(--gold-light); }
.birthday-card strong { margin: .75rem 0; font-family: var(--serif); font-size: 1.25rem; line-height: 1.15; }
.birthday-card small { margin-top: auto; color: #727973; font-size: .72rem; }
.birthday-card.is-today small { color: rgba(255,255,255,.72); }

.card-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.announcement-card { min-height: 230px; padding: 2rem; display: flex; flex-direction: column; border: 1px solid var(--line); background: var(--white); }
.announcement-card time { color: var(--teal); font-size: .65rem; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.announcement-card h2 { margin: .8rem 0; font-family: var(--serif); font-size: 1.8rem; font-weight: 400; line-height: 1.1; }
.announcement-card p { margin: 0; color: #646b65; white-space: pre-line; }
.announcement-card small { margin-top: auto; padding-top: 1rem; color: #868b87; }

.member-calendar-layout { max-width: none; }
.member-upcoming { min-width: 0; }
#member-upcoming-list { flex: 1; }
.member-calendar-legend { gap: 1rem; }
.calendar-event.member-event-igreja { border-left: 3px solid var(--coral); background: #f0e3df; }
.calendar-event.member-event-upa { border-left: 3px solid #d49a36; background: #f5ead5; }
.calendar-event.member-event-ump { border-left: 3px solid #3f7b68; background: #dce9e4; }
.calendar-event.member-event-uph { border-left: 3px solid #5279a8; background: #dfe8f1; }
.calendar-event.member-event-saf { border-left: 3px solid #9a5d88; background: #eee0ea; }
.calendar-event.member-event-ucp { border-left: 3px solid #6f8d45; background: #e5ecd9; }
.dot-igreja { background: var(--coral); }
.dot-upa { background: #d49a36; }
.dot-ump { background: #3f7b68; }
.dot-uph { background: #5279a8; }
.dot-saf { background: #9a5d88; }
.dot-ucp { background: #6f8d45; }

.document-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.document-card { min-height: 225px; padding: 1.5rem; display: flex; flex-direction: column; border: 1px solid var(--line); background: var(--white); }
.document-icon { width: 48px; height: 48px; display: grid; place-items: center; color: var(--teal); background: var(--gold-light); font-size: .72rem; font-weight: 900; }
.document-card h2 { margin: 1rem 0 .4rem; font-family: var(--serif); font-size: 1.4rem; font-weight: 400; }
.document-card p { margin: 0; color: #6c736d; font-size: .8rem; }
.document-card button { margin-top: auto; padding: .75rem; border: 1px solid var(--ink); color: var(--ink); background: transparent; font-size: .65rem; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; cursor: pointer; }
.document-card button:hover { color: var(--white); background: var(--ink); }

.profile-panel { max-width: 940px; }
.profile-form { grid-template-columns: 1fr 1fr; }
.profile-form button { justify-self: start; }
.profile-photo-field { padding-bottom: 1.25rem; display: grid; grid-template-columns: 100px 1fr; gap: 1.25rem; align-items: center; border-bottom: 1px solid var(--line); }
.profile-avatar-preview,
.member-profile-avatar {
  width: 92px;
  height: 92px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 50%;
  color: var(--teal);
  background: var(--gold-light);
}
.profile-avatar-preview img,
.member-profile-avatar img { width: 100%; height: 100%; object-fit: cover; }
.profile-avatar-preview span,
.member-profile-avatar span { font-size: 2rem; }

.admin-tabs { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1rem; }
.admin-tabs button { padding: .8rem 1rem; border: 1px solid var(--line); color: var(--ink); background: var(--white); font-size: .65rem; font-weight: 900; letter-spacing: .07em; text-transform: uppercase; cursor: pointer; }
.admin-tabs button.is-active { color: var(--white); background: var(--teal); }
.admin-panel { padding: clamp(1.25rem, 3vw, 2.25rem); border: 1px solid var(--line); background: var(--white); }
.admin-form { max-width: 780px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.directory-heading { margin-bottom: 1.5rem; display: flex; justify-content: space-between; gap: 2rem; align-items: end; }
.directory-heading h2 { margin: 0; font-family: var(--serif); font-size: 2rem; font-weight: 400; }
.directory-heading > p { max-width: 400px; margin: 0; color: #6d746e; }
.member-admin-list { display: grid; gap: .75rem; }
.member-admin-item { padding: 1rem; display: grid; grid-template-columns: minmax(220px, 1fr) auto auto; gap: 1rem; align-items: center; border: 1px solid var(--line); }
.member-admin-identity { min-width: 0; padding: .5rem; display: flex; align-items: center; gap: 1rem; border: 0; color: inherit; background: transparent; text-align: left; cursor: pointer; }
.member-admin-identity:hover strong { color: var(--teal); }
.member-admin-avatar { width: 48px; height: 48px; display: grid; place-items: center; flex: none; border-radius: 50%; color: var(--teal); background: var(--gold-light); font-family: var(--serif); font-size: 1.1rem; }
.member-admin-identity strong, .member-admin-identity small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.member-admin-identity small { margin-top: .2rem; color: #777d78; }
.member-admin-identity em { display: block; margin-top: .35rem; color: var(--teal); font-size: .58rem; font-style: normal; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.member-admin-controls { display: flex; gap: .6rem; align-items: center; }
.member-admin-controls select { min-width: 130px; min-height: 42px; padding: .5rem; border: 1px solid var(--line); background: var(--paper); }
.member-admin-controls button { min-height: 42px; padding: .55rem .8rem; border: 0; color: var(--white); background: var(--teal); font-size: .62rem; font-weight: 900; letter-spacing: .06em; text-transform: uppercase; cursor: pointer; }
.member-access-badges { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: .4rem; }
.member-access-badges span { padding: .45rem .6rem; color: var(--teal); background: var(--cream); font-size: .58rem; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.member-remove-button { min-height: 42px; padding: .65rem .8rem; border: 1px solid #a7473a; color: #8f382e; background: transparent; font-size: .6rem; font-weight: 900; letter-spacing: .06em; text-transform: uppercase; cursor: pointer; }
.member-remove-button:hover { color: var(--white); background: #a7473a; }
.member-remove-button:disabled { opacity: .55; cursor: wait; }

.member-profile-dialog { width: min(760px, calc(100% - 2rem)); max-height: calc(100vh - 2rem); padding: clamp(1.5rem, 4vw, 3rem); overflow: auto; border: 0; color: var(--ink); background: var(--paper); box-shadow: 0 25px 80px rgba(0,0,0,.3); }
.member-profile-dialog::backdrop { background: rgba(15,35,20,.76); backdrop-filter: blur(3px); }
.member-profile-header { padding-bottom: 1.5rem; display: grid; grid-template-columns: 100px 1fr; gap: 1.25rem; align-items: center; border-bottom: 1px solid var(--line); }
.member-profile-header h2 { margin: 0 0 .35rem; font-family: var(--serif); font-size: clamp(2rem, 5vw, 3.4rem); font-weight: 400; line-height: 1; }
.member-profile-header > div:last-child > span { color: var(--teal); font-size: .66rem; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.member-profile-details { margin: 1.5rem 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; }
.member-profile-details > div { min-width: 0; padding: 1rem; background: var(--cream); }
.member-profile-details .detail-span { grid-column: 1 / -1; }
.member-profile-details dt { color: var(--teal); font-size: .6rem; font-weight: 900; letter-spacing: .09em; text-transform: uppercase; }
.member-profile-details dd { margin: .35rem 0 0; overflow-wrap: anywhere; font-size: .88rem; }

.empty-state { grid-column: 1 / -1; padding: 3.5rem 1rem; display: grid; place-items: center; text-align: center; border: 1px dashed var(--line); background: rgba(255,255,255,.45); }
.empty-state .empty-state-symbol { width: 74px; height: 58px; }
.empty-state .empty-state-symbol img { left: -77px; width: 161px; }
.empty-state strong { margin-top: .5rem; font-family: var(--serif); font-size: 1.3rem; }
.empty-state p { margin: .3rem 0 0; color: #777d78; font-size: .8rem; }

.privacy-main { padding: clamp(3rem, 7vw, 7rem) 1.25rem; }
.privacy-document { width: min(820px, 100%); margin: 0 auto; padding: clamp(2rem, 6vw, 5rem); border: 1px solid var(--line); background: var(--white); }
.privacy-document h1 { margin: 0 0 1.5rem; font-family: var(--serif); font-size: clamp(3rem, 6vw, 5.6rem); font-weight: 400; letter-spacing: -.05em; line-height: .95; }
.privacy-document h2 { margin: 2.4rem 0 .5rem; color: var(--teal); font-family: var(--serif); font-size: 1.55rem; font-weight: 700; }
.privacy-document p { color: #626a63; }
.privacy-document .privacy-lead { color: var(--ink); font-family: var(--serif); font-size: 1.3rem; }
.privacy-document .privacy-update { margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--line); font-size: .75rem; }

@media (max-width: 1080px) {
  .auth-shell { grid-template-columns: 1fr 440px; }
  .auth-shell.is-registration { grid-template-columns: minmax(320px, .75fr) minmax(580px, 1.25fr); }
  .auth-intro { padding: 4rem; }
  .member-app { grid-template-columns: 235px minmax(0, 1fr); }
  .member-calendar-layout { grid-template-columns: 1fr; }
  .document-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .member-admin-item { grid-template-columns: minmax(220px, 1fr) auto; }
  .member-remove-button { grid-column: 2; justify-self: end; }
}

@media (max-width: 820px) {
  .auth-shell { min-height: auto; grid-template-columns: 1fr; }
  .auth-shell.is-registration { grid-template-columns: 1fr; }
  .auth-intro { min-height: 540px; }
  .auth-card { margin: 3rem auto; }
  .member-app { display: block; }
  .member-sidebar { position: fixed; z-index: 100; left: 0; top: 0; width: 270px; transform: translateX(-100%); transition: transform .25s ease; }
  .member-sidebar.is-open { transform: none; box-shadow: 14px 0 45px rgba(0,0,0,.22); }
  .sidebar-toggle { display: block; }
  .member-topbar > div { margin-left: 0; }
  .member-topbar .role-badge { margin-left: auto; }
  .page-heading { grid-template-columns: 1fr; gap: 1rem; }
  .summary-grid { grid-template-columns: 1fr; }
  .summary-grid article { min-height: 110px; }
  .dashboard-grid, .card-list { grid-template-columns: 1fr; }
  .birthday-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .member-admin-item { grid-template-columns: 1fr; }
  .member-admin-controls, .member-access-badges { justify-content: flex-start; }
  .member-admin-controls { flex-wrap: wrap; }
  .member-remove-button { grid-column: auto; justify-self: start; }
}

@media (max-width: 560px) {
  .members-header { min-height: 70px; padding: 0 1rem; }
  .members-header .brand-wordmark { display: none; }
  .members-back { font-size: .62rem; }
  .auth-intro { min-height: 500px; padding: 3rem 1.5rem; }
  .auth-intro h1 { font-size: 4.2rem; }
  .auth-card { width: calc(100% - 2rem); padding: 1.5rem; }
  .registration-form { grid-template-columns: 1fr; }
  .form-span { grid-column: auto; }
  .member-topbar { padding: .8rem 1rem; gap: .75rem; }
  .member-topbar > div { display: none; }
  .member-page { padding: 2.5rem 1rem; }
  .page-heading h1 { font-size: 3rem; }
  .document-grid { grid-template-columns: 1fr; }
  .profile-form, .form-row { grid-template-columns: 1fr; }
  .birthday-list { grid-template-columns: 1fr; }
  .profile-photo-field { grid-template-columns: 1fr; }
  .member-admin-item { grid-template-columns: 1fr; }
  .member-profile-header { grid-template-columns: 1fr; }
  .member-profile-details { grid-template-columns: 1fr; }
  .member-profile-details .detail-span { grid-column: auto; }
}

@media (prefers-reduced-motion: reduce) {
  .app-section { animation: none; }
}
