body {
  background: #eef2f7;
}

.cv-editor .cv-container {
  width: min(1120px, calc(100% - 40px));
  max-width: 1120px !important;
  min-height: 680px;
  border-radius: 22px;
  background: #ffffff;
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.1);
}

.cv-editor .cv-content {
  min-height: 680px;
  background: #ffffff;
}

.prompt-preview-mode .cv-editor,
.prompt-preview-mode .cv-editor .cv-container,
.prompt-preview-mode .cv-editor .cv-content {
  width: 100%;
  max-width: none !important;
}

.prompt-preview-mode .cv-editor .cv-container {
  margin-right: 0;
  margin-left: 0;
}

.prompt-builder,
.prompt-builder * {
  box-sizing: border-box;
}

.prompt-builder {
  direction: rtl;
  min-height: 680px;
  padding: 42px;
  color: #172033;
  background: #ffffff;
}

.prompt-builder button,
.prompt-builder input,
.prompt-builder select,
.prompt-builder textarea {
  font: inherit;
}

.prompt-builder-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, #0f172a 0%, #1e3a8a 55%, #2563eb 100%);
}

.prompt-builder-hero::before,
.prompt-builder-hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.07);
}

.prompt-builder-hero::before {
  width: 250px;
  height: 250px;
  top: -160px;
  left: 28%;
}

.prompt-builder-hero::after {
  width: 190px;
  height: 190px;
  left: -80px;
  bottom: -120px;
}

.prompt-builder-hero > div {
  position: relative;
  z-index: 1;
}

.prompt-builder-eyebrow {
  display: inline-flex;
  margin-bottom: 12px;
  padding: 6px 11px;
  color: #bfdbfe;
  font-size: 12px;
  font-weight: 600;
  border: 1px solid rgba(191, 219, 254, 0.28);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.prompt-builder-hero h1 {
  margin: 0 0 10px;
  color: #ffffff;
  font-size: 29px;
  font-weight: 800;
  line-height: 1.55;
}

.prompt-builder-hero p {
  max-width: 650px;
  margin: 0;
  color: #dbeafe;
  font-size: 13px;
  line-height: 2;
}

.prompt-builder-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);
}

.prompt-builder-progress strong,
.prompt-builder-progress span {
  display: block;
}

.prompt-builder-progress strong {
  color: #ffffff;
  font-size: 24px;
}

.prompt-builder-progress span {
  margin: 5px 0 14px;
  color: #bfdbfe;
  font-size: 11px;
}

.prompt-builder-progress > div {
  height: 7px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.17);
}

.prompt-builder-progress i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: #ffffff;
  transition: width 0.4s ease;
}

.prompt-builder-hero__aside,
.landing-prompt-hero__aside {
  display: grid;
  gap: 9px;
}

.prompt-reset-button {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 9px 12px;
  color: #fee2e2;
  font-size: 10px;
  font-weight: 750;
  border: 1px solid rgba(254, 202, 202, 0.34);
  border-radius: 10px;
  background: rgba(127, 29, 29, 0.34);
  cursor: pointer;
  transition:
    color 0.2s ease,
    border-color 0.2s ease,
    background 0.2s ease;
}

.prompt-reset-button:hover,
.prompt-reset-button:focus {
  color: #ffffff;
  border-color: rgba(254, 202, 202, 0.72);
  background: rgba(185, 28, 28, 0.7);
}

.prompt-reset-modal {
  direction: rtl;
  text-align: right;
}

.prompt-reset-modal .ant-modal-confirm-body > .anticon {
  float: right;
  margin-right: 0;
  margin-left: 16px;
  color: #dc2626;
}

.prompt-reset-modal .ant-modal-confirm-title,
.prompt-reset-modal .ant-modal-confirm-content {
  margin-right: 38px;
  margin-left: 0;
}

.prompt-reset-modal .ant-modal-confirm-btns {
  float: left;
}

.prompt-reset-confirm {
  margin-top: 12px;
  color: #475569;
  font-size: 11px;
  line-height: 1.9;
}

.prompt-reset-confirm p {
  margin: 0 0 8px;
}

.prompt-reset-confirm ul {
  margin: 0 0 11px;
  padding-right: 18px;
}

.prompt-reset-confirm li {
  margin-bottom: 3px;
}

.prompt-reset-confirm strong,
.prompt-reset-confirm small {
  display: block;
  padding: 9px 10px;
  border-radius: 9px;
}

.prompt-reset-confirm strong {
  color: #991b1b;
  background: #fef2f2;
}

.prompt-reset-confirm small {
  margin-top: 7px;
  color: #64748b;
  font-size: 9px;
  background: #f8fafc;
}

.prompt-builder-tip {
  display: flex;
  align-items: center;
  gap: 13px;
  margin: 22px 0;
  padding: 13px 16px;
  color: #334155;
  border: 1px solid #dbeafe;
  border-radius: 13px;
  background: #eff6ff;
}

.prompt-builder-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: 700;
  border-radius: 9px;
  background: #2563eb;
}

.prompt-builder-tip p {
  margin: 0;
  font-size: 12px;
  line-height: 1.9;
}

.prompt-builder-steps {
  display: grid;
  gap: 18px;
}

.prompt-step-card {
  position: relative;
  overflow: hidden;
  border: 1px solid #e2e8f0;
  border-radius: 17px;
  background: #ffffff;
  transition:
    border-color 0.25s ease,
    box-shadow 0.25s ease,
    transform 0.25s ease;
}

.prompt-step-card:not(.prompt-step-card--locked):hover {
  border-color: #93c5fd;
  box-shadow: 0 16px 38px rgba(37, 99, 235, 0.09);
  transform: translateY(-2px);
}

.prompt-step-card--complete {
  border-color: #a7f3d0;
}

.prompt-step-card--locked {
  border-style: dashed;
  background: #f8fafc;
}

.prompt-step-card__header {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  align-items: center;
  gap: 13px;
  padding: 18px 20px;
  border-bottom: 1px solid #eef2f7;
}

.prompt-step-number {
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #2563eb;
  font-size: 14px;
  font-weight: 800;
  border-radius: 11px;
  background: #eff6ff;
}

.prompt-step-card--complete .prompt-step-number {
  color: #059669;
  background: #ecfdf5;
}

.prompt-step-card__header h2 {
  margin: 0 0 4px;
  color: #172033;
  font-size: 16px;
  font-weight: 800;
}

.prompt-step-card__header p {
  margin: 0;
  color: #64748b;
  font-size: 11px;
  line-height: 1.8;
}

.prompt-step-status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 10px;
  color: #64748b;
  font-size: 10px;
  font-weight: 700;
  border-radius: 999px;
  background: #f1f5f9;
}

.prompt-step-status--complete {
  color: #047857;
  background: #d1fae5;
}

.prompt-step-card__meta {
  display: flex;
  align-items: center;
  gap: 9px;
}

.prompt-step-order {
  display: inline-flex;
  direction: ltr;
  padding: 3px;
  border: 1px solid #e2e8f0;
  border-radius: 9px;
  background: #f8fafc;
}

.prompt-step-order button {
  width: 27px;
  height: 27px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  color: #475569;
  font-size: 11px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  cursor: pointer;
  transition:
    color 0.2s ease,
    background 0.2s ease;
}

