@font-face {
  font-family: "Geist";
  src: url("/GeistVF.woff") format("woff");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
:root {
  --ink: #101114;
  --muted: #6b6d76;
  --border: #eaebef;
  --brand: #2563eb;
  --bg: #fafafb;
  --wash: #eff6ff;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font:
    14px/1.5 "Geist",
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
}
button,
input,
textarea,
select {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  outline-offset: 4px;
}
button {
  cursor: pointer;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 17px;
  background: white;
  color: var(--ink);
  font-weight: 600;
  transition: background 0.15s;
}
button:hover {
  background: #eff6ff;
}
button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
a {
  color: var(--brand);
}
[hidden] {
  display: none !important;
}
.muted,
.hint {
  color: var(--muted);
}
.eyebrow {
  font-size: 10px;
  letter-spacing: 1.6px;
  font-weight: 700;
  color: var(--muted);
}
h1 {
  font-size: 36px;
  letter-spacing: -1.3px;
  line-height: 1.15;
  font-weight: 600;
  margin: 12px 0;
}
h2 {
  font-size: 17px;
  letter-spacing: -0.4px;
  margin: 0;
}
p {
  margin: 9px 0;
}
.primary {
  background: var(--brand);
  color: white;
  border-color: var(--brand);
}
.primary:hover {
  background: #1d4ed8;
}
.secondary {
  background: #eff6ff;
  border-color: #dbeafe;
}
.quiet {
  background: transparent;
  border: 0;
  padding: 6px 0;
  color: var(--muted);
}
.wordmark {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--ink);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.7px;
  text-decoration: none;
  white-space: nowrap;
}
.wordmark img {
  width: 150px;
  height: auto;
  display: block;
}
.mail-label {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0;
  color: var(--muted);
  border-left: 1px solid var(--border);
  padding-left: 10px;
}
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  border-color: var(--brand);
  outline: 3px solid #2563eb25;
  outline-offset: 1px;
}
.mark {
  display: grid;
  place-items: center;
  width: 29px;
  height: 29px;
  background: var(--brand);
  color: #fff;
  border-radius: 7px;
  font-size: 25px;
  font-weight: 700;
  line-height: 1;
}
.wordmark .mark {
  margin-right: 3px;
}
aside {
  position: fixed;
  top: 0;
  bottom: 0;
  width: 240px;
  padding: 33px 24px;
  background: #fff;
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
}
aside > .eyebrow {
  margin-top: 55px;
  padding-left: 10px;
}
nav {
  display: grid;
  gap: 6px;
  margin-top: 9px;
}
nav button {
  text-align: left;
  border: 0;
  color: var(--muted);
  font-weight: 500;
  background: transparent;
  padding: 12px;
}
nav button.active {
  background: var(--wash);
  color: var(--brand);
}
.aside-bottom {
  margin-top: auto;
  font-size: 12px;
  color: #6b6d76;
}
.aside-bottom p {
  font-size: 11px;
  color: var(--muted);
  margin: 3px 0 12px;
}
.dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #2563eb;
  margin-right: 6px;
}
main {
  margin-left: 240px;
}
header {
  height: 82px;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 45px;
  background: #fff9;
}
.slash {
  padding: 0 10px;
  color: #a6abb4;
}
.pill,
.badge {
  border: 1px solid #dbeafe;
  border-radius: 30px;
  padding: 5px 11px;
  font-size: 11px;
  color: #2563eb;
  background: #eff6ff;
}
.page {
  padding: 42px 45px 55px;
  max-width: 1500px;
  margin: auto;
}
.page-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 33px;
}
.page-heading .eyebrow {
  margin: 0 0 15px;
}
.page-heading p {
  margin-top: 12px;
}
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background: white;
  border: 1px solid var(--border);
  border-radius: 12px;
  margin-bottom: 37px;
}
.stats > div {
  padding: 20px 25px;
  border-right: 1px solid var(--border);
}
.stats > div:last-child {
  border: 0;
}
.stats span {
  display: block;
  color: var(--muted);
  font-size: 12px;
}
.stats strong {
  display: block;
  font-size: 30px;
  font-weight: 500;
  letter-spacing: -1px;
  margin-top: 7px;
}
.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 15px;
  font-size: 12px;
}
.card {
  border: 1px solid var(--border);
  border-radius: 12px;
  background: white;
  overflow: hidden;
}
.empty {
  padding: 50px 25px;
  text-align: center;
}
.empty h2 {
  margin: 12px;
}
.empty p {
  color: var(--muted);
  font-size: 13px;
}
.row {
  padding: 19px 23px;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
}
.row:last-child {
  border: 0;
}
.row p {
  font-size: 12px;
  color: var(--muted);
  margin: 3px 0;
}
.row-title {
  background: transparent;
  border: 0;
  padding: 0;
  text-align: left;
  font-size: 14px;
  color: var(--ink);
  font-weight: 600;
}
.row-title:hover {
  background: transparent;
  text-decoration: underline;
}
.row-right {
  display: flex;
  align-items: center;
  gap: 18px;
  white-space: nowrap;
}
.row-right time {
  font-size: 12px;
  color: var(--muted);
}
.badge {
  background: #f4f4f5;
  color: #6b6d76;
}
.badge.delivered,
.badge.active {
  background: #e9f4e9;
  color: #498152;
}
.badge.failed,
.badge.bounced,
.badge.unknown,
.badge.suppressed {
  background: #fff0e7;
  color: #a56b46;
}
.note {
  display: flex;
  gap: 18px;
  margin-top: 27px;
  background: #eff6ff;
  border: 1px solid #dbeafe;
  border-radius: 12px;
  padding: 24px;
}
.note > span {
  font-size: 25px;
}
.note strong {
  font-size: 13px;
}
.note p {
  max-width: 700px;
  font-size: 12px;
  color: #6b6d76;
}
.compose-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 28px;
}
.editor {
  padding: 25px;
}
label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 18px;
}
input,
select,
textarea {
  display: block;
  width: 100%;
  border: 1px solid #e4e5ea;
  border-radius: 7px;
  padding: 10px 12px;
  color: var(--ink);
  background: #fff;
  margin-top: 7px;
  font-weight: 400;
}
textarea {
  resize: vertical;
  line-height: 1.7;
  font-size: 13px;
}
input::placeholder,
textarea::placeholder {
  color: #8a8f98;
}
.templates {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 0 0 22px;
  flex-wrap: wrap;
}
.templates span {
  font-size: 11px;
  color: var(--muted);
  margin-right: 3px;
}
.templates button {
  font-size: 10px;
  padding: 5px 8px;
  border-radius: 5px;
}
.hint {
  font-size: 11px;
  line-height: 1.7;
}
.editor-actions {
  display: flex;
  justify-content: space-between;
  margin-top: 20px;
}
.preview-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  margin-bottom: 13px;
}
.segmented {
  display: flex;
  border: 1px solid var(--border);
  padding: 3px;
  border-radius: 8px;
  background: #fff;
}
.segmented button {
  font-size: 10px;
  padding: 5px 9px;
  border: 0;
}
.segmented .active {
  background: var(--wash);
}
.inbox {
  display: flex;
  gap: 12px;
  padding: 20px 16px;
  background: white;
  border: 1px solid var(--border);
  border-radius: 12px 12px 0 0;
}
.avatar {
  background: var(--wash);
  color: white;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  font-size: 25px;
}
.inbox > div {
  flex: 1;
  min-width: 0;
}
.inbox strong {
  display: block;
  font-size: 12px;
}
.inbox span:not(.avatar) {
  display: block;
  font-size: 12px;
  overflow-wrap: anywhere;
}
.inbox small {
  font-size: 10px;
  color: var(--muted);
}
.preview-frame {
  background: #f4f5f7;
  border: 1px solid var(--border);
  border-top: 0;
  min-height: 460px;
  padding: 18px;
  border-radius: 0 0 12px 12px;
  display: flex;
  justify-content: center;
}
iframe {
  display: block;
  border: 0;
  background: white;
  width: 100%;
  height: 470px;
  border-radius: 6px;
  max-width: 600px;
}
.preview-frame.mobile iframe {
  max-width: 320px;
}
.draft-builder,
.writing-review {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 14px;
  margin: 16px 0;
}
.draft-builder summary,
.writing-review summary {
  cursor: pointer;
  font-size: 12px;
  font-weight: 600;
}
.draft-builder[open] > .hint {
  margin: 14px 0;
}
.pattern-note {
  background: var(--wash);
  padding: 12px;
  border-radius: 6px;
  margin-bottom: 18px;
}
.pattern-note strong,
.pattern-note p,
.pattern-note a {
  font-size: 11px;
  line-height: 1.6;
}
.pattern-note p {
  margin: 8px 0;
}
.brief-cta {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 12px;
}
.builder-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: space-between;
}
.field-count {
  font-size: 10px;
  color: var(--muted);
  margin: -12px 0 18px;
}
.writing-review ul {
  font-size: 12px;
  padding-left: 20px;
  line-height: 1.7;
}
.preview-views {
  width: fit-content;
  margin-bottom: 12px;
}
.gmail-shell {
  font-family: Arial, sans-serif;
  border: 1px solid #dadce0;
  border-radius: 12px;
  background: #fff;
  overflow: hidden;
  transition: max-width 0.15s;
}
.gmail-shell.mobile {
  max-width: 375px;
  margin: 0 auto;
}
.gmail-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #f2f6fc;
  color: #5f6368;
  font-size: 12px;
  padding: 14px 18px;
}
.gmail-message-heading {
  padding: 22px 20px 14px;
  display: flex;
  gap: 10px;
  align-items: baseline;
}
.gmail-message-heading h2 {
  font-size: 21px;
  line-height: 1.35;
  font-weight: 400;
  color: #202124;
  margin: 0;
  overflow-wrap: anywhere;
}
.gmail-label {
  background: #e8eaed;
  color: #5f6368;
  border-radius: 3px;
  font-size: 10px;
  padding: 2px 4px;
}
.gmail-envelope {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 0 20px 12px;
}
.gmail-envelope > div {
  flex: 1;
  min-width: 0;
}
.gmail-envelope strong {
  display: block;
  font-size: 11px;
  overflow-wrap: anywhere;
}
.gmail-envelope small {
  display: block;
  font-size: 10px;
  color: #5f6368;
  line-height: 1.7;
}
.gmail-shell .preview-frame {
  border: 0;
  padding: 0;
  border-radius: 0;
  background: white;
}
.gmail-shell iframe {
  border-radius: 0;
  height: 560px;
  max-width: none;
}
.gmail-inbox {
  border: 0;
  border-radius: 0;
  padding: 18px 16px;
  align-items: center;
}
.gmail-inbox strong {
  margin-bottom: 4px;
}
.gmail-inbox .inbox-line {
  display: flex;
  align-items: baseline;
  gap: 8px;
  white-space: nowrap;
  overflow: hidden;
}
.gmail-inbox #inbox-subject {
  font-weight: 600;
  flex-shrink: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}
