.makepedia-comments-section {
  --mp-c-avatar: 32px;
  --mp-c-line: var(--border);
  --mp-c-line-hover: #a1a1aa;
  --mp-c-ring: rgba(161, 161, 170, 0.22);
  --mp-c-surface: #f6f6f7;
  --mp-c-surface-hover: #ebebed;
  margin: 36px 0 32px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-body);
}

.makepedia-comments-section [hidden] {
  display: none !important;
}

/* Header */
.makepedia-comments-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 20px;
}

.makepedia-comments-title-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.makepedia-comments-title {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin: 0;
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: var(--foreground);
  text-transform: none;
}

.makepedia-comments-count {
  font-size: 1.125rem;
  font-weight: 500;
  color: var(--muted-foreground);
  font-variant-numeric: tabular-nums;
}

.makepedia-comments-subtitle {
  margin: 6px 0 0;
  font-size: 15px;
  color: var(--muted-foreground);
}

.makepedia-comments-new {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 26px;
  padding: 0 8px 0 10px;
  border: 0;
  border-radius: 999px;
  background: var(--primary-light);
  color: var(--link);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.makepedia-comments-new:hover {
  filter: brightness(0.97);
}

.makepedia-comments-sort {
  display: inline-flex;
  gap: 2px;
  padding: 3px;
  border-radius: var(--radius);
  background: var(--muted);
}

.makepedia-comments-sort button {
  height: 30px;
  padding: 0 12px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted-foreground);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: color 0.15s ease, background-color 0.15s ease;
}

.makepedia-comments-sort button:hover {
  color: var(--foreground);
}

.makepedia-comments-sort button.is-active {
  background: var(--background);
  color: var(--foreground);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
}

html.dark .makepedia-comments-section {
  --mp-c-surface: var(--card);
  --mp-c-surface-hover: var(--muted);
}

html.dark .makepedia-comments-sort button.is-active {
  background: #27272a;
  box-shadow: none;
}

/* Avatars */
.mp-avatar {
  --h: 220;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: var(--mp-c-avatar);
  height: var(--mp-c-avatar);
  border-radius: 50%;
  background: hsl(var(--h), 55%, 92%);
  color: hsl(var(--h), 40%, 32%);
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  user-select: none;
}

html.dark .mp-avatar {
  background: hsla(var(--h), 50%, 55%, 0.18);
  color: hsl(var(--h), 70%, 78%);
}

.mp-avatar.mp-avatar-empty,
html.dark .mp-avatar.mp-avatar-empty {
  background: var(--muted);
  color: var(--muted-foreground);
}

.mp-avatar.mp-avatar-sm {
  width: 22px;
  height: 22px;
  font-size: 11px;
}

/* Composer */
.makepedia-comment-form-card {
  margin: 0 0 28px;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--mp-c-surface);
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}

.makepedia-comment-form-card.is-expanded {
  padding: 20px;
}

.makepedia-comment-form-card:not(.is-expanded):hover {
  border-color: var(--mp-c-line-hover);
}

.makepedia-comment-form-card:focus-within {
  border-color: var(--mp-c-line-hover);
  box-shadow: 0 0 0 3px var(--mp-c-ring);
}

.makepedia-comment-form {
  margin: 0;
}

.mp-composer-trigger {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 2px;
  border: 0;
  background: transparent;
  color: var(--muted-foreground);
  font-size: 15px;
  text-align: left;
  cursor: text;
}

.mp-composer-trigger:hover .mp-composer-placeholder {
  color: var(--foreground);
}

.makepedia-comment-form-card.is-expanded .mp-composer-trigger {
  display: none;
}

.makepedia-comment-form-card:not(.is-expanded) .comment-reply-banner,
.makepedia-comment-form-card:not(.is-expanded) .makepedia-quill-wrapper,
.makepedia-comment-form-card:not(.is-expanded) .makepedia-guest-fields,
.makepedia-comment-form-card:not(.is-expanded) .makepedia-consent-row,
.makepedia-comment-form-card:not(.is-expanded) .makepedia-form-actions {
  display: none !important;
}

.makepedia-login-card {
  padding: 16px;
  font-size: 15px;
  color: var(--muted-foreground);
}

.comment-reply-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: -4px 0 10px;
  font-size: 14px;
  color: var(--muted-foreground);
}

.comment-reply-banner-text {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.comment-reply-banner strong {
  font-weight: 600;
  color: var(--foreground);
}

.comment-cancel-reply-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted-foreground);
  cursor: pointer;
}

.comment-cancel-reply-btn:hover {
  background: var(--muted);
  color: var(--foreground);
}

