/* Contextual help panel (issue #240) */
.lf-help {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
  gap: 0.5rem;
  padding: 0.65rem 0.75rem 0.75rem;
}

.lf-help-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  align-items: center;
}

.lf-help-follow {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.85rem;
  margin: 0;
  white-space: nowrap;
}

.lf-help-combo {
  flex: 1 1 10rem;
  min-width: 8rem;
}

.lf-help-body {
  flex: 1 1 auto;
  min-height: 8rem;
  overflow: auto;
  border: 1px solid var(--lf-theme-border, rgba(0, 0, 0, 0.12));
  border-radius: 0.35rem;
  padding: 0.75rem 0.85rem;
  background: var(--lf-theme-panel, #fff);
}

.lf-help-ask {
  display: grid;
  gap: 0.4rem;
}

.lf-help-ask-actions {
  display: flex;
  gap: 0.4rem;
  justify-content: flex-end;
}

.lf-help-fab {
  position: fixed;
  right: 1.1rem;
  bottom: 1.1rem;
  z-index: 1080;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 999px;
  display: none;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
}

/* D11: show the floating entry when the navbar help toggle is not on the page. */
body:not(:has(.lf-navbar-end [data-lf-panel-toggle="lf.help"])) .lf-help-fab {
  display: inline-flex;
}
