/* ═══ SETUP ASSISTANTS ═══════════════════════════════════════════════════════ */
/* Profile launcher cards + chat wrapper for module setup assistants.          */

.sa-wrapper {
  max-width: 700px;
  margin: 0 auto;
  padding: 0 16px;
}

/* ── Header ──────────────────────────────────────────────────────────────── */

.sa-header {
  padding: 24px 0 20px;
}

.sa-title {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--text, #1a1f36);
}

.sa-subtitle {
  margin: 4px 0 0;
  font-size: 0.9rem;
  color: var(--text-secondary, #6b7280);
}

/* ── Profile cards ───────────────────────────────────────────────────────── */

.sa-profiles {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.sa-profiles.hidden,
.sa-chat.hidden {
  display: none;
}

.sa-loading,
.sa-empty {
  padding: 24px 0;
  text-align: center;
  color: var(--text-secondary, #6b7280);
  font-size: 0.9rem;
}

.sa-card {
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
  padding: 16px 20px;
  background: var(--surface, #fff);
  border: 1px solid var(--border, #e2e6ed);
  border-radius: 12px;
  cursor: pointer;
  text-align: left;
  transition: border-color 0.15s, box-shadow 0.15s;
  font-family: inherit;
  font-size: inherit;
}

.sa-card:hover {
  border-color: var(--blue, #3764FF);
  box-shadow: 0 2px 8px rgba(55, 100, 255, 0.10);
}

.sa-card-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--blue-bg, #eef2ff);
  border-radius: 10px;
  color: var(--blue, #3764FF);
}

.sa-card-body {
  flex: 1;
  min-width: 0;
}

.sa-card-title {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text, #1a1f36);
}

.sa-card-desc {
  margin: 2px 0 0;
  font-size: 0.84rem;
  color: var(--text-secondary, #6b7280);
  line-height: 1.4;
}

.sa-card-arrow {
  flex-shrink: 0;
  font-size: 1.2rem;
  color: var(--text-secondary, #6b7280);
  transition: transform 0.15s;
}

.sa-card:hover .sa-card-arrow {
  transform: translateX(3px);
  color: var(--blue, #3764FF);
}

/* ── Chat view ───────────────────────────────────────────────────────────── */

.sa-chat {
  display: flex;
  flex-direction: column;
  height: calc(100vh - 140px);
  min-height: 400px;
}

.sa-chat-topbar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 0 14px;
  border-bottom: 1px solid var(--border, #e2e6ed);
}

.sa-back-btn {
  background: none;
  border: 1px solid var(--border, #e2e6ed);
  border-radius: 8px;
  padding: 6px 14px;
  font-size: 0.84rem;
  color: var(--text-secondary, #6b7280);
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s;
  font-family: inherit;
}

.sa-back-btn:hover {
  border-color: var(--blue, #3764FF);
  color: var(--blue, #3764FF);
}

.sa-chat-title-text {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text, #1a1f36);
}

/* Re-use the onboarding chat message styles from onboarding_chat.css */

/* ── Responsive ──────────────────────────────────────────────────────────── */

@media (max-width: 600px) {
  .sa-wrapper {
    padding: 0 8px;
  }
  .sa-card {
    padding: 12px 14px;
    gap: 12px;
  }
  .sa-card-icon {
    width: 36px;
    height: 36px;
  }
}
