* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Georgia, 'Times New Roman', serif;
  background: #fafaf8;
  color: #2c2c2c;
  line-height: 1.7;
  max-width: 680px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
}

header {
  text-align: center;
  margin-bottom: 3rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid #e0ddd8;
}

h1 {
  font-size: 1.8rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  margin-bottom: 0.5rem;
}

.subtitle {
  color: #7a7a72;
  font-size: 0.95rem;
  font-style: italic;
}

h2 {
  font-size: 1.1rem;
  font-weight: 400;
  margin-bottom: 1.2rem;
  color: #4a4a45;
}

/* Form */
.submit-section {
  margin-bottom: 3rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid #e0ddd8;
}

label {
  display: block;
  font-size: 0.85rem;
  margin-bottom: 0.3rem;
  color: #5a5a55;
}

.optional {
  color: #aaa;
}

input[type="text"],
textarea {
  width: 100%;
  padding: 0.6rem 0.75rem;
  border: 1px solid #d5d2cc;
  border-radius: 4px;
  font-family: Georgia, serif;
  font-size: 0.9rem;
  background: #fff;
  margin-bottom: 1rem;
  transition: border-color 0.2s;
}

input[type="text"]:focus,
textarea:focus {
  outline: none;
  border-color: #8a8a80;
}

.char-count {
  font-size: 0.75rem;
  color: #aaa;
  text-align: right;
  margin-top: -0.8rem;
  margin-bottom: 1rem;
}

/* Tags */
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.2rem;
}

.tag {
  font-size: 0.8rem;
  padding: 0.3rem 0.7rem;
  border: 1px solid #d5d2cc;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.tag:hover {
  border-color: #8a8a80;
}

.tag input[type="checkbox"] {
  display: none;
}

.tag:has(input:checked) {
  background: #2c2c2c;
  color: #fafaf8;
  border-color: #2c2c2c;
}

/* Button */
button[type="submit"] {
  background: #2c2c2c;
  color: #fafaf8;
  border: none;
  padding: 0.6rem 1.5rem;
  font-family: Georgia, serif;
  font-size: 0.85rem;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.2s;
}

button[type="submit"]:hover {
  background: #444;
}

button[type="submit"]:disabled {
  background: #aaa;
  cursor: not-allowed;
}

.form-message {
  margin-top: 0.8rem;
  font-size: 0.85rem;
  min-height: 1.2rem;
}

.form-message.success { color: #5a7a5a; }
.form-message.error { color: #8a4a4a; }

/* Filters */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1.5rem;
}

.filter-btn {
  font-family: Georgia, serif;
  font-size: 0.75rem;
  padding: 0.25rem 0.65rem;
  border: 1px solid #d5d2cc;
  border-radius: 20px;
  background: transparent;
  cursor: pointer;
  color: #5a5a55;
  transition: all 0.2s;
}

.filter-btn:hover {
  border-color: #8a8a80;
}

.filter-btn.active {
  background: #2c2c2c;
  color: #fafaf8;
  border-color: #2c2c2c;
}

/* Feed */
.browse-section {
  margin-bottom: 3rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid #e0ddd8;
}

.feed {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.plaque {
  padding: 1.2rem;
  background: #fff;
  border: 1px solid #e8e6e1;
  border-radius: 6px;
}

.plaque-agent {
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 0.1rem;
}

.plaque-type {
  font-size: 0.75rem;
  color: #999;
  margin-bottom: 0.6rem;
}

.plaque-note {
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 0.6rem;
}

.plaque-meta {
  font-size: 0.72rem;
  color: #bbb;
  display: flex;
  gap: 0.8rem;
}

.plaque-tag {
  font-size: 0.7rem;
  padding: 0.15rem 0.5rem;
  background: #f0efec;
  border-radius: 10px;
  color: #7a7a72;
}

.empty-state {
  text-align: center;
  color: #aaa;
  font-style: italic;
  padding: 2rem;
}

/* Agents */
.agents-list {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.agent-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.8rem 1rem;
  background: #fff;
  border: 1px solid #e8e6e1;
  border-radius: 6px;
}

.agent-name {
  font-size: 0.9rem;
}

.agent-count {
  font-size: 0.8rem;
  color: #999;
}

/* Footer */
footer {
  margin-top: 3rem;
  text-align: center;
  color: #bbb;
  font-size: 0.8rem;
  font-style: italic;
}

/* Mobile */
@media (max-width: 480px) {
  body { padding: 1.5rem 1rem; }
  h1 { font-size: 1.5rem; }
}