/*
  Profile overview canonical cleanup module.
  Extracted from the former pages/57-profile-overview.css; keep after 57-2-profile-overview-unified.css.
*/

/* =========================================================
   PROFILE FIX Р В Р вЂ Р В РІР‚С™Р Р†Р вЂљРЎСљ P2.48 overview empty top space cleanup
   Reason: earlier viewport-fit passes forced the overview pane
   and unified shell to full-height. In the current cascade this
   makes the unified content sit too low and creates a large
   empty area above the hero block.
========================================================= */
#pPanel-overview,
#pPanel-overview.is-active,
#pPanel-overview > #profileOverview.profilePane{
  min-height: 0 !important;
  height: auto !important;
}
#profileOverview.profilePane{
  max-height: none !important;
  min-height: 0 !important;
  height: auto !important;
  overflow: visible !important;
  padding: 0 !important;
}
#profileOverview .profileOverviewShell--unified{
  min-height: 0 !important;
  height: auto !important;
  display: block !important;
}
#profileOverview .profileOverviewUnified{
  min-height: 0 !important;
  height: auto !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: flex-start !important;
  align-items: stretch !important;
  align-content: stretch !important;
  gap: 10px !important;
  padding-top: 10px !important;
}
#profileOverview .profileOverviewUnified__hero,
#profileOverview .profileOverviewRibbon,
#profileOverview .profileOverviewUnified__content{
  flex: 0 0 auto !important;
  margin-top: 0 !important;
  align-self: stretch !important;
}
#profileOverview .profileOverviewUnified__hero{
  padding-bottom: 10px !important;
}
#profileOverview .profileOverviewRibbon{
  margin-bottom: 0 !important;
}
#profileOverview .profileOverviewUnified__content{
  grid-auto-rows: minmax(0, auto) !important;
}

@media (max-width: 1180px){
  #profileOverview.profilePane,
  #profileOverview .profileOverviewShell--unified,
  #profileOverview .profileOverviewUnified{
    min-height: 0 !important;
    height: auto !important;
  }
}



/* =========================================================
   PROFILE AUDIT FIX Р В Р вЂ Р В РІР‚С™Р Р†Р вЂљРЎСљ P2.49 canonical cleanup
   Goal: neutralize conflicting late profile layers, remove
   dead space above the overview, kill inner scrolling, and
   keep the whole profile attached to the lower viewport area
   without breaking tabs or API logic.
========================================================= */
body.page-profile .wrap{
  margin-bottom: 0 !important;
}
body.page-profile .siteFooter{
  margin-top: 8px !important;
}
.profileBanners:empty,
#profileBanners[style*="display:none"]{
  display: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

.sitePanel--profile,
.sitePanel--profile .panel-body,
.profilePage__body,
.profilePage .profileLayout,
.profileAside,
.profileMain,
.profileMain > .pPanel,
.profileMain > .pPanel.is-active,
.profileMain > .pPanel > .profilePane,
.profileMain > .pPanel.is-active > .profilePane,
#profileOverview.profilePane,
#profileOverview .profileOverviewShell--unified,
#profileOverview .profileOverviewUnified{
  min-height: 0 !important;
  max-height: none !important;
  height: auto !important;
}
.profilePage__body{
  display: flex !important;
  flex-direction: column !important;
  gap: 10px !important;
}
.profilePage .profileLayout{
  display: grid !important;
  grid-template-columns: minmax(0, 186px) minmax(0, 1fr) !important;
  align-items: start !important;
  gap: 10px !important;
}
.profileAside,
.profileMain,
.profileMain > .pPanel,
.profileMain > .pPanel > .profilePane,
.profilePane > *{
  min-width: 0 !important;
}
.profileNav{
  padding: 8px !important;
  border-radius: 18px !important;
}
.profileNav--side{
  display: flex !important;
  flex-direction: column !important;
  gap: 6px !important;
  max-height: none !important;
  overflow: visible !important;
  padding: 0 !important;
}
.pTab{
  min-height: 38px !important;
  padding: 8px 10px !important;
  border-radius: 12px !important;
  font-size: 12.5px !important;
}

