 @font-face {
    font-family: "Merriweather";
    src: url("/public/assets/fonts/merriweather/Merriweather.woff2") format("woff2");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
  }

  @font-face {
  font-family: "MEB";
  src: url("/public/assets/fonts/merriweather/Merriweather-ExtraBold.woff2") format("woff2");
  font-weight: 900;
  font-style: normal;
}

:root {
  --ink: #f5f5f3;
  --paper: #171817;
  --panel: #242523;
  --panel2: #2c2d2b;
  --red: #bd4928;
  --red2: #d65b37;
  --gold: #daa934;
  --muted: #a8aaa5;
  --line: #3a3b38;
  --green: #29c77a;
  --blue: #4a9eff;
  --shadow: 0 18px 48px rgba(0,0,0,.24)
}

* {
  box-sizing: border-box
}

html {
  color-scheme: dark
}

body {
  margin: 0;
  background: #fff;
  color: #000;
  font: 15px/1.55;
  font-familyMerriweather,sans-serif
}

a {
  color: #0000FF;
  font-family: Merriweather, sans-serif;
  text-underline-offset: 3px
}

.shell {
  width: min(1280px,calc(100% - 40px));
  margin: 0 auto
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: #fff;
  border-bottom: 1px solid #000;
  backdrop-filter: blur(12px)
}

.topbar .shell {
  display: flex;
  align-items: center;
  gap: 30px;
  min-height: 72px
}

.brand {
  font: 700 17px;
  font-family: Merriweather, sans-serif;
  letter-spacing: .08em;
  color: #000;
  text-decoration: none;
  white-space: nowrap
}

.topbar nav {
  display: flex;
  gap: 6px;
  margin-left: auto;
  overflow: auto
}

.topbar nav a {
  color: #0000FF;
  text-decoration: none;
  font-size: 13px;
  padding: 10px 12px;
  border-radius: 8px;
  white-space: nowrap
}

.page {
  padding: 38px 0 80px
}



.page-title {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 24px;
  margin: 0 0 26px;
  font-weight: 700;
}

.page-title h1 {
  font: 700 clamp(42px,5vw,70px)/1;
  font-family: MEB, sans-serif;
  font-weight: 900;
  color: #000;
  margin: 7px 0 0
}

.eyebrow {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: .16em;
  font-size: 11px;
  color: var(--gold);
  font-weight: 850
}

.muted {
  color: #000;
}

h1,h2 {
  line-height: 1.15
}

h2 {
  margin: 0 0 18px;
  font-size: 27px;
  font-family: Merriweather, sans-serif;
}

.panel {
  background: #fff;
  color: #000;
  border: 1px solid #000;
  border-radius: 13px;
  padding: 24px;
  margin: 0 0 20px;
  box-shadow: 0 8px 24px rgba(0,0,0,.08)
}

.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px
}

.panel-head h2 {
  margin: 0
}

.metrics {
  display: grid;
  grid-template-columns: repeat(4,1fr);
  border: 1px solid #000;
  border-radius: 13px;
  overflow: hidden;
  margin-bottom: 20px;
  background: #fff;
  color: #000;
}

.metrics section {
  padding: 24px;
  border-right: 1px solid #000;
  min-width: 0
}

.metrics section:last-child {
  border-right: 0
}

.metrics span {
  display: block;
  color: #000;
  font-size: 13px;
  font-family: Merriweather, sans-serif;
}

.metrics strong {
  display: block;
  font: 700 34px;
  font-family: Merriweather, sans-serif;
  margin-top: 8px
}

.metrics .email-metric {
  font: 700 15px/1.35;
  font-family: Merriweather, sans-serif;
  overflow-wrap: anywhere
}

.performance-grid {
  display: grid;
  grid-template-columns: repeat(4,1fr);
  border: 1px solid #000;
  border-radius: 10px;
  overflow: hidden
}

.performance-grid>div {
  padding: 18px;
  border-right: 1px solid #000;
}

.performance-grid>div:last-child {
  border-right: 0
}

.metric {
  font: 700 32px;
  font-family: Merriweather, sans-serif;
  color: #000;
  margin-top: 6px
}

.growth-chart {
  display: block;
  width: 100%;
  height: 230px;
  margin: 24px 0 8px;
  overflow: visible
}

.growth-chart line {
  stroke: #555;
  stroke-width: .35
}

