/* Stage 07 V5: 248px sidebar, 76px header, 720px feed, 24px gap, 388px rail at 1440px. */
.v5-member-shell.v5-community-shell .v5-member-header{height:76px}
.v5-member-shell.v5-community-shell .v5-member-header>strong{font-size:25px}
.v5-community-page{font-family:'DM Sans',sans-serif;color:var(--v3-text)}
.v5-community-page h1{font-size:32px;line-height:42px;margin:0 0 8px;font-weight:600}
.v5-community-columns{display:grid;grid-template-columns:minmax(0,720fr) minmax(280px,388fr);gap:24px;align-items:start}
.v5-community-columns>div{min-width:0}
.v5-community-page a{color:var(--v3-primary);text-decoration:none}
.v5-community-page button{background:none;border:0;color:var(--v3-primary);cursor:pointer;font:inherit;min-height:44px;padding:4px 8px}
.v5-community-page button:disabled{cursor:default;opacity:.6}
.v5-community-page button.v5-primary{background:#743bd1;color:white;border-radius:12px;padding:12px 24px}
.v5-community-tabs{display:flex;gap:30px;align-items:center;height:41px;margin-bottom:18px;border-bottom:1px solid var(--v3-raised)}
.v5-community-tabs>*{font-size:16px;min-height:41px;display:flex;align-items:center;color:var(--v3-muted)!important}
.v5-community-tabs>[aria-current=page]{color:var(--v3-primary)!important;border-bottom:2px solid var(--v3-primary)}
.v5-community-composer{border-radius:14px;background:var(--v3-surface);padding:18px 20px 10px;display:grid;grid-template-columns:48px minmax(0,1fr);gap:0 16px;min-height:110px;margin-bottom:18px}
.v5-community-composer>a{height:48px;border-radius:20px;display:flex;align-items:center;background:var(--v3-background);padding:0 20px;font-size:15px;color:var(--v3-muted)}
.v5-community-composer>div{grid-column:2;display:flex;gap:28px;align-items:center;font-size:13px;min-height:30px}
.v5-community-avatar{display:grid;place-items:center;width:48px;height:48px;border-radius:50%;background:var(--v3-raised);overflow:hidden;flex:none;color:var(--v3-primary)}
.v5-community-avatar img{width:100%;height:100%;object-fit:cover}
.v5-community-person{display:flex;align-items:center;gap:14px;min-width:0;color:var(--v3-text)!important}
.v5-community-person>span:last-child{min-width:0}
.v5-community-person strong{display:block;font-size:18px;font-weight:600;overflow-wrap:anywhere}
.v5-community-person small{display:block;font-size:12px;color:var(--v3-muted);margin-top:4px}
.v5-community-post{padding:20px;background:var(--v3-surface);border-radius:14px;margin:0 0 18px}
.v5-community-post>header{display:flex;justify-content:space-between;align-items:center;gap:12px}
.v5-community-post>header>button{font-size:14px}
.v5-community-caption{white-space:pre-wrap;overflow-wrap:anywhere;font-size:16px;line-height:26px;margin:18px 0 24px}
.v5-community-photo{margin:0 0 12px;border-radius:16px;overflow:hidden;height:330px;background:var(--v3-background);display:grid;place-items:center}
.v5-community-photo img{width:100%;height:100%;object-fit:cover}
.v5-community-photo img[hidden]{display:none}
.v5-community-photo figcaption{font-size:14px;color:var(--v3-muted)}
.v5-community-post-actions{display:flex;gap:30px;align-items:center;margin-top:6px}
.v5-community-post-actions>a{font-size:16px;min-height:44px;display:flex;align-items:center}
.v5-community-counts{font-size:13px;color:var(--v3-muted);margin:0}
.v5-community-menu{display:flex;gap:20px;justify-content:flex-end;align-items:center;flex-wrap:wrap}
.v5-community-rail{padding-top:6px;display:grid;gap:18px}
.v5-community-rail section{background:var(--v3-surface);border-radius:14px;padding:24px}
.v5-community-rail h2{font-size:21px;line-height:28px;margin:0 0 18px;font-weight:600}
.v5-community-rail p{font-size:15px;line-height:24px;color:var(--v3-muted)}
.v5-community-rail section>a{font-size:14px;display:block;margin-top:18px}
.v5-community-suggestion{display:flex;justify-content:space-between;align-items:center;gap:8px;min-height:64px}
.v5-community-suggestion .v5-community-avatar{width:46px;height:46px}
.v5-community-suggestion strong{font-size:16px}
.v5-community-suggestion>button{font-size:14px;padding:0}
.v5-community-topic{display:block!important;text-align:left;padding:0!important;width:100%;margin-bottom:12px}
.v5-community-topic strong{font-size:16px;font-weight:400;display:block}
.v5-community-topic small{font-size:12px;color:var(--v3-muted);display:block;margin-top:6px}
.v5-community-editor{background:var(--v3-surface);border-radius:14px;padding:30px;margin-top:32px;min-height:830px}
.v5-community-editor h2{font-size:30px;line-height:39px;margin:4px 0 12px}
.v5-community-editor>p{font-size:17px;line-height:26px;color:var(--v3-muted);margin:0 0 38px}
.v5-community-page fieldset{border:0;padding:0;margin:0;min-width:0}
.v5-community-page textarea,.v5-community-page input,.v5-community-page select{background:var(--v3-background);color:var(--v3-text);border:1px solid var(--v3-raised);border-radius:12px;font:inherit;padding:14px;max-width:100%}
.v5-community-page textarea{display:block;width:100%;min-height:100px;resize:vertical}
.v5-community-editor textarea{height:125px;margin-bottom:24px}
.v5-community-editor .v5-community-photo{height:320px;border-radius:12px}
.v5-community-upload{display:flex;gap:16px;align-items:center;flex-wrap:wrap;min-height:70px;color:var(--v3-primary)}
.v5-community-upload input{font-size:14px;width:100%}
.v5-community-audience{display:flex;gap:16px;align-items:center;margin:24px 0}
.v5-community-media-notice{font-size:13px;color:var(--v3-muted)}
.v5-community-editor-actions{display:flex;align-items:center;gap:30px;margin-top:40px}
.v5-community-editor-actions>button{width:230px}
.v5-community-comments{background:var(--v3-surface);border-radius:14px;padding:24px}
.v5-community-comments h2{font-size:22px;margin:0 0 24px}
.v5-community-comments article{padding:16px 0;border-bottom:1px solid var(--v3-raised)}
.v5-community-comments article p{white-space:pre-wrap;overflow-wrap:anywhere;margin:10px 0}
.v5-community-comments article small{color:var(--v3-muted);font-size:12px}
.v5-community-comments article>small{display:block}
.v5-community-comments article>button{font-size:13px;margin-right:12px}
.v5-community-comments article.v5-community-reply{margin-left:24px}
.v5-community-comments>form{margin-top:24px}
.v5-community-page form label{display:block;margin-bottom:10px}
.v5-community-comments form textarea{margin:10px 0}
.v5-community-member{display:flex;align-items:center;gap:24px;flex-wrap:wrap;background:var(--v3-surface);border-radius:14px;padding:24px;margin-top:18px}
.v5-community-member p{color:var(--v3-muted);font-size:14px}
.v5-community-member>button{margin-left:auto}
.v5-community-search{margin:32px 0;display:flex;gap:16px;align-items:end;flex-wrap:wrap}
.v5-community-search label{width:100%}
.v5-community-search input{flex:1;min-width:180px}
.v5-community-page [role=alert]{padding:14px;border:1px solid var(--v3-primary);border-radius:12px;overflow-wrap:anywhere}
@media(max-width:1150px){.v5-community-columns{grid-template-columns:minmax(0,1fr)}.v5-community-rail{grid-template-columns:repeat(2,minmax(0,1fr))}.v5-community-rail>section:last-child{grid-column:1/-1}}
@media(max-width:600px){.v5-community-page h1{font-size:28px}.v5-community-post,.v5-community-editor,.v5-community-comments{padding:18px}.v5-community-rail{grid-template-columns:1fr}.v5-community-photo,.v5-community-editor .v5-community-photo{height:260px}.v5-community-post-actions{gap:20px}.v5-community-person strong{font-size:16px}.v5-community-person small{font-size:11px}.v5-community-tabs{gap:20px}.v5-community-editor{min-height:initial}.v5-community-editor h2{font-size:26px}.v5-community-editor-actions>button{width:auto}.v5-community-member{gap:12px}.v5-community-member p{width:100%}}
