/* Applies only to a rotated phone or a shallow tablet split pane. Portrait and desktop keep their existing design. */
body.reborn.mobile-lesson-landscape .rb-shell{max-width:none;margin-inline:auto}
body.reborn.mobile-lesson-landscape .rb-topbar{position:relative;min-height:54px;padding:6px max(14px,env(safe-area-inset-right)) 6px max(14px,env(safe-area-inset-left));gap:12px}
body.reborn.mobile-lesson-landscape .rb-topbar h1{font-size:18px;margin:0}
body.reborn.mobile-lesson-landscape .rb-breadcrumb{display:none}
body.reborn.mobile-lesson-landscape .rb-main{padding:10px max(14px,env(safe-area-inset-right)) 10px max(14px,env(safe-area-inset-left))}
body.reborn.mobile-lesson-landscape .rb-welcome{display:none}
body.reborn.mobile-lesson-landscape #ui>.rb-classroom-workspace{order:-1;grid-template-columns:minmax(0,1fr);gap:16px;width:100%}
body.reborn.mobile-lesson-landscape .rb-classroom-right{grid-column:1}
body.reborn.lesson-cover-layout.mobile-lesson-landscape .rb-classroom-workspace .rb-lesson{display:grid!important;grid-template-columns:minmax(0,1fr) minmax(210px,.72fr);grid-template-rows:auto auto auto;column-gap:24px;row-gap:8px;min-height:0!important;height:auto!important;aspect-ratio:auto!important;width:100%;padding:14px 18px!important;border-radius:14px;background:linear-gradient(110deg,#1c3027,#15241f);container-type:normal}
body.reborn.mobile-lesson-landscape .rb-lesson::before,body.reborn.mobile-lesson-landscape .rb-lesson .lessonVisual::before{display:none!important}
body.reborn.mobile-lesson-landscape .rb-lesson .lessonHeader{grid-column:1/-1;grid-row:1;margin:0;gap:8px}
body.reborn.mobile-lesson-landscape .lessonHeader>.rb-panel-heading{font-size:9px;min-width:0;margin:0}
body.reborn.mobile-lesson-landscape .lessonDesignToggle{display:none!important}
body.reborn.mobile-lesson-landscape .rb-lesson #lessonGameCover{display:none!important}
body.reborn.mobile-lesson-landscape .rb-lesson.has-cover-format #lessonGameCover{display:block!important;position:absolute;inset:44px auto auto 18px;width:36px;height:52px;z-index:1;border-radius:4px;overflow:hidden;background:none}
body.reborn.mobile-lesson-landscape .rb-lesson #lessonGameCover img{width:100%;height:100%;object-fit:cover!important}
body.reborn.mobile-lesson-landscape .rb-lesson #todayLessonCard{grid-column:1/-1;grid-row:2;margin:0;padding:0 0 8px;border-bottom:1px solid #d2dfc426;min-width:0}
body.reborn.lesson-cover-layout.mobile-lesson-landscape .rb-lesson.has-cover-format #todayLessonCard{padding-left:50px!important;min-height:60px}
body.reborn.mobile-lesson-landscape .rb-lesson #todayLessonMeta{font-size:9px;padding:2px 6px}
body.reborn.mobile-lesson-landscape .rb-lesson #gameWrapper{margin:4px 0 0;grid-template-columns:minmax(0,1fr) 40px}
body.reborn.mobile-lesson-landscape .rb-lesson #game{font-size:18px;min-height:36px;height:36px;padding:5px 8px;background:transparent;border-color:transparent;text-shadow:none;backdrop-filter:none}
body.reborn.mobile-lesson-landscape .rb-lesson #randomBtn{min-height:36px;height:36px}
body.reborn.mobile-lesson-landscape .rb-lesson .lessonVisual{grid-column:1;grid-row:3;min-height:100px!important;flex-basis:auto;margin:0!important;align-self:center;overflow:visible}
body.reborn.mobile-lesson-landscape .rb-lesson .lessonVisual #timer{font-size:clamp(50px,9vw,84px)!important;line-height:1.1;text-shadow:none;white-space:nowrap}
body.reborn.mobile-lesson-landscape .rb-lesson .controls{grid-column:2;grid-row:3;width:100%!important;padding:0!important;margin:0!important;align-self:center;gap:6px}
body.reborn.mobile-lesson-landscape .rb-lesson .controls>.lessonTypeRow{order:0;display:grid;grid-template-columns:minmax(65px,1fr) minmax(120px,1fr);gap:6px}
body.reborn.mobile-lesson-landscape .rb-lesson .controls>.lessonActionBlock{grid-template-columns:minmax(0,1fr) 88px;gap:6px}
body.reborn.mobile-lesson-landscape .rb-lesson :is(#startTimerBtn,#todayLessonAlternateBtn){width:100%;height:auto!important;min-height:44px!important;padding:8px!important;font-size:12px!important}
body.reborn.mobile-lesson-landscape .rb-lesson .lessonSideActions{display:flex;gap:4px;justify-content:flex-end;align-items:center}
body.reborn.mobile-lesson-landscape .rb-lesson :is(#pauseTimerBtn,#resetTimerBtn){width:40px!important;min-width:40px!important;height:44px!important;min-height:44px!important;padding:8px!important}
body.reborn.mobile-lesson-landscape .rb-lesson #lessonType{height:36px;min-height:36px;font-size:11px;padding:4px 6px;background:#10221c}
body.reborn.mobile-lesson-landscape .rb-lesson .lessonSettingsExtras{gap:2px}
body.reborn.mobile-lesson-landscape .rb-lesson .lessonSettingsExtras .streberCompactRow{padding:0;gap:2px}
body.reborn.mobile-lesson-landscape .rb-lesson #lessonRunner{order:40;margin:0}
body.reborn.mobile-lesson-landscape .rb-lesson #lessonStatus{grid-column:1/-1;grid-row:5;font-size:10px;margin:0}
body.reborn.mobile-lesson-landscape .rb-lesson #recoveredLessonNotice{grid-column:1/-1;grid-row:6}
body.reborn.mobile-lesson-landscape .rb-lesson #detentionMoment{grid-column:1/-1;grid-row:4;margin:2px 0 0;padding:6px 0 0;border-top:1px solid #d2dfc426}
body.reborn.mobile-lesson-landscape .rb-lesson .detention-scene{grid-template-columns:30px minmax(0,1fr);gap:10px;margin:0}
body.reborn.mobile-lesson-landscape .rb-lesson .detention-steiner{width:30px;height:38px}
body.reborn.mobile-lesson-landscape .rb-lesson .detention-speech{padding:0;border:0;background:none}
body.reborn.mobile-lesson-landscape .rb-lesson .detention-speech h2{display:inline;font-size:11px;margin:0 10px 0 0}
body.reborn.mobile-lesson-landscape .rb-lesson .detention-speech p{display:inline;font-size:10px!important;line-height:1.4}
body.reborn.mobile-lesson-landscape .rb-lesson :is(.detention-stamp,.detention-time-track,.detention-time-labels,.detention-total){display:none!important}
body.reborn.mobile-lesson-landscape .rb-lesson .streberCompactRules{position:static!important;margin:0;font-size:11px;padding:8px}
@media(max-width:600px){body.reborn.lesson-cover-layout.mobile-lesson-landscape .rb-classroom-workspace .rb-lesson{column-gap:12px;grid-template-columns:minmax(0,1fr) minmax(200px,.9fr);padding:12px!important}body.reborn.mobile-lesson-landscape .rb-lesson.has-cover-format #lessonGameCover{left:12px}body.reborn.mobile-lesson-landscape .rb-lesson .lessonVisual #timer{font-size:48px!important}}

/* Approved cover rail. Reserve the encore row in every timer state. */
body.reborn.lesson-cover-layout.mobile-lesson-landscape .rb-classroom-workspace .rb-lesson{--mobile-cover-width:clamp(110px,19vw,170px);grid-template-columns:minmax(0,1fr) minmax(200px,.85fr);grid-template-rows:minmax(20px,auto) 54px minmax(108px,auto) 50px;column-gap:18px;row-gap:8px}
body.reborn.lesson-cover-layout.mobile-lesson-landscape .rb-classroom-workspace .rb-lesson.has-cover-format{padding-left:calc(var(--mobile-cover-width) + 18px)!important}
body.reborn.lesson-cover-layout.mobile-lesson-landscape .rb-lesson.has-cover-format #lessonGameCover{position:absolute;inset:0 auto 0 0;width:var(--mobile-cover-width);height:100%;border-radius:0;border:0;border-right:1px solid #8d9d7633;background:#08120f;z-index:1;overflow:hidden}
body.reborn.lesson-cover-layout.mobile-lesson-landscape .rb-lesson #lessonGameCover img{object-fit:contain!important;object-position:center}
body.reborn.lesson-cover-layout.mobile-lesson-landscape .rb-lesson.has-cover-format #todayLessonCard{padding-left:0!important;min-height:0}
body.reborn.lesson-cover-layout.mobile-lesson-landscape .rb-lesson #todayLessonMeta{display:inline-block;min-height:19px}
body.reborn.lesson-cover-layout.mobile-lesson-landscape.detentionActive .rb-lesson #todayLessonMeta{display:inline-block;visibility:hidden}
body.reborn.lesson-cover-layout.mobile-lesson-landscape .rb-lesson .lessonVisual #timer{font-size:clamp(40px,7vw,72px)!important}
body.reborn.lesson-cover-layout.mobile-lesson-landscape .rb-lesson #detentionMoment{box-sizing:border-box;min-height:50px;margin:0;padding:6px 0 0}
body.reborn.lesson-cover-layout.mobile-lesson-landscape .rb-lesson #detentionMoment[hidden]{display:block!important;visibility:hidden}
body.reborn.lesson-cover-layout.mobile-lesson-landscape .rb-lesson .detention-scene{min-height:38px}
@media(max-width:700px){body.reborn.lesson-cover-layout.mobile-lesson-landscape .rb-classroom-workspace .rb-lesson{--mobile-cover-width:110px;column-gap:12px;grid-template-columns:minmax(0,1fr) 200px;padding:12px!important}body.reborn.lesson-cover-layout.mobile-lesson-landscape .rb-classroom-workspace .rb-lesson.has-cover-format{padding-left:calc(var(--mobile-cover-width) + 12px)!important}}
