.header-message-center__badge.ant-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
}

.header-message-center__badge.ant-badge .ant-badge-count {
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border: 1.5px solid #ffffff;
  box-shadow: 0 4px 12px rgba(248, 113, 113, 0.28);
  font-size: 10px;
  line-height: 14px;
  inset-block-start: 4px;
  transform: translate(40%, -24%);
}

.header-message-center__trigger.ant-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border-radius: 12px;
}

.header-message-center__trigger.ant-btn > span,
.header-message-center__trigger.ant-btn .ant-btn-icon,
.header-message-center__trigger.ant-btn .anticon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  vertical-align: middle;
}

.header-message-center__summary {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.header-message-center__tabs {
  width: 100%;
}

.header-message-center__loading {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 180px;
}

.header-message-center__item {
  padding: 0 !important;
  border: none !important;
}

.header-message-center__item + .header-message-center__item {
  margin-top: 10px;
}

.header-message-center__swipe {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  isolation: isolate;
}

.header-message-center__delete-action {
  position: absolute;
  inset: 0 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 96px;
  border: none;
  border-radius: 16px;
  background: linear-gradient(180deg, #ef4444 0%, #dc2626 100%);
  color: #ffffff;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.header-message-center__swipe.is-swiped .header-message-center__delete-action,
.header-message-center__swipe.is-dragging .header-message-center__delete-action {
  opacity: 1;
  visibility: visible;
}

.header-message-center__item-button {
  display: block;
  position: relative;
  z-index: 1;
  width: 100%;
  min-width: 0;
  overflow: hidden;
  padding: 14px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 16px;
  background: #ffffff;
  text-align: left;
  cursor: pointer;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.2s ease;
  touch-action: pan-y;
  will-change: transform;
}

.header-message-center__item-button:hover {
  border-color: rgba(37, 99, 235, 0.32);
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.08);
  transform: translateY(-1px);
}

.header-message-center__item.is-unread .header-message-center__item-button {
  background: linear-gradient(180deg, #f8fbff 0%, #eef5ff 100%);
  border-color: rgba(37, 99, 235, 0.24);
}

.header-message-center__item-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
  margin-bottom: 10px;
}

.header-message-center__item-time.ant-typography {
  flex: 0 0 auto;
}

.header-message-center__item-title.ant-typography {
  margin-bottom: 8px;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.header-message-center__item-preview.ant-typography {
  margin-bottom: 0;
  color: #475467;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.header-message-center__swipe-hint {
  display: none;
}

.header-message-center__detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.header-message-center__detail-section {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.header-message-center__detail-body.ant-typography {
  margin-bottom: 0;
  white-space: pre-wrap;
}

@media (max-width: 768px) {
  .header-message-center__trigger.ant-btn {
    width: 31px;
    height: 31px;
    min-width: 31px;
    border-radius: 10px;
  }

  .header-message-center__badge.ant-badge .ant-badge-count {
    inset-block-start: 5px;
    transform: translate(34%, -16%);
  }

  .header-message-center__item-button {
    padding: 12px 12px 34px;
  }

  .header-message-center__swipe-hint {
    position: absolute;
    right: 14px;
    bottom: 10px;
    display: block;
    color: #94a3b8;
    font-size: 0.72rem;
    pointer-events: none;
    transition: opacity 0.2s ease;
  }

  .header-message-center__swipe.is-swiped .header-message-center__swipe-hint,
  .header-message-center__swipe.is-dragging .header-message-center__swipe-hint {
    opacity: 0;
  }

  .header-message-center__item-header {
    flex-direction: column;
    align-items: flex-start;
  }
}
