:root{color:#1c2033;--brand:#4f46e5;--brand2:#7c3aed;--grad:linear-gradient(135deg, var(--brand), var(--brand2));font-family:Inter,system-ui,-apple-system,Segoe UI,Roboto,sans-serif}*{box-sizing:border-box}body{background:#312e81 url(/bg.svg) 50%/cover no-repeat fixed;margin:0}.app{-webkit-backdrop-filter:blur(3px);backdrop-filter:blur(3px);background:#ffffff1f;flex-direction:column;max-width:820px;height:100dvh;margin:0 auto;display:flex;box-shadow:0 10px 40px #4f46e51f}header{background:var(--grad);color:#fff;justify-content:space-between;align-items:center;padding:14px 20px;display:flex}.brand{align-items:center;gap:12px;display:flex}h1{margin:0;font-size:1.05rem;font-weight:650}.status{opacity:.9;align-items:center;gap:6px;font-size:.75rem;display:flex}.status i{background:#4ade80;border-radius:50%;width:8px;height:8px;box-shadow:0 0 0 3px #4ade8055}.logo,.avatar{letter-spacing:.5px;background:#fff3;border-radius:12px;place-items:center;width:38px;height:38px;font-size:.85rem;font-weight:700;display:grid}.avatar{background:var(--grad);color:#fff;border-radius:10px;flex-shrink:0;width:30px;height:30px;font-size:.7rem}.logo.big{background:var(--grad);color:#fff;border-radius:20px;width:64px;height:64px;margin:0 auto 16px;font-size:1.3rem;box-shadow:0 8px 24px #4f46e559}main{scroll-behavior:smooth;flex-direction:column;flex:1;gap:14px;padding:22px 20px;display:flex;overflow-y:auto}.empty{text-align:center;color:#e9e7ff;max-width:520px;margin:auto}.empty h2{color:#fff;margin:0 0 6px;font-size:1.5rem}.empty p{margin:0}.suggestions{flex-direction:column;gap:10px;margin-top:22px;display:flex}.suggestions button{text-align:left;color:#1c2033;background:#fff;border:1px solid #e3e5f0;border-radius:14px;padding:13px 16px;transition:transform .15s,box-shadow .15s,border-color .15s;box-shadow:0 2px 6px #1c20330a}.suggestions button:hover:not(:disabled){border-color:var(--brand);background:#fff;transform:translateY(-2px);box-shadow:0 6px 16px #4f46e526}.row{align-items:flex-end;gap:10px;animation:.25s ease-out pop;display:flex}.row.user{justify-content:flex-end}@keyframes pop{0%{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}.bubble{white-space:pre-wrap;overflow-wrap:anywhere;border-radius:18px;max-width:80%;padding:11px 15px;line-height:1.5}.bubble.user{background:var(--grad);color:#fff;border-bottom-right-radius:5px;box-shadow:0 4px 14px #4f46e54d}.bubble.assistant{background:#fff;border:1px solid #e8eaf3;border-bottom-left-radius:5px;box-shadow:0 2px 8px #1c20330d}.bubble.error{color:#a12222;background:#fdecec;border-color:#f5c2c2}.dots{gap:5px;padding:15px 18px;display:flex}.dots span{background:#a5a9c4;border-radius:50%;width:7px;height:7px;animation:1.2s infinite bounce}.dots span:nth-child(2){animation-delay:.15s}.dots span:nth-child(3){animation-delay:.3s}@keyframes bounce{0%,60%,to{opacity:.5;transform:none}30%{opacity:1;transform:translateY(-5px)}}form{background:#fff;border:1px solid #e3e5f0;border-radius:999px;gap:10px;margin:0 16px 16px;padding:8px 8px 8px 16px;display:flex;box-shadow:0 4px 18px #1c203314}form:focus-within{border-color:var(--brand);box-shadow:0 4px 18px #4f46e533}input{font:inherit;background:0 0;border:none;outline:none;flex:1}button{font:inherit;cursor:pointer;background:#fff;border:1px solid #e3e5f0;border-radius:10px;padding:9px 16px;transition:all .15s}button:disabled{opacity:.5;cursor:not-allowed}header button{color:#fff;background:#ffffff2e;border-color:#ffffff59;border-radius:999px}header button:hover:not(:disabled){background:#ffffff4d}form button{background:var(--grad);color:#fff;border:none;border-radius:50%;width:42px;height:42px;padding:0}form button:hover:not(:disabled){transform:scale(1.08)}@media (width<=600px){.bubble{max-width:90%}.empty h2{font-size:1.25rem}}.sources{flex-wrap:wrap;gap:6px;margin-top:10px;display:flex}.chip{color:#4338ca;white-space:normal;background:#eef2ff;border:1px solid #c7d2fe;border-radius:999px;align-items:center;gap:6px;padding:3px 10px;font-size:.75rem;display:inline-flex}.chip b{border-left:1px solid #c7d2fe;padding-left:6px;font-weight:600}
