/* 25 Oct 2026: Help & support -- the ? button, the side panel, the quick-help popup */
#hp-fab { position: fixed; right: 18px; bottom: 18px; z-index: 900; width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid var(--line, #ccc); background: var(--accent-btn, #1c2530); color: #fff; font-size: 20px; font-weight: 700;
  cursor: pointer; box-shadow: 0 4px 14px rgba(0,0,0,.35); }
#hp-fab:hover { filter: brightness(1.1); }
#hp-panel { position: fixed; top: 0; right: 0; bottom: 0; width: min(420px, 100vw); z-index: 1000; display: none; flex-direction: column;
  background: var(--surface, #fff); color: var(--ink, #1c1c1e); border-left: 1px solid var(--line, #ccc); box-shadow: -6px 0 24px rgba(0,0,0,.35); }
#hp-panel.open { display: flex; }
.hp-head { display: flex; align-items: center; gap: 8px; padding: 12px 14px; background: var(--deep, #1c2530); color: var(--ink, #fff); }
.hp-head h3 { margin: 0; font-size: 15px; flex: 1; color: inherit; }
.hp-head button, .hp-tabs button, .hp-btn { font: inherit; cursor: pointer; }
.hp-lang { border: 1px solid var(--line, #888); background: transparent; color: inherit; border-radius: 6px; padding: 3px 9px; font-size: 12px; }
.hp-x { border: none; background: none; color: inherit; font-size: 20px; line-height: 1; padding: 0 4px; }
.hp-tabs { display: flex; border-bottom: 1px solid var(--line, #ddd); background: var(--surface, #fff); }
.hp-tabs button { flex: 1; border: none; background: none; padding: 10px 6px; font-size: 13px; color: var(--muted, #666); border-bottom: 3px solid transparent; }
.hp-tabs button.on { color: var(--ink, #111); border-bottom-color: var(--accent, #d97757); }
.hp-body { flex: 1; overflow-y: auto; padding: 14px; font-size: 14px; line-height: 1.55; }
.hp-body[dir="rtl"] { text-align: right; }
.hp-body input[type=text], .hp-body textarea, .hp-body select { width: 100%; padding: 8px 10px; border-radius: 6px; border: 1px solid var(--line, #bbb);
  background: var(--raised, #fff); color: inherit; font: inherit; }
.hp-body textarea { min-height: 90px; resize: vertical; }
.hp-body label { display: block; font-size: 12px; color: var(--muted, #666); margin: 10px 0 3px; }
.hp-btn { border: 1px solid var(--line, #bbb); background: var(--raised, #f2f2f2); color: inherit; border-radius: 6px; padding: 7px 12px; font-size: 13px; }
.hp-btn.primary { background: var(--accent-btn, #c4623f); color: #fff; border-color: transparent; }
.hp-btn.danger { color: var(--red, #c0392b); }
.hp-row { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.hp-list { list-style: none; margin: 10px 0 0; padding: 0; }
.hp-list li { border: 1px solid var(--line-soft, #e3e3e3); border-radius: 8px; padding: 9px 12px; margin-bottom: 7px; cursor: pointer; background: var(--raised, #fafafa); }
.hp-list li:hover { border-color: var(--accent, #d97757); }
.hp-list .hp-sub { font-size: 12px; color: var(--muted, #777); }
.hp-art h2 { font-size: 17px; margin: 0 0 10px; color: var(--ink, #111); }
.hp-art p { margin: 0 0 10px; }
.hp-art ul, .hp-art ol { margin: 0 0 10px; padding-inline-start: 22px; }
.hp-art li { margin-bottom: 4px; }
.hp-back { border: none; background: none; color: var(--blue, #3b6ea5); cursor: pointer; padding: 0 0 8px; font-size: 13px; }
.hp-chat { display: flex; flex-direction: column; gap: 8px; margin-bottom: 10px; }
.hp-msg { padding: 8px 12px; border-radius: 12px; max-width: 92%; white-space: pre-wrap; }
.hp-msg.me { align-self: flex-end; background: var(--accent-soft, #fde8e0); }
.hp-msg.bot { align-self: flex-start; background: var(--raised, #f0f0f0); }
.hp-msg .hp-src { display: block; margin-top: 6px; font-size: 12px; }
.hp-msg .hp-src a { cursor: pointer; margin-inline-end: 8px; }
.hp-note { font-size: 12px; color: var(--muted, #777); margin-top: 6px; }
.hp-ok { color: var(--green, #2e7d32); }
.hp-bad { color: var(--red, #c0392b); }
.hp-rep { border: 1px solid var(--line-soft, #e3e3e3); border-radius: 8px; padding: 8px 10px; margin-bottom: 8px; }
.hp-rep.done { opacity: .55; }
#hp-pop { position: fixed; z-index: 1100; width: 300px; display: none; background: var(--surface, #fff); color: var(--ink, #111);
  border: 1px solid var(--line, #bbb); border-radius: 10px; box-shadow: 0 8px 28px rgba(0,0,0,.4); padding: 12px; font-size: 13px; }
#hp-pop.open { display: block; }
#hp-pop h4 { margin: 0 0 2px; font-size: 13px; color: var(--ink, #111); }
#hp-pop .hp-what { font-size: 12px; color: var(--muted, #777); margin-bottom: 8px; overflow-wrap: anywhere; }
#hp-pop input { width: 100%; padding: 6px 9px; border-radius: 6px; border: 1px solid var(--line, #bbb); background: var(--raised, #fff); color: inherit; font: inherit; margin-top: 8px; }
#hp-pop .hp-list li { padding: 6px 10px; margin-bottom: 5px; }
#hp-pop .hp-row { margin-top: 8px; }
#hp-pop .hp-btn { padding: 5px 9px; font-size: 12px; }
@media (max-width: 600px) { #hp-fab { bottom: 70px; } }

/* 29 Oct 2026: the chatbot lights up the control it took you to; a small card says what to do there */
.hp-spot { outline: 3px solid var(--accent, #d97757) !important; outline-offset: 3px; border-radius: 6px; animation: hp-pulse 1.1s ease-in-out infinite; }
@keyframes hp-pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(217,119,87,.55); } 50% { box-shadow: 0 0 0 10px rgba(217,119,87,0); } }
#hp-hint { position: fixed; left: 18px; bottom: 18px; z-index: 1100; max-width: min(380px, calc(100vw - 36px)); display: none;
  background: var(--surface, #fff); color: var(--ink, #111); border: 1px solid var(--accent, #d97757); border-radius: 12px;
  box-shadow: 0 8px 28px rgba(0,0,0,.4); padding: 12px 14px; font-size: 14px; line-height: 1.5; }
#hp-hint.open { display: block; }
#hp-hint .hp-hint-text { white-space: pre-wrap; }
