.mpt-shell {
  margin: 24px auto;
  padding: 36px 38px 36px;
  border: 1px solid transparent;
  border-radius: 22px;
  background:
    linear-gradient(#ffffff, #ffffff) padding-box,
    linear-gradient(180deg, #d32f2f 0%, #ee6f00 54%, #ff8800 100%) border-box;
  color: #420d0d;
  font-family: "Roboto", Arial, sans-serif;
  box-sizing: border-box;
}

.mpt-shell * { box-sizing: border-box; }

.mpt-top-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  margin-bottom: 20px;
}

.mpt-field span {
  display: block;
  margin: 0 0 8px;
  text-align: left;
  font-family: "Roboto", Arial, sans-serif;
  font-size: 14px;
  line-height: 140%;
  letter-spacing: 0.01em;
  font-weight: 500;
  color: #420d0d;
}

.mpt-section-title {
  display: flex;
  align-items: center;
  gap: 3px;
  margin: 40px 0 20px;
  text-align: center;
  font-family: "Roboto", Arial, sans-serif;
  font-size: 14px;
  line-height: 140%;
  letter-spacing: 0.01em;
  font-weight: 500;
  color: #420d0d;
  white-space: nowrap;
}

.mpt-section-title::before,
.mpt-section-title::after {
  content: "";
  flex: 1;
  height: 1px;
  background: #e7e7e7;
}

.mpt-section-title::before { margin-right: 14px; }
.mpt-section-title::after { margin-left: 14px; }

.mpt-field b,
.mpt-section-title b {
  color: #d32f2f;
  font-weight: 500;
}

.mpt-field input,
.mpt-caption {
  width: 100%;
  height: 56px;
  border: 1px solid #e7e7e7;
  border-radius: 16px;
  background: #ffffff;
  padding: 0 16px;
  color: #0a0a0a;
  font-family: "Roboto", Arial, sans-serif;
  font-size: 16px;
  line-height: 24px;
  letter-spacing: 0.01em;
  font-weight: 400;
}

.mpt-date-control {
  position: relative;
  display: block;
  width: 100%;
  height: 56px;
  margin: 0;
}

#mpt-start-date-display {
  padding-right: 44px;
  background-image: url("assets/down_arrow.svg");
  background-position: right 16px center;
  background-repeat: no-repeat;
  background-size: 16px 16px;
  cursor: pointer;
}

.mpt-native-date {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 56px;
  opacity: 0;
  cursor: pointer;
  z-index: 2;
}

