.language-button{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:38px;padding:8px 10px;border:1px solid #dfe9e2;border-radius:10px;background:#fff;color:#3f6b57;font-size:12px;font-weight:700}.language-button svg{width:18px;height:18px}.language-dialog{width:calc(100% - 30px);max-width:600px;padding:26px;max-height:calc(100dvh - 30px);overflow:auto}.language-heading{display:flex;align-items:center;justify-content:space-between;gap:18px}.language-heading h2{font-size:25px;margin-top:8px}.language-heading .eyebrow{font-size:10px;letter-spacing:1px;color:var(--green)}.language-heading .icon-button{font-size:26px}.language-intro{font-size:14px;color:var(--muted);line-height:1.6;margin:12px 0 22px}.language-search-label{display:block;font-size:13px;font-weight:650;margin-bottom:8px}.language-dialog input{width:100%;min-height:46px;border:1px solid #ceded2;border-radius:10px;padding:11px 13px;font-size:16px;background:#fbfdfa;color:var(--ink)}.language-list{display:grid;grid-template-columns:1fr 1fr;gap:8px;max-height:330px;overflow:auto;margin-top:18px;padding:4px}.language-option{display:flex;align-items:center;justify-content:space-between;gap:10px;text-align:start;min-height:49px;padding:12px;border:1px solid #e1e8df;border-radius:10px;font-size:15px}.language-option small{font-size:10px;color:var(--muted);direction:ltr;white-space:nowrap}.language-option[aria-pressed=true]{border-color:#16836b;background:#eaf5ef;color:#116b54}.language-option:hover{background:#f0f6ec}.language-review{font-size:12px;line-height:1.7;color:var(--muted);border-top:1px solid var(--line);padding-top:17px;margin:10px 0 0}#language-status{font-size:13px;color:var(--green);line-height:1.6;margin:14px 0}.top-stats{gap:15px}
/* Match reading direction without changing diagrams, sequence models or numeric inputs. */
html[dir=rtl] .sidebar{left:auto;right:0;border-right:0;border-left:1px solid var(--line)}html[dir=rtl] .app-shell{margin-left:0;margin-right:236px}html[dir=rtl] .brand-icon{margin-right:0;margin-left:9px}html[dir=rtl] .nav-end{margin-left:0;margin-right:auto}html[dir=rtl] .nav-link,html[dir=rtl] .world-card,html[dir=rtl] .profile,html[dir=rtl] .level-option,html[dir=rtl] .choice-button{text-align:right}html[dir=rtl] .feature-image{right:auto;left:0;transform:scaleX(-1)}html[dir=rtl] .feature-quest:after{transform:scaleX(-1)}html[dir=rtl] .feature-content{position:relative;z-index:2}html[dir=rtl] .quest-progress span,html[dir=rtl] .world-progress span{margin-right:0;margin-left:auto}.dna-workspace,.cell-diagram,.population-chart,.practice-data td,input[type=number]{direction:ltr}html:not([lang=en]) .world-body p{min-height:3.5em}html:not([lang=en]) .level-button{white-space:normal}html:not([lang=en]) .choice-text,html:not([lang=en]) .lesson-info{overflow-wrap:anywhere}
@media(max-width:1100px){.topbar .desktop-only.muted{display:none}.top-stats{gap:10px}}
@media(max-width:1200px){html[dir=rtl] .app-shell{margin-right:205px}}
@media(max-width:1050px){html[dir=rtl] .app-shell{margin-right:190px}}
@media(max-width:960px){.language-button{gap:4px;padding:7px}.topbar .avatar.small{display:none}}
@media(max-width:760px){html[dir=rtl] .app-shell{margin-right:0}html[dir=rtl] .sidebar{left:0;right:0;border-left:0}.language-dialog{padding:22px}.language-heading h2{font-size:23px}.language-option{font-size:14px;padding:11px 9px}.top-stats{gap:6px}.language-button{font-size:10px}.language-button svg{width:16px;height:16px}.language-list{max-height:300px}.topbar{gap:5px}}
@media(max-width:360px){.topbar .mini-brand{font-size:19px}.language-button{padding:7px 5px}.language-button svg{display:none}.top-stats{gap:5px}.language-dialog{padding:18px}.language-list{grid-template-columns:1fr;max-height:290px}}
