/* Familiar profile structure in Prevail’s own palette. */
#profile .profile-hero.profile-compact-layout{padding:5px 2px 14px;background:transparent;border:0;border-radius:0;box-shadow:none;text-align:left}
.profile-identity-bar{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 0 14px;min-width:0}
#profile .profile-identity-bar .own-username{font:650 17px/1.4 system-ui;text-decoration:none;min-height:44px;padding:6px 0;margin:0;overflow-wrap:anywhere;text-align:left}
.profile-settings-shortcut{display:flex;align-items:center;justify-content:center;min-height:44px;padding:8px 10px;border:1px solid var(--line);border-radius:12px;font-size:12px;background:#fffaf2;flex-shrink:0}
.profile-overview{display:grid;grid-template-columns:86px minmax(0,1fr);gap:18px;align-items:center;margin:0 0 14px}
#profile .profile-overview #profile-avatar{width:80px;height:80px;margin:0;background:transparent}
#profile .profile-overview #profile-avatar.photo-with-pip{width:80px;height:80px;margin:0}
#profile .profile-overview #profile-avatar.photo-with-pip>.profile-identity{--identity-size:80px;margin:0}
#profile .profile-overview #profile-avatar.has-pip{width:64px;height:85px;margin:0 auto}
#profile .profile-summary #profile-name{font:650 16px/1.4 system-ui;letter-spacing:0;margin:0 0 10px;text-align:left;overflow-wrap:anywhere}
#profile .profile-summary .profile-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;text-align:center;padding:0;border:0;margin:0}
#profile .profile-summary .profile-stats>div{min-width:0}#profile .profile-summary .profile-stats strong{display:block;font:650 20px/1.25 system-ui;margin:0 0 3px}#profile .profile-summary .profile-stats span{display:block;font-size:10px;line-height:1.4;color:var(--muted);overflow-wrap:anywhere}
#profile .profile-about #profile-bio{max-width:none;text-align:left;font-size:13px;line-height:1.55;margin:0 0 9px}
#profile .profile-about .interest-tags{justify-content:flex-start;margin:0;gap:6px}#profile .profile-about .interest-tags span{font-size:11px;padding:5px 10px;min-height:0}
.profile-action-row{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;margin-top:13px}
#profile .profile-action-row .btn{display:flex;align-items:center;justify-content:center;width:100%;min-height:44px;margin:0;padding:9px 10px;border:1px solid var(--line);border-radius:12px;text-decoration:none;font-size:13px;font-weight:600;background:#fffaf2;white-space:normal;line-height:1.4}
#profile>.world-section{border:0;border-radius:0;background:transparent;padding:10px 0 14px;margin:0;border-bottom:1px solid var(--line)}
#profile .world-heading h2{font-size:23px}#profile .world-heading .tiny{font-size:12px}#profile .world-empty>p{font-size:16px}
#profile>.profile-section-tabs{margin:14px 0 10px;border-bottom:1px solid var(--line);gap:4px;padding-bottom:5px}#profile>.profile-section-tabs button{flex:1;border-radius:10px;background:transparent;padding:9px 8px;font-size:12px;min-height:44px}#profile>.profile-section-tabs button[aria-pressed=true]{background:#eee4f4;font-weight:650}
#profile #profile-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:5px}
#profile #profile-grid .profile-tile{position:relative;display:flex;align-items:center;justify-content:center;aspect-ratio:1;min-height:0;padding:12px;border-radius:8px;overflow:hidden;font:16px/1.4 Georgia;text-align:center;overflow-wrap:anywhere}
#profile #profile-grid .profile-photo-tile{padding:0}#profile #profile-grid .profile-tile .personal-photo{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;margin:0;border-radius:0}#profile .profile-grid-caption{position:relative;align-self:flex-end;z-index:1;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;width:100%;padding:8px 5px;font:11px/1.4 system-ui;color:white;background:linear-gradient(transparent,#33251cbb)}
#profile #profile-grid>.tiny{grid-column:1/-1;padding:20px 5px;text-align:center}
#profile .profile-tab-panel{scroll-margin-top:160px}
@media(min-width:761px){.profile-overview{grid-template-columns:100px minmax(0,1fr);gap:24px}#profile .profile-overview #profile-avatar.photo-with-pip{width:92px;height:92px}#profile .profile-overview #profile-avatar.photo-with-pip>.profile-identity{--identity-size:92px}#profile .profile-summary #profile-name{font-size:19px}#profile .profile-summary .profile-stats strong{font-size:23px}#profile .profile-summary .profile-stats span{font-size:12px}}
@media(max-width:380px){.profile-overview{grid-template-columns:72px minmax(0,1fr);gap:12px}#profile .profile-overview #profile-avatar.photo-with-pip{width:66px;height:66px}#profile .profile-overview #profile-avatar.photo-with-pip>.profile-identity{--identity-size:66px}#profile .profile-summary .profile-stats strong{font-size:18px}#profile .profile-summary .profile-stats span{font-size:9px}}

/* Keep the bio lines entered in Edit profile on every profile surface. */
#profile-bio,.profile-bio-text{white-space:pre-wrap;overflow-wrap:anywhere}
