/* Shared post layout for profiles and the community wall. */
.feed-post.feed-post { position:relative; overflow:visible; }
.feed-post.feed-post > header { align-items:flex-start; gap:10px; padding-bottom:0; margin-bottom:14px; flex-wrap:wrap; }
.feed-post-identity { display:grid; gap:4px; flex:1; min-width:100px; }
.feed-post-identity strong { overflow-wrap:anywhere; line-height:1.4; }
.feed-post .feed-post-identity .post-visibility { font-size:12px; line-height:1.4; color:#aa9eaf; }
.feed-post.feed-post > header time { margin-left:auto; padding-top:3px; font-size:11px; line-height:1.5; }
.feed-post.feed-post > p { margin:0 0 14px; line-height:1.6; }
.feed-post.feed-post .feed-post-media { margin:0; }
.feed-post.feed-post .feed-post-media-item { border-color:#ffffff0d; border-radius:12px; }
.feed-post-options { position:relative; flex-shrink:0; margin-top:-6px; }
.feed-post-options > summary { display:grid; place-items:center; width:36px; height:36px; border-radius:9px; cursor:pointer; list-style:none; font-size:24px; line-height:1; color:#c1b2c5; }
.feed-post-options > summary::-webkit-details-marker { display:none; }
.feed-post-options > summary:hover,.feed-post-options[open] > summary { background:#ffffff0a; color:#fff; }
.feed-post-options > summary:focus-visible { outline:2px solid #ec8fb7; outline-offset:2px; }
.feed-post-options > .actions { position:absolute; top:40px; right:0; display:grid; gap:4px; margin:0; padding:6px; min-width:150px; background:#241e2b; border:1px solid #ffffff20; border-radius:12px; box-shadow:0 12px 28px #0005; z-index:6; }
.feed-post-options > .actions button { width:100%; min-height:40px; justify-content:flex-start; border:0; background:transparent; text-align:left; }
.feed-post-options > .actions button:hover { background:#ffffff0a; }
.feed-post-options > .actions button:last-child { color:#ef99b5; }
.feed-post .profile-v9-social-bar { margin-top:14px; padding-top:12px; gap:6px; }
.feed-post .profile-v9-social-bar button { min-width:60px; min-height:40px; padding:8px 12px; border-color:#ffffff0d; background:transparent; border-radius:10px; }
.feed-post .community-social { margin-top:14px; padding-top:12px; }
.feed-post .community-social-bar { gap:6px; }
.feed-post .community-social-bar button { min-height:40px; padding:8px 12px; background:transparent; border-color:#ffffff0d; }
.feed-post .community-wall-footer { margin-top:10px; padding-top:0; border:0; }
.feed-post .community-wall-profile { font-size:12px; min-height:36px; }
@media(max-width:520px) { .feed-post.feed-post > header { gap:8px; } .feed-post.feed-post > header time { max-width:120px; font-size:10px; } .feed-post-identity { min-width:90px; } }

/* Keep the video window open while respecting the viewer's media preference. */
.feed-post .feed-post-video-guard { height:min(80vh,720px); min-height:240px; display:grid; place-content:center; justify-items:center; gap:16px; padding:24px; box-sizing:border-box; text-align:center; background:radial-gradient(ellipse at center,#342539 0,#17121d 75%); color:#c2b5c8; }
.feed-post .feed-post-video-guard-icon { display:grid; place-items:center; width:64px; height:64px; padding-left:4px; border:1px solid #ffffff24; border-radius:50%; font-size:23px; color:#ed9fbe; }
.feed-post .feed-post-video-guard-label { font-size:14px; line-height:1.5; }
.feed-post .feed-post-video-guard > button { width:auto; min-height:44px; padding:10px 20px; border-radius:10px; }

/* Public platforms belonging to the linked advertiser. */
.profile-v2-commercial-link .profile-social-links { margin:16px 0 0; padding:16px 0 0; border:0; border-top:1px solid #ffffff15; border-radius:0; background:none; box-shadow:none; }
.profile-v2-commercial-link .social-links-heading { margin-bottom:10px; font-size:12px; letter-spacing:0; }
.profile-v2-commercial-link .social-channel { min-height:40px; box-sizing:border-box; }

/* Profile links sit below Intro; the advertiser shortcut belongs in the header. */
.profile-social-sidebar > .profile-social-links { margin:0; padding:20px; border:1px solid var(--profile-line,#ffffff15); border-radius:14px; background:var(--profile-surface,#1b1720); }
.profile-social-sidebar > .profile-social-links .social-links-heading { margin-bottom:12px; font-size:12px; letter-spacing:0; }
.profile-social-sidebar > .profile-social-links .social-channel { min-height:40px; box-sizing:border-box; }
.profile-advertiser-shortcut-row { flex-basis:100%; display:flex; justify-content:flex-end; order:2; }
.profile-advertiser-shortcut { min-height:36px; padding:8px 12px; font-size:12px; }
@media(max-width:900px) { .profile-advertiser-shortcut-row { justify-content:flex-start; } }

/* Focused profile settings: one section at a time. */
body.community-app .settings-layout{display:grid;grid-template-columns:230px minmax(0,1fr);gap:24px;align-items:start}
body.community-app .settings-index{display:flex;flex-direction:column;gap:6px;padding:10px;border:1px solid var(--community-line);border-radius:16px;background:var(--community-surface)}
body.community-app .settings-index-button{text-align:left;justify-content:flex-start;min-height:44px;border:0;border-radius:10px;background:transparent;color:var(--community-muted);padding:12px 14px;font:inherit;cursor:pointer}
body.community-app .settings-index-button[aria-pressed=true]{background:var(--community-tint);color:var(--community-text);font-weight:700;box-shadow:inset 3px 0 var(--community-accent)}
body.community-app .settings-index-button:focus-visible{outline:2px solid var(--community-accent);outline-offset:2px}
body.community-app .settings-sections{min-width:0}
body.community-app .profile-settings-focused .profile-settings-group[hidden]{display:none}
body.community-app .profile-settings-focused .profile-settings-group>summary{display:none}
body.community-app .settings-section-heading h2{margin:0;font-size:1.25rem}
body.community-app .settings-section-heading p{margin:6px 0 0}
body.community-app .settings-platform-choices{display:grid;gap:10px}
body.community-app .settings-platform-option{display:flex;align-items:center;gap:14px;padding:14px;border:1px solid var(--community-line);border-radius:12px;background:var(--community-tint);cursor:pointer}
body.community-app .settings-platform-option input{flex:0 0 auto;width:18px;height:18px;accent-color:var(--community-accent)}
body.community-app .settings-platform-option span{display:grid;gap:4px;min-width:0}
body.community-app .settings-platform-option small{color:var(--community-muted);overflow-wrap:anywhere}
body.community-app .profile-settings-focused .settings-account-card{margin-top:8px}
@media(max-width:760px){body.community-app .settings-layout{grid-template-columns:minmax(0,1fr);gap:16px}body.community-app .settings-index{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}body.community-app .settings-index-button{padding:10px;font-size:.875rem}body.community-app .profile-settings-focused .profile-settings-body{padding:18px}}
