:root {
  --ink: #07111f;
  --ink-2: #10243a;
  --gold: #d8b765;
  --aqua: #60e6d2;
  --cream: #f6f0df;
  --paper: #f8fbfd;
  --muted: #637285;
  --line: rgba(16, 36, 58, .13);
  --shadow: 0 30px 90px rgba(7, 17, 31, .18);
  --radius: 8px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(90deg, rgba(16,36,58,.045) 1px, transparent 1px),
    linear-gradient(180deg, rgba(16,36,58,.04) 1px, transparent 1px),
    var(--paper);
  background-size: 48px 48px;
  overflow-x: hidden;
}
img, svg, video { max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px clamp(18px, 5vw, 72px);
  color: white;
  background: rgba(7, 17, 31, .72);
  border-bottom: 1px solid rgba(255,255,255,.1);
  backdrop-filter: blur(18px);
}
.brand { display: inline-flex; align-items: center; gap: 12px; font-weight: 900; }
.brand span:last-child {
  overflow-wrap: anywhere;
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  color: var(--ink);
  background: linear-gradient(135deg, var(--gold), #fff3bd);
  box-shadow: 0 0 0 8px rgba(216,183,101,.12);
}
nav { display: flex; align-items: center; gap: 20px; color: rgba(255,255,255,.78); font-weight: 800; font-size: 14px; }
nav a:hover { color: white; }
.language-switcher {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding-left: 8px;
  border-left: 1px solid rgba(255,255,255,.18);
}
.language-switcher a {
  padding: 7px 9px;
  border-radius: 999px;
  font-size: 12px;
}
.language-switcher a.active {
  color: var(--ink);
  background: var(--gold);
}
.nav-cta {
  padding: 10px 14px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 999px;
  color: white;
  background: rgba(255,255,255,.08);
}
.nav-logout {
  color: #fff3bd;
  border-color: rgba(216,183,101,.42);
}

.container { width: min(1180px, calc(100% - 36px)); margin: 0 auto; }
.hero {
  position: relative;
  min-height: 760px;
  display: grid;
  align-items: center;
  overflow: hidden;
  color: white;
  background: var(--ink);
}
.hero-media {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(115deg, rgba(7,17,31,.95), rgba(7,17,31,.74) 46%, rgba(7,17,31,.28)),
    url("assets/restoration-hero.png") center / cover;
}
.hero-shade {
  position: absolute;
  inset: auto -20% -38% 42%;
  height: 64%;
  transform: rotate(-7deg);
  background:
    radial-gradient(circle at 18% 40%, rgba(96,230,210,.34), transparent 36%),
    linear-gradient(135deg, rgba(216,183,101,.32), rgba(96,230,210,.08));
  filter: blur(8px);
}
.hero-content {
  position: relative;
  padding: 110px 0 72px;
}
.eyebrow {
  margin: 0 0 14px;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: 12px;
  font-weight: 900;
}
h1, h2, h3 { margin: 0; letter-spacing: 0; }
h1 {
  max-width: 920px;
  font-family: "Libre Baskerville", Georgia, serif;
  font-size: clamp(3.1rem, 7.5vw, 7.4rem);
  line-height: .98;
}
h1, h2, h3, p, strong, span, small, label, input, textarea, select {
  overflow-wrap: anywhere;
}
.hero-lead {
  max-width: 720px;
  margin: 26px 0 0;
  color: rgba(255,255,255,.82);
  font-size: clamp(1.08rem, 2vw, 1.35rem);
  line-height: 1.7;
}
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 34px; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 13px 17px;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-weight: 900;
}
.button.primary {
  color: var(--ink);
  background: linear-gradient(135deg, var(--gold), #fff0ad);
  border: 0;
  box-shadow: 0 18px 44px rgba(216,183,101,.26);
}
.button.glass {
  color: white;
  background: rgba(255,255,255,.08);
  border-color: rgba(255,255,255,.18);
}

.faith-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-bottom: 1px solid var(--line);
  background: white;
}
.faith-strip div { padding: 26px clamp(18px, 5vw, 72px); border-right: 1px solid var(--line); }
.faith-strip strong { display: block; font-size: 22px; }
.faith-strip span { display: block; margin-top: 5px; color: var(--muted); }

