.site-language-control { display:inline-flex; align-items:center; gap:5px; flex:0 0 auto; height:30px; padding:0 6px; border:1px solid #557083; border-radius:4px; color:inherit; background:transparent; box-sizing:border-box; font:12px Arial,"Microsoft YaHei",sans-serif; letter-spacing:0; white-space:nowrap; }
.site-language-control select { width:80px; min-width:0; max-width:80px; height:26px; padding:0 2px; border:0; border-radius:0; background:transparent; color:inherit; font:inherit; cursor:pointer; }
.site-language-control select option { color:#142536; background:#fff; }
.site-language-control:focus-within { outline:2px solid #15bed5; outline-offset:2px; }
.site-language-floating { position:fixed; right:16px; top:12px; z-index:1200; background:#0f293e; color:#fff; box-shadow:0 2px 8px #0003; }
html:lang(zh) { --site-zh-font: "SimSun", "宋体", "Songti SC", "Noto Serif CJK SC", "Noto Serif SC", serif; }
html:lang(zh) body { font-family:var(--site-zh-font); font-synthesis:none; }
/* Keep existing sizes, line heights and layout; use the same Chinese glyph family. */
html:lang(zh) :is(button,input,select,textarea,label,summary,.nav-device-meta,.nav-device-copy,.nav-vms-type-card,.site-language-control) { font-family:var(--site-zh-font); font-synthesis:none; }
html:lang(zh) .nav-device-meta strong { font-weight:600; }
html:lang(zh) :is(#textInput,.tf-quick-selected strong) { font-family:var(--site-zh-font); font-synthesis:none; }
html:lang(zh) :is(button,label,dt,th,summary,.eyebrow,.kicker,.nav-section-title,.sidebar-language-current) { letter-spacing:normal; }
html:lang(zh) :is(.plain-btn,.orange-btn,.device-card-actions button,.wl-mode-label,.wl-type-label) { white-space:nowrap; word-break:keep-all; }
html:lang(zh) :is(.device-dialog-section p,.wl-controls p,.side-note) { overflow-wrap:break-word; }
/* This calendar heading is CSS-generated, not a DOM text node. */
html:lang(zh) #barrierScheduleDialog #barrierScheduleList::before { content: "已保存日历"; }
@media(max-width:600px) { .site-language-floating { top:8px; right:8px; } .site-language-control { height:28px; } }
@media(max-width:760px) {
  html body .crumb-row { flex-wrap:wrap; row-gap:8px; height:auto; }
  html body .crumb-actions { flex:1 1 100%; max-width:100%; min-width:0; flex-wrap:wrap; gap:6px; }
}
