/* Fans254 V1204 combined static CSS; original order preserved. */

/* --- /assets/css/fans254-v1105-ad-media-consistency.css --- */
/* V1105 — Feed advertisement media + campaign feed previews only.
 * One geometry for newly uploaded, marketplace and product/service ad carousels.
 * Live campaign previews share ads-live-card.blade.php; do not create a second
 * representation. No Reels selectors, JavaScript, object-fit changes for
 * single-media / organic posts, or backend changes.
 */

/* Preserve the caption/media alignment already established by the ad renderer.
   Uploaded-creative cards use their slightly smaller organic-feed inset. */
.social-shell .social-post.f830-sponsored:not(.social-reel-post) {
  --f1105-ad-inset: 60px;
  --f1105-ad-gap: 6px;
  --f1105-ad-peek: 32px;
  --f1105-ad-corner: 11px;
}
.social-shell .social-post.f830-sponsored.f832-new-sponsored:not(.social-reel-post) {
  --f1105-ad-inset: 54px;
}

/* Do not allow the generic mobile natural-aspect script or the older full-
   bleed ad rail rules to turn a square carousel into a black letterbox. */
.social-shell .social-post.f830-sponsored:not(.social-reel-post) > .social-post-media.f830-ad-media.f830-ad-carousel {
  display: flex !important;
  flex-flow: row nowrap !important;
  align-items: flex-start !important;
  justify-content: flex-start !important;
  gap: var(--f1105-ad-gap) !important;
  position: relative !important;
  box-sizing: border-box !important;
  width: calc(100% - var(--f1105-ad-inset)) !important;
  max-width: calc(100% - var(--f1105-ad-inset)) !important;
  min-width: 0 !important;
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  aspect-ratio: auto !important;
  margin: 7px 0 5px var(--f1105-ad-inset) !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  overflow-x: auto !important;
  overflow-y: hidden !important;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory !important;
  scroll-padding-inline-start: 0 !important;
  scrollbar-width: none;
}
.social-shell .social-post.f830-sponsored:not(.social-reel-post) > .f830-ad-carousel::-webkit-scrollbar { display: none; }

.social-shell .social-post.f830-sponsored:not(.social-reel-post) > .social-post-media.f830-ad-media.f830-ad-carousel:not(.social-post-video-player) > :is(img, video) {
  display: block !important;
  position: relative !important;
  inset: auto !important;
  flex: 0 0 min(calc(100% - var(--f1105-ad-peek)), var(--f254-feed-image-max, 660px)) !important;
  box-sizing: border-box !important;
  width: min(calc(100% - var(--f1105-ad-peek)), var(--f254-feed-image-max, 660px)) !important;
  min-width: 0 !important;
  max-width: none !important;
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  aspect-ratio: 1 / 1 !important;
  object-fit: cover !important; /* Matches the existing multi-photo ad and preview tile crop. */
  object-position: center !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  scroll-snap-align: start !important;
}
/* Only the outside corners are rounded: left on first, right on last. */
.social-shell .social-post.f830-sponsored:not(.social-reel-post) > .social-post-media.f830-ad-media.f830-ad-carousel:not(.social-post-video-player) > :is(img,video):first-child {
  border-radius: var(--f1105-ad-corner) 0 0 var(--f1105-ad-corner) !important;
}
.social-shell .social-post.f830-sponsored:not(.social-reel-post) > .social-post-media.f830-ad-media.f830-ad-carousel:not(.social-post-video-player) > :is(img,video):last-child {
  border-radius: 0 var(--f1105-ad-corner) var(--f1105-ad-corner) 0 !important;
}

/* Regular single-photo campaign creative keeps its natural aspect ratio,
   original object-fit and bounded feed inset. Neither video players nor
   promoted organic post galleries are changed. */
.social-shell .social-post.f830-sponsored.f832-new-sponsored:not(.social-reel-post) >
.social-post-media.f830-ad-media:not(.f830-ad-carousel):not(.social-post-video-player):not(.f848-media-empty) {
  width: calc(100% - var(--f1105-ad-inset)) !important;
  max-width: calc(100% - var(--f1105-ad-inset)) !important;
  margin-left: var(--f1105-ad-inset) !important;
  background: transparent !important;
}

/* Older campaign-review carousel, where it is still used, follows the same
   square, six-pixel-spaced feed geometry. Private Reels previews excluded. */
.ad20-page .ad20-gallery.is-carousel:not(.ad20-reel),
.ad20-preview-workspace .ad20-gallery.is-carousel:not(.ad20-reel) {
  display: flex !important;
  align-items: flex-start !important;
  gap: 6px !important;
  min-width: 0 !important;
  max-width: 100% !important;
  background: transparent !important;
  overflow-x: auto !important;
  overflow-y: hidden !important;
  scroll-snap-type: x mandatory !important;
  scrollbar-width: none;
}
.ad20-page .ad20-gallery.is-carousel::-webkit-scrollbar { display: none; }
.ad20-page .ad20-gallery.is-carousel > .ad20-slide {
  flex: 0 0 calc(100% - 32px) !important;
  width: calc(100% - 32px) !important;
  min-width: 0 !important;
  max-width: none !important;
  max-height: none !important;
  min-height: 0 !important;
  height: auto !important;
  aspect-ratio: 1 / 1 !important;
  padding: 0 !important;
  background: transparent !important;
  border-radius: 0 !important;
  overflow: hidden !important;
  scroll-snap-align: start !important;
}
.ad20-page .ad20-gallery.is-carousel > .ad20-slide > :is(img,video) {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  max-height: none !important;
  aspect-ratio: 1 / 1 !important;
  object-fit: cover !important;
  border-radius: 0 !important;
}
.ad20-page .ad20-gallery.is-carousel > .ad20-slide:first-child {
  border-radius: 11px 0 0 11px !important;
}
.ad20-page .ad20-gallery.is-carousel > .ad20-slide:last-child {
  border-radius: 0 11px 11px 0 !important;
}

