/* R14.1.A — Suggestion carousel at top of chat panel. */

.suggestion-carousel {
  padding: 12px 14px 10px;
  background: linear-gradient(180deg, rgba(192, 132, 252, 0.06), rgba(250, 204, 21, 0.04));
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  transition: max-height 260ms ease, opacity 200ms ease, padding 200ms ease;
  overflow: hidden;
  max-height: 220px;
}
.suggestion-carousel.sc-collapsed {
  max-height: 0;
  opacity: 0;
  padding-top: 0;
  padding-bottom: 0;
  border-bottom-color: transparent;
}

.sc-header { margin-bottom: 6px; }
.sc-title { font-weight: 700; font-size: 0.88rem; color: #111827; letter-spacing: 0.01em; }
.sc-subtitle { font-size: 0.76rem; color: #6b7280; margin-top: 1px; }

.sc-rail {
  display: flex;
  align-items: stretch;
  gap: 6px;
}
.sc-arrow {
  flex: 0 0 30px;
  min-height: 96px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  color: #4b5563;
  font-size: 0.9rem;
  cursor: pointer;
  transition: background 100ms ease, transform 100ms ease, color 100ms ease;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}
.sc-arrow:hover { background: #f9fafb; color: #111827; transform: translateY(-1px); }
.sc-arrow:focus-visible { outline: 2px solid #f97316; outline-offset: 2px; }

.sc-track {
  flex: 1 1 auto;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  padding: 2px;
  -ms-overflow-style: none;
  scrollbar-width: thin;
}
.sc-track::-webkit-scrollbar { height: 6px; }
.sc-track::-webkit-scrollbar-thumb { background: rgba(0, 0, 0, 0.12); border-radius: 9999px; }

.sc-card {
  flex: 0 0 260px;
  scroll-snap-align: center;
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 10px;
  align-items: flex-start;
  padding: 10px 12px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid #e5e7eb;
  text-align: left;
  cursor: pointer;
  font: inherit;
  color: inherit;
  transition: transform 120ms ease, box-shadow 120ms ease, border-color 120ms ease;
  min-height: 96px;
}
.sc-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(192, 132, 252, 0.22);
  border-color: #c4b5fd;
}
.sc-card:focus-visible { outline: 2px solid #f97316; outline-offset: 2px; }
.sc-card-active {
  border-color: #c4b5fd;
  box-shadow: 0 0 0 2px rgba(192, 132, 252, 0.22);
}

.sc-card-icon {
  font-size: 1.5rem;
  line-height: 1;
  text-align: center;
  padding-top: 2px;
}
.sc-card-body {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.sc-card-title {
  font-weight: 600;
  font-size: 0.86rem;
  color: #111827;
  line-height: 1.2;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.sc-card-tag {
  display: inline-block;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #7c3aed;
  background: #ede9fe;
  padding: 1px 6px;
  border-radius: 9999px;
  width: fit-content;
  margin-top: 2px;
}
.sc-card-summary {
  font-size: 0.76rem;
  color: #6b7280;
  line-height: 1.3;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

@media (max-width: 820px) {
  .sc-card { flex-basis: 220px; min-height: 88px; }
  .sc-arrow { min-height: 88px; }
  .suggestion-carousel { max-height: 200px; }
}
