/* Mobile-only corrections; desktop composition and source plans are unchanged. */
@media(max-width:1024px){
 html body.main-menu-open #header.cover-header .brand .brand-logo-white{display:none!important;opacity:0!important}
 html body.main-menu-open #header.cover-header .brand .brand-logo-colour{display:block!important;opacity:1!important}
 html body #header #nav.open{max-height:calc(100dvh - 120px);overflow-y:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch}
 html body #header .menu{min-width:44px;min-height:44px}
}
@media(max-width:760px){
 /* Avoid the automatic field zoom on iPhone while retaining native keyboards. */
 html body :is(input,select,textarea){font-size:16px!important}
 html body #plans .p115-plan-actions{max-width:calc(100% - 24px);gap:6px}
 html body #plans .p115-plan-actions button{min-width:44px;min-height:44px;box-sizing:border-box}
 html body .p115-viewer-bar{flex-wrap:wrap;gap:8px;padding-inline:max(12px,env(safe-area-inset-left));padding-top:max(12px,env(safe-area-inset-top))}
 html body .p115-viewer-bar>div{flex-shrink:0;gap:6px}
 html body .p115-viewer-bar p{flex:1;min-width:75px;overflow-wrap:anywhere}
 html body .p115-viewer-bar button{width:44px;height:44px;min-width:44px;min-height:44px}
 html body .p115-viewer-bottom{flex-wrap:wrap;gap:8px;padding-bottom:max(12px,env(safe-area-inset-bottom))}
 html body .p115-viewer-bottom :is(button,a){min-height:44px;display:inline-flex;align-items:center;justify-content:center}
 html body .p115-viewer-bottom a{padding-inline:10px}
 html body .portfolio-dialog :is(.portfolio-close,.viewer107-controls button){min-width:44px;min-height:44px}
}
