#hpx-chat{max-width:1100px;margin:64px auto;padding:32px;background:#101115;border:1px solid #63532c;border-radius:20px;color:#f6f3e9;font-family:Arial,sans-serif;text-align:left;box-sizing:border-box}#hpx-chat *{box-sizing:border-box}#hpx-chat h2{font-size:24px;line-height:1.3;margin:0 0 8px;color:#ceb46c}#hpx-chat p{font-size:16px;line-height:1.6;margin:8px 0}#hpx-chat .hpx-note{color:#bbb;font-size:14px}#hpx-chat-log{height:280px;overflow:auto;padding:12px 0;margin:24px 0;display:flex;flex-direction:column;gap:14px}#hpx-chat .hpx-message{padding:16px 20px;background:#1a1b20;border:1px solid #36373b;border-radius:12px;white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.6;font-size:16px}#hpx-chat .hpx-user{background:#302a1c;margin-left:10%}#hpx-chat .hpx-speaker{display:block;font-size:14px;font-weight:700;color:#ceb46c;margin-bottom:6px}#hpx-chat-form{display:flex;gap:12px;align-items:end}#hpx-chat-form label{flex:1;font-size:14px;color:#ddd}#hpx-chat-input{display:block;width:100%;margin-top:8px;min-height:54px;padding:14px;background:#090a0c;color:white;border:1px solid #555;border-radius:10px;font:16px Arial,sans-serif;resize:vertical}#hpx-chat button{padding:16px 24px;min-height:54px;background:#d9bf79;color:#161616;border:0;border-radius:10px;font:bold 16px Arial,sans-serif;cursor:pointer}#hpx-chat button:disabled{opacity:.6;cursor:wait}#hpx-chat-status{min-height:24px;color:#ddd;font-size:14px;margin-top:12px}#hpx-chat :focus-visible{outline:3px solid #ecd28d;outline-offset:4px}@media(max-width:600px){#hpx-chat{margin:32px 16px;padding:20px}#hpx-chat-form{flex-direction:column;align-items:stretch}#hpx-chat-form label{width:100%}#hpx-chat-log{height:260px}}
#hpx-chat-launcher{position:fixed;right:24px;bottom:24px;z-index:100001;border:1px solid #d9bf79;border-radius:999px;background:#d9bf79;color:#111;padding:16px 24px;font:bold 16px Arial,sans-serif;cursor:pointer;box-shadow:0 8px 30px #0005}#hpx-chat{position:fixed;right:24px;bottom:94px;width:min(420px,calc(100vw - 32px));max-height:calc(100dvh - 120px);overflow:auto;margin:0;padding:24px;z-index:100000;box-shadow:0 16px 70px #0008}#hpx-chat[hidden]{display:none}#hpx-chat h2{padding-right:36px}#hpx-chat-close{position:absolute;right:16px;top:14px;background:transparent!important;color:#ddd!important;padding:6px!important;min-height:32px!important;width:32px;font-size:24px!important}#hpx-chat-log{height:240px;margin:16px 0}#hpx-chat-form{flex-direction:column;align-items:stretch}#hpx-chat-form label{width:100%}#hpx-chat-launcher:focus-visible{outline:3px solid white;outline-offset:4px}@media(max-width:600px){#hpx-chat{right:16px;bottom:86px;margin:0;padding:20px}#hpx-chat-launcher{right:16px;bottom:16px}}

#hpx-chat{display:flex;flex-direction:column;min-width:min(320px,calc(100vw - 32px));min-height:360px}#hpx-chat-log{flex:1;min-height:100px}#hpx-chat-resize{position:absolute;left:4px;top:4px;width:28px;min-height:28px!important;padding:2px!important;border-radius:4px!important;background:transparent!important;color:#ceb46c!important;cursor:nwse-resize!important;touch-action:none;font-size:20px!important}#hpx-chat h2{margin-left:12px}#hpx-chat.hpx-resizing{user-select:none}#hpx-chat-form{flex-shrink:0}@media(max-height:500px){#hpx-chat{min-height:0}#hpx-chat-log{min-height:60px}}

#hpx-chat-title{cursor:move;touch-action:none;user-select:none}#hpx-chat{max-height:calc(100dvh - 32px)}

#hpx-chat-resize{left:auto;top:auto;right:4px;bottom:4px}#hpx-chat-input{resize:none}#hpx-chat h2{margin-left:0}

