/* Tablet layout repair. Loaded after the production styles. */
.mw-export-dialog>header button,.flash-phonetic button{
 appearance:none;-webkit-appearance:none;box-sizing:border-box;
 display:inline-flex;align-items:center;justify-content:center;
 padding:0;line-height:1;text-align:center;vertical-align:middle;flex-shrink:0;
}
.mw-export-dialog>header button{min-width:40px;min-height:40px}
.flash-phonetic button{min-width:40px;min-height:40px}
.flash-front,.flash-listen-header,.flash-session,.flash-paper,.flash-example{min-width:0;max-width:100%}
.flash-paper{box-sizing:border-box}
.flash-example{overflow-wrap:anywhere}
@media(min-width:761px) and (max-width:1120px){
 .topbar{height:auto;min-height:88px;flex-wrap:wrap;gap:12px 20px;padding-block:16px}
 .topbar .nav{flex-wrap:wrap;gap:10px 18px}
 .nav button.on:after{bottom:-5px}
 .page-intro{flex-wrap:wrap;align-items:flex-start}
 .wordbook-layout{grid-template-columns:minmax(0,1fr)}
 .wordbook-layout>aside{min-width:0}
 .wordbook-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
 #view-library .home-shelf-layout{grid-template-columns:minmax(0,1fr)}
 .account-content{grid-template-columns:minmax(0,1fr)}
 .flash-session-top{flex-wrap:wrap}
 .flash-kpis span{min-width:0}
}
@media(max-width:980px){
 /* Match the existing chapter/vocabulary drawer controls at this breakpoint. */
 #view-reader .reader-layout{display:block}
 #view-reader .reader-layout>.sidebar{display:none}
 #view-reader .reader-layout.chapter-drawer-open>.sidebar:first-child,
 #view-reader .reader-layout.vocab-drawer-open>.sidebar:last-of-type{display:block}
 #view-reader .read-top{align-items:center}
 #view-reader .tool-row{width:100%;justify-content:flex-start;flex-wrap:wrap}
 .flash-paper-top{position:static;width:100%;gap:8px;flex-wrap:wrap}
}
