.member { background: var(--navy); }
.auth-card { width: min(420px, 100%); margin-top: 36px; background: var(--navy-deep); border: 1px solid var(--navy-line); border-radius: 8px; padding: 28px 24px; }
.auth-title { font-size: 26px; letter-spacing: 4px; text-transform: uppercase; margin: 0 0 18px; text-align: center; }
.auth-sub { color: var(--silver-soft); margin: -6px 0 20px; text-align: center; font-size: 15px; }
.btn-block { width: 100%; }
.linkbtn { display: block; margin: 14px auto 0; background: none; border: 0; color: var(--silver-soft); font-size: 14px; cursor: pointer; text-decoration: underline; min-height: 44px; }
.note { color: #A9D8B8; font-size: 14px; }

.mbar { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 5; background: var(--navy-deep); border-bottom: 1px solid var(--navy-line);
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap; padding-block: 10px;
  padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)); }
.mbar-logo { height: 44px; width: auto; }
.mnav { display: flex; gap: 2px; flex: 1; overflow-x: auto; }
.mnav button, .mnav a {
  background: none; border: 0; color: var(--silver-soft); font-family: "Oswald", sans-serif; font-size: 15px; letter-spacing: 2px; text-transform: uppercase;
  padding: 10px 12px; min-height: 44px; display: inline-flex; align-items: center; cursor: pointer; text-decoration: none; white-space: nowrap; border-bottom: 3px solid transparent;
}
.mnav .active { color: var(--white); border-bottom-color: var(--maroon-bright); }
.mnav button:hover, .mnav a:hover { color: var(--white); }
.mbar-out { background: none; border: 1px solid var(--navy-line); color: var(--silver-soft); border-radius: 4px; min-height: 40px; padding: 0 14px; cursor: pointer; font-size: 14px; }
.mmain { max-width: 1080px; margin: 0 auto; padding-top: 32px; padding-bottom: 80px;
  padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)); }
.mhead { display: flex; justify-content: space-between; align-items: end; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }
.mhead h2 { font-size: clamp(28px, 5vw, 40px); text-transform: uppercase; margin: 0; }
.mhead p { margin: 6px 0 0; color: var(--silver-soft); }
.search { width: min(280px, 100%); }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.bro { background: var(--navy-deep); border: 1px solid var(--navy-line); border-radius: 8px; overflow: hidden; cursor: pointer; text-align: left; color: inherit; padding: 0; font: inherit; display: flex; flex-direction: column; }
.bro:hover, .bro:focus-visible { border-color: var(--silver); outline: none; }
.bro-photo { aspect-ratio: 4 / 5; width: 100%; max-width: 100%; background: var(--navy-line); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.bro-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.initials { font-family: "Oswald", sans-serif; font-weight: 700; font-size: 56px; color: var(--silver); letter-spacing: 2px; }
.bro-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 2px; }
.bro-name { font-family: "Oswald", sans-serif; font-weight: 700; font-size: 20px; letter-spacing: 0.5px; text-transform: uppercase; line-height: 1.15; }
.bro-meta { font-size: 13px; color: var(--silver-soft); }
.tag { align-self: flex-start; margin-top: 8px; font-size: 11px; letter-spacing: 2px; text-transform: uppercase; color: var(--silver); border: 1px solid var(--navy-line); border-radius: 999px; padding: 2px 10px; }

.profile { display: grid; grid-template-columns: minmax(0, 320px) minmax(0, 1fr); gap: 36px; align-items: start; }
.profile .bro-photo { border-radius: 8px; border: 1px solid var(--navy-line); }
.backbtn { background: none; border: 0; color: var(--silver-soft); cursor: pointer; font-size: 14px; padding: 0; margin-bottom: 20px; min-height: 44px; }
.backbtn:hover { color: var(--white); }
.pname { font-size: clamp(32px, 6vw, 48px); text-transform: uppercase; margin: 0; }
.prole { color: var(--silver-soft); font-size: 17px; margin: 6px 0 20px; }
.pbio { font-size: 17px; line-height: 1.75; margin: 0 0 24px; color: #E4E5E7; white-space: pre-wrap; }
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 28px; margin: 0; }
.fact { border-top: 1px solid var(--navy-line); padding: 12px 0; min-width: 0; }
.fact dt { font-size: 11px; letter-spacing: 2px; text-transform: uppercase; color: var(--silver); margin: 0 0 2px; }
.fact dd { margin: 0; overflow-wrap: anywhere; user-select: text; }
.ch-prof { margin: 18px 0 0; font-size: 14px; color: var(--silver-soft); }
.ch-prof:empty { display: none; }
.ch-prof b { color: var(--white); margin-right: 8px; letter-spacing: 1px; text-transform: uppercase; font-size: 12px; }
.pactions { margin-top: 24px; display: flex; gap: 12px; flex-wrap: wrap; }

.editor { display: grid; grid-template-columns: minmax(0, 260px) minmax(0, 1fr); gap: 32px; align-items: start; }
.photo-pick { display: flex; flex-direction: column; gap: 12px; }
.photo-pick .bro-photo { border-radius: 8px; border: 1px dashed var(--silver); }
.filebtn { position: relative; }
.filebtn input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.welcome { background: var(--maroon); border-radius: 8px; padding: 16px 18px; margin-bottom: 24px; }
.welcome p { margin: 0; color: var(--white); }
.toast { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(20px + env(safe-area-inset-bottom, 0px)); background: var(--white); color: var(--navy); padding: 12px 18px; border-radius: 6px; font-size: 14px; font-weight: 600; z-index: 20; }
.empty-m { border: 1px dashed var(--navy-line); border-radius: 8px; padding: 32px; text-align: center; color: var(--silver-soft); }

@media (max-width: 720px) {
  .profile, .editor { grid-template-columns: minmax(0, 1fr); }
  .profile .bro-photo, .photo-pick .bro-photo { max-width: 320px; }
  .facts { grid-template-columns: minmax(0, 1fr); }
  .mnav { order: 3; flex-basis: 100%; }
  .mbar-out { margin-left: auto; }
}
@media (max-width: 480px) {
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .bro-name { font-size: 16px; }
  .initials { font-size: 40px; }
}

.dashboard-home { padding: 28px 0; max-width: 960px; }
.dashboard-home h2 { font-family: 'Oswald', sans-serif; font-size: clamp(28px, 4vw, 44px); margin: 0 0 18px; }
.dashboard-home > p { max-width: 640px; line-height: 1.7; }
.dashboard-home .pillars { margin-top: 28px; }
#dashboard-brothers .bro { padding: 22px; }
#dashboard-brothers h2 { font-family: 'Oswald', sans-serif; margin: 0 0 12px; }

.profile-picture-editor { display: flex; align-items: center; gap: 24px; margin-bottom: 28px; padding-bottom: 24px; border-bottom: 1px solid var(--navy-line); }
.profile-avatar { position: relative; flex-shrink: 0; width: 112px; height: 112px; border-radius: 50%; overflow: hidden; background: var(--navy-line); display: grid; place-items: center; color: var(--silver); font-size: 32px; }
.profile-avatar img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.profile-avatar img[hidden] { display: none; }
.profile-picture-editor input { display: block; max-width: 100%; margin-top: 10px; }
.profile-picture-editor h2 { margin-top: 0; }
#photo-status { font-size: 14px; }
.bro .profile-avatar { margin-bottom: 18px; width: 80px; height: 80px; }
@media (max-width: 540px) { .profile-picture-editor { flex-direction: column; align-items: flex-start; } }
