/* KVANTYRA PROFILE FIXES V348_R1 START */

/*
 * V348 is intentionally narrow. It fixes V347 regressions without changing
 * profile data, filters, pagination, media loading, or click handlers.
 */

/* The role label is not part of the public profile. Admin access stays intact. */
html body #profile.kv-profile-v348-screen #kvP5Status,
html body #profile.kv-profile-v348-screen .kv-profile-v347-status{
  display:none!important;
}

/* Partnership remains a dedicated top-level tab, not a repeated wallet row. */
html body #profile.kv-profile-v348-screen .kv-profile-v347-partner,
html body #profile.kv-profile-v348-screen .kv-profile-v346-partner-link{
  display:none!important;
}

/* Remove the inherited outer plaque around the actual model selector. */
html body #profile.kv-profile-v348-screen .kv-profile-v118-model-filter{
  display:block!important;
  width:100%!important;
  min-height:0!important;
  height:auto!important;
  margin:0 0 11px!important;
  padding:0!important;
  overflow:visible!important;
  border:0!important;
  border-radius:0!important;
  background:transparent!important;
  box-shadow:none!important;
}
html body #profile.kv-profile-v348-screen .kv-profile-v118-model-filter select{
  display:block!important;
  width:100%!important;
  min-height:44px!important;
  height:44px!important;
  margin:0!important;
  padding:0 42px!important;
  border:1px solid rgba(255,255,255,.07)!important;
  border-radius:14px!important;
  background:rgba(255,255,255,.028)!important;
  color:#f0ecf8!important;
  -webkit-text-fill-color:#f0ecf8!important;
  font-size:11px!important;
  font-weight:750!important;
  outline:0!important;
  box-shadow:none!important;
}
html body #profile.kv-profile-v348-screen .kv-profile-v118-model-filter>span{
  left:12px!important;
  width:20px!important;
  height:20px!important;
}
html body #profile.kv-profile-v348-screen .kv-profile-v118-model-filter>svg{
  right:13px!important;
  width:16px!important;
  height:16px!important;
}

/* Restore the exact pre-V347 two-column library geometry. */
html body #profile.kv-profile-v348-screen .kv-profile-v118-grid{
  display:grid!important;
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
  align-items:start!important;
  gap:8px!important;
  margin:0!important;
}
html body #profile.kv-profile-v348-screen .kv-profile-v118-card{
  position:relative!important;
  display:flex!important;
  flex-direction:column!important;
  align-self:start!important;
  overflow:hidden!important;
  min-width:0!important;
  width:100%!important;
  height:auto!important;
  min-height:0!important;
  aspect-ratio:auto!important;
  margin:0!important;
  padding:0!important;
  border:1px solid rgba(255,255,255,.07)!important;
  border-radius:17px!important;
  background:rgba(255,255,255,.025)!important;
  box-shadow:none!important;
  text-align:left!important;
}
html body #profile.kv-profile-v348-screen .kv-profile-v118-preview{
  position:relative!important;
  inset:auto!important;
  display:block!important;
  flex:0 0 auto!important;
  overflow:hidden!important;
  width:100%!important;
  height:auto!important;
  aspect-ratio:1/1.18!important;
  margin:0!important;
  padding:0!important;
  border:0!important;
  border-radius:16px 16px 0 0!important;
  background:#0d0e15!important;
}
html body #profile.kv-profile-v348-screen .kv-profile-v118-preview img,
html body #profile.kv-profile-v348-screen .kv-profile-v118-preview video{
  display:block!important;
  width:100%!important;
  height:100%!important;
  object-fit:cover!important;
}
html body #profile.kv-profile-v348-screen .kv-profile-v118-card-copy{
  position:relative!important;
  inset:auto!important;
  display:block!important;
  min-height:53px!important;
  margin:0!important;
  padding:10px 11px 11px!important;
  background:transparent!important;
}
html body #profile.kv-profile-v348-screen .kv-profile-v118-card-copy strong{
  display:block!important;
  overflow:hidden!important;
  color:#f9f7fd!important;
  font-size:11px!important;
  font-weight:800!important;
  line-height:1.2!important;
  text-overflow:ellipsis!important;
  white-space:nowrap!important;
}
html body #profile.kv-profile-v348-screen .kv-profile-v118-card-copy>small{
  display:block!important;
  margin-top:4px!important;
  color:rgba(235,229,246,.4)!important;
  font-size:9px!important;
  line-height:1.2!important;
}
html body #profile.kv-profile-v348-screen .kv-profile-v118-card-foot{
  display:none!important;
}
html body #profile.kv-profile-v348-screen .kv-profile-v118-media-badge,
html body #profile.kv-profile-v348-screen .kv-profile-v118-state-badge{
  top:9px!important;
  height:25px!important;
  padding:0 8px!important;
  border:1px solid rgba(255,255,255,.1)!important;
  border-radius:9px!important;
  background:rgba(11,12,20,.72)!important;
  color:#f6f2fc!important;
  font-size:8px!important;
  font-weight:850!important;
  backdrop-filter:blur(10px)!important;
  -webkit-backdrop-filter:blur(10px)!important;
}

/* Preserve the established prompt-card geometry inside the restored grid. */
html body #profile.kv-profile-v348-screen .kv-profile-v118-card.is-text-result-v11{
  display:block!important;
  height:auto!important;
  min-height:0!important;
  aspect-ratio:.78!important;
}
html body #profile.kv-profile-v348-screen .kv-profile-v118-card.is-text-result-v11 .kv-profile-v118-preview{
  position:absolute!important;
  inset:0!important;
  width:100%!important;
  height:100%!important;
  aspect-ratio:auto!important;
  border-radius:16px!important;
}
html body #profile.kv-profile-v348-screen .kv-profile-v118-card.is-text-result-v11 .kv-profile-v118-card-copy{
  position:absolute!important;
  z-index:5!important;
  left:0!important;
  right:0!important;
  bottom:0!important;
  min-height:0!important;
  padding:29px 12px 11px!important;
  background:linear-gradient(180deg,rgba(7,8,28,0),rgba(6,7,23,.92) 62%,rgba(6,7,23,.99))!important;
}

@media(max-width:390px){
  html body #profile.kv-profile-v348-screen .kv-profile-v118-grid{gap:8px!important}
}

/* KVANTYRA PROFILE FIXES V348_R1 END */
