* {
  box-sizing: border-box;
}
body {
  margin: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background: #f5f5f5;
  color: #222;
}
.container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 16px;
}
h1, h2 {
  margin: 0 0 8px 0;
}
.topbar {
  background: #222;
  color: #fff;
  padding: 8px 0;
}
.topbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.topbar h1 {
  font-size: 1.2rem;
  margin: 0;
}
.topbar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.topbar a, .topbar button {
  color: #fff;
  background: transparent;
  border: 1px solid #fff;
  padding: 4px 8px;
  border-radius: 4px;
  text-decoration: none;
  cursor: pointer;
}
.card {
  background: #fff;
  border-radius: 6px;
  padding: 16px;
  margin: 16px 0;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}
form label {
  display: block;
  margin: 8px 0;
}
input[type="text"],
input[type="email"],
input[type="password"],
textarea,
select {
  width: 100%;
  padding: 6px 8px;
  border-radius: 4px;
  border: 1px solid #ccc;
  font-size: 14px;
}
button {
  padding: 6px 12px;
  border-radius: 4px;
  border: none;
  background: #0070f3;
  color: #fff;
  cursor: pointer;
  font-size: 14px;
}
button:hover {
  background: #0057c7;
}
.error {
  color: #b00020;
  font-size: 13px;
}
.filters {
  display: flex;
  gap: 8px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}
.filters input, .filters select {
  flex: 1 1 200px;
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
th, td {
  text-align: left;
  padding: 6px;
  border-bottom: 1px solid #eee;
}
th {
  background: #fafafa;
}
.messages {
  max-height: 400px;
  overflow-y: auto;
  border: 1px solid #eee;
  padding: 8px;
  margin-bottom: 8px;
  border-radius: 4px;
}
.message {
  margin: 6px 0;
  padding: 6px;
  border-radius: 4px;
  background: #f9f9f9;
}
.message .meta {
  font-size: 12px;
  color: #666;
  margin-bottom: 2px;
}
.message-form {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.message-form textarea {
  resize: vertical;
}