.help-floating-button {
  position: fixed;
  right: 18px;
  bottom: 72px;
  z-index: 1050;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 0;
  border-radius: 999px;
  padding: 0 13px;
  height: 44px;
  background: #0d6efd;
  color: #fff;
  box-shadow: 0 8px 20px rgba(13, 110, 253, .28);
  font-size: .88rem;
  font-weight: 600;
}

.help-floating-button:hover,
.help-floating-button:focus {
  background: #0b5ed7;
  color: #fff;
}

.help-panel {
  position: fixed;
  z-index: 1051;
  right: 18px;
  bottom: 126px;
  display: flex;
  width: min(410px, calc(100vw - 36px));
  max-height: min(650px, calc(100vh - 146px));
  flex-direction: column;
  overflow: hidden;
  border: 1px solid #d9e2ec;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 18px 42px rgba(15, 23, 42, .24);
}

.help-panel[hidden] {
  display: none;
}

.help-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem;
  border-bottom: 1px solid #e9ecef;
}

.help-panel-header h2 {
  margin: 0;
  font-size: 1rem;
}

.help-panel-close {
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  background: #f1f3f5;
  color: #212529;
  font-size: 1.4rem;
  line-height: 1;
}

.help-panel-intro {
  padding: 1rem 1rem 0;
}

.help-quick-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  padding: 0 1rem 1rem;
}

.help-quick-actions button {
  border: 1px solid #bcd0f7;
  border-radius: 999px;
  padding: .35rem .65rem;
  background: #f6f9ff;
  color: #0b5ed7;
  font-size: .82rem;
}

.help-messages {
  flex: 1;
  min-height: 110px;
  overflow-y: auto;
  padding: 0 1rem 1rem;
}

.help-message {
  margin: .6rem 0;
  padding: .7rem .8rem;
  border-radius: 10px;
  white-space: pre-wrap;
}

.help-message-user {
  margin-left: 2rem;
  background: #e8f0fe;
}

.help-message-assistant {
  margin-right: 1rem;
  background: #f5f7fa;
}

.help-feedback-suggestion {
  margin: -.25rem 1rem .75rem 0;
  padding-left: .25rem;
  font-size: .85rem;
  line-height: 1.35;
}

.help-feedback-suggestion .btn-link:hover,
.help-feedback-suggestion .btn-link:focus {
  color: #0a58ca;
  text-decoration: underline;
}

.help-related-articles {
  display: grid;
  gap: .5rem;
  margin: .5rem 0 1rem;
}

.help-related-article {
  display: block;
  border: 1px solid #d9e2ec;
  border-radius: 8px;
  padding: .65rem;
  color: inherit;
  text-decoration: none;
}

.help-related-article:hover,
.help-related-article:focus {
  color: inherit;
  border-color: #0d6efd;
}

.help-related-article strong,
.help-related-article span {
  display: block;
}

.help-related-article span {
  margin-top: .2rem;
  color: #6c757d;
  font-size: .85rem;
}

.help-chat-form {
  display: flex;
  gap: .5rem;
  padding: .75rem 1rem 1rem;
  border-top: 1px solid #e9ecef;
}

.help-chat-form input {
  min-width: 0;
}

@media (max-width: 576px) {
  .help-floating-button {
    right: 12px;
    bottom: 62px;
    height: 40px;
  }

  .help-panel {
    right: 8px;
    bottom: 110px;
    width: calc(100vw - 16px);
    max-height: calc(100vh - 122px);
  }
}
