/* TwisTzi V13.4.28 — original mobile social + messenger visual refinement.
   Layout-only: no changes to messaging, call signaling, camera or data. */
@media (max-width:700px){
 /* Large immersive, swipe-friendly vertical cards while preserving homepage sections. */
 body:has(.tz-home65) .tz-home65-feed{display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:16px!important;max-width:520px!important;margin-inline:auto!important;scroll-snap-type:y proximity;}
 body:has(.tz-home65) .tz-home65-feed .tz-real-twist{width:100%!important;min-width:0!important;scroll-snap-align:start;overflow:hidden;border-radius:18px!important;background:#080f1d!important;box-shadow:0 8px 26px rgba(10,44,79,.18)!important;}
 body:has(.tz-home65) .tz-home65-feed .tz-real-twist.tz-video{aspect-ratio:9/15!important;height:auto!important;max-height:min(82svh,800px)!important;min-height:0!important;}
 body:has(.tz-home65) .tz-home65-feed .tz-real-media{height:100%!important;width:100%!important;}
 body:has(.tz-home65) .tz-home65-feed .tz-real-media>video,body:has(.tz-home65) .tz-home65-feed .tz-real-media>img{width:100%!important;height:100%!important;object-fit:cover!important;}
 body:has(.tz-home65) .tz-home65-feed .tz-caption{left:14px!important;right:74px!important;bottom:24px!important;max-width:calc(100% - 88px)!important;text-shadow:0 2px 8px rgba(0,0,0,.8)!important;}
 body:has(.tz-home65) .tz-home65-feed .tz-actions{right:10px!important;bottom:24px!important;gap:11px!important;z-index:3!important;}
 body:has(.tz-home65) .tz-home65-feed .tz-bubble{width:44px!important;height:44px!important;border-radius:50%!important;}
 body:has(.tz-home65) .tz-home65-feed .tz-actions .tz-action{min-width:48px!important;}
 /* Clear chat bubbles and compact Messenger-inspired compose controls. */
 body:has(.tz-dm) .tz-dm{border-radius:18px!important;overflow:hidden!important;border:1px solid #d7e9f4!important;}
 body:has(.tz-dm) .tz-dm-thread-head{background:#fff!important;min-height:60px!important;box-shadow:0 2px 8px rgba(13,77,126,.05)!important;}
 body:has(.tz-dm) .tz-dm-messages{background:#fff!important;padding:16px 12px!important;gap:10px!important;}
 body:has(.tz-dm) .tz-dm-bubble{max-width:84%!important;}
 body:has(.tz-dm) .tz-dm-bubble span{border-radius:19px!important;padding:11px 14px!important;line-height:1.4!important;}
 body:has(.tz-dm) .tz-dm-bubble.mine span{background:#147df5!important;color:white!important;border-bottom-right-radius:6px!important;}
 body:has(.tz-dm) .tz-dm-bubble.theirs span{background:#edf1f5!important;color:#14283c!important;border:0!important;border-bottom-left-radius:6px!important;}
 body:has(.tz-dm) .tz-dm-compose{background:white!important;padding:10px 8px max(10px,env(safe-area-inset-bottom))!important;gap:6px!important;}
 body:has(.tz-dm) .tz-dm-compose textarea{border-radius:24px!important;background:#f1f4f7!important;border:1px solid #e1e8ee!important;font-size:16px!important;}
 body:has(.tz-dm) .tz-dm-compose>button[type=submit]{border-radius:24px!important;background:#147df5!important;min-width:64px!important;padding:0 12px!important;}
 body:has(.tz-dm) .tz-visual-open,body:has(.tz-dm) .tz-visual-camera{min-width:36px!important;min-height:40px!important;}
}
@media (prefers-reduced-motion:reduce){body:has(.tz-home65) .tz-home65-feed{scroll-behavior:auto!important}}
