/* All changes are scoped to actual tablets. Desktop geometry is untouched. */
html#cwTabletRecovery.cwTablet[data-cw-tablet-recovery="3"]{height:auto!important;min-height:var(--cw-tablet-usable-height,100dvh)!important;overflow-x:hidden!important;overflow-y:auto!important;scroll-behavior:auto!important;scroll-padding-bottom:16px}
html#cwTabletRecovery.cwTablet[data-cw-tablet-recovery="3"] body{height:auto!important;min-height:0!important;max-height:none!important;overflow:visible!important;overscroll-behavior-y:auto}
html#cwTabletRecovery.cwTablet[data-cw-tablet-recovery="3"] :is(.app,.academyShell,.academy-shell,main.lesson,main.main,.lesson-content,.imContent,.bfContent,.advContent,.academyShell>.lesson,.academy-shell>.lesson,.wrap){height:auto!important;min-height:0!important;max-height:none!important;overflow:visible!important}
html#cwTabletRecovery.cwTablet[data-cw-tablet-recovery="3"] .cwCourseRail:not(.cwLegacyRailSuppressed){position:fixed!important;top:0!important;bottom:auto!important;height:var(--cw-tablet-usable-height,100dvh)!important;max-height:var(--cw-tablet-usable-height,100dvh)!important;overflow-x:hidden!important;overflow-y:auto!important;-webkit-overflow-scrolling:touch;touch-action:pan-y;overscroll-behavior-y:contain;padding-bottom:24px!important}
html#cwTabletRecovery.cwTablet[data-cw-tablet-recovery="3"] .cwAcademyLessonHost{height:var(--cw-tablet-usable-height,100dvh)!important;max-height:var(--cw-tablet-usable-height,100dvh)!important}
html#cwTabletRecovery.cwTablet[data-cw-tablet-recovery="3"] .cwTabletHeader{display:grid!important;grid-template-columns:minmax(100px,1fr) auto!important;grid-auto-flow:row!important;align-items:center!important;gap:4px 8px!important;min-height:62px!important;height:auto!important;padding:5px 10px!important;position:sticky!important;top:0!important;overflow:visible!important;z-index:100!important}
html#cwTabletRecovery.cwTablet[data-cw-tablet-recovery="3"] .cwTabletHeader>.cwLessonHeaderBrand{position:static!important;grid-row:1!important;grid-column:1!important;transform:none!important;inset:auto!important;width:104px!important;height:35px!important;justify-self:start!important;align-self:center!important;pointer-events:none!important}
html#cwTabletRecovery.cwTablet[data-cw-tablet-recovery="3"] .cwTabletHeaderActions{display:flex!important;grid-column:2!important;grid-row:1!important;justify-content:flex-end!important;align-items:center!important;flex-wrap:nowrap!important;gap:4px!important;min-width:0!important}
html#cwTabletRecovery.cwTablet[data-cw-tablet-recovery="3"] .cwTabletHeaderActions :is(button,a){font-size:11px!important;line-height:1.2!important;min-height:36px!important;padding:6px 8px!important;white-space:nowrap!important;touch-action:manipulation}
html#cwTabletRecovery.cwTablet[data-cw-tablet-recovery="3"] .cwTabletHeaderContext{grid-column:1 / -1!important;grid-row:2!important;min-width:0!important;max-width:100%!important;font-size:10px!important;line-height:1.25!important}
html#cwTabletRecovery.cwTablet[data-cw-tablet-recovery="3"] .cwTabletHeaderContext[hidden]{display:none!important}
html#cwTabletRecovery.cwTablet[data-cw-tablet-recovery="3"] .cwTabletHeaderNarrow>.cwTabletHeaderActions{grid-column:1 / -1!important;grid-row:2!important;justify-content:flex-start!important;flex-wrap:wrap!important}
html#cwTabletRecovery.cwTablet[data-cw-tablet-recovery="3"] .cwTabletHeaderNarrow>.cwTabletHeaderContext{grid-row:3!important}
html#cwTabletRecovery.cwTablet[data-cw-tablet-recovery="3"][data-cw-tablet-guide-open="1"]{overflow-y:hidden!important}
html#cwTabletRecovery.cwTablet[data-cw-tablet-recovery="3"] .cwTabletGuideBackdrop{overflow:hidden!important;max-height:var(--cw-tablet-usable-height,100dvh)!important;align-items:center!important}
html#cwTabletRecovery.cwTablet[data-cw-tablet-recovery="3"] .cwTabletGuideScroll{height:auto!important;max-height:calc(var(--cw-tablet-usable-height,100dvh) - 24px)!important;min-height:0!important;overflow-x:hidden!important;overflow-y:auto!important;touch-action:pan-y;overscroll-behavior-y:contain;-webkit-overflow-scrolling:touch}
html#cwTabletRecovery.cwTablet[data-cw-tablet-recovery="3"] .cwTabletGuideScroll :is(.cwAcademyIntroductionBody,.cwGuideBody,.cwGuideContent){height:auto!important;min-height:0!important;max-height:none!important;overflow:visible!important}
html#cwTabletRecovery.cwTablet[data-cw-tablet-recovery="3"] :is(button,a[role="button"]){touch-action:manipulation}

