#friendChat { border: 1px solid var(--hair, #414157); border-radius: 14px; overflow: hidden; padding: 14px; min-width: 0; }
.chat-head, .chat-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 5px 10px; }
.chat-head h2 { min-width: 0; overflow-wrap: anywhere; }
#chatMessages { display: grid; gap: 8px; max-height: 270px; min-height: 80px; overflow: auto; list-style: none; margin: 8px 0; padding: 5px 1px; }
#chatMessages li { min-width: 0; max-width: 86%; min-height: 0; }
#chatMessages li:not(.hint) { border-radius: 10px; padding: 7px 10px; background: #302a23; }
#chatMessages li.chat-mine { justify-self: end; background: #283748; }
#chatMessages p { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
#chatMessages time { display: block; font-size: .74rem; color: #c4bac0; }
#chatForm { display: grid; gap: 7px; }
#chatForm textarea { min-width: 0; width: 100%; resize: vertical; max-height: 180px; padding: 8px 10px; border: 1px solid #605445; border-radius: 8px; background: #181511; color: inherit; font: inherit; }
#chatStatus:empty { display: none; }
#shareOptions { display: grid; gap: 5px; margin: 8px 0; }
#shareOptions label { display: flex; align-items: center; gap: 8px; min-height: 30px; font-size: .87rem; }
#shareOptions input { width: 17px; height: 17px; margin: 0; }
#friendRoute { margin-bottom: 8px; }
