/* ── Help drawer (DocsHelpDrawer / QueryBarHelp / ComposerHelp) ────
   Right-edge slide-in panel z sekcjami pomocy ("Spróbuj X → zobacz Y").
   W baseline: drawer pomocy renderuje się na większości stron (tasks,
   products, workflows, settings, chat) i otwiera window-eventem, więc
   style muszą być dostępne wszędzie. Wydzielone z chat.css 2026-07-03
   (na stronach bez chat.css drawer renderował się jako inline block). */
.help-drawer { position: fixed; inset: 0; z-index: 200; pointer-events: none; }
.help-drawer-backdrop {
  position: absolute; inset: 0;
  background: rgba(20, 19, 15, .35);
  pointer-events: auto;
}
.help-drawer-pane {
  position: absolute; top: 0; right: 0; bottom: 0;
  width: 480px; max-width: 92vw;
  background: var(--bg-elev);
  border-left: 1px solid var(--line);
  box-shadow: -12px 0 32px rgba(0, 0, 0, .12);
  display: flex; flex-direction: column;
  pointer-events: auto;
  animation: help-drawer-in .22s cubic-bezier(.2, .8, .2, 1);
}
@keyframes help-drawer-in {
  from { transform: translateX(100%); }
  to   { transform: translateX(0); }
}
.help-drawer-h {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 18px 20px 14px;
  border-bottom: 1px solid var(--line);
}
.help-drawer-h h2 { margin: 0; font-size: 16px; font-weight: 700; color: var(--ink); letter-spacing: -.01em; }
.help-drawer-sub { margin: 4px 0 0; font-size: 12.5px; color: var(--ink-3); }
.help-drawer-h .iconbtn { flex: 0 0 auto; margin-left: auto; }
.help-drawer-body { padding: 14px 20px 24px; overflow-y: auto; flex: 1; }

.help-section { margin-bottom: 22px; }
.help-section-h {
  display: flex; align-items: center; gap: 8px;
  color: var(--ink-3); margin-bottom: 6px;
}
.help-section-h h3 {
  margin: 0; font-size: 13px; font-weight: 600;
  color: var(--ink); letter-spacing: .01em;
  text-transform: uppercase;
}
.help-section-h .kbd { text-transform: none; font-size: 11px; }
.help-section p { margin: 0 0 8px; font-size: 13.5px; color: var(--ink-2); line-height: 1.5; }
.help-hint {
  margin-top: 6px !important;
  font-size: 12px !important;
  color: var(--ink-3) !important;
}
.help-subhead {
  margin: 14px 0 6px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--ink-3);
}
.help-subhead:first-of-type { margin-top: 8px; }
.help-section-tip {
  background: var(--accent-wash); border: 1px solid var(--accent-light);
  border-radius: 10px; padding: 14px 16px;
  margin-bottom: 12px;
}
.help-section-tip .help-section-h h3 { color: var(--accent-deep); }

.help-card {
  background: var(--bg-sunk); border: 1px solid var(--line);
  border-radius: 8px; padding: 10px 12px;
  display: flex; flex-direction: column; gap: 6px;
}
.help-card-row {
  display: flex; align-items: center; gap: 10px;
  font-size: 13px;
}
.help-card-row-block { flex-direction: column; align-items: flex-start; gap: 6px; }
.help-card-label {
  font-size: 11px; color: var(--ink-4);
  text-transform: uppercase; letter-spacing: .04em;
  flex: 0 0 64px;
}
.help-card-input {
  background: var(--bg); border: 1px solid var(--line);
  padding: 2px 6px; border-radius: 4px;
  font-family: var(--font-mono); font-size: 12px;
}
.help-example {
  padding: 8px 10px; background: var(--bg);
  border: 1px solid var(--line); border-radius: 6px;
  font-size: 13px; line-height: 1.6;
}

.help-table {
  display: flex; flex-direction: column; gap: 6px;
  margin: 8px 0;
}
.help-table-row {
  display: grid; grid-template-columns: 130px 14px auto 1fr;
  align-items: center; gap: 8px;
  font-size: 13px;
}
.help-table-trigger {
  background: var(--bg-sunk); border: 1px solid var(--line);
  padding: 2px 6px; border-radius: 4px;
  font-family: var(--font-mono); font-size: 12px;
  color: var(--ink);
}
.help-table-arrow { color: var(--ink-4); text-align: center; }
.help-table-note { color: var(--ink-3); font-size: 12.5px; }

.help-list {
  margin: 6px 0; padding-left: 20px;
  font-size: 13.5px; color: var(--ink-2); line-height: 1.7;
}
.help-list li { margin-bottom: 2px; }
.help-inline-icon {
  display: inline-flex; align-items: center; vertical-align: -2px;
  color: var(--ink-3); margin: 0 2px;
}

.help-footer {
  padding-top: 12px; margin-top: 8px;
  border-top: 1px solid var(--line);
  text-align: center;
}
.help-footer-link {
  font-size: 12.5px; color: var(--ink-3);
  text-decoration: none;
}
.help-footer-link:hover { color: var(--accent-deep); }

@media (max-width: 960px) {
  /* Help drawer — full width on phones, no awkward 480px stub. */
  .help-drawer-pane { width: 100vw !important; max-width: 100vw !important; }
}
