/* Audited mobile foundations. Keep these after all legacy page styles. */
@media(max-width:900px) {
 html { scroll-padding-top:150px; }
 body#whatnext-app { -webkit-text-size-adjust:100%; }
 body#whatnext-app :is(main,section,article,aside,nav,div,form,header,footer) { min-width:0; }
 body#whatnext-app :is(h1,h2,h3,h4,p,li,td,th,label,summary,a) { overflow-wrap:anywhere; }
 body#whatnext-app :is(input:not([type=checkbox]):not([type=radio]),select,textarea) { font-size:16px !important; max-width:100%; }
 body#whatnext-app :is(button,.btn,.light-button,summary) { min-height:44px !important; touch-action:manipulation; }
 body#whatnext-app :is(button,input[type=checkbox],input[type=radio]) { flex-shrink:0; }
 body#whatnext-app :is(.wn-brand,.neet-brand) { min-height:44px; align-items:center; }
 body#whatnext-app #wnBurger { width:44px !important; height:44px !important; }
 body#whatnext-app :is(.wn-left a,.neet-nav a,.neet-student-logout,.footer-col>a,.neet-foot-col>a) { min-height:44px !important; display:inline-flex; align-items:center; }
 body#whatnext-app :is(.footer-col>a,.neet-foot-col>a) { display:flex; margin:0 !important; }
 body#whatnext-app :is(.socials>a,.wn-footer .socials a) { width:44px !important; height:44px !important; }
 body#whatnext-app :is(.light-video-link,.focus-video-link,.light-breadcrumb a,.study-back,.neet-practice-back) { display:inline-flex; align-items:center; min-height:44px !important; }
 body#whatnext-app :is(.light-button,.btn) { white-space:normal !important; text-align:center; }
 body#whatnext-app :is(.wn-whatsapp-float,.neet-trial-floating-unlock) { bottom:calc(12px + env(safe-area-inset-bottom)) !important; }
 body#whatnext-app :is(.jee-modal-card,.jee-overlay-card,.neet-test-overlay-card,.neet-complete-card,.loading-card,.upsell-modal-card) { width:min(460px,100%); max-width:calc(100vw - 32px) !important; max-height:calc(100dvh - 32px); overflow-y:auto; padding:24px !important; background:#fff !important; color:#192838 !important; }
 body#whatnext-app :is(.jee-overlay,.neet-test-overlay,.neet-complete-modal,.loading-overlay,.upsell-modal) { padding:16px; background:rgba(25,40,56,.45) !important; }
 body#whatnext-app .jee-pal-btn { min-height:44px !important; min-width:44px !important; }
 body#whatnext-app :is(.jee-palette-grid,.palette-grid) { grid-template-columns:repeat(auto-fit,minmax(44px,1fr)) !important; gap:8px; }
 body#whatnext-app :is(.jee-opt,.option-row,.opt-row) { min-height:48px; }
 body#whatnext-app .jee-opt { align-items:flex-start; padding:14px; }
 body#whatnext-app .jee-opt input { margin-top:5px; }
 body#whatnext-app .study-reader-card :is(table,pre) { max-width:100%; }
 body#whatnext-app .study-doc-sheet { overflow-x:auto !important; }
 body#whatnext-app .study-ch-nav-item { min-height:44px !important; }
 body#whatnext-app .study-toc-rail a { display:inline-flex; align-items:center; min-height:44px; }
 body#whatnext-app :is(.study-completion-bar,.study-doc-reader__intro) { flex-wrap:wrap; gap:12px; }
 body#whatnext-app .study-doc-reader__intro>strong { font-size:14px; line-height:1.6; }
}
@media(max-width:640px) {
 body#whatnext-app :is(.form-row.two,.checkout-grid,.feedback-layout,.feedback-layout--neet,.neet-fb-head-stack,.neet-fb-main-grid,.neet-fb-kpi-grid,.csir-dashboard-grid,.acct-grid,.planner-grid,.regenerate-grid) { grid-template-columns:minmax(0,1fr) !important; }
 body#whatnext-app :is(.form-row.two,.feedback-layout,.neet-fb-head-stack) { display:grid !important; }
 body#whatnext-app :is(.feedback-left,.feedback-right,.neet-fb-head-survey-rail) { width:100% !important; max-width:none !important; padding:20px !important; }
 body#whatnext-app :is(.auth-card,.checkout-form,.order-summary,.wn-webinar-card,.planner-card,.acct-card) { padding:20px !important; border-radius:10px !important; }
 body#whatnext-app :is(.wn-webinar,.csir-dashboard,.acct-wrap,.planner-shell,.test-shell,.feedback-wrap,.res-shell) { width:100% !important; max-width:100% !important; margin-inline:auto !important; padding-inline:0 !important; }
 body#whatnext-app :is(.wn-webinar-card,.acct-card,.csir-dash-card,.feedback-left,.feedback-right) { background:#fff !important; border:1px solid var(--line) !important; }
 body#whatnext-app :is(.light-actions,.test-nav,.jee-actions,.planner-header,.today-head,.day-nav,.controls,.coupon-row) { flex-wrap:wrap !important; }
 body#whatnext-app .coupon-row input { min-width:0 !important; flex:1 1 160px; }
 body#whatnext-app .jee-body { grid-template-columns:minmax(0,1fr) !important; }
 body#whatnext-app .jee-question-panel { padding:18px !important; }
 body#whatnext-app .jee-top { flex-wrap:wrap !important; gap:12px; }
 body#whatnext-app .jee-subject-tabs { width:100%; order:3; flex-wrap:wrap; }
 body#whatnext-app .jee-subj-tab { flex:1 1 80px; font-size:14px !important; }
 body#whatnext-app .jee-actions .jee-btn { flex:1 1 130px; }
 body#whatnext-app .jee-palette { max-height:none !important; overflow:visible !important; }
 body#whatnext-app .test-nav { position:static !important; overflow:visible !important; display:flex !important; background:#fff !important; }
 body#whatnext-app .test-nav .btn { flex:1 1 90px !important; min-height:44px !important; font-size:14px !important; }
 body#whatnext-app :is(.focus-feature-card p,.focus-journey-grid p,.light-course-card p,.light-review-card blockquote,.simple-tool p) { font-size:14px !important; }
 body#whatnext-app .wn-whatsapp-float { width:44px !important; height:44px !important; right:12px !important; }
 body#whatnext-app .neet-trial-floating-unlock { left:12px; right:auto; max-width:calc(100vw - 80px); min-height:44px; font-size:13px; }
 body#whatnext-app .neet-main { padding-bottom:56px; }
}
@media(max-width:900px) {
 body#whatnext-app :is(.footer-brand>a,.neet-foot-brand>a) { display:flex; flex-direction:column; justify-content:center; min-height:44px !important; min-width:44px; }
 body#whatnext-app :is(.footer-col>a,.neet-foot-col>a,.wn-reader-btn,.neet-practice-back,.study-cta,.tt-month-nav button,.btn-outline,.neet-trial-timetable) { min-width:44px !important; min-height:44px !important; }
 body#whatnext-app :is(.google-secondary-link,.neet-back,.neet-fb-back,.planner-shell>a,.auth-note a) { display:inline-flex; align-items:center; min-height:44px !important; min-width:44px; }
 body#whatnext-app :is(p,label,summary) { font-size:14px !important; line-height:1.6 !important; }
 body#whatnext-app .light-eyebrow { font-size:12px !important; }
 body#whatnext-app .wn-user-menu { width:min(360px,calc(100vw - 20px)) !important; min-width:0 !important; max-width:calc(100vw - 20px) !important; max-height:calc(100dvh - 20px) !important; overflow-y:auto !important; background:#fff !important; border-radius:10px !important; }
 body#whatnext-app .wn-user-menu-identity { min-width:0; }
 body#whatnext-app .wn-user-menu-identity :is(strong,small) { white-space:normal !important; overflow-wrap:anywhere; max-width:100% !important; }
 body#whatnext-app :is(.breakdown-table,.breakdown-table th,.breakdown-table td) { min-width:0 !important; max-width:100% !important; width:auto; white-space:normal !important; overflow-wrap:anywhere; }
 body#whatnext-app .breakdown-table { width:100% !important; table-layout:fixed; }
 body#whatnext-app .breakdown-table :is(th,td) { padding:10px 8px !important; font-size:13px !important; }
 body#whatnext-app :is(.feedback-left,.feedback-right) { overflow-x:auto; }
 body#whatnext-app .mobile-table-scroll { width:100%; max-width:100%; overflow-x:auto; -webkit-overflow-scrolling:touch; }
 body#whatnext-app.payment-status-page :is(.card,.box) { width:min(480px,calc(100% - 32px)) !important; max-width:calc(100vw - 32px) !important; margin:16px; padding:24px !important; background:#fff !important; border:1px solid var(--line) !important; border-radius:12px; }
 body#whatnext-app.payment-status-page a { display:inline-flex; align-items:center; justify-content:center; min-height:44px; min-width:44px; color:#fff !important; background:var(--purple) !important; }
 body#whatnext-app.payment-status-page .reason { color:#a62e38 !important; overflow-wrap:anywhere; }
}
@media(max-width:640px) {
 body#whatnext-app .mobile-cal-nav { width:100%; display:grid !important; grid-template-columns:minmax(0,1fr) minmax(0,1fr) !important; gap:8px !important; }
 body#whatnext-app .mobile-cal-nav .m-title { width:100%; min-width:0; grid-column:1/-1 !important; overflow-wrap:anywhere; }
 body#whatnext-app .mobile-cal-nav button { width:100%; min-width:0 !important; padding:10px 6px !important; font-size:13px !important; white-space:normal !important; }
 body#whatnext-app .mobile-cal-nav .m-next { grid-area:auto !important; grid-column:2 !important; }
 body#whatnext-app .mobile-cal-nav .m-prev { grid-area:auto !important; grid-column:1 !important; }
 body#whatnext-app :is(.tt-email-card,.tt-email-card form) { width:100%; max-width:100%; }
 body#whatnext-app .tt-email-card { padding:24px !important; margin:32px auto !important; }
 body#whatnext-app .tt-email-card form { flex-wrap:wrap; }
 body#whatnext-app .tt-email-card input { flex:1 1 180px; }
}
@media(max-width:900px) {
 body#whatnext-app :is(.auth-box p>a,.auth-card p>a,.auth-course-route>a,.feedback-header>a,.neet-notes-page>a,.neet-practice-footnote>a,.regen-cta>a,.c-title>a,.study-reader-crumb>a,.light-breadcrumb>a) { display:inline-flex !important; align-items:center; min-width:44px !important; min-height:44px !important; }
 body#whatnext-app .mobile-checkbox-target { display:inline-flex; align-items:center; justify-content:center; width:44px; min-height:44px; flex:0 0 44px; cursor:pointer; }
 body#whatnext-app .mobile-checkbox-target input[type=checkbox] { width:20px !important; height:20px !important; min-height:20px !important; margin:0 !important; }
 body#whatnext-app .study-reader-crumb { flex-wrap:wrap !important; gap:8px !important; }
 body#whatnext-app .contact-fields { grid-template-columns:minmax(0,1fr) !important; }
 body#whatnext-app .contact-fields label { display:block; margin-bottom:6px; }
}
@media(max-height:480px) and (max-width:900px) {
 body#whatnext-app .wn-header,body#whatnext-app .neet-topbar { position:static !important; }
 body#whatnext-app #wnMobileMenu.active { top:12px !important; max-height:calc(100dvh - 24px) !important; }
}
@media(max-width:900px) {
 body#whatnext-app #wnUser { display:block !important; }
 body#whatnext-app #wnUserBtn { display:inline-flex !important; align-items:center; justify-content:center; width:44px !important; min-width:44px !important; min-height:44px !important; padding:4px !important; }
 body#whatnext-app #wnUserBtn .wn-avatar-label { display:none !important; }
 body#whatnext-app #wnUserBtn .wn-avatar-initial { display:grid !important; place-items:center; min-width:32px; height:32px; }
 body#whatnext-app :is(.neet-practice-page>a,.neet-practice-page>div>a,.pyq-hero>a,.pyqs-head>a,.pyqs-shell>a,.light-course-card h3>a) { display:inline-flex !important; align-items:center; min-width:44px !important; min-height:44px !important; }
 body#whatnext-app label.opt { display:flex; align-items:center; min-width:44px; min-height:48px !important; }
 body#whatnext-app .glossary-floating-tooltip { min-width:0; max-width:calc(100vw - 24px); max-height:calc(100dvh - 24px); overflow-y:auto; background:#fff !important; color:#192838 !important; border:1px solid var(--purple) !important; pointer-events:auto; }
 body#whatnext-app .glossary-floating-tooltip::before { background:#fff !important; }
 body#whatnext-app .glossary-term { display:inline-block; min-height:44px; padding-block:8px; vertical-align:middle; }
}
@media(max-width:900px) {
 body#whatnext-app :is(.mobile-back-link,.light-course-card h3>a) { display:inline-flex !important; align-items:center; min-width:44px !important; min-height:44px !important; }
 body#whatnext-app .opt label { display:flex; align-items:center; min-height:44px !important; min-width:44px; flex:1; }
}
@media(max-width:640px) {
 body#whatnext-app .jee-exam { height:auto !important; min-height:0 !important; overflow:visible !important; }
 body#whatnext-app .jee-body { display:grid !important; grid-template-columns:minmax(0,1fr) !important; height:auto !important; }
 body#whatnext-app .jee-question-panel { height:auto !important; overflow:visible !important; }
 body#whatnext-app .jee-palette-panel { display:flex !important; flex-direction:column; position:static !important; height:auto !important; max-height:none !important; width:100%; background:#fff !important; border:1px solid var(--line) !important; }
 body#whatnext-app .jee-palette-scroll { max-height:320px !important; overflow-y:auto !important; flex:0 1 auto !important; }
 body#whatnext-app .jee-palette-footer { display:block !important; position:static !important; background:#fff !important; }
 body#whatnext-app .jee-actions { position:static !important; overflow:visible !important; flex-wrap:wrap !important; background:#fff !important; }
 body#whatnext-app .jee-actions .jee-btn { flex:1 1 120px !important; white-space:normal; font-size:14px !important; }
 body#whatnext-app .jee-q-meta { font-size:13px !important; }
 body#whatnext-app .jee-options { padding-bottom:8px; }
}
@media(max-width:640px) {
 body#whatnext-app .planner-date-range { grid-template-columns:minmax(0,1fr) !important; }
 body#whatnext-app .planner-date-range input { width:100%; min-width:0; }
 body#whatnext-app .policy-content { width:100%; min-width:0; padding:0; }
 body#whatnext-app .policy-content form>div>label { display:block; margin-bottom:6px; }
}
@media(max-width:900px) {
 body#whatnext-app .neet-star-btns { display:flex !important; flex-wrap:wrap !important; gap:6px !important; }
 body#whatnext-app .neet-star-btn { width:44px !important; min-width:44px !important; min-height:44px !important; flex:0 0 44px !important; padding:0 !important; }
 body#whatnext-app :is(.nova-capacity__close,.wn-purchase-close) { width:44px !important; min-width:44px !important; min-height:44px !important; padding:0 !important; }
}
@media(max-width:900px) {
 body#whatnext-app .wn-header { height:auto !important; min-height:72px !important; padding:12px 16px !important; align-items:center !important; gap:12px !important; }
 body#whatnext-app .wn-right { display:flex !important; flex-direction:row !important; align-items:center !important; flex-wrap:nowrap !important; gap:8px !important; }
 body#whatnext-app #wnUser { flex:0 0 44px; }
 body#whatnext-app :is(label,legend) { color:#192838 !important; }
}
@media(max-width:900px) {
 body#whatnext-app .neet-qbot-unlock { display:inline-flex; align-items:center; min-width:44px; min-height:44px !important; }
 body#whatnext-app :is(.neet-foot-bottom,.neet-foot-bottom span,.light-breadcrumb span) { color:#526171 !important; }
 body#whatnext-app :is(.neet-tw-card-wt,.neet-tw-class-go,.csir-dash-visual-tag) { color:var(--purple) !important; background:var(--purple-soft) !important; }
 body#whatnext-app .csir-dash-visual { background:var(--purple-soft) !important; }
 body#whatnext-app :is(#qpart,.payment-amount) { color:var(--purple) !important; }
 body#whatnext-app .tt-lock a { color:#fff !important; background:var(--purple) !important; }
 body#whatnext-app .wn-webinar-btn { color:#fff !important; background:var(--purple) !important; }
 body#whatnext-app .neet-star-btn.is-lit { color:#342144 !important; background:var(--gold) !important; border-color:var(--gold) !important; }
 body#whatnext-app .neet-pe-tile.is-selected { color:var(--purple) !important; background:var(--purple-soft) !important; border-color:var(--purple) !important; }
}
@media(max-width:900px) {
 body#whatnext-app .feedback-layout { display:grid !important; grid-template-columns:minmax(0,1fr) !important; gap:20px !important; }
 body#whatnext-app :is(.feedback-left,.feedback-right,.feedback-actions) { width:100% !important; max-width:100% !important; margin:0 !important; }
 body#whatnext-app .feedback-actions { display:flex !important; flex-wrap:wrap !important; justify-content:center; }
 body#whatnext-app .qbank-grid { display:grid !important; grid-template-columns:repeat(2,minmax(0,1fr)) !important; }
 body#whatnext-app .qbank-card { width:100% !important; min-width:0 !important; }
 body#whatnext-app .jee-exam { height:auto !important; min-height:0 !important; overflow:visible !important; }
 body#whatnext-app .jee-body { display:grid !important; grid-template-columns:minmax(0,1fr) !important; height:auto !important; }
 body#whatnext-app .jee-question-panel { height:auto !important; overflow:visible !important; }
 body#whatnext-app .jee-palette-panel { display:flex !important; flex-direction:column; position:static !important; height:auto !important; max-height:none !important; width:100%; background:#fff !important; border:1px solid var(--line) !important; }
 body#whatnext-app .jee-palette-scroll { max-height:320px !important; overflow-y:auto !important; }
 body#whatnext-app .jee-palette-footer { display:block !important; position:static !important; background:#fff !important; }
 body#whatnext-app .jee-actions { position:static !important; flex-wrap:wrap !important; overflow:visible !important; }
 body#whatnext-app .jee-top { flex-wrap:wrap !important; gap:12px; }
}
@media(max-width:640px) { body#whatnext-app .qbank-grid { grid-template-columns:minmax(0,1fr) !important; } }
@media(max-width:640px) {
 body#whatnext-app :is(h1,h2,h3,h4) { font-family:Manrope,system-ui,sans-serif !important; }
 body#whatnext-app .neet-fb-head-survey-rail { padding:0 !important; }
 body#whatnext-app .neet-pe-survey-wrap { width:100% !important; max-width:none !important; margin:0 !important; padding:0 !important; }
 body#whatnext-app .neet-pe-survey { width:100% !important; padding:16px !important; }
 body#whatnext-app .neet-pe-field { min-width:0; padding:12px 4px !important; margin:0 0 16px; border:1px solid var(--line); border-radius:8px; }
 body#whatnext-app .neet-star-btns { gap:4px !important; }
}