.coming-body {
  background: var(--ink);
}
.coming-soon-page {
  min-height: 100vh;
  color: white;
  background: var(--ink);
}
.coming-hero {
  position: relative;
  min-height: 700px;
  display: grid;
  align-items: end;
  overflow: hidden;
  isolation: isolate;
}
.coming-hero-media {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(105deg, rgba(7,17,31,.96), rgba(7,17,31,.78) 42%, rgba(7,17,31,.35)),
    url("assets/restoration-hero.png") center / cover;
}
.coming-hero-shade {
  position: absolute;
  inset: auto -10% -18% 28%;
  z-index: -1;
  height: 52%;
  background:
    radial-gradient(circle at 18% 42%, rgba(216,183,101,.32), transparent 36%),
    linear-gradient(135deg, rgba(96,230,210,.2), rgba(216,183,101,.12));
  filter: blur(12px);
}
.coming-hero-content {
  padding: 150px 0 82px;
}
.coming-hero h1 {
  max-width: 980px;
  font-size: clamp(3rem, 7vw, 6.8rem);
}
.coming-lead {
  max-width: 760px;
  margin: 24px 0 0;
  color: rgba(255,255,255,.84);
  font-size: clamp(1.08rem, 2vw, 1.32rem);
  line-height: 1.72;
}
.coming-scripture {
  display: grid;
  gap: 8px;
  max-width: 720px;
  margin-top: 28px;
  padding-left: 18px;
  border-left: 3px solid var(--gold);
}
.coming-scripture span {
  color: var(--gold);
  font-weight: 900;
  text-transform: uppercase;
  font-size: 12px;
}
.coming-scripture strong {
  font-family: "Libre Baskerville", Georgia, serif;
  font-size: clamp(1.22rem, 2vw, 1.7rem);
  line-height: 1.45;
}
.coming-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 34px;
}
.coming-band {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  background: white;
  color: var(--ink);
  border-top: 1px solid rgba(255,255,255,.12);
}
.coming-band div {
  min-height: 156px;
  padding: 30px clamp(18px, 5vw, 72px);
  border-right: 1px solid var(--line);
}
.coming-band strong {
  display: block;
  font-size: 24px;
}
.coming-band span {
  display: block;
  max-width: 360px;
  margin-top: 8px;
  color: var(--muted);
  line-height: 1.6;
}

