.agent-launcher{position:fixed;right:24px;bottom:24px;z-index:20;display:flex;align-items:center;gap:10px;min-height:48px;padding:12px 18px;border:1px solid #38bdf8;border-radius:100px;background:#38bdf8;color:#0f172a;box-shadow:0 6px 24px #0f172a26;font:600 14px 'DM Sans',Arial,sans-serif;cursor:pointer}
.agent-launcher img{width:27px;height:22px;filter:none}
.agent-launcher:hover{background:#7dd3fc}.agent-launcher:focus-visible,.agent-close:focus-visible{outline:3px solid #38bdf8;outline-offset:4px}
.agent-panel{position:fixed;right:24px;bottom:88px;z-index:21;width:min(520px,calc(100vw - 32px));height:min(740px,calc(100dvh - 112px));border:1px solid #496078;border-radius:16px;background:#0f172a;box-shadow:0 18px 70px #0f172a40}
.agent-panel[hidden]{display:none}.agent-panel iframe{display:block;width:100%;height:100%;border:0;border-radius:15px;background:#0f172a}
.agent-close{position:absolute;top:-14px;right:-10px;z-index:1;width:44px;height:44px;border:1px solid #496078;border-radius:50%;background:#0f172a;color:#f8fafc;font:22px/1 Arial,sans-serif;cursor:pointer;box-shadow:0 2px 8px #0f172a20}
/* Keep the mobile launcher in page flow instead of over download/documentation controls. */
@media(max-width:600px){
  .agent-launcher{position:static;margin:0 20px 12px;background:transparent;border-color:#8798a8;box-shadow:none}
  .agent-launcher:hover{background:#edf3f7}
  .agent-launcher:focus-visible{outline-color:#0f172a}
  .agent-panel{width:min(520px,calc(100% - 32px));right:16px;bottom:16px;height:calc(100dvh - 48px)}
  .agent-close{top:-20px;right:-8px;width:44px;height:44px;font-size:24px}
}

.agent-load-state{display:flex;flex-direction:column;align-items:center;justify-content:center;height:100%;padding:32px;text-align:center;color:#f8fafc;line-height:1.6}
.agent-load-state[hidden],.agent-panel iframe[hidden],#agent-retry[hidden]{display:none}
#agent-retry{min-height:44px;border:1px solid #38bdf8;background:#38bdf8;color:#0f172a;cursor:pointer;font:inherit}
#agent-retry:focus-visible{outline:3px solid #f8fafc;outline-offset:4px}
@media(max-width:600px){.agent-panel{top:calc(var(--agent-view-top,0px) + 32px);bottom:auto;height:calc(var(--agent-view-height,100dvh) - 48px)}}
