html, body, #root {
  margin: 0; padding: 0; height: 100%; width: 100%; overflow: hidden;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}
.react-flow__node { cursor: pointer; }
.toast-enter { animation: slideUp 0.3s ease-out; }
@keyframes slideUp {
  from { transform: translateY(20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.spinning { animation: spin 1s linear infinite; }
@keyframes spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
.chat-bubble-user { background: #3B82F6; color: white; border-radius: 18px 18px 4px 18px; }
.chat-bubble-assistant { background: #F3F4F6; color: #111827; border-radius: 18px 18px 18px 4px; }
.bottleneck-node { box-shadow: 0 0 0 4px #EF4444 !important; }
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #f1f1f1; }
::-webkit-scrollbar-thumb { background: #ccc; border-radius: 3px; }

/* Discovery chat */
.discovery-container {
  display: flex; flex-direction: column; height: 100vh; width: 100vw; background: #F8FAFC;
}
.discovery-chat-area {
  flex: 1; overflow-y: auto; display: flex; flex-direction: column; align-items: center; padding: 24px 16px;
}
.discovery-chat-inner {
  width: 100%; max-width: 640px; display: flex; flex-direction: column; gap: 16px;
}
.discovery-input-bar {
  border-top: 1px solid #E5E7EB; background: white; padding: 16px; display: flex; justify-content: center;
}
.discovery-input-inner {
  width: 100%; max-width: 640px; display: flex; gap: 8px;
}
.discovery-generate-btn {
  background: #22C55E; color: white; border: none; border-radius: 10px; padding: 12px 24px;
  font-size: 15px; font-weight: 700; cursor: pointer; transition: background 0.15s;
  display: flex; align-items: center; gap: 8px;
}
.discovery-generate-btn:hover { background: #16A34A; }
.generating-overlay {
  position: fixed; inset: 0; background: rgba(255,255,255,0.92); display: flex;
  align-items: center; justify-content: center; flex-direction: column; gap: 16px; z-index: 10000;
}
