.header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  margin-left: auto;
  min-width: 0;
}

.demo-market .brand { flex: 0 0 auto; }

.language-switcher {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  gap: 3px;
  padding: 4px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: .04em;
}

.language-switcher a {
  display: grid;
  place-items: center;
  min-width: 32px;
  min-height: 30px;
  padding: 0 8px;
  border-radius: 999px;
  text-decoration: none;
  transition: color .18s ease, background-color .18s ease, box-shadow .18s ease;
}

.links-header .language-switcher {
  color: #aebbd4;
  background: rgba(11, 22, 44, .82);
  border: 1px solid rgba(143, 174, 228, .23);
}

.links-header .language-switcher a { color: inherit; }
.links-header .language-switcher a:hover { color: #fff; }
.links-header .language-switcher a[aria-current="page"] {
  color: #061225;
  background: #66e4ff;
  box-shadow: 0 4px 14px rgba(61, 210, 255, .25);
}

.demo-market .language-switcher {
  color: #6e5149;
  background: #fff5f1;
  border: 1px solid rgba(238, 77, 45, .18);
}

.demo-market .language-switcher a { color: inherit; }
.demo-market .language-switcher a:hover { color: #d63d20; }
.demo-market .language-switcher a[aria-current="page"] {
  color: #fff;
  background: #ee4d2d;
  box-shadow: 0 4px 14px rgba(238, 77, 45, .22);
}

@media (max-width: 700px) {
  .header-actions { gap: 7px; }
  .language-switcher { gap: 1px; padding: 3px; font-size: 11px; }
  .language-switcher a { min-width: 29px; min-height: 28px; padding: 0 6px; }
  .demo-market .links-panel { width: min(190px, 49vw); }
}

@media (max-width: 520px) {
  .links-header .header-brand span,
  .links-header .share-button > span,
  .demo-market .brand > span:last-child { display: none; }
}
