.my-pyq-header,
.my-pyq-message-header {
  background: transparent;
  border-bottom: none;
  position: absolute;
  top: 4px;
  left: 0;
  right: 0;
  z-index: 4;
  padding-left: 0;
  padding-right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.my-pyq-header .back-btn,
.my-pyq-message-header .back-btn,
.my-pyq-add-btn {
  color: #ffffff;
  text-shadow: 0 1px 8px rgba(15, 23, 42, 0.35);
}

.my-pyq-header .card-header-title strong {
  display: none;
}

.my-pyq-message-header {
  position: sticky;
  top: 0;
  background: #ffffff;
  border-bottom: 1px solid #ececec;
}

.my-pyq-message-header .back-btn,
.my-pyq-message-header .card-header-title strong {
  color: #111111;
  text-shadow: none;
}

.my-pyq-message-header .card-header-title strong {
  display: block;
  font-size: 16px;
  font-weight: 700;
}

.my-pyq-message-header .card-header-title span {
  display: none;
}

.my-pyq-header .card-header-title,
.my-pyq-message-header .card-header-title {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.my-pyq-header .llx-moments-topbar-right,
.my-pyq-message-header .llx-moments-topbar-right {
  width: 44px;
  min-width: 44px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.my-pyq-back-btn,
.my-pyq-add-btn,
.my-pyq-message-back-btn {
  width: 44px;
  height: 44px;
  min-width: 44px;
  border: none;
  border-radius: 0;
  background: transparent;
  display: grid;
  place-items: center;
  box-shadow: none;
  position: relative;
  top: 1px;
}

.my-pyq-back-btn,
.my-pyq-message-back-btn {
  font-size: 32px;
  line-height: 1;
  margin-left: 0;
  transform: translateX(4px);
}

.my-pyq-add-btn {
  margin-left: auto;
  padding: 0;
  line-height: 1;
  cursor: pointer;
  transform: translateX(-2px);
}

.my-pyq-message-icon {
  position: relative;
  display: block;
  width: 21px;
  height: 18px;
  border: 2px solid #ffffff;
  border-radius: 5px;
  box-sizing: border-box;
}

.my-pyq-message-icon::before,
.my-pyq-message-icon::after {
  content: "";
  position: absolute;
  left: 4px;
  right: 4px;
  height: 2px;
  border-radius: 999px;
  background: #ffffff;
}

.my-pyq-message-icon::before {
  top: 4px;
}

.my-pyq-message-icon::after {
  top: 9px;
}

.my-pyq-page-content {
  padding: 0;
  background: transparent;
}

.my-pyq-cover-meta {
  align-items: flex-end;
  gap: 12px;
}

.my-pyq-cover-text-group {
  position: relative;
  bottom: 24px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: flex-end;
  gap: 2px;
}

.my-pyq-cover-meta strong {
  position: static;
  bottom: auto;
  margin: 0;
}

.my-pyq-avatar-column {
  position: relative;
  width: 72px;
  min-width: 72px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
}

.my-pyq-cover-note-row {
  position: absolute;
  top: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%);
  width: 92px;
  display: flex;
  justify-content: center;
}

.my-pyq-cover-note-input {
  width: 100%;
  border: none;
  outline: none;
  background: transparent;
  color: rgba(255, 255, 255, 0.92);
  font-size: 12px;
  line-height: 1.4;
  text-align: center;
  text-shadow: 0 1px 8px rgba(15, 23, 42, 0.35);
  padding: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.my-pyq-cover-note-input::placeholder {
  color: rgba(255, 255, 255, 0.72);
}

.my-pyq-cover-note-input.is-editing {
  border-bottom: 1px solid rgba(255, 255, 255, 0.5);
}

.my-pyq-message-page {
  background: #f5f5f7;
}

.my-pyq-message-content {
  padding: 12px 12px 18px;
  background: #f5f5f7;
}

.my-pyq-message-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.my-pyq-message-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: #ffffff;
  border-radius: 16px;
  padding: 14px;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.05);
}

.my-pyq-message-avatar {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  flex: 0 0 auto;
}

.my-pyq-message-body {
  min-width: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.my-pyq-message-title {
  font-size: 14px;
  line-height: 1.6;
  color: #222222;
}

.my-pyq-message-title strong {
  color: #576b95;
  font-weight: 700;
}

.my-pyq-message-target {
  font-size: 13px;
  line-height: 1.6;
  color: #657084;
  word-break: break-word;
}

.my-pyq-message-time {
  font-size: 12px;
  line-height: 1.4;
  color: #a0a8b5;
}

@media (max-width: 480px) {
  .my-pyq-header,
  .my-pyq-message-header {
    top: 2px;
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  .my-pyq-back-btn,
  .my-pyq-add-btn,
  .my-pyq-message-back-btn {
    width: 40px;
    height: 40px;
    top: 2px;
  }

  .my-pyq-back-btn,
  .my-pyq-message-back-btn {
    font-size: 30px;
    transform: translateX(2px);
  }

  .my-pyq-add-btn {
    transform: translateX(-4px);
  }

  .my-pyq-header .llx-moments-topbar-right,
  .my-pyq-message-header .llx-moments-topbar-right {
    width: 40px;
    min-width: 40px;
  }

  .my-pyq-cover-text-group {
    bottom: 20px;
  }

  .my-pyq-avatar-column {
    width: 64px;
    min-width: 64px;
  }

  .my-pyq-cover-note-row {
    top: calc(100% + 5px);
    width: 82px;
  }

  .my-pyq-cover-note-input {
    width: 100%;
    font-size: 11px;
  }

  .my-pyq-message-content {
    padding: 10px 10px 16px;
  }

  .my-pyq-message-item {
    border-radius: 14px;
    padding: 12px;
  }
}
