.zy-lang-switch{display:inline-flex;align-items:center;gap:2px;flex-shrink:0;width:max-content;padding:3px;border:1px solid var(--border,rgba(127,127,145,.25));border-radius:12px;background:var(--surface,rgba(127,127,145,.08));box-sizing:border-box;vertical-align:middle}
.zy-lang-switch button{appearance:none;display:block;flex:0 0 auto;min-width:36px;min-height:32px;padding:5px 7px;margin:0;border:0;border-radius:8px;background:transparent;color:var(--text,#626278);font:600 12px/1.2 system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;letter-spacing:.02em;cursor:pointer;transition:background .15s,color .15s,box-shadow .15s}
.zy-lang-switch button[aria-pressed=true]{background:var(--primary,#7957ff);color:#fff;box-shadow:0 1px 3px #0002}
.zy-lang-switch button:hover:not([aria-pressed=true]){background:rgba(127,127,145,.15)}
.zy-lang-switch button:focus-visible{outline:2px solid var(--primary,#7957ff);outline-offset:2px}
.zy-lang-standalone{display:flex;margin:0 0 16px auto}
.zs-side-foot>.zy-lang-switch{margin:8px 12px;width:calc(100% - 24px)}
.zs-side-foot>.zy-lang-switch button{flex:1}
.zs-mtop-right,.tb-right{gap:8px}
html[lang=ru] .zs-mtop-title{min-width:0}
html[lang=ru] .gf-btn{white-space:nowrap}
@media(pointer:coarse){.zy-lang-switch button{min-height:38px;min-width:38px}}
@media(max-width:480px){.zy-lang-switch{padding:2px}.zy-lang-switch button{font-size:11px;min-width:32px}.tb-right{gap:6px}.tb-right .export-btn{padding-left:12px;padding-right:12px}html[lang=ru] .gallery-filters{gap:6px}}
@media(prefers-reduced-motion:reduce){.zy-lang-switch button{transition:none}}
/* The chat header styles all buttons with important rules. Keep the language control distinct. */
.top-bar #zyLanguageSwitch button{padding:5px 7px!important;min-width:32px;min-height:32px;background:transparent!important;color:var(--txt,var(--text,#626278))!important;font:600 12px/1.2 system-ui,sans-serif!important}
.top-bar #zyLanguageSwitch button[aria-pressed=true]{background:var(--primary,#7957ff)!important;color:#fff!important}
@media(max-width:768px){.top-bar .top-right:has(#zyLanguageSwitch){flex-wrap:nowrap!important}.top-bar:has(#zyLanguageSwitch) #modelPicker{flex:1;min-width:0}.top-bar:has(#zyLanguageSwitch) #modelPickerBtn{width:100%;min-width:0;padding:10px 8px!important}.top-bar:has(#zyLanguageSwitch) .mp-name{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.top-bar:has(#zyLanguageSwitch) #dotsBtn{flex:0 0 36px;padding:10px!important}}
body>.zy-lang-standalone{margin:12px 16px 16px auto}
