/* Keep compact cards consistent across the existing phone/tablet layout. */
@media(max-width:980px){
 /* Next handles the Join step; keep Watch and Practice at the same height. */
 #learner-journey .lx-step-0,#learner-journey .lx-step-1{height:475px;min-height:0}
 #learner-journey .lx-step-1>.lx-step-copy{display:none}
 #learner-journey .lx-step-1 .journey-guide-preview{flex:1 1 0%;height:auto;min-height:0;grid-template-rows:minmax(0,1fr) auto;overflow:hidden}
 #learner-journey .lx-step-1 .journey-guide-console{min-height:0;padding:10px 16px}
 #learner-journey .lx-step-1 .journey-guide-console-frame{height:100%;min-height:0;max-width:360px}
 #learner-journey .lx-step-1 .journey-guide-console-frame>img{height:100%;object-fit:contain}
 #learner-journey .lx-step-1 .guide-join-target,#learner-journey .lx-step-1 .guide-join-cue{display:none!important}
 #learner-journey .lx-step-1 .journey-guide-instructions{padding:14px 16px 18px}
 #learner-journey .lx-step-1 .journey-guide-instructions>strong{font-size:20px;margin:8px 0}
 #learner-journey .lx-step-1 .journey-guide-instructions>p{font-size:15px;line-height:1.4;margin-bottom:12px}
 #learner-journey .lx-step-1 .journey-guide-instructions>.journey-guide-status:not(:empty){margin-bottom:10px}
 #learner-journey .lx-step-1 .journey-guide-navigation{margin-top:0}
 /* Show the dashboard itself, rather than a clipped slice of a wide mockup. */
 #learner-journey .lx-step-3{height:auto;min-height:475px}
 #learner-journey .lx-step-3 .lx-dashboard-picture{height:auto;overflow:visible}
 #learner-journey .lx-dashboard-picture>.journey-dashboard-mini{position:relative;inset:auto;display:grid;width:100%;height:auto;max-width:none;grid-template-columns:76px minmax(0,1fr);transform:none;translate:none;rotate:none;overflow:hidden}
 #learner-journey .lx-dashboard-picture .hero-learner-nav{display:flex;flex-direction:column;flex-wrap:nowrap;align-items:stretch;padding:14px 8px;gap:12px;font-size:9px;line-height:1.35}
 #learner-journey .lx-dashboard-picture .hero-learner-nav>span{display:block}
 #learner-journey .lx-dashboard-picture .hero-learner-monogram{font-size:20px;flex-basis:auto;margin:0 0 4px}
 #learner-journey .lx-dashboard-picture .hero-learner-monogram>span{display:block;font-size:7px}
 #learner-journey .lx-dashboard-picture .hero-learner-selected{padding:6px 4px}
 #learner-journey .lx-dashboard-picture .hero-learner-nav>small{display:block;font-size:7px;line-height:1.5;margin-top:auto}
 #learner-journey .lx-dashboard-picture .hero-learner-main{padding:14px 10px;min-width:0}
 #learner-journey .lx-dashboard-picture .hero-learner-main>header{gap:6px}
 #learner-journey .lx-dashboard-picture .hero-learner-kicker{font-size:7px;letter-spacing:.04em}
 #learner-journey .lx-dashboard-picture .hero-learner-main h2{font-size:18px;margin:6px 0 0}
 #learner-journey .lx-dashboard-picture .hero-learner-avatar{width:24px;height:24px;min-width:24px;font-size:9px}
 #learner-journey .lx-dashboard-picture .hero-learner-summary{margin:12px 0;padding:10px;display:block}
 #learner-journey .lx-dashboard-picture .hero-learner-summary strong{font-size:10px;line-height:1.4}
 #learner-journey .lx-dashboard-picture .hero-learner-summary>div>span{font-size:9px}
 #learner-journey .lx-dashboard-picture .hero-learner-progress{display:none}
 #learner-journey .lx-dashboard-picture .hero-learner-main>h3{font-size:12px;margin:0 0 10px}
 #learner-journey .lx-dashboard-picture .hero-learner-topics{grid-template-columns:minmax(0,1fr);gap:8px}
 #learner-journey .lx-dashboard-picture .hero-learner-topic{display:grid;grid-template-columns:42px minmax(0,1fr);column-gap:8px;row-gap:3px;padding:7px;min-width:0}
 #learner-journey .lx-dashboard-picture .hero-learner-topic>img{grid-column:1;grid-row:1/4;width:42px;height:48px;object-fit:cover;margin:0}
 #learner-journey .lx-dashboard-picture .hero-topic-kind{grid-column:2;font-size:7px;line-height:1.3;margin:0}
 #learner-journey .lx-dashboard-picture .hero-learner-topic h4{grid-column:2;font-size:11px;line-height:1.3;margin:0;overflow-wrap:anywhere}
 #learner-journey .lx-dashboard-picture .hero-topic-action,#learner-journey .lx-dashboard-picture .hero-topic-state{grid-column:2;font-size:8px;line-height:1.3;margin:0}
 /* Keep both Room to learning cards in flow; neither can cover the other. */
 .room-learning-scroll{height:auto!important;min-height:0}
 #orbit-story.hp-room-story.v4-room-learning{height:auto;min-height:0;grid-template-columns:minmax(0,1fr);align-items:start;gap:28px;padding:65px 20px;overflow:visible}
 #orbit-story .v4-learning-composition{display:grid;grid-template-columns:minmax(0,1fr);gap:18px;width:100%;max-width:100%;height:auto;min-height:0;margin:0}
 #orbit-story .v4-learning-room{position:relative;inset:auto;width:100%;height:190px;margin:0;box-sizing:border-box;transform:none}
 #orbit-story .v4-learning-controls{position:relative;inset:auto;width:100%;height:auto;min-height:0;margin:0;padding:14px;box-sizing:border-box;transform:none}
 #orbit-story .v4-learning-connection{display:none}
 #orbit-story .v4-learning-note{position:static;font-size:11px;text-align:center}
 #orbit-story .v4-learning-controls>.journey-guide-preview{grid-template-columns:minmax(0,.95fr) minmax(0,1.05fr);height:auto;min-height:0;width:100%;margin:0;box-sizing:border-box}
 #orbit-story .journey-guide-console{padding:8px;min-width:0}
 #orbit-story .journey-guide-instructions{padding:12px 10px;min-width:0}
 #orbit-story .journey-guide-instructions>small{font-size:10px;line-height:1.4}
 #orbit-story .journey-guide-instructions>strong{font-size:18px;line-height:1.25;margin:8px 0;overflow-wrap:anywhere}
 #orbit-story .journey-guide-instructions>p{font-size:14px;line-height:1.4;margin-bottom:12px}
 #orbit-story .journey-guide-navigation{font-size:12px;flex-wrap:wrap;gap:6px}
 #orbit-story .journey-guide-navigation>button{padding:8px 6px;min-height:44px;flex:1;white-space:normal}
 #orbit-story .v4-learning-controls>figcaption{font-size:14px!important;line-height:1.4;margin-top:12px}
}
