/* VIZIT ONE 0.5.7 TOP PREMIUM — contact-fit + mobile PNG navigation hotfix.
   Schema stays 007. This layer only refines presentation/interaction safety. */

/* Give the e-mail cell more room while preserving the four-contact premium strip. */
.top-premium-contacts{
  grid-template-columns:minmax(0,.92fr) minmax(0,1.28fr) minmax(0,1fr) minmax(0,.96fr)!important;
}
.top-premium-contacts a{
  min-width:0!important;
  overflow:hidden!important;
  box-sizing:border-box!important;
}
.top-premium-contacts span{
  display:inline-block;
  min-width:0!important;
  max-width:100%;
  overflow:hidden!important;
  text-overflow:clip!important;
  white-space:nowrap;
}

/* Back control is no longer also a front "top-premium-flip" control.
   Its own class has one unambiguous position and zero surface, eliminating the Safari oval. */
.top-premium-back-return{
  position:absolute!important;
  inset:auto 12px 10px auto!important;
  z-index:10!important;
  display:inline-flex!important;
  width:max-content!important;
  height:auto!important;
  min-width:0!important;
  min-height:0!important;
  max-width:min(68%,460px)!important;
  align-items:center!important;
  justify-content:flex-end!important;
  padding:3px 0!important;
  border:0!important;
  border-radius:0!important;
  background:transparent!important;
  box-shadow:none!important;
  -webkit-backdrop-filter:none!important;
  backdrop-filter:none!important;
  color:var(--tp-gold2)!important;
  line-height:1.2!important;
  white-space:normal!important;
  overflow:visible!important;
}

/* Compact status under action buttons; used by the safe PNG flow on mobile. */
.card-toolbar [data-png-status]{
  flex-basis:100%;
  min-height:1.2em;
  margin-top:2px;
  color:var(--muted);
  font-size:11px;
}

.top-premium-stage.is-portrait .top-premium-contacts{
  grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;
}
.top-premium-stage.is-portrait .top-premium-back-return{
  inset:auto 9px 8px auto!important;
  max-width:76%!important;
  font-size:6px!important;
}

@media (orientation:landscape) and (max-width:950px){
  .top-premium-contacts{
    grid-template-columns:minmax(0,.9fr) minmax(0,1.3fr) minmax(0,1fr) minmax(0,.95fr)!important;
  }
  .top-premium-back-return{
    inset:auto 8px 6px auto!important;
    max-width:56%!important;
    padding:2px 0!important;
    font-size:5.2px!important;
  }
  .card-toolbar [data-png-status]{font-size:9px}
}