@media (max-width: 700px) {
  .social-shell .social-post.f830-sponsored:not(.social-reel-post) {
    --f1105-ad-inset: 55px;
    --f1105-ad-peek: 30px;
    --f1105-ad-corner: 9px;
  }
  .social-shell .social-post.f830-sponsored.f832-new-sponsored:not(.social-reel-post) {
    --f1105-ad-inset: 50px;
  }
}
@media (max-width: 380px) {
  .social-shell .social-post.f830-sponsored:not(.social-reel-post) { --f1105-ad-peek: 26px; }
  .social-shell .social-post.f830-sponsored.f832-new-sponsored:not(.social-reel-post) { --f1105-ad-inset: 48px; }
}


/* --- /assets/css/fans254-v1106-stable-feed-ad-scroll.css --- */
/* V1106: stable feed first paint and continuous sponsored-ad scrolling.
   Never change the existing contain/cover rules or media transport. */
@media(max-width:760px) {
  /* The older natural-media CSS collapsed unknown images to zero height,
     then changed the page when the file finally decoded. Reserve the existing
     proportional placeholder until the measured ratio can be applied safely
     outside the viewport by V1106 JS. Known DB ratios remain untouched. */
  .social-shell .social-post:not(.social-reel-post) .social-post-media[data-f1057-provisional]:not([data-f1069-measured]):not([data-f1055-aspect]):not(.social-post-video-player):not(.f830-ad-carousel),
  .social-shell .social-post:not(.social-reel-post) .social-post-video-player[data-f1057-provisional]:not([data-f1069-measured]):not([data-f1055-aspect]) {
    position:relative!important;
    aspect-ratio:var(--f1055-reserved-ratio,4 / 5)!important;
    height:auto!important;
    max-height:var(--f254-feed-image-max,660px);
    min-height:0!important;
    overflow:hidden!important;
    background-color:var(--social-muted-bg,#e8edf5)!important;
  }
  .social-shell .social-post:not(.social-reel-post) .social-post-video-player[data-f1057-provisional]:not([data-f1069-measured]):not([data-f1055-aspect]) {
    max-height:var(--f254-feed-video-max,660px)!important;
  }
  .social-shell .social-post:not(.social-reel-post) .social-post-media[data-f1057-provisional]:not([data-f1069-measured]):not([data-f1055-aspect]):not(.social-post-video-player):not(.f830-ad-carousel)>img,
  .social-shell .social-post:not(.social-reel-post) .social-post-video-player[data-f1057-provisional]:not([data-f1069-measured]):not([data-f1055-aspect])>video[data-feed-video] {
    position:absolute!important;inset:0!important;
    display:block!important;width:100%!important;height:100%!important;
    max-width:100%!important;max-height:none!important;
    /* The existing object-fit from V1057 is intentionally retained. */
  }
}
/* Keep sponsored feed tiles in the layout even before image decoding.
   Gallery tiles scroll continuously; the rail itself remains clipped to the
   normal feed width, not the full viewport or the main page. */
.social-shell .social-post.f830-sponsored:not(.social-reel-post) > .social-post-media.f830-ad-media.f830-ad-carousel {
  content-visibility:visible!important;
  scroll-snap-type:x proximity!important;
  overflow-anchor:none!important;
  contain:none!important;
  touch-action:pan-x pan-y;
}
.social-shell .social-post.f830-sponsored:not(.social-reel-post) > .social-post-media.f830-ad-media.f830-ad-carousel > :is(img,video) {
  content-visibility:visible!important;
  min-height:0!important;
  contain:none!important;
  scroll-snap-stop:normal!important;
}
/* Ad campaign preview uses the same stable square rail. Reels previews and
   unrelated organic photo/video posts do not match these selectors. */
.ad20-page .ad20-gallery.is-carousel:not(.ad20-reel),
.ad20-preview-workspace .ad20-gallery.is-carousel:not(.ad20-reel) {
  scroll-snap-type:x proximity!important;
  content-visibility:visible!important;
  overflow-anchor:none!important;
}


/* --- /assets/css/fans254-v1107-palette-ad-heights.css --- */
/* Fans254 V1107 — V928 palette restoration + feed-ad height cap.
 * Only targeted CTA surfaces, new/feed advertised media and contained Reels;
 * normal galleries, native media-fit, checkout, and live playback unchanged. */

/* Once a CTA with an actual destination is visible, show the automatically
   sampled or saved WCAG-safe creative color. Preserve understated surface CTAs
   and plain website links, which V928 deliberately kept neutral. */
.social-shell .social-post.f826-sponsored:not(.social-reel-post) [data-ad-cta].is-ad-vivid:not(.f837-surface-cta):not(.f837-website-link),
.social-shell .f826-ad-reel-panel [data-ad-cta].is-ad-vivid:not(.f837-surface-cta):not(.f837-website-link),
.ad20-page [data-ad-cta].is-ad-vivid:not(.f837-surface-cta):not(.f837-website-link),
.social-shell .social-post [data-organic-promotion-cta].is-ad-vivid {
  background-color:var(--ad-palette,var(--ad-cta-palette,#1769e8))!important;
  background-image:none!important;
  border-color:var(--ad-palette,var(--ad-cta-palette,#1769e8))!important;
  color:var(--ad-palette-text,#fff)!important;
  transition:background-color .35s ease,color .35s ease,border-color .35s ease!important;
}
/* V928 cap: uploaded ad media never grows into a huge feed-height canvas.
   Single images keep natural aspect and original object-fit. */
.social-shell .social-post.f832-new-sponsored:not(.social-reel-post) > .social-post-media.f837-limited-media:not(.f837-carousel),
.social-shell .social-post.f832-new-sponsored:not(.social-reel-post) > .social-post-media.f837-limited-media:not(.f837-carousel) > :is(img,video){
  max-height:450px!important;
}
/* Preserve V1105 square tiles, 6px gaps and V1106 live scrolling; just restore
   V928's maximum feed-ad size even on wide desktop layouts. */
.social-shell .social-post.f830-sponsored:not(.social-reel-post) > .social-post-media.f830-ad-media.f830-ad-carousel:not(.social-post-video-player) > :is(img,video){
  flex-basis:min(calc(100% - var(--f1105-ad-peek,32px)),450px)!important;
  width:min(calc(100% - var(--f1105-ad-peek,32px)),450px)!important;
  max-height:450px!important;
}
.ad20-page .ad20-gallery.is-carousel:not(.ad20-reel) > .ad20-slide,
.ad20-preview-workspace .ad20-gallery.is-carousel:not(.ad20-reel) > .ad20-slide {
  flex-basis:min(calc(100% - 32px),450px)!important;
  width:min(calc(100% - 32px),450px)!important;
  max-height:450px!important;
}
/* Contained Reels: a *background* fading from real media palette to black.
   Nothing overlays the frame or affects playback, controls, or cover mode. */
.social-shell .social-reel-watch .social-reel-media.f1107-contain-palette {
  background-color:#08090c!important;
  background-image:linear-gradient(90deg,rgba(0,0,0,.86) 0%,rgba(0,0,0,.38) 34%,rgba(0,0,0,.38) 66%,rgba(0,0,0,.86) 100%),radial-gradient(ellipse at center,var(--f1107-reel-color,#252932) 0%,#08090c 95%)!important;
  background-position:center!important;
  background-size:cover!important;
}
.social-shell .social-reel-watch .social-reel-media.f1107-contain-palette > video[data-reel-video]{
  background-color:transparent!important;
}
@media(prefers-reduced-motion:reduce){
  .social-shell [data-ad-cta].is-ad-vivid{transition:none!important}
}


/* --- /assets/css/fans254-v1108-ads-reels-stability.css --- */
/* Fans254 V1108 — targeted sponsored Feed/Reels presentation.
   Preserves existing object-fit, frame sizing, feed max heights and ad actions. */

/* The @username consumes the space before the disclosure instead of pushing
   the Ad marker to the beginning of the Reel byline. */
.social-shell .social-reel-post .f830-reel-author .social-post-byline,
.social-shell .social-reel-post .social-post-byline:has(.f835-reel-ad-disclosure) {
  display:flex!important; flex-wrap:nowrap!important; align-items:center!important;
  gap:5px!important; max-width:100%!important; min-width:0!important;
}
.social-shell .social-reel-post .f830-reel-author .social-post-byline > span:first-child,
.social-shell .social-reel-post .social-post-byline:has(.f835-reel-ad-disclosure) > span:first-child {
  display:block; flex:0 1 auto; min-width:0; overflow:hidden;
  white-space:nowrap; text-overflow:ellipsis;
}
.social-shell .social-reel-post .f830-reel-adlabel,
.social-shell .social-reel-post .f835-reel-ad-disclosure {
  flex:0 0 auto!important; order:2;
  display:inline-flex; align-items:center; justify-content:center;
  color:#fff!important; background:rgba(0,0,0,.48)!important;
  border:1px solid rgba(255,255,255,.56); border-radius:5px;
  font-size:11px; font-weight:700; line-height:1; padding:3px 6px;
  margin:0 0 0 3px!important;
}

/* Reel Follow: visible white pill, solid black label on any video/background.
   Explicitly covers normal, promoted, and paid-ad Reels. */
.social-shell .social-reel-watch .social-reel-post .social-reel-follow,
.social-shell .social-reel-panel .social-reel-post .social-reel-follow,
.social-shell .social-reel-watch .f830-ad-reel-post .social-reel-follow {
  background:#fff!important; background-image:none!important;
  color:#101418!important; border:1px solid rgba(0,0,0,.08)!important;
  border-radius:999px!important; box-shadow:0 1px 3px rgba(0,0,0,.18)!important;
  font-weight:750!important;
}
.social-shell .social-reel-watch .social-reel-post .social-reel-follow.is-following,
.social-shell .social-reel-panel .social-reel-post .social-reel-follow.is-following {
  color:#101418!important; background:#f1f2f4!important;
  border-color:rgba(0,0,0,.11)!important;
}

/* The Feed sound icon belongs at the bottom-right of its control bar.
   Sponsored ads with speaker-only overlay already use bottom-right. */
.social-shell .social-post:not(.social-reel-post) .social-post-video-player
  .social-video-controls .social-feed-mute {
  order:20!important; margin-left:2px!important; flex-shrink:0;
}
.social-shell .social-post:not(.social-reel-post) .social-post-video-player
  .social-video-controls .social-video-expand {order:19!important;}

/* Twitter-like media label: title and optional trusted destination below the
   creative, not inside the post caption. Keep small margin and no large card. */
.social-shell .social-post.f832-new-sponsored:not(.social-reel-post) > .f1108-ad-under-media {
  box-sizing:border-box!important;
  width:calc(100% - 54px)!important; max-width:calc(100% - 54px)!important;
  margin:5px 0 3px 54px!important; padding:0 1px!important;
  display:flex!important; flex-direction:column; align-items:flex-start;
  gap:1px; color:var(--social-text,#161b22); font-size:13px;
  line-height:1.35; white-space:normal; overflow-wrap:anywhere;
}
.social-shell .social-post.f832-new-sponsored:not(.social-reel-post) > .f1108-ad-under-media strong {
  display:block; max-width:100%; font-size:13px; font-weight:650;
}
.social-shell .social-post.f832-new-sponsored:not(.social-reel-post) > .f1108-ad-under-media small {
  display:block; color:var(--social-muted,#677589); font-size:12px; font-weight:400;
}
.f1108-title-limit {display:block; margin:5px 0 0; font-size:12px; color:var(--social-muted,#6a7588)}
@media(max-width:650px) {
  .social-shell .social-post.f832-new-sponsored:not(.social-reel-post) > .f1108-ad-under-media {
    margin-left:50px!important; width:calc(100% - 50px)!important; max-width:calc(100% - 50px)!important;
  }
}

/* The horizontally scrolled carousel is the *one* clipping surface. Remove
   masks and accidental stacking layers which made exiting/entering tiles
   vanish behind the card. Center-snapping maintains a visible neighboring
   tile rather than cutting it abruptly at each starting edge. */
.social-shell .social-post.f830-sponsored:not(.social-reel-post) {overflow:visible!important;}
.social-shell .social-post.f830-sponsored:not(.social-reel-post) > .f830-ad-carousel {
  position:relative!important; z-index:2;
  contain:none!important; content-visibility:visible!important;
  mask-image:none!important; -webkit-mask-image:none!important;
  overflow-x:auto!important; overflow-y:hidden!important;
  scroll-snap-type:x proximity!important;
  scroll-padding-inline:0!important;
  overscroll-behavior-inline:contain;
  -webkit-overflow-scrolling:touch;
}
.social-shell .social-post.f830-sponsored:not(.social-reel-post) > .f830-ad-carousel > :is(img,video) {
  display:block!important; position:relative!important; z-index:1;
  content-visibility:visible!important; visibility:visible!important;
  backface-visibility:visible!important;
  scroll-snap-align:center!important; scroll-snap-stop:normal!important;
}
/* Maintain the V1105 outside corner scheme and V1107 450px cap. */
/* Override V1105's high-specificity start snap without altering its dimensions. */
.social-shell .social-post.f830-sponsored:not(.social-reel-post) > .social-post-media.f830-ad-media.f830-ad-carousel:not(.social-post-video-player) > :is(img,video) {
  scroll-snap-align:center!important;
}


/* --- /assets/css/fans254-v1109-ad-manager-actions.css --- */
/* V1109: Ads Manager editorial header, accessible actions, responsive dialogs. */
.ad17-page:not(.ad18-page):not(.ad19-page):not(.ad20-page)>.ad17-header,
.ad17-page .ad17-header.ad17-header-light{
  background:var(--ad17-card,#fff)!important;color:var(--ad17-text,#111827)!important;
  border-bottom:1px solid var(--ad17-border,#e5eaf0)!important;box-shadow:none!important;
  padding:19px clamp(14px,3vw,28px)!important;
}
.ad17-page .ad17-title-row{gap:12px!important;align-items:center!important}
.ad17-page .ad17-icon-btn,.ad17-page .ad17-head-help{
  width:44px!important;height:44px!important;flex:0 0 44px!important;
  border-radius:50%!important;background:var(--ad17-soft,#eff4fa)!important;
  color:var(--ad17-text,#111827)!important;border:1px solid var(--ad17-border,#dce3ed)!important;
  box-shadow:none!important;transition:background .18s ease!important;
}
.ad17-page .ad17-brand-glyph.f849-brand{width:43px!important;height:43px!important;flex:0 0 43px!important;
  background:#e9f2ff!important;color:#075dd4!important;border-radius:14px!important;box-shadow:none!important}
.ad17-page .ad17-brand-glyph.f849-brand svg{color:#075dd4!important}
.ad17-page .ad17-header .ad17-head-copy h1{color:var(--ad17-text,#111827)!important;font-size:clamp(23px,3vw,29px)!important;letter-spacing:-.04em;line-height:1.14!important}
.ad17-page .ad17-header .ad17-head-copy p{color:var(--ad17-muted,#64748b)!important;font-size:13px!important}
.ad17-page .ad17-header .ad17-eyebrow{color:#1258b2!important;font-size:10px!important;letter-spacing:.12em!important}
.ad17-page .ad17-head-inner>.f847-wallet-status-bar{
  background:var(--ad17-soft,#f4f7fb)!important;border:0!important;border-radius:18px!important;
  color:var(--ad17-text,#111827)!important;box-shadow:none!important;
  padding:13px 15px!important;gap:9px!important;min-height:65px!important;
}
.ad17-page .ad17-head-inner>.f847-wallet-status-bar>span{color:var(--ad17-muted,#64748b)!important}
.ad17-page .ad17-head-inner>.f847-wallet-status-bar b{color:var(--ad17-text,#111827)!important;font-weight:780!important}
.ad17-page .ad17-head-inner>.f847-wallet-status-bar button{
  border-radius:50px!important;background:#095fcd!important;color:#fff!important;
  border:0!important;padding:11px 16px!important;font-weight:760!important;
  min-height:44px!important;box-shadow:none!important;
}
.ad17-page .ad17-head-inner>.f847-wallet-status-bar button:hover{background:#074ea9!important}
.ad17-page :is(.ad17-primary,.ad18-pick-btn,.f1004-ad-create-action){background:#095fcd!important;color:#fff!important;border-radius:50px!important;box-shadow:none!important}
.ad17-page :is(.ad17-primary,.ad18-pick-btn,.f1004-ad-create-action):hover{background:#074ea9!important}
.ad17-page .f849-stat{border-radius:14px!important;box-shadow:none!important}
.ad17-page .f849-overview,.ad17-page .ad17-campaigns{border-radius:16px!important;box-shadow:none!important}
/* Never let hero overlays or SPA transforms mask form confirmation taps. */
.ad17-page .f855-revision-backdrop{z-index:9900!important}
.ad17-page .f855-revision-dialog{z-index:9901!important;pointer-events:auto!important;
  width:min(420px,calc(100vw - 28px))!important;padding:25px 22px!important;border-radius:24px!important;
  background:var(--ad17-card,#fff)!important;color:var(--ad17-text,#0f172a)!important;
  border:1px solid var(--ad17-border,#e2e8f0)!important}
.ad17-page .f855-revision-dialog h2{color:inherit!important;font-size:clamp(20px,4.2vw,23px)!important;line-height:1.26!important}
.ad17-page .f855-revision-dialog p{color:var(--ad17-muted,#566477)!important;font-size:14px!important;line-height:1.55!important}
.ad17-page .f855-revision-dialog .f855-revision-actions{display:flex!important;gap:10px!important}
.ad17-page .f855-revision-dialog .f855-revision-actions button{
  min-height:50px!important;border-radius:50px!important;font-size:14px!important;
  font-weight:760!important;opacity:1;pointer-events:auto!important;touch-action:manipulation;
}
.ad17-page .f855-revision-dialog .f855-revision-confirm{background:#095fcd!important;color:#fff!important;
  -webkit-text-fill-color:#fff!important;border:0!important;min-width:0;flex:1}
.ad17-page .f855-revision-dialog.f858-cancel-dialog .f855-revision-confirm{background:#bd2845!important;color:#fff!important;-webkit-text-fill-color:#fff!important}
.ad17-page .f855-revision-dialog .f855-revision-cancel{background:var(--ad17-soft,#f1f5f9)!important;color:var(--ad17-text,#111827)!important;min-width:92px}
.ad17-page .f1109-dialog-error:not([hidden]){display:block;color:#ae1d38!important;background:#fff0f2!important;border-radius:12px;padding:10px 12px;font-size:13px;margin:0 0 12px}
.ad17-page .f1109-again{background:var(--ad17-soft,#f2f6fc)!important;color:#095fcd!important;border:1px solid var(--ad17-border,#dae2ef)!important;border-radius:50px!important}
.ad17-page [data-f1109-whatsapp-test]{display:inline-flex;align-items:center;gap:6px;margin-top:7px;color:#0867c1;text-decoration:underline;font-weight:700;font-size:13px}
.ad17-page [data-f1109-whatsapp-test][hidden]{display:none!important}
html[data-theme=dark] .ad17-page{--ad17-card:#20242c;--ad17-soft:#2b3240;--ad17-text:#f5f7fc;--ad17-muted:#acb8c9;--ad17-border:#3a4351}
html[data-theme=dark] .ad17-page .ad17-brand-glyph.f849-brand{background:#243c62!important;color:#acd0ff!important}
html[data-theme=dark] .ad17-page .ad17-brand-glyph.f849-brand svg{color:#acd0ff!important}
html[data-theme=dark] .ad17-page .ad17-header .ad17-eyebrow{color:#8ab8ff!important}
html[data-theme=dark] .ad17-page .f1109-dialog-error:not([hidden]){background:#4b2733!important;color:#ffb9ca!important}
@media(max-width:760px){
 .ad17-page .ad17-header{padding:16px 13px!important}
 .ad17-page .ad17-title-row{gap:10px!important}
 .ad17-page .ad17-head-copy h1{font-size:24px!important}
 .ad17-page .ad17-head-inner>.f847-wallet-status-bar{flex-wrap:wrap!important}
 .ad17-page .ad17-head-inner>.f847-wallet-status-bar button{margin-left:auto!important;border-radius:50px!important}
 .ad17-page .f855-revision-dialog{padding:23px 18px!important}
}

/* Consolidate the four summary blocks into a quiet data grid rather than tall cards. */
.ad17-page .f849-kpis{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr));gap:0!important;
 background:var(--ad17-card,#fff)!important;border:1px solid var(--ad17-border,#e2e8f0)!important;
 border-radius:18px!important;overflow:hidden!important}
.ad17-page .f849-kpis .f849-stat{min-height:112px!important;border:0!important;border-right:1px solid var(--ad17-border,#e2e8f0)!important;
 background:transparent!important;border-radius:0!important;padding:13px 15px!important;box-shadow:none!important;overflow:visible!important}
.ad17-page .f849-kpis .f849-stat:last-child{border-right:0!important}
.ad17-page .f849-kpis .f849-stat:before{display:none!important}
.ad17-page .f849-kpis .f849-stat strong{font-size:clamp(18px,2.5vw,25px)!important}
.ad17-page .f849-kpis .f849-stat .ad17-stat-label{font-size:12px!important}
@media(max-width:760px){
 .ad17-page .f849-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}
 .ad17-page .f849-kpis .f849-stat{min-height:110px!important;padding:13px 12px!important}
 .ad17-page .f849-kpis .f849-stat:nth-child(2){border-right:0!important}
 .ad17-page .f849-kpis .f849-stat:nth-child(-n+2){border-bottom:1px solid var(--ad17-border,#e2e8f0)!important}
}


/* --- /assets/css/fans254-v1110-ad-frame-carousel-actions.css --- */
/* V1110 — sponsored video first-frame, ad carousel gutter and sticky button polish.
   No change to video object-fit, authored media aspect ratios, max heights,
   paid access, media routes or native playback controls. */

/* Never make an otherwise loaded video invisible while JS waits for its
   frame-ready class. A visible native poster or first frame paints directly. */
.social-shell .f832-new-sponsored > .f842-ad-video-stage > video[data-ad-autoplay],
.social-shell .f830-ad-reel-post > .f842-ad-video-stage > video[data-ad-autoplay] {
  opacity:1!important;
  transition:none!important;
  visibility:visible!important;
}
/* Fit is controlled by the admin-height-aware V1112 media geometry. */
/* No oversized gray/blue skeleton behind an as-yet-undecoded frame.
   Neutral backing follows the current theme, without changing video geometry. */
.social-shell .f832-new-sponsored > .f842-ad-video-stage {
  background:var(--social-surface,#fff)!important;
}
html[data-theme="dark"] .social-shell .f832-new-sponsored > .f842-ad-video-stage {
  background:var(--social-surface,#181a1f)!important;
}

/* The scrollport spans the entire feed card, while the first slide still
   starts at the established avatar/text inset. When swiping, outgoing images
   remain visible across the left gutter instead of vanishing under a masked
   container beginning at the inset. Only sponsored multi-photo rails change. */
.social-shell .social-post.f830-sponsored:not(.social-reel-post) > .social-post-media.f830-ad-media.f830-ad-carousel {
  box-sizing:border-box!important;
  width:100%!important;
  max-width:100%!important;
  margin-left:0!important;
  padding-left:var(--f1105-ad-inset,60px)!important;
  padding-right:0!important;
  border-radius:0!important;
  mask:none!important;
  -webkit-mask:none!important;
  overflow-x:auto!important;
  overflow-y:hidden!important;
  scroll-padding-inline-start:var(--f1105-ad-inset,60px)!important;
  scroll-snap-type:x proximity!important;
  -webkit-overflow-scrolling:touch;
  touch-action:pan-x pan-y;
}
.social-shell .social-post.f830-sponsored:not(.social-reel-post) > .social-post-media.f830-ad-media.f830-ad-carousel:not(.social-post-video-player) > :is(img,video) {
  scroll-snap-align:start!important;
  scroll-snap-stop:normal!important;
}
/* Campaign creation and review: 50px pill buttons, including fixed mobile
   submission rows, without rounding the whole sticky bar or overlay itself. */
.ad17-page .ad18-sticky-actions :is(button,a,.ad17-btn),
.ad17-page .ad17-existing-actions :is(button,a,.ad17-btn),
.ad17-page .ad18-pending-actions :is(button,a,.ad17-btn),
.ad17-page .ad20-actions :is(button,a,.ad17-btn),
.ad17-page .f855-revision-dialog .f855-revision-actions :is(button,a),
.ad17-page .ad17-dialog > .ad17-btn,
.ad17-page .ad18-crop-actions :is(button,a),
.ad17-page .ad18-confirm-actions :is(button,a) {
  border-radius:50px!important;
}
/* Marketplace Products, Requests, Services and Jobs fixed/sticky actions. */
.mkcp-page .mkcp-bottom :is(button,a,.mkcp-btn),
.mk-page .mk-sticky-cta :is(button,a,.mk-action),
.mk-product-page .mkpd-actions-mobile :is(button,a,.mkpd-action),
.ms-editor-page .ms-editor-actions :is(button,a),
.ms-page .ms-bottom :is(button,a,.ms-btn),
.ms-bottom :is(button,a,.ms-btn),
.mkr-detail-bottom :is(button,a),
.mj-page .mj-mobile-bar :is(button,a,.mj-button),
.mj-page .mj-form-actions :is(button,a,.mj-button),
.mj-page .mj-modal :is(button.mj-button,a.mj-button),
.mk-page .mk13-dialog :is(button,a) {
  border-radius:50px!important;
}
@media (max-width:760px) {
  .ad17-page .ad18-sticky-actions :is(button,a,.ad17-btn),
  .mkcp-page .mkcp-bottom :is(button,a,.mkcp-btn),
  .ms-editor-page .ms-editor-actions :is(button,a),
.ms-page .ms-bottom :is(button,a,.ms-btn),
.ms-bottom :is(button,a,.ms-btn),
.mkr-detail-bottom :is(button,a),
  .mj-page .mj-mobile-bar :is(button,a,.mj-button) {
    min-width:0;
    max-width:100%;
  }
}


/* --- /assets/css/fans254-v1111-stories-visuals.css --- */
/* V1111: Story reporting, palette backdrop and light/dark safety contrast.
 * Scoped to the full-screen Story viewer; never affects the Home feed or Reels
 * object-fit and media-height rules. */
.social-shell .f776-story-viewer .f776-story-canvas{
 --f1111-story-tone:#395a81;
 background-color:#070a12!important;
 background-image:radial-gradient(ellipse 75% 67% at 48% 47%,color-mix(in srgb,var(--f1111-story-tone) 34%,#080b13) 0%,#080b13 78%)!important;
}
.social-shell .f776-story-viewer .f776-story-background{
 background:radial-gradient(ellipse 72% 52% at 50% 48%,color-mix(in srgb,var(--f1111-story-tone) 60%,transparent) 0%,transparent 76%)!important;
 opacity:.45!important;filter:blur(20px)!important;
}
/* The story image itself remains untouched and uses the existing object-fit. */
.social-shell .f776-story-viewer .f776-story-stage .f776-story-media{background:transparent!important}
.social-shell .f776-story-viewer .f777-story-loader{z-index:3;pointer-events:none}
/* Report modal is always rendered over a dark Story viewer even when the
 * underlying page uses light mode. Never inherit dark text into the popup. */
.social-shell .f776-story-viewer .f776-story-sheet:has(.f1093-story-report-form){
 background:#111927!important;color:#f6f8ff!important;
 border:1px solid #ffffff29!important;border-bottom:0!important;
 box-shadow:0 -16px 54px #0009!important;
}
.social-shell .f776-story-viewer .f776-story-sheet:has(.f1093-story-report-form) .f776-story-sheet-head strong,
.social-shell .f776-story-viewer .f776-story-sheet:has(.f1093-story-report-form) .f776-story-sheet-head button{color:#f8fafc!important}
.social-shell .f776-story-viewer .f1093-story-report-form{display:grid;gap:8px;min-width:0;padding:2px 1px 10px}
.social-shell .f776-story-viewer .f1093-story-choice{
 display:flex!important;flex-direction:row!important;align-items:center!important;justify-content:space-between!important;
 gap:15px!important;min-width:0;min-height:48px;margin:0!important;padding:11px 12px!important;
 background:#1c2738!important;color:#f5f7fc!important;border:1px solid #38465a!important;
 border-radius:14px!important;box-shadow:none!important;font-size:13px!important;line-height:1.4!important;
}
.social-shell .f776-story-viewer .f1093-story-choice>span{color:#f5f7fc!important;flex:1 1 auto!important;min-width:0;font-weight:600}
.social-shell .f776-story-viewer .f1093-story-choice input[type=checkbox]{
 display:block!important;visibility:visible!important;opacity:1!important;appearance:none!important;-webkit-appearance:none!important;
 flex:0 0 42px!important;width:42px!important;min-width:42px!important;max-width:42px!important;
 height:25px!important;min-height:25px!important;margin:0!important;padding:0!important;
 position:relative!important;border:0!important;outline:0!important;border-radius:99px!important;
 background:#536079!important;box-shadow:inset 0 1px 3px #0005!important;cursor:pointer;
}
.social-shell .f776-story-viewer .f1093-story-choice input[type=checkbox]::after{
 content:""!important;display:block!important;position:absolute!important;top:3px!important;left:3px!important;
 width:19px!important;height:19px!important;border-radius:50%!important;background:#fff!important;
 box-shadow:0 1px 3px #0004!important;transform:translateX(0)!important;transition:transform .15s ease!important;
}
.social-shell .f776-story-viewer .f1093-story-choice input[type=checkbox]:checked{background:#1877f2!important}
.social-shell .f776-story-viewer .f1093-story-choice input[type=checkbox]:checked::after{transform:translateX(17px)!important}
.social-shell .f776-story-viewer .f1093-story-choice input[type=checkbox]:focus-visible{outline:2px solid #9bc5ff!important;outline-offset:3px!important}
.social-shell .f776-story-viewer .f1093-story-report-form textarea{
 box-sizing:border-box;width:100%;background:#1c2738!important;border:1px solid #46556d!important;
 color:#f5f7fc!important;outline:0;border-radius:12px!important;font:inherit;font-size:14px!important;min-height:74px!important;
}
.social-shell .f776-story-viewer .f1093-story-report-form textarea::placeholder{color:#c3cddd!important}
.social-shell .f776-story-viewer .f1093-story-report-form textarea:focus{border-color:#67a5ff!important}
.social-shell .f776-story-viewer .f1093-story-report-submit{
 min-height:46px;border-radius:50px!important;background:#1877f2!important;color:#fff!important;
 border:0!important;font-size:14px!important;font-weight:750!important;
}
.social-shell .f776-story-viewer .f1093-story-report-submit:disabled{opacity:.65}
.social-shell .f776-story-viewer .f1093-story-report-message{color:#ff9ca3!important;min-height:0;margin:0!important}
@media(max-width:650px){
 .social-shell .f776-story-viewer .f776-story-sheet:has(.f1093-story-report-form){max-height:min(80dvh,780px)!important}
 .social-shell .f776-story-viewer .f1093-story-choice{min-height:46px}
}
@media(prefers-reduced-motion:reduce){
 .social-shell .f776-story-viewer .f1093-story-choice input[type=checkbox]::after{transition:none!important}
}

/* Private R2 video frames may be tainted for canvas reads. For contained
 * organic Reels, the already-authorized poster becomes a heavily diffused
 * chromatic halo BEHIND the video. Cover-mode Reels are untouched. */
.social-shell .social-reel-watch .social-reel-media.f1107-contain-palette.f1111-reel-poster-halo{
 isolation:isolate;
}
.social-shell .social-reel-watch .social-reel-media.f1107-contain-palette.f1111-reel-poster-halo::before{
 content:"";position:absolute;inset:-22px;z-index:0;pointer-events:none;
 background-image:linear-gradient(90deg,#05060799,transparent 35%,transparent 65%,#05060799),var(--f1111-reel-poster);
 background-position:center;background-size:cover;
 filter:blur(32px) brightness(.42) saturate(1.3);
}
.social-shell .social-reel-watch .social-reel-media.f1107-contain-palette.f1111-reel-poster-halo > video[data-reel-video]{
 position:relative;z-index:1;
}


/* --- /assets/css/fans254-v1112-ad-geometry-reels.css --- */
/* Fans254 V1112 — sponsored carousel left-edge and admin-cap video sizing;
   Reels sensitive cover gets a seamless, uninterrupted canvas. */
/* Full available scroll viewport. The first photo still aligns with caption;
   the inset scrolls away with the photos, never leaving a fixed left blocker. */
.social-shell .social-post.f830-sponsored:not(.social-reel-post) > .social-post-media.f830-ad-media.f830-ad-carousel {
 --f1112-bleed:14px;
 position:relative!important;
 box-sizing:border-box!important;
 display:flex!important;
 flex-flow:row nowrap!important;
 width:calc(100% + var(--f1112-bleed))!important;
 max-width:calc(100% + var(--f1112-bleed))!important;
 margin-left:calc(-1 * var(--f1112-bleed))!important;
 padding-left:calc(var(--f1105-ad-inset,54px) + var(--f1112-bleed))!important;
 padding-right:0!important;
 overflow-x:auto!important;
 overflow-y:hidden!important;
 border:0!important;
 border-radius:0!important;
 clip-path:none!important;
 -webkit-clip-path:none!important;
 mask:none!important;-webkit-mask:none!important;
 scroll-padding-inline-start:0!important;
 scroll-snap-type:x proximity!important;
 overscroll-behavior-x:contain;
 touch-action:pan-x pan-y;
 background:transparent!important;
}
.social-shell .social-post.f830-sponsored:not(.social-reel-post) > .social-post-media.f830-ad-media.f830-ad-carousel > :is(img,video){
 scroll-snap-align:start!important;
 scroll-snap-stop:normal!important;
}
/* The video maximum for mobile comes from the admin's two independent feed
   limits. Preserve the older desktop 450px ad cap; only overly tall videos
   switch to contain. A short video stays in the existing cover presentation. */
.social-shell .social-post.f832-new-sponsored:not(.social-reel-post) > .social-post-media.f842-ad-video-stage.f837-limited-media {
 max-height:min(450px,var(--f254-feed-video-max,660px))!important;
}
.social-shell .social-post.f832-new-sponsored:not(.social-reel-post) > .social-post-media.f842-ad-video-stage.f837-limited-media > video[data-f1112-ad-fit] {
 object-fit:cover!important;
 object-position:center!important;
}
.social-shell .social-post.f832-new-sponsored:not(.social-reel-post) > .social-post-media.f842-ad-video-stage.f837-limited-media[data-f1112-over-cap="1"] > video[data-f1112-ad-fit] {
 object-fit:contain!important;
}
/* Only sensitive Reels: remove the original one-pixel light border and
   light card seam. Other Reel media, buttons, player and paywall unchanged. */
.social-shell .social-reel-watch .social-reel-panel:has(.sensitive-media-gate) {
 border:0!important;outline:0!important;box-shadow:none!important;
 background:#121c2b!important;
}
.social-shell .social-reel-watch .social-reel-post .sensitive-media-gate,
.social-shell .social-reel-watch .social-reel-post .sensitive-media-gate.f1050-sensitive-gate {
 inset:0!important;box-sizing:border-box!important;
 width:100%!important;height:100%!important;max-width:100%!important;
 margin:0!important;border:0!important;outline:0!important;
 border-radius:0!important;box-shadow:none!important;
 background-color:#17243a!important;
}
.social-shell .social-reel-watch .social-reel-panel:has(.sensitive-media-gate) .social-reel-media {
 border:0!important;outline:0!important;border-radius:0!important;box-shadow:none!important;
}
@media(min-width:761px){.social-shell .social-post.f830-sponsored:not(.social-reel-post) > .social-post-media.f830-ad-media.f830-ad-carousel{--f1112-bleed:12px}}

