/* Approved forum layout, 2026-11-11. Named variants use the shared theme tokens and button primitive. */
.stam-ui.sg-networking-scope .sg-forum-tabs{display:flex;gap:8px;overflow-x:auto;max-width:100%;padding:2px 0;scrollbar-width:thin}
.stam-ui.sg-networking-scope .sg-forum-tabs>*{flex:none}
.stam-ui.sg-networking-scope .sg-forum-card,.stam-ui.sg-networking-scope .sg-forum-post{border:1px solid hsl(var(--border));border-radius:20px;background:hsl(var(--card)/.65);backdrop-filter:blur(16px);color:hsl(var(--foreground));min-width:0;overflow:hidden}
.stam-ui.sg-networking-scope .sg-forum-card-toggle{display:flex;flex-direction:column;align-items:stretch;text-align:left;gap:8px;width:100%;min-height:44px;padding:16px;border:0;background:transparent;color:inherit;cursor:pointer;font:inherit}
.stam-ui.sg-networking-scope .sg-forum-card-toggle:focus-visible{outline:2px solid hsl(var(--primary));outline-offset:-3px}
.stam-ui.sg-networking-scope .sg-forum-card-title{font-size:17px;line-height:24px;overflow-wrap:anywhere}
.stam-ui.sg-networking-scope .sg-forum-card-description{font-size:13px;line-height:19px;color:hsl(var(--muted-foreground));white-space:pre-wrap;overflow-wrap:anywhere}
.stam-ui.sg-networking-scope .sg-forum-card-content{display:flex;flex-direction:column;gap:12px;padding:0 16px 16px}
.stam-ui.sg-networking-scope .sg-forum-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px}
.stam-ui.sg-networking-scope .sg-forum-stat{display:flex;flex-direction:column;gap:2px;font-size:10px;line-height:14px;color:hsl(var(--muted-foreground));overflow-wrap:anywhere}
.stam-ui.sg-networking-scope .sg-forum-stat strong{font-size:14px;line-height:19px;font-weight:400;color:hsl(var(--foreground))}
.stam-ui.sg-networking-scope .sg-forum-avatars{display:flex;padding-left:4px;min-height:28px}
.stam-ui.sg-networking-scope .sg-forum-avatar{display:grid;place-items:center;width:28px;height:28px;margin-left:-4px;border:2px solid hsl(var(--background));border-radius:50%;background:hsl(var(--primary)/.17);overflow:hidden;font-size:12px}
.stam-ui.sg-networking-scope .sg-forum-avatar img{width:100%;height:100%;object-fit:cover}
.stam-ui.sg-networking-scope .sg-forum-post{padding:16px;display:flex;flex-direction:column;gap:12px}
.stam-ui.sg-networking-scope .sg-forum-post-author,.stam-ui.sg-networking-scope .sg-forum-post-text{margin:0;overflow-wrap:anywhere;white-space:pre-wrap}
.stam-ui.sg-networking-scope .sg-forum-post-author{font-size:13px;color:hsl(var(--muted-foreground))}
.stam-ui.sg-networking-scope .sg-forum-post-text{font-size:15px;line-height:22px}
.stam-ui.sg-networking-scope .sg-forum-carousel{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:8px;min-width:0}
.stam-ui.sg-networking-scope .sg-forum-image{width:100%;max-height:520px;object-fit:contain;border-radius:12px;background:hsl(var(--muted))}
.stam-ui.sg-networking-scope .sg-forum-image-count{font-size:12px}
.stam-ui.sg-networking-scope .sg-forum-post-meta{display:flex;align-items:center;flex-wrap:wrap;gap:6px;font-size:12px;color:hsl(var(--muted-foreground))}
@media(max-width:360px){.stam-ui.sg-networking-scope .sg-forum-card-toggle{padding:12px}.stam-ui.sg-networking-scope .sg-forum-stats{grid-template-columns:repeat(2,minmax(0,1fr))}}

