* { box-sizing: border-box; }
:root { --bg-1:#0b1220; --bg-2:#0e1628; --bg-3:#101a30; --text:#f0f3f7; --muted:#9fb2d3; }
body { margin: 0; font-family: system-ui, sans-serif; background: var(--bg-1); color: var(--text); }
.app { max-width: 900px; margin: 0 auto; padding: 20px; }
.hero { position: relative; border-radius: 16px; padding: 18px 20px; background: radial-gradient(1200px 600px at -10% -10%, rgba(46,100,216,0.18), transparent 60%), linear-gradient(135deg, var(--bg-2) 0%, var(--bg-3) 100%); box-shadow: 0 8px 28px rgba(0,0,0,0.35), inset 0 0 0 1px #243047; overflow: hidden; }
.hero::after { content: ""; position: absolute; right: -60px; top: -60px; width: 220px; height: 220px; background: radial-gradient(closest-side, rgba(31,75,153,0.35), transparent); filter: blur(6px); }
h1 { margin: 0 0 6px 0; font-size: 28px; letter-spacing: 0.2px; }
.subtitle { font-size: 13px; color: #9fb2d3; margin-bottom: 14px; }

.messages { height: 62vh; overflow-y: auto; border: 1px solid #243047; border-radius: 12px; padding: 16px; background: var(--bg-2); display: flex; flex-direction: column; gap: 14px; }
.messages .user, .messages .assistant { position: relative; padding: 16px 18px 16px 58px; border-radius: 16px; margin: 0; white-space: pre-wrap; line-height: 1.6; box-shadow: 0 2px 10px rgba(0,0,0,0.25); width: 100%; font-size: 16px; }
.messages .user { background: #18324f; }
.messages .assistant { background: #12233a; }
.messages .user::before, .messages .assistant::before { content: ""; position: absolute; left: 16px; top: 14px; font-size: 12px; padding: 6px 11px; border-radius: 999px; background: #243047; color: #cfe0ff; box-shadow: 0 1px 6px rgba(0,0,0,0.3); }
.messages .user::before { content: "You"; }
.messages .assistant::before { content: "KIRA"; }
pre, code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
pre { background: #0b172a; border: 1px solid #243047; border-radius: 6px; padding: 8px; overflow-x: auto; }
table.md-table { width: 100%; border-collapse: collapse; margin: 8px 0; }
table.md-table th, table.md-table td { border: 1px solid #243047; padding: 6px 8px; text-align: left; }
.messages .assistant h1 { font-size: 20px; margin: 10px 0 6px; }
.messages .assistant h2 { font-size: 18px; margin: 10px 0 6px; }
.messages .assistant h3 { font-size: 16px; margin: 10px 0 6px; }
.messages .assistant blockquote { border-left: 3px solid #243047; padding-left: 10px; color: #bcd0e9; }
.input { display: flex; gap: 10px; margin-top: 14px; }
input { flex: 1; padding: 12px; border-radius: 10px; border: 1px solid #243047; background: #0e1628; color: #f0f3f7; font-size: 15px; }
button { padding: 12px 14px; border-radius: 10px; border: 1px solid #243047; background: #1a2942; color: #f0f3f7; cursor: pointer; font-weight: 600; }
button:hover { background: #203255; }