/* Quill */
.makepedia-quill-wrapper {
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--background);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.makepedia-quill-wrapper:focus-within {
  border-color: var(--mp-c-line-hover);
  box-shadow: 0 0 0 3px var(--mp-c-ring);
}

.makepedia-comment-form-card:focus-within:has(.makepedia-quill-wrapper:focus-within, .makepedia-text-input:focus) {
  border-color: var(--border);
  box-shadow: none;
}

.makepedia-quill-wrapper .ql-toolbar.ql-snow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  padding: 4px 6px;
  border: 0;
  border-bottom: 1px solid var(--border);
  font-family: inherit;
}

.makepedia-quill-wrapper .ql-toolbar.ql-snow .ql-formats {
  display: inline-flex;
  margin-right: 6px;
  padding-right: 6px;
  border-right: 1px solid var(--border);
}

.makepedia-quill-wrapper .ql-toolbar.ql-snow .ql-formats:last-child {
  margin-right: 0;
  padding-right: 0;
  border-right: 0;
}

.makepedia-quill-wrapper .ql-toolbar.ql-snow button {
  width: 30px;
  height: 30px;
  padding: 7px;
  border-radius: 6px;
}

.makepedia-quill-wrapper .ql-snow .ql-stroke {
  stroke: var(--muted-foreground);
}

.makepedia-quill-wrapper .ql-snow .ql-fill {
  fill: var(--muted-foreground);
}

.makepedia-quill-wrapper .ql-toolbar.ql-snow button:hover,
.makepedia-quill-wrapper .ql-toolbar.ql-snow button.ql-active {
  background: var(--muted);
}

.makepedia-quill-wrapper .ql-toolbar.ql-snow button:hover .ql-stroke,
.makepedia-quill-wrapper .ql-toolbar.ql-snow button.ql-active .ql-stroke {
  stroke: var(--foreground);
}

.makepedia-quill-wrapper .ql-toolbar.ql-snow button:hover .ql-fill,
.makepedia-quill-wrapper .ql-toolbar.ql-snow button.ql-active .ql-fill {
  fill: var(--foreground);
}

.makepedia-quill-wrapper .ql-container.ql-snow {
  border: 0;
  font-family: inherit;
  font-size: 16px;
}

.makepedia-quill-wrapper .ql-editor {
  min-height: 120px;
  max-height: 360px;
  padding: 12px 14px;
  overflow-y: auto;
  color: var(--foreground);
  line-height: 1.6;
}

.makepedia-quill-wrapper .ql-editor.ql-blank::before {
  left: 14px;
  right: 14px;
  color: var(--muted-foreground);
  font-style: normal;
}

.makepedia-quill-wrapper .ql-snow .ql-tooltip {
  z-index: 5;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--card);
  color: var(--foreground);
  box-shadow: 0 8px 24px -8px rgba(0, 0, 0, 0.2);
}

.makepedia-quill-wrapper .ql-snow .ql-tooltip input[type="text"] {
  height: 30px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--background);
  color: var(--foreground);
  font-size: 14px;
  font-style: normal;
}

.makepedia-quill-wrapper .ql-snow .ql-tooltip a {
  color: var(--link);
}

/* Guest fields (prefixed to beat the legacy input[type] rules) */
.makepedia-comments-section .makepedia-guest-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 12px;
}

.makepedia-comments-section .makepedia-input-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.makepedia-comments-section .makepedia-input-label {
  margin: 0;
  font-size: 13px;
  font-weight: 500;
  color: var(--foreground);
}

.makepedia-comments-section .makepedia-input-hint {
  font-weight: 400;
  color: var(--muted-foreground);
}

.makepedia-comments-section .makepedia-text-input {
  width: 100%;
  height: 38px;
  padding: 0 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--background);
  color: var(--foreground);
  font-size: 15px;
  font-weight: 400;
  font-style: normal;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.makepedia-comments-section .makepedia-text-input::placeholder {
  color: var(--muted-foreground);
  font-style: normal;
}

.makepedia-comments-section .makepedia-text-input:focus {
  border-color: var(--mp-c-line-hover);
  box-shadow: 0 0 0 3px var(--mp-c-ring);
}

.makepedia-comments-section .makepedia-consent-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  font-size: 13px;
  color: var(--muted-foreground);
}

.makepedia-comments-section .makepedia-consent-row input {
  width: 16px;
  height: 16px;
  margin: 0;
  accent-color: var(--foreground);
  cursor: pointer;
}

.makepedia-comments-section .makepedia-consent-row label {
  margin: 0;
  font-weight: 400;
  cursor: pointer;
}

