/* Instagram parity layer: story tray + story editor, top bar, bottom nav, post card details,
   "Suggested for you" row. Loaded after the older feed CSS; uses its own ig-* class names. */
:root{--ig-ink:#000;--ig-muted:#737373;--ig-line:#dbdbdb;--ig-blue:#0095f6;--ig-red:#ff3040;--ig-ring:linear-gradient(45deg,#feda75 0%,#fa7e1e 25%,#d62976 50%,#962fbf 75%,#4f5bd5 100%)}

/* ---------- Story tray ---------- */
.ig-tray{display:flex;gap:14px;overflow-x:auto;overflow-y:hidden;padding:10px 12px 12px;margin:0 0 6px;background:#fff;border-bottom:1px solid #efefef;scrollbar-width:none;-webkit-overflow-scrolling:touch;scroll-snap-type:x proximity}
.ig-tray::-webkit-scrollbar{display:none}
.ig-tray-item{flex:0 0 auto;width:72px;display:grid;justify-items:center;gap:5px;text-decoration:none;color:var(--ig-ink);margin:0;padding:0;border:0;background:none;scroll-snap-align:start}
.ig-tray-item>strong{display:block;width:72px;font-size:12px;font-weight:400;text-align:center;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:#262626}
.ig-ring{position:relative;width:66px;height:66px;border-radius:50%;padding:3px;background:var(--ig-ring);display:grid;place-items:center;box-sizing:border-box;border:0;cursor:pointer}
.ig-ring.is-seen{background:#c7c7c7;padding:2px}
.ig-ring.is-empty{background:none;padding:0}
.ig-ring i{width:100%;height:100%;border-radius:50%;border:3px solid #fff;box-sizing:border-box;background:#dbdbdb center/cover no-repeat;display:grid;place-items:center;font-style:normal;font-weight:700;font-size:22px;color:#fff;background-color:#a8a8a8}
.ig-ring.is-seen i{border-width:2px}
.ig-ring.is-empty i{border:1px solid var(--ig-line)}
.ig-ring:active{transform:scale(.95)}
.ig-tray-own{position:relative}
.ig-tray-plus{position:absolute;right:-2px;bottom:-2px;width:22px;height:22px;border-radius:50%;border:2px solid #fff;background:var(--ig-blue);color:#fff;font-size:16px;line-height:17px;font-weight:700;padding:0;cursor:pointer}

/* Full-screen story editor */
.ig-story-editor{position:fixed;inset:0;z-index:5000;background:#000;color:#fff;display:grid;grid-template-rows:auto minmax(0,1fr) auto auto}
.ig-story-editor[hidden]{display:none}
body.ig-story-editing{overflow:hidden}
.ig-story-editor-top{display:grid;grid-template-columns:44px 1fr 44px;align-items:center;padding:calc(10px + env(safe-area-inset-top)) 10px 10px;font-weight:600;text-align:center}
.ig-story-editor-x{width:40px;height:40px;border:0;border-radius:50%;background:rgba(255,255,255,.12);color:#fff;font-size:18px;cursor:pointer}
.ig-story-editor-media{display:grid;place-items:center;overflow:hidden;min-height:0;border-radius:12px;margin:0 8px;background:#111}
.ig-story-editor-media img,.ig-story-editor-media video{max-width:100%;max-height:100%;object-fit:contain;display:block}
.ig-story-trim{display:grid;gap:4px;padding:8px 16px;font-size:12px;color:#ccc}
.ig-story-trim input{width:100%}
.ig-story-editor-bottom{display:grid;gap:10px;padding:10px 12px calc(12px + env(safe-area-inset-bottom))}
.ig-story-capbox{display:flex;align-items:center;gap:8px}
.ig-story-capbox input{flex:1;min-width:0;height:44px;border-radius:22px;border:1px solid rgba(255,255,255,.35);background:rgba(255,255,255,.08);color:#fff;padding:0 16px;font-size:15px}
.ig-story-capbox input::placeholder{color:rgba(255,255,255,.7)}
.ig-story-capbox .emoji-picker-wrap{position:relative}
.ig-story-capbox .emoji-picker-toggle{width:44px;height:44px;border-radius:50%;border:0;background:rgba(255,255,255,.12);font-size:20px}
.ig-story-capbox [data-emoji-panel]{position:absolute;right:0;bottom:52px;z-index:2}
.ig-story-audience{font-size:13px;color:#ddd}
.ig-story-audience summary{cursor:pointer;padding:4px 0}
.ig-story-audience select,.ig-story-audience input{max-width:100%}
.ig-story-audience>*:not(summary){margin-top:8px;color:#111}
.ig-story-share{justify-self:start;display:inline-flex;align-items:center;gap:10px;height:46px;padding:0 18px 0 6px;border:0;border-radius:23px;background:#fff;color:#000;font-size:15px;font-weight:600;cursor:pointer}
.ig-story-share i{width:34px;height:34px;border-radius:50%;background:#a8a8a8 center/cover;display:grid;place-items:center;font-style:normal;color:#fff;font-weight:700}
.ig-story-share b{font-size:20px}
.ig-story-share:disabled{opacity:.6}
body.dark-mode .ig-tray{background:#000;border-color:#262626}
body.dark-mode .ig-tray-item>strong{color:#f5f5f5}
body.dark-mode .ig-ring i{border-color:#000}
.ig-story-trim[hidden]{display:none}
body>.ig-story-form.is-editing>.ig-tray-own,body>.ig-story-form.is-editing>strong{display:none}

/* ---------- Full-screen story viewer ---------- */
body.ig-story-view-body{background:#000!important;overflow:hidden}
body.ig-story-view-body nav.topbar,body.ig-story-view-body .ig-topbar,body.ig-story-view-body .mobile-icon-nav,body.ig-story-view-body .admin-strip,body.ig-story-view-body .page-back-button,body.ig-story-view-body .social-left-rail,body.ig-story-view-body footer{display:none!important}
body.ig-story-view-body .ig-story-viewer{position:fixed!important;inset:0!important;z-index:4000!important;background:#000!important;display:grid!important;place-items:center!important;padding:0!important;margin:0!important}
body.ig-story-view-body .ig-story-viewer-card{position:relative!important;width:min(100vw,calc(100dvh * 9 / 16))!important;max-width:100vw!important;height:100dvh!important;max-height:none!important;margin:0!important;border-radius:0!important;box-shadow:none!important;background:#000!important;display:grid!important;grid-template-rows:minmax(0,1fr) auto!important;overflow:hidden}
body.ig-story-view-body .ig-story-media{position:relative!important;height:100%!important;min-height:0!important;border-radius:0!important;overflow:hidden;background:#000}
body.ig-story-view-body .ig-story-media>img,body.ig-story-view-body .ig-story-media>video{position:absolute;inset:0;width:100%!important;height:100%!important;object-fit:contain!important;max-height:none!important;border-radius:0!important}
body.ig-story-view-body .ig-story-progress-group{position:absolute;top:calc(8px + env(safe-area-inset-top));left:8px;right:8px;z-index:3;display:flex;gap:4px}
body.ig-story-view-body .ig-story-top{top:calc(18px + env(safe-area-inset-top))!important}
body.ig-story-view-body .ig-story-author small{opacity:.8;margin-left:6px;font-size:13px}
body.ig-story-view-body .ig-story-author>div{display:flex!important;align-items:baseline;gap:0}
body.ig-story-view-body .ig-story-caption{bottom:16px!important}
.ig-story-bar{display:flex;align-items:center;gap:10px;padding:10px 12px calc(12px + env(safe-area-inset-bottom));background:#000}
.ig-story-reply{flex:1;display:flex;align-items:center;gap:6px;margin:0;min-width:0}
.ig-story-reply input{flex:1;min-width:0;height:44px;border-radius:22px;border:1px solid rgba(255,255,255,.55);background:transparent;color:#fff;padding:0 16px;font-size:15px}
.ig-story-reply input::placeholder{color:rgba(255,255,255,.85)}
.ig-story-reply input:focus{outline:none;border-color:#fff}
.ig-story-send,.ig-story-heart{width:44px;height:44px;border:0;background:none;color:#fff;padding:8px;cursor:pointer;flex:0 0 44px}
.ig-story-send[hidden]{display:none}
.ig-story-send svg,.ig-story-heart svg{width:26px;height:26px;fill:none;stroke:currentColor;stroke-width:2;stroke-linejoin:round}
.ig-story-heart.is-liked svg{fill:var(--ig-red);stroke:var(--ig-red);animation:ig-pop .35s ease}
[data-story-like]{margin:0}
.ig-story-seen{flex:1;color:#fff;font-size:14px}
.ig-story-seen summary{cursor:pointer;list-style:none;padding:8px 4px;font-weight:600}
.ig-story-seen summary::-webkit-details-marker{display:none}
.ig-story-seen-list{position:fixed;left:0;right:0;bottom:0;max-height:55dvh;overflow:auto;background:#fff;color:#000;border-radius:16px 16px 0 0;padding:12px 16px calc(16px + env(safe-area-inset-bottom));z-index:5;display:grid;gap:10px}
.ig-story-seen-list div{display:grid;grid-template-columns:40px 1fr auto;gap:10px;align-items:center}
.ig-story-seen-list i{width:40px;height:40px;border-radius:50%;background:#a8a8a8 center/cover;display:grid;place-items:center;color:#fff;font-style:normal;font-weight:700}
.ig-story-seen-list small{color:var(--ig-muted)}
@keyframes ig-pop{0%{transform:scale(1)}40%{transform:scale(1.3)}100%{transform:scale(1)}}

/* ---------- Phone top bar (Instagram) ---------- */
.ig-topbar{display:none}
@media (max-width:768px){
  body nav.topbar.auth-topbar{display:none!important}
  .ig-topbar{position:fixed;top:0;left:0;right:0;z-index:600;height:58px;padding:0 6px 0 4px;padding-top:env(safe-area-inset-top);box-sizing:content-box;display:grid;grid-template-columns:96px 1fr 132px;align-items:center;background:#fff;border-bottom:1px solid #efefef;transition:transform .22s ease}
  .ig-topbar.is-hidden{transform:translateY(calc(-100% - 2px))}
  .ig-tb-btn{position:relative;width:44px;height:44px;display:grid;place-items:center;border:0;background:none;color:var(--ig-ink);cursor:pointer;padding:0;text-decoration:none;-webkit-tap-highlight-color:transparent}
  .ig-tb-btn svg{width:26px;height:26px;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}
  .ig-tb-btn svg .ig-fill{fill:currentColor;stroke:none}
  .ig-tb-btn:active{transform:scale(.9)}
  .ig-tb-logo{justify-self:center;display:flex;align-items:center;gap:6px;text-decoration:none;color:var(--ig-ink)}
  .ig-tb-logo img{width:30px;height:30px;object-fit:contain}
  .ig-tb-logo span{font:700 22px/1 "Segoe UI",system-ui,sans-serif;letter-spacing:-.4px;font-style:italic}
  .ig-tb-right{display:flex;justify-content:flex-end}
  .ig-dot{position:absolute;top:9px;right:9px;width:8px;height:8px;border-radius:50%;background:var(--ig-red);border:1.5px solid #fff}
  .ig-count{position:absolute;top:4px;right:2px;min-width:18px;height:18px;padding:0 5px;border-radius:9px;background:var(--ig-red);color:#fff;font:700 11px/18px system-ui,sans-serif;text-align:center;border:2px solid #fff;box-sizing:border-box}
  /* Instagram's home has no category tab strip; Video / Groups / Pages stay in the menu. */
  body .mobile-feed-tabs{display:none!important}
  body.dark-mode .ig-topbar{background:rgba(0,0,0,.95);border-color:#262626}
  body.dark-mode .ig-tb-btn,body.dark-mode .ig-tb-logo{color:#f5f5f5}
}

/* ---------- Bottom nav (Instagram) ---------- */
@media (max-width:768px){
  body nav.mobile-icon-nav.ig-bottom-nav{position:fixed!important;left:0!important;right:0!important;bottom:0!important;height:auto!important;min-height:52px!important;padding:4px 0 env(safe-area-inset-bottom)!important;margin:0!important;display:grid!important;grid-template-columns:repeat(5,1fr)!important;align-items:center!important;gap:0!important;background:rgba(255,255,255,.98)!important;border:0!important;border-top:1px solid #efefef!important;border-radius:0!important;box-shadow:none!important;z-index:590!important;width:auto!important;transform:none!important}
  body nav.ig-bottom-nav>a,body nav.ig-bottom-nav>label{position:relative!important;display:grid!important;place-items:center!important;height:48px!important;min-width:0!important;margin:0!important;padding:0!important;border:0!important;border-radius:0!important;background:none!important;box-shadow:none!important;color:var(--ig-ink)!important;cursor:pointer;-webkit-tap-highlight-color:transparent}
  body nav.ig-bottom-nav small{position:absolute!important;width:1px!important;height:1px!important;overflow:hidden!important;clip:rect(0 0 0 0)!important}
  body nav.ig-bottom-nav svg{width:27px!important;height:27px!important;fill:none!important;stroke:currentColor!important;stroke-width:1.9!important;stroke-linecap:round;stroke-linejoin:round}
  body nav.ig-bottom-nav svg .ig-fill{fill:currentColor!important;stroke:none!important}
  body nav.ig-bottom-nav .is-active svg{stroke-width:2.6!important}
  body nav.ig-bottom-nav .nav-home.is-active svg{fill:currentColor!important}
  body nav.ig-bottom-nav>*:active{transform:scale(.9)}
  .ig-nav-avatar{width:27px;height:27px;border-radius:50%;background:#a8a8a8 center/cover no-repeat;display:grid;place-items:center;color:#fff;font:700 12px/1 system-ui,sans-serif;box-sizing:border-box}
  .nav-profile.is-active .ig-nav-avatar{box-shadow:0 0 0 1.5px #fff,0 0 0 3px var(--ig-ink)}
  body nav.ig-bottom-nav .ig-dot{top:auto;bottom:4px;right:auto;left:50%;transform:translateX(-50%);width:5px;height:5px;border:0}
  body nav.ig-bottom-nav b{display:none!important}
  body.dark-mode nav.ig-bottom-nav{background:rgba(0,0,0,.97)!important;border-color:#262626!important}
  body.dark-mode nav.ig-bottom-nav>a,body.dark-mode nav.ig-bottom-nav>label{color:#f5f5f5!important}
}
@media (max-width:768px){
  /* Instagram home starts straight with stories + posts; creating happens from "+" (top/bottom bar). */
  body .fb-feed>#create-post{display:none!important}
}

/* ---------- Post card details ---------- */
.ig2-reposted{display:flex;align-items:center;gap:6px;margin:0;padding:10px 14px 0;font-size:12px;font-weight:600;color:var(--ig-muted)}
.ig2-reposted svg{fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.ig2-media{position:relative}
.ig2-mute{position:absolute;left:12px;bottom:12px;z-index:3;width:30px;height:30px;border-radius:50%;border:0;background:rgba(38,38,38,.75);color:#fff;display:grid;place-items:center;padding:0;cursor:pointer}
.ig2-mute svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round}
.ig2-mute svg .ig-fill{fill:currentColor;stroke:none}
.ig2-mute .ig2-mute-wave{display:none}
.ig2-mute.is-on .ig2-mute-x{display:none}
.ig2-mute.is-on .ig2-mute-wave{display:inline}
.ig2-carousel .ig2-slide{position:relative}
.ig2-repost{margin:0;display:inline-flex}
.ig2-repost button{border:0;background:none;padding:8px;cursor:pointer;color:inherit;display:grid;place-items:center}
.ig2-repost svg{fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}
.ig2-repost.is-done button{color:#00a63e}
.ig-bump{animation:ig-pop .35s ease}
.ig2-translate{display:inline-block;margin:2px 0 4px;font-size:12px;color:var(--ig-muted);text-decoration:none;font-weight:600}

/* ---------- Suggested for you ---------- */
.ig-suggest{background:#fff;border-top:1px solid #efefef;border-bottom:1px solid #efefef;padding:12px 0 14px;margin:8px 0}
.ig-suggest-head{display:flex;justify-content:space-between;align-items:center;padding:0 14px 10px;font-size:14px}
.ig-suggest-head a{color:var(--ig-blue);font-weight:600;text-decoration:none;font-size:14px}
.ig-suggest-rail{display:flex;gap:8px;overflow-x:auto;padding:0 14px;scrollbar-width:none;scroll-snap-type:x proximity}
.ig-suggest-rail::-webkit-scrollbar{display:none}
.ig-suggest-card{position:relative;flex:0 0 150px;display:grid;justify-items:center;gap:6px;padding:16px 10px 12px;border:1px solid var(--ig-line);border-radius:8px;text-align:center;scroll-snap-align:start;box-sizing:border-box}
.ig-suggest-x{position:absolute;top:4px;right:6px;border:0;background:none;color:var(--ig-muted);font-size:20px;line-height:1;cursor:pointer;padding:4px}
.ig-suggest-avatar{width:84px;height:84px;border-radius:50%;background:#a8a8a8 center/cover no-repeat;display:grid;place-items:center;color:#fff;font-size:30px;font-weight:700;text-decoration:none}
.ig-suggest-name{font-size:14px;font-weight:600;color:var(--ig-ink);text-decoration:none;max-width:130px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ig-suggest-card small{font-size:12px;color:var(--ig-muted);line-height:1.3;min-height:31px}
.ig-suggest-follow{width:100%;margin:0}
.ig-suggest-follow button{width:100%;height:32px;border:0;border-radius:8px;background:var(--ig-blue);color:#fff;font-weight:600;font-size:14px;cursor:pointer}
.ig-suggest-follow.is-done button,.ig-suggest-follow button.is-done{background:#efefef;color:var(--ig-ink)}

/* ---------- Sponsored ---------- */
.ig-ad-card .ig2-subline{font-size:12px;color:var(--ig-ink)}
.ig-ad-follow{margin-left:auto;padding:6px 14px;border-radius:8px;background:#efefef;color:var(--ig-ink);font-weight:600;font-size:13px;text-decoration:none}
.ig-ad-cta{display:flex;justify-content:space-between;align-items:center;padding:12px 14px;background:var(--ig-blue);color:#fff;font-weight:600;font-size:14px;text-decoration:none}
.ig-ad-cta span{font-size:20px;line-height:1}
body.dark-mode .ig-suggest{background:#000;border-color:#262626}
body.dark-mode .ig-suggest-card{border-color:#363636}
body.dark-mode .ig-suggest-name{color:#f5f5f5}
.ig2-media video[data-ig-video]{width:100%!important;height:100%!important;object-fit:cover!important;display:block;background:#000;cursor:pointer}
.ig2-media.ig2-aspect-original video[data-ig-video],.ig2-media.ig2-aspect-auto video[data-ig-video],.ig2-media.ig2-aspect-16-9 video[data-ig-video]{height:auto!important;max-height:585px!important;object-fit:contain!important}

/* ---------- Reels (Instagram full-screen vertical feed) ---------- */
.ig-reels-head{display:none}
.ig-reel-audio{display:flex;align-items:center;gap:6px;margin:6px 0 0;font-size:13px;color:#fff;overflow:hidden;max-width:78%}
.ig-reel-audio svg{flex:0 0 14px;width:14px;height:14px;fill:none;stroke:currentColor;stroke-width:2}
.ig-reel-audio span{overflow:hidden;white-space:nowrap;mask-image:linear-gradient(90deg,#000 85%,transparent)}
.ig-reel-audio b{display:inline-block;font-weight:400;padding-right:30px}
.ig-reel-audio.is-long b{animation:ig-marquee 9s linear infinite}
@keyframes ig-marquee{0%,15%{transform:translateX(0)}100%{transform:translateX(-60%)}}
.ig-reel-caption.is-clamped{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;cursor:pointer;position:relative}
.ig-reel-avatar{background:#555 center/cover no-repeat}
@media (max-width:768px){
  body.ig-reels-body{background:#000!important;overflow:hidden}
  body.ig-reels-body .ig-topbar,body.ig-reels-body nav.topbar,body.ig-reels-body .mobile-feed-tabs,body.ig-reels-body .page-back-button,body.ig-reels-body .social-left-rail,body.ig-reels-body .social-right-rail,body.ig-reels-body .admin-strip{display:none!important}
  body.ig-reels-body main.shell.app-shell{padding:0!important;margin:0!important}
  body.ig-reels-body .reels-feed-main{padding:0!important;margin:0!important;max-width:none!important}
  body.ig-reels-body .ig-reels-head{display:flex;position:fixed;top:0;left:0;right:0;z-index:30;justify-content:space-between;align-items:center;padding:calc(10px + env(safe-area-inset-top)) 16px 10px;color:#fff;pointer-events:none;background:linear-gradient(rgba(0,0,0,.35),transparent)}
  body.ig-reels-body .ig-reels-head strong{font-size:22px;font-weight:700}
  body.ig-reels-body .ig-reels-head label{pointer-events:auto;cursor:pointer}
  body.ig-reels-body .ig-reels-head svg{width:28px;height:28px;fill:none;stroke:#fff;stroke-width:1.9}
  body.ig-reels-body .ig-reels-list{position:fixed!important;top:0;left:0;right:0;bottom:calc(52px + env(safe-area-inset-bottom));overflow-y:auto!important;scroll-snap-type:y mandatory;overscroll-behavior-y:contain;-webkit-overflow-scrolling:touch;scrollbar-width:none;display:block!important;gap:0!important;padding:0!important;margin:0!important;background:#000}
  body.ig-reels-body .ig-reels-list::-webkit-scrollbar{display:none}
  body.ig-reels-body .ig-reels-list>*{scroll-snap-align:start;scroll-snap-stop:always}
  body.ig-reels-body .ig-reel-card{position:relative!important;height:calc(100dvh - 52px - env(safe-area-inset-bottom))!important;margin:0!important;border-radius:0!important;box-shadow:none!important;background:#000!important;max-width:none!important;width:100%!important;overflow:hidden}
  body.ig-reels-body .ig-reel-media{position:absolute!important;inset:0!important;height:100%!important;border-radius:0!important;aspect-ratio:auto!important}
  body.ig-reels-body .ig-reel-media video{width:100%!important;height:100%!important;object-fit:cover!important;border-radius:0!important;max-height:none!important}
  body.ig-reels-body .ig-reel-rail{right:8px!important;bottom:24px!important}
  body.ig-reels-body .ig-reel-bottom{left:12px!important;right:70px!important;bottom:18px!important}
  body.ig-reels-body nav.ig-bottom-nav{background:#000!important;border-top-color:#262626!important}
  body.ig-reels-body nav.ig-bottom-nav>a,body.ig-reels-body nav.ig-bottom-nav>label{color:#fff!important}
  body.ig-reels-body .ig-nav-avatar{box-shadow:none}
}
/* Comments bottom sheet */
.ig-reel-sheet{position:fixed;inset:0;z-index:5000}
.ig-reel-sheet[hidden]{display:none}
.ig-reel-sheet-backdrop{position:absolute;inset:0;border:0;background:rgba(0,0,0,.45);opacity:0;transition:opacity .2s}
.ig-reel-sheet.is-open .ig-reel-sheet-backdrop{opacity:1}
.ig-reel-sheet-card{position:absolute;left:0;right:0;bottom:0;max-height:72dvh;display:grid;grid-template-rows:auto minmax(0,1fr) auto;background:#fff;color:#000;border-radius:16px 16px 0 0;transform:translateY(100%);transition:transform .22s ease}
.ig-reel-sheet.is-open .ig-reel-sheet-card{transform:none}
.ig-reel-sheet-head{position:relative;display:grid;justify-items:center;gap:6px;padding:8px 12px 10px;border-bottom:1px solid #efefef}
.ig-sheet-grip{width:40px;height:4px;border-radius:2px;background:#dbdbdb}
.ig-reel-sheet-head strong{font-size:15px}
.ig-reel-sheet-head button{position:absolute;right:10px;top:12px;border:0;background:none;font-size:18px;cursor:pointer;color:#000}
.ig-reel-sheet-list{overflow-y:auto;padding:8px 14px;min-height:160px}
.ig-reel-comment{display:grid;grid-template-columns:34px 1fr;gap:10px;padding:8px 0;font-size:14px}
.ig-reel-comment i,.ig-reel-sheet-form i{width:34px;height:34px;border-radius:50%;background:#a8a8a8 center/cover no-repeat;display:grid;place-items:center;color:#fff;font-style:normal;font-weight:700}
.ig-reel-comment p{margin:0;line-height:1.35;overflow-wrap:anywhere}
.ig-reel-comment small{color:var(--ig-muted);font-size:12px}
.ig-reel-comment.is-pending{opacity:.6}
.ig-reel-comment.is-failed small{color:#ed4956}
.ig-reel-sheet-empty{text-align:center;color:var(--ig-ink);font-weight:600;padding:30px 0}
.ig-reel-sheet-empty small{color:var(--ig-muted);font-weight:400}
.ig-reel-sheet-form{display:grid;grid-template-columns:34px 1fr auto;gap:10px;align-items:center;padding:10px 14px calc(10px + env(safe-area-inset-bottom));border-top:1px solid #efefef;margin:0}
.ig-reel-sheet-form input{height:40px;border:1px solid var(--ig-line);border-radius:20px;padding:0 14px;font-size:15px;min-width:0}
.ig-reel-sheet-form button{border:0;background:none;color:var(--ig-blue);font-weight:600;font-size:15px;cursor:pointer}
body.ig-sheet-open{overflow:hidden}
@media (max-width:768px){body.ig-reels-body .ig-reels-list>.sv-reco-carousel{display:none!important}}
/* Emoji panel in the create forms must sit above the @tag box that follows it. */
.final-create-form .emoji-picker-wrap,.sv-upload-composer .emoji-picker-wrap{position:relative;z-index:60}
.final-create-form .emoji-picker-wrap:has([data-emoji-panel]:not([hidden])),.sv-upload-composer .emoji-picker-wrap:has([data-emoji-panel]:not([hidden])){z-index:100000!important}
/* The "+" create sheet must scroll: an older rule forced overflow:visible on it (for the @tag
   dropdown), which pushed the Publish button off-screen on phones. */
body .mobile-create-sheet .mobile-create-sheet-card.final-create-card{overflow-y:auto!important;overflow-x:hidden!important;overscroll-behavior:contain;-webkit-overflow-scrolling:touch}
body .mobile-create-sheet .final-create-form .button{position:sticky;bottom:0;z-index:5;box-shadow:0 -8px 16px rgba(255,255,255,.9)}
body .final-create-form .friend-tag-box{z-index:20!important}
body .mobile-create-sheet .final-create-form .button{z-index:30}
/* Post / Reel / Video segmented control */
body .final-create-form .create-type-tabs{display:grid!important;grid-template-columns:repeat(3,1fr)!important;gap:4px!important;padding:4px!important;margin:0 0 4px!important;border-radius:12px!important;background:#efefef!important;box-shadow:none!important;border:0!important}
body .final-create-form .create-type-tabs label{position:relative;display:block!important;margin:0!important;padding:0!important;background:none!important;box-shadow:none!important;border:0!important;cursor:pointer}
body .final-create-form .create-type-tabs input{position:absolute;opacity:0;pointer-events:none}
body .final-create-form .create-type-tabs span{display:flex!important;align-items:center;justify-content:center;gap:4px;height:36px!important;padding:0 6px!important;border-radius:9px!important;background:transparent!important;color:#737373!important;font-size:14px!important;font-weight:600!important;box-shadow:none!important;border:0!important;transition:background .15s,color .15s}
body .final-create-form .create-type-tabs input:checked+span{background:#fff!important;color:#000!important;box-shadow:0 1px 4px rgba(0,0,0,.14)!important}

/* ---------- Scroll performance ----------
   Opaque cards/panels had backdrop-filter: blur(18px) — invisible on a solid white card but
   re-blurred every scroll frame. The like-burst heart only needs its shadow while animating. */
body .fb-post-card,body .ig2-card,body .fb-composer,body .fb-left-rail,body .fb-right-rail,body .page-left-rail,body .page-right-rail,body .fb-support-panel,body .fb-reward-panel,body .ig-reel-card,body .reels-feed-main,body .social-page-main{backdrop-filter:none!important;-webkit-backdrop-filter:none!important}
.ig2-burst svg{filter:none!important}
.ig2-media.is-bursting .ig2-burst svg{filter:drop-shadow(0 4px 14px rgba(0,0,0,.35))!important}
.ig2-card{contain:layout paint style}
/* Top bar: keep the wordmark clear of the right-hand icons on narrow phones. */
@media (max-width:768px){
  .ig-topbar{grid-template-columns:48px minmax(0,1fr) 132px}
  .ig-tb-logo{min-width:0;max-width:100%;overflow:hidden}
  .ig-tb-logo span{font-size:20px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
}
@media (max-width:374px){.ig-tb-logo img{display:none}}
/* Desktop brand: logo + wordmark side by side, vertically centred (the text used to sit at the top, half hidden). */
@media (min-width:769px){
  body nav.topbar.auth-topbar .app-logo{align-items:center!important;gap:10px!important}
  body nav.topbar.auth-topbar .app-logo .brand-name{height:auto!important;line-height:1.1!important;font-size:20px!important;font-weight:800!important;font-style:italic;color:#111!important;letter-spacing:-.3px;position:relative;z-index:1;padding:0!important;margin:0!important;text-indent:0!important;clip-path:none!important}
}

/* Reels desktop: the "Suggested reels" carousel inside the list asks for its full row width (~850px) once
   its JS fills it; `.reels-feed-main` is an auto-column grid, so the whole column grew past its 550px track
   and the reel slid right, under/over the Reward wallet + Sponsored rail. Keep the column at its track width.
   Desktop/tablet only — phones use the full-screen reels rules above. */
@media (min-width:769px){
  .social-page-shell>.reels-feed-main{min-width:0!important;grid-template-columns:minmax(0,1fr)!important}
  .reels-feed-main>.ig-reels-list{min-width:0!important;width:100%!important;max-width:100%!important}
  .reels-feed-main>.ig-reels-list>.sv-reco-carousel{min-width:0!important;max-width:100%!important;overflow:hidden}
}
