.d5030 {
  --navy: #174c78;
  --ink: #20384b;
  --muted: #536b7c;
  --line: #d7e1e8;
  --paper: #fff;
  --wash: #f2f6f8;
  --gold: #e8b647;
  color: var(--ink);
  font:
    16px/1.55 -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  box-sizing: border-box;
}
.d5030 * {
  box-sizing: border-box;
}
.d5030 h1,
.d5030 h2,
.d5030 h3 {
  color: var(--ink);
  line-height: 1.2;
  font-weight: 650;
  margin: 0 0 14px;
}
.d5030 h1 {
  font-size: 34px;
  letter-spacing: -0.8px;
}
.d5030 h2 {
  font-size: 26px;
  letter-spacing: -0.4px;
}
.d5030 h3 {
  font-size: 19px;
}
.d5030 p {
  font-size: inherit;
  line-height: 1.55;
  margin: 10px 0 18px;
}
.d5030 a {
  color: var(--navy);
}
.d5030 button,
.d5030 .d5030-button {
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: #fff;
  border: 1px solid #a8bbc9;
  border-radius: 6px;
  color: var(--navy);
  padding: 10px 14px;
  cursor: pointer;
  text-decoration: none;
  white-space: normal;
}
.d5030 button:hover,
.d5030 .d5030-button:hover {
  background: #eaf2f7;
  border-color: var(--navy);
}
.d5030 button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.d5030 button.d5030-primary {
  background: var(--navy);
  border-color: var(--navy);
  color: white;
}
.d5030 button.d5030-primary:hover {
  background: #0d3b61;
}
.d5030 :focus-visible {
  outline: 3px solid #2589c8;
  outline-offset: 3px;
}
.d5030 button.d5030-link {
  background: transparent;
  border-color: transparent;
  padding-left: 0;
  text-decoration: underline;
}
.d5030 label {
  font-weight: 600;
  font-size: 15px;
  display: block;
  margin: 18px 0 7px;
}
.d5030 input:not([type="checkbox"]),
.d5030 textarea,
.d5030 select {
  width: 100%;
  max-width: none;
  min-height: 45px;
  padding: 10px 12px;
  background: white;
  color: var(--ink);
  border: 1px solid #a8bbc9;
  border-radius: 5px;
  font: inherit;
  font-size: 16px;
  box-shadow: none;
}
.d5030 textarea {
  resize: vertical;
  line-height: 1.6;
}
.d5030 input[type="file"] {
  padding: 8px;
  font-size: 14px;
}
.d5030 input[type="checkbox"] {
  width: 19px;
  height: 19px;
  min-width: 19px;
  margin: 2px 0 0;
  accent-color: var(--navy);
}
.d5030 .d5030-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-weight: 400;
}
.d5030 .d5030-help {
  font-size: 13px;
  color: var(--muted);
  margin: 8px 0 16px;
}
.d5030 .d5030-eyebrow {
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 2px;
  color: var(--navy);
  margin: 0 0 8px;
}
.d5030 .d5030-notice {
  padding: 15px 18px;
  border-left: 4px solid #34866b;
  border-radius: 4px;
  background: #eaf4ef;
  color: #264f40;
  white-space: pre-line;
}
.d5030 .d5030-notice.error,
.d5030-dialog-error {
  background: #fff0ec;
  color: #91351e;
  border-color: #c85637;
  white-space: pre-line;
}
.d5030 .d5030-dialog-error:empty {
  display: none;
}
.d5030 .d5030-dialog-error {
  padding: 12px;
}
.d5030 .d5030-panel {
  padding: 25px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 10px;
  margin: 0 0 22px;
}
.d5030 .d5030-two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}
.d5030 .d5030-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 9px;
  margin: 18px 0 0;
}
.d5030 .d5030-actions label {
  margin: 0;
}
.d5030 .d5030-tag {
  display: inline-block;
  border-radius: 4px;
  background: #e8eff5;
  color: var(--navy);
  padding: 5px 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.4px;
  text-transform: uppercase;
}
.d5030 details {
  margin-top: 16px;
}
.d5030 summary {
  cursor: pointer;
  color: var(--navy);
  font-weight: 600;
  min-height: 42px;
  padding: 8px 0;
}
.d5030-standalone,
#d5030-form {
  max-width: 820px;
  margin: 40px auto;
  padding: 28px;
}
.d5030 .d5030-intro {
  font-size: 19px;
  color: var(--muted);
}
.d5030-choice-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin: 28px 0;
}
.d5030 button.d5030-choice {
  align-items: flex-start;
  text-align: left;
  flex-direction: column;
  padding: 28px;
  min-height: 190px;
  border: 2px solid var(--line);
}
.d5030-choice strong {
  font-size: 22px;
  line-height: 1.3;
  margin-bottom: 12px;
}
.d5030-choice span {
  font-weight: 400;
  font-size: 16px;
  line-height: 1.6;
}
.d5030 button.d5030-member {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 100%;
  text-align: left;
  margin: 5px 0;
  background: #f2f6f8;
}
.d5030-member span {
  font-weight: 400;
}
.d5030 .d5030-honeypot {
  position: absolute !important;
  left: -10000px !important;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.d5030-upload-preview {
  max-width: 100%;
  max-height: 300px;
  object-fit: contain;
  margin: 15px 0;
}
.d5030-image-review {
  max-width: 100%;
  height: auto;
}
#d5030-admin {
  margin: 25px 25px 40px 5px;
  max-width: 1700px;
}
#d5030-admin .d5030-app-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 12px 0 24px;
  border-bottom: 3px solid var(--gold);
}
.d5030-app-header h1 {
  font-size: 32px;
  margin: 0;
}
.d5030-app-header h1 span {
  font-size: 15px;
  font-weight: 400;
  color: var(--muted);
  margin-left: 13px;
  letter-spacing: 0;
}
.d5030-mode {
  font-size: 12px;
  font-weight: 600;
  border: 1px solid #cfdfeb;
  background: #eaf1f6;
  border-radius: 20px;
  padding: 8px 14px;
  white-space: nowrap;
}
.d5030-tabs {
  display: flex;
  gap: 7px;
  margin: 20px 0 32px;
  flex-wrap: wrap;
}
.d5030-tabs button {
  border-color: transparent;
  background: transparent;
}
.d5030 .d5030-tabs button[aria-current="page"] {
  background: var(--navy);
  color: white;
}
.d5030-count {
  border-radius: 20px;
  background: #e8b647;
  color: #263a4b;
  padding: 0 6px;
  font-size: 11px;
}
.d5030-overview-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}
.d5030-overview-title p {
  color: var(--muted);
  margin-bottom: 0;
}
.d5030-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin: 25px 0;
}
.d5030-stats > div {
  padding: 24px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 9px;
}
.d5030-stats strong {
  display: block;
  font-size: 32px;
  font-weight: 650;
  color: var(--navy);
}
.d5030-stats span {
  font-size: 13px;
  color: var(--muted);
}
.d5030-sections {
  padding-left: 24px;
}
.d5030-sections li {
  padding: 5px 0 5px 6px;
}
.d5030 button.d5030-edition-row {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  width: 100%;
  text-align: left;
  padding: 24px;
  margin-bottom: 12px;
  border-color: var(--line);
}
.d5030-edition-row strong {
  font-size: 18px;
}
.d5030 small {
  display: block;
  font-size: 12px;
  font-weight: 400;
  color: var(--muted);
  margin-top: 7px;
}
.d5030-editor-toolbar {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
  padding: 13px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  position: sticky;
  top: 32px;
  z-index: 10;
  margin-bottom: 22px;
}
.d5030-editor-toolbar > span {
  margin-right: auto;
  font-size: 13px;
  color: var(--muted);
}
.d5030-editor-layout {
  display: grid;
  grid-template-columns: minmax(350px, 1fr) minmax(400px, 1fr);
  gap: 25px;
  align-items: start;
}
.d5030-item {
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fff;
  padding: 20px;
  margin: 0 0 16px;
  box-shadow: 0 2px 4px #20384b05;
}
.d5030-item.is-held {
  background: #f4f5f6;
  border-style: dashed;
}
.d5030-item.is-drop-target {
  outline: 3px solid #2589c8;
}
.d5030-item-heading {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.d5030-item-heading > div {
  flex: 1;
  min-width: 0;
}
.d5030-item h3 {
  font-size: 18px;
  margin: 11px 0 4px;
  overflow-wrap: anywhere;
}
.d5030 .d5030-item .d5030-help {
  margin-bottom: 0;
}
.d5030-item-thumb {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: 5px;
}
.d5030-drag {
  font-size: 28px;
  color: #7890a0;
  cursor: grab;
  user-select: none;
}
.d5030-item .d5030-actions button {
  font-size: 12px;
  min-height: 36px;
  padding: 8px 10px;
}
.d5030-item .d5030-check {
  font-size: 12px;
}
.d5030-item-fields {
  padding-top: 6px;
}
.d5030-item-fields > button,
.d5030-item-fields > a {
  margin: 12px 8px 0 0;
}
.d5030-preview {
  position: sticky;
  top: 116px;
  min-width: 0;
}
.d5030-preview-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
}
.d5030-preview-head strong {
  font-size: 17px;
}
.d5030-preview-well {
  background: #dfe7ed;
  padding: 12px;
  border-radius: 10px;
  overflow: auto;
  text-align: center;
}
.d5030-preview iframe {
  height: 720px;
  max-width: 100%;
  border: 0;
  background: white;
  display: block;
  margin: auto;
}
.d5030-submission-body {
  white-space: pre-wrap;
  max-height: 400px;
  overflow: auto;
  font-size: 15px;
  padding: 16px;
  background: #f3f6f8;
  border-radius: 5px;
  margin-bottom: 15px;
}
.d5030-legacy-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
}
.d5030-legacy-row > span {
  min-width: 0;
  overflow-wrap: anywhere;
}
.d5030-dialog {
  max-width: 720px;
  width: calc(100% - 36px);
  max-height: 90vh;
  overflow: auto;
  border: 0;
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 24px 90px #122d4c55;
}
.d5030-dialog::backdrop {
  background: #152b46a8;
}
.d5030-dialog .d5030-overview-title {
  align-items: flex-start;
}
.d5030-dialog #dialog-close {
  font-size: 24px;
  min-width: 42px;
  padding: 6px;
}
.d5030-dialog #ad-library {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.d5030-report {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}
.d5030-report strong {
  font-size: 26px;
  display: block;
}
.d5030-cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}
.d5030-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 7px;
  overflow: hidden;
}
.d5030-cover {
  display: block;
  width: 100%;
  height: 180px;
  object-fit: cover;
}
.d5030-card-body {
  padding: 22px;
}
.d5030-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: block;
  margin: 12px 0;
}
.d5030-card h3 {
  margin: 18px 0;
}
.d5030-card h3 a {
  text-decoration: none;
}
.d5030-card p {
  font-size: 14px;
}
@media (min-width: 1700px) {
  .d5030-preview iframe {
    height: 850px;
  }
}
@media (max-width: 1100px) {
  .d5030-editor-layout {
    grid-template-columns: 1fr;
  }
  .d5030-preview {
    position: static;
  }
  .d5030-preview-well {
    max-width: 690px;
    margin: auto;
  }
  .d5030-preview iframe {
    height: 650px;
  }
  .d5030-stats {
    grid-template-columns: 1fr 1fr;
  }
  .d5030-cards {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 640px) {
  #d5030-admin {
    margin: 18px 12px 30px 0;
  }
  .d5030 h1 {
    font-size: 28px;
  }
  .d5030 h2 {
    font-size: 23px;
  }
  .d5030-app-header h1 span {
    display: block;
    margin: 8px 0 0;
  }
  .d5030-app-header {
    align-items: flex-start !important;
    flex-direction: column;
  }
  .d5030 .d5030-two,
  .d5030-choice-grid,
  .d5030-cards {
    grid-template-columns: 1fr;
  }
  .d5030 .d5030-panel {
    padding: 20px;
  }
  .d5030-overview-title {
    align-items: flex-start;
    flex-direction: column;
  }
  .d5030-dialog .d5030-overview-title {
    flex-direction: row;
  }
  .d5030-editor-toolbar {
    position: static;
  }
  .d5030-editor-toolbar > span {
    flex-basis: 100%;
  }
  .d5030-item {
    padding: 15px;
  }
  .d5030-item-thumb {
    width: 50px;
    height: 50px;
  }
  .d5030-dialog {
    padding: 22px;
  }
  .d5030-standalone,
  #d5030-form {
    padding: 18px;
    margin: 20px auto;
  }
  .d5030 button.d5030-edition-row {
    flex-wrap: wrap;
  }
  .d5030-stats > div {
    padding: 18px;
  }
  .d5030-stats span {
    font-size: 12px;
  }
  .d5030-legacy-row {
    align-items: flex-start;
    flex-direction: column;
  }
  .d5030-tabs {
    gap: 2px;
  }
  .d5030-tabs button {
    padding: 10px;
  }
  .d5030-preview-well {
    padding: 5px;
  }
  .d5030-dialog input {
    min-width: 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  .d5030 * {
    scroll-behavior: auto !important;
  }
}

