#members{max-width:1000px}#members form,#members article,#members details{padding:22px;margin:18px 0;background:#fff;border:1px solid #e1bdc5;border-radius:18px}#members label{display:block;margin:12px 0;font-weight:600}#members input,#members select,#members textarea{display:block;box-sizing:border-box;width:100%;max-width:100%;padding:12px;margin-top:7px;border:1px solid #a98c96;border-radius:8px;font:inherit}#members textarea{min-height:110px}#members button,#members .button{padding:12px 16px;margin:5px 8px 5px 0;border:0;border-radius:9px;background:#b71335;color:#fff;font:600 15px 'Segoe UI',sans-serif;cursor:pointer}#members .row{display:flex;flex-wrap:wrap;align-items:center;gap:8px}#members p,#members li{line-height:1.6;overflow-wrap:anywhere}#members .muted{color:#64515a}#members button:disabled{opacity:.6}#members :focus-visible{outline:3px solid #6b102a;outline-offset:3px}#members .tag{font-weight:700;color:#9b1130}#members summary{cursor:pointer;font-weight:700}#members a{color:#991330}#message{white-space:pre-line}#members h2{font-size:26px}@media(max-width:600px){#members form,#members article,#members details{padding:15px}}

.team-media img,.team-media video{max-width:100%;max-height:400px;border-radius:16px}.team-media input[type=checkbox]{width:auto;display:inline-block}.team-media{margin-top:28px}
/* Badge styling adapted from shadcn/ui (MIT), translated to native CSS.
   Source: https://github.com/shadcn-ui/ui/blob/main/apps/v4/registry/new-york-v4/ui/badge.tsx */