.stam-ui.sg-networking-scope .sg-forum-card-title-row{display:flex;justify-content:space-between;align-items:center;gap:8px}
.stam-ui.sg-networking-scope .sg-forum-card-title-row svg{flex:none;width:16px;height:16px;transform:rotate(90deg);transition:transform .18s ease}
.stam-ui.sg-networking-scope .sg-forum-card-toggle[aria-expanded=true] .sg-forum-card-title-row svg{transform:rotate(-90deg)}
.stam-ui.sg-networking-scope .sg-forum-stat:nth-child(2) strong::before{content:"";display:inline-block;width:6px;height:6px;margin-right:5px;vertical-align:middle;border-radius:50%;background:#28b86d}

/* Compact directory toolbar: existing field/button primitives, layout only. */
.stam-ui.sg-networking-scope .forum-search-toolbar{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:12px;align-items:start}
.stam-ui.sg-networking-scope .forum-search-field{min-width:0}
.stam-ui.sg-networking-scope .forum-filter-toggle{align-self:end}
.stam-ui.sg-networking-scope .forum-filter-fields{grid-column:1/-1;display:flex;flex-direction:column;gap:12px;min-width:0}
.stam-ui.sg-networking-scope .forum-filter-fields[hidden]{display:none}
/* compact-directory: owner-requested shared forum arrangement, 2026-11-11. */
.stam-ui.sg-networking-scope .sg-forum-card-compact .sg-forum-card-header{padding:16px;display:flex;flex-direction:column;gap:12px}
.stam-ui.sg-networking-scope .sg-forum-card-compact .sg-forum-card-description{margin:0}
.stam-ui.sg-networking-scope .sg-forum-card-compact .sg-forum-card-title-row{align-items:flex-start}
.stam-ui.sg-networking-scope .sg-forum-unread-group{display:flex;gap:10px;flex:none;padding-top:3px}
.stam-ui.sg-networking-scope .sg-forum-unread{display:inline-flex;gap:4px;align-items:center;font-size:12px;color:hsl(var(--primary))}
.stam-ui.sg-networking-scope .sg-forum-unread[data-zero=true]{color:hsl(var(--muted-foreground))}
.stam-ui.sg-networking-scope .sg-forum-unread svg{width:16px;height:16px;transform:none}
.stam-ui.sg-networking-scope .sg-forum-card-members{display:flex;align-items:center;gap:12px;min-width:0}
.stam-ui.sg-networking-scope .sg-forum-card-compact .sg-forum-avatars{min-height:36px;flex:none}
.stam-ui.sg-networking-scope .sg-forum-card-compact .sg-forum-avatar{width:36px;height:36px;font-size:14px}
.stam-ui.sg-networking-scope .sg-forum-member-totals{border-left:1px solid hsl(var(--border));padding-left:12px;font-size:12px;line-height:20px;color:hsl(var(--muted-foreground));min-width:0}
.stam-ui.sg-networking-scope .sg-forum-online{white-space:nowrap}
.stam-ui.sg-networking-scope .sg-forum-online::before{content:"";display:inline-block;width:6px;height:6px;border-radius:50%;background:#28b86d;margin-right:5px;vertical-align:middle}
.stam-ui.sg-networking-scope .sg-forum-card-compact .sg-forum-card-toggle{display:flex;flex-direction:row;justify-content:flex-start;align-items:center;gap:4px;padding:0;min-height:32px;width:max-content;max-width:100%;font-size:13px;color:hsl(var(--muted-foreground))}
.stam-ui.sg-networking-scope .sg-forum-card-toggle>svg{width:14px;height:14px;margin-left:3px;transform:rotate(90deg)}
.stam-ui.sg-networking-scope .sg-forum-card-toggle[aria-expanded=true]>svg{transform:rotate(-90deg)}
.stam-ui.sg-networking-scope .forum-search-toolbar{grid-template-columns:minmax(0,1fr) auto auto;margin-top:16px}
.stam-ui.sg-networking-scope .forum-create-toggle{align-self:end;min-width:36px;padding-left:10px;padding-right:10px;font-size:22px;line-height:20px}
@media(max-width:360px){.stam-ui.sg-networking-scope .sg-forum-card-compact .sg-forum-card-header{padding:12px}.stam-ui.sg-networking-scope .sg-forum-card-members{gap:8px}.stam-ui.sg-networking-scope .sg-forum-member-totals{padding-left:8px}.stam-ui.sg-networking-scope .forum-search-toolbar{gap:8px}}

/* Native card title link; blank-area forwarding keeps text selectable. */
.stam-ui.sg-networking-scope a.sg-forum-card-title{color:inherit;text-decoration:none}
.stam-ui.sg-networking-scope a.sg-forum-card-title:focus-visible{outline:2px solid hsl(var(--primary));outline-offset:3px;border-radius:2px}
.stam-ui.sg-networking-scope .sg-forum-card:has(a.sg-forum-card-title){cursor:pointer}
