#header-actions .sdtm-automator-link {
  display: grid;
  justify-items: center;
  align-content: start;
  gap: 4px;
  width: max-content;
  min-height: 0;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #314653;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
}

#header-actions .sdtm-automator-link:hover {
  opacity: 0.9;
  background: transparent;
  color: #314653;
}

#header-actions .sdtm-automator-link:focus-visible {
  outline: 3px solid rgb(37 99 235 / 35%);
  outline-offset: 6px;
  border-radius: 10px;
}

#header-actions .sdtm-automator-label {
  display: block;
  color: #314653;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.15;
}

#header-actions .sdtm-automator-icon,
#header-actions .profile-avatar-tile {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  box-shadow: 0 2px 5px rgb(10 65 67 / 20%);
}

#header-actions .sdtm-automator-icon {
  background: linear-gradient(145deg, #0b655f, #16827b);
  color: #fff;
}

#header-actions .sdtm-automator-glyph {
  display: block;
  width: 24px;
  height: 24px;
}

#header-actions .profile-avatar-tile {
  padding: 5px;
  background: #1f4d7a;
}

#header-actions .profile-avatar-glyph {
  display: block;
  width: 30px;
  height: 30px;
  background-color: #fff;
  mask-repeat: no-repeat;
  mask-position: center;
  mask-size: contain;
}

#header-actions #profile-btn .name {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

#header-actions .profile-wrap {
  width: max-content;
  flex: 0 0 auto;
}

#header-actions #profile-btn {
  width: max-content;
}

@media (width <= 520px) {
  #header-actions {
    gap: 6px;
  }

  #header-actions .sdtm-automator-link,
  #header-actions .profile-wrap,
  #header-actions #profile-btn {
    width: 40px;
  }

  #header-actions .sdtm-automator-label,
  #header-actions #profile-btn .name {
    display: none;
  }
}
