/* V3.7M.15/V3.7M.17 — mobile/tablet profile geometry polish.
   Desktop presentation is intentionally untouched.
   Activated only inside the existing touch-first mobile runtime (<=1366px). */
@media (max-width:1366px){
  html.zg-mobile-ui .profile-page:not(.profile-instant-page) .profile-hero{
    display:grid!important;
    grid-template-columns:minmax(0,.88fr) minmax(0,1.12fr)!important;
    grid-template-areas:
      "main main"
      "community portrait"
      "rank portrait"
      "side side"
      "logout logout"!important;
    align-items:stretch!important;
    gap:9px!important;
    padding:12px!important;
    border-radius:18px!important;
  }

  /* Let the existing portrait/community children participate directly in the
     phone grid. No DOM or desktop structure changes are required. */
  html.zg-mobile-ui .profile-page:not(.profile-instant-page) .profile-identity-visuals{
    display:contents!important;
  }

  html.zg-mobile-ui .profile-page:not(.profile-instant-page) .profile-main{
    grid-area:main!important;
    min-width:0!important;
    width:100%!important;
    padding:0!important;
    text-align:center!important;
  }

  /* Compress the oversized account controls seen at the top of the phone view. */
  html.zg-mobile-ui .profile-page:not(.profile-instant-page) .profile-main-toolbar{
    justify-content:center!important;
    margin:0 0 6px!important;
  }

  html.zg-mobile-ui .profile-page:not(.profile-instant-page) .profile-preview-btn{
    width:auto!important;
    min-height:38px!important;
    padding:5px 9px!important;
    gap:7px!important;
    border-radius:11px!important;
    margin-inline:auto!important;
  }

  html.zg-mobile-ui .profile-page:not(.profile-instant-page) .profile-preview-eye{
    width:28px!important;
    height:28px!important;
    border-radius:8px!important;
    font-size:13px!important;
  }

  html.zg-mobile-ui .profile-page:not(.profile-instant-page) .profile-preview-btn b{
    font-size:8.5px!important;
  }

  html.zg-mobile-ui .profile-page:not(.profile-instant-page) .profile-preview-btn small{
    font-size:6.5px!important;
  }

  html.zg-mobile-ui .profile-page:not(.profile-instant-page) .profile-badges{
    justify-content:center!important;
    gap:5px!important;
    margin:4px 0 6px!important;
  }

  html.zg-mobile-ui .profile-page:not(.profile-instant-page) .profile-badge,
  html.zg-mobile-ui .profile-page:not(.profile-instant-page) .subscriber-badge-button{
    min-height:28px!important;
    padding:4px 7px!important;
    gap:4px!important;
    font-size:7.5px!important;
    line-height:1.1!important;
  }

  html.zg-mobile-ui .profile-page:not(.profile-instant-page) .profile-main>.eyebrow{
    margin-top:2px!important;
    font-size:8px!important;
    letter-spacing:.16em!important;
  }

  html.zg-mobile-ui .profile-page:not(.profile-instant-page) .profile-main h1{
    margin:3px 0 7px!important;
    font-size:clamp(24px,7vw,30px)!important;
    line-height:1.05!important;
  }

  html.zg-mobile-ui .profile-page:not(.profile-instant-page) .member-id-card{
    width:min(100%,390px)!important;
    margin:6px auto 7px!important;
    padding:9px 10px!important;
    min-height:62px!important;
    display:grid!important;
    grid-template-columns:minmax(0,1fr) auto!important;
    grid-template-areas:
      "label copy"
      "id copy"!important;
    align-items:center!important;
    gap:3px 8px!important;
    border-radius:13px!important;
    text-align:start!important;
  }

  html.zg-mobile-ui .profile-page:not(.profile-instant-page) .member-id-card small{
    grid-area:label!important;
    font-size:7px!important;
    letter-spacing:.11em!important;
  }

  html.zg-mobile-ui .profile-page:not(.profile-instant-page) .member-id-card strong{
    grid-area:id!important;
    min-width:0!important;
    font-size:clamp(19px,6.2vw,24px)!important;
    line-height:1!important;
    letter-spacing:.045em!important;
    overflow:hidden!important;
    text-overflow:ellipsis!important;
  }

  html.zg-mobile-ui .profile-page:not(.profile-instant-page) .member-id-card .copy-id-btn{
    grid-area:copy!important;
    min-height:36px!important;
    padding:6px 9px!important;
    font-size:8px!important;
    border-radius:10px!important;
  }

  html.zg-mobile-ui .profile-page:not(.profile-instant-page) .profile-meta{
    justify-content:center!important;
    gap:4px!important;
  }

  html.zg-mobile-ui .profile-page:not(.profile-instant-page) .profile-meta span{
    padding:4px 6px!important;
    font-size:7.5px!important;
  }

  /* Portrait remains the visual anchor. Community logo and membership/rank
     become two balanced companion cards whose combined height follows it. */
  html.zg-mobile-ui .profile-page:not(.profile-instant-page) .profile-portrait-card{
    grid-area:portrait!important;
    width:100%!important;
    min-width:0!important;
    max-width:none!important;
    align-self:stretch!important;
    margin:0!important;
    padding:6px!important;
    border-radius:17px!important;
    box-sizing:border-box!important;
  }

  html.zg-mobile-ui .profile-page:not(.profile-instant-page) .profile-portrait-frame{
    border-radius:13px!important;
  }

  html.zg-mobile-ui .profile-page:not(.profile-instant-page) .profile-portrait-actions{
    gap:4px!important;
    margin-top:5px!important;
  }

  html.zg-mobile-ui .profile-page:not(.profile-instant-page) .profile-portrait-upload,
  html.zg-mobile-ui .profile-page:not(.profile-instant-page) .profile-portrait-remove{
    min-height:29px!important;
    padding:0 6px!important;
    font-size:7.5px!important;
    border-radius:8px!important;
  }

  html.zg-mobile-ui .profile-page:not(.profile-instant-page) .profile-portrait-msg{
    min-height:11px!important;
    margin-top:4px!important;
    font-size:6.2px!important;
  }

  html.zg-mobile-ui .profile-page:not(.profile-instant-page) .profile-identity-visuals>.profile-community-avatar-wrap{
    grid-area:community!important;
    width:100%!important;
    min-width:0!important;
    height:100%!important;
    min-height:112px!important;
    margin:0!important;
    padding:8px 7px!important;
    gap:5px!important;
    border-radius:15px!important;
    box-sizing:border-box!important;
    justify-content:center!important;
  }

  html.zg-mobile-ui .profile-page:not(.profile-instant-page) .profile-community-avatar-wrap .profile-avatar{
    width:50px!important;
    height:50px!important;
    border-radius:15px!important;
    border-width:2px!important;
    font-size:15px!important;
  }

  html.zg-mobile-ui .profile-page:not(.profile-instant-page) .profile-community-avatar-wrap .avatar-upload-btn{
    width:100%!important;
    min-height:31px!important;
    padding:5px 6px!important;
    font-size:7.4px!important;
    line-height:1.25!important;
    border-radius:9px!important;
  }

  html.zg-mobile-ui .profile-page:not(.profile-instant-page) .profile-community-avatar-wrap .avatar-upload-note{
    max-width:100%!important;
    font-size:6.3px!important;
    line-height:1.4!important;
  }

  html.zg-mobile-ui .profile-page:not(.profile-instant-page) .profile-rank-spotlight{
    grid-area:rank!important;
    width:100%!important;
    min-width:0!important;
    min-height:112px!important;
    height:100%!important;
    margin:0!important;
    padding:8px 7px!important;
    align-self:stretch!important;
    justify-self:stretch!important;
    border-radius:15px!important;
    box-sizing:border-box!important;
  }

  html.zg-mobile-ui .profile-page:not(.profile-instant-page) .profile-rank-kicker{
    margin-bottom:2px!important;
    font-size:6.7px!important;
  }

  html.zg-mobile-ui .profile-page:not(.profile-instant-page) .profile-rank-spotlight .rank-showcase{
    padding:4px!important;
    margin:0!important;
  }

  html.zg-mobile-ui .profile-page:not(.profile-instant-page) .profile-rank-spotlight .rank-showcase>b{
    font-size:24px!important;
  }

  html.zg-mobile-ui .profile-page:not(.profile-instant-page) .profile-rank-spotlight .rank-showcase strong{
    margin-top:1px!important;
    font-size:11.5px!important;
    line-height:1.2!important;
  }

  html.zg-mobile-ui .profile-page:not(.profile-instant-page) .profile-rank-spotlight .rank-showcase span{
    margin-top:1px!important;
    font-size:7px!important;
  }

  html.zg-mobile-ui .profile-page:not(.profile-instant-page) .profile-rank-spotlight .rank-showcase.is-zg-elite>b,
  html.zg-mobile-ui .profile-page:not(.profile-instant-page) .profile-rank-spotlight .rank-showcase.is-zg-elite .zg-elite-rank-emblem{
    width:44px!important;
    height:41px!important;
  }

  /* Balanced lower hero geometry:
     top row = compact stats + larger achievements card
     bottom row = profile completion + featured achievements. */
  html.zg-mobile-ui .profile-page:not(.profile-instant-page) .profile-hero-side{
    grid-area:side!important;
    min-width:0!important;
    width:100%!important;
    max-width:none!important;
    margin:0!important;
    display:grid!important;
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    grid-template-areas:
      "stats achievements"
      "completion featured"!important;
    gap:8px!important;
    align-items:stretch!important;
  }

  html.zg-mobile-ui .profile-page:not(.profile-instant-page) .profile-hero-kpis{
    grid-area:stats!important;
    width:100%!important;
    margin:0!important;
    display:grid!important;
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:5px!important;
  }

  html.zg-mobile-ui .profile-page:not(.profile-instant-page) .profile-hero-kpis article{
    min-height:64px!important;
    padding:7px 6px!important;
    border-radius:11px!important;
    display:flex!important;
    flex-direction:column!important;
    justify-content:center!important;
  }

  html.zg-mobile-ui .profile-page:not(.profile-instant-page) .profile-hero-kpis article::before{
    margin-bottom:3px!important;
    font-size:9px!important;
  }

  html.zg-mobile-ui .profile-page:not(.profile-instant-page) .profile-hero-kpis b{
    font-size:18px!important;
    line-height:1!important;
  }

  html.zg-mobile-ui .profile-page:not(.profile-instant-page) .profile-hero-kpis span{
    margin-top:4px!important;
    font-size:7.2px!important;
    line-height:1.3!important;
  }

  html.zg-mobile-ui .profile-page:not(.profile-instant-page) .profile-hero-achievements-btn{
    grid-area:achievements!important;
    width:100%!important;
    min-height:133px!important;
    height:100%!important;
    padding:10px!important;
    display:grid!important;
    grid-template-columns:1fr!important;
    grid-template-rows:auto auto auto!important;
    place-items:center!important;
    align-content:center!important;
    gap:6px!important;
    border-radius:14px!important;
    text-align:center!important;
  }

  html.zg-mobile-ui .profile-page:not(.profile-instant-page) .profile-achievements-trophy{
    width:42px!important;
    height:42px!important;
    border-radius:12px!important;
    font-size:19px!important;
  }

  html.zg-mobile-ui .profile-page:not(.profile-instant-page) .profile-achievements-label{
    font-size:11px!important;
    line-height:1.3!important;
  }

  html.zg-mobile-ui .profile-page:not(.profile-instant-page) .profile-achievements-count{
    width:34px!important;
    height:34px!important;
    border-radius:10px!important;
    font-size:13px!important;
  }

  html.zg-mobile-ui .profile-page:not(.profile-instant-page) .profile-v31-completion{
    grid-area:completion!important;
    width:100%!important;
    min-width:0!important;
    min-height:128px!important;
    height:100%!important;
    margin:0!important;
    padding:10px!important;
    border-radius:14px!important;
    box-sizing:border-box!important;
  }

  html.zg-mobile-ui .profile-page:not(.profile-instant-page) .profile-v31-completion-head{
    gap:6px!important;
    font-size:8.5px!important;
  }

  html.zg-mobile-ui .profile-page:not(.profile-instant-page) .profile-v31-completion-head b{
    font-size:11px!important;
  }

  html.zg-mobile-ui .profile-page:not(.profile-instant-page) .profile-v31-progress{
    margin:7px 0!important;
  }

  html.zg-mobile-ui .profile-page:not(.profile-instant-page) .profile-v31-completion-chips{
    gap:5px 6px!important;
  }

  html.zg-mobile-ui .profile-page:not(.profile-instant-page) .profile-v31-completion-chips span{
    font-size:7.2px!important;
    line-height:1.35!important;
  }

  html.zg-mobile-ui .profile-page:not(.profile-instant-page) .profile-v31-featured-side{
    grid-area:featured!important;
    width:100%!important;
    min-width:0!important;
    min-height:128px!important;
    height:100%!important;
    margin:0!important;
    padding:10px!important;
    border-radius:14px!important;
    box-sizing:border-box!important;
  }

  html.zg-mobile-ui .profile-page:not(.profile-instant-page) .profile-v31-featured-head{
    gap:6px!important;
  }

  html.zg-mobile-ui .profile-page:not(.profile-instant-page) .profile-v31-featured-head small{
    font-size:7.4px!important;
  }

  html.zg-mobile-ui .profile-page:not(.profile-instant-page) .profile-v31-featured-head span{
    font-size:7px!important;
    line-height:1.35!important;
  }

  html.zg-mobile-ui .profile-page:not(.profile-instant-page) .profile-v31-featured-grid{
    margin-top:6px!important;
    gap:5px!important;
  }

  html.zg-mobile-ui .profile-page:not(.profile-instant-page) .profile-hero-side .profile-v31-feature-card{
    min-height:42px!important;
    grid-template-columns:30px minmax(0,1fr)!important;
    gap:6px!important;
    padding:6px!important;
  }

  html.zg-mobile-ui .profile-page:not(.profile-instant-page) .profile-hero-side .profile-v31-feature-icon{
    width:28px!important;
    height:28px!important;
    font-size:13px!important;
  }

  html.zg-mobile-ui .profile-page:not(.profile-instant-page) .profile-v31-feature-empty{
    min-height:70px!important;
    padding:7px!important;
  }

  html.zg-mobile-ui .profile-page:not(.profile-instant-page) #profileLogout.profile-logout-corner{
    grid-area:logout!important;
    position:static!important;
    justify-self:center!important;
    align-self:center!important;
    width:auto!important;
    min-width:142px!important;
    min-height:39px!important;
    margin:1px 0 0!important;
    padding:7px 16px!important;
    font-size:10.5px!important;
    border-radius:12px!important;
  }
}

