.header-actions {
  position: absolute;
  top: 18px;
  right: 39px;
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.header-actions .profile-wrap {
  position: relative;
  top: auto;
  right: auto;
  width: 46px;
}

.sdtm-automator-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  margin-top: 2px;
  padding: 0 14px;
  border: 1px solid #c5d9e8;
  border-radius: 7px;
  background: #f7fbfe;
  color: #1c4c70;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition:
    background-color 0.15s ease,
    border-color 0.15s ease;
}

.sdtm-automator-link:hover {
  border-color: #8fb5d2;
  background: #edf6fc;
  color: #1c4c70;
  text-decoration: none;
}

.sdtm-automator-link:focus-visible {
  outline: 3px solid rgb(37 99 235 / 35%);
  outline-offset: 3px;
}

@media (width <= 980px) {
  .header-actions {
    right: 16px;
  }
}

@media (width <= 520px) {
  .header .header-inner .header-actions {
    position: static;
    place-self: center end;
    align-items: center;
    gap: 6px;
  }

  .header-actions .profile-wrap {
    width: 40px;
  }

  .sdtm-automator-link {
    width: 40px;
    min-height: 40px;
    margin-top: 0;
    padding: 0;
  }

  .sdtm-automator-label {
    display: none;
  }
}
