.language-editor { margin: 20px 0 28px; }
.language-options { border: 0; padding: 0; margin: 0 0 18px; min-width: 0; }
.language-options legend, .language-editor-heading { font-weight: 700; margin-bottom: 10px; }
.language-selected { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.language-selected:empty { display: none; }
.language-choice { cursor: pointer; position: relative; display: block; }
.language-choice input { position: absolute; inset: 0; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; z-index: 1; }
.language-choice > span { display: flex; align-items: center; gap: 8px; min-height: 44px; border: 1px solid #c6c6c6; border-radius: 8px; padding: 8px 12px; background: white; color: #333; }
.language-choice bdi { font-weight: inherit; overflow-wrap: anywhere; }
.language-choice input:checked + span { background: #f2e7e9; border-color: #8c253c; color: #752033; font-weight: 700; }
.language-choice > span::after { content: '+'; margin-inline-start: auto; font-size: 20px; line-height: 1; }
.language-choice input:checked + span::after { content: '\00d7'; }
.language-choice input:focus-visible + span, .language-tabs button:focus-visible { outline: 3px solid #aa5670; outline-offset: 3px; }
.language-picker { border: 1px solid #c6c6c6; border-radius: 8px; background: white; }
.language-picker summary { display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 12px; color: #752033; font-weight: 700; cursor: pointer; list-style: none; }
.language-picker summary::-webkit-details-marker { display: none; }
.language-picker summary > span { font-size: 20px; line-height: 1; }
.language-picker[open] summary { border-bottom: 1px solid #ddd; }
.language-picker summary:focus-visible { outline: 2px solid #8c253c; outline-offset: 3px; border-radius: 8px; }
.language-picker-content { padding: 12px; }
.language-search { margin-bottom: 10px; }
.language-search label { display: block; font-size: 13px; font-weight: 700; margin-bottom: 6px; }
.language-search input { box-sizing: border-box; width: 100%; min-height: 44px; padding: 8px 10px; border: 1px solid #999; border-radius: 6px; font: inherit; background: white; }
.language-available { display: grid; gap: 6px; max-height: 240px; overflow-y: auto; padding: 4px; }
.language-available .language-choice > span { border-color: transparent; }
.language-available .language-choice:hover > span { background: #f6f6f8; border-color: #ddd; }
.language-picker-content > .language-hint { margin: 4px; }
.language-editor select { width: 100%; min-height: 44px; padding: 10px; border: 1px solid #bdbdbd; border-radius: 6px; background: white; color: #222; font: inherit; }
.language-hint { font-size: 13px; line-height: 1.7; color: #606060; margin: 8px 0 14px; }
.language-error { color: #9e1832; font-size: 13px; margin-top: 8px; }
.language-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin: 12px 0 18px; border-bottom: 1px solid #ddd; padding-bottom: 8px; }
.language-tabs button { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 8px 12px; border: 1px solid #ccc; border-radius: 7px; background: white; font: inherit; cursor: pointer; color: #444; }
.language-tabs button[aria-selected="true"] { background: #242124; color: white; border-color: #242124; }
.language-default-badge { font-size: 11px; border: 1px solid currentColor; border-radius: 4px; padding: 2px 5px; }
.language-editor [hidden], .public-language-picker[hidden], [data-language-status][hidden], .link_description[hidden], .address_box[hidden] { display: none !important; }
.translation-panel textarea { min-height: 92px; resize: vertical; }
.language-editor .translation-panel input, .language-editor .translation-panel textarea { box-sizing: border-box; font-family: inherit; font-size: 15px; line-height: 1.7; }
.language-editor .translation-panel input { min-height: 44px; }
/* The bundled Persian font lacks Pashto letters; use a complete system font for these runs. */
html[lang="ps"] body.iransans, .language-editor [lang="ps"], #main_dashboard_info.profile-editor [lang="ps"] { font-family: Tahoma, "Noto Naskh Arabic", "Segoe UI", sans-serif; }
#main_profile { position: relative; }
#header_profile.has-language-picker { height: 116px; }
#header_profile .public-language-picker { display: flex; align-items: center; gap: 7px; position: absolute; top: 10px; right: 14px; color: white; }
.public-language-picker svg { width: 19px; height: 19px; flex-shrink: 0; }
.public-language-select { min-height: 40px; max-width: 170px; padding: 6px 10px; background: #202020; color: white; border: 1px solid #777; border-radius: 7px; font: inherit; cursor: pointer; }
.public-language-select:focus { outline: none; box-shadow: none; }
.public-language-select:focus-visible { border-color: #eee; }
.public-language-select option { background: #202020; color: white; }
.language-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.bio_desc_user[data-profile-field], .link_description { white-space: pre-line; }
.link_description { margin-top: 5px; font-size: 13px; line-height: 1.6; color: #606060; overflow-wrap: anywhere; }
@media (max-width: 420px) { .language-tabs button { padding: 8px; } }
