/* Social layer (v1.27.0): follow, fan levels, reels, wall, top fans, drops, join list, member walls, friends, DMs. */
:root { --so-ink: #1e3025; --so-mute: #627063; --so-line: #d6decf; --so-brand: #244b38; --so-soft: #e8efdd; --so-lime: #c9e265; --so-paper: #fffef9; }
.so-slot, .so-dialog, #pp-social, #so-member, .so-toast { font-family: "DM Sans", system-ui, sans-serif; color: var(--so-ink); }
.so-slot *, .so-dialog *, #pp-social *, #so-member * { box-sizing: border-box; }
.so-slot:not(.so-on) { display: none; }
.so-slot img, .so-dialog img, #pp-social img, #so-member img { display: block; max-width: 100%; }
.so-slot :is(h2, h3, p), .so-dialog :is(h2, h3, p), #pp-social :is(h2, h3, p), #so-member :is(h1, h2, h3, p) { margin: 0; }
:where(.so-slot, .so-dialog, #pp-social, #so-member) button { font: inherit; color: inherit; cursor: pointer; }
:where(.so-slot, #pp-social, #so-member, .so-dialog) a { color: inherit; }
:is(.so-slot, .so-dialog, #pp-social, #so-member) :is(button, a, input, select, textarea):focus-visible { outline: 3px solid #8fb339; outline-offset: 2px; }

.so-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 10px 16px; border-radius: 12px; border: 1px solid var(--so-brand); background: var(--so-brand); color: #fff !important; font-weight: 700; font-size: 13.5px; text-decoration: none; white-space: nowrap; }
.so-btn.ghost { background: #fff; color: var(--so-brand) !important; }
.so-btn.sm { padding: 7px 12px; font-size: 12.5px; border-radius: 10px; }
.so-btn:disabled { opacity: 0.6; cursor: progress; }
.so-hint { color: var(--so-mute); font-size: 12.5px; }
.so-empty { color: var(--so-mute); font-size: 13.5px; padding: 12px 2px; }
.so-warn { background: #fff7dc; border: 1px solid #ecd892; border-radius: 12px; padding: 10px 14px; font-size: 13px; margin-bottom: 12px !important; }
.so-err { color: #a33a2b; font-size: 13px; }
.so-ok { color: #2f7a3c; font-weight: 700; display: flex; gap: 6px; align-items: center; }
.so-h { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.so-h h3 { display: inline-flex; align-items: center; gap: 7px; font-size: 18px; letter-spacing: -0.01em; }
.so-h small { color: var(--so-mute); font-size: 12px; }
.so-av { flex: none; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; overflow: hidden; background: var(--so-soft); color: var(--so-brand); font-weight: 800; font-size: 13px; }
.so-av img { width: 100%; height: 100%; object-fit: cover; }
.so-av.lg { width: 92px; height: 92px; font-size: 30px; border: 4px solid #fff; box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12); }
.so-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }
.so-chk { display: flex !important; gap: 8px; align-items: flex-start; font-size: 12px; color: var(--so-mute); line-height: 1.4; }
.so-chk input { margin-top: 2px; flex: none; accent-color: var(--so-brand); }

/* follow + fan bar */
.so-follow { display: inline-flex; align-items: center; gap: 6px; padding: 10px 16px; border-radius: 12px; border: 1px solid var(--so-brand); background: var(--so-brand); color: #fff; font-weight: 800; font-size: 13.5px; }
.so-follow.on { background: #fff; color: var(--so-brand); }
.so-follow.compact { padding: 11px 6px; border: 0; background: none; color: #fff; width: 100%; justify-content: center; font-size: 13px; }
.so-follow.compact.on { color: var(--so-lime); }
.so-fbar { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; font-size: 13px; }
.so-fct b { font-size: 15px; }
.so-fct em { font-style: normal; color: #2f7a3c; font-weight: 700; font-size: 12px; margin-left: 4px; }
.so-lv { display: inline-grid; grid-template-columns: auto 90px; align-items: center; gap: 2px 8px; font-size: 12px; }
.so-lv b { color: var(--so-brand); }
.so-lv i { display: block; height: 7px; border-radius: 5px; background: var(--so-soft); overflow: hidden; position: relative; }
.so-lv i::after { content: ""; position: absolute; inset: 0 auto 0 0; width: var(--p); background: linear-gradient(90deg, #8fb339, var(--so-brand)); border-radius: 5px; }
.so-lv small { grid-column: 1 / -1; color: var(--so-mute); }
.so-rank { background: var(--so-lime); color: var(--so-ink); font-weight: 800; font-size: 11.5px; border-radius: 8px; padding: 3px 8px; }

/* rings + reels */
.so-rings { display: flex; gap: 12px; overflow-x: auto; scrollbar-width: none; padding: 4px 2px 6px; }
.so-ring { flex: none; display: grid; justify-items: center; gap: 4px; border: 0; background: none; padding: 0; width: 70px; }
.so-ring > span { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; padding: 3px; background: conic-gradient(var(--so-lime), #7fb069, var(--so-brand), var(--so-lime)); overflow: hidden; }
.so-ring > span img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; border: 2px solid #fff; }
.so-ring.add > span { background: var(--so-soft); color: var(--so-brand); border: 2px dashed #9fb58a; }
.so-ring small { font-size: 11px; max-width: 70px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--so-mute); }
.so-reels { margin-top: 6px; }
.so-reelrow { display: grid; grid-auto-flow: column; grid-auto-columns: 150px; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; scrollbar-width: thin; }
.so-reel { position: relative; aspect-ratio: 9 / 16; border-radius: 16px; overflow: hidden; border: 0; padding: 0; background: #1e3025; color: #fff; scroll-snap-align: start; text-align: left; }
.so-reel img { width: 100%; height: 100%; object-fit: cover; }
.so-reel-ph { display: grid; place-items: center; width: 100%; height: 100%; color: var(--so-lime); }
.so-reel-i { position: absolute; top: 8px; left: 8px; display: inline-flex; align-items: center; gap: 4px; font-size: 11px; font-weight: 800; background: rgba(0, 0, 0, 0.45); border-radius: 8px; padding: 3px 7px; }
.so-reel b { position: absolute; inset: auto 0 0 0; padding: 30px 10px 10px; font-size: 12px; line-height: 1.25; background: linear-gradient(transparent, rgba(0, 0, 0, 0.75)); }

/* wall + posts */
.so-wall { margin-top: 10px; }
.so-composer { display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px 14px; margin-bottom: 12px; border: 1.5px dashed #b7c8a4; border-radius: 16px; background: #fbfcf6; color: var(--so-mute) !important; text-align: left; font-size: 14px; }
.so-composer span:not(.so-av) { flex: 1; }
.so-feed { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; align-items: start; }
.so-post { background: #fff; border: 1px solid var(--so-line); border-radius: 18px; overflow: hidden; display: grid; }
.so-ph { display: flex; align-items: center; gap: 10px; padding: 10px 12px; }
.so-ph > span:not(.so-av) { flex: 1; min-width: 0; font-size: 13px; }
.so-ph b a { text-decoration: none; }
.so-ph small { display: block; color: var(--so-mute); font-size: 11.5px; }
.so-dots { border: 0; background: none; font-size: 20px; line-height: 1; padding: 2px 6px; color: var(--so-mute) !important; border-radius: 8px; }
.so-media { display: grid; gap: 2px; background: #000; position: relative; }
.so-media.n2, .so-media.n4 { grid-template-columns: 1fr 1fr; }
.so-media.n3 { grid-template-columns: 2fr 1fr; }
.so-media.n3 > :first-child { grid-row: span 2; }
.so-media img, .so-media video { width: 100%; height: 100%; max-height: 520px; object-fit: cover; display: block; aspect-ratio: 1; }
.so-media.n1 img, .so-media.n1 video { aspect-ratio: auto; max-height: 560px; }
.so-media video { background: #000; object-fit: contain; }
.so-more { position: absolute; right: 8px; bottom: 8px; background: rgba(0, 0, 0, 0.6); color: #fff; padding: 4px 9px; border-radius: 8px; font-size: 12px; }
.so-pb { padding: 10px 14px 0; font-size: 14px; line-height: 1.5; overflow-wrap: anywhere; }
.so-pa { display: flex; align-items: center; gap: 4px; padding: 8px 8px 10px; }
.so-pa button { display: inline-flex; align-items: center; gap: 5px; border: 0; background: none; padding: 6px 9px; border-radius: 10px; font-size: 13px; font-weight: 600; color: var(--so-mute) !important; }
.so-pa button:hover { background: var(--so-soft); }
.so-pa button[aria-pressed="true"] { color: #c23d4b !important; }
.so-pa button[aria-pressed="true"] svg { fill: currentColor; }
.so-views { margin-left: auto; color: var(--so-mute); font-size: 11.5px; padding-right: 6px; }
.so-moreb { margin: 12px auto 0; display: flex; }
.so-poll { display: grid; gap: 6px; padding: 10px 14px 0; }
.so-po { position: relative; display: flex; justify-content: space-between; padding: 9px 12px; border-radius: 10px; border: 1px solid var(--so-line); background: #fff; font-size: 13.5px; text-align: left; overflow: hidden; }
div.so-po::before { content: ""; position: absolute; inset: 0 auto 0 0; width: var(--w); background: var(--so-soft); z-index: 0; }
div.so-po > * { position: relative; }
div.so-po.me { border-color: var(--so-brand); font-weight: 700; }
button.so-po:hover { border-color: var(--so-brand); }
.so-poll small { color: var(--so-mute); font-size: 11.5px; }
.so-drop { margin: 10px 14px 0; padding: 14px; border-radius: 14px; border: 1.5px dashed #c6a74a; background: #fffaf0; display: grid; gap: 6px; justify-items: start; }
.so-drop-k { display: inline-flex; align-items: center; gap: 5px; font-size: 11px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: #9a6a12; }
.so-drop b { font-size: 16px; }
.so-drop small { color: var(--so-mute); font-size: 12px; }
.so-code { display: grid; gap: 2px; padding: 10px 12px; background: #fff; border-radius: 10px; border: 1px solid #ecd892; font-size: 12.5px; }
.so-code b { font-size: 20px; letter-spacing: 0.08em; font-family: ui-monospace, Menlo, monospace; }
.so-ended { font-size: 12.5px; font-weight: 700; color: var(--so-mute); }
.so-own { color: #9a6a12 !important; }

/* variants: Walk-In corkboard + Passport field notes */
.so-feed.cork { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); padding: 18px; border-radius: 18px; background: #c79f6b radial-gradient(rgba(0, 0, 0, 0.08) 1px, transparent 1.5px) 0 0 / 7px 7px; gap: 18px; }
.so-post.cork { border-radius: 2px; border: 0; padding: 8px 8px 0; box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2); transform: rotate(-1deg); position: relative; background: #fffdf4; }
.so-post.cork:nth-child(even) { transform: rotate(1.2deg); }
.so-post.cork::before { content: ""; position: absolute; top: -6px; left: 50%; width: 14px; height: 14px; border-radius: 50%; background: #d35d3b; box-shadow: 0 2px 2px rgba(0, 0, 0, 0.3); z-index: 2; }
.so-post.cork .so-ph { padding: 6px 4px; }
.so-wall.cork .so-composer { background: #fffdf4; }
.so-feed.notes { grid-template-columns: minmax(0, 1fr); gap: 10px; }
.so-post.notes { background: #fffdf4; border: 1px solid #dccfa8; border-radius: 6px; grid-template-columns: minmax(0, 1fr); box-shadow: 0 2px 0 #e6dcbd; }
.so-post.notes .so-media.n1 img, .so-post.notes .so-media.n1 video { max-height: 340px; }

/* fans */
.so-fans, .so-join, .so-drops { background: #fff; border: 1px solid var(--so-line); border-radius: 18px; padding: 16px; }
.so-board { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.so-board li { display: flex; align-items: center; gap: 10px; padding: 6px 8px; border-radius: 12px; font-size: 13px; }
.so-board li:nth-child(1) { background: linear-gradient(90deg, #fff4c9, transparent); }
.so-board li:nth-child(2) { background: linear-gradient(90deg, #eef0f3, transparent); }
.so-board li:nth-child(3) { background: linear-gradient(90deg, #f6e2d3, transparent); }
.so-board li > span:not(.so-av):not(.so-pos) { flex: 1; min-width: 0; }
.so-board small { display: block; color: var(--so-mute); font-size: 11.5px; }
.so-board a { text-decoration: none; }
.so-board em { font-style: normal; font-weight: 800; color: var(--so-brand); }
.so-pos { width: 22px; text-align: center; font-weight: 800; color: var(--so-mute); }
.so-board .so-av { width: 32px; height: 32px; }
.so-mine { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--so-line); }
.so-mine .so-lv { grid-template-columns: auto 1fr; width: 100%; }
.so-earn { margin: 12px 0 10px; font-size: 13px; }
.so-earn summary { cursor: pointer; font-weight: 700; color: var(--so-brand); }
.so-earn ul { list-style: none; padding: 0; margin: 8px 0; display: grid; gap: 4px; }
.so-earn li { display: flex; justify-content: space-between; padding: 4px 0; border-bottom: 1px dotted var(--so-line); }
.so-earn li.done span { text-decoration: line-through; color: var(--so-mute); }
.so-earn li.done b::after { content: " ✓"; color: #2f7a3c; }
.so-ladder { display: flex; flex-wrap: wrap; gap: 6px; }
.so-ladder span { font-size: 11.5px; background: var(--so-soft); border-radius: 8px; padding: 3px 8px; }

/* join + drops */
.so-jform { display: grid; gap: 8px; }
.so-jform input:not([type="checkbox"]) { width: 100%; padding: 10px 12px; border: 1px solid var(--so-line); border-radius: 10px; font: inherit; font-size: 14px; background: #fff; }
.so-join.done { display: block; font-size: 14px; }
.so-join .so-drops { border: 0; padding: 0; margin-top: 14px; }
.so-drops .so-feed { grid-template-columns: minmax(0, 1fr); }
.so-drops .so-post .so-drop { margin-bottom: 4px; }
.so-drops .so-media img, .so-drops .so-media video { max-height: 200px; }
.so-classic { padding-top: 8px; }
.so-web { display: grid; gap: 8px; margin-top: 12px; }

/* classic bundle */
.so-classic .so-cl-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 14px; flex-wrap: wrap; margin-bottom: 14px; }
.so-classic h2 { font-family: Cormorant, Georgia, serif; font-size: clamp(1.7rem, 3vw, 2.2rem); font-weight: 600; margin-bottom: 4px; }
.so-cl-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 20px; align-items: start; margin-top: 10px; }
.so-cl-grid aside { display: grid; gap: 14px; position: sticky; top: 12px; }
.so-cl-grid .so-feed { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }

/* dialogs */
.so-dialog { width: min(560px, calc(100% - 20px)); max-height: calc(100dvh - 24px); padding: 22px clamp(16px, 4vw, 26px); border: 0; border-radius: 20px; background: var(--so-paper); box-shadow: 0 30px 80px rgba(0, 0, 0, 0.3); }
.so-dialog::backdrop { background: rgba(18, 28, 22, 0.6); }
.so-dialog h2 { font-family: Cormorant, Georgia, serif; font-size: 28px; font-weight: 600; margin: 0 34px 12px 0; }
.so-x { position: absolute; top: 10px; right: 10px; margin: 0; z-index: 5; }
.so-x button { width: 36px; height: 36px; border-radius: 50%; border: 0; background: rgba(0, 0, 0, 0.06); font-size: 22px; line-height: 1; }
.so-ck { display: flex; gap: 6px; margin-bottom: 10px; }
.so-ck button { border: 1px solid var(--so-line); background: #fff; border-radius: 20px; padding: 6px 14px; font-weight: 700; font-size: 13px; }
.so-ck button[aria-selected="true"] { background: var(--so-ink); color: #fff; border-color: var(--so-ink); }
.so-cform { display: grid; gap: 10px; }
.so-cform textarea, .so-cform input:not([type="checkbox"]):not([type="file"]) { width: 100%; padding: 10px 12px; border: 1px solid var(--so-line); border-radius: 12px; font: inherit; font-size: 14px; background: #fff; }
.so-poll-ed { display: grid; gap: 6px; }
.so-drop-ed { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.so-drop-ed label:not(.so-chk) { display: grid; gap: 3px; font-size: 12px; font-weight: 700; color: var(--so-mute); }
.so-drop-ed label:first-child { grid-column: 1 / -1; }
.so-cmedia { display: flex; flex-wrap: wrap; gap: 8px; }
.so-cmedia:empty { display: none; }
.so-cm { position: relative; width: 88px; height: 88px; border-radius: 12px; overflow: hidden; background: var(--so-soft); }
.so-cm img, .so-cm video { width: 100%; height: 100%; object-fit: cover; }
.so-cm.busy img, .so-cm.busy video { opacity: 0.5; }
.so-cm i { position: absolute; left: 6px; right: 6px; bottom: 6px; height: 5px; border-radius: 4px; background: rgba(255, 255, 255, 0.7); }
.so-cm i::after { content: ""; position: absolute; inset: 0 auto 0 0; width: var(--p); background: var(--so-brand); border-radius: 4px; }
.so-cm button { position: absolute; top: 4px; right: 4px; width: 22px; height: 22px; border-radius: 50%; border: 0; background: rgba(0, 0, 0, 0.6); color: #fff !important; font-size: 14px; line-height: 1; }
.so-cpick { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.so-cpick label { cursor: pointer; }
.so-cfoot { display: flex; justify-content: flex-end; }
.so-sheet { width: min(360px, calc(100% - 20px)); }
.so-menu { display: grid; gap: 6px; padding-top: 18px; }
.so-menu button { padding: 12px; border-radius: 12px; border: 1px solid var(--so-line); background: #fff; font-weight: 700; }
.so-menu .danger { color: #a33a2b !important; }
.so-cl { display: grid; gap: 10px; max-height: 50vh; overflow: auto; margin-bottom: 10px; }
.so-c { display: flex; gap: 10px; font-size: 13.5px; }
.so-c .so-av { width: 32px; height: 32px; }
.so-c small { display: block; color: var(--so-mute); font-size: 11.5px; }
.so-c small button { border: 0; background: none; padding: 0; color: var(--so-mute) !important; text-decoration: underline; font-size: 11.5px; }
.so-cf { display: flex; gap: 8px; }
.so-cf input { flex: 1; min-width: 0; padding: 10px 12px; border: 1px solid var(--so-line); border-radius: 12px; font: inherit; }
.so-reelview { width: min(460px, 100%); height: min(860px, 100dvh); max-height: 100dvh; padding: 0; background: #000; border-radius: 20px; overflow: hidden; }
.so-reelview .so-x button { background: rgba(255, 255, 255, 0.2); color: #fff !important; }
.so-reelview .so-db, .so-rv, .so-rv-stage { height: 100%; }
.so-rv-stage { position: relative; display: grid; place-items: center; color: #fff; }
.so-rv-stage video, .so-rv-stage > img { width: 100%; height: 100%; object-fit: contain; }
.so-rv-cap { position: absolute; left: 0; right: 70px; bottom: 0; padding: 60px 16px 18px; background: linear-gradient(transparent, rgba(0, 0, 0, 0.75)); display: grid; grid-template-columns: auto 1fr; gap: 4px 10px; align-items: center; pointer-events: none; }
.so-rv-cap p { grid-column: 1 / -1; font-size: 14px; line-height: 1.4; }
.so-rv-acts { position: absolute; right: 10px; bottom: 80px; display: grid; gap: 14px; }
.so-rv-acts button { display: grid; justify-items: center; gap: 2px; border: 0; background: none; color: #fff !important; font-size: 12px; font-weight: 700; }
.so-rv-acts button[aria-pressed="true"] { color: #ff6b7a !important; }
.so-rv-acts button[aria-pressed="true"] svg { fill: currentColor; }
.so-rv-nav { position: absolute; right: 14px; width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, 0.18); color: #fff !important; display: grid; place-items: center; }
.so-rv-nav.prev { top: 60px; }
.so-rv-nav.next { top: 110px; }
.so-rv-n { position: absolute; top: 16px; left: 16px; font-size: 12px; font-weight: 700; background: rgba(0, 0, 0, 0.4); padding: 3px 9px; border-radius: 8px; }

.so-toast { position: fixed; left: 50%; bottom: 84px; transform: translate(-50%, 20px); z-index: 9999; max-width: min(520px, calc(100% - 24px)); padding: 12px 18px; border-radius: 14px; background: #1e3025; color: #fff; font-size: 14px; box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3); opacity: 0; pointer-events: none; transition: 0.25s; }
.so-toast.show { opacity: 1; transform: translate(-50%, 0); }
.so-toast b { color: var(--so-lime, #c9e265); }

/* profile tabs */
#pp-social { display: grid; gap: 14px; }
.so-gate { padding: 30px; text-align: center; display: grid; gap: 12px; justify-items: center; }
.so-mycover { height: 170px; border-radius: 18px; background: linear-gradient(135deg, #cfe0b5, #244b38) center / cover; display: flex; justify-content: flex-end; align-items: flex-end; padding: 10px; }
.so-mycover.big { height: 230px; border-radius: 0 0 22px 22px; }
.so-myhead { display: flex; align-items: flex-end; gap: 14px; margin-top: -54px; padding: 0 14px; flex-wrap: wrap; }
.so-myhead > div { padding-bottom: 6px; display: grid; gap: 2px; flex: 1; min-width: 200px; }
.so-myhead h1, .so-myhead h2 { font-family: Cormorant, Georgia, serif; font-size: 30px; font-weight: 600; line-height: 1.05; margin-top: 54px !important; }
.so-myhead a { color: var(--so-brand); font-weight: 700; font-size: 13px; }
.so-myhead small, .so-myhead span { color: var(--so-mute); font-size: 12.5px; }
.so-myhead p { font-size: 14px; margin-top: 4px !important; }
.so-myhead > .so-macts { display: flex; gap: 8px; flex-wrap: wrap; padding-bottom: 6px; flex: 0 1 auto; min-width: 0; align-items: center; }
.so-myhead > .so-macts .so-btn { font-size: 13.5px; }
.so-myhead > .so-macts a.so-btn.ghost { color: var(--so-brand) !important; }
.so-bio, .so-priv { display: grid; gap: 8px; background: #fff; border: 1px solid var(--so-line); border-radius: 16px; padding: 14px; }
.so-bio label, .so-priv label:not(.so-chk) { display: grid; gap: 4px; font-size: 12.5px; font-weight: 700; color: var(--so-mute); }
.so-bio textarea, .so-priv select { width: 100%; padding: 9px 11px; border: 1px solid var(--so-line); border-radius: 10px; font: inherit; font-size: 14px; color: var(--so-ink); background: #fff; }
.so-bio .so-btn, .so-priv .so-btn { justify-self: start; }
.so-priv h3 { display: flex; gap: 6px; align-items: center; font-size: 16px; }
.so-notes ul, .so-people { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.so-notes li, .so-person { display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 14px; background: #fff; border: 1px solid var(--so-line); font-size: 13.5px; }
.so-notes li.new { border-color: #9fc06f; background: #fbfdf4; }
.so-notes li > span:not(.so-av), .so-person > span:not(.so-av) { flex: 1; min-width: 0; }
.so-notes small, .so-person small { display: block; color: var(--so-mute); font-size: 12px; }
.so-person a { text-decoration: none; }
.so-find { display: flex; gap: 8px; }
.so-find input, .so-newdm input { flex: 1; min-width: 0; padding: 9px 12px; border: 1px solid var(--so-line); border-radius: 10px; font: inherit; }
.so-fgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; }
.so-fgrid h3 { font-size: 16px; margin-bottom: 8px !important; }
.so-fgrid h3 small { color: var(--so-mute); font-weight: 600; }
.so-dm { display: grid; grid-template-columns: 280px minmax(0, 1fr); min-height: 460px; border: 1px solid var(--so-line); border-radius: 18px; overflow: hidden; background: #fff; }
.so-dm aside { border-right: 1px solid var(--so-line); display: grid; align-content: start; }
.so-newdm { display: flex; gap: 6px; padding: 10px; border-bottom: 1px solid var(--so-line); }
.so-dm ul { list-style: none; margin: 0; padding: 0; overflow: auto; max-height: 520px; }
.so-dm li button { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; padding: 10px 12px; border: 0; border-bottom: 1px solid #eef2e6; background: #fff; font-size: 13px; }
.so-dm li button.on { background: var(--so-soft); }
.so-dm li button.new b::after { content: " •"; color: #2f7a3c; }
.so-dm li button span:not(.so-av) { flex: 1; min-width: 0; }
.so-dm li small { display: block; color: var(--so-mute); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.so-dm li em { font-style: normal; color: var(--so-mute); font-size: 11px; }
.so-dm li.so-empty { padding: 14px; }
.so-dmpane { display: grid; grid-template-rows: auto 1fr auto; min-width: 0; }
.so-dmpane > .so-empty { padding: 30px; align-self: center; text-align: center; grid-row: 1 / -1; }
.so-dmpane header { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-bottom: 1px solid var(--so-line); }
.so-dmpane header b { flex: 1; }
.so-msgs { display: flex; flex-direction: column; gap: 8px; padding: 14px; overflow: auto; max-height: 440px; background: #fafbf6; }
.so-msgs p { max-width: 75%; padding: 9px 12px; border-radius: 14px 14px 14px 4px; background: #fff; border: 1px solid var(--so-line); font-size: 14px; align-self: flex-start; overflow-wrap: anywhere; }
.so-msgs p.me { align-self: flex-end; background: var(--so-brand); color: #fff; border-color: var(--so-brand); border-radius: 14px 14px 4px 14px; }
.so-msgs small { display: block; font-size: 10.5px; opacity: 0.7; margin-top: 2px; }
.so-dmform { display: flex; gap: 8px; padding: 10px; border-top: 1px solid var(--so-line); }
.so-dmform input { flex: 1; min-width: 0; padding: 10px 12px; border: 1px solid var(--so-line); border-radius: 12px; font: inherit; }

/* public member page */
#so-member { max-width: 1040px; margin: 0 auto 40px; padding: 0 clamp(12px, 3vw, 24px); display: grid; gap: 18px; }
.so-badges > div, .so-follows > div { display: flex; gap: 10px; flex-wrap: wrap; }
.so-badges h3, .so-follows h3 { display: flex; gap: 6px; align-items: center; font-size: 17px; margin-bottom: 8px !important; }
.so-badge { display: grid; justify-items: center; gap: 3px; width: 112px; padding: 12px 8px; border-radius: 16px; border: 2px solid var(--so-line); background: #fff; text-decoration: none; text-align: center; font-size: 12px; }
.so-badge small { color: var(--so-mute); font-weight: 700; }
.so-badge.lv2 { border-color: #9fc06f; } .so-badge.lv3 { border-color: #d9b44a; } .so-badge.lv4 { border-color: #b0473a; background: #fff8f0; }
.so-follows a { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 6px; border: 1px solid var(--so-line); border-radius: 30px; background: #fff; text-decoration: none; font-size: 13px; font-weight: 600; }
.so-follows .so-av { width: 28px; height: 28px; }

@media (max-width: 860px) {
  .so-cl-grid { grid-template-columns: minmax(0, 1fr); }
  .so-cl-grid aside { position: static; }
  .so-dm { grid-template-columns: minmax(0, 1fr); }
  .so-dm aside { border-right: 0; border-bottom: 1px solid var(--so-line); }
  .so-dm ul { max-height: 220px; }
}
@media (max-width: 560px) {
  .so-feed { grid-template-columns: minmax(0, 1fr); }
  .so-feed.cork { grid-template-columns: minmax(0, 1fr); padding: 12px; gap: 14px; }
  .so-post.cork, .so-post.cork:nth-child(even) { transform: none; }
  .so-reelrow { grid-auto-columns: 128px; }
  .so-dialog { border-radius: 18px 18px 0 0; margin-bottom: 0; width: 100%; max-width: 100%; }
  .so-reelview { border-radius: 0; height: 100dvh; }
  .so-drop-ed { grid-template-columns: minmax(0, 1fr); }
  .so-myhead h1, .so-myhead h2 { font-size: 26px; }
  .so-mycover.big { height: 170px; }
}

/* Classic wall rows (v1.28.5): one row per post type, newest first, smaller cards of equal height. */
.so-wall .so-h { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.so-wswitch { display: inline-flex; gap: 2px; padding: 3px; border: 1px solid var(--so-line); border-radius: 999px; background: #fff; }
.so-wswitch button { border: 0; background: none; padding: 5px 12px; border-radius: 999px; font-size: 12px; font-weight: 700; color: var(--so-mute) !important; }
.so-wswitch button[aria-pressed="true"] { background: var(--so-brand, #244d38); color: #fff !important; }
.so-wall-rows { container-type: inline-size; }
.so-wrow { margin-top: 14px; }
.so-wrow + .so-wrow { padding-top: 14px; border-top: 1px solid var(--so-line); }
.so-wrow-h { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.so-wrow-h h4 { display: inline-flex; align-items: center; gap: 6px; font-size: 15px; letter-spacing: -0.01em; margin: 0; }
.so-wrow-h h4 small { font-size: 11.5px; font-weight: 700; color: var(--so-mute); background: var(--so-soft); border-radius: 999px; padding: 1px 8px; }
.so-wrow-nav { display: inline-flex; gap: 6px; }
.so-wrow-nav button { width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--so-line); background: #fff; font-size: 16px; line-height: 1; color: var(--so-mute) !important; display: grid; place-items: center; padding: 0; }
.so-wtrack { --wc: 3.4; display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - (var(--wc) - 1) * 12px) / var(--wc)); gap: 12px; align-items: stretch; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; scrollbar-width: none; padding: 1px 1px 4px; }
.so-wtrack::-webkit-scrollbar { display: none; }
.so-wtrack .so-post { scroll-snap-align: start; border-radius: 14px; grid-template-rows: auto auto 1fr auto; align-content: start; }
.so-wtrack .so-ph { padding: 8px 10px; gap: 8px; }
.so-wtrack .so-ph .so-av { width: 28px; height: 28px; flex: 0 0 28px; font-size: 11px; }
.so-wtrack .so-ph > span:not(.so-av) { font-size: 12px; }
.so-wtrack .so-ph small { font-size: 10.5px; }
.so-wtrack .so-media img, .so-wtrack .so-media video, .so-wtrack .so-media.n1 img, .so-wtrack .so-media.n1 video { aspect-ratio: 4 / 3; max-height: none; height: 100%; }
.so-wtrack .so-media { aspect-ratio: 4 / 3; overflow: hidden; }
.so-wtrack .so-media.n2, .so-wtrack .so-media.n3, .so-wtrack .so-media.n4 { grid-auto-rows: 1fr; }
.so-wtrack .so-media.n2 > *, .so-wtrack .so-media.n3 > *, .so-wtrack .so-media.n4 > * { aspect-ratio: auto; }
.so-wtrack .so-pb { padding: 8px 12px 0; font-size: 13px; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.so-wrow-text .so-pb { -webkit-line-clamp: 6; }
.so-wtrack .so-poll { padding: 8px 12px 0; gap: 5px; }
.so-wtrack .so-po { padding: 7px 10px; font-size: 12.5px; }
.so-wtrack .so-drop { margin: 8px 12px 0; padding: 10px 12px; gap: 4px; }
.so-wtrack .so-drop b { font-size: 14px; }
.so-wtrack .so-drop .so-btn { padding: 7px 12px; font-size: 12.5px; }
.so-wtrack .so-pa { padding: 4px 6px 6px; }
.so-wtrack .so-pa button { padding: 5px 7px; font-size: 12px; }
@container (max-width: 760px) { .so-wtrack { --wc: 2.3; } }
@container (max-width: 520px) { .so-wtrack { --wc: 1.35; } }
.so-wrow-nav[hidden] { display: none; }

/* v1.30.3 · Classic wall masonry (default) + tidier Follow & community block */
.so-cl-main { display: grid; gap: 18px; min-width: 0; }
.so-cl-main .so-reels { padding-bottom: 16px; border-bottom: 1px solid var(--so-line); }
.so-cl-main .so-reelrow { grid-auto-columns: 132px; }
.so-cl-main .so-wall .so-h { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.so-wall { container-type: inline-size; }
.so-feed.so-masonry { display: block; column-count: 3; column-gap: 14px; }
.so-feed.so-masonry > * { display: block; width: 100%; break-inside: avoid; -webkit-column-break-inside: avoid; margin: 0 0 14px; }
.so-feed.so-masonry > .so-post { display: grid; }
.so-feed.so-masonry .so-media.n1 img, .so-feed.so-masonry .so-media.n1 video { max-height: 420px; }
@container (max-width: 760px) { .so-feed.so-masonry { column-count: 2; } }
@container (max-width: 480px) { .so-feed.so-masonry { column-count: 1; } }
/* nothing posted yet: no tall empty column, the fan board and signup sit side by side under a short note */
.so-cl-empty { grid-template-columns: minmax(0, 1fr); }
.so-cl-empty .so-cl-main .so-empty { margin: 0; padding: 14px 16px; border: 1px dashed var(--so-line); border-radius: 14px; background: #fff; }
.so-cl-empty aside { position: static; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
@media (max-width: 760px) { .so-cl-empty aside { grid-template-columns: minmax(0, 1fr); } }
