/* =====================================================================
   PhotoZone Graphy — profile page (profile_v3.css)
   Edge-to-edge banner, avatar inset from the left, achievements and the three basic numbers first, photos right after.
   Windows (share, about, report, lists, certificates...) copy the look of the login and profile-setup windows (Manrope, blurred
   backdrop, 22px card, photo panel on the left, bottom sheet on phones).
   Pro and Max members can change --accent, --card-r, --gap, avatar shape and photo columns in Settings (profile.php sets them on .pv).
   Upload to the CDN as  css/profile_v3.css  (badges.css is loaded next to it).
   ===================================================================== */
:root {
    --bg: #fff;
    --ink: #121417;
    --ink-2: #4a505a;
    --ink-3: #79808b;
    --line: #e6e8ec;
    --line-2: #d3d7de;
    --soft: #f4f5f7;
    --soft-2: #eaecf0;
    --accent: #121417;
    --danger: #c4372d;
    --danger-soft: #fdeceb;
    --ok: #1d7a47;
    --ok-soft: #e8f5ee;
    --warn: #9a5a00;
    --warn-soft: #fff3e0;
    --mx: #2855a0;
    --paper: #fff;
    --on-accent: #fff;
    --f: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Sans', sans-serif;
    --fh: 'Plus Jakarta Sans', 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
    --fm: 'Manrope', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

/* Themes (Max) only recolour the page itself. Windows, the photo viewer and toasts keep the standard light look. */
.pv-modal,
.pv-viewer,
.pv-toasts {
    --bg: #fff;
    --paper: #fff;
    --ink: #121417;
    --ink-2: #4a505a;
    --ink-3: #79808b;
    --line: #e6e8ec;
    --line-2: #d3d7de;
    --soft: #f4f5f7;
    --soft-2: #eaecf0;
    --on-accent: #fff;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font: 400 14.5px/1.5 var(--f);
    -webkit-font-smoothing: antialiased;
}

body.pv-lock {
    overflow: hidden;
}

a {
    color: inherit;
}

button {
    font: inherit;
    color: inherit;
}

img {
    max-width: 100%;
}

[hidden] {
    display: none !important;
}

:focus-visible {
    outline: 2px solid var(--ink);
    outline-offset: 2px;
}

/* The page measures its own width (not the screen's), so it adapts when the site sidebar or the AI panel takes space. */
.pv {
    container: pv / inline-size;
    width: 100%;
    color: var(--ink);
    --accent: #121417;
    --card-r: 6px;
    --gap: 8px;
    --banner-max: 280px;
    --side: 310px;
    --inset: clamp(14px, 3.4cqw, 72px);
    --av: 148px;
    --name-size: clamp(30px, 2.8cqw + 12px, 46px);
}

.pv-in {
    max-width: 1920px;
    margin: 0 auto;
    padding: 0 var(--inset) 72px;
}

/* badge captions follow the theme's text colour */
.pv .pzb-name {
    color: var(--ink-2);
}

/* ---------- banner: edge to edge ---------- */
.pv-banner {
    position: relative;
    width: 100%;
    aspect-ratio: 6 / 1;
    min-height: 124px;
    max-height: var(--banner-max);
    overflow: hidden;
    background: var(--soft-2);
}

.pv-banner img,
.pv-banner iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    object-fit: cover;
    pointer-events: none;
}

.pv-edit {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: rgba(255, 255, 255, .94);
    color: #121417;
    border: 1px solid rgba(18, 20, 23, .12);
    border-radius: 10px;
    font-size: 12.5px;
    font-weight: 700;
    text-decoration: none;
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
}

.pv-edit:hover {
    background: #fff;
}

.pv-edit-banner {
    position: absolute;
    z-index: 2;
    right: var(--inset);
    bottom: 12px;
    padding: 7px 12px;
}

.pv-edit-avatar {
    position: absolute;
    right: 2px;
    bottom: 4px;
    width: 32px;
    height: 32px;
    justify-content: center;
    padding: 0;
    font-size: 12px;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(18, 20, 23, .2);
}

/* ---------- header: avatar, name, actions ---------- */
.pv-top {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    grid-template-areas: 'av id act';
    column-gap: 24px;
    align-items: start;
}

.pv-avatar-wrap {
    grid-area: av;
    position: relative;
    width: var(--av);
    margin-top: calc(var(--av) / -2);
    flex: none;
    z-index: 2;
}

.pv-avatar {
    width: var(--av);
    height: var(--av);
    border-radius: 50%;
    border: 5px solid var(--bg);
    background: var(--soft-2);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 0 1px var(--line);
}

.av-rounded .pv-avatar {
    border-radius: 30%;
}

.av-square .pv-avatar {
    border-radius: 10px;
}

.pv-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.pv-avatar-empty {
    font: 700 52px/1 var(--f);
    color: var(--ink-3);
}

.pv-avatar-empty.sm {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--soft-2);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex: none;
}

.pv-avatar-empty.sm.lg {
    width: 76px;
    height: 76px;
    font-size: 30px;
}

.pv-idtext {
    grid-area: id;
    min-width: 0;
    padding-top: 16px;
}

.pv-name {
    margin: 0;
    font: 700 calc(var(--name-size) * var(--name-scale, 1))/1.1 var(--font-name, var(--fh));
    letter-spacing: -.02em;
    white-space: normal;
    overflow-wrap: anywhere;
    text-wrap: balance;
}

.pv-name.is-nowrap {
    white-space: nowrap;
}

.pv-name-text {
    white-space: inherit;
}

.pv-nw {
    white-space: nowrap;
}

.pv-ti {
    display: inline-block;
    width: .6em;
    height: .6em;
    margin-left: .24em;
    vertical-align: -.06em;
    flex: none;
    line-height: 0;
}

.pv-ti svg {
    display: block;
    width: 100%;
    height: 100%;
}

.pv-handle {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 2px 9px;
    margin: 5px 0 0;
    color: var(--ink-3);
    font-size: 14.5px;
    line-height: 1.35;
    min-width: 0;
}

.pv-handle-u {
    overflow-wrap: anywhere;
}

.pv-dot {
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: currentColor;
    opacity: .6;
    flex: none;
}

.pv-loc {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
}

.pv-loc i {
    font-size: 12px;
}

.pv-headline {
    margin: 10px 0 0;
    font-family: var(--font-body, var(--f));
    font-size: 16px;
    font-weight: 500;
    color: var(--ink);
    line-height: 1.4;
    max-width: 62ch;
    text-wrap: pretty;
}

.pv-uid {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-top: 10px;
    padding: 3px 10px 3px 3px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--soft);
    cursor: pointer;
    font-size: 12px;
    color: var(--ink-2);
}

.pv-uid:hover {
    border-color: var(--line-2);
    background: var(--soft-2);
}

.pv-uid-k {
    font-size: 9.5px;
    font-weight: 800;
    letter-spacing: .1em;
    background: var(--ink);
    color: var(--bg);
    border-radius: 5px;
    padding: 3px 6px;
}

.pv-uid-v {
    font-family: var(--mono);
    font-weight: 600;
    letter-spacing: .03em;
    color: var(--ink);
}

.pv-uid i {
    font-size: 11px;
    color: var(--ink-3);
}

.pv-uid.is-done i::before {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    color: var(--ok);
}

.pv-mutual {
    display: flex;
    align-items: center;
    gap: 9px;
    margin: 12px 0 0;
    font-size: 12.5px;
    line-height: 1.4;
    color: var(--ink-3);
}

.pv-mutual b {
    color: var(--ink-2);
    font-weight: 600;
}

.pv-mutual-av {
    display: inline-flex;
    flex: none;
}

.pv-mutual-av img,
.pv-mutual-av span {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 2px solid var(--bg);
    object-fit: cover;
    margin-left: -7px;
    background: var(--soft-2);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 700;
    color: var(--ink-3);
}

