:root {
  --account-accent: #166534;
  --account-surface: #fff;
  --account-muted: #56685a;
}
.account-page {
  padding: 48px 0 96px;
}
.account-shell {
  max-width: 760px;
  margin: 0 auto;
}
.account-shell-wide { max-width: 940px; }
[data-authenticated-profile] {
  display: grid;
  gap: 24px;
}
.account-intro { margin-bottom: 16px; }
.account-form fieldset { min-width: 0; margin: 0; padding: 0; border: 0; }
.account-form legend { width: 100%; margin-bottom: 18px; color: var(--navy); font-size: 1.35rem; font-weight: 800; }
.step-indicator { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 0 0 26px; padding: 0; list-style: none; }
.step-indicator li { display: grid; place-items: center; gap: 4px; color: var(--text-muted); font-size: .75rem; font-weight: 800; text-align: center; }
.step-indicator li::after { content: ""; position: absolute; }
.step-indicator li span { display: grid; width: 32px; height: 32px; place-items: center; border: 1px solid var(--border); border-radius: 50%; background: var(--surface-tint); }
.step-indicator li[aria-current="step"] { color: var(--green); }
.step-indicator li[aria-current="step"] span { border-color: var(--green); background: var(--green); color: white; }
.step-indicator li.is-complete span { border-color: var(--success-border); background: var(--success-soft); color: var(--green); }
.choice-grid { display: grid; gap: 12px; }
.choice-card { display: flex !important; min-height: 72px; grid-template-columns: auto 1fr !important; align-items: center; gap: 12px !important; padding: 14px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface); cursor: pointer; }
.choice-card:has(input:checked) { border-color: var(--green); background: var(--success-soft); box-shadow: var(--shadow-focus); }
.choice-card input { width: 20px; min-height: 20px; accent-color: var(--green); }
.choice-card span { display: grid; gap: 2px; }
.choice-card small { color: var(--text-muted); font-weight: 400; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-grid .full { grid-column: 1 / -1; }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.section-heading h2 { margin: 0; font-size: 1.2rem; }
.service-editor { margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--border); }
.compact-button { min-height: 40px !important; padding: 7px 12px !important; }
.church-picker { display: grid; gap: 8px; margin-top: 12px; max-height: 360px; overflow: auto; }
.church-choice { display: flex; width: 100%; min-height: 60px; align-items: center; justify-content: space-between; gap: 12px; padding: 12px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface); color: var(--text); text-align: left; }
.church-choice span:first-child { display: grid; }
.church-choice small { color: var(--text-muted); }
.church-choice.is-selected { border-color: var(--green); background: var(--success-soft); box-shadow: var(--shadow-focus); }
.status-unclaimed { background: var(--success-soft); color: var(--green); }
.privacy-note, .decision-note { padding: 10px 12px; border-left: 3px solid var(--green); background: var(--surface-tint); color: var(--text-muted); }
.wizard-actions { display: flex; justify-content: flex-end; gap: 10px; padding-top: 18px; border-top: 1px solid var(--border); }
.review-summary dl { display: grid; gap: 0; margin: 0 0 18px; border: 1px solid var(--border); border-radius: var(--radius-sm); }
.review-summary dl div { padding: 12px; border-bottom: 1px solid var(--border); }
.review-summary dl div:last-child { border: 0; }
.review-summary dt { color: var(--text-muted); font-size: .78rem; font-weight: 800; text-transform: uppercase; }
.review-summary dd { margin: 2px 0 0; }
.confirmation-check { display: flex !important; grid-template-columns: auto 1fr !important; align-items: flex-start; }
.confirmation-check input { width: 20px; min-height: 20px; }
.success-panel { text-align: center; }
.status-icon { display: grid; width: 52px; height: 52px; place-items: center; margin: 0 auto 12px; border-radius: 50%; background: var(--success-soft); color: var(--green); font-size: 1.6rem; font-weight: 900; }
.photo-manager { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 12px; }
.photo-manager figure { position: relative; margin: 0; padding: 8px; border: 1px solid var(--border); border-radius: var(--radius-sm); }
.photo-manager img { width: 100%; aspect-ratio: 4 / 3; border-radius: 8px; object-fit: cover; }
.photo-manager figcaption { color: var(--green); font-size: .75rem; font-weight: 800; }
.account-card,
.review-card {
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--account-surface);
  box-shadow: var(--shadow-sm);
}
.account-card h1 {
  margin-bottom: 10px;
}
.account-form {
  display: grid;
  gap: 18px;
  margin-top: 24px;
}
.account-form label {
  display: grid;
  gap: 6px;
  font-weight: 700;
}
.account-form input,
.account-form select,
.account-form textarea {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid var(--control-border);
  border-radius: var(--radius-control);
  background: #fff;
}
.account-form textarea {
  min-height: 110px;
}
.auth-security-card {
  display: grid;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-control);
  background: var(--surface-tint);
}
.auth-security-copy {
  display: flex;
  align-items: center;
  gap: 10px;
}
.auth-security-copy > span:last-child { display: grid; gap: 1px; }
.auth-security-copy small { color: var(--account-muted); }
.auth-security-icon {
  display: grid;
  width: 32px;
  height: 32px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  background: var(--success-soft);
  color: var(--green);
  font-weight: 900;
}
.auth-captcha { min-height: 0; overflow: hidden; }
.auth-captcha:empty { display: none; }
.auth-security-card .text-button { min-height: 44px; justify-self: start; }
.form-status[data-state="error"] {
  color: #9f1239;
}
.form-status[data-state="success"] {
  color: var(--green);
}
.account-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}
.account-meta,
.account-listing p {
  color: var(--account-muted);
}
.account-list {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}
.account-listing {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface-tint);
}
.account-listing h3 {
  margin: 0;
  font-size: 1.05rem;
}
.account-listing p {
  margin: 3px 0;
}
.status-badge {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--success-soft);
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: capitalize;
}
.status-pending {
  background: var(--warning-soft);
  color: #854d0e;
}
.status-rejected {
  background: var(--danger-soft);
  color: #9f1239;
}
.claim-target {
  display: grid;
  gap: 3px;
  padding: 14px;
  border-left: 4px solid var(--green);
  background: var(--surface-tint);
}
.review-list {
  display: grid;
  gap: 16px;
}
.review-card {
  display: flex;
  justify-content: space-between;
  gap: 24px;
}
.review-card h2 {
  margin: 0;
}
.review-actions {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  flex-wrap: wrap;
}
.empty-state {
  padding: 20px;
  border: 1px dashed var(--border);
  border-radius: var(--radius-sm);
  color: var(--account-muted);
}
.profile-page-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 4px;
}
.profile-page-heading h1 { margin: 2px 0 0; }
.profile-language-slot { flex: 0 0 auto; }
.profile-language-slot .settings-control { position: static; }
.profile-language-slot .language-toggle { min-width: 48px; min-height: 44px; }
.profile-account-summary {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 16px;
}
.profile-account-summary h2 { margin: 0; font-size: 1.15rem; }
.profile-account-summary p { margin: 4px 0 0; }
.profile-avatar {
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  border-radius: 50%;
  background: var(--success-soft);
  color: var(--green);
}
.profile-avatar .lucide-icon { width: 25px; height: 25px; }
.profile-summary-actions { margin-top: 12px; }
.profile-summary-actions > * { min-height: 40px; padding-block: 7px; }
.account-disclosure {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}
.account-disclosure summary {
  display: grid;
  min-height: 52px;
  grid-template-columns: 24px minmax(0, 1fr) 20px;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  color: var(--text);
  font-weight: 800;
  cursor: pointer;
  list-style: none;
}
.account-disclosure summary::-webkit-details-marker { display: none; }
.account-disclosure summary:hover { background: var(--surface-tint); }
.account-disclosure summary:focus-visible { outline: 3px solid var(--focus); outline-offset: -3px; }
.account-disclosure .disclosure-chevron {
  display: grid;
  place-items: center;
  color: var(--text-muted);
  transition: transform var(--motion-fast) var(--motion-ease);
}
.account-disclosure .disclosure-chevron .lucide-icon { width: 17px; height: 17px; }
.account-disclosure[open] .disclosure-chevron { transform: rotate(90deg); }
.account-disclosure-content { padding: 4px 14px 16px; border-top: 1px solid var(--border); }
.account-disclosure-content.account-list { margin-top: 0; padding-top: 14px; }
.account-disclosure-content .account-form { margin-top: 12px; }
.profile-group-label {
  margin: 22px 0 8px;
  color: var(--text-muted);
  font-size: .75rem;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.profile-option-group {
  display: grid;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}
.profile-option-group a {
  display: grid;
  min-height: 48px;
  grid-template-columns: 24px minmax(0, 1fr) 20px;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  color: var(--text);
  font-weight: 700;
}
.profile-option-group a:last-child { border-bottom: 0; }
.profile-option-group a:hover,
.profile-option-group a:focus-visible { background: var(--surface-tint); text-decoration: none; }
.profile-option-icon,
.profile-option-chevron { display: grid; place-items: center; color: var(--green); }
.profile-option-icon .lucide-icon { width: 19px; height: 19px; }
.profile-option-chevron { color: var(--text-muted); }
.profile-option-chevron .lucide-icon { width: 17px; height: 17px; }
.profile-site-options .settings-control {
  position: static;
  margin-top: 12px;
}
.profile-site-options { margin-bottom: 32px; }
@media (max-width: 750px) {
  .account-page {
    padding: 28px 0 112px;
  }
  .account-card,
  .review-card {
    padding: 20px;
    border-radius: 14px;
  }
  .account-listing,
  .review-card {
    display: grid;
  }
  .review-actions {
    width: 100%;
  }
  .review-actions button {
    flex: 1;
  }
  .account-actions > * {
    width: 100%;
    text-align: center;
  }
  .profile-account-summary { align-items: start; padding: 16px; }
  .profile-account-summary .profile-summary-actions { grid-column: 1 / -1; }
  .form-grid { grid-template-columns: 1fr; }
  .form-grid .full { grid-column: auto; }
  .step-indicator li { font-size: .68rem; }
  .wizard-actions > * { flex: 1; }
  .proof-choices { grid-template-columns: 1fr; }
  .photo-manager { grid-template-columns: repeat(2, 1fr); }
  .profile-site-options { margin-bottom: calc(48px + env(safe-area-inset-bottom)); }
}
@media (prefers-color-scheme: dark) {
  .account-card,
  .review-card {
    border-color: #3b5142;
    background: #17231d;
  }
  .account-listing,
  .claim-target,
  .empty-state {
    border-color: #486451;
    background: #203027;
  }
  .account-meta,
  .account-listing p {
    color: #b7cbbb;
  }
  .account-form input,
  .account-form select,
  .account-form textarea {
    border-color: #6f8b78;
    background: #102018;
    color: #edf7ee;
  }
  .auth-security-card,
  .profile-option-group,
  .account-disclosure {
    border-color: #486451;
    background: #17231d;
  }
  .auth-security-copy small { color: #b7cbbb; }
  .profile-option-group a { border-color: #486451; color: #edf7ee; }
  .profile-option-group a:hover,
  .profile-option-group a:focus-visible { background: #203027; }
  .account-disclosure summary { color: #edf7ee; }
  .account-disclosure summary:hover { background: #203027; }
  .account-disclosure-content { border-color: #486451; }
  .account-page h1,
  .account-page h2,
  .account-listing h3,
  .review-card h2 {
    color: #eef8ef;
  }
  .status-badge {
    background: #204a2d;
    color: #b7efbf;
  }
  .status-pending {
    background: #513f16;
    color: #f9dd9b;
  }
  .status-rejected {
    background: #521d2e;
    color: #ffc3d1;
  }
}
