/* Desktop keeps its existing layout. Every active layout rule is mobile-scoped. */
.mobile-study-bottom,.mobile-entry-grid,.mobile-module-back,.mobile-continue-label,.mobile-saved-progress,.mobile-resume-action,.mobile-account-link{display:none;}
.mobile-paper-progress{display:none;}
@media(max-width:800px){
 body.mobile-study{--mobile-bottom-height:calc(64px + env(safe-area-inset-bottom,0px));}
 body.mobile-study .topbar{height:56px;min-height:56px;padding:8px 16px;flex-wrap:nowrap;gap:10px;box-shadow:none;border-bottom:1px solid #e7edf5;}
 body.mobile-study .topbar>.brand{gap:9px;padding:0;min-width:0;}
 body.mobile-study .topbar .brand-mark{width:32px;height:32px;border-radius:10px;font-size:20px;}
 body.mobile-study .topbar .brand strong{font-size:17px;line-height:1.2;}
 body.mobile-study .topbar .brand small{display:none;}
 body.mobile-study .topbar>nav,body.mobile-study .pwa-install-entry,body.mobile-study .agency-mobile-entry{display:none!important;}
 body.mobile-study .topbar .profile-menu-wrap{margin-left:auto;flex:0 0 auto;}
 body.mobile-study .topbar .profile{display:flex;padding:2px;min-width:36px;}
 body.mobile-study .topbar #profileName{display:none;}
 body.mobile-study .topbar .avatar,body.mobile-study .topbar .avatar img{width:32px;height:32px;}
 body.mobile-study .mobile-account-link{display:block;}
 body.mobile-study .mobile-account-link[hidden]{display:none!important;}
 body.mobile-study .mobile-study-bottom{position:fixed;z-index:70;bottom:0;left:0;right:0;display:grid;grid-template-columns:repeat(3,1fr);height:var(--mobile-bottom-height);padding:7px 26px calc(8px + env(safe-area-inset-bottom,0px));background:#fff;border-top:1px solid #e4ebf4;box-shadow:0 -3px 15px #1f395204;}
 body.mobile-study.logged-out .mobile-study-bottom{display:none;}
 body.mobile-study.mobile-study-reading .mobile-study-bottom{display:none;}
 body.mobile-study .mobile-study-bottom button{appearance:none;border:0;background:none;color:#8393a9;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;font-family:inherit;font-size:12px;line-height:1.2;min-height:42px;padding:0;}
 body.mobile-study .mobile-study-bottom button.selected{color:#2367c6;font-weight:600;}
 body.mobile-study .mobile-study-bottom svg{width:23px;height:23px;}
 body.mobile-study #view-home.study-frame.active{height:calc(var(--study-viewport-height,100vh) - var(--study-header-height,56px) - var(--mobile-bottom-height));padding:0;gap:0;background:#f5f7fb;}
 body.mobile-study #app>.view:not(#view-home){padding-bottom:calc(var(--mobile-bottom-height) + 16px);}
 body.mobile-study #view-home.study-frame .coursebar{flex:0 0 auto;display:flex;flex-wrap:wrap;align-items:center;gap:9px;width:calc(100% - 32px);margin:14px 16px 10px;padding:15px 16px;min-height:118px;border-radius:16px;box-shadow:none;background:linear-gradient(110deg,#14375f,#225f9e);}
 body.mobile-study #view-home .study-hero-motto,body.mobile-study #view-home .hero-decoration{display:none;}
 body.mobile-study #view-home .course-hero-copy{flex:1 1 100%;min-width:0;}
 body.mobile-study #view-home .course-picker{margin:0;padding:0;gap:8px;width:100%;text-align:left;}
 body.mobile-study #view-home .course-picker>span:first-child{min-width:0;}
 body.mobile-study #view-home .course-picker small{display:block;font-size:12px;margin-bottom:6px;line-height:1.3;color:#d6e5f7;}
 body.mobile-study #view-home .course-picker strong{font-size:23px;line-height:1.3;letter-spacing:.2px;white-space:normal;}
 body.mobile-study #view-home .course-picker .chevron{width:24px;height:24px;flex:0 0 24px;font-size:14px;}
 body.mobile-study #view-home .period-status{margin:0;padding:0;display:flex;gap:7px;flex:1 1 100%;min-width:0;max-width:none;border:0;background:none;box-shadow:none;}
 body.mobile-study #view-home .period-status>span:nth-child(2){min-width:0;flex:1;}
 body.mobile-study #view-home .period-status small{display:none;}
 body.mobile-study #view-home .period-status strong{font-size:12px;line-height:1.5;white-space:normal;font-weight:500;}
 body.mobile-study #view-home .period-status .status-dot{width:6px;height:6px;flex:0 0 6px;}
 body.mobile-study #view-home .period-status .days{font-size:12px;line-height:1.3;flex:0 0 auto;margin-left:auto;padding-left:8px;white-space:nowrap;}
 body.mobile-study #view-home .period-status .days b{font-size:17px;}
 body.mobile-study #view-home.study-frame .workspace{width:100%;display:flex;gap:0;margin:0;min-height:0;}
 body.mobile-study #view-home .sidebar{display:none!important;}
 body.mobile-study #view-home.study-frame .content{padding:0;background:transparent;border:0;border-radius:0;box-shadow:none;min-height:0;}
 body.mobile-study #view-home #moduleContent{min-height:0;}
 body.mobile-study #view-home .study-list-scroll{padding:0 16px 16px;scrollbar-gutter:auto;}
 body.mobile-study #view-home .stats{gap:8px;margin:0 0 12px;grid-template-columns:repeat(3,minmax(0,1fr));}
 body.mobile-study #view-home #moduleContent>.stats{padding:0 16px;}
 body.mobile-study #view-home .stats .stat{padding:11px 9px;min-height:72px;border:1px solid #e5ebf4;border-radius:12px;background:#fff;box-shadow:none;}
 body.mobile-study #view-home .stats .stat:before,body.mobile-study #view-home .stats .stat:after{display:none;}
 body.mobile-study #view-home .stats .stat span{font-size:12px;line-height:1.4;white-space:normal;}
 body.mobile-study #view-home .stats .stat strong{font-size:24px;line-height:1.2;margin-top:6px;}
 body.mobile-study #view-home .stats .tip{font-size:12px;line-height:1.5;padding:9px 11px;min-height:0;border-radius:10px;}
 body.mobile-study #view-home .learning-home-card{min-height:0;margin:0;padding:0;display:block;background:transparent;border:0;border-radius:0;box-shadow:none;}
 body.mobile-study #view-home .learning-home-brand,body.mobile-study #view-home .learning-home-card>.course-access-banner.active,body.mobile-study #view-home .learning-home-card>.course-access-banner.admin{display:none;}
 body.mobile-study #view-home .course-access-banner{padding:12px;font-size:12px;}
 body.mobile-study #view-home .course-access-banner p{font-size:12px;line-height:1.5;}
 body.mobile-study #view-home .mobile-entry-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px;margin:2px 0 15px;}
 body.mobile-study .mobile-entry-grid button{font:inherit;display:flex;flex-direction:column;justify-content:center;align-items:center;gap:8px;min-height:92px;background:#fff;border:1px solid #e3eaf4;border-radius:12px;padding:12px 3px;color:#294463;}
 body.mobile-study .mobile-entry-grid strong{font-size:14px;font-weight:500;white-space:nowrap;}
 body.mobile-study .mobile-entry-icon{display:grid;place-items:center;width:37px;height:37px;padding:8px;border-radius:10px;background:#edf4ff;color:#2b6ab8;}
 body.mobile-study .mobile-entry-icon svg{width:23px;height:23px;}
 body.mobile-study .mobile-entry-grid [data-mobile-module="secret"] .mobile-entry-icon{background:#fff4e6;color:#b67c35;}
 body.mobile-study .mobile-entry-grid [data-mobile-module="wrong"] .mobile-entry-icon{background:#fff0e9;color:#c9795d;}
 body.mobile-study .mobile-entry-grid [data-mobile-module="favorite"] .mobile-entry-icon{background:#f3eef9;color:#8c72af;}
 body.mobile-study #view-home[data-mobile-module="overview"] .study-list-scroll>.section-head:not(.recent-head){display:none;}
 body.mobile-study #view-home[data-mobile-module="overview"] .dashboard-actions{display:none;border:0;background:transparent;}
 body.mobile-study #view-home[data-mobile-module="overview"] .dashboard-actions.mobile-has-continuation{display:block;margin:0 0 16px;}
 body.mobile-study #view-home[data-mobile-module="overview"] .dashboard-actions>.list-row{display:none;}
 body.mobile-study #view-home[data-mobile-module="overview"] .dashboard-actions>.mobile-continue-row{display:flex;flex-direction:column;align-items:stretch;gap:9px;padding:14px 15px;border:1px solid #cddff6;border-radius:14px;background:#fff;}
 body.mobile-study .mobile-continue-label{display:block;font-size:12px;color:#3a78c5;}
 body.mobile-study #view-home .mobile-continue-row .list-title{font-size:14px;line-height:1.6;padding:0;min-width:0;white-space:normal;}
 body.mobile-study #view-home .mobile-continue-row .list-title>.icon-box,body.mobile-study #view-home .mobile-continue-row>span,body.mobile-study #view-home .mobile-continue-row>.start-exam{display:none;}
 body.mobile-study #view-home .mobile-continue-row .practice-desc{font-size:12px;line-height:1.5;}
 body.mobile-study .mobile-saved-progress{display:block;font-size:12px;color:#7890aa;line-height:1.5;margin:0;}
 body.mobile-study .mobile-resume-action{display:block;border:0;border-radius:8px;min-height:42px;background:#2368c9;color:white;font:inherit;font-size:14px;padding:10px 13px;}
 body.mobile-study #view-home[data-mobile-module="overview"] .recent-head{position:static;background:transparent;padding:0;margin-bottom:10px;}
 body.mobile-study #view-home[data-mobile-module="overview"] .recent-head h1{font-size:15px;}
 body.mobile-study #view-home[data-mobile-module="overview"] .recent-head p{font-size:12px;}
 body.mobile-study #view-home .recent-activity-list{padding:0;gap:8px;}
 body.mobile-study #view-home .recent-activity-row{padding:12px;background:#fff;border:1px solid #e5ebf4;border-radius:11px;gap:9px;}
 body.mobile-study #view-home .recent-activity-row strong{font-size:13px;line-height:1.5;white-space:normal;}
 body.mobile-study #view-home .recent-activity-row small{font-size:12px;line-height:1.5;}
 body.mobile-study #view-home .activity-badge{font-size:11px;min-width:32px;}
 body.mobile-study #view-home:not([data-mobile-module="overview"]) .study-list-scroll>.section-head{display:flex;align-items:center;gap:9px;padding:8px 0 12px;margin:0;background:#f5f7fb;flex-wrap:wrap;}
 body.mobile-study .mobile-module-back{display:grid;place-items:center;flex:0 0 36px;min-height:40px;width:36px;border:1px solid #e0e7f1;border-radius:8px;padding:6px;background:#fff;color:#42678d;}
 body.mobile-study .mobile-module-back svg{width:20px;height:20px;}
 body.mobile-study #view-home .study-list-scroll>.section-head>div{min-width:0;flex:1;}
 body.mobile-study #view-home .study-list-scroll>.section-head h1{font-size:18px;line-height:1.4;margin:0;}
 body.mobile-study #view-home .study-list-scroll>.section-head p{font-size:12px;line-height:1.5;}
 body.mobile-study #view-home .refresh-course{font-size:12px;padding:9px 10px;min-height:40px;white-space:nowrap;border-radius:8px;}
 body.mobile-study #view-home[data-mobile-module="secret"] .study-list-scroll>.section-head p,body.mobile-study #view-home[data-mobile-module="mock"] .study-list-scroll>.section-head p{display:none;}
 body.mobile-study #view-home[data-mobile-module="secret"] .list,body.mobile-study #view-home[data-mobile-module="mock"] .list{border:0;border-radius:0;background:transparent;display:flex;flex-direction:column;gap:9px;overflow:visible;}
 body.mobile-study #view-home[data-mobile-module="secret"] .list-head,body.mobile-study #view-home[data-mobile-module="mock"] .list-head{display:none;}
 body.mobile-study #view-home[data-mobile-module="secret"] .list-row,body.mobile-study #view-home[data-mobile-module="mock"] .list-row{display:grid;grid-template-columns:minmax(0,1fr) 90px;align-items:center;gap:8px;padding:13px 12px;min-height:94px;border:1px solid #e2e9f3;border-radius:12px;background:#fff;}
 body.mobile-study #view-home[data-mobile-module="secret"] .list-row>.row-muted,body.mobile-study #view-home[data-mobile-module="mock"] .list-row>.row-muted{display:none;}
 body.mobile-study #view-home[data-mobile-module="secret"] .list-title,body.mobile-study #view-home[data-mobile-module="mock"] .list-title{display:block;min-width:0;padding:0;font-size:14px;line-height:1.55;overflow:visible;white-space:normal;text-overflow:clip;}
 body.mobile-study #view-home[data-mobile-module="secret"] .list-title>.icon-box,body.mobile-study #view-home[data-mobile-module="mock"] .list-title>.icon-box{display:none;}
 body.mobile-study #view-home .list-title>span:not(.icon-box){white-space:normal;overflow:visible;text-overflow:clip;overflow-wrap:anywhere;}
 body.mobile-study #view-home .list-title .practice-desc{font-size:12px;line-height:1.5;margin-top:6px;color:#8597ad;}
 body.mobile-study #view-home .list-title .tag{font-size:10px;display:inline-block;padding:2px 4px;margin:5px 0 0;border-radius:4px;}
 body.mobile-study #view-home[data-mobile-module="secret"] .list-row>.action,body.mobile-study #view-home[data-mobile-module="mock"] .list-row>.action{width:90px;min-width:0;min-height:42px;padding:8px 5px;border-radius:8px;font-size:12px;line-height:1.4;white-space:normal;}
 body.mobile-study #view-home .mobile-paper-continuing{border-color:#b9d2f3;background:#f8fbff;}
 body.mobile-study #view-home .mobile-paper-continuing .practice-desc{color:#3475bf;}
 body.mobile-study #view-home .mobile-paper-progress{display:block;height:4px;border-radius:4px;background:#e5eef9;margin-top:8px;overflow:hidden;}
 body.mobile-study #view-home .mobile-paper-progress i{display:block;height:100%;border-radius:4px;background:#4683d0;}
 body.mobile-study #view-home .section-head .tabs{display:flex;gap:5px;flex:0 0 auto;}
 body.mobile-study #view-home .section-head .tab{min-height:36px;padding:6px 8px;font-size:12px;}
 body.mobile-study #view-home .empty{font-size:13px;line-height:1.6;padding:18px 12px;}
 body.mobile-study #view-home .empty b{font-size:15px;}
 body.mobile-study #view-home[data-mobile-module="secret"] .coursebar,body.mobile-study #view-home[data-mobile-module="mock"] .coursebar{width:100%;min-height:78px;margin:0 0 8px;padding:10px 16px;gap:6px;background:#fff;border-radius:0;}
 body.mobile-study #view-home[data-mobile-module="secret"] .course-picker small,body.mobile-study #view-home[data-mobile-module="mock"] .course-picker small{display:none;}
 body.mobile-study #view-home[data-mobile-module="secret"] .course-picker strong,body.mobile-study #view-home[data-mobile-module="mock"] .course-picker strong{font-size:20px;}
 body.mobile-study #view-home[data-mobile-module="secret"] .course-picker,body.mobile-study #view-home[data-mobile-module="mock"] .course-picker{color:#193c67;}
 body.mobile-study #view-home[data-mobile-module="secret"] .course-picker .chevron,body.mobile-study #view-home[data-mobile-module="mock"] .course-picker .chevron{background:#edf4ff;color:#3169af;}
 body.mobile-study #view-home[data-mobile-module="secret"] .period-status strong,body.mobile-study #view-home[data-mobile-module="mock"] .period-status strong{color:#6c829f;}
 body.mobile-study #view-home[data-mobile-module="secret"] .period-status .days,body.mobile-study #view-home[data-mobile-module="mock"] .period-status .days{color:#4877b1;}
 body.mobile-study #view-home[data-mobile-module="secret"] .stats .tip,body.mobile-study #view-home[data-mobile-module="mock"] .stats .tip{display:none;}
 body.mobile-study #view-home[data-mobile-module="secret"] .stats,body.mobile-study #view-home[data-mobile-module="mock"] .stats{margin-bottom:8px;gap:7px;}
 body.mobile-study #view-home[data-mobile-module="secret"] .stats .stat,body.mobile-study #view-home[data-mobile-module="mock"] .stats .stat{min-height:60px;padding:8px 9px;}
 body.mobile-study #view-home[data-mobile-module="secret"] .stats .stat strong,body.mobile-study #view-home[data-mobile-module="mock"] .stats .stat strong{font-size:21px;margin-top:3px;}
 body.mobile-study #view-home[data-mobile-module="secret"] .study-list-scroll>.section-head,body.mobile-study #view-home[data-mobile-module="mock"] .study-list-scroll>.section-head{min-height:48px;padding:3px 0 7px;gap:8px;flex-wrap:nowrap;}
 body.mobile-study #view-home[data-mobile-module="overview"] .stats .tip{display:none;}
 body.mobile-study #view-home .mobile-continue-row .practice-desc{display:none;}
 body.mobile-study #view-home[data-mobile-module="secret"] .course-picker strong,body.mobile-study #view-home[data-mobile-module="mock"] .course-picker strong{color:#173b61;}
 body.mobile-study #view-home[data-mobile-module="secret"] .course-picker .chevron,body.mobile-study #view-home[data-mobile-module="mock"] .course-picker .chevron{color:#173b61;}
 body.mobile-study #view-home[data-mobile-module="secret"] .period-status .days,body.mobile-study #view-home[data-mobile-module="mock"] .period-status .days,body.mobile-study #view-home[data-mobile-module="secret"] .period-status .days b,body.mobile-study #view-home[data-mobile-module="mock"] .period-status .days b{color:#173b61;}
}
