.language-picker {
  position: relative;
  flex: none;
  color: var(--dim);
}
.language-picker summary {
  display: flex;
  align-items: center;
  min-height: 44px;
  gap: 7px;
  padding: 0 8px;
  border: 1px solid transparent;
  border-radius: 8px;
  list-style: none;
  white-space: nowrap;
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
}
.language-picker summary::-webkit-details-marker { display: none; }
.language-picker[open] summary {
  border-color: var(--line);
  background: var(--panel);
  color: var(--text);
}
.language-picker svg { width: 16px; height: 16px; flex: none; }
.language-picker .language-chevron { width: 12px; height: 12px; }
.language-picker[open] .language-chevron { transform: rotate(180deg); }
.language-options {
  position: absolute;
  inset: calc(100% + 4px) 0 auto auto;
  z-index: 1;
  width: 176px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--panel);
  box-shadow: 0 12px 28px rgb(0 0 0 / .48);
}
.language-options a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 44px;
  padding: 0 10px;
  border-radius: 5px;
  color: var(--dim);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
}
.language-options a[aria-current="page"] { background: var(--line); color: var(--text); }
.language-options a:focus-visible { color: var(--text); outline-offset: -2px; }
.language-options a svg { color: var(--mint); }
.language-picker :is(summary, a) { touch-action: manipulation; }
@media (hover: hover) {
  .language-picker summary:hover { color: var(--text); }
  .language-options a:hover { background: var(--line); color: var(--text); }
}
@media (max-width: 380px) {
  .language-picker summary { padding-inline: 4px; gap: 5px; }
  .language-picker .language-chevron { display: none; }
}