/* Very narrow phones keep the same geometry but trim internal text density. */
@media (max-width:390px){
  html.zg-mobile-ui .profile-page:not(.profile-instant-page) .profile-hero{
    grid-template-columns:minmax(0,.86fr) minmax(0,1.14fr)!important;
    gap:7px!important;
    padding:10px!important;
  }

  html.zg-mobile-ui .profile-page:not(.profile-instant-page) .profile-community-avatar-wrap .avatar-upload-note{
    display:none!important;
  }

  html.zg-mobile-ui .profile-page:not(.profile-instant-page) .profile-rank-spotlight .rank-showcase strong{
    font-size:10.5px!important;
  }

  html.zg-mobile-ui .profile-page:not(.profile-instant-page) .profile-hero-side{
    gap:6px!important;
  }
}


/* V3.7M.16/V3.7M.17 — compact mobile/tablet profile header.
   Touch mobile/tablet only: remove duplicated status badges from the hero, lift preview/logout
   into a slim control row, center identity, and keep the bio content-sized.
   Portrait/community/rank geometry below is intentionally unchanged. */
@media (max-width:1366px){
  html.zg-mobile-ui .profile-page:not(.profile-instant-page) .profile-hero{
    position:relative!important;
    grid-template-areas:
      "main main"
      "community portrait"
      "rank portrait"
      "side side"!important;
    padding-top:56px!important;
  }

  /* These four-or-more status badges repeat information available elsewhere
     in the profile. Hide only the hero badge strip on phones. */
  html.zg-mobile-ui .profile-page:not(.profile-instant-page) .profile-main>.profile-badges{
    display:none!important;
  }

  /* Physical placement is deliberate in both RTL/LTR: preview right, logout left. */
  html.zg-mobile-ui .profile-page:not(.profile-instant-page) .profile-main-toolbar{
    position:absolute!important;
    top:11px!important;
    right:12px!important;
    left:auto!important;
    width:auto!important;
    margin:0!important;
    padding:0!important;
    justify-content:flex-start!important;
    z-index:9!important;
  }

  html.zg-mobile-ui .profile-page:not(.profile-instant-page) .profile-preview-btn{
    width:auto!important;
    min-width:0!important;
    min-height:31px!important;
    margin:0!important;
    padding:3px 7px!important;
    gap:5px!important;
    border-radius:9px!important;
    background:rgba(255,255,255,.014)!important;
  }

  html.zg-mobile-ui .profile-page:not(.profile-instant-page) .profile-preview-eye{
    width:23px!important;
    height:23px!important;
    border-radius:7px!important;
    font-size:11px!important;
  }

  html.zg-mobile-ui .profile-page:not(.profile-instant-page) .profile-preview-btn b{
    font-size:7.6px!important;
    line-height:1.15!important;
  }

  html.zg-mobile-ui .profile-page:not(.profile-instant-page) .profile-preview-btn small{
    display:none!important;
  }

  html.zg-mobile-ui .profile-page:not(.profile-instant-page) #profileLogout.profile-logout-corner{
    position:absolute!important;
    top:11px!important;
    left:12px!important;
    right:auto!important;
    z-index:9!important;
    grid-area:auto!important;
    width:auto!important;
    min-width:0!important;
    min-height:31px!important;
    margin:0!important;
    padding:4px 9px!important;
    border-radius:9px!important;
    font-size:8px!important;
    line-height:1.1!important;
  }

  html.zg-mobile-ui .profile-page:not(.profile-instant-page) .profile-main{
    padding:0!important;
    text-align:center!important;
  }

  html.zg-mobile-ui .profile-page:not(.profile-instant-page) .profile-main>.eyebrow{
    display:none!important;
  }

  html.zg-mobile-ui .profile-page:not(.profile-instant-page) .profile-main h1{
    margin:0 0 8px!important;
    font-size:clamp(27px,8vw,33px)!important;
    line-height:1!important;
    text-align:center!important;
  }

  /* One slim identity row: label -> public ID -> copy, respecting page direction. */
  html.zg-mobile-ui .profile-page:not(.profile-instant-page) .member-id-card{
    width:min(100%,430px)!important;
    min-height:48px!important;
    margin:0 auto 7px!important;
    padding:7px 9px!important;
    display:flex!important;
    flex-wrap:nowrap!important;
    align-items:center!important;
    justify-content:center!important;
    gap:7px!important;
    border-radius:12px!important;
    text-align:start!important;
  }

  html.zg-mobile-ui .profile-page:not(.profile-instant-page) .member-id-card small{
    flex:0 0 auto!important;
    font-size:6.4px!important;
    letter-spacing:.08em!important;
    white-space:nowrap!important;
  }

  html.zg-mobile-ui .profile-page:not(.profile-instant-page) .member-id-card strong{
    flex:1 1 auto!important;
    min-width:0!important;
    font-size:clamp(17px,5.7vw,22px)!important;
    line-height:1!important;
    letter-spacing:.035em!important;
    white-space:nowrap!important;
    overflow:hidden!important;
    text-overflow:ellipsis!important;
  }

  html.zg-mobile-ui .profile-page:not(.profile-instant-page) .member-id-card .copy-id-btn{
    flex:0 0 auto!important;
    min-height:31px!important;
    padding:5px 8px!important;
    border-radius:9px!important;
    font-size:7.4px!important;
    white-space:nowrap!important;
  }

  html.zg-mobile-ui .profile-page:not(.profile-instant-page) .profile-meta{
    margin:0!important;
    justify-content:center!important;
    gap:4px!important;
  }

  html.zg-mobile-ui .profile-page:not(.profile-instant-page) .profile-meta span{
    padding:3px 6px!important;
    font-size:7px!important;
    line-height:1.2!important;
  }

  /* Bio is intentionally compact, especially before the member writes one. */
  html.zg-mobile-ui .profile-page:not(.profile-instant-page) .profile-v31-identity{
    width:100%!important;
    margin-top:7px!important;
  }

  html.zg-mobile-ui .profile-page:not(.profile-instant-page) .profile-v31-bio{
    width:100%!important;
    min-height:0!important;
    margin:0!important;
    padding:8px 10px!important;
    border-radius:12px!important;
    box-sizing:border-box!important;
    text-align:inherit!important;
  }

  html.zg-mobile-ui .profile-page:not(.profile-instant-page) .profile-v31-bio-head{
    gap:7px!important;
  }

  html.zg-mobile-ui .profile-page:not(.profile-instant-page) .profile-v31-bio-head small{
    font-size:7.4px!important;
    letter-spacing:.07em!important;
  }

  html.zg-mobile-ui .profile-page:not(.profile-instant-page) .profile-v31-edit{
    width:24px!important;
    height:24px!important;
    border-radius:7px!important;
    font-size:10px!important;
  }

  html.zg-mobile-ui .profile-page:not(.profile-instant-page) .profile-v31-bio p{
    margin:4px 0 2px!important;
    font-size:9.4px!important;
    line-height:1.5!important;
  }

  html.zg-mobile-ui .profile-page:not(.profile-instant-page) .profile-v31-bio p.is-empty{
    display:none!important;
  }

  html.zg-mobile-ui .profile-page:not(.profile-instant-page) .profile-v31-member-since{
    display:block!important;
    margin-top:2px!important;
    font-size:7px!important;
    line-height:1.25!important;
  }

  html.zg-mobile-ui .profile-page:not(.profile-instant-page) .profile-v31-bio-editor{
    margin-top:6px!important;
    gap:5px!important;
  }

  html.zg-mobile-ui .profile-page:not(.profile-instant-page) .profile-v31-bio-editor textarea{
    min-height:68px!important;
    padding:7px 8px!important;
    font-size:9px!important;
    line-height:1.5!important;
  }
}

