.app-language-bar{display:flex;justify-content:flex-end;align-items:center;gap:10px;padding:8px clamp(16px,4vw,48px);background:#082f28;color:#f4e5bc;position:relative;z-index:120;min-height:58px}
.app-language-control{position:relative;flex:none;width:128px;text-align:start}
.app-language-control label{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.app-language-control .language-field{position:relative}
.app-language-control select,.app-language-control .language-trigger{box-sizing:border-box;width:128px;min-height:42px;padding:8px 25px 8px 31px;padding-inline-start:31px;padding-inline-end:25px;border:1px solid #c9d2c7;border-radius:12px;background:#fffdf6;color:#123e32;font:600 13px/1.4 system-ui,sans-serif;text-align:start;appearance:none;display:flex;align-items:center}
.app-language-control svg{position:absolute;top:50%;transform:translateY(-50%);width:15px;height:15px;pointer-events:none;color:#194b3d}
.app-language-control .language-globe{inset-inline-start:10px}.app-language-control .language-chevron{inset-inline-end:8px}
.app-language-control .language-options{position:absolute;inset-inline-end:0;top:calc(100% + 7px);width:148px;padding:5px;border:1px solid #d8dece;border-radius:14px;background:#fffdf6;box-shadow:0 12px 32px #061f2833;z-index:150;overflow:hidden}
.app-language-control .language-options button{display:flex;align-items:center;justify-content:space-between;width:100%;min-height:44px;padding:9px 10px;border:0;border-radius:9px;background:transparent;color:#24483d;font:500 13px/1.4 system-ui,sans-serif;text-align:start}
.app-language-control .language-options button[aria-checked=true]{background:#e7eee4;font-weight:700}.app-language-control .language-options button[aria-checked=true]::after{content:'✓'}
.app-language-control .language-options button:hover,.app-language-control .language-options button:focus-visible{background:#f2e7cc;outline:none}.app-language-control button:focus-visible{outline:2px solid #e9c56e;outline-offset:3px}
[dir=rtl] body{font-family:Tahoma,Arial,system-ui,sans-serif}[dir=rtl] input[type=email],[dir=rtl] input[type=tel],[dir=rtl] input[autocomplete=one-time-code],[dir=rtl] .reference,[dir=rtl] code{direction:ltr;text-align:start;unicode-bidi:isolate}
[dir=rtl] th,[dir=rtl] td{text-align:start}[dir=rtl] .form-grid,[dir=rtl] .grid{direction:rtl}[dir=rtl] .section-title,[dir=rtl] .report-heading{text-align:start}
@media(max-width:760px){.app-language-bar{padding:7px 16px;min-height:58px}.app-language-control .language-trigger{min-height:44px}.app-language-control .language-options{max-height:60dvh;overflow:auto}}
@media print{.app-language-bar{display:none!important}}

.app-language-control [hidden]{display:none!important}

/* Keep language beside the identity and navigation, never above the page. */
header.language-header{position:relative;z-index:130;overflow:visible}
header.site-header.language-header{position:sticky;top:0}
.has-app-language{gap:20px;align-items:center}
.has-app-language>.app-language-control{margin-inline-start:auto;order:4}
.has-app-language>.header-links,.has-app-language>.portal-nav{margin-inline-start:auto;flex-wrap:wrap;justify-content:flex-end;gap:12px 20px}
.has-app-language.nav-inner{gap:20px}
.has-app-language.nav-inner .primary-nav{gap:16px}
.has-app-language>.app-language-control .language-trigger{box-shadow:none;border-color:#bca76d66;border-radius:9px}
#language-sync-note{position:absolute;inset-inline-end:0;top:100%;width:240px;max-width:80vw;padding:10px;background:#fffdf6;color:#173e33;border-radius:8px;font-size:12px}
@media(max-width:1100px){
.has-app-language.nav-inner{height:auto;min-height:87px;flex-wrap:wrap;padding-block:12px}
.has-app-language.nav-inner>.primary-nav{order:5;width:100%;justify-content:center;flex-wrap:wrap}
}
@media(max-width:760px){
header.has-app-language,.portal-header-inner.has-app-language{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:14px 12px;padding:16px;align-items:center;text-align:start}
.has-app-language>.brand,.has-app-language>.admin-brand,.has-app-language>.portal-brand{grid-column:1;grid-row:1;min-width:0;font-size:20px}
.has-app-language>.admin-brand{gap:8px}
.has-app-language>.admin-brand .brand-symbol{width:34px;height:34px;flex:none;font-size:26px}
.has-app-language>.admin-brand small,.has-app-language>.brand small,.has-app-language>.portal-brand small{font-size:8px;letter-spacing:1px}
.has-app-language>.app-language-control{grid-column:2;grid-row:1;justify-self:end;margin:0;width:116px}
.has-app-language>.app-language-control .language-trigger,.has-app-language>.app-language-control select{width:116px;min-height:44px;font-size:12px}
.has-app-language>.header-links,.has-app-language>.portal-nav,.has-app-language>nav:not(.primary-nav){grid-column:1/-1;grid-row:auto;margin:0;display:flex;flex-direction:row;flex-wrap:wrap;justify-content:flex-start;gap:10px 18px;text-align:start}
.has-app-language>.text-link{grid-row:2;font-size:12px}
.has-app-language.nav-inner{display:grid;grid-template-columns:minmax(0,1fr) auto auto;gap:10px;min-height:76px;padding-block:12px}
.has-app-language.nav-inner>.brand{grid-column:1;grid-row:1}
.has-app-language.nav-inner>.app-language-control{grid-column:2;grid-row:1}
.has-app-language.nav-inner>.mobile-menu{grid-column:3;grid-row:1;order:5}
.has-app-language.nav-inner>.primary-nav{grid-column:1/-1;order:6}
.has-app-language.nav-inner .brand-text b{font-size:21px}
.has-app-language.nav-inner .brand-emblem{width:34px;height:34px;flex:none}
.has-app-language.nav-inner .brand-text small{font-size:7px;letter-spacing:1px}
.app-language-control .language-options{width:152px;max-width:calc(100vw - 32px);inset-inline-end:0;top:calc(100% + 6px)}
}
@media print{.app-language-control{display:none!important}}
@media(max-width:800px){
.site-header.language-header .has-app-language.nav-inner{height:auto;min-height:76px;display:grid;grid-template-columns:minmax(0,1fr) auto auto;gap:8px}
.site-header.language-header .nav-inner>.brand{grid-column:1;grid-row:1;gap:6px;min-width:0;flex-shrink:1}
.site-header.language-header .nav-inner>.app-language-control{grid-column:2;grid-row:1;width:110px;margin:0}
.site-header.language-header .nav-inner>.mobile-menu{grid-column:3;grid-row:1;padding:8px}
.site-header.language-header .nav-inner .brand-text b{font-size:20px;letter-spacing:.08em}
.site-header.language-header .nav-inner .brand-text small{font-size:6px;letter-spacing:.06em;white-space:normal}
.site-header.language-header .nav-inner .brand-emblem{width:30px;height:30px;flex:none;font-size:20px}
.site-header.language-header .nav-inner .language-trigger,.site-header.language-header .nav-inner select[data-app-language]{width:110px;font-size:12px}
.site-header.language-header .nav-inner>.primary-nav{top:100%;grid-column:1/-1}
}
/* Original public header: keep its links and registration action inside the header. */
@media(max-width:760px){
header.has-app-language{height:auto;min-height:76px}
header.has-app-language>nav:not(.primary-nav){grid-column:1;grid-row:2;font-size:11px;gap:8px 12px;padding:0;min-width:0}
header.has-app-language>.button.small{grid-column:2;grid-row:2;width:116px;min-height:44px;padding:10px;font-size:12px;text-align:center}
}
