.app-language-switch{display:inline-flex;align-items:center;gap:5px;flex:0 0 auto;width:auto;max-width:130px;padding:5px 7px;border:1px solid var(--line,#dce4de);border-radius:7px;color:var(--ink,#344b3b);background:var(--panel,#fff);font-family:inherit;font-size:12px;line-height:1.3}.app-language-switch>svg{width:15px;height:15px;flex:0 0 15px;stroke:currentColor;fill:none;stroke-width:1.6}.app-language-switch>select{appearance:auto;width:auto!important;min-width:0;max-width:95px;flex:0 0 auto!important;padding:2px 1px!important;margin:0;border:0!important;box-shadow:none!important;background:transparent;color:inherit;font:inherit;font-weight:400;cursor:pointer}.app-language-switch:focus-within{outline:2px solid #19844c;outline-offset:2px}.app-language-switch option{color:#24352c;background:white}body[data-theme="dark"] .app-language-switch{background:#343434;color:#e8e9ed;border-color:#50545b}.marketing-page .app-language-switch{color:#263c2c;background:white}.topbar .app-language-switch{margin-right:4px;max-width:118px}.app-language-switch[hidden]{display:none}@media(max-width:650px){.app-language-switch{font-size:11px;gap:3px;padding:4px;max-width:103px}.app-language-switch>svg{width:13px;height:13px;flex-basis:13px}.app-language-switch>select{max-width:78px}.topbar .app-language-switch{max-width:97px;margin-right:0}.marketing-page .m-header-actions{gap:7px}.marketing-page .m-header-inner{gap:10px}}@media print{.app-language-switch{display:none!important}}
@media(max-width:650px){.marketing-page .m-header-actions .m-signin{display:none}}

/* Shared, downward-opening language menu. The native select remains a hidden
   state bridge for existing locale events and progressive fallback. */
.app-language-switch.app-language-enhanced{position:relative;width:auto;flex:0 0 auto;padding:0;border:0;background:transparent;overflow:visible;isolation:isolate}
.app-language-switch.app-language-enhanced:focus-within{outline:0}
.app-language-enhanced>select[data-app-language]{display:none!important}
.app-language-switch .app-language-trigger{display:inline-flex;align-items:center;justify-content:center;gap:7px;flex:0 0 auto;width:auto;min-width:0;min-height:32px;margin:0;padding:6px 9px;border:1px solid var(--line,#dce4de);border-radius:8px;color:var(--ink,#344b3b);background:var(--panel,#fff);box-shadow:none;font-family:inherit;font-size:12px;font-weight:400;line-height:1.3;white-space:nowrap;cursor:pointer}
.app-language-trigger:hover,.app-language-trigger[aria-expanded="true"]{border-color:#19844c}
.app-language-trigger:focus-visible{outline:2px solid #19844c;outline-offset:2px}
.app-language-switch .app-language-flag{display:inline-flex;align-items:center;justify-content:center;flex:0 0 24px;width:24px;height:17px;overflow:hidden;border-radius:3px;box-shadow:0 0 0 1px #0000000b}
.app-language-switch .app-language-flag>svg{display:block;flex-shrink:0;width:24px;height:17px;stroke:none}
.app-language-switch .app-language-chevron{width:12px;height:12px;flex:0 0 12px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round;transition:transform .15s ease}
.app-language-trigger[aria-expanded="true"] .app-language-chevron{transform:rotate(180deg)}
.app-language-switch .app-language-menu{position:absolute;inset:auto 0 auto auto;top:calc(100% + 8px);z-index:150;display:block;width:190px;max-width:calc(100vw - 24px);max-height:min(360px,70dvh);overflow-y:auto;overscroll-behavior:contain;box-sizing:border-box;margin:0;padding:6px;border:1px solid var(--line,#dce4de);border-radius:11px;background:var(--panel,#fff);color:var(--ink,#263c2c);box-shadow:0 9px 28px #172c2524;text-align:left}
.app-language-switch .app-language-menu[hidden]{display:none!important}
.app-language-switch .app-language-option{display:grid;grid-template-columns:24px minmax(0,1fr) 16px;align-items:center;gap:9px;box-sizing:border-box;width:100%;min-width:0;min-height:38px;margin:0;padding:9px 10px;border:0;border-radius:7px;background:transparent;color:inherit;box-shadow:none;text-align:left;font-family:inherit;font-size:13px;font-weight:400;line-height:1.3;cursor:pointer}
.app-language-option:hover,.app-language-option:focus-visible{background:color-mix(in srgb,#19844c 9%,var(--panel,#fff));outline:0}
.app-language-option[aria-checked="true"]{background:color-mix(in srgb,#19844c 10%,var(--panel,#fff));color:var(--green,#19844c)}
.app-language-switch .app-language-check{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.app-language-check[hidden]{visibility:hidden;display:block}
body[data-theme="dark"] .app-language-enhanced{background:transparent}
body[data-theme="dark"] .app-language-enhanced :is(.app-language-trigger,.app-language-menu){background:#343434;color:#e8e9ed;border-color:#50545b}
body[data-theme="dark"] .app-language-option[aria-checked="true"]{color:#a1dec1;background:#294637}
body[data-theme="dark"] .app-language-option:is(:hover,:focus-visible){background:#3c4942}
.marketing-page .app-language-enhanced{background:transparent}
.marketing-page .app-language-enhanced :is(.app-language-trigger,.app-language-menu){color:#263c2c;background:#fff}
@media(max-width:650px){
 .app-language-switch .app-language-trigger{min-height:29px;padding:5px;gap:4px;font-size:11px}
 .app-language-switch .app-language-trigger .app-language-flag,.app-language-switch .app-language-trigger .app-language-flag>svg{width:21px;height:15px;flex-basis:21px}
 .app-language-switch .app-language-chevron{width:10px;flex-basis:10px}
 .topbar .app-language-switch .app-language-menu{left:0;right:auto}
}

/* All six native names remain readable without stretching toolbar controls. */
.app-language-switch.app-language-enhanced{max-width:none;direction:ltr}
.app-language-option>span[dir]{text-align:start;unicode-bidi:isolate}
html[dir="rtl"] .app-language-label{direction:rtl;unicode-bidi:isolate}
html[dir="rtl"] :is(.pi-doc,.pi-page){direction:ltr;text-align:initial}
html[dir="rtl"] :is(input[type="email"],input[type="url"],input[type="tel"],input[inputmode="numeric"]){direction:ltr;text-align:left}
html[dir="rtl"] :is(.tm-person-copy,.tm-chat-heading>div,.tm-bubble,.community-post-body,.community-comment>p){unicode-bidi:plaintext}
html[dir="rtl"] :is(.sidebar .nav,.community-root,.tm-directory,.tm-chat,.topbar-menu-panel){text-align:start}
