/* हिरनोदा सहायक ("पूछें") — रंग थीम से (--hn-*) आते हैं, इसलिए हर थीम में मेल खाता है */
.hgp-ask { --a-p: var(--hn-neel, #1F3A68); --a-d: var(--hn-neel-deep, #152A4D); --a-s: var(--hn-neel-soft, #E7ECF5); --a-h: var(--hn-haldi, #E8A317); --a-i: var(--hn-ink, #1B1B1F); --a-m: var(--hn-muted, #5B6474); --a-l: var(--hn-line, #D9DEE8); --a-bg: var(--hn-paper, #fff); font-family: var(--hn-body, system-ui, sans-serif); }
.hgp-ask__fab { position: fixed; right: max(16px, env(safe-area-inset-right, 0px)); bottom: calc(18px + env(safe-area-inset-bottom, 0px)); z-index: 44; display: inline-flex; align-items: center; gap: .45rem; min-height: 52px; padding: .55rem 1.1rem .55rem .9rem; border: 2px solid #fff; border-radius: 999px; background: var(--a-p); color: #fff; font: inherit; font-weight: 800; font-size: 1.02rem; cursor: pointer; box-shadow: 0 10px 26px rgba(0,0,0,.22); }
.hgp-ask__fab:hover { background: var(--a-d); }
.hgp-ask__fab:focus-visible, .hgp-ask__x:focus-visible, .hgp-ask__chip:focus-visible, .hgp-ask__send:focus-visible, .hgp-ask__links a:focus-visible { outline: 3px solid var(--a-h); outline-offset: 2px; }
.hgp-ask.is-open .hgp-ask__fab { display: none; }
.hgp-ask__panel { position: fixed; right: max(16px, env(safe-area-inset-right, 0px)); bottom: calc(18px + env(safe-area-inset-bottom, 0px)); z-index: 70; width: min(400px, calc(100vw - 32px)); height: min(600px, calc(100vh - 120px)); display: flex; flex-direction: column; background: var(--a-bg); color: var(--a-i); border: 1px solid var(--a-l); border-radius: 18px; box-shadow: 0 24px 60px rgba(0,0,0,.28); overflow: hidden; }
.hgp-ask__panel[hidden] { display: none; }
.hgp-ask__head { display: flex; align-items: center; justify-content: space-between; gap: .5rem; padding: .7rem .8rem .7rem 1rem; background: var(--a-p); color: #fff; }
.hgp-ask__head strong { font-family: var(--hn-display, inherit); font-weight: 400; font-size: 1.3rem; line-height: 1.2; }
.hgp-ask__x { width: 42px; height: 42px; border: 0; border-radius: 50%; background: rgba(255,255,255,.16); color: #fff; font-size: 1.1rem; cursor: pointer; }
.hgp-ask__log { flex: 1; overflow-y: auto; padding: .9rem; display: flex; flex-direction: column; gap: .6rem; background: var(--hn-wall, #F4F6FA); overscroll-behavior: contain; }
.hgp-ask__msg { max-width: 88%; padding: .6rem .8rem; border-radius: 14px; line-height: 1.55; font-size: .98rem; }
.hgp-ask__msg p { margin: 0; white-space: pre-line; }
.hgp-ask__msg--bot { align-self: flex-start; background: var(--a-bg); border: 1px solid var(--a-l); border-bottom-left-radius: 4px; }
.hgp-ask__msg--me { align-self: flex-end; background: var(--a-p); color: #fff; border-bottom-right-radius: 4px; }
.hgp-ask__links { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .55rem; }
.hgp-ask__links a { display: inline-flex; align-items: center; min-height: 38px; padding: .3rem .8rem; border-radius: 999px; background: var(--a-s); color: var(--a-p); font-weight: 700; font-size: .92rem; text-decoration: none; }
.hgp-ask__links a::after { content: "→"; margin-left: .35rem; }
.hgp-ask__chips { display: flex; gap: .4rem; overflow-x: auto; padding: .55rem .8rem; border-top: 1px solid var(--a-l); background: var(--a-bg); scrollbar-width: thin; }
.hgp-ask__chip { flex: 0 0 auto; min-height: 38px; padding: .3rem .8rem; border: 1.5px solid var(--a-l); border-radius: 999px; background: var(--a-bg); color: var(--a-i); font: inherit; font-size: .9rem; font-weight: 600; cursor: pointer; white-space: nowrap; }
.hgp-ask__chip:hover { border-color: var(--a-p); color: var(--a-p); }
.hgp-ask__form { display: flex; gap: .45rem; padding: .6rem .8rem .3rem; background: var(--a-bg); }
.hgp-ask__form input { flex: 1; min-width: 0; min-height: 48px; padding: .5rem .85rem; border: 2px solid var(--a-l); border-radius: 12px; font: inherit; font-size: 1rem; color: var(--a-i); background: var(--a-bg); }
.hgp-ask__form input:focus { outline: none; border-color: var(--a-p); }
.hgp-ask__send { flex: 0 0 auto; width: 50px; min-height: 48px; border: 0; border-radius: 12px; background: var(--a-h); color: var(--a-i); cursor: pointer; display: grid; place-items: center; }
.hgp-ask__note { margin: 0; padding: .2rem .9rem .7rem; font-size: .8rem; line-height: 1.4; color: var(--a-m); background: var(--a-bg); }
/* मोबाइल: नीचे की मेन्यू-पट्टी के ऊपर */
@media (max-width: 760px) {
  .hgp-ask__fab { bottom: calc(76px + env(safe-area-inset-bottom, 0px)); min-height: 48px; padding: .45rem .95rem .45rem .8rem; font-size: .98rem; }
  .hgp-ask__panel { left: max(10px, env(safe-area-inset-left, 0px)); right: max(10px, env(safe-area-inset-right, 0px)); width: auto; bottom: calc(10px + env(safe-area-inset-bottom, 0px)); height: min(78vh, 640px); }
}
/* दूसरे पॉपअप खुले हों तो बटन हट जाए — कभी दो चीज़ें एक-दूसरे पर नहीं */
body:has(.hgp-inst.is-on) .hgp-ask__fab, body:has(.hgp-push.is-on) .hgp-ask__fab, body:has(.hgp-bd.is-on) .hgp-ask__fab, body.nav-open .hgp-ask__fab, body:has(.lb:not([hidden])) .hgp-ask__fab { display: none; }
@media print { .hgp-ask { display: none !important; } }