@media (max-width:390px){
  html.zg-mobile-ui .profile-page:not(.profile-instant-page) .profile-hero{
    padding-top:53px!important;
  }

  html.zg-mobile-ui .profile-page:not(.profile-instant-page) .profile-main-toolbar{
    top:10px!important;
    right:10px!important;
  }

  html.zg-mobile-ui .profile-page:not(.profile-instant-page) #profileLogout.profile-logout-corner{
    top:10px!important;
    left:10px!important;
  }

  html.zg-mobile-ui .profile-page:not(.profile-instant-page) .profile-preview-btn{
    padding-inline:6px!important;
  }

  html.zg-mobile-ui .profile-page:not(.profile-instant-page) .profile-preview-eye{
    width:21px!important;
    height:21px!important;
  }

  html.zg-mobile-ui .profile-page:not(.profile-instant-page) .profile-main h1{
    font-size:clamp(25px,8vw,30px)!important;
  }

  html.zg-mobile-ui .profile-page:not(.profile-instant-page) .member-id-card{
    gap:5px!important;
    padding-inline:7px!important;
  }

  html.zg-mobile-ui .profile-page:not(.profile-instant-page) .member-id-card small{
    font-size:5.9px!important;
  }

  html.zg-mobile-ui .profile-page:not(.profile-instant-page) .member-id-card strong{
    font-size:clamp(16px,5.5vw,20px)!important;
  }
}


