/* Shared segmented control. Keep account/button styles out of this component. */
.lab-language{
 position:relative;display:inline-grid;grid-template-columns:repeat(2,1fr);
 align-items:center;flex:0 0 auto;width:108px;height:40px;max-width:100%;
 padding:4px;gap:0;border:0;border-radius:12px;background:#e8ebe3;
 isolation:isolate;vertical-align:middle;
}
.lab-language::before{
 content:"";position:absolute;z-index:0;left:4px;top:4px;
 width:calc((100% - 8px)/2);height:calc(100% - 8px);
 border-radius:9px;background:#fff;box-shadow:0 1px 3px #23311d12;
 transition:transform 180ms ease;
}
.lab-language[data-current-language="ru"]::before{transform:translateX(100%)}
.lab-language>button{
 all:unset;box-sizing:border-box;position:relative;z-index:1;
 display:grid;place-items:center;width:100%;height:32px;min-width:0;
 margin:0;padding:0;border:0;border-radius:9px;background:transparent;box-shadow:none;
 color:#818a7b;font:600 11px/1 -apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
 letter-spacing:.035em;text-align:center;cursor:pointer;touch-action:manipulation;
 -webkit-tap-highlight-color:transparent;transition:color 180ms ease;
}
.lab-language>button::after{content:"";position:absolute;inset:-6px 0}
.lab-language>button[aria-pressed="true"]{color:#243227;background:transparent;box-shadow:none}
.lab-language>button:focus-visible{outline:2px solid #66894b;outline-offset:1px}
.auth-form-box>.lab-language,.login-wrap>.lab-language{margin-bottom:24px}
.session-screen>.lab-language{margin-top:20px}
.topbar{flex-wrap:wrap}.topbar>.lab-language{margin-left:auto}
#hub .hub-account{display:flex;align-items:center;flex-wrap:nowrap;min-width:0;gap:18px}
#hub-user{min-width:0;max-width:240px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:13px}
#hub .hub-account>.lab-language{order:2}
#hub .hub-account>#hub-logout{
 order:3;flex:0 0 auto;min-height:40px;margin:0;padding:8px 0 8px 6px;
 border:0;border-radius:6px;background:transparent;box-shadow:none;
 color:#6c7665;font:500 13px/1.2 -apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
}
#hub-logout:hover{color:#202c24!important}
#hub-logout:focus-visible{outline:2px solid #66894b;outline-offset:4px}
@media(max-width:760px){
 #hub header{display:flex;flex-wrap:wrap;align-items:center;gap:18px;padding-bottom:20px}
 #hub header>.brand{flex-basis:100%}
 #hub .hub-account{width:100%;gap:16px;justify-content:space-between}
 #hub-user{flex:1;max-width:none}
 .auth-form-box>.lab-language{margin-bottom:20px}
}
@media(max-width:720px){
 .topbar>.row{order:3;flex-basis:100%;justify-content:space-between}
 .topbar>.lab-language{order:2}
 .topbar [data-cloud="status"],.topbar #sync-status{order:1}
 .topbar [data-cloud="logout"],.topbar [data-action="logout"]{order:2}
 .app>aside>.back{display:none}
}
@media(prefers-reduced-motion:reduce){
 .lab-language::before,.lab-language>button{transition:none}
}

