:root {
  --ink: #24332d;
  --ink-soft: #34483e;
  --paper: #f7f6f2;
  --white: #fff;
  --muted: #798077;
  --line: #e5e7de;
  --gold: #dca24b;
  --gold-light: #fbf1dd;
  --green: #357359;
  --red: #ab4b40;
  --radius: 12px;
  --shadow: 0 5px 22px #24332d07;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 14px;
  line-height: 1.5;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
.button {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: white;
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition:
    background 0.15s,
    transform 0.15s;
  white-space: nowrap;
}
button:hover,
.button:hover {
  background: #f0f2eb;
}
button:active {
  transform: translateY(1px);
}
button:disabled {
  opacity: 0.5;
  cursor: wait;
}
.primary {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}
.primary:hover {
  background: #3b5145;
}
.gold {
  background: var(--gold);
  border-color: var(--gold);
  color: #253029;
}
.danger-button {
  color: var(--red);
}
.ghost {
  border-color: transparent;
  background: transparent;
}
.small {
  padding: 6px 10px;
  font-size: 12px;
}
.icon-btn {
  padding: 8px;
  width: 34px;
  height: 34px;
}
.icon {
  width: 19px;
  height: 19px;
  vertical-align: middle;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.65;
  stroke-linecap: round;
  stroke-linejoin: round;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 37px;
  line-height: 1.2;
  font-weight: 400;
  letter-spacing: -1px;
  margin-bottom: 9px;
}
h2 {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 4px;
}
h3 {
  font-size: 15px;
}
.muted {
  color: var(--muted);
}
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 10px;
  font-weight: 700;
  color: var(--muted);
  margin-bottom: 14px;
}
.sidebar {
  overflow-y: auto;
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  width: 235px;
  background: var(--ink);
  color: #cbd3c8;
  display: flex;
  flex-direction: column;
  padding: 32px 19px 20px;
  z-index: 20;
}
.brand {
  display: flex;
  gap: 11px;
  align-items: center;
  padding: 0 9px 36px;
  color: #fff;
}
.brand img {
  width: 38px;
  height: 38px;
}
.brand-title {
  font-family: Georgia, serif;
  font-size: 18px;
  line-height: 1.1;
  letter-spacing: 0.1px;
}
.brand-title small {
  display: block;
  font:
    9px Arial,
    sans-serif;
  letter-spacing: 3px;
  margin-top: 8px;
  color: #b5bdaf;
}
.nav-label {
  text-transform: uppercase;
  font-size: 9px;
  letter-spacing: 1.8px;
  color: #8a9b8e;
  padding: 10px 14px 8px;
}
.nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.nav a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 7px;
  color: #b9c4b9;
  font-size: 13px;
}
.nav a:hover {
  background: #ffffff08;
  color: white;
}
.nav a.active {
  background: #ffffff12;
  color: #f0bf76;
}
.nav a.active:after {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--gold);
  margin-left: auto;
}
.nav-group {
  padding: 3px 0;
}
.nav-group-title {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 14px 6px;
  color: #d5ddd4;
  font-size: 13px;
  font-weight: 600;
}
.nav-group-title .icon {
  color: #9bad9f;
}
.nav a.nav-sub {
  margin-left: 41px;
  padding: 8px 11px;
  width: calc(100% - 41px);
  font-size: 11px;
}
.sidebar-bottom {
  margin-top: auto;
}
.sidebar-note {
  margin: 28px 8px 23px;
  padding: 16px 12px;
  border: 1px solid #ffffff1c;
  border-radius: 9px;
  font-family: Georgia, serif;
  font-size: 16px;
  color: #dedec8;
}
.sidebar-note span {
  display: block;
  font: 10px Arial;
  margin-top: 9px;
  letter-spacing: 1px;
  color: #9caa9b;
}
.profile {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 8px 0;
  border-top: 1px solid #ffffff17;
}
.avatar {
  width: 34px;
  height: 34px;
  background: #e9e5d9;
  color: var(--ink);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: Georgia, serif;
  flex: none;
}
.profile-name {
  font-size: 12px;
  color: #f0f1e8;
}
.profile-role {
  font-size: 10px;
  color: #96a492;
}
.profile button {
  margin-left: auto;
  color: #afbeac;
}
.workspace {
  margin-left: 235px;
  min-height: 100vh;
}
.topbar {
  height: 72px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 38px;
  background: #ffffff70;
}
.breadcrumb {
  font-size: 12px;
  color: var(--muted);
}
.breadcrumb strong {
  font-weight: 500;
  color: var(--ink);
  margin-left: 10px;
}
.top-actions {
  display: flex;
  align-items: center;
  gap: 15px;
}
.workspace-label {
  font-size: 11px;
  color: var(--muted);
}
.dot {
  display: inline-block;
  background: #77a181;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  margin-right: 6px;
}
.main {
  max-width: 1540px;
  margin: auto;
  padding: 33px 38px 50px;
}
.page-head {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  margin-bottom: 27px;
}
.page-head p {
  font-size: 13px;
  color: var(--muted);
  margin: 0;
}
.actions {
  display: flex;
  gap: 9px;
  align-items: center;
  flex-wrap: wrap;
}
.date-select {
  background: transparent;
  max-width: 160px;
}
.welcome-banner {
  border: 1px solid #e7dfcb;
  background: linear-gradient(115deg, #f3ecde, #f6f1e6);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 27px;
  margin-bottom: 26px;
  overflow: hidden;
  position: relative;
}
.welcome-banner h2 {
  font-family: Georgia, serif;
  font-size: 23px;
  font-weight: 400;
}
.welcome-banner p {
  color: #7c7969;
  margin: 6px 0 0;
  font-size: 12px;
}
.banner-ornament {
  position: absolute;
  right: 175px;
  top: -18px;
  width: 140px;
  height: 140px;
  opacity: 0.15;
  pointer-events: none;
}
.welcome-banner .button {
  z-index: 1;
  background: transparent;
  border-color: #c7bea7;
}
.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 17px;
  margin-bottom: 25px;
}
.stat {
  padding: 22px 24px;
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.stat-label {
  color: #737c72;
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.stat-label .icon {
  color: #89967f;
  width: 17px;
}
.stat-value {
  font-size: 33px;
  font-weight: 500;
  letter-spacing: -1.2px;
  margin-top: 13px;
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
}
.stat-foot {
  font-size: 10px;
  color: #889084;
  margin-top: 13px;
}
.stat-foot strong {
  color: var(--green);
  font-weight: 500;
}
.panel {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 24px;
  overflow: hidden;
}
.panel-head {
  padding: 22px 25px 17px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.panel-head p {
  font-size: 11px;
  color: var(--muted);
  margin: 5px 0 0;
}
.panel-body {
  padding: 22px 25px;
}
.split {
  display: grid;
  grid-template-columns: minmax(0, 1.9fr) minmax(275px, 1fr);
  gap: 23px;
}
.chart-wrap {
  padding: 0 25px 23px;
}
.chart {
  width: 100%;
  height: 220px;
  display: block;
  overflow: visible;
}
.chart text {
  fill: #899080;
  font-size: 10px;
  font-family: Arial;
}
.chart .gridline {
  stroke: #eceee6;
  stroke-dasharray: 4 4;
}
.chart-labels {
  display: flex;
  justify-content: space-between;
  color: #92998c;
  font-size: 10px;
  margin: 3px 0 0 30px;
}
.legend {
  display: flex;
  gap: 16px;
  font-size: 10px;
  color: var(--muted);
}
.legend i {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  margin-right: 5px;
}
.legend .amber {
  background: var(--gold);
}
.audience-list {
  padding: 0 25px 20px;
}
.audience-item {
  margin: 18px 0;
}
.audience-item > div {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  gap: 10px;
  margin-bottom: 8px;
}
.audience-item span:last-child {
  color: var(--muted);
  font-size: 11px;
}
.bar {
  height: 5px;
  border-radius: 3px;
  background: #f1f2ed;
  overflow: hidden;
}
.bar > span {
  display: block;
  background: #67826a;
  height: 100%;
  border-radius: 3px;
}
.table-scroll {
  overflow: auto;
}
table {
  border-collapse: collapse;
  width: 100%;
  font-size: 12px;
  text-align: left;
}
th {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  font-weight: 500;
  color: #909688;
  background: #fcfcf9;
  padding: 12px 24px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
td {
  padding: 17px 24px;
  border-bottom: 1px solid #edf0e7;
  vertical-align: middle;
}
tr:last-child td {
  border-bottom: 0;
}
tr:hover td {
  background: #fbfcf8;
}
.cell-title {
  font-weight: 600;
  display: block;
  color: var(--ink);
  margin-bottom: 3px;
  font-size: 12px;
}
.cell-sub {
  display: block;
  color: var(--muted);
  font-size: 10px;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 9px;
  border-radius: 5px;
  background: #eeefe9;
  color: #7e8478;
  font-size: 10px;
  white-space: nowrap;
}
.badge:before {
  content: "";
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: currentColor;
}
.badge.active,
.badge.sent,
.badge.completed {
  background: #edf4ed;
  color: #508160;
}
.badge.draft,
.badge.pending,
.badge.scheduled {
  background: #fbf2df;
  color: #ad863f;
}
.badge.sending {
  background: #e8f1f7;
  color: #577c99;
}
.badge.failed,
.badge.bounced,
.badge.complained,
.badge.uncertain {
  background: #faebe8;
  color: #b06859;
}
.table-footer {
  padding: 14px 24px;
  border-top: 1px solid var(--line);
  font-size: 11px;
  color: var(--muted);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.link {
  color: var(--green);
  font-size: 12px;
  font-weight: 600;
}
.bottom-note {
  display: flex;
  justify-content: space-between;
  color: #959b90;
  font-size: 10px;
  margin-top: 6px;
}
.filters {
  display: flex;
  gap: 12px;
  padding: 18px 24px;
  align-items: center;
  flex-wrap: wrap;
}
.filters input {
  max-width: 300px;
}
.filters select {
  width: auto;
  min-width: 140px;
}
.empty {
  padding: 50px 24px;
  text-align: center;
  color: var(--muted);
}
.empty .icon {
  width: 32px;
  height: 32px;
  margin-bottom: 12px;
  color: #9ba78d;
}
.empty h3 {
  color: var(--ink);
  font-family: Georgia, serif;
  font-size: 23px;
  font-weight: 400;
  margin: 0 0 8px;
}
.empty p {
  font-size: 12px;
  max-width: 390px;
  margin: 0 auto 20px;
}
.notice {
  padding: 14px 18px;
  border-radius: 7px;
  background: var(--gold-light);
  font-size: 12px;
  color: #86703d;
  margin-bottom: 20px;
  border: 1px solid #ecdfc2;
}
.notice.success {
  background: #edf4ed;
  color: #3d7753;
  border-color: #d6e7d8;
}
.notice.danger {
  background: #f9ebe8;
  color: #a55345;
  border-color: #edcec7;
}
.notice a {
  text-decoration: underline;
}
.notice p:last-child {
  margin: 0;
}
label {
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 17px;
}
input,
textarea,
select {
  display: block;
  width: 100%;
  border: 1px solid #dce0d6;
  background: white;
  border-radius: 6px;
  color: var(--ink);
  padding: 10px 12px;
  outline: none;
  font-size: 13px;
  min-width: 0;
}
textarea {
  resize: vertical;
  line-height: 1.6;
}
input:focus,
textarea:focus,
select:focus {
  border-color: #819c83;
  box-shadow: 0 0 0 3px #819c8315;
}
button:focus-visible,
a:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}
.check {
  flex-direction: row;
  align-items: center;
  gap: 8px;
  font-weight: 400;
}
.check input {
  width: auto;
  box-shadow: none;
  accent-color: var(--green);
}
.help {
  font-size: 11px;
  color: var(--muted);
  font-weight: 400;
  margin: 4px 0 0;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 18px;
}
.form-grid .full {
  grid-column: 1/-1;
}
.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 20px;
}
.form-section {
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 23px;
}
.form-section h3 {
  margin: 0 0 18px;
}
.settings-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.7fr);
  gap: 24px;
}
.stack {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.template-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
}
.template-thumb {
  height: 190px;
  background: #efeee6;
  padding: 20px;
  overflow: hidden;
  position: relative;
}
.template-thumb iframe {
  width: 200%;
  height: 420px;
  transform: scale(0.5);
  transform-origin: top left;
  border: 0;
  pointer-events: none;
  background: white;
}
.template-info {
  padding: 18px;
}
.template-info h3 {
  margin-bottom: 10px;
}
.template-kind {
  color: #8b6a34;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1.25px;
  margin-bottom: 10px;
  text-transform: uppercase;
}
.template-actions {
  justify-content: space-between;
  margin-top: 17px;
}
.automated-email-meta {
  margin-bottom: 20px;
}
.automated-email-meta .panel-body {
  padding-bottom: 15px;
}
.variable-guide {
  line-height: 1.8;
  margin: 0;
}
.variable-guide code {
  white-space: nowrap;
}
.automated-editor-panel .editor-shell {
  min-height: 700px;
}
.auth-body {
  min-height: 100vh;
  background: #eae9e0;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 40px 20px;
}
.install-card {
  width: 580px;
  max-width: 100%;
  background: var(--paper);
  padding: 45px 48px;
  border: 1px solid #d9dcd1;
  border-radius: 14px;
  box-shadow: 0 30px 100px #25342e13;
}
.install-card h1 {
  font-size: 42px;
  margin: 15px 0 22px;
}
.auth-foot {
  margin: 30px 0 0;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: 11px;
  color: var(--muted);
}
.requirements {
  margin: 24px 0;
}
.requirements > div {
  display: flex;
  justify-content: space-between;
  margin: 8px 0;
  font-size: 12px;
}
.login-layout {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.login-story {
  background: var(--ink);
  color: #e5e7d9;
  padding: 60px 12%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.login-story img {
  width: 90px;
  margin-bottom: 60px;
}
.login-story h1 {
  font-size: 63px;
  line-height: 1.08;
  max-width: 500px;
}
.login-story p {
  font-size: 14px;
  color: #aabbab;
  max-width: 330px;
  margin-top: 20px;
  line-height: 1.8;
}
.login-story .eyebrow {
  color: #d2af75;
}
.login-form {
  padding: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.login-form > div {
  width: 360px;
  max-width: 100%;
}
.login-form h1 {
  font-size: 33px;
}
.login-form .primary {
  width: 100%;
  margin-top: 8px;
}
.boot {
  padding: 100px;
  text-align: center;
  font-family: Georgia;
  font-size: 28px;
  color: var(--muted);
}
#toast {
  position: fixed;
  bottom: 25px;
  left: 50%;
  transform: translate(-50%, 20px);
  background: var(--ink);
  color: white;
  padding: 12px 22px;
  border-radius: 8px;
  z-index: 100;
  box-shadow: 0 8px 30px #0002;
  opacity: 0;
  pointer-events: none;
  transition: 0.2s;
  max-width: 90vw;
}
#toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}
dialog {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 28px;
  width: 580px;
  max-width: 94vw;
  max-height: 90vh;
  color: var(--ink);
  box-shadow: 0 20px 100px #0003;
}
dialog::backdrop {
  background: #14251dcc;
  backdrop-filter: blur(3px);
}
.modal-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 23px;
}
.modal-head h2 {
  font-family: Georgia;
  font-size: 27px;
  font-weight: 400;
}
.modal-wide {
  width: 1050px;
}
.preview-frame {
  width: 100%;
  height: 65vh;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: white;
}
.preview-frame.mobile {
  width: 375px;
  max-width: 100%;
  display: block;
  margin: auto;
}
.editor-shell {
  display: grid;
  grid-template-columns: 205px minmax(0, 1fr) 255px;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  min-height: 650px;
  background: #eceee7;
}
.block-palette {
  background: #fbfcf8;
  padding: 20px 15px;
  border-right: 1px solid var(--line);
}
.block-palette h3,
.block-properties h3 {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 16px;
}
.block-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.block-tool {
  display: flex;
  flex-direction: column;
  gap: 9px;
  padding: 15px 6px;
  font-size: 10px;
  font-weight: 400;
  cursor: grab;
  white-space: normal;
}
.block-tool .icon {
  width: 21px;
  height: 21px;
}
.block-palette .help {
  margin-top: 17px;
  line-height: 1.7;
}
.email-stage {
  padding: 28px 24px;
  overflow: auto;
}
.email-paper {
  max-width: 640px;
  background: #fff;
  box-shadow: 0 4px 22px #2336280c;
  margin: auto;
  min-height: 460px;
}
.email-block {
  position: relative;
  outline: 1px solid transparent;
  cursor: pointer;
  overflow-wrap: anywhere;
}
.email-block:hover {
  outline: 1px dashed var(--gold);
  z-index: 2;
}
.email-block.selected {
  outline: 2px solid var(--gold);
  z-index: 3;
}
.email-block.drag-over {
  border-top: 4px solid var(--gold);
}
.block-controls {
  display: flex;
  gap: 1px;
  justify-content: flex-end;
  background: #f9f3e6;
  border-bottom: 1px solid #efdfbd;
  padding: 3px 5px;
}
.block-controls button {
  background: transparent;
  border: 0;
  font-size: 11px;
  padding: 4px 7px;
  color: #8f723e;
}
.email-block img {
  max-width: 100%;
}
.block-properties {
  background: #fbfcf8;
  border-left: 1px solid var(--line);
  padding: 20px 17px;
  max-height: 900px;
  overflow: auto;
}
.block-properties label {
  font-size: 11px;
}
.block-properties textarea {
  min-height: 120px;
}
.form-editor-shell { min-height: 720px; }
.form-stage { display:flex; align-items:flex-start; }
.form-paper { width:100%;max-width:980px;margin:auto;padding:28px;border:2px solid transparent;box-shadow:0 6px 30px #10201822; }
.form-paper.horizontal,.form-paper.framed { display:grid;grid-template-columns:minmax(220px,.85fr) minmax(330px,1.15fr);gap:30px;align-items:center; }
.form-paper.framed { border-style:solid; }
.form-paper.centered { max-width:700px; }
.form-paper.centered .form-canvas-column { max-width:620px;margin:auto; }
.form-layout-block .block-controls span { margin-right:auto;font:10px Arial;padding:5px;color:#8f723e; }
.form-layout-block h1 { margin:0;font:600 30px/1.2 Georgia,serif; }
.form-preview-brand { font-size:10px;letter-spacing:2px;opacity:.72;margin-bottom:8px; }
.form-preview-fields { display:flex;gap:9px;align-items:end; }
.form-preview-fields input { min-width:0;width:100%;padding:13px;border:1px solid #ffffff55;border-radius:4px;background:#ffffff12;color:inherit; }
.form-preview-fields button { padding:13px 18px;white-space:nowrap; }
.form-image-placeholder { padding:44px 15px;border:1px dashed currentColor;opacity:.65;text-align:center; }
.form-tool-icon { font-size:20px;line-height:1; }
@media(max-width:900px){.form-paper.horizontal,.form-paper.framed{display:block}.form-preview-fields{display:block}.form-preview-fields>*{display:block;width:100%;margin-top:8px}}
.editor-toolbar {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  align-items: center;
  margin: 20px 0 14px;
}
.tabs {
  display: flex;
  gap: 3px;
  background: #eaece4;
  padding: 4px;
  border-radius: 7px;
}
.tabs button {
  border: 0;
  background: transparent;
  font-size: 12px;
  padding: 8px 15px;
  font-weight: 400;
}
.tabs button.active {
  background: white;
  box-shadow: 0 1px 5px #0001;
}
.code-editor {
  font:
    12px/1.7 Menlo,
    Consolas,
    monospace;
  min-height: 530px;
  background: #25332e;
  color: #e0e9d8;
  border: 0;
  padding: 24px;
}
.campaign-meta {
  padding: 24px;
}
.email-footer {
  text-align: center;
  font-size: 10px;
  color: #a1a495;
  padding: 25px;
  line-height: 1.8;
}
.metrics-mini {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 25px;
}
.metric-mini {
  padding: 17px;
  background: #f9faf6;
  border: 1px solid var(--line);
  border-radius: 8px;
}
.metric-mini strong {
  display: block;
  font-size: 25px;
  font-weight: 400;
}
.metric-mini span {
  font-size: 11px;
  color: var(--muted);
}
.media-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.media-card {
  border: 1px solid var(--line);
  border-radius: 9px;
  background: white;
  padding: 12px;
  min-width: 0;
}
.media-card img {
  width: 100%;
  height: 145px;
  object-fit: contain;
  background: #f2f3ed;
  border-radius: 5px;
}
.media-card p {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 11px;
  margin: 12px 0;
}
.honeypot {
  position: absolute;
  left: -10000px;
  opacity: 0;
}
.mobile-nav {
  display: none;
}
.inline-code {
  font:
    11px Menlo,
    monospace;
  background: #eef0e9;
  padding: 8px;
  border-radius: 5px;
  overflow-wrap: anywhere;
}
.check-list {
  max-height: 160px;
  overflow: auto;
  border: 1px solid var(--line);
  padding: 12px;
  border-radius: 6px;
}
.check-list label:last-child {
  margin-bottom: 0;
}
.error-screen {
  padding: 60px;
  text-align: center;
}
.text-right {
  text-align: right;
}
.nowrap {
  white-space: nowrap;
}
.skeleton {
  height: 200px;
  background: linear-gradient(100deg, #e9ece3, #f8f9f4, #e9ece3);
  border-radius: 10px;
}
.report-header {
  margin-bottom: 25px;
}
.hidden {
  display: none !important;
}
@media (min-width: 1600px) {
  .main {
    padding-top: 42px;
  }
  .sidebar {
    width: 250px;
  }
  .workspace {
    margin-left: 250px;
  }
}
@media (max-width: 1150px) {
  .sidebar {
    width: 205px;
  }
  .workspace {
    margin-left: 205px;
  }
  .main {
    padding: 25px;
  }
  .topbar {
    padding: 0 25px;
  }
  .stat {
    padding: 19px;
  }
  .stat-value {
    font-size: 28px;
  }
  .split {
    grid-template-columns: 1.6fr 1fr;
  }
  .editor-shell {
    grid-template-columns: 150px minmax(0, 1fr) 210px;
  }
  .cards {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 900px) {
  .sidebar {
    width: 76px;
    padding: 25px 10px;
  }
  .brand {
    padding: 0 9px 25px;
  }
  .brand-title,
  .nav-label,
  .nav a span,
  .nav-group-title span,
  .sidebar-note,
  .profile-name,
  .profile-role,
  .profile button {
    display: none;
  }
  .nav a {
    justify-content: center;
    padding: 13px;
  }
  .nav-group-title {
    justify-content: center;
    padding: 10px;
  }
  .nav a.nav-sub {
    height: 9px;
    margin: 3px auto;
    padding: 0;
    width: 9px;
    border: 1px solid #819187;
    border-radius: 50%;
  }
  .nav a.nav-sub.active {
    background: var(--gold);
    border-color: var(--gold);
  }
  .nav a.nav-sub.active:after {
    display: none;
  }
  .nav a.active:after {
    display: none;
  }
  .profile {
    justify-content: center;
    padding: 15px 0;
  }
  .workspace {
    margin-left: 76px;
  }
  .split,
  .settings-grid {
    grid-template-columns: 1fr;
  }
  .stat-grid {
    gap: 10px;
  }
  .stat {
    padding: 17px;
  }
  .stat-value {
    font-size: 26px;
  }
  .banner-ornament {
    display: none;
  }
  .editor-shell {
    grid-template-columns: 130px 1fr;
  }
  .block-properties {
    grid-column: 1/-1;
    max-height: none;
    border-left: 0;
    border-top: 1px solid var(--line);
  }
  .block-properties > div {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 16px;
  }
  .media-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .login-story {
    padding: 40px 12%;
  }
  .login-story h1 {
    font-size: 46px;
  }
  .login-form {
    padding: 35px;
  }
}
@media (max-width: 600px) {
  .sidebar {
    width: 58px;
    padding: 22px 5px;
  }
  .brand {
    padding: 0 7px 20px;
  }
  .brand img {
    width: 32px;
  }
  .nav a {
    padding: 12px 5px;
  }
  .workspace {
    margin-left: 58px;
  }
  .topbar {
    height: 60px;
    padding: 0 17px;
  }
  .top-actions .workspace-label {
    display: none;
  }
  .main {
    padding: 23px 17px;
  }
  .page-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 22px;
  }
  h1 {
    font-size: 30px;
  }
  .welcome-banner {
    padding: 20px;
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
  }
  .welcome-banner h2 {
    font-size: 21px;
  }
  .stat-grid {
    grid-template-columns: 1fr 1fr;
  }
  .stat {
    padding: 16px;
  }
  .stat-value {
    font-size: 28px;
  }
  .stat-label {
    font-size: 11px;
  }
  .stat-foot {
    font-size: 9px;
  }
  .panel-head,
  .panel-body {
    padding: 18px;
  }
  .chart-wrap {
    padding: 0 16px 20px;
  }
  .chart {
    height: 180px;
  }
  .panel-head .legend {
    display: none;
  }
  .audience-list {
    padding: 0 18px 15px;
  }
  td,
  th {
    padding: 13px 16px;
  }
  .bottom-note {
    gap: 15px;
    line-height: 1.7;
  }
  .filters {
    padding: 15px;
  }
  .filters input,
  .filters select {
    max-width: none;
    width: 100%;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .cards {
    grid-template-columns: 1fr;
  }
  .campaign-meta {
    padding: 18px;
  }
  .editor-toolbar {
    flex-wrap: wrap;
  }
  .editor-shell {
    display: block;
  }
  .block-palette {
    padding: 12px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .block-palette h3,
  .block-palette .help {
    display: none;
  }
  .block-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  .block-tool {
    padding: 9px 3px;
    font-size: 9px;
  }
  .email-stage {
    padding: 17px 12px;
  }
  .block-properties > div {
    display: block;
  }
  .media-grid {
    grid-template-columns: 1fr 1fr;
  }
  .install-card {
    padding: 30px 25px;
  }
  .install-card h1 {
    font-size: 35px;
  }
  .login-layout {
    display: block;
  }
  .login-story {
    padding: 30px;
  }
  .login-story img {
    width: 44px;
    margin-bottom: 20px;
  }
  .login-story h1 {
    font-size: 35px;
    margin-bottom: 0;
  }
  .login-story p {
    display: none;
  }
  .login-form {
    padding: 35px 27px;
  }
  .metrics-mini {
    grid-template-columns: 1fr 1fr;
  }
  .table-footer {
    padding: 14px 16px;
  }
  .preview-frame {
    height: 60vh;
  }
  .actions {
    gap: 6px;
  }
  .actions button,
  .actions .button {
    font-size: 11px;
    padding: 9px 11px;
  }
}
.form-builder-grid {
  grid-template-columns: minmax(330px, 1fr) minmax(320px, 1fr);
}
@media (max-width: 950px) {
  .form-builder-grid {
    grid-template-columns: 1fr;
  }
}

/* Audience tools */
.segment-rule { display:grid;grid-template-columns:1.3fr 1fr 1.2fr auto;gap:12px;align-items:end;padding:16px 0;border-bottom:1px solid var(--border,#e3e1d6); }
.segment-rule button { margin-bottom:16px; }
#segment-result { margin-top:20px; }
@media(max-width:650px) { .segment-rule {grid-template-columns:1fr;} }

.policy-page {max-width:850px;width:calc(100% - 32px);margin:32px auto;}
.policy-page h1 {font-size:38px;}
.policy-page h2 {font-size:23px;margin:30px 0 12px;}
.policy-page p,.policy-page li {line-height:1.75;overflow-wrap:anywhere;}
.policy-page a {text-decoration:underline;}
@media(max-width:600px){.policy-page{padding:24px;}.policy-page h1{font-size:30px;}}

.sidebar > * { flex-shrink: 0; }
