/* AL Shop AI v3.7: six cards max, fixed-height desktop panels, independent scroll */
@media (min-width: 992px) {
  #alpf-ai-root .alshop-ai-workspace {
    height: clamp(480px, calc(100dvh - 210px), 740px) !important;
    min-height: 0 !important;
    max-height: none !important;
    align-items: stretch !important;
  }
  #alpf-ai-root .alshop-ai-chat-panel,
  #alpf-ai-root .alshop-ai-results-panel {
    height: 100% !important;
    min-height: 0 !important;
    max-height: 100% !important;
    overflow: hidden !important;
  }
  #alpf-ai-root .alshop-ai-results-panel {
    display: flex !important;
    flex-direction: column !important;
  }
  #alpf-ai-root #alpf-ai-results {
    display: grid !important;
    flex: 1 1 0 !important;
    min-height: 0 !important;
    height: auto !important;
    max-height: none !important;
    overflow-y: scroll !important;
    overflow-x: hidden !important;
    overscroll-behavior-y: contain;
    scrollbar-width: thin;
    scrollbar-color: #b4bfce #f1f3f5;
    align-content: start !important;
  }
  #alpf-ai-root #alpf-ai-results::-webkit-scrollbar { width: 9px; }
  #alpf-ai-root #alpf-ai-results::-webkit-scrollbar-thumb { background: #b4bfce; border-radius: 8px; }
  #alpf-ai-root #alpf-ai-results::-webkit-scrollbar-track { background: #f1f3f5; }
  #alpf-ai-root #alpf-ai-messages { min-height: 0 !important; overflow-y: auto !important; }
}
#alpf-ai-root .alshop-ai-six-note {display:block;font-size:10px;font-weight:600;color:#7c8898;margin-top:4px;}
@media (max-width: 991.98px) {
  #alpf-ai-root #alpf-ai-results-mobile:not(:empty) {
    max-height: min(46dvh, 440px) !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    overscroll-behavior-y: contain !important;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
  }
}
