:root {
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  color: #16282b;
  background: #f4f7f6;
  font-size: 14px;
  line-height: 1.5;
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select,
textarea {
  font: inherit;
}
button {
  border: 1px solid #d5dfdd;
  background: #fff;
  border-radius: 9px;
  padding: 10px 15px;
  cursor: pointer;
  color: #233c3e;
  font-weight: 600;
}
button:hover {
  background: #edf5f2;
  border-color: #91b6ab;
}
button:disabled {
  opacity: 0.5;
  cursor: wait;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid #2e9e83;
  outline-offset: 3px;
}
.primary {
  background: #126b57;
  color: #fff;
  border-color: #126b57;
}
.primary:hover {
  background: #0c5645;
  color: #fff;
}
.ghost {
  background: transparent;
  border-color: #355151;
  color: #e8f4ef;
}
input,
select,
textarea {
  display: block;
  width: 100%;
  border: 1px solid #cad8d3;
  background: #fff;
  border-radius: 7px;
  padding: 10px 12px;
  margin: 6px 0 17px;
  color: #193b35;
}
label {
  display: block;
  font-weight: 600;
}
textarea {
  resize: vertical;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1 {
  font-size: 32px;
  letter-spacing: -1.1px;
  line-height: 1.2;
  margin-bottom: 12px;
  font-weight: 650;
}
h2 {
  font-size: 20px;
  letter-spacing: -0.4px;
  margin-bottom: 6px;
}
h3 {
  font-size: 17px;
  margin-bottom: 8px;
}
p {
  color: #667d78;
}
small {
  display: block;
  color: #7c9089;
}
.eyebrow {
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 2px;
  color: #6d9284;
  margin-bottom: 14px;
}
.brand-mark {
  font-weight: 850;
  font-size: 48px;
  letter-spacing: -5px;
  color: #0e5146;
}
.brand-mark span {
  color: #50b99a;
}
.brand-mark.small {
  font-size: 36px;
  color: #fff;
  letter-spacing: -3px;
}
.login-wrap {
  min-height: 100vh;
  display: grid;
  place-items: center;
  background:
    radial-gradient(ellipse at 20% 20%, #daeae2, transparent 60%), #f3f7f3;
}
.login-card {
  width: min(440px, calc(100% - 40px));
  padding: 42px;
  background: #fff;
  border: 1px solid #dce7df;
  border-radius: 20px;
  box-shadow: 0 20px 60px #193e3010;
}
.login-card .primary {
  width: 100%;
}
#login-error,
.form-error {
  color: #9b3f37;
  margin: 16px 0 0;
}
aside {
  width: 236px;
  background: #143632;
  color: #eef6f2;
  padding: 34px 24px;
  position: fixed;
  inset: 0 auto 0 0;
  display: flex;
  flex-direction: column;
}
.brand {
  display: flex;
  align-items: center;
  gap: 16px;
  font-weight: 650;
  letter-spacing: -0.2px;
}
.brand small {
  font-size: 11px;
  color: #a1bab1;
  letter-spacing: 0.2px;
  font-weight: 400;
  margin-top: 2px;
}
nav {
  display: grid;
  gap: 8px;
  margin-top: 54px;
}
nav button {
  text-align: left;
  background: transparent;
  color: #b7cec5;
  border: 0;
  padding: 13px 16px;
}
nav button.active,
nav button:hover {
  color: #fff;
  background: #285249;
}
.sidebar-note {
  margin-top: auto;
  font-size: 12px;
  color: #b8d5c7;
  padding: 28px 0 22px;
}
.sidebar-note p {
  color: #86aa9b;
  font-size: 11px;
  margin-top: 12px;
}
.status-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #66c8a3;
  margin-right: 6px;
}
main {
  margin-left: 236px;
  padding: 40px 44px 64px;
  max-width: 1800px;
}
.banner {
  padding: 10px 14px;
  border-radius: 8px;
  background: #fff1c9;
  color: #805b15;
  margin-bottom: 30px;
  font-size: 12px;
}
header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin: 8px 0 32px;
}
header p:last-child {
  margin-bottom: 0;
}
.header-actions {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}
.metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-bottom: 38px;
}
.metrics article {
  background: #fff;
  padding: 22px 24px;
  border: 1px solid #e0e8e2;
  border-radius: 12px;
}
.metrics span {
  color: #617c72;
  font-size: 12px;
  font-weight: 550;
}
.metrics strong {
  display: block;
  font-size: 34px;
  font-weight: 600;
  line-height: 1.5;
  margin: 6px 0 4px;
  letter-spacing: -1px;
}
.metrics small {
  font-size: 11px;
}
.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  margin-bottom: 18px;
}
.section-heading p {
  margin: 0;
  font-size: 12px;
}
.section-heading .filter {
  font-size: 10px;
  color: #788d84;
  min-width: 180px;
}
.filter select {
  margin: 4px 0 0;
  font-size: 12px;
}
.table-card {
  background: #fff;
  border: 1px solid #dfe7e2;
  border-radius: 12px;
  overflow-x: auto;
}
table {
  border-collapse: collapse;
  width: 100%;
  text-align: left;
  white-space: nowrap;
}
th {
  font-size: 10px;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: #82958d;
  padding: 17px 20px;
  border-bottom: 1px solid #e7ece8;
  font-weight: 600;
  background: #fbfcfa;
}
td {
  padding: 18px 20px;
  border-bottom: 1px solid #edf1ed;
  font-size: 12px;
}
tr:last-child td {
  border-bottom: 0;
}
td small {
  font-size: 10px;
  margin-top: 4px;
}
td button {
  font-size: 11px;
  padding: 6px 10px;
  margin: 2px 4px 2px 0;
}
.file-title {
  border: 0;
  padding: 0;
  background: none;
  font-weight: 600;
  font-size: 12px;
  text-align: left;
  color: #234a3e;
  max-width: 250px;
  overflow: hidden;
  text-overflow: ellipsis;
  vertical-align: middle;
}
.badge {
  display: inline-block;
  padding: 5px 9px;
  border-radius: 6px;
  font-size: 10px;
  font-weight: 600;
  background: #eff3f0;
  color: #647d71;
}
.badge.review,
.badge.delivery_unknown {
  background: #fff2d8;
  color: #8c6216;
}
.badge.submitted,
.badge.business {
  background: #e4f4eb;
  color: #277451;
}
.badge.queued,
.badge.sending {
  background: #e7effc;
  color: #466b9e;
}
.badge.failed,
.badge.quarantined {
  background: #fcebe8;
  color: #a55145;
}
.badge.private {
  background: #efedf6;
  color: #79638c;
}
.footnote {
  font-size: 11px;
  margin: 18px 0;
}
.empty {
  padding: 35px;
  font-size: 13px;
  text-align: center;
}
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(310px, 1fr));
  gap: 18px;
}
.connection-card {
  padding: 25px;
  background: #fff;
  border: 1px solid #dfe7e2;
  border-radius: 12px;
}
.connection-card p {
  font-size: 12px;
  overflow-wrap: anywhere;
}
.connection-card .actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 20px;
}
.connection-card button {
  font-size: 11px;
  padding: 7px 10px;
}
.space-top {
  margin-top: 38px;
}
.notice {
  padding: 13px 17px;
  border-radius: 8px;
  background: #e0f0e7;
  color: #285b44;
  margin-bottom: 24px;
}
.notice.error {
  background: #fcebe8;
  color: #9c4e43;
}
.audit-list {
  border: 1px solid #e0e8e2;
  border-radius: 12px;
  overflow: hidden;
  background: white;
}
.audit-item {
  padding: 16px 22px;
  border-bottom: 1px solid #edf1ed;
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 20px;
  font-size: 12px;
}
.audit-item:last-child {
  border: 0;
}
.audit-item code {
  font-size: 10px;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
  color: #6e8377;
}
.audit-item time {
  font-size: 11px;
  color: #8b9d93;
}
.audit-item strong {
  display: block;
  margin-bottom: 4px;
}
dialog {
  border: 1px solid #ceddd2;
  border-radius: 16px;
  max-width: 580px;
  width: calc(100% - 40px);
  padding: 28px;
  box-shadow: 0 20px 80px #12372930;
  max-height: 90vh;
  overflow-y: auto;
}
dialog::backdrop {
  background: #153a3255;
  backdrop-filter: blur(3px);
}
.dialog-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  gap: 20px;
}
.dialog-heading h2 {
  margin: 0;
}
.dialog-heading button {
  padding: 3px 10px;
  font-size: 20px;
}
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.help {
  font-size: 11px;
  line-height: 1.6;
  margin-top: -5px;
}
.check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 16px;
  font-size: 12px;
}
.check input {
  width: auto;
  margin: 4px 0;
}
.wide-dialog {
  max-width: 820px;
}
#document-detail h3 {
  margin: 24px 0 10px;
}
#document-detail p {
  font-size: 12px;
  overflow-wrap: anywhere;
}
#document-detail code {
  font-size: 11px;
  overflow-wrap: anywhere;
}
#document-detail a {
  color: #14664a;
}
.detail-line {
  white-space: pre-line;
  padding: 12px 0;
  border-bottom: 1px solid #e8eee8;
  font-size: 12px;
  overflow-wrap: anywhere;
}
[hidden] {
  display: none !important;
}
@media (max-width: 1200px) {
  main {
    padding: 30px 28px;
  }
  header {
    align-items: flex-start;
    flex-direction: column;
  }
  .metrics {
    gap: 10px;
  }
  .metrics article {
    padding: 18px;
  }
  aside {
    width: 210px;
  }
  main {
    margin-left: 210px;
  }
}
@media (max-width: 800px) {
  aside {
    position: relative;
    width: 100%;
    padding: 18px 22px;
  }
  .brand small,
  .sidebar-note,
  #logout {
    display: none;
  }
  nav {
    display: flex;
    margin-top: 16px;
    gap: 6px;
  }
  nav button {
    padding: 8px 12px;
  }
  main {
    margin: 0;
    padding: 24px 18px;
  }
  .metrics {
    grid-template-columns: 1fr 1fr;
  }
  .section-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
  }
  .two-col {
    grid-template-columns: 1fr;
    gap: 0;
  }
  h1 {
    font-size: 28px;
  }
  .audit-item {
    grid-template-columns: 1fr;
    gap: 5px;
  }
  .cards {
    grid-template-columns: 1fr;
  }
}
