/* Long dialogs must fit the visual viewport, including the mobile keyboard. */
.qq-mobile-overlay{max-height:var(--qq-viewport-height,100dvh)!important;overflow-y:auto!important;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;padding-top:max(12px,env(safe-area-inset-top))!important;padding-bottom:max(12px,env(safe-area-inset-bottom))!important}
.qq-mobile-panel{max-height:calc(var(--qq-viewport-height,100dvh) - 32px)!important;max-width:calc(100vw - 24px)!important;min-height:0!important;overflow-y:auto!important;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;flex-shrink:1!important}
.qq-mobile-panel form,.qq-mobile-panel .flex-1{min-height:0}.qq-mobile-panel .overflow-y-auto{min-height:0;overscroll-behavior:contain}.qq-mobile-panel input,.qq-mobile-panel textarea,.qq-mobile-panel select{max-width:100%}
@media(max-width:767px){.qq-mobile-panel input,.qq-mobile-panel textarea,.qq-mobile-panel select{font-size:16px!important}.qq-mobile-overlay{padding-left:12px!important;padding-right:12px!important}.qq-mobile-panel{overflow-wrap:anywhere}.qq-mobile-panel .grid-cols-2,.qq-mobile-panel .grid-cols-3{grid-template-columns:minmax(0,1fr)!important}}

/* 弹窗遮挡修复 2026-11-11 */
/* 底部导航 .btm-tab 与弹窗遮罩同为 z-50，同级按 DOM 顺序绘制会把弹窗压在下面 */
[class*="fixed inset-0 z-50"]{z-index:60!important}
/* 弹窗高度上限原本用 max-h-[calc(100dvh-1.5rem)]，Chrome<108 不认 dvh，整条失效 */
[class*="max-h-[calc(100dvh"]{max-height:calc(100vh - 130px)!important}
/* 面板底部留白，最后一个按钮能滚到导航条上方 */
[class*="fixed inset-0 z-50"] [class*="max-w-lg"]{padding-bottom:calc(1rem + env(safe-area-inset-bottom))!important}

/* 确认弹窗层级修复 2026-11-14 */
/* ConfirmModal 用的是自己的 .confirm-modal-overlay（z-index:50），
   不带 Tailwind 的 fixed inset-0 z-50，所以被抬到 60 的弹层压住 */
.confirm-modal-overlay{z-index:1040!important}
