.member-profile-shell { max-width: 1040px; }
.member-profile { margin-inline: auto; padding: clamp(20px, 4vw, 40px); }
.member-profile-identity { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; margin-bottom: 24px; }
.member-profile-identity > div:nth-child(2) { min-width: 0; flex: 1; }
.member-profile-identity h1 { margin: 4px 0 8px; font-size: clamp(26px, 4vw, 36px); overflow-wrap: anywhere; }
.member-profile-owner-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 16px; margin-top: 16px; font-size: 12px; font-weight: 700; }
.member-profile-owner-actions a { color: var(--accent); text-underline-offset: 3px; }
.member-profile-owner-actions a:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.member-profile-avatar { display: grid; place-items: center; flex: 0 0 68px; height: 68px; border: 1px solid var(--line); background: var(--panel-2); color: var(--accent); font-size: 32px; }
.member-profile-eyebrow { display: block; color: var(--muted); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; }
.member-profile .member-profile-meta { display: block; margin: 5px 0 0; color: var(--muted); font-size: 12px; }
.member-profile-socials { display: flex; gap: 12px 24px; flex-wrap: wrap; margin: 0 0 30px; }
.member-profile-socials a { overflow-wrap: anywhere; }
.member-profile-section { margin-top: 28px; border: 1px solid var(--line); background: var(--panel); }
.member-profile-section-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 22px; border-bottom: 1px solid var(--line); }
.member-profile-section-heading h2 { margin: 4px 0 0; font-size: 19px; }
.member-profile-sfoth-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 20px 22px 0; }
.member-profile-sfoth-heading h3 { margin: 0; font-size: 16px; }
.member-profile-sfoth-stats { border-top: 1px solid var(--line); }
.member-profile-count { margin: 0; flex-shrink: 0; text-align: right; }
.member-profile-count strong { display: block; font-size: 21px; }
.member-profile-count > span { color: var(--muted); font-size: 12px; }
.member-profile-achievements { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 0 22px; column-gap: 26px; }
.member-profile-achievement-tier { margin-top: 14px; }
.member-profile-achievement-tier h4 { margin: 0; padding: 10px 22px 0; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.member-profile-achievement-tier .member-profile-empty { padding-top: 8px; padding-bottom: 8px; }
.member-profile-achievement { min-width: 0; padding: 19px 0; border-bottom: 1px solid var(--line); }
.member-profile-achievement:nth-last-child(-n+2) { border-bottom: 0; }
.member-profile-achievement summary { display: flex; align-items: center; gap: 14px; cursor: pointer; list-style: none; }
.member-profile-achievement summary::-webkit-details-marker { display: none; }
.member-profile-achievement summary > span:last-child { min-width: 0; }
.member-profile-achievement summary::after { content: "+"; margin-left: auto; color: var(--muted); font-size: 24px; line-height: 1; }
.member-profile-achievement[open] summary::after { content: "−"; }
.member-profile-achievement summary strong { font-size: 14px; overflow-wrap: anywhere; }
.member-profile-achievement summary:hover strong { text-decoration: underline; text-underline-offset: 3px; }
.member-profile-achievement summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.member-profile-badge { display: grid; place-items: center; width: 64px; height: 64px; flex-shrink: 0; color: var(--muted); font-size: 25px; }
.member-profile-badge img { display: block; width: 100%; height: 100%; object-fit: contain; }
.member-profile-achievement.is-locked .member-profile-badge img,
.member-profile-achievement.is-locked .member-profile-badge-large img { filter: grayscale(1); opacity: .42; }
.member-profile-achievement.is-earned .member-profile-badge { color: var(--accent-2); }
.member-profile-achievement-detail { margin-top: 16px; padding: 18px; border: 1px solid var(--line); background: var(--panel-2); }
.member-profile-badge-large { display: grid; place-items: center; width: min(100%, 224px); aspect-ratio: 1; margin: 0 auto 16px; color: var(--accent-2); font-size: 80px; }
.member-profile-badge-large img { display: block; width: 100%; height: 100%; object-fit: contain; }
.member-profile-achievement-label { margin: 0 0 5px; color: var(--muted); font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.member-profile-achievement-requirement { margin: 0; font-size: 14px; line-height: 1.5; }
.member-profile-achievement-flavor { margin: 16px 0 0; padding-left: 13px; border-left: 2px solid var(--accent); color: var(--muted); font-size: 14px; font-style: italic; line-height: 1.5; }
.member-profile-empty { margin: 0; padding: 22px; color: var(--muted); }
.member-profile-comments { margin: 0; padding: 0 22px; list-style: none; }
.member-profile-comments li { padding: 20px 0; border-bottom: 1px solid var(--line); }
.member-profile-comments li:last-child { border-bottom: 0; }
.member-profile-comment-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 10px 20px; flex-wrap: wrap; }
.member-profile-comment-heading a { overflow-wrap: anywhere; }
.member-profile-comment-heading time { color: var(--muted); font-size: 12px; }
.member-profile-comments li > p { margin: 10px 0 0; font-size: 14px; overflow-wrap: anywhere; }
.member-profile-link-fields { display: grid; grid-template-columns: 1fr 2fr; gap: 16px; margin: 22px 0; padding: 16px; border: 1px solid var(--line); }
.member-profile-editor { padding: clamp(16px, 4vw, 32px); overflow-wrap: anywhere; }
.member-profile-editor .content-header { padding: 0 0 18px; }
.member-profile-link-fields > div { min-width: 0; }
.member-profile-link-fields label { display: block; margin-bottom: 7px; }
.member-profile-link-fields input { width: 100%; min-width: 0; }
.member-profile-editor-actions { display: flex; align-items: center; gap: 20px; }
@media (max-width: 640px) {
  .member-profile-identity > div:nth-child(2) { flex-basis: calc(100% - 88px); }
  .member-profile-achievements { grid-template-columns: 1fr; }
  .member-profile-achievement:nth-last-child(2) { border-bottom: 1px solid var(--line); }
  .member-profile-section-heading { padding: 17px; gap: 12px; align-items: flex-start; }
  .member-profile-section-heading h2 { font-size: 16px; }
  .member-profile-sfoth-heading { padding: 17px 17px 0; gap: 12px; }
  .member-profile-achievements, .member-profile-comments { padding-left: 17px; padding-right: 17px; }
  .member-profile-link-fields { grid-template-columns: 1fr; }
  .member-profile-edit { margin-left: auto; }
}
@media (max-width: 380px) {
  .member-profile-identity { gap: 12px; }
  .member-profile-avatar { flex-basis: 48px; height: 48px; font-size: 26px; }
  .member-profile-identity > div:nth-child(2) { flex-basis: calc(100% - 60px); }
  .member-profile-identity h1 { font-size: 24px; }
}
