/* ============================================================
   help-drawer.css — Parity + viewer package (2026-10-20), T2: the
   Help drawer (help-drawer.js). It sits on the right like the
   assistant's own drawer (.asst-drawer) and below the dialogs.
   Tokens only (design-system.css :root). Gold: only the Ask
   button (the drawer's one primary action, the shared .btn-primary).
   ============================================================ */
.help-drawer { position: fixed; top: 0; right: 0; bottom: 0; z-index: 118; width: min(420px, 96vw); display: flex; flex-direction: column;
  background: var(--ds-card); color: var(--ds-ink); border-left: 1px solid var(--ds-line); box-shadow: var(--ds-shadow-pop); }
.help-drawer.hidden { display: none; }
.help-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 18px; border-bottom: 1px solid var(--ds-line); }
.help-head h2 { margin: 0; font-size: var(--ds-fs-lg); color: var(--ds-navy); }
.help-body { flex: 1; overflow-y: auto; padding: 4px 18px 24px; }
.help-body section { padding: 14px 0; border-bottom: 1px solid var(--ds-hair); }
.help-body section:last-child { border-bottom: 0; }
.help-body h3 { margin: 0 0 8px; font-size: var(--ds-fs); color: var(--ds-navy); font-weight: 700; }
.help-note { margin: 0 0 8px; font-size: var(--ds-fs-xs); color: var(--ds-muted); line-height: 1.45; }
.help-ctx { display: flex; align-items: center; gap: 8px; margin: 0 0 8px; font-size: var(--ds-fs-sm); }
.help-ctx span { font-weight: 600; color: var(--ds-navy); }
.help-ctx select { flex: 1; min-width: 0; min-height: var(--ds-ctl-sm); border: 1px solid var(--ds-line); border-radius: var(--ds-r-sm); background: var(--ds-card); color: var(--ds-ink); font: inherit; font-size: var(--ds-fs-sm); padding: 0 8px; }
.help-thread { display: flex; flex-direction: column; gap: 6px; margin: 0 0 8px; }
.help-msg { font-size: var(--ds-fs-sm); line-height: 1.45; padding: 8px 10px; border-radius: var(--ds-r-sm); max-width: 92%; overflow-wrap: anywhere; }
.help-msg p { margin: 0 0 6px; } .help-msg p:last-child { margin: 0; }
.help-me { align-self: flex-end; background: var(--ds-navy); color: #fff; }
.help-bot { align-self: flex-start; background: var(--ds-tint); border: 1px solid var(--ds-line); }
.help-src { font-size: var(--ds-fs-xs); color: var(--ds-muted); }
.help-askform { display: flex; gap: 6px; }
.help-askform input { flex: 1; min-width: 0; min-height: var(--ds-ctl-sm); border: 1px solid var(--ds-line); border-radius: var(--ds-r-sm); padding: 0 10px; font: inherit; font-size: var(--ds-fs-sm); color: var(--ds-ink); background: var(--ds-card); }
.help-askform input:focus-visible { outline: none; box-shadow: var(--ds-focus); }
.help-list { list-style: none; margin: 0; padding: 0; }
.help-item { display: flex; gap: 10px; align-items: flex-start; padding: 9px 0; border-bottom: 1px solid var(--ds-hair); }
.help-item:last-child { border-bottom: 0; }
.help-tick { flex: none; width: 20px; height: 20px; border-radius: 50%; border: 1.5px solid var(--ds-line-strong); display: inline-flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; margin-top: 1px; }
.help-item.is-done .help-tick { background: var(--ds-ok-bg); border-color: var(--ds-ok-ink); color: var(--ds-ok-ink); }
.help-item-b { flex: 1; min-width: 0; font-size: var(--ds-fs-sm); }
.help-item-b b { display: block; color: var(--ds-navy); }
.help-item.is-done .help-item-b b { color: var(--ds-muted); }
.help-item-s { display: block; color: var(--ds-muted); font-size: var(--ds-fs-xs); line-height: 1.4; margin-top: 2px; }
.help-unk { color: var(--ds-warn-ink); }
.help-item-a { flex: none; display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.help-mark, .help-showdone { font-size: var(--ds-fs-xs); }
.help-showdone { margin-top: 8px; }
.help-linkrow { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 8px; }