.d5030-drag {
  display: inline-flex;
  min-width: 24px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  touch-action: none;
}
.d5030-item.is-dragging {
  opacity: 0.55;
}
/* Guided edition workflow. */
.d5030 [hidden] { display: none !important; }
.d5030-workflow-status { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px; margin:18px 0; }
.d5030-workflow-status > div { background:#fff; border:1px solid #dce3e9; border-radius:8px; padding:16px; display:flex; flex-direction:column; gap:6px; }
.d5030-workflow-status span { font-size:13px; color:#526172; }
.d5030-workflow-status strong { font-size:16px; color:#173e5d; }
.d5030-steps { display:flex; gap:6px; flex-wrap:wrap; margin:22px 0; }
.d5030-steps button { flex:1; text-align:left; min-height:54px; display:flex; align-items:center; gap:8px; }
.d5030-steps button[aria-current=step] { background:#17496c; color:white; border-color:#17496c; }
.d5030-steps span { border:1px solid currentColor; border-radius:50%; width:24px; height:24px; display:inline-flex; align-items:center; justify-content:center; flex-shrink:0; }
.d5030-stage { background:white; padding:24px; border:1px solid #dce3e9; border-radius:10px; margin-bottom:18px; }
.d5030-stage h2 { margin-top:0; }
.d5030-stage li { margin-bottom:10px; }
.d5030-stage form { max-width:700px; margin:20px 0; }
.d5030-stage input:not([type=checkbox]), .d5030-stage select { display:block; width:100%; box-sizing:border-box; margin:8px 0 16px; }
.d5030-stage details { margin:20px 0; }
.d5030-stage summary { cursor:pointer; font-weight:600; min-height:36px; }
.d5030-kind { font-weight:600; font-size:12px; }
.d5030 .d5030-preview-only { grid-template-columns:1fr; }
.d5030-preview-only > section { display:none; }
.d5030-preview-only .d5030-preview { position:static; max-width:800px; width:100%; margin:auto; }
.d5030-mobile-views { display:none; }
.d5030 button:focus-visible, .d5030 a:focus-visible, .d5030 summary:focus-visible { outline:3px solid #b47500; outline-offset:3px; }
@media(max-width:1100px) {
 .d5030-mobile-views { display:flex; gap:8px; margin:12px 0; }
 .d5030-editor-layout:not(.d5030-preview-only):not(.show-preview) > aside { display:none; }
 .d5030-editor-layout.show-preview > section { display:none; }
 .d5030-steps button { flex-basis:150px; }
}
@media(max-width:640px) {
 .d5030-workflow-status { grid-template-columns:1fr; }
 .d5030-workflow-status > div { padding:12px; }
 .d5030-stage { padding:16px; }
 .d5030-steps button { flex-basis:100%; }
 .d5030 button { min-height:44px; }
 .d5030-stage a, .d5030-stage li { overflow-wrap:anywhere; }
}
.d5030-recipient-row { display:grid; grid-template-columns:1fr 1fr 1.3fr; gap:12px; padding:14px 0; border-bottom:1px solid #dce3e9; overflow-wrap:anywhere; }
.d5030-stage textarea { width:100%; box-sizing:border-box; margin:8px 0; }
.d5030-recipient-search { display:flex; gap:12px; align-items:end; flex-wrap:wrap; margin-bottom:16px; }
.d5030-recipient-search label { flex:1; min-width:180px; }
.d5030-recipient-search input { display:block; width:100%; margin-top:8px; }
@media(max-width:640px) { .d5030-recipient-row { grid-template-columns:1fr; gap:5px; } }

.d5030-dns-record{padding:16px;margin:12px 0;background:#f4f7fa;border:1px solid #d8e1e9;border-radius:8px}.d5030-dns-record input{font-family:monospace;width:100%;box-sizing:border-box}.d5030 #smtp-key,.d5030 #smtp-domain{width:100%;max-width:580px}.d5030 #smtp-connect button{margin:8px 0}.d5030 #smtp-domain{margin-bottom:14px}

/* Campaign reports keep recipient identity readable and wide tables keyboard-scrollable. */
.d5030-report-heading{display:flex;justify-content:space-between;align-items:center;gap:16px;flex-wrap:wrap}
.d5030-table-scroll{overflow-x:auto;margin:16px 0;max-width:100%}
.d5030-table-scroll table{min-width:650px}
.d5030-table-scroll td{vertical-align:top;overflow-wrap:anywhere;max-width:430px;padding:12px}
.d5030-table-scroll th{padding:12px;text-align:left}
.d5030-recipient-search label{flex:1;min-width:160px}
.d5030-table-scroll:focus-visible{outline:2px solid #153c61;outline-offset:3px}
@media(max-width:600px){.d5030-report-heading{display:block}.d5030-recipient-search{display:flex;flex-direction:column}.d5030-workflow-status{grid-template-columns:1fr 1fr}}

.d5030 .d5030-headshot-preview { display:block; width:96px; height:96px; max-width:100%; object-fit:cover; border-radius:50%; margin:12px 0; }
.d5030 .d5030-headshot-preview[hidden] { display:none; }
