.prompt-type-chooser,
.prompt-type-chooser *,
.landing-prompt-builder,
.landing-prompt-builder * {
  box-sizing: border-box;
}

.prompt-type-chooser {
  min-height: 680px;
  direction: rtl;
  padding: 64px 48px;
  color: #172033;
  background: #ffffff;
}

.prompt-type-chooser__intro {
  max-width: 700px;
  margin: 0 auto 35px;
  text-align: center;
}

.prompt-type-chooser__intro > span {
  display: inline-flex;
  margin-bottom: 12px;
  padding: 6px 12px;
  color: #6d28d9;
  font-size: 11px;
  font-weight: 800;
  border-radius: 999px;
  background: #f3e8ff;
}

.prompt-type-chooser__intro h1 {
  margin: 0 0 10px;
  color: #172033;
  font-size: 30px;
  font-weight: 900;
}

.prompt-type-chooser__intro p {
  margin: 0;
  color: #64748b;
  font-size: 12px;
  line-height: 2;
}

.prompt-type-chooser__cards {
  max-width: 900px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin: auto;
}

.prompt-type-card {
  position: relative;
  min-height: 300px;
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  padding: 28px;
  overflow: hidden;
  color: #172033;
  text-align: right;
  border: 1px solid #e2e8f0;
  border-radius: 22px;
  background: #ffffff;
  cursor: pointer;
  transition:
    transform 0.25s ease,
    border-color 0.25s ease,
    box-shadow 0.25s ease;
}

.prompt-type-card::after {
  content: "";
  position: absolute;
  width: 180px;
  height: 180px;
  left: -90px;
  bottom: -100px;
  border-radius: 50%;
  background: #eff6ff;
}

.prompt-type-card--landing::after {
  background: #f3e8ff;
}

.prompt-type-card:hover,
.prompt-type-card:focus {
  border-color: #93c5fd;
  box-shadow: 0 22px 55px rgba(37, 99, 235, 0.13);
  transform: translateY(-5px);
}

.prompt-type-card--landing:hover,
.prompt-type-card--landing:focus {
  border-color: #c4b5fd;
  box-shadow: 0 22px 55px rgba(109, 40, 217, 0.13);
}

.prompt-type-card--active {
  border-width: 2px;
  border-color: #60a5fa;
}

.prompt-type-card__icon {
  width: 60px;
  height: 60px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  color: #2563eb;
  font-size: 27px;
  border-radius: 17px;
  background: #eff6ff;
}

.prompt-type-card--landing .prompt-type-card__icon {
  color: #7c3aed;
  background: #f3e8ff;
}

.prompt-type-card > small {
  position: absolute;
  top: 24px;
  left: 24px;
  padding: 4px 8px;
  color: #047857;
  font-size: 8px;
  font-weight: 800;
  border-radius: 999px;
  background: #d1fae5;
}

.prompt-type-card > strong {
  position: relative;
  z-index: 1;
  margin-bottom: 9px;
  font-size: 17px;
}

.prompt-type-card > p {
  position: relative;
  z-index: 1;
  margin: 0;
  color: #64748b;
  font-size: 11px;
  line-height: 2;
}

.prompt-type-card__action {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: auto;
  padding-top: 25px;
  color: #1d4ed8;
  font-size: 11px;
  font-weight: 800;
}

.prompt-type-card--landing .prompt-type-card__action {
  color: #6d28d9;
}

.prompt-type-chooser__cancel {
  display: block;
  margin: 25px auto 0;
  padding: 9px 14px;
  color: #64748b;
  font-size: 10px;
  border: 1px solid #cbd5e1;
  border-radius: 9px;
  background: #ffffff;
  cursor: pointer;
}

.prompt-type-switch {
  direction: rtl;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  /* margin: 22px 42px -20px; */
  padding: 10px 13px;
  color: #475569;
  font-size: 10px;
  /* border: 1px solid #e2e8f0; */
  /* border-radius: 11px; */
  background: #f8fafc;
}

.prompt-type-switch strong {
  color: #172033;
}

