#cn-btn{position:fixed;bottom:16px;left:16px;z-index:99999;background:#b8860b;color:#fff;border:0;border-radius:24px;padding:10px 16px;font:600 14px Arial,sans-serif;cursor:pointer;box-shadow:0 3px 10px rgba(0,0,0,.3)}
#cn-box{position:fixed;bottom:16px;right:16px;z-index:100000;width:320px;max-width:calc(100vw - 24px);height:440px;max-height:calc(100vh - 32px);background:#fff;border-radius:12px;box-shadow:0 6px 24px rgba(0,0,0,.35);display:none;flex-direction:column;overflow:hidden;font:15px Arial,sans-serif}
#cn-box.open{display:flex}
#cn-head{background:#b8860b;color:#fff;padding:10px 12px;font-weight:700;display:flex;justify-content:space-between;align-items:center;gap:8px}
#cn-tools{display:flex;align-items:center;gap:12px}
#cn-tools a{color:#fff;font-size:13px;font-weight:600;text-decoration:none}
#cn-x{background:rgba(255,255,255,.25);color:#fff;border:0;border-radius:50%;width:30px;height:30px;font-size:16px;line-height:1;cursor:pointer;padding:0}
#cn-msgs{flex:1;overflow-y:auto;padding:10px;background:#faf7f0}
.cn-m{max-width:80%;padding:8px 11px;border-radius:12px;margin:6px 0;word-wrap:break-word;white-space:pre-wrap}
.cn-v{background:#b8860b;color:#fff;margin-left:auto}
.cn-a{background:#fff;color:#222;border:1px solid #e3dcc8}
#cn-opts{display:flex;flex-wrap:wrap;gap:6px;background:#faf7f0}
#cn-opts:not(:empty){padding:4px 10px 10px}
#cn-opts button{border:1px solid #b8860b;background:#fff;color:#8a6508;border-radius:16px;padding:6px 12px;font:14px Arial,sans-serif;cursor:pointer}
#cn-opts button:hover{background:#b8860b;color:#fff}
#cn-note{font-size:11px;color:#777;text-align:center;padding:3px 6px;background:#faf7f0}
#cn-form{display:flex;border-top:1px solid #ddd}
#cn-in{flex:1;border:0;padding:12px;font:15px Arial,sans-serif;outline:none;min-width:0}
#cn-send{border:0;background:#fff;color:#b8860b;font-weight:700;padding:0 14px;cursor:pointer}
.cn-menu-item a{cursor:pointer;font-weight:700}
.cn-menu-item.cn-alert a::after,#cn-btn.cn-alert::after{content:" ●";color:#e53935}
@media (max-width:480px){#cn-box{right:8px;left:8px;bottom:8px;width:auto;max-width:none;height:70vh}}
