.discussion-list__item {
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--color-border, #e5e7eb);
}

.discussion-list__item h2 {
  margin: 0 0 0.25rem;
  font-size: 1.1rem;
}

.discussion-list__meta {
  margin: 0;
  font-size: 0.875rem;
  color: var(--color-text-muted, #6b7280);
}

.discussion-list__empty {
  color: var(--color-text-muted, #6b7280);
}

.message {
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--color-border, #e5e7eb);
}

.message__header {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
  font-size: 0.875rem;
}

.message__author {
  font-weight: 600;
}

.message__author--deleted {
  font-weight: normal;
  font-style: italic;
  color: var(--color-text-muted, #6b7280);
}

.message__time {
  color: var(--color-text-muted, #6b7280);
}

.message__edited {
  font-size: 0.75rem;
  color: var(--color-text-muted, #6b7280);
  font-style: italic;
}

.message__body {
  white-space: pre-wrap;
}

.message__actions {
  display: flex;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.message__action {
  font-size: 0.75rem;
  color: var(--color-text-muted, #6b7280);
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  text-decoration: underline;
}

.message__action:hover {
  color: var(--color-text, #111827);
}

.message__action--danger:hover {
  color: var(--color-danger, #dc2626);
}

.reply-section {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 2px solid var(--color-border, #e5e7eb);
}

.reply-section h2 {
  font-size: 1rem;
  margin-bottom: 1rem;
}

.message-form__field {
  margin-bottom: 1rem;
}

.message-form__field textarea {
  width: 100%;
}

.message-form__actions {
  display: flex;
  gap: 0.75rem;
}

/* Suppress Pico's aria-busy spinner on message turbo frames.
   Turbo sets aria-busy during frame navigation (edit/update);
   Pico renders these with a loading spinner — inappropriate
   for inline message actions. */
.message-list turbo-frame[aria-busy=true]::before,
.message-list turbo-frame[aria-busy=true] {
  display: revert;
  cursor: default;
}

.message-list turbo-frame[aria-busy=true]::before {
  content: none;
}
