/* WXSSC V68.28-A3 FLASH SSE STATUS MICRO REBUILD START */

/* SSE 状态统一为轻量状态胶囊，不和自动刷新按钮抢视觉 */
#wx55RefreshState[role="status"]{
  display:inline-flex !important;
  align-items:center !important;
  gap:7px !important;
  min-width:auto !important;
  padding:0 9px !important;
  height:24px !important;
  border-radius:999px !important;
  background:rgba(34,197,94,.08) !important;
  color:#166534 !important;
  font-size:12px !important;
  font-weight:900 !important;
  white-space:nowrap !important;
}

#wx55RefreshState[role="status"]::before{
  content:"" !important;
  width:7px !important;
  height:7px !important;
  border-radius:999px !important;
  background:#22c55e !important;
  box-shadow:0 0 0 4px rgba(34,197,94,.12) !important;
  flex:0 0 auto !important;
}

#wx55RefreshState.is-reconnect,
#wx55RefreshState.is-error{
  background:rgba(245,158,11,.10) !important;
  color:#92400e !important;
}

#wx55RefreshState.is-reconnect::before,
#wx55RefreshState.is-error::before{
  background:#f59e0b !important;
  box-shadow:0 0 0 4px rgba(245,158,11,.16) !important;
}

/* 新消息条：可见但不刺眼，点击后插入顶部，不强制滚动 */
.wx55-newbar{
  min-height:30px !important;
  height:30px !important;
  display:none;
  align-items:center !important;
  justify-content:center !important;
  background:linear-gradient(90deg,#eff6ff,#f8fbff) !important;
  border-top:1px solid #dbeafe !important;
  border-bottom:1px solid #dbeafe !important;
  color:#2563eb !important;
  font-size:13px !important;
  font-weight:900 !important;
  cursor:pointer !important;
  user-select:none !important;
}

.wx55-newbar.is-show{
  display:flex !important;
}

.wx55-newbar:hover{
  background:#dbeafe !important;
}

/* 阅读稳定：避免新消息插入造成大幅锚点跳动；保留浏览器默认滚动，不主动抢焦点 */
.wx55-feed{
  overflow-anchor:auto;
  scroll-margin-top:108px !important;
}

.wx55-item.new{
  animation:wx-a3-new-flash 1.25s ease-out !important;
}

@keyframes wx-a3-new-flash{
  0%{background:#dbeafe; box-shadow:inset 3px 0 0 #2563eb;}
  65%{background:#eff6ff; box-shadow:inset 3px 0 0 rgba(37,99,235,.34);}
  100%{background:#fff; box-shadow:inset 0 0 0 transparent;}
}

@media (prefers-reduced-motion:reduce){
  .wx55-item.new{animation:none !important;}
}

/* WXSSC V68.28-A3 FLASH SSE STATUS MICRO REBUILD END */