.prompt-type-switch button {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 7px 10px;
  color: #6d28d9;
  font-size: 9px;
  font-weight: 700;
  border: 1px solid #ddd6fe;
  border-radius: 8px;
  background: #f5f3ff;
  cursor: pointer;
}

.landing-prompt-builder {
  min-height: 680px;
  direction: rtl;
  padding: 42px;
  color: #172033;
  background: #ffffff;
}

.landing-prompt-builder button,
.landing-prompt-builder input,
.landing-prompt-builder select,
.landing-prompt-builder textarea {
  font: inherit;
}

.landing-prompt-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 190px;
  align-items: center;
  gap: 32px;
  padding: 34px;
  overflow: hidden;
  color: #ffffff;
  border-radius: 20px;
  background: linear-gradient(135deg, #111827 0%, #4c1d95 55%, #7c3aed 100%);
}

.landing-prompt-hero::before,
.landing-prompt-hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.07);
}

.landing-prompt-hero::before {
  width: 250px;
  height: 250px;
  top: -165px;
  left: 30%;
}

.landing-prompt-hero::after {
  width: 190px;
  height: 190px;
  left: -75px;
  bottom: -120px;
}

.landing-prompt-hero > div {
  position: relative;
  z-index: 1;
}

.landing-prompt-hero > div:first-child > span {
  display: inline-flex;
  margin-bottom: 12px;
  padding: 6px 11px;
  color: #ddd6fe;
  font-size: 11px;
  font-weight: 700;
  border: 1px solid rgba(221, 214, 254, 0.28);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.landing-prompt-hero h1 {
  margin: 0 0 10px;
  color: #ffffff;
  font-size: 28px;
  font-weight: 900;
  line-height: 1.55;
}

.landing-prompt-hero p {
  max-width: 650px;
  margin: 0;
  color: #ede9fe;
  font-size: 12px;
  line-height: 2;
}

.landing-prompt-progress {
  padding: 20px;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
}

.landing-prompt-progress strong,
.landing-prompt-progress span {
  display: block;
}

.landing-prompt-progress strong {
  color: #ffffff;
  font-size: 23px;
}

.landing-prompt-progress span {
  margin: 5px 0 14px;
  color: #ddd6fe;
  font-size: 10px;
}

.landing-prompt-progress > div {
  height: 7px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
}

.landing-prompt-progress i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: #ffffff;
  transition: width 0.4s ease;
}

.landing-prompt-tip {
  display: flex;
  align-items: center;
  gap: 13px;
  margin: 22px 0;
  padding: 13px 16px;
  color: #4c1d95;
  border: 1px solid #ddd6fe;
  border-radius: 13px;
  background: #f5f3ff;
}

.landing-prompt-tip > span {
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 12px;
  font-weight: 800;
  border-radius: 9px;
  background: #7c3aed;
}

.landing-prompt-tip p {
  margin: 0;
  font-size: 11px;
  line-height: 1.9;
}

.landing-prompt-steps {
  display: block;
}

.landing-prompt-steps > .landing-prompt-step + .landing-prompt-step {
  margin-block-start: 18px;
}

.landing-prompt-step {
  position: relative;
  overflow: clip;
  border: 1px solid #e2e8f0;
  border-radius: 17px;
  background: #ffffff;
  transition:
    border-color 0.25s ease,
    box-shadow 0.25s ease,
    transform 0.25s ease;
}

.landing-prompt-step:not(.landing-prompt-step--locked):hover {
  border-color: #c4b5fd;
  box-shadow: 0 16px 38px rgba(109, 40, 217, 0.09);
  transform: translateY(-2px);
}

.landing-prompt-step--complete {
  border-color: #a7f3d0;
}

.landing-prompt-step--locked {
  border-style: dashed;
  background: #fafafa;
}

.landing-prompt-step__header {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  align-items: center;
  gap: 13px;
  padding: 18px 20px;
  border-bottom: 1px solid #f1f5f9;
}

.landing-prompt-step__number {
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #7c3aed;
  font-size: 13px;
  font-weight: 800;
  border-radius: 11px;
  background: #f3e8ff;
}

