/* The native select supplies keyboard, screen-reader and mobile picker support.
   The footer also shows the selected language name. */
.locale-picker {
  position: fixed;
  inset-block-start: max(12px, env(safe-area-inset-top));
  inset-inline-end: max(12px, env(safe-area-inset-right));
  z-index: 45;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--paper, #fffaf2);
  box-shadow: 0 1px 8px #0002;
  font-size: 25px;
  line-height: 1;
}
.locale-picker select { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; font-size: 16px; }
.locale-picker:focus-within { outline: 2px solid currentColor; outline-offset: 3px; }
html[dir="rtl"] input[type="email"], html[dir="rtl"] input[type="url"], html[dir="rtl"] input[autocomplete="one-time-code"] { direction: ltr; }
html[dir="rtl"] .marketing-page, html[dir="rtl"] .host-shell, html[dir="rtl"] .guest-shell { text-align: start; }
.marketing-nav { padding-inline-end: 52px; }
@media (max-width: 700px) { .locale-picker { inset-block-start: max(8px, env(safe-area-inset-top)); } }
.host-workspace-header, .host-public-header, .host-header, .agent-draft-header,
.shared-album-header, .guest-photos-header, .landing-nav, .campaign-topbar {
  padding-inline-end: max(64px, env(safe-area-inset-right));
}

/* Public pages place the selector in their footer; host and guest flows keep it accessible above the app. */
body:has(footer .locale-picker-footer) .locale-picker-floating { display: none; }
.locale-picker-footer { position: relative; inset: auto; display: inline-flex; gap: 6px; width: auto; min-height: 44px; height: auto; padding: 8px 12px; border-radius: 8px; background: transparent; box-shadow: none; font-size: 14px; white-space: nowrap; }
.locale-picker-footer select { position: absolute; inset: 0; opacity: 0; }
body:has(.marketing-footer .locale-picker-footer) .marketing-nav { padding-inline-end: 0; }

.info-footer { display: flex; justify-content: flex-end; width: min(820px, calc(100% - 32px)); margin: 0 auto; padding-block: 0 30px; }
body:has(.info-footer) .landing-nav { padding-inline-end: 32px; }