.growth-chart polyline {
  fill: none;
  stroke-width: 1.5;
  vector-effect: non-scaling-stroke
}

.growth-chart .new {
  stroke: var(--green)
}

.growth-chart .lost {
  stroke: #a2a4a0
}

.legend {
  display: flex;
  gap: 20px;
  font-size: 12px;
  color: #000;
}

.legend span:before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-right: 7px
}

.legend .green:before {
  background: #000;
}

.legend .grey:before {
  background: #000;
}

.split {
  display: grid;
  grid-template-columns: minmax(0,2fr) minmax(260px,1fr);
  gap: 20px
}

.split .panel {
  min-width: 0
}

.compact dl {
  margin: 0
}

.compact dl div {
  display: flex;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid #000;
}

.compact dt {
  color: #000;
}

.compact dd {
  font-weight: 800;
  color: #000;
  font-family: Merriweather, sans-serif;
  margin: 0
}

.quick-actions,.inline-links,.campaign-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap
}

.quick-actions a {
  padding: 8px 13px;
  border: 1px solid #000;
  border-radius: 8px;
  text-decoration: none;
  font-family: Merriweather, sans-serif;
  color: #0000FF;
  background: #fff;
}

.table-wrap {
  overflow: auto
}

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

th,td {
  text-align: left;
  padding: 13px 10px;
  border-bottom: 1px solid #000;
  vertical-align: top
}

th {
  font-size: 11px;
  font-family: Merriweather, sans-serif;
  text-transform: uppercase;
  letter-spacing: .09em;
  color: #000;
  white-space: nowrap
}

td a strong {
  color: #0000FF;
}

.source-cell {
  max-width: 280px;
  word-break: break-word;
  background: #fff;
  color: #000;
  font-size: 12px;
  font-family: Merriweather, sans-serif;
}

.badge {
  display: inline-block;
  padding: 4px 9px;
  border-radius: 99px;
  background: #fff;
  color: #000;
  font-size: 11px;
  font-family: Merriweather, sans-serif;
  font-weight: 750;
  text-transform: capitalize
}

.badge.confirmed,.badge.sent {
  background: #fff;
  color: #000;
}

.badge.pending,.badge.queued {
  background: #fff;
  color: #000;
}

.badge.unsubscribed,.badge.failed,.badge.suppressed {
  background: #fff;
  color: #000;
}

input,textarea,select {
  width: 100%;
  padding: 11px 12px;
  border: 1px solid #000;
  border-radius: 8px;
  background: #fff;
  color: #000;
  font-family: Merriweather, sans-serif;
}

input[type="checkbox"] {
  -webkit-appearance: none;
  appearance: none;
  display: inline-grid;
  place-content: center;
  width: 16px !important;
  height: 16px !important;
  min-width: 16px;
  padding: 0 !important;
  margin: 2px 9px 0 0;
  vertical-align: top;
  background: #fff !important;
  border: 1px solid #000 !important;
  border-radius: 2px;
  color-scheme: light;
}

input[type="checkbox"]::before {
  content: "";
  width: 9px;
  height: 9px;
  transform: scale(0);
  transform-origin: center;
  transition: transform .08s ease-in-out;
  background: #000;
  clip-path: polygon(14% 44%,0 59%,38% 100%,100% 20%,84% 5%,37% 67%);
}

input[type="checkbox"]:checked::before {
  transform: scale(1);
}

input:focus,textarea:focus,select:focus {
  outline: 2px solid rgba(218,169,52,.45);
  border-color: #000;
}

textarea {
  min-height: 150px
}

.short {
  min-height: 150px!important
}

textarea.code {
  font: 13px/1.5;
  font-family: Merriweather, sans-serif;
  min-height: 430px
}

.embed-code {
  min-width: 390px;
  min-height: 74px;
  font: 11px/1.4:
  font-family: Merriweather, sans-serif;
}

label {
  display: block;
  font-weight: 700;
  color: #000;
  margin: 16px 0 6px
}

.row,.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 18px
}

.filter-panel {
  display: grid;
  grid-template-columns: repeat(4,minmax(150px,1fr));
  gap: 0 14px;
  background: #fff;
  color: #000;
  border: 1px solid #000;
  border-radius: 13px;
  padding: 18px;
  margin-bottom: 20px
}

.filter-panel label {
  font-size: 12px;
  font-family: Merriweather, sans-serif;
  color: #000;
  background: #fff;
}

