.header-actions{display:flex;align-items:center;gap:16px;flex:none}
.language-switch{display:flex;align-items:center;gap:2px;background:#eaf0ec;padding:3px;border-radius:8px;flex:none}
.language-switch button{border:0;background:transparent;padding:6px 8px;font-size:10px;font-weight:600;line-height:1.4;color:#74837a;border-radius:5px}
.language-switch button[aria-pressed="true"]{background:#fff;color:var(--forest);box-shadow:0 1px 4px #00352712}
.language-switch button:hover{color:var(--forest);background:#f9f9f8}
html[lang="ru"] .header-links{gap:22px}
html[lang="ru"] .header-links button{white-space:nowrap}
html[lang="ru"] .role-card h2{font-size:23px}
html[lang="ru"] .bottomnav button{letter-spacing:.3px}
@media(min-width:761px) and (max-width:1150px){.topbar{flex-wrap:nowrap;gap:14px;padding:0 25px}.header-links{flex:1;min-width:0;justify-content:center;gap:16px}.header-links button{font-size:11px}.header-actions{margin-left:0;gap:10px}.header-right{gap:10px}.saved-label{display:none}.role-context{gap:8px}}
@media(min-width:601px) and (max-width:760px){header{height:auto;min-height:80px}.topbar{flex-wrap:wrap;row-gap:4px;padding-top:10px;padding-bottom:10px}.header-actions{margin-left:auto}.header-links{order:3;width:100%;justify-content:center}.layout nav{top:125px}body[data-screen="welcome"] header,body[data-screen="student"] header{min-height:64px}}
@media(max-width:600px){.header-actions{margin-left:auto;gap:9px}.header-right{margin-left:0}.language-switch{padding:2px}.language-switch button{padding:5px 6px;font-size:9px}.topbar{column-gap:10px}.role-context{gap:7px}.role-pill{font-size:8px;padding:6px 7px}.switch-role{font-size:9px}.brand{font-size:21px}html[lang="ru"] .header-links{gap:18px}html[lang="ru"] .role-card h2{font-size:22px}.sample-label{white-space:normal;text-align:center}.student-account-heading .sample-label{max-width:100px}html[lang="ru"] .library-count{min-width:155px}}
