.jb-bubble {
  position: fixed;
  left: 20px;
  bottom: 20px;
  z-index: 2147483000;
  width: 50px;
  height: 50px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgb(35, 43, 68);
  cursor: pointer;
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
}
.jb-bubble img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.jb-panel {
  position: fixed;
  left: 20px;
  bottom: 20px;
  z-index: 2147483000;
  display: flex;
  flex-direction: column;
  width: 380px;
  height: 560px;
  max-height: calc(100vh - 40px);
  border-radius: 12px;
  background: #111827;
  color: #e5e7eb;
  font:
    14px/1.45 system-ui,
    sans-serif;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
  overflow: hidden;
}
.jb-panel[hidden],
.jb-bubble[hidden],
.jb-chips[hidden] {
  display: none;
}
.jb-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  background: rgb(35, 43, 68);
  font-weight: 600;
}
.jb-face {
  width: 32px;
  height: 32px;
  margin-right: 10px;
  border-radius: 50%;
  object-fit: cover;
}
.jb-title {
  flex: 1;
}
.jb-close {
  border: 0;
  background: none;
  color: inherit;
  font-size: 22px;
  cursor: pointer;
}
.jb-log {
  flex: 1;
  overflow-y: auto;
  padding: 12px;
}
.jb-msg {
  max-width: 85%;
  margin-bottom: 8px;
  padding: 8px 12px;
  border-radius: 10px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.jb-assistant {
  background: #1f2937;
}
.jb-user {
  margin-left: auto;
  background: rgb(35, 43, 68);
}
.jb-error {
  color: #fca5a5;
}
.jb-chips {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 0 12px 8px;
  max-height: 40%;
  overflow-y: auto;
}
.jb-chip {
  padding: 6px 10px;
  border: 1px solid #fff;
  border-radius: 14px;
  background: none;
  color: #fff;
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.jb-form {
  display: flex;
  gap: 8px;
  padding: 10px 12px;
  border-top: 1px solid #374151;
}
.jb-input {
  flex: 1;
  padding: 8px 10px;
  border: 1px solid #374151;
  border-radius: 8px;
  background: #1f2937;
  color: inherit;
  font: inherit;
}
.jb-send {
  padding: 8px 14px;
  border: 0;
  border-radius: 8px;
  background: #fff;
  color: rgb(35, 43, 68);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}
@media (max-width: 480px) {
  .jb-panel {
    inset: 0;
    width: auto;
    height: auto;
    max-height: none;
    border-radius: 0;
  }
}
