.bidm-agent{position:fixed;right:22px;bottom:22px;z-index:520;font:inherit;color:var(--ink,#152238)}
.bidm-agent-launcher{display:flex;align-items:center;gap:10px;min-height:54px;padding:0 19px;border:0;border-radius:999px;background:var(--navy,#0b1f3a);color:#fff;font:inherit;font-weight:800;box-shadow:0 12px 32px rgba(11,31,58,.28);cursor:pointer}
.bidm-agent-launcher:hover{background:var(--teal,#0e8f87)}
.bidm-agent-launcher-icon{color:#ffd36d;font-size:1.35rem}
.bidm-agent-panel{position:fixed;right:22px;bottom:92px;display:flex;flex-direction:column;width:min(410px,calc(100vw - 32px));height:min(570px,calc(100dvh - 124px));overflow:hidden;border:1px solid var(--line,#dbe1e8);border-radius:20px;background:#fff;box-shadow:0 22px 70px rgba(11,31,58,.24)}
.bidm-agent-panel[hidden]{display:none}
.bidm-agent-header{display:flex;justify-content:space-between;align-items:flex-start;gap:14px;padding:19px 20px;background:var(--navy,#0b1f3a);color:#fff}
.bidm-agent-header h2{margin:4px 0 0;font-size:1.18rem;line-height:1.25;color:#fff}
.bidm-agent-status{font-size:.72rem;font-weight:800;letter-spacing:.08em;text-transform:uppercase;color:#74ddd3}
.bidm-agent-header-actions{display:flex;align-items:center;gap:12px;white-space:nowrap}
.bidm-agent-header-actions a{color:#fff;font-size:.78rem;font-weight:800;text-decoration:underline;text-underline-offset:3px}
.bidm-agent-close{display:grid;place-items:center;width:34px;height:34px;border:1px solid rgba(255,255,255,.28);border-radius:50%;background:transparent;color:#fff;font-size:1.5rem;line-height:1;cursor:pointer}
.bidm-agent-messages{flex:1;min-height:0;overflow:auto;padding:18px;background:#f7f8fa;scroll-behavior:smooth}
.bidm-agent-message{max-width:92%;margin:0 0 12px;padding:12px 14px;border-radius:15px;background:#fff;color:var(--ink,#152238);font-size:.9rem;line-height:1.5;white-space:pre-wrap;overflow-wrap:anywhere;box-shadow:0 2px 8px rgba(11,31,58,.06)}
.bidm-agent-assistant{border:1px solid var(--line,#dbe1e8);border-top-left-radius:5px}
.bidm-agent-user{margin-left:auto;background:#e3f5f2;color:#123d3a;border-top-right-radius:5px}
.bidm-agent-pending{color:var(--muted,#5c6878);font-style:italic}
.bidm-agent-error{border-color:#f2c9c7;background:#fff5f4}
.bidm-agent-error a{color:#a5221e;font-weight:800}
.bidm-agent-suggestions{display:flex;flex-wrap:wrap;gap:8px;padding:0 16px 12px}
.bidm-agent-suggestions button{padding:7px 11px;border:1px solid #b9d7d4;border-radius:999px;background:#f1faf8;color:#145a55;font:inherit;font-size:.76rem;font-weight:800;cursor:pointer}
.bidm-agent-suggestions button:hover{background:#dff2ef}
.bidm-agent-form{display:flex;align-items:flex-end;gap:9px;padding:12px 14px;border-top:1px solid var(--line,#dbe1e8)}
.bidm-agent-form textarea{flex:1;min-width:0;max-height:110px;resize:vertical;padding:11px 12px;border:1px solid #c8d0da;border-radius:12px;background:#fff;color:var(--ink,#152238);font:inherit;font-size:.9rem;line-height:1.35}
.bidm-agent-form button{min-height:42px;padding:0 15px;border:0;border-radius:11px;background:var(--red,#df342f);color:#fff;font:inherit;font-weight:800;cursor:pointer}
.bidm-agent-form button:disabled{opacity:.55;cursor:wait}
.bidm-agent-disclaimer,.bidm-agent-status-message{margin:0;padding:0 16px 10px;color:var(--muted,#5c6878);font-size:.72rem;line-height:1.4}
.bidm-agent-status-message{padding-bottom:12px}
.bidm-agent :focus-visible{outline:3px solid #e5a934;outline-offset:3px}
@media(max-width:700px){
  .bidm-agent{right:14px;bottom:calc(4.75rem + env(safe-area-inset-bottom))}
  .bidm-agent-launcher{min-height:50px;padding:0 16px}
  .bidm-agent-panel{right:12px;bottom:calc(4.75rem + 66px + .8rem + env(safe-area-inset-bottom));width:calc(100vw - 24px);height:min(570px,calc(100dvh - 12rem - env(safe-area-inset-bottom)));max-height:calc(100dvh - 12rem - env(safe-area-inset-bottom))}
}
@media(prefers-reduced-motion:reduce){.bidm-agent-messages{scroll-behavior:auto}}