/* Shared language control for the console, sign-in dialog and API guide. */
.language-control { position: relative; display: inline-flex; flex: none; vertical-align: middle; color: var(--text, #173b33); }
.language-native { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0,0,0,0) !important; white-space: nowrap !important; border: 0 !important; }
.language-menu { position: relative; margin: 0; font-family: inherit; }
.language-trigger { display: inline-flex; align-items: center; justify-content: center; gap: 7px; height: 34px; padding: 0 9px; border: 1px solid transparent; border-radius: 8px; list-style: none; cursor: pointer; font-family: inherit; font-size: 12px; font-weight: 500; line-height: 1.2; user-select: none; transition: background .15s, border-color .15s; }
.language-trigger::-webkit-details-marker { display: none; }
.language-trigger > svg { width: 16px; height: 16px; flex: none; color: var(--text-2, #54746a); }
.language-trigger .language-chevron { width: 10px; height: 10px; opacity: .65; transition: transform .15s; }
.language-trigger:hover, .language-menu[open] > .language-trigger { background: var(--hover, #eaf2ee); border-color: var(--line, #dce7e1); }
.language-menu[open] .language-chevron { transform: rotate(180deg); }
.language-trigger[aria-disabled="true"] { opacity: .45; cursor: default; }
.language-trigger:focus-visible { outline: 2px solid var(--accent, #14867a); outline-offset: 3px; }
.language-current { min-width: 18px; text-align: center; letter-spacing: .01em; }
.language-panel { position: absolute; top: calc(100% + 8px); right: 0; z-index: 80; width: 208px; padding: 5px; border: 1px solid var(--line-strong, #d9e5de); border-radius: 12px; background: var(--card, #fff); box-shadow: 0 12px 32px -10px rgba(17,40,32,.22), 0 2px 6px rgba(17,40,32,.05); }
.language-menu:not([open]) .language-panel { display: none; }
.language-panel > button { display: flex; align-items: center; justify-content: space-between; gap: 16px; width: 100%; padding: 10px 11px; margin: 0; border: 0; border-radius: 7px; background: transparent; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.language-panel > button:hover, .language-panel > button:focus-visible { background: var(--hover, #f0f5f2); outline: none; }
.language-panel > button[aria-checked="true"] { background: var(--accent-wash, #eaf5ee); }
.language-option-label { display: block; font-size: 12px; font-weight: 550; line-height: 1.5; }
.language-option-detail { display: block; margin-top: 1px; font-size: 10.5px; font-weight: 400; line-height: 1.5; color: var(--text-3, #70857a); }
.language-check { width: 16px; height: 16px; flex: none; color: var(--accent-strong, #117563); }
@media (prefers-reduced-motion: reduce) { .language-trigger, .language-chevron { transition: none; } }
