.potok-profile-wrap {
  position: relative;
  flex: 0 0 auto;
}
.potok-profile-button {
  position: relative;
  box-sizing: border-box;
  width: 40px;
  height: 40px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  overflow: hidden;
  padding: 0;
  border: 1px solid #d8dde4;
  border-radius: 50% !important;
  color: #0d1a2d;
  background: #fff;
  font: inherit;
  font-size: 11px;
  font-weight: 760;
  cursor: pointer;
}

.potok-profile-button:hover,
.potok-profile-button[aria-expanded="true"] {
  border-color: #9eb9f5;
  color: #174fae;
  background: #f5f8ff;
}

.potok-profile-popover {
  position: absolute;
  z-index: 100;
  top: calc(100% + 9px);
  right: 0;
  width: 260px;
  overflow: hidden;
  border: 1px solid #cfd5dc;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 18px 46px rgb(7 17 31 / 14%);
}

.potok-profile-popover[hidden] { display: none; }

.potok-profile-summary {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  padding: 13px;
  border-bottom: 1px solid #e0e4e8;
}

.potok-profile-avatar {
  box-sizing: border-box;
  width: 36px;
  height: 36px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 50% !important;
  color: #0d1a2d;
  background: #eef3fa;
  font-size: 10px;
  font-weight: 750;
}
.potok-profile-image {
  width: 100%;
  height: 100%;
  min-width: 100%;
  min-height: 100%;
  max-width: 100%;
  max-height: 100%;
  display: block;
  border-radius: 50%;
  object-fit: cover;
}
.potok-profile-avatar-slot {
  box-sizing: border-box;
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: inherit;
}
.potok-profile-button > .potok-profile-avatar-slot {
  position: absolute;
  inset: 0;
  width: auto;
  height: auto;
}
.potok-profile-avatar-slot > .potok-profile-image,
.potok-profile-avatar-slot > .potok-profile-initials { grid-area: 1 / 1; }
.potok-profile-button > .potok-profile-image,
.potok-profile-avatar > .potok-profile-image { grid-area: 1 / 1; }
.potok-profile-button > .potok-profile-initials,
.potok-profile-avatar > .potok-profile-initials { grid-area: 1 / 1; }

.potok-profile-summary > span:last-child { min-width: 0; }
.potok-profile-summary strong,
.potok-profile-summary small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.potok-profile-summary strong { color: #0d1a2d; font-size: 10px; }
.potok-profile-summary small { margin-top: 3px; color: #778293; font-size: 8px; }

.potok-profile-popover > button,
.potok-profile-popover > a {
  box-sizing: border-box;
  width: 100%;
  min-height: 38px;
  display: flex;
  gap: 8px;
  align-items: center;
  padding: 0 13px;
  border: 0;
  color: #3f4b5b;
  background: #fff;
  font: inherit;
  font-size: 9px;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}

.potok-profile-popover > button:hover,
.potok-profile-popover > button:focus-visible,
.potok-profile-popover > a:hover,
.potok-profile-popover > a:focus-visible {
  outline: 0;
  color: #a43138;
  background: #fff7f7;
}
