#aob-bubble-btn {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 99997;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0,0,0,.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 26px;
}
#aob-panel {
  position: fixed;
  right: 20px;
  bottom: 88px;
  z-index: 99997;
  width: min(340px, calc(100vw - 40px));
  height: min(480px, calc(100vh - 140px));
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 12px 40px rgba(0,0,0,.25);
  display: none;
  flex-direction: column;
  overflow: hidden;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}
#aob-panel.aob-open { display: flex; }
#aob-panel-header {
  color: #fff;
  padding: 14px 16px;
  font-weight: 700;
  font-size: .95rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
#aob-panel-close { background: none; border: none; color: inherit; font-size: 20px; cursor: pointer; line-height: 1; }
#aob-messages { flex: 1 1 auto; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.aob-msg { max-width: 82%; padding: 9px 13px; border-radius: 14px; font-size: .88rem; line-height: 1.4; }
.aob-msg-user { align-self: flex-end; background: #f0f0f0; color: #222; border-bottom-right-radius: 4px; }
.aob-msg-assistant { align-self: flex-start; background: #eef3ff; color: #1a2540; border-bottom-left-radius: 4px; }
.aob-msg-typing { align-self: flex-start; opacity: .6; font-style: italic; }
#aob-panel-footer { border-top: 1px solid #eee; padding: 10px; display: flex; gap: 8px; }
#aob-input {
  flex: 1 1 auto;
  min-width: 0;
  border: 1px solid #ddd;
  border-radius: 20px;
  padding: 9px 14px;
  font-size: .88rem;
  font-family: inherit;
  outline: none;
  transition: border-color .15s ease, box-shadow .15s ease;
}
#aob-input:focus {
  border-color: var(--aob-brand, #AF332F);
  box-shadow: 0 0 0 3px rgba(175,51,47,.18);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--aob-brand, #AF332F) 20%, transparent);
}
#aob-send {
  border: none;
  border-radius: 50%;
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  font-size: 16px;
  line-height: 1;
  color: #fff;
  cursor: pointer;
}
#aob-send:hover { filter: brightness(1.08); }
#aob-handover { display: block; text-align: center; font-size: .75rem; padding: 6px 10px; color: #666; text-decoration: none; border-top: 1px solid #f2f2f2; }
@media (prefers-reduced-motion: no-preference) {
  #aob-panel { transition: opacity .15s ease; }
}
