
#ember-widget-root {
  max-width: 100%;
  margin: 24px 0;
  font-family: inherit;
}
#ember-widget-root *,
#ember-widget-root *::before,
#ember-widget-root *::after {
  box-sizing: border-box;
}
.ember-widget {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 18px 20px;
}
.ember-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}
.ember-title {
  font-size: 16px;
  font-weight: 600;
  color: #111;
  letter-spacing: -0.01em;
}
.ember-subtitle {
  font-size: 12px;
  color: #6b7280;
  font-weight: 400;
}
.ember-suggestions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.ember-chip {
  padding: 7px 13px;
  border: 1px solid #c7d2e2;
  background: #eff3f8;
  color: #1e3a5f;
  font-size: 13px;
  border-radius: 999px;
  cursor: pointer;
  font-family: inherit;
  line-height: 1.4;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.ember-chip:hover {
  background: #dde6f1;
  border-color: #9fb0c9;
}
.ember-chip:active {
  background: #c9d5e7;
}
.ember-messages {
  max-height: 420px;
  overflow-y: auto;
  margin-bottom: 14px;
  padding: 4px 2px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.ember-msg-row {
  display: flex !important;
  width: 100%;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.18s ease, transform 0.18s ease;
}
.ember-msg-row.ember-msg-in {
  opacity: 1;
  transform: translateY(0);
}
.ember-msg-row-user {
  justify-content: flex-end !important;
}
.ember-msg-row-assistant {
  justify-content: flex-start !important;
}
.ember-msg {
  padding: 11px 15px !important;
  border-radius: 14px !important;
  font-size: 14px !important;
  line-height: 1.55 !important;
  max-width: 78% !important;
  width: auto !important;
  white-space: pre-wrap;
  word-wrap: break-word;
  display: inline-block !important;
  margin: 0 !important;
}
.ember-msg-user {
  background: #1e3a5f !important;
  color: #fff !important;
  border-bottom-right-radius: 4px !important;
}
.ember-msg-assistant {
  background: #f3f4f6 !important;
  color: #111 !important;
  border-bottom-left-radius: 4px !important;
  max-width: 88% !important;
}
.ember-typing {
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  padding: 10px 14px !important;
}
.ember-thinking-label {
  font-size: 13px;
  color: #6b7280;
  font-style: italic;
}
.ember-dots {
  display: inline-flex;
  gap: 3px;
  align-items: center;
}
.ember-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #9ca3af;
  animation: ember-bounce 1.4s infinite ease-in-out;
  display: inline-block;
}
.ember-dot:nth-child(2) { animation-delay: 0.15s; }
.ember-dot:nth-child(3) { animation-delay: 0.3s; }
@keyframes ember-bounce {
  0%, 80%, 100% { opacity: 0.3; transform: translateY(0); }
  40% { opacity: 1; transform: translateY(-3px); }
}
.ember-handoff-note {
  font-size: 12px;
  color: #6b7280;
  text-align: center;
  margin: 4px auto 4px;
  padding: 6px 10px;
  background: #f9fafb;
  border-radius: 6px;
  max-width: 80%;
}
.ember-input-row {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  padding: 4px 4px 4px 14px;
  background: #fff;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.ember-input-row:focus-within {
  border-color: #1e3a5f;
  box-shadow: 0 0 0 3px rgba(30, 58, 95, 0.12);
}
.ember-input {
  flex: 1;
  border: none !important;
  outline: none !important;
  font-size: 14px !important;
  padding: 8px 0 !important;
  background: transparent !important;
  font-family: inherit !important;
  color: #111 !important;
  box-shadow: none !important;
}
.ember-send {
  background: #1e3a5f;
  border: none;
  color: #fff;
  width: 32px;
  height: 32px;
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.15s ease;
}
.ember-send:hover {
  background: #152b47;
}
.ember-send:active {
  background: #0e1f34;
}
@media (max-width: 640px) {
  .ember-widget { padding: 14px 16px; }
  .ember-chip { font-size: 12px; padding: 6px 11px; }
  .ember-msg { font-size: 13px !important; max-width: 85% !important; }
  .ember-msg-assistant { max-width: 92% !important; }
}
