.mindlink-language-switcher {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  border: 1px solid rgba(148, 163, 184, .28);
  border-radius: 11px;
  background: rgba(255, 255, 255, .82);
  box-shadow: 0 6px 16px rgba(15, 23, 42, .05);
}

.mindlink-language-switcher button {
  min-width: 30px;
  height: 28px;
  padding: 0 7px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #64748b;
  font: inherit;
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
}

.mindlink-language-switcher button.is-active {
  background: linear-gradient(135deg, #4386ed, #54b8e9);
  color: #fff;
  box-shadow: 0 5px 12px rgba(59, 130, 246, .22);
}

.mindlink-language-switcher--mobile {
  display: none;
  flex: 0 0 auto;
  margin-left: auto;
}

.mindlink-language-toggle {
  display: none;
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  margin-left: auto;
  padding: 0;
  border: 1px solid rgba(59, 130, 246, .24);
  border-radius: 11px;
  background: rgba(239, 246, 255, .94);
  color: #2563eb;
  font: inherit;
  font-size: 10px;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 6px 14px rgba(59, 130, 246, .1);
}

.sidebar-language-row {
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 4px 12px;
  padding: 9px 10px;
  border: 1px solid rgba(148, 163, 184, .2);
  border-radius: 13px;
  background: rgba(248, 250, 252, .78);
  color: #64748b;
  font-size: 12px;
  font-weight: 800;
}

body.dark .sidebar-language-row {
  border-color: rgba(125, 211, 252, .16);
  background: rgba(15, 23, 42, .54);
  color: #a8b8ce;
}

body.dark .mindlink-language-toggle {
  border-color: rgba(125, 211, 252, .24);
  background: rgba(15, 23, 42, .78);
  color: #bae6fd;
}

body.dark .mindlink-language-switcher {
  border-color: rgba(125, 211, 252, .2);
  background: rgba(15, 23, 42, .74);
}

body.dark .mindlink-language-switcher button {
  color: #a8b8ce;
}

body.dark .mindlink-language-switcher button.is-active {
  color: #fff;
}

@media (min-width: 900px) and (max-width: 1400px) {
  .topbar {
    grid-template-columns: auto minmax(150px, 1fr) auto !important;
  }

  .topbar-brand-inline {
    min-width: 160px;
  }

  .topbar-brand-inline small,
  .top-filter-btn span,
  .top-tools-menu > summary span {
    display: none;
  }

  .top-filter-btn,
  .top-tools-menu > summary {
    width: 42px;
    padding-inline: 0 !important;
  }

  .topbar-add-btn {
    padding-inline: 12px !important;
  }
}

@media (max-width: 1020px) {
  .site-header .mindlink-language-switcher {
    margin-left: auto;
  }
}

@media (max-width: 760px) {
  .page-shell > .contact-section {
    order: 12;
  }

  .topbar-brand-inline .mindlink-language-toggle {
    display: inline-grid;
    place-items: center;
  }

  .sidebar-language-row {
    display: flex;
  }

  .mindlink-language-switcher--desktop {
    display: none;
  }

  .topbar-brand-inline .mindlink-language-toggle + .mobile-theme-trigger {
    margin-left: 0;
  }

  .mindlink-language-switcher {
    border-radius: 10px;
  }

  .mindlink-language-switcher button {
    min-width: 26px;
    height: 27px;
    padding: 0 5px;
    font-size: 10px;
  }

  .site-header .header-actions .header-action-secondary {
    display: none;
  }
}

@media (max-width: 390px) {
  .topbar-brand-inline > span:nth-of-type(2) {
    min-width: 0;
  }

  .topbar-brand-inline > span:nth-of-type(2) strong {
    max-width: 110px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
}
