/* District-AI assistant — composer without the decorative tools, new icons, links, note. */

/* composer: one row, field + send (the theme reserved 156–260px for the old tools row) */
.chat-input {
  min-height: 0 !important;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 14px 14px 22px;
}
.chat-input .chat-field {
  flex: 1 1 auto;
  width: auto;
  margin: 0;
  min-width: 0;
}
.chat-input .chat-send {
  position: static;
  flex: none;
  width: 58px;
  height: 58px;
  transition: transform 200ms ease, filter 200ms ease;
}
.chat-input .chat-send:hover { transform: translateY(-2px); filter: brightness(1.08); }
.chat-input .chat-field:focus,
.chat-input .chat-field:focus-visible { outline: none; box-shadow: none; }
.chat-input { transition: box-shadow 200ms ease; }
.chat-input:focus-within { box-shadow: inset 0 0 0 1px rgba(239, 118, 36, 0.55); }
.chat-tools { display: none !important; }

/* icons */
.chat-launch svg.dai-chat-icon { width: 58%; height: 58%; overflow: visible; }
.chat-send svg.dai-send-icon { width: 50%; height: 50%; stroke-width: 3.6; }
.dai-chat-icon .dai-spark {
  fill: currentColor;
  stroke: none;
  transform-origin: 24px 22.5px;
  animation: dai-spark 3.6s ease-in-out infinite;
}
.dai-chat-icon .dai-spark-dot { fill: currentColor; stroke: none; animation: dai-spark-dot 3.6s ease-in-out infinite; }
@keyframes dai-spark {
  0%, 70%, 100% { transform: scale(1) rotate(0deg); }
  80% { transform: scale(1.22) rotate(45deg); }
  90% { transform: scale(0.92) rotate(90deg); }
}
@keyframes dai-spark-dot {
  0%, 72%, 100% { opacity: 0.35; }
  84% { opacity: 1; }
}

/* links and messages */
.chat-messages .message { overflow-wrap: anywhere; }
.chat-messages .bot-message a.dai-chat-link {
  color: #fff;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
.chat-messages .bot-message a.dai-chat-link:hover { text-decoration-thickness: 2px; }

.dai-chat-note {
  margin: -6px 18px 12px;
  color: rgba(170, 170, 172, 0.7);
  font-size: 13px;
  line-height: 1.3;
}

@media (max-width: 760px) {
  .chat-input { padding: 10px 10px 10px 16px; }
  .chat-input .chat-send { width: 48px; height: 48px; }
  .dai-chat-note { font-size: 12px; margin: -4px 12px 10px; }
}

@media (prefers-reduced-motion: reduce) {
  .dai-chat-icon .dai-spark, .dai-chat-icon .dai-spark-dot { animation: none; }
}