.button,button {
  display: inline-block;
  border: 0;
  border-radius: 8px;
  padding: 11px 17px;
  background: #fff;
  color: #000;
  text-decoration: none;
  font-weight: 800;
  font-family: Merriweather, sans-serif;
  cursor: pointer
}

.button.secondary {
  background: #fff;
}

.button.ghost {
  background: #fff;
  color: #000;
  border: 1px solid #000;
}

.actions {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 20px
}

/* Campaign editor buttons only. Keep the rest of the site's design untouched. */
.campaign-editor-actions .button.primary {
  background: #29c77a;
  color: #000;
  border: 1px solid #29c77a;
}

.campaign-editor-actions .button.secondary {
  background: #fff;
  color: #000;
  border: 1px solid #000;
}

.campaign-create {
  background: #fff;
  color: #000;
  border: 1px solid #000;
  border-radius: 8px;
}

.campaign-actions .campaign-link {
  display: inline;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #0000ff;
  font: inherit;
  font-size: inherit;
  font-weight: 400;
  line-height: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.campaign-actions .campaign-link:hover {
  background: transparent;
  color: #0000cc;
}

.campaign-tabs {
  display: flex;
  gap: 8px;
  margin: -8px 0 20px;
}

.campaign-tabs a {
  padding: 9px 14px;
  color: #000;
  background: #fff;
  border: 1px solid #000;
  border-radius: 999px;
  text-decoration: none;
}

.campaign-tabs a.active {
  color: #fff;
  background: #000;
}

.campaign-actions .campaign-delete {
  display: inline-block;
  padding: 5px 11px;
  color: #fff;
  background: #b42318;
  border: 1px solid #b42318;
  border-radius: 999px;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
}

.campaign-actions .campaign-delete:hover {
  background: #8f1b13;
}

/* Public double-opt-in confirmation pages. */
.confirmation-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 48px 18px;
  background:
    radial-gradient(circle at 12% 8%,rgba(218,169,52,.15),transparent 32%),
    radial-gradient(circle at 88% 90%,rgba(189,73,40,.12),transparent 34%),
    #f4f4f1;
  color: #171311;
}

.confirmation-card {
  width: min(760px,100%);
  padding: clamp(24px,5vw,48px);
  background: rgba(255,255,255,.97);
  border: 1px solid rgba(23,19,17,.75);
  border-radius: 22px;
  box-shadow: 0 24px 70px rgba(45,31,24,.16);
}

.confirmation-brand {
  display: block;
  width: 100%;
  height: auto;
  margin: 0 auto clamp(26px,5vw,42px);
  border-radius: 3px;
}

.confirmation-card .eyebrow {
  margin: 0 0 10px;
  color: #b57a12;
  font: 800 14px/1.2 Merriweather,Georgia,serif;
  letter-spacing: .15em;
  text-transform: uppercase;
}

.confirmation-card h1 {
  max-width: 13ch;
  margin: 0 0 20px;
  color: #171311;
  font: 900 clamp(36px,7vw,62px)/1.02 Merriweather,Georgia,serif;
  letter-spacing: -.035em;
}

.confirmation-intro {
  max-width: 620px;
  margin: 0 0 28px;
  color: #4d423d;
  font: 400 clamp(17px,2.5vw,21px)/1.55 Merriweather,Georgia,serif;
}

.confirmation-card form {
  margin: 0;
}

.confirmation-button,
.confirmation-actions .button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 13px 22px;
  border: 1px solid #a73d20;
  border-radius: 10px;
  background: linear-gradient(135deg,#c94e2a,#a83b20);
  color: #fff;
  font: 800 16px/1.2 Merriweather,Georgia,serif;
  text-decoration: none;
  box-shadow: 0 12px 28px rgba(168,59,32,.22);
  cursor: pointer;
}

.confirmation-button:hover,
.confirmation-actions .button.primary:hover {
  filter: brightness(1.05);
}

.confirmation-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 26px;
}

.confirmation-actions .button.secondary {
  border-color: #171311;
  background: #fff;
  color: #171311;
  box-shadow: none;
}

.confirmation-status {
  margin: 22px 0 0;
  padding: 18px 20px;
  border-radius: 12px;
  border-left: 5px solid;
}

.confirmation-status p {
  margin: 0;
  color: inherit;
  font: 700 clamp(16px,2.4vw,20px)/1.5 Merriweather,Georgia,serif;
}