html#cwTabletRecovery.cwTablet[data-cw-tablet-recovery="3"] #cwRotateTablet{position:fixed;inset:0;z-index:2147483647;background:#080d15;color:#edf3ff;display:flex;align-items:center;justify-content:center;text-align:center;padding:24px;box-sizing:border-box}
html#cwTabletRecovery.cwTablet[data-cw-tablet-recovery="3"] #cwRotateTablet[hidden]{display:none!important}


/* The fixed sidebar no longer occupies a CSS grid cell. Keep lessons in column 2. */
html#cwTabletRecovery.cwTablet[data-cw-tablet-recovery="3"] .academy-shell{display:grid!important;grid-template-columns:248px minmax(0,1fr)!important;align-items:start!important}
html#cwTabletRecovery.cwTablet[data-cw-tablet-recovery="3"] .academy-shell>main.lesson{grid-column:2!important;grid-row:1!important;width:100%!important;min-width:0!important;margin:0!important;position:relative!important}
html#cwTabletRecovery.cwTablet[data-cw-tablet-recovery="3"] .cwCourseRail:not(.cwLegacyRailSuppressed){left:0!important;top:0!important;width:248px!important;min-width:248px!important;max-width:248px!important;display:block!important;contain:layout style;overflow-anchor:none!important;scroll-behavior:auto!important}
html#cwTabletRecovery.cwTablet[data-cw-tablet-recovery="3"] .cwCourseRail :is(.cwAcademyStageItems,.cwStageLessonList){height:auto!important;max-height:none!important;overflow:visible!important;touch-action:pan-y}
html#cwTabletRecovery.cwTablet[data-cw-tablet-recovery="3"] .cwCourseRail :is(summary,a,button){touch-action:pan-y pinch-zoom!important}
html#cwTabletRecovery.cwTablet[data-cw-tablet-recovery="3"] .cwPresentationView{inset:8px!important;width:calc(100% - 16px)!important;height:calc(var(--cw-tablet-usable-height,100dvh) - 16px)!important;max-height:calc(var(--cw-tablet-usable-height,100dvh) - 16px)!important;min-height:0!important}
html#cwTabletRecovery.cwTablet[data-cw-tablet-recovery="3"] .cwLessonOrientation{padding:6px 9px!important;margin:4px 0 6px!important;min-height:0!important}
html#cwTabletRecovery.cwTablet[data-cw-tablet-recovery="3"] .cwLessonOrientationMeta{display:none!important}
html#cwTabletRecovery.cwTablet[data-cw-tablet-recovery="3"] .cwLessonOrientationOutcome strong{font-size:14px!important;line-height:1.25!important}
html#cwTabletRecovery.cwTablet[data-cw-tablet-recovery="3"] .cwLessonOrientationOutcome small{font-size:10px!important;margin-bottom:2px!important}

