/* Compact, accessible selector shared by the public site and cabinet. */
.locale-control{position:relative;display:flex;align-items:center;min-width:0}
.locale-control .locale-current{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-width:68px;min-height:42px;padding:7px 10px;border:1px solid var(--agent-border,#d7ddd8);border-radius:13px;background:var(--agent-raised,#fff);color:var(--agent-ink,#17312a);font:inherit;font-size:.78rem;font-weight:750;line-height:1;box-shadow:none;white-space:nowrap}
.locale-control .locale-current:focus-visible,.locale-control .locale-menu button:focus-visible,.public-locale summary:focus-visible,.public-locale__menu a:focus-visible{outline:2px solid var(--agent-accent,#2c796b);outline-offset:2px}
.locale-menu,.public-locale__menu{position:absolute;z-index:80;top:calc(100% + 8px);right:0;box-sizing:border-box;width:min(330px,calc(100vw - 24px));max-height:min(72dvh,540px);overflow:auto;padding:14px;border:1px solid var(--agent-border,#d7ddd8);border-radius:16px;background:var(--agent-panel,#fff);color:var(--agent-ink,#17312a);box-shadow:0 16px 38px #11251e30;overscroll-behavior:contain}
.locale-menu[hidden]{display:none}
.locale-menu>p,.public-locale__menu>p{margin:0 0 9px;font-size:.78rem;font-weight:700;color:var(--agent-muted,#64716b)}
.locale-menu>form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:5px}
.locale-menu>form button,.public-locale__menu a{display:flex;align-items:center;justify-content:flex-start;gap:8px;min-width:0;min-height:44px;margin:0;padding:8px 10px;border:1px solid transparent;border-radius:10px;background:var(--agent-raised,#f3f5f3);color:inherit;text-align:start;text-decoration:none;font:inherit;font-size:.83rem;font-weight:600;line-height:1.25;white-space:normal;overflow-wrap:anywhere;box-shadow:none}
.locale-menu>form button[aria-pressed="true"],.public-locale__menu a[aria-current="true"]{border-color:var(--agent-accent,#2c796b);background:color-mix(in srgb,var(--agent-accent,#2c796b) 12%,var(--agent-raised,#f3f5f3));font-weight:800}
.locale-menu>form button>span:first-child,.public-locale__menu a>span:first-child{flex:0 0 1.4em;text-align:center}
.public-locale{position:relative;display:inline-flex;align-items:center}
.public-locale>summary{display:flex;align-items:center;justify-content:center;gap:6px;min-width:68px;min-height:40px;padding:6px 9px;border:1px solid var(--agent-border,#d7ddd8);border-radius:12px;background:var(--agent-panel,#fff);color:inherit;font-size:.78rem;font-weight:750;line-height:1;list-style:none;cursor:pointer}
.public-locale>summary::-webkit-details-marker{display:none}
.public-locale__menu{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:5px}
.public-locale__menu>p{grid-column:1/-1}
.public-locale__menu a{font-size:.78rem}
html:lang(ar){font-family:"Noto Sans Arabic","Noto Sans",system-ui,-apple-system,"Segoe UI",sans-serif}
html:lang(hi){font-family:"Noto Sans Devanagari","Noto Sans",system-ui,-apple-system,"Segoe UI",sans-serif}
html:lang(th){font-family:"Noto Sans Thai","Noto Sans",system-ui,-apple-system,"Segoe UI",sans-serif}
html:lang(zh-CN){font-family:"Noto Sans CJK SC","Noto Sans SC","PingFang SC","Microsoft YaHei",system-ui,sans-serif}
html:lang(ja){font-family:"Noto Sans CJK JP","Noto Sans JP","Hiragino Kaku Gothic ProN",system-ui,sans-serif}
html:lang(ko){font-family:"Noto Sans CJK KR","Noto Sans KR","Apple SD Gothic Neo",system-ui,sans-serif}
@media(max-width:600px){.locale-menu,.public-locale__menu{width:min(320px,calc(100vw - 20px));max-height:min(66dvh,480px);padding:11px}.locale-menu>form{grid-template-columns:repeat(2,minmax(0,1fr))}.locale-control .locale-current{min-width:59px;padding-inline:7px}.public-locale>summary{min-width:58px;padding-inline:7px}}
@media(max-width:360px){.locale-menu,.public-locale__menu{width:calc(100vw - 16px)}.locale-menu>form button,.public-locale__menu a{gap:5px;padding:7px;font-size:.72rem}}
/* Keep the active language compact beside the notification badge on mobile. */
.topbar__actions .locale-control{flex:0 0 auto;min-width:0;gap:0}
.topbar__actions .notifications{flex:0 0 auto;margin-inline-end:6px}
.topbar__actions .locale-current{display:inline-flex;min-width:58px!important;min-height:38px;padding:7px 9px!important;border:1px solid var(--agent-border,#d7ddd8);border-radius:12px;background:var(--agent-panel,#101d2a);gap:5px;font-size:.78rem;line-height:1;box-shadow:none}
.topbar__actions .notification-bell{flex:0 0 auto}
@media(max-width:600px){.topbar__actions{gap:10px!important}.topbar__actions .locale-current{min-width:57px!important;min-height:36px;padding-inline:8px!important}}
@media(max-width:360px){.topbar__actions{gap:7px!important}.topbar__actions .locale-current{min-width:52px!important}}
