.ui-language-switch { display:inline-flex; align-items:center; flex-shrink:0; gap:2px; padding:3px; border:1px solid rgba(196,158,78,.45); border-radius:10px; margin-left:12px; }
.ui-language-switch button { appearance:none; border:0; border-radius:7px; padding:7px 9px; min-height:34px; background:transparent; color:inherit; font:600 12px/1.2 system-ui,sans-serif; cursor:pointer; }
.ui-language-switch button[aria-pressed="true"] { background:#e6bd70; color:#18140d; }
.ui-language-switch button:focus-visible { outline:2px solid #e6bd70; outline-offset:3px; }
/* Preserve existing delegated handlers that inspect event.target.matches(). */
button > span[data-i18n], a > span[data-i18n] { pointer-events:none; }
.i18n-sr-only { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }
html[lang="zh-CN"] body { font-family:Inter,"PingFang SC","Microsoft YaHei","Noto Sans CJK SC",sans-serif; }
html[lang="zh-CN"] .sidebar-item { line-height:1.5; }
.nav-inner > .ui-language-switch { margin-left:auto; }
.ui-language-floating { position:fixed; top:14px; right:14px; z-index:10000; padding:4px; border-radius:12px; background:rgba(20,17,12,.88); color:#fff; box-shadow:0 8px 24px rgba(0,0,0,.22); backdrop-filter:blur(10px); }
.ui-language-floating .ui-language-switch { margin-left:0; }
@media (max-width:760px) {
  .nav-inner { column-gap:8px; }
  .nav-inner > .ui-language-switch { margin-left:0; }
  .ui-language-switch button { padding:7px 6px; }
  .nav-inner:has(.ui-language-switch) .brand { font-size:16px; gap:5px; flex-shrink:1; }
  .nav-inner:has(.ui-language-switch) .nav-right { gap:6px !important; }
  .nav-inner:has(.ui-language-switch) .nav-right > .pill,
  .nav-inner:has(.ui-language-switch) .nav-right > .tag { display:none; }
}
@media (max-width:380px) {
  .nav--authed .nav-right > .btn { display:none; }
}
