/* KVANTYRA PROFILE HEADER CONSOLIDATED V352_R1 START */

/*
 * V352 is the single owner of the profile identity header. V349, V350 and
 * V351 are disconnected by INSTALL.sh, so their competing layout rules no
 * longer run. V348 continues to own work-card sizing and filters.
 */
html body #profile.kv-profile-v352-screen .kv-profile-v116-main{
  grid-template-columns:90px minmax(0,1fr)!important;
  gap:15px!important;
  align-items:start!important;
  min-height:151px!important;
  padding:5px 2px 7px!important;
}

html body #profile.kv-profile-v352-screen .kv-profile-v116-avatar-wrap{
  display:flex!important;
  flex-direction:column!important;
  align-items:center!important;
  width:90px!important;
  min-width:90px!important;
  height:auto!important;
  min-height:120px!important;
  overflow:visible!important;
}
html body #profile.kv-profile-v352-screen .kv-profile-v116-avatar{
  flex:0 0 90px!important;
  width:90px!important;
  min-width:90px!important;
  height:90px!important;
}
html body #profile.kv-profile-v352-screen .kv-profile-v116-avatar-wrap .kv-profile-v116-presence{
  top:74px!important;
  right:5px!important;
  bottom:auto!important;
}
html body #profile.kv-profile-v352-screen .kv-profile-v352-edit{
  position:static!important;
  inset:auto!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  gap:5px!important;
  width:auto!important;
  min-width:0!important;
  max-width:90px!important;
  height:27px!important;
  min-height:27px!important;
  margin:3px auto 0!important;
  padding:0 8px!important;
  border:1px solid rgba(160,126,255,.16)!important;
  border-radius:999px!important;
  background:rgba(133,86,255,.07)!important;
  box-shadow:none!important;
  color:#b99dff!important;
  transform:none!important;
}
html body #profile.kv-profile-v352-screen .kv-profile-v352-edit>span{
  display:grid!important;
  place-items:center!important;
  flex:0 0 12px!important;
  width:12px!important;
  height:12px!important;
  margin:0!important;
  padding:0!important;
  border:0!important;
  background:transparent!important;
  color:currentColor!important;
}
html body #profile.kv-profile-v352-screen .kv-profile-v352-edit>span svg{
  display:block!important;
  width:12px!important;
  height:12px!important;
}
html body #profile.kv-profile-v352-screen .kv-profile-v352-edit>b{
  display:block!important;
  color:currentColor!important;
  font-size:9px!important;
  font-weight:760!important;
  line-height:1!important;
  white-space:nowrap!important;
}
html body #profile.kv-profile-v352-screen .kv-profile-v352-edit>.kv-profile-v128-action-chevron{
  display:none!important;
}

/* One exact left axis for name, username, level and progress. */
html body #profile.kv-profile-v352-screen .kv-profile-v116-user{
  display:grid!important;
  grid-template-columns:minmax(0,1fr) 36px!important;
  grid-template-rows:auto auto auto auto auto!important;
  column-gap:8px!important;
  row-gap:0!important;
  align-items:start!important;
  width:100%!important;
  min-width:0!important;
  margin:0!important;
  padding:1px 0 0!important;
  text-align:left!important;
}
html body #profile.kv-profile-v352-screen .kv-profile-v116-user h2,
html body #profile.kv-profile-v352-screen .kv-profile-v116-user .username{
  position:static!important;
  inset:auto!important;
  display:block!important;
  box-sizing:border-box!important;
  width:100%!important;
  min-width:0!important;
  max-width:100%!important;
  padding:0!important;
  text-align:left!important;
  text-indent:0!important;
  transform:none!important;
}
html body #profile.kv-profile-v352-screen .kv-profile-v116-user h2{
  grid-column:1!important;
  grid-row:1!important;
  margin:0!important;
  line-height:1.08!important;
}
html body #profile.kv-profile-v352-screen .kv-profile-v116-user .username{
  grid-column:1!important;
  grid-row:2!important;
  margin:4px 0 0!important;
  line-height:1.15!important;
}

/* The hit target and the glyph are independently centered. This prevents the
 * legacy share wrappers from shifting the SVG inside the circle. */