/* Form actions */
.makepedia-form-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 14px;
}

.mp-form-hint {
  font-size: 12px;
  color: var(--muted-foreground);
}

.mp-form-hint kbd {
  padding: 1px 5px;
  border: 1px solid var(--border);
  border-bottom-width: 2px;
  border-radius: 4px;
  background: var(--background);
  color: var(--foreground);
  font-family: var(--font-sans);
  font-size: 11px;
  box-shadow: none;
}

.mp-form-buttons {
  display: flex;
  gap: 8px;
  margin-left: auto;
}

.mp-cancel-btn {
  height: 36px;
  padding: 0 14px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--muted-foreground);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
}

.mp-cancel-btn:hover {
  background: var(--mp-c-surface-hover);
  color: var(--foreground);
}

.makepedia-submit-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 36px;
  padding: 0 16px;
  border: 0;
  border-radius: 8px;
  background: var(--foreground);
  color: var(--background) !important;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: opacity 0.15s ease;
}

.makepedia-submit-btn:hover {
  opacity: 0.88;
}

.makepedia-submit-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.makepedia-spinner {
  display: none;
  width: 14px;
  height: 14px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: mpSpin 0.7s linear infinite;
}

.makepedia-submit-btn.is-loading .makepedia-spinner {
  display: inline-block;
}

.makepedia-submit-btn.is-loading svg {
  display: none;
}

@keyframes mpSpin {
  to { transform: rotate(360deg); }
}

/* Comment list */
.makepedia-comments-list,
.makepedia-comments-list .children {
  margin: 0;
  padding: 0;
  list-style: none;
}

.makepedia-comment-item {
  position: relative;
  margin: 0;
  padding: 0;
}

.makepedia-comments-list > .makepedia-comment-item + .makepedia-comment-item {
  margin-top: 8px;
  border-top: 1px solid var(--border);
}

.makepedia-comments-list > .makepedia-comment-item + .makepedia-comment-item > .mp-comment-body {
  padding-top: 16px;
}

.mp-comment-body {
  display: flex;
  gap: 12px;
  margin: 0 -10px;
  padding: 12px 10px 8px;
  border-radius: 10px;
  transition: background-color 0.6s ease;
}

.mp-comment-main {
  flex: 1;
  min-width: 0;
}

.mp-comment-head {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 2px 8px;
  min-height: var(--mp-c-avatar);
  font-size: 13px;
  line-height: 1.4;
  color: var(--muted-foreground);
}

.mp-comment-author {
  font-size: 15px;
  font-weight: 600;
  color: var(--foreground);
}

.makepedia-comments-section .mp-comment-author a {
  color: inherit;
}

.makepedia-comments-section .mp-comment-author a:hover {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.mp-comment-badge {
  display: inline-flex;
  align-items: center;
  height: 20px;
  padding: 0 7px;
  border-radius: 999px;
  background: var(--muted);
  color: var(--foreground);
  font-size: 12px;
  font-weight: 500;
}

.mp-comment-badge-author {
  background: var(--primary-light);
  color: var(--link);
}

.makepedia-comments-section .mp-comment-parent,
.makepedia-comments-section .mp-comment-time {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  color: var(--muted-foreground);
  text-decoration: none;
}

.makepedia-comments-section .mp-comment-parent:hover,
.makepedia-comments-section .mp-comment-time:hover {
  color: var(--foreground);
}

.makepedia-comments-section .mp-comment-time:hover {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.mp-comment-new-badge {
  display: none;
  font-size: 12px;
  font-weight: 600;
  color: var(--link);
}

.makepedia-comment-item.is-new > .mp-comment-body {
  background: hsla(24, 100%, 50%, 0.06);
}

.makepedia-comment-item.is-new > .mp-comment-body .mp-comment-new-badge {
  display: inline;
}

html.dark .makepedia-comment-item.is-new > .mp-comment-body {
  background: hsla(24, 100%, 55%, 0.08);
}

.mp-comment-collapse {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  margin-left: auto;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted-foreground);
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.15s ease, background-color 0.15s ease;
}

.mp-comment-body:hover .mp-comment-collapse,
.mp-comment-collapse:focus-visible {
  opacity: 1;
}

.mp-comment-collapse:hover {
  background: var(--muted);
  color: var(--foreground);
}

@media (hover: none) {
  .mp-comment-collapse {
    opacity: 1;
  }
}

.comment-moderation-notice {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 4px 0 8px;
  padding: 8px 12px;
  border-radius: 8px;
  background: hsl(42, 95%, 94%);
  color: hsl(32, 80%, 28%);
  font-size: 13px;
}

.comment-moderation-notice svg {
  flex-shrink: 0;
  margin-top: 2px;
}

html.dark .comment-moderation-notice {
  background: hsla(40, 95%, 50%, 0.12);
  color: hsl(42, 90%, 70%);
}

/* Comment text */
.makepedia-comments-section .comment-text-inner {
  max-width: 48rem;
  margin-top: 2px;
  font-size: 15px;
  line-height: 1.65;
  color: var(--text-body);
  overflow-wrap: anywhere;
}

.makepedia-comments-section .comment-text-inner p {
  margin: 0 0 0.6em;
}

.makepedia-comments-section .comment-text-inner > :last-child {
  margin-bottom: 0;
}

.makepedia-comments-section .comment-text-inner blockquote {
  margin: 0.6em 0;
  padding: 0 0 0 12px;
  border: 0;
  border-left: 3px solid var(--border);
  border-radius: 0;
  background: none;
  color: var(--muted-foreground);
  font-size: inherit;
  font-style: normal;
}

.makepedia-comments-section .comment-text-inner code {
  padding: 0.15em 0.4em;
  border: 0;
  border-radius: 4px;
  background: var(--muted);
  color: var(--foreground);
  font-size: 0.875em;
}

.makepedia-comments-section .comment-text-inner pre {
  margin: 0.6em 0;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--muted);
  color: var(--foreground);
  font-size: 13.5px;
  white-space: pre-wrap;
  overflow-x: auto;
}