.pv-mutual-av> :first-child {
    margin-left: 0;
}

/* ---------- buttons ---------- */
.pv-actions {
    grid-area: act;
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
    padding-top: 16px;
}

.pv-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 40px;
    padding: 0 18px;
    border-radius: 8px;
    border: 1px solid var(--line-2);
    background: var(--paper);
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    white-space: nowrap;
    transition: background .15s, border-color .15s, transform .15s, box-shadow .15s;
    -webkit-tap-highlight-color: transparent;
}

.pv-btn:hover {
    background: var(--soft);
    border-color: #c1c6cf;
}

.pv-btn i {
    font-size: 14px;
}

.pv-btn-primary {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--on-accent);
}

.pv-btn-primary:hover {
    background: var(--accent);
    border-color: var(--accent);
    filter: brightness(1.14);
    transform: translateY(-1px);
}

.pv-btn-icon {
    width: 40px;
    padding: 0;
}

.pv-btn-danger {
    background: var(--danger);
    border-color: var(--danger);
    color: #fff;
}

.pv-btn-danger:hover {
    background: #a82b22;
    border-color: #a82b22;
}

.pv-btn-danger-o {
    color: var(--danger);
    border-color: #efc9c4;
}

.pv-btn-danger-o:hover {
    background: var(--danger-soft);
    border-color: var(--danger);
}

.pv-btn[disabled] {
    opacity: .55;
    cursor: default;
}

.pv-follow {
    min-width: 124px;
}

.pv-follow .pv-fl-on,
.pv-follow .pv-fl-un {
    display: none;
}

.pv-follow.is-following {
    background: var(--paper);
    color: var(--ink);
    border-color: var(--line-2);
}

.pv-follow.is-following .pv-fl-on {
    display: inline;
}

.pv-follow.is-following .pv-fl-off {
    display: none;
}

.pv-follow.is-following:hover {
    background: var(--paper);
    color: var(--danger);
    border-color: var(--danger);
    filter: none;
    transform: none;
}

.pv-follow.is-following:hover .pv-fl-on {
    display: none;
}

.pv-follow.is-following:hover .pv-fl-un {
    display: inline;
}

.pv-sugtog {
    position: relative;
}

.pv-sugtog[aria-pressed="true"] {
    background: var(--soft);
    border-color: var(--ink);
}

.pv-sugtog[aria-pressed="false"] {
    color: var(--ink-3);
}

.pv-sugtog[aria-pressed="false"]::after {
    content: '';
    position: absolute;
    width: 22px;
    height: 2px;
    background: var(--ink-3);
    border-radius: 2px;
    transform: rotate(-42deg);
    box-shadow: 0 0 0 2px var(--bg);
}

.pv-linkbtn {
    background: none;
    border: 0;
    padding: 0;
    color: var(--ink-2);
    font-size: 13px;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
    cursor: pointer;
}

.pv-linkbtn:hover {
    color: var(--ink);
}

.pv-more {
    position: relative;
}

.pv-menu {
    position: absolute;
    top: 46px;
    right: 0;
    z-index: 30;
    min-width: 216px;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 10px;
    box-shadow: 0 8px 28px -8px rgba(18, 20, 23, .25);
    padding: 5px;
    animation: pvPop .14s ease-out;
}

@keyframes pvPop {
    from {
        opacity: 0;
        transform: translateY(-4px) scale(.98);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

.pv-menu button {
    display: flex;
    align-items: center;
    gap: 11px;
    width: 100%;
    border: 0;
    background: none;
    padding: 10px 12px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    text-align: left;
}

.pv-menu button:hover {
    background: var(--soft);
}

.pv-menu button[disabled] {
    opacity: .55;
    cursor: default;
}

.pv-menu button[disabled]:hover {
    background: none;
}

.pv-menu i {
    width: 16px;
    color: var(--ink-3);
}

/* ---------- glance: basic numbers and achievements, first thing a visitor sees ---------- */
/* ---------- numbers and achievements: plain type on the page, no boxes ---------- */
.pv-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 26px;
    margin: 16px 0 0;
}

.pv-stat {
    background: none;
    border: 0;
    padding: 0;
    margin: 0;
    font: inherit;
    color: inherit;
    display: inline-flex;
    align-items: baseline;
    gap: 6px;
    text-align: left;
    cursor: default;
}

button.pv-stat {
    cursor: pointer;
}

.pv-stat-n {
    font: 600 18px/1 var(--f);
    letter-spacing: -.01em;
    font-variant-numeric: tabular-nums;
    color: var(--ink);
}

.pv-stat-l {
    font-size: 14px;
    color: var(--ink-3);
}

button.pv-stat:hover .pv-stat-l {
    color: var(--ink);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.pv-label {
    display: block;
    margin: 0 0 10px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--ink-3);
}

.pv-label-gap {
    margin-top: 26px;
}

.pv-ach {
    margin: 28px 0 0;
    padding: 18px 0 8px;
    border-top: 1px solid var(--line);
}

.pv-ach .pv-label {
    margin-bottom: 8px;
}

.pv-ach-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 10px;
}

.pv-ach-grid .pzb {
    flex: none;
}

.pv-ach-grid .pzb-name {
    font-size: 11px;
}

.pv-ach.no-caps .pzb-name {
    display: none;
}

.pv-ach.no-caps .pzb {
    width: var(--pzb-s);
}

/* ---------- layout ---------- */
.pv-layout {
    display: grid;
    grid-template-columns: var(--side) minmax(0, 1fr);
    gap: 40px;
    align-items: start;
    margin-top: 22px;
    padding-top: 26px;
    border-top: 1px solid var(--line);
}

.pv-layout.no-side {
    grid-template-columns: minmax(0, 1fr);
}

.pv-side {
    min-width: 0;
    padding-bottom: 8px;
}

.pv-side.is-sticky {
    position: sticky;
    top: calc(var(--pv-top, 76px) + 16px);
}

.pv-main {
    min-width: 0;
}

.pv-bio-wrap {
    margin: 0;
}

.pv-bio {
    margin: 0;
    font-family: var(--font-about, var(--f));
    color: var(--ink-2);
    font-size: 15px;
    line-height: 1.65;
    white-space: normal;
    overflow-wrap: break-word;
    word-break: normal;
    text-wrap: pretty;
}

.pv-bio.is-clamped {
    display: -webkit-box;
    -webkit-line-clamp: 5;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.pv-bio-wrap .pv-linkbtn {
    margin-top: 6px;
}

.pv-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    margin-top: 16px;
    height: 44px;
    border-radius: 8px;
    background: var(--accent);
    color: var(--on-accent);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: transform .15s, filter .15s;
}

.pv-cta:hover {
    filter: brightness(1.15);
    transform: translateY(-1px);
}

.pv-cta i {
    font-size: 11px;
    opacity: .8;
}

.pv-facts {
    list-style: none;
    margin: 16px 0 0;
    padding: 0;
    display: grid;
    gap: 8px;
    color: var(--ink-2);
    font-size: 14px;
}

.pv-facts li {
    display: flex;
    gap: 11px;
    align-items: baseline;
}

.pv-facts i {
    width: 15px;
    color: var(--ink-3);
    font-size: 12.5px;
    text-align: center;
    flex: none;
}

.pv-status-line {
    color: var(--ink);
    font-weight: 600;
}

.pv-status-line i {
    color: #25a35a;
    font-size: 8px;
}

.pv-tags {
    list-style: none;
    margin: 14px 0 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    font-size: 13.5px;
    color: var(--ink-3);
}

.pv-tags li+li::before {
    content: '\00b7';
    margin: 0 9px;
}

