/* Socialteria Community — Groups & Pages extras. Uses the theme's design tokens. */
.stx-ico{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;flex:none;vertical-align:-3px}
.stx-ico.ico-xs{width:14px;height:14px}.stx-ico.ico-sm{width:16px;height:16px}
.stx-small{font-size:13px}
.stx-tab{display:inline-flex;align-items:center;gap:6px;white-space:nowrap}
.tabs-line{overflow-x:auto;scrollbar-width:none}.tabs-line::-webkit-scrollbar{display:none}
.stx-sec-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px}
.stx-sec-head h3{display:flex;align-items:center;gap:8px;margin:0}
.card.pad.stx-sec-head{margin-bottom:14px}
.stx-disc>.card,.stx-disc>.stx-note{margin-bottom:14px}
.stx-featured{padding:14px}
.stx-hscroll{display:grid;grid-auto-flow:column;grid-auto-columns:minmax(260px,82%);gap:12px;overflow-x:auto;padding-bottom:4px;scroll-snap-type:x mandatory}
.stx-hscroll>.stx-post{scroll-snap-align:start;margin:0;border:1px solid var(--border);box-shadow:none}
.stx-welcome{display:flex;gap:10px;align-items:flex-start;background:var(--grad-soft,var(--surface-2))}
.stx-note{display:flex;align-items:center;gap:8px;padding:10px 12px;border-radius:var(--r-sm,10px);background:var(--surface-2);color:var(--text-2);font-size:13px}

/* Post card */
.stx-post{margin-bottom:14px;overflow:hidden}
.stx-post-head{display:flex;gap:10px;align-items:center;padding:12px 14px 6px}
.stx-post-head .grow{min-width:0}
.stx-post-body{padding:4px 14px 10px;white-space:normal;word-wrap:break-word;line-height:1.5}
.stx-post-media{display:grid;gap:2px;grid-template-columns:1fr 1fr;max-height:420px;overflow:hidden}
.stx-post-media.n1{grid-template-columns:1fr}
.stx-post-media img,.stx-post-media video{width:100%;height:100%;max-height:420px;object-fit:cover;display:block;cursor:zoom-in;background:var(--surface-2)}
.stx-post-foot{display:flex;gap:14px;align-items:center;padding:10px 14px;border-top:1px solid var(--border)}
.stx-actbar{gap:8px;padding:0 14px 14px}
.stx-unpin{margin:0 14px 12px}

/* Admin strip in header */
.stx-admin-strip{display:flex;flex-wrap:wrap;gap:6px;margin-top:12px}
.stx-chip{display:inline-flex;align-items:center;gap:6px;padding:6px 10px;border-radius:999px;background:var(--surface-2);border:1px solid var(--border);color:var(--text);font:inherit;font-size:13px;cursor:pointer}
.stx-chip:hover{background:var(--surface-3)}
.stx-chip b{color:var(--accent)}

/* Admin tools layout (Facebook-style side menu) */
.stx-manage{display:grid;grid-template-columns:250px 1fr;gap:14px;align-items:start}
.stx-side{padding:8px;position:sticky;top:76px}
.stx-side-head{display:flex;flex-direction:column;padding:8px 10px 10px;border-bottom:1px solid var(--border);margin-bottom:6px}
.stx-side-item{display:flex;align-items:center;gap:10px;width:100%;padding:10px;border:0;background:none;color:var(--text);font:inherit;font-size:14px;border-radius:var(--r-sm,10px);cursor:pointer;text-align:left}
.stx-side-item span:first-of-type{flex:1}
.stx-side-item:hover{background:var(--surface-2)}
.stx-side-item.is-active{background:var(--surface-3);color:var(--accent);font-weight:600}
.stx-main>.card{margin-bottom:14px}
@media (max-width:760px){
  .stx-manage{grid-template-columns:1fr}
  .stx-side{position:static;display:flex;overflow-x:auto;gap:4px}
  .stx-side-head{display:none}
  .stx-side-item{width:auto;white-space:nowrap;flex:none}
}

