.core-profile-bar {
  position: sticky;
  top: var(--core-header-height,0px);
  z-index: 40;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  min-height: 54px;
  padding: 5px clamp(10px,2vw,24px);
  background: var(--surface,#fff);
  border-block-end: 1px solid var(--line,#e3e8e1);
  box-sizing: border-box;
}
body.core-sidebar .core-patient-nav { top: 54px; }
body.core-sidebar .core-frame { height: calc(100dvh - 58px); }
body.core-sidebar.patient-workspace .core-frame { height: calc(100dvh - 127px); }
.profile-avatar-button,.account-avatar-action {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  max-width: 100%;
  padding: 2px 6px;
  min-height: 42px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: inherit;
  cursor: pointer;
}
.profile-avatar-button:hover,.account-avatar-action:hover { background: var(--green-soft,#edf5ee); }
.profile-avatar-button:focus-visible,.account-avatar-action:focus-visible { outline: 2px solid var(--core-green,#176347); outline-offset: 2px; }
.profile-avatar-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; font-weight: 650; }
.account-avatar {
  position: relative;
  display: inline-flex;
  width: var(--profile-size,36px);
  height: var(--profile-size,36px);
  flex: none;
}
.account-avatar-face {
  display: grid;
  place-items: center;
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  overflow: hidden;
  background: var(--green-soft,#edf5ee);
  color: var(--core-green,#176347);
  font-size: 13px;
  font-weight: 700;
}
.account-avatar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; }
.account-avatar img.is-ready { opacity: 1; }
.account-avatar-badge {
  position: absolute;
  bottom: -2px;
  inset-inline-end: -3px;
  width: 16px;
  height: 16px;
  box-sizing: border-box;
  display: grid;
  place-items: center;
  border: 1px solid #fff;
  border-radius: 50%;
  background: var(--core-green,#176347);
  color: #fff;
}
.account-avatar-badge .icon { width: 10px; height: 10px; }
.account-profile { display: flex; align-items: center; gap: 8px; min-width: 0; }
.account-profile > div { min-width: 0; overflow-wrap: anywhere; }
.profile-avatar-form { display: grid; gap: 12px; }
.profile-avatar-preview { --profile-size: 78px; }
.profile-avatar-preview .account-avatar-face { font-size: 25px; }
.profile-avatar-actions { display: flex; justify-content: flex-end; }
@media (max-width:760px) {
  body.core-sidebar.patient-workspace .core-frame { height: calc(100dvh - 115px); }
}
