*{box-sizing:border-box}body{color:#1f2328;background:#f4f5f7;margin:0;font-family:system-ui,-apple-system,Segoe UI,sans-serif}.app{flex-direction:column;max-width:820px;height:100vh;margin:0 auto;display:flex}header{background:#fff;border-bottom:1px solid #e1e4e8;justify-content:space-between;align-items:center;padding:16px 20px;display:flex}header h1{margin:0;font-size:18px}header h1 span{color:#6a737d;font-weight:400}.messages{flex-direction:column;flex:1;gap:12px;padding:20px;display:flex;overflow-y:auto}.empty{color:#6a737d;text-align:center;margin-top:40px}.msg{display:flex}.msg.user{justify-content:flex-end}.bubble{white-space:pre-wrap;word-wrap:break-word;border-radius:14px;max-width:75%;padding:10px 14px;line-height:1.5}.msg.user .bubble{color:#fff;background:#2563eb;border-bottom-right-radius:4px}.msg.assistant .bubble{background:#fff;border:1px solid #e1e4e8;border-bottom-left-radius:4px}.typing{color:#6a737d}.composer{background:#fff;border-top:1px solid #e1e4e8;gap:8px;padding:16px 20px;display:flex}.composer input{border:1px solid #d0d7de;border-radius:8px;outline:none;flex:1;padding:10px 14px;font-size:15px}.composer input:focus{border-color:#2563eb}button{color:#fff;cursor:pointer;background:#2563eb;border:none;border-radius:8px;padding:10px 18px;font-size:14px}button:disabled{opacity:.5;cursor:not-allowed}button.ghost{color:#2563eb;background:0 0;border:1px solid #d0d7de;padding:6px 12px}
