.chat-room{background:linear-gradient(145deg,#101f34,#101a2b);border:1px solid #344761;border-radius:18px;overflow:hidden;position:relative}.chat-room-head{display:flex;gap:12px;justify-content:space-between;padding:16px 20px;background:#1c304b;color:#b7d2f1;font-size:13px}.chat-room-head #chat-connection{color:#e7bd73}.chat-log{height:50vh;min-height:260px;max-height:600px;overflow-y:auto;padding:18px;display:flex;flex-direction:column;gap:14px;overscroll-behavior:contain}.chat-message{border:1px solid #40536b;border-radius:4px 16px 16px;background:#1b2a40;padding:13px 16px;align-self:flex-start;min-width:150px;max-width:82%;overflow-wrap:anywhere;flex-shrink:0}.chat-message.own{align-self:flex-end;background:linear-gradient(135deg,#243d54,#25384a);border-color:#597485;border-radius:16px 4px 16px 16px}.chat-author{display:flex;gap:10px;flex-wrap:wrap;align-items:center;font-size:13px;color:#a0b2cc;margin-bottom:8px}.chat-author button{background:none;border:0;padding:0;color:#e7bd73;font-weight:700;font-size:14px;cursor:pointer}.chat-author time{margin-left:auto;font-size:11px}.chat-title{border:1px solid #657591;border-radius:5px;padding:2px 6px;font-size:11px}.chat-body{white-space:pre-wrap;line-height:1.65}.chat-actions{display:flex;gap:14px;flex-wrap:wrap;margin-top:8px;font-size:11px}.chat-actions button,.chat-actions a{background:none;border:0;padding:0;color:#a3bddb;font-size:11px;cursor:pointer;text-decoration:none}.chat-reply{display:grid;border-left:3px solid #c3a26b;padding:6px 10px;margin-bottom:9px;background:#0d1c2c;color:#b0c2da;text-decoration:none;font-size:12px;gap:3px}.chat-photo{max-width:100%;max-height:280px;border-radius:10px;margin-top:9px;display:block}.chat-message audio{max-width:100%;width:280px;height:40px;margin-top:8px;display:block}.chat-audio-caption{display:block;color:#9eafc6;font-size:11px;margin-top:4px}.chat-deleted{color:#9cabc1;font-style:italic;font-size:13px}.chat-typing{padding:8px 20px;font-size:12px;color:#94a9c6;min-height:32px}.chat-composer{background:#17283e;padding:14px 18px;border-top:1px solid #40536d}.chat-composer textarea{display:block;resize:vertical;width:100%;border:1px solid #536780;border-radius:10px;background:#0e1d30;color:#e8edf5;padding:12px;font:inherit;box-sizing:border-box;max-height:180px}.chat-composer-tools{display:flex;gap:8px;align-items:start;flex-wrap:wrap;margin-top:10px}.chat-composer-tools .gold-button{margin-left:auto}.chat-composer .emoji-picker{max-width:100%}.chat-composer .emoji-options{max-width:300px}.chat-file{position:relative;cursor:pointer}.chat-file input{position:absolute;opacity:0;width:1px;height:1px}.chat-file:focus-within{outline:2px solid #e7bd73}.chat-empty{padding:12px 20px;color:#a1b4cf}.chat-new{position:absolute;bottom:210px;left:50%;transform:translateX(-50%);background:#34577b}.chat-draft-reply,.chat-draft-file{border:1px solid #64748d;border-radius:8px;margin-bottom:8px;padding:7px 10px;color:#c6d2e3;font-size:12px;display:flex;gap:10px}.chat-draft-reply span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.chat-draft button{margin-left:auto}.chat-voice-preview{display:flex;gap:8px;flex-wrap:wrap;align-items:center;margin-bottom:12px}.chat-voice-preview audio{max-width:100%}.chat-voice-preview button,.chat-draft-reply button,.chat-draft-file button{background:#203957;color:#e8edf5;border:1px solid #5b708c;border-radius:6px;cursor:pointer;padding:5px 8px}.chat-composer .recording{border-color:#e98c92;background:#713f49}.chat-alerts:not(:empty){padding:10px 20px;background:#394034;color:#f0d09d;font-size:12px}.chat-alerts a{color:#f0d09d;margin-right:10px}.chat-alert-tag{color:#e7bd73;font-size:11px}.chat-focused{outline:2px solid #e7bd73}.mention-unread{background:#e7bd73!important;color:#14243a!important}@media(max-width:600px){.chat-room-head{padding:12px;flex-direction:column;gap:4px}.chat-log{height:47dvh;min-height:230px;padding:12px;gap:12px}.chat-message{max-width:93%;padding:11px 12px}.chat-composer{padding:12px}.chat-composer-tools{gap:6px}.chat-composer-tools .button{font-size:12px;padding:8px 10px;min-height:40px}.chat-composer-tools .gold-button{margin-left:0}.chat-room{border-radius:12px}.chat-author time{margin-left:0}.chat-new{bottom:230px;font-size:12px}}
.avatar-unit-chat-avatar{display:inline-block;flex:0 0 30px;width:30px;height:30px}.chat-avatar{display:flex;width:28px;height:28px;align-items:center;justify-content:center;font-size:14px;color:#d8cba4}.chat-avatar img{display:block;width:100%;height:100%;object-fit:cover;border-radius:6px}.avatar-unit-chat-avatar .avatar-frame{display:block;width:30px;height:30px;border-radius:7px;padding:1px}.avatar-unit-chat-avatar .presence-indicator{width:7px;height:7px;bottom:0;right:0}
