.community-actions{display:flex;align-items:center;flex-wrap:wrap;gap:0;margin:8px 0 4px}
.community-action{display:inline-flex;align-items:center;justify-content:center;gap:5px;min-width:46px;min-height:44px;padding:0 6px;border:0;border-radius:10px;background:transparent;color:var(--tg-theme-text-color);font:inherit;font-size:13px;cursor:pointer;font-variant-numeric:tabular-nums;transition:color .15s}
.community-action svg{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.community-action.is-liked{color:var(--brand)}
.community-action.is-liked svg{fill:currentColor}
.community-wall{display:flex;align-items:center;flex-wrap:wrap;margin:14px 0 20px;padding:2px 6px;border-radius:12px;background:var(--tg-theme-secondary-bg-color)}
.community-wall .community-actions{display:contents}
.community-wall .community-action{min-width:58px}
.community-wall .community-error{order:1;padding:0 8px;overflow-wrap:anywhere}
.community-wall-divider{width:1px;height:20px;margin:0 8px;background:color-mix(in srgb,var(--tg-theme-text-color) 12%,transparent);flex-shrink:0}
.community-wall-open{display:flex;align-items:center;gap:9px;flex:1;min-width:0;min-height:44px;padding:0 8px 0 4px;border:0;border-radius:10px;background:transparent;color:var(--tg-theme-text-color);text-align:left;font:inherit;cursor:pointer}
.community-wall-open:focus-visible{outline:2px solid var(--brand);outline-offset:3px}
.community-wall-icon{display:flex;align-items:center;color:var(--brand);flex-shrink:0}
.community-wall-icon svg{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.community-wall-title{font-size:13px;font-weight:500}
.community-wall-count{color:var(--tg-theme-hint-color);font-size:12px;font-variant-numeric:tabular-nums}
.community-wall-arrow{margin-left:auto;font-size:25px;color:var(--tg-theme-hint-color)}
.community-action:focus-visible,.community-dialog button:focus-visible{outline:2px solid var(--brand);outline-offset:3px}
.community-action:disabled{cursor:wait;opacity:.65}
.community-error{flex-basis:100%;font-size:13px;line-height:1.45;color:var(--amount-negative);margin:6px 0}
.community-dialog{position:fixed;inset:auto 0 var(--community-bottom,0);margin:0 auto;width:min(100%,600px);max-width:100%;height:var(--community-height,94dvh);max-height:94dvh;padding:0;border:0;border-radius:24px 24px 0 0;background:var(--tg-theme-bg-color);color:var(--tg-theme-text-color);box-shadow:0 -12px 48px #0003;overflow:hidden}
.community-dialog::backdrop{background:#0008;backdrop-filter:blur(3px)}
.community-sheet{display:flex;flex-direction:column;height:100%;min-height:0}
.community-sheet-header{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;padding:22px 20px 16px;border-bottom:1px solid var(--tg-theme-secondary-bg-color);flex-shrink:0}
.community-sheet-header h2{font-size:19px;margin:0 0 7px;font-weight:700}
.community-sheet-header h2 span{font-size:13px;color:var(--brand);padding:3px 7px;background:var(--brand-soft);border-radius:8px}
.community-sheet-header p{font-size:13px;color:var(--tg-theme-hint-color);margin:0;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.community-close{flex-shrink:0;width:44px;height:44px;border:0;border-radius:13px;background:var(--tg-theme-secondary-bg-color);color:var(--tg-theme-text-color);cursor:pointer}
.community-comments{overflow-y:auto;overscroll-behavior:contain;flex:1;min-height:0;padding:6px 16px 14px;scrollbar-width:thin;scrollbar-color:var(--tg-theme-hint-color) var(--tg-theme-bg-color)}
.community-empty{text-align:center;padding:48px 15px;color:var(--tg-theme-hint-color);font-size:14px;line-height:1.6}
.community-empty h3{font-size:18px;color:var(--tg-theme-text-color);margin:14px 0 6px}
.community-empty p{margin:0}
.community-empty-icon{display:inline-flex;align-items:center;justify-content:center;width:64px;height:64px;border-radius:22px;background:var(--brand-soft);color:var(--brand);font-size:32px}
.community-comment{display:flex;gap:10px;padding:12px 0}
.community-avatar{width:34px;height:34px;border-radius:50%;object-fit:cover;flex-shrink:0}
.community-avatar-placeholder{display:flex;align-items:center;justify-content:center;background:var(--brand-soft);color:var(--brand);font-weight:600}
.community-comment-body{flex:1;min-width:0}
.community-comment-heading{display:flex;align-items:baseline;flex-wrap:wrap;gap:8px;font-size:13px}
.community-comment-heading strong{overflow-wrap:anywhere}
.community-comment-heading time{color:var(--tg-theme-hint-color);font-size:11px}
.community-comment-body p{white-space:pre-wrap;overflow-wrap:anywhere;font-size:14px;line-height:1.5;margin:4px 0 0}
.community-comment-actions{display:flex;flex-wrap:wrap;gap:16px;margin-top:2px}
.community-comment-actions button{min-height:32px;padding:0;border:0;background:transparent;color:var(--tg-theme-hint-color);font:inherit;font-size:12px;cursor:pointer}
.community-comment-actions .community-action-accent{color:var(--brand)}
.community-comment-actions button:disabled{opacity:.6;cursor:default}
.community-branch{border-bottom:1px solid var(--tg-theme-secondary-bg-color)}
.community-branch .community-comment{border-bottom:0}
.community-replies{margin-left:22px;padding-left:12px;border-left:2px solid var(--tg-theme-secondary-bg-color)}
.community-replies .community-comment{padding:9px 0}
.community-replies .community-avatar{width:28px;height:28px}
.community-replies-toggle{min-height:30px;padding:0;margin-bottom:2px;border:0;background:transparent;color:var(--brand);font:inherit;font-size:12px;cursor:pointer}
.community-replies-toggle:disabled{color:var(--tg-theme-hint-color);cursor:wait}
.community-comment.is-removed{padding:8px 0 2px}
.community-removed{font-size:12px;line-height:1.4;color:var(--tg-theme-hint-color)}
.community-more{display:block;min-height:44px;margin:16px auto 0;padding:8px 16px;border:0;border-radius:12px;background:var(--brand-soft);color:var(--brand);font:inherit;font-size:13px;cursor:pointer}
.community-composer{padding:12px 16px max(14px,env(safe-area-inset-bottom));border-top:1px solid var(--tg-theme-secondary-bg-color);flex-shrink:0}
.community-composer form{display:flex;gap:10px;align-items:flex-end}
.community-composer textarea{box-sizing:border-box;flex:1;min-width:0;resize:none;max-height:140px;padding:12px 14px;border:1px solid transparent;border-radius:15px;background:var(--tg-theme-secondary-bg-color);color:var(--tg-theme-text-color);font:inherit;font-size:16px;line-height:1.4}
.community-composer textarea:focus{outline:0;border-color:var(--brand)}
.community-composer textarea::placeholder{color:var(--tg-theme-hint-color)}
.community-send{display:flex;align-items:center;justify-content:center;flex-shrink:0;width:44px;height:44px;border:0;border-radius:14px;background:var(--brand);color:white;cursor:pointer}
.community-send svg{width:23px;height:23px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.community-send:disabled{opacity:.4;cursor:default}
.community-composer-hint{display:flex;justify-content:space-between;gap:8px;margin-top:8px;font-size:11px;color:var(--tg-theme-hint-color)}
.community-reply-banner{display:flex;justify-content:space-between;align-items:center;padding:4px 10px;margin-bottom:9px;border-left:2px solid var(--brand);background:var(--brand-soft);border-radius:0 10px 10px 0;font-size:12px}
.community-reply-banner button{border:0;background:transparent;color:var(--tg-theme-text-color);min-width:44px;min-height:36px}
@media(prefers-reduced-motion:reduce){.community-action{transition:none}}
