.heyace-chat-root { font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
.heyace-floating { position: fixed; right: 24px; bottom: 24px; z-index: 9999; }
.heyace-chat-trigger { width: 58px; height: 58px; border: 0; border-radius: 999px; box-shadow: 0 12px 30px rgba(0,0,0,.20); background: #111827; color: #fff; font-size: 24px; cursor: pointer; }
.heyace-chat-window { width: min(380px, calc(100vw - 32px)); height: 540px; max-height: calc(100vh - 48px); display: flex; flex-direction: column; background: #fff; color: #111827; border: 1px solid #e5e7eb; border-radius: 18px; overflow: hidden; box-shadow: 0 20px 60px rgba(0,0,0,.18); }
.heyace-embedded .heyace-chat-window { width: 100%; max-width: 760px; height: 560px; box-shadow: none; }
.heyace-floating .heyace-chat-shell[data-open="false"] .heyace-chat-window { display: none; }
.heyace-floating .heyace-chat-shell[data-open="true"] .heyace-chat-trigger { display: none; }
.heyace-chat-window header { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; background: #111827; color: #fff; }
.heyace-chat-close { border: 0; background: transparent; color: inherit; font-size: 24px; cursor: pointer; }
.heyace-embedded .heyace-chat-close { display: none; }
.heyace-chat-messages { flex: 1; padding: 16px; overflow-y: auto; background: #f9fafb; display: flex; flex-direction: column; gap: 10px; }
.heyace-msg { max-width: 82%; padding: 10px 12px; border-radius: 14px; line-height: 1.4; white-space: pre-wrap; }
.heyace-msg-user { align-self: flex-end; background: #111827; color: #fff; border-bottom-right-radius: 4px; }
.heyace-msg-assistant { align-self: flex-start; background: #fff; color: #111827; border: 1px solid #e5e7eb; border-bottom-left-radius: 4px; }
.heyace-chat-form { display: flex; gap: 8px; padding: 12px; border-top: 1px solid #e5e7eb; background: #fff; }
.heyace-chat-form input { flex: 1; border: 1px solid #d1d5db; border-radius: 999px; padding: 10px 14px; font-size: 14px; }
.heyace-chat-form button { border: 0; border-radius: 999px; padding: 10px 14px; background: #111827; color: #fff; cursor: pointer; }
.heyace-chat-window small { padding: 0 14px 12px; color: #6b7280; font-size: 11px; }
