:root {
  --ink: #173b2d;
  --muted: #75827b;
  --border: #e3e9e4;
  --green: #1d5a3f;
  --bg: #f7f9f6;
  --wash: #edf3eb;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font:
    14px/1.5 -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
}
button,
input,
textarea,
select {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  outline-offset: 4px;
}
button {
  cursor: pointer;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 17px;
  background: white;
  color: var(--ink);
  font-weight: 600;
  transition: background 0.15s;
}
button:hover {
  background: #edf3eb;
}
button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
a {
  color: var(--green);
}
[hidden] {
  display: none !important;
}
.muted,
.hint {
  color: var(--muted);
}
.eyebrow {
  font-size: 10px;
  letter-spacing: 1.6px;
  font-weight: 700;
  color: var(--muted);
}
h1 {
  font-size: 36px;
  letter-spacing: -1.3px;
  line-height: 1.15;
  font-weight: 550;
  margin: 12px 0;
}
h2 {
  font-size: 17px;
  letter-spacing: -0.4px;
  margin: 0;
}
p {
  margin: 9px 0;
}
.primary {
  background: var(--green);
  color: white;
  border-color: var(--green);
}
.primary:hover {
  background: #16472f;
}
.secondary {
  background: #edf3eb;
  border-color: #d8e4d6;
}
.quiet {
  background: transparent;
  border: 0;
  padding: 6px 0;
  color: var(--muted);
}
.wordmark {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--ink);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.7px;
  text-decoration: none;
  white-space: nowrap;
}
.wordmark .muted {
  font-weight: 400;
}
.mark {
  display: grid;
  place-items: center;
  width: 29px;
  height: 29px;
  background: var(--green);
  color: #fff;
  border-radius: 7px;
  font-size: 25px;
  font-weight: 700;
  line-height: 1;
}
.wordmark .mark {
  margin-right: 3px;
}
aside {
  position: fixed;
  top: 0;
  bottom: 0;
  width: 240px;
  padding: 33px 24px;
  background: #fff;
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
}
aside > .eyebrow {
  margin-top: 55px;
  padding-left: 10px;
}
nav {
  display: grid;
  gap: 6px;
  margin-top: 9px;
}
nav button {
  text-align: left;
  border: 0;
  color: var(--muted);
  font-weight: 500;
  background: transparent;
  padding: 12px;
}
nav button.active {
  background: var(--wash);
  color: var(--green);
}
.aside-bottom {
  margin-top: auto;
  font-size: 12px;
  color: #4f6959;
}
.aside-bottom p {
  font-size: 11px;
  color: var(--muted);
  margin: 3px 0 12px;
}
.dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #499663;
  margin-right: 6px;
}
main {
  margin-left: 240px;
}
header {
  height: 82px;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 45px;
  background: #fff9;
}
.slash {
  padding: 0 10px;
  color: #b1bbb4;
}
.pill,
.badge {
  border: 1px solid #dce6db;
  border-radius: 30px;
  padding: 5px 11px;
  font-size: 11px;
  color: #66825f;
  background: #f0f5ed;
}
.page {
  padding: 42px 45px 55px;
  max-width: 1500px;
  margin: auto;
}
.page-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 33px;
}
.page-heading .eyebrow {
  margin: 0 0 15px;
}
.page-heading p {
  margin-top: 12px;
}
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background: white;
  border: 1px solid var(--border);
  border-radius: 12px;
  margin-bottom: 37px;
}
.stats > div {
  padding: 20px 25px;
  border-right: 1px solid var(--border);
}
.stats > div:last-child {
  border: 0;
}
.stats span {
  display: block;
  color: var(--muted);
  font-size: 12px;
}
.stats strong {
  display: block;
  font-size: 30px;
  font-weight: 500;
  letter-spacing: -1px;
  margin-top: 7px;
}
.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 15px;
  font-size: 12px;
}
.card {
  border: 1px solid var(--border);
  border-radius: 12px;
  background: white;
  overflow: hidden;
}
.empty {
  padding: 50px 25px;
  text-align: center;
}
.empty h2 {
  margin: 12px;
}
.empty p {
  color: var(--muted);
  font-size: 13px;
}
.row {
  padding: 19px 23px;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
}
.row:last-child {
  border: 0;
}
.row p {
  font-size: 12px;
  color: var(--muted);
  margin: 3px 0;
}
.row-title {
  background: transparent;
  border: 0;
  padding: 0;
  text-align: left;
  font-size: 14px;
  color: var(--ink);
  font-weight: 600;
}
.row-title:hover {
  background: transparent;
  text-decoration: underline;
}
.row-right {
  display: flex;
  align-items: center;
  gap: 18px;
  white-space: nowrap;
}
.row-right time {
  font-size: 12px;
  color: var(--muted);
}
.badge {
  background: #f5f6f4;
  color: #7a857b;
}
.badge.delivered,
.badge.active {
  background: #e9f4e9;
  color: #498152;
}
.badge.failed,
.badge.bounced,
.badge.unknown,
.badge.suppressed {
  background: #fff0e7;
  color: #a56b46;
}
.note {
  display: flex;
  gap: 18px;
  margin-top: 27px;
  background: #ecf2e8;
  border: 1px solid #e0e8db;
  border-radius: 12px;
  padding: 24px;
}
.note > span {
  font-size: 25px;
}
.note strong {
  font-size: 13px;
}
.note p {
  max-width: 700px;
  font-size: 12px;
  color: #6c7d67;
}
.compose-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 28px;
}
.editor {
  padding: 25px;
}
label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 18px;
}
input,
select,
textarea {
  display: block;
  width: 100%;
  border: 1px solid #dbe3dc;
  border-radius: 7px;
  padding: 10px 12px;
  color: var(--ink);
  background: #fff;
  margin-top: 7px;
  font-weight: 400;
}
textarea {
  resize: vertical;
  line-height: 1.7;
  font-size: 13px;
}
input::placeholder,
textarea::placeholder {
  color: #a0aaa1;
}
.templates {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 0 0 22px;
  flex-wrap: wrap;
}
.templates span {
  font-size: 11px;
  color: var(--muted);
  margin-right: 3px;
}
.templates button {
  font-size: 10px;
  padding: 5px 8px;
  border-radius: 5px;
}
.hint {
  font-size: 11px;
  line-height: 1.7;
}
.editor-actions {
  display: flex;
  justify-content: space-between;
  margin-top: 20px;
}
.preview-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  margin-bottom: 13px;
}
.segmented {
  display: flex;
  border: 1px solid var(--border);
  padding: 3px;
  border-radius: 8px;
  background: #fff;
}
.segmented button {
  font-size: 10px;
  padding: 5px 9px;
  border: 0;
}
.segmented .active {
  background: var(--wash);
}
.inbox {
  display: flex;
  gap: 12px;
  padding: 20px 16px;
  background: white;
  border: 1px solid var(--border);
  border-radius: 12px 12px 0 0;
}
.avatar {
  background: var(--green);
  color: white;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  font-size: 25px;
}
.inbox > div {
  flex: 1;
  min-width: 0;
}
.inbox strong {
  display: block;
  font-size: 12px;
}
.inbox span:not(.avatar) {
  display: block;
  font-size: 12px;
  overflow-wrap: anywhere;
}
.inbox small {
  font-size: 10px;
  color: var(--muted);
}
.preview-frame {
  background: #eef1ec;
  border: 1px solid var(--border);
  border-top: 0;
  min-height: 460px;
  padding: 18px;
  border-radius: 0 0 12px 12px;
  display: flex;
  justify-content: center;
}
iframe {
  display: block;
  border: 0;
  background: white;
  width: 100%;
  height: 470px;
  border-radius: 6px;
  max-width: 600px;
}
.preview-frame.mobile iframe {
  max-width: 320px;
}
.test-card {
  margin-top: 20px;
  padding: 22px;
}
.test-card p {
  font-size: 12px;
}
.test-card label {
  margin-top: 17px;
}
.test-card button {
  width: 100%;
}
.settings {
  padding: 28px;
  margin-bottom: 22px;
  max-width: 780px;
}
.settings h2 {
  margin-bottom: 22px;
}
dl {
  display: grid;
  grid-template-columns: 155px 1fr;
  font-size: 13px;
  gap: 16px;
  margin: 0 0 25px;
}
dt {
  color: var(--muted);
}
dd {
  margin: 0;
  overflow-wrap: anywhere;
}
.settings a {
  font-size: 12px;
}
.import {
  padding: 24px;
}
.import summary {
  font-weight: 600;
  cursor: pointer;
}
.import label:first-of-type {
  margin-top: 20px;
}
.checkbox {
  display: flex;
  align-items: center;
  gap: 9px;
}
.checkbox input {
  width: 16px;
  margin: 0;
}
.login {
  min-height: 100vh;
  display: grid;
  place-items: center;
  background: radial-gradient(ellipse at 85% 25%, #d9e8d4, transparent 60%);
}
.login-card {
  padding: 45px;
  width: 420px;
  max-width: calc(100% - 30px);
  border: 1px solid #dce6d8;
  background: #fffffff0;
  border-radius: 20px;
}
.login-card .eyebrow {
  margin-top: 45px;
}
.login-card h1 {
  font-size: 48px;
  margin: 15px 0;
}
.login-card > label {
  margin-top: 30px;
}
.login-card button {
  width: 100%;
}
.login-card small {
  display: block;
  text-align: center;
  color: var(--muted);
  font-size: 10px;
  margin-top: 25px;
}
#login-error {
  font-size: 12px;
  color: #b15237;
}
#toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  max-width: min(600px, 90vw);
  border-radius: 10px;
  background: #173b2d;
  color: #fff;
  padding: 14px 24px;
  box-shadow: 0 6px 24px #173b2d25;
  z-index: 10;
  font-size: 13px;
  white-space: normal;
}
#toast.error {
  background: #914d34;
}
@media (min-width: 1600px) {
  .page {
    padding-top: 55px;
  }
}
@media (max-width: 1150px) {
  aside {
    width: 205px;
    padding: 28px 18px;
  }
  .wordmark {
    font-size: 16px;
  }
  main {
    margin-left: 205px;
  }
  header {
    padding: 0 28px;
  }
  .page {
    padding: 30px 28px;
  }
  .compose-grid {
    gap: 18px;
  }
  .editor {
    padding: 18px;
  }
}
@media (max-width: 900px) {
  .compose-grid {
    grid-template-columns: 1fr;
  }
  h1 {
    font-size: 32px;
  }
  .row-right time {
    display: none;
  }
}
@media (max-width: 650px) {
  aside {
    position: static;
    width: auto;
    padding: 15px;
    border-right: 0;
    border-bottom: 1px solid var(--border);
  }
  aside > .eyebrow,
  .aside-bottom {
    display: none;
  }
  nav {
    display: flex;
    overflow-x: auto;
    gap: 4px;
    margin-top: 15px;
  }
  nav button {
    padding: 8px 9px;
    white-space: nowrap;
    font-size: 11px;
  }
  .wordmark {
    font-size: 17px;
  }
  main {
    margin: 0;
  }
  header {
    height: 52px;
    padding: 0 18px;
    font-size: 11px;
  }
  .pill {
    font-size: 9px;
  }
  .page {
    padding: 25px 18px;
  }
  .page-heading {
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 25px;
  }
  .page-heading .eyebrow {
    font-size: 9px;
  }
  h1 {
    font-size: 30px;
  }
  .stats {
    margin-bottom: 25px;
  }
  .stats > div {
    padding: 14px 12px;
  }
  .stats span {
    font-size: 10px;
  }
  .stats strong {
    font-size: 26px;
  }
  .row {
    padding: 17px 15px;
  }
  .row-right {
    gap: 8px;
  }
  .row-right .quiet {
    font-size: 10px;
  }
  .note {
    padding: 18px;
  }
  .settings {
    padding: 20px;
  }
  dl {
    grid-template-columns: 105px 1fr;
    font-size: 12px;
  }
  .login-card {
    padding: 30px;
  }
  .preview-frame {
    padding: 10px;
  }
  .section-heading .muted {
    font-size: 10px;
  }
}
