.employeeTools {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 6px;
}

.employeeToolCompact {
  position: relative;
  z-index: 610;
  width: 44px;
  min-width: 44px;
  max-width: 44px;
  height: 68px;
  min-height: 68px;
  border: 1px solid #d8e0eb;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 1px 0 rgba(6, 21, 45, 0.03);
}

.employeeToolToggle {
  position: relative;
  display: flex;
  width: 100%;
  height: 100%;
  min-height: 66px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  border: 0;
  border-radius: 7px;
  padding: 5px 3px 4px;
  color: #344054;
  background: transparent;
  box-shadow: none;
}

.employeeToolToggle:hover,
.employeeToolToggle:focus-visible,
.employeeToolToggle[aria-expanded="true"] {
  color: #155eef;
  background: #f5f8ff;
}

.employeeToolIcon {
  display: grid;
  width: 26px;
  height: 26px;
  flex: 0 0 26px;
  place-items: center;
}

.employeeToolIcon svg,
.employeeToolIcon img,
.employeeToolPopoverLogo img,
.employeeToolPopoverLogo svg,
.employeeToolEmptyIcon svg {
  display: block;
  width: 100%;
  height: 100%;
}

.employeeToolIcon img,
.employeeToolPopoverLogo img {
  object-fit: contain;
}

.employeeToolIcon img {
  width: 25px;
  height: 25px;
  opacity: .84;
}

