#pvchat{position:fixed;right:max(22px,env(safe-area-inset-right));bottom:max(22px,env(safe-area-inset-bottom));z-index:9998;font-family:system-ui,-apple-system,sans-serif;color:#f7f5ff;line-height:1.5;text-align:left}#pvchat *,#pvchat *:before,#pvchat *:after{box-sizing:border-box}#pvchat [hidden]{display:none!important}#pvchat button{font:inherit;cursor:pointer;box-shadow:none;transform:none;letter-spacing:normal;text-transform:none}#pvchat .pvchat-toggle{display:grid;place-items:center;margin-left:auto;padding:0;width:60px;height:60px;border:1px solid #b5aaff;border-radius:50%;background:linear-gradient(145deg,#9c89ff,#6650d4);color:#fff;box-shadow:0 8px 30px #08061566;transition:transform .2s ease,box-shadow .2s ease}#pvchat .pvchat-toggle:hover{transform:translateY(-2px);box-shadow:0 10px 34px #8b74ff55}#pvchat .pvchat-toggle svg{width:27px;height:27px;transform:scaleX(-1)}#pvchat .pvchat-panel{width:min(360px,calc(100vw - 32px));margin-bottom:14px;overflow:hidden;border:1px solid #a194ff44;border-radius:22px;background:#191728;box-shadow:0 18px 70px #0007}#pvchat .pvchat-head{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:18px 20px;border-bottom:1px solid #ffffff12;background:transparent}#pvchat .pvchat-head strong{display:block;font-size:16px;color:#fff;line-height:1.5}#pvchat .pvchat-head span{display:block;margin-top:3px;color:#aaa5be;font-size:12px}#pvchat .pvchat-close{display:grid;place-items:center;flex:0 0 32px;width:32px;height:32px;padding:0;border:0;border-radius:50%;background:#ffffff0a;color:#d1cce4;font-size:23px;line-height:1}#pvchat .pvchat-messages{height:min(300px,35dvh);padding:18px;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin}#pvchat .pvchat-bubble{width:fit-content;max-width:96%;margin:0 0 14px;padding:12px 14px;border-radius:15px 15px 15px 4px;background:#ffffff08;color:#d8d3e8;font-size:14px;line-height:1.6;white-space:pre-wrap;overflow-wrap:anywhere}#pvchat .pvchat-bubble-client{margin-left:auto;background:#7560ce44;border-radius:15px 15px 4px 15px}#pvchat .pvchat-author{display:block;margin-bottom:4px;color:#bfb2ff;font-size:11px;font-weight:700}#pvchat .pvchat-form{display:grid;gap:9px;margin:0;padding:0 18px 18px}#pvchat .pvchat-form label{color:#aaa5be;font-size:12px}#pvchat textarea{display:block;width:100%;min-height:66px;max-height:140px;margin:0;padding:12px;resize:vertical;border:1px solid #b3a2ff44;border-radius:12px;background:#ffffff06;color:#fff;font:16px/1.4 system-ui}#pvchat .pvchat-form button{width:100%;min-height:44px;margin:0;padding:10px 16px;border:0;border-radius:12px;background:#8b74ee;color:#fff;font-size:14px;font-weight:700}#pvchat button:disabled{opacity:.6;cursor:wait}#pvchat .pvchat-status{display:block;min-height:18px;color:#a6a0bb;font-size:12px;line-height:1.4;text-align:center}#pvchat button:focus-visible,#pvchat textarea:focus-visible{outline:2px solid #d6cdff;outline-offset:3px}@media(max-width:640px){#pvchat{right:16px;bottom:calc(82px + env(safe-area-inset-bottom))}#pvchat .pvchat-toggle{width:54px;height:54px}#pvchat .pvchat-panel{max-height:calc(100dvh - 180px);overflow-y:auto}#pvchat .pvchat-messages{height:min(240px,28dvh)}}@media(prefers-reduced-motion:reduce){#pvchat *{transition:none!important}}

/* Keep native scrolling discreet and consistent with the chat surface. */
#pvchat { color-scheme: dark; }
#pvchat :is(.pvchat-messages,.pvchat-panel,textarea) { scrollbar-width: thin; scrollbar-color: #75658f transparent; }
#pvchat :is(.pvchat-messages,.pvchat-panel,textarea)::-webkit-scrollbar { width: 6px; height: 6px; }
#pvchat :is(.pvchat-messages,.pvchat-panel,textarea)::-webkit-scrollbar-track { background: transparent; }
#pvchat :is(.pvchat-messages,.pvchat-panel,textarea)::-webkit-scrollbar-thumb { background: #75658f; border: 0; border-radius: 999px; }
#pvchat :is(.pvchat-messages,.pvchat-panel,textarea)::-webkit-scrollbar-thumb:hover { background: #a18ac4; }
#pvchat :is(.pvchat-messages,.pvchat-panel,textarea)::-webkit-scrollbar-button { display: none; width: 0; height: 0; }
#pvchat :is(.pvchat-messages,.pvchat-panel,textarea)::-webkit-scrollbar-corner { background: transparent; }
@supports selector(::-webkit-scrollbar) { #pvchat :is(.pvchat-messages,.pvchat-panel,textarea) { scrollbar-width: auto; scrollbar-color: auto; } }
#pvchat .pvchat-panel { display: flex; flex-direction: column; max-height: calc(100dvh - 120px); overflow: hidden; }
#pvchat .pvchat-head,#pvchat .pvchat-form { flex-shrink: 0; }
#pvchat .pvchat-messages { flex: 1 1 auto; min-height: 64px; overflow-x: hidden; }
#pvchat textarea { resize: none; }
@media(max-width:640px) { #pvchat .pvchat-panel { max-height: calc(100dvh - 180px); overflow: hidden; } }
