.yc-root {
  --yc-border: #d8dee8;
  --yc-text: #1f2937;
  --yc-muted: #6b7280;
  --yc-surface: #ffffff;
  --yc-soft: #f8fafc;
  --yc-accent: #2563eb;
  color: var(--yc-text);
}

.yc-section,
.yc-form,
.yc-list {
  display: grid;
  gap: 1rem;
}

.yc-header,
.yc-meta,
.yc-footer,
.yc-form-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.yc-header h2,
.yc-form h3,
.yc-content {
  margin: 0;
}

.yc-header span,
.yc-meta time,
.yc-feedback,
.yc-state p {
  color: var(--yc-muted);
}

.yc-comment,
.yc-form,
.yc-state {
  border: 1px solid var(--yc-border);
  border-radius: 8px;
  background: var(--yc-surface);
  padding: 1rem;
}

.yc-comment {
  display: grid;
  gap: 0.75rem;
}

.yc-author {
  font-weight: 700;
}

a.yc-author {
  color: var(--yc-accent);
}

.yc-content {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  line-height: 1.7;
}

.yc-actions button,
.yc-form button {
  border: 1px solid var(--yc-border);
  border-radius: 8px;
  background: var(--yc-soft);
  padding: 0.55rem 0.75rem;
  color: var(--yc-text);
  cursor: pointer;
}

.yc-form button[type="submit"] {
  border-color: var(--yc-accent);
  background: var(--yc-accent);
  color: #fff;
}

.yc-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8rem;
}

.yc-form label {
  display: grid;
  gap: 0.35rem;
}

.yc-form input,
.yc-form textarea {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid var(--yc-border);
  border-radius: 8px;
  background: var(--yc-surface);
  padding: 0.7rem 0.8rem;
  color: inherit;
}

.yc-form textarea {
  min-height: 8rem;
  resize: vertical;
}

.yc-turnstile {
  min-height: 4rem;
}

.yc-feedback {
  min-height: 1.25rem;
  margin: 0;
}

.yc-replies {
  display: grid;
  gap: 0.75rem;
  margin-left: 1rem;
  padding-left: 1rem;
  border-left: 1px solid var(--yc-border);
}

.yc-replies:empty {
  display: none;
}

.yc-state p {
  margin: 0;
}

@media (max-width: 720px) {
  .yc-grid {
    grid-template-columns: 1fr;
  }

  .yc-meta,
  .yc-footer {
    align-items: flex-start;
    flex-direction: column;
  }
}
