/* SEEYOU MAILER — shared interface styles, matching the agency brand. */
@font-face {
  font-family: Chakra Petch;
  src: url(chakra-petch-400.woff2) format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: Chakra Petch;
  src: url(chakra-petch-500.woff2) format("woff2");
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: Chakra Petch;
  src: url(chakra-petch-600.woff2) format("woff2");
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: Chakra Petch;
  src: url(chakra-petch-700.woff2) format("woff2");
  font-weight: 700;
  font-display: swap;
}
:root {
  --bg: #eeeee8;
  --paper: #fff;
  --ink: #0d0e10;
  --muted: #66695f;
  --line: #dedfd7;
  --dark: #0d0e10;
  --accent: #d4ff3a;
  --accent-soft: #f0f7d9;
  --radius: 16px;
  --sidebar: 244px;
  font:
    14px "Chakra Petch",
    Arial,
    sans-serif;
  color: var(--ink);
  font-synthesis: none;
  color-scheme: light;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  min-width: min(320px, 100%);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
.modal-open {
  overflow: hidden;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
summary {
  cursor: pointer;
}
button {
  color: inherit;
}
button:disabled {
  opacity: 0.42;
  cursor: not-allowed;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
input,
textarea,
select,
a,
summary {
  outline-offset: 4px;
}
button:focus-visible,
a:focus-visible,
summary:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid #668000;
  outline-offset: 4px;
}
::selection {
  background: var(--accent);
  color: var(--ink);
}
[hidden] {
  display: none !important;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1,
h2,
h3 {
  font-weight: 600;
}
h1 {
  font-size: 36px;
  letter-spacing: -1.4px;
  line-height: 1.2;
  margin-bottom: 0;
}
h2 {
  font-size: 18px;
  letter-spacing: -0.4px;
  line-height: 1.4;
}
h3 {
  font-size: 15px;
  line-height: 1.4;
}
p {
  line-height: 1.65;
}
small,
.muted {
  color: var(--muted);
}
small {
  font-size: 12px;
}
.mono,
code {
  font:
    12px ui-monospace,
    Consolas,
    monospace;
  overflow-wrap: anywhere;
}
fieldset {
  min-width: 0;
}
.icon {
  width: 20px;
  height: 20px;
  flex: none;
  vertical-align: middle;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  pointer-events: none;
}
.small-icon {
  width: 16px;
  height: 16px;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  clip-path: inset(50%);
  overflow: hidden;
  white-space: nowrap;
}
.skip-link {
  position: fixed;
  top: 8px;
  left: 260px;
  z-index: 300;
  padding: 12px 18px;
  background: var(--accent);
  border-radius: 8px;
  transform: translateY(-200%);
}
.skip-link:focus {
  transform: none;
}
/* Navigation */
.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: var(--sidebar);
  background: var(--dark);
  color: #b8bab2;
  padding: 34px 16px 20px;
  display: flex;
  flex-direction: column;
  z-index: 30;
  overflow-y: auto;
}
.brand {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  padding: 0 4px 48px;
}
.brand-wordmark {
  width: 125px;
  height: auto;
  display: block;
  filter: brightness(0) invert(1);
}

.nav {
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.nav a {
  display: flex;
  align-items: center;
  gap: 13px;
  min-height: 46px;
  padding: 12px 15px;
  border-radius: 9px;
  font-size: 14px;
  font-weight: 500;
  transition:
    background 0.16s,
    color 0.16s;
}
.nav a > .icon {
  width: 19px;
  height: 19px;
}
.nav a:hover {
  color: white;
  background: #ffffff0b;
}
.nav a.active {
  background: var(--accent);
  color: var(--ink);
}
.nav a:focus-visible,
.logout:focus-visible {
  outline-color: var(--accent);
}
.nav-divider {
  height: 1px;
  background: #ffffff16;
  margin: 26px 14px;
}
.sidebar-bottom {
  margin-top: auto;
  padding-top: 40px;
}
.sidebar-status {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 11px;
  color: #a6a99e;
  padding: 14px 11px;
}
.sidebar-status > .icon {
  margin-left: auto;
  width: 13px;
}
.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #92958a;
  flex: none;
}
.status-dot.online {
  background: var(--accent);
}
.profile {
  border-top: 1px solid #ffffff18;
  padding: 20px 8px 0;
  display: flex;
  gap: 10px;
  align-items: center;
}
.avatar {
  width: 36px;
  height: 36px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: var(--accent);
  color: var(--ink);
  font-size: 12px;
  font-weight: 600;
}
.profile > div {
  min-width: 0;
}
.profile strong {
  display: block;
  font-size: 12px;
  font-weight: 500;
  color: white;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.profile small {
  display: block;
  font-size: 10px;
  color: #9da194;
  margin-top: 4px;
}
.logout {
  margin-left: auto;
  display: grid;
  place-items: center;
  min-width: 30px;
  min-height: 36px;
  padding: 5px;
  background: none;
  border: 0;
  color: #9da194;
}
.logout:hover {
  color: var(--accent);
}
.shell {
  margin-left: var(--sidebar);
  min-height: 100vh;
}
.topbar {
  height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 0 40px;
  border-bottom: 1px solid var(--line);
}
.topbar-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 500;
}
.product-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ink);
}
.top-actions {
  display: flex;
  gap: 20px;
  align-items: center;
}
.env-label {
  font-size: 11px;
  color: #5c6154;
  display: flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
}
.env-label > span {
  width: 6px;
  height: 6px;
  border: 1px solid #7e8474;
  border-radius: 50%;
}
.client-picker {
  position: relative;
  display: block;
  width: 216px;
  min-width: 0;
}
.client-picker > .icon {
  position: absolute;
  inset-inline-start: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  pointer-events: none;
  z-index: 1;
}
.client-select {
  width: 190px;
  max-width: 100%;
}
.client-picker .client-select {
  width: 100%;
  padding-inline-start: 40px;
}
.main {
  padding: 35px 40px 50px;
  max-width: 1650px;
  margin: 0 auto;
}
.page-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 30px;
}
.page-head > h1 {
  overflow-wrap: anywhere;
  min-width: 0;
}
.page-actions {
  flex: none;
}
.page-head .button-row {
  justify-content: flex-end;
}
.button-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 9px;
}
/* Shared surfaces and controls */
.btn {
  border: 1px solid #d7d9d0;
  border-radius: 8px;
  background: white;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 43px;
  padding: 11px 17px;
  font-weight: 500;
  font-size: 13px;
  line-height: 1.25;
  white-space: nowrap;
  transition:
    background 0.15s,
    border-color 0.15s,
    transform 0.15s;
}
.btn:hover {
  background: #f4f5ef;
  border-color: #b6baac;
}
.btn:active:not(:disabled) {
  transform: translateY(1px);
}
.btn.primary {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--ink);
  font-weight: 600;
}
.btn.primary:hover {
  background: #c7f02e;
  border-color: #c7f02e;
}
.btn.dark {
  background: var(--ink);
  color: white;
  border-color: var(--ink);
}
.btn.danger {
  background: #fff1ed;
  color: #a32f20;
  border-color: #f0c7bf;
}
.btn.sm {
  min-height: 36px;
  font-size: 12px;
  padding: 8px 12px;
}
.btn.link {
  min-height: 30px;
  padding: 3px 0;
  background: none;
  border: 0;
  color: #41463a;
}
.btn.link:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}
.icon-btn {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 36px;
  height: 36px;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: #53594c;
}
.icon-btn:hover {
  background: var(--accent-soft);
  border-color: #b8c39e;
  color: var(--ink);
}
.top-actions > .icon-btn {
  width: 40px;
  height: 40px;
  border-color: transparent;
}
.card {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  min-width: 0;
}
.card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 22px 24px;
  border-bottom: 1px solid #edeee7;
  min-height: 71px;
}
.card-head h2 {
  margin: 0;
  font-size: 16px;
}
.card-head p {
  font-size: 12px;
  margin: 5px 0 0;
  color: var(--muted);
}
.card-body {
  padding: 24px;
}
.section-space {
  margin-top: 24px;
}
.grid-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 24px;
  margin-bottom: 24px;
}
.grid-two,
.panel-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}
/* Dashboard */
.metric-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}
.metric {
  padding: 21px 24px 25px;
  overflow: hidden;
}
.metric:first-child {
  background: var(--accent);
  border-color: var(--accent);
}
.metric-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 13px;
  font-weight: 500;
  color: #545a4c;
  margin-bottom: 26px;
}
.metric:first-child .metric-label {
  color: #34400d;
}
.metric-label > .icon {
  width: 19px;
  height: 19px;
  opacity: 0.8;
}
.metric-value {
  font-size: 42px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: -1.9px;
  font-variant-numeric: tabular-nums;
}
.chart-card .card-head {
  border: 0;
}
.period-label {
  font-size: 11px;
  border: 1px solid var(--line);
  padding: 6px 10px;
  border-radius: 6px;
  color: var(--muted);
}
.chart-wrap {
  height: 236px;
  position: relative;
  padding: 12px 26px 38px 49px;
}
.chart-grid {
  display: flex;
  align-items: flex-end;
  gap: 7px;
  height: 100%;
  border-bottom: 1px solid #dadfd0;
  background: repeating-linear-gradient(
    to top,
    transparent 0,
    transparent calc(25% - 1px),
    #edeee7 calc(25% - 1px),
    #edeee7 25%
  );
}
.chart-column {
  height: 100%;
  flex: 1;
  display: flex;
  align-items: flex-end;
  min-width: 0;
}
.chart-bar {
  display: block;
  width: 100%;
  background: var(--accent);
  border-radius: 4px 4px 0 0;
}
.chart-column:hover .chart-bar {
  background: #b6d82a;
}
.chart-scale {
  position: absolute;
  left: 24px;
  top: 5px;
  bottom: 32px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  font-size: 10px;
  color: #68735c;
}
.chart-labels {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 10px;
  color: var(--muted);
  padding-top: 12px;
}
.chart-empty {
  position: absolute;
  inset: 15px 30px 40px 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 13px;
  font-size: 12px;
  color: #676e5e;
}
.empty-chart-icon {
  background: white;
  box-shadow: 0 0 0 8px #ffffffab;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #7c8768;
}
.chart-empty > span:last-child {
  background: #ffffffdf;
  padding: 3px 10px;
}
.create-card {
  position: relative;
  isolation: isolate;
  min-height: 306px;
  border-radius: var(--radius);
  background: #151713;
  overflow: hidden;
  color: white;
  padding: 27px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.create-card-photo {
  position: absolute;
  z-index: 0;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 20%;
  pointer-events: none;
}
.create-card::after {
  content: "";
  position: absolute;
  z-index: 1;
  inset: 0;
  background: linear-gradient(
    180deg,
    #0d0e1000 25%,
    #0d0e1014 42%,
    #0d0e10d6 83%,
    #0d0e10f2
  );
  pointer-events: none;
}
.create-card-content {
  z-index: 2;
  position: relative;
}
.create-card h2 {
  font-size: 24px;
  margin-bottom: 18px;
  font-weight: 500;
  text-shadow: 0 2px 12px #0006;
}
.create-card .btn {
  width: 100%;
  justify-content: space-between;
}
/* Data lists */
.table-wrap {
  overflow: auto;
  border-radius: 0 0 var(--radius) var(--radius);
}
table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 13px;
}
th {
  background: #fafbf7;
  color: #686f5f;
  font-size: 11px;
  font-weight: 500;
  padding: 13px 24px;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
td {
  padding: 18px 24px;
  border-bottom: 1px solid #edeee8;
  vertical-align: middle;
  color: #454a40;
  line-height: 1.5;
}
tbody tr:hover {
  background: #fafbf6;
}
tr:last-child td {
  border-bottom: 0;
}
td strong {
  display: block;
  color: var(--ink);
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 4px;
}
td small {
  font-size: 11px;
  color: #686f5f;
}
td > .button-row {
  flex-wrap: nowrap;
}
.table-title {
  display: flex;
  align-items: center;
  gap: 12px;
}
.table-title > span:last-child {
  min-width: 0;
}
.table-title:hover strong {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.tile-icon {
  width: 38px;
  height: 38px;
  flex: none;
  border: 1px solid #e5e8dc;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: #f5f7ef;
  color: #6c765b;
}
.tile-icon .icon {
  width: 18px;
  height: 18px;
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 500;
  white-space: nowrap;
  line-height: 1.3;
  padding: 6px 9px;
  border-radius: 6px;
  background: #f0f2eb;
  color: #566047;
}
.pill .dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
}
.pill.draft {
  background: #f0f0eb;
  color: #66695f;
}
.pill.completed,
.pill.sent,
.pill.subscribed,
.pill.approved {
  background: #edf5d9;
  color: #426124;
}
.pill.queued,
.pill.sending {
  background: #eaf0ff;
  color: #3f5d9f;
}
.pill.pending,
.pill.paused {
  background: #fff4dc;
  color: #8b641c;
}
.pill.failed,
.pill.uncertain,
.pill.complained,
.pill.bounced {
  background: #ffebe6;
  color: #a03e2b;
}
.pill.cancelled,
.pill.unsubscribed,
.pill.skipped {
  background: #f0f0ec;
  color: #72776b;
}
.pill.simulated {
  background: #f0ebfc;
  color: #715299;
}
.empty-state {
  padding: 49px 26px;
  text-align: center;
  color: var(--muted);
}
.empty-state > .icon {
  width: 30px;
  height: 30px;
  color: #8a9576;
  margin: 0 auto 17px;
}
.empty-state h3 {
  font-size: 16px;
  font-weight: 500;
  color: var(--ink);
  margin: 0 0 10px;
}
.empty-state p {
  font-size: 13px;
  max-width: 360px;
  margin: 0 auto 19px;
}
.empty-state p:empty {
  display: none;
}
.empty-state .btn {
  margin-top: 8px;
}
.toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 15px;
  padding: 18px 24px;
  border-bottom: 1px solid var(--line);
}
.toolbar .input {
  max-width: 310px;
}
.toolbar .btn.sm,
.toolbar .input {
  min-height: 44px;
}
.result-count {
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
}
.search-field {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #737a67;
  width: 290px;
  max-width: 100%;
  border: 1px solid var(--line);
  padding-left: 12px;
  border-radius: 8px;
}
.search-field .input {
  border: 0;
  box-shadow: none;
  padding-left: 0;
  background: transparent;
  min-height: 39px;
}
.search-field:focus-within {
  border-color: #7e9a2b;
  box-shadow: 0 0 0 3px #d4ff3a35;
}
.filter-tabs {
  display: flex;
  align-items: center;
  gap: 24px;
  overflow-x: auto;
  padding: 0 24px;
  border-bottom: 1px solid var(--line);
}
.filter-tabs button {
  flex: none;
  display: flex;
  gap: 8px;
  align-items: center;
  min-height: 59px;
  border: 0;
  border-bottom: 2px solid transparent;
  background: none;
  padding: 12px 0;
  font-size: 12px;
  color: var(--muted);
}
.filter-tabs button span {
  font-size: 10px;
  background: #f1f2ec;
  border-radius: 5px;
  padding: 2px 6px;
  min-width: 18px;
}
.filter-tabs button.active {
  color: var(--ink);
  font-weight: 600;
  border-color: var(--ink);
}
.filter-tabs button.active span {
  background: var(--accent);
}
.pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 18px 24px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  color: var(--muted);
}
.activity-list {
  padding: 4px 24px;
}
.activity-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 18px 0;
  border-bottom: 1px solid #edeee8;
}
.activity-item:last-child {
  border: 0;
}
.activity-dot {
  width: 7px;
  height: 7px;
  flex: none;
  border-radius: 50%;
  background: #b1bf95;
  margin-top: 7px;
}
.activity-item strong {
  display: block;
  font-weight: 400;
  font-size: 12px;
  line-height: 1.5;
  margin-bottom: 5px;
}
.activity-item small {
  font-size: 10px;
  color: #68735c;
}
.activity-card .card-head > .icon-btn {
  border: 0;
}
.tag {
  display: inline-block;
  margin: 2px 5px 2px 0;
  font-size: 11px;
  color: #5a6350;
  background: #f0f3e9;
  padding: 4px 7px;
  border-radius: 5px;
}
.table-wrap {
  position: relative;
}
/* Forms */
.input,
textarea {
  width: 100%;
  min-height: 43px;
  border: 1px solid #d7dbcd;
  border-radius: 8px;
  background: white;
  color: var(--ink);
  padding: 11px 12px;
  font-size: 13px;
  transition:
    border 0.15s,
    box-shadow 0.15s;
}
.input:focus,
textarea:focus {
  outline: 0;
  border-color: #7a9139;
  box-shadow: 0 0 0 3px #d4ff3a35;
}
/* One native select for filters, client switching and every form. */
.select-control {
  --select-chevron: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none'%3E%3Cpath d='m6 8 4 4 4-4' stroke='%23545b49' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  appearance: none;
  min-width: 0;
  height: 44px;
  padding: 0 40px 0 14px;
  border: 1px solid #d7dbcd;
  border-radius: 10px;
  background: white var(--select-chevron) right 12px center / 18px no-repeat;
  color: var(--ink);
  font:
    500 13px/1.4 "Chakra Petch",
    Arial,
    sans-serif;
  text-align: start;
  text-overflow: ellipsis;
  cursor: pointer;
  transition:
    border-color 0.16s,
    box-shadow 0.16s,
    background-color 0.16s;
}
.select-control.field {
  width: 100%;
}
.select-control:hover:not(:disabled) {
  background-color: #fafbf6;
  border-color: #aeb6a1;
}
.select-control:focus-visible,
.select-control:open {
  outline: 0;
  border-color: #7a9139;
  box-shadow: 0 0 0 3px #d4ff3a35;
}
.select-control:disabled {
  background-color: #f3f4ef;
  color: #888e80;
  cursor: not-allowed;
}
@supports (appearance: base-select) {
  .select-control,
  .select-control::picker(select) {
    appearance: base-select;
  }
  .select-control {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-inline-end: 12px;
    background-image: none;
  }
  .select-control > button {
    display: flex;
    flex: 1;
    align-items: center;
    min-width: 0;
    padding: 0;
    border: 0;
    background: none;
    color: inherit;
    font: inherit;
    text-align: inherit;
  }
  .select-control selectedcontent {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .select-control::picker-icon {
    content: "";
    flex: 0 0 18px;
    width: 18px;
    height: 18px;
    margin: 0 0 0 auto;
    background: var(--select-chevron) center / contain no-repeat;
    transition: transform 0.18s;
  }
  .select-control:open::picker-icon {
    transform: rotate(180deg);
  }
  .select-control::picker(select) {
    width: anchor-size(width);
    max-width: calc(100vw - 24px);
    max-height: min(320px, 60dvh);
    margin-block: 6px;
    padding: 6px;
    overflow: auto;
    overscroll-behavior: contain;
    border: 1px solid #dce0d4;
    border-radius: 14px;
    background: white;
    color: var(--ink);
    box-shadow:
      0 16px 40px #0d0e101a,
      0 3px 8px #0d0e100a;
    font:
      500 13px/1.45 "Chakra Petch",
      Arial,
      sans-serif;
    scrollbar-width: thin;
    scrollbar-color: #c7cebb transparent;
  }
  .select-control::picker(select):popover-open {
    animation: select-reveal 0.16s ease-out;
  }
  .select-control option {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 44px;
    padding: 11px 12px;
    border: 0;
    border-radius: 8px;
    color: var(--ink);
    background: transparent;
    white-space: normal;
    overflow-wrap: anywhere;
    cursor: pointer;
  }
  .select-control option + option {
    margin-top: 3px;
  }
  .select-control option:checked {
    background: var(--accent-soft);
    font-weight: 600;
  }
  .select-control option:hover:not(:disabled),
  .select-control option:focus-visible {
    background: #f1f3eb;
    outline: 1px solid #b8c59a;
    outline-offset: -1px;
  }
  .select-control option:checked:hover,
  .select-control option:checked:focus-visible {
    background: #e8f6bf;
  }
  .select-control option::checkmark {
    order: 1;
    flex: 0 0 20px;
    display: grid;
    place-items: center;
    width: 20px;
    height: 20px;
    margin-inline-start: auto;
    border-radius: 50%;
    background: var(--accent);
    color: var(--ink);
    font:
      600 12px/1 Arial,
      sans-serif;
  }
  .select-control option:disabled {
    color: #929889;
    background: transparent;
    cursor: not-allowed;
  }
}
@keyframes select-reveal {
  from {
    opacity: 0;
    translate: 0 -4px;
  }
  to {
    opacity: 1;
    translate: 0 0;
  }
}
.input::placeholder,
textarea::placeholder {
  color: #707765;
}
.input[readonly] {
  background: #f5f6f0;
  color: #747a6a;
}
.input[type="color"] {
  padding: 5px;
  cursor: pointer;
}
textarea {
  resize: vertical;
  min-height: 110px;
  line-height: 1.7;
}
.field-row {
  margin-bottom: 20px;
  min-width: 0;
}
.field-row label,
.field-label {
  display: block;
  margin-bottom: 8px;
  font-size: 12px;
  font-weight: 500;
  color: #424a38;
}
.field-row small {
  display: block;
  font-size: 11px;
  line-height: 1.6;
  margin-top: 7px;
}
.form-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 0 18px;
}
.form-note {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 0;
}
.check-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 12px;
  color: #555f49;
  line-height: 1.6;
  margin: 16px 0 21px;
}
.check-row input {
  width: 16px;
  height: 16px;
  margin: 2px 0 0;
  accent-color: #6c891b;
  flex: none;
}
.hint {
  background: #f3f6eb;
  border: 1px solid #dfe6d2;
  padding: 14px 16px;
  border-radius: 9px;
  font-size: 12px;
  line-height: 1.65;
  color: #5d684c;
}
.hint.warning {
  background: #fff8e7;
  border-color: #f0dfb1;
  color: #856425;
}
.hint.error {
  background: #fff0ea;
  border-color: #f1ccbf;
  color: #a63c24;
}
.hint.success {
  background: #f0f8e6;
  border-color: #d4e5ba;
  color: #456825;
}
.hint a {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.disclosure {
  border-top: 1px solid var(--line);
  padding: 15px 0;
  font-size: 12px;
  color: var(--muted);
}
.disclosure > summary {
  font-weight: 500;
  color: #505a42;
  min-height: 25px;
  line-height: 25px;
}
.disclosure > div {
  padding-top: 16px;
}
.disclosure .field-row:last-child {
  margin-bottom: 0;
}
.report-info {
  padding: 5px 0;
  border: 0;
}
.report-info p {
  max-width: 780px;
  margin: 0;
}
.setup-guide > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  list-style: none;
  padding: 22px 24px;
  font-weight: 500;
  font-size: 14px;
}
.setup-guide > summary::-webkit-details-marker {
  display: none;
}
.setup-guide[open] > summary {
  border-bottom: 1px solid var(--line);
}
.setup-guide[open] > summary > .icon {
  transform: rotate(180deg);
}
.setup-list {
  padding: 0;
  margin: 0;
  list-style: none;
  counter-reset: setup;
  display: grid;
  gap: 25px;
}
.setup-list li {
  padding-left: 40px;
  position: relative;
  counter-increment: setup;
}
.setup-list li:before {
  content: counter(setup);
  position: absolute;
  left: 0;
  top: 0;
  width: 25px;
  height: 25px;
  display: grid;
  place-items: center;
  background: var(--accent-soft);
  border: 1px solid #d8e3c0;
  border-radius: 6px;
  font-size: 11px;
}
.setup-list strong {
  display: block;
  margin: 3px 0 12px;
  font-size: 13px;
  font-weight: 500;
}
.setup-list p {
  font-size: 12px;
  color: var(--muted);
  margin: 0 0 12px;
  max-width: 800px;
}
.simple-list {
  padding-left: 20px;
  font-size: 13px;
  line-height: 1.85;
  color: #5c6550;
}
.simple-list li {
  padding-bottom: 12px;
}
.connection-bar {
  background: var(--dark);
  color: white;
  padding: 21px 24px;
  margin-bottom: 24px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  gap: 16px;
}
.connection-icon {
  width: 42px;
  height: 42px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: var(--accent);
  color: var(--ink);
}
.connection-bar > div {
  flex: 1;
}
.connection-bar strong {
  display: block;
  font-size: 14px;
  font-weight: 500;
}
.connection-bar > div > span {
  display: block;
  margin-top: 5px;
  font-size: 11px;
  color: #aeb5a0;
}
.connection-bar > .pill {
  background: #ffffff10;
  color: #d9dfce;
}
.status-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 0 0 20px;
}
.status-box {
  padding: 15px;
  border: 1px solid var(--line);
  background: #f8faf3;
  border-radius: 9px;
  min-width: 0;
}
.status-box small {
  font-size: 10px;
}
.status-box strong {
  display: block;
  margin-top: 9px;
  font-size: 20px;
  font-weight: 500;
  overflow-wrap: anywhere;
  line-height: 1.25;
}
.detail-list {
  margin: 0 0 25px;
}
.detail-list > div {
  display: flex;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid #ebeee2;
  gap: 12px;
  font-size: 12px;
}
.detail-list dt {
  color: var(--muted);
}
.detail-list dd {
  margin: 0;
  text-align: right;
}
.copy-line {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #f6f8f0;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 9px 12px;
}
.copy-line code {
  font-size: 11px;
  flex: 1;
}
.copy-line .icon-btn {
  width: 30px;
  height: 30px;
  border: 0;
}
.code-box {
  background: #161a12;
  color: #d4e3b9;
  padding: 18px;
  border-radius: 9px;
  font:
    12px/1.7 ui-monospace,
    Consolas,
    monospace;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  max-height: 250px;
  overflow: auto;
}
.setup-guide .code-box {
  margin-top: 20px;
}
.cost-result {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin: 5px 0 15px;
}
.cost-result strong {
  font-size: 30px;
  font-weight: 500;
  letter-spacing: -1px;
}
.cost-result a {
  font-size: 12px;
  color: #576444;
}
.account-identity {
  display: flex;
  align-items: center;
  gap: 14px;
}
.account-identity .avatar {
  width: 48px;
  height: 48px;
  font-size: 18px;
}
.account-identity strong {
  display: block;
  font-size: 16px;
  font-weight: 500;
}
.account-identity small {
  display: block;
  margin-top: 5px;
}
.dns-table td,
.dns-table th {
  font-size: 11px;
  padding: 13px;
  overflow-wrap: anywhere;
}
/* Clients and message templates */
.client-grid,
.template-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}
.client-card {
  padding: 24px;
}
.brand-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  background: var(--ink);
  color: var(--accent);
  border-radius: 12px;
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 26px;
}
.client-card h2 {
  font-size: 21px;
  margin: 0 0 7px;
}
.sender {
  font-size: 12px;
  color: var(--muted);
  overflow-wrap: anywhere;
  margin-bottom: 26px;
}
.client-stats {
  display: flex;
  gap: 40px;
  border-top: 1px solid var(--line);
  padding-top: 22px;
  margin-bottom: 24px;
}
.client-stats b {
  font-size: 26px;
  font-weight: 500;
  display: block;
  margin-bottom: 4px;
  line-height: 1;
}
.client-stats small {
  font-size: 11px;
}
.client-card > .button-row {
  gap: 7px;
}
.template-grid > .card {
  overflow: hidden;
  transition:
    box-shadow 0.18s,
    transform 0.18s;
}
.template-grid > .card:hover {
  box-shadow: 0 9px 25px #0d0e1009;
  transform: translateY(-2px);
}
.template-preview {
  height: 225px;
  padding: 27px 35px 0;
  background: repeating-linear-gradient(
    135deg,
    #e8ebdf 0,
    #e8ebdf 1px,
    #f1f4e9 1px,
    #f1f4e9 8px
  );
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.mock-email {
  background: white;
  border: 1px solid #dce2cf;
  border-radius: 8px 8px 0 0;
  padding: 25px;
  min-height: 225px;
  box-shadow: 0 8px 25px #36420e0b;
}
.mock-eyebrow {
  font-size: 8px;
  letter-spacing: 1px;
  color: #687a4a;
  margin-bottom: 16px;
}
.mock-email h3 {
  font-size: 20px;
  line-height: 1.3;
  max-width: 230px;
}
.mock-line {
  height: 5px;
  background: #ecefe4;
  margin-bottom: 8px;
  width: 100%;
}
.template-info {
  padding: 23px;
}
.template-info h3 {
  font-size: 16px;
  margin-bottom: 10px;
}
.template-info p {
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 19px;
}
.template-info .button-row {
  justify-content: space-between;
}
.template-info .btn {
  background: var(--accent);
  border-color: var(--accent);
}
/* Campaign editor */
.campaign-method {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  border: 0;
  padding: 0;
  margin: 0 0 20px;
  min-width: 0;
}
.campaign-method legend {
  margin-bottom: 8px;
  font-size: 12px;
  font-weight: 500;
  color: #424a38;
}
.campaign-method label {
  position: relative;
  cursor: pointer;
}
.campaign-method input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}
.campaign-method span {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 58px;
  border: 1px solid var(--line);
  border-radius: 10px;
  font-size: 13px;
  background: white;
}
.campaign-method input:checked + span {
  background: var(--accent-soft);
  border-color: #8ba54c;
}
.campaign-method input:focus-visible + span {
  outline: 2px solid #668000;
  outline-offset: 3px;
}
.code-symbol {
  font: 600 16px/1 monospace;
}
.html-drop {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 23px 15px;
  border: 1px dashed #aab49a;
  border-radius: 12px;
  background: #f8faf3;
  text-align: center;
  cursor: pointer;
  transition:
    background 0.15s,
    border-color 0.15s;
}
.html-drop:hover,
.html-drop.is-dragging {
  background: var(--accent-soft);
  border-color: #668000;
}
.html-drop:focus-within {
  outline: 2px solid #668000;
  outline-offset: 3px;
}
.html-drop.is-loaded {
  border-style: solid;
}
.html-drop input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}
.html-drop-icon {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  margin-bottom: 3px;
  border-radius: 10px;
  background: var(--accent);
}
.html-drop strong {
  font-size: 14px;
  font-weight: 600;
}
.html-drop > span:not(.html-drop-icon) {
  font-size: 12px;
}
.html-drop small {
  color: var(--muted);
  font-size: 11px;
}
#new-html {
  margin-bottom: 22px;
}
#new-html-result {
  margin: 10px 0;
  overflow-wrap: anywhere;
}
#new-html-result:empty {
  display: none;
}
.html-fieldset {
  border: 0;
  padding: 0;
  margin: 0;
  min-width: 0;
}
.html-file {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #fafbf7;
}
.html-file-icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 38px;
  height: 44px;
  border-radius: 7px;
  background: var(--accent-soft);
  font: 600 15px/1 monospace;
}
.html-file > div {
  flex: 1;
  min-width: 0;
}
.html-file strong {
  display: block;
  font-size: 13px;
  font-weight: 500;
  overflow-wrap: anywhere;
}
.html-file small {
  display: block;
  font-size: 11px;
  color: var(--muted);
  margin-top: 4px;
}
.html-links {
  margin-top: 24px;
}
.html-links h3 {
  font-size: 14px;
  font-weight: 600;
  margin: 0 0 16px;
}
.html-source {
  margin-top: 16px;
}
.html-source > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 44px;
  list-style: none;
}
.html-source > summary::-webkit-details-marker {
  display: none;
}
.html-source > summary::after {
  content: "";
  width: 7px;
  height: 7px;
  flex: none;
  margin-right: 6px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
  transition: transform 0.16s;
}
.html-source[open] > summary::after {
  transform: rotate(225deg);
}
.html-source > div {
  padding: 10px 0 0;
}
textarea.html-code {
  min-height: 320px;
  padding: 15px;
  border-color: #353b30;
  border-radius: 10px;
  background: #151815;
  color: #e9f0dd;
  font:
    12px/1.65 Consolas,
    monospace;
  tab-size: 2;
  resize: vertical;
}
.html-code::placeholder {
  color: #99a58b;
}
.html-footnote {
  margin: 16px 0 0;
}
#preview-feedback {
  margin: 0 0 12px;
}
.editor-layout {
  display: grid;
  grid-template-columns: minmax(350px, 1fr) minmax(390px, 1.12fr);
  gap: 24px;
  align-items: start;
}
.editor-fields {
  display: grid;
  gap: 22px;
  min-width: 0;
}
.block-card {
  border: 1px solid #dce2cf;
  border-radius: 10px;
  padding: 17px;
  margin-bottom: 14px;
  background: #fafbf7;
}
.block-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  font-size: 11px;
  color: #68775a;
  margin-bottom: 14px;
}
.block-controls {
  display: flex;
  gap: 4px;
}
.block-controls button {
  display: grid;
  place-items: center;
  min-width: 27px;
  height: 27px;
  border: 0;
  border-radius: 5px;
  background: none;
  color: #6a765c;
  padding: 4px;
}
.block-controls button:hover {
  background: #eaf0de;
}
.block-controls .icon {
  width: 15px;
  height: 15px;
}
.block-card textarea {
  min-height: 115px;
}
.url-input {
  margin-top: 10px;
}
.block-add {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  padding-top: 5px;
}
.block-add button {
  border: 1px solid #dbe2cf;
  background: #f5f8ee;
  border-radius: 6px;
  padding: 9px 10px;
  font-size: 11px;
  color: #576846;
  min-height: 36px;
}
.block-add button:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--ink);
}
.preview-panel {
  position: sticky;
  top: 20px;
  min-width: 0;
  background: #e1e5d8;
  border: 1px solid #d3dac5;
  border-radius: 14px;
  padding: 0 18px 20px;
}
.preview-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  padding: 15px 0;
  color: #515f40;
  font-size: 12px;
}
.preview-toolbar .icon-btn {
  width: 30px;
  height: 30px;
  border: 0;
}
.preview-toolbar .icon-btn:hover,
.preview-toolbar .icon-btn[aria-pressed="true"] {
  background: white;
}
.preview-frame {
  border: 0;
  background: white;
  width: 100%;
  height: 680px;
  display: block;
  border-radius: 6px;
  margin: auto;
  transition: width 0.2s;
}
.preview-frame.mobile {
  width: 320px;
  max-width: 100%;
}
.report-title {
  display: flex;
  gap: 10px;
  align-items: center;
}
.progress {
  height: 7px;
  border-radius: 4px;
  background: #e7ecd9;
  overflow: hidden;
}
.progress > span {
  display: block;
  height: 100%;
  background: #89a72a;
}
/* Dialogs and feedback */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: #0d0e1066;
  backdrop-filter: blur(5px);
}
.modal {
  width: 540px;
  max-width: 100%;
  max-height: 90dvh;
  overflow-y: auto;
  background: white;
  border: 1px solid #d9dece;
  border-radius: 18px;
  box-shadow: 0 26px 80px #0d0e1033;
  animation: panel-in 0.18s ease;
}
.modal.wide {
  width: 810px;
}
.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 23px 26px;
  border-bottom: 1px solid var(--line);
}
.modal-head h2 {
  font-size: 21px;
  margin: 0;
}
.modal-head .icon-btn {
  border: 0;
}
.modal-body {
  padding: 26px;
}
.modal-body > p {
  font-size: 13px;
  color: var(--muted);
}
.modal-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  padding: 18px 26px;
  border-top: 1px solid var(--line);
  background: #fafbf7;
}
.modal form {
  margin: 0;
}
.modal-body form > button[type="submit"] {
  margin-top: 5px;
}
.upload-zone {
  border: 1px dashed #b7c49e;
  background: #f8fbf1;
  border-radius: 10px;
  padding: 28px 20px;
  text-align: center;
  margin-bottom: 17px;
  color: #566344;
}
.upload-zone > .icon {
  width: 30px;
  height: 30px;
  display: block;
  margin: 0 auto 14px;
}
.upload-zone strong {
  font-size: 14px;
  font-weight: 500;
}
.upload-zone p {
  font-size: 12px;
  margin: 9px 0 17px;
}
.upload-zone input {
  max-width: 100%;
  font-size: 12px;
}
.upload-zone input::file-selector-button {
  background: var(--accent);
  border: 0;
  border-radius: 6px;
  padding: 9px 13px;
  margin-right: 9px;
  cursor: pointer;
  font: inherit;
}
.toast {
  background: var(--ink);
  color: white;
  padding: 15px 20px;
  border-radius: 10px;
  border-left: 3px solid var(--accent);
  box-shadow: 0 8px 30px #0d0e1029;
  max-width: 420px;
  font-size: 13px;
  line-height: 1.6;
  animation: panel-in 0.2s ease;
}
.toast.error {
  border-left-color: #ff8b70;
}
#toasts {
  position: fixed;
  z-index: 200;
  right: 26px;
  bottom: 26px;
  display: grid;
  gap: 10px;
}
.spinner {
  width: 22px;
  height: 22px;
  border: 2px solid #d1d7c5;
  border-top-color: #64821e;
  border-radius: 50%;
  animation: spin 0.75s linear infinite;
  margin: 45px auto;
}
.loading-screen {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  background: var(--dark);
}
.loading-screen > img {
  width: 200px;
  height: auto;
  filter: brightness(0) invert(1);
}
.loading-screen .spinner {
  border-color: #ffffff30;
  border-top-color: var(--accent);
  margin: 30px auto;
}
.loading-screen h2 {
  color: white;
}
.loading-screen p {
  color: #adb89b;
}
.nowrap {
  white-space: nowrap;
}
.text-right {
  text-align: right;
}
.danger-text {
  color: #ad3e29;
}
/* Login */