.pv-socials {
    list-style: none;
    margin: 18px 0 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.pv-socials a {
    position: relative;
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    border: 1px solid var(--line);
    color: var(--ink-2);
    text-decoration: none;
    font-size: 16px;
    transition: .15s;
}

.pv-socials a:hover {
    border-color: var(--ink);
    color: var(--ink);
    background: var(--soft);
    transform: translateY(-1px);
}

.pv-socials a.is-private {
    border-style: dashed;
}

.pv-socials a[data-tip]:hover::after,
.pv-socials a[data-tip]:focus-visible::after {
    content: attr(data-tip);
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    background: var(--ink);
    color: var(--bg);
    font-size: 11.5px;
    font-weight: 600;
    padding: 4px 9px;
    border-radius: 6px;
    white-space: nowrap;
    pointer-events: none;
    z-index: 5;
}

/* ---------- suggested profiles (loads slowly, a few at a time) ---------- */
.pv-sug {
    margin: 0 0 24px;
}

.pv-sug-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

.pv-sug-head .pv-label {
    margin: 0;
}

.pv-sug-ctl {
    display: inline-flex;
    gap: 6px;
}

.pv-sug-arrow {
    width: 30px;
    height: 30px;
    border: 1px solid var(--line);
    background: var(--paper);
    border-radius: 50%;
    cursor: pointer;
    font-size: 11px;
    color: var(--ink-2);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: .15s;
}

.pv-sug-arrow:hover {
    background: var(--soft);
    border-color: var(--line-2);
}

.pv-sug-row {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
    padding: 2px 2px 8px;
}

.pv-sug-row::-webkit-scrollbar {
    display: none;
}

.pv-sg {
    position: relative;
    flex: 0 0 176px;
    scroll-snap-align: start;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 18px 12px 13px;
    text-align: center;
    background: var(--paper);
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 0;
    animation: pvRise .45s cubic-bezier(.2, .8, .2, 1) both;
}

@keyframes pvRise {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

.pv-sg a.pv-sg-who {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    min-width: 0;
    width: 100%;
}

.pv-sg img,
.pv-sg .pv-sg-ph {
    width: 68px;
    height: 68px;
    border-radius: 50%;
    object-fit: cover;
    background: var(--soft-2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: var(--ink-3);
    font-size: 24px;
}

.pv-sg b {
    display: block;
    max-width: 100%;
    margin-top: 11px;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.25;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.pv-sg b .pv-ti {
    width: 12px;
    height: 12px;
    margin-left: 4px;
    vertical-align: -1px;
}

.pv-sg .pv-sg-u {
    color: var(--ink-3);
    font-size: 12.5px;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.pv-sg .pv-sg-p {
    margin-top: 3px;
    color: var(--ink-3);
    font-size: 12px;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.pv-sg .pv-sg-p i {
    margin-right: 4px;
    font-size: 10px;
}

.pv-sg .pv-sg-why {
    margin-top: 6px;
    max-width: 100%;
    font-size: 12px;
    font-weight: 600;
    color: var(--ink-2);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.pv-sg .pv-btn {
    width: 100%;
    height: 34px;
    margin-top: 12px;
    font-size: 13px;
    padding: 0 8px;
}

.pv-sg-x {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 24px;
    height: 24px;
    border: 0;
    border-radius: 50%;
    background: none;
    color: var(--ink-3);
    cursor: pointer;
    display: grid;
    place-items: center;
    opacity: .55;
    transition: .15s;
}

.pv-sg:hover .pv-sg-x,
.pv-sg-x:focus-visible {
    opacity: 1;
}

.pv-sg-x:hover {
    background: var(--soft);
    color: var(--ink);
}

.pv-sg-x svg {
    width: 11px;
    height: 11px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.2;
    stroke-linecap: round;
}

.pv-sg.is-out {
    opacity: 0;
    transform: scale(.96);
    transition: .22s;
}

.pv-sg-skel {
    flex: 0 0 176px;
    height: 226px;
    border-radius: 8px;
    background: linear-gradient(90deg, var(--soft) 25%, var(--soft-2) 50%, var(--soft) 75%);
    background-size: 200% 100%;
    animation: pvSkel 1.2s linear infinite;
}

.pv-sg-tail {
    flex: 0 0 56px;
    display: flex;
    align-items: center;
    justify-content: center;
}

@keyframes pvSkel {
    to {
        background-position: -200% 0;
    }
}

/* ---------- tabs ---------- */
.pv-tabbar {
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid var(--line);
    margin-bottom: 18px;
}

.pv-tabs {
    display: flex;
    gap: 26px;
    flex: 1 1 auto;
    min-width: 0;
    overflow-x: auto;
    scrollbar-width: none;
}

.pv-tabs::-webkit-scrollbar {
    display: none;
}

.pv-tab {
    background: none;
    border: 0;
    padding: 12px 0 13px;
    font-family: var(--font-body, var(--f));
    font-size: 14.5px;
    font-weight: 600;
    color: var(--ink-3);
    cursor: pointer;
    position: relative;
    white-space: nowrap;
}

.pv-tab:hover {
    color: var(--ink);
}

.pv-tab.is-on {
    color: var(--ink);
}

.pv-tab.is-on::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: 3px;
    border-radius: 3px 3px 0 0;
    background: var(--accent);
}

.pv-count {
    margin-left: 6px;
    font-size: 12px;
    font-weight: 700;
    color: var(--ink-3);
}

.pv-panel {
    display: none;
}

.pv-panel.is-on {
    display: block;
}

.pv-row-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

.pv-hint {
    color: var(--ink-3);
    font-size: 13.5px;
    margin: 8px 0;
}

.pv-vh {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

.pv-featured {
    margin-bottom: 22px;
}

.pv-feat-empty {
    margin: 0;
    padding: 14px 16px;
    border: 1px dashed var(--line-2);
    border-radius: 12px;
    color: var(--ink-3);
    font-size: 13.5px;
}

.pv-feat-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--gap);
}

.pv-feat {
    padding: 0;
    border: 0;
    background: var(--soft);
    border-radius: var(--card-r);
    overflow: hidden;
    aspect-ratio: 3/2;
    cursor: pointer;
}

.pv-feat img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .35s;
}

.pv-feat:hover img {
    transform: scale(1.04);
}

.pv-tools {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 14px;
}

.pv-filter,
.pv-viewtog {
    display: inline-flex;
    gap: 2px;
    padding: 3px;
    background: var(--soft);
    border-radius: 11px;
}

.pv-filter button,
.pv-viewtog button {
    border: 0;
    background: none;
    padding: 6px 13px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 700;
    color: var(--ink-3);
    cursor: pointer;
}

.pv-viewtog button {
    width: 34px;
    padding: 6px 0;
    font-size: 14px;
}

.pv-filter button.is-on,
.pv-viewtog button.is-on {
    background: var(--paper);
    color: var(--ink);
    box-shadow: 0 1px 3px rgba(18, 20, 23, .12);
}

/* ---------- photo columns (masonry placed by the script; 3 across by default) ---------- */
.pv-cols {
    display: flex;
    gap: var(--gap);
    align-items: flex-start;
}

.pv-col {
    flex: 1 1 0;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: var(--gap);
}

.pv-card {
    position: relative;
    display: block;
    border-radius: var(--card-r);
    overflow: hidden;
    background: var(--soft-2);
    cursor: pointer;
    border: 0;
    padding: 0;
    width: 100%;
    text-align: left;
    text-decoration: none;
    color: inherit;
}

.pv-cols.is-grid .pv-card {
    aspect-ratio: 1 / 1 !important;
}

.pv-card img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity .4s, transform .5s cubic-bezier(.2, .8, .2, 1);
}

.pv-card img.is-in {
    opacity: 1;
}

.pv-card:hover img {
    transform: scale(1.03);
}

.pv-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(10, 12, 16, .6), rgba(10, 12, 16, 0) 50%);
    opacity: 0;
    transition: opacity .2s;
    pointer-events: none;
}

.pv-card:hover::after,
.pv-card:focus-visible::after {
    opacity: 1;
}

.pv-card-meta {
    position: absolute;
    left: 12px;
    right: 12px;
    bottom: 10px;
    z-index: 2;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 8px;
    color: #fff;
    opacity: 0;
    transform: translateY(4px);
    transition: .2s;
    pointer-events: none;
}

.pv-card:hover .pv-card-meta,
.pv-card:focus-visible .pv-card-meta {
    opacity: 1;
    transform: none;
}

.pv-card-t {
    font-size: 13px;
    font-weight: 600;
    line-height: 1.25;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    text-shadow: 0 1px 3px rgba(0, 0, 0, .4);
}

.pv-card-l {
    font-size: 12.5px;
    font-weight: 600;
    white-space: nowrap;
    display: inline-flex;
    gap: 5px;
    align-items: center;
    text-shadow: 0 1px 3px rgba(0, 0, 0, .4);
}

.pv-chip {
    position: absolute;
    top: 8px;
    left: 8px;
    z-index: 2;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 6px;
    background: var(--paper);
    color: var(--ink);
    box-shadow: 0 1px 3px rgba(0, 0, 0, .18);
}

.pv-chip-pending {
    color: var(--warn);
}

.pv-chip-rejected {
    color: var(--danger);
}

.pv-empty {
    text-align: center;
    padding: 40px 20px;
    border: 1px dashed var(--line-2);
    border-radius: 16px;
}

.pv-empty-t {
    margin: 0 0 14px;
    font-size: 16px;
    font-weight: 700;
}

.pv-sentinel {
    height: 1px;
}

.pv-loading {
    display: flex;
    justify-content: center;
    padding: 24px 0;
}

.pv-spin {
    width: 22px;
    height: 22px;
    border: 2px solid var(--line-2);
    border-top-color: var(--ink);
    border-radius: 50%;
    animation: pvSpin .7s linear infinite;
    display: inline-block;
}

@keyframes pvSpin {
    to {
        transform: rotate(360deg);
    }
}

/* ---------- albums ---------- */
.pv-albums {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 18px var(--gap);
}

.pv-album {
    background: none;
    border: 0;
    padding: 0;
    text-align: left;
    cursor: pointer;
    display: block;
}

.pv-album-cover {
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 4/3;
    border-radius: var(--card-r);
    overflow: hidden;
    background: var(--soft-2);
    color: var(--ink-3);
    font-size: 28px;
}

.pv-album-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .35s;
}