.profilePane{
  overflow: visible !important;
  overscroll-behavior: auto !important;
  padding: 10px !important;
  gap: 10px !important;
  border-radius: 20px !important;
  align-content: start !important;
}
.profilePane .card__head{
  margin-bottom: 8px !important;
  gap: 8px 10px !important;
}
.profilePane .card__title{
  font-size: 14px !important;
  line-height: 1.15 !important;
}
.profilePane .hint,
.profileSubHint,
.profileDeviceHint{
  font-size: 11px !important;
  line-height: 1.4 !important;
}

#profileOverview.profilePane{
  display: block !important;
  overflow: visible !important;
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}
#profileOverview .profileOverviewShell--unified{
  display: block !important;
  margin: 0 !important;
  padding: 0 !important;
}
#profileOverview .profileOverviewUnified,
#profileOverview .profileOverviewUnified--audit{
  position: relative !important;
  display: grid !important;
  grid-template-columns: minmax(0,1fr) !important;
  grid-template-rows: none !important;
  align-content: start !important;
  justify-content: stretch !important;
  gap: 10px !important;
  margin: 0 !important;
  padding: 12px !important;
  border-radius: 20px !important;
  overflow: hidden !important;
}
#profileOverview .profileOverviewUnified__glow{
  display: none !important;
}
#profileOverview .profileOverviewUnified > *{
  position: relative;
  z-index: 1;
  min-width: 0 !important;
  margin: 0 !important;
  align-self: stretch !important;
}
#profileOverview .profileOverviewUnified__hero{
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 280px) !important;
  align-items: start !important;
  gap: 10px !important;
  padding: 0 !important;
  border: 0 !important;
}
#profileOverview .profileOverviewIdentity,
#profileOverview .profileOverviewHero__aside,
#profileOverview .profileOverviewSection,
#profileOverview .profileOverviewMetric,
#profileOverview .profileOverviewEntry,
#profileOverview .profileOverviewShopRow{
  min-width: 0 !important;
  align-self: start !important;
  contain: content;
}
#profileOverview .profileOverviewIdentity{
  display: grid !important;
  grid-template-columns: 56px minmax(0,1fr) !important;
  align-items: start !important;
  gap: 10px !important;
  padding: 12px !important;
  border-radius: 16px !important;
}
#profileOverview .profileOverviewIdentity__ava{
  width: 56px !important;
  height: 56px !important;
  border-radius: 14px !important;
}
#profileOverview .profileOverviewIdentity__body{
  display: flex !important;
  flex-direction: column !important;
  gap: 6px !important;
  min-width: 0 !important;
}
#profileOverview .profileOverviewIdentity__top,
#profileOverview .profileOverviewIdentity__nameWrap,
#profileOverview .profileOverviewIdentity__meta,
#profileOverview .profileOverviewIdentity__chips{
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 6px !important;
  min-width: 0 !important;
}
#profileOverview .profileOverviewIdentity__nameWrap{
  flex-direction: column !important;
  gap: 3px !important;
}
#profileOverview .profileOverviewIdentity__name{
  font-size: clamp(18px, 1.25vw, 22px) !important;
  line-height: 1.06 !important;
  white-space: normal !important;
  word-break: break-word !important;
  overflow-wrap: anywhere !important;
}
#profileOverview .profileOverviewIdentity__sid{
  font-size: 11.5px !important;
  line-height: 1.3 !important;
  white-space: normal !important;
  word-break: break-word !important;
  overflow-wrap: anywhere !important;
}
#profileOverview .profileOverviewIdentity__meta .pill,
#profileOverview .profileOverviewIdentity__chips .pill{
  min-height: 23px !important;
  padding: 4px 8px !important;
  font-size: 11px !important;
}
#profileOverview .profileOverviewHero__aside{
  display: flex !important;
  flex-direction: column !important;
  gap: 8px !important;
  min-width: 220px !important;
  padding: 10px !important;
  border-radius: 16px !important;
}
#profileOverview .profileOverviewMode,
#profileOverview .profileOverviewMode .modeSwitch{
  width: 100% !important;
}
#profileOverview .profileOverviewActions{
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0,1fr)) !important;
  gap: 6px !important;
}
#profileOverview .profileOverviewActions .btn,
#profileOverview .profileOverviewMode .modeSwitch__btn{
  min-height: 34px !important;
  padding: 7px 9px !important;
  font-size: 12px !important;
  white-space: normal !important;
  line-height: 1.2 !important;
}

