/* Keep existing colors, desktop navigation and account/course permissions. */
body.learning-shell .course-directory .course-cover{height:auto!important;min-height:0!important;max-height:none!important;padding:12px 16px!important;font-size:16px!important;line-height:1.5!important;display:block!important;border-radius:10px;margin-bottom:12px;white-space:normal}
body.learning-shell .course-directory .course-cover{background:#f3f1f8;color:#51456a}
@media(min-width:861px){body.learning-shell .course-directory .mock-cover{height:auto!important;min-height:0!important;padding:12px 16px!important;font-size:16px!important;line-height:1.5!important;display:block!important;margin-bottom:12px}}
.mock-entry{display:block;margin:12px 0 20px;padding:12px 18px}
body .apc-reading{display:inline-block;max-width:100%;vertical-align:bottom;white-space:normal!important;word-break:normal!important;overflow-wrap:normal!important;text-wrap:pretty;line-break:strict}
body .apc-reading .apc-word{display:inline-block;white-space:nowrap;word-break:keep-all;vertical-align:bottom;line-height:inherit}
body .apc-reading ruby{min-width:1em;padding:0 .035em}
body .apc-reading .apc-punctuation{margin-left:0;margin-right:0}
body .apc-reading .apc-reading-source{line-break:strict;word-break:normal;overflow-wrap:break-word;text-wrap:pretty}
body .apc-lesson-translation,body .sentence>p,body .card h2,body .card h3{line-break:strict;word-break:normal;text-wrap:pretty}
/* The role badge stays separate, giving the sentence its full usable width. */
body.apc-installed .sentence>.big{display:flex;flex-wrap:nowrap;align-items:flex-start;gap:8px}
body.apc-installed .sentence>.big>.role-badge{flex:0 0 auto;margin-right:0}
body.apc-installed .sentence>.big>.apc-reading{flex:1;min-width:0}
@media(max-width:860px){
 body.learning-shell .learning-bottom.apc-bottom,body.learning-shell .learning-bottom{position:fixed!important;top:auto!important;bottom:0!important;left:0!important;right:0!important;width:100%!important;max-width:none!important;margin:0!important;z-index:1000;display:grid!important;grid-template-columns:repeat(5,minmax(0,1fr))!important;box-sizing:border-box;padding:6px 6px calc(6px + env(safe-area-inset-bottom,0px));background:#fff}
 body.learning-shell{padding-bottom:calc(var(--andy-bottom-space,110px) + 16px)!important}
 body.learning-shell .learning-bottom button{min-width:0;min-height:58px;padding:5px 2px;line-height:1.3;font-size:13px}
 body.learning-shell .learning-bottom button [lang]{font-size:11px;line-height:1.3}
 body.learning-shell .learning-bottom svg{width:24px;height:24px}
 body.apc-installed .sentence{padding:16px}
 body.apc-installed .sentence>.big{font-size:22px!important;gap:6px}
 body .apc-reading ruby{padding:0 .02em}
 html{scroll-padding-bottom:calc(var(--andy-bottom-space,110px) + 20px)}
}
