/* Inline AI consultant shell for /connectors/ */

.conn-consultant-mount {
  margin: clamp(8px, 1.5vw, 14px) 0 clamp(24px, 3vw, 36px);
}

#catalog .section-head.section-head--stack {
  margin-bottom: clamp(18px, 2.5vw, 36px);
}

#catalog .conn-consultant-mount {
  margin-top: clamp(4px, 0.6vw, 6px);
}

#marketing-tasks .section-head.section-head--stack {
  margin-bottom: clamp(12px, 1.5vw, 24px);
}

#marketing-tasks .conn-consultant-mount {
  margin-top: clamp(4px, 0.6vw, 6px);
}

.cc-root.cc-root--embed {
  position: static;
  right: auto;
  bottom: auto;
  z-index: auto;
  width: 100%;
  max-width: none;
  font: 14px/1.45 Inter, system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  color: var(--cc-ink);
}

.cc-root--embed .cc-embed-shell {
  border: 1px solid var(--cc-border);
  border-radius: 20px;
  background: var(--cc-white);
  box-shadow: 0 10px 40px rgba(15, 14, 12, 0.06);
  overflow: hidden;
}

.cc-root--embed .cc-embed-header {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 16px 18px;
  border: 0;
  background: var(--cc-sand);
  color: var(--cc-ink);
  cursor: pointer;
  text-align: left;
  font: inherit;
}

.cc-root--embed .cc-embed-header:hover,
.cc-root--embed .cc-embed-header:focus-visible {
  background: #e4ded3;
}

.cc-root--embed .cc-embed-status {
  position: relative;
  flex: none;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #3ecf8e;
  box-shadow: 0 0 0 0 rgba(62, 207, 142, 0.45);
  animation: cc-online-pulse 2.4s ease-out infinite;
}

.cc-root--embed .cc-embed-header-copy {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.cc-root--embed .cc-embed-meta {
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--cc-mute);
  font-weight: 600;
}

.cc-root--embed .cc-embed-prompt {
  font-size: clamp(15px, 2vw, 18px);
  line-height: 1.35;
  font-weight: 600;
  color: var(--cc-ink);
}

.cc-root--embed .cc-embed-prompt-accent {
  font-style: italic;
  color: var(--cc-accent);
  font-weight: 700;
}

.cc-root--embed .cc-embed-toggle {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--cc-ink-2);
}

.cc-root--embed .cc-embed-toggle-icon {
  display: inline-block;
  transition: transform 0.2s ease;
  font-size: 18px;
  line-height: 1;
}

.cc-root--embed.cc-embed--expanded .cc-embed-toggle-icon {
  transform: rotate(90deg);
}

.cc-root--embed .cc-embed-panel {
  position: static;
  width: 100%;
  max-width: none;
  max-height: none;
  height: auto;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  background: var(--cc-white);
}

.cc-root--embed .cc-embed-body {
  padding: 16px 18px 8px;
  min-height: 0;
}

.cc-root--embed .cc-embed-toolbar {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 8px;
}

.cc-root--embed .cc-new-dialog {
  font-size: 12px;
}

.cc-root--embed .cc-messages {
  min-height: 72px;
  max-height: min(320px, 42vh);
  padding: 0;
  margin-bottom: 10px;
}

.cc-root--embed .cc-message-assistant {
  background: #f3f0ea;
  border-color: rgba(20, 20, 20, 0.06);
}

.cc-root--embed .cc-starters {
  padding: 0 0 12px;
}

.cc-root--embed .cc-starter {
  font-size: 12px;
  padding: 7px 12px;
}

.cc-root--embed .cc-embed-footer {
  padding: 0 18px 16px;
  border-top: 0;
  background: transparent;
}

.cc-root--embed .cc-embed-composer {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: end;
  padding: 0;
  background: transparent;
  border: 0;
}

.cc-root--embed .cc-input {
  min-height: 52px;
  padding: 14px 16px;
  border-radius: 16px;
  background: #f7f4ef;
  border: 1px solid rgba(20, 20, 20, 0.08);
  font-size: 14px;
}

.cc-root--embed .cc-input:focus {
  border-color: rgba(232, 71, 43, 0.35);
  box-shadow: 0 0 0 3px rgba(232, 71, 43, 0.12);
}

.cc-root--embed .cc-embed-send {
  width: 48px;
  min-width: 48px;
  max-width: 48px;
  height: 48px;
  min-height: 48px;
  border-radius: 50%;
  aspect-ratio: 1;
  flex-shrink: 0;
  padding: 0;
  border: 0;
  background: var(--cc-accent);
  color: var(--cc-white);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(232, 71, 43, 0.38);
  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease,
    background 0.15s ease;
}

.cc-root--embed .cc-embed-send:hover,
.cc-root--embed .cc-embed-send:focus-visible {
  background: var(--cc-accent-dark);
  transform: translateY(-1px);
  box-shadow: 0 10px 28px rgba(232, 71, 43, 0.42);
}

.cc-root--embed .cc-embed-send:active {
  transform: translateY(0);
  background: var(--cc-accent-dark);
  box-shadow: 0 6px 18px rgba(232, 71, 43, 0.38);
}

.cc-root--embed .cc-embed-send:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.cc-root--embed .cc-embed-note {
  margin: 10px 0 0;
  font-size: 12px;
  line-height: 1.45;
  color: var(--cc-mute);
}

.cc-root--embed .cc-embed-note-link {
  color: var(--cc-accent);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.cc-root--embed .cc-fallback {
  display: none;
}

.cc-root--embed .cc-lead-sheet {
  margin-bottom: 10px;
}

@media (max-width: 720px) {
  .cc-root--embed .cc-embed-header {
    padding: 14px 14px;
    gap: 10px;
  }

  .cc-root--embed .cc-embed-prompt {
    font-size: 15px;
  }

  .cc-root--embed .cc-embed-body,
  .cc-root--embed .cc-embed-footer {
    padding-left: 14px;
    padding-right: 14px;
  }

  .cc-root--embed .cc-starters {
    max-height: none;
    overflow: visible;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cc-root--embed .cc-embed-status {
    animation: none;
  }

  .cc-root--embed .cc-embed-toggle-icon {
    transition: none;
  }
}
