html,body{overscroll-behavior-y:none!important}
html,body{overscroll-behavior-y:none!important}
html,body{overscroll-behavior-y:none!important}
html,body{overscroll-behavior-y:none!important}
/* Shared mobile presentation for the outer shell and every learning engine. */
#mobile-bottom-nav{display:none}#mobile-mode-menu{padding:0!important;border:1px solid var(--ap-border,#665273);border-radius:20px;width:min(520px,calc(100vw - 24px))!important;max-height:calc(100dvh - 24px)!important;resize:none!important;overflow:auto!important;background:var(--ap-bg,#160f20)!important}#mobile-mode-menu::backdrop{background:#08050dbb;backdrop-filter:blur(5px)}#mobile-mode-menu>header{position:sticky;top:0;z-index:5;display:flex;gap:10px;align-items:center;justify-content:space-between;padding:14px;background:var(--ap-bg,#160f20);border-bottom:1px solid var(--ap-border,#665273)}#mobile-mode-menu h2{font-size:20px;margin:0}#mobile-mode-menu>header button{min-height:44px;border-radius:12px;padding:9px 12px;border:1px solid var(--ap-border);font-size:15px!important;white-space:nowrap}
html[data-layout=mobile] body.desktop-ready{grid-template-columns:minmax(0,1fr)!important;grid-template-rows:auto minmax(0,1fr) auto!important;height:100dvh!important;width:100%!important;overflow:hidden!important}
html[data-layout=mobile] #toolbar{grid-column:1!important;grid-row:1!important;display:flex!important;align-items:center;flex-wrap:nowrap!important;gap:8px!important;padding:9px 12px!important;min-height:64px!important;height:auto!important}
html[data-layout=mobile] #toolbar[hidden]{display:none!important}
html[data-layout=mobile] #toolbar>.brand{display:flex!important;flex:0 0 auto;gap:8px}html[data-layout=mobile] #toolbar .brand-text{display:none}html[data-layout=mobile] #toolbar .mark{width:36px;height:36px;font-size:25px;background:var(--desktop-mint)}
html[data-layout=mobile] #toolbar .desktop-breadcrumb,html[data-layout=mobile] #toolbar #langTabs,html[data-layout=mobile] #accountStatus{display:none!important}
html[data-layout=mobile] #toolbar #language-profile{margin-left:auto!important;min-width:0!important;max-width:calc(100% - 138px)!important;min-height:44px!important;font-size:13px!important;padding:8px 10px!important;line-height:1.25!important;white-space:normal!important}
html[data-layout=mobile] #toolbar .tools{flex:0 0 auto!important;margin:0!important;gap:5px!important}html[data-layout=mobile] #toolbar #logout{font-size:0!important;width:38px;min-width:38px;min-height:44px;padding:7px!important}html[data-layout=mobile] #toolbar #logout:before{content:'⇥';font-size:22px}
html[data-layout=mobile] #toolbar .cloud-downloads{font-size:0!important;width:35px;min-height:44px;padding:5px!important}html[data-layout=mobile] #toolbar .cloud-downloads:before{content:'↓';font-size:22px}
html[data-layout=mobile] #workspace{grid-column:1!important;grid-row:2!important;min-width:0!important;width:100%!important}
html[data-layout=mobile] #mobile-bottom-nav:not([hidden]){grid-column:1;grid-row:3;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:4px;padding:7px 8px max(8px,env(safe-area-inset-bottom));border-top:1px solid var(--ap-border,#493958);background:var(--ap-nav,#20172d);z-index:20}
html[data-layout=mobile] #mobile-bottom-nav button{display:grid;align-content:center;justify-items:center;gap:3px;min-width:0;min-height:53px;border:0;border-radius:12px;padding:4px;background:transparent!important;font:14px/1.2 system-ui!important;color:var(--ap-muted)!important}html[data-layout=mobile] #mobile-bottom-nav span{font-size:23px}html[data-layout=mobile] #mobile-bottom-nav small{font-size:11px;overflow-wrap:anywhere}html[data-layout=mobile] #mobile-bottom-nav [aria-current=page]{color:var(--ui-accent)!important;background:color-mix(in srgb,var(--ui-accent) 12%,transparent)!important}
html[data-layout=mobile] #desktop-navigation{display:none!important}html[data-layout=mobile] #mobile-mode-menu #desktop-navigation:not([hidden]){display:flex!important;width:100%!important;padding:12px 16px!important;max-height:none!important;align-items:stretch!important;border:0!important;overflow:visible!important}
html[data-layout=mobile] #mobile-mode-menu .desktop-brand,html[data-layout=mobile] #mobile-mode-menu .desktop-nav-label{display:none!important}html[data-layout=mobile] #mobile-mode-menu .desktop-nav{width:100%;gap:8px}html[data-layout=mobile] #mobile-mode-menu .desktop-nav button{display:flex!important;justify-content:flex-start!important;width:100%!important;min-height:54px!important;font-size:17px!important;padding:13px!important}html[data-layout=mobile] #mobile-mode-menu .nav-text,html[data-layout=mobile] #mobile-mode-menu .nav-arrow{display:block!important}html[data-layout=mobile] #mobile-mode-menu .nav-text{white-space:normal!important}html[data-layout=mobile] #mobile-mode-menu .desktop-nav-foot{margin-top:18px}html[data-layout=mobile] #mobile-mode-menu .desktop-nav-foot button{display:flex!important;width:100%!important;font-size:15px!important;white-space:normal!important;min-height:48px!important}html[data-layout=mobile] #mobile-mode-menu .desktop-nav-foot button:before{content:none!important}
/* Inner pages have one outer navigation and flow vertically. */
html[data-layout=mobile],html[data-layout=mobile] body{min-width:0!important;max-width:100%!important;overflow-x:clip!important}
html[data-layout=mobile] :is(main,.pages,.page,.workspace,#main,.mode-study-main,.composition,.cv2-reply-panel,.cv2-chat-main,.shadow-layout,.reading-panel){min-width:0!important;max-width:100%!important}
html[data-layout=mobile] button{min-width:0;max-width:100%;min-height:44px;white-space:normal;overflow-wrap:normal;line-height:1.35}
html[data-layout=mobile] :is(.home-wrap,.home-content){padding:18px!important}html[data-layout=mobile] .hero{padding:22px!important;min-height:0!important}html[data-layout=mobile] .hero h1{font-size:32px!important;line-height:1.15!important}html[data-layout=mobile] .hero p{font-size:16px!important}html[data-layout=mobile] .hero-art{display:none!important}
html[data-layout=mobile] :is(.mode-grid,.gallery,.concept-grid,.topic-grid,.lib-categories,.options-grid,.reply-grid,.saved-cards-grid,.flashcard-grid){display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:12px!important}
html[data-layout=mobile] .mode-card{min-height:124px!important;padding:18px!important}html[data-layout=mobile] .mode-card p{font-size:15px!important;line-height:1.5!important}html[data-layout=mobile] .mode-card h3{font-size:20px!important}html[data-layout=mobile] .mode-card .foot{margin-top:14px!important}
html[data-layout=mobile] :is(.pills,.tabs,.form-groups){flex-wrap:nowrap!important;overflow-x:auto!important;max-width:100%!important;min-width:0!important;gap:8px!important}html[data-layout=mobile] :is(.pills,.tabs,.form-groups)>button{flex:0 0 auto!important;min-width:max-content!important;white-space:nowrap!important}
html[data-layout=mobile] .mobile-rail-toggle{display:block!important;width:100%!important;min-height:46px!important;font-size:15px!important;padding:10px 14px!important;margin-bottom:10px}
html[data-layout=mobile] :is(.mode-study-layout,.workspace.with-rail),html[data-layout=mobile].feynman-with-cards .workspace{display:block!important;grid-template-columns:minmax(0,1fr)!important;width:100%!important}
html[data-layout=mobile] :is(#mode-card-rail,#feynman-card-rail,.workspace>.rail){display:none!important;width:100%!important;max-width:100%!important;max-height:45dvh!important;overflow:auto!important;position:relative!important;top:0!important}
html[data-layout=mobile].phone-rail-open :is(#mode-card-rail,#feynman-card-rail,.workspace>.rail){display:block!important}html[data-layout=mobile] :is(.study-rail-resizer,.rail-resizer,.splitter){display:none!important}
html[data-layout=mobile] #mode-shell>.modebar{display:flex!important;flex-direction:row!important;gap:8px!important;padding:10px 12px!important;align-items:center!important;flex-wrap:wrap!important;position:relative!important;max-height:none!important}
html[data-layout=mobile] #mode-shell .modebar-left{display:flex!important;width:auto!important;flex:1;min-width:0;margin:0!important}html[data-layout=mobile] #mode-shell .modebar-right{display:flex!important;width:auto!important;flex-wrap:wrap!important;gap:5px!important}
html[data-layout=mobile] #mode-shell .modebar .modebrand small,html[data-layout=mobile] #mode-shell .modebar #library-btn,html[data-layout=mobile] #mode-shell .modebar #switch-mode,html[data-layout=mobile] #mode-shell .modebar .v4-search-button{display:none!important}html[data-layout=mobile] #mode-title{font-size:18px!important}html[data-layout=mobile] .modebar button{font-size:13px!important;padding:8px!important}
html[data-layout=mobile].mobile-builder-document body>.app-header,html[data-layout=mobile].mobile-builder-document body>.nav,html[data-layout=mobile].mobile-builder-document #app>.app-header,html[data-layout=mobile].mobile-builder-document #app>.nav{display:none!important}
html[data-layout=mobile].mobile-builder-document :is(#app,.app){grid-template-columns:minmax(0,1fr)!important;grid-template-rows:minmax(0,1fr)!important;padding-left:0!important;padding-bottom:0!important}
html[data-layout=mobile] :is(.builder-grid,.chat-grid,.cv2.cv2-chat-grid){display:block!important;height:auto!important;max-height:none!important;overflow:visible!important}
html[data-layout=mobile] #practice{display:flex!important;flex-direction:column!important;height:auto!important;max-height:none!important;overflow:visible!important;gap:14px!important}
html[data-layout=mobile] :is(.sentence-card,.choices-card){display:flex!important;flex-direction:column!important;width:100%!important;min-height:0!important;height:auto!important;gap:12px!important;padding:16px!important;margin-bottom:16px!important;overflow:visible!important}
html[data-layout=mobile] :is(.sentence-scroll,.options-window){overflow:visible!important;min-height:60px!important;height:auto!important}html[data-layout=mobile] :is(.sentence-en,.sentence-es){overflow-wrap:break-word!important;white-space:normal!important}html[data-layout=mobile] .sentence-en{font-size:23px!important}
html[data-layout=mobile] :is(.sentence-heading,.choices-heading,.practice-top){flex-wrap:wrap!important;height:auto!important;min-height:44px!important;gap:8px!important}
html[data-layout=mobile] .controls{position:relative!important;display:flex!important;flex-wrap:wrap!important;gap:8px!important;clear:both!important}html[data-layout=mobile] .controls>button{flex:1 1 110px!important;font-size:15px!important;min-height:46px!important;padding:10px!important}
html[data-layout=mobile] .pages{height:auto!important;min-height:100%!important;overflow:visible!important}html[data-layout=mobile] .page{padding:16px!important;max-width:100%!important}html[data-layout=mobile] .page.active{overflow:visible!important}
html[data-layout=mobile] .shadow-layout{display:flex!important;flex-direction:column!important;min-height:0!important;overflow:hidden!important}
html[data-layout=mobile] .story-library{flex:none!important;max-height:50dvh!important;border-right:0!important;padding:12px!important;overflow:auto!important}html[data-layout=mobile] .mobile-story-toggle{display:block!important;width:100%;text-align:left;font-size:16px!important;padding:10px 14px!important;min-height:46px!important}
html[data-layout=mobile] .story-library:not(.mobile-stories-open)>:not(.mobile-story-toggle){display:none!important}html[data-layout=mobile] .reading-panel{flex:1!important;min-height:0!important;padding:16px!important;overflow-y:auto!important}html[data-layout=mobile] .playback-controls{display:flex!important;flex-wrap:wrap!important;gap:8px!important}html[data-layout=mobile] .playback-controls>button{flex:1 1 135px;font-size:15px!important;min-height:46px!important}html[data-layout=mobile] .shadow-segment{padding:16px!important;font-size:18px!important}
html[data-layout=mobile] :is(dialog,.dialog,.options-panel,.options-card,.review-card,.word-panel,.flashcard-panel){min-width:0!important;width:min(560px,calc(100vw - 20px))!important;max-width:calc(100vw - 20px)!important;resize:none!important;overflow-x:hidden!important;max-height:calc(100dvh - 20px)!important}
html[data-layout=mobile] :is(.global-map-controls,.lib-tools,.dictionary-controls){display:flex!important;flex-wrap:wrap!important;gap:8px!important;min-width:0!important}html[data-layout=mobile] :is(.global-map-controls,.lib-tools,.dictionary-controls)>*{min-width:0!important;max-width:100%!important}
.mobile-story-toggle{display:none}
html[data-layout=mobile].feynman-with-cards .workspace>.topbar,html[data-layout=mobile].feynman-with-cards body>.bottomnav{display:none!important}html[data-layout=mobile] :is(.twocol,.lesson-layout,.topicgrid,.topic-grid,.topics-grid){display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:12px!important}html[data-layout=mobile] .topiccard{min-height:110px!important;padding:18px!important}html[data-layout=mobile] .lessonaside{display:none!important}
html[data-layout=mobile] .mode-card,html[data-layout=mobile] .mode-card.library-card{grid-template-columns:38px minmax(0,1fr) 20px!important;grid-template-rows:auto auto!important;min-height:120px!important;gap:5px 12px!important;align-content:center!important;text-align:left!important}html[data-layout=mobile] .mode-card .mode-icon{grid-column:1!important;grid-row:1/3!important}html[data-layout=mobile] .mode-card h3{grid-column:2!important;grid-row:1!important;font-size:18px!important}html[data-layout=mobile] .mode-card p{grid-column:2!important;grid-row:2!important;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;font-size:14px!important}html[data-layout=mobile] .mode-card .foot{display:none!important}html[data-layout=mobile] .mode-card:after{content:'→';grid-column:3;grid-row:1/3;align-self:center;color:#e7cd84;font-size:23px}html[data-layout=mobile] .hero{grid-template-columns:minmax(0,1fr)!important}
html[data-layout=mobile] .playback-tools{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important;width:100%!important}html[data-layout=mobile] .playback-tools button{font-size:15px!important;min-height:46px!important;padding:10px!important}html[data-layout=mobile] .playback-tools label{min-width:0;display:flex;align-items:center;justify-content:space-between;gap:8px;font-size:13px!important}html[data-layout=mobile] .playback-tools select{min-width:65px;max-width:100%;min-height:44px}html[data-layout=mobile] #shadow-app>.modebar .mode-tools>span,html[data-layout=mobile] #shadow-app>.modebar .mode-name p{display:none!important}html[data-layout=mobile] #shadow-app>.modebar h1{font-size:20px!important}
