.language-switch { position: relative; flex: 0 0 auto; }
.header-tools .theme-toggle-desktop { order: 0; }
.header-tools .language-switch { order: 1; }
.language-switch > summary { display: flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 50%; cursor: pointer; list-style: none; color: inherit; }
.language-switch > summary::-webkit-details-marker { display: none; }
.language-switch > summary:hover, .language-switch[open] > summary { background: rgba(125, 99, 255, .1); }
.language-switch > summary:focus-visible { outline: 2px solid #8066ff; outline-offset: 3px; }
.language-switch-menu { position: absolute; top: calc(100% + 12px); right: 0; min-width: 168px; padding: 7px; border: 1px solid rgba(125,99,255,.16); border-radius: 16px; background: #fff; box-shadow: 0 12px 36px rgba(45,32,80,.14); z-index: 160; }
.language-switch-menu a { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 10px 12px; border-radius: 10px; color: inherit; text-decoration: none; font-size: 14px; }
.language-switch-menu a:hover, .language-switch-menu a:focus-visible, .language-switch-menu a[aria-current] { background: rgba(125,99,255,.1); }
html[data-theme="dark"] .language-switch-menu { background: #252331; color: #f5f2ff; }
@media (max-width: 900px) {
  .site-header .header-inner { flex-wrap: nowrap; gap: 6px; }
  .site-header .header-tools { display: flex; gap: 5px; margin-left: auto; padding-right: 44px; }
  .site-header .header-tools .theme-toggle-desktop { display: inline-flex !important; }
  .site-header .logo { flex: 1 1 auto; min-width: 0; max-width: calc(100% - 124px); }
  .site-header .logo-text { min-width: 0; }
  .site-header .logo-name, .site-header .logo-sub { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
}