.prompt-step-order button:not(:disabled):hover,
.prompt-step-order button:not(:disabled):focus {
  color: #1d4ed8;
  background: #dbeafe;
}

.prompt-step-order button:disabled {
  color: #cbd5e1;
  cursor: not-allowed;
}

.prompt-step-empty {
  position: relative;
  width: 100%;
  min-height: 155px;
  display: block;
  padding: 24px;
  border: 0;
  background: #ffffff;
  cursor: pointer;
}

.prompt-step-hover-action {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  color: #ffffff;
  font-size: 12px;
  font-weight: 700;
  background: rgba(30, 58, 138, 0.86);
  opacity: 0;
  transform: translateY(5px);
  transition:
    opacity 0.22s ease,
    transform 0.22s ease;
}

.prompt-step-empty:hover .prompt-step-hover-action,
.prompt-step-empty:focus .prompt-step-hover-action {
  opacity: 1;
  transform: translateY(0);
}

.prompt-empty-visual {
  width: min(620px, 90%);
  min-height: 105px;
  margin: auto;
}

.prompt-empty-profile {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
}

.prompt-empty-avatar {
  width: 78px;
  height: 78px;
  flex: 0 0 78px;
  border-radius: 24px;
  background: linear-gradient(135deg, #dbeafe, #e2e8f0);
}

.prompt-empty-lines {
  width: 55%;
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.prompt-empty-lines i,
.prompt-empty-text i {
  display: block;
  height: 9px;
  border-radius: 999px;
  background: #e2e8f0;
}

.prompt-empty-lines i:first-child {
  width: 55%;
  height: 14px;
  background: #cbd5e1;
}

.prompt-empty-lines i:last-child {
  width: 74%;
}

.prompt-empty-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 13px;
}

.prompt-empty-gallery i {
  display: block;
  min-height: 105px;
  border-radius: 12px;
  background: linear-gradient(145deg, #e2e8f0, #f1f5f9);
}

.prompt-empty-skills {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 14px;
}

.prompt-empty-skills span {
  display: grid;
  grid-template-columns: 95px 1fr;
  align-items: center;
  gap: 13px;
}

.prompt-empty-skills i,
.prompt-empty-skills b {
  display: block;
  height: 9px;
  border-radius: 999px;
  background: #e2e8f0;
}

.prompt-empty-skills b {
  position: relative;
  overflow: hidden;
}

.prompt-empty-skills b::after {
  content: "";
  display: block;
  width: 65%;
  height: 100%;
  border-radius: inherit;
  background: #bfdbfe;
}

.prompt-empty-history {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 16px;
}

.prompt-empty-history span {
  position: relative;
  display: grid;
  grid-template-columns: 10px 1fr;
  gap: 15px;
}

.prompt-empty-history i {
  width: 10px;
  height: 10px;
  margin-top: 3px;
  border-radius: 50%;
  background: #bfdbfe;
}

.prompt-empty-history b {
  display: block;
  width: 78%;
  height: 12px;
  border-radius: 999px;
  background: #e2e8f0;
}

.prompt-empty-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 11px;
}

.prompt-empty-text i:first-child {
  width: 38%;
  height: 14px;
  background: #cbd5e1;
}

.prompt-empty-text i:nth-child(3) {
  width: 90%;
}

.prompt-empty-text i:last-child {
  width: 68%;
}

.prompt-step-locked-state {
  min-height: 145px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 24px;
  color: #94a3b8;
  text-align: center;
}

.prompt-step-locked-state > .anticon {
  margin-bottom: 3px;
  font-size: 21px;
}

.prompt-step-locked-state strong {
  color: #64748b;
  font-size: 12px;
}

.prompt-step-locked-state span {
  font-size: 10px;
}

.prompt-step-editor {
  padding: 18px 20px 22px;
}

.prompt-step-editor__guide {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin-bottom: 14px;
  padding: 10px 12px;
  color: #475569;
  font-size: 10px;
  line-height: 1.8;
  border-radius: 10px;
  background: #f8fafc;
}

.prompt-step-editor__guide > div {
  display: flex;
  flex: 0 0 auto;
  gap: 7px;
}

.prompt-step-editor__guide button {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 7px 10px;
  color: #475569;
  font-size: 10px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  background: #ffffff;
  cursor: pointer;
}

.prompt-step-editor__guide .prompt-source-button {
  color: #ffffff;
  border-color: #2563eb;
  background: #2563eb;
}

.prompt-step-editor__guide .prompt-anchor-button,
.landing-prompt-step__guide .prompt-anchor-button {
  color: #047857;
  border-color: #a7f3d0;
  background: #ecfdf5;
}

.prompt-step-editor__guide .prompt-anchor-button:not(:disabled):hover,
.landing-prompt-step__guide .prompt-anchor-button:not(:disabled):hover {
  color: #ffffff;
  border-color: #059669;
  background: #059669;
}

.prompt-step-editor__guide .prompt-anchor-button:disabled,
.landing-prompt-step__guide .prompt-anchor-button:disabled {
  color: #94a3b8;
  border-color: #e2e8f0;
  background: #f8fafc;
  cursor: not-allowed;
  opacity: 0.72;
}

.prompt-step-editor .mce-content-body {
  min-height: 145px;
  padding: 18px;
  outline: 1px dashed #bfdbfe;
  outline-offset: -1px;
  border-radius: 11px;
  background: #ffffff;
}

.prompt-step-editor .mce-content-body:empty::before {
  content: "خروجی این بخش هنوز وارد نشده است...";
  color: #94a3b8;
  font-size: 11px;
}

.prompt-output-warning {
  margin: 10px 0 0;
  padding: 9px 11px;
  color: #b45309;
  font-size: 10px;
  border-radius: 8px;
  background: #fffbeb;
}

.iam-prompt-dialog-root {
  position: fixed;
  inset: 0;
  z-index: 999;
  font-family: IRANSans, Tahoma, sans-serif;
}

.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.68);
  backdrop-filter: blur(5px);
  animation: promptFadeIn 0.2s ease;
}

.prompt-form-modal {
  width: min(880px, 100%);
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  color: #172033;
  text-align: right;
  border-radius: 20px;
  background: #ffffff;
  box-shadow: 0 30px 90px rgba(15, 23, 42, 0.32);
  animation: promptModalIn 0.25s ease;
}

.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;
}

.prompt-form-modal__header span {
  color: #2563eb;
  font-size: 10px;
  font-weight: 700;
}

.prompt-form-modal__header h2 {
  margin: 5px 0 4px;
  color: #172033;
  font-size: 21px;
  font-weight: 800;
}

.prompt-form-modal__header p {
  margin: 0;
  color: #64748b;
  font-size: 11px;
  line-height: 1.8;
}

.prompt-modal-close {
  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;
}

.prompt-form-modal form {
  padding: 24px 28px 28px;
}

.prompt-form-optional-note {
  margin: 0 0 18px;
  padding: 10px 12px;
  color: #475569;
  font-size: 10px;
  line-height: 1.8;
  border: 1px solid #dbeafe;
  border-radius: 10px;
  background: #f8fbff;
}

.prompt-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.prompt-form-field--full {
  grid-column: 1 / -1;
}

.prompt-form-field label {
  display: block;
  margin-bottom: 7px;
  color: #334155;
  font-size: 11px;
  font-weight: 700;
}

