.topSettings {
  position: relative;
}

.topSettings > summary {
  list-style: none;
}

.topSettings > summary::-webkit-details-marker {
  display: none;
}

.topIconButton {
  display: inline-flex;
  min-width: 42px;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  color: #182033;
  text-decoration: none;
  white-space: nowrap;
}

.topIconButton:hover {
  color: #182033;
  text-decoration: none;
  border-color: rgba(86, 70, 222, .28);
  background: #f5f2ff;
}

.topSettingsGear {
  font-size: 22px;
  line-height: 1;
}

.topSettingsMenu {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  z-index: 120;
  display: grid;
  width: 215px;
  gap: 8px;
  padding: 13px;
  background: rgba(255, 255, 255, .98);
  border: 1px solid rgba(48, 59, 82, .14);
  border-radius: 18px;
  box-shadow: 0 22px 55px rgba(30, 39, 61, .2);
  transform-origin: top right;
  animation: topSettingsOpen .18s ease-out;
}

.topSettingsMenu::before {
  position: absolute;
  top: -7px;
  right: 20px;
  width: 13px;
  height: 13px;
  content: "";
  background: #fff;
  border-top: 1px solid rgba(48, 59, 82, .14);
  border-left: 1px solid rgba(48, 59, 82, .14);
  transform: rotate(45deg);
}

.topSettingsMenu strong {
  padding: 2px 5px 5px;
  color: #667085;
  font-size: 11px;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.topSettingsOption {
  width: 100%;
  min-height: 42px;
  padding: 9px 12px;
  color: #1c263b;
  cursor: pointer;
  background: #f6f7fa;
  border: 1px solid #e7eaf0;
  border-radius: 12px;
  font: inherit;
  font-size: 12px;
  font-weight: 900;
  text-align: left;
}

.topSettingsOption:hover,
.topSettingsOption:focus-visible {
  color: #5141d2;
  background: #f0edff;
  border-color: #d9d2ff;
  outline: 0;
}

.globalMenuButton {
  border-color: rgba(86, 70, 222, .22);
  background: linear-gradient(180deg, #fff, #f5f2ff);
}

.hamburgerIcon {
  display: grid;
  width: 20px;
  gap: 4px;
}

.hamburgerIcon i {
  display: block;
  width: 100%;
  height: 2px;
  background: currentColor;
  border-radius: 99px;
}

@keyframes topSettingsOpen {
  from { opacity: 0; transform: translateY(-5px) scale(.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@media (max-width: 1180px) {
  .topIconLabel {
    display: none;
  }

  .topIconButton {
    width: 40px;
    padding-right: 8px;
    padding-left: 8px;
  }
}

@media (max-width: 720px) {
  .topSettingsMenu {
    position: fixed;
    top: 72px;
    right: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .topSettingsMenu {
    animation: none;
  }
}
