.header-events{display:flex;align-items:center;gap:4px;margin-left:auto;flex-shrink:0}
.header-events a{display:inline-flex;position:relative;justify-content:center;align-items:center;min-width:34px;height:38px;color:#74354b;text-decoration:none;font-size:21px}
.event-count{display:inline-block;min-width:1.4em;padding:1px 4px;border-radius:999px;background:#963957;color:white;font:600 11px/1.4 system-ui;text-align:center}
.header-events .event-count{position:absolute;top:0;right:0}
.chat-tabs{display:flex;flex-wrap:wrap;gap:6px;margin:0 0 12px}
.chat-tabs a{padding:8px 12px;border-radius:16px;color:#74354b}
.chat-tabs a[aria-current]{background:#eadde4;font-weight:700}
.chat-preview-text .event-count{float:right}
.conversation-screen .chat-message:has(.chat-image){width:min(400px,85%);box-sizing:border-box;padding:10px}
.conversation-screen .chat-image{width:100%;height:auto;max-height:none;object-fit:contain;margin:0}
@media(max-width:700px){
 .header-events{gap:0}
 .header-events a{min-width:30px;font-size:19px}
 body:not(.messenger-page)>.account-shell.with-cabinet{min-height:0;margin-bottom:0}
 body:not(.messenger-page)>.account-shell.with-cabinet>main{min-height:0;padding-bottom:0}
 body:not(.messenger-page)>.account-shell>main.inbox-screen{padding-bottom:0}
 .with-cabinet .cabinet-page-content>:last-child{margin-bottom:0}
}

.mobile-cabinet-links{display:none}
@media(max-width:700px){
 header .top:has(.header-events){gap:6px;padding-inline:8px}
 header .top:has(.header-events) .brand{flex:0 1 135px;min-width:0}
 header .top:has(.header-events) .brand-logo{max-width:100%;height:auto}
 header .top:has(.header-events) .header-account{margin-left:0;flex-basis:36px}
 header .top:has(.header-events) .header-account img{width:36px;height:36px}
 header .top:has(.header-events) .header-menu{flex-shrink:0}
 .with-cabinet>.account-sidebar,.tablet-account-links{display:none}
 .mobile-cabinet-links{display:contents}
}
.header-events .event-count[hidden]{display:none}

.header-event-label,.header-event-eye{display:none}
@media(max-width:700px){
 header .top:has(.header-events){flex-wrap:wrap;height:auto}
 header .top:has(.header-events) .header-account{margin-left:auto}
 .header-events{order:1;flex:0 0 100%;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));margin:0}
 .header-events a{flex-direction:column;gap:2px;min-width:0;min-height:48px;height:auto;font-size:25px;line-height:1}
 .header-event-label{display:block;font-size:12px;line-height:1.2}
 .header-event-eye{display:block}
 .header-event-dot{display:none}
 .header-events .event-count{right:calc(50% - 24px)}
}

@media(max-width:700px){
 .own-profile-cabinet>.account-sidebar{display:block}
 body:has(.own-profile-cabinet)>header .header-events{display:none}
}

[data-access-decisions]{flex-shrink:0;max-height:30dvh;overflow-y:auto}.access-decision{padding:8px 12px;margin:3px 0}.access-decision p{margin:0}.access-decision form{display:flex;gap:10px;flex-wrap:wrap}
