/* Match the compact Edit profile preview on desktop and mobile. */
#view.profile-editor-page[data-community-view=settings],#view.profile-editor-page[data-community-view=account]{max-width:760px!important}
.profile-editor-back{display:inline-flex;align-items:center;gap:8px;margin:0 0 14px;color:var(--community-muted);font-size:14px;min-height:44px}
.profile-editor-back svg{width:20px;height:20px}
#view.profile-editor-page>.page-head{margin:0 0 20px}
#view.profile-editor-page #profileForm{display:flex;flex-direction:column;gap:0;padding:24px;margin:0;border-radius:18px}
.profile-editor-photo-row{display:flex;align-items:center;gap:12px;margin-bottom:24px}
.profile-editor-photo-row>[data-editor-avatar]{display:flex;flex:none}
#profileForm .profile-editor-photo-row .avatar{display:flex;align-items:center;justify-content:center;width:48px;height:48px;border-radius:50%;object-fit:cover;font-size:18px;margin:0;background:#493058;color:#f5d8ff}
.profile-editor-photo-copy{min-width:0;flex:1}
.profile-editor-photo-copy strong{font-size:15px}
.profile-editor-photo-copy p{font-size:13px;line-height:1.45;color:var(--community-muted);margin:4px 0 0}
.profile-editor-photo-row>button{flex:none;padding:10px 16px}
#profileForm.profile-editor-main>label{font-size:14px;display:flex;flex-direction:column;gap:8px;margin:0 0 20px;font-weight:600}
#profileForm.profile-editor-main>label:has(textarea){margin-bottom:0}
#profileForm.profile-editor-main input,#profileForm.profile-editor-main textarea{font-size:16px;font-weight:400;padding:12px 14px;border-radius:12px;background:var(--bg);border:1px solid #504659;width:100%;min-width:0}
#profileForm.profile-editor-main textarea{min-height:104px;resize:vertical;line-height:1.5}
.profile-editor-help{font-size:13px;color:var(--community-muted);line-height:1.5;margin:7px 0 0}
.profile-editor-footer{display:flex;justify-content:flex-end;align-items:center;gap:10px;padding-top:22px;margin-top:22px;border-top:1px solid var(--line)}
.profile-editor-footer button,.profile-editor-footer .button,#profilePrivacyForm>button{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:46px;font-size:14px;padding:11px 18px}
.profile-editor-footer svg,#profilePrivacyForm>button svg,.profile-editor-picture-actions svg{width:18px;height:18px;flex:none}
.profile-editor-extras{display:grid;gap:10px;margin-top:24px}
#view .profile-editor-section{padding:0;border-radius:14px;overflow:hidden;margin:0}
.profile-editor-section>summary{display:flex;align-items:center;justify-content:space-between;gap:12px;list-style:none;cursor:pointer;min-height:56px;padding:16px 20px;font-size:14px;font-weight:600}
.profile-editor-section>summary::-webkit-details-marker{display:none}
.profile-editor-section>summary::after{content:'';display:block;width:8px;height:8px;border-right:1.5px solid currentColor;border-bottom:1.5px solid currentColor;transform:rotate(45deg);margin-right:3px;flex:none}
.profile-editor-section[open]>summary::after{transform:rotate(225deg)}
.profile-editor-section[open]>summary{border-bottom:1px solid var(--line)}
.profile-editor-section-body{padding:20px}
.profile-editor-section-body>form{display:grid;gap:18px}
#profilePrivacyForm label{font-size:14px}
#profilePrivacyForm .check{display:flex;align-items:center;gap:10px;min-height:40px;margin:0}
#profilePrivacyForm .check input{width:20px;height:20px;accent-color:var(--primary);margin:0;flex:none}
#profilePrivacyForm>button{justify-self:start}
.profile-editor-section-body button,.profile-editor-section-body .button{font-size:14px;white-space:normal}
.profile-editor-section-body>div:not(.profile-editor-cover){display:flex;gap:12px;align-items:flex-start;flex-wrap:wrap}
.profile-editor-section-body .list-item{width:100%;min-width:0;gap:12px}
.profile-editor-section-body .userline{min-width:0;flex:1;overflow-wrap:anywhere}
.profile-editor-section-body .list-item button{flex:none}
.profile-editor-cover img{display:block;width:100%;max-height:210px;object-fit:cover;border-radius:12px}
.profile-editor-cover>button{margin-top:14px}
.profile-editor-status{margin:16px 0 0;font-size:14px;line-height:1.5;color:var(--text)}
.profile-editor-status.is-error{color:#ffb1c0}
.profile-editor-status[hidden]{display:none!important}
.profile-editor-picture-actions{display:grid;gap:12px}
.profile-editor-picture-actions>button{display:flex;gap:8px;justify-content:center;align-items:center}
.profile-editor-page input:focus-visible,.profile-editor-page textarea:focus-visible,.profile-editor-page select:focus-visible,.profile-editor-page summary:focus-visible,.profile-editor-page button:focus-visible,.profile-editor-page a:focus-visible{outline:2px solid var(--accent);outline-offset:3px}
@media(max-width:720px){
 #view.profile-editor-page #profileForm{padding:18px!important}
 .profile-editor-photo-copy strong{font-size:14px}
 .profile-editor-photo-copy p{font-size:12px}
 .profile-editor-photo-row{gap:10px}
 .profile-editor-photo-row>button{padding:10px 12px;font-size:13px}
 .profile-editor-footer button,.profile-editor-footer .button{padding:11px 14px}
 .profile-editor-section-body{padding:16px}
 .profile-editor-section>summary{padding:16px}
}
@media(max-width:359px){.profile-editor-photo-row{flex-wrap:wrap}.profile-editor-photo-row>button{margin-left:auto}.profile-editor-footer button,.profile-editor-footer .button{font-size:13px;padding:11px 12px}}
