/* R20: one search icon (without stray arrow) and one style for community rows. */
#appframe .nb-r .vk-search-control, #appframe .nb-r [data-aw-search-control]{min-width:42px;width:42px;height:44px;display:flex;align-items:center;justify-content:center;background:transparent;border:0;color:#fff;padding:0;line-height:1}
#appframe .nb-r .vk-search-control svg,#appframe .nb-r [data-aw-search-control] svg{width:24px;height:24px;stroke:currentColor;stroke-width:2;fill:none;stroke-linecap:round;stroke-linejoin:round}
#appframe .vk-community-cells .cell{display:flex;align-items:center;min-height:69px;padding:8px 14px;border-bottom:1px solid #e5e7e9;background:#fff}
#appframe .vk-community-cells .cell .c-av{width:48px;height:48px;flex:0 0 48px;overflow:hidden;border-radius:50%;margin-right:12px}
#appframe .vk-community-cells .cell .c-av img{width:100%;height:100%;object-fit:cover;border-radius:50%}
#appframe .vk-community-cells .cell .c-t{font-size:16px;line-height:22px;color:#242424}
#appframe .vk-community-cells .cell .c-d{font-size:13px;color:#9099a3;line-height:19px}
#appframe .vk-community-cells .cell .c-ch{margin-left:auto;color:#aeb6bf;font-size:22px}

/* Forwarded packets use VK forwarded content geometry, rather than a single giant text bubble. */
#appframe .screen[data-aw-chat-id] .chat .bb.vk-forward-message{display:block!important;max-width:calc(100% - 20px)!important;width:auto!important;min-width:0!important;clear:both!important;text-align:left!important;margin:8px 0 14px!important;float:none!important;}
#appframe .screen[data-aw-chat-id] .chat .bb.vk-forward-message.in{padding-left:48px!important;}
#appframe .screen[data-aw-chat-id] .chat .bb.vk-forward-message.out{padding-left:48px!important;padding-right:8px!important;}
#appframe .screen[data-aw-chat-id] .chat .bb.vk-forward-message>.bb-t{display:block!important;width:100%!important;max-width:100%!important;margin:0!important;background:transparent!important;border-radius:0!important;padding:0 2px!important;box-shadow:none!important;text-align:left!important;}
#appframe .screen[data-aw-chat-id] .chat .bb.vk-forward-message .vk-forwarded-group{position:relative;border-left:2px solid #7c9bbd!important;padding-left:11px!important;}
#appframe .screen[data-aw-chat-id] .chat .bb.vk-forward-message .vk-forwarded-item{position:relative;padding:3px 0 11px!important;border:0!important;min-height:33px;}
#appframe .screen[data-aw-chat-id] .chat .bb.vk-forward-message .vk-forwarded-item+.vk-forwarded-item{border-top:0!important;padding-top:3px!important;}
#appframe .screen[data-aw-chat-id] .chat .bb.vk-forward-message .vk-forwarded-sender{font:600 13px/18px -apple-system,BlinkMacSystemFont,sans-serif!important;color:#4e83b5!important;}
#appframe .screen[data-aw-chat-id] .chat .bb.vk-forward-message .vk-forwarded-text{font:15px/21px -apple-system,BlinkMacSystemFont,sans-serif!important;white-space:pre-wrap!important;overflow-wrap:anywhere!important;}
#appframe .screen[data-aw-chat-id] .chat .bb.vk-forward-message .vk-forwarded-avatar{width:25px;height:25px;object-fit:cover;border-radius:50%;float:left;margin:2px 9px 3px 0;}
#appframe .screen[data-aw-chat-id] .chat .bb.vk-forward-message .bb-tm{font-size:11px!important;margin-top:3px!important;color:#969da6!important;text-align:right!important;}
#appframe .screen[data-aw-chat-id] .chat .bb.vk-forward-message .aw-read-ticks{vertical-align:middle!important;}
 .vk-video-comments>.vk-comment-composer{height:51px;gap:9px;padding:6px 10px;background:#fff;border-top:1px solid #e3e5e8;}
 .vk-video-comments .vk-comment-compose-input{background:transparent;border:0;border-radius:0;font-size:15px;padding-left:1px;}
.vk-video-comments .vk-comment-compose-attach,.vk-video-comments .vk-comment-compose-emoji,.vk-video-comments .vk-comment-compose-send{width:27px!important;height:34px!important;background:transparent!important;border-radius:0!important;}
.vk-video-comments .vk-comment-compose-attach .ic,.vk-video-comments .vk-comment-compose-emoji .ic,.vk-video-comments .vk-comment-compose-send .ic{display:block;width:24px;height:24px;margin:auto;}

/* Both post and video use .cin, the VK-native toolbar and original icons. */
.vk-video-comments>.vk-shared-comment-composer{display:flex;flex:0 0 auto;min-height:51px;box-sizing:border-box;padding:7px 10px;background:#fff;border-top:1px solid #e2e6eb;align-items:center;gap:9px;}
.vk-video-comments .vk-shared-comment-composer .box{flex:1;min-width:0;max-height:90px;overflow-y:auto;background:#edeef0;border-radius:17px;padding:7px 12px;font-size:15px;line-height:20px;outline:0;}
.vk-video-comments .vk-shared-comment-composer .snd{display:flex;align-items:center;justify-content:center;cursor:pointer;color:#5181b8;min-height:32px;min-width:32px;}
.vk-video-comments .vk-shared-comment-composer .ic{flex:none;width:26px;height:26px;object-fit:contain;}

/* Photo context is part of the viewer, not an editor overlay. */
.vk-media-viewer .vk-photo-context{flex:0 0 auto;max-height:68px;overflow:auto;color:#e3e7eb;padding:6px 14px;display:flex;flex-direction:column;gap:2px;font:13px/17px -apple-system,BlinkMacSystemFont,sans-serif;}
.vk-media-viewer .vk-photo-context[hidden]{display:none;}
.vk-media-viewer .vk-photo-context strong{font-size:14px;font-weight:600;color:#fff;}

#appframe .screen[data-aw-chat-id] .vk-forwarded-head{font-size:13px;line-height:19px;color:#5b84a7;font-weight:500;padding:2px 0 5px;}
#appframe .screen[data-aw-chat-id] .vk-forwarded-item .vk-forwarded-attachment{margin:5px 0 2px;max-width:100%;}
#appframe .screen[data-aw-chat-id] .vk-forwarded-attachment img,#appframe .screen[data-aw-chat-id] .vk-forwarded-attachment video{display:block;max-width:min(100%,260px);max-height:280px;width:auto;height:auto;object-fit:contain;border-radius:5px;}
#appframe .screen[data-aw-chat-id] .vk-forwarded-attachment audio{display:block;max-width:100%;width:260px;}
#appframe .screen[data-aw-chat-id] .vk-forwarded-attachment .bb-voice{max-width:100%;width:260px;min-height:55px;border-radius:8px;background:#f0f4f8;}