#hpx-chat-form{flex-direction:row;align-items:end}#hpx-chat-form label{min-width:0}#hpx-chat-form button[type=submit]{width:44px;min-width:44px;height:44px;min-height:44px;padding:12px;display:grid;place-items:center;flex-shrink:0;margin-bottom:5px}

#hpx-chat .hpx-markdown{white-space:normal;line-height:1.65}#hpx-chat .hpx-markdown p{margin:0 0 12px}#hpx-chat .hpx-markdown p:last-child{margin-bottom:0}#hpx-chat .hpx-markdown :is(h1,h2,h3,h4,h5,h6){font-family:Arial,sans-serif;margin:18px 0 10px;padding:0;color:#dfc981;font-weight:700;line-height:1.4;font-size:18px}#hpx-chat .hpx-markdown :is(ul,ol){padding-left:24px;margin:10px 0}#hpx-chat .hpx-markdown li{margin:6px 0}#hpx-chat .hpx-markdown a{color:#e5cc86;text-decoration:underline;overflow-wrap:anywhere}#hpx-chat .hpx-markdown blockquote{border-left:3px solid #b99c55;padding-left:14px;margin:12px 0;color:#ccc}#hpx-chat .hpx-markdown pre{white-space:pre-wrap;overflow:auto;background:#090a0c;padding:12px;border-radius:6px}#hpx-chat .hpx-markdown code{font:14px monospace;background:#090a0c;border-radius:4px;padding:2px 4px}#hpx-chat .hpx-markdown table{display:block;overflow:auto;border-collapse:collapse;max-width:100%;font-size:14px}#hpx-chat .hpx-markdown :is(td,th){padding:8px;border:1px solid #555;text-align:left}

#hpx-chat-dock{position:fixed;right:24px;bottom:24px;z-index:100001;display:flex;align-items:stretch;gap:6px}#hpx-chat-dock #hpx-chat-launcher{position:static}#hpx-chat-dock #hpx-chat-mic{aspect-ratio:1;min-width:38px;padding:0;display:grid;place-items:center;border-radius:999px;background:#d9bf79;color:#161616;border:1px solid #d9bf79;cursor:pointer;box-shadow:0 8px 30px #0005}#hpx-chat-dock #hpx-chat-mic.hpx-voice-active{background:#9d2929;color:#fff;border-color:#ff8b8b;animation:hpx-pulse 1.6s ease-in-out infinite}#hpx-chat-dock #hpx-chat-mic:disabled{opacity:.6;cursor:wait}#hpx-chat-dock :focus-visible{outline:3px solid #fff;outline-offset:4px}@keyframes hpx-pulse{0%,100%{box-shadow:0 0 0 0 #ff8b8b66}50%{box-shadow:0 0 0 10px #ff8b8b00}}@media(prefers-reduced-motion:reduce){#hpx-chat-dock #hpx-chat-mic.hpx-voice-active{animation:none}}@media(max-width:600px){#hpx-chat-dock{right:16px;bottom:16px}}#hpx-chat-input:disabled{opacity:.55}#hpx-chat-form{gap:8px}

#hpx-site-frame{position:fixed;inset:0;width:100%;height:100%;border:0;background:#000;z-index:99999;visibility:hidden}html.hpx-shelled{overflow:hidden}html.hpx-shelled #hpx-site-frame{visibility:visible}html.hpx-shelled body>*:not(#hpx-site-frame):not(#hpx-chat-dock):not(#hpx-chat):not(#hansx-canvas-root){display:none!important}
#hpx-chat-launcher{background:rgba(217,191,121,.6);-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px)}
#hpx-chat-launcher{padding:9px 16px;font-size:14px;line-height:20px}#hpx-chat-dock #hpx-chat-mic svg{width:18px;height:18px}#hpx-chat{bottom:78px}
#hpx-chat-dock{gap:0;border-radius:999px;box-shadow:0 8px 30px #0005}#hpx-chat-dock #hpx-chat-launcher{border-radius:999px 0 0 999px;border-right:0;box-shadow:none}#hpx-chat-dock #hpx-chat-mic{border-radius:0 999px 999px 0;border:0;border-left:1px solid #16161640;box-shadow:none}
#hpx-chat-dock #hpx-chat-mic.hpx-voice-active{background:#1e9e4a;color:#04210d;animation:hpx-flash 1.1s ease-in-out infinite}@keyframes hpx-flash{0%,100%{background:#1e9e4a}50%{background:#5eea8a}}@media(prefers-reduced-motion:reduce){#hpx-chat-dock #hpx-chat-mic.hpx-voice-active{animation:none}}
