.m2-lang-form{display:flex;align-items:center;gap:6px;margin:8px 12px 0}
.m2-lang-select{flex:1;min-width:0;padding:6px 8px;border-radius:8px;border:1px solid var(--border,rgba(255,255,255,.12));background:var(--surface2,rgba(255,255,255,.06));color:inherit;font-size:13px}
.m2-lang-label{color:var(--text3,#888);font-size:13px}
body.locale-rtl .sidebar-nav{text-align:right}
body.locale-rtl .nav-link svg{transform:scaleX(-1)}

.m2-lang-select option{background:#151515;color:#fff}.panel.sidebar .m2-lang-form{margin:14px 0}.m2-lang-select{min-height:40px}html[dir=rtl] .sidebar,html[dir=rtl] .main{text-align:right}html[dir=rtl] .nav a{flex-direction:row}html[dir=rtl] .fsp-times,html[dir=rtl] .fsp-ctl,html[dir=rtl] .scrub{direction:ltr}

/* Shared language control: keep the accessible native picker and locale submission. */
.m2-lang-form{position:relative;display:flex;align-items:center;gap:0;min-height:50px;margin:14px 12px 8px;padding:0;border:1px solid #ffffff1c;border-radius:15px;background:linear-gradient(120deg,#ed282d0c,#ffffff04),#171719;color:#f5f5f7;box-shadow:0 4px 14px #00000012;transition:border-color .18s,box-shadow .18s}
.m2-lang-form:hover{border-color:#ed282d66}.m2-lang-form:focus-within{border-color:#ef4148;box-shadow:0 0 0 3px #ed282d20}
.m2-lang-form .m2-lang-label{display:grid;place-items:center;position:absolute;inset-inline-start:11px;top:9px;width:30px;height:30px;margin:0;background:#ed282d18;border-radius:9px;color:#ff656b;pointer-events:none}
.m2-lang-form .m2-lang-select{appearance:none;-webkit-appearance:none;display:block;width:100%;min-width:0;min-height:48px;margin:0;border:0;border-radius:14px;background:transparent;color:inherit;padding:12px 38px 12px 51px;font-family:inherit;font-size:13px;font-weight:600;line-height:1.4;cursor:pointer;box-shadow:none;outline:none}
.m2-lang-form:after{content:"";position:absolute;inset-inline-end:17px;top:19px;width:7px;height:7px;border-right:1.7px solid currentColor;border-bottom:1.7px solid currentColor;transform:rotate(45deg);opacity:.6;pointer-events:none}
.m2-lang-form .m2-lang-select option{background:#1b1b1f;color:#f5f5f7;font-weight:500}.m2-lang-form .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}
html[dir=rtl] .m2-lang-form .m2-lang-select{padding-right:51px;padding-left:38px}
html[data-theme=light] .m2-lang-form,body.light .m2-lang-form{background:linear-gradient(120deg,#ed282d05,#fff),#fff;color:#25252c;border-color:#dedee5;box-shadow:0 3px 12px #18243406}
html[data-theme=light] .m2-lang-form .m2-lang-label,body.light .m2-lang-form .m2-lang-label{color:#c81e28;background:#ed282d0d}
html[data-theme=light] .m2-lang-form option,body.light .m2-lang-form option{background:#fff;color:#25252c}
html[data-theme=light] .m2-lang-form:focus-within{border-color:#ed282d}
@media(prefers-reduced-motion:reduce){.m2-lang-form{transition:none}}
