/* Shared account entry. The global rail remains Home / Projects / Approvals / Tools. */
.jp-profile-link {
  position: fixed;
  top: 8px;
  right: 16px;
  z-index: 1001;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
  color: #475569 !important;
  text-decoration: none !important;
  border-radius: 50%;
}
.jp-profile-link > span {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  color: #7d1d23;
  background: linear-gradient(145deg, #f7eaed 0%, #ead2d8 100%);
  border: 1px solid rgba(125, 29, 35, 0.18);
  box-shadow: 0 5px 14px rgba(89, 25, 31, 0.08);
  border-radius: 50%;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}
.jp-profile-link:hover > span,
.jp-profile-link.is-active > span {
  color: #fff;
  background: #7d1d23;
  border-color: #7d1d23;
}
.jp-profile-link:focus-visible {
  outline: 2px solid #AF1F24;
  outline-offset: 2px;
}
body.jp-has-profile-header .appHeader.jp-header-with-profile {
  display: flex !important;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
}
body.jp-has-profile-header .jp-header-with-profile .left,
body.jp-has-profile-header .jp-header-with-profile .right {
  position: static !important;
  inset: auto !important;
  display: flex !important;
  align-items: center;
  flex: 0 0 auto;
  min-width: 0;
}
body.jp-has-profile-header .jp-header-with-profile .left:empty {
  display: none !important;
}
body.jp-has-profile-header .jp-header-with-profile .right {
  margin-left: auto;
  gap: 8px;
}
body.jp-has-profile-header .jp-header-with-profile .pageTitle {
  position: static !important;
  flex: 1 1 auto;
  min-width: 0;
  padding: 0 !important;
  margin: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-align: left;
}
.jp-header-with-profile .jp-profile-link {
  position: static;
  z-index: auto;
}
.jp-mobile-brand {
  display: none;
}
@media (max-width: 1023px) {
  .jp-header-with-profile .jp-mobile-brand {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 40px;
    width: 40px;
    height: 40px;
    text-decoration: none;
    border-radius: 10px;
  }
  .jp-mobile-brand > span {
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    color: #7D1D23;
    background: transparent;
    border: 1px solid rgba(125, 29, 35, 0.42);
    border-radius: 9px;
    font-size: 17px;
    font-weight: 800;
    line-height: 1;
  }
  .jp-mobile-brand:focus-visible {
    outline: 2px solid #AF1F24;
    outline-offset: 2px;
  }
  body.jp-has-profile-header .appHeader.jp-header-with-profile {
    padding-right: 12px !important;
    padding-left: 16px !important;
  }
  body.jp-has-profile-header .jp-header-with-profile .left .headerButton {
    min-width: 28px;
    padding: 0;
  }
  body.jp-has-profile-header .jp-header-with-profile .right > .headerButton {
    flex-shrink: 0;
  }
}
@media (min-width: 1024px) {
  body.jp-has-profile-header .jp-header-with-profile .left.jp-mobile-brand-slot {
    display: none !important;
  }
  body.jp-has-profile-header:has(.jp-project-summary) #appCapsule,
  body.jp-has-profile-header.jp-phase-home-page:has(.jp-project-nav) #appCapsule.jp-phase-page-content {
    padding-top: 70px !important;
  }
}
@media print {
  body.jp-has-profile-header .appHeader.jp-header-with-profile,
  .jp-profile-link { display: none !important; }
}
