.ymg-language-switcher { flex: 0 0 auto; }
.ymg-language-switcher.has-picker select { display: none; }
.ymg-language-trigger { display:flex; align-items:center; gap:8px; min-height:44px; max-width:160px; padding:8px 12px; border:1px solid #c7d3d0; border-radius:10px; background:#f8faf7; color:#102532; font:inherit; font-size:13px; cursor:pointer; }
.ymg-language-trigger::after { content:'▾'; margin-left:4px; }
.ymg-language-trigger img, .ymg-language-panel img { flex:0 0 24px; width:24px; height:18px; object-fit:contain; }
.ymg-language-panel { position:fixed; right:24px; z-index:10000; width:min(640px, calc(100vw - 32px)); display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:4px; padding:12px; max-height:calc(100dvh - 140px); overflow-y:auto; border:1px solid #c7d3d0; border-radius:14px; background:#fff; box-shadow:0 12px 36px #10253226; }
.ymg-language-panel[hidden] { display:none; }
.ymg-language-panel button { display:flex; align-items:center; gap:8px; min-height:44px; padding:8px; border:0; border-radius:7px; background:transparent; color:#102532; font:inherit; font-size:13px; text-align:left; overflow-wrap:anywhere; cursor:pointer; }
.ymg-language-panel button:hover, .ymg-language-panel button[aria-pressed="true"] { background:#e6efeb; }
.ymg-language-trigger:focus-visible, .ymg-language-panel button:focus-visible { outline:2px solid #2d6b5e; outline-offset:2px; }
.site-nav .nav-links > .button { font-size: .86rem; }
.site-nav .nav-links > .button::before { content: none; }
.ymg-language-switcher select {
  width: 124px;
  min-height: 44px;
  padding: 8px;
  border: 1px solid rgba(16,37,50,.2);
  border-radius: 10px;
  background: #f8faf7;
  color: #102532;
  font: inherit;
  font-size: 13px;
  cursor: pointer;
}
.ymg-language-switcher select:focus-visible { outline: 2px solid #2d6b5e; outline-offset: 3px; }
@media (max-width: 1100px) {
  .site-nav { gap: 12px; }
  .ymg-language-switcher select { width: 110px; }
}
@media (max-width: 820px) {
  .ymg-language-trigger { font-size:12px; max-width:145px; padding:8px; }
  .ymg-language-panel { right:16px; gap:4px; padding:8px; }
  .ymg-language-panel button { flex-direction:column; justify-content:center; gap:5px; font-size:11px; line-height:1.3; padding:7px 2px; min-height:58px; text-align:center; }
  .site-nav .ymg-language-switcher { margin-left: auto; }
  .site-nav .menu-toggle { order: 3; margin-left: 0; }
  .ymg-language-switcher select { width: 112px; font-size: 12px; }
}
