.help-sidebar {
  position: fixed;
  top: 0;
  right: 0;
  z-index: var(--z-sidebar);
  width: min(92vw, 430px);
  height: 100dvh;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  overflow: hidden;
  border-left: 1px solid #a9c5d7;
  background: linear-gradient(180deg, #fbfdff, #edf6fb);
  box-shadow: -22px 0 55px rgba(29, 68, 95, 0.22);
  transform: translateX(105%);
  visibility: hidden;
  pointer-events: none;
  transition: transform 0.24s, visibility 0s linear 0.24s;
}

.help-sidebar.is-open {
  transform: none;
  visibility: visible;
  pointer-events: auto;
  transition-delay: 0s;
}

.help-sidebar__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem;
  border-bottom: 1px solid var(--color-line);
  background: rgba(255, 255, 255, 0.8);
}

.help-sidebar__brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  min-width: 0;
}

.help-sidebar__brand img {
  width: 74px;
  height: 74px;
  object-fit: contain;
  filter: drop-shadow(0 0 14px rgba(64, 151, 215, 0.3));
}

.help-sidebar__brand h2 {
  margin: 0;
  font-size: 1.25rem;
}

.help-sidebar__body {
  min-height: 0;
  display: grid;
  grid-template-rows: auto minmax(12rem, 1fr) auto;
  gap: 1rem;
  padding: 1rem;
  overflow: hidden;
}

.help-sidebar__intro {
  margin: 0;
  color: var(--color-text-soft);
}

.help-conversation {
  min-height: 0;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  align-content: start;
  gap: 0.7rem;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
  padding: 0.75rem;
  border: 1px solid var(--color-line);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: inset 0 1px 8px rgba(31, 91, 130, 0.08);
}

.help-message {
  padding: 0.75rem 0.85rem;
  border: 1px solid var(--color-line);
  border-radius: 9px;
  background: #fff;
}

.help-message p {
  margin: 0;
}

.help-coming-soon {
  min-height: 8rem;
  display: grid;
  place-items: center;
  padding: 1rem;
  text-align: center;
}

.help-coming-soon p {
  margin: 0;
  padding: 0.8rem 1rem;
  border: 1px solid #dfa1a1;
  border-radius: 9px;
  background: #fff5f5;
  color: #a61b1b;
  font-size: 1.05rem;
  font-weight: 700;
}

.help-quick button:disabled,
.help-composer button:disabled {
  border-color: #c7d0d5;
  background: #edf1f3;
  color: #7a858c;
  cursor: not-allowed;
  opacity: 0.72;
}

.help-composer textarea:disabled {
  border-color: #c7d0d5;
  background: #e8edef;
  color: #7a858c;
  cursor: not-allowed;
  opacity: 0.82;
}

.help-quick {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  margin: 0;
}

.help-quick button {
  padding: 0.6rem;
  border: 1px solid #b4c9d6;
  border-radius: 7px;
  background: #f8fbfd;
  color: var(--color-text);
  text-align: left;
  cursor: pointer;
}

.help-composer {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.55rem;
  padding: 1rem;
  border-top: 1px solid var(--color-line);
  background: #fff;
}

.help-composer textarea {
  min-height: 44px;
  max-height: 120px;
}

@media (max-height: 560px) {
  .help-sidebar {
    display: block;
    overflow-y: auto;
    overscroll-behavior: contain;
  }

  .help-sidebar__header {
    gap: 0.65rem;
    padding: 0.55rem 0.75rem;
  }

  .help-sidebar__brand {
    gap: 0.5rem;
  }

  .help-sidebar__brand img {
    width: 48px;
    height: 48px;
  }

  .help-sidebar__brand h2 {
    font-size: 1rem;
  }

  .help-sidebar__brand .eyebrow {
    margin-bottom: 0.1rem;
    font-size: 0.72rem;
  }

  .help-sidebar__body {
    grid-template-rows: auto minmax(12rem, auto) auto;
    gap: 0.75rem;
    min-height: auto;
    padding: 0.75rem;
    overflow: visible;
  }

  .help-conversation {
    min-height: 12rem;
  }

  .help-composer {
    padding: 0.75rem;
  }
}
