.community-page{padding-top:24px;padding-bottom:150px;color:#f4f4f6}.community-head{display:flex;align-items:flex-start;gap:18px;margin-bottom:22px}.community-head>div{flex:1}.community-head h1{margin:5px 0 7px;font-size:clamp(32px,6vw,52px)}.community-head p{max-width:720px;margin:0;color:#aeb4bf}.community-back{padding:10px 13px;border:1px solid #424852;border-radius:12px;background:#20242a;color:#fff}.community-grid{display:grid;grid-template-columns:minmax(0,1.25fr) minmax(320px,.75fr);gap:16px;align-items:start}.community-grid main,.community-grid aside{display:grid;gap:16px}.community-panel{padding:20px;border:1px solid #3b414b;border-radius:22px;background:#1a1d23;box-shadow:0 16px 38px #0003}.community-title,.community-section-head{display:flex;align-items:center;justify-content:space-between;gap:13px;margin-bottom:17px}.community-title{justify-content:flex-start}.community-title h2,.community-section-head h2{margin:2px 0;font-size:23px}.community-title p{margin:0;color:#9fa6b0}.community-icon,.community-team-mark{width:50px;height:50px;display:grid;place-items:center;flex:none;border-radius:15px;background:linear-gradient(145deg,#ff9b5d,#ff7139);color:#15171b}.community-icon svg,.community-team-mark svg{width:24px}.community-switches{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px}.community-switches label{display:flex;align-items:flex-start;gap:9px;padding:12px;border:1px solid #404650;border-radius:15px;background:#22262d}.community-switches input{width:20px;height:20px;accent-color:#ff8449}.community-switches span{display:grid}.community-switches small{margin-top:3px;color:#929aa6}.community-preferences fieldset{margin:15px 0;padding:0;border:0}.community-preferences legend{margin-bottom:8px;font-weight:800}.community-checks{display:flex;flex-wrap:wrap;gap:7px}.community-checks label{position:relative}.community-checks input{position:absolute;opacity:0}.community-checks span{display:block;padding:8px 11px;border:1px solid #454b55;border-radius:999px;background:#24282f;color:#c6cbd2}.community-checks input:checked+span{border-color:#ff8a4c;background:#422b21;color:#ffd0b2}.community-privacy{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-bottom:14px}.community-privacy label{display:grid;gap:6px;color:#bcc2cb}.community-privacy select,.community-create-team input,.community-create-team textarea,.community-team-chat textarea,.community-memory textarea,.community-invite input{width:100%;box-sizing:border-box;padding:11px;border:1px solid #474e59;border-radius:12px;background:#262a31;color:#fff;font:inherit}.community-saved{margin-left:10px;color:#77dec2}.community-match-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px}.community-match{display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:10px;align-items:center;padding:11px;border:1px solid #373d46;border-radius:16px;background:#20242a}.community-avatar{width:46px;height:46px;display:grid;place-items:center;flex:none;overflow:hidden;border-radius:50%;background:#4b3155;color:#ead3ff;font-weight:900}.community-avatar img{width:100%;height:100%;object-fit:cover}.community-match>div{display:grid;min-width:0}.community-match>div>button{padding:0;border:0;background:none;color:#fff;text-align:left}.community-match small{color:#a5acb6}.community-match span{overflow:hidden;margin-top:3px;color:#d2d5da;font-size:11px;white-space:nowrap;text-overflow:ellipsis}.community-match em{margin-top:5px;color:#78dec2;font-size:10px;font-style:normal;font-weight:800}.community-follow{padding:7px 9px;border:1px solid #545b66;border-radius:10px;background:#292e35;color:#fff}.community-follow.active{border-color:#ff8e50;background:#422a20;color:#ffd0b2}.community-team-list{display:grid;gap:7px}.community-team-list>button{display:grid;grid-template-columns:auto 1fr auto;gap:10px;align-items:center;padding:10px;border:1px solid #3e444e;border-radius:15px;background:#22262d;color:#fff;text-align:left}.community-team-list>button>span:nth-child(2){display:grid}.community-team-list small{color:#a5acb5}.community-team-mark{width:42px;height:42px;border-radius:13px}.community-team-list b{color:#ffad78}.community-create-team{display:grid;gap:11px;margin-top:14px;padding-top:14px;border-top:1px solid #343a43}.community-create-team label{display:grid;gap:5px}.community-create-team .community-inline{display:flex}.community-challenges{display:grid;gap:8px}.community-challenges article{display:grid;grid-template-columns:auto 1fr;gap:10px;padding:11px;border:1px solid #383e47;border-radius:14px;background:#20242a}.community-challenges article>span{width:35px;height:35px;display:grid;place-items:center;border-radius:11px;background:#33273a;color:#c69cff}.community-challenges article.done>span{background:#214139;color:#75e0c0}.community-challenges article>div{display:grid;grid-template-columns:1fr auto;gap:3px}.community-challenges small{grid-column:1/-1;color:#a3aab4}.community-challenges progress{width:100%;height:7px;accent-color:#ff8a4c}.community-challenges em{font-size:10px;font-style:normal}.community-passport{margin-top:17px;padding-top:15px;border-top:1px solid #353b44}.community-passport h3{margin:3px 0 10px}.community-passport>div:last-child{display:flex;flex-wrap:wrap;gap:7px}.community-passport>div:last-child>span{display:grid;padding:9px 11px;border:1px solid #604632;border-radius:12px;background:#2e231d}.community-passport small{color:#c4a993}.community-memories{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.community-memory{overflow:hidden;border:1px solid #3c424c;border-radius:17px;background:#20242a}.community-memory>img,.community-memory-empty{width:100%;height:150px;display:grid;place-items:center;object-fit:cover;background:#29222e;color:#c89bff}.community-memory-empty svg{width:35px}.community-memory>div{display:grid;gap:7px;padding:12px}.community-memory small{color:#a9afb9}.community-memory label{overflow:hidden;color:#ffb082;font-size:12px}.community-memory input{position:absolute;left:-9999px}.community-empty{padding:18px;color:#9fa6b0;text-align:center}.community-alert{color:#ffaaa2}.community-team-hero{display:flex;gap:15px;margin:16px 0;padding:18px;border-radius:18px;background:linear-gradient(135deg,#35251f,#202832)}.community-team-hero>span{width:58px;height:58px;display:grid;place-items:center;border-radius:17px;background:#ff8348;color:#17181b}.community-team-hero h1{margin:3px 0}.community-team-hero p{margin:5px 0;color:#c5c9cf}.community-team-layout{display:grid;grid-template-columns:320px minmax(0,1fr);gap:16px}.community-team-layout>section{padding:16px;border:1px solid #393f48;border-radius:17px;background:#20242a}.community-team-member{width:100%;display:flex;align-items:center;gap:9px;padding:9px 0;border:0;border-bottom:1px solid #343a43;background:none;color:#fff;text-align:left}.community-team-member>span:last-child{display:grid}.community-team-member small{color:#9da4ae}.community-team-chat>div{display:grid;gap:7px;max-height:360px;overflow:auto}.community-team-chat article{max-width:80%;padding:9px 11px;border-radius:5px 13px 13px;background:#30353e}.community-team-chat article.mine{justify-self:end;border-radius:13px 5px 13px 13px;background:#62351f}.community-team-chat article p{margin:4px 0;white-space:pre-wrap}.community-team-chat article small{color:#b8bdc5}.community-team-chat form{display:grid;grid-template-columns:1fr auto;gap:8px;margin-top:12px}.community-invite{display:grid;gap:7px;margin-top:14px}.community-invite>span{display:grid;gap:5px}.community-invite>span>button{display:flex;align-items:center;gap:8px;padding:7px;border:1px solid #414751;border-radius:12px;background:#292e35;color:#fff}
@media(max-width:900px){.community-grid{grid-template-columns:1fr}.community-memories{grid-template-columns:repeat(2,minmax(0,1fr))}.community-team-layout{grid-template-columns:1fr}}
@media(max-width:680px){.community-page{padding:14px 14px 140px}.community-head{display:block}.community-head .community-back{margin-bottom:13px}.community-panel{padding:15px;border-radius:18px}.community-switches{grid-template-columns:1fr}.community-privacy,.community-match-grid,.community-memories{grid-template-columns:1fr}.community-title h2,.community-section-head h2{font-size:20px}.community-match{grid-template-columns:auto minmax(0,1fr)}.community-follow{grid-column:2;justify-self:start}.community-team-chat form{grid-template-columns:1fr}.community-memory>img,.community-memory-empty{height:190px}}
.community-match-actions{display:grid;gap:6px;justify-items:stretch}.community-friend{min-height:34px;padding:7px 10px;border:1px solid #ff9f65;border-radius:10px;background:#38251c;color:#ffc39e;font-weight:850}.community-friend.active{border-color:#67ddc1;background:#193a33;color:#8cead1}.community-friend.pending{border-color:#4a4f59;background:#292d34;color:#aeb4bd}.community-friend-requests,.community-friends{display:grid;gap:8px}.community-friend-requests{margin-bottom:18px;padding-bottom:18px;border-bottom:1px solid #343a43}.community-friend-requests h3{margin:0 0 4px}.community-friend-requests article,.community-friends article{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:11px;padding:11px;border:1px solid #3c424c;border-radius:15px;background:#20242a}.community-friend-requests article>button,.community-friends article>button{display:grid;padding:0;border:0;background:none;color:#fff;text-align:left}.community-friend-requests article small,.community-friends article small{color:#9fa6b0}.community-friend-requests article>span,.community-friends article>span{display:flex;gap:6px}.community-friend-requests .btn,.community-friends .btn{min-height:36px;padding:7px 10px}.community-more{width:36px;height:36px;border:1px solid #4a505a;border-radius:10px;background:#292d34;color:#c8cbd1;font-size:21px}
@media(max-width:680px){.community-match-actions{grid-column:1/-1;grid-template-columns:1fr 1fr}.community-follow{grid-column:auto}.community-friend-requests article,.community-friends article{grid-template-columns:auto minmax(0,1fr)}.community-friend-requests article>span,.community-friends article>span{grid-column:1/-1}.community-friend-requests article>span .btn,.community-friends article>span .btn{flex:1}}

/* Focused friends directory: the team workspace is intentionally hidden for now. */
.community-friends-page{max-width:780px}.community-friends-head{align-items:flex-start;margin-bottom:16px}.community-friends-head>div{flex:1}.community-friends-head h1{margin:5px 0 0}.community-friends-only{padding:0;overflow:hidden}.community-friends-toolbar{display:flex;align-items:center;gap:14px;padding:18px;border-bottom:1px solid #343942}.community-friends-toolbar label{display:flex;align-items:center;gap:10px;min-width:0;flex:1;padding:0 15px;border:1px solid #515762;border-radius:999px;background:#111318}.community-friends-toolbar label>svg{width:20px;flex:0 0 20px;color:#9fa6b0}.community-friends-toolbar input{width:100%;min-height:52px;padding:0;border:0;outline:0;background:transparent;color:#fff;font-size:16px}.community-friends-toolbar>span{color:#aeb4bd;white-space:nowrap}.community-friends-list{display:grid}.community-friend-row{display:grid;grid-template-columns:68px minmax(0,1fr) auto;align-items:center;gap:16px;width:100%;padding:18px 20px;border:0;border-bottom:1px solid #30343b;background:#1b1e23;color:#fff;text-align:left}.community-friend-row:last-child{border-bottom:0}.community-friend-row:hover,.community-friend-row:focus-visible{background:#24282f}.community-friend-row[hidden]{display:none}.community-friend-row .community-avatar{width:68px;height:68px;border-radius:50%}.community-friend-row>span{min-width:0}.community-friend-row strong{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:18px}.community-friend-row small{display:flex;align-items:center;gap:6px;margin-top:7px;color:#aeb4bd;font-size:14px}.community-friend-row small svg{width:16px;height:16px}.community-friend-row>b{color:#b9bec7;font-size:30px;font-weight:400}.community-friends-only>.community-empty{margin:0;padding:28px 20px}.community-friend-requests{margin:0;padding:18px;border-bottom:1px solid #343942}.community-friend-requests h2{margin:0 0 12px;font-size:18px}
@media(max-width:560px){.community-friends-page{padding-inline:12px}.community-friends-toolbar{align-items:stretch;flex-direction:column;padding:14px}.community-friends-toolbar>span{padding-left:6px}.community-friend-row{grid-template-columns:58px minmax(0,1fr) auto;gap:13px;padding:15px 14px}.community-friend-row .community-avatar{width:58px;height:58px}.community-friend-row strong{font-size:17px}}

/* Compact form controls must stay inside their card. */
.community-create-team{min-width:0;max-width:100%;overflow:hidden}
.community-create-team>label:not(.community-inline),.community-create-team input:not([type="checkbox"]),.community-create-team textarea{min-width:0;max-width:100%}
.community-create-team .community-inline{display:grid;grid-template-columns:24px minmax(0,1fr);align-items:center;justify-content:start;gap:10px;width:100%;max-width:100%;box-sizing:border-box}
.community-create-team .community-inline input[type="checkbox"]{width:22px;min-width:22px;height:22px;min-height:22px;margin:0;padding:0;accent-color:#ff8449}

.community-team-invitations{border-color:#ff955f73;background:linear-gradient(145deg,#252028,#1a2228)}
.community-team-invitations>div:last-child{display:grid;gap:10px}
.community-team-invitations article{display:grid;grid-template-columns:auto minmax(0,1fr);align-items:center;gap:10px;padding:12px;border:1px solid #434a54;border-radius:16px;background:#22262d}
.community-team-invitations article>span:nth-child(2){display:grid;min-width:0}.community-team-invitations article small{margin-top:3px;color:#aeb4bd}
.community-team-invitations article>div{grid-column:1/-1;display:grid;grid-template-columns:1fr 1fr;gap:8px}.community-team-invitations .btn{min-height:40px;justify-content:center}
.community-pending-invites{display:grid;gap:7px;margin:12px 0;padding:11px;border:1px dashed #555d68;border-radius:14px;background:#181b20}
.community-pending-invites>span{display:flex;align-items:center;gap:9px}.community-pending-invites small{color:#f2b48e}
.community-team-member-row{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:9px;border-bottom:1px solid #343a43}.community-team-member-row .community-team-member{border-bottom:0;min-width:0}.community-team-remove{padding:7px 9px;border:1px solid #8d4e4e;border-radius:10px;background:#352124;color:#ffaaa2;font:inherit;font-size:12px;font-weight:850}
.community-team-danger{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-top:18px;padding:15px;border:1px solid #7f4448;border-radius:16px;background:#301f23}.community-team-danger>div{display:grid;gap:3px}.community-team-danger small{color:#c9a8ab}.community-team-danger button{flex:none;padding:10px 12px;border:1px solid #d3656e;border-radius:11px;background:#8f303b;color:#fff;font:inherit;font-weight:900}
@media(max-width:680px){.community-team-danger{align-items:stretch;flex-direction:column}.community-team-danger button{width:100%}}
.community-team-settings,.community-team-transfer{margin:1rem 0;padding:1rem;border:1px solid #434a54;border-radius:18px;background:rgba(255,255,255,.02)}
.community-team-settings summary{cursor:pointer;font-weight:800;color:#ff9d78}.community-team-settings form{display:grid;gap:.8rem;margin-top:1rem}
.community-team-settings label,.community-team-transfer label{display:grid;gap:.35rem;font-weight:700}.community-team-settings input,.community-team-settings textarea,.community-team-transfer select{width:100%;box-sizing:border-box}
.community-team-transfer{display:flex;align-items:end;gap:.75rem}.community-team-transfer label{flex:1}
@media(max-width:680px){.community-team-transfer{align-items:stretch;flex-direction:column}}
/* Review identity stays compact and links to the existing member profile. */
.community-review-head{align-items:flex-start;gap:12px}
.review-author-slot{display:block;min-width:0;flex:1}
.review-author{display:flex;align-items:center;gap:9px;min-width:0;max-width:100%;color:inherit;text-decoration:none}
a.review-author:hover .review-author-copy strong{color:var(--orange)}
a.review-author:focus-visible{outline:2px solid var(--orange);outline-offset:4px;border-radius:9px}
.review-author-avatar{display:grid;place-items:center;flex:0 0 36px;width:36px;height:36px;border-radius:50%;overflow:hidden;background:#2b3039;color:#ffbd8c;font-size:12px;font-weight:700;border:1px solid #ffffff24}
.review-author-avatar img{display:block;width:100%;height:100%;object-fit:cover}
.review-author-copy{display:flex;flex-direction:column;gap:3px;min-width:0;line-height:1.3}
.review-author-copy strong{font-size:14px;overflow-wrap:anywhere}
.community-review .review-author-copy small{font-size:11px;color:var(--muted);line-height:1.35}
.review-author-rating{display:flex;flex:none;gap:2px;margin-top:3px}
@media(max-width:360px){.review-author-rating .icon{width:12px;height:12px}.review-author-avatar{flex-basis:32px;width:32px;height:32px}}
