@keyframes desktopAiSpinnerRotate {
  to {
    transform: rotate(360deg);
  }
}

@media (min-width: 481px) {
  .recipes-shell.desktop-ai-ready .recipes-title {
    display: none;
  }

  .desktop-recipe-source-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: stretch;
    width: 238px;
    height: 44px;
    flex: 0 0 238px;
  }

  .desktop-recipe-source-tab {
    min-width: 0;
    padding: 0 12px;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: var(--Text-primary, #000);
    font: 600 16px/44px Inter, sans-serif;
    white-space: nowrap;
    cursor: pointer;
  }

  .desktop-recipe-source-tab.is-active {
    background: #eeefea;
  }

  .desktop-recipe-source-tab:focus-visible,
  .desktop-ai-retry:focus-visible {
    outline: 2px solid var(--Text-primary, #000);
    outline-offset: 2px;
  }

  .desktop-ai-recipes-host {
    display: none;
    min-height: 420px;
  }

  .recipes-shell.desktop-ai-mode .recipes-grid-wrap:not(.desktop-ai-recipes-host),
  .recipes-shell.desktop-ai-mode .input-history {
    display: none !important;
  }

  .recipes-shell.desktop-ai-mode .desktop-ai-recipes-host {
    display: flex;
  }

  .recipes-shell.desktop-ai-mode .desktop-ai-selection-badge {
    display: none !important;
  }

  .desktop-ai-recipes-host[aria-busy="true"] {
    justify-content: center;
  }

  .desktop-ai-recipes-host .recipes-lazy-loader {
    min-height: 320px;
  }

  .desktop-ai-recipes-host .rcard-ai .rcard-img-wrap {
    display: none;
  }

  .desktop-ai-loader {
    flex-direction: column;
    gap: 18px;
  }

  .desktop-ai-loader .recipes-lazy-spinner {
    border-color: #E0E0E0;
    border-top-color: #999;
    animation: desktopAiSpinnerRotate 0.9s linear infinite;
  }

  .desktop-ai-loader-text {
    margin: 0;
    color: var(--Text-primary, #000);
    font: 500 16px/24px Inter, sans-serif;
    text-align: center;
  }

  .desktop-ai-error {
    min-height: 320px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 18px;
    font-family: Inter, sans-serif;
    text-align: center;
  }

  .desktop-ai-error p {
    margin: 0;
    color: var(--Text-primary, #000);
    font-size: 16px;
    line-height: 24px;
  }

  .desktop-ai-retry {
    min-width: 112px;
    height: 44px;
    padding: 0 18px;
    border: 0;
    border-radius: 10px;
    background: #eeefea;
    color: var(--Text-primary, #000);
    font: 600 16px/44px Inter, sans-serif;
    cursor: pointer;
  }

  @media (prefers-reduced-motion: reduce) {
    .desktop-ai-recipes-host .recipes-lazy-spinner {
      animation-duration: 1.6s;
    }
  }
}
