/* batch5-social — composer Poll + @mentions, Moments tray, Connections, Supporter Leaderboard, Wallet row. */

/* ── Composer: Poll (home-social-005) ─────────────────────────────────────────── */
#postComposerDialog #composeModePoll.is-ready { opacity: 1; cursor: pointer; }
#postComposerDialog #composeModePoll.is-ready:disabled { opacity: .45; cursor: default; }
#postComposerDialog #composeModePoll[aria-pressed="true"] { background: var(--accent-soft); color: var(--accent-primary); }
.compose-poll { margin: 8px 0 4px; padding: 12px; border: 1px solid var(--border2, #8884); border-radius: 14px; background: var(--bg3, #8881); color: var(--text); }
.compose-poll[hidden] { display: none; }
.compose-poll-head { display: flex; align-items: center; gap: 8px; }
.compose-poll-head strong { flex: 1; font-size: 14px; font-weight: 700; }
.compose-poll-remove, .compose-poll-option-remove { width: 30px; height: 30px; flex: none; border: 0; border-radius: 50%; background: transparent; color: var(--text2, #888); font-size: 20px; line-height: 1; cursor: pointer; }
.compose-poll-remove:hover, .compose-poll-option-remove:hover { background: var(--bg2, #8882); color: var(--text); }
.compose-poll-hint, .compose-poll-note { margin: 2px 0 0; font-size: 12px; color: var(--text2, #888); }
.compose-poll-note { margin-top: 8px; }
.compose-poll-options { display: grid; gap: 8px; margin-top: 10px; }
.compose-poll-option { display: flex; align-items: center; gap: 6px; }
.compose-poll-option input { flex: 1; min-width: 0; height: 40px; padding: 0 12px; border: 1px solid var(--border2, #8885); border-radius: 10px; background: var(--bg2, #fff); color: var(--text); font: inherit; font-size: 14px; }
.compose-poll-option input:focus-visible { outline: 2px solid var(--accent-primary); outline-offset: 1px; }
.compose-poll-add-row { display: flex; align-items: center; gap: 10px; margin-top: 8px; }
.compose-poll-add { border: 0; background: transparent; padding: 6px 2px; color: var(--accent-primary); font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; }
.compose-poll-add[hidden] { display: none; }
.compose-poll-max { font-size: 12px; color: var(--text2, #888); }
/* The comment picker under the post text sits above the dialog's lower controls. */
#postComposerDialog .compose-text-wrap { position: relative; }
#postComposerDialog .compose-text-wrap .comment-mention-picker { position: absolute; left: 0; right: 0; top: 100%; z-index: 40; }

/* ── Moments tray (home-social-010 / 011) ─────────────────────────────────────── */
/* Watched go last with a faded ring (the app's MomentTrayTileV2: ring 0.9 → 0.35). */
.moment-card.is-watched .moment-card-avatar { border-color: rgba(255, 255, 255, .35); }
.moment-card.is-watched .moment-card-preview { filter: saturate(.85); }
/* Head tile: "Post Moment · Share your story" (PostMomentTileV2). */
.moment-post-tile .moment-post-art { position: absolute; inset: 0; display: grid; place-items: center; background: linear-gradient(160deg, #7975D4 0%, #5b4bc4 55%, #3b2f8f 100%); }
.moment-post-plus { display: grid; place-items: center; width: 40px; height: 40px; margin-bottom: 22px; border-radius: 50%; background: #fff; color: #5b4bc4; font-size: 26px; font-weight: 700; line-height: 1; box-shadow: 0 4px 14px rgba(0, 0, 0, .25); }
.moment-post-tile .moment-card-name { white-space: normal; text-align: center; }
.moment-post-tile .moment-card-name small { display: block; margin-top: 1px; font-size: .62rem; font-weight: 500; color: rgba(255, 255, 255, .85); }
.moment-post-another { position: absolute; right: 6px; top: 6px; z-index: 2; display: grid; place-items: center; width: 26px; height: 26px; padding: 0; border: 2px solid #fff; border-radius: 50%; background: #7975D4; color: #fff; font-size: 17px; font-weight: 700; line-height: 1; cursor: pointer; }
.moment-post-another:focus-visible, .moment-post-tile:focus-visible { outline: 3px solid var(--accent-primary, #7975D4); outline-offset: 2px; }

/* Post a Moment pop-ups — always centred, also at phone width. */
.mp-overlay { position: fixed; inset: 0; z-index: 11000; display: grid; place-items: center; padding: 16px; background: rgba(0, 0, 0, .6); }
.mp-card { --mp-bg: #1f2937; --mp-ink: #f3f4f6; --mp-muted: #c4c8d4; --mp-line: rgba(255, 255, 255, .14); --mp-chip: #2b3546;
  width: min(440px, 100%); max-height: calc(100vh - 32px); overflow: auto; padding: 18px; border-radius: 20px; background: var(--mp-bg); color: var(--mp-ink); box-shadow: 0 24px 70px rgba(0, 0, 0, .45); box-sizing: border-box; }
body.light .mp-card { --mp-bg: #ffffff; --mp-ink: #18202c; --mp-muted: #5b6475; --mp-line: rgba(17, 24, 39, .12); --mp-chip: #f1f2f6; }
.mp-card h2 { margin: 0 0 8px; font-size: 18px; font-weight: 800; color: var(--mp-ink); }
.mp-card p { margin: 0 0 12px; line-height: 1.5; color: var(--mp-muted); font-size: 14px; }
.mp-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.mp-head h2 { margin: 0; }
.mp-close { width: 34px; height: 34px; border: 0; border-radius: 50%; background: transparent; color: var(--mp-ink); font-size: 24px; line-height: 1; cursor: pointer; }
.mp-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 12px; }
.mp-btn { min-height: 40px; padding: 0 16px; border: 1px solid var(--mp-line); border-radius: 12px; background: var(--mp-chip); color: var(--mp-ink); font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; }
.mp-btn:disabled { opacity: .5; cursor: default; }
.mp-btn[hidden] { display: none; }
.mp-btn-primary { border-color: transparent; background: #5b4bc4; color: #fff; }
.mp-store-links { display: grid; gap: 8px; }
.mp-store-links a { display: block; padding: 10px 12px; border: 1px solid var(--mp-line); border-radius: 12px; color: var(--mp-ink); font-weight: 700; text-decoration: none; text-align: center; }
.mp-stage { position: relative; width: min(100%, 300px, calc((100vh - 340px) * 9 / 16)); min-width: 180px; aspect-ratio: 9 / 16; margin: 0 auto; overflow: hidden; border-radius: 16px; background: #0b0f17; touch-action: none; container-type: inline-size; }
.mp-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.mp-pick { position: absolute; inset: 0; display: grid; place-content: center; gap: 6px; padding: 16px; border: 2px dashed rgba(255, 255, 255, .35); border-radius: 16px; background: transparent; color: #fff; font: inherit; text-align: center; cursor: pointer; }
.mp-pick strong { font-size: 16px; }
.mp-pick span { font-size: 12px; color: rgba(255, 255, 255, .8); }
.mp-layer { position: absolute; transform: translate(-50%, -50%); max-width: 84%; width: max-content; padding: 0; font-weight: 700; font-size: 20px; font-size: 6.67cqw; line-height: 1.2; text-align: center; white-space: pre-wrap; overflow-wrap: anywhere; text-shadow: 0 1px 4px rgba(0, 0, 0, .6); cursor: grab; user-select: none; }
.mp-layer-emoji { font-size: 44px; font-size: 14.8cqw; text-shadow: none; }
.mp-layer:focus-visible { outline: 2px dashed #fff; }
.mp-tools { margin-top: 12px; display: grid; gap: 10px; }
.mp-tools[hidden] { display: none; }
.mp-text-row { display: flex; gap: 8px; }
.mp-text-row input { flex: 1; min-width: 0; height: 40px; padding: 0 12px; border: 1px solid var(--mp-line); border-radius: 12px; background: var(--mp-chip); color: var(--mp-ink); font: inherit; }
.mp-colors { display: flex; flex-wrap: wrap; gap: 8px; }
.mp-colors button { width: 26px; height: 26px; padding: 0; border: 2px solid var(--mp-line); border-radius: 50%; cursor: pointer; }
.mp-colors button[aria-checked="true"] { outline: 3px solid #7975D4; outline-offset: 2px; }
.mp-emoji { display: flex; flex-wrap: wrap; gap: 4px; }
.mp-emoji button { width: 36px; height: 36px; border: 0; border-radius: 10px; background: var(--mp-chip); font-size: 20px; cursor: pointer; }
.mp-hint { margin: 0 !important; font-size: 12px !important; }
.mp-status { margin: 10px 0 0 !important; color: var(--mp-ink) !important; font-weight: 600; }
.mp-status:empty { display: none; }

/* ── Connections (profile-settings-018 / 019) ─────────────────────────────────── */
.conn-dialog .conn-header { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.conn-dialog .conn-close { width: 34px; height: 34px; border: 0; border-radius: 50%; background: transparent; color: inherit; font-size: 24px; line-height: 1; cursor: pointer; }
.conn-dialog .conn-close:hover { background: rgba(var(--accent-rgb), .08); }
.conn-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-top: 10px; padding: 4px; border-radius: 14px; background: rgba(var(--accent-rgb), .08); }
.conn-tabs [role="tab"] { min-height: 38px; border: 0; border-radius: 10px; background: transparent; color: var(--conn-tab-ink, #d4cfe6); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; }
body.light .conn-tabs [role="tab"] { --conn-tab-ink: #4b5563; }
.conn-tabs [role="tab"] b { margin-left: 4px; font-weight: 700; font-size: 12px; }
.conn-tabs [role="tab"].is-active { background: var(--accent-strong); color: #fff; }
.conn-tabs [role="tab"]:focus-visible { outline: 2px solid var(--accent-strong); outline-offset: 2px; }
.conn-dialog .follow-list-search { margin-top: 10px; }
.conn-dialog .follow-list-name { display: inline-flex; align-items: center; max-width: 100%; }
.conn-dialog .conn-name-text { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.conn-mutual { color: #0f9d8a; font-weight: 600; }
.conn-mutual-ring { box-shadow: 0 0 0 2px #fff, 0 0 0 4px #14b8a6; }
.follow-list-btn.is-follow-back:not(.is-following) { background: #0f766e; }
.conn-dialog .conn-deleted { cursor: default; }
.conn-dialog .conn-deleted:hover { background: transparent; }
.conn-dialog .conn-avatar-deleted { cursor: default; background: #e5e7eb; color: #6b7280; }
.conn-dialog .conn-deleted-name { color: #6b7280; cursor: default; }
.conn-dialog .conn-empty { display: grid; justify-items: center; gap: 4px; padding: 28px 8px; text-align: center; color: var(--text2, #6b7280); }
.conn-dialog .conn-empty strong { color: inherit; font-size: 15px; }

/* ── Sidebar: Wallet tile + Supporter Leaderboard row (the app drawer's) ───────── */
#appSidebar .sidebar-meta { margin-left: auto; padding-left: 8px; flex-shrink: 0; font-size: 12px; font-weight: 600; opacity: .72; white-space: nowrap; }
#appSidebar .sidebar-meta:empty { display: none; }
/* The value sits under the name (the app's drawer rows carry it on the right; the web rail is narrower). */
#appSidebar #btnSupporterLeaderboard:has(.sidebar-meta:not(:empty)), #appSidebar #btnWallet:has(.sidebar-meta:not(:empty)) { display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-rows: auto auto; column-gap: 12px; row-gap: 0; align-content: center; }
#appSidebar #btnSupporterLeaderboard .sidebar-icon, #appSidebar #btnWallet .sidebar-icon { grid-row: 1 / span 2; }
#appSidebar #btnSupporterLeaderboard .sidebar-label, #appSidebar #btnWallet .sidebar-label { min-width: 0; text-align: left; }
#appSidebar #btnSupporterLeaderboard .sidebar-meta, #appSidebar #btnWallet .sidebar-meta { grid-column: 2; margin: 0; padding: 0; font-size: 12px; line-height: 15px; text-align: left; }
body #appSidebar #btnSupporterLeaderboard { --rail-icon: #d99a1e; }
body #appSidebar #btnWallet { --rail-icon: #7c3aed; }

/* ── Supporter Leaderboard (profile-settings-017) ─────────────────────────────── */
#supporterLeaderboardPage { --sl-bg: #15121f; --sl-card: #1f1a30; --sl-card2: #241d3d; --sl-ink: #f4f1fb; --sl-muted: #b9b0d3; --sl-line: #3a2f63; --sl-chip: #2a2147; --sl-accent: #8b5cf6; --sl-accent-ink: #c9a8ff;
  width: 100%; max-width: 760px; margin: 0 auto; padding: 0 0 48px; box-sizing: border-box; color: var(--sl-ink); }
body.light #supporterLeaderboardPage { --sl-bg: #f7f4fd; --sl-card: #ffffff; --sl-card2: #f8f3ff; --sl-ink: #1b1530; --sl-muted: #5d5676; --sl-line: #e4d2ff; --sl-chip: #f1eafe; --sl-accent: #7c3aed; --sl-accent-ink: #6d28d9; }
#supporterLeaderboardPage * { box-sizing: border-box; }
.sl-page { padding: 8px 4px 0; }
.sl-top { display: flex; align-items: center; gap: 12px; }
.sl-top h1 { flex: 1; min-width: 0; margin: 0; font-size: 24px; font-weight: 800; letter-spacing: -.3px; color: var(--sl-ink); }
.sl-back { display: grid; place-items: center; width: 40px; height: 40px; flex: none; border: 1px solid var(--sl-line); border-radius: 50%; background: var(--sl-card); color: var(--sl-ink); cursor: pointer; }
.sl-how-btn { display: inline-flex; align-items: center; gap: 6px; flex: none; padding: 8px 14px; border: 1px solid var(--sl-line); border-radius: 999px; background: var(--sl-card); color: var(--sl-accent-ink); font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; }
.sl-tagline { margin: 10px 2px 12px; font-size: 14px; color: var(--sl-muted); }
.sl-tagline b { color: var(--sl-accent-ink); }
.sl-banner { display: flex; align-items: center; gap: 12px; padding: 18px 20px; border-radius: 20px; background: linear-gradient(120deg, #efe6ff 0%, #f7e8ff 60%, #fde7f3 100%); color: #2a1f4a; overflow: hidden; }
.sl-banner > div { flex: 1; min-width: 0; }
.sl-eyebrow { margin: 0; font-size: 14px; font-weight: 600; color: #4b4366; }
.sl-headline { margin: 4px 0; font-size: 28px; line-height: 1.1; font-weight: 900; letter-spacing: -.5px; background: linear-gradient(90deg, #6d28d9, #c026d3); -webkit-background-clip: text; background-clip: text; color: transparent; }
.sl-banner-sub { margin: 0; font-size: 13px; font-weight: 600; color: #4b4366; }
.sl-trophy { font-size: 64px; line-height: 1; filter: drop-shadow(0 6px 10px rgba(124, 58, 237, .25)); }
.sl-periods { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 14px; padding: 5px; border-radius: 18px; background: var(--sl-card); border: 1px solid var(--sl-line); }
.sl-periods [role="tab"] { min-height: 44px; border: 0; border-radius: 13px; background: transparent; color: var(--sl-muted); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; }
.sl-periods [role="tab"].is-active { background: linear-gradient(90deg, #7c3aed, #c026d3); color: #fff; font-weight: 700; }
.sl-periods [role="tab"]:focus-visible, .sl-back:focus-visible, .sl-how-btn:focus-visible { outline: 3px solid var(--sl-accent); outline-offset: 2px; }
.sl-status { margin: 8px 2px; font-size: 12px; color: var(--sl-muted); }
.sl-status:empty { display: none; }
.sl-loading, .sl-error { display: grid; justify-items: center; gap: 8px; padding: 48px 0; color: var(--sl-muted); }
.sl-spin { width: 28px; height: 28px; border: 3px solid var(--sl-line); border-top-color: var(--sl-accent); border-radius: 50%; animation: sl-spin .8s linear infinite; }
@keyframes sl-spin { to { transform: rotate(360deg); } }
.sl-retry { padding: 8px 18px; border: 1px solid var(--sl-line); border-radius: 999px; background: var(--sl-card); color: var(--sl-accent-ink); font: inherit; font-weight: 800; cursor: pointer; }
.sl-avatar { position: relative; display: grid; place-items: center; width: 44px; height: 44px; flex: none; border-radius: 50%; overflow: hidden; background: #7a5cc4; color: #fff; font-weight: 800; }
.sl-avatar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.sl-avatar i { font-style: normal; }
.sl-xp { display: block; height: 7px; border-radius: 6px; background: rgba(255, 255, 255, .14); overflow: hidden; }
body.light #supporterLeaderboardPage .sl-rest .sl-xp, body.light #supporterLeaderboardPage .sl-you .sl-xp, body.light #supporterLeaderboardPage .sl-ach .sl-xp { background: #ece4fb; }
.sl-xp i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #a855f7, #7c3aed); }
.sl-mv { font-weight: 800; }
.sl-mv.is-up { color: #22c55e; } .sl-mv.is-down { color: #f43f5e; } .sl-mv.is-new { color: #a78bfa; } .sl-mv.is-same { color: #9ca3af; }
/* Goal */
.sl-goal { margin: 12px 0; padding: 14px 16px; border-radius: 16px; background: linear-gradient(120deg, #2d1f5c, #46237a); color: #fff; }
.sl-goal-title { margin: 0 0 8px; font-size: 13px; font-weight: 600; color: #e6dcff; }
.sl-goal-count { margin: 6px 0 0; font-size: 12px; font-weight: 700; color: #e6dcff; }
/* Podium */
.sl-podium { margin: 12px 0; padding: 18px 12px 0; border-radius: 26px; background: radial-gradient(120% 70% at 50% 20%, #3b2a75 0%, #24174a 60%, #1c1238 100%); color: #fff; overflow: hidden; }
.sl-podium-title { margin: 0 0 14px; text-align: center; font-size: 13px; font-weight: 800; letter-spacing: .28em; color: #d9ccff; }
.sl-podium-row { display: grid; grid-template-columns: 1fr 1.15fr 1fr; align-items: end; gap: 8px; }
.sl-pod { position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; min-width: 0; text-align: center; }
.sl-crown { font-size: 30px; line-height: 1; margin-bottom: -6px; }
.sl-pod-person { position: relative; padding: 0; border: 0; background: transparent; cursor: pointer; }
.sl-avatar-pod { width: 74px; height: 74px; font-size: 26px; border: 3px solid #b9c1d6; }
.sl-pod-1 .sl-avatar-pod { width: 94px; height: 94px; border-color: #F6C544; }
.sl-pod-3 .sl-avatar-pod { border-color: #eeb27f; }
.sl-avatar-open { width: 74px; height: 74px; background: rgba(255, 255, 255, .08); border: 2px dashed rgba(255, 255, 255, .3); }
.sl-place { position: absolute; left: 50%; bottom: -8px; transform: translateX(-50%); display: grid; place-items: center; width: 26px; height: 26px; border: 2px solid #fff; border-radius: 50%; background: #8994ad; color: #fff; font-size: 13px; }
.sl-pod-1 .sl-place { background: #E0A92E; } .sl-pod-3 .sl-place { background: #cf8a53; }
.sl-pod-name { margin: 8px 0 0; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 16px; font-weight: 800; color: #fff; }
.sl-tier { display: inline-flex; align-items: center; gap: 4px; padding: 4px 10px; border-radius: 999px; font-size: 11px; font-weight: 800; letter-spacing: .03em; white-space: nowrap; }
.sl-tier-1 { background: linear-gradient(90deg, #ffe08a, #F6C544); color: #4a3402; }
.sl-tier-2 { background: linear-gradient(90deg, #d6dbea, #b9c1d6); color: #1b2233; }
.sl-tier-3 { background: linear-gradient(90deg, #f6c9a2, #eeb27f); color: #3d2410; }
.sl-pod-meta { margin: 0; font-size: 13px; font-weight: 700; color: #ffd6a0; }
.sl-points { display: inline-flex; align-items: center; gap: 6px; padding: 6px 14px; border: 1px solid rgba(255, 255, 255, .22); border-radius: 14px; background: rgba(255, 255, 255, .08); color: #fff; font-weight: 900; font-size: 16px; }
.sl-pod-1 .sl-points { font-size: 20px; }
.sl-pod .sl-xp { width: 80%; }
.sl-pod-1 .sl-xp i { background: linear-gradient(90deg, #F6C544, #E0A92E); }
.sl-lv { margin: 0; font-size: 11px; font-weight: 700; color: #c9bdec; }
.sl-open { margin: 8px 0 0; color: #c9a8ff; font-size: 12px; font-weight: 600; }
.sl-step { width: 100%; margin-top: 10px; padding-top: 14px; border-radius: 16px 16px 0 0; background: linear-gradient(#a3abc1, #7b839a); color: #fff; font-size: 34px; font-weight: 900; height: 78px; }
.sl-pod-1 .sl-step { height: 112px; background: linear-gradient(#f5c84b, #d99a1e); color: #4a3402; }
.sl-pod-3 .sl-step { height: 60px; background: linear-gradient(#eeb27f, #c47a44); }
/* Your rank */
.sl-you { display: flex; align-items: center; gap: 14px; margin: 12px 0; padding: 12px 14px; border: 1.5px solid var(--sl-line); border-radius: 14px; background: linear-gradient(135deg, var(--sl-card2), var(--sl-card)); }
.sl-you-id { display: flex; align-items: center; gap: 10px; flex: none; }
.sl-avatar-you { width: 50px; height: 50px; border: 3px solid #b88cf5; }
.sl-you-label { margin: 0; font-size: 12px; font-weight: 700; color: var(--sl-muted); }
.sl-you-rank { margin: 0; font-size: 26px; font-weight: 900; color: var(--sl-accent-ink); }
.sl-you-rank .sl-mv { font-size: 13px; }
.sl-you-gap { flex: 1; min-width: 0; }
.sl-overtake, .sl-motivate { margin: 0 0 6px; font-size: 13px; color: var(--sl-ink); }
.sl-overtake b { color: #ef45c4; }
.sl-motivate { margin: 6px 0 0; font-size: 12px; color: var(--sl-muted); }
.sl-xp-you i { background: linear-gradient(90deg, #ef45c4, #8b5cf6); }
.sl-you-empty { display: block; color: var(--sl-muted); font-size: 13px; }
.sl-you-empty p { margin: 0 0 4px; } .sl-you-empty b { color: var(--sl-ink); }
/* Achievements */
.sl-ach h2, .sl-rest h2 { margin: 18px 2px 10px; font-size: 17px; font-weight: 800; color: var(--sl-ink); }
.sl-ach-rail { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(200px, 1fr); gap: 10px; overflow-x: auto; padding-bottom: 4px; }
.sl-ach-card { padding: 12px; border: 1px solid var(--sl-line); border-radius: 14px; background: var(--sl-card); }
.sl-ach-card.is-earned { border-color: #d9a23f; }
.sl-ach-name { margin: 0; font-weight: 800; color: var(--sl-ink); }
.sl-ach-desc { margin: 2px 0 8px; font-size: 12px; color: var(--sl-muted); }
.sl-ach-prog { margin: 6px 0 0; font-size: 12px; color: var(--sl-muted); }
/* Rows */
.sl-rows { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.sl-row { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--sl-line); border-radius: 14px; background: var(--sl-card); }
.sl-row-rank { width: 26px; flex: none; text-align: center; font-weight: 900; color: var(--sl-muted); }
.sl-row-person { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 0; padding: 0; border: 0; background: transparent; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.sl-avatar-row { width: 44px; height: 44px; border: 2.5px solid var(--sl-ring, #cf8a53); }
.sl-row-text { display: grid; gap: 2px; min-width: 0; flex: 1; }
.sl-row-text b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--sl-ink); }
.sl-row-text small { font-size: 12px; color: var(--sl-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sl-xp-row { width: min(160px, 100%); height: 5px; }
.sl-row-end { display: grid; justify-items: end; gap: 3px; flex: none; }
.sl-points-row { padding: 5px 11px; border: 0; border-radius: 13px; background: var(--sl-chip); color: var(--sl-accent-ink); font-size: 13px; }
.sl-row-end .sl-lv { font-size: 10px; color: var(--sl-muted); }
.sl-empty { color: var(--sl-muted); }
/* How it works — centred pop-up */
.sl-how-overlay { position: fixed; inset: 0; z-index: 11000; display: grid; place-items: center; padding: 16px; background: rgba(0, 0, 0, .6); }
.sl-how { width: min(420px, 100%); max-height: calc(100vh - 32px); overflow: auto; padding: 20px; border-radius: 22px; background: #ffffff; color: #1b1530; box-shadow: 0 24px 70px rgba(0, 0, 0, .4); }
body:not(.light) .sl-how { background: #1f1a30; color: #f4f1fb; }
.sl-how header { display: flex; align-items: center; justify-content: space-between; }
.sl-how h2 { margin: 0; font-size: 20px; font-weight: 900; }
.sl-how h3 { margin: 16px 0 8px; font-size: 14px; font-weight: 800; }
.sl-how-close { width: 34px; height: 34px; border: 0; border-radius: 50%; background: transparent; color: inherit; font-size: 24px; cursor: pointer; }
.sl-how ol { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 12px; }
.sl-how li { display: flex; gap: 12px; }
.sl-how-n { display: grid; place-items: center; width: 30px; height: 30px; flex: none; border-radius: 50%; background: linear-gradient(135deg, #7c3aed, #c026d3); color: #fff; font-weight: 900; }
.sl-how li p { margin: 2px 0 0; font-size: 13px; line-height: 1.45; opacity: .8; }
.sl-perks { display: flex; flex-wrap: wrap; gap: 8px; }
.sl-perks span { padding: 6px 12px; border-radius: 999px; background: rgba(124, 58, 237, .12); font-size: 13px; font-weight: 700; }
.sl-how-actions { display: flex; justify-content: flex-end; margin-top: 16px; }
.sl-how-ok { padding: 10px 22px; border: 0; border-radius: 12px; background: #7c3aed; color: #fff; font: inherit; font-weight: 800; cursor: pointer; }
@media (max-width: 640px) {
  .sl-top h1 { font-size: 19px; }
  .sl-how-btn { padding: 7px 10px; font-size: 12px; }
  .sl-headline { font-size: 22px; } .sl-trophy { font-size: 46px; } .sl-banner { padding: 14px; }
  .sl-periods [role="tab"] { font-size: 12.5px; }
  .sl-avatar-pod { width: 56px; height: 56px; font-size: 20px; } .sl-pod-1 .sl-avatar-pod { width: 72px; height: 72px; }
  .sl-pod-name { font-size: 13px; } .sl-tier { padding: 3px 7px; font-size: 9.5px; } .sl-points { padding: 5px 9px; font-size: 13px; } .sl-pod-1 .sl-points { font-size: 15px; }
  .sl-step { font-size: 26px; height: 60px; } .sl-pod-1 .sl-step { height: 84px; } .sl-pod-3 .sl-step { height: 46px; }
  .sl-you { flex-direction: column; align-items: stretch; }
  .sl-xp-row { display: none; }
}
/* In-composer one-time tour (the composer is a top-layer <dialog>). */
.inline-tour { margin: 0 0 10px; padding: 12px; border-radius: 12px; background: var(--accent-strong, #5b4bc4); color: #fff; animation: inline-tour-in .25s ease-out; }
.inline-tour strong { display: block; font-size: 14px; }
.inline-tour p { margin: 4px 0 8px; font-size: 13px; line-height: 1.45; color: #fff; }
.inline-tour-actions { display: flex; align-items: center; gap: 8px; }
.inline-tour-progress { flex: 1; font-size: 12px; opacity: .85; }
.inline-tour-actions button { padding: 6px 12px; border: 1px solid rgba(255, 255, 255, .5); border-radius: 10px; background: transparent; color: #fff; font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; }
.inline-tour-actions button:last-child { background: #fff; color: #3b2f8f; border-color: #fff; }
@keyframes inline-tour-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .inline-tour { animation: none; } }
/* With a poll open the question box shrinks (the app's composerBounds contentBelow), so the question stays in view. */
#postComposerDialog:has(.compose-poll:not([hidden])) #composeText { min-height: 72px; }
@media (max-width: 768px) {
  .moment-post-plus { width: 28px; height: 28px; margin-bottom: 34px; font-size: 19px; }
  .moment-post-tile .moment-card-name { font-size: 10px; }
  .moment-post-tile .moment-card-name small { font-size: 8.5px; }
}
.post-mention-picker small { opacity: .7; font-size: .85em; }
