.blog-feedback-panel,
.blog-related-panel {
  margin-top: 28px;
  border: 1px solid #e5e7eb;
  background: #fff;
  border-radius: 8px;
  padding: 18px;
}

.blog-feedback-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.blog-feedback-title,
.blog-related-title {
  color: #1f2937;
  font-size: 16px;
  font-weight: 700;
}

.blog-feedback-subtitle {
  margin-top: 6px;
  color: #6b7280;
  font-size: 13px;
}

.blog-reaction-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.blog-reaction {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  background: #fff;
  color: #374151;
  cursor: pointer;
  font-size: 13px;
  line-height: 1;
  padding: 8px 12px;
}

.blog-reaction b {
  color: #6b7280;
  font-weight: 600;
}

.blog-reaction:hover,
.blog-reaction.is-active {
  border-color: #2563eb;
  background: #eff6ff;
  color: #1d4ed8;
}

.blog-feedback-actions {
  display: flex;
  gap: 12px;
  margin-top: 14px;
}

.blog-feedback-link {
  border: 0;
  background: transparent;
  color: #2563eb;
  cursor: pointer;
  font-size: 13px;
  padding: 0;
}

.blog-related-panel {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.blog-related-list {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.blog-related-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid #f1f5f9;
  color: #374151;
  padding: 8px 0;
  text-decoration: none;
}

.blog-related-item span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.blog-related-item small {
  flex: 0 0 auto;
  color: #9ca3af;
  font-size: 12px;
}

.blog-related-item:hover {
  color: #2563eb;
}

.blog-related-empty {
  color: #9ca3af;
  font-size: 13px;
  padding: 8px 0;
}

.blog-feedback-modal {
  position: fixed;
  z-index: 9999;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(17, 24, 39, 0.45);
  padding: 18px;
}

.blog-feedback-modal[hidden] {
  display: none;
}

.blog-feedback-dialog {
  width: min(520px, 100%);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 18px 60px rgba(15, 23, 42, 0.22);
  padding: 18px;
}

.blog-feedback-dialog-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.blog-feedback-close {
  width: 30px;
  height: 30px;
  border: 0;
  background: #f3f4f6;
  border-radius: 8px;
  color: #4b5563;
  cursor: pointer;
  font-size: 20px;
  line-height: 1;
}

.blog-feedback-text,
.blog-feedback-contact {
  width: 100%;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  color: #1f2937;
  font: inherit;
  margin-top: 10px;
  padding: 10px 12px;
}

.blog-feedback-selected {
  margin-top: 10px;
  border-left: 3px solid #93c5fd;
  background: #eff6ff;
  color: #4b5563;
  font-size: 13px;
  padding: 8px 10px;
}

.blog-feedback-dialog-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 14px;
}

.blog-feedback-button {
  border: 0;
  border-radius: 8px;
  background: #2563eb;
  color: #fff;
  cursor: pointer;
  font-size: 14px;
  padding: 9px 16px;
}

.blog-feedback-toast {
  position: fixed;
  right: 20px;
  bottom: 24px;
  z-index: 10000;
  transform: translateY(10px);
  border-radius: 8px;
  background: #111827;
  color: #fff;
  opacity: 0;
  padding: 10px 14px;
  transition: opacity .2s ease, transform .2s ease;
}

.blog-feedback-toast.is-visible {
  transform: translateY(0);
  opacity: 1;
}

@media (max-width: 760px) {
  .blog-feedback-head {
    display: block;
  }

  .blog-feedback-head .blog-feedback-link {
    margin-top: 10px;
  }

  .blog-related-panel {
    grid-template-columns: 1fr;
  }
}
