.mtp-comments {
  margin-top: 2.5rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--border, #dde1e6);
}

.mtp-comments-title {
  margin: 0 0 0.5rem;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text, #1a1a2e);
}

.mtp-comments-sub {
  margin: 0 0 1.25rem;
  font-size: 0.92rem;
  line-height: 1.55;
  color: #c8d4e0;
  max-width: 52rem;
}

.articles-page .mtp-comments-sub,
.contact-page .mtp-comments-sub {
  color: #2a3f55;
}

.articles-page .mtp-comments-label,
.contact-page .mtp-comments-label {
  color: #1e4a7a;
}

.mtp-comments-count {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--muted, #5c6370);
}

.mtp-comments-label {
  display: block;
  margin: 0 0 0.35rem;
  font-size: 0.88rem;
  font-weight: 700;
  color: #b8c9dc;
}

.mtp-comments-form input[type="text"],
.mtp-comments-form textarea,
.mtp-comments-quiz select {
  width: 100%;
  max-width: 40rem;
  box-sizing: border-box;
  margin-bottom: 0.85rem;
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--border, #dde1e6);
  border-radius: 8px;
  font: inherit;
  color: var(--text, #1a1a2e);
  background: var(--surface, #fff);
}

.mtp-comments-form textarea {
  min-height: 6rem;
  resize: vertical;
}

.mtp-comments-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1rem;
  margin-bottom: 1.5rem;
}

.mtp-comments-status {
  flex: 1 1 12rem;
  font-size: 0.88rem;
  color: var(--muted, #5c6370);
}

.mtp-comments-status.is-error {
  color: #b42318;
}

.mtp-comments-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 1.1rem;
  border-radius: 8px;
  border: 1px solid var(--border, #dde1e6);
  background: var(--surface, #fff);
  color: var(--text, #1a1a2e);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
}

.mtp-comments-btn-primary {
  background: var(--accent, #c41e3a);
  border-color: var(--accent, #c41e3a);
  color: #fff;
}

.mtp-comments-btn-ghost {
  background: transparent;
}

.mtp-comments-quiz {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(13, 27, 42, 0.55);
}

.mtp-comments-quiz[hidden] {
  display: none !important;
}

.mtp-comments-quiz-dialog {
  width: min(100%, 32rem);
  padding: 1.35rem 1.5rem 1.5rem;
  border-radius: 12px;
  background: #ffffff;
  border: 2px solid #0d1b2a;
  border-top: 5px solid #c41e3a;
  box-shadow: 0 16px 48px rgba(13, 27, 42, 0.35);
  color: #0d1b2a;
}

.mtp-comments-quiz-dialog h3 {
  margin: 0 0 0.65rem;
  font-size: 1.2rem;
  font-weight: 800;
  color: #0d1b2a;
  letter-spacing: 0.02em;
}

.mtp-comments-quiz-note {
  margin: 0 0 1rem;
  padding: 0.65rem 0.75rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: #0d1b2a;
  line-height: 1.5;
  background: #e8eef5;
  border-left: 4px solid #1e4a7a;
  border-radius: 4px;
}

.mtp-comments-quiz-question {
  margin: 0 0 0.85rem;
  font-weight: 700;
  font-size: 1.05rem;
  line-height: 1.45;
  color: #0d1b2a;
}

.mtp-comments-quiz-dialog .mtp-comments-label {
  color: #1e4a7a;
  font-size: 0.9rem;
  font-weight: 700;
}

.mtp-comments-quiz-dialog select {
  color: #0d1b2a;
  font-weight: 600;
  border: 2px solid #1e4a7a;
  background: #fff;
}

.mtp-comments-quiz-dialog select:focus {
  outline: 2px solid #c41e3a;
  outline-offset: 2px;
  border-color: #c41e3a;
}

.mtp-comments-quiz-dialog .mtp-comments-btn-primary {
  background: #c41e3a;
  border-color: #a01830;
}

.mtp-comments-quiz-dialog .mtp-comments-btn-ghost {
  color: #1e4a7a;
  border-color: #1e4a7a;
  font-weight: 700;
}

.mtp-comments-quiz-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.mtp-comments-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.mtp-comments-empty {
  padding: 0.75rem 0;
  color: var(--muted, #5c6370);
  font-size: 0.9rem;
}

.mtp-comments-item {
  padding: 1rem 0;
  border-top: 1px solid var(--border, #dde1e6);
}

.mtp-comments-item-head {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
  margin-bottom: 0.35rem;
}

.mtp-comments-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, #dde1e6, #f4f5f7);
  flex-shrink: 0;
}

.mtp-comments-item-name {
  font-weight: 700;
  font-size: 0.92rem;
}

.mtp-comments-item-time {
  font-size: 0.78rem;
  color: var(--muted, #5c6370);
}

.mtp-comments-item-body {
  margin: 0;
  line-height: 1.55;
  white-space: pre-wrap;
  word-break: break-word;
}

.dashboard-page .mtp-comments-title,
.person-page .mtp-comments-title {
  color: inherit;
}
