.inner-chat {
  display: flex;
  flex-direction: column;
  height: min(560px, 70vh);
  background: var(--bg-card, #fff);
  border: 1px solid var(--border-subtle, rgba(15, 23, 42, 0.1));
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(15, 23, 42, 0.08);
}
.inner-chat-head {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border-subtle, rgba(15, 23, 42, 0.08));
  background: var(--bg-elevated, #f8fafc);
}
.inner-chat-head strong { display: block; font-size: 0.95rem; color: var(--text, #0f172a); }
.inner-chat-sub { display: block; font-size: 0.75rem; color: var(--muted, #64748b); margin-top: 2px; }
.inner-chat-log {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: var(--bg, #fff);
}
.inner-chat-msg { display: flex; }
.inner-chat-msg--user { justify-content: flex-end; }
.inner-chat-msg--ai { justify-content: flex-start; }
.inner-chat-bubble {
  max-width: 85%;
  padding: 10px 14px;
  border-radius: 14px;
  font-size: 0.875rem;
  line-height: 1.5;
}
.inner-chat-msg--user .inner-chat-bubble {
  background: linear-gradient(135deg, #F97316, #ea580c);
  color: #fff;
  border-bottom-right-radius: 4px;
}
.inner-chat-msg--ai .inner-chat-bubble {
  background: var(--bg-elevated, #f1f5f9);
  color: var(--text, #0f172a);
  border-bottom-left-radius: 4px;
}
.inner-chat-bubble--typing { opacity: 0.7; font-style: italic; }
.inner-chat-meta {
  font-size: 0.7rem;
  color: var(--muted, #64748b);
  text-align: center;
  padding: 0 8px;
}
.inner-chat-form {
  display: flex;
  gap: 8px;
  padding: 12px;
  border-top: 1px solid var(--border-subtle, rgba(15, 23, 42, 0.08));
  background: var(--bg-elevated, #f8fafc);
}
.inner-chat-input {
  flex: 1;
  border: 1px solid var(--border-subtle, rgba(15, 23, 42, 0.12));
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 0.875rem;
  background: var(--bg, #fff);
  color: var(--text, #0f172a);
}
.inner-chat-input:focus {
  outline: none;
  border-color: #F97316;
  box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.15);
}
.inner-chat-send {
  border: none;
  border-radius: 10px;
  padding: 10px 16px;
  font-weight: 600;
  font-size: 0.8125rem;
  cursor: pointer;
  background: linear-gradient(135deg, #F97316, #ea580c);
  color: #fff;
}
.inner-chat-send:disabled { opacity: 0.6; cursor: not-allowed; }
