.main-language-switcher{position:relative;display:inline-flex;align-items:center}.main-language-btn{display:inline-flex!important;align-items:center;justify-content:center}.main-language-menu{position:absolute;right:0;top:calc(100% + 8px);z-index:10050;display:none;min-width:148px;padding:6px;background:#fff;border:1px solid rgba(24,25,28,.12);border-radius:10px;box-shadow:0 12px 30px rgba(24,25,28,.14)}.main-language-menu.is-open{display:block}.main-language-menu button{width:100%;border:0;background:transparent;border-radius:7px;padding:8px 10px;text-align:left;font:inherit;color:#18191c;white-space:nowrap}.main-language-menu button:hover,.main-language-menu button.active{background:rgba(217,119,6,.10);color:#b45309}.main-language-menu button.active{font-weight:700}html[data-bo-theme="dark"] .main-language-menu{background:#25262b;border-color:rgba(255,255,255,.12);box-shadow:0 12px 30px rgba(0,0,0,.35)}html[data-bo-theme="dark"] .main-language-menu button{color:#f4f4f5}html[data-bo-theme="dark"] .main-language-menu button:hover,html[data-bo-theme="dark"] .main-language-menu button.active{background:rgba(217,119,6,.18);color:#fbbf24}@media(max-width:767px){.main-language-menu{right:0;min-width:136px}}

/* Sidebar placement (BO, Main and Agent shells): a row right above the Logout footer, built by
   main-i18n.js mount(). Main and Agent pages do not link bo-shell.css, so the row is styled here,
   on the switcher's own classes only (no shell selector, so check-shell-drift stays clean).
   The theme sheets paint sidebar buttons with !important, hence the same here. */
html body .main-language-switcher.is-sidebar{display:flex;align-items:stretch;gap:8px;position:relative;flex:0 0 auto;padding:0 10px 8px;margin:0}
html body .main-language-switcher.is-sidebar > .main-language-btn{flex:1 1 auto;min-width:0}
html body .main-language-switcher.is-sidebar .main-language-btn{display:flex!important;align-items:center;justify-content:flex-start;gap:10px;width:100%!important;height:40px!important;min-height:0!important;margin:0!important;padding:0 12px!important;border:1px solid rgba(92,74,48,.14)!important;border-radius:10px!important;background:rgba(255,255,255,.45)!important;box-shadow:none!important;color:#6b360c!important;font:700 13px/1 Inter,ui-sans-serif,"Segoe UI",system-ui,sans-serif!important;letter-spacing:normal!important;text-align:left;cursor:pointer;transition:background-color .15s ease,border-color .15s ease}
html body .main-language-switcher.is-sidebar .main-language-btn > .bi-translate{flex:0 0 auto;font-size:16px;line-height:1;color:#b45309}
html body .main-language-switcher.is-sidebar .main-language-current{flex:1 1 auto;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
html body .main-language-switcher.is-sidebar .main-language-caret{flex:0 0 auto;font-size:11px;line-height:1;opacity:.6;transition:transform .15s ease}
html body .main-language-switcher.is-sidebar .main-language-btn[aria-expanded="true"] .main-language-caret{transform:rotate(180deg)}
html body .main-language-switcher.is-sidebar .main-language-btn:hover,
html body .main-language-switcher.is-sidebar .main-language-btn[aria-expanded="true"]{background:rgba(255,255,255,.8)!important;border-color:rgba(217,119,6,.35)!important}
html body .main-language-switcher.is-sidebar .main-language-btn:focus-visible{outline:2px solid rgba(217,119,6,.55);outline-offset:2px}
html body .main-language-switcher.is-sidebar .main-language-menu{min-width:0;z-index:10060} /* fixed; position set by main-i18n.js place() */
/* Collapsed rail (72px, body.sidebar-mini): icon only; the menu opens as a fixed popover beside it. */
html body.sidebar-mini .main-language-switcher.is-sidebar{flex-direction:column}
html body.sidebar-mini .main-language-switcher.is-sidebar .main-language-btn{justify-content:center;padding:0!important}
html body.sidebar-mini .main-language-switcher.is-sidebar .main-language-current,
html body.sidebar-mini .main-language-switcher.is-sidebar .main-language-caret{display:none}
html body.sidebar-mini .main-language-switcher.is-sidebar .main-language-menu{min-width:148px}
html[data-bo-theme="dark"] body .main-language-switcher.is-sidebar .main-language-btn{background:rgba(255,255,255,.04)!important;border-color:rgba(255,255,255,.10)!important;color:#e7e5e4!important}
html[data-bo-theme="dark"] body .main-language-switcher.is-sidebar .main-language-btn > .bi-translate{color:#fbbf24}
html[data-bo-theme="dark"] body .main-language-switcher.is-sidebar .main-language-btn:hover,
html[data-bo-theme="dark"] body .main-language-switcher.is-sidebar .main-language-btn[aria-expanded="true"]{background:rgba(255,255,255,.08)!important;border-color:rgba(245,158,11,.40)!important}
/* The dark-mode switch, moved into this row by main-i18n.js adoptTheme(): same box as the language
   button. ID-level selectors because the topbar theme sheets paint .bo-theme-btn with !important. */
html body .main-language-switcher.is-sidebar > #boThemeToggle{display:inline-flex!important;align-items:center!important;justify-content:center!important;flex:0 0 40px!important;width:40px!important;height:40px!important;min-width:40px!important;max-width:none!important;max-height:none!important;min-height:0!important;margin:0!important;padding:0!important;border:1px solid rgba(92,74,48,.14)!important;border-radius:10px!important;background:rgba(255,255,255,.45)!important;box-shadow:none!important;color:#b45309!important;font-size:16px!important;line-height:1!important;cursor:pointer;transform:none!important;transition:background-color .15s ease,border-color .15s ease}
html body .main-language-switcher.is-sidebar > #boThemeToggle [data-theme-icon][hidden]{display:none!important}
html body .main-language-switcher.is-sidebar > #boThemeToggle:hover{background:rgba(255,255,255,.8)!important;border-color:rgba(217,119,6,.35)!important}
html body .main-language-switcher.is-sidebar > #boThemeToggle:focus-visible{outline:2px solid rgba(217,119,6,.55);outline-offset:2px}
html body.sidebar-mini .main-language-switcher.is-sidebar > #boThemeToggle{width:100%!important;flex:0 0 40px!important}
html[data-bo-theme="dark"] body .main-language-switcher.is-sidebar > #boThemeToggle{background:rgba(255,255,255,.04)!important;border-color:rgba(255,255,255,.10)!important;color:#fbbf24!important}
html[data-bo-theme="dark"] body .main-language-switcher.is-sidebar > #boThemeToggle:hover{background:rgba(255,255,255,.08)!important;border-color:rgba(245,158,11,.40)!important}

/* Tablet and up: language + theme read as ONE box (two halves, a short divider between them). Phones keep
   the two separate boxes above. The divider is a background layer on the theme half (not a pseudo element:
   the theme sheets already use #boThemeToggle's pseudos), so every background here is restated with it.
   Hovering either half lights the whole outline; only the hovered half gets the lighter fill.
   Collapsed rail (body.sidebar-mini): the halves stack, so the corners and the divider turn 90 degrees. */
@media (min-width:768px){
  html body .report-sidebar .main-language-switcher.is-sidebar > .main-language-btn{border-right-width:0!important;border-top-right-radius:0!important;border-bottom-right-radius:0!important}
  /* The row's 8px gap is cancelled with a negative margin: a gap declaration on this shell selector belongs in
     bo-shell.css, which Main and Agent pages do not load. */
  html body .report-sidebar .main-language-switcher.is-sidebar > #boThemeToggle{margin:0 0 0 -8px!important;border-left-width:0!important;border-top-left-radius:0!important;border-bottom-left-radius:0!important;
    background:linear-gradient(rgba(92,74,48,.16),rgba(92,74,48,.16)) left center/1px 22px no-repeat,rgba(255,255,255,.45)!important}
  html body .report-sidebar .main-language-switcher.is-sidebar > #boThemeToggle:hover{background:linear-gradient(rgba(92,74,48,.16),rgba(92,74,48,.16)) left center/1px 22px no-repeat,rgba(255,255,255,.8)!important}
  html body .report-sidebar .main-language-switcher.is-sidebar:has(> .main-language-btn:hover, > .main-language-btn[aria-expanded="true"], > #boThemeToggle:hover) > .main-language-btn,
  html body .report-sidebar .main-language-switcher.is-sidebar:has(> .main-language-btn:hover, > .main-language-btn[aria-expanded="true"], > #boThemeToggle:hover) > #boThemeToggle{border-color:rgba(217,119,6,.35)!important}

  html body.sidebar-mini .report-sidebar .main-language-switcher.is-sidebar > .main-language-btn{border-right-width:1px!important;border-bottom-width:0!important;border-radius:10px 10px 0 0!important}
  html body.sidebar-mini .report-sidebar .main-language-switcher.is-sidebar > #boThemeToggle{margin:-8px 0 0!important;border-left-width:1px!important;border-top-width:0!important;border-radius:0 0 10px 10px!important;
    background:linear-gradient(rgba(92,74,48,.16),rgba(92,74,48,.16)) center top/22px 1px no-repeat,rgba(255,255,255,.45)!important}
  html body.sidebar-mini .report-sidebar .main-language-switcher.is-sidebar > #boThemeToggle:hover{background:linear-gradient(rgba(92,74,48,.16),rgba(92,74,48,.16)) center top/22px 1px no-repeat,rgba(255,255,255,.8)!important}

  html[data-bo-theme="dark"] body .report-sidebar .main-language-switcher.is-sidebar > #boThemeToggle{background:linear-gradient(rgba(255,255,255,.12),rgba(255,255,255,.12)) left center/1px 22px no-repeat,rgba(255,255,255,.04)!important}
  html[data-bo-theme="dark"] body .report-sidebar .main-language-switcher.is-sidebar > #boThemeToggle:hover{background:linear-gradient(rgba(255,255,255,.12),rgba(255,255,255,.12)) left center/1px 22px no-repeat,rgba(255,255,255,.08)!important}
  html[data-bo-theme="dark"] body.sidebar-mini .report-sidebar .main-language-switcher.is-sidebar > #boThemeToggle{background:linear-gradient(rgba(255,255,255,.12),rgba(255,255,255,.12)) center top/22px 1px no-repeat,rgba(255,255,255,.04)!important}
  html[data-bo-theme="dark"] body.sidebar-mini .report-sidebar .main-language-switcher.is-sidebar > #boThemeToggle:hover{background:linear-gradient(rgba(255,255,255,.12),rgba(255,255,255,.12)) center top/22px 1px no-repeat,rgba(255,255,255,.08)!important}
  html[data-bo-theme="dark"] body .report-sidebar .main-language-switcher.is-sidebar:has(> .main-language-btn:hover, > .main-language-btn[aria-expanded="true"], > #boThemeToggle:hover) > .main-language-btn,
  html[data-bo-theme="dark"] body .report-sidebar .main-language-switcher.is-sidebar:has(> .main-language-btn:hover, > .main-language-btn[aria-expanded="true"], > #boThemeToggle:hover) > #boThemeToggle{border-color:rgba(245,158,11,.40)!important}
}

/* "Show [10] entries": the two labels are bare text nodes in a flex row. English words never
   break, but Chinese breaks between any two characters, so a tight footer stacked 显示 / 条记录
   one character per line (agent reports). Keep the whole control on one line, in every shell. */
.entries-control,.mre-page-size-label,.agent-page-size{white-space:nowrap!important;min-width:max-content!important}
