/* ===== P-Gist look: ONE design that follows the app theme. Light and dark share the same layout, spacing and lime accent;
   only the variables below change. (Loaded last, so it wins over the older reels.css / style.css gist rules.) ===== */
#appview.pgist-social{--g-bg:#ffffff;--g-card:#f4f6f8;--g-line:#e7eaee;--g-ink:#14171c;--g-mut:#667085;--g-chip:#eef1f4;--g-acc:#d8f23c;--g-acc-ink:#14170a;--g-accent-text:#5b7400;--g-link:#1769ff;--g-shadow:rgba(16,24,40,.08);--g-pad:8px}
html[data-theme="dark"] #appview.pgist-social{--g-bg:#0d0f12;--g-card:#14181d;--g-line:#222831;--g-ink:#f2f4f7;--g-mut:#8d96a3;--g-chip:#1a1e24;--g-acc:#e8f23a;--g-acc-ink:#12150a;--g-accent-text:#b4cf3c;--g-link:#4da3ff;--g-shadow:rgba(0,0,0,.4);--g-pad:8px}
:is(html,html[data-theme]) .screen.light:has(.pgist-social){--hbg:#ffffff!important;background:#fff}
html[data-theme="dark"] .screen.light:has(.pgist-social){--hbg:#0d0f12!important;background:#0d0f12}
:is(html,html[data-theme]) .screen.light:has(.pgist-social) .home{display:none}
:is(html,html[data-theme]) .screen.light:has(.pgist-social) .sb,:is(html,html[data-theme]) .screen.light:has(.pgist-social) .sb *{color:#14171c;fill:#14171c}
html[data-theme="dark"] .screen.light:has(.pgist-social) .sb,html[data-theme="dark"] .screen.light:has(.pgist-social) .sb *{color:#fff;fill:#fff}

/* base surfaces */
:is(html,html[data-theme]) #appview.pgist-social,:is(html,html[data-theme]) #appview.pgist-social.pgist-social .abody:not(.rlb){background:var(--g-bg);color:var(--g-ink)}
:is(html,html[data-theme]) #appview.pgist-social.pgist-social .ahw,:is(html,html[data-theme]) #appview.pgist-social.pgist-social .ahead{background:var(--g-bg)!important;color:var(--g-ink);border:0}
:is(html,html[data-theme]) #appview.pgist-social.pgist-social .ahw{border-bottom:1px solid var(--g-line)!important}
:is(html,html[data-theme]) #appview.pgist-social.pgist-social .ahead h2,:is(html,html[data-theme]) #appview.pgist-social.pgist-social .aback{color:var(--g-ink)}
:is(html,html[data-theme]) #appview.pgist-social.pgist-social .ahead h2{font-size:18px}
:is(html,html[data-theme]) #appview.pgist-social.pgist-social .ahead{display:flex;align-items:center;gap:8px;padding:6px 12px}
:is(html,html[data-theme]) #appview.pgist-social.pgist-social .abody:not(.rlb){zoom:.94;padding-bottom:72px}
:is(html,html[data-theme]) #appview.pgist-social.pgist-social .empty{color:var(--g-mut)}
:is(html,html[data-theme]) #appview.pgist-social.pgist-social .avi{display:inline-flex;align-items:center;justify-content:center;line-height:1;overflow:hidden}

/* home header: back button + centred For you / Following switch (same look as the Reels one) */
.gseg{display:flex;gap:2px;padding:3px;border-radius:99px;border:1px solid var(--g-line);background:var(--g-card);margin:0 auto}
:is(html,html[data-theme]) #appview.pgist-social.pgist-social .gseg button{flex:none;border:0;background:none;color:var(--g-mut);border-radius:99px;padding:6px 16px;font:700 12.5px 'Plus Jakarta Sans',system-ui,sans-serif;cursor:pointer}
:is(html,html[data-theme]) #appview.pgist-social.pgist-social .gseg button.on{background:var(--g-acc);color:var(--g-acc-ink)}
.ahead:has(.gseg) .aback{flex:none}.ahead:has(.gseg)::after{content:"";width:28px;flex:none}
:is(html,html[data-theme]) #appview.pgist-social.pgist-social .rl-tabs button.on{background:var(--g-acc);color:var(--g-acc-ink)}
.gtagbar{display:flex;align-items:center;justify-content:space-between;padding:8px var(--g-pad);font-weight:800;color:var(--g-ink)}
.gtagbar button{border:0;background:var(--g-chip);color:var(--g-ink);border-radius:99px;padding:6px 12px;font:700 12px inherit;font-family:inherit}

/* slim composer + filter chips */
:is(html,html[data-theme]) #appview.pgist-social.pgist-social .gtease{display:flex;align-items:center;gap:10px;margin:10px var(--g-pad) 4px;padding:6px 8px 6px 6px;background:var(--g-card);border:1px solid var(--g-line);border-radius:99px}
:is(html,html[data-theme]) #appview.pgist-social.pgist-social .gme{width:34px;height:34px;border:0;padding:0;background:none;flex:none}
:is(html,html[data-theme]) #appview.pgist-social.pgist-social .gwhat{flex:1;min-width:0;text-align:left;border:0;background:none;color:var(--g-mut);font:600 13.5px inherit;font-family:inherit;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
:is(html,html[data-theme]) #appview.pgist-social.pgist-social .gphoto{display:none}
.gkinds{display:flex;gap:6px;padding:8px var(--g-pad) 8px;position:sticky;top:0;z-index:6;background:var(--g-bg);border-bottom:1px solid var(--g-line);box-shadow:-24px 0 0 var(--g-bg),24px 0 0 var(--g-bg)}
.gkinds button{border:1px solid var(--g-line);background:var(--g-bg);color:var(--g-mut);border-radius:99px;padding:5px 13px;font:700 12px 'Plus Jakarta Sans',system-ui,sans-serif;cursor:pointer}
.gkinds button.on{background:var(--g-acc);border-color:var(--g-acc);color:var(--g-acc-ink)}

/* posts: same side margin for everything, thin divider between posts */
:is(html,html[data-theme]) #appview.pgist-social.pgist-social .gp{background:var(--g-bg);color:var(--g-ink);border:0;border-bottom:1px solid var(--g-line);border-radius:0;margin:0;padding:0 0 4px}
:is(html,html[data-theme]) #appview.pgist-social.pgist-social .gtop{display:flex;align-items:center;gap:10px;padding:12px var(--g-pad) 10px}
:is(html,html[data-theme]) #appview.pgist-social.pgist-social .gph{background:none;border:0;color:var(--g-ink);text-align:left}
:is(html,html[data-theme]) #appview.pgist-social.pgist-social .gph b,:is(html,html[data-theme]) #appview.pgist-social.pgist-social .grs b{color:var(--g-ink)}
:is(html,html[data-theme]) #appview.pgist-social.pgist-social .gph i,:is(html,html[data-theme]) #appview.pgist-social.pgist-social .gph small{color:var(--g-mut)}
:is(html,html[data-theme]) #appview.pgist-social.pgist-social .gmore{color:var(--g-mut);background:none;border:0}
.gfol{margin-left:auto;border:1px solid var(--g-ink);background:none;color:var(--g-ink);font:700 12px 'Plus Jakarta Sans',system-ui,sans-serif;border-radius:99px;padding:5px 13px;cursor:pointer}
.gfol.on{border-color:var(--g-line);color:var(--g-mut)}
.gfol.lime{margin:0;background:var(--g-acc);border-color:var(--g-acc);color:var(--g-acc-ink);padding:8px 18px;font-size:13px}.gfol.lime.on{background:var(--g-chip);border-color:var(--g-line);color:var(--g-mut)}
.gtop .gfol+.gmore{margin-left:0}
.gmedia{position:relative;margin:0 var(--g-pad);border-radius:14px;overflow:hidden;background:var(--g-card)}
.gmedia:empty{display:none}
.gvchip{position:absolute;left:10px;top:10px;z-index:3;display:inline-flex;gap:5px;align-items:center;background:rgba(10,12,14,.66);color:#fff;border-radius:99px;padding:4px 10px;font:700 11.5px inherit;font-family:inherit}
.gheadline{padding:2px var(--g-pad) 0}
.gkick{font:700 10.5px inherit;font-family:inherit;letter-spacing:.16em;text-transform:uppercase;color:var(--g-accent-text);margin:6px 0 4px}
.gtitle{margin:0;font:700 16px/1.32 Outfit,system-ui,sans-serif;color:var(--g-ink);overflow-wrap:anywhere}
:is(html,html[data-theme]) #appview.pgist-social.pgist-social .gbody{color:var(--g-mut);margin-top:4px;font-size:13.5px}
.gread{color:var(--g-mut);font-size:12px;margin-top:6px}
:is(html,html[data-theme]) #appview.pgist-social.pgist-social .gtag,:is(html,html[data-theme]) #appview.pgist-social.pgist-social .gmen{color:var(--g-link)}
:is(html,html[data-theme]) #appview.pgist-social.pgist-social .gact{display:flex;gap:8px;padding:10px var(--g-pad) 8px}
:is(html,html[data-theme]) #appview.pgist-social.pgist-social .gact button{display:inline-flex;align-items:center;gap:6px;background:var(--g-chip);color:var(--g-ink);border:0;border-radius:99px;padding:7px 13px;font:700 13px inherit;font-family:inherit}
:is(html,html[data-theme]) #appview.pgist-social.pgist-social .gact button i{font-size:14px}
:is(html,html[data-theme]) #appview.pgist-social.pgist-social .gact .sh{margin-left:auto}
:is(html,html[data-theme]) #appview.pgist-social.pgist-social .gact .lk.on{background:var(--g-acc);color:var(--g-acc-ink)}
.gnum{font:700 13px inherit;font-family:inherit}.gnum:empty{display:none}
:is(html,html[data-theme]) #appview.pgist-social.pgist-social .grs,:is(html,html[data-theme]) #appview.pgist-social.pgist-social .gcmlk{color:var(--g-mut);padding:0 var(--g-pad) 8px;background:none;border:0}

/* skeleton loading + empty states */
.gsk{padding:14px}.gsk i{display:block;border-radius:10px;background:linear-gradient(90deg,var(--g-card) 25%,var(--g-chip) 50%,var(--g-card) 75%);background-size:200% 100%;animation:gsk 1.3s linear infinite}
.gsk .r{display:flex;gap:10px;align-items:center;margin-bottom:12px}.gsk .c{width:36px;height:36px;border-radius:50%}.gsk .l{height:10px;flex:1}.gsk .m{height:190px;border-radius:16px;margin-bottom:12px}.gsk .t{height:12px;margin-bottom:8px}
@keyframes gsk{to{background-position:-200% 0}}
@media (prefers-reduced-motion:reduce){.gsk i{animation:none}}
.gempty{text-align:center;padding:36px 22px;color:var(--g-mut)}
.gempty b{display:block;color:var(--g-ink);font:700 16px Outfit,system-ui,sans-serif;margin-bottom:6px}
.gempty p{margin:0 0 14px;font-size:13.5px;line-height:1.5}
.gempty button{border:0;border-radius:99px;background:var(--g-acc);color:var(--g-acc-ink);padding:10px 20px;font:800 13px 'Plus Jakarta Sans',system-ui,sans-serif;cursor:pointer}
.gmorebtn{display:block;margin:12px auto;border:1px solid var(--g-line);background:var(--g-card);color:var(--g-ink);border-radius:99px;padding:9px 18px;font:700 13px inherit;font-family:inherit}

/* Discover */
:is(html,html[data-theme]) #appview.pgist-social.pgist-social .gdiscover{display:flex;align-items:center;gap:8px;margin:10px var(--g-pad) 4px;padding:0;background:none;border:0}
:is(html,html[data-theme]) #appview.pgist-social.pgist-social .gdiscover form{display:flex;flex:1;min-width:0;align-items:center;background:var(--g-card);border:1px solid var(--g-line);border-radius:99px;padding:0 4px 0 14px}
:is(html,html[data-theme]) #appview.pgist-social.pgist-social .gdiscover input{flex:1;min-width:0;height:38px;border:0;background:none;color:var(--g-ink);font:600 14px inherit;font-family:inherit;outline:0;padding:0}
:is(html,html[data-theme]) #appview.pgist-social.pgist-social .gdiscover form button{background:none;border:0;color:var(--g-mut);width:36px;height:36px}
:is(html,html[data-theme]) #appview.pgist-social.pgist-social .gsaved-link{flex:none;display:inline-flex;align-items:center;gap:6px;height:40px;padding:0 14px;border-radius:99px;background:var(--g-card);border:1px solid var(--g-line);color:var(--g-ink);font:700 13px inherit;font-family:inherit}
.gsec{padding:16px var(--g-pad) 6px}.gsec small{display:block;letter-spacing:.16em;font-weight:700;font-size:10.5px;color:var(--g-mut)}.gsec h2{margin:3px 0 0;font:800 20px Outfit,system-ui,sans-serif;color:var(--g-ink)}
.gsig{display:grid;grid-template-columns:1fr 1fr;gap:10px;padding:6px var(--g-pad) 8px}
.gsc{position:relative;display:flex;flex-direction:column;gap:3px;min-height:132px;border-radius:20px;padding:14px;color:#161a0c;text-decoration:none;cursor:pointer;overflow:hidden}
.gsc em{font:600 12px inherit;font-style:normal;opacity:.6}.gsc i{position:absolute;right:14px;top:14px;font-size:13px}
.gsc b{font:800 16px/1.15 Outfit,system-ui,sans-serif;overflow-wrap:anywhere;margin-top:2px}.gsc span{font-size:12px;opacity:.7}.gsc strong{margin-top:auto;font-size:12px}
.gsc.c0{background:#dcff4f}.gsc.c1{background:#ff9370}.gsc.c2{background:#a98bff}.gsc.c3{background:#8fc8ff}
.gppl{display:grid;gap:8px;padding:4px var(--g-pad) 12px}
.gpp{display:flex;align-items:center;gap:10px;background:var(--g-card);border:1px solid var(--g-line);border-radius:18px;padding:9px 12px}
.gpp .gph{flex:1;min-width:0;display:flex;align-items:center;gap:10px;text-align:left;background:none;border:0;color:var(--g-ink)}
.gpp .gph span{display:flex;flex-direction:column;min-width:0}.gpp .gph b{font-size:13.5px}.gpp .gph i{font-style:normal;font-size:12px;color:var(--g-mut)}
:is(html,html[data-theme]) #appview.pgist-social.pgist-social .gtrend{background:none;border:0}

/* bottom bar: four icons, nothing else */
:is(html,html[data-theme]) #appview.pgist-social.pgist-social .tkdock.gicons{position:absolute;left:0;right:0;bottom:0;margin:0;height:54px;padding:0 10px;max-width:none;display:flex;align-items:center;justify-content:space-around;background:var(--g-bg);border:0;border-top:1px solid var(--g-line);border-radius:0;box-shadow:none}
:is(html,html[data-theme]) #appview.pgist-social.pgist-social .tkdock.gicons button{flex:1;height:100%;min-width:0;display:flex;align-items:center;justify-content:center;background:none;border:0;color:var(--g-mut)}
:is(html,html[data-theme]) #appview.pgist-social.pgist-social .tkdock.gicons button.on{color:var(--g-ink)}
:is(html,html[data-theme]) #appview.pgist-social.pgist-social .tkdock.gicons .mk{flex:none;width:44px;height:32px;min-width:44px;border-radius:11px;background:var(--g-ink);color:var(--g-bg);box-shadow:none}
@media (min-width:700px){
  :is(html,html[data-theme]) #appview.pgist-social.pgist-social .tkdock.gicons{left:50%;right:auto;transform:translateX(-50%);width:min(520px,100%);border:1px solid var(--g-line);border-bottom:0;border-radius:18px 18px 0 0}
  .gsig{grid-template-columns:repeat(4,1fr)}
}

/* older rules target "#appview.pgist-social #gfeed .gp" (two ids); match that weight so the theme variables win */
:is(html,html[data-theme]) #appview.pgist-social.pgist-social #gfeed .gp{background:var(--g-bg);color:var(--g-ink);margin:0;padding:0 0 4px;border:0;border-bottom:1px solid var(--g-line);border-radius:0}
:is(html,html[data-theme]) #appview.pgist-social.pgist-social #gfeed{background:var(--g-bg)}
:is(html,html[data-theme]) #appview.pgist-social.pgist-social .gph b{font:700 13.5px 'Plus Jakarta Sans',system-ui,sans-serif;color:var(--g-ink)}
:is(html,html[data-theme]) #appview.pgist-social.pgist-social .gph i{font:500 11.5px 'Plus Jakarta Sans',system-ui,sans-serif;color:var(--g-mut)}
:is(html,html[data-theme]) #appview.pgist-social.pgist-social .gph .avi{box-shadow:none}

/* ===== other P-Gist screens (new post, post detail, comments, profile): same variables, so light and dark both work ===== */
:is(html,html[data-theme]) #appview.pgist-social.pgist-social .gcomp{background:var(--g-bg);color:var(--g-ink);padding:12px var(--g-pad)}
:is(html,html[data-theme]) #appview.pgist-social.pgist-social .gcwho{display:flex;align-items:center;gap:10px}
:is(html,html[data-theme]) #appview.pgist-social.pgist-social .gcwho b{color:var(--g-ink);font-size:14px}
:is(html,html[data-theme]) #appview.pgist-social.pgist-social .gcomp textarea,:is(html,html[data-theme]) #appview.pgist-social.pgist-social .abody textarea,:is(html,html[data-theme]) #appview.pgist-social.pgist-social .abody input[type=text],:is(html,html[data-theme]) #appview.pgist-social.pgist-social .abody input[type=search]{background:var(--g-card);color:var(--g-ink);border:1px solid var(--g-line);border-radius:16px;padding:12px 14px;font:500 14.5px inherit;font-family:inherit;box-sizing:border-box;width:100%}
:is(html,html[data-theme]) #appview.pgist-social.pgist-social .gcomp textarea::placeholder{color:var(--g-mut)}
:is(html,html[data-theme]) #appview.pgist-social.pgist-social .gcount,:is(html,html[data-theme]) #appview.pgist-social.pgist-social .gdraft-note{color:var(--g-mut);font-size:12px}
:is(html,html[data-theme]) #appview.pgist-social.pgist-social .gtools{display:flex;gap:8px;margin:12px 0;flex-wrap:wrap}
:is(html,html[data-theme]) #appview.pgist-social.pgist-social .gtools button{flex:1;min-width:0;display:inline-flex;align-items:center;justify-content:center;gap:6px;height:40px;border-radius:99px;background:var(--g-chip);color:var(--g-ink);border:1px solid var(--g-line);font:700 12.5px inherit;font-family:inherit}
:is(html,html[data-theme]) #appview.pgist-social.pgist-social .btn.p,:is(html,html[data-theme]) #appview.pgist-social.pgist-social .abody .btn.p{background:var(--g-acc);color:var(--g-acc-ink);border:0;border-radius:99px;height:46px;font:800 14.5px 'Plus Jakarta Sans',system-ui,sans-serif;box-shadow:none;width:100%}
:is(html,html[data-theme]) #appview.pgist-social.pgist-social .btn.p:disabled{opacity:.45}
:is(html,html[data-theme]) #appview.pgist-social.pgist-social .btn.out{background:none;border:1px solid var(--g-line);color:var(--g-ink)}
:is(html,html[data-theme]) #appview.pgist-social.pgist-social .lab2{color:var(--g-mut);letter-spacing:.14em;font-size:11px;font-weight:700;padding:14px var(--g-pad) 6px;background:none}
:is(html,html[data-theme]) #appview.pgist-social.pgist-social .gcm,:is(html,html[data-theme]) #appview.pgist-social.pgist-social #gcm>*{color:var(--g-ink)}
:is(html,html[data-theme]) #appview.pgist-social.pgist-social .gcb{background:var(--g-card);color:var(--g-ink);border-radius:16px}
:is(html,html[data-theme]) #appview.pgist-social.pgist-social .gcb small,:is(html,html[data-theme]) #appview.pgist-social.pgist-social .gstats span{color:var(--g-mut)}
:is(html,html[data-theme]) #appview.pgist-social.pgist-social .gprof{background:var(--g-bg);color:var(--g-ink);border-bottom:1px solid var(--g-line)}
:is(html,html[data-theme]) #appview.pgist-social.pgist-social .gprof h3{color:var(--g-ink);font-size:20px}
:is(html,html[data-theme]) #appview.pgist-social.pgist-social .gprof p,:is(html,html[data-theme]) #appview.pgist-social.pgist-social .gprof small{color:var(--g-mut)}
:is(html,html[data-theme]) #appview.pgist-social.pgist-social .gpoll .gpo{background:var(--g-card);color:var(--g-ink);border-color:var(--g-line)}
:is(html,html[data-theme]) #appview.pgist-social.pgist-social .aerr{color:#e5484d}
:is(html,html[data-theme]) #appview.pgist-social.pgist-social .fopt,:is(html,html[data-theme]) #appview.pgist-social.pgist-social .row{color:var(--g-ink)}
:is(html,html[data-theme]) #appview.pgist-social.pgist-social .row{background:var(--g-bg);border-color:var(--g-line)}

.tkdock.gicons button{position:relative}
.gdot{position:absolute;top:11px;left:calc(50% + 9px);width:9px;height:9px;border-radius:50%;background:#ff4d4f;border:2px solid var(--g-bg)}

/* profile: stat strip, game stats, buttons, tabs follow the theme too */
:is(html,html[data-theme]) #appview.pgist-social.pgist-social .gstats{background:none;border-color:var(--g-line)}
:is(html,html[data-theme]) #appview.pgist-social.pgist-social .gstats>*{background:none;color:var(--g-ink)}
:is(html,html[data-theme]) #appview.pgist-social.pgist-social .gstats span{color:var(--g-mut)}
:is(html,html[data-theme]) #appview.pgist-social.pgist-social .ggs{background:var(--g-card);border:1px solid var(--g-line);color:var(--g-ink)}
:is(html,html[data-theme]) #appview.pgist-social.pgist-social .ggs .ggg>div{background:var(--g-bg);color:var(--g-ink)}
:is(html,html[data-theme]) #appview.pgist-social.pgist-social .ggs span,:is(html,html[data-theme]) #appview.pgist-social.pgist-social .ggs small{color:var(--g-mut)}
:is(html,html[data-theme]) #appview.pgist-social.pgist-social .btn.s{background:none;color:var(--g-ink);border:1px solid var(--g-line);border-radius:99px;height:44px}
:is(html,html[data-theme]) #appview.pgist-social.pgist-social .gmanage{background:var(--g-chip);color:var(--g-ink);border:1px solid var(--g-line)}
:is(html,html[data-theme]) #appview.pgist-social.pgist-social .gprofile-tabs{background:var(--g-bg);border-bottom:1px solid var(--g-line)}
:is(html,html[data-theme]) #appview.pgist-social.pgist-social .gprofile-tabs button{background:none;color:var(--g-mut);border:0}
:is(html,html[data-theme]) #appview.pgist-social.pgist-social .gprofile-tabs button.on{color:var(--g-ink);box-shadow:inset 0 -2px 0 var(--g-acc)}

/* ===== round 3: tighter sides, readable captions, hashtag chips, richer Discover, evenly spaced bottom icons, profile buttons ===== */
:is(html,html[data-theme]) #appview.pgist-social.pgist-social .gcap{padding:0 var(--g-pad);margin:8px 0 0;font:500 14.5px/1.55 'Plus Jakarta Sans',system-ui,sans-serif;color:var(--g-ink);white-space:pre-wrap;overflow-wrap:anywhere}
.gheadline .gcap{padding-left:0;padding-right:0}
.gcap.clamp:not(.open){display:-webkit-box;-webkit-line-clamp:4;-webkit-box-orient:vertical;overflow:hidden;cursor:pointer}
.gcap.clamp:not(.open)::after{content:""}
.gtitle{margin:6px 0 0}
.gtags{display:flex;flex-wrap:wrap;gap:6px;padding:8px 0 2px}
.gtagc{display:inline-flex;align-items:center;background:var(--g-chip);color:var(--g-link);border-radius:99px;padding:4px 11px;font:700 12px 'Plus Jakarta Sans',system-ui,sans-serif;text-decoration:none;cursor:pointer}
.gread{margin-top:4px}
:is(html,html[data-theme]) #appview.pgist-social.pgist-social .gmedia{border-radius:14px}
/* Discover extras */
.gcats{display:flex;gap:8px;padding:10px var(--g-pad) 2px;overflow-x:auto;scrollbar-width:none}.gcats::-webkit-scrollbar{display:none}
.gcats a{flex:none;display:inline-flex;align-items:center;height:34px;padding:0 14px;border-radius:99px;background:var(--g-card);border:1px solid var(--g-line);color:var(--g-ink);font:700 12.5px 'Plus Jakarta Sans',system-ui,sans-serif;cursor:pointer;white-space:nowrap}
.ghrs{display:flex;gap:10px;padding:6px var(--g-pad) 10px;overflow-x:auto;scrollbar-width:none;scroll-snap-type:x proximity}.ghrs::-webkit-scrollbar{display:none}
.ghr{position:relative;flex:none;width:118px;height:176px;border:0;border-radius:16px;background:#222 center/cover no-repeat;color:#fff;text-align:left;padding:10px;display:flex;flex-direction:column;justify-content:flex-end;gap:2px;scroll-snap-align:start;cursor:pointer;overflow:hidden}
.ghr b{font:700 12.5px/1.25 'Plus Jakarta Sans',system-ui,sans-serif;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.ghr small{opacity:.8;font-size:11px}
.ghr-d{position:absolute;left:8px;top:8px;background:rgba(0,0,0,.55);border-radius:99px;padding:2px 8px;font:700 11px inherit;font-family:inherit}
.ghr-p{position:absolute;right:10px;top:10px;font-size:12px;opacity:.9}
.gtop3s{display:grid;gap:8px;padding:4px var(--g-pad) 10px}
.gtop3{display:flex;align-items:center;gap:12px;width:100%;text-align:left;background:var(--g-card);border:1px solid var(--g-line);border-radius:18px;padding:11px 12px;color:var(--g-ink);cursor:pointer}
.gtop3 em{flex:none;width:30px;height:30px;border-radius:50%;display:grid;place-items:center;background:var(--g-acc);color:var(--g-acc-ink);font:800 14px Outfit,system-ui,sans-serif;font-style:normal}
.gtop3 span{display:flex;flex-direction:column;min-width:0;gap:2px}.gtop3 b{font:700 13.5px/1.3 'Plus Jakarta Sans',system-ui,sans-serif;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.gtop3 small{color:var(--g-mut);font-size:11.5px}
/* bottom bar: four equal columns, every icon in the same-size pill */
:is(html,html[data-theme]) #appview.pgist-social.pgist-social .tkdock.gicons{display:grid;grid-template-columns:repeat(4,1fr);align-items:center;justify-items:center;padding:0 6px}
:is(html,html[data-theme]) #appview.pgist-social.pgist-social .tkdock.gicons button{width:100%;height:54px;display:grid;place-items:center;flex:none;min-width:0;padding:0}
:is(html,html[data-theme]) #appview.pgist-social.pgist-social .tkdock.gicons button i{width:56px;height:32px;display:grid;place-items:center;padding:0;border-radius:99px;font-size:18px;box-sizing:border-box;line-height:1}
:is(html,html[data-theme]) #appview.pgist-social.pgist-social .tkdock.gicons button.on i{background:var(--g-acc);color:var(--g-acc-ink)}
:is(html,html[data-theme]) #appview.pgist-social.pgist-social .tkdock.gicons .mk{width:100%;height:54px;min-width:0;border-radius:0;background:none;box-shadow:none}
:is(html,html[data-theme]) #appview.pgist-social.pgist-social .tkdock.gicons .mk i{background:var(--g-ink);color:var(--g-bg);font-size:16px}
.tkdock.gicons .gdot{left:calc(50% + 14px);top:10px}
/* profile: the two buttons side by side */
:is(html,html[data-theme]) #appview.pgist-social.pgist-social .gprof .gpb{display:flex;gap:8px;padding:12px var(--g-pad)}
:is(html,html[data-theme]) #appview.pgist-social.pgist-social .gprof .gpb .btn{flex:1;width:auto;min-width:0;height:44px;display:inline-flex;align-items:center;justify-content:center;gap:7px}

:is(html,html[data-theme]) #appview.pgist-social.pgist-social .gheadline .gcap{padding:0}
:is(html,html[data-theme]) #appview.pgist-social.pgist-social .gdiscover input[type=search]{border:0!important;background:none!important;box-shadow:none!important;border-radius:0;padding:0;height:38px;-webkit-appearance:none;appearance:none}
:is(html,html[data-theme]) #appview.pgist-social.pgist-social .gprof .gpb{padding:12px 0}
:is(html,html[data-theme]) #appview.pgist-social.pgist-social .gprof .gpb .btn{white-space:nowrap;font-size:13.5px;padding:0 10px}

/* extra skeletons: profile + comments */
.gskp{padding:0}.gskp .gk-cover{height:110px;border-radius:0}.gskp .gk-av{width:84px;height:84px;border-radius:50%;margin:-42px auto 0;border:4px solid var(--g-card,#fff)}
.gskp .t{height:12px}.gk-stats{display:flex;gap:12px;padding:0 24px 16px}.gk-stats i{flex:1;height:38px;border-radius:12px}
.gk-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:2px}.gk-grid i{aspect-ratio:1;border-radius:0}
.gskc{padding:8px 14px}

.gmod{display:flex;flex-wrap:wrap;align-items:center;gap:4px 10px;margin:0 var(--g-pad) 8px;padding:10px 12px;border-radius:12px;background:rgba(229,72,77,.1);border:1px solid rgba(229,72,77,.35);color:var(--g-ink);font-size:12.5px;line-height:1.4}
.gmod b{flex:0 0 100%;font-weight:800;color:#e5484d}.gmod span{flex:1;min-width:0}
.gmod button{flex:none;border:0;border-radius:99px;padding:6px 14px;background:var(--g-acc);color:var(--g-acc-ink);font:800 12px inherit;font-family:inherit}

.gmod.rev{background:rgba(245,158,11,.12)}.gmod.rev b{color:#d97706}.gmod.ok{background:rgba(34,181,115,.12)}.gmod.ok b{color:#16a34a}
.rl-edit{position:absolute;inset:0;z-index:60;display:flex;flex-direction:column;background:var(--bg,#0b0d12);color:var(--tx,#fff)}.rl-edit .rle-top{display:flex;align-items:center;gap:10px;padding:12px 14px}.rl-edit .rle-top b{flex:1;font:800 16px inherit;font-family:inherit}.rl-edit .rle-step{opacity:.7;font-size:12px}.rl-edit .rle-stage{flex:1;min-height:0;display:grid;place-items:center;padding:6px 14px}.rl-edit .rle-box{position:relative;overflow:hidden;background:#000;border-radius:14px;max-width:100%;max-height:100%}.rl-edit video{width:100%;height:100%;object-fit:cover;display:block}.rl-edit .rle-tools{padding:10px 14px 14px;display:grid;gap:10px}.rl-edit .rle-row{display:flex;gap:8px;align-items:center;overflow-x:auto}.rl-edit .rle-row>label{flex:none;font-size:12px;opacity:.75;width:54px}.rl-edit .rle-row button{flex:none;border:0;border-radius:99px;padding:7px 13px;background:rgba(128,138,160,.22);color:inherit;font:700 13px inherit;font-family:inherit}.rl-edit .rle-row button.on{background:var(--g-acc,#c6ff3d);color:var(--g-acc-ink,#111)}.rl-edit input[type=range]{flex:1;min-width:0}.rl-edit .rle-go{display:flex;gap:10px}.rl-edit .rle-go button{flex:1}
.rl-set{margin:12px 0;display:grid;gap:8px}.rl-set .sr{display:flex;align-items:center;gap:10px;padding:10px 12px;border-radius:14px;background:rgba(128,138,160,.14)}.rl-set .sr>span{flex:1;min-width:0}.rl-set .sr b{display:block;font-size:14px}.rl-set .sr small{opacity:.7;font-size:12px}.rl-set select{border:0;border-radius:10px;padding:7px 8px;background:rgba(128,138,160,.2);color:inherit;font:inherit}.rl-set .sw{position:relative;width:44px;height:26px;flex:none}.rl-set .sw input{position:absolute;inset:0;opacity:0;margin:0;z-index:1}.rl-set .sw i{position:absolute;inset:0;border-radius:99px;background:rgba(128,138,160,.45);transition:.15s}.rl-set .sw i:after{content:'';position:absolute;top:3px;left:3px;width:20px;height:20px;border-radius:50%;background:#fff;transition:.15s}.rl-set .sw input:checked+i{background:#22b573}.rl-set .sw input:checked+i:after{left:21px}
