/* MunimIQ Help — AI support chat (help.js) */
.hp-fab { position: fixed; z-index: 90; right: 20px; bottom: 20px; height: 48px; padding: 0 16px 0 12px; border-radius: 24px; border: 1px solid var(--ai-line); background: var(--ai-bg); color: var(--text); display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 13px; cursor: pointer; box-shadow: var(--shadow); transition: transform .12s; }
.hp-fab:hover { transform: translateY(-1px); }
.hp-fab:active { transform: scale(.97); }
.hp-fab .dot { width: 26px; height: 26px; border-radius: 50%; background: var(--violet); color: #fff; display: grid; place-items: center; }
.hp-fab.has-new::after { content: ''; position: absolute; top: 6px; right: 8px; width: 9px; height: 9px; border-radius: 50%; background: var(--lime); border: 2px solid var(--ai-bg); }
.hp-panel { position: fixed; z-index: 95; right: 20px; bottom: 20px; width: 400px; max-width: calc(100vw - 24px); height: min(640px, calc(100vh - 40px)); display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line2); border-radius: 20px; box-shadow: var(--shadow); overflow: hidden; animation: hp-in .16s ease; }
@keyframes hp-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.hp-head { display: flex; align-items: center; gap: 10px; padding: 12px 12px 12px 16px; border-bottom: 1px solid var(--line); background: var(--ai-bg); }
.hp-head .av { width: 32px; height: 32px; border-radius: 10px; background: var(--violet); color: #fff; display: grid; place-items: center; flex: none; }
.hp-head b { display: block; font-size: 14px; }
.hp-head small { display: block; color: var(--t3); font-size: 11.5px; }
.hp-head .sp { flex: 1; }
.hp-ib { width: 34px; height: 34px; border-radius: 10px; border: 0; background: transparent; color: var(--t2); display: grid; place-items: center; cursor: pointer; }
.hp-ib:hover { background: rgba(var(--ov), .08); color: var(--text); }
.hp-body { flex: 1; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 10px; overscroll-behavior: contain; }
.hp-m { max-width: 88%; padding: 10px 12px; border-radius: 14px; font-size: 13.5px; line-height: 1.5; word-wrap: break-word; }
.hp-m.u { align-self: flex-end; background: var(--lime); color: var(--on-lime); border-bottom-right-radius: 5px; white-space: pre-wrap; }
.hp-m.a { align-self: flex-start; background: var(--card2); border: 1px solid var(--line); border-bottom-left-radius: 5px; }
.hp-m.a p { margin: 0 0 6px; } .hp-m.a p:last-child { margin: 0; }
.hp-m.a ol, .hp-m.a ul { margin: 4px 0 6px; padding-left: 20px; } .hp-m.a li { margin: 2px 0; }
.hp-m.err { align-self: flex-start; background: rgba(var(--red-rgb), .08); border: 1px solid rgba(var(--red-rgb), .3); }
.hp-acts { align-self: flex-start; display: flex; flex-wrap: wrap; gap: 6px; max-width: 92%; }
.hp-acts .btn { height: 32px; font-size: 12.5px; }
.hp-confirm { align-self: flex-start; max-width: 92%; padding: 10px 12px; border-radius: 14px; border: 1px dashed var(--ai-line); background: var(--ai-bg); font-size: 13px; }
.hp-confirm .row { display: flex; gap: 8px; margin-top: 8px; }
.hp-code { align-self: flex-start; padding: 12px 14px; border-radius: 14px; background: var(--ai-bg); border: 1px solid var(--ai-line); }
.hp-code .c { font-family: 'Geist Mono', monospace; font-size: 22px; font-weight: 600; letter-spacing: .06em; margin: 4px 0; }
.hp-code small { color: var(--t3); }
.hp-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.hp-chips button { border: 1px solid var(--line2); background: rgba(var(--ov), .03); color: var(--t1); border-radius: 999px; padding: 7px 12px; font-size: 12.5px; cursor: pointer; text-align: left; }
.hp-chips button:hover { border-color: var(--ai-line); background: var(--ai-bg); }
.hp-hello { color: var(--t2); font-size: 13px; }
.hp-hello b { color: var(--text); font-size: 15px; display: block; margin-bottom: 4px; }
.hp-typing { align-self: flex-start; display: flex; gap: 4px; padding: 12px 14px; border-radius: 14px; background: var(--card2); border: 1px solid var(--line); }
.hp-typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--t3); animation: hp-b 1s infinite; }
.hp-typing i:nth-child(2) { animation-delay: .15s; } .hp-typing i:nth-child(3) { animation-delay: .3s; }
@keyframes hp-b { 0%, 60%, 100% { opacity: .3; transform: none; } 30% { opacity: 1; transform: translateY(-3px); } }
.hp-rate { align-self: flex-start; display: flex; align-items: center; gap: 4px; color: var(--t3); font-size: 11.5px; }
.hp-rate button { border: 0; background: transparent; color: var(--t3); cursor: pointer; padding: 2px 6px; border-radius: 8px; font-size: 13px; }
.hp-rate button:hover, .hp-rate button.on { color: var(--text); background: rgba(var(--ov), .08); }
.hp-foot { border-top: 1px solid var(--line); padding: 10px; display: flex; gap: 8px; align-items: flex-end; background: var(--card); }
.hp-foot textarea { flex: 1; resize: none; min-height: 40px; max-height: 120px; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line2); background: rgba(var(--ov), .04); color: var(--text); font: inherit; font-size: 14px; outline: none; }
.hp-foot textarea:focus { border-color: var(--ai-line); }
.hp-send { width: 40px; height: 40px; border-radius: 12px; border: 0; background: var(--violet); color: #fff; display: grid; place-items: center; cursor: pointer; flex: none; }
.hp-send:disabled { opacity: .45; cursor: default; }
.hp-note { font-size: 10.5px; color: var(--t4); text-align: center; padding: 0 10px 8px; background: var(--card); }
.hp-wa { background: #1FAF54 !important; color: #fff !important; border-color: transparent !important; }
@media (max-width: 900px) {
  .hp-fab { bottom: calc(16px + env(safe-area-inset-bottom)); right: 14px; height: 44px; padding: 0 12px 0 9px; }
  body:has(.bnav) .hp-fab { bottom: calc(84px + env(safe-area-inset-bottom)); } /* sit above the app's bottom bar */
  .hp-panel { right: 0; left: 0; bottom: 0; top: 0; width: auto; max-width: none; height: auto; border-radius: 0; border: 0; }
  .hp-head { padding-top: calc(12px + env(safe-area-inset-top)); }
  .hp-foot { padding-bottom: calc(10px + env(safe-area-inset-bottom)); }
}
@media print { .hp-fab, .hp-panel { display: none !important; } }
/* self-contained buttons (the public website has its own .btn) */
.hp-panel { font-size: 14px; line-height: 1.45; text-align: left; }
.hp-panel .btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 32px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--line2); background: rgba(var(--ov), .04); color: var(--text); font: 600 12.5px/1 'Geist', system-ui, sans-serif; cursor: pointer; white-space: nowrap; text-decoration: none; }
.hp-panel .btn.pri { background: var(--lime); color: var(--on-lime); border-color: transparent; }
/* tokens the public website does not define */
.hp-site { --ai-bg: #121024; --ai-line: rgba(155,140,255,.24); --t1: #D9DCE6; --t4: #6B7389; --ov: 255,255,255; --shadow: 0 20px 50px rgba(0,0,0,.45); --red-rgb: 255,107,107; --inv: #F2F4F8; --on-inv: #07090F; }
/* typing reveal */
.hp-later { display: none !important; }
.hp-pop { animation: hp-in .25s ease; }
.hp-caret { display: inline-block; width: 7px; height: 1.05em; margin-left: 2px; vertical-align: -2px; border-radius: 2px; background: var(--violet); animation: hp-blink .7s steps(1) infinite; }
@keyframes hp-blink { 50% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .hp-caret { animation: none; } .hp-pop, .hp-panel { animation: none; } }
