/* Reposts, quotes, profile Replies / tabs (2026-10-27 design). Tokens: tokens.css; cards: feed.css. */

/* "X reposted" above a card */
.ni-fc-rp { display: flex; align-items: center; gap: 0.375rem; margin: 0 0 0.5rem; padding-inline-start: 1.5rem; font-size: 0.8125rem; font-weight: 600; color: var(--ni-color-text-secondary); }
.ni-fc-rp .ni-i { width: 1rem; height: 1rem; flex: none; }
.ni-fc-rp a:hover { text-decoration: underline; }

/* repost action: menu (Repost / Undo, Quote); reposted = success green */
.ni-rp > summary { list-style: none; }
.ni-rp > summary::-webkit-details-marker { display: none; }
.ni-rp ul { top: calc(100% + 0.375rem); inset-inline-start: 0; }
.ni-rp[data-reposted] > summary { color: var(--ni-color-success); }

/* quoted post inside a quote, the post page and the quote compose box */
.ni-qe { display: block; margin-top: 0.625rem; padding: 0.625rem 0.875rem 0.6875rem; border: 1px solid var(--ni-color-border); border-radius: 1rem; color: inherit; overflow: hidden; }
a.ni-qe:hover { border-color: var(--ni-color-secondary); }
.ni-qe-h { display: flex; align-items: center; gap: 0.375rem; min-width: 0; font-size: 0.8125rem; line-height: 1.35; white-space: nowrap; }
.ni-qe-h .ni-avatar { flex: none; width: 1.25rem; height: 1.25rem; font-size: 0.6875rem; }
.ni-qe-h b { flex: none; max-width: 50%; overflow: hidden; text-overflow: ellipsis; font-weight: 700; }
.ni-qe-h span { min-width: 0; overflow: hidden; text-overflow: ellipsis; color: var(--ni-color-text-secondary); }
.ni-qe-b { display: flex; gap: 0.75rem; margin-top: 0.3125rem; }
.ni-qe-t { flex: 1; min-width: 0; }
.ni-qe-t h4 { margin: 0.125rem 0 0; font-size: 0.9375rem; line-height: 1.4; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ni-qe-t p { margin: 0.125rem 0 0; font-size: 0.8125rem; line-height: 1.5; color: var(--ni-color-text-secondary); overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ni-qe-t .ni-qe-short { margin: 0; font-size: 0.9375rem; color: var(--ni-color-text-primary); -webkit-line-clamp: 3; }
.ni-qe-t .ni-fc-kind { font-size: 0.75rem; }
.ni-qe-th { flex: none; width: 3.75rem; height: 3.75rem; border-radius: 0.625rem; object-fit: cover; background: var(--ni-color-surface-2); }
.ni-qe-gone { display: flex; align-items: center; gap: 0.5rem; color: var(--ni-color-text-secondary); font-size: 0.875rem; background: var(--ni-color-surface-2); border-style: dashed; }
.ni-qe-gone .ni-i { width: 1rem; height: 1rem; flex: none; }
.ni-post .ni-qe { margin-top: 1rem; }
/* compose box: full width under the editor (not indented under the avatar) */
.ni-compose-quoted { margin: 0.25rem 0 0.5rem; }
.ni-compose-quoted .ni-qe { margin-top: 0; }

/* profile: Settings next to the avatar; tabs of equal width */
.ni-prof-set { display: inline-flex; align-items: center; gap: 0.375rem; margin-bottom: 0.25rem; }
.ni-prof-set .ni-i { width: 1rem; height: 1rem; }
.ni-tabs-even a { flex: 1 0 auto; text-align: center; white-space: nowrap; }

/* profile "Replies" cards */
.ni-reply-to { margin: 0.375rem 0 0; font-size: 0.8125rem; color: var(--ni-color-text-secondary); }
.ni-reply-to a { color: var(--ni-color-primary); font-weight: 600; }
.ni-reply-body { margin-top: 0.25rem; overflow-wrap: anywhere; }
.ni-reply-body p { margin: 0; }
/* Bottom inset = card top inset (18px; phone 16px). */
.ni-reply { padding-bottom: 1.125rem; }

@media (max-width: 47.99rem) {
  .ni-tabs-even { padding: 0 0.25rem; }
  .ni-tabs-even a { padding-inline: 0.5rem; }
  .ni-fc-rp { padding-inline-start: 1.375rem; }
  .ni-reply { padding-bottom: 1rem; }
}
