/* Треды комментариев (урок, карточка) и «Входящие». Цвета — переменные из base.css. */

.comments {
  margin-top: 40px;
  padding-top: 8px;
  border-top: 1px solid var(--line);
}

.thread {
  list-style: none;
  margin: 0 0 20px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.comment {
  min-width: 0;
  padding: 10px 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.comment p {
  margin: 0;
}

.comment > * + * {
  margin-top: 6px;
}

.comment-meta {
  color: var(--muted);
  font-size: 0.9em;
}

.comment-author {
  color: var(--text);
  font-weight: 600;
}

.comment-deleted {
  background: transparent;
  border-style: dashed;
  font-style: italic;
}

.comment-link {
  font-size: 0.92em;
}

.comment-status {
  display: inline-block;
  max-width: 100%;
  padding: 2px 10px;
  border-radius: var(--radius);
  font-size: 0.92em;
}

.status-accepted {
  background: var(--ok-bg);
  color: var(--ok);
}

.status-rejected {
  background: var(--danger-bg);
  color: var(--danger);
}

/* «Удалить…» и «Пометить…» — свёрнуты, без JS; открытый занимает всю строку. */
.comment-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0 18px;
  font-size: 0.92em;
}

.comment-actions details[open] {
  flex-basis: 100%;
}

.comment-delete summary,
.comment-resolve summary {
  display: inline-block;
  cursor: pointer;
  color: var(--muted);
  padding: 2px 0;
}

.comment-delete form {
  margin-top: 6px;
}

.comment-delete button {
  border-color: var(--danger);
  background: transparent;
  color: var(--danger);
  padding: 4px 12px;
}

.resolve-form {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 8px;
  max-width: 34em;
}

.resolve-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.resolve-buttons button {
  padding: 6px 14px;
}

.comment-form {
  max-width: 40em;
}

.comment-retry .muted {
  margin: 0 0 16px;
}

/* «Входящие» */

.inbox-empty {
  padding: 24px 0;
  font-size: 1.15em;
  color: var(--ok);
}

.inbox-lesson {
  margin: 0 0 28px;
}

.inbox-lesson h3 {
  font-size: 1.05rem;
  line-height: 1.35;
  margin: 0 0 8px;
}

.inbox-lesson h3 .muted {
  font-weight: 400;
  font-size: 0.9em;
}

.claude-phrase {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0 0 6px;
  padding: 8px 10px;
  background: var(--surface);
  border: 1px dashed var(--line);
  border-radius: var(--radius);
}

.claude-phrase code {
  flex: 1 1 14em;
  min-width: 0;
}

.claude-phrase button {
  padding: 4px 12px;
}

.inbox-lesson .hint {
  margin: 0 0 12px;
}

.inbox-list {
  margin: 0 0 20px;
  padding-left: 1.2em;
}

.inbox-list li + li {
  margin-top: 6px;
}

.attempt-who {
  font-weight: 600;
}
