.community-page{max-width:1260px;margin:0 auto;padding:8px 0 40px}.community-header{display:flex;justify-content:space-between;align-items:flex-start;gap:18px;margin-bottom:18px}.community-eyebrow{display:inline-flex;align-items:center;gap:7px;font-size:11px;font-weight:900;letter-spacing:.08em;text-transform:uppercase;color:#6b7a8f}.community-dot{width:8px;height:8px;border-radius:50%;background:var(--green)}.community-header h2{margin:5px 0;font-size:30px;letter-spacing:-.02em}.community-header p{margin:0;color:var(--muted);max-width:680px}.community-header-actions{display:flex;align-items:center;gap:8px}.community-prototype-badge{padding:7px 10px;border:1px solid var(--line);border-radius:999px;background:var(--card);color:var(--muted);font-size:11px;font-weight:800}.community-icon-btn{width:40px;height:40px;padding:0;display:grid;place-items:center}.community-layout{display:grid;grid-template-columns:minmax(0,1fr) 330px;gap:16px;align-items:start}.community-main{min-width:0}.community-composer{padding:14px;margin-bottom:14px}.community-composer-top{display:flex;gap:10px;align-items:center}.community-avatar{width:38px;height:38px;border-radius:12px;background:#e9f3ee;color:#167656;display:grid;place-items:center;font-size:11px;font-weight:900;flex:0 0 auto}.community-composer-input{flex:1;text-align:left;border:1px solid var(--line);background:var(--bg);color:var(--muted);border-radius:12px;padding:11px 13px;cursor:text}.community-composer-input:hover{border-color:#bdd8ca}.community-composer-tools{display:flex;gap:5px;margin:11px 0 0 48px;flex-wrap:wrap}.community-composer-tools button{border:0;background:transparent;color:#526177;padding:7px 9px;border-radius:8px;font-size:12px;font-weight:700;cursor:pointer}.community-composer-tools button:hover{background:var(--bg)}.community-compose-form{margin:12px 0 0 48px;border-top:1px solid var(--line);padding-top:12px}.community-compose-form textarea{width:100%;min-height:92px;resize:vertical;border:1px solid var(--line);border-radius:10px;padding:11px;background:var(--card);color:var(--text);outline:none}.community-compose-row{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-top:8px}.community-compose-row select{border:1px solid var(--line);border-radius:9px;padding:8px;background:var(--card);color:var(--text)}.community-compose-row>div{display:flex;gap:7px}.community-feed-toolbar{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-bottom:9px}.community-tabs{display:flex;gap:4px}.community-tabs button{border:0;background:transparent;color:var(--muted);padding:8px 11px;border-radius:9px;font-weight:800;cursor:pointer}.community-tabs button.active{background:var(--card);color:var(--text);box-shadow:var(--shadow)}.community-search{position:relative;width:min(240px,42vw)}.community-search span{position:absolute;left:11px;top:50%;transform:translateY(-50%);color:var(--muted)}.community-search input{width:100%;border:1px solid var(--line);border-radius:10px;padding:9px 11px 9px 30px;background:var(--card);color:var(--text);outline:none}.community-channel-row{display:flex;gap:6px;overflow:auto;padding:1px 0 10px;scrollbar-width:thin}.community-channel-row button{white-space:nowrap;border:1px solid var(--line);background:var(--card);color:var(--muted);border-radius:999px;padding:6px 9px;font-size:11px;font-weight:800;cursor:pointer}.community-channel-row button.active{background:#eaf8f2;border-color:#c7e9d9;color:#177656}.community-post{padding:15px;margin-bottom:10px}.community-post-head{display:flex;align-items:flex-start;gap:10px}.community-post-author{min-width:0;flex:1}.community-post-author strong{display:block;font-size:13px}.community-post-author span{display:block;color:var(--muted);font-size:11px;margin-top:2px}.community-post-author button{border:0;background:transparent;padding:0;color:#4d829b;font:inherit;cursor:pointer}.community-more{border:0;background:transparent;color:var(--muted);padding:4px 6px;cursor:pointer}.community-post-text{font-size:14px;line-height:1.6;margin:13px 0 12px;white-space:pre-wrap}.community-post-actions{display:flex;gap:4px;border-top:1px solid var(--line);padding-top:9px;flex-wrap:wrap}.community-post-actions button{border:0;background:transparent;color:#66758a;border-radius:8px;padding:6px 8px;font-size:11px;font-weight:800;cursor:pointer}.community-post-actions button:hover,.community-post-actions button.active{background:#eef8f3;color:#167656}.community-side{display:grid;gap:12px;position:sticky;top:18px}.community-side-card{padding:14px}.community-card-title{display:flex;justify-content:space-between;align-items:flex-start;gap:10px;margin-bottom:10px}.community-card-title h3{margin:0 0 2px;font-size:15px}.community-card-title .muted{font-size:11px}.community-count{min-width:22px;height:22px;border-radius:999px;background:#eaf8f2;color:#167656;display:grid;place-items:center;font-size:10px;font-weight:900}.community-chat-list{display:grid;margin:0 0 10px}.community-chat-row{width:100%;border:0;background:transparent;display:flex;align-items:center;gap:9px;text-align:left;padding:9px 5px;border-radius:9px;cursor:pointer;color:var(--text)}.community-chat-row:hover,.community-chat-row.active{background:var(--bg)}.community-chat-copy{min-width:0;flex:1}.community-chat-copy strong,.community-chat-copy small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.community-chat-copy strong{font-size:12px}.community-chat-copy small{font-size:10px;color:var(--muted);margin-top:2px}.community-chat-meta{text-align:right;display:grid;justify-items:end;gap:4px}.community-chat-meta small{font-size:9px;color:var(--muted)}.community-chat-meta b{min-width:18px;height:18px;border-radius:999px;background:#167656;color:#fff;font-size:9px;display:grid;place-items:center}.community-topic-list{display:grid}.community-topic-list button{border:0;background:transparent;display:grid;grid-template-columns:22px 1fr auto;align-items:center;gap:5px;text-align:left;padding:9px 4px;border-radius:8px;cursor:pointer;color:var(--text)}.community-topic-list button:hover{background:var(--bg)}.community-topic-list button span{color:#167656;font-weight:900}.community-topic-list button strong{font-size:12px}.community-topic-list button small{font-size:9px;color:var(--muted)}.community-guidelines p{font-size:11px;line-height:1.55;margin:0 0 8px}.community-empty{padding:26px;text-align:center;display:grid;gap:5px}.community-empty span{color:var(--muted);font-size:12px}.community-chat-overlay{position:fixed;inset:0;background:rgba(12,20,35,.42);display:grid;place-items:center;padding:18px;z-index:80}.community-chat-window{width:min(480px,100%);height:min(650px,90vh);background:var(--card);border:1px solid var(--line);border-radius:18px;box-shadow:0 24px 80px rgba(10,20,30,.22);display:grid;grid-template-rows:auto 1fr auto;overflow:hidden}.community-chat-head{display:flex;align-items:center;justify-content:space-between;padding:12px 14px;border-bottom:1px solid var(--line)}.community-chat-head>div{display:flex;align-items:center;gap:9px}.community-chat-head strong,.community-chat-head small{display:block}.community-chat-head small{font-size:10px;color:var(--muted);margin-top:2px}.community-chat-messages{padding:14px;overflow:auto;display:flex;flex-direction:column;gap:8px;background:var(--bg)}.community-message{max-width:78%;align-self:flex-start}.community-message.me{align-self:flex-end}.community-message>div{padding:9px 11px;border-radius:12px 12px 12px 4px;background:var(--card);border:1px solid var(--line);font-size:12px;line-height:1.45}.community-message.me>div{border-color:#c9e7da;background:#eaf8f2;border-radius:12px 12px 4px 12px}.community-message small{display:block;color:var(--muted);font-size:9px;margin:3px 4px}.community-chat-compose{display:flex;gap:7px;padding:10px;border-top:1px solid var(--line)}.community-chat-compose input{flex:1;min-width:0;border:1px solid var(--line);border-radius:10px;padding:9px 11px;background:var(--card);color:var(--text);outline:none}@media(max-width:980px){.community-layout{grid-template-columns:1fr}.community-side{position:static;grid-template-columns:repeat(2,minmax(0,1fr))}.community-side-card:last-child{grid-column:1/-1}}@media(max-width:700px){.community-page{padding:0 0 28px}.community-header{display:block}.community-header-actions{margin-top:10px;justify-content:space-between}.community-layout{gap:10px}.community-side{grid-template-columns:1fr}.community-side-card:last-child{grid-column:auto}.community-feed-toolbar{align-items:stretch;flex-direction:column}.community-search{width:100%}.community-composer-tools,.community-compose-form{margin-left:0}.community-compose-row{align-items:stretch;flex-direction:column}.community-compose-row>div{justify-content:flex-end}.community-post-actions{justify-content:space-between}.community-post-actions button{flex:1}.community-header h2{font-size:26px}}body.dark .community-prototype-badge,body.dark .community-search input,body.dark .community-composer-input,body.dark .community-compose-form textarea,body.dark .community-compose-row select{background:#17233a}body.dark .community-channel-row button{background:#17233a}body.dark .community-channel-row button.active{background:#183b32}body.dark .community-tabs button.active{background:#17233a}
.community-message-actions{display:grid;grid-template-columns:1fr 1.15fr;gap:7px}.community-message-actions .btn{min-width:0}.community-avatar-group{background:#e8eefb;color:#38558e}.community-avatar-direct{background:#e9f3ee;color:#167656}.community-chat-head-actions{display:flex;align-items:center;gap:7px}.community-chat-info{border:1px solid var(--line);background:var(--bg);color:var(--text);border-radius:8px;padding:6px 9px;font-size:10px;font-weight:800;cursor:pointer}.community-chat-info:hover{border-color:#bdd8ca}.community-message-sender{font-size:9px!important;font-weight:800;color:#55718a;margin:0 4px 2px!important}.community-modal-overlay{position:fixed;inset:0;background:rgba(12,20,35,.46);display:grid;place-items:center;padding:18px;z-index:90}.community-modal{width:min(560px,100%);max-height:min(760px,92vh);overflow:auto;background:var(--card);border:1px solid var(--line);border-radius:18px;box-shadow:0 24px 80px rgba(10,20,30,.24)}.community-modal-head{display:flex;justify-content:space-between;gap:16px;padding:18px;border-bottom:1px solid var(--line)}.community-modal-head h3{margin:4px 0 3px;font-size:20px}.community-modal-head p{margin:0;color:var(--muted);font-size:12px}.community-group-form{padding:18px}.community-group-form>label{display:grid;gap:6px;font-size:11px;font-weight:900;margin-bottom:16px}.community-group-form>label input{border:1px solid var(--line);border-radius:10px;padding:10px 11px;background:var(--card);color:var(--text);outline:none;font:inherit;font-weight:500}.community-field-label{display:block;font-size:12px}.community-field-help{display:block;font-size:10px;margin-top:3px}.community-member-list{display:grid;gap:5px;margin-top:9px;max-height:300px;overflow:auto}.community-member-option{display:flex;align-items:center;gap:9px;padding:8px;border:1px solid transparent;border-radius:10px;cursor:pointer}.community-member-option:hover{background:var(--bg);border-color:var(--line)}.community-member-option input{accent-color:#167656}.community-member-option .community-avatar{width:34px;height:34px;border-radius:10px}.community-member-option>span:nth-of-type(2){min-width:0}.community-member-option strong,.community-member-option small{display:block}.community-member-option strong{font-size:12px}.community-member-option small{font-size:9px;color:var(--muted);margin-top:2px}.community-group-actions{display:flex;justify-content:flex-end;gap:7px;margin-top:16px;padding-top:14px;border-top:1px solid var(--line)}body.dark .community-chat-info,body.dark .community-group-form>label input{background:#17233a}body.dark .community-avatar-group{background:#202f50;color:#a9c1ff}
@media(max-width:700px){.community-message-actions{grid-template-columns:1fr}.community-modal-overlay{padding:10px}.community-modal-head,.community-group-form{padding:14px}}

.community-composer-disabled{cursor:default;opacity:.7}.community-composer-tools button:disabled{opacity:.45;cursor:not-allowed}.community-empty-compact{padding:16px;font-size:11px}.community-search-empty{padding:8px 2px;font-size:10px}.community-member-list{min-height:48px}.community-member-option{user-select:none}

.community-live-badge{padding:7px 10px;border:1px solid var(--line);border-radius:999px;background:var(--card);color:#167656;font-size:11px;font-weight:800}
.community-notification-dot{display:none;width:7px;height:7px;border-radius:50%;background:#d44;position:absolute;top:7px;right:7px}.community-notification-dot.show{display:block}
.community-icon-btn{position:relative}.community-composer-top textarea{flex:1;min-height:82px;resize:vertical;border:1px solid var(--line);border-radius:12px;padding:11px 13px;background:var(--bg);color:var(--text);outline:none;font:inherit;line-height:1.45}.community-compose-row>div{flex:1;display:flex;gap:7px;align-items:center}.community-compose-row input{flex:1;min-width:0;border:1px solid var(--line);border-radius:9px;padding:8px 10px;background:var(--card);color:var(--text);outline:none;font:inherit}.community-post-title{font-size:18px;margin:14px 0 4px}.community-avatar-button{border:0;cursor:pointer}.community-profile-hero{padding:24px;text-align:center;position:relative}.community-profile-hero .close{position:absolute;right:12px;top:12px}.community-avatar-large{width:64px;height:64px;border-radius:18px;margin:0 auto 10px;font-size:18px}.community-profile-hero h3{margin:0 0 5px}.community-profile-hero p{margin:0 auto 16px;max-width:420px;color:var(--muted);font-size:12px;line-height:1.5}.community-profile-stats{display:flex;justify-content:center;gap:22px;color:var(--muted);font-size:10px}.community-profile-stats strong{display:block;color:var(--text);font-size:15px}.community-profile-actions{display:flex;gap:7px;padding:14px 18px;border-top:1px solid var(--line)}.community-profile-actions .btn{flex:1}.community-comments{padding:14px;display:grid;gap:12px;max-height:55vh;overflow:auto}.community-comment{display:flex;gap:9px}.community-comment-body{min-width:0;flex:1}.community-comment-body>div:first-child{display:flex;align-items:center;gap:7px}.community-user-link{border:0;background:transparent;padding:0;color:#3e7e99;font-weight:800;font-size:11px;cursor:pointer}.community-comment-body>div small{font-size:9px;color:var(--muted)}.community-comment-body p{margin:5px 0;font-size:12px;line-height:1.5;white-space:pre-wrap}.community-comment-actions{display:flex;gap:5px}.community-comment-actions button{border:0;background:transparent;color:var(--muted);font-size:10px;font-weight:800;padding:3px 5px;cursor:pointer;border-radius:6px}.community-comment-actions button.active,.community-comment-actions button:hover{background:#eef8f3;color:#167656}.community-comment-form{display:flex;gap:7px;padding:12px;border-top:1px solid var(--line)}.community-comment-form textarea{flex:1;min-height:44px;resize:vertical;border:1px solid var(--line);border-radius:10px;padding:9px;background:var(--card);color:var(--text);outline:none;font:inherit}.community-form-actions{display:flex;justify-content:flex-end;gap:7px;padding-top:14px}.community-modal form{padding:16px 18px}.community-modal form label{display:grid;gap:6px;font-size:11px;font-weight:900;margin-bottom:13px}.community-modal form input,.community-modal form select,.community-modal form textarea{border:1px solid var(--line);border-radius:10px;padding:9px 10px;background:var(--card);color:var(--text);outline:none;font:inherit}.community-modal form textarea{min-height:100px;resize:vertical}.community-notifications{padding:8px}.community-notification{width:100%;border:0;background:transparent;display:flex;gap:9px;text-align:left;padding:10px;border-radius:10px;color:var(--text);cursor:pointer}.community-notification:hover{background:var(--bg)}.community-notification.unread{background:#eef8f3}.community-notification>span:last-child{min-width:0;flex:1;font-size:11px;line-height:1.4}.community-notification strong{font-weight:900}.community-notification small{display:block;color:var(--muted);font-size:9px;margin-top:3px}.community-menu-list{display:grid;padding:8px}.community-menu-list button{border:0;background:transparent;text-align:left;padding:12px;border-radius:9px;color:var(--text);font-weight:800;cursor:pointer}.community-menu-list button:hover{background:var(--bg)}.community-guidelines-list{margin:0;padding:18px 30px 20px;display:grid;gap:10px;color:var(--muted);font-size:12px;line-height:1.55}
@media(max-width:700px){.community-composer-top{align-items:flex-start}.community-compose-row>div{width:100%;flex-direction:column;align-items:stretch}.community-compose-row input,.community-compose-row select{width:100%}.community-compose-row .btn{width:100%}.community-post-title{font-size:16px}.community-post-actions button{flex:auto}.community-profile-actions{flex-wrap:wrap}.community-profile-actions .btn{min-width:30%}}
.community-chat-page{max-width:1180px}.community-back-link{border:0;background:transparent;color:var(--muted);padding:0;margin:0 0 10px;font-weight:800;cursor:pointer}.community-chat-page-layout{display:grid;grid-template-columns:360px minmax(0,1fr);gap:16px;min-height:520px}.community-chat-page-list{align-self:stretch}.community-chat-page-empty{display:grid;place-items:center;align-content:center;text-align:center;padding:40px;min-height:520px}.community-chat-empty-icon{width:56px;height:56px;border-radius:50%;display:grid;place-items:center;background:#eaf8f2;color:#167656;font-size:24px;margin-bottom:12px}.community-chat-page-empty h3{margin:0 0 6px}.community-chat-page-empty p{max-width:420px;color:var(--muted);margin:0 0 16px}.community-open-messages{width:100%}.community-user-link{text-decoration:none}.community-user-link:hover{text-decoration:underline}@media(max-width:900px){.community-chat-page-layout{grid-template-columns:1fr}.community-chat-page-empty{display:none}.community-chat-page-list{min-height:420px}}


/* Community social-media design system — one canonical visual layer. */
.fb-community{width:100%;min-height:calc(100vh - 90px);background:#f0f2f5;color:#1c1e21;font-family:inherit}
.fb-top{height:64px;background:#fff;border-bottom:1px solid #dddfe2;display:grid;grid-template-columns:220px minmax(240px,620px) 1fr;align-items:center;gap:18px;padding:0 20px;position:sticky;top:0;z-index:20;box-shadow:0 1px 2px rgba(0,0,0,.08)}
.fb-logo{display:flex;align-items:center;gap:8px;color:#087a4f;font-size:20px}.fb-logo span{width:34px;height:34px;border-radius:50%;display:grid;place-items:center;background:#087a4f;color:#fff;font-weight:900}.fb-logo strong{letter-spacing:-.03em}
.fb-search,.fb-feed-search{display:flex;align-items:center;gap:8px;background:#f0f2f5;border-radius:999px;height:40px;padding:0 14px;color:#65676b}.fb-search input,.fb-feed-search input{border:0;background:transparent;outline:0;width:100%;color:#1c1e21;font:inherit}.fb-search input::placeholder,.fb-feed-search input::placeholder{color:#65676b}
.fb-top-actions{display:flex;justify-content:flex-end;gap:8px}.fb-circle{width:40px;height:40px;border:0;border-radius:50%;background:#e4e6eb;color:#1c1e21;font-size:17px;cursor:pointer}.fb-circle:hover{background:#d8dadf}.fb-top-avatar{font-size:12px;font-weight:900;background:#087a4f;color:#fff}
.fb-body{display:grid;grid-template-columns:220px minmax(420px,680px) 280px;gap:20px;max-width:1240px;margin:0 auto;padding:20px 16px 48px;align-items:start}
.fb-left{position:sticky;top:84px;display:grid;gap:4px}.fb-left-link{width:100%;border:0;background:transparent;border-radius:9px;padding:11px 12px;display:flex;align-items:center;gap:12px;color:#1c1e21;text-align:left;font-weight:700;font-size:13px;cursor:pointer}.fb-left-link span{width:28px;text-align:center;font-size:18px;color:#087a4f}.fb-left-link:hover,.fb-left-link.active{background:#e4e6eb}.fb-left-link.active{box-shadow:inset 3px 0 #087a4f}.fb-left-divider{height:1px;background:#ccd0d5;margin:8px 10px}
.fb-center{min-width:0}.fb-composer{background:#fff;border:1px solid #dddfe2!important;border-radius:10px!important;box-shadow:0 1px 2px rgba(0,0,0,.08)!important;padding:12px}.fb-composer-row{display:flex;gap:10px;align-items:center}.fb-composer-input{flex:1;border:0;background:#f0f2f5;color:#65676b;border-radius:999px;text-align:left;padding:11px 15px;cursor:pointer;font-size:13px}.fb-composer-actions{display:grid;grid-template-columns:repeat(3,1fr);border-top:1px solid #e4e6eb;margin-top:10px;padding-top:8px;gap:4px}.fb-composer-actions button{border:0;background:transparent;border-radius:7px;padding:9px;color:#65676b;font-weight:700;cursor:pointer}.fb-composer-actions button:hover{background:#f0f2f5;color:#087a4f}
.fb-real-composer{display:none;margin-top:10px;border-top:1px solid #e4e6eb;padding-top:10px}.fb-real-composer.open{display:block}.fb-composer:has(.fb-real-composer.open) .fb-composer-row,.fb-composer:has(.fb-real-composer.open) .fb-composer-actions{display:none}.fb-composer:has(.fb-real-composer.open){padding:14px}.fb-real-composer textarea{width:100%;min-height:95px;box-sizing:border-box;border:1px solid #ccd0d5;border-radius:8px;padding:11px;resize:vertical;color:#1c1e21;background:#fff;font:inherit}.fb-real-composer-bottom{display:flex;gap:7px;margin-top:8px}.fb-real-composer-bottom select,.fb-real-composer-bottom input{min-width:0;border:1px solid #ccd0d5;border-radius:7px;padding:8px;background:#fff;color:#1c1e21}.fb-real-composer-bottom select{width:140px}.fb-real-composer-bottom input{flex:1}
.fb-feed-tabs{display:grid;grid-template-columns:auto auto minmax(150px,1fr);align-items:center;gap:5px;margin:14px 0 8px}.fb-feed-tabs>button{border:0;background:transparent;padding:9px 12px;border-radius:7px;color:#65676b;font-weight:800;cursor:pointer}.fb-feed-tabs>button.active{color:#087a4f;background:#e4e6eb}.fb-feed-search{height:34px;justify-self:end;width:min(260px,100%)}
.fb-topic-strip{display:flex;gap:6px;overflow:auto;margin-bottom:10px;scrollbar-width:none}.fb-topic-strip button{border:1px solid #dddfe2;background:#fff;color:#65676b;border-radius:999px;padding:7px 11px;white-space:nowrap;font-size:11px;cursor:pointer}.fb-topic-strip button.active,.fb-topic-strip button:hover{background:#e2f5ec;border-color:#b8dfcc;color:#087a4f}
.fb-right{position:sticky;top:84px;display:grid;gap:12px}.fb-card{background:#fff;border:1px solid #dddfe2;border-radius:10px;padding:14px;box-shadow:0 1px 2px rgba(0,0,0,.06)}.fb-card h3{margin:0 0 7px;font-size:14px}.fb-card p{margin:0 0 10px;color:#65676b;font-size:11px;line-height:1.5}.fb-right-link{border:0;background:transparent;color:#087a4f;padding:0;font-weight:700;cursor:pointer}.fb-right-title{display:flex;justify-content:space-between;align-items:center}.fb-right-title span{font-size:10px;color:#087a4f}.fb-topic-list{display:grid;gap:2px}.fb-topic-list button{border:0;background:transparent;text-align:left;border-radius:7px;padding:8px;color:#1c1e21;display:flex;gap:7px;align-items:center;cursor:pointer}.fb-topic-list button:hover{background:#f0f2f5}.fb-topic-list button span{color:#087a4f;font-weight:900}.fb-topic-list button strong{font-size:11px}.fb-message-card{text-align:center}.fb-message-icon{font-size:24px;color:#087a4f;margin-bottom:5px}.fb-message-card strong{display:block}.fb-message-card .btn{width:100%}
.fb-page-title{display:flex;justify-content:space-between;align-items:center;margin-bottom:16px}.fb-page-title h2{margin:0;font-size:24px;color:#1c1e21}.fb-page-title p{margin:4px 0 0;color:#65676b;font-size:12px}.fb-messages-center{min-height:600px}
.fb-community .community-post{background:#fff;border:1px solid #dddfe2;border-radius:10px;box-shadow:0 1px 2px rgba(0,0,0,.08);color:#1c1e21;margin-bottom:12px;overflow:hidden}.fb-community .community-post-head{padding:13px 14px 0}.fb-community .community-post-author strong{color:#1c1e21;font-size:13px}.fb-community .community-post-author span{color:#65676b;font-size:10px}.fb-community .community-post-title{font-size:17px;color:#1c1e21;margin:10px 14px 4px}.fb-community .community-post-text{font-size:13px;color:#4b4f56;line-height:1.5;margin:6px 14px 13px}.fb-community .community-post-actions{background:#fff;border-top:1px solid #e4e6eb;padding:5px 9px;display:grid;grid-template-columns:repeat(3,1fr);gap:2px}.fb-community .community-post-actions button{color:#65676b;font-size:11px;font-weight:700;padding:8px;border-radius:7px}.fb-community .community-post-actions button:hover,.fb-community .community-post-actions button.active{background:#f0f2f5;color:#087a4f}.fb-community .community-avatar{background:#e4e6eb;color:#3d4d58}
.fb-community .community-side-card{background:#fff;border:1px solid #dddfe2;color:#1c1e21}.fb-community .community-chat-page-layout{grid-template-columns:330px minmax(0,1fr)}
body.dark .fb-community{background:#18191a;color:#e4e6eb}.dark .fb-top{background:#242526;border-color:#3e4042}.dark .fb-search,.dark .fb-feed-search{background:#3a3b3c}.dark .fb-search input,.dark .fb-feed-search input{color:#e4e6eb}.dark .fb-circle{background:#3a3b3c;color:#e4e6eb}.dark .fb-top-avatar{background:#087a4f;color:#fff}.dark .fb-left-link{color:#e4e6eb}.dark .fb-left-link:hover,.dark .fb-left-link.active{background:#3a3b3c}.dark .fb-left-divider{background:#3e4042}.dark .fb-composer,.dark .fb-card,.dark .fb-community .community-post,.dark .fb-community .community-side-card{background:#242526;border-color:#3e4042!important;color:#e4e6eb}.dark .fb-composer-input,.dark .fb-real-composer textarea,.dark .fb-real-composer-bottom select,.dark .fb-real-composer-bottom input{background:#3a3b3c;color:#e4e6eb;border-color:#4e4f50}.dark .fb-composer-actions,.dark .fb-community .community-post-actions{border-color:#3e4042}.dark .fb-composer-actions button,.dark .fb-feed-tabs>button,.dark .fb-community .community-post-actions button{color:#b0b3b8}.dark .fb-topic-strip button{background:#242526;border-color:#3e4042;color:#b0b3b8}.dark .fb-topic-strip button.active{background:#263f35;border-color:#356f58;color:#5de0a0}.dark .fb-card p,.dark .fb-page-title p,.dark .fb-community .community-post-author span{color:#b0b3b8}.dark .fb-page-title h2,.dark .fb-community .community-post-title,.dark .fb-community .community-post-author strong{color:#e4e6eb}.dark .fb-community .community-post-text{color:#d0d3d7}.dark .fb-right-link,.dark .fb-topic-list button span{color:#5de0a0}
@media(max-width:1050px){.fb-body{grid-template-columns:190px minmax(0,680px);justify-content:center}.fb-right{display:none}}
@media(max-width:760px){.fb-top{grid-template-columns:auto 1fr auto;height:56px;padding:0 10px}.fb-logo strong{display:none}.fb-logo span{width:32px;height:32px}.fb-body{display:block;padding:10px}.fb-left{position:static;display:flex;overflow:auto;margin-bottom:10px;gap:5px}.fb-left-link{width:auto;white-space:nowrap;padding:8px 10px}.fb-left-divider{display:none}.fb-right{display:none}.fb-feed-tabs{grid-template-columns:auto auto 1fr}.fb-feed-search{width:100%}.fb-composer-actions{grid-template-columns:repeat(3,1fr)}.fb-page-title{display:block}.fb-page-title .btn{margin-top:10px}.fb-community .community-chat-page-layout{grid-template-columns:1fr}.fb-community .community-chat-page-empty{display:none}}

/* Dedicated Community app shell.
   Community keeps /community/ as its canonical URL, but visually replaces
   the finance-tracking shell while active. */
.shell.community-mode .sidebar,
.shell.community-mode .topbar,
.shell.community-mode .mobile-bottom-nav,
.shell.community-mode .mobile-more-overlay{display:none!important}
.shell.community-mode .main{margin-left:0!important;width:100%!important;padding-left:0!important;min-width:0!important;background:#080808!important}
.shell.community-mode .content{max-width:none!important;width:100%!important;padding:0!important}
.shell.community-mode #offlineCard{display:none!important}
.shell.community-mode #community{min-height:100vh;width:100%;padding:0!important}

.shell.community-mode .fb-community{
  min-height:100vh;
  background:#080808;
  color:#e4e6eb;
}
.shell.community-mode .fb-top{
  position:sticky;
  top:0;
  height:64px;
  background:#111;
  border-bottom:1px solid #252525;
  padding:0 18px;
  grid-template-columns:minmax(230px,320px) minmax(280px,560px) 1fr;
  z-index:30;
}
.fb-brand-wrap{display:flex;align-items:center;gap:14px;min-width:0}
.fb-back-finance{
  border:0;
  background:#202020;
  color:#b9bec7;
  border-radius:8px;
  padding:8px 10px;
  font-size:11px;
  font-weight:800;
  cursor:pointer;
  white-space:nowrap;
}
.fb-back-finance:hover{background:#2b2b2b;color:#fff}
.fb-brand-wrap .fb-logo{min-width:0}
.shell.community-mode .fb-logo{color:#fff}
.shell.community-mode .fb-logo span{background:#0b8f5a}
.shell.community-mode .fb-search{background:#1d1d1d;color:#7f8791}
.shell.community-mode .fb-search input{color:#e4e6eb}
.shell.community-mode .fb-search input::placeholder{color:#777f88}
.shell.community-mode .fb-top-actions{gap:6px}
.shell.community-mode .fb-circle{background:#202020;color:#d5d8dc}
.shell.community-mode .fb-circle:hover{background:#2c2c2c}

.shell.community-mode .fb-body{
  max-width:1280px;
  grid-template-columns:220px minmax(420px,680px) 280px;
  gap:18px;
  padding:18px 16px 48px;
  margin:0 auto;
}
.shell.community-mode .fb-left{top:82px}
.shell.community-mode .fb-left-link{color:#c9cdd3;font-weight:700}
.shell.community-mode .fb-left-link:hover{background:#191919;color:#fff}
.shell.community-mode .fb-left-link.active{background:#102a20;color:#39d98a;box-shadow:inset 2px 0 #20d681}
.shell.community-mode .fb-left-link span{color:#22c982}
.shell.community-mode .fb-left-divider{background:#292929}

.shell.community-mode .fb-composer,
.shell.community-mode .fb-community .community-post,
.shell.community-mode .fb-card{
  background:#111;
  border-color:#292929!important;
  color:#e4e6eb;
  box-shadow:0 1px 2px rgba(0,0,0,.28)!important;
}
.shell.community-mode .fb-composer-input{background:#202020;color:#8f969f}
.shell.community-mode .fb-composer-input:hover{background:#272727}
.shell.community-mode .fb-composer-actions{border-color:#292929}
.shell.community-mode .fb-composer-actions button{color:#aeb4bc}
.shell.community-mode .fb-composer-actions button:hover{background:#1c1c1c;color:#39d98a}
.shell.community-mode .fb-real-composer textarea,
.shell.community-mode .fb-real-composer-bottom select,
.shell.community-mode .fb-real-composer-bottom input{
  background:#181818;color:#e4e6eb;border-color:#353535
}
.shell.community-mode .fb-feed-tabs>button{color:#8f969f}
.shell.community-mode .fb-feed-tabs>button.active{background:transparent;color:#39d98a;border-bottom:2px solid #20d681;border-radius:0}
.shell.community-mode .fb-topic-strip button{background:#151515;border-color:#303030;color:#9ea5ad}
.shell.community-mode .fb-topic-strip button.active{background:#123a2b;border-color:#246c4f;color:#43df93}
.shell.community-mode .fb-right-title span,
.shell.community-mode .fb-right-link,
.shell.community-mode .fb-topic-list button span{color:#39d98a}
.shell.community-mode .fb-card p,
.shell.community-mode .fb-page-title p{color:#8f969f}
.shell.community-mode .fb-topic-list button{color:#d8dbe0}
.shell.community-mode .fb-topic-list button:hover{background:#1a1a1a}
.shell.community-mode .fb-community .community-post-head{padding-top:14px}
.shell.community-mode .fb-community .community-post-author strong,
.shell.community-mode .fb-community .community-post-title{color:#f1f2f3}
.shell.community-mode .fb-community .community-post-author span,
.shell.community-mode .fb-community .community-post-text{color:#9da3ab}
.shell.community-mode .fb-community .community-post-actions{background:#111;border-color:#292929}
.shell.community-mode .fb-community .community-post-actions button{color:#90979f}
.shell.community-mode .fb-community .community-post-actions button:hover,
.shell.community-mode .fb-community .community-post-actions button.active{background:#1b1b1b;color:#39d98a}

@media(max-width:1050px){
  .shell.community-mode .fb-body{grid-template-columns:190px minmax(0,680px)}
}
@media(max-width:760px){
  .shell.community-mode .fb-top{
    grid-template-columns:auto 1fr auto;
    padding:0 10px;
  }
  .fb-back-finance span{display:none}
  .shell.community-mode .fb-logo strong{display:none}
  .shell.community-mode .fb-body{display:block;padding:10px}
  .shell.community-mode .fb-left{position:static;display:flex;overflow:auto;margin-bottom:10px}
}


/* Lab adoption: photo posts and richer Community Profile. */
.community-photo-input{display:inline-flex;align-items:center;justify-content:center;position:relative;border:1px solid var(--line);border-radius:7px;padding:8px 10px;background:var(--card);color:var(--text);font-size:11px;font-weight:800;cursor:pointer;white-space:nowrap}
.community-photo-input input{position:absolute;inset:0;opacity:0;cursor:pointer;width:100%;height:100%}
.community-post-media{margin:8px 14px 14px;border-radius:10px;overflow:hidden;background:#0f171d;max-height:520px}
.community-post-media img{display:block;width:100%;max-height:520px;object-fit:cover}
.community-profile-hero{background-size:cover;background-position:center;min-height:210px}
.community-profile-hero:has(.community-profile-avatar-frame){background-color:var(--card)}
.community-profile-avatar-frame{width:82px;height:82px;border-radius:22px;margin:8px auto 12px;background:linear-gradient(135deg,#16b67b,#4b92f1);display:grid;place-items:center;color:#fff;font-size:24px;font-weight:900;overflow:hidden;border:3px solid rgba(255,255,255,.9);box-shadow:0 8px 20px rgba(0,0,0,.15)}
.community-profile-avatar-frame img{width:100%;height:100%;object-fit:cover}
.community-profile-meta{display:flex;justify-content:center;gap:7px;flex-wrap:wrap;margin:0 auto 14px}
.community-profile-meta span{padding:4px 8px;border-radius:999px;background:rgba(255,255,255,.82);color:var(--muted);font-size:10px;font-weight:800}
.community-social-links{display:grid;gap:5px;padding:12px 18px;border-top:1px solid var(--line);font-size:10px;color:var(--muted);word-break:break-word}
.community-profile-edit-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.community-profile-edit-grid label{min-width:0}
@media(max-width:700px){.community-profile-edit-grid{grid-template-columns:1fr}.fb-real-composer-bottom{flex-wrap:wrap}.community-photo-input{flex:1}.community-post-media{margin-left:10px;margin-right:10px}}


/* Community UX hardening: readable topic filters, preference menu, responsive composer and notifications. */
.community-topic-toolbar{display:flex;align-items:flex-start;gap:8px;position:relative;margin:0 0 10px;min-width:0}
.community-topic-toolbar .fb-topic-strip{flex:1;min-width:0;margin:0;overflow-x:auto;overflow-y:hidden;padding-bottom:2px;scrollbar-width:thin}
.community-topic-toolbar .fb-topic-strip button{flex:0 0 auto;min-width:max-content;font-size:12px;line-height:1.2}
.community-topic-menu-wrap{position:relative;flex:0 0 auto}
.community-topic-menu-button{border:1px solid #ccd0d5;background:var(--card,#fff);color:var(--text,#1c1e21);border-radius:999px;padding:8px 11px;font-size:11px;font-weight:800;cursor:pointer;white-space:nowrap}
.community-topic-manager{position:absolute;right:0;top:calc(100% + 7px);z-index:70;width:min(250px,calc(100vw - 28px));max-height:320px;overflow:auto;background:var(--card,#fff);border:1px solid var(--line,#dddfe2);border-radius:12px;box-shadow:0 14px 40px rgba(10,20,30,.18);padding:10px}
.community-topic-manager strong{display:block;font-size:11px;margin-bottom:7px}
.community-topic-manager label{display:flex;align-items:center;gap:8px;padding:7px 5px;border-radius:7px;font-size:11px;font-weight:700;cursor:pointer}
.community-topic-manager label:hover{background:var(--bg,#f5f6f7)}
.community-topic-manager input{accent-color:#087a4f}
.community-topic-manager>button{width:100%;border:0;background:transparent;text-align:left;padding:8px 5px;border-top:1px solid var(--line,#dddfe2);margin-top:4px;color:#087a4f;font-weight:800;cursor:pointer}
.fb-real-composer-bottom{flex-wrap:wrap;align-items:center}
.fb-real-composer-bottom select,.fb-real-composer-bottom input{flex:1 1 145px}
.fb-real-composer-bottom select{width:auto}
.community-notification-head-actions{display:flex;align-items:center;gap:7px}
.community-notification-head-actions .btn{white-space:nowrap}
.community-notifications{max-height:min(62vh,560px);overflow:auto}
@media(max-width:700px){
  .community-topic-toolbar{gap:6px}
  .community-topic-toolbar .fb-topic-strip{padding-bottom:4px}
  .community-topic-toolbar .fb-topic-strip button{font-size:12px;padding:8px 12px}
  .community-topic-menu-button{font-size:11px;padding:8px 10px}
  .fb-real-composer-bottom>*{flex:1 1 100%;width:100%!important}
  .community-notification-head-actions .btn{font-size:10px;padding:8px 9px}
}
body.dark .community-topic-menu-button,body.dark .community-topic-manager{background:#17233a;border-color:#2c3a52;color:#eef4ff}
body.dark .community-topic-manager label:hover{background:#202f50}


/* Safety affordance for private-message moderation intake. */
.community-message-meta{display:flex;align-items:center;justify-content:space-between;gap:.5rem}
.community-message-report{border:0;background:transparent;color:var(--muted,#667085);font:inherit;font-size:.72rem;padding:.15rem .25rem;cursor:pointer;text-decoration:underline;text-underline-offset:2px}
.community-message-report:hover,.community-message-report:focus-visible{color:var(--danger,#b42318)}
