/* Language and theme switches shared by every page — tokens from tokens.css (DESIGN.md). */
.prefs { display: inline-flex; align-items: center; gap: 6px; flex-shrink: 0; }
.language-switch, .theme-switch { display: inline-flex; align-items: center; gap: 3px; padding: 3px; flex-shrink: 0; border: 1px solid var(--line-2); border-radius: var(--r-md); background: var(--bg-2); }
.language-switch button, .theme-switch button { display: inline-grid; place-items: center; min-height: 28px; padding: 7px 8px; border: 0; border-radius: var(--r-sm); background: transparent; color: var(--muted); font: 600 11px/1.3 var(--mono); cursor: pointer; transition: color var(--dur-fast), background var(--dur-fast); }
.theme-switch button { padding: 6px 7px; }
.theme-switch svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.language-switch button:hover, .theme-switch button:hover { color: var(--text); }
.language-switch button[aria-pressed="true"], .theme-switch button[aria-pressed="true"] { background: var(--orange); color: var(--bg); }
.language-switch button:focus-visible, .theme-switch button:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; }
.login-panel > .prefs { margin-bottom: 20px; }
@media (max-width: 560px) { .language-switch button { padding: 6px; } .theme-switch button { padding: 5px 6px; } .prefs { gap: 4px; } }
