.language-picker { color: #1b2240; line-height: 1.6; font-family: system-ui, sans-serif; position: relative; font-size: 14px; }
.language-picker a { color: inherit; }
.language-picker summary { color: #1b2240; display: flex; align-items: center; gap: 9px; cursor: pointer; padding: 10px 12px; border: 1px solid #e3e7f0; border-radius: 12px; list-style: none; background: white; }
.language-picker summary::-webkit-details-marker { display: none; }
.language-picker[open] summary { border-color: #3459f6; }
.language-panel { z-index: 20; color: #1b2240; text-align: start; position: absolute; inset-inline-end: 0; top: calc(100% + 10px); width: min(620px, calc(100vw - 40px)); padding: 20px; border: 1px solid #e3e7f0; border-radius: 18px; background: white; box-shadow: 0 20px 70px #18224c26; }
.language-search { display: grid; gap: 8px; font-weight: 600; }
.language-search input { width: 100%; min-width: 0; padding: 11px 12px; border: 1px solid #d7dded; border-radius: 9px; background: #f7f8fc; color: #1b2240; font-weight: 400; }
.language-links { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; margin-top: 16px; max-height: min(390px, 50vh); overflow: auto; overscroll-behavior: contain; scrollbar-gutter: stable; }
.language-links a { text-decoration: none; display: flex; flex-direction: column; justify-content: center; padding: 9px 10px; border-radius: 8px; overflow-wrap: anywhere; line-height: 1.4; }
.language-links small { color: #6f7890; font-size: 11px; margin-top: 2px; }
.language-links a:hover, .language-links a[aria-current] { background: #eef1ff; color: #3459f6; }
.language-count { color: #56617b; margin: 14px 0 0; font-size: 12px; }

.language-picker summary > span:first-of-type { overflow-wrap: anywhere; min-width: 0; }
.language-picker summary svg { flex: none; }
.language-label-compact { display: none; }
.language-chevron { transition: transform .15s ease; }
.language-picker[open] .language-chevron { transform: rotate(180deg); }
.language-picker :focus-visible { outline: 3px solid #3459f6; outline-offset: 3px; }
@media (max-width: 600px) {
  .language-picker { font-size: 12px; }
  .language-label-full { display: none; }
  .language-label-compact { display: inline; }
  .language-picker summary { max-width: 150px; padding: 8px; gap: 6px; }
  .language-panel { position: fixed; top: 76px; inset-inline: 18px; width: auto; padding: 16px; }
  .language-links { grid-template-columns: repeat(2, minmax(0, 1fr)); max-height: 45vh; }
}
@media (prefers-reduced-motion: reduce) { .language-chevron { transition: none; } }
