/* Fotor Photo Editor 1.0.287 — compact desktop cards and flatter tool chrome. */

@media (min-width: 769px) {
  #fotor-root .editor-shell:not(.is-mobile) .left-panel .ai-hair-grid {
    gap: 10px !important;
  }

  /* Return names to a compact overlay: no large footer and no outlined pill. */
  #fotor-root .editor-shell:not(.is-mobile) .left-panel .ai-hair-tile.sg-desktop-preset-choice {
    position: relative !important;
    display: block !important;
    height: 202px !important;
    min-height: 202px !important;
    border-radius: 11px !important;
  }

  #fotor-root .editor-shell:not(.is-mobile) .left-panel .ai-hair-tile.sg-desktop-preset-choice .ai-hair-thumb {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
  }

  #fotor-root .editor-shell:not(.is-mobile) .left-panel .ai-hair-tile.sg-desktop-preset-choice .ai-hair-title,
  #fotor-root .editor-shell:not(.is-mobile) .left-panel .ai-hair-tile.sg-desktop-preset-choice.active .ai-hair-title,
  #fotor-root .editor-shell:not(.is-mobile) .left-panel .ai-hair-tile.sg-desktop-preset-choice[aria-pressed="true"] .ai-hair-title {
    position: absolute !important;
    inset: auto 6px 6px 6px !important;
    left: 6px !important;
    right: 6px !important;
    top: auto !important;
    bottom: 6px !important;
    transform: none !important;
    z-index: 6 !important;
    display: -webkit-box !important;
    box-sizing: border-box !important;
    width: auto !important;
    min-width: 0 !important;
    max-width: none !important;
    height: auto !important;
    min-height: 26px !important;
    max-height: 42px !important;
    margin: 0 !important;
    padding: 5px 7px !important;
    overflow: hidden !important;
    border: 0 !important;
    border-radius: 7px !important;
    background: rgba(8, 12, 18, .8) !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    color: rgba(248, 250, 253, .96) !important;
    font-size: 10.5px !important;
    font-weight: 760 !important;
    line-height: 1.15 !important;
    text-align: center !important;
    text-shadow: 0 1px 3px rgba(0, 0, 0, .72) !important;
    white-space: normal !important;
    overflow-wrap: anywhere !important;
    -webkit-box-orient: vertical !important;
    -webkit-line-clamp: 2 !important;
    line-clamp: 2 !important;
  }

  /* One panel surface is enough around gender and colour settings. */
  #fotor-root .editor-shell:not(.is-mobile) .left-panel .ai-hair-top {
    margin: 0 !important;
    padding: 0 0 12px !important;
    gap: 8px !important;
    border: 0 !important;
    border-bottom: 1px solid rgba(255, 255, 255, .055) !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }

  /* Reference/prompt actions stay recognisable as buttons, but use less space. */
  #fotor-root .editor-shell:not(.is-mobile) .left-panel .ai-hair-grid > .sg-action-card.sg-desktop-preset-choice {
    min-height: 86px !important;
    padding: 10px !important;
    gap: 9px !important;
    border-radius: 11px !important;
    background: #0f141a !important;
  }

  #fotor-root .editor-shell:not(.is-mobile) .left-panel .ai-hair-grid > .sg-action-card.sg-desktop-preset-choice .sg-action-card__icon {
    width: 36px !important;
    min-width: 36px !important;
    height: 36px !important;
    border-radius: 9px !important;
  }

  #fotor-root .editor-shell:not(.is-mobile) .left-panel .ai-hair-grid > .sg-action-card.sg-desktop-preset-choice .sg-action-card__title {
    font-size: 11.5px !important;
    line-height: 1.2 !important;
  }

  #fotor-root .editor-shell:not(.is-mobile) .left-panel .ai-hair-grid > .sg-action-card.sg-desktop-preset-choice .sg-action-card__desc {
    font-size: 10.5px !important;
    line-height: 1.3 !important;
  }

  /* Footer is a boundary, not another rounded card inside the panel. */
  #fotor-root .editor-shell:not(.is-mobile) .left-panel .ai-hair-footer {
    padding: 8px 12px 10px !important;
    border: 0 !important;
    border-top: 1px solid rgba(255, 255, 255, .06) !important;
    border-radius: 0 !important;
    background: #0b0f14 !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }
}

@media (min-width: 769px) and (max-height: 760px) {
  #fotor-root .editor-shell:not(.is-mobile) .left-panel .ai-hair-tile.sg-desktop-preset-choice {
    height: 184px !important;
    min-height: 184px !important;
  }
}
