/* 1.0.331 — safe CSS-only restoration of the desktop Create Photo flow. */
@media (min-width: 769px) {
  #fotor-root .editor-shell:not(.is-mobile)
  .left-panel--tool-ai-text-image .text-image-page {
    gap: 14px !important;
  }

  /* The panel shell already owns the title. Keep only a short explanation in
     the component header; generated copy does not mutate React-owned nodes. */
  #fotor-root .editor-shell:not(.is-mobile)
  .left-panel--tool-ai-text-image .text-image-page > .ti-head {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) 30px !important;
    align-items: center !important;
    gap: 10px !important;
    min-height: 0 !important;
    padding: 0 0 12px !important;
    border: 0 !important;
    border-bottom: 1px solid rgba(255,255,255,.07) !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
  }

  #fotor-root .editor-shell:not(.is-mobile)
  .left-panel--tool-ai-text-image .text-image-page > .ti-head h3,
  #fotor-root .editor-shell:not(.is-mobile)
  .left-panel--tool-ai-text-image .text-image-page > .ti-head p {
    display: none !important;
  }

  #fotor-root .editor-shell:not(.is-mobile)
  .left-panel--tool-ai-text-image .text-image-page > .ti-head::before {
    content: "Будет создано новое изображение. Исходное фото не изменится." !important;
    min-width: 0 !important;
    color: rgba(194,202,214,.72) !important;
    font-size: 11.5px !important;
    font-weight: 500 !important;
    line-height: 1.4 !important;
  }

  html[lang^="en"] #fotor-root .editor-shell:not(.is-mobile)
  .left-panel--tool-ai-text-image .text-image-page > .ti-head::before {
    content: "A new image will be created. Your source photo will not be changed." !important;
  }

  html[lang^="uk"] #fotor-root .editor-shell:not(.is-mobile)
  .left-panel--tool-ai-text-image .text-image-page > .ti-head::before {
    content: "Буде створено нове зображення. Початкове фото не зміниться." !important;
  }

  #fotor-root .editor-shell:not(.is-mobile)
  .left-panel--tool-ai-text-image .text-image-page > .ti-head .ti-help-btn {
    width: 30px !important;
    min-width: 30px !important;
    height: 30px !important;
    min-height: 30px !important;
    padding: 0 !important;
    border-radius: 9px !important;
  }

  /* Mode is one compact segmented control, followed by inline guidance. */
  #fotor-root .editor-shell:not(.is-mobile)
  .left-panel--tool-ai-text-image .text-image-page > .ti-mode-tabs {
    gap: 5px !important;
    padding: 3px !important;
    border-radius: 10px !important;
    box-shadow: none !important;
  }

  #fotor-root .editor-shell:not(.is-mobile)
  .left-panel--tool-ai-text-image .ti-mode-tab {
    min-height: 36px !important;
    border-radius: 8px !important;
  }

  #fotor-root .editor-shell:not(.is-mobile)
  .left-panel--tool-ai-text-image .text-image-page > .ti-mode-note {
    padding: 0 0 0 10px !important;
    gap: 3px !important;
    border: 0 !important;
    border-left: 2px solid rgba(67,142,241,.52) !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
  }

  #fotor-root .editor-shell:not(.is-mobile)
  .left-panel--tool-ai-text-image .ti-field--prompt textarea {
    min-height: 126px !important;
  }

  #fotor-root .editor-shell:not(.is-mobile)
  .left-panel--tool-ai-text-image .text-image-page > .ti-grid {
    margin-top: 2px !important;
    padding-top: 13px !important;
    border-top: 1px solid rgba(255,255,255,.07) !important;
  }

  #fotor-root .editor-shell:not(.is-mobile)
  .left-panel--tool-ai-text-image .text-image-page > .ti-generate {
    width: 100% !important;
    min-height: 44px !important;
  }
}
