/* V8.1 attachment previews only change display dimensions, never original bytes. */
#chatBox .q81-tools{display:flex;flex-wrap:wrap;gap:6px;padding:7px 12px;background:#f4f8fc;border-bottom:1px solid #ccd9e5;flex-shrink:0}
#chatBox .q81-tools button,#chatBox #q8-online button{border:1px solid #9ab4c7;border-radius:8px;background:#fff;color:#183c55;padding:7px 10px;font:inherit;cursor:pointer;font-size:12px;min-height:34px}
#chatBox .q81-tools .q81-danger{color:#96263b;border-color:#ca8997;background:#fff1f3}
#chatBox .q81-tools button:disabled{opacity:.5;cursor:wait}#chatBox .q81-tools [hidden],#chatBox #q81-online-list[hidden]{display:none!important}
#chatBox .q81-status{color:#213f58;background:#f4f8fc;font-size:11px;padding:3px 12px;white-space:pre-wrap;flex-shrink:0}
#chatBox .q81-status:empty{display:none}#chatBox .q81-attachment{margin-top:8px;max-width:100%;overflow-wrap:anywhere}
#chatBox .q81-attachment img{display:block;width:auto;height:auto;max-width:100%;max-height:240px;object-fit:contain;border-radius:8px;background:#fff}
#chatBox .q81-attachment a{display:block;font-size:12px;margin:5px 0;color:inherit;text-decoration:underline;overflow-wrap:anywhere}
#chatBox .chat-msg{min-width:0;max-width:100%;box-sizing:border-box}#chatBox .chat-text{overflow-wrap:anywhere}#chatBox #q8-online{max-height:120px;overflow:auto;flex-shrink:0}#chatBox .chat-messages{min-height:80px;flex:1;overflow:auto}
@media(max-width:500px){#chatBox .q81-attachment img{max-height:180px}#chatBox .q81-tools button{font-size:11px}}

#chatBox{height:min(700px,90dvh)!important;max-height:90dvh!important}#chatBox .q81-attachment img{max-height:var(--q81-image-height,140px)!important}
html body #chatBox.on{height:min(700px,90dvh)!important;max-height:90dvh!important}
