:root {
  --ms-ink: #152d40;
  --ms-muted: #677b8c;
  --ms-line: #e1e7ed;
  --ms-gold: #eebf61;
  --ms-navy: #102b40;
  --ms-surface: #f5f7fa;
}
body:has(#mailsig-app),
body:has(.ms-login) {
  margin: 0;
  background: var(--ms-surface);
}
#mailsig-app,
.ms-dialog,
.ms-login,
.ms-toast {
  font:
    14px/1.6 -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  color: var(--ms-ink);
  box-sizing: border-box;
}
#mailsig-app *,
.ms-dialog *,
.ms-login * {
  box-sizing: border-box;
}
#mailsig-app button,
.ms-dialog button,
.ms-login button {
  font: inherit;
  cursor: pointer;
  border: 1px solid var(--ms-line);
  border-radius: 8px;
  padding: 9px 15px;
  background: #fff;
  color: var(--ms-ink);
  transition: background 0.15s;
}
#mailsig-app button:hover,
.ms-dialog button:hover {
  background: #edf2f6;
}
#mailsig-app button:disabled,
.ms-dialog button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
#mailsig-app button:focus-visible,
.ms-dialog button:focus-visible,
#mailsig-app input:focus-visible,
#mailsig-app select:focus-visible,
.ms-dialog input:focus-visible {
  outline: 3px solid #73b4dd;
  outline-offset: 2px;
}
#mailsig-app .ms-primary,
.ms-dialog .ms-primary,
.ms-login .ms-primary {
  background: var(--ms-navy);
  color: #fff;
  border-color: var(--ms-navy);
  font-weight: 600;
  text-decoration: none;
}
#mailsig-app .ms-primary:hover,
.ms-dialog .ms-primary:hover {
  background: #23475f;
}
#mailsig-app input,
#mailsig-app select,
#mailsig-app textarea,
.ms-dialog input,
.ms-dialog select,
.ms-dialog textarea,
.ms-login input {
  display: block;
  width: 100%;
  min-width: 0;
  padding: 11px 12px;
  border: 1px solid #d5dee7;
  border-radius: 7px;
  background: #fff;
  color: var(--ms-ink);
  font: inherit;
  line-height: 1.4;
  margin-top: 6px;
}
#mailsig-app input[type="color"] {
  height: 42px;
  padding: 5px;
}
#mailsig-app textarea,
.ms-dialog textarea {
  resize: vertical;
}
#mailsig-app label,
.ms-dialog label,
.ms-login label {
  display: block;
  font-size: 13px;
  font-weight: 600;
}
#mailsig-app fieldset {
  border: 0;
  padding: 0;
  margin: 0;
  min-width: 0;
}
#mailsig-app h1,
#mailsig-app h2,
#mailsig-app h3,
.ms-dialog h2 {
  line-height: 1.25;
  margin: 0 0 12px;
  color: var(--ms-ink);
}
#mailsig-app h1 {
  font-size: 26px;
  letter-spacing: -0.7px;
}
#mailsig-app h2 {
  font-size: 23px;
  letter-spacing: -0.4px;
}
#mailsig-app h3 {
  font-size: 17px;
}
#mailsig-app p {
  margin: 8px 0 18px;
  color: var(--ms-muted);
}
#mailsig-app .ms-shell {
  display: grid;
  grid-template-columns: 228px minmax(0, 1fr);
  min-height: 100vh;
}
.ms-sidebar {
  background: var(--ms-navy);
  color: #d5e2eb;
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 35px 20px 22px;
  display: flex;
  flex-direction: column;
}
.ms-brand {
  color: #fff !important;
  text-decoration: none;
  font-size: 36px;
  font-weight: 300;
  letter-spacing: -1.8px;
  padding: 0 14px;
}
.ms-brand span {
  font-weight: 800;
}
.ms-brand small {
  display: block;
  font-size: 9px;
  letter-spacing: 2.8px;
  font-weight: 500;
  margin-top: -6px;
  color: #9bb1c3;
}
.ms-workspace-label {
  font-size: 9px;
  letter-spacing: 1.6px;
  color: #7f9bb0;
  margin: 45px 14px 14px;
}
#mailsig-app nav button {
  width: 100%;
  background: transparent;
  color: #b6cad9;
  border: 0;
  text-align: left;
  padding: 12px 15px;
  margin: 3px 0;
  display: flex;
  align-items: center;
  gap: 14px;
  font-weight: 500;
}
#mailsig-app nav button span {
  font-size: 18px;
  width: 20px;
  text-align: center;
}
#mailsig-app nav button.active {
  background: #294559;
  color: #fff;
  box-shadow: inset 3px 0 var(--ms-gold);
}
#mailsig-app nav button:hover {
  background: #294559;
}
.ms-sidebar-foot {
  margin-top: auto;
  padding: 22px 12px 0;
  border-top: 1px solid #2c4558;
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 0 9px;
}
.ms-avatar {
  grid-row: span 2;
  border-radius: 50%;
  background: #e9bd67;
  color: #132d40;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
}
.ms-sidebar-foot strong {
  font-size: 12px;
}
.ms-sidebar-foot a {
  font-size: 11px;
  color: #abc3d4;
}
.ms-main {
  padding: 0 40px;
  min-width: 0;
}
.ms-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 28px 0;
  border-bottom: 1px solid var(--ms-line);
  gap: 20px;
  margin-bottom: 30px;
}
.ms-eyebrow {
  font-size: 9px;
  letter-spacing: 2px;
  font-weight: 700;
  display: block;
  margin-bottom: 8px;
  color: #778b9d;
}
.ms-top-actions,
.ms-button-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.ms-hero {
  background: #e8eff3;
  border-radius: 14px;
  padding: 36px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  overflow: hidden;
  margin-bottom: 26px;
  min-height: 270px;
}
#mailsig-app .ms-hero h2 {
  font-size: 38px;
  letter-spacing: -1.4px;
  line-height: 1.16;
}
#mailsig-app .ms-hero p {
  max-width: 450px;
  font-size: 14px;
}
.ms-hero-mark {
  border: 1px solid #b9ccd9;
  border-radius: 50%;
  width: 190px;
  height: 190px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  font-size: 80px;
  color: #446e89;
  background: linear-gradient(145deg, #f9fcfe, #d5e3ec);
  transform: rotate(-10deg);
  margin-right: 18px;
}
.ms-hero-mark span {
  position: absolute;
  bottom: 28px;
  font-size: 7px;
  letter-spacing: 1px;
  color: #6f8a9d;
}
.ms-callout {
  border: 1px solid #ddcfad;
  border-left: 3px solid #d9a448;
  background: #fffaf0;
  border-radius: 9px;
  padding: 18px 22px;
  margin: 20px 0;
}
#mailsig-app .ms-callout p {
  margin: 4px 0 8px;
  font-size: 13px;
}
.ms-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin: 24px 0;
}
.ms-metric {
  background: white;
  border: 1px solid var(--ms-line);
  border-radius: 10px;
  padding: 20px;
}
.ms-metric > span {
  font-size: 12px;
  color: var(--ms-muted);
}
.ms-metric strong {
  display: block;
  font-size: 33px;
  line-height: 1.6;
  letter-spacing: -1px;
  font-weight: 650;
}
.ms-metric small {
  font-size: 10px;
  color: var(--ms-muted);
}
.ms-card {
  background: #fff;
  border: 1px solid var(--ms-line);
  border-radius: 11px;
  padding: 24px;
  margin-bottom: 22px;
}
.ms-card-title,
.ms-page-intro {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.ms-card-title {
  margin-bottom: 12px;
}
.ms-page-intro {
  margin: 8px 0 22px;
}
.ms-page-intro p {
  margin-bottom: 0 !important;
}
.ms-table-scroll {
  overflow: auto;
  width: 100%;
}
#mailsig-app table,
.ms-dialog table {
  border-collapse: collapse;
  width: 100%;
  text-align: left;
  white-space: normal;
}
#mailsig-app th,
.ms-dialog th {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #7890a1;
  background: #f8fafc;
  padding: 13px 12px;
  border-bottom: 1px solid var(--ms-line);
}
#mailsig-app td,
.ms-dialog td {
  padding: 17px 12px;
  border-bottom: 1px solid #edf1f5;
  font-size: 12px;
}
#mailsig-app td small,
.ms-dialog td small {
  display: block;
  font-size: 11px;
  color: var(--ms-muted);
  margin-top: 4px;
}
#mailsig-app tr:last-child td {
  border-bottom: 0;
}
.ms-badge {
  display: inline-flex;
  border-radius: 20px;
  font-size: 10px;
  padding: 4px 9px;
  font-weight: 600;
  background: #edf1f6;
  color: #64788b;
  white-space: nowrap;
}
.ms-approved,
.ms-completed,
.ms-delivered,
.ms-delivery_enabled,
.ms-active,
.ms-subscribed {
  background: #e7f3ec;
  color: #327252;
}
.ms-pending_approval,
.ms-scheduled,
.ms-queued {
  background: #fff3d7;
  color: #906918;
}
.ms-failed,
.ms-attention,
.ms-completed_with_errors,
.ms-rejected,
.ms-suppressed {
  background: #fbeceb;
  color: #a74f49;
}
.ms-paused {
  background: #f3eafa;
  color: #775193;
}
.ms-filters {
  display: flex;
  gap: 12px;
  margin-bottom: 20px;
}
.ms-filters input {
  max-width: 420px;
}
.ms-filters select {
  max-width: 210px;
}
.ms-empty {
  text-align: center;
  padding: 45px;
  color: var(--ms-muted);
}
.ms-empty > span {
  font-size: 35px;
}
.ms-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 19px;
}
.ms-wide {
  grid-column: 1/-1;
}
.ms-setup-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
.ms-setup-grid .ms-card {
  margin: 0;
}
.ms-step {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 22px;
}
.ms-step b {
  border-radius: 50%;
  width: 29px;
  height: 29px;
  display: grid;
  place-items: center;
  font-size: 11px;
  background: #eaf0f5;
  color: #527286;
}
.ms-step h3 {
  margin: 0 !important;
}
#mailsig-app .ms-check,
.ms-dialog .ms-check {
  display: flex;
  gap: 10px;
  align-items: center;
  font-weight: 400;
}
#mailsig-app input[type="checkbox"],
.ms-dialog input[type="checkbox"] {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  margin: 0;
}
.ms-sticky-actions {
  position: sticky;
  bottom: 0;
  padding: 18px 22px;
  background: #fffffff2;
  backdrop-filter: blur(8px);
  border: 1px solid var(--ms-line);
  border-radius: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin: 22px 0;
  z-index: 2;
}
.ms-sticky-actions span {
  font-size: 12px;
  color: var(--ms-muted);
}
.ms-workflow {
  margin-top: 22px;
}
.ms-builder-toolbar {
  display: flex;
  justify-content: space-between;
  margin-bottom: 16px;
  gap: 12px;
}
.ms-builder {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 20px;
  align-items: start;
}
.ms-preview-wrap {
  background: #e8edf2;
  border: 1px solid #dce4eb;
  border-radius: 12px;
  padding: 18px;
  position: sticky;
  top: 16px;
  text-align: center;
}
.ms-preview-wrap iframe {
  width: 100%;
  height: 790px;
  border: 0;
  background: white;
  transition: width 0.2s;
}
.ms-preview-wrap iframe.ms-mobile {
  width: 375px;
  max-width: 100%;
}
.ms-builder-panel {
  border: 1px solid var(--ms-line);
  border-radius: 12px;
  background: white;
  overflow: hidden;
}
.ms-panel-head {
  padding: 20px 18px 0;
}
.ms-panel-head p {
  font-size: 11px;
}
.ms-builder-panel fieldset {
  padding: 0 16px 20px !important;
}
.ms-design-settings {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}
.ms-design-settings label {
  flex: 1;
  min-width: 0;
  font-size: 10px !important;
}
.ms-layouts {
  margin: 16px 0;
}
#mailsig-app .ms-layouts button {
  padding: 7px 9px;
  font-size: 11px;
}
.ms-structure-section {
  border: 1px solid #dfe7ee;
  border-radius: 8px;
  margin-bottom: 12px;
  padding: 10px;
}
.ms-section-title {
  display: flex;
  gap: 6px;
  align-items: center;
  margin-bottom: 12px;
}
.ms-section-title strong {
  margin-right: auto;
  font-size: 12px;
}
#mailsig-app .ms-section-title button {
  padding: 2px 7px;
}
.ms-column {
  padding: 7px;
  background: #f8fafc;
  border: 1px dashed #d8e1e9;
  margin: 7px 0;
  border-radius: 6px;
}
.ms-column > small {
  font-size: 9px;
  color: #8193a1;
}
.ms-block {
  display: flex;
  border: 1px solid #e0e7ed;
  background: white;
  border-radius: 6px;
  margin: 6px 0;
  align-items: center;
  overflow: hidden;
}
.ms-block.selected {
  border-color: #628ba6;
  box-shadow: 0 0 0 1px #628ba6;
}
#mailsig-app .ms-block button {
  border: 0;
  border-radius: 0;
  padding: 5px 6px;
  font-size: 12px;
}
#mailsig-app .ms-block > button:first-child {
  text-align: left;
  flex: 1;
  text-transform: capitalize;
  min-width: 0;
}
#mailsig-app .ms-block button small {
  display: block;
  font-size: 9px;
  color: #8a98a3;
  max-width: 160px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ms-block button span {
  margin-right: 7px;
  color: #93a5b2;
}
.ms-block-editor {
  padding-top: 20px;
  border-top: 2px solid #e6c273;
  margin-top: 18px;
}
.ms-block-editor label {
  margin: 12px 0;
}
.ms-block-editor textarea {
  font-family: monospace !important;
  font-size: 12px !important;
  min-height: 150px;
}
.ms-muted {
  font-size: 12px;
  color: var(--ms-muted);
}
.ms-template-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.ms-template {
  padding: 18px;
}
.ms-template-art {
  height: 200px;
  background: #e8eff3;
  border-radius: 8px;
  margin-bottom: 20px;
  display: grid;
  place-items: center;
  overflow: hidden;
}
.ms-template-art > div {
  width: 65%;
  height: 160px;
  box-shadow: 0 6px 25px #1c334416;
  background: white;
  padding: 25px 17px;
  transform: translateY(22px);
  border-radius: 4px;
}
.ms-template-art b {
  font:
    14px Georgia,
    serif;
}
.ms-template-art span {
  display: block;
  height: 5px;
  background: #d8e2e8;
  margin: 13px 0;
}
.ms-template-art i {
  display: block;
  background: #eabf68;
  height: 17px;
  width: 60px;
  margin-top: 20px;
}
.art-1 {
  background: #f1e9df;
}
.art-2 {
  background: #e1ebe7;
}
.ms-template .ms-button-row button {
  font-size: 11px !important;
  padding: 7px 10px !important;
}
.ms-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
}
.ms-form-actions {
  margin-top: 24px;
  display: flex;
  justify-content: flex-end;
}
.ms-diagnostics {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}
.ms-diagnostics div {
  padding-bottom: 12px;
  border-bottom: 1px solid var(--ms-line);
}
.ms-diagnostics dt {
  font-size: 11px;
  color: var(--ms-muted);
}
.ms-diagnostics dd {
  margin: 2px 0 0;
  font-weight: 600;
  font-size: 13px;
}
.ms-footer {
  display: flex;
  justify-content: space-between;
  border-top: 1px solid var(--ms-line);
  padding: 22px 0;
  margin-top: 32px;
  font-size: 10px;
  color: #8b9ba7;
}
.ms-dialog {
  border: 1px solid #d7e1e9;
  border-radius: 14px;
  padding: 0;
  max-width: 740px;
  width: calc(100% - 32px);
  max-height: 90vh;
  box-shadow: 0 25px 100px #0b243e30;
}
.ms-dialog::backdrop {
  background: #102b4077;
  backdrop-filter: blur(3px);
}
.ms-dialog header {
  padding: 22px 26px;
  border-bottom: 1px solid var(--ms-line);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.ms-dialog header h2 {
  font-size: 21px;
  margin: 0;
}
.ms-dialog header button {
  font-size: 20px;
  border: 0;
  padding: 0 8px;
}
.ms-dialog-body {
  padding: 25px;
  max-height: 66vh;
  overflow: auto;
}
.ms-dialog-body > label {
  margin-bottom: 18px;
}
.ms-dialog footer {
  padding: 18px 25px;
  border-top: 1px solid var(--ms-line);
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  background: #f8fafb;
}
.ms-form-error {
  color: #a94035;
}
.ms-modal-preview {
  width: 100%;
  height: 600px;
  border: 0;
}
.ms-toast {
  position: fixed;
  bottom: 25px;
  right: 25px;
  z-index: 100000;
  max-width: 480px;
  padding: 16px 22px;
  color: white;
  background: #173e42;
  box-shadow: 0 10px 30px #132b4030;
  border-radius: 9px;
}
.ms-toast.ms-error {
  background: #8f3d35;
}
.ms-login {
  max-width: 440px;
  margin: 10vh auto;
  padding: 32px;
  background: white;
  border: 1px solid var(--ms-line);
  border-radius: 14px;
}
.ms-login h1 {
  font-size: 34px;
  line-height: 1.2;
}
.ms-login label {
  margin: 20px 0;
}
.ms-login button {
  width: 100%;
}
.ms-login a {
  color: #315a77;
}
.ms-loading {
  padding: 50px;
  text-align: center;
}
@media (min-width: 1600px) {
  .ms-main {
    padding: 0 60px;
  }
  .ms-preview-wrap iframe {
    height: 900px;
  }
  .ms-builder {
    grid-template-columns: minmax(0, 1fr) 380px;
  }
}
@media (max-width: 1150px) {
  .ms-main {
    padding: 0 24px;
  }
  .ms-setup-grid {
    grid-template-columns: 1fr;
  }
  .ms-hero-mark {
    display: none;
  }
  .ms-template-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .ms-builder {
    grid-template-columns: minmax(0, 1fr) 290px;
  }
  .ms-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .ms-shell {
    grid-template-columns: 195px minmax(0, 1fr) !important;
  }
  .ms-sidebar {
    padding: 30px 12px;
  }
}
@media (max-width: 800px) {
  .ms-shell {
    display: block !important;
  }
  .ms-sidebar {
    position: static;
    height: auto;
    padding: 15px 18px;
    display: block;
  }
  .ms-brand {
    font-size: 26px;
    padding: 0;
  }
  .ms-brand small,
  .ms-workspace-label,
  .ms-sidebar-foot {
    display: none;
  }
  .ms-sidebar nav {
    display: flex;
    overflow: auto;
    margin-top: 10px;
  }
  .ms-sidebar nav button {
    width: auto !important;
    white-space: nowrap;
    font-size: 12px !important;
    padding: 8px 12px !important;
  }
  .ms-sidebar nav button span {
    display: none;
  }
  .ms-main {
    padding: 0 16px;
  }
  .ms-topbar {
    padding: 20px 0;
    align-items: flex-start;
  }
  .ms-topbar h1 {
    font-size: 23px !important;
  }
  .ms-topbar .ms-eyebrow {
    font-size: 7px;
  }
  .ms-top-actions {
    justify-content: flex-end;
  }
  .ms-top-actions .ms-badge {
    display: none;
  }
  .ms-hero {
    padding: 26px;
  }
  .ms-hero h2 {
    font-size: 32px !important;
  }
  .ms-builder {
    display: flex;
    flex-direction: column;
  }
  .ms-preview-wrap {
    position: static;
    width: 100%;
    padding: 8px;
  }
  .ms-preview-wrap iframe {
    height: 500px;
  }
  .ms-builder-panel {
    width: 100%;
  }
  .ms-template-grid {
    grid-template-columns: 1fr;
  }
  .ms-form-grid {
    grid-template-columns: 1fr;
  }
  .ms-page-intro {
    align-items: flex-start;
  }
  .ms-card {
    padding: 18px;
  }
  .ms-sticky-actions {
    padding: 12px;
    flex-wrap: wrap;
  }
  .ms-sticky-actions span {
    font-size: 10px;
  }
  .ms-footer span {
    display: none;
  }
  .ms-filters {
    flex-wrap: wrap;
  }
  .ms-metric {
    padding: 14px;
  }
  .ms-metric strong {
    font-size: 27px;
  }
  .ms-metric small {
    font-size: 9px;
  }
  .ms-dialog .ms-form-grid {
    grid-template-columns: 1fr;
  }
  .ms-diagnostics {
    grid-template-columns: 1fr;
  }
  .ms-tabs {
    overflow: auto;
  }
  .ms-tabs button {
    font-size: 11px !important;
  }
}
.ms-brand img {
  width: 150px;
  max-height: 55px;
  object-fit: contain;
  object-position: left center;
}
.ms-brand small {
  margin-top: 3px;
}
.ms-tabs button[aria-pressed="true"] {
  background: #dce8f0 !important;
  border-color: #94aebf !important;
}
@media (max-width: 800px) {
  .ms-sidebar {
    position: relative;
  }
  .ms-sidebar-foot {
    display: flex;
    position: absolute;
    right: 18px;
    top: 17px;
    border: 0;
    padding: 0;
    margin: 0;
  }
  .ms-sidebar-foot .ms-avatar,
  .ms-sidebar-foot strong {
    display: none;
  }
  .ms-sidebar-foot a {
    color: #d5e2eb;
  }
}
/* The email canvas is an editable surface; final email rendering lives in Preview. */
.ms-builder.ms-builder-v31 {
  display: grid;
  grid-template-columns: 190px minmax(260px, 1fr) 280px;
  align-items: start;
  gap: 18px;
}
.ms-module-panel,
.ms-properties {
  background: #fff;
  border: 1px solid #dfe6ec;
  border-radius: 14px;
  overflow: hidden;
}
.ms-module-panel {
  padding: 16px;
  position: sticky;
  top: 18px;
}
.ms-module-panel h3,
.ms-panel-head h3 {
  margin: 0 0 8px;
  font-size: 14px;
}
.ms-module-panel p,
.ms-panel-head p {
  font-size: 11px;
  line-height: 1.6;
}
.ms-module-palette {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 16px 0 22px;
}
#mailsig-app .ms-module-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 88px;
  padding: 10px 4px;
  border: 1px solid #dfe6ec;
  border-radius: 9px;
  background: #f8fafc;
  color: #183248;
  cursor: grab;
  text-align: center;
}
#mailsig-app .ms-module-tile:hover {
  border-color: #b4882b;
  background: #fff8e7;
  transform: translateY(-1px);
}
.ms-module-tile > span {
  font-size: 23px;
  line-height: 1.2;
  margin-bottom: 7px;
}
.ms-module-tile strong {
  font-size: 11px;
}
.ms-module-tile small {
  display: none;
}
.ms-layout-palette {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}
#mailsig-app .ms-layout-palette button {
  margin: 0;
  padding: 9px 3px;
  font-size: 11px;
}
.ms-canvas-wrap {
  min-width: 0;
}
.ms-canvas-caption {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 0 2px 12px;
  font-size: 9px;
  letter-spacing: 0.7px;
  color: #526a7c;
}
#ms-native-canvas {
  padding: 20px 12px;
  background: #eef2f6;
  border: 1px solid #dfe6ec;
  border-radius: 12px;
  min-height: 450px;
  overflow: auto;
}
.ms-email-paper {
  margin: 0 auto;
  width: 100%;
  box-shadow: 0 4px 20px #18324812;
  color: #12263a;
}
#ms-native-canvas.ms-canvas-mobile .ms-email-paper {
  max-width: 375px !important;
}
#ms-native-canvas.ms-canvas-mobile .ms-canvas-columns {
  grid-template-columns: 1fr !important;
}
.ms-canvas-section {
  position: relative;
}
.ms-canvas-section-tools {
  display: flex;
  gap: 4px;
  align-items: center;
  justify-content: flex-end;
  margin: -12px -10px 5px;
  color: #5b7080;
  font-size: 9px;
}
.ms-canvas-columns {
  display: grid;
  gap: 0;
}
.ms-canvas-column {
  min-width: 0;
  position: relative;
}
.ms-canvas-block {
  position: relative;
  border: 1px solid transparent;
  border-radius: 3px;
  cursor: pointer;
  outline: none;
}
.ms-canvas-block:hover,
.ms-canvas-block:focus-within {
  border-color: #91a8ba;
}
.ms-canvas-block.selected {
  border-color: #b08427;
  box-shadow: 0 0 0 1px #b08427;
}
.ms-canvas-block-tools {
  display: flex;
  position: absolute;
  z-index: 2;
  right: 0;
  top: -21px;
  height: 22px;
  align-items: center;
  gap: 3px;
  padding: 1px 3px 1px 7px;
  background: #17364b;
  color: white;
  border-radius: 4px 4px 0 0;
  font-size: 9px;
  opacity: 0;
  pointer-events: none;
}
.ms-canvas-block:hover .ms-canvas-block-tools,
.ms-canvas-block:focus-within .ms-canvas-block-tools,
.ms-canvas-block.selected .ms-canvas-block-tools {
  opacity: 1;
  pointer-events: auto;
}
#mailsig-app .ms-canvas-block-tools button,
#mailsig-app .ms-canvas-section-tools button {
  min-width: 21px;
  height: 20px;
  padding: 0 4px;
  font-size: 12px;
  border: 0;
  border-radius: 3px;
  margin: 0;
}
#mailsig-app .ms-canvas-block-tools button {
  color: #fff;
  background: #ffffff20;
}
.ms-block-visual {
  pointer-events: none;
  overflow-wrap: anywhere;
}
#mailsig-app .ms-block-visual p {
  color: inherit;
  margin: 0 0 10px;
  line-height: 1.6;
  font-size: 14px;
}
#mailsig-app .ms-block-visual h2 {
  color: inherit;
  margin: 0 0 10px;
  line-height: 1.25;
  font-size: 26px;
}
.ms-block-visual img {
  display: inline-block;
}
.ms-block-visual hr {
  border: 0;
  border-top: 1px solid #dfe6ec;
}
.ms-canvas-cta {
  display: inline-block;
  padding: 13px 24px;
  font-weight: 700;
  font-size: 14px;
}
.ms-image-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 140px;
  padding: 15px;
  background: #f2f6f9;
  border: 1px dashed #a7bac8;
  border-radius: 6px;
  color: #4b677c;
  text-align: center;
}
.ms-image-placeholder > span {
  font-size: 34px;
}
.ms-image-placeholder strong {
  font-size: 14px;
  margin: 6px 0;
}
.ms-image-placeholder small {
  font-size: 10px;
  line-height: 1.6;
}
.ms-spacer-visual {
  min-height: 16px;
  background: repeating-linear-gradient(
    135deg,
    #f4f7fa,
    #f4f7fa 4px,
    #fff 4px,
    #fff 8px
  );
  color: #7690a3;
  font-size: 9px;
  text-align: center;
}
.ms-insert-zone {
  height: 10px;
  margin: 1px 0;
  border-radius: 3px;
  position: relative;
}
.ms-insert-zone span {
  display: none;
}
.ms-dragging .ms-insert-zone {
  height: 30px;
  border: 1px dashed #9db3c2;
  background: #edf6fb;
}
.ms-dragging .ms-insert-zone span {
  display: block;
  text-align: center;
  font-size: 9px;
  color: #4b677c;
  line-height: 28px;
}
.ms-drag-over {
  outline: 2px solid #bc8e2d !important;
  background: #fff3cf !important;
}
.ms-empty-column {
  text-align: center;
  font-size: 10px !important;
  padding: 20px 4px;
  border: 1px dashed #b7c6d1;
  border-radius: 5px;
}
.ms-empty-canvas {
  padding: 55px 20px;
  border: 2px dashed #b7c6d1;
  text-align: center;
}
.ms-email-footer {
  text-align: center;
  padding: 28px 20px;
  color: #607889;
  font-size: 11px;
  line-height: 1.7;
}
.ms-email-footer small {
  display: block;
  font-size: 9px;
  margin-top: 14px;
}
.ms-panel-head {
  padding: 18px 16px 0;
}
.ms-properties fieldset {
  min-width: 0;
  border: 0;
  padding: 0 16px 18px;
  margin: 0;
}
.ms-properties .ms-block-editor {
  border: 0;
  padding: 0;
  box-shadow: none;
}
.ms-properties details {
  border-top: 1px solid #e6ecf1;
  margin-top: 16px;
  padding-top: 12px;
}
.ms-properties summary {
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}
.ms-properties .ms-design-settings {
  display: block;
  padding-top: 14px;
}
.ms-properties .ms-field {
  margin-bottom: 12px;
}
.ms-media-picker {
  min-height: 250px;
}
.ms-upload-zone {
  display: flex;
  position: relative;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 24px;
  border: 1px dashed #90a9bb;
  border-radius: 10px;
  background: #f5f9fc;
  color: #1b3d55;
  font-weight: 600;
  cursor: pointer;
}
.ms-upload-zone input {
  max-width: 100%;
  font-size: 12px;
  font-weight: 400;
}
.ms-upload-zone small {
  font-weight: 400;
  font-size: 11px;
  text-align: center;
}
.ms-media-search {
  display: flex;
  gap: 8px;
  margin: 20px 0 14px;
}
.ms-media-search input {
  flex: 1;
  min-width: 0;
}
.ms-media-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  max-height: 380px;
  overflow-y: auto;
  padding: 2px;
  margin-bottom: 20px;
}
.ms-dialog .ms-media-item {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  text-align: left;
  border: 1px solid #dfe6ec;
  border-radius: 8px;
  background: #fff;
  padding: 7px;
  min-width: 0;
}
.ms-dialog .ms-media-item:hover {
  border-color: #b08427;
  background: #fffbf1;
}
.ms-media-item img {
  width: 100%;
  height: 110px;
  object-fit: contain;
  background: #f2f5f8;
  border-radius: 4px;
}
.ms-media-item strong {
  font-size: 11px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  margin-top: 9px;
}
.ms-media-item small {
  font-size: 10px;
  color: #607889;
  margin-top: 4px;
}
.ms-media-detail {
  display: block;
  max-width: 100%;
  max-height: 350px;
  margin: auto;
}
.ms-media-status {
  color: #8a4515 !important;
  font-size: 12px;
}
.ms-dashboard-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  margin-top: 28px;
}
.ms-dashboard-heading h2 {
  margin: 0;
  font-size: 19px;
}
.ms-dashboard-heading p {
  margin: 6px 0 15px;
  font-size: 11px;
}
.ms-dashboard-status {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: -8px 0 28px;
}
@media (max-width: 1250px) {
  .ms-builder.ms-builder-v31 {
    grid-template-columns: 150px minmax(200px, 1fr) 240px;
    gap: 12px;
  }
  .ms-module-panel {
    padding: 12px;
  }
}
@media (max-width: 1100px) {
  .ms-builder.ms-builder-v31 {
    grid-template-columns: minmax(250px, 1fr) 250px;
  }
  .ms-module-panel {
    grid-column: 1/-1;
    position: static;
  }
  .ms-module-palette {
    grid-template-columns: repeat(10, minmax(0, 1fr));
    margin: 12px 0;
  }
  .ms-layout-palette {
    display: flex;
    flex-wrap: wrap;
  }
  .ms-module-panel p {
    margin: 5px 0;
  }
}
@media (max-width: 650px) {
  .ms-builder.ms-builder-v31 {
    grid-template-columns: minmax(0, 1fr);
  }
  .ms-module-palette {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
  .ms-module-panel {
    grid-column: auto;
  }
  #ms-native-canvas {
    padding: 12px 5px;
  }
  .ms-canvas-caption {
    font-size: 8px;
  }
  .ms-media-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .ms-dashboard-heading {
    align-items: flex-start;
  }
}

.ms-email-footer {
  background: #12263a;
  color: #fff;
  text-align: left;
}
#mailsig-app .ms-email-footer p {
  color: inherit;
  font-size: 11px;
}

#mailsig-app .ms-empty-column {
  width: 100%;
  white-space: normal;
  background: #f7fafc;
  color: #526d80;
  font-weight: 400;
  line-height: 1.7;
  cursor: pointer;
}
#mailsig-app .ms-empty-column.is-target {
  border-color: #b08427;
  background: #fff5d9;
}
