.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.tool-menu {
  position: relative;
  z-index: 20;
  flex: none;
}

.tool-menu-toggle {
  display: grid;
  width: 42px;
  height: 42px;
  place-content: center;
  gap: 4px;
  padding: 0;
  border: 1px solid #454840;
  border-radius: 4px;
  background: #1b1d19;
  color: #fff;
  cursor: pointer;
}

.tool-menu-toggle:hover,
.tool-menu-toggle[aria-expanded="true"] {
  border-color: #b8ff45;
  background: #252821;
}

.tool-menu-toggle > span {
  display: block;
  width: 17px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
}

.tool-menu-popover {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: min(270px, calc(100vw - 16px));
  padding: 6px;
  border: 1px solid #cfd2ca;
  border-radius: 7px;
  background: #fff;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.22);
  color: #10110f;
}

.tool-menu-popover a {
  position: relative;
  display: grid;
  gap: 1px;
  min-height: 58px;
  align-content: center;
  padding: 8px 42px 8px 12px;
  border-radius: 4px;
  text-decoration: none;
}

.tool-menu-popover a:hover {
  background: #f1f3ed;
}

.tool-menu-popover a[aria-current="page"] {
  background: #edf6df;
}

.tool-menu-popover a[aria-current="page"]::after {
  position: absolute;
  top: 50%;
  right: 11px;
  width: 8px;
  height: 8px;
  translate: 0 -50%;
  border-radius: 50%;
  background: #78bd12;
  content: "";
}

.tool-menu-popover strong {
  font-family: Montserrat, "Avenir Next", Avenir, "Helvetica Neue", Arial, sans-serif;
  font-size: 12px;
}

.tool-menu-popover small {
  color: #6f726a;
  font-size: 11px;
}

@media (max-width: 620px) {
  .header-actions {
    gap: 8px;
  }

  .tool-menu-toggle {
    width: 40px;
    height: 40px;
  }
}
