/* ABIPH 4.21: mobile layout, centered actions and comfortable touch targets. */
@media (max-width:760px){
 body.abiph-platform .abiph-page-shell,body.abiph-platform .ahp{width:100%!important;max-width:100%!important;min-width:0;margin-inline:auto;box-sizing:border-box}
 body.abiph-platform .abiph-page-shell{padding:12px!important}
 body.abiph-platform .ahp{padding:0!important;overflow-wrap:anywhere}
 body.abiph-platform .ahp *, .abiph-audio-player *{box-sizing:border-box}
 body.abiph-platform .ahp :is(main,aside,section,article,form,fieldset,div){min-width:0}
 body.abiph-platform .ahp :is(h1,h2,h3,p,legend){max-width:100%;overflow-wrap:anywhere}
 body.abiph-platform .ahp h1{font-size:clamp(27px,7vw,36px)!important;line-height:1.18!important}
 body.abiph-platform .ahp h2{font-size:clamp(22px,5.5vw,29px)!important;line-height:1.25!important}
 body.abiph-platform .ahp h3{font-size:20px;line-height:1.35}
 body.abiph-platform .ahp :is(.ahp-card,.ahp-auth,.ahp-book-chapter,.abiph-task-card,.ahp-student-file,.ahp-task-review){padding:18px!important;border-radius:16px}
 body.abiph-platform .ahp :is(.ahp-home-hero,.ahp-road-head,.ahp-book-cover,.ahp-cta){padding:24px 18px!important;min-height:0!important;gap:18px!important}
 body.abiph-platform .ahp :is(.ahp-home-hero,.ahp-how,.ahp-book-columns,.ahp-teacher-grid,.ahp-pro-campus,.ahp-phrases,.abiph-linked-grid,.abiph-drill-grid,.abiph-task-form-grid){display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:16px!important}
 body.abiph-platform .ahp :is(.ahp-user,.ahp-road-head,.ahp-book-cover,.ahp-pro-top,.ahp-pro-welcome,.ahp-teacher-head,.ahp-student-file,.abiph-task-head,.ahp-cta){flex-direction:column!important;align-items:stretch!important;gap:16px!important}
 body.abiph-platform .ahp :is(.ahp-actions,.abiph-task-actions,.ahp-audio,.abiph-audio-buttons,.abiph-exercise-audio,.ahp-teacher-buttons,.ahp-student-controls,.ahp-video-controls){display:flex!important;flex-wrap:wrap!important;justify-content:center!important;align-items:center!important;gap:10px!important;width:100%}
 body.abiph-platform .ahp :is(button,.ahp-btn,input[type=submit]){min-height:48px;max-width:100%;white-space:normal!important;text-align:center!important;line-height:1.35;font-size:16px;touch-action:manipulation}
 body.abiph-platform .ahp :is(.ahp-btn,form>button,.ahp-actions>a,.abiph-task-actions>button,.ahp-teacher-buttons>a,.ahp-audio>button,.abiph-audio-buttons>button,.abiph-exercise-audio>button){display:flex!important;align-items:center!important;justify-content:center!important;width:100%!important;margin-inline:auto!important;padding:13px 16px!important;flex:1 1 100%}
 body.abiph-platform .ahp :is(.ahp-logout,.ahp-auth,.ahp-summary article,.ahp-profile-stats>div,.abiph-task-kpis>div){text-align:center}
 body.abiph-platform .ahp :is(input:not([type=checkbox]):not([type=radio]):not([type=hidden]),select,textarea){font-size:16px!important;width:100%;max-width:100%;min-width:0;min-height:48px}
 body.abiph-platform .ahp textarea{min-height:150px;resize:vertical}
 body.abiph-platform .ahp :is(input[type=checkbox],input[type=radio]){width:20px;height:20px;flex:0 0 20px}
 body.abiph-platform .ahp .abiph-word-bank{justify-content:center}
 body.abiph-platform .ahp .abiph-word-bank button{flex:0 1 auto;width:auto;min-width:48px;padding:10px 14px}
 body.abiph-platform .ahp :is(.ahp-summary,.ahp-profile-stats,.ahp-teacher-kpis,.abiph-task-kpis,.ahp-unit-strip){display:grid;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px!important}
 body.abiph-platform .ahp :is(.ahp-levels,.ahp-book-levels,.ahp-pro-side){grid-template-columns:minmax(0,1fr)!important}
 body.abiph-platform .ahp .ahp-pro-path>article{display:flex!important;flex-wrap:wrap;gap:12px!important;align-items:center;padding:16px!important}
 body.abiph-platform .ahp .ahp-pro-path>article>div:nth-child(2){flex:1 1 160px}
 body.abiph-platform .ahp .ahp-pro-path>article>form,body.abiph-platform .ahp .ahp-pro-path>article>.ahp-btn{flex:1 1 100%;width:100%}
 body.abiph-platform .ahp :is(table){display:block;width:100%;max-width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch;font-size:14px}
 body.abiph-platform .ahp :is(img,video,iframe,embed,object){max-width:100%}
 body.abiph-platform .ahp img{height:auto}
 body.abiph-platform .ahp iframe{width:100%}
 body.abiph-platform .ahp .ahp-home-hero .abiph-appointment{display:flex;justify-content:center;width:100%;text-align:center}
 .abiph-audio-player{width:calc(100% - 20px)!important;max-height:68vh;max-height:68dvh;padding:14px!important;bottom:calc(10px + env(safe-area-inset-bottom))!important;scroll-padding-bottom:12px}
 .abiph-audio-player .abiph-audio-head{gap:10px}
 .abiph-audio-player button{min-height:48px;min-width:48px;white-space:normal;text-align:center;font-size:16px}
 .abiph-audio-controls{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px!important}
 .abiph-audio-controls label,.abiph-audio-controls .abiph-default-voice{grid-column:1/-1;justify-content:center;text-align:center}
 .abiph-audio-controls label{flex-wrap:wrap;font-size:16px}
 .abiph-audio-controls select{font-size:16px;width:100%;max-width:100%!important;min-height:48px}
 .abiph-letter-track{overflow-wrap:anywhere;max-height:18dvh;font-size:23px}
}
@media(max-width:360px){
 body.abiph-platform .abiph-page-shell{padding:8px!important}
 body.abiph-platform .ahp :is(.ahp-card,.ahp-auth,.abiph-task-card){padding:14px!important}
 body.abiph-platform .ahp :is(.ahp-summary,.ahp-profile-stats,.ahp-teacher-kpis,.abiph-task-kpis){grid-template-columns:minmax(0,1fr)!important}
}
@media(max-width:760px){
 body.abiph-platform .ahp :is(button,a,input,select,textarea):focus-visible,.abiph-audio-player :is(button,select):focus-visible{outline:3px solid #4f95e8;outline-offset:3px}
 body.abiph-platform .ahp :is(.ahp-teacher-grid>aside,.ahp-pro-side){position:static!important;max-height:none!important}
}