/* V3.7M.17 — tablet scale-up.
   Same hierarchy and geometry as the approved phone UI, only roomier and clearer.
   This remains isolated by the runtime class, so ordinary desktop/laptop UI is untouched. */
@media (min-width:700px) and (max-width:1366px){
  html.zg-mobile-ui .profile-page:not(.profile-instant-page) .profile-hero{
    grid-template-columns:minmax(230px,300px) minmax(280px,360px)!important;
    justify-content:center!important;
    gap:12px 16px!important;
    padding:20px 20px 22px!important;
    padding-top:72px!important;
    border-radius:22px!important;
  }

  html.zg-mobile-ui .profile-page:not(.profile-instant-page) .profile-main{
    width:min(100%,860px)!important;
    justify-self:center!important;
  }

  html.zg-mobile-ui .profile-page:not(.profile-instant-page) .profile-main-toolbar{
    top:17px!important;
    right:20px!important;
  }

  html.zg-mobile-ui .profile-page:not(.profile-instant-page) #profileLogout.profile-logout-corner{
    top:17px!important;
    left:20px!important;
    min-height:38px!important;
    padding:6px 13px!important;
    border-radius:11px!important;
    font-size:9.5px!important;
  }

  html.zg-mobile-ui .profile-page:not(.profile-instant-page) .profile-preview-btn{
    min-height:38px!important;
    padding:5px 10px!important;
    gap:7px!important;
    border-radius:11px!important;
  }

  html.zg-mobile-ui .profile-page:not(.profile-instant-page) .profile-preview-eye{
    width:28px!important;
    height:28px!important;
    border-radius:8px!important;
    font-size:13px!important;
  }

  html.zg-mobile-ui .profile-page:not(.profile-instant-page) .profile-preview-btn b{
    font-size:9px!important;
  }

  html.zg-mobile-ui .profile-page:not(.profile-instant-page) .profile-main h1{
    margin-bottom:10px!important;
    font-size:clamp(34px,4.6vw,42px)!important;
  }

  html.zg-mobile-ui .profile-page:not(.profile-instant-page) .member-id-card{
    width:min(100%,610px)!important;
    min-height:58px!important;
    margin-bottom:9px!important;
    padding:9px 12px!important;
    gap:10px!important;
    border-radius:14px!important;
  }

  html.zg-mobile-ui .profile-page:not(.profile-instant-page) .member-id-card small{
    font-size:7.4px!important;
    letter-spacing:.10em!important;
  }

  html.zg-mobile-ui .profile-page:not(.profile-instant-page) .member-id-card strong{
    font-size:clamp(23px,3.5vw,30px)!important;
  }

  html.zg-mobile-ui .profile-page:not(.profile-instant-page) .member-id-card .copy-id-btn{
    min-height:36px!important;
    padding:6px 10px!important;
    border-radius:10px!important;
    font-size:8.5px!important;
  }

  html.zg-mobile-ui .profile-page:not(.profile-instant-page) .profile-meta{
    gap:6px!important;
  }

  html.zg-mobile-ui .profile-page:not(.profile-instant-page) .profile-meta span{
    padding:5px 8px!important;
    font-size:8.5px!important;
  }

  html.zg-mobile-ui .profile-page:not(.profile-instant-page) .profile-v31-identity{
    width:min(100%,820px)!important;
    margin:9px auto 0!important;
  }

  html.zg-mobile-ui .profile-page:not(.profile-instant-page) .profile-v31-bio{
    padding:10px 12px!important;
    border-radius:14px!important;
  }

  html.zg-mobile-ui .profile-page:not(.profile-instant-page) .profile-v31-bio-head small{
    font-size:8.5px!important;
  }

  html.zg-mobile-ui .profile-page:not(.profile-instant-page) .profile-v31-edit{
    width:28px!important;
    height:28px!important;
    border-radius:8px!important;
    font-size:11px!important;
  }

  html.zg-mobile-ui .profile-page:not(.profile-instant-page) .profile-v31-bio p{
    margin:5px 0 3px!important;
    font-size:11px!important;
    line-height:1.6!important;
  }

  html.zg-mobile-ui .profile-page:not(.profile-instant-page) .profile-v31-member-since{
    font-size:8px!important;
  }

  html.zg-mobile-ui .profile-page:not(.profile-instant-page) .profile-portrait-card{
    width:100%!important;
    max-width:360px!important;
    justify-self:center!important;
    padding:8px!important;
    border-radius:20px!important;
  }

  html.zg-mobile-ui .profile-page:not(.profile-instant-page) .profile-portrait-frame{
    border-radius:16px!important;
  }

  html.zg-mobile-ui .profile-page:not(.profile-instant-page) .profile-portrait-actions{
    gap:6px!important;
    margin-top:7px!important;
  }

  html.zg-mobile-ui .profile-page:not(.profile-instant-page) .profile-portrait-upload,
  html.zg-mobile-ui .profile-page:not(.profile-instant-page) .profile-portrait-remove{
    min-height:36px!important;
    padding:0 9px!important;
    border-radius:10px!important;
    font-size:8.5px!important;
  }

  html.zg-mobile-ui .profile-page:not(.profile-instant-page) .profile-portrait-msg{
    min-height:13px!important;
    margin-top:5px!important;
    font-size:7.2px!important;
  }

  html.zg-mobile-ui .profile-page:not(.profile-instant-page) .profile-identity-visuals>.profile-community-avatar-wrap{
    width:100%!important;
    max-width:300px!important;
    min-height:176px!important;
    justify-self:center!important;
    padding:12px 10px!important;
    gap:8px!important;
    border-radius:18px!important;
  }

  html.zg-mobile-ui .profile-page:not(.profile-instant-page) .profile-community-avatar-wrap .profile-avatar{
    width:70px!important;
    height:70px!important;
    border-radius:20px!important;
    font-size:18px!important;
  }

  html.zg-mobile-ui .profile-page:not(.profile-instant-page) .profile-community-avatar-wrap .avatar-upload-btn{
    min-height:38px!important;
    padding:7px 9px!important;
    border-radius:10px!important;
    font-size:8.5px!important;
  }

  html.zg-mobile-ui .profile-page:not(.profile-instant-page) .profile-community-avatar-wrap .avatar-upload-note{
    font-size:7.3px!important;
  }

  html.zg-mobile-ui .profile-page:not(.profile-instant-page) .profile-rank-spotlight{
    width:100%!important;
    max-width:300px!important;
    min-height:176px!important;
    justify-self:center!important;
    padding:12px 10px!important;
    border-radius:18px!important;
  }

  html.zg-mobile-ui .profile-page:not(.profile-instant-page) .profile-rank-kicker{
    font-size:7.8px!important;
  }

  html.zg-mobile-ui .profile-page:not(.profile-instant-page) .profile-rank-spotlight .rank-showcase strong{
    font-size:14px!important;
  }

  html.zg-mobile-ui .profile-page:not(.profile-instant-page) .profile-rank-spotlight .rank-showcase span{
    font-size:8px!important;
  }

  html.zg-mobile-ui .profile-page:not(.profile-instant-page) .profile-rank-spotlight .rank-showcase.is-zg-elite>b,
  html.zg-mobile-ui .profile-page:not(.profile-instant-page) .profile-rank-spotlight .rank-showcase.is-zg-elite .zg-elite-rank-emblem{
    width:64px!important;
    height:58px!important;
  }

  html.zg-mobile-ui .profile-page:not(.profile-instant-page) .profile-hero-side{
    width:min(100%,940px)!important;
    justify-self:center!important;
    gap:12px!important;
  }

  html.zg-mobile-ui .profile-page:not(.profile-instant-page) .profile-hero-kpis{
    gap:8px!important;
  }

  html.zg-mobile-ui .profile-page:not(.profile-instant-page) .profile-hero-kpis article{
    min-height:78px!important;
    padding:10px 9px!important;
    border-radius:13px!important;
  }

  html.zg-mobile-ui .profile-page:not(.profile-instant-page) .profile-hero-kpis b{
    font-size:22px!important;
  }

  html.zg-mobile-ui .profile-page:not(.profile-instant-page) .profile-hero-kpis span{
    font-size:8.5px!important;
  }

  html.zg-mobile-ui .profile-page:not(.profile-instant-page) .profile-hero-achievements-btn{
    min-height:164px!important;
    padding:14px!important;
    gap:8px!important;
    border-radius:16px!important;
  }

  html.zg-mobile-ui .profile-page:not(.profile-instant-page) .profile-achievements-trophy{
    width:50px!important;
    height:50px!important;
    border-radius:14px!important;
    font-size:22px!important;
  }

  html.zg-mobile-ui .profile-page:not(.profile-instant-page) .profile-achievements-label{
    font-size:13px!important;
  }

  html.zg-mobile-ui .profile-page:not(.profile-instant-page) .profile-achievements-count{
    width:38px!important;
    height:38px!important;
    font-size:14px!important;
  }

  html.zg-mobile-ui .profile-page:not(.profile-instant-page) .profile-v31-completion,
  html.zg-mobile-ui .profile-page:not(.profile-instant-page) .profile-v31-featured-side{
    min-height:154px!important;
    padding:13px!important;
    border-radius:16px!important;
  }

  html.zg-mobile-ui .profile-page:not(.profile-instant-page) .profile-v31-completion-head b{
    font-size:13px!important;
  }

  html.zg-mobile-ui .profile-page:not(.profile-instant-page) .profile-v31-completion-chips span,
  html.zg-mobile-ui .profile-page:not(.profile-instant-page) .profile-v31-featured-head small{
    font-size:8.5px!important;
  }

  html.zg-mobile-ui .profile-page:not(.profile-instant-page) .profile-v31-featured-head span{
    font-size:8px!important;
  }
}

