/* GROW & CEO SOCIETY — styles. Uses the academy's colors (css/academy.css variables). */
.soc { display: grid; gap: 14px; container-type: inline-size; }
.soc .sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.soc .ic { width: 18px; height: 18px; flex: none; }
.soc-head { display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; justify-content: space-between; }
.soc-brand { display: flex; gap: 14px; align-items: center; }
.soc-brand > .ic { width: 40px; height: 40px; padding: 9px; border: 1px solid var(--line); border-radius: 50%; color: var(--gold); }
.soc-brand h1 { font-family: var(--display); font-weight: 600; font-size: clamp(24px, 3.4vw, 36px); letter-spacing: .05em; }
.soc-eyebrow { font-size: 11px; letter-spacing: .22em; text-transform: uppercase; color: var(--gold); font-weight: 600; }
.soc-viewas { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--muted); flex-wrap: wrap; }
.soc-viewas button { font: inherit; font-size: 13px; color: var(--ink); background: transparent; border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px; min-height: 36px; cursor: pointer; }
.soc-viewas button.on { background: var(--gold-soft); border-color: var(--gold); color: var(--white); }
.soc-preview { display: flex; gap: 8px; align-items: flex-start; margin: 0; padding: 10px 14px; border: 1px dashed var(--line); border-radius: 6px; font-size: 13.5px; color: var(--muted); }
.soc-preview .ic { color: var(--gold); margin-top: 2px; }
.soc-body { display: grid; grid-template-columns: 200px minmax(0, 1fr) 270px; gap: 16px; align-items: start; }
.soc-nav { display: grid; gap: 4px; position: sticky; top: 12px; }
.soc-nav button { display: flex; gap: 10px; align-items: center; width: 100%; font: inherit; font-size: 14px; color: var(--ink); background: transparent; border: 1px solid transparent; border-radius: 6px; padding: 9px 12px; min-height: 44px; cursor: pointer; text-align: left; }
.soc-nav button:hover { background: var(--surface-2); }
.soc-nav button.on { background: var(--gold-soft); border-color: var(--line); color: var(--white); }
.soc-nav button .ic { color: var(--gold); }
.soc-nav button span { flex: 1; }
.soc-count { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--gold); color: #111; font-size: 11.5px; font-weight: 700; }
.soc-main { display: grid; gap: 14px; min-width: 0; }
.soc-side { display: grid; gap: 14px; position: sticky; top: 12px; }
.soc-card { background: var(--surface); border: 1px solid var(--line-soft); border-radius: 8px; padding: 16px; display: grid; gap: 10px; min-width: 0; }
.soc-card h3 { display: flex; gap: 8px; align-items: center; font-size: 14px; letter-spacing: .14em; text-transform: uppercase; color: var(--white); font-weight: 600; }
.soc-card h3 .ic { color: var(--gold); }
.soc-row { display: flex; gap: 10px; align-items: center; min-width: 0; }
.soc-between { justify-content: space-between; }
.soc-wrap { flex-wrap: wrap; }
.soc-grow { flex: 1; min-width: 0; display: grid; gap: 8px; }
.soc-muted { color: var(--muted); margin: 0; }
.soc-small { font-size: 12.5px; }
.soc-empty { color: var(--muted); text-align: center; padding: 24px 8px; margin: 0; display: flex; gap: 8px; justify-content: center; align-items: center; }
.soc-note { color: var(--risk); margin: 0; min-height: 1em; font-size: 13.5px; }
.soc-btn { display: inline-flex; gap: 8px; align-items: center; justify-content: center; font: inherit; font-size: 13.5px; font-weight: 500; color: var(--ink); background: transparent; border: 1px solid var(--line); border-radius: 4px; padding: 8px 14px; min-height: 44px; cursor: pointer; text-decoration: none; white-space: nowrap; }
.soc-btn:hover { border-color: var(--gold); }
.soc-btn.sm { min-height: 36px; padding: 6px 10px; font-size: 13px; }
.soc-btn.gold { background: var(--gold); border-color: var(--gold); color: #141210; font-weight: 600; }
.soc-btn.on { background: var(--emerald-soft); border-color: var(--emerald); color: var(--emerald-ink); }
.soc-btn.danger { color: var(--risk); border-color: var(--risk); }
.soc-btn:focus-visible, .soc-nav button:focus-visible, .soc-act:focus-visible, .soc-name:focus-visible, .soc-at:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.soc-link { font: inherit; font-size: 13px; color: var(--gold); background: none; border: 0; padding: 4px 0; cursor: pointer; text-decoration: underline; justify-self: start; }
.soc-av { --c: #cfa15a; display: inline-grid; place-items: center; width: 40px; height: 40px; flex: none; border-radius: 50%; background: color-mix(in srgb, var(--c) 22%, transparent); border: 1px solid color-mix(in srgb, var(--c) 60%, transparent); color: var(--white); font-weight: 600; font-size: 14px; overflow: hidden; }
.soc-av img { width: 100%; height: 100%; object-fit: cover; }
.soc-av.sm { width: 30px; height: 30px; font-size: 11.5px; }
.soc-av.lg { width: 52px; height: 52px; font-size: 17px; }
.soc-av.xl { width: 76px; height: 76px; font-size: 24px; }
.soc-name { font: inherit; font-weight: 600; color: var(--white); background: none; border: 0; padding: 0; cursor: pointer; }
.soc-name:hover { text-decoration: underline; }
.soc-badge { display: inline-flex; gap: 4px; align-items: center; margin-left: 6px; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--gold); }
.soc-badge .ic { width: 14px; height: 14px; }
.soc-tag { display: inline-flex; gap: 5px; align-items: center; font-size: 12px; padding: 3px 9px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); white-space: nowrap; }
.soc-tag .ic { width: 14px; height: 14px; }
.soc-tag.t-win { color: var(--gold); border-color: var(--gold); }
.soc-tag.t-announcement { color: var(--white); background: var(--gold-soft); }
.soc-tag.t-question { color: #8fb7e6; border-color: rgba(143,183,230,.5); }
.soc-tag.ok, .soc-tag.live { color: var(--emerald-ink); border-color: var(--emerald); background: var(--emerald-soft); }
.soc-me { display: flex; gap: 12px; align-items: center; }
.soc-me b { display: block; color: var(--white); }
.soc-me small { display: block; color: var(--muted); font-size: 12.5px; }
.soc-sid { color: var(--gold) !important; letter-spacing: .1em; }
.soc-up { display: grid; gap: 2px; text-align: left; font: inherit; color: var(--ink); background: var(--surface-2); border: 1px solid var(--line-soft); border-radius: 6px; padding: 8px 10px; cursor: pointer; }
.soc-up b { font-size: 13.5px; font-weight: 600; color: var(--white); }
.soc-up small { font-size: 12px; color: var(--muted); }
.soc-feedhead { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: flex-end; justify-content: space-between; }
.soc-feedhead h2 { font-family: var(--display); font-weight: 600; font-size: 24px; letter-spacing: .04em; }
.soc-search { display: flex; gap: 8px; align-items: center; border: 1px solid var(--line); border-radius: 999px; padding: 0 12px; background: var(--surface-2); min-height: 40px; }
.soc-search input { font: inherit; font-size: 14px; color: var(--ink); background: none; border: 0; outline: none; width: 160px; }
.soc textarea, .soc input[type="text"], .soc .soc-form input, .soc .soc-form select, .soc .soc-form textarea, .soc .soc-sel select { font: inherit; font-size: 14.5px; color: var(--ink); background: var(--surface-2); border: 1px solid var(--line); border-radius: 6px; padding: 10px 12px; width: 100%; min-width: 0; box-sizing: border-box; }
.soc textarea { resize: vertical; line-height: 1.5; }
.soc textarea:focus-visible, .soc input:focus-visible, .soc select:focus-visible { outline: 2px solid var(--gold); outline-offset: 1px; }
.soc .soc-sel select { width: auto; min-height: 36px; padding: 6px 10px; }
.soc-compose .soc-row { align-items: flex-start; }
.soc-compose .soc-between { align-items: center; flex-wrap: wrap; }
.soc-atts { display: flex; flex-wrap: wrap; gap: 6px; }
.soc-attchip { display: inline-flex; gap: 6px; align-items: center; font-size: 12.5px; padding: 4px 6px 4px 10px; border: 1px solid var(--line); border-radius: 999px; }
.soc-attchip button { background: none; border: 0; color: var(--muted); cursor: pointer; display: inline-grid; place-items: center; min-width: 28px; min-height: 28px; }
.soc-post.pinned { border-color: var(--line); background: linear-gradient(var(--gold-soft), var(--gold-soft)), var(--surface); }
.soc-post.t-win { border-left: 3px solid var(--gold); }
.soc-post header small { display: block; font-size: 12.5px; }
.soc-text { line-height: 1.55; overflow-wrap: anywhere; }
.soc-text a { color: var(--gold); }
.soc-at { display: inline; font: inherit; font-weight: 600; color: var(--gold); background: var(--gold-soft); border: 0; border-radius: 4px; padding: 0 4px; cursor: pointer; text-decoration: none; }
a.soc-at:hover, button.soc-at:hover { text-decoration: underline; }
.soc-menu { position: relative; }
.soc-menu summary { list-style: none; cursor: pointer; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; color: var(--muted); }
.soc-menu summary::-webkit-details-marker { display: none; }
.soc-menu > div { position: absolute; right: 0; top: 38px; z-index: 5; display: grid; min-width: 180px; background: var(--surface-3); border: 1px solid var(--line); border-radius: 6px; padding: 4px; box-shadow: 0 8px 24px rgba(0,0,0,.35); }
.soc-menu > div button { display: flex; gap: 8px; align-items: center; font: inherit; font-size: 13.5px; color: var(--ink); background: none; border: 0; padding: 8px 10px; min-height: 40px; cursor: pointer; text-align: left; border-radius: 4px; }
.soc-menu > div button:hover { background: var(--gold-soft); }
.soc-media { display: grid; gap: 8px; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.soc-img img { display: block; width: 100%; max-height: 360px; object-fit: contain; border-radius: 6px; background: var(--surface-2); }
.soc-file { display: flex; gap: 10px; align-items: center; padding: 10px 12px; border: 1px solid var(--line); border-radius: 6px; color: var(--ink); text-decoration: none; }
.soc-file b { display: block; font-weight: 600; color: var(--white); overflow-wrap: anywhere; }
.soc-file small { color: var(--muted); font-size: 12px; }
.soc-actions { border-top: 1px solid var(--line-soft); padding-top: 8px; }
.soc-act { display: inline-flex; gap: 6px; align-items: center; font: inherit; font-size: 13.5px; color: var(--muted); background: none; border: 0; padding: 6px 10px; min-height: 40px; border-radius: 6px; cursor: pointer; }
.soc-act:hover { background: var(--surface-2); }
.soc-act.on { color: #e48aa0; }
.soc-act.on .ic { fill: currentColor; }
.soc-comments { display: grid; gap: 8px; }
.soc-comment { display: flex; gap: 10px; align-items: flex-start; background: var(--surface-2); border-radius: 8px; padding: 8px 10px; }
.soc-comment.answer { border: 1px solid var(--emerald); }
.soc-comment small { font-size: 12px; }
.soc-reply input { flex: 1; }
.soc-chat { display: grid; gap: 10px; }
.soc-chans, .soc-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.soc-chans button, .soc-chips button { display: inline-flex; gap: 6px; align-items: center; font: inherit; font-size: 13.5px; color: var(--ink); background: transparent; border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px; min-height: 40px; cursor: pointer; }
.soc-chans button.on, .soc-chips button.on { background: var(--gold-soft); border-color: var(--gold); color: var(--white); }
.soc-pane { gap: 12px; }
.soc-chandesc { font-size: 13px; }
.soc-thread { display: grid; gap: 12px; max-height: 460px; overflow-y: auto; align-content: start; padding-right: 4px; scrollbar-width: thin; }
.soc-msg { display: flex; gap: 10px; align-items: flex-start; }
.soc-msg.mine > div { background: var(--gold-soft); border-radius: 8px; padding: 6px 10px; }
.soc-msg small { font-size: 12px; }
.soc-send { display: flex; gap: 8px; align-items: flex-end; }
.soc-send textarea { min-height: 44px; max-height: 160px; }
.soc-dm { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 12px; align-items: start; }
.soc-dmlist { padding: 6px; gap: 2px; }
.soc-dmrow { display: flex; gap: 10px; align-items: center; width: 100%; font: inherit; color: var(--ink); background: none; border: 0; border-radius: 6px; padding: 8px; cursor: pointer; text-align: left; min-height: 52px; }
.soc-dmrow span { flex: 1; min-width: 0; display: grid; }
.soc-dmrow b { color: var(--white); font-weight: 600; font-size: 14px; }
.soc-dmrow small { color: var(--muted); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.soc-dmrow.on, .soc-dmrow:hover { background: var(--gold-soft); }
.soc-back { display: none; }
.soc-files { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }
.soc-fcard { gap: 8px; align-content: start; }
.soc-fcard b { color: var(--white); font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.soc-fcard small { font-size: 12px; }
.soc-thumb { display: grid; place-items: center; height: 120px; border-radius: 6px; background: var(--surface-2); overflow: hidden; color: var(--gold); }
.soc-thumb img { width: 100%; height: 100%; object-fit: cover; }
.soc-thumb.doc .ic { width: 40px; height: 40px; }
.soc-cal { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }
.soc-grid7 { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.soc-dow { text-align: center; font-size: 11.5px; color: var(--muted); letter-spacing: .1em; padding: 4px 0; }
.soc-day { display: grid; justify-items: center; align-content: start; gap: 3px; min-height: 52px; font: inherit; font-size: 13.5px; color: var(--ink); background: var(--surface-2); border: 1px solid transparent; border-radius: 6px; padding: 6px 2px; cursor: pointer; }
.soc-day.empty { background: none; cursor: default; }
.soc-day.today { border-color: var(--gold); }
.soc-day.sel { background: var(--gold-soft); border-color: var(--gold); }
.soc-day .dot, .soc-legend .dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--gold); }
.dot.t-speaker { background: #8fb7e6 !important; } .dot.t-workshop { background: var(--emerald) !important; } .dot.t-due { background: var(--risk) !important; }
.soc-legend { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 0; font-size: 12.5px; color: var(--muted); }
.soc-legend span { display: inline-flex; gap: 6px; align-items: center; }
.soc-evlist { display: grid; gap: 10px; }
.soc-evlist h3 { font-size: 14px; letter-spacing: .14em; text-transform: uppercase; color: var(--white); display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.soc-event h4 { font-size: 17px; font-weight: 600; color: var(--white); }
.soc-event > p.soc-muted { display: flex; flex-wrap: wrap; gap: 4px 6px; align-items: center; font-size: 13.5px; }
.soc-event .soc-tag.t-speaker { color: #8fb7e6; } .soc-event .soc-tag.t-workshop { color: var(--emerald-ink); } .soc-event .soc-tag.t-due { color: var(--risk); }
.soc-members { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); }
.soc-mcard { justify-items: center; text-align: center; font: inherit; color: var(--ink); cursor: pointer; }
.soc-mcard b { color: var(--white); }
.soc-mcard small { font-size: 12.5px; }
.soc-reports { border-color: var(--risk); }
.soc-modal { position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; padding: 16px; background: rgba(0,0,0,.6); }
.soc-modal-card { width: min(560px, 100%); max-height: calc(100vh - 32px); overflow-y: auto; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 22px; display: grid; gap: 12px; box-shadow: 0 20px 60px rgba(0,0,0,.5); color: var(--ink); }
.soc-modal-card h2 { display: flex; gap: 10px; align-items: center; font-family: var(--display); font-weight: 600; font-size: 22px; letter-spacing: .04em; color: var(--white); }
.soc-modal-card h2 .ic { color: var(--gold); width: 22px; height: 22px; }
.soc-rules { margin: 0; padding-left: 1.3em; display: grid; gap: 6px; font-size: 14.5px; }
.soc-check { display: flex; gap: 10px; align-items: flex-start; font-size: 14.5px; cursor: pointer; }
.soc-check input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--emerald); flex: none; }
.soc-form { display: grid; gap: 10px; }
.soc-form label { display: grid; gap: 4px; font-size: 13px; font-weight: 600; color: var(--white); }
.soc-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 10px; }
.soc-mentions { position: fixed; z-index: 1100; display: grid; max-height: 300px; overflow-y: auto; background: var(--surface-3, #22211e); border: 1px solid var(--line, rgba(207,161,90,.26)); border-radius: 8px; padding: 4px; box-shadow: 0 12px 30px rgba(0,0,0,.45); }
.soc-mentions button { display: grid; gap: 1px; text-align: left; font: inherit; color: var(--ink, #efe8da); background: none; border: 0; border-radius: 6px; padding: 8px 10px; cursor: pointer; }
.soc-mentions button b { font-weight: 600; font-size: 14px; }
.soc-mentions button small { font-size: 11.5px; color: var(--muted, #a9a192); }
.soc-mentions button.on, .soc-mentions button:hover { background: var(--gold-soft, rgba(207,161,90,.12)); }
.soc-toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 1200; background: #1c1b19; color: #f6efe1; border: 1px solid #cfa15a; border-radius: 6px; padding: 10px 16px; font-size: 14px; }

@container (max-width: 1100px) {
  .soc-body { grid-template-columns: 190px minmax(0, 1fr); }
  .soc-side { grid-column: 1 / -1; position: static; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
}
@container (max-width: 760px) {
  .soc-body { grid-template-columns: minmax(0, 1fr); }
  .soc-nav { position: static; display: flex; overflow-x: auto; gap: 6px; padding-bottom: 4px; scrollbar-width: thin; }
  .soc-nav button { width: auto; flex: none; border: 1px solid var(--line); border-radius: 999px; min-height: 40px; padding: 6px 12px; }
  .soc-dm { grid-template-columns: minmax(0, 1fr); }
  .soc-dm.open .soc-dmlist { display: none; }
  .soc-dm:not(.open) .soc-pane { display: none; }
  .soc-back { display: inline-flex; }
  .soc-dmhead { flex-wrap: wrap; }
  .soc-search input { width: 120px; }
  .soc-card { padding: 12px; }
}
@media (prefers-reduced-motion: reduce) { .soc * { transition: none !important; } }
.soc-post > header, .soc-post > header > .soc-row { flex-wrap: wrap; }
.soc-post > header > .soc-row:last-child { margin-left: auto; }
.soc-compose .soc-between .soc-row { flex-wrap: wrap; }
@container (max-width: 760px) { .soc-compose > .soc-row > .soc-av { display: none; } }
/* avatar stays a circle everywhere (the Messages list was stretching it) */
.soc .soc-av { flex: none !important; aspect-ratio: 1; }
.soc-dmrow > span:not(.soc-av) { flex: 1; min-width: 0; display: grid; }
.soc-dmrow > .soc-av { display: inline-grid; }
/* toolbar: photo/GIF, file, GIF link, link, emoji */
.soc-tools { position: relative; display: flex; flex-wrap: wrap; gap: 4px; align-items: center; }
.soc-tool { display: inline-flex; gap: 6px; align-items: center; font: inherit; font-size: 13px; color: var(--muted); background: transparent; border: 1px solid transparent; border-radius: 6px; padding: 6px 9px; min-height: 36px; cursor: pointer; }
.soc-tool:hover, .soc-tool:focus-visible { color: var(--white); border-color: var(--line); background: var(--surface-2); outline: none; }
.soc-tool .ic { color: var(--gold); width: 17px; height: 17px; }
.soc-reply .soc-tools .soc-tool span:not(.sr) { display: none; }
.soc-pop { position: absolute; z-index: 30; left: 0; bottom: calc(100% + 6px); width: min(320px, 86vw); background: var(--surface-3); border: 1px solid var(--line); border-radius: 8px; padding: 12px; box-shadow: 0 12px 30px rgba(0,0,0,.45); }
.soc-reply .soc-pop { left: auto; right: 0; }
.soc-emoji { max-height: 300px; overflow-y: auto; }
.soc-emoji p { margin: 4px 0; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.soc-emoji div { display: grid; grid-template-columns: repeat(8, 1fr); gap: 2px; }
.soc-emoji button { font-size: 21px; line-height: 1; background: none; border: 0; border-radius: 6px; padding: 6px 0; min-height: 36px; cursor: pointer; }
.soc-emoji button:hover, .soc-emoji button:focus-visible { background: var(--gold-soft); outline: none; }
.soc-attchip img { width: 26px; height: 26px; object-fit: cover; border-radius: 4px; }
.soc-sendwrap { display: grid; gap: 6px; }
.soc-msg .soc-img img, .soc-msg .soc-inlinegif { max-width: min(320px, 100%); }
.soc-inlinegif { display: block; max-width: min(360px, 100%); border-radius: 6px; margin: 6px 0; }
.soc-msg > div { min-width: 0; }
.soc-msg .soc-img, .soc-msg .soc-file { display: inline-flex; margin-top: 6px; }
.soc-ext { color: var(--gold); text-decoration: underline; }

/* ---------- conversations: swipe, archive, delete ---------- */
.soc-dmtabs { display: flex; gap: 4px; padding: 2px 2px 6px; border-bottom: 1px solid var(--line-soft); margin-bottom: 4px; }
.soc-dmtabs button { flex: 1; display: inline-flex; gap: 6px; align-items: center; justify-content: center; font: inherit; font-size: 13px; color: var(--muted); background: none; border: 1px solid transparent; border-radius: 6px; min-height: 36px; cursor: pointer; }
.soc-dmtabs button.on { color: var(--white); background: var(--gold-soft); border-color: var(--line); }
.soc-dmtabs button:disabled { opacity: .45; cursor: default; }
.soc-dmtabs .ic { width: 16px; height: 16px; color: var(--gold); }
.soc-swipe { position: relative; overflow: hidden; border-radius: 6px; flex: none; }
.soc-swipe-acts { position: absolute; top: 0; right: 0; bottom: 0; display: flex; }
.soc-swipe-acts button { width: 84px; display: grid; place-content: center; justify-items: center; gap: 3px; font: inherit; font-size: 12px; font-weight: 600; color: #fff; border: 0; cursor: pointer; }
.soc-swipe-acts .ic { width: 20px; height: 20px; }
.soc-swipe-acts .arch { background: #55627a; }
.soc-swipe-acts .del { background: #b3261e; }
.soc-swipe-front { position: relative; z-index: 1; display: flex; align-items: center; background: var(--surface); transition: transform .22s ease; touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.soc-swipe.drag .soc-swipe-front { transition: none; }
.soc-swipe.open .soc-swipe-front { transform: translateX(-168px); }
.soc-swipe:not(.open) .soc-swipe-acts { visibility: hidden; }
.soc-swipe.drag .soc-swipe-acts { visibility: visible; }
.soc-swipe-front .soc-dmrow { flex: 1; min-width: 0; }
.soc-dmmenu summary { width: 32px; height: 32px; }
.soc-swipetip { display: none; gap: 6px; align-items: center; padding: 6px 4px 0; }
.soc-swipetip .ic { width: 14px; height: 14px; }
@media (hover: none) { .soc-dmmenu { display: none; } .soc-swipetip { display: flex; } }
.soc-callbtns { gap: 4px; flex-wrap: nowrap; }
.soc-icbtn { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--surface-2); border: 1px solid var(--line); color: var(--gold); cursor: pointer; }
.soc-icbtn:hover, .soc-icbtn:focus-visible { border-color: var(--gold); outline: none; }
.soc-icbtn .ic { width: 18px; height: 18px; }

/* ---------- voice messages, talk to type, delete a message ---------- */
.soc-micbtn { padding: 0; width: 44px; min-width: 44px; justify-content: center; color: var(--gold); }
.soc-tool.on { color: #fff; background: #b3261e; border-color: #b3261e; }
.soc-tool.on .ic { color: #fff; animation: soc-pulse 1.2s ease-in-out infinite; }
.soc-recbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; min-height: 48px; padding: 6px 10px; border: 1px solid #b3261e; border-radius: 8px; background: var(--surface-2); }
.soc-recbar b { font-variant-numeric: tabular-nums; color: var(--white); }
.soc-recdot { width: 12px; height: 12px; border-radius: 50%; background: #e5484d; animation: soc-pulse 1.2s ease-in-out infinite; flex: none; }
@keyframes soc-pulse { 50% { opacity: .35; } }
.soc-voice { display: flex; gap: 8px; align-items: center; margin-top: 6px; padding: 6px 10px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface-2); width: 270px; max-width: 100%; box-sizing: border-box; }
.soc-voice > .ic { color: var(--gold); flex: none; width: 18px; height: 18px; }
.soc-voice audio { height: 36px; width: 10px; min-width: 0; flex: 1; }
.soc-voice small { color: var(--muted); font-variant-numeric: tabular-nums; }
.soc-msgdel { display: inline-grid; place-items: center; width: 26px; height: 26px; vertical-align: middle; background: none; border: 0; border-radius: 4px; color: var(--muted); cursor: pointer; opacity: 0; }
.soc-msg:hover .soc-msgdel, .soc-msgdel:focus-visible { opacity: 1; }
@media (hover: none) { .soc-msgdel { opacity: .7; } }
.soc-msgdel:hover { color: var(--risk); }
.soc-msgdel .ic { width: 15px; height: 15px; }

/* ---------- weekly rhythm + scheduled posts ---------- */
.soc-rhythm { gap: 10px; }
.soc-rh { display: flex; gap: 10px; align-items: flex-start; }
.soc-rh-ic { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--line); color: var(--gold); flex: none; }
.soc-rh-ic .ic { width: 16px; height: 16px; }
.soc-rh b { display: block; color: var(--white); font-size: 13.5px; }
.soc-rh small { display: block; color: var(--muted); font-size: 12.5px; line-height: 1.4; }
.soc-tag.t-rhythm { border-color: var(--gold); color: var(--gold); }
.soc-schedbox { margin-top: 8px; gap: 10px; }
.soc-schedbox input[type="datetime-local"], .soc-schedrow input[type="datetime-local"] { min-height: 40px; }
.soc-sched-q { border-color: var(--gold); }
.soc-schedrow { display: grid; gap: 8px; padding: 10px 0; border-top: 1px solid var(--line-soft); }
.soc-schedrow p { margin: 2px 0 0; font-size: 13.5px; }
.soc-fs { border: 1px solid var(--line-soft); border-radius: 8px; padding: 10px 12px 12px; display: grid; gap: 8px; margin: 0; }
.soc-fs legend { padding: 0 6px; }

/* ---------- live Society additions ---------- */
.soc-modal-card { position: relative; }
.soc-x { position: absolute; top: 10px; right: 10px; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 999px; border: 1px solid var(--line); background: transparent; color: var(--ink); cursor: pointer; z-index: 2; }
.soc-x:hover, .soc-x:focus-visible { border-color: var(--gold); color: var(--gold); outline: none; }
.soc-x .ic { width: 18px; height: 18px; }
.soc-modal-card > h2 { padding-right: 44px; }
.soc-video { position: relative; width: 100%; aspect-ratio: 16 / 9; border-radius: 8px; overflow: hidden; background: #000; margin: 10px 0 4px; border: 1px solid var(--line); }
.soc-video iframe, .soc-video video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; background: #000; }
.soc-fcard .soc-video { margin: 0 0 8px; }
.soc-msg .soc-video { max-width: 520px; }
.soc-head .soc-tag { align-self: center; }
