/* FOTRVERSE community: real conversations, comfortable on mobile. */
.feature-dialog:has(.community-surface){width:min(1080px,calc(100% - 32px));max-height:94dvh;padding:clamp(20px,4vw,38px)}
.community-surface{--community-soft:color-mix(in srgb,var(--action) 5%,var(--paper));--community-shadow:0 5px 20px #231b1110;color:var(--ink)}
.community-surface svg{width:20px;height:20px;flex:none;vertical-align:middle}
.community-surface button,.community-surface input,.community-surface textarea{font-family:inherit}
.community-surface button{cursor:pointer}
.community-surface :focus-visible{outline:3px solid var(--accent-text,var(--action));outline-offset:3px}
.community-surface [hidden]{display:none!important}
.community-tabs{position:sticky;top:-1px;z-index:2;padding:10px 0 16px;background:var(--paper);margin-bottom:10px;border-bottom:1px solid var(--line)}
.community-tabs button{display:flex;align-items:center;justify-content:center;gap:7px;flex:1;border-radius:24px;min-height:46px;font-weight:750}
.community-tabs button svg{width:17px;height:17px}
.community-layout{display:grid;grid-template-columns:minmax(0,1fr) 260px;gap:26px;align-items:start}
.community-main{min-width:0}
.community-avatar{display:inline-grid;place-items:center;width:46px;height:46px;border-radius:50%;background:var(--community-soft);border:1px solid var(--line);font-size:21px;font-weight:850;flex:none;color:var(--ink)}
.community-avatar-brand{background:var(--action);color:white;border:0;transform:rotate(-6deg);font-family:'Barlow Condensed',sans-serif;font-size:32px;border-radius:14px}
.community-compose{padding:20px;background:var(--paper);border:1px solid var(--line);box-shadow:var(--community-shadow);border-radius:20px;margin:16px 0 30px}
.community-compose-heading{display:flex;gap:12px;align-items:center;margin-bottom:17px}
.community-compose-heading h3{font-size:17px;margin:0 0 3px;letter-spacing:-.3px}
.community-compose-heading p{font-size:12px;color:var(--muted);margin:0;line-height:1.6}
.community-compose .member-form{gap:12px}
.community-compose textarea{resize:vertical;min-height:100px;background:var(--community-soft);font-size:14px;line-height:1.6;border:0;border-radius:12px;padding:14px}
.community-prompts{display:flex;gap:6px;flex-wrap:wrap}
.community-prompts button{border:1px solid var(--line);background:transparent;color:var(--ink);border-radius:16px;padding:5px 9px;min-height:30px;font-size:11px;font-weight:650}
.community-compose-tools{display:flex;align-items:center;gap:12px;border-top:1px solid var(--line);padding-top:10px;flex-wrap:wrap}
.community-compose-tools .community-attach{position:relative;display:flex;align-items:center;gap:6px;font-size:12px;font-weight:700;cursor:pointer;min-height:38px}
.community-attach input[type=file]{position:absolute;inset:0;opacity:0;cursor:pointer;width:100%;height:100%}
.community-attach:focus-within{outline:2px solid var(--accent-text,var(--action));outline-offset:3px;border-radius:5px}
.community-compose-tools .community-link-toggle{background:none;color:var(--ink);border:0;display:flex;gap:6px;align-items:center;padding:5px 0;min-height:38px;font-size:12px}
.community-compose-tools [data-post-count]{margin-left:auto;color:var(--muted);font-size:10px;font-variant-numeric:tabular-nums}
.community-compose-footer{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-top:3px}
.community-compose-footer small{color:var(--muted);font-size:10px;max-width:190px;line-height:1.6}
.community-compose-footer button{display:flex;align-items:center;gap:9px;border-radius:11px;padding:12px 17px;white-space:nowrap}
.community-file-preview{display:flex;gap:10px;align-items:center;padding:10px;border-radius:12px;border:1px solid var(--line);font-size:12px;min-width:0}
.community-file-preview img{width:64px;height:64px;object-fit:cover;border-radius:8px}
.community-file-preview span{overflow-wrap:anywhere;flex:1;min-width:0}
.community-file-preview button{background:transparent;color:var(--ink);border:1px solid var(--line);padding:5px 8px;font-size:11px;min-height:38px}
.community-feed-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:12px 0 15px}
.community-eyebrow{font-size:9px;letter-spacing:.11em;text-transform:uppercase;font-weight:800;color:var(--accent-text,var(--action))}
.community-feed-heading h3{margin:4px 0 0;font-size:23px;letter-spacing:-.5px}
.community-refresh{background:none;color:var(--muted);border:1px solid var(--line);border-radius:18px;min-height:38px;padding:8px 12px;font-size:11px}
.community-search{display:flex;gap:10px;align-items:center;background:var(--community-soft);padding:0 14px;border:1px solid var(--line);border-radius:12px;margin:8px 0 16px;color:var(--muted)}
.community-search input{border:0;background:transparent;color:var(--ink);min-width:0;width:100%;height:46px;font-size:12px;outline-offset:-3px}
.community-post{border-radius:20px;padding:20px;margin:0 0 20px;box-shadow:var(--community-shadow)}
.community-post header{align-items:center;position:relative}
.community-post button.community-author{display:flex;align-items:center;gap:11px;text-align:left;padding:0;border:0;background:transparent;min-width:0;border-radius:0}
.community-author>span:last-child{min-width:0}
.community-author strong{display:block;font-size:14px;overflow-wrap:anywhere}
.community-author small{margin-top:2px;font-size:10px!important;font-weight:500}
.community-post-menu{position:relative;flex:none;align-self:start}
.community-post-menu summary{list-style:none;cursor:pointer;padding:6px 9px;min-height:36px;display:flex;align-items:center;letter-spacing:2px;color:var(--muted)}
.community-post-menu summary::-webkit-details-marker{display:none}
.community-post-menu button{position:absolute;right:0;top:36px;z-index:1;white-space:nowrap;box-shadow:0 4px 16px #0002;padding:10px 14px;background:var(--paper)}
.community-post .community-post-body{font-size:14px;line-height:1.8;margin:17px 0;overflow-wrap:anywhere}
.community-post-attachment{margin:15px -20px;background:var(--community-soft);text-align:center;min-height:60px;color:var(--muted);font-size:12px;display:grid;place-items:center}
.community-post-attachment .post-media{display:block;max-height:550px;width:100%;border-radius:0;object-fit:contain}
.community-post-attachment a.post-media{padding:24px;color:var(--accent-text,var(--action))}
.community-video-link{display:flex;gap:12px;align-items:center;text-decoration:none;padding:15px;border:1px solid var(--line);border-radius:12px;background:var(--community-soft);color:var(--ink);margin:15px 0}
.community-video-link>svg:first-child{width:32px;height:32px;color:var(--accent-text,var(--action))}
.community-video-link>svg:last-child{margin-left:auto}
.community-video-link strong{font-size:13px}.community-video-link small{font-size:11px}
.community-post footer{display:flex;align-items:center;justify-content:space-between;padding-top:12px;margin-top:16px;border-top:1px solid var(--line);gap:10px}
.community-post footer>span{font-size:10px;color:var(--muted)}
.community-post footer button{display:flex;gap:7px;align-items:center;font-size:12px;border:0;background:var(--community-soft);border-radius:18px;padding:9px 12px}
.community-comments{padding-top:18px}
.community-comment{display:flex;gap:10px;margin-bottom:14px}
.community-comment>div{flex:1;min-width:0;background:var(--community-soft);border-radius:0 14px 14px 14px;padding:11px 13px}
.community-comment>div>strong{font-size:12px}.community-comment p{font-size:12px;margin:4px 0 7px;overflow-wrap:anywhere}
.community-comment button.community-comment-avatar{border:0;padding:0;background:none;height:max-content}
.community-comment-avatar .profile-avatar,.community-comment-avatar .community-avatar{width:32px;height:32px;font-size:15px}
.community-comment small button{padding:0;min-height:25px;border:0;background:none;text-decoration:underline;font-size:10px;color:var(--muted)}
.community-comment-form textarea{font-size:13px;resize:vertical}.community-comment-form>button{justify-self:end}
.community-aside{padding-top:16px;display:grid;gap:20px}
.community-aside>section{border:1px solid var(--line);border-radius:18px;padding:21px;background:var(--community-soft)}
.community-aside h3{font-size:21px;line-height:1.2;margin:12px 0;font-weight:800;letter-spacing:-.5px}
.community-aside p{font-size:12px;line-height:1.8;color:var(--muted)}
.community-aside .member-action{width:100%;font-size:11px;display:flex;gap:8px;justify-content:center;align-items:center;padding:11px}
.community-text-action{display:flex;align-items:center;gap:8px;background:none;border:0;padding:0;min-height:40px;color:var(--accent-text,var(--action));font-weight:750;font-size:12px;text-align:left}
.community-aside .community-note{background:transparent;border:0;padding:0 10px}.community-note h3{font-size:13px;letter-spacing:0}
.community-empty{text-align:center;padding:35px 20px;background:var(--community-soft);border:1px dashed var(--line);border-radius:18px;grid-column:1/-1}
.community-empty>svg{width:42px;height:42px;color:var(--accent-text,var(--action));margin-bottom:10px}
.community-empty h3{font-size:22px;margin:7px 0 10px;letter-spacing:-.4px}
.community-empty p{max-width:360px;margin:0 auto 18px;font-size:13px;line-height:1.8;color:var(--muted)}
.community-loading{min-height:180px;display:grid;place-items:center;color:var(--muted);font-size:13px;border:1px solid var(--line);border-radius:18px}
.community-no-results,.community-feed-end{text-align:center;padding:14px;color:var(--muted);font-size:12px}
.community-people-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
.community-person{margin:0;text-align:center;padding:22px 16px;border-radius:20px;display:flex;flex-direction:column;align-items:center}
.community-person button.community-person-open{border:0;background:none;padding:0;max-width:100%}
.community-person .profile-avatar,.community-person .community-avatar{width:68px;height:68px;font-size:30px;margin:0 auto 14px;display:grid}
.community-person h3{font-size:16px;overflow-wrap:anywhere}.community-person p{font-size:12px;color:var(--muted);margin:8px 0 18px;overflow-wrap:anywhere;flex:1}
.community-person button.member-action{color:white;background:var(--action);display:flex;gap:6px;align-items:center;justify-content:center;font-size:12px;width:100%}
.community-blocked{margin:30px 0;color:var(--muted);font-size:12px}.community-blocked summary{min-height:44px;cursor:pointer}
.community-inbox-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:15px 0}
.community-inbox-heading h3{font-size:20px;margin:0}
.community-thread{display:flex;align-items:center;gap:12px;justify-content:space-between;border-radius:16px;padding:16px}
.community-thread button.community-thread-open{display:flex;align-items:center;gap:13px;text-align:left;border:0;flex:1;min-width:0;padding:0}
.community-thread-open>span{min-width:0}.community-thread-open strong{font-size:14px;overflow-wrap:anywhere}.community-thread-open>svg{margin-left:auto;color:var(--muted)}
.community-thread button.community-block-thread{font-size:10px;color:var(--muted);border:0}
.community-sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
@media(max-width:800px){.community-layout{grid-template-columns:minmax(0,1fr)}.community-aside{grid-template-columns:1fr 1fr;padding-top:0}.community-aside .community-note{grid-column:1/-1}.community-people-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:540px){.feature-dialog:has(.community-surface){width:100%;max-height:100dvh;height:100dvh;margin:0;border:0;border-radius:0;padding:24px 16px;padding-bottom:calc(24px + env(safe-area-inset-bottom))}.community-tabs{gap:5px;margin-left:-2px;margin-right:-2px}.community-tabs button{flex:none;font-size:11px;padding:9px 11px;min-height:44px}.community-tabs button svg{width:15px;height:15px}.community-compose{padding:16px;border-radius:18px;margin:12px 0 24px}.community-compose-heading h3{font-size:15px}.community-compose-heading p{font-size:11px}.community-compose-tools{gap:8px}.community-compose-tools [data-post-count]{font-size:9px}.community-post{padding:16px;border-radius:18px}.community-post-attachment{margin-left:-16px;margin-right:-16px}.community-post footer>span{display:none}.community-aside{display:none}.community-compose-footer button{padding:11px 13px;font-size:12px}.community-compose-footer small{font-size:9px;max-width:125px}.community-people-grid{gap:10px}.community-person{padding:20px 10px}.community-person h3{font-size:14px}.community-thread{gap:7px;padding:13px}.community-thread-open small{font-size:10px!important}.community-thread button.community-block-thread{max-width:72px;font-size:9px;padding:6px 2px}.community-post .community-post-body{font-size:14px}.community-feed-heading h3{font-size:22px}.community-inbox-heading h3{font-size:17px}.community-inbox-heading .member-action{font-size:11px;padding:10px 12px}.community-post-menu button{font-size:11px}.community-comment>div{padding:10px}.community-file-preview{flex-wrap:wrap}.community-file-preview span{flex-basis:calc(100% - 78px)}}
@media(prefers-reduced-motion:reduce){.community-surface *{scroll-behavior:auto!important;animation:none!important;transition:none!important}}
