/* social module styles — community: feed, posts, profiles, reviews. Uses the app.css design tokens. */
.social-i { width: 22px; height: 22px; flex: none; }
.social-page { padding-bottom: 12px; }
.social-muted { color: var(--muted); font-size: 14px; }
.social-help { color: var(--muted); font-size: 12.5px; font-weight: 600; }
.social-center { justify-content: center; }
.social-back { margin-bottom: 6px; }
.social-back .social-i { width: 16px; height: 16px; }
.social-pill { display: inline-flex; padding: 1px 8px; border-radius: var(--r-pill); background: var(--surface-2); color: var(--ink-2); font-size: 12px; font-weight: 750; }
.social-empty .tg-icon-bubble .social-i { width: 24px; height: 24px; }
.social-empty .actions { margin-top: 6px; }

/* Avatars */
.social-avatar { --avatar: var(--sea); position: relative; display: inline-grid; place-items: center; flex: none; width: 34px; height: 34px; border-radius: 50%; overflow: hidden; background: var(--avatar); color: #fff; font-weight: 800; font-size: 13px; letter-spacing: .02em; }
.social-avatar img { width: 100%; height: 100%; object-fit: cover; }
.social-avatar.is-xs { width: 22px; height: 22px; font-size: 9px; }
.social-avatar.is-xl { width: 86px; height: 86px; font-size: 30px; box-shadow: 0 0 0 3px var(--bg), 0 0 0 5px color-mix(in srgb, var(--accent) 55%, var(--gold)); }
.social-avatar.is-loading { opacity: .5; }
.social-avatar.social-system { background: var(--surface-2); color: var(--accent-deep); font-size: 18px; }
.social-avatar.social-system .social-i { width: 18px; height: 18px; }

/* Header of the community area */
.social-top { position: sticky; top: calc(var(--header-h) + var(--safe-top) - 1px); z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 0 calc(-1 * var(--gutter)); padding: 10px var(--gutter) 8px; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.social-title { font: 650 30px/1 var(--display); letter-spacing: -.02em; }
.social-top-actions { display: flex; align-items: center; gap: 2px; }
.social-top-btn { position: relative; width: 42px; height: 42px; color: var(--ink); }
.social-top-btn .social-i { width: 24px; height: 24px; }
.social-badge { position: absolute; top: 3px; right: 2px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--accent); color: #fff; font-size: 10.5px; font-weight: 800; display: grid; place-items: center; border: 2px solid var(--bg); }
.social-me-link { margin-left: 4px; border-radius: 50%; }
.social-me-link .social-avatar { width: 30px; height: 30px; box-shadow: 0 0 0 2px var(--bg), 0 0 0 3.5px var(--ink); }

.social-tabs, .social-profile-tabs { display: grid; grid-template-columns: 1fr 1fr; margin: 4px calc(-1 * var(--gutter)) 12px; border-bottom: 1px solid var(--line); }
.social-tabs a, .social-profile-tabs a { display: flex; align-items: center; justify-content: center; gap: 6px; padding: 12px 0; text-decoration: none; color: var(--muted); font-weight: 750; font-size: 14.5px; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.social-tabs a.is-active, .social-profile-tabs a.is-active { color: var(--ink); border-bottom-color: var(--ink); }
.social-profile-tabs .social-i { width: 19px; height: 19px; }
.social-chips { margin-bottom: 12px; }
.social-chips .chip { text-decoration: none; }

/* Search */
.social-search { display: flex; align-items: center; gap: 8px; height: 44px; padding: 0 14px; margin-bottom: 10px; border-radius: var(--r-md); background: var(--surface-2); color: var(--muted); }
.social-search input { border: 0 !important; background: transparent !important; box-shadow: none !important; min-height: 0; height: 40px; padding: 0; }
.social-search .social-i { width: 18px; height: 18px; }
.social-search-results { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: 4px; margin: -4px 0 12px; box-shadow: var(--shadow-2); }

/* People rows */
.social-person { display: flex; align-items: center; gap: 12px; padding: 8px; border-radius: var(--r-sm); text-decoration: none; color: inherit; }
a.social-person:hover { background: var(--surface-2); }
.social-person > div:not(.social-person-actions) { display: grid; min-width: 0; flex: 1; }
.social-person strong, .social-person .social-handle { font-weight: 750; font-size: 14.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.social-person small { color: var(--muted); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.social-person .social-avatar { width: 44px; height: 44px; font-size: 16px; }
.social-person-actions { display: flex; gap: 6px; }
.social-people { display: grid; gap: 2px; margin-top: 8px; }

/* Post cards */
.social-feed { display: grid; gap: 18px; }
.social-post { background: var(--surface); margin: 0 calc(-1 * var(--gutter)); padding-bottom: 14px; border-bottom: 1px solid var(--line); }
@media (min-width: 560px) { .social-post { margin: 0; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-1); } }
.social-post-head { display: flex; align-items: center; gap: 10px; padding: 10px 6px 10px 14px; }
.social-post-who { display: grid; min-width: 0; flex: 1; line-height: 1.25; }
.social-handle { font-weight: 800; font-size: 14px; color: var(--ink); text-decoration: none; }
.social-handle:hover { text-decoration: underline; }
.social-handle.is-gone { color: var(--muted); font-weight: 700; }
.social-place { display: inline-flex; align-items: center; gap: 3px; font-size: 12.5px; font-weight: 650; color: var(--ink-2); text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
.social-place .social-i { width: 13px; height: 13px; color: var(--accent); }
.social-menu-btn { color: var(--ink-2); }
.social-hidden-note { margin: 0 14px 10px; padding: 8px 12px; border-radius: var(--r-sm); background: var(--danger-soft); color: var(--danger); font-size: 13px; font-weight: 700; }

.social-media { position: relative; background: var(--surface-3); user-select: none; -webkit-user-select: none; }
.social-carousel { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; aspect-ratio: 1 / 1; }
.social-carousel::-webkit-scrollbar { display: none; }
.social-carousel img { flex: 0 0 100%; width: 100%; height: 100%; object-fit: cover; scroll-snap-align: center; scroll-snap-stop: always; }
.social-counter { position: absolute; top: 12px; right: 12px; padding: 3px 9px; border-radius: var(--r-pill); background: rgba(10, 20, 24, .62); color: #fff; font-size: 12px; font-weight: 750; pointer-events: none; }
.social-dots { position: absolute; left: 0; right: 0; bottom: 10px; display: flex; justify-content: center; gap: 5px; pointer-events: none; }
.social-dots i { width: 6px; height: 6px; border-radius: 50%; background: rgba(255, 255, 255, .55); box-shadow: 0 0 3px rgba(0, 0, 0, .3); transition: .2s; }
.social-dots i.is-on { background: #fff; transform: scale(1.2); }
.social-burst { position: absolute; left: 50%; top: 50%; color: #fff; transform: translate(-50%, -50%) scale(0); opacity: 0; pointer-events: none; filter: drop-shadow(0 4px 18px rgba(0, 0, 0, .35)); }
.social-burst .social-i { width: 96px; height: 96px; fill: #fff; stroke: none; }
.social-burst.is-on { animation: social-burst .9s var(--ease); }
@keyframes social-burst { 0% { transform: translate(-50%, -50%) scale(0); opacity: 0; } 15% { transform: translate(-50%, -50%) scale(1.15); opacity: .95; } 30% { transform: translate(-50%, -50%) scale(.95); } 70% { opacity: .95; transform: translate(-50%, -50%) scale(1); } 100% { transform: translate(-50%, -60%) scale(.9); opacity: 0; } }

.social-actions { display: flex; align-items: center; gap: 4px; padding: 6px 8px 0; }
.social-act { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; color: var(--ink); text-decoration: none; transition: transform .15s var(--ease); }
.social-act .social-i { width: 25px; height: 25px; }
.social-act:active { transform: scale(.85); }
.social-like.is-on { color: #e0344b; }
.social-like.is-on .social-i { fill: currentColor; animation: social-pop .35s var(--ease); }
@keyframes social-pop { 50% { transform: scale(1.25); } }
.social-likes { margin: 0; padding: 0 14px; font-weight: 800; font-size: 14px; }
.social-caption { margin: 4px 0 0; padding: 0 14px; font-size: 14.5px; line-height: 1.45; white-space: pre-line; overflow-wrap: anywhere; }
.social-caption .social-handle { margin-right: 4px; }
.social-caption.is-clamped { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.social-more-text { padding: 0 14px; color: var(--muted); font-weight: 700; font-size: 14px; }
.social-tag, .social-mention { color: var(--sea); font-weight: 700; text-decoration: none; }
@media (prefers-color-scheme: dark) { .social-tag, .social-mention { color: #7cc6cc; } }
.social-comments-link { display: block; padding: 4px 14px 0; color: var(--muted); font-size: 14px; text-decoration: none; font-weight: 600; }
.social-time { display: block; padding: 6px 14px 0; color: var(--muted); font-size: 11.5px; font-weight: 700; letter-spacing: .03em; text-transform: uppercase; }

/* Grids (profile, explore, hashtags, places) */
.social-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; margin: 0 calc(-1 * var(--gutter)); }
@media (min-width: 560px) { .social-grid { margin: 0; gap: 4px; border-radius: var(--r-md); overflow: hidden; } }
.social-thumb { position: relative; display: block; aspect-ratio: 1 / 1; background: var(--surface-3); overflow: hidden; }
.social-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s var(--ease), opacity .2s; }
.social-thumb:hover img { transform: scale(1.03); opacity: .92; }
.social-thumb-badge { position: absolute; top: 6px; right: 6px; color: #fff; filter: drop-shadow(0 1px 3px rgba(0, 0, 0, .5)); }
.social-thumb-badge .social-i { width: 18px; height: 18px; }
.social-thumb-hidden { position: absolute; left: 6px; bottom: 6px; padding: 2px 7px; border-radius: var(--r-pill); background: var(--danger); color: #fff; font-size: 11px; font-weight: 800; }
.social-sentinel { display: flex; justify-content: center; padding: 18px 0 6px; }

/* Post detail and comments */
.social-detail .social-post { border-bottom: 0; }
.social-comments { margin-top: 6px; }
.social-comment { display: flex; align-items: flex-start; gap: 10px; padding: 10px 0; }
.social-comment .social-avatar { width: 32px; height: 32px; font-size: 12px; }
.social-comment-body { flex: 1; min-width: 0; }
.social-comment-body p { margin: 0; font-size: 14.5px; line-height: 1.42; overflow-wrap: anywhere; }
.social-comment-body small { color: var(--muted); font-size: 12px; font-weight: 650; }
.social-comment-act { width: 32px; height: 32px; color: var(--muted); }
.social-comment-act .social-i { width: 17px; height: 17px; }
.social-comment-form { position: sticky; bottom: calc(var(--nav-h) + var(--safe-bottom) + 8px); display: flex; align-items: center; gap: 10px; margin-top: 12px; padding: 8px 8px 8px 10px; border-radius: var(--r-pill); background: var(--surface); border: 1px solid var(--line-strong); box-shadow: var(--shadow-2); }
.social-comment-form .social-avatar { width: 30px; height: 30px; font-size: 11px; }
.social-comment-form input { flex: 1; min-width: 0; border: 0 !important; box-shadow: none !important; background: transparent !important; min-height: 38px; padding: 0 4px; }
.social-comment-form .text-button { padding: 6px 10px; }

/* Profile */
.social-profile { padding: 10px 0 4px; }
.social-profile-top { display: flex; align-items: center; gap: 22px; }
.social-stats { flex: 1; display: grid; grid-template-columns: repeat(3, 1fr); text-align: center; }
.social-stat { display: grid; gap: 1px; padding: 6px 2px; border-radius: var(--r-sm); }
.social-stat:not(:disabled):hover { background: var(--surface-2); }
.social-stat:disabled { opacity: 1; cursor: default; }
.social-stat b { font-size: 19px; font-weight: 800; }
.social-stat span { font-size: 13px; color: var(--ink-2); font-weight: 650; }
.social-profile-id { margin-top: 14px; }
.social-profile-id h1 { display: flex; align-items: center; gap: 6px; font-size: 17px; font-weight: 800; letter-spacing: -.01em; }
.social-lock .social-i { width: 16px; height: 16px; color: var(--muted); }
.social-profile-id .social-muted { margin: 2px 0 0; font-weight: 650; }
.social-bio { margin: 8px 0 0; white-space: pre-line; overflow-wrap: anywhere; font-size: 14.5px; }
.social-profile-actions { display: flex; gap: 8px; margin-top: 14px; }
.social-profile-actions .button { flex: 1; min-height: 38px; }
.social-profile-actions .social-menu-btn { flex: none; background: var(--surface); box-shadow: inset 0 0 0 1.5px var(--line-strong); }
.social-requests-link { display: flex; align-items: center; gap: 8px; margin-top: 12px; padding: 10px 12px; border-radius: var(--r-sm); background: var(--accent-soft); color: var(--accent-deep); font-weight: 750; font-size: 14px; text-decoration: none; }
.social-requests-link .social-i { width: 18px; height: 18px; }

/* Hero for hashtags and places */
.social-hero { display: flex; align-items: center; gap: 16px; padding: 10px 0 14px; }
.social-hero h1 { font: 650 26px/1.1 var(--display); letter-spacing: -.015em; margin: 2px 0 4px; overflow-wrap: anywhere; }
.social-hero p { margin: 0; }
.social-hero-mark { flex: none; width: 72px; height: 72px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(135deg, var(--accent-soft), var(--sea-soft)); color: var(--accent-deep); font: 700 34px/1 var(--display); }
.social-hero-mark .social-i { width: 32px; height: 32px; }
.social-hero-rating { display: inline-flex; align-items: center; gap: 6px; color: var(--ink-2); font-size: 13.5px; font-weight: 700; text-decoration: none; }
.social-hero-actions { margin: 0 0 16px; }

/* Stars */
.social-stars { position: relative; display: inline-block; font-size: 15px; line-height: 1; letter-spacing: 1px; color: color-mix(in srgb, var(--ink) 16%, transparent); vertical-align: -1px; font-family: system-ui, sans-serif; }
.social-stars::before { content: "★★★★★"; position: absolute; inset: 0 auto 0 0; width: calc(var(--v) / 5 * 100%); overflow: hidden; color: #f2a93b; white-space: nowrap; }
.social-stars > span { visibility: visible; }

/* Reviews */
.social-reviews-head { padding: 10px 0 12px; }
.social-reviews-head h1 { font: 650 clamp(26px, 7vw, 34px)/1.08 var(--display); letter-spacing: -.02em; margin-top: 6px; }
.social-summary-card { margin-bottom: 16px; }
.social-summary { display: flex; gap: 20px; align-items: center; margin-bottom: 14px; }
.social-summary-score { display: grid; justify-items: center; gap: 4px; min-width: 96px; }
.social-summary-score strong { font: 650 44px/1 var(--display); }
.social-summary-score small { color: var(--muted); font-weight: 650; font-size: 12.5px; text-align: center; }
.social-bars { flex: 1; display: grid; gap: 5px; }
.social-bar { display: grid; grid-template-columns: 12px 1fr 28px; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 750; color: var(--ink-2); }
.social-bar i { height: 8px; border-radius: 4px; background: var(--surface-2); overflow: hidden; }
.social-bar b { display: block; height: 100%; border-radius: 4px; background: #f2a93b; }
.social-bar small { color: var(--muted); text-align: right; }
.social-review-list { display: grid; gap: 12px; }
.social-review { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 14px 16px; box-shadow: var(--shadow-1); }
.social-review-head { display: flex; align-items: center; gap: 10px; }
.social-review-head div { display: grid; line-height: 1.3; }
.social-review-head small { color: var(--muted); font-size: 12.5px; font-weight: 650; }
.social-review-target { display: inline-flex; align-items: center; gap: 4px; margin-top: 10px; font-weight: 750; font-size: 14px; color: var(--sea); text-decoration: none; }
.social-review-target .social-i { width: 15px; height: 15px; }
.social-review-rating { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 10px; }
.social-review-rating strong { font-size: 15px; }
.social-review-text { margin: 6px 0 0; white-space: pre-line; overflow-wrap: anywhere; font-size: 14.5px; color: var(--ink-2); }
.social-review-photos { display: flex; gap: 6px; margin-top: 10px; overflow-x: auto; scrollbar-width: none; }
.social-review-photos img { width: 84px; height: 84px; border-radius: var(--r-sm); object-fit: cover; }
.social-reply { margin-top: 12px; padding: 10px 12px; border-left: 3px solid var(--sea); border-radius: 0 var(--r-sm) var(--r-sm) 0; background: var(--sea-soft); font-size: 14px; }
.social-reply strong { color: var(--sea); font-size: 13px; }
.social-reply p { margin: 3px 0; white-space: pre-line; }
.social-reply small { color: var(--muted); font-size: 12px; }
.social-reply-actions { display: flex; gap: 14px; }
.social-review-foot { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.social-review-foot .social-i { width: 15px; height: 15px; }
.social-flag { margin-left: auto; }
.social-reply-quote { padding: 10px 12px; border-radius: var(--r-sm); background: var(--surface-2); margin-bottom: 6px; }
.social-reply-quote p { margin: 6px 0 0; color: var(--ink-2); font-size: 14px; }

/* Star picker */
.social-star-input legend { font-size: 13px; color: var(--ink-2); }
.social-star-row { display: flex; flex-direction: row-reverse; justify-content: flex-end; gap: 4px; }
.social-star-row input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.social-star-row label { cursor: pointer; color: color-mix(in srgb, var(--ink) 20%, transparent); padding: 2px; border-radius: 8px; transition: transform .12s var(--ease), color .12s; }
.social-star-row label .social-i { width: 38px; height: 38px; fill: currentColor; stroke: none; }
.social-star-row label:hover, .social-star-row label:hover ~ label, .social-star-row input:checked ~ label { color: #f2a93b; }
.social-star-row label:active { transform: scale(.88); }
.social-star-row input:focus-visible + label { outline: 3px solid color-mix(in srgb, var(--accent) 70%, transparent); }
.social-review-for { display: flex; align-items: center; gap: 4px; font-weight: 700; margin: 0 0 6px; }
.social-review-for .social-i { width: 16px; height: 16px; color: var(--accent); }
.social-review-picks { display: flex; flex-wrap: wrap; gap: 8px; }
.social-pick, .social-pick-add { position: relative; width: 72px; height: 72px; border-radius: var(--r-sm); overflow: hidden; }
.social-pick img { width: 100%; height: 100%; object-fit: cover; }
.social-pick button { position: absolute; top: 4px; right: 4px; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: rgba(10, 20, 24, .7); color: #fff; }
.social-pick button .social-i { width: 14px; height: 14px; }
.social-pick-add { display: grid; place-items: center; border: 1.5px dashed var(--line-strong); color: var(--muted); }

/* Forms */
.social-form .field > span:first-child { font-size: 13px; }
.social-prefix-input { display: flex; align-items: center; border: 1.5px solid var(--line-strong); border-radius: var(--r-sm); background: var(--bg-elev); padding-left: 14px; }
.social-prefix-input span { color: var(--muted); font-weight: 750; }
.social-prefix-input input { border: 0 !important; box-shadow: none !important; background: transparent !important; padding-left: 2px !important; }
.social-prefix-input:focus-within { border-color: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 16%, transparent); }
.social-avatar-edit { display: flex; align-items: center; gap: 18px; margin-bottom: 8px; }
.social-avatar-edit > div { display: grid; justify-items: start; gap: 4px; }
.social-switch { align-items: flex-start; padding: 12px; border-radius: var(--r-sm); background: var(--surface-2); }
.social-switch span { display: grid; gap: 2px; }
.social-switch small { color: var(--muted); font-weight: 600; font-size: 13px; }
.social-block { margin-top: 20px; }
.social-danger { margin-top: 22px; border-color: color-mix(in srgb, var(--danger) 30%, transparent); }
.social-danger h2 { font-size: 16px; margin-bottom: 6px; }
.social-danger p { color: var(--ink-2); font-size: 14px; }
.social-danger .social-i { width: 18px; height: 18px; }
.social-reasons { display: grid; gap: 0; margin: 8px 0; }
.social-reasons .checkline { margin: 0; padding: 10px 4px; border-bottom: 1px solid var(--line); }

/* Composer */
.social-drop { display: grid; justify-items: center; gap: 6px; text-align: center; padding: 30px 18px; border-radius: var(--r-lg); border: 1.5px dashed var(--line-strong); background: var(--surface); }
.social-drop small { max-width: 34ch; color: var(--muted); font-weight: 600; }
.social-drop .tg-icon-bubble .social-i { width: 24px; height: 24px; }
.social-drop .actions { margin-top: 8px; }
.social-drop .button .social-i, .button .social-i { width: 18px; height: 18px; }
.social-previews { display: flex; gap: 10px; overflow-x: auto; list-style: none; padding: 4px 2px 10px; margin: 0; scroll-snap-type: x proximity; }
.social-previews li { position: relative; flex: 0 0 108px; height: 108px; border-radius: var(--r-md); overflow: hidden; background: var(--surface-3); scroll-snap-align: start; }
.social-previews img { width: 100%; height: 100%; object-fit: cover; }
.social-preview-n { position: absolute; top: 6px; left: 6px; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: rgba(10, 20, 24, .7); color: #fff; font-size: 12px; font-weight: 800; }
.social-preview-tools { position: absolute; left: 0; right: 0; bottom: 0; display: flex; justify-content: space-between; padding: 5px; background: linear-gradient(transparent, rgba(0, 0, 0, .55)); }
.social-preview-tools button { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .92); color: #13262c; }
.social-preview-tools button:disabled { opacity: .35; }
.social-preview-tools .social-i { width: 16px; height: 16px; }
.social-preview-add button { width: 100%; height: 100%; display: grid; place-content: center; justify-items: center; gap: 4px; border: 1.5px dashed var(--line-strong); border-radius: var(--r-md); color: var(--muted); font-weight: 750; }
.social-preview-add { background: transparent !important; }
.social-place-search { display: flex; align-items: center; gap: 8px; border: 1.5px solid var(--line-strong); border-radius: var(--r-sm); background: var(--bg-elev); padding-left: 12px; color: var(--muted); }
.social-place-search input { border: 0 !important; box-shadow: none !important; background: transparent !important; padding-left: 0; }
.social-place-search .social-i { width: 18px; height: 18px; }
.social-place-results { display: grid; gap: 2px; padding: 4px; border-radius: var(--r-sm); border: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow-2); max-height: 320px; overflow: auto; }
.social-place-results button { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: var(--r-xs); text-align: left; }
.social-place-results button:hover, .social-place-results button:focus-visible { background: var(--surface-2); }
.social-place-results .social-i { width: 18px; height: 18px; color: var(--accent); }
.social-place-results span { display: grid; min-width: 0; }
.social-place-results strong { font-size: 14.5px; }
.social-place-results small { color: var(--muted); font-weight: 600; }
.social-place-results p { padding: 8px 10px; margin: 0; }
.social-place-chip { display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 6px 0 12px; border-radius: var(--r-pill); background: var(--accent-soft); color: var(--accent-deep); font-weight: 750; font-size: 14px; max-width: 100%; }
.social-place-chip > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.social-place-chip .social-i { width: 16px; height: 16px; }
.social-place-chip button { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: color-mix(in srgb, var(--accent) 18%, transparent); color: inherit; }
.social-progress { display: grid; gap: 6px; margin: 12px 0; }
.social-progress > div { height: 6px; border-radius: 3px; background: var(--surface-2); overflow: hidden; }
.social-progress b { display: block; width: 0; height: 100%; background: var(--accent); border-radius: 3px; transition: width .3s var(--ease); }
.social-progress span { font-size: 13px; font-weight: 700; color: var(--ink-2); }

/* Notifications */
.social-notes { display: grid; gap: 2px; }
.social-note { display: flex; align-items: center; gap: 12px; padding: 10px 8px; border-radius: var(--r-sm); text-decoration: none; color: inherit; }
.social-note.is-unread { background: color-mix(in srgb, var(--accent-soft) 60%, transparent); }
.social-note p { flex: 1; min-width: 0; margin: 0; font-size: 14px; line-height: 1.4; overflow-wrap: anywhere; }
.social-note small { color: var(--muted); font-weight: 650; white-space: nowrap; }
.social-note img { width: 46px; height: 46px; border-radius: var(--r-xs); object-fit: cover; flex: none; }
.social-note .social-avatar { width: 44px; height: 44px; }
.social-quote { color: var(--ink-2); }

/* Sheet menus */
.social-sheet-menu { display: grid; margin: 4px -8px 0; }
.social-sheet-menu > * { display: flex; align-items: center; gap: 12px; padding: 14px 10px; border-radius: var(--r-sm); font-weight: 700; font-size: 15px; text-decoration: none; color: var(--ink); text-align: left; }
.social-sheet-menu > *:hover { background: var(--surface-2); }
.social-sheet-menu .is-danger { color: var(--danger); }
.social-sheet-menu .social-i { width: 20px; height: 20px; }

/* Place sheet extras */
.social-extras { margin: 18px 0 8px; padding: 16px; border-radius: var(--r-lg); background: var(--surface-2); }
.social-extras-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; flex-wrap: wrap; }
.social-extras-head h3 { font: 650 20px/1.15 var(--display); margin-top: 3px; }
.social-extras-score { display: grid; justify-items: end; gap: 2px; text-decoration: none; color: var(--ink-2); font-size: 13px; }
.social-extras-score b { color: var(--ink); }
.social-strip { display: flex; gap: 6px; margin: 12px calc(-1 * 4px) 4px; padding: 0 4px; overflow-x: auto; scrollbar-width: none; scroll-snap-type: x proximity; }
.social-strip::-webkit-scrollbar { display: none; }
.social-strip a { flex: 0 0 88px; height: 88px; border-radius: var(--r-sm); overflow: hidden; scroll-snap-align: start; background: var(--surface-3); }
.social-strip img { width: 100%; height: 100%; object-fit: cover; }
.social-strip-more { display: grid; place-items: center; text-decoration: none; font-weight: 800; color: var(--ink-2); font-size: 13px; text-align: center; padding: 6px; }
.social-mini-list { display: grid; gap: 10px; margin-top: 12px; }
.social-mini-review { display: flex; gap: 10px; padding: 12px; border-radius: var(--r-md); background: var(--surface); }
.social-mini-review p { margin: 0; font-size: 14px; }
.social-mini-review strong { display: block; font-size: 14px; margin-top: 2px; }
.social-mini-text { color: var(--ink-2); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.social-mini-review small { color: var(--sea); font-weight: 700; font-size: 12px; }
.social-extras-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.social-extras-actions .button { flex: 1 1 auto; }
.social-extras .text-button .social-i { width: 16px; height: 16px; }

/* Home strip */
.social-home .app-section-title .text-button { white-space: nowrap; }
.social-home-strip { display: flex; gap: 10px; overflow-x: auto; padding: 2px var(--gutter) 8px; margin: 0 calc(-1 * var(--gutter)); scrollbar-width: none; scroll-snap-type: x proximity; }
.social-home-strip::-webkit-scrollbar { display: none; }
.social-home-card { position: relative; flex: 0 0 132px; height: 176px; border-radius: var(--r-md); overflow: hidden; scroll-snap-align: start; background: var(--surface-3); text-decoration: none; box-shadow: var(--shadow-1); }
.social-home-card img { width: 100%; height: 100%; object-fit: cover; }
.social-home-meta { position: absolute; left: 0; right: 0; bottom: 0; display: flex; align-items: center; gap: 6px; padding: 26px 8px 8px; background: linear-gradient(transparent, rgba(0, 0, 0, .62)); color: #fff; font-size: 12px; font-weight: 750; }
.social-home-meta > span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.social-home-meta .social-avatar { width: 22px; height: 22px; font-size: 9px; box-shadow: 0 0 0 1.5px #fff; }
.social-home-card.is-cta { display: grid; place-content: center; justify-items: center; gap: 8px; padding: 12px; background: var(--accent-soft); color: var(--accent-deep); font-weight: 800; font-size: 13.5px; text-align: center; box-shadow: none; border: 1.5px dashed color-mix(in srgb, var(--accent) 40%, transparent); }
.social-home-card.is-cta .social-i { width: 28px; height: 28px; }

@media (min-width: 960px) {
  .social-top { top: -1px; }
  .social-feed, .social-detail { max-width: 560px; margin-inline: auto; }
}
@media (prefers-reduced-motion: reduce) {
  .social-burst.is-on, .social-like.is-on .social-i { animation: none; }
  .social-thumb img { transition: none; }
}

/* Moderation queue */
.social-report-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 6px; }
.social-report-head small { margin-left: auto; color: var(--muted); font-weight: 650; }
.social-pill.is-hot { background: var(--danger-soft); color: var(--danger); }
.social-report-note { margin: 8px 0 0; padding: 8px 10px; border-radius: var(--r-sm); background: var(--warn-soft); color: color-mix(in srgb, var(--warn) 70%, var(--ink)); font-size: 13.5px; }
.social-report .social-muted a { color: var(--sea); font-weight: 700; text-decoration: none; }