html#cwTabletRecovery.cwTablet[data-cw-tablet-recovery="3"] .cwFixedControls{display:flex!important;flex-wrap:wrap!important;align-items:center!important;gap:5px 8px!important;padding:5px!important}
html#cwTabletRecovery.cwTablet[data-cw-tablet-recovery="3"] .cwFixedSelections{display:flex!important;flex-wrap:wrap!important;align-items:center!important;gap:5px 8px!important;flex:1 1 auto!important}
html#cwTabletRecovery.cwTablet[data-cw-tablet-recovery="3"] :is(.cwFixedPrimary,.cwFixedSecondary){display:flex!important;align-items:center!important;flex-wrap:wrap!important;gap:5px 8px!important;width:auto!important}
html#cwTabletRecovery.cwTablet[data-cw-tablet-recovery="3"] .cwFixedPlayback{margin-left:auto!important}
html#cwTabletRecovery.cwTablet[data-cw-tablet-recovery="3"] :is(#imQuestion,#imScaleNotes){font-size:13px!important;line-height:1.25!important;margin:3px 0 6px!important}
html#cwTabletRecovery.cwTablet[data-cw-tablet-recovery="3"] .imOptions[hidden]{display:none!important}
html#cwTabletRecovery.cwTablet[data-cw-tablet-recovery="3"] #imListen{margin-top:10px!important}
html#cwTabletRecovery.cwTablet[data-cw-tablet-recovery="3"] body[data-cw-fit-level="2"] .imKeyboard{height:112px!important;min-height:112px!important}
html#cwTabletRecovery.cwTablet[data-cw-tablet-recovery="3"] body.cwPowerLesson .pwPanel{padding:8px!important}
html#cwTabletRecovery.cwTablet[data-cw-tablet-recovery="3"] body.cwPowerLesson :is(.pwPanel p,.pwInstruction){font-size:12px!important;line-height:1.3!important;margin:4px 0!important}
html#cwTabletRecovery.cwTablet[data-cw-tablet-recovery="3"] body.cwPowerLesson .pwKeyboard{height:142px!important;min-height:142px!important}
html#cwTabletRecovery.cwTablet[data-cw-tablet-recovery="3"] .cwFixedPrimary>label{width:auto!important;max-width:100%!important;flex:0 1 auto!important;display:flex!important;align-items:center!important;gap:6px!important}
html#cwTabletRecovery.cwTablet[data-cw-tablet-recovery="3"] :is(.cwFixedSelections,.cwFixedPrimary,.cwFixedSecondary){padding-top:0!important;padding-bottom:0!important;min-width:0!important}

html#cwTabletRecovery.cwTablet[data-cw-tablet-recovery="3"] .lesson-intro{display:block!important;padding:0!important;margin:0 0 6px!important}
html#cwTabletRecovery.cwTablet[data-cw-tablet-recovery="3"] .lesson-intro h1{font-size:24px!important;line-height:1.2!important;margin:3px 0!important}
html#cwTabletRecovery.cwTablet[data-cw-tablet-recovery="3"] .start-card{display:block!important;padding:5px 8px!important;min-height:0!important;margin:4px 0 6px!important}
html#cwTabletRecovery.cwTablet[data-cw-tablet-recovery="3"] .setup-controls{display:flex!important;flex-wrap:wrap!important;gap:7px!important;width:100%!important}
html#cwTabletRecovery.cwTablet[data-cw-tablet-recovery="3"] .activity-grid{display:flex!important;flex-direction:column!important;gap:6px!important}
html#cwTabletRecovery.cwTablet[data-cw-tablet-recovery="3"] .activity-grid>.workspace{width:100%!important;min-width:0!important}
html#cwTabletRecovery.cwTablet[data-cw-tablet-recovery="3"] .activity-toolbar{display:flex!important;flex-wrap:wrap!important;gap:5px!important;margin-bottom:5px!important;min-height:0!important}
html#cwTabletRecovery.cwTablet[data-cw-tablet-recovery="3"] .activity-toolbar h2{font-size:16px!important;margin:2px 0!important}
html#cwTabletRecovery.cwTablet[data-cw-tablet-recovery="3"] .activity{padding:7px!important}
html#cwTabletRecovery.cwTablet[data-cw-tablet-recovery="3"] .keyboard-card{padding:5px!important}
html#cwTabletRecovery.cwTablet[data-cw-tablet-recovery="3"] .piano{height:170px!important;min-height:170px!important}
html#cwTabletRecovery.cwTablet[data-cw-tablet-recovery="3"] .cwTabletLessonNotes{margin:8px 0;padding:8px;border:1px solid #3b4c65;border-radius:8px;color:#c8d2e2}
html#cwTabletRecovery.cwTablet[data-cw-tablet-recovery="3"] .cwTabletLessonNotes>summary{cursor:pointer;font-size:14px;font-weight:600}
html#cwTabletRecovery.cwTablet[data-cw-tablet-recovery="3"] .cwTabletLessonNotes>.control-panel{margin-top:8px;height:auto!important;min-height:0!important}