.confirmation-status h1 {
  max-width: 16ch;
  margin: 0;
  font-size: clamp(30px,6vw,48px);
}

.confirmation-status.error p {
  margin-top: 12px;
}

.confirmation-status.success {
  border-color: #239a5c;
  background: #e9f8ef;
  color: #204c35;
}

.confirmation-status.error {
  border-color: #bd4928;
  background: #fff0eb;
  color: #702814;
}

.confirmation-help {
  margin: 26px 0 0;
  color: #6c5b53;
  font: 400 14px/1.5 Merriweather,Georgia,serif;
}

.confirmation-help a {
  color: #8f3150;
  font: inherit;
  font-weight: 800;
}

/* Public unsubscribe page only. */
.unsubscribe-page {
  min-height: 100vh;
  padding: 48px 18px;
  background: #f4f4f1;
  color: #111;
}

.unsubscribe-card {
  width: min(680px,100%);
  margin: 0 auto;
  padding: 38px;
  background: #fff;
  border: 1px solid #111;
  border-radius: 14px;
  box-shadow: 0 18px 48px rgba(0,0,0,.12);
}

.unsubscribe-brand {
  display: block;
  width: 100%;
  max-width: 570px;
  height: auto;
  margin: 0 auto 34px;
}

.unsubscribe-card h1 {
  margin: 8px 0 18px;
  font-family: Merriweather,serif;
  font-size: clamp(34px,7vw,54px);
  line-height: 1.08;
}

.unsubscribe-card p {
  font-size: 17px;
}

.unsubscribe-note {
  padding: 14px 16px;
  background: #bfdeff;
  border-left: 4px solid #2d78bf;
}

.unsubscribe-actions {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 24px;
}

.unsubscribe-actions .button.primary {
  background: #29c77a;
  color: #000;
  border: 1px solid #29c77a;
}

.unsubscribe-actions .button.danger {
  background: #bd4928;
  color: #fff;
  border: 1px solid #bd4928;
}

.unsubscribe-actions .button.secondary {
  background: #fff;
  color: #000;
  border: 1px solid #000;
}

.unsubscribe-help {
  margin: 28px 0 0;
  font-size: 14px !important;
}

.checks {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
  margin: 20px 0
}

.checks label,.consent {
  font-weight: 450;
  font-family: Merriweather, sans-serif;
}

.checks input,.consent input {
  width: auto;
  margin-right: 8px
}

.notice {
  padding: 14px 17px;
  border-radius: 8px;
  margin: 0 0 20px;
  background: #fff;
  border-left: 4px solid var(--green);
  color: #000;
}

.notice.error {
  background: #fff;
  color: #000;
  border-color: #000;
}

.fine {
  font-size: 12px;
  color: #000;
}

.editor-layout {
  display: grid;
  grid-template-columns: minmax(420px,1fr) minmax(420px,1fr);
  gap: 22px
}

