/* Shared language menu: a compact translation icon with a top-layer menu. */
[data-language-host]{--language-accent:#c4b8ff;--language-text:#f0eff4;--language-muted:#a8a5b2}
.site-language-trigger{display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;width:44px;height:44px;min-height:44px;margin:0;padding:11px;border:1px solid #ffffff15;border-radius:50%;background:#ffffff08;color:var(--language-text,#f0eff4);cursor:pointer;touch-action:manipulation;transition:background .18s,border-color .18s,color .18s;box-sizing:border-box}
.site-language-trigger:hover{background:#ffffff13;border-color:#ffffff30;color:#fff}
.site-language-trigger[aria-expanded="true"]{background:#b6a3ff18;border-color:#b6a3ff55;color:var(--language-accent,#c4b8ff)}
.site-language-trigger:focus-visible{outline:2px solid var(--language-accent,#c4b8ff);outline-offset:3px}
.site-language-trigger .site-language-icon{display:block;width:21px;height:21px;flex:none;fill:none;stroke:currentColor;stroke-width:1.65;stroke-linecap:round;stroke-linejoin:round}
.site-language-menu{position:fixed;inset:auto;z-index:10000;display:block;width:218px;max-width:calc(100vw - 16px);max-height:calc(100dvh - 16px);overflow-y:auto;box-sizing:border-box;margin:0;padding:7px;border:1px solid #ffffff20;border-radius:16px;background:rgba(28,28,32,.98);color:#f0eff4;box-shadow:0 18px 50px #0006,0 3px 12px #0003;backdrop-filter:blur(18px);font:500 13px/1.5 Inter,"Noto Sans SC","PingFang SC","Microsoft YaHei",sans-serif;text-align:left;color-scheme:dark;animation:language-menu-enter .16s ease-out;transform-origin:top right}
.site-language-menu[hidden]{display:none!important}.site-language-menu::backdrop{background:transparent;pointer-events:none}
.site-language-heading{padding:7px 11px 10px;margin:0 0 4px;border-bottom:1px solid #ffffff0c;color:#aaa7b4;font-size:11px;font-weight:500;letter-spacing:.02em}
.site-language-menu .site-language-option{display:flex;align-items:center;gap:11px;width:100%;min-height:46px;margin:0;padding:9px 11px;border:0;border-radius:9px;background:transparent;color:#eeedf2;font:inherit;text-align:left;cursor:pointer;touch-action:manipulation;box-sizing:border-box;transition:background .15s,color .15s;outline-offset:-2px}
.site-language-option+.site-language-option{margin-top:3px}
.site-language-menu .site-language-option:hover,.site-language-menu .site-language-option:focus-visible{background:#ffffff0d;outline:2px solid #b6a3ff70}
.site-language-menu .site-language-option[aria-checked="true"]{background:#b6a3ff1a;color:#d6ccff}
.site-language-code{display:grid;place-items:center;flex:0 0 28px;height:28px;border:1px solid #ffffff0d;border-radius:7px;background:#ffffff05;color:#a8a5b2;font:500 11px/1 system-ui,sans-serif}
.site-language-option[aria-checked="true"] .site-language-code{background:#b6a3ff13;border-color:#b6a3ff20;color:#d6ccff}
.site-language-name{flex:1;white-space:nowrap}.site-language-menu .site-language-check{width:16px;height:16px;flex:0 0 16px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;opacity:0}
.site-language-option[aria-checked="true"] .site-language-check{opacity:1}
@keyframes language-menu-enter{from{opacity:0;transform:translateY(-4px)}to{opacity:1;transform:translateY(0)}}
@media(prefers-reduced-motion:reduce){.site-language-menu{animation:none}.site-language-trigger,.site-language-menu .site-language-option{transition:none}}
[data-language-host]{display:inline-flex;align-items:center;flex-shrink:0}.header [data-language-host]{margin-left:auto;margin-right:14px}.header .desktop-sign-in{margin-left:0}.page-header [data-language-host]{margin-left:auto;margin-right:14px}.docs-topbar-actions [data-language-host]{margin-right:4px}.topbar>[data-language-host]{margin-left:auto;margin-right:16px}.topbar .account-menu{margin-left:0}.admin-language-host{position:absolute;right:24px;top:18px;z-index:10}
/* The home film can become almost white; keep its language control opaque. */
.header [data-language-host]{--language-text:#2e2e2e;--language-accent:#5b43b3;margin-right:0}
.header .site-language-trigger{background:#fff;border-color:#fff;color:var(--language-text);box-shadow:var(--nav-shadow,0 4px 14px #0003)}
.header .site-language-trigger:hover{background:#f2eff7;border-color:#f2eff7;color:#28222f}
.header .site-language-trigger[aria-expanded="true"]{background:#e9e2fa;border-color:#c9bce9;color:var(--language-accent)}
.admin-language-host{--language-text:#45414f;--language-accent:#5b43b3}
.admin-language-host .site-language-trigger{background:#f0eef5;border-color:#ded9e8}
.admin-language-host .site-language-trigger:hover{background:#e8e3f0;border-color:#c5bcd6;color:#31283f}
.admin-language-host .site-language-trigger[aria-expanded="true"]{background:#e6dff6;border-color:#a99acb;color:#5b43b3}
.admin-language-host~.workspace .topbar{padding-right:84px}
html:not([lang="zh-CN"]) .primary-nav a{gap:10px}html:not([lang="zh-CN"]) .nav-caption{letter-spacing:.03em}html:not([lang="zh-CN"]) .page-description{max-width:75ch}html:not([lang="zh-CN"]) .button{white-space:normal}html:not([lang="zh-CN"]) .stat-label{max-width:190px}html:not([lang="zh-CN"]) .auth-card .mode-switch{flex-wrap:wrap}html[lang="ja"]{line-break:strict}
@media(max-width:700px){.header [data-language-host],.page-header [data-language-host]{margin-right:0}.topbar>[data-language-host]{margin-right:8px}.docs-topbar-actions{gap:8px}.docs-topbar-actions .docs-home-link{display:none}.docs-topbar-label{display:none}.topbar .account-identity{display:none}html:not([lang="zh-CN"]) .hero .subhead{max-width:29em}.admin-language-host{right:15px;top:12px}}
.page-header .home-link{white-space:nowrap;flex-shrink:0}
.auth-page .helper-button>span:last-child{min-width:0;flex:1;white-space:normal}
.auth-page .helper-button small{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;line-height:1.3}
.auth-page .helper-button strong{line-height:1.3}
@media(max-width:600px){.page-header{gap:8px}.page-header [data-language-host]{margin-right:0}.page-header .home-link{padding:0 10px;font-size:11px;gap:6px}}
@media(max-width:359px){.page-header .home-link{padding:0 8px;font-size:10px}.page-header .home-link svg{display:none}}
