:root {
  font-family: Inter,ui-sans-serif,system-ui,-apple-system,sans-serif;
  color: #202a39;
  background: #f5f6f8;
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
header {
  height: 76px;
  background: #fff;
  border-bottom: 1px solid #e1e4e9;
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 0 5vw;
  color: #657082;
  font-size: 14px;
}
.brand {
  font-size: 26px;
  font-weight: 750;
  letter-spacing: -1px;
  color: #202a39;
  text-decoration: none;
}
.brand span {
  color: #ad721f;
}
header button {
  margin-left: auto;
}
main {
  max-width: 1440px;
  margin: auto;
  padding: 44px 5vw 20px;
}
h1 {
  font-size: 34px;
  letter-spacing: -1px;
  line-height: 1.15;
  margin: 6px 0 14px;
}
h2 {
  font-size: 17px;
  margin: 0 0 18px;
}
.eyebrow {
  font-size: 11px;
  letter-spacing: 2px;
  font-weight: 750;
  color: #98701e;
  margin: 0 0 10px;
}
.muted,
.hint {
  color: #657082;
  font-size: 14px;
  line-height: 1.6;
}
.hint {
  font-size: 12px;
}
.heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 32px;
}
.layout {
  display: grid;
  grid-template-columns: 290px 1fr;
  gap: 26px;
}
aside {
  background: white;
  border: 1px solid #e1e4e9;
  border-radius: 12px;
  padding: 24px;
  height: fit-content;
}
.activity {
  min-width: 0;
}
.selection {
  display: flex;
  justify-content: space-between;
  gap: 16px;
}
.selection .muted {
  font-size: 12px;
}
button {
  font: inherit;
  font-size: 13px;
  cursor: pointer;
  color: inherit;
  background: white;
  border: 1px solid #d8dce3;
  border-radius: 7px;
  padding: 10px 14px;
}
button:hover {
  background: #f0f2f5;
}
button:disabled {
  cursor: wait;
  opacity: .6;
}
button.primary {
  background: #202a39;
  color: #fff;
  border-color: #202a39;
}
.wide {
  width: 100%;
  margin: 16px 0;
}
label {
  display: block;
  font-size: 12px;
  margin-bottom: 8px;
}
input {
  font: inherit;
  width: 100%;
  min-width: 0;
  padding: 12px;
  border: 1px solid #cfd5df;
  border-radius: 6px;
  background: #fff;
}
textarea,
select {
  font: inherit;
  width: 100%;
  padding: 12px;
  border: 1px solid #cfd5df;
  border-radius: 6px;
  background: #fff;
  margin-bottom: 14px;
}
.settings,
.composer {
  padding: 24px;
  background: #fff;
  border: 1px solid #e1e4e9;
  border-radius: 12px;
  margin-bottom: 24px;
}
.settings {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 24px;
}
.settings input {
  margin-bottom: 10px;
}
.settings > p {
  grid-column: 1 / -1;
}
.form-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 24px;
}
fieldset {
  border: 1px solid #e1e4e9;
  border-radius: 6px;
  margin: 14px 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
}
legend {
  font-size: 12px;
  color: #657082;
}
.check {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
}
.check input {
  width: auto;
}
.review {
  border-top: 1px solid #e1e4e9;
  padding-top: 18px;
  margin-top: 18px;
}
.review input {
  margin-bottom: 12px;
}
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.badge.awaiting_review {
  background: #fdf1d6;
  color: #856318;
}
input:focus,
button:focus-visible {
  outline: 2px solid #aa8027;
  outline-offset: 2px;
}
.search {
  display: flex;
  gap: 6px;
}
.search button {
  padding: 8px 12px;
}
.tabs {
  display: flex;
  gap: 5px;
  overflow: auto;
  border-bottom: 1px solid #d8dce3;
  padding-bottom: 12px;
  margin-bottom: 15px;
}
.tabs button {
  white-space: nowrap;
  border: 0;
  background: transparent;
  color: #657082;
}
.tabs .active {
  background: #202a39;
  color: white;
}
.message {
  background: white;
  border: 1px solid #e1e4e9;
  border-radius: 12px;
  padding: 24px;
  margin: 12px 0;
}
.message-top {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}
.badge {
  font-size: 11px;
  font-weight: 650;
  letter-spacing: .2px;
  border-radius: 20px;
  padding: 6px 10px;
  background: #eaf0fd;
  color: #3d5d99;
}
.badge.sent {
  background: #e6f2eb;
  color: #367147;
}
.badge.failed,
.badge.unknown {
  background: #fff1da;
  color: #8c6021;
}
.badge.skipped,
.badge.expired {
  background: #eff0f3;
  color: #69717e;
}
.message h3 {
  font-size: 16px;
  margin: 0 0 9px;
}
.message .body {
  font-size: 15px;
  line-height: 1.65;
  margin: 0;
  white-space: pre-wrap;
}
.meta {
  display: flex;
  gap: 8px 22px;
  flex-wrap: wrap;
  font-size: 12px;
  color: #657082;
  border-top: 1px solid #edf0f4;
  margin-top: 20px;
  padding-top: 15px;
}
.user-id {
  font-family: ui-monospace,monospace;
  font-size: 11px;
  color: #7a8595;
  overflow-wrap: anywhere;
  margin-top: 15px;
}
.user {
  display: block;
  text-align: left;
  width: 100%;
  margin-top: 8px;
  padding: 12px;
}
.user strong,
.user small {
  display: block;
  overflow-wrap: anywhere;
}
.user small {
  color: #657082;
  margin-top: 4px;
}
.user.selected {
  border-color: #aa8027;
  background: #fdf7ed;
}
.empty {
  padding: 60px 20px;
  text-align: center;
  border: 1px dashed #d1d6df;
  border-radius: 12px;
  color: #657082;
}
.empty strong {
  display: block;
  font-size: 18px;
  color: #354052;
  margin-bottom: 10px;
}
.login {
  max-width: 460px;
  margin: 50px auto 80px;
}
.login h1 {
  font-size: 44px;
}
.login form {
  margin-top: 32px;
}
.login button {
  margin-top: 14px;
  width: 100%;
}
footer {
  font-size: 11px;
  color: #8a929e;
  margin-top: 40px;
  padding-top: 22px;
  border-top: 1px solid #dfe3e9;
}
#error {
  color: #9c3f24;
  background: #fff0e9;
  padding: 14px;
  border-radius: 8px;
}
[hidden] {
  display: none!important;
}
@media (max-width:850px) {
  .settings,
  .form-grid {
    grid-template-columns: 1fr;
  }
  main {
    padding-top: 28px;
  }
  .layout {
    grid-template-columns: 1fr;
  }
  .heading {
    align-items: flex-start;
    gap: 12px;
  }
  h1 {
    font-size: 28px;
  }
  .selection {
    flex-direction: column;
    gap: 0;
  }
  .message {
    padding: 18px;
  }
  header {
    gap: 14px;
  }
  .login h1 {
    font-size: 38px;
  }
}