.pv-album:hover .pv-album-cover img {
    transform: scale(1.04);
}

.pv-album-t {
    display: block;
    margin-top: 8px;
    font-weight: 700;
    font-size: 14px;
}

.pv-album-n {
    display: block;
    color: var(--ink-3);
    font-size: 12.5px;
}

/* ---------- certificates: every certificate at its own size (4x4, portrait, A4 landscape...), nothing cropped or boxed ---------- */
.pv-certs {
    column-width: 300px;
    column-gap: 16px;
}

.pv-cert {
    display: block;
    width: 100%;
    break-inside: avoid;
    margin: 0 0 16px;
    text-align: left;
    padding: 0;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 14px;
    overflow: hidden;
    cursor: pointer;
    transition: border-color .15s, box-shadow .2s, transform .2s;
}

.pv-cert:hover {
    border-color: var(--line-2);
    box-shadow: 0 14px 34px -18px rgba(18, 20, 23, .4);
    transform: translateY(-2px);
}

.pv-cert-img {
    display: block;
    background: var(--soft);
    line-height: 0;
}

.pv-cert-img img {
    display: block;
    width: 100%;
    height: auto;
}

.pv-cert-body {
    display: block;
    padding: 12px 14px 13px;
    border-top: 1px solid var(--line);
}

.pv-cert-type {
    display: block;
    font-weight: 800;
    font-size: 14px;
    line-height: 1.3;
}

.pv-cert-ev {
    display: block;
    color: var(--ink-2);
    font-size: 13px;
    margin-top: 2px;
}

.pv-cert-dt {
    display: block;
    color: var(--ink-3);
    font-size: 12px;
    margin-top: 3px;
}

.pv-more-wrap {
    text-align: center;
    margin-top: 20px;
}

/* ---------- stats ---------- */
.pv-st-h {
    margin: 0 0 10px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .09em;
    text-transform: uppercase;
    color: var(--ink-3);
}

.pv-st-sec+.pv-st-sec {
    margin-top: 26px;
}

.pv-statgrid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 12px;
    margin: 0;
}

.pv-statgrid>div {
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 15px 16px;
    display: flex;
    flex-direction: column-reverse;
    gap: 1px;
}

.pv-statgrid dd {
    margin: 0;
    font: 800 24px/1.15 var(--f);
    letter-spacing: -.02em;
}

.pv-statgrid dt {
    font-size: 12.5px;
    color: var(--ink-3);
    font-weight: 600;
}

.pv-st-two {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
    gap: 16px;
    align-items: start;
}

.pv-st-box {
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 16px 18px;
    min-width: 0;
}

.pv-months {
    display: flex;
    align-items: flex-end;
    gap: 6px;
    height: 120px;
}

.pv-months>div {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    height: 100%;
    min-width: 0;
}

.pv-months i {
    display: block;
    width: 100%;
    max-width: 26px;
    background: var(--accent);
    border-radius: 4px 4px 0 0;
    min-height: 2px;
}

.pv-months span {
    font-size: 10.5px;
    color: var(--ink-3);
    margin-top: 5px;
    white-space: nowrap;
}

.pv-months em {
    font-style: normal;
    font-size: 10.5px;
    color: var(--ink-2);
    font-weight: 700;
    margin-bottom: 3px;
}

.pv-cats {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 10px;
}

.pv-cats li {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 3px 10px;
    font-size: 13px;
}

.pv-cats li i {
    grid-column: 1 / -1;
    height: 5px;
    border-radius: 3px;
    background: var(--soft-2);
    position: relative;
    overflow: hidden;
}

.pv-cats li i::after {
    content: '';
    position: absolute;
    inset: 0;
    width: var(--w);
    background: var(--accent);
}

.pv-cats li span:last-child {
    color: var(--ink-3);
}

.pv-best {
    display: flex;
    gap: 12px;
    align-items: center;
    text-decoration: none;
}

.pv-best img {
    width: 92px;
    height: 68px;
    object-fit: cover;
    border-radius: 8px;
    background: var(--soft-2);
    flex: none;
}

.pv-best b {
    display: block;
    font-size: 14px;
}

.pv-best span {
    color: var(--ink-3);
    font-size: 12.5px;
}

.pv-progress {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 16px 28px;
}

.pv-prog-head {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    font-size: 13px;
    font-weight: 700;
}

.pv-prog-head span:last-child {
    color: var(--ink-3);
    font-weight: 500;
}

.pv-bar {
    height: 7px;
    border-radius: 99px;
    background: var(--soft-2);
    overflow: hidden;
    margin: 8px 0 6px;
}

.pv-bar i {
    display: block;
    height: 100%;
    background: var(--accent);
    border-radius: 99px;
}

.pv-bar.is-full i {
    background: #c8921c;
}

.pv-prog-foot {
    font-size: 12.5px;
    color: var(--ink-3);
}

/* =====================================================================
   windows — same look as the login and profile-setup windows
   ===================================================================== */
.pv-modal {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(16, 22, 34, .46);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    opacity: 0;
    transition: opacity .3s ease;
    font-family: var(--fm);
    -webkit-font-smoothing: antialiased;
}

.pv-modal.pv-in {
    opacity: 1;
}

.pv-modal :focus-visible {
    outline: 2px solid var(--mx);
    outline-offset: 2px;
}

.pv-sheet {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 480px;
    max-height: min(92vh, 780px);
    background: #fff;
    color: #121620;
    border-radius: 22px;
    overflow: hidden;
    outline: none;
    box-shadow: 0 0 0 1px rgba(18, 22, 32, .06), 0 1px 2px rgba(18, 22, 32, .04), 0 30px 70px -20px rgba(18, 28, 50, .4);
    transform: translateY(16px) scale(.985);
    opacity: 0;
    transition: transform .45s cubic-bezier(.2, .8, .2, 1), opacity .3s ease;
}

