/* Public profiles keep photos and contact actions ahead of supporting details. */
.reference-theme .public-profile-top{max-width:1040px;margin:0 auto;padding:24px 32px 28px}
.public-profile .public-profile-toolbar{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:22px}
.public-profile .profile-back{margin:0}
.public-profile .profile-intro-actions{position:static;align-self:auto;padding:0;gap:8px}
.public-profile .profile-intro-actions .circle-action{width:36px;height:36px}
.public-profile .profile-intro{display:grid;grid-template-columns:156px minmax(0,1fr);gap:18px 28px;align-items:start}
.reference-theme .public-profile .profile-photo{grid-column:1;grid-row:1/3;width:156px;height:174px;border-radius:12px}
.public-profile .profile-intro-copy{grid-column:2;min-width:0}
.reference-theme .public-profile .profile-intro h1{font-size:27px;line-height:1.45;margin-bottom:10px}
.public-profile .profile-contact-actions{grid-column:2;display:flex;flex-wrap:wrap;gap:12px;align-self:end}
.public-profile .profile-contact-actions .button{min-height:42px;padding:10px 20px;border-radius:7px;gap:8px;font-size:14px;margin:0}
.public-profile .profile-contact-actions .icon{width:18px;height:18px}
.public-profile .profile-sections{padding:28px 32px 56px;background:#f6f7f9}
.public-profile .profile-details{display:grid;grid-template-columns:minmax(0,1.6fr) minmax(240px,1fr);grid-template-areas:'album album' 'bio facts' 'interests facts';gap:22px;max-width:976px;margin:0 auto;left:auto;padding:0}
.public-profile .profile-details>section{min-width:0;margin:0;padding:24px;border:1px solid #e5e8ee;border-radius:12px;background:#fff}
.reference-theme .public-profile .profile-details h2{font-size:19px;line-height:1.5;gap:10px;margin-bottom:20px;flex-wrap:wrap}
.public-profile .member-album{grid-area:album}
.public-profile .album-grid{grid-template-columns:repeat(4,minmax(0,1fr))}
.public-profile .profile-bio{grid-area:bio}
.public-profile .profile-basic{grid-area:facts;align-self:start}
.public-profile .profile-interests{grid-area:interests}
.public-profile .profile-facts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:22px 16px;padding:0;margin:0;border:0}
.public-profile .profile-facts>span{min-width:0;font-size:15px;overflow-wrap:anywhere}
.public-profile .profile-facts small{font-size:12px;margin-bottom:6px}
.reference-theme .public-profile .profile-details p{font-size:14px;line-height:1.9;margin-bottom:0;color:#647184}
.public-profile .album-membership{margin-bottom:0}
@media(max-width:760px){
 .reference-theme .public-profile-top{padding:18px 20px 24px}
 .public-profile .public-profile-toolbar{margin-bottom:18px}
 .public-profile .profile-intro{grid-template-columns:96px minmax(0,1fr);gap:18px 18px}
 .reference-theme .public-profile .profile-photo{grid-row:1;width:96px;height:116px;border-radius:9px;font-size:40px}
 .reference-theme .public-profile .profile-intro h1{font-size:21px;margin-bottom:8px}
 .public-profile .profile-intro-copy>p{font-size:13px}
 .public-profile .profile-contact-actions{grid-column:1/-1;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
 .public-profile .profile-contact-actions .button{width:100%;min-width:0;padding:10px 12px;font-size:13px}
 .public-profile .profile-sections{padding:20px 16px 32px}
 .public-profile .profile-details{grid-template-columns:minmax(0,1fr);grid-template-areas:'album' 'facts' 'bio' 'interests';gap:16px}
 .public-profile .profile-details>section{padding:20px;border-radius:10px}
 .public-profile .album-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
 .reference-theme .public-profile .profile-details h2{font-size:18px;margin-bottom:16px}
}
@media(max-width:350px){
 .reference-theme .public-profile-top{padding-left:16px;padding-right:16px}
 .public-profile .profile-intro{grid-template-columns:84px minmax(0,1fr);column-gap:14px}
 .reference-theme .public-profile .profile-photo{width:84px;height:108px}
 .reference-theme .public-profile .profile-intro h1{font-size:19px}
 .public-profile .profile-details>section{padding:16px}
}

/* Owner workspace: identity, grouped profile editing, photos and account tools. */
.reference-theme .self-profile{background:#f7f7f9}
.reference-theme .self-profile-top{max-width:1120px;padding:32px 32px 0}
.self-identity-card{border:1px solid #e5e0e7;border-radius:14px;background:linear-gradient(112deg,#fff 45%,#fcf3f6);overflow:hidden}
.reference-theme .self-profile .profile-intro{padding:28px 32px;gap:28px;align-items:center}
.reference-theme .self-profile .profile-photo.avatar.large{width:112px;height:128px;min-width:112px;margin:0;border-radius:10px;font-size:38px;flex-shrink:0;overflow:visible}
.self-profile .profile-photo>img{border-radius:10px}
.self-profile .profile-photo-upload{display:flex;align-items:center;justify-content:center;gap:5px;height:30px;border-radius:0 0 10px 10px;background:#282331bd;color:#fff;font-size:10px;overflow:hidden;cursor:pointer}
.self-profile .profile-photo-upload>.icon{width:14px;height:14px}
.self-profile .profile-photo-upload:focus-within{outline:3px solid #bd2858;outline-offset:3px}
.self-profile .profile-photo-upload input{position:absolute;inset:0;opacity:0;width:100%;height:100%;cursor:pointer}
.self-profile .profile-photo:has(.avatar-membership-badge) .profile-photo-upload{bottom:13px;border-radius:0;height:26px}
.self-profile .self-identity-name{display:flex;align-items:center;flex-wrap:wrap;gap:10px 16px;padding-right:160px}
.self-identity-name h2{font-size:27px;line-height:1.4;margin:0;font-weight:650;overflow-wrap:anywhere}
.self-identity-name .badge{font-size:11px;padding:5px 9px;margin:0;letter-spacing:0}
.reference-theme .self-profile .self-identity-meta{display:flex;gap:14px;margin:9px 0;color:#59667a;font-size:13px}
.self-identity-meta>span{display:inline-flex;align-items:center;gap:5px;overflow-wrap:anywhere;min-width:0}
.self-identity-meta>span+span{padding-left:0}
.self-identity-meta .icon{width:14px;height:14px;flex-shrink:0}
.reference-theme .self-profile .self-identity-caption{font-size:12px;color:#8a7b8d;line-height:1.8;margin:10px 160px 0 0}
.reference-theme .self-profile .edit-profile{position:absolute;right:32px;top:50%;transform:translateY(-50%);margin:0;min-height:40px;display:flex;gap:7px;border:1px solid #dfbfcd;background:#fff;color:#9c365a;border-radius:7px;padding:10px 18px;font-size:13px}
.self-profile .edit-profile>.icon{width:16px;height:16px}
.reference-theme .self-profile-body{display:block;background:transparent;padding:26px 32px 64px}
.self-profile-layout{max-width:1056px;margin:0 auto}
.self-profile .profile-content{min-width:0;display:flex;flex-direction:column;gap:22px}
.reference-theme .self-profile .profile-form,.self-profile .own-album,.self-settings{margin:0;border:1px solid #e4e3ea;background:#fff;border-radius:11px;box-shadow:none;padding:28px;min-width:0}
.self-profile #profile-edit,.self-profile #own-album,.self-profile #self-settings{scroll-margin-top:calc(var(--client-header-height,80px) + 20px)}
.self-profile .profile-form-title{justify-content:space-between;align-items:flex-start;gap:15px;margin:0;padding-bottom:0;border-bottom:0}
.self-profile .profile-form-title h2,.self-profile .own-album-heading h2,.self-settings h2{font-size:19px;font-weight:650;letter-spacing:0;color:#303546;margin:0}
.self-profile .profile-form-title p,.self-settings-heading p{font-size:12px;color:#8a8899;margin:8px 0 0;line-height:1.8}
.self-profile .profile-form-title>span{font-size:9px;letter-spacing:1.5px;color:#b2a4b6;padding-top:6px;flex-shrink:0}
.self-form-section{padding-top:18px}
.self-form-section+.self-form-section{border-top:0;margin-top:0;padding-top:14px}
.reference-theme .self-profile .profile-form .form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px 24px}
.self-profile .profile-form{--profile-label-width:96px;--profile-field-gap:12px}
html[lang^="zh"] .self-profile .profile-form{--profile-label-width:28px;--profile-field-gap:12px}
.reference-theme .self-profile .profile-form label.profile-field{display:grid;grid-template-columns:var(--profile-label-width) minmax(0,1fr);align-items:center;gap:6px var(--profile-field-gap);min-width:0;font-size:12px;color:#6f697c;margin:0}
.self-profile .profile-field-name{line-height:1.6;overflow-wrap:anywhere}
.reference-theme .self-profile .profile-form input,.reference-theme .self-profile .profile-form select,.reference-theme .self-profile .profile-form textarea{width:100%;min-width:0;margin-top:0;min-height:40px;border:1px solid #dedbe5;border-radius:6px;background:#fdfcfe;font-size:14px;padding:10px 12px;color:#3b3949}
.reference-theme .self-profile .profile-form textarea{min-height:100px;line-height:1.9;resize:vertical}
.reference-theme .self-profile .profile-form input:focus,.reference-theme .self-profile .profile-form select:focus,.reference-theme .self-profile .profile-form textarea:focus{border-color:#bd2858;background:#fff}
.reference-theme .self-profile .profile-form label.profile-field:has(textarea){align-items:start;margin-bottom:14px}
.self-profile .profile-field:has(textarea)>.profile-field-name{padding-top:10px}
.self-profile .profile-form label:has(textarea) .subtle{grid-column:2;display:block;text-align:right;margin-top:0;color:#9991a2;font-size:11px}
.self-profile .profile-interest-selector{margin:0 0 16px;padding-left:calc(var(--profile-label-width) + var(--profile-field-gap));position:relative;min-height:40px}
.self-profile .profile-interest-selector legend{position:absolute;left:0;top:7px;width:var(--profile-label-width);font-size:12px;font-weight:400;color:#6f697c;margin:0;line-height:1.6}
.self-profile .profile-interest-limit{display:block;text-align:right;font-size:10px;color:#a094a8;margin-top:6px}
.self-profile .profile-interest-selector button{min-height:34px;padding:7px 12px;font-size:12px;border-color:#e5dfea;background:#fff;border-radius:6px;color:#85778f}
.self-profile .profile-interest-selector button.selected{background:#fcf0f5;border-color:#d8a5bd;color:#a13560}
.self-form-footer{border-top:0;padding-top:6px;display:flex;align-items:center;justify-content:space-between;gap:20px}
.self-form-footer p{font-size:11px;line-height:1.8;color:#91869a;margin:0;max-width:370px}
.reference-theme .self-profile .self-form-footer .button{flex-shrink:0;display:inline-flex;gap:7px;align-items:center;min-height:43px;font-size:13px;border-radius:6px;padding:10px 22px}
.self-form-footer .icon{width:16px;height:16px}
.self-profile .own-album{padding:18px 22px}
.self-profile .own-album .album-grid{display:flex;gap:10px;overflow-x:auto;padding:2px 2px 7px;scroll-snap-type:x proximity}
.self-profile .own-album .album-card{flex:0 0 104px;scroll-snap-align:start;border-radius:7px}
.self-profile .own-album .album-photo-button{aspect-ratio:1}
.self-profile .own-album .album-delete{min-width:27px;min-height:27px;right:4px;top:4px;font-size:18px}
.self-profile .own-album-heading small{font-size:12px;font-weight:400;color:#9b8fa6}
.self-profile .own-album-heading .button{border-radius:6px;font-size:12px;min-height:36px}
.self-profile .own-album>p{font-size:11px;line-height:1.7;color:#8b8396;margin:8px 0 12px}
.self-profile .own-album .album-empty{border:1px dashed #e2d5e5;border-radius:8px;background:#fcf9fc;padding:13px 16px;display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:8px 12px}
.self-profile .album-empty>.icon{width:22px;height:22px;color:#b898bb;stroke-width:1.2}
.self-profile .album-empty strong{font-size:13px;font-weight:400;color:#8f7b99}
.self-profile .album-empty>span{font-size:11px;color:#b09cb9}
.self-profile .review-panel{margin:0;padding:23px 27px;border:1px solid #ead8e1;border-radius:11px;background:#fffafb}
.self-profile .review-panel-heading{display:flex;gap:12px;align-items:center}
.profile-section-icon{display:flex;align-items:center;justify-content:center;width:36px;height:36px;border-radius:9px;background:#f6edf4;color:#9e6487;flex-shrink:0}
.profile-section-icon>.icon{width:19px;height:19px}
.reference-theme .self-profile .review-panel .eyebrow{font-size:10px;letter-spacing:1px}
.reference-theme .self-profile .review-panel h3{font-size:16px;margin:5px 0 0}
.reference-theme .self-profile .review-panel p{font-size:12px;line-height:1.9;color:#8c7383;margin:15px 0}
.self-profile .review-panel .review-note{background:#fff0f3;padding:10px 14px;border-radius:6px;color:#a13560}
.self-profile .review-panel-actions{display:flex;align-items:center;gap:14px;flex-wrap:wrap}
.reference-theme .self-profile .review-panel-actions .subtle{margin:0;font-size:11px}
.self-profile .review-approved{background:#fbfdfc;border-color:#dbe8df}
.self-profile .review-approved .profile-section-icon{color:#5b8c70;background:#eaf4ed}
.self-profile .review-approved .review-panel-actions{margin-top:12px}
.self-account-email{display:flex;align-items:center;gap:12px;margin:23px 0 12px;padding:17px;background:#f9f7fa;border-radius:8px}
.self-account-email>div{min-width:0;flex:1}
.self-account-email>div>span{font-size:10px;color:#998b9f;display:block;margin-bottom:5px}
.self-account-email strong{font-size:13px;line-height:1.6;color:#6c6076;font-weight:500;overflow-wrap:anywhere}
.self-account-email .email-verified{font-size:10px;color:#578269;flex-shrink:0}
.self-setting-links{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 26px}
.self-setting-links button{display:flex;align-items:center;gap:11px;min-width:0;min-height:58px;border-bottom:1px solid #eeecf1;text-align:left;font-size:13px;color:#74667f;padding:10px 3px}
.self-setting-links .icon{width:17px;height:17px;flex-shrink:0;color:#a28aa9}
.self-setting-links button>span{margin-left:auto;color:#bcaec3}
.self-setting-links button:hover{color:#a13560}
.self-logout{display:flex;align-items:center;gap:10px;color:#a64e6e;font-size:12px;padding:20px 3px 0;margin-top:5px}
.self-logout .icon{width:14px;height:14px}
.self-profile button:focus-visible{outline:3px solid #d297b2;outline-offset:3px}
@media(max-width:1000px){
 .self-profile .profile-content{gap:20px}
 .reference-theme .self-profile .profile-form,.self-profile .own-album,.self-settings{padding:23px}
}
@media(max-width:760px){
 .reference-theme .self-profile-top{padding:24px 18px 0}
 .self-identity-card{border-radius:11px}
 .reference-theme .self-profile .profile-intro{padding:23px 20px;gap:18px}
 .reference-theme .self-profile .profile-photo.avatar.large{width:82px;height:100px;min-width:82px;font-size:30px}
 .self-profile .profile-photo-upload{height:26px;font-size:9px;gap:3px}
 .self-profile .profile-photo-upload>.icon{width:12px;height:12px}
 .self-profile .self-identity-name{padding:0;gap:6px 9px}
 .self-identity-name h2{font-size:21px}
 .self-identity-name .badge{font-size:10px;padding:4px 7px}
 .reference-theme .self-profile .self-identity-meta{font-size:12px;margin:8px 0}
 .reference-theme .self-profile .self-identity-caption{display:none}
 .reference-theme .self-profile .edit-profile{position:static;transform:none;padding:7px 11px;margin-top:13px;min-height:33px;font-size:11px;width:max-content}
 .reference-theme .self-profile-body{padding:18px 18px 35px}
 .self-profile .profile-content{width:100%;gap:18px}
 .reference-theme .self-profile .profile-form,.self-profile .own-album,.self-settings{padding:21px 18px;border-radius:10px}
 .self-profile .profile-form-title{padding-bottom:0}
 .self-profile .profile-form-title h2,.self-profile .own-album-heading h2,.self-settings h2{font-size:18px}
 .self-profile .profile-form-title p,.self-settings-heading p{font-size:11px;margin-top:7px}
 .self-profile .profile-form-title>span{font-size:8px;letter-spacing:1px}
 .self-form-section{padding-top:18px}
 .reference-theme .self-profile .profile-form .form-grid{grid-template-columns:minmax(0,1fr);gap:10px}
 .self-profile .profile-form{--profile-label-width:78px;--profile-field-gap:10px}
 .reference-theme .self-profile .profile-form label.profile-field{grid-template-columns:var(--profile-label-width) minmax(0,1fr);gap:5px var(--profile-field-gap);font-size:12px;margin:0}
 .reference-theme .self-profile .profile-form label.profile-field:has(textarea){margin-bottom:14px}
 .reference-theme .self-profile .profile-form input,.reference-theme .self-profile .profile-form select,.reference-theme .self-profile .profile-form textarea{font-size:16px;padding:8px 9px;margin-top:0}
 .self-profile .profile-interest-selector legend{font-size:12px}
 .self-profile .profile-interest-selector button{font-size:11px;padding:7px 10px}
 .self-form-footer{flex-direction:column;align-items:stretch;gap:10px;padding-top:4px}
 .self-form-footer p{font-size:10px;max-width:none}
 .reference-theme .self-profile .self-form-footer .button{justify-content:center;width:100%;min-height:44px}
 .self-profile .own-album{padding:16px 18px}
 .self-profile .own-album .album-card{flex-basis:80px}
 .self-profile .own-album .album-grid{gap:8px}
 .self-profile .own-album .album-empty{padding:12px;justify-content:flex-start}
 .self-profile .album-empty strong{font-size:11px}
 .self-profile .album-empty>span{display:none}
 .self-profile .own-album-heading{gap:10px}
 .self-profile .own-album-heading small{font-size:10px;margin-left:5px}
 .self-profile .own-album-heading .button{font-size:10px;padding:8px 10px;min-height:34px}
 .self-profile .own-album>p{font-size:11px}
 .self-profile .review-panel{padding:20px 18px}
 .reference-theme .self-profile .review-panel h3{font-size:14px;line-height:1.6}
 .reference-theme .self-profile .review-panel p{font-size:11px}
 .self-profile .review-panel-actions{gap:10px}
 .self-account-email{padding:14px 12px;gap:10px;flex-wrap:wrap}
 .self-account-email .email-verified{margin-left:46px;margin-top:-4px}
 .self-setting-links{gap:0 14px}
 .self-setting-links button{font-size:11px;gap:8px;min-height:54px}
}
@media(max-width:350px){
 .reference-theme .self-profile-top{padding-left:14px;padding-right:14px}
 .reference-theme .self-profile-body{padding-left:14px;padding-right:14px}
 .reference-theme .self-profile .profile-intro{padding:20px 16px;gap:14px}
 .self-identity-name h2{font-size:19px}
 .reference-theme .self-profile .profile-form,.self-profile .own-album,.self-settings{padding:20px 15px}
 .self-profile .own-album{padding:15px}
}
@media(prefers-reduced-motion:reduce){.self-profile *{scroll-behavior:auto!important;transition:none!important}}