html#cwTabletRecovery.cwTablet[data-cw-tablet-recovery="3"] .cwTabletSettings{flex:1 1 200px;min-width:0;color:#dce5f4}
html#cwTabletRecovery.cwTablet[data-cw-tablet-recovery="3"] .cwTabletSettings>summary{padding:7px 9px;border:1px solid #52627d;border-radius:6px;font-size:13px;cursor:pointer;min-height:34px}
html#cwTabletRecovery.cwTablet[data-cw-tablet-recovery="3"] .cwTabletSettings[open]{flex-basis:100%}
html#cwTabletRecovery.cwTablet[data-cw-tablet-recovery="3"] .cwTabletSettings[open]>.cwFixedSelections{margin-top:7px}
html#cwTabletRecovery.cwTablet[data-cw-tablet-recovery="3"] .cwTabletSettings>.cwGuideChoice{margin:7px 0;font-size:13px}
html#cwTabletRecovery.cwTablet[data-cw-tablet-recovery="3"] .bfTimeline :is(.bfCell,.bfBar,.bfTrackLabel){height:48px!important;min-height:48px!important;padding-top:2px!important;padding-bottom:2px!important}
html#cwTabletRecovery.cwTablet[data-cw-tablet-recovery="3"] .bfTimeline .bfEvent{top:20px!important;height:24px!important;min-height:24px!important}
html#cwTabletRecovery.cwTablet[data-cw-tablet-recovery="3"] .bfTimeline .bfBeats{top:3px!important}
html#cwTabletRecovery.cwTablet[data-cw-tablet-recovery="3"] .bfKeyboardViewport{padding:0!important;margin-top:4px!important}
html#cwTabletRecovery.cwTablet[data-cw-tablet-recovery="3"] #bfKeyboard{height:112px!important;min-height:112px!important}
html#cwTabletRecovery.cwTablet[data-cw-tablet-recovery="3"] .bfHeading{margin:0 0 4px!important}
html#cwTabletRecovery.cwTablet[data-cw-tablet-recovery="3"] .bfHeading h1{font-size:24px!important;line-height:1.15!important;margin:2px 0!important}
html#cwTabletRecovery.cwTablet[data-cw-tablet-recovery="3"] #bfBrief{font-size:13px!important;line-height:1.25!important;margin:3px 0!important}

html#cwTabletRecovery.cwTablet[data-cw-tablet-recovery="3"] .activity-toolbar>.playback-controls{flex:0 0 auto!important;width:fit-content!important;max-width:100%!important}
html#cwTabletRecovery.cwTablet[data-cw-tablet-recovery="3"] .activity-toolbar>div:first-child{flex:1 1 190px!important;min-width:0!important}
html#cwTabletRecovery.cwTablet[data-cw-tablet-recovery="3"] .activity-toolbar>div:first-child .section-label{display:none!important}
html#cwTabletRecovery.cwTablet[data-cw-tablet-recovery="3"] .bfPhrase{margin:3px 0!important;min-height:24px!important}
html#cwTabletRecovery.cwTablet[data-cw-tablet-recovery="3"] .lesson-content{padding-top:4px!important;padding-bottom:12px!important}
html#cwTabletRecovery.cwTablet[data-cw-tablet-recovery="3"] .piano{height:160px!important;min-height:160px!important}
html#cwTabletRecovery.cwTablet[data-cw-tablet-recovery="3"] .bfTimeline{gap:4px!important}
html#cwTabletRecovery.cwTablet[data-cw-tablet-recovery="3"] .bfTimeline :is(.bfCell,.bfBar,.bfTrackLabel){height:46px!important;min-height:46px!important}
