/* Only the bounded locale bootstrap may set this gate; absent JS leaves the English document visible. */
html[data-locale-pending] body { visibility: hidden; }
.slevin-language { max-inline-size: 100%; margin-block: 0.5rem; }
.slevin-language select { max-inline-size: 100%; font: inherit; }
[dir="rtl"] input[type="email"], [dir="rtl"] .addr, [dir="rtl"] #account-address { direction: ltr; unicode-bidi: isolate; }
/* The auth header has a fixed logo and a narrow-screen layout. Keep the native
   picker within its remaining space; its full translated label stays accessible. */
@media (max-width: 900px) {
  header.top > .slevin-language { flex: 0 1 11rem; min-inline-size: 0; margin-block: 0; }
  header.top > .slevin-language label > span { position: absolute; inline-size: 1px; block-size: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  header.top > .slevin-language select { inline-size: 100%; min-inline-size: 0; }
}
/* The phone hides the desktop strip. Keep its settings entry reachable here,
   including after a language reload that closes the quick-settings panel. */
@media (max-width: 980px) {
  #app .top__actions > [data-panel-btn="settings"] { display: inline-grid; }
}

/* The open drawer owns the bottom area; background tabs must not cover its picker. */
@media(max-width:980px) {
  #app[data-rail="open"] .mail-mobile-tabs { visibility: hidden; }
}