.pv-modal.pv-in .pv-sheet {
    transform: none;
    opacity: 1;
}

.pv-sheet-2 {
    display: grid;
    grid-template-columns: 300px minmax(0, 1fr);
    grid-template-rows: minmax(0, 1fr);
    max-width: 860px;
}

.pv-sheet-wide {
    max-width: 780px;
}

.pv-sheet-list {
    max-width: 440px;
    height: min(82vh, 640px);
}

.pv-sheet-cert {
    width: fit-content;
    min-width: min(94vw, 420px);
    max-width: min(96vw, 1040px);
}

.pv-x {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 5;
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 50%;
    background: #f1f4f9;
    color: #566072;
    display: grid;
    place-items: center;
    cursor: pointer;
    padding: 0;
    transition: background .15s, color .15s;
    -webkit-tap-highlight-color: transparent;
}

.pv-x:hover {
    background: #e6ebf3;
    color: #121620;
}

.pv-x svg {
    width: 15px;
    height: 15px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
}

/* photo panel (left) */
.pv-visual {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 26px;
    background: #dfe7f3;
    background-image: var(--vis, linear-gradient(160deg, #2855a0, #8fb0e8));
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
}

.pv-visual::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background: linear-gradient(180deg, rgba(10, 16, 30, .2) 0%, rgba(10, 16, 30, 0) 32%, rgba(10, 16, 30, .82) 100%);
}

.pv-vis-logo {
    position: relative;
    z-index: 2;
    display: block;
    height: 24px;
    width: auto;
    max-width: 150px;
    align-self: flex-start;
    box-sizing: content-box;
    background: #fff;
    padding: 7px 12px;
    border-radius: 999px;
    box-shadow: 0 2px 10px rgba(10, 16, 30, .2);
}

.pv-vis-who {
    position: relative;
    z-index: 2;
    color: #fff;
    text-shadow: 0 1px 8px rgba(10, 16, 30, .55);
    display: grid;
    gap: 2px;
    justify-items: start;
}

.pv-vis-who>img,
.pv-vis-who>.pv-avatar-empty {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #fff;
    margin-bottom: 8px;
    box-shadow: 0 6px 18px rgba(10, 16, 30, .35);
}

.pv-visual-about .pv-vis-who>img,
.pv-visual-about .pv-vis-who>.pv-avatar-empty {
    width: 76px;
    height: 76px;
}

.pv-vis-who b {
    font-size: 18px;
    font-weight: 800;
    letter-spacing: -.015em;
    line-height: 1.25;
    overflow-wrap: anywhere;
}

.pv-vis-who b .pv-ti {
    width: 16px;
    height: 16px;
    margin-left: 5px;
    vertical-align: -2px;
}

.pv-vis-who b .pv-nw {
    font: inherit;
    opacity: 1;
    letter-spacing: inherit;
}

.pv-vis-who span {
    font-size: 13.5px;
    font-weight: 600;
    opacity: .9;
}

.pv-vis-who .pv-ab-plan {
    margin-top: 9px;
    font-style: normal;
    font-size: 11.5px;
    font-weight: 800;
    letter-spacing: .05em;
    text-transform: uppercase;
    background: rgba(255, 255, 255, .18);
    border: 1px solid rgba(255, 255, 255, .45);
    border-radius: 999px;
    padding: 4px 11px;
    text-shadow: none;
    opacity: 1;
}

.pv-visual :focus-visible {
    outline-color: #fff;
}

/* body panel (right) */
.pv-body {
    position: relative;
    display: flex;
    min-height: 0;
    padding: 32px 40px;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
}

.pv-inner {
    width: 100%;
    max-width: 420px;
    margin: auto;
}

.pv-body .pv-sheet-t {
    padding-right: 36px;
    margin-bottom: 18px;
}

/* single-column windows */
.pv-sh {
    flex: none;
    padding: 26px 28px 14px;
}

.pv-sheet-t {
    margin: 0;
    padding-right: 40px;
    font: 800 24px/1.2 var(--fm);
    letter-spacing: -.025em;
    color: #0f1420;
}

.pv-subline {
    margin: 6px 0 0;
    padding: 0;
    font-size: 14px;
    line-height: 1.5;
    color: #566072;
}

.pv-sb {
    padding: 6px 28px 22px;
    overflow-y: auto;
    overscroll-behavior: contain;
    flex: 1 1 auto;
    min-height: 0;
    scrollbar-width: thin;
}

.pv-sb-flush {
    padding: 0;
}

.pv-pad {
    padding: 14px 28px 18px;
}

.pv-sf {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    flex-wrap: wrap;
    padding: 14px 28px;
    border-top: 1px solid #edf0f5;
    flex: none;
}

.pv-sf-btns {
    display: inline-flex;
    gap: 10px;
    margin-left: auto;
}

.pv-modal .pv-btn {
    height: 44px;
    border-radius: 12px;
    border: 1px solid #d9dfe9;
    font-weight: 700;
    font-size: 14px;
}

.pv-modal .pv-btn:hover {
    background: #f6f8fb;
    border-color: #c4ccda;
    transform: none;
}

.pv-modal .pv-btn-primary {
    background: var(--mx);
    border-color: var(--mx);
    color: #fff;
    box-shadow: 0 1px 0 rgba(255, 255, 255, .18) inset, 0 10px 22px -10px rgba(40, 85, 160, .7);
}

.pv-modal .pv-btn-primary:hover {
    background: #214a8f;
    border-color: #214a8f;
    filter: none;
    transform: translateY(-1px);
}

.pv-modal .pv-btn-danger {
    background: var(--danger);
    border-color: var(--danger);
    color: #fff;
}

.pv-modal .pv-btn-danger:hover {
    background: #a82b22;
    border-color: #a82b22;
}

.pv-modal .pv-btn-danger-o {
    color: var(--danger);
    border-color: #efc9c4;
}

.pv-modal .pv-btn-danger-o:hover {
    background: var(--danger-soft);
    border-color: var(--danger);
}

.pv-modal .pv-btn[disabled] {
    opacity: .6;
    transform: none;
}

.pv-flabel {
    display: block;
    margin: 0 0 6px;
    font-size: 12.5px;
    font-weight: 700;
    color: #121620;
}

.pv-input {
    display: block;
    width: 100%;
    border: 1px solid #d9dfe9;
    border-radius: 12px;
    padding: 12px 14px;
    font: 500 15px/1.45 var(--fm);
    background: #fff;
    color: #121620;
    resize: vertical;
    transition: border-color .15s, box-shadow .15s;
}

.pv-input::placeholder {
    color: #a0a9b8;
}

.pv-input:focus {
    outline: none;
    border-color: var(--mx);
    box-shadow: 0 0 0 3px rgba(40, 85, 160, .14);
}

input.pv-input {
    height: 44px;
    padding: 0 14px;
}

.pv-opt {
    text-transform: none;
    letter-spacing: 0;
    font-weight: 500;
    color: #7a8494;
    margin-left: 4px;
    font-size: 12px;
}

.pv-hp {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    opacity: 0;
}

.pv-form-msg {
    margin: 12px 0 0;
    padding: 10px 12px;
    border-radius: 10px;
    font-size: 13px;
    line-height: 1.45;
    background: #fdeeee;
    border: 1px solid #f4cfcf;
    color: #a13434;
}

.pv-form-msg.is-ok {
    background: var(--ok-soft);
    border-color: #bfe3cd;
    color: var(--ok);
}

.pv-mono {
    font-family: var(--mono);
    letter-spacing: .03em;
}

.pv-ic {
    flex: none;
    width: 36px;
    height: 36px;
    border: 0;
    background: none;
    border-radius: 10px;
    cursor: pointer;
    color: #566072;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.pv-ic:hover {
    background: #e6ebf3;
    color: #121620;
}

/* shared bits of the two-panel windows */
.pv-sheet-s {
    margin: -10px 0 16px;
    padding-right: 36px;
    font-size: 13.5px;
    line-height: 1.5;
    color: #566072;
}

.pv-btn-wide {
    width: 100%;
    margin-top: 12px;
}

.pv-btnrow {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 18px;
}

.pv-sheet-report .pv-reasons {
    margin: 0 -2px;
}

.pv-sheet-report .pv-check {
    padding: 12px 2px;
}

.pv-sheet-report .pv-check:first-of-type {
    border-top: 1px solid #edf0f5;
}

.pv-sheet-report .pv-btnrow .pv-btn {
    min-width: 112px;
}

/* share */
.pv-card-qr {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.pv-card-qr canvas {
    width: 196px;
    height: 196px;
    display: block;
    padding: 10px;
    border: 1px solid #e8ecf2;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 10px 26px -18px rgba(18, 28, 50, .4);
}

.pv-card-id {
    font-size: 12.5px;
    font-weight: 600;
    color: #566072;
}

.pv-links {
    list-style: none;
    margin: 18px 0 0;
    padding: 0;
    border-radius: 14px;
    background: #f6f8fb;
}

.pv-links li {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas: 'k ic' 'v ic';
    align-items: center;
    column-gap: 8px;
    padding: 9px 8px 9px 14px;
}

.pv-links li+li {
    border-top: 1px solid #e8ecf2;
}

.pv-links-k {
    grid-area: k;
    font-size: 11.5px;
    font-weight: 700;
    color: #7a8494;
}

.pv-links-v {
    grid-area: v;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.4;
    overflow-wrap: anywhere;
    word-break: break-all;
    white-space: normal;
    user-select: all;
}

.pv-links .pv-ic {
    grid-area: ic;
}

.pv-apps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(42px, 1fr));
    gap: 8px;
    margin-top: 14px;
}

