*{box-sizing:border-box;margin:0;padding:0}html,body,#root{height:100%}body{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica,Arial,sans-serif;background:transparent}.panel{display:flex;flex-direction:column;height:100%;background:#fff;border-radius:16px;overflow:hidden;box-shadow:0 12px 40px #0000002e}.head{display:flex;align-items:center;gap:10px;padding:12px 14px;background:var(--brand);color:#fff}.logo{width:34px;height:34px;border-radius:50%;object-fit:cover;background:#fff3}.logo-fallback{display:flex;align-items:center;justify-content:center;font-weight:700;text-transform:uppercase}.head-txt{display:flex;flex-direction:column;line-height:1.2;min-width:0}.head-name{font-size:14px}.head-sub{font-size:11px;opacity:.85}.close{margin-left:auto;background:none;border:none;color:#fff;font-size:22px;line-height:1;cursor:pointer;opacity:.85}.close:hover{opacity:1}.body{flex:1;overflow-y:auto;padding:14px;display:flex;flex-direction:column;gap:8px;background:#f7f8fa}.msg{max-width:82%;padding:9px 12px;border-radius:14px;font-size:14px;line-height:1.4;white-space:pre-wrap;word-break:break-word}.msg.bot{align-self:flex-start;background:#fff;color:#1f2937;border:1px solid #eceef1;border-bottom-left-radius:4px}.msg.user{align-self:flex-end;background:var(--brand);color:#fff;border-bottom-right-radius:4px}.msg a{text-decoration:underline;word-break:break-all;font-weight:500}.msg.bot a{color:var(--brand)}.msg.user a{color:#fff}.typing{display:flex;gap:4px;align-items:center}.typing span{width:6px;height:6px;border-radius:50%;background:#9aa2ad;animation:blink 1.2s infinite both}.typing span:nth-child(2){animation-delay:.2s}.typing span:nth-child(3){animation-delay:.4s}@keyframes blink{0%,80%,to{opacity:.3}40%{opacity:1}}.foot{display:flex;gap:8px;padding:10px;border-top:1px solid #eceef1;background:#fff}.in{flex:1;border:1px solid #d7dbe0;border-radius:999px;padding:9px 14px;font-size:14px;outline:none}.in:focus{border-color:var(--brand)}.send{width:40px;height:40px;border:none;border-radius:50%;background:var(--brand);color:#fff;font-size:15px;cursor:pointer;flex-shrink:0}.send:disabled{opacity:.45;cursor:default}
