:root {
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    "Segoe UI",
    sans-serif;
  color: #192439;
  background: #f5f7fb;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
header {
  background: #fff;
  border-bottom: 1px solid #e7ecf3;
}
.shell {
  max-width: 1200px;
  margin: auto;
  padding: 0 24px;
}
.nav {
  display: flex;
  align-items: center;
  gap: 36px;
  min-height: 75px;
}
.brand {
  font-size: 24px;
  font-weight: 800;
  color: #2459d3;
  text-decoration: none;
  letter-spacing: -1px;
}
.brand small {
  display: block;
  font-size: 9px;
  font-weight: 750;
  letter-spacing: 2px;
  color: #8290a7;
}
.nav nav {
  display: flex;
  gap: 25px;
  margin-left: auto;
}
.nav a:not(.brand) {
  color: #53617a;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
}
.nav form {
  margin-left: 12px;
}
.textbutton {
  border: 0;
  background: none;
  color: #62718b;
  cursor: pointer;
}
main {
  padding-top: 42px !important;
  padding-bottom: 55px !important;
  min-height: calc(100vh - 155px);
}
h1 {
  font-size: 34px;
  letter-spacing: -1.2px;
  margin: 7px 0 9px;
}
h2 {
  font-size: 18px;
  letter-spacing: -0.3px;
  margin: 0 0 20px;
}
p {
  color: #77849a;
  font-size: 14px;
  line-height: 1.7;
}
.eyebrow {
  color: #376fe3;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 2px;
}
.topline {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  margin-bottom: 28px;
}
.topline p {
  margin: 0;
}
.btn {
  display: inline-block;
  background: #2665e8;
  border: 1px solid #2665e8;
  border-radius: 10px;
  color: #fff;
  padding: 12px 18px;
  font: 600 13px inherit;
  text-decoration: none;
  cursor: pointer;
  font-weight: 700;
}
.btn.secondary {
  background: #fff;
  border-color: #d8e1ee;
  color: #385274;
}
.card,
.stat {
  background: white;
  border: 1px solid #e6ebf2;
  box-shadow: 0 4px 20px #1a3e7010;
  border-radius: 15px;
  padding: 26px;
  margin-bottom: 22px;
}
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 17px;
}
.stat {
  display: flex;
  flex-direction: column;
  gap: 13px;
}
.stat span {
  font-size: 13px;
  color: #8290a4;
  font-weight: 600;
}
.stat strong {
  font-size: 36px;
  letter-spacing: -1px;
}
.metricline {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
  color: #65738a;
  font-size: 14px;
}
.metricline b {
  color: #23324d;
  margin-left: 7px;
}
.dot {
  width: 8px;
  height: 8px;
  display: inline-block;
  border-radius: 50%;
  margin-right: 6px;
}
.green {
  background: #1da76b;
}
.red {
  background: #e65761;
}
.yellow {
  background: #ecad28;
}
.sectionhead {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.filters,
.actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.filters select {
  min-width: 145px;
  margin: 0;
}
.overflow {
  overflow: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  white-space: nowrap;
  font-size: 13px;
}
th {
  color: #8290a4;
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  padding: 15px;
  border-bottom: 1px solid #ecf0f5;
}
td {
  padding: 17px 15px;
  border-bottom: 1px solid #f0f3f7;
  vertical-align: middle;
}
td small,
.channelrow small {
  display: block;
  font-size: 11px;
  color: #8c97a8;
  margin-top: 5px;
  white-space: normal;
  max-width: 260px;
}
.tag {
  display: inline-block;
  text-transform: capitalize;
  background: #eef2f7;
  color: #6c788d;
  border-radius: 100px;
  padding: 5px 9px;
  font-size: 11px;
  font-weight: 700;
}
.tag.approved,
.tag.sent {
  background: #e3f8ef;
  color: #098457;
}
.tag.declined,
.tag.failed {
  background: #ffebec;
  color: #b82f40;
}
.tag.pending,
.tag.expired,
.tag.sending {
  background: #fff4dc;
  color: #a26c0b;
}
.smallbtn {
  border: 0;
  background: #edf5ff;
  border-radius: 7px;
  padding: 8px 11px;
  font-size: 11px;
  font-weight: 750;
  cursor: pointer;
}
.smallbtn.ok {
  color: #1363c9;
}
.smallbtn.warn {
  color: #cc4c56;
  background: #fff0f1;
}
.empty {
  text-align: center;
  padding: 38px;
  color: #8090a5;
}
.paging {
  display: flex;
  gap: 20px;
  justify-content: flex-end;
  align-items: center;
  margin-top: 18px;
  font-size: 13px;
}
.paging a,
.back {
  color: #326bda;
  text-decoration: none;
}
.twocol {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}
.twocol .card {
  height: fit-content;
}
.channelrow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 17px 0;
  border-bottom: 1px solid #edf1f6;
  color: #263653;
  text-decoration: none;
  font-size: 14px;
}
label {
  font-size: 13px;
  font-weight: 700;
  color: #40506c;
  display: block;
  margin-bottom: 17px;
}
input:not([type="checkbox"]),
textarea,
select {
  display: block;
  width: 100%;
  border: 1px solid #d9e2ee;
  background: #fff;
  border-radius: 9px;
  padding: 12px 13px;
  font: inherit;
  font-size: 13px;
  color: #263753;
  margin-top: 8px;
  outline-color: #3f79ed;
}
textarea {
  resize: vertical;
  line-height: 1.6;
}
.switchline {
  display: flex;
  gap: 23px;
  flex-wrap: wrap;
  background: #f8faff;
  border-radius: 10px;
  padding: 16px;
  margin: 12px 0 25px;
}
.switchline label {
  margin: 0;
  display: flex;
  gap: 9px;
  align-items: center;
}
.editor {
  max-width: 960px;
}
.login {
  max-width: 460px;
  margin: 45px auto;
  padding: 42px;
}
.login .btn {
  width: 100%;
}
.error {
  background: #fff0f0;
  color: #b52c38;
  padding: 12px;
  border-radius: 8px;
  margin: 18px 0;
}
.notice {
  background: #eaf6ed;
  color: #176d43;
  padding: 13px 17px;
  border-radius: 9px;
  margin-bottom: 20px;
  font-size: 13px;
}
footer {
  border-top: 1px solid #e5eaf1;
  padding-top: 22px !important;
  padding-bottom: 25px !important;
  font-size: 12px;
  color: #9aa6b8;
}
code {
  background: #edf2f8;
  color: #305c9d;
  border-radius: 4px;
  padding: 2px 4px;
}
@media (max-width: 800px) {
  .stats,
  .twocol {
    grid-template-columns: 1fr 1fr;
  }
  .topline,
  .sectionhead {
    align-items: flex-start;
    flex-direction: column;
  }
  .nav {
    gap: 12px;
  }
  .nav nav {
    gap: 10px;
  }
}
@media (max-width: 580px) {
  .shell {
    padding: 0 15px;
  }
  .nav {
    flex-wrap: wrap;
    padding-top: 12px;
    padding-bottom: 12px;
  }
  .nav nav {
    order: 3;
    width: 100%;
    justify-content: space-between;
  }
  .stats,
  .twocol {
    grid-template-columns: 1fr;
  }
  .filters {
    flex-wrap: wrap;
  }
  .filters select {
    min-width: 130px;
  }
  h1 {
    font-size: 27px;
  }
}

