/* ---------- report bot ---------- */
.bot-fab{position:fixed;right:22px;bottom:22px;z-index:80;display:flex;align-items:center;gap:9px;
  background:linear-gradient(135deg,#2f56d9,#0d9488);color:#fff;border:0;border-radius:999px;
  padding:13px 18px;font:inherit;font-size:14px;font-weight:650;cursor:pointer;
  box-shadow:0 10px 26px -8px rgba(47,86,217,.55),0 2px 6px rgba(16,24,40,.12);transition:.18s}
.bot-fab:hover{transform:translateY(-2px);box-shadow:0 14px 30px -8px rgba(47,86,217,.6)}
.bot-fab .ic{width:18px;height:18px;flex:none}
.bot-fab.hide{opacity:0;pointer-events:none;transform:translateY(8px)}

.bot-panel{position:fixed;right:22px;bottom:22px;z-index:81;width:392px;height:min(620px,calc(100vh - 44px));
  background:#fff;border:1px solid var(--line);border-radius:18px;box-shadow:0 24px 60px -18px rgba(16,24,40,.4);
  display:flex;flex-direction:column;overflow:hidden;opacity:0;pointer-events:none;transform:translateY(10px);transition:.18s}
.bot-panel.open{opacity:1;pointer-events:auto;transform:none}

.bot-head{display:flex;align-items:center;gap:10px;padding:13px 14px;background:linear-gradient(135deg,#101a33,#1b2850);
  color:#fff;flex:none}
.bot-head .avatar{width:30px;height:30px;border-radius:9px;background:linear-gradient(135deg,#2f56d9,#0d9488);
  display:grid;place-items:center;font-weight:800;font-size:13px;flex:none}
.bot-head .tt{font-weight:700;font-size:14px;line-height:1.25}
.bot-head .tt small{display:block;font-weight:400;font-size:11px;color:#a9b9e4;margin-top:1px}
.bot-head .acts{margin-left:auto;display:flex;gap:4px}
.bot-head button{background:rgba(255,255,255,.1);border:0;color:#dce6fb;width:28px;height:28px;border-radius:8px;
  cursor:pointer;font-size:15px;line-height:1;display:grid;place-items:center}
.bot-head button:hover{background:rgba(255,255,255,.2)}

.bot-body{flex:1;overflow-y:auto;padding:14px;background:#f7f9fc;display:flex;flex-direction:column;gap:12px}
.bot-msg{display:flex;gap:8px;max-width:100%}
.bot-msg .bub{padding:10px 13px;border-radius:13px;font-size:13.5px;line-height:1.62;white-space:pre-wrap;
  word-break:break-word;max-width:310px}
.bot-msg.ai .bub{background:#fff;border:1px solid var(--line);border-bottom-left-radius:4px;color:var(--ink)}
.bot-msg.me{justify-content:flex-end}
.bot-msg.me .bub{background:linear-gradient(135deg,#2f56d9,#3f6ee8);color:#fff;border-bottom-right-radius:4px}
.bot-msg.ai .bub strong{font-weight:700}
.bot-cites{display:flex;flex-wrap:wrap;gap:6px;margin-top:7px}
.bot-cites a{display:inline-flex;align-items:center;gap:4px;font-size:11.5px;background:#eef4ff;color:#1f4bb8;
  border:1px solid #dbe6ff;border-radius:999px;padding:2px 8px;text-decoration:none;max-width:250px;
  overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.bot-cites a:hover{background:#e2ebff;text-decoration:none}

.bot-sugg{display:flex;flex-direction:column;gap:7px;margin-top:2px}
.bot-sugg button{text-align:left;font:inherit;font-size:12.5px;color:var(--ink2);background:#fff;border:1px solid var(--line);
  border-radius:10px;padding:8px 11px;cursor:pointer}
.bot-sugg button:hover{border-color:#b9c9f5;background:#f8faff;color:var(--brand)}

.bot-typing{display:flex;gap:4px;padding:12px 14px}
.bot-typing i{width:6px;height:6px;border-radius:50%;background:#9aa8c7;animation:botb 1.1s infinite}
.bot-typing i:nth-child(2){animation-delay:.15s}.bot-typing i:nth-child(3){animation-delay:.3s}
@keyframes botb{0%,60%,100%{transform:translateY(0);opacity:.4}30%{transform:translateY(-4px);opacity:1}}

.bot-note{font-size:11px;color:var(--muted);text-align:center;padding:0 10px 6px;background:#f7f9fc;flex:none}
.bot-foot{flex:none;padding:10px 12px 12px;background:#fff;border-top:1px solid var(--line)}
.bot-inrow{display:flex;gap:8px;align-items:flex-end;background:#f6f7fb;border:1px solid var(--line);border-radius:12px;padding:7px 8px}
.bot-inrow:focus-within{border-color:#a9bcf5;box-shadow:0 0 0 3px #e8eeff}
.bot-inrow textarea{flex:1;border:0;background:transparent;font:inherit;font-size:13.5px;line-height:1.5;
  resize:none;outline:none;max-height:96px;color:var(--ink);padding:3px 2px}
.bot-send{width:32px;height:32px;border-radius:9px;border:0;background:var(--brand);color:#fff;cursor:pointer;
  display:grid;place-items:center;flex:none}
.bot-send:disabled{background:#c3cbe0;cursor:not-allowed}
.bot-send svg{width:16px;height:16px}
.bot-disc{font-size:10.5px;color:var(--muted);margin-top:7px;text-align:center}

@media(max-width:720px){
  .bot-fab{right:14px;bottom:14px;padding:11px 15px}
  .bot-panel{right:0;bottom:0;width:100%;height:min(86vh,720px);border-radius:18px 18px 0 0}
  .bot-msg .bub{max-width:82vw}
}
@media print{.bot-fab,.bot-panel{display:none}}
