/* Community's shared dialog surface. Native dialog retains focus trapping and Escape. */
.community-page .community-card{padding:20px 22px 12px;background:var(--community-surface);border:1px solid var(--community-quiet-border);border-radius:var(--community-radius);box-shadow:var(--community-quiet-shadow);min-width:0;overflow:visible;transition:border-color var(--community-surface-transition) ease,box-shadow var(--community-surface-transition) ease}
.community-page .community-card:hover{border-color:var(--community-premium-border);box-shadow:var(--community-edge-shadow)}
.community-page .community-card .community-post-author{position:relative;padding-right:0;align-items:flex-start;gap:12px;margin-bottom:12px}
.community-page .community-card .community-post-author .community-avatar{width:42px;height:42px}
.community-page .community-card .community-post-author>div{padding-top:1px}
.community-page .community-card .community-post-author strong{font-size:14px;line-height:1.5}
.community-page .community-card-meta{font-size:11px;gap:6px;margin-top:3px;color:var(--text-soft);flex-wrap:wrap}
.community-page .community-card>h2{font-size:16px;line-height:1.5;margin:0 0 8px;font-weight:600;letter-spacing:-.02em}
.community-page .community-card .community-excerpt{font-size:14px;line-height:1.8;padding:0;color:var(--text-main);overflow-wrap:anywhere}
.community-page .community-excerpt>:first-child{margin-top:0}
.community-page .community-excerpt>:last-child{margin-bottom:0}
.community-page .community-excerpt.is-collapsed{max-height:10.8em;overflow:hidden;mask-image:linear-gradient(#000 80%,transparent)}
.community-page .community-read-more{border:0;background:none;color:var(--green);font:600 12px/1.5 Inter,sans-serif;padding:8px 0;cursor:pointer}
.community-page .community-card-controls{position:relative;flex:none;margin:0 0 0 auto}
.community-page .community-card-controls>summary{display:grid;place-items:center;width:32px;height:32px;margin:0;list-style:none;border-radius:8px;font-size:24px;line-height:1;color:var(--text-soft)}
.community-page .community-control-menu{position:fixed;inset:auto;margin:0;z-index:1100;width:216px;max-width:calc(100vw - 24px);max-height:calc(100dvh - 24px);overflow-y:auto;padding:5px;border:1px solid var(--community-premium-border);border-radius:10px;background:var(--community-premium-background);color:var(--text-main);box-shadow:var(--community-quiet-shadow)}
.community-page .community-control-menu::backdrop{background:transparent;pointer-events:none}
.community-page .community-control-menu form{display:block;margin:0;padding:0;border:0}
.community-page .community-menu-action{display:flex;align-items:center;justify-content:flex-start;gap:10px;width:100%;min-height:39px;max-width:100%;padding:9px 10px;border:0;border-radius:6px;background:transparent;color:var(--text-main);text-align:left;text-decoration:none;font:500 12px/1.5 Inter,sans-serif;cursor:pointer;transition:background var(--community-surface-transition) ease,color var(--community-surface-transition) ease}
.community-page .community-menu-action svg{width:16px;height:16px;color:var(--text-soft)}
.community-page .community-menu-action:hover{background:var(--profile-hover-surface);color:var(--community-accent)}
.community-page .community-menu-action.is-danger,.community-page .community-menu-action.is-danger svg{color:#ee9f98}
.community-page .community-menu-action.is-danger:hover{background:#d1796610}
.community-page .community-card-controls>summary::-webkit-details-marker{display:none}
.community-page .community-card-controls>summary:hover{background:var(--profile-neutral-hover);color:var(--green)}
.community-page .community-card .community-gallery{margin:16px 0;border-radius:10px;border:0;gap:5px;background:transparent;align-items:center}
.community-page .community-gallery>a{background:var(--bg-main);border-radius:6px;overflow:hidden}
.community-page .community-gallery img{height:auto;aspect-ratio:auto;max-height:460px;object-fit:contain}
.community-page .community-gallery.media-count-5>a:last-child{grid-column:1/-1}
.community-page .community-card .community-social-actions{display:flex;flex-wrap:wrap;gap:2px;margin:16px 0 0;padding:7px 0;border-top:1px solid var(--profile-border);border-bottom:1px solid var(--profile-border)}
.community-page .community-card .community-social-actions form{margin:0}
.community-page .community-card .community-social-actions .community-button{min-height:36px;padding:7px 9px;border:0;border-radius:7px;background:transparent;color:var(--text-soft);font-size:11px;gap:6px}
.community-page .community-card .community-social-actions svg{width:17px;height:17px;stroke-width:1.7}
.community-page .community-card .community-social-actions .community-button:hover,.community-page .community-card .community-social-actions [aria-pressed=true]{background:var(--profile-active-surface);color:var(--green)}
.community-page .community-card-conversation{padding-top:4px}
.community-page .community-card .community-comment{background:none;border-radius:0;box-shadow:none}
.community-page .community-card .community-feedback:empty{display:none}
.community-page .community-follow-counts{display:flex;flex-wrap:wrap;gap:22px;padding:12px 26px 20px}
.community-page .community-follow-counts button{display:inline-flex;align-items:baseline;gap:6px;padding:4px 0;border:0;background:none;font:400 12px/1.5 Inter,sans-serif;color:var(--text-soft)}
.community-page .community-follow-counts strong{font-size:15px;font-weight:650;color:var(--text-main);font-variant-numeric:tabular-nums}
.community-page .community-follow-counts button:hover,.community-page .community-follow-counts button:hover strong{color:var(--green)}
.community-page :is(.community-read-more,.community-follow-counts button,.community-card-controls>summary):focus-visible{outline:2px solid var(--green);outline-offset:3px}
@media(max-width:600px){.community-page .community-card{padding:16px 14px 10px}.community-page .community-card .community-post-author .community-avatar{width:38px;height:38px}.community-page .community-card .community-social-actions .community-button{min-height:42px;padding:8px}.community-page .community-follow-counts{padding:12px 16px 18px;gap:20px}.community-page .community-card-controls>summary{width:36px;height:36px}}
.community-page dialog.community-social-modal{position:fixed;inset:0;margin:auto}
.community-page .community-social-modal[open]{opacity:1;transform:none}
@starting-style{.community-page .community-social-modal[open]{opacity:0;transform:translateY(5px)}}
.community-page .community-social-modal::backdrop{transition:opacity .16s ease,display .16s allow-discrete,overlay .16s allow-discrete}
.community-page .community-social-modal:not([open])::backdrop{opacity:0}
.community-page dialog.community-delete-modal,.community-page dialog.community-report-modal{width:min(420px,calc(100vw - 24px))}
.community-page .community-delete-modal .community-modal-header{border-bottom:0;padding-bottom:0}
.community-page .community-delete-modal h2{display:flex;align-items:center;gap:10px}
.community-page .community-delete-modal h2 svg{width:19px;height:19px;color:#ee9f98}
.community-page .community-delete-modal .community-delete-body{padding-top:12px;padding-bottom:20px}
.community-page .community-delete-body [data-delete-title]{color:#f0a7a0;font-size:12px;margin:8px 0 0}
.community-page .community-delete-body [data-delete-title]:empty{display:none}
.community-page .community-report-modal label+label{margin-top:16px}
.community-page .community-social-modal{--modal-line:var(--community-line);--modal-muted:var(--text-soft);--modal-green:var(--community-accent);color:var(--text-main);background:var(--community-premium-background);border:1px solid var(--community-premium-border);border-radius:12px;padding:0;width:min(520px,calc(100vw - 32px));max-width:calc(100vw - 32px);max-height:min(760px,calc(100dvh - 48px));overflow:auto;overscroll-behavior:contain;box-shadow:var(--community-premium-shadow);font:400 13px/1.55 Inter,sans-serif;transition:opacity .16s ease,transform .16s ease,border-color .24s ease,box-shadow .24s ease,display .16s allow-discrete,overlay .16s allow-discrete;opacity:0;transform:translateY(5px);scrollbar-width:thin;scrollbar-color:var(--text-soft) transparent}
.community-page .community-social-modal:focus-within{border-color:var(--community-premium-focus-border);box-shadow:var(--community-premium-focus-shadow)}
.community-page .community-social-modal::backdrop{background:var(--profile-dialog-backdrop);backdrop-filter:none}
.community-page .community-modal-header{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:22px 24px 18px;border-bottom:1px solid var(--modal-line);margin:0}
.community-page .community-modal-header h2{margin:0;color:var(--text-main);font-size:17px;font-weight:650;letter-spacing:-.025em;line-height:1.4}
.community-page .community-modal-header p{margin:4px 0 0;color:var(--modal-muted);font-size:11px;line-height:1.5}
.community-page .community-modal-close{display:grid;place-items:center;flex:none;width:34px;height:34px;padding:0;border:1px solid transparent;border-radius:9px;background:transparent;color:var(--text-soft);font:400 25px/1 Inter,sans-serif;cursor:pointer;transition:color .16s,background .16s}
.community-page .community-modal-close:hover{color:var(--text-main);background:var(--profile-neutral-hover)}
.community-page .community-modal-body{padding:22px 24px;min-width:0}
.community-page .community-modal-footer{display:flex;align-items:center;justify-content:flex-end;gap:10px;padding:16px 24px;border-top:1px solid var(--modal-line);background:transparent}
.community-page .community-social-modal form{margin:0;gap:0;display:block}
.community-page .community-social-modal .community-button{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:38px;padding:8px 14px;border:1px solid var(--profile-border);border-radius:9px;background:var(--profile-neutral-hover);color:var(--text-main);font:600 12px/1.4 Inter,sans-serif;box-shadow:none;cursor:pointer}
.community-page .community-social-modal .community-button.is-primary{background:var(--profile-action-surface);border-color:var(--profile-action-border);color:var(--green)}
.community-page .community-social-modal .community-button:hover:not(:disabled){background:var(--profile-neutral-hover);border-color:var(--profile-action-hover-border)}
.community-page .community-social-modal .community-button.is-primary:hover:not(:disabled){background:var(--profile-action-hover);border-color:var(--profile-action-hover-border)}
.community-page .community-social-modal .community-button:disabled{opacity:.5;cursor:wait}
.community-page .community-social-modal :is(button,a,input,textarea):focus-visible{outline:2px solid var(--modal-green);outline-offset:3px}
.community-page .community-social-modal :is(textarea,input[type=search],input[type=text],select){width:100%;min-width:0;box-sizing:border-box;background:var(--community-inset);color:var(--text-main);border:1px solid var(--profile-border);border-radius:9px;padding:11px 12px;font:400 13px/1.6 Inter,sans-serif;box-shadow:none}
.community-page .community-social-modal :is(textarea,input)::placeholder{color:var(--text-soft)}
.community-page .community-social-modal textarea{min-height:100px;max-height:210px;resize:vertical}
.community-page .community-modal-feedback{font-size:12px;line-height:1.6;color:var(--modal-muted);margin:12px 0 0;overflow-wrap:anywhere}
.community-page .community-modal-feedback:empty{display:none}
.community-page .community-modal-feedback.is-error{color:#f0a7a0}
.community-page .community-cover-stage{height:124px;position:relative;overflow:hidden;border-radius:10px;background:var(--profile-secondary-surface);border:1px solid var(--profile-neutral-hover)}
.community-page .community-cover-stage .community-cover-preview{display:block;width:100%;height:100%;max-height:none;border-radius:0;object-fit:cover}
.community-page .community-cover-stage [hidden]{display:none}
.community-page .community-cover-placeholder{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;gap:9px;color:var(--text-soft);font-size:11px}
.community-page .community-cover-placeholder svg{width:20px;height:20px;opacity:.6}
.community-page .community-cover-camera{position:absolute;right:10px;bottom:10px;display:grid;place-items:center;width:34px;height:34px;padding:0;border:1px solid var(--profile-action-hover-border);border-radius:9px;color:var(--text-main);background:var(--bg-panel);backdrop-filter:blur(5px);cursor:pointer}
.community-page .community-cover-camera svg{width:18px;height:18px}
.community-page .community-cover-tools{display:flex;align-items:center;flex-wrap:wrap;gap:12px;padding:10px 0 20px}
.community-page .community-cover-tools>span{margin-left:auto;color:var(--modal-muted);font-size:10px}
.community-page .community-text-button{border:0;padding:3px 0;background:none;color:var(--text-main);font:500 11px/1.5 Inter,sans-serif;cursor:pointer}
.community-page .community-text-button:hover:not(:disabled){color:var(--modal-green)}
.community-page .community-text-button:disabled{color:var(--text-soft);cursor:default}
.community-page .community-biography-field>label{display:flex;align-items:center;justify-content:space-between;gap:12px;font-size:12px;font-weight:550;color:var(--text-main);margin:0 0 9px}
.community-page [data-biography-count]{font-size:10px;color:var(--modal-muted);font-variant-numeric:tabular-nums;font-weight:400}
.community-page [data-biography-count].is-limit{color:var(--modal-green)}
.community-page .community-field-hint{margin:8px 0 0;font-size:10px;color:var(--modal-muted);line-height:1.6}
.community-page .community-visually-hidden{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;padding:0;border:0}
.community-page .community-people-modal[open]{display:flex;flex-direction:column;overflow:hidden;max-height:min(660px,calc(100dvh - 48px))}
.community-page .community-people-modal .community-modal-header{flex:none;border:0;padding-bottom:14px}
.community-page .community-people-tabs{display:flex;gap:24px;padding:0 24px;flex:none;border-bottom:1px solid var(--modal-line)}
.community-page .community-people-tabs button{position:relative;border:0;background:none;color:var(--modal-muted);padding:10px 0 14px;min-height:42px;font:550 12px/1.5 Inter,sans-serif;cursor:pointer}
.community-page .community-people-tabs button[aria-selected=true]{color:var(--modal-green)}
.community-page .community-people-tabs button[aria-selected=true]::after{content:'';position:absolute;inset:auto 0 0;height:2px;border-radius:2px;background:var(--modal-green)}
.community-page .community-people-search{position:relative;flex:none;margin:18px 24px 8px}
.community-page .community-people-search svg{position:absolute;left:12px;top:11px;width:17px;height:17px;color:var(--text-soft);pointer-events:none}
.community-page .community-social-modal .community-people-search input[type=search]{padding:9px 12px 9px 37px;min-height:38px;font-size:12px;margin:0}
.community-page .community-people-panel{min-height:0;overflow-y:auto;overscroll-behavior:contain;padding:0 24px 18px;scrollbar-width:thin;scrollbar-color:var(--text-soft) transparent}
.community-page .community-person{display:flex;align-items:center;gap:11px;min-width:0;min-height:68px;padding:12px 0;border-bottom:1px solid var(--modal-line);margin:0;background:none;border-radius:0}
.community-page .community-person:last-child{border-bottom:0}
.community-page .community-person .community-avatar{width:36px;height:36px;font-size:14px}
.community-page .community-person>strong{flex:1;min-width:0;font-size:12px;line-height:1.5}
.community-page .community-person>strong a{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--text-main)}
.community-page .community-person>strong a:hover{color:var(--modal-green)}
.community-page .community-person form{flex:none;margin:0 0 0 auto;max-width:45%;position:relative}
.community-page .community-person .community-button{min-height:32px;padding:6px 10px;font-size:10px;white-space:nowrap}
.community-page .community-person [aria-pressed=false]{color:var(--green);border-color:var(--profile-action-border);background:var(--profile-action-surface)}
.community-page .community-person [data-social-feedback]:not(:empty){display:block;max-width:150px;font-size:10px;line-height:1.4;margin-top:5px;color:var(--modal-muted);overflow-wrap:anywhere}
.community-page .community-people-status{margin:18px 0;text-align:center;font-size:12px;line-height:1.7;color:var(--modal-muted)}
.community-page .community-people-status:empty{display:none}
.community-page .community-people-more{display:flex;margin:12px auto 0}
.community-page .community-social-modal [hidden]{display:none!important}
.community-page .community-post-editor-modal{width:min(620px,calc(100vw - 32px))}
.community-page .community-post-editor-modal .community-editor{padding:20px 24px;display:grid;gap:12px;border:0;border-radius:0;margin:0;background:transparent}
.community-page .community-post-editor-modal .community-editor>.community-editor-header{display:none}
.community-page .community-post-editor-modal .community-editor>label{display:grid;gap:7px;font-size:11px}
.community-page .community-post-editor-modal .community-editor>.community-actions{justify-content:flex-end;border-top:1px solid var(--modal-line);padding-top:16px;margin-top:4px}
.community-page .community-post-editor-modal .community-editor>.community-actions>.community-button{flex:0 1 auto;min-height:38px}
.community-page .community-delete-body p{margin:0 0 12px;color:var(--modal-muted);font-size:12px;line-height:1.7;overflow-wrap:anywhere}
.community-page .community-social-modal .community-button.is-danger{color:#f5c1ba;background:#b65b491b;border-color:#d1796638}

@media(max-width:600px){.community-page .community-social-modal{width:calc(100vw - 24px);max-width:calc(100vw - 40px);max-height:calc(100dvh - 32px);border-radius:12px}.community-page .community-modal-header{padding:18px}.community-page .community-modal-body{padding:18px}.community-page .community-modal-footer{padding:14px 18px;gap:8px}.community-page .community-modal-footer>.community-button{padding:10px 12px;min-height:42px}.community-page .community-cover-stage{height:108px}.community-page .community-cover-tools>span{flex-basis:100%;margin:0}.community-page .community-people-tabs{padding:0 18px;gap:22px}.community-page .community-people-search{margin:14px 18px 6px}.community-page .community-people-panel{padding:0 18px 14px}.community-page .community-modal-close{width:36px;height:36px}.community-page .community-post-editor-modal .community-editor{padding:18px}.community-page .community-person{gap:9px}.community-page .community-person .community-button{padding:7px 9px;min-height:36px}}
@media(prefers-reduced-motion:reduce){.community-page .community-social-modal{animation:none;transition:none}.community-page .community-modal-close{transition:none}}
