/* Stage — feed, Shorts, Watch, profiles, chats. Uses the Xcojo design tokens (accent from the Xcojo Account). */
.pf-app-stage .pf-main{max-width:1240px}
.st-app{--r:16px;--card:var(--c-surface);--line:var(--c-border);--mut:var(--c-muted);--acc:var(--xco-accent);--accT:var(--accent-text);color:var(--c-text);-webkit-tap-highlight-color:transparent}
.st-app a{color:inherit;text-decoration:none}
.st-i{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round;flex:none}
.st-boot{display:grid;place-items:center;min-height:50vh}
.st-spin{width:28px;height:28px;border-radius:50%;border:3px solid color-mix(in srgb,var(--c-text) 15%,transparent);border-top-color:var(--xco-accent);animation:stspin .8s linear infinite;display:inline-block}
@keyframes stspin{to{transform:rotate(1turn)}}
.st-av{display:inline-grid;place-items:center;border-radius:50%;object-fit:cover;flex:none;background:linear-gradient(145deg,var(--c,var(--xco-accent)),color-mix(in srgb,var(--c,var(--xco-accent)) 55%,#000));color:#fff;font-weight:700;box-shadow:0 0 0 1px color-mix(in srgb,var(--c-text) 8%,transparent)}
.st-botb{display:inline-flex;align-items:center;gap:4px;margin-left:6px;padding:1px 8px 1px 6px;border-radius:999px;background:color-mix(in srgb,var(--xco-accent) 12%,transparent);color:var(--accent-text);font-size:.72rem;font-weight:600;white-space:nowrap;vertical-align:middle}
.st-botb .st-i{width:13px;height:13px}
.st-btn{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:38px;padding:0 16px;border-radius:999px;border:1px solid var(--c-border-strong);background:var(--c-surface);color:var(--c-text);font:inherit;font-weight:600;font-size:.92rem;cursor:pointer;transition:transform .12s,background .15s}
.st-btn:active{transform:scale(.97)}.st-btn.pri{background:var(--xco-accent);border-color:transparent;color:var(--on-accent,#fff)}.st-btn.sm{min-height:30px;padding:0 12px;font-size:.84rem}
.st-btn .st-i{width:18px;height:18px}
.st-ib{display:inline-grid;place-items:center;width:40px;height:40px;border-radius:50%;border:0;background:none;color:inherit;cursor:pointer}
.st-ib:hover{background:var(--c-fill)}
.st-follow{border:0;border-radius:999px;padding:7px 16px;background:var(--xco-accent);color:var(--on-accent,#fff);font:inherit;font-weight:700;font-size:.88rem;cursor:pointer;white-space:nowrap;transition:background .15s,transform .12s}
.st-follow.sm{padding:5px 12px;font-size:.8rem}.st-follow.lg{padding:10px 26px;font-size:.95rem}
.st-follow.on{background:var(--c-fill);color:var(--c-text);box-shadow:inset 0 0 0 1px var(--c-border-strong)}
.st-follow:active{transform:scale(.96)}
.st-chips{display:flex;gap:8px;flex-wrap:wrap}
.st-chip{padding:7px 14px;border-radius:10px;background:var(--c-fill);font-size:.86rem;font-weight:600;white-space:nowrap;transition:background .15s}
.st-chip:hover{background:color-mix(in srgb,var(--c-text) 10%,var(--c-fill))}.st-chip.on{background:var(--c-text);color:var(--c-surface)}.st-chip.tag{color:var(--accent-text)}
.st-empty,.st-hint{color:var(--mut);text-align:center;padding:28px 12px}
.st-end{color:var(--mut);text-align:center;font-size:.9rem}
.st-sentinel{display:grid;place-items:center;padding:26px}
.st-emptybox{text-align:center;padding:48px 20px;border-radius:var(--r);background:var(--c-surface);box-shadow:0 0 0 1px var(--line)}
.st-emptybox b{display:block;font-size:1.15rem;margin-bottom:6px}.st-emptybox p{color:var(--mut);margin:0 0 16px}
.st-emptybox.dark{background:none;box-shadow:none;color:#fff;margin:auto}
.st-toast{position:fixed;left:50%;bottom:calc(90px + env(safe-area-inset-bottom));transform:translateX(-50%);z-index:9999;padding:10px 18px;border-radius:999px;background:#1c1a16;color:#fff;font-weight:600;font-size:.9rem;box-shadow:0 10px 30px -8px rgba(0,0,0,.5);animation:stup .25s;transition:opacity .3s}
.st-toast.out{opacity:0}
@keyframes stup{from{transform:translate(-50%,12px);opacity:0}to{transform:translate(-50%,0);opacity:1}}
html.st-lock,html.st-lock body{overflow:hidden}

/* app bar (phones) */
.st-appbar{display:none;align-items:center;gap:2px;margin:-8px -6px 10px}
.st-brand{font-size:1.5rem;font-weight:800;letter-spacing:-.02em;background:linear-gradient(90deg,var(--xco-accent),#e11d48);-webkit-background-clip:text;background-clip:text;color:transparent!important}
.st-appbar .grow{flex:1}

/* home layout */
.st-home{display:grid;grid-template-columns:minmax(0,640px) 320px;gap:28px;justify-content:center;align-items:start}
.st-col{min-width:0}
.st-rail{position:sticky;top:calc(var(--topbar,60px) + 16px);display:flex;flex-direction:column;gap:14px}
.st-box{padding:16px;border-radius:var(--r);background:var(--card);box-shadow:0 0 0 1px var(--line)}
.st-box h4{margin:0 0 12px;font-size:.98rem}
.st-prow{display:flex;align-items:center;gap:8px;padding:6px 0}
.st-prow a{display:flex;align-items:center;gap:10px;flex:1;min-width:0}
.st-prow span{min-width:0}.st-prow b{display:block;font-size:.9rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.st-prow small{display:block;color:var(--mut);font-size:.76rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.st-fine{font-size:.78rem;color:var(--mut);line-height:1.45;margin:0 4px}
.st-tabs{display:flex;gap:4px;margin-bottom:12px;padding:4px;border-radius:12px;background:var(--c-fill)}
.st-tabs a{flex:1;text-align:center;padding:8px;border-radius:9px;font-weight:700;font-size:.92rem;color:var(--mut)}
.st-tabs a.on{background:var(--c-surface);color:var(--c-text);box-shadow:0 1px 3px rgba(0,0,0,.08)}

/* stories row */
.st-stories{display:flex;gap:14px;overflow-x:auto;padding:4px 2px 14px;scrollbar-width:none;margin-bottom:4px}
.st-stories::-webkit-scrollbar{display:none}
.st-story{display:flex;flex-direction:column;align-items:center;gap:6px;width:68px;flex:none}
.st-story small{font-size:.74rem;max-width:68px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:var(--mut)}
.st-ring{display:grid;place-items:center;width:66px;height:66px;border-radius:50%;padding:3px;background:var(--c-border-strong)}
.st-ring.live{background:conic-gradient(var(--xco-accent),#f43f5e,#f59e0b,var(--xco-accent))}
.st-ring .st-av{box-shadow:0 0 0 3px var(--c-bg)}
.st-story.first .st-ring{background:linear-gradient(145deg,#f43f5e,#7c3aed);color:#fff}.st-story.first .st-i{width:28px;height:28px}

/* composer */
.st-compose{display:grid;grid-template-columns:auto 1fr;gap:10px 12px;align-items:center;padding:14px 16px;margin-bottom:14px;border-radius:var(--r);background:var(--card);box-shadow:0 0 0 1px var(--line)}
.st-cin{text-align:left;border:0;border-radius:999px;padding:11px 16px;background:var(--c-fill);color:var(--mut);font:inherit;font-size:.95rem;cursor:pointer}
.st-cin:hover{background:color-mix(in srgb,var(--c-text) 8%,var(--c-fill))}
.st-cq{grid-column:1/-1;display:flex;gap:4px;border-top:1px solid var(--line);padding-top:8px}
.st-cq button{flex:1;display:flex;align-items:center;justify-content:center;gap:7px;padding:8px;border:0;border-radius:10px;background:none;color:var(--mut);font:inherit;font-weight:600;font-size:.88rem;cursor:pointer}
.st-cq button:hover{background:var(--c-fill)}
.st-cq button:nth-child(1) .st-i{color:#16a34a}.st-cq button:nth-child(2) .st-i{color:#dc2626}.st-cq button:nth-child(3) .st-i{color:#7c3aed}
.st-join{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:16px 18px;margin-bottom:14px;border-radius:var(--r);background:linear-gradient(135deg,color-mix(in srgb,var(--xco-accent) 14%,var(--card)),var(--card));box-shadow:0 0 0 1px var(--line)}
.st-join p{margin:2px 0 0;color:var(--mut);font-size:.9rem}

/* cards */
.st-feed{display:flex;flex-direction:column;gap:14px}
.st-card{border-radius:var(--r);background:var(--card);box-shadow:0 0 0 1px var(--line);overflow:hidden;animation:stin .3s ease-out}
@keyframes stin{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}
.st-rp{display:flex;align-items:center;gap:6px;padding:10px 16px 0;color:var(--mut);font-size:.82rem;font-weight:600}.st-rp .st-i{width:15px;height:15px}
.st-ch2{display:flex;align-items:center;gap:10px;padding:14px 12px 8px 16px}
.st-who{flex:1;min-width:0}
.st-nm{font-weight:700;font-size:.96rem;line-height:1.25;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.st-meta{color:var(--mut);font-size:.8rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.st-meta a:hover{text-decoration:underline}.st-g{color:var(--accent-text);font-weight:600}
.st-title{margin:2px 16px 6px;font-size:1.05rem;line-height:1.3}
.st-text{padding:0 16px 10px;font-size:.98rem;line-height:1.5;overflow-wrap:anywhere}
.st-text a{color:var(--accent-text)!important;font-weight:500}
.st-text.clamp{display:-webkit-box;-webkit-line-clamp:5;-webkit-box-orient:vertical;overflow:hidden}
.st-seemore{border:0;background:none;color:var(--mut);font:inherit;font-weight:700;padding:0 16px 10px;cursor:pointer}
.st-media{position:relative;background:#000}
.st-img{display:block;width:100%;padding:0;border:0;background:#000;cursor:zoom-in}
.st-img img{display:block;width:100%;max-height:720px;object-fit:contain}
.st-vid{position:relative;background:#000}
.st-vid video{display:block;width:100%;max-height:640px;object-fit:contain;cursor:pointer}
.st-vid.tall video{aspect-ratio:9/16;max-height:620px;margin:0 auto;width:auto;max-width:100%}
.st-vmute,.st-vfull{position:absolute;bottom:12px;width:36px;height:36px;border-radius:50%;border:0;display:grid;place-items:center;background:rgba(0,0,0,.55);color:#fff;cursor:pointer;backdrop-filter:blur(6px)}
.st-vmute{right:12px}.st-vfull{right:56px}.st-vmute .st-i,.st-vfull .st-i{width:18px;height:18px}
.st-vbar{position:absolute;left:0;right:0;bottom:0;height:3px;background:rgba(255,255,255,.2)}.st-vbar i{display:block;height:100%;width:0;background:var(--xco-accent)}
.st-acts{display:flex;align-items:center;gap:2px;padding:6px 8px;border-top:1px solid var(--line)}
.st-act{display:flex;align-items:center;gap:6px;padding:8px 12px;border:0;border-radius:10px;background:none;color:var(--mut);font:inherit;font-weight:600;font-size:.86rem;cursor:pointer;transition:background .15s,color .15s}
.st-act:hover{background:var(--c-fill);color:var(--c-text)}
.st-act.on{color:#e11d48}.st-act.on .st-i{fill:#e11d48;stroke:#e11d48}
.st-rep.on{color:#16a34a}
.st-act.pop .st-i,.st-rb.pop .st-i,.st-pill.pop .st-i,.st-cl.pop .st-i{animation:stpop .4s cubic-bezier(.2,1.6,.4,1)}
@keyframes stpop{40%{transform:scale(1.35)}100%{transform:scale(1)}}
.st-views{margin-left:auto;padding-right:8px;color:var(--mut);font-size:.8rem}
.st-burst{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);pointer-events:none;z-index:5;animation:stburst .8s ease-out forwards}
.st-burst .st-i{width:110px;height:110px;fill:#f43f5e;stroke:none;filter:drop-shadow(0 6px 18px rgba(0,0,0,.35))}
@keyframes stburst{0%{opacity:0;transform:translate(-50%,-50%) scale(.4)}20%{opacity:1;transform:translate(-50%,-50%) scale(1.15)}60%{opacity:1;transform:translate(-50%,-50%) scale(1)}100%{opacity:0;transform:translate(-50%,-90%) scale(.9)}}
.st-lb{position:fixed;inset:0;z-index:9998;display:grid;place-items:center;background:rgba(0,0,0,.92);cursor:zoom-out;animation:stfade .2s}
.st-lb img{max-width:96vw;max-height:92vh;object-fit:contain}.st-lb .st-x{position:absolute;top:16px;right:16px;color:#fff}
@keyframes stfade{from{opacity:0}}

/* shelves */
.st-shelf{padding:14px 0 14px 16px;border-radius:var(--r);background:var(--card);box-shadow:0 0 0 1px var(--line)}
.st-shelf header{display:flex;align-items:center;justify-content:space-between;padding-right:16px;margin-bottom:10px}
.st-shelf header b{display:flex;align-items:center;gap:8px;font-size:1rem}.st-shelf header b .st-i{color:#e11d48}
.st-shelf header a{color:var(--accent-text)!important;font-weight:600;font-size:.86rem}
.st-hs{display:flex;gap:10px;overflow-x:auto;padding-right:16px;scroll-snap-type:x mandatory;scrollbar-width:none}
.st-hs::-webkit-scrollbar{display:none}
.st-sthumb{position:relative;flex:none;width:150px;aspect-ratio:9/16;border-radius:12px;overflow:hidden;background:#111;scroll-snap-align:start;color:#fff!important}
.st-sthumb img{width:100%;height:100%;object-fit:cover;transition:transform .3s}.st-sthumb:hover img{transform:scale(1.04)}
.st-sthumb::after{content:"";position:absolute;inset:50% 0 0;background:linear-gradient(transparent,rgba(0,0,0,.75))}
.st-st{position:absolute;left:8px;right:8px;bottom:26px;z-index:1;font-weight:700;font-size:.82rem;line-height:1.25;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.st-sv{position:absolute;left:8px;bottom:8px;z-index:1;display:flex;align-items:center;gap:3px;font-size:.72rem;opacity:.9}.st-sv .st-i{width:12px;height:12px;fill:#fff}
.st-pc{flex:none;width:150px;display:flex;flex-direction:column;align-items:center;gap:8px;padding:14px 10px;border-radius:14px;background:var(--c-fill);text-align:center;scroll-snap-align:start}
.st-pc a{display:flex;flex-direction:column;align-items:center;gap:6px;min-width:0;width:100%}
.st-pc b{font-size:.88rem;max-width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.st-pc small{color:var(--mut);font-size:.72rem;max-width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}

/* sheets & menus */
.st-sheet-o{position:fixed;inset:0;z-index:9990;display:grid;place-items:center;background:rgba(0,0,0,.45);animation:stfade .2s}
.st-sheet-o.out{opacity:0;transition:opacity .2s}
.st-sheet{display:flex;flex-direction:column;width:min(560px,94vw);max-height:86vh;border-radius:20px;background:var(--c-surface);color:var(--c-text);box-shadow:0 30px 80px -20px rgba(0,0,0,.5);overflow:hidden;animation:stpopin .25s cubic-bezier(.2,.9,.3,1.15)}
@keyframes stpopin{from{transform:scale(.94);opacity:0}}
.st-sheet header{display:flex;align-items:center;justify-content:space-between;padding:14px 12px 10px 20px;border-bottom:1px solid var(--c-border)}
.st-sheet header b{font-size:1.05rem}
.st-x{display:grid;place-items:center;width:36px;height:36px;border-radius:50%;border:0;background:var(--c-fill);color:inherit;cursor:pointer}
.st-sheet-b{overflow:auto;padding:14px 18px 18px}
.st-menu{position:fixed;z-index:9995;min-width:200px;padding:6px;border-radius:14px;background:var(--c-surface);box-shadow:0 14px 40px -8px rgba(0,0,0,.35),0 0 0 1px var(--c-border);animation:stpopin .15s}
.st-menu button{display:flex;align-items:center;gap:10px;width:100%;padding:10px 12px;border:0;border-radius:9px;background:none;color:var(--c-text);font:inherit;font-weight:600;font-size:.9rem;text-align:left;cursor:pointer}
.st-menu button:hover{background:var(--c-fill)}.st-menu button.danger{color:#dc2626}
.st-share{display:flex;gap:8px}.st-share input{flex:1;min-width:0;padding:9px 12px;border-radius:10px;border:1px solid var(--c-border-strong);background:var(--c-fill);color:inherit;font:inherit}
.st-share-to{display:flex;flex-wrap:wrap;gap:8px;margin-top:14px}.st-share-to a{padding:8px 14px;border-radius:999px;background:var(--c-fill);font-weight:600;font-size:.88rem}
/* comments */
.st-comments .st-sheet-b{display:flex;flex-direction:column;padding:0;min-height:50vh}
.st-clist{flex:1;overflow:auto;padding:10px 18px}
.st-c{display:flex;gap:10px;padding:10px 0;align-items:flex-start}
.st-cb{flex:1;min-width:0}.st-ch{font-size:.84rem;color:var(--mut)}.st-ch a{font-weight:700;color:var(--c-text)}.st-ch span{margin-left:6px}
.st-ct{margin-top:2px;line-height:1.45;overflow-wrap:anywhere}.st-ct a{color:var(--accent-text)}
.st-cl{display:flex;flex-direction:column;align-items:center;gap:1px;border:0;background:none;color:var(--mut);font-size:.72rem;cursor:pointer}.st-cl .st-i{width:17px;height:17px}.st-cl.on{color:#e11d48}.st-cl.on .st-i{fill:#e11d48;stroke:#e11d48}
.st-cform{display:flex;align-items:flex-end;gap:10px;padding:10px 14px calc(10px + env(safe-area-inset-bottom));border-top:1px solid var(--c-border)}
.st-cform.big{border:0;padding:6px 0 16px}
.st-cform textarea{flex:1;min-height:38px;max-height:120px;padding:9px 14px;border-radius:20px;border:1px solid var(--c-border-strong);background:var(--c-fill);color:inherit;font:inherit;resize:none;outline:0}
.st-cform textarea:focus{border-color:var(--xco-accent)}
.st-send{display:grid;place-items:center;width:38px;height:38px;border-radius:50%;border:0;background:var(--xco-accent);color:var(--on-accent,#fff);flex:none;cursor:pointer}
.st-cform-in{margin:12px auto 16px}
/* create */
.st-create .st-sheet-b{display:flex;flex-direction:column;gap:12px}
.st-ctabs{display:grid;grid-template-columns:repeat(4,1fr);gap:4px;padding:4px;border-radius:12px;background:var(--c-fill)}
.st-ctabs button{display:flex;align-items:center;justify-content:center;gap:6px;padding:8px 4px;border:0;border-radius:9px;background:none;color:var(--mut);font:inherit;font-weight:700;font-size:.84rem;cursor:pointer}
.st-ctabs button.on{background:var(--c-surface);color:var(--c-text);box-shadow:0 1px 3px rgba(0,0,0,.1)}.st-ctabs .st-i{width:17px;height:17px}
.st-cwho{display:flex;align-items:center;gap:10px}
.st-ctitle,.st-cta{width:100%;border:0;background:none;color:inherit;font:inherit;outline:0;resize:none}
.st-ctitle{font-size:1.1rem;font-weight:700;padding:6px 0;border-bottom:1px solid var(--c-border)}
.st-cta{min-height:90px;font-size:1.05rem;line-height:1.5}
.st-cprev{position:relative}.st-cprev img,.st-cprev video{display:block;width:100%;max-height:380px;object-fit:contain;border-radius:14px;background:#000}
.st-cx{position:absolute;top:8px;right:8px;width:32px;height:32px;border-radius:50%;border:0;background:rgba(0,0,0,.6);color:#fff;display:grid;place-items:center;cursor:pointer}
.st-cpick{display:block;cursor:pointer}.st-cprev:not(:empty)+.st-cpick{display:none!important}
.st-cpick span{display:flex;flex-direction:column;align-items:center;gap:4px;padding:26px;border-radius:14px;border:2px dashed var(--c-border-strong);color:var(--mut);text-align:center}
.st-cpick span:hover{border-color:var(--xco-accent);color:var(--accent-text)}.st-cpick .st-i{width:30px;height:30px}.st-cpick b{color:var(--c-text)}.st-cpick small{font-size:.78rem}
.st-cfoot{display:flex;align-items:center;gap:10px}.st-ccount{color:var(--mut);font-size:.8rem}
.st-cprog{flex:1;height:4px;border-radius:2px;background:var(--c-fill);overflow:hidden;visibility:hidden}.st-cprog.on{visibility:visible}.st-cprog i{display:block;height:100%;width:0;background:var(--xco-accent);transition:width .2s}
.st-cgo{min-width:110px}

/* ===== SHORTS ===== */
body.st-full .pf-footer{display:none}
body.st-full .pf-main{padding-top:0;padding-bottom:0;max-width:none}
.st-shorts{position:relative;height:calc(100vh - var(--topbar,60px));height:calc(100dvh - var(--topbar,60px));display:flex;justify-content:center;background:#000;margin:0 calc(-1 * clamp(16px,4vw,48px));color:#fff}
.st-sbar{position:absolute;top:0;left:0;right:0;z-index:5;display:flex;align-items:center;gap:6px;padding:10px 12px;background:linear-gradient(rgba(0,0,0,.5),transparent);pointer-events:none}
.st-sbar>*{pointer-events:auto}.st-sbar b{font-size:1.1rem}.st-sbar .grow{flex:1}.st-sbar .st-ib{color:#fff}.st-sbar .st-ib:hover{background:rgba(255,255,255,.12)}
.st-reel{height:100%;width:min(100%,calc((100dvh - var(--topbar,60px)) * 9 / 16));overflow-y:scroll;scroll-snap-type:y mandatory;scrollbar-width:none;overscroll-behavior:contain}
.st-reel::-webkit-scrollbar{display:none}
.st-slide{position:relative;height:100%;scroll-snap-align:start;scroll-snap-stop:always;background:#000;overflow:hidden}
.st-slide video{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;background:#000}
.st-tap{position:absolute;inset:0 70px 120px 0;z-index:1}
.st-pause{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%) scale(.8);z-index:2;opacity:0;pointer-events:none;transition:opacity .2s,transform .2s}
.st-pause .st-i{width:72px;height:72px;fill:rgba(255,255,255,.85);stroke:none;filter:drop-shadow(0 4px 14px rgba(0,0,0,.5))}
.st-slide.paused .st-pause{opacity:1;transform:translate(-50%,-50%) scale(1)}
.st-info{position:absolute;left:0;right:74px;bottom:0;z-index:3;padding:60px 14px calc(18px + env(safe-area-inset-bottom));background:linear-gradient(transparent,rgba(0,0,0,.65));text-shadow:0 1px 4px rgba(0,0,0,.5)}
.st-sa b{font-size:1rem}.st-info .st-botb{background:rgba(255,255,255,.18);color:#fff;text-shadow:none}
.st-cap{margin:6px 0 8px;font-size:.92rem;line-height:1.4;max-height:4.2em;overflow:hidden}.st-cap a{color:#fff!important;font-weight:700}
.st-snd{display:flex;align-items:center;gap:6px;font-size:.82rem;opacity:.95}.st-snd .st-i{width:15px;height:15px}.st-snd span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.st-rail2{position:absolute;right:8px;bottom:calc(24px + env(safe-area-inset-bottom));z-index:4;display:flex;flex-direction:column;align-items:center;gap:16px}
.st-ra{position:relative;margin-bottom:8px}.st-ra .st-av{box-shadow:0 0 0 2px #fff}
.st-rplus{position:absolute;left:50%;bottom:-10px;transform:translateX(-50%);width:22px;height:22px;border-radius:50%;border:0;background:#f43f5e;color:#fff;display:grid;place-items:center;cursor:pointer;transition:background .2s}
.st-rplus .st-i{width:14px;height:14px;stroke-width:3}.st-rplus.ok{background:#fff;color:#f43f5e}
.st-rb{display:flex;flex-direction:column;align-items:center;gap:3px;border:0;background:none;color:#fff;font:inherit;font-size:.78rem;font-weight:700;cursor:pointer;text-shadow:0 1px 3px rgba(0,0,0,.6)}
.st-rb .st-i{width:34px;height:34px;padding:6px;border-radius:50%;background:rgba(255,255,255,.14);fill:none;filter:drop-shadow(0 1px 3px rgba(0,0,0,.4))}
.st-rb.on .st-i{fill:#f43f5e;stroke:#f43f5e;background:rgba(255,255,255,.95)}
.st-sprog{position:absolute;left:0;right:0;bottom:0;z-index:4;height:3px;background:rgba(255,255,255,.2)}.st-sprog i{display:block;height:100%;width:0;background:#fff}
.st-sviews{position:absolute;top:60px;right:12px;z-index:3;font-size:.76rem;opacity:.85;text-shadow:0 1px 3px rgba(0,0,0,.6)}
.st-snav{position:absolute;right:24px;top:50%;transform:translateY(-50%);display:flex;flex-direction:column;gap:12px;z-index:5}
.st-snav button{width:46px;height:46px;border-radius:50%;border:0;background:rgba(255,255,255,.12);color:#fff;font-size:1rem;cursor:pointer}
.st-snav button:hover{background:rgba(255,255,255,.22)}

/* ===== WATCH ===== */
.st-watch{display:flex;flex-direction:column;gap:16px}
.st-wchips{position:sticky;top:var(--topbar,60px);z-index:3;padding:10px 0;background:var(--c-bg);flex-wrap:nowrap;overflow-x:auto;scrollbar-width:none}
.st-wchips::-webkit-scrollbar{display:none}
.st-upload{align-self:flex-start}
.st-vgrid{display:grid;grid-template-columns:repeat(auto-fill,minmax(280px,1fr));gap:26px 18px}
.st-vgrid>.st-shelf{grid-column:1/-1}
.st-vt{display:flex;flex-direction:column;gap:10px;min-width:0}
.st-vth{position:relative;display:block;aspect-ratio:16/9;border-radius:14px;overflow:hidden;background:#111}
.st-vth img{width:100%;height:100%;object-fit:cover;transition:transform .3s}.st-vt:hover .st-vth img{transform:scale(1.03)}
.st-vth em{position:absolute;right:8px;bottom:8px;padding:1px 6px;border-radius:5px;background:rgba(0,0,0,.8);color:#fff;font-style:normal;font-size:.76rem;font-weight:700}
.st-vth em:empty{display:none}
.st-vtb{display:flex;gap:10px;min-width:0}.st-vtb>span{min-width:0}
.st-vtb b{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;font-size:.96rem;line-height:1.3;margin-bottom:3px}
.st-vtb small{display:block;color:var(--mut);font-size:.82rem}
.st-vt.sm{flex-direction:row;gap:10px}.st-vt.sm .st-vth{width:168px;flex:none;border-radius:10px}.st-vt.sm .st-vtb b{font-size:.88rem}.st-vt.sm .st-vtb small{font-size:.76rem}
.st-wp{display:grid;grid-template-columns:minmax(0,1fr) 380px;gap:24px;align-items:start}
.st-player{position:relative;border-radius:16px;overflow:hidden;background:#000;aspect-ratio:16/9}
.st-player video{width:100%;height:100%;display:block;background:#000}
.st-autonext{position:absolute;right:14px;bottom:60px;display:flex;align-items:center;gap:10px;padding:10px 12px 10px 16px;border-radius:12px;background:rgba(0,0,0,.8);color:#fff;font-size:.9rem}
.st-wt{margin:14px 0 10px;font-size:1.3rem;line-height:1.3}
.st-wrow{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.st-wrow .grow{flex:1}
.st-ah{display:flex;align-items:center;gap:10px}.st-ah b{display:block}
.st-pill{display:inline-flex;align-items:center;gap:6px;padding:8px 16px;border-radius:999px;border:0;background:var(--c-fill);color:var(--c-text);font:inherit;font-weight:700;font-size:.88rem;cursor:pointer}
.st-pill:hover{background:color-mix(in srgb,var(--c-text) 10%,var(--c-fill))}.st-pill.on .st-i{fill:#e11d48;stroke:#e11d48}
.st-desc{margin-top:14px;padding:12px 14px;border-radius:14px;background:var(--c-fill);font-size:.92rem}
.st-desc a{color:var(--accent-text)!important;font-weight:600}.st-dt{margin-top:6px;line-height:1.5}
.st-wc{margin-top:22px}.st-wc h3{font-size:1.1rem;margin:0 0 12px}.st-wc>.st-btn{margin-bottom:10px}
.st-next{display:flex;flex-direction:column;gap:12px}.st-next h4{margin:0}

/* ===== EXPLORE ===== */
.st-explore{display:flex;flex-direction:column;gap:16px;max-width:1000px;margin:0 auto}
.st-search{display:flex;align-items:center;gap:10px;padding:0 16px;height:48px;border-radius:999px;background:var(--c-surface);box-shadow:0 0 0 1px var(--c-border-strong)}
.st-search:focus-within{box-shadow:0 0 0 2px var(--xco-accent)}
.st-search input{flex:1;min-width:0;border:0;background:none;outline:0;color:inherit;font:inherit;font-size:1rem}
.st-mgrid{display:grid;grid-template-columns:repeat(auto-fill,minmax(180px,1fr));gap:6px}
.st-mt{position:relative;aspect-ratio:1;border-radius:10px;overflow:hidden;background:var(--c-fill)}
.st-mt img{width:100%;height:100%;object-fit:cover;transition:transform .3s}.st-mt:hover img{transform:scale(1.05)}
.st-mt i{position:absolute;top:8px;right:8px;color:#fff;filter:drop-shadow(0 1px 3px rgba(0,0,0,.6))}.st-mt i .st-i{fill:#fff}
.st-mt.text{display:flex;flex-direction:column;justify-content:space-between;padding:14px;background:linear-gradient(145deg,color-mix(in srgb,var(--xco-accent) 18%,var(--c-surface)),var(--c-surface));box-shadow:inset 0 0 0 1px var(--line)}
.st-mt.text span{font-weight:600;font-size:.9rem;line-height:1.4;display:-webkit-box;-webkit-line-clamp:5;-webkit-box-orient:vertical;overflow:hidden}.st-mt.text small{color:var(--mut);font-size:.76rem}

/* ===== PROFILE ===== */
.st-prof{max-width:980px;margin:0 auto}
.st-cover{height:200px;border-radius:20px;background:radial-gradient(circle at 20% 20%,color-mix(in srgb,var(--c) 70%,#fff),transparent 55%),linear-gradient(135deg,var(--c),color-mix(in srgb,var(--c) 40%,#000))}
.st-phead{display:flex;align-items:flex-end;gap:20px;padding:0 24px;margin-top:-56px;flex-wrap:wrap}
.st-phead>.st-av{box-shadow:0 0 0 5px var(--c-bg);font-size:40px!important}
.st-pinfo{flex:1;min-width:240px;padding-top:62px}
.st-pinfo h1{display:inline;margin:0;font-size:1.6rem}
.st-handle{margin:2px 0 8px;color:var(--mut)}.st-fy{padding:1px 8px;border-radius:6px;background:var(--c-fill);font-size:.76rem}
.st-bio{margin:0 0 8px;line-height:1.5}.st-bio a{color:var(--accent-text)}
.st-pmeta{margin:0 0 10px;color:var(--mut);font-size:.88rem}.st-pmeta a{color:var(--accent-text)!important}
.st-stats{display:flex;gap:18px;font-size:.92rem;color:var(--mut)}.st-stats b{color:var(--c-text)}
.st-pacts{display:flex;gap:8px;padding-bottom:12px}
.st-ptabs{display:flex;gap:4px;margin:20px 0 16px;border-bottom:1px solid var(--line);overflow-x:auto;scrollbar-width:none}
.st-ptabs a{padding:12px 16px;font-weight:700;color:var(--mut);border-bottom:3px solid transparent;white-space:nowrap}
.st-ptabs a.on{color:var(--c-text);border-color:var(--xco-accent)}
.st-pbody.t-posts,.st-pbody.t-replies{display:flex;flex-direction:column;gap:14px;max-width:640px;margin:0 auto}
.st-pbody.t-shorts{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:8px}
.st-sthumb.grid{width:auto}
.st-pbody.t-videos{display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:22px 16px}
.st-pbody.t-photos{display:grid;grid-template-columns:repeat(3,1fr);gap:4px}
.st-pbody>.st-empty,.st-pbody>.st-sentinel{grid-column:1/-1}

/* single post */
.st-single{max-width:640px;margin:0 auto;display:flex;flex-direction:column;gap:12px}
.st-back{display:inline-flex;align-items:center;gap:4px;font-weight:700;color:var(--mut)!important}
.st-sec{margin:8px 0 0;font-size:1.05rem}

/* ===== phones & tablets ===== */
@media (max-width:1100px){.st-home{grid-template-columns:minmax(0,640px)}.st-rail{display:none}.st-wp{grid-template-columns:1fr}}
@media (max-width:760px){
  .st-appbar{display:flex}
  .pf-app-stage .pf-topbar{display:none}
  .pf-app-stage .pf-main{padding-top:calc(12px + env(safe-area-inset-top))}
  .st-card,.st-compose,.st-shelf,.st-join{border-radius:0;box-shadow:none;margin-left:-16px;margin-right:-16px;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}
  .st-shelf{padding-left:16px}
  .st-feed{gap:8px}
  .st-vgrid{grid-template-columns:1fr;gap:18px}
  .st-vth{border-radius:0;margin:0 -16px}
  .st-player{border-radius:0;margin:0 -16px}
  .st-vt.sm .st-vth{margin:0;border-radius:10px;width:150px}
  .st-cover{height:130px;border-radius:0;margin:0 -16px}
  .st-phead{padding:0 4px;margin-top:-44px}.st-phead>.st-av{width:88px!important;height:88px!important}
  .st-pinfo{padding-top:0;min-width:0;flex-basis:100%}
  .st-pbody.t-posts .st-card{margin:0 -16px}
  .st-sheet-o{place-items:end stretch}
  .st-sheet{width:100%;max-height:92vh;border-radius:20px 20px 0 0;animation:stsheet .28s cubic-bezier(.2,.9,.3,1)}
  @keyframes stsheet{from{transform:translateY(100%)}}
  body.st-full .pf-tabbar{background:#000;border-color:#222}
  body.st-full .pf-tabbar a{color:#aaa}body.st-full .pf-tabbar a[aria-current]{color:#fff}
  .st-shorts{position:fixed;inset:0 0 calc(49px + env(safe-area-inset-bottom));height:auto;margin:0;z-index:5}
  .st-reel{width:100%}
  .st-snav{display:none}
  .st-sbar{padding-top:calc(10px + env(safe-area-inset-top))}
  .st-mgrid{grid-template-columns:repeat(3,1fr);gap:3px;margin:0 -16px}.st-mt{border-radius:0}
  .st-toast{bottom:calc(76px + env(safe-area-inset-bottom))}
}
@media (prefers-reduced-motion:reduce){.st-card,.st-sheet,.st-burst{animation:none}}

/* ===== CHATS (WhatsApp-style) ===== */
.st-wa{display:grid;grid-template-columns:360px minmax(0,1fr);height:calc(100vh - var(--topbar,60px) - 64px);height:calc(100dvh - var(--topbar,60px) - 64px);min-height:460px;border-radius:18px;overflow:hidden;background:var(--c-surface);box-shadow:0 0 0 1px var(--c-border);color:var(--c-text)}
.st-wa a{color:inherit;text-decoration:none}
.st-wa-list{display:flex;flex-direction:column;border-right:1px solid var(--c-border);min-height:0}
.st-wa-list header{display:flex;align-items:center;justify-content:space-between;padding:14px 12px 6px 18px}.st-wa-list header b{font-size:1.4rem}
.st-wa-new{display:flex;gap:6px;margin:6px 12px 8px;padding:4px 4px 4px 14px;border-radius:12px;background:var(--c-fill)}
.st-wa-new input{flex:1;min-width:0;border:0;background:none;outline:0;color:inherit;font:inherit}
.st-wa-new button{width:34px;height:34px;border-radius:9px;border:0;background:var(--xco-accent);color:var(--on-accent,#fff);display:grid;place-items:center;cursor:pointer}
.st-wa-convs{flex:1;overflow:auto}
.st-wa-c{display:flex;align-items:center;gap:12px;padding:10px 16px;position:relative}
.st-wa-c:hover{background:var(--c-fill)}.st-wa-c.on{background:color-mix(in srgb,var(--xco-accent) 12%,var(--c-surface))}
.st-wa-cm{flex:1;min-width:0;border-bottom:1px solid var(--c-border);padding-bottom:10px}
.st-wa-r1{display:flex;align-items:baseline;gap:8px}.st-wa-r1 b{flex:1;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-weight:600}.st-wa-r1 time{font-size:.74rem;color:var(--c-muted)}
.st-wa-last{display:block;color:var(--c-muted);font-size:.86rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.st-wa-c.unread b{font-weight:800}.st-wa-c.unread time{color:var(--accent-text);font-weight:700}
.st-wa-dot{position:absolute;right:16px;bottom:16px;width:10px;height:10px;border-radius:50%;background:var(--xco-accent)}
.st-wa-thread{display:flex;flex-direction:column;min-width:0;min-height:0;background:color-mix(in srgb,var(--xco-accent) 4%,var(--c-bg)) radial-gradient(color-mix(in srgb,var(--c-text) 7%,transparent) 1px,transparent 1.5px) 0 0/18px 18px}
.st-wa-empty{margin:auto;text-align:center;color:var(--c-muted);max-width:340px;padding:20px}.st-wa-empty .xco-i{width:56px;height:56px;opacity:.5}.st-wa-empty h2{color:var(--c-text);margin:10px 0 4px}
.st-wa-head{display:flex;align-items:center;gap:6px;padding:8px 14px;background:var(--c-surface);border-bottom:1px solid var(--c-border)}
.st-wa-back{display:none!important}
.st-wa-who{display:flex;align-items:center;gap:10px;min-width:0}.st-wa-who b{display:block}.st-wa-who small{display:block;color:var(--c-muted);font-size:.78rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.st-wa-chat{flex:1;overflow:auto;padding:14px 6% 8px;display:flex;flex-direction:column;gap:3px}
.st-wa-note{align-self:center;margin:4px 0 12px;padding:6px 12px;border-radius:10px;background:color-mix(in srgb,#fde68a 55%,var(--c-surface));color:#713f12;font-size:.78rem;text-align:center;max-width:420px}
.st-wa-b{position:relative;max-width:min(72%,540px);align-self:flex-start;padding:7px 10px 18px 12px;border-radius:12px 12px 12px 4px;background:var(--c-surface);box-shadow:0 1px 1px rgba(0,0,0,.08);line-height:1.4;white-space:pre-wrap;overflow-wrap:anywhere;font-size:.95rem;animation:stin .2s}
.st-wa-b.me{align-self:flex-end;border-radius:12px 12px 4px 12px;background:color-mix(in srgb,var(--xco-accent) 22%,var(--c-surface))}
.st-wa-b small{position:absolute;right:8px;bottom:3px;font-size:.66rem;color:var(--c-muted)}
.st-wa-b.me small{color:color-mix(in srgb,var(--accent-text) 80%,var(--c-muted))}
.st-wa-b.pending{opacity:.6}
.st-wa-b p{margin:0}
.st-wa-send{display:flex;align-items:flex-end;gap:8px;padding:8px 12px calc(8px + env(safe-area-inset-bottom));background:var(--c-surface);border-top:1px solid var(--c-border)}
.st-wa-send textarea{flex:1;min-height:42px;max-height:140px;padding:10px 16px;border-radius:22px;border:0;background:var(--c-fill);color:inherit;font:inherit;resize:none;outline:0}
.st-wa-send button{width:44px;height:44px;border-radius:50%;border:0;background:var(--xco-accent);color:var(--on-accent,#fff);display:grid;place-items:center;flex:none;cursor:pointer}
@media (max-width:760px){
  .pf-app-stage .st-wa{position:fixed;inset:0 0 calc(49px + env(safe-area-inset-bottom));height:auto;min-height:0;border-radius:0;box-shadow:none;grid-template-columns:1fr;z-index:4}
  .st-wa .st-wa-thread{display:none}.st-wa.in .st-wa-list{display:none}.st-wa.in .st-wa-thread{display:flex}
  .st-wa.in{bottom:0;z-index:20}
  .st-wa-back{display:inline-grid!important}
  .st-wa-list header{padding-top:calc(14px + env(safe-area-inset-top))}.st-wa-head{padding-top:calc(8px + env(safe-area-inset-top))}
  .st-wa-b{max-width:84%}
}
/* fixes */
.st-vgrid>*,.st-mgrid>*,.st-pbody>*,.st-feed>*,.st-home>*{min-width:0}
.st-phead{align-items:flex-start}.st-pinfo{padding-top:64px}
@media (max-width:760px){.st-nm{white-space:normal}.st-nm .st-botb{margin:2px 0 0 0}.pf-app-stage .st-wa.in{z-index:1000}.st-pinfo{padding-top:0}}
.st-invcard{display:flex;align-items:center;gap:16px;padding:18px;margin:12px 0;border-radius:18px;background:linear-gradient(135deg,color-mix(in srgb,var(--accent,#0f766e) 14%,transparent),color-mix(in srgb,#059669 10%,transparent));border:1px solid var(--line,rgba(127,127,127,.18))}
.st-invcard div{flex:1;min-width:0}.st-invcard p{margin:4px 0 0;color:var(--text-2,#666);font-size:14px;line-height:1.45}
@media (max-width:560px){.st-invcard{flex-direction:column;align-items:flex-start}}
/* Stage 3: audience picker, Stage News */
.st-cvis { margin-left: auto; border-radius: 99px; padding: 4px 10px; font: inherit; font-size: 13px; }
.st-news { margin: 14px 0; padding: 14px; border-radius: 22px; border: 1px solid color-mix(in srgb, currentColor 10%, transparent); background: color-mix(in srgb, var(--pf-surface, #fff) 80%, transparent); }
.st-news header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; } .st-news header a { font-size: 13px; }
.st-news-row { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(220px, 1fr); gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; }
.st-news-card { display: flex; flex-direction: column; gap: 6px; text-decoration: none; color: inherit; scroll-snap-align: start; }
.st-news-card img { width: 100%; aspect-ratio: 16/9; object-fit: cover; border-radius: 14px; background: color-mix(in srgb, currentColor 6%, transparent); }
.st-news-card small { display: block; color: var(--pf-muted, #888); font-size: 12px; } .st-news-card b { font-size: 14.5px; line-height: 1.3; }
.st-newsgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; } .st-news-card.big b { font-size: 16px; }
.st-wa-b.gone em { opacity: .6; } .st-wa-del { display: inline; } .st-wa-del button { background: none; border: 0; color: inherit; opacity: 0; cursor: pointer; margin-left: 6px; font-size: 15px; } .st-wa-b:hover .st-wa-del button { opacity: .6; }
/* Stage Messenger — a Messenger-style look for Stage chats (Gate keeps its own WhatsApp/Signal style) */
#st-dm .st-wa-chat { background: var(--c-bg, #fff); gap: 2px; }
#st-dm .st-wa-b { padding: 8px 13px; border-radius: 20px; box-shadow: none; background: var(--c-fill, #f0f2f5); max-width: min(68%, 520px); margin: 1px 0; }
#st-dm .st-wa-b.me { color: #fff; background: linear-gradient(135deg, #0a7cff 0%, #7b2ff7 55%, #c13584 100%); background-attachment: fixed; }
#st-dm .st-wa-b.me a { color: #fff; text-decoration: underline; }
#st-dm .st-wa-b small { position: static; display: block; text-align: right; margin-top: 2px; font-size: .64rem; opacity: .7; }
#st-dm .st-wa-b.me small { color: rgba(255,255,255,.85); }
#st-dm .st-wa-b.gone { background: transparent; border: 1px solid color-mix(in srgb, currentColor 15%, transparent); color: var(--c-muted); }
#st-dm .st-wa-b.me.gone { background: transparent; color: var(--c-muted); }
#st-dm .st-wa-send textarea { border-radius: 22px; background: var(--c-fill, #f0f2f5); border: 0; padding: 10px 16px; }
#st-dm .st-wa-send button { border-radius: 50%; background: #0a7cff; color: #fff; }
#st-dm .st-wa-del button { color: inherit; }
