/* HOAI chat styles (v0.7) */
.hoai-chat-root{
  max-width: 780px;
  margin: 16px auto;
  padding: 16px;
  border: 1px solid #e9eaee;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.03);
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
}
.hoai-chat-header{
  font-weight: 700;
  font-size: 18px;
  color: #111;
  margin-bottom: 8px;
}
.hoai-chat-messages{
  min-height: 120px;
  max-height: 520px;
  overflow-y: auto;
  padding: 6px 0;
  border-bottom: 1px solid #f0f1f4;
}
.hoai-msg{ display: flex; margin: 8px 0; }
.hoai-msg.me{ justify-content: flex-end; }
.hoai-msg .bubble{
  max-width: 86%;
  padding: 10px 12px;
  border-radius: 12px;
  line-height: 1.35;
  font-size: 15px;
  white-space: pre-wrap;
}
.hoai-msg.me .bubble{
  background: #111;
  color: #fff;
  border-bottom-right-radius: 4px;
}
.hoai-msg.bot .bubble{
  background: #f6f7fb;
  color: #111;
  border-bottom-left-radius: 4px;
}
.hoai-chat-composer{
  display: flex;
  gap: 8px;
  padding-top: 10px;
}
.hoai-chat-input{
  flex: 1;
  padding: 10px 12px;
  border: 1px solid #e0e1e6;
  border-radius: 10px;
}
.hoai-chat-send{
  padding: 10px 14px;
  border: 1px solid #111;
  background: #111;
  color: #fff;
  border-radius: 10px;
  cursor: pointer;
}
.hoai-chat-status{
  margin-top: 6px;
  font-size: 12px;
  color: #666;
}
.hoai-contact{
  margin-top: 10px;
  padding: 10px;
  border: 1px dashed #c8cbd3;
  border-radius: 10px;
  background: #fcfcfe;
}
.hoai-contact .label{ font-weight: 600; margin-bottom: 6px; }
.hoai-contact .contact-input{
  width: 100%; padding: 10px 12px; border: 1px solid #e0e1e6; border-radius: 10px; margin-bottom: 6px;
}
.hoai-contact .contact-submit{
  padding: 8px 12px; border-radius: 10px; border: 1px solid #111; background: #111; color: #fff; cursor: pointer;
}
.hoai-contact .email-opt{
  display: inline-flex; align-items: center; gap: 8px; margin: 4px 0 10px 0; font-size: 14px;
}
.hoai-hits{ margin-top: 12px; }
.hoai-hits-title{ font-weight: 700; margin-bottom: 6px; }
.hoai-hit-list{ list-style: none; padding: 0; margin: 0; }
.hoai-hit{ margin: 6px 0; }
.hoai-hit .hit-title{ text-decoration: none; color: #0a58ca; }
.hoai-hit .hit-metric{ color: #444; }
.hoai-cta{
  display: inline-block; margin-top: 10px; padding: 8px 12px; border: 1px solid #111;
  border-radius: 10px; text-decoration: none; color: #111;
}
