.site-localization-status{display:none!important}
.site-localization-status[hidden]{display:none!important}
.site-localization-status{position:fixed;z-index:14000;left:50%;bottom:18px;transform:translateX(-50%);max-width:min(650px,calc(100% - 24px));padding:10px 16px;border:1px solid #e1c450;border-radius:8px;background:#fff9dc;color:#373a3f;box-shadow:0 3px 18px #0002;font:13px/1.5 Arial,sans-serif;display:flex;align-items:center;gap:12px}
.site-localization-status[data-state="error"]{background:#fff1ec;border-color:#e6a68e}
.site-localization-status[data-state="partial"]{background:#fff9ec;border-color:#e0c58b}
/* Keep layout space while a new offline pack loads; never flash restored Chinese. */
html[data-localization-state="loading"] main,html[data-localization-state="loading"] footer{visibility:hidden}
.site-localization-status button{background:none;border:0;padding:3px;cursor:pointer;text-decoration:underline;color:inherit;white-space:nowrap;font:inherit}
html[data-localization-language]:not([data-localization-language="zh-CN"]) .source-document-snapshot{overflow-wrap:anywhere}
/* Never expose the Chinese source while a dynamic translation is pending.
   The element keeps its dimensions and shows a neutral loading bar, then the
   attribute is removed as soon as the localized value is applied. */
/* Never hide readable page text while a translation is being resolved.  The
   pending attribute is retained for diagnostics, but the source/fallback copy
   stays visible so a slow or unavailable localizer cannot create a 15–65s
   skeleton-only page. */
html[data-localization-language]:not([data-localization-language="zh-CN"]) [data-localization-pending="true"]{color:inherit!important;text-shadow:inherit!important;background-image:none!important}
@media(max-width:760px){.site-localization-status{left:12px;right:12px;bottom:12px;transform:none;max-width:none;box-sizing:border-box;display:block;font-size:12px}.site-localization-status button{display:block;margin-top:5px;white-space:normal}}
