/* PHTV mobile layout repair — October 2026. */
@media(max-width:700px){
 html{--phtv-mobile-header:82px;--phtv-mobile-offset:82px;scroll-padding-top:calc(var(--phtv-mobile-offset) + 12px)}
 html body nav.nav.phtv-unified-header{height:var(--phtv-mobile-header)!important;min-height:var(--phtv-mobile-header)!important;padding:5px 12px!important;gap:8px!important;overflow:visible!important}
 html body nav.nav.phtv-unified-header .brand{flex:1 1 auto!important;flex-direction:column!important;align-items:flex-start!important;justify-content:center!important;gap:2px!important;min-width:0!important}
 html body nav.nav.phtv-unified-header .phtv-unified-logo{width:138px!important;min-width:138px!important;max-width:138px!important;height:48px!important;flex:0 0 48px!important}
 html body nav.nav.phtv-unified-header .brand-sep{display:none!important}
 html body nav.nav.phtv-unified-header .page-title,html body nav.nav.phtv-unified-header .page-title-wrap{display:block!important;visibility:visible!important;opacity:1!important;max-width:100%!important;height:auto!important;line-height:1.2!important;font-size:12px!important;letter-spacing:.1px!important;white-space:normal!important;overflow:visible!important;flex:none!important;margin:0!important}
 html body nav.nav.phtv-unified-header .page-title-wrap .page-title{font-size:inherit!important}
 html body nav.nav.phtv-unified-header .nav-right{flex:0 0 auto!important;gap:7px!important;align-self:center!important}
 html body .subnav{display:flex!important;visibility:visible!important;opacity:1!important;position:fixed!important;top:var(--phtv-mobile-header)!important;left:0!important;right:0!important;z-index:199!important;width:auto!important;max-width:100vw!important;flex-wrap:nowrap!important;overflow-x:auto!important;overflow-y:hidden!important;min-height:36px!important;padding:0 10px!important;transform:none!important;touch-action:pan-x!important}
 html body .subnav a{display:inline-flex!important;align-items:center!important;flex:0 0 auto!important;white-space:nowrap!important;padding:9px 11px!important;line-height:18px!important;font-size:11.5px!important}
 html body [data-phtv-mobile-content]{padding-top:var(--phtv-mobile-offset)!important}
 html body [id]{scroll-margin-top:calc(var(--phtv-mobile-offset) + 12px)}
}
/* Remove the decorative action lock, not the authorization check. */
html body .phtv-locked-action::before{display:none!important;content:none!important}
/* Touch has no hover. Show the badge only on deliberate card selection. */
@media(hover:none),(pointer:coarse){
 html body .phtv-rule-card .phtv-rule-overlay,
 html body .jewel-card .jewel-payload-center,
 html body .phtv-card .phtv-payload-center,
 html body .phtv-card .phtv-payload-badge-ov,
 html body .np-card .np-play-ov{opacity:0!important;visibility:hidden!important;pointer-events:none!important}
 html body .phtv-touch-selected .phtv-rule-overlay,
 html body .phtv-touch-selected .jewel-payload-center,
 html body .phtv-touch-selected .phtv-payload-center,
 html body .phtv-touch-selected .phtv-payload-badge-ov,
 html body .np-card.phtv-touch-selected .np-play-ov,
 html body .phtv-card.is-expanded .phtv-payload-center{opacity:1!important;visibility:visible!important;pointer-events:auto!important}
}
[data-phtv-loop]{overscroll-behavior-x:contain}
[data-phtv-loop="transform"]{touch-action:pan-y!important;will-change:transform}
[data-phtv-loop="scroll"]{scroll-behavior:auto!important;scroll-snap-type:none!important;overflow-anchor:none!important}
