.bc-launch {
  position: fixed;
  bottom: calc(84px + env(safe-area-inset-bottom));
  right: 12px;
  z-index: 35;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 16px;
  border: 1px solid var(--paper);
  border-radius: 999px;
  background: rgba(20, 20, 20, .9);
  color: var(--paper);
  font: 600 15px var(--sans);
  cursor: pointer;
}

.bc-launch:focus-visible,
.bc-close:focus-visible,
.bc-chip:focus-visible,
.bc-input:focus-visible,
.bc-send:focus-visible,
.bc-cta:focus-visible {
  outline: 2px solid var(--hi);
  outline-offset: 2px;
}

.bc-panel {
  position: fixed;
  left: 8px;
  right: 8px;
  bottom: calc(8px + env(safe-area-inset-bottom));
  height: min(560px, calc(100svh - 90px));
  z-index: 40;
  display: flex;
  flex-direction: column;
  background: rgba(20, 20, 20, .94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(239, 233, 222, .14);
  border-radius: 22px;
  color: var(--paper);
  opacity: 0;
  transform: translateY(16px) scale(.98);
  pointer-events: none;
  transition: opacity 200ms ease, transform 200ms ease;
  overflow: hidden;
}

.bc-panel[hidden] {
  display: none;
}

.bc-panel.bc-open {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

.bc-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px 12px;
  border-bottom: 1px solid rgba(239, 233, 222, .14);
}

.bc-title {
  margin: 0;
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 400;
  color: var(--paper);
}

.bc-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  border: 1px solid rgba(239, 233, 222, .2);
  border-radius: 999px;
  background: transparent;
  color: var(--paper);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.bc-list {
  flex: 1 1 auto;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.bc-msg {
  flex: none;
  max-width: 85%;
  padding: 10px 14px;
  border-radius: 16px;
  line-height: 1.4;
  font-size: 15px;
  word-wrap: break-word;
  overflow-wrap: anywhere;
}

.bc-msg.bc-user {
  align-self: flex-end;
  background: var(--hi);
  color: var(--hi-ink);
}

.bc-msg.bc-bot {
  align-self: flex-start;
  background: rgba(239, 233, 222, .08);
  color: var(--paper);
}

.bc-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0 16px 12px;
}

.bc-chip {
  min-height: 44px;
  padding: 8px 12px;
  border: 1px solid rgba(239, 233, 222, .3);
  border-radius: 999px;
  background: transparent;
  color: var(--paper);
  font: 500 14px var(--sans);
  cursor: pointer;
}

.bc-form {
  display: flex;
  gap: 8px;
  padding: 12px 16px;
}

.bc-input {
  min-width: 0;
  flex: 1 1 auto;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid rgba(239, 233, 222, .2);
  border-radius: 999px;
  background: rgba(239, 233, 222, .06);
  color: var(--paper);
  font-size: 16px;
  font-family: var(--sans);
}

.bc-send {
  min-width: 44px;
  min-height: 44px;
  padding: 0 16px;
  border: none;
  border-radius: 999px;
  background: var(--hi);
  color: var(--hi-ink);
  font: 600 14px var(--sans);
  cursor: pointer;
}

.bc-note {
  margin: 0;
  padding: 8px 16px 12px;
  color: var(--dim);
  font-size: 12px;
  line-height: 1.4;
}

.bc-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 8px;
  min-height: 44px;
  text-decoration: none;
}

.bc-typing {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 20px;
}

.bc-typing span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--paper);
  display: inline-block;
  animation: bc-typing-bounce 1.2s infinite ease-in-out;
}

.bc-typing span:nth-child(2) {
  animation-delay: .15s;
}

.bc-typing span:nth-child(3) {
  animation-delay: .3s;
}

@keyframes bc-typing-bounce {
  0%, 80%, 100% {
    transform: translateY(0);
    opacity: .4;
  }
  40% {
    transform: translateY(-4px);
    opacity: 1;
  }
}

.bc-launch[aria-expanded=true]{display:none}
.bc-emoji{font-size:18px;line-height:1}

@media (min-width: 820px) {
  .bc-launch {
    right: 20px;
  }

  .bc-panel {
    left: auto;
    right: 20px;
    bottom: calc(84px + env(safe-area-inset-bottom));
    width: 380px;
    height: min(560px, calc(100vh - 120px));
  }
}

@media (prefers-reduced-motion: reduce) {
  .bc-launch, .bc-panel, .bc-panel * {
    transition: none !important;
    animation: none !important;
  }
}

.bc-chips[hidden]{display:none}

/* entry points that never cover content */
.bc-launch{display:none}
.bc-hero-ask{margin:14px 0 0;text-align:left}
.bc-hero-link{background:none;border:0;padding:10px 0;min-height:44px;color:rgba(239,233,222,.78);font:500 15px var(--sans);text-decoration:underline;text-underline-offset:3px;cursor:pointer}
.bc-hero-link:hover{color:var(--paper)}
.bc-hero-link:focus-visible{outline:2px solid var(--hi);outline-offset:3px;border-radius:4px}
.buybar .bc-ask{background:#141414;margin-left:auto;min-height:42px;padding:0 20px;font-size:15px}
.buybar{gap:10px}
@media (min-width:820px){.bc-hero-ask{text-align:center}}
@media (min-width:1200px){
  .bc-launch{display:inline-flex;width:52px;height:52px;min-height:52px;padding:0;border-radius:50%;right:20px}
  .bc-launch .bc-lbl{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
  .bc-launch .bc-emoji{font-size:24px}
  .bc-launch[aria-expanded=true]{display:none}
}
