/* ONR Panel mobile action safety — 2026-09-24 */
@media (max-width:760px){
.panel-user-modal-backdrop{box-sizing:border-box;align-items:end;padding:0;overflow:hidden}
.panel-user-modal{box-sizing:border-box;width:100%;max-width:none;max-height:100vh;max-height:100dvh;margin:0;padding:20px 18px 0;border-radius:20px 20px 0 0;overflow-x:hidden;overflow-y:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;scroll-padding-bottom:calc(104px + env(safe-area-inset-bottom))}
.panel-user-modal-actions{position:sticky;z-index:30;bottom:0;display:flex;flex-wrap:wrap;gap:10px;margin:24px -18px 0;padding:12px 18px max(14px,env(safe-area-inset-bottom));border-top:1px solid #ded9cf;background:rgba(250,249,246,.98);box-shadow:0 -10px 26px rgba(39,37,33,.11);backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px)}
.panel-user-modal-actions>button,.panel-user-modal-actions>a{flex:1 1 140px;min-height:50px;touch-action:manipulation}
.operation-drawer{box-sizing:border-box;height:100vh;height:100dvh;padding-bottom:max(22px,env(safe-area-inset-bottom));overscroll-behavior:contain;scroll-padding-bottom:calc(90px + env(safe-area-inset-bottom))}
.operation-drawer-actions,.my-task-detail-actions,.note-editor>footer{position:sticky;z-index:20;bottom:0;padding-bottom:max(12px,env(safe-area-inset-bottom));background:rgba(250,249,246,.98);box-shadow:0 -8px 22px rgba(39,37,33,.08)}
.my-task-modal{align-items:end;padding:0;overflow:hidden}.my-task-modal>section{box-sizing:border-box;width:100%;max-height:100vh;max-height:100dvh;margin:0;border-radius:20px 20px 0 0;overscroll-behavior:contain;scroll-padding-bottom:calc(96px + env(safe-area-inset-bottom))}
.pm-modal-backdrop{box-sizing:border-box;padding:0;overflow:hidden}.pm-modal{max-height:100vh;max-height:100dvh;overscroll-behavior:contain;scroll-padding-bottom:calc(96px + env(safe-area-inset-bottom))}
.pm-form footer,.pm-wizard-footer,.pm-module-settings>footer{position:sticky;z-index:25;bottom:0;padding-bottom:max(14px,env(safe-area-inset-bottom));background:#fff;box-shadow:0 -8px 22px rgba(39,37,33,.08)}
}
@media(max-width:420px){.panel-user-modal-actions>button,.panel-user-modal-actions>a,.operation-drawer-actions>button,.my-task-detail-actions>button{flex-basis:100%;width:100%}}
@media(prefers-reduced-motion:reduce){.panel-user-modal,.operation-drawer,.my-task-modal>section,.pm-modal{scroll-behavior:auto!important}}