.cbot-header-tools {
  gap: 0.35rem;
  margin: 0 0.15rem 0 0;
  padding: 0;
  min-width: 0;
}
.app-header .nav-item.cbot-header-tools {
  min-width: 0;
}
.cbot-help {
  position: relative;
  margin: 0;
}
.cbot-help-bell.is-open {
  border-color: #c4b5fd;
  color: #5b21b6;
  box-shadow: 0 0 0 3px rgba(178, 0, 253, 0.12);
}
.cbot-help-drawer {
  position: fixed;
  top: var(--cbot-header-height, 55px);
  right: 0;
  bottom: 0;
  z-index: 1040;
  display: none;
  flex-direction: column;
  width: min(400px, 100vw);
  background: #fff;
  border-left: 1px solid #e5e7eb;
  box-shadow: -16px 0 40px rgba(15, 23, 42, 0.1);
}
.cbot-help-drawer.is-open {
  display: flex;
}
@media (max-width: 575.98px) {
  body.cbot-help-open {
    overflow: hidden;
  }
}
.cbot-help-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  flex: 0 0 auto;
  padding: 0.9rem 1rem 0.75rem;
  border-bottom: 1px solid #f1f3f5;
}
.cbot-help-head__copy {
  min-width: 0;
}
.cbot-help-title {
  margin: 0;
  font-size: 0.92rem;
  font-weight: 700;
  color: #111827;
  letter-spacing: 0.01em;
}
.cbot-help-context {
  margin: 0.15rem 0 0;
  font-size: 0.78rem;
  color: #6b7280;
}
.cbot-help-close {
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  margin: -0.15rem -0.2rem 0 0;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #6b7280;
  font-size: 1.05rem;
  line-height: 1;
  cursor: pointer;
}
.cbot-help-close:hover,
.cbot-help-close:focus {
  background: #f3f4f6;
  color: #111827;
  outline: none;
}
.cbot-help-thread {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  padding: 0.9rem 1rem 1rem;
}
.cbot-help-welcome__lead {
  margin: 0 0 0.75rem;
  font-size: 0.86rem;
  line-height: 1.45;
  color: #374151;
}
.cbot-help-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}
.cbot-help-chip,
.cbot-help-related {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  padding: 0.35rem 0.7rem;
  border: 1px solid #ddd6fe;
  border-radius: 999px;
  background: #f5f3ff;
  color: #5b21b6;
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.3;
  text-align: left;
  cursor: pointer;
}
.cbot-help-chip:hover,
.cbot-help-chip:focus,
.cbot-help-related:hover,
.cbot-help-related:focus {
  background: #ede9fe;
  border-color: #c4b5fd;
  outline: none;
}
.cbot-help-msg {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.35rem;
  margin: 0 0 0.85rem;
}
.cbot-help-msg--user {
  align-items: flex-end;
}
.cbot-help-bubble {
  max-width: 100%;
  padding: 0.65rem 0.8rem;
  border-radius: 0.85rem;
  font-size: 0.84rem;
  line-height: 1.45;
  color: #1f2937;
}
.cbot-help-msg--user .cbot-help-bubble {
  background: #7c69ef;
  color: #fff;
  border-bottom-right-radius: 0.3rem;
}
.cbot-help-msg--bot .cbot-help-bubble {
  background: #f8f5ff;
  border: 1px solid #efeaff;
  border-bottom-left-radius: 0.3rem;
}
.cbot-help-bubble--pending {
  padding: 0.7rem 0.95rem;
}
.cbot-help-dots {
  display: inline-flex;
  align-items: center;
  gap: 0.28rem;
  height: 0.7rem;
}
.cbot-help-dots i {
  width: 0.38rem;
  height: 0.38rem;
  border-radius: 50%;
  background: #a78bfa;
  animation: cbot-help-dot 1s ease-in-out infinite;
}
.cbot-help-dots i:nth-child(2) { animation-delay: 0.15s; }
.cbot-help-dots i:nth-child(3) { animation-delay: 0.3s; }
@keyframes cbot-help-dot {
  0%, 80%, 100% { opacity: 0.35; transform: translateY(0); }
  40% { opacity: 1; transform: translateY(-2px); }
}
.cbot-help-bubble p {
  margin: 0 0 0.55rem;
}
.cbot-help-bubble p:last-child {
  margin-bottom: 0;
}
.cbot-help-bubble ul,
.cbot-help-bubble ol {
  margin: 0 0 0.55rem;
  padding-left: 1.15rem;
}
.cbot-help-bubble li + li {
  margin-top: 0.2rem;
}
.cbot-help-bubble table {
  width: 100%;
  margin: 0.35rem 0 0.65rem;
  border-collapse: collapse;
  font-size: 0.78rem;
}
.cbot-help-bubble th,
.cbot-help-bubble td {
  padding: 0.28rem 0.4rem;
  border: 1px solid #e9d5ff;
  text-align: left;
}
.cbot-help-bubble th {
  background: #f3e8ff;
  font-weight: 650;
}
.cbot-help-related-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.15rem;
}
.cbot-help-open-wrap {
  width: 100%;
}
.cbot-help-open-page {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.75rem;
  border: 1px solid #ddd6fe;
  border-radius: 999px;
  background: #fff;
  color: #5b21b6;
  font-size: 0.78rem;
  font-weight: 650;
  text-decoration: none;
}
.cbot-help-open-page i {
  font-size: 0.95rem;
  line-height: 1;
}
.cbot-help-open-page:hover,
.cbot-help-open-page:focus {
  background: #f5f3ff;
  border-color: #c4b5fd;
  color: #5b21b6;
  text-decoration: none;
  outline: none;
}
.cbot-help-video {
  width: 100%;
}
.cbot-help-watch {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.75rem;
  border: 1px solid #ddd6fe;
  border-radius: 999px;
  background: #fff;
  color: #5b21b6;
  font-size: 0.78rem;
  font-weight: 650;
  cursor: pointer;
}
.cbot-help-watch i {
  font-size: 1.05rem;
  line-height: 1;
}
.cbot-help-watch:hover,
.cbot-help-watch:focus,
.cbot-help-watch.is-open {
  background: #f5f3ff;
  border-color: #c4b5fd;
  outline: none;
}
.cbot-help-player {
  margin-top: 0.45rem;
  overflow: hidden;
  border-radius: 0.65rem;
  background: #111;
  aspect-ratio: 16 / 9;
}
.cbot-help-player iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}
.cbot-help-feedback {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.15rem;
  width: 100%;
  align-self: stretch;
}
.cbot-help-feedback [data-help-ok],
.cbot-help-feedback [data-help-stuck] {
  border: 0;
  background: none;
  padding: 0;
  color: #7c3aed;
  font-size: 0.74rem;
  font-weight: 600;
  cursor: pointer;
}
.cbot-help-feedback [data-help-ok]:hover,
.cbot-help-feedback [data-help-ok]:focus,
.cbot-help-feedback [data-help-stuck]:hover,
.cbot-help-feedback [data-help-stuck]:focus {
  text-decoration: underline;
  outline: none;
}
.cbot-help-note {
  margin: 0.15rem 0 0;
  font-size: 0.74rem;
  color: #6b7280;
}
.cbot-help-stuck {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
}
.cbot-help-stuck__label {
  font-size: 0.74rem;
  font-weight: 650;
  color: #374151;
}
.cbot-help-stuck__input {
  display: block;
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
  min-height: 4.2rem;
  max-height: 7.5rem;
  resize: vertical;
  border: 1px solid #e5e7eb;
  border-radius: 0.65rem;
  background: #f9fafb;
  padding: 0.45rem 0.6rem;
  font-size: 0.82rem;
  line-height: 1.4;
  color: #111827;
}
.cbot-help-stuck__input:focus {
  outline: none;
  border-color: #c4b5fd;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(178, 0, 253, 0.1);
}
.cbot-help-stuck__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem;
}
.cbot-help-stuck__send {
  border: 0;
  border-radius: 999px;
  background: #7c69ef;
  color: #fff;
  font-size: 0.74rem;
  font-weight: 650;
  padding: 0.35rem 0.75rem;
  cursor: pointer;
  text-decoration: none;
}
.cbot-help-stuck__send:hover,
.cbot-help-stuck__send:focus {
  background: #6d5ce8;
  color: #fff;
  outline: none;
  text-decoration: none;
}
.cbot-help-stuck__send:disabled {
  opacity: 0.55;
  cursor: default;
}
.cbot-help-stuck__cancel {
  border: 0;
  background: none;
  padding: 0;
  color: #6b7280;
  font-size: 0.74rem;
  font-weight: 600;
  cursor: pointer;
}
.cbot-help-stuck__cancel:hover,
.cbot-help-stuck__cancel:focus {
  color: #111827;
  outline: none;
}
.cbot-help-composer {
  display: flex;
  align-items: flex-end;
  gap: 0.5rem;
  flex: 0 0 auto;
  padding: 0.7rem 0.85rem 0.85rem;
  border-top: 1px solid #f1f3f5;
  background: #fff;
}
.cbot-help-input {
  flex: 1 1 auto;
  min-width: 0;
  max-height: 7.5rem;
  resize: none;
  border: 1px solid #e5e7eb;
  border-radius: 0.75rem;
  background: #f9fafb;
  padding: 0.5rem 0.7rem;
  font-size: 0.84rem;
  line-height: 1.4;
  color: #111827;
}
.cbot-help-input:focus {
  outline: none;
  border-color: #c4b5fd;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(178, 0, 253, 0.1);
}
.cbot-help-send {
  flex: 0 0 auto;
  border: 0;
  border-radius: 999px;
  background: #7c69ef;
  color: #fff;
  font-size: 0.78rem;
  font-weight: 650;
  padding: 0.48rem 0.85rem;
  cursor: pointer;
}
.cbot-help-send:hover,
.cbot-help-send:focus {
  background: #6d5ce8;
  outline: none;
}
.cbot-help-send:disabled {
  opacity: 0.55;
  cursor: default;
}
@media (max-width: 575.98px) {
  .cbot-help-drawer {
    width: 100vw;
  }
}
