/* help.css - the Help slide-over chat. The panel frame (.slideover*) lives in
   components.css; this styles the conversation and the composer. */

.help-panel .slideover-head h2 { display: flex; align-items: center; gap: 8px; }
.help-panel .slideover-head h2 .ic { width: 18px; height: 18px; color: var(--navy); }

/* ---------- conversation ---------- */
.help-log { display: flex; flex-direction: column; gap: 10px; background: var(--surface-2); }

.help-bubble {
  max-width: 88%; padding: 10px 13px; border-radius: var(--r-md);
  font-size: 13.5px; line-height: 1.55; word-wrap: break-word; overflow-wrap: anywhere;
}
.help-bubble p { margin: 0; }
.help-bubble p + p { margin-top: 8px; }
.help-bubble .help-gap { height: 6px; }
.help-ul { margin: 4px 0 0; padding-left: 18px; }
.help-ul li { margin: 2px 0; }
.help-ul + p { margin-top: 8px; }

.help-assistant {
  align-self: flex-start; background: var(--surface); color: var(--ink);
  border: 1px solid var(--line); border-bottom-left-radius: var(--r-xs);
}
.help-user {
  align-self: flex-end; background: var(--navy); color: #fff;
  border-bottom-right-radius: var(--r-xs);
}

/* Thinking indicator: three dots at once, a clock only after 3s (set in JS). */
.help-thinking { display: inline-flex; align-items: center; gap: 9px; color: var(--muted); }
.help-thinking-txt { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; }
.help-thinking-txt .ic { width: 15px; height: 15px; }
.help-dots { display: inline-flex; gap: 4px; }
.help-dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--faint); animation: help-blink 1.2s var(--ease) infinite; }
.help-dots i:nth-child(2) { animation-delay: .18s; }
.help-dots i:nth-child(3) { animation-delay: .36s; }
@keyframes help-blink { 0%, 60%, 100% { opacity: .3; } 30% { opacity: 1; } }

/* ---------- composer ---------- */
.help-composer { display: flex; align-items: flex-end; gap: 8px; }
.help-composer textarea {
  flex: 1; min-height: 44px; max-height: 160px; resize: none; line-height: 1.5;
  padding: 11px 12px;
}
.help-send { flex: none; height: 44px; width: 44px; padding: 0; display: inline-flex; align-items: center; justify-content: center; }
.help-send .ic { width: 18px; height: 18px; }

.help-composer-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 8px; min-height: 16px; }
.help-hint { font-size: 11.5px; color: var(--faint); }
.help-count { font-size: 11.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
.help-count.at-cap { color: var(--coral-text); font-weight: 700; }

.help-report {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 12px;
  font-size: 12.5px; color: var(--muted); font-weight: 600;
}
.help-report .ic { width: 14px; height: 14px; }
.help-report:hover { color: var(--coral-text); }
