.chat-bubble__text p { margin: 0 0 8px; }
.chat-bubble__text p:last-child { margin-bottom: 0; }
.chat-bubble__text h1, .chat-bubble__text h2, .chat-bubble__text h3, .chat-bubble__text h4 { font-size: 13.5px; font-weight: 700; margin: 10px 0 4px; }
.chat-bubble__text ul, .chat-bubble__text ol { margin: 4px 0 8px; padding-left: 18px; }
.chat-bubble__text ul { list-style: disc; }
.chat-bubble__text ol { list-style: decimal; }
.chat-bubble__text li { margin: 2px 0; }
.chat-bubble__text code { font-family: var(--font-mono); font-size: 12px; background: var(--color-surface-2); border: 1px solid var(--color-border); border-radius: 4px; padding: 1px 5px; }
.chat-bubble__text pre { background: var(--color-surface-2); border: 1px solid var(--color-border); border-radius: 6px; padding: 8px 10px; overflow-x: auto; margin: 6px 0; }
.chat-bubble__text pre code { border: none; background: none; padding: 0; }
.chat-bubble__text table { border-collapse: collapse; margin: 6px 0; width: 100%; }
.chat-bubble__text th, .chat-bubble__text td { border: 1px solid var(--color-border); padding: 4px 8px; font-size: 12px; text-align: left; }
.chat-bubble__text strong { font-weight: 700; }
.chat-bubble__text blockquote { border-left: 3px solid var(--color-border); margin: 6px 0; padding: 2px 10px; color: var(--color-muted); }

/* ---- Typography: match the platform chat (Inter, airy reading rhythm) ---- */
@font-face {
  font-family: 'Inter';
  src: url('../fonts/InterVariable.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
:root {
  --font-stack: 'Inter', 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
}
body, button, input, textarea, select { font-family: var(--font-stack); }
.chat-bubble { font-size: 14px; line-height: 1.7; }
.chat-bubble__text { letter-spacing: .1px; }
.chat-bubble__text p { margin: 0 0 10px; }

/* ---- Compact attach menu: small popup anchored at the + button ---- */
#attach-menu {
  left: 10px;
  right: auto;
  bottom: calc(100% + 8px);
  min-width: 210px;
  max-width: 240px;
  padding: 4px;
}
#attach-menu .menu__item { padding: 8px 10px; font-size: 12.5px; gap: 10px; }
#attach-menu .menu__item svg { flex: none; color: var(--color-muted); }
