#koaLanguageDialog,#koaTranslationReportDialog{width:min(410px,calc(100% - 28px));max-height:calc(100dvh - 32px);overflow:auto;padding:25px;border:3px solid #443357;border-radius:22px;box-shadow:0 6px 0 #443357;background:#fff6fc;color:#352747;font:inherit}#koaLanguageDialog::backdrop,#koaTranslationReportDialog::backdrop{background:#1c1023b8}#koaLanguageDialog h2,#koaTranslationReportDialog h2{font-size:23px;margin:0 25px 12px 0}#koaLanguageDialog p{font-size:14px;line-height:1.45}#koaLanguageDialog fieldset{border:0;padding:0;display:grid;gap:12px}#koaLanguageDialog label{display:flex;align-items:center;gap:12px;padding:15px;border:2px solid #b6a1cc;border-radius:12px;background:#f0e5fb;cursor:pointer;font-weight:800}#koaLanguageDialog label:has(input:checked){border-color:#644582;background:#dec5f6;box-shadow:0 3px 0 #644582}#koaLanguageDialog input{accent-color:#7952a0;width:20px;height:20px}#koaLanguageDialog button,#koaTranslationReportDialog button,.koa-language-settings{font:inherit;color:inherit;border:2px solid #725287;border-radius:11px;background:#e9d9f7;padding:10px 14px;font-weight:800}.koa-language-close{position:absolute;right:12px;top:12px;padding:2px 8px!important}.koa-language-confirm{width:100%;margin-top:10px;box-shadow:0 3px 0 #725287}.koa-language-error{color:#9e2945}.koa-language-sr{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}#koaLanguageShortcut{font-size:11px;padding:5px 7px;margin-left:6px}#koaTranslationReport{position:fixed;right:12px;bottom:10px;z-index:110;font:11px inherit;border:0;background:transparent;color:#7e7091;text-decoration:underline;display:none}body.koa-exercise-no-chrome #koaTranslationReport{display:block}#koaTranslationReportDialog label{display:grid;gap:5px;margin:10px 0;font-size:13px}#koaTranslationReportDialog textarea{min-height:62px;resize:vertical;width:100%;font:inherit;padding:8px;border:1px solid #a98abc;border-radius:8px}#koaTranslationReportDialog button{margin:5px}[data-koa-theme=dark] #koaLanguageDialog,[data-koa-theme=dark] #koaTranslationReportDialog{background:#30233d;color:#f8efff;border-color:#aa90bb}[data-koa-theme=dark] #koaLanguageDialog label{background:#40314e;color:#f8efff}[data-koa-theme=dark] #koaLanguageDialog label:has(input:checked){background:#614674}[data-koa-theme=dark] .koa-language-settings{background:#40314e;color:#f8efff}

#koaLanguageShortcut{font-size:14px;padding:11px 14px;margin:0;width:100%;min-height:44px}.koa-language-settings{min-height:44px}html[lang=fr] #match .match-tile:not(.thai),html[lang=es] #match .match-tile:not(.thai){overflow-wrap:anywhere;line-height:1.18}
[data-koa-theme=dark] #koaLanguageDialog button{background:#614674!important;color:#fff3fc!important;border-color:#b499c8!important}[data-koa-theme=dark] #koaLanguageDialog .koa-language-error{color:#ff9cb5}/* Seven accompaniment languages: readable controls, including small mobile screens. */
#koaLanguageDialog{width:min(460px,calc(100% - 28px));box-sizing:border-box;padding:20px}
#koaLanguageDialog fieldset{margin:0;gap:8px;grid-template-columns:repeat(2,minmax(0,1fr))}
#koaLanguageDialog label{min-height:48px;padding:9px 10px;gap:8px;font-size:14px;box-sizing:border-box;overflow-wrap:anywhere}
#koaLanguageDialog input{flex:0 0 18px;width:18px;height:18px;margin:0}
#koaLanguageDialog label:first-of-type{grid-column:1/-1}
#koaLanguageDialog .koa-language-error:empty{display:none}
#koaLanguageDialog .koa-language-confirm{min-height:44px;margin-bottom:4px}
#koaLanguageDialog h2{font-size:21px;line-height:1.25}
#koaLanguageDialog p{margin:10px 0 14px}
#koaLanguageDialog label:focus-within{outline:2px solid #9471be;outline-offset:2px}
html:not([lang=en]) #match .match-tile:not(.thai){overflow-wrap:anywhere;line-height:1.2}
html[lang=zh-Hans] body{font-family:system-ui,"PingFang SC","Microsoft YaHei",sans-serif}
html[lang=ja] body{font-family:system-ui,"Hiragino Kaku Gothic ProN","Yu Gothic","Meiryo",sans-serif}
html[lang=zh-Hans] :is(#sbBank,#sbAnswer,#choices,.dialogue-source),html[lang=ja] :is(#sbBank,#sbAnswer,#choices,.dialogue-source){line-height:1.45;letter-spacing:normal}
#koaLanguageSettings,#koaLanguageShortcut{white-space:normal;overflow-wrap:anywhere}
@media(max-width:359px){#koaLanguageDialog{padding:16px}#koaLanguageDialog label{font-size:13px;padding:8px;gap:6px}}
