/* BaseHeart Community: one destination, four clear tasks. */
/* Community is a sibling of .content-wrap: without its own stacking level,
   .main-content::before (z-index:1) covers its tabs/feed while the positioned
   header and sticky profile rail float above the particle overlay. */
.main-content > .community-page{position:relative;z-index:2;isolation:isolate;background:transparent}
.community-page{flex:1;min-width:0;overflow:auto;color:var(--text);background:var(--canvas)}
.community-wrap{width:min(1180px,calc(100% - 40px));margin:0 auto;padding:36px 0 80px}
.community-header{position:relative;padding:28px 32px;border:1px solid var(--border-soft);background:linear-gradient(120deg,var(--surface),var(--surface-2));border-radius:24px;margin-bottom:22px;overflow:hidden}
.community-header:after{content:"♥";position:absolute;inset-inline-end:38px;top:5px;font-size:112px;color:var(--heart);opacity:.11;pointer-events:none}
.community-header h1{font-family:var(--font-display);font-size:clamp(32px,4vw,48px);margin:8px 0 4px;letter-spacing:-.045em}
.community-header p{color:var(--muted);margin:0}.community-kicker{font-size:11px;letter-spacing:.18em;color:var(--heart-strong);font-weight:760}
.community-tabs{display:flex;gap:8px;overflow-x:auto;padding:4px 0 14px;margin-bottom:14px}
.community-action{appearance:none;min-height:40px;padding:10px 16px;background:var(--surface-2);border:1px solid var(--border);color:var(--text);border-radius:12px;font:inherit;font-weight:650;cursor:pointer;white-space:nowrap;transition:background .16s,border-color .16s,transform .16s}
.community-action:hover{background:var(--surface-3);border-color:var(--heart)}
.community-action:focus-visible,.community-page input:focus-visible,.community-page textarea:focus-visible{outline:2px solid var(--heart);outline-offset:3px}
.community-action.is-active{background:var(--heart-soft);border-color:var(--heart);color:var(--text)}
.community-panel h2{font-size:21px;letter-spacing:-.02em;margin:0 0 15px}
.community-panel h3{font-size:17px;margin:3px 0}
.community-panel p{overflow-wrap:anywhere}
.community-split{display:grid;grid-template-columns:minmax(0,1fr) 320px;gap:18px;align-items:start}
.community-list{display:grid;gap:10px}
.community-rank,.community-card,.community-row{border:1px solid var(--border-soft);background:var(--surface);border-radius:16px}
.community-rank{display:flex;align-items:center;gap:20px;padding:16px 18px}
.community-rank>strong{display:grid;place-items:center;min-width:40px;height:40px;border-radius:12px;background:var(--heart-soft);color:var(--heart-strong);font-size:20px}
.community-rank>div{display:grid;gap:3px}.community-rank small{color:var(--muted)}
.community-card{padding:18px}.community-settings{display:grid;gap:12px}.community-settings h2{margin:0}
.community-friend-id{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:8px;padding:12px;border:1px solid var(--border);border-radius:12px;background:var(--surface-2)}
.community-friend-id small{grid-column:1/-1;color:var(--muted);font-weight:700}
.community-friend-id code{font-family:ui-monospace,SFMono-Regular,Consolas,monospace;font-size:12px;letter-spacing:.02em;overflow-wrap:anywhere;outline-offset:3px}
.community-friend-id .community-action{min-height:34px;padding:6px 10px}
.community-settings input,.community-panel input,.community-panel textarea,.community-form input,.community-form textarea{min-width:0;width:100%;font:inherit;background:var(--canvas);color:var(--text);border:1px solid var(--border);border-radius:11px;padding:11px 12px}
.community-check{display:flex;align-items:center;gap:10px;font-size:13px}.community-check input{width:18px;height:18px;accent-color:var(--heart)}
.community-toolbar{display:flex;align-items:center;flex-wrap:wrap;justify-content:space-between;gap:12px;margin-bottom:20px}.community-toolbar h2{margin:0}
.community-project-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(250px,100%),1fr));gap:16px}
.community-project-visual{min-height:154px;display:grid;place-items:center;border-radius:12px;color:var(--heart-strong);font-size:30px;font-weight:800;background:radial-gradient(circle at 72% 30%,var(--heart-soft),transparent 72%),var(--surface-2)}
.community-card-actions{display:flex;gap:6px;align-items:center;flex-wrap:wrap}.community-card-actions .community-action{font-size:12px;padding:7px 11px}
.community-row{padding:14px 16px;display:flex;align-items:center;justify-content:space-between;gap:12px}
.community-empty{color:var(--muted)}
.community-feedback{color:var(--danger);min-height:20px;font-size:13px}
.community-dialog{border:1px solid var(--border);background:var(--surface);color:var(--text);border-radius:18px;width:min(420px,95vw)}
.community-dialog::backdrop{background:rgba(0,0,0,.6)}.community-form{display:grid;gap:10px}
@media(max-width:820px){.community-split{grid-template-columns:minmax(0,1fr)}.community-wrap{width:min(100% - 24px,800px);padding-top:16px}.community-header{padding:22px}.community-header:after{inset-inline-end:5px;font-size:88px}}
@media(max-width:520px){.community-tabs .community-action{padding:9px 12px}.community-toolbar input{flex-basis:100%}.community-header h1{font-size:32px}}
@media(prefers-reduced-motion:reduce){.community-action{transition:none}}

/* Explicit palette: the host sets --canvas and --text for both modes. */
html[data-theme="light"] .community-page{background:transparent;color:var(--text)}

/* Community 2.0 — creator activity, not an empty leaderboard.
   Uses the BaseHeart light/dark tokens and logical properties for RTL. */
