/* Help chat ("Ask Penzap" bubble): includes/help.php, assets/help-chat.js. Loaded by the widget itself, so it works on website pages and inside the app. */
.hc .sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.hc{position:fixed;right:16px;bottom:calc(16px + env(safe-area-inset-bottom,0px));z-index:60;display:flex;flex-direction:column;align-items:flex-end;gap:10px}
.hc-open{display:inline-flex;align-items:center;gap:8px;border:1px solid var(--line);background:var(--panel);color:var(--fg);font:500 14px var(--body);
  padding:10px 16px 10px 10px;border-radius:999px;cursor:pointer;box-shadow:0 6px 20px rgba(0,0,0,.18)}
.hc-open span{display:grid;place-items:center;width:24px;height:24px;border-radius:50%;background:var(--accent);color:var(--accent-ink);font-weight:600}
.hc.open .hc-open{display:none}
.hc-panel{width:min(370px,calc(100vw - 32px));height:min(520px,calc(100vh - 110px));display:flex;flex-direction:column;background:var(--panel);
  border:1px solid var(--line);border-radius:16px;box-shadow:0 12px 40px rgba(0,0,0,.25);overflow:hidden}
.hc-head{display:flex;align-items:center;justify-content:space-between;padding:12px 14px;border-bottom:1px solid var(--line);font-family:var(--display);font-size:13px;letter-spacing:.04em}
.hc-x{border:0;background:none;color:var(--muted);font-size:24px;line-height:1;cursor:pointer;padding:0 4px}
.hc-log{flex:1;overflow-y:auto;padding:14px;display:flex;flex-direction:column;gap:8px}
.hc-msg{margin:0;max-width:85%;padding:9px 12px;border-radius:14px;font-size:14px;line-height:1.45;overflow-wrap:anywhere}
.hc-msg.bot{align-self:flex-start;background:var(--panel-2);border-bottom-left-radius:4px}
.hc-msg.me{align-self:flex-end;background:var(--accent);color:var(--accent-ink);border-bottom-right-radius:4px}
.hc-msg.me a{color:inherit}
.hc-msg.err{background:var(--danger-bg);color:var(--danger)}
.hc-msg.wait{color:var(--muted);animation:hcpulse 1s ease-in-out infinite alternate}
@keyframes hcpulse{to{opacity:.4}}
@media (prefers-reduced-motion:reduce){.hc-msg.wait{animation:none}}
.hc-form{display:flex;gap:8px;align-items:flex-end;padding:10px;border-top:1px solid var(--line)}
.hc-form textarea{flex:1;resize:none;border:1px solid var(--line);border-radius:10px;background:var(--bg);color:var(--fg);font:14px var(--body);padding:8px 10px;max-height:110px}
.hc-foot{margin:0;padding:0 12px 10px;font-size:11.5px;color:var(--muted)}
@media (max-width:480px){.hc{right:12px;left:12px;align-items:stretch}.hc-open{align-self:flex-end}.hc-panel{width:100%;height:min(520px,calc(100vh - 90px))}}
@media print{.hc{display:none}}
.hc.menu-only .hc-open{display:none}
.hc a{color:var(--accent)}
.hc .btn{display:inline-flex;align-items:center;justify-content:center;border-radius:10px;border:1px solid var(--accent);background:var(--accent);color:var(--accent-ink);font:600 13px var(--body);padding:8px 14px;cursor:pointer}
.hc .btn:disabled{opacity:.6;cursor:default}

