/* Shared mobile refinements. Desktop layout and type remain governed by existing styles. */
@media(max-width:700px){
 html{scroll-padding-top:16px}
 :where(input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=hidden]):not([type=color]),select,textarea){font-size:16px}
 :where(form button,form input[type=submit],dialog button,.menu-toggle,.nav-toggle){min-height:44px}
 :where(form :is(button,input,select,textarea),dialog :is(button,input,select,textarea)){scroll-margin-block:24px}
 .hero-copy>.actions{display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:12px!important;align-items:stretch!important;width:min(100%,360px)!important;margin-inline:auto!important}
 .hero-copy>.actions>.btn{box-sizing:border-box;display:flex!important;align-items:center;justify-content:center;width:100%!important;min-width:0!important;max-width:none!important;min-height:50px!important;margin:0!important;padding:12px 18px!important;font-size:16px!important;line-height:1.5;white-space:normal;text-align:center}
 .hero-copy>.actions>.btn svg{flex:none}
 /* One centered action shape throughout public mobile content. */
 body:not(.admin-layout) main :is(a.btn,button.btn,.experiences-entry>a,.course-book-access>strong,.tg-subscribe,.contact-cv-link){box-sizing:border-box;display:flex!important;align-items:center;justify-content:center;gap:8px;border-radius:14px!important;min-height:48px!important;padding:12px 18px!important;font-size:16px!important;line-height:1.6;text-align:center;white-space:normal!important}
 body:not(.admin-layout) main :is(a.btn,button.btn,.experiences-entry>a,.tg-subscribe,.contact-cv-link){width:min(100%,320px)!important;max-width:100%;margin-inline:auto!important;align-self:center!important;justify-self:center!important}
 body:not(.admin-layout) main .hero-copy>.actions>.btn{width:100%!important;min-height:50px!important}
 body:not(.admin-layout) main :is(.actions,.more-courses-entry){justify-content:center!important;align-items:center!important}
 body:not(.admin-layout) main .actions{flex-wrap:wrap}
 body:not(.admin-layout) main .actions>.btn{flex:0 1 320px!important}
 body:not(.admin-layout) main .contact .actions{display:flex!important;flex-direction:column!important;width:100%;gap:12px}
 body:not(.admin-layout) main .contact .actions>.btn{flex:0 1 auto!important}
 body:not(.admin-layout) main .contact-message-form .actions{display:flex!important;flex-direction:column!important;width:100%;gap:12px;align-items:center!important}
 body:not(.admin-layout) main .contact-message-form .actions>.btn{flex:0 1 auto!important}
 body:not(.admin-layout) main .experiences-entry>a{grid-column:1/-1!important;justify-self:center!important}
 body:not(.admin-layout) main #courses .featured-course-body .course-book-access{display:flex!important;flex-wrap:wrap;justify-content:center;align-items:center;text-align:center;gap:12px;padding-top:16px}
 body:not(.admin-layout) main #courses .featured-course-body .course-book-access>strong{flex-basis:100%;width:min(100%,320px);max-width:320px;margin:0 auto!important;font-weight:700}
 main :is(.guide-layout,.guide-grid){grid-template-columns:minmax(0,1fr)!important;min-width:0;max-width:100%}
 main :is(.guide-content,.guide-index,.guide-section){min-width:0;max-width:100%;box-sizing:border-box;overflow-wrap:anywhere}
 main .guide-section{overflow-x:auto}.guide-section pre{max-width:100%;overflow:auto;white-space:pre-wrap}
 main .guide-content table :is(th,td){white-space:normal;overflow-wrap:anywhere}
 main .guide-index :is(h2,a){width:auto;min-width:0;max-width:100%;white-space:normal;overflow-wrap:anywhere}
 main .guide-index h2{font-size:20px}main .guide-index a{display:flex;align-items:center;min-height:44px;font-size:15px;line-height:1.8}
 main :is(button,a.btn){min-height:44px!important}
 .els-page{font-size:16px;line-height:1.9;box-sizing:border-box}
 .els-page .els-hero h1{font-size:20px}.els-hero>div{min-width:0}.els-page .els-hero p{font-size:13px}
 .els-page :is(.els-course-card,.els-resource-copy,.els-task-card){overflow-wrap:anywhere}
 .els-page :is(.els-course-card h2,.els-resource-copy h2){font-size:16px;line-height:1.8}
 .els-page :is(.els-result,.els-points,.els-list-snippet){font-size:14px}
 .els-page .els-activity-detail .els-muted{font-size:14px;line-height:1.9}
 .els-page :is(.els-hero,.els-student-identity){gap:10px}
 .els-page .els-student-identity{font-size:14px;flex-wrap:wrap}.els-student-identity strong{overflow-wrap:anywhere}
 .els-page .els-tabs{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
 .els-page .els-tabs>.els-button{width:auto;min-width:0;min-height:46px;font-size:15px;padding:10px 8px}
 .els-page :is(.els-button,.learning-upload-pick){min-height:46px;font-size:15px}
 .els-page :is(.els-icon-button,.learning-upload-file>button),.learning-link-head button{width:44px!important;height:44px!important;min-width:44px!important;max-width:44px!important;min-height:44px!important;padding:11px!important}
 .els-page .els-icon-button svg{width:19px;height:19px}.learning-link-head button{border-radius:50%}
 .els-page :is(.els-check,.els-quiz .els-check){min-height:48px;align-items:center;font-size:15px;line-height:1.8}
 .els-page .els-check input{width:22px;height:22px}.els-quiz fieldset{min-width:0}
 .els-page :is(.els-field input,.els-field textarea){font-size:16px;min-height:48px}
 .els-page :is(.learning-upload-message,.learning-upload-limits,.learning-link-hint,.learning-link-status){font-size:14px!important;line-height:1.9}
 .els-page .learning-upload-file strong{font-size:15px}.els-page .learning-upload-file small{font-size:13px}
 .els-page .els-instructions-disclosure summary{min-height:48px;font-size:15px;display:flex;align-items:center}
 .els-page .els-grades-wrap{overflow:visible}.els-page .els-grades-table{display:block;width:100%;min-width:0;border:0;background:none}
 .els-page .els-grades-table thead{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
 .els-page .els-grades-table tbody{display:grid;gap:12px}
 .els-page .els-grades-table tbody tr{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));border:1px solid #dce6ef;border-radius:12px;background:var(--du-surface,#fff);overflow:hidden}
 .els-page .els-grades-table td{display:block;min-width:0;text-align:center;padding:12px 7px;border:0;font-size:15px;overflow-wrap:anywhere}
 .els-page .els-grades-table td:first-child{grid-column:1/-1;text-align:start;border-bottom:1px solid #e0e8ef;padding:10px 13px}
 .els-page .els-grades-table td:not(:first-child)::before{content:attr(data-label);display:block;color:#6f8798;font-size:12px;margin-bottom:6px;line-height:1.7}
 .els-page .els-grades-table td:first-child button{display:flex;justify-content:flex-start;text-align:start;min-height:44px;padding:0;border:0;background:none;color:inherit;font-size:15px;font-weight:600;white-space:normal;line-height:1.9}
 .els-page .els-grades-table tr>td:last-child{font-weight:700;color:#256c7e}
 .el-page .el-activity-tools .el-icon-action,.el-page .el-roster-actions .el-icon-action,.el-grading-page .el-grading-actions button{width:44px!important;height:44px!important;min-width:44px!important;min-height:44px!important}
 .el-page .el-activity-tools{max-width:100%;gap:8px!important}.el-page .el-activity-tools .el-submission-count{min-height:44px}
 .el-page .el-grading-scroll :is(input[type=number],textarea){font-size:16px;min-height:44px!important}
 .legacy-platform-page{padding-inline:12px!important}.legacy-platform-page .legacy-seminar-heading{padding:18px 16px;gap:12px}
 .legacy-platform-page .legacy-service-tag{display:none}.legacy-platform-page .legacy-seminar-heading h1{font-size:23px}
 .legacy-platform-page .legacy-units{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important}
 .legacy-platform-page .legacy-unit{padding:13px 10px;min-width:0;gap:7px}.legacy-platform-page .legacy-unit strong{font-size:14px;line-height:1.8;overflow-wrap:anywhere}.legacy-platform-page .legacy-unit>svg{width:19px;flex:none}
 .legacy-platform-page .legacy-steps{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:8px;padding:14px 8px}
 .legacy-platform-page .legacy-steps>li{display:flex!important;flex-direction:column;align-items:center!important;text-align:center;gap:7px!important;min-width:0}
 .legacy-platform-page .legacy-steps>li::after,.legacy-platform-page .legacy-steps>li::before{display:none!important}
 .legacy-platform-page .legacy-step-number{width:30px;height:30px;min-width:30px;font-size:14px}
 .legacy-platform-page .legacy-steps>li strong{font-size:12px;line-height:1.7;display:block}.legacy-platform-page .legacy-steps>li small{display:none}
 .legacy-platform-page .legacy-search-content{padding:20px 15px}.legacy-platform-page .legacy-search-content p{font-size:15px;line-height:1.9}
 .legacy-platform-page .legacy-number-field input{font-size:16px;min-height:48px}.legacy-platform-page .legacy-button{min-height:46px;font-size:14px}
 body.admin-layout #profile-dialog .profile-modal-actions{position:sticky;bottom:-20px;z-index:4;background:var(--du-surface,#fff);padding-block:12px!important;margin-top:14px}
 body.admin-layout #profile-dialog .profile-modal-actions button{min-height:46px;font-size:15px}
 body.admin-layout #profile-dialog :is(input,select){font-size:16px!important;min-height:46px!important}
 body.admin-layout #profile-dialog .profile-photo-copy p{font-size:14px;line-height:1.8}.profile-photo-copy small{font-size:12px}
 body.admin-layout :is(.account-photo-dialog .account-photo-zoom button,.account-photo-dialog [data-photo-fit],.account-photo-menu button){min-height:44px!important}
 body.admin-layout .account-photo-dialog .account-photo-zoom button{min-width:44px!important}
 body.admin-layout .account-photo-dialog input[type=range]{height:32px;min-height:32px;touch-action:pan-x}
 body.admin-layout .account-photo-dialog :is(footer button,.account-photo-close){min-height:44px!important;font-size:15px}
 body.admin-layout .account-photo-dialog :is(.account-photo-instruction,.account-photo-feedback){font-size:15px;line-height:1.8}
}
@media(hover:none) and (pointer:coarse) and (max-height:500px){
 body.admin-layout .account-photo-dialog :is(button,[data-photo-fit]){min-height:44px!important}
 body.admin-layout .account-photo-dialog .account-photo-zoom button{min-width:44px!important}
}
@media(max-width:430px){
 body.admin-layout #profile-dialog .profile-fields{grid-template-columns:minmax(0,1fr)!important;gap:19px}
 body.admin-layout #profile-dialog .profile-fields>label{grid-column:1/-1!important;min-width:0}
 body.admin-layout #profile-dialog .modal-title{position:sticky;top:-22px;z-index:5;padding-top:16px;background:var(--du-surface,#fff)}
 body.admin-layout #profile-dialog .profile-photo-independent{gap:10px;padding:12px}
 .els-page .els-submission>.els-button{width:100%;justify-content:center}
}
