/* Messaging (12 November 2026): the inbox rows, the thread, the composer, the unread badges, Manage club's tabs. */
.msg-unread{display:inline-grid;min-width:18px;height:18px;margin-left:auto;padding:0 5px;place-items:center;border-radius:9px;background:var(--green,#1f7a3f);color:#fff;font-size:11px;font-weight:800;line-height:18px}
.rail-button,.mobile-nav button{position:relative}
.rail-button .msg-unread,.mobile-nav button .msg-unread{position:absolute;top:4px;right:6px;margin:0}
.msg-row .section-row-copy{flex:1;min-width:0}
.msg-preview{display:block;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
.msg-row .section-row-copy small{display:block;color:#6a746c;font-size:11px}
.msg-flag{margin-left:8px;padding:2px 8px;border-radius:9px;background:#f3e3e3;color:#8a2a2a;font-size:11px;font-weight:700}
.msg-thread{display:flex;flex-direction:column;gap:8px;max-height:46vh;margin:12px 0;overflow-y:auto}
.msg-bubble{max-width:82%;padding:9px 12px;border-radius:16px;background:#eef1ee;line-height:1.4}
.msg-bubble.mine{align-self:flex-end;background:var(--green-soft,#dff0e4)}
.msg-bubble.theirs{align-self:flex-start}
.msg-bubble small{display:block;margin-top:4px;color:#6a746c;font-size:11px}
.msg-text{white-space:pre-wrap;overflow-wrap:anywhere;word-break:break-word}
.msg-compose textarea{width:100%;box-sizing:border-box;padding:10px;border:1px solid var(--line,#d9ded9);border-radius:12px;font:inherit;resize:vertical}
.msg-compose-foot{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:6px}
.msg-compose-foot .modal-primary{width:auto;min-width:120px;margin:0}
.msg-count{white-space:nowrap}
.msg-error{color:#a02a2a;min-height:1em}
.msg-note{color:#5b665e}
.msg-tools{display:flex;flex-wrap:wrap;gap:8px;margin-top:12px}
.msg-report-form{width:100%}
.msg-report-form textarea{width:100%;box-sizing:border-box;border:1px solid var(--line,#d9ded9);border-radius:10px;padding:8px;font:inherit}
.manage-tabs{display:flex;gap:8px;margin:4px 0 12px}
.manage-tabs button{display:inline-flex;align-items:center;gap:6px;padding:8px 14px;border:1px solid var(--line,#d9ded9);border-radius:999px;background:#fff;font-weight:800}
.manage-tabs button.active{background:var(--green-soft,#dff0e4);border-color:transparent}
.manage-tabs .msg-unread{margin:0}
@media(max-width:780px){.mobile-nav button{font-size:6.5px}.msg-thread{max-height:40vh}}
