* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background: #f2f5f3;
  color: #14201b;
  line-height: 1.5;
}
.banner {
  background: #0b6b4f;
  color: #ffffff;
  border-bottom: 4px solid #c9a227;
  padding: 14px 16px;
  text-align: center;
  font-size: 15px;
}
.banner strong { color: #ffe9a8; }
.wrap { max-width: 820px; margin: 0 auto; padding: 20px 16px 32px; }
header { text-align: center; margin-bottom: 16px; }
h1 { margin: 0 0 4px; color: #0b6b4f; font-size: 32px; }
.subtitle { margin: 0; color: #43554c; }
.card {
  background: #ffffff;
  border: 1px solid #d8e0db;
  border-radius: 14px;
  padding: 16px;
  margin-bottom: 16px;
}
#messages {
  min-height: 280px;
  max-height: 520px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 14px;
}
.message { max-width: 88%; padding: 11px 13px; border-radius: 12px; }
.message.user { align-self: flex-end; background: #0b6b4f; color: #ffffff; }
.message.assistant { align-self: flex-start; background: #eef4f0; border: 1px solid #d8e0db; }
.message-label { font-size: 12px; font-weight: 700; margin-bottom: 3px; opacity: 0.85; }
.message-body { font-size: 16px; overflow-wrap: anywhere; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.chip {
  border: 1px solid #0b6b4f;
  background: #ffffff;
  color: #0b6b4f;
  border-radius: 999px;
  padding: 7px 12px;
  cursor: pointer;
  font-size: 14px;
}
.chip:hover, .chip:focus { background: #eef4f0; }
#chat-form { display: flex; gap: 10px; }
#question {
  flex: 1;
  min-width: 0;
  padding: 12px;
  font-size: 16px;
  border: 1px solid #9fb3aa;
  border-radius: 10px;
}
button.primary {
  background: #0b6b4f;
  color: #ffffff;
  border: 0;
  border-radius: 10px;
  padding: 12px 18px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
}
button.secondary {
  background: #ffffff;
  color: #0b6b4f;
  border: 1px solid #0b6b4f;
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 15px;
  cursor: pointer;
}
.actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.actions p { margin: 0; color: #43554c; font-size: 14px; }
#support-note { border-left: 5px solid #c9a227; background: #fff8e1; }
footer { text-align: center; color: #43554c; font-size: 14px; }
@media (max-width: 480px) {
  h1 { font-size: 26px; }
  .banner { font-size: 14px; }
  #chat-form { flex-direction: column; }
  button.primary { width: 100%; }
  .message { max-width: 96%; }
}
