/* A reply thread is a reading page, with the parent comment and all live replies. */
.phone.thread-page { padding-bottom: calc(230px + env(safe-area-inset-bottom)); }
.thread-page-content { padding-top: 8px; }
.thread-parent-post { display: flex; align-items: center; gap: 14px; width: 100%; margin: 8px 0 22px; padding: 12px 14px; border: 0; border-radius: 14px; background: #faf7f9; text-align: left; }
.thread-parent-post>span { min-width: 0; flex: 1; }
.thread-parent-post small { display: block; margin-bottom: 4px; color: #9b8794; font-size: var(--text-meta); }
.thread-parent-post strong { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; color: #685763; font-size: var(--text-label); font-weight: 500; line-height: 1.6; }
.thread-parent-post>.icon { width: 18px; color: #b39baa; }
.thread-original>.comment { padding: 0 0 22px; border: 0; }
.thread-page .thread-replies { margin-top: 0; border-top: 6px solid #faf7f9; padding-top: 22px; }
.thread-page .thread-replies>h3 { display: flex; align-items: baseline; gap: 8px; margin: 0 0 10px; color: #4f3f4a; font-size: var(--text-body); font-weight: 600; }
.thread-page .thread-replies>h3 small { color: #a78d9c; font-weight: 400; }
.thread-page .sheet-reply { padding: 18px 0; scroll-margin-top: calc(var(--header-height, 84px) + 12px); scroll-margin-bottom: 245px; }
.thread-page .sheet-reply .reply-author { margin-bottom: 7px; }
.thread-page .reply-text { line-height: 1.8; }
.thread-page .thread-empty { padding: 26px 0; color: #a28b9c; font-size: var(--text-label); }
.thread-page-footer { position: fixed; z-index: 15; bottom: 0; left: 50%; width: 100%; max-width: var(--app-width); transform: translateX(-50%); background: #fff; }
.thread-page-footer .thread-composer { padding-top: 12px; border-top-color: #f0e8ee; box-shadow: 0 -8px 24px #79566b05; }
.thread-target { display: flex; align-items: center; gap: 8px; }
.thread-target .reply-context { flex: 1; min-width: 0; }
.thread-target-reset { display: grid; place-items: center; flex-shrink: 0; width: 32px; height: 32px; padding: 0; border: 0; background: transparent; color: #a28b9c; }
.thread-target-reset .icon { width: 16px; height: 16px; }
.reply-preview .thread-more { display: flex; align-items: center; gap: 6px; padding-top: 10px; color: #b86a8a; font-weight: 500; }
.reply-preview .thread-more .icon { width: 15px; height: 15px; }
/* Text opens the conversation; the adjacent heart never navigates or replaces its composer. */
.reply-line { display: flex; align-items: flex-start; gap: 8px; }
.reply-copy { flex: 1; min-width: 0; min-height: 44px; padding: 0; border: 0; background: transparent; color: inherit; font: inherit; line-height: inherit; text-align: left; overflow-wrap: anywhere; }
.reply-line>.reply-like { flex-direction: column; flex: 0 0 44px; gap: 0; width: 44px; min-width: 44px; min-height: 44px; padding: 2px 0; border: 0; background: transparent; color: #99949a; }
.reply-line>.reply-like.on { color: var(--pink); }
.reply-line>.reply-like .icon { width: 18px; height: 18px; flex: 0 0 18px; }
.reply-line>.reply-like span { font-size: 11px; line-height: 17px; }
.reply-line>.reply-like:disabled { opacity: .6; }
.reply-preview { padding-top: 0; padding-bottom: 0; background: transparent; }
.reply-fold-controls { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.reply-fold-controls>.thread-more, .reply-fold-controls>.thread-collapse { min-height: 44px; padding: 4px 0; border: 0; background: transparent; font-size: var(--text-meta); font-weight: 500; }
.reply-fold-controls>.thread-more { color: #9b8290; }
.reply-fold-controls>.thread-collapse { margin-left: auto; color: #a59ca1; }
.reply-fold-controls>.thread-more>span { font-size: 17px; line-height: 1; }
.keyboard-open .phone.thread-page { padding-bottom: 230px; }
@media(max-width:359px) {
  .thread-page-footer .thread-recipient { flex-wrap: wrap; }
  .thread-page-footer .thread-recipient small { flex-basis: 100%; margin-left: 0; }
  .phone.thread-page { padding-bottom: calc(255px + env(safe-area-inset-bottom)); }
}
