/* Mobile workspace: separated surfaces, clear destinations and touch targets. */
.mobile-brand,.mobile-search-open{display:none}
.home-generate{display:inline-flex;align-items:center;justify-content:space-between;gap:22px;background:transparent;color:var(--ink);border-color:var(--line)}
.home-generate:hover{background:var(--soft);border-color:var(--muted)}
.question-feedback{display:flex;align-items:center;justify-content:space-between;gap:18px;border-top:1px dashed var(--line);padding-top:20px;margin-top:24px}
.question-feedback>span{font-size:.78rem;color:var(--muted)}
.report-bug{font-size:.8rem;background:transparent;color:var(--muted);min-height:44px;padding:10px 15px;border:1px solid var(--line);border-radius:10px}
.report-bug:hover{background:var(--soft);color:var(--ink);border-color:var(--muted)}
.report-error{color:var(--bad);font-size:.83rem;line-height:1.6}
.fix-dialog{max-height:90svh;overflow-y:auto}
.fix-dialog textarea{width:100%;box-sizing:border-box;font:inherit;padding:14px;line-height:1.7;border-radius:10px;resize:vertical;background:var(--soft);color:var(--ink);border:1px solid var(--line)}
.fix-dialog .field{margin:20px 0}.fix-dialog .btn.primary{min-height:48px}
.report-question-context{font-size:.87rem;line-height:1.75;color:var(--muted);max-width:76ch}
.topbar .in{overflow-y:auto;scrollbar-width:thin}.topbar .team-reports{font-size:.78rem}.topbar .sidebar-bottom,.topbar .sidebar-note{order:2}
@media(max-width:760px){
 .shell{padding:100px 18px calc(130px + env(safe-area-inset-bottom));}
 .page-heading{margin:0 0 28px;gap:18px}.page-heading h1{font-size:1.65rem;line-height:1.22;letter-spacing:-.045em}.page-heading .sub{font-size:.88rem;line-height:1.8;margin-top:14px}
 .qsl-header{height:76px;padding:14px 18px;background:var(--bg);border-bottom:0;gap:10px;}
 .mobile-brand{display:block;margin-right:auto;text-decoration:none;flex:1;min-width:0}.mobile-brand img{width:112px;height:auto;display:block}
 .mobile-search-open{display:grid;place-items:center;background:var(--soft);border:1px solid var(--line);width:44px;height:44px;border-radius:14px;flex:none;color:var(--ink);font-size:1.5rem}
 .mobile-search-open .nav-icon{width:20px;height:20px}
 .qsl-header .global-search{display:none;min-width:0}
 .qsl-header.search-open .mobile-brand{display:none}
 .qsl-header.search-open .global-search{display:flex;flex:1;width:0;background:var(--card);border:1px solid var(--line);padding:4px 8px;min-height:46px}
 .qsl-header.search-open .global-search input{font-size:16px;min-width:0;padding:8px 0}
 .qsl-header.search-open .global-search>span{display:none}
 .qsl-header .qsl-account-btn{min-width:44px;min-height:44px}
 .topbar{inset:auto 12px calc(10px + env(safe-area-inset-bottom));width:calc(100% - 24px);height:74px;padding:8px 9px;border:1px solid var(--line);border-radius:24px;background:var(--card);box-shadow:0 8px 36px #0004;}
 .topbar .in{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:5px;overflow:visible;height:100%;}
 .topbar .tab{display:flex;flex-direction:column;justify-content:center;align-items:center;min-height:54px;padding:6px 2px;border-radius:15px;gap:9px;font-size:.68rem;line-height:1.1;min-width:0;}
 .topbar .tab.on{background:var(--accent-soft);color:var(--accent);box-shadow:none;}
 .topbar .tab .nav-icon{height:22px;width:22px;}
 .topbar .tab.mobile-secondary{display:none}.topbar .mobile-more{display:flex;font-size:.68rem;}
 .topbar .brand,.topbar .sidebar-caption,.topbar .sidebar-bottom,.topbar .sidebar-note{display:none!important;}
 .mobile-menu{margin:auto 14px calc(102px + env(safe-area-inset-bottom));width:calc(100% - 28px);padding:24px;border-radius:24px;max-height:calc(100svh - 140px);overflow:auto;}
 .mobile-menu .section-title{margin-bottom:22px;gap:14px}.mobile-menu h2{font-size:1.12rem;}
 .mobile-menu nav{gap:12px}.mobile-menu nav .btn{min-height:50px;border-radius:13px;padding:15px 16px;}
 .home-welcome{margin-bottom:28px;align-items:flex-start;gap:16px;}.home-welcome .eyebrow{font-size:.8rem;margin-bottom:12px}.home-welcome h1{font-size:1.85rem;line-height:1.18;max-width:9ch}.home-welcome .sub{font-size:.88rem;line-height:1.8;margin-top:16px;max-width:24ch}.home-contest{font-size:.66rem;padding:9px 10px;margin-top:4px;}
 .home-start{gap:22px}.home-start .card{padding:26px 24px;border-radius:22px;}
 .continue-card h2{font-size:1.5rem;line-height:1.3;max-width:19ch;margin:18px 0 16px;}.continue-card p{font-size:.91rem;line-height:1.8;margin-bottom:28px;}
 .continue-card .row{display:grid;grid-template-columns:1fr;gap:13px;}
 .continue-card .btn.primary,.continue-card .home-generate{display:flex;align-items:center;justify-content:space-between;width:100%;min-height:52px;border-radius:13px;padding:15px 18px;font-size:.9rem;}
 .continue-card .home-generate{background:var(--card);color:var(--ink);border:1px solid var(--line);}
 .daily-goal{gap:20px}.daily-goal h2{font-size:1.08rem;line-height:1.5;margin:16px 0 12px;}.daily-goal p{font-size:.84rem;line-height:1.8;margin:12px 0 18px;}.daily-goal .text-link{font-size:.81rem;}
 .goal-ring{width:84px;height:84px;}.home-shortcuts{gap:14px;margin:24px 0 36px;}.home-shortcuts>a{padding:22px 20px;gap:18px;border-radius:18px;min-height:98px;}.home-shortcuts h2{font-size:.94rem;line-height:1.4;margin-bottom:8px;}.home-shortcuts p{font-size:.81rem;line-height:1.7;}
 .study-home .section-title{margin-bottom:20px;gap:16px;}.study-home .section-title h2{font-size:1.04rem;line-height:1.4;}.study-home .section-title .text-link{font-size:.76rem;white-space:nowrap;}
 .study-home .recent-grid{grid-template-columns:1fr;gap:14px;}.study-home .recent-item{padding:22px;border-radius:17px;}.study-home .recent-item b{font-size:.96rem;}.study-home .recent-item small{font-size:.8rem;margin-top:12px;line-height:1.7;}
 .study-home .kpis{gap:16px;}.study-home .kpi{padding:22px 18px;border-radius:18px;gap:12px;}.study-home .kpi>span{font-size:.77rem;line-height:1.6;}.study-home .kpi b{font-size:1.6rem;}.study-home .kpi small{font-size:.72rem;line-height:1.7;}.home-recent,.home-progress{margin-bottom:36px;}
 .study-layout .qwrap>.card{padding:26px 20px;border-radius:21px;}.study-layout .crumb{margin-bottom:22px;line-height:1.6;}.study-layout .section-title{margin-bottom:24px;}.question-source{margin-bottom:28px;padding-bottom:22px;}.question-identity{line-height:1.7;row-gap:6px;}.question-source .question-topic{line-height:1.8;margin-top:14px;}.source-details{margin-top:16px;}.source-details summary{min-height:32px;padding:5px 0;}
 .study-layout .stem{line-height:1.9;font-size:1.05rem;margin:14px 0 30px;}.question-label{margin-top:28px;}.study-layout .support{padding:16px;margin:0 0 24px;border-radius:13px;}.support summary{line-height:1.6;}
 .option-row{gap:7px;margin-bottom:15px;}.study-layout .option-row .opt{padding:17px 14px;min-height:66px;gap:12px;border-radius:14px;font-size:.97rem;line-height:1.8;}.study-layout .eliminate{width:27px;}.study-layout .opt .k{width:27px;height:27px;min-width:27px;}
 .answer-actions{margin-top:30px;padding-top:26px;}.answer-actions .btn.primary{min-height:54px;border-radius:14px;font-size:.94rem;}
 .question-tools{gap:12px;margin-top:22px;}.question-tools .btn{min-height:48px;padding:12px 8px;font-size:.81rem;border-radius:12px;}
 .question-feedback{margin-top:28px;padding-top:24px;display:grid;grid-template-columns:1fr;gap:12px;}.question-feedback>span{font-size:.81rem;}.question-feedback .report-bug{width:100%;min-height:49px;font-size:.86rem;border-radius:12px;}
 .session-panel{margin-top:24px;padding:0 20px;border-radius:17px;}.session-panel>summary{min-height:62px;gap:10px;font-size:.82rem;line-height:1.6;}.session-panel>summary span{font-size:.71rem;}
 .practice-filters .filter-card{padding:25px 22px;border-radius:21px;}.practice-filters .section-title{margin-bottom:28px;}.practice-filters .field{font-size:.84rem;margin-bottom:24px;gap:11px;}.practice-filters .field input,.practice-filters .field select{padding:15px 13px;min-height:52px;border-radius:12px;font-size:16px;}
 .practice-filters .source-filters{grid-template-columns:1fr;gap:20px;margin-bottom:24px;}.practice-filters .source-filters .field{margin-bottom:0;}.practice-filters .multi-subjects{padding-bottom:18px;margin-bottom:24px;}.practice-filters .multi-subjects>summary{font-size:.8rem;min-height:38px;line-height:1.7;}.practice-filters .advanced-filters{padding-bottom:18px;margin-bottom:24px;}.practice-filters .advanced-filters>summary{font-size:.86rem;min-height:42px;}
 .practice-filters .filter-footer{gap:12px;padding-top:24px;}.practice-filters .filter-footer .primary{min-height:54px;border-radius:13px;font-size:.9rem;}.practice-filters .filter-footer #save-filter,.practice-filters .filter-footer #clear-filter{min-height:48px;border-radius:12px;}
 .filter-layout:has(#generate-exam){display:flex;flex-direction:column;gap:24px;}
 .filter-layout:has(#generate-exam)>aside{display:block;order:-1;width:100%;}
 .filter-layout:has(#generate-exam)>section{width:100%;padding:26px 22px;border-radius:21px;}
 .filter-layout:has(#generate-exam) .training-summary{padding:26px 24px;border-radius:21px;}
 .filter-layout:has(#generate-exam) .training-summary>b{font-size:2.7rem;margin-top:18px;}
 .filter-layout:has(#generate-exam) .training-summary p{font-size:.87rem;line-height:1.85;margin:18px 0;}
 .filter-layout:has(#generate-exam) #generate-exam{min-height:54px;border-radius:13px;font-size:.93rem;margin-top:20px;}
 .contest-heading{flex-direction:row;align-items:center;justify-content:space-between;gap:12px;}.contest-trigger{width:auto;font-size:.78rem;padding:9px 12px;border-radius:13px;}.contest-heading .eyebrow{font-size:.62rem;line-height:1.6;}
 .fix-dialog{width:calc(100% - 28px);padding:25px 22px;border-radius:22px;max-height:calc(100svh - 44px);margin:auto;}.fix-dialog h2{font-size:1.16rem;line-height:1.4;}.fix-dialog .field{font-size:.86rem;gap:11px;margin:24px 0;}.fix-dialog textarea,.fix-dialog select{font-size:16px;padding:15px;line-height:1.8;}.fix-dialog .btn.primary{width:100%;min-height:52px;border-radius:12px;}.fix-dialog .help-text{font-size:.83rem;line-height:1.8;}
 .toast{bottom:calc(106px + env(safe-area-inset-bottom));right:18px;padding:18px;line-height:1.7;}
}
