.topbar nav.rs-menu {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-width: 0;
  overflow: visible;
}
.topbar nav.rs-menu .rs-menu-group {
  position: relative;
  flex: 0 0 auto;
}
.topbar nav.rs-menu .rs-menu-link,
.topbar nav.rs-menu .rs-menu-trigger {
  display: flex;
  align-items: center;
  gap: 7px;
  min-height: 42px;
  padding: 8px clamp(7px, 1vw, 14px);
  border-radius: 10px;
  font-size: 14px;
  font-weight: 650;
  white-space: nowrap;
}
.topbar nav.rs-menu .rs-menu-trigger {
  cursor: pointer;
  list-style: none;
}
.topbar nav.rs-menu .rs-menu-trigger::-webkit-details-marker { display: none; }
.topbar nav.rs-menu .rs-menu-trigger::after {
  content: '';
  width: 6px;
  height: 6px;
  margin: 0 2px 3px 3px;
  border: solid currentColor;
  border-width: 0 1.5px 1.5px 0;
  transform: rotate(45deg);
}
.topbar nav.rs-menu .rs-menu-group[open] .rs-menu-trigger,
.topbar nav.rs-menu .rs-menu-trigger:hover { background: var(--surface, #f3f7fa); }
.topbar nav.rs-menu .rs-menu-trigger:focus-visible,
.topbar nav.rs-menu a:focus-visible {
  outline: 2px solid #197648;
  outline-offset: -2px;
}
.topbar nav.rs-menu .rs-menu-popover {
  position: absolute;
  z-index: 1;
  top: 100%;
  inset-inline-end: 0;
  margin-top: 8px;
  min-width: 202px;
  max-height: min(380px, 65vh);
  overflow: auto;
  padding: 6px;
  border: 1px solid #dce6ee;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 10px 28px #19334e2a;
}
.topbar nav.rs-menu .rs-menu-popover a {
  display: flex;
  flex: none;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  gap: 9px;
  min-height: 42px;
  padding: 9px 11px;
  font-size: 14px;
  white-space: normal;
}
.topbar nav.rs-menu .rs-menu-popover a span { display: inline; font-size: inherit; white-space: normal; }
.topbar nav.rs-menu .rs-menu-symbol { font-size: 17px; line-height: 1; }

@media (max-width: 760px) {
  .topbar nav.rs-menu {
    position: fixed;
    inset: auto 0 0;
    z-index: 1200;
    justify-content: space-around;
    align-items: stretch;
    margin: 0;
    padding: 6px 4px calc(6px + env(safe-area-inset-bottom, 0px));
    background: #fff;
    border-top: 1px solid #e4ebf2;
  }
  .topbar nav.rs-menu > .rs-menu-group,
  .topbar nav.rs-menu > .rs-menu-link { flex: 1 1 0; min-width: 0; }
  .topbar nav.rs-menu > .rs-menu-group { position: static; }
  .topbar nav.rs-menu .rs-menu-link,
  .topbar nav.rs-menu .rs-menu-trigger {
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    min-height: 49px;
    padding: 4px 2px;
    font-size: 19px;
    line-height: 1.1;
  }
  .topbar nav.rs-menu .rs-menu-link span,
  .topbar nav.rs-menu .rs-menu-label { display: block; font-size: 10px; text-align: center; white-space: normal; }
  .topbar nav.rs-menu .rs-menu-trigger::after { display: none; }
  .topbar nav.rs-menu .rs-menu-popover {
    position: fixed;
    inset: auto 10px calc(67px + env(safe-area-inset-bottom, 0px));
    margin: 0;
    min-width: 0;
  }
}