.landing-prompt-step--complete .landing-prompt-step__number {
  color: #059669;
  background: #ecfdf5;
}

.landing-prompt-step__title h2 {
  margin: 0 0 4px;
  color: #172033;
  font-size: 15px;
  font-weight: 800;
}

.landing-prompt-step__title p {
  margin: 0;
  color: #64748b;
  font-size: 10px;
  line-height: 1.8;
}

.landing-prompt-step__meta {
  display: flex;
  align-items: center;
  gap: 9px;
}

.landing-prompt-step__status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 10px;
  color: #64748b;
  font-size: 9px;
  font-weight: 700;
  border-radius: 999px;
  background: #f1f5f9;
}

.landing-prompt-step__status--complete {
  color: #047857;
  background: #d1fae5;
}

.landing-prompt-step__order {
  display: inline-flex;
  direction: ltr;
  padding: 3px;
  border: 1px solid #e2e8f0;
  border-radius: 9px;
  background: #f8fafc;
}

.landing-prompt-step__order button {
  width: 27px;
  height: 27px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  color: #475569;
  font-size: 10px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  cursor: pointer;
}

.landing-prompt-step__order button:not(:disabled):hover {
  color: #6d28d9;
  background: #ede9fe;
}

.landing-prompt-step__order button:disabled {
  color: #cbd5e1;
  cursor: not-allowed;
}

.landing-prompt-add-section {
  color: #6d28d9;
  border-color: #c4b5fd;
  background: #f5f3ff;
}

.landing-prompt-add-section > svg {
  background: #7c3aed;
}

.landing-prompt-add-section:not(:disabled):hover,
.landing-prompt-add-section:not(:disabled):focus {
  border-color: #7c3aed;
  background: #ede9fe;
}

.landing-prompt-step__empty {
  position: relative;
  width: 100%;
  min-height: 155px;
  display: block;
  padding: 24px;
  border: 0;
  background: #ffffff;
  cursor: pointer;
}

.landing-prompt-step__hover-action {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  background: rgba(76, 29, 149, 0.88);
  opacity: 0;
  transform: translateY(5px);
  transition:
    opacity 0.22s ease,
    transform 0.22s ease;
}

.landing-prompt-step__empty:hover .landing-prompt-step__hover-action,
.landing-prompt-step__empty:focus .landing-prompt-step__hover-action {
  opacity: 1;
  transform: translateY(0);
}

.landing-empty-visual {
  width: min(620px, 90%);
  min-height: 105px;
  margin: auto;
}

.landing-empty-hero {
  display: grid;
  grid-template-columns: 1fr 170px;
  align-items: center;
  gap: 25px;
}