.email-editor { margin-top:22px; min-width:0; }
.email-toolbar {
  display:flex; flex-wrap:wrap; align-items:center; gap:5px;
  padding:10px; border:1px solid #aeb8c4; border-radius:8px 8px 0 0;
  background:#f2f5f8;
}
.email-toolbar button,.email-toolbar select {
  width:auto; min-width:32px; min-height:34px; margin:0; padding:5px 9px;
  border:1px solid #b6c1ce; border-radius:4px; background:#fff;
  color:#162c42; font:14px Arial,Helvetica,sans-serif; cursor:pointer;
}
.email-toolbar button:hover,.email-toolbar button:focus-visible { background:#dce8f4; border-color:#315fbb; }
.email-visual {
  display:block; width:100%; height:760px; background:#fff;
  border:1px solid #aeb8c4; border-top:0; border-radius:0 0 8px 8px;
}
.email-editor-status { min-height:2.5em; line-height:1.5; }
.email-source,.email-text { margin:14px 0; border:1px solid #c4cdd7; border-radius:6px; padding:12px; }
.email-source summary,.email-text summary { cursor:pointer; font-weight:600; }
.email-source textarea,.email-text textarea { margin-top:12px; }
.email-text .auto-text { display:flex; align-items:center; gap:8px; margin-top:15px; font-weight:normal; }
.email-text .auto-text input { width:18px; height:18px; margin:0; flex:0 0 18px; }
.email-text textarea[readonly] { background:#f2f5f8; color:#45576b; }
.email-insert-dialog { width:min(480px,calc(100% - 32px)); padding:26px; border:1px solid #8898a8; border-radius:12px; color:#162c42; }
.email-insert-dialog::backdrop { background:rgba(10,25,40,.45); }
.email-insert-dialog h2 { margin:0 0 20px; }
.email-insert-dialog .actions button { padding:10px 18px; }
.email-preview-panel { min-width:0; }
.email-preview-panel .preview { position:sticky; top:18px; }

.newsletter-viewer { width:min(900px,100%); margin:0 auto; }
.newsletter-viewer .newsletter-subject { margin:0 0 20px; font-size:24px; line-height:1.35; overflow-wrap:anywhere; }
.newsletter-viewer .newsletter-metadata { display:flex; flex-wrap:wrap; gap:12px 28px; margin-bottom:20px; }
.newsletter-viewer .newsletter-metadata dt { font-weight:bold; }
.newsletter-viewer .newsletter-metadata dd { margin:4px 0 0; }
.newsletter-viewer .newsletter-frame { display:block; width:100%; height:1000px; border:1px solid #aeb8c4; border-radius:8px; background:#fff; }
.newsletter-viewer .newsletter-text { margin-top:22px; }
.newsletter-viewer .newsletter-text pre { white-space:pre-wrap; overflow-wrap:anywhere; font:16px/1.6 Arial,Helvetica,sans-serif; padding:18px; background:#f2f5f8; border:1px solid #c4cdd7; border-radius:6px; }
.newsletter-viewer summary { cursor:pointer; font-weight:bold; }

.preview {
  width: 100%;
  height: 760px;
  border: 1px solid #000;
  background: #fff;
  color: #000;
  border-radius: 8px
}

.login,.signup {
  width: min(650px,calc(100% - 28px));
  margin: 45px auto;
  background: #fff;
  color: #000;
  border-radius: 18px;
  box-shadow: var(--shadow);
  overflow: hidden
}

.login {
  max-width: 460px;
  padding: 36px
}

.login input {
  background: #fff;
  color: #000;
  border-color: #000;
}

.signup-head {
  background: #fff;
  color: #000;
  padding: 38px
}

.signup-head h1 {
  font: 700 38px/1.05;
  font-family: Merriweather, sans-serif;
  margin: 10px 0;
  color: #000;
}

.signup-head p:last-child {
  color: #000;
}

.signup-body {
  padding: 34px;
  color: #000;
  background: #fff;
}

.signup input,.signup select {
  background: #fff;
  color: #000;
  border-color: #000;
}

.signup label {
  color: #000;
}

.signup .muted,.signup .fine {
  color: #000;
}

.signup .notice {
  color: #000;
  background: #fff;
}

.signup .notice.error {
  color: #000;
  background: #fff;
}

@media(max-width:950px) {
  .metrics,.performance-grid {
    grid-template-columns: 1fr 1fr
  }

  .metrics section:nth-child(2) {
    border-right: 0
  }

  .metrics section {
    border-bottom: 1px solid #000;
  }

  .split,.editor-layout {
    grid-template-columns: 1fr
  }

  .filter-panel {
    grid-template-columns: 1fr 1fr
  }

  .topbar .shell {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
    padding: 14px 0
  }

  .topbar nav {
    width: 100%;
    margin: 0
  }

  .preview {
    height: 620px
  }
}

@media(max-width:620px) {
  .confirmation-page {
    padding: 18px 12px;
    place-items: start center;
  }

  .confirmation-card {
    padding: 20px;
    border-radius: 16px;
  }

  .confirmation-brand {
    margin-bottom: 26px;
  }

  .confirmation-card h1 {
    max-width: none;
  }

  .confirmation-button,
  .confirmation-actions,
  .confirmation-actions .button {
    width: 100%;
  }

  .shell {
    width: min(100% - 22px,1280px)
  }

  .page {
    padding-top: 24px
  }

  .page-title {
    align-items: flex-start;
    flex-direction: column
  }

  .metrics,.performance-grid,.filter-panel,.row,.form-grid {
    grid-template-columns: 1fr
  }

  .metrics section,.performance-grid>div {
    border-right: 0;
    border-bottom: 1px solid #000;
  }

  .panel {
    padding: 17px
  }

  .signup-head,.signup-body {
    padding: 26px
  }

  .growth-chart {
    height: 170px
  }
}
