:root {
  color-scheme: light;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #14213d;
  background: #f4f7fb;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
}

.app-shell {
  width: min(1180px, calc(100vw - 32px));
  margin: 0 auto;
  padding: 28px 0 40px;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 20px;
  padding-bottom: 18px;
  border-bottom: 1px solid #d8e0ec;
}

.eyebrow {
  margin: 0 0 4px;
  font-size: 12px;
  text-transform: uppercase;
  color: #5c6f8e;
  font-weight: 700;
}

h1 {
  margin: 0;
  font-size: 30px;
  line-height: 1.15;
  letter-spacing: 0;
}

.status-strip {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.status-strip span,
.badge {
  border: 1px solid #cfd9e8;
  background: #ffffff;
  border-radius: 999px;
  padding: 7px 10px;
  font-size: 13px;
  font-weight: 650;
}

.toolbar {
  display: flex;
  gap: 10px;
  margin: 18px 0;
}

button {
  border: 0;
  background: #184e77;
  color: white;
  border-radius: 7px;
  padding: 10px 14px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

button.secondary {
  background: #dce6f2;
  color: #17324d;
}

.summary-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.summary-grid div {
  background: white;
  border: 1px solid #d8e0ec;
  border-radius: 8px;
  padding: 16px;
}

.summary-grid span {
  display: block;
  font-size: 28px;
  font-weight: 800;
}

.summary-grid p {
  margin: 3px 0 0;
  color: #5c6f8e;
}

.table-wrap {
  background: white;
  border: 1px solid #d8e0ec;
  border-radius: 8px;
  overflow: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 820px;
}

th,
td {
  padding: 13px 14px;
  border-bottom: 1px solid #edf1f6;
  text-align: left;
  vertical-align: top;
  font-size: 14px;
}

th {
  background: #f9fbfe;
  color: #425672;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0;
}

.empty {
  color: #6e7f98;
  text-align: center;
  padding: 30px;
}

.sent {
  color: #1b7f4c;
}

.failed {
  color: #b42318;
}

.dry_run,
.not_matched,
.ignored {
  color: #9a6700;
}

@media (max-width: 760px) {
  .topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .status-strip {
    justify-content: flex-start;
  }

  .summary-grid {
    grid-template-columns: 1fr;
  }

  .toolbar {
    flex-wrap: wrap;
  }
}