.landing-empty-hero > span {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.landing-empty-hero i,
.landing-empty-lines i,
.landing-empty-cards i,
.landing-empty-cards b {
  display: block;
  height: 9px;
  border-radius: 999px;
  background: #e2e8f0;
}

.landing-empty-hero i:first-child {
  width: 60%;
  height: 15px;
  background: #cbd5e1;
}

.landing-empty-hero i:last-child {
  width: 75%;
}

.landing-empty-hero > b {
  height: 100px;
  border-radius: 14px;
  background: linear-gradient(145deg, #ede9fe, #e2e8f0);
}

.landing-empty-grid,
.landing-empty-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.landing-empty-grid i {
  display: block;
  min-height: 105px;
  border-radius: 12px;
  background: linear-gradient(145deg, #e2e8f0, #f8fafc);
}

.landing-empty-cards span {
  display: flex;
  flex-direction: column;
  gap: 9px;
  padding: 15px;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
}

.landing-empty-cards i {
  width: 32px;
  height: 32px;
  margin-bottom: 3px;
  border-radius: 9px;
  background: #ddd6fe;
}

.landing-empty-cards b:last-child {
  width: 70%;
}

.landing-empty-lines {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
}

.landing-empty-lines i:first-child {
  width: 40%;
  height: 14px;
  background: #cbd5e1;
}

.landing-empty-lines i:nth-child(3) {
  width: 85%;
}

.landing-empty-lines i:last-child {
  width: 68%;
}

.landing-prompt-step__locked {
  min-height: 145px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 24px;
  color: #94a3b8;
  text-align: center;
}

.landing-prompt-step__locked > .anticon {
  margin-bottom: 3px;
  font-size: 21px;
}

.landing-prompt-step__locked strong {
  color: #64748b;
  font-size: 11px;
}

.landing-prompt-step__locked span {
  font-size: 9px;
}

.landing-prompt-step__editor {
  padding: 18px 20px 22px;
}

.landing-prompt-step__guide {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin-bottom: 14px;
  padding: 10px 12px;
  color: #475569;
  font-size: 9px;
  line-height: 1.8;
  border-radius: 10px;
  background: #fafafa;
}

.landing-prompt-step__guide > div {
  display: flex;
  flex: 0 0 auto;
  gap: 7px;
}

.landing-prompt-step__guide button {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 7px 10px;
  color: #475569;
  font-size: 9px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  background: #ffffff;
  cursor: pointer;
}

.landing-prompt-step__guide .landing-prompt-source-button {
  color: #ffffff;
  border-color: #7c3aed;
  background: #7c3aed;
}

.landing-editor-canvas {
  width: 100%;
  min-height: 145px;
  padding: var(--icv-landing-padding, 18px);
  color: var(--icv-landing-text, #172033);
  border: 1px dashed #c4b5fd;
  border-radius: var(--icv-landing-radius, 12px);
  background: var(--icv-landing-bg, #ffffff);
  overflow: clip;
}

.landing-prompt-step .landing-editor-canvas .mce-content-body {
  min-height: 110px;
  padding: 0;
  outline: 0;
  border-radius: 0;
  background: transparent;
}

.landing-prompt-step .landing-editor-canvas .mce-content-body:empty::before {
  content: "خروجی این سکشن هنوز وارد نشده است...";
  color: #94a3b8;
  font-size: 10px;
}

.landing-prompt-output-warning {
  margin: 10px 0 0;
  padding: 9px 11px;
  color: #b45309;
  font-size: 9px;
  border-radius: 8px;
  background: #fffbeb;
}

.landing-prompt-modal-backdrop {
  position: fixed;
  z-index: 1400;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(5px);
  animation: landingPromptFadeIn 0.2s ease;
}

.landing-prompt-form-modal {
  width: min(940px, 100%);
  max-height: calc(100vh - 48px);
  direction: rtl;
  overflow-y: auto;
  color: #172033;
  text-align: right;
  border-radius: 20px;
  background: #ffffff;
  box-shadow: 0 30px 90px rgba(15, 23, 42, 0.34);
  animation: landingPromptModalIn 0.25s ease;
}

.landing-prompt-form-modal__header {
  position: sticky;
  z-index: 2;
  top: 0;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 24px 28px 20px;
  border-bottom: 1px solid #e2e8f0;
  background: #ffffff;
}

.landing-prompt-form-modal__header span {
  color: #7c3aed;
  font-size: 9px;
  font-weight: 800;
}

.landing-prompt-form-modal__header h2 {
  margin: 5px 0 4px;
  color: #172033;
  font-size: 20px;
  font-weight: 900;
}

.landing-prompt-form-modal__header p {
  margin: 0;
  color: #64748b;
  font-size: 10px;
  line-height: 1.8;
}

.landing-prompt-form-modal__header > button {
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  color: #64748b;
  font-size: 24px;
  line-height: 1;
  border: 0;
  border-radius: 9px;
  background: #f1f5f9;
  cursor: pointer;
}

.landing-prompt-form-modal form {
  padding: 24px 28px 28px;
}

.landing-prompt-optional-note {
  margin: 0 0 18px;
  padding: 10px 12px;
  color: #5b21b6;
  font-size: 9px;
  line-height: 1.8;
  border: 1px solid #ddd6fe;
  border-radius: 10px;
  background: #faf5ff;
}

.landing-prompt-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.landing-prompt-form-grid > .prompt-image-field {
  grid-column: 1 / -1;
}

.landing-prompt-form-field--full {
  grid-column: 1 / -1;
}

.landing-prompt-form-field > label {
  display: block;
  margin-bottom: 7px;
  color: #334155;
  font-size: 10px;
  font-weight: 700;
}

.landing-prompt-optional-badge {
  display: inline-flex;
  margin-right: 6px;
  padding: 2px 6px;
  color: #64748b;
  font-size: 7px;
  font-weight: 600;
  border-radius: 999px;
  background: #f1f5f9;
}

.landing-prompt-form-field input,
.landing-prompt-form-field select,
.landing-prompt-form-field textarea {
  width: 100%;
  color: #172033;
  font-size: 11px;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  outline: none;
  background: #ffffff;
}

.landing-prompt-form-field input,
.landing-prompt-form-field select {
  height: 44px;
  padding: 0 13px;
}

.landing-prompt-form-field textarea {
  min-height: 110px;
  padding: 12px 13px;
  line-height: 1.9;
  resize: vertical;
}

.landing-prompt-form-field input:focus,
.landing-prompt-form-field select:focus,
.landing-prompt-form-field textarea:focus {
  border-color: #a78bfa;
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.09);
}

.landing-prompt-color-field {
  height: 44px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 5px 10px;
  direction: ltr;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
}

.landing-prompt-color-field input {
  width: 42px;
  height: 30px;
  padding: 0;
  border: 0;
  border-radius: 7px;
  cursor: pointer;
}

.landing-prompt-color-field span {
  color: #475569;
  font-size: 10px;
}

.landing-prompt-preview {
  margin-top: 24px;
  padding: 17px;
  border: 1px solid #ddd6fe;
  border-radius: 13px;
  background: #faf5ff;
}

.landing-prompt-preview > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin-bottom: 10px;
}

.landing-prompt-preview strong {
  color: #5b21b6;
  font-size: 11px;
}

.landing-prompt-preview span {
  color: #64748b;
  font-size: 8px;
}

.landing-prompt-preview textarea {
  width: 100%;
  min-height: 180px;
  padding: 13px;
  color: #334155;
  font-size: 9px;
  line-height: 1.9;
  border: 1px solid #cbd5e1;
  border-radius: 9px;
  outline: none;
  background: #ffffff;
  resize: vertical;
}

.landing-prompt-form-modal__footer {
  display: flex;
  justify-content: flex-end;
  gap: 9px;
  margin-top: 20px;
}

.landing-prompt-button {
  min-height: 41px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 9px 15px;
  font-size: 10px;
  font-weight: 700;
  border: 0;
  border-radius: 9px;
  cursor: pointer;
}

.landing-prompt-button--primary {
  color: #ffffff;
  background: #7c3aed;
}

.landing-prompt-button--secondary {
  color: #6d28d9;
  border: 1px solid #ddd6fe;
  background: #f5f3ff;
}

.landing-prompt-button--ghost {
  color: #64748b;
  border: 1px solid #cbd5e1;
  background: #ffffff;
}

.landing-published-page {
  width: 100%;
  min-height: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--icv-landing-gap, clamp(16px, 2.4vw, 28px));
  padding: var(--icv-landing-padding, clamp(18px, 3.4vw, 42px));
  color: var(--icv-landing-text, #172033);
  border-radius: var(--icv-landing-radius, 20px);
  background: var(--icv-landing-bg, #ffffff);
  box-shadow: var(--icv-landing-shadow, none);
  /* Keep the document as the view() scroll source. */
  overflow: clip;
  box-sizing: border-box;
  /* Standalone pages cannot inherit the editor's typography/reset stylesheet. */
  font-family: var(--icv-landing-font, IRANSans, Tahoma, sans-serif);
  font-size: var(--icv-landing-font-size, 14px);
  font-weight: 400;
  line-height: 1.5715;
}

.landing-published-page[dir="ltr"] {
  font-family: var(--icv-landing-font, Arial, Helvetica, sans-serif);
}

/* Low specificity keeps each generated section's own typography authoritative. */
:where(.landing-published-page) :is(h1, h2, h3, h4, h5, h6) {
  margin-top: 0;
  margin-bottom: 0.5em;
  font-weight: 500;
  color: inherit;
}

:where(.landing-published-page) :is(p, ul, ol, dl) {
  margin-top: 0;
  margin-bottom: 1em;
}

.landing-published-section {
  width: 100%;
  min-width: 0;
}

.landing-published-section > .icv-landing-section {
  width: 100%;
  max-width: none;
  min-width: 0;
  margin: 0 !important;
  box-sizing: border-box;
}

@keyframes landingPromptFadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes landingPromptModalIn {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media only screen and (max-width: 760px) {
  .prompt-type-chooser {
    padding: 30px 15px 115px;
  }

  .prompt-type-chooser__intro h1 {
    font-size: 23px;
  }

  .prompt-type-chooser__cards {
    grid-template-columns: 1fr;
  }

  .prompt-type-card {
    min-height: 260px;
    padding: 22px;
  }

  .prompt-type-switch {
    align-items: stretch;
    flex-direction: column;
    margin: 14px 14px 0;
  }

  .prompt-type-switch button {
    justify-content: center;
  }

  .landing-prompt-builder {
    padding: 18px 14px 115px;
  }

  .landing-prompt-hero {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 25px 20px;
    border-radius: 16px;
  }

  .landing-prompt-hero h1 {
    font-size: 21px;
  }

  .landing-prompt-progress {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 4px 10px;
    text-align: right;
  }

  .landing-prompt-progress span {
    margin: 0;
  }

  .landing-prompt-progress > div {
    grid-column: 1 / -1;
  }

  .landing-prompt-step__header {
    grid-template-columns: 38px minmax(0, 1fr);
    padding: 15px;
  }

  .landing-prompt-step__meta {
    grid-column: 2;
    justify-content: space-between;
  }

  .landing-prompt-step__hover-action {
    position: static;
    width: max-content;
    margin: 15px auto 0;
    padding: 9px 12px;
    border-radius: 9px;
    opacity: 1;
    transform: none;
    background: #7c3aed;
  }

  .landing-empty-hero {
    grid-template-columns: 1fr 100px;
  }

  .landing-prompt-step__editor {
    padding: 14px;
  }

  .landing-prompt-step__guide {
    align-items: stretch;
    flex-direction: column;
  }

  .landing-prompt-step__guide > div,
  .landing-prompt-step__guide button {
    flex: 1;
  }

  .landing-prompt-modal-backdrop {
    align-items: flex-end;
    padding: 0;
  }

  .landing-prompt-form-modal {
    max-height: 92vh;
    border-radius: 20px 20px 0 0;
  }

  .landing-prompt-form-modal__header {
    padding: 20px 18px 16px;
  }

  .landing-prompt-form-modal form {
    padding: 20px 18px 24px;
  }

  .landing-prompt-form-grid {
    grid-template-columns: 1fr;
  }

  .landing-prompt-form-field--full,
  .landing-prompt-form-grid > .prompt-image-field {
    grid-column: auto;
  }

  .landing-prompt-preview > div {
    align-items: flex-start;
    flex-direction: column;
    gap: 3px;
  }

  .landing-prompt-form-modal__footer {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .landing-prompt-button--primary {
    grid-column: 1 / -1;
    grid-row: 1;
  }

  .landing-published-page {
    gap: var(--icv-landing-gap, 14px);
    padding: var(--icv-landing-padding, 16px);
    border-radius: 0;
  }
}

@media print {
  .prompt-type-switch,
  .prompt-type-chooser,
  .landing-prompt-builder {
    display: none !important;
  }

  .landing-published-page {
    gap: var(--icv-landing-gap, 12px);
    padding: var(--icv-landing-padding, 0);
    border-radius: 0;
    box-shadow: none !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .prompt-type-chooser *,
  .landing-prompt-builder *,
  .landing-prompt-modal-backdrop,
  .landing-prompt-form-modal {
    scroll-behavior: auto !important;
    transition: none !important;
    animation: none !important;
  }
}
