/* ---------- Chats (Messenger-inspired) ---------- */
.msgr-head h1 { font-size: 1.5rem; font-weight: 800; letter-spacing: -.01em; }
.msgr-head .icon-btn { background: var(--surface2); border-radius: 50%; }
.msgr-inbox .search .input { border-radius: 999px; background: var(--surface2); border-color: transparent; }
.active-strip { display: flex; gap: 12px; overflow-x: auto; padding: 4px 2px 10px; margin-bottom: 4px; scrollbar-width: none; }
.active-strip::-webkit-scrollbar { display: none; }
.active-strip .act { flex: none; width: 62px; display: flex; flex-direction: column; align-items: center; gap: 4px; text-decoration: none; color: var(--text); }
.active-strip .act small { font-size: .72rem; max-width: 62px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--muted); }
.active-strip .act-av { position: relative; display: block; }
.active-strip .act-av .online-dot { left: auto; right: 0; top: auto; bottom: 2px; width: 14px; height: 14px; box-shadow: 0 0 0 3px var(--bg); }
.active-strip .act-av.add { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: var(--surface2); color: var(--muted); }
.msgr-inbox .list-item.conv { border-radius: 14px; padding: 10px 8px; gap: 12px; border: 0; background: transparent; }
.msgr-inbox .list-item.conv:hover { background: var(--surface2); }
.msgr-inbox .list-item.conv.on { background: color-mix(in srgb, var(--crimson) 9%, var(--surface)); }
.msgr-inbox .list-item.conv.is-unread b, .msgr-inbox .list-item.conv.is-unread small { color: var(--text); font-weight: 700; }
/* two panes on wide screens */
.msgr { display: grid; grid-template-columns: minmax(300px, 380px) minmax(0, 1fr); height: calc(100dvh - var(--datebar-h)); }
.msgr-left { border-right: 1px solid var(--line); overflow-y: auto; min-width: 0; }
.msgr-left .page { padding-top: 0; max-width: none; }
.msgr-right { min-width: 0; display: flex; flex-direction: column; }
.msgr-right .chat { height: 100%; }
.msgr-right .chat .topbar a[aria-label="Back"] { display: none; }
.msgr-empty { margin: auto; text-align: center; max-width: 340px; padding: 24px; display: flex; flex-direction: column; align-items: center; gap: 8px; color: var(--muted); }
.msgr-empty h3 { color: var(--text); margin: 6px 0 0; }
/* chat bubbles: Messenger-like rounding */
.chat-log .msg .bubble, .chat-log .msg > .b { border-radius: 18px; }
/* ---------- composer: also share to ---------- */
.share-to { display: flex; flex-direction: column; gap: 6px; padding: 10px 12px; border: 1px dashed var(--line); border-radius: 14px; }
.share-to .chips button { gap: 6px; }
.share-to .chips button.on { background: color-mix(in srgb, var(--blue) 12%, var(--surface)); color: var(--text); border-color: var(--blue-l); box-shadow: none; }
.share-to .chips button.on::after { content: "✓"; font-weight: 800; color: var(--blue-l); }
.dest-ic { width: 18px; height: 18px; border-radius: 50%; display: inline-grid; place-items: center; background: linear-gradient(140deg, var(--crimson), var(--blue)); color: #fff; }
.dest-ic.lg { width: 26px; height: 26px; }
.share-note:empty { display: none; }
.share-after .list-item { width: 100%; text-align: left; font: inherit; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; cursor: pointer; color: var(--text); }
.share-after .list-item.done { border-color: var(--ok); }

.msgr-left .topbar { position: static; margin-top: 0; }
.msgr-left .msg-tabs { margin-top: 4px; }
.bottom-nav.seven a span { letter-spacing: -.02em; }
.bottom-nav .l-short { display: none; }
@media (max-width: 400px) { .bottom-nav .l-full { display: none; } .bottom-nav .l-short { display: block; } }
