*,*:before,*:after{box-sizing:border-box}html,body{margin:0;height:100%;font-family:Segoe UI,system-ui,-apple-system,sans-serif;background:#f4f7fb;color:#1a2332;-webkit-font-smoothing:antialiased}#root{height:100%;min-height:100dvh}.chat-root{display:flex;flex-direction:column;height:100%;min-height:100dvh;background:#f7f9fc}.chat-header{display:flex;align-items:center;gap:.75rem;padding:.75rem 1rem;padding-top:max(.75rem,env(safe-area-inset-top));background:linear-gradient(135deg,#072a4a,#0b3d6b 45%,#1a5a96);color:#fff;flex-shrink:0;z-index:10;box-shadow:0 2px 12px #072a4a40}.chat-header-logo{width:44px;height:44px;border-radius:10px;object-fit:cover;border:2px solid rgba(255,255,255,.35)}.chat-header-text h1{margin:0;font-size:1rem;font-weight:700;letter-spacing:-.02em}.chat-header-text p{margin:.1rem 0 0;font-size:.72rem;opacity:.92}.chat-header-badge{margin-left:auto;font-size:.65rem;font-weight:700;padding:.28rem .55rem;border-radius:999px;background:#2e7d3273;border:1px solid rgba(255,255,255,.35)}.chat-body{flex:1;overflow-y:auto;-webkit-overflow-scrolling:touch;background:linear-gradient(180deg,#f7f9fc,#eef3f8)}.chat-column{max-width:48rem;margin:0 auto;padding:0 1rem;width:100%}.messages-column{padding:1.25rem 1rem 2rem}.chat-error{display:block;width:100%;margin:.75rem 0;padding:.65rem .85rem;border:none;border-radius:12px;background:#fde8e8;color:#9b1c1c;font-size:.85rem;cursor:pointer;text-align:left}.empty-state{max-width:42rem;margin:0 auto;padding:2rem 1rem 1rem;text-align:center}.empty-logo{width:72px;height:72px;border-radius:16px;object-fit:cover;border:3px solid #d8e2ec;box-shadow:0 8px 24px #0b3d6b1f;margin-bottom:1rem}.empty-title{margin:0 0 .35rem;font-size:1.5rem;font-weight:600;color:#0b3d6b;letter-spacing:-.03em}.empty-sub{margin:0 0 1.5rem;font-size:.9rem;color:#5a6b7d;line-height:1.45}.prompt-grid{display:grid;gap:.65rem;grid-template-columns:1fr}@media(min-width:540px){.prompt-grid{grid-template-columns:1fr 1fr}}.prompt-card{text-align:left;padding:.85rem 1rem;border-radius:14px;border:1px solid #d8e2ec;background:#fff;cursor:pointer;transition:border-color .15s,box-shadow .15s,transform .1s;box-shadow:0 1px 3px #0b3d6b0f}.prompt-card:hover:not(:disabled){border-color:#1a5a96;box-shadow:0 4px 14px #0b3d6b1a;transform:translateY(-1px)}.prompt-card:disabled{opacity:.55;cursor:not-allowed}.prompt-label{display:block;font-size:.8rem;font-weight:700;color:#0b3d6b;margin-bottom:.25rem}.prompt-question{display:block;font-size:.82rem;color:#5a6b7d;line-height:1.35}.thread{margin-bottom:1.5rem}.thread-user{display:flex;justify-content:flex-end}.user-bubble{max-width:85%;padding:.75rem 1rem;border-radius:20px 20px 6px;background:linear-gradient(135deg,#1565c0,#0b3d6b);color:#fff;box-shadow:0 2px 8px #0b3d6b26}.thread-assistant{display:flex;gap:.75rem;align-items:flex-start}.assistant-avatar{flex-shrink:0;width:32px;height:32px;border-radius:8px;overflow:hidden;border:1px solid #d8e2ec;background:#fff;margin-top:2px}.assistant-avatar img{width:100%;height:100%;object-fit:cover}.assistant-body{flex:1;min-width:0;padding-top:.1rem}.assistant-text{color:#1a2332}.msg-text{margin:0;font-size:.95rem;line-height:1.55;white-space:pre-wrap}.msg-cursor{animation:blink 1s step-end infinite;color:#0b3d6b}@keyframes blink{50%{opacity:0}}.msg-notfound{margin:.5rem 0 0;font-size:.82rem;color:#ed6c02}.msg-sources{margin-top:.65rem;font-size:.8rem;color:#5a6b7d;padding:.5rem .65rem;background:#eef3f8;border-radius:10px}.msg-sources-title{font-weight:600;display:block;color:#0b3d6b;margin-bottom:.25rem}.msg-source-item{display:block;line-height:1.4}.msg-actions{display:flex;flex-wrap:wrap;gap:.4rem;margin-top:.65rem}.msg-action-btn{font-size:.75rem;padding:.4rem .75rem;border-radius:999px;border:1px solid #c5d4e4;background:#fff;color:#0b3d6b;cursor:pointer;transition:background .12s}.msg-action-btn:hover{background:#e8eef5}.msg-feedback{display:flex;gap:.75rem;margin-top:.5rem}.msg-feedback button{font-size:.72rem;border:none;background:transparent;color:#8b9aab;cursor:pointer;padding:0}.msg-feedback button:hover{color:#0b3d6b;text-decoration:underline}.typing-dots{display:flex;gap:5px;padding:.65rem 0;align-items:center}.typing-dots span{width:7px;height:7px;border-radius:50%;background:#1a5a96;animation:bounce 1.2s infinite ease-in-out}.typing-dots span:nth-child(2){animation-delay:.15s}.typing-dots span:nth-child(3){animation-delay:.3s}@keyframes bounce{0%,80%,to{transform:translateY(0);opacity:.35}40%{transform:translateY(-5px);opacity:1}}.composer-dock{flex-shrink:0;background:linear-gradient(180deg,transparent,rgba(247,249,252,.95) 12%);padding:0 .75rem max(.75rem,env(safe-area-inset-bottom));z-index:10}.composer-inner{max-width:48rem;margin:0 auto}.composer-chips{display:flex;flex-wrap:wrap;gap:.35rem;margin-bottom:.5rem;justify-content:center}.chip{font-size:.75rem;padding:.35rem .7rem;border-radius:999px;border:1px solid #d8e2ec;background:#fff;color:#0b3d6b;cursor:pointer;box-shadow:0 1px 2px #0b3d6b0f}.chip:disabled{opacity:.5}.composer-box{display:flex;align-items:flex-end;gap:.35rem;padding:.5rem .5rem .5rem 1rem;background:#fff;border:1px solid #d8e2ec;border-radius:28px;box-shadow:0 0 0 1px #0b3d6b0a,0 8px 28px #0b3d6b1a}.composer-box:focus-within{border-color:#1a5a96;box-shadow:0 0 0 2px #1a5a9626,0 8px 28px #0b3d6b1a}.composer-input{flex:1;border:none;outline:none;resize:none;font-size:1rem;line-height:1.45;padding:.45rem 0;min-height:24px;max-height:160px;font-family:inherit;background:transparent;color:#1a2332}.composer-input::placeholder{color:#8b9aab}.composer-send{flex-shrink:0;width:40px;height:40px;border:none;border-radius:50%;background:#0b3d6b;color:#fff;cursor:pointer;display:flex;align-items:center;justify-content:center;transition:background .15s,transform .1s}.composer-send:hover:not(:disabled){background:#1a5a96}.composer-send:disabled{opacity:.4;cursor:not-allowed}.composer-hint{margin:.5rem 0 0;font-size:.68rem;color:#8b9aab;text-align:center;line-height:1.4}.composer-hint a{color:#1a5a96;text-decoration:none}.composer-hint a:hover{text-decoration:underline}@media(min-width:768px){.chat-header{padding:.85rem 1.5rem}.messages-column{padding:1.5rem 1.5rem 2.5rem}.composer-dock{padding:0 1.5rem max(1rem,env(safe-area-inset-bottom))}.empty-state{padding-top:3rem}}
