/**
 * @file        sg-social.css
 * @description Styles of the social pages after the Stitch mockups: people rows with initials, tabs, notifications by day, held comments, feed cards, dialogs (T-02, T-14, T-17, T-18, T-22, T-23, P-06, P-11)
 *
 * @author      Thomas Dobler - SYNTHETIXMIND LTD
 * @company     SYNTHETIXMIND LTD, Paphos, Cyprus
 * @url         https://synthetixmind.com
 *
 * @uid         9f71aedc-7b11-48eb-9d41-6a661a19128d
 * @version     0.0.0.1
 * @created     2026-12-02
 * @updated     2026-12-02
 *
 * @copyright   (c) 2026 by SYNTHETIXMIND LTD
 * @license     Proprietary — All rights reserved
 */

/* People rows (T-14, T-18, T-22, T-23): initials, name line, muted second line; wraps on narrow screens. */
.sg-social-row { align-items: center; }
.sg-social-who { display: flex; align-items: center; gap: 12px; min-width: 0; flex: 1 1 220px; }
.sg-social-who__text { min-width: 0; }
.sg-social-who__name { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.sg-social-who__name .sg-chip { font-weight: 400; margin-left: 4px; }
.sg-social-who__sub { margin: 2px 0 0; color: var(--ink-muted); font-size: 0.9rem; overflow-wrap: anywhere; }
.sg-social-avatar { flex-shrink: 0; width: 40px; height: 40px; border-radius: 50%; display: inline-grid; place-items: center; background: var(--beige); color: var(--warm-ink); font: 600 0.9rem var(--font-mono); }
.sg-social-avatar .sg-icon { width: 20px; height: 20px; }
.sg-social-danger { color: var(--accent); }

/* Tabs with counts (T-14, T-22); sg-social.js hides the other panels. */
.sg-social-tabs .sg-badge { margin-left: 4px; }
.sg-social-tabs a { min-height: 44px; display: inline-flex; align-items: center; }
.sg-social-panel h2 { margin-top: 0; }
.sg-social-subhead { font-size: 1rem; margin: 20px 0 8px; }

/* Disclosures that act as small menus or confirmations (assign groups, block). */
.sg-social-more summary { list-style: none; cursor: pointer; }
.sg-social-more summary::-webkit-details-marker { display: none; }
.sg-social-more[open] { flex-basis: 100%; }
.sg-social-more__body { margin-top: 8px; padding: 12px; border: 1px solid var(--border-strong); border-radius: var(--radius); background: var(--bg); display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.sg-social-confirm .sg-social-more__body { flex-direction: column; align-items: flex-start; max-width: 480px; }
.sg-social-confirm .sg-social-more__body p { margin: 0; }
.sg-social-group input[name="name"] { flex: 1 1 160px; }
.sg-social-newgroup { margin-bottom: 12px; }

/* Empty states inside tabs and lists. */
.sg-social-empty { text-align: center; padding: 32px 16px; border: 1px dashed var(--border-strong); border-radius: var(--radius-lg); }
.sg-social-empty__icon { display: inline-flex; padding: 12px; border-radius: 50%; background: var(--bg); color: var(--ink-muted); }
.sg-social-empty__icon .sg-icon { width: 28px; height: 28px; }
.sg-social-empty__title { font-family: var(--font-head); font-weight: 600; margin: 12px 0 4px; }
.sg-social-count { font: 500 0.85rem var(--font-mono); letter-spacing: 0.04em; text-transform: uppercase; color: var(--ink-muted); margin: 0 0 12px; }

/* T-17 notifications grouped by day, icon, unread dot. */
.sg-social-notices { max-width: 760px; }
.sg-social-day { font: 500 0.8rem var(--font-mono); letter-spacing: 0.04em; text-transform: uppercase; color: var(--ink-muted); margin: 20px 0 8px; }
.sg-social-notices .sg-notices { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.sg-social-notice { flex-wrap: nowrap; justify-content: flex-start; align-items: flex-start; }
.sg-social-notice__icon { flex-shrink: 0; width: 36px; height: 36px; border-radius: 50%; display: inline-grid; place-items: center; background: var(--bg); color: var(--ink); }
.sg-social-notice__icon .sg-icon { width: 18px; height: 18px; }
.sg-social-notice__body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; overflow-wrap: anywhere; }
.sg-social-notice__body .sg-actions { margin: 4px 0 0; }
.sg-social-dot { flex-shrink: 0; width: 10px; height: 10px; margin-top: 6px; border-radius: 50%; background: var(--accent); }

/* T-18 held comments. */
.sg-social-heldlist { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 12px; max-width: 860px; }
.sg-social-held { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 16px; }
.sg-social-held__text { margin: 8px 0; padding: 8px 12px; border-left: 3px solid var(--border-warm); background: var(--bg); border-radius: var(--radius-sm); overflow-wrap: anywhere; }
.sg-social-held__actions { justify-content: flex-end; }

/* T-23 search row. */
.sg-social-search { margin-bottom: 16px; align-items: center; }
.sg-social-search input[type="search"] { flex: 1 1 220px; min-height: 44px; }

/* T-02 feed card: author line with initials and New mark, footer with counts and "Open step". */
.sg-social-feed__by { display: flex; align-items: center; gap: 12px; }
.sg-social-feed__by .sg-feed-card__meta { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.sg-social-feed__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--border); }
.sg-social-feed__foot .sg-button { margin-left: auto; }
.sg-social-draft { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.sg-social-draft > div { flex: 1 1 200px; min-width: 0; }

/* P-06 and P-11 dialogs: title with close, choices side by side, actions at the end. */
.sg-social-dialog__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.sg-social-dialog__head h1 { margin: 0; }
.sg-social-dialog__head .sg-eyebrow { margin: 0 0 4px; }
.sg-social-dialog__close { display: inline-grid; place-items: center; min-width: 44px; min-height: 44px; font-size: 1.6rem; line-height: 1; color: var(--ink-muted); text-decoration: none; border-radius: var(--radius); }
.sg-social-dialog__close:hover { color: var(--ink); background: var(--bg); }
.sg-social-segment .sg-radio { flex: 1 1 100px; }
.sg-social-dialog__alt { text-align: center; margin: 12px 0 0; }
.sg-social-dialog__actions { justify-content: flex-end; }
