/* The help bot (plugin helpbot): a round button in the bottom corner, its nag bubble and its chat window. */
.helpbot { position: fixed; right: 16px; bottom: 16px; z-index: 900; display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
/* The site logo fills the button (owner 2026-12-01); the chat bubble sits on top of it. */
.helpbot-open { position: relative; width: 56px; height: 56px; padding: 0; border-radius: 50%; border: 1px solid var(--line);
  background: var(--surface, var(--bg)) center / cover no-repeat; color: var(--fg); cursor: pointer; box-shadow: 0 4px 16px rgb(0 0 0 / .35); }
.helpbot-open span { position: absolute; right: -4px; top: -6px; font-size: 1.4rem; line-height: 1; filter: drop-shadow(0 1px 2px rgb(0 0 0 / .5)); }
.helpbot-bubble { position: relative; max-width: 16rem; padding: 8px 28px 8px 10px; border: 1px solid var(--line); border-radius: var(--radius, 6px);
  background: var(--surface, var(--bg)); color: var(--fg); box-shadow: 0 4px 16px rgb(0 0 0 / .3); font-size: .9rem; cursor: pointer; }
.helpbot-bubble[hidden], .helpbot-window[hidden] { display: none; }
.helpbot-bubble button { position: absolute; top: 2px; right: 4px; border: 0; background: none; color: inherit; cursor: pointer; opacity: .6; }
.helpbot-window { width: 22rem; max-width: calc(100vw - 32px); display: flex; flex-direction: column; background: var(--surface, var(--bg)); color: var(--fg);
  border: 1px solid var(--line); border-radius: var(--radius, 6px); box-shadow: 0 6px 24px rgb(0 0 0 / .35); font-size: .9rem; }
.helpbot-bar { display: flex; align-items: center; padding: 4px 8px; border-bottom: 1px solid var(--line); }
.helpbot-bar span { flex: 1; }
.helpbot-bar button { border: 0; background: none; color: inherit; font-size: 1.2em; cursor: pointer; }
.helpbot-list { list-style: none; margin: 0; padding: 8px; height: 20rem; max-height: 50vh; overflow-y: auto; overscroll-behavior: contain;
  display: flex; flex-direction: column; gap: 6px; overflow-wrap: anywhere; white-space: pre-wrap; }
.helpbot-list li { display: flex; align-items: flex-start; gap: 6px; max-width: 85%; }
.helpbot-list li span { padding: 4px 8px; border-radius: var(--radius, 6px); border: 1px solid var(--line); }
.helpbot-list li.user { align-self: flex-end; }
.helpbot-list li.user span { background: var(--accent-soft, transparent); }
.helpbot-avatar { width: 28px; height: 28px; flex: none; border-radius: 50%; object-fit: cover; }
.helpbot-bar { gap: 8px; }
.helpbot-list li.note { align-self: center; opacity: .7; font-style: italic; }
.helpbot-window form { display: flex; gap: 6px; padding: 6px 8px; border-top: 1px solid var(--line); }
.helpbot-window input { flex: 1; min-width: 0; }
.helpbot-disclaimer { margin: 0; padding: 2px 8px; font-size: .75rem; opacity: .65; text-align: center; border-top: 1px solid var(--line); }
