.language-picker{flex:0 0 auto;margin-left:auto}
.language-trigger{display:flex;align-items:center;justify-content:center;gap:7px;min-height:44px;padding:8px 11px;border:1px solid var(--line);border-radius:9px;background:transparent;color:var(--ink);font:inherit;font-size:12px;font-weight:650;cursor:pointer;white-space:nowrap;transition:background .16s ease-out,border-color .16s ease-out}
.language-trigger>svg{width:17px;height:17px;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
.language-trigger>.language-chevron{width:12px;height:12px;transition:transform .16s ease-out}
.language-trigger:hover,.language-trigger[aria-expanded=true]{background:var(--sheet);border-color:var(--ink)}
.language-trigger[aria-expanded=true] .language-chevron{transform:rotate(180deg)}
.language-popover{position:fixed;z-index:300;width:286px;max-height:calc(100dvh - 24px);overflow:auto;padding:10px;background:var(--sheet);color:var(--ink);border-radius:14px;box-shadow:var(--shadow);text-align:left}
.language-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:0 2px 7px 10px}
.language-heading>strong{font-size:13px;font-weight:700}
.language-close{display:grid;place-items:center;width:44px;height:44px;border:0;border-radius:8px;background:transparent;color:var(--muted);cursor:pointer}
.language-close:hover{background:var(--paper);color:var(--ink)}
.language-close svg{width:18px;height:18px;stroke:currentColor;stroke-width:1.6;stroke-linecap:round}
.language-options{display:grid;gap:4px}
.language-option{display:flex;align-items:center;gap:12px;width:100%;min-height:62px;padding:10px;border:0;border-radius:9px;background:transparent;color:var(--ink);font:inherit;text-align:left;cursor:pointer}
.language-option:hover{background:var(--paper)}
.language-option[aria-current=true]{background:#eaf0ff;color:var(--cobalt-dark)}
.language-code{display:grid;place-items:center;flex:0 0 34px;height:34px;border:1px solid var(--line);border-radius:7px;font-size:10px;font-weight:750;letter-spacing:.03em}
.language-name{display:grid;gap:1px}
.language-name strong{font-size:14px;font-weight:650;line-height:1.4}
.language-name small{font-size:11px;color:var(--muted);line-height:1.4}
.language-option[aria-current=true] .language-name small{color:var(--cobalt-dark)}
.language-check{visibility:hidden;margin-left:auto;width:20px;height:20px;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.language-option[aria-current=true] .language-check{visibility:visible}
html[lang=en] .hero h1,html[lang=ja] .hero h1{font-size:clamp(34px,4vw,58px);overflow-wrap:anywhere;line-height:1.13}
html[lang=en] .site-nav,html[lang=ja] .site-nav{flex-wrap:wrap}
html[lang=en] .button,html[lang=ja] .button{white-space:normal;text-align:center}
.credential-panel code{display:block;overflow-wrap:anywhere;white-space:normal}
.checkout-page .mobile-purchase-bar{display:none}
@media(max-width:820px){.site-header .brand{min-width:0}.brand-copy small{max-width:180px;white-space:normal}html[lang=en] .hero h1,html[lang=ja] .hero h1{font-size:clamp(32px,8vw,48px)}}
@media(max-width:1100px){.language-picker{order:2;margin-left:auto}.site-header .nav-toggle{order:3;margin-left:5px;flex:0 0 44px}.site-header .site-nav{order:4}.site-header .brand{min-width:0;margin-right:10px}.site-header .brand-copy{min-width:0}.site-header .brand-copy strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}}
@media(max-width:1500px){.console-page .language-picker{order:2;margin-left:auto}.console-page .site-header .nav-toggle{display:block;order:3;margin-left:5px;flex:0 0 44px}.console-page .site-header .console-nav{display:none;position:absolute;order:4;left:12px;right:12px;top:calc(100% - 6px);max-height:calc(100dvh - 84px);overflow-y:auto;margin:0;padding:12px;flex-direction:column;align-items:stretch;gap:2px;background:var(--sheet);border-radius:12px;box-shadow:var(--shadow)}.console-page .site-header .console-nav.open{display:flex}.console-page .console-nav>a{padding:12px 13px!important;border:0!important;border-radius:8px}.console-page .console-nav>a:hover,.console-page .console-nav>a.active{background:#e8e4da}}
@media(max-width:1100px){.public-page .site-header .nav-toggle{display:block}.public-page .site-header .public-nav{display:none;position:absolute;left:12px;right:12px;top:calc(100% - 6px);max-height:calc(100dvh - 84px);overflow-y:auto;margin:0;padding:12px;flex-direction:column;align-items:stretch;gap:2px;background:var(--sheet);border-radius:12px;box-shadow:var(--shadow)}.public-page .site-header .public-nav.open{display:flex}.public-page .public-nav>a{padding:12px 13px!important;border:0!important;border-radius:8px}.public-page .public-nav>a:hover{background:#e8e4da}}
@media(prefers-reduced-motion:reduce){.language-trigger,.language-chevron{transition:none}}
