.recio-chat {
  --recio-accent: #2563eb;
  --recio-border: #e5e7eb;
  --recio-muted: #6b7280;
  background: #fff;
  border: 1px solid var(--recio-border);
  border-radius: 16px;
  box-shadow: 0 12px 32px rgba(15, 23, 42, .08);
  color: #111827;
  font: 15px/1.45 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  margin: 1rem auto;
  max-width: 720px;
  overflow: hidden;
}

.recio-chat__header { align-items: center; border-bottom: 1px solid var(--recio-border); display: flex; gap: 10px; padding: 16px 20px; }
.recio-chat__header h2 { font: inherit; font-size: 18px; font-weight: 700; margin: 0; }
.recio-chat__status { background: #22c55e; border-radius: 50%; box-shadow: 0 0 0 4px #dcfce7; height: 9px; width: 9px; }
.recio-chat__messages { height: 420px; overflow-y: auto; padding: 10px 20px; scroll-behavior: smooth; }
.recio-chat__loading { color: var(--recio-muted); text-align: center; }
.recio-chat__message { border-bottom: 1px solid #f3f4f6; padding: 11px 0; }
.recio-chat__message:last-child { border-bottom: 0; }
.recio-chat__message p { margin: 3px 0 0; overflow-wrap: anywhere; }
.recio-chat__meta { align-items: baseline; display: flex; gap: 8px; }
.recio-chat__meta time { color: var(--recio-muted); font-size: 12px; }
.recio-chat__notice { color: var(--recio-muted); font-size: 13px; margin: 0; min-height: 20px; padding: 0 20px; }
.recio-chat__notice.is-error { color: #b91c1c; }
.recio-chat__form { align-items: end; background: #f9fafb; border-top: 1px solid var(--recio-border); display: flex; gap: 10px; padding: 14px; }
.recio-chat__field { display: grid; flex: 0 1 160px; font-size: 12px; gap: 4px; }
.recio-chat__field--message { flex: 1 1 auto; }
.recio-chat input { background: #fff; border: 1px solid #d1d5db; border-radius: 9px; box-sizing: border-box; color: #111827; font: inherit; min-height: 42px; padding: 9px 11px; width: 100%; }
.recio-chat input:focus { border-color: var(--recio-accent); box-shadow: 0 0 0 3px rgba(37, 99, 235, .15); outline: 0; }
.recio-chat__send { background: var(--recio-accent); border: 0; border-radius: 9px; color: #fff; cursor: pointer; font: inherit; font-weight: 700; min-height: 42px; padding: 9px 17px; }
.recio-chat__send:disabled { cursor: wait; opacity: .6; }

@media (max-width: 560px) {
  .recio-chat__messages { height: 55vh; }
  .recio-chat__form { align-items: stretch; flex-wrap: wrap; }
  .recio-chat__field { flex: 1 1 100%; }
  .recio-chat__send { width: 100%; }
}