.public-page {
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: 24px;
}
.public-card {
  width: 100%;
  max-width: 480px;
  padding: 38px;
}
.public-sender {
  font-size: 13px;
  font-weight: 600;
  border-bottom: 1px solid var(--line);
  padding-bottom: 22px;
  margin-bottom: 28px;
}
.public-card h1 {
  font-size: 28px;
  line-height: 1.25;
  margin-bottom: 18px;
}
.public-card p {
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 28px;
}
.public-card .btn {
  width: 100%;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
@keyframes panel-in {
  from {
    opacity: 0;
    transform: translateY(7px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
/* Responsive layouts keep all destinations available. */
@media (min-width: 1800px) {
  .main {
    padding-top: 44px;
  }
  .topbar {
    padding-inline: 55px;
  }
  .metric {
    padding: 26px 29px 29px;
  }
  .metric-value {
    font-size: 48px;
  }
  .metric-label {
    margin-bottom: 30px;
  }
  .grid-main {
    grid-template-columns: minmax(0, 1fr) 375px;
  }
  .chart-wrap {
    height: 260px;
  }
  .create-card {
    min-height: 330px;
  }
}
@media (max-width: 1250px) {
  :root {
    --sidebar: 218px;
  }
  .sidebar {
    padding-inline: 13px;
  }
  .brand {
    padding-inline: 8px;
  }
  .brand-wordmark {
    width: 125px;
  }

  .main {
    padding: 30px 26px 40px;
  }
  .topbar {
    padding-inline: 26px;
  }
  .grid-main {
    grid-template-columns: minmax(0, 1fr) 290px;
    gap: 20px;
  }
  .metric {
    padding: 20px;
  }
  .metric-grid {
    gap: 12px;
  }
  .metric-value {
    font-size: 37px;
  }
  .metric-label {
    font-size: 12px;
  }
  .client-grid,
  .template-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .editor-layout {
    grid-template-columns: minmax(310px, 1fr) minmax(310px, 1fr);
    gap: 18px;
  }
  .editor-layout .card-body {
    padding: 20px;
  }
  .editor-layout .card-head {
    padding: 18px 20px;
  }
  .editor-layout .card-head h2 {
    font-size: 14px;
  }
  .editor-layout .card-head .btn {
    font-size: 11px;
  }
  .page-head h1 {
    font-size: 32px;
  }
  th,
  td {
    padding-inline: 19px;
  }
  .filter-tabs {
    gap: 18px;
  }
  .filter-tabs button {
    font-size: 11px;
  }
  .status-grid {
    gap: 8px;
  }
  .status-box {
    padding: 12px;
  }
  .status-box strong {
    font-size: 18px;
  }
}
@media (max-width: 1020px) {
  :root {
    --sidebar: 78px;
  }
  .sidebar {
    padding: 25px 10px 20px;
    overflow-x: hidden;
  }
  .brand {
    padding: 0 0 31px;
    display: block;
  }
  .brand-wordmark {
    width: 58px;
  }

  .nav-text,
  .sidebar-status,
  .profile > div,
  .profile > .logout {
    display: none;
  }
  .nav a {
    justify-content: center;
    min-height: 48px;
    padding: 13px;
  }
  .nav-divider {
    margin: 22px 9px;
  }
  .profile {
    padding: 18px 0 0;
    justify-content: center;
  }
  .sidebar-bottom {
    padding-top: 25px;
  }
  .grid-main {
    grid-template-columns: minmax(0, 1fr) 280px;
  }
  .panel-grid {
    gap: 20px;
  }
  .topbar {
    height: 74px;
  }
  .editor-layout {
    grid-template-columns: 1fr;
  }
  .preview-panel {
    position: static;
  }
  .preview-frame {
    height: 700px;
  }
  .top-actions {
    gap: 16px;
  }
  .skip-link {
    left: 90px;
  }
}
@media (max-width: 780px) {
  .main {
    padding: 26px 22px 36px;
  }
  .topbar {
    padding-inline: 22px;
  }
  .topbar-title {
    display: none;
  }
  .top-actions {
    width: 100%;
    justify-content: space-between;
    gap: 10px;
  }
  .metric-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
  .metric-label {
    margin-bottom: 20px;
  }
  .grid-main,
  .grid-two,
  .panel-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .create-card {
    min-height: 300px;
    padding: 24px;
  }
  .create-card-content {
    max-width: none;
  }
  .create-card h2 {
    font-size: 23px;
    margin-bottom: 17px;
  }

  .create-card-content .btn {
    width: 100%;
    min-width: 185px;
  }
  .page-head {
    align-items: flex-start;
    gap: 15px;
  }
  .page-head h1 {
    font-size: 29px;
    padding-top: 5px;
  }
  .page-head .button-row {
    gap: 7px;
    max-width: 320px;
  }
  .page-head .btn {
    font-size: 12px;
    padding: 10px 12px;
  }
  .page-head .button-row .btn {
    font-size: 11px;
  }
  .client-grid,
  .template-grid {
    gap: 16px;
  }
  .client-card {
    padding: 20px;
  }
  .client-card .client-stats {
    gap: 25px;
  }
  .client-card h2 {
    font-size: 18px;
  }
  .client-card .btn.sm {
    font-size: 11px;
    padding-inline: 9px;
  }
  .template-preview {
    padding: 25px 20px 0;
  }
  .template-info {
    padding: 20px;
  }
  .template-info h3 {
    font-size: 14px;
  }

  .filter-tabs {
    gap: 22px;
  }
  .toolbar {
    padding: 16px 20px;
  }
  .toolbar input {
    max-width: 100%;
  }
  .toolbar .button-row {
    flex-wrap: wrap;
  }
}
@media (max-width: 540px) {
  :root {
    --sidebar: 0px;
  }
  .sidebar {
    inset: auto 0 0;
    height: 73px;
    width: 100%;
    padding: 5px 7px;
    flex-direction: row;
    align-items: center;
    overflow-x: auto;
    border-top: 1px solid #ffffff12;
    gap: 5px;
    scrollbar-width: none;
  }
  .sidebar .brand,
  .sidebar .nav-divider,
  .sidebar .sidebar-bottom {
    display: none;
  }
  .sidebar .nav {
    flex-direction: row;
    gap: 3px;
    align-items: center;
  }
  .sidebar .nav a {
    flex-direction: column;
    gap: 5px;
    padding: 9px;
    min-width: 59px;
    min-height: 58px;
    border-radius: 8px;
  }
  .sidebar .nav-text {
    display: block;
    font-size: 9px;
    font-weight: 400;
    white-space: nowrap;
  }
  .sidebar .nav a > .icon {
    width: 18px;
    height: 18px;
  }
  .shell {
    margin: 0;
    padding-bottom: 73px;
  }
  .topbar {
    height: 68px;
    padding-inline: 17px;
  }
  .main {
    padding: 24px 16px 35px;
  }
  .client-picker {
    width: 190px;
  }
  .env-label {
    font-size: 10px;
    gap: 5px;
  }
  .top-actions {
    gap: 7px;
  }
  .top-actions > .icon-btn {
    width: 32px;
    height: 35px;
  }
  .page-head {
    margin-bottom: 23px;
    flex-wrap: wrap;
  }
  .page-head h1 {
    font-size: 29px;
    letter-spacing: -0.9px;
  }
  .page-actions {
    max-width: 100%;
    flex-shrink: 1;
  }
  .page-head .button-row {
    max-width: none;
    justify-content: flex-start;
  }
  .page-head .btn {
    min-height: 39px;
    font-size: 12px;
  }
  .metric {
    padding: 18px;
  }
  .metric-value {
    font-size: 37px;
  }
  .metric-label {
    font-size: 11px;
    margin-bottom: 22px;
  }
  .metric-label > .icon {
    width: 16px;
    height: 16px;
  }
  .metric-grid {
    gap: 10px;
    margin-bottom: 18px;
  }
  .grid-main {
    gap: 18px;
    margin-bottom: 18px;
  }
  .card {
    border-radius: 13px;
  }
  .card-head {
    padding: 18px 20px;
    min-height: 65px;
  }
  .card-head h2 {
    font-size: 15px;
  }
  .card-head .btn.link {
    font-size: 11px;
  }
  .card-body {
    padding: 20px;
  }
  .chart-wrap {
    height: 210px;
    padding-left: 40px;
    padding-right: 20px;
  }
  .chart-scale {
    left: 19px;
  }
  .chart-empty {
    left: 35px;
    right: 20px;
    font-size: 11px;
  }
  .create-card {
    min-height: 300px;
    padding: 22px;
  }
  .create-card h2 {
    font-size: 23px;
  }
  .create-card-content .btn {
    font-size: 12px;
    min-width: 170px;
  }

  .create-card-content {
    max-width: none;
  }
  .period-label {
    font-size: 10px;
  }
  .client-grid,
  .template-grid {
    grid-template-columns: 1fr;
  }
  .client-stats {
    gap: 45px;
  }
  .template-preview {
    height: 235px;
    padding-inline: 45px;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .field-row {
    margin-bottom: 18px;
  }
  .toolbar {
    padding: 15px 18px;
    gap: 12px;
  }
  .toolbar form {
    width: 100%;
  }
  .toolbar form .input {
    flex: 1;
    min-width: 0;
  }
  .toolbar .search-field {
    width: 100%;
  }
  .toolbar > .result-count {
    display: none;
  }
  .filter-tabs {
    padding-inline: 18px;
    gap: 20px;
  }
  .filter-tabs button {
    min-height: 53px;
  }
  th,
  td {
    padding: 14px 18px;
  }
  .table-title {
    min-width: 200px;
  }
  .pagination {
    padding: 15px 18px;
    font-size: 11px;
    flex-wrap: wrap;
  }
  .pagination .btn {
    font-size: 11px;
  }
  .modal-backdrop {
    padding: 10px;
  }
  .modal {
    border-radius: 15px;
    max-height: calc(100dvh - 20px);
  }
  .modal-head,
  .modal-body {
    padding: 21px;
  }
  .modal-head h2 {
    font-size: 19px;
  }
  .modal-footer {
    padding: 16px 21px;
  }
  .connection-bar {
    padding: 18px;
    flex-wrap: wrap;
    gap: 12px;
  }
  .connection-bar strong {
    font-size: 13px;
  }
  .connection-bar .pill {
    margin-left: 54px;
  }
  .status-grid {
    gap: 8px;
  }
  .status-box {
    padding: 11px;
  }
  .status-box small {
    font-size: 9px;
  }
  .status-box strong {
    font-size: 16px;
  }
  .cost-result strong {
    font-size: 28px;
  }
  .setup-guide > summary {
    padding: 20px;
  }
  .setup-list li {
    padding-left: 35px;
  }
  .editor-layout .card-head {
    gap: 9px;
  }
  .editor-layout .card-head h2 {
    font-size: 14px;
  }
  .editor-layout .card-head .btn.link {
    font-size: 10px;
  }
  .preview-panel {
    padding: 0 12px 15px;
  }
  .preview-frame {
    height: 600px;
  }
  .preview-toolbar {
    font-size: 11px;
  }
  .block-card {
    padding: 13px;
  }
  .block-add {
    gap: 6px;
  }
  .block-add button {
    font-size: 10px;
  }
  .report-title {
    flex-wrap: wrap;
  }

  .skip-link {
    left: 12px;
  }
  #toasts {
    right: 12px;
    left: 12px;
    bottom: 87px;
  }
  .toast {
    max-width: none;
    font-size: 12px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *:before,
  *:after,
  .select-control::picker(select),
  .select-control::picker-icon {
    animation: none !important;
    transition: none !important;
  }
}

/* Product identity: the original SEEYOU wordmark with the MAILER sub-brand. */
.brand-wordmark {
  position: relative;
  display: block;
  flex: none;
  /* Visible wordmark: rows 90–471 of the 3360 × 800 source; omit its tagline. */
  aspect-ratio: 3360 / 382;
  height: auto;
  overflow: hidden;
}
.brand-wordmark img {
  position: absolute;
  top: 0;
  left: 0;
  display: block;
  width: 100%;
  height: auto;
  transform: translateY(-11.25%);
}
.mailer-badge {
  display: inline-flex;
  flex: none;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 5px 7px;
  border-radius: 3px;
  background: var(--accent);
  color: var(--ink);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: -0.25px;
  line-height: 1;
  white-space: nowrap;
}
.mailer-badge svg {
  width: 14px;
  height: 14px;
  flex: none;
}
.brand .mailer-badge {
  font-size: 10px;
  padding: 4px 5px;
  gap: 3px;
}
.brand .mailer-badge svg {
  width: 12px;
  height: 12px;
}
.login-two-factor {
  margin: 3px 0 14px;
  border: 1px solid #d9ddd0;
  border-radius: 12px;
  background: #ffffff75;
  transition:
    border-color 160ms,
    background 160ms;
}
.login-two-factor > summary {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 64px;
  padding: 14px;
  border-radius: 11px;
  list-style: none;
  color: var(--ink);
  user-select: none;
}
.login-two-factor > summary::-webkit-details-marker {
  display: none;
}
.login-two-factor > summary::marker {
  content: "";
}
.login-two-factor > summary:focus-visible {
  outline-offset: -4px;
}
.login-two-factor:hover {
  border-color: #b7c597;
  background: #ffffffb3;
}
.two-factor-icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: #e7eddb;
  color: #45542a;
  transition:
    background 160ms,
    color 160ms;
}
.two-factor-icon .icon {
  width: 18px;
  height: 18px;
}
.two-factor-title {
  display: flex;
  flex: 1;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px 8px;
  min-width: 0;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.4;
}
.two-factor-badge {
  padding: 2px 5px;
  border: 1px solid #d9ddd0;
  border-radius: 4px;
  color: #626b56;
  font-size: 10px;
  line-height: 1.2;
}
.two-factor-chevron {
  width: 16px;
  height: 16px;
  color: #667154;
  transition: transform 180ms;
}
.login-two-factor[open] {
  border-color: #b7c597;
  background: #ffffffb3;
}
.login-two-factor[open] .two-factor-icon {
  background: var(--accent);
  color: var(--ink);
}
.login-two-factor[open] .two-factor-chevron {
  transform: rotate(180deg);
}
.two-factor-content {
  padding: 2px 16px 17px;
}
.login-two-factor .field-row {
  margin: 0;
}
.login-two-factor .input {
  background: #fff;
}
@media (max-width: 1280px) and (min-width: 1021px) {
  .brand {
    padding-inline: 0;
    gap: 8px;
  }
  .brand .brand-wordmark {
    width: 113px;
  }
  .brand .mailer-badge {
    font-size: 9px;
  }
}
@media (max-width: 1020px) {
  .brand .mailer-badge {
    display: flex;
    width: fit-content;
    font-size: 8px;
    padding: 4px;
    gap: 3px;
    margin: 12px auto 0;
  }
  .brand .mailer-badge svg {
    width: 10px;
    height: 10px;
  }
}

/* Login: split composition with the brand on a bounded photo. */
.login-page {
  display: grid;
  place-items: center;
  min-height: 100dvh;
  padding: 40px 32px;
}
.login-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: 80px;
  width: min(1180px, 100%);
}
.login-art {
  position: relative;
  height: 660px;
  overflow: hidden;
  isolation: isolate;
  border-radius: 20px;
  background: #c5bfb2;
}
.login-art::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    #0d0e1099,
    #0d0e1024 30%,
    transparent 55%
  );
  pointer-events: none;
}
.login-photo {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 58%;
}
.login-brand {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 38px;
}
.login-brand .brand-wordmark {
  width: 190px;
  filter: brightness(0) invert(1);
}
.login-brand .mailer-badge {
  font-size: 13px;
  padding: 6px 8px;
}
.login-brand .mailer-badge svg {
  width: 15px;
  height: 15px;
}
.login-mailing {
  position: absolute;
  z-index: 1;
  left: 28px;
  right: 28px;
  bottom: 28px;
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) 4ch;
  align-items: center;
  gap: 9px 13px;
  padding: 18px 20px;
  border: 1px solid #ffffff24;
  border-radius: 14px;
  background: #10150ee6;
  color: #fff;
  box-shadow: 0 8px 28px #0d0e1026;
  backdrop-filter: blur(16px);
}
.login-mailing-icon {
  display: grid;
  place-items: center;
  grid-row: 1 / 3;
  width: 36px;
  height: 36px;
  border: 1px solid #d4ff3a30;
  border-radius: 10px;
  background: #d4ff3a14;
  color: var(--accent);
}
.login-mailing-icon .icon {
  width: 20px;
  height: 20px;
  animation: mailing-envelope 10s ease-in-out infinite;
}
.login-mailing-label {
  display: flex;
  align-items: center;
  min-width: 0;
  min-height: 2.6em;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.3;
}
.login-mailing-status {
  display: block;
  opacity: var(--mailing-text-opacity, 1);
  transform: translateY(calc((1 - var(--mailing-text-opacity, 1)) * 4px));
}
.login-mailing-percent {
  color: var(--accent);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
  text-align: right;
  white-space: nowrap;
  opacity: var(--mailing-opacity, 1);
}
.login-mailing-track {
  grid-column: 2 / 4;
  height: 4px;
  overflow: hidden;
  border-radius: 4px;
  background: #ffffff24;
}
.login-mailing-fill {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  background: var(--accent);
  transform-origin: left;
  transform: scaleX(var(--mailing-progress, 0));
  opacity: var(--mailing-opacity, 1);
}
@keyframes mailing-envelope {
  0%,
  65%,
  100% {
    transform: translateX(0);
    opacity: 1;
  }
  79%,
  84% {
    transform: translateX(5px);
    opacity: 0;
  }
  85% {
    transform: translateX(-5px);
    opacity: 0;
  }
}
.login-form-wrap {
  width: 100%;
  max-width: 400px;
  justify-self: center;
}
.login-form {
  width: 100%;
}
.login-form h1 {
  font-size: 36px;
  letter-spacing: -1.2px;
  margin: 0 0 32px;
}
.login-form > p {
  font-size: 13px;
  color: var(--muted);
  margin: -16px 0 28px;
}
.login-form .field-row {
  margin-bottom: 20px;
}
.login-form .input {
  min-height: 48px;
  background: #ffffffb3;
}
.login-form .input[readonly] {
  background: #e8eae1;
}
.login-form .btn {
  width: 100%;
  justify-content: space-between;
  min-height: 49px;
  margin-top: 8px;
}
.login-form .login-two-factor .field-row {
  margin-bottom: 0;
}
@media (max-width: 1020px) {
  .login-page {
    padding: 32px 28px;
  }
  .login-panel {
    gap: 48px;
  }
  .login-art {
    height: 580px;
  }
  .login-brand {
    padding: 28px;
    gap: 10px;
  }
  .login-brand .brand-wordmark {
    width: 160px;
  }
  .login-brand .mailer-badge {
    font-size: 11px;
    padding: 5px 6px;
  }
  .login-brand .mailer-badge svg {
    width: 13px;
    height: 13px;
  }
  .login-form h1 {
    font-size: 32px;
  }
}
@media (max-width: 760px) {
  .login-page {
    padding: 24px 18px;
  }
  .login-panel {
    max-width: 440px;
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .login-art {
    height: 240px;
    border-radius: 16px;
  }
  .login-photo {
    object-position: 50% 59%;
  }
  .login-brand {
    padding: 24px;
  }
  .login-brand .brand-wordmark {
    width: 170px;
  }
  .login-mailing {
    left: 18px;
    right: 18px;
    bottom: 18px;
    padding: 12px 14px;
    grid-template-columns: 30px minmax(0, 1fr) 4ch;
    gap: 7px 11px;
    border-radius: 12px;
  }
  .login-mailing-icon {
    width: 30px;
    height: 30px;
    border-radius: 8px;
  }
  .login-mailing-icon .icon {
    width: 17px;
    height: 17px;
  }
  .login-mailing-label {
    font-size: 12px;
  }
  .login-form-wrap {
    max-width: none;
    padding: 0 12px 16px;
  }
  .login-form h1 {
    font-size: 30px;
    margin-bottom: 26px;
  }
  .login-form .input {
    font-size: 16px;
  }
}
@media (max-width: 380px) {
  .login-page {
    padding: 16px 12px;
  }
  .login-brand {
    padding: 22px 18px;
    gap: 9px;
  }
  .login-brand .brand-wordmark {
    width: 150px;
  }
  .login-art {
    height: 210px;
  }
  .login-form-wrap {
    padding-inline: 6px;
  }
  .login-two-factor > summary {
    padding: 12px;
    gap: 9px;
  }
}

/* Client setup and audience import */
.import-steps{display:flex;gap:24px;list-style:none;padding:0;margin:0 0 22px;color:var(--muted);font-size:12px}.import-steps .active{color:var(--ink);font-weight:600}
.import-drop{cursor:pointer;display:flex;flex-direction:column;align-items:center;gap:9px;position:relative}.import-drop span{font-size:12px;color:var(--muted)}.import-drop input{max-width:100%;font-size:12px}.import-drop.drag-over{border-color:var(--ink);background:#eff7d6}
.import-summary{display:flex;justify-content:space-between;gap:16px;margin:24px 0 16px}.import-summary span{color:var(--muted);font-size:12px}.import-mapping{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.import-mapping .field-row{min-width:0}.import-mapping select{max-width:100%}
#import-sample{margin-bottom:24px}#import-sample td{max-width:210px;overflow-wrap:anywhere;font-size:12px}.import-actions{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-top:24px}.import-actions small{max-width:260px;color:var(--muted)}
.sender-identity{display:flex;align-items:center;gap:14px}.sender-identity>svg{width:32px;height:32px}.sender-identity>div{display:flex;flex-direction:column;gap:5px;flex:1;min-width:0}.sender-identity strong{overflow-wrap:anywhere}.sender-identity span{font-size:12px;color:var(--muted)}.dns-copy{display:flex;align-items:flex-start;gap:5px}.dns-copy code{overflow-wrap:anywhere;min-width:0;flex:1}.dns-copy .icon-btn{flex-shrink:0}
[hidden]{display:none!important}
@media(max-width:650px){.import-mapping{grid-template-columns:1fr 1fr}.import-actions,.import-summary{align-items:flex-start;flex-direction:column}.import-steps{gap:18px}.sender-identity{flex-wrap:wrap}.sender-identity .pill{margin-left:46px}}

.import-drop.has-file{flex-direction:row;text-align:left;padding:14px 18px;gap:14px}.import-drop.has-file>svg{width:26px;height:26px;margin:0;flex-shrink:0}.import-drop.has-file strong{flex:1;overflow-wrap:anywhere;min-width:0}.import-drop.has-file>span{display:none}.import-drop.has-file input{width:100px;color:transparent;font-size:0}.import-drop.has-file input::file-selector-button{font-size:12px}.import-mapping .field-row{margin-bottom:5px}
/* Campaign reports and follow-up scheduling. */
.report-back{display:inline-block;color:var(--muted);font-size:12px;margin-bottom:18px}
.campaign-report .page-head{margin-bottom:16px}.campaign-report .page-head h1{font-size:clamp(24px,2.3vw,38px);max-width:760px}
.report-meta{display:flex;gap:18px;align-items:center;flex-wrap:wrap;color:var(--muted);font-size:12px;margin-bottom:26px}.report-meta a{margin-left:auto;text-decoration:underline;text-underline-offset:4px}
.report-tabs{display:flex;gap:30px;border-bottom:1px solid var(--line);margin:24px 0 28px;overflow:auto}.report-tabs a{padding:0 0 16px;white-space:nowrap;color:var(--muted);font-weight:500;border-bottom:3px solid transparent}.report-tabs a.active{border-color:var(--ink);color:var(--ink)}
.report-phases{display:flex;gap:12px;flex-wrap:wrap}.report-phases a{border:1px solid var(--line);display:flex;align-items:center;gap:12px;border-radius:10px;padding:12px 18px;background:#ffffff80;font-weight:600}.report-phases a.active{background:var(--dark);color:white;border-color:var(--dark)}.report-phases a>span{color:var(--muted);font-size:11px}.report-phases a.active>span{color:var(--accent)}.report-phases small{font-weight:400;opacity:.65}
.report-engagement{display:grid;grid-template-columns:1.3fr 1fr 1fr;gap:18px;margin:24px 0}.report-highlight{border-radius:var(--radius);background:var(--dark);color:white;padding:28px;position:relative;overflow:hidden}.report-highlight>span,.report-kpi>span{font-size:13px}.report-highlight>strong,.report-kpi>strong{display:block;font-size:clamp(36px,3.5vw,58px);font-weight:500;letter-spacing:-2px;margin:13px 0}.report-highlight>a{display:flex;align-items:center;justify-content:space-between;color:#d0d2c6;font-size:12px}.report-highlight .icon{color:var(--accent)}.report-meter{height:4px;border-radius:3px;background:#34362c;margin-top:22px;overflow:hidden}.report-meter i{display:block;height:100%;background:var(--accent);min-width:0;border-radius:3px}.report-kpi{padding:28px;display:flex;flex-direction:column;justify-content:center}.report-kpi>a,.report-kpi>small{font-size:12px;color:var(--muted)}
.report-main-grid{display:grid;grid-template-columns:minmax(0,2.4fr) minmax(235px,1fr);gap:18px}.report-chart{min-width:0}.report-chart-body{position:relative;padding:20px 22px}.report-chart svg{width:100%;height:auto;min-height:190px;max-height:320px}.chart-grid line{stroke:var(--line);stroke-dasharray:3 5}.chart-grid text,.chart-axis{fill:var(--muted);font-size:11px}.chart-opens{stroke:#8fae17;stroke-width:2.5;fill:none;stroke-linejoin:round}.chart-clicks{stroke:#7861d8;stroke-width:2.5;fill:none;stroke-linejoin:round}.chart-point circle{opacity:0}.chart-point:hover circle,.chart-point:focus circle{opacity:1}.chart-key{display:flex;gap:18px;font-size:11px;color:var(--muted)}.chart-key span:before{content:"";display:inline-block;width:7px;height:7px;border-radius:50%;background:#8fae17;margin-right:6px}.chart-key span+span:before{background:#7861d8}.chart-empty{position:absolute;inset:0;display:grid;place-items:center;pointer-events:none;font-size:12px;color:var(--muted)}
.delivery-card{padding:24px}.delivery-card h2{margin:0;font-size:16px}.delivery-card>div:not(.delivery-ring){display:flex;justify-content:space-between;font-size:12px;padding:10px 0;border-top:1px solid var(--line)}.delivery-card>div>span{color:var(--muted)}.delivery-ring{width:158px;height:158px;margin:22px auto;background:conic-gradient(#bedf36 var(--delivery),#eeeee8 0);border-radius:50%;padding:10px}.delivery-ring>div{width:100%;height:100%;border-radius:50%;background:white;display:flex;flex-direction:column;align-items:center;justify-content:center}.delivery-ring strong{font-size:29px;font-weight:500;letter-spacing:-1px}.delivery-ring small{font-size:11px;color:var(--muted);margin-top:3px}
.report-quality{display:grid;grid-template-columns:repeat(4,1fr);gap:18px;margin-top:18px}.quality-item{padding:22px}.quality-item>span{display:block;font-size:12px;color:var(--muted)}.quality-item>strong{display:block;font-size:30px;font-weight:500;margin:12px 0 5px}.quality-item>small{font-size:11px;color:var(--muted)}.quality-item:hover{border-color:#adb38c}
.report-table th{font-size:11px}.report-table td{font-variant-numeric:tabular-nums}.report-table td small{display:block;color:var(--muted);font-size:11px;margin-top:5px}.report-table td strong{font-weight:500}.report-link{display:flex;align-items:center;gap:16px;max-width:800px}.report-link span{font-size:11px;color:var(--muted)}.report-link a{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--ink);text-decoration:underline;text-decoration-color:var(--line);text-underline-offset:4px}.report-bottom-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px;margin-top:18px}.report-bottom-grid h2{font-size:16px;margin:0 0 18px}.device-row{display:flex;justify-content:space-between;gap:20px;font-size:12px;padding:11px 0;border-bottom:1px solid var(--line)}.device-row:last-of-type{margin-bottom:14px}.device-row span{color:var(--muted)}.device-row b{font-weight:500}.report-method{font-size:12px;color:var(--muted);line-height:1.8}
.report-toolbar{display:flex;gap:12px;padding:20px;align-items:center;flex-wrap:wrap}.report-toolbar .input{width:280px;max-width:100%}.report-toolbar>.muted{margin-left:auto;font-size:12px}.report-pagination{display:flex;justify-content:flex-end;align-items:center;gap:18px;padding:20px;border-top:1px solid var(--line)}.report-pagination .disabled{pointer-events:none;opacity:.4}.report-pagination>span{font-size:12px}.report-email{width:100%;height:850px;border:0;border-top:1px solid var(--line);background:#f4f4ef}
.followup-summary{display:flex;gap:18px;align-items:center;padding:20px 24px}.followup-symbol{padding:13px;background:var(--accent-soft);border-radius:12px;display:grid;place-items:center}.followup-summary h3{font-size:14px;margin:0 0 6px}.followup-summary p{font-size:12px;margin:0 0 4px;color:var(--muted)}.followup-summary small{font-size:11px}.followup-actions{display:flex;gap:12px;align-items:center;margin-left:auto;flex-wrap:wrap}.followup-form{border-top:1px solid var(--line);padding-top:20px;margin:20px 0}.followup-form h3{font-size:15px;margin:0 0 14px}.followup-choices{display:grid;grid-template-columns:1fr 1fr;gap:10px}.followup-choices label{display:flex;gap:10px;align-items:center;border:1px solid var(--line);border-radius:12px;padding:14px;cursor:pointer}.followup-choices label:has(input:checked){background:var(--accent-soft);border-color:#a6be58}.followup-choices label:has(input:disabled){opacity:.45;cursor:not-allowed}.followup-choices input{accent-color:#718b19}.followup-choices strong{display:block;font-weight:500;font-size:12px}.followup-choices small{display:block;font-size:10px;color:var(--muted);margin-top:3px}.followup-form [hidden]{display:none!important}.pill.waiting{background:#f1eafa;color:#775697}
@media(max-width:1100px){.report-main-grid{grid-template-columns:1fr}.delivery-card{display:grid;grid-template-columns:1fr 1fr;gap:10px 24px;align-items:center}.delivery-card h2{grid-column:1/-1}.delivery-ring{grid-row:2/5;margin:10px auto}.report-quality{grid-template-columns:repeat(2,1fr)}.campaign-report .page-head{align-items:flex-start;gap:14px;flex-direction:column}}
@media(max-width:700px){.report-engagement{grid-template-columns:1fr 1fr}.report-highlight{grid-column:1/-1}.report-kpi{padding:20px}.report-bottom-grid{grid-template-columns:1fr}.report-meta{gap:10px}.report-meta a{margin-left:0}.report-tabs{gap:22px}.report-phases a{width:100%}.followup-summary{align-items:flex-start;flex-wrap:wrap}.followup-actions{margin-left:0;width:100%}.report-chart-body{padding:8px}.chart-key{gap:9px}.report-toolbar .input{width:100%}.report-quality{gap:10px}.report-link{max-width:260px}.report-phases small{margin-left:auto}}
@media print{.sidebar,.topbar,.page-actions,.report-tabs,.report-back,.report-meta>a,.followup-actions button,.report-toolbar,.report-pagination,.report-method,#toasts{display:none!important}.main,.content,.app-main,#content{margin:0!important;padding:10px!important;width:100%!important;max-width:none!important}body{background:white!important;font-size:11px}.card,.report-highlight,.report-phases a{break-inside:avoid;print-color-adjust:exact;-webkit-print-color-adjust:exact}.report-engagement{grid-template-columns:1.3fr 1fr 1fr}.report-main-grid{grid-template-columns:2fr 1fr}.report-quality{grid-template-columns:repeat(4,1fr)}.report-highlight>strong,.report-kpi>strong{font-size:36px}.table-wrap{overflow:visible}.report-link a{white-space:normal;overflow-wrap:anywhere}.delivery-card{display:block}.report-bottom-grid{grid-template-columns:1fr 1fr}.report-chart svg{max-height:210px}}
.report-phases a.active small{color:#d6d9cc;opacity:1}
.modal:has(#schedule-form){width:min(760px,calc(100vw - 32px))}#schedule-form>.section-space{display:grid;grid-template-columns:1fr 1fr;gap:18px}@media(max-width:600px){#schedule-form>.section-space{grid-template-columns:1fr;gap:0}}
@media print{.shell{margin-left:0!important}.content{padding:12px!important}}
.audience-tabs{display:flex;gap:8px;margin:0 0 24px;border-bottom:1px solid var(--line,#dedfd5);padding-bottom:12px}
.audience-tabs button{border:0;background:transparent;padding:10px 18px;border-radius:9px;color:inherit;font:inherit;cursor:pointer}
.audience-tabs button.active{background:#171a15;color:white}.audience-tabs span{margin-left:8px;opacity:.65}
.audience-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:20px}
.audience-card{padding:24px;min-width:0}.audience-card-top,.audience-card-bottom{display:flex;align-items:center;justify-content:space-between;gap:12px}
.audience-title{display:block;text-align:left;overflow-wrap:anywhere;background:none;border:0;padding:0;margin:24px 0 18px;font:inherit;font-size:18px;font-weight:600;color:inherit;cursor:pointer}
.audience-number{display:block;font-size:36px;font-weight:500;letter-spacing:-1.5px;line-height:1.2;margin-bottom:16px;font-variant-numeric:tabular-nums}
.audience-card-bottom span{font-size:11px;color:#707766}.audience-toolbar{flex-wrap:wrap;gap:12px}.audience-toolbar .button-row{flex-wrap:wrap}
.audience-selection{display:flex;flex-wrap:wrap;align-items:center;gap:12px;padding:16px 24px;background:#eff4db;border-top:1px solid #dde5c6;border-bottom:1px solid #dde5c6;font-size:12px}
.audience-selection[hidden],#editor-group-options[hidden]{display:none}.audience-selection>.button-row{margin-left:auto}
.contacts-table .check-cell{width:42px;padding-right:6px}.contacts-table input[type=checkbox],.group-choice input{width:17px;height:17px;accent-color:#171a15;cursor:pointer}
.contact-group-tags{display:flex;flex-wrap:wrap;gap:5px;max-width:260px}.contact-group-tags .tag{border:1px solid #e1e5d5;cursor:pointer;font:inherit;font-size:10px;text-align:left}
.split-summary{display:flex;justify-content:space-between;gap:12px;padding:18px 0;font-size:13px}.split-summary span{color:#6f7664}
.split-parts{max-height:260px;overflow:auto;border:1px solid #dedfd5;border-radius:12px}.split-parts>div{display:flex;justify-content:space-between;gap:18px;padding:12px 16px;font-size:13px}.split-parts>div+div{border-top:1px solid #e8e9e0}.split-parts b{font-variant-numeric:tabular-nums}.split-parts span{overflow-wrap:anywhere}
.campaign-group-list{max-height:280px;overflow:auto;border:1px solid #dedfd5;border-radius:10px;margin-bottom:10px}.group-choice{display:flex!important;align-items:center;gap:10px;margin:0!important;padding:12px;font-size:12px!important;cursor:pointer}.group-choice+ .group-choice{border-top:1px solid #e8e9e0}.group-choice span{flex:1;overflow-wrap:anywhere}.group-choice b{font-size:11px;font-weight:500;white-space:nowrap}.group-choice:has(input:checked){background:#f0f5df}.campaign-audience{margin-bottom:22px}.audience-tag-filter{margin-bottom:22px}.audience-tag-filter .field-row{margin:14px 12px}
@media(max-width:600px){.audience-grid{grid-template-columns:1fr}.audience-tabs{margin-bottom:18px}.audience-toolbar{padding:16px}.audience-toolbar form,.audience-toolbar>.button-row{width:100%}.audience-toolbar form input{min-width:0;flex:1}.audience-toolbar .select-control{max-width:100%}.audience-selection{padding:14px}.audience-selection>.button-row{margin-left:0;flex-wrap:wrap}.split-summary{flex-direction:column;gap:5px}}

/* Keep the search action alongside its field at every table breakpoint. */
#contact-search-form{display:flex;flex-flow:row nowrap;align-items:center;gap:9px;flex:0 1 340px;min-width:0;max-width:100%}
#contact-search-form .input{width:0;min-width:0;flex:1 1 auto}
#contact-search-form .btn{flex:0 0 auto;white-space:nowrap}
.audience-navigation{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;border-bottom:1px solid var(--line,#dedfd5);padding-bottom:12px;margin-bottom:24px}
.audience-navigation .audience-tabs{margin:0;border:0;padding:0}
@media(max-width:600px){#contact-search-form{flex:1 0 100%;width:100%}.audience-navigation{margin-bottom:18px}}

.page-head:has(.audience-actions){flex-wrap:wrap}
.page-head:has(.audience-actions) .page-actions{max-width:100%}
.page-head .button-row.audience-actions{max-width:none;gap:9px}
.page-head .audience-actions .btn{min-height:44px}
@media(max-width:600px){.page-head:has(.audience-actions) .page-actions{width:100%}.page-head .button-row.audience-actions{display:grid;grid-template-columns:1fr 1fr}.audience-actions [data-action="group-from-top"]{grid-column:1 / -1}.page-head .audience-actions .btn{width:100%}}
