.account-summary { display: flex; align-items: center; gap: .5rem; }
.profile-avatar { display: block; object-fit: cover; border-radius: 50%; background: var(--green-pale); border: 1px solid var(--line); }
.profile-avatar-header { width: 2rem; height: 2rem; }
.profile-avatar-menu { width: 3rem; height: 3rem; margin-bottom: .35rem; }
.profile-avatar-large { width: 8rem; height: 8rem; flex: 0 0 8rem; }
.profile-avatar-placeholder { display: grid; place-items: center; color: var(--green); font-size: 2.3rem; font-weight: 900; }
.profile-image-editor { display: flex; align-items: center; gap: 1.5rem; padding-bottom: 1.25rem; border-bottom: 1px solid var(--line); }
.profile-image-input { flex: 1; }
.profile-image-input input { margin-top: .5rem; }
.profile-image-input small { display: block; margin-top: .35rem; }
.profile-tabs { display: flex; gap: .35rem; margin-bottom: 1rem; padding: .3rem; border: 1px solid var(--line); border-radius: .85rem; background: #fff; }
.profile-tabs button { flex: 1; min-height: 2.8rem; border: 0; border-radius: .65rem; background: transparent; color: var(--muted); font: inherit; font-weight: 800; cursor: pointer; }
.profile-tabs button[aria-selected="true"] { background: var(--green-pale); color: var(--green-dark); }
.profile-tabs button:focus-visible { outline: 3px solid rgba(23,107,77,.2); }
#profile-tab-household, #account-tab-withdrawals { background: #fff; }
#profile-tab-household[aria-selected="true"] { background: #eaf4ff; color: #245580; }
#account-tab-withdrawals[aria-selected="true"] { background: #fff0f0; color: #963e3e; }
.profile-account-tabs { flex-wrap: wrap; gap: .25rem; }
.profile-account-switches { display: contents; }
.profile-account-tabs button, .profile-account-tabs > a { flex: 1 1 120px; display: flex; align-items: center; justify-content: center; min-height: 2.8rem; padding: .5rem; border-radius: .65rem; color: var(--muted); font: inherit; font-weight: 800; text-decoration: none; text-align: center; }
.profile-account-tabs > a:hover { background: var(--green-pale); color: var(--green-dark); }
.profile-account-tabs > a:focus-visible { outline: 3px solid rgba(23,107,77,.2); }
.profile-household { display: grid; gap: 1rem; margin-bottom: 2rem; scroll-margin-top: 1rem; }
.profile-household-heading, .profile-members-heading { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.profile-household-heading h2, .profile-members-heading h2 { margin: 0; }
.profile-household-heading p:not(.eyebrow) { margin: .35rem 0 0; color: var(--muted); }
.profile-household-registration { margin-bottom: 2.5rem; }
.profile-members-heading p { margin: .25rem 0 0; color: var(--muted); }
.profile-member-list article { background: #fff; }
.profile-member-list > .profile-member-row { padding: 0; overflow: visible; }
.profile-member-open { display: flex; align-items: center; justify-content: space-between; gap: 1rem; width: 100%; padding: 1rem 1.15rem; border: 0; border-radius: .75rem; background: transparent; color: var(--ink); font: inherit; text-align: left; cursor: pointer; }
.profile-member-open:hover, .profile-member-open:focus-visible { background: var(--green-pale); }
.profile-member-open:focus-visible { outline: 3px solid var(--green); outline-offset: 2px; }
.profile-member-open span:first-child { display: grid; gap: .25rem; }
.profile-member-open small, .profile-member-open span:last-child { color: var(--muted); }
.household-member-dialog { width: min(680px, calc(100% - 2rem)); max-height: min(85vh, 900px); padding: 1.5rem; overflow-y: auto; border: 0; border-radius: 1rem; background: #fff; box-shadow: 0 24px 80px rgba(10,35,26,.25); color: var(--ink); }
.household-member-dialog::backdrop { background: rgba(8,25,19,.52); }
.household-member-dialog .dialog-heading { margin-bottom: 1.25rem; }
.household-member-dialog .member-heading { margin-top: .5rem; }
.household-member-dialog > form + form { margin-top: .75rem; text-align: right; }
.household-member-dialog .household-invite-controls { margin-top: 1.2rem; }
.profile-member-add summary { cursor: pointer; color: var(--green-dark); font-weight: 800; }
.profile-member-add[open] summary { margin-bottom: 1.25rem; padding-bottom: 1rem; border-bottom: 1px solid var(--line); }
.profile-empty { text-align: center; }
.profile-empty p { color: var(--muted); }
@media (max-width: 560px) { .profile-image-editor { align-items: flex-start; flex-direction: column; } }
.dashboard-heading { align-items: center; }
.dashboard-association-title { display: flex; align-items: center; gap: 1.5rem; width: 100%; padding: .45rem 0; color: var(--ink); text-decoration: none; }
.dashboard-title-main { display: flex; align-items: center; flex-wrap: wrap; gap: .55rem; font-family: "Hiragino Sans", "Yu Gothic UI", "Yu Gothic", system-ui, sans-serif; font-size: clamp(1.25rem, 2.6vw, 1.8rem); font-weight: 800; }
.dashboard-name-and-arrow { display: inline-flex; align-items: center; gap: .55rem; max-width: 100%; }
.dashboard-name-and-arrow > span:first-child { min-width: 0; overflow-wrap: anywhere; }
.dashboard-title-main .status-badge { font-family: "Hiragino Sans", "Yu Gothic UI", "Yu Gothic", system-ui, sans-serif; font-size: .8rem; }
.member-attribute-tag { background: #edf1ee; color: var(--ink); }
.dashboard-title-arrow { display: grid; place-items: center; flex: 0 0 2.6rem; width: 2.6rem; height: 2.6rem; border-radius: 50%; background: var(--green-pale); color: var(--green); font-size: 1.25rem; }
.dashboard-association-title:hover .dashboard-title-arrow { background: var(--green); color: #fff; }
.dashboard-shell { padding-top: .8rem; }
.dashboard-shell .dashboard-heading { margin-bottom: .8rem; }
.association-detail-shell { padding-top: .8rem; }
.association-detail-shell > .back-link { margin-bottom: .7rem; }
.association-detail-shell .association-hero { min-height: 0; margin-bottom: .75rem; padding: 1rem 1.5rem; border-radius: .85rem; }
.association-detail-shell .association-hero h1 { margin: .5rem 0 .35rem; font-family: "Hiragino Sans", "Yu Gothic UI", "Yu Gothic", system-ui, sans-serif; font-size: clamp(1.15rem, 2.5vw, 1.85rem); }
.association-detail-shell .association-hero p { margin: .25rem 0; }
.association-detail-shell .association-hero .title-icon { width: 2rem; height: 2rem; flex-basis: 2rem; }
.association-detail-shell .association-hero .title-icon svg { width: 1.15rem; height: 1.15rem; }
.association-detail-shell .hero-monogram { width: 3.5rem; height: 3.5rem; border-radius: .8rem; font-size: 1.25rem; }
.association-hero-contact { display: flex; flex-wrap: wrap; gap: 1rem 2rem; margin-left: 2.7rem; }
.association-hero-contact span { display: grid; gap: .1rem; }
.association-hero-contact small { color: var(--muted); font-size: .72rem; }
.association-hero-contact strong { font-size: .9rem; }
.association-page-actions { display: flex; justify-content: flex-end; margin: 0 0 .75rem; }
.association-detail-shell .association-hero { position: relative; align-items: stretch; }
.association-officers-link { align-self: flex-end; margin-left: auto; white-space: nowrap; }
.association-public-content { display: grid; }
.public-officer-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: .8rem; }
.public-officer-list article { display: flex; align-items: center; gap: .8rem; padding: .9rem; border: 1px solid var(--line); border-radius: .75rem; background: #fafcfb; }
.public-officer-list article > div { display: grid; gap: .15rem; }
.public-officer-list small, .public-officer-list span { color: var(--muted); }
/* Keep application pages vertically compact. This global override also applies
   to newly added pages that use the shared page-shell structure. */
main.page-shell { padding-top: 1rem; padding-bottom: 2rem; }
main.page-shell > .back-link { margin-bottom: .75rem; }
main.page-shell > .page-heading { margin-bottom: 1.25rem; }
main.page-shell > .page-heading h1 { margin-bottom: .3rem; }
main.page-shell > .page-heading + .management-tabs,
main.page-shell > .page-heading + .settings-entry-grid { margin-top: 0; }
@media (max-width: 760px) { .dashboard-title-main { font-size: 1.25rem; } .dashboard-association-title { align-items: flex-start; } .dashboard-title-arrow { margin-top: .1rem; } .association-detail-shell .association-hero { padding: 1rem; } .association-officers-link { align-self: flex-end; margin-top: .75rem; } }
/* Keep the withdrawal confirmation control directly beside its text. */
.form-stack label.withdrawal-confirmation,
.form-stack label.disclosure-confirmation {
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  gap: .45rem;
}
.form-stack .withdrawal-confirmation input[type="checkbox"],
.form-stack .disclosure-confirmation input[type="checkbox"] {
  flex: 0 0 auto;
  width: 1rem;
  height: 1rem;
  min-height: 0;
  padding: 0;
  margin: .2rem 0 0;
}

.profile-image-fields { flex: 1; min-width: 0; display: grid; gap: 1rem; }
.passkey-row{display:flex;align-items:center;justify-content:space-between;gap:1rem;padding:.7rem 0;border-bottom:1px solid #e1e9e4}.passkey-row span{overflow-wrap:anywhere}

.dashboard-heading > .dashboard-association-title { flex: 1; min-width: 0; width: auto; }
.hazard-map-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: .5rem; margin-left: auto; flex-shrink: 0; }
.hazard-map-button { background: #f6caca; border-color: #e3a7a7; color: #b71c1c; white-space: nowrap; }
.hazard-map-button:hover { background: #efb7b7; border-color: #d99191; }
.hazard-map-button:focus-visible { outline: 3px solid #7f1d1d; outline-offset: 3px; }
@media (max-width: 760px) { .dashboard-heading > .hazard-map-actions { align-self: flex-end; } }

.member-support-summary { display: flex; align-items: center; flex-wrap: wrap; gap: .75rem; margin: .75rem 0; }
.support-toggle-label { display: flex !important; align-items: center; gap: .75rem; }
.support-priorities { min-width: 0; margin: 0; padding: 1rem; border: 1px solid var(--line); border-radius: .65rem; }
.support-priority { padding: .75rem 0; }
.support-priority + .support-priority { border-top: 1px solid var(--line); }
.support-priority input { width: auto; }
.support-priority ul { margin: .5rem 0 0; padding-left: 1.4rem; font-weight: 400; line-height: 1.7; }

.profile-member-row > .member-support-summary { padding: 0 1.15rem; }

.support-toggle-text { display: grid; gap: .25rem; }
.support-toggle-text small { margin: 0; }
