* { box-sizing: border-box; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  margin: 0;
  color: #1a1a1a;
  background: #fafafa;
}
.content {
  max-width: 960px;
  margin: 0 auto;
  padding: 24px;
}
.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 24px;
  background: #fff;
  border-bottom: 1px solid #ddd;
}
.topbar nav a { margin-right: 16px; }
a { color: #2563eb; text-decoration: none; }
a:hover { text-decoration: underline; }

.card {
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 16px;
  background: #fff;
}

input, textarea, select {
  display: block;
  width: 100%;
  padding: 8px;
  margin-bottom: 8px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-family: inherit;
  font-size: 14px;
}

button {
  background: #2563eb;
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 8px 14px;
  cursor: pointer;
  font-size: 14px;
}
button:hover { background: #1d4ed8; }
button.danger { background: #dc2626; }
button.danger:hover { background: #b91c1c; }
button.small { padding: 2px 8px; font-size: 12px; }

.error { color: #dc2626; margin: 8px 0; }
.ok { color: #16a34a; }
.muted { color: #888; }

.badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 12px;
  color: #fff;
}
.badge.ok { background: #16a34a; }
.badge.danger { background: #dc2626; }
.badge.muted { background: #999; }

table { width: 100%; border-collapse: collapse; margin-bottom: 12px; }
td { padding: 6px 4px; border-bottom: 1px solid #eee; }

.emblem-list { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 8px; }
.emblem img { width: 96px; height: 96px; object-fit: cover; border-radius: 6px; border: 1px solid #ddd; }
.emblem { position: relative; text-align: center; }

.post-card .post-text { white-space: pre-wrap; margin-bottom: 8px; }
.post-card .actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.htmx-indicator { display: none; }
.htmx-request .htmx-indicator { display: inline; }

.login-box {
  max-width: 320px;
  margin: 80px auto;
  padding: 24px;
  border: 1px solid #ddd;
  border-radius: 8px;
  background: #fff;
  text-align: center;
}
