* { box-sizing: border-box; }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  margin: 0;
  background: #0f1115;
  color: #e6e6e6;
}
header {
  padding: 1rem 2rem;
  border-bottom: 1px solid #2a2d33;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #14171d;
}
main {
  max-width: 1100px;
  margin: 2rem auto;
  padding: 0 1.5rem;
  display: grid;
  gap: 2rem;
}
.card {
  background: #14171d;
  border: 1px solid #2a2d33;
  border-radius: 10px;
  padding: 1.5rem;
}
.muted { color: #8b93a1; font-size: 0.9em; }
h1, h2 { margin-top: 0; }
.tabs { display: flex; gap: 0.5rem; margin-bottom: 1rem; }
.tab {
  padding: 0.4rem 1rem;
  background: #1d2128;
  border: 1px solid #2a2d33;
  color: #c5c8cd;
  border-radius: 6px;
  cursor: pointer;
}
.tab.active { background: #2a5fa6; color: white; border-color: #2a5fa6; }
.mform { display: grid; gap: 0.75rem; }
.mform label { display: grid; gap: 0.25rem; font-size: 0.9em; color: #b0b5bd; }
textarea, input[type=datetime-local] {
  background: #0f1115;
  border: 1px solid #2a2d33;
  color: #e6e6e6;
  padding: 0.5rem;
  border-radius: 6px;
  font: inherit;
}
button {
  background: #2a5fa6;
  color: white;
  border: 0;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  cursor: pointer;
}
button.link {
  background: transparent;
  color: #8bb4ef;
  padding: 0;
  text-decoration: underline;
}
.messages {
  width: 100%;
  border-collapse: collapse;
  background: #14171d;
  border: 1px solid #2a2d33;
  border-radius: 10px;
  overflow: hidden;
}
.messages th, .messages td {
  padding: 0.5rem 0.75rem;
  border-bottom: 1px solid #2a2d33;
  text-align: left;
  font-size: 0.9em;
  vertical-align: top;
}
.messages th { background: #1d2128; color: #c5c8cd; }
.messages td.text { max-width: 260px; word-break: break-word; white-space: pre-wrap; }
.messages td.err { color: #e77f7f; max-width: 240px; word-break: break-word; }
.status-sent td:first-child { color: #7fc37b; }
.status-failed td:first-child { color: #e77f7f; }
.status-canceled td:first-child { color: #8b93a1; }
.status-scheduled td:first-child { color: #ddb958; }
.status-sending td:first-child { color: #8bb4ef; }
.login { display: flex; align-items: center; justify-content: center; min-height: 100vh; }
.login .card { text-align: center; max-width: 420px; }
.login .btn {
  display: inline-block; margin-top: 1rem; padding: 0.7rem 1.5rem;
  background: #2a5fa6; color: white; text-decoration: none; border-radius: 6px;
}
