.help-overlay {
  position: fixed;
  inset: 0;
  background: rgb(0 0 0 / 30%);
  display: flex;
  align-items: stretch;
  justify-content: flex-end;
  z-index: 9999;
}

.help-panel {
  width: 420px;
  max-width: 92vw;
  background: #fff;
  color: #333;
  display: flex;
  flex-direction: column;
  box-shadow: -4px 0 16px rgb(0 0 0 / 12%);
  border-left: 1px solid #eee;
}

.help-header {
  display: flex;
  gap: 8px;
  align-items: center;
  padding: 10px;
  border-bottom: 1px solid #eee;
}

.help-search {
  flex: 1;
  min-width: 0;
  padding: 6px 8px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 12px;
}

.help-close {
  border: none;
  background: transparent;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  color: #666;
}

.help-body {
  display: flex;
  min-height: 0;
  flex: 1;
}

.help-toc {
  width: 140px;
  min-width: 120px;
  max-width: 180px;
  border-right: 1px solid #eee;
  padding: 10px 8px;
  overflow: auto;
}

.help-toc a {
  display: block;
  color: #333;
  text-decoration: none;
  font-size: 12px;
  padding: 4px 6px;
  border-radius: 4px;
}

.help-toc a.active {
  background: #eef2ff;
}

.help-content {
  flex: 1;
  padding: 12px 14px;
  overflow: auto;
}

.help-content h2,
.help-content h3 {
  margin: 8px 0;
}

.help-loading {
  font-size: 12px;
  color: #777;
  padding: 12px;
  text-align: center;
}

.help-footer {
  padding: 8px 10px;
  border-top: 1px solid #eee;
  color: #777;
  font-size: 11px;
}

@media (width <= 640px) {
  .help-panel {
    width: 100%;
    max-width: none;
  }
}