.employeeToolShortLabel {
  max-width: 40px;
  overflow: hidden;
  color: #667085;
  font-size: 9px;
  font-weight: 650;
  line-height: 1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.employeeToolToggle[aria-expanded="true"] .employeeToolShortLabel,
.employeeToolToggle:hover .employeeToolShortLabel {
  color: currentColor;
}

.employeeToolPopover {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 80;
  display: block;
  width: min(410px, calc(100vw - 32px));
  max-height: min(720px, calc(100dvh - 32px));
  overflow: auto;
  overscroll-behavior: contain;
  border: 1px solid #dfe6ef;
  border-radius: 16px;
  padding: 0;
  color: #101828;
  background: #ffffff;
  box-shadow: 0 22px 54px rgba(28, 45, 74, 0.16);
}

.employeeToolPopover[hidden] {
  display: none;
}

.employeeToolPopoverHead {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 11px;
  border-bottom: 1px solid #e7edf5;
  padding: 15px 16px;
}

.employeeToolPopoverLogo {
  display: grid;
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  place-items: center;
}

.employeeToolPopoverTitle {
  display: grid;
  min-width: 0;
  flex: 1 1 auto;
  gap: 3px;
}

.employeeToolPopoverTitle strong {
  color: #101828;
  font-size: 15px;
  line-height: 1.2;
}

.employeeToolPopoverTitle small {
  overflow: hidden;
  color: #667085;
  font-size: 11px;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.employeeToolClose {
  display: grid;
  width: 32px;
  height: 32px;
  min-height: 32px;
  flex: 0 0 32px;
  place-items: center;
  border: 1px solid #e4e7ec;
  border-radius: 9px;
  padding: 0;
  color: #667085;
  background: #ffffff;
  box-shadow: none;
}

.employeeToolClose:hover,
.employeeToolClose:focus-visible {
  color: #155eef;
  background: #f5f8ff;
}

.employeeToolClose svg {
  width: 17px;
  height: 17px;
}

.employeeToolPopoverBody {
  display: grid;
  gap: 18px;
  padding: 16px;
}

.employeeToolGroup {
  display: grid;
  gap: 12px;
}

.employeeToolGroup + .employeeToolGroup {
  border-top: 1px solid #e3e9f2;
  padding-top: 18px;
}

.employeeToolGroupHead {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 9px;
}

.employeeToolGroupIcon {
  display: grid;
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  place-items: center;
}

.employeeToolGroupIcon img,
.employeeToolGroupIcon svg {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

[data-employee-tool-group="userscripts"] .employeeToolGroupIcon img {
  width: 23px;
  height: 23px;
}

[data-employee-tool-group="extensions"] .employeeToolGroupIcon svg {
  width: 26px;
  height: 26px;
}

.employeeToolGroupHead > span:nth-child(2) {
  display: grid;
  min-width: 0;
  flex: 1 1 auto;
  gap: 2px;
}

.employeeToolGroupHead strong {
  color: #101828;
  font-size: 13px;
  line-height: 1.2;
}

.employeeToolGroupHead small {
  color: #667085;
  font-size: 10px;
  line-height: 1.25;
}

.employeeToolCard {
  display: grid;
  gap: 8px;
  border: 1px solid #dfe6ef;
  border-radius: 13px;
  padding: 14px;
  background: linear-gradient(145deg, #fbfcff 0%, #f5f8ff 100%);
}

.employeeToolCardTopline,
.employeeToolCardFooter {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.employeeToolType,
.employeeToolVersion {
  border-radius: 999px;
  padding: 4px 8px;
  font-size: 10px;
  font-weight: 750;
  line-height: 1;
}

.employeeToolType {
  color: #155eef;
  background: #e8f0ff;
}

.employeeToolVersion {
  color: #344054;
  background: #eef2f6;
}

.employeeToolCard h4 {
  margin: 0;
  color: #101828;
  font-size: 14px;
  line-height: 1.3;
}

.employeeToolCard p,
.employeeToolHint,
.employeeToolEmpty p {
  margin: 0;
  color: #667085;
  font-size: 11px;
  line-height: 1.45;
}

.employeeToolCardFooter {
  margin-top: 3px;
  padding-top: 11px;
  border-top: 1px solid #e3e9f2;
}

.employeeToolCardFooter > span {
  overflow: hidden;
  color: #7b8798;
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.employeeToolInstall {
  display: inline-flex;
  min-height: 36px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 1px solid #155eef;
  border-radius: 9px;
  padding: 8px 11px;
  color: #ffffff;
  background: #155eef;
  font-size: 11px;
  font-weight: 750;
  line-height: 1.1;
  text-decoration: none;
}

.employeeToolInstall:hover,
.employeeToolInstall:focus-visible {
  color: #ffffff;
  background: #004eeb;
}

.employeeToolInstall.is-installed,
.employeeToolInstall.is-installed:hover,
.employeeToolInstall.is-installed:focus-visible {
  border-color: #d0d5dd;
  color: #667085;
  background: #e4e7ec;
  box-shadow: none;
  cursor: default;
}

.employeeToolInstall svg {
  width: 15px;
  height: 15px;
  flex: 0 0 15px;
}

.employeeToolHint {
  padding: 0 2px;
}

.employeeToolEmpty {
  display: grid;
  min-height: 190px;
  place-items: center;
  align-content: center;
  gap: 9px;
  border: 1px dashed #d8e0eb;
  border-radius: 13px;
  padding: 24px;
  text-align: center;
  background: #fbfcfe;
}

.employeeToolEmptyIcon {
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  opacity: .78;
  filter: saturate(.72);
}

.employeeToolEmpty strong {
  color: #344054;
  font-size: 13px;
}

@media (min-width: 761px) {
  .headerRight > .employeeTools {
    width: 44px;
    min-width: 44px;
    max-width: 44px;
    flex: 0 0 44px;
  }
}

@media (max-width: 760px) {
  .employeeTools {
    width: 44px;
    justify-self: end;
  }

  .employeeToolPopover {
    position: fixed;
    top: auto;
    right: max(12px, env(safe-area-inset-right));
    bottom: max(12px, env(safe-area-inset-bottom));
    left: max(12px, env(safe-area-inset-left));
    z-index: 4200;
    width: auto;
    max-width: none;
    max-height: min(82vh, 720px);
    max-height: min(82dvh, 720px);
  }
}

@media (max-width: 430px) {
  .employeeToolCardFooter {
    align-items: stretch;
    flex-direction: column;
  }

  .employeeToolInstall {
    width: 100%;
  }
}
