.language-switch { display:inline-flex; align-items:center; gap:3px; flex-wrap:nowrap; flex-shrink:0; color:#8a6b3e; font-size:11px; }
.language-switch button { border:1px solid transparent; border-radius:3px; padding:4px 5px; min-height:28px; background:transparent; color:#70502e; font:inherit; cursor:pointer; white-space:nowrap; }
.language-switch button[aria-pressed=true] { background:#ffdb82; border-color:#bf9a54; color:#8c2f19; font-weight:700; }
.language-switch button:focus { outline:2px solid #155a81; outline-offset:2px; }
.footer .language-switch { margin:7px 0; }
.entry-tools { display:flex; flex-wrap:wrap; gap:9px 16px; justify-content:space-between; margin-top:10px; font-size:11px; }
.entry-tabs .active-account { color:#a62d1b; font-weight:700; padding:10px 0; border-bottom:2px solid #b53321; margin-right:20px; }
.entry-tabs>a { display:inline-block; padding:10px 0; font-size:12px; }
@media(max-height:520px) and (min-width:600px) { .language-switch button { min-height:22px; padding:2px 7px; } }
/* Keep the authenticated selector inside a short Android landscape viewport. */
@media(max-height:520px) and (min-width:600px) {
 .client-context .entry-panel.is-servers { max-height:calc(100vh - 144px); max-height:calc(100dvh - 144px); }
}

/* Keep language choices alongside navigation on narrow phones too. */
@media(max-width:480px) { .nav { gap:8px; } .nav .brand>span { display:none; } .nav .language-switch { gap:1px; } .nav .language-switch button { padding:4px; min-width:25px; } }
