/* Community presentation layer. Existing action, permission and form contracts stay intact. */
body .community-page{width:min(1180px,calc(100% - 48px));padding:38px 0 64px;--community-border:rgba(143,185,162,.17)}
.community-page .community-hero{align-items:center;padding:28px 30px;margin-bottom:22px;border:1px solid var(--community-border);border-radius:20px;background:radial-gradient(ellipse at top right,rgba(52,211,153,.09),transparent 65%),#0a1611}
.community-page .community-eyebrow{font-size:.65rem;letter-spacing:.15em;color:#74deb0;font-weight:700}
.community-page .community-hero h1{font-size:clamp(1.9rem,3.6vw,3rem);line-height:1.12;margin:12px 0;letter-spacing:-.035em}
.community-page .community-hero p{max-width:560px;margin:0;color:#a6bab0;font-size:.92rem;line-height:1.65}
.community-page .community-primary-button{flex-shrink:0;min-height:46px;border-radius:11px;padding:12px 19px;font-size:.83rem}
.community-page .collection-filters{display:grid;grid-template-columns:minmax(200px,2fr) repeat(3,minmax(110px,1fr)) auto auto;align-items:end;gap:12px;padding:18px;margin:0 0 24px;background:#09140f;border:1px solid var(--community-border);border-radius:15px}
.community-page .collection-filter-field{min-width:0}
.community-page .collection-filter-field>span{font-size:.66rem;letter-spacing:.035em;color:#a9beb3}
.community-page .collection-filters :is(input,select){width:100%;min-width:0;min-height:44px;font-size:.81rem;border-radius:9px}
.community-page .collection-filter-submit,.community-page .collection-filter-reset{min-height:44px;display:inline-flex;align-items:center;justify-content:center;padding:9px 15px;border-radius:9px}
.community-page .community-section-heading{margin:20px 0 16px;color:#a7bdb1}
.community-page .community-grid{gap:20px;align-items:start}
.community-page:not(.community-detail-page) .community-card{min-height:0;background:linear-gradient(145deg,#0c1a13,#08120e);box-shadow:0 8px 24px rgba(0,0,0,.12);border-radius:16px}
.community-page:not(.community-detail-page) .community-card:hover{transform:none;border-color:rgba(89,218,155,.38)}
.community-page:not(.community-detail-page) .community-card .community-card-author{display:flex!important;flex-wrap:wrap;align-items:center!important;padding:17px 18px!important;gap:10px!important;min-height:0}
.community-page:not(.community-detail-page) .community-card .community-author-controls{position:static!important;max-width:100%;width:auto!important;margin:0!important;flex-wrap:wrap;gap:6px}
.community-page:not(.community-detail-page) .community-card .community-card-view{position:static!important;min-width:0!important;width:auto!important;padding:0 9px;min-height:30px;background:rgba(255,255,255,.02);border-color:var(--community-border)}
.community-page .community-author-meta time{color:#93ac9e;font-size:.67rem;line-height:1.5}
.community-page:not(.community-detail-page) .community-card .community-owner-actions{width:auto;margin:0!important;padding:0;border:0;background:none}
.community-page:not(.community-detail-page) .community-card .community-owner-actions :is(a,button){width:44px!important;height:44px!important}
.community-page .community-card-copy{padding:20px 21px 22px;gap:12px}
.community-page .community-card-copy h2{margin:0;font-size:clamp(1.12rem,1.65vw,1.4rem);line-height:1.38;letter-spacing:-.02em;overflow-wrap:anywhere}
.community-page .community-card-copy p{margin:0;color:#a9bdb2;font-size:.88rem;line-height:1.75;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
.community-page .community-read-more{padding-top:6px;font-size:.78rem;color:#70dfa8}
.community-page .community-cover{height:220px;width:100%;object-fit:cover}
.community-page .community-engagement{padding:11px 16px!important;background:rgba(0,0,0,.09)}
.community-page .community-engagement :is(button,.post-like-login){min-height:44px!important}
.community-page .community-post-tags{gap:6px;margin:0;flex-wrap:wrap}
.community-page .community-post-tags :is(a,span){font-size:.7rem;padding:5px 9px;border-radius:7px;background:rgba(68,194,132,.07);color:#9ddcbb;border:1px solid rgba(99,194,147,.13)}
body .community-detail-page{width:min(960px,calc(100% - 48px));padding-top:28px}
.community-detail-page .community-back{min-height:44px;align-items:center;margin-bottom:12px;color:#a5baae!important}
.community-detail-page .community-article{background:#0b1712;border-radius:18px;border-color:var(--community-border);overflow:visible}
.community-detail-page .community-article-header{padding:30px clamp(20px,4vw,48px) 24px;text-align:start;border:0}
.community-detail-page .community-article-header .community-card-author{padding:0 0 24px;flex-wrap:wrap}
.community-detail-page .community-article-header h1{text-align:start;font-size:clamp(1.65rem,3.5vw,2.75rem);line-height:1.2;letter-spacing:-.035em;margin:12px 0 18px;max-width:100%;overflow-wrap:anywhere}
.community-detail-page .community-detail-tags{margin:0 0 12px}
.community-detail-page .reading-toolbar{position:static;margin:0 clamp(20px,4vw,48px) 24px;padding:10px 12px;border-radius:12px;background:#07110d;display:flex;flex-wrap:wrap;gap:10px;box-shadow:none;min-width:0}
.community-detail-page .reading-toolbar>div:last-child{display:flex;flex-wrap:wrap;gap:5px;margin-inline-start:auto;margin-left:auto;width:auto}
.community-detail-page .reading-toolbar button{min-height:44px;min-width:44px;border-radius:8px}
.community-detail-page .reading-toolbar-status strong{font-size:.7rem;color:#a1b9ab}
.community-detail-page .reading-view-count{background:none;border:0;padding:0 8px;box-shadow:none}
.community-detail-page .community-article-content{padding:12px clamp(20px,4vw,48px) 32px;max-width:850px;margin-inline:auto;line-height:1.85;color:#c3d3ca;min-width:0}
.community-detail-page .community-article-content>:first-child{margin-top:0}
.community-detail-page .community-article-content :is(h2,h3,h4){line-height:1.35;letter-spacing:-.02em;scroll-margin-top:100px}
.community-detail-page .community-article-content :is(pre,table){max-width:100%;overflow:auto}
.community-detail-page .community-article-content blockquote{border-inline-start:3px solid #51c98e;background:rgba(56,164,109,.055);padding:16px 20px;margin:20px 0;color:#b8d2c3}
.community-detail-page .community-article-cover{height:auto;max-height:520px;object-fit:contain;margin-bottom:24px}
.community-detail-page .community-article-footer{padding:16px clamp(20px,4vw,48px);align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}
.community-detail-page .community-discussion-link{display:inline-flex;align-items:center;gap:8px;min-height:44px;color:#8ae5b5;font-size:.81rem;text-decoration:none}
.community-detail-page .community-thread{margin-top:24px;padding:24px clamp(16px,3vw,30px);background:#0a1510;border-color:var(--community-border);overflow:visible;scroll-margin-top:90px}
.community-detail-page .community-thread-title{padding:0 0 18px;margin-bottom:18px;border-bottom:1px solid var(--community-border)}
.community-detail-page .community-thread-title h2{font-size:1.25rem}
.community-page .cc-comment{border-color:var(--community-border);border-radius:12px}
.community-page .community-empty{grid-column:1/-1;padding:44px 20px;text-align:center}
.community-page :is(a,button,input,select,textarea):focus-visible{outline:2px solid #6cdea4;outline-offset:3px}
@media(max-width:1050px){.community-page .collection-filters{grid-template-columns:repeat(3,minmax(0,1fr))}.community-page .collection-filter-field:first-child{grid-column:1/-1}.community-page .collection-filter-submit{grid-column:1/3}}
@media(max-width:780px){body .community-page,body .community-detail-page{width:calc(100% - 28px);padding-top:20px}.community-page .community-hero{padding:23px 20px;gap:20px}.community-page .community-hero h1{font-size:2rem}.community-page .community-grid{grid-template-columns:1fr}.community-page .community-primary-button{width:auto}.community-page .community-card .community-author-identity{min-width:160px}.community-detail-page .reading-toolbar>div:first-child{display:flex}.community-detail-page .community-thread-title{flex-wrap:wrap;gap:10px}.community-detail-page .community-author-controls{flex-wrap:wrap}.community-detail-page .community-owner-actions{width:auto;margin:0!important}}
@media(max-width:480px){.community-page .collection-filters{grid-template-columns:repeat(2,minmax(0,1fr));padding:14px;gap:12px}.community-page .collection-filter-field:last-of-type{grid-column:1/-1}.community-page .collection-filter-submit{grid-column:auto}.community-page .community-hero h1{font-size:1.85rem}.community-page .community-primary-button{width:100%}.community-page .community-card .community-card-author{padding:15px!important}.community-page .community-card .community-author-controls{justify-content:flex-start!important}.community-page .community-card-copy{padding:18px}.community-detail-page .reading-toolbar{margin-inline:16px}.community-detail-page .reading-toolbar>div:last-child{width:100%;margin:0}.community-detail-page .reading-toolbar button{flex:1}.community-detail-page .community-article-header{padding:22px 18px 16px}.community-detail-page .community-article-content{padding-inline:18px}.community-detail-page .community-article-footer{padding-inline:18px}.community-detail-page .community-author-meta time{white-space:normal}.community-detail-page .community-article-header .community-card-author{gap:12px!important}}
[dir="rtl"] .community-page .reading-toolbar>div:last-child{margin-left:0;margin-inline-start:auto}
@media(prefers-reduced-motion:reduce){.community-page *{scroll-behavior:auto!important;transition:none!important}}
/* Override legacy forced widths and absolute/grid action docks. */
body .community-page{width:min(1180px,calc(100% - 48px))!important;max-width:1180px!important}
body .community-detail-page{width:min(960px,calc(100% - 48px))!important;max-width:960px!important}
.community-page:not(.community-detail-page) .community-card .community-author-controls{display:flex!important;flex:0 1 auto;align-items:center;justify-content:flex-end;flex-wrap:nowrap}
.community-page:not(.community-detail-page) .community-card .community-owner-actions{display:flex!important;flex-shrink:0;gap:2px;max-width:none!important}
.community-page .community-author-identity>a:first-child{flex:0 0 42px;width:42px}
.community-page .community-avatar{flex-shrink:0!important;min-width:38px;aspect-ratio:1}
.community-detail-page .reading-toolbar{width:auto!important;max-width:none!important;box-sizing:border-box}
.community-detail-page .community-article-content{padding-top:12px!important;padding-bottom:28px!important}
@media(max-width:780px){body .community-page,body .community-detail-page{width:calc(100% - 28px)!important}.community-page:not(.community-detail-page) .community-card:has(.community-owner-actions) .community-author-identity{flex-basis:100%}.community-page:not(.community-detail-page) .community-card .community-author-controls{width:100%!important;justify-content:flex-start!important}.community-page:not(.community-detail-page) .community-card .community-owner-actions{margin-inline-start:auto!important}}
body .community-page:not(.community-detail-page) .community-grid .community-card .community-card-author{padding:17px 18px!important}
body .community-detail-page .community-article .community-article-header .community-card-author{padding:0 0 20px!important}
body .community-detail-page .community-thread{padding:22px clamp(16px,3vw,30px)!important}
body .community-detail-page .community-author-identity{min-width:0;flex:1 1 220px}
body .community-detail-page .community-author-controls{position:static;flex:0 1 auto}
body .community-page:not(.community-detail-page) .community-card .community-card-view{flex-shrink:0;min-width:46px!important}
@media(max-width:780px){body .community-page:not(.community-detail-page) .community-grid .community-card .community-card-author{padding:15px!important}}
/* Post identity and metadata: badge belongs to author, sharing to the post. */
.community-detail-page .community-author-name-row{display:flex;align-items:center;flex-wrap:wrap;gap:8px;min-width:0}
.community-detail-page .community-author-name-row>a{min-width:0;text-decoration:none}
.community-detail-page .community-author-name-row .community-badge{position:static;font-size:.59rem;padding:4px 7px;line-height:1.2;letter-spacing:.045em;background:rgba(64,201,134,.09);color:#81d9aa;border:1px solid rgba(86,196,144,.18);border-radius:6px}
.community-detail-page .community-post-meta-bar{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:20px;padding-top:14px;border-top:1px solid var(--community-border)}
.community-detail-page .community-post-meta-bar .reading-view-count{display:flex!important;flex-direction:row!important;align-items:center;gap:8px;padding:0;margin:0;background:none;border:0;box-shadow:none;min-width:0}
.community-detail-page .community-post-meta-bar .reading-view-count>span{display:flex;align-items:baseline;gap:5px;color:#9ab2a4;font-size:.73rem}
.community-detail-page .community-post-meta-bar .reading-view-count strong{font-size:.78rem;color:#ceded4}
.community-detail-page .community-post-meta-bar .reading-view-count small{font-size:.68rem;letter-spacing:.02em;text-transform:lowercase;color:#99b0a2}
.community-detail-page .community-post-meta-bar .reading-view-count svg{width:17px;height:17px;color:#81c9a3}
.community-detail-page .community-post-meta-bar .share-action{display:inline-flex;width:auto!important;min-width:44px;min-height:44px;gap:8px;padding:0 13px;margin-inline-start:auto;border-radius:9px;color:#bad6c7;background:rgba(255,255,255,.025);font-size:.76rem}
.community-detail-page .community-post-meta-bar .share-action svg{width:17px;height:17px}
.community-detail-page .reading-toolbar>.reading-toolbar-status{display:flex!important;flex-direction:row;align-items:center;order:0}
@media(max-width:480px){.community-detail-page .reading-toolbar{gap:7px;padding:10px}.community-detail-page .reading-toolbar>.reading-toolbar-status{font-size:.65rem}.community-detail-page .community-article-header{padding-bottom:16px}.community-detail-page .community-post-meta-bar{margin-top:16px;padding-top:10px}}
.community-detail-page .community-post-meta-bar .reading-view-count{align-self:center;min-height:44px}
.community-detail-page .community-post-meta-bar .share-action>span{display:inline!important;font-size:.76rem}
/* Anchored comment actions: never a detached fixed mobile sheet. */
.community-page .cc-comment{overflow:visible!important}
.community-page .cc-comment.has-open-actions{z-index:90}
.community-page .cc-header{display:grid!important;grid-template-columns:minmax(0,1fr) 44px;gap:4px 8px;align-items:start;min-height:44px}
.community-page .cc-header .cc-meta{grid-column:1;grid-row:1;display:flex;flex-wrap:wrap;align-items:center;gap:5px}
.community-page .cc-header-side{display:contents!important}
.community-page .cc-header-side>.cc-time{grid-column:1;grid-row:2;max-width:none;white-space:normal;overflow:visible;font-size:.62rem;line-height:1.45;color:#8fa99a}
.community-page .cc-header-side>.cc-action-menu{grid-column:2;grid-row:1/3;align-self:start;justify-self:end}
.community-page .cc-menu-trigger{width:44px;min-width:44px;min-height:44px;padding:0;justify-content:center;touch-action:manipulation}
.community-page .cc-menu-trigger>span{display:none}
.community-page .cc-menu-popover{position:absolute!important;top:calc(100% + 6px);bottom:auto;left:auto;right:0;width:190px;max-width:calc(100vw - 24px);padding:6px;z-index:100}
.community-page .cc-menu-popover.is-upward{top:auto;bottom:calc(100% + 6px)}
.community-page .cc-menu-popover .cc-menu-item{min-height:44px!important;height:44px!important;font-size:.78rem}
.community-page .community-comment-list-detail{padding:4px 0 14px!important}
.community-page .cc-markdown-bar{display:flex;flex-flow:row wrap;align-items:center;gap:6px;padding:8px!important;min-height:0}
.community-page .cc-markdown-bar>div{display:flex;flex-wrap:wrap;gap:2px;min-width:0}
.community-page .cc-markdown-bar>div:last-child{margin-inline-start:auto;gap:8px}
.community-page .cc-markdown-bar button{min-width:34px;min-height:36px!important;height:36px!important;padding:4px 7px!important}
.community-page .cc-markdown-status{display:block;font-size:.65rem;line-height:1.4;color:#91ac9c;margin:0;padding:0 8px}
.community-page .cc-markdown-status:empty{display:none}
.community-page .community-compose .comment-fields{gap:0}
.community-page .community-compose .cc-textarea{min-height:90px!important;padding:12px!important}
.community-page .comment-compose-toolbar{padding:9px!important;gap:8px;align-items:center}
@media(max-width:480px){.community-page .cc-markdown-bar>div[role="toolbar"]{width:100%;justify-content:space-between}.community-page .cc-markdown-bar>div:last-child{width:100%;justify-content:space-between}.community-page .cc-markdown-bar button{min-height:40px!important}.community-page .cc-comment{gap:9px;padding:12px}.community-page .cc-author{font-size:.77rem}.community-page .cc-thread-children{padding-left:9px;margin-left:4px}}
/* User-selected post hierarchy: identity/actions, reading tools, title/privacy. */
body .community-detail-page .community-article-header>.reading-toolbar{margin:0 0 22px!important;width:100%!important}
body .community-detail-page .community-article-header .community-author-controls{margin-inline-start:auto!important;margin-left:auto!important;justify-content:flex-end!important}
body .community-detail-page .community-article-header .community-owner-actions{margin:0!important;display:flex;justify-content:flex-end}
.community-detail-page .community-title-row{display:flex;align-items:flex-start;gap:10px;margin:12px 0 18px;min-width:0}
.community-detail-page .community-title-row h1{margin:0!important;flex:1;min-width:0}
.community-detail-page .community-title-row>.community-private{margin-top:4px;flex:0 0 32px;background:rgba(55,197,127,.08);color:#74d5a3;border:1px solid rgba(81,183,132,.16)}
@media(max-width:480px){body .community-detail-page .community-article-header .community-author-identity{flex-basis:100%}body .community-detail-page .community-article-header .community-author-controls{width:100%;display:flex;justify-content:flex-end!important}body .community-detail-page .community-article-header>.reading-toolbar{margin-bottom:18px!important}}
/* One compact utility panel above the title, rather than scattered rows. */
.community-detail-page .community-reading-panel{margin:0 0 22px;border:1px solid var(--community-border);border-radius:12px;background:#07110d;padding:10px 12px}
.community-detail-page .community-reading-panel .community-post-meta-bar{margin:0;padding:0 0 8px;border:0;min-height:44px}
body .community-detail-page .community-reading-panel>.reading-toolbar{margin:0!important;padding:8px 0 0!important;border:0;border-top:1px solid var(--community-border);border-radius:0;box-shadow:none;background:none;width:100%!important;gap:8px}
.community-detail-page .community-reading-panel .reading-toolbar-status{flex:1}
.community-detail-page .community-reading-panel .share-action{min-height:38px;height:38px}
.community-detail-page .community-article-header .community-card-author{row-gap:8px!important}
.community-detail-page .community-reading-panel .reading-toolbar>div[role="group"]{margin:0 0 0 auto}
@media(max-width:480px){.community-detail-page .community-reading-panel{margin-bottom:18px;padding:8px 10px}.community-detail-page .community-reading-panel .reading-toolbar-status{flex-basis:100%}.community-detail-page .community-reading-panel .reading-toolbar>div[role="group"]{width:100%;margin:0}.community-detail-page .community-article-header{padding-bottom:12px}}
/* Team badge belongs to the avatar; private visibility belongs to author metadata. */
.community-detail-page .community-avatar-wrap{position:relative;display:block;overflow:visible;padding-bottom:5px}
.community-detail-page .community-avatar-wrap>.community-badge{position:absolute;inset-inline-end:-5px;bottom:0;margin:0;padding:2px 4px;border:2px solid #0b1712;border-radius:5px;background:#57dc99;color:#062013;font-size:8px;line-height:1.2;letter-spacing:0;font-weight:800;z-index:1}
.community-detail-page .community-author-name-row>.community-private{width:24px!important;height:24px!important;min-height:24px!important;flex-basis:24px;padding:0!important;background:rgba(74,193,131,.07);border:1px solid rgba(74,193,131,.16);border-radius:6px!important;color:#79d6a2}
.community-detail-page .community-author-name-row>.community-private svg{width:13px;height:13px}
.community-detail-page .community-avatar-wrap>.community-badge{color:#062013!important;font-size:8px!important;text-transform:none!important;letter-spacing:0!important;text-shadow:none!important}
/* Keep owner actions level with the name/privacy row on every viewport. */
body .community-detail-page .community-article-header .community-card-author{display:grid!important;grid-template-columns:42px minmax(0,1fr) auto;align-items:start!important;gap:4px 10px!important}
body .community-detail-page .community-article-header :is(.community-author-identity,.community-author-meta){display:contents!important}
body .community-detail-page .community-article-header .community-avatar-wrap{grid-column:1;grid-row:1/3;align-self:start}
body .community-detail-page .community-article-header .community-author-name-row{grid-column:2;grid-row:1;align-self:center;gap:5px}
body .community-detail-page .community-author-name-row>a{overflow-wrap:anywhere}
body .community-detail-page .community-article-header .community-author-meta>time{grid-column:2/4;grid-row:2;min-width:0;white-space:normal}
body .community-detail-page .community-article-header .community-author-controls{grid-column:3;grid-row:1;width:auto!important;margin:0!important;align-self:center;justify-self:end;display:flex!important}
body .community-detail-page .community-article-header .community-owner-actions{padding:0!important;gap:0!important;border:0!important;background:none!important;display:flex!important;flex-wrap:nowrap!important}
body .community-detail-page .community-article-header .community-owner-actions :is(a,button){width:44px!important;height:44px!important;min-height:44px!important;padding:0!important}
/* A quiet title boundary and a compact, labelled reading control strip. */
.community-detail-page .community-title-divider{height:1px;border:0;margin:24px 0 0;background:linear-gradient(90deg,rgba(92,211,151,.48),rgba(139,180,159,.2) 55%,rgba(139,180,159,.04));width:100%}
.community-detail-page .community-reading-panel{padding:10px 14px;border-color:rgba(117,175,144,.19);background:linear-gradient(135deg,#0a1912,#08130f);box-shadow:inset 0 1px rgba(255,255,255,.025)}
body .community-detail-page .community-reading-panel>.reading-toolbar{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;padding-top:12px!important;gap:10px}
.community-detail-page .community-reading-panel .reading-toolbar-status{display:flex!important;flex-direction:column!important;align-items:flex-start!important;gap:4px;min-width:0}
.community-detail-page .reading-tools-label{font-size:.72rem;font-weight:600;letter-spacing:.025em;color:#c0d6c9}
.community-detail-page .reading-toolbar-status strong{font-size:.65rem;font-weight:400;color:#91ac9c;font-variant-numeric:tabular-nums}
body .community-detail-page .community-reading-panel .reading-toolbar>div[role="group"]{display:grid!important;grid-template-columns:repeat(3,44px) minmax(84px,auto);gap:4px;margin:0;width:auto;direction:ltr}
body .community-detail-page .community-reading-panel .reading-toolbar button{height:44px;min-width:0;min-height:44px;padding:0 8px;border:1px solid rgba(133,177,152,.17);border-radius:8px;background:rgba(255,255,255,.025);color:#c4d9ce;box-shadow:none;transition:background .15s,border-color .15s}
body .community-detail-page .community-reading-panel .reading-toolbar button:hover{background:rgba(76,194,131,.09);border-color:rgba(91,210,152,.38)}
body .community-detail-page .community-reading-panel .reading-focus-toggle{display:flex;align-items:center;justify-content:center;gap:6px;margin-inline-start:4px}
body .community-detail-page .community-reading-panel .reading-focus-toggle span{display:inline!important;font-size:.68rem}
body .community-detail-page .community-reading-panel .reading-focus-toggle svg{width:15px;height:15px}
body .community-detail-page .community-reading-panel .reading-focus-toggle[aria-pressed="true"]{background:rgba(67,201,132,.15);border-color:#58ba88;color:#8cedb7}
@media(max-width:600px){body .community-detail-page .community-reading-panel>.reading-toolbar{grid-template-columns:1fr}.community-detail-page .community-reading-panel .reading-toolbar-status{flex-direction:row!important;align-items:center!important;justify-content:space-between;width:100%}body .community-detail-page .community-reading-panel .reading-toolbar>div[role="group"]{grid-template-columns:repeat(3,minmax(0,1fr)) minmax(80px,1.4fr);width:100%}.community-detail-page .community-title-divider{margin-top:20px}}

/* Divider immediately follows title/tags, before optional collaborators. */
.community-detail-page .community-title-row:has(+ .community-title-divider){margin-bottom:0}
.community-detail-page .community-detail-tags:has(+ .community-title-divider){margin-bottom:0}
.community-detail-page .community-title-divider{margin:10px 0 0}
.community-detail-page .community-title-divider+.post-collaborators{margin-top:16px}
/* Body headings are typography only; the post header owns the sole automatic divider. */
.community-detail-page .community-article-content.post-markdown-body :is(h1,h2,h3,h4,h5,h6){border-bottom:0!important;padding-bottom:0}
/* Comment workspace: formatting, protected uploads and readable inline media. */
.community-page .cc-image-tools{padding:12px;border-top:1px solid rgba(143,185,162,.15);min-width:0;background:rgba(3,12,8,.2)}
.community-page .cc-image-heading{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.community-page .cc-image-upload,.community-page .cc-image-actions button{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:40px;padding:8px 11px;border:1px solid rgba(112,205,154,.23);border-radius:8px;background:#10231a;color:#b9e4cd;font-size:.72rem;cursor:pointer}
.community-page .cc-image-upload svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:1.5}
.community-page .cc-image-heading small,.community-page .cc-image-hint{color:#92ac9e;font-size:.66rem;line-height:1.65}
.community-page .cc-image-hint{margin:7px 0 0}
.community-page .cc-image-status{font-size:.72rem;line-height:1.5;color:#a8dac0;margin:7px 0 0;overflow-wrap:anywhere}
.community-page .cc-image-status:empty{display:none}
.community-page .cc-image-list{display:grid;gap:8px;margin-top:8px}
.community-page .cc-image-list:empty{display:none}
.community-page .cc-uploaded-image{display:grid;grid-template-columns:64px minmax(0,1fr);gap:10px;padding:10px;border:1px solid rgba(143,185,162,.18);border-radius:10px;background:#0a1711}
.community-page .cc-uploaded-image>img{width:64px;height:60px;object-fit:contain;border-radius:6px;background:#060e0a}
.community-page .cc-uploaded-image-details{min-width:0}
.community-page .cc-uploaded-image input{width:100%;min-width:0;padding:8px;border:1px solid rgba(143,185,162,.17);border-radius:6px;background:#07110d;color:#c2d8cb;font:11px/1.4 ui-monospace,monospace;direction:ltr}
.community-page .cc-image-actions{display:flex;gap:5px;flex-wrap:wrap;margin-top:7px}
.community-page .cc-image-actions button{font-size:.65rem;min-height:36px;padding:6px 9px}
.community-page .cc-image-actions button:last-child{background:transparent;color:#c4aaa9;border-color:rgba(208,143,143,.18)}
.community-page :is(.cc-text,.cc-markdown-preview) img{display:block;max-width:100%;width:auto;height:auto;max-height:560px;object-fit:contain;margin:12px 0;border:1px solid rgba(143,185,162,.2);border-radius:10px;background:#07110d}
.community-page .cc-text{min-width:0;overflow-wrap:anywhere;line-height:1.75}
.community-page .cc-text :is(pre,table){max-width:100%;overflow:auto}
.community-page .comment-fields{min-width:0}
.community-page .community-compose .cc-textarea{min-height:108px!important;line-height:1.65}
.community-page .cc-markdown-bar button{border-radius:6px}
.community-page .cc-image-tools button:disabled{opacity:.55;cursor:wait}
@media(max-width:480px){.community-page .cc-uploaded-image{grid-template-columns:1fr}.community-page .cc-image-heading{gap:6px}.community-page .cc-image-heading small{flex-basis:100%}.community-page .cc-image-actions button{min-height:44px;flex:1 1 auto}.community-page .cc-image-tools{padding:10px}}
/* Override legacy icon-only button sizing inside comment forms. */
body .community-page .cc-image-tools .cc-image-upload{width:auto!important;height:auto!important;min-height:44px!important;min-width:116px;padding:8px 12px!important;white-space:nowrap;flex-shrink:0;font-size:.74rem!important}
body .community-page .cc-image-tools .cc-image-upload svg{display:block!important;width:17px!important;height:17px!important;flex:0 0 17px}
body .community-page .cc-image-tools .cc-image-actions button{width:auto!important;height:auto!important;white-space:nowrap}
body .community-page .cc-image-tools input[readonly]{font-size:11px!important;line-height:1.5!important;min-height:38px!important;padding:8px!important}
body .community-page .cc-image-tools .cc-image-hint{margin:6px 0 0!important;font-size:.66rem!important;line-height:1.65!important}
/* Mobile card views stay at the upper right, beside the author like desktop. */
@media(max-width:780px){
body .community-page:not(.community-detail-page) .community-grid .community-card .community-card-author{display:grid!important;grid-template-columns:42px minmax(0,1fr) auto;gap:4px 10px!important;align-items:start!important}
body .community-page:not(.community-detail-page) .community-card :is(.community-author-identity,.community-author-meta,.community-author-controls){display:contents!important}
body .community-page:not(.community-detail-page) .community-card .community-author-identity>a{grid-column:1;grid-row:1/3}
body .community-page:not(.community-detail-page) .community-card .community-author-meta>a{grid-column:2;grid-row:1;min-width:0;align-self:center;overflow-wrap:anywhere}
body .community-page:not(.community-detail-page) .community-card .community-author-meta>time{grid-column:2/4;grid-row:2;min-width:0;white-space:normal}
body .community-page:not(.community-detail-page) .community-card .community-card-view{grid-column:3;grid-row:1;justify-self:end;align-self:center;margin:0!important;min-height:30px}
body .community-page:not(.community-detail-page) .community-card .community-author-controls>.community-private{grid-column:1;grid-row:3;justify-self:start}
body .community-page:not(.community-detail-page) .community-card .community-owner-actions{grid-column:2/4;grid-row:3;justify-self:end;margin:0!important}
}

/* Clear vector controls and avatar-attached team identity, including replies. */
body .community-page .cc-markdown-bar [role="toolbar"]{display:flex;gap:2px;flex-wrap:wrap}
body .community-page .cc-markdown-bar [role="toolbar"] button{display:inline-flex!important;align-items:center;justify-content:center;width:38px!important;min-width:38px;min-height:44px!important;padding:8px!important;color:#bce5cf!important}
body .community-page .cc-markdown-bar svg,body .community-page .cc-image-actions svg{width:18px!important;height:18px!important;flex:0 0 18px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;display:block}
body .community-page .cc-image-actions button{min-height:44px!important}
body .community-page .cc-avatar-col{padding-block-end:5px;overflow:visible}
body .community-page .cc-avatar-admin{position:relative;overflow:visible!important}
body .community-page .cc-avatar-admin img{border-radius:10px}
body .community-page .cc-avatar-team{position:absolute;inset-inline-end:-3px;bottom:-5px;z-index:3;display:inline-flex;align-items:center;justify-content:center;min-width:27px;height:16px;margin:0;padding:0 4px;background:#57dc99;color:#062013;border:2px solid #0b1712;border-radius:5px;font-size:8px;font-weight:800;line-height:1;text-transform:none;letter-spacing:0;white-space:nowrap;box-shadow:0 2px 8px rgba(0,0,0,.28);pointer-events:none}

/* Comment composer polish: stable hierarchy and touch-friendly responsive actions. */
body .community-page .community-compose{border:1px solid rgba(118,180,148,.18);border-radius:14px;background:linear-gradient(145deg,rgba(10,25,18,.92),rgba(6,17,12,.92));overflow:visible}
body .community-page .community-compose .comment-fields{overflow:hidden;border-radius:12px;background:rgba(3,12,8,.24)}
body .community-page .community-compose .cc-textarea{border:0!important;border-bottom:1px solid rgba(118,180,148,.14)!important;border-radius:0!important;background:transparent!important;resize:vertical}
body .community-page .cc-markdown-bar{border-bottom:1px solid rgba(118,180,148,.12)}
body .community-page .cc-markdown-bar [role="toolbar"] .cc-image-upload{position:relative;margin-inline-start:5px;width:44px!important;min-width:44px!important;border:1px solid rgba(87,220,153,.42)!important;background:rgba(70,210,137,.12)!important;color:#72e5a9!important;box-shadow:inset 0 0 0 1px rgba(87,220,153,.05)}
body .community-page .cc-markdown-bar [role="toolbar"] .cc-image-upload::before{content:"";position:absolute;inset-inline-start:-5px;top:9px;bottom:9px;width:1px;background:rgba(132,179,154,.18)}
body .community-page .cc-markdown-bar [role="toolbar"] .cc-image-upload:hover{border-color:rgba(102,235,168,.7)!important;background:rgba(70,210,137,.2)!important;color:#a1f4c8!important}
body .community-page .cc-image-tools{padding:0;border:0;background:transparent}
body .community-page .cc-image-tools:not(:has(.cc-uploaded-image)):has(.cc-image-status:empty){display:none}
body .community-page .cc-image-list{margin:0;padding:10px 10px 0}
body .community-page .cc-image-status{margin:0;padding:8px 10px 10px}
body .community-page .cc-uploaded-image{grid-template-columns:72px minmax(0,1fr);align-items:start;padding:11px}
body .community-page .cc-uploaded-image>img{width:72px;height:68px}
body .community-page .cc-image-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}
body .community-page .cc-image-actions .cc-image-action{width:100%!important;min-width:0;white-space:normal!important;line-height:1.25;text-align:center}
body .community-page .cc-image-actions .cc-image-action-copy{grid-column:1/-1;background:rgba(74,218,144,.14);border-color:rgba(91,225,156,.42);color:#8ff0bc;font-weight:750}
body .community-page .cc-image-actions .cc-image-action-remove{background:rgba(198,91,100,.045);color:#d7a7aa}
body .community-page .cc-uploaded-image input[readonly]{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}
body .community-page .comment-compose-toolbar{border-top:0!important;background:rgba(7,20,14,.5)}
@media(max-width:480px){
  body .community-page .community-compose{border-radius:12px}
  body .community-page .community-compose-avatar{display:none}
  body .community-page .community-compose .comment-fields{width:100%}
  body .community-page .cc-uploaded-image{grid-template-columns:52px minmax(0,1fr);gap:8px;padding:9px}
  body .community-page .cc-uploaded-image>img{width:52px;height:52px}
  body .community-page .cc-image-actions{grid-template-columns:1fr 1fr}
  body .community-page .cc-image-actions .cc-image-action-copy{grid-column:1/-1}
  body .community-page .cc-avatar-team{inset-inline-end:-3px;bottom:-6px;min-width:25px;height:15px;font-size:7px;padding-inline:3px}
}

/* Public feed identity: private state beside the name; actions top-right, views centered below. */
body .community-page:not(.community-detail-page) .community-author-name-row{display:flex;align-items:center;gap:7px;min-width:0}
body .community-page:not(.community-detail-page) .community-author-name-row>a{min-width:0;overflow-wrap:anywhere;text-decoration:none}
body .community-page:not(.community-detail-page) .community-author-name-row>.community-private{display:inline-flex!important;align-items:center;justify-content:center;width:24px!important;height:24px!important;min-width:24px;padding:0!important;margin:0;border:1px solid rgba(74,193,131,.16);border-radius:6px;background:rgba(74,193,131,.07);color:#79d6a2}
body .community-page:not(.community-detail-page) .community-author-name-row>.community-private svg{width:13px;height:13px}
body .community-page:not(.community-detail-page) .community-grid .community-card .community-card-author{display:grid!important;grid-template-columns:42px minmax(0,1fr) auto;grid-template-rows:auto auto auto;gap:4px 10px!important;align-items:start!important}
body .community-page:not(.community-detail-page) .community-card :is(.community-author-identity,.community-author-meta,.community-author-controls){display:contents!important}
body .community-page:not(.community-detail-page) .community-card .community-author-identity>a{grid-column:1;grid-row:1/3}
body .community-page:not(.community-detail-page) .community-card .community-author-meta>.community-author-name-row{grid-column:2;grid-row:1;align-self:center}
body .community-page:not(.community-detail-page) .community-card .community-author-meta>time{grid-column:2/4;grid-row:2}
body .community-page:not(.community-detail-page) .community-card .community-owner-actions{grid-column:3;grid-row:1;align-self:center;justify-self:end;margin:0!important}
body .community-page:not(.community-detail-page) .community-card .community-card-view{grid-column:1/4;grid-row:3;justify-self:center;align-self:center;margin-top:8px!important;min-width:64px!important;justify-content:center}
@media(max-width:780px){
  body .community-page:not(.community-detail-page) .community-grid .community-card .community-card-author{row-gap:4px!important}
}

/* Compact uploaded-image card: clear copy action without oversized controls. */
body .community-page .cc-uploaded-image{grid-template-columns:48px minmax(0,1fr);gap:8px;padding:8px;border-radius:9px}
body .community-page .cc-uploaded-image>img{width:48px;height:48px;border-radius:5px}
body .community-page .cc-image-tools input[readonly]{min-height:32px!important;height:32px!important;padding:6px 8px!important;font-size:10px!important}
body .community-page .cc-image-actions{grid-template-columns:minmax(0,1.35fr) repeat(2,minmax(0,.8fr));gap:5px;margin-top:5px}
body .community-page .cc-image-actions .cc-image-action{grid-column:auto;min-height:36px!important;height:36px!important;padding:5px 7px!important;font-size:.61rem;white-space:nowrap!important}
body .community-page .cc-image-actions .cc-image-action-copy{grid-column:auto}
body .community-page .cc-image-actions svg{width:15px!important;height:15px!important;flex-basis:15px}
body .community-page .cc-image-status{padding:5px 10px 8px;font-size:.65rem;line-height:1.4}
@media(max-width:480px){
  body .community-page .cc-uploaded-image{grid-template-columns:44px minmax(0,1fr);gap:7px;padding:7px}
  body .community-page .cc-uploaded-image>img{width:44px;height:44px}
  body .community-page .cc-image-actions{grid-template-columns:minmax(0,1.35fr) repeat(2,minmax(0,.8fr))}
  body .community-page .cc-image-actions .cc-image-action{min-height:36px!important;height:36px!important;padding-inline:5px!important;font-size:.58rem}
}

/* A single compact post-upload action: auto-insert handles placement. */
body .community-page .cc-uploaded-image-details{display:grid;grid-template-columns:minmax(0,1fr);gap:5px;align-items:center}
body .community-page .cc-image-actions{display:grid;grid-template-columns:minmax(0,1.25fr) minmax(0,.75fr);gap:5px;margin:0}
body .community-page .cc-image-actions .cc-image-action-copy{width:100%!important;min-width:0;height:34px!important;min-height:34px!important;padding:5px 10px!important}
body .community-page .cc-image-actions .cc-image-action-remove{width:100%!important;min-width:0;height:34px!important;min-height:34px!important;padding:5px 9px!important}
@media(max-width:480px){
  body .community-page .cc-uploaded-image-details{grid-template-columns:minmax(0,1fr)}
  body .community-page .cc-image-actions .cc-image-action-copy{height:34px!important;min-height:34px!important}
}

/* Unified Discussion workspace on feed cards and standalone post pages. */
body .community-page .community-thread-title{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:16px 18px;margin:0!important;background:rgba(255,255,255,.012);border-bottom:1px solid rgba(126,181,151,.14)}
body .community-page .community-thread-title>div{display:flex;align-items:center;gap:9px;min-width:0}
body .community-page .community-thread-title h2{margin:0;font-size:1.02rem;line-height:1.25}
body .community-page .community-thread-title>span{flex:0 0 auto;color:#91a99c;font-size:.7rem}
body .community-page .community-compose{margin:14px 18px!important}
body .community-page .community-compose .comment-fields{border-radius:12px;background:#07130e}
body .community-page .community-compose .cc-textarea{min-height:104px!important;max-height:220px;padding:13px 14px!important}
body .community-page .cc-markdown-bar{display:grid!important;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:6px 10px;padding:7px 9px!important;background:rgba(4,15,10,.55)}
body .community-page .cc-markdown-bar>div[role="toolbar"]{display:grid!important;grid-template-columns:repeat(7,38px);align-items:center;justify-content:start;gap:3px;width:auto}
body .community-page .cc-markdown-bar>div[role="toolbar"] button{width:38px!important;min-width:38px!important;height:40px!important;min-height:40px!important;padding:8px!important;border:1px solid transparent;border-radius:7px;color:#bce5cf!important}
body .community-page .cc-markdown-bar>div[role="toolbar"] button:hover{background:rgba(84,207,143,.08);border-color:rgba(95,204,150,.18)}
body .community-page .cc-markdown-bar>div:last-child{display:flex;align-items:center;justify-content:flex-end;gap:10px;margin:0;white-space:nowrap}
body .community-page .cc-markdown-bar [data-comment-md-count]{font-size:.61rem;color:#758f81;font-variant-numeric:tabular-nums}
body .community-page .cc-markdown-preview-toggle{display:inline-flex!important;align-items:center;justify-content:center;gap:6px;width:88px!important;min-width:88px!important;height:34px!important;min-height:34px!important;padding:5px 9px!important;border:1px solid rgba(126,181,151,.16)!important;border-radius:8px!important;background:rgba(255,255,255,.018)!important;color:#a9c5b6!important;font-size:.64rem!important;letter-spacing:.01em;transition:border-color .18s ease,background .18s ease,color .18s ease}
body .community-page .cc-markdown-preview-toggle svg{display:block!important;width:15px!important;height:15px!important;min-width:15px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
body .community-page .cc-markdown-preview-toggle .cc-edit-icon{display:none!important}
body .community-page .cc-markdown-preview-toggle[aria-expanded="true"]{border-color:rgba(83,225,151,.38)!important;background:rgba(63,202,130,.1)!important;color:#8beab7!important}
body .community-page .cc-markdown-preview-toggle[aria-expanded="true"] .cc-preview-icon{display:none!important}
body .community-page .cc-markdown-preview-toggle[aria-expanded="true"] .cc-edit-icon{display:block!important}
body .community-page .cc-markdown-preview-toggle:focus-visible{outline:2px solid rgba(91,225,156,.42)!important;outline-offset:2px}
body .community-page .cc-markdown-bar [role="toolbar"] .cc-image-upload{width:40px!important;min-width:40px!important;height:40px!important;min-height:40px!important;margin-inline-start:2px;padding:8px!important}
body .community-page .comment-compose-toolbar{display:flex!important;flex-direction:row!important;align-items:center!important;justify-content:space-between!important;gap:8px!important;min-height:50px;padding:7px 9px!important}
body .community-page .comment-compose-tools{display:flex;align-items:center;justify-content:flex-start!important;gap:6px;min-width:0}
body .community-page .compose-anonymous-toggle{margin:0!important;min-height:34px}
body .community-page .community-compose .comment-submit{margin-inline-start:auto!important}
body .community-page .community-comment-list-detail{display:grid;gap:10px;padding:0 18px 18px!important}
/* Comment images should sit naturally in the message, without a green frame. */
body .community-page :is(.cc-text,.cc-markdown-preview) img,
body .community-page .cc-uploaded-image>img{
  border:0!important;
  outline:0!important;
  box-shadow:none!important;
  background:transparent!important;
}
@media(max-width:600px){
  body .community-page .community-thread-title{padding:14px}
  body .community-page .community-compose{margin:12px!important}
  body .community-page .community-compose .cc-textarea{min-height:96px!important;padding:12px!important}
  body .community-page .cc-markdown-bar{grid-template-columns:1fr;padding:6px 7px!important;gap:4px}
  body .community-page .cc-markdown-bar>div[role="toolbar"]{grid-template-columns:repeat(7,minmax(0,1fr));gap:2px;width:100%}
  body .community-page .cc-markdown-bar>div[role="toolbar"] button{width:100%!important;min-width:0!important;height:38px!important;min-height:38px!important;padding:7px!important}
  body .community-page .cc-markdown-bar [role="toolbar"] .cc-image-upload{width:100%!important;min-width:0!important;height:38px!important;min-height:38px!important;margin:0}
  body .community-page .cc-markdown-bar [role="toolbar"] .cc-image-upload::before{display:none}
  body .community-page .cc-markdown-bar>div:last-child{width:100%;justify-content:space-between;padding:0 2px}
  body .community-page .comment-compose-toolbar{flex-direction:row!important;align-items:center!important;padding:7px 8px!important}
  body .community-page .community-compose .comment-submit{width:38px!important;min-width:38px!important;max-width:38px!important}
  body .community-page .community-comment-list-detail{padding:0 12px 14px!important}
}

/* Comment media and preview placement: full readable media, stable top action. */
body .community-page :is(.cc-text,.cc-markdown-preview) img{
  width:min(100%,760px)!important;
  max-width:100%!important;
  max-height:720px!important;
  height:auto!important;
  object-fit:contain;
}
body .community-page :is(.comment-fields,form):has(> .cc-markdown-bar){position:relative}
body .community-page :is(.comment-fields,form):has(> .cc-markdown-bar)>.cc-textarea{
  padding-inline-end:112px!important;
}
body .community-page :is(.comment-fields,form):has(> .cc-markdown-bar) .cc-markdown-preview-toggle{
  position:absolute!important;
  z-index:6;
  top:10px;
  inset-inline-end:10px;
  margin:0!important;
  width:92px!important;
  min-width:92px!important;
  height:36px!important;
}
body .community-page :is(.comment-fields,form):has(> .cc-markdown-bar)>.cc-markdown-preview{
  min-height:96px;
  padding:54px 14px 14px!important;
}
@media(max-width:600px){
  body .community-page :is(.cc-text,.cc-markdown-preview) img{width:100%!important;max-height:620px!important}
  body .community-page :is(.comment-fields,form):has(> .cc-markdown-bar)>.cc-textarea{padding-inline-end:106px!important}
  body .community-page :is(.comment-fields,form):has(> .cc-markdown-bar) .cc-markdown-preview-toggle{top:8px;inset-inline-end:8px;width:88px!important;min-width:88px!important;height:34px!important}
}
