:root {
  --bg: #081120;
  --card: #101a2e;
  --card-2: #15213b;
  --text: #eaf1ff;
  --muted: #a4b2d1;
  --line: rgba(255,255,255,0.08);
  --brand: #6a5cff;
  --brand-2: #b14cff;
  --user: #1d2b4b;
  --assistant: #121b30;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: Inter, Arial, sans-serif;
  color: var(--text);
  background:
    radial-gradient(900px 500px at 20% 0%, rgba(106,92,255,.20), transparent 60%),
    radial-gradient(900px 600px at 100% 0%, rgba(177,76,255,.12), transparent 50%),
    var(--bg);
}
.page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}
.card {
  width: min(900px, 100%);
  background: linear-gradient(180deg, rgba(255,255,255,.02), rgba(255,255,255,.01));
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 20px;
  box-shadow: 0 20px 60px rgba(0,0,0,.35);
}
.header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}
.eyebrow { color: var(--brand-2); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; }
h1 { margin: 6px 0 8px; font-size: 28px; }
p { margin: 0; color: var(--muted); }
.status {
  background: rgba(106,92,255,.14);
  color: #d8d2ff;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(106,92,255,.24);
  font-size: 13px;
}
.messages {
  background: rgba(255,255,255,.02);
  border: 1px solid var(--line);
  border-radius: 18px;
  min-height: 420px;
  max-height: 520px;
  overflow: auto;
  padding: 14px;
}
.msg {
  max-width: 82%;
  padding: 12px 14px;
  border-radius: 16px;
  margin-bottom: 10px;
  line-height: 1.7;
  white-space: pre-wrap;
}
.msg.user {
  background: var(--user);
  margin-right: auto;
}
.msg.assistant {
  background: var(--assistant);
  border: 1px solid var(--line);
  margin-left: auto;
}
.quick-questions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 14px 0;
}
.quick-questions button,
.actions button {
  background: linear-gradient(90deg, var(--brand), var(--brand-2));
  color: white;
  border: 0;
  border-radius: 12px;
  padding: 11px 14px;
  cursor: pointer;
  font-weight: 600;
}
.quick-questions button {
  background: rgba(255,255,255,.05);
  border: 1px solid var(--line);
}
.composer {
  display: grid;
  gap: 10px;
}
textarea {
  width: 100%;
  resize: vertical;
  min-height: 84px;
  background: var(--card-2);
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px;
  font-size: 15px;
}
.actions {
  display: flex;
  justify-content: flex-start;
}
.typing { opacity: .75; font-style: italic; }
@media (max-width: 700px) {
  h1 { font-size: 22px; }
  .msg { max-width: 92%; }
}
