#ba-launch,#ba-panel,#ba-preview{font-family:inherit;box-sizing:border-box;letter-spacing:0}
#ba-preview{position:fixed;inset: auto 50% 12px auto;transform:translateX(50%);z-index:10000;background:#fffdf8ed;color:#66543b;border:1px solid #dac9ab;border-radius:30px;padding:8px 16px;font-size:12px;box-shadow:0 5px 20px #35251112;white-space:nowrap}
#ba-preview a{color:#84612f;text-decoration:underline;margin-inline-start:10px}
#ba-launch{position:fixed;left:26px;bottom:26px;z-index:10002;display:flex;align-items:center;gap:10px;border:1px solid #b79b65;border-radius:50px;padding:13px 20px;background:linear-gradient(120deg,#f5df9c,#c4a260);color:#332618;cursor:pointer;box-shadow:0 8px 30px #5d45282b;font-weight:700;font-size:15px}
#ba-launch svg{width:24px;height:24px}#ba-launch[hidden],#ba-panel[hidden]{display:none!important}
#ba-panel{--ba-accent:#a98953;position:fixed;left:24px;bottom:24px;width:410px;height:min(690px,calc(100dvh - 48px));z-index:10003;display:flex;flex-direction:column;background:#fcfaf6;color:#392f24;border:1px solid #ddcfb8;border-radius:24px;overflow:hidden;box-shadow:0 20px 90px #2b211b40;direction:rtl;font-size:15px;line-height:1.7}
#ba-panel *{box-sizing:border-box}#ba-panel button,#ba-panel input{font:inherit}#ba-panel button{cursor:pointer}
.ba-head{display:flex;align-items:center;gap:12px;padding:20px;background:linear-gradient(120deg,#faf4e5,#eee1c8);border-bottom:1px solid #e7dcc9}
.ba-head img{width:48px;height:48px;object-fit:contain;border-radius:50%;background:#fff9ee;padding:5px}.ba-head strong{font-size:18px;display:block;color:#554024}.ba-head small{font-size:11px;color:#806a4a}.ba-tools{display:flex;gap:5px;margin-inline-start:auto}.ba-tools button{background:transparent;border:1px solid #daceb7;color:#695333;border-radius:9px;min-width:32px;height:32px;padding:0 7px;font-size:12px!important}
.ba-demo{padding:8px 18px;background:#fffcf5;color:#826e51;font-size:11px;border-bottom:1px solid #eee5d7;text-align:center}
.ba-feed{padding:20px 16px;overflow:auto;overscroll-behavior:contain;flex:1;scroll-behavior:smooth}.ba-msg{margin:0 0 15px;max-width:95%;white-space:pre-line;overflow-wrap:anywhere}.ba-msg p{font-size:14px!important;line-height:1.8!important;margin:0!important}.ba-msg.bot{border:1px solid #e9e0d2;background:white;border-radius:16px 3px 16px 16px;padding:14px}.ba-msg.user{margin-inline-start:auto;background:#efe2c9;border-radius:3px 16px 16px 16px;padding:10px 14px;width:fit-content}.ba-stamp{font-size:10px;color:#9b8869;margin-bottom:5px}.ba-chips{display:flex;gap:7px;flex-wrap:wrap;margin-top:12px}.ba-chips button{padding:6px 10px;border-radius:30px;border:1px solid #dfd1b9;background:#fcfaf5;color:#725935;font-size:12px!important}.ba-results{display:grid;gap:9px;margin-top:12px}.ba-product{display:flex;align-items:center;gap:12px;white-space:normal;padding:9px;border:1px solid #ece4d6;border-radius:12px;color:#513e27!important;text-decoration:none!important;font-size:12px}.ba-product img{width:57px;height:61px;object-fit:contain;background:#f5f1e9;border-radius:8px}.ba-product span{flex:1}.ba-product b{display:block;font-size:10px;font-weight:400;color:#9c8059}.ba-product em{font-style:normal;color:var(--ba-accent)}.ba-contact{display:block;margin-top:9px;color:#88622c!important;text-decoration:underline!important;font-size:13px}.ba-source{margin-top:10px;font-size:10px;color:#a18c6c;white-space:normal}.ba-compose{padding:12px;background:white;border-top:1px solid #eee5d7}.ba-compose form{display:flex;align-items:center;gap:8px}.ba-compose input{min-width:0;flex:1;background:#f7f4ee;border:1px solid #e6dccd;border-radius:12px;padding:12px;color:#3e3223;font-size:13px!important;outline:none}.ba-compose input:focus{border-color:var(--ba-accent);box-shadow:0 0 0 2px #a9895320}.ba-send{border:0;border-radius:12px;background:var(--ba-accent);color:white;width:44px;height:44px;font-size:22px!important}.ba-foot{font-size:10px!important;color:#a28f73;text-align:center;margin:7px 0 0!important;line-height:1.5!important}.ba-linkbtn{background:none;border:0;color:#8c7049;text-decoration:underline;font-size:10px!important}
@media(max-width:600px){#ba-panel{left:10px;right:10px;bottom:10px;width:auto;height:min(700px,calc(100dvh - 20px));border-radius:20px}#ba-launch{left:16px;bottom:65px;font-size:13px}#ba-preview{bottom:8px;font-size:10px;padding:7px 10px;max-width:95vw}.ba-head{padding:15px}.ba-feed{padding:15px 12px}}
@media(prefers-reduced-motion:reduce){.ba-feed{scroll-behavior:auto}}

.ba-ai-consent{display:flex;align-items:flex-start;gap:8px;padding:9px 16px;background:#fffaf0;border-bottom:1px solid #e7dcc9;font-size:11px;line-height:1.7;cursor:pointer}.ba-ai-consent input{margin-top:4px;accent-color:var(--ba-accent)}
@media(max-width:600px){#ba-launch{bottom:22px}}
