body {
  font-family: system-ui, sans-serif;
  max-width: 640px;
  margin: 2rem auto;
  padding: 0 1rem;
  color: #222;
}

textarea {
  width: 100%;
  font: inherit;
  padding: 0.5rem;
  box-sizing: border-box;
  resize: vertical;
}

.form-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 0.5rem;
}

#char-counter {
  color: #666;
  font-size: 0.85rem;
}

#char-counter.warning {
  color: #c0392b;
  font-weight: bold;
}

.error {
  color: #c0392b;
  margin-top: 0.5rem;
}

button {
  font: inherit;
  padding: 0.4rem 1rem;
  cursor: pointer;
}

button:disabled {
  opacity: 0.6;
  cursor: default;
}

#feed {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.message {
  border: 1px solid #ddd;
  border-radius: 6px;
  padding: 0.75rem 1rem;
}

.message-text {
  margin: 0 0 0.35rem;
  white-space: pre-wrap;
  word-break: break-word;
}

.message time {
  font-size: 0.75rem;
  color: #888;
}

#load-more {
  display: block;
  margin: 1rem auto;
}

.tabs {
  display: flex;
  gap: 0.5rem;
  border-bottom: 1px solid #ddd;
  margin-bottom: 1.5rem;
}

.tab-button {
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  padding: 0.5rem 0.25rem;
}

.tab-button.active {
  border-bottom-color: #222;
  font-weight: bold;
}

.count {
  color: #c0392b;
}

#admin-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.admin-message {
  border: 1px solid #ddd;
  border-radius: 6px;
  padding: 0.75rem 1rem;
}

.admin-meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 0.75rem;
  color: #888;
  margin: 0.35rem 0;
}

.flag-reason {
  color: #c0392b;
}

.admin-actions {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.5rem;
}
