.ml-language{display:flex;justify-content:flex-end;gap:3px;flex-shrink:0;margin:8px 0}.ml-language button{min-width:44px!important;min-height:44px!important;padding:6px 9px!important;font:600 14px system-ui!important;border:1px solid currentColor;border-radius:10px;background:transparent;color:inherit;cursor:pointer}.ml-language button.active{background:#b6a9da33;box-shadow:inset 0 0 0 1px currentColor}.ml-language button:focus-visible{outline:3px solid #d9c48e;outline-offset:2px}.ml-language[hidden]{display:none}body[data-ml-page="verb-forms"] .ml-language{margin:0}body[data-ml-page="verb-forms"] .brand{font-size:16px}body[data-ml-page="travel-talk-board"].phone-board>.ml-toolbar{position:fixed;right:54px;top:0;z-index:11;margin:0}.phone-board .phone-header>span:first-child{font-size:12px;max-width:100px;overflow:hidden}.phone-board .phone-progress{display:none}.ml-toolbar{max-width:100%;padding:0 12px}body[data-ml-page="kana-test"]>.ml-toolbar{max-width:1100px;margin:8px auto 0}

[data-ml-page] .page-lead,[data-ml-page] .try-card p,[data-ml-page] .instructions,[data-ml-page] .note{white-space:pre-line}

[data-ml-page] .why{white-space:pre-line}

/* Keep the existing picker beside the student row while a phone writes sideways. */
@media (pointer:coarse) and (max-height:500px){
 body.ml-kana-top:has(.phone-row,.phone-single) .shell{position:relative}
 body.ml-kana-top:has(.phone-row,.phone-single) .shell>.ml-toolbar:has(.ml-language){position:absolute;right:0;top:4px;width:auto;z-index:2}
 body.ml-kana-top:has(.phone-row,.phone-single) .topline{padding-right:152px}
}
