/* Обсуждение (макет V4): контекст записи, «Комментарии · N», плоский список, строка ввода. */ .channels-screen--thread { gap: 0; } .thread-block { display: grid; gap: 0; min-width: 0; } .thread-context { padding: 10px 0 8px; border-bottom: 1px solid var(--border-subtle); font-size: .875rem; line-height: 1.25rem; } .thread-block--ancestors .thread-context { opacity: .8; } .thread-context__text { margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; white-space: pre-wrap; overflow-wrap: anywhere; } .thread-context.is-expanded .thread-context__text { display: block; } .thread-context__meta { display: flex; align-items: center; gap: 12px; min-height: 32px; color: var(--text-secondary); font-size: .75rem; } .thread-context__expand, .thread-context__open { min-height: 32px; padding: 0 4px; border: 0; background: transparent; color: var(--action); font: inherit; font-size: .75rem; cursor: pointer; } .thread-context__open { margin-left: auto; display: inline-flex; align-items: center; gap: 4px; } .thread-context__open svg { width: 14px; height: 14px; } .thread-section-title { margin: 12px 0 4px; font-size: .8125rem; font-weight: 600; color: var(--text-primary); } .channels-screen .thread-comment { display: block; margin: 0 calc(-1 * var(--page-gutter)); padding: 7px var(--page-gutter) 5px; border: 0; border-radius: 0; background: transparent; scroll-margin: 16px; } .channels-screen .thread-comment + .thread-comment { border-top: 1px solid var(--divider-soft); } .thread-comment.is-highlight { background: var(--surface-selected); box-shadow: inset 3px 0 var(--accent); } .thread-comment__person { display: flex; align-items: center; gap: 7px; min-height: 26px; margin-bottom: 4px; font-size: .875rem; font-weight: 600; } .thread-comment__who { display: inline-flex; align-items: center; gap: 7px; min-width: 0; padding: 0; border: 0; background: transparent; color: var(--text-primary); font: inherit; cursor: pointer; } .thread-comment__who .avatar.thread-comment__avatar { width: 24px; height: 24px; min-width: 24px; min-height: 24px; font-size: 11px; } .thread-comment__name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; } .thread-comment__badge { padding: 1px 5px; border-radius: 5px; background: var(--surface-selected); color: var(--action); font-size: .625rem; font-weight: 400; white-space: nowrap; } .thread-comment__person time { margin-left: auto; flex-shrink: 0; color: var(--text-secondary); font-size: .75rem; font-weight: 400; } .thread-comment__text { margin: 0; font-size: .9375rem; line-height: 1.4375rem; white-space: pre-wrap; overflow-wrap: anywhere; } .thread-comment__actions { display: flex; align-items: center; gap: 12px; margin-top: 2px; color: var(--text-secondary); } .thread-comment__actions > button { min-height: 32px; min-width: 32px; padding: 0 4px; display: inline-flex; align-items: center; gap: 5px; border: 0; border-radius: 8px; background: transparent; color: inherit; font: inherit; font-size: .75rem; cursor: pointer; } .thread-comment__actions .thread-comment__reply { padding-left: 0; color: var(--action); } .thread-comment__actions svg { width: 21px; height: 21px; } .thread-comment__actions .thread-comment__more { margin-left: auto; } .thread-comment__actions .thread-comment__more svg { width: 24px; height: 24px; } .thread-quote { display: block; width: 100%; margin: 0 0 7px; padding: 5px 9px; border: 0; border-left: 2px solid var(--quote-line); border-radius: 0 6px 6px 0; background: var(--quote-bg); color: var(--text-secondary); font: inherit; font-size: .75rem; line-height: 1.125rem; text-align: left; cursor: pointer; } .thread-quote strong { display: block; color: var(--action); font-weight: 500; } .thread-quote span { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; } button.thread-quote:hover { background: var(--surface); } .thread-return { position: fixed; left: 50%; bottom: calc(96px + env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 5; padding: 9px 12px; border: 1px solid var(--border-subtle); border-radius: 20px; background: var(--surface-raised); color: var(--text-primary); font: inherit; font-size: .75rem; white-space: nowrap; cursor: pointer; } .thread-empty { padding: 36px 20px; text-align: center; } .thread-composer { display: grid; gap: 8px; } .thread-replying { display: flex; gap: 8px; align-items: flex-start; } .thread-replying[hidden] { display: none; } .thread-replying .thread-quote { margin: 0; min-width: 0; cursor: default; } .thread-replying__cancel { width: 32px; height: 32px; flex-shrink: 0; padding: 0; display: grid; place-items: center; border: 0; background: transparent; color: var(--text-secondary); cursor: pointer; } .thread-replying__cancel svg { width: 20px; height: 20px; } .thread-composer__emoji { max-height: 260px; overflow: auto; }