.section { padding: 82px clamp(18px, 5vw, 72px); }
.section-head {
  max-width: 920px;
  margin-bottom: 28px;
}
.section-head h2 { max-width: 860px; }
h2 {
  font-family: "Libre Baskerville", Georgia, serif;
  font-size: clamp(2.2rem, 4.6vw, 4.7rem);
  line-height: 1.05;
}
h3 { font-size: 1.35rem; }
p { color: var(--muted); line-height: 1.7; }
.ministry-grid, .location-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 16px;
}
.ministry-card, .location-card, .leader-card, .contact-card, .service-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255,255,255,.88);
  box-shadow: var(--shadow);
}
.ministry-card {
  min-height: 320px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  position: relative;
}
.ministry-image {
  width: calc(100% + 48px);
  max-width: none;
  height: 170px;
  margin: -24px -24px 20px;
  object-fit: cover;
}
.ministry-card::after {
  content: "";
  position: absolute;
  right: -38px;
  bottom: -38px;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--aqua) 24%, transparent);
}
.ministry-card span { color: #4f74ff; font-weight: 900; }
.ministry-card h3 { margin-top: auto; }
.women::after { background: color-mix(in srgb, var(--gold) 34%, transparent); }
.children::after { background: color-mix(in srgb, #ff7ea8 24%, transparent); }
.outreach::after { background: color-mix(in srgb, #8c7bff 24%, transparent); }

.service-section {
  color: white;
  background:
    radial-gradient(circle at 12% 0%, rgba(96,230,210,.22), transparent 32%),
    linear-gradient(135deg, var(--ink), var(--ink-2));
}
.service-section p { color: rgba(255,255,255,.76); }
.split { display: grid; grid-template-columns: .9fr 1.1fr; gap: 52px; align-items: center; }
.service-panel { padding: 14px; background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.12); }
.service-panel div {
  padding: 22px;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.service-panel div:last-child { border-bottom: 0; }
.service-panel span { color: var(--gold); text-transform: uppercase; letter-spacing: .12em; font-size: 12px; font-weight: 900; }
.service-panel strong { display: block; margin-top: 8px; font-size: 1.25rem; }

.location-grid { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.location-card { padding: 24px; }
.tag {
  display: inline-flex;
  width: fit-content;
  margin: 0 0 18px;
  padding: 6px 10px;
  border-radius: 999px;
  color: #2b56cc;
  background: #eef4ff;
  font-weight: 900;
  font-size: 12px;
}
.location-card strong { display: block; margin: 18px 0; color: var(--ink-2); }
.location-card a { color: #2b56cc; font-weight: 900; border-bottom: 2px solid var(--gold); }

.about-section { background: #fff; }
.about-sections { display: grid; gap: 44px; }
.about-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 40px; align-items: stretch; }
.about-copy {
  min-height: 430px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.leader-card { padding: 28px; display: flex; flex-direction: column; justify-content: end; }
.leader-mark {
  display: grid;
  place-items: center;
  width: 86px;
  height: 86px;
  margin-bottom: auto;
  border-radius: 50%;
  color: var(--ink);
  background: linear-gradient(135deg, var(--gold), #fff0ad);
  font-size: 36px;
  font-weight: 900;
}

.scripture-band {
  color: white;
  background:
    linear-gradient(rgba(7,17,31,.88), rgba(7,17,31,.9)),
    url("assets/restoration-hero.png") center / cover fixed;
}
blockquote {
  width: min(880px, 100%);
  margin: 0 auto;
  text-align: center;
  font-family: "Libre Baskerville", Georgia, serif;
  font-size: clamp(2rem, 4vw, 4rem);
  line-height: 1.25;
}
blockquote span { display: block; color: var(--gold); font-size: 6rem; line-height: .5; }
cite { display: block; margin-top: 24px; color: var(--gold); font-family: Inter, sans-serif; font-size: 1rem; font-style: normal; font-weight: 900; }

.contact-section { background: linear-gradient(135deg, #f7fbfd, #fff8e7); }
.contact-grid { display: grid; grid-template-columns: .86fr 1.14fr; gap: 42px; align-items: start; }
.contact-card { display: grid; gap: 14px; padding: 24px; }
label { display: grid; gap: 7px; color: var(--muted); font-weight: 800; font-size: 13px; }
input, select, textarea {
  width: 100%;
  min-height: 46px;
  padding: 12px 13px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--ink);
  background: white;
  font: inherit;
  min-width: 0;
}
textarea { min-height: 140px; resize: vertical; }

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 28px clamp(18px, 5vw, 72px);
  color: rgba(255,255,255,.76);
  background: var(--ink);
}
.site-footer p { margin: 4px 0 0; color: rgba(255,255,255,.58); }
.site-footer a { color: var(--gold); font-weight: 900; }
.legal-links { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 12px; }
.footer-credit {
  margin-top: 10px;
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.toast-region {
  position: fixed;
  z-index: 100;
  top: 88px;
  right: clamp(12px, 2vw, 24px);
  width: min(430px, calc(100vw - 24px));
  display: grid;
  gap: 12px;
  pointer-events: none;
}
.toast {
  --toast-accent: #3967d7;
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 12px;
  align-items: start;
  padding: 16px 16px 13px;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--toast-accent) 24%, white);
  border-radius: 16px;
  color: var(--ink);
  background: rgba(255,255,255,.96);
  box-shadow: 0 22px 65px rgba(7,17,31,.18);
  backdrop-filter: blur(18px);
  pointer-events: auto;
  animation: toast-enter .3s cubic-bezier(.2,.8,.2,1) both;
}
.toast-success { --toast-accent: #14845a; }
.toast-error { --toast-accent: #c43b34; }
.toast-warning { --toast-accent: #b57608; }
.toast-info { --toast-accent: #3967d7; }
.toast-icon {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 10px;
  color: white;
  background: var(--toast-accent);
  font-size: 15px;
  font-weight: 900;
}
.toast-copy { min-width: 0; }
.toast-copy strong { display: block; color: var(--ink); font-size: 14px; }
.toast-copy p { margin: 3px 0 0; color: #526272; font-size: 13px; line-height: 1.5; }
.toast-action {
  width: auto;
  margin-top: 9px;
  padding: 5px 10px;
  border: 0;
  border-radius: 999px;
  color: white;
  background: var(--toast-accent);
  font: inherit;
  font-size: 11px;
  font-weight: 900;
  cursor: pointer;
}
.toast-close {
  width: 28px;
  height: 28px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  color: #6c7885;
  background: transparent;
  font: inherit;
  font-size: 21px;
  line-height: 1;
  cursor: pointer;
}
.toast-close:hover, .toast-close:focus-visible { color: var(--ink); background: #edf2f5; }
.toast-progress {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 3px;
  background: var(--toast-accent);
  transform-origin: left;
  animation: toast-countdown linear forwards;
}
.toast-progress-paused { animation-play-state: paused; }
.toast-leaving { animation: toast-leave .22s ease both; }
@keyframes toast-enter {
  from { opacity: 0; transform: translate3d(24px, -8px, 0) scale(.97); }
  to { opacity: 1; transform: translate3d(0, 0, 0) scale(1); }
}
@keyframes toast-leave {
  to { opacity: 0; transform: translate3d(28px, 0, 0) scale(.97); }
}
@keyframes toast-countdown {
  from { transform: scaleX(1); }
  to { transform: scaleX(0); }
}
.about-image {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius);
  margin-bottom: 24px;
}
.ministry-card small, .service-panel small {
  color: var(--gold);
  font-weight: 900;
}
.admin-shell {
  min-height: 100vh;
  padding: 110px clamp(18px, 5vw, 72px) 72px;
  background:
    radial-gradient(circle at 10% 0%, rgba(96,230,210,.18), transparent 32%),
    linear-gradient(135deg, #f7fbfd, #fff8e7);
}
.login-shell {
  display: grid;
  place-items: center;
  padding-inline: 18px;
}
.admin-hero {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: end;
  margin-bottom: 22px;
}
.admin-hero h1, .login-card h1 {
  color: var(--ink);
  font-family: "Libre Baskerville", Georgia, serif;
  font-size: clamp(2.6rem, 6vw, 5.4rem);
}
.admin-actions, .admin-tabs {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.admin-tabs {
  position: sticky;
  top: 72px;
  z-index: 10;
  padding: 10px;
  margin-bottom: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255,255,255,.78);
  backdrop-filter: blur(16px);
  max-width: 100%;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scrollbar-width: thin;
}
.admin-tabs a {
  flex: 0 0 auto;
  padding: 9px 11px;
  border-radius: 999px;
  color: var(--muted);
  font-weight: 900;
}
.admin-tabs a:hover {
  color: var(--ink);
  background: white;
}
.admin-card {
  margin-bottom: 22px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255,255,255,.9);
  box-shadow: var(--shadow);
  overflow: hidden;
}

/* ── Auto-translate bar ── */
.translate-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding: 10px 14px;
  background: linear-gradient(90deg, #eef4ff, #f4f8fb);
  border: 1px solid #c7d8f0;
  border-radius: 8px;
  margin-bottom: 10px;
}
.translate-src-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}
.translate-src { font-size: 13px; padding: 5px 8px; }
.translate-btn { font-size: 13px; padding: 7px 14px; }
.translate-status { font-size: 12px; color: #2b56cc; font-style: italic; }
@keyframes translated-flash {
  0%, 100% { background: transparent; }
  30% { background: #d4f0d4; }
}
.field-translated { animation: translated-flash 2.5s ease; }

/* ── Collapsible admin panels ── */
.admin-panel {
  margin-bottom: 10px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: white;
  box-shadow: 0 1px 4px rgba(7,17,31,.06);
  overflow: hidden;
}
.admin-panel[open] {
  box-shadow: 0 4px 24px rgba(7,17,31,.10);
}
.panel-summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 16px 22px;
  cursor: pointer;
  list-style: none;
  user-select: none;
  background: linear-gradient(90deg, #f7fafd 0%, #fff 100%);
  border-bottom: 1px solid transparent;
  transition: background .15s;
}
.admin-panel[open] > .panel-summary {
  border-bottom-color: var(--line);
  background: linear-gradient(90deg, #eef4ff 0%, #f7fafd 100%);
}
.panel-summary::-webkit-details-marker { display: none; }
.panel-summary:hover { background: linear-gradient(90deg, #eef4ff 0%, #f5f9ff 100%); }
.panel-title { display: flex; flex-direction: column; gap: 2px; }
.panel-title .eyebrow { margin: 0; font-size: 10px; }
.panel-title strong { font-size: clamp(1rem, 2vw, 1.3rem); color: var(--ink); }
.panel-meta { display: flex; align-items: center; gap: 10px; }
.panel-count {
  padding: 3px 10px;
  border-radius: 999px;
  background: #eef4ff;
  color: #2b56cc;
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}
.panel-count-urgent {
  background: #fff3e0;
  color: #b45309;
}
.panel-arrow {
  font-size: 22px;
  color: var(--muted);
  transition: transform .2s;
  display: inline-block;
  line-height: 1;
}
.admin-panel[open] > .panel-summary .panel-arrow {
  transform: rotate(90deg);
}
.panel-body {
  padding: 22px 24px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.panel-body h3 { font-size: 1.1rem; margin-bottom: 4px; }

.login-card { width: min(460px, 100%); }
.form-link {
  width: fit-content;
  color: #2b56cc;
  font-weight: 900;
  border-bottom: 2px solid var(--gold);
}
.admin-card h2 {
  margin-bottom: 18px;
  font-size: clamp(1.7rem, 3vw, 3rem);
}
.admin-form {
  display: grid;
  gap: 14px;
}
.grid-form {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.wide { grid-column: 1 / -1; }
.admin-list {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}
.admin-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 8px;
  align-items: center;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(248,251,253,.9);
}
.button.danger {
  color: white;
  border-color: #b42318;
  background: #b42318;
}
.message-list {
  display: grid;
  gap: 12px;
}
.message-list article {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(248,251,253,.82);
}
.message-list small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
}

.portal-shell {
  min-height: 100vh;
  padding: 126px clamp(18px, 5vw, 72px) 72px;
  background:
    radial-gradient(circle at 8% 12%, rgba(96,230,210,.2), transparent 28%),
    radial-gradient(circle at 92% 8%, rgba(216,183,101,.22), transparent 24%),
    linear-gradient(135deg, #edf7f8, #fffaf0 52%, #f7f9ff);
}
.auth-portal {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(360px, .85fr);
  gap: clamp(32px, 7vw, 100px);
  align-items: center;
}
.portal-intro { max-width: 760px; }
.portal-intro h1, .registration-head h1, .member-hero h1 {
  color: var(--ink);
  font-family: "Libre Baskerville", Georgia, serif;
  font-size: clamp(3rem, 6vw, 6.6rem);
  line-height: 1;
}
.portal-intro > p { max-width: 640px; font-size: 1.08rem; }
.portal-points { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 28px; }
.portal-points span, .secure-note {
  padding: 10px 13px;
  border: 1px solid rgba(16,36,58,.12);
  border-radius: 999px;
  color: var(--ink-2);
  background: rgba(255,255,255,.68);
  font-size: 12px;
  font-weight: 900;
}
.portal-card {
  padding: 28px;
  border: 1px solid rgba(16,36,58,.12);
  border-radius: 18px;
  background: rgba(255,255,255,.9);
  box-shadow: 0 28px 90px rgba(7,17,31,.13);
}
.portal-card h2 {
  margin-bottom: 14px;
  font-size: clamp(1.8rem, 3vw, 3rem);
}
.event-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 16px;
}
.events-section { margin-bottom: 26px; }
.event-card { display: grid; gap: 14px; align-content: start; }
.event-card h3 { font-size: 1.65rem; }
.event-card .button { width: fit-content; }
.event-interest-status {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #f7fafc;
}
.event-interest-status p { margin: 4px 0 0; }
.event-admin-card { display: grid; gap: 12px; }
.field-note { margin: 0; font-size: 12px; }
.permission-group {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
}
.permission-group legend { padding: 0 6px; font-weight: 900; }
.permission-group label { display: flex; flex-direction: row; align-items: center; gap: 7px; }
.permission-group input { width: auto; }
.member-admin-editor { width: 100%; margin-top: 10px; }
.member-admin-editor summary { cursor: pointer; color: #2b56cc; font-weight: 900; }
.audit-table-wrap { margin-top: 18px; overflow-x: auto; }
.audit-table { width: 100%; min-width: 1050px; border-collapse: collapse; font-size: 12px; }
.audit-table th, .audit-table td { padding: 12px; border: 1px solid var(--line); text-align: left; vertical-align: top; }
.audit-table th { background: #f2f6f8; }
.audit-table small { display: block; margin-top: 4px; color: var(--muted); }
.audit-table pre { max-width: 560px; overflow: auto; white-space: pre-wrap; word-break: break-word; }
.auth-card { display: grid; gap: 16px; width: min(520px, 100%); justify-self: end; }
.auth-card small { margin-top: -10px; color: var(--muted); }
.required-mark {
  display: inline-flex;
  width: fit-content;
  margin-left: 4px;
  padding: 2px 6px;
  border-radius: 999px;
  color: #912018;
  background: #fff1f0;
  font-size: 9px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .06em;
}
.member-form label > small {
  margin-top: -2px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.45;
}
.instruction-box {
  margin-top: 18px;
  padding: 16px;
  border: 1px solid #d9c06f;
  border-radius: 12px;
  background: #fff9df;
}
.instruction-box p { margin: 6px 0 0; color: #634b00; }
.otp-resend {
  display: grid;
  gap: 8px;
  width: min(520px, 100%);
  margin-top: 12px;
}
.otp-resend small { color: var(--muted); text-align: center; }
.button:disabled { opacity: .48; cursor: not-allowed; }
.auth-switch { margin: 2px 0 0; font-size: 14px; }
.auth-switch a { color: #2b56cc; font-weight: 900; border-bottom: 2px solid var(--gold); }
.consent-check {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 10px;
  color: var(--ink);
  font-size: 12px;
  line-height: 1.55;
}
.consent-check input { width: 18px; min-width: 18px; min-height: 18px; margin-top: 2px; }
.consent-check a, .legal-page a { color: #2455c3; font-weight: 900; text-decoration: underline; }
.legal-page { max-width: 980px; margin: 0 auto; }
.legal-page header { margin-bottom: 28px; }
.legal-page article { display: grid; gap: 22px; }
.legal-page section { padding: 22px; border: 1px solid var(--line); border-radius: 12px; background: white; }
.legal-page h2 { margin-bottom: 10px; font-size: clamp(1.6rem, 3vw, 2.35rem); }
.legal-page h3 { margin: 18px 0 8px; font-size: 1.05rem; }
.legal-page p, .legal-page li { color: var(--muted); line-height: 1.75; }
.legal-page li + li { margin-top: 7px; }
.legal-meta { padding: 14px 16px; border-left: 4px solid var(--gold); background: #fff9df; }
.directory-results { margin-top: 22px; }
.member-detail-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; margin-top: 18px; }
.member-detail-grid article, .member-detail-grid > p { margin: 0; }
.member-detail-grid small { display: block; margin-top: 4px; color: var(--muted); }
.step-list { display: grid; gap: 12px; margin: 30px 0 0; padding: 0; list-style: none; }
.step-list li { display: flex; align-items: center; gap: 12px; color: var(--muted); font-weight: 900; }
.step-list span {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: white;
}
.step-list .active { color: var(--ink); }
.step-list .active span { color: var(--ink); background: var(--gold); border-color: var(--gold); }
.registration-shell { max-width: 1600px; margin: 0 auto; }
.registration-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 28px;
  margin-bottom: 26px;
}
.registration-head > div { max-width: 900px; }
.registration-head h1 { font-size: clamp(2.8rem, 5vw, 5.4rem); }
.secure-note { flex: 0 0 auto; border-radius: 12px; line-height: 1.6; }
.member-form {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.member-form .wide { grid-column: 1 / -1; }
.form-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.form-actions .button { width: auto; }
.family-layout { display: grid; grid-template-columns: minmax(360px, .8fr) minmax(0, 1.2fr); gap: 22px; align-items: start; }
.card-heading, .review-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 18px;
}
.card-heading > span {
  padding: 8px 11px;
  border-radius: 999px;
  color: #2b56cc;
  background: #eef4ff;
  font-size: 12px;
  font-weight: 900;
}
.family-list { display: grid; gap: 9px; margin-top: 20px; }
.family-list article {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #f8fbfd;
}
.family-list small { display: block; margin-top: 5px; color: var(--muted); }
.inline-actions { display: flex; gap: 10px; align-items: center; }
.inline-actions a, .inline-actions button {
  padding: 0;
  border: 0;
  color: #2b56cc;
  background: transparent;
  font: inherit;
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
}
.inline-actions button { color: #b42318; }
.submit-panel {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
.submit-panel p { margin: 3px 0 0; font-size: 13px; }
.compact-form { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.member-dashboard { min-height: 100vh; background: #f4f8fb; }
.member-hero {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 24px;
  padding: 150px clamp(18px, 6vw, 86px) 72px;
  color: white;
  background:
    radial-gradient(circle at 80% 10%, rgba(216,183,101,.26), transparent 28%),
    radial-gradient(circle at 20% 100%, rgba(96,230,210,.2), transparent 32%),
    linear-gradient(135deg, var(--ink), #142e48);
}
.member-hero h1 { color: white; font-size: clamp(3rem, 7vw, 7rem); }
.member-hero p { color: rgba(255,255,255,.72); }
.dashboard-content { display: grid; gap: 28px; padding: 34px clamp(18px, 6vw, 86px) 80px; }
.status-banner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  padding: 17px 20px;
  border: 1px solid;
  border-radius: 12px;
}
.status-banner strong, .status-banner span, .status-banner small { display: block; }
.status-banner span { margin-top: 3px; }
.status-banner small { margin-top: 7px; }
.status-banner.waiting { color: #634b00; border-color: #e7cc75; background: #fff9df; }
.status-banner.approved { color: #146c43; border-color: #86d5ad; background: #eaf9f1; }
.status-banner.rejected { color: #912018; border-color: #efaaa5; background: #fff1f0; }
.action-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.action-card {
  min-height: 280px;
  display: flex;
  flex-direction: column;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: white;
  box-shadow: 0 18px 54px rgba(7,17,31,.09);
  transition: transform .2s ease, box-shadow .2s ease;
}
.action-card:hover { transform: translateY(-4px); box-shadow: 0 25px 70px rgba(7,17,31,.14); }
.action-card > span { color: #2b56cc; font-weight: 900; }
.action-card h2 { margin-top: auto; font-size: clamp(1.55rem, 2.7vw, 2.6rem); }
.action-card p { margin-bottom: 0; }
.action-card.donation { color: white; background: linear-gradient(145deg, #234933, #0f2d25); }
.action-card.donation span { color: var(--gold); }
.action-card.donation p { color: rgba(255,255,255,.7); }
.action-card.disabled { opacity: .67; }
.request-card { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(30px, 7vw, 90px); }
.request-card form { display: grid; gap: 14px; }
.amount-picker {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  border: 0;
}
.amount-picker legend { margin-bottom: 8px; font-weight: 800; }
.amount-options { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; }
.amount-options label { cursor: pointer; }
.amount-options input { position: absolute; opacity: 0; pointer-events: none; }
.amount-options span {
  display: grid;
  min-height: 48px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--ink);
  background: #fff;
  font-weight: 900;
  transition: border-color .18s ease, background .18s ease, color .18s ease;
}
.amount-options input:checked + span {
  border-color: #234933;
  color: #fff;
  background: #234933;
}
.amount-options input:focus-visible + span { outline: 3px solid rgba(43,86,204,.25); outline-offset: 2px; }
.form-notice { padding: 12px; border-radius: 10px; color: #634b00; background: #fff9df; }
.donation-years { display: grid; gap: 22px; margin-top: 18px; }
.donation-year { padding-top: 4px; }
.donation-year + .donation-year { padding-top: 22px; border-top: 1px solid var(--line); }
.donation-year-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
.donation-year-head h3 { margin: 0; font-size: 1.8rem; }
.donation-year-head strong { color: #146c43; }
.reports-section { padding-top: 24px; }
.report-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; }
.report-grid article h3 { margin: 8px 0 10px; }
.report-grid article small { color: #2b56cc; font-weight: 900; }
.empty-state { padding: 22px; color: var(--muted); text-align: center; }

.review-list { display: grid; gap: 16px; }
.review-card {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fbfdff;
}
.review-head h3 { margin: 10px 0 4px; }
.review-head small { color: var(--muted); }
.status-pill {
  display: inline-flex;
  width: fit-content;
  padding: 5px 9px;
  border-radius: 999px;
  color: #2b56cc;
  background: #eef4ff;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: 10px;
  font-weight: 900;
}
.status-approved { color: #146c43; background: #eaf9f1; }
.status-rejected { color: #912018; background: #fff1f0; }
.status-submitted, .status-admin_approved { color: #775b00; background: #fff7d6; }
.review-members {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px;
  margin-top: 16px;
}
.review-members > div { padding: 13px; border: 1px solid var(--line); border-radius: 8px; background: white; }
.review-members span, .review-members small { display: block; margin-top: 4px; color: var(--muted); font-size: 12px; }
.review-history { display: grid; gap: 5px; margin-top: 14px; padding: 12px; border-radius: 8px; background: #f1f5f8; color: var(--muted); }
.review-form { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 14px; align-items: end; margin-top: 15px; }
.review-form textarea { min-height: 72px; }
.lookup-row { grid-template-columns: 1.2fr 1.5fr .7fr .8fr auto auto; }
.translation-columns {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.translation-group {
  display: grid;
  gap: 10px;
  min-width: 0;
  margin: 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
}
.translation-group legend { padding: 0 6px; color: var(--ink); font-weight: 900; }
.admin-edit-card { padding: 16px; border: 1px solid var(--line); border-radius: 12px; background: #f8fbfd; }
.admin-thumb { display: block; width: 120px; border-radius: 10px; object-fit: cover; }
.admin-thumb.landscape { aspect-ratio: 8 / 5; }
.profile-photo-preview, .family-avatar {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid white;
  box-shadow: 0 8px 24px rgba(7,17,31,.15);
}
.photo-field { padding: 16px; border: 1px dashed #9eb0bf; border-radius: 12px; background: #f8fbfd; }
.family-avatar { flex: 0 0 58px; width: 58px; height: 58px; }
.donation-list { display: grid; gap: 9px; margin-top: 18px; }
.donation-list article {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #f8fbfd;
}
.donation-list article > div:last-child { text-align: right; }
.donation-list small { display: block; margin-top: 5px; color: var(--muted); }
.status-paid, .status-approved { color: #146c43; background: #eaf9f1; }
.status-created, .status-pending { color: #775b00; background: #fff7d6; }
.removal-form { display: grid; grid-template-columns: 1fr 1fr auto; }
.removal-form label { min-width: 0; }

@media (max-width: 980px) {
  .site-header {
    position: sticky;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    padding-block: 12px;
  }
  .brand {
    width: 100%;
    justify-content: space-between;
  }
  nav {
    width: 100%;
    flex-wrap: nowrap;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 2px;
    scrollbar-width: none;
  }
  nav::-webkit-scrollbar { display: none; }
  nav a {
    flex: 0 0 auto;
    padding: 8px 10px;
    border-radius: 999px;
    background: rgba(255,255,255,.07);
  }
  .hero { min-height: auto; }
  .hero-content { padding-top: 74px; }
  .faith-strip, .split, .about-grid, .contact-grid, .grid-form {
    grid-template-columns: 1fr;
  }
  .admin-shell { padding-top: 34px; }
  .admin-hero {
    flex-direction: column;
    align-items: flex-start;
  }
  .admin-actions {
    width: 100%;
  }
  .admin-actions .button {
    flex: 1 1 180px;
  }
  .admin-tabs {
    top: 0;
    flex-wrap: nowrap;
  }
  .faith-strip div { border-right: 0; border-bottom: 1px solid var(--line); }
  .ministry-card { min-height: 240px; }
  .portal-shell { padding-top: 44px; }
  .auth-portal, .family-layout, .request-card { grid-template-columns: 1fr; }
  .auth-card { justify-self: stretch; width: 100%; }
  .member-form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .action-grid { grid-template-columns: 1fr 1fr; }
  .lookup-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .translation-columns { grid-template-columns: 1fr; }
  .removal-form { grid-template-columns: 1fr; }
  .coming-band { grid-template-columns: 1fr; }
  .coming-band div {
    min-height: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
}

@media (max-width: 760px) {
  .container { width: min(100% - 28px, 1180px); }
  .hero-media {
    background:
      linear-gradient(180deg, rgba(7,17,31,.94), rgba(7,17,31,.74) 52%, rgba(7,17,31,.54)),
      url("assets/restoration-hero.png") center / cover;
  }
  .hero-content {
    padding: 58px 0 48px;
  }
  .hero-actions, .coming-actions {
    display: grid;
    grid-template-columns: 1fr;
  }
  .coming-hero {
    min-height: 640px;
  }
  .coming-hero-media {
    background:
      linear-gradient(180deg, rgba(7,17,31,.96), rgba(7,17,31,.78) 50%, rgba(7,17,31,.56)),
      url("assets/restoration-hero.png") center / cover;
  }
  .coming-hero-content {
    padding: 96px 0 48px;
  }
  .coming-scripture {
    margin-top: 22px;
  }
  .button {
    width: 100%;
  }
  .faith-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .faith-strip div {
    padding: 20px 18px;
  }
  .section-head {
    margin-bottom: 20px;
  }
  .ministry-grid, .location-grid {
    grid-template-columns: 1fr;
  }
  .service-panel {
    padding: 8px;
  }
  .service-panel div {
    padding: 18px;
  }
  .about-copy {
    min-height: auto;
  }
  blockquote {
    text-align: left;
  }
  blockquote span {
    font-size: 4.5rem;
  }
  .contact-card, .admin-card {
    padding: 18px;
  }
  .admin-row {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 12px;
  }
  .admin-row .button {
    min-height: 44px;
  }
  .registration-head, .member-hero, .status-banner, .submit-panel, .review-head {
    flex-direction: column;
    align-items: stretch;
  }
  .member-form, .compact-form, .action-grid, .review-form { grid-template-columns: 1fr; }
  .member-form label, .member-form .wide { grid-column: auto; }
  .member-hero { padding-top: 64px; }
  .action-card { min-height: 220px; }
  .family-list article { flex-direction: column; }
  .donation-list article { flex-direction: column; align-items: stretch; }
  .donation-list article > div:last-child { text-align: left; }
}

@media (max-width: 560px) {
  .section { padding: 54px 14px; }
  .site-header {
    padding-inline: 12px;
  }
  .brand {
    gap: 10px;
    font-size: 14px;
  }
  .brand-mark {
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
  }
  nav {
    font-size: 13px;
  }
  .site-footer {
    flex-direction: column;
    padding: 24px 14px;
  }
  h1 { font-size: clamp(2.45rem, 13vw, 3.8rem); }
  h2 { font-size: clamp(2rem, 10vw, 3rem); }
  .hero-lead {
    font-size: 1rem;
    line-height: 1.6;
  }
  .faith-strip {
    grid-template-columns: 1fr;
  }
  .admin-shell {
    padding: 28px 12px 52px;
  }
  .admin-hero h1, .login-card h1 {
    font-size: clamp(2.2rem, 12vw, 3.2rem);
  }
  .admin-tabs {
    margin-inline: -4px;
  }
  .admin-card {
    padding: 14px;
  }
  .admin-card h2 {
    font-size: 1.55rem;
  }
  input, select, textarea {
    font-size: 16px;
  }
  .toast-region {
    inset: auto 12px 12px;
    width: auto;
  }
}

@media (max-width: 380px) {
  .container { width: min(100% - 20px, 1180px); }
  .section { padding-inline: 10px; }
  .hero-content { padding-block: 44px; }
  .contact-card, .admin-card, .ministry-card, .location-card, .leader-card {
    padding: 12px;
  }
  .button {
    padding-inline: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .toast, .toast-leaving, .toast-progress { animation: none; }
}

/* ── Password strength checklist ── */
.pw-checklist {
  list-style: none;
  margin: -4px 0 4px;
  padding: 10px 14px;
  display: grid;
  gap: 5px;
  background: #f4f8fb;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 13px;
}
.pw-req::before {
  content: "○ ";
  color: var(--muted);
  font-weight: 700;
}
.pw-ok::before {
  content: "✓ ";
  color: #1b7a3e;
}
.pw-ok { color: #1b7a3e; }
.pw-fail::before {
  content: "✗ ";
  color: #b42318;
}
.pw-fail { color: #b42318; }

/* ── Member form field sections ── */
.field-section {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
  margin-top: 6px;
}
.field-section-label {
  margin: 0;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #2b56cc;
  white-space: nowrap;
}
.field-section::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}

/* ── Event approval note ── */
.event-approval-note {
  font-size: 13px;
  color: var(--muted);
  margin: 4px 0 0;
  padding: 8px 12px;
  background: #f4f8fb;
  border-radius: 6px;
}

/* ── Bottom action cards on member home ── */
.member-bottom-actions { margin-top: 0; }

/* ── Member ID card with photo ── */
.member-id-card {
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #f8fbfd;
}
.member-id-card > div { display: flex; flex-direction: column; gap: 3px; }
.member-id-card strong { font-size: 15px; }
.member-id-card small { color: var(--muted); font-size: 12px; }
.member-id-avatar { width: 54px; height: 54px; border-radius: 50%; object-fit: cover; flex: 0 0 54px; }
.member-role-label { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: #2b56cc; }

/* ── Admin user panel ── */
.admin-create-panel {
  border: 1px solid var(--line);
  border-radius: 10px;
  margin-bottom: 22px;
  overflow: hidden;
}
.admin-create-panel > summary {
  padding: 14px 18px;
  cursor: pointer;
  font-weight: 700;
  background: #f4f8fb;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 10px;
}
.admin-create-panel > summary::before { content: "+ "; color: #2b56cc; font-weight: 900; }
.admin-create-panel[open] > summary::before { content: "− "; }
.admin-user-form { padding: 18px; display: flex; flex-direction: column; gap: 16px; }
.user-form-identity {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.permission-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}
.permission-panel > summary {
  padding: 10px 14px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
  background: #f8fbfd;
  list-style: none;
}
.permission-panel > summary small { font-weight: 400; color: var(--muted); margin-left: 6px; }
.permission-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border-top: 1px solid var(--line);
}
.perm-group {
  border: none;
  padding: 12px 14px;
  background: white;
  margin: 0;
}
.perm-group legend {
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: #2b56cc;
  margin-bottom: 8px;
}
.perm-check {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  padding: 3px 0;
  cursor: pointer;
}
.perm-check input { margin: 0; width: 15px; height: 15px; }
.admin-user-list { display: flex; flex-direction: column; gap: 12px; }
.admin-user-card {
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
}
.admin-user-disabled { opacity: .65; }
.admin-user-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 18px;
  background: #f8fbfd;
}
.admin-user-header strong { display: block; font-size: 15px; }
.admin-user-header small { color: var(--muted); font-size: 13px; }
.admin-user-card .member-admin-editor { border-top: 1px solid var(--line); }
.admin-user-card .member-admin-editor > summary { padding: 10px 18px; font-size: 13px; }
.admin-user-card .admin-user-form { border-top: 1px solid var(--line); background: white; }
@media (max-width: 860px) {
  .user-form-identity { grid-template-columns: 1fr; }
  .permission-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .permission-grid { grid-template-columns: 1fr; }
}

/* ── Photo field – existing photo state ── */
.photo-field--existing {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #f8fbfd;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.photo-field-label {
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
}
.photo-existing {
  display: flex;
  gap: 16px;
  align-items: center;
}
.photo-existing strong { display: block; margin-bottom: 4px; }
.photo-existing small { display: block; margin-bottom: 10px; color: var(--muted); font-size: 12px; }
.photo-selected {
  display: flex;
  gap: 16px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
}
.photo-selected[hidden] { display: none; }
.photo-selected strong { display: block; margin-bottom: 4px; }
.photo-selected small { display: block; margin-bottom: 10px; color: var(--muted); font-size: 12px; }
.button--small { padding: 6px 12px; font-size: 13px; }
