@font-face {
  font-family: "Selah Profile Manrope";
  src: url("/selah-v38/manrope.ttf") format("truetype");
  font-weight: 200 800;
  font-display: swap;
}

a.selah-profile-control,
a#workshop-account.selah-profile-control[data-profile-state] {
  display: inline-flex;
  box-sizing: border-box;
  min-inline-size: 0;
  min-block-size: 39px;
  inline-size: auto;
  max-inline-size: 10rem;
  align-items: center;
  justify-content: center;
  justify-self: end;
  gap: 8px;
  padding: 0 14px;
  border: 1px solid #b6c2b032;
  border-radius: 7px;
  background: #b6c2b010;
  color: #e6ede1;
  text-decoration: none;
  font: 750 .85rem/1 "Selah Profile Manrope", Manrope, system-ui, sans-serif;
  white-space: nowrap;
}

a.selah-profile-control:hover {
  border-color: #b6c2b05e;
  background: #b6c2b024;
  color: #e6ede1;
}

body[data-selah-map-chrome] a.selah-profile-control { color: #e6ede1; }

a.selah-profile-control:focus-visible {
  outline: 2px solid #f0cb82;
  outline-offset: 3px;
}

a.selah-profile-control[data-profile-state="signed-in"],
a#workshop-account.selah-profile-control[data-profile-state="signed-in"] { padding-inline: 7px 10px; }

a.selah-profile-control[data-profile-state="signed-in"] > .selah-profile-picture {
  position: relative;
  display: grid;
  flex: 0 0 24px;
  box-sizing: border-box;
  inline-size: 24px;
  block-size: 24px;
  place-items: center;
  overflow: hidden;
  border: 1px solid #6b8263;
  border-radius: 50%;
  background: #294535;
  color: #fff1cf;
  font: 800 .64rem/1 "Selah Profile Manrope", Manrope, system-ui, sans-serif;
}

.selah-profile-control .selah-profile-picture > :is(img, svg) {
  position: absolute;
  inset: 0;
  display: block;
  inline-size: 100%;
  block-size: 100%;
  object-fit: cover;
}

.selah-profile-control .selah-profile-picture > [hidden] { display: none; }

a.selah-profile-control > .selah-profile-name {
  display: block;
  min-inline-size: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

a.selah-profile-control > svg { flex: 0 0 16px; color: #b7d5b6; }

@media (max-width: 520px) {
  a.selah-profile-control,
  a#workshop-account.selah-profile-control[data-profile-state] { min-block-size: 44px; }

  a.selah-profile-control[data-profile-state="signed-in"],
  a#workshop-account.selah-profile-control[data-profile-state="signed-in"] {
    inline-size: 44px;
    padding: 5px;
  }

  a.selah-profile-control[data-profile-state="signed-in"] > .selah-profile-name,
  a#workshop-account.selah-profile-control[data-profile-state="signed-in"] > .selah-profile-name { display: none; }
}
