/* Shared reactions and comments; no global navigation selectors. */
body .svo-likers-original[hidden]{display:none!important}
body :is(.social-actions,.wall-actions,.avatar82-actions,.photo83-controls){display:flex;align-items:center;flex-wrap:wrap;gap:8px;min-width:0;max-width:100%;box-sizing:border-box}
body :is(.social-actions,.wall-actions,.avatar82-actions,.photo83-controls) form{margin:0;max-width:100%;min-width:0}
body :is(.social-actions,.wall-actions,.avatar82-actions,.photo83-controls) .svo-like-button{display:inline-flex!important;align-items:center;justify-content:center;gap:7px!important;min-height:38px!important;padding:8px 12px!important;background:var(--ui162-soft,#edf3f6)!important;color:var(--ui162-text,#22314a)!important;border:1px solid var(--ui162-border,#d9e2e8)!important;border-radius:10px!important;line-height:1.2;font-size:13px!important;box-shadow:none!important;white-space:nowrap}
body :is(.social-actions,.wall-actions,.avatar82-actions,.photo83-controls) .svo-like-button[aria-pressed=true]{color:var(--ui162-link,#256d63)!important;background:var(--ui162-surface,#fff)!important;border-color:currentColor!important}
.svo-like-label{font:inherit;font-style:normal}.svo-heart{width:18px!important;height:18px!important;flex:none;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}.svo-like-button[aria-pressed=true] .svo-heart{fill:currentColor}
body .svo-like-button:focus-visible,body .svo-react-mobile:focus-visible{outline:2px solid var(--ui162-link,#256d63);outline-offset:3px}
body :is(.social-actions,.wall-actions) button{white-space:normal;max-width:100%;line-height:1.3;min-width:0}
.svo-reactions{box-sizing:border-box;max-width:100%;min-width:0;padding:10px 0;border-bottom:1px solid var(--ui162-border,#d9e2e8);margin:0 0 10px;color:var(--ui162-text,#22314a)}
.svo-reactions[hidden]{display:none!important}.svo-react-desktop{display:flex;align-items:center;gap:8px;flex-wrap:wrap;min-width:0}.svo-react-caption{font-size:12px;color:var(--ui162-muted,#526477)}
body .svo-react-person{display:inline-flex;align-items:center;gap:6px;min-width:0;max-width:100%;padding:3px 6px;border-radius:20px;background:var(--ui162-soft,#edf3f6);text-decoration:none;color:inherit;font-size:12px;line-height:1.4;overflow-wrap:anywhere}
body .svo-react-person img{width:26px!important;height:26px!important;min-width:26px;object-fit:cover;border-radius:50%;flex:none}.svo-react-person span{min-width:0;overflow-wrap:anywhere}
body .svo-react-more,body .svo-react-retry{font:inherit;font-size:12px;min-height:32px;padding:5px 10px;border:1px solid var(--ui162-border,#d9e2e8);border-radius:9px;background:var(--ui162-surface,#fff);color:var(--ui162-link,#256d63)}
.svo-react-expanded{display:flex;flex-wrap:wrap;gap:8px;flex-basis:100%;max-height:250px;overflow:auto;min-width:0}.svo-react-status{font-size:13px;overflow-wrap:anywhere}
body .svo-react-mobile{display:none;align-items:center;gap:10px;width:100%;margin:0;padding:0;border:0;background:transparent;color:inherit;text-align:left;min-height:36px;font:inherit;font-size:12px}
.svo-react-avatars{display:flex;padding-left:5px}.svo-react-avatars img{width:28px;height:28px;object-fit:cover;border:2px solid var(--ui162-surface,#fff);border-radius:50%;margin-left:-5px}
body .likers82{padding:18px;width:min(460px,calc(100vw - 28px));max-height:80dvh;overflow:auto;background:var(--ui162-surface,#fff);color:var(--ui162-text,#22314a);border:1px solid var(--ui162-border,#d9e2e8);border-radius:18px;box-sizing:border-box}
.svo-likers-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px}.svo-likers-head h2{font-size:18px;margin:0}.svo-likers-close{width:36px;height:36px;min-height:36px;padding:0;border:0;border-radius:50%;font-size:26px;background:var(--ui162-soft,#edf3f6);color:inherit}
.svo-likers-list{display:grid;gap:5px}body .svo-likers-list .svo-react-person{padding:9px;background:transparent;font-size:14px;border-radius:10px}body .svo-likers-list .svo-react-person img{width:40px!important;height:40px!important}
body :is(.group-feed-column,.feed-list,.group-feed-list,.social-card,.wall-post,.feed-v3-comments,.avatar-comment-pane,.avatar-comment-list,.wall-comments){min-width:0;max-width:100%;box-sizing:border-box;overflow-wrap:anywhere}
body .feed-v3-comment{display:grid!important;grid-template-columns:32px minmax(0,1fr)!important;gap:9px!important;min-width:0!important;max-width:100%!important;width:auto!important;box-sizing:border-box!important;margin:12px 0!important;padding:0!important;align-items:start}
body .feed-v3-comment>img{width:32px!important;height:32px!important;border-radius:50%;object-fit:cover}body .feed-v3-comment>div{min-width:0;max-width:100%;background:var(--ui162-soft,#edf3f6);border-radius:12px;padding:10px 12px;box-sizing:border-box;overflow-wrap:anywhere}
body .feed-v3-comment.is-reply{margin-left:16px!important;max-width:calc(100% - 16px)!important;border-left:2px solid var(--ui162-border,#d9e2e8);padding-left:9px!important}
body :is(.feed-v3-comment,.wall-comment,.avatar-comment-list) p{overflow-wrap:anywhere;word-break:normal;white-space:pre-wrap;margin:6px 0;line-height:1.5}
body :is(.comment-form,.wall-comment-form,.avatar-comment-form){display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;gap:8px!important;max-width:100%!important;min-width:0!important;box-sizing:border-box!important;align-items:end}
body :is(.comment-form,.wall-comment-form,.avatar-comment-form) :is(input:not([type=hidden]),textarea){width:100%!important;min-width:0!important;max-width:100%!important;box-sizing:border-box!important;min-height:40px;resize:vertical}
body :is(.comment-form,.wall-comment-form,.avatar-comment-form)>button{min-width:38px;max-width:100%;min-height:40px;white-space:normal}
body :is(.comment-form,.wall-comment-form,.avatar-comment-form)>[type=hidden]{display:none!important}.wall-reply-label{grid-column:1/-1}
.conversation-comment-actions{display:flex;gap:7px 12px;flex-wrap:wrap;align-items:start;min-width:0;font-size:12px}.conversation-comment-actions :is(details,form){min-width:0;max-width:100%}.conversation-comment-actions details[open]{flex-basis:100%}.conversation-comment-actions summary{cursor:pointer;overflow-wrap:anywhere}
body .conversation-quote{display:flex;flex-direction:column;gap:4px;min-width:0;max-width:100%;margin:8px 0;padding:7px 10px;border-left:2px solid var(--ui162-link,#256d63);overflow-wrap:anywhere;font-size:12px}
body .conversation-report[open]>form,body .conversation-edit[open]>form{position:static!important;width:100%!important;max-width:100%!important;box-sizing:border-box!important;margin-top:8px}
body .conversation-report textarea{width:100%;min-width:0;box-sizing:border-box}body .avatar-comment-list article{min-width:0;max-width:100%;box-sizing:border-box}
body .avatar-comment-list article>a{display:flex;align-items:center;gap:8px;min-width:0;overflow-wrap:anywhere}body .avatar-comment-list article>a img{width:32px;height:32px;object-fit:cover;border-radius:50%;flex:none}
@media(max-width:760px){
 .svo-react-desktop{display:none!important}body .svo-react-mobile{display:flex}
 body .likers82{position:fixed;inset:auto 0 0;margin:0;width:100%;max-height:75dvh;border-radius:20px 20px 0 0;padding:18px 16px max(18px,env(safe-area-inset-bottom))}
 body .likers82:before{content:'';display:block;margin:-8px auto 14px;width:36px;height:4px;border-radius:4px;background:var(--ui162-muted,#526477)}
 body .feed-v3-comment>div{padding:9px}body .feed-v3-comment.is-reply{margin-left:10px!important;max-width:calc(100% - 10px)!important;padding-left:6px!important}
 body :is(.comment-form,.wall-comment-form,.avatar-comment-form) :is(input:not([type=hidden]),textarea){font-size:16px!important}
 body :is(.social-actions,.wall-actions) .svo-like-button{font-size:12px!important;padding:7px 9px!important}
}
/* Override older theme button rules only within reaction bars. */
body[data-page] main.wrap :is(.social-actions,.wall-actions,.avatar82-actions,.photo83-controls) button.svo-like-button:not(.ghost):not(.danger):not(.link-danger),body[data-page] #social.profile79 .wall-actions button.svo-like-button{background:var(--ui162-soft)!important;color:var(--ui162-text)!important;border-color:var(--ui162-border)!important}
body[data-page] main.wrap :is(.social-actions,.wall-actions,.avatar82-actions,.photo83-controls) button.svo-like-button[aria-pressed=true]:not(.ghost):not(.danger):not(.link-danger),body[data-page] #social.profile79 .wall-actions button.svo-like-button[aria-pressed=true]{background:var(--ui162-soft)!important;color:var(--ui162-link)!important;border-color:var(--ui162-link)!important}
body[data-page] main.wrap :is(.feed-v3-comment,.conversation-quote) a:not([class*="service120-name-"]){color:var(--ui162-link)!important}
body .avatar-lightbox .avatar-lightbox-photo:has(>.svo-reactions){grid-template-rows:minmax(0,1fr) auto auto!important}
body .avatar-lightbox .svo-reactions{padding-inline:10px;max-height:130px;overflow:auto}
body .ev89-detail-main,body .ev89-detail #comments{min-width:0;max-width:100%;box-sizing:border-box}
body .ev89-detail .comment-row{display:grid;grid-template-columns:32px minmax(0,1fr);gap:10px;max-width:100%;padding:12px 0;box-sizing:border-box}
body .ev89-detail .comment-row>img{width:32px;height:32px;border-radius:50%;object-fit:cover}body .ev89-detail .comment-row>div{min-width:0;overflow-wrap:anywhere;background:var(--ui162-soft);border-radius:12px;padding:10px}body .ev89-detail .comment-row p{white-space:pre-wrap;overflow-wrap:anywhere}body .ev89-detail #comments :is(form,textarea){min-width:0;max-width:100%;box-sizing:border-box}

/* Phone discussions fill the viewport. Old negative card margins conflict with
   the shared max-width:100% guard and leave a gutter on the right. */
@media(max-width:760px){
 body[class][data-page="group"]>main.wrap,
 body[class][data-page="feed"]>main.wrap{box-sizing:border-box;width:100%!important;max-width:none!important;min-width:0;margin-inline:0!important;padding-inline:0!important}
 body[data-page="group"] .group-page-modern,
 body[data-page="feed"] .social-page.feed-v3{box-sizing:border-box;width:100%!important;max-width:none!important;min-width:0;margin-inline:0!important}
 body[data-page="group"] .group-page-modern :is(.group-layout,.group-feed-column,.group-feed-list){box-sizing:border-box;width:100%;max-width:100%;min-width:0;margin-inline:0}
 body[data-page="group"] .group-page-modern :is(.group-layout,.group-feed-list){grid-template-columns:minmax(0,1fr)}
 body[data-page="group"] .group-page-modern :is(.group-profile-card,.group-detail-tabs,.group-composer,.group-post-card){box-sizing:border-box;width:100%!important;max-width:100%!important;min-width:0;margin-inline:0!important}
 body[data-page="group"] .group-page-modern :is(.group-topline,.group-sidebar){margin-inline:12px}
 body[data-page="group"] .group-page-modern .group-sidebar{width:auto;max-width:calc(100% - 24px)}
 body[data-page="feed"] .social-page.feed-v3>:is(.section-head,.feed-v3-tabs,.feed-v3-categories){margin-inline:12px}
 body[data-page="feed"] .social-page.feed-v3 :is(.feed-list,.social-card,.feed-v3-composer){box-sizing:border-box;width:100%;max-width:100%;min-width:0;margin-inline:0}
}
