/* Nova chat widget — SOPostAI */
#nova-chat{--cw-grad:linear-gradient(120deg,#101233 0%,#7560D8 70%,#8B6CFF 100%);--cw-acc:#7560D8;--cw-ink:#24243B;--cw-soft:#F7F5FE;--cw-line:#E6E1F7;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;color:var(--cw-ink)}
#nova-chat *{box-sizing:border-box}
#nova-chat div,#nova-chat p,#nova-chat form,#nova-chat label,#nova-chat input,#nova-chat button,#nova-chat small,#nova-chat b{margin:0;letter-spacing:normal;text-transform:none}
#nova-chat small,#nova-chat em,#nova-chat b{display:inline}#nova-chat .nova-head small{display:block}
#nova-chat input{max-width:none;box-shadow:none}
.nova-launch{position:fixed;right:20px;bottom:20px;z-index:45;display:inline-flex;align-items:center;gap:8px;height:52px;padding:0 18px 0 14px;border:0;border-radius:999px;background:var(--cw-grad);color:#fff;font:700 14.5px/1 -apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;cursor:pointer;box-shadow:0 14px 30px -12px rgba(117,96,216,.6);transition:transform .25s,box-shadow .25s}
.nova-launch:hover{transform:translateY(-2px)}
.nova-launch svg{width:22px;height:22px;flex:none}
.nova-launch:focus-visible,.nova-panel button:focus-visible,.nova-panel a:focus-visible{outline:3px solid #8B6CFF;outline-offset:2px}
.nova-on .nova-launch{opacity:0;pointer-events:none;transform:scale(.9)}
.nova-panel{position:fixed;right:20px;bottom:20px;z-index:60;width:380px;max-width:calc(100vw - 24px);height:min(600px,calc(100vh - 60px));display:flex;flex-direction:column;background:#fff;border:1px solid var(--cw-line);border-radius:20px;box-shadow:0 30px 70px -20px rgba(15,23,42,.35);overflow:hidden;animation:nova-in .22s ease-out}
.nova-panel[hidden]{display:none}
@keyframes nova-in{from{opacity:0;transform:translateY(12px)}to{opacity:1;transform:none}}
.nova-head{display:flex;align-items:center;gap:11px;padding:14px 14px 14px 16px;background:var(--cw-grad);color:#fff}
.nova-head b{display:block;font-size:16px;line-height:1.2}.nova-head small{display:block;font-size:12px;opacity:.9;margin-top:2px}
.nova-av{width:38px;height:38px;border-radius:12px;background:rgba(255,255,255,.2);display:grid;place-items:center;flex:none}.nova-av svg{width:20px;height:20px}
.nova-x{margin-left:auto;width:34px;height:34px;border:0;border-radius:10px;background:rgba(255,255,255,.16);color:#fff;display:grid;place-items:center;cursor:pointer}.nova-x svg{width:18px;height:18px}
.nova-log{flex:1;overflow-y:auto;padding:16px 14px 8px;background:var(--cw-soft);display:flex;flex-direction:column;gap:9px;overscroll-behavior:contain}
.nova-msg{max-width:86%;padding:10px 13px;border-radius:16px;font-size:14px;line-height:1.5;word-wrap:break-word}
.nova-bot{align-self:flex-start;background:#fff;border:1px solid var(--cw-line);border-bottom-left-radius:5px}
.nova-user{align-self:flex-end;background:var(--cw-acc);color:#fff;border-bottom-right-radius:5px}
.nova-msg a{color:var(--cw-acc);font-weight:650;text-decoration:underline;text-underline-offset:2px}.nova-user a{color:#fff}
.nova-dots{display:inline-flex;gap:4px;padding:3px 0}.nova-dots i{width:7px;height:7px;border-radius:50%;background:#94A3B8;animation:nova-b 1s infinite}.nova-dots i:nth-child(2){animation-delay:.15s}.nova-dots i:nth-child(3){animation-delay:.3s}
@keyframes nova-b{0%,80%,100%{opacity:.3;transform:translateY(0)}40%{opacity:1;transform:translateY(-3px)}}
.nova-chips{display:flex;flex-wrap:wrap;gap:7px;padding:4px 14px 10px;background:var(--cw-soft)}.nova-chips[hidden]{display:none}
.nova-chip{border:1px solid var(--cw-line);background:#fff;color:var(--cw-ink);border-radius:999px;padding:8px 12px;font:600 13px/1.1 -apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;cursor:pointer;transition:.15s}.nova-chip:hover{border-color:var(--cw-acc);color:var(--cw-acc)}
.nova-form{display:flex;gap:8px;padding:10px 12px;border-top:1px solid var(--cw-line);background:#fff}
.nova-form input{flex:1;min-width:0;height:44px;border:1px solid var(--cw-line);border-radius:12px;padding:0 13px;font:500 16px/1 -apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;color:var(--cw-ink);background:#fff}
.nova-form input:focus{outline:0;border-color:var(--cw-acc);box-shadow:0 0 0 3px rgba(117,96,216,.18)}
.nova-form button{width:44px;height:44px;border:0;border-radius:12px;background:var(--cw-grad);color:#fff;display:grid;place-items:center;cursor:pointer;flex:none}.nova-form button svg{width:19px;height:19px}
.nova-foot{display:flex;gap:8px;padding:0 12px 6px;background:#fff}
.nova-wa,.nova-leadbtn{flex:1;display:inline-flex;align-items:center;justify-content:center;gap:6px;height:36px;border-radius:10px;font:650 12.5px/1 -apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;cursor:pointer;text-decoration:none}
.nova-wa{background:#E9FBF0;color:#128C4B;border:1px solid #BFEFD1}.nova-wa svg{width:16px;height:16px}
.nova-leadbtn{background:#fff;color:var(--cw-acc);border:1px solid var(--cw-line)}.nova-leadbtn:hover{border-color:var(--cw-acc)}
.nova-fine{margin:0;padding:2px 12px 9px;background:#fff;font-size:10.5px;color:#94A3B8;text-align:center}
.nova-lead{align-self:stretch;background:#fff;border:1px solid var(--cw-line);border-radius:16px;padding:12px;display:flex;flex-direction:column;gap:8px;font-size:13.5px}
.nova-lead p{margin:0;line-height:1.45}.nova-lead label{display:flex!important;padding:0;color:var(--cw-ink);flex-direction:column;gap:4px;font-weight:650;font-size:12.5px}.nova-lead em{color:#E11D48;font-style:normal}.nova-lead small{font-weight:500;color:#94A3B8}
.nova-lead input{height:40px;border:1px solid var(--cw-line);border-radius:10px;padding:0 11px;font:500 16px/1 -apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;color:var(--cw-ink)}
.nova-lead input:focus{outline:0;border-color:var(--cw-acc);box-shadow:0 0 0 3px rgba(117,96,216,.18)}
.nova-lead button{height:42px;border:0;border-radius:10px;background:var(--cw-grad);color:#fff;font:700 14px/1 -apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;cursor:pointer}.nova-lead button:disabled{opacity:.6}
.nova-hp{position:absolute!important;left:-9999px!important;width:1px;height:1px;opacity:0}
.nova-err{color:#BE123C!important;font-size:12.5px;min-height:0}.nova-err:empty{display:none}
/* Greeting bubble, unread badge, and subtle launcher pulse. */
.nova-launch{overflow:visible}
.nova-pulse .nova-launch::before{content:"";position:absolute;inset:-7px;border-radius:999px;box-shadow:0 0 0 2px rgba(139,108,255,.55);animation:nova-ring 2.8s ease-out infinite;pointer-events:none}
@keyframes nova-ring{0%{transform:scale(.95);opacity:.7}70%{transform:scale(1.22);opacity:0}100%{transform:scale(1.22);opacity:0}}
.nova-badge{position:absolute;top:-5px;right:-3px;min-width:18px;height:18px;padding:0 5px;border-radius:999px;background:#E11D48;color:#fff;font:700 10px/18px -apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;text-align:center;box-shadow:0 0 0 2px #fff;pointer-events:none}
.nova-badge[hidden],.nova-greet[hidden]{display:none!important}
.nova-greet{position:fixed;right:20px;bottom:84px;z-index:50;width:min(272px,calc(100vw - 40px));background:#fff;border:1px solid var(--cw-line);border-radius:16px;box-shadow:0 18px 40px -16px rgba(16,18,51,.4),0 2px 8px rgba(16,18,51,.08);animation:nova-pop .55s cubic-bezier(.22,1.35,.36,1)}
.nova-greet::after{content:"";position:absolute;right:28px;bottom:-6px;width:12px;height:12px;background:#fff;border-right:1px solid var(--cw-line);border-bottom:1px solid var(--cw-line);transform:rotate(45deg)}
@keyframes nova-pop{0%{opacity:0;transform:translateY(14px) scale(.96)}62%{opacity:1;transform:translateY(-5px) scale(1.03)}100%{opacity:1;transform:none}}
.nova-greet-msg{display:block;width:100%;border:0;background:transparent;text-align:left;cursor:pointer;font:600 14px/1.45 -apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;color:var(--cw-ink);padding:13px 36px 13px 15px}
.nova-greet-msg:hover{color:#4C3AA8}
.nova-greet-x{position:absolute;top:6px;right:6px;z-index:1;width:26px;height:26px;border:0;border-radius:8px;background:transparent;color:#6B6580;cursor:pointer;display:grid;place-items:center}
.nova-greet-x:hover{background:#F7F5FE;color:#101233}
.nova-greet-x svg{width:14px;height:14px}
.nova-on .nova-greet{display:none!important}
.nova-greet button:focus-visible{outline:3px solid #8B6CFF;outline-offset:2px}
@media (max-width:600px){
  .nova-launch{right:20px;bottom:20px;height:48px;padding:0 13px}
  .nova-launch-label{display:none}
  .nova-greet{right:16px;bottom:80px;width:min(236px,calc(100vw - 36px))}
  .nova-panel{right:0;left:0;bottom:0;width:100%;max-width:100%;height:calc(100% - 56px);height:calc(100dvh - 56px);border-radius:20px 20px 0 0;border-bottom:0}
}
@media (prefers-reduced-motion:reduce){.nova-panel,.nova-dots i,.nova-greet,.nova-pulse .nova-launch::before{animation:none}.nova-launch{transition:none}}
