/* Tablet recovery: retain WB's family layouts and native document scrolling. */
html#cwTabletRecovery.cwTablet {overflow-y:auto!important; height:auto!important;scroll-behavior:auto!important}
html#cwTabletRecovery.cwTablet body {overflow-y:visible!important;height:auto!important;max-height:none!important}
html#cwTabletRecovery.cwTablet .cwCourseRail:not(.cwLegacyRailSuppressed) {height:100vh!important;height:100dvh!important;max-height:100dvh!important;overflow-y:auto!important;overflow-x:hidden!important;-webkit-overflow-scrolling:touch;overscroll-behavior-y:contain;touch-action:pan-y;padding-bottom:32px!important}
html#cwTabletRecovery.cwTablet :is(#cwAcademyCategoryOverlay,#cwAcademyIntroductionOverlay,#lessonOverlay) {overflow-y:auto!important;-webkit-overflow-scrolling:touch;align-items:flex-start!important;padding:12px!important}
html#cwTabletRecovery.cwTablet :is(.cwAcademyCategoryPanel,.cwAcademyIntroductionPanel,.menuPanel) {max-height:calc(100vh - 24px)!important;max-height:calc(100dvh - 24px)!important;overflow-y:auto!important;-webkit-overflow-scrolling:touch;touch-action:pan-y}
html#cwTabletRecovery.cwTablet .cwAcademyCategoryGroups {grid-template-columns:1fr!important}
html#cwTabletRecovery.cwTablet .cwUnifiedLessonBar {position:relative!important;top:auto!important;height:auto!important;flex-wrap:wrap!important}
/* Movement uses its own shell, whose old compact rail width differed from the shared rail. */
@media(min-width:901px){html#cwTabletRecovery.cwTablet .academy-shell {grid-template-columns:248px minmax(0,1fr)!important}}
/* Put the complete key selector immediately above the demonstration, in normal flow. */
html#cwTabletRecovery.cwTablet.cwLearningSystem.cwFocusedFamily body .lesson {display:flex!important;flex-direction:column!important;gap:12px!important;min-height:0!important;height:auto!important;overflow:visible!important}
html#cwTabletRecovery.cwTablet.cwLearningSystem.cwFocusedFamily body .lessonHeader {display:block!important;height:auto!important;min-height:0!important}
html#cwTabletRecovery.cwTablet.cwFocusedFamily :is(.lessonTitle,.actionPanel,.tonicPanel,.demo) {height:auto!important;min-height:0!important;max-height:none!important;overflow:visible!important;flex:none!important}
html#cwTabletRecovery.cwTablet.cwLearningSystem.cwFocusedFamily body .tonics {display:grid!important;grid-template-columns:repeat(7,minmax(0,1fr))!important;gap:5px!important}
html#cwTabletRecovery.cwTablet.cwLearningSystem.cwFocusedFamily body .controls {flex-wrap:wrap!important;gap:10px!important}
html#cwTabletRecovery.cwTablet.cwLearningSystem.cwFocusedFamily body .advisor {position:static!important}
/* Composing gets the full lesson width for both bar timelines. */
html#cwTabletRecovery.cwTablet.cwLearningSystem.cwRhythmFamily body .workspace {display:flex!important;flex-direction:column!important;height:auto!important;min-height:0!important;gap:12px!important}
html#cwTabletRecovery.cwTablet.cwLearningSystem.cwRhythmFamily body .studio {order:0!important;width:100%!important;height:auto!important;min-height:0!important;overflow:visible!important}
html#cwTabletRecovery.cwTablet.cwLearningSystem.cwRhythmFamily body .lessonCard {order:1!important;width:100%!important;height:auto!important;min-height:0!important;overflow:visible!important}
html#cwTabletRecovery.cwTablet.cwRhythmFamily :is(.newConcept,.guidedArp,.lessonControls,.demonstration) {height:auto!important;min-height:0!important;max-height:none!important;overflow:visible!important;flex-basis:auto!important}
html#cwTabletRecovery.cwTablet.cwLearningSystem.cwRhythmFamily body .metronomePane {height:auto!important;min-height:0!important;display:flex!important;flex-wrap:wrap!important;gap:10px!important;padding:10px!important}
html#cwTabletRecovery.cwTablet.cwLearningSystem.cwRhythmFamily body .metronomePane>div,html#cwTabletRecovery.cwTablet.cwLearningSystem.cwRhythmFamily body .metronomePane>label {flex:1 1 130px!important;min-width:0!important}
html#cwTabletRecovery.cwTablet.cwLearningSystem.cwRhythmFamily body .metronomePane .transport {flex:1 0 100%!important;flex-wrap:wrap!important}
html#cwTabletRecovery.cwTablet.cwLearningSystem.cwRhythmFamily body .transport button {min-height:40px!important;min-width:60px!important;touch-action:manipulation}
html#cwTabletRecovery.cwTablet.cwLearningSystem.cwRhythmFamily body .metroIdentity {height:auto!important;min-height:70px!important;display:flex!important;flex-direction:column!important;gap:5px!important;align-items:flex-start!important}
html#cwTabletRecovery.cwTablet.cwRhythmFamily :is(.timelineWrap,.visualMetronomeWrap) {width:100%!important;max-width:none!important;overflow:visible!important;height:auto!important}
html#cwTabletRecovery.cwTablet.cwLearningSystem.cwRhythmFamily body .timelineWrap {min-height:220px!important}
html#cwTabletRecovery.cwTablet.cwLearningSystem.cwRhythmFamily body .timeline {height:190px!important;min-height:190px!important}
html#cwTabletRecovery.cwTablet.cwLearningSystem.cwRhythmFamily body .visualMetronomeWrap {min-height:75px!important}
html#cwTabletRecovery.cwTablet.cwRhythmFamily :is(.timelineHeader,.visualMetronomeHeader) {height:auto!important;white-space:normal!important;flex-wrap:wrap!important;line-height:1.4!important}
html#cwTabletRecovery.cwTablet.cwRhythmFamily :is(.noteParameters,.arpConfigRow,.controlRow,.lessonControls) {flex-wrap:wrap!important;gap:8px!important}
html#cwTabletRecovery.cwTablet.cwLearningSystem.cwRhythmFamily body .keyStrip {grid-template-columns:repeat(7,minmax(0,1fr))!important}
html#cwTabletRecovery.cwTablet.cwLearningSystem.cwRhythmFamily body .readoutRow {height:auto!important;grid-template-columns:repeat(2,minmax(0,1fr))!important}

html#cwTabletRecovery.cwTablet.cwLearningSystem.cwRhythmFamily body :is(.metronomePane,.visualMetronomeWrap,.timelineWrap,.readoutRow) {flex-basis:auto!important;flex-shrink:0!important;max-height:none!important}
html#cwTabletRecovery.cwTablet.cwLearningSystem.cwRhythmFamily body .guidedArp {grid-template-rows:none!important;grid-auto-rows:minmax(40px,auto)!important}
html#cwTabletRecovery.cwTablet.cwLearningSystem.cwRhythmFamily body :is(.app,.main) {height:auto!important;overflow:visible!important;min-height:0!important}
/* The accidental selector must grow with its cards rather than spill into the next panel. */
html#cwTabletRecovery.cwTablet.cwLearningSystem.cwFoundationFamily body .haAccidentalControls {display:block!important;height:auto!important;min-height:0!important;max-height:none!important;overflow:visible!important;padding-bottom:28px!important}
html#cwTabletRecovery.cwTablet.cwLearningSystem.cwFoundationFamily body .tRow {width:100%!important;display:grid!important;grid-template-columns:repeat(7,minmax(0,1fr))!important;position:static!important;margin-top:14px!important}
html#cwTabletRecovery.cwTablet.cwLearningSystem.cwFoundationFamily body .tBtn {height:auto!important;min-height:80px!important;display:block!important;padding:8px 3px!important}
html#cwTabletRecovery.cwTablet.cwLearningSystem.cwFoundationFamily body .tBtn .tonic {font-size:22px!important}
html#cwTabletRecovery.cwTablet.cwLearningSystem.cwFoundationFamily body .tBtn :is(.tval,.count) {font-size:11px!important;white-space:normal!important}
html#cwTabletRecovery.cwTablet.cwLearningSystem.cwFoundationFamily:is(.ha-sharp,.ha-flat) body .wrap {display:block!important;height:auto!important}
html#cwTabletRecovery.cwTablet.cwLearningSystem.cwFoundationFamily:is(.ha-sharp,.ha-flat) body .wrap> :is(.card,.hero,.haAccidentalProgress) {margin-bottom:14px!important}

/* WF: controls and demonstrations form one tablet activity. */
html#cwTabletRecovery.cwChordFamily .controlbar {position:sticky!important;top:0!important;z-index:40!important;margin-bottom:6px!important;padding:8px!important}
html#cwTabletRecovery.cwChordFamily #lessonContent>.row {display:flex!important;flex-direction:column!important;gap:10px!important}
html#cwTabletRecovery.cwChordFamily #lessonContent>.row>.card {width:100%!important;min-width:0!important;min-height:0!important;height:auto!important}
html#cwTabletRecovery.cwChordFamily #lessonContent>.row>.cwTabletVisual {order:-1!important}
html#cwTabletRecovery.cwChordFamily .cwTabletVisual :is(.compactQualityChoices,.compactSeventhChoices,.constructionBuildControls,.rootChooser) {margin:6px 0!important;min-height:0!important}
html#cwTabletRecovery.cwChordFamily .cwTabletVisual .keyboard {height:230px!important;min-height:230px!important}
html#cwTabletRecovery.cwChordFamily .canvasCard canvas {height:180px!important}
html#cwTabletRecovery.cwFocusedFamily .demo {padding:12px!important;gap:8px!important;display:flex!important;flex-direction:column!important}
html#cwTabletRecovery.cwFocusedFamily .demo .controls {display:flex!important;flex-wrap:wrap!important;align-items:center!important;gap:12px!important;margin:0!important}
html#cwTabletRecovery.cwFocusedFamily .demo .controls>div {flex:0 1 auto!important;width:auto!important;min-width:0!important}
html#cwTabletRecovery.cwFocusedFamily .demo .tonicPanel {padding:6px 0!important;border:0!important;background:none!important;margin:0!important}
html#cwTabletRecovery.cwFocusedFamily .demo .tonics {grid-template-columns:repeat(7,minmax(0,1fr))!important}
html#cwTabletRecovery.cwFocusedFamily .demo .tonics button {height:auto!important;min-height:38px!important;padding:4px!important}
html#cwTabletRecovery.cwFocusedFamily .demo .keyboard {height:230px!important;min-height:230px!important;flex:none!important}
html#cwTabletRecovery.cwFocusedFamily .demo .watch {margin:0!important;min-height:0!important;height:auto!important}
html#cwTabletRecovery.cwProgressionModernFamily body:is([data-lesson="seventhInversions"],[data-lesson="voicings"]) .activity-grid {grid-template-columns:minmax(0,1fr)!important}
html#cwTabletRecovery.cwProgressionModernFamily body:is([data-lesson="seventhInversions"],[data-lesson="voicings"]) .control-panel {display:flex!important;flex-wrap:wrap!important;gap:8px!important}
html#cwTabletRecovery.cwProgressionModernFamily body:is([data-lesson="seventhInversions"],[data-lesson="voicings"]) .control-panel>* {flex:1 1 240px!important;min-width:0!important}
html#cwTabletRecovery.cwProgressionModernFamily .piano {width:100%!important;min-width:0!important;height:230px!important}
html#cwTabletRecovery.cwProgressionModernFamily :is(.cycle-play,.play-cycle,.btn,.button) {height:auto!important;min-height:38px!important;white-space:normal!important;line-height:1.3!important}
html#cwTabletRecovery.cwProgressionModernFamily .activity-header {flex-wrap:wrap!important;height:auto!important;gap:8px!important}
html#cwTabletRecovery .modContent {min-width:0!important;max-width:100%!important;width:100%!important;overflow:visible!important}
html#cwTabletRecovery .modContent :is(.row,.topBoard,.modGrid,.layout) {min-width:0!important;max-width:100%!important;grid-template-columns:minmax(0,1fr)!important}
html#cwTabletRecovery .modContent .degreeRow {min-width:0!important;width:100%!important;grid-template-columns:repeat(7,minmax(0,1fr))!important}
html#cwTabletRecovery .modContent .degreeRow>* {min-width:0!important;white-space:normal!important}
html#cwTabletRecovery.cwRhythmFamily body:is([data-lesson-focus="performance"],[data-lesson-focus="sync"]) #keySection {position:sticky!important;top:0!important;z-index:30!important;order:3!important;margin:8px 0!important;background:#0d1117!important;padding:8px!important;flex:none!important;display:block!important}
html#cwTabletRecovery.cwRhythmFamily #keySection .degreeStrip {margin:0!important;min-height:36px!important}
html#cwTabletRecovery.cwRhythmFamily .guidedArp {display:flex!important;flex-direction:column!important;gap:8px!important}
html#cwTabletRecovery.cwRhythmFamily .guidedArp :is(.arpConfigRow,.noteParameters,.controlRow) {display:flex!important;flex-wrap:wrap!important;min-width:0!important}
html#cwTabletRecovery.cwRhythmFamily .guidedArp .controlBlock {flex:1 1 130px!important;min-width:100px!important;max-width:100%!important}
html#cwTabletRecovery.cwRhythmFamily .guidedArp select {width:100%!important;min-width:0!important}
@media(min-width:901px){html#cwTabletRecovery.cwFocusedFamily .demo .tonics{grid-template-columns:repeat(14,minmax(0,1fr))!important}}
html#cwTabletRecovery.cwProgressionModernFamily #playButton {height:auto!important;min-height:40px!important;white-space:normal!important;line-height:1.25!important;padding:8px 12px!important}
html#cwTabletRecovery.cwProgressionModernFamily #playButton span {white-space:normal!important}
html#cwTabletRecovery.cwModulationFamily .gpsStrip {grid-template-columns:repeat(7,minmax(0,1fr))!important;min-width:0!important}
html#cwTabletRecovery.cwModulationFamily .degreeRow .rowLabel {grid-column:1/-1!important}
html#cwTabletRecovery.cwModulationFamily :is(.lessonGrid,.modContent .row) {min-width:0!important;grid-template-columns:minmax(0,1fr)!important;height:auto!important;max-height:none!important}
html#cwTabletRecovery.cwModulationFamily :is(.top,.gpsPanel,.changes,.transport,.stripBoard,.stepCard) {min-width:0!important;max-width:100%!important;flex-wrap:wrap!important}
html#cwTabletRecovery.cwChordFamily .canvasGrid {display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px!important}
html#cwTabletRecovery.cwChordFamily .cwTabletVisual .keyboard {width:100%!important;min-width:0!important;max-width:100%!important;box-sizing:border-box!important}
html#cwTabletRecovery.cwProgressionModernFamily body:is([data-lesson="seventhInversions"],[data-lesson="voicings"]) .activity-grid {display:flex!important;flex-direction:column!important}
html#cwTabletRecovery.cwProgressionModernFamily body:is([data-lesson="seventhInversions"],[data-lesson="voicings"]) .activity-grid>.workspace {order:0!important;width:100%!important;min-width:0!important}
html#cwTabletRecovery.cwProgressionModernFamily body:is([data-lesson="seventhInversions"],[data-lesson="voicings"]) .activity-grid>.control-panel {order:1!important;height:auto!important;min-height:0!important}
html#cwTabletRecovery.cwProgressionModernFamily .notice-card {height:auto!important;min-height:0!important}
html#cwTabletRecovery.cwProgressionModernFamily .activity-toolbar {flex-wrap:wrap!important;height:auto!important;gap:8px!important}
html#cwTabletRecovery.cwProgressionModernFamily .playback-controls {flex-wrap:wrap!important;height:auto!important}
html#cwTabletRecovery.cwProgressionModernFamily .workspace>#focusControl {display:grid!important;grid-template-columns:repeat(5,minmax(0,1fr))!important;gap:5px!important;width:100%!important}
html#cwTabletRecovery.cwProgressionModernFamily .workspace>#focusControl button {height:auto!important;min-height:48px!important;white-space:normal!important;padding:6px!important}
html#cwTabletRecovery.cwProgressionModernFamily .lesson-nav {position:relative!important;top:auto!important;height:auto!important;flex-wrap:wrap!important}
html#cwTabletRecovery.cwProgressionModernFamily .lesson-actions {flex-wrap:wrap!important}
html#cwTabletRecovery.cwProgressionModernFamily .lesson-content {min-width:0!important}
html#cwTabletRecovery.cwModulationFamily .degreeBoard {height:auto!important;min-height:0!important;display:flex!important;flex-direction:column!important;gap:10px!important}
html#cwTabletRecovery.cwModulationFamily .degreeRow {height:auto!important;min-height:0!important;max-height:none!important;grid-auto-rows:auto!important;gap:5px!important}
html#cwTabletRecovery.cwModulationFamily .degreeCell {height:54px!important;min-height:54px!important}
html#cwTabletRecovery.cwModulationFamily .bridge {height:auto!important;min-height:38px!important;margin:0!important;position:static!important}
html#cwTabletRecovery.cwRhythmFamily #timeline {height:190px!important;min-height:190px!important}
html#cwTabletRecovery.cwRhythmFamily #timeline>.bar {height:100%!important;min-height:0!important}
/* WG: keep the choices, spelling advice and demonstration together. */
html#cwTabletRecovery.cwTablet.cwFocusedFamily .demo #borrowedChooser {margin:0!important;padding:6px!important;width:100%!important}
html#cwTabletRecovery.cwTablet.cwFocusedFamily .demo #advisor {position:static!important;width:100%!important;max-width:none!important;margin:0!important;padding:6px!important;min-height:0!important;flex:none!important}
html#cwTabletRecovery.cwTablet.cwFocusedFamily .demo #advisor:empty {display:none!important}
html#cwTabletRecovery.cwTablet.cwFocusedFamily .demo .borrowedOptionGrid {display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:5px!important}
html#cwTabletRecovery.cwTablet.cwFocusedFamily .demo .borrowedOption {min-height:40px!important;padding:5px!important;white-space:normal!important}
html#cwTabletRecovery.cwTablet.cwModulationFamily .stage {display:flex!important;flex-direction:column!important;height:auto!important;min-height:0!important;gap:6px!important;padding:8px!important}
html#cwTabletRecovery.cwTablet.cwModulationFamily .gpsPanel {padding:8px 0 3px!important;margin:0!important;border:0!important}
html#cwTabletRecovery.cwTablet.cwModulationFamily .gpsTitle {font-size:10px!important;letter-spacing:1px!important;margin-bottom:5px!important}
html#cwTabletRecovery.cwTablet.cwModulationFamily .gpsCell {height:40px!important;border-radius:6px!important}
html#cwTabletRecovery.cwTablet.cwModulationFamily .gpsCell :is(.note,.val) {font-size:13px!important;margin:0!important}
html#cwTabletRecovery.cwTablet.cwModulationFamily .chooser {padding:8px!important;min-height:0!important}
html#cwTabletRecovery.cwTablet.cwModulationFamily .chooser :is(.keyTypeLabel,.pathwayLabel) {margin:4px 0!important}
html#cwTabletRecovery.cwTablet.cwModulationFamily .chooser .choice {min-height:38px!important;padding:4px!important}
html#cwTabletRecovery.cwTablet.cwModulationFamily .chooser .choice b {font-size:13px!important}
html#cwTabletRecovery.cwTablet.cwModulationFamily .cwModulationAbout {margin-top:5px!important;font-size:12px!important}
html#cwTabletRecovery.cwTablet.cwModulationFamily .transport {height:auto!important;min-height:42px!important;margin:0!important;padding:5px!important;gap:6px!important}
html#cwTabletRecovery.cwTablet.cwModulationFamily .degreeBoard {gap:5px!important}
html#cwTabletRecovery.cwTablet.cwModulationFamily .modContent .degreeRow {grid-template-columns:90px repeat(7,minmax(0,1fr))!important;gap:3px!important}
html#cwTabletRecovery.cwTablet.cwModulationFamily .degreeRow .rowLabel {grid-column:auto!important;min-height:45px!important;font-size:11px!important}
html#cwTabletRecovery.cwTablet.cwModulationFamily .degreeCell {height:45px!important;min-height:45px!important;padding:4px!important}
html#cwTabletRecovery.cwTablet.cwModulationFamily .bridge {min-height:30px!important}
@media(min-width:901px){html#cwTabletRecovery.cwTablet.cwModulationFamily .gpsStrip {grid-template-columns:repeat(14,minmax(0,1fr))!important}}
/* Complete creation labs: two control rows, one key row, then the timelines. */
html#cwTabletRecovery.cwTablet.cwLearningSystem.cwRhythmFamily body:is([data-lesson-focus="performance"],[data-lesson-focus="sync"]) .studio {gap:5px!important;padding:8px!important}
html#cwTabletRecovery.cwTablet.cwLearningSystem.cwRhythmFamily body:is([data-lesson-focus="performance"],[data-lesson-focus="sync"]) :is(.newConcept,.guidedArp) {padding:4px!important;margin:0!important;gap:4px!important}
html#cwTabletRecovery.cwTablet.cwLearningSystem.cwRhythmFamily body:is([data-lesson-focus="performance"],[data-lesson-focus="sync"]) :is(.arpMainRow,.arpDetailRow) {display:flex!important;flex-wrap:wrap!important;gap:4px!important;padding:3px!important;min-height:0!important}
html#cwTabletRecovery.cwTablet.cwLearningSystem.cwRhythmFamily body:is([data-lesson-focus="performance"],[data-lesson-focus="sync"]) .guidedArp :is(button,select) {height:36px!important;min-height:36px!important;padding:3px 6px!important;font-size:12px!important}
html#cwTabletRecovery.cwTablet.cwLearningSystem.cwRhythmFamily body:is([data-lesson-focus="performance"],[data-lesson-focus="sync"]) .guidedArp .controlBlock {flex:1 1 85px!important;min-width:85px!important}
html#cwTabletRecovery.cwTablet.cwLearningSystem.cwRhythmFamily body:is([data-lesson-focus="performance"],[data-lesson-focus="sync"]) .guidedArp .modeBtn {flex:0 1 85px!important;min-width:0!important;white-space:normal!important}
html#cwTabletRecovery.cwTablet.cwLearningSystem.cwRhythmFamily body:is([data-lesson-focus="performance"],[data-lesson-focus="sync"]) .inlineSyncRequest {display:flex!important;align-items:center!important;gap:6px!important;width:100%!important;font-size:10px!important}
html#cwTabletRecovery.cwTablet.cwLearningSystem.cwRhythmFamily body:is([data-lesson-focus="performance"],[data-lesson-focus="sync"]) .metronomePane {padding:5px!important;gap:4px!important;margin:0!important}
html#cwTabletRecovery.cwTablet.cwLearningSystem.cwRhythmFamily body:is([data-lesson-focus="performance"],[data-lesson-focus="sync"]) .metroIdentity {min-height:42px!important;gap:2px!important}
html#cwTabletRecovery.cwTablet.cwLearningSystem.cwRhythmFamily body:is([data-lesson-focus="performance"],[data-lesson-focus="sync"]) #keySection {position:static!important;display:flex!important;align-items:center!important;gap:5px!important;margin:0!important;padding:5px!important}
html#cwTabletRecovery.cwTablet.cwLearningSystem.cwRhythmFamily body:is([data-lesson-focus="performance"],[data-lesson-focus="sync"]) #keySection .keyStrip {flex:0 0 110px!important;min-width:110px!important}
html#cwTabletRecovery.cwTablet.cwLearningSystem.cwRhythmFamily body:is([data-lesson-focus="performance"],[data-lesson-focus="sync"]) #keySection .degreeStrip {flex:1 1 0!important;min-width:0!important}
html#cwTabletRecovery.cwTablet.cwLearningSystem.cwRhythmFamily body:is([data-lesson-focus="performance"],[data-lesson-focus="sync"]) .visualMetronomeWrap {min-height:0!important;padding:4px!important;margin:0!important}
html#cwTabletRecovery.cwTablet.cwLearningSystem.cwRhythmFamily body:is([data-lesson-focus="performance"],[data-lesson-focus="sync"]) .timelineWrap {min-height:0!important;padding:4px!important;margin:0!important}
html#cwTabletRecovery.cwTablet.cwLearningSystem.cwRhythmFamily body:is([data-lesson-focus="performance"],[data-lesson-focus="sync"]) .metronomePane {display:grid!important;grid-template-columns:125px repeat(3,minmax(0,1fr)) 45px!important;align-items:center!important}
html#cwTabletRecovery.cwTablet.cwLearningSystem.cwRhythmFamily body:is([data-lesson-focus="performance"],[data-lesson-focus="sync"]) .metronomePane .transport {grid-column:1/-1!important}
html#cwTabletRecovery.cwTablet.cwLearningSystem.cwRhythmFamily body:is([data-lesson-focus="performance"],[data-lesson-focus="sync"]) .metroIdentity {font-size:11px!important;line-height:1.2!important}
html#cwTabletRecovery.cwTablet.cwLearningSystem.cwRhythmFamily body:is([data-lesson-focus="performance"],[data-lesson-focus="sync"]) .metroIdentity button {font-size:11px!important;padding:4px!important;min-height:30px!important}
html#cwTabletRecovery.cwTablet.cwLearningSystem.cwRhythmFamily body:is([data-lesson-focus="performance"],[data-lesson-focus="sync"]) .guidedArp .modeBtn {line-height:1.15!important}
html#cwTabletRecovery.cwTablet.cwLearningSystem.cwRhythmFamily body:is([data-lesson-focus="performance"],[data-lesson-focus="sync"]) .inlineSyncRequest {justify-content:flex-end!important;min-height:0!important}
html#cwTabletRecovery.cwTablet.cwLearningSystem.cwRhythmFamily body:is([data-lesson-focus="performance"],[data-lesson-focus="sync"]) .inlineSyncRequest button {min-width:140px!important;white-space:nowrap!important;height:30px!important;min-height:30px!important}
html#cwTabletRecovery.cwTablet.cwModulationFamily .modContent .gpsStrip {grid-template-columns:repeat(14,minmax(0,1fr))!important}
html#cwTabletRecovery.cwTablet.cwLearningSystem.cwRhythmFamily body:is([data-lesson-focus="performance"],[data-lesson-focus="sync"]) .metronomePane> :is(div,label) {min-height:0!important;height:auto!important;margin:0!important;padding:0!important}
html#cwTabletRecovery.cwTablet.cwLearningSystem.cwRhythmFamily body:is([data-lesson-focus="performance"],[data-lesson-focus="sync"]) .metronomePane .metroControl {display:flex!important;flex-direction:column!important;gap:2px!important}
html#cwTabletRecovery.cwTablet.cwLearningSystem.cwRhythmFamily body:is([data-lesson-focus="performance"],[data-lesson-focus="sync"]) .metronomePane .transport {min-height:40px!important}
html#cwTabletRecovery.cwTablet.cwLearningSystem.cwRhythmFamily body:is([data-lesson-focus="performance"],[data-lesson-focus="sync"]) .guidedArp :is(.arpMainRow,.arpDetailRow) {border:0!important;margin:0!important;padding:0!important;gap:4px!important}
html#cwTabletRecovery.cwTablet.cwLearningSystem.cwRhythmFamily body:is([data-lesson-focus="performance"],[data-lesson-focus="sync"]) .newConcept {border:0!important}
html#cwTabletRecovery.cwTablet.cwModulationFamily .stage .gpsStrip {display:grid!important;grid-template-columns:repeat(14,minmax(0,1fr))!important;grid-auto-rows:40px!important}
html#cwTabletRecovery.cwTablet.cwModulationFamily .stage .gpsCell {min-height:40px!important;height:40px!important;padding:0!important}
html#cwTabletRecovery.cwTablet.cwLearningSystem.cwRhythmFamily body:is([data-lesson-focus="performance"],[data-lesson-focus="sync"]) .metroIdentity>span {font-size:8px!important;letter-spacing:.3px!important;line-height:12px!important;white-space:nowrap!important}
html#cwTabletRecovery.cwTablet.cwLearningSystem.cwRhythmFamily body:is([data-lesson-focus="performance"],[data-lesson-focus="sync"]) .metroIdentity>b {font-size:9px!important;line-height:14px!important;white-space:nowrap!important}
html#cwTabletRecovery.cwTablet.cwLearningSystem.cwRhythmFamily body:is([data-lesson-focus="performance"],[data-lesson-focus="sync"]) #timeline {height:180px!important;min-height:180px!important}
html#cwTabletRecovery.cwTablet.cwLearningSystem.cwRhythmFamily body:is([data-lesson-focus="performance"],[data-lesson-focus="sync"]) .metronomePane [hidden] {display:none!important}
@media(max-width:900px){html#cwTabletRecovery.cwTablet.cwModulationFamily .stage .gpsStrip {grid-template-columns:repeat(7,minmax(0,1fr))!important}}
html#cwTabletRecovery.cwTablet.cwLearningSystem.cwModulationFamily .chooser .directionGrid {display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:5px!important}
html#cwTabletRecovery.cwTablet.cwLearningSystem.cwModulationFamily .lessonGrid {gap:6px!important;margin-bottom:6px!important}
html#cwTabletRecovery.cwTablet.cwLearningSystem.cwRhythmFamily body:is([data-lesson-focus="performance"],[data-lesson-focus="sync"]) .metroBars span {font-size:8px!important;letter-spacing:0!important;white-space:nowrap!important}
html#cwTabletRecovery.cwTablet.cwLearningSystem.cwRhythmFamily body[data-lesson-focus="sync"] .syncCoach.open {position:static!important;display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:2px!important;padding:0!important;margin:0!important;min-height:0!important;height:16px!important;width:100%!important;box-shadow:none!important}
html#cwTabletRecovery.cwTablet.cwLearningSystem.cwRhythmFamily body[data-lesson-focus="sync"] .syncCoach.open b {font-size:7px!important;line-height:14px!important;padding:0!important;text-align:center!important;white-space:nowrap!important}

/* Website tablet orientation gate; desktop styling is untouched. */
#cwRotateTablet[hidden]{display:none!important}
html.cwPortraitBlocked,html.cwPortraitBlocked body{overflow:hidden!important}
#cwRotateTablet{position:fixed!important;inset:0!important;width:100%!important;height:100dvh!important;z-index:2147483647!important;display:flex!important;align-items:center!important;justify-content:center!important;background:#08111f!important;color:#eef3ff!important;padding:28px!important;text-align:center!important;font-family:Arial,system-ui,sans-serif!important}
#cwRotateTablet>div{max-width:480px!important}
#cwRotateTablet h1{font-size:clamp(24px,5vw,34px)!important;line-height:1.2!important;margin:18px 0!important}
#cwRotateTablet p{font-size:17px!important;line-height:1.6!important;color:#bbc9dc!important}
#cwRotateTablet .cwRotateIcon{font-size:72px!important;color:#a7de6e!important}
html.cwPortraitBlocked body>:not(#cwRotateTablet){visibility:hidden!important;pointer-events:none!important}