.pv-apps a,
.pv-apps button {
    height: 44px;
    border: 1px solid #d9dfe9;
    border-radius: 12px;
    background: #fff;
    color: #566072;
    font-size: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    cursor: pointer;
    transition: .15s;
}

.pv-apps a:hover,
.pv-apps button:hover {
    border-color: #c4ccda;
    color: #121620;
    background: #f6f8fb;
    transform: translateY(-1px);
}

.pv-apps [data-app="wa"]:hover {
    color: #1aa84f;
}

.pv-apps [data-app="fb"]:hover {
    color: #1877f2;
}

.pv-apps [data-app="x"]:hover {
    color: #000;
}

.pv-apps [data-app="tg"]:hover {
    color: #229ed9;
}

.pv-apps [data-app="li"]:hover {
    color: #0a66c2;
}

/* about: plain photo for free members, indigo for Pro, black and gold for Max */
.pv-rows {
    list-style: none;
    margin: 0 0 4px;
    padding: 0;
}

.pv-rows li {
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 11px 0;
    border-top: 1px solid #edf0f5;
}

.pv-rows li:first-child {
    border-top: 0;
    padding-top: 0;
}

.pv-rows li>i {
    width: 18px;
    text-align: center;
    color: #7a8494;
    font-size: 15px;
    flex: none;
}

.pv-rows-k {
    flex: 1 1 auto;
    font-size: 14px;
    font-weight: 600;
}

.pv-rows-v {
    color: #566072;
    font-size: 13.5px;
    font-weight: 500;
    text-align: right;
    overflow-wrap: anywhere;
    max-width: 55%;
}

.pv-rows .pv-ic {
    margin: -6px -8px -6px 0;
}

.pv-ab-badges {
    padding: 14px 0 0;
    border-top: 1px solid #edf0f5;
}

.pv-ab-badges .pv-label {
    margin: 0 0 8px;
}

.pv-ab-badges>div {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.pv-sheet-about[data-tier="pro"] .pv-rows li>i {
    color: #5b4fe0;
}

.pv-sheet-about[data-tier="max"] .pv-rows li>i {
    color: #a87908;
}

.pv-sheet-about[data-tier="max"] .pv-vis-who .pv-ab-plan {
    color: #f3dc9c;
    border-color: rgba(233, 182, 22, .7);
    background: rgba(233, 182, 22, .14);
}

.pv-sheet-about[data-tier="pro"] .pv-vis-who .pv-ab-plan {
    border-color: rgba(190, 184, 255, .8);
    background: rgba(91, 79, 224, .35);
}

.pv-vis-who>.pv-avatar-empty {
    background: rgba(255, 255, 255, .2);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* report: one choice per line */
.pv-reasons {
    border: 0;
    padding: 0;
    margin: 0;
}

.pv-check {
    display: flex;
    gap: 12px;
    align-items: center;
    justify-content: space-between;
    padding: 13px 28px;
    border-top: 1px solid #edf0f5;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.3;
    transition: background .12s;
}

.pv-check:hover {
    background: #f6f8fb;
}

.pv-check:has(input:disabled) {
    opacity: .45;
    cursor: not-allowed;
}

.pv-check input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.pv-box {
    width: 20px;
    height: 20px;
    border: 1.5px solid #c4ccda;
    border-radius: 6px;
    flex: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    transition: .15s;
}

.pv-check input:checked+.pv-box {
    background: var(--mx);
    border-color: var(--mx);
}

.pv-check input:checked+.pv-box::after {
    content: '';
    width: 10px;
    height: 5px;
    border-left: 2px solid #fff;
    border-bottom: 2px solid #fff;
    transform: rotate(-45deg) translate(1px, -1px);
}

.pv-check input:focus-visible+.pv-box {
    outline: 2px solid var(--mx);
    outline-offset: 2px;
}

/* follower / following list */
.pv-sheet-list .pv-sb {
    padding: 0;
}

.pv-list {
    margin: 0;
}

.pv-cap {
    padding: 12px 28px 4px;
    font-size: 11.5px;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: #7a8494;
}

.pv-li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 9px 28px;
    transition: background .12s;
}

.pv-li:hover {
    background: #f6f8fb;
}

.pv-li a.pv-li-who {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    min-width: 0;
    text-decoration: none;
}

.pv-li img,
.pv-li .pv-li-ph {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    object-fit: cover;
    background: var(--soft-2);
    flex: none;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--ink-3);
    font-weight: 700;
}

