.bc-group { margin-top: 0.75rem; display: grid; gap: 0.6rem; }
.bc-group[hidden] { display: none; }
.bc-group-title {
  margin: 0.4rem 0 0; text-align: center; font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase; color: #ffcf75;
}
.bc-btn { width: 100%; cursor: pointer; }
.bc-toast {
  margin: 0; padding: 0.55rem 0.75rem; border-radius: 0.6rem; text-align: center;
  font-size: 0.82rem; line-height: 1.3; color: #fff; background: rgba(255, 210, 103, 0.14);
  border: 1px solid rgba(255, 210, 103, 0.35);
}
.bc-toast[hidden] { display: none; }

.bc-noscroll { overflow: hidden; }
.bc-overlay {
  position: fixed; inset: 0; z-index: 2147483000; display: none;
  align-items: flex-end; justify-content: center; padding: 0;
  background: rgba(0, 0, 0, 0.72);
}
.bc-overlay.is-open { display: flex; }
.bc-panel {
  display: flex; flex-direction: column; width: 100%; max-width: 30rem; height: min(92dvh, 42rem);
  background: #121012; color: #f8f5f6; border: 1px solid rgba(255, 210, 103, 0.35);
  border-radius: 1rem 1rem 0 0; overflow: hidden; font-family: inherit;
}
@media (min-width: 640px) {
  .bc-overlay { align-items: center; padding: 1rem; }
  .bc-panel { border-radius: 1rem; }
}
.bc-head {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem;
  padding: 0.9rem 1rem; border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.bc-head-title { margin: 0; font-size: 1.05rem; font-weight: 700; color: #ffd267; }
.bc-head-sub { margin: 0.15rem 0 0; font-size: 0.75rem; color: rgba(255, 255, 255, 0.65); }
.bc-close {
  width: 2.4rem; height: 2.4rem; flex: none; border-radius: 50%; cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.15); background: rgba(255, 255, 255, 0.06);
  color: #fff; font-size: 1.4rem; line-height: 1;
}
.bc-summary {
  display: flex; flex-wrap: wrap; gap: 0.25rem 0.9rem; padding: 0.6rem 1rem;
  font-size: 0.82rem; color: rgba(255, 255, 255, 0.8); background: rgba(255, 210, 103, 0.08);
  border-bottom: 1px solid rgba(255, 210, 103, 0.2);
}
.bc-summary strong { flex-basis: 100%; color: #ffd267; font-size: 0.9rem; }
.bc-messages { flex: 1; overflow-y: auto; padding: 0.8rem 1rem; display: flex; flex-direction: column; gap: 0.5rem; }
.bc-msg { display: flex; }
.bc-msg-me { justify-content: flex-end; }
.bc-bubble {
  max-width: 82%; padding: 0.55rem 0.75rem; border-radius: 0.9rem; white-space: pre-wrap;
  overflow-wrap: anywhere; font-size: 0.92rem; line-height: 1.4;
}
.bc-msg-me .bc-bubble { background: #ffd267; color: #1a1300; border-bottom-right-radius: 0.25rem; }
.bc-msg-them .bc-bubble { background: rgba(255, 255, 255, 0.12); color: #fff; border-bottom-left-radius: 0.25rem; }
.bc-time { display: block; margin-top: 0.2rem; font-size: 0.68rem; opacity: 0.6; text-align: right; }
.bc-note { margin: 0.3rem 0; text-align: center; font-size: 0.78rem; color: rgba(255, 255, 255, 0.6); }
.bc-contact { padding: 0.5rem 1rem 0; }
.bc-contact[hidden] { display: none; }
.bc-contact label { display: block; margin-bottom: 0.25rem; font-size: 0.75rem; color: rgba(255, 255, 255, 0.65); }
.bc-contact input {
  width: 100%; box-sizing: border-box; padding: 0.55rem 0.7rem; border-radius: 0.6rem; font-size: 16px;
  color: #fff; background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.18);
}
.bc-error { margin: 0.5rem 1rem 0; font-size: 0.8rem; color: #ff9b9b; }
.bc-error[hidden] { display: none; }
.bc-form { display: flex; gap: 0.5rem; align-items: flex-end; padding: 0.7rem 1rem 0.9rem; }
.bc-input {
  flex: 1; box-sizing: border-box; resize: none; padding: 0.6rem 0.7rem; border-radius: 0.7rem; font-size: 16px;
  font-family: inherit; color: #fff; background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.18);
}
.bc-send {
  min-width: 4.5rem; padding: 0.7rem 1rem; border: 0; border-radius: 0.7rem; cursor: pointer;
  font-weight: 700; color: #1a1300; background: #ffd267;
}
.bc-send:disabled { opacity: 0.55; cursor: default; }
.bc-summary[hidden], .bc-push[hidden], .bc-file[hidden] { display: none; }
.bc-status { font-size: 0.68rem; }
.bc-status.is-read { color: #0a4fb3; font-weight: 700; }
.bc-img { display: block; max-width: 100%; max-height: 16rem; margin-bottom: 0.35rem; border-radius: 0.6rem; cursor: zoom-in; background: rgba(255, 255, 255, 0.1); min-height: 3rem; min-width: 6rem; }
.bc-push {
  padding: 0.5rem 1rem; font-size: 0.8rem; line-height: 1.35; color: rgba(255, 255, 255, 0.85);
  background: rgba(255, 210, 103, 0.06); border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.bc-push-btn {
  width: 100%; padding: 0.5rem 0.75rem; cursor: pointer; border-radius: 0.6rem; font-weight: 600;
  color: #ffd267; background: transparent; border: 1px solid rgba(255, 210, 103, 0.5);
}
.bc-file {
  display: flex; align-items: center; justify-content: space-between; gap: 0.5rem;
  margin: 0.5rem 1rem 0; padding: 0.4rem 0.7rem; border-radius: 0.6rem; font-size: 0.8rem;
  background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.15);
}
.bc-file-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bc-file-remove { flex: none; border: 0; background: none; color: #fff; font-size: 1.2rem; cursor: pointer; }
.bc-attach {
  flex: none; width: 2.6rem; height: 2.6rem; cursor: pointer; border-radius: 0.7rem; font-size: 1.15rem;
  color: #fff; background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.18);
}

.bc-fab {
  position: fixed; right: 0.9rem; bottom: calc(5.6rem + env(safe-area-inset-bottom, 0px)); z-index: 55;
  display: flex; align-items: center; justify-content: center;
  width: 3.5rem; height: 3.5rem; padding: 0; cursor: pointer; border-radius: 50%;
  color: #ffd267; background: rgba(12, 12, 12, 0.94); border: 1.8px solid rgba(212, 175, 55, 0.9);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.4), 0 0 18px rgba(255, 215, 0, 0.2);
  -webkit-tap-highlight-color: transparent;
}
.bc-fab:active { transform: scale(0.95); }
.bc-fab-label {
  position: absolute; right: 4.1rem; top: 50%; transform: translateY(-50%); white-space: nowrap;
  padding: 0.35rem 0.7rem; border-radius: 999px; font-size: 0.78rem; font-weight: 600; pointer-events: none;
  color: #ffd267; background: rgba(12, 12, 12, 0.94); border: 1px solid rgba(212, 175, 55, 0.6);
  animation: bc-label-fade 0.5s ease 6s forwards;
}
@keyframes bc-label-fade { to { opacity: 0; visibility: hidden; } }
.bc-fab-dot {
  position: absolute; top: 0.05rem; right: 0.05rem; width: 0.95rem; height: 0.95rem; border-radius: 50%;
  background: #e5261f; border: 2px solid #0c0c0c;
}
.bc-fab-dot[hidden] { display: none; }
@media (prefers-reduced-motion: reduce) { .bc-fab-label { animation-duration: 0.01s; } }