#profileOverview .profileOverviewRibbon{
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0,1fr)) !important;
  gap: 8px !important;
}
#profileOverview .profileOverviewMetric{
  min-height: 84px !important;
  padding: 11px 12px !important;
  gap: 6px !important;
  border-radius: 16px !important;
}
#profileOverview .profileOverviewMetric__label{
  font-size: 10px !important;
  letter-spacing: .08em !important;
}
#profileOverview .profileOverviewMetric__value{
  font-size: clamp(16px, 1.08vw, 19px) !important;
  line-height: 1.08 !important;
}
#profileOverview .profileOverviewMetric__sub{
  font-size: 11px !important;
  line-height: 1.35 !important;
}
#profileOverview .profileOverviewMetric__bar{
  height: 5px !important;
  margin-top: 0 !important;
}

#profileOverview .profileOverviewUnified__content{
  display: grid !important;
  grid-template-columns: repeat(12, minmax(0,1fr)) !important;
  grid-template-areas: none !important;
  align-items: start !important;
  align-content: start !important;
  gap: 8px !important;
}
#profileOverview .profileOverviewSection{
  display: flex !important;
  flex-direction: column !important;
  gap: 8px !important;
  padding: 12px !important;
  border-radius: 16px !important;
  min-height: 0 !important;
}
#profileOverview .profileOverviewSection--summary{ grid-column: span 5 !important; }
#profileOverview .profileOverviewSection--appearance{ grid-column: span 3 !important; }
#profileOverview .profileOverviewSection--rights{ grid-column: span 4 !important; }
#profileOverview .profileOverviewSection--shops{ grid-column: 1 / -1 !important; }
#profileOverview .profileOverviewSection__head{
  margin-bottom: 0 !important;
  gap: 8px !important;
}
#profileOverview .profileOverviewSection__eyebrow{
  font-size: 9px !important;
  letter-spacing: .13em !important;
}
#profileOverview .profileOverviewSection__title{
  font-size: 14px !important;
  line-height: 1.2 !important;
}
#profileOverview .profileOverviewSection__meta,
#profileOverview .profileOverviewSection .hint,
#profileOverview .profileOverviewEmpty{
  font-size: 11px !important;
  line-height: 1.4 !important;
}
#profileOverview .profileOverviewEntryList{
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 6px !important;
}
#profileOverview .profileOverviewEntry,
#profileOverview .profileOverviewShopRow{
  padding: 10px 11px !important;
  border-radius: 14px !important;
}
#profileOverview .profileOverviewEntry__head{
  margin-bottom: 6px !important;
  font-size: 10px !important;
  letter-spacing: .08em !important;
}
#profileOverview .profileOverviewEntry__body{
  gap: 6px !important;
  font-size: 13px !important;
  line-height: 1.32 !important;
  white-space: normal !important;
  word-break: break-word !important;
  overflow-wrap: anywhere !important;
}
#profileOverview .profileOverviewEntry__accent{
  font-size: clamp(14px, 1vw, 17px) !important;
}
#profileOverview .profileOverviewEntry__note{
  margin-top: 5px !important;
  font-size: 11px !important;
  line-height: 1.4 !important;
}
#profileOverview .profileOverviewEntry__pillList .pill{
  min-height: 22px !important;
  padding: 4px 8px !important;
  font-size: 11px !important;
}
#profileOverview .profileOverviewShopList{
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0,1fr)) !important;
  gap: 8px !important;
}
#profileOverview .profileOverviewShopRow{
  min-height: 68px !important;
  gap: 8px !important;
}
#profileOverview .profileOverviewShopRow__name,
#profileOverview .profileOverviewShopRow__meta,
#profileOverview .profileOverviewEntry__note,
#profileOverview .profileOverviewMetric__sub{
  word-break: break-word !important;
  overflow-wrap: anywhere !important;
}