/* Tiles + charts */
.stx-tiles{display:grid;grid-template-columns:repeat(auto-fit,minmax(130px,1fr));gap:10px;margin:8px 0}
.stx-tile{display:flex;flex-direction:column;gap:2px;padding:12px;border-radius:var(--r-sm,10px);background:var(--surface-2)}
.stx-tile b{font-size:22px;font-family:var(--display,inherit)}
.stx-tile span,.stx-tile small{font-size:12px}
.stx-chart{margin:6px 0 18px}
.stx-chart-head{display:flex;justify-content:space-between;font-size:14px;margin-bottom:6px}
.stx-chart svg{width:100%;height:120px;display:block}
.stx-chart-axis{display:flex;justify-content:space-between;font-size:11px;margin-top:4px}
.stx-hours{display:grid;grid-template-columns:repeat(24,1fr);gap:3px;height:110px;align-items:end}
.stx-hours>div{height:100%;display:flex;flex-direction:column;justify-content:flex-end;align-items:center}
.stx-hours span{display:block;width:100%;background:var(--accent);border-radius:3px 3px 0 0;opacity:.85}
.stx-hours small{font-size:10px;color:var(--text-3);height:14px}
.stx-checklist{display:flex;flex-direction:column;gap:6px;margin-top:14px}
.stx-check{display:flex;align-items:center;gap:8px;padding:10px 12px;border:1px solid var(--border);border-radius:var(--r-sm,10px);background:none;color:var(--text);font:inherit;cursor:pointer;text-align:left}
.stx-check.is-done{color:var(--text-3);text-decoration:line-through}
.stx-check.is-done .stx-ico{color:var(--green)}

/* People rows */
.stx-person{display:flex;align-items:center;gap:10px;padding:10px 14px;border-bottom:1px solid var(--border)}
.stx-person:last-child{border-bottom:0}
.stx-person .grow{min-width:0}
.stx-answers{display:flex;flex-direction:column;gap:6px;margin-top:8px;padding:8px 10px;background:var(--surface-2);border-radius:var(--r-sm,10px);font-size:13px}
.stx-badge{background:var(--grad-soft,var(--surface-2));font-size:11px}
.stx-mini{height:32px;padding:0 8px;font-size:13px;width:auto}
.stx-btns{flex-wrap:wrap;justify-content:flex-end}

