* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  background: #f3f5fb;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text", sans-serif;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
}

.pulse-ui {
  width: 100%;
  max-width: 480px;
  height: 90vh;
  max-height: 720px;
  background: #ffffff;
  border-radius: 24px;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.12);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.pulse-header {
  text-align: center;
  padding: 18px 16px 10px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}

.pulse-logo {
  width: 64px;
  height: 64px;
  display: block;
  margin: 0 auto 6px;
}

.pulse-header h1 {
  margin: 0;
  font-size: 20px;
  font-weight: 600;
}

.subtitle {
  margin: 4px 0 0;
  font-size: 12px;
  color: #7a7f8c;
}

.pulse-chat {
  flex: 1;
  padding: 16px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: #f8f9fd;
}

.chat-bubble {
  padding: 10px 14px;
  border-radius: 16px;
  max-width: 80%;
  font-size: 14px;
  line-height: 1.4;
  word-wrap: break-word;
}

.chat-bubble.ai {
  align-self: flex-start;
  background: linear-gradient(135deg, #00e5ff, #7a5cff);
  color: #ffffff;
  box-shadow: 0 8px 20px rgba(122, 92, 255, 0.35);
}

.chat-bubble.user {
  align-self: flex-end;
  background: #e7e9f3;
  color: #111827;
}

.chat-bubble.system {
  align-self: center;
  background: #ffffff;
  color: #6b7280;
  font-size: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid #e5e7eb;
}

.pulse-input {
  display: flex;
  padding: 10px;
  gap: 8px;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  background: #ffffff;
}

.input-field {
  flex: 1;
  border: none;
  padding: 10px 12px;
  border-radius: 999px;
  background: #f3f4f6;
  font-size: 14px;
  outline: none;
}

.input-field:focus {
  box-shadow: 0 0 0 2px rgba(122, 92, 255, 0.25);
  background: #ffffff;
}

.send-btn {
  border: none;
  border-radius: 999px;
  padding: 0 18px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  background: linear-gradient(135deg, #00e5ff, #7a5cff);
  color: #ffffff;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.18);
  transition: transform 0.08s ease, box-shadow 0.08s ease, opacity 0.08s ease;
  white-space: nowrap;
}

.send-btn:active {
  transform: translateY(1px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.18);
  opacity: 0.9;
}

.send-btn:disabled {
  opacity: 0.5;
  cursor: default;
  box-shadow: none;
}
