/* Fans254 V1113 – targeted UI refinements, no global card/media fit changes. */
/* Price uses its own top-level overlay so modal clipping never leaves pale side rails. */
body > .f1093-price-layer:not([hidden]){position:fixed!important;inset:0!important;z-index:15030!important;display:flex!important;justify-content:center;align-items:center;box-sizing:border-box;overflow-y:auto;padding:clamp(12px,3vw,28px)!important;background:rgba(5,13,25,.62)!important}
body > .f1093-price-layer .f1093-price-dialog{box-sizing:border-box;width:min(100%,490px)!important;max-height:min(90dvh,700px)!important;overflow-y:auto!important;margin:auto!important;border-radius:23px!important;border:1px solid color-mix(in srgb,var(--social-text,#162136) 8%,transparent)!important;padding:clamp(18px,4vw,25px)!important;background:var(--social-surface,#fff)!important;color:var(--social-text,#172338)!important;box-shadow:0 18px 55px #0005!important}
body > .f1093-price-layer .f1093-price-fields>label{margin-top:14px!important;font-size:14px!important}
body > .f1093-price-layer .f1093-price-fields input{box-sizing:border-box;width:100%;min-height:50px!important;border-radius:14px!important;font-size:17px!important;font-weight:650!important}
body > .f1093-price-layer .f1093-price-dialog footer button{border-radius:50px!important;min-height:49px!important}
html[data-theme="dark"] body > .f1093-price-layer .f1093-price-dialog{--social-surface:#222833;--social-text:#f4f7fc;--social-muted:#acbad0;--f1093-line:#43516a}
/* Lightbox belongs below only its active action modal; don't alter the feed or page header. */
body > .f1113-lightbox-portal.social-shell{position:fixed!important;inset:0!important;z-index:16100!important;min-height:0!important;background:transparent!important;pointer-events:none!important}
.f1113-lightbox-portal::before{content:"";position:fixed;inset:0;background:rgba(7,12,24,.49);pointer-events:none}
.f1113-lightbox-portal .social-modal:not([hidden]){position:fixed!important;z-index:2!important;pointer-events:auto!important;max-height:min(88dvh,820px)!important;overflow:auto!important;box-sizing:border-box!important}
/* Repost sheet is created under body; keep it above the lightbox too. */
body > .f254-repost-sheet:not([hidden]){z-index:16110!important}
/* Upload progress stays below the browser chrome but above the website header. */
body > .f254-global-upload:not([hidden]){position:fixed!important;top:max(68px,calc(env(safe-area-inset-top,0px) + 64px))!important;z-index:16200!important;max-width:min(94vw,680px)!important;border-radius:16px!important;border:1px solid color-mix(in srgb,var(--social-text,#223348) 12%,transparent)!important;box-shadow:0 16px 45px #0003!important;padding:12px 15px!important}
body > .f254-global-upload .f254-upload-track{height:6px!important;border-radius:999px!important}
/* Remove only shouty Story report-card outlines; preserve visible checked states and focus. */
.social-shell .f776-story-viewer .f1093-story-choice{border:1px solid #ffffff15!important;background:#1b2635!important;border-radius:13px!important;min-height:44px!important;padding:10px 13px!important}
.social-shell .f776-story-viewer .f1093-story-choice:has(input:checked){background:#203a59!important;border-color:#4b83c1!important}
.social-shell .f776-story-viewer .f1093-story-choice:focus-within{outline:2px solid #8bbdff!important;outline-offset:2px}
/* Create shortcuts now display lightweight bundled raster artwork, not svg icons. */
.f855-create-symbol.f1113-image-icon{width:47px!important;height:47px!important;min-width:47px!important;overflow:hidden;display:grid;place-items:center;border-radius:14px!important;background:transparent!important}
.f1113-image-icon img{display:block;width:100%;height:100%;object-fit:contain;pointer-events:none}
.f1113-image-icon.f1113-space-icon img{animation:f1113-mic-float 1.8s ease-in-out infinite alternate;transform-origin:center}
@keyframes f1113-mic-float{from{transform:translateY(1px) scale(.95)}to{transform:translateY(-3px) scale(1.04)}}
@media(prefers-reduced-motion:reduce){.f1113-image-icon.f1113-space-icon img{animation:none}}
@media(max-width:650px){body > .f254-global-upload:not([hidden]){top:max(64px,calc(env(safe-area-inset-top,0px) + 60px))!important;max-width:calc(100vw - 18px)!important}}


/* V1122: mobile Discover profile card must not be obscured by the fixed Exit Dating action.
   Other Dating tabs keep their exit control; desktop exit and confirmation are untouched. */
@media(max-width:768px){
  .social-shell[data-social-section="dating"] .f254-date-app:has([data-f716-swipes]:not([hidden])) > .f926-exit-mobile{display:none!important}
}
/* The publish sheet glides away while upload continues under the persistent progress banner. */
#social-compose-modal.f1122-publish-closing{
  opacity:0!important;
  pointer-events:none!important;
  transition:opacity .17s ease,transform .17s ease!important;
}
@media(max-width:680px){
  .social-shell #social-compose-modal.f1122-publish-closing{transform:translate3d(0,16px,0)!important}
}
body.f1122-compose-closing .social-modal-backdrop{opacity:0!important;transition:opacity .17s ease!important;pointer-events:none!important}
/* Browser-native progress events can arrive unevenly; interpolate width on the compositor
   and avoid a perpetual gradient animation while posts upload. */
body > .f254-global-upload .f254-upload-fill{
  width:100%!important;
  transform:scaleX(var(--f1122-progress,0));
  transform-origin:left center;
  transition:transform .38s cubic-bezier(.22,1,.36,1)!important;
  animation:none!important;
  background:#2389f4!important;
  will-change:transform;
}
body > .f254-global-upload .f254-upload-track{overflow:hidden}
body > .f254-global-upload.is-failed .f254-upload-fill{background:#e4505c!important}
@media(prefers-reduced-motion:reduce){
  #social-compose-modal.f1122-publish-closing,
  body.f1122-compose-closing .social-modal-backdrop,
  body > .f254-global-upload .f254-upload-fill{transition:none!important}
}
