/* Fast first paint: show page content immediately rather than holding all
   navigation and page content invisible for the 2s module fallback.
   Server-rendered pages already contain correctly localized text. The
   workspace language module still updates client-rendered labels when ready.
   Keep the data-i18n-pending marker for the existing translation lifecycle. */
.language-picker{position:relative;display:block;flex:0 0 auto;margin:0 0 0 16px;padding:0;border:0;color:#ededed;font:12px/1.3 system-ui,sans-serif}
.language-picker summary{display:flex;align-items:center;gap:9px;min-height:42px;padding:9px 14px;border:1px solid #ffffff40;border-radius:999px;background:transparent;color:inherit;cursor:pointer;list-style:none;white-space:nowrap}
.language-picker summary::-webkit-details-marker{display:none}
.language-picker summary:hover,.language-picker[open] summary{border-color:#ffffff80;background:#ffffff05}
.language-picker summary:focus-visible,.language-option:focus-visible{outline:2px solid #e2e2e2;outline-offset:3px}
.language-flag{display:block;flex:0 0 auto;width:24px;height:16px;object-fit:cover;border-radius:2px;box-shadow:0 0 0 1px #ffffff16}
.language-current-name{max-width:110px;overflow:hidden;text-overflow:ellipsis}
.language-caret{font-size:11px;color:#a4a4a4;margin-left:3px}
.language-menu{position:absolute;top:calc(100% + 8px);right:0;z-index:100;min-width:190px;max-height:min(410px,70dvh);overflow-y:auto;padding:6px;border:1px solid #ffffff26;border-radius:12px;background:#080808;box-shadow:0 14px 36px #0009}
.language-picker:not([open]) .language-menu{display:none}
.language-option{display:flex;align-items:center;gap:10px;width:100%;padding:10px;border:0;border-radius:7px;background:transparent;color:#d6d6d6;font:inherit;text-align:left;cursor:pointer}
.language-option:hover,.language-option[aria-pressed=true]{background:#ffffff0c;color:#fff}
.language-check{margin-left:auto;visibility:hidden;color:#ddd}.language-option[aria-pressed=true] .language-check{visibility:visible}
.language-picker select[hidden]{display:none!important}
.language-floating{position:fixed;top:12px;right:16px;z-index:100;margin:0;border-radius:999px;background:#050505}
html[lang]:not([lang=en]) .platform-nav{gap:clamp(12px,2vw,30px)}
html[lang]:not([lang=en]) .platform-open{white-space:nowrap}
html[lang]:not([lang=en]) .landing-copy h1{font-size:clamp(44px,5.5vw,80px);overflow-wrap:anywhere}
html[lang]:not([lang=en]) .viewer-toolbar{flex-wrap:wrap;max-width:calc(100% - 30px)}
html[lang]:not([lang=en]) .tabs{flex-wrap:wrap}
html[lang]:not([lang=en]) .side-panel .button{white-space:normal}
body:has(#shared-canvas) .language-floating{top:auto;bottom:12px}
body:has(#shared-canvas) .language-floating .language-menu{top:auto;bottom:calc(100% + 8px)}
body:has(#shared-canvas) .stage-foot{padding-right:160px}
@media(max-width:760px){.language-picker{margin-left:auto;margin-right:8px;font-size:11px}.language-picker summary{gap:6px;min-height:38px;padding:8px 10px}.language-current-name{max-width:64px}.language-flag{width:21px;height:14px}.language-floating{margin:0;right:10px;top:9px}html[lang]:not([lang=en]) .landing-copy h1{font-size:clamp(42px,12vw,68px)}html[lang]:not([lang=en]) .platform-open{display:none}html[lang]:not([lang=en]) .stage-foot{font-size:7px}}
