.bot-scrim{position:fixed;inset:0;z-index:90;background:#0f172a66}.bot{position:fixed;z-index:91;right:24px;bottom:24px;width:min(400px,calc(100vw - 32px));height:min(620px,calc(100dvh - 48px));display:flex;flex-direction:column;background:#fff;border-radius:20px;box-shadow:0 30px 80px #0f172a4d;overflow:hidden;animation:bot-in .3s cubic-bezier(.22,1,.36,1)}@keyframes bot-in{0%{opacity:0;transform:translateY(16px) scale(.98)}}.bot svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}.bot-inline{position:static;width:100%;height:520px;box-shadow:none;border:1px solid var(--line);animation:none;z-index:auto}.bot-head{display:flex;align-items:center;gap:12px;padding:14px 16px;border-bottom:1px solid var(--line);background:linear-gradient(96deg,#eff6ff,#f0fdfa)}.bot-head .avatar{width:40px;height:40px;font-size:14px}.bot-head div{flex:1;min-width:0}.bot-head b{display:block;font-size:15px}.bot-head small{display:block;font-size:12px;color:var(--muted);line-height:1.35}.bot-close{border:0;background:none;font-size:28px;line-height:1;color:var(--muted);cursor:pointer;padding:0 4px}.bot-thread{flex:1;overflow-y:auto;padding:16px;display:flex;flex-direction:column;gap:10px;background:var(--soft)}.bot-msg{max-width:86%;padding:10px 14px;border-radius:16px 16px 16px 4px;background:#fff;border:1px solid var(--line);font-size:14px;line-height:1.5}.bot-msg.me{align-self:flex-end;background:var(--blue);color:#fff;border-color:var(--blue);border-radius:16px 16px 4px}.bot-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:10px}.bot-actions .btn{height:34px;padding:0 12px;font-size:13px}.bot-msg.typing{display:flex;gap:4px;padding:14px;width:max-content}.bot-msg.typing span{width:6px;height:6px;border-radius:50%;background:#9ca3af;animation:bot-dot 1s infinite}.bot-msg.typing span:nth-child(2){animation-delay:.15s}.bot-msg.typing span:nth-child(3){animation-delay:.3s}@keyframes bot-dot{0%,60%,to{opacity:.3;transform:none}30%{opacity:1;transform:translateY(-3px)}}.bot-quick{display:flex;gap:6px;padding:10px 12px 0;overflow-x:auto;scrollbar-width:none}.bot-quick button{flex:none;border:1px solid #bfdbfe;background:#fff;color:var(--blue-700);font:600 12px Inter,sans-serif;padding:7px 11px;border-radius:999px;cursor:pointer}.bot-quick button:hover{background:#eff6ff}.bot-input{display:flex;gap:8px;padding:10px 12px}.bot-input input{flex:1;min-width:0;height:42px;padding:0 14px;border:1px solid var(--line);border-radius:12px;font:400 14px Inter,sans-serif;background:var(--soft)}.bot-input input:focus{outline:none;border-color:var(--blue);background:#fff}.bot-input button{width:42px;height:42px;border:0;border-radius:12px;background:var(--blue);color:#fff;display:grid;place-items:center;cursor:pointer;flex:none}.bot-note{padding:0 14px 10px;font-size:11px;color:var(--muted);text-align:center}@media (max-width: 600px){.bot:not(.bot-inline){right:0;bottom:0;width:100%;height:88dvh;border-radius:20px 20px 0 0}}.btn-ask{display:inline-flex;align-items:center;justify-content:center;gap:8px;width:100%;height:40px;border:1px dashed #93c5fd;border-radius:10px;background:#f8fbff;color:var(--blue-700);font:600 14px Inter,sans-serif;cursor:pointer;transition:background .15s}.btn-ask:hover{background:#eff6ff}.btn-ask svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}.qa-list{display:grid;gap:12px}.qa-item{display:grid;gap:8px;padding:14px;border:1px solid var(--line);border-radius:14px;background:#fff;position:relative}.qa-item input,.qa-item textarea{width:100%;font:400 15px Inter,sans-serif;padding:10px 12px;border:1px solid #d1d5db;border-radius:10px;color:var(--ink)}.qa-item input{font-weight:600;height:44px;padding-right:44px}.qa-item textarea{min-height:72px;resize:vertical;line-height:1.5}.qa-item input:focus,.qa-item textarea:focus{outline:none;border-color:var(--blue);box-shadow:0 0 0 3px #2563eb26}.qa-item .invalid{border-color:#dc2626}.qa-remove{position:absolute;top:20px;right:22px;width:30px;height:30px;border:0;border-radius:8px;background:none;color:var(--muted);cursor:pointer;display:grid;place-items:center}.qa-remove:hover{background:#fef2f2;color:#dc2626}.qa-remove svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round}.qa-empty{text-align:center;padding:20px;border:2px dashed var(--line);border-radius:14px;color:var(--muted);font-size:14px}.qa-suggest{display:flex;flex-wrap:wrap;gap:8px;margin-top:12px}.qa-suggest span{font-size:13px;color:var(--muted);align-self:center}.qa-suggest button{border:1px dashed #93c5fd;background:#fff;color:var(--blue-700);font:600 13px Inter,sans-serif;padding:7px 12px;border-radius:999px;cursor:pointer}.qa-suggest button:hover{background:#eff6ff}.known{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px 24px;font-size:14px}.known span{display:block;color:var(--muted);font-size:12px;text-transform:uppercase;letter-spacing:.04em;font-weight:600}.read-only-qa{display:grid;gap:10px}.read-only-qa div{padding:12px 14px;border-radius:12px;background:var(--soft);font-size:14px}.read-only-qa b{display:block;margin-bottom:2px}.read-only-qa p{color:var(--muted)}@media (max-width: 600px){.known{grid-template-columns:1fr}}.bot .btn-ghost{background:#fff;border:1px solid var(--line, #e5e7eb);color:var(--ink, #0f172a)}.bot .btn-ghost:hover{border-color:#9ca3af}
