.lang[data-v-language-switch] {
  position: relative;
}
.flag[data-v-language-switch] {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  min-width: 64px;
  height: 36px;
  padding: 0 10px;
  border: 1px solid var(--fg-a06);
  border-radius: 12px;
  background: var(--surface-161616);
  color: var(--text-ffffff);
  font-size: 1rem;
  cursor: pointer;
}
.lang.block .flag[data-v-language-switch],
.lang.compact .flag[data-v-language-switch],
.lang.labeled .flag[data-v-language-switch] {
  height: 42px;
}
.lang.labeled .flag[data-v-language-switch] {
  min-width: 132px;
  justify-content: flex-start;
  padding: 0 14px;
}
.lang.compact .flag[data-v-language-switch] {
  min-width: 0;
  justify-content: flex-start;
  padding: 0 12px;
  gap: 10px;
  border-color: var(--line);
  background: var(--surface-1a1410);
  color: var(--text-f4ece6);
}
.lang.compact .flag[data-v-language-switch]:hover {
  border-color: var(--accent-line);
  background: var(--surface-241810);
}
.lang.compact.open .flag[data-v-language-switch] {
  border-color: var(--accent);
  background: var(--accent-soft);
}
.lang.compact .txt[data-v-language-switch] {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-align: start;
  color: var(--text-f4ece6);
}
.lang.compact .dot[data-v-language-switch] {
  width: 24px;
  height: 18px;
  border-radius: 4px;
  font-size: 16px;
  background: var(--surface-2a2018);
  box-shadow: 0 0 0 1px var(--hue-ffba8c-a16);
}
.lang.compact .chev[data-v-language-switch] {
  stroke: var(--tone-d8b8a0);
}

/* Top-bar variant (NudeAI): a flag chip with the native name on wide screens. */
.lang.down .flag[data-v-language-switch] {
  width: auto;
  min-width: 0;
  height: 40px;
  padding: 0 12px;
  gap: 8px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--bg-soft);
  font-weight: 600;
}
.lang.down .flag[data-v-language-switch]:hover,
.lang.down.open .flag[data-v-language-switch] {
  border-color: var(--line-warm, var(--accent-line));
}
.lang.down .txt[data-v-language-switch] {
  max-width: 9em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.85rem;
}
.lang.down .chev[data-v-language-switch] {
  margin-inline-start: 0;
  stroke: var(--muted);
}
.lang.down .dot[data-v-language-switch] {
  background: transparent;
  font-size: 16px;
}
@media (max-width: 760px) {
.lang.down .txt[data-v-language-switch],
  .lang.down .chev[data-v-language-switch] {
    display: none;
}
.lang.down .flag[data-v-language-switch] {
    width: 40px;
    padding: 0;
    justify-content: center;
}
}
.open .flag .chev[data-v-language-switch] {
  transform: rotate(180deg);
}
.dot[data-v-language-switch] {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  overflow: hidden;
  font-size: 13px;
  line-height: 1;
  background: var(--surface-222222);
  flex: none;
}
.txt[data-v-language-switch] {
  font-size: 0.88rem;
  color: var(--text-eeeeee);
  font-weight: 600;
}
.chev[data-v-language-switch] {
  width: 10px;
  height: 10px;
  margin-inline-start: auto;
  flex: none;
  fill: none;
  stroke: var(--text-bbbbbb);
  stroke-width: 1.6;
  stroke-linecap: round;
  transition: transform 0.18s ease;
}
.panel[data-v-language-switch] {
  position: fixed;
  z-index: 80;
  width: 280px;
  display: flex;
  flex-direction: column;
  padding: 8px;
  border: 1px solid var(--line, rgba(255, 255, 255, 0.07));
  border-radius: 16px;
  background: #171013;
  box-shadow: 0 24px 60px -12px rgba(0, 0, 0, 0.8);
}
.list[data-v-language-switch] {
  position: relative;
  overflow: auto;
  max-height: 320px;
  padding: 2px;
  scrollbar-width: thin;
}
.opt[data-v-language-switch] {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 10px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--text, #fbf4f7);
  font-size: 14.5px;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
}
.opt .name[data-v-language-switch] {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.opt[data-v-language-switch]:hover {
  background: var(--surface-2, #1c1115);
}
.opt.on[data-v-language-switch] {
  background: var(--surface-3, #24151b);
}
.check[data-v-language-switch] {
  flex: none;
  color: var(--accent-2, #ff74b8);
}
@media (max-width: 760px) {
.panel[data-v-language-switch] {
    left: 12px !important;
    right: 12px !important;
    width: auto;
}
}
/* Teleported to <body>, so these cannot be scoped. Top-bar variant of the panel. */
html[data-theme=nudeai] .panel.down[data-v-language-switch] {
  width: min(280px, 100vw - 24px);
  background: #171013;
  border-color: var(--line);
  border-radius: 16px;
  box-shadow: 0 24px 60px -12px rgba(0, 0, 0, 0.8);
}
@media (max-width: 760px) {
html[data-theme=nudeai] .panel.down[data-v-language-switch] {
    left: 12px !important;
    right: 12px !important;
    width: auto;
}
}
