.locale-switch {
  position: relative;
  display: flex;
  align-items: center;
  flex: none;
  font-family: inherit;
}
.locale-switch[hidden], .locale-switch__panel[hidden] { display: none; }
.locale-switch button {
  appearance: none;
  border: 0;
  font-family: inherit;
  cursor: pointer;
}
.locale-switch__toggle {
  display: inline-flex;
  gap: 7px;
  align-items: center;
  min-height: 40px;
  padding: 0 12px;
  border-radius: 99px;
  background: #e2eee7;
  color: #032d1c;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}
.locale-switch__toggle::after { content: '▾'; line-height: 1; }
.head .locale-switch__toggle { background: #032d1c; color: #fff6e6; }
.head[data-tone="dark"] .locale-switch__toggle { background: #fff6e6; color: #032d1c; }
.locale-switch button:focus-visible { outline: 2px solid #017b51; outline-offset: 2px; }
.head[data-tone="emerald"] .locale-switch__toggle:focus-visible { outline-color: #fff6e6; }
.locale-switch__flag {
  font: 18px/1 'Apple Color Emoji', 'Segoe UI Emoji', 'Noto Color Emoji', sans-serif;
}
.locale-switch__panel {
  position: absolute;
  inset-inline-end: 0;
  top: calc(100% + 8px);
  z-index: 75;
  display: grid;
  width: min(220px, calc(100vw - 48px));
  max-height: min(65vh, 430px);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 6px;
  border: 1px solid #d2e0d7;
  border-radius: 14px;
  background: #fff6e6;
  color: #032d1c;
  box-shadow: 0 16px 30px #032d1c35;
}
.locale-switch__panel button {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 40px;
  padding: 5px 10px;
  border-radius: 8px;
  background: transparent;
  color: #032d1c;
  font-size: 14px;
  text-align: start;
}
.locale-switch__panel button:hover, .locale-switch__panel button[aria-pressed="true"] {
  background: #e2eee7;
}
.locale-switch__panel button[aria-pressed="true"] { font-weight: 750; }
@media (max-width: 1100px) {
  .head .locale-switch__name { display: none; }
}
@media (max-width: 820px) {
  .head .locale-switch__toggle { min-width: 44px; min-height: 44px; }
  .head .locale-switch__panel { inset-inline-end: -50px; }
}
@media (max-width: 650px) {
  .top .locale-switch__name { display: none; }
}