#members .m360-badge{display:inline-flex;width:fit-content;flex-shrink:0;align-items:center;justify-content:center;gap:4px;overflow:hidden;border:1px solid transparent;border-radius:999px;padding:3px 9px;font-size:12px;font-weight:650;white-space:nowrap;background:#b71335;color:white}
#members .m360-badge[data-variant=outline]{border-color:#e2c7cf;background:#fff8fa;color:#7d3044}
#members .directory-toolbar{padding:24px;background:white;border:1px solid #ead8df;border-radius:24px;box-shadow:0 10px 30px #57213408}#members .directory-toolbar>div{display:grid;grid-template-columns:2fr 1fr;gap:0 18px}#members .directory-tabs,#members #directory-count{grid-column:1/-1}#members .directory-tabs{display:flex;flex-wrap:wrap;gap:6px;background:#f7eff2;border-radius:14px;padding:5px;margin-top:10px}#members .directory-tabs button{margin:0;background:transparent;color:#68444f;border-radius:10px;min-height:44px}#members .directory-tabs button[aria-pressed=true]{background:#fff;color:#a81737;box-shadow:0 2px 8px #56223615}#members .directory-list{margin:24px 0 36px;display:grid;gap:14px}#members .directory-card{margin:0;padding:20px;background:white;border:1px solid #ead8df;border-radius:20px;box-shadow:0 5px 20px #57213405}#members .directory-person{display:flex;align-items:center;gap:14px;flex-wrap:wrap}#members .directory-person>div{flex:1;min-width:120px}#members .directory-person h3{font-size:18px;margin:0 0 5px;line-height:1.3}#members .directory-person p{margin:2px 0;font-size:14px;color:#705761}#members .member-avatar{display:grid;place-items:center;width:44px;height:44px;flex-shrink:0;background:#fbe9ee;color:#aa1837;border-radius:14px;font-weight:800}#members .member-actions{padding:14px 0 0;border:0;border-top:1px solid #f0e3e8;border-radius:0;margin:16px 0 0;box-shadow:none}#members .member-actions>summary{font-size:14px;color:#9c2541;min-height:32px}#members .directory-note{font-size:13px;color:#735b64;margin:12px 0 0}#members .directory-card[hidden],#members .directory-empty[hidden],#members details[hidden]{display:none!important}#members .directory-empty{padding:30px;text-align:center;background:#fff6f8;border-radius:20px}#members #directory-count{margin-bottom:0;font-size:13px;color:#735b64}
@media(max-width:600px){#members .directory-toolbar{padding:18px}#members .directory-toolbar>div{grid-template-columns:1fr}#members .directory-card{padding:16px}#members .directory-person{gap:10px}#members .directory-tabs button{flex:1;font-size:13px;padding:10px}#members .directory-person .m360-badge{margin-left:54px}#members .directory-person p{overflow-wrap:anywhere}}


#members .member-profile-button { min-height: 44px; margin-top: 15px; }
.member-profile-dialog {
  box-sizing: border-box;
  position: fixed;
  inset: 0;
  width: min(720px, calc(100% - 24px));
  max-width: calc(100% - 24px);
  max-height: calc(100vh - 24px);
  max-height: calc(100dvh - 24px);
  margin: auto;
  padding: clamp(16px, 4vw, 28px);
  overflow: auto;
  overscroll-behavior: contain;
  border: 1px solid #e4d2da;
  border-top: 4px solid #b71335;
  border-radius: 20px;
  background: #fffafa;
  color: #35242c;
  box-shadow: 0 22px 90px #2e091c44;
  overflow-wrap: anywhere;
}
.member-profile-dialog::backdrop { background: #28131f99; }
.member-profile-dialog .profile-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 16px;
}
.member-profile-dialog .profile-heading > div { min-width: 0; }
.member-profile-dialog .profile-heading h2 {
  margin: 0;
  font: 700 clamp(1.35rem, 4vw, 1.85rem)/1.15 'Segoe UI', sans-serif;
  color: #35242c;
}
.member-profile-dialog .profile-heading p { margin: .35rem 0 0; }
.member-profile-dialog .profile-close {
  flex: 0 0 44px;
  min-height: 44px;
  margin: 0;
  padding: 0;
  border: 1px solid #e1c8cf;
  border-radius: 12px;
  background: #fff;
  color: #8d1730;
  font-size: 26px;
  cursor: pointer;
}
.member-profile-dialog .profile-team-picker {
  display: grid;
  gap: 6px;
  margin: 0 0 16px;
  color: #5b3845;
  font-weight: 600;
}
.member-profile-dialog .profile-team-picker select {
  box-sizing: border-box;
  width: 100%;
  min-height: 44px;
  padding: 8px 12px;
  border: 1px solid #a98c96;
  border-radius: 8px;
  background: white;
  color: #35242c;
  font: inherit;
}
.member-profile-dialog .profile-sections {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.member-profile-dialog .profile-section {
  min-width: 0;
  padding: 16px;
  border: 1px solid #ecdde3;
  border-radius: 14px;
  background: white;
}
.member-profile-dialog .profile-section:last-child { grid-column: 1 / -1; }
.member-profile-dialog .profile-section h3 { margin: 0 0 .5em; color: #35242c; font-size: 1.05rem; }
.member-profile-dialog .profile-section p,
.member-profile-dialog .profile-heading p { color: #604953; line-height: 1.45; }
.member-profile-dialog .profile-section p { margin: .4rem 0; }
.member-profile-dialog .profile-rows { list-style: none; margin: 0; padding: 0; }
.member-profile-dialog .profile-rows li { padding: 8px 0; }
.member-profile-dialog .profile-rows li + li { border-top: 1px solid #f2e7ea; }
.member-profile-dialog .profile-rows :is(strong, span, small) { display: block; }
.member-profile-dialog .profile-rows :is(span, small) { margin-top: 3px; color: #644e57; }
.member-profile-dialog .profile-rows span { white-space: pre-line; }
.member-profile-dialog .profile-section :is(button, a),
.member-profile-dialog .profile-sections > button {
  display: inline-flex;
  box-sizing: border-box;
  align-items: center;
  min-height: 44px;
  max-width: 100%;
  margin: 8px 8px 0 0;
  padding: 7px 13px;
  border: 1px solid #e7cad2;
  border-radius: 9px;
  background: #fff5f7;
  color: #8d1730;
  text-decoration: none;
  font: 650 .94rem/1.3 'Segoe UI', sans-serif;
  cursor: pointer;
}
.member-profile-dialog :is(button, a, select):focus-visible { outline: 3px solid #8d1730; outline-offset: 2px; }
@media (max-width: 600px) {
  .member-profile-dialog .profile-sections { grid-template-columns: minmax(0, 1fr); }
  #members .directory-toolbar > div { grid-template-columns: minmax(0, 1fr); }
  #members .directory-tabs button { min-width: 0; overflow-wrap: anywhere; }
}

#members #treasury summary { padding: 10px 0; color: #8d1730; }
#members #treasury-filters:not([hidden]) {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  gap: 8px 16px;
}
#treasury-list { list-style: none; margin: 0; padding: 0; }
#treasury-list li {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px 14px;
  padding: 12px 0;
  border-top: 1px solid #ead8df;
}
#treasury-list span { display: block; color: #614954; }
@media (max-width: 600px) {
  #members #treasury-filters:not([hidden]), #treasury-list li { grid-template-columns: minmax(0, 1fr); }
}
