/* 1.0.325 — desktop Background: three clear modes on one flat surface. */
@media (min-width: 769px) {
  #fotor-root .editor-shell:not(.is-mobile)
  .left-panel--tool-ai-background .ai-hair-top > .ai-hair-tabs {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 0 !important;
    width: 100% !important;
    max-width: none !important;
  }

  #fotor-root .editor-shell:not(.is-mobile)
  .left-panel--tool-ai-background .ai-hair-top > .ai-hair-tabs > .ai-hair-tab {
    justify-content: center !important;
    min-width: 0 !important;
    padding-right: 6px !important;
    padding-left: 6px !important;
    white-space: nowrap !important;
  }

  /* Lighting is a secondary option, not another card. */
  #fotor-root .editor-shell:not(.is-mobile)
  .left-panel--tool-ai-background .ai-bg-toggle {
    display: flex !important;
    align-items: center !important;
    gap: 9px !important;
    min-height: 38px !important;
    margin: 0 !important;
    padding: 9px 2px !important;
    border: 0 !important;
    border-bottom: 1px solid rgba(255,255,255,.055) !important;
    border-radius: 0 !important;
    background: transparent !important;
  }

  #fotor-root .editor-shell:not(.is-mobile)
  .left-panel--tool-ai-background .ai-bg-toggle > input {
    width: 15px !important;
    height: 15px !important;
    margin: 0 !important;
    accent-color: #3f8cf4 !important;
  }

  #fotor-root .editor-shell:not(.is-mobile)
  .left-panel--tool-ai-background .ai-bg-toggle > span {
    color: rgba(222,228,238,.82) !important;
    font-size: 11px !important;
    font-weight: 620 !important;
    line-height: 1.3 !important;
  }

  /* Prompt and reference modes use the top section itself. The preset scroller
     is empty in these modes and must not reserve a large blank area. */
  #fotor-root .editor-shell:not(.is-mobile)
  .left-panel--tool-ai-background .ai-hair-page:has(.ai-bg-help) > .ai-hair-scroll,
  #fotor-root .editor-shell:not(.is-mobile)
  .left-panel--tool-ai-background .ai-hair-page:has(.ai-hair-top > .ai-refs) > .ai-hair-scroll {
    display: none !important;
  }

  #fotor-root .editor-shell:not(.is-mobile)
  .left-panel--tool-ai-background .ai-bg-help {
    margin: 10px 0 0 !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
  }

  #fotor-root .editor-shell:not(.is-mobile)
  .left-panel--tool-ai-background .ai-bg-help-title {
    margin-bottom: 4px !important;
    color: rgba(236,241,248,.92) !important;
    font-size: 11.5px !important;
    font-weight: 760 !important;
  }

  #fotor-root .editor-shell:not(.is-mobile)
  .left-panel--tool-ai-background .ai-bg-help-text {
    color: rgba(164,174,189,.78) !important;
    font-size: 10px !important;
    line-height: 1.4 !important;
  }

  #fotor-root .editor-shell:not(.is-mobile)
  .left-panel--tool-ai-background .ai-bg-textarea {
    width: 100% !important;
    min-height: 104px !important;
    margin-top: 9px !important;
    padding: 10px 11px !important;
    box-sizing: border-box !important;
    border-radius: 10px !important;
    resize: vertical !important;
  }

  /* Reference upload is one compact row with a real selected-image preview. */
  #fotor-root .editor-shell:not(.is-mobile)
  .left-panel--tool-ai-background .ai-hair-top > .ai-refs {
    margin: 9px 0 0 !important;
    padding: 10px 0 0 !important;
    border-width: 1px 0 0 !important;
    border-style: solid !important;
    border-color: rgba(255,255,255,.055) !important;
    border-radius: 0 !important;
    background: transparent !important;
  }

  #fotor-root .editor-shell:not(.is-mobile)
  .left-panel--tool-ai-background .ai-refs-row {
    min-height: 36px !important;
  }

  #fotor-root .editor-shell:not(.is-mobile)
  .left-panel--tool-ai-background .ai-refs-picked {
    justify-content: flex-start !important;
    margin-top: 8px !important;
  }

  #fotor-root .editor-shell:not(.is-mobile)
  .left-panel--tool-ai-background .ai-refs-thumb {
    width: 68px !important;
    height: 52px !important;
    border-radius: 9px !important;
  }
}
