/* V1343: shared follow, post identity, and verified badge presentation. No JS or media changes. */
/* Keep the shape from the supplied rosette artwork; existing white check paths stay native. */
:is(.social-verified,.f1208-verified,.fsp-verified,.f813-reel-caption-verified,.f956-verified-chat){
  --f1343-badge-color:#2675e2;
  display:inline-grid!important;place-items:center!important;position:relative!important;
  background:transparent!important;border-radius:0!important;color:#fff!important;
  vertical-align:middle;isolation:isolate;overflow:visible;flex:none;
}
:is(.social-verified,.f1208-verified,.fsp-verified,.f813-reel-caption-verified,.f956-verified-chat).is-admin{--f1343-badge-color:#ffc107}
:is(.social-verified,.f1208-verified,.fsp-verified,.f813-reel-caption-verified,.f956-verified-chat)::before{
  content:"";position:absolute;inset:0;z-index:-1;background:var(--f1343-badge-color);
  -webkit-mask:url('/assets/img/fans254-verified-rosette-v1343.png') center / contain no-repeat;
  mask:url('/assets/img/fans254-verified-rosette-v1343.png') center / contain no-repeat;
}
:is(.social-verified,.f1208-verified,.fsp-verified)>.social-icon,
:is(.social-verified,.f1208-verified,.fsp-verified)>svg{position:relative;z-index:1;stroke:#fff!important;color:#fff!important;fill:none!important}
.f813-reel-caption-verified,.f956-verified-chat{font-size:0!important}
.f813-reel-caption-verified::after,.f956-verified-chat::after{
  content:'✓';font-size:11px;line-height:1;font-weight:900;color:#fff;position:relative;z-index:1;
}
/* Original 14px feed badges remain compact; the rosette is not a round pill. */
.social-shell .social-verified{width:16px;height:16px;min-width:16px}
.social-shell .social-profile-header h1 .social-verified{width:17px;height:17px;min-width:17px}
.social-shell .f1208-verified{width:15px;height:15px;min-width:15px}
.fsp-verified{width:16px;height:16px;min-width:16px}

/* Follow buttons: same black/white ink pairing as the official theme logos. */
html[data-theme="light"] .social-shell :is(.social-suggestion-follow,.social-mini-follow,.social-reel-follow,.social-follow-primary,.f973-follow,.f1053-photo-only-follow,.f1051-lightbox-follow,.f1208-person-follow),
html[data-theme="light"] .f823-ob.f977-onboard .f823-person button[data-f823-follow]{
  background:#000!important;color:#fff!important;border:1px solid #000!important;border-radius:50px!important;
  box-shadow:none!important;
}
html[data-theme="dark"] .social-shell :is(.social-suggestion-follow,.social-mini-follow,.social-reel-follow,.social-follow-primary,.f973-follow,.f1053-photo-only-follow,.f1051-lightbox-follow,.f1208-person-follow),
html[data-theme="dark"] .f823-ob.f977-onboard .f823-person button[data-f823-follow]{
  background:#fff!important;color:#000!important;border:1px solid #fff!important;border-radius:50px!important;
  box-shadow:none!important;
}
/* Following remains visually distinct and legible; the follow/unfollow event handlers are untouched. */
html[data-theme="light"] .social-shell :is(.social-suggestion-follow,.social-mini-follow,.social-reel-follow,.social-follow-primary,.f973-follow,.f1053-photo-only-follow,.f1051-lightbox-follow,.f1208-person-follow).is-following,
html[data-theme="light"] .f823-ob.f977-onboard .f823-person button[data-f823-follow].is-following{
  background:#f1f1f1!important;color:#000!important;border-color:#c5c5c5!important;
}
html[data-theme="dark"] .social-shell :is(.social-suggestion-follow,.social-mini-follow,.social-reel-follow,.social-follow-primary,.f973-follow,.f1053-photo-only-follow,.f1051-lightbox-follow,.f1208-person-follow).is-following,
html[data-theme="dark"] .f823-ob.f977-onboard .f823-person button[data-f823-follow].is-following{
  background:#292d33!important;color:#fff!important;border-color:#6b717c!important;
}
/* Standard feed post identity: name, username, time and ad label share the same scale. */
.social-shell .social-post:not(.social-reel-post) > .social-post-top > .social-post-author > a,
.social-shell .social-post:not(.social-reel-post) > .social-post-top > .social-post-author > .f830-ad-author-name,
.social-shell .social-post:not(.social-reel-post) > .social-post-top .social-post-byline,
.social-shell .social-post:not(.social-reel-post) > .social-post-top .social-post-byline time,
.social-shell .social-post:not(.social-reel-post) > .social-post-top :is(.f832-sponsored-ad-badge,.f830-ad-badge){
  font-size:14px!important;line-height:1.32!important;
}
.social-shell .social-post:not(.social-reel-post) > .social-post-top .social-post-author > a{max-width:48%!important;gap:4px!important}
.social-shell .social-post:not(.social-reel-post) > .social-post-top .social-post-byline{
  min-width:0;flex:1 1 auto;gap:4px!important;overflow:hidden;
}
.social-shell .social-post:not(.social-reel-post) > .social-post-top .social-post-byline > span:first-child{
  flex:0 1 auto;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;
}
.social-shell .social-post:not(.social-reel-post) > .social-post-top .social-post-byline time{
  flex:0 0 auto;white-space:nowrap;max-width:none!important;overflow:visible!important;
}
.social-shell .social-post:not(.social-reel-post) > .social-post-top :is(.f832-sponsored-ad-badge,.f830-ad-badge){
  font-weight:500!important;letter-spacing:0!important;
}
@media(max-width:480px){
  .social-shell .social-post:not(.social-reel-post) > .social-post-top > .social-post-author > a,
  .social-shell .social-post:not(.social-reel-post) > .social-post-top > .social-post-author > .f830-ad-author-name,
  .social-shell .social-post:not(.social-reel-post) > .social-post-top .social-post-byline,
  .social-shell .social-post:not(.social-reel-post) > .social-post-top .social-post-byline time,
  .social-shell .social-post:not(.social-reel-post) > .social-post-top :is(.f832-sponsored-ad-badge,.f830-ad-badge){font-size:13.5px!important}
  .social-shell .social-post:not(.social-reel-post) > .social-post-top .social-post-author>a{max-width:47%!important}
}

/* Repost/quote header identity follows the same text scale as the main feed. */
.social-shell .social-post:not(.social-reel-post) .f254-quote-reposter-line,
.social-shell .social-post:not(.social-reel-post) .f254-quote-reposter-line :is(strong,time,.f254-quote-reposter-username){
  font-size:14px!important;line-height:1.32!important;
}
@media(max-width:480px){
 .social-shell .social-post:not(.social-reel-post) .f254-quote-reposter-line,
 .social-shell .social-post:not(.social-reel-post) .f254-quote-reposter-line :is(strong,time,.f254-quote-reposter-username){font-size:13.5px!important}
}
/* X-style disclosure: the word "Ad" shares the header scale, not a blue chip. */
.social-shell .social-post:not(.social-reel-post) > .social-post-top :is(.f832-sponsored-ad-badge,.f830-ad-badge){
  background:transparent!important;color:var(--social-muted,#69737d)!important;
  border:0!important;border-radius:0!important;box-shadow:none!important;padding:0 2px!important;
}

/* V1345 unified readable member text — feeds, Live feed cards, Reels, quotes,
   ads, comments/replies and profile bios. No changes to player or card geometry. */
html[data-theme="light"]{--f254-content-link:#1d9bf0}
html[data-theme="dark"]{--f254-content-link:#64baff}
/* The rich-text formatter emits this one class in all native card surfaces.
   Override the legacy bold/forced #1877f2 rule without recoloring buttons. */
.social-shell .social-rich-link,
.social-shell .social-post-text a.social-rich-link,
.social-shell .social-comment-text a.social-rich-link,
.social-shell .social-profile-bio a.social-rich-link,
.social-shell .f254-quote-own-text a.social-rich-link,
.social-shell .f254-quote-source-text a.social-rich-link,
.social-shell .f830-ad-body a.social-rich-link,
.social-shell .f254-reel-caption-preview a.social-rich-link,
.social-shell .f773-date-bio a.social-rich-link{
  color:var(--f254-content-link,#1d9bf0)!important;
  font-weight:400!important;
  text-decoration:none!important;
  text-shadow:none!important;
  overflow-wrap:anywhere;
}
.social-shell .social-rich-link:is(:hover,:focus-visible){
  text-decoration:underline!important;text-underline-offset:2px;
}
/* Reel overlays sit on top of moving video, so preserve readable link contrast. */
.social-shell .social-reel-post .f254-reel-caption-preview a.social-rich-link{
  color:#9ed8ff!important;text-shadow:0 1px 2px #000!important;
}
/* Preserve configured font sizes and original paragraph breaks; normalize ink,
   line rhythm and avoid legacy heavy/bold rich tokens in captions. */
.social-shell :is(.f813-feed-caption,.f254-quote-own-text,.f254-quote-source-text,
  .social-comment-text,.social-profile-bio,.f773-date-bio){
  font-weight:400;line-height:1.5;letter-spacing:normal;overflow-wrap:anywhere;
}
.social-shell :is(.f813-feed-caption,.f254-quote-own-text,.f254-quote-source-text,
  .social-comment-text,.social-profile-bio,.f773-date-bio) .social-expand-toggle{
  color:var(--f254-content-link,#1d9bf0)!important;
  font:inherit;font-weight:400!important;line-height:inherit;
  margin-inline-start:.45em;text-decoration:none!important;
}
.social-shell :is(.f813-feed-caption,.f254-quote-own-text,.f254-quote-source-text,
  .social-comment-text,.social-profile-bio,.f773-date-bio) .social-expand-toggle:is(:hover,:focus-visible){
  text-decoration:underline!important;text-underline-offset:2px;
}
/* Hidden preview/full-caption copies must never appear simultaneously. */
.social-shell [data-expandable-text] > :is(.social-expand-preview,.social-expand-content,.social-expand-toggle)[hidden]{display:none!important}

/* V1346 — one shared timeline/navigation polish. This is the LAST social CSS
   on every full app page; it unifies the existing components instead of
   creating new wrappers, SVGs, media requests, or JavaScript observers. */
.social-shell{
  --f1346-action-ink:#536471;
  --f1346-media-line:rgba(15,20,25,.11);
  --f1346-divider:#e9edef;
  --f1346-navigation-ink:#0f1419;
}
html[data-theme="dark"] .social-shell{
  --f1346-action-ink:#a8b1bb;
  --f1346-media-line:rgba(231,233,234,.22);
  --f1346-divider:#353941;
  --f1346-navigation-ink:#e7e9ea;
}
/* 24x24 native viewBox artwork, shared visual stroke, no icon-library swap.
   Do not alter path fill: active hearts, notification dots, and the create +
   have independent state styling. */
.social-shell :is(
  .social-topbar,.social-sidebar,.social-rail,.social-bottom-nav,
  .social-post-actions,.social-comments,.social-modal,.f254-media-lightbox,
  .f254-repost-sheet,.f1171-comment-action
) .social-icon{
  stroke-width:1.85;stroke-linecap:round;stroke-linejoin:round;
  flex-shrink:0;
}
.social-shell :is(.social-topbar,.social-sidebar,.social-rail) .social-icon{
  width:21px;height:21px;
}
.social-shell .social-nav-link{
  gap:13px;font-weight:600;line-height:1.3;
}
.social-shell .social-nav-link.active{font-weight:700}
.social-shell .social-rail :is(.social-suggest-user,.social-rail-meta,.social-rail-heading){align-items:center}
.social-shell .social-rail .social-icon{stroke-width:1.85}
.social-shell .social-bottom-nav .social-icon{width:23px;height:23px;stroke-width:1.9}
/* Do not override V1340's black/white selected state or create-button colors. */
.social-shell .social-bottom-nav .social-mobile-create .social-icon{stroke-width:2.1}

/* Timeline engagement: same icon weight, ink, line height, and tabular counts
   in posts, paid ads, Live feed cards, quotes, comments, replies, and sheets. */
.social-shell :is(.social-post-actions,.f1160-comment-actions,.f1158-feed-card .social-post-actions){
  align-items:center;min-width:0;
}
.social-shell :is(.social-post-actions,.f1160-comment-actions) .social-post-tool{
  display:inline-flex;align-items:center;justify-content:center;
  vertical-align:middle;gap:5px;line-height:1.15;font-weight:400;
  box-shadow:none!important;text-shadow:none;
}
.social-shell :is(.social-post-actions,.f1160-comment-actions) .social-post-tool>.social-icon{
  width:20px;height:20px;stroke-width:1.85;
}
.social-shell :is(.social-post-actions,.f1160-comment-actions) .social-action-count{
  font-size:12px;font-weight:400;line-height:1.15;
  font-variant-numeric:tabular-nums;letter-spacing:0;opacity:1;
  color:var(--f1346-action-ink);
}
.social-shell .social-post:not(.social-reel-post) :is(.social-post-actions,.f1160-comment-actions)
  .social-post-tool:not(.is-liked):not(.is-active){color:var(--f1346-action-ink)}
.social-shell :is(.social-comments,.f254-media-lightbox) .social-post-tool:not(.is-liked):not(.is-active){
  color:var(--f1346-action-ink);
}
/* Preserve liked/selected feedback instead of rendering every interaction grey. */
.social-shell .social-post-tool:is(.is-active,.is-liked) .social-action-count{color:inherit}
/* Reels use white controls over live moving images; never turn them grey. */
.social-shell .social-reel-post .social-post-actions .social-post-tool,
.social-shell .social-reel-post .social-post-actions .social-action-count{
  color:#f1f3f5;
}
.social-shell .social-reel-post .social-post-actions .social-post-tool.is-liked{color:#ff7996}
.social-shell .social-reel-post .social-post-actions .social-post-tool.is-active:not(.is-liked){color:#9ed8ff}

/* Media outlines stay INSIDE the original dimensions. No border-box growth,
   resizing, black sidebars, object-fit changes, transforms, or drop shadows. */
.social-shell .social-post:not(.social-reel-post) :is(
  .social-post-media,.f254-feed-gallery,.social-locked-media,.social-locked-teaser
),
.social-shell .social-reels-grid .social-reel-thumbnail,
.social-shell .f254-media-lightbox .f254-lightbox-stage > :is(img,video){
  outline:1px solid var(--f1346-media-line)!important;
  outline-offset:-1px!important;
  box-shadow:none!important;
}
.social-shell .social-post:not(.social-reel-post) :is(
  .social-post-media,.f254-feed-gallery,.social-locked-media,.social-locked-teaser
){border-radius:15px!important}
/* Nested gallery containers are not bordered twice. */
.social-shell .social-post:not(.social-reel-post) .f254-feed-gallery :is(.social-post-media,.f254-feed-gallery),
.social-shell .social-post:not(.social-reel-post) .social-post-video-player .social-post-media{
  outline:none!important;
}
/* Fullscreen Reels/Live must remain edge-to-edge. */
.social-shell .social-reel-post .social-reel-media,
.social-shell .social-reel-post .f254-live-reel-player{
  outline:none!important;border-radius:0!important;
}
/* Native video controls, carousel arrows, media buttons keep original geometry. */
.social-shell .social-post:not(.social-reel-post) .social-post-video-player .social-video-control .social-icon{
  stroke-width:1.85;
}

/* Clean separators without enclosing the entire feed card. Keep native theme
   surfaces, comment scroll handling, sheet stacking, and touch hit areas. */
.social-shell .social-post:not(.social-reel-post){
  border-bottom-color:var(--f1346-divider);
  box-shadow:none!important;
}
.social-shell :is(.social-topbar,.social-bottom-nav){
  box-shadow:none!important;
  border-color:var(--f1346-divider);
}
.social-shell :is(.social-rail-section,.social-post-menu,.social-modal),
.social-shell :is(.social-comments,.f254-media-lightbox .f254-lightbox-detail){
  box-shadow:none!important;
}
body > .f254-repost-sheet[popover]:popover-open .f254-repost-sheet-inner,
body > .f1171-comment-action[popover]:popover-open,
dialog.f254-repost-sheet[open] .f254-repost-sheet-inner{
  box-shadow:none!important;
}
/* Plain popup iconography; no new backgrounds, shadows, or motion. */
.social-shell :is(.social-comments,.social-modal,.f254-media-lightbox) :is(
  .social-close-comments,.social-plain-icon,.social-post-tool
) .social-icon{stroke-width:1.85}
@media(max-width:760px){
  .social-shell :is(.social-post-actions,.f1160-comment-actions) .social-post-tool{gap:4px}
  .social-shell :is(.social-post-actions,.f1160-comment-actions) .social-action-count{font-size:11px}
  .social-shell .social-nav-link .social-icon{width:21px;height:21px}
}


/* V1347 — compact NON-LIVE Reels from the actual children, not fixed bottom
   offsets. The media remains absolute/fullscreen. Identity/caption/optional CTA
   and engagement are the existing nodes in natural DOM order; optional nodes
   consume no height when absent. Live Reel panels are deliberately excluded. */
.social-shell .social-reel-watch .social-reel-panel:not(.f1009-live-reel-panel):not([data-f1009-live-reel])
  > .social-reel-post:not([data-f1160-live-id]){
  --f1347-clearance:23px;
  display:flex!important;flex-direction:column!important;
  justify-content:flex-end!important;align-items:stretch!important;
  gap:6px!important;
  padding:0 14px!important;
  padding-bottom:var(--f1347-clearance)!important;
  box-sizing:border-box!important;
}
/* The playback seek bar belongs to the watcher, not the article. Its reveal
   shifts the whole group together, without four independent coordinates. */
.social-shell .social-reel-watch .social-reel-panel[data-reel-transport-raised]:not(.f1009-live-reel-panel):not([data-f1009-live-reel])
  > .social-reel-post:not([data-f1160-live-id]){
  --f1347-clearance:61px;
}
.social-shell .social-reel-watch .social-reel-panel:not(.f1009-live-reel-panel):not([data-f1009-live-reel])
  > .social-reel-post:not([data-f1160-live-id])
  > :is(.social-post-top,.f254-reel-caption-wrap,.f830-reel-cta,.f837-reel-website,.f832-optional-post-cta,.social-post-actions){
  position:relative!important;inset:auto!important;
  margin:0!important;min-width:0!important;max-width:100%!important;
  flex-shrink:0!important;
}
.social-shell .social-reel-watch .social-reel-panel:not(.f1009-live-reel-panel):not([data-f1009-live-reel])
  > .social-reel-post:not([data-f1160-live-id])
  > .social-post-top{width:100%!important;min-height:39px;}
.social-shell .social-reel-watch .social-reel-panel:not(.f1009-live-reel-panel):not([data-f1009-live-reel])
  > .social-reel-post:not([data-f1160-live-id])
  > .f254-reel-caption-wrap{
  width:100%!important;max-height:none!important;
  padding:2px 2px!important;background:transparent!important;
  border:0!important;overflow:hidden!important;box-sizing:border-box!important;
}
.social-shell .social-reel-watch .social-reel-panel:not(.f1009-live-reel-panel):not([data-f1009-live-reel])
  > .social-reel-post:not([data-f1160-live-id])
  > :is(.f830-reel-cta,.f837-reel-website,.f832-optional-post-cta){
  width:max-content!important;max-width:100%!important;align-self:flex-start!important;
}
.social-shell .social-reel-watch .social-reel-panel:not(.f1009-live-reel-panel):not([data-f1009-live-reel])
  > .social-reel-post:not([data-f1160-live-id])
  > .social-post-actions{width:100%!important;min-height:51px;box-sizing:border-box!important;}
@media(max-width:390px){
  .social-shell .social-reel-watch .social-reel-panel:not(.f1009-live-reel-panel):not([data-f1009-live-reel])
    > .social-reel-post:not([data-f1160-live-id]){padding-left:11px!important;padding-right:11px!important;}
}
/* V1358: no padding animation during a Reel swipe. Only the selected
   panel's clearance changes when its own playback controls appear. */
@media(prefers-reduced-motion:reduce){
  .social-shell .social-reel-watch .social-reel-panel:not(.f1009-live-reel-panel):not([data-f1009-live-reel])
    > .social-reel-post:not([data-f1160-live-id]){transition:none!important;}
}
/* Only the left-side AUTHOR avatars of ordinary feed/ads/Live feed cards
   grow slightly. Reels, Live Reels, comments, bottom bar and sidebar do not. */
.social-shell .social-post:not(.social-reel-post) > .social-post-top{
  grid-template-columns:56px minmax(0,1fr) 28px!important;
  min-height:56px!important;
}
.social-shell .social-post:not(.social-reel-post) > .social-post-top > .social-post-avatar,
.social-shell .social-post:not(.social-reel-post) > .social-post-top > .social-post-avatar > .social-avatar{
  width:56px!important;height:56px!important;
}
.social-shell .social-post:not(.social-reel-post) > .social-post-top > .social-post-avatar{
  flex:0 0 56px!important;
}
.social-shell .social-post:not(.social-reel-post) > .f254-quote-reposter-head .f254-quote-reposter-avatar,
.social-shell .social-post:not(.social-reel-post) > .f254-quote-reposter-head .f254-quote-reposter-avatar > .social-avatar{
  width:54px!important;height:54px!important;
}
@media(max-width:650px){
  .social-shell .social-post:not(.social-reel-post) > .social-post-top{
    grid-template-columns:54px minmax(0,1fr) 28px!important;
    min-height:54px!important;
  }
  .social-shell .social-post:not(.social-reel-post) > .social-post-top > .social-post-avatar,
  .social-shell .social-post:not(.social-reel-post) > .social-post-top > .social-post-avatar > .social-avatar{
    width:54px!important;height:54px!important;
  }
  .social-shell .social-post:not(.social-reel-post) > .social-post-top > .social-post-avatar{flex-basis:54px!important;}
}
/* V1349 — one visual language for the already-existing Wallet top-up,
   membership gate and creator subscription sheets. No new dialog or checkout. */
#fans254-commerce-overlay.f1349-topup-overlay:not(.finance-provider-active) .finance-sheet,
#f756-premium-gate .f756-gate-panel,
.f872-subscribe-overlay .f872-subscribe-sheet,
.f254-composer-v711 .f1349-premium-fallback {
  --f1349-ink:#101d3b;--f1349-muted:#65728a;--f1349-surface:#fffcfa;
  --f1349-ice:#eaf1ff;--f1349-umber:#f9efe8;--f1349-blue:#0864ee;
  position:relative;isolation:isolate;overflow-x:hidden;background:var(--f1349-surface)!important;
  color:var(--f1349-ink)!important;box-shadow:none!important;border:0!important;
  border-radius:28px;padding:18px 19px 17px;
}
#fans254-commerce-overlay.f1349-topup-overlay:not(.finance-provider-active) .finance-sheet::before,
#f756-premium-gate .f756-gate-panel::before,
.f872-subscribe-overlay .f872-subscribe-sheet::before,
.f254-composer-v711 .f1349-premium-fallback::before {
  content:"";position:absolute;z-index:-1;pointer-events:none;top:-214px;right:-24%;width:84%;height:350px;
  border-radius:0 0 0 95%;transform:rotate(-12deg);background:var(--f1349-umber);
}
/* Cool curved accent under the umber header: scoped to the four existing sheets. */
#fans254-commerce-overlay.f1349-topup-overlay:not(.finance-provider-active) .finance-sheet::after,
#f756-premium-gate .f756-gate-panel::after,
.f872-subscribe-overlay .f872-subscribe-sheet::after,
.f254-composer-v711 .f1349-premium-fallback::after {
 content:"";position:absolute;z-index:-1;pointer-events:none;top:115px;right:-28%;width:58%;height:100px;
 border-radius:82% 0 0 100%;transform:rotate(-16deg);background:rgba(216,231,255,.48);
}
#fans254-commerce-overlay.f1349-topup-overlay .finance-sheet{width:min(100%,540px);max-height:min(92dvh,900px);padding-bottom:8px}
#fans254-commerce-overlay.f1349-topup-overlay .finance-grab{display:block!important;width:38px;height:4px;margin:0 auto 13px;background:#d9dce7;border-radius:20px}
#fans254-commerce-overlay.f1349-topup-overlay .finance-sheet-head{margin:0 0 15px;gap:10px}
#fans254-commerce-overlay.f1349-topup-overlay .finance-head-icon{height:48px;width:48px;flex:none;border-radius:17px;background:#e3eeff;color:#0864ee}
#fans254-commerce-overlay.f1349-topup-overlay .finance-head-icon svg{height:27px;width:27px}
#fans254-commerce-overlay.f1349-topup-overlay .finance-sheet-head h2{font-size:clamp(21px,4vw,25px);font-weight:800;letter-spacing:-.04em;color:var(--f1349-ink);line-height:1.14;margin:0 0 4px}
#fans254-commerce-overlay.f1349-topup-overlay .finance-sheet-head p{font-size:12px;line-height:1.35;color:var(--f1349-muted)}
#fans254-commerce-overlay.f1349-topup-overlay .finance-sheet-head .finance-close{width:36px;height:36px;border:0;border-radius:50%;background:#f2f3f8;color:#475778}
#fans254-commerce-overlay.f1349-topup-overlay .finance-field-label{font-size:12px;font-weight:800;color:var(--f1349-ink);margin:12px 0 7px}
#fans254-commerce-overlay.f1349-topup-overlay .finance-amount-options{gap:6px;grid-template-columns:repeat(4,minmax(0,1fr))}
#fans254-commerce-overlay.f1349-topup-overlay .finance-amount-options button{min-height:39px!important;padding:6px 3px;border:0;border-radius:50px;background:#f8f1eb;color:var(--f1349-ink);font-size:clamp(10px,2.3vw,12px);font-weight:730;white-space:nowrap}
#fans254-commerce-overlay.f1349-topup-overlay .finance-amount-options button.selected{background:var(--f1349-blue)!important;color:#fff!important;box-shadow:none!important}
#fans254-commerce-overlay.f1349-topup-overlay .finance-input-label{color:var(--f1349-ink);font-size:12px;margin:12px 0 0;gap:6px}
#fans254-commerce-overlay.f1349-topup-overlay .finance-currency-input{border:1px solid #dce4f1;background:#f8faff;border-radius:17px;min-height:43px;overflow:hidden;box-shadow:none}
#fans254-commerce-overlay.f1349-topup-overlay .finance-currency-input>span{font-size:12px;background:#eaf0fd;color:#62799e;padding:10px 12px}
#fans254-commerce-overlay.f1349-topup-overlay .finance-currency-input input{font-size:15px;font-weight:740;min-height:40px;padding:8px 12px;background:transparent;border:0;color:var(--f1349-ink)}
#fans254-commerce-overlay.f1349-topup-overlay .finance-methods{display:grid;grid-template-columns:repeat(var(--f1349-method-count,2),minmax(0,1fr))!important;gap:7px;margin:0}
#fans254-commerce-overlay.f1349-topup-overlay .finance-methods>button{display:flex!important;flex-flow:row nowrap;align-items:center;justify-content:center;gap:5px;min-height:49px!important;width:100%!important;padding:7px 8px!important;border:1px solid #e9e5e3!important;border-radius:50px!important;box-shadow:none!important;background:#f9f4f0!important;white-space:nowrap;overflow:hidden}
#fans254-commerce-overlay.f1349-topup-overlay .finance-methods>button.selected{border-color:#0864ee!important;box-shadow:inset 0 0 0 1px #0864ee!important;background:#ebf2ff!important}
#fans254-commerce-overlay.f1349-topup-overlay .finance-methods .finance-method-logo{width:min(52px,38%)!important;max-width:52px!important;height:24px;object-fit:contain;margin:0;flex:0 1 auto}
#fans254-commerce-overlay.f1349-topup-overlay .finance-methods .finance-method-copy{display:block;min-width:0}
#fans254-commerce-overlay.f1349-topup-overlay .finance-methods .finance-method-copy strong{font-size:clamp(10px,2vw,12px);font-weight:760;line-height:1.15;white-space:nowrap}
#fans254-commerce-overlay.f1349-topup-overlay .finance-methods .finance-method-copy small{display:none!important}
#fans254-commerce-overlay.f1349-topup-overlay .finance-methods .finance-method-check{display:none!important}
#fans254-commerce-overlay.f1349-topup-overlay .f1349-topup-total{border:0;background:#faf0e9;border-radius:18px;padding:11px 14px;min-height:44px;margin-top:12px;color:var(--f1349-ink)}
#fans254-commerce-overlay.f1349-topup-overlay .f1349-topup-total>div{display:flex;align-items:center;justify-content:space-between;gap:10px;width:100%}
#fans254-commerce-overlay.f1349-topup-overlay .f1349-topup-total span{font-size:13px;color:var(--f1349-ink);font-weight:750}
#fans254-commerce-overlay.f1349-topup-overlay .f1349-topup-total strong{font-size:17px;color:var(--f1349-ink);font-weight:820;white-space:nowrap}
#fans254-commerce-overlay.f1349-topup-overlay .finance-payment-info{margin:10px 0 0;padding:0 3px;background:transparent!important;border:0!important;color:var(--f1349-muted);font-size:11px;line-height:1.5}
#fans254-commerce-overlay.f1349-topup-overlay .finance-sheet-footer{position:sticky;bottom:0;margin:10px -3px 0;padding:8px 3px max(8px,env(safe-area-inset-bottom));background:var(--f1349-surface);z-index:4;gap:5px}
#fans254-commerce-overlay.f1349-topup-overlay .finance-sheet-footer .finance-pay-btn{min-height:45px!important;height:auto;font-size:14px;font-weight:800;border-radius:50px!important;box-shadow:none!important;background:#0864ee!important;color:#fff!important}
#fans254-commerce-overlay.f1349-topup-overlay .finance-sheet-footer .finance-pay-btn>.finance-svg{display:none}
#fans254-commerce-overlay.f1349-topup-overlay [data-f1349-topup-cta-icon]:not([hidden]){display:inline-flex;align-items:center}
#fans254-commerce-overlay.f1349-topup-overlay [data-f1349-topup-cta-icon] svg{height:19px;width:19px}
#fans254-commerce-overlay.f1349-topup-overlay .finance-sheet-footer>small{color:var(--f1349-muted);font-size:10px;gap:5px}
#fans254-commerce-overlay.f1349-topup-overlay .finance-sheet-footer>small svg{height:13px;width:13px}
#fans254-commerce-overlay.f1349-topup-overlay .finance-phone-input{border-radius:14px;background:#f7f9fc}

/* Wallet page uses the SAME existing top-up trigger and gateway availability. */
.finance-screen.wallet-screen .finance-wallet-topup-promo{position:relative;isolation:isolate;overflow:hidden;display:grid;grid-template-columns:44px minmax(0,1fr);gap:10px 12px;align-items:center;padding:16px 17px;border:1px solid #ecedf2;border-radius:23px;background:#fffcfa;box-shadow:none!important}
.finance-screen.wallet-screen .finance-wallet-topup-promo::before{content:"";position:absolute;z-index:-1;pointer-events:none;right:-45px;top:-160px;width:78%;height:260px;border-radius:0 0 0 98%;background:#faeee6}
.finance-screen.wallet-screen .finance-wallet-brand{display:grid!important;place-items:center;width:44px;height:44px;border:0!important;border-radius:14px;background:#e5efff;color:#0864ee;padding:0;margin:0}
.finance-screen.wallet-screen .finance-wallet-brand svg{width:25px;height:25px}
.finance-screen.wallet-screen .finance-wallet-topup-intro{min-width:0}
.finance-screen.wallet-screen .finance-wallet-topup-intro strong{font-size:15px;font-weight:800;color:#15223d}
.finance-screen.wallet-screen .finance-wallet-topup-intro p{font-size:11px;color:#66738c;margin:3px 0 0}
.finance-screen.wallet-screen .finance-wallet-topup-promo .finance-blue-btn{grid-column:1/-1;width:100%;min-height:43px;border-radius:50px!important;background:#0864ee!important;box-shadow:none!important;color:#fff;font-size:13px;font-weight:800}
.finance-screen.wallet-screen .finance-wallet-provider-actions{grid-column:1/-1;display:flex!important;flex-wrap:wrap;gap:7px}
.finance-screen.wallet-screen .finance-wallet-provider-actions>button:not([hidden]){flex:1 1 120px;min-width:0;min-height:43px;padding:8px 10px;border:1px solid #e8e6e8;border-radius:50px;background:#faf3ee;color:#14213a;display:inline-flex;align-items:center;justify-content:center;gap:8px;font-weight:770;font-size:12px;overflow:hidden}
.finance-screen.wallet-screen .finance-wallet-provider-actions>button img{width:51px;max-width:40%;height:24px;object-fit:contain}
.finance-screen.wallet-screen .finance-wallet-provider-actions>button[disabled]{opacity:.5;cursor:not-allowed}
.finance-screen.wallet-screen .finance-wallet-provider-status{grid-column:1/-1;margin:0;font-size:11px;line-height:1.35;color:#718095}

/* Shared membership upsell — only the popup, not /membership or admin plan configuration. */
#f756-premium-gate .f756-gate-panel{width:min(100%,430px);max-height:90dvh;text-align:center;overflow-y:auto;padding:21px 18px 16px}
#f756-premium-gate .f756-gate-icon{width:56px;height:56px;border:0;border-radius:17px;margin:0 auto 11px;background:#e5efff;color:#0864ee}
#f756-premium-gate .f756-gate-icon svg{width:29px;height:29px}
#f756-premium-gate .f756-gate-close{width:35px;height:35px;top:14px;right:14px;border-radius:50%;background:#f4f5f8;color:#4a5972}
#f756-premium-gate .f756-gate-kicker{font-size:10px;font-weight:800;letter-spacing:.12em;margin:0 0 5px;color:#0a6cef}
#f756-premium-gate .f756-gate-panel h2{font-size:clamp(21px,4.2vw,26px);font-weight:840;line-height:1.18;letter-spacing:-.04em;margin:0 22px 7px;color:var(--f1349-ink)}
#f756-premium-gate .f756-gate-description{font-size:12px;line-height:1.5;color:var(--f1349-muted);margin:0 0 12px}
#f756-premium-gate .f756-gate-current{margin:0 0 8px;padding:6px 10px;background:var(--f1349-ice);font-size:11px;border-radius:16px}
#f756-premium-gate .f756-gate-options{display:grid;gap:7px;margin:11px 0 0}
#f756-premium-gate .f756-gate-plan,.f872-subscribe-overlay .f872-plan-choice{border:0!important;border-radius:20px!important;box-shadow:none!important;min-height:67px;background:#edf3ff!important;padding:10px 12px!important;display:flex;align-items:center;text-align:left;gap:10px;color:var(--f1349-ink)!important;text-decoration:none}
#f756-premium-gate .f756-gate-plan.f1349-warm-plan,.f872-subscribe-overlay .f872-plan-choice.f1349-warm-plan{background:#fbf0e7!important}
#f756-premium-gate .f1349-plan-emblem,.f872-subscribe-overlay .f1349-plan-emblem{display:grid;place-items:center;flex:none;height:38px;width:38px;border-radius:13px;background:#deebff;color:#0864ee}
#f756-premium-gate .f1349-warm-plan .f1349-plan-emblem,.f872-subscribe-overlay .f1349-warm-plan .f1349-plan-emblem{background:#f9e4ca;color:#a36d2e}
#f756-premium-gate .f1349-plan-emblem svg,.f872-subscribe-overlay .f1349-plan-emblem svg{height:22px;width:22px}
#f756-premium-gate .f756-gate-plan-title{flex:1 1 auto;min-width:0;display:grid;gap:2px}
#f756-premium-gate .f756-gate-plan-title strong{color:var(--f1349-ink);font-size:13px;line-height:1.2}
#f756-premium-gate .f756-gate-plan-title small{font-size:11px;color:var(--f1349-muted);line-height:1.25}
#f756-premium-gate .f756-gate-plan b{font-size:13px;color:var(--f1349-ink);white-space:nowrap;padding:7px 9px;border-radius:50px;background:#e3ecff}
#f756-premium-gate .f756-gate-plan.f1349-warm-plan b{background:#fae8d8}
#f756-premium-gate .f1349-upgrade-foot{position:sticky;bottom:0;padding:10px 0 0;background:var(--f1349-surface);z-index:3}
#f756-premium-gate .f756-gate-cta,.f872-subscribe-overlay .f872-subscribe-pay{border:0!important;border-radius:50px!important;background:#0864ee!important;color:#fff!important;min-height:44px!important;font-size:13px!important;font-weight:800!important;box-shadow:none!important}
#f756-premium-gate .f756-gate-later{margin:5px auto 0;font-size:12px;color:var(--f1349-muted)}
#f756-premium-gate .f756-gate-unavailable{font-size:11px;color:var(--f1349-muted)}

/* Existing creator-made subscriptions use the SAME palette; provider buttons expand as toggles change. */
.f872-subscribe-overlay .f872-subscribe-sheet{width:min(500px,100%);max-height:min(90dvh,750px);padding:17px 17px 14px;text-align:center}
.f872-subscribe-overlay .f872-subscribe-head{display:flex;justify-content:center;align-items:center;flex-direction:column;gap:7px;margin-bottom:4px}
.f872-subscribe-overlay .f1349-creator-icon{display:grid;place-items:center;width:53px;height:53px;border-radius:16px;background:#e5efff;color:#0864ee}
.f872-subscribe-overlay .f1349-creator-icon svg{width:27px;height:27px}
.f872-subscribe-overlay .f872-subscribe-head small{color:#0864ee;font-size:10px;letter-spacing:.12em}
.f872-subscribe-overlay .f872-subscribe-head h2{font-size:22px;font-weight:820;letter-spacing:-.04em;color:var(--f1349-ink);margin:3px 32px 1px;line-height:1.22;overflow-wrap:anywhere}
.f872-subscribe-overlay .f872-subscribe-head>button{position:absolute;top:0;right:0;height:35px;width:35px;border-radius:50%;background:#f4f5f8;color:#495a73}
.f872-subscribe-overlay .f872-subscribe-intro{margin:0 0 12px;font-size:12px;color:var(--f1349-muted);line-height:1.4}
.f872-subscribe-overlay .f872-plan-options{display:grid;gap:7px;margin:0}
.f872-subscribe-overlay .f872-plan-choice{width:100%;font-size:12px}
.f872-subscribe-overlay .f872-plan-choice.is-selected{outline:2px solid #0864ee;outline-offset:-2px}
.f872-subscribe-overlay .f872-plan-choice>span:not(.f1349-plan-emblem){flex:1;min-width:0;display:grid;gap:3px;text-align:left}
.f872-subscribe-overlay .f872-plan-choice strong{font-size:13px;color:var(--f1349-ink)}
.f872-subscribe-overlay .f872-plan-choice small{font-size:11px;color:var(--f1349-muted)}
.f872-subscribe-overlay .f872-plan-choice>b{font-size:13px;white-space:nowrap;color:var(--f1349-ink)}
.f872-subscribe-overlay .f872-subscribe-status{font-size:11px;line-height:1.45;margin:8px 0;color:var(--f1349-muted)}
.f872-subscribe-overlay .f876-subscribe-payment:not([hidden]){position:sticky;bottom:0;z-index:3;display:flex!important;flex-wrap:wrap;gap:7px;margin:8px -2px 0;padding:10px 2px max(5px,env(safe-area-inset-bottom));background:var(--f1349-surface)}
.f872-subscribe-overlay .f876-subscribe-payment>button:not([hidden]){flex:1 1 110px;min-height:44px;border:0;border-radius:50px;padding:8px 11px;background:#f9f2ec;color:var(--f1349-ink);box-shadow:none;white-space:nowrap;font-size:12px}
.f872-subscribe-overlay .f876-subscribe-payment .f872-subscribe-pay{flex:1 1 120px}
.f872-subscribe-overlay .f876-subscribe-payment img{width:32px;height:21px;object-fit:contain}
.f872-subscribe-overlay .f876-payment-help{font-size:10px;line-height:1.45;color:var(--f1349-muted)}
.f254-composer-v711 .f1349-premium-fallback{width:min(100%,345px);gap:7px;padding:22px 16px 16px;text-align:center}
.f254-composer-v711 .f1349-premium-fallback .f254-premium-icon{height:52px;width:52px;border-radius:15px;background:#e5efff;color:#0864ee}
.f254-composer-v711 .f1349-premium-fallback .f254-premium-icon svg{width:28px;height:28px}
.f254-composer-v711 .f1349-premium-fallback .f1349-premium-eyebrow{color:#0864ee;font-weight:800;letter-spacing:.11em;font-size:10px}
.f254-composer-v711 .f1349-premium-fallback h3{font-size:21px;color:var(--f1349-ink)}
.f254-composer-v711 .f1349-premium-fallback .f254-upgrade{background:#0864ee;color:#fff;border-radius:50px;min-height:43px;display:flex;align-items:center;justify-content:center;width:100%;text-decoration:none;font-weight:800}
.f254-composer-v711 .f1349-premium-fallback .f254-maybe{border-radius:50px;box-shadow:none}

/* Dark mode is a true charcoal version of the same design, not a light-popup flash. */
html[data-theme=dark] #fans254-commerce-overlay.f1349-topup-overlay .finance-sheet,
html[data-theme=dark] #f756-premium-gate .f756-gate-panel,
html[data-theme=dark] .f872-subscribe-overlay .f872-subscribe-sheet,
html[data-theme=dark] .f254-composer-v711 .f1349-premium-fallback{
  --f1349-ink:#f2f5fa;--f1349-muted:#acb8c8;--f1349-surface:#22262e;
  --f1349-ice:#2a3c58;--f1349-umber:#302b2a;
}
html[data-theme=dark] #fans254-commerce-overlay.f1349-topup-overlay .finance-head-icon,
html[data-theme=dark] #f756-premium-gate .f756-gate-icon,
html[data-theme=dark] #f756-premium-gate .f1349-plan-emblem,
html[data-theme=dark] .f872-subscribe-overlay .f1349-creator-icon,
html[data-theme=dark] .f872-subscribe-overlay .f1349-plan-emblem,
html[data-theme=dark] .f254-composer-v711 .f1349-premium-fallback .f254-premium-icon{background:#28466d;color:#9bc7ff}
html[data-theme=dark] #fans254-commerce-overlay.f1349-topup-overlay .finance-methods>button,
html[data-theme=dark] .f872-subscribe-overlay .f876-subscribe-payment>button:not([hidden]){background:#373133!important;border-color:#454047!important;color:#f4f5fb}
html[data-theme=dark] #fans254-commerce-overlay.f1349-topup-overlay .finance-methods>button.selected{background:#243d61!important;border-color:#5399ff!important}
html[data-theme=dark] #fans254-commerce-overlay.f1349-topup-overlay .finance-amount-options button{background:#34313a;color:#edf2fc}
html[data-theme=dark] #fans254-commerce-overlay.f1349-topup-overlay .finance-currency-input{background:#292f39;border-color:#454e5b}
html[data-theme=dark] #fans254-commerce-overlay.f1349-topup-overlay .finance-currency-input>span{background:#344358;color:#d5e5ff}
html[data-theme=dark] #fans254-commerce-overlay.f1349-topup-overlay .finance-currency-input input{color:#f1f5fc}
html[data-theme=dark] #fans254-commerce-overlay.f1349-topup-overlay .f1349-topup-total{background:#35302e}
html[data-theme=dark] #f756-premium-gate .f756-gate-plan,
html[data-theme=dark] .f872-subscribe-overlay .f872-plan-choice{background:#2e3c51!important}
html[data-theme=dark] #f756-premium-gate .f1349-warm-plan,
html[data-theme=dark] .f872-subscribe-overlay .f1349-warm-plan{background:#3b312c!important}
html[data-theme=dark] #f756-premium-gate .f756-gate-plan b{background:#3c506f;color:#f2f6ff}
html[data-theme=dark] #f756-premium-gate .f1349-warm-plan b{background:#4a3a30;color:#f2e6d5}
html[data-theme=dark] #f756-premium-gate .f756-gate-plan-title strong,
html[data-theme=dark] #f756-premium-gate .f756-gate-plan-title small,
html[data-theme=dark] .f872-subscribe-overlay .f872-plan-choice strong,
html[data-theme=dark] .f872-subscribe-overlay .f872-plan-choice small{color:inherit}
html[data-theme=dark] .finance-screen.wallet-screen .finance-wallet-topup-promo{background:#22262e;border-color:#3c4350}
html[data-theme=dark] .finance-screen.wallet-screen .finance-wallet-topup-promo::before{background:#332e2d}
html[data-theme=dark] .finance-screen.wallet-screen .finance-wallet-topup-intro strong{color:#f2f5fa}
html[data-theme=dark] .finance-screen.wallet-screen .finance-wallet-topup-intro p{color:#acb8c8}
html[data-theme=dark] .finance-screen.wallet-screen .finance-wallet-provider-actions>button:not([hidden]){background:#353339;color:#f1f5fa;border-color:#46434b}
@media(max-width:760px){
  #fans254-commerce-overlay.f1349-topup-overlay .finance-overlay{padding:0}
  #fans254-commerce-overlay.f1349-topup-overlay .finance-sheet{width:100%;max-width:none;max-height:calc(100dvh - 10px);border-radius:30px 30px 0 0;padding:15px 14px 6px}
  #f756-premium-gate .f756-gate-panel{width:100%;max-height:90dvh;border-radius:30px 30px 0 0;padding:18px 15px 12px}
  .f872-subscribe-overlay .f872-subscribe-sheet{width:100%;max-height:90dvh;border-radius:30px 30px 0 0;padding:18px 15px 12px}
}
@media(max-width:359px){
  #fans254-commerce-overlay.f1349-topup-overlay .finance-methods .finance-method-logo{width:min(39px,35%)!important}
  #fans254-commerce-overlay.f1349-topup-overlay .finance-methods>button{gap:2px;padding:7px 3px!important}
  #fans254-commerce-overlay.f1349-topup-overlay .finance-methods .finance-method-copy strong{font-size:10px}
  #fans254-commerce-overlay.f1349-topup-overlay .finance-amount-options button{font-size:10px}
  #f756-premium-gate .f756-gate-plan{gap:6px;padding:8px!important}
}
@media(prefers-reduced-motion:reduce){
  #f756-premium-gate .f756-gate-panel,
  #fans254-commerce-overlay.f1349-topup-overlay .finance-sheet{animation:none!important;transition:none!important}
}
/* Previously bundled two-column rule must not expand a third method across a three-column row. */
#fans254-commerce-overlay.f1349-topup-overlay .finance-methods>button:last-child:nth-child(odd){grid-column:auto!important}
/* Native hidden must win over older payment-flex rules when a gateway is switched off. */
.f872-subscribe-overlay .f876-subscribe-payment>button[hidden]{display:none!important}

/* V1350: compact payment logos and selection by outline only. Labels remain
   accessible via image alt / button label; USD checkout retains its disclosure. */
#fans254-commerce-overlay.f1349-topup-overlay .finance-methods>button[data-method=mpesa],
#fans254-commerce-overlay.f1349-topup-overlay .finance-methods>button[data-method=card]{overflow:hidden}
@media(max-width:600px){
 #fans254-commerce-overlay.f1349-topup-overlay .finance-methods>button[data-method=mpesa] .finance-method-copy,
 #fans254-commerce-overlay.f1349-topup-overlay .finance-methods>button[data-method=card] .finance-method-copy{display:none!important}
 #fans254-commerce-overlay.f1349-topup-overlay .finance-methods>button[data-method=mpesa] .finance-method-logo,
 #fans254-commerce-overlay.f1349-topup-overlay .finance-methods>button[data-method=card] .finance-method-logo{width:min(76px,95%)!important;max-width:95%!important;height:26px!important;flex:0 1 auto}
 #fans254-commerce-overlay.f1349-topup-overlay .finance-methods>button{min-width:0;padding:7px 4px!important}
}

/* Provider-brand pills on Wallet page and creator plan selector match the
   mobile checkouts; keep the USD-labelled card distinct. */
@media(max-width:600px){
 .finance-screen.wallet-screen .finance-wallet-provider-actions>button[data-commerce-method=mpesa] span,
 .finance-screen.wallet-screen .finance-wallet-provider-actions>button[data-commerce-method=card] span,
 .f872-subscribe-overlay .f876-subscribe-mpesa .f1350-provider-label,
 .f872-subscribe-overlay .f876-subscribe-card[data-f872-card-subscribe] .f1350-provider-label{display:none}
 .finance-screen.wallet-screen .finance-wallet-provider-actions>button:is([data-commerce-method=mpesa],[data-commerce-method=card]) img{width:min(78px,90%);max-width:90%;height:25px}
 .f872-subscribe-overlay .f876-subscribe-payment>button:is([data-f876-mpesa-topup],[data-f872-card-subscribe]) img{width:min(72px,90%);max-width:90%;height:25px}
}

/* V1351: logo-only mobile provider pills and selection by border only. */
#fans254-commerce-overlay.f1349-topup-overlay .finance-methods .finance-method-check{display:none!important}
@media(max-width:600px){
 #fans254-commerce-overlay.f1349-topup-overlay .finance-methods>button[data-method="mpesa"] .finance-method-copy,
 #fans254-commerce-overlay.f1349-topup-overlay .finance-methods>button[data-method="card"] .finance-method-copy{display:none!important}
 #fans254-commerce-overlay.f1349-topup-overlay .finance-methods>button[data-method="mpesa"] .finance-method-logo,
 #fans254-commerce-overlay.f1349-topup-overlay .finance-methods>button[data-method="card"] .finance-method-logo{width:min(78px,95%)!important;max-width:95%!important;height:26px!important;flex:0 1 auto}
 .finance-screen.wallet-screen .finance-wallet-provider-actions>button[data-commerce-method="mpesa"] span,
 .finance-screen.wallet-screen .finance-wallet-provider-actions>button[data-commerce-method="card"] span{display:none!important}
 .finance-screen.wallet-screen .finance-wallet-provider-actions>button:is([data-commerce-method="mpesa"],[data-commerce-method="card"]) img{width:min(82px,92%);max-width:92%;height:25px}
}

/* V1352: compact approved tip sheet, feed text alignment, Reels action surface,
   and Wallet activity controls. These rules alter layout only, not media fitting. */
#fans254-commerce-overlay.f1352-tip-overlay .finance-sheet{
  position:relative;isolation:isolate;display:flex;flex-direction:column;
  max-height:94dvh;overflow:clip!important;background:#fffdfc!important;
  width:100%!important;min-width:0!important;max-width:min(100vw,560px)!important;box-sizing:border-box!important;
  border-radius:36px 36px 0 0;box-shadow:none!important;
}
#fans254-commerce-overlay.f1352-tip-overlay .finance-sheet::before,
#fans254-commerce-overlay.f1352-tip-overlay .finance-sheet::after{
  content:"";position:absolute;pointer-events:none;z-index:0;
}
#fans254-commerce-overlay.f1352-tip-overlay .finance-sheet::before{
  width:85%;height:260px;right:-24%;top:-136px;border-radius:0 0 0 94%;
  background:rgba(247,229,215,.67);transform:rotate(-10deg);
}
#fans254-commerce-overlay.f1352-tip-overlay .finance-sheet::after{
  width:61%;height:118px;right:-34%;top:202px;border-radius:92% 0 0 95%;
  background:rgba(215,230,252,.57);transform:rotate(-16deg);
}
#fans254-commerce-overlay.f1352-tip-overlay .finance-grab,
#fans254-commerce-overlay.f1352-tip-overlay .finance-sheet-head,
#fans254-commerce-overlay.f1352-tip-overlay .finance-sheet-summary,
#fans254-commerce-overlay.f1352-tip-overlay .finance-sheet-fields,
#fans254-commerce-overlay.f1352-tip-overlay .finance-sheet-status,
#fans254-commerce-overlay.f1352-tip-overlay .finance-sheet-footer{position:relative;z-index:1}
#fans254-commerce-overlay.f1352-tip-overlay .finance-grab{order:0;flex:none;margin:11px auto 8px}
#fans254-commerce-overlay.f1352-tip-overlay .finance-sheet-summary{order:1;flex:none;margin:0;padding:0 15px;text-align:center}
#fans254-commerce-overlay.f1352-tip-overlay .f1352-tip-person{position:relative;width:max-content;margin:1px auto 0}
#fans254-commerce-overlay.f1352-tip-overlay .f1352-tip-photo{
  display:grid;place-items:center;position:relative;overflow:hidden;width:85px;height:85px;
  background:#dfe8fa;border:3px solid white;border-radius:50%;font-size:27px;font-weight:800;color:#1764d7;
  box-shadow:0 0 0 1px rgba(33,53,85,.09)
}
#fans254-commerce-overlay.f1352-tip-overlay .f1352-tip-photo img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
#fans254-commerce-overlay.f1352-tip-overlay .f1352-tip-photo-badge{position:absolute;right:-5px;bottom:3px;display:grid;place-items:center;width:29px;height:29px;background:#fce3ee;color:#ec438a;border:2px solid white;border-radius:50%}
#fans254-commerce-overlay.f1352-tip-overlay .f1352-tip-photo-badge .finance-svg{width:18px;height:18px}
#fans254-commerce-overlay.f1352-tip-overlay .finance-sheet-head{order:2;flex:none;display:block!important;text-align:center;margin:5px 16px 9px!important;padding:0 10px!important}
#fans254-commerce-overlay.f1352-tip-overlay .finance-head-icon{display:none!important}
#fans254-commerce-overlay.f1352-tip-overlay .finance-title-group{margin:0!important;min-width:0;width:100%}
#fans254-commerce-overlay.f1352-tip-overlay .finance-sheet-head h2{font-size:25px;line-height:1.16;letter-spacing:-.035em;font-weight:850;margin:0}
#fans254-commerce-overlay.f1352-tip-overlay .finance-sheet-head p[data-finance-subtitle]{font-size:12px;line-height:1.3;color:#64718a;margin:5px 0 0}
#fans254-commerce-overlay.f1352-tip-overlay .f1352-tip-username{display:table;margin:7px auto 0!important;padding:5px 12px;background:#e9efff;color:#182547;border-radius:50px;font-size:12px;font-weight:750;line-height:1.2}
#fans254-commerce-overlay.f1352-tip-overlay .finance-close[data-finance-close]{position:absolute;top:-90px;right:0;width:33px;height:33px;border:0;border-radius:50%;background:rgba(249,250,253,.96);color:#536178}
#fans254-commerce-overlay.f1352-tip-overlay .finance-sheet-fields{order:3;flex:1 1 auto;min-height:0;overflow-y:auto;overscroll-behavior:contain;padding:0 15px 8px!important;scrollbar-width:thin}
#fans254-commerce-overlay.f1352-tip-overlay .finance-sheet-fields>.finance-field-label{display:none}
#fans254-commerce-overlay.f1352-tip-overlay .finance-amount-options{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px;margin:9px 0 0!important}
#fans254-commerce-overlay.f1352-tip-overlay .finance-amount-options button{min-width:0;min-height:39px!important;padding:6px 2px!important;font-size:11px!important;font-weight:790;border:0!important;border-radius:50px!important;box-shadow:none!important;white-space:nowrap}
#fans254-commerce-overlay.f1352-tip-overlay .finance-amount-options button[data-amount="50"]{background:#e1f5e7;color:#1c6746}
#fans254-commerce-overlay.f1352-tip-overlay .finance-amount-options button[data-amount="100"]{background:#e4eeff;color:#1559b4}
#fans254-commerce-overlay.f1352-tip-overlay .finance-amount-options button[data-amount="250"]{background:#f1e7ff;color:#6f34ae}
#fans254-commerce-overlay.f1352-tip-overlay .finance-amount-options button[data-amount="500"]{background:#fbe9df;color:#994a22}
#fans254-commerce-overlay.f1352-tip-overlay .finance-amount-options button.selected{background:#0969f2!important;color:#fff!important}
#fans254-commerce-overlay.f1352-tip-overlay .finance-input-label{margin:9px 0 0!important;font-size:0!important;gap:0!important}
#fans254-commerce-overlay.f1352-tip-overlay .finance-currency-input{border:1px solid #d9e2f4;background:#f8faff;border-radius:50px;overflow:hidden;min-height:40px}
#fans254-commerce-overlay.f1352-tip-overlay .finance-currency-input>span{font-size:12px;background:#e5edff;color:#586f9b;border-right:1px solid #d0defb;padding:9px 13px}
#fans254-commerce-overlay.f1352-tip-overlay .finance-currency-input input{font-size:13px!important;min-height:38px!important;padding:8px 11px}
#fans254-commerce-overlay.f1352-tip-overlay .f1352-tip-note{display:block;margin-top:9px!important}
#fans254-commerce-overlay.f1352-tip-overlay .f1352-tip-note textarea{display:block;width:100%;min-height:41px!important;max-height:75px;resize:vertical;padding:10px 13px!important;border:1px solid #d9e2f4;border-radius:50px;font-size:12px!important;font-weight:500;background:#f8faff}
#fans254-commerce-overlay.f1352-tip-overlay .finance-methods{display:flex!important;grid-template-columns:none!important;flex-wrap:nowrap;gap:6px;margin:10px 0 8px!important}
#fans254-commerce-overlay.f1352-tip-overlay .finance-methods>button{flex:1 1 0;min-width:0;width:0;min-height:43px!important;display:flex;align-items:center;justify-content:center;gap:5px;padding:6px 6px!important;border:1px solid #ece6e2!important;border-radius:50px!important;background:#faf4f1!important;box-shadow:none!important}
#fans254-commerce-overlay.f1352-tip-overlay .finance-methods>button.selected{background:#e9f3ff!important;border-color:#1676f3!important;box-shadow:inset 0 0 0 1px #1676f3!important}
#fans254-commerce-overlay.f1352-tip-overlay .finance-methods .finance-method-check{display:none!important}
#fans254-commerce-overlay.f1352-tip-overlay .finance-methods .finance-method-logo{width:min(74px,90%)!important;max-width:90%!important;height:22px!important;object-fit:contain}
#fans254-commerce-overlay.f1352-tip-overlay .finance-methods .finance-method-mark{width:27px;height:27px;border-radius:9px;flex:none}
#fans254-commerce-overlay.f1352-tip-overlay .finance-methods .finance-method-mark .finance-svg{width:18px;height:18px}
#fans254-commerce-overlay.f1352-tip-overlay .finance-methods .finance-method-copy{display:flex;flex:0 1 auto;min-width:0;align-items:center}
#fans254-commerce-overlay.f1352-tip-overlay .finance-methods .finance-method-copy strong{font-size:12px;white-space:nowrap}
#fans254-commerce-overlay.f1352-tip-overlay .finance-methods .finance-method-copy small{display:none!important}
#fans254-commerce-overlay.f1352-tip-overlay .f1352-tip-total{display:flex;align-items:center;justify-content:center;gap:5px;width:max-content;max-width:100%;margin:9px auto 0;background:#f9eee6;border-radius:50px;padding:8px 16px;color:#1a2540;font-size:12px;font-weight:740;white-space:nowrap}
#fans254-commerce-overlay.f1352-tip-overlay .f1352-tip-total .finance-svg{width:18px;height:18px;color:#aa7540}
#fans254-commerce-overlay.f1352-tip-overlay .finance-payment-info{display:none}
#fans254-commerce-overlay.f1352-tip-overlay .finance-sheet-footer{order:5;flex:none;display:grid;gap:2px;padding:8px 15px max(10px,env(safe-area-inset-bottom));background:#fffdfc;box-shadow:none!important}
#fans254-commerce-overlay.f1352-tip-overlay .finance-pay-btn{width:100%;min-height:47px!important;border-radius:50px!important;background:#0969ee!important;box-shadow:none!important;font-weight:800;font-size:15px}
#fans254-commerce-overlay.f1352-tip-overlay .finance-pay-btn>.finance-svg:last-of-type{display:none}
#fans254-commerce-overlay.f1352-tip-overlay [data-finance-provider-note]{font-size:10px;text-align:center;color:#72809a;line-height:1.25}
#fans254-commerce-overlay.f1352-tip-overlay .finance-sheet-status{order:4;margin:0 15px}
@media(max-width:600px){
 #fans254-commerce-overlay.f1352-tip-overlay .finance-methods>button[data-method="mpesa"] .finance-method-copy,
 #fans254-commerce-overlay.f1352-tip-overlay .finance-methods>button[data-method="card"] .finance-method-copy,
 #fans254-commerce-overlay.f1352-tip-overlay .finance-methods>button[data-method="paypal"] .finance-method-copy{display:none!important}
}
html[data-theme="dark"] #fans254-commerce-overlay.f1352-tip-overlay .finance-sheet,
html[data-theme="dark"] #fans254-commerce-overlay.f1352-tip-overlay .finance-sheet-footer{background:#24262d!important;color:#eff3fa}
html[data-theme="dark"] #fans254-commerce-overlay.f1352-tip-overlay .finance-sheet::before{background:rgba(139,100,75,.22)}
html[data-theme="dark"] #fans254-commerce-overlay.f1352-tip-overlay .finance-sheet::after{background:rgba(54,107,184,.16)}
html[data-theme="dark"] #fans254-commerce-overlay.f1352-tip-overlay .f1352-tip-username{background:#34435f;color:#e2ecff}
html[data-theme="dark"] #fans254-commerce-overlay.f1352-tip-overlay .finance-currency-input,
html[data-theme="dark"] #fans254-commerce-overlay.f1352-tip-overlay .f1352-tip-note textarea{background:#2e3441;border-color:#46516a;color:#f0f4ff}
html[data-theme="dark"] #fans254-commerce-overlay.f1352-tip-overlay .finance-currency-input>span{background:#354362;border-color:#536480;color:#edf2ff}
html[data-theme="dark"] #fans254-commerce-overlay.f1352-tip-overlay .finance-methods>button{background:#353037!important;border-color:#51454a!important;color:#f3f4fa}
html[data-theme="dark"] #fans254-commerce-overlay.f1352-tip-overlay .finance-methods>button.selected{background:#213e69!important;border-color:#67a9ff!important;box-shadow:inset 0 0 0 1px #67a9ff!important}
html[data-theme="dark"] #fans254-commerce-overlay.f1352-tip-overlay .f1352-tip-total{background:#3a3031;color:#f4f1ef}

/* Feed post author and caption use the same inline text start; no media
   dimensions, repost card geometry, or avatar sizes are changed here. */
@media(max-width:650px){
 .social-shell .social-post:not(.social-reel-post) > .social-post-top + .social-post-text.f813-feed-caption{
   margin-top:-24px!important;margin-left:62px!important;margin-bottom:5px!important;
 }
}
@media(min-width:651px){
 .social-shell .social-post:not(.social-reel-post) > .social-post-top + .social-post-text.f813-feed-caption{
   margin-top:-12px!important;margin-left:64px!important;margin-bottom:7px!important;
 }
}

/* Compact Reel engagement bar. Structural non-Live selectors apply before video
   attachment, avoiding the top-edge identity flash on Reel navigation.
   The Live-Reel player/controls are excluded. */
.social-shell .social-reel-watch .social-reel-panel:not(.f1009-live-reel-panel):not([data-f1009-live-reel])
 > .social-reel-post:not([data-f1160-live-id]){--f1347-clearance:12px;gap:5px!important}
.social-shell .social-reel-watch .social-reel-panel[data-reel-transport-raised]:not(.f1009-live-reel-panel):not([data-f1009-live-reel])
 > .social-reel-post:not([data-f1160-live-id]){--f1347-clearance:55px}
.social-shell .social-reel-watch .social-reel-panel:not(.f1009-live-reel-panel):not([data-f1009-live-reel])
 > .social-reel-post:not([data-f1160-live-id]) > .social-post-actions{
  min-height:44px!important;height:auto!important;padding:4px 6px!important;
  border:0!important;outline:0!important;border-radius:50px!important;
  background:rgba(19,24,32,.34)!important;
  -webkit-backdrop-filter:blur(26px) saturate(115%)!important;
  backdrop-filter:blur(26px) saturate(115%)!important;
  box-shadow:none!important;
}
.social-shell .social-reel-watch .social-reel-panel:not(.f1009-live-reel-panel):not([data-f1009-live-reel])
 > .social-reel-post:not([data-f1160-live-id]) > .social-post-actions .social-post-tool{padding-block:4px!important}

/* V1355: the native non-Live Reel stack owns vertical motion. Individual
   metadata pieces do not animate old bottom offsets during first paint. */
.social-shell .social-reel-watch .social-reel-panel:not(.f1009-live-reel-panel):not([data-f1009-live-reel])
 > .social-reel-post:not([data-f1160-live-id])
 > :is(.social-post-top,.f254-reel-caption-wrap,.social-post-actions){
  transition:none!important;
}

/* Wallet: keep pending balance readable; replace word-heavy filters with
   accessible icon controls without changing the existing filter/search hooks. */
.finance-screen.wallet-screen .finance-balance-secondary{min-width:0;overflow:hidden}
.finance-screen.wallet-screen .finance-balance-secondary>span{font-size:11px;line-height:1.2}
.finance-screen.wallet-screen .finance-balance-secondary strong{font-size:clamp(16px,2.5vw,25px);line-height:1.16;white-space:nowrap;letter-spacing:-.035em}
.finance-screen.wallet-screen .finance-balance-secondary .finance-quiet-link{font-size:11px;line-height:1.22;overflow-wrap:normal}
.finance-screen.wallet-screen .f1352-wallet-controls{display:flex;flex-wrap:nowrap;gap:8px;padding:9px 0 10px;border-bottom:1px solid var(--f254-b5-stroke,#e5e8ec)}
.finance-screen.wallet-screen .f1352-wallet-search{position:relative;flex:1 1 auto;max-width:none;min-width:0;margin:0}
.finance-screen.wallet-screen .f1352-wallet-search>svg{position:absolute;left:13px;top:50%;transform:translateY(-50%);width:18px;height:18px;color:#64758b;pointer-events:none}
.finance-screen.wallet-screen .f1352-wallet-search input{min-height:42px;width:100%;border-radius:50px;padding:8px 11px 8px 39px!important;background:#f5f7fa;border:1px solid #e0e6ef;box-shadow:none}
.finance-screen.wallet-screen .f1352-wallet-search input:focus{border-color:#317eec;outline:0;box-shadow:0 0 0 1px #317eec}
.finance-screen.wallet-screen .f1352-wallet-filters{flex:none;display:flex;align-items:center;gap:5px;max-width:none;overflow:visible}
.finance-screen.wallet-screen .f1352-wallet-filters button{display:grid;place-items:center;width:40px;height:40px;min-height:40px;padding:0;border-radius:50%;border:1px solid #e0e6ef;background:#f5f7fa;color:#59677b;box-shadow:none}
.finance-screen.wallet-screen .f1352-wallet-filters button.is-active{background:#e8f0ff;color:#0864ee;border-color:#73a7f3}
.finance-screen.wallet-screen .f1352-wallet-filters .social-icon{width:19px;height:19px;stroke-width:1.8}
@media(max-width:760px){
 .finance-screen.wallet-screen .finance-balance-secondary{padding:13px 10px;gap:5px;min-height:114px}
 .finance-screen.wallet-screen .finance-balance-secondary>span{font-size:10px!important}
 .finance-screen.wallet-screen .finance-balance-secondary strong{font-size:clamp(15px,4vw,20px)!important}
 .finance-screen.wallet-screen .finance-balance-secondary .finance-quiet-link{font-size:10px!important}
 .finance-screen.wallet-screen .f1352-wallet-controls{flex-direction:row;align-items:center}
 .finance-screen.wallet-screen .f1352-wallet-filters button{width:35px;height:35px;min-height:35px}
 .finance-screen.wallet-screen .f1352-wallet-search input{min-height:39px}
}
html[data-theme="dark"] .finance-screen.wallet-screen .f1352-wallet-search input,
html[data-theme="dark"] .finance-screen.wallet-screen .f1352-wallet-filters button{background:#303640;color:#e0e5ec;border-color:#485261}
html[data-theme="dark"] .finance-screen.wallet-screen .f1352-wallet-filters button.is-active{background:#233f65;color:#a4c9ff;border-color:#5387cb}
html[data-theme="dark"] .finance-screen.wallet-screen .f1352-wallet-search>svg{color:#a0adbe}


/* V1353 — unify membership / unlock / creator checkout sheets with the approved
   soft cream + pale blue system, compact provider pills and no extra check dot. */
#fans254-commerce-overlay.f1353-soft-sheet .finance-sheet{
  --f1353-ink:#101d3b;--f1353-muted:#6a768f;--f1353-surface:#fffcfa;--f1353-blue:#0864ee;
  position:relative;isolation:isolate;overflow-x:hidden;background:var(--f1353-surface)!important;
  color:var(--f1353-ink)!important;border:0!important;box-shadow:none!important;border-radius:28px;
  padding:18px 19px 15px;
}
#fans254-commerce-overlay.f1353-soft-sheet .finance-sheet::before{
  content:"";position:absolute;z-index:-1;pointer-events:none;top:-210px;right:-22%;width:84%;height:340px;
  border-radius:0 0 0 95%;transform:rotate(-12deg);background:#f9efe8;
}
#fans254-commerce-overlay.f1353-soft-sheet .finance-sheet::after{
  content:"";position:absolute;z-index:-1;pointer-events:none;top:116px;right:-28%;width:58%;height:98px;
  border-radius:82% 0 0 100%;transform:rotate(-16deg);background:rgba(216,231,255,.48);
}
#fans254-commerce-overlay.f1353-soft-sheet .finance-grab{display:block!important;width:38px;height:4px;margin:0 auto 13px;background:#d9dce7;border-radius:20px}
#fans254-commerce-overlay.f1353-soft-sheet .finance-sheet-head{margin:0 0 15px;gap:10px}
#fans254-commerce-overlay.f1353-soft-sheet .finance-head-icon{height:48px;width:48px;flex:none;border-radius:17px;background:#e3eeff;color:#0864ee}
#fans254-commerce-overlay.f1353-soft-sheet .finance-head-icon svg{height:27px;width:27px}
#fans254-commerce-overlay.f1353-soft-sheet .finance-sheet-head h2{font-size:clamp(21px,4vw,25px);font-weight:800;letter-spacing:-.04em;color:var(--f1353-ink);line-height:1.14;margin:0 0 4px}
#fans254-commerce-overlay.f1353-soft-sheet .finance-sheet-head p{font-size:12px;line-height:1.35;color:var(--f1353-muted)}
#fans254-commerce-overlay.f1353-soft-sheet .finance-sheet-head .finance-close{width:36px;height:36px;border:0;border-radius:50%;background:#f2f3f8;color:#475778}
#fans254-commerce-overlay.f1353-soft-sheet .finance-sheet-summary{margin-bottom:12px}
#fans254-commerce-overlay.f1353-soft-sheet .finance-sum-person{display:grid;grid-template-columns:54px minmax(0,1fr);gap:12px;align-items:center;padding:14px;border-radius:22px;background:#f7f9ff}
#fans254-commerce-overlay.f1353-soft-sheet .finance-person-avatar{width:54px;height:54px;border-radius:18px;background:#dfe9ff;color:#115ecc;box-shadow:none;display:grid;place-items:center;overflow:hidden;font-size:20px;font-weight:800}
#fans254-commerce-overlay.f1353-soft-sheet .finance-person-avatar img{width:100%;height:100%;object-fit:cover}
#fans254-commerce-overlay.f1353-soft-sheet .finance-person-copy{min-width:0;display:grid;gap:3px}
#fans254-commerce-overlay.f1353-soft-sheet .finance-person-copy strong{font-size:15px;line-height:1.15;color:var(--f1353-ink)}
#fans254-commerce-overlay.f1353-soft-sheet .finance-person-copy span{font-size:12px;line-height:1.35;color:var(--f1353-muted)}
#fans254-commerce-overlay.f1353-soft-sheet .finance-total-line,
#fans254-commerce-overlay.f1353-soft-sheet .finance-buyer-total{border:1px solid #e4e8f2;background:#fbfcff;border-radius:20px;padding:13px 15px;color:var(--f1353-ink)}
#fans254-commerce-overlay.f1353-soft-sheet .finance-total-line strong,
#fans254-commerce-overlay.f1353-soft-sheet .finance-buyer-total strong{font-size:17px;font-weight:820;letter-spacing:-.04em}
#fans254-commerce-overlay.f1353-soft-sheet .finance-total-line span,
#fans254-commerce-overlay.f1353-soft-sheet .finance-buyer-total span{font-size:12px;color:var(--f1353-muted)}
#fans254-commerce-overlay.f1353-soft-sheet .finance-buyer-total small{font-size:11px;line-height:1.4;color:var(--f1353-muted)}
#fans254-commerce-overlay.f1353-soft-sheet .finance-field-label{font-size:12px;font-weight:800;color:var(--f1353-ink);margin:12px 0 7px}
#fans254-commerce-overlay.f1353-soft-sheet .finance-methods{display:flex!important;flex-wrap:nowrap;gap:8px;margin:0;align-items:stretch;min-width:0}
#fans254-commerce-overlay.f1353-soft-sheet .finance-methods>button{display:flex!important;flex:1 1 0;align-items:center;justify-content:center;gap:7px;min-height:52px;padding:8px 9px;border:1px solid #e6e8ef!important;border-radius:50px!important;background:#faf4f0!important;box-shadow:none!important;overflow:hidden;min-width:0;width:0!important;max-width:none!important}
#fans254-commerce-overlay.f1353-soft-sheet .finance-methods>button[data-method="wallet"]{flex-grow:1.55;justify-content:flex-start}
#fans254-commerce-overlay.f1353-soft-sheet .finance-methods[data-method-count="4"]{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))}
#fans254-commerce-overlay.f1353-soft-sheet .finance-methods[data-method-count="4"]>button{width:100%!important}
#fans254-commerce-overlay.f1353-soft-sheet .finance-methods .finance-method-check{display:none!important}
#fans254-commerce-overlay.f1353-soft-sheet .finance-methods>button.selected{border-color:#0864ee!important;background:#ecf3ff!important;box-shadow:inset 0 0 0 1px #0864ee!important}
#fans254-commerce-overlay.f1353-soft-sheet .finance-method-check{display:none!important}
#fans254-commerce-overlay.f1353-soft-sheet .finance-method-mark{width:32px;height:32px;border-radius:12px;flex:none;background:#e7efff;color:#0864ee}
#fans254-commerce-overlay.f1353-soft-sheet .finance-method-mark .finance-svg{width:18px;height:18px}
#fans254-commerce-overlay.f1353-soft-sheet .finance-method-copy{min-width:0;display:grid;gap:2px;flex:1;text-align:left}
#fans254-commerce-overlay.f1353-soft-sheet .finance-method-copy strong{font-size:13px;line-height:1.15;color:var(--f1353-ink);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#fans254-commerce-overlay.f1353-soft-sheet .finance-method-copy small{font-size:10.5px;line-height:1.2;color:var(--f1353-muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#fans254-commerce-overlay.f1353-soft-sheet .finance-method-logo{width:min(72px,90%);max-width:72px;height:24px;object-fit:contain;margin:0;flex:none}
#fans254-commerce-overlay.f1353-soft-sheet .finance-currency-input,
#fans254-commerce-overlay.f1353-soft-sheet .finance-phone-input{border:1px solid #dce4f1;background:#f8faff;border-radius:17px;min-height:43px;overflow:hidden;box-shadow:none}
#fans254-commerce-overlay.f1353-soft-sheet .finance-currency-input>span{font-size:12px;background:#eaf0fd;color:#62799e;padding:10px 12px}
#fans254-commerce-overlay.f1353-soft-sheet .finance-currency-input input,
#fans254-commerce-overlay.f1353-soft-sheet .finance-phone-input input{font-size:15px;font-weight:740;min-height:40px;padding:8px 12px;background:transparent;border:0;color:var(--f1353-ink)}
#fans254-commerce-overlay.f1353-soft-sheet .finance-phone-input{display:flex;align-items:center;padding-inline:11px;gap:8px}
#fans254-commerce-overlay.f1353-soft-sheet .finance-phone-input .finance-svg{width:18px;height:18px;color:#6e7d92}
#fans254-commerce-overlay.f1353-soft-sheet .finance-payment-info{margin:12px 0 0;padding:13px 14px;border:0;border-radius:18px;background:#f5f8ff;color:var(--f1353-muted);font-size:11px;line-height:1.5}
#fans254-commerce-overlay.f1353-soft-sheet .finance-payment-info .finance-svg{color:#6d8bd4}
#fans254-commerce-overlay.f1353-soft-sheet .finance-sheet-footer{position:sticky;bottom:0;margin:10px -3px 0;padding:8px 3px max(8px,env(safe-area-inset-bottom));background:var(--f1353-surface);z-index:4;gap:5px}
#fans254-commerce-overlay.f1353-soft-sheet .finance-sheet-footer .finance-pay-btn{min-height:46px!important;height:auto;font-size:14px;font-weight:800;border-radius:50px!important;box-shadow:none!important;background:#0864ee!important;color:#fff!important}
#fans254-commerce-overlay.f1353-soft-sheet .finance-sheet-footer .finance-pay-btn>.finance-svg{display:none}
#fans254-commerce-overlay.f1353-soft-sheet .finance-sheet-footer>small{color:var(--f1353-muted);font-size:10px;gap:5px}
#fans254-commerce-overlay.f1353-soft-sheet .finance-sheet-footer>small svg{height:13px;width:13px}

@media(max-width:600px){
 #fans254-commerce-overlay.f1353-soft-sheet .finance-sheet{width:100%;max-height:calc(100dvh - 12px);border-radius:32px 32px 0 0;padding:18px 15px 12px}
 #fans254-commerce-overlay.f1353-soft-sheet .finance-methods>button[data-method="mpesa"],
 #fans254-commerce-overlay.f1353-soft-sheet .finance-methods>button[data-method="card"],
 #fans254-commerce-overlay.f1353-soft-sheet .finance-methods>button[data-method="paypal"]{padding-inline:8px;gap:0}
 #fans254-commerce-overlay.f1353-soft-sheet .finance-methods>button[data-method="mpesa"] .finance-method-copy,
 #fans254-commerce-overlay.f1353-soft-sheet .finance-methods>button[data-method="card"] .finance-method-copy,
 #fans254-commerce-overlay.f1353-soft-sheet .finance-methods>button[data-method="paypal"] .finance-method-copy{display:none!important}
 #fans254-commerce-overlay.f1353-soft-sheet .finance-methods>button[data-method="wallet"] .finance-method-copy small{display:none}
 #fans254-commerce-overlay.f1353-soft-sheet .finance-methods>button[data-method="wallet"] .finance-method-mark{width:28px;height:28px}
 #fans254-commerce-overlay.f1353-soft-sheet .finance-methods>button[data-method="wallet"] .finance-method-copy strong{font-size:12px;white-space:nowrap}
 #fans254-commerce-overlay.f1353-soft-sheet .finance-method-logo{width:min(86px,100%);max-width:100%;height:24px}
 #fans254-commerce-overlay.f1349-topup-overlay:not(.finance-provider-active) .finance-methods>button[data-method="mpesa"] .finance-method-copy,
 #fans254-commerce-overlay.f1349-topup-overlay:not(.finance-provider-active) .finance-methods>button[data-method="card"] .finance-method-copy,
 #fans254-commerce-overlay.f1349-topup-overlay:not(.finance-provider-active) .finance-methods>button[data-method="paypal"] .finance-method-copy{display:none!important}
 #fans254-commerce-overlay.f1349-topup-overlay:not(.finance-provider-active) .finance-methods>button{gap:0;padding-inline:8px!important}
}
html[data-theme="dark"] #fans254-commerce-overlay.f1353-soft-sheet .finance-sheet,
html[data-theme="dark"] #fans254-commerce-overlay.f1353-soft-sheet .finance-sheet-footer{background:#24262d!important;color:#eff3fa}
html[data-theme="dark"] #fans254-commerce-overlay.f1353-soft-sheet .finance-sheet::before{background:rgba(139,100,75,.22)}
html[data-theme="dark"] #fans254-commerce-overlay.f1353-soft-sheet .finance-sheet::after{background:rgba(54,107,184,.16)}
html[data-theme="dark"] #fans254-commerce-overlay.f1353-soft-sheet .finance-sum-person,
html[data-theme="dark"] #fans254-commerce-overlay.f1353-soft-sheet .finance-payment-info,
html[data-theme="dark"] #fans254-commerce-overlay.f1353-soft-sheet .finance-total-line,
html[data-theme="dark"] #fans254-commerce-overlay.f1353-soft-sheet .finance-buyer-total{background:#2c313b!important;border-color:#434b5a!important;color:#eff3fa}
html[data-theme="dark"] #fans254-commerce-overlay.f1353-soft-sheet .finance-person-avatar,
html[data-theme="dark"] #fans254-commerce-overlay.f1353-soft-sheet .finance-method-mark{background:#33415f!important;color:#dfeaff!important}
html[data-theme="dark"] #fans254-commerce-overlay.f1353-soft-sheet .finance-methods>button{background:#353037!important;border-color:#51454a!important;color:#f3f4fa}
html[data-theme="dark"] #fans254-commerce-overlay.f1353-soft-sheet .finance-methods>button.selected{background:#213e69!important;border-color:#67a9ff!important;box-shadow:inset 0 0 0 1px #67a9ff!important}
html[data-theme="dark"] #fans254-commerce-overlay.f1353-soft-sheet .finance-currency-input,
html[data-theme="dark"] #fans254-commerce-overlay.f1353-soft-sheet .finance-phone-input{background:#2e3441!important;border-color:#46516a!important;color:#f0f4ff}
html[data-theme="dark"] #fans254-commerce-overlay.f1353-soft-sheet .finance-currency-input>span{background:#354362!important;color:#edf2ff}
html[data-theme="dark"] #fans254-commerce-overlay.f1353-soft-sheet .finance-sheet-head .finance-close{background:#343844!important;color:#cfd6e4}
html[data-theme="dark"] #fans254-commerce-overlay.f1353-soft-sheet .finance-sheet-head p,
html[data-theme="dark"] #fans254-commerce-overlay.f1353-soft-sheet .finance-person-copy span,
html[data-theme="dark"] #fans254-commerce-overlay.f1353-soft-sheet .finance-buyer-total small,
html[data-theme="dark"] #fans254-commerce-overlay.f1353-soft-sheet .finance-payment-info,
html[data-theme="dark"] #fans254-commerce-overlay.f1353-soft-sheet .finance-method-copy small,
html[data-theme="dark"] #fans254-commerce-overlay.f1353-soft-sheet .finance-sheet-footer>small{color:#aab6c7!important}

/* Creator subscription payment row: same pill language as the approved commerce sheets. */
.f872-subscribe-overlay .f876-subscribe-payment>button:not([hidden]){display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:46px;border:1px solid #e7e4e5;border-radius:50px;padding:8px 12px;background:#faf4f0;color:var(--f1349-ink);box-shadow:none;white-space:nowrap;font-size:12px}
.f872-subscribe-overlay .f876-subscribe-payment .f872-subscribe-pay{background:#0864ee!important;border-color:#0864ee!important;color:#fff!important}
.f872-subscribe-overlay .f876-subscribe-payment img{width:34px;height:22px;object-fit:contain}
@media(max-width:600px){
 .f872-subscribe-overlay .f876-subscribe-payment{display:grid!important;grid-template-columns:1fr 1fr;gap:7px}
 .f872-subscribe-overlay .f876-subscribe-payment .f872-subscribe-pay{grid-column:1/-1}
 .f872-subscribe-overlay .f876-subscribe-mpesa .f1350-provider-label,
 .f872-subscribe-overlay .f876-subscribe-card .f1350-provider-label{display:none!important}
}



/* V1354: mobile sheets are border-box. A 100%-wide content-box with padding
   overflowed the viewport and clipped the heading/close control on phones. */
@media(max-width:760px){
 #fans254-commerce-overlay.f1349-topup-overlay:not(.finance-provider-active) .finance-sheet,
 #fans254-commerce-overlay.f1352-tip-overlay:not(.finance-provider-active) .finance-sheet,
 #fans254-commerce-overlay.f1353-soft-sheet:not(.finance-provider-active) .finance-sheet{
   box-sizing:border-box!important;width:100%!important;max-width:100%!important;
   min-width:0!important;margin-inline:0!important;
 }
}


