.language-picker{display:inline-flex;flex-shrink:0;align-items:center;gap:2px;padding:3px;border:1px solid #d8ded5;border-radius:9px;background:#f2f3f1;margin-left:10px}
.language-picker button{font:600 12px/1.3 system-ui,sans-serif;min-height:36px;padding:7px 10px;border:1px solid transparent;border-radius:6px;background:transparent;color:#626a65;cursor:pointer}
.language-picker button[aria-pressed=true]{color:#a74213;background:#fff;border-color:#e5c8b8;box-shadow:0 1px 3px #252a2510}
.language-picker button:focus-visible{outline:2px solid #c45a22;outline-offset:2px}
.language-picker-standalone{position:absolute;right:20px;top:16px;z-index:30}
#word-english,.word-more-label-en,#word-russian-summary,.dictionary-definition-en{display:none}
html[lang=en] #word-dialog{overflow:auto}
html[lang=en] #word-dialog>#word-translation,html[lang=en] .word-more-label-ru,html[lang=en] #word-more .word-example-en{display:none}
html[lang=en] #word-english,html[lang=en] #word-russian-summary,html[lang=en] .dictionary-definition-en{display:block}
html[lang=en] .word-more-label-en{display:inline}
html[lang=en] .dictionary-hint:not(.dictionary-encounters){display:none}
#word-english-senses{margin:10px 0;padding:0 0 0 19px;max-height:min(265px,36vh);overflow:auto;overscroll-behavior:contain}
#word-english-senses li{padding:0 7px 12px 0;margin-bottom:10px;border-bottom:1px solid #edf0ee;font-size:13px;line-height:1.5}
#word-english-senses li:last-child{border:0;margin-bottom:0;padding-bottom:0}
.word-english-pos{font-size:10px;color:#7a8580}
#word-english-senses .word-english-definition{font-size:14px;color:#273444;margin:4px 0 8px}
#word-english-senses .word-example-en{margin:4px 0;padding-left:9px;border-left:2px solid #d9e7de;color:#5f6d66;font-size:13px}
#word-english-source{font-size:10px;color:#8b9590;margin:5px 0 12px}
.dictionary-definition-en{font-size:12px;color:#738077;font-weight:400;line-height:1.5;margin-top:4px}
header.localized-header{display:grid;grid-template-columns:minmax(140px,1fr) auto auto;gap:12px 18px;align-items:center}
header.localized-header .localized-brand{grid-column:1;grid-row:1}
header.localized-header .localized-account{grid-column:2;grid-row:1;display:flex;align-items:center;justify-content:flex-end;gap:10px;min-width:0}
header.localized-header>.language-picker{grid-column:3;grid-row:1;justify-self:end;margin-left:0}
header.localized-header .localized-nav{grid-column:1/-1;grid-row:2;display:flex;flex-wrap:wrap;margin:0;gap:4px 10px}
@media(max-width:700px){
 header.localized-header{grid-template-columns:minmax(0,1fr) auto;gap:10px}
 header.localized-header .localized-brand{font-size:17px;gap:7px}
 header.localized-header .localized-brand img{width:28px;height:28px}
 header.localized-header>.language-picker{grid-column:2}
 header.localized-header .localized-account{grid-column:1/-1;grid-row:2}
 header.localized-header .localized-nav{grid-row:3;width:100%;gap:0}
 .language-picker button{min-height:40px;padding:8px}
 .language-picker-standalone{top:10px;right:12px}
}
#word-other-en{display:none}
html[lang=en] #word-other-en:not([hidden]){display:block}
#word-dialog details[hidden]{display:none}
#word-other-en summary,#word-other-ru summary{cursor:pointer;font-size:13px;color:#596b64;padding:8px 0}
#word-other-en-senses{padding-left:19px;max-height:220px;overflow:auto;font-size:13px;line-height:1.5}
#word-other-en-senses li{margin-bottom:14px}
#word-context-label{margin:10px 0 4px;color:#60776b;font-size:11px;line-height:1.5}
#word-dialog{overflow:auto}

@media(max-width:700px){
 header.localized-header{gap:6px 10px;padding-top:14px;padding-bottom:9px}
 header.localized-header .localized-nav{grid-row:3;min-width:0;max-width:100%;overflow-x:auto;overflow-y:hidden;flex-wrap:nowrap;justify-content:flex-start;gap:4px;padding-bottom:3px;scroll-snap-type:x proximity;scrollbar-width:thin}
 header.localized-header .localized-nav a{flex:none;white-space:nowrap;scroll-snap-align:start;min-height:44px;display:inline-flex;align-items:center}
 header.localized-header .localized-account{grid-row:2}
}
header.header{flex-wrap:wrap}
header.header .main-nav{flex-wrap:wrap;gap:4px 6px;align-items:center}
header.localized-header .main-nav a{white-space:nowrap;min-height:42px;display:inline-flex;align-items:center;justify-content:center}
header.localized-header .main-nav a:focus-visible{outline:2px solid var(--accent,#315b43);outline-offset:2px}
@media(max-width:700px){
 header.localized-header .main-nav{flex-wrap:wrap;overflow:visible;scroll-snap-type:none;padding-bottom:0}
 header.localized-header .main-nav a{min-height:40px;padding:7px 10px;font-size:12px}
}
