* { box-sizing: border-box; }
body {
  font-family: -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  margin: 0;
  background: #f4f5f7;
  color: #1c1e21;
}
.topbar {
  background: #1c1e21;
  color: #fff;
  padding: 12px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.topbar a { color: #fff; text-decoration: none; margin-left: 16px; font-size: 14px; }
.container { max-width: 1100px; margin: 0 auto; padding: 20px; }
.card { background: #fff; border-radius: 8px; padding: 20px; box-shadow: 0 1px 2px rgba(0,0,0,0.08); margin-bottom: 16px; }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 10px 8px; border-bottom: 1px solid #eee; font-size: 14px; }
th { color: #65676b; font-weight: 600; }
.badge { background: #1877f2; color: #fff; border-radius: 10px; padding: 2px 8px; font-size: 12px; }
.badge-ig { background: #d62976; }
.unread-row { font-weight: 700; background: #f0f6ff; }
input[type=text], input[type=password], textarea {
  width: 100%; padding: 10px; border: 1px solid #ccd0d5; border-radius: 6px; font-size: 14px; margin-bottom: 12px;
}
button, .btn {
  background: #1877f2; color: #fff; border: none; padding: 10px 18px; border-radius: 6px;
  font-size: 14px; cursor: pointer; text-decoration: none; display: inline-block;
}
button:hover, .btn:hover { background: #145dc0; }
.msg-list { display: flex; flex-direction: column; gap: 10px; margin-bottom: 20px; }
.msg { max-width: 70%; padding: 10px 14px; border-radius: 14px; font-size: 14px; }
.msg-customer { background: #e4e6eb; align-self: flex-start; }
.msg-page { background: #1877f2; color: #fff; align-self: flex-end; }
.msg-time { font-size: 11px; color: #999; margin-top: 2px; }
.error { color: #c0392b; margin-bottom: 12px; }
.success { color: #2e7d32; margin-bottom: 12px; }
a.plain { color: #1877f2; text-decoration: none; }