.makepedia-comments-section .comment-text-inner ul,
.makepedia-comments-section .comment-text-inner ol {
  margin: 0.4em 0 0.6em;
  padding-left: 1.4em;
}

.makepedia-comments-section .comment-text-inner li {
  margin: 0.2em 0;
}

.makepedia-comments-section .comment-text-inner li[data-list="bullet"] {
  list-style-type: disc;
}

.makepedia-comments-section .comment-text-inner .ql-ui {
  display: none;
}

.makepedia-comments-section .comment-text-inner a {
  color: var(--link);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

/* Actions */
.mp-comment-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 2px;
  margin: 6px 0 0 -8px;
}

.mp-action {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 30px;
  padding: 0 8px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted-foreground);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: color 0.15s ease, background-color 0.15s ease;
}

.mp-action:hover {
  background: var(--muted);
  color: var(--foreground);
}

.mp-action-icon {
  justify-content: center;
  width: 30px;
  padding: 0;
}

.btn-comment-like .like-counter {
  font-variant-numeric: tabular-nums;
}

.btn-comment-like .like-counter:empty {
  display: none;
}

.btn-comment-like.has-likes .like-counter {
  color: var(--foreground);
}

.btn-comment-like.is-liked,
.btn-comment-like.is-liked .like-counter {
  color: var(--link);
}

.btn-comment-like.is-liked svg {
  fill: currentColor;
  fill-opacity: 0.15;
}

.btn-comment-like.like-popped svg {
  animation: mpLikePop 0.4s ease;
}

@keyframes mpLikePop {
  50% { transform: scale(1.25); }
}

/* Threads */
.makepedia-comments-list .children {
  margin-left: calc(var(--mp-c-avatar) + 12px);
}

.mp-thread-line {
  position: absolute;
  top: calc(var(--mp-c-avatar) + 18px);
  bottom: 4px;
  left: calc(var(--mp-c-avatar) / 2 - 6px);
  z-index: 1;
  width: 12px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.mp-thread-line::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 5px;
  width: 2px;
  border-radius: 2px;
  background: var(--mp-c-line);
  transition: background-color 0.15s ease;
}

.mp-thread-line:hover::before,
.mp-thread-line:focus-visible::before {
  background: var(--mp-c-line-hover);
}

.makepedia-comments-list > .makepedia-comment-item + .makepedia-comment-item > .mp-thread-line {
  top: calc(var(--mp-c-avatar) + 22px);
}

.makepedia-comment-item:not(:has(> .children)) > .mp-thread-line,
.makepedia-comment-item.is-collapsed > .mp-thread-line {
  display: none;
}

/* Deep threads stop indenting so text never gets squeezed */
.makepedia-comments-list .children .children .children .children {
  margin-left: 0;
}

.makepedia-comments-list .children .children .children > .makepedia-comment-item > .mp-thread-line {
  display: none;
}

/* Collapsed thread */
.mp-comment-collapsed {
  padding: 8px 0;
}

.makepedia-comment-item:not(.is-collapsed) > .mp-comment-collapsed,
.makepedia-comment-item.is-collapsed > .mp-comment-body,
.makepedia-comment-item.is-collapsed > .children,
.makepedia-comment-item.is-collapsed > .makepedia-comment-form-card {
  display: none;
}