.bulk-message-panel {
    padding: 24px;
    margin: 24px 0;
    border: 1px solid #dbe5f2;
    border-radius: 14px;
    background: #f8fbff;
}

.bulk-message-panel h3 {
    margin: 0 0 12px;
    font-size: 20px;
}

.bulk-message-panel p {
    color: #71809a;
    margin-bottom: 18px;
}

.bulk-message-panel textarea {
    width: 100%;
    resize: vertical;
    margin-top: 8px;
    margin-bottom: 16px;
}

.bulk-message-panel .btn {
    margin-top: 18px;
}


.campaign-report {
    margin: 28px 0;
    padding: 24px;
    border: 1px solid #dbe5f2;
    border-radius: 14px;
    background: #fff;
}

.campaign-report h3 {
    margin: 0 0 20px;
    font-size: 20px;
}

.campaign-report table {
    width: 100%;
}

.recipient-preview {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 18px 20px;
    margin: 20px 0 4px;
    background: #eef5ff;
    border: 1px solid #d5e4ff;
    border-radius: 12px;
}

.recipient-preview span {
    color: #536780;
    font-weight: 600;
}

.recipient-preview strong {
    color: #2563eb;
    font-size: 30px;
    font-weight: 700;
}

.recipient-preview small {
    color: #71809a;
}


.report-success {
    color: #059669;
    font-weight: 600;
}

.report-processing {
    color: #d97706;
    font-weight: 600;
}
