/* R23 unified VK geometry. This layer supersedes incompatible earlier experimental overrides. */
:root{--vk23-in:#ebedf0;--vk23-out:#d5e3f5;--vk23-link:#5181b8;--vk23-gray:#929ba6}
#appframe>.screen[data-aw-chat-id] .chat{overflow-x:clip!important;display:flow-root!important;padding:12px 10px 10px!important;box-sizing:border-box!important}
#appframe>.screen[data-aw-chat-id] .chat>.bb{box-sizing:border-box!important;position:relative!important;display:flow-root!important;float:none!important;clear:both!important;width:max-content!important;max-width:min(82%,415px)!important;min-width:0!important;min-height:39px!important;border:0!important;box-shadow:none!important;margin:5px 0 8px!important;padding:0 0 18px!important;text-align:left!important;overflow:visible!important;overflow-wrap:anywhere!important}
#appframe>.screen[data-aw-chat-id] .chat>.bb.in{background:var(--vk23-in)!important;border-radius:17px 17px 17px 4px!important;margin-left:0!important;margin-right:auto!important}
#appframe>.screen[data-aw-chat-id] .chat>.bb.out{background:var(--vk23-out)!important;border-radius:17px 17px 4px 17px!important;margin-left:auto!important;margin-right:0!important}
#appframe>.screen[data-aw-chat-id] .chat>.bb>.bb-t{box-sizing:border-box!important;display:block!important;min-width:0!important;width:auto!important;max-width:100%!important;border:0!important;border-radius:inherit!important;box-shadow:none!important;background:transparent!important;padding:9px 11px 3px!important;margin:0!important;text-align:left!important;line-height:20px!important;white-space:pre-wrap!important;overflow-wrap:anywhere!important}
#appframe>.screen[data-aw-chat-id] .chat>.bb>.bb-t:empty{display:none!important}
#appframe>.screen[data-aw-chat-id] .chat>.bb>.bb-tm{display:block!important;position:absolute!important;bottom:4px!important;right:9px!important;width:auto!important;max-width:calc(100% - 18px)!important;padding:0!important;margin:0!important;color:#8998a7!important;font:11px/13px -apple-system,sans-serif!important;white-space:nowrap!important}
#appframe>.screen[data-aw-chat-id] .chat>.bb.out:has(>.aw-read-ticks)>.bb-tm{right:33px!important}
#appframe>.screen[data-aw-chat-id] .chat>.bb>.aw-read-ticks{position:absolute!important;bottom:4px!important;right:7px!important;display:flex!important;align-items:center!important;justify-content:center!important;margin:0!important;padding:0!important;width:20px!important;height:13px!important;line-height:13px!important}
#appframe>.screen[data-aw-chat-id] .chat>.bb>.aw-read-ticks svg{display:block!important;max-width:100%!important;height:12px!important;stroke:#7599bd!important;stroke-width:1.7!important;fill:none!important;stroke-linecap:round;stroke-linejoin:round}
#appframe>.screen[data-aw-chat-id] .chat>.bb>.aw-read-ticks[data-read="0"]{width:12px!important}
#appframe>.screen[data-aw-chat-id] .chat>.bb.vk-forward-message{box-sizing:border-box!important;display:flow-root!important;position:relative!important;float:none!important;clear:both!important;min-width:0!important;width:max-content!important;max-width:min(82%,415px)!important;padding:0 0 22px!important;margin:5px 0 8px!important;box-shadow:none!important;border:0!important;color:#191919!important}
#appframe>.screen[data-aw-chat-id] .chat>.bb.vk-forward-message.out{margin-left:auto!important;margin-right:0!important;background:var(--vk23-out)!important;border-radius:17px 17px 4px 17px!important}
#appframe>.screen[data-aw-chat-id] .chat>.bb.vk-forward-message.in{margin-left:0!important;margin-right:auto!important;background:var(--vk23-in)!important;border-radius:17px 17px 17px 4px!important}
#appframe>.screen[data-aw-chat-id] .chat>.bb.vk-forward-message>.bb-t{display:block!important;padding:9px 11px 0!important;width:auto!important;max-width:100%!important;border:0!important;background:transparent!important}
#appframe>.screen[data-aw-chat-id] .chat>.bb.vk-forward-message .vk-forwarded-group{box-sizing:border-box!important;display:block!important;width:auto!important;max-width:100%!important;padding:0 0 0 8px!important;margin:0!important;border-left:2px solid #7ba5cc!important;background:transparent!important}
#appframe>.screen[data-aw-chat-id] .chat>.bb.vk-forward-message .vk-forwarded-origin{display:block!important;margin:0 0 2px!important;color:#4c80b0!important;font-weight:600!important;font-size:13px!important}
#appframe>.screen[data-aw-chat-id] .chat>.bb.vk-forward-message .vk-forwarded-head{padding:0 0 5px!important;font:14px/19px -apple-system,sans-serif!important;color:#202020!important}
#appframe>.screen[data-aw-chat-id] .chat>.bb.vk-forward-message .vk-forwarded-item{box-sizing:border-box!important;display:flow-root!important;position:relative!important;max-width:100%!important;min-width:0!important;padding:3px 0 5px!important;margin:0 0 5px!important;border:0!important;border-top:0!important;border-left:0!important;background:transparent!important}
#appframe>.screen[data-aw-chat-id] .chat>.bb.vk-forward-message .vk-forwarded-item+.vk-forwarded-item{padding-top:5px!important;border-top:0!important}
#appframe>.screen[data-aw-chat-id] .chat>.bb.vk-forward-message .vk-forwarded-avatar{width:25px!important;height:25px!important;float:left!important;border-radius:50%!important;object-fit:cover!important;margin:0 7px 2px 0!important}
#appframe>.screen[data-aw-chat-id] .chat>.bb.vk-forward-message .vk-forwarded-sender{display:block!important;color:#4f83b5!important;font:600 13px/18px -apple-system,sans-serif!important;margin-bottom:2px!important}
#appframe>.screen[data-aw-chat-id] .chat>.bb.vk-forward-message .vk-forwarded-text{display:block!important;font:15px/20px -apple-system,sans-serif!important;color:#191919!important;white-space:pre-wrap!important;overflow-wrap:anywhere!important}
#appframe>.screen[data-aw-chat-id] .chat>.bb.vk-forward-message>.bb-tm{bottom:4px!important;right:9px!important}
#appframe>.screen[data-aw-chat-id] .chat>.bb.vk-forward-message.out:has(>.aw-read-ticks)>.bb-tm{right:33px!important}
#appframe>.screen[data-aw-chat-id] .chat>.bb.vk-forward-message>.aw-read-ticks{bottom:4px!important;right:7px!important}
#appframe>.screen[data-aw-chat-id] .chat>.bb.bb-ph{width:auto!important;max-width:min(82%,340px)!important}
#appframe>.screen[data-aw-chat-id] .chat>.bb.bb-ph>.bb-photo{display:block!important;box-sizing:border-box!important;width:min(70vw,310px)!important;max-width:100%!important;height:auto!important;max-height:50dvh!important;aspect-ratio:auto!important;overflow:hidden!important;background:transparent!important;border-radius:inherit!important;margin:0!important}
#appframe>.screen[data-aw-chat-id] .chat>.bb.bb-ph>.bb-photo>img,#appframe>.screen[data-aw-chat-id] .chat>.bb.bb-ph>.bb-photo>video{display:block!important;position:relative!important;max-width:100%!important;width:100%!important;height:auto!important;max-height:50dvh!important;min-width:0!important;aspect-ratio:auto!important;object-fit:contain!important;border-radius:inherit!important}
#appframe>.screen[data-aw-chat-id] .chat>.bb.bb-ph>.bb-photo>video{background:#242a31!important}
#appframe>.screen[data-aw-chat-id] .chat>.bb.bb-vc{min-width:min(260px,75vw)!important;max-width:min(82%,390px)!important}
#appframe>.screen[data-aw-chat-id] .chat>.bb.bb-vc>.bb-voice{box-sizing:border-box!important;margin:0!important;padding:8px 10px 2px!important;min-width:0!important;max-width:100%!important;background:transparent!important;border-radius:inherit!important}
#appframe>.screen[data-aw-chat-id] .chat>.bb.bb-vc>.bb-voice .bb-wave{min-width:0!important;flex:1 1 auto!important}
#appframe>.screen[data-aw-chat-id] .chat>.bb.bb-vc>.bb-voice .bb-vd{white-space:nowrap!important}
#appframe>.screen[data-aw-chat-id] .chat>.bb.bb-vc>audio{max-width:100%!important}
#appframe>.screen[data-aw-chat-id] .chat>.bb .vk-message-reply{min-width:0!important;max-width:100%!important;border:0!important;border-left:2px solid #6599c6!important;background:transparent!important;padding:3px 0 3px 9px!important}
#appframe>.screen[data-aw-chat-id] .aw-chat-day-divider,#appframe>.screen[data-aw-chat-id] .aw-chat-new-divider{clear:both!important;display:flex!important;float:none!important;align-items:center!important;justify-content:center!important;width:100%!important;margin:12px auto!important;text-align:center!important}
#appframe>.screen[data-aw-chat-id] .aw-chat-day-divider>span{border-radius:16px!important;background:#eef0f3!important;padding:4px 11px!important;font:12px/18px -apple-system,sans-serif!important;color:#8793a0!important}
/* Only comments rows get the compact VK shape; no invented horizontal rules between them. */
#cmodalBody.vk-unified-comment-list>.cm,.vk-video-comment-list.vk-unified-comment-list>.cm,.vk-entity-comment-modal .vk-unified-comment-list>.cm{border:0!important;border-bottom:0!important;box-shadow:none!important;padding:10px 12px 7px!important;margin:0!important;background:#fff!important}
#cmodalBody.vk-unified-comment-list>.cm.reply,.vk-video-comment-list.vk-unified-comment-list>.cm.reply{padding-left:46px!important}
#cmodalBody.vk-unified-comment-list,.vk-video-comment-list.vk-unified-comment-list{background:#fff!important}
/* VK song lists HAVE separators, unlike comment lists. */
#appframe .tr:not(:last-child){border-bottom:1px solid #e7e9ed!important}
#appframe .tr{box-sizing:border-box!important;min-width:0!important}
#appframe .tr .tr-m{min-width:0!important}
/* Editor controls are never permitted to exceed the viewport or be cut by fixed bars. */
#appframe .ctor-runtime,#appframe .vk-editor-tools,#appframe .aw-chat-composer,#appframe .aw-message-actions,#cmodalBg .ctor-runtime{box-sizing:border-box!important;min-width:0!important;max-width:100%!important;overflow-wrap:anywhere!important;overflow-x:hidden!important}
#appframe .ctor-runtime button,#appframe .vk-editor-tools button,#appframe .aw-chat-composer button,#appframe .aw-message-actions button,#cmodalBg .ctor-runtime button{box-sizing:border-box!important;max-width:100%!important;min-width:0!important;white-space:normal!important;overflow-wrap:anywhere!important;text-align:center!important}
#appframe .aw-chat-composer,#appframe .aw-message-actions,#appframe .aw-chat-message-tools,#cmodalBg .ctor-runtime{display:flex!important;flex-wrap:wrap!important;align-items:center!important;gap:6px!important}
#appframe .aw-chat-composer>button,#appframe .aw-message-actions>button,#appframe .aw-chat-message-tools>button{flex:0 1 auto!important}
#cmodalBg .ctor-runtime button{flex:1 1 130px!important}
#appframe .ctor-runtime label,#cmodalBg .ctor-runtime label{min-width:0!important;max-width:100%!important}
#cmodalBg .cmodal,.vk-entity-comment-modal .cmodal{max-width:100vw!important}
/* Explicitly protect old photo/video and comments from editor overflow on mobile. */
#appframe .post .vk-media-grid,#appframe .post .pgrid{box-sizing:border-box!important;max-width:100%!important;overflow:hidden!important}
#appframe .post .vk-media-grid img,#appframe .post .pgrid img{max-width:100%!important;object-fit:cover!important}
@media(max-width:360px){#appframe>.screen[data-aw-chat-id] .chat>.bb{max-width:88%!important}#appframe>.screen[data-aw-chat-id] .chat>.bb.vk-forward-message{max-width:88%!important}}
