/* Message petal card: multi-paragraph comments with credit. Overrides the
   export's one-liner .note styles (this sheet loads after them). */
.note{width:min(380px,calc(100% - 24px));gap:10px;padding:16px 20px 14px}
.note[data-len="s"]{width:min(320px,calc(100% - 24px))}

.note-body{display:grid;gap:.7em;max-height:min(46vh,340px);overflow-y:auto;overscroll-behavior:contain;touch-action:pan-y;padding-right:6px;margin-right:-6px;scrollbar-width:thin;scrollbar-color:#cbb89a transparent}
.note-body:focus-visible{outline:2px solid var(--accent);outline-offset:4px;border-radius:4px}
.note.scrolls .note-body{-webkit-mask-image:linear-gradient(#000 calc(100% - 32px),transparent);mask-image:linear-gradient(#000 calc(100% - 32px),transparent)}
.note.scrolls.at-end .note-body{-webkit-mask-image:none;mask-image:none}

.note .note-body p{margin:0;font-family:var(--display);font-style:italic;font-size:19px;line-height:1.32;white-space:pre-line;text-wrap:pretty;overflow-wrap:anywhere}
.note[data-len="s"] .note-body p{font-size:24px;line-height:1.2;text-wrap:balance}
.note[data-len="l"] .note-body p{font-size:17px;line-height:1.4}

.note-credit{display:flex;flex-wrap:wrap;align-items:baseline;gap:2px 8px;padding-top:9px;border-top:1px dashed #d8c7a8;font:500 13px/1.35 var(--body);color:#6f5a44}
.note-credit[hidden]{display:none}
.note-from{font-weight:700;color:var(--paper-ink);overflow-wrap:anywhere}
.note-from::before{content:"— "}
.note-link{color:#a0476f;text-decoration:none;overflow-wrap:anywhere}
.note-link:hover,.note-link:focus-visible{text-decoration:underline}

.note-foot{display:flex;align-items:center;justify-content:space-between;gap:12px}
.note-remove{font:400 11.5px/1.3 var(--body);color:#8a6f52;text-align:right}
.note-remove[hidden]{display:none}

@media (max-width:559px){.note-body{max-height:34vh}.note[data-len="s"] .note-body p{font-size:21px}}
