/* Compact Instagram-like repost card — ONLY story rows with shared_post_id.
   Original photo/video stories remain immersive full screen. */
#story-overlay.pati-story-has-source .story-player{
 background:radial-gradient(ellipse at 25% 17%,#3d404a 0%,#24272f 46%,#111217 100%)!important;
}
#story-overlay.pati-story-has-source .pati-story-share-stage{
 position:absolute!important;inset:78px 10px 116px!important;
 z-index:9!important;
 display:flex!important;align-items:center!important;justify-content:center!important;
 box-sizing:border-box!important;
 pointer-events:none!important;
}
#story-overlay.pati-story-has-source .pati-story-share-card{
 position:relative!important;display:flex!important;flex-direction:column!important;
 flex:0 1 auto!important;
 box-sizing:border-box!important;
 width:min(76vw,310px)!important;max-width:100%!important;
 min-width:0!important;max-height:100%!important;
 gap:8px!important;padding:11px!important;
 border:1px solid #e5e5e8!important;border-radius:19px!important;
 background:#fff!important;color:#191a1e!important;
 box-shadow:0 22px 56px #0007,0 3px 8px #0002!important;
 overflow:hidden!important;pointer-events:auto!important;
}
#story-overlay.pati-story-has-source .pati-story-share-card-heading{
 display:flex!important;flex:0 0 auto!important;align-items:center!important;
 gap:7px!important;min-height:29px!important;min-width:0!important;
 width:100%!important;color:#202126!important;
 text-shadow:none!important;
}
#story-overlay.pati-story-has-source .pati-story-share-card-dot{
 display:grid!important;place-items:center!important;
 width:23px!important;height:23px!important;min-width:23px!important;
 border-radius:50%!important;background:#17191d!important;
 color:#fff!important;font-size:9px!important;
}
#story-overlay.pati-story-has-source .pati-story-share-card-heading strong{
 flex:1 1 auto!important;min-width:0!important;overflow:hidden!important;
 white-space:nowrap!important;text-overflow:ellipsis!important;
 font-size:13px!important;font-weight:850!important;line-height:1.3!important;
}
#story-overlay.pati-story-has-source .pati-story-share-card-heading small{
 flex:0 0 auto!important;color:#73747a!important;font-size:11px!important;
}
#story-overlay.pati-story-has-source .pati-story-share-media{
 display:block!important;position:relative!important;
 flex:0 1 auto!important;width:100%!important;
 height:min(36dvh,306px)!important;max-height:min(36dvh,306px)!important;
 min-height:120px!important;min-width:0!important;
 box-sizing:border-box!important;
 padding:0!important;margin:0!important;border:0!important;
 border-radius:12px!important;overflow:hidden!important;
 background:#ecedf1!important;color:#25262a!important;
 cursor:pointer!important;
}
#story-overlay.pati-story-has-source .pati-story-share-media>.story-big-photo,
#story-overlay.pati-story-has-source .pati-story-share-media>.story-big-video{
 display:block!important;position:static!important;
 width:100%!important;height:100%!important;
 min-width:0!important;min-height:0!important;
 max-width:100%!important;max-height:100%!important;
 object-fit:contain!important;object-position:center!important;
 background:#ecedf1!important;
 border:0!important;border-radius:0!important;
}
#story-overlay.pati-story-has-source .pati-story-share-post-caption{
 flex:0 1 auto!important;max-height:50px!important;
 padding:0 2px!important;margin:0!important;
 overflow:hidden!important;display:-webkit-box!important;
 -webkit-line-clamp:2!important;-webkit-box-orient:vertical!important;
 font-size:12px!important;line-height:1.4!important;color:#56565c!important;
 text-align:left!important;overflow-wrap:anywhere!important;
}
#story-overlay.pati-story-has-source .pati-story-share-card>.pati-story-shared-source{
 display:flex!important;position:relative!important;
 align-items:center!important;justify-content:center!important;gap:6px!important;
 flex:0 0 37px!important;inset:auto!important;
 width:100%!important;min-height:37px!important;max-height:37px!important;
 margin:0!important;padding:7px 12px!important;
 border:0!important;border-radius:10px!important;
 background:#181a20!important;color:#fff!important;
 font-size:12px!important;font-weight:800!important;text-decoration:none!important;
 cursor:pointer!important;
}
#story-overlay.pati-story-has-source .pati-story-share-sound{
 position:absolute!important;z-index:11!important;
 top:55px!important;right:18px!important;
 padding:5px 8px!important;margin:0!important;
 min-height:27px!important;max-width:120px!important;
 border:1px solid #fff5!important;border-radius:100px!important;
 background:#111b!important;color:#fff!important;
 font-size:10px!important;font-weight:750!important;
 text-shadow:none!important;
}
#story-overlay.pati-story-has-source .pati-story-share-card button:focus-visible{
 outline:2px solid #2388fa!important;outline-offset:3px!important;
}
/* Saved own-story actions and progress stay separate from the shared card. */
#story-overlay.pati-story-own.pati-story-has-source .story-player::after{
 z-index:2!important;
}
#story-overlay.pati-story-own.pati-story-has-source .pati-own-story-stack{
 z-index:19!important;
}
#story-overlay.pati-story-has-source.pati-story-viewers-open .pati-story-share-stage{
 opacity:0!important;pointer-events:none!important;
}
@media(max-width:740px){
 #story-overlay.pati-story-has-source .pati-story-share-stage{
  inset:calc(65px + env(safe-area-inset-top,0px)) 10px calc(100px + env(safe-area-inset-bottom,0px))!important;
 }
 #story-overlay.pati-story-has-source .pati-story-share-card{
  width:min(74vw,305px)!important;
 }
}
@media(max-height:690px){
 #story-overlay.pati-story-has-source .pati-story-share-stage{
  inset:calc(62px + env(safe-area-inset-top,0px)) 10px calc(88px + env(safe-area-inset-bottom,0px))!important;
 }
 #story-overlay.pati-story-has-source .pati-story-share-media{
  height:min(30dvh,240px)!important;max-height:min(30dvh,240px)!important;
 }
 #story-overlay.pati-story-has-source .pati-story-share-card{
  gap:5px!important;padding:8px!important;
 }
}
