#languageButton{position:relative;padding:0;cursor:pointer}#languageDialog{box-sizing:border-box;width:min(280px,88vw);margin:auto;padding:18px;border:1px solid #b6c4ac;border-radius:18px;background:#f7f4ed;color:#243d38}#languageDialog::backdrop{background:#17282070}#languageDialog form{display:flex;align-items:center;justify-content:space-between;margin:0 0 10px}#languageDialog h2{margin:0;font-size:1.12rem}#languageDialog button{min-height:40px;cursor:pointer;color:inherit;background:transparent;border:0}#languageDialog form button{width:40px;font-size:22px}#languageDialog [data-language]{display:flex;align-items:center;gap:12px;width:100%;text-align:left;border-radius:8px;padding:9px 12px;font:inherit}#languageDialog [aria-pressed=true]{background:#dfe9da}#languageDialog [aria-pressed=true]::after{content:"✓";margin-inline-start:auto}html[data-theme=dark] #languageDialog{color:#ebf1e8;background:#25382f}html[data-theme=dark] #languageDialog [aria-pressed=true]{background:#3c5444}html:not(:lang(ko)) .result-actions{flex-wrap:wrap}html:lang(en) .brand-tagline{white-space:normal}
#languageButton[data-flag]::before,#languageDialog [data-language] span{display:inline-block;width:21px;height:14px;border-radius:2px;box-shadow:0 0 0 1px #72827355;background-size:100% 100%;font-size:0;content:""}[data-flag=ko]::before,[data-language=ko] span{background-image:url(icons/flag-ko.svg)}[data-flag=en]::before,[data-language=en] span{background-image:url(icons/flag-en.svg?v=60)}[data-flag=ja]::before,[data-language=ja] span{background-image:url(icons/flag-ja.svg)}

/* Pin the flag to the button bounds rather than a text line or grid track. */
#languageButton[data-flag]::before{
  position:absolute;inset:0;margin:auto;display:block;width:24px;height:16px;
  border-radius:1px;background-repeat:no-repeat;background-position:center;
  box-shadow:0 0 0 1px #243d3847;pointer-events:none;
}
html[data-theme="dark"] #languageButton[data-flag]::before{box-shadow:0 0 0 1px #ffffff45}
