:root {
  --fs-font-ui: "Inter", "Noto Sans", "Noto Sans Thai", "Noto Sans SC", "Noto Sans JP", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

html, body, button, input, select, textarea {
  font-family: var(--fs-font-ui);
}

/* Patch 172: language switch must not create an extra floating island.
   Guest/Team landing should use the legacy-style #lang-toggle when present. */
.fs-lang-switch {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  justify-content: center;
}

/* Only style explicit fs switches, not legacy #lang-toggle. */
.fs-lang-switch__btn {
  min-width: 44px;
  min-height: 32px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.35);
  background: rgba(0,0,0,0.25);
  color: currentColor;
  font: inherit;
  font-size: 13px;
  line-height: 1;
  cursor: pointer;
}

.fs-lang-switch__btn.is-active {
  background: rgba(255,255,255,0.9);
  color: #111;
}

/* Safety: if patch 171 inserted a raw switch into legacy landing, hide it.
   The installer also removes it from templates; this covers cached/hand-edited pages. */
body.bg-image > #language-switch,
body.bg-image > [data-language-switch].fs-lang-switch:not(.legacy-approved) {
  display: none !important;
}