.prompt-optional-badge {
  display: inline-flex;
  margin-right: 6px;
  padding: 2px 6px;
  color: #64748b;
  font-size: 8px;
  font-weight: 600;
  border-radius: 999px;
  background: #f1f5f9;
}

.prompt-form-field input,
.prompt-form-field select,
.prompt-form-field textarea {
  width: 100%;
  color: #172033;
  font-size: 12px;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  outline: none;
  background: #ffffff;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.prompt-form-field input,
.prompt-form-field select {
  height: 44px;
  padding: 0 13px;
}

.prompt-form-field textarea {
  min-height: 110px;
  padding: 12px 13px;
  line-height: 1.9;
  resize: vertical;
}

.prompt-form-field input:focus,
.prompt-form-field select:focus,
.prompt-form-field textarea:focus {
  border-color: #60a5fa;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.prompt-form-field label.prompt-scroll-switch,
.landing-prompt-form-field label.prompt-scroll-switch {
  position: relative;
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  margin: 0;
  padding: 14px 15px;
  color: #334155;
  border: 1px solid #dbe4f0;
  border-radius: 13px;
  background: #f8fafc;
  cursor: pointer;
  transition:
    border-color 0.2s ease,
    background 0.2s ease;
}

.prompt-form-field .prompt-scroll-switch > input,
.landing-prompt-form-field .prompt-scroll-switch > input {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  opacity: 0;
  pointer-events: none;
}

.prompt-scroll-switch__track {
  position: relative;
  width: 44px;
  height: 24px;
  direction: ltr;
  border-radius: 999px;
  background: #cbd5e1;
  transition: background 0.22s ease;
}

.prompt-scroll-switch__track i {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 2px 5px rgba(15, 23, 42, 0.2);
  transition: transform 0.22s ease;
}

.prompt-scroll-switch > input:checked + .prompt-scroll-switch__track {
  background: #2563eb;
}

.landing-prompt-form-field
  .prompt-scroll-switch
  > input:checked
  + .prompt-scroll-switch__track {
  background: #7c3aed;
}

.prompt-scroll-switch > input:checked + .prompt-scroll-switch__track i {
  transform: translateX(20px);
}

.prompt-scroll-switch > input:focus-visible + .prompt-scroll-switch__track {
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.16);
}

.prompt-scroll-switch__copy {
  display: grid;
  gap: 3px;
}

.prompt-scroll-switch__copy strong {
  color: #1e293b;
  font-size: 11px;
  font-weight: 800;
}

.prompt-scroll-switch__copy small {
  color: #64748b;
  font-size: 9px;
  font-weight: 500;
  line-height: 1.7;
}

.prompt-scroll-switch > b {
  min-width: 55px;
  padding: 6px 9px;
  color: #64748b;
  text-align: center;
  font-size: 9px;
  border-radius: 999px;
  background: #e2e8f0;
}

.prompt-scroll-switch:has(input:checked) {
  border-color: #93c5fd;
  background: #eff6ff;
}

.landing-prompt-form-field .prompt-scroll-switch:has(input:checked) {
  border-color: #c4b5fd;
  background: #f5f3ff;
}

.prompt-scroll-switch:has(input:checked) > b {
  color: #1d4ed8;
  background: #dbeafe;
}

.landing-prompt-form-field .prompt-scroll-switch:has(input:checked) > b {
  color: #6d28d9;
  background: #ede9fe;
}

.prompt-color-field {
  height: 44px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 5px 10px;
  direction: ltr;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
}

.prompt-color-field input {
  width: 42px;
  height: 30px;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 7px;
  cursor: pointer;
}

.prompt-color-field span {
  color: #475569;
  font-size: 11px;
}

.prompt-image-field {
  padding: 16px;
  border: 1px solid #dbe4f0;
  border-radius: 14px;
  background: #f8fafc;
}

.prompt-image-field__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.prompt-image-field__header > div:first-child {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.prompt-image-field__header strong {
  color: #334155;
  font-size: 12px;
}

.prompt-image-field__header span {
  color: #64748b;
  font-size: 9px;
  line-height: 1.7;
}

.prompt-image-field__actions {
  display: flex;
  flex: 0 0 auto;
  gap: 7px;
}

.prompt-image-action {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 7px 11px;
  color: #1d4ed8;
  font-size: 9px;
  font-weight: 700;
  border: 1px solid #bfdbfe;
  border-radius: 9px;
  background: #eff6ff;
  cursor: pointer;
}

.prompt-image-action--primary {
  color: #ffffff;
  border-color: #2563eb;
  background: #2563eb;
}

.prompt-image-empty {
  width: 100%;
  min-height: 135px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 20px;
  color: #94a3b8;
  border: 1px dashed #bfdbfe;
  border-radius: 11px;
  background: #ffffff;
  cursor: pointer;
}

.prompt-image-empty > .anticon {
  color: #60a5fa;
  font-size: 25px;
}

.prompt-image-empty strong {
  color: #475569;
  font-size: 11px;
}

.prompt-image-empty span {
  font-size: 9px;
}

.prompt-image-list {
  display: grid;
  gap: 10px;
}

.prompt-image-item {
  display: grid;
  grid-template-columns: 130px minmax(0, 1fr) 34px;
  align-items: stretch;
  gap: 12px;
  padding: 11px;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #ffffff;
}

.prompt-image-preview {
  position: relative;
  min-height: 130px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #94a3b8;
  font-size: 28px;
  overflow: hidden;
  border-radius: 9px;
  background: #e2e8f0;
}

.prompt-image-preview img {
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
  object-fit: cover;
}

.prompt-image-preview span {
  position: absolute;
  z-index: 1;
  right: 6px;
  bottom: 6px;
  padding: 4px 7px;
  color: #ffffff;
  font-size: 8px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.76);
}

.prompt-image-details,
.prompt-image-details label {
  display: flex;
  flex-direction: column;
}

.prompt-image-details {
  gap: 9px;
}

.prompt-image-details label {
  gap: 5px;
  margin: 0;
}

.prompt-image-details label > span {
  display: flex;
  align-items: center;
  gap: 5px;
  color: #475569;
  font-size: 9px;
  font-weight: 700;
}

.prompt-image-details label small {
  padding: 1px 5px;
  color: #64748b;
  font-size: 7px;
  border-radius: 999px;
  background: #f1f5f9;
}

.prompt-image-details input,
.prompt-image-details textarea {
  width: 100%;
  padding: 8px 10px;
  color: #172033;
  font-size: 10px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  outline: none;
  background: #ffffff;
}

.prompt-image-details input {
  height: 35px;
}

.prompt-image-details textarea {
  min-height: 58px;
  line-height: 1.7;
  resize: vertical;
}

.prompt-image-details input:focus,
.prompt-image-details textarea:focus {
  border-color: #60a5fa;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.08);
}

.prompt-image-details__row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.prompt-image-item__controls {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.prompt-image-item__controls button {
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  color: #475569;
  font-size: 10px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #f8fafc;
  cursor: pointer;
}

.prompt-image-item__controls button:disabled {
  color: #cbd5e1;
  cursor: not-allowed;
}

.prompt-image-item__controls .prompt-image-remove {
  color: #dc2626;
  border-color: #fecaca;
  background: #fef2f2;
}

.prompt-preview-block {
  margin-top: 24px;
  padding: 17px;
  border: 1px solid #dbeafe;
  border-radius: 13px;
  background: #f8fbff;
}

.prompt-preview-block__title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin-bottom: 10px;
}

.prompt-preview-block__title strong {
  color: #1e3a8a;
  font-size: 12px;
}

.prompt-preview-block__title span {
  color: #64748b;
  font-size: 9px;
}

.prompt-preview-block textarea {
  width: 100%;
  min-height: 170px;
  padding: 13px;
  color: #334155;
  font-size: 10px;
  line-height: 1.9;
  border: 1px solid #cbd5e1;
  border-radius: 9px;
  outline: none;
  background: #ffffff;
  resize: vertical;
}

.prompt-form-modal__footer {
  display: flex;
  justify-content: flex-end;
  gap: 9px;
  margin-top: 22px;
}

.prompt-button {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 0 17px;
  font-size: 11px;
  font-weight: 700;
  border-radius: 10px;
  cursor: pointer;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease;
}

.prompt-button:hover {
  transform: translateY(-1px);
}

.prompt-button--primary {
  color: #ffffff;
  border: 1px solid #2563eb;
  background: #2563eb;
  box-shadow: 0 8px 18px rgba(37, 99, 235, 0.22);
}

.prompt-button--secondary {
  color: #1d4ed8;
  border: 1px solid #bfdbfe;
  background: #eff6ff;
}

.prompt-button--ghost {
  color: #64748b;
  border: 1px solid #cbd5e1;
  background: #ffffff;
}

.prompt-published-resume {
  width: 100%;
  min-height: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--icv-section-gap, clamp(16px, 2.4vw, 28px));
  padding: var(--icv-shell-padding, clamp(18px, 3.4vw, 42px));
  color: var(--icv-text, #172033);
  border-radius: var(--icv-shell-radius, 20px);
  background: var(--icv-page-bg, #ffffff);
  box-shadow: var(--icv-shell-shadow, none);
  overflow: hidden;
  box-sizing: border-box;
}

.prompt-published-resume.icv-resume-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
}

.prompt-published-section {
  width: 100%;
  min-width: 0;
}

.prompt-published-section > .icv-resume-section {
  width: 100%;
  max-width: none;
  min-width: 0;
  margin: 0 !important;
  box-sizing: border-box;
}

.icv-resume-shell [id^="icv-resume-title-"],
.icv-landing-shell [id^="icv-landing-title-"] {
  scroll-margin-top: 92px;
}

.prompt-editor-canvas {
  width: 100%;
  min-height: 145px;
  padding: var(--icv-shell-padding, 18px);
  color: var(--icv-text, #172033);
  border: 1px dashed #bfdbfe;
  border-radius: var(--icv-shell-radius, 12px);
  background: var(--icv-page-bg, #ffffff);
  overflow: hidden;
  box-sizing: border-box;
}

.prompt-step-editor .prompt-editor-canvas .mce-content-body {
  min-height: 110px;
  padding: 0;
  outline: 0;
  border-radius: 0;
  background: transparent;
}

.prompt-editor-canvas--native,
.landing-editor-canvas--native {
  min-height: 0;
  border-style: solid;
}

.icv-resume-shell .icv-prompt-native-section {
  --icv-native-surface: var(--icv-surface, #ffffff);
  --icv-native-muted-surface: var(--icv-surface-muted, #f8fafc);
  --icv-native-text: var(--icv-text, #172033);
  --icv-native-muted: var(--icv-text-muted, #64748b);
  --icv-native-accent: var(--icv-accent, #2563eb);
  --icv-native-border: var(--icv-border, #dbe5f3);
  --icv-native-radius: var(--icv-shell-radius, 20px);
  --icv-native-shadow: var(--icv-shell-shadow, 0 18px 50px rgba(15, 23, 42, 0.08));
}

.icv-landing-shell .icv-prompt-native-section {
  --icv-native-surface: var(--icv-landing-surface, #ffffff);
  --icv-native-muted-surface: var(--icv-landing-surface-muted, #f8fafc);
  --icv-native-text: var(--icv-landing-text, #172033);
  --icv-native-muted: var(--icv-landing-muted, #64748b);
  --icv-native-accent: var(--icv-landing-accent, #7c3aed);
  --icv-native-border: var(--icv-landing-border, #ddd6fe);
  --icv-native-radius: var(--icv-landing-radius, 20px);
  --icv-native-shadow: var(--icv-landing-shadow, 0 18px 50px rgba(15, 23, 42, 0.08));
}

.icv-resume-shell .icv-prompt-native-section,
.icv-landing-shell .icv-prompt-native-section {
  width: 100%;
  min-width: 0;
  display: grid;
  gap: clamp(18px, 2.5vw, 30px);
  margin: 0;
  padding: clamp(20px, 3vw, 38px);
  overflow: hidden;
  color: var(--icv-native-text);
  border: 1px solid var(--icv-native-border);
  border-radius: var(--icv-native-radius);
  background: var(--icv-native-surface);
  box-shadow: var(--icv-native-shadow);
  box-sizing: border-box;
}

.icv-prompt-native-section,
.icv-prompt-native-section * {
  box-sizing: border-box;
}

.icv-prompt-native-section .row::before,
.icv-prompt-native-section .row::after {
  content: none;
  display: none;
}

.icv-prompt-native-section__header {
  display: grid;
  grid-template-columns: 6px minmax(0, 1fr);
  gap: 14px;
  align-items: stretch;
  margin: 0;
}

.icv-prompt-native-section__header > span {
  display: block;
  min-height: 46px;
  border-radius: 999px;
  background: var(--icv-native-accent);
}

.icv-prompt-native-section__header h2 {
  margin: 0;
  color: var(--icv-native-text);
  font-size: clamp(20px, 2.5vw, 30px);
  font-weight: 900;
  line-height: 1.5;
}

.icv-prompt-native-section__header p {
  margin: 5px 0 0;
  color: var(--icv-native-muted);
  font-size: 12px;
  line-height: 1.9;
}

.icv-prompt-native-section__body {
  min-width: 0;
}

.icv-prompt-native-section .icv-native-contact-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin: 0;
}

.icv-prompt-native-section .icv-native-contact-form > *,
.icv-prompt-native-section .icv-native-contact-form__captcha > * {
  width: auto !important;
  float: none !important;
  margin: 0;
  padding: 0;
}

.icv-prompt-native-section .icv-native-contact-form__message,
.icv-prompt-native-section .icv-native-contact-form__captcha,
.icv-prompt-native-section .icv-native-contact-form__submit {
  grid-column: 1 / -1;
}

.icv-prompt-native-section .icv-native-contact-form label {
  display: block;
  margin: 0 0 7px;
  color: var(--icv-native-text);
  font-size: 11px;
  font-weight: 800;
}

.icv-prompt-native-section .icv-native-contact-form input,
.icv-prompt-native-section .icv-native-contact-form textarea {
  width: 100%;
  min-height: 46px;
  margin: 0;
  padding: 11px 13px;
  color: var(--icv-native-text);
  line-height: 1.7;
  border: 1px solid var(--icv-native-border);
  border-radius: calc(var(--icv-native-radius) * 0.55);
  outline: 0;
  background: var(--icv-native-muted-surface);
  box-shadow: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.icv-prompt-native-section .icv-native-contact-form textarea {
  min-height: 118px;
  resize: vertical;
}

.icv-prompt-native-section .icv-native-contact-form input:focus,
.icv-prompt-native-section .icv-native-contact-form textarea:focus {
  border-color: var(--icv-native-accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--icv-native-accent) 14%, transparent);
}

.icv-prompt-native-section .icv-native-contact-form__captcha {
  display: grid;
  grid-template-columns: minmax(130px, 220px) minmax(130px, 220px);
  gap: 12px;
  align-items: stretch;
}

.icv-prompt-native-section .icv-native-contact-form__captcha img {
  width: 100%;
  height: 46px;
  display: block;
  object-fit: contain;
  border: 1px solid var(--icv-native-border);
  border-radius: calc(var(--icv-native-radius) * 0.55);
  background: #ffffff;
}

.icv-prompt-native-section .icv-native-contact-form__submit {
  display: flex;
  align-items: center;
  gap: 12px;
}

.icv-prompt-native-section .icv-native-contact-form__submit button {
  min-width: 140px;
  min-height: 44px;
  margin: 0;
  padding: 10px 20px;
  color: #ffffff;
  font-weight: 800;
  border: 0;
  border-radius: calc(var(--icv-native-radius) * 0.55);
  background: var(--icv-native-accent);
  cursor: pointer;
  transition: transform 0.2s ease, filter 0.2s ease;
}

.icv-prompt-native-section .icv-native-contact-form__submit button:hover {
  filter: brightness(0.94);
  transform: translateY(-2px);
}

.icv-prompt-native-section .icv-native-contact-form__submit small {
  color: var(--icv-native-muted);
  font-size: 10px;
  line-height: 1.8;
}

.icv-prompt-native-section .icv-native-comments {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.icv-prompt-native-section .details-comment {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(150px, 0.35fr) minmax(0, 1fr);
  gap: clamp(14px, 2.5vw, 28px);
  align-items: start;
  margin: 0;
  padding: 18px;
  color: var(--icv-native-text);
  border: 1px solid var(--icv-native-border);
  border-radius: calc(var(--icv-native-radius) * 0.7);
  background: var(--icv-native-muted-surface);
}

.icv-prompt-native-section .details-comment-meta,
.icv-prompt-native-section .details-comment-p {
  width: auto !important;
  min-width: 0;
}

.icv-prompt-native-section .details-comment-h4,
.icv-prompt-native-section .details-comment-subtitle,
.icv-prompt-native-section .details-comment-span,
.icv-prompt-native-section .cmt-rate,
.icv-prompt-native-section .details-comment-p {
  margin: 0;
  color: inherit;
  overflow-wrap: anywhere;
}

.icv-prompt-native-section .details-comment-h4 {
  font-size: 14px;
  font-weight: 900;
}

.icv-prompt-native-section .details-comment-subtitle {
  margin-top: 5px;
  color: var(--icv-native-muted);
  font-size: 11px;
  font-weight: 700;
}

.icv-prompt-native-section .details-comment-span,
.icv-prompt-native-section .cmt-rate {
  display: inline-block;
  margin-top: 8px;
  color: var(--icv-native-muted);
  font-size: 9px;
}

.icv-prompt-native-section .cmt-rate {
  margin-inline-start: 8px;
}

.icv-prompt-native-section .details-comment-p {
  font-size: 12px;
  line-height: 2;
}

.icv-prompt-native-section .icv-native-state {
  padding: 22px;
  color: var(--icv-native-muted);
  text-align: center;
  border: 1px dashed var(--icv-native-border);
  border-radius: calc(var(--icv-native-radius) * 0.7);
  background: var(--icv-native-muted-surface);
}

.icv-prompt-native-section .icv-native-view-stat {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
}

.icv-prompt-native-section .icv-native-view-stat > div {
  width: auto;
  min-height: 112px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 8px;
  margin: 0;
  padding: 16px;
  text-align: center;
  border: 1px solid var(--icv-native-border);
  border-radius: calc(var(--icv-native-radius) * 0.7);
  background: var(--icv-native-muted-surface);
}

.icv-prompt-native-section .icv-native-view-stat__spacer {
  display: none !important;
}

.icv-prompt-native-section .icv-native-view-stat label,
.icv-prompt-native-section .icv-native-view-stat span {
  margin: 0;
  color: var(--icv-native-text);
}

.icv-prompt-native-section .icv-native-view-stat label {
  color: var(--icv-native-muted);
  font-size: 10px;
  font-weight: 700;
}

.icv-prompt-native-section .icv-native-view-stat span {
  font-size: clamp(21px, 3vw, 34px);
  font-weight: 900;
}

.icv-prompt-native-section .map {
  width: 100%;
  min-height: 320px;
  overflow: hidden;
  border: 1px solid var(--icv-native-border);
  border-radius: calc(var(--icv-native-radius) * 0.8);
  background: var(--icv-native-muted-surface);
}

.icv-prompt-native-section .icv-native-map-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 14px 0 0;
}

.icv-prompt-native-section .icv-native-map-actions > div {
  width: auto;
  float: none;
  margin: 0;
  padding: 0;
}

.icv-prompt-native-section .icv-native-map-actions a {
  min-height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 0;
  padding: 9px 12px;
  color: var(--icv-native-text);
  font-size: 10px;
  font-weight: 800;
  text-decoration: none;
  border: 1px solid var(--icv-native-border);
  border-radius: calc(var(--icv-native-radius) * 0.55);
  background: var(--icv-native-muted-surface);
  transition: border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.icv-prompt-native-section .icv-native-map-actions a:hover {
  color: var(--icv-native-accent);
  border-color: var(--icv-native-accent);
  transform: translateY(-2px);
}

.icv-prompt-native-section .icv-native-map-actions img {
  width: 22px;
  height: 22px;
  object-fit: contain;
}

@supports (animation-timeline: view()) {
  .prompt-published-resume .icv-prompt-native-section[class*="--reveal-"],
  .landing-published-page .icv-prompt-native-section[class*="--reveal-"] {
    animation-duration: 1ms;
    animation-fill-mode: both;
    animation-timeline: view();
    animation-range: entry 10% cover 32%;
  }

  .prompt-published-resume .icv-prompt-native-section--reveal-fade,
  .landing-published-page .icv-prompt-native-section--reveal-fade {
    animation-name: icvPromptNativeRevealFade;
  }

  .prompt-published-resume .icv-prompt-native-section--reveal-up,
  .landing-published-page .icv-prompt-native-section--reveal-up {
    animation-name: icvPromptNativeRevealUp;
  }

  .prompt-published-resume .icv-prompt-native-section--reveal-side,
  .landing-published-page .icv-prompt-native-section--reveal-side {
    animation-name: icvPromptNativeRevealSide;
  }

  .prompt-published-resume .icv-prompt-native-section--reveal-scale,
  .landing-published-page .icv-prompt-native-section--reveal-scale {
    animation-name: icvPromptNativeRevealScale;
  }
}

@keyframes icvPromptNativeRevealFade {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes icvPromptNativeRevealUp {
  from { opacity: 0; transform: translateY(22px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes icvPromptNativeRevealSide {
  from { opacity: 0; transform: translateX(22px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes icvPromptNativeRevealScale {
  from { opacity: 0; transform: scale(0.97); }
  to { opacity: 1; transform: scale(1); }
}

@media (max-width: 760px) {
  .icv-prompt-native-section .icv-native-contact-form,
  .icv-prompt-native-section .icv-native-view-stat,
  .icv-prompt-native-section .icv-native-map-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .icv-prompt-native-section .details-comment {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .icv-resume-shell .icv-prompt-native-section,
  .icv-landing-shell .icv-prompt-native-section {
    padding: 16px;
  }

  .icv-prompt-native-section .icv-native-contact-form,
  .icv-prompt-native-section .icv-native-contact-form__captcha,
  .icv-prompt-native-section .icv-native-map-actions {
    grid-template-columns: 1fr;
  }

  .icv-prompt-native-section .icv-native-contact-form__submit {
    align-items: stretch;
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce), print {
  .icv-prompt-native-section[class*="--reveal-"] {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
  }
}

.prompt-floating-menu-preview-notice {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  border: 1px dashed #93c5fd;
  border-radius: 12px;
  color: #1e3a8a;
  background: #eff6ff;
}

.prompt-floating-menu-preview-notice > span {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 38px;
  border-radius: 10px;
  color: #ffffff;
  background: #2563eb;
  font-size: 18px;
}

.prompt-floating-menu-preview-notice > div {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.prompt-floating-menu-preview-notice strong {
  font-size: 12px;
}

.prompt-floating-menu-preview-notice small {
  color: #64748b;
  font-size: 10px;
  line-height: 1.8;
}

.prompt-editor-canvas--floating-menu,
.landing-editor-canvas--floating-menu {
  width: 1px;
  height: 0;
  min-height: 0 !important;
  margin: 0;
  padding: 0 !important;
  overflow: hidden;
  visibility: hidden !important;
  border: 0 !important;
}

.prompt-editor-canvas--floating-menu *,
.landing-editor-canvas--floating-menu * {
  visibility: hidden !important;
  pointer-events: none !important;
}

.prompt-step-order .prompt-step-delete,
.landing-prompt-step__order .landing-prompt-step__delete {
  color: #ef4444;
  margin-left: 3px;
  border-left: 1px solid #e2e8f0;
  border-radius: 0 6px 6px 0;
}

.prompt-step-order .prompt-step-delete:not(:disabled):hover,
.landing-prompt-step__order .landing-prompt-step__delete:not(:disabled):hover {
  color: #b91c1c;
  background: #fee2e2;
}

.prompt-link-manager-button {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 20px 0 24px;
  padding: 13px 16px;
  border: 1px solid #bfdbfe;
  border-radius: 14px;
  color: #1e40af;
  background: linear-gradient(135deg, #eff6ff, #ffffff);
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.08);
  text-align: right;
  transition:
    border-color 160ms ease,
    transform 160ms ease,
    box-shadow 160ms ease;
  justify-content: space-between;
}

.prompt-link-manager-button:hover {
  border-color: #60a5fa;
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(37, 99, 235, 0.13);
}

.prompt-link-manager-button__content {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 12px;
}

.prompt-link-manager-button__content > .anticon {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 38px;
  border-radius: 11px;
  color: #ffffff;
  background: #2563eb;
}

.prompt-link-manager-button__content > span:last-child {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.prompt-link-manager-button strong {
  font-size: 13px;
}

.prompt-link-manager-button small {
  color: #64748b;
  font-size: 10px;
}

.prompt-link-manager-button > button {
  min-width: 92px;
  min-height: 38px;
  padding: 0 16px;
  border: 1px solid #2563eb;
  border-radius: 9px;
  color: #ffffff;
  background: #2563eb;
  cursor: pointer;
  font-size: 10px;
  font-weight: 800;
  transition:
    background 160ms ease,
    transform 160ms ease;
}

.prompt-link-manager-button > button:hover {
  background: #1d4ed8;
  transform: translateY(-1px);
}

.prompt-link-manager-backdrop {
  position: fixed;
  inset: 0;
  z-index: 12000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(15, 23, 42, 0.62);
  backdrop-filter: blur(5px);
}

.prompt-link-manager {
  width: min(1080px, 100%);
  max-height: min(88vh, 820px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  direction: rtl;
  border: 1px solid #dbeafe;
  border-radius: 22px;
  color: #172033;
  background: #ffffff;
  box-shadow: 0 30px 90px rgba(15, 23, 42, 0.28);
}

.prompt-link-manager__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 24px 18px;
  border-bottom: 1px solid #e2e8f0;
  background: linear-gradient(135deg, #eff6ff, #ffffff 62%);
}

.prompt-link-manager__header > div > span {
  color: #2563eb;
  font-size: 10px;
  font-weight: 800;
}

.prompt-link-manager__header h2 {
  margin: 4px 0 5px;
  font-size: 21px;
}

.prompt-link-manager__header p,
.prompt-link-manager__footer p {
  margin: 0;
  color: #64748b;
  font-size: 11px;
  line-height: 1.8;
}

.prompt-link-manager__header > button {
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  border: 0;
  border-radius: 10px;
  color: #475569;
  background: #eaf0f7;
  cursor: pointer;
  font-size: 20px;
}

.prompt-link-manager__toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 24px;
  border-bottom: 1px solid #eef2f7;
}

.prompt-link-manager__toolbar label {
  width: min(460px, 100%);
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
}

.prompt-link-manager__toolbar input {
  width: 100%;
  height: 38px;
  border: 0;
  outline: 0;
  background: transparent;
}

.prompt-link-manager__toolbar > span {
  color: #64748b;
  font-size: 10px;
}

.prompt-link-manager__content {
  flex: 1;
  overflow-y: auto;
  padding: 18px 24px 24px;
  background: #f8fafc;
}

.prompt-link-group {
  margin-bottom: 16px;
  overflow: hidden;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  background: #ffffff;
}

.prompt-link-group:last-child {
  margin-bottom: 0;
}

.prompt-link-group > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 14px;
  border-bottom: 1px solid #eef2f7;
  background: #f8fbff;
}

.prompt-link-group h3 {
  margin: 0;
  font-size: 13px;
}

.prompt-link-group > header span {
  color: #2563eb;
  font-size: 9px;
  font-weight: 700;
}

.prompt-link-row {
  display: grid;
  grid-template-columns: 28px minmax(130px, 0.9fr) minmax(210px, 1.5fr) minmax(
      155px,
      1fr
    ) 120px;
  align-items: start;
  gap: 10px;
  padding: 13px 14px;
  border-bottom: 1px solid #f1f5f9;
}

.prompt-link-row:last-child {
  border-bottom: 0;
}

.prompt-link-row__number {
  width: 26px;
  height: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 20px;
  border-radius: 8px;
  color: #1d4ed8;
  background: #dbeafe;
  font-size: 9px;
  font-weight: 800;
}

.prompt-link-row label {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 5px;
  color: #475569;
  font-size: 9px;
  font-weight: 700;
}

.prompt-link-row input,
.prompt-link-row select {
  width: 100%;
  height: 38px;
  padding: 0 10px;
  border: 1px solid #cbd5e1;
  border-radius: 9px;
  color: #172033;
  background: #ffffff;
  outline: none;
  font-size: 11px;
}

.prompt-link-row input:focus,
.prompt-link-row select:focus {
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.12);
}

.prompt-link-row__address small {
  color: #dc2626;
  font-size: 8px;
}

.prompt-link-manager__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 15px 24px;
  border-top: 1px solid #e2e8f0;
  background: #ffffff;
}

.prompt-link-manager__footer > div {
  display: flex;
  gap: 8px;
}

.prompt-link-manager__footer button {
  min-height: 38px;
  padding: 0 15px;
  border: 1px solid #cbd5e1;
  border-radius: 9px;
  color: #475569;
  background: #ffffff;
  cursor: pointer;
  font-size: 10px;
  font-weight: 700;
}

.prompt-link-manager__footer .prompt-link-manager__save {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border-color: #2563eb;
  color: #ffffff;
  background: #2563eb;
}

@media (max-width: 900px) {
  .prompt-link-row {
    grid-template-columns: 28px minmax(0, 1fr) minmax(0, 1fr);
  }

  .prompt-link-row__address {
    grid-column: span 2;
  }
}

@media (max-width: 620px) {
  .prompt-link-manager-backdrop {
    align-items: flex-end;
    padding: 0;
  }

  .prompt-link-manager {
    max-height: 94vh;
    border-radius: 20px 20px 0 0;
  }

  .prompt-link-manager__header,
  .prompt-link-manager__content,
  .prompt-link-manager__footer {
    padding-right: 16px;
    padding-left: 16px;
  }

  .prompt-link-manager__toolbar {
    align-items: stretch;
    flex-direction: column;
    padding: 12px 16px;
  }

  .prompt-link-manager-button {
    align-items: stretch;
    flex-wrap: wrap;
  }

  .prompt-link-manager-button__content {
    flex: 1 1 220px;
  }

  .prompt-link-manager-button > button {
    flex: 0 0 auto;
  }

  .prompt-link-row {
    grid-template-columns: 1fr;
  }

  .prompt-link-row__number {
    display: none;
  }

  .prompt-link-row__address {
    grid-column: auto;
  }

  .prompt-link-manager__footer {
    align-items: stretch;
    flex-direction: column;
  }

  .prompt-link-manager__footer > div,
  .prompt-link-manager__footer button {
    width: 100%;
  }

  .prompt-link-manager__footer button {
    justify-content: center;
  }
}

.prompt-add-section,
.landing-prompt-add-section {
  width: 100%;
  min-height: 88px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 13px;
  margin-top: 18px;
  padding: 17px 22px;
  color: #1d4ed8;
  text-align: right;
  border: 2px dashed #93c5fd;
  border-radius: 17px;
  background: #eff6ff;
  cursor: pointer;
  transition:
    border-color 0.2s ease,
    background 0.2s ease,
    transform 0.2s ease;
}

.prompt-add-section > svg,
.landing-prompt-add-section > svg {
  width: 36px;
  height: 36px;
  padding: 9px;
  color: #ffffff;
  border-radius: 11px;
  background: #2563eb;
}

.prompt-add-section span,
.landing-prompt-add-section span {
  display: grid;
  gap: 3px;
}

.prompt-add-section strong,
.landing-prompt-add-section strong {
  font-size: 14px;
}

.prompt-add-section small,
.landing-prompt-add-section small {
  color: #64748b;
  font-size: 10px;
}

.prompt-add-section:not(:disabled):hover,
.prompt-add-section:not(:disabled):focus,
.landing-prompt-add-section:not(:disabled):hover,
.landing-prompt-add-section:not(:disabled):focus {
  border-color: #2563eb;
  background: #dbeafe;
  transform: translateY(-2px);
}

.prompt-add-section:disabled,
.landing-prompt-add-section:disabled {
  color: #94a3b8;
  border-color: #cbd5e1;
  background: #f8fafc;
  cursor: not-allowed;
}

.prompt-add-section:disabled > svg,
.landing-prompt-add-section:disabled > svg {
  background: #94a3b8;
}

.prompt-guide-banner {
  width: 100%;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  align-items: center;
  gap: 13px;
  margin-top: 18px;
  padding: 14px 17px;
  color: #713f12;
  text-align: right;
  border: 1px solid #fbbf24;
  border-radius: 14px;
  background: linear-gradient(135deg, #fffbeb, #fef3c7);
  box-shadow: 0 9px 24px rgba(217, 119, 6, 0.09);
  cursor: pointer;
}

.prompt-guide-banner > span {
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 19px;
  border-radius: 12px;
  background: #f59e0b;
}

.prompt-guide-banner > div {
  display: grid;
  gap: 3px;
}

.prompt-guide-banner strong {
  font-size: 12px;
}

.prompt-guide-banner small {
  color: #92400e;
  font-size: 10px;
}

.prompt-guide-banner > b {
  padding: 8px 12px;
  color: #92400e;
  font-size: 10px;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.72);
}

.prompt-library-backdrop,
.prompt-guide-backdrop {
  position: fixed;
  inset: 0;
  z-index: 10050;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px;
  background: rgba(15, 23, 42, 0.72);
  backdrop-filter: blur(7px);
  animation: promptFadeIn 0.2s ease both;
}

.prompt-library,
.prompt-guide-modal {
  width: min(1040px, 96vw);
  max-height: 90vh;
  overflow: auto;
  color: #172033;
  text-align: right;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 22px;
  background: #ffffff;
  box-shadow: 0 28px 80px rgba(15, 23, 42, 0.28);
  animation: promptModalIn 0.24s ease both;
}

.prompt-library__header,
.prompt-guide-modal > header {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 23px 26px 19px;
  border-bottom: 1px solid #e2e8f0;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
}

.prompt-library__header span,
.prompt-guide-modal > header span {
  color: #2563eb;
  font-size: 10px;
  font-weight: 800;
}

.prompt-library__header h2,
.prompt-guide-modal > header h2 {
  margin: 5px 0 5px;
  color: #0f172a;
  font-size: 21px;
  font-weight: 900;
}

.prompt-library__header p {
  margin: 0;
  color: #64748b;
  font-size: 11px;
  line-height: 1.8;
}

.prompt-library__header > button,
.prompt-guide-modal > header > button {
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  padding: 0;
  color: #64748b;
  font-size: 23px;
  line-height: 1;
  border: 0;
  border-radius: 10px;
  background: #f1f5f9;
  cursor: pointer;
}

.prompt-library__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 13px;
  padding: 22px 26px 28px;
}

.prompt-library-card {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  min-height: 132px;
  padding: 16px;
  border: 1px solid #e2e8f0;
  border-radius: 15px;
  background: #ffffff;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.2s ease;
}

.prompt-library-card:hover {
  border-color: #93c5fd;
  box-shadow: 0 12px 28px rgba(37, 99, 235, 0.08);
  transform: translateY(-2px);
}

.prompt-library-card--added {
  background: #f8fafc;
}

.prompt-library-card__number {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #2563eb;
  font-size: 10px;
  font-weight: 900;
  border-radius: 10px;
  background: #eff6ff;
}

.prompt-library-card h3 {
  margin: 0 0 5px;
  color: #0f172a;
  font-size: 13px;
  font-weight: 850;
}

.prompt-library-card p {
  margin: 0 0 7px;
  color: #64748b;
  font-size: 10px;
  line-height: 1.8;
}

.prompt-library-card small {
  color: #94a3b8;
  font-size: 9px;
}

.prompt-library-card > button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 11px;
  color: #ffffff;
  white-space: nowrap;
  font-size: 10px;
  font-weight: 800;
  border: 0;
  border-radius: 9px;
  background: #2563eb;
  cursor: pointer;
}

.prompt-library-card > button:disabled {
  color: #047857;
  background: #d1fae5;
  cursor: default;
}

.prompt-guide-modal {
  width: min(780px, 96vw);
}

.prompt-guide-steps {
  display: grid;
  gap: 11px;
  padding: 22px 26px;
}

.prompt-guide-steps article {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 13px;
  padding: 14px;
  border: 1px solid #e2e8f0;
  border-radius: 13px;
  background: #f8fafc;
}

.prompt-guide-steps article > b {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #2563eb;
  border-radius: 10px;
  background: #dbeafe;
}

.prompt-guide-steps h3 {
  margin: 0 0 4px;
  color: #0f172a;
  font-size: 12px;
  font-weight: 850;
}

.prompt-guide-steps p {
  margin: 0;
  color: #64748b;
  font-size: 10px;
  line-height: 1.9;
}

.prompt-guide-steps .prompt-guide-steps__important {
  border-color: #fbbf24;
  background: #fffbeb;
}

.prompt-guide-steps .prompt-guide-steps__important > b {
  color: #92400e;
  background: #fde68a;
}

.prompt-guide-modal > footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 17px 26px;
  border-top: 1px solid #e2e8f0;
  background: #f8fafc;
}

.prompt-guide-modal > footer p {
  margin: 0;
  color: #64748b;
  font-size: 10px;
}

.prompt-guide-modal > footer button {
  padding: 10px 17px;
  color: #ffffff;
  white-space: nowrap;
  font-size: 10px;
  font-weight: 800;
  border: 0;
  border-radius: 9px;
  background: #2563eb;
  cursor: pointer;
}

@keyframes promptFadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes promptModalIn {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media only screen and (max-width: 760px) {
  .cv-editor .cv-container {
    width: 100%;
    max-width: 100% !important;
    border-radius: 0;
    box-shadow: none;
  }

  .prompt-published-resume {
    gap: var(--icv-section-gap, 14px);
    padding: var(--icv-shell-padding, 16px);
    border-radius: 0;
  }

  .prompt-builder {
    padding: 18px 14px 115px;
  }

  .prompt-builder-hero {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 25px 20px;
    border-radius: 16px;
  }

  .prompt-builder-hero h1 {
    font-size: 22px;
  }

  .prompt-builder-progress {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 4px 10px;
    text-align: right;
  }

  .prompt-builder-progress span {
    margin: 0;
  }

  .prompt-builder-progress > div {
    grid-column: 1 / -1;
  }

  .prompt-step-card__header {
    grid-template-columns: 38px minmax(0, 1fr);
    padding: 15px;
  }

  .prompt-step-card__meta {
    grid-column: 2;
    justify-content: space-between;
  }

  .prompt-step-status {
    width: max-content;
  }

  .prompt-step-hover-action {
    position: static;
    width: max-content;
    margin: 15px auto 0;
    padding: 9px 12px;
    border-radius: 9px;
    opacity: 1;
    transform: none;
    background: #2563eb;
  }

  .prompt-step-editor {
    padding: 14px;
  }

  .prompt-step-editor__guide {
    align-items: stretch;
    flex-direction: column;
  }

  .prompt-step-editor__guide > div,
  .prompt-step-editor__guide button {
    flex: 1;
  }

  .prompt-step-editor__guide > div,
  .landing-prompt-step__guide > div {
    flex-wrap: wrap;
  }

  .prompt-step-editor__guide button,
  .landing-prompt-step__guide button {
    min-width: 115px;
  }

  .prompt-form-grid {
    grid-template-columns: 1fr;
  }

  .prompt-form-field--full {
    grid-column: auto;
  }

  .prompt-image-field__header,
  .prompt-image-field__actions {
    align-items: stretch;
    flex-direction: column;
  }

  .prompt-image-field__actions {
    width: 100%;
  }

  .prompt-image-action {
    flex: 1;
  }

  .prompt-image-item {
    grid-template-columns: 1fr;
  }

  .prompt-image-preview {
    min-height: 190px;
  }

  .prompt-image-details__row {
    grid-template-columns: 1fr;
  }

  .prompt-image-item__controls {
    flex-direction: row;
  }

  .prompt-modal-backdrop {
    align-items: flex-end;
    padding: 0;
  }

  .prompt-form-modal {
    max-height: 92vh;
    border-radius: 20px 20px 0 0;
  }

  .prompt-form-modal__header {
    padding: 20px 18px 16px;
  }

  .prompt-form-modal form {
    padding: 20px 18px 24px;
  }

  .prompt-preview-block__title {
    align-items: flex-start;
    flex-direction: column;
    gap: 3px;
  }

  .prompt-form-modal__footer {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .prompt-button--primary {
    grid-column: 1 / -1;
    grid-row: 1;
  }

  .prompt-guide-banner {
    grid-template-columns: 38px minmax(0, 1fr);
    padding: 13px;
  }

  .prompt-guide-banner > span {
    width: 38px;
    height: 38px;
  }

  .prompt-guide-banner > b {
    grid-column: 2;
    width: max-content;
  }

  .prompt-library-backdrop,
  .prompt-guide-backdrop {
    align-items: flex-end;
    padding: 0;
  }

  .prompt-library,
  .prompt-guide-modal {
    width: 100%;
    max-height: 92vh;
    border-radius: 20px 20px 0 0;
  }

  .prompt-library__header,
  .prompt-guide-modal > header {
    padding: 20px 17px 16px;
  }

  .prompt-library__grid {
    grid-template-columns: 1fr;
    padding: 17px;
  }

  .prompt-library-card {
    grid-template-columns: 36px minmax(0, 1fr);
  }

  .prompt-library-card > button {
    grid-column: 2;
    width: max-content;
  }

  .prompt-guide-steps {
    padding: 17px;
  }

  .prompt-guide-modal > footer {
    align-items: stretch;
    flex-direction: column;
    padding: 16px 17px 20px;
  }
}

@media print {
  body {
    background: #ffffff;
  }

  .cv-editor .cv-container {
    width: 100%;
    max-width: 100% !important;
    box-shadow: none;
  }

  .prompt-published-resume {
    gap: var(--icv-section-gap, 12px);
    padding: var(--icv-shell-padding, 0);
    border-radius: 0;
    box-shadow: none !important;
  }

  .prompt-builder {
    display: none !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .prompt-builder *,
  .prompt-modal-backdrop,
  .prompt-form-modal {
    scroll-behavior: auto !important;
    transition: none !important;
    animation: none !important;
  }
}

.prompt-image-manager__search {
  width: 100%;
  padding: 10px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
}

.prompt-image-manager__list {
  margin-block: 12px;
}

.prompt-image-manager__item {
  padding: 12px;
  margin-block-end: 12px;
  border: 1px solid #dbe6ff;
  border-radius: 12px;
}

.prompt-image-manager__item header {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  margin-block-end: 10px;
}

.prompt-image-manager__preview {
  display: block;
  width: 100%;
  height: 150px;
  object-fit: contain;
  margin-block-end: 10px;
  background: #f8fafc;
}
