/* Native details keeps the download language selector usable without JS. */
.language-picker.language-switcher { position: relative; display: block; width: max-content; padding: 0; border: 0; border-radius: 8px; background: transparent; }
.language-picker > .language-current { display: flex; align-items: center; justify-content: center; gap: 7px; width: 54px; min-height: 44px; padding: 7px; margin: 0; border: 1px solid #d9e1dd; border-radius: 8px; background: #fff; color: #19382f; cursor: pointer; list-style: none; }
.language-current::-webkit-details-marker { display: none; }
.language-current::marker { content: ""; }
.language-current::after { content: ""; flex: 0 0 6px; width: 6px; height: 6px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-2px) rotate(45deg); }
.language-picker[open] > .language-current::after { transform: translateY(2px) rotate(225deg); }
.language-picker .language-flag { width: 24px; height: 16px; flex: 0 0 24px; }
.language-picker > .language-options { position: absolute; z-index: 50; top: calc(100% + 6px); right: 0; width: 184px; max-width: calc(100vw - 24px); max-height: min(320px, calc(100dvh - 150px)); overflow-y: auto; overscroll-behavior: contain; padding: 6px; margin: 0; display: grid; gap: 2px; border: 1px solid #d9e1dd; border-radius: 10px; background: #fff; color: #19382f; box-shadow: 0 8px 24px #19382f24; }
.language-picker:not([open]) > .language-options { display: none; }
.language-picker.language-switcher .language-button { display: flex; align-items: center; justify-content: flex-start; gap: 12px; width: 100%; min-width: 0; height: auto; min-height: 44px; padding: 8px 10px; margin: 0; border: 0; border-radius: 6px; background: transparent; color: inherit; font: 14px/1.25 Arial, sans-serif; text-align: left; box-shadow: none; cursor: pointer; }
.language-picker .language-name { flex: 1; }
.language-picker.language-switcher .language-button[aria-pressed="true"] { background: #e9f2ed; }
.language-picker .language-button[aria-pressed="true"]::after { content: "✓"; }
.language-picker .language-button:hover, .language-current:hover { background: #f1f5f2; }
.language-picker .language-button:focus-visible, .language-current:focus-visible { outline: 2px solid #225d43; outline-offset: 1px; }
#editorLanguages.language-picker { margin: 0 0 14px auto; }
#editorLanguages > .language-current { margin-left: auto; }
#editorLanguages > .language-options { position: static; margin-top: 6px; }
