.more-apps {
  position: relative;
  display: inline-flex;
}

.more-apps summary {
  list-style: none;
  cursor: pointer;
}

.nav .more-apps > summary.link {
  display: inline-flex;
  align-items: center;
  color: var(--muted);
  font-weight: 500;
  line-height: 1.6;
}

.more-apps summary::-webkit-details-marker {
  display: none;
}

.more-apps summary::after {
  content: "\f078";
  display: inline-block;
  margin-left: 8px;
  font-family: "Font Awesome 6 Free";
  font-size: 11px;
  font-weight: 900;
}

.nav .more-apps > summary.link:hover,
.nav .more-apps[open] > summary.link,
.more-apps[open] summary {
  color: var(--text);
  background: var(--bg-soft);
}

.more-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 80;
  min-width: 190px;
  padding: 8px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--card);
  box-shadow: var(--shadow);
}

.more-menu a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border-radius: 10px;
  color: var(--muted);
  font-weight: 650;
  white-space: nowrap;
}

.more-menu a:hover {
  color: var(--text);
  background: var(--bg-soft);
}

.more-menu img,
.more-menu .app-badge {
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
  border-radius: 6px;
  object-fit: cover;
}

.more-menu .app-badge {
  display: inline-grid;
  place-items: center;
  background: linear-gradient(135deg, #06b6d4, #8b5cf6 52%, #f43f5e);
  color: white;
  font-size: 10px;
  font-weight: 850;
}

.brand .brand-mark {
  border-radius: 8px;
  object-fit: cover;
}

.links .more-apps summary {
  color: var(--muted);
  font-weight: 500;
}

.links .more-apps summary:hover {
  color: var(--text);
}

.product-menu {
  display: flex;
  gap: 6px;
  align-items: center;
  flex-wrap: wrap;
}

.product-menu .link[aria-current="page"] {
  color: var(--text);
  background: var(--bg-soft);
}

.footer-more-apps {
  display: inline-flex;
}

.footer-more-apps .more-menu {
  top: auto;
  bottom: calc(100% + 8px);
}

@media (max-width: 640px) {
  .more-apps,
  .more-apps summary,
  .product-menu,
  .product-menu .link {
    width: 100%;
  }

  .more-menu {
    position: static;
    width: 100%;
    margin-top: 6px;
    box-shadow: none;
  }
}