@media (max-width: 1380px){
  .profilePage .profileLayout{
    grid-template-columns: minmax(0, 176px) minmax(0, 1fr) !important;
  }
  #profileOverview .profileOverviewUnified__content{
    grid-template-columns: repeat(2, minmax(0,1fr)) !important;
  }
  #profileOverview .profileOverviewSection--summary,
  #profileOverview .profileOverviewSection--appearance,
  #profileOverview .profileOverviewSection--rights,
  #profileOverview .profileOverviewSection--shops{
    grid-column: auto !important;
  }
  #profileOverview .profileOverviewSection--shops{
    grid-column: 1 / -1 !important;
  }
}
@media (max-width: 1180px){
  .profilePage .profileLayout{
    grid-template-columns: 1fr !important;
  }
  .profileAside{
    display: block !important;
  }
  .profileNav--side{
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)) !important;
  }
  #profileOverview .profileOverviewUnified{
    padding: 12px !important;
  }
  #profileOverview .profileOverviewUnified__hero{
    grid-template-columns: 1fr !important;
  }
  #profileOverview .profileOverviewHero__aside{
    min-width: 0 !important;
  }
}
@media (max-width: 860px){
  #profileOverview .profileOverviewRibbon,
  #profileOverview .profileOverviewUnified__content,
  #profileOverview .profileOverviewShopList{
    grid-template-columns: 1fr 1fr !important;
  }
  #profileOverview .profileOverviewUnified .profileOverviewActions{
    grid-template-columns: 1fr !important;
  }
}
@media (max-width: 640px){
  .sitePanel--profile .panel-body,
  .profilePane{
    padding: 8px !important;
  }
  .profileNav{
    padding: 6px !important;
  }
  .profileNav--side{
    display: flex !important;
    flex-wrap: nowrap !important;
    overflow: auto !important;
    overflow-y: hidden !important;
    -webkit-overflow-scrolling: touch;
  }
  .pTab{
    min-width: max-content !important;
  }
  #profileOverview .profileOverviewUnified,
  #profileOverview .profileOverviewUnified__hero,
  #profileOverview .profileOverviewRibbon,
  #profileOverview .profileOverviewUnified__content,
  #profileOverview .profileOverviewShopList{
    grid-template-columns: 1fr !important;
  }
  #profileOverview .profileOverviewIdentity{
    grid-template-columns: 1fr !important;
  }
  #profileOverview .profileOverviewIdentity__ava{
    width: 52px !important;
    height: 52px !important;
  }
  #profileOverview .profileOverviewSection--summary,
  #profileOverview .profileOverviewSection--appearance,
  #profileOverview .profileOverviewSection--rights,
  #profileOverview .profileOverviewSection--shops{
    grid-column: auto !important;
  }
}


