.pv-comment-widget {
  --pv-comment-brand: #16baaa;
  --pv-comment-rail: #c5e8e3;
  --pv-comment-card: var(--pv-surface, #fff);
  margin: 20px 0;
  font-size: 14px;
  color: var(--pv-text, #333);
}
.pv-comment-list { margin-bottom: 16px; }
.pv-comment-item {
  padding: 12px 14px;
  margin-bottom: 10px;
  background: var(--pv-comment-card);
  border: 1px solid var(--pv-border, #eee);
  border-radius: calc(var(--pv-radius, 4px) + 2px);
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.03);
}
.pv-comment-item.is-nested {
  background: var(--pv-surface-2, #f8fafc);
  border-color: var(--pv-border, #e8eef2);
  box-shadow: none;
}
.pv-comment-children {
  margin: 0 0 4px 8px;
  padding-left: 14px;
  border-left: 2px solid var(--pv-comment-rail, #c5e8e3);
}
.pv-comment-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 10px;
  font-size: 12px;
  color: var(--pv-text-muted, #999);
  margin-bottom: 6px;
}
.pv-comment-floor {
  display: inline-block;
  min-width: 1.75em;
  font-weight: 700;
  color: var(--pv-comment-brand, #16baaa);
  letter-spacing: 0.02em;
}
.pv-comment-meta strong {
  color: var(--pv-text, #333);
  margin-right: 0;
}
.pv-comment-content {
  line-height: 1.55;
  word-break: break-word;
}
.pv-comment-actions { margin-top: 8px; font-size: 12px; }
.pv-comment-actions button {
  background: none;
  border: none;
  color: var(--pv-comment-brand, var(--pv-accent, #16baaa));
  cursor: pointer;
  padding: 0 8px 0 0;
}
.pv-comment-form textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 10px;
  border: 1px solid var(--pv-border-strong, #ddd);
  border-radius: var(--pv-radius, 4px);
  resize: vertical;
}
.pv-comment-submit {
  margin-top: 8px;
  padding: 8px 16px;
  background: var(--pv-comment-brand, var(--pv-accent, #16baaa));
  color: #fff;
  border: none;
  border-radius: var(--pv-radius, 4px);
  cursor: pointer;
}
.pv-comment-empty {
  color: var(--pv-text-muted, #999);
  padding: 12px 0;
}
.pv-comment-quote {
  margin: 6px 0 8px;
  padding: 8px 12px;
  border-left: 3px solid var(--pv-comment-brand, #16baaa);
  background: var(--pv-surface-2, #f0fafa);
  color: var(--pv-text-muted, #64748b);
  font-size: 13px;
  border-radius: 0 var(--pv-radius, 4px) var(--pv-radius, 4px) 0;
}
.pv-reply-btn { color: var(--pv-comment-brand, var(--pv-accent, #16baaa)) !important; }
.pv-like-btn.is-liked { color: var(--pv-comment-brand, #16baaa) !important; font-weight: 600; }
.pv-comment-nick {
  width: 100%;
  box-sizing: border-box;
  margin-bottom: 8px;
  padding: 8px 10px;
  border: 1px solid var(--pv-border-strong, #ddd);
  border-radius: var(--pv-radius, 4px);
}
.pv-comment-form-meta {
  display: flex;
  justify-content: flex-end;
  margin-top: 4px;
  font-size: 12px;
  color: var(--pv-text-muted, #999);
}
.pv-comment-charcount.is-near { color: #d97706; }
.pv-comment-toast {
  margin-bottom: 10px;
  padding: 8px 12px;
  border-radius: var(--pv-radius, 4px);
  background: var(--pv-surface-2, #f0fafa);
  border: 1px solid var(--pv-comment-rail, #c5e8e3);
  color: var(--pv-text, #333);
  font-size: 13px;
}
.pv-comment-toast.is-pending { border-color: #fbbf24; background: #fffbeb; }
.pv-comment-toast.is-ok { border-color: var(--pv-comment-rail, #c5e8e3); }
.pv-comment-empty.is-error { color: #dc2626; }
.pv-comment-more {
  text-align: center;
  padding: 8px 0 4px;
}
.pv-comment-more-btn {
  background: none;
  border: 1px solid var(--pv-border-strong, #ddd);
  border-radius: var(--pv-radius, 4px);
  padding: 6px 14px;
  cursor: pointer;
  color: var(--pv-comment-brand, #16baaa);
  font-size: 13px;
}
.pv-comment-form-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 8px;
}
.pv-comment-form-actions .pv-comment-submit { margin-top: 0; }
.pv-comment-cancel-reply {
  background: none;
  border: none;
  color: var(--pv-text-muted, #999);
  cursor: pointer;
  padding: 0;
  font-size: 13px;
}
.pv-comment-login-gate {
  padding: 16px;
  border: 1px dashed var(--pv-border-strong, #ddd);
  border-radius: var(--pv-radius, 4px);
  background: var(--pv-surface-2, #f8fafc);
  text-align: center;
  color: var(--pv-text-muted, #64748b);
}
.pv-comment-login-gate p { margin: 0 0 10px; }
.pv-comment-login-link {
  display: inline-block;
  padding: 8px 16px;
  background: var(--pv-comment-brand, var(--pv-accent, #16baaa));
  color: #fff !important;
  border-radius: var(--pv-radius, 4px);
  text-decoration: none;
}

@media (max-width: 640px) {
  .pv-comment-children {
    margin-left: 4px;
    padding-left: 10px;
  }
  .pv-comment-item {
    padding: 10px 12px;
  }
}