.gmail-inbox #inbox-preview {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}
.plain-preview {
  margin: 0;
  padding: 20px;
  min-height: 350px;
  font-size: 13px;
  line-height: 1.65;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.preview-disclaimer {
  margin: 10px 0 16px;
}
@media (max-width: 500px) {
  .brief-cta {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }
  .gmail-message-heading {
    padding: 18px 12px 12px;
  }
  .gmail-envelope {
    padding-left: 12px;
    padding-right: 12px;
  }
  .gmail-message-heading h2 {
    font-size: 19px;
  }
}
.test-card {
  margin-top: 20px;
  padding: 22px;
}
.test-card p {
  font-size: 12px;
}
.test-card label {
  margin-top: 17px;
}
.test-card button {
  width: 100%;
}
.settings {
  padding: 28px;
  margin-bottom: 22px;
  max-width: 780px;
}
.settings h2 {
  margin-bottom: 22px;
}
dl {
  display: grid;
  grid-template-columns: 155px 1fr;
  font-size: 13px;
  gap: 16px;
  margin: 0 0 25px;
}
dt {
  color: var(--muted);
}
dd {
  margin: 0;
  overflow-wrap: anywhere;
}
.settings a {
  font-size: 12px;
}
.import {
  padding: 24px;
}
.import summary {
  font-weight: 600;
  cursor: pointer;
}
.import label:first-of-type {
  margin-top: 20px;
}
.checkbox {
  display: flex;
  align-items: center;
  gap: 9px;
}
.checkbox input {
  width: 16px;
  margin: 0;
}
.login {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  place-items: center;
  padding: 24px 15px;
  background: radial-gradient(ellipse at 80% 10%, #dbeafe80, transparent 55%), var(--bg);
}
.login-card {
  padding: 45px;
  width: min(460px, 100%);
  min-width: 0;
  border: 1px solid #eaebef;
  background: #fffffff0;
  border-radius: 16px;
  box-shadow: 0 16px 60px #10111408;
}
.login-card .eyebrow {
  margin-top: 24px;
}
.login-card h1 {
  font-size: 36px;
  margin: 15px 0;
}
.login-card .wordmark img {
  width: 220px;
}
.login-card > label {
  margin: 22px 0 0;
}
.login-card input {
  min-height: 44px;
}
.login-card > button {
  margin-top: 26px;
}
.login-card button {
  width: 100%;
}
.login-card small {
  display: block;
  text-align: center;
  color: var(--muted);
  font-size: 10px;
  margin-top: 25px;
}
#login-error {
  font-size: 12px;
  color: #b15237;
}
#toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  max-width: min(600px, 90vw);
  border-radius: 10px;
  background: #101114;
  color: #fff;
  padding: 14px 24px;
  box-shadow: 0 6px 24px #10111414;
  z-index: 10;
  font-size: 13px;
  white-space: normal;
}
#toast.error {
  background: #914d34;
}
@media (min-width: 1600px) {
  .page {
    padding-top: 55px;
  }
}
@media (max-width: 1150px) {
  aside {
    width: 205px;
    padding: 28px 18px;
  }
  .wordmark img {
    width: 130px;
  }
  main {
    margin-left: 205px;
  }
  header {
    padding: 0 28px;
  }
  .page {
    padding: 30px 28px;
  }
  .compose-grid {
    gap: 18px;
  }
  .editor {
    padding: 18px;
  }
}
@media (max-width: 900px) {
  .compose-grid {
    grid-template-columns: 1fr;
  }
  h1 {
    font-size: 32px;
  }
  .row-right time {
    display: none;
  }
}
@media (max-width: 650px) {
  aside {
    position: static;
    width: auto;
    padding: 15px;
    border-right: 0;
    border-bottom: 1px solid var(--border);
  }
  aside > .eyebrow,
  .aside-bottom {
    display: none;
  }
  nav {
    display: flex;
    overflow-x: auto;
    gap: 4px;
    margin-top: 15px;
  }
  nav button {
    padding: 8px 9px;
    white-space: nowrap;
    font-size: 11px;
  }
  .wordmark {
    font-size: 17px;
  }
  main {
    margin: 0;
  }
  header {
    height: 52px;
    padding: 0 18px;
    font-size: 11px;
  }
  .pill {
    font-size: 9px;
  }
  .page {
    padding: 25px 18px;
  }
  .page-heading {
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 25px;
  }
  .page-heading .eyebrow {
    font-size: 9px;
  }
  h1 {
    font-size: 30px;
  }
  .stats {
    margin-bottom: 25px;
  }
  .stats > div {
    padding: 14px 12px;
  }
  .stats span {
    font-size: 10px;
  }
  .stats strong {
    font-size: 26px;
  }
  .row {
    padding: 17px 15px;
  }
  .row-right {
    gap: 8px;
  }
  .row-right .quiet {
    font-size: 10px;
  }
  .note {
    padding: 18px;
  }
  .settings {
    padding: 20px;
  }
  dl {
    grid-template-columns: 105px 1fr;
    font-size: 12px;
  }
  .login-card {
    padding: 28px;
  }
  .login-card .wordmark img {
    width: 190px;
  }
  .preview-frame {
    padding: 10px;
  }
  .section-heading .muted {
    font-size: 10px;
  }
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}
.heading-controls {
  display: flex;
  align-items: center;
  gap: 10px;
}
.heading-controls select {
  width: auto;
  min-width: 135px;
  margin: 0;
}
.stats.four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.stats.six {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}
.stats small {
  display: block;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.5;
  margin-top: 7px;
}
.stats.compact strong {
  font-size: 29px;
}
.sync-health {
  padding: 12px 15px;
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 20px;
  background: #fff;
}
.sync-health.warning {
  border-color: #fde68a;
  background: #fffbeb;
  color: #92400e;
}
.analytics-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 28px;
}
.chart-card {
  padding: 22px;
  min-width: 0;
}
.chart-card .section-heading {
  margin: 0 0 18px;
}
.chart {
  height: 225px;
}
.chart svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}
.chart .chart-empty {
  display: flex;
  height: 100%;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 14px;
}
.table-card {
  overflow-x: auto;
}
.data-table {
  border-collapse: collapse;
  width: 100%;
  font-size: 13px;
  white-space: nowrap;
}
.data-table th {
  text-align: left;
  padding: 14px 18px;
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  border-bottom: 1px solid var(--border);
  background: #fafafb;
}
.data-table td {
  padding: 15px 18px;
  border-bottom: 1px solid var(--border);
}
.data-table tr:last-child td {
  border-bottom: 0;
}
.data-table .subtext {
  display: block;
  color: var(--muted);
  font-size: 12px;
  margin-top: 4px;
}
.data-table td.number,
.data-table th.number {
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.data-table button {
  font-size: 12px;
}
.stats.six strong {
  font-size: 31px;
}
.automation-list {
  display: grid;
  gap: 16px;
  margin: 24px 0;
}
.new-blast-button {
  width: 100%;
  margin: 22px 0 0;
}
.format-tools {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin: 18px 0 8px;
}
.image-editor {
  border: 1px solid var(--border);
  background: var(--wash);
  border-radius: 8px;
  padding: 16px;
  margin: 12px 0 20px;
}
.image-editor h2 {
  font-size: 14px;
  margin: 0;
}
.lifecycle-editor {
  padding: 22px;
  margin: 20px 0;
}
.lifecycle-flow {
  padding: 20px;
}
.lifecycle-flow h2 {
  font-size: 16px;
}
#programmatic-history table {
  min-width: 850px;
}
#programmatic-history td:first-child {
  min-width: 210px;
}
#programmatic-queue table,
#lifecycle-events table {
  min-width: 650px;
}
#programmatic-catalog table,
#lifecycle-jobs table {
  min-width: 850px;
}
.lifecycle-step {
  padding: 16px;
  margin: 14px 0;
  background: var(--wash);
}
.condition-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr auto;
  gap: 8px;
  align-items: center;
  margin: 10px 0;
}
.condition-row select,
.condition-row input {
  margin: 0;
}
@media (max-width: 600px) {
  .condition-row {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }
}
.image-editor .hint {
  margin-bottom: 14px;
}
.format-tools button {
  padding: 6px 12px;
  font-size: 12px;
  border: 1px solid var(--border);
  background: var(--bg);
}
.blast-audience {
  margin-top: 20px;
  padding: 22px;
}
.blast-audience h2 {
  margin: 0 0 16px;
}
.blast-review {
  margin-top: 24px;
  padding: 24px;
  scroll-margin-top: 20px;
}
.blast-review .section-heading {
  margin-top: 0;
}
.automation-card {
  padding: 22px;
}
.automation-card h2 {
  margin: 0;
}
.automation-meta {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 13px;
  margin: 14px 0;
}
.step-timeline {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin: 16px 0;
}
.step-chip {
  border: 1px solid var(--border);
  padding: 12px 14px;
  border-radius: 10px;
  background: var(--bg);
  flex: 1;
  min-width: 150px;
}
.step-chip small {
  display: block;
  color: var(--muted);
  font-size: 11px;
  margin-bottom: 5px;
}
.step-chip strong {
  font-size: 13px;
  font-weight: 500;
}
.step-preview {
  display: block;
  margin-top: 12px;
  font-size: 12px;
}
.automation-editor {
  padding: 24px;
}
.automation-editor .section-heading {
  margin-top: 0;
}
.automation-step {
  margin-top: 22px;
  border-top: 1px solid var(--border);
  padding-top: 20px;
}
.automation-step-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.automation-step textarea {
  min-height: 150px;
}
.delay-row {
  display: flex;
  align-items: center;
  gap: 12px;
}
.delay-row input {
  width: 100px;
}
.delay-row span {
  font-size: 13px;
  color: var(--muted);
}
.job-preview {
  padding: 22px;
  margin-top: 20px;
}
.job-preview iframe {
  width: 100%;
  height: 650px;
  border: 1px solid var(--border);
  border-radius: 8px;
}
.automation-preview-frame {
  display: flex;
  justify-content: center;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #f4f5f7;
}
.automation-preview-frame.mobile iframe {
  max-width: 360px;
}
.badge.preparing,
.badge.ready {
  color: #1d4ed8;
  background: #eff6ff;
}
.badge.waiting,
.badge.paused {
  color: #6b7280;
  background: #f3f4f6;
}
.badge.cancelled {
  color: #92400e;
  background: #fffbeb;
}
#signup-search {
  max-width: 260px;
  margin: 0;
}
.section-heading .quiet {
  font-size: 13px;
}
@media (max-width: 1150px) {
  .stats.six {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .stats.four {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 900px) {
  .analytics-grid {
    grid-template-columns: 1fr;
  }
  .chart {
    height: 210px;
  }
  .heading-controls {
    flex-wrap: wrap;
  }
}
@media (max-width: 650px) {
  .heading-controls {
    width: 100%;
  }
  .stats.four,
  .stats.six {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .stats strong {
    font-size: 28px;
  }
  .chart-card {
    padding: 16px;
  }
  .chart-card .section-heading {
    align-items: flex-start;
  }
  .section-heading {
    gap: 12px;
  }
  .data-table th,
  .data-table td {
    padding: 12px;
  }
  .automation-card,
  .automation-editor {
    padding: 16px;
  }
  .automation-meta {
    gap: 10px;
  }
  .step-chip {
    min-width: 100%;
  }
  .section-heading:has(#signup-search) {
    flex-wrap: wrap;
  }
  #signup-search {
    max-width: none;
    width: 100%;
  }
}

.cost-layout {
  display: grid;
  grid-template-columns: minmax(260px, 360px) minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}
.cost-usage {
  padding: 24px;
  margin-bottom: 24px;
}
.cost-usage .stats {
  margin: 20px 0;
}
.cost-inputs,
.cost-breakdown {
  padding: 24px;
  margin-bottom: 20px;
}
.cost-inputs h2 {
  margin-bottom: 20px;
}
.cost-inputs label {
  display: block;
  margin-top: 16px;
}
.cost-inputs label.checkbox {
  display: flex;
}
.cost-inputs details {
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}
.cost-inputs summary {
  cursor: pointer;
  font-weight: 600;
}
.cost-stats {
  grid-template-columns: 1fr;
  margin-bottom: 20px;
}
.cost-stats > div {
  border-right: 0;
  border-bottom: 1px solid var(--border);
}
.cost-stats > div:last-child {
  border-bottom: 0;
}
.cost-stats small {
  display: block;
  color: var(--muted);
  margin-top: 8px;
}
.cost-breakdown dl {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  margin: 20px 0;
}
.cost-breakdown dt {
  color: var(--muted);
}
.cost-breakdown dd {
  margin: 0;
  font-weight: 600;
}
.cost-layout .note {
  margin-bottom: 20px;
}
@media (max-width: 1000px) {
  .cost-layout {
    grid-template-columns: 1fr;
  }
}

.confirmation-dialog {
  width: min(480px, calc(100vw - 32px));
  max-height: calc(100dvh - 48px);
  overflow: auto;
  margin: auto;
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: #fff;
  color: var(--ink);
  box-shadow: 0 24px 80px rgba(15, 23, 42, 0.2);
}
.confirmation-dialog::backdrop {
  background: rgba(15, 23, 42, 0.4);
}
.confirmation-dialog h2 {
  margin: 0 0 12px;
  font-size: 20px;
  line-height: 1.3;
}
.confirmation-dialog p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
  white-space: pre-line;
  overflow-wrap: anywhere;
}
.confirmation-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 24px;
  flex-wrap: wrap;
}
.confirmation-actions button {
  min-height: 40px;
}
