/* Public profiles and personal settings share the community's slate and gold. */
.member-avatar { overflow: hidden; flex-shrink: 0; }
.member-avatar img { width: 100%; height: 100%; display: block; object-fit: cover; }
.home-topic > .member-avatar > span { font: inherit; color: inherit; }
.member-avatar-link { display: inline-flex; flex-shrink: 0; border-radius: 8px; }
.member-name:hover { text-decoration: underline; text-underline-offset: 4px; }
.forum-signature { border-top: 1px solid #405148; margin-top: 28px; padding-top: 17px; font-size: 12px; line-height: 1.8; color: #99b2a9; overflow-wrap: anywhere; }
.signature-image { display: block; width: auto; height: auto; max-width: min(100%, 600px); max-height: 150px; object-fit: contain; object-position: left center; border-radius: 3px; }
.signature-text { display: block; white-space: pre-wrap; }
.signature-image + .signature-text, .signature-preview [data-signature-image-preview]:not(:empty) + .signature-text:not(:empty) { margin-top: 10px; }
.profile-settings-form .signature-upload { margin-top: 25px; padding-top: 24px; border-top: 1px solid #3b4d43; }
.signature-upload input[type=file] { padding: 11px; font-size: 12px; width: 100%; min-width: 0; }
.signature-upload input::file-selector-button { border: 1px solid #6c785b; border-radius: 3px; padding: 6px 9px; margin-right: 8px; color: #e1d9b8; background: #293c30; font: inherit; cursor: pointer; }
.signature-upload .field-hint { margin: 10px 0 0; line-height: 1.8; }
.signature-upload-preview { margin: 18px 0; }
.signature-upload-preview:empty { display: none; }
.signature-upload .checkbox-field { margin-top: 15px; font-size: 12px; }
.member-profile-hero { border: 1px solid #4b5749; border-radius: 6px; overflow: hidden; background: #16242a; margin-bottom: 30px; }
.profile-cover { height: 153px; position: relative; overflow: hidden; display: flex; align-items: center; justify-content: end; padding: 30px 40px; border-bottom: 1px solid #55614b; background: radial-gradient(ellipse at 20% 110%, #42785565, transparent 58%), linear-gradient(110deg, #24362e, #172830 65%, #22372f); }
.profile-cover::after { content: ''; position: absolute; inset: 0; background: repeating-linear-gradient(120deg, transparent 0 75px, #a1be8c09 76px 77px, transparent 78px 150px); }
.profile-cover > svg { position: absolute; left: 100px; top: 10px; width: 130px; height: 130px; color: #abc68140; transform: rotate(-10deg); }
.profile-cover-ring { position: absolute; width: 310px; height: 310px; border: 1px solid #b8c88726; border-radius: 50%; top: -100px; left: 10px; box-shadow: 0 0 0 28px #bac28b06, 0 0 0 55px #bac28b05; }
.profile-cover > span { font-size: 9px; letter-spacing: 3px; color: #bdc8a5; position: relative; z-index: 1; }
.profile-identity { display: flex; gap: 25px; align-items: center; padding: 30px 35px; position: relative; }
.profile-identity > .profile-avatar { width: 105px; height: 105px; border-radius: 15px; border: 2px solid var(--rank-color); background: #233a32; color: var(--rank-color); font-size: 46px; box-shadow: 0 0 0 6px #16242a; margin-top: -63px; }
.profile-heading { min-width: 0; flex: 1; }
.profile-heading > .eyebrow { font-size: 8px; margin-bottom: 9px; }
.profile-heading h1 { font-size: 31px; line-height: 1.35; margin-bottom: 13px; overflow-wrap: anywhere; }
.profile-rank-line { display: flex; align-items: center; gap: 19px; flex-wrap: wrap; }
.profile-rank-line > span { display: flex; gap: 7px; align-items: center; font-size: 11px; color: #a9bbb4; }
.profile-rank-line .forum-rank-badge { font-size: 10px; padding: 5px 9px; }
.profile-identity > .button { flex-shrink: 0; font-size: 12px; }
.profile-stat-bar { display: flex; align-items: center; gap: 28px; padding: 18px 35px; border-top: 1px solid #35483f; background: #122026; font-size: 11px; color: #a0b3ab; }
.profile-stat-bar strong { color: #e7d9b6; font-weight: 600; margin-right: 4px; }
.profile-stat-bar > a { display: flex; align-items: center; gap: 8px; color: var(--gold-light); margin-left: auto; }
.member-profile-layout { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 30px; padding-bottom: 65px; align-items: start; }
.profile-about { display: grid; gap: 22px; min-width: 0; }
.profile-about .surface { padding: 25px; }
.profile-about .eyebrow { font-size: 8px; letter-spacing: 1.5px; margin-bottom: 12px; }
.profile-about h2 { font-size: 20px; line-height: 1.5; margin-bottom: 18px; overflow-wrap: anywhere; }
.profile-bio { font-size: 13px; line-height: 1.9; color: #b2c2bb; white-space: pre-wrap; overflow-wrap: anywhere; }
.profile-empty-bio { font-size: 12px; line-height: 1.9; }
.profile-about .text-link { font-size: 11px; }
.profile-signature-panel .forum-signature { margin-top: 0; padding-top: 0; border: 0; }
.profile-activity { min-width: 0; }
.profile-activity > .section-heading { margin: 4px 0 20px; gap: 15px; }
.profile-activity .section-heading h2 { font-size: 23px; }
.profile-activity .filter-tabs { margin-bottom: 20px; }
.profile-activity .filter-tabs a { display: flex; align-items: center; gap: 10px; }
.profile-activity .filter-tabs a > span { padding: 1px 6px; border-radius: 3px; background: #ffffff09; font-size: 10px; }
.profile-activity-list { display: grid; gap: 15px; }
.profile-activity-card { display: flex; gap: 18px; padding: 25px; border: 1px solid #384c42; border-radius: 5px; background: linear-gradient(115deg, #19282d, #142027); }
.activity-symbol { flex-shrink: 0; width: 40px; height: 40px; display: grid; place-items: center; color: #a6c8a9; border: 1px solid #486047; background: #24392e; border-radius: 8px; }
.activity-copy { min-width: 0; flex: 1; }
.activity-meta { display: flex; justify-content: space-between; gap: 8px 18px; flex-wrap: wrap; font-size: 10px; color: #a0b1ac; line-height: 1.7; margin-bottom: 9px; }
.activity-meta a { color: var(--teal); overflow-wrap: anywhere; }
.activity-copy h3 { font: 600 16px/1.6 var(--font); margin-bottom: 10px; overflow-wrap: anywhere; }
.activity-copy h3 a:hover { color: var(--gold-light); }
.activity-copy p { font-size: 12px; line-height: 1.9; overflow-wrap: anywhere; margin-bottom: 16px; }
.activity-copy > .text-link { font-size: 10px; }
.profile-no-activity { border: 1px dashed #40554a; border-radius: 5px; background: #142127; padding: 46px 22px; }
.profile-no-activity > svg { color: var(--teal); margin-bottom: 18px; }
.profile-no-activity h3 { font-size: 21px; margin-bottom: 12px; }
.profile-no-activity .button { margin-top: 12px; }
.profile-settings-layout { display: grid; grid-template-columns: minmax(0, 1fr) 310px; gap: 30px; align-items: start; padding-bottom: 65px; }
.profile-settings-form { min-width: 0; padding: 0 32px; }
.profile-form-section { padding: 29px 0; border-bottom: 1px solid #3b4d43; }
.profile-section-heading { display: flex; gap: 15px; align-items: start; margin-bottom: 24px; }
.profile-section-heading > span { font: 19px var(--heading); color: #a99b71; border: 1px solid #5c6247; background: #2b352c; width: 38px; height: 38px; flex-shrink: 0; display: grid; place-items: center; border-radius: 5px; }
.profile-section-heading h2 { font-size: 21px; line-height: 1.4; margin: 0 0 6px; }
.profile-section-heading p { font-size: 11px; line-height: 1.8; margin: 0; }
.avatar-editor { display: flex; align-items: center; gap: 22px; margin: 25px 0; }
.avatar-editor > div:last-child { min-width: 0; flex: 1; }
.avatar-editor label { display: block; font-size: 12px; margin-bottom: 10px; }
.avatar-editor-image .member-avatar { width: 85px; height: 85px; border-radius: 13px; font-size: 37px; }
.avatar-editor input[type=file] { padding: 10px; font-size: 11px; width: 100%; min-width: 0; }
.avatar-editor input::file-selector-button { border: 1px solid #6c785b; border-radius: 3px; padding: 6px 9px; margin-right: 8px; color: #e1d9b8; background: #293c30; font: inherit; cursor: pointer; }
.avatar-editor .field-hint { line-height: 1.8; margin: 9px 0 0; }
.avatar-editor .checkbox-field { display: flex; margin: 13px 0 0; font-size: 11px; }
.profile-settings-form .field { margin-bottom: 0; }
.profile-settings-form textarea { resize: vertical; }
.profile-field-note { margin: 8px 0 0; }
.profile-field-footer { display: flex; justify-content: space-between; align-items: start; gap: 15px; margin-top: 9px; }
.profile-field-footer > :last-child { flex-shrink: 0; }
.profile-save-row { display: flex; gap: 23px; align-items: center; flex-wrap: wrap; padding: 27px 0; }
.profile-save-row .button { font-size: 12px; }
.profile-save-row > .field-hint { width: 100%; }
.profile-settings-sidebar { display: grid; gap: 22px; min-width: 0; }
.profile-preview { padding: 27px 24px; display: flex; flex-direction: column; align-items: center; text-align: center; border-top: 2px solid var(--rank-color); background: radial-gradient(ellipse at top, color-mix(in srgb, var(--rank-color) 9%, #1c292d), #142027 75%); }
.profile-preview > .eyebrow { font-size: 8px; letter-spacing: 1.5px; margin-bottom: 25px; }
.profile-preview-avatar .member-avatar { width: 80px; height: 80px; font-size: 36px; border-radius: 12px; border-color: var(--rank-color); color: var(--rank-color); }
.profile-preview > strong { font-size: 15px; color: var(--rank-color); line-height: 1.7; margin: 18px 0 13px; overflow-wrap: anywhere; max-width: 100%; }
.profile-preview .forum-rank-badge { font-size: 10px; }
.profile-preview-joined { color: #9ab1a7; font-size: 10px; margin-top: 17px; }
.signature-preview { width: 100%; text-align: left; border-top: 1px solid #425047; margin-top: 25px; padding-top: 22px; }
.signature-preview .subtle-label { font-size: 8px; }
.signature-preview .forum-signature { border: 0; margin: 12px 0 0; padding: 0; font-size: 11px; }
.profile-preview > .field-hint { margin: 23px 0 0; font-size: 9px; }
.profile-settings-sidebar .sidebar-panel > .text-link { font-size: 10px; }
@media(max-width: 1000px) {
    .member-profile-layout { grid-template-columns: 250px minmax(0, 1fr); gap: 23px; }
    .profile-settings-layout { grid-template-columns: minmax(0, 1fr) 270px; gap: 23px; }
    .profile-settings-form { padding-inline: 24px; }
    .avatar-editor { align-items: start; gap: 15px; }
    .avatar-editor-image .member-avatar { width: 65px; height: 65px; font-size: 30px; }
    .profile-stat-bar { gap: 18px; flex-wrap: wrap; }
}
@media(max-width: 760px) {
    .member-profile-layout, .profile-settings-layout { grid-template-columns: minmax(0, 1fr); }
    .profile-settings-sidebar { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
    .profile-preview { grid-row: span 2; }
    .profile-identity { flex-wrap: wrap; gap: 20px; padding: 25px; }
    .profile-identity > .profile-avatar { width: 80px; height: 80px; font-size: 35px; }
    .profile-heading h1 { font-size: 25px; }
    .profile-identity > .button { margin-left: 100px; }
    .profile-stat-bar { padding: 18px 25px; gap: 12px 22px; }
    .profile-stat-bar > a { margin-left: 0; }
    .profile-cover { height: 120px; padding: 25px; }
    .profile-cover > span { font-size: 7px; letter-spacing: 1.5px; }
    .profile-cover > svg { left: 28px; }
    .profile-cover-ring { left: -65px; }
    .profile-about { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .profile-about > :only-child { grid-column: 1 / -1; }
    .profile-activity > .section-heading { margin-top: 12px; }
}
@media(max-width: 480px) {
    .profile-cover { height: 104px; }
    .profile-cover > span { max-width: 150px; text-align: right; line-height: 2; }
    .profile-identity { padding: 22px; gap: 16px; align-items: start; }
    .profile-identity > .profile-avatar { width: 60px; height: 60px; font-size: 27px; margin-top: -46px; }
    .profile-heading { flex-basis: 100%; }
    .profile-heading h1 { font-size: 26px; }
    .profile-rank-line { gap: 13px; }
    .profile-identity > .button { margin-left: 0; }
    .profile-stat-bar { padding: 17px 22px; font-size: 10px; }
    .profile-stat-bar > a { flex-basis: 100%; }
    .profile-about, .profile-settings-sidebar { grid-template-columns: minmax(0, 1fr); }
    .profile-activity .section-heading h2 { font-size: 21px; }
    .profile-activity .section-heading > .subtle-label { display: none; }
    .profile-activity-card { padding: 20px; gap: 13px; }
    .activity-symbol { width: 30px; height: 30px; }
    .activity-symbol svg { width: 17px; height: 17px; }
    .activity-copy h3 { font-size: 14px; }
    .profile-settings-form { padding-inline: 21px; }
    .avatar-editor { flex-direction: column; }
    .avatar-editor > div:last-child { width: 100%; }
    .profile-section-heading { gap: 12px; }
    .profile-section-heading h2 { font-size: 19px; }
    .profile-field-footer { gap: 10px; }
}
