/* A compact, accessible language capsule that shares the navigation's glass. */
.language-switch{--switch-padding:3px;--switch-gap:2px;position:relative;display:inline-grid;grid-template-columns:repeat(2,minmax(0,1fr));align-items:center;gap:var(--switch-gap);padding:var(--switch-padding);border:1px solid var(--line);border-radius:999px;background:var(--line);flex-shrink:0;isolation:isolate}
.language-switch::before{content:"";position:absolute;z-index:0;top:var(--switch-padding);bottom:var(--switch-padding);left:var(--switch-padding);width:calc((100% - 2 * var(--switch-padding) - var(--switch-gap)) / 2);border-radius:999px;background:var(--solid);box-shadow:0 1px 5px #182c4118;pointer-events:none;transition:transform .28s cubic-bezier(.22,1,.36,1),background-color .22s ease}
html[lang="en"] .language-switch::before{transform:translateX(calc(100% + var(--switch-gap)))}
.language-switch button{position:relative;z-index:1;min-width:37px;padding:5px 9px;border:0;border-radius:999px;background:transparent;color:var(--muted);font-size:11px;font-weight:550;line-height:1.4;transition:color .2s ease}
.language-switch button[aria-pressed="true"]{color:var(--text)}
.language-switch button:hover{color:var(--text)}
.language-switch button:focus-visible{outline-offset:3px}
.header .site-navigation{gap:16px}
html[lang="en"] .product-intro h1{font-size:clamp(38px,6vw,78px);text-wrap:balance;overflow-wrap:break-word}
html[lang="en"] .hero-copy h1{letter-spacing:-.05em;text-wrap:balance}
html[lang="en"] .product-hero-features{flex-wrap:wrap}
html[lang="en"] .home-product-copy h3{font-size:25px;line-height:1.2;min-height:60px;text-wrap:balance}
html[lang="en"] .home-product-description{min-height:110px}
html[lang="en"] .product-subnav{flex-wrap:wrap}
html[lang="en"] .product-subnav nav{flex-wrap:wrap}
@media(max-width:1150px){html[lang="en"] .app-nav-name{display:none}}
@media(max-width:850px){.header .site-navigation{gap:10px}.header .nav-inner{padding-inline:14px}html[lang="en"] .home-product-description{min-height:0}}
@media(max-width:700px){
 .header .nav-inner{gap:6px;padding-inline:10px}
 .header .brand-mark{width:36px;height:36px}
 .header .app-navigation{gap:2px}
 .header .app-navigation a{padding:5px}
 .header .site-navigation{gap:7px}
 .header .theme-toggle{width:28px;height:28px}
 .language-switch{--switch-padding:2px;--switch-gap:0px}
 .language-switch button{min-width:30px;padding:5px 6px;font-size:10px}
 html[lang="en"] .hero-copy h1{font-size:clamp(34px,7.6vw,52px)}
 html[lang="en"] .product-intro h1{font-size:clamp(32px,7.5vw,48px)}
 html[lang="en"] .product-subnav{row-gap:14px}
 html[lang="en"] .product-subnav nav{gap:14px;font-size:11px}
 html[lang="en"] .home-product-copy h3{min-height:0;font-size:28px}
 html[lang="en"] .demo-heading{font-size:9px;line-height:1.5}
 html[lang="en"] .demo-footer{flex-wrap:wrap}
 html[lang="en"] .footer nav{flex-wrap:wrap;justify-content:flex-start;gap:14px 20px}
}
@media(prefers-reduced-motion:reduce){.language-switch button,.language-switch::before{transition:none}}
@media(forced-colors:active){.language-switch button[aria-pressed="true"]{outline:1px solid ButtonText}}

/* Selected concept A: balanced Chinese hero typography. */
html[lang="zh-CN"] .hero-copy h1{
 font-family:"PingFang SC","Microsoft YaHei","Noto Sans CJK SC",sans-serif;
 font-size:clamp(38px,4.84vw,58px);
 font-weight:500;
 letter-spacing:.015em;
 line-height:1.5;
}
html[lang="zh-CN"] .hero-copy .hero-line{display:block}
@media(max-width:700px){
 html[lang="zh-CN"] .hero-copy h1{font-size:clamp(28px,7.4vw,38px)}
}

/* The current theme is represented by a sun in light mode and a moon in dark mode. */
.header .theme-toggle{position:relative;overflow:hidden;transition:background-color .22s ease,color .22s ease}
.theme-toggle .theme-icon{position:absolute;left:calc(50% - 9px);top:calc(50% - 9px);width:18px;height:18px;pointer-events:none;transform-origin:center;transition:opacity .22s ease,transform .32s cubic-bezier(.22,1,.36,1)}
.theme-toggle .theme-sun{opacity:1;transform:rotate(0) scale(1)}
.theme-toggle .theme-moon{opacity:0;transform:rotate(-65deg) scale(.65)}
[data-theme="dark"] .theme-toggle .theme-sun{opacity:0;transform:rotate(65deg) scale(.65)}
[data-theme="dark"] .theme-toggle .theme-moon{opacity:1;transform:rotate(0) scale(1)}
@media(prefers-reduced-motion:reduce){.header .theme-toggle,.theme-toggle .theme-icon{transition:none}}
