.lang-switch {
  position: relative;
  display: inline-flex;
}

/* Trigger — mirrors the settings (gear) button so they sit together cleanly. */
.lang-switch-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 36px;
  padding: 0 12px;
  font-family: inherit;
  line-height: 1;
  border: 1px solid var(--border, #d8dee9);
  border-radius: var(--radius-sm, 6px);
  background: var(--cv-gray-20, #f0f2f5);
  color: var(--fg, #111827);
  cursor: pointer;
}
.lang-switch-btn:hover { border-color: var(--cv-blue-60, #4b6cb7); }
.lang-switch-globe { color: var(--fg-muted, #5a6b87); flex: none; }
.lang-switch-current {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .04em;
  color: var(--fg, #111827);
}
.lang-switch-caret {
  flex: none;
  color: var(--fg-muted, #5a6b87);
  transition: transform .15s ease;
}
.lang-switch-caret.open { transform: rotate(180deg); }

/* Menu */
.lang-switch-menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  z-index: 100;
  min-width: 168px;
  margin: 0;
  padding: 4px;
  list-style: none;
  background: var(--bg, #fff);
  border: 1px solid var(--border, #d1d5db);
  border-radius: var(--radius-sm, 6px);
  box-shadow: 0 8px 24px rgba(0, 42, 114, .14);
}
.lang-switch-item {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 8px 10px;
  border: none;
  background: transparent;
  border-radius: var(--radius-sm, 6px);
  cursor: pointer;
  font-size: 13px;
  color: var(--fg, #111827);
  text-align: left;
}
.lang-switch-item:hover { background: rgba(0, 42, 114, .06); }
.lang-switch-item.active { color: var(--cv-blue, #002a72); }
.lang-switch-code {
  min-width: 22px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .06em;
  color: var(--fg-muted, #5a6b87);
}
.lang-switch-item.active .lang-switch-code { color: var(--cv-blue, #002a72); }
.lang-switch-name { flex: 1; }
.lang-switch-item > svg { color: var(--cv-blue, #002a72); }