/* =========================================================
   Public UI P2.50 Р В Р вЂ Р В РІР‚С™Р Р†Р вЂљРЎСљ profile overview cleanup and bottom alignment
   Goal: remove duplicate quick-actions block, balance the overview
   composition, and make the information area fill the lower viewport
   more neatly without breaking other profile tabs.
========================================================= */
#profileOverview .profileOverviewUnified{
  grid-template-rows: auto auto minmax(0, 1fr) !important;
  min-height: var(--profile-shell-fit) !important;
}
#profileOverview .profileOverviewUnified__hero{
  grid-template-columns: minmax(0, 1fr) auto !important;
  align-items: stretch !important;
}
#profileOverview .profileOverviewUnified .profileOverviewHero__aside{
  min-width: 128px !important;
  width: 128px !important;
  justify-content: center !important;
}
#profileOverview .profileOverviewUnified .profileOverviewHero__aside--compact{
  padding: 10px !important;
}
#profileOverview .profileOverviewUnified .profileOverviewActions{
  display: none !important;
}
#profileOverview .profileOverviewUnified .profileOverviewMode,
#profileOverview .profileOverviewUnified .profileOverviewMode .modeSwitch{
  width: 100% !important;
}
#profileOverview .profileOverviewUnified .profileOverviewMode .modeSwitch{
  grid-template-columns: 1fr 1fr !important;
}
#profileOverview .profileOverviewUnified .profileOverviewMode .modeSwitch__btn{
  min-height: 36px !important;
  font-size: 12px !important;
}
#profileOverview .profileOverviewRibbon{
  align-items: stretch !important;
}
#profileOverview .profileOverviewMetric{
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
}
#profileOverview .profileOverviewUnified__content{
  height: 100% !important;
  min-height: 0 !important;
  grid-template-columns: minmax(0, 1.18fr) minmax(0, 1fr) minmax(0, .86fr) !important;
  grid-template-rows: minmax(0, 1fr) auto !important;
  grid-template-areas:
    "summary appearance rights"
    "shops shops shops" !important;
  align-items: stretch !important;
  align-content: stretch !important;
}
#profileOverview .profileOverviewSection{
  display: flex !important;
  flex-direction: column !important;
  min-height: 0 !important;
}
#profileOverview .profileOverviewSection--summary,
#profileOverview .profileOverviewSection--appearance,
#profileOverview .profileOverviewSection--rights{
  height: 100% !important;
}
#profileOverview .profileOverviewSection__head{
  margin-bottom: 2px !important;
}
#profileOverview .profileOverviewEntryList{
  flex: 1 1 auto !important;
}
#profileOverview .profileOverviewSection--summary .profileOverviewEntryList{
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 8px !important;
  align-content: start !important;
}
#profileOverview .profileOverviewSection--summary .profileOverviewEntry,
#profileOverview .profileOverviewSection--appearance .profileOverviewEntry,
#profileOverview .profileOverviewSection--rights .profileOverviewEntry{
  height: 100% !important;
}
#profileOverview .profileOverviewSection--shops{
  align-self: end !important;
}
#profileOverview .profileOverviewSection--shops .profileOverviewSection__head{
  align-items: center !important;
}
#profileOverview .profileOverviewShopList{
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
}
#profileOverview .profileOverviewEmpty{
  min-height: 48px !important;
  display: flex !important;
  align-items: center !important;
}

@media (max-width: 1380px){
  #profileOverview .profileOverviewUnified__content{
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
    grid-template-rows: auto auto auto !important;
    grid-template-areas:
      "summary summary"
      "appearance rights"
      "shops shops" !important;
  }
}
@media (max-width: 1180px){
  #profileOverview .profileOverviewUnified__hero{
    grid-template-columns: 1fr !important;
  }
  #profileOverview .profileOverviewUnified .profileOverviewHero__aside{
    width: auto !important;
    min-width: 0 !important;
  }
  #profileOverview .profileOverviewUnified .profileOverviewMode .modeSwitch{
    max-width: 220px !important;
  }
}
@media (max-width: 860px){
  #profileOverview .profileOverviewSection--summary .profileOverviewEntryList{
    grid-template-columns: 1fr !important;
  }
  #profileOverview .profileOverviewUnified__content{
    grid-template-columns: 1fr !important;
    grid-template-rows: auto !important;
    grid-template-areas:
      "summary"
      "appearance"
      "rights"
      "shops" !important;
  }
}
@media (max-width: 640px){
  #profileOverview .profileOverviewUnified{
    padding: 10px !important;
    gap: 10px !important;
  }
  #profileOverview .profileOverviewUnified .profileOverviewMode .modeSwitch{
    max-width: none !important;
  }
}