html body #profile.kv-profile-v352-screen #kvProfileShareV333.kv-profile-v352-share{
  grid-column:2!important;
  grid-row:1 / span 2!important;
  position:relative!important;
  align-self:center!important;
  justify-self:end!important;
  display:block!important;
  appearance:none!important;
  box-sizing:border-box!important;
  overflow:hidden!important;
  width:36px!important;
  min-width:36px!important;
  max-width:36px!important;
  height:36px!important;
  min-height:36px!important;
  max-height:36px!important;
  margin:0!important;
  padding:0!important;
  border:1px solid rgba(255,255,255,.1)!important;
  border-radius:50%!important;
  background:rgba(255,255,255,.025)!important;
  box-shadow:none!important;
  color:rgba(244,241,250,.9)!important;
  line-height:0!important;
  transform:none!important;
}
html body #profile.kv-profile-v352-screen #kvProfileShareV333.kv-profile-v352-share>.kv-profile-social-share-icon-v333{
  position:absolute!important;
  top:50%!important;
  left:50%!important;
  display:block!important;
  box-sizing:border-box!important;
  width:20px!important;
  height:20px!important;
  margin:0!important;
  padding:0!important;
  border:0!important;
  border-radius:0!important;
  background:transparent!important;
  color:currentColor!important;
  line-height:0!important;
  transform:translate(-50%,-50%)!important;
}
html body #profile.kv-profile-v352-screen #kvProfileShareV333.kv-profile-v352-share>.kv-profile-social-share-icon-v333 svg{
  position:static!important;
  display:block!important;
  width:20px!important;
  height:20px!important;
  margin:0!important;
  padding:0!important;
  transform:none!important;
}
html body #profile.kv-profile-v352-screen #kvProfileShareV333.kv-profile-v352-share>.kv-profile-social-share-copy-v333,
html body #profile.kv-profile-v352-screen #kvProfileShareV333.kv-profile-v352-share>.kv-profile-social-share-arrow-v333{
  display:none!important;
}

html body #profile.kv-profile-v352-screen .kv-profile-v347-meta{
  grid-column:1 / -1!important;
  grid-row:3!important;
  justify-self:start!important;
  width:auto!important;
  margin:8px 0 0!important;
  padding:0!important;
  transform:none!important;
}
html body #profile.kv-profile-v352-screen #kvProfileLevelsEntryV15.kv-profile-v352-level{
  height:24px!important;
  min-height:24px!important;
  padding:0 9px!important;
}
html body #profile.kv-profile-v352-screen #kvProfileLevelsEntryV15 .kv-profile-v352-level-label{
  display:block!important;
  color:currentColor!important;
  font-size:9px!important;
  font-weight:760!important;
  letter-spacing:0!important;
  line-height:1!important;
  white-space:nowrap!important;
}
html body #profile.kv-profile-v352-screen .kv-profile-v352-progress{
  grid-column:1 / -1!important;
  grid-row:4!important;
  position:relative!important;
  align-self:start!important;
  overflow:hidden!important;
  width:100%!important;
  max-width:none!important;
  height:3px!important;
  margin:7px 0 0!important;
  border:0!important;
  border-radius:999px!important;
  background:rgba(255,255,255,.13)!important;
  box-shadow:none!important;
}
html body #profile.kv-profile-v352-screen .kv-profile-v352-progress[hidden]{display:none!important}
html body #profile.kv-profile-v352-screen .kv-profile-v352-progress-fill{
  display:block!important;
  width:0;
  height:100%!important;
  border-radius:inherit!important;
  background:linear-gradient(90deg,#765cff,#aa63ff)!important;
  box-shadow:0 0 10px rgba(139,91,255,.42)!important;
  transition:width .24s ease!important;
}

