.er-site-tools {
  position: relative;
  z-index: 5;
  border-block-end: 1px solid #303646;
  background: #151923;
  color: #f4f6fc;
  font: 600 .875rem/1.35 system-ui, sans-serif;
}

.er-site-tools *, .er-site-tools *::before {
  box-sizing: border-box;
}

.er-site-tools__inner {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 4px 12px;
  max-width: 74rem;
  margin-inline: auto;
  padding: 4px clamp(8px, 2vw, 20px);
}

.er-site-tools__links, .er-mobile-app {
  display: flex;
  flex-wrap: wrap;
  gap: 0 8px;
}

.er-site-tools .er-mobile-app {
  display: none;
}

.er-site-tools a, .er-site-tools summary {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding-inline: 7px;
  color: #f4f6fc;
  text-decoration: none;
}

.er-site-tools .er-mobile-app a {
  border: 1px solid #6880a6;
  border-radius: 8px;
  background: #243554;
}

.er-site-tools a:hover, .er-site-tools summary:hover {
  text-decoration: underline;
}

.er-site-tools a:focus-visible, .er-site-tools summary:focus-visible {
  outline: 2px solid #bfd8ff;
  outline-offset: -2px;
}

.er-site-tools summary {
  gap: 6px;
  list-style: none;
  cursor: pointer;
}

.er-site-tools summary::-webkit-details-marker {
  display: none;
}

.er-site-tools summary::after {
  content: "";
  width: 6px;
  height: 6px;
  border: solid currentColor;
  border-width: 0 1px 1px 0;
  transform: rotate(45deg);
  margin-block-start: -3px;
}

.er-site-tools details[open] summary::after {
  transform: rotate(225deg);
  margin-block-start: 3px;
}

.er-site-tools__menu {
  position: absolute;
  top: 100%;
  right: clamp(8px, 2vw, 20px);
  width: min(24rem, calc(100% - 16px));
  max-height: 70vh;
  overflow: auto;
  padding: 4px;
  margin: 0;
  list-style: none;
  background: #151923;
  border: 1px solid #506585;
  border-radius: 10px;
  box-shadow: 0 8px 20px #0006;
}

.er-site-tools__menu li + li {
  border-block-start: 1px solid #303646;
}

.er-site-tools__menu a, .er-site-tools__menu [aria-current] {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  min-height: 44px;
  gap: 4px 12px;
  padding: 6px 10px;
}

.er-site-tools__menu small {
  font-size: .75rem;
  color: #bfd0e6;
}

@media (max-width: 767px), (hover: none) and (pointer: coarse) {
  .er-site-tools .er-mobile-app {
    display: flex;
  }

  :root[data-er-app-platform="ios"] .er-site-tools .er-mobile-app__store--android,
  :root[data-er-app-platform="android"] .er-site-tools .er-mobile-app__store--ios {
    display: none;
  }
}

.er-site-tools__menu-note {
  padding: 8px 10px;
  color: #bfd0e6;
  background: #202839;
  font-size: .8125rem;
}
