/* ============ Comments: a note's discussion under its text ============ */
.p-comments { border-top: 1px solid var(--border); padding-top: 14px; }
.p-comments .p-label b { margin-left: 4px; font-weight: 600; color: var(--text-3); }
.cm-list { display: flex; flex-direction: column; gap: 12px; margin: 10px 0 12px; }
.cm { display: flex; gap: 10px; }
.cm-ava { flex: none; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 700; color: var(--on-accent); background: var(--accent); }
.cm-main { flex: 1; min-width: 0; }
.cm-head { display: flex; align-items: center; gap: 8px; min-height: 22px; font-size: 12px; color: var(--text-3); }
.cm-head b { font-weight: 650; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cm-head .cm-del { margin-left: auto; opacity: 0; transition: opacity .15s; }
.cm:hover .cm-del, .cm-del:focus-visible { opacity: 1; }
.cm-text { margin-top: 2px; font-size: 13.5px; line-height: 1.45; color: var(--text); overflow-wrap: anywhere; white-space: normal; }
.cm-text a { color: var(--accent); }
.cm-new { display: flex; align-items: flex-end; gap: 6px; padding: 6px 6px 6px 12px; border-radius: 12px; background: var(--surface-2); border: 1px solid transparent; transition: border-color .15s; }
.cm-new:focus-within { border-color: color-mix(in srgb, var(--accent) 55%, var(--border)); }
.cm-input { flex: 1; min-height: 22px; max-height: 160px; padding: 5px 0; border: 0; outline: 0; resize: none; background: none; font: inherit; font-size: 13.5px; line-height: 1.4; color: var(--text); }
.cm-input::placeholder { color: var(--text-3); }
.cm-send { color: var(--accent); }
.cm-hint, .cm-empty { display: flex; align-items: center; gap: 8px; margin-top: 8px; font-size: 12.5px; color: var(--text-3); line-height: 1.45; }
.cm-hint svg.i { flex: none; width: 16px; height: 16px; }
@media (pointer: coarse) { .cm-head .cm-del { opacity: 1; } }
