.approve {
  margin-top: 20px;
  text-align: right;
}

.approve p {
  color: var(--muted);
  font-size: 13px;
}

.messages {
  padding-top: 18px;
}

.message {
  background: #e3f2e9;
  border: 1px solid #afd2bd;
  border-radius: 10px;
  color: var(--green);
  font-weight: 700;
  padding: 13px 16px;
}

.nav-cta {
  background: var(--green);
  border-radius: 8px;
  color: #fff;
  padding: 8px 13px;
}

.form-foot {
  color: var(--muted);
  font-size: 13px;
  margin: 18px 0 0;
}

.form-foot a {
  color: var(--green);
  font-weight: 750;
}

.privacy-note {
  align-items: start;
  background: #edf6f0;
  border: 1px solid #cce1d3;
  border-radius: 12px;
  display: grid;
  gap: 3px;
  margin-top: 25px;
  padding: 15px 17px;
}

.privacy-note strong {
  color: var(--green);
}

.privacy-note span {
  color: var(--muted);
  font-size: 13px;
}

.inbound-address code {
  color: var(--ink);
  font-size: 16px;
  font-weight: 750;
  overflow-wrap: anywhere;
}

.text-link {
  color: var(--green);
  font-size: 13px;
  font-weight: 750;
}

.wizard-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin: 20px 0 30px;
}

.wizard-steps span {
  border-top: 3px solid var(--line);
  color: var(--muted);
  font-size: 13px;
  padding: 10px 5px;
}

.wizard-steps .done {
  border-color: var(--green);
  color: var(--ink);
  font-weight: 750;
}

.mapping-upload,
.mapping-page .panel {
  overflow: visible;
}

.panel-head small {
  color: var(--muted);
}

.inline-upload,
.table-selector {
  align-items: end;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  padding: 20px 22px;
}

.inline-upload input[type="file"] {
  flex: 1;
  min-width: 280px;
}

.table-selector label {
  color: var(--muted);
  display: grid;
  font-size: 12px;
  font-weight: 700;
  gap: 5px;
}

.table-selector select,
.table-selector input,
.mapping-grid select,
.mapping-grid input {
  background: #fff;
  border: 1px solid #cbd4ce;
  border-radius: 8px;
  min-height: 43px;
  padding: 9px 11px;
}

.table-scroll {
  border-top: 1px solid var(--line);
  overflow-x: auto;
}

.data-preview {
  border-collapse: collapse;
  min-width: 100%;
  white-space: nowrap;
}

.data-preview th,
.data-preview td {
  border-bottom: 1px solid var(--line);
  font-size: 13px;
  padding: 11px 14px;
  text-align: left;
}

.data-preview th {
  background: var(--cream);
  color: var(--green);
}

.mapping-form {
  padding: 8px 22px 22px;
}

.mapping-grid {
  align-items: center;
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 12px;
  grid-template-columns: 1.15fr 1.2fr 1fr 1fr;
  padding: 12px 0;
}

.mapping-grid label {
  font-weight: 700;
}

.mapping-grid label b {
  color: var(--red);
}

.mapping-grid label small {
  color: var(--muted);
  display: block;
  font-family: ui-monospace, monospace;
  font-weight: 400;
}

.mapping-grid .target-name {
  display: block;
  font-family: ui-monospace, monospace;
  font-size: 12px;
  margin-top: 5px;
  min-height: 34px;
  width: 100%;
}

.mapping-head {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.mapping-actions {
  align-items: center;
  display: flex;
  gap: 20px;
  justify-content: space-between;
  padding-top: 20px;
}

.mapping-actions p {
  color: var(--muted);
  font-size: 13px;
  margin: 0;
}

.success-dot {
  color: var(--green);
  font-size: 13px;
  font-weight: 800;
}

.preview-result pre {
  max-height: 430px;
}

.preview-result .mapping-actions {
  padding: 18px 22px;
}

@media (max-width: 860px) {
  .mapping-head {
    display: none;
  }

  .mapping-grid {
    grid-template-columns: 1fr 1fr;
  }

  .mapping-grid label {
    grid-column: 1 / -1;
  }
}

@media (max-width: 560px) {
  .wizard-steps {
    grid-template-columns: 1fr 1fr;
  }

  .mapping-grid {
    grid-template-columns: 1fr;
  }

  .mapping-actions {
    align-items: stretch;
    flex-direction: column;
  }
}

.inline-form {
  display: inline;
  margin: 0;
}

.alert .inline-form .button {
  margin-top: 6px;
}

.status.retry_scheduled,
.status.retry,
.status.delivering {
  background: #d8912d;
}

.status.dead_letter {
  background: var(--red);
}

.legal h2 {
  font: 700 24px/1.25 Georgia, serif;
  margin: 38px 0 10px;
}

.legal h3 {
  font-size: 17px;
  margin: 24px 0 6px;
}

.legal p,
.legal li {
  color: #34413b;
}

.legal ul {
  padding-left: 20px;
}

.legal li {
  margin-bottom: 6px;
}

.legal a {
  color: var(--green);
  font-weight: 600;
  text-decoration: underline;
}

.legal-meta {
  font-size: 13px;
}

.legal-draft {
  margin-top: 22px;
}

.status.delivery_unknown,
.status.unknown,
.status.waiting_for_credit {
  background: #d8912d;
}

.status.cancelled {
  background: #aab0ac;
}

.stats small + small {
  font-size: 12px;
  margin-top: 4px;
}

.alert .inline-form + .inline-form {
  margin-left: 8px;
}

.settings-heading {
  font-size: 17px;
  margin: 0 0 12px;
}

.settings-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.settings-list li,
.checkbox-row span {
  display: block;
  margin-bottom: 12px;
}

.settings-list small,
.checkbox-row small {
  color: var(--muted);
  display: block;
  font-weight: 400;
}

.form-card .checkbox-row {
  align-items: flex-start;
  display: flex;
  gap: 12px;
  font-weight: 400;
}

.form-card .checkbox-row input {
  margin-top: 5px;
  width: auto;
}

.form-note {
  color: var(--muted);
  font-size: 14px;
}

.form-card .checkbox-row input[type="radio"]:disabled + span {
  opacity: 0.55;
}
