html.i18n-pending body::before { content: ''; position: fixed; inset: 0; background: white; z-index: 2147483645; }
html.i18n-pending:not(.i18n-error) body::after { content: ''; position: fixed; top: calc(50% - 19px); left: calc(50% - 19px); width: 38px; height: 38px; border: 4px solid #e6edd6; border-top-color: #0f4ba7; border-radius: 50%; animation: i18n-spin .8s linear infinite; z-index: 2147483646; }
@keyframes i18n-spin { to { transform: rotate(360deg); } }
#i18n-error-panel { position: fixed; inset: 0; z-index: 2147483647; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; padding: 24px; background: white; color: #17212b; font: 16px/1.5 sans-serif; text-align: center; }
#i18n-error-panel button { background: #0f4ba7; color: white; border: 0; border-radius: 6px; padding: 10px 20px; cursor: pointer; font: inherit; }
.i18n-language-control { box-sizing: border-box; display: flex; align-items: center; gap: 8px; min-width: 0; padding: 8px 10px; }
.i18n-language-icon { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; flex: none; color: #0f4ba7; font-size: 21px; }
.i18n-language-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }
.i18n-language-control select { box-sizing: border-box; flex: 1; min-width: 0; width: 100%; padding: 7px 8px; border: 1px solid #cbd5e1; border-radius: 8px; background: white; color: #17212b; font-family: inherit; font-size: 13px; line-height: 1.2; }
.i18n-language-control select:focus-visible { outline: 2px solid #0f4ba7; outline-offset: 2px; }
.sidebar-footer .i18n-language-control { position: relative; margin: 0 0 8px; }
.sidebar[data-collapsible]:not(:hover):not(:focus-within) .i18n-language-control { width: 42px; height: 42px; margin-left: 10px; padding: 0; justify-content: center; border-radius: 10px; background: #eef4ff; }
.sidebar[data-collapsible]:not(:hover):not(:focus-within) .i18n-language-control select { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.standalone-language-control { position: fixed; top: 12px; right: 12px; z-index: 20; background: white; border-radius: 8px; box-shadow: 0 4px 18px rgba(0,0,0,.12); }
html[dir="rtl"] .standalone-language-control { right: auto; left: 12px; }
