.language-picker {
  display: inline-flex;
  flex: none;
  width: max-content;
  max-width: 100%;
}
.language-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 36px;
  padding: 5px 9px;
  appearance: none;
  border: 1px solid #9db8d5a8;
  border-radius: 999px;
  color: #19466f;
  background: linear-gradient(155deg, #ffffffed 8%, #f1f8fff2 58%, #e5effbf0);
  box-shadow: inset 0 1px 0 #fff, 0 2px 5px -3px #164e7e50;
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  transition: border-color .17s, background-color .17s, box-shadow .17s;
}
.language-trigger:hover, .language-trigger[aria-expanded=true] {
  border-color: #6c9ed5;
  color: #135797;
  box-shadow: inset 0 1px 0 #fff, 0 3px 9px -4px #285c9860;
}
.language-trigger:focus-visible { outline: 2px solid #1573da; outline-offset: 2px; }
.language-trigger svg, .language-option svg {
  display: block;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.65;
  stroke-linecap: round;
  stroke-linejoin: round;
  pointer-events: none;
}
.language-globe { width: 19px; height: 19px; color: #1e65a5; }
.language-code { font-size: 11px; line-height: 1; font-weight: 720; letter-spacing: .035em; }
.language-chevron { width: 13px; height: 13px; color: #59728d; transition: transform .17s; }
.language-trigger[aria-expanded=true] .language-chevron { transform: rotate(180deg); }

.language-menu {
  position: fixed;
  z-index: 100;
  inset: auto;
  width: 204px;
  overflow: auto;
  padding: 6px;
  border: 1px solid #b6cce4;
  border-radius: 19px;
  color: #193854;
  background: linear-gradient(154deg, #fffffffa 6%, #f8fbfff9 57%, #edf6fffa);
  box-shadow: inset 0 1px 0 #fff, 0 15px 36px -12px #244d7759, 0 2px 7px #244d7714;
  -webkit-backdrop-filter: blur(24px) saturate(148%);
  backdrop-filter: blur(24px) saturate(148%);
  overscroll-behavior: contain;
  scrollbar-width: thin;
}
.language-heading {
  display: block;
  margin: 1px 4px 4px;
  padding: 7px 7px 10px;
  border-bottom: 1px solid #dce7f3;
  color: #526d85;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.25;
}
.language-option {
  appearance: none;
  width: 100%;
  min-height: 38px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 10px;
  border: 1px solid transparent;
  border-radius: 11px;
  background: transparent;
  color: inherit;
  font-size: 14px;
  font-weight: 540;
  text-align: start;
}
.language-option:hover { background: #eaf2fb; }
.language-option[aria-checked=true] {
  background: linear-gradient(135deg, #e5f2ff, #edf4ff);
  color: #104e96;
  font-weight: 650;
}
.language-option:focus-visible {
  outline: 2px solid #267bd0;
  outline-offset: -2px;
}
.language-option .language-check {
  visibility: hidden;
  width: 17px;
  height: 17px;
  padding: 1px;
  border-radius: 50%;
  background: #1769cd;
  color: white;
  stroke-width: 2.35;
}
.language-option[aria-checked=true] .language-check { visibility: visible; }

.access-language { display: flex; justify-content: flex-end; margin: 0 0 .75rem; }
#app .sidebar > .language-picker { margin: auto .2rem .6rem; }
#app .language-picker + .profile-button { margin-top: 0; }
.preview-toolbar > .language-picker { margin-inline-start: auto; }
#preview-content [data-language-picker], #preview-content .access-language { display: none; }
@media (max-width:760px) {
  #app .sidebar { grid-template-columns: minmax(0,1fr) auto auto; }
  #app .sidebar > .language-picker { grid-column: 2; grid-row: 1; align-self: center; margin: 0; }
  #app .sidebar > .profile-button, #app .sidebar > .workspace-account { grid-column: 3; grid-row: 1; }
  #app .sidebar > .brand { grid-column: 1; grid-row: 1; min-width: 0; }
  #app .sidebar > .brand .postuesi-wordmark { min-width: 0; }
  #app .sidebar .profile-name { max-width: 7ch; overflow: hidden; text-overflow: ellipsis; }
}
@media (max-width:620px) {
  .preview-toolbar > .language-picker { grid-row: 3; grid-column: 1/-1; margin: 0; }
}
@media (pointer:coarse), (max-width:760px) {
  .language-trigger, .language-option { min-height: 44px; }
}
@media (forced-colors:active) {
  .language-menu, .language-trigger { background: Canvas; border-color: ButtonText; color: ButtonText; }
  .language-globe, .language-chevron { color: ButtonText; }
  .language-option[aria-checked=true] { border-color: Highlight; color: Highlight; }
  .language-check { forced-color-adjust: none; }
}