.mpt-native-date::-webkit-calendar-picker-indicator {
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

.mpt-upload {
  height: 240px;
  border: 0;
  border-radius: 16px;
  background: #fbfbfb;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  margin-bottom: 24px;
  position: relative;
}

.mpt-upload::before {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px dashed #d1d1d1;
  border-radius: 16px;
  pointer-events: none;
}

.mpt-upload input { display: none; }

.mpt-upload-icon {
  width: 60px;
  height: 60px;
  margin-bottom: 12px;
  display: grid;
  place-items: center;
}

.mpt-upload-icon img {
  width: 60px;
  height: 60px;
  display: block;
}

.mpt-upload strong {
  display: block;
  margin: 0 0 12px;
  font-family: "Roboto", Arial, sans-serif;
  font-size: 20px;
  line-height: 28px;
  letter-spacing: 0;
  font-weight: 600;
  color: #420d0d;
}

.mpt-upload small {
  text-align: center;
  font-family: "Roboto", Arial, sans-serif;
  font-size: 14px;
  line-height: 20px;
  letter-spacing: 0;
  font-weight: 300;
  color: #6d6d6d;
}

.mpt-upload small b,
.mpt-upload small strong {
  font-weight: 500;
  color: #0a0a0a;
}

.mpt-upload.has-file { background: #fff7f5; }
.mpt-upload.has-file::before { border-color: #e65a50; }

.mpt-carousel-wrap {
  position: relative;
  display: block;
  width: 100%;
  margin: 0 0 34px;
  padding: 0;
}

.mpt-templates {
  display: flex;
  gap: 12px;
  width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  padding: 0;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.mpt-templates::-webkit-scrollbar,
.mpt-caption-grid::-webkit-scrollbar { display: none; }

.mpt-template {
  flex: 0 0 257px;
  width: 257px;
  height: 300px;
  border: 2px solid transparent;
  border-radius: 16px;
  background: #fff5ed center / cover no-repeat;
  cursor: pointer;
  scroll-snap-align: start;
  box-shadow: none;
  overflow: hidden;
}

.mpt-template.active,
.mpt-template:hover {
  transform: none;
  border-color: transparent;
  box-shadow: none;
}

.mpt-arrow,
.mpt-caption-arrow {
  position: absolute;
  top: 50%;
  z-index: 4;
  width: 48px;
  height: 48px;
  border: 1px solid #ef4d45;
  border-radius: 50%;
  background: #ffffff;
  cursor: pointer;
  display: grid;
  place-items: center;
  padding: 0;
  transform: translateY(-50%);
}

.mpt-arrow[data-scroll="left"],
.mpt-caption-arrow[data-caption-scroll="left"] { left: -24px; }

.mpt-arrow[data-scroll="right"],
.mpt-caption-arrow[data-caption-scroll="right"] { right: -24px; }

.mpt-arrow img,
.mpt-caption-arrow img {
  width: 24px;
  height: 24px;
  display: block;
}

.mpt-social-preview {
  background: #f1f0ef;
  border-radius: 20px;
  padding: 26px;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 10px 0 24px;
}

.mpt-post-card {
  width: 318px;
  background: #ffffff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: none;
}

.mpt-post-head {
  height: 50px;
  display: flex;
  align-items: flex-start;
  padding: 8px 12px 10px;
  background: #ffffff;
}

.mpt-avatar {
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
  display: block;
}

.mpt-post-user {
  margin-left: 8px;
  flex: 1;
  padding-top: 3px;
}

.mpt-post-user strong {
  display: block;
  font-family: "Inter", Arial, sans-serif;
  font-size: 12px;
  font-weight: 500;
  margin-bottom: -3px;
  line-height: 1.1;
  color: #000000;
}

.mpt-post-user small {
  display: flex;
  align-items: center;
  gap: 4px;
  font-family: "Inter", Arial, sans-serif;
  font-size: 9.6px;
  font-weight: 400;
  color: #65676a;
}

.mpt-post-user small img {
  width: 10px;
  height: 10px;
  display: block;
}

.mpt-post-menu {
  font-family: Arial, sans-serif;
  font-size: 18px;
  line-height: 1;
  color: #000000;
  margin-left: 8px;
}

#mpt-canvas {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1200 / 1400;
  background: #fff2ec;
  cursor: grab;
  touch-action: none;
}

.mpt-post-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 12px 8px;
  background: #ffffff;
}

.mpt-post-action-left {
  display: flex;
  align-items: center;
  gap: 15px;
}

.mpt-post-action-left img,
.mpt-bookmark {
  width: 20px;
  height: 20px;
  display: block;
}

.mpt-post-likes {
  margin: 0 !important;
  padding: 0 12px !important;
  font-family: "Roboto", Arial, sans-serif;
  font-size: 11.7px;
  line-height: 100%;
  letter-spacing: 0;
  font-weight: 700;
  color: #000000;
}

.mpt-post-caption {
  margin: 5px 0 0 !important;
  padding: 0 12px !important;
  font-family: "Roboto", Arial, sans-serif;
  font-size: 11.7px;
  line-height: 130%;
  letter-spacing: 0;
  color: #000000;
}

.mpt-post-caption strong {
  font-weight: 700;
  color: #000000;
}

.mpt-post-caption span { font-weight: 400; }

.mpt-more {
  font-size: 11.7px;
  line-height: 130%;
  color: #65676a;
  font-weight: 400;
  margin-left: 4px;
}

.mpt-post-date {
  margin: 5px 0 0 !important;
  padding: 0 12px 12px !important;
  font-family: "Roboto", Arial, sans-serif;
  font-size: 9px;
  line-height: 100%;
  letter-spacing: 0;
}

.mpt-post-date span:first-child {
  color: #949494;
  font-weight: 400;
}

.mpt-post-date span:last-child {
  color: #000000;
  font-weight: 400;
}

.mpt-editor-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 22px;
  width: min(620px, 100%);
  margin: 0 auto 28px;
  padding: 18px 20px;
  border: 1px solid #f1e2df;
  border-radius: 22px;
  background: #fffdfc;
}

.mpt-zoom {
  flex: 1 1 auto;
  min-width: 260px;
  text-align: center;
}

.mpt-zoom span {
  display: block;
  margin-bottom: 10px;
  font-family: "Roboto", Arial, sans-serif;
  font-size: 13px;
  line-height: 18px;
  letter-spacing: 0.01em;
  font-weight: 700;
  color: #420d0d;
}

.mpt-zoom input {
  --mpt-zoom-progress: 20%;
  width: 100%;
  height: 18px;
  margin: 0;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  background: transparent;
}

.mpt-zoom input::-webkit-slider-runnable-track {
  height: 8px;
  border: 1px solid #d1d1d1;
  border-radius: 999px;
  background: linear-gradient(to right, #b92820 0%, #b92820 var(--mpt-zoom-progress), #f5f5f5 var(--mpt-zoom-progress), #f5f5f5 100%);
}

.mpt-zoom input::-webkit-slider-thumb {
  width: 20px;
  height: 20px;
  margin-top: -7px;
  border: 0;
  border-radius: 50%;
  background: #b92820;
  box-shadow: 0 2px 7px rgba(66, 13, 13, 0.22);
  appearance: none;
  -webkit-appearance: none;
}

.mpt-zoom input::-moz-range-track {
  height: 8px;
  border: 1px solid #d1d1d1;
  border-radius: 999px;
  background: #f5f5f5;
}

.mpt-zoom input::-moz-range-progress {
  height: 8px;
  border-radius: 999px;
  background: #b92820;
}

.mpt-zoom input::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border: 0;
  border-radius: 50%;
  background: #b92820;
  box-shadow: 0 2px 7px rgba(66, 13, 13, 0.22);
}

.mpt-zoom small {
  display: block;
  margin-top: 10px;
  font-family: "Roboto", Arial, sans-serif;
  font-size: 14px;
  line-height: 20px;
  letter-spacing: 0;
  font-weight: 400;
  color: #8b6c66;
}

.mpt-secondary {
  height: 56px;
  min-width: 142px;
  border: 1px solid #d1d1d1;
  background: #ffffff;
  color: #0a0a0a;
  border-radius: 100px;
  padding: 0 22px;
  font-family: "Roboto", Arial, sans-serif;
  font-size: 16px;
  line-height: 24px;
  letter-spacing: 0;
  font-weight: 500;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.mpt-secondary img {
  width: 24px;
  height: 24px;
  display: block;
}

.mpt-caption-carousel-wrap {
  position: relative;
  width: 100%;
}

.mpt-caption-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.mpt-caption-arrow { display: none; }

.mpt-caption-card {
  min-height: 252px;
  text-align: left;
  border: 1px solid transparent;
  border-radius: 16px;
  padding: 18px 52px 18px 18px;
  color: #0a0a0a;
  font-family: "Castoro", Georgia, serif;
  font-size: 16px;
  line-height: 24px;
  letter-spacing: 0;
  font-weight: 400;
  white-space: pre-line;
  position: relative;
  cursor: pointer;
}

.mpt-caption-card:nth-child(1) {
  background: #f0f9f8;
  border-color: #85ccc9;
}

.mpt-caption-card:nth-child(2) {
  background: #fff3f2;
  border-color: #ffa89f;
}

.mpt-caption-card:nth-child(3) {
  background: #fff8ec;
  border-color: #ffba66;
}

.mpt-caption-card:nth-child(4) {
  background: #fafbe8;
  border-color: #b4cf2a;
}

.mpt-caption-card::after {
  content: "";
  position: absolute;
  right: 14px;
  bottom: 14px;
  width: 20px;
  height: 20px;
  border: 1px solid currentColor;
  border-radius: 50%;
  background: transparent;
}

.mpt-caption-card:nth-child(1)::after { color: #85ccc9; }
.mpt-caption-card:nth-child(2)::after { color: #ffa89f; }
.mpt-caption-card:nth-child(3)::after { color: #ffba66; }
.mpt-caption-card:nth-child(4)::after { color: #b4cf2a; }

.mpt-caption-card.active::after {
  border: 0;
  background: url("assets/black_check_mark.svg") center / 20px 20px no-repeat;
}

.mpt-caption-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin: 20px 0 0;
}

.mpt-pill {
  width: 200px;
  height: 56px;
  border: 1px solid #d1d1d1;
  background: #ffffff;
  color: #000000;
  border-radius: 999px;
  font-family: "Roboto", Arial, sans-serif;
  font-size: 16px;
  line-height: 24px;
  letter-spacing: 0;
  font-weight: 500;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

#mpt-write-own { padding: 0 28px; }

.mpt-pill img {
  width: 24px;
  height: 24px;
  display: block;
}

.mpt-write-box {
  border: 1px solid #e7e7e7;
  border-radius: 16px;
  overflow: hidden;
  background: #ffffff;
}

.mpt-caption {
  height: 184px;
  min-height: 184px;
  display: block;
  border: 0;
  border-radius: 0;
  resize: none;
  padding: 22px 20px;
  font-family: "Castoro", Georgia, serif;
  font-size: 16px;
  line-height: 24px;
  color: #0a0a0a;
}

.mpt-caption::placeholder {
  color: #6d6d6d;
  opacity: 1;
}

.mpt-write-footer {
  min-height: 62px;
  border-top: 1px solid #e7e7e7;
  background: #fbfbfb;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
}

#mpt-back-suggestions {
  border: 0;
  background: transparent;
  padding: 0;
  color: #0a0a0a;
  font-family: "Roboto", Arial, sans-serif;
  font-size: 16px;
  line-height: 24px;
  letter-spacing: 0;
  font-weight: 500;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

#mpt-back-suggestions img {
  width: 24px;
  height: 24px;
  display: block;
}

#mpt-char-count {
  color: #6d6d6d;
  font-family: "Roboto", Arial, sans-serif;
  font-size: 16px;
  line-height: 24px;
  letter-spacing: 0;
  font-weight: 400;
}

.mpt-use-caption {
  height: 56px;
  min-width: 200px;
  margin: 20px auto 0;
  display: block;
  border: 1px solid #b12424;
  border-radius: 100px;
  background: #ffffff;
  color: #b12424;
  font-family: "Roboto", Arial, sans-serif;
  font-size: 16px;
  line-height: 24px;
  letter-spacing: 0;
  font-weight: 500;
  cursor: pointer;
  padding: 0 24px;
}

.mpt-caption-status {
  margin: 18px 0 0;
  padding: 0 0 2px;
  text-align: center;
  font-family: "Roboto", Arial, sans-serif;
  font-size: 14px;
  line-height: 20px;
  color: #420d0d;
}

.mpt-write-caption-status {
  margin-top: 12px;
}

.mpt-caption-status + .mpt-caption-actions {
  margin-top: 20px;
}

.mpt-save-share {
  text-align: center;
  border-top: 0;
  margin-top: 0;
}

.mpt-save-share h3 {
  font-family: "Castoro", Georgia, serif;
  font-size: 28px;
  line-height: 36px;
  letter-spacing: 0;
  font-weight: 400;
  color: #420d0d;
  margin: 0 0 8px;
}

.mpt-save-share p {
  font-family: "Roboto", Arial, sans-serif;
  font-size: 16px;
  line-height: 26px;
  letter-spacing: 0;
  font-weight: 400;
  color: #4f4f4f;
  margin: 0 0 24px;
}

@media (min-width: 768px) {
  .mpt-save-share p {
    max-width: 700px;
    margin: 0 auto 24px;
    text-align: center;
  }
}

.mpt-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
}

.mpt-actions button {
  width: 200px;
  height: 56px;
  border-radius: 100px;
  padding: 0 24px;
  font-family: "Roboto", Arial, sans-serif;
  font-size: 16px;
  line-height: 24px;
  letter-spacing: 0;
  font-weight: 500;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.mpt-actions button img {
  width: 24px;
  height: 24px;
  display: block;
}

#mpt-download {
  border: 1px solid #b12424;
  background: #b12424;
  color: #ffffff;
}

#mpt-share {
  border: 1px solid #b12424;
  background: #ffffff;
  color: #b12424;
}

.mpt-template[data-template="template-1"] { background-image: url("templates/template-1.png"); }
.mpt-template[data-template="template-2"] { background-image: url("templates/template-2.png"); }
.mpt-template[data-template="template-3"] { background-image: url("templates/template-3.png"); }
.mpt-template[data-template="template-4"] { background-image: url("templates/template-4.png"); }
.mpt-template[data-template="template-5"] { background-image: url("templates/template-5.png"); }
.mpt-template[data-template="template-6"] { background-image: url("templates/template-6.png"); }
.mpt-template[data-template="template-7"] { background-image: url("templates/template-7.png"); }
.mpt-template[data-template="template-8"] { background-image: url("templates/template-8.png"); }
.mpt-template[data-template="template-9"] { background-image: url("templates/template-9.png"); }
.mpt-template[data-template="template-10"] { background-image: url("templates/template-10.png"); }
.mpt-template[data-template="template-11"] { background-image: url("templates/template-11.png"); }
.mpt-template[data-template="template-12"] { background-image: url("templates/template-12.png"); }
.mpt-template[data-template="template-13"] { background-image: url("templates/template-13.png"); }
.mpt-template[data-template="template-14"] { background-image: url("templates/template-14.png"); }
.mpt-template[data-template="template-15"] { background-image: url("templates/template-15.png"); }
.mpt-template[data-template="template-16"] { background-image: url("templates/template-16.png"); }
.mpt-template[data-template="template-17"] { background-image: url("templates/template-17.png"); }
.mpt-template[data-template="template-18"] { background-image: url("templates/template-18.png"); }

@media (max-width: 1081px) and (min-width: 768px) {
  .mpt-shell {
    padding: 28px 28px 32px;
    margin: 18px auto;
  }

  .mpt-top-grid { gap: 16px; }
  .mpt-upload { height: 212px; }

  .mpt-carousel-wrap {
    width: 100%;
    margin-bottom: 32px;
    padding: 0;
  }

  .mpt-templates {
    width: 100%;
    gap: 14px;
    padding: 0;
    scroll-padding-left: 0;
    scroll-padding-right: 0;
  }

  .mpt-template {
    flex: 0 0 254px;
    width: 254px;
    height: auto;
    aspect-ratio: 257 / 300;
  }
  
  .mpt-arrow {
    width: 48px;
    height: 48px;
  }

  .mpt-arrow img {
    width: 24px;
    height: 24px;
  }

  .mpt-arrow[data-scroll="left"] { left: 0; }
  .mpt-arrow[data-scroll="right"] { right: 0; }

  .mpt-social-preview { padding: 26px; }

  .mpt-editor-row {
    width: min(680px, 100%);
    gap: 18px;
    padding: 18px;
  }

  .mpt-zoom { min-width: 0; }

  .mpt-caption-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .mpt-caption-card {
    min-height: auto;
    padding: 22px 56px 22px 22px;
  }

  .mpt-caption-actions {
    width: 100%;
    justify-content: center;
  }

  .mpt-pill {
    width: 200px;
    min-width: 0;
  }

  .mpt-actions {
    width: 100%;
    gap: 18px;
  }

  .mpt-actions button {
    flex: 1 1 0;
    width: auto;
    min-width: 0;
  }
}

@media (max-width: 767px) {
  .mpt-shell {
    margin: 12px auto;
    padding: 16px;
    border-radius: 16px;
  }

  .mpt-top-grid {
    grid-template-columns: 1fr;
    gap: 12px;
    margin-bottom: 14px;
  }

  .mpt-field span {
    font-family: "Roboto", Arial, sans-serif;
    font-size: 14px;
    line-height: 20px;
    letter-spacing: 0.01em;
    font-weight: 500;
  }

  .mpt-field input,
  .mpt-date-control,
  .mpt-native-date { height: 48px; }

  #mpt-start-date-display {
    font-family: "Roboto", Arial, sans-serif;
    font-size: 14px;
    line-height: 24px;
    letter-spacing: 0.01em;
    font-weight: 400;
  }

  .mpt-upload {
    height: 200px;
    margin-bottom: 18px;
  }

  .mpt-upload-icon,
  .mpt-upload-icon img {
    width: 44px;
    height: 44px;
  }

  .mpt-upload-icon { margin-bottom: 8px; }

  .mpt-upload strong {
    font-family: "Roboto", Arial, sans-serif;
    font-size: 18px;
    line-height: 24px;
    letter-spacing: 0.01em;
    font-weight: 600;
    margin-bottom: 8px;
  }

  .mpt-upload small {
    font-family: "Roboto", Arial, sans-serif;
    font-size: 13px;
    line-height: 18px;
    letter-spacing: 0;
    font-weight: 400;
  }

  .mpt-upload small b,
  .mpt-upload small strong { font-weight: 500; }

  .mpt-section-title {
    justify-content: flex-start;
    gap: 3px;
    margin: 18px 0 14px;
    text-align: left;
    font-family: "Roboto", Arial, sans-serif;
    font-size: 14px;
    line-height: 140%;
    letter-spacing: 0.01em;
    font-weight: 500;
    color: #420d0d;
    white-space: nowrap;
  }

  .mpt-section-title::before { display: none; }

  .mpt-section-title::after {
    content: "";
    display: block;
    flex: 1;
    height: 1px;
    background: #e7e7e7;
    margin-left: 14px;
  }

  .mpt-section-title b {
    color: #d32f2f;
    font-weight: 500;
  }

  .mpt-carousel-wrap {
    width: 100%;
    margin-bottom: 24px;
    padding: 0;
  }

  .mpt-templates {
    gap: 12px;
    width: 100%;
    padding: 0 44px;
    scroll-padding-left: 44px;
    scroll-padding-right: 44px;
    scroll-snap-type: x mandatory;
  }

  .mpt-template {
    flex: 0 0 min(240px, calc(100vw - 120px));
    width: min(240px, calc(100vw - 120px));
    height: auto;
    aspect-ratio: 240 / 282;
    border-radius: 16px;
    scroll-snap-align: center;
  }

  .mpt-arrow,
  .mpt-caption-arrow {
    width: 38px;
    height: 38px;
  }

  .mpt-arrow img,
  .mpt-caption-arrow img {
    width: 20px;
    height: 20px;
  }

  .mpt-arrow[data-scroll="left"],
  .mpt-caption-arrow[data-caption-scroll="left"] { left: 0; }

  .mpt-arrow[data-scroll="right"],
  .mpt-caption-arrow[data-caption-scroll="right"] { right: 0; }

  .mpt-social-preview {
    border-radius: 16px;
    padding: 20px;
    margin: 8px 0 20px;
  }

  .mpt-post-card {
    width: min(318px, 100%);
    max-width: 100%;
  }

  .mpt-editor-row {
    width: 100%;
    gap: 14px;
    padding: 16px;
    flex-direction: column;
    align-items: stretch;
    border-radius: 18px;
    margin-bottom: 24px;
  }

  .mpt-zoom {
    width: 100%;
    min-width: 0;
  }

  .mpt-secondary { width: 100%; }

  .mpt-caption-carousel-wrap {
    position: relative;
    width: 100%;
    padding: 0;
  }

  .mpt-caption-grid {
    display: flex;
    gap: 12px;
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scroll-padding-left: 44px;
    scroll-padding-right: 44px;
    padding: 0 44px;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }

  .mpt-caption-card {
    flex: 0 0 min(240px, calc(100vw - 120px));
    width: min(240px, calc(100vw - 120px));
    min-height: 424px;
    border-radius: 16px;
    scroll-snap-align: center;
    font-size: 14px;
    line-height: 24px;
  }

  .mpt-caption-arrow { display: grid; }

  .mpt-caption-actions {
    justify-content: center;
    margin-top: 16px;
  }

  .mpt-pill,
  .mpt-use-caption,
  .mpt-actions button,
  .mpt-secondary { width: 100%; }

  .mpt-pill { height: 56px; }

  .mpt-write-panel { padding-bottom: 28px; }

  .mpt-write-footer {
    gap: 12px;
    align-items: flex-start;
    flex-direction: column;
    padding: 16px 20px;
  }

  .mpt-save-share {
    text-align: left;
  }

  .mpt-save-share h3 {
    text-align: left;
    font-family: "Castoro", Georgia, serif;
    font-size: 28px;
    line-height: 36px;
    letter-spacing: 0;
    font-weight: 400;
    color: #420d0d;
    margin: 0 0 8px;
  }

  .mpt-save-share p {
    text-align: left;
    font-family: "Roboto", Arial, sans-serif;
    font-size: 16px;
    line-height: 26px;
    letter-spacing: 0;
    font-weight: 400;
    color: #4f4f4f;
    margin: 0 0 24px;
  }

  .mpt-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .mpt-actions button { height: 56px; }
}

/* Plugin protection inside Services .main-content */
.main-content .mpt-shell {
  font-family: "Roboto", Arial, sans-serif !important;
  color: #420d0d !important;
  box-sizing: border-box !important;
}

.main-content .mpt-shell *,
.main-content .mpt-shell *::before,
.main-content .mpt-shell *::after {
  box-sizing: border-box !important;
}

.main-content .mpt-shell img,
.main-content .mpt-shell svg {
  width: auto !important;
  max-width: none !important;
  height: auto !important;
  margin: 0 !important;
  display: block !important;
}

.main-content .mpt-shell button {
  appearance: none !important;
  -webkit-appearance: none !important;
  text-transform: none !important;
  box-shadow: none !important;
}

.main-content .mpt-shell p,
.main-content .mpt-shell h3,
.main-content .mpt-shell label,
.main-content .mpt-shell span,
.main-content .mpt-shell small,
.main-content .mpt-shell strong {
  text-transform: none !important;
  letter-spacing: inherit !important;
}

/* Desktop/default plugin image sizes */
.main-content .mpt-shell .mpt-upload-icon img {
  width: 60px !important;
  height: 60px !important;
}

.main-content .mpt-shell .mpt-arrow img,
.main-content .mpt-shell .mpt-caption-arrow img,
.main-content .mpt-shell .mpt-secondary img,
.main-content .mpt-shell .mpt-pill img,
.main-content .mpt-shell .mpt-actions button img {
  width: 24px !important;
  height: 24px !important;
}

.main-content .mpt-shell .mpt-post-action-left img,
.main-content .mpt-shell .mpt-bookmark {
  width: 20px !important;
  height: 20px !important;
}

.main-content .mpt-shell .mpt-avatar {
  width: 32px !important;
  height: 32px !important;
}

.main-content .mpt-shell .mpt-post-user small img {
  width: 10px !important;
  height: 10px !important;
}

/* Tablet protection */
@media (max-width: 1081px) and (min-width: 768px) {
  .main-content .mpt-shell .mpt-arrow img {
    width: 24px !important;
    height: 24px !important;
  }
}

/* Mobile protection */
@media (max-width: 767px) {
  .main-content .mpt-shell .mpt-upload-icon img {
    width: 44px !important;
    height: 44px !important;
  }

  .main-content .mpt-shell .mpt-arrow img,
  .main-content .mpt-shell .mpt-caption-arrow img {
    width: 20px !important;
    height: 20px !important;
  }

  .main-content .mpt-shell .mpt-secondary img,
  .main-content .mpt-shell .mpt-pill img,
  .main-content .mpt-shell .mpt-actions button img {
    width: 24px !important;
    height: 24px !important;
  }
}

/* Keep only the intended 40px spacing above the final heading */
.container.mental-health .main-content .mpt-shell .mpt-save-share h3 {
  margin-top: 40px !important;
}

.main-content .mpt-shell br {
  display: inline !important;
}

.main-content .mpt-shell p:empty {
  display: none !important;
}

.main-content .mpt-shell .mpt-post-likes {
    font-size: 11.7px !important;
    line-height: 100% !important;
}

.main-content .mpt-shell .mpt-post-caption {
    font-size: 11.7px !important;
    line-height: 130% !important;
}

.main-content .mpt-shell .mpt-post-date {
    font-size: 9px !important;
    line-height: 100% !important;
}

.main-content .mpt-shell .mpt-post-user strong {
    font-size: 12px !important;
}

.main-content .mpt-shell .mpt-post-user small {
    font-size: 9.6px !important;
}