/* Toggles */
.stx-toggle{display:flex;align-items:center;gap:12px;cursor:pointer;padding:12px 0}
.stx-toggle .grow{display:flex;flex-direction:column}
.stx-toggle .grow span{font-size:13px;color:var(--text-2)}
.stx-toggle input{position:absolute;opacity:0;pointer-events:none}
.stx-toggle i{width:42px;height:24px;border-radius:99px;background:var(--surface-3);position:relative;flex:none;transition:.2s}
.stx-toggle i::after{content:"";position:absolute;top:3px;left:3px;width:18px;height:18px;border-radius:50%;background:#fff;transition:.2s;box-shadow:0 1px 3px rgba(0,0,0,.3)}
.stx-toggle input:checked+i{background:var(--accent)}
.stx-toggle input:checked+i::after{left:21px}
.stx-toggle input:focus-visible+i{outline:2px solid var(--focus,var(--accent));outline-offset:2px}

/* Media + files */
.stx-media-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(140px,1fr));gap:6px}
.stx-media-item{position:relative;aspect-ratio:1;padding:0;border:0;border-radius:8px;overflow:hidden;cursor:zoom-in;background:var(--surface-2)}
.stx-media-item img,.stx-media-item video{width:100%;height:100%;object-fit:cover;display:block}
.stx-play{position:absolute;inset:auto auto 8px 8px;color:#fff;font-size:14px;text-shadow:0 1px 4px #000}
.stx-file{display:flex;align-items:center;gap:12px;padding:10px 0;border-bottom:1px solid var(--border)}
.stx-file:last-child{border-bottom:0}
.stx-ext{display:grid;place-items:center;width:44px;height:44px;border-radius:10px;background:var(--surface-2);color:var(--accent);font-weight:700;font-size:11px;flex:none}
.stx-file .grow{min-width:0}.stx-file .grow b{word-break:break-all}

/* Events */
.stx-event{display:flex;gap:14px;padding:14px;margin-bottom:12px}
.stx-event.is-past{opacity:.7}
.stx-date{display:flex;flex-direction:column;align-items:center;justify-content:center;width:56px;height:60px;border-radius:12px;background:var(--surface-2);flex:none}
.stx-date small{color:var(--red);font-weight:700;font-size:11px}
.stx-date b{font-size:22px;line-height:1}
.stx-ev-when{color:var(--red);font-size:13px;font-weight:600}
.stx-event h3{margin:2px 0 4px}
.stx-ev-act{flex-wrap:wrap}
.stx-2col{display:grid;grid-template-columns:1fr 1fr;gap:10px}

/* Pages */
.stx-page-extra{display:flex;flex-wrap:wrap;gap:8px;align-items:center;padding:0 16px 16px}
.stx-review-sum{display:flex;gap:16px;align-items:center}
.stx-avg{font-size:40px;font-weight:800;font-family:var(--display,inherit);line-height:1}
.stx-stars .stx-star{color:var(--border-strong,#888);font-size:15px}
.stx-stars.big .stx-star{font-size:22px}
.stx-stars .stx-star.on{color:var(--amber,#f5a524)}
.stx-pick-stars{display:flex;gap:4px;margin-bottom:10px}
.stx-pick-stars button{font-size:30px;line-height:1;border:0;background:none;cursor:pointer;color:var(--border-strong,#888);padding:0 2px}
.stx-pick-stars button.on{color:var(--amber,#f5a524)}
.stx-invites{margin-bottom:14px}
.stx-invites h3{display:flex;align-items:center;gap:8px}
.stx-inv-list{max-height:50vh;overflow:auto;margin:0 -14px}
.stx-anon{display:flex;flex-wrap:wrap;align-items:center;gap:6px;padding:8px 10px;margin:6px 0 4px;border-radius:var(--r-sm,10px);background:var(--surface-2);font-size:14px;cursor:pointer}
.stx-anon small{flex-basis:100%;padding-left:22px;font-size:12px}

/* Misc */
.stx-empty{text-align:center;padding:36px 20px;margin-bottom:14px}
.stx-empty .empty-ico .stx-ico{width:28px;height:28px}
.stx-danger{background:var(--red)!important;color:#fff!important;border-color:transparent!important}
.stx-loading{display:flex;justify-content:center;gap:6px;padding:28px}
.stx-loading span{width:8px;height:8px;border-radius:50%;background:var(--text-3);animation:stx-b 1s infinite ease-in-out}
.stx-loading span:nth-child(2){animation-delay:.15s}.stx-loading span:nth-child(3){animation-delay:.3s}
@keyframes stx-b{0%,80%,100%{transform:scale(.6);opacity:.4}40%{transform:scale(1);opacity:1}}
.stx-toast{position:fixed;left:50%;bottom:24px;transform:translate(-50%,20px);opacity:0;z-index:100000;padding:12px 18px;border-radius:12px;background:var(--text);color:var(--bg);font-size:14px;box-shadow:var(--shadow-3);transition:.25s;max-width:calc(100vw - 32px)}
.stx-toast.is-in{transform:translate(-50%,0);opacity:1}
.stx-toast.is-error{background:var(--red);color:#fff}
.stx-lightbox{position:fixed;inset:0;z-index:100001;background:rgba(0,0,0,.92);display:grid;place-items:center;padding:20px}
.stx-lightbox img,.stx-lightbox video{max-width:100%;max-height:100%;border-radius:8px}
.stx-lightbox button{position:absolute;top:14px;right:14px;color:#fff}
.stx-overlay .modal-foot .btn{margin-left:auto}

/* ---------- Profiles ---------- */
.stx-prof-extra{display:flex;flex-wrap:wrap;gap:8px;align-items:center;margin-top:12px}
.stx-mutual{display:inline-flex;align-items:center;gap:8px;border:0;background:none;color:var(--text-2);font:inherit;font-size:13px;cursor:pointer;padding:0}
.stx-mutual:hover{text-decoration:underline}
.stx-faces{display:inline-flex}
.stx-faces .avatar{width:24px;height:24px;border-radius:50%;border:2px solid var(--surface);margin-left:-8px;object-fit:cover}
.stx-faces .avatar:first-child{margin-left:0}
.stx-intro-wrap>.card{margin-bottom:14px}
.stx-intro-row{display:flex;align-items:flex-start;gap:10px;padding:7px 0;font-size:15px}
.stx-intro-row .stx-ico{width:20px;height:20px;color:var(--text-3);margin-top:1px}
.stx-emoji{width:20px;text-align:center}
.stx-pct{font-size:22px;color:var(--accent)}
.stx-progress{height:8px;border-radius:99px;background:var(--surface-3);overflow:hidden;margin-bottom:6px}
.stx-progress span{display:block;height:100%;background:var(--grad,var(--accent));border-radius:99px}
.stx-vis{font-size:11px;white-space:nowrap;align-self:center}
.stx-field-vis .row{align-items:center}
.stx-field-vis .row>.input:first-child{flex:1;min-width:0}
.stx-field-vis .stx-mini{flex:none;width:130px}
.stx-timeline{position:relative}
.stx-tl-item{display:flex;gap:12px;align-items:flex-start;padding:12px 0;border-bottom:1px solid var(--border);position:relative}
.stx-tl-item:last-child{border-bottom:0}
.stx-tl-dot{display:grid;place-items:center;width:40px;height:40px;border-radius:50%;background:var(--surface-2);font-size:18px;flex:none}
.stx-ev-types{display:flex;flex-wrap:wrap;gap:6px}
.stx-ev-types label{cursor:pointer}
.stx-ev-types input{position:absolute;opacity:0}
.stx-ev-types span{display:inline-block;padding:6px 10px;border-radius:99px;border:1px solid var(--border);font-size:13px}
.stx-ev-types input:checked+span{border-color:var(--accent);background:var(--surface-2);color:var(--accent);font-weight:600}
.stx-friends{display:grid;grid-template-columns:repeat(auto-fill,minmax(130px,1fr));gap:10px}
.stx-friend{display:flex;flex-direction:column;border:1px solid var(--border);border-radius:var(--r,14px);overflow:hidden;color:inherit;text-decoration:none;background:var(--surface)}
.stx-friend img{width:100%;aspect-ratio:1;object-fit:cover;background:var(--surface-2)}
.stx-friend b{padding:8px 10px 0;font-size:14px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.stx-friend small{padding:0 10px 10px}
.stx-friend:hover{border-color:var(--border-strong)}
.stx-gthumb{display:grid;place-items:center;width:48px;height:48px;border-radius:12px;overflow:hidden;background:var(--surface-2);flex:none}
.stx-gthumb img{width:100%;height:100%;object-fit:cover}
.stx-up{color:var(--green);font-size:12px}
.stx-down{color:var(--red);font-size:12px}
.stx-hbar{display:grid;grid-template-columns:110px 1fr 40px;gap:10px;align-items:center;padding:6px 0;font-size:14px;text-transform:capitalize}
.stx-hbar div{height:10px;border-radius:99px;background:var(--surface-2);overflow:hidden}
.stx-hbar i{display:block;height:100%;background:var(--accent);border-radius:99px}
.stx-hbar b{text-align:right}

/* Home page (logged out): hide the "Trending on Socialteria" feed */
.landing-feed{display:none!important}

/* ======================================================================
   Group page — Facebook-style layout (body.stx-gmode)
   ====================================================================== */
@media (min-width:721px){
  body.stx-gmode{--sidebar:76px}
  body.stx-gmode .shell{grid-template-columns:var(--sidebar) minmax(0,1fr)!important;max-width:none!important;gap:20px!important;padding-right:20px}
  body.stx-gmode .rail{display:none!important}
  body.stx-gmode #st-main{max-width:none!important;width:auto!important}
  body.stx-gmode .sidebar{align-items:center}
  body.stx-gmode .nav-label,body.stx-gmode .soon,body.stx-gmode .nav-cta span{display:none!important}
  body.stx-gmode .brand-lg .logo-full{display:none!important}
  body.stx-gmode .brand-lg .logo-mark{display:block;width:40px;height:40px}
  body.stx-gmode .nav-item{justify-content:center;padding:12px}
  body.stx-gmode .nav-cta{width:48px;padding:0}
}
.stx-gfb{display:grid;grid-template-columns:300px minmax(0,1fr);gap:20px;align-items:start}
.stx-gfb.no-admin{grid-template-columns:minmax(0,1fr)}
.stx-gfb.no-admin .stx-gmain{max-width:1100px;margin:0 auto;width:100%}
.stx-gmain{min-width:0}

/* Admin sidebar */
.stx-gadmin{position:sticky;top:12px;max-height:calc(100vh - 24px);overflow-y:auto;background:var(--surface);border:1px solid var(--border);border-radius:var(--r-lg,18px);padding:12px;scrollbar-width:thin}
.stx-gid{display:flex;gap:10px;align-items:center;padding:4px 4px 12px;border-bottom:1px solid var(--border);margin-bottom:6px}
.stx-gid img,.stx-gid-ph{width:52px;height:52px;border-radius:12px;object-fit:cover;flex:none;display:grid;place-items:center;background:var(--surface-2)}
.stx-gid b{display:block;font-size:16px;line-height:1.2}
.stx-gid small{font-size:12px}
.stx-gsec{font-size:15px;font-weight:700;padding:14px 8px 6px;color:var(--text)}
.stx-gitem{display:flex;align-items:center;gap:12px;width:100%;padding:9px 8px;border:0;background:none;border-radius:10px;color:var(--text);font:inherit;text-align:left;cursor:pointer}
.stx-gitem .stx-ico{width:22px;height:22px;color:var(--text-2)}
.stx-gitem .grow{display:flex;flex-direction:column;min-width:0}
.stx-gitem b{font-weight:500;font-size:14px}
.stx-gitem small{font-size:12px;color:var(--text-3);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.stx-gitem:hover{background:var(--surface-2)}
.stx-gitem.on{background:var(--surface-2)}
.stx-gitem.on b,.stx-gitem.on .stx-ico{color:var(--accent);font-weight:600}
.stx-gfb:not(.no-admin) .stx-admin-strip{display:none}

/* Header */
.stx-gfb .ent-head{border-radius:0 0 var(--r-lg,18px) var(--r-lg,18px);overflow:hidden;margin-bottom:0;border-bottom:0}
.stx-gfb .ent-head .cover{height:clamp(180px,26vw,340px);border-radius:0 0 14px 14px}
.stx-gfb .ent-head .cover img{width:100%;height:100%;object-fit:cover}
.stx-gfb .ent-info{display:grid;grid-template-columns:1fr auto;grid-template-areas:"title title" "meta meta" "face acts" "admins admins";column-gap:16px;align-items:end;padding:18px 24px 16px}
.stx-gfb .ent-info h1{grid-area:title;font-size:clamp(24px,2.4vw,32px);margin:0;line-height:1.15}
.stx-gfb .ent-info .ent-meta{grid-area:meta;margin-top:6px;font-size:15px}
.stx-gfb .stx-facepile{grid-area:face}
.stx-gfb .ent-admins{display:none}
.stx-gfb .ent-actions{grid-area:acts;align-self:end;display:flex;gap:8px;flex-wrap:wrap;justify-content:flex-end}
.stx-gfb .stx-admin-strip{grid-area:admins}
.stx-facepile{display:flex;margin-top:12px;min-height:34px}
.stx-facepile a{margin-left:-8px;display:block}
.stx-facepile a:first-child{margin-left:0}
.stx-facepile img{width:34px;height:34px;border-radius:50%;border:2px solid var(--surface);object-fit:cover;background:var(--surface-2);display:block}
@media (max-width:860px){.stx-gfb .ent-info{grid-template-columns:1fr;grid-template-areas:"title" "meta" "face" "acts" "admins"}.stx-gfb .ent-actions{justify-content:flex-start;margin-top:12px}}

/* Tabs bar */
.stx-gfb .ent-head+.card{position:sticky;top:0;z-index:20;display:flex;align-items:center;gap:8px;border-radius:0 0 var(--r-lg,18px) var(--r-lg,18px);margin-bottom:16px;padding:0 12px;border-top:1px solid var(--border);box-shadow:var(--shadow-1)}
.stx-gfb .ent-head+.card .tabs-line{flex:1;min-width:0;border:0}
.stx-gfb .ent-head+.card .tab{border-radius:0;padding:16px 14px;position:relative;font-weight:600;color:var(--text-2);background:none}
.stx-gfb .ent-head+.card .tab.is-active{color:var(--accent);background:none}
.stx-gfb .ent-head+.card .tab.is-active::after{content:"";position:absolute;left:8px;right:8px;bottom:0;height:3px;border-radius:3px 3px 0 0;background:var(--accent)}
.stx-gfb .stx-tab .stx-ico{display:none}
.stx-gfb [data-stx="search"]{display:none}
.stx-tabtools{display:flex;gap:6px;position:relative;flex:none}
.stx-tool{width:44px;height:36px;border:0;border-radius:10px;background:var(--surface-2);color:var(--text);cursor:pointer;display:grid;place-items:center;font-weight:700;letter-spacing:1px}
.stx-tool:hover{background:var(--surface-3)}
.stx-menu{position:absolute;right:0;top:44px;min-width:210px;padding:6px;z-index:30;display:flex;flex-direction:column;box-shadow:var(--shadow-3)}
.stx-menu button{border:0;background:none;text-align:left;padding:10px 12px;border-radius:8px;font:inherit;color:var(--text);cursor:pointer}
.stx-menu button:hover{background:var(--surface-2)}

/* Feed + right rail */
.stx-gcols{display:block}
.stx-gfb.is-disc .stx-gcols{display:grid;grid-template-columns:minmax(0,1fr) 340px;gap:16px;align-items:start}
.stx-gright{display:none}
.stx-gfb.is-disc .stx-gright{display:block;position:sticky;top:76px}
.stx-rcard{margin-bottom:16px}
.stx-rcard h3{margin:0 0 10px;font-size:18px}
.stx-rrow{display:flex;gap:12px;align-items:flex-start;padding:8px 0}
.stx-rrow .stx-ico{width:22px;height:22px;margin-top:2px;color:var(--text-2)}
.stx-rrow b{display:block}
.stx-rrow span{font-size:13px;color:var(--text-2)}
.stx-clamp{display:-webkit-box;-webkit-line-clamp:4;-webkit-box-orient:vertical;overflow:hidden;margin:0 0 8px}
.stx-rcard .btn-block{width:100%;margin-top:10px}
.stx-rmedia{display:grid;grid-template-columns:1fr 1fr;gap:6px}
.stx-rmedia button{padding:0;border:0;border-radius:10px;overflow:hidden;aspect-ratio:1;cursor:zoom-in;background:var(--surface-2)}
.stx-rmedia img,.stx-rmedia video{width:100%;height:100%;object-fit:cover;display:block}
.stx-revent{display:flex;gap:10px;align-items:center;padding:8px 0}
.stx-revent .stx-date{width:46px;height:50px}
.stx-revent div{display:flex;flex-direction:column}
@media (max-width:1440px){.stx-gfb{grid-template-columns:260px minmax(0,1fr)}.stx-gfb.is-disc .stx-gcols{grid-template-columns:minmax(0,1fr) 300px}}
@media (max-width:900px){.stx-gfb.is-disc .stx-gcols{grid-template-columns:1fr}.stx-gfb.is-disc .stx-gright{position:static;order:-1;display:grid;grid-template-columns:1fr 1fr;gap:16px}.stx-gfb.is-disc .stx-gright .stx-rcard{margin:0}}
@media (max-width:900px){.stx-gfb{grid-template-columns:1fr}.stx-gadmin{position:static;max-height:none}.stx-gadmin .stx-gnav{display:flex;overflow-x:auto;gap:6px}.stx-gadmin .stx-gsec{display:none}.stx-gitem{width:auto;flex:none;white-space:nowrap}.stx-gitem small{display:none}.stx-gfb.is-disc .stx-gright{grid-template-columns:1fr}}

/* Composer with Facebook-style actions */
.stx-gfb .composer-box{flex-wrap:wrap;padding:14px 16px 8px}
.stx-gfb .composer-box .composer-quick{display:none}
.stx-gfb .composer-box .composer-fake{flex:1}
.stx-cactions{flex-basis:100%;display:flex;gap:4px;border-top:1px solid var(--border);margin-top:12px;padding-top:6px;overflow-x:auto}
.stx-cactions button{flex:1;display:flex;align-items:center;justify-content:center;gap:8px;padding:9px 10px;border:0;background:none;border-radius:10px;color:var(--text-2);font:inherit;font-weight:600;cursor:pointer;white-space:nowrap}
.stx-cactions button span{font-size:20px}
.stx-cactions button:hover{background:var(--surface-2)}
.stx-feelings{display:grid;grid-template-columns:1fr 1fr;gap:6px}
.stx-feelings button{display:flex;align-items:center;gap:10px;padding:10px;border:1px solid var(--border);border-radius:10px;background:none;color:var(--text);font:inherit;text-transform:capitalize;cursor:pointer}
.stx-feelings button span{font-size:22px}
.stx-feelings button:hover{background:var(--surface-2)}
.stx-gfb .stx-featured .stx-hscroll{grid-auto-columns:minmax(260px,46%)}

.stx-gfb .ent-head+.card .tab{display:inline-flex;align-items:center;gap:6px;line-height:1.2}
.stx-gfb:not(.no-admin) [data-t="requests"],.stx-gfb:not(.no-admin) [data-stx="manage"],.stx-gfb:not(.no-admin) [data-stx="insights"]{display:none!important}
.stx-gfb .ent-info .ent-meta{white-space:nowrap}
.stx-cactions button{min-width:max-content}
@media (max-width:900px){.stx-gfb.is-disc .stx-gright .stx-rcard{margin:0}.stx-gfb.is-disc .stx-gright{margin-bottom:12px}}


/* ======================================================================
   Full-width platform + always-visible widgets + tighter spacing (v1.4)
   ====================================================================== */
@media (min-width:721px){
  body:not(.st-full) .shell{max-width:none!important;width:100%!important;gap:20px!important;padding-right:20px;box-sizing:border-box}
  body:not(.st-full) #st-main{max-width:none!important;width:auto!important;min-width:0}
}
/* Feed + widgets rail side by side on every desktop width */
@media (min-width:901px){
  body:not(.stx-gmode):not(.st-full) .shell{grid-template-columns:var(--sidebar) minmax(0,1fr) 320px!important}
  body:not(.stx-gmode):not(.st-full) .rail{display:block!important;width:auto!important;min-width:0}
}
@media (min-width:1500px){ body:not(.stx-gmode):not(.st-full) .shell{grid-template-columns:var(--sidebar) minmax(0,1fr) 360px!important} }
@media (min-width:721px) and (max-width:900px){
  body:not(.st-full) .shell{grid-template-columns:var(--sidebar) minmax(0,1fr)!important}
  .rail{display:none!important}
}
/* Compact (icon) site menu below 1280px so content gets the room */
@media (min-width:721px) and (max-width:1279px){
  :root{--sidebar:76px}
  .sidebar{align-items:center}
  .nav-label,.soon,.nav-cta span{display:none!important}
  .brand-lg .logo-full{display:none!important}
  .brand-lg .logo-mark{display:block;width:40px;height:40px}
  .brand-lg{padding:6px 0 22px}
  .nav-item{justify-content:center;padding:12px}
  .nav-cta{width:48px;padding:0}
  .sidebar-foot{width:100%}
}

/* Group page: tighter gaps, no stretched cards, all tabs fit */
.stx-gfb{gap:14px}
.stx-gfb.is-disc .stx-gcols{gap:14px}
.stx-gfb .ent-head+.card{margin-bottom:12px}
.stx-rcard{margin-bottom:12px}
.stx-rcard.pad,.stx-gfb .stx-featured{padding:14px 16px}
.stx-gfb .stx-disc>.card,.stx-gfb .stx-disc>.stx-note,.stx-gfb .stx-gfeed>.card{margin-bottom:12px}
.stx-gright{align-self:start}
.stx-gright .stx-rcard{height:auto}
.stx-gfb .ent-head+.card .tab{padding:14px 10px;font-size:14px}
.stx-gfb .ent-info{padding:14px 20px 14px}
.stx-gfb .stx-facepile{margin-top:8px}
@media (min-width:901px){ .stx-gfb.is-disc .stx-gcols{grid-template-columns:minmax(0,1fr) 300px} }
@media (min-width:1500px){ .stx-gfb.is-disc .stx-gcols{grid-template-columns:minmax(0,1fr) 360px} }

/* Admin sidebar becomes an icon rail on smaller desktops (labels on hover) */
@media (min-width:901px) and (max-width:1279px){
  .stx-gfb{grid-template-columns:64px minmax(0,1fr)}
  .stx-gadmin{padding:8px 6px;overflow:visible}
  .stx-gid{justify-content:center;padding:4px 0 10px}
  .stx-gid img,.stx-gid-ph{width:44px;height:44px}
  .stx-gid>div,.stx-gsec,.stx-gitem .grow{display:none}
  .stx-gsec+.stx-gitem{margin-top:8px;border-top:1px solid var(--border);padding-top:12px}
  .stx-gitem{justify-content:center;padding:10px 0;position:relative}
  .stx-gitem .tab-badge{position:absolute;top:2px;right:4px;font-size:10px;min-width:16px;padding:0 4px}
  .stx-gitem[data-label]:hover::after{content:attr(data-label);position:absolute;left:calc(100% + 10px);top:50%;transform:translateY(-50%);background:var(--text);color:var(--bg);padding:6px 10px;border-radius:8px;font-size:13px;white-space:nowrap;z-index:50;pointer-events:none}
}

.stx-gfb .ent-head+.card [data-stx="search"]{display:none!important}

/* ======================================================================
   Big monitors (27"–32"+ / 2K–4K): scale the whole app up so widgets,
   text and media fill the screen instead of looking tiny. (v1.5)
   ====================================================================== */
:root{--stxz:1}
@media (min-width:1800px){:root{--stxz:1.1}}
@media (min-width:2200px){:root{--stxz:1.25}}
@media (min-width:2800px){:root{--stxz:1.5}}
@media (min-width:3400px){:root{--stxz:1.75}}
@media (min-width:1800px){
  body:not(.st-full) .shell{zoom:var(--stxz)}
  #st-layer .modal{zoom:var(--stxz);max-height:calc((100vh - 40px) / var(--stxz))}
  .stx-toast{zoom:var(--stxz)}
  /* Keep full-height columns exactly one screen tall after scaling */
  .sidebar,.rail{height:calc(100vh / var(--stxz))!important}
  .admin-bar .sidebar,.admin-bar .rail{top:calc(32px / var(--stxz))!important;height:calc((100vh - 32px) / var(--stxz))!important}
  .reels{--reel-h:calc((100vh - 40px) / var(--stxz))!important}
  .admin-bar .reels{--reel-h:calc((100vh - 72px) / var(--stxz))!important}
  .dm{height:calc((100vh - 40px) / var(--stxz))!important}
  .admin-bar .dm{height:calc((100vh - 72px) / var(--stxz))!important}
  .stx-gadmin{max-height:calc((100vh - 24px) / var(--stxz))}
  .admin-bar .stx-gadmin{top:calc(44px / var(--stxz))}
  /* Wider widget columns on big screens */
  body:not(.stx-gmode):not(.st-full) .shell{grid-template-columns:var(--sidebar) minmax(0,1fr) 400px!important}
  .stx-gfb{grid-template-columns:320px minmax(0,1fr)}
  .stx-gfb.is-disc .stx-gcols{grid-template-columns:minmax(0,1fr) 400px}
}
@media (min-width:2200px){
  body:not(.stx-gmode):not(.st-full) .shell{grid-template-columns:var(--sidebar) minmax(0,1fr) 440px!important}
  .stx-gfb.is-disc .stx-gcols{grid-template-columns:minmax(0,1fr) 440px}
}
/* Logged-out landing page also scales up */
@media (min-width:1800px){ body.st-full .shell{zoom:var(--stxz)} body.st-full .auth{min-height:calc((100vh - 40px) / var(--stxz))} }