.pv-li b {
    display: block;
    font-size: 14px;
    font-weight: 700;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.pv-li b .pv-ti {
    width: 13px;
    height: 13px;
    margin-left: 4px;
    vertical-align: -2px;
}

.pv-li span.pv-li-s {
    display: block;
    color: #7a8494;
    font-size: 12.5px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.pv-li .pv-btn {
    height: 34px;
    padding: 0 14px;
    font-size: 13px;
    border-radius: 10px;
}

.pv-list-note {
    margin: 0;
    padding: 14px 28px;
    font-size: 12.5px;
    color: #7a8494;
    border-bottom: 1px solid #edf0f5;
    background: #f6f8fb;
}

/* certificate window: opens at the size of the certificate */
.pv-sheet-cert .pv-sb {
    padding: 4px 28px 26px;
}

.pv-cert-view {
    text-align: center;
}

.pv-cert-view img {
    display: block;
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 68vh;
    margin: 0 auto 16px;
    border: 1px solid #e8ecf2;
    border-radius: 10px;
    box-shadow: 0 12px 34px -18px rgba(18, 28, 50, .4);
    background: #fff;
}

.pv-cert-view h3 {
    margin: 0;
    font-size: 17px;
    font-weight: 800;
    letter-spacing: -.01em;
}

.pv-cert-view p {
    margin: 4px 0 16px;
    color: #566072;
    font-size: 13.5px;
}

.pv-pick {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(118px, 1fr));
    gap: 8px;
}

.pv-pick-item {
    position: relative;
    border: 2px solid transparent;
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 1;
    padding: 0;
    background: var(--soft-2);
    cursor: pointer;
}

.pv-pick-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.pv-pick-item.is-on {
    border-color: var(--mx);
}

.pv-pick-item.is-on::after {
    content: '\2713';
    position: absolute;
    top: 6px;
    right: 6px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--mx);
    color: #fff;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ---------- photo viewer ---------- */
.pv-viewer {
    position: fixed;
    inset: 0;
    z-index: 2500;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 380px;
    background: #fff;
}

.pv-stage {
    position: relative;
    background: #121417;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    min-height: 0;
}

.pv-photo {
    position: absolute;
    inset: 0;
    margin: auto;
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    user-select: none;
}

.pv-photo.is-thumb {
    filter: blur(14px);
    transform: scale(1.02);
    width: 100%;
    height: 100%;
    opacity: .9;
}

.pv-photo.is-full {
    opacity: 0;
    transition: opacity .35s;
}

.pv-photo.is-full.is-in {
    opacity: 1;
}

.pv-stage.is-loaded .pv-photo.is-thumb {
    opacity: 0;
    transition: opacity .35s .1s;
}

.pv-stage-spin {
    position: absolute;
    left: 50%;
    top: 50%;
    translate: -50% -50%;
    pointer-events: none;
}

.pv-stage.is-loaded .pv-stage-spin {
    display: none;
}

.pv-stage .pv-spin {
    border-color: rgba(255, 255, 255, .3);
    border-top-color: #fff;
}

.pv-nav {
    position: absolute;
    top: 50%;
    translate: 0 -50%;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 0;
    background: rgba(255, 255, 255, .92);
    color: var(--ink);
    cursor: pointer;
    z-index: 3;
}

.pv-nav:hover {
    background: #fff;
}

.pv-prev {
    left: 14px;
}

.pv-next {
    right: 14px;
}

.pv-nav[disabled] {
    display: none;
}

.pv-vclose {
    position: absolute;
    top: 12px;
    left: 12px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 0;
    background: rgba(255, 255, 255, .92);
    cursor: pointer;
    z-index: 3;
}

.pv-info {
    overflow-y: auto;
    padding: 24px 24px 32px;
    border-left: 1px solid var(--line);
}

.pv-i-by {
    display: flex;
    align-items: center;
    gap: 11px;
    text-decoration: none;
    margin-bottom: 16px;
}

.pv-i-by img,
.pv-i-by .pv-avatar-empty {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    flex: none;
}

.pv-i-by b {
    display: block;
    font-size: 14px;
}

.pv-i-by span {
    font-size: 12.5px;
    color: var(--ink-3);
}

.pv-i-title {
    margin: 0 0 4px;
    font: 800 21px/1.25 var(--f);
    letter-spacing: -.015em;
    overflow-wrap: anywhere;
}

.pv-i-date {
    color: var(--ink-3);
    font-size: 13px;
    margin: 0 0 14px;
}

.pv-i-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 18px;
}

.pv-i-actions .pv-btn,
.pv-owner-bar .pv-btn {
    height: 38px;
}

.pv-like.is-on {
    color: var(--danger);
    border-color: #efc9c4;
    background: var(--danger-soft);
}

.pv-i-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    margin-bottom: 18px;
}

.pv-i-stats div {
    padding: 11px 0 10px 14px;
    border-left: 1px solid var(--line);
    display: flex;
    flex-direction: column-reverse;
}

.pv-i-stats div:first-child {
    border-left: 0;
    padding-left: 0;
}

.pv-i-stats b {
    font-size: 17px;
}

.pv-i-stats span {
    font-size: 11.5px;
    color: var(--ink-3);
}

.pv-i-sec {
    margin-bottom: 18px;
}

.pv-i-sec p {
    margin: 0;
    color: var(--ink-2);
    font-size: 14px;
    line-height: 1.6;
    overflow-wrap: anywhere;
}

.pv-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.pv-chips span {
    font-size: 12.5px;
    font-weight: 600;
    color: var(--ink-2);
    background: var(--soft);
    border-radius: 999px;
    padding: 3px 11px;
}

.pv-kv {
    margin: 0;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 5px 18px;
    font-size: 13.5px;
}

.pv-kv dt {
    color: var(--ink-3);
}

.pv-kv dd {
    margin: 0;
    font-weight: 600;
    overflow-wrap: anywhere;
}

.pv-status {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 6px;
    margin-bottom: 12px;
}

.pv-status.pending {
    background: var(--warn-soft);
    color: var(--warn);
}

.pv-status.rejected {
    background: var(--danger-soft);
    color: var(--danger);
}

.pv-status.approved {
    background: var(--ok-soft);
    color: var(--ok);
}

.pv-reject {
    border-left: 3px solid var(--danger);
    background: var(--danger-soft);
    border-radius: 0 10px 10px 0;
    padding: 11px 13px;
    font-size: 13.5px;
    margin-bottom: 14px;
    overflow-wrap: anywhere;
}

.pv-reject small {
    display: block;
    margin-top: 7px;
    color: var(--ink-3);
    font-size: 12px;
}

.pv-owner-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
    padding-top: 16px;
    border-top: 1px solid var(--line);
}

/* ---------- toasts ---------- */
.pv-toasts {
    position: fixed;
    bottom: 22px;
    left: 50%;
    translate: -50% 0;
    z-index: 4000;
    display: grid;
    gap: 8px;
    justify-items: center;
    font-family: var(--fm);
}

.pv-toast {
    background: #121620;
    color: #fff;
    font-size: 13.5px;
    font-weight: 600;
    padding: 11px 18px;
    border-radius: 12px;
    animation: pvRise .25s;
    max-width: 90vw;
    box-shadow: 0 14px 34px -12px rgba(18, 22, 32, .5);
}

.pv-toast.is-err {
    background: var(--danger);
}

.pv-toast.has-act {
    display: flex;
    align-items: center;
    gap: 14px;
}

.pv-toast-act {
    background: none;
    border: 0;
    padding: 0;
    margin: 0;
    font: inherit;
    font-weight: 700;
    color: #fff;
    text-decoration: underline;
    text-underline-offset: 3px;
    cursor: pointer;
}

.pv-toast-act:hover {
    text-decoration-thickness: 2px;
}

.pv-toast-act:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 3px;
    border-radius: 2px;
}

/* ---------- contact button injected by contact-nudge.js: same look as ours ---------- */
.pv-actions> :not(.pv-btn):not(.pv-more):is(a, button) {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 40px !important;
    padding: 0 16px !important;
    margin: 0 !important;
    border-radius: 12px !important;
    border: 1px solid var(--line-2) !important;
    background: #fff !important;
    color: var(--ink) !important;
    font: 700 14px/1 var(--f) !important;
    box-shadow: none !important;
    text-decoration: none;
    cursor: pointer;
    white-space: nowrap;
    width: auto !important;
    min-width: 0 !important;
}

.pv-actions> :not(.pv-btn):not(.pv-more):is(a, button):hover {
    background: var(--soft) !important;
    border-color: #c1c6cf !important;
}

.pv-actions> :not(.pv-btn):not(.pv-more) i,
.pv-actions> :not(.pv-btn):not(.pv-more) svg {
    font-size: 14px;
    width: auto;
    height: 1em;
    color: inherit !important;
}

/* ---------- the page narrows ---------- */
@container pv (max-width: 1199px) {
    .pv-top {
        --av: 132px;
    }

    .pv-layout {
        --side: 280px;
        gap: 28px;
    }
}

