.mjp-item-edit-modules[hidden],
.mjp-edit-target-preview[hidden],
.mjp-edit-reference-preview[hidden],
.mjp-edit-output[hidden] { display: none !important; }

.mjp-item-edit-modules {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 24px;
  padding-top: 22px;
  border-top: 1px solid var(--mjp-border, #e4e8f0);
}

.mjp-edit-intro {
  grid-column: 1 / -1;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
}

.mjp-edit-intro > div > span,
.mjp-edit-kicker {
  color: #775d83;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
}

.mjp-edit-intro h2 { margin: 3px 0 0; font-size: 23px; }
.mjp-edit-intro p { max-width: 560px; margin: 0; color: #687b98; font-size: 14px; }

.mjp-edit-card {
  min-width: 0;
  padding: 20px;
  border: 1px solid #e1e7f0;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 4px 14px rgba(35, 50, 79, .035);
}

.mjp-edit-card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.mjp-edit-card-head h3 { margin: 3px 0 0; font-size: 19px; }
.mjp-edit-model { padding: 6px 9px; border-radius: 999px; background: #f3f1f6; color: #6f5b7b; font-size: 12px; white-space: nowrap; }
.mjp-edit-help { min-height: 44px; margin: 10px 0 16px; color: #71819b; font-size: 13px; line-height: 1.65; }
.mjp-edit-field { display: grid; gap: 7px; margin: 12px 0; color: #35435c; font-size: 13px; font-weight: 650; }
.mjp-edit-field small { color: #8794a8; font-weight: 400; }
.mjp-edit-field select,
.mjp-edit-field input[type="text"],
.mjp-edit-field input[type="file"] {
  width: 100%;
  min-height: 42px;
  padding: 9px 11px;
  border: 1px solid #dce3ee;
  border-radius: 9px;
  background: #fff;
  color: #26344d;
  font: inherit;
  font-weight: 400;
}
.mjp-edit-field input[type="file"] { padding: 8px; }
.mjp-edit-target-preview,
.mjp-edit-reference-preview {
  display: flex;
  align-items: center;
  gap: 11px;
  margin: 8px 0 12px;
  color: #667996;
  font-size: 12px;
}
.mjp-edit-preview-trigger {
  display: block;
  width: 72px;
  height: 92px;
  overflow: hidden;
  padding: 0;
  border: 1px solid #e0e5ed;
  border-radius: 8px;
  background: #f5f6f8;
  cursor: zoom-in;
}
.mjp-edit-preview-trigger img,
.mjp-edit-reference-preview img { width: 100%; height: 100%; object-fit: cover; }
.mjp-edit-reference-preview img { width: 58px; height: 58px; border-radius: 7px; }
.mjp-edit-cost { min-height: 20px; margin: 12px 0; color: #6f5c7c; font-size: 12px; line-height: 1.6; }
.mjp-edit-submit { width: 100%; }
.mjp-edit-submit:disabled { cursor: not-allowed; opacity: .52; }
.mjp-edit-status { min-height: 20px; margin: 10px 0 0; color: #71819b; font-size: 12px; line-height: 1.55; }
.mjp-edit-status.is-error { color: #b34444; }
.mjp-edit-output { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 8px 12px; margin-top: 16px; padding-top: 14px; border-top: 1px solid #edf0f5; }
.mjp-edit-output > b { grid-column: 1 / -1; color: #3c536f; font-size: 13px; }
.mjp-edit-result-preview { width: min(100%, 220px); height: auto; aspect-ratio: 3 / 4; }
.mjp-edit-output a { align-self: center; color: #68517b; font-weight: 650; text-decoration: none; }

@media (max-width: 760px) {
  .mjp-item-edit-modules { grid-template-columns: 1fr; gap: 12px; }
  .mjp-edit-intro { display: block; }
  .mjp-edit-intro p { margin-top: 8px; }
  .mjp-edit-card { padding: 16px; }
}
