/* Global language preference; geometry follows the adjacent theme preference. */
.language-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 7px 3px 12px; }
.language-label { color: var(--text-dim); font-size: var(--fs-xs, 12px); letter-spacing: .3px; }
.language-switch { display: inline-flex; flex: none; gap: 2px; padding: 3px; border: 1px solid var(--border); border-radius: 9px; background: var(--fill-weak); }
.language-switch button { min-width: 39px; min-height: 28px; border: 0; border-radius: 6px; padding: 4px 9px; background: transparent; color: var(--text-dim); font: inherit; font-size: 12px; line-height: 1.4; font-weight: 650; cursor: pointer; }
.language-switch button.on { background: var(--accent-soft); color: var(--accent); }
.language-switch button:hover { color: var(--text); }
.language-switch button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.rail.rail-collapsed .language-row { display: none; }
.auth-language { display: flex; align-items: center; justify-content: flex-end; gap: 12px; margin-top: 18px; }
html[lang="en"] .rail-label, html[lang="en"] .rail-sublabel { white-space: normal; overflow-wrap: normal; line-height: 1.35; }
html[lang="en"] .hf-title { letter-spacing: 0; }
html[lang="en"] button { word-break: normal; }
@media (max-width: 768px) { .rail.rail-collapsed .language-row { display: none; } }