@container pv (max-width: 979px) {
    .pv-layout {
        grid-template-columns: minmax(0, 1fr);
        gap: 20px;
        margin-top: 22px;
    }

    .pv-side {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        padding: 0;
    }

    .pv-bio {
        max-width: 72ch;
    }

    .pv-facts {
        display: flex;
        flex-wrap: wrap;
        gap: 6px 20px;
    }

    .pv-cta {
        max-width: 320px;
    }

    .pv-st-two {
        grid-template-columns: minmax(0, 1fr);
    }

    .pv-top {
        grid-template-columns: auto minmax(0, 1fr);
        grid-template-areas: 'av act' 'id id';
        column-gap: 14px;
    }

    .pv-actions {
        padding-top: 14px;
        align-self: start;
    }

    .pv-idtext {
        padding-top: 14px;
    }
}

/* phone, or a very narrow window */
@container pv (max-width: 640px) {
    .pv-top {
        --av: 96px;
    }

    .pv-in,
    .pv-banner {
        --inset: 14px;
    }

    .pv-banner {
        --banner-max: 200px;
        aspect-ratio: 2.7 / 1;
        min-height: 104px;
    }

    .pv-avatar {
        border-width: 4px;
    }

    .pv-avatar-empty {
        font-size: 38px;
    }

    .pv-edit-avatar {
        width: 28px;
        height: 28px;
        font-size: 11px;
    }

    .pv-edit-banner span {
        display: none;
    }

    .pv-edit-banner {
        width: 34px;
        height: 34px;
        padding: 0;
        justify-content: center;
        right: 12px;
        bottom: 10px;
    }

    .pv-name {
        --name-size: 30px;
    }

    .pv-handle {
        font-size: 14px;
    }

    .pv-headline {
        font-size: 15px;
    }

    .pv-btn {
        height: 40px;
        padding: 0 16px;
    }

    .pv-follow {
        min-width: 104px;
    }

    .pv-stats {
        gap: 4px 20px;
        margin-top: 14px;
    }

    .pv-stat-n {
        font-size: 17px;
    }

    .pv-stat-l {
        font-size: 13.5px;
    }

    .pv-ach {
        margin-top: 22px;
        padding-top: 16px;
    }

    .pv-ach-grid {
        flex-wrap: nowrap;
        overflow-x: auto;
        scroll-snap-type: x proximity;
        scrollbar-width: none;
        margin-right: calc(var(--inset) * -1);
        padding-right: var(--inset);
    }

    .pv-ach-grid::-webkit-scrollbar {
        display: none;
    }

    .pv-ach-grid .pzb {
        scroll-snap-align: start;
    }

    .pv-layout {
        gap: 22px;
        padding-top: 20px;
    }

    .pv-feat-grid {
        gap: 5px;
    }

    .pv-tabs {
        gap: 22px;
    }

    .pv-albums {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 12px 6px;
    }

    .pv-certs {
        column-width: 220px;
        column-gap: 10px;
    }

    .pv-cert {
        margin-bottom: 10px;
    }

    .pv-card-meta {
        display: none;
    }

    .pv-card::after {
        display: none;
    }

    .pv-sg {
        flex-basis: 156px;
    }

    .pv-sg-skel {
        flex-basis: 156px;
    }

    .pv-cols,
    .pv-col {
        gap: min(var(--gap), 5px);
    }

    .pv-tools {
        margin-bottom: 10px;
    }

    .pv-filter button {
        padding: 6px 10px;
        font-size: 12.5px;
    }
}

/* very small phones: the buttons get their own row under the photo */
@container pv (max-width: 400px) {
    .pv-top {
        grid-template-columns: minmax(0, 1fr);
        grid-template-areas: 'av' 'id' 'act';
        row-gap: 0;
    }

    .pv-actions {
        justify-content: stretch;
        padding-top: 14px;
        flex-wrap: nowrap;
    }

    .pv-actions .pv-follow,
    .pv-actions>a.pv-btn-primary {
        flex: 1 1 auto;
    }

    .pv-actions .pv-btn-icon {
        flex: none;
    }

    .pv-idtext {
        padding-top: 10px;
    }
}

/* windows and the photo window follow the screen, not the page */
@media (max-width: 1000px) {
    .pv-viewer {
        grid-template-columns: 1fr;
        grid-template-rows: minmax(38vh, 52vh) minmax(0, 1fr);
    }

    .pv-info {
        border-left: 0;
        border-top: 1px solid var(--line);
    }
}

@media (min-width: 861px) and (max-height: 720px) {
    .pv-body {
        padding: 22px 40px;
    }

    .pv-card-qr canvas {
        width: 168px;
        height: 168px;
    }
}

@media (max-width: 860px) {
    .pv-sheet-2 {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
        max-width: 480px;
        overflow-y: auto;
        overscroll-behavior: contain;
    }

    .pv-visual {
        min-height: 84px;
        padding: 16px 20px;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
    }

    .pv-vis-who {
        display: none;
    }

    .pv-visual-about .pv-vis-who {
        display: flex;
        align-items: center;
        gap: 10px;
        min-width: 0;
        justify-items: initial;
    }

    .pv-visual-about .pv-vis-who>img,
    .pv-visual-about .pv-vis-who>.pv-avatar-empty {
        width: 44px;
        height: 44px;
        margin: 0;
        border-width: 2px;
        font-size: 18px;
    }

    .pv-visual-about .pv-vis-who b {
        font-size: 14px;
        max-width: 150px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .pv-visual-about .pv-vis-who span,
    .pv-visual-about .pv-vis-who .pv-ab-plan {
        display: none;
    }

    .pv-body {
        padding: 22px 22px calc(18px + env(safe-area-inset-bottom));
        overflow: visible;
    }

    .pv-body .pv-sheet-t {
        margin-bottom: 14px;
    }

    .pv-input {
        font-size: 16px;
    }
}

@media (max-width: 560px) {
    .pv-modal {
        align-items: flex-end;
        padding: 0;
    }

    .pv-sheet,
    .pv-sheet-2 {
        max-width: none;
        max-height: 94vh;
        max-height: 94dvh;
        border-radius: 22px 22px 0 0;
        transform: translateY(100%);
    }

    .pv-sheet-cert {
        width: 100%;
        max-width: none;
        min-width: 0;
    }

    .pv-sheet-list {
        height: 88vh;
        height: 88dvh;
    }

    .pv-sheet::before {
        content: '';
        position: absolute;
        top: 7px;
        left: 50%;
        width: 38px;
        height: 4px;
        margin-left: -19px;
        border-radius: 2px;
        background: rgba(120, 128, 140, .4);
        z-index: 6;
        pointer-events: none;
    }

    .pv-sheet-2::before {
        background: rgba(255, 255, 255, .7);
    }

    .pv-visual {
        min-height: 68px;
        padding: 14px 20px;
    }

    .pv-sheet-t {
        font-size: 21px;
    }

    .pv-sh {
        padding: 24px 20px 12px;
    }

    .pv-sb {
        padding: 4px 20px calc(20px + env(safe-area-inset-bottom));
    }

    .pv-sb-flush {
        padding: 0 0 env(safe-area-inset-bottom);
    }

    .pv-pad {
        padding: 14px 20px 18px;
    }

    .pv-check {
        padding: 14px 20px;
    }

    .pv-sf {
        padding: 12px 20px calc(14px + env(safe-area-inset-bottom));
    }

    .pv-sf .pv-btn {
        flex: 1 1 0;
    }

    .pv-li {
        padding: 9px 20px;
    }

    .pv-cap,
    .pv-list-note {
        padding-left: 20px;
        padding-right: 20px;
    }

    .pv-card-qr canvas {
        width: 176px;
        height: 176px;
    }

    .pv-sheet-cert .pv-sb {
        padding: 4px 16px calc(20px + env(safe-area-inset-bottom));
    }

    .pv-cert-view img {
        max-height: 60vh;
    }

    .pv-toasts {
        bottom: calc(18px + env(safe-area-inset-bottom));
    }
}

@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: .001ms !important;
        transition-duration: .001ms !important;
    }
}