/* My Good Neighbors: Messages list and chat conversations. */
.csearch{margin:10px 16px 6px}
.clist{display:flex;flex-direction:column;gap:2px;padding:4px 8px}
.crow{display:flex;align-items:center;gap:12px;min-height:68px;padding:8px;border-radius:16px;transition:background-color .12s}
.crow:hover{background:var(--bg-2)}
.crow:active{background:var(--bg-3)}
.crow>.av,.crow>.mark{width:48px;height:48px}
.crow>.mark{border-radius:16px}
.cmark-g svg{width:24px;height:24px}
.crow .row-text{gap:2px}
.crow-top,.crow-bot{display:flex;align-items:center;gap:8px;min-width:0}
.crow-top .row-title{flex:1;font-size:var(--fs-lg);font-weight:600}
.crow-time{flex:none;font-size:var(--fs-xs);color:var(--fg-3)}
.crow-bot .row-sub{flex:1}
.crow-bot b{font-weight:600;color:var(--fg-2)}
.crow.is-unread .row-title{font-weight:700}
.crow.is-unread .row-sub{color:var(--fg)}
.crow.is-unread .crow-time{color:var(--fg);font-weight:600}
.cnote{display:flex;gap:8px;align-items:flex-start;margin:14px 16px 0;padding:12px 14px;border-radius:14px;background:var(--bg-2);font-size:var(--fs-sm);color:var(--fg-2)}
.cnote .i-s{flex:none;margin-top:1px;color:#7a5a3d}
.chat-head{flex-direction:row;align-items:center;gap:10px}
.chat-head>span:last-child{display:flex;flex-direction:column;min-width:0}
.chat-head .mark{width:34px;height:34px;border-radius:11px}
.chat-head .mark svg{width:19px;height:19px}
.chat-head .bar-title{display:flex;align-items:center;gap:4px}
.chat{background:var(--bg)}
.cpin{position:sticky;top:56px;z-index:3;display:flex;align-items:center;gap:10px;padding:9px 16px;background:var(--nude);font-size:var(--fs-sm);color:var(--fg-2)}
.cpin span{min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.cpin b{font-weight:650;color:var(--fg)}
.cpin .i-s{flex:none;color:#7a5a3d}
.msgs{display:flex;flex-direction:column;gap:2px;padding:8px 12px 12px;list-style:none}
.mday{display:flex;justify-content:center;padding:14px 0 8px}
.mday span{padding:3px 10px;border-radius:999px;background:var(--bg-2);font-size:var(--fs-xs);font-weight:600;color:var(--fg-3)}
.msys{padding:6px 0;font-size:var(--fs-xs);color:var(--fg-3);text-align:center}
.msg{display:flex;align-items:flex-end;gap:8px;max-width:84%}
.msg.is-last{margin-bottom:8px}
.av-gap{flex:none;width:30px}
.mcol{display:grid;justify-items:start;gap:2px;min-width:0}
.mname{padding:0 0 0 12px;font-size:var(--fs-xs);font-weight:650;color:var(--fg-3)}
.bub{position:relative;padding:8px 12px;border-radius:18px;background:var(--bg-2);font-size:var(--fs-lg);line-height:1.4;overflow-wrap:anywhere}
.msg:not(.msg-me) .bub{border-bottom-left-radius:6px}
.msg:not(.msg-me):not(.is-last) .bub{border-radius:18px 18px 18px 6px}
.msg-me{align-self:flex-end;flex-direction:column;align-items:flex-end;gap:2px}
.msg-me .bub{background:var(--fg);color:var(--bg);border-bottom-right-radius:6px}
.mtime{padding:0 12px;font-size:var(--fs-2xs);color:var(--fg-3)}
.mquote{display:block;margin:-2px -4px 6px;padding:6px 10px;border-left:3px solid var(--nude-3);border-radius:8px;background:rgba(255,255,255,.12);font-size:var(--fs-sm);opacity:.85}
.msg:not(.msg-me) .mquote{background:var(--bg)}
.mquote b{display:block;font-size:var(--fs-xs)}
.mreact{position:absolute;right:8px;bottom:-12px;display:inline-flex;align-items:center;gap:3px;height:22px;padding:0 7px;border-radius:999px;background:var(--bg);color:var(--fg-2);font-size:var(--fs-2xs);font-weight:700;box-shadow:0 0 0 1px var(--line),0 2px 6px -2px rgba(0,0,0,.15)}
.mreact .i-xs{width:12px;height:12px;color:var(--heart);fill:var(--heart)}
.msg:has(.mreact){margin-bottom:14px}
.msg:target .bub,.msg:has(:target) .bub{box-shadow:0 0 0 2px var(--nude-3)}
.dmintro{display:grid;justify-items:center;gap:4px;padding:20px 24px 4px;text-align:center}
.dmintro .av-xl{width:72px;height:72px;margin-bottom:6px}
.dmintro b{font-size:var(--fs-xl);font-weight:650}
.dmintro span{font-size:var(--fs-sm);color:var(--fg-3)}
.dmshared{max-width:30ch;margin-top:6px;padding:8px 12px;border-radius:12px;background:var(--bg-2)}
.replybar{position:sticky;bottom:0;z-index:5;padding:8px 10px calc(8px + var(--safe-b));background:var(--bg);box-shadow:0 -1px 0 var(--line)}
.rb-row{display:flex;align-items:flex-end;gap:8px}
.rb-add{display:grid;place-items:center;flex:none;width:40px;height:40px;border-radius:50%;background:var(--bg-2);color:var(--fg-2);cursor:pointer}
.rb-add:hover{background:var(--bg-3)}
.rb-field{flex:1;min-width:0;display:flex;border-radius:22px;background:var(--bg-2);border:1px solid transparent}
.rb-field:focus-within{border-color:var(--fg);background:var(--bg)}
.rb-field textarea{flex:1;min-width:0;min-height:40px;max-height:140px;padding:9px 16px;border:0;background:transparent;resize:none;line-height:1.4;outline:0}
.send{display:grid;place-items:center;width:40px;height:40px;flex:none;border:0;border-radius:50%;background:var(--fg);color:var(--bg);transition:background-color .12s,color .12s}
.send .i{width:18px;height:18px}
.rb-field:has(textarea:placeholder-shown)+.send{background:var(--bg-3);color:var(--fg-3)}
.msg-me:has(.mreact) .mtime,.mcol:has(.mreact) .mtime{margin-top:12px}
.msg:has(.mreact){margin-bottom:8px}
.mreact.is-mine{background:var(--nude)}