.community-feed-layout{display:grid;grid-template-columns:minmax(0,1fr) 284px;gap:20px;align-items:start}
.community-feed-main{min-width:0;display:grid;gap:14px}
.community-feed-filter{display:flex;gap:8px;overflow-x:auto;scrollbar-width:thin;padding:0 0 4px}
.community-feed-filter .community-action{font-size:13px;min-height:36px;padding:8px 14px}
.community-feed-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:6px 2px 0}
.community-feed-heading h2{margin:0;font-size:18px;letter-spacing:-.025em}
.community-feed-compose{display:grid;gap:13px;padding:21px;border-radius:20px;background:var(--surface);border-color:var(--border-soft)}
.community-feed-compose-heading,.community-feed-author,.community-feed-me{display:flex;align-items:center;gap:11px;min-width:0}
.community-feed-compose-title{font-size:14px;color:var(--muted);font-weight:650}
.community-feed-avatar{display:inline-grid;place-items:center;flex:none;inline-size:38px;block-size:38px;background:var(--heart-soft);color:var(--heart-strong);border:1px solid var(--border);border-radius:14px;font-size:16px;font-weight:800}
.community-feed-types{display:flex;gap:6px;flex-wrap:wrap}
.community-feed-types .community-action{padding:6px 13px;min-height:34px;font-size:12px}
.community-feed-editor{resize:vertical;min-height:94px;line-height:1.6}
.community-feed-compose-footer{display:flex;align-items:center;justify-content:space-between;gap:16px}
.community-muted{color:var(--muted);font-size:12px;line-height:1.5}
.community-primary{background:var(--heart-soft);color:var(--heart-strong);border-color:var(--heart);font-weight:770}
.community-primary:hover{background:var(--heart-soft);filter:brightness(1.07)}
.community-primary:disabled,.community-feed-post .community-action:disabled{opacity:.55;cursor:not-allowed}
.community-feed-attach{display:grid;gap:8px;padding:12px;background:var(--surface-2);border:1px solid var(--border);border-radius:12px}
.community-feed-attach label{display:grid;gap:7px;font-size:12px;font-weight:720}
.community-feed-attach select{width:100%;min-width:0;background:var(--canvas);color:var(--text);border:1px solid var(--border);border-radius:10px;padding:10px}
.community-feed-post{min-width:0;border:1px solid var(--border-soft);background:var(--surface);border-radius:20px;padding:21px;display:grid;gap:16px}
.community-feed-author{justify-content:space-between}
.community-feed-author-copy{display:grid;gap:3px;min-width:0;flex:1}
.community-feed-author-copy strong{font-size:14px;overflow:hidden;text-overflow:ellipsis}
.community-feed-author-copy .community-muted{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.community-feed-post-text{margin:0;white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.7;font-size:14px}
.community-feed-post-actions{display:flex;align-items:center;flex-wrap:wrap;gap:5px;border-top:1px solid var(--border-soft);padding-top:12px}
.community-feed-post-actions .community-action{font-weight:680;font-size:12px;min-height:33px;padding:7px 10px;border-color:transparent;background:transparent}
.community-feed-post-actions .community-action:hover,.community-feed-post-actions .community-action.is-active{color:var(--heart-strong);background:var(--heart-soft);border-color:var(--border)}
.community-follow{min-height:32px;padding:6px 11px;font-size:12px}
.community-creator-link{padding:0;border:0;background:transparent;min-height:0;display:inline-flex;width:max-content;max-width:100%;font-size:14px}
.community-creator-link:hover{color:var(--heart-strong);background:transparent;border:0}
.community-feed-linked-project{min-width:0;display:grid;grid-template-columns:56px minmax(0,1fr) auto;align-items:center;gap:13px;padding:12px;border:1px solid var(--border);border-radius:15px;background:radial-gradient(circle at 2% 20%,var(--heart-soft),transparent 55%),var(--surface-2)}
.community-feed-project-mark{display:grid;place-items:center;inline-size:56px;block-size:56px;border:1px solid var(--border);background:var(--surface);border-radius:12px;color:var(--heart-strong);font-size:34px;line-height:1}
.community-feed-linked-project>div{display:grid;gap:3px;min-width:0}
.community-feed-linked-project strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:14px}
.community-feed-linked-project .community-muted{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.community-feed-linked-project .community-action{font-size:12px;min-height:36px}
.community-feed-empty{display:grid;justify-items:start;gap:12px;border:1px dashed var(--border);background:var(--surface);border-radius:20px;padding:38px 26px}
.community-feed-empty h3,.community-feed-empty p{margin:0}
.community-feed-empty-mark{display:grid;place-items:center;inline-size:56px;block-size:56px;background:var(--heart-soft);border-radius:17px;color:var(--heart-strong);font-size:38px}
.community-feed-more{justify-self:center;min-width:156px}
.community-feed-rail{display:grid;gap:12px;position:sticky;top:22px;background:var(--surface);border:1px solid var(--border-soft);padding:18px;border-radius:20px}
.community-feed-rail h2{font-size:16px;margin:0}
.community-feed-me{flex-wrap:wrap;gap:8px}
.community-feed-me strong{font-size:13px;overflow-wrap:anywhere}
.community-feed-me code{flex-basis:100%;font-size:11px;overflow-wrap:anywhere;color:var(--muted)}
.community-feed-rail-button{width:100%;min-height:35px;font-size:12px}
.community-feed-featured{display:grid;gap:12px;border-top:1px solid var(--border-soft);padding-top:16px}
.community-feed-featured-item{display:grid;gap:4px;border-radius:11px;background:var(--surface-2);padding:11px;border:1px solid var(--border-soft)}
.community-feed-featured-item strong{font-size:12px;overflow-wrap:anywhere}
.community-feed-featured .community-action{width:100%;font-size:12px}
.community-feed-dialog{max-width:min(570px,calc(100vw - 24px));width:100%;max-height:86vh;overflow:auto;padding:23px}
.community-feed-dialog .community-form h2{font-size:21px;margin:0}
.community-feed-dialog .community-action{width:max-content;max-width:100%;white-space:normal;text-align:start}
.community-feed-comments{display:grid;gap:10px;max-height:45vh;overflow-y:auto}
.community-feed-comment{display:grid;gap:6px;background:var(--surface-2);border:1px solid var(--border-soft);border-radius:12px;padding:12px}
.community-feed-comment p{margin:0;white-space:pre-wrap;overflow-wrap:anywhere}
.community-feed-comment-meta{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.community-feed-comment-reply{margin-inline-start:18px;border-inline-start:2px solid var(--heart)}
.community-feed-answer{background:var(--heart-soft);color:var(--heart-strong);font-size:11px;font-weight:750;padding:4px 7px;border-radius:8px}
.community-feed-comment-compose{display:grid;gap:9px;border-top:1px solid var(--border-soft);padding-top:13px}
.community-feed-profile-post{display:grid;gap:6px;padding:12px;background:var(--surface-2);border-radius:12px;border:1px solid var(--border-soft)}
.community-feed-profile-post p{margin:0;white-space:pre-wrap;overflow-wrap:anywhere}
.community-feed-post :focus-visible,.community-feed-rail :focus-visible,.community-feed-dialog :focus-visible{outline:2px solid var(--heart);outline-offset:3px}
@media(max-width:950px){.community-feed-layout{grid-template-columns:minmax(0,1fr) 240px;gap:13px}.community-feed-rail{padding:13px}}
@media(max-width:760px){.community-feed-layout{grid-template-columns:minmax(0,1fr)}.community-feed-rail{position:static;grid-row:2}.community-feed-linked-project{grid-template-columns:48px minmax(0,1fr)}.community-feed-linked-project .community-action{grid-column:2;justify-self:start}.community-feed-project-mark{inline-size:48px;block-size:48px}.community-feed-compose,.community-feed-post{padding:16px}.community-header{margin-bottom:16px}}
@media(max-width:520px){.community-feed-rail{display:grid}.community-feed-post-actions .community-action{padding:7px 8px}.community-feed-filter .community-action{font-size:12px;padding:7px 10px}.community-feed-empty{padding:22px}.community-feed-dialog{padding:16px}}
@media(prefers-reduced-motion:reduce){.community-feed-post,.community-feed-linked-project{animation:none;transition:none}}

/* Indexed creator discovery — explicit search, no background API search jobs. */
.community-explore{display:grid;gap:18px;min-width:0}
.community-explore-heading{display:grid;gap:5px}
.community-explore-heading h2{margin:0;font-size:23px;letter-spacing:-.03em}
.community-explore-heading p{margin:0}
.community-explore-search{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px;max-width:800px}
.community-explore-search input{width:100%;min-width:0;background:var(--surface);border:1px solid var(--border);border-radius:12px;padding:12px 14px;font:inherit;color:var(--text)}
.community-explore-search .community-action{min-width:100px}
.community-explore-columns{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(0,1fr);gap:16px;align-items:start}
.community-explore-results{display:grid;align-content:start;gap:10px;border-radius:18px;border:1px solid var(--border-soft);padding:16px;background:var(--surface);min-height:180px;min-width:0}
.community-explore-results h3{font-size:16px;margin:0 0 4px}
.community-explore-item,.community-explore-person{min-width:0;display:grid;gap:9px;background:var(--surface-2);border:1px solid var(--border-soft);border-radius:13px;padding:13px}
.community-explore-item p{white-space:pre-wrap;overflow-wrap:anywhere;margin:0;line-height:1.55;font-size:13px}
.community-explore-item-meta{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.community-explore-item .community-action{width:max-content;max-width:100%;font-size:12px}
.community-explore-person{grid-template-columns:minmax(0,1fr);align-items:start}
.community-explore-person>div:first-child{display:grid;gap:4px}
.community-explore-person strong{overflow-wrap:anywhere;font-size:14px}
.community-explore-person .community-action{min-height:34px;padding:7px 11px;font-size:12px}
.community-explore :focus-visible{outline:2px solid var(--heart);outline-offset:3px}
@media(max-width:760px){.community-explore-columns{grid-template-columns:minmax(0,1fr)}}
@media(max-width:420px){.community-explore-search{grid-template-columns:minmax(0,1fr)}.community-explore-search .community-action{width:100%}}

/* Personal activity inbox. A single notification signal instead of many alerts. */
.community-notification-shell{position:absolute;top:25px;inset-inline-end:28px;z-index:2;display:inline-flex}
.community-notification-trigger{position:relative;display:inline-flex;align-items:center;gap:8px;min-height:41px;padding:9px 16px;background:var(--surface-2);border-color:var(--border)}
.community-notification-count{display:inline-grid;place-items:center;min-inline-size:21px;block-size:21px;padding-inline:5px;border-radius:999px;font-size:11px;font-weight:800;line-height:1;color:var(--surface);background:var(--heart-strong)}
.community-notification-count[hidden]{display:none}
.community-header:has(.community-notification-shell) h1{max-width:calc(100% - 145px)}
.community-notification-dialog{padding:0;width:min(570px,calc(100vw - 22px));max-height:min(83vh,820px);overflow:hidden;font:inherit}
.community-notification-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;padding:20px 20px 10px}
.community-notification-heading-copy{display:grid;gap:2px}
.community-notification-heading h2{font-size:23px;margin:0;line-height:1.2}
.community-notification-heading p{margin:0}
.community-notification-close{min-height:35px;font-size:12px;padding:7px 11px}
.community-notification-toolbar{display:flex;gap:7px;align-items:center;flex-wrap:wrap;padding:8px 20px 14px;border-bottom:1px solid var(--border-soft)}
.community-notification-toolbar .community-action{min-height:33px;padding:6px 12px;font-size:12px}
.community-notification-toolbar .community-notification-mark-all{margin-inline-start:auto;color:var(--heart-strong)}
.community-notification-list{display:grid;align-content:start;max-height:calc(min(83vh,820px) - 132px);overflow-y:auto;overscroll-behavior:contain;padding:12px;gap:8px}
.community-notification-item{min-width:0;display:grid;grid-template-columns:8px minmax(0,1fr) auto;gap:10px;align-items:center;padding:13px 11px;border:1px solid var(--border-soft);border-radius:14px;background:var(--surface-2)}
.community-notification-item.is-unread{background:var(--heart-soft);border-color:var(--border)}
.community-notification-dot{inline-size:7px;block-size:7px;border-radius:50%;background:transparent}
.community-notification-item.is-unread .community-notification-dot{background:var(--heart-strong)}
.community-notification-body{min-width:0;display:grid;gap:4px;overflow-wrap:anywhere}
.community-notification-actor{font-size:13px}
.community-notification-body p{margin:0;line-height:1.45;font-size:13px}
.community-notification-actions{display:flex;align-items:center;gap:6px;flex-wrap:wrap;justify-content:end}
.community-notification-actions .community-action{min-height:33px;padding:7px 9px;font-size:11px}
.community-notification-empty{display:grid;justify-items:center;text-align:center;gap:8px;padding:45px 12px}
.community-notification-empty strong{font-size:15px}
.community-notification-empty p{margin:0}
.community-notification-empty-icon{inline-size:58px;block-size:58px;border-radius:19px;display:grid;place-items:center;background:var(--heart-soft);font-size:33px;color:var(--heart-strong)}
.community-notification-shell :focus-visible,.community-notification-dialog :focus-visible{outline:2px solid var(--heart);outline-offset:3px}
@media(max-width:760px){
 .community-notification-shell{position:static;margin-top:12px}
 .community-header:has(.community-notification-shell) h1{max-width:none}
 .community-notification-item{grid-template-columns:8px minmax(0,1fr)}
 .community-notification-actions{grid-column:2;justify-content:start}
}
@media(max-width:420px){
 .community-notification-heading{padding:16px 15px 9px}
 .community-notification-toolbar{padding:7px 15px 12px}
 .community-notification-list{padding:8px}
 .community-notification-actions .community-action{padding:7px 8px}
}
@media(prefers-reduced-motion:reduce){.community-notification-shell *, .community-notification-dialog *{transition:none!important}}

/* Community creator polls: answers are the hero; no new backend jobs. */
.community-feed-poll-builder{display:grid;gap:12px;margin:0;padding:13px;border:1px solid var(--border);background:var(--surface-2);border-radius:14px;min-width:0}
.community-feed-poll-builder legend{padding-inline:5px;font-size:13px;font-weight:750;color:var(--text)}
.community-feed-poll-choices{display:grid;gap:9px}
.community-feed-poll-choice-editor{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:end;gap:9px;min-width:0}
.community-feed-poll-choice-editor label,.community-feed-poll-duration{display:grid;gap:6px;color:var(--text);font-size:12px;font-weight:700;min-width:0}
.community-feed-poll-choice-editor input,.community-feed-poll-duration select{width:100%;min-width:0;color:var(--text);background:var(--surface);border:1px solid var(--border);border-radius:10px;font:inherit;font-size:13px;padding:10px 12px}
.community-feed-poll-duration{max-width:245px}
.community-feed-poll-remove-choice{min-height:38px;font-size:12px}
.community-feed-poll-builder>.community-action{justify-self:start;min-height:36px}
.community-feed-poll-error{color:var(--error,#df567a);font-size:12px;margin:0;font-weight:750}
.community-feed-poll{display:grid;gap:9px;border:1px solid var(--border-soft);padding:12px;border-radius:14px;background:var(--surface-2)}
.community-feed-poll-row{min-width:0}
.community-feed-poll-vote{display:flex;justify-content:space-between;align-items:center;gap:12px;min-height:45px;padding:10px 14px;width:100%;text-align:start;font-weight:650;white-space:normal;overflow-wrap:anywhere;border-color:var(--border)}
.community-feed-poll-vote:hover{border-color:var(--heart);background:var(--heart-soft);color:var(--heart-strong)}
.community-feed-poll-arrow{color:var(--heart-strong);font-size:17px}
.community-feed-poll-result-caption{display:flex;align-items:start;justify-content:space-between;gap:12px;padding:3px 2px 6px;font-size:13px;overflow-wrap:anywhere}
.community-feed-poll-result-caption strong{font-variant-numeric:tabular-nums;font-weight:760;white-space:nowrap}
.community-feed-poll-track{inline-size:100%;block-size:10px;overflow:hidden;border-radius:999px;background:var(--surface);border:1px solid var(--border);position:relative}
.community-feed-poll-bar{block-size:100%;min-inline-size:0;background:var(--heart-strong);border-radius:inherit;transition:width 350ms ease}
.community-feed-poll-row.is-selected .community-feed-poll-result-caption{color:var(--heart-strong);font-weight:760}
.community-feed-poll-meta{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:7px;border-top:1px solid var(--border-soft);padding-top:9px;color:var(--muted);font-size:11px}
.community-feed-poll-builder :focus-visible,.community-feed-poll :focus-visible{outline:2px solid var(--heart);outline-offset:3px}
@media(max-width:520px){.community-feed-poll-choice-editor{grid-template-columns:minmax(0,1fr)}.community-feed-poll-choice-editor .community-action{justify-self:start}.community-feed-poll-builder{padding:11px}}
@media(prefers-reduced-motion:reduce){.community-feed-poll-bar{transition:none}}

/* Creator portfolio: actual public work, not a generic social profile card. */
.community-portfolio-dialog{width:min(660px,calc(100vw - 24px));max-height:88vh;overflow-y:auto}
.community-portfolio-hero{display:grid;grid-template-columns:58px minmax(0,1fr);gap:14px;align-items:center;padding:5px 0 8px}
.community-portfolio-avatar{display:grid;place-items:center;inline-size:58px;block-size:58px;border-radius:18px;border:1px solid var(--border);background:var(--heart-soft);color:var(--heart-strong);font-weight:800;font-size:24px}
.community-portfolio-copy{display:grid;gap:3px;min-width:0}
.community-portfolio-copy h3{margin:0;font-size:21px;line-height:1.2;overflow-wrap:anywhere}
.community-portfolio-copy p{margin:0;white-space:pre-wrap;overflow-wrap:anywhere}
.community-portfolio-private{margin:0;padding:12px 14px;border:1px solid var(--border);background:var(--surface-2);color:var(--muted);border-radius:12px;font-size:12px;line-height:1.5}
.community-portfolio-stats{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
.community-portfolio-stat{display:grid;gap:3px;padding:12px 14px;border:1px solid var(--border-soft);background:var(--surface-2);border-radius:12px}
.community-portfolio-stat strong{font-size:20px;line-height:1.3;font-variant-numeric:tabular-nums}
.community-portfolio-section{display:grid;gap:9px;min-width:0;padding-block:11px 4px;border-top:1px solid var(--border-soft)}
.community-portfolio-section h3{margin:0;font-size:15px;line-height:1.4}
.community-portfolio-section>p{margin:0}
.community-portfolio-project{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:12px;border:1px solid var(--border-soft);background:var(--surface-2);padding:13px 14px;border-radius:13px;min-width:0}
.community-portfolio-project-copy{display:grid;gap:4px;min-width:0}
.community-portfolio-project-copy strong{font-size:13px;overflow-wrap:anywhere}
.community-portfolio-project-copy p{font-size:12px;margin:0;white-space:pre-wrap;overflow-wrap:anywhere;max-height:54px;overflow:hidden}
.community-portfolio-project .community-action{min-height:35px;white-space:nowrap;padding:7px 11px;font-size:12px}
.community-portfolio-dialog .community-feed-profile-post{padding:13px;gap:6px}
.community-portfolio-dialog .community-feed-profile-post strong{font-size:12px}
.community-portfolio-dialog :focus-visible{outline:2px solid var(--heart);outline-offset:3px}
@media(max-width:520px){.community-portfolio-hero{grid-template-columns:46px minmax(0,1fr)}.community-portfolio-avatar{inline-size:46px;block-size:46px;font-size:20px}.community-portfolio-project{grid-template-columns:minmax(0,1fr)}.community-portfolio-project .community-action{justify-self:start}}

/* Community inbox preferences; compact toggles with clear opt-in/out states. */
.community-preference-pane{display:grid;gap:14px;padding:14px 20px 20px;overflow-y:auto;max-height:min(72vh,600px)}
.community-preference-back{justify-self:start;font-size:12px}
.community-preference-fields{display:grid;gap:8px}
.community-preference-row{display:flex;justify-content:space-between;align-items:center;gap:18px;padding:13px 14px;min-height:54px;border:1px solid var(--border-soft);border-radius:12px;background:var(--surface-2);cursor:pointer;line-height:1.45}
.community-preference-row:hover{border-color:var(--border)}
.community-preference-row span{font-size:13px;font-weight:650;overflow-wrap:anywhere}
.community-preference-row input[type="checkbox"]{appearance:none;-webkit-appearance:none;flex:none;position:relative;width:41px;height:24px;border-radius:24px;border:1px solid var(--border);background:var(--surface-3);margin:0;cursor:pointer;transition:background .16s,border-color .16s}
.community-preference-row input[type="checkbox"]::after{content:'';position:absolute;inset-inline-start:3px;top:3px;width:16px;height:16px;border-radius:50%;background:var(--muted);transition:inset-inline-start .16s,transform .16s}
.community-preference-row input[type="checkbox"]:checked{background:var(--heart);border-color:var(--heart)}
.community-preference-row input[type="checkbox"]:checked::after{inset-inline-start:19px;background:#fff}
.community-preference-row input[type="checkbox"]:focus-visible{outline:2px solid var(--heart-strong);outline-offset:3px}
.community-preference-row input[type="checkbox"]:disabled{opacity:.6;cursor:wait}
.community-preference-save{justify-self:end;padding-inline:17px;min-height:39px}
.community-preference-error{color:var(--danger);font-size:13px;margin:0}
.community-preference-status{margin:6px 20px 0;color:var(--heart-strong);font-size:12px;font-weight:700}
@media(max-width:520px){.community-preference-pane{padding:12px 14px 16px;gap:11px}.community-preference-row{padding:12px;gap:10px}.community-preference-row span{font-size:12px}}
@media(prefers-reduced-motion:reduce){.community-preference-row input[type="checkbox"],.community-preference-row input[type="checkbox"]::after{transition:none}}

/* Topic discovery uses the existing Heart signal; tags are metadata, not rewards. */
.community-feed-topic-search{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:9px;padding:14px;border:1px solid var(--border-soft);border-radius:15px;background:var(--surface-2)}
.community-feed-topic-input{min-width:0;width:100%;min-height:42px;border:1px solid var(--border);border-radius:11px;background:var(--surface);color:var(--text);font:inherit;font-size:14px;padding:9px 12px}
.community-feed-topic-search .community-action{min-height:42px;padding:9px 15px}
.community-feed-topic-search .community-muted{grid-column:1/-1}
.community-topic-help{display:block;color:var(--muted);font-size:12px;line-height:1.45}
.community-feed-topic-chips{display:flex;gap:8px;flex-wrap:wrap;align-items:center}
.community-feed-topic-chip{cursor:pointer;font:inherit;font-weight:700;font-size:12px;letter-spacing:.012em;border:1px solid var(--border);border-radius:999px;min-height:34px;padding:7px 11px;color:var(--heart-strong);background:var(--heart-soft);transition:background-color .14s ease,border-color .14s ease}
.community-feed-topic-chip:hover{background:var(--surface-2);border-color:var(--heart)}
.community-feed-topic-chip:focus-visible,.community-feed-topic-search input:focus-visible,.community-feed-topic-search button:focus-visible{outline:2px solid var(--heart);outline-offset:3px}
@media(max-width:480px){.community-feed-topic-search{grid-template-columns:minmax(0,1fr)}.community-feed-topic-search .community-action{width:100%}.community-feed-topic-chip{min-height:40px;padding:9px 13px}}
@media(prefers-reduced-motion:reduce){.community-feed-topic-chip{transition:none}}

/* Featured creator work: just three user-chosen posts, not another algorithm. */
.community-feed-post.is-pinned{border-color:var(--border);box-shadow:inset 3px 0 0 var(--heart)}
.community-feed-pinned{display:inline-flex;align-items:center;width:max-content;max-width:100%;padding:4px 8px;border:1px solid var(--border);border-radius:8px;background:var(--heart-soft);color:var(--heart-strong);font-size:11px;font-weight:770;line-height:1.2}
.community-feed-author-copy .community-feed-pinned{margin-top:3px}
.community-portfolio-featured{padding:14px;border:1px solid var(--border);border-radius:14px;background:var(--surface-2)}
.community-portfolio-featured .community-feed-profile-post{background:var(--surface);border-color:var(--border)}
.community-feed-profile-post-header{display:flex;align-items:center;flex-wrap:wrap;gap:8px}
.community-feed-profile-post-header strong{font-size:12px}
.community-feed-profile-post.is-pinned{border-inline-start:3px solid var(--heart)}
.community-feed-profile-post .community-action{justify-self:start;min-height:36px;max-width:100%;font-size:12px}
.community-feed-profile-post .community-action:disabled{cursor:not-allowed;opacity:.52}
@media(max-width:520px){.community-portfolio-featured{padding:10px}.community-feed-post.is-pinned{box-shadow:inset 2px 0 0 var(--heart)}}
@media(prefers-reduced-motion:reduce){.community-feed-post.is-pinned,.community-feed-profile-post.is-pinned{transition:none}}

/* Public post permalinks: one clear highlighted destination, never a tracking URL. */
.community-feed-post.is-shared{outline:2px solid var(--heart);outline-offset:1px}
.community-feed-shared-label{width:max-content;display:inline-flex;margin-top:3px;padding:4px 8px;border-radius:8px;background:var(--heart-soft);border:1px solid var(--border);color:var(--heart-strong);font-size:11px;font-weight:760}
.community-feed-link-error{margin:0;padding:14px 17px;border-radius:12px;border:1px solid var(--border);background:var(--surface-2);color:var(--muted);font-size:13px;line-height:1.5}
.community-feed-share-url{display:block;width:100%;max-width:100%;min-height:44px;background:var(--surface-2);border:1px solid var(--border);border-radius:10px;padding:11px;color:var(--text);font:12px/1.5 ui-monospace,SFMono-Regular,Consolas,monospace}
.community-feed-share-url:focus-visible{outline:2px solid var(--heart);outline-offset:2px}
@media(prefers-reduced-motion:reduce){.community-feed-post.is-shared{transition:none}}

/* Bounded, first-party Community photos: light/dark/RTL-aware, no layout shift. */
.community-feed-photo-tools{display:grid;gap:10px;justify-items:start;min-width:0}
.community-feed-photo-picker{position:relative;display:inline-flex;align-items:center;justify-content:center;gap:8px;cursor:pointer;overflow:hidden}
.community-feed-photo-picker::before{content:"+";font-weight:800;font-size:16px;line-height:1}
.community-feed-photo-input{position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:pointer}
.community-feed-photo-picker:focus-within{outline:2px solid var(--heart);outline-offset:3px}
.community-feed-photo-preview{display:flex;align-items:end;flex-wrap:wrap;gap:12px;width:100%;padding:12px;border:1px dashed var(--border);border-radius:14px;background:var(--surface-2)}
.community-feed-photo-thumb{display:block;width:min(100%,176px);max-height:145px;object-fit:contain;border:1px solid var(--border-soft);border-radius:12px;background:var(--canvas)}
.community-feed-photo-error{margin:0;color:var(--danger);font-size:13px}
.community-feed-post-photo{display:block;width:100%;height:auto;max-height:470px;object-fit:contain;border-radius:14px;border:1px solid var(--border-soft);background:var(--surface-2)}
.community-feed-profile-photo{display:block;width:100%;max-height:190px;object-fit:contain;border-radius:12px;background:var(--surface-2)}
@media(max-width:520px){
 .community-feed-photo-preview{align-items:start}
 .community-feed-post-photo{max-height:340px}
}

/* Community creator hub: the feed, actions and navigation remain in the same
   elevated stacking context, above BaseHeart's fixed heart-field gradient. */
.community-wrap{padding-top:76px}
.community-header{
 display:grid;grid-template-columns:minmax(0,1fr) auto;
 align-items:center;column-gap:28px;row-gap:10px;
 padding:29px 32px 27px;min-height:156px;margin-bottom:14px;
 border-color:var(--border-soft);
 background:radial-gradient(circle at 15% 0%,var(--heart-soft),transparent 36%),var(--surface);
 box-shadow:0 18px 40px rgba(0,0,0,.09)
}
.community-header::after{content:none}
.community-header-intro{grid-column:1;grid-row:1 / span 2;max-width:650px;min-width:0}
.community-header-intro h1{font-size:clamp(31px,3vw,44px);line-height:1.08;margin:6px 0 9px}
.community-header .community-header-lede{max-width:55ch;font-size:14px;line-height:1.6;color:var(--muted)}
.community-header-controls{grid-column:2;grid-row:2;display:flex;justify-content:flex-end;gap:9px;align-items:center;flex-wrap:wrap;min-width:0}
.community-header .community-notification-shell{position:static;grid-column:2;grid-row:1;justify-self:end;z-index:2;margin:0}
.community-header:has(.community-notification-shell) h1{max-width:none}
.community-header-controls .community-action{min-height:42px}
.community-hero-primary{border-color:var(--heart);background:var(--heart-strong);color:var(--canvas);font-weight:800}
.community-hero-primary:hover{border-color:var(--heart-strong);background:var(--heart);color:var(--canvas)}
.community-hero-secondary{border-color:var(--border);background:var(--surface-2)}
.community-tabs{gap:6px;padding:7px;background:var(--surface);border:1px solid var(--border-soft);
 border-radius:15px;margin-bottom:18px;scrollbar-width:thin}
.community-tabs .community-action{display:inline-flex;align-items:center;justify-content:center;gap:7px;
 font-size:12.5px;min-height:38px;padding:8px 11px;background:transparent;border-color:transparent;border-radius:10px}
.community-tabs .community-action:hover,.community-tabs .community-action.is-active{
 background:var(--heart-soft);color:var(--heart-strong);border-color:var(--border-soft)}
.community-tab-icon{font-size:17px;line-height:1;opacity:.85}
.community-quick-start{display:grid;gap:14px;padding:20px;border:1px solid var(--border-soft);
 border-radius:19px;background:var(--surface);min-width:0}
.community-quick-intro{display:flex;align-items:center;justify-content:space-between;gap:16px}
.community-quick-copy{display:grid;gap:6px;min-width:0}
.community-quick-eyebrow{font-size:10px;font-weight:800;letter-spacing:.16em;text-transform:uppercase;color:var(--heart-strong)}
.community-quick-copy h2{font-family:var(--font-display);font-size:clamp(19px,2vw,24px);line-height:1.2;margin:0}
.community-quick-copy p{font-size:13px;margin:0;max-width:60ch}
.community-quick-profile{min-height:42px;flex:none}
.community-quick-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px}
.community-quick-card{appearance:none;display:flex;align-items:center;gap:9px;min-width:0;
 text-align:start;min-height:74px;padding:11px;border:1px solid var(--border-soft);
 border-radius:13px;background:var(--surface-2);color:var(--text);font:inherit;cursor:pointer;
 transition:border-color .18s ease,transform .18s ease,background .18s ease}
.community-quick-card:hover{border-color:var(--heart);background:var(--heart-soft);transform:translateY(-1px)}
.community-quick-card:focus-visible{outline:2px solid var(--heart);outline-offset:2px}
.community-quick-symbol{display:grid;place-items:center;flex:none;width:33px;height:33px;border-radius:10px;
 background:var(--heart-soft);color:var(--heart-strong);font-size:20px;font-weight:700}
.community-quick-action-copy{display:grid;gap:3px;min-width:0;flex:1}
.community-quick-action-copy strong{font-size:12px;font-weight:780;line-height:1.3}
.community-quick-action-copy>span{font-size:10.5px;color:var(--muted);line-height:1.4;overflow-wrap:anywhere}
.community-quick-arrow{font-size:14px;opacity:.55;align-self:flex-start}
.community-quick-grid .community-quick-card:last-child{grid-column:span 2}
.community-feed-empty-actions{display:flex;flex-wrap:wrap;gap:8px}
.community-feed-empty-actions .community-action{white-space:normal}
.community-feed-empty{background:var(--surface)}
.community-feed-rail{top:80px}
@media(max-width:1090px){
 .community-quick-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
 .community-quick-grid .community-quick-card:last-child{grid-column:span 2}
 .community-header{gap:16px}
}
@media(max-width:820px){
 .community-feed-rail{top:auto}
 .community-wrap{padding-top:66px}
 .community-header{grid-template-columns:minmax(0,1fr);padding:22px;min-height:0}
 .community-header-intro{grid-column:1;grid-row:1}
 .community-header-controls{grid-column:1;grid-row:2;justify-content:flex-start}
 .community-header .community-notification-shell{grid-column:1;grid-row:3;justify-self:start}
 .community-tabs{margin-bottom:13px}
}
@media(max-width:520px){
 .community-wrap{padding-top:56px}
 .community-header{padding:19px}
 .community-header-intro h1{font-size:34px}
 .community-header .community-header-lede{font-size:13px}
 .community-header-controls{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));width:100%}
 .community-header-controls .community-action{padding:9px;white-space:normal;font-size:12px}
 .community-quick-start{padding:15px;gap:13px}
 .community-quick-intro{align-items:stretch;flex-direction:column}
 .community-quick-profile{align-self:stretch}
 .community-quick-grid{grid-template-columns:minmax(0,1fr)}
 .community-quick-grid .community-quick-card:last-child{grid-column:auto}
 .community-quick-card{min-height:60px}
}
@media(prefers-reduced-motion:reduce){.community-quick-card{transition:none}.community-quick-card:hover{transform:none}}

/* Google is the only Community identity. Name is read-only from trusted sign-in;
   settings below control privacy, rather than asking users to create an account. */
.community-google-identity{display:grid;gap:5px;min-width:0;padding:13px 15px;
 background:var(--surface-2);border:1px solid var(--border-soft);border-radius:13px}
.community-google-identity strong{font-size:16px;line-height:1.3;overflow-wrap:anywhere}
.community-google-identity code{font-size:11px;letter-spacing:.01em;color:var(--muted);
 overflow-wrap:anywhere;white-space:normal}

.community-feed-me{display:grid;grid-template-columns:38px minmax(0,1fr);align-items:center;gap:8px 11px}
.community-feed-me-copy{display:grid;gap:3px;min-width:0;overflow-wrap:anywhere}
.community-feed-me-copy strong{font-size:13px;line-height:1.3}
.community-feed-me-copy small{overflow-wrap:anywhere;font-size:11px}

/* C6: accessible privacy controls use the same Community surfaces and action tokens. */
.community-blocked-open{justify-self:start;min-height:42px;margin-block-start:6px}
.community-blocked-dialog{width:min(480px,calc(100vw - 24px));max-height:min(78vh,760px)}
.community-blocked-list{display:grid;gap:8px;max-height:52vh;overflow-y:auto;overflow-x:hidden;min-width:0}
.community-blocked-dialog [role="status"]:empty{display:none}
.community-blocked-row{display:flex;align-items:center;justify-content:space-between;gap:12px;min-width:0}
.community-blocked-row strong{min-width:0;overflow-wrap:anywhere;line-height:1.4}
.community-blocked-row .community-action{flex-shrink:0;min-height:40px}
@media(max-width:520px){.community-blocked-open{width:100%;justify-self:stretch}.community-blocked-row{flex-wrap:wrap}.community-blocked-row .community-action{margin-inline-start:auto}}
@media(prefers-reduced-motion:reduce){.community-blocked-dialog *{animation:none!important;transition:none!important}}

/* C7: feed hierarchy for active creators. The five quick shortcuts remain
   keyboard-accessible, but they no longer displace real posts from view. */
.community-quick-start.is-populated{padding:13px 15px;gap:10px}
.community-quick-start.is-populated .community-quick-copy{gap:2px}
.community-quick-start.is-populated .community-quick-eyebrow,
.community-quick-start.is-populated .community-quick-copy p{display:none}
.community-quick-start.is-populated .community-quick-copy h2{font-size:16px}
.community-quick-start.is-populated .community-quick-grid{
 display:flex;gap:7px;overflow-x:auto;min-width:0;max-width:100%;padding-bottom:4px;
 scrollbar-width:thin;overscroll-behavior-inline:contain}
.community-quick-start.is-populated .community-quick-card{flex:0 0 auto;min-height:43px;padding:7px 10px;gap:7px;white-space:nowrap}
.community-quick-start.is-populated .community-quick-symbol{width:27px;height:27px;font-size:16px}
.community-quick-start.is-populated .community-quick-action-copy>span,
.community-quick-start.is-populated .community-quick-arrow{display:none}
.community-feed-filter{min-width:0;max-width:100%;scroll-padding-inline:8px}
.community-feed-filter .community-action{white-space:nowrap;flex-shrink:0}
.community-feed-filter .community-action.is-active{
 background:var(--heart-soft);color:var(--heart-strong);border-color:var(--heart);
 font-weight:750}
.community-feed-filter .community-action:focus-visible{outline:2px solid var(--heart);outline-offset:2px}
.community-feed-count{font-size:12px;color:var(--muted);font-variant-numeric:tabular-nums;white-space:nowrap}
.community-feed-heading .community-feed-loading{color:var(--muted)}
.community-feed-byline{display:flex;align-items:center;flex-wrap:wrap;gap:7px;min-width:0}
.community-feed-kind{display:inline-flex;align-items:center;min-height:23px;padding:2px 8px;
 border:1px solid var(--border-soft);border-radius:7px;background:var(--surface-2);
 color:var(--heart-strong);font-size:11px;font-weight:760;line-height:1.2}
.community-feed-time{color:var(--muted);font-size:12px;line-height:1.5}
.community-feed-post-text{font-size:15px;line-height:1.65;max-width:80ch}
.community-feed-post-actions{display:flex;align-items:flex-start;flex-wrap:nowrap;gap:6px}
.community-feed-actions-primary{display:flex;align-items:center;gap:5px;flex-wrap:wrap;flex:1 1 auto;min-width:0}
.community-feed-actions-primary .community-action{min-height:40px;font-weight:740}
@media(max-width:520px){
 .community-quick-start.is-populated{padding:11px 12px}
 .community-quick-start.is-populated .community-quick-grid{grid-template-columns:none}
 .community-quick-start.is-populated .community-quick-card{min-height:44px}
 .community-feed-heading{align-items:baseline}
 .community-feed-kind{font-size:10px}
 .community-feed-post-actions{gap:6px}
 .community-feed-actions-primary .community-action{min-height:43px;padding:7px 10px}
}
@media(prefers-reduced-motion:reduce){.community-quick-start.is-populated .community-quick-card:hover{transform:none}}

/* C8: live compose feedback stays visually secondary to the publish action. */
.community-feed-compose-counter{display:flex;align-items:center;flex-wrap:wrap;gap:5px 12px;min-width:0;font-variant-numeric:tabular-nums}
.community-feed-compose-counter output{font-variant-numeric:tabular-nums}
.community-feed-shortcut{font-size:11px;opacity:.8}
@media(max-width:520px){.community-feed-compose-counter{max-width:100%}.community-feed-shortcut{font-size:10px}}

/* C9: accepted creator answers stay easy to recognize, without a new card shell. */
.community-feed-comment.is-accepted{border-inline-start:3px solid var(--success,#12805c);padding-inline-start:12px}
.community-feed-solved{display:inline-flex;align-items:center;border:1px solid var(--success,#12805c);border-radius:999px;color:var(--success,#12805c);padding:2px 8px;font-size:10px;font-weight:700}
@media(max-width:520px){.community-feed-solved{font-size:9px;padding:2px 6px}}

/* C10: public sandboxed app previews never run in BaseHeart's authenticated origin. */
.community-public-project-preview{display:block;inline-size:100%;block-size:clamp(180px,30vw,300px);border:1px solid var(--border-soft);border-radius:12px;background:var(--surface-2);pointer-events:none}
.community-feed-linked-project .community-public-project-preview{grid-column:1/-1}
@media(max-width:520px){.community-public-project-preview{block-size:195px;border-radius:9px}}
@media(prefers-reduced-motion:reduce){.community-public-project-preview{scroll-behavior:auto}}

/* C11: Search scope preserves the familiar Community filter treatment. */
.community-search-scope{display:flex;flex-wrap:wrap;gap:6px;align-items:center}
.community-search-scope .community-action{min-height:40px}
@media(max-width:520px){.community-search-scope{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:4px}.community-search-scope .community-action{min-width:0;padding-inline:5px;font-size:11px}}

/* C15: showcase real public work first. Keep BaseHeart's Heart accent restrained. */
.community-portfolio-handle{font-size:12px;font-weight:700;color:var(--heart-strong);overflow-wrap:anywhere}
.community-portfolio-nav{display:flex;flex-wrap:wrap;gap:7px;padding:2px 0 5px}
.community-portfolio-nav-action{min-height:40px;padding:8px 11px;font-size:12px}
.community-portfolio-work,.community-portfolio-featured,.community-portfolio-updates{scroll-margin-block-start:12px}
.community-portfolio-work:focus,.community-portfolio-featured:focus,.community-portfolio-updates:focus{outline:none}
.community-portfolio-work:focus-visible,.community-portfolio-featured:focus-visible,.community-portfolio-updates:focus-visible{outline:2px solid var(--heart);outline-offset:3px}
.community-portfolio-projects{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;min-width:0}
.community-portfolio-projects .community-portfolio-project{display:grid;grid-template-columns:minmax(0,1fr);align-content:start;gap:10px;min-width:0}
.community-portfolio-projects .community-portfolio-project[hidden]{display:none!important}
.community-portfolio-projects .community-portfolio-project.is-latest{grid-column:1/-1;border-color:var(--heart);background:var(--surface-2)}
.community-portfolio-projects .community-portfolio-project.is-latest.has-preview{grid-template-columns:minmax(0,1fr) minmax(0,1.15fr);align-items:center}
.community-portfolio-projects .community-portfolio-project.is-latest.has-preview .community-portfolio-project-copy{grid-column:1}
.community-portfolio-projects .community-portfolio-project.is-latest.has-preview .community-public-project-preview{grid-column:2;grid-row:1/span 2}
.community-portfolio-projects .community-portfolio-project.is-latest.has-preview .community-action{grid-column:1}
.community-portfolio-projects .community-portfolio-project .community-action{justify-self:start}
.community-portfolio-projects .community-public-project-preview{max-width:100%;block-size:180px}
.community-portfolio-latest{font-size:11px;font-weight:800;letter-spacing:.02em;color:var(--heart-strong)}
.community-portfolio-filters{display:flex;gap:6px;overflow-x:auto;max-width:100%;padding-block:2px 4px;scrollbar-width:thin}
.community-portfolio-filter{flex:none;min-height:40px;font-size:12px;white-space:nowrap}
.community-portfolio-filter.is-current{border-color:var(--heart);color:var(--heart-strong);background:var(--heart-soft)}
.community-portfolio-visible{font-size:12px;color:var(--muted);margin:0}
@media(max-width:580px){.community-portfolio-projects{grid-template-columns:minmax(0,1fr)}.community-portfolio-projects .community-portfolio-project.is-latest.has-preview{grid-template-columns:minmax(0,1fr)}.community-portfolio-projects .community-portfolio-project.is-latest.has-preview .community-public-project-preview{grid-column:auto;grid-row:auto}.community-portfolio-projects .community-portfolio-project.is-latest.has-preview .community-action{grid-column:auto}.community-portfolio-nav{gap:6px}.community-portfolio-nav-action{flex:1 1 auto}}
@media(prefers-reduced-motion:reduce){.community-portfolio-nav-action,.community-portfolio-filter{scroll-behavior:auto;transition:none}}

/* C22 — Remix is an explicit creator permission, not a hidden share setting.
   Reuse BaseHeart's heart signal; provide one readable consent surface in both themes. */
.community-remix-optin{display:grid;grid-template-columns:22px minmax(0,1fr);
 gap:12px;align-items:start;min-width:0;padding:13px 14px;border:1px solid var(--border);
 border-radius:12px;background:var(--surface-2);cursor:pointer}
.community-remix-optin input[type=checkbox]{width:20px;height:20px;margin:3px 0 0;flex:none}
.community-remix-consent-copy{display:grid;gap:4px;min-width:0}
.community-remix-consent-copy strong{font-size:13px;line-height:1.3;color:var(--text)}
.community-remix-consent-copy small{display:block;font-size:12px;line-height:1.55;overflow-wrap:anywhere}
.community-remix-optin:focus-within{outline:2px solid var(--heart);outline-offset:3px}
.community-portfolio-actions,.community-feed-linked-project>.community-feed-project-actions{
 display:flex;align-items:center;justify-content:flex-end;gap:8px;flex-wrap:wrap;min-width:0}
.community-portfolio-actions .community-action,.community-feed-project-actions .community-action{
 max-width:100%;min-height:40px;white-space:normal;text-align:center}
.community-card-actions .community-remix-action,.community-portfolio-actions .community-remix-action,
.community-feed-project-actions .community-remix-action{background:var(--heart-soft);
 border:1px solid var(--heart);color:var(--heart-strong);font-weight:750}
.community-remix-action:hover{background:var(--surface-2);border-color:var(--heart-strong)}
.community-remix-toggle[aria-pressed=true]{border-color:var(--heart);background:var(--heart-soft)}
.community-remix-toggle:disabled{opacity:.55;cursor:wait}
@media(max-width:760px){
 .community-feed-linked-project>.community-feed-project-actions{grid-column:2;justify-self:start;
  justify-content:flex-start}
}
@media(max-width:520px){
 .community-portfolio-actions{justify-content:flex-start}
 .community-project-grid .community-remix-action{min-height:44px}
 .community-feed-project-actions .community-action{min-height:44px}
}
@media(prefers-reduced-motion:reduce){.community-remix-action,.community-remix-toggle{transition:none}}


/* Community C2: joining is a choice, friends by Friend ID, and your data. */
.community-join{display:grid;gap:10px;justify-items:start;border-color:var(--heart);
 background:linear-gradient(135deg,var(--heart-soft),transparent 72%),var(--surface)}
.community-join h2{margin:0;font-size:20px;line-height:1.25}
.community-join p{margin:0;max-width:62ch;line-height:1.5}
.community-panel>.community-join{margin-bottom:16px}
.community-row{flex-wrap:wrap}
.community-row-identity{display:grid;gap:2px;min-width:0;flex:1 1 180px;overflow-wrap:anywhere}
.community-row-identity small{color:var(--muted);font-size:12px}
.community-row .community-action{font-size:12px;padding:7px 11px}
.community-friend-status{font-size:12px;font-weight:700;color:var(--muted)}
.community-friend-search input{flex:1 1 220px;width:auto}
.community-friend-results:not(:empty){margin-bottom:18px}
.community-your-data{display:grid;gap:10px;justify-items:start;margin-top:16px}
.community-your-data h2{margin:0}
.community-join .community-action,.community-your-data .community-action,.community-leave .community-action{white-space:normal;text-align:start}
.community-danger{color:var(--danger);border-color:color-mix(in srgb,var(--danger) 55%,transparent)}
.community-danger:hover{border-color:var(--danger)}
.community-danger:disabled{opacity:.55;cursor:not-allowed}
.community-leave p{margin:0;line-height:1.5}
/* The app draws buttons flat (styles.css, with !important); Community's main
   actions keep their shape so they read as the next step. Fixed colors keep
   their text at about 6:1 or more in both themes. */
body .community-page .community-hero-primary,body .community-page .community-join-button{border:1px solid #ff63ad!important;background:#ff63ad!important;color:#16060f!important;font-weight:800}
body .community-page .community-hero-primary:hover,body .community-page .community-join-button:hover{border-color:#ff85bf!important;background:#ff85bf!important}
body .community-leave .community-leave-confirm{border:1px solid #f0a1ae!important;background:#f0a1ae!important;color:#16060f!important;font-weight:800}
html[data-theme="light"] body .community-page .community-hero-primary,html[data-theme="light"] body .community-page .community-join-button{border-color:#b8125b!important;background:#b8125b!important;color:#fff!important}
html[data-theme="light"] body .community-page .community-hero-primary:hover,html[data-theme="light"] body .community-page .community-join-button:hover{border-color:#9c0f4d!important;background:#9c0f4d!important}
html[data-theme="light"] body .community-leave .community-leave-confirm{border-color:#b3263e!important;background:#b3263e!important;color:#fff!important}
body .community-leave .community-leave-confirm:disabled,body .community-page .community-join-button:disabled{opacity:.5;cursor:not-allowed}
body .community-page .community-download-data,body .community-page .community-leave-open,body .community-leave .community-action:not(.community-leave-confirm){border:1px solid var(--border)!important;background:var(--surface-2)!important}
body .community-page .community-leave-open{border-color:color-mix(in srgb,var(--danger) 55%,transparent)!important}

/* Community C3: reporting, blocking, and reports and decisions with appeals. */
.community-report-dialog{width:min(520px,95vw)}
.community-report-reasons{display:grid;gap:6px;border:0;margin:0;padding:0;min-width:0}
.community-report-reasons legend{font-weight:750;margin-bottom:6px}
.community-report-reason{display:flex;align-items:center;gap:10px;padding:9px 11px;border:1px solid var(--border-soft);border-radius:11px;cursor:pointer;line-height:1.35}
.community-report-reason:has(input:checked){border-color:var(--heart);background:var(--heart-soft)}
.community-report-reason input{inline-size:18px;block-size:18px;flex:none;accent-color:var(--heart)}
.community-report-details{display:grid;gap:6px;font-weight:650}
.community-report-illegal{display:grid;gap:8px;padding:10px 12px;border-radius:12px;background:var(--surface-2)}
.community-report-illegal[hidden]{display:none}
.community-report-status{margin:0;min-height:1.2em;color:var(--danger);font-size:13px}
.community-report-guidelines{color:var(--heart-strong);font-weight:700;text-decoration:underline;text-underline-offset:3px;justify-self:start}
.community-report-done{display:grid;gap:12px}
.community-report-done p{margin:0;line-height:1.5}
.community-suspended{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:10px;padding:12px 16px;margin-bottom:14px;
 border:1px solid color-mix(in srgb,var(--danger) 55%,transparent);border-radius:14px;background:color-mix(in srgb,var(--danger) 10%,var(--surface))}
.community-suspended p{margin:0;flex:1 1 240px;line-height:1.45}
.community-moderation{display:grid;gap:10px;margin-top:16px}
.community-moderation h2,.community-moderation h3{margin:0}
.community-moderation h3{font-size:15px;margin-top:6px}
.community-moderation-note{margin:0;padding:10px 12px;border-radius:12px;background:var(--surface-2)}
.community-decision,.community-report-row{display:grid;gap:6px;padding:12px 14px;border:1px solid var(--border-soft);border-radius:13px;background:var(--surface-2);min-width:0}
.community-decision h4{margin:0;font-size:14px}
.community-decision p,.community-report-row p{margin:0;line-height:1.45;overflow-wrap:anywhere}
.community-appeal{display:grid;gap:8px;justify-items:start}
.community-appeal-status{margin:0;font-weight:700}
.community-appeal-form{display:grid;gap:8px;inline-size:100%}
.community-moderation-rights{font-size:12.5px;line-height:1.45}
.community-portfolio-safety{margin-top:6px}
.community-report-dialog .community-action,.community-block-dialog .community-action,.community-moderation .community-action,.community-suspended .community-action{white-space:normal;text-align:start}
body .community-report-dialog .community-report-send,body .community-block-dialog .community-block-confirm{border:1px solid #f0a1ae!important;background:#f0a1ae!important;color:#16060f!important;font-weight:800}
html[data-theme="light"] body .community-report-dialog .community-report-send,html[data-theme="light"] body .community-block-dialog .community-block-confirm{border-color:#b3263e!important;background:#b3263e!important;color:#fff!important}
body .community-report-dialog .community-report-send:disabled{opacity:.5;cursor:not-allowed}
body .community-page .community-appeal-open,body .community-page .community-appeal-send,body .community-suspended .community-action{border:1px solid var(--border)!important;background:var(--surface)!important}
/* Community C4: friends follow each other; groups in the Friends tab. */
.community-friend-explainer{margin:0 0 4px;font-size:13px;line-height:1.45}
.community-friend-group{display:grid;gap:8px}
.community-friend-group h3{margin:6px 0 0;font-size:14px;color:var(--muted)}
/* Community C4: an @username, chosen once. */
.community-username{display:grid;gap:6px;width:min(100%,360px)}
.community-username>strong{font-size:13px}
.community-username-label{display:flex;align-items:center;gap:0;border:1px solid var(--border);border-radius:10px;background:var(--surface-2);padding:0 0 0 11px}
.community-username-label:focus-within{border-color:var(--heart);outline:2px solid color-mix(in srgb,var(--heart) 35%,transparent);outline-offset:1px}
.community-username-at{font-weight:800;color:var(--muted)}
body .community-page .community-username-input{flex:1 1 auto;min-width:0;width:auto;border:0!important;background:transparent!important;box-shadow:none!important;outline:0;padding:10px 11px 10px 3px;font:inherit;color:inherit}
.community-username-status{margin:0;min-height:1.4em;font-size:12.5px;color:var(--muted)}
.community-username-status[data-state="good"]{color:#91c8a3}
.community-username-status[data-state="bad"]{color:#f0a1ae}
html[data-theme="light"] .community-username-status[data-state="good"]{color:#1d6b3e}
html[data-theme="light"] .community-username-status[data-state="bad"]{color:#b3263e}
.community-username small{line-height:1.45}
.community-feed-main>.community-choose-username{margin-bottom:14px}
/* Community C4: one profile, opened from a name anywhere. */
.community-row-identity .community-creator-link,.community-explore-person .community-creator-link{padding:0;border:0;background:none;text-align:start;color:inherit;cursor:pointer}
.community-row-identity .community-creator-link:hover strong,.community-explore-person .community-creator-link:hover strong{text-decoration:underline}
/* C5: three tabs that fit a phone, and the post actions one needs less often behind "⋯". */
.community-tabs .community-action{flex:1 1 auto;min-width:0}
@media(max-width:420px){
 .community-tabs{gap:4px;padding:5px}
 .community-tabs .community-action{gap:4px;padding:8px 6px}
 .community-tab-icon{display:none}
}
@media(max-width:360px){.community-tabs{gap:3px;padding:4px}.community-tabs .community-action{font-size:11.5px;padding:8px 3px}}
.community-more{position:relative;flex:none;margin-inline-start:auto}
.community-more-toggle{min-width:43px;min-height:40px;font-size:18px;line-height:1;letter-spacing:1px}
.community-more-toggle[aria-expanded="true"]{color:var(--heart-strong);background:var(--heart-soft);border-color:var(--border)}
.community-more-menu{position:absolute;inset-inline-end:0;top:calc(100% + 6px);z-index:40;display:grid;gap:2px;min-width:200px;max-width:min(280px,calc(100vw - 32px));padding:6px;background:var(--surface);border:1px solid var(--border);border-radius:14px;box-shadow:0 18px 40px rgba(0,0,0,.28)}
.community-more-menu[hidden]{display:none}
.community-feed-post-actions .community-more-item{justify-content:flex-start;width:100%;text-align:start;white-space:normal}
.community-more-item:focus-visible,.community-more-toggle:focus-visible{outline:2px solid var(--heart);outline-offset:2px}
.community-project-section,.community-leaderboard{margin-top:22px}

/* C6: @names that open a profile, and suggestions while typing @ */
.community-mention{appearance:none;display:inline;border:0;background:none;padding:0;margin:0;font:inherit;font-weight:680;color:var(--heart-strong);cursor:pointer;text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:2px;unicode-bidi:isolate}
.community-mention:focus-visible{outline:2px solid var(--heart);outline-offset:2px;border-radius:4px}
.community-mention-list{display:grid;gap:2px;margin-top:6px;padding:5px;max-height:240px;overflow:auto;background:var(--surface);border:1px solid var(--border);border-radius:12px;box-shadow:0 14px 32px rgba(0,0,0,.24)}
.community-mention-list[hidden]{display:none}
.community-mention-option{display:flex;align-items:baseline;gap:8px;min-height:40px;padding:8px 10px;border-radius:9px;cursor:pointer;min-width:0}
.community-mention-option>span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.community-mention-option[aria-selected="true"],.community-mention-option:hover{background:var(--heart-soft);color:var(--heart-strong)}
/* C7 — Explore's Popular, New and Featured; the creator and the credit for a
   remix on a project; the public page and remix credit choices when sharing. */
.community-project-sort{display:flex;gap:8px;flex-wrap:wrap;margin:2px 0 4px}
.community-project-sort .community-action{min-height:36px;padding:8px 14px;font-size:13px}
.community-project-sort .community-action.is-active{background:var(--heart-soft);color:var(--heart-strong);border-color:var(--heart);font-weight:750}
.community-project-sort .community-action:focus-visible{outline:2px solid var(--heart);outline-offset:2px}
.community-project-sort-hint{margin:0 0 12px;font-size:13px}
.community-project-visual{position:relative}
.community-project-featured{position:absolute;inset-block-start:10px;inset-inline-start:10px;padding:4px 9px;border-radius:999px;font-size:12px;font-weight:750;letter-spacing:.01em;color:var(--heart-strong);background:var(--surface);border:1px solid var(--heart)}
.community-project-card h3{overflow-wrap:anywhere}
.community-project-by,.community-remix-credit-line{margin:2px 0 6px;font-size:13px;line-height:1.45;color:var(--muted);overflow-wrap:anywhere}
.community-remix-credit-line strong{color:var(--text);font-weight:680}
.community-link-button{appearance:none;display:inline;border:0;background:none;padding:0;margin:0;font:inherit;font-weight:680;color:var(--heart-strong);cursor:pointer;text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:2px;unicode-bidi:isolate}
.community-link-button:focus-visible{outline:2px solid var(--heart);outline-offset:2px;border-radius:4px}
.community-project-person{unicode-bidi:isolate}
.community-remix-credit{display:grid;gap:6px;min-width:0;padding:13px 14px;border:1px solid var(--border);border-radius:12px;background:var(--surface-2)}
.community-remix-credit[hidden]{display:none}
.community-remix-credit select{width:100%;min-width:0}
.community-remix-credit small{font-size:12px;line-height:1.55}
.community-public-page-optin{display:grid;grid-template-columns:22px minmax(0,1fr);gap:12px;align-items:start;min-width:0;padding:13px 14px;border:1px solid var(--border);border-radius:12px;background:var(--surface-2);cursor:pointer}
.community-public-page-optin input[type=checkbox]{width:20px;height:20px;margin:3px 0 0}
.community-public-page-optin span{display:grid;gap:4px;min-width:0}
.community-public-page-optin strong{font-size:13px;color:var(--text)}
.community-public-page-optin small{font-size:12px;line-height:1.55;overflow-wrap:anywhere}
.community-public-page-optin:focus-within{outline:2px solid var(--heart);outline-offset:3px}
.community-remix-list{display:grid;gap:8px;margin:8px 0 12px}
.community-remix-row{display:flex;align-items:center;justify-content:space-between;gap:12px;min-width:0}
.community-remix-row>div{min-width:0;overflow-wrap:anywhere}
@media(max-width:520px){.community-project-sort .community-action{flex:1 1 auto;padding:7px 10px;font-size:12px}.community-remix-row{flex-wrap:wrap}}
