*,*:before,*:after{box-sizing:border-box}html,body{margin:0;padding:0;height:100%}body{font-family:Inter,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,sans-serif;color:#f4f1fb;background:#0f0b1e;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility;overscroll-behavior:none}#root{height:100%}button{font-family:inherit;cursor:pointer}textarea{font-family:inherit}.chat-app{display:flex;flex-direction:column;height:100dvh;height:100vh;max-width:720px;margin:0 auto;background:#0f0b1e;position:relative}.chat-app:before{content:"";position:fixed;inset:0;background:radial-gradient(60% 40% at 50% 0%,rgba(124,58,237,.22),transparent 70%),radial-gradient(50% 30% at 100% 100%,rgba(67,24,166,.18),transparent 70%);pointer-events:none;z-index:0}.chat-header{position:sticky;top:0;z-index:3;display:flex;align-items:center;justify-content:space-between;gap:1rem;padding:0 1rem;height:60px;padding-top:env(safe-area-inset-top,0);height:calc(60px + env(safe-area-inset-top,0));background:#0f0b1eb8;backdrop-filter:blur(16px);-webkit-backdrop-filter:blur(16px);border-bottom:1px solid rgba(255,255,255,.08)}.chat-header__brand{display:flex;align-items:center;gap:.6rem;min-width:0}.chat-logo{display:grid;place-items:center;width:38px;height:38px;border-radius:.85rem;background:linear-gradient(135deg,#7c3aed,#6c2bd9 45%,#4318a6);color:#fff;box-shadow:0 0 24px #7c3aed73;flex-shrink:0}.chat-header__title{display:flex;flex-direction:column;line-height:1.1;min-width:0}.chat-header__name{font-weight:700;font-size:1.02rem;color:#f4f1fb;letter-spacing:-.01em}.chat-header__sub{font-size:.72rem;color:#837a9e;font-weight:500}.chat-newchat{display:grid;place-items:center;width:40px;height:40px;border-radius:.85rem;border:1px solid rgba(255,255,255,.14);background:#1d1733;color:#b8b0d4;transition:background .16s ease,color .16s ease,border-color .16s ease;flex-shrink:0}.chat-newchat:active{background:#241c3d;color:#f4f1fb}.chat-main{flex:1;overflow-y:auto;-webkit-overflow-scrolling:touch;position:relative;z-index:1;padding:1rem;scrollbar-width:thin;scrollbar-color:rgba(255,255,255,.14) transparent}.chat-main::-webkit-scrollbar{width:6px}.chat-main::-webkit-scrollbar-thumb{background:#ffffff24;border-radius:999px}.chat-welcome{display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;min-height:100%;padding:1.5rem .5rem;gap:.5rem}.chat-welcome__badge{display:grid;place-items:center;width:72px;height:72px;border-radius:1.5rem;background:linear-gradient(135deg,#7c3aed,#6c2bd9 45%,#4318a6);color:#fff;box-shadow:0 18px 48px #4318a659,0 0 24px #7c3aed73;margin-bottom:.5rem;animation:numia-pop .28s ease ease}.chat-welcome__title{font-size:1.6rem;font-weight:700;letter-spacing:-.02em;margin:0;background:linear-gradient(120deg,#fff,#c9b8ff);-webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:transparent}.chat-welcome__text{color:#b8b0d4;font-size:.95rem;line-height:1.5;max-width:30ch;margin:0 0 1rem}.chat-suggestions{display:grid;gap:.5rem;width:100%;max-width:420px}.chat-suggestion{text-align:left;padding:.85rem 1rem;border-radius:.85rem;border:1px solid rgba(255,255,255,.08);background:#161228;color:#b8b0d4;font-size:.9rem;font-weight:500;transition:transform .16s ease,border-color .16s ease,background .16s ease,color .16s ease}.chat-suggestion:active{transform:scale(.985);border-color:#7c3aed66;background:#1d1733;color:#f4f1fb}.chat-thread{display:flex;flex-direction:column;gap:1rem;padding-bottom:.5rem}.chat-row{display:flex;align-items:flex-end;gap:.5rem;animation:numia-rise .28s ease ease}.chat-row--user{justify-content:flex-end}.chat-row--assistant{justify-content:flex-start}.chat-avatar{display:grid;place-items:center;width:30px;height:30px;border-radius:.5rem;background:linear-gradient(135deg,#7c3aed,#6c2bd9 45%,#4318a6);color:#fff;flex-shrink:0;align-self:flex-end;box-shadow:0 2px 8px #00000040}.chat-bubble{max-width:80%;padding:.7rem .95rem;font-size:.95rem;line-height:1.5;white-space:pre-wrap;word-break:break-word;box-shadow:0 2px 8px #00000040}.chat-bubble--user{background:linear-gradient(135deg,#7c3aed,#6c2bd9 45%,#4318a6);color:#fff;border-radius:1.25rem 1.25rem .5rem}.chat-bubble--assistant{background:#1d1733;color:#f4f1fb;border:1px solid rgba(255,255,255,.08);border-radius:1.25rem 1.25rem 1.25rem .5rem}.chat-bubble--error{background:#f871711f;border-color:#f8717166;color:#fca5a5}.chat-typing{display:inline-flex;align-items:center;gap:5px;padding:.9rem 1rem}.chat-typing span{width:7px;height:7px;border-radius:50%;background:#8b5cf6;opacity:.5;animation:numia-bounce 1.3s infinite ease-in-out}.chat-typing span:nth-child(2){animation-delay:.18s}.chat-typing span:nth-child(3){animation-delay:.36s}.chat-composer{position:sticky;bottom:0;z-index:3;padding:.5rem 1rem;padding-bottom:calc(.5rem + env(safe-area-inset-bottom,0));background:#0f0b1ed1;backdrop-filter:blur(16px);-webkit-backdrop-filter:blur(16px);border-top:1px solid rgba(255,255,255,.08)}.chat-composer__inner{display:flex;align-items:flex-end;gap:.5rem;padding:.35rem .35rem .35rem .9rem;border-radius:1.5rem;background:#1a1530;border:1px solid rgba(255,255,255,.14);transition:border-color .16s ease,box-shadow .16s ease}.chat-composer__inner:focus-within{border-color:#7c3aed66;box-shadow:0 0 0 3px #7c3aed2e}.chat-input{flex:1;resize:none;border:none;outline:none;background:transparent;color:#f4f1fb;font-size:.95rem;line-height:1.45;max-height:140px;padding:.5rem 0;margin:0}.chat-input::placeholder{color:#837a9e}.chat-input:disabled{opacity:.6}.chat-send{display:grid;place-items:center;width:42px;height:42px;flex-shrink:0;border:none;border-radius:1.25rem;background:linear-gradient(135deg,#7c3aed,#6c2bd9 45%,#4318a6);color:#fff;box-shadow:0 0 24px #7c3aed73;transition:transform .16s ease,opacity .16s ease,filter .16s ease}.chat-send:active:not(:disabled){transform:scale(.92)}.chat-send:disabled{opacity:.4;box-shadow:none;filter:grayscale(.3);cursor:not-allowed}.chat-disclaimer{text-align:center;font-size:.7rem;color:#837a9e;margin:.5rem 0 0}@keyframes numia-rise{0%{opacity:0;transform:translateY(8px)}to{opacity:1;transform:translateY(0)}}@keyframes numia-pop{0%{opacity:0;transform:scale(.8)}to{opacity:1;transform:scale(1)}}@keyframes numia-bounce{0%,60%,to{transform:translateY(0);opacity:.4}30%{transform:translateY(-5px);opacity:1}}
