/* Normal size follows Command Center settings; only maximized fills the viewport. */
body.standalone-bot { background:transparent; min-height:100dvh; }
body.standalone-bot .chat-widget {
  inset:auto 24px 88px auto;
  width:min(var(--bot-width),calc(100vw - 48px));
  height:min(var(--bot-height),calc(100dvh - 112px));
  max-width:none; max-height:none;
}
body.standalone-bot .chat-widget.maximized {
  inset:12px 12px 88px; width:auto; height:auto;
}
body.standalone-bot .chat-utility-dock { right:20px; bottom:18px; }
@media(max-width:520px) {
  body.standalone-bot .chat-widget {
    inset:auto 4px 78px auto;
    width:min(var(--bot-width),calc(100vw - 8px));
    height:min(var(--bot-height),calc(100dvh - 82px)); border-radius:18px;
  }
  body.standalone-bot .chat-widget.maximized { inset:4px 4px 78px; width:auto; height:auto; }
  body.standalone-bot .chat-utility-dock { right:12px; bottom:12px; }
}
