.header--localized { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; height: auto; min-height: 46px; line-height: 1.5; overflow: visible; }
.header--localized .pageName { margin-left: 12px; }
.header--localized .rightLink { position: static; display: flex; align-items: center; gap: 8px; margin-left: auto; }
.language-switch {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    gap: 2px;
    margin: 0;
    padding: 2px;
    border: 1px solid #dfe6f0;
    border-radius: 6px;
    background: #f8fafd;
}
.language-switch a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 24px;
    border-radius: 4px;
    color: #68778d;
}
.language-switch a:hover { color: #446db2; background: #edf2f8; }
.language-switch [aria-current="true"] { color: #446db2; background: #e7eef9; }
.language-switch a:focus-visible { outline: 2px solid #446db2; outline-offset: 2px; }
.language-switch__icon { display: block; flex-shrink: 0; width: 16px; height: 16px; }
html:lang(en) .inputDialogTitle { height: auto; min-height: 32px; line-height: 1.5; padding-top: 14px; padding-bottom: 14px; }
html:lang(en) .inputDialogBtn { height: auto; min-height: 40px; line-height: 1.4; padding-top: 10px; padding-bottom: 10px; white-space: normal; }
html:lang(en) .phoneCodeContent { height: auto; line-height: 1.5; }
html:lang(en) .error-info { height: auto; line-height: 1.5; overflow-wrap: anywhere; }
html:lang(en) .bind-header, html:lang(en) .mobile-header { height: auto; min-height: 44px; line-height: 1.5; }
html:lang(en) .bind-header > span, html:lang(en) .mobile-header > span { display: inline-block; max-width: calc(100% - 36px); }
html:lang(en) .subTitle { white-space: normal; }
/* Desktop tabs also need flexible widths/heights; ID rules in page CSS used to win here. */
html:lang(en) .nav-header { display: flex; align-items: stretch; height: auto; }
html:lang(en) .nav-header .header_a { border-bottom: 3px solid transparent; overflow-wrap: anywhere; }
html:lang(en) .nav-header #a_info,
html:lang(en) .nav-header #a_sub,
html:lang(en) .nav-header #a_bill {
    display: flex;
    flex: 1 1 0;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    width: auto;
    min-width: 0;
    height: auto;
    min-height: 44px;
    margin-left: 0;
    padding: 8px 12px;
    line-height: 1.4;
    text-align: center;
}
html:lang(en) .rc_head .selectBtn {
    width: auto;
    min-width: 70px;
    padding: 0 12px;
    white-space: nowrap;
    vertical-align: top;
}
html:lang(en) .invoice-input-group {
    display: flex;
    align-items: center;
    gap: 16px;
}
html:lang(en) .invoice-input-group label {
    flex: 0 0 12em;
    width: auto;
    white-space: nowrap;
}
html:lang(en) .invoice-input-group input { min-width: 0; }
@media (pointer: coarse) {
    .language-switch a { width: 44px; height: 44px; }
}
@media (max-width: 768px) {
    .header--localized .pageName { margin-left: 0; }
    .header--localized .rightLink { flex: 1 1 auto; }
    .header .language-switch { justify-content: flex-end; margin-left: auto; }
    html:lang(en) .nav-header #a_info,
    html:lang(en) .nav-header #a_sub,
    html:lang(en) .nav-header #a_bill { padding-right: 4px; padding-left: 4px; }
    html:lang(en) .rc_head .selectBtn {
        display: flex;
        align-items: center;
        justify-content: center;
        min-width: 0;
        height: auto;
        min-height: 44px;
        padding: 8px 4px;
        line-height: 1.4;
        white-space: normal;
    }
}
