/* Backend controls adapted to the profile components from the concept. */
.pf .pf-avatar { padding: 0; cursor: pointer; }

/* Experience stays on the avatar without interfering with the photo editor. */
.pf .pf-avatar-wrap { position: relative; z-index: 3; flex: none; width: 200px; height: 200px; border-radius: 50%; }
.pf .pf-avatar-wrap--progress { padding: 5px; background: conic-gradient(#ff671d var(--pf-xp-progress), #e8ebe7 0); box-shadow: var(--shadow); }
html[data-theme="dark"] .pf .pf-avatar-wrap--progress { background: conic-gradient(#ff671d var(--pf-xp-progress), #47544c 0); }
.pf .pf-avatar-wrap .pf-avatar { display: block; width: 100%; height: 100%; box-shadow: none; }
.pf .pf-avatar-wrap--progress .pf-avatar { border-width: 3px; }
.pf .pf-avatar-level { position: relative; z-index: 3; display: flex; justify-content: center; max-width: 100%; }
.pf .pf-avatar-level__label { display: inline-flex; align-items: center; justify-content: center; gap: 5px; max-width: 100%; min-height: 32px; padding: 5px 14px; border: 0; border-radius: 999px; background: #fff0e7; color: #9c3a0e; font: 700 13px/1.2 var(--font-text); cursor: pointer; }
.pf .pf-avatar-level__label:focus-visible { outline: 2px solid #ff671d; outline-offset: 3px; }
.pf .pf-avatar-level__number { color: #d5480b; font-weight: 800; }
.pf .pf-avatar-level__number::before { content: '· '; }
.pf .pf-avatar-level__tooltip { position: absolute; bottom: calc(100% + 8px); left: 50%; display: grid; gap: 3px; width: max-content; max-width: min(230px, 80vw); padding: 9px 12px; border-radius: 10px; background: #17212b; box-shadow: 0 5px 18px rgba(0, 0, 0, .2); color: #fff; font: 500 12px/1.35 var(--font-text); opacity: 0; pointer-events: none; transform: translate(-50%, 4px); transition: opacity .16s ease, transform .16s ease; }
.pf .pf-avatar-column:hover .pf-avatar-level__tooltip, .pf .pf-avatar-column:focus-within .pf-avatar-level__tooltip { opacity: 1; transform: translate(-50%, 0); }
html[data-theme="dark"] .pf .pf-avatar-level__label { background: #39251c; color: #ffc8a7; }
html[data-theme="dark"] .pf .pf-avatar-level__number { color: #ff9661; }
.pf .pf-profile-layout { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 0 28px; align-items: start; }
.pf .pf-avatar-column { position: relative; z-index: 3; display: grid; justify-items: center; align-content: start; gap: 10px; min-width: 0; margin-top: -100px; }
.pf .pf-avatar-column .pf-reputation { justify-content: center; gap: 5px; margin: 0; font-size: 12px; white-space: nowrap; }
.pf .pf-profile-main { min-width: 0; padding-top: 18px; }
.pf .pf-profile-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; }
.pf .pf-identity { flex: 1 1 200px; min-width: 0; margin: 0; }
.pf .pf-actions { align-self: center; margin: 0; }
.pf .pf-identity .pf-name { overflow-wrap: anywhere; }
.pf .pf-identity .pf-handle { margin-top: 4px; overflow-wrap: anywhere; }
.pf .pf-identity .pf-handle__login { display: block; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pf .pf-head__meta { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 14px; color: var(--quiet); font-size: var(--fs-small); }
.pf .pf-head__meta > span { display: inline-flex; align-items: center; gap: 8px; min-width: 0; }
.pf .pf-head__meta .icon { width: 17px; height: 17px; flex: none; }
.pf .pf-head__activities-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin-top: 16px; }
.pf .pf-head__section-label { color: var(--quiet); font-size: var(--fs-small); font-weight: var(--fw-ui); }
.pf .pf-head__activities { margin: 0; padding: 0; list-style: none; }
.pf .pf-regions { grid-column: 1 / -1; display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 20px; margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--line); }
.pf .pf-regions__list { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 16px 0; margin: 0; padding: 0; list-style: none; }
.pf .pf-regions__list li { min-width: 0; padding: 0 20px; border-left: 1px solid var(--line-2); }
.pf .pf-regions__list a { display: grid; gap: 4px; min-width: 0; color: var(--ink); font-size: var(--fs-small); line-height: 1.3; text-decoration: none; overflow-wrap: anywhere; }
.pf .pf-regions__list a span { color: var(--quiet); }
.pf .pf-regions__list a:hover strong { color: var(--link); }
.pf .pf-profile-main .pf-bio { max-width: none; margin: 16px 0 0; }
.pf .pf-profile-main .pf-guide-summary { display: grid; margin-top: 20px; padding: 20px 0 0; border-top: 1px solid var(--line); border-left: 0; }
.pf .pf-profile-main .pf-guide-summary[hidden] { display: none; }
@media (max-width: 767px) {
    .pf .pf-avatar-wrap { width: 136px; height: 136px; }
    .pf .pf-avatar-wrap--progress { padding: 4px; }
    .pf .pf-profile-layout { grid-template-columns: 136px minmax(0, 1fr); gap: 12px; }
    .pf .pf-avatar-column { grid-column: 1; grid-row: 1; margin-top: -68px; gap: 8px; }
    .pf .pf-profile-main, .pf .pf-profile-top { display: contents; }
    .pf .pf-identity { grid-column: 2; grid-row: 1; min-width: 0; margin: 12px 0 0; }
    .pf .pf-identity .pf-name { font-size: clamp(20px, 5.8vw, 28px); line-height: 1.15; }
    .pf .pf-actions { grid-column: 1 / -1; grid-row: 2; justify-content: flex-end; margin: 0; }
    .pf[data-view="owner"] .pf-profile-layout .pf-actions { justify-content: flex-end; }
    .pf .pf-head__meta, .pf .pf-profile-main .pf-bio, .pf .pf-head__activities-row,
    .pf .pf-profile-main .pf-social, .pf .pf-profile-main .pf-guide-summary { grid-column: 1 / -1; margin: 0; }
    .pf .pf-head__meta { grid-row: 3; }
    .pf .pf-profile-main .pf-bio { grid-row: 4; }
    .pf .pf-head__activities-row { grid-row: 5; }
    .pf .pf-profile-main .pf-social { grid-row: 6; }
    .pf .pf-profile-main .pf-guide-summary { grid-row: 7; }
    .pf .pf-regions { grid-row: 8; grid-template-columns: 1fr; gap: 12px; margin-top: 4px; padding-top: 16px; }
    .pf .pf-regions__list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 0; }
    .pf .pf-regions__list li { padding: 0 12px; }
}
@media (prefers-reduced-motion: reduce) { .pf .pf-avatar-level__tooltip { transition: none; } }
.pf .pf-cover__account { position: absolute; right: clamp(16px, 3vw, 40px); bottom: 24px; display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; max-width: calc(100% - 250px); }
.pf .pf-cover__account .btn { background: var(--surface); color: var(--ink); border-color: var(--line); box-shadow: 0 2px 8px var(--shade-18); }
.pf .pf-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px; }
.pf[data-profile-mode="guide"] .pf-grid { grid-template-columns: minmax(0, 1fr) minmax(0, .88fr); }
.pf .pf-who { min-width: 0; }
.pf .pf-guide-summary { align-content: start; gap: 18px; min-width: 0; margin: 0; padding: 0 0 0 clamp(24px, 3vw, 48px); border-left: 1px solid var(--line); }
.pf .pf-guide-summary__title { display: flex; align-items: center; gap: 14px; margin: 0; color: var(--ink); font: var(--fw-title) var(--fs-h3)/var(--lh-h3) var(--font-display); }
.pf .pf-guide-summary__title .icon { width: 25px; height: 25px; flex: none; color: var(--orange); }
.pf .pf-guide-summary__rating, .pf .pf-guide-summary__item { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; color: var(--ink); font-size: var(--fs-body); line-height: var(--lh-body); }
.pf .pf-guide-summary__rating, .pf .pf-guide-summary__secondary { color: var(--quiet); }
.pf .pf-guide-summary__item .icon { width: 21px; height: 21px; flex: none; }
.pf .pf-bio { margin-top: 6px; }
.pf .pf-social { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); }
.pf .pf-social .profile-social-links--app { gap: 8px; margin: 0; padding: 0; }
.pf .profile-social-links--app .profile-social-links__item,
.pf .pf-social .profile-social-links__add { display: inline-flex; align-items: center; gap: 8px; min-height: 36px; margin: 0; padding: 0 12px; border: 1px solid var(--line-2); border-radius: 999px; background: var(--surface); color: var(--ink); font: var(--fw-ui) var(--fs-small)/var(--lh-small) var(--font-text); text-decoration: none; }
.pf .profile-social-links--app .profile-social-links__item:hover,
.pf .pf-social .profile-social-links__add:hover { border-color: var(--ink-2); background: var(--bg-soft); color: var(--ink); }
.pf .profile-social-links--app .profile-social-links__item:focus-visible,
.pf .pf-social .profile-social-links__add:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.pf .profile-social-links--app .profile-social-links__item img { width: 20px; height: 20px; }
@media (min-width: 768px) { .pf .pf-rank { min-height: 28px; } }
@media (max-width: 767px) {
    .pf[data-profile-mode="guide"] .pf-grid { grid-template-columns: minmax(0, 1fr); }
    .pf .pf-guide-summary { gap: 12px; padding: 20px 0 0; border-top: 1px solid var(--line); border-left: 0; }
    .pf .pf-cover__account { right: 12px; bottom: 12px; max-width: calc(100% - 170px); gap: 6px; }
    .pf .pf-cover__account .btn { min-height: 36px; padding: 0 10px; font-size: var(--fs-caption); }
}
.pf .pf-follow-wrap { position: relative; }
.pf .pf-follow-wrap .follow-menu { position: absolute; right: 0; top: calc(100% + 8px); z-index: 40; min-width: 220px; }
.pf .profile-tab-panel[hidden], .pf [data-profile-people-panel][hidden] { display: none; }
.pf .profile-tabs__tab { flex: none; }
.pf .profile-tabs__tab[aria-selected="true"] { border-bottom-color: var(--orange); }
.pf .profile-favorites__header { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 24px; }
.pf .profile-favorites__header h2 { margin: 0; }
.pf .profile-favorites__header span { color: var(--quiet); font-size: var(--fs-small); }
.pf .profile-favorites__status { color: var(--quiet); font-size: var(--fs-small); }
.pf .profile-favorites__status:not(:empty) { margin-bottom: 16px; }
.pf .profile-favorites__empty[hidden], .pf .profile-favorites__more[hidden], .pf .profile-favorites__retry[hidden] { display: none; }
.pf .profile-favorites__more { margin-top: 28px; text-align: center; }
.pf .profile-favorites__retry { margin-top: 12px; }
.pf .profile-social-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.pf .profile-social-links__item { display: inline-flex; align-items: center; gap: 8px; min-height: 32px; padding: 0 12px; border: 1px solid var(--line-2); border-radius: 999px; font-size: var(--fs-small); }
.pf .profile-social-links__item img { width: 18px; height: 18px; }
.pf .profile-social-links__add { display: inline-flex; align-items: center; gap: 8px; margin-top: 12px; color: var(--link); font-size: var(--fs-small); }
.pf .profile-social-links__add svg { width: 16px; height: 16px; }
.pf .pf-months { grid-template-columns: repeat(12, minmax(0, 1fr)); }
.pf .pf-people-filter { margin-bottom: 32px; }
.pf .pf-people { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.pf .pf-badge__art { object-fit: contain; }
.pf .pf-post { display: grid; }
.pf .pf-post .pf-attach:not(:has(> img)) { grid-template-columns: minmax(0, 1fr) auto; }
.pf .pf-bio { overflow-wrap: anywhere; }
.pf .pf-side-followers__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.pf .pf-side-followers__head .pf-h4 { min-width: 0; margin: 0; }
.pf .pf-side-followers__head .pf-more { display: inline-flex; align-items: center; gap: 6px; flex: none; }
.pf .pf-side-followers__head .icon { width: 16px; height: 16px; }
.pf .pf-side-followers__list { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.pf .pf-side-followers__person { display: flex; align-items: center; gap: 12px; min-width: 0; color: var(--ink); text-decoration: none; }
.pf .pf-side-followers__person .avatar { width: 42px; height: 42px; flex: none; }
.pf .pf-side-followers__name { display: grid; min-width: 0; gap: 2px; }
.pf .pf-side-followers__name b, .pf .pf-side-followers__name small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pf .pf-side-followers__name b { font-size: var(--fs-small); font-weight: var(--fw-button); }
.pf .pf-side-followers__name small { color: var(--quiet); font-size: var(--fs-caption); }
.pf .pf-side-followers__person:hover b { color: var(--link); }
.pf .profile-route-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
.pf .profile-route-experience__header { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 24px; }
.pf .profile-route-experience__title { font: var(--fw-title) var(--fs-h3)/var(--lh-h3) var(--font-display); }
.pf .profile-route-experience__subtitle { color: var(--quiet); font-size: var(--fs-small); }
.pf .profile-route-experience__all { display: none; }
.pf .profile-route-experience__tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.pf .profile-route-experience__tab { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 14px; border: 1px solid var(--line-2); border-radius: 999px; color: var(--copy); font-size: var(--fs-small); }
.pf .profile-route-experience__tab[aria-selected="true"] { border-color: var(--ink); background: var(--ink); color: var(--surface); }
.pf .profile-route-experience__tab-count { opacity: .7; }
.pf .profile-route-sort { display: flex; gap: 8px; }
.pf .profile-route-sort__select { min-height: 40px; padding: 0 12px; border: 1px solid var(--field-edge); border-radius: 999px; background: var(--surface); color: var(--ink); font-size: var(--fs-small); }
.pf .profile-route-sort__filter { display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid var(--line-2); border-radius: 50%; }
.pf .profile-route-sort__filter svg { width: 18px; height: 18px; }
.pf .profile-route-map { margin-bottom: 32px; }
.pf .profile-route-map__shell { position: relative; height: 300px; overflow: hidden; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--bg-soft); }
.pf .pf-geography__frame { position: relative; overflow: hidden; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--bg-soft); }
.pf .pf-geography__map { width: 100%; height: clamp(280px, 36vw, 420px); }
.pf .pf-geography__badge { position: absolute; top: 16px; left: 16px; z-index: 2; display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--ink); box-shadow: var(--shadow); font-size: var(--fs-small); font-weight: var(--fw-button); pointer-events: none; }
.pf .pf-geography__badge .icon { width: 18px; height: 18px; color: var(--orange); }
.pf .pf-geography__badge b { display: grid; min-width: 24px; height: 24px; padding-inline: 5px; place-items: center; border-radius: 999px; background: var(--bg-soft); color: var(--ink-2); font-size: var(--fs-caption); }
.pf .pf-geography__map .maplibregl-ctrl-top-right { top: 6px; right: 6px; }
.pf .pf-geography__map .maplibregl-ctrl-group { overflow: hidden; border: 1px solid var(--line); border-radius: 22px; background: var(--surface); box-shadow: var(--shadow); }
.pf .pf-geography__map .maplibregl-ctrl-group button { width: 40px; height: 40px; }
.pf .pf-geography__map .maplibregl-ctrl-group button + button { border-top: 1px solid var(--line); }
html[data-theme="dark"] .pf .pf-geography__map .maplibregl-ctrl-icon { filter: invert(1); }
.pf .pf-geography__map .maplibregl-popup { z-index: 4; }
.pf .pf-geography__map .maplibregl-popup-content { padding: 16px 42px 16px 16px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); box-shadow: var(--shadow-lg); color: var(--ink); }
.pf .pf-geography__popup { display: grid; gap: 6px; max-width: 240px; font: var(--fw-text) var(--fs-small)/var(--lh-small) var(--font-text); }
.pf .pf-geography__popup strong { color: var(--ink); font-weight: var(--fw-heading); overflow-wrap: anywhere; }
.pf .pf-geography__popup a { color: var(--link); font-weight: var(--fw-button); }
.pf .pf-geography__popup small { color: var(--quiet); }
.pf .pf-geography__map .maplibregl-popup-close-button { width: 32px; height: 32px; border-radius: 50%; color: var(--ink); font-size: 20px; }
.pf .pf-geography__map .maplibregl-popup-close-button:hover { background: var(--bg-soft); }
.pf .pf-geography__error { margin-top: 12px; color: var(--quiet); font-size: var(--fs-small); }
.pf .profile-travel-map__canvas { position: absolute; inset: 0; }
.pf .profile-route-map__open { position: absolute; right: 12px; bottom: 12px; z-index: 5; display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 16px; border-radius: 999px; background: var(--surface); color: var(--ink); box-shadow: var(--shadow); }
.pf .profile-route-map__open svg { width: 18px; height: 18px; }
.pf .profile-route-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; }
.pf .profile-route-slider-controls { display: none; }
.pf .profile-route-empty, .pf .profile-route-map__empty, .pf .profile-empty { display: grid; justify-items: start; gap: 12px; padding: 32px; border: 1px dashed var(--line-2); border-radius: var(--r-lg); color: var(--quiet); }
.pf .profile-empty__title, .pf .profile-route-empty__title { color: var(--ink); font-size: var(--fs-h4); }
.pf .profile-empty__icon { width: 40px; height: 40px; }
.pf .profile-route-empty__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.pf .profile-empty__action, .pf .profile-route-empty__action { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 999px; background: var(--ink); color: var(--surface); }
.pf .profile-private-notice { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding: 16px; margin-bottom: 24px; border: 1px solid var(--line); border-radius: var(--r); background: var(--bg-soft); color: var(--copy); font-size: var(--fs-small); }
.pf .profile-private-notice svg { width: 20px; height: 20px; }
.pf .profile-achievements-columns { display: grid; gap: 32px; margin-top: 48px; }
.pf .profile-contribution { display: grid; gap: 24px; min-width: 0; padding: 24px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); color: var(--ink); }
.pf .profile-contribution__head { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.pf .profile-contribution__head h2 { margin: 4px 0 0; color: var(--ink); font: var(--fw-title) var(--fs-h3)/var(--lh-h3) var(--font-display); letter-spacing: var(--ls-heading); }
.pf .profile-contribution__head img { width: 28px; height: 28px; flex: none; }
.pf .profile-contribution__head p { margin: 0; color: var(--quiet); font-size: var(--fs-small); }
.pf .profile-contribution__regions { min-width: 0; margin: 0; }
.pf .profile-contribution__regions h3 { margin: 0 0 12px; color: var(--ink); font: var(--fw-heading) var(--fs-body)/var(--lh-body) var(--font-display); }
.pf .profile-contribution__region-list { display: grid; gap: 8px; }
.pf .profile-contribution__region { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px 16px; min-width: 0; padding: 14px 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); text-decoration: none; transition: border-color 160ms, background-color 160ms; }
.pf .profile-contribution__region:hover { border-color: var(--orange); background: var(--bg-soft); }
.pf .profile-contribution__region-name { min-width: 0; color: var(--ink); font-size: var(--fs-small); font-weight: var(--fw-button); overflow-wrap: anywhere; }
.pf .profile-contribution__region strong { padding: 6px 10px; border-radius: 999px; background: var(--bg-soft); color: var(--ink-2); font-size: var(--fs-caption); font-weight: var(--fw-button); }
.pf .profile-contribution__stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.pf .profile-contribution__stat { display: flex; align-items: center; gap: 12px; min-width: 0; padding: 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--bg-soft); }
.pf .profile-contribution__stat img { display: block; width: 22px; height: 22px; flex: none; object-fit: contain; }
.pf .profile-contribution__stat-copy { display: grid; gap: 4px; min-width: 0; }
.pf .profile-contribution__stat-copy strong { color: var(--ink); font-size: 20px; font-weight: var(--fw-heading); line-height: 1.2; }
.pf .profile-contribution__stat-copy span { color: var(--quiet); font-size: var(--fs-small); line-height: var(--lh-small); overflow-wrap: anywhere; }
.pf .profile-contribution__impact, .pf .profile-contribution__empty { display: grid; gap: 6px; padding: 16px; border-radius: 14px; background: var(--bg-soft); }
.pf .profile-contribution__impact strong, .pf .profile-contribution__empty strong { color: var(--ink); font-size: var(--fs-small); font-weight: var(--fw-button); }
.pf .profile-contribution__impact span, .pf .profile-contribution__empty span { color: var(--quiet); font-size: var(--fs-small); line-height: var(--lh-small); }
.pf .profile-contribution__empty > div { display: grid; gap: 6px; }
.pf .profile-contribution__empty a { justify-self: start; margin-top: 8px; color: var(--link); font-size: var(--fs-small); font-weight: var(--fw-button); }
.pf .profile-contribution__reputation { display: grid; width: 100%; gap: 10px; margin: 0; padding: 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--bg-soft); color: var(--ink); text-align: left; }
.pf .profile-contribution__reputation-top { display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.pf .profile-contribution__reputation-top > span { display: grid; gap: 4px; }
.pf .profile-contribution__reputation-top small, .pf .profile-contribution__reputation-hint { color: var(--quiet); font-size: var(--fs-caption); }
.pf .profile-contribution__reputation-top strong { font-size: 20px; white-space: nowrap; }
.pf .profile-contribution__reputation-bar { height: 6px; margin: 0; overflow: hidden; border-radius: 999px; background: var(--line); }
.pf .profile-contribution__reputation-bar > span { display: block; height: 100%; background: var(--orange); }
.pf .profile-contribution__reputation-hint { display: flex; justify-content: space-between; margin: 0; }
@media (max-width: 767px) {
    .pf .profile-contribution { gap: 20px; padding: 20px; }
    .pf .profile-contribution__stats { gap: 8px; }
    .pf .profile-contribution__stat { align-items: flex-start; padding: 12px; gap: 8px; }
    .pf[data-view="visitor"] .pf-actions > .pf-sq { display: inline-flex; }
    .pf .pf-actions .pf-message { width: 44px; padding: 0; }
    .pf .pf-people { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 16px; }
    .pf .profile-route-toolbar { align-items: stretch; }
    .pf .profile-route-map__shell { height: 240px; }
    .pf .pf-months { gap: 4px; font-size: 10px; }
    .pf .profile-route-card { grid-template-columns: minmax(0, 1fr); }
}

/* Full-bleed profile shell on phones; reading content keeps a comfortable inset. */
@media (max-width: 767px) {
    .pf.profile-page { padding-top: 0; }
    .pf .pf-head { margin-inline: -16px; border-inline: 0; border-top: 0; border-radius: 0 0 20px 20px; }
    .pf .profile-tabs { margin-inline: -16px; padding-inline: 8px; }
    .pf .pf-actions { align-items: center; }
    .pf .pf-actions > .pf-sq { flex: 0 0 44px; }
    .pf .pf-handle { overflow-wrap: anywhere; }
}

.pf [data-profile-award][hidden] { display: none; }
.pf .pf-shot video { width: 100%; height: 100%; object-fit: cover; }
.pf .pf-shots:has(> :only-child) { grid-template-columns: minmax(0, 1fr); }
.pf .pf-shots:has(> :nth-child(2):last-child) { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: 1fr; }
.pf .pf-shots:has(> :nth-child(2):last-child) .pf-shot:first-child { grid-row: auto; }

.profile-guide-entry { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding: 20px; border: 1px solid var(--line); border-radius: var(--r); background: var(--bg-soft); }
.profile-guide-entry > div { flex: 1 1 240px; }
.profile-guide-entry h4 { margin: 0 0 4px; color: var(--ink); font: var(--fw-title) var(--fs-h4)/var(--lh-h4) var(--font-display); }
.profile-guide-entry p { margin: 0; color: var(--copy); font-size: var(--fs-small); line-height: var(--lh-small); }
.profile-guide-entry .btn { flex-shrink: 0; }
@media (max-width: 767px) { .profile-guide-entry .btn { width: 100%; } }

.pf .pf-side-clubs .pf-h4 .count { margin-left: 4px; vertical-align: middle; }
.pf .pf-side-clubs .pf-side-followers__name b { white-space: normal; overflow: hidden; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow-wrap: anywhere; line-height: 1.35; }

.pf .pf-side-activity { margin: 4px 0 22px; }
.pf .pf-side-activity__title { margin: 0 0 10px; color: var(--ink-2); font-size: var(--fs-small); font-weight: var(--fw-ui); }
.pf .pf-side-activity__chart { height: 76px; gap: 2px; margin: 0; padding: 0; list-style: none; }
.pf .pf-side-activity__chart li { min-width: 0; gap: 4px; font-size: 10px; line-height: 1; }
.pf .pf-side-activity__chart i { width: 100%; max-width: 16px; height: calc(var(--n) * 10px + 3px); border-radius: 4px 4px 0 0; }
.pf .pf-side-activity__chart li[style*="--n:0"] i { height: 3px; }
