/* Chronocairn V161 — compact WoW-like chat panel. */
#v161Chat{position:absolute;left:18px;bottom:92px;z-index:19;width:min(470px,43vw);pointer-events:none;font:12px/1.42 ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;text-shadow:0 1px 2px #000,0 0 4px #000;user-select:none}
#v161ChatLog{max-height:174px;overflow:hidden;padding:8px 10px 5px;background:linear-gradient(180deg,transparent,#05070db5);border-left:1px solid transparent;border-right:1px solid transparent;scrollbar-width:thin;scrollbar-color:#6e4b83 #090b12}
#v161Chat.open{pointer-events:auto;user-select:text}
#v161Chat.open #v161ChatLog{overflow-y:auto;background:#05070de8;border:1px solid #4d3d61;border-bottom:0;box-shadow:0 9px 28px #000b,inset 0 0 18px #0008}
#v161ChatLog::-webkit-scrollbar{width:7px}#v161ChatLog::-webkit-scrollbar-track{background:#090b12}#v161ChatLog::-webkit-scrollbar-thumb{background:#6e4b83;border:1px solid #17101f}
.v161-chat-line{display:flex;align-items:baseline;gap:5px;min-height:18px;white-space:normal;overflow-wrap:anywhere;color:#eee8f2}
.v161-chat-time{color:#77717e;font-size:9px;flex:0 0 auto}.v161-chat-channel{color:#c7a5e4;flex:0 0 auto}.v161-chat-author{font-weight:800;flex:0 0 auto}.v161-chat-text{color:#ece7f0}.v161-chat-line.system .v161-chat-channel,.v161-chat-line.system .v161-chat-text{color:#f3d17a}.v161-chat-line.error .v161-chat-channel,.v161-chat-line.error .v161-chat-text{color:#ff7b88}
#v161RestState{display:none;padding:5px 9px;background:#09130edc;border:1px solid #4c8961;color:#87e0a0;font:bold 10px ui-monospace,monospace;letter-spacing:.04em;text-shadow:0 1px 2px #000}
#v161RestState.active{display:block}
#v161ChatForm{display:none;height:34px;align-items:center;background:#070910f3;border:1px solid #6b4b7f;box-shadow:0 8px 24px #000c}
#v161Chat.open #v161ChatForm{display:flex}.v161-chat-prompt{padding:0 9px;color:#f4d47b;font-weight:800;white-space:nowrap}
#v161ChatInput{min-width:0;flex:1;height:30px;padding:4px 8px;border:0!important;outline:0!important;background:#0d1019!important;color:#f2edf5!important;font:12px ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;box-shadow:none!important}
#v161ChatInput::placeholder{color:#77717e}
@media(max-width:800px){#v161Chat{left:10px;bottom:84px;width:min(560px,74vw);font-size:11px}#v161ChatLog{max-height:130px}}
