/* Chat launcher and a proper message composer */
.chat-fab{position:fixed;right:19px;bottom:18px;z-index:22;display:flex;gap:8px;align-items:center;border:1px solid #cdff615e;background:#b9ff30;color:#10180b;border-radius:50px;padding:11px 16px;font-size:12px;font-weight:1000;box-shadow:0 10px 40px #0009}.chat-fab svg{width:18px;height:18px}.chat-fab .unread{min-width:18px;height:18px;width:auto;background:#ff4757;border-radius:9px;color:#fff;font-size:10px;font-weight:800;display:inline-flex;align-items:center;justify-content:center;padding:0 5px}
.chat-box{display:none;flex-direction:column;position:fixed;z-index:40;right:16px;bottom:17px;width:365px;height:min(525px,calc(100dvh - 35px));border:1px solid #ffffff23;box-shadow:0 25px 90px #000c;background:#121b23;border-radius:15px;overflow:hidden}.chat-box.open{display:flex}.chat-head{flex:none;height:59px;background:linear-gradient(90deg,#1a2930,#151c24);border-bottom:1px solid #ffffff14;display:flex;align-items:center;justify-content:space-between;padding:0 13px}.chat-identity{display:flex;align-items:center;gap:9px}.chat-icon{width:35px;height:35px;border-radius:10px;color:#111a13;background:var(--lime);display:grid;place-items:center}.chat-icon svg{width:20px;height:20px}.chat-identity b{display:block;font-size:12px}.chat-identity small{font-size:9px;color:#95a3af}.chat-actions{display:flex;gap:5px}.chat-actions button{background:#27323c;border:0;color:#cbd7dc;border-radius:7px;width:29px;height:28px;font-size:16px}
.chat-room{flex:none;height:35px;display:flex;align-items:center;gap:7px;padding:0 11px;border-bottom:1px solid var(--line);font-size:10px;color:#b3c2ca}.chat-room b{padding:6px 9px;border-radius:6px;background:#bfff281c;color:#cfff7e}.chat-notice{flex:none;margin:10px 12px 3px;padding:9px 10px;background:#1b2930;border:1px solid #ffffff10;border-radius:8px;color:#a9bbc7;font-size:10px;line-height:1.5}.chat-notice strong{color:#e5f2f5}
.chat-messages{flex:1;min-height:0;overflow:auto;padding:13px 12px 3px;scrollbar-width:thin;scrollbar-color:#42545d transparent}.chat-msg{display:flex;gap:8px;margin-bottom:14px;align-items:flex-start}.chat-msg.mine{flex-direction:row-reverse}.chat-avatar{width:29px;height:29px;border-radius:9px;display:grid;place-items:center;font-weight:1000;font-size:11px;color:#0b222e;flex:none;background:#8ce0fa}.chat-msg.mine .chat-avatar{background:#bbff36;color:#152009}.chat-msg.bot .chat-avatar{background:#efd28a;color:#312814}.chat-bubble{max-width:260px;background:#202c35;border:1px solid #ffffff10;border-radius:10px;padding:9px 10px}.chat-msg.mine .chat-bubble{background:#243b2b;border-color:#b8ff2e27}.chat-msg .chat-bubble b{font-size:10px;font-weight:1000}.chat-msg .chat-bubble p{font-size:11px;line-height:1.46;color:#d2dde3;margin:4px 0 0;overflow-wrap:anywhere}.chat-msg time{font-size:8px;color:#718592;float:right;margin-left:16px}.chat-emoji{display:none;flex:none;padding:6px 9px;gap:5px;flex-wrap:wrap;border-top:1px solid #ffffff09;background:#1b2730}.chat-emoji.open{display:flex}.chat-emoji button{border:0;border-radius:6px;background:#ffffff0b;padding:5px;font-size:17px}.chat-compose{display:flex;align-items:center;gap:7px;min-height:57px;flex:none;padding:9px 10px;background:#17232b;border-top:1px solid #ffffff10}.chat-compose input{min-width:0;flex:1;height:38px;border:1px solid #ffffff1e;background:#0d161c;border-radius:8px;padding:0 10px;color:#f6fafb;font-size:11px}.emoji-toggle,.send-chat{height:37px;width:36px;border:0;border-radius:8px;background:#28343a;color:#dfebee;display:grid;place-items:center}.send-chat{background:var(--lime);color:#121a09}.chat-compose svg{width:17px;height:17px}
