#mdai-btn,#mdai-panel,#mdai-panel *{box-sizing:border-box;font-family:'Jost','Outfit',system-ui,-apple-system,Segoe UI,sans-serif}
#mdai-btn{position:fixed;right:92px;bottom:20px;z-index:99990;display:flex;align-items:center;gap:10px;padding:12px 18px 12px 14px;border:1px solid #d4af5a;border-radius:999px;background:#0b0b0b;color:#f4eee1;cursor:pointer;box-shadow:0 10px 30px rgba(0,0,0,.45);font-size:14px;letter-spacing:.04em;transition:transform .2s}
#mdai-btn:hover{transform:translateY(-2px)}
#mdai-btn .dot{width:34px;height:34px;border-radius:50%;background:linear-gradient(135deg,#e6cf8c,#b48a2e);color:#0b0b0b;display:grid;place-items:center;font-family:'Cormorant Garamond',Georgia,serif;font-weight:700;font-size:16px}
#mdai-btn .pulse{position:absolute;left:14px;top:12px;width:34px;height:34px;border-radius:50%;box-shadow:0 0 0 0 rgba(212,175,90,.6);animation:mdp 2.4s infinite}
@keyframes mdp{70%{box-shadow:0 0 0 14px rgba(212,175,90,0)}100%{box-shadow:0 0 0 0 rgba(212,175,90,0)}}
#mdai-panel{position:fixed;right:20px;bottom:20px;z-index:99991;width:390px;max-width:calc(100vw - 24px);height:600px;max-height:calc(100vh - 40px);display:none;flex-direction:column;background:#0b0b0b;color:#f4eee1;border:1px solid rgba(212,175,90,.5);border-radius:18px;box-shadow:0 24px 70px rgba(0,0,0,.6);overflow:hidden}
#mdai-panel.open{display:flex;animation:mdin .25s ease}
@keyframes mdin{from{opacity:0;transform:translateY(12px)}to{opacity:1;transform:none}}
.mdai-h{display:flex;align-items:center;gap:12px;padding:14px 16px;border-bottom:1px solid rgba(212,175,90,.25);background:linear-gradient(180deg,#151210,#0b0b0b)}
.mdai-h .dot{width:40px;height:40px;border-radius:50%;background:linear-gradient(135deg,#e6cf8c,#b48a2e);color:#0b0b0b;display:grid;place-items:center;font-family:'Cormorant Garamond',Georgia,serif;font-weight:700;font-size:18px;flex:none}
.mdai-h b{display:block;font-family:'Cormorant Garamond',Georgia,serif;font-size:19px;font-weight:600;color:#e6cf8c;letter-spacing:.03em}
.mdai-h small{display:block;font-size:11.5px;color:#a89f8c;margin-top:1px}
.mdai-x{margin-left:auto;background:none;border:0;color:#a89f8c;font-size:26px;line-height:1;cursor:pointer;padding:4px 8px}
.mdai-x:hover{color:#e6cf8c}
.mdai-m{flex:1;overflow-y:auto;padding:16px;display:flex;flex-direction:column;gap:10px;scroll-behavior:smooth}
.mdai-b{max-width:86%;padding:10px 14px;border-radius:16px;font-size:14.5px;line-height:1.5;word-wrap:break-word;white-space:pre-wrap}
.mdai-b.a{align-self:flex-start;background:#1a1612;border:1px solid rgba(212,175,90,.22);border-bottom-left-radius:4px}
.mdai-b.u{align-self:flex-end;background:linear-gradient(135deg,#e6cf8c,#c79f45);color:#14110b;border-bottom-right-radius:4px}
.mdai-b b{color:#e6cf8c}.mdai-b.u b{color:#14110b}
.mdai-typing{display:inline-flex;gap:4px;padding:2px 0}.mdai-typing i{width:6px;height:6px;border-radius:50%;background:#d4af5a;animation:mdt 1.2s infinite}.mdai-typing i:nth-child(2){animation-delay:.2s}.mdai-typing i:nth-child(3){animation-delay:.4s}
@keyframes mdt{0%,60%,100%{opacity:.25;transform:none}30%{opacity:1;transform:translateY(-3px)}}
.mdai-chips{display:flex;flex-wrap:wrap;gap:8px;padding:0 16px 10px}
.mdai-chips button{background:transparent;border:1px solid rgba(212,175,90,.5);color:#e6cf8c;border-radius:999px;padding:7px 13px;font-size:13px;cursor:pointer}
.mdai-chips button:hover{background:rgba(212,175,90,.12)}
.mdai-f{display:flex;gap:8px;padding:12px;border-top:1px solid rgba(212,175,90,.25);background:#0e0d0b}
.mdai-f textarea{flex:1;resize:none;height:44px;max-height:110px;background:#161310;border:1px solid rgba(212,175,90,.3);color:#f4eee1;border-radius:12px;padding:11px 12px;font-size:14.5px;outline:none}
.mdai-f textarea:focus{border-color:#d4af5a}
.mdai-f button{width:46px;border:0;border-radius:12px;background:linear-gradient(135deg,#e6cf8c,#b48a2e);color:#14110b;font-size:20px;cursor:pointer}
.mdai-f button:disabled{opacity:.5;cursor:default}
.mdai-note{padding:0 16px 10px;font-size:11px;color:#8d8575;text-align:center}
.mdai-lead{margin:2px 0 4px;align-self:stretch;background:#15110d;border:1px solid rgba(212,175,90,.45);border-radius:14px;padding:14px;display:flex;flex-direction:column;gap:9px}
.mdai-lead strong{font-family:'Cormorant Garamond',Georgia,serif;font-size:18px;color:#e6cf8c;font-weight:600}
.mdai-lead input[type=text],.mdai-lead textarea{background:#0b0b0b;border:1px solid rgba(212,175,90,.3);color:#f4eee1;border-radius:10px;padding:10px 11px;font-size:14px;outline:none;width:100%}
.mdai-lead input:focus,.mdai-lead textarea:focus{border-color:#d4af5a}
.mdai-lead label{font-size:12px;color:#a89f8c;display:flex;gap:8px;align-items:flex-start;line-height:1.4}
.mdai-lead a{color:#e6cf8c}
.mdai-lead .go{background:linear-gradient(135deg,#e6cf8c,#b48a2e);color:#14110b;border:0;border-radius:10px;padding:11px;font-weight:600;letter-spacing:.06em;cursor:pointer;font-size:13px;text-transform:uppercase}
.mdai-lead .go:disabled{opacity:.6}
.mdai-err{color:#e88;font-size:12px}
.mdai-hp{position:absolute!important;left:-9999px!important;opacity:0!important;height:0!important}
.mdai-book{display:inline-block;margin-top:8px;color:#e6cf8c;font-size:13px;text-decoration:underline}
@media(max-width:560px){#mdai-panel{right:0;bottom:0;width:100vw;max-width:100vw;height:100dvh;max-height:100dvh;border-radius:0;border:0}#mdai-btn{right:84px;bottom:14px}}
