/* "Ask the help" widget (help-chat.js). Uses the help site's colour tokens, so it follows light / dark. */
.hc-fab { position: fixed; right: 20px; bottom: 20px; z-index: 60; display: inline-flex; align-items: center; gap: 6px; padding: 11px 16px; border: none; border-radius: 999px;
  background: var(--brand); color: #fff; font: 600 15px/1 "Plus Jakarta Sans", system-ui, sans-serif; box-shadow: var(--shadow); cursor: pointer; }
.hc-fab span { color: var(--gold); }
.hc-fab:hover { background: var(--brand2); }
.hc-fab:focus-visible, .hc-panel button:focus-visible, .hc-panel textarea:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.hc-fab.hc-hide { display: none; }
.hc-panel { position: fixed; right: 20px; bottom: 20px; z-index: 61; width: min(400px, calc(100vw - 32px)); height: min(580px, calc(100vh - 100px)); display: flex; flex-direction: column;
  background: var(--panel); color: var(--ink); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); font-size: 15px; }
.hc-panel[hidden] { display: none; }
.hc-head { display: flex; align-items: center; justify-content: space-between; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.hc-head strong { font-size: 15px; }
.hc-x { border: none; background: none; color: var(--faint); font-size: 16px; cursor: pointer; padding: 4px 8px; border-radius: 8px; }
.hc-x:hover { background: var(--brand-soft); color: var(--ink); }
.hc-log { flex: 1; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.hc-hello p { margin: 0 0 10px; color: var(--ink2); }
.hc-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.hc-chips button { border: 1px solid var(--line); background: var(--bg); color: var(--ink); border-radius: 999px; padding: 6px 11px; font: inherit; font-size: 13px; cursor: pointer; text-align: start; }
.hc-chips button:hover { border-color: var(--brand); }
.hc-msg { max-width: 90%; padding: 9px 12px; border-radius: 12px; line-height: 1.5; overflow-wrap: anywhere; }
.hc-me { align-self: flex-end; background: var(--brand); color: #fff; white-space: pre-wrap; }
.hc-ai { align-self: flex-start; background: var(--bg); border: 1px solid var(--line); }
.hc-wait { color: var(--faint); font-style: italic; }
.hc-err { background: var(--warn); }
.hc-text p, .hc-text ul, .hc-text ol { margin: 0 0 6px; }
.hc-text ul, .hc-text ol { padding-left: 20px; }
.hc-text .hc-h { display: block; margin: 4px 0; }
.hc-text p:last-child, .hc-text ul:last-child, .hc-text ol:last-child { margin-bottom: 0; }
.hc-ur { font-family: "Noto Nastaliq Urdu", "Jameel Noori Nastaleeq", serif; line-height: 2; }
.hc-src { margin-top: 8px; padding-top: 6px; border-top: 1px dashed var(--line); font-size: 13px; }
.hc-src span { color: var(--faint); }
.hc-src ul { margin: 4px 0 0; padding-left: 18px; }
.hc-form { display: flex; gap: 8px; padding: 10px 12px; border-top: 1px solid var(--line); }
.hc-form textarea { flex: 1; resize: none; border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; background: var(--bg); color: var(--ink); font: inherit; font-size: 14px; }
.hc-send { border: none; border-radius: 10px; background: var(--brand); color: #fff; font: 600 14px "Plus Jakarta Sans", system-ui, sans-serif; padding: 0 16px; cursor: pointer; }
.hc-send:disabled { opacity: .5; cursor: progress; }
.hc-note { padding: 0 12px 10px; font-size: 11.5px; color: var(--faint); }
@media (max-width: 600px) {
  .hc-fab { right: 12px; bottom: 12px; }
  .hc-panel { right: 8px; left: 8px; bottom: 8px; width: auto; height: calc(100vh - 80px); }
}
@media print { .hc-fab, .hc-panel { display: none !important; } }
