/* TenantPeach mobile polish V2 — owner, tenant, manager, support */
@media(max-width:970px){
 html{scroll-padding-top:78px;max-width:100%}
 body{max-width:100%;overflow-x:clip}
 #tpMobileNative>summary{min-height:48px;min-width:48px;touch-action:manipulation}
 #tpMobileNative[open]>.tp-native-panel{padding-bottom:calc(24px + env(safe-area-inset-bottom,0px))!important;overscroll-behavior:contain}
 #tpMobileNative .tp-native-panel a,#tpMobileNative .tp-native-panel summary{min-height:48px!important;line-height:1.35!important;border-radius:10px}
 #tpMobileNative :focus-visible,.p6-app :focus-visible,.orchard-shell.or-v2 :focus-visible,.tps-root :focus-visible{outline:3px solid #be7853!important;outline-offset:3px!important}
 .p6-app,.orchard-shell.or-v2,.tps-root{min-width:0;max-width:100%}
 .p6-app .p6-content,.orchard-shell.or-v2 .or-body,.tps-root .tps-main{min-width:0;max-width:100%}
 .p6-app input:not([type=checkbox]):not([type=radio]),.p6-app select,.p6-app textarea,
 .orchard-shell.or-v2 input:not([type=checkbox]):not([type=radio]),.orchard-shell.or-v2 select,.orchard-shell.or-v2 textarea,
 .tps-root input:not([type=checkbox]):not([type=radio]),.tps-root select,.tps-root textarea{font-size:16px!important;max-width:100%;min-width:0;box-sizing:border-box}
 .p6-app button,.p6-app .p6-btn,.orchard-shell.or-v2 button,.orchard-shell.or-v2 .or-btn,.tps-root button{min-height:44px;touch-action:manipulation}
 .tp-ledger-scroll,.or-utility-scroll,.or-table-scroll,.tps-table-wrap,.tp-util-table-scroll{overflow-x:auto;max-width:100%;overscroll-behavior-x:contain;-webkit-overflow-scrolling:touch}
}
@media(max-width:780px){
 .p6-app .p6-menu-toggle{min-width:46px!important;min-height:46px!important;border-radius:12px}
 .p6-app .p6-sidebar{height:100dvh!important;overflow-y:auto!important}
 .p6-app .p6-content{padding:20px 16px calc(44px + env(safe-area-inset-bottom,0px))}
 .orchard-shell.or-v2 .or-mobile-menu{min-width:46px;min-height:46px}
 .orchard-shell.or-v2 .or-side{height:100dvh!important;overflow-y:auto!important}
 .orchard-shell.or-v2 .or-body{padding:20px 16px calc(38px + env(safe-area-inset-bottom,0px))}
 .tps-root .tps-top{padding:12px 16px;min-height:68px}
 .tps-root .tps-page{padding:15px 13px 35px}
 .tps-root .tps-side{max-width:100%;scroll-snap-type:x proximity}
 .tps-root .tps-nav-item{min-height:44px!important;scroll-snap-align:start}
}
@media(max-width:580px){
 .p6-app .p6-payment-hero{padding:18px 16px!important;gap:16px}
 .p6-app .tp-rent-review{padding:15px!important;border-radius:15px}
 .p6-app .tp-rent-summary-head{flex-wrap:wrap}
 .p6-app .tp-rent-summary-head strong{font-size:clamp(19px,5.6vw,25px);overflow-wrap:anywhere}
 .p6-app .tp-rent-button,.p6-app .tps-add{min-height:48px!important;width:100%;font-size:14px!important}
 .p6-app .p6-content{padding:17px 13px calc(42px + env(safe-area-inset-bottom,0px))}
 .orchard-shell.or-v2 .or-body{padding:18px 13px calc(38px + env(safe-area-inset-bottom,0px))}
 .orchard-shell.or-v2 .or-panel{padding:16px}
 .tps-root .tps-stats{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
 .tps-root .tps-stat{padding:12px 10px;min-width:0}
 .tps-root .tps-stat strong{font-size:clamp(20px,6vw,27px);overflow-wrap:anywhere}
 .tps-root .tps-panel-head,.tps-root .tps-form{padding:15px}
 #tp-support-start{width:calc(100% - 28px);max-width:550px;box-sizing:border-box;margin:28px auto!important;padding:22px 18px!important}
 #tp-support-start textarea{font-size:16px}
 #tp-support-start button{min-height:48px;width:100%}
}
@media(max-width:390px){
 .p6-app .p6-content,.orchard-shell.or-v2 .or-body,.tps-root .tps-page{padding-left:10px;padding-right:10px}
 .p6-app .p6-action-grid,.orchard-shell.or-v2 .or-kpi-grid{gap:7px}
}
@media(prefers-reduced-motion:reduce){#tpMobileNative *,.p6-app *,.orchard-shell.or-v2 *,.tps-root *{scroll-behavior:auto!important;animation-duration:.01ms!important;transition-duration:.01ms!important}}
@media(forced-colors:active){#tpMobileNative :focus-visible,.p6-app :focus-visible,.orchard-shell.or-v2 :focus-visible,.tps-root :focus-visible{outline:2px solid Highlight!important}}
