/* Crafty mascot — capybara SVG assets (/static/images/crafty/) */
.crafty-img {
  display: block;
  object-fit: contain;
  flex-shrink: 0;
}

.crafty-icon--xs { width: 14px; height: 14px; }
.crafty-icon--sm { width: 18px; height: 18px; }
.crafty-icon--md { width: 22px; height: 22px; }
.crafty-icon--lg { width: 32px; height: 32px; }
.crafty-icon--xl { width: 40px; height: 40px; }

.crafty-bar-icon,
.crafty-prompt-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: linear-gradient(135deg, #6366f1 0%, #06b6d4 100%);
  padding: 3px;
  flex-shrink: 0;
}

.crafty-bar-icon .crafty-img,
.crafty-prompt-icon .crafty-img {
  width: 100%;
  height: 100%;
}

/* Pill trigger — workflow / ML / BI canvas */
.crafty-prompt {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: min(320px, calc(100% - 32px));
  background: var(--surface, #fff);
  border: 1px solid var(--border, #e4e6ea);
  border-radius: 999px;
  padding: 7px 14px 7px 10px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  font-size: 0.8rem;
  color: var(--text-muted, #6b7280);
  white-space: nowrap;
  user-select: none;
  transition: border-color 0.15s, box-shadow 0.15s, opacity 0.15s;
}

.crafty-prompt:hover {
  border-color: #c7d2fe;
  box-shadow: 0 8px 28px rgba(99, 102, 241, 0.18);
  color: var(--text, #374151);
}

.crafty-prompt.hidden {
  opacity: 0;
  pointer-events: none;
}

.crafty-prompt-label {
  flex: 1;
  min-width: 0;
  font-weight: 500;
}

.crafty-prompt-kbd {
  font-size: 10px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  background: var(--surface-2, #f3f4f6);
  border: 1px solid var(--border, #e4e6ea);
  border-radius: 4px;
  padding: 2px 6px;
  color: var(--text-muted, #9ca3af);
  flex-shrink: 0;
  line-height: 1.3;
}

.crafty-avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #6366f1 0%, #06b6d4 100%);
  padding: 5px;
  overflow: hidden;
  flex-shrink: 0;
}

.crafty-avatar .crafty-img {
  width: 100%;
  height: 100%;
}

.crafty-avatar--sm {
  width: 28px;
  height: 28px;
  padding: 3px;
}

.crafty-exchange-avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, #6366f1 0%, #06b6d4 100%);
  padding: 3px;
  flex-shrink: 0;
  font-size: 11px;
  font-weight: 700;
  color: #fff;
}

.crafty-exchange-avatar .crafty-img {
  width: 100%;
  height: 100%;
}

.crafty-exchange.user .crafty-exchange-avatar {
  background: var(--surface-3, #e5e7eb);
  color: var(--text, #374151);
  padding: 0;
}

.crafty-modal-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border, #e4e6ea);
  justify-content: space-between;
}

.crafty-modal-head-title {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.crafty-modal-head-title strong {
  font-size: 14px;
}

.crafty-fab .crafty-img {
  width: 26px;
  height: 26px;
}

/* PipeCraft logo marks — use outside Crafty-specific UI */
.brand-img {
  display: block;
  object-fit: contain;
  flex-shrink: 0;
}

.brand-head-icon {
  width: 18px;
  height: 18px;
  margin-right: 6px;
  vertical-align: middle;
  opacity: 0.85;
}

.brand-email-stamp {
  width: 18px;
  height: 18px;
  opacity: 0.65;
}

.brand-banner {
  width: 40px;
  height: 40px;
  opacity: 0.9;
}