html body #profile.kv-profile-v352-screen .kv-profile-v125-actions.kv-profile-v352-actions{
  grid-column:1 / -1!important;
  grid-row:5!important;
  display:block!important;
  width:100%!important;
  margin:10px 0 0!important;
}
html body #profile.kv-profile-v352-screen .kv-profile-v352-actions #kvProfileV125Channel.kv-profile-v352-telegram{
  position:static!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  gap:7px!important;
  width:100%!important;
  min-width:0!important;
  max-width:none!important;
  height:38px!important;
  min-height:38px!important;
  margin:0!important;
  padding:0 13px!important;
  border:1px solid rgba(89,170,245,.18)!important;
  border-radius:12px!important;
  background:linear-gradient(135deg,#278be5,#286fc9)!important;
  box-shadow:0 8px 22px rgba(22,105,188,.2)!important;
  color:#fff!important;
  transform:none!important;
}
html body #profile.kv-profile-v352-screen .kv-profile-v352-actions #kvProfileV125Channel.kv-profile-v352-telegram[hidden]{display:none!important}
html body #profile.kv-profile-v352-screen .kv-profile-v352-actions #kvProfileV125Channel.kv-profile-v352-telegram>span{
  display:grid!important;
  place-items:center!important;
  flex:0 0 17px!important;
  width:17px!important;
  height:17px!important;
  margin:0!important;
  padding:0!important;
  border:0!important;
  border-radius:0!important;
  background:transparent!important;
  box-shadow:none!important;
  color:currentColor!important;
}
html body #profile.kv-profile-v352-screen .kv-profile-v352-actions #kvProfileV125Channel svg{
  display:block!important;
  width:17px!important;
  height:17px!important;
}
html body #profile.kv-profile-v352-screen .kv-profile-v352-actions #kvProfileV125Channel>b{
  display:block!important;
  overflow:visible!important;
  color:currentColor!important;
  font-size:11px!important;
  font-weight:780!important;
  line-height:1!important;
  text-overflow:clip!important;
  white-space:nowrap!important;
}
html body #profile.kv-profile-v352-screen .kv-profile-v352-actions #kvProfileV125Channel .kv-profile-v128-action-chevron{
  display:none!important;
}

/* Keep the V350 wallet correction after disconnecting V350's stylesheet. */
html body #profile.kv-profile-v352-screen .kv-profile-v116-wallet .kv-profile-v116-topup{
  grid-column:2!important;
  grid-row:1 / span 2!important;
  align-self:center!important;
  justify-self:end!important;
  margin:0!important;
  transform:translateY(1px)!important;
}

html body #profile.kv-profile-v352-screen #kvProfileShareV333.kv-profile-v352-share:active,
html body #profile.kv-profile-v352-screen .kv-profile-v352-edit:active,
html body #profile.kv-profile-v352-screen #kvProfileV125Channel.kv-profile-v352-telegram:active{
  transform:scale(.97)!important;
}

@media(max-width:390px){
  html body #profile.kv-profile-v352-screen .kv-profile-v116-main{
    grid-template-columns:84px minmax(0,1fr)!important;
    gap:13px!important;
    min-height:145px!important;
  }
  html body #profile.kv-profile-v352-screen .kv-profile-v116-avatar-wrap{
    width:84px!important;
    min-width:84px!important;
    min-height:114px!important;
  }
  html body #profile.kv-profile-v352-screen .kv-profile-v116-avatar{
    flex-basis:84px!important;
    width:84px!important;
    min-width:84px!important;
    height:84px!important;
  }
  html body #profile.kv-profile-v352-screen .kv-profile-v116-avatar-wrap .kv-profile-v116-presence{
    top:69px!important;
    right:4px!important;
  }
  html body #profile.kv-profile-v352-screen .kv-profile-v352-edit{
    max-width:84px!important;
    margin-top:2px!important;
    padding-inline:7px!important;
  }
  html body #profile.kv-profile-v352-screen .kv-profile-v116-user{
    grid-template-columns:minmax(0,1fr) 34px!important;
    column-gap:6px!important;
  }
  html body #profile.kv-profile-v352-screen #kvProfileShareV333.kv-profile-v352-share{
    width:34px!important;
    min-width:34px!important;
    max-width:34px!important;
    height:34px!important;
    min-height:34px!important;
    max-height:34px!important;
  }
  html body #profile.kv-profile-v352-screen .kv-profile-v352-actions #kvProfileV125Channel>b{
    font-size:10.4px!important;
  }
}

/* KVANTYRA PROFILE HEADER CONSOLIDATED V352_R1 END */
