/* Photo-style group discussions. Every rule is confined to the group page. */
body .group-page .group-comments-pane{min-width:0;max-width:100%;margin:12px 0 0;padding:0!important;border:1px solid var(--ui162-border,#d7e2ec);border-radius:16px;background:var(--ui162-surface,#fff);color:var(--ui162-text,#22314a);overflow:hidden;box-sizing:border-box}
body .group-page .group-comments-pane[hidden],body .group-page .group-reply-context[hidden]{display:none!important}
body .group-page .group-comments-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 12px;border-bottom:1px solid var(--ui162-border,#d7e2ec)}
body .group-page .group-comments-heading h3{margin:0;color:inherit;font-size:15px;font-weight:700;line-height:1.4}
body .group-page .group-comments-heading h3 span{color:var(--ui162-muted,#526477);font-weight:400;margin-left:5px}
body .group-page .group-comments-heading button{display:inline-flex;align-items:center;justify-content:center;flex:none;width:40px;min-height:40px;margin:0;padding:0!important;border:0!important;border-radius:50%;background:transparent!important;color:var(--ui162-muted,#526477)!important;font-size:24px;box-shadow:none!important;cursor:pointer;touch-action:manipulation}
/* Inline comments must pass scrolling to the page when the list is short or at its edge. */
body .group-page .group-comment-list{min-width:0;max-height:min(520px,55dvh);overflow-y:auto;overflow-x:hidden;padding:4px 12px 8px;overscroll-behavior:auto;-webkit-overflow-scrolling:touch;touch-action:pan-y;box-sizing:border-box;scroll-padding:12px}
body .group-page .group-comment-row.feed-v3-comment{display:grid!important;grid-template-columns:34px minmax(0,1fr)!important;gap:9px!important;margin:0!important;padding:13px 0!important;max-width:100%!important;min-width:0;border-bottom:1px solid var(--ui162-border,#d7e2ec);font-size:14px;scroll-margin-block:12px}
body .group-page .group-comment-row.feed-v3-comment:last-child{border-bottom:0}
body .group-page .group-comment-row.feed-v3-comment>img{width:34px!important;height:34px!important;object-fit:cover;border-radius:50%}
body .group-page .group-comment-row.feed-v3-comment>.group-comment-content{position:relative;display:block!important;min-width:0;max-width:100%;padding:0 0 0 0!important;background:transparent!important;border-radius:0!important;box-sizing:border-box}
body .group-page .group-comment-row.feed-v3-comment.is-reply{margin-left:22px!important;max-width:calc(100% - 22px)!important;padding-left:0!important;border-left:0}
body .group-page .group-comment-author{display:inline-block;max-width:calc(100% - 38px);min-height:20px;padding-right:2px;color:var(--ui162-text,#22314a);text-decoration:none;line-height:1.45;overflow-wrap:anywhere}
body .group-page .group-comment-time{display:block;margin:2px 38px 0 0;color:var(--ui162-muted,#526477);font-size:11px;font-weight:400;line-height:1.4}
body .group-page .group-comment-body{margin:7px 0 2px!important;white-space:normal;overflow-wrap:anywhere;line-height:1.5;color:var(--ui162-text,#22314a)}
body .group-page .group-comment-mention{color:var(--ui162-link,#256d63);font-weight:600}
body .group-page .group-comment-mention a{color:inherit;text-decoration:none}
body .group-page .group-comment-actions{display:flex;align-items:center;flex-wrap:wrap;gap:3px 9px;min-width:0;margin-top:3px}
body .group-page .group-comment-actions>.svo-comment-reaction{flex:0 1 auto;margin:0!important;gap:4px 6px;max-width:100%;min-width:0}
body .group-page .group-comment-actions>.group-comment-reply{flex:0 0 auto;margin:0;max-width:100%;min-width:0}
body .group-page .group-comment-reply>summary{display:inline-flex;align-items:center;gap:6px;list-style:none;min-height:40px;padding:2px 0;color:var(--ui162-muted,#526477);font-size:12px;line-height:1.4;cursor:pointer;touch-action:manipulation}
body .group-page .group-comment-reply>summary::-webkit-details-marker,body .group-page .group-comment-menu>summary::-webkit-details-marker{display:none}
body .group-page .group-comment-reply>summary>span{font-size:20px;line-height:1}
body .group-page .group-comment-reply[open]{flex-basis:100%}
body .group-page .group-comment-menu{position:static;margin:0;padding:0;min-width:0}
body .group-page .group-comment-menu>summary{position:absolute;right:-4px;top:-4px;display:flex;align-items:center;justify-content:center;list-style:none;width:36px;height:36px;padding:0!important;border:0!important;border-radius:50%;background:transparent!important;color:var(--ui162-muted,#526477)!important;font-size:24px;line-height:1;cursor:pointer;touch-action:manipulation}
/* Open menus expand in normal flow, so the scrollable list never clips forms. */
body .group-page .group-comment-menu-panel{position:static!important;display:grid;gap:9px;width:100%;min-width:0;max-width:100%;margin:10px 0;padding:10px;border:1px solid var(--ui162-border,#d7e2ec);border-radius:12px;background:var(--ui162-soft,#edf3f6);box-sizing:border-box}
body .group-page .group-comment-menu:not([open])>.group-comment-menu-panel{display:none}
body .group-page .group-comment-menu-panel :is(details,form,label){min-width:0;max-width:100%;margin:0;box-sizing:border-box}
body .group-page .group-comment-menu-panel summary{min-height:34px;display:flex;align-items:center;cursor:pointer;color:var(--ui162-link,#256d63);font-size:13px}
body .group-page .group-comment-menu-panel textarea{display:block;width:100%;max-width:100%;min-height:76px;padding:10px;border:1px solid var(--ui162-border,#d7e2ec);border-radius:9px;background:var(--ui162-surface,#fff);color:var(--ui162-text,#22314a);box-sizing:border-box;resize:vertical;font:inherit}
body .group-page .group-comment-menu-panel button{width:auto;min-height:36px;padding:6px 10px;border:1px solid var(--ui162-border,#d7e2ec);border-radius:9px;background:var(--ui162-surface,#fff);color:var(--ui162-text,#22314a);font-size:12px;white-space:normal}
body .group-page .group-comment-menu-panel .link-danger{color:#cf4050!important}
body .group-page .group-comment-edit-form.comment-form{display:grid!important;grid-template-columns:minmax(0,1fr)!important}
body .group-page .group-comment-form.comment-form{display:grid!important;grid-template-columns:minmax(0,1fr) 44px!important;align-items:end;gap:8px!important;width:100%;max-width:100%;margin:10px 0 0!important;padding:0;box-sizing:border-box;scroll-margin-bottom:calc(88px + env(safe-area-inset-bottom));scroll-margin-top:100px}
body .group-page .group-reply-context{grid-column:1/-1;display:flex;align-items:center;justify-content:space-between;gap:8px;min-width:0;padding:8px 10px;border-left:3px solid var(--ui162-link,#256d63);border-radius:8px;background:var(--ui162-soft,#edf3f6);color:var(--ui162-muted,#526477);font-size:12px;line-height:1.45}
body .group-page .group-reply-context [data-group-reply-context]{min-width:0;overflow-wrap:anywhere}
body .group-page .group-reply-context button{flex:none;width:32px;min-height:32px;margin:0;padding:0!important;border:0!important;border-radius:50%;background:transparent!important;color:inherit!important;font-size:22px;box-shadow:none!important}
body .group-page .group-comment-form.comment-form textarea,body .group-page .group-comment-reply-form.comment-form textarea{display:block;width:100%!important;min-width:0;min-height:44px;max-height:150px;margin:0;padding:11px 12px;border:1px solid var(--ui162-border,#d7e2ec);border-radius:14px;background:var(--ui162-surface,#fff);color:var(--ui162-text,#22314a);font:inherit;font-size:14px;line-height:20px;resize:none;box-sizing:border-box;overflow-y:auto}
body .group-page .group-comment-form.comment-form>button{display:inline-flex;align-items:center;justify-content:center;min-width:44px;min-height:44px;max-height:44px;margin:0;padding:10px!important;border:0!important;border-radius:14px;background:var(--ui162-link,#256d63)!important;color:var(--ui162-surface,#fff)!important;box-shadow:none!important;cursor:pointer;touch-action:manipulation}
body .group-page .group-comment-form>button svg{width:24px;height:24px;fill:currentColor;flex:none}
body .group-page .group-comments-empty{margin:0;padding:18px 0;color:var(--ui162-muted,#526477);font-size:13px}
body .group-page .group-comments-pane>.group-comments-toggle{display:block;padding:11px 12px;border-top:1px solid var(--ui162-border,#d7e2ec);color:var(--ui162-link,#256d63);font-size:13px;text-decoration:none}
body .group-page :is(.group-comments-heading,.group-comment-actions,.group-comment-menu,.group-comment-form) :is(button,summary,textarea):focus-visible{outline:2px solid var(--ui162-link,#256d63);outline-offset:2px}
@media(max-width:760px){body .group-page .group-comment-list{padding-inline:10px}body .group-page .group-comment-row.feed-v3-comment{grid-template-columns:30px minmax(0,1fr)!important;gap:8px!important;font-size:13px}body .group-page .group-comment-row.feed-v3-comment>img{width:30px!important;height:30px!important}body .group-page .group-comment-row.feed-v3-comment.is-reply{margin-left:15px!important;max-width:calc(100% - 15px)!important}body .group-page .group-comment-actions{gap:2px 7px}body .group-page :is(.group-comment-form,.group-comment-reply-form,.group-comment-menu-panel) textarea{font-size:16px!important}body .group-page .group-comment-reply>summary{min-height:44px}}
