.unread-count{display:inline-flex;align-items:center;justify-content:center;min-width:21px;width:auto;height:21px;padding:1px 6px;font-size:12px;font-weight:700;color:var(--bg);flex-shrink:0}
.unread-divider{display:flex;align-items:center;gap:12px;margin:12px 0;color:var(--accent);font-size:13px;font-weight:650;scroll-margin-top:8px}
.unread-divider::before,.unread-divider::after{content:'';height:1px;background:var(--accent);flex:1}
#newerMessages{display:block;margin:12px auto;min-height:40px}
.attachment-preview{display:flex;align-items:center;gap:10px;padding:8px 10px;border-bottom:1px solid var(--line);max-height:130px;overflow:auto}
.attachment-preview>img{width:76px;height:60px;object-fit:contain;border-radius:6px;background:#0003;flex-shrink:0}
.attachment-details{flex:1;min-width:0;font-size:13px;overflow-wrap:anywhere}.attachment-details progress{display:block;width:100%;margin-top:6px;height:8px}
.attachment-preview button{flex-shrink:0;max-width:130px}.image-drop-target{outline:3px dashed var(--accent);outline-offset:-5px}
.message-attachment img{display:block;max-width:min(520px,100%);max-height:420px;border-radius:8px;cursor:zoom-in;object-fit:contain;margin-top:6px}
.storage-dialog{width:min(520px,calc(100vw - 24px))}.storage-dialog p{margin:12px 0}.storage-dialog progress{width:100%}
.linked-message{outline:2px solid var(--accent);outline-offset:-2px}
.member-management{margin:12px 0}.member-management summary{cursor:pointer;padding:8px 0}.member-management[open]{display:flex;flex-direction:column;gap:6px}.member-management button{display:block;width:100%;margin:5px 0;text-align:left}.member-quick-chat{margin-top:14px;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px;align-items:end}.member-quick-chat label{min-width:0}.member-quick-chat textarea{display:block;box-sizing:border-box;width:100%;margin-top:6px;min-height:56px;resize:vertical}.member-chat-status{grid-column:1/-1;margin:0}
.community-shortcuts{display:grid;grid-template-columns:1fr 1fr;gap:4px}.community-shortcuts button{min-width:0;padding:7px 4px;font-size:12px}.storage-dialog section{padding:10px 0;border-bottom:1px solid var(--border)}.storage-dialog section button{margin:3px}.storage-dialog{max-height:85dvh;overflow-y:auto}
.next-event{margin:2px 20px;padding:5px 10px;text-align:left;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-height:28px;flex-shrink:0}.private-message-action{margin-top:8px;border-color:var(--accent)}
.image-viewer>button{display:block;margin-left:auto;min-height:36px;min-width:36px}
@media(max-width:900px){.attachment-preview{gap:6px;padding:5px 8px;max-height:90px}.attachment-preview>img{width:48px;height:44px}.attachment-preview button{font-size:12px;padding:5px 6px!important;max-width:90px}.attachment-details{font-size:12px}.message-attachment img{max-height:300px}}
