/*
  Profile canonical shell module.
  Extracted from the former pages/60-profile-systems.css; keep after 61-profile-levels.css.
*/

   Public UI P2.61 РІР‚вЂќ canonical profile shell and stable left tabs
   Goal: keep the left tab panel and the right content area in one
   stable size rhythm, exactly like the Information tab. The tab
   menu must stay glued to the top, new tabs must stack downward,
   and if there are too many of them РІР‚вЂќ only the left menu scrolls.
========================================================= */
body.page-profile .sitePanel--profile{
  --profile-canon-h: clamp(560px, calc(100dvh - 320px), 700px);
}
body.page-profile .sitePanel--profile .panel-body{
  padding-top: 6px !important;
  padding-bottom: 6px !important;
}
body.page-profile .profilePage__body{
  gap: 0 !important;
}
body.page-profile .profileLayout{
  display: grid !important;
  grid-template-columns: minmax(0, 166px) minmax(0, 1fr) !important;
  gap: 12px !important;
  align-items: stretch !important;
  min-height: var(--profile-canon-h) !important;
}
body.page-profile .profileAside,
body.page-profile .profileMain,
body.page-profile .profileMain > .pPanel,
body.page-profile .profileMain > .pPanel > .profilePane,
body.page-profile #profileOverview.profilePane{
  min-width: 0 !important;
}
body.page-profile .profileAside{
  position: sticky !important;
  top: 0 !important;
  align-self: stretch !important;
  min-height: var(--profile-canon-h) !important;
}
body.page-profile .profileNav{
  display: flex !important;
  flex-direction: column !important;
  height: 100% !important;
  min-height: inherit !important;
  padding: 8px !important;
}
body.page-profile .profileNav--side{
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  justify-content: flex-start !important;
  flex: 1 1 auto !important;
  min-height: 0 !important;
  gap: 6px !important;
  padding: 0 2px 0 0 !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  max-height: calc(100dvh - 320px) !important;
  scrollbar-gutter: stable !important;
}
body.page-profile .profileNav--side::-webkit-scrollbar{
  width: 6px;
}
body.page-profile .profileNav--side::-webkit-scrollbar-thumb{
  background: rgba(255,255,255,.14);
  border-radius: 999px;
}
body.page-profile .profileNav--side .pTab{
  width: 100% !important;
  min-height: 38px !important;
  flex: 0 0 auto !important;
  justify-content: flex-start !important;
}
body.page-profile .profileMain{
  display: flex !important;
  flex-direction: column !important;
  min-height: var(--profile-canon-h) !important;
}
body.page-profile .profileMain > .pPanel,
body.page-profile .profileMain > .pPanel.is-active{
  min-height: var(--profile-canon-h) !important;
}
body.page-profile .profileMain > .pPanel > .profilePane,
body.page-profile .profileMain > .pPanel.is-active > .profilePane,
body.page-profile #profileOverview.profilePane{
  display: flex !important;
  flex-direction: column !important;
  justify-content: flex-start !important;
  min-height: var(--profile-canon-h) !important;
  gap: 10px !important;
}
body.page-profile .profileMain > .pPanel > .profilePane > *{
  min-width: 0 !important;
}
body.page-profile .profileMain > .pPanel:not([data-ppanel="overview"]) > .profilePane{
  padding: 10px !important;
}
body.page-profile .profileMain > .pPanel:not([data-ppanel="overview"]) .card__head{
  margin-bottom: 6px !important;
}
body.page-profile .profileMain > .pPanel > .profilePane .mt-3,
body.page-profile .profileMain > .pPanel > .profilePane [class*=" mt-3"]{
  margin-top: 0 !important;
}
body.page-profile .profileMain > .pPanel > .profilePane .profileBox,
body.page-profile .profileMain > .pPanel > .profilePane .profilePane .panel{
  margin-top: 0 !important;
}
body.page-profile .profileMain > .pPanel > .profilePane .stateMount + .stateMount,
body.page-profile .profileMain > .pPanel > .profilePane .panel + .panel,
body.page-profile .profileMain > .pPanel > .profilePane .profileBox + .profileBox{
  margin-top: 0 !important;
}
body.page-profile .profileMain > .pPanel > .profilePane .p-3{
  padding: 10px !important;
}
body.page-profile .profileMain > .pPanel > .profilePane .profilePanel__footerActions{
  margin-top: auto !important;
}
body.page-profile #profileOverview .profileOverviewUnified,
body.page-profile #profileOverview .profileOverviewShell,
body.page-profile #profileOverview .profileOverviewShell--unified{
  min-height: var(--profile-canon-h) !important;
}
body.page-profile #profileOverview .profileOverviewUnified__content{
  flex: 1 1 auto !important;
}

@media (max-width: 980px){
  body.page-profile .profileLayout{
    grid-template-columns: 1fr !important;
    min-height: 0 !important;
  }
  body.page-profile .profileAside{
    position: static !important;
    min-height: 0 !important;
  }
  body.page-profile .profileNav{
    height: auto !important;
    min-height: 0 !important;
  }
  body.page-profile .profileNav--side{
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)) !important;
    max-height: none !important;
    overflow: visible !important;
    padding-right: 0 !important;
  }
  body.page-profile .profileMain,
  body.page-profile .profileMain > .pPanel,
  body.page-profile .profileMain > .pPanel.is-active,
  body.page-profile .profileMain > .pPanel > .profilePane,
  body.page-profile .profileMain > .pPanel.is-active > .profilePane,
  body.page-profile #profileOverview.profilePane,
  body.page-profile #profileOverview .profileOverviewUnified{
    min-height: 0 !important;
  }
}
@media (max-width: 560px){
  body.page-profile .profileNav--side{
    display: flex !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    max-height: none !important;
  }
  body.page-profile .profileNav--side .pTab{
    width: auto !important;
    min-width: max-content !important;
  }
}


/* =========================================================
