/* V63 — design polish: fixes small layout flaws and tightens the profile header. */

/* Profile header: avatar sits clearly on the banner edge, aligned with everything below. */
/* Always full width: with aspect-ratio 2/1 the old max-height also shrank the width on wide phones, leaving a gap on the right. */
.profile-banner{width:100%!important;max-width:none!important;box-sizing:border-box}
.profile-banner.has-banner{box-shadow:inset 0 -48px 40px -28px #0b111ccc}
/* Centered identity: avatar in the middle of the banner edge, text and tags below it.
   Keeps the header balanced instead of everything hanging on the left. */
.profile-identity{display:flex!important;flex-direction:column;align-items:center;text-align:center;gap:8px!important;padding:0 16px!important;margin-top:0!important}
.profile-portrait{display:grid!important;justify-items:center!important}
.profile-identity .profile-avatar{width:92px!important;height:92px!important;margin-top:-50px!important;border:4px solid #0e1524!important;box-shadow:0 10px 28px #000b!important;font-size:28px}
.profile-copy{padding-top:0!important;display:grid;justify-items:center;width:100%}
.profile-copy h1,.profile-copy h3{font-size:24px!important;line-height:1.15;letter-spacing:-.9px;overflow-wrap:anywhere;margin:0}
.profile-copy>p:not(.bio):not(.profile-favorite-flavour){color:#8f9db3!important;margin-top:3px!important}
.profile-copy .bio{color:#d6deec!important;max-width:32ch}
.profile-copy .profile-favorite-flavour{text-align:center}

/* Gradient names: give descenders (g, j, p, y) room so they are not cut off. */
.swm-name{padding-bottom:.14em;margin-bottom:-.14em;display:inline-block}

/* Tags centered; four tags become a tidy 2×2 block instead of leaving one orphan. */
.profile-tag-row{display:flex!important;flex-wrap:wrap;justify-content:center;gap:7px!important;margin:14px 16px 0!important;min-height:0!important}
.profile-tag-row:has(> :nth-child(4)){display:grid!important;grid-template-columns:repeat(2,max-content);justify-content:center}
.profile-cosmetic-tag{height:29px!important;max-width:none!important;width:auto}
@media (max-width:370px){.profile-cosmetic-tag{height:26px!important}}

/* Favourite-flavour line under the stats, centered like the header. */
.profile-favorite-summary{text-align:center}

/* Buttons line up with the card edges. */
.profile-buttons{margin-top:16px!important}
.profile-buttons,.profile-menu-details{margin-left:12px!important;margin-right:12px!important}

/* Hidden summaries must stay hidden (an empty one left a stray dot under the stats). */
.profile-favorite-flavour[hidden],.profile-favorite-summary[hidden]{display:none!important}

/* Stats as a real card, matching the rest of the profile. */
.profile-stats{border:1px solid var(--swm-card-border,#243045)!important;border-radius:18px!important;background:var(--swm-card,#0f1622)!important;box-shadow:var(--swm-card-shadow,none);padding:12px 4px!important}
[data-screen="profile"] .profile-stats{margin:14px 0 0!important}
.profile-stats>div+div{border-left:1px solid #1f2a3d}
.profile-stats b{font-size:19px;letter-spacing:-.4px}
.profile-stats span{color:#8391a7!important}

/* Primary buttons: the old Pouchd dot becomes a clear arrow. */
.primary-button span{font-size:0!important;margin-left:6px;vertical-align:0!important}
.primary-button span:after{content:"→";font-size:15px;font-weight:800;color:#5f78b4}

/* Edit profile: the photo row had its avatar squeezed to a sliver. */
.profile-photo-control,.profile-banner-control{border-radius:14px!important;padding:11px!important;gap:12px!important}
.profile-photo-control>.profile-avatar{flex:none!important;width:48px!important;height:48px!important;border:2px solid #33425a!important;display:grid!important}
.profile-photo-control>span:not(.avatar){display:grid!important;gap:3px;flex:1;min-width:0}
.profile-photo-control b,.profile-banner-control b{font-size:12px!important}
.profile-photo-control small,.profile-banner-control small{font-size:10px!important;color:#8f9db3!important}

/* Live map: dark tiles that match the app, single-line status pill. */
#friends-map .leaflet-tile-pane{filter:invert(1) hue-rotate(195deg) brightness(.82) contrast(.92) saturate(.55)}
#friends-map{background:#0b111c!important}
.map-live-dot{white-space:nowrap;display:inline-flex!important;align-items:center;gap:2px;padding:7px 10px!important;border:1px solid #2b3950}
.map-live-dot:before{margin-right:5px!important}


/* Friendship note on visited profiles, centered like the header. */
.view-profile-info{text-align:center}
