/* Interface controls are independent of publication and conversation language. */
.moustache-language-switch{display:inline-flex;align-items:center;gap:10px;flex-shrink:0;font-family:Montserrat,sans-serif}
.moustache-language-switch button{border:0;background:transparent;color:#786f6b;font:400 10px/1.6 Montserrat,sans-serif;letter-spacing:1.4px;cursor:pointer;padding:8px 4px;min-width:34px;min-height:40px}
.moustache-language-switch button[aria-pressed=true]{color:#763b40;text-decoration:underline;text-underline-offset:6px}
.moustache-language-switch button:focus-visible{outline:2px solid #763b40;outline-offset:4px}
.moustache-language-floating{position:fixed;top:14px;right:24px;z-index:1100;padding:2px 10px;background:rgba(245,249,252,.94);border-radius:3px}
.publication-language-choice{position:static!important;inset:auto!important;transform:none!important;margin:20px auto!important;text-align:center}
.publication-language-choice .publication-language-label{display:block;font:400 10px/1.7 Montserrat,sans-serif;letter-spacing:1px;color:#786f6b;margin-bottom:8px}
.moustache-language-status{position:fixed;bottom:12px;left:50%;transform:translateX(-50%);z-index:1200;background:#fff9f3;border:1px solid #d8c7bd;padding:12px 16px;max-width:min(640px,calc(100% - 28px));font:400 12px/1.7 Montserrat,sans-serif;color:#38241f}
.moustache-language-status[hidden]{display:none!important}
@media(max-width:760px){.moustache-language-floating{top:8px;right:10px}.moustache-language-switch{gap:5px}.moustache-language-switch button{font-size:9px;letter-spacing:1px;min-width:30px}.top .top-actions{flex-wrap:wrap}.top .top-links{flex-wrap:wrap;gap:8px 14px}.top .top-actions .moustache-language-switch{margin-left:auto}}
/* The same library label typography in personal and work headers. */
.moustache-work-header.top{display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);gap:20px}
.moustache-work-header.top>.top-title{position:static;transform:none;grid-column:2;grid-row:1;justify-self:center;white-space:normal;text-align:center;font-family:Montserrat,sans-serif;font-size:9px;font-weight:400;line-height:1.6;letter-spacing:2.4px;text-transform:uppercase}
.moustache-work-header.top>.language-switch{grid-column:3;grid-row:1;justify-self:end}
@media(max-width:700px){.moustache-work-header.top{height:90px;grid-template-columns:minmax(0,1fr) auto;gap:0 12px;padding:6px 16px}.moustache-work-header.top>.top-title{grid-column:1/-1;grid-row:2;font-size:8px;letter-spacing:1.3px}.moustache-work-header.top>.language-switch{grid-column:2;grid-row:1}.moustache-work-header~.work-nav{top:90px}.top .top-actions{gap:10px}}

.moustache-language-switch[hidden],.moustache-response-language[hidden]{display:none!important}
.moustache-response-language{display:flex;align-items:center;gap:12px;flex-wrap:wrap;font:400 11px/1.6 Montserrat,sans-serif;color:#786f6b;margin:0 0 12px}
.moustache-response-language select{font:inherit;color:#38241f;background:transparent;border:1px solid #d8c7bd;padding:8px;max-width:100%;min-height:40px}
.moustache-response-language select:focus-visible{outline:2px solid #763b40;outline-offset:3px}
body>.moustache-language-switch{position:absolute;top:18px;right:24px;z-index:1000}

/* v1.1.2: consistent controls with or without the external stylesheet. */
/* Shared EN/RU controls, including Safari's native button reset. */
.moustache-language-switch{display:inline-flex;align-items:center;gap:10px;flex-shrink:0;font-family:Montserrat,sans-serif}
.moustache-language-switch button[data-moustache-language]{-webkit-appearance:none;appearance:none;display:inline-flex;align-items:center;justify-content:center;flex:0 0 auto;box-sizing:border-box;margin:0;border:0;border-radius:0;box-shadow:none;background:transparent;color:#786f6b;font:400 10px/1.6 Montserrat,sans-serif;letter-spacing:1.4px;text-align:center;text-transform:none;text-decoration:none;white-space:nowrap;cursor:pointer;padding:8px 4px;min-width:34px;min-height:40px}
.moustache-language-switch button[data-moustache-language].active,.moustache-language-switch button[data-moustache-language][aria-pressed="true"]{border:0;background:transparent;color:#763b40;text-decoration:underline;text-underline-offset:6px;text-decoration-thickness:1px}
.moustache-language-switch button[data-moustache-language]:focus-visible{outline:2px solid #763b40;outline-offset:4px}
.moustache-language-switch[hidden]{display:none!important}
@media(max-width:760px){.moustache-language-switch{gap:5px}.moustache-language-switch button[data-moustache-language]{font-size:9px;letter-spacing:1px;min-width:30px}}
