/* SGAR v171 uifix — точечные правки по UI-аудиту (better-interface). Подключается последним, перед </body>. */
/* 1. Длинный ник в ленте не заезжает на «⋯» */
.postTop>.postTopLeft,.postTopLeft-row{min-width:0}
.postTopLeft-row>.usernameLink{flex:0 1 auto;min-width:0;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.postTop>.postMenuWrap{flex-shrink:0}
/* 2. Плашка уведомлений не закрывает открытый чат */
body.chat-open #notifyBanner{display:none!important}
/* 4. Зум разрешён, но двойной тап не увеличивает страницу */
html{touch-action:manipulation;-webkit-text-size-adjust:100%;text-size-adjust:100%}
/* 5. Контраст второстепенного текста */
.postTopLeft .muted span[style*="opacity:.6"],.postTopLeft .muted span[style*="opacity: .6"]{opacity:.9!important}
body:not(.dark){--muted:#5c6370;--avaFg:#5c6370}
body.dark{--avaFg:#a4adbb}
.footer-note{font-size:11px!important;line-height:1.45;color:rgba(235,242,255,.62)!important}
html.sg-login-light .footer-note{color:rgba(15,23,42,.68)!important}
/* 6. Узкие экраны (iPhone SE, 320–359px) */
.chat-header-info,.chat-header-name,.chat-header .chat-name,.chat-header [class*="name"]{min-width:0}
.chat-header-name,.chat-header .chat-name{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
@media (max-width:359px){
  .mobile-header .mobile-actions{gap:2px!important}
  .mobile-header .mobile-actions>.mobile-notif-btn,.mobile-header .mobile-actions>div,.mobile-header .mobile-actions>.mobile-icon-btn{width:34px!important;min-width:34px!important}
  .mobile-header .mobile-actions>.mobile-icon-btn{height:34px!important;padding:0!important}
  .mobile-header .mobile-actions .mobile-notif-btn{padding-left:0!important;padding-right:0!important}
  html body #chatWrap .chat-header > .chat-header-side:last-child > button{width:36px!important;min-width:36px!important;padding:0!important}
  html body #chatWrap .chat-header .chat-back-btn{width:40px!important;min-width:40px!important}
  .feed-tabs .feed-tab{padding:9px 8px!important;font-size:13px!important}
  .mnav-pill .mobile-nav-item>span{font-size:9.5px!important;letter-spacing:-.25px;white-space:nowrap}
}
/* 11. Пустой экран «Звонки» — кнопка поиска людей */
.list-empty .list-empty-cta{margin-top:4px;text-decoration:none}
/* 12. Профиль: подписи хайлайтов и подчёркивание вкладок у скругления */
.sg159-hl .sg159-hn{font-size:11px!important;letter-spacing:-.25px}
.pCard .pTabs{padding:0 14px 6px;box-sizing:border-box}
/* 9. «Уменьшение движения» в iOS: гасим анимации и переходы (события transitionend/animationend всё равно приходят) */
@media (prefers-reduced-motion:reduce){
  *,*::before,*::after{animation-duration:.01ms!important;animation-iteration-count:1!important;animation-delay:0s!important;transition-duration:.01ms!important;transition-delay:0s!important;scroll-behavior:auto!important}
}
