/* Channels share the messenger palette, avatars and controls. */
.channel-screen{height:100%;min-height:0;display:flex;flex-direction:column;background:var(--bg)}.channel-header{flex:none}.channel-header #channel-avatar{display:flex;flex:none}.channel-header .chat-heading{min-width:0}.channel-header h2{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.channel-about{flex:none;color:var(--muted);font-size:14px;line-height:1.45;padding:8px 18px;white-space:pre-wrap;max-height:90px;overflow:auto;border-bottom:1px solid var(--line)}.channel-about:empty{display:none}.channel-feed{flex:1;min-height:0;overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain;display:block!important;padding:14px 14px 24px}.channel-post{max-width:700px;margin:0 auto 18px;background:var(--bubble);border:1px solid var(--line);border-radius:20px;padding:12px;overflow:hidden}.channel-post-text{font-size:17px;line-height:1.5;white-space:pre-wrap;overflow-wrap:anywhere;margin:8px 1px}.channel-post-text a{color:var(--green);text-decoration:underline}.channel-post-meta{display:flex;align-items:center;justify-content:flex-end;gap:12px;font-size:11px;color:var(--muted)}.channel-post-meta .icon-button{width:32px;height:32px;padding:6px}.channel-media:empty{display:none}.channel-media img,.channel-media video{display:block;width:100%;max-height:calc(70 * var(--ui-vh));object-fit:contain;border-radius:12px}.channel-media .image-open{display:block;max-width:100%;width:100%}.channel-album{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:5px}.channel-album .message-image{width:100%;height:180px;object-fit:cover}.channel-album .file-card,.channel-album .video-attachment{grid-column:1/-1}.channel-reaction-bar{display:flex;gap:7px;flex-wrap:wrap;margin-top:5px}.channel-reaction-bar button{padding:6px 11px;border-radius:18px;background:var(--soft);display:flex;align-items:center;gap:5px;min-height:34px}.channel-reaction-bar .own-reaction{outline:1px solid var(--green)}.channel-reaction-bar svg{width:18px;height:18px}.channel-comments-button{width:100%;text-align:left;color:var(--green);padding:13px 0 3px;border-top:1px solid var(--line);margin-top:10px;font-weight:600}.channel-create{display:flex;align-items:center;justify-content:center;gap:8px;margin:14px;width:calc(100% - 28px)}.channel-create svg{width:20px}.channel-list-caption{font-size:13px;color:var(--muted);margin:15px}.channel-pinned{padding:10px 18px;text-align:left;background:var(--soft);color:var(--green);border-bottom:1px solid var(--line);flex:none}.channel-pinned[hidden]{display:none}.channel-empty{text-align:center;padding:30px 12px;color:var(--muted)}#channel-bottom{flex:none;padding:9px 12px calc(9px + var(--ui-safe-bottom));border-top:1px solid var(--line);background:var(--panel)}#channel-bottom .composer{padding:5px 8px;gap:6px}#channel-bottom textarea{min-width:0;width:100%;flex:1;max-height:120px;resize:none;border:0;background:transparent;padding:10px 4px;outline:none;font-family:inherit;font-size:16px;line-height:1.4}#channel-bottom .send-button{flex:none;width:43px;height:43px}#channel-bottom .icon-button{width:35px;height:40px;padding:6px;flex:none}.channel-reader-note{text-align:center;font-size:12px;color:var(--muted);margin:8px 0}#channel-upload-status{font-size:13px;max-height:80px;overflow:auto;color:var(--muted)}#channel-upload-status button{background:var(--soft);border-radius:14px;padding:6px 9px;margin:3px;max-width:100%;overflow-wrap:anywhere}.channel-invite-list>div{padding:14px 0;border-bottom:1px solid var(--line);display:flex;gap:12px;flex-wrap:wrap}.channel-invite-list small{width:100%;color:var(--muted)}.channel-discussion{max-height:calc(45 * var(--ui-vh));overflow:auto}.channel-discussion article{display:flex;align-items:flex-start;gap:8px;padding:12px 0;border-bottom:1px solid var(--line)}.channel-discussion article>div{flex:1;min-width:0}.channel-discussion p{white-space:pre-wrap;overflow-wrap:anywhere;margin:5px 0}.channel-discussion small{color:var(--muted)}.channel-discussion strong{font-size:14px}.channel-discussion .icon-button{flex:none;width:30px;height:30px}.channel-discussion .avatar{flex:none}#channel-comment-form{margin-top:14px}.channel-address[hidden]{display:none}.username-state{color:var(--muted);font-weight:400}.keyboard-open #channel-bottom{padding-bottom:4px}

.channel-verified{display:inline-grid;place-items:center;width:1em;height:1em;margin-inline-start:.35em;border-radius:50%;background:var(--accent,#75ddb6);color:#102824;font-size:.7em;vertical-align:middle;flex-shrink:0}

.channel-header [hidden]{display:none!important}.channel-header .chat-heading{flex:1}.channel-header .chat-heading .channel-verified{display:inline-grid;font-size:.7em;color:#102824;margin-top:0;line-height:1;vertical-align:middle}
/* Keep the official badge independent of the chat title's inherited line height. */
.chat-row-title strong:has(>.channel-verified){display:inline-flex;align-items:center;gap:.35em}
.chat-row-title .channel-verified{display:inline-flex;align-items:center;justify-content:center;line-height:1;margin-inline-start:0}
