
/* Monica AI chat widget */
.monica-fab {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9998;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: none;
  background: linear-gradient(135deg, #2D4A35, #1a2e20);
  color: #F5F0E8;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1rem;
  cursor: pointer;
  box-shadow: 0 8px 32px rgba(0,0,0,0.2);
}
.monica-panel {
  position: fixed;
  bottom: 92px;
  right: 24px;
  z-index: 9999;
  width: min(380px, calc(100vw - 32px));
  height: 520px;
  background: #F5F0E8;
  border: 1px solid rgba(45,74,53,0.15);
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.18);
  display: none;
  flex-direction: column;
  overflow: hidden;
}
.monica-panel.open { display: flex; }
.monica-panel-head {
  padding: 14px 16px;
  background: #2D4A35;
  color: #F5F0E8;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.monica-panel-head strong { font-family: 'Cormorant Garamond', serif; font-size: 1.1rem; }
.monica-panel-close { background: transparent; border: none; color: inherit; font-size: 1.4rem; cursor: pointer; }
.monica-chat-log {
  flex: 1;
  overflow: auto;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.monica-msg {
  max-width: 88%;
  padding: 10px 12px;
  border-radius: 14px;
  font-size: 0.88rem;
  line-height: 1.45;
  white-space: pre-wrap;
}
.monica-msg-user { align-self: flex-end; background: #2D4A35; color: #F5F0E8; }
.monica-msg-bot { align-self: flex-start; background: rgba(45,74,53,0.1); }
.monica-msg-bot.note, .monica-msg-bot.thinking { opacity: 0.7; font-style: italic; font-size: 0.8rem; }
.monica-msg-bot.error { background: rgba(180,40,40,0.12); }
.monica-suggestions { padding: 0 12px 8px; display: flex; flex-wrap: wrap; gap: 6px; }
.monica-suggest {
  border: 1px solid rgba(45,74,53,0.2);
  background: #fff;
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 0.72rem;
  cursor: pointer;
}
.monica-chat-form {
  display: flex;
  gap: 8px;
  padding: 12px;
  border-top: 1px solid rgba(45,74,53,0.1);
}
.monica-chat-form input {
  flex: 1;
  padding: 10px 12px;
  border: 1px solid rgba(45,74,53,0.2);
  border-radius: 999px;
  font: inherit;
  font-size: 0.85rem;
}
.monica-chat-form button {
  border: none;
  background: #C9A84C;
  color: #1a2e20;
  border-radius: 999px;
  padding: 10px 16px;
  cursor: pointer;
  font-weight: 500;
}
.monica-page-chat {
  max-width: 720px;
  margin: 0 auto;
  border: 1px solid rgba(45,74,53,0.12);
  border-radius: 16px;
  overflow: hidden;
  background: rgba(255,255,255,0.4);
  min-height: 480px;
  display: flex;
  flex-direction: column;
}
.monica-page-chat .monica-chat-log { min-height: 320px; }