.mp-comment-expand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 32px;
  margin-left: -8px;
  padding: 0 12px 0 8px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted-foreground);
  font-size: 13px;
  cursor: pointer;
}

.mp-comment-expand:hover {
  background: var(--muted);
  color: var(--foreground);
}

.mp-comment-expand strong {
  font-weight: 600;
  color: var(--foreground);
}

.makepedia-comment-item.comment-highlight > .mp-comment-body {
  animation: mpCommentFlash 2.4s ease-out;
}

@keyframes mpCommentFlash {
  0%, 30% { background-color: var(--primary-light); }
  100% { background-color: transparent; }
}

/* Reply form inside the thread */
.makepedia-comments-list .makepedia-comment-form-card {
  margin: 4px 0 12px calc(var(--mp-c-avatar) + 12px);
}

/* Show more, empty, closed, pagination */
.makepedia-comment-item.is-hidden-more {
  display: none;
}

.makepedia-comments-more {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  height: 40px;
  margin-top: 16px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: transparent;
  color: var(--foreground);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
}

.makepedia-comments-more:hover {
  background: var(--muted);
}

.makepedia-comments-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 24px;
  padding: 36px 24px;
  border: 1px dashed var(--border);
  border-radius: 12px;
  text-align: center;
}

.mp-empty-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--primary-light);
  color: var(--primary);
}

.mp-empty-title {
  margin: 14px 0 4px;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--foreground);
  text-transform: none;
}

.mp-empty-text {
  max-width: 420px;
  margin: 0;
  font-size: 15px;
  color: var(--muted-foreground);
}

.mp-empty-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  margin-top: 20px;
  padding: 0 18px;
  border: 0;
  border-radius: 999px;
  background: var(--primary);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s ease, transform 0.15s ease;
}

.mp-empty-cta:hover {
  background: var(--primary-hover);
  color: #fff;
}

.mp-empty-cta:active {
  transform: scale(0.98);
}

.makepedia-comments-closed {
  margin: 0 0 24px;
  color: var(--muted-foreground);
  font-size: 15px;
}

.makepedia-comments-section .comment-navigation .nav-links {
  display: flex;
  justify-content: space-between;
  margin-top: 16px;
  font-size: 14px;
}

/* Toast */
.makepedia-toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 99999;
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: calc(100vw - 32px);
  padding: 10px 14px;
  border-radius: 10px;
  background: var(--foreground);
  color: var(--background);
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 500;
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.35);
  opacity: 0;
  transform: translate(-50%, 16px);
  transition: opacity 0.2s ease, transform 0.2s ease;
  pointer-events: none;
}

.makepedia-toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

.makepedia-toast svg {
  flex-shrink: 0;
}

.makepedia-toast.toast-success svg {
  color: #22c55e;
}

.makepedia-toast.toast-error svg {
  color: #ef4444;
}

@media (max-width: 768px) {
  .makepedia-comments-section {
    --mp-c-avatar: 28px;
    margin-top: 20px;
    padding-top: 20px;
  }

  .makepedia-comments-title {
    font-size: 1.25rem;
  }

  .makepedia-comments-empty {
    padding: 28px 16px;
  }

  .makepedia-comments-sort {
    display: flex;
    width: 100%;
  }

  .makepedia-comments-sort button {
    flex: 1;
    padding: 0 6px;
  }

  .makepedia-comments-section .makepedia-guest-fields {
    grid-template-columns: 1fr;
  }

  .mp-form-hint {
    display: none;
  }

  .makepedia-comments-section .comment-text-inner {
    font-size: 15px;
  }

  .makepedia-comment-form-card.is-expanded {
    padding: 14px 14px;
  }

  .makepedia-comments-section .makepedia-text-input {
    font-size: 16px !important;
  }

  .mp-comment-body {
    margin: 0 -4px;
    padding: 10px 4px 6px;
    gap: 10px;
  }

  .makepedia-comments-list .children {
    margin-left: calc(var(--mp-c-avatar) / 2 + 8px);
  }

  .makepedia-comments-list .children .children .children {
    margin-left: 0;
  }

  .makepedia-comments-list .children .children > .makepedia-comment-item > .mp-thread-line {
    display: none;
  }

  .makepedia-comments-list .makepedia-comment-form-card {
    margin-left: 0;
  }
}


.makepedia-comment-form-card:not(.is-expanded) .mp-captcha {
  display: none !important;
}

.mp-captcha--visible {
  margin-top: 12px;